Files
weiyu/deploy/server/notebase/assets/index-B6_x5bci.js
jack ning 886427925a update
2025-04-16 17:34:56 +08:00

1691 lines
5.1 MiB
Raw Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
var K3e=Object.defineProperty;var OZ=e=>{throw TypeError(e)};var Q3e=(e,t,n)=>t in e?K3e(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var ai=(e,t,n)=>Q3e(e,typeof t!="symbol"?t+"":t,n),Z9=(e,t,n)=>t.has(e)||OZ("Cannot "+n);var Fe=(e,t,n)=>(Z9(e,t,"read from private field"),n?n.call(e):t.get(e)),zn=(e,t,n)=>t.has(e)?OZ("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),yn=(e,t,n,r)=>(Z9(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),Dn=(e,t,n)=>(Z9(e,t,"access private method"),n);var qg=(e,t,n,r)=>({set _(i){yn(e,t,i,n)},get _(){return Fe(e,t,r)}});function $4(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 ao=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function di(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Nx(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 Hme={exports:{}},F4={},Ume={exports:{}},Vr={};/**
* @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 Mx=Symbol.for("react.element"),X3e=Symbol.for("react.portal"),Z3e=Symbol.for("react.fragment"),J3e=Symbol.for("react.strict_mode"),e9e=Symbol.for("react.profiler"),t9e=Symbol.for("react.provider"),n9e=Symbol.for("react.context"),r9e=Symbol.for("react.forward_ref"),i9e=Symbol.for("react.suspense"),o9e=Symbol.for("react.memo"),a9e=Symbol.for("react.lazy"),RZ=Symbol.iterator;function s9e(e){return e===null||typeof e!="object"?null:(e=RZ&&e[RZ]||e["@@iterator"],typeof e=="function"?e:null)}var zme={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Vme=Object.assign,Gme={};function eS(e,t,n){this.props=e,this.context=t,this.refs=Gme,this.updater=n||zme}eS.prototype.isReactComponent={};eS.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")};eS.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Wme(){}Wme.prototype=eS.prototype;function zV(e,t,n){this.props=e,this.context=t,this.refs=Gme,this.updater=n||zme}var VV=zV.prototype=new Wme;VV.constructor=zV;Vme(VV,eS.prototype);VV.isPureReactComponent=!0;var IZ=Array.isArray,qme=Object.prototype.hasOwnProperty,GV={current:null},Yme={key:!0,ref:!0,__self:!0,__source:!0};function Kme(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)qme.call(t,r)&&!Yme.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:Mx,type:e,key:o,ref:a,props:i,_owner:GV.current}}function l9e(e,t){return{$$typeof:Mx,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function WV(e){return typeof e=="object"&&e!==null&&e.$$typeof===Mx}function c9e(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var AZ=/\/+/g;function J9(e,t){return typeof e=="object"&&e!==null&&e.key!=null?c9e(""+e.key):t.toString(36)}function WI(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 Mx:case X3e:a=!0}}if(a)return a=e,i=i(a),e=r===""?"."+J9(a,0):r,IZ(i)?(n="",e!=null&&(n=e.replace(AZ,"$&/")+"/"),WI(i,t,n,"",function(c){return c})):i!=null&&(WV(i)&&(i=l9e(i,n+(!i.key||a&&a.key===i.key?"":(""+i.key).replace(AZ,"$&/")+"/")+e)),t.push(i)),1;if(a=0,r=r===""?".":r+":",IZ(e))for(var s=0;s<e.length;s++){o=e[s];var l=r+J9(o,s);a+=WI(o,t,n,l,i)}else if(l=s9e(e),typeof l=="function")for(e=l.call(e),s=0;!(o=e.next()).done;)o=o.value,l=r+J9(o,s++),a+=WI(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 LO(e,t,n){if(e==null)return e;var r=[],i=0;return WI(e,r,"","",function(o){return t.call(n,o,i++)}),r}function u9e(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 nl={current:null},qI={transition:null},d9e={ReactCurrentDispatcher:nl,ReactCurrentBatchConfig:qI,ReactCurrentOwner:GV};function Qme(){throw Error("act(...) is not supported in production builds of React.")}Vr.Children={map:LO,forEach:function(e,t,n){LO(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return LO(e,function(){t++}),t},toArray:function(e){return LO(e,function(t){return t})||[]},only:function(e){if(!WV(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};Vr.Component=eS;Vr.Fragment=Z3e;Vr.Profiler=e9e;Vr.PureComponent=zV;Vr.StrictMode=J3e;Vr.Suspense=i9e;Vr.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=d9e;Vr.act=Qme;Vr.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=Vme({},e.props),i=e.key,o=e.ref,a=e._owner;if(t!=null){if(t.ref!==void 0&&(o=t.ref,a=GV.current),t.key!==void 0&&(i=""+t.key),e.type&&e.type.defaultProps)var s=e.type.defaultProps;for(l in t)qme.call(t,l)&&!Yme.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:Mx,type:e.type,key:i,ref:o,props:r,_owner:a}};Vr.createContext=function(e){return e={$$typeof:n9e,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:t9e,_context:e},e.Consumer=e};Vr.createElement=Kme;Vr.createFactory=function(e){var t=Kme.bind(null,e);return t.type=e,t};Vr.createRef=function(){return{current:null}};Vr.forwardRef=function(e){return{$$typeof:r9e,render:e}};Vr.isValidElement=WV;Vr.lazy=function(e){return{$$typeof:a9e,_payload:{_status:-1,_result:e},_init:u9e}};Vr.memo=function(e,t){return{$$typeof:o9e,type:e,compare:t===void 0?null:t}};Vr.startTransition=function(e){var t=qI.transition;qI.transition={};try{e()}finally{qI.transition=t}};Vr.unstable_act=Qme;Vr.useCallback=function(e,t){return nl.current.useCallback(e,t)};Vr.useContext=function(e){return nl.current.useContext(e)};Vr.useDebugValue=function(){};Vr.useDeferredValue=function(e){return nl.current.useDeferredValue(e)};Vr.useEffect=function(e,t){return nl.current.useEffect(e,t)};Vr.useId=function(){return nl.current.useId()};Vr.useImperativeHandle=function(e,t,n){return nl.current.useImperativeHandle(e,t,n)};Vr.useInsertionEffect=function(e,t){return nl.current.useInsertionEffect(e,t)};Vr.useLayoutEffect=function(e,t){return nl.current.useLayoutEffect(e,t)};Vr.useMemo=function(e,t){return nl.current.useMemo(e,t)};Vr.useReducer=function(e,t,n){return nl.current.useReducer(e,t,n)};Vr.useRef=function(e){return nl.current.useRef(e)};Vr.useState=function(e){return nl.current.useState(e)};Vr.useSyncExternalStore=function(e,t,n){return nl.current.useSyncExternalStore(e,t,n)};Vr.useTransition=function(){return nl.current.useTransition()};Vr.version="18.3.1";Ume.exports=Vr;var p=Ume.exports;const ce=di(p),kx=$4({__proto__:null,default:ce},[p]);/**
* @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 f9e=p,p9e=Symbol.for("react.element"),h9e=Symbol.for("react.fragment"),m9e=Object.prototype.hasOwnProperty,g9e=f9e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,v9e={key:!0,ref:!0,__self:!0,__source:!0};function Xme(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)m9e.call(t,r)&&!v9e.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:p9e,type:e,key:o,ref:a,props:i,_owner:g9e.current}}F4.Fragment=h9e;F4.jsx=Xme;F4.jsxs=Xme;Hme.exports=F4;var H=Hme.exports,D7={},Zme={exports:{}},xc={},Jme={exports:{}},ege={};/**
* @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(P,z){var L=P.length;P.push(z);e:for(;0<L;){var V=L-1>>>1,j=P[V];if(0<i(j,z))P[V]=z,P[L]=j,L=V;else break e}}function n(P){return P.length===0?null:P[0]}function r(P){if(P.length===0)return null;var z=P[0],L=P.pop();if(L!==z){P[0]=L;e:for(var V=0,j=P.length,U=j>>>1;V<U;){var J=2*(V+1)-1,te=P[J],ae=J+1,K=P[ae];if(0>i(te,L))ae<j&&0>i(K,te)?(P[V]=K,P[ae]=L,V=ae):(P[V]=te,P[J]=L,V=J);else if(ae<j&&0>i(K,L))P[V]=K,P[ae]=L,V=ae;else break e}}return z}function i(P,z){var L=P.sortIndex-z.sortIndex;return L!==0?L:P.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,f=3,h=!1,m=!1,g=!1,v=typeof setTimeout=="function"?setTimeout:null,y=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 _(P){for(var z=n(c);z!==null;){if(z.callback===null)r(c);else if(z.startTime<=P)r(c),z.sortIndex=z.expirationTime,t(l,z);else break;z=n(c)}}function E(P){if(g=!1,_(P),!m)if(n(l)!==null)m=!0,B(w);else{var z=n(c);z!==null&&A(E,z.startTime-P)}}function w(P,z){m=!1,g&&(g=!1,y(T),T=-1),h=!0;var L=f;try{for(_(z),d=n(l);d!==null&&(!(d.expirationTime>z)||P&&!N());){var V=d.callback;if(typeof V=="function"){d.callback=null,f=d.priorityLevel;var j=V(d.expirationTime<=z);z=e.unstable_now(),typeof j=="function"?d.callback=j:d===n(l)&&r(l),_(z)}else r(l);d=n(l)}if(d!==null)var U=!0;else{var J=n(c);J!==null&&A(E,J.startTime-z),U=!1}return U}finally{d=null,f=L,h=!1}}var S=!1,C=null,T=-1,x=5,O=-1;function N(){return!(e.unstable_now()-O<x)}function I(){if(C!==null){var P=e.unstable_now();O=P;var z=!0;try{z=C(!0,P)}finally{z?M():(S=!1,C=null)}}else S=!1}var M;if(typeof b=="function")M=function(){b(I)};else if(typeof MessageChannel<"u"){var F=new MessageChannel,k=F.port2;F.port1.onmessage=I,M=function(){k.postMessage(null)}}else M=function(){v(I,0)};function B(P){C=P,S||(S=!0,M())}function A(P,z){T=v(function(){P(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(P){P.callback=null},e.unstable_continueExecution=function(){m||h||(m=!0,B(w))},e.unstable_forceFrameRate=function(P){0>P||125<P?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):x=0<P?Math.floor(1e3/P):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_getFirstCallbackNode=function(){return n(l)},e.unstable_next=function(P){switch(f){case 1:case 2:case 3:var z=3;break;default:z=f}var L=f;f=z;try{return P()}finally{f=L}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(P,z){switch(P){case 1:case 2:case 3:case 4:case 5:break;default:P=3}var L=f;f=P;try{return z()}finally{f=L}},e.unstable_scheduleCallback=function(P,z,L){var V=e.unstable_now();switch(typeof L=="object"&&L!==null?(L=L.delay,L=typeof L=="number"&&0<L?V+L:V):L=V,P){case 1:var j=-1;break;case 2:j=250;break;case 5:j=1073741823;break;case 4:j=1e4;break;default:j=5e3}return j=L+j,P={id:u++,callback:z,priorityLevel:P,startTime:L,expirationTime:j,sortIndex:-1},L>V?(P.sortIndex=L,t(c,P),n(l)===null&&P===n(c)&&(g?(y(T),T=-1):g=!0,A(E,L-V))):(P.sortIndex=j,t(l,P),m||h||(m=!0,B(w))),P},e.unstable_shouldYield=N,e.unstable_wrapCallback=function(P){var z=f;return function(){var L=f;f=z;try{return P.apply(this,arguments)}finally{f=L}}}})(ege);Jme.exports=ege;var b9e=Jme.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 y9e=p,yc=b9e;function un(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 tge=new Set,zw={};function l0(e,t){Ky(e,t),Ky(e+"Capture",t)}function Ky(e,t){for(zw[e]=t,e=0;e<t.length;e++)tge.add(t[e])}var Zp=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),L7=Object.prototype.hasOwnProperty,_9e=/^[: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]*$/,NZ={},MZ={};function S9e(e){return L7.call(MZ,e)?!0:L7.call(NZ,e)?!1:_9e.test(e)?MZ[e]=!0:(NZ[e]=!0,!1)}function E9e(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 C9e(e,t,n,r){if(t===null||typeof t>"u"||E9e(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 rl(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 rs={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){rs[e]=new rl(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];rs[t]=new rl(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){rs[e]=new rl(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){rs[e]=new rl(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){rs[e]=new rl(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){rs[e]=new rl(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){rs[e]=new rl(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){rs[e]=new rl(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){rs[e]=new rl(e,5,!1,e.toLowerCase(),null,!1,!1)});var qV=/[\-:]([a-z])/g;function YV(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(qV,YV);rs[t]=new rl(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(qV,YV);rs[t]=new rl(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(qV,YV);rs[t]=new rl(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){rs[e]=new rl(e,1,!1,e.toLowerCase(),null,!1,!1)});rs.xlinkHref=new rl("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){rs[e]=new rl(e,1,!1,e.toLowerCase(),null,!0,!0)});function KV(e,t,n,r){var i=rs.hasOwnProperty(t)?rs[t]:null;(i!==null?i.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(C9e(t,n,i,r)&&(n=null),r||i===null?S9e(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 gh=y9e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,$O=Symbol.for("react.element"),Bb=Symbol.for("react.portal"),jb=Symbol.for("react.fragment"),QV=Symbol.for("react.strict_mode"),$7=Symbol.for("react.profiler"),nge=Symbol.for("react.provider"),rge=Symbol.for("react.context"),XV=Symbol.for("react.forward_ref"),F7=Symbol.for("react.suspense"),B7=Symbol.for("react.suspense_list"),ZV=Symbol.for("react.memo"),lm=Symbol.for("react.lazy"),ige=Symbol.for("react.offscreen"),kZ=Symbol.iterator;function vE(e){return e===null||typeof e!="object"?null:(e=kZ&&e[kZ]||e["@@iterator"],typeof e=="function"?e:null)}var No=Object.assign,e8;function yC(e){if(e8===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);e8=t&&t[1]||""}return`
`+e8+e}var t8=!1;function n8(e,t){if(!e||t8)return"";t8=!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{t8=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?yC(e):""}function w9e(e){switch(e.tag){case 5:return yC(e.type);case 16:return yC("Lazy");case 13:return yC("Suspense");case 19:return yC("SuspenseList");case 0:case 2:case 15:return e=n8(e.type,!1),e;case 11:return e=n8(e.type.render,!1),e;case 1:return e=n8(e.type,!0),e;default:return""}}function j7(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 jb:return"Fragment";case Bb:return"Portal";case $7:return"Profiler";case QV:return"StrictMode";case F7:return"Suspense";case B7:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case rge:return(e.displayName||"Context")+".Consumer";case nge:return(e._context.displayName||"Context")+".Provider";case XV:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case ZV:return t=e.displayName||null,t!==null?t:j7(e.type)||"Memo";case lm:t=e._payload,e=e._init;try{return j7(e(t))}catch{}}return null}function T9e(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 j7(t);case 8:return t===QV?"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 ug(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function oge(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function x9e(e){var t=oge(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 FO(e){e._valueTracker||(e._valueTracker=x9e(e))}function age(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=oge(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function TN(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 H7(e,t){var n=t.checked;return No({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function PZ(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=ug(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 sge(e,t){t=t.checked,t!=null&&KV(e,"checked",t,!1)}function U7(e,t){sge(e,t);var n=ug(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")?z7(e,t.type,n):t.hasOwnProperty("defaultValue")&&z7(e,t.type,ug(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function DZ(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 z7(e,t,n){(t!=="number"||TN(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var _C=Array.isArray;function dy(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=""+ug(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 V7(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(un(91));return No({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function LZ(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(un(92));if(_C(n)){if(1<n.length)throw Error(un(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:ug(n)}}function lge(e,t){var n=ug(t.value),r=ug(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 $Z(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function cge(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 G7(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?cge(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var BO,uge=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(BO=BO||document.createElement("div"),BO.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=BO.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Vw(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var VC={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},O9e=["Webkit","ms","Moz","O"];Object.keys(VC).forEach(function(e){O9e.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),VC[t]=VC[e]})});function dge(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||VC.hasOwnProperty(e)&&VC[e]?(""+t).trim():t+"px"}function fge(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=dge(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var R9e=No({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 W7(e,t){if(t){if(R9e[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(un(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(un(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(un(61))}if(t.style!=null&&typeof t.style!="object")throw Error(un(62))}}function q7(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 Y7=null;function JV(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var K7=null,fy=null,py=null;function FZ(e){if(e=Lx(e)){if(typeof K7!="function")throw Error(un(280));var t=e.stateNode;t&&(t=z4(t),K7(e.stateNode,e.type,t))}}function pge(e){fy?py?py.push(e):py=[e]:fy=e}function hge(){if(fy){var e=fy,t=py;if(py=fy=null,FZ(e),t)for(e=0;e<t.length;e++)FZ(t[e])}}function mge(e,t){return e(t)}function gge(){}var r8=!1;function vge(e,t,n){if(r8)return e(t,n);r8=!0;try{return mge(e,t,n)}finally{r8=!1,(fy!==null||py!==null)&&(gge(),hge())}}function Gw(e,t){var n=e.stateNode;if(n===null)return null;var r=z4(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(un(231,t,typeof n));return n}var Q7=!1;if(Zp)try{var bE={};Object.defineProperty(bE,"passive",{get:function(){Q7=!0}}),window.addEventListener("test",bE,bE),window.removeEventListener("test",bE,bE)}catch{Q7=!1}function I9e(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 GC=!1,xN=null,ON=!1,X7=null,A9e={onError:function(e){GC=!0,xN=e}};function N9e(e,t,n,r,i,o,a,s,l){GC=!1,xN=null,I9e.apply(A9e,arguments)}function M9e(e,t,n,r,i,o,a,s,l){if(N9e.apply(this,arguments),GC){if(GC){var c=xN;GC=!1,xN=null}else throw Error(un(198));ON||(ON=!0,X7=c)}}function c0(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 bge(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 BZ(e){if(c0(e)!==e)throw Error(un(188))}function k9e(e){var t=e.alternate;if(!t){if(t=c0(e),t===null)throw Error(un(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 BZ(i),e;if(o===r)return BZ(i),t;o=o.sibling}throw Error(un(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(un(189))}}if(n.alternate!==r)throw Error(un(190))}if(n.tag!==3)throw Error(un(188));return n.stateNode.current===n?e:t}function yge(e){return e=k9e(e),e!==null?_ge(e):null}function _ge(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=_ge(e);if(t!==null)return t;e=e.sibling}return null}var Sge=yc.unstable_scheduleCallback,jZ=yc.unstable_cancelCallback,P9e=yc.unstable_shouldYield,D9e=yc.unstable_requestPaint,Jo=yc.unstable_now,L9e=yc.unstable_getCurrentPriorityLevel,eG=yc.unstable_ImmediatePriority,Ege=yc.unstable_UserBlockingPriority,RN=yc.unstable_NormalPriority,$9e=yc.unstable_LowPriority,Cge=yc.unstable_IdlePriority,B4=null,If=null;function F9e(e){if(If&&typeof If.onCommitFiberRoot=="function")try{If.onCommitFiberRoot(B4,e,void 0,(e.current.flags&128)===128)}catch{}}var ld=Math.clz32?Math.clz32:H9e,B9e=Math.log,j9e=Math.LN2;function H9e(e){return e>>>=0,e===0?32:31-(B9e(e)/j9e|0)|0}var jO=64,HO=4194304;function SC(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 IN(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=SC(s):(o&=a,o!==0&&(r=SC(o)))}else a=n&~i,a!==0?r=SC(a):o!==0&&(r=SC(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-ld(t),i=1<<n,r|=e[n],t&=~i;return r}function U9e(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 z9e(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,o=e.pendingLanes;0<o;){var a=31-ld(o),s=1<<a,l=i[a];l===-1?(!(s&n)||s&r)&&(i[a]=U9e(s,t)):l<=t&&(e.expiredLanes|=s),o&=~s}}function Z7(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function wge(){var e=jO;return jO<<=1,!(jO&4194240)&&(jO=64),e}function i8(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Px(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-ld(t),e[t]=n}function V9e(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-ld(n),o=1<<i;t[i]=0,r[i]=-1,e[i]=-1,n&=~o}}function tG(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-ld(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}var wi=0;function Tge(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var xge,nG,Oge,Rge,Ige,J7=!1,UO=[],Vm=null,Gm=null,Wm=null,Ww=new Map,qw=new Map,gm=[],G9e="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 HZ(e,t){switch(e){case"focusin":case"focusout":Vm=null;break;case"dragenter":case"dragleave":Gm=null;break;case"mouseover":case"mouseout":Wm=null;break;case"pointerover":case"pointerout":Ww.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":qw.delete(t.pointerId)}}function yE(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=Lx(t),t!==null&&nG(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function W9e(e,t,n,r,i){switch(t){case"focusin":return Vm=yE(Vm,e,t,n,r,i),!0;case"dragenter":return Gm=yE(Gm,e,t,n,r,i),!0;case"mouseover":return Wm=yE(Wm,e,t,n,r,i),!0;case"pointerover":var o=i.pointerId;return Ww.set(o,yE(Ww.get(o)||null,e,t,n,r,i)),!0;case"gotpointercapture":return o=i.pointerId,qw.set(o,yE(qw.get(o)||null,e,t,n,r,i)),!0}return!1}function Age(e){var t=A1(e.target);if(t!==null){var n=c0(t);if(n!==null){if(t=n.tag,t===13){if(t=bge(n),t!==null){e.blockedOn=t,Ige(e.priority,function(){Oge(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 YI(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=eF(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);Y7=r,n.target.dispatchEvent(r),Y7=null}else return t=Lx(n),t!==null&&nG(t),e.blockedOn=n,!1;t.shift()}return!0}function UZ(e,t,n){YI(e)&&n.delete(t)}function q9e(){J7=!1,Vm!==null&&YI(Vm)&&(Vm=null),Gm!==null&&YI(Gm)&&(Gm=null),Wm!==null&&YI(Wm)&&(Wm=null),Ww.forEach(UZ),qw.forEach(UZ)}function _E(e,t){e.blockedOn===t&&(e.blockedOn=null,J7||(J7=!0,yc.unstable_scheduleCallback(yc.unstable_NormalPriority,q9e)))}function Yw(e){function t(i){return _E(i,e)}if(0<UO.length){_E(UO[0],e);for(var n=1;n<UO.length;n++){var r=UO[n];r.blockedOn===e&&(r.blockedOn=null)}}for(Vm!==null&&_E(Vm,e),Gm!==null&&_E(Gm,e),Wm!==null&&_E(Wm,e),Ww.forEach(t),qw.forEach(t),n=0;n<gm.length;n++)r=gm[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<gm.length&&(n=gm[0],n.blockedOn===null);)Age(n),n.blockedOn===null&&gm.shift()}var hy=gh.ReactCurrentBatchConfig,AN=!0;function Y9e(e,t,n,r){var i=wi,o=hy.transition;hy.transition=null;try{wi=1,rG(e,t,n,r)}finally{wi=i,hy.transition=o}}function K9e(e,t,n,r){var i=wi,o=hy.transition;hy.transition=null;try{wi=4,rG(e,t,n,r)}finally{wi=i,hy.transition=o}}function rG(e,t,n,r){if(AN){var i=eF(e,t,n,r);if(i===null)h8(e,t,r,NN,n),HZ(e,r);else if(W9e(i,e,t,n,r))r.stopPropagation();else if(HZ(e,r),t&4&&-1<G9e.indexOf(e)){for(;i!==null;){var o=Lx(i);if(o!==null&&xge(o),o=eF(e,t,n,r),o===null&&h8(e,t,r,NN,n),o===i)break;i=o}i!==null&&r.stopPropagation()}else h8(e,t,r,null,n)}}var NN=null;function eF(e,t,n,r){if(NN=null,e=JV(r),e=A1(e),e!==null)if(t=c0(e),t===null)e=null;else if(n=t.tag,n===13){if(e=bge(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 NN=e,null}function Nge(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(L9e()){case eG:return 1;case Ege:return 4;case RN:case $9e:return 16;case Cge:return 536870912;default:return 16}default:return 16}}var Om=null,iG=null,KI=null;function Mge(){if(KI)return KI;var e,t=iG,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 KI=i.slice(e,1<r?1-r:void 0)}function QI(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 zO(){return!0}function zZ(){return!1}function Oc(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)?zO:zZ,this.isPropagationStopped=zZ,this}return No(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=zO)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=zO)},persist:function(){},isPersistent:zO}),t}var tS={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},oG=Oc(tS),Dx=No({},tS,{view:0,detail:0}),Q9e=Oc(Dx),o8,a8,SE,j4=No({},Dx,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:aG,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!==SE&&(SE&&e.type==="mousemove"?(o8=e.screenX-SE.screenX,a8=e.screenY-SE.screenY):a8=o8=0,SE=e),o8)},movementY:function(e){return"movementY"in e?e.movementY:a8}}),VZ=Oc(j4),X9e=No({},j4,{dataTransfer:0}),Z9e=Oc(X9e),J9e=No({},Dx,{relatedTarget:0}),s8=Oc(J9e),e8e=No({},tS,{animationName:0,elapsedTime:0,pseudoElement:0}),t8e=Oc(e8e),n8e=No({},tS,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),r8e=Oc(n8e),i8e=No({},tS,{data:0}),GZ=Oc(i8e),o8e={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},a8e={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"},s8e={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function l8e(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=s8e[e])?!!t[e]:!1}function aG(){return l8e}var c8e=No({},Dx,{key:function(e){if(e.key){var t=o8e[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=QI(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?a8e[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:aG,charCode:function(e){return e.type==="keypress"?QI(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?QI(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),u8e=Oc(c8e),d8e=No({},j4,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),WZ=Oc(d8e),f8e=No({},Dx,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:aG}),p8e=Oc(f8e),h8e=No({},tS,{propertyName:0,elapsedTime:0,pseudoElement:0}),m8e=Oc(h8e),g8e=No({},j4,{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}),v8e=Oc(g8e),b8e=[9,13,27,32],sG=Zp&&"CompositionEvent"in window,WC=null;Zp&&"documentMode"in document&&(WC=document.documentMode);var y8e=Zp&&"TextEvent"in window&&!WC,kge=Zp&&(!sG||WC&&8<WC&&11>=WC),qZ=" ",YZ=!1;function Pge(e,t){switch(e){case"keyup":return b8e.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Dge(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Hb=!1;function _8e(e,t){switch(e){case"compositionend":return Dge(t);case"keypress":return t.which!==32?null:(YZ=!0,qZ);case"textInput":return e=t.data,e===qZ&&YZ?null:e;default:return null}}function S8e(e,t){if(Hb)return e==="compositionend"||!sG&&Pge(e,t)?(e=Mge(),KI=iG=Om=null,Hb=!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 kge&&t.locale!=="ko"?null:t.data;default:return null}}var E8e={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 KZ(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!E8e[e.type]:t==="textarea"}function Lge(e,t,n,r){pge(r),t=MN(t,"onChange"),0<t.length&&(n=new oG("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var qC=null,Kw=null;function C8e(e){qge(e,0)}function H4(e){var t=Vb(e);if(age(t))return e}function w8e(e,t){if(e==="change")return t}var $ge=!1;if(Zp){var l8;if(Zp){var c8="oninput"in document;if(!c8){var QZ=document.createElement("div");QZ.setAttribute("oninput","return;"),c8=typeof QZ.oninput=="function"}l8=c8}else l8=!1;$ge=l8&&(!document.documentMode||9<document.documentMode)}function XZ(){qC&&(qC.detachEvent("onpropertychange",Fge),Kw=qC=null)}function Fge(e){if(e.propertyName==="value"&&H4(Kw)){var t=[];Lge(t,Kw,e,JV(e)),vge(C8e,t)}}function T8e(e,t,n){e==="focusin"?(XZ(),qC=t,Kw=n,qC.attachEvent("onpropertychange",Fge)):e==="focusout"&&XZ()}function x8e(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return H4(Kw)}function O8e(e,t){if(e==="click")return H4(t)}function R8e(e,t){if(e==="input"||e==="change")return H4(t)}function I8e(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var _d=typeof Object.is=="function"?Object.is:I8e;function Qw(e,t){if(_d(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(!L7.call(t,i)||!_d(e[i],t[i]))return!1}return!0}function ZZ(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function JZ(e,t){var n=ZZ(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=ZZ(n)}}function Bge(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Bge(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function jge(){for(var e=window,t=TN();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=TN(e.document)}return t}function lG(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 A8e(e){var t=jge(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Bge(n.ownerDocument.documentElement,n)){if(r!==null&&lG(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=JZ(n,o);var a=JZ(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 N8e=Zp&&"documentMode"in document&&11>=document.documentMode,Ub=null,tF=null,YC=null,nF=!1;function eJ(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;nF||Ub==null||Ub!==TN(r)||(r=Ub,"selectionStart"in r&&lG(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}),YC&&Qw(YC,r)||(YC=r,r=MN(tF,"onSelect"),0<r.length&&(t=new oG("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=Ub)))}function VO(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var zb={animationend:VO("Animation","AnimationEnd"),animationiteration:VO("Animation","AnimationIteration"),animationstart:VO("Animation","AnimationStart"),transitionend:VO("Transition","TransitionEnd")},u8={},Hge={};Zp&&(Hge=document.createElement("div").style,"AnimationEvent"in window||(delete zb.animationend.animation,delete zb.animationiteration.animation,delete zb.animationstart.animation),"TransitionEvent"in window||delete zb.transitionend.transition);function U4(e){if(u8[e])return u8[e];if(!zb[e])return e;var t=zb[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Hge)return u8[e]=t[n];return e}var Uge=U4("animationend"),zge=U4("animationiteration"),Vge=U4("animationstart"),Gge=U4("transitionend"),Wge=new Map,tJ="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 Cg(e,t){Wge.set(e,t),l0(t,[e])}for(var d8=0;d8<tJ.length;d8++){var f8=tJ[d8],M8e=f8.toLowerCase(),k8e=f8[0].toUpperCase()+f8.slice(1);Cg(M8e,"on"+k8e)}Cg(Uge,"onAnimationEnd");Cg(zge,"onAnimationIteration");Cg(Vge,"onAnimationStart");Cg("dblclick","onDoubleClick");Cg("focusin","onFocus");Cg("focusout","onBlur");Cg(Gge,"onTransitionEnd");Ky("onMouseEnter",["mouseout","mouseover"]);Ky("onMouseLeave",["mouseout","mouseover"]);Ky("onPointerEnter",["pointerout","pointerover"]);Ky("onPointerLeave",["pointerout","pointerover"]);l0("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));l0("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));l0("onBeforeInput",["compositionend","keypress","textInput","paste"]);l0("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));l0("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));l0("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var EC="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(" "),P8e=new Set("cancel close invalid load scroll toggle".split(" ").concat(EC));function nJ(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,M9e(r,t,void 0,e),e.currentTarget=null}function qge(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;nJ(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;nJ(i,s,c),o=l}}}if(ON)throw e=X7,ON=!1,X7=null,e}function to(e,t){var n=t[sF];n===void 0&&(n=t[sF]=new Set);var r=e+"__bubble";n.has(r)||(Yge(t,e,2,!1),n.add(r))}function p8(e,t,n){var r=0;t&&(r|=4),Yge(n,e,r,t)}var GO="_reactListening"+Math.random().toString(36).slice(2);function Xw(e){if(!e[GO]){e[GO]=!0,tge.forEach(function(n){n!=="selectionchange"&&(P8e.has(n)||p8(n,!1,e),p8(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[GO]||(t[GO]=!0,p8("selectionchange",!1,t))}}function Yge(e,t,n,r){switch(Nge(t)){case 1:var i=Y9e;break;case 4:i=K9e;break;default:i=rG}n=i.bind(null,t,n,e),i=void 0,!Q7||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 h8(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=A1(s),a===null)return;if(l=a.tag,l===5||l===6){r=o=a;continue e}s=s.parentNode}}r=r.return}vge(function(){var c=o,u=JV(n),d=[];e:{var f=Wge.get(e);if(f!==void 0){var h=oG,m=e;switch(e){case"keypress":if(QI(n)===0)break e;case"keydown":case"keyup":h=u8e;break;case"focusin":m="focus",h=s8;break;case"focusout":m="blur",h=s8;break;case"beforeblur":case"afterblur":h=s8;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":h=VZ;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":h=Z9e;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":h=p8e;break;case Uge:case zge:case Vge:h=t8e;break;case Gge:h=m8e;break;case"scroll":h=Q9e;break;case"wheel":h=v8e;break;case"copy":case"cut":case"paste":h=r8e;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":h=WZ}var g=(t&4)!==0,v=!g&&e==="scroll",y=g?f!==null?f+"Capture":null:f;g=[];for(var b=c,_;b!==null;){_=b;var E=_.stateNode;if(_.tag===5&&E!==null&&(_=E,y!==null&&(E=Gw(b,y),E!=null&&g.push(Zw(b,E,_)))),v)break;b=b.return}0<g.length&&(f=new h(f,m,null,n,u),d.push({event:f,listeners:g}))}}if(!(t&7)){e:{if(f=e==="mouseover"||e==="pointerover",h=e==="mouseout"||e==="pointerout",f&&n!==Y7&&(m=n.relatedTarget||n.fromElement)&&(A1(m)||m[Jp]))break e;if((h||f)&&(f=u.window===u?u:(f=u.ownerDocument)?f.defaultView||f.parentWindow:window,h?(m=n.relatedTarget||n.toElement,h=c,m=m?A1(m):null,m!==null&&(v=c0(m),m!==v||m.tag!==5&&m.tag!==6)&&(m=null)):(h=null,m=c),h!==m)){if(g=VZ,E="onMouseLeave",y="onMouseEnter",b="mouse",(e==="pointerout"||e==="pointerover")&&(g=WZ,E="onPointerLeave",y="onPointerEnter",b="pointer"),v=h==null?f:Vb(h),_=m==null?f:Vb(m),f=new g(E,b+"leave",h,n,u),f.target=v,f.relatedTarget=_,E=null,A1(u)===c&&(g=new g(y,b+"enter",m,n,u),g.target=_,g.relatedTarget=v,E=g),v=E,h&&m)t:{for(g=h,y=m,b=0,_=g;_;_=V0(_))b++;for(_=0,E=y;E;E=V0(E))_++;for(;0<b-_;)g=V0(g),b--;for(;0<_-b;)y=V0(y),_--;for(;b--;){if(g===y||y!==null&&g===y.alternate)break t;g=V0(g),y=V0(y)}g=null}else g=null;h!==null&&rJ(d,f,h,g,!1),m!==null&&v!==null&&rJ(d,v,m,g,!0)}}e:{if(f=c?Vb(c):window,h=f.nodeName&&f.nodeName.toLowerCase(),h==="select"||h==="input"&&f.type==="file")var w=w8e;else if(KZ(f))if($ge)w=R8e;else{w=x8e;var S=T8e}else(h=f.nodeName)&&h.toLowerCase()==="input"&&(f.type==="checkbox"||f.type==="radio")&&(w=O8e);if(w&&(w=w(e,c))){Lge(d,w,n,u);break e}S&&S(e,f,c),e==="focusout"&&(S=f._wrapperState)&&S.controlled&&f.type==="number"&&z7(f,"number",f.value)}switch(S=c?Vb(c):window,e){case"focusin":(KZ(S)||S.contentEditable==="true")&&(Ub=S,tF=c,YC=null);break;case"focusout":YC=tF=Ub=null;break;case"mousedown":nF=!0;break;case"contextmenu":case"mouseup":case"dragend":nF=!1,eJ(d,n,u);break;case"selectionchange":if(N8e)break;case"keydown":case"keyup":eJ(d,n,u)}var C;if(sG)e:{switch(e){case"compositionstart":var T="onCompositionStart";break e;case"compositionend":T="onCompositionEnd";break e;case"compositionupdate":T="onCompositionUpdate";break e}T=void 0}else Hb?Pge(e,n)&&(T="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(T="onCompositionStart");T&&(kge&&n.locale!=="ko"&&(Hb||T!=="onCompositionStart"?T==="onCompositionEnd"&&Hb&&(C=Mge()):(Om=u,iG="value"in Om?Om.value:Om.textContent,Hb=!0)),S=MN(c,T),0<S.length&&(T=new GZ(T,e,null,n,u),d.push({event:T,listeners:S}),C?T.data=C:(C=Dge(n),C!==null&&(T.data=C)))),(C=y8e?_8e(e,n):S8e(e,n))&&(c=MN(c,"onBeforeInput"),0<c.length&&(u=new GZ("onBeforeInput","beforeinput",null,n,u),d.push({event:u,listeners:c}),u.data=C))}qge(d,t)})}function Zw(e,t,n){return{instance:e,listener:t,currentTarget:n}}function MN(e,t){for(var n=t+"Capture",r=[];e!==null;){var i=e,o=i.stateNode;i.tag===5&&o!==null&&(i=o,o=Gw(e,n),o!=null&&r.unshift(Zw(e,o,i)),o=Gw(e,t),o!=null&&r.push(Zw(e,o,i))),e=e.return}return r}function V0(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function rJ(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=Gw(n,o),l!=null&&a.unshift(Zw(n,l,s))):i||(l=Gw(n,o),l!=null&&a.push(Zw(n,l,s)))),n=n.return}a.length!==0&&e.push({event:t,listeners:a})}var D8e=/\r\n?/g,L8e=/\u0000|\uFFFD/g;function iJ(e){return(typeof e=="string"?e:""+e).replace(D8e,`
`).replace(L8e,"")}function WO(e,t,n){if(t=iJ(t),iJ(e)!==t&&n)throw Error(un(425))}function kN(){}var rF=null,iF=null;function oF(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 aF=typeof setTimeout=="function"?setTimeout:void 0,$8e=typeof clearTimeout=="function"?clearTimeout:void 0,oJ=typeof Promise=="function"?Promise:void 0,F8e=typeof queueMicrotask=="function"?queueMicrotask:typeof oJ<"u"?function(e){return oJ.resolve(null).then(e).catch(B8e)}:aF;function B8e(e){setTimeout(function(){throw e})}function m8(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),Yw(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=i}while(n);Yw(t)}function qm(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 aJ(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 nS=Math.random().toString(36).slice(2),mf="__reactFiber$"+nS,Jw="__reactProps$"+nS,Jp="__reactContainer$"+nS,sF="__reactEvents$"+nS,j8e="__reactListeners$"+nS,H8e="__reactHandles$"+nS;function A1(e){var t=e[mf];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Jp]||n[mf]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=aJ(e);e!==null;){if(n=e[mf])return n;e=aJ(e)}return t}e=n,n=e.parentNode}return null}function Lx(e){return e=e[mf]||e[Jp],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Vb(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(un(33))}function z4(e){return e[Jw]||null}var lF=[],Gb=-1;function wg(e){return{current:e}}function so(e){0>Gb||(e.current=lF[Gb],lF[Gb]=null,Gb--)}function Yi(e,t){Gb++,lF[Gb]=e.current,e.current=t}var dg={},As=wg(dg),Tl=wg(!1),xv=dg;function Qy(e,t){var n=e.type.contextTypes;if(!n)return dg;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 xl(e){return e=e.childContextTypes,e!=null}function PN(){so(Tl),so(As)}function sJ(e,t,n){if(As.current!==dg)throw Error(un(168));Yi(As,t),Yi(Tl,n)}function Kge(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(un(108,T9e(e)||"Unknown",i));return No({},n,r)}function DN(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||dg,xv=As.current,Yi(As,e),Yi(Tl,Tl.current),!0}function lJ(e,t,n){var r=e.stateNode;if(!r)throw Error(un(169));n?(e=Kge(e,t,xv),r.__reactInternalMemoizedMergedChildContext=e,so(Tl),so(As),Yi(As,e)):so(Tl),Yi(Tl,n)}var kp=null,V4=!1,g8=!1;function Qge(e){kp===null?kp=[e]:kp.push(e)}function U8e(e){V4=!0,Qge(e)}function Tg(){if(!g8&&kp!==null){g8=!0;var e=0,t=wi;try{var n=kp;for(wi=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}kp=null,V4=!1}catch(i){throw kp!==null&&(kp=kp.slice(e+1)),Sge(eG,Tg),i}finally{wi=t,g8=!1}}return null}var Wb=[],qb=0,LN=null,$N=0,Qc=[],Xc=0,Ov=null,$p=1,Fp="";function f1(e,t){Wb[qb++]=$N,Wb[qb++]=LN,LN=e,$N=t}function Xge(e,t,n){Qc[Xc++]=$p,Qc[Xc++]=Fp,Qc[Xc++]=Ov,Ov=e;var r=$p;e=Fp;var i=32-ld(r)-1;r&=~(1<<i),n+=1;var o=32-ld(t)+i;if(30<o){var a=i-i%5;o=(r&(1<<a)-1).toString(32),r>>=a,i-=a,$p=1<<32-ld(t)+i|n<<i|r,Fp=o+e}else $p=1<<o|n<<i|r,Fp=e}function cG(e){e.return!==null&&(f1(e,1),Xge(e,1,0))}function uG(e){for(;e===LN;)LN=Wb[--qb],Wb[qb]=null,$N=Wb[--qb],Wb[qb]=null;for(;e===Ov;)Ov=Qc[--Xc],Qc[Xc]=null,Fp=Qc[--Xc],Qc[Xc]=null,$p=Qc[--Xc],Qc[Xc]=null}var gc=null,fc=null,yo=!1,Zu=null;function Zge(e,t){var n=ru(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 cJ(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,gc=e,fc=qm(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,gc=e,fc=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=Ov!==null?{id:$p,overflow:Fp}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=ru(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,gc=e,fc=null,!0):!1;default:return!1}}function cF(e){return(e.mode&1)!==0&&(e.flags&128)===0}function uF(e){if(yo){var t=fc;if(t){var n=t;if(!cJ(e,t)){if(cF(e))throw Error(un(418));t=qm(n.nextSibling);var r=gc;t&&cJ(e,t)?Zge(r,n):(e.flags=e.flags&-4097|2,yo=!1,gc=e)}}else{if(cF(e))throw Error(un(418));e.flags=e.flags&-4097|2,yo=!1,gc=e}}}function uJ(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;gc=e}function qO(e){if(e!==gc)return!1;if(!yo)return uJ(e),yo=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!oF(e.type,e.memoizedProps)),t&&(t=fc)){if(cF(e))throw Jge(),Error(un(418));for(;t;)Zge(e,t),t=qm(t.nextSibling)}if(uJ(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(un(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){fc=qm(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}fc=null}}else fc=gc?qm(e.stateNode.nextSibling):null;return!0}function Jge(){for(var e=fc;e;)e=qm(e.nextSibling)}function Xy(){fc=gc=null,yo=!1}function dG(e){Zu===null?Zu=[e]:Zu.push(e)}var z8e=gh.ReactCurrentBatchConfig;function EE(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(un(309));var r=n.stateNode}if(!r)throw Error(un(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(un(284));if(!n._owner)throw Error(un(290,e))}return e}function YO(e,t){throw e=Object.prototype.toString.call(t),Error(un(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function dJ(e){var t=e._init;return t(e._payload)}function e1e(e){function t(y,b){if(e){var _=y.deletions;_===null?(y.deletions=[b],y.flags|=16):_.push(b)}}function n(y,b){if(!e)return null;for(;b!==null;)t(y,b),b=b.sibling;return null}function r(y,b){for(y=new Map;b!==null;)b.key!==null?y.set(b.key,b):y.set(b.index,b),b=b.sibling;return y}function i(y,b){return y=Xm(y,b),y.index=0,y.sibling=null,y}function o(y,b,_){return y.index=_,e?(_=y.alternate,_!==null?(_=_.index,_<b?(y.flags|=2,b):_):(y.flags|=2,b)):(y.flags|=1048576,b)}function a(y){return e&&y.alternate===null&&(y.flags|=2),y}function s(y,b,_,E){return b===null||b.tag!==6?(b=C8(_,y.mode,E),b.return=y,b):(b=i(b,_),b.return=y,b)}function l(y,b,_,E){var w=_.type;return w===jb?u(y,b,_.props.children,E,_.key):b!==null&&(b.elementType===w||typeof w=="object"&&w!==null&&w.$$typeof===lm&&dJ(w)===b.type)?(E=i(b,_.props),E.ref=EE(y,b,_),E.return=y,E):(E=rA(_.type,_.key,_.props,null,y.mode,E),E.ref=EE(y,b,_),E.return=y,E)}function c(y,b,_,E){return b===null||b.tag!==4||b.stateNode.containerInfo!==_.containerInfo||b.stateNode.implementation!==_.implementation?(b=w8(_,y.mode,E),b.return=y,b):(b=i(b,_.children||[]),b.return=y,b)}function u(y,b,_,E,w){return b===null||b.tag!==7?(b=nv(_,y.mode,E,w),b.return=y,b):(b=i(b,_),b.return=y,b)}function d(y,b,_){if(typeof b=="string"&&b!==""||typeof b=="number")return b=C8(""+b,y.mode,_),b.return=y,b;if(typeof b=="object"&&b!==null){switch(b.$$typeof){case $O:return _=rA(b.type,b.key,b.props,null,y.mode,_),_.ref=EE(y,null,b),_.return=y,_;case Bb:return b=w8(b,y.mode,_),b.return=y,b;case lm:var E=b._init;return d(y,E(b._payload),_)}if(_C(b)||vE(b))return b=nv(b,y.mode,_,null),b.return=y,b;YO(y,b)}return null}function f(y,b,_,E){var w=b!==null?b.key:null;if(typeof _=="string"&&_!==""||typeof _=="number")return w!==null?null:s(y,b,""+_,E);if(typeof _=="object"&&_!==null){switch(_.$$typeof){case $O:return _.key===w?l(y,b,_,E):null;case Bb:return _.key===w?c(y,b,_,E):null;case lm:return w=_._init,f(y,b,w(_._payload),E)}if(_C(_)||vE(_))return w!==null?null:u(y,b,_,E,null);YO(y,_)}return null}function h(y,b,_,E,w){if(typeof E=="string"&&E!==""||typeof E=="number")return y=y.get(_)||null,s(b,y,""+E,w);if(typeof E=="object"&&E!==null){switch(E.$$typeof){case $O:return y=y.get(E.key===null?_:E.key)||null,l(b,y,E,w);case Bb:return y=y.get(E.key===null?_:E.key)||null,c(b,y,E,w);case lm:var S=E._init;return h(y,b,_,S(E._payload),w)}if(_C(E)||vE(E))return y=y.get(_)||null,u(b,y,E,w,null);YO(b,E)}return null}function m(y,b,_,E){for(var w=null,S=null,C=b,T=b=0,x=null;C!==null&&T<_.length;T++){C.index>T?(x=C,C=null):x=C.sibling;var O=f(y,C,_[T],E);if(O===null){C===null&&(C=x);break}e&&C&&O.alternate===null&&t(y,C),b=o(O,b,T),S===null?w=O:S.sibling=O,S=O,C=x}if(T===_.length)return n(y,C),yo&&f1(y,T),w;if(C===null){for(;T<_.length;T++)C=d(y,_[T],E),C!==null&&(b=o(C,b,T),S===null?w=C:S.sibling=C,S=C);return yo&&f1(y,T),w}for(C=r(y,C);T<_.length;T++)x=h(C,y,T,_[T],E),x!==null&&(e&&x.alternate!==null&&C.delete(x.key===null?T:x.key),b=o(x,b,T),S===null?w=x:S.sibling=x,S=x);return e&&C.forEach(function(N){return t(y,N)}),yo&&f1(y,T),w}function g(y,b,_,E){var w=vE(_);if(typeof w!="function")throw Error(un(150));if(_=w.call(_),_==null)throw Error(un(151));for(var S=w=null,C=b,T=b=0,x=null,O=_.next();C!==null&&!O.done;T++,O=_.next()){C.index>T?(x=C,C=null):x=C.sibling;var N=f(y,C,O.value,E);if(N===null){C===null&&(C=x);break}e&&C&&N.alternate===null&&t(y,C),b=o(N,b,T),S===null?w=N:S.sibling=N,S=N,C=x}if(O.done)return n(y,C),yo&&f1(y,T),w;if(C===null){for(;!O.done;T++,O=_.next())O=d(y,O.value,E),O!==null&&(b=o(O,b,T),S===null?w=O:S.sibling=O,S=O);return yo&&f1(y,T),w}for(C=r(y,C);!O.done;T++,O=_.next())O=h(C,y,T,O.value,E),O!==null&&(e&&O.alternate!==null&&C.delete(O.key===null?T:O.key),b=o(O,b,T),S===null?w=O:S.sibling=O,S=O);return e&&C.forEach(function(I){return t(y,I)}),yo&&f1(y,T),w}function v(y,b,_,E){if(typeof _=="object"&&_!==null&&_.type===jb&&_.key===null&&(_=_.props.children),typeof _=="object"&&_!==null){switch(_.$$typeof){case $O:e:{for(var w=_.key,S=b;S!==null;){if(S.key===w){if(w=_.type,w===jb){if(S.tag===7){n(y,S.sibling),b=i(S,_.props.children),b.return=y,y=b;break e}}else if(S.elementType===w||typeof w=="object"&&w!==null&&w.$$typeof===lm&&dJ(w)===S.type){n(y,S.sibling),b=i(S,_.props),b.ref=EE(y,S,_),b.return=y,y=b;break e}n(y,S);break}else t(y,S);S=S.sibling}_.type===jb?(b=nv(_.props.children,y.mode,E,_.key),b.return=y,y=b):(E=rA(_.type,_.key,_.props,null,y.mode,E),E.ref=EE(y,b,_),E.return=y,y=E)}return a(y);case Bb:e:{for(S=_.key;b!==null;){if(b.key===S)if(b.tag===4&&b.stateNode.containerInfo===_.containerInfo&&b.stateNode.implementation===_.implementation){n(y,b.sibling),b=i(b,_.children||[]),b.return=y,y=b;break e}else{n(y,b);break}else t(y,b);b=b.sibling}b=w8(_,y.mode,E),b.return=y,y=b}return a(y);case lm:return S=_._init,v(y,b,S(_._payload),E)}if(_C(_))return m(y,b,_,E);if(vE(_))return g(y,b,_,E);YO(y,_)}return typeof _=="string"&&_!==""||typeof _=="number"?(_=""+_,b!==null&&b.tag===6?(n(y,b.sibling),b=i(b,_),b.return=y,y=b):(n(y,b),b=C8(_,y.mode,E),b.return=y,y=b),a(y)):n(y,b)}return v}var Zy=e1e(!0),t1e=e1e(!1),FN=wg(null),BN=null,Yb=null,fG=null;function pG(){fG=Yb=BN=null}function hG(e){var t=FN.current;so(FN),e._currentValue=t}function dF(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 my(e,t){BN=e,fG=Yb=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Cl=!0),e.firstContext=null)}function fu(e){var t=e._currentValue;if(fG!==e)if(e={context:e,memoizedValue:t,next:null},Yb===null){if(BN===null)throw Error(un(308));Yb=e,BN.dependencies={lanes:0,firstContext:e}}else Yb=Yb.next=e;return t}var N1=null;function mG(e){N1===null?N1=[e]:N1.push(e)}function n1e(e,t,n,r){var i=t.interleaved;return i===null?(n.next=n,mG(t)):(n.next=i.next,i.next=n),t.interleaved=n,eh(e,r)}function eh(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 cm=!1;function gG(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function r1e(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 Gp(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Ym(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,si&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,eh(e,n)}return i=r.interleaved,i===null?(t.next=t,mG(r)):(t.next=i.next,i.next=t),r.interleaved=t,eh(e,n)}function XI(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,tG(e,n)}}function fJ(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 jN(e,t,n,r){var i=e.updateQueue;cm=!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 f=s.lane,h=s.eventTime;if((r&f)===f){u!==null&&(u=u.next={eventTime:h,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var m=e,g=s;switch(f=t,h=n,g.tag){case 1:if(m=g.payload,typeof m=="function"){d=m.call(h,d,f);break e}d=m;break e;case 3:m.flags=m.flags&-65537|128;case 0:if(m=g.payload,f=typeof m=="function"?m.call(h,d,f):m,f==null)break e;d=No({},d,f);break e;case 2:cm=!0}}s.callback!==null&&s.lane!==0&&(e.flags|=64,f=i.effects,f===null?i.effects=[s]:f.push(s))}else h={eventTime:h,lane:f,tag:s.tag,payload:s.payload,callback:s.callback,next:null},u===null?(c=u=h,l=d):u=u.next=h,a|=f;if(s=s.next,s===null){if(s=i.shared.pending,s===null)break;f=s,s=f.next,f.next=null,i.lastBaseUpdate=f,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);Iv|=a,e.lanes=a,e.memoizedState=d}}function pJ(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(un(191,i));i.call(r)}}}var $x={},Af=wg($x),eT=wg($x),tT=wg($x);function M1(e){if(e===$x)throw Error(un(174));return e}function vG(e,t){switch(Yi(tT,t),Yi(eT,e),Yi(Af,$x),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:G7(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=G7(t,e)}so(Af),Yi(Af,t)}function Jy(){so(Af),so(eT),so(tT)}function i1e(e){M1(tT.current);var t=M1(Af.current),n=G7(t,e.type);t!==n&&(Yi(eT,e),Yi(Af,n))}function bG(e){eT.current===e&&(so(Af),so(eT))}var Oo=wg(0);function HN(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 v8=[];function yG(){for(var e=0;e<v8.length;e++)v8[e]._workInProgressVersionPrimary=null;v8.length=0}var ZI=gh.ReactCurrentDispatcher,b8=gh.ReactCurrentBatchConfig,Rv=0,Ao=null,_a=null,Da=null,UN=!1,KC=!1,nT=0,V8e=0;function ms(){throw Error(un(321))}function _G(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!_d(e[n],t[n]))return!1;return!0}function SG(e,t,n,r,i,o){if(Rv=o,Ao=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,ZI.current=e===null||e.memoizedState===null?Y8e:K8e,e=n(r,i),KC){o=0;do{if(KC=!1,nT=0,25<=o)throw Error(un(301));o+=1,Da=_a=null,t.updateQueue=null,ZI.current=Q8e,e=n(r,i)}while(KC)}if(ZI.current=zN,t=_a!==null&&_a.next!==null,Rv=0,Da=_a=Ao=null,UN=!1,t)throw Error(un(300));return e}function EG(){var e=nT!==0;return nT=0,e}function ef(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Da===null?Ao.memoizedState=Da=e:Da=Da.next=e,Da}function pu(){if(_a===null){var e=Ao.alternate;e=e!==null?e.memoizedState:null}else e=_a.next;var t=Da===null?Ao.memoizedState:Da.next;if(t!==null)Da=t,_a=e;else{if(e===null)throw Error(un(310));_a=e,e={memoizedState:_a.memoizedState,baseState:_a.baseState,baseQueue:_a.baseQueue,queue:_a.queue,next:null},Da===null?Ao.memoizedState=Da=e:Da=Da.next=e}return Da}function rT(e,t){return typeof t=="function"?t(e):t}function y8(e){var t=pu(),n=t.queue;if(n===null)throw Error(un(311));n.lastRenderedReducer=e;var r=_a,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((Rv&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,Ao.lanes|=u,Iv|=u}c=c.next}while(c!==null&&c!==o);l===null?a=r:l.next=s,_d(r,t.memoizedState)||(Cl=!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,Ao.lanes|=o,Iv|=o,i=i.next;while(i!==e)}else i===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function _8(e){var t=pu(),n=t.queue;if(n===null)throw Error(un(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);_d(o,t.memoizedState)||(Cl=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function o1e(){}function a1e(e,t){var n=Ao,r=pu(),i=t(),o=!_d(r.memoizedState,i);if(o&&(r.memoizedState=i,Cl=!0),r=r.queue,CG(c1e.bind(null,n,r,e),[e]),r.getSnapshot!==t||o||Da!==null&&Da.memoizedState.tag&1){if(n.flags|=2048,iT(9,l1e.bind(null,n,r,i,t),void 0,null),ja===null)throw Error(un(349));Rv&30||s1e(n,t,i)}return i}function s1e(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=Ao.updateQueue,t===null?(t={lastEffect:null,stores:null},Ao.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function l1e(e,t,n,r){t.value=n,t.getSnapshot=r,u1e(t)&&d1e(e)}function c1e(e,t,n){return n(function(){u1e(t)&&d1e(e)})}function u1e(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!_d(e,n)}catch{return!0}}function d1e(e){var t=eh(e,1);t!==null&&cd(t,e,1,-1)}function hJ(e){var t=ef();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:rT,lastRenderedState:e},t.queue=e,e=e.dispatch=q8e.bind(null,Ao,e),[t.memoizedState,e]}function iT(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=Ao.updateQueue,t===null?(t={lastEffect:null,stores:null},Ao.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 f1e(){return pu().memoizedState}function JI(e,t,n,r){var i=ef();Ao.flags|=e,i.memoizedState=iT(1|t,n,void 0,r===void 0?null:r)}function G4(e,t,n,r){var i=pu();r=r===void 0?null:r;var o=void 0;if(_a!==null){var a=_a.memoizedState;if(o=a.destroy,r!==null&&_G(r,a.deps)){i.memoizedState=iT(t,n,o,r);return}}Ao.flags|=e,i.memoizedState=iT(1|t,n,o,r)}function mJ(e,t){return JI(8390656,8,e,t)}function CG(e,t){return G4(2048,8,e,t)}function p1e(e,t){return G4(4,2,e,t)}function h1e(e,t){return G4(4,4,e,t)}function m1e(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 g1e(e,t,n){return n=n!=null?n.concat([e]):null,G4(4,4,m1e.bind(null,t,e),n)}function wG(){}function v1e(e,t){var n=pu();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&_G(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function b1e(e,t){var n=pu();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&_G(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function y1e(e,t,n){return Rv&21?(_d(n,t)||(n=wge(),Ao.lanes|=n,Iv|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,Cl=!0),e.memoizedState=n)}function G8e(e,t){var n=wi;wi=n!==0&&4>n?n:4,e(!0);var r=b8.transition;b8.transition={};try{e(!1),t()}finally{wi=n,b8.transition=r}}function _1e(){return pu().memoizedState}function W8e(e,t,n){var r=Qm(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},S1e(e))E1e(t,n);else if(n=n1e(e,t,n,r),n!==null){var i=Ks();cd(n,e,r,i),C1e(n,t,r)}}function q8e(e,t,n){var r=Qm(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(S1e(e))E1e(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,_d(s,a)){var l=t.interleaved;l===null?(i.next=i,mG(t)):(i.next=l.next,l.next=i),t.interleaved=i;return}}catch{}finally{}n=n1e(e,t,i,r),n!==null&&(i=Ks(),cd(n,e,r,i),C1e(n,t,r))}}function S1e(e){var t=e.alternate;return e===Ao||t!==null&&t===Ao}function E1e(e,t){KC=UN=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function C1e(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,tG(e,n)}}var zN={readContext:fu,useCallback:ms,useContext:ms,useEffect:ms,useImperativeHandle:ms,useInsertionEffect:ms,useLayoutEffect:ms,useMemo:ms,useReducer:ms,useRef:ms,useState:ms,useDebugValue:ms,useDeferredValue:ms,useTransition:ms,useMutableSource:ms,useSyncExternalStore:ms,useId:ms,unstable_isNewReconciler:!1},Y8e={readContext:fu,useCallback:function(e,t){return ef().memoizedState=[e,t===void 0?null:t],e},useContext:fu,useEffect:mJ,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,JI(4194308,4,m1e.bind(null,t,e),n)},useLayoutEffect:function(e,t){return JI(4194308,4,e,t)},useInsertionEffect:function(e,t){return JI(4,2,e,t)},useMemo:function(e,t){var n=ef();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=ef();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=W8e.bind(null,Ao,e),[r.memoizedState,e]},useRef:function(e){var t=ef();return e={current:e},t.memoizedState=e},useState:hJ,useDebugValue:wG,useDeferredValue:function(e){return ef().memoizedState=e},useTransition:function(){var e=hJ(!1),t=e[0];return e=G8e.bind(null,e[1]),ef().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Ao,i=ef();if(yo){if(n===void 0)throw Error(un(407));n=n()}else{if(n=t(),ja===null)throw Error(un(349));Rv&30||s1e(r,t,n)}i.memoizedState=n;var o={value:n,getSnapshot:t};return i.queue=o,mJ(c1e.bind(null,r,o,e),[e]),r.flags|=2048,iT(9,l1e.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=ef(),t=ja.identifierPrefix;if(yo){var n=Fp,r=$p;n=(r&~(1<<32-ld(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=nT++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=V8e++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},K8e={readContext:fu,useCallback:v1e,useContext:fu,useEffect:CG,useImperativeHandle:g1e,useInsertionEffect:p1e,useLayoutEffect:h1e,useMemo:b1e,useReducer:y8,useRef:f1e,useState:function(){return y8(rT)},useDebugValue:wG,useDeferredValue:function(e){var t=pu();return y1e(t,_a.memoizedState,e)},useTransition:function(){var e=y8(rT)[0],t=pu().memoizedState;return[e,t]},useMutableSource:o1e,useSyncExternalStore:a1e,useId:_1e,unstable_isNewReconciler:!1},Q8e={readContext:fu,useCallback:v1e,useContext:fu,useEffect:CG,useImperativeHandle:g1e,useInsertionEffect:p1e,useLayoutEffect:h1e,useMemo:b1e,useReducer:_8,useRef:f1e,useState:function(){return _8(rT)},useDebugValue:wG,useDeferredValue:function(e){var t=pu();return _a===null?t.memoizedState=e:y1e(t,_a.memoizedState,e)},useTransition:function(){var e=_8(rT)[0],t=pu().memoizedState;return[e,t]},useMutableSource:o1e,useSyncExternalStore:a1e,useId:_1e,unstable_isNewReconciler:!1};function Gu(e,t){if(e&&e.defaultProps){t=No({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function fF(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:No({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var W4={isMounted:function(e){return(e=e._reactInternals)?c0(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Ks(),i=Qm(e),o=Gp(r,i);o.payload=t,n!=null&&(o.callback=n),t=Ym(e,o,i),t!==null&&(cd(t,e,i,r),XI(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Ks(),i=Qm(e),o=Gp(r,i);o.tag=1,o.payload=t,n!=null&&(o.callback=n),t=Ym(e,o,i),t!==null&&(cd(t,e,i,r),XI(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Ks(),r=Qm(e),i=Gp(n,r);i.tag=2,t!=null&&(i.callback=t),t=Ym(e,i,r),t!==null&&(cd(t,e,r,n),XI(t,e,r))}};function gJ(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?!Qw(n,r)||!Qw(i,o):!0}function w1e(e,t,n){var r=!1,i=dg,o=t.contextType;return typeof o=="object"&&o!==null?o=fu(o):(i=xl(t)?xv:As.current,r=t.contextTypes,o=(r=r!=null)?Qy(e,i):dg),t=new t(n,o),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=W4,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=o),t}function vJ(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&&W4.enqueueReplaceState(t,t.state,null)}function pF(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs={},gG(e);var o=t.contextType;typeof o=="object"&&o!==null?i.context=fu(o):(o=xl(t)?xv:As.current,i.context=Qy(e,o)),i.state=e.memoizedState,o=t.getDerivedStateFromProps,typeof o=="function"&&(fF(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&&W4.enqueueReplaceState(i,i.state,null),jN(e,n,i,r),i.state=e.memoizedState),typeof i.componentDidMount=="function"&&(e.flags|=4194308)}function e_(e,t){try{var n="",r=t;do n+=w9e(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 S8(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function hF(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var X8e=typeof WeakMap=="function"?WeakMap:Map;function T1e(e,t,n){n=Gp(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){GN||(GN=!0,wF=r),hF(e,t)},n}function x1e(e,t,n){n=Gp(-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(){hF(e,t)}}var o=e.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(n.callback=function(){hF(e,t),typeof r!="function"&&(Km===null?Km=new Set([this]):Km.add(this));var a=t.stack;this.componentDidCatch(t.value,{componentStack:a!==null?a:""})}),n}function bJ(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new X8e;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=dLe.bind(null,e,t,n),t.then(e,e))}function yJ(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 _J(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=Gp(-1,1),t.tag=2,Ym(n,t,1))),n.lanes|=1),e)}var Z8e=gh.ReactCurrentOwner,Cl=!1;function Us(e,t,n,r){t.child=e===null?t1e(t,null,n,r):Zy(t,e.child,n,r)}function SJ(e,t,n,r,i){n=n.render;var o=t.ref;return my(t,i),r=SG(e,t,n,r,o,i),n=EG(),e!==null&&!Cl?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,th(e,t,i)):(yo&&n&&cG(t),t.flags|=1,Us(e,t,r,i),t.child)}function EJ(e,t,n,r,i){if(e===null){var o=n.type;return typeof o=="function"&&!MG(o)&&o.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=o,O1e(e,t,o,r,i)):(e=rA(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:Qw,n(a,r)&&e.ref===t.ref)return th(e,t,i)}return t.flags|=1,e=Xm(o,r),e.ref=t.ref,e.return=t,t.child=e}function O1e(e,t,n,r,i){if(e!==null){var o=e.memoizedProps;if(Qw(o,r)&&e.ref===t.ref)if(Cl=!1,t.pendingProps=r=o,(e.lanes&i)!==0)e.flags&131072&&(Cl=!0);else return t.lanes=e.lanes,th(e,t,i)}return mF(e,t,n,r,i)}function R1e(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},Yi(Qb,ic),ic|=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,Yi(Qb,ic),ic|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=o!==null?o.baseLanes:n,Yi(Qb,ic),ic|=r}else o!==null?(r=o.baseLanes|n,t.memoizedState=null):r=n,Yi(Qb,ic),ic|=r;return Us(e,t,i,n),t.child}function I1e(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function mF(e,t,n,r,i){var o=xl(n)?xv:As.current;return o=Qy(t,o),my(t,i),n=SG(e,t,n,r,o,i),r=EG(),e!==null&&!Cl?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,th(e,t,i)):(yo&&r&&cG(t),t.flags|=1,Us(e,t,n,i),t.child)}function CJ(e,t,n,r,i){if(xl(n)){var o=!0;DN(t)}else o=!1;if(my(t,i),t.stateNode===null)eA(e,t),w1e(t,n,r),pF(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=fu(c):(c=xl(n)?xv:As.current,c=Qy(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)&&vJ(t,a,r,c),cm=!1;var f=t.memoizedState;a.state=f,jN(t,r,a,i),l=t.memoizedState,s!==r||f!==l||Tl.current||cm?(typeof u=="function"&&(fF(t,n,u,r),l=t.memoizedState),(s=cm||gJ(t,n,s,r,f,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,r1e(e,t),s=t.memoizedProps,c=t.type===t.elementType?s:Gu(t.type,s),a.props=c,d=t.pendingProps,f=a.context,l=n.contextType,typeof l=="object"&&l!==null?l=fu(l):(l=xl(n)?xv:As.current,l=Qy(t,l));var h=n.getDerivedStateFromProps;(u=typeof h=="function"||typeof a.getSnapshotBeforeUpdate=="function")||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(s!==d||f!==l)&&vJ(t,a,r,l),cm=!1,f=t.memoizedState,a.state=f,jN(t,r,a,i);var m=t.memoizedState;s!==d||f!==m||Tl.current||cm?(typeof h=="function"&&(fF(t,n,h,r),m=t.memoizedState),(c=cm||gJ(t,n,c,r,f,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&&f===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&f===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&&f===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return gF(e,t,n,r,o,i)}function gF(e,t,n,r,i,o){I1e(e,t);var a=(t.flags&128)!==0;if(!r&&!a)return i&&lJ(t,n,!1),th(e,t,o);r=t.stateNode,Z8e.current=t;var s=a&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&a?(t.child=Zy(t,e.child,null,o),t.child=Zy(t,null,s,o)):Us(e,t,s,o),t.memoizedState=r.state,i&&lJ(t,n,!0),t.child}function A1e(e){var t=e.stateNode;t.pendingContext?sJ(e,t.pendingContext,t.pendingContext!==t.context):t.context&&sJ(e,t.context,!1),vG(e,t.containerInfo)}function wJ(e,t,n,r,i){return Xy(),dG(i),t.flags|=256,Us(e,t,n,r),t.child}var vF={dehydrated:null,treeContext:null,retryLane:0};function bF(e){return{baseLanes:e,cachePool:null,transitions:null}}function N1e(e,t,n){var r=t.pendingProps,i=Oo.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),Yi(Oo,i&1),e===null)return uF(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=K4(a,r,0,null),e=nv(e,r,n,null),o.return=t,e.return=t,o.sibling=e,t.child=o,t.child.memoizedState=bF(n),t.memoizedState=vF,e):TG(t,a));if(i=e.memoizedState,i!==null&&(s=i.dehydrated,s!==null))return J8e(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=Xm(i,l),r.subtreeFlags=i.subtreeFlags&14680064),s!==null?o=Xm(s,o):(o=nv(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?bF(n):{baseLanes:a.baseLanes|n,cachePool:null,transitions:a.transitions},o.memoizedState=a,o.childLanes=e.childLanes&~n,t.memoizedState=vF,r}return o=e.child,e=o.sibling,r=Xm(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 TG(e,t){return t=K4({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function KO(e,t,n,r){return r!==null&&dG(r),Zy(t,e.child,null,n),e=TG(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function J8e(e,t,n,r,i,o,a){if(n)return t.flags&256?(t.flags&=-257,r=S8(Error(un(422))),KO(e,t,a,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(o=r.fallback,i=t.mode,r=K4({mode:"visible",children:r.children},i,0,null),o=nv(o,i,a,null),o.flags|=2,r.return=t,o.return=t,r.sibling=o,t.child=r,t.mode&1&&Zy(t,e.child,null,a),t.child.memoizedState=bF(a),t.memoizedState=vF,o);if(!(t.mode&1))return KO(e,t,a,null);if(i.data==="$!"){if(r=i.nextSibling&&i.nextSibling.dataset,r)var s=r.dgst;return r=s,o=Error(un(419)),r=S8(o,r,void 0),KO(e,t,a,r)}if(s=(a&e.childLanes)!==0,Cl||s){if(r=ja,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,eh(e,i),cd(r,e,i,-1))}return NG(),r=S8(Error(un(421))),KO(e,t,a,r)}return i.data==="$?"?(t.flags|=128,t.child=e.child,t=fLe.bind(null,e),i._reactRetry=t,null):(e=o.treeContext,fc=qm(i.nextSibling),gc=t,yo=!0,Zu=null,e!==null&&(Qc[Xc++]=$p,Qc[Xc++]=Fp,Qc[Xc++]=Ov,$p=e.id,Fp=e.overflow,Ov=t),t=TG(t,r.children),t.flags|=4096,t)}function TJ(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),dF(e.return,t,n)}function E8(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 M1e(e,t,n){var r=t.pendingProps,i=r.revealOrder,o=r.tail;if(Us(e,t,r.children,n),r=Oo.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&&TJ(e,n,t);else if(e.tag===19)TJ(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(Yi(Oo,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&&HN(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),E8(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&&HN(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}E8(t,!0,n,null,o);break;case"together":E8(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function eA(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function th(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Iv|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(un(153));if(t.child!==null){for(e=t.child,n=Xm(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Xm(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function eLe(e,t,n){switch(t.tag){case 3:A1e(t),Xy();break;case 5:i1e(t);break;case 1:xl(t.type)&&DN(t);break;case 4:vG(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;Yi(FN,r._currentValue),r._currentValue=i;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(Yi(Oo,Oo.current&1),t.flags|=128,null):n&t.child.childLanes?N1e(e,t,n):(Yi(Oo,Oo.current&1),e=th(e,t,n),e!==null?e.sibling:null);Yi(Oo,Oo.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return M1e(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),Yi(Oo,Oo.current),r)break;return null;case 22:case 23:return t.lanes=0,R1e(e,t,n)}return th(e,t,n)}var k1e,yF,P1e,D1e;k1e=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}};yF=function(){};P1e=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,M1(Af.current);var o=null;switch(n){case"input":i=H7(e,i),r=H7(e,r),o=[];break;case"select":i=No({},i,{value:void 0}),r=No({},r,{value:void 0}),o=[];break;case"textarea":i=V7(e,i),r=V7(e,r),o=[];break;default:typeof i.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=kN)}W7(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"&&(zw.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"&&(zw.hasOwnProperty(c)?(l!=null&&c==="onScroll"&&to("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)}};D1e=function(e,t,n,r){n!==r&&(t.flags|=4)};function CE(e,t){if(!yo)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 gs(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 tLe(e,t,n){var r=t.pendingProps;switch(uG(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return gs(t),null;case 1:return xl(t.type)&&PN(),gs(t),null;case 3:return r=t.stateNode,Jy(),so(Tl),so(As),yG(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(qO(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Zu!==null&&(OF(Zu),Zu=null))),yF(e,t),gs(t),null;case 5:bG(t);var i=M1(tT.current);if(n=t.type,e!==null&&t.stateNode!=null)P1e(e,t,n,r,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(un(166));return gs(t),null}if(e=M1(Af.current),qO(t)){r=t.stateNode,n=t.type;var o=t.memoizedProps;switch(r[mf]=t,r[Jw]=o,e=(t.mode&1)!==0,n){case"dialog":to("cancel",r),to("close",r);break;case"iframe":case"object":case"embed":to("load",r);break;case"video":case"audio":for(i=0;i<EC.length;i++)to(EC[i],r);break;case"source":to("error",r);break;case"img":case"image":case"link":to("error",r),to("load",r);break;case"details":to("toggle",r);break;case"input":PZ(r,o),to("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!o.multiple},to("invalid",r);break;case"textarea":LZ(r,o),to("invalid",r)}W7(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&&WO(r.textContent,s,e),i=["children",s]):typeof s=="number"&&r.textContent!==""+s&&(o.suppressHydrationWarning!==!0&&WO(r.textContent,s,e),i=["children",""+s]):zw.hasOwnProperty(a)&&s!=null&&a==="onScroll"&&to("scroll",r)}switch(n){case"input":FO(r),DZ(r,o,!0);break;case"textarea":FO(r),$Z(r);break;case"select":case"option":break;default:typeof o.onClick=="function"&&(r.onclick=kN)}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=cge(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[mf]=t,e[Jw]=r,k1e(e,t,!1,!1),t.stateNode=e;e:{switch(a=q7(n,r),n){case"dialog":to("cancel",e),to("close",e),i=r;break;case"iframe":case"object":case"embed":to("load",e),i=r;break;case"video":case"audio":for(i=0;i<EC.length;i++)to(EC[i],e);i=r;break;case"source":to("error",e),i=r;break;case"img":case"image":case"link":to("error",e),to("load",e),i=r;break;case"details":to("toggle",e),i=r;break;case"input":PZ(e,r),i=H7(e,r),to("invalid",e);break;case"option":i=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},i=No({},r,{value:void 0}),to("invalid",e);break;case"textarea":LZ(e,r),i=V7(e,r),to("invalid",e);break;default:i=r}W7(n,i),s=i;for(o in s)if(s.hasOwnProperty(o)){var l=s[o];o==="style"?fge(e,l):o==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,l!=null&&uge(e,l)):o==="children"?typeof l=="string"?(n!=="textarea"||l!=="")&&Vw(e,l):typeof l=="number"&&Vw(e,""+l):o!=="suppressContentEditableWarning"&&o!=="suppressHydrationWarning"&&o!=="autoFocus"&&(zw.hasOwnProperty(o)?l!=null&&o==="onScroll"&&to("scroll",e):l!=null&&KV(e,o,l,a))}switch(n){case"input":FO(e),DZ(e,r,!1);break;case"textarea":FO(e),$Z(e);break;case"option":r.value!=null&&e.setAttribute("value",""+ug(r.value));break;case"select":e.multiple=!!r.multiple,o=r.value,o!=null?dy(e,!!r.multiple,o,!1):r.defaultValue!=null&&dy(e,!!r.multiple,r.defaultValue,!0);break;default:typeof i.onClick=="function"&&(e.onclick=kN)}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 gs(t),null;case 6:if(e&&t.stateNode!=null)D1e(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(un(166));if(n=M1(tT.current),M1(Af.current),qO(t)){if(r=t.stateNode,n=t.memoizedProps,r[mf]=t,(o=r.nodeValue!==n)&&(e=gc,e!==null))switch(e.tag){case 3:WO(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&WO(r.nodeValue,n,(e.mode&1)!==0)}o&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[mf]=t,t.stateNode=r}return gs(t),null;case 13:if(so(Oo),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(yo&&fc!==null&&t.mode&1&&!(t.flags&128))Jge(),Xy(),t.flags|=98560,o=!1;else if(o=qO(t),r!==null&&r.dehydrated!==null){if(e===null){if(!o)throw Error(un(318));if(o=t.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(un(317));o[mf]=t}else Xy(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;gs(t),o=!1}else Zu!==null&&(OF(Zu),Zu=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||Oo.current&1?Ea===0&&(Ea=3):NG())),t.updateQueue!==null&&(t.flags|=4),gs(t),null);case 4:return Jy(),yF(e,t),e===null&&Xw(t.stateNode.containerInfo),gs(t),null;case 10:return hG(t.type._context),gs(t),null;case 17:return xl(t.type)&&PN(),gs(t),null;case 19:if(so(Oo),o=t.memoizedState,o===null)return gs(t),null;if(r=(t.flags&128)!==0,a=o.rendering,a===null)if(r)CE(o,!1);else{if(Ea!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(a=HN(e),a!==null){for(t.flags|=128,CE(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 Yi(Oo,Oo.current&1|2),t.child}e=e.sibling}o.tail!==null&&Jo()>t_&&(t.flags|=128,r=!0,CE(o,!1),t.lanes=4194304)}else{if(!r)if(e=HN(a),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),CE(o,!0),o.tail===null&&o.tailMode==="hidden"&&!a.alternate&&!yo)return gs(t),null}else 2*Jo()-o.renderingStartTime>t_&&n!==1073741824&&(t.flags|=128,r=!0,CE(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=Jo(),t.sibling=null,n=Oo.current,Yi(Oo,r?n&1|2:n&1),t):(gs(t),null);case 22:case 23:return AG(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?ic&1073741824&&(gs(t),t.subtreeFlags&6&&(t.flags|=8192)):gs(t),null;case 24:return null;case 25:return null}throw Error(un(156,t.tag))}function nLe(e,t){switch(uG(t),t.tag){case 1:return xl(t.type)&&PN(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Jy(),so(Tl),so(As),yG(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return bG(t),null;case 13:if(so(Oo),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(un(340));Xy()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return so(Oo),null;case 4:return Jy(),null;case 10:return hG(t.type._context),null;case 22:case 23:return AG(),null;case 24:return null;default:return null}}var QO=!1,Cs=!1,rLe=typeof WeakSet=="function"?WeakSet:Set,Un=null;function Kb(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){jo(e,t,r)}else n.current=null}function _F(e,t,n){try{n()}catch(r){jo(e,t,r)}}var xJ=!1;function iLe(e,t){if(rF=AN,e=jge(),lG(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,f=null;t:for(;;){for(var h;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),(h=d.firstChild)!==null;)f=d,d=h;for(;;){if(d===e)break t;if(f===n&&++c===i&&(s=a),f===o&&++u===r&&(l=a),(h=d.nextSibling)!==null)break;d=f,f=d.parentNode}d=h}n=s===-1||l===-1?null:{start:s,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(iF={focusedElem:e,selectionRange:n},AN=!1,Un=t;Un!==null;)if(t=Un,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Un=e;else for(;Un!==null;){t=Un;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 g=m.memoizedProps,v=m.memoizedState,y=t.stateNode,b=y.getSnapshotBeforeUpdate(t.elementType===t.type?g:Gu(t.type,g),v);y.__reactInternalSnapshotBeforeUpdate=b}break;case 3:var _=t.stateNode.containerInfo;_.nodeType===1?_.textContent="":_.nodeType===9&&_.documentElement&&_.removeChild(_.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(un(163))}}catch(E){jo(t,t.return,E)}if(e=t.sibling,e!==null){e.return=t.return,Un=e;break}Un=t.return}return m=xJ,xJ=!1,m}function QC(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&&_F(t,n,o)}i=i.next}while(i!==r)}}function q4(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 SF(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 L1e(e){var t=e.alternate;t!==null&&(e.alternate=null,L1e(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[mf],delete t[Jw],delete t[sF],delete t[j8e],delete t[H8e])),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 $1e(e){return e.tag===5||e.tag===3||e.tag===4}function OJ(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||$1e(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 EF(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=kN));else if(r!==4&&(e=e.child,e!==null))for(EF(e,t,n),e=e.sibling;e!==null;)EF(e,t,n),e=e.sibling}function CF(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(CF(e,t,n),e=e.sibling;e!==null;)CF(e,t,n),e=e.sibling}var Ka=null,Yu=!1;function $h(e,t,n){for(n=n.child;n!==null;)F1e(e,t,n),n=n.sibling}function F1e(e,t,n){if(If&&typeof If.onCommitFiberUnmount=="function")try{If.onCommitFiberUnmount(B4,n)}catch{}switch(n.tag){case 5:Cs||Kb(n,t);case 6:var r=Ka,i=Yu;Ka=null,$h(e,t,n),Ka=r,Yu=i,Ka!==null&&(Yu?(e=Ka,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Ka.removeChild(n.stateNode));break;case 18:Ka!==null&&(Yu?(e=Ka,n=n.stateNode,e.nodeType===8?m8(e.parentNode,n):e.nodeType===1&&m8(e,n),Yw(e)):m8(Ka,n.stateNode));break;case 4:r=Ka,i=Yu,Ka=n.stateNode.containerInfo,Yu=!0,$h(e,t,n),Ka=r,Yu=i;break;case 0:case 11:case 14:case 15:if(!Cs&&(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)&&_F(n,t,a),i=i.next}while(i!==r)}$h(e,t,n);break;case 1:if(!Cs&&(Kb(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){jo(n,t,s)}$h(e,t,n);break;case 21:$h(e,t,n);break;case 22:n.mode&1?(Cs=(r=Cs)||n.memoizedState!==null,$h(e,t,n),Cs=r):$h(e,t,n);break;default:$h(e,t,n)}}function RJ(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new rLe),t.forEach(function(r){var i=pLe.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function Pu(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:Ka=s.stateNode,Yu=!1;break e;case 3:Ka=s.stateNode.containerInfo,Yu=!0;break e;case 4:Ka=s.stateNode.containerInfo,Yu=!0;break e}s=s.return}if(Ka===null)throw Error(un(160));F1e(o,a,i),Ka=null,Yu=!1;var l=i.alternate;l!==null&&(l.return=null),i.return=null}catch(c){jo(i,t,c)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)B1e(t,e),t=t.sibling}function B1e(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Pu(t,e),qd(e),r&4){try{QC(3,e,e.return),q4(3,e)}catch(g){jo(e,e.return,g)}try{QC(5,e,e.return)}catch(g){jo(e,e.return,g)}}break;case 1:Pu(t,e),qd(e),r&512&&n!==null&&Kb(n,n.return);break;case 5:if(Pu(t,e),qd(e),r&512&&n!==null&&Kb(n,n.return),e.flags&32){var i=e.stateNode;try{Vw(i,"")}catch(g){jo(e,e.return,g)}}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&&sge(i,o),q7(s,a);var c=q7(s,o);for(a=0;a<l.length;a+=2){var u=l[a],d=l[a+1];u==="style"?fge(i,d):u==="dangerouslySetInnerHTML"?uge(i,d):u==="children"?Vw(i,d):KV(i,u,d,c)}switch(s){case"input":U7(i,o);break;case"textarea":lge(i,o);break;case"select":var f=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!o.multiple;var h=o.value;h!=null?dy(i,!!o.multiple,h,!1):f!==!!o.multiple&&(o.defaultValue!=null?dy(i,!!o.multiple,o.defaultValue,!0):dy(i,!!o.multiple,o.multiple?[]:"",!1))}i[Jw]=o}catch(g){jo(e,e.return,g)}}break;case 6:if(Pu(t,e),qd(e),r&4){if(e.stateNode===null)throw Error(un(162));i=e.stateNode,o=e.memoizedProps;try{i.nodeValue=o}catch(g){jo(e,e.return,g)}}break;case 3:if(Pu(t,e),qd(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{Yw(t.containerInfo)}catch(g){jo(e,e.return,g)}break;case 4:Pu(t,e),qd(e);break;case 13:Pu(t,e),qd(e),i=e.child,i.flags&8192&&(o=i.memoizedState!==null,i.stateNode.isHidden=o,!o||i.alternate!==null&&i.alternate.memoizedState!==null||(RG=Jo())),r&4&&RJ(e);break;case 22:if(u=n!==null&&n.memoizedState!==null,e.mode&1?(Cs=(c=Cs)||u,Pu(t,e),Cs=c):Pu(t,e),qd(e),r&8192){if(c=e.memoizedState!==null,(e.stateNode.isHidden=c)&&!u&&e.mode&1)for(Un=e,u=e.child;u!==null;){for(d=Un=u;Un!==null;){switch(f=Un,h=f.child,f.tag){case 0:case 11:case 14:case 15:QC(4,f,f.return);break;case 1:Kb(f,f.return);var m=f.stateNode;if(typeof m.componentWillUnmount=="function"){r=f,n=f.return;try{t=r,m.props=t.memoizedProps,m.state=t.memoizedState,m.componentWillUnmount()}catch(g){jo(r,n,g)}}break;case 5:Kb(f,f.return);break;case 22:if(f.memoizedState!==null){AJ(d);continue}}h!==null?(h.return=f,Un=h):AJ(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=dge("display",a))}catch(g){jo(e,e.return,g)}}}else if(d.tag===6){if(u===null)try{d.stateNode.nodeValue=c?"":d.memoizedProps}catch(g){jo(e,e.return,g)}}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:Pu(t,e),qd(e),r&4&&RJ(e);break;case 21:break;default:Pu(t,e),qd(e)}}function qd(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if($1e(n)){var r=n;break e}n=n.return}throw Error(un(160))}switch(r.tag){case 5:var i=r.stateNode;r.flags&32&&(Vw(i,""),r.flags&=-33);var o=OJ(e);CF(e,o,i);break;case 3:case 4:var a=r.stateNode.containerInfo,s=OJ(e);EF(e,s,a);break;default:throw Error(un(161))}}catch(l){jo(e,e.return,l)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function oLe(e,t,n){Un=e,j1e(e)}function j1e(e,t,n){for(var r=(e.mode&1)!==0;Un!==null;){var i=Un,o=i.child;if(i.tag===22&&r){var a=i.memoizedState!==null||QO;if(!a){var s=i.alternate,l=s!==null&&s.memoizedState!==null||Cs;s=QO;var c=Cs;if(QO=a,(Cs=l)&&!c)for(Un=i;Un!==null;)a=Un,l=a.child,a.tag===22&&a.memoizedState!==null?NJ(i):l!==null?(l.return=a,Un=l):NJ(i);for(;o!==null;)Un=o,j1e(o),o=o.sibling;Un=i,QO=s,Cs=c}IJ(e)}else i.subtreeFlags&8772&&o!==null?(o.return=i,Un=o):IJ(e)}}function IJ(e){for(;Un!==null;){var t=Un;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:Cs||q4(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!Cs)if(n===null)r.componentDidMount();else{var i=t.elementType===t.type?n.memoizedProps:Gu(t.type,n.memoizedProps);r.componentDidUpdate(i,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var o=t.updateQueue;o!==null&&pJ(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}pJ(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&&Yw(d)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(un(163))}Cs||t.flags&512&&SF(t)}catch(f){jo(t,t.return,f)}}if(t===e){Un=null;break}if(n=t.sibling,n!==null){n.return=t.return,Un=n;break}Un=t.return}}function AJ(e){for(;Un!==null;){var t=Un;if(t===e){Un=null;break}var n=t.sibling;if(n!==null){n.return=t.return,Un=n;break}Un=t.return}}function NJ(e){for(;Un!==null;){var t=Un;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{q4(4,t)}catch(l){jo(t,n,l)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var i=t.return;try{r.componentDidMount()}catch(l){jo(t,i,l)}}var o=t.return;try{SF(t)}catch(l){jo(t,o,l)}break;case 5:var a=t.return;try{SF(t)}catch(l){jo(t,a,l)}}}catch(l){jo(t,t.return,l)}if(t===e){Un=null;break}var s=t.sibling;if(s!==null){s.return=t.return,Un=s;break}Un=t.return}}var aLe=Math.ceil,VN=gh.ReactCurrentDispatcher,xG=gh.ReactCurrentOwner,ou=gh.ReactCurrentBatchConfig,si=0,ja=null,fa=null,es=0,ic=0,Qb=wg(0),Ea=0,oT=null,Iv=0,Y4=0,OG=0,XC=null,_l=null,RG=0,t_=1/0,Tp=null,GN=!1,wF=null,Km=null,XO=!1,Rm=null,WN=0,ZC=0,TF=null,tA=-1,nA=0;function Ks(){return si&6?Jo():tA!==-1?tA:tA=Jo()}function Qm(e){return e.mode&1?si&2&&es!==0?es&-es:z8e.transition!==null?(nA===0&&(nA=wge()),nA):(e=wi,e!==0||(e=window.event,e=e===void 0?16:Nge(e.type)),e):1}function cd(e,t,n,r){if(50<ZC)throw ZC=0,TF=null,Error(un(185));Px(e,n,r),(!(si&2)||e!==ja)&&(e===ja&&(!(si&2)&&(Y4|=n),Ea===4&&vm(e,es)),Ol(e,r),n===1&&si===0&&!(t.mode&1)&&(t_=Jo()+500,V4&&Tg()))}function Ol(e,t){var n=e.callbackNode;z9e(e,t);var r=IN(e,e===ja?es:0);if(r===0)n!==null&&jZ(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&jZ(n),t===1)e.tag===0?U8e(MJ.bind(null,e)):Qge(MJ.bind(null,e)),F8e(function(){!(si&6)&&Tg()}),n=null;else{switch(Tge(r)){case 1:n=eG;break;case 4:n=Ege;break;case 16:n=RN;break;case 536870912:n=Cge;break;default:n=RN}n=Y1e(n,H1e.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function H1e(e,t){if(tA=-1,nA=0,si&6)throw Error(un(327));var n=e.callbackNode;if(gy()&&e.callbackNode!==n)return null;var r=IN(e,e===ja?es:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=qN(e,r);else{t=r;var i=si;si|=2;var o=z1e();(ja!==e||es!==t)&&(Tp=null,t_=Jo()+500,tv(e,t));do try{cLe();break}catch(s){U1e(e,s)}while(!0);pG(),VN.current=o,si=i,fa!==null?t=0:(ja=null,es=0,t=Ea)}if(t!==0){if(t===2&&(i=Z7(e),i!==0&&(r=i,t=xF(e,i))),t===1)throw n=oT,tv(e,0),vm(e,r),Ol(e,Jo()),n;if(t===6)vm(e,r);else{if(i=e.current.alternate,!(r&30)&&!sLe(i)&&(t=qN(e,r),t===2&&(o=Z7(e),o!==0&&(r=o,t=xF(e,o))),t===1))throw n=oT,tv(e,0),vm(e,r),Ol(e,Jo()),n;switch(e.finishedWork=i,e.finishedLanes=r,t){case 0:case 1:throw Error(un(345));case 2:p1(e,_l,Tp);break;case 3:if(vm(e,r),(r&130023424)===r&&(t=RG+500-Jo(),10<t)){if(IN(e,0)!==0)break;if(i=e.suspendedLanes,(i&r)!==r){Ks(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=aF(p1.bind(null,e,_l,Tp),t);break}p1(e,_l,Tp);break;case 4:if(vm(e,r),(r&4194240)===r)break;for(t=e.eventTimes,i=-1;0<r;){var a=31-ld(r);o=1<<a,a=t[a],a>i&&(i=a),r&=~o}if(r=i,r=Jo()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*aLe(r/1960))-r,10<r){e.timeoutHandle=aF(p1.bind(null,e,_l,Tp),r);break}p1(e,_l,Tp);break;case 5:p1(e,_l,Tp);break;default:throw Error(un(329))}}}return Ol(e,Jo()),e.callbackNode===n?H1e.bind(null,e):null}function xF(e,t){var n=XC;return e.current.memoizedState.isDehydrated&&(tv(e,t).flags|=256),e=qN(e,t),e!==2&&(t=_l,_l=n,t!==null&&OF(t)),e}function OF(e){_l===null?_l=e:_l.push.apply(_l,e)}function sLe(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(!_d(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 vm(e,t){for(t&=~OG,t&=~Y4,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-ld(t),r=1<<n;e[n]=-1,t&=~r}}function MJ(e){if(si&6)throw Error(un(327));gy();var t=IN(e,0);if(!(t&1))return Ol(e,Jo()),null;var n=qN(e,t);if(e.tag!==0&&n===2){var r=Z7(e);r!==0&&(t=r,n=xF(e,r))}if(n===1)throw n=oT,tv(e,0),vm(e,t),Ol(e,Jo()),n;if(n===6)throw Error(un(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,p1(e,_l,Tp),Ol(e,Jo()),null}function IG(e,t){var n=si;si|=1;try{return e(t)}finally{si=n,si===0&&(t_=Jo()+500,V4&&Tg())}}function Av(e){Rm!==null&&Rm.tag===0&&!(si&6)&&gy();var t=si;si|=1;var n=ou.transition,r=wi;try{if(ou.transition=null,wi=1,e)return e()}finally{wi=r,ou.transition=n,si=t,!(si&6)&&Tg()}}function AG(){ic=Qb.current,so(Qb)}function tv(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,$8e(n)),fa!==null)for(n=fa.return;n!==null;){var r=n;switch(uG(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&PN();break;case 3:Jy(),so(Tl),so(As),yG();break;case 5:bG(r);break;case 4:Jy();break;case 13:so(Oo);break;case 19:so(Oo);break;case 10:hG(r.type._context);break;case 22:case 23:AG()}n=n.return}if(ja=e,fa=e=Xm(e.current,null),es=ic=t,Ea=0,oT=null,OG=Y4=Iv=0,_l=XC=null,N1!==null){for(t=0;t<N1.length;t++)if(n=N1[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}N1=null}return e}function U1e(e,t){do{var n=fa;try{if(pG(),ZI.current=zN,UN){for(var r=Ao.memoizedState;r!==null;){var i=r.queue;i!==null&&(i.pending=null),r=r.next}UN=!1}if(Rv=0,Da=_a=Ao=null,KC=!1,nT=0,xG.current=null,n===null||n.return===null){Ea=1,oT=t,fa=null;break}e:{var o=e,a=n.return,s=n,l=t;if(t=es,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 f=u.alternate;f?(u.updateQueue=f.updateQueue,u.memoizedState=f.memoizedState,u.lanes=f.lanes):(u.updateQueue=null,u.memoizedState=null)}var h=yJ(a);if(h!==null){h.flags&=-257,_J(h,a,s,o,t),h.mode&1&&bJ(o,c,t),t=h,l=c;var m=t.updateQueue;if(m===null){var g=new Set;g.add(l),t.updateQueue=g}else m.add(l);break e}else{if(!(t&1)){bJ(o,c,t),NG();break e}l=Error(un(426))}}else if(yo&&s.mode&1){var v=yJ(a);if(v!==null){!(v.flags&65536)&&(v.flags|=256),_J(v,a,s,o,t),dG(e_(l,s));break e}}o=l=e_(l,s),Ea!==4&&(Ea=2),XC===null?XC=[o]:XC.push(o),o=a;do{switch(o.tag){case 3:o.flags|=65536,t&=-t,o.lanes|=t;var y=T1e(o,l,t);fJ(o,y);break e;case 1:s=l;var b=o.type,_=o.stateNode;if(!(o.flags&128)&&(typeof b.getDerivedStateFromError=="function"||_!==null&&typeof _.componentDidCatch=="function"&&(Km===null||!Km.has(_)))){o.flags|=65536,t&=-t,o.lanes|=t;var E=x1e(o,s,t);fJ(o,E);break e}}o=o.return}while(o!==null)}G1e(n)}catch(w){t=w,fa===n&&n!==null&&(fa=n=n.return);continue}break}while(!0)}function z1e(){var e=VN.current;return VN.current=zN,e===null?zN:e}function NG(){(Ea===0||Ea===3||Ea===2)&&(Ea=4),ja===null||!(Iv&268435455)&&!(Y4&268435455)||vm(ja,es)}function qN(e,t){var n=si;si|=2;var r=z1e();(ja!==e||es!==t)&&(Tp=null,tv(e,t));do try{lLe();break}catch(i){U1e(e,i)}while(!0);if(pG(),si=n,VN.current=r,fa!==null)throw Error(un(261));return ja=null,es=0,Ea}function lLe(){for(;fa!==null;)V1e(fa)}function cLe(){for(;fa!==null&&!P9e();)V1e(fa)}function V1e(e){var t=q1e(e.alternate,e,ic);e.memoizedProps=e.pendingProps,t===null?G1e(e):fa=t,xG.current=null}function G1e(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=nLe(n,t),n!==null){n.flags&=32767,fa=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{Ea=6,fa=null;return}}else if(n=tLe(n,t,ic),n!==null){fa=n;return}if(t=t.sibling,t!==null){fa=t;return}fa=t=e}while(t!==null);Ea===0&&(Ea=5)}function p1(e,t,n){var r=wi,i=ou.transition;try{ou.transition=null,wi=1,uLe(e,t,n,r)}finally{ou.transition=i,wi=r}return null}function uLe(e,t,n,r){do gy();while(Rm!==null);if(si&6)throw Error(un(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(un(177));e.callbackNode=null,e.callbackPriority=0;var o=n.lanes|n.childLanes;if(V9e(e,o),e===ja&&(fa=ja=null,es=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||XO||(XO=!0,Y1e(RN,function(){return gy(),null})),o=(n.flags&15990)!==0,n.subtreeFlags&15990||o){o=ou.transition,ou.transition=null;var a=wi;wi=1;var s=si;si|=4,xG.current=null,iLe(e,n),B1e(n,e),A8e(iF),AN=!!rF,iF=rF=null,e.current=n,oLe(n),D9e(),si=s,wi=a,ou.transition=o}else e.current=n;if(XO&&(XO=!1,Rm=e,WN=i),o=e.pendingLanes,o===0&&(Km=null),F9e(n.stateNode),Ol(e,Jo()),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(GN)throw GN=!1,e=wF,wF=null,e;return WN&1&&e.tag!==0&&gy(),o=e.pendingLanes,o&1?e===TF?ZC++:(ZC=0,TF=e):ZC=0,Tg(),null}function gy(){if(Rm!==null){var e=Tge(WN),t=ou.transition,n=wi;try{if(ou.transition=null,wi=16>e?16:e,Rm===null)var r=!1;else{if(e=Rm,Rm=null,WN=0,si&6)throw Error(un(331));var i=si;for(si|=4,Un=e.current;Un!==null;){var o=Un,a=o.child;if(Un.flags&16){var s=o.deletions;if(s!==null){for(var l=0;l<s.length;l++){var c=s[l];for(Un=c;Un!==null;){var u=Un;switch(u.tag){case 0:case 11:case 15:QC(8,u,o)}var d=u.child;if(d!==null)d.return=u,Un=d;else for(;Un!==null;){u=Un;var f=u.sibling,h=u.return;if(L1e(u),u===c){Un=null;break}if(f!==null){f.return=h,Un=f;break}Un=h}}}var m=o.alternate;if(m!==null){var g=m.child;if(g!==null){m.child=null;do{var v=g.sibling;g.sibling=null,g=v}while(g!==null)}}Un=o}}if(o.subtreeFlags&2064&&a!==null)a.return=o,Un=a;else e:for(;Un!==null;){if(o=Un,o.flags&2048)switch(o.tag){case 0:case 11:case 15:QC(9,o,o.return)}var y=o.sibling;if(y!==null){y.return=o.return,Un=y;break e}Un=o.return}}var b=e.current;for(Un=b;Un!==null;){a=Un;var _=a.child;if(a.subtreeFlags&2064&&_!==null)_.return=a,Un=_;else e:for(a=b;Un!==null;){if(s=Un,s.flags&2048)try{switch(s.tag){case 0:case 11:case 15:q4(9,s)}}catch(w){jo(s,s.return,w)}if(s===a){Un=null;break e}var E=s.sibling;if(E!==null){E.return=s.return,Un=E;break e}Un=s.return}}if(si=i,Tg(),If&&typeof If.onPostCommitFiberRoot=="function")try{If.onPostCommitFiberRoot(B4,e)}catch{}r=!0}return r}finally{wi=n,ou.transition=t}}return!1}function kJ(e,t,n){t=e_(n,t),t=T1e(e,t,1),e=Ym(e,t,1),t=Ks(),e!==null&&(Px(e,1,t),Ol(e,t))}function jo(e,t,n){if(e.tag===3)kJ(e,e,n);else for(;t!==null;){if(t.tag===3){kJ(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(Km===null||!Km.has(r))){e=e_(n,e),e=x1e(t,e,1),t=Ym(t,e,1),e=Ks(),t!==null&&(Px(t,1,e),Ol(t,e));break}}t=t.return}}function dLe(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=Ks(),e.pingedLanes|=e.suspendedLanes&n,ja===e&&(es&n)===n&&(Ea===4||Ea===3&&(es&130023424)===es&&500>Jo()-RG?tv(e,0):OG|=n),Ol(e,t)}function W1e(e,t){t===0&&(e.mode&1?(t=HO,HO<<=1,!(HO&130023424)&&(HO=4194304)):t=1);var n=Ks();e=eh(e,t),e!==null&&(Px(e,t,n),Ol(e,n))}function fLe(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),W1e(e,n)}function pLe(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(un(314))}r!==null&&r.delete(t),W1e(e,n)}var q1e;q1e=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Tl.current)Cl=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Cl=!1,eLe(e,t,n);Cl=!!(e.flags&131072)}else Cl=!1,yo&&t.flags&1048576&&Xge(t,$N,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;eA(e,t),e=t.pendingProps;var i=Qy(t,As.current);my(t,n),i=SG(null,t,r,e,i,n);var o=EG();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,xl(r)?(o=!0,DN(t)):o=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,gG(t),i.updater=W4,t.stateNode=i,i._reactInternals=t,pF(t,r,e,n),t=gF(null,t,r,!0,o,n)):(t.tag=0,yo&&o&&cG(t),Us(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(eA(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=mLe(r),e=Gu(r,e),i){case 0:t=mF(null,t,r,e,n);break e;case 1:t=CJ(null,t,r,e,n);break e;case 11:t=SJ(null,t,r,e,n);break e;case 14:t=EJ(null,t,r,Gu(r.type,e),n);break e}throw Error(un(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Gu(r,i),mF(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Gu(r,i),CJ(e,t,r,i,n);case 3:e:{if(A1e(t),e===null)throw Error(un(387));r=t.pendingProps,o=t.memoizedState,i=o.element,r1e(e,t),jN(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=e_(Error(un(423)),t),t=wJ(e,t,r,n,i);break e}else if(r!==i){i=e_(Error(un(424)),t),t=wJ(e,t,r,n,i);break e}else for(fc=qm(t.stateNode.containerInfo.firstChild),gc=t,yo=!0,Zu=null,n=t1e(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Xy(),r===i){t=th(e,t,n);break e}Us(e,t,r,n)}t=t.child}return t;case 5:return i1e(t),e===null&&uF(t),r=t.type,i=t.pendingProps,o=e!==null?e.memoizedProps:null,a=i.children,oF(r,i)?a=null:o!==null&&oF(r,o)&&(t.flags|=32),I1e(e,t),Us(e,t,a,n),t.child;case 6:return e===null&&uF(t),null;case 13:return N1e(e,t,n);case 4:return vG(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Zy(t,null,r,n):Us(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Gu(r,i),SJ(e,t,r,i,n);case 7:return Us(e,t,t.pendingProps,n),t.child;case 8:return Us(e,t,t.pendingProps.children,n),t.child;case 12:return Us(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,Yi(FN,r._currentValue),r._currentValue=a,o!==null)if(_d(o.value,a)){if(o.children===i.children&&!Tl.current){t=th(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=Gp(-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),dF(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(un(341));a.lanes|=n,s=a.alternate,s!==null&&(s.lanes|=n),dF(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}Us(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,my(t,n),i=fu(i),r=r(i),t.flags|=1,Us(e,t,r,n),t.child;case 14:return r=t.type,i=Gu(r,t.pendingProps),i=Gu(r.type,i),EJ(e,t,r,i,n);case 15:return O1e(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Gu(r,i),eA(e,t),t.tag=1,xl(r)?(e=!0,DN(t)):e=!1,my(t,n),w1e(t,r,i),pF(t,r,i,n),gF(null,t,r,!0,e,n);case 19:return M1e(e,t,n);case 22:return R1e(e,t,n)}throw Error(un(156,t.tag))};function Y1e(e,t){return Sge(e,t)}function hLe(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 ru(e,t,n,r){return new hLe(e,t,n,r)}function MG(e){return e=e.prototype,!(!e||!e.isReactComponent)}function mLe(e){if(typeof e=="function")return MG(e)?1:0;if(e!=null){if(e=e.$$typeof,e===XV)return 11;if(e===ZV)return 14}return 2}function Xm(e,t){var n=e.alternate;return n===null?(n=ru(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 rA(e,t,n,r,i,o){var a=2;if(r=e,typeof e=="function")MG(e)&&(a=1);else if(typeof e=="string")a=5;else e:switch(e){case jb:return nv(n.children,i,o,t);case QV:a=8,i|=8;break;case $7:return e=ru(12,n,t,i|2),e.elementType=$7,e.lanes=o,e;case F7:return e=ru(13,n,t,i),e.elementType=F7,e.lanes=o,e;case B7:return e=ru(19,n,t,i),e.elementType=B7,e.lanes=o,e;case ige:return K4(n,i,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case nge:a=10;break e;case rge:a=9;break e;case XV:a=11;break e;case ZV:a=14;break e;case lm:a=16,r=null;break e}throw Error(un(130,e==null?e:typeof e,""))}return t=ru(a,n,t,i),t.elementType=e,t.type=r,t.lanes=o,t}function nv(e,t,n,r){return e=ru(7,e,r,t),e.lanes=n,e}function K4(e,t,n,r){return e=ru(22,e,r,t),e.elementType=ige,e.lanes=n,e.stateNode={isHidden:!1},e}function C8(e,t,n){return e=ru(6,e,null,t),e.lanes=n,e}function w8(e,t,n){return t=ru(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function gLe(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=i8(0),this.expirationTimes=i8(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=i8(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function kG(e,t,n,r,i,o,a,s,l){return e=new gLe(e,t,n,s,l),t===1?(t=1,o===!0&&(t|=8)):t=0,o=ru(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},gG(o),e}function vLe(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Bb,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function K1e(e){if(!e)return dg;e=e._reactInternals;e:{if(c0(e)!==e||e.tag!==1)throw Error(un(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(xl(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(un(171))}if(e.tag===1){var n=e.type;if(xl(n))return Kge(e,n,t)}return t}function Q1e(e,t,n,r,i,o,a,s,l){return e=kG(n,r,!0,e,i,o,a,s,l),e.context=K1e(null),n=e.current,r=Ks(),i=Qm(n),o=Gp(r,i),o.callback=t??null,Ym(n,o,i),e.current.lanes=i,Px(e,i,r),Ol(e,r),e}function Q4(e,t,n,r){var i=t.current,o=Ks(),a=Qm(i);return n=K1e(n),t.context===null?t.context=n:t.pendingContext=n,t=Gp(o,a),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=Ym(i,t,a),e!==null&&(cd(e,i,a,o),XI(e,i,a)),a}function YN(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 PJ(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function PG(e,t){PJ(e,t),(e=e.alternate)&&PJ(e,t)}function bLe(){return null}var X1e=typeof reportError=="function"?reportError:function(e){console.error(e)};function DG(e){this._internalRoot=e}X4.prototype.render=DG.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(un(409));Q4(e,t,null,null)};X4.prototype.unmount=DG.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Av(function(){Q4(null,e,null,null)}),t[Jp]=null}};function X4(e){this._internalRoot=e}X4.prototype.unstable_scheduleHydration=function(e){if(e){var t=Rge();e={blockedOn:null,target:e,priority:t};for(var n=0;n<gm.length&&t!==0&&t<gm[n].priority;n++);gm.splice(n,0,e),n===0&&Age(e)}};function LG(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Z4(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function DJ(){}function yLe(e,t,n,r,i){if(i){if(typeof r=="function"){var o=r;r=function(){var c=YN(a);o.call(c)}}var a=Q1e(t,r,e,0,null,!1,!1,"",DJ);return e._reactRootContainer=a,e[Jp]=a.current,Xw(e.nodeType===8?e.parentNode:e),Av(),a}for(;i=e.lastChild;)e.removeChild(i);if(typeof r=="function"){var s=r;r=function(){var c=YN(l);s.call(c)}}var l=kG(e,0,!1,null,null,!1,!1,"",DJ);return e._reactRootContainer=l,e[Jp]=l.current,Xw(e.nodeType===8?e.parentNode:e),Av(function(){Q4(t,l,n,r)}),l}function J4(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=YN(a);s.call(l)}}Q4(t,a,e,i)}else a=yLe(n,t,e,i,r);return YN(a)}xge=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=SC(t.pendingLanes);n!==0&&(tG(t,n|1),Ol(t,Jo()),!(si&6)&&(t_=Jo()+500,Tg()))}break;case 13:Av(function(){var r=eh(e,1);if(r!==null){var i=Ks();cd(r,e,1,i)}}),PG(e,1)}};nG=function(e){if(e.tag===13){var t=eh(e,134217728);if(t!==null){var n=Ks();cd(t,e,134217728,n)}PG(e,134217728)}};Oge=function(e){if(e.tag===13){var t=Qm(e),n=eh(e,t);if(n!==null){var r=Ks();cd(n,e,t,r)}PG(e,t)}};Rge=function(){return wi};Ige=function(e,t){var n=wi;try{return wi=e,t()}finally{wi=n}};K7=function(e,t,n){switch(t){case"input":if(U7(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=z4(r);if(!i)throw Error(un(90));age(r),U7(r,i)}}}break;case"textarea":lge(e,n);break;case"select":t=n.value,t!=null&&dy(e,!!n.multiple,t,!1)}};mge=IG;gge=Av;var _Le={usingClientEntryPoint:!1,Events:[Lx,Vb,z4,pge,hge,IG]},wE={findFiberByHostInstance:A1,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},SLe={bundleType:wE.bundleType,version:wE.version,rendererPackageName:wE.rendererPackageName,rendererConfig:wE.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:gh.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=yge(e),e===null?null:e.stateNode},findFiberByHostInstance:wE.findFiberByHostInstance||bLe,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 ZO=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ZO.isDisabled&&ZO.supportsFiber)try{B4=ZO.inject(SLe),If=ZO}catch{}}xc.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=_Le;xc.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!LG(t))throw Error(un(200));return vLe(e,t,null,n)};xc.createRoot=function(e,t){if(!LG(e))throw Error(un(299));var n=!1,r="",i=X1e;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(i=t.onRecoverableError)),t=kG(e,1,!1,null,null,n,!1,r,i),e[Jp]=t.current,Xw(e.nodeType===8?e.parentNode:e),new DG(t)};xc.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(un(188)):(e=Object.keys(e).join(","),Error(un(268,e)));return e=yge(t),e=e===null?null:e.stateNode,e};xc.flushSync=function(e){return Av(e)};xc.hydrate=function(e,t,n){if(!Z4(t))throw Error(un(200));return J4(null,e,t,!0,n)};xc.hydrateRoot=function(e,t,n){if(!LG(e))throw Error(un(405));var r=n!=null&&n.hydratedSources||null,i=!1,o="",a=X1e;if(n!=null&&(n.unstable_strictMode===!0&&(i=!0),n.identifierPrefix!==void 0&&(o=n.identifierPrefix),n.onRecoverableError!==void 0&&(a=n.onRecoverableError)),t=Q1e(t,null,e,1,n??null,i,!1,o,a),e[Jp]=t.current,Xw(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 X4(t)};xc.render=function(e,t,n){if(!Z4(t))throw Error(un(200));return J4(null,e,t,!1,n)};xc.unmountComponentAtNode=function(e){if(!Z4(e))throw Error(un(40));return e._reactRootContainer?(Av(function(){J4(null,null,e,!1,function(){e._reactRootContainer=null,e[Jp]=null})}),!0):!1};xc.unstable_batchedUpdates=IG;xc.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Z4(n))throw Error(un(200));if(e==null||e._reactInternals===void 0)throw Error(un(38));return J4(e,t,n,!1,r)};xc.version="18.3.1-next-f1338f8080-20240426";function Z1e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Z1e)}catch(e){console.error(e)}}Z1e(),Zme.exports=xc;var Ml=Zme.exports;const aT=di(Ml),J1e=$4({__proto__:null,default:aT},[Ml]);var LJ=Ml;D7.createRoot=LJ.createRoot,D7.hydrateRoot=LJ.hydrateRoot;const ELe={BASE_URL:"/notebase",DEV:!1,MODE:"open",PROD:!0,SSR:!1,VITE_CONFIG_ENV:"prod-open"},$J=e=>{let t;const n=new Set,r=(u,d)=>{const f=typeof u=="function"?u(t):u;if(!Object.is(f,t)){const h=t;t=d??(typeof f!="object"||f===null)?f:Object.assign({},t,f),n.forEach(m=>m(t,h))}},i=()=>t,l={setState:r,getState:i,getInitialState:()=>c,subscribe:u=>(n.add(u),()=>n.delete(u)),destroy:()=>{(ELe?"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},CLe=e=>e?$J(e):$J;var eve={exports:{}},tve={},nve={exports:{}},rve={};/**
* @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 n_=p;function wLe(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var TLe=typeof Object.is=="function"?Object.is:wLe,xLe=n_.useState,OLe=n_.useEffect,RLe=n_.useLayoutEffect,ILe=n_.useDebugValue;function ALe(e,t){var n=t(),r=xLe({inst:{value:n,getSnapshot:t}}),i=r[0].inst,o=r[1];return RLe(function(){i.value=n,i.getSnapshot=t,T8(i)&&o({inst:i})},[e,n,t]),OLe(function(){return T8(i)&&o({inst:i}),e(function(){T8(i)&&o({inst:i})})},[e]),ILe(n),n}function T8(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!TLe(e,n)}catch{return!0}}function NLe(e,t){return t()}var MLe=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?NLe:ALe;rve.useSyncExternalStore=n_.useSyncExternalStore!==void 0?n_.useSyncExternalStore:MLe;nve.exports=rve;var ive=nve.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 eP=p,kLe=ive;function PLe(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var DLe=typeof Object.is=="function"?Object.is:PLe,LLe=kLe.useSyncExternalStore,$Le=eP.useRef,FLe=eP.useEffect,BLe=eP.useMemo,jLe=eP.useDebugValue;tve.useSyncExternalStoreWithSelector=function(e,t,n,r,i){var o=$Le(null);if(o.current===null){var a={hasValue:!1,value:null};o.current=a}else a=o.current;o=BLe(function(){function l(h){if(!c){if(c=!0,u=h,h=r(h),i!==void 0&&a.hasValue){var m=a.value;if(i(m,h))return d=m}return d=h}if(m=d,DLe(u,h))return m;var g=r(h);return i!==void 0&&i(m,g)?m:(u=h,d=g)}var c=!1,u,d,f=n===void 0?null:n;return[function(){return l(t())},f===null?void 0:function(){return l(f())}]},[t,n,r,i]);var s=LLe(e,o[0],o[1]);return FLe(function(){a.hasValue=!0,a.value=s},[s]),jLe(s),s};eve.exports=tve;var HLe=eve.exports;const ULe=di(HLe),ove={BASE_URL:"/notebase",DEV:!1,MODE:"open",PROD:!0,SSR:!1,VITE_CONFIG_ENV:"prod-open"},{useDebugValue:zLe}=ce,{useSyncExternalStoreWithSelector:VLe}=ULe;let FJ=!1;const GLe=e=>e;function WLe(e,t=GLe,n){(ove?"open":void 0)!=="production"&&n&&!FJ&&(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"),FJ=!0);const r=VLe(e.subscribe,e.getState,e.getServerState||e.getInitialState,t,n);return zLe(r),r}const BJ=e=>{(ove?"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"?CLe(e):e,n=(r,i)=>WLe(t,r,i);return Object.assign(n,t),n},Rc=e=>e?BJ(e):BJ,iA={BASE_URL:"/notebase",DEV:!1,MODE:"open",PROD:!0,SSR:!1,VITE_CONFIG_ENV:"prod-open"},RF=new Map,JO=e=>{const t=RF.get(e);return t?Object.fromEntries(Object.entries(t.stores).map(([n,r])=>[n,r.getState()])):{}},qLe=(e,t,n)=>{if(e===void 0)return{type:"untracked",connection:t.connect(n)};const r=RF.get(n.name);if(r)return{type:"tracked",store:e,...r};const i={connection:t.connect(n),stores:{}};return RF.set(n.name,i),{type:"tracked",store:e,...i}},YLe=(e,t={})=>(n,r,i)=>{const{enabled:o,anonymousActionType:a,store:s,...l}=t;let c;try{c=(o??(iA?"open":void 0)!=="production")&&window.__REDUX_DEVTOOLS_EXTENSION__}catch{}if(!c)return(iA?"open":void 0)!=="production"&&o&&console.warn("[zustand devtools middleware] Please install/enable Redux devtools extension"),e(n,r,i);const{connection:u,...d}=qLe(s,c,l);let f=!0;i.setState=(g,v,y)=>{const b=n(g,v);if(!f)return b;const _=y===void 0?{type:a||"anonymous"}:typeof y=="string"?{type:y}:y;return s===void 0?(u==null||u.send(_,r()),b):(u==null||u.send({..._,type:`${s}/${_.type}`},{...JO(l.name),[s]:i.getState()}),b)};const h=(...g)=>{const v=f;f=!1,n(...g),f=v},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(([g,v])=>[g,g===d.store?m:v.getState()])))),i.dispatchFromDevtools&&typeof i.dispatch=="function"){let g=!1;const v=i.dispatch;i.dispatch=(...y)=>{(iA?"open":void 0)!=="production"&&y[0].type==="__setState"&&!g&&(console.warn('[zustand devtools middleware] "__setState" action type is reserved to set state from the devtools. Avoid using it.'),g=!0),v(...y)}}return u.subscribe(g=>{var v;switch(g.type){case"ACTION":if(typeof g.payload!="string"){console.error("[zustand devtools middleware] Unsupported action format");return}return x8(g.payload,y=>{if(y.type==="__setState"){if(s===void 0){h(y.state);return}Object.keys(y.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=y.state[s];if(b==null)return;JSON.stringify(i.getState())!==JSON.stringify(b)&&h(b);return}i.dispatchFromDevtools&&typeof i.dispatch=="function"&&i.dispatch(y)});case"DISPATCH":switch(g.payload.type){case"RESET":return h(m),s===void 0?u==null?void 0:u.init(i.getState()):u==null?void 0:u.init(JO(l.name));case"COMMIT":if(s===void 0){u==null||u.init(i.getState());return}return u==null?void 0:u.init(JO(l.name));case"ROLLBACK":return x8(g.state,y=>{if(s===void 0){h(y),u==null||u.init(i.getState());return}h(y[s]),u==null||u.init(JO(l.name))});case"JUMP_TO_STATE":case"JUMP_TO_ACTION":return x8(g.state,y=>{if(s===void 0){h(y);return}JSON.stringify(i.getState())!==JSON.stringify(y[s])&&h(y[s])});case"IMPORT_STATE":{const{nextLiftedState:y}=g.payload,b=(v=y.computedStates.slice(-1)[0])==null?void 0:v.state;if(!b)return;h(s===void 0?b:b[s]),u==null||u.send(null,y);return}case"PAUSE_RECORDING":return f=!f}return}}),m},Md=YLe,x8=(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 KLe(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 sT=e=>t=>{try{const n=e(t);return n instanceof Promise?n:{then(r){return sT(r)(n)},catch(r){return this}}}catch(n){return{then(r){return this},catch(r){return sT(r)(n)}}}},QLe=(e,t)=>(n,r,i)=>{let o={getStorage:()=>localStorage,serialize:JSON.stringify,deserialize:JSON.parse,partialize:v=>v,version:0,merge:(v,y)=>({...y,...v}),...t},a=!1;const s=new Set,l=new Set;let c;try{c=o.getStorage()}catch{}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=sT(o.serialize),d=()=>{const v=o.partialize({...r()});let y;const b=u({state:v,version:o.version}).then(_=>c.setItem(o.name,_)).catch(_=>{y=_});if(y)throw y;return b},f=i.setState;i.setState=(v,y)=>{f(v,y),d()};const h=e((...v)=>{n(...v),d()},r,i);let m;const g=()=>{var v;if(!c)return;a=!1,s.forEach(b=>b(r()));const y=((v=o.onRehydrateStorage)==null?void 0:v.call(o,r()))||void 0;return sT(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 _;return m=o.merge(b,(_=r())!=null?_:h),n(m,!0),d()}).then(()=>{y==null||y(m,void 0),a=!0,l.forEach(b=>b(m))}).catch(b=>{y==null||y(void 0,b)})};return i.persist={setOptions:v=>{o={...o,...v},v.getStorage&&(c=v.getStorage())},clearStorage:()=>{c==null||c.removeItem(o.name)},getOptions:()=>o,rehydrate:()=>g(),hasHydrated:()=>a,onHydrate:v=>(s.add(v),()=>{s.delete(v)}),onFinishHydration:v=>(l.add(v),()=>{l.delete(v)})},g(),m||h},XLe=(e,t)=>(n,r,i)=>{let o={storage:KLe(()=>localStorage),partialize:g=>g,version:0,merge:(g,v)=>({...v,...g}),...t},a=!1;const s=new Set,l=new Set;let c=o.storage;if(!c)return e((...g)=>{console.warn(`[zustand persist middleware] Unable to update item '${o.name}', the given storage is currently unavailable.`),n(...g)},r,i);const u=()=>{const g=o.partialize({...r()});return c.setItem(o.name,{state:g,version:o.version})},d=i.setState;i.setState=(g,v)=>{d(g,v),u()};const f=e((...g)=>{n(...g),u()},r,i);i.getInitialState=()=>f;let h;const m=()=>{var g,v;if(!c)return;a=!1,s.forEach(b=>{var _;return b((_=r())!=null?_:f)});const y=((v=o.onRehydrateStorage)==null?void 0:v.call(o,(g=r())!=null?g:f))||void 0;return sT(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 _;const[E,w]=b;if(h=o.merge(w,(_=r())!=null?_:f),n(h,!0),E)return u()}).then(()=>{y==null||y(h,void 0),h=r(),a=!0,l.forEach(b=>b(h))}).catch(b=>{y==null||y(void 0,b)})};return i.persist={setOptions:g=>{o={...o,...g},g.storage&&(c=g.storage)},clearStorage:()=>{c==null||c.removeItem(o.name)},getOptions:()=>o,rehydrate:()=>m(),hasHydrated:()=>a,onHydrate:g=>(s.add(g),()=>{s.delete(g)}),onFinishHydration:g=>(l.add(g),()=>{l.delete(g)})},o.skipHydration||m(),h||f},ZLe=(e,t)=>"getStorage"in t||"serialize"in t||"deserialize"in t?((iA?"open":void 0)!=="production"&&console.warn("[DEPRECATED] `getStorage`, `serialize` and `deserialize` options are deprecated. Use `storage` option instead."),QLe(e,t)):XLe(e,t),kd=ZLe;var ave=Symbol.for("immer-nothing"),jJ=Symbol.for("immer-draftable"),_c=Symbol.for("immer-state");function ed(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var r_=Object.getPrototypeOf;function i_(e){return!!e&&!!e[_c]}function Nv(e){var t;return e?sve(e)||Array.isArray(e)||!!e[jJ]||!!((t=e.constructor)!=null&&t[jJ])||nP(e)||rP(e):!1}var JLe=Object.prototype.constructor.toString();function sve(e){if(!e||typeof e!="object")return!1;const t=r_(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)===JLe}function KN(e,t){tP(e)===0?Reflect.ownKeys(e).forEach(n=>{t(n,e[n],e)}):e.forEach((n,r)=>t(r,n,e))}function tP(e){const t=e[_c];return t?t.type_:Array.isArray(e)?1:nP(e)?2:rP(e)?3:0}function IF(e,t){return tP(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function lve(e,t,n){const r=tP(e);r===2?e.set(t,n):r===3?e.add(n):e[t]=n}function e$e(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}function nP(e){return e instanceof Map}function rP(e){return e instanceof Set}function h1(e){return e.copy_||e.base_}function AF(e,t){if(nP(e))return new Map(e);if(rP(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);const n=sve(e);if(t===!0||t==="class_only"&&!n){const r=Object.getOwnPropertyDescriptors(e);delete r[_c];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(r_(e),r)}else{const r=r_(e);if(r!==null&&n)return{...e};const i=Object.create(r);return Object.assign(i,e)}}function $G(e,t=!1){return iP(e)||i_(e)||!Nv(e)||(tP(e)>1&&(e.set=e.add=e.clear=e.delete=t$e),Object.freeze(e),t&&Object.entries(e).forEach(([n,r])=>$G(r,!0))),e}function t$e(){ed(2)}function iP(e){return Object.isFrozen(e)}var n$e={};function Mv(e){const t=n$e[e];return t||ed(0,e),t}var lT;function cve(){return lT}function r$e(e,t){return{drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function HJ(e,t){t&&(Mv("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function NF(e){MF(e),e.drafts_.forEach(i$e),e.drafts_=null}function MF(e){e===lT&&(lT=e.parent_)}function UJ(e){return lT=r$e(lT,e)}function i$e(e){const t=e[_c];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function zJ(e,t){t.unfinalizedDrafts_=t.drafts_.length;const n=t.drafts_[0];return e!==void 0&&e!==n?(n[_c].modified_&&(NF(t),ed(4)),Nv(e)&&(e=QN(t,e),t.parent_||XN(t,e)),t.patches_&&Mv("Patches").generateReplacementPatches_(n[_c].base_,e,t.patches_,t.inversePatches_)):e=QN(t,n,[]),NF(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==ave?e:void 0}function QN(e,t,n){if(iP(t))return t;const r=t[_c];if(!r)return KN(t,(i,o)=>VJ(e,r,t,i,o,n)),t;if(r.scope_!==e)return t;if(!r.modified_)return XN(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),KN(o,(s,l)=>VJ(e,r,i,s,l,n,a)),XN(e,i,!1),n&&e.patches_&&Mv("Patches").generatePatches_(r,n,e.patches_,e.inversePatches_)}return r.copy_}function VJ(e,t,n,r,i,o,a){if(i_(i)){const s=o&&t&&t.type_!==3&&!IF(t.assigned_,r)?o.concat(r):void 0,l=QN(e,i,s);if(lve(n,r,l),i_(l))e.canAutoFreeze_=!1;else return}else a&&n.add(i);if(Nv(i)&&!iP(i)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;QN(e,i),(!t||!t.scope_.parent_)&&typeof r!="symbol"&&Object.prototype.propertyIsEnumerable.call(n,r)&&XN(e,i)}}function XN(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&$G(t,n)}function o$e(e,t){const n=Array.isArray(e),r={type_:n?1:0,scope_:t?t.scope_:cve(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let i=r,o=FG;n&&(i=[r],o=cT);const{revoke:a,proxy:s}=Proxy.revocable(i,o);return r.draft_=s,r.revoke_=a,s}var FG={get(e,t){if(t===_c)return e;const n=h1(e);if(!IF(n,t))return a$e(e,n,t);const r=n[t];return e.finalized_||!Nv(r)?r:r===O8(e.base_,t)?(R8(e),e.copy_[t]=PF(r,e)):r},has(e,t){return t in h1(e)},ownKeys(e){return Reflect.ownKeys(h1(e))},set(e,t,n){const r=uve(h1(e),t);if(r!=null&&r.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){const i=O8(h1(e),t),o=i==null?void 0:i[_c];if(o&&o.base_===n)return e.copy_[t]=n,e.assigned_[t]=!1,!0;if(e$e(n,i)&&(n!==void 0||IF(e.base_,t)))return!0;R8(e),kF(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 O8(e.base_,t)!==void 0||t in e.base_?(e.assigned_[t]=!1,R8(e),kF(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const n=h1(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{writable:!0,configurable:e.type_!==1||t!=="length",enumerable:r.enumerable,value:n[t]}},defineProperty(){ed(11)},getPrototypeOf(e){return r_(e.base_)},setPrototypeOf(){ed(12)}},cT={};KN(FG,(e,t)=>{cT[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}});cT.deleteProperty=function(e,t){return cT.set.call(this,e,t,void 0)};cT.set=function(e,t,n){return FG.set.call(this,e[0],t,n,e[0])};function O8(e,t){const n=e[_c];return(n?h1(n):e)[t]}function a$e(e,t,n){var i;const r=uve(t,n);return r?"value"in r?r.value:(i=r.get)==null?void 0:i.call(e.draft_):void 0}function uve(e,t){if(!(t in e))return;let n=r_(e);for(;n;){const r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=r_(n)}}function kF(e){e.modified_||(e.modified_=!0,e.parent_&&kF(e.parent_))}function R8(e){e.copy_||(e.copy_=AF(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var s$e=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"&&ed(6),r!==void 0&&typeof r!="function"&&ed(7);let i;if(Nv(t)){const o=UJ(this),a=PF(t,void 0);let s=!0;try{i=n(a),s=!1}finally{s?NF(o):MF(o)}return HJ(o,r),zJ(i,o)}else if(!t||typeof t!="object"){if(i=n(t),i===void 0&&(i=t),i===ave&&(i=void 0),this.autoFreeze_&&$G(i,!0),r){const o=[],a=[];Mv("Patches").generateReplacementPatches_(t,i,o,a),r(o,a)}return i}else ed(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){Nv(e)||ed(8),i_(e)&&(e=l$e(e));const t=UJ(this),n=PF(e,void 0);return n[_c].isManual_=!0,MF(t),n}finishDraft(e,t){const n=e&&e[_c];(!n||!n.isManual_)&&ed(9);const{scope_:r}=n;return HJ(r,t),zJ(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=Mv("Patches").applyPatches_;return i_(e)?r(e,t):this.produce(e,i=>r(i,t))}};function PF(e,t){const n=nP(e)?Mv("MapSet").proxyMap_(e,t):rP(e)?Mv("MapSet").proxySet_(e,t):o$e(e,t);return(t?t.scope_:cve()).drafts_.push(n),n}function l$e(e){return i_(e)||ed(10,e),dve(e)}function dve(e){if(!Nv(e)||iP(e))return e;const t=e[_c];let n;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=AF(e,t.scope_.immer_.useStrictShallowCopy_)}else n=AF(e,!0);return KN(n,(r,i)=>{lve(n,r,dve(i))}),t&&(t.finalized_=!1),n}var Sc=new s$e,c$e=Sc.produce;Sc.produceWithPatches.bind(Sc);Sc.setAutoFreeze.bind(Sc);Sc.setUseStrictShallowCopy.bind(Sc);Sc.applyPatches.bind(Sc);Sc.createDraft.bind(Sc);Sc.finishDraft.bind(Sc);const u$e=e=>(t,n,r)=>(r.setState=(i,o,...a)=>{const s=typeof i=="function"?c$e(i):i;return t(s,o,...a)},e(r.setState,n,r)),Pd=u$e,d$e="dev",fve="open",GJ="prod",f$e="quanjing",pve="prod-open";console.log("Current VITE_CONFIG_ENV:","prod-open");let ea;switch(pve){case"dev":ea={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:d$e,CLIENT:"WEB",USER_PRIVACY_URL:"http://127.0.0.1:9003/protocol",SHOW_SWITCH_SERVER:!0,SHOW_SCAN_LOGIN:!0,LOGO_URL:"http://127.0.0.1:9003/logo.png",LOGO_NAME:"微语",SHOW_CREATE_GROUP:!0,SHOW_CREATE_LLM:!0,SHOW_CONTACTS:!0,SHOW_FAVORITE:!0};break;case"prod-open":ea={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:fve,CLIENT:"WEB",USER_PRIVACY_URL:"http://127.0.0.1:9003/protocol",SHOW_SWITCH_SERVER:!0,SHOW_SCAN_LOGIN:!0,LOGO_URL:"http://127.0.0.1:9003/logo.png",LOGO_NAME:"微语",SHOW_CREATE_GROUP:!0,SHOW_CREATE_LLM:!0,SHOW_CONTACTS:!0,SHOW_FAVORITE:!0};break;case"prod-quanjing":ea={API_URL:"https://kf.gxzgt.com:9003",MQTT_URL:"wss://kf.gxzgt.com:9003/websocket",HTML_URL:"https://kf.gxzgt.com:9003",IS_DEBUG:!1,SERVER_MODE:f$e,CLIENT:"WEB",USER_PRIVACY_URL:"https://zgtapp.zwfw.gxzf.gov.cn/zgt-h5/userProtocol/index.html",SHOW_SWITCH_SERVER:!1,SHOW_SCAN_LOGIN:!1,LOGO_URL:"https://kf.gxzgt.com:9003/assets/images/logos/zhiguitong.png",LOGO_NAME:"微语",SHOW_CREATE_GROUP:!1,SHOW_CREATE_LLM:!1,SHOW_CONTACTS:!1,SHOW_FAVORITE:!1};break;case"prod-web":ea={API_URL:"https://api.weiyuai.cn",MQTT_URL:"wss://api.weiyuai.cn/websocket",HTML_URL:"https://www.weiyuai.cn",IS_DEBUG:!1,SERVER_MODE:GJ,CLIENT:"WEB",USER_PRIVACY_URL:"https://www.weiyuai.cn/protocol.html",SHOW_SWITCH_SERVER:!1,SHOW_SCAN_LOGIN:!0,LOGO_URL:"https://www.weiyuai.cn/logo.png",LOGO_NAME:"微语",SHOW_CREATE_GROUP:!0,SHOW_CREATE_LLM:!0,SHOW_CONTACTS:!0,SHOW_FAVORITE:!0};break;default:ea={API_URL:"https://api.weiyuai.cn",MQTT_URL:"wss://api.weiyuai.cn/websocket",HTML_URL:"https://www.weiyuai.cn",IS_DEBUG:!1,SERVER_MODE:GJ,CLIENT:"ELECTRON",USER_PRIVACY_URL:"https://www.weiyuai.cn/protocol.html",SHOW_SWITCH_SERVER:!1,SHOW_SCAN_LOGIN:!0,LOGO_URL:"https://www.weiyuai.cn/logo.png",LOGO_NAME:"微语",SHOW_CREATE_GROUP:!0,SHOW_CREATE_LLM:!0,SHOW_CONTACTS:!0,SHOW_FAVORITE:!0}}console.log("config.API_BASE_URL: ",pve,ea);const Ha=navigator.userAgent.toLowerCase().indexOf("electron")>-1,I8=ea.API_URL,WJ=ea.MQTT_URL;ea.HTML_URL;const ud=ea.IS_DEBUG,p$e=ea.SERVER_MODE,wr=ea.CLIENT,h$e=ea.USER_PRIVACY_URL,m$e=ea.SHOW_SWITCH_SERVER,g$e=ea.SHOW_SCAN_LOGIN,v$e=ea.LOGO_URL,b$e=ea.LOGO_NAME;ea.SHOW_CREATE_GROUP;ea.SHOW_CREATE_LLM;ea.SHOW_CONTACTS;ea.SHOW_FAVORITE;const hu="BYTEDESK",qJ="locale",YJ="mode",vy="team",kv="agent",ZN="personal",KJ="i18n.",eR="i18n.new.message",hve="ANONYMOUS",oc="bytedesk_login_credentials",QJ="THEME_MODE_TYPE",XJ="THEME_NAME_TYPE",oA="PLAY_AUDIO",JC="NETWORK_STATUS_NOTIFICATION",ew="CONFIG_ENABLED_AGENT",aA="CONFIG_API_URL_AGENT",sA="CONFIG_WEBSOCKET_URL_AGENT",A8="CONFIG_HTML_URL_AGENT",Xb="CONFIG_CUSTOM_ENABLED_AGENT",CC="CONFIG_CUSTOM_API_URL_AGENT",wC="CONFIG_CUSTOM_WEBSOCKET_URL_AGENT",y$e="CONFIG_PROPERTIES",_$e="SCREENSHOT_OK",S$e="EVENT_BUS_SERVER_ERROR_500",Zm="EVENT_BUS_TOKEN_INVALID",uT="EVENT_BUS_MQTT_MESSAGE",DF="EVENT_BUS_MQTT_CONNECTED",LF="EVENT_BUS_MQTT_OFFLINE",$F="EVENT_BUS_MQTT_CLOSE",FF="EVENT_BUS_MQTT_DISCONNECTED",BF="EVENT_BUS_MQTT_ERROR",jF="EVENT_BUS_MQTT_END",mve="EVENT_BUS_MESSAGE_TYPE_STATUS",E$e="EVENT_BUS_MESSAGE_TYPE_TYPING",C$e="EVENT_BUS_MESSAGE_TYPE_PROCESSING",w$e="EVENT_BUS_MESSAGE_TYPE_STREAM",T$e="EVENT_BUS_MESSAGE_TYPE_PREVIEW",HF="EVENT_BUS_MESSAGE_TYPE_TRANSFER",UF="EVENT_BUS_MESSAGE_TYPE_TRANSFER_ACCEPT",zF="EVENT_BUS_MESSAGE_TYPE_TRANSFER_REJECT",x$e="EVENT_BUS_SCREEN_CAPTURE_IMAGE",O$e="AUTH_STORE",Jm="ACCESS_TOKEN",R$e="ORGANIZATION_STORE",I$e="MEMBER_STORE",A$e="MESSAGE_STORE",N$e="CONTACT_STORE",M$e="USER_STORE",k$e="SETTINGS_STORE",P$e="THREAD_STORE",D$e="DEVICE_STORE",L$e="AGENT_STORE",$$e="WORKGROUP_STORE",F$e="member",gve="device",B$e="MOBILE_LOGIN",j$e="MOBILE_RESET",H$e="MOBILE_VERIFY",U$e="EMAIL_RESET",z$e="EMAIL_VERIFY",V$e="PENDING",G$e="SCANNED",W$e="CONFIRMED",q$e="EXPIRED",Y$e="https://cdn.weiyuai.cn/agent/assets/sound/dingdong.wav",K$e="https://cdn.weiyuai.cn/agent/assets/css/scrollbar.css",Q$e="https://www.weiyuai.cn/download.html",ZJ="AGENT",JJ="USER",eee="AGENT",tee="WORKGROUP",nee="QUEUING",ree="CLOSED",iee="SENDING",VF="SUCCESS",X$e="TRANSFER_ACCEPT",Z$e="TRANSFER_REJECT",GF="CONTINUE",vve="SYSTEM",J$e="QUEUE",e6e="TEXT",t6e="IMAGE",n6e="FILE",r6e="AUDIO",i6e="VIDEO",WF="TYPING",qF="PROCESSING",dT="STREAM",oee="PREVIEW",aee="RECALL",YF="DELIVERED",KF="READ",o6e="FAQ_UP",a6e="FAQ_DOWN",s6e="ROBOT_UP",l6e="ROBOT_DOWN",c6e="RATE_SUBMIT",u6e="RATE_CANCEL",fT="AUTO_CLOSED",pT="AGENT_CLOSED",see="TRANSFER",lee="TRANSFER_ACCEPT",cee="TRANSFER_REJECT",uee="AVAILABLE",N8="OFFLINE",dee="REST",d6e="org/group/",f6e="HELPCENTER",eg="NOTEBASE",M8="FAQ",p6e="CHAT",QF="lastPath",h6e="ROLE_SUPER",m6e="ROLE_ADMIN",g6e="ROLE_MEMBER",v6e="ROLE_AGENT",b6e="ARTICLE",Fx=Rc()(Md(kd(Pd((e,t)=>({accessToken:"",setAccessToken(n){localStorage.setItem(Jm,n),e({accessToken:n})},getAccessToken(){return t().accessToken},removeAccessToken(){localStorage.removeItem(Jm),e({accessToken:""})}})),{name:O$e}))),y6e=Rc()(Md(kd(Pd(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:k$e})));var u0={},bve={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})(bve);var xr=bve.exports,oP={};Object.defineProperty(oP,"__esModule",{value:!0});oP.default=void 0;var _6e={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"};oP.default=_6e;var aP={},Bx={},sP={},yve={exports:{}},_ve={exports:{}},Sve={exports:{}},Eve={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})(Eve);var d0=Eve.exports,Cve={exports:{}};(function(e){var t=d0.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})(Cve);var S6e=Cve.exports;(function(e){var t=d0.default,n=S6e;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})(Sve);var E6e=Sve.exports;(function(e){var t=E6e;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})(_ve);var wve=_ve.exports;(function(e){var t=wve;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})(yve);var f0=yve.exports,rS={};Object.defineProperty(rS,"__esModule",{value:!0});rS.commonLocale=void 0;rS.commonLocale={yearFormat:"YYYY",dayFormat:"D",cellMeridiemFormat:"A",monthBeforeYear:!0};var C6e=xr.default;Object.defineProperty(sP,"__esModule",{value:!0});sP.default=void 0;var fee=C6e(f0),w6e=rS,T6e=(0,fee.default)((0,fee.default)({},w6e.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"});sP.default=T6e;var jx={};Object.defineProperty(jx,"__esModule",{value:!0});jx.default=void 0;const x6e={placeholder:"Select time",rangePlaceholder:["Start time","End time"]};jx.default=x6e;var Tve=xr.default;Object.defineProperty(Bx,"__esModule",{value:!0});Bx.default=void 0;var O6e=Tve(sP),R6e=Tve(jx);const I6e={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"]},O6e.default),timePickerLocale:Object.assign({},R6e.default)};Bx.default=I6e;var A6e=xr.default;Object.defineProperty(aP,"__esModule",{value:!0});aP.default=void 0;var N6e=A6e(Bx);aP.default=N6e.default;var lP=xr.default;Object.defineProperty(u0,"__esModule",{value:!0});u0.default=void 0;var M6e=lP(oP),k6e=lP(aP),P6e=lP(Bx),D6e=lP(jx);const Hl="${label} is not a valid ${type}",L6e={locale:"en",Pagination:M6e.default,DatePicker:P6e.default,TimePicker:D6e.default,Calendar:k6e.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:Hl,method:Hl,array:Hl,object:Hl,number:Hl,date:Hl,boolean:Hl,integer:Hl,float:Hl,regexp:Hl,email:Hl,url:Hl,hex:Hl},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"}};u0.default=L6e;var $6e=u0;const pee=di($6e);var cP={},uP={};Object.defineProperty(uP,"__esModule",{value:!0});uP.default=void 0;var F6e={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:"页码"};uP.default=F6e;var dP={},Hx={},fP={},B6e=xr.default;Object.defineProperty(fP,"__esModule",{value:!0});fP.default=void 0;var hee=B6e(f0),j6e=rS,H6e=(0,hee.default)((0,hee.default)({},j6e.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});fP.default=H6e;var Ux={};Object.defineProperty(Ux,"__esModule",{value:!0});Ux.default=void 0;const U6e={placeholder:"请选择时间",rangePlaceholder:["开始时间","结束时间"]};Ux.default=U6e;var xve=xr.default;Object.defineProperty(Hx,"__esModule",{value:!0});Hx.default=void 0;var z6e=xve(fP),V6e=xve(Ux);const Ove={lang:Object.assign({placeholder:"请选择日期",yearPlaceholder:"请选择年份",quarterPlaceholder:"请选择季度",monthPlaceholder:"请选择月份",weekPlaceholder:"请选择周",rangePlaceholder:["开始日期","结束日期"],rangeYearPlaceholder:["开始年份","结束年份"],rangeMonthPlaceholder:["开始月份","结束月份"],rangeQuarterPlaceholder:["开始季度","结束季度"],rangeWeekPlaceholder:["开始周","结束周"]},z6e.default),timePickerLocale:Object.assign({},V6e.default)};Ove.lang.ok="确定";Hx.default=Ove;var G6e=xr.default;Object.defineProperty(dP,"__esModule",{value:!0});dP.default=void 0;var W6e=G6e(Hx);dP.default=W6e.default;var pP=xr.default;Object.defineProperty(cP,"__esModule",{value:!0});cP.default=void 0;var q6e=pP(uP),Y6e=pP(dP),K6e=pP(Hx),Q6e=pP(Ux);const Ul="${label}不是一个有效的${type}",X6e={locale:"zh-cn",Pagination:q6e.default,DatePicker:K6e.default,TimePicker:Q6e.default,Calendar:Y6e.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:Ul,method:Ul,array:Ul,object:Ul,number:Ul,date:Ul,boolean:Ul,integer:Ul,float:Ul,regexp:Ul,email:Ul,url:Ul,hex:Ul},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:"渐变色"}};cP.default=X6e;var Z6e=cP;const tR=di(Z6e);var hP={},mP={};Object.defineProperty(mP,"__esModule",{value:!0});mP.default=void 0;var J6e={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:"頁碼"};mP.default=J6e;var gP={},zx={},vP={},e7e=xr.default;Object.defineProperty(vP,"__esModule",{value:!0});vP.default=void 0;var mee=e7e(f0),t7e=rS,n7e=(0,mee.default)((0,mee.default)({},t7e.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});vP.default=n7e;var Vx={};Object.defineProperty(Vx,"__esModule",{value:!0});Vx.default=void 0;const r7e={placeholder:"請選擇時間"};Vx.default=r7e;var Rve=xr.default;Object.defineProperty(zx,"__esModule",{value:!0});zx.default=void 0;var i7e=Rve(vP),o7e=Rve(Vx);const Ive={lang:Object.assign({placeholder:"請選擇日期",yearPlaceholder:"請選擇年份",quarterPlaceholder:"請選擇季度",monthPlaceholder:"請選擇月份",weekPlaceholder:"請選擇周",rangePlaceholder:["開始日期","結束日期"],rangeYearPlaceholder:["開始年份","結束年份"],rangeMonthPlaceholder:["開始月份","結束月份"],rangeQuarterPlaceholder:["開始季度","結束季度"],rangeWeekPlaceholder:["開始周","結束周"]},i7e.default),timePickerLocale:Object.assign({},o7e.default)};Ive.lang.ok="確 定";zx.default=Ive;var a7e=xr.default;Object.defineProperty(gP,"__esModule",{value:!0});gP.default=void 0;var s7e=a7e(zx);gP.default=s7e.default;var bP=xr.default;Object.defineProperty(hP,"__esModule",{value:!0});hP.default=void 0;var l7e=bP(mP),c7e=bP(gP),u7e=bP(zx),d7e=bP(Vx);const zl="${label}不是一個有效的${type}",f7e={locale:"zh-tw",Pagination:l7e.default,DatePicker:u7e.default,TimePicker:d7e.default,Calendar:c7e.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:zl,method:zl,array:zl,object:zl,number:zl,date:zl,boolean:zl,integer:zl,float:zl,regexp:zl,email:zl,url:zl,hex:zl},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:"已掃描"}};hP.default=f7e;var p7e=hP;const h7e=di(p7e);function BG(){const e=localStorage.getItem(XJ)||"light",[t,n]=p.useState(e),r=localStorage.getItem(QJ)||"system",[i,o]=p.useState(r);return p.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")}))},[]),p.useEffect(()=>{localStorage.setItem(QJ,i),i==="light"?n("light"):i==="dark"?n("dark"):i==="system"&&(window.matchMedia("(prefers-color-scheme: dark)").matches?n("dark"):n("light"))},[i]),p.useEffect(()=>{localStorage.setItem(XJ,t)},[t]),{themeName:t,setThemeName:n,themeMode:i,setThemeMode:o,isDarkMode:t==="dark",isLightMode:t==="light"}}function Ave(e,t){return function(){return e.apply(t,arguments)}}const{toString:m7e}=Object.prototype,{getPrototypeOf:jG}=Object,yP=(e=>t=>{const n=m7e.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Dd=e=>(e=e.toLowerCase(),t=>yP(t)===e),_P=e=>t=>typeof t===e,{isArray:iS}=Array,hT=_P("undefined");function g7e(e){return e!==null&&!hT(e)&&e.constructor!==null&&!hT(e.constructor)&&vc(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Nve=Dd("ArrayBuffer");function v7e(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Nve(e.buffer),t}const b7e=_P("string"),vc=_P("function"),Mve=_P("number"),SP=e=>e!==null&&typeof e=="object",y7e=e=>e===!0||e===!1,lA=e=>{if(yP(e)!=="object")return!1;const t=jG(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},_7e=Dd("Date"),S7e=Dd("File"),E7e=Dd("Blob"),C7e=Dd("FileList"),w7e=e=>SP(e)&&vc(e.pipe),T7e=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||vc(e.append)&&((t=yP(e))==="formdata"||t==="object"&&vc(e.toString)&&e.toString()==="[object FormData]"))},x7e=Dd("URLSearchParams"),[O7e,R7e,I7e,A7e]=["ReadableStream","Request","Response","Headers"].map(Dd),N7e=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Gx(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,i;if(typeof e!="object"&&(e=[e]),iS(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 kve(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 k1=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Pve=e=>!hT(e)&&e!==k1;function XF(){const{caseless:e}=Pve(this)&&this||{},t={},n=(r,i)=>{const o=e&&kve(t,i)||i;lA(t[o])&&lA(r)?t[o]=XF(t[o],r):lA(r)?t[o]=XF({},r):iS(r)?t[o]=r.slice():t[o]=r};for(let r=0,i=arguments.length;r<i;r++)arguments[r]&&Gx(arguments[r],n);return t}const M7e=(e,t,n,{allOwnKeys:r}={})=>(Gx(t,(i,o)=>{n&&vc(i)?e[o]=Ave(i,n):e[o]=i},{allOwnKeys:r}),e),k7e=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),P7e=(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)},D7e=(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&&jG(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},L7e=(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},$7e=e=>{if(!e)return null;if(iS(e))return e;let t=e.length;if(!Mve(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},F7e=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&jG(Uint8Array)),B7e=(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])}},j7e=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},H7e=Dd("HTMLFormElement"),U7e=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,i){return r.toUpperCase()+i}),gee=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),z7e=Dd("RegExp"),Dve=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};Gx(n,(i,o)=>{let a;(a=t(i,o,e))!==!1&&(r[o]=a||i)}),Object.defineProperties(e,r)},V7e=e=>{Dve(e,(t,n)=>{if(vc(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(vc(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+"'")})}})},G7e=(e,t)=>{const n={},r=i=>{i.forEach(o=>{n[o]=!0})};return iS(e)?r(e):r(String(e).split(t)),n},W7e=()=>{},q7e=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t,k8="abcdefghijklmnopqrstuvwxyz",vee="0123456789",Lve={DIGIT:vee,ALPHA:k8,ALPHA_DIGIT:k8+k8.toUpperCase()+vee},Y7e=(e=16,t=Lve.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function K7e(e){return!!(e&&vc(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const Q7e=e=>{const t=new Array(10),n=(r,i)=>{if(SP(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[i]=r;const o=iS(r)?[]:{};return Gx(r,(a,s)=>{const l=n(a,i+1);!hT(l)&&(o[s]=l)}),t[i]=void 0,o}}return r};return n(e,0)},X7e=Dd("AsyncFunction"),Z7e=e=>e&&(SP(e)||vc(e))&&vc(e.then)&&vc(e.catch),$ve=((e,t)=>e?setImmediate:t?((n,r)=>(k1.addEventListener("message",({source:i,data:o})=>{i===k1&&o===n&&r.length&&r.shift()()},!1),i=>{r.push(i),k1.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",vc(k1.postMessage)),J7e=typeof queueMicrotask<"u"?queueMicrotask.bind(k1):typeof process<"u"&&process.nextTick||$ve,zt={isArray:iS,isArrayBuffer:Nve,isBuffer:g7e,isFormData:T7e,isArrayBufferView:v7e,isString:b7e,isNumber:Mve,isBoolean:y7e,isObject:SP,isPlainObject:lA,isReadableStream:O7e,isRequest:R7e,isResponse:I7e,isHeaders:A7e,isUndefined:hT,isDate:_7e,isFile:S7e,isBlob:E7e,isRegExp:z7e,isFunction:vc,isStream:w7e,isURLSearchParams:x7e,isTypedArray:F7e,isFileList:C7e,forEach:Gx,merge:XF,extend:M7e,trim:N7e,stripBOM:k7e,inherits:P7e,toFlatObject:D7e,kindOf:yP,kindOfTest:Dd,endsWith:L7e,toArray:$7e,forEachEntry:B7e,matchAll:j7e,isHTMLForm:H7e,hasOwnProperty:gee,hasOwnProp:gee,reduceDescriptors:Dve,freezeMethods:V7e,toObjectSet:G7e,toCamelCase:U7e,noop:W7e,toFiniteNumber:q7e,findKey:kve,global:k1,isContextDefined:Pve,ALPHABET:Lve,generateString:Y7e,isSpecCompliantForm:K7e,toJSONObject:Q7e,isAsyncFn:X7e,isThenable:Z7e,setImmediate:$ve,asap:J7e};function Ir(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)}zt.inherits(Ir,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:zt.toJSONObject(this.config),code:this.code,status:this.status}}});const Fve=Ir.prototype,Bve={};["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=>{Bve[e]={value:e}});Object.defineProperties(Ir,Bve);Object.defineProperty(Fve,"isAxiosError",{value:!0});Ir.from=(e,t,n,r,i,o)=>{const a=Object.create(Fve);return zt.toFlatObject(e,a,function(l){return l!==Error.prototype},s=>s!=="isAxiosError"),Ir.call(a,e.message,t,n,r,i),a.cause=e,a.name=e.name,o&&Object.assign(a,o),a};const eFe=null;function ZF(e){return zt.isPlainObject(e)||zt.isArray(e)}function jve(e){return zt.endsWith(e,"[]")?e.slice(0,-2):e}function bee(e,t,n){return e?e.concat(t).map(function(i,o){return i=jve(i),!n&&o?"["+i+"]":i}).join(n?".":""):t}function tFe(e){return zt.isArray(e)&&!e.some(ZF)}const nFe=zt.toFlatObject(zt,{},null,function(t){return/^is[A-Z]/.test(t)});function EP(e,t,n){if(!zt.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=zt.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(g,v){return!zt.isUndefined(v[g])});const r=n.metaTokens,i=n.visitor||u,o=n.dots,a=n.indexes,l=(n.Blob||typeof Blob<"u"&&Blob)&&zt.isSpecCompliantForm(t);if(!zt.isFunction(i))throw new TypeError("visitor must be a function");function c(m){if(m===null)return"";if(zt.isDate(m))return m.toISOString();if(!l&&zt.isBlob(m))throw new Ir("Blob is not supported. Use a Buffer instead.");return zt.isArrayBuffer(m)||zt.isTypedArray(m)?l&&typeof Blob=="function"?new Blob([m]):Buffer.from(m):m}function u(m,g,v){let y=m;if(m&&!v&&typeof m=="object"){if(zt.endsWith(g,"{}"))g=r?g:g.slice(0,-2),m=JSON.stringify(m);else if(zt.isArray(m)&&tFe(m)||(zt.isFileList(m)||zt.endsWith(g,"[]"))&&(y=zt.toArray(m)))return g=jve(g),y.forEach(function(_,E){!(zt.isUndefined(_)||_===null)&&t.append(a===!0?bee([g],E,o):a===null?g:g+"[]",c(_))}),!1}return ZF(m)?!0:(t.append(bee(v,g,o),c(m)),!1)}const d=[],f=Object.assign(nFe,{defaultVisitor:u,convertValue:c,isVisitable:ZF});function h(m,g){if(!zt.isUndefined(m)){if(d.indexOf(m)!==-1)throw Error("Circular reference detected in "+g.join("."));d.push(m),zt.forEach(m,function(y,b){(!(zt.isUndefined(y)||y===null)&&i.call(t,y,zt.isString(b)?b.trim():b,g,f))===!0&&h(y,g?g.concat(b):[b])}),d.pop()}}if(!zt.isObject(e))throw new TypeError("data must be an object");return h(e),t}function yee(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function HG(e,t){this._pairs=[],e&&EP(e,this,t)}const Hve=HG.prototype;Hve.append=function(t,n){this._pairs.push([t,n])};Hve.toString=function(t){const n=t?function(r){return t.call(this,r,yee)}:yee;return this._pairs.map(function(i){return n(i[0])+"="+n(i[1])},"").join("&")};function rFe(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Uve(e,t,n){if(!t)return e;const r=n&&n.encode||rFe;zt.isFunction(n)&&(n={serialize:n});const i=n&&n.serialize;let o;if(i?o=i(t,n):o=zt.isURLSearchParams(t)?t.toString():new HG(t,n).toString(r),o){const a=e.indexOf("#");a!==-1&&(e=e.slice(0,a)),e+=(e.indexOf("?")===-1?"?":"&")+o}return e}class _ee{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){zt.forEach(this.handlers,function(r){r!==null&&t(r)})}}const zve={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},iFe=typeof URLSearchParams<"u"?URLSearchParams:HG,oFe=typeof FormData<"u"?FormData:null,aFe=typeof Blob<"u"?Blob:null,sFe={isBrowser:!0,classes:{URLSearchParams:iFe,FormData:oFe,Blob:aFe},protocols:["http","https","file","blob","url","data"]},UG=typeof window<"u"&&typeof document<"u",JF=typeof navigator=="object"&&navigator||void 0,lFe=UG&&(!JF||["ReactNative","NativeScript","NS"].indexOf(JF.product)<0),cFe=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",uFe=UG&&window.location.href||"http://localhost",dFe=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:UG,hasStandardBrowserEnv:lFe,hasStandardBrowserWebWorkerEnv:cFe,navigator:JF,origin:uFe},Symbol.toStringTag,{value:"Module"})),ws={...dFe,...sFe};function fFe(e,t){return EP(e,new ws.classes.URLSearchParams,Object.assign({visitor:function(n,r,i,o){return ws.isNode&&zt.isBuffer(n)?(this.append(r,n.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)}},t))}function pFe(e){return zt.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function hFe(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 Vve(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&&zt.isArray(i)?i.length:a,l?(zt.hasOwnProp(i,a)?i[a]=[i[a],r]:i[a]=r,!s):((!i[a]||!zt.isObject(i[a]))&&(i[a]=[]),t(n,r,i[a],o)&&zt.isArray(i[a])&&(i[a]=hFe(i[a])),!s)}if(zt.isFormData(e)&&zt.isFunction(e.entries)){const n={};return zt.forEachEntry(e,(r,i)=>{t(pFe(r),i,n,0)}),n}return null}function mFe(e,t,n){if(zt.isString(e))try{return(t||JSON.parse)(e),zt.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(0,JSON.stringify)(e)}const Wx={transitional:zve,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",i=r.indexOf("application/json")>-1,o=zt.isObject(t);if(o&&zt.isHTMLForm(t)&&(t=new FormData(t)),zt.isFormData(t))return i?JSON.stringify(Vve(t)):t;if(zt.isArrayBuffer(t)||zt.isBuffer(t)||zt.isStream(t)||zt.isFile(t)||zt.isBlob(t)||zt.isReadableStream(t))return t;if(zt.isArrayBufferView(t))return t.buffer;if(zt.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 fFe(t,this.formSerializer).toString();if((s=zt.isFileList(t))||r.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return EP(s?{"files[]":t}:t,l&&new l,this.formSerializer)}}return o||i?(n.setContentType("application/json",!1),mFe(t)):t}],transformResponse:[function(t){const n=this.transitional||Wx.transitional,r=n&&n.forcedJSONParsing,i=this.responseType==="json";if(zt.isResponse(t)||zt.isReadableStream(t))return t;if(t&&zt.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"?Ir.from(s,Ir.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:ws.classes.FormData,Blob:ws.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};zt.forEach(["delete","get","head","post","put","patch"],e=>{Wx.headers[e]={}});const gFe=zt.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"]),vFe=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]&&gFe[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},See=Symbol("internals");function TE(e){return e&&String(e).trim().toLowerCase()}function cA(e){return e===!1||e==null?e:zt.isArray(e)?e.map(cA):String(e)}function bFe(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 yFe=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function P8(e,t,n,r,i){if(zt.isFunction(r))return r.call(this,t,n);if(i&&(t=n),!!zt.isString(t)){if(zt.isString(r))return t.indexOf(r)!==-1;if(zt.isRegExp(r))return r.test(t)}}function _Fe(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function SFe(e,t){const n=zt.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 Rl{constructor(t){t&&this.set(t)}set(t,n,r){const i=this;function o(s,l,c){const u=TE(l);if(!u)throw new Error("header name must be a non-empty string");const d=zt.findKey(i,u);(!d||i[d]===void 0||c===!0||c===void 0&&i[d]!==!1)&&(i[d||l]=cA(s))}const a=(s,l)=>zt.forEach(s,(c,u)=>o(c,u,l));if(zt.isPlainObject(t)||t instanceof this.constructor)a(t,n);else if(zt.isString(t)&&(t=t.trim())&&!yFe(t))a(vFe(t),n);else if(zt.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=TE(t),t){const r=zt.findKey(this,t);if(r){const i=this[r];if(!n)return i;if(n===!0)return bFe(i);if(zt.isFunction(n))return n.call(this,i,r);if(zt.isRegExp(n))return n.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=TE(t),t){const r=zt.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||P8(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let i=!1;function o(a){if(a=TE(a),a){const s=zt.findKey(r,a);s&&(!n||P8(r,r[s],s,n))&&(delete r[s],i=!0)}}return zt.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||P8(this,this[o],o,t,!0))&&(delete this[o],i=!0)}return i}normalize(t){const n=this,r={};return zt.forEach(this,(i,o)=>{const a=zt.findKey(r,o);if(a){n[a]=cA(i),delete n[o];return}const s=t?_Fe(o):String(o).trim();s!==o&&delete n[o],n[s]=cA(i),r[s]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return zt.forEach(this,(r,i)=>{r!=null&&r!==!1&&(n[i]=t&&zt.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[See]=this[See]={accessors:{}}).accessors,i=this.prototype;function o(a){const s=TE(a);r[s]||(SFe(i,a),r[s]=!0)}return zt.isArray(t)?t.forEach(o):o(t),this}}Rl.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);zt.reduceDescriptors(Rl.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});zt.freezeMethods(Rl);function D8(e,t){const n=this||Wx,r=t||n,i=Rl.from(r.headers);let o=r.data;return zt.forEach(e,function(s){o=s.call(n,o,i.normalize(),t?t.status:void 0)}),i.normalize(),o}function Gve(e){return!!(e&&e.__CANCEL__)}function oS(e,t,n){Ir.call(this,e??"canceled",Ir.ERR_CANCELED,t,n),this.name="CanceledError"}zt.inherits(oS,Ir,{__CANCEL__:!0});function Wve(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new Ir("Request failed with status code "+n.status,[Ir.ERR_BAD_REQUEST,Ir.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function EFe(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function CFe(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,f=0;for(;d!==i;)f+=n[d++],d=d%e;if(i=(i+1)%e,i===o&&(o=(o+1)%e),c-a<t)return;const h=u&&c-u;return h?Math.round(f*1e3/h):void 0}}function wFe(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 JN=(e,t,n=3)=>{let r=0;const i=CFe(50,250);return wFe(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)},Eee=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},Cee=e=>(...t)=>zt.asap(()=>e(...t)),TFe=ws.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,ws.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(ws.origin),ws.navigator&&/(msie|trident)/i.test(ws.navigator.userAgent)):()=>!0,xFe=ws.hasStandardBrowserEnv?{write(e,t,n,r,i,o){const a=[e+"="+encodeURIComponent(t)];zt.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),zt.isString(r)&&a.push("path="+r),zt.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 OFe(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function RFe(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function qve(e,t){return e&&!OFe(t)?RFe(e,t):t}const wee=e=>e instanceof Rl?{...e}:e;function Pv(e,t){t=t||{};const n={};function r(c,u,d,f){return zt.isPlainObject(c)&&zt.isPlainObject(u)?zt.merge.call({caseless:f},c,u):zt.isPlainObject(u)?zt.merge({},u):zt.isArray(u)?u.slice():u}function i(c,u,d,f){if(zt.isUndefined(u)){if(!zt.isUndefined(c))return r(void 0,c,d,f)}else return r(c,u,d,f)}function o(c,u){if(!zt.isUndefined(u))return r(void 0,u)}function a(c,u){if(zt.isUndefined(u)){if(!zt.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(wee(c),wee(u),d,!0)};return zt.forEach(Object.keys(Object.assign({},e,t)),function(u){const d=l[u]||i,f=d(e[u],t[u],u);zt.isUndefined(f)&&d!==s||(n[u]=f)}),n}const Yve=e=>{const t=Pv({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:i,xsrfCookieName:o,headers:a,auth:s}=t;t.headers=a=Rl.from(a),t.url=Uve(qve(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(zt.isFormData(n)){if(ws.hasStandardBrowserEnv||ws.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(ws.hasStandardBrowserEnv&&(r&&zt.isFunction(r)&&(r=r(t)),r||r!==!1&&TFe(t.url))){const c=i&&o&&xFe.read(o);c&&a.set(i,c)}return t},IFe=typeof XMLHttpRequest<"u",AFe=IFe&&function(e){return new Promise(function(n,r){const i=Yve(e);let o=i.data;const a=Rl.from(i.headers).normalize();let{responseType:s,onUploadProgress:l,onDownloadProgress:c}=i,u,d,f,h,m;function g(){h&&h(),m&&m(),i.cancelToken&&i.cancelToken.unsubscribe(u),i.signal&&i.signal.removeEventListener("abort",u)}let v=new XMLHttpRequest;v.open(i.method.toUpperCase(),i.url,!0),v.timeout=i.timeout;function y(){if(!v)return;const _=Rl.from("getAllResponseHeaders"in v&&v.getAllResponseHeaders()),w={data:!s||s==="text"||s==="json"?v.responseText:v.response,status:v.status,statusText:v.statusText,headers:_,config:e,request:v};Wve(function(C){n(C),g()},function(C){r(C),g()},w),v=null}"onloadend"in v?v.onloadend=y:v.onreadystatechange=function(){!v||v.readyState!==4||v.status===0&&!(v.responseURL&&v.responseURL.indexOf("file:")===0)||setTimeout(y)},v.onabort=function(){v&&(r(new Ir("Request aborted",Ir.ECONNABORTED,e,v)),v=null)},v.onerror=function(){r(new Ir("Network Error",Ir.ERR_NETWORK,e,v)),v=null},v.ontimeout=function(){let E=i.timeout?"timeout of "+i.timeout+"ms exceeded":"timeout exceeded";const w=i.transitional||zve;i.timeoutErrorMessage&&(E=i.timeoutErrorMessage),r(new Ir(E,w.clarifyTimeoutError?Ir.ETIMEDOUT:Ir.ECONNABORTED,e,v)),v=null},o===void 0&&a.setContentType(null),"setRequestHeader"in v&&zt.forEach(a.toJSON(),function(E,w){v.setRequestHeader(w,E)}),zt.isUndefined(i.withCredentials)||(v.withCredentials=!!i.withCredentials),s&&s!=="json"&&(v.responseType=i.responseType),c&&([f,m]=JN(c,!0),v.addEventListener("progress",f)),l&&v.upload&&([d,h]=JN(l),v.upload.addEventListener("progress",d),v.upload.addEventListener("loadend",h)),(i.cancelToken||i.signal)&&(u=_=>{v&&(r(!_||_.type?new oS(null,e,v):_),v.abort(),v=null)},i.cancelToken&&i.cancelToken.subscribe(u),i.signal&&(i.signal.aborted?u():i.signal.addEventListener("abort",u)));const b=EFe(i.url);if(b&&ws.protocols.indexOf(b)===-1){r(new Ir("Unsupported protocol "+b+":",Ir.ERR_BAD_REQUEST,e));return}v.send(o||null)})},NFe=(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 Ir?u:new oS(u instanceof Error?u.message:u))}};let a=t&&setTimeout(()=>{a=null,o(new Ir(`timeout ${t} of ms exceeded`,Ir.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=()=>zt.asap(s),l}},MFe=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},kFe=async function*(e,t){for await(const n of PFe(e))yield*MFe(n,t)},PFe=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()}},Tee=(e,t,n,r)=>{const i=kFe(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 f=o+=d;n(f)}l.enqueue(new Uint8Array(u))}catch(c){throw s(c),c}},cancel(l){return s(l),i.return()}},{highWaterMark:2})},CP=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",Kve=CP&&typeof ReadableStream=="function",DFe=CP&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),Qve=(e,...t)=>{try{return!!e(...t)}catch{return!1}},LFe=Kve&&Qve(()=>{let e=!1;const t=new Request(ws.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),xee=64*1024,eB=Kve&&Qve(()=>zt.isReadableStream(new Response("").body)),eM={stream:eB&&(e=>e.body)};CP&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!eM[t]&&(eM[t]=zt.isFunction(e[t])?n=>n[t]():(n,r)=>{throw new Ir(`Response type '${t}' is not supported`,Ir.ERR_NOT_SUPPORT,r)})})})(new Response);const $Fe=async e=>{if(e==null)return 0;if(zt.isBlob(e))return e.size;if(zt.isSpecCompliantForm(e))return(await new Request(ws.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(zt.isArrayBufferView(e)||zt.isArrayBuffer(e))return e.byteLength;if(zt.isURLSearchParams(e)&&(e=e+""),zt.isString(e))return(await DFe(e)).byteLength},FFe=async(e,t)=>{const n=zt.toFiniteNumber(e.getContentLength());return n??$Fe(t)},BFe=CP&&(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:f}=Yve(e);c=c?(c+"").toLowerCase():"text";let h=NFe([i,o&&o.toAbortSignal()],a),m;const g=h&&h.unsubscribe&&(()=>{h.unsubscribe()});let v;try{if(l&&LFe&&n!=="get"&&n!=="head"&&(v=await FFe(u,r))!==0){let w=new Request(t,{method:"POST",body:r,duplex:"half"}),S;if(zt.isFormData(r)&&(S=w.headers.get("content-type"))&&u.setContentType(S),w.body){const[C,T]=Eee(v,JN(Cee(l)));r=Tee(w.body,xee,C,T)}}zt.isString(d)||(d=d?"include":"omit");const y="credentials"in Request.prototype;m=new Request(t,{...f,signal:h,method:n.toUpperCase(),headers:u.normalize().toJSON(),body:r,duplex:"half",credentials:y?d:void 0});let b=await fetch(m);const _=eB&&(c==="stream"||c==="response");if(eB&&(s||_&&g)){const w={};["status","statusText","headers"].forEach(x=>{w[x]=b[x]});const S=zt.toFiniteNumber(b.headers.get("content-length")),[C,T]=s&&Eee(S,JN(Cee(s),!0))||[];b=new Response(Tee(b.body,xee,C,()=>{T&&T(),g&&g()}),w)}c=c||"text";let E=await eM[zt.findKey(eM,c)||"text"](b,e);return!_&&g&&g(),await new Promise((w,S)=>{Wve(w,S,{data:E,headers:Rl.from(b.headers),status:b.status,statusText:b.statusText,config:e,request:m})})}catch(y){throw g&&g(),y&&y.name==="TypeError"&&/fetch/i.test(y.message)?Object.assign(new Ir("Network Error",Ir.ERR_NETWORK,e,m),{cause:y.cause||y}):Ir.from(y,y&&y.code,e,m)}}),tB={http:eFe,xhr:AFe,fetch:BFe};zt.forEach(tB,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Oee=e=>`- ${e}`,jFe=e=>zt.isFunction(e)||e===null||e===!1,Xve={getAdapter:e=>{e=zt.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,!jFe(n)&&(r=tB[(a=String(n)).toLowerCase()],r===void 0))throw new Ir(`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(Oee).join(`
`):" "+Oee(o[0]):"as no adapter specified";throw new Ir("There is no suitable adapter to dispatch the request "+a,"ERR_NOT_SUPPORT")}return r},adapters:tB};function L8(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new oS(null,e)}function Ree(e){return L8(e),e.headers=Rl.from(e.headers),e.data=D8.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Xve.getAdapter(e.adapter||Wx.adapter)(e).then(function(r){return L8(e),r.data=D8.call(e,e.transformResponse,r),r.headers=Rl.from(r.headers),r},function(r){return Gve(r)||(L8(e),r&&r.response&&(r.response.data=D8.call(e,e.transformResponse,r.response),r.response.headers=Rl.from(r.response.headers))),Promise.reject(r)})}const Zve="1.7.9",wP={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{wP[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const Iee={};wP.transitional=function(t,n,r){function i(o,a){return"[Axios v"+Zve+"] Transitional option '"+o+"'"+a+(r?". "+r:"")}return(o,a,s)=>{if(t===!1)throw new Ir(i(a," has been removed"+(n?" in "+n:"")),Ir.ERR_DEPRECATED);return n&&!Iee[a]&&(Iee[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}};wP.spelling=function(t){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${t}`),!0)};function HFe(e,t,n){if(typeof e!="object")throw new Ir("options must be an object",Ir.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 Ir("option "+o+" must be "+l,Ir.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new Ir("Unknown option "+o,Ir.ERR_BAD_OPTION)}}const uA={assertOptions:HFe,validators:wP},Yd=uA.validators;class rv{constructor(t){this.defaults=t,this.interceptors={request:new _ee,response:new _ee}}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=Pv(this.defaults,n);const{transitional:r,paramsSerializer:i,headers:o}=n;r!==void 0&&uA.assertOptions(r,{silentJSONParsing:Yd.transitional(Yd.boolean),forcedJSONParsing:Yd.transitional(Yd.boolean),clarifyTimeoutError:Yd.transitional(Yd.boolean)},!1),i!=null&&(zt.isFunction(i)?n.paramsSerializer={serialize:i}:uA.assertOptions(i,{encode:Yd.function,serialize:Yd.function},!0)),uA.assertOptions(n,{baseUrl:Yd.spelling("baseURL"),withXsrfToken:Yd.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let a=o&&zt.merge(o.common,o[n.method]);o&&zt.forEach(["delete","get","head","post","put","patch","common"],m=>{delete o[m]}),n.headers=Rl.concat(a,o);const s=[];let l=!0;this.interceptors.request.forEach(function(g){typeof g.runWhen=="function"&&g.runWhen(n)===!1||(l=l&&g.synchronous,s.unshift(g.fulfilled,g.rejected))});const c=[];this.interceptors.response.forEach(function(g){c.push(g.fulfilled,g.rejected)});let u,d=0,f;if(!l){const m=[Ree.bind(this),void 0];for(m.unshift.apply(m,s),m.push.apply(m,c),f=m.length,u=Promise.resolve(n);d<f;)u=u.then(m[d++],m[d++]);return u}f=s.length;let h=n;for(d=0;d<f;){const m=s[d++],g=s[d++];try{h=m(h)}catch(v){g.call(this,v);break}}try{u=Ree.call(this,h)}catch(m){return Promise.reject(m)}for(d=0,f=c.length;d<f;)u=u.then(c[d++],c[d++]);return u}getUri(t){t=Pv(this.defaults,t);const n=qve(t.baseURL,t.url);return Uve(n,t.params,t.paramsSerializer)}}zt.forEach(["delete","get","head","options"],function(t){rv.prototype[t]=function(n,r){return this.request(Pv(r||{},{method:t,url:n,data:(r||{}).data}))}});zt.forEach(["post","put","patch"],function(t){function n(r){return function(o,a,s){return this.request(Pv(s||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:o,data:a}))}}rv.prototype[t]=n(),rv.prototype[t+"Form"]=n(!0)});class zG{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 oS(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 zG(function(i){t=i}),cancel:t}}}function UFe(e){return function(n){return e.apply(null,n)}}function zFe(e){return zt.isObject(e)&&e.isAxiosError===!0}const nB={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(nB).forEach(([e,t])=>{nB[t]=e});function Jve(e){const t=new rv(e),n=Ave(rv.prototype.request,t);return zt.extend(n,rv.prototype,t,{allOwnKeys:!0}),zt.extend(n,t,null,{allOwnKeys:!0}),n.create=function(i){return Jve(Pv(e,i))},n}const na=Jve(Wx);na.Axios=rv;na.CanceledError=oS;na.CancelToken=zG;na.isCancel=Gve;na.VERSION=Zve;na.toFormData=EP;na.AxiosError=Ir;na.Cancel=na.CanceledError;na.all=function(t){return Promise.all(t)};na.spread=UFe;na.isAxiosError=zFe;na.mergeConfig=Pv;na.AxiosHeaders=Rl;na.formToJSON=e=>Vve(zt.isHTMLForm(e)?new FormData(e):e);na.getAdapter=Xve.getAdapter;na.HttpStatusCode=nB;na.default=na;function VFe(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 vr=VFe();async function GFe(){return $r("/config/bytedesk/properties",{method:"GET",params:{client:wr}})}async function e0e(){try{const t=(await na.get("/notebase/config.json")).data;if(t.enabled)console.log("config enabled: ",t),localStorage.setItem(ew,"true"),localStorage.setItem(aA,t.apiUrl),localStorage.setItem(sA,t.websocketUrl),localStorage.setItem(A8,t.htmlUrl);else if(p$e===fve){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(ew,"true"),localStorage.setItem(aA,r),localStorage.setItem(sA,i),localStorage.setItem(A8,r)}else console.log("config disabled"),localStorage.setItem(ew,"false"),localStorage.removeItem(aA),localStorage.removeItem(sA),localStorage.removeItem(A8)}catch(e){console.log("loadConfig error: ",e)}}function TP(){const e=localStorage.getItem(Xb);if(console.log("custom_enabled: ",e),e==="true"){const n=localStorage.getItem(CC);return n===null?I8:n}if(localStorage.getItem(ew)==="true"){const n=localStorage.getItem(aA);return n===null?I8:n}return I8}function tw(){return TP()+"/api/v1/upload/file"}function WFe(){const e=localStorage.getItem(Xb);if(console.log("custom_enabled: ",e),e==="true"){const r=localStorage.getItem(wC);return r===null?WJ:r}const t=localStorage.getItem(ew),n=localStorage.getItem(sA);return t==="true"?n:WJ}async function t0e(){const e=await GFe();return console.log("getConfigProperties response: ",e.data.data),e.data.code===200?(localStorage.setItem(y$e,JSON.stringify(e.data.data)),e.data.data):null}const $r=na.create({timeout:2e4,baseURL:TP(),paramsSerializer:{indexes:null}});$r.interceptors.request.use(e=>{e.baseURL=TP();const t=localStorage.getItem(Jm);return t&&t.length>10&&e.url.startsWith("/api")&&(e.headers.Authorization=`Bearer ${t}`),!t&&e.url.startsWith("/api")?Promise.reject(qFe):e},e=>(console.debug("request error",e),e.response.status===403&&vr.emit(Zm,"403"),e.response.status===401&&vr.emit(Zm,"401"),Promise.reject(e)));$r.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"),vr.emit(Zm,"400");break;case 401:console.log("axios interception error 401"),vr.emit(Zm,"401");break;case 403:console.log("axios interception error 403"),vr.emit(Zm,"403");break;case 500:console.log("axios interception error 500"),vr.emit(S$e,"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 $8={data:null,status:601,statusText:hve,headers:{},config:{headers:void 0},request:null},qFe={message:"匿名用户,无需访问服务器接口",name:hve,code:"601",config:$8.config,request:$8.request,response:$8,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 YFe(e){return $r("/api/v1/agent/query",{method:"GET",params:{orgUid:e,client:wr}})}async function KFe(e){return $r("/api/v1/agent/update",{method:"POST",data:{...e,client:wr}})}async function QFe(e){return $r("/api/v1/agent/update/status",{method:"POST",data:{...e,client:wr}})}async function XFe(e){return $r("/api/v1/message/unread/query",{method:"GET",params:{userUid:e,client:wr}})}async function ZFe(e){return $r("/api/v1/message/rest/send",{method:"POST",data:{json:e,client:wr}})}var VG=Object.defineProperty,JFe=Object.getOwnPropertyDescriptor,eBe=Object.getOwnPropertyNames,tBe=Object.prototype.hasOwnProperty,ls=(e,t)=>()=>(e&&(t=e(e=0)),t),sn=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),p0=(e,t)=>{for(var n in t)VG(e,n,{get:t[n],enumerable:!0})},nBe=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of eBe(t))!tBe.call(e,i)&&i!==n&&VG(e,i,{get:()=>t[i],enumerable:!(r=JFe(t,i))||r.enumerable});return e},Hi=e=>nBe(VG({},"__esModule",{value:!0}),e),Zt=ls(()=>{}),_i={};p0(_i,{_debugEnd:()=>DB,_debugProcess:()=>PB,_events:()=>QB,_eventsCount:()=>XB,_exiting:()=>_B,_fatalExceptions:()=>NB,_getActiveHandles:()=>l0e,_getActiveRequests:()=>s0e,_kill:()=>CB,_linkedBinding:()=>o0e,_maxListeners:()=>KB,_preload_modules:()=>qB,_rawDebug:()=>vB,_startProfilerIdleNotifier:()=>LB,_stopProfilerIdleNotifier:()=>$B,_tickCallback:()=>kB,abort:()=>HB,addListener:()=>ZB,allowedNodeEnvironmentFlags:()=>IB,arch:()=>iB,argv:()=>sB,argv0:()=>WB,assert:()=>c0e,binding:()=>fB,chdir:()=>mB,config:()=>SB,cpuUsage:()=>TC,cwd:()=>hB,debugPort:()=>GB,default:()=>WG,dlopen:()=>a0e,domain:()=>yB,emit:()=>rj,emitWarning:()=>dB,env:()=>aB,execArgv:()=>lB,execPath:()=>VB,exit:()=>OB,features:()=>AB,hasUncaughtExceptionCaptureCallback:()=>u0e,hrtime:()=>dA,kill:()=>xB,listeners:()=>f0e,memoryUsage:()=>TB,moduleLoadList:()=>bB,nextTick:()=>r0e,off:()=>ej,on:()=>gp,once:()=>JB,openStdin:()=>RB,pid:()=>UB,platform:()=>oB,ppid:()=>zB,prependListener:()=>ij,prependOnceListener:()=>oj,reallyExit:()=>EB,release:()=>gB,removeAllListeners:()=>nj,removeListener:()=>tj,resourceUsage:()=>wB,setSourceMapsEnabled:()=>YB,setUncaughtExceptionCaptureCallback:()=>MB,stderr:()=>BB,stdin:()=>jB,stdout:()=>FB,title:()=>rB,umask:()=>pB,uptime:()=>d0e,version:()=>cB,versions:()=>uB});function GG(e){throw new Error("Node.js process "+e+" is not supported by JSPM core outside of Node.js")}function rBe(){!iv||!P1||(iv=!1,P1.length?bf=P1.concat(bf):nw=-1,bf.length&&n0e())}function n0e(){if(!iv){var e=setTimeout(rBe,0);iv=!0;for(var t=bf.length;t;){for(P1=bf,bf=[];++nw<t;)P1&&P1[nw].run();nw=-1,t=bf.length}P1=null,iv=!1,clearTimeout(e)}}function r0e(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];bf.push(new i0e(e,t)),bf.length===1&&!iv&&setTimeout(n0e,0)}function i0e(e,t){this.fun=e,this.array=t}function vs(){}function o0e(e){GG("_linkedBinding")}function a0e(e){GG("dlopen")}function s0e(){return[]}function l0e(){return[]}function c0e(e,t){if(!e)throw new Error(t||"assertion error")}function u0e(){return!1}function d0e(){return Pp.now()/1e3}function dA(e){var t=Math.floor((Date.now()-Pp.now())*.001),n=Pp.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+=fA)),[r,i]}function gp(){return WG}function f0e(e){return[]}var bf,iv,P1,nw,rB,iB,oB,aB,sB,lB,cB,uB,dB,fB,pB,hB,mB,gB,vB,bB,yB,_B,SB,EB,CB,TC,wB,TB,xB,OB,RB,IB,AB,NB,MB,kB,PB,DB,LB,$B,FB,BB,jB,HB,UB,zB,VB,GB,WB,qB,YB,Pp,F8,fA,KB,QB,XB,ZB,JB,ej,tj,nj,rj,ij,oj,WG,iBe=ls(()=>{Zt(),en(),Jt(),bf=[],iv=!1,nw=-1,i0e.prototype.run=function(){this.fun.apply(null,this.array)},rB="browser",iB="x64",oB="browser",aB={PATH:"/usr/bin",LANG:navigator.language+".UTF-8",PWD:"/",HOME:"/home",TMP:"/tmp"},sB=["/usr/bin/node"],lB=[],cB="v16.8.0",uB={},dB=function(e,t){console.warn((t?t+": ":"")+e)},fB=function(e){GG("binding")},pB=function(e){return 0},hB=function(){return"/"},mB=function(e){},gB={name:"node",sourceUrl:"",headersUrl:"",libUrl:""},vB=vs,bB=[],yB={},_B=!1,SB={},EB=vs,CB=vs,TC=function(){return{}},wB=TC,TB=TC,xB=vs,OB=vs,RB=vs,IB={},AB={inspector:!1,debug:!1,uv:!1,ipv6:!1,tls_alpn:!1,tls_sni:!1,tls_ocsp:!1,tls:!1,cached_builtins:!0},NB=vs,MB=vs,kB=vs,PB=vs,DB=vs,LB=vs,$B=vs,FB=void 0,BB=void 0,jB=void 0,HB=vs,UB=2,zB=1,VB="/bin/usr/node",GB=9229,WB="node",qB=[],YB=vs,Pp={now:typeof performance<"u"?performance.now.bind(performance):void 0,timing:typeof performance<"u"?performance.timing:void 0},Pp.now===void 0&&(F8=Date.now(),Pp.timing&&Pp.timing.navigationStart&&(F8=Pp.timing.navigationStart),Pp.now=()=>Date.now()-F8),fA=1e9,dA.bigint=function(e){var t=dA(e);return typeof BigInt>"u"?t[0]*fA+t[1]:BigInt(t[0]*fA)+BigInt(t[1])},KB=10,QB={},XB=0,ZB=gp,JB=gp,ej=gp,tj=gp,nj=gp,rj=vs,ij=gp,oj=gp,WG={version:cB,versions:uB,arch:iB,platform:oB,release:gB,_rawDebug:vB,moduleLoadList:bB,binding:fB,_linkedBinding:o0e,_events:QB,_eventsCount:XB,_maxListeners:KB,on:gp,addListener:ZB,once:JB,off:ej,removeListener:tj,removeAllListeners:nj,emit:rj,prependListener:ij,prependOnceListener:oj,listeners:f0e,domain:yB,_exiting:_B,config:SB,dlopen:a0e,uptime:d0e,_getActiveRequests:s0e,_getActiveHandles:l0e,reallyExit:EB,_kill:CB,cpuUsage:TC,resourceUsage:wB,memoryUsage:TB,kill:xB,exit:OB,openStdin:RB,allowedNodeEnvironmentFlags:IB,assert:c0e,features:AB,_fatalExceptions:NB,setUncaughtExceptionCaptureCallback:MB,hasUncaughtExceptionCaptureCallback:u0e,emitWarning:dB,nextTick:r0e,_tickCallback:kB,_debugProcess:PB,_debugEnd:DB,_startProfilerIdleNotifier:LB,_stopProfilerIdleNotifier:$B,stdout:FB,stdin:jB,stderr:BB,abort:HB,umask:pB,chdir:mB,cwd:hB,env:aB,title:rB,argv:sB,execArgv:lB,pid:UB,ppid:zB,execPath:VB,debugPort:GB,hrtime:dA,argv0:WB,_preload_modules:qB,setSourceMapsEnabled:YB}}),Jt=ls(()=>{iBe()}),cs={};p0(cs,{Buffer:()=>tM,INSPECT_MAX_BYTES:()=>p0e,default:()=>vp,kMaxLength:()=>h0e});function oBe(){if(aj)return Tb;aj=!0,Tb.byteLength=s,Tb.toByteArray=c,Tb.fromByteArray=f;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(h){var m=h.length;if(m%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var g=h.indexOf("=");g===-1&&(g=m);var v=g===m?0:4-g%4;return[g,v]}function s(h){var m=a(h),g=m[0],v=m[1];return(g+v)*3/4-v}function l(h,m,g){return(m+g)*3/4-g}function c(h){var m,g=a(h),v=g[0],y=g[1],b=new n(l(h,v,y)),_=0,E=y>0?v-4:v,w;for(w=0;w<E;w+=4)m=t[h.charCodeAt(w)]<<18|t[h.charCodeAt(w+1)]<<12|t[h.charCodeAt(w+2)]<<6|t[h.charCodeAt(w+3)],b[_++]=m>>16&255,b[_++]=m>>8&255,b[_++]=m&255;return y===2&&(m=t[h.charCodeAt(w)]<<2|t[h.charCodeAt(w+1)]>>4,b[_++]=m&255),y===1&&(m=t[h.charCodeAt(w)]<<10|t[h.charCodeAt(w+1)]<<4|t[h.charCodeAt(w+2)]>>2,b[_++]=m>>8&255,b[_++]=m&255),b}function u(h){return e[h>>18&63]+e[h>>12&63]+e[h>>6&63]+e[h&63]}function d(h,m,g){for(var v,y=[],b=m;b<g;b+=3)v=(h[b]<<16&16711680)+(h[b+1]<<8&65280)+(h[b+2]&255),y.push(u(v));return y.join("")}function f(h){for(var m,g=h.length,v=g%3,y=[],b=16383,_=0,E=g-v;_<E;_+=b)y.push(d(h,_,_+b>E?E:_+b));return v===1?(m=h[g-1],y.push(e[m>>2]+e[m<<4&63]+"==")):v===2&&(m=(h[g-2]<<8)+h[g-1],y.push(e[m>>10]+e[m>>4&63]+e[m<<2&63]+"=")),y.join("")}return Tb}function aBe(){return sj?xC:(sj=!0,xC.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,f=n?-1:1,h=e[t+d];for(d+=f,o=h&(1<<-u)-1,h>>=-u,u+=s;u>0;o=o*256+e[t+d],d+=f,u-=8);for(a=o&(1<<-u)-1,o>>=-u,u+=r;u>0;a=a*256+e[t+d],d+=f,u-=8);if(o===0)o=1-c;else{if(o===l)return a?NaN:(h?-1:1)*(1/0);a=a+Math.pow(2,r),o=o-c}return(h?-1:1)*a*Math.pow(2,o-r)},xC.write=function(e,t,n,r,i,o){var a,s,l,c=o*8-i-1,u=(1<<c)-1,d=u>>1,f=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,h=r?0:o-1,m=r?1:-1,g=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+=f/l:t+=f*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+h]=s&255,h+=m,s/=256,i-=8);for(a=a<<i|s,c+=i;c>0;e[n+h]=a&255,h+=m,a/=256,c-=8);e[n+h-m]|=g*128},xC)}function sBe(){if(lj)return qh;lj=!0;let e=oBe(),t=aBe(),n=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;qh.Buffer=a,qh.SlowBuffer=y,qh.INSPECT_MAX_BYTES=50;let r=2147483647;qh.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 Y=new Uint8Array(1),D={foo:function(){return 42}};return Object.setPrototypeOf(D,Uint8Array.prototype),Object.setPrototypeOf(Y,D),Y.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(Y){if(Y>r)throw new RangeError('The value "'+Y+'" is invalid for option "size"');let D=new Uint8Array(Y);return Object.setPrototypeOf(D,a.prototype),D}function a(Y,D,G){if(typeof Y=="number"){if(typeof D=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return u(Y)}return s(Y,D,G)}a.poolSize=8192;function s(Y,D,G){if(typeof Y=="string")return d(Y,D);if(ArrayBuffer.isView(Y))return h(Y);if(Y==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof Y);if(ye(Y,ArrayBuffer)||Y&&ye(Y.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(ye(Y,SharedArrayBuffer)||Y&&ye(Y.buffer,SharedArrayBuffer)))return m(Y,D,G);if(typeof Y=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');let ie=Y.valueOf&&Y.valueOf();if(ie!=null&&ie!==Y)return a.from(ie,D,G);let me=g(Y);if(me)return me;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof Y[Symbol.toPrimitive]=="function")return a.from(Y[Symbol.toPrimitive]("string"),D,G);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof Y)}a.from=function(Y,D,G){return s(Y,D,G)},Object.setPrototypeOf(a.prototype,Uint8Array.prototype),Object.setPrototypeOf(a,Uint8Array);function l(Y){if(typeof Y!="number")throw new TypeError('"size" argument must be of type number');if(Y<0)throw new RangeError('The value "'+Y+'" is invalid for option "size"')}function c(Y,D,G){return l(Y),Y<=0?o(Y):D!==void 0?typeof G=="string"?o(Y).fill(D,G):o(Y).fill(D):o(Y)}a.alloc=function(Y,D,G){return c(Y,D,G)};function u(Y){return l(Y),o(Y<0?0:v(Y)|0)}a.allocUnsafe=function(Y){return u(Y)},a.allocUnsafeSlow=function(Y){return u(Y)};function d(Y,D){if((typeof D!="string"||D==="")&&(D="utf8"),!a.isEncoding(D))throw new TypeError("Unknown encoding: "+D);let G=b(Y,D)|0,ie=o(G),me=ie.write(Y,D);return me!==G&&(ie=ie.slice(0,me)),ie}function f(Y){let D=Y.length<0?0:v(Y.length)|0,G=o(D);for(let ie=0;ie<D;ie+=1)G[ie]=Y[ie]&255;return G}function h(Y){if(ye(Y,Uint8Array)){let D=new Uint8Array(Y);return m(D.buffer,D.byteOffset,D.byteLength)}return f(Y)}function m(Y,D,G){if(D<0||Y.byteLength<D)throw new RangeError('"offset" is outside of buffer bounds');if(Y.byteLength<D+(G||0))throw new RangeError('"length" is outside of buffer bounds');let ie;return D===void 0&&G===void 0?ie=new Uint8Array(Y):G===void 0?ie=new Uint8Array(Y,D):ie=new Uint8Array(Y,D,G),Object.setPrototypeOf(ie,a.prototype),ie}function g(Y){if(a.isBuffer(Y)){let D=v(Y.length)|0,G=o(D);return G.length===0||Y.copy(G,0,0,D),G}if(Y.length!==void 0)return typeof Y.length!="number"||he(Y.length)?o(0):f(Y);if(Y.type==="Buffer"&&Array.isArray(Y.data))return f(Y.data)}function v(Y){if(Y>=r)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+r.toString(16)+" bytes");return Y|0}function y(Y){return+Y!=Y&&(Y=0),a.alloc(+Y)}a.isBuffer=function(Y){return Y!=null&&Y._isBuffer===!0&&Y!==a.prototype},a.compare=function(Y,D){if(ye(Y,Uint8Array)&&(Y=a.from(Y,Y.offset,Y.byteLength)),ye(D,Uint8Array)&&(D=a.from(D,D.offset,D.byteLength)),!a.isBuffer(Y)||!a.isBuffer(D))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(Y===D)return 0;let G=Y.length,ie=D.length;for(let me=0,se=Math.min(G,ie);me<se;++me)if(Y[me]!==D[me]){G=Y[me],ie=D[me];break}return G<ie?-1:ie<G?1:0},a.isEncoding=function(Y){switch(String(Y).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(Y,D){if(!Array.isArray(Y))throw new TypeError('"list" argument must be an Array of Buffers');if(Y.length===0)return a.alloc(0);let G;if(D===void 0)for(D=0,G=0;G<Y.length;++G)D+=Y[G].length;let ie=a.allocUnsafe(D),me=0;for(G=0;G<Y.length;++G){let se=Y[G];if(ye(se,Uint8Array))me+se.length>ie.length?(a.isBuffer(se)||(se=a.from(se)),se.copy(ie,me)):Uint8Array.prototype.set.call(ie,se,me);else if(a.isBuffer(se))se.copy(ie,me);else throw new TypeError('"list" argument must be an Array of Buffers');me+=se.length}return ie};function b(Y,D){if(a.isBuffer(Y))return Y.length;if(ArrayBuffer.isView(Y)||ye(Y,ArrayBuffer))return Y.byteLength;if(typeof Y!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof Y);let G=Y.length,ie=arguments.length>2&&arguments[2]===!0;if(!ie&&G===0)return 0;let me=!1;for(;;)switch(D){case"ascii":case"latin1":case"binary":return G;case"utf8":case"utf-8":return pe(Y).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return G*2;case"hex":return G>>>1;case"base64":return Se(Y).length;default:if(me)return ie?-1:pe(Y).length;D=(""+D).toLowerCase(),me=!0}}a.byteLength=b;function _(Y,D,G){let ie=!1;if((D===void 0||D<0)&&(D=0),D>this.length||((G===void 0||G>this.length)&&(G=this.length),G<=0)||(G>>>=0,D>>>=0,G<=D))return"";for(Y||(Y="utf8");;)switch(Y){case"hex":return P(this,D,G);case"utf8":case"utf-8":return M(this,D,G);case"ascii":return B(this,D,G);case"latin1":case"binary":return A(this,D,G);case"base64":return I(this,D,G);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return z(this,D,G);default:if(ie)throw new TypeError("Unknown encoding: "+Y);Y=(Y+"").toLowerCase(),ie=!0}}a.prototype._isBuffer=!0;function E(Y,D,G){let ie=Y[D];Y[D]=Y[G],Y[G]=ie}a.prototype.swap16=function(){let Y=this.length;if(Y%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let D=0;D<Y;D+=2)E(this,D,D+1);return this},a.prototype.swap32=function(){let Y=this.length;if(Y%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let D=0;D<Y;D+=4)E(this,D,D+3),E(this,D+1,D+2);return this},a.prototype.swap64=function(){let Y=this.length;if(Y%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let D=0;D<Y;D+=8)E(this,D,D+7),E(this,D+1,D+6),E(this,D+2,D+5),E(this,D+3,D+4);return this},a.prototype.toString=function(){let Y=this.length;return Y===0?"":arguments.length===0?M(this,0,Y):_.apply(this,arguments)},a.prototype.toLocaleString=a.prototype.toString,a.prototype.equals=function(Y){if(!a.isBuffer(Y))throw new TypeError("Argument must be a Buffer");return this===Y?!0:a.compare(this,Y)===0},a.prototype.inspect=function(){let Y="",D=qh.INSPECT_MAX_BYTES;return Y=this.toString("hex",0,D).replace(/(.{2})/g,"$1 ").trim(),this.length>D&&(Y+=" ... "),"<Buffer "+Y+">"},n&&(a.prototype[n]=a.prototype.inspect),a.prototype.compare=function(Y,D,G,ie,me){if(ye(Y,Uint8Array)&&(Y=a.from(Y,Y.offset,Y.byteLength)),!a.isBuffer(Y))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof Y);if(D===void 0&&(D=0),G===void 0&&(G=Y?Y.length:0),ie===void 0&&(ie=0),me===void 0&&(me=this.length),D<0||G>Y.length||ie<0||me>this.length)throw new RangeError("out of range index");if(ie>=me&&D>=G)return 0;if(ie>=me)return-1;if(D>=G)return 1;if(D>>>=0,G>>>=0,ie>>>=0,me>>>=0,this===Y)return 0;let se=me-ie,Be=G-D,Ve=Math.min(se,Be),re=this.slice(ie,me),Me=Y.slice(D,G);for(let je=0;je<Ve;++je)if(re[je]!==Me[je]){se=re[je],Be=Me[je];break}return se<Be?-1:Be<se?1:0};function w(Y,D,G,ie,me){if(Y.length===0)return-1;if(typeof G=="string"?(ie=G,G=0):G>2147483647?G=2147483647:G<-2147483648&&(G=-2147483648),G=+G,he(G)&&(G=me?0:Y.length-1),G<0&&(G=Y.length+G),G>=Y.length){if(me)return-1;G=Y.length-1}else if(G<0)if(me)G=0;else return-1;if(typeof D=="string"&&(D=a.from(D,ie)),a.isBuffer(D))return D.length===0?-1:S(Y,D,G,ie,me);if(typeof D=="number")return D=D&255,typeof Uint8Array.prototype.indexOf=="function"?me?Uint8Array.prototype.indexOf.call(Y,D,G):Uint8Array.prototype.lastIndexOf.call(Y,D,G):S(Y,[D],G,ie,me);throw new TypeError("val must be string, number or Buffer")}function S(Y,D,G,ie,me){let se=1,Be=Y.length,Ve=D.length;if(ie!==void 0&&(ie=String(ie).toLowerCase(),ie==="ucs2"||ie==="ucs-2"||ie==="utf16le"||ie==="utf-16le")){if(Y.length<2||D.length<2)return-1;se=2,Be/=2,Ve/=2,G/=2}function re(je,ke){return se===1?je[ke]:je.readUInt16BE(ke*se)}let Me;if(me){let je=-1;for(Me=G;Me<Be;Me++)if(re(Y,Me)===re(D,je===-1?0:Me-je)){if(je===-1&&(je=Me),Me-je+1===Ve)return je*se}else je!==-1&&(Me-=Me-je),je=-1}else for(G+Ve>Be&&(G=Be-Ve),Me=G;Me>=0;Me--){let je=!0;for(let ke=0;ke<Ve;ke++)if(re(Y,Me+ke)!==re(D,ke)){je=!1;break}if(je)return Me}return-1}a.prototype.includes=function(Y,D,G){return this.indexOf(Y,D,G)!==-1},a.prototype.indexOf=function(Y,D,G){return w(this,Y,D,G,!0)},a.prototype.lastIndexOf=function(Y,D,G){return w(this,Y,D,G,!1)};function C(Y,D,G,ie){G=Number(G)||0;let me=Y.length-G;ie?(ie=Number(ie),ie>me&&(ie=me)):ie=me;let se=D.length;ie>se/2&&(ie=se/2);let Be;for(Be=0;Be<ie;++Be){let Ve=parseInt(D.substr(Be*2,2),16);if(he(Ve))return Be;Y[G+Be]=Ve}return Be}function T(Y,D,G,ie){return Ce(pe(D,Y.length-G),Y,G,ie)}function x(Y,D,G,ie){return Ce(be(D),Y,G,ie)}function O(Y,D,G,ie){return Ce(Se(D),Y,G,ie)}function N(Y,D,G,ie){return Ce(Re(D,Y.length-G),Y,G,ie)}a.prototype.write=function(Y,D,G,ie){if(D===void 0)ie="utf8",G=this.length,D=0;else if(G===void 0&&typeof D=="string")ie=D,G=this.length,D=0;else if(isFinite(D))D=D>>>0,isFinite(G)?(G=G>>>0,ie===void 0&&(ie="utf8")):(ie=G,G=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");let me=this.length-D;if((G===void 0||G>me)&&(G=me),Y.length>0&&(G<0||D<0)||D>this.length)throw new RangeError("Attempt to write outside buffer bounds");ie||(ie="utf8");let se=!1;for(;;)switch(ie){case"hex":return C(this,Y,D,G);case"utf8":case"utf-8":return T(this,Y,D,G);case"ascii":case"latin1":case"binary":return x(this,Y,D,G);case"base64":return O(this,Y,D,G);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return N(this,Y,D,G);default:if(se)throw new TypeError("Unknown encoding: "+ie);ie=(""+ie).toLowerCase(),se=!0}},a.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function I(Y,D,G){return D===0&&G===Y.length?e.fromByteArray(Y):e.fromByteArray(Y.slice(D,G))}function M(Y,D,G){G=Math.min(Y.length,G);let ie=[],me=D;for(;me<G;){let se=Y[me],Be=null,Ve=se>239?4:se>223?3:se>191?2:1;if(me+Ve<=G){let re,Me,je,ke;switch(Ve){case 1:se<128&&(Be=se);break;case 2:re=Y[me+1],(re&192)===128&&(ke=(se&31)<<6|re&63,ke>127&&(Be=ke));break;case 3:re=Y[me+1],Me=Y[me+2],(re&192)===128&&(Me&192)===128&&(ke=(se&15)<<12|(re&63)<<6|Me&63,ke>2047&&(ke<55296||ke>57343)&&(Be=ke));break;case 4:re=Y[me+1],Me=Y[me+2],je=Y[me+3],(re&192)===128&&(Me&192)===128&&(je&192)===128&&(ke=(se&15)<<18|(re&63)<<12|(Me&63)<<6|je&63,ke>65535&&ke<1114112&&(Be=ke))}}Be===null?(Be=65533,Ve=1):Be>65535&&(Be-=65536,ie.push(Be>>>10&1023|55296),Be=56320|Be&1023),ie.push(Be),me+=Ve}return k(ie)}let F=4096;function k(Y){let D=Y.length;if(D<=F)return String.fromCharCode.apply(String,Y);let G="",ie=0;for(;ie<D;)G+=String.fromCharCode.apply(String,Y.slice(ie,ie+=F));return G}function B(Y,D,G){let ie="";G=Math.min(Y.length,G);for(let me=D;me<G;++me)ie+=String.fromCharCode(Y[me]&127);return ie}function A(Y,D,G){let ie="";G=Math.min(Y.length,G);for(let me=D;me<G;++me)ie+=String.fromCharCode(Y[me]);return ie}function P(Y,D,G){let ie=Y.length;(!D||D<0)&&(D=0),(!G||G<0||G>ie)&&(G=ie);let me="";for(let se=D;se<G;++se)me+=_e[Y[se]];return me}function z(Y,D,G){let ie=Y.slice(D,G),me="";for(let se=0;se<ie.length-1;se+=2)me+=String.fromCharCode(ie[se]+ie[se+1]*256);return me}a.prototype.slice=function(Y,D){let G=this.length;Y=~~Y,D=D===void 0?G:~~D,Y<0?(Y+=G,Y<0&&(Y=0)):Y>G&&(Y=G),D<0?(D+=G,D<0&&(D=0)):D>G&&(D=G),D<Y&&(D=Y);let ie=this.subarray(Y,D);return Object.setPrototypeOf(ie,a.prototype),ie};function L(Y,D,G){if(Y%1!==0||Y<0)throw new RangeError("offset is not uint");if(Y+D>G)throw new RangeError("Trying to access beyond buffer length")}a.prototype.readUintLE=a.prototype.readUIntLE=function(Y,D,G){Y=Y>>>0,D=D>>>0,G||L(Y,D,this.length);let ie=this[Y],me=1,se=0;for(;++se<D&&(me*=256);)ie+=this[Y+se]*me;return ie},a.prototype.readUintBE=a.prototype.readUIntBE=function(Y,D,G){Y=Y>>>0,D=D>>>0,G||L(Y,D,this.length);let ie=this[Y+--D],me=1;for(;D>0&&(me*=256);)ie+=this[Y+--D]*me;return ie},a.prototype.readUint8=a.prototype.readUInt8=function(Y,D){return Y=Y>>>0,D||L(Y,1,this.length),this[Y]},a.prototype.readUint16LE=a.prototype.readUInt16LE=function(Y,D){return Y=Y>>>0,D||L(Y,2,this.length),this[Y]|this[Y+1]<<8},a.prototype.readUint16BE=a.prototype.readUInt16BE=function(Y,D){return Y=Y>>>0,D||L(Y,2,this.length),this[Y]<<8|this[Y+1]},a.prototype.readUint32LE=a.prototype.readUInt32LE=function(Y,D){return Y=Y>>>0,D||L(Y,4,this.length),(this[Y]|this[Y+1]<<8|this[Y+2]<<16)+this[Y+3]*16777216},a.prototype.readUint32BE=a.prototype.readUInt32BE=function(Y,D){return Y=Y>>>0,D||L(Y,4,this.length),this[Y]*16777216+(this[Y+1]<<16|this[Y+2]<<8|this[Y+3])},a.prototype.readBigUInt64LE=Oe(function(Y){Y=Y>>>0,ue(Y,"offset");let D=this[Y],G=this[Y+7];(D===void 0||G===void 0)&&le(Y,this.length-8);let ie=D+this[++Y]*2**8+this[++Y]*2**16+this[++Y]*2**24,me=this[++Y]+this[++Y]*2**8+this[++Y]*2**16+G*2**24;return BigInt(ie)+(BigInt(me)<<BigInt(32))}),a.prototype.readBigUInt64BE=Oe(function(Y){Y=Y>>>0,ue(Y,"offset");let D=this[Y],G=this[Y+7];(D===void 0||G===void 0)&&le(Y,this.length-8);let ie=D*2**24+this[++Y]*2**16+this[++Y]*2**8+this[++Y],me=this[++Y]*2**24+this[++Y]*2**16+this[++Y]*2**8+G;return(BigInt(ie)<<BigInt(32))+BigInt(me)}),a.prototype.readIntLE=function(Y,D,G){Y=Y>>>0,D=D>>>0,G||L(Y,D,this.length);let ie=this[Y],me=1,se=0;for(;++se<D&&(me*=256);)ie+=this[Y+se]*me;return me*=128,ie>=me&&(ie-=Math.pow(2,8*D)),ie},a.prototype.readIntBE=function(Y,D,G){Y=Y>>>0,D=D>>>0,G||L(Y,D,this.length);let ie=D,me=1,se=this[Y+--ie];for(;ie>0&&(me*=256);)se+=this[Y+--ie]*me;return me*=128,se>=me&&(se-=Math.pow(2,8*D)),se},a.prototype.readInt8=function(Y,D){return Y=Y>>>0,D||L(Y,1,this.length),this[Y]&128?(255-this[Y]+1)*-1:this[Y]},a.prototype.readInt16LE=function(Y,D){Y=Y>>>0,D||L(Y,2,this.length);let G=this[Y]|this[Y+1]<<8;return G&32768?G|4294901760:G},a.prototype.readInt16BE=function(Y,D){Y=Y>>>0,D||L(Y,2,this.length);let G=this[Y+1]|this[Y]<<8;return G&32768?G|4294901760:G},a.prototype.readInt32LE=function(Y,D){return Y=Y>>>0,D||L(Y,4,this.length),this[Y]|this[Y+1]<<8|this[Y+2]<<16|this[Y+3]<<24},a.prototype.readInt32BE=function(Y,D){return Y=Y>>>0,D||L(Y,4,this.length),this[Y]<<24|this[Y+1]<<16|this[Y+2]<<8|this[Y+3]},a.prototype.readBigInt64LE=Oe(function(Y){Y=Y>>>0,ue(Y,"offset");let D=this[Y],G=this[Y+7];(D===void 0||G===void 0)&&le(Y,this.length-8);let ie=this[Y+4]+this[Y+5]*2**8+this[Y+6]*2**16+(G<<24);return(BigInt(ie)<<BigInt(32))+BigInt(D+this[++Y]*2**8+this[++Y]*2**16+this[++Y]*2**24)}),a.prototype.readBigInt64BE=Oe(function(Y){Y=Y>>>0,ue(Y,"offset");let D=this[Y],G=this[Y+7];(D===void 0||G===void 0)&&le(Y,this.length-8);let ie=(D<<24)+this[++Y]*2**16+this[++Y]*2**8+this[++Y];return(BigInt(ie)<<BigInt(32))+BigInt(this[++Y]*2**24+this[++Y]*2**16+this[++Y]*2**8+G)}),a.prototype.readFloatLE=function(Y,D){return Y=Y>>>0,D||L(Y,4,this.length),t.read(this,Y,!0,23,4)},a.prototype.readFloatBE=function(Y,D){return Y=Y>>>0,D||L(Y,4,this.length),t.read(this,Y,!1,23,4)},a.prototype.readDoubleLE=function(Y,D){return Y=Y>>>0,D||L(Y,8,this.length),t.read(this,Y,!0,52,8)},a.prototype.readDoubleBE=function(Y,D){return Y=Y>>>0,D||L(Y,8,this.length),t.read(this,Y,!1,52,8)};function V(Y,D,G,ie,me,se){if(!a.isBuffer(Y))throw new TypeError('"buffer" argument must be a Buffer instance');if(D>me||D<se)throw new RangeError('"value" argument is out of bounds');if(G+ie>Y.length)throw new RangeError("Index out of range")}a.prototype.writeUintLE=a.prototype.writeUIntLE=function(Y,D,G,ie){if(Y=+Y,D=D>>>0,G=G>>>0,!ie){let Be=Math.pow(2,8*G)-1;V(this,Y,D,G,Be,0)}let me=1,se=0;for(this[D]=Y&255;++se<G&&(me*=256);)this[D+se]=Y/me&255;return D+G},a.prototype.writeUintBE=a.prototype.writeUIntBE=function(Y,D,G,ie){if(Y=+Y,D=D>>>0,G=G>>>0,!ie){let Be=Math.pow(2,8*G)-1;V(this,Y,D,G,Be,0)}let me=G-1,se=1;for(this[D+me]=Y&255;--me>=0&&(se*=256);)this[D+me]=Y/se&255;return D+G},a.prototype.writeUint8=a.prototype.writeUInt8=function(Y,D,G){return Y=+Y,D=D>>>0,G||V(this,Y,D,1,255,0),this[D]=Y&255,D+1},a.prototype.writeUint16LE=a.prototype.writeUInt16LE=function(Y,D,G){return Y=+Y,D=D>>>0,G||V(this,Y,D,2,65535,0),this[D]=Y&255,this[D+1]=Y>>>8,D+2},a.prototype.writeUint16BE=a.prototype.writeUInt16BE=function(Y,D,G){return Y=+Y,D=D>>>0,G||V(this,Y,D,2,65535,0),this[D]=Y>>>8,this[D+1]=Y&255,D+2},a.prototype.writeUint32LE=a.prototype.writeUInt32LE=function(Y,D,G){return Y=+Y,D=D>>>0,G||V(this,Y,D,4,4294967295,0),this[D+3]=Y>>>24,this[D+2]=Y>>>16,this[D+1]=Y>>>8,this[D]=Y&255,D+4},a.prototype.writeUint32BE=a.prototype.writeUInt32BE=function(Y,D,G){return Y=+Y,D=D>>>0,G||V(this,Y,D,4,4294967295,0),this[D]=Y>>>24,this[D+1]=Y>>>16,this[D+2]=Y>>>8,this[D+3]=Y&255,D+4};function j(Y,D,G,ie,me){fe(D,ie,me,Y,G,7);let se=Number(D&BigInt(4294967295));Y[G++]=se,se=se>>8,Y[G++]=se,se=se>>8,Y[G++]=se,se=se>>8,Y[G++]=se;let Be=Number(D>>BigInt(32)&BigInt(4294967295));return Y[G++]=Be,Be=Be>>8,Y[G++]=Be,Be=Be>>8,Y[G++]=Be,Be=Be>>8,Y[G++]=Be,G}function U(Y,D,G,ie,me){fe(D,ie,me,Y,G,7);let se=Number(D&BigInt(4294967295));Y[G+7]=se,se=se>>8,Y[G+6]=se,se=se>>8,Y[G+5]=se,se=se>>8,Y[G+4]=se;let Be=Number(D>>BigInt(32)&BigInt(4294967295));return Y[G+3]=Be,Be=Be>>8,Y[G+2]=Be,Be=Be>>8,Y[G+1]=Be,Be=Be>>8,Y[G]=Be,G+8}a.prototype.writeBigUInt64LE=Oe(function(Y,D=0){return j(this,Y,D,BigInt(0),BigInt("0xffffffffffffffff"))}),a.prototype.writeBigUInt64BE=Oe(function(Y,D=0){return U(this,Y,D,BigInt(0),BigInt("0xffffffffffffffff"))}),a.prototype.writeIntLE=function(Y,D,G,ie){if(Y=+Y,D=D>>>0,!ie){let Ve=Math.pow(2,8*G-1);V(this,Y,D,G,Ve-1,-Ve)}let me=0,se=1,Be=0;for(this[D]=Y&255;++me<G&&(se*=256);)Y<0&&Be===0&&this[D+me-1]!==0&&(Be=1),this[D+me]=(Y/se>>0)-Be&255;return D+G},a.prototype.writeIntBE=function(Y,D,G,ie){if(Y=+Y,D=D>>>0,!ie){let Ve=Math.pow(2,8*G-1);V(this,Y,D,G,Ve-1,-Ve)}let me=G-1,se=1,Be=0;for(this[D+me]=Y&255;--me>=0&&(se*=256);)Y<0&&Be===0&&this[D+me+1]!==0&&(Be=1),this[D+me]=(Y/se>>0)-Be&255;return D+G},a.prototype.writeInt8=function(Y,D,G){return Y=+Y,D=D>>>0,G||V(this,Y,D,1,127,-128),Y<0&&(Y=255+Y+1),this[D]=Y&255,D+1},a.prototype.writeInt16LE=function(Y,D,G){return Y=+Y,D=D>>>0,G||V(this,Y,D,2,32767,-32768),this[D]=Y&255,this[D+1]=Y>>>8,D+2},a.prototype.writeInt16BE=function(Y,D,G){return Y=+Y,D=D>>>0,G||V(this,Y,D,2,32767,-32768),this[D]=Y>>>8,this[D+1]=Y&255,D+2},a.prototype.writeInt32LE=function(Y,D,G){return Y=+Y,D=D>>>0,G||V(this,Y,D,4,2147483647,-2147483648),this[D]=Y&255,this[D+1]=Y>>>8,this[D+2]=Y>>>16,this[D+3]=Y>>>24,D+4},a.prototype.writeInt32BE=function(Y,D,G){return Y=+Y,D=D>>>0,G||V(this,Y,D,4,2147483647,-2147483648),Y<0&&(Y=4294967295+Y+1),this[D]=Y>>>24,this[D+1]=Y>>>16,this[D+2]=Y>>>8,this[D+3]=Y&255,D+4},a.prototype.writeBigInt64LE=Oe(function(Y,D=0){return j(this,Y,D,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),a.prototype.writeBigInt64BE=Oe(function(Y,D=0){return U(this,Y,D,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function J(Y,D,G,ie,me,se){if(G+ie>Y.length)throw new RangeError("Index out of range");if(G<0)throw new RangeError("Index out of range")}function te(Y,D,G,ie,me){return D=+D,G=G>>>0,me||J(Y,D,G,4),t.write(Y,D,G,ie,23,4),G+4}a.prototype.writeFloatLE=function(Y,D,G){return te(this,Y,D,!0,G)},a.prototype.writeFloatBE=function(Y,D,G){return te(this,Y,D,!1,G)};function ae(Y,D,G,ie,me){return D=+D,G=G>>>0,me||J(Y,D,G,8),t.write(Y,D,G,ie,52,8),G+8}a.prototype.writeDoubleLE=function(Y,D,G){return ae(this,Y,D,!0,G)},a.prototype.writeDoubleBE=function(Y,D,G){return ae(this,Y,D,!1,G)},a.prototype.copy=function(Y,D,G,ie){if(!a.isBuffer(Y))throw new TypeError("argument should be a Buffer");if(G||(G=0),!ie&&ie!==0&&(ie=this.length),D>=Y.length&&(D=Y.length),D||(D=0),ie>0&&ie<G&&(ie=G),ie===G||Y.length===0||this.length===0)return 0;if(D<0)throw new RangeError("targetStart out of bounds");if(G<0||G>=this.length)throw new RangeError("Index out of range");if(ie<0)throw new RangeError("sourceEnd out of bounds");ie>this.length&&(ie=this.length),Y.length-D<ie-G&&(ie=Y.length-D+G);let me=ie-G;return this===Y&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(D,G,ie):Uint8Array.prototype.set.call(Y,this.subarray(G,ie),D),me},a.prototype.fill=function(Y,D,G,ie){if(typeof Y=="string"){if(typeof D=="string"?(ie=D,D=0,G=this.length):typeof G=="string"&&(ie=G,G=this.length),ie!==void 0&&typeof ie!="string")throw new TypeError("encoding must be a string");if(typeof ie=="string"&&!a.isEncoding(ie))throw new TypeError("Unknown encoding: "+ie);if(Y.length===1){let se=Y.charCodeAt(0);(ie==="utf8"&&se<128||ie==="latin1")&&(Y=se)}}else typeof Y=="number"?Y=Y&255:typeof Y=="boolean"&&(Y=Number(Y));if(D<0||this.length<D||this.length<G)throw new RangeError("Out of range index");if(G<=D)return this;D=D>>>0,G=G===void 0?this.length:G>>>0,Y||(Y=0);let me;if(typeof Y=="number")for(me=D;me<G;++me)this[me]=Y;else{let se=a.isBuffer(Y)?Y:a.from(Y,ie),Be=se.length;if(Be===0)throw new TypeError('The value "'+Y+'" is invalid for argument "value"');for(me=0;me<G-D;++me)this[me+D]=se[me%Be]}return this};let K={};function Q(Y,D,G){K[Y]=class extends G{constructor(){super(),Object.defineProperty(this,"message",{value:D.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${Y}]`,this.stack,delete this.name}get code(){return Y}set code(ie){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:ie,writable:!0})}toString(){return`${this.name} [${Y}]: ${this.message}`}}}Q("ERR_BUFFER_OUT_OF_BOUNDS",function(Y){return Y?`${Y} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),Q("ERR_INVALID_ARG_TYPE",function(Y,D){return`The "${Y}" argument must be of type number. Received type ${typeof D}`},TypeError),Q("ERR_OUT_OF_RANGE",function(Y,D,G){let ie=`The value of "${Y}" is out of range.`,me=G;return Number.isInteger(G)&&Math.abs(G)>2**32?me=oe(String(G)):typeof G=="bigint"&&(me=String(G),(G>BigInt(2)**BigInt(32)||G<-(BigInt(2)**BigInt(32)))&&(me=oe(me)),me+="n"),ie+=` It must be ${D}. Received ${me}`,ie},RangeError);function oe(Y){let D="",G=Y.length,ie=Y[0]==="-"?1:0;for(;G>=ie+4;G-=3)D=`_${Y.slice(G-3,G)}${D}`;return`${Y.slice(0,G)}${D}`}function ge(Y,D,G){ue(D,"offset"),(Y[D]===void 0||Y[D+G]===void 0)&&le(D,Y.length-(G+1))}function fe(Y,D,G,ie,me,se){if(Y>G||Y<D){let Be=typeof D=="bigint"?"n":"",Ve;throw D===0||D===BigInt(0)?Ve=`>= 0${Be} and < 2${Be} ** ${(se+1)*8}${Be}`:Ve=`>= -(2${Be} ** ${(se+1)*8-1}${Be}) and < 2 ** ${(se+1)*8-1}${Be}`,new K.ERR_OUT_OF_RANGE("value",Ve,Y)}ge(ie,me,se)}function ue(Y,D){if(typeof Y!="number")throw new K.ERR_INVALID_ARG_TYPE(D,"number",Y)}function le(Y,D,G){throw Math.floor(Y)!==Y?(ue(Y,G),new K.ERR_OUT_OF_RANGE("offset","an integer",Y)):D<0?new K.ERR_BUFFER_OUT_OF_BOUNDS:new K.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${D}`,Y)}let ve=/[^+/0-9A-Za-z-_]/g;function ne(Y){if(Y=Y.split("=")[0],Y=Y.trim().replace(ve,""),Y.length<2)return"";for(;Y.length%4!==0;)Y=Y+"=";return Y}function pe(Y,D){D=D||1/0;let G,ie=Y.length,me=null,se=[];for(let Be=0;Be<ie;++Be){if(G=Y.charCodeAt(Be),G>55295&&G<57344){if(!me){if(G>56319){(D-=3)>-1&&se.push(239,191,189);continue}else if(Be+1===ie){(D-=3)>-1&&se.push(239,191,189);continue}me=G;continue}if(G<56320){(D-=3)>-1&&se.push(239,191,189),me=G;continue}G=(me-55296<<10|G-56320)+65536}else me&&(D-=3)>-1&&se.push(239,191,189);if(me=null,G<128){if((D-=1)<0)break;se.push(G)}else if(G<2048){if((D-=2)<0)break;se.push(G>>6|192,G&63|128)}else if(G<65536){if((D-=3)<0)break;se.push(G>>12|224,G>>6&63|128,G&63|128)}else if(G<1114112){if((D-=4)<0)break;se.push(G>>18|240,G>>12&63|128,G>>6&63|128,G&63|128)}else throw new Error("Invalid code point")}return se}function be(Y){let D=[];for(let G=0;G<Y.length;++G)D.push(Y.charCodeAt(G)&255);return D}function Re(Y,D){let G,ie,me,se=[];for(let Be=0;Be<Y.length&&!((D-=2)<0);++Be)G=Y.charCodeAt(Be),ie=G>>8,me=G%256,se.push(me),se.push(ie);return se}function Se(Y){return e.toByteArray(ne(Y))}function Ce(Y,D,G,ie){let me;for(me=0;me<ie&&!(me+G>=D.length||me>=Y.length);++me)D[me+G]=Y[me];return me}function ye(Y,D){return Y instanceof D||Y!=null&&Y.constructor!=null&&Y.constructor.name!=null&&Y.constructor.name===D.name}function he(Y){return Y!==Y}let _e=function(){let Y="0123456789abcdef",D=new Array(256);for(let G=0;G<16;++G){let ie=G*16;for(let me=0;me<16;++me)D[ie+me]=Y[G]+Y[me]}return D}();function Oe(Y){return typeof BigInt>"u"?De:Y}function De(){throw new Error("BigInt not supported")}return qh}var Tb,aj,xC,sj,qh,lj,vp,tM,p0e,h0e,us=ls(()=>{Zt(),en(),Jt(),Tb={},aj=!1,xC={},sj=!1,qh={},lj=!1,vp=sBe(),vp.Buffer,vp.SlowBuffer,vp.INSPECT_MAX_BYTES,vp.kMaxLength,tM=vp.Buffer,p0e=vp.INSPECT_MAX_BYTES,h0e=vp.kMaxLength}),en=ls(()=>{us()}),lBe=sn(e=>{Zt(),en(),Jt(),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}),xa=sn((e,t)=>{Zt(),en(),Jt(),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}}),nh=sn((e,t)=>{Zt(),en(),Jt();var n=(us(),Hi(cs)),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")}),qG=sn((e,t)=>{Zt(),en(),Jt();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}),Ll=sn((e,t)=>{Zt(),en(),Jt();var{format:n,inspect:r,AggregateError:i}=nh(),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,_){if(!b)throw new u.ERR_INTERNAL_ASSERTION(_)}function f(b){let _="",E=b.length,w=b[0]==="-"?1:0;for(;E>=w+4;E-=3)_=`_${b.slice(E-3,E)}${_}`;return`${b.slice(0,E)}${_}`}function h(b,_,E){if(typeof _=="function")return d(_.length<=E.length,`Code: ${b}; The provided arguments length (${E.length}) does not match the required ones (${_.length}).`),_(...E);let w=(_.match(/%[dfijoOs]/g)||[]).length;return d(w===E.length,`Code: ${b}; The provided arguments length (${E.length}) does not match the required ones (${w}).`),E.length===0?_:n(_,...E)}function m(b,_,E){E||(E=Error);class w extends E{constructor(...C){super(h(b,_,C))}toString(){return`${this.name} [${b}]: ${this.message}`}}Object.defineProperties(w.prototype,{name:{value:E.name,writable:!0,enumerable:!1,configurable:!0},toString:{value(){return`${this.name} [${b}]: ${this.message}`},writable:!0,enumerable:!1,configurable:!0}}),w.prototype.code=b,w.prototype[a]=!0,u[b]=w}function g(b){let _=c+b.name;return Object.defineProperty(b,"name",{value:_}),b}function v(b,_){if(b&&_&&b!==_){if(Array.isArray(_.errors))return _.errors.push(b),_;let E=new o([_,b],_.message);return E.code=_.code,E}return b||_}var y=class extends Error{constructor(b="The operation was aborted",_=void 0){if(_!==void 0&&typeof _!="object")throw new u.ERR_INVALID_ARG_TYPE("options","Object",_);super(b,_),this.code="ABORT_ERR",this.name="AbortError"}};m("ERR_ASSERTION","%s",Error),m("ERR_INVALID_ARG_TYPE",(b,_,E)=>{d(typeof b=="string","'name' must be a string"),Array.isArray(_)||(_=[_]);let w="The ";b.endsWith(" argument")?w+=`${b} `:w+=`"${b}" ${b.includes(".")?"property":"argument"} `,w+="must be ";let S=[],C=[],T=[];for(let O of _)d(typeof O=="string","All expected entries have to be of type string"),s.includes(O)?S.push(O.toLowerCase()):l.test(O)?C.push(O):(d(O!=="object",'The value "object" should be written as "Object"'),T.push(O));if(C.length>0){let O=S.indexOf("object");O!==-1&&(S.splice(S,O,1),C.push("Object"))}if(S.length>0){switch(S.length){case 1:w+=`of type ${S[0]}`;break;case 2:w+=`one of type ${S[0]} or ${S[1]}`;break;default:{let O=S.pop();w+=`one of type ${S.join(", ")}, or ${O}`}}(C.length>0||T.length>0)&&(w+=" or ")}if(C.length>0){switch(C.length){case 1:w+=`an instance of ${C[0]}`;break;case 2:w+=`an instance of ${C[0]} or ${C[1]}`;break;default:{let O=C.pop();w+=`an instance of ${C.join(", ")}, or ${O}`}}T.length>0&&(w+=" or ")}switch(T.length){case 0:break;case 1:T[0].toLowerCase()!==T[0]&&(w+="an "),w+=`${T[0]}`;break;case 2:w+=`one of ${T[0]} or ${T[1]}`;break;default:{let O=T.pop();w+=`one of ${T.join(", ")}, or ${O}`}}if(E==null)w+=`. Received ${E}`;else if(typeof E=="function"&&E.name)w+=`. Received function ${E.name}`;else if(typeof E=="object"){var x;if((x=E.constructor)!==null&&x!==void 0&&x.name)w+=`. Received an instance of ${E.constructor.name}`;else{let O=r(E,{depth:-1});w+=`. Received ${O}`}}else{let O=r(E,{colors:!1});O.length>25&&(O=`${O.slice(0,25)}...`),w+=`. Received type ${typeof E} (${O})`}return w},TypeError),m("ERR_INVALID_ARG_VALUE",(b,_,E="is invalid")=>{let w=r(_);return w.length>128&&(w=w.slice(0,128)+"..."),`The ${b.includes(".")?"property":"argument"} '${b}' ${E}. Received ${w}`},TypeError),m("ERR_INVALID_RETURN_VALUE",(b,_,E)=>{var w;let S=E!=null&&(w=E.constructor)!==null&&w!==void 0&&w.name?`instance of ${E.constructor.name}`:`type ${typeof E}`;return`Expected ${b} to be returned from the "${_}" function but got ${S}.`},TypeError),m("ERR_MISSING_ARGS",(...b)=>{d(b.length>0,"At least one arg needs to be specified");let _,E=b.length;switch(b=(Array.isArray(b)?b:[b]).map(w=>`"${w}"`).join(" or "),E){case 1:_+=`The ${b[0]} argument`;break;case 2:_+=`The ${b[0]} and ${b[1]} arguments`;break;default:{let w=b.pop();_+=`The ${b.join(", ")}, and ${w} arguments`}break}return`${_} must be specified`},TypeError),m("ERR_OUT_OF_RANGE",(b,_,E)=>{d(_,'Missing "range" argument');let w;return Number.isInteger(E)&&Math.abs(E)>2**32?w=f(String(E)):typeof E=="bigint"?(w=String(E),(E>2n**32n||E<-(2n**32n))&&(w=f(w)),w+="n"):w=r(E),`The value of "${b}" is out of range. It must be ${_}. Received ${w}`},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:y,aggregateTwoErrors:g(v),hideStackFrames:g,codes:u}}),xP=sn((e,t)=>{Zt(),en(),Jt();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:f,String:h,StringPrototypeToUpperCase:m,StringPrototypeTrim:g}=xa(),{hideStackFrames:v,codes:{ERR_SOCKET_BAD_PORT:y,ERR_INVALID_ARG_TYPE:b,ERR_INVALID_ARG_VALUE:_,ERR_OUT_OF_RANGE:E,ERR_UNKNOWN_SIGNAL:w}}=Ll(),{normalizeEncoding:S}=nh(),{isAsyncFunction:C,isArrayBufferView:T}=nh().types,x={};function O(Ce){return Ce===(Ce|0)}function N(Ce){return Ce===Ce>>>0}var I=/^[0-7]+$/,M="must be a 32-bit unsigned integer or an octal string";function F(Ce,ye,he){if(typeof Ce>"u"&&(Ce=he),typeof Ce=="string"){if(f(I,Ce)===null)throw new _(ye,Ce,M);Ce=u(Ce,8)}return A(Ce,ye),Ce}var k=v((Ce,ye,he=c,_e=l)=>{if(typeof Ce!="number")throw new b(ye,"number",Ce);if(!a(Ce))throw new E(ye,"an integer",Ce);if(Ce<he||Ce>_e)throw new E(ye,`>= ${he} && <= ${_e}`,Ce)}),B=v((Ce,ye,he=-2147483648,_e=2147483647)=>{if(typeof Ce!="number")throw new b(ye,"number",Ce);if(!a(Ce))throw new E(ye,"an integer",Ce);if(Ce<he||Ce>_e)throw new E(ye,`>= ${he} && <= ${_e}`,Ce)}),A=v((Ce,ye,he=!1)=>{if(typeof Ce!="number")throw new b(ye,"number",Ce);if(!a(Ce))throw new E(ye,"an integer",Ce);let _e=he?1:0,Oe=4294967295;if(Ce<_e||Ce>Oe)throw new E(ye,`>= ${_e} && <= ${Oe}`,Ce)});function P(Ce,ye){if(typeof Ce!="string")throw new b(ye,"string",Ce)}function z(Ce,ye,he=void 0,_e){if(typeof Ce!="number")throw new b(ye,"number",Ce);if(he!=null&&Ce<he||_e!=null&&Ce>_e||(he!=null||_e!=null)&&s(Ce))throw new E(ye,`${he!=null?`>= ${he}`:""}${he!=null&&_e!=null?" && ":""}${_e!=null?`<= ${_e}`:""}`,Ce)}var L=v((Ce,ye,he)=>{if(!r(he,Ce)){let _e="must be one of: "+i(o(he,Oe=>typeof Oe=="string"?`'${Oe}'`:h(Oe)),", ");throw new _(ye,Ce,_e)}});function V(Ce,ye){if(typeof Ce!="boolean")throw new b(ye,"boolean",Ce)}function j(Ce,ye,he){return Ce==null||!d(Ce,ye)?he:Ce[ye]}var U=v((Ce,ye,he=null)=>{let _e=j(he,"allowArray",!1),Oe=j(he,"allowFunction",!1);if(!j(he,"nullable",!1)&&Ce===null||!_e&&n(Ce)||typeof Ce!="object"&&(!Oe||typeof Ce!="function"))throw new b(ye,"Object",Ce)}),J=v((Ce,ye)=>{if(Ce!=null&&typeof Ce!="object"&&typeof Ce!="function")throw new b(ye,"a dictionary",Ce)}),te=v((Ce,ye,he=0)=>{if(!n(Ce))throw new b(ye,"Array",Ce);if(Ce.length<he){let _e=`must be longer than ${he}`;throw new _(ye,Ce,_e)}});function ae(Ce,ye){te(Ce,ye);for(let he=0;he<Ce.length;he++)P(Ce[he],`${ye}[${he}]`)}function K(Ce,ye){te(Ce,ye);for(let he=0;he<Ce.length;he++)V(Ce[he],`${ye}[${he}]`)}function Q(Ce,ye="signal"){if(P(Ce,ye),x[Ce]===void 0)throw x[m(Ce)]!==void 0?new w(Ce+" (signals must use all capital letters)"):new w(Ce)}var oe=v((Ce,ye="buffer")=>{if(!T(Ce))throw new b(ye,["Buffer","TypedArray","DataView"],Ce)});function ge(Ce,ye){let he=S(ye),_e=Ce.length;if(he==="hex"&&_e%2!==0)throw new _("encoding",ye,`is invalid for data of length ${_e}`)}function fe(Ce,ye="Port",he=!0){if(typeof Ce!="number"&&typeof Ce!="string"||typeof Ce=="string"&&g(Ce).length===0||+Ce!==+Ce>>>0||Ce>65535||Ce===0&&!he)throw new y(ye,Ce,he);return Ce|0}var ue=v((Ce,ye)=>{if(Ce!==void 0&&(Ce===null||typeof Ce!="object"||!("aborted"in Ce)))throw new b(ye,"AbortSignal",Ce)}),le=v((Ce,ye)=>{if(typeof Ce!="function")throw new b(ye,"Function",Ce)}),ve=v((Ce,ye)=>{if(typeof Ce!="function"||C(Ce))throw new b(ye,"Function",Ce)}),ne=v((Ce,ye)=>{if(Ce!==void 0)throw new b(ye,"undefined",Ce)});function pe(Ce,ye,he){if(!r(he,Ce))throw new b(ye,`('${i(he,"|")}')`,Ce)}var be=/^(?:<[^>]*>)(?:\s*;\s*[^;"\s]+(?:=(")?[^;"\s]*\1)?)*$/;function Re(Ce,ye){if(typeof Ce>"u"||!f(be,Ce))throw new _(ye,Ce,'must be an array or string of format "</styles.css>; rel=preload; as=style"')}function Se(Ce){if(typeof Ce=="string")return Re(Ce,"hints"),Ce;if(n(Ce)){let ye=Ce.length,he="";if(ye===0)return he;for(let _e=0;_e<ye;_e++){let Oe=Ce[_e];Re(Oe,"hints"),he+=Oe,_e!==ye-1&&(he+=", ")}return he}throw new _("hints",Ce,'must be an array or string of format "</styles.css>; rel=preload; as=style"')}t.exports={isInt32:O,isUint32:N,parseFileMode:F,validateArray:te,validateStringArray:ae,validateBooleanArray:K,validateBoolean:V,validateBuffer:oe,validateDictionary:J,validateEncoding:ge,validateFunction:le,validateInt32:B,validateInteger:k,validateNumber:z,validateObject:U,validateOneOf:L,validatePlainFunction:ve,validatePort:fe,validateSignalName:Q,validateString:P,validateUint32:A,validateUndefined:ne,validateUnion:pe,validateAbortSignal:ue,validateLinkHeaderValue:Se}}),h0=sn((e,t)=>{Zt(),en(),Jt();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(y){if(r===setTimeout)return setTimeout(y,0);if((r===o||!r)&&setTimeout)return r=setTimeout,setTimeout(y,0);try{return r(y,0)}catch{try{return r.call(null,y,0)}catch{return r.call(this,y,0)}}}function l(y){if(i===clearTimeout)return clearTimeout(y);if((i===a||!i)&&clearTimeout)return i=clearTimeout,clearTimeout(y);try{return i(y)}catch{try{return i.call(null,y)}catch{return i.call(this,y)}}}var c=[],u=!1,d,f=-1;function h(){!u||!d||(u=!1,d.length?c=d.concat(c):f=-1,c.length&&m())}function m(){if(!u){var y=s(h);u=!0;for(var b=c.length;b;){for(d=c,c=[];++f<b;)d&&d[f].run();f=-1,b=c.length}d=null,u=!1,l(y)}}n.nextTick=function(y){var b=new Array(arguments.length-1);if(arguments.length>1)for(var _=1;_<arguments.length;_++)b[_-1]=arguments[_];c.push(new g(y,b)),c.length===1&&!u&&s(m)};function g(y,b){this.fun=y,this.array=b}g.prototype.run=function(){this.fun.apply(null,this.array)},n.title="browser",n.browser=!0,n.env={},n.argv=[],n.version="",n.versions={};function v(){}n.on=v,n.addListener=v,n.once=v,n.off=v,n.removeListener=v,n.removeAllListeners=v,n.emit=v,n.prependListener=v,n.prependOnceListener=v,n.listeners=function(y){return[]},n.binding=function(y){throw new Error("process.binding is not supported")},n.cwd=function(){return"/"},n.chdir=function(y){throw new Error("process.chdir is not supported")},n.umask=function(){return 0}}),vh=sn((e,t)=>{Zt(),en(),Jt();var{Symbol:n,SymbolAsyncIterator:r,SymbolIterator:i,SymbolFor:o}=xa(),a=n("kDestroyed"),s=n("kIsErrored"),l=n("kIsReadable"),c=n("kIsDisturbed"),u=o("nodejs.webstream.isClosedPromise"),d=o("nodejs.webstream.controllerErrorFunction");function f(j,U=!1){var J;return!!(j&&typeof j.pipe=="function"&&typeof j.on=="function"&&(!U||typeof j.pause=="function"&&typeof j.resume=="function")&&(!j._writableState||((J=j._readableState)===null||J===void 0?void 0:J.readable)!==!1)&&(!j._writableState||j._readableState))}function h(j){var U;return!!(j&&typeof j.write=="function"&&typeof j.on=="function"&&(!j._readableState||((U=j._writableState)===null||U===void 0?void 0:U.writable)!==!1))}function m(j){return!!(j&&typeof j.pipe=="function"&&j._readableState&&typeof j.on=="function"&&typeof j.write=="function")}function g(j){return j&&(j._readableState||j._writableState||typeof j.write=="function"&&typeof j.on=="function"||typeof j.pipe=="function"&&typeof j.on=="function")}function v(j){return!!(j&&!g(j)&&typeof j.pipeThrough=="function"&&typeof j.getReader=="function"&&typeof j.cancel=="function")}function y(j){return!!(j&&!g(j)&&typeof j.getWriter=="function"&&typeof j.abort=="function")}function b(j){return!!(j&&!g(j)&&typeof j.readable=="object"&&typeof j.writable=="object")}function _(j){return v(j)||y(j)||b(j)}function E(j,U){return j==null?!1:U===!0?typeof j[r]=="function":U===!1?typeof j[i]=="function":typeof j[r]=="function"||typeof j[i]=="function"}function w(j){if(!g(j))return null;let U=j._writableState,J=j._readableState,te=U||J;return!!(j.destroyed||j[a]||te!=null&&te.destroyed)}function S(j){if(!h(j))return null;if(j.writableEnded===!0)return!0;let U=j._writableState;return U!=null&&U.errored?!1:typeof(U==null?void 0:U.ended)!="boolean"?null:U.ended}function C(j,U){if(!h(j))return null;if(j.writableFinished===!0)return!0;let J=j._writableState;return J!=null&&J.errored?!1:typeof(J==null?void 0:J.finished)!="boolean"?null:!!(J.finished||U===!1&&J.ended===!0&&J.length===0)}function T(j){if(!f(j))return null;if(j.readableEnded===!0)return!0;let U=j._readableState;return!U||U.errored?!1:typeof(U==null?void 0:U.ended)!="boolean"?null:U.ended}function x(j,U){if(!f(j))return null;let J=j._readableState;return J!=null&&J.errored?!1:typeof(J==null?void 0:J.endEmitted)!="boolean"?null:!!(J.endEmitted||U===!1&&J.ended===!0&&J.length===0)}function O(j){return j&&j[l]!=null?j[l]:typeof(j==null?void 0:j.readable)!="boolean"?null:w(j)?!1:f(j)&&j.readable&&!x(j)}function N(j){return typeof(j==null?void 0:j.writable)!="boolean"?null:w(j)?!1:h(j)&&j.writable&&!S(j)}function I(j,U){return g(j)?w(j)?!0:!((U==null?void 0:U.readable)!==!1&&O(j)||(U==null?void 0:U.writable)!==!1&&N(j)):null}function M(j){var U,J;return g(j)?j.writableErrored?j.writableErrored:(U=(J=j._writableState)===null||J===void 0?void 0:J.errored)!==null&&U!==void 0?U:null:null}function F(j){var U,J;return g(j)?j.readableErrored?j.readableErrored:(U=(J=j._readableState)===null||J===void 0?void 0:J.errored)!==null&&U!==void 0?U:null:null}function k(j){if(!g(j))return null;if(typeof j.closed=="boolean")return j.closed;let U=j._writableState,J=j._readableState;return typeof(U==null?void 0:U.closed)=="boolean"||typeof(J==null?void 0:J.closed)=="boolean"?(U==null?void 0:U.closed)||(J==null?void 0:J.closed):typeof j._closed=="boolean"&&B(j)?j._closed:null}function B(j){return typeof j._closed=="boolean"&&typeof j._defaultKeepAlive=="boolean"&&typeof j._removedConnection=="boolean"&&typeof j._removedContLen=="boolean"}function A(j){return typeof j._sent100=="boolean"&&B(j)}function P(j){var U;return typeof j._consuming=="boolean"&&typeof j._dumped=="boolean"&&((U=j.req)===null||U===void 0?void 0:U.upgradeOrConnect)===void 0}function z(j){if(!g(j))return null;let U=j._writableState,J=j._readableState,te=U||J;return!te&&A(j)||!!(te&&te.autoDestroy&&te.emitClose&&te.closed===!1)}function L(j){var U;return!!(j&&((U=j[c])!==null&&U!==void 0?U:j.readableDidRead||j.readableAborted))}function V(j){var U,J,te,ae,K,Q,oe,ge,fe,ue;return!!(j&&((U=(J=(te=(ae=(K=(Q=j[s])!==null&&Q!==void 0?Q:j.readableErrored)!==null&&K!==void 0?K:j.writableErrored)!==null&&ae!==void 0?ae:(oe=j._readableState)===null||oe===void 0?void 0:oe.errorEmitted)!==null&&te!==void 0?te:(ge=j._writableState)===null||ge===void 0?void 0:ge.errorEmitted)!==null&&J!==void 0?J:(fe=j._readableState)===null||fe===void 0?void 0:fe.errored)!==null&&U!==void 0?U:!((ue=j._writableState)===null||ue===void 0)&&ue.errored))}t.exports={kDestroyed:a,isDisturbed:L,kIsDisturbed:c,isErrored:V,kIsErrored:s,isReadable:O,kIsReadable:l,kIsClosedPromise:u,kControllerErrorFunction:d,isClosed:k,isDestroyed:w,isDuplexNodeStream:m,isFinished:I,isIterable:E,isReadableNodeStream:f,isReadableStream:v,isReadableEnded:T,isReadableFinished:x,isReadableErrored:F,isNodeStream:g,isWebStream:_,isWritable:N,isWritableNodeStream:h,isWritableStream:y,isWritableEnded:S,isWritableFinished:C,isWritableErrored:M,isServerRequest:P,isServerResponse:A,willEmitClose:z,isTransformStream:b}}),xg=sn((e,t)=>{Zt(),en(),Jt();var n=h0(),{AbortError:r,codes:i}=Ll(),{ERR_INVALID_ARG_TYPE:o,ERR_STREAM_PREMATURE_CLOSE:a}=i,{kEmptyObject:s,once:l}=nh(),{validateAbortSignal:c,validateFunction:u,validateObject:d,validateBoolean:f}=xP(),{Promise:h,PromisePrototypeThen:m}=xa(),{isClosed:g,isReadable:v,isReadableNodeStream:y,isReadableStream:b,isReadableFinished:_,isReadableErrored:E,isWritable:w,isWritableNodeStream:S,isWritableStream:C,isWritableFinished:T,isWritableErrored:x,isNodeStream:O,willEmitClose:N,kIsClosedPromise:I}=vh();function M(P){return P.setHeader&&typeof P.abort=="function"}var F=()=>{};function k(P,z,L){var V,j;if(arguments.length===2?(L=z,z=s):z==null?z=s:d(z,"options"),u(L,"callback"),c(z.signal,"options.signal"),L=l(L),b(P)||C(P))return B(P,z,L);if(!O(P))throw new o("stream",["ReadableStream","WritableStream","Stream"],P);let U=(V=z.readable)!==null&&V!==void 0?V:y(P),J=(j=z.writable)!==null&&j!==void 0?j:S(P),te=P._writableState,ae=P._readableState,K=()=>{P.writable||ge()},Q=N(P)&&y(P)===U&&S(P)===J,oe=T(P,!1),ge=()=>{oe=!0,P.destroyed&&(Q=!1),!(Q&&(!P.readable||U))&&(!U||fe)&&L.call(P)},fe=_(P,!1),ue=()=>{fe=!0,P.destroyed&&(Q=!1),!(Q&&(!P.writable||J))&&(!J||oe)&&L.call(P)},le=Se=>{L.call(P,Se)},ve=g(P),ne=()=>{ve=!0;let Se=x(P)||E(P);if(Se&&typeof Se!="boolean")return L.call(P,Se);if(U&&!fe&&y(P,!0)&&!_(P,!1))return L.call(P,new a);if(J&&!oe&&!T(P,!1))return L.call(P,new a);L.call(P)},pe=()=>{ve=!0;let Se=x(P)||E(P);if(Se&&typeof Se!="boolean")return L.call(P,Se);L.call(P)},be=()=>{P.req.on("finish",ge)};M(P)?(P.on("complete",ge),Q||P.on("abort",ne),P.req?be():P.on("request",be)):J&&!te&&(P.on("end",K),P.on("close",K)),!Q&&typeof P.aborted=="boolean"&&P.on("aborted",ne),P.on("end",ue),P.on("finish",ge),z.error!==!1&&P.on("error",le),P.on("close",ne),ve?n.nextTick(ne):te!=null&&te.errorEmitted||ae!=null&&ae.errorEmitted?Q||n.nextTick(pe):(!U&&(!Q||v(P))&&(oe||w(P)===!1)||!J&&(!Q||w(P))&&(fe||v(P)===!1)||ae&&P.req&&P.aborted)&&n.nextTick(pe);let Re=()=>{L=F,P.removeListener("aborted",ne),P.removeListener("complete",ge),P.removeListener("abort",ne),P.removeListener("request",be),P.req&&P.req.removeListener("finish",ge),P.removeListener("end",K),P.removeListener("close",K),P.removeListener("finish",ge),P.removeListener("end",ue),P.removeListener("error",le),P.removeListener("close",ne)};if(z.signal&&!ve){let Se=()=>{let Ce=L;Re(),Ce.call(P,new r(void 0,{cause:z.signal.reason}))};if(z.signal.aborted)n.nextTick(Se);else{let Ce=L;L=l((...ye)=>{z.signal.removeEventListener("abort",Se),Ce.apply(P,ye)}),z.signal.addEventListener("abort",Se)}}return Re}function B(P,z,L){let V=!1,j=F;if(z.signal)if(j=()=>{V=!0,L.call(P,new r(void 0,{cause:z.signal.reason}))},z.signal.aborted)n.nextTick(j);else{let J=L;L=l((...te)=>{z.signal.removeEventListener("abort",j),J.apply(P,te)}),z.signal.addEventListener("abort",j)}let U=(...J)=>{V||n.nextTick(()=>L.apply(P,J))};return m(P[I].promise,U,U),F}function A(P,z){var L;let V=!1;return z===null&&(z=s),(L=z)!==null&&L!==void 0&&L.cleanup&&(f(z.cleanup,"cleanup"),V=z.cleanup),new h((j,U)=>{let J=k(P,z,te=>{V&&J(),te?U(te):j()})})}t.exports=k,t.exports.finished=A}),aS=sn((e,t)=>{Zt(),en(),Jt();var n=h0(),{aggregateTwoErrors:r,codes:{ERR_MULTIPLE_CALLBACK:i},AbortError:o}=Ll(),{Symbol:a}=xa(),{kDestroyed:s,isDestroyed:l,isFinished:c,isServerRequest:u}=vh(),d=a("kDestroy"),f=a("kConstruct");function h(I,M,F){I&&(I.stack,M&&!M.errored&&(M.errored=I),F&&!F.errored&&(F.errored=I))}function m(I,M){let F=this._readableState,k=this._writableState,B=k||F;return k!=null&&k.destroyed||F!=null&&F.destroyed?(typeof M=="function"&&M(),this):(h(I,k,F),k&&(k.destroyed=!0),F&&(F.destroyed=!0),B.constructed?g(this,I,M):this.once(d,function(A){g(this,r(A,I),M)}),this)}function g(I,M,F){let k=!1;function B(A){if(k)return;k=!0;let P=I._readableState,z=I._writableState;h(A,z,P),z&&(z.closed=!0),P&&(P.closed=!0),typeof F=="function"&&F(A),A?n.nextTick(v,I,A):n.nextTick(y,I)}try{I._destroy(M||null,B)}catch(A){B(A)}}function v(I,M){b(I,M),y(I)}function y(I){let M=I._readableState,F=I._writableState;F&&(F.closeEmitted=!0),M&&(M.closeEmitted=!0),(F!=null&&F.emitClose||M!=null&&M.emitClose)&&I.emit("close")}function b(I,M){let F=I._readableState,k=I._writableState;k!=null&&k.errorEmitted||F!=null&&F.errorEmitted||(k&&(k.errorEmitted=!0),F&&(F.errorEmitted=!0),I.emit("error",M))}function _(){let I=this._readableState,M=this._writableState;I&&(I.constructed=!0,I.closed=!1,I.closeEmitted=!1,I.destroyed=!1,I.errored=null,I.errorEmitted=!1,I.reading=!1,I.ended=I.readable===!1,I.endEmitted=I.readable===!1),M&&(M.constructed=!0,M.destroyed=!1,M.closed=!1,M.closeEmitted=!1,M.errored=null,M.errorEmitted=!1,M.finalCalled=!1,M.prefinished=!1,M.ended=M.writable===!1,M.ending=M.writable===!1,M.finished=M.writable===!1)}function E(I,M,F){let k=I._readableState,B=I._writableState;if(B!=null&&B.destroyed||k!=null&&k.destroyed)return this;k!=null&&k.autoDestroy||B!=null&&B.autoDestroy?I.destroy(M):M&&(M.stack,B&&!B.errored&&(B.errored=M),k&&!k.errored&&(k.errored=M),F?n.nextTick(b,I,M):b(I,M))}function w(I,M){if(typeof I._construct!="function")return;let F=I._readableState,k=I._writableState;F&&(F.constructed=!1),k&&(k.constructed=!1),I.once(f,M),!(I.listenerCount(f)>1)&&n.nextTick(S,I)}function S(I){let M=!1;function F(k){if(M){E(I,k??new i);return}M=!0;let B=I._readableState,A=I._writableState,P=A||B;B&&(B.constructed=!0),A&&(A.constructed=!0),P.destroyed?I.emit(d,k):k?E(I,k,!0):n.nextTick(C,I)}try{I._construct(k=>{n.nextTick(F,k)})}catch(k){n.nextTick(F,k)}}function C(I){I.emit(f)}function T(I){return(I==null?void 0:I.setHeader)&&typeof I.abort=="function"}function x(I){I.emit("close")}function O(I,M){I.emit("error",M),n.nextTick(x,I)}function N(I,M){!I||l(I)||(!M&&!c(I)&&(M=new o),u(I)?(I.socket=null,I.destroy(M)):T(I)?I.abort():T(I.req)?I.req.abort():typeof I.destroy=="function"?I.destroy(M):typeof I.close=="function"?I.close():M?n.nextTick(O,I,M):n.nextTick(x,I),I.destroyed||(I[s]=!0))}t.exports={construct:w,destroyer:N,destroy:m,undestroy:_,errorOrDestroy:E}});function Ni(){Ni.init.call(this)}function pA(e){if(typeof e!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function m0e(e){return e._maxListeners===void 0?Ni.defaultMaxListeners:e._maxListeners}function Aee(e,t,n,r){var i,o,a,s;if(pA(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=m0e(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 cBe(){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 Nee(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},i=cBe.bind(r);return i.listener=n,r.wrapFn=i,i}function Mee(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):g0e(i,i.length)}function kee(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 g0e(e,t){for(var n=new Array(t),r=0;r<t;++r)n[r]=e[r];return n}var Pee,Dee,Yg,B8,j8,H8,rc,Lee=ls(()=>{Zt(),en(),Jt(),Yg=typeof Reflect=="object"?Reflect:null,B8=Yg&&typeof Yg.apply=="function"?Yg.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)},Dee=Yg&&typeof Yg.ownKeys=="function"?Yg.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)},j8=Number.isNaN||function(e){return e!=e},Pee=Ni,Ni.EventEmitter=Ni,Ni.prototype._events=void 0,Ni.prototype._eventsCount=0,Ni.prototype._maxListeners=void 0,H8=10,Object.defineProperty(Ni,"defaultMaxListeners",{enumerable:!0,get:function(){return H8},set:function(e){if(typeof e!="number"||e<0||j8(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");H8=e}}),Ni.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},Ni.prototype.setMaxListeners=function(e){if(typeof e!="number"||e<0||j8(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},Ni.prototype.getMaxListeners=function(){return m0e(this)},Ni.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")B8(s,this,t);else{var l=s.length,c=g0e(s,l);for(n=0;n<l;++n)B8(c[n],this,t)}return!0},Ni.prototype.addListener=function(e,t){return Aee(this,e,t,!1)},Ni.prototype.on=Ni.prototype.addListener,Ni.prototype.prependListener=function(e,t){return Aee(this,e,t,!0)},Ni.prototype.once=function(e,t){return pA(t),this.on(e,Nee(this,e,t)),this},Ni.prototype.prependOnceListener=function(e,t){return pA(t),this.prependListener(e,Nee(this,e,t)),this},Ni.prototype.removeListener=function(e,t){var n,r,i,o,a;if(pA(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},Ni.prototype.off=Ni.prototype.removeListener,Ni.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},Ni.prototype.listeners=function(e){return Mee(this,e,!0)},Ni.prototype.rawListeners=function(e){return Mee(this,e,!1)},Ni.listenerCount=function(e,t){return typeof e.listenerCount=="function"?e.listenerCount(t):kee.call(e,t)},Ni.prototype.listenerCount=kee,Ni.prototype.eventNames=function(){return this._eventsCount>0?Dee(this._events):[]},rc=Pee,rc.EventEmitter,rc.defaultMaxListeners,rc.init,rc.listenerCount,rc.EventEmitter,rc.defaultMaxListeners,rc.init,rc.listenerCount}),m0={};p0(m0,{EventEmitter:()=>v0e,default:()=>rc,defaultMaxListeners:()=>b0e,init:()=>y0e,listenerCount:()=>_0e,on:()=>S0e,once:()=>E0e});var v0e,b0e,y0e,_0e,S0e,E0e,sS=ls(()=>{Zt(),en(),Jt(),Lee(),Lee(),rc.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)})},rc.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:v0e,defaultMaxListeners:b0e,init:y0e,listenerCount:_0e,on:S0e,once:E0e}=rc}),YG=sn((e,t)=>{Zt(),en(),Jt();var{ArrayIsArray:n,ObjectSetPrototypeOf:r}=xa(),{EventEmitter:i}=(sS(),Hi(m0));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(y){s.writable&&s.write(y)===!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",h),c.on("close",m));let f=!1;function h(){f||(f=!0,s.end())}function m(){f||(f=!0,typeof s.destroy=="function"&&s.destroy())}function g(y){v(),i.listenerCount(this,"error")===0&&this.emit("error",y)}a(c,"error",g),a(s,"error",g);function v(){c.removeListener("data",u),s.removeListener("drain",d),c.removeListener("end",h),c.removeListener("close",m),c.removeListener("error",g),s.removeListener("error",g),c.removeListener("end",v),c.removeListener("close",v),s.removeListener("close",v)}return c.on("end",v),c.on("close",v),s.on("close",v),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}}),OP=sn((e,t)=>{Zt(),en(),Jt();var{AbortError:n,codes:r}=Ll(),{isNodeStream:i,isWebStream:o,kControllerErrorFunction:a}=vh(),s=xg(),{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 f=i(d)?()=>{d.destroy(new n(void 0,{cause:u.reason}))}:()=>{d[a](new n(void 0,{cause:u.reason}))};return u.aborted?f():(u.addEventListener("abort",f),s(d,()=>u.removeEventListener("abort",f))),d}}),uBe=sn((e,t)=>{Zt(),en(),Jt();var{StringPrototypeSlice:n,SymbolIterator:r,TypedArrayPrototypeSet:i,Uint8Array:o}=xa(),{Buffer:a}=(us(),Hi(cs)),{inspect:s}=nh();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 f=u.data;if(l>f.length)c+=f,l-=f.length;else{l===f.length?(c+=f,++d,u.next?this.head=u.next:this.head=this.tail=null):(c+=n(f,0,l),this.head=u,u.data=n(f,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,f=0;do{let h=d.data;if(l>h.length)i(c,h,u-l),l-=h.length;else{l===h.length?(i(c,h,u-l),++f,d.next?this.head=d.next:this.head=this.tail=null):(i(c,new o(h.buffer,h.byteOffset,l),u-l),this.head=d,d.data=h.slice(l));break}++f}while((d=d.next)!==null);return this.length-=f,c}[Symbol.for("nodejs.util.inspect.custom")](l,c){return s(this,{...c,depth:0,customInspect:!1})}}}),KG=sn((e,t)=>{Zt(),en(),Jt();var{MathFloor:n,NumberIsInteger:r}=xa(),{ERR_INVALID_ARG_VALUE:i}=Ll().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 f=o(c,d,u);if(f!=null){if(!r(f)||f<0){let h=d?`options.${u}`:"options.highWaterMark";throw new i(h,f)}return n(f)}return a(l.objectMode)}t.exports={getHighWaterMark:s,getDefaultHighWaterMark:a}});function $ee(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 dBe(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(Ku[(i=r)>>18&63]+Ku[i>>12&63]+Ku[i>>6&63]+Ku[63&i]);return o.join("")}function Bp(e){if(e>2147483647)throw new RangeError('The value "'+e+'" is invalid for option "size"');var t=new Uint8Array(e);return Object.setPrototypeOf(t,rn.prototype),t}function rn(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 cj(e)}return C0e(e,t,n)}function C0e(e,t,n){if(typeof e=="string")return function(o,a){if(typeof a=="string"&&a!==""||(a="utf8"),!rn.isEncoding(a))throw new TypeError("Unknown encoding: "+a);var s=0|T0e(o,a),l=Bp(s),c=l.write(o,a);return c!==s&&(l=l.slice(0,c)),l}(e,t);if(ArrayBuffer.isView(e))return U8(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(jp(e,ArrayBuffer)||e&&jp(e.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(jp(e,SharedArrayBuffer)||e&&jp(e.buffer,SharedArrayBuffer)))return fBe(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 rn.from(r,t,n);var i=function(o){if(rn.isBuffer(o)){var a=0|QG(o.length),s=Bp(a);return s.length===0||o.copy(s,0,0,a),s}if(o.length!==void 0)return typeof o.length!="number"||XG(o.length)?Bp(0):U8(o);if(o.type==="Buffer"&&Array.isArray(o.data))return U8(o.data)}(e);if(i)return i;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof e[Symbol.toPrimitive]=="function")return rn.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 w0e(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 cj(e){return w0e(e),Bp(e<0?0:0|QG(e))}function U8(e){for(var t=e.length<0?0:0|QG(e.length),n=Bp(t),r=0;r<t;r+=1)n[r]=255&e[r];return n}function fBe(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,rn.prototype),r}function QG(e){if(e>=2147483647)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x7fffffff bytes");return 0|e}function T0e(e,t){if(rn.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||jp(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 uj(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return I0e(e).length;default:if(i)return r?-1:uj(e).length;t=(""+t).toLowerCase(),i=!0}}function pBe(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 EBe(this,t,n);case"utf8":case"utf-8":return O0e(this,t,n);case"ascii":return _Be(this,t,n);case"latin1":case"binary":return SBe(this,t,n);case"base64":return yBe(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return CBe(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function Kg(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function Fee(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),XG(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=rn.from(t,r)),rn.isBuffer(t))return t.length===0?-1:Bee(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):Bee(e,[t],n,r,i);throw new TypeError("val must be string, number or Buffer")}function Bee(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(h,m){return a===1?h[m]:h.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,f=0;f<l;f++)if(c(e,o+f)!==c(t,f)){d=!1;break}if(d)return o}return-1}function hBe(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(XG(s))return a;e[n+a]=s}return a}function mBe(e,t,n,r){return RP(uj(t,e.length-n),e,n,r)}function x0e(e,t,n,r){return RP(function(i){for(var o=[],a=0;a<i.length;++a)o.push(255&i.charCodeAt(a));return o}(t),e,n,r)}function gBe(e,t,n,r){return x0e(e,t,n,r)}function vBe(e,t,n,r){return RP(I0e(t),e,n,r)}function bBe(e,t,n,r){return RP(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 yBe(e,t,n){return t===0&&n===e.length?nM.fromByteArray(e):nM.fromByteArray(e.slice(t,n))}function O0e(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(f){var h=f.length;if(h<=4096)return String.fromCharCode.apply(String,f);for(var m="",g=0;g<h;)m+=String.fromCharCode.apply(String,f.slice(g,g+=4096));return m}(r)}function _Be(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 SBe(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 EBe(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+=N0e[e[o]];return i}function CBe(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 Na(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 al(e,t,n,r,i,o){if(!rn.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 R0e(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 jee(e,t,n,r,i){return t=+t,n>>>=0,i||R0e(e,0,n,4),S1.write(e,t,n,r,23,4),n+4}function Hee(e,t,n,r,i){return t=+t,n>>>=0,i||R0e(e,0,n,8),S1.write(e,t,n,r,52,8),n+8}function uj(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 I0e(e){return nM.toByteArray(function(t){if((t=(t=t.split("=")[0]).trim().replace(A0e,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(e))}function RP(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 jp(e,t){return e instanceof t||e!=null&&e.constructor!=null&&e.constructor.name!=null&&e.constructor.name===t.name}function XG(e){return e!=e}function Uee(e,t){for(var n in e)t[n]=e[n]}function Qg(e,t,n){return $u(e,t,n)}function xE(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"&&(rM.isEncoding===dj||!dj(n)))throw new Error("Unknown encoding: "+n);return r||n}(e),this.encoding){case"utf16le":this.text=TBe,this.end=xBe,t=4;break;case"utf8":this.fillLast=wBe,t=4;break;case"base64":this.text=OBe,this.end=RBe,t=3;break;default:return this.write=IBe,this.end=ABe,void 0}this.lastNeed=0,this.lastTotal=0,this.lastChar=rM.allocUnsafe(t)}function z8(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function wBe(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 TBe(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 xBe(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 OBe(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 RBe(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function IBe(e){return e.toString(this.encoding)}function ABe(e){return e&&e.length?this.write(e):""}var zee,Ku,Vl,Vee,nR,Xg,Gee,Wee,Kd,nM,S1,V8,A0e,N0e,OE,RE,$u,qee,Zb,rM,dj,Yee=ls(()=>{for(Zt(),en(),Jt(),zee={byteLength:function(e){var t=$ee(e),n=t[0],r=t[1];return 3*(n+r)/4-r},toByteArray:function(e){var t,n,r=$ee(e),i=r[0],o=r[1],a=new Vee(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=Vl[e.charCodeAt(n)]<<18|Vl[e.charCodeAt(n+1)]<<12|Vl[e.charCodeAt(n+2)]<<6|Vl[e.charCodeAt(n+3)],a[s++]=t>>16&255,a[s++]=t>>8&255,a[s++]=255&t;return o===2&&(t=Vl[e.charCodeAt(n)]<<2|Vl[e.charCodeAt(n+1)]>>4,a[s++]=255&t),o===1&&(t=Vl[e.charCodeAt(n)]<<10|Vl[e.charCodeAt(n+1)]<<4|Vl[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(dBe(e,o,o+16383>a?a:o+16383));return r===1?(t=e[n-1],i.push(Ku[t>>2]+Ku[t<<4&63]+"==")):r===2&&(t=(e[n-2]<<8)+e[n-1],i.push(Ku[t>>10]+Ku[t>>4&63]+Ku[t<<2&63]+"=")),i.join("")}},Ku=[],Vl=[],Vee=typeof Uint8Array<"u"?Uint8Array:Array,nR="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Xg=0,Gee=nR.length;Xg<Gee;++Xg)Ku[Xg]=nR[Xg],Vl[nR.charCodeAt(Xg)]=Xg;Vl[45]=62,Vl[95]=63,Wee={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,f=n?-1:1,h=e[t+d];for(d+=f,o=h&(1<<-u)-1,h>>=-u,u+=s;u>0;o=256*o+e[t+d],d+=f,u-=8);for(a=o&(1<<-u)-1,o>>=-u,u+=r;u>0;a=256*a+e[t+d],d+=f,u-=8);if(o===0)o=1-c;else{if(o===l)return a?NaN:1/0*(h?-1:1);a+=Math.pow(2,r),o-=c}return(h?-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,f=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,h=r?0:o-1,m=r?1:-1,g=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?f/l:f*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+h]=255&s,h+=m,s/=256,i-=8);for(a=a<<i|s,c+=i;c>0;e[n+h]=255&a,h+=m,a/=256,c-=8);e[n+h-m]|=128*g}},Kd={},nM=zee,S1=Wee,V8=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null,Kd.Buffer=rn,Kd.SlowBuffer=function(e){return+e!=e&&(e=0),rn.alloc(+e)},Kd.INSPECT_MAX_BYTES=50,Kd.kMaxLength=2147483647,rn.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}}(),rn.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(rn.prototype,"parent",{enumerable:!0,get:function(){if(rn.isBuffer(this))return this.buffer}}),Object.defineProperty(rn.prototype,"offset",{enumerable:!0,get:function(){if(rn.isBuffer(this))return this.byteOffset}}),rn.poolSize=8192,rn.from=function(e,t,n){return C0e(e,t,n)},Object.setPrototypeOf(rn.prototype,Uint8Array.prototype),Object.setPrototypeOf(rn,Uint8Array),rn.alloc=function(e,t,n){return function(r,i,o){return w0e(r),r<=0?Bp(r):i!==void 0?typeof o=="string"?Bp(r).fill(i,o):Bp(r).fill(i):Bp(r)}(e,t,n)},rn.allocUnsafe=function(e){return cj(e)},rn.allocUnsafeSlow=function(e){return cj(e)},rn.isBuffer=function(e){return e!=null&&e._isBuffer===!0&&e!==rn.prototype},rn.compare=function(e,t){if(jp(e,Uint8Array)&&(e=rn.from(e,e.offset,e.byteLength)),jp(t,Uint8Array)&&(t=rn.from(t,t.offset,t.byteLength)),!rn.isBuffer(e)||!rn.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},rn.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}},rn.concat=function(e,t){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(e.length===0)return rn.alloc(0);var n;if(t===void 0)for(t=0,n=0;n<e.length;++n)t+=e[n].length;var r=rn.allocUnsafe(t),i=0;for(n=0;n<e.length;++n){var o=e[n];if(jp(o,Uint8Array)&&(o=rn.from(o)),!rn.isBuffer(o))throw new TypeError('"list" argument must be an Array of Buffers');o.copy(r,i),i+=o.length}return r},rn.byteLength=T0e,rn.prototype._isBuffer=!0,rn.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)Kg(this,t,t+1);return this},rn.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)Kg(this,t,t+3),Kg(this,t+1,t+2);return this},rn.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)Kg(this,t,t+7),Kg(this,t+1,t+6),Kg(this,t+2,t+5),Kg(this,t+3,t+4);return this},rn.prototype.toString=function(){var e=this.length;return e===0?"":arguments.length===0?O0e(this,0,e):pBe.apply(this,arguments)},rn.prototype.toLocaleString=rn.prototype.toString,rn.prototype.equals=function(e){if(!rn.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||rn.compare(this,e)===0},rn.prototype.inspect=function(){var e="",t=Kd.INSPECT_MAX_BYTES;return e=this.toString("hex",0,t).replace(/(.{2})/g,"$1 ").trim(),this.length>t&&(e+=" ... "),"<Buffer "+e+">"},V8&&(rn.prototype[V8]=rn.prototype.inspect),rn.prototype.compare=function(e,t,n,r,i){if(jp(e,Uint8Array)&&(e=rn.from(e,e.offset,e.byteLength)),!rn.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},rn.prototype.includes=function(e,t,n){return this.indexOf(e,t,n)!==-1},rn.prototype.indexOf=function(e,t,n){return Fee(this,e,t,n,!0)},rn.prototype.lastIndexOf=function(e,t,n){return Fee(this,e,t,n,!1)},rn.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 hBe(this,e,t,n);case"utf8":case"utf-8":return mBe(this,e,t,n);case"ascii":return x0e(this,e,t,n);case"latin1":case"binary":return gBe(this,e,t,n);case"base64":return vBe(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return bBe(this,e,t,n);default:if(o)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),o=!0}},rn.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},rn.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,rn.prototype),r},rn.prototype.readUIntLE=function(e,t,n){e>>>=0,t>>>=0,n||Na(e,t,this.length);for(var r=this[e],i=1,o=0;++o<t&&(i*=256);)r+=this[e+o]*i;return r},rn.prototype.readUIntBE=function(e,t,n){e>>>=0,t>>>=0,n||Na(e,t,this.length);for(var r=this[e+--t],i=1;t>0&&(i*=256);)r+=this[e+--t]*i;return r},rn.prototype.readUInt8=function(e,t){return e>>>=0,t||Na(e,1,this.length),this[e]},rn.prototype.readUInt16LE=function(e,t){return e>>>=0,t||Na(e,2,this.length),this[e]|this[e+1]<<8},rn.prototype.readUInt16BE=function(e,t){return e>>>=0,t||Na(e,2,this.length),this[e]<<8|this[e+1]},rn.prototype.readUInt32LE=function(e,t){return e>>>=0,t||Na(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},rn.prototype.readUInt32BE=function(e,t){return e>>>=0,t||Na(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},rn.prototype.readIntLE=function(e,t,n){e>>>=0,t>>>=0,n||Na(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},rn.prototype.readIntBE=function(e,t,n){e>>>=0,t>>>=0,n||Na(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},rn.prototype.readInt8=function(e,t){return e>>>=0,t||Na(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},rn.prototype.readInt16LE=function(e,t){e>>>=0,t||Na(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},rn.prototype.readInt16BE=function(e,t){e>>>=0,t||Na(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},rn.prototype.readInt32LE=function(e,t){return e>>>=0,t||Na(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},rn.prototype.readInt32BE=function(e,t){return e>>>=0,t||Na(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},rn.prototype.readFloatLE=function(e,t){return e>>>=0,t||Na(e,4,this.length),S1.read(this,e,!0,23,4)},rn.prototype.readFloatBE=function(e,t){return e>>>=0,t||Na(e,4,this.length),S1.read(this,e,!1,23,4)},rn.prototype.readDoubleLE=function(e,t){return e>>>=0,t||Na(e,8,this.length),S1.read(this,e,!0,52,8)},rn.prototype.readDoubleBE=function(e,t){return e>>>=0,t||Na(e,8,this.length),S1.read(this,e,!1,52,8)},rn.prototype.writeUIntLE=function(e,t,n,r){e=+e,t>>>=0,n>>>=0,r||al(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},rn.prototype.writeUIntBE=function(e,t,n,r){e=+e,t>>>=0,n>>>=0,r||al(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},rn.prototype.writeUInt8=function(e,t,n){return e=+e,t>>>=0,n||al(this,e,t,1,255,0),this[t]=255&e,t+1},rn.prototype.writeUInt16LE=function(e,t,n){return e=+e,t>>>=0,n||al(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},rn.prototype.writeUInt16BE=function(e,t,n){return e=+e,t>>>=0,n||al(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},rn.prototype.writeUInt32LE=function(e,t,n){return e=+e,t>>>=0,n||al(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},rn.prototype.writeUInt32BE=function(e,t,n){return e=+e,t>>>=0,n||al(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},rn.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t>>>=0,!r){var i=Math.pow(2,8*n-1);al(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},rn.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t>>>=0,!r){var i=Math.pow(2,8*n-1);al(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},rn.prototype.writeInt8=function(e,t,n){return e=+e,t>>>=0,n||al(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},rn.prototype.writeInt16LE=function(e,t,n){return e=+e,t>>>=0,n||al(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},rn.prototype.writeInt16BE=function(e,t,n){return e=+e,t>>>=0,n||al(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},rn.prototype.writeInt32LE=function(e,t,n){return e=+e,t>>>=0,n||al(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},rn.prototype.writeInt32BE=function(e,t,n){return e=+e,t>>>=0,n||al(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},rn.prototype.writeFloatLE=function(e,t,n){return jee(this,e,t,!0,n)},rn.prototype.writeFloatBE=function(e,t,n){return jee(this,e,t,!1,n)},rn.prototype.writeDoubleLE=function(e,t,n){return Hee(this,e,t,!0,n)},rn.prototype.writeDoubleBE=function(e,t,n){return Hee(this,e,t,!1,n)},rn.prototype.copy=function(e,t,n,r){if(!rn.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},rn.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"&&!rn.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=rn.isBuffer(e)?e:rn.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},A0e=/[^+/0-9A-Za-z-_]/g,N0e=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}(),Kd.Buffer,Kd.INSPECT_MAX_BYTES,Kd.kMaxLength,OE={},RE=Kd,$u=RE.Buffer,$u.from&&$u.alloc&&$u.allocUnsafe&&$u.allocUnsafeSlow?OE=RE:(Uee(RE,OE),OE.Buffer=Qg),Qg.prototype=Object.create($u.prototype),Uee($u,Qg),Qg.from=function(e,t,n){if(typeof e=="number")throw new TypeError("Argument must not be a number");return $u(e,t,n)},Qg.alloc=function(e,t,n){if(typeof e!="number")throw new TypeError("Argument must be a number");var r=$u(e);return t!==void 0?typeof n=="string"?r.fill(t,n):r.fill(t):r.fill(0),r},Qg.allocUnsafe=function(e){if(typeof e!="number")throw new TypeError("Argument must be a number");return $u(e)},Qg.allocUnsafeSlow=function(e){if(typeof e!="number")throw new TypeError("Argument must be a number");return RE.SlowBuffer(e)},qee=OE,Zb={},rM=qee.Buffer,dj=rM.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}},Zb.StringDecoder=xE,xE.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||""},xE.prototype.end=function(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"<22>":t},xE.prototype.text=function(e,t){var n=function(i,o,a){var s=o.length-1;if(s<a)return 0;var l=z8(o[s]);return l>=0?(l>0&&(i.lastNeed=l-1),l):--s<a||l===-2?0:(l=z8(o[s]))>=0?(l>0&&(i.lastNeed=l-2),l):--s<a||l===-2?0:(l=z8(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)},xE.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},Zb.StringDecoder,Zb.StringDecoder}),M0e={};p0(M0e,{StringDecoder:()=>k0e,default:()=>Zb});var k0e,NBe=ls(()=>{Zt(),en(),Jt(),Yee(),Yee(),k0e=Zb.StringDecoder}),P0e=sn((e,t)=>{Zt(),en(),Jt();var n=h0(),{PromisePrototypeThen:r,SymbolAsyncIterator:i,SymbolIterator:o}=xa(),{Buffer:a}=(us(),Hi(cs)),{ERR_INVALID_ARG_TYPE:s,ERR_STREAM_NULL_VALUES:l}=Ll().codes;function c(u,d,f){let h;if(typeof d=="string"||d instanceof a)return new u({objectMode:!0,...f,read(){this.push(d),this.push(null)}});let m;if(d&&d[i])m=!0,h=d[i]();else if(d&&d[o])m=!1,h=d[o]();else throw new s("iterable",["Iterable"],d);let g=new u({objectMode:!0,highWaterMark:1,...f}),v=!1;g._read=function(){v||(v=!0,b())},g._destroy=function(_,E){r(y(_),()=>n.nextTick(E,_),w=>n.nextTick(E,w||_))};async function y(_){let E=_!=null,w=typeof h.throw=="function";if(E&&w){let{value:S,done:C}=await h.throw(_);if(await S,C)return}if(typeof h.return=="function"){let{value:S}=await h.return();await S}}async function b(){for(;;){try{let{value:_,done:E}=m?await h.next():h.next();if(E)g.push(null);else{let w=_&&typeof _.then=="function"?await _:_;if(w===null)throw v=!1,new l;if(g.push(w))continue;v=!1}}catch(_){g.destroy(_)}break}}return g}t.exports=c}),IP=sn((e,t)=>{Zt(),en(),Jt();var n=h0(),{ArrayPrototypeIndexOf:r,NumberIsInteger:i,NumberIsNaN:o,NumberParseInt:a,ObjectDefineProperties:s,ObjectKeys:l,ObjectSetPrototypeOf:c,Promise:u,SafeSet:d,SymbolAsyncIterator:f,Symbol:h}=xa();t.exports=j,j.ReadableState=V;var{EventEmitter:m}=(sS(),Hi(m0)),{Stream:g,prependListener:v}=YG(),{Buffer:y}=(us(),Hi(cs)),{addAbortSignal:b}=OP(),_=xg(),E=nh().debuglog("stream",D=>{E=D}),w=uBe(),S=aS(),{getHighWaterMark:C,getDefaultHighWaterMark:T}=KG(),{aggregateTwoErrors:x,codes:{ERR_INVALID_ARG_TYPE:O,ERR_METHOD_NOT_IMPLEMENTED:N,ERR_OUT_OF_RANGE:I,ERR_STREAM_PUSH_AFTER_EOF:M,ERR_STREAM_UNSHIFT_AFTER_END_EVENT:F}}=Ll(),{validateObject:k}=xP(),B=h("kPaused"),{StringDecoder:A}=(NBe(),Hi(M0e)),P=P0e();c(j.prototype,g.prototype),c(j,g);var z=()=>{},{errorOrDestroy:L}=S;function V(D,G,ie){typeof ie!="boolean"&&(ie=G instanceof rh()),this.objectMode=!!(D&&D.objectMode),ie&&(this.objectMode=this.objectMode||!!(D&&D.readableObjectMode)),this.highWaterMark=D?C(this,D,"readableHighWaterMark",ie):T(!1),this.buffer=new w,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[B]=null,this.errorEmitted=!1,this.emitClose=!D||D.emitClose!==!1,this.autoDestroy=!D||D.autoDestroy!==!1,this.destroyed=!1,this.errored=null,this.closed=!1,this.closeEmitted=!1,this.defaultEncoding=D&&D.defaultEncoding||"utf8",this.awaitDrainWriters=null,this.multiAwaitDrain=!1,this.readingMore=!1,this.dataEmitted=!1,this.decoder=null,this.encoding=null,D&&D.encoding&&(this.decoder=new A(D.encoding),this.encoding=D.encoding)}function j(D){if(!(this instanceof j))return new j(D);let G=this instanceof rh();this._readableState=new V(D,this,G),D&&(typeof D.read=="function"&&(this._read=D.read),typeof D.destroy=="function"&&(this._destroy=D.destroy),typeof D.construct=="function"&&(this._construct=D.construct),D.signal&&!G&&b(D.signal,this)),g.call(this,D),S.construct(this,()=>{this._readableState.needReadable&&fe(this,this._readableState)})}j.prototype.destroy=S.destroy,j.prototype._undestroy=S.undestroy,j.prototype._destroy=function(D,G){G(D)},j.prototype[m.captureRejectionSymbol]=function(D){this.destroy(D)},j.prototype.push=function(D,G){return U(this,D,G,!1)},j.prototype.unshift=function(D,G){return U(this,D,G,!0)};function U(D,G,ie,me){E("readableAddChunk",G);let se=D._readableState,Be;if(se.objectMode||(typeof G=="string"?(ie=ie||se.defaultEncoding,se.encoding!==ie&&(me&&se.encoding?G=y.from(G,ie).toString(se.encoding):(G=y.from(G,ie),ie=""))):G instanceof y?ie="":g._isUint8Array(G)?(G=g._uint8ArrayToBuffer(G),ie=""):G!=null&&(Be=new O("chunk",["string","Buffer","Uint8Array"],G))),Be)L(D,Be);else if(G===null)se.reading=!1,Q(D,se);else if(se.objectMode||G&&G.length>0)if(me)if(se.endEmitted)L(D,new F);else{if(se.destroyed||se.errored)return!1;J(D,se,G,!0)}else if(se.ended)L(D,new M);else{if(se.destroyed||se.errored)return!1;se.reading=!1,se.decoder&&!ie?(G=se.decoder.write(G),se.objectMode||G.length!==0?J(D,se,G,!1):fe(D,se)):J(D,se,G,!1)}else me||(se.reading=!1,fe(D,se));return!se.ended&&(se.length<se.highWaterMark||se.length===0)}function J(D,G,ie,me){G.flowing&&G.length===0&&!G.sync&&D.listenerCount("data")>0?(G.multiAwaitDrain?G.awaitDrainWriters.clear():G.awaitDrainWriters=null,G.dataEmitted=!0,D.emit("data",ie)):(G.length+=G.objectMode?1:ie.length,me?G.buffer.unshift(ie):G.buffer.push(ie),G.needReadable&&oe(D)),fe(D,G)}j.prototype.isPaused=function(){let D=this._readableState;return D[B]===!0||D.flowing===!1},j.prototype.setEncoding=function(D){let G=new A(D);this._readableState.decoder=G,this._readableState.encoding=this._readableState.decoder.encoding;let ie=this._readableState.buffer,me="";for(let se of ie)me+=G.write(se);return ie.clear(),me!==""&&ie.push(me),this._readableState.length=me.length,this};var te=1073741824;function ae(D){if(D>te)throw new I("size","<= 1GiB",D);return D--,D|=D>>>1,D|=D>>>2,D|=D>>>4,D|=D>>>8,D|=D>>>16,D++,D}function K(D,G){return D<=0||G.length===0&&G.ended?0:G.objectMode?1:o(D)?G.flowing&&G.length?G.buffer.first().length:G.length:D<=G.length?D:G.ended?G.length:0}j.prototype.read=function(D){E("read",D),D===void 0?D=NaN:i(D)||(D=a(D,10));let G=this._readableState,ie=D;if(D>G.highWaterMark&&(G.highWaterMark=ae(D)),D!==0&&(G.emittedReadable=!1),D===0&&G.needReadable&&((G.highWaterMark!==0?G.length>=G.highWaterMark:G.length>0)||G.ended))return E("read: emitReadable",G.length,G.ended),G.length===0&&G.ended?he(this):oe(this),null;if(D=K(D,G),D===0&&G.ended)return G.length===0&&he(this),null;let me=G.needReadable;if(E("need readable",me),(G.length===0||G.length-D<G.highWaterMark)&&(me=!0,E("length less than watermark",me)),G.ended||G.reading||G.destroyed||G.errored||!G.constructed)me=!1,E("reading, ended or constructing",me);else if(me){E("do read"),G.reading=!0,G.sync=!0,G.length===0&&(G.needReadable=!0);try{this._read(G.highWaterMark)}catch(Be){L(this,Be)}G.sync=!1,G.reading||(D=K(ie,G))}let se;return D>0?se=ye(D,G):se=null,se===null?(G.needReadable=G.length<=G.highWaterMark,D=0):(G.length-=D,G.multiAwaitDrain?G.awaitDrainWriters.clear():G.awaitDrainWriters=null),G.length===0&&(G.ended||(G.needReadable=!0),ie!==D&&G.ended&&he(this)),se!==null&&!G.errorEmitted&&!G.closeEmitted&&(G.dataEmitted=!0,this.emit("data",se)),se};function Q(D,G){if(E("onEofChunk"),!G.ended){if(G.decoder){let ie=G.decoder.end();ie&&ie.length&&(G.buffer.push(ie),G.length+=G.objectMode?1:ie.length)}G.ended=!0,G.sync?oe(D):(G.needReadable=!1,G.emittedReadable=!0,ge(D))}}function oe(D){let G=D._readableState;E("emitReadable",G.needReadable,G.emittedReadable),G.needReadable=!1,G.emittedReadable||(E("emitReadable",G.flowing),G.emittedReadable=!0,n.nextTick(ge,D))}function ge(D){let G=D._readableState;E("emitReadable_",G.destroyed,G.length,G.ended),!G.destroyed&&!G.errored&&(G.length||G.ended)&&(D.emit("readable"),G.emittedReadable=!1),G.needReadable=!G.flowing&&!G.ended&&G.length<=G.highWaterMark,Re(D)}function fe(D,G){!G.readingMore&&G.constructed&&(G.readingMore=!0,n.nextTick(ue,D,G))}function ue(D,G){for(;!G.reading&&!G.ended&&(G.length<G.highWaterMark||G.flowing&&G.length===0);){let ie=G.length;if(E("maybeReadMore read 0"),D.read(0),ie===G.length)break}G.readingMore=!1}j.prototype._read=function(D){throw new N("_read()")},j.prototype.pipe=function(D,G){let ie=this,me=this._readableState;me.pipes.length===1&&(me.multiAwaitDrain||(me.multiAwaitDrain=!0,me.awaitDrainWriters=new d(me.awaitDrainWriters?[me.awaitDrainWriters]:[]))),me.pipes.push(D),E("pipe count=%d opts=%j",me.pipes.length,G);let se=(!G||G.end!==!1)&&D!==n.stdout&&D!==n.stderr?Ve:at;me.endEmitted?n.nextTick(se):ie.once("end",se),D.on("unpipe",Be);function Be(pt,Ct){E("onunpipe"),pt===ie&&Ct&&Ct.hasUnpiped===!1&&(Ct.hasUnpiped=!0,je())}function Ve(){E("onend"),D.end()}let re,Me=!1;function je(){E("cleanup"),D.removeListener("close",qe),D.removeListener("finish",At),re&&D.removeListener("drain",re),D.removeListener("error",Ue),D.removeListener("unpipe",Be),ie.removeListener("end",Ve),ie.removeListener("end",at),ie.removeListener("data",Ge),Me=!0,re&&me.awaitDrainWriters&&(!D._writableState||D._writableState.needDrain)&&re()}function ke(){Me||(me.pipes.length===1&&me.pipes[0]===D?(E("false write response, pause",0),me.awaitDrainWriters=D,me.multiAwaitDrain=!1):me.pipes.length>1&&me.pipes.includes(D)&&(E("false write response, pause",me.awaitDrainWriters.size),me.awaitDrainWriters.add(D)),ie.pause()),re||(re=le(ie,D),D.on("drain",re))}ie.on("data",Ge);function Ge(pt){E("ondata");let Ct=D.write(pt);E("dest.write",Ct),Ct===!1&&ke()}function Ue(pt){if(E("onerror",pt),at(),D.removeListener("error",Ue),D.listenerCount("error")===0){let Ct=D._writableState||D._readableState;Ct&&!Ct.errorEmitted?L(D,pt):D.emit("error",pt)}}v(D,"error",Ue);function qe(){D.removeListener("finish",At),at()}D.once("close",qe);function At(){E("onfinish"),D.removeListener("close",qe),at()}D.once("finish",At);function at(){E("unpipe"),ie.unpipe(D)}return D.emit("pipe",ie),D.writableNeedDrain===!0?me.flowing&&ke():me.flowing||(E("pipe resume"),ie.resume()),D};function le(D,G){return function(){let ie=D._readableState;ie.awaitDrainWriters===G?(E("pipeOnDrain",1),ie.awaitDrainWriters=null):ie.multiAwaitDrain&&(E("pipeOnDrain",ie.awaitDrainWriters.size),ie.awaitDrainWriters.delete(G)),(!ie.awaitDrainWriters||ie.awaitDrainWriters.size===0)&&D.listenerCount("data")&&D.resume()}}j.prototype.unpipe=function(D){let G=this._readableState,ie={hasUnpiped:!1};if(G.pipes.length===0)return this;if(!D){let se=G.pipes;G.pipes=[],this.pause();for(let Be=0;Be<se.length;Be++)se[Be].emit("unpipe",this,{hasUnpiped:!1});return this}let me=r(G.pipes,D);return me===-1?this:(G.pipes.splice(me,1),G.pipes.length===0&&this.pause(),D.emit("unpipe",this,ie),this)},j.prototype.on=function(D,G){let ie=g.prototype.on.call(this,D,G),me=this._readableState;return D==="data"?(me.readableListening=this.listenerCount("readable")>0,me.flowing!==!1&&this.resume()):D==="readable"&&!me.endEmitted&&!me.readableListening&&(me.readableListening=me.needReadable=!0,me.flowing=!1,me.emittedReadable=!1,E("on readable",me.length,me.reading),me.length?oe(this):me.reading||n.nextTick(ne,this)),ie},j.prototype.addListener=j.prototype.on,j.prototype.removeListener=function(D,G){let ie=g.prototype.removeListener.call(this,D,G);return D==="readable"&&n.nextTick(ve,this),ie},j.prototype.off=j.prototype.removeListener,j.prototype.removeAllListeners=function(D){let G=g.prototype.removeAllListeners.apply(this,arguments);return(D==="readable"||D===void 0)&&n.nextTick(ve,this),G};function ve(D){let G=D._readableState;G.readableListening=D.listenerCount("readable")>0,G.resumeScheduled&&G[B]===!1?G.flowing=!0:D.listenerCount("data")>0?D.resume():G.readableListening||(G.flowing=null)}function ne(D){E("readable nexttick read 0"),D.read(0)}j.prototype.resume=function(){let D=this._readableState;return D.flowing||(E("resume"),D.flowing=!D.readableListening,pe(this,D)),D[B]=!1,this};function pe(D,G){G.resumeScheduled||(G.resumeScheduled=!0,n.nextTick(be,D,G))}function be(D,G){E("resume",G.reading),G.reading||D.read(0),G.resumeScheduled=!1,D.emit("resume"),Re(D),G.flowing&&!G.reading&&D.read(0)}j.prototype.pause=function(){return E("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(E("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState[B]=!0,this};function Re(D){let G=D._readableState;for(E("flow",G.flowing);G.flowing&&D.read()!==null;);}j.prototype.wrap=function(D){let G=!1;D.on("data",me=>{!this.push(me)&&D.pause&&(G=!0,D.pause())}),D.on("end",()=>{this.push(null)}),D.on("error",me=>{L(this,me)}),D.on("close",()=>{this.destroy()}),D.on("destroy",()=>{this.destroy()}),this._read=()=>{G&&D.resume&&(G=!1,D.resume())};let ie=l(D);for(let me=1;me<ie.length;me++){let se=ie[me];this[se]===void 0&&typeof D[se]=="function"&&(this[se]=D[se].bind(D))}return this},j.prototype[f]=function(){return Se(this)},j.prototype.iterator=function(D){return D!==void 0&&k(D,"options"),Se(this,D)};function Se(D,G){typeof D.read!="function"&&(D=j.wrap(D,{objectMode:!0}));let ie=Ce(D,G);return ie.stream=D,ie}async function*Ce(D,G){let ie=z;function me(Ve){this===D?(ie(),ie=z):ie=Ve}D.on("readable",me);let se,Be=_(D,{writable:!1},Ve=>{se=Ve?x(se,Ve):null,ie(),ie=z});try{for(;;){let Ve=D.destroyed?null:D.read();if(Ve!==null)yield Ve;else{if(se)throw se;if(se===null)return;await new u(me)}}}catch(Ve){throw se=x(se,Ve),se}finally{(se||(G==null?void 0:G.destroyOnReturn)!==!1)&&(se===void 0||D._readableState.autoDestroy)?S.destroyer(D,null):(D.off("readable",me),Be())}}s(j.prototype,{readable:{__proto__:null,get(){let D=this._readableState;return!!D&&D.readable!==!1&&!D.destroyed&&!D.errorEmitted&&!D.endEmitted},set(D){this._readableState&&(this._readableState.readable=!!D)}},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(D){this._readableState&&(this._readableState.flowing=D)}},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(D){this._readableState&&(this._readableState.destroyed=D)}},readableEnded:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.endEmitted:!1}}}),s(V.prototype,{pipesCount:{__proto__:null,get(){return this.pipes.length}},paused:{__proto__:null,get(){return this[B]!==!1},set(D){this[B]=!!D}}}),j._fromList=ye;function ye(D,G){if(G.length===0)return null;let ie;return G.objectMode?ie=G.buffer.shift():!D||D>=G.length?(G.decoder?ie=G.buffer.join(""):G.buffer.length===1?ie=G.buffer.first():ie=G.buffer.concat(G.length),G.buffer.clear()):ie=G.buffer.consume(D,G.decoder),ie}function he(D){let G=D._readableState;E("endReadable",G.endEmitted),G.endEmitted||(G.ended=!0,n.nextTick(_e,G,D))}function _e(D,G){if(E("endReadableNT",D.endEmitted,D.length),!D.errored&&!D.closeEmitted&&!D.endEmitted&&D.length===0){if(D.endEmitted=!0,G.emit("end"),G.writable&&G.allowHalfOpen===!1)n.nextTick(Oe,G);else if(D.autoDestroy){let ie=G._writableState;(!ie||ie.autoDestroy&&(ie.finished||ie.writable===!1))&&G.destroy()}}}function Oe(D){D.writable&&!D.writableEnded&&!D.destroyed&&D.end()}j.from=function(D,G){return P(j,D,G)};var De;function Y(){return De===void 0&&(De={}),De}j.fromWeb=function(D,G){return Y().newStreamReadableFromReadableStream(D,G)},j.toWeb=function(D,G){return Y().newReadableStreamFromStreamReadable(D,G)},j.wrap=function(D,G){var ie,me;return new j({objectMode:(ie=(me=D.readableObjectMode)!==null&&me!==void 0?me:D.objectMode)!==null&&ie!==void 0?ie:!0,...G,destroy(se,Be){S.destroyer(D,se),Be(se)}}).wrap(D)}}),D0e=sn((e,t)=>{Zt(),en(),Jt();var n=h0(),{ArrayPrototypeSlice:r,Error:i,FunctionPrototypeSymbolHasInstance:o,ObjectDefineProperty:a,ObjectDefineProperties:s,ObjectSetPrototypeOf:l,StringPrototypeToLowerCase:c,Symbol:u,SymbolHasInstance:d}=xa();t.exports=A,A.WritableState=k;var{EventEmitter:f}=(sS(),Hi(m0)),h=YG().Stream,{Buffer:m}=(us(),Hi(cs)),g=aS(),{addAbortSignal:v}=OP(),{getHighWaterMark:y,getDefaultHighWaterMark:b}=KG(),{ERR_INVALID_ARG_TYPE:_,ERR_METHOD_NOT_IMPLEMENTED:E,ERR_MULTIPLE_CALLBACK:w,ERR_STREAM_CANNOT_PIPE:S,ERR_STREAM_DESTROYED:C,ERR_STREAM_ALREADY_FINISHED:T,ERR_STREAM_NULL_VALUES:x,ERR_STREAM_WRITE_AFTER_END:O,ERR_UNKNOWN_ENCODING:N}=Ll().codes,{errorOrDestroy:I}=g;l(A.prototype,h.prototype),l(A,h);function M(){}var F=u("kOnFinished");function k(ne,pe,be){typeof be!="boolean"&&(be=pe instanceof rh()),this.objectMode=!!(ne&&ne.objectMode),be&&(this.objectMode=this.objectMode||!!(ne&&ne.writableObjectMode)),this.highWaterMark=ne?y(this,ne,"writableHighWaterMark",be):b(!1),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;let Re=!!(ne&&ne.decodeStrings===!1);this.decodeStrings=!Re,this.defaultEncoding=ne&&ne.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=j.bind(void 0,pe),this.writecb=null,this.writelen=0,this.afterWriteTickInfo=null,B(this),this.pendingcb=0,this.constructed=!0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!ne||ne.emitClose!==!1,this.autoDestroy=!ne||ne.autoDestroy!==!1,this.errored=null,this.closed=!1,this.closeEmitted=!1,this[F]=[]}function B(ne){ne.buffered=[],ne.bufferedIndex=0,ne.allBuffers=!0,ne.allNoop=!0}k.prototype.getBuffer=function(){return r(this.buffered,this.bufferedIndex)},a(k.prototype,"bufferedRequestCount",{__proto__:null,get(){return this.buffered.length-this.bufferedIndex}});function A(ne){let pe=this instanceof rh();if(!pe&&!o(A,this))return new A(ne);this._writableState=new k(ne,this,pe),ne&&(typeof ne.write=="function"&&(this._write=ne.write),typeof ne.writev=="function"&&(this._writev=ne.writev),typeof ne.destroy=="function"&&(this._destroy=ne.destroy),typeof ne.final=="function"&&(this._final=ne.final),typeof ne.construct=="function"&&(this._construct=ne.construct),ne.signal&&v(ne.signal,this)),h.call(this,ne),g.construct(this,()=>{let be=this._writableState;be.writing||ae(this,be),ge(this,be)})}a(A,d,{__proto__:null,value:function(ne){return o(this,ne)?!0:this!==A?!1:ne&&ne._writableState instanceof k}}),A.prototype.pipe=function(){I(this,new S)};function P(ne,pe,be,Re){let Se=ne._writableState;if(typeof be=="function")Re=be,be=Se.defaultEncoding;else{if(!be)be=Se.defaultEncoding;else if(be!=="buffer"&&!m.isEncoding(be))throw new N(be);typeof Re!="function"&&(Re=M)}if(pe===null)throw new x;if(!Se.objectMode)if(typeof pe=="string")Se.decodeStrings!==!1&&(pe=m.from(pe,be),be="buffer");else if(pe instanceof m)be="buffer";else if(h._isUint8Array(pe))pe=h._uint8ArrayToBuffer(pe),be="buffer";else throw new _("chunk",["string","Buffer","Uint8Array"],pe);let Ce;return Se.ending?Ce=new O:Se.destroyed&&(Ce=new C("write")),Ce?(n.nextTick(Re,Ce),I(ne,Ce,!0),Ce):(Se.pendingcb++,z(ne,Se,pe,be,Re))}A.prototype.write=function(ne,pe,be){return P(this,ne,pe,be)===!0},A.prototype.cork=function(){this._writableState.corked++},A.prototype.uncork=function(){let ne=this._writableState;ne.corked&&(ne.corked--,ne.writing||ae(this,ne))},A.prototype.setDefaultEncoding=function(ne){if(typeof ne=="string"&&(ne=c(ne)),!m.isEncoding(ne))throw new N(ne);return this._writableState.defaultEncoding=ne,this};function z(ne,pe,be,Re,Se){let Ce=pe.objectMode?1:be.length;pe.length+=Ce;let ye=pe.length<pe.highWaterMark;return ye||(pe.needDrain=!0),pe.writing||pe.corked||pe.errored||!pe.constructed?(pe.buffered.push({chunk:be,encoding:Re,callback:Se}),pe.allBuffers&&Re!=="buffer"&&(pe.allBuffers=!1),pe.allNoop&&Se!==M&&(pe.allNoop=!1)):(pe.writelen=Ce,pe.writecb=Se,pe.writing=!0,pe.sync=!0,ne._write(be,Re,pe.onwrite),pe.sync=!1),ye&&!pe.errored&&!pe.destroyed}function L(ne,pe,be,Re,Se,Ce,ye){pe.writelen=Re,pe.writecb=ye,pe.writing=!0,pe.sync=!0,pe.destroyed?pe.onwrite(new C("write")):be?ne._writev(Se,pe.onwrite):ne._write(Se,Ce,pe.onwrite),pe.sync=!1}function V(ne,pe,be,Re){--pe.pendingcb,Re(be),te(pe),I(ne,be)}function j(ne,pe){let be=ne._writableState,Re=be.sync,Se=be.writecb;if(typeof Se!="function"){I(ne,new w);return}be.writing=!1,be.writecb=null,be.length-=be.writelen,be.writelen=0,pe?(pe.stack,be.errored||(be.errored=pe),ne._readableState&&!ne._readableState.errored&&(ne._readableState.errored=pe),Re?n.nextTick(V,ne,be,pe,Se):V(ne,be,pe,Se)):(be.buffered.length>be.bufferedIndex&&ae(ne,be),Re?be.afterWriteTickInfo!==null&&be.afterWriteTickInfo.cb===Se?be.afterWriteTickInfo.count++:(be.afterWriteTickInfo={count:1,cb:Se,stream:ne,state:be},n.nextTick(U,be.afterWriteTickInfo)):J(ne,be,1,Se))}function U({stream:ne,state:pe,count:be,cb:Re}){return pe.afterWriteTickInfo=null,J(ne,pe,be,Re)}function J(ne,pe,be,Re){for(!pe.ending&&!ne.destroyed&&pe.length===0&&pe.needDrain&&(pe.needDrain=!1,ne.emit("drain"));be-- >0;)pe.pendingcb--,Re();pe.destroyed&&te(pe),ge(ne,pe)}function te(ne){if(ne.writing)return;for(let Se=ne.bufferedIndex;Se<ne.buffered.length;++Se){var pe;let{chunk:Ce,callback:ye}=ne.buffered[Se],he=ne.objectMode?1:Ce.length;ne.length-=he,ye((pe=ne.errored)!==null&&pe!==void 0?pe:new C("write"))}let be=ne[F].splice(0);for(let Se=0;Se<be.length;Se++){var Re;be[Se]((Re=ne.errored)!==null&&Re!==void 0?Re:new C("end"))}B(ne)}function ae(ne,pe){if(pe.corked||pe.bufferProcessing||pe.destroyed||!pe.constructed)return;let{buffered:be,bufferedIndex:Re,objectMode:Se}=pe,Ce=be.length-Re;if(!Ce)return;let ye=Re;if(pe.bufferProcessing=!0,Ce>1&&ne._writev){pe.pendingcb-=Ce-1;let he=pe.allNoop?M:Oe=>{for(let De=ye;De<be.length;++De)be[De].callback(Oe)},_e=pe.allNoop&&ye===0?be:r(be,ye);_e.allBuffers=pe.allBuffers,L(ne,pe,!0,pe.length,_e,"",he),B(pe)}else{do{let{chunk:he,encoding:_e,callback:Oe}=be[ye];be[ye++]=null;let De=Se?1:he.length;L(ne,pe,!1,De,he,_e,Oe)}while(ye<be.length&&!pe.writing);ye===be.length?B(pe):ye>256?(be.splice(0,ye),pe.bufferedIndex=0):pe.bufferedIndex=ye}pe.bufferProcessing=!1}A.prototype._write=function(ne,pe,be){if(this._writev)this._writev([{chunk:ne,encoding:pe}],be);else throw new E("_write()")},A.prototype._writev=null,A.prototype.end=function(ne,pe,be){let Re=this._writableState;typeof ne=="function"?(be=ne,ne=null,pe=null):typeof pe=="function"&&(be=pe,pe=null);let Se;if(ne!=null){let Ce=P(this,ne,pe);Ce instanceof i&&(Se=Ce)}return Re.corked&&(Re.corked=1,this.uncork()),Se||(!Re.errored&&!Re.ending?(Re.ending=!0,ge(this,Re,!0),Re.ended=!0):Re.finished?Se=new T("end"):Re.destroyed&&(Se=new C("end"))),typeof be=="function"&&(Se||Re.finished?n.nextTick(be,Se):Re[F].push(be)),this};function K(ne){return ne.ending&&!ne.destroyed&&ne.constructed&&ne.length===0&&!ne.errored&&ne.buffered.length===0&&!ne.finished&&!ne.writing&&!ne.errorEmitted&&!ne.closeEmitted}function Q(ne,pe){let be=!1;function Re(Se){if(be){I(ne,Se??w());return}if(be=!0,pe.pendingcb--,Se){let Ce=pe[F].splice(0);for(let ye=0;ye<Ce.length;ye++)Ce[ye](Se);I(ne,Se,pe.sync)}else K(pe)&&(pe.prefinished=!0,ne.emit("prefinish"),pe.pendingcb++,n.nextTick(fe,ne,pe))}pe.sync=!0,pe.pendingcb++;try{ne._final(Re)}catch(Se){Re(Se)}pe.sync=!1}function oe(ne,pe){!pe.prefinished&&!pe.finalCalled&&(typeof ne._final=="function"&&!pe.destroyed?(pe.finalCalled=!0,Q(ne,pe)):(pe.prefinished=!0,ne.emit("prefinish")))}function ge(ne,pe,be){K(pe)&&(oe(ne,pe),pe.pendingcb===0&&(be?(pe.pendingcb++,n.nextTick((Re,Se)=>{K(Se)?fe(Re,Se):Se.pendingcb--},ne,pe)):K(pe)&&(pe.pendingcb++,fe(ne,pe))))}function fe(ne,pe){pe.pendingcb--,pe.finished=!0;let be=pe[F].splice(0);for(let Re=0;Re<be.length;Re++)be[Re]();if(ne.emit("finish"),pe.autoDestroy){let Re=ne._readableState;(!Re||Re.autoDestroy&&(Re.endEmitted||Re.readable===!1))&&ne.destroy()}}s(A.prototype,{closed:{__proto__:null,get(){return this._writableState?this._writableState.closed:!1}},destroyed:{__proto__:null,get(){return this._writableState?this._writableState.destroyed:!1},set(ne){this._writableState&&(this._writableState.destroyed=ne)}},writable:{__proto__:null,get(){let ne=this._writableState;return!!ne&&ne.writable!==!1&&!ne.destroyed&&!ne.errored&&!ne.ending&&!ne.ended},set(ne){this._writableState&&(this._writableState.writable=!!ne)}},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 ne=this._writableState;return ne?!ne.destroyed&&!ne.ending&&ne.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 ue=g.destroy;A.prototype.destroy=function(ne,pe){let be=this._writableState;return!be.destroyed&&(be.bufferedIndex<be.buffered.length||be[F].length)&&n.nextTick(te,be),ue.call(this,ne,pe),this},A.prototype._undestroy=g.undestroy,A.prototype._destroy=function(ne,pe){pe(ne)},A.prototype[f.captureRejectionSymbol]=function(ne){this.destroy(ne)};var le;function ve(){return le===void 0&&(le={}),le}A.fromWeb=function(ne,pe){return ve().newStreamWritableFromWritableStream(ne,pe)},A.toWeb=function(ne){return ve().newWritableStreamFromStreamWritable(ne)}}),MBe=sn((e,t)=>{Zt(),en(),Jt();var n=h0(),r=(us(),Hi(cs)),{isReadable:i,isWritable:o,isIterable:a,isNodeStream:s,isReadableNodeStream:l,isWritableNodeStream:c,isDuplexNodeStream:u}=vh(),d=xg(),{AbortError:f,codes:{ERR_INVALID_ARG_TYPE:h,ERR_INVALID_RETURN_VALUE:m}}=Ll(),{destroyer:g}=aS(),v=rh(),y=IP(),{createDeferredPromise:b}=nh(),_=P0e(),E=globalThis.Blob||r.Blob,w=typeof E<"u"?function(N){return N instanceof E}:function(N){return!1},S=globalThis.AbortController||qG().AbortController,{FunctionPrototypeCall:C}=xa(),T=class extends v{constructor(N){super(N),(N==null?void 0:N.readable)===!1&&(this._readableState.readable=!1,this._readableState.ended=!0,this._readableState.endEmitted=!0),(N==null?void 0:N.writable)===!1&&(this._writableState.writable=!1,this._writableState.ending=!0,this._writableState.ended=!0,this._writableState.finished=!0)}};t.exports=function N(I,M){if(u(I))return I;if(l(I))return O({readable:I});if(c(I))return O({writable:I});if(s(I))return O({writable:!1,readable:!1});if(typeof I=="function"){let{value:k,write:B,final:A,destroy:P}=x(I);if(a(k))return _(T,k,{objectMode:!0,write:B,final:A,destroy:P});let z=k==null?void 0:k.then;if(typeof z=="function"){let L,V=C(z,k,j=>{if(j!=null)throw new m("nully","body",j)},j=>{g(L,j)});return L=new T({objectMode:!0,readable:!1,write:B,final(j){A(async()=>{try{await V,n.nextTick(j,null)}catch(U){n.nextTick(j,U)}})},destroy:P})}throw new m("Iterable, AsyncIterable or AsyncFunction",M,k)}if(w(I))return N(I.arrayBuffer());if(a(I))return _(T,I,{objectMode:!0,writable:!1});if(typeof(I==null?void 0:I.writable)=="object"||typeof(I==null?void 0:I.readable)=="object"){let k=I!=null&&I.readable?l(I==null?void 0:I.readable)?I==null?void 0:I.readable:N(I.readable):void 0,B=I!=null&&I.writable?c(I==null?void 0:I.writable)?I==null?void 0:I.writable:N(I.writable):void 0;return O({readable:k,writable:B})}let F=I==null?void 0:I.then;if(typeof F=="function"){let k;return C(F,I,B=>{B!=null&&k.push(B),k.push(null)},B=>{g(k,B)}),k=new T({objectMode:!0,writable:!1,read(){}})}throw new h(M,["Blob","ReadableStream","WritableStream","Stream","Iterable","AsyncIterable","Function","{ readable, writable } pair","Promise"],I)};function x(N){let{promise:I,resolve:M}=b(),F=new S,k=F.signal;return{value:N(async function*(){for(;;){let B=I;I=null;let{chunk:A,done:P,cb:z}=await B;if(n.nextTick(z),P)return;if(k.aborted)throw new f(void 0,{cause:k.reason});({promise:I,resolve:M}=b()),yield A}}(),{signal:k}),write(B,A,P){let z=M;M=null,z({chunk:B,done:!1,cb:P})},final(B){let A=M;M=null,A({done:!0,cb:B})},destroy(B,A){F.abort(),A(B)}}}function O(N){let I=N.readable&&typeof N.readable.read!="function"?y.wrap(N.readable):N.readable,M=N.writable,F=!!i(I),k=!!o(M),B,A,P,z,L;function V(j){let U=z;z=null,U?U(j):j&&L.destroy(j)}return L=new T({readableObjectMode:!!(I!=null&&I.readableObjectMode),writableObjectMode:!!(M!=null&&M.writableObjectMode),readable:F,writable:k}),k&&(d(M,j=>{k=!1,j&&g(I,j),V(j)}),L._write=function(j,U,J){M.write(j,U)?J():B=J},L._final=function(j){M.end(),A=j},M.on("drain",function(){if(B){let j=B;B=null,j()}}),M.on("finish",function(){if(A){let j=A;A=null,j()}})),F&&(d(I,j=>{F=!1,j&&g(I,j),V(j)}),I.on("readable",function(){if(P){let j=P;P=null,j()}}),I.on("end",function(){L.push(null)}),L._read=function(){for(;;){let j=I.read();if(j===null){P=L._read;return}if(!L.push(j))return}}),L._destroy=function(j,U){!j&&z!==null&&(j=new f),P=null,B=null,A=null,z===null?U(j):(z=U,g(M,j),g(I,j))},L}}),rh=sn((e,t)=>{Zt(),en(),Jt();var{ObjectDefineProperties:n,ObjectGetOwnPropertyDescriptor:r,ObjectKeys:i,ObjectSetPrototypeOf:o}=xa();t.exports=l;var a=IP(),s=D0e();o(l.prototype,a.prototype),o(l,a);{let f=i(s.prototype);for(let h=0;h<f.length;h++){let m=f[h];l.prototype[m]||(l.prototype[m]=s.prototype[m])}}function l(f){if(!(this instanceof l))return new l(f);a.call(this,f),s.call(this,f),f?(this.allowHalfOpen=f.allowHalfOpen!==!1,f.readable===!1&&(this._readableState.readable=!1,this._readableState.ended=!0,this._readableState.endEmitted=!0),f.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(f){this._readableState&&this._writableState&&(this._readableState.destroyed=f,this._writableState.destroyed=f)}}});var c;function u(){return c===void 0&&(c={}),c}l.fromWeb=function(f,h){return u().newStreamDuplexFromReadableWritablePair(f,h)},l.toWeb=function(f){return u().newReadableWritablePairFromDuplex(f)};var d;l.from=function(f){return d||(d=MBe()),d(f,"body")}}),L0e=sn((e,t)=>{Zt(),en(),Jt();var{ObjectSetPrototypeOf:n,Symbol:r}=xa();t.exports=l;var{ERR_METHOD_NOT_IMPLEMENTED:i}=Ll().codes,o=rh(),{getHighWaterMark:a}=KG();n(l.prototype,o.prototype),n(l,o);var s=r("kCallback");function l(d){if(!(this instanceof l))return new l(d);let f=d?a(this,d,"readableHighWaterMark",!0):null;f===0&&(d={...d,highWaterMark:null,readableHighWaterMark:f,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((f,h)=>{if(f){d?d(f):this.destroy(f);return}h!=null&&this.push(h),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,f,h){throw new i("_transform()")},l.prototype._write=function(d,f,h){let m=this._readableState,g=this._writableState,v=m.length;this._transform(d,f,(y,b)=>{if(y){h(y);return}b!=null&&this.push(b),g.ended||v===m.length||m.length<m.highWaterMark?h():this[s]=h})},l.prototype._read=function(){if(this[s]){let d=this[s];this[s]=null,d()}}}),$0e=sn((e,t)=>{Zt(),en(),Jt();var{ObjectSetPrototypeOf:n}=xa();t.exports=i;var r=L0e();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)}}),ZG=sn((e,t)=>{Zt(),en(),Jt();var n=h0(),{ArrayIsArray:r,Promise:i,SymbolAsyncIterator:o}=xa(),a=xg(),{once:s}=nh(),l=aS(),c=rh(),{aggregateTwoErrors:u,codes:{ERR_INVALID_ARG_TYPE:d,ERR_INVALID_RETURN_VALUE:f,ERR_MISSING_ARGS:h,ERR_STREAM_DESTROYED:m,ERR_STREAM_PREMATURE_CLOSE:g},AbortError:v}=Ll(),{validateFunction:y,validateAbortSignal:b}=xP(),{isIterable:_,isReadable:E,isReadableNodeStream:w,isNodeStream:S,isTransformStream:C,isWebStream:T,isReadableStream:x,isReadableEnded:O}=vh(),N=globalThis.AbortController||qG().AbortController,I,M;function F(U,J,te){let ae=!1;U.on("close",()=>{ae=!0});let K=a(U,{readable:J,writable:te},Q=>{ae=!Q});return{destroy:Q=>{ae||(ae=!0,l.destroyer(U,Q||new m("pipe")))},cleanup:K}}function k(U){return y(U[U.length-1],"streams[stream.length - 1]"),U.pop()}function B(U){if(_(U))return U;if(w(U))return A(U);throw new d("val",["Readable","Iterable","AsyncIterable"],U)}async function*A(U){M||(M=IP()),yield*M.prototype[o].call(U)}async function P(U,J,te,{end:ae}){let K,Q=null,oe=ue=>{if(ue&&(K=ue),Q){let le=Q;Q=null,le()}},ge=()=>new i((ue,le)=>{K?le(K):Q=()=>{K?le(K):ue()}});J.on("drain",oe);let fe=a(J,{readable:!1},oe);try{J.writableNeedDrain&&await ge();for await(let ue of U)J.write(ue)||await ge();ae&&J.end(),await ge(),te()}catch(ue){te(K!==ue?u(K,ue):ue)}finally{fe(),J.off("drain",oe)}}async function z(U,J,te,{end:ae}){C(J)&&(J=J.writable);let K=J.getWriter();try{for await(let Q of U)await K.ready,K.write(Q).catch(()=>{});await K.ready,ae&&await K.close(),te()}catch(Q){try{await K.abort(Q),te(Q)}catch(oe){te(oe)}}}function L(...U){return V(U,s(k(U)))}function V(U,J,te){if(U.length===1&&r(U[0])&&(U=U[0]),U.length<2)throw new h("streams");let ae=new N,K=ae.signal,Q=te==null?void 0:te.signal,oe=[];b(Q,"options.signal");function ge(){pe(new v)}Q==null||Q.addEventListener("abort",ge);let fe,ue,le=[],ve=0;function ne(Ce){pe(Ce,--ve===0)}function pe(Ce,ye){if(Ce&&(!fe||fe.code==="ERR_STREAM_PREMATURE_CLOSE")&&(fe=Ce),!(!fe&&!ye)){for(;le.length;)le.shift()(fe);Q==null||Q.removeEventListener("abort",ge),ae.abort(),ye&&(fe||oe.forEach(he=>he()),n.nextTick(J,fe,ue))}}let be;for(let Ce=0;Ce<U.length;Ce++){let ye=U[Ce],he=Ce<U.length-1,_e=Ce>0,Oe=he||(te==null?void 0:te.end)!==!1,De=Ce===U.length-1;if(S(ye)){let Y=function(D){D&&D.name!=="AbortError"&&D.code!=="ERR_STREAM_PREMATURE_CLOSE"&&ne(D)};if(Oe){let{destroy:D,cleanup:G}=F(ye,he,_e);le.push(D),E(ye)&&De&&oe.push(G)}ye.on("error",Y),E(ye)&&De&&oe.push(()=>{ye.removeListener("error",Y)})}if(Ce===0)if(typeof ye=="function"){if(be=ye({signal:K}),!_(be))throw new f("Iterable, AsyncIterable or Stream","source",be)}else _(ye)||w(ye)||C(ye)?be=ye:be=c.from(ye);else if(typeof ye=="function"){if(C(be)){var Re;be=B((Re=be)===null||Re===void 0?void 0:Re.readable)}else be=B(be);if(be=ye(be,{signal:K}),he){if(!_(be,!0))throw new f("AsyncIterable",`transform[${Ce-1}]`,be)}else{var Se;I||(I=$0e());let Y=new I({objectMode:!0}),D=(Se=be)===null||Se===void 0?void 0:Se.then;if(typeof D=="function")ve++,D.call(be,me=>{ue=me,me!=null&&Y.write(me),Oe&&Y.end(),n.nextTick(ne)},me=>{Y.destroy(me),n.nextTick(ne,me)});else if(_(be,!0))ve++,P(be,Y,ne,{end:Oe});else if(x(be)||C(be)){let me=be.readable||be;ve++,P(me,Y,ne,{end:Oe})}else throw new f("AsyncIterable or Promise","destination",be);be=Y;let{destroy:G,cleanup:ie}=F(be,!1,!0);le.push(G),De&&oe.push(ie)}}else if(S(ye)){if(w(be)){ve+=2;let Y=j(be,ye,ne,{end:Oe});E(ye)&&De&&oe.push(Y)}else if(C(be)||x(be)){let Y=be.readable||be;ve++,P(Y,ye,ne,{end:Oe})}else if(_(be))ve++,P(be,ye,ne,{end:Oe});else throw new d("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],be);be=ye}else if(T(ye)){if(w(be))ve++,z(B(be),ye,ne,{end:Oe});else if(x(be)||_(be))ve++,z(be,ye,ne,{end:Oe});else if(C(be))ve++,z(be.readable,ye,ne,{end:Oe});else throw new d("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],be);be=ye}else be=c.from(ye)}return(K!=null&&K.aborted||Q!=null&&Q.aborted)&&n.nextTick(ge),be}function j(U,J,te,{end:ae}){let K=!1;if(J.on("close",()=>{K||te(new g)}),U.pipe(J,{end:!1}),ae){let Q=function(){K=!0,J.end()};O(U)?n.nextTick(Q):U.once("end",Q)}else te();return a(U,{readable:!0,writable:!1},Q=>{let oe=U._readableState;Q&&Q.code==="ERR_STREAM_PREMATURE_CLOSE"&&oe&&oe.ended&&!oe.errored&&!oe.errorEmitted?U.once("end",te).once("error",te):te(Q)}),a(J,{readable:!1,writable:!0},te)}t.exports={pipelineImpl:V,pipeline:L}}),F0e=sn((e,t)=>{Zt(),en(),Jt();var{pipeline:n}=ZG(),r=rh(),{destroyer:i}=aS(),{isNodeStream:o,isReadable:a,isWritable:s,isWebStream:l,isTransformStream:c,isWritableStream:u,isReadableStream:d}=vh(),{AbortError:f,codes:{ERR_INVALID_ARG_VALUE:h,ERR_MISSING_ARGS:m}}=Ll(),g=xg();t.exports=function(...v){if(v.length===0)throw new m("streams");if(v.length===1)return r.from(v[0]);let y=[...v];if(typeof v[0]=="function"&&(v[0]=r.from(v[0])),typeof v[v.length-1]=="function"){let I=v.length-1;v[I]=r.from(v[I])}for(let I=0;I<v.length;++I)if(!(!o(v[I])&&!l(v[I]))){if(I<v.length-1&&!(a(v[I])||d(v[I])||c(v[I])))throw new h(`streams[${I}]`,y[I],"must be readable");if(I>0&&!(s(v[I])||u(v[I])||c(v[I])))throw new h(`streams[${I}]`,y[I],"must be writable")}let b,_,E,w,S;function C(I){let M=w;w=null,M?M(I):I?S.destroy(I):!N&&!O&&S.destroy()}let T=v[0],x=n(v,C),O=!!(s(T)||u(T)||c(T)),N=!!(a(x)||d(x)||c(x));if(S=new r({writableObjectMode:!!(T!=null&&T.writableObjectMode),readableObjectMode:!!(x!=null&&x.writableObjectMode),writable:O,readable:N}),O){if(o(T))S._write=function(M,F,k){T.write(M,F)?k():b=k},S._final=function(M){T.end(),_=M},T.on("drain",function(){if(b){let M=b;b=null,M()}});else if(l(T)){let M=(c(T)?T.writable:T).getWriter();S._write=async function(F,k,B){try{await M.ready,M.write(F).catch(()=>{}),B()}catch(A){B(A)}},S._final=async function(F){try{await M.ready,M.close().catch(()=>{}),_=F}catch(k){F(k)}}}let I=c(x)?x.readable:x;g(I,()=>{if(_){let M=_;_=null,M()}})}if(N){if(o(x))x.on("readable",function(){if(E){let I=E;E=null,I()}}),x.on("end",function(){S.push(null)}),S._read=function(){for(;;){let I=x.read();if(I===null){E=S._read;return}if(!S.push(I))return}};else if(l(x)){let I=(c(x)?x.readable:x).getReader();S._read=async function(){for(;;)try{let{value:M,done:F}=await I.read();if(!S.push(M))return;if(F){S.push(null);return}}catch{return}}}}return S._destroy=function(I,M){!I&&w!==null&&(I=new f),E=null,b=null,_=null,w===null?M(I):(w=M,o(x)&&i(x,I))},S}}),kBe=sn((e,t)=>{Zt(),en(),Jt();var n=globalThis.AbortController||qG().AbortController,{codes:{ERR_INVALID_ARG_VALUE:r,ERR_INVALID_ARG_TYPE:i,ERR_MISSING_ARGS:o,ERR_OUT_OF_RANGE:a},AbortError:s}=Ll(),{validateAbortSignal:l,validateInteger:c,validateObject:u}=xP(),d=xa().Symbol("kWeak"),{finished:f}=xg(),h=F0e(),{addAbortSignalNoValidate:m}=OP(),{isWritable:g,isNodeStream:v}=vh(),{ArrayPrototypePush:y,MathFloor:b,Number:_,NumberIsNaN:E,Promise:w,PromiseReject:S,PromisePrototypeThen:C,Symbol:T}=xa(),x=T("kEmpty"),O=T("kEof");function N(ae,K){if(K!=null&&u(K,"options"),(K==null?void 0:K.signal)!=null&&l(K.signal,"options.signal"),v(ae)&&!g(ae))throw new r("stream",ae,"must be writable");let Q=h(this,ae);return K!=null&&K.signal&&m(K.signal,Q),Q}function I(ae,K){if(typeof ae!="function")throw new i("fn",["Function","AsyncFunction"],ae);K!=null&&u(K,"options"),(K==null?void 0:K.signal)!=null&&l(K.signal,"options.signal");let Q=1;return(K==null?void 0:K.concurrency)!=null&&(Q=b(K.concurrency)),c(Q,"concurrency",1),(async function*(){var oe,ge;let fe=new n,ue=this,le=[],ve=fe.signal,ne={signal:ve},pe=()=>fe.abort();K!=null&&(oe=K.signal)!==null&&oe!==void 0&&oe.aborted&&pe(),K==null||(ge=K.signal)===null||ge===void 0||ge.addEventListener("abort",pe);let be,Re,Se=!1;function Ce(){Se=!0}async function ye(){try{for await(let Oe of ue){var he;if(Se)return;if(ve.aborted)throw new s;try{Oe=ae(Oe,ne)}catch(De){Oe=S(De)}Oe!==x&&(typeof((he=Oe)===null||he===void 0?void 0:he.catch)=="function"&&Oe.catch(Ce),le.push(Oe),be&&(be(),be=null),!Se&&le.length&&le.length>=Q&&await new w(De=>{Re=De}))}le.push(O)}catch(Oe){let De=S(Oe);C(De,void 0,Ce),le.push(De)}finally{var _e;Se=!0,be&&(be(),be=null),K==null||(_e=K.signal)===null||_e===void 0||_e.removeEventListener("abort",pe)}}ye();try{for(;;){for(;le.length>0;){let he=await le[0];if(he===O)return;if(ve.aborted)throw new s;he!==x&&(yield he),le.shift(),Re&&(Re(),Re=null)}await new w(he=>{be=he})}}finally{fe.abort(),Se=!0,Re&&(Re(),Re=null)}}).call(this)}function M(ae=void 0){return ae!=null&&u(ae,"options"),(ae==null?void 0:ae.signal)!=null&&l(ae.signal,"options.signal"),(async function*(){let K=0;for await(let oe of this){var Q;if(ae!=null&&(Q=ae.signal)!==null&&Q!==void 0&&Q.aborted)throw new s({cause:ae.signal.reason});yield[K++,oe]}}).call(this)}async function F(ae,K=void 0){for await(let Q of P.call(this,ae,K))return!0;return!1}async function k(ae,K=void 0){if(typeof ae!="function")throw new i("fn",["Function","AsyncFunction"],ae);return!await F.call(this,async(...Q)=>!await ae(...Q),K)}async function B(ae,K){for await(let Q of P.call(this,ae,K))return Q}async function A(ae,K){if(typeof ae!="function")throw new i("fn",["Function","AsyncFunction"],ae);async function Q(oe,ge){return await ae(oe,ge),x}for await(let oe of I.call(this,Q,K));}function P(ae,K){if(typeof ae!="function")throw new i("fn",["Function","AsyncFunction"],ae);async function Q(oe,ge){return await ae(oe,ge)?oe:x}return I.call(this,Q,K)}var z=class extends o{constructor(){super("reduce"),this.message="Reduce of an empty stream requires an initial value"}};async function L(ae,K,Q){var oe;if(typeof ae!="function")throw new i("reducer",["Function","AsyncFunction"],ae);Q!=null&&u(Q,"options"),(Q==null?void 0:Q.signal)!=null&&l(Q.signal,"options.signal");let ge=arguments.length>1;if(Q!=null&&(oe=Q.signal)!==null&&oe!==void 0&&oe.aborted){let ne=new s(void 0,{cause:Q.signal.reason});throw this.once("error",()=>{}),await f(this.destroy(ne)),ne}let fe=new n,ue=fe.signal;if(Q!=null&&Q.signal){let ne={once:!0,[d]:this};Q.signal.addEventListener("abort",()=>fe.abort(),ne)}let le=!1;try{for await(let ne of this){var ve;if(le=!0,Q!=null&&(ve=Q.signal)!==null&&ve!==void 0&&ve.aborted)throw new s;ge?K=await ae(K,ne,{signal:ue}):(K=ne,ge=!0)}if(!le&&!ge)throw new z}finally{fe.abort()}return K}async function V(ae){ae!=null&&u(ae,"options"),(ae==null?void 0:ae.signal)!=null&&l(ae.signal,"options.signal");let K=[];for await(let oe of this){var Q;if(ae!=null&&(Q=ae.signal)!==null&&Q!==void 0&&Q.aborted)throw new s(void 0,{cause:ae.signal.reason});y(K,oe)}return K}function j(ae,K){let Q=I.call(this,ae,K);return(async function*(){for await(let oe of Q)yield*oe}).call(this)}function U(ae){if(ae=_(ae),E(ae))return 0;if(ae<0)throw new a("number",">= 0",ae);return ae}function J(ae,K=void 0){return K!=null&&u(K,"options"),(K==null?void 0:K.signal)!=null&&l(K.signal,"options.signal"),ae=U(ae),(async function*(){var Q;if(K!=null&&(Q=K.signal)!==null&&Q!==void 0&&Q.aborted)throw new s;for await(let ge of this){var oe;if(K!=null&&(oe=K.signal)!==null&&oe!==void 0&&oe.aborted)throw new s;ae--<=0&&(yield ge)}}).call(this)}function te(ae,K=void 0){return K!=null&&u(K,"options"),(K==null?void 0:K.signal)!=null&&l(K.signal,"options.signal"),ae=U(ae),(async function*(){var Q;if(K!=null&&(Q=K.signal)!==null&&Q!==void 0&&Q.aborted)throw new s;for await(let ge of this){var oe;if(K!=null&&(oe=K.signal)!==null&&oe!==void 0&&oe.aborted)throw new s;if(ae-- >0)yield ge;else return}}).call(this)}t.exports.streamReturningOperators={asIndexedPairs:M,drop:J,filter:P,flatMap:j,map:I,take:te,compose:N},t.exports.promiseReturningOperators={every:k,forEach:A,reduce:L,toArray:V,some:F,find:B}}),B0e=sn((e,t)=>{Zt(),en(),Jt();var{ArrayPrototypePop:n,Promise:r}=xa(),{isIterable:i,isNodeStream:o,isWebStream:a}=vh(),{pipelineImpl:s}=ZG(),{finished:l}=xg();j0e();function c(...u){return new r((d,f)=>{let h,m,g=u[u.length-1];if(g&&typeof g=="object"&&!o(g)&&!i(g)&&!a(g)){let v=n(u);h=v.signal,m=v.end}s(u,(v,y)=>{v?f(v):d(y)},{signal:h,end:m})})}t.exports={finished:l,pipeline:c}}),j0e=sn((e,t)=>{Zt(),en(),Jt();var{Buffer:n}=(us(),Hi(cs)),{ObjectDefineProperty:r,ObjectKeys:i,ReflectApply:o}=xa(),{promisify:{custom:a}}=nh(),{streamReturningOperators:s,promiseReturningOperators:l}=kBe(),{codes:{ERR_ILLEGAL_CONSTRUCTOR:c}}=Ll(),u=F0e(),{pipeline:d}=ZG(),{destroyer:f}=aS(),h=xg(),m=B0e(),g=vh(),v=t.exports=YG().Stream;v.isDisturbed=g.isDisturbed,v.isErrored=g.isErrored,v.isReadable=g.isReadable,v.Readable=IP();for(let b of i(s)){let _=function(...w){if(new.target)throw c();return v.Readable.from(o(E,this,w))},E=s[b];r(_,"name",{__proto__:null,value:E.name}),r(_,"length",{__proto__:null,value:E.length}),r(v.Readable.prototype,b,{__proto__:null,value:_,enumerable:!1,configurable:!0,writable:!0})}for(let b of i(l)){let _=function(...w){if(new.target)throw c();return o(E,this,w)},E=l[b];r(_,"name",{__proto__:null,value:E.name}),r(_,"length",{__proto__:null,value:E.length}),r(v.Readable.prototype,b,{__proto__:null,value:_,enumerable:!1,configurable:!0,writable:!0})}v.Writable=D0e(),v.Duplex=rh(),v.Transform=L0e(),v.PassThrough=$0e(),v.pipeline=d;var{addAbortSignal:y}=OP();v.addAbortSignal=y,v.finished=h,v.destroy=f,v.compose=u,r(v,"promises",{__proto__:null,configurable:!0,enumerable:!0,get(){return m}}),r(d,a,{__proto__:null,enumerable:!0,get(){return m.pipeline}}),r(h,a,{__proto__:null,enumerable:!0,get(){return m.finished}}),v.Stream=v,v._isUint8Array=function(b){return b instanceof Uint8Array},v._uint8ArrayToBuffer=function(b){return n.from(b.buffer,b.byteOffset,b.byteLength)}}),g0=sn((e,t)=>{Zt(),en(),Jt();var n=j0e(),r=B0e(),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}),PBe=sn((e,t)=>{Zt(),en(),Jt(),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}}}),DBe=sn((e,t)=>{Zt(),en(),Jt();var{Buffer:n}=(us(),Hi(cs)),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,f=d,h=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 g=0;g<this._bufs.length;g++)this._bufs[g].copy(o,h),h+=this._bufs[g].length;return o}if(f<=this._bufs[u[0]].length-m)return c?this._bufs[u[0]].copy(o,a,m,m+f):this._bufs[u[0]].slice(m,m+f);c||(o=n.allocUnsafe(d));for(let g=u[0];g<this._bufs.length;g++){let v=this._bufs[g].length-m;if(f>v)this._bufs[g].copy(o,h,m),h+=v;else{this._bufs[g].copy(o,h,m,m+f),h+=v;break}f-=v,m&&(m=0)}return o.length>h?o.slice(0,h):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 f=d.indexOf(o,u);if(f!==-1)return this._reverseOffset([c,f]);u=d.length-o.length+1}else{let f=this._reverseOffset([c,u]);if(this._match(f,o))return f;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}),LBe=sn((e,t)=>{Zt(),en(),Jt();var n=g0().Duplex,r=PBe(),i=DBe();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}),$Be=sn((e,t)=>{Zt(),en(),Jt();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}),H0e=sn((e,t)=>{Zt(),en(),Jt();var n=t.exports,{Buffer:r}=(us(),Hi(cs));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"}}),FBe=sn((e,t)=>{Zt(),en(),Jt();var n=1e3,r=n*60,i=r*60,o=i*24,a=o*7,s=o*365.25;t.exports=function(f,h){h=h||{};var m=typeof f;if(m==="string"&&f.length>0)return l(f);if(m==="number"&&isFinite(f))return h.long?u(f):c(f);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(f))};function l(f){if(f=String(f),!(f.length>100)){var h=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(f);if(h){var m=parseFloat(h[1]),g=(h[2]||"ms").toLowerCase();switch(g){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(f){var h=Math.abs(f);return h>=o?Math.round(f/o)+"d":h>=i?Math.round(f/i)+"h":h>=r?Math.round(f/r)+"m":h>=n?Math.round(f/n)+"s":f+"ms"}function u(f){var h=Math.abs(f);return h>=o?d(f,h,o,"day"):h>=i?d(f,h,i,"hour"):h>=r?d(f,h,r,"minute"):h>=n?d(f,h,n,"second"):f+" ms"}function d(f,h,m,g){var v=h>=m*1.5;return Math.round(f/m)+" "+g+(v?"s":"")}}),BBe=sn((e,t)=>{Zt(),en(),Jt();function n(r){o.debug=o,o.default=o,o.coerce=d,o.disable=l,o.enable=s,o.enabled=c,o.humanize=FBe(),o.destroy=f,Object.keys(r).forEach(h=>{o[h]=r[h]}),o.names=[],o.skips=[],o.formatters={};function i(h){let m=0;for(let g=0;g<h.length;g++)m=(m<<5)-m+h.charCodeAt(g),m|=0;return o.colors[Math.abs(m)%o.colors.length]}o.selectColor=i;function o(h){let m,g=null,v,y;function b(..._){if(!b.enabled)return;let E=b,w=Number(new Date),S=w-(m||w);E.diff=S,E.prev=m,E.curr=w,m=w,_[0]=o.coerce(_[0]),typeof _[0]!="string"&&_.unshift("%O");let C=0;_[0]=_[0].replace(/%([a-zA-Z%])/g,(T,x)=>{if(T==="%%")return"%";C++;let O=o.formatters[x];if(typeof O=="function"){let N=_[C];T=O.call(E,N),_.splice(C,1),C--}return T}),o.formatArgs.call(E,_),(E.log||o.log).apply(E,_)}return b.namespace=h,b.useColors=o.useColors(),b.color=o.selectColor(h),b.extend=a,b.destroy=o.destroy,Object.defineProperty(b,"enabled",{enumerable:!0,configurable:!1,get:()=>g!==null?g:(v!==o.namespaces&&(v=o.namespaces,y=o.enabled(h)),y),set:_=>{g=_}}),typeof o.init=="function"&&o.init(b),b}function a(h,m){let g=o(this.namespace+(typeof m>"u"?":":m)+h);return g.log=this.log,g}function s(h){o.save(h),o.namespaces=h,o.names=[],o.skips=[];let m,g=(typeof h=="string"?h:"").split(/[\s,]+/),v=g.length;for(m=0;m<v;m++)g[m]&&(h=g[m].replace(/\*/g,".*?"),h[0]==="-"?o.skips.push(new RegExp("^"+h.slice(1)+"$")):o.names.push(new RegExp("^"+h+"$")))}function l(){let h=[...o.names.map(u),...o.skips.map(u).map(m=>"-"+m)].join(",");return o.enable(""),h}function c(h){if(h[h.length-1]==="*")return!0;let m,g;for(m=0,g=o.skips.length;m<g;m++)if(o.skips[m].test(h))return!1;for(m=0,g=o.names.length;m<g;m++)if(o.names[m].test(h))return!0;return!1}function u(h){return h.toString().substring(2,h.toString().length-2).replace(/\.\*\?$/,"*")}function d(h){return h instanceof Error?h.stack||h.message:h}function f(){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}),ih=sn((e,t)=>{Zt(),en(),Jt(),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,f=>{f!=="%%"&&(u++,f==="%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 _i<"u"&&"env"in _i&&(l=_i.env.DEBUG),l}function a(){try{return localStorage}catch{}}t.exports=BBe()(e);var{formatters:s}=t.exports;s.j=function(l){try{return JSON.stringify(l)}catch(c){return"[UnexpectedJSONParseError]: "+c.message}}}),jBe=sn((e,t)=>{Zt(),en(),Jt();var n=LBe(),{EventEmitter:r}=(sS(),Hi(m0)),i=$Be(),o=H0e(),a=ih()("mqtt-packet:parser"),s=class fj extends r{constructor(){super(),this.parser=this.constructor.parser}static parser(c){return this instanceof fj?(this.settings=c||{},this._states=["_parseHeader","_parseLength","_parsePayload","_newPacket"],this._resetState(),this):new fj().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,f=o.requiredHeaderFlags[u];return f!=null&&d!==f?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,f,h={},m=this.packet,g=this._parseString();if(g===null)return this._emitError(new Error("Cannot parse protocolId"));if(g!=="MQTT"&&g!=="MQIsdp")return this._emitError(new Error("Invalid protocolId"));if(m.protocolId=g,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"));h.username=this._list.readUInt8(this._pos)&o.USERNAME_MASK,h.password=this._list.readUInt8(this._pos)&o.PASSWORD_MASK,h.will=this._list.readUInt8(this._pos)&o.WILL_FLAG_MASK;let v=!!(this._list.readUInt8(this._pos)&o.WILL_RETAIN_MASK),y=(this._list.readUInt8(this._pos)&o.WILL_QOS_MASK)>>o.WILL_QOS_SHIFT;if(h.will)m.will={},m.will.retain=v,m.will.qos=y;else{if(v)return this._emitError(new Error("Will Retain Flag must be set to zero when Will Flag is set to 0"));if(y)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 _=this._parseProperties();Object.getOwnPropertyNames(_).length&&(m.properties=_)}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),h.will){if(m.protocolVersion===5){let _=this._parseProperties();Object.getOwnPropertyNames(_).length&&(m.will.properties=_)}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(h.username){if(f=this._parseString(),f===null)return this._emitError(new Error("Cannot parse username"));m.username=f,a("_parseConnect: packet.username: %s",m.username)}if(h.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,f,h,m,g,v;if(c.subscriptions=[],!!this._parseMessageId()){if(this.settings.protocolVersion===5){let y=this._parseProperties();Object.getOwnPropertyNames(y).length&&(c.properties=y)}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(f=d&o.SUBSCRIBE_OPTIONS_QOS_MASK,f>2)return this._emitError(new Error("Invalid subscribe QoS, must be <= 2"));if(g=(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,h=d>>o.SUBSCRIBE_OPTIONS_RH_SHIFT&o.SUBSCRIBE_OPTIONS_RH_MASK,h>2)return this._emitError(new Error("Invalid retain handling, must be <= 2"));v={topic:u,qos:f},this.settings.protocolVersion===5?(v.nl=g,v.rap=m,v.rh=h):this.settings.bridgeMode&&(v.rh=0,v.rap=!0,v.nl=!0),a("_parseSubscribe: push subscription `%s` to subscription",v),c.subscriptions.push(v)}}}_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 f=this._list.toString("utf8",this._pos,d);return this._pos+=u,a("_parseString: result: %s",f),f}_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,f=1,h=0,m=!1,g,v=this._pos?this._pos:0;for(;d<u&&v+d<this._list.length;){if(g=this._list.readUInt8(v+d++),h+=f*(g&o.VARBYTEINT_MASK),f*=128,!(g&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")),v&&(this._pos+=d),m?c?m={bytes:d,value:h}:m=h: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 f=this._parseByte();if(!f)return this._emitError(new Error("Cannot parse property code type")),!1;let h=o.propertiesCodes[f];if(!h)return this._emitError(new Error("Unknown property")),!1;if(h==="userProperties"){d[h]||(d[h]=Object.create(null));let m=this._parseByType(o.propertiesTypes[h]);if(d[h][m.name])if(Array.isArray(d[h][m.name]))d[h][m.name].push(m.value);else{let g=d[h][m.name];d[h][m.name]=[g],d[h][m.name].push(m.value)}else d[h][m.name]=m.value;continue}d[h]?Array.isArray(d[h])?d[h].push(this._parseByType(o.propertiesTypes[h])):(d[h]=[d[h]],d[h].push(this._parseByType(o.propertiesTypes[h]))):d[h]=this._parseByType(o.propertiesTypes[h])}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}),HBe=sn((e,t)=>{Zt(),en(),Jt();var{Buffer:n}=(us(),Hi(cs)),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,f=0,h=n.allocUnsafe(4);do d=u%128|0,u=u/128|0,u>0&&(d=d|128),h.writeUInt8(d,f++);while(u>0&&f<4);return u>0&&(f=0),o?h.subarray(0,f):h.slice(0,f)}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}}),UBe=sn((e,t)=>{Zt(),en(),Jt(),typeof _i>"u"||!_i.version||_i.version.indexOf("v0.")===0||_i.version.indexOf("v1.")===0&&_i.version.indexOf("v1.8.")!==0?t.exports={nextTick:n}:t.exports=_i;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 _i.nextTick(r);case 2:return _i.nextTick(function(){r.call(null,i)});case 3:return _i.nextTick(function(){r.call(null,i,o)});case 4:return _i.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 _i.nextTick(function(){r.apply(null,l)})}}}),U0e=sn((e,t)=>{Zt(),en(),Jt();var n=H0e(),{Buffer:r}=(us(),Hi(cs)),i=r.allocUnsafe(0),o=r.from([0]),a=HBe(),s=UBe().nextTick,l=ih()("mqtt-packet:writeToStream"),c=a.cache,u=a.generateNumber,d=a.generateCache,f=a.genBufVariableByteInt,h=a.generate4ByteBuffer,m=A,g=!0;function v(K,Q,oe){switch(l("generate called"),Q.cork&&(Q.cork(),s(y,Q)),g&&(g=!1,d()),l("generate: packet.cmd: %s",K.cmd),K.cmd){case"connect":return b(K,Q);case"connack":return _(K,Q,oe);case"publish":return E(K,Q,oe);case"puback":case"pubrec":case"pubrel":case"pubcomp":return w(K,Q,oe);case"subscribe":return S(K,Q,oe);case"suback":return C(K,Q,oe);case"unsubscribe":return T(K,Q,oe);case"unsuback":return x(K,Q,oe);case"pingreq":case"pingresp":return O(K,Q);case"disconnect":return N(K,Q,oe);case"auth":return I(K,Q,oe);default:return Q.destroy(new Error("Unknown command")),!1}}Object.defineProperty(v,"cacheNumbers",{get(){return m===A},set(K){K?((!c||Object.keys(c).length===0)&&(g=!0),m=A):(g=!1,m=P)}});function y(K){K.uncork()}function b(K,Q,oe){let ge=K||{},fe=ge.protocolId||"MQTT",ue=ge.protocolVersion||4,le=ge.will,ve=ge.clean,ne=ge.keepalive||0,pe=ge.clientId||"",be=ge.username,Re=ge.password,Se=ge.properties;ve===void 0&&(ve=!0);let Ce=0;if(!fe||typeof fe!="string"&&!r.isBuffer(fe))return Q.destroy(new Error("Invalid protocolId")),!1;if(Ce+=fe.length+2,ue!==3&&ue!==4&&ue!==5)return Q.destroy(new Error("Invalid protocol version")),!1;if(Ce+=1,(typeof pe=="string"||r.isBuffer(pe))&&(pe||ue>=4)&&(pe||ve))Ce+=r.byteLength(pe)+2;else{if(ue<4)return Q.destroy(new Error("clientId must be supplied before 3.1.1")),!1;if(ve*1===0)return Q.destroy(new Error("clientId must be given if cleanSession set to 0")),!1}if(typeof ne!="number"||ne<0||ne>65535||ne%1!==0)return Q.destroy(new Error("Invalid keepalive")),!1;Ce+=2,Ce+=1;let ye,he;if(ue===5){if(ye=V(Q,Se),!ye)return!1;Ce+=ye.length}if(le){if(typeof le!="object")return Q.destroy(new Error("Invalid will")),!1;if(!le.topic||typeof le.topic!="string")return Q.destroy(new Error("Invalid will topic")),!1;if(Ce+=r.byteLength(le.topic)+2,Ce+=2,le.payload)if(le.payload.length>=0)typeof le.payload=="string"?Ce+=r.byteLength(le.payload):Ce+=le.payload.length;else return Q.destroy(new Error("Invalid will payload")),!1;if(he={},ue===5){if(he=V(Q,le.properties),!he)return!1;Ce+=he.length}}let _e=!1;if(be!=null)if(ae(be))_e=!0,Ce+=r.byteLength(be)+2;else return Q.destroy(new Error("Invalid username")),!1;if(Re!=null){if(!_e)return Q.destroy(new Error("Username is required to use password")),!1;if(ae(Re))Ce+=te(Re)+2;else return Q.destroy(new Error("Invalid password")),!1}Q.write(n.CONNECT_HEADER),F(Q,Ce),L(Q,fe),ge.bridgeMode&&(ue+=128),Q.write(ue===131?n.VERSION131:ue===132?n.VERSION132:ue===4?n.VERSION4:ue===5?n.VERSION5:n.VERSION3);let Oe=0;return Oe|=be!=null?n.USERNAME_MASK:0,Oe|=Re!=null?n.PASSWORD_MASK:0,Oe|=le&&le.retain?n.WILL_RETAIN_MASK:0,Oe|=le&&le.qos?le.qos<<n.WILL_QOS_SHIFT:0,Oe|=le?n.WILL_FLAG_MASK:0,Oe|=ve?n.CLEAN_SESSION_MASK:0,Q.write(r.from([Oe])),m(Q,ne),ue===5&&ye.write(),L(Q,pe),le&&(ue===5&&he.write(),k(Q,le.topic),L(Q,le.payload)),be!=null&&L(Q,be),Re!=null&&L(Q,Re),!0}function _(K,Q,oe){let ge=oe?oe.protocolVersion:4,fe=K||{},ue=ge===5?fe.reasonCode:fe.returnCode,le=fe.properties,ve=2;if(typeof ue!="number")return Q.destroy(new Error("Invalid return code")),!1;let ne=null;if(ge===5){if(ne=V(Q,le),!ne)return!1;ve+=ne.length}return Q.write(n.CONNACK_HEADER),F(Q,ve),Q.write(fe.sessionPresent?n.SESSIONPRESENT_HEADER:o),Q.write(r.from([ue])),ne==null||ne.write(),!0}function E(K,Q,oe){l("publish: packet: %o",K);let ge=oe?oe.protocolVersion:4,fe=K||{},ue=fe.qos||0,le=fe.retain?n.RETAIN_MASK:0,ve=fe.topic,ne=fe.payload||i,pe=fe.messageId,be=fe.properties,Re=0;if(typeof ve=="string")Re+=r.byteLength(ve)+2;else if(r.isBuffer(ve))Re+=ve.length+2;else return Q.destroy(new Error("Invalid topic")),!1;if(r.isBuffer(ne)?Re+=ne.length:Re+=r.byteLength(ne),ue&&typeof pe!="number")return Q.destroy(new Error("Invalid messageId")),!1;ue&&(Re+=2);let Se=null;if(ge===5){if(Se=V(Q,be),!Se)return!1;Re+=Se.length}return Q.write(n.PUBLISH_HEADER[ue][fe.dup?1:0][le?1:0]),F(Q,Re),m(Q,te(ve)),Q.write(ve),ue>0&&m(Q,pe),Se==null||Se.write(),l("publish: payload: %o",ne),Q.write(ne)}function w(K,Q,oe){let ge=oe?oe.protocolVersion:4,fe=K||{},ue=fe.cmd||"puback",le=fe.messageId,ve=fe.dup&&ue==="pubrel"?n.DUP_MASK:0,ne=0,pe=fe.reasonCode,be=fe.properties,Re=ge===5?3:2;if(ue==="pubrel"&&(ne=1),typeof le!="number")return Q.destroy(new Error("Invalid messageId")),!1;let Se=null;if(ge===5&&typeof be=="object"){if(Se=j(Q,be,oe,Re),!Se)return!1;Re+=Se.length}return Q.write(n.ACKS[ue][ne][ve][0]),Re===3&&(Re+=pe!==0?1:-1),F(Q,Re),m(Q,le),ge===5&&Re!==2&&Q.write(r.from([pe])),Se!==null?Se.write():Re===4&&Q.write(r.from([0])),!0}function S(K,Q,oe){l("subscribe: packet: ");let ge=oe?oe.protocolVersion:4,fe=K||{},ue=fe.dup?n.DUP_MASK:0,le=fe.messageId,ve=fe.subscriptions,ne=fe.properties,pe=0;if(typeof le!="number")return Q.destroy(new Error("Invalid messageId")),!1;pe+=2;let be=null;if(ge===5){if(be=V(Q,ne),!be)return!1;pe+=be.length}if(typeof ve=="object"&&ve.length)for(let Se=0;Se<ve.length;Se+=1){let Ce=ve[Se].topic,ye=ve[Se].qos;if(typeof Ce!="string")return Q.destroy(new Error("Invalid subscriptions - invalid topic")),!1;if(typeof ye!="number")return Q.destroy(new Error("Invalid subscriptions - invalid qos")),!1;if(ge===5){if(typeof(ve[Se].nl||!1)!="boolean")return Q.destroy(new Error("Invalid subscriptions - invalid No Local")),!1;if(typeof(ve[Se].rap||!1)!="boolean")return Q.destroy(new Error("Invalid subscriptions - invalid Retain as Published")),!1;let he=ve[Se].rh||0;if(typeof he!="number"||he>2)return Q.destroy(new Error("Invalid subscriptions - invalid Retain Handling")),!1}pe+=r.byteLength(Ce)+2+1}else return Q.destroy(new Error("Invalid subscriptions")),!1;l("subscribe: writing to stream: %o",n.SUBSCRIBE_HEADER),Q.write(n.SUBSCRIBE_HEADER[1][ue?1:0][0]),F(Q,pe),m(Q,le),be!==null&&be.write();let Re=!0;for(let Se of ve){let Ce=Se.topic,ye=Se.qos,he=+Se.nl,_e=+Se.rap,Oe=Se.rh,De;k(Q,Ce),De=n.SUBSCRIBE_OPTIONS_QOS[ye],ge===5&&(De|=he?n.SUBSCRIBE_OPTIONS_NL:0,De|=_e?n.SUBSCRIBE_OPTIONS_RAP:0,De|=Oe?n.SUBSCRIBE_OPTIONS_RH[Oe]:0),Re=Q.write(r.from([De]))}return Re}function C(K,Q,oe){let ge=oe?oe.protocolVersion:4,fe=K||{},ue=fe.messageId,le=fe.granted,ve=fe.properties,ne=0;if(typeof ue!="number")return Q.destroy(new Error("Invalid messageId")),!1;if(ne+=2,typeof le=="object"&&le.length)for(let be=0;be<le.length;be+=1){if(typeof le[be]!="number")return Q.destroy(new Error("Invalid qos vector")),!1;ne+=1}else return Q.destroy(new Error("Invalid qos vector")),!1;let pe=null;if(ge===5){if(pe=j(Q,ve,oe,ne),!pe)return!1;ne+=pe.length}return Q.write(n.SUBACK_HEADER),F(Q,ne),m(Q,ue),pe!==null&&pe.write(),Q.write(r.from(le))}function T(K,Q,oe){let ge=oe?oe.protocolVersion:4,fe=K||{},ue=fe.messageId,le=fe.dup?n.DUP_MASK:0,ve=fe.unsubscriptions,ne=fe.properties,pe=0;if(typeof ue!="number")return Q.destroy(new Error("Invalid messageId")),!1;if(pe+=2,typeof ve=="object"&&ve.length)for(let Se=0;Se<ve.length;Se+=1){if(typeof ve[Se]!="string")return Q.destroy(new Error("Invalid unsubscriptions")),!1;pe+=r.byteLength(ve[Se])+2}else return Q.destroy(new Error("Invalid unsubscriptions")),!1;let be=null;if(ge===5){if(be=V(Q,ne),!be)return!1;pe+=be.length}Q.write(n.UNSUBSCRIBE_HEADER[1][le?1:0][0]),F(Q,pe),m(Q,ue),be!==null&&be.write();let Re=!0;for(let Se=0;Se<ve.length;Se++)Re=k(Q,ve[Se]);return Re}function x(K,Q,oe){let ge=oe?oe.protocolVersion:4,fe=K||{},ue=fe.messageId,le=fe.dup?n.DUP_MASK:0,ve=fe.granted,ne=fe.properties,pe=fe.cmd,be=0,Re=2;if(typeof ue!="number")return Q.destroy(new Error("Invalid messageId")),!1;if(ge===5)if(typeof ve=="object"&&ve.length)for(let Ce=0;Ce<ve.length;Ce+=1){if(typeof ve[Ce]!="number")return Q.destroy(new Error("Invalid qos vector")),!1;Re+=1}else return Q.destroy(new Error("Invalid qos vector")),!1;let Se=null;if(ge===5){if(Se=j(Q,ne,oe,Re),!Se)return!1;Re+=Se.length}return Q.write(n.ACKS[pe][be][le][0]),F(Q,Re),m(Q,ue),Se!==null&&Se.write(),ge===5&&Q.write(r.from(ve)),!0}function O(K,Q,oe){return Q.write(n.EMPTY[K.cmd])}function N(K,Q,oe){let ge=oe?oe.protocolVersion:4,fe=K||{},ue=fe.reasonCode,le=fe.properties,ve=ge===5?1:0,ne=null;if(ge===5){if(ne=j(Q,le,oe,ve),!ne)return!1;ve+=ne.length}return Q.write(r.from([n.codes.disconnect<<4])),F(Q,ve),ge===5&&Q.write(r.from([ue])),ne!==null&&ne.write(),!0}function I(K,Q,oe){let ge=oe?oe.protocolVersion:4,fe=K||{},ue=fe.reasonCode,le=fe.properties,ve=ge===5?1:0;ge!==5&&Q.destroy(new Error("Invalid mqtt version for auth packet"));let ne=j(Q,le,oe,ve);return ne?(ve+=ne.length,Q.write(r.from([n.codes.auth<<4])),F(Q,ve),Q.write(r.from([ue])),ne!==null&&ne.write(),!0):!1}var M={};function F(K,Q){if(Q>n.VARBYTEINT_MAX)return K.destroy(new Error(`Invalid variable byte integer: ${Q}`)),!1;let oe=M[Q];return oe||(oe=f(Q),Q<16384&&(M[Q]=oe)),l("writeVarByteInt: writing to stream: %o",oe),K.write(oe)}function k(K,Q){let oe=r.byteLength(Q);return m(K,oe),l("writeString: %s",Q),K.write(Q,"utf8")}function B(K,Q,oe){k(K,Q),k(K,oe)}function A(K,Q){return l("writeNumberCached: number: %d",Q),l("writeNumberCached: %o",c[Q]),K.write(c[Q])}function P(K,Q){let oe=u(Q);return l("writeNumberGenerated: %o",oe),K.write(oe)}function z(K,Q){let oe=h(Q);return l("write4ByteNumber: %o",oe),K.write(oe)}function L(K,Q){typeof Q=="string"?k(K,Q):Q?(m(K,Q.length),K.write(Q)):m(K,0)}function V(K,Q){if(typeof Q!="object"||Q.length!=null)return{length:1,write(){J(K,{},0)}};let oe=0;function ge(fe,ue){let le=n.propertiesTypes[fe],ve=0;switch(le){case"byte":{if(typeof ue!="boolean")return K.destroy(new Error(`Invalid ${fe}: ${ue}`)),!1;ve+=2;break}case"int8":{if(typeof ue!="number"||ue<0||ue>255)return K.destroy(new Error(`Invalid ${fe}: ${ue}`)),!1;ve+=2;break}case"binary":{if(ue&&ue===null)return K.destroy(new Error(`Invalid ${fe}: ${ue}`)),!1;ve+=1+r.byteLength(ue)+2;break}case"int16":{if(typeof ue!="number"||ue<0||ue>65535)return K.destroy(new Error(`Invalid ${fe}: ${ue}`)),!1;ve+=3;break}case"int32":{if(typeof ue!="number"||ue<0||ue>4294967295)return K.destroy(new Error(`Invalid ${fe}: ${ue}`)),!1;ve+=5;break}case"var":{if(typeof ue!="number"||ue<0||ue>268435455)return K.destroy(new Error(`Invalid ${fe}: ${ue}`)),!1;ve+=1+r.byteLength(f(ue));break}case"string":{if(typeof ue!="string")return K.destroy(new Error(`Invalid ${fe}: ${ue}`)),!1;ve+=3+r.byteLength(ue.toString());break}case"pair":{if(typeof ue!="object")return K.destroy(new Error(`Invalid ${fe}: ${ue}`)),!1;ve+=Object.getOwnPropertyNames(ue).reduce((ne,pe)=>{let be=ue[pe];return Array.isArray(be)?ne+=be.reduce((Re,Se)=>(Re+=3+r.byteLength(pe.toString())+2+r.byteLength(Se.toString()),Re),0):ne+=3+r.byteLength(pe.toString())+2+r.byteLength(ue[pe].toString()),ne},0);break}default:return K.destroy(new Error(`Invalid property ${fe}: ${ue}`)),!1}return ve}if(Q)for(let fe in Q){let ue=0,le=0,ve=Q[fe];if(Array.isArray(ve))for(let ne=0;ne<ve.length;ne++){if(le=ge(fe,ve[ne]),!le)return!1;ue+=le}else{if(le=ge(fe,ve),!le)return!1;ue=le}if(!ue)return!1;oe+=ue}return{length:r.byteLength(f(oe))+oe,write(){J(K,Q,oe)}}}function j(K,Q,oe,ge){let fe=["reasonString","userProperties"],ue=oe&&oe.properties&&oe.properties.maximumPacketSize?oe.properties.maximumPacketSize:0,le=V(K,Q);if(ue)for(;ge+le.length>ue;){let ve=fe.shift();if(ve&&Q[ve])delete Q[ve],le=V(K,Q);else return!1}return le}function U(K,Q,oe){switch(n.propertiesTypes[Q]){case"byte":{K.write(r.from([n.properties[Q]])),K.write(r.from([+oe]));break}case"int8":{K.write(r.from([n.properties[Q]])),K.write(r.from([oe]));break}case"binary":{K.write(r.from([n.properties[Q]])),L(K,oe);break}case"int16":{K.write(r.from([n.properties[Q]])),m(K,oe);break}case"int32":{K.write(r.from([n.properties[Q]])),z(K,oe);break}case"var":{K.write(r.from([n.properties[Q]])),F(K,oe);break}case"string":{K.write(r.from([n.properties[Q]])),k(K,oe);break}case"pair":{Object.getOwnPropertyNames(oe).forEach(ge=>{let fe=oe[ge];Array.isArray(fe)?fe.forEach(ue=>{K.write(r.from([n.properties[Q]])),B(K,ge.toString(),ue.toString())}):(K.write(r.from([n.properties[Q]])),B(K,ge.toString(),fe.toString()))});break}default:return K.destroy(new Error(`Invalid property ${Q} value: ${oe}`)),!1}}function J(K,Q,oe){F(K,oe);for(let ge in Q)if(Object.prototype.hasOwnProperty.call(Q,ge)&&Q[ge]!==null){let fe=Q[ge];if(Array.isArray(fe))for(let ue=0;ue<fe.length;ue++)U(K,ge,fe[ue]);else U(K,ge,fe)}}function te(K){return K?K instanceof r?K.length:r.byteLength(K):0}function ae(K){return typeof K=="string"||K instanceof r}t.exports=v}),zBe=sn((e,t)=>{Zt(),en(),Jt();var n=U0e(),{EventEmitter:r}=(sS(),Hi(m0)),{Buffer:i}=(us(),Hi(cs));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 f=i.allocUnsafe(s);for(d=0;d<c.length&&c[d]!==void 0;d++)typeof c[d]!="string"?(c[d].copy(f,u),u+=l[d]):(f.write(c[d],u),u+=l[d]);return f}destroy(s){s&&this.emit("error",s)}};t.exports=o}),VBe=sn(e=>{Zt(),en(),Jt(),e.parser=jBe().parser,e.generate=zBe(),e.writeToStream=U0e()}),z0e=sn(e=>{Zt(),en(),Jt(),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}),GBe=sn((e,t)=>{Zt(),en(),Jt(),t.exports=r;function n(o){return o instanceof tM?tM.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),f=new Array(d.length),h=0;h<d.length;h++){var m=d[h],g=c[m];typeof g!="object"||g===null?f[m]=g:g instanceof Date?f[m]=new Date(g):ArrayBuffer.isView(g)?f[m]=n(g):f[m]=u(g)}return f}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 f=c[d];typeof f!="object"||f===null?u[d]=f:f instanceof Date?u[d]=new Date(f):f instanceof Map?u[d]=new Map(a(Array.from(f),s)):f instanceof Set?u[d]=new Set(a(Array.from(f),s)):ArrayBuffer.isView(f)?u[d]=n(f):u[d]=s(f)}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 f=c[d];typeof f!="object"||f===null?u[d]=f:f instanceof Date?u[d]=new Date(f):f instanceof Map?u[d]=new Map(a(Array.from(f),l)):f instanceof Set?u[d]=new Set(a(Array.from(f),l)):ArrayBuffer.isView(f)?u[d]=n(f):u[d]=l(f)}return u}}function i(o){var a=[],s=[];return o.proto?u:c;function l(d,f){for(var h=Object.keys(d),m=new Array(h.length),g=0;g<h.length;g++){var v=h[g],y=d[v];if(typeof y!="object"||y===null)m[v]=y;else if(y instanceof Date)m[v]=new Date(y);else if(ArrayBuffer.isView(y))m[v]=n(y);else{var b=a.indexOf(y);b!==-1?m[v]=s[b]:m[v]=f(y)}}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 f={};a.push(d),s.push(f);for(var h in d)if(Object.hasOwnProperty.call(d,h)!==!1){var m=d[h];if(typeof m!="object"||m===null)f[h]=m;else if(m instanceof Date)f[h]=new Date(m);else if(m instanceof Map)f[h]=new Map(l(Array.from(m),c));else if(m instanceof Set)f[h]=new Set(l(Array.from(m),c));else if(ArrayBuffer.isView(m))f[h]=n(m);else{var g=a.indexOf(m);g!==-1?f[h]=s[g]:f[h]=c(m)}}return a.pop(),s.pop(),f}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 f={};a.push(d),s.push(f);for(var h in d){var m=d[h];if(typeof m!="object"||m===null)f[h]=m;else if(m instanceof Date)f[h]=new Date(m);else if(m instanceof Map)f[h]=new Map(l(Array.from(m),u));else if(m instanceof Set)f[h]=new Set(l(Array.from(m),u));else if(ArrayBuffer.isView(m))f[h]=n(m);else{var g=a.indexOf(m);g!==-1?f[h]=s[g]:f[h]=u(m)}}return a.pop(),s.pop(),f}}}),WBe=sn((e,t)=>{Zt(),en(),Jt(),t.exports=GBe()()}),qBe=sn(e=>{Zt(),en(),Jt(),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}),V0e=sn(e=>{Zt(),en(),Jt(),Object.defineProperty(e,"__esModule",{value:!0});var t=g0(),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}),YBe=sn(e=>{Zt(),en(),Jt(),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 f=r.topicAliasRecv.getTopicByAlias(d);if(f)a=f,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,f)=>{if(typeof d=="number"&&(f=d,d=null),d)return r.emit("error",d);if(t.indexOf(f)===-1)return r.emit("error",new Error("Wrong reason code for pubrec"));f?r._sendPacket({cmd:"pubrec",messageId:c,reasonCode:f},o):r.incomingStore.put(i,()=>{r._sendPacket({cmd:"pubrec",messageId:c},o)})});break}case 1:{u.customHandleAcks(a,s,i,(d,f)=>{if(typeof d=="number"&&(f=d,d=null),d)return r.emit("error",d);if(t.indexOf(f)===-1)return r.emit("error",new Error("Wrong reason code for puback"));f||r.emit("message",a,s,i),r.handleMessage(i,h=>{if(h)return o&&o(h);r._sendPacket({cmd:"puback",messageId:c,reasonCode:f},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}),KBe=sn((e,t)=>{t.exports={version:"5.10.3"}}),lS=sn(e=>{Zt(),en(),Jt(),Object.defineProperty(e,"__esModule",{value:!0}),e.MQTTJS_VERSION=e.nextTick=e.applyMixin=e.ErrorWithReasonCode=void 0;var t=class G0e extends Error{constructor(i,o){super(i),this.code=o,Object.setPrototypeOf(this,G0e.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(_i==null?void 0:_i.nextTick)=="function"?_i.nextTick:r=>{setTimeout(r,0)},e.MQTTJS_VERSION=KBe().version}),AP=sn(e=>{Zt(),en(),Jt(),Object.defineProperty(e,"__esModule",{value:!0}),e.ReasonCodes=void 0;var t=lS();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 f=u[d];if(f&128){c=new Error(`Subscribe error: ${e.ReasonCodes[f]}`),c.code=f;let h=r.messageIdToTopic[o];h&&h.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}),QBe=sn(e=>{Zt(),en(),Jt(),Object.defineProperty(e,"__esModule",{value:!0});var t=lS(),n=AP(),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}),XBe=sn(e=>{var h,m,g,v,y,b,_,E,w,S,C,T,x,O,N,I,M,F,k,B,A,P,z,L,V,j,pj,J,te,ae,K,W0e,oe,ge,fe,Yh,Kh,hj,hA,mA,po,mj,OC,Ce;Zt(),en(),Jt(),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 _i=="object"&&_i?_i:{},i=(ye,he,_e,Oe)=>{typeof r.emitWarning=="function"?r.emitWarning(ye,he,_e,Oe):console.error(`[${_e}] ${he}: ${ye}`)},o=globalThis.AbortController,a=globalThis.AbortSignal;if(typeof o>"u"){a=class{constructor(){ai(this,"onabort");ai(this,"_onabort",[]);ai(this,"reason");ai(this,"aborted",!1)}addEventListener(_e,Oe){this._onabort.push(Oe)}},o=class{constructor(){ai(this,"signal",new a);he()}abort(_e){var Oe,De;if(!this.signal.aborted){this.signal.reason=_e,this.signal.aborted=!0;for(let Y of this.signal._onabort)Y(_e);(De=(Oe=this.signal).onabort)==null||De.call(Oe,_e)}}};let ye=((h=r.env)==null?void 0:h.LRU_CACHE_IGNORE_AC_WARNING)!=="1",he=()=>{ye&&(ye=!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",he))}}var s=ye=>!n.has(ye),l=ye=>ye&&ye===Math.floor(ye)&&ye>0&&isFinite(ye),c=ye=>l(ye)?ye<=Math.pow(2,8)?Uint8Array:ye<=Math.pow(2,16)?Uint16Array:ye<=Math.pow(2,32)?Uint32Array:ye<=Number.MAX_SAFE_INTEGER?u:null:null,u=class extends Array{constructor(ye){super(ye),this.fill(0)}},d=(m=class{constructor(he,_e){ai(this,"heap");ai(this,"length");if(!Fe(m,g))throw new TypeError("instantiate Stack using Stack.create(n)");this.heap=new _e(he),this.length=0}static create(he){let _e=c(he);if(!_e)return[];yn(m,g,!0);let Oe=new m(he,_e);return yn(m,g,!1),Oe}push(he){this.heap[this.length++]=he}pop(){return this.heap[--this.length]}},g=new WeakMap,zn(m,g,!1),m),f=(Ce=class{constructor(he){zn(this,j);zn(this,v);zn(this,y);zn(this,b);zn(this,_);zn(this,E);ai(this,"ttl");ai(this,"ttlResolution");ai(this,"ttlAutopurge");ai(this,"updateAgeOnGet");ai(this,"updateAgeOnHas");ai(this,"allowStale");ai(this,"noDisposeOnSet");ai(this,"noUpdateTTL");ai(this,"maxEntrySize");ai(this,"sizeCalculation");ai(this,"noDeleteOnFetchRejection");ai(this,"noDeleteOnStaleGet");ai(this,"allowStaleOnFetchAbort");ai(this,"allowStaleOnFetchRejection");ai(this,"ignoreFetchAbort");zn(this,w);zn(this,S);zn(this,C);zn(this,T);zn(this,x);zn(this,O);zn(this,N);zn(this,I);zn(this,M);zn(this,F);zn(this,k);zn(this,B);zn(this,A);zn(this,P);zn(this,z);zn(this,L);zn(this,V);zn(this,J,()=>{});zn(this,te,()=>{});zn(this,ae,()=>{});zn(this,K,()=>!1);zn(this,oe,he=>{});zn(this,ge,(he,_e,Oe)=>{});zn(this,fe,(he,_e,Oe,De)=>{if(Oe||De)throw new TypeError("cannot set size without setting maxSize or maxEntrySize on cache");return 0});let{max:_e=0,ttl:Oe,ttlResolution:De=1,ttlAutopurge:Y,updateAgeOnGet:D,updateAgeOnHas:G,allowStale:ie,dispose:me,disposeAfter:se,noDisposeOnSet:Be,noUpdateTTL:Ve,maxSize:re=0,maxEntrySize:Me=0,sizeCalculation:je,fetchMethod:ke,noDeleteOnFetchRejection:Ge,noDeleteOnStaleGet:Ue,allowStaleOnFetchRejection:qe,allowStaleOnFetchAbort:At,ignoreFetchAbort:at}=he;if(_e!==0&&!l(_e))throw new TypeError("max option must be a nonnegative integer");let pt=_e?c(_e):Array;if(!pt)throw new Error("invalid max value: "+_e);if(yn(this,v,_e),yn(this,y,re),this.maxEntrySize=Me||Fe(this,y),this.sizeCalculation=je,this.sizeCalculation){if(!Fe(this,y)&&!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(ke!==void 0&&typeof ke!="function")throw new TypeError("fetchMethod must be a function if specified");if(yn(this,E,ke),yn(this,L,!!ke),yn(this,C,new Map),yn(this,T,new Array(_e).fill(void 0)),yn(this,x,new Array(_e).fill(void 0)),yn(this,O,new pt(_e)),yn(this,N,new pt(_e)),yn(this,I,0),yn(this,M,0),yn(this,F,d.create(_e)),yn(this,w,0),yn(this,S,0),typeof me=="function"&&yn(this,b,me),typeof se=="function"?(yn(this,_,se),yn(this,k,[])):(yn(this,_,void 0),yn(this,k,void 0)),yn(this,z,!!Fe(this,b)),yn(this,V,!!Fe(this,_)),this.noDisposeOnSet=!!Be,this.noUpdateTTL=!!Ve,this.noDeleteOnFetchRejection=!!Ge,this.allowStaleOnFetchRejection=!!qe,this.allowStaleOnFetchAbort=!!At,this.ignoreFetchAbort=!!at,this.maxEntrySize!==0){if(Fe(this,y)!==0&&!l(Fe(this,y)))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");Dn(this,j,W0e).call(this)}if(this.allowStale=!!ie,this.noDeleteOnStaleGet=!!Ue,this.updateAgeOnGet=!!D,this.updateAgeOnHas=!!G,this.ttlResolution=l(De)||De===0?De:1,this.ttlAutopurge=!!Y,this.ttl=Oe||0,this.ttl){if(!l(this.ttl))throw new TypeError("ttl must be a positive integer if specified");Dn(this,j,pj).call(this)}if(Fe(this,v)===0&&this.ttl===0&&Fe(this,y)===0)throw new TypeError("At least one of max, maxSize, or ttl is required");if(!this.ttlAutopurge&&!Fe(this,v)&&!Fe(this,y)){let Ct="LRU_CACHE_UNBOUNDED";s(Ct)&&(n.add(Ct),i("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.","UnboundedCacheWarning",Ct,Ce))}}static unsafeExposeInternals(he){return{starts:Fe(he,A),ttls:Fe(he,P),sizes:Fe(he,B),keyMap:Fe(he,C),keyList:Fe(he,T),valList:Fe(he,x),next:Fe(he,O),prev:Fe(he,N),get head(){return Fe(he,I)},get tail(){return Fe(he,M)},free:Fe(he,F),isBackgroundFetch:_e=>{var Oe;return Dn(Oe=he,j,po).call(Oe,_e)},backgroundFetch:(_e,Oe,De,Y)=>{var D;return Dn(D=he,j,mA).call(D,_e,Oe,De,Y)},moveToTail:_e=>{var Oe;return Dn(Oe=he,j,OC).call(Oe,_e)},indexes:_e=>{var Oe;return Dn(Oe=he,j,Yh).call(Oe,_e)},rindexes:_e=>{var Oe;return Dn(Oe=he,j,Kh).call(Oe,_e)},isStale:_e=>{var Oe;return Fe(Oe=he,K).call(Oe,_e)}}}get max(){return Fe(this,v)}get maxSize(){return Fe(this,y)}get calculatedSize(){return Fe(this,S)}get size(){return Fe(this,w)}get fetchMethod(){return Fe(this,E)}get dispose(){return Fe(this,b)}get disposeAfter(){return Fe(this,_)}getRemainingTTL(he){return Fe(this,C).has(he)?1/0:0}*entries(){for(let he of Dn(this,j,Yh).call(this))Fe(this,x)[he]!==void 0&&Fe(this,T)[he]!==void 0&&!Dn(this,j,po).call(this,Fe(this,x)[he])&&(yield[Fe(this,T)[he],Fe(this,x)[he]])}*rentries(){for(let he of Dn(this,j,Kh).call(this))Fe(this,x)[he]!==void 0&&Fe(this,T)[he]!==void 0&&!Dn(this,j,po).call(this,Fe(this,x)[he])&&(yield[Fe(this,T)[he],Fe(this,x)[he]])}*keys(){for(let he of Dn(this,j,Yh).call(this)){let _e=Fe(this,T)[he];_e!==void 0&&!Dn(this,j,po).call(this,Fe(this,x)[he])&&(yield _e)}}*rkeys(){for(let he of Dn(this,j,Kh).call(this)){let _e=Fe(this,T)[he];_e!==void 0&&!Dn(this,j,po).call(this,Fe(this,x)[he])&&(yield _e)}}*values(){for(let he of Dn(this,j,Yh).call(this))Fe(this,x)[he]!==void 0&&!Dn(this,j,po).call(this,Fe(this,x)[he])&&(yield Fe(this,x)[he])}*rvalues(){for(let he of Dn(this,j,Kh).call(this))Fe(this,x)[he]!==void 0&&!Dn(this,j,po).call(this,Fe(this,x)[he])&&(yield Fe(this,x)[he])}[Symbol.iterator](){return this.entries()}find(he,_e={}){for(let Oe of Dn(this,j,Yh).call(this)){let De=Fe(this,x)[Oe],Y=Dn(this,j,po).call(this,De)?De.__staleWhileFetching:De;if(Y!==void 0&&he(Y,Fe(this,T)[Oe],this))return this.get(Fe(this,T)[Oe],_e)}}forEach(he,_e=this){for(let Oe of Dn(this,j,Yh).call(this)){let De=Fe(this,x)[Oe],Y=Dn(this,j,po).call(this,De)?De.__staleWhileFetching:De;Y!==void 0&&he.call(_e,Y,Fe(this,T)[Oe],this)}}rforEach(he,_e=this){for(let Oe of Dn(this,j,Kh).call(this)){let De=Fe(this,x)[Oe],Y=Dn(this,j,po).call(this,De)?De.__staleWhileFetching:De;Y!==void 0&&he.call(_e,Y,Fe(this,T)[Oe],this)}}purgeStale(){let he=!1;for(let _e of Dn(this,j,Kh).call(this,{allowStale:!0}))Fe(this,K).call(this,_e)&&(this.delete(Fe(this,T)[_e]),he=!0);return he}dump(){let he=[];for(let _e of Dn(this,j,Yh).call(this,{allowStale:!0})){let Oe=Fe(this,T)[_e],De=Fe(this,x)[_e],Y=Dn(this,j,po).call(this,De)?De.__staleWhileFetching:De;if(Y===void 0||Oe===void 0)continue;let D={value:Y};if(Fe(this,P)&&Fe(this,A)){D.ttl=Fe(this,P)[_e];let G=t.now()-Fe(this,A)[_e];D.start=Math.floor(Date.now()-G)}Fe(this,B)&&(D.size=Fe(this,B)[_e]),he.unshift([Oe,D])}return he}load(he){this.clear();for(let[_e,Oe]of he){if(Oe.start){let De=Date.now()-Oe.start;Oe.start=t.now()-De}this.set(_e,Oe.value,Oe)}}set(he,_e,Oe={}){var Ve,re,Me,je,ke;if(_e===void 0)return this.delete(he),this;let{ttl:De=this.ttl,start:Y,noDisposeOnSet:D=this.noDisposeOnSet,sizeCalculation:G=this.sizeCalculation,status:ie}=Oe,{noUpdateTTL:me=this.noUpdateTTL}=Oe,se=Fe(this,fe).call(this,he,_e,Oe.size||0,G);if(this.maxEntrySize&&se>this.maxEntrySize)return ie&&(ie.set="miss",ie.maxEntrySizeExceeded=!0),this.delete(he),this;let Be=Fe(this,w)===0?void 0:Fe(this,C).get(he);if(Be===void 0)Be=Fe(this,w)===0?Fe(this,M):Fe(this,F).length!==0?Fe(this,F).pop():Fe(this,w)===Fe(this,v)?Dn(this,j,hA).call(this,!1):Fe(this,w),Fe(this,T)[Be]=he,Fe(this,x)[Be]=_e,Fe(this,C).set(he,Be),Fe(this,O)[Fe(this,M)]=Be,Fe(this,N)[Be]=Fe(this,M),yn(this,M,Be),qg(this,w)._++,Fe(this,ge).call(this,Be,se,ie),ie&&(ie.set="add"),me=!1;else{Dn(this,j,OC).call(this,Be);let Ge=Fe(this,x)[Be];if(_e!==Ge){if(Fe(this,L)&&Dn(this,j,po).call(this,Ge)){Ge.__abortController.abort(new Error("replaced"));let{__staleWhileFetching:Ue}=Ge;Ue!==void 0&&!D&&(Fe(this,z)&&((Ve=Fe(this,b))==null||Ve.call(this,Ue,he,"set")),Fe(this,V)&&((re=Fe(this,k))==null||re.push([Ue,he,"set"])))}else D||(Fe(this,z)&&((Me=Fe(this,b))==null||Me.call(this,Ge,he,"set")),Fe(this,V)&&((je=Fe(this,k))==null||je.push([Ge,he,"set"])));if(Fe(this,oe).call(this,Be),Fe(this,ge).call(this,Be,se,ie),Fe(this,x)[Be]=_e,ie){ie.set="replace";let Ue=Ge&&Dn(this,j,po).call(this,Ge)?Ge.__staleWhileFetching:Ge;Ue!==void 0&&(ie.oldValue=Ue)}}else ie&&(ie.set="update")}if(De!==0&&!Fe(this,P)&&Dn(this,j,pj).call(this),Fe(this,P)&&(me||Fe(this,ae).call(this,Be,De,Y),ie&&Fe(this,te).call(this,ie,Be)),!D&&Fe(this,V)&&Fe(this,k)){let Ge=Fe(this,k),Ue;for(;Ue=Ge==null?void 0:Ge.shift();)(ke=Fe(this,_))==null||ke.call(this,...Ue)}return this}pop(){var he;try{for(;Fe(this,w);){let _e=Fe(this,x)[Fe(this,I)];if(Dn(this,j,hA).call(this,!0),Dn(this,j,po).call(this,_e)){if(_e.__staleWhileFetching)return _e.__staleWhileFetching}else if(_e!==void 0)return _e}}finally{if(Fe(this,V)&&Fe(this,k)){let _e=Fe(this,k),Oe;for(;Oe=_e==null?void 0:_e.shift();)(he=Fe(this,_))==null||he.call(this,...Oe)}}}has(he,_e={}){let{updateAgeOnHas:Oe=this.updateAgeOnHas,status:De}=_e,Y=Fe(this,C).get(he);if(Y!==void 0){let D=Fe(this,x)[Y];if(Dn(this,j,po).call(this,D)&&D.__staleWhileFetching===void 0)return!1;if(Fe(this,K).call(this,Y))De&&(De.has="stale",Fe(this,te).call(this,De,Y));else return Oe&&Fe(this,J).call(this,Y),De&&(De.has="hit",Fe(this,te).call(this,De,Y)),!0}else De&&(De.has="miss");return!1}peek(he,_e={}){let{allowStale:Oe=this.allowStale}=_e,De=Fe(this,C).get(he);if(De!==void 0&&(Oe||!Fe(this,K).call(this,De))){let Y=Fe(this,x)[De];return Dn(this,j,po).call(this,Y)?Y.__staleWhileFetching:Y}}async fetch(he,_e={}){let{allowStale:Oe=this.allowStale,updateAgeOnGet:De=this.updateAgeOnGet,noDeleteOnStaleGet:Y=this.noDeleteOnStaleGet,ttl:D=this.ttl,noDisposeOnSet:G=this.noDisposeOnSet,size:ie=0,sizeCalculation:me=this.sizeCalculation,noUpdateTTL:se=this.noUpdateTTL,noDeleteOnFetchRejection:Be=this.noDeleteOnFetchRejection,allowStaleOnFetchRejection:Ve=this.allowStaleOnFetchRejection,ignoreFetchAbort:re=this.ignoreFetchAbort,allowStaleOnFetchAbort:Me=this.allowStaleOnFetchAbort,context:je,forceRefresh:ke=!1,status:Ge,signal:Ue}=_e;if(!Fe(this,L))return Ge&&(Ge.fetch="get"),this.get(he,{allowStale:Oe,updateAgeOnGet:De,noDeleteOnStaleGet:Y,status:Ge});let qe={allowStale:Oe,updateAgeOnGet:De,noDeleteOnStaleGet:Y,ttl:D,noDisposeOnSet:G,size:ie,sizeCalculation:me,noUpdateTTL:se,noDeleteOnFetchRejection:Be,allowStaleOnFetchRejection:Ve,allowStaleOnFetchAbort:Me,ignoreFetchAbort:re,status:Ge,signal:Ue},At=Fe(this,C).get(he);if(At===void 0){Ge&&(Ge.fetch="miss");let at=Dn(this,j,mA).call(this,he,At,qe,je);return at.__returned=at}else{let at=Fe(this,x)[At];if(Dn(this,j,po).call(this,at)){let Vt=Oe&&at.__staleWhileFetching!==void 0;return Ge&&(Ge.fetch="inflight",Vt&&(Ge.returnedStale=!0)),Vt?at.__staleWhileFetching:at.__returned=at}let pt=Fe(this,K).call(this,At);if(!ke&&!pt)return Ge&&(Ge.fetch="hit"),Dn(this,j,OC).call(this,At),De&&Fe(this,J).call(this,At),Ge&&Fe(this,te).call(this,Ge,At),at;let Ct=Dn(this,j,mA).call(this,he,At,qe,je),bt=Ct.__staleWhileFetching!==void 0&&Oe;return Ge&&(Ge.fetch=pt?"stale":"refresh",bt&&pt&&(Ge.returnedStale=!0)),bt?Ct.__staleWhileFetching:Ct.__returned=Ct}}get(he,_e={}){let{allowStale:Oe=this.allowStale,updateAgeOnGet:De=this.updateAgeOnGet,noDeleteOnStaleGet:Y=this.noDeleteOnStaleGet,status:D}=_e,G=Fe(this,C).get(he);if(G!==void 0){let ie=Fe(this,x)[G],me=Dn(this,j,po).call(this,ie);return D&&Fe(this,te).call(this,D,G),Fe(this,K).call(this,G)?(D&&(D.get="stale"),me?(D&&Oe&&ie.__staleWhileFetching!==void 0&&(D.returnedStale=!0),Oe?ie.__staleWhileFetching:void 0):(Y||this.delete(he),D&&Oe&&(D.returnedStale=!0),Oe?ie:void 0)):(D&&(D.get="hit"),me?ie.__staleWhileFetching:(Dn(this,j,OC).call(this,G),De&&Fe(this,J).call(this,G),ie))}else D&&(D.get="miss")}delete(he){var Oe,De,Y,D;let _e=!1;if(Fe(this,w)!==0){let G=Fe(this,C).get(he);if(G!==void 0)if(_e=!0,Fe(this,w)===1)this.clear();else{Fe(this,oe).call(this,G);let ie=Fe(this,x)[G];Dn(this,j,po).call(this,ie)?ie.__abortController.abort(new Error("deleted")):(Fe(this,z)||Fe(this,V))&&(Fe(this,z)&&((Oe=Fe(this,b))==null||Oe.call(this,ie,he,"delete")),Fe(this,V)&&((De=Fe(this,k))==null||De.push([ie,he,"delete"]))),Fe(this,C).delete(he),Fe(this,T)[G]=void 0,Fe(this,x)[G]=void 0,G===Fe(this,M)?yn(this,M,Fe(this,N)[G]):G===Fe(this,I)?yn(this,I,Fe(this,O)[G]):(Fe(this,O)[Fe(this,N)[G]]=Fe(this,O)[G],Fe(this,N)[Fe(this,O)[G]]=Fe(this,N)[G]),qg(this,w)._--,Fe(this,F).push(G)}}if(Fe(this,V)&&((Y=Fe(this,k))!=null&&Y.length)){let G=Fe(this,k),ie;for(;ie=G==null?void 0:G.shift();)(D=Fe(this,_))==null||D.call(this,...ie)}return _e}clear(){var he,_e,Oe;for(let De of Dn(this,j,Kh).call(this,{allowStale:!0})){let Y=Fe(this,x)[De];if(Dn(this,j,po).call(this,Y))Y.__abortController.abort(new Error("deleted"));else{let D=Fe(this,T)[De];Fe(this,z)&&((he=Fe(this,b))==null||he.call(this,Y,D,"delete")),Fe(this,V)&&((_e=Fe(this,k))==null||_e.push([Y,D,"delete"]))}}if(Fe(this,C).clear(),Fe(this,x).fill(void 0),Fe(this,T).fill(void 0),Fe(this,P)&&Fe(this,A)&&(Fe(this,P).fill(0),Fe(this,A).fill(0)),Fe(this,B)&&Fe(this,B).fill(0),yn(this,I,0),yn(this,M,0),Fe(this,F).length=0,yn(this,S,0),yn(this,w,0),Fe(this,V)&&Fe(this,k)){let De=Fe(this,k),Y;for(;Y=De==null?void 0:De.shift();)(Oe=Fe(this,_))==null||Oe.call(this,...Y)}}},v=new WeakMap,y=new WeakMap,b=new WeakMap,_=new WeakMap,E=new WeakMap,w=new WeakMap,S=new WeakMap,C=new WeakMap,T=new WeakMap,x=new WeakMap,O=new WeakMap,N=new WeakMap,I=new WeakMap,M=new WeakMap,F=new WeakMap,k=new WeakMap,B=new WeakMap,A=new WeakMap,P=new WeakMap,z=new WeakMap,L=new WeakMap,V=new WeakMap,j=new WeakSet,pj=function(){let he=new u(Fe(this,v)),_e=new u(Fe(this,v));yn(this,P,he),yn(this,A,_e),yn(this,ae,(Y,D,G=t.now())=>{if(_e[Y]=D!==0?G:0,he[Y]=D,D!==0&&this.ttlAutopurge){let ie=setTimeout(()=>{Fe(this,K).call(this,Y)&&this.delete(Fe(this,T)[Y])},D+1);ie.unref&&ie.unref()}}),yn(this,J,Y=>{_e[Y]=he[Y]!==0?t.now():0}),yn(this,te,(Y,D)=>{if(he[D]){let G=he[D],ie=_e[D];Y.ttl=G,Y.start=ie,Y.now=Oe||De();let me=Y.now-ie;Y.remainingTTL=G-me}});let Oe=0,De=()=>{let Y=t.now();if(this.ttlResolution>0){Oe=Y;let D=setTimeout(()=>Oe=0,this.ttlResolution);D.unref&&D.unref()}return Y};this.getRemainingTTL=Y=>{let D=Fe(this,C).get(Y);if(D===void 0)return 0;let G=he[D],ie=_e[D];if(G===0||ie===0)return 1/0;let me=(Oe||De())-ie;return G-me},yn(this,K,Y=>he[Y]!==0&&_e[Y]!==0&&(Oe||De())-_e[Y]>he[Y])},J=new WeakMap,te=new WeakMap,ae=new WeakMap,K=new WeakMap,W0e=function(){let he=new u(Fe(this,v));yn(this,S,0),yn(this,B,he),yn(this,oe,_e=>{yn(this,S,Fe(this,S)-he[_e]),he[_e]=0}),yn(this,fe,(_e,Oe,De,Y)=>{if(Dn(this,j,po).call(this,Oe))return 0;if(!l(De))if(Y){if(typeof Y!="function")throw new TypeError("sizeCalculation must be a function");if(De=Y(Oe,_e),!l(De))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 De}),yn(this,ge,(_e,Oe,De)=>{if(he[_e]=Oe,Fe(this,y)){let Y=Fe(this,y)-he[_e];for(;Fe(this,S)>Y;)Dn(this,j,hA).call(this,!0)}yn(this,S,Fe(this,S)+he[_e]),De&&(De.entrySize=Oe,De.totalCalculatedSize=Fe(this,S))})},oe=new WeakMap,ge=new WeakMap,fe=new WeakMap,Yh=function*({allowStale:he=this.allowStale}={}){if(Fe(this,w))for(let _e=Fe(this,M);!(!Dn(this,j,hj).call(this,_e)||((he||!Fe(this,K).call(this,_e))&&(yield _e),_e===Fe(this,I)));)_e=Fe(this,N)[_e]},Kh=function*({allowStale:he=this.allowStale}={}){if(Fe(this,w))for(let _e=Fe(this,I);!(!Dn(this,j,hj).call(this,_e)||((he||!Fe(this,K).call(this,_e))&&(yield _e),_e===Fe(this,M)));)_e=Fe(this,O)[_e]},hj=function(he){return he!==void 0&&Fe(this,C).get(Fe(this,T)[he])===he},hA=function(he){var Y,D;let _e=Fe(this,I),Oe=Fe(this,T)[_e],De=Fe(this,x)[_e];return Fe(this,L)&&Dn(this,j,po).call(this,De)?De.__abortController.abort(new Error("evicted")):(Fe(this,z)||Fe(this,V))&&(Fe(this,z)&&((Y=Fe(this,b))==null||Y.call(this,De,Oe,"evict")),Fe(this,V)&&((D=Fe(this,k))==null||D.push([De,Oe,"evict"]))),Fe(this,oe).call(this,_e),he&&(Fe(this,T)[_e]=void 0,Fe(this,x)[_e]=void 0,Fe(this,F).push(_e)),Fe(this,w)===1?(yn(this,I,yn(this,M,0)),Fe(this,F).length=0):yn(this,I,Fe(this,O)[_e]),Fe(this,C).delete(Oe),qg(this,w)._--,_e},mA=function(he,_e,Oe,De){let Y=_e===void 0?void 0:Fe(this,x)[_e];if(Dn(this,j,po).call(this,Y))return Y;let D=new o,{signal:G}=Oe;G==null||G.addEventListener("abort",()=>D.abort(G.reason),{signal:D.signal});let ie={signal:D.signal,options:Oe,context:De},me=(je,ke=!1)=>{let{aborted:Ge}=D.signal,Ue=Oe.ignoreFetchAbort&&je!==void 0;if(Oe.status&&(Ge&&!ke?(Oe.status.fetchAborted=!0,Oe.status.fetchError=D.signal.reason,Ue&&(Oe.status.fetchAbortIgnored=!0)):Oe.status.fetchResolved=!0),Ge&&!Ue&&!ke)return Be(D.signal.reason);let qe=re;return Fe(this,x)[_e]===re&&(je===void 0?qe.__staleWhileFetching?Fe(this,x)[_e]=qe.__staleWhileFetching:this.delete(he):(Oe.status&&(Oe.status.fetchUpdated=!0),this.set(he,je,ie.options))),je},se=je=>(Oe.status&&(Oe.status.fetchRejected=!0,Oe.status.fetchError=je),Be(je)),Be=je=>{let{aborted:ke}=D.signal,Ge=ke&&Oe.allowStaleOnFetchAbort,Ue=Ge||Oe.allowStaleOnFetchRejection,qe=Ue||Oe.noDeleteOnFetchRejection,At=re;if(Fe(this,x)[_e]===re&&(!qe||At.__staleWhileFetching===void 0?this.delete(he):Ge||(Fe(this,x)[_e]=At.__staleWhileFetching)),Ue)return Oe.status&&At.__staleWhileFetching!==void 0&&(Oe.status.returnedStale=!0),At.__staleWhileFetching;if(At.__returned===At)throw je},Ve=(je,ke)=>{var Ue;let Ge=(Ue=Fe(this,E))==null?void 0:Ue.call(this,he,Y,ie);Ge&&Ge instanceof Promise&&Ge.then(qe=>je(qe===void 0?void 0:qe),ke),D.signal.addEventListener("abort",()=>{(!Oe.ignoreFetchAbort||Oe.allowStaleOnFetchAbort)&&(je(void 0),Oe.allowStaleOnFetchAbort&&(je=qe=>me(qe,!0)))})};Oe.status&&(Oe.status.fetchDispatched=!0);let re=new Promise(Ve).then(me,se),Me=Object.assign(re,{__abortController:D,__staleWhileFetching:Y,__returned:void 0});return _e===void 0?(this.set(he,Me,{...ie.options,status:void 0}),_e=Fe(this,C).get(he)):Fe(this,x)[_e]=Me,Me},po=function(he){if(!Fe(this,L))return!1;let _e=he;return!!_e&&_e instanceof Promise&&_e.hasOwnProperty("__staleWhileFetching")&&_e.__abortController instanceof o},mj=function(he,_e){Fe(this,N)[_e]=he,Fe(this,O)[he]=_e},OC=function(he){he!==Fe(this,M)&&(he===Fe(this,I)?yn(this,I,Fe(this,O)[he]):Dn(this,j,mj).call(this,Fe(this,N)[he],Fe(this,O)[he]),Dn(this,j,mj).call(this,Fe(this,M),he),yn(this,M,he))},Ce);e.LRUCache=f}),bh=sn(e=>{Zt(),en(),Jt(),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}),ZBe=sn(e=>{Zt(),en(),Jt(),Object.defineProperty(e,"t",{value:!0}),e.default=void 0;var t=bh(),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}),JBe=sn(e=>{Zt(),en(),Jt(),Object.defineProperty(e,"t",{value:!0}),e.default=void 0;var t=bh(),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}),eje=sn(e=>{Zt(),en(),Jt(),Object.defineProperty(e,"t",{value:!0}),e.default=void 0;var t=bh(),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}),JG=sn(e=>{Zt(),en(),Jt(),Object.defineProperty(e,"t",{value:!0}),e.default=void 0;var t=bh(),n=class extends t.Container{},r=n;e.default=r}),yh=sn(e=>{Zt(),en(),Jt(),Object.defineProperty(e,"t",{value:!0}),e.throwIteratorAccessError=t;function t(){throw new RangeError("Iterator access denied!")}}),q0e=sn(e=>{Zt(),en(),Jt(),Object.defineProperty(e,"t",{value:!0}),e.RandomIterator=void 0;var t=bh(),n=yh(),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}),tje=sn(e=>{Zt(),en(),Jt(),Object.defineProperty(e,"t",{value:!0}),e.default=void 0;var t=r(JG()),n=q0e();function r(s){return s&&s.t?s:{default:s}}var i=class Y0e extends n.RandomIterator{constructor(l,c,u){super(l,u),this.container=c}copy(){return new Y0e(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}),nje=sn(e=>{Zt(),en(),Jt(),Object.defineProperty(e,"t",{value:!0}),e.default=void 0;var t=i(JG()),n=bh(),r=yh();function i(l){return l&&l.t?l:{default:l}}var o=class K0e extends n.ContainerIterator{constructor(c,u,d,f){super(f),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 K0e(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 h=1;h<l;++h)d=d.B;let f=d.B;for(this.i+=u;u--;)d.B={l:c,L:d},d.B.L=d,d=d.B;d.B=f,f.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}),rje=sn(e=>{Zt(),en(),Jt(),Object.defineProperty(e,"t",{value:!0}),e.default=void 0;var t=r(JG()),n=q0e();function r(s){return s&&s.t?s:{default:s}}var i=class Q0e extends n.RandomIterator{constructor(l,c,u){super(l,u),this.container=c}copy(){return new Q0e(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 f=0;f<this.P;++f)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(f){d.pushBack(f)})}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}),ije=sn(e=>{Zt(),en(),Jt(),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}),X0e=sn(e=>{Zt(),en(),Jt(),Object.defineProperty(e,"t",{value:!0}),e.default=void 0;var t=ije(),n=bh(),r=yh(),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 f=d.tt;for(;f!==this.h;)f.rt+=1,f=f.tt;let h=this.he(d);if(h){let{parentNode:m,grandParent:g,curNode:v}=h;m.ie(),g.ie(),v.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 f=this.h.W,h=this.v(f.u,a);if(h===0){f.l=s;return}else if(h<0)f.W=new this.re(a,s),f.W.tt=f,c=f.W,this.h.W=c;else{if(l!==void 0){let m=l.o;if(m!==this.h){let g=this.v(m.u,a);if(g===0){m.l=s;return}else if(g>0){let v=m.L(),y=this.v(v.u,a);if(y===0){v.l=s;return}else y<0&&(c=new this.re(a,s),v.W===void 0?(v.W=c,c.tt=v):(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}),Z0e=sn(e=>{Zt(),en(),Jt(),Object.defineProperty(e,"t",{value:!0}),e.default=void 0;var t=bh(),n=yh(),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}),oje=sn(e=>{Zt(),en(),Jt(),Object.defineProperty(e,"t",{value:!0}),e.default=void 0;var t=i(X0e()),n=i(Z0e()),r=yh();function i(l){return l&&l.t?l:{default:l}}var o=class J0e extends n.default{constructor(c,u,d,f){super(c,u,f),this.container=d}get pointer(){return this.o===this.h&&(0,r.throwIteratorAccessError)(),this.o.u}copy(){return new J0e(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(f){d.insert(f)})}*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}),aje=sn(e=>{Zt(),en(),Jt(),Object.defineProperty(e,"t",{value:!0}),e.default=void 0;var t=i(X0e()),n=i(Z0e()),r=yh();function i(l){return l&&l.t?l:{default:l}}var o=class ebe extends n.default{constructor(c,u,d,f){super(c,u,f),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,f){if(d!=="1")throw new TypeError("props must be 1");return c.o.l=f,!0}})}copy(){return new ebe(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(f){d.setElement(f[0],f[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}),tbe=sn(e=>{Zt(),en(),Jt(),Object.defineProperty(e,"t",{value:!0}),e.default=t;function t(n){let r=typeof n;return r==="object"&&n!==null||r==="function"}}),nbe=sn(e=>{Zt(),en(),Jt(),Object.defineProperty(e,"t",{value:!0}),e.HashContainerIterator=e.HashContainer=void 0;var t=bh(),n=i(tbe()),r=yh();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}),sje=sn(e=>{Zt(),en(),Jt(),Object.defineProperty(e,"t",{value:!0}),e.default=void 0;var t=nbe(),n=yh(),r=class rbe 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 rbe(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}),lje=sn(e=>{Zt(),en(),Jt(),Object.defineProperty(e,"t",{value:!0}),e.default=void 0;var t=nbe(),n=i(tbe()),r=yh();function i(l){return l&&l.t?l:{default:l}}var o=class ibe extends t.HashContainerIterator{constructor(c,u,d,f){super(c,u,f),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,f){if(d!=="1")throw new TypeError("props must be 1");return c.o.l=f,!0}})}copy(){return new ibe(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}),cje=sn(e=>{Zt(),en(),Jt(),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(ZBe()),n=d(JBe()),r=d(eje()),i=d(tje()),o=d(nje()),a=d(rje()),s=d(oje()),l=d(aje()),c=d(sje()),u=d(lje());function d(f){return f&&f.t?f:{default:f}}}),uje=sn((e,t)=>{Zt(),en(),Jt();var n=cje().OrderedSet,r=ih()("number-allocator:trace"),i=ih()("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 f=c.pointer.low;c.pointer.high+1===s?s+1===u?(this.ss.eraseElementByIterator(c),this.ss.updateKeyByIterator(c,new o(f,d))):this.ss.updateKeyByIterator(c,new o(f,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}),obe=sn((e,t)=>{Zt(),en(),Jt();var n=uje();t.exports.NumberAllocator=n}),dje=sn(e=>{Zt(),en(),Jt(),Object.defineProperty(e,"__esModule",{value:!0});var t=XBe(),n=obe(),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}),fje=sn(e=>{Zt(),en(),Jt();var t=e&&e.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(e,"__esModule",{value:!0});var n=AP(),r=t(dje()),i=lS(),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}),pje=sn(e=>{Zt(),en(),Jt(),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}),hje=sn(e=>{Zt(),en(),Jt();var t=e&&e.__importDefault||function(l){return l&&l.__esModule?l:{default:l}};Object.defineProperty(e,"__esModule",{value:!0});var n=t(YBe()),r=t(QBe()),i=t(fje()),o=t(AP()),a=t(pje()),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}),mje=sn(e=>{Zt(),en(),Jt();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((sS(),Hi(m0))),r=lS(),i=class{};e.TypedEventEmitter=i,(0,r.applyMixin)(i,n.default)}),NP=sn(e=>{Zt(),en(),Jt(),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&&_i!=null&&_i.versions?!Object.prototype.hasOwnProperty.call(_i.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}),gje=sn((e,t)=>{Zt(),en(),Jt(),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(h){return function(m){var g=h(m);return m.add(g),g}},i=function(h){return function(m,g){return h.set(m,g),g}},o=Number.MAX_SAFE_INTEGER===void 0?9007199254740991:Number.MAX_SAFE_INTEGER,a=536870912,s=a*2,l=function(h,m){return function(g){var v=m.get(g),y=v===void 0?g.size:v<s?v+1:0;if(!g.has(y))return h(g,y);if(g.size<a){for(;g.has(y);)y=Math.floor(Math.random()*s);return h(g,y)}if(g.size>o)throw new Error("Congratulations, you created a collection of unique numbers which uses all available integers!");for(;g.has(y);)y=Math.floor(Math.random()*o);return h(g,y)}},c=new WeakMap,u=i(c),d=l(u,c),f=r(d);n.addUniqueNumber=f,n.generateUniqueNumber=d})}),vje=sn((e,t)=>{Zt(),en(),Jt(),function(n,r){typeof e=="object"&&typeof t<"u"?r(e,gje()):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(v){var y=v.data;if(i(y)){var b=y.params,_=b.timerId,E=b.timerType;if(E==="interval"){var w=l.get(_);if(typeof w=="number"){var S=u.get(w);if(S===void 0||S.timerId!==_||S.timerType!==E)throw new Error("The timer is in an undefined state.")}else if(typeof w<"u")w();else throw new Error("The timer is in an undefined state.")}else if(E==="timeout"){var C=c.get(_);if(typeof C=="number"){var T=u.get(C);if(T===void 0||T.timerId!==_||T.timerType!==E)throw new Error("The timer is in an undefined state.")}else if(typeof C<"u")C(),c.delete(_);else throw new Error("The timer is in an undefined state.")}}else if(o(y)){var x=y.id,O=u.get(x);if(O===void 0)throw new Error("The timer is in an undefined state.");var N=O.timerId,I=O.timerType;u.delete(x),I==="interval"?l.delete(N):c.delete(N)}else{var M=y.error.message;throw new Error(M)}});var f=function(v){var y=r.generateUniqueNumber(u);u.set(y,{timerId:v,timerType:"interval"}),l.set(v,y),d.postMessage({id:y,method:"clear",params:{timerId:v,timerType:"interval"}})},h=function(v){var y=r.generateUniqueNumber(u);u.set(y,{timerId:v,timerType:"timeout"}),c.set(v,y),d.postMessage({id:y,method:"clear",params:{timerId:v,timerType:"timeout"}})},m=function(v){var y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,b=r.generateUniqueNumber(l);return l.set(b,function(){v(),typeof l.get(b)=="function"&&d.postMessage({id:null,method:"set",params:{delay:y,now:performance.now(),timerId:b,timerType:"interval"}})}),d.postMessage({id:null,method:"set",params:{delay:y,now:performance.now(),timerId:b,timerType:"interval"}}),b},g=function(v){var y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,b=r.generateUniqueNumber(c);return c.set(b,v),d.postMessage({id:null,method:"set",params:{delay:y,now:performance.now(),timerId:b,timerType:"timeout"}}),b};return{clearInterval:f,clearTimeout:h,setInterval:m,setTimeout:g}};n.load=a})}),bje=sn((e,t)=>{Zt(),en(),Jt(),function(n,r){typeof e=="object"&&typeof t<"u"?r(e,vje()):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,f){var h=null;return function(){if(h!==null)return h;var m=new Blob([f],{type:"application/javascript; charset=utf-8"}),g=URL.createObjectURL(m);return h=d(g),setTimeout(function(){return URL.revokeObjectURL(g)}),h}},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})}),yje=sn(e=>{Zt(),en(),Jt();var t=e&&e.__createBinding||(Object.create?function(c,u,d,f){f===void 0&&(f=d);var h=Object.getOwnPropertyDescriptor(u,d);(!h||("get"in h?!u.__esModule:h.writable||h.configurable))&&(h={enumerable:!0,get:function(){return u[d]}}),Object.defineProperty(c,f,h)}:function(c,u,d,f){f===void 0&&(f=d),c[f]=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(NP()),o=bje(),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}),abe=sn(e=>{Zt(),en(),Jt();var t=e&&e.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(e,"__esModule",{value:!0});var n=t(yje()),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}),gj=sn(e=>{Zt(),en(),Jt();var t=e&&e.__createBinding||(Object.create?function(w,S,C,T){T===void 0&&(T=C);var x=Object.getOwnPropertyDescriptor(S,C);(!x||("get"in x?!S.__esModule:x.writable||x.configurable))&&(x={enumerable:!0,get:function(){return S[C]}}),Object.defineProperty(w,T,x)}:function(w,S,C,T){T===void 0&&(T=C),w[T]=S[C]}),n=e&&e.__setModuleDefault||(Object.create?function(w,S){Object.defineProperty(w,"default",{enumerable:!0,value:S})}:function(w,S){w.default=S}),r=e&&e.__importStar||function(w){if(w&&w.__esModule)return w;var S={};if(w!=null)for(var C in w)C!=="default"&&Object.prototype.hasOwnProperty.call(w,C)&&t(S,w,C);return n(S,w),S},i=e&&e.__importDefault||function(w){return w&&w.__esModule?w:{default:w}};Object.defineProperty(e,"__esModule",{value:!0});var o=i(lBe()),a=i(VBe()),s=i(z0e()),l=g0(),c=i(WBe()),u=r(qBe()),d=i(ih()),f=i(V0e()),h=i(hje()),m=lS(),g=mje(),v=i(abe()),y=r(NP()),b=globalThis.setImmediate||((...w)=>{let S=w.shift();(0,m.nextTick)(()=>{S(...w)})}),_={keepalive:60,reschedulePings:!0,protocolId:"MQTT",protocolVersion:4,reconnectPeriod:1e3,connectTimeout:30*1e3,clean:!0,resubscribe:!0,writeCache:!0,timerVariant:"auto"},E=class vj extends g.TypedEventEmitter{static defaultId(){return`mqttjs_${Math.random().toString(16).substr(2,8)}`}constructor(S,C){super(),this.options=C||{};for(let T in _)typeof this.options[T]>"u"?this.options[T]=_[T]:this.options[T]=C[T];this.log=this.options.log||(0,d.default)("mqttjs:client"),this.noop=this._noop.bind(this),this.log("MqttClient :: version:",vj.VERSION),y.isWebWorker?this.log("MqttClient :: environment","webworker"):this.log("MqttClient :: environment",y.default?"browser":"node"),this.log("MqttClient :: options.protocol",C.protocol),this.log("MqttClient :: options.protocolVersion",C.protocolVersion),this.log("MqttClient :: options.username",C.username),this.log("MqttClient :: options.keepalive",C.keepalive),this.log("MqttClient :: options.reconnectPeriod",C.reconnectPeriod),this.log("MqttClient :: options.rejectUnauthorized",C.rejectUnauthorized),this.log("MqttClient :: options.properties.topicAliasMaximum",C.properties?C.properties.topicAliasMaximum:void 0),this.options.clientId=typeof C.clientId=="string"?C.clientId:vj.defaultId(),this.log("MqttClient :: clientId",this.options.clientId),this.options.customHandleAcks=C.protocolVersion===5&&C.customHandleAcks?C.customHandleAcks:(...T)=>{T[3](null,0)},this.options.writeCache||(a.default.writeToStream.cacheNumbers=!1),this.streamBuilder=S,this.messageIdProvider=typeof this.options.messageIdProvider>"u"?new s.default:this.options.messageIdProvider,this.outgoingStore=C.outgoingStore||new f.default,this.incomingStore=C.incomingStore||new f.default,this.queueQoSZero=C.queueQoSZero===void 0?!0:C.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,C.properties&&C.properties.topicAliasMaximum>0&&(C.properties.topicAliasMaximum>65535?this.log("MqttClient :: options.properties.topicAliasMaximum is out of range"):this.topicAliasRecv=new o.default(C.properties.topicAliasMaximum)),this.on("connect",()=>{let{queue:T}=this,x=()=>{let O=T.shift();this.log("deliver :: entry %o",O);let N=null;if(!O){this._resubscribe();return}N=O.packet,this.log("deliver :: call _sendPacket for %o",N);let I=!0;N.messageId&&N.messageId!==0&&(this.messageIdProvider.register(N.messageId)||(I=!1)),I?this._sendPacket(N,M=>{O.cb&&O.cb(M),x()}):(this.log("messageId: %d has already used. The message is skipped and removed.",N.messageId),x())};this.log("connect :: sending queued packets"),x()}),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(S,C){C()}handleMessage(S,C){C()}_nextId(){return this.messageIdProvider.allocate()}getLastMessageId(){return this.messageIdProvider.getLastAllocated()}connect(){var S;let C=new l.Writable,T=a.default.parser(this.options),x=null,O=[];this.log("connect :: calling method to clear reconnect"),this._clearReconnect(),this.disconnected&&!this.reconnecting&&(this.incomingStore=this.options.incomingStore||new f.default,this.outgoingStore=this.options.outgoingStore||new f.default,this.disconnecting=!1,this.disconnected=!1),this.log("connect :: using streamBuilder provided to client to create stream"),this.stream=this.streamBuilder(this),T.on("packet",k=>{this.log("parser :: on packet push to packets array."),O.push(k)});let N=()=>{this.log("work :: getting next packet in queue");let k=O.shift();if(k)this.log("work :: packet pulled from queue"),(0,h.default)(this,k,I);else{this.log("work :: no packets in queue");let B=x;x=null,this.log("work :: done flag is %s",!!B),B&&B()}},I=()=>{if(O.length)(0,m.nextTick)(N);else{let k=x;x=null,k()}};C._write=(k,B,A)=>{x=A,this.log("writable stream :: parsing buffer"),T.parse(k),N()};let M=k=>{this.log("streamErrorHandler :: error",k.message),k.code?(this.log("streamErrorHandler :: emitting error"),this.emit("error",k)):this.noop(k)};this.log("connect :: pipe stream to writable stream"),this.stream.pipe(C),this.stream.on("error",M),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 F={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&&(F.will=Object.assign(Object.assign({},this.options.will),{payload:(S=this.options.will)===null||S===void 0?void 0:S.payload})),this.topicAliasRecv&&(F.properties||(F.properties={}),this.topicAliasRecv&&(F.properties.topicAliasMaximum=this.topicAliasRecv.max)),this._writePacket(F),T.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 k=Object.assign({cmd:"auth",reasonCode:0},this.options.authPacket);this._writePacket(k)}}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(S,C,T,x){this.log("publish :: message `%s` to topic `%s`",C,S);let{options:O}=this;typeof T=="function"&&(x=T,T=null),T=T||{},T=Object.assign(Object.assign({},{qos:0,retain:!1,dup:!1}),T);let{qos:N,retain:I,dup:M,properties:F,cbStorePut:k}=T;if(this._checkDisconnecting(x))return this;let B=()=>{let A=0;if((N===1||N===2)&&(A=this._nextId(),A===null))return this.log("No messageId left"),!1;let P={cmd:"publish",topic:S,payload:C,qos:N,retain:I,messageId:A,dup:M};switch(O.protocolVersion===5&&(P.properties=F),this.log("publish :: qos",N),N){case 1:case 2:this.outgoing[P.messageId]={volatile:!1,cb:x||this.noop},this.log("MqttClient:publish: packet cmd: %s",P.cmd),this._sendPacket(P,void 0,k);break;default:this.log("MqttClient:publish: packet cmd: %s",P.cmd),this._sendPacket(P,x,k);break}return!0};return(this._storeProcessing||this._storeProcessingQueue.length>0||!B())&&this._storeProcessingQueue.push({invoke:B,cbStorePut:T.cbStorePut,callback:x}),this}publishAsync(S,C,T){return new Promise((x,O)=>{this.publish(S,C,T,(N,I)=>{N?O(N):x(I)})})}subscribe(S,C,T){let x=this.options.protocolVersion;typeof C=="function"&&(T=C),T=T||this.noop;let O=!1,N=[];typeof S=="string"?(S=[S],N=S):Array.isArray(S)?N=S:typeof S=="object"&&(O=S.resubscribe,delete S.resubscribe,N=Object.keys(S));let I=u.validateTopics(N);if(I!==null)return b(T,new Error(`Invalid topic ${I}`)),this;if(this._checkDisconnecting(T))return this.log("subscribe: discconecting true"),this;let M={qos:0};x===5&&(M.nl=!1,M.rap=!1,M.rh=0),C=Object.assign(Object.assign({},M),C);let F=C.properties,k=[],B=(P,z)=>{if(z=z||C,!Object.prototype.hasOwnProperty.call(this._resubscribeTopics,P)||this._resubscribeTopics[P].qos<z.qos||O){let L={topic:P,qos:z.qos};x===5&&(L.nl=z.nl,L.rap=z.rap,L.rh=z.rh,L.properties=F),this.log("subscribe: pushing topic `%s` and qos `%s` to subs list",L.topic,L.qos),k.push(L)}};if(Array.isArray(S)?S.forEach(P=>{this.log("subscribe: array topic %s",P),B(P)}):Object.keys(S).forEach(P=>{this.log("subscribe: object topic %s, %o",P,S[P]),B(P,S[P])}),!k.length)return T(null,[]),this;let A=()=>{let P=this._nextId();if(P===null)return this.log("No messageId left"),!1;let z={cmd:"subscribe",subscriptions:k,messageId:P};if(F&&(z.properties=F),this.options.resubscribe){this.log("subscribe :: resubscribe true");let L=[];k.forEach(V=>{if(this.options.reconnectPeriod>0){let j={qos:V.qos};x===5&&(j.nl=V.nl||!1,j.rap=V.rap||!1,j.rh=V.rh||0,j.properties=V.properties),this._resubscribeTopics[V.topic]=j,L.push(V.topic)}}),this.messageIdToTopic[z.messageId]=L}return this.outgoing[z.messageId]={volatile:!0,cb(L,V){if(!L){let{granted:j}=V;for(let U=0;U<j.length;U+=1)k[U].qos=j[U]}T(L,k,V)}},this.log("subscribe :: call _sendPacket"),this._sendPacket(z),!0};return(this._storeProcessing||this._storeProcessingQueue.length>0||!A())&&this._storeProcessingQueue.push({invoke:A,callback:T}),this}subscribeAsync(S,C){return new Promise((T,x)=>{this.subscribe(S,C,(O,N)=>{O?x(O):T(N)})})}unsubscribe(S,C,T){typeof S=="string"&&(S=[S]),typeof C=="function"&&(T=C),T=T||this.noop;let x=u.validateTopics(S);if(x!==null)return b(T,new Error(`Invalid topic ${x}`)),this;if(this._checkDisconnecting(T))return this;let O=()=>{let N=this._nextId();if(N===null)return this.log("No messageId left"),!1;let I={cmd:"unsubscribe",messageId:N,unsubscriptions:[]};return typeof S=="string"?I.unsubscriptions=[S]:Array.isArray(S)&&(I.unsubscriptions=S),this.options.resubscribe&&I.unsubscriptions.forEach(M=>{delete this._resubscribeTopics[M]}),typeof C=="object"&&C.properties&&(I.properties=C.properties),this.outgoing[I.messageId]={volatile:!0,cb:T},this.log("unsubscribe: call _sendPacket"),this._sendPacket(I),!0};return(this._storeProcessing||this._storeProcessingQueue.length>0||!O())&&this._storeProcessingQueue.push({invoke:O,callback:T}),this}unsubscribeAsync(S,C){return new Promise((T,x)=>{this.unsubscribe(S,C,(O,N)=>{O?x(O):T(N)})})}end(S,C,T){this.log("end :: (%s)",this.options.clientId),(S==null||typeof S!="boolean")&&(T=T||C,C=S,S=!1),typeof C!="object"&&(T=T||C,C=null),this.log("end :: cb? %s",!!T),(!T||typeof T!="function")&&(T=this.noop);let x=()=>{this.log("end :: closeStores: closing incoming and outgoing stores"),this.disconnected=!0,this.incomingStore.close(N=>{this.outgoingStore.close(I=>{if(this.log("end :: closeStores: emitting end"),this.emit("end"),T){let M=N||I;this.log("end :: closeStores: invoking callback with args"),T(M)}})}),this._deferredReconnect?this._deferredReconnect():(this.options.reconnectPeriod===0||this.options.manualConnect)&&(this.disconnecting=!1)},O=()=>{this.log("end :: (%s) :: finish :: calling _cleanUp with force %s",this.options.clientId,S),this._cleanUp(S,()=>{this.log("end :: finish :: calling process.nextTick on closeStores"),(0,m.nextTick)(x)},C)};return this.disconnecting?(T(),this):(this._clearReconnect(),this.disconnecting=!0,!S&&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,O,10))):(this.log("end :: (%s) :: immediately calling finish",this.options.clientId),O()),this)}endAsync(S,C){return new Promise((T,x)=>{this.end(S,C,O=>{O?x(O):T()})})}removeOutgoingMessage(S){if(this.outgoing[S]){let{cb:C}=this.outgoing[S];this._removeOutgoingAndStoreMessage(S,()=>{C(new Error("Message removed"))})}return this}reconnect(S){this.log("client reconnect");let C=()=>{S?(this.options.incomingStore=S.incomingStore,this.options.outgoingStore=S.outgoingStore):(this.options.incomingStore=null,this.options.outgoingStore=null),this.incomingStore=this.options.incomingStore||new f.default,this.outgoingStore=this.options.outgoingStore||new f.default,this.disconnecting=!1,this.disconnected=!1,this._deferredReconnect=null,this._reconnect()};return this.disconnecting&&!this.disconnected?this._deferredReconnect=C:C(),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(S=>{this.outgoing[S].volatile&&typeof this.outgoing[S].cb=="function"&&(this.outgoing[S].cb(new Error("Connection closed")),delete this.outgoing[S])}))}_flush(){this.outgoing&&(this.log("_flush: queue exists? %b",!!this.outgoing),Object.keys(this.outgoing).forEach(S=>{typeof this.outgoing[S].cb=="function"&&(this.outgoing[S].cb(new Error("Connection closed")),delete this.outgoing[S])}))}_removeTopicAliasAndRecoverTopicName(S){let C;S.properties&&(C=S.properties.topicAlias);let T=S.topic.toString();if(this.log("_removeTopicAliasAndRecoverTopicName :: alias %d, topic %o",C,T),T.length===0){if(typeof C>"u")return new Error("Unregistered Topic Alias");if(T=this.topicAliasSend.getTopicByAlias(C),typeof T>"u")return new Error("Unregistered Topic Alias");S.topic=T}C&&delete S.properties.topicAlias}_checkDisconnecting(S){return this.disconnecting&&(S&&S!==this.noop?S(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(S,C,T={}){if(C&&(this.log("_cleanUp :: done callback provided for on stream close"),this.stream.on("close",C)),this.log("_cleanUp :: forced? %s",S),S)this.options.reconnectPeriod===0&&this.options.clean&&this._flush(),this.log("_cleanUp :: (%s) :: destroying stream",this.options.clientId),this.stream.destroy();else{let x=Object.assign({cmd:"disconnect"},T);this.log("_cleanUp :: (%s) :: call _sendPacket with disconnect packet",this.options.clientId),this._sendPacket(x,()=>{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(),C&&!this.connected&&(this.log("_cleanUp :: (%s) :: removing stream `done` callback `close` listener",this.options.clientId),this.stream.removeListener("close",C),C())}_storeAndSend(S,C,T){this.log("storeAndSend :: store packet with cmd %s to outgoingStore",S.cmd);let x=S,O;if(x.cmd==="publish"&&(x=(0,c.default)(S),O=this._removeTopicAliasAndRecoverTopicName(x),O))return C&&C(O);this.outgoingStore.put(x,N=>{if(N)return C&&C(N);T(),this._writePacket(S,C)})}_applyTopicAlias(S){if(this.options.protocolVersion===5&&S.cmd==="publish"){let C;S.properties&&(C=S.properties.topicAlias);let T=S.topic.toString();if(this.topicAliasSend)if(C){if(T.length!==0&&(this.log("applyTopicAlias :: register topic: %s - alias: %d",T,C),!this.topicAliasSend.put(T,C)))return this.log("applyTopicAlias :: error out of range. topic: %s - alias: %d",T,C),new Error("Sending Topic Alias out of range")}else T.length!==0&&(this.options.autoAssignTopicAlias?(C=this.topicAliasSend.getAliasByTopic(T),C?(S.topic="",S.properties=Object.assign(Object.assign({},S.properties),{topicAlias:C}),this.log("applyTopicAlias :: auto assign(use) topic: %s - alias: %d",T,C)):(C=this.topicAliasSend.getLruAlias(),this.topicAliasSend.put(T,C),S.properties=Object.assign(Object.assign({},S.properties),{topicAlias:C}),this.log("applyTopicAlias :: auto assign topic: %s - alias: %d",T,C))):this.options.autoUseTopicAlias&&(C=this.topicAliasSend.getAliasByTopic(T),C&&(S.topic="",S.properties=Object.assign(Object.assign({},S.properties),{topicAlias:C}),this.log("applyTopicAlias :: auto use topic: %s - alias: %d",T,C))));else if(C)return this.log("applyTopicAlias :: error out of range. topic: %s - alias: %d",T,C),new Error("Sending Topic Alias out of range")}}_noop(S){this.log("noop ::",S)}_writePacket(S,C){this.log("_writePacket :: packet: %O",S),this.log("_writePacket :: emitting `packetsend`"),this.emit("packetsend",S),this.log("_writePacket :: writing to stream");let T=a.default.writeToStream(S,this.stream,this.options);this.log("_writePacket :: writeToStream result %s",T),!T&&C&&C!==this.noop?(this.log("_writePacket :: handle events on `drain` once through callback."),this.stream.once("drain",C)):C&&(this.log("_writePacket :: invoking cb"),C())}_sendPacket(S,C,T,x){this.log("_sendPacket :: (%s) :: start",this.options.clientId),T=T||this.noop,C=C||this.noop;let O=this._applyTopicAlias(S);if(O){C(O);return}if(!this.connected){if(S.cmd==="auth"){this._writePacket(S,C);return}this.log("_sendPacket :: client not connected. Storing packet offline."),this._storePacket(S,C,T);return}if(x){this._writePacket(S,C);return}switch(S.cmd){case"publish":break;case"pubrel":this._storeAndSend(S,C,T);return;default:this._writePacket(S,C);return}switch(S.qos){case 2:case 1:this._storeAndSend(S,C,T);break;case 0:default:this._writePacket(S,C);break}this.log("_sendPacket :: (%s) :: end",this.options.clientId)}_storePacket(S,C,T){this.log("_storePacket :: packet: %o",S),this.log("_storePacket :: cb? %s",!!C),T=T||this.noop;let x=S;if(x.cmd==="publish"){x=(0,c.default)(S);let N=this._removeTopicAliasAndRecoverTopicName(x);if(N)return C&&C(N)}let O=x.qos||0;O===0&&this.queueQoSZero||x.cmd!=="publish"?this.queue.push({packet:x,cb:C}):O>0?(C=this.outgoing[x.messageId]?this.outgoing[x.messageId].cb:null,this.outgoingStore.put(x,N=>{if(N)return C&&C(N);T()})):C&&C(new Error("No connection to broker"))}_setupKeepaliveManager(){this.log("_setupKeepaliveManager :: keepalive %d (seconds)",this.options.keepalive),!this.keepaliveManager&&this.options.keepalive&&(this.keepaliveManager=new v.default(this,this.options.timerVariant))}_destroyKeepaliveManager(){this.keepaliveManager&&(this.log("_destroyKeepaliveManager :: destroying keepalive manager"),this.keepaliveManager.destroy(),this.keepaliveManager=null)}reschedulePing(S=!1){this.keepaliveManager&&this.options.keepalive&&(S||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 S=Object.keys(this._resubscribeTopics);if(!this._firstConnection&&(this.options.clean||this.options.protocolVersion>=4&&!this.connackPacket.sessionPresent)&&S.length>0)if(this.options.resubscribe)if(this.options.protocolVersion===5){this.log("_resubscribe: protocolVersion 5");for(let C=0;C<S.length;C++){let T={};T[S[C]]=this._resubscribeTopics[S[C]],T.resubscribe=!0,this.subscribe(T,{properties:T[S[C]].properties})}}else this._resubscribeTopics.resubscribe=!0,this.subscribe(this._resubscribeTopics);else this._resubscribeTopics={};this._firstConnection=!1}_onConnect(S){if(this.disconnected){this.emit("connect",S);return}this.connackPacket=S,this.messageIdProvider.clear(),this._setupKeepaliveManager(),this.connected=!0;let C=()=>{let T=this.outgoingStore.createStream(),x=()=>{T.destroy(),T=null,this._flushStoreProcessingQueue(),O()},O=()=>{this._storeProcessing=!1,this._packetIdsDuringStoreProcessing={}};this.once("close",x),T.on("error",I=>{O(),this._flushStoreProcessingQueue(),this.removeListener("close",x),this.emit("error",I)});let N=()=>{if(!T)return;let I=T.read(1),M;if(!I){T.once("readable",N);return}if(this._storeProcessing=!0,this._packetIdsDuringStoreProcessing[I.messageId]){N();return}!this.disconnecting&&!this.reconnectTimer?(M=this.outgoing[I.messageId]?this.outgoing[I.messageId].cb:null,this.outgoing[I.messageId]={volatile:!1,cb(F,k){M&&M(F,k),N()}},this._packetIdsDuringStoreProcessing[I.messageId]=!0,this.messageIdProvider.register(I.messageId)?this._sendPacket(I,void 0,void 0,!0):this.log("messageId: %d has already used.",I.messageId)):T.destroy&&T.destroy()};T.on("end",()=>{let I=!0;for(let M in this._packetIdsDuringStoreProcessing)if(!this._packetIdsDuringStoreProcessing[M]){I=!1;break}this.removeListener("close",x),I?(O(),this._invokeAllStoreProcessingQueue(),this.emit("connect",S)):C()}),N()};C()}_invokeStoreProcessingQueue(){if(!this._storeProcessing&&this._storeProcessingQueue.length>0){let S=this._storeProcessingQueue[0];if(S&&S.invoke())return this._storeProcessingQueue.shift(),!0}return!1}_invokeAllStoreProcessingQueue(){for(;this._invokeStoreProcessingQueue(););}_flushStoreProcessingQueue(){for(let S of this._storeProcessingQueue)S.cbStorePut&&S.cbStorePut(new Error("Connection closed")),S.callback&&S.callback(new Error("Connection closed"));this._storeProcessingQueue.splice(0)}_removeOutgoingAndStoreMessage(S,C){delete this.outgoing[S],this.outgoingStore.del({messageId:S},(T,x)=>{C(T,x),this.messageIdProvider.deallocate(S),this._invokeStoreProcessingQueue()})}};E.VERSION=m.MQTTJS_VERSION,e.default=E}),_je=sn(e=>{Zt(),en(),Jt(),Object.defineProperty(e,"__esModule",{value:!0});var t=obe(),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 Zg(e){throw new RangeError(lbe[e])}function Kee(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(sbe,".")).split("."),t).join(".");return r+i}function Qee(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 Xee,Zee,sbe,lbe,Du,rR,G8,W8,q8,Y8,Qh,Sje=ls(()=>{Zt(),en(),Jt(),Xee=/^xn--/,Zee=/[^\0-\x7E]/,sbe=/[\x2E\u3002\uFF0E\uFF61]/g,lbe={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},Du=Math.floor,rR=String.fromCharCode,G8=function(e,t){return e+22+75*(e<26)-((t!=0)<<5)},W8=function(e,t,n){let r=0;for(e=n?Du(e/700):e>>1,e+=Du(e/t);e>455;r+=36)e=Du(e/35);return Du(r+36*e/(e+38))},q8=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&&Zg("not-basic"),t.push(e.charCodeAt(l));for(let l=a>0?a+1:0;l<n;){let c=r;for(let d=1,f=36;;f+=36){l>=n&&Zg("invalid-input");let h=(s=e.charCodeAt(l++))-48<10?s-22:s-65<26?s-65:s-97<26?s-97:36;(h>=36||h>Du((2147483647-r)/d))&&Zg("overflow"),r+=h*d;let m=f<=o?1:f>=o+26?26:f-o;if(h<m)break;let g=36-m;d>Du(2147483647/g)&&Zg("overflow"),d*=g}let u=t.length+1;o=W8(r-c,u,c==0),Du(r/u)>2147483647-i&&Zg("overflow"),i+=Du(r/u),r%=u,t.splice(r++,0,i)}var s;return String.fromCodePoint(...t)},Y8=function(e){let t=[],n=(e=Qee(e)).length,r=128,i=0,o=72;for(let l of e)l<128&&t.push(rR(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>Du((2147483647-i)/c)&&Zg("overflow"),i+=(l-r)*c,r=l;for(let u of e)if(u<r&&++i>2147483647&&Zg("overflow"),u==r){let d=i;for(let f=36;;f+=36){let h=f<=o?1:f>=o+26?26:f-o;if(d<h)break;let m=d-h,g=36-h;t.push(rR(G8(h+m%g,0))),d=Du(m/g)}t.push(rR(G8(d,0))),o=W8(i,c,s==a),i=0,++s}++i,++r}return t.join("")},Qh={version:"2.1.0",ucs2:{decode:Qee,encode:e=>String.fromCodePoint(...e)},decode:q8,encode:Y8,toASCII:function(e){return Kee(e,function(t){return Zee.test(t)?"xn--"+Y8(t):t})},toUnicode:function(e){return Kee(e,function(t){return Xee.test(t)?q8(t.slice(4).toLowerCase()):t})}},Qh.decode,Qh.encode,Qh.toASCII,Qh.toUnicode,Qh.ucs2,Qh.version});function Eje(e,t){return Object.prototype.hasOwnProperty.call(e,t)}var Jee,G0,ete,Zd,Cje=ls(()=>{Zt(),en(),Jt(),Jee=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,f,h=e[l].replace(o,"%20"),m=h.indexOf(n);m>=0?(c=h.substr(0,m),u=h.substr(m+1)):(c=h,u=""),d=decodeURIComponent(c),f=decodeURIComponent(u),Eje(i,d)?Array.isArray(i[d])?i[d].push(f):i[d]=[i[d],f]:i[d]=f}return i},G0=function(e){switch(typeof e){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}},ete=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(G0(i))+n;return Array.isArray(e[i])?e[i].map(function(a){return o+encodeURIComponent(G0(a))}).join(t):o+encodeURIComponent(G0(e[i]))}).join(t):r?encodeURIComponent(G0(r))+n+encodeURIComponent(G0(e)):""},Zd={},Zd.decode=Zd.parse=Jee,Zd.encode=Zd.stringify=ete,Zd.decode,Zd.encode,Zd.parse,Zd.stringify});function bj(){throw new Error("setTimeout has not been defined")}function yj(){throw new Error("clearTimeout has not been defined")}function cbe(e){if(xp===setTimeout)return setTimeout(e,0);if((xp===bj||!xp)&&setTimeout)return xp=setTimeout,setTimeout(e,0);try{return xp(e,0)}catch{try{return xp.call(null,e,0)}catch{return xp.call(this||ov,e,0)}}}function wje(){av&&D1&&(av=!1,D1.length?yf=D1.concat(yf):rw=-1,yf.length&&ube())}function ube(){if(!av){var e=cbe(wje);av=!0;for(var t=yf.length;t;){for(D1=yf,yf=[];++rw<t;)D1&&D1[rw].run();rw=-1,t=yf.length}D1=null,av=!1,function(n){if(Op===clearTimeout)return clearTimeout(n);if((Op===yj||!Op)&&clearTimeout)return Op=clearTimeout,clearTimeout(n);try{Op(n)}catch{try{return Op.call(null,n)}catch{return Op.call(this||ov,n)}}}(e)}}function tte(e,t){(this||ov).fun=e,(this||ov).array=t}function op(){}var nte,xp,Op,ov,Do,D1,yf,av,rw,wo,Tje=ls(()=>{Zt(),en(),Jt(),ov=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global,Do=nte={},function(){try{xp=typeof setTimeout=="function"?setTimeout:bj}catch{xp=bj}try{Op=typeof clearTimeout=="function"?clearTimeout:yj}catch{Op=yj}}(),yf=[],av=!1,rw=-1,Do.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];yf.push(new tte(e,t)),yf.length!==1||av||cbe(ube)},tte.prototype.run=function(){(this||ov).fun.apply(null,(this||ov).array)},Do.title="browser",Do.browser=!0,Do.env={},Do.argv=[],Do.version="",Do.versions={},Do.on=op,Do.addListener=op,Do.once=op,Do.off=op,Do.removeListener=op,Do.removeAllListeners=op,Do.emit=op,Do.prependListener=op,Do.prependOnceListener=op,Do.listeners=function(e){return[]},Do.binding=function(e){throw new Error("process.binding is not supported")},Do.cwd=function(){return"/"},Do.chdir=function(e){throw new Error("process.chdir is not supported")},Do.umask=function(){return 0},wo=nte,wo.addListener,wo.argv,wo.binding,wo.browser,wo.chdir,wo.cwd,wo.emit,wo.env,wo.listeners,wo.nextTick,wo.off,wo.on,wo.once,wo.prependListener,wo.prependOnceListener,wo.removeAllListeners,wo.removeListener,wo.title,wo.umask,wo.version,wo.versions});function xje(){if(_j)return gA;_j=!0;var e=gA={},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(g){if(t===setTimeout)return setTimeout(g,0);if((t===r||!t)&&setTimeout)return t=setTimeout,setTimeout(g,0);try{return t(g,0)}catch{try{return t.call(null,g,0)}catch{return t.call(this||m1,g,0)}}}function a(g){if(n===clearTimeout)return clearTimeout(g);if((n===i||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(g);try{return n(g)}catch{try{return n.call(null,g)}catch{return n.call(this||m1,g)}}}var s=[],l=!1,c,u=-1;function d(){!l||!c||(l=!1,c.length?s=c.concat(s):u=-1,s.length&&f())}function f(){if(!l){var g=o(d);l=!0;for(var v=s.length;v;){for(c=s,s=[];++u<v;)c&&c[u].run();u=-1,v=s.length}c=null,l=!1,a(g)}}e.nextTick=function(g){var v=new Array(arguments.length-1);if(arguments.length>1)for(var y=1;y<arguments.length;y++)v[y-1]=arguments[y];s.push(new h(g,v)),s.length===1&&!l&&o(f)};function h(g,v){(this||m1).fun=g,(this||m1).array=v}h.prototype.run=function(){(this||m1).fun.apply(null,(this||m1).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(g){return[]},e.binding=function(g){throw new Error("process.binding is not supported")},e.cwd=function(){return"/"},e.chdir=function(g){throw new Error("process.chdir is not supported")},e.umask=function(){return 0},gA}var gA,_j,m1,ho,dbe=ls(()=>{Zt(),en(),Jt(),gA={},_j=!1,m1=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global,ho=xje(),ho.platform="browser",ho.addListener,ho.argv,ho.binding,ho.browser,ho.chdir,ho.cwd,ho.emit,ho.env,ho.listeners,ho.nextTick,ho.off,ho.on,ho.once,ho.prependListener,ho.prependOnceListener,ho.removeAllListeners,ho.removeListener,ho.title,ho.umask,ho.version,ho.versions});function Oje(){if(Sj)return vA;Sj=!0;var e=ho;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,f=0;f<=o.length;++f){if(f<o.length)d=o.charCodeAt(f);else{if(d===47)break;d=47}if(d===47){if(!(c===f-1||u===1))if(c!==f-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 h=s.lastIndexOf("/");if(h!==s.length-1){h===-1?(s="",l=0):(s=s.slice(0,h),l=s.length-1-s.lastIndexOf("/")),c=f,u=0;continue}}else if(s.length===2||s.length===1){s="",l=0,c=f,u=0;continue}}a&&(s.length>0?s+="/..":s="..",l=2)}else s.length>0?s+="/"+o.slice(c+1,f):s=o.slice(c+1,f),l=f-c-1;c=f,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,f=d-u,h=c<f?c:f,m=-1,g=0;g<=h;++g){if(g===h){if(f>h){if(a.charCodeAt(u+g)===47)return a.slice(u+g+1);if(g===0)return a.slice(u+g)}else c>h&&(o.charCodeAt(s+g)===47?m=g:g===0&&(m=0));break}var v=o.charCodeAt(s+g),y=a.charCodeAt(u+g);if(v!==y)break;v===47&&(m=g)}var b="";for(g=s+m+1;g<=l;++g)(g===l||o.charCodeAt(g)===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,f=-1;for(u=o.length-1;u>=0;--u){var h=o.charCodeAt(u);if(h===47){if(!c){s=u+1;break}}else f===-1&&(c=!1,f=u+1),d>=0&&(h===a.charCodeAt(d)?--d===-1&&(l=u):(d=-1,l=f))}return s===l?l=f: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 f=o.charCodeAt(d);if(f===47){if(!c){s=d+1;break}continue}l===-1&&(c=!1,l=d+1),f===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,f=-1,h=!0,m=o.length-1,g=0;m>=c;--m){if(s=o.charCodeAt(m),s===47){if(!h){d=m+1;break}continue}f===-1&&(h=!1,f=m+1),s===46?u===-1?u=m:g!==1&&(g=1):u!==-1&&(g=-1)}return u===-1||f===-1||g===0||g===1&&u===f-1&&u===d+1?f!==-1&&(d===0&&l?a.base=a.name=o.slice(1,f):a.base=a.name=o.slice(d,f)):(d===0&&l?(a.name=o.slice(1,u),a.base=o.slice(1,f)):(a.name=o.slice(d,u),a.base=o.slice(d,f)),a.ext=o.slice(u,f)),d>0?a.dir=o.slice(0,d-1):l&&(a.dir="/"),a},sep:"/",delimiter:":",win32:null,posix:null};return i.posix=i,vA=i,vA}var vA,Sj,Ej,Rje=ls(()=>{Zt(),en(),Jt(),dbe(),vA={},Sj=!1,Ej=Oje()}),fbe={};p0(fbe,{URL:()=>Abe,Url:()=>Tbe,default:()=>Ai,fileURLToPath:()=>pbe,format:()=>xbe,parse:()=>Ibe,pathToFileURL:()=>hbe,resolve:()=>Obe,resolveObject:()=>Rbe});function Hc(){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 IE(e,t,n){if(e&&Fu.isObject(e)&&e instanceof Hc)return e;var r=new Hc;return r.parse(e,t,n),r}function Ije(){if(Cj)return bA;Cj=!0;var e=wo;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,f=0;f<=o.length;++f){if(f<o.length)d=o.charCodeAt(f);else{if(d===47)break;d=47}if(d===47){if(!(c===f-1||u===1))if(c!==f-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 h=s.lastIndexOf("/");if(h!==s.length-1){h===-1?(s="",l=0):(s=s.slice(0,h),l=s.length-1-s.lastIndexOf("/")),c=f,u=0;continue}}else if(s.length===2||s.length===1){s="",l=0,c=f,u=0;continue}}a&&(s.length>0?s+="/..":s="..",l=2)}else s.length>0?s+="/"+o.slice(c+1,f):s=o.slice(c+1,f),l=f-c-1;c=f,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,f=d-u,h=c<f?c:f,m=-1,g=0;g<=h;++g){if(g===h){if(f>h){if(a.charCodeAt(u+g)===47)return a.slice(u+g+1);if(g===0)return a.slice(u+g)}else c>h&&(o.charCodeAt(s+g)===47?m=g:g===0&&(m=0));break}var v=o.charCodeAt(s+g),y=a.charCodeAt(u+g);if(v!==y)break;v===47&&(m=g)}var b="";for(g=s+m+1;g<=l;++g)(g===l||o.charCodeAt(g)===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,f=-1;for(u=o.length-1;u>=0;--u){var h=o.charCodeAt(u);if(h===47){if(!c){s=u+1;break}}else f===-1&&(c=!1,f=u+1),d>=0&&(h===a.charCodeAt(d)?--d===-1&&(l=u):(d=-1,l=f))}return s===l?l=f: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 f=o.charCodeAt(d);if(f===47){if(!c){s=d+1;break}continue}l===-1&&(c=!1,l=d+1),f===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,f=-1,h=!0,m=o.length-1,g=0;m>=c;--m){if(s=o.charCodeAt(m),s===47){if(!h){d=m+1;break}continue}f===-1&&(h=!1,f=m+1),s===46?u===-1?u=m:g!==1&&(g=1):u!==-1&&(g=-1)}return u===-1||f===-1||g===0||g===1&&u===f-1&&u===d+1?f!==-1&&(d===0&&l?a.base=a.name=o.slice(1,f):a.base=a.name=o.slice(d,f)):(d===0&&l?(a.name=o.slice(1,u),a.base=o.slice(1,f)):(a.name=o.slice(d,u),a.base=o.slice(d,f)),a.ext=o.slice(u,f)),d>0?a.dir=o.slice(0,d-1):l&&(a.dir="/"),a},sep:"/",delimiter:":",win32:null,posix:null};return i.posix=i,bA=i,bA}function Aje(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 iM?Nje(e):Mje(e)}function Nje(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(ybe,"\\"),n=decodeURIComponent(n),t!=="")return`\\\\${t}${n}`;{let r=n.codePointAt(1)|32,i=n[2];if(r<vbe||r>bbe||i!==":")throw new Deno.errors.InvalidData("file url path must be absolute");return n.slice(1)}}function Mje(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 kje(e){let t=wj.resolve(e),n=e.charCodeAt(e.length-1);(n===gbe||iM&&n===mbe)&&t[t.length-1]!==wj.sep&&(t+="/");let r=new URL("file://");return t.includes("%")&&(t=t.replace(_be,"%25")),!iM&&t.includes("\\")&&(t=t.replace(Sbe,"%5C")),t.includes(`
`)&&(t=t.replace(Ebe,"%0A")),t.includes("\r")&&(t=t.replace(Cbe,"%0D")),t.includes(" ")&&(t=t.replace(wbe,"%09")),r.pathname=t,r}function pbe(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 oM?Pje(e):Dje(e)}function Pje(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(Dbe,"\\"),n=decodeURIComponent(n),t!=="")return`\\\\${t}${n}`;{let r=n.codePointAt(1)|32,i=n[2];if(r<kbe||r>Pbe||i!==":")throw new Deno.errors.InvalidData("file url path must be absolute");return n.slice(1)}}function Dje(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 hbe(e){let t=Ej.resolve(e),n=e.charCodeAt(e.length-1);(n===Mbe||oM&&n===Nbe)&&t[t.length-1]!==Ej.sep&&(t+="/");let r=new URL("file://");return t.includes("%")&&(t=t.replace(Lbe,"%25")),!oM&&t.includes("\\")&&(t=t.replace($be,"%5C")),t.includes(`
`)&&(t=t.replace(Fbe,"%0A")),t.includes("\r")&&(t=t.replace(Bbe,"%0D")),t.includes(" ")&&(t=t.replace(jbe,"%09")),r.pathname=t,r}var Ai,rte,Fu,ite,ote,ate,ste,iR,K8,Q8,X8,lte,cte,oR,Jg,aR,bA,Cj,wj,ute,mbe,gbe,vbe,bbe,iM,ybe,_be,Sbe,Ebe,Cbe,wbe,dte,Tbe,xbe,Obe,Rbe,Ibe,Abe,Nbe,Mbe,kbe,Pbe,oM,Dbe,Lbe,$be,Fbe,Bbe,jbe,Lje=ls(()=>{Zt(),en(),Jt(),Sje(),Cje(),Tje(),Rje(),dbe(),Ai={},rte=Qh,Fu={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}},Ai.parse=IE,Ai.resolve=function(e,t){return IE(e,!1,!0).resolve(t)},Ai.resolveObject=function(e,t){return e?IE(e,!1,!0).resolveObject(t):t},Ai.format=function(e){return Fu.isString(e)&&(e=IE(e)),e instanceof Hc?e.format():Hc.prototype.format.call(e)},Ai.Url=Hc,ite=/^([a-z0-9.+-]+:)/i,ote=/:[0-9]*$/,ate=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,ste=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r",`
`," "]),iR=["'"].concat(ste),K8=["%","/","?",";","#"].concat(iR),Q8=["/","?","#"],X8=/^[+a-z0-9A-Z_-]{0,63}$/,lte=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,cte={javascript:!0,"javascript:":!0},oR={javascript:!0,"javascript:":!0},Jg={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},aR=Zd,Hc.prototype.parse=function(e,t,n){if(!Fu.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=ate.exec(a);if(s)return this.path=a,this.href=a,this.pathname=s[1],s[2]?(this.search=s[2],this.query=t?aR.parse(this.search.substr(1)):this.search.substr(1)):t&&(this.search="",this.query={}),this}var l=ite.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&&oR[l]||(a=a.substr(2),this.slashes=!0)}if(!oR[l]&&(u||l&&!Jg[l])){for(var d,f,h=-1,m=0;m<Q8.length;m++)(g=a.indexOf(Q8[m]))!==-1&&(h===-1||g<h)&&(h=g);for((f=h===-1?a.lastIndexOf("@"):a.lastIndexOf("@",h))!==-1&&(d=a.slice(0,f),a=a.slice(f+1),this.auth=decodeURIComponent(d)),h=-1,m=0;m<K8.length;m++){var g;(g=a.indexOf(K8[m]))!==-1&&(h===-1||g<h)&&(h=g)}h===-1&&(h=a.length),this.host=a.slice(0,h),a=a.slice(h),this.parseHost(),this.hostname=this.hostname||"";var v=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!v)for(var y=this.hostname.split(/\./),b=(m=0,y.length);m<b;m++){var _=y[m];if(_&&!_.match(X8)){for(var E="",w=0,S=_.length;w<S;w++)_.charCodeAt(w)>127?E+="x":E+=_[w];if(!E.match(X8)){var C=y.slice(0,m),T=y.slice(m+1),x=_.match(lte);x&&(C.push(x[1]),T.unshift(x[2])),T.length&&(a="/"+T.join(".")+a),this.hostname=C.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),v||(this.hostname=rte.toASCII(this.hostname));var O=this.port?":"+this.port:"",N=this.hostname||"";this.host=N+O,this.href+=this.host,v&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),a[0]!=="/"&&(a="/"+a))}if(!cte[c])for(m=0,b=iR.length;m<b;m++){var I=iR[m];if(a.indexOf(I)!==-1){var M=encodeURIComponent(I);M===I&&(M=escape(I)),a=a.split(I).join(M)}}var F=a.indexOf("#");F!==-1&&(this.hash=a.substr(F),a=a.slice(0,F));var k=a.indexOf("?");if(k!==-1?(this.search=a.substr(k),this.query=a.substr(k+1),t&&(this.query=aR.parse(this.query)),a=a.slice(0,k)):t&&(this.search="",this.query={}),a&&(this.pathname=a),Jg[c]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){O=this.pathname||"";var B=this.search||"";this.path=O+B}return this.href=this.format(),this},Hc.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&&Fu.isObject(this.query)&&Object.keys(this.query).length&&(o=aR.stringify(this.query));var a=this.search||o&&"?"+o||"";return t&&t.substr(-1)!==":"&&(t+=":"),this.slashes||(!t||Jg[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},Hc.prototype.resolve=function(e){return this.resolveObject(IE(e,!1,!0)).format()},Hc.prototype.resolveObject=function(e){if(Fu.isString(e)){var t=new Hc;t.parse(e,!1,!0),e=t}for(var n=new Hc,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 Jg[n.protocol]&&n.hostname&&!n.pathname&&(n.path=n.pathname="/"),n.href=n.format(),n}if(e.protocol&&e.protocol!==n.protocol){if(!Jg[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||oR[e.protocol])n.pathname=e.pathname;else{for(var f=(e.pathname||"").split("/");f.length&&!(e.host=f.shift()););e.host||(e.host=""),e.hostname||(e.hostname=""),f[0]!==""&&f.unshift(""),f.length<2&&f.unshift(""),n.pathname=f.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 h=n.pathname||"",m=n.search||"";n.path=h+m}return n.slashes=n.slashes||e.slashes,n.href=n.format(),n}var g=n.pathname&&n.pathname.charAt(0)==="/",v=e.host||e.pathname&&e.pathname.charAt(0)==="/",y=v||g||n.host&&e.pathname,b=y,_=n.pathname&&n.pathname.split("/")||[],E=(f=e.pathname&&e.pathname.split("/")||[],n.protocol&&!Jg[n.protocol]);if(E&&(n.hostname="",n.port=null,n.host&&(_[0]===""?_[0]=n.host:_.unshift(n.host)),n.host="",e.protocol&&(e.hostname=null,e.port=null,e.host&&(f[0]===""?f[0]=e.host:f.unshift(e.host)),e.host=null),y=y&&(f[0]===""||_[0]==="")),v)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,_=f;else if(f.length)_||(_=[]),_.pop(),_=_.concat(f),n.search=e.search,n.query=e.query;else if(!Fu.isNullOrUndefined(e.search))return E&&(n.hostname=n.host=_.shift(),(x=!!(n.host&&n.host.indexOf("@")>0)&&n.host.split("@"))&&(n.auth=x.shift(),n.host=n.hostname=x.shift())),n.search=e.search,n.query=e.query,Fu.isNull(n.pathname)&&Fu.isNull(n.search)||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.href=n.format(),n;if(!_.length)return n.pathname=null,n.search?n.path="/"+n.search:n.path=null,n.href=n.format(),n;for(var w=_.slice(-1)[0],S=(n.host||e.host||_.length>1)&&(w==="."||w==="..")||w==="",C=0,T=_.length;T>=0;T--)(w=_[T])==="."?_.splice(T,1):w===".."?(_.splice(T,1),C++):C&&(_.splice(T,1),C--);if(!y&&!b)for(;C--;C)_.unshift("..");!y||_[0]===""||_[0]&&_[0].charAt(0)==="/"||_.unshift(""),S&&_.join("/").substr(-1)!=="/"&&_.push("");var x,O=_[0]===""||_[0]&&_[0].charAt(0)==="/";return E&&(n.hostname=n.host=O?"":_.length?_.shift():"",(x=!!(n.host&&n.host.indexOf("@")>0)&&n.host.split("@"))&&(n.auth=x.shift(),n.host=n.hostname=x.shift())),(y=y||n.host&&_.length)&&!O&&_.unshift(""),_.length?n.pathname=_.join("/"):(n.pathname=null,n.path=null),Fu.isNull(n.pathname)&&Fu.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},Hc.prototype.parseHost=function(){var e=this.host,t=ote.exec(e);t&&((t=t[0])!==":"&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)},Ai.Url,Ai.format,Ai.resolve,Ai.resolveObject,bA={},Cj=!1,wj=Ije(),ute=typeof Deno<"u"?Deno.build.os==="windows"?"win32":Deno.build.os:void 0,Ai.URL=typeof URL<"u"?URL:null,Ai.pathToFileURL=kje,Ai.fileURLToPath=Aje,Ai.Url,Ai.format,Ai.resolve,Ai.resolveObject,Ai.URL,mbe=92,gbe=47,vbe=97,bbe=122,iM=ute==="win32",ybe=/\//g,_be=/%/g,Sbe=/\\/g,Ebe=/\n/g,Cbe=/\r/g,wbe=/\t/g,dte=typeof Deno<"u"?Deno.build.os==="windows"?"win32":Deno.build.os:void 0,Ai.URL=typeof URL<"u"?URL:null,Ai.pathToFileURL=hbe,Ai.fileURLToPath=pbe,Tbe=Ai.Url,xbe=Ai.format,Obe=Ai.resolve,Rbe=Ai.resolveObject,Ibe=Ai.parse,Abe=Ai.URL,Nbe=92,Mbe=47,kbe=97,Pbe=122,oM=dte==="win32",Dbe=/\//g,Lbe=/%/g,$be=/\\/g,Fbe=/\n/g,Bbe=/\r/g,jbe=/\t/g}),$je=sn((e,t)=>{Zt(),en(),Jt(),t.exports=function(){throw new Error("ws does not work in the browser. Browser clients must use the native WebSocket object")}}),eW=sn(e=>{Zt(),en(),Jt(),Object.defineProperty(e,"__esModule",{value:!0}),e.BufferedDuplex=e.writev=void 0;var t=g0(),n=(us(),Hi(cs));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}),sR=sn(e=>{Zt(),en(),Jt();var t=e&&e.__importDefault||function(y){return y&&y.__esModule?y:{default:y}};Object.defineProperty(e,"__esModule",{value:!0}),e.streamBuilder=e.browserStreamBuilder=void 0;var n=(us(),Hi(cs)),r=t($je()),i=t(ih()),o=g0(),a=t(NP()),s=eW(),l=(0,i.default)("mqttjs:ws"),c=["rejectUnauthorized","ca","cert","key","pfx","passphrase"];function u(y,b){let _=`${y.protocol}://${y.hostname}:${y.port}${y.path}`;return typeof y.transformWsUrl=="function"&&(_=y.transformWsUrl(_,y,b)),_}function d(y){let b=y;return y.port||(y.protocol==="wss"?b.port=443:b.port=80),y.path||(b.path="/"),y.wsOptions||(b.wsOptions={}),!a.default&&!y.forceNativeWebSocket&&y.protocol==="wss"&&c.forEach(_=>{Object.prototype.hasOwnProperty.call(y,_)&&!Object.prototype.hasOwnProperty.call(y.wsOptions,_)&&(b.wsOptions[_]=y[_])}),b}function f(y){let b=d(y);if(b.hostname||(b.hostname=b.host),!b.hostname){if(typeof document>"u")throw new Error("Could not determine host. Specify host manually.");let _=new URL(document.URL);b.hostname=_.hostname,b.port||(b.port=Number(_.port))}return b.objectMode===void 0&&(b.objectMode=!(b.binary===!0||b.binary===void 0)),b}function h(y,b,_){l("createWebSocket"),l(`protocol: ${_.protocolId} ${_.protocolVersion}`);let E=_.protocolId==="MQIsdp"&&_.protocolVersion===3?"mqttv3.1":"mqtt";l(`creating new Websocket for url: ${b} and protocol: ${E}`);let w;return _.createWebsocket?w=_.createWebsocket(b,[E],_):w=new r.default(b,[E],_.wsOptions),w}function m(y,b){let _=b.protocolId==="MQIsdp"&&b.protocolVersion===3?"mqttv3.1":"mqtt",E=u(b,y),w;return b.createWebsocket?w=b.createWebsocket(E,[_],b):w=new WebSocket(E,[_]),w.binaryType="arraybuffer",w}var g=(y,b)=>{l("streamBuilder");let _=d(b);_.hostname=_.hostname||_.host||"localhost";let E=u(_,y),w=h(y,E,_),S=r.default.createWebSocketStream(w,_.wsOptions);return S.url=E,w.on("close",()=>{S.destroy()}),S};e.streamBuilder=g;var v=(y,b)=>{l("browserStreamBuilder");let _,E=f(b).browserBufferSize||1024*512,w=b.browserBufferTimeout||1e3,S=!b.objectMode,C=m(y,b),T=O(b,k,B);b.objectMode||(T._writev=s.writev.bind(T)),T.on("close",()=>{C.close()});let x=typeof C.addEventListener<"u";C.readyState===C.OPEN?(_=T,_.socket=C):(_=new s.BufferedDuplex(b,T,C),x?C.addEventListener("open",N):C.onopen=N),x?(C.addEventListener("close",I),C.addEventListener("error",M),C.addEventListener("message",F)):(C.onclose=I,C.onerror=M,C.onmessage=F);function O(A,P,z){let L=new o.Transform({objectMode:A.objectMode});return L._write=P,L._flush=z,L}function N(){l("WebSocket onOpen"),_ instanceof s.BufferedDuplex&&_.socketReady()}function I(A){l("WebSocket onClose",A),_.end(),_.destroy()}function M(A){l("WebSocket onError",A);let P=new Error("WebSocket error");P.event=A,_.destroy(P)}async function F(A){let{data:P}=A;P instanceof ArrayBuffer?P=n.Buffer.from(P):P instanceof Blob?P=n.Buffer.from(await new Response(P).arrayBuffer()):P=n.Buffer.from(P,"utf8"),T&&!T.destroyed&&T.push(P)}function k(A,P,z){if(C.bufferedAmount>E){setTimeout(k,w,A,P,z);return}S&&typeof A=="string"&&(A=n.Buffer.from(A,"utf8"));try{C.send(A)}catch(L){return z(L)}z()}function B(A){C.close(),A()}return _};e.browserStreamBuilder=v}),tW={};p0(tW,{Server:()=>go,Socket:()=>go,Stream:()=>go,_createServerHandle:()=>go,_normalizeArgs:()=>go,_setSimultaneousAccepts:()=>go,connect:()=>go,createConnection:()=>go,createServer:()=>go,default:()=>Hbe,isIP:()=>go,isIPv4:()=>go,isIPv6:()=>go});function go(){throw new Error("Node.js net module is not supported by JSPM core outside of Node.js")}var Hbe,Ube=ls(()=>{Zt(),en(),Jt(),Hbe={_createServerHandle:go,_normalizeArgs:go,_setSimultaneousAccepts:go,connect:go,createConnection:go,createServer:go,isIP:go,isIPv4:go,isIPv6:go,Server:go,Socket:go,Stream:go}}),fte=sn(e=>{Zt(),en(),Jt();var t=e&&e.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(e,"__esModule",{value:!0});var n=t((Ube(),Hi(tW))),r=t(ih()),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}),zbe={};p0(zbe,{default:()=>Vbe});var Vbe,Fje=ls(()=>{Zt(),en(),Jt(),Vbe={}}),pte=sn(e=>{Zt(),en(),Jt();var t=e&&e.__importDefault||function(s){return s&&s.__esModule?s:{default:s}};Object.defineProperty(e,"__esModule",{value:!0});var n=t((Fje(),Hi(zbe))),r=t((Ube(),Hi(tW))),i=t(ih()),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}),hte=sn(e=>{Zt(),en(),Jt(),Object.defineProperty(e,"__esModule",{value:!0});var t=(us(),Hi(cs)),n=g0(),r=eW(),i,o,a;function s(){let f=new n.Transform;return f._write=(h,m,g)=>{i.send({data:h.buffer,success(){g()},fail(v){g(new Error(v))}})},f._flush=h=>{i.close({success(){h()}})},f}function l(f){f.hostname||(f.hostname="localhost"),f.path||(f.path="/"),f.wsOptions||(f.wsOptions={})}function c(f,h){let m=f.protocol==="wxs"?"wss":"ws",g=`${m}://${f.hostname}${f.path}`;return f.port&&f.port!==80&&f.port!==443&&(g=`${m}://${f.hostname}:${f.port}${f.path}`),typeof f.transformWsUrl=="function"&&(g=f.transformWsUrl(g,f,h)),g}function u(){i.onOpen(()=>{a.socketReady()}),i.onMessage(f=>{let{data:h}=f;h instanceof ArrayBuffer?h=t.Buffer.from(h):h=t.Buffer.from(h,"utf8"),o.push(h)}),i.onClose(()=>{a.emit("close"),a.end(),a.destroy()}),i.onError(f=>{let h=new Error(f.errMsg);a.destroy(h)})}var d=(f,h)=>{if(h.hostname=h.hostname||h.host,!h.hostname)throw new Error("Could not determine host. Specify host manually.");let m=h.protocolId==="MQIsdp"&&h.protocolVersion===3?"mqttv3.1":"mqtt";l(h);let g=c(h,f);i=wx.connectSocket({url:g,protocols:[m]}),o=s(),a=new r.BufferedDuplex(h,o,i),a._destroy=(y,b)=>{i.close({success(){b&&b(y)}})};let v=a.destroy;return a.destroy=(y,b)=>(a.destroy=v,setTimeout(()=>{i.close({fail(){a._destroy(y,b)}})},0),a),u(),a};e.default=d}),mte=sn(e=>{Zt(),en(),Jt(),Object.defineProperty(e,"__esModule",{value:!0});var t=(us(),Hi(cs)),n=g0(),r=eW(),i,o,a,s=!1;function l(){let h=new n.Transform;return h._write=(m,g,v)=>{i.sendSocketMessage({data:m.buffer,success(){v()},fail(){v(new Error)}})},h._flush=m=>{i.closeSocket({success(){m()}})},h}function c(h){h.hostname||(h.hostname="localhost"),h.path||(h.path="/"),h.wsOptions||(h.wsOptions={})}function u(h,m){let g=h.protocol==="alis"?"wss":"ws",v=`${g}://${h.hostname}${h.path}`;return h.port&&h.port!==80&&h.port!==443&&(v=`${g}://${h.hostname}:${h.port}${h.path}`),typeof h.transformWsUrl=="function"&&(v=h.transformWsUrl(v,h,m)),v}function d(){s||(s=!0,i.onSocketOpen(()=>{a.socketReady()}),i.onSocketMessage(h=>{if(typeof h.data=="string"){let m=t.Buffer.from(h.data,"base64");o.push(m)}else{let m=new FileReader;m.addEventListener("load",()=>{let g=m.result;g instanceof ArrayBuffer?g=t.Buffer.from(g):g=t.Buffer.from(g,"utf8"),o.push(g)}),m.readAsArrayBuffer(h.data)}}),i.onSocketClose(()=>{a.end(),a.destroy()}),i.onSocketError(h=>{a.destroy(h)}))}var f=(h,m)=>{if(m.hostname=m.hostname||m.host,!m.hostname)throw new Error("Could not determine host. Specify host manually.");let g=m.protocolId==="MQIsdp"&&m.protocolVersion===3?"mqttv3.1":"mqtt";c(m);let v=u(m,h);return i=m.my,i.connectSocket({url:v,protocols:g}),o=l(),a=new r.BufferedDuplex(m,o,i),d(),a};e.default=f}),Bje=sn(e=>{Zt(),en(),Jt();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(ih()),r=t((Lje(),Hi(fbe))),i=t(gj()),o=t(NP());typeof(_i==null?void 0:_i.nextTick)!="function"&&(_i.nextTick=setImmediate);var a=(0,n.default)("mqttjs"),s=null;function l(d){let f;d.auth&&(f=d.auth.match(/^(.+):(.+)$/),f?(d.username=f[1],d.password=f[2]):d.username=d.auth)}function c(d,f){var h,m,g,v;if(a("connecting to an MQTT broker..."),typeof d=="object"&&!f&&(f=d,d=""),f=f||{},d&&typeof d=="string"){let _=r.default.parse(d,!0),E={};if(_.port!=null&&(E.port=Number(_.port)),E.host=_.hostname,E.query=_.query,E.auth=_.auth,E.protocol=_.protocol,E.path=_.path,E.protocol=(h=E.protocol)===null||h===void 0?void 0:h.replace(/:$/,""),f=Object.assign(Object.assign({},E),f),!f.protocol)throw new Error("Missing protocol")}if(f.unixSocket=f.unixSocket||((m=f.protocol)===null||m===void 0?void 0:m.includes("+unix")),f.unixSocket?f.protocol=f.protocol.replace("+unix",""):!(!((g=f.protocol)===null||g===void 0)&&g.startsWith("ws"))&&!(!((v=f.protocol)===null||v===void 0)&&v.startsWith("wx"))&&delete f.path,l(f),f.query&&typeof f.query.clientId=="string"&&(f.clientId=f.query.clientId),f.cert&&f.key)if(f.protocol){if(["mqtts","wss","wxs","alis"].indexOf(f.protocol)===-1)switch(f.protocol){case"mqtt":f.protocol="mqtts";break;case"ws":f.protocol="wss";break;case"wx":f.protocol="wxs";break;case"ali":f.protocol="alis";break;default:throw new Error(`Unknown protocol for secure connection: "${f.protocol}"!`)}}else throw new Error("Missing secure protocol key");if(s||(s={},!o.default&&!f.forceNativeWebSocket?(s.ws=sR().streamBuilder,s.wss=sR().streamBuilder,s.mqtt=fte().default,s.tcp=fte().default,s.ssl=pte().default,s.tls=s.ssl,s.mqtts=pte().default):(s.ws=sR().browserStreamBuilder,s.wss=sR().browserStreamBuilder,s.wx=hte().default,s.wxs=hte().default,s.ali=mte().default,s.alis=mte().default)),!s[f.protocol]){let _=["mqtts","wss"].indexOf(f.protocol)!==-1;f.protocol=["mqtt","mqtts","ws","wss","wx","wxs","ali","alis"].filter((E,w)=>_&&w%2===0?!1:typeof s[E]=="function")[0]}if(f.clean===!1&&!f.clientId)throw new Error("Missing clientId for unclean clients");f.protocol&&(f.defaultProtocol=f.protocol);function y(_){return f.servers&&((!_._reconnectCount||_._reconnectCount===f.servers.length)&&(_._reconnectCount=0),f.host=f.servers[_._reconnectCount].host,f.port=f.servers[_._reconnectCount].port,f.protocol=f.servers[_._reconnectCount].protocol?f.servers[_._reconnectCount].protocol:f.defaultProtocol,f.hostname=f.host,_._reconnectCount++),a("calling streambuilder for",f.protocol),s[f.protocol](_,f)}let b=new i.default(y,f);return b.on("error",()=>{}),b}function u(d,f,h=!0){return new Promise((m,g)=>{let v=c(d,f),y={connect:_=>{b(),m(v)},end:()=>{b(),m(v)},error:_=>{b(),v.end(),g(_)}};h===!1&&(y.close=()=>{y.error(new Error("Couldn't connect to server"))});function b(){Object.keys(y).forEach(_=>{v.off(_,y[_])})}Object.keys(y).forEach(_=>{v.on(_,y[_])})})}e.connectAsync=u,e.default=c}),gte=sn(e=>{Zt(),en(),Jt();var t=e&&e.__createBinding||(Object.create?function(h,m,g,v){v===void 0&&(v=g);var y=Object.getOwnPropertyDescriptor(m,g);(!y||("get"in y?!m.__esModule:y.writable||y.configurable))&&(y={enumerable:!0,get:function(){return m[g]}}),Object.defineProperty(h,v,y)}:function(h,m,g,v){v===void 0&&(v=g),h[v]=m[g]}),n=e&&e.__setModuleDefault||(Object.create?function(h,m){Object.defineProperty(h,"default",{enumerable:!0,value:m})}:function(h,m){h.default=m}),r=e&&e.__importStar||function(h){if(h&&h.__esModule)return h;var m={};if(h!=null)for(var g in h)g!=="default"&&Object.prototype.hasOwnProperty.call(h,g)&&t(m,h,g);return n(m,h),m},i=e&&e.__exportStar||function(h,m){for(var g in h)g!=="default"&&!Object.prototype.hasOwnProperty.call(m,g)&&t(m,h,g)},o=e&&e.__importDefault||function(h){return h&&h.__esModule?h:{default:h}};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(gj());e.MqttClient=a.default;var s=o(z0e());e.DefaultMessageIdProvider=s.default;var l=o(_je());e.UniqueMessageIdProvider=l.default;var c=o(V0e());e.Store=c.default;var u=r(Bje());e.connect=u.default,Object.defineProperty(e,"connectAsync",{enumerable:!0,get:function(){return u.connectAsync}});var d=o(abe());e.KeepaliveManager=d.default,e.Client=a.default,i(gj(),e),i(lS(),e);var f=AP();Object.defineProperty(e,"ReasonCodes",{enumerable:!0,get:function(){return f.ReasonCodes}})}),jje=sn(e=>{Zt(),en(),Jt();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(gte());e.default=o,i(gte(),e)});const Hje=jje();/*! Bundled license information:
@jspm/core/nodelibs/browser/buffer.js:
(*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> *)
*/var In={};(function(e){var t=typeof Object.defineProperties=="function"?Object.defineProperty:function(R,$,Z){R!=Array.prototype&&R!=Object.prototype&&(R[$]=Z.value)},n=(typeof window<"u"&&window===ao||typeof ao<"u"&&ao!=null,ao);function r(R,$){if($){var Z=n;R=R.split(".");for(var xe=0;xe<R.length-1;xe++){var $e=R[xe];$e in Z||(Z[$e]={}),Z=Z[$e]}R=R[R.length-1],xe=Z[R],$=$(xe),$!=xe&&$!=null&&t(Z,R,{configurable:!0,writable:!0,value:$})}}function i(R){var $=0;return function(){return $<R.length?{done:!1,value:R[$++]}:{done:!0}}}function o(){o=function(){},n.Symbol||(n.Symbol=s)}function a(R,$){this.a=R,t(this,"description",{configurable:!0,writable:!0,value:$})}a.prototype.toString=function(){return this.a};var s=function(){function R(Z){if(this instanceof R)throw new TypeError("Symbol is not a constructor");return new a("jscomp_symbol_"+(Z||"")+"_"+$++,Z)}var $=0;return R}();function l(){o();var R=n.Symbol.iterator;R||(R=n.Symbol.iterator=n.Symbol("Symbol.iterator")),typeof Array.prototype[R]!="function"&&t(Array.prototype,R,{configurable:!0,writable:!0,value:function(){return c(i(this))}}),l=function(){}}function c(R){return l(),R={next:R},R[n.Symbol.iterator]=function(){return this},R}function u(R,$){l(),R instanceof String&&(R+="");var Z=0,xe={next:function(){if(Z<R.length){var $e=Z++;return{value:$($e,R[$e]),done:!1}}return xe.next=function(){return{done:!0,value:void 0}},xe.next()}};return xe[Symbol.iterator]=function(){return xe},xe}r("Array.prototype.entries",function(R){return R||function(){return u(this,function($,Z){return[$,Z]})}});var d=ao||self;function f(R,$,Z){R=R.split("."),Z=Z||d,R[0]in Z||typeof Z.execScript>"u"||Z.execScript("var "+R[0]);for(var xe;R.length&&(xe=R.shift());)R.length||$===void 0?Z[xe]&&Z[xe]!==Object.prototype[xe]?Z=Z[xe]:Z=Z[xe]={}:Z[xe]=$}function h(R){var $=typeof R;if($=="object")if(R){if(R instanceof Array)return"array";if(R instanceof Object)return $;var Z=Object.prototype.toString.call(R);if(Z=="[object Window]")return"object";if(Z=="[object Array]"||typeof R.length=="number"&&typeof R.splice<"u"&&typeof R.propertyIsEnumerable<"u"&&!R.propertyIsEnumerable("splice"))return"array";if(Z=="[object Function]"||typeof R.call<"u"&&typeof R.propertyIsEnumerable<"u"&&!R.propertyIsEnumerable("call"))return"function"}else return"null";else if($=="function"&&typeof R.call>"u")return"object";return $}function m(R){var $=typeof R;return $=="object"&&R!=null||$=="function"}function g(R,$,Z){f(R,$,Z)}function v(R,$){function Z(){}Z.prototype=$.prototype,R.prototype=new Z,R.prototype.constructor=R}var y="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");function b(R,$){for(var Z,xe,$e=1;$e<arguments.length;$e++){xe=arguments[$e];for(Z in xe)R[Z]=xe[Z];for(var et=0;et<y.length;et++)Z=y[et],Object.prototype.hasOwnProperty.call(xe,Z)&&(R[Z]=xe[Z])}}var _=Array.prototype.forEach?function(R,$){Array.prototype.forEach.call(R,$,void 0)}:function(R,$){for(var Z=R.length,xe=typeof R=="string"?R.split(""):R,$e=0;$e<Z;$e++)$e in xe&&$.call(void 0,xe[$e],$e,R)},E=Array.prototype.map?function(R,$){return Array.prototype.map.call(R,$,void 0)}:function(R,$){for(var Z=R.length,xe=Array(Z),$e=typeof R=="string"?R.split(""):R,et=0;et<Z;et++)et in $e&&(xe[et]=$.call(void 0,$e[et],et,R));return xe};function w(R,$,Z){return 2>=arguments.length?Array.prototype.slice.call(R,$):Array.prototype.slice.call(R,$,Z)}function S(R,$,Z,xe){var $e="Assertion failed";if(Z){$e+=": "+Z;var et=xe}else R&&($e+=": "+R,et=$);throw Error($e,et||[])}function C(R,$,Z){for(var xe=[],$e=2;$e<arguments.length;++$e)xe[$e-2]=arguments[$e];return R||S("",null,$,xe),R}function T(R,$,Z){for(var xe=[],$e=2;$e<arguments.length;++$e)xe[$e-2]=arguments[$e];typeof R!="string"&&S("Expected string but got %s: %s.",[h(R),R],$,xe)}function x(R,$,Z){for(var xe=[],$e=2;$e<arguments.length;++$e)xe[$e-2]=arguments[$e];Array.isArray(R)||S("Expected array but got %s: %s.",[h(R),R],$,xe)}function O(R,$){for(var Z=[],xe=1;xe<arguments.length;++xe)Z[xe-1]=arguments[xe];throw Error("Failure"+(R?": "+R:""),Z)}function N(R,$,Z,xe){for(var $e=[],et=3;et<arguments.length;++et)$e[et-3]=arguments[et];R instanceof $||S("Expected instanceof %s but got %s.",[I($),I(R)],Z,$e)}function I(R){return R instanceof Function?R.displayName||R.name||"unknown type name":R instanceof Object?R.constructor.displayName||R.constructor.name||Object.prototype.toString.call(R):R===null?"null":typeof R}function M(R,$){if(this.c=R,this.b=$,this.a={},this.arrClean=!0,0<this.c.length){for(R=0;R<this.c.length;R++){$=this.c[R];var Z=$[0];this.a[Z.toString()]=new A(Z,$[1])}this.arrClean=!0}}f("jspb.Map",M,void 0),M.prototype.g=function(){if(this.arrClean){if(this.b){var R=this.a,$;for($ in R)if(Object.prototype.hasOwnProperty.call(R,$)){var Z=R[$].a;Z&&Z.g()}}}else{for(this.c.length=0,R=B(this),R.sort(),$=0;$<R.length;$++){var xe=this.a[R[$]];(Z=xe.a)&&Z.g(),this.c.push([xe.key,xe.value])}this.arrClean=!0}return this.c},M.prototype.toArray=M.prototype.g,M.prototype.Mc=function(R,$){for(var Z=this.g(),xe=[],$e=0;$e<Z.length;$e++){var et=this.a[Z[$e][0].toString()];k(this,et);var $t=et.a;$t?(C($),xe.push([et.key,$(R,$t)])):xe.push([et.key,et.value])}return xe},M.prototype.toObject=M.prototype.Mc,M.fromObject=function(R,$,Z){$=new M([],$);for(var xe=0;xe<R.length;xe++){var $e=R[xe][0],et=Z(R[xe][1]);$.set($e,et)}return $};function F(R){this.a=0,this.b=R}F.prototype.next=function(){return this.a<this.b.length?{done:!1,value:this.b[this.a++]}:{done:!0,value:void 0}},typeof Symbol<"u"&&(F.prototype[Symbol.iterator]=function(){return this}),M.prototype.Jb=function(){return B(this).length},M.prototype.getLength=M.prototype.Jb,M.prototype.clear=function(){this.a={},this.arrClean=!1},M.prototype.clear=M.prototype.clear,M.prototype.Cb=function(R){R=R.toString();var $=this.a.hasOwnProperty(R);return delete this.a[R],this.arrClean=!1,$},M.prototype.del=M.prototype.Cb,M.prototype.Eb=function(){var R=[],$=B(this);$.sort();for(var Z=0;Z<$.length;Z++){var xe=this.a[$[Z]];R.push([xe.key,xe.value])}return R},M.prototype.getEntryList=M.prototype.Eb,M.prototype.entries=function(){var R=[],$=B(this);$.sort();for(var Z=0;Z<$.length;Z++){var xe=this.a[$[Z]];R.push([xe.key,k(this,xe)])}return new F(R)},M.prototype.entries=M.prototype.entries,M.prototype.keys=function(){var R=[],$=B(this);$.sort();for(var Z=0;Z<$.length;Z++)R.push(this.a[$[Z]].key);return new F(R)},M.prototype.keys=M.prototype.keys,M.prototype.values=function(){var R=[],$=B(this);$.sort();for(var Z=0;Z<$.length;Z++)R.push(k(this,this.a[$[Z]]));return new F(R)},M.prototype.values=M.prototype.values,M.prototype.forEach=function(R,$){var Z=B(this);Z.sort();for(var xe=0;xe<Z.length;xe++){var $e=this.a[Z[xe]];R.call($,k(this,$e),$e.key,this)}},M.prototype.forEach=M.prototype.forEach,M.prototype.set=function(R,$){var Z=new A(R);return this.b?(Z.a=$,Z.value=$.g()):Z.value=$,this.a[R.toString()]=Z,this.arrClean=!1,this},M.prototype.set=M.prototype.set;function k(R,$){return R.b?($.a||($.a=new R.b($.value)),$.a):$.value}M.prototype.get=function(R){if(R=this.a[R.toString()])return k(this,R)},M.prototype.get=M.prototype.get,M.prototype.has=function(R){return R.toString()in this.a},M.prototype.has=M.prototype.has,M.prototype.Jc=function(R,$,Z,xe,$e){var et=B(this);et.sort();for(var $t=0;$t<et.length;$t++){var pn=this.a[et[$t]];$.Va(R),Z.call($,1,pn.key),this.b?xe.call($,2,k(this,pn),$e):xe.call($,2,pn.value),$.Ya()}},M.prototype.serializeBinary=M.prototype.Jc,M.deserializeBinary=function(R,$,Z,xe,$e,et,$t){for(;$.oa()&&!$.bb();){var pn=$.c;pn==1?et=Z.call($):pn==2&&(R.b?(C($e),$t||($t=new R.b),xe.call($,$t,$e)):$t=xe.call($))}C(et!=null),C($t!=null),R.set(et,$t)};function B(R){R=R.a;var $=[],Z;for(Z in R)Object.prototype.hasOwnProperty.call(R,Z)&&$.push(Z);return $}function A(R,$){this.key=R,this.value=$,this.a=void 0}function P(R){if(8192>=R.length)return String.fromCharCode.apply(null,R);for(var $="",Z=0;Z<R.length;Z+=8192)$+=String.fromCharCode.apply(null,w(R,Z,Z+8192));return $}var z={"\0":"\\0","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r"," ":"\\t","\v":"\\x0B",'"':'\\"',"\\":"\\\\","<":"\\u003C"},L={"'":"\\'"},V={},j=null;function U(R,$){$===void 0&&($=0),ae(),$=V[$];for(var Z=[],xe=0;xe<R.length;xe+=3){var $e=R[xe],et=xe+1<R.length,$t=et?R[xe+1]:0,pn=xe+2<R.length,Fn=pn?R[xe+2]:0,Xr=$e>>2;$e=($e&3)<<4|$t>>4,$t=($t&15)<<2|Fn>>6,Fn&=63,pn||(Fn=64,et||($t=64)),Z.push($[Xr],$[$e],$[$t]||"",$[Fn]||"")}return Z.join("")}function J(R){var $=R.length,Z=3*$/4;Z%3?Z=Math.floor(Z):"=.".indexOf(R[$-1])!=-1&&(Z="=.".indexOf(R[$-2])!=-1?Z-2:Z-1);var xe=new Uint8Array(Z),$e=0;return te(R,function(et){xe[$e++]=et}),xe.subarray(0,$e)}function te(R,$){function Z(Fn){for(;xe<R.length;){var Xr=R.charAt(xe++),Lr=j[Xr];if(Lr!=null)return Lr;if(!/^[\s\xa0]*$/.test(Xr))throw Error("Unknown base64 encoding at char: "+Xr)}return Fn}ae();for(var xe=0;;){var $e=Z(-1),et=Z(0),$t=Z(64),pn=Z(64);if(pn===64&&$e===-1)break;$($e<<2|et>>4),$t!=64&&($(et<<4&240|$t>>2),pn!=64&&$($t<<6&192|pn))}}function ae(){if(!j){j={};for(var R="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),$=["+/=","+/","-_=","-_.","-_"],Z=0;5>Z;Z++){var xe=R.concat($[Z].split(""));V[Z]=xe;for(var $e=0;$e<xe.length;$e++){var et=xe[$e];j[et]===void 0&&(j[et]=$e)}}}}f("jspb.ConstBinaryMessage",function(){},void 0),f("jspb.BinaryMessage",function(){},void 0),f("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),f("jspb.BinaryConstants.WireType",{yb:-1,ue:0,xb:1,de:2,qe:3,fe:4,wb:5},void 0),f("jspb.BinaryConstants.FieldTypeToWireType",function(R){switch(R){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),f("jspb.BinaryConstants.INVALID_FIELD_NUMBER",-1,void 0),f("jspb.BinaryConstants.FLOAT32_EPS",1401298464324817e-60,void 0),f("jspb.BinaryConstants.FLOAT32_MIN",11754943508222875e-54,void 0),f("jspb.BinaryConstants.FLOAT32_MAX",34028234663852886e22,void 0),f("jspb.BinaryConstants.FLOAT64_EPS",5e-324,void 0),f("jspb.BinaryConstants.FLOAT64_MIN",22250738585072014e-324,void 0),f("jspb.BinaryConstants.FLOAT64_MAX",17976931348623157e292,void 0),f("jspb.BinaryConstants.TWO_TO_20",1048576,void 0),f("jspb.BinaryConstants.TWO_TO_23",8388608,void 0),f("jspb.BinaryConstants.TWO_TO_31",2147483648,void 0),f("jspb.BinaryConstants.TWO_TO_32",4294967296,void 0),f("jspb.BinaryConstants.TWO_TO_52",4503599627370496,void 0),f("jspb.BinaryConstants.TWO_TO_63",9223372036854776e3,void 0),f("jspb.BinaryConstants.TWO_TO_64",18446744073709552e3,void 0),f("jspb.BinaryConstants.ZERO_HASH","\0\0\0\0\0\0\0\0",void 0);var K=0,Q=0;f("jspb.utils.getSplit64Low",function(){return K},void 0),f("jspb.utils.getSplit64High",function(){return Q},void 0);function oe(R){var $=R>>>0;R=Math.floor((R-$)/4294967296)>>>0,K=$,Q=R}f("jspb.utils.splitUint64",oe,void 0);function ge(R){var $=0>R;R=Math.abs(R);var Z=R>>>0;R=Math.floor((R-Z)/4294967296),R>>>=0,$&&(R=~R>>>0,Z=(~Z>>>0)+1,4294967295<Z&&(Z=0,R++,4294967295<R&&(R=0))),K=Z,Q=R}f("jspb.utils.splitInt64",ge,void 0);function fe(R){var $=0>R;R=2*Math.abs(R),oe(R),R=K;var Z=Q;$&&(R==0?Z==0?Z=R=4294967295:(Z--,R=4294967295):R--),K=R,Q=Z}f("jspb.utils.splitZigzag64",fe,void 0);function ue(R){var $=0>R?1:0;if(R=$?-R:R,R===0)0<1/R?K=Q=0:(Q=0,K=2147483648);else if(isNaN(R))Q=0,K=2147483647;else if(34028234663852886e22<R)Q=0,K=($<<31|2139095040)>>>0;else if(11754943508222875e-54>R)R=Math.round(R/Math.pow(2,-149)),Q=0,K=($<<31|R)>>>0;else{var Z=Math.floor(Math.log(R)/Math.LN2);R*=Math.pow(2,-Z),R=Math.round(8388608*R),16777216<=R&&++Z,Q=0,K=($<<31|Z+127<<23|R&8388607)>>>0}}f("jspb.utils.splitFloat32",ue,void 0);function le(R){var $=0>R?1:0;if(R=$?-R:R,R===0)Q=0<1/R?0:2147483648,K=0;else if(isNaN(R))Q=2147483647,K=4294967295;else if(17976931348623157e292<R)Q=($<<31|2146435072)>>>0,K=0;else if(22250738585072014e-324>R)R/=Math.pow(2,-1074),Q=($<<31|R/4294967296)>>>0,K=R>>>0;else{var Z=R,xe=0;if(2<=Z)for(;2<=Z&&1023>xe;)xe++,Z/=2;else for(;1>Z&&-1022<xe;)Z*=2,xe--;R*=Math.pow(2,-xe),Q=($<<31|xe+1023<<20|1048576*R&1048575)>>>0,K=4503599627370496*R>>>0}}f("jspb.utils.splitFloat64",le,void 0);function ve(R){var $=R.charCodeAt(4),Z=R.charCodeAt(5),xe=R.charCodeAt(6),$e=R.charCodeAt(7);K=R.charCodeAt(0)+(R.charCodeAt(1)<<8)+(R.charCodeAt(2)<<16)+(R.charCodeAt(3)<<24)>>>0,Q=$+(Z<<8)+(xe<<16)+($e<<24)>>>0}f("jspb.utils.splitHash64",ve,void 0);function ne(R,$){return 4294967296*$+(R>>>0)}f("jspb.utils.joinUint64",ne,void 0);function pe(R,$){var Z=$&2147483648;return Z&&(R=~R+1>>>0,$=~$>>>0,R==0&&($=$+1>>>0)),R=ne(R,$),Z?-R:R}f("jspb.utils.joinInt64",pe,void 0);function be(R,$,Z){var xe=$>>31;return Z(R<<1^xe,($<<1|R>>>31)^xe)}f("jspb.utils.toZigzag64",be,void 0);function Re(R,$){return Se(R,$,pe)}f("jspb.utils.joinZigzag64",Re,void 0);function Se(R,$,Z){var xe=-(R&1);return Z((R>>>1|$<<31)^xe,$>>>1^xe)}f("jspb.utils.fromZigzag64",Se,void 0);function Ce(R){var $=2*(R>>31)+1,Z=R>>>23&255;return R&=8388607,Z==255?R?NaN:1/0*$:Z==0?$*Math.pow(2,-149)*R:$*Math.pow(2,Z-150)*(R+Math.pow(2,23))}f("jspb.utils.joinFloat32",Ce,void 0);function ye(R,$){var Z=2*($>>31)+1,xe=$>>>20&2047;return R=4294967296*($&1048575)+R,xe==2047?R?NaN:1/0*Z:xe==0?Z*Math.pow(2,-1074)*R:Z*Math.pow(2,xe-1075)*(R+4503599627370496)}f("jspb.utils.joinFloat64",ye,void 0);function he(R,$){return String.fromCharCode(R>>>0&255,R>>>8&255,R>>>16&255,R>>>24&255,$>>>0&255,$>>>8&255,$>>>16&255,$>>>24&255)}f("jspb.utils.joinHash64",he,void 0),f("jspb.utils.DIGITS","0123456789abcdef".split(""),void 0);function _e(R,$){function Z($e,et){return $e=$e?String($e):"",et?"0000000".slice($e.length)+$e:$e}if(2097151>=$)return""+ne(R,$);var xe=(R>>>24|$<<8)>>>0&16777215;return $=$>>16&65535,R=(R&16777215)+6777216*xe+6710656*$,xe+=8147497*$,$*=2,1e7<=R&&(xe+=Math.floor(R/1e7),R%=1e7),1e7<=xe&&($+=Math.floor(xe/1e7),xe%=1e7),Z($,0)+Z(xe,$)+Z(R,1)}f("jspb.utils.joinUnsignedDecimalString",_e,void 0);function Oe(R,$){var Z=$&2147483648;return Z&&(R=~R+1>>>0,$=~$+(R==0?1:0)>>>0),R=_e(R,$),Z?"-"+R:R}f("jspb.utils.joinSignedDecimalString",Oe,void 0);function De(R,$){ve(R),R=K;var Z=Q;return $?Oe(R,Z):_e(R,Z)}f("jspb.utils.hash64ToDecimalString",De,void 0),f("jspb.utils.hash64ArrayToDecimalStrings",function(R,$){for(var Z=Array(R.length),xe=0;xe<R.length;xe++)Z[xe]=De(R[xe],$);return Z},void 0);function Y(R){function $($t,pn){for(var Fn=0;8>Fn&&($t!==1||0<pn);Fn++)pn=$t*$e[Fn]+pn,$e[Fn]=pn&255,pn>>>=8}function Z(){for(var $t=0;8>$t;$t++)$e[$t]=~$e[$t]&255}C(0<R.length);var xe=!1;R[0]==="-"&&(xe=!0,R=R.slice(1));for(var $e=[0,0,0,0,0,0,0,0],et=0;et<R.length;et++)$(10,R.charCodeAt(et)-48);return xe&&(Z(),$(1,1)),P($e)}f("jspb.utils.decimalStringToHash64",Y,void 0),f("jspb.utils.splitDecimalString",function(R){ve(Y(R))},void 0);function D(R){return String.fromCharCode(10>R?48+R:87+R)}function G(R){return 97<=R?R-97+10:R-48}f("jspb.utils.hash64ToHexString",function(R){var $=Array(18);$[0]="0",$[1]="x";for(var Z=0;8>Z;Z++){var xe=R.charCodeAt(7-Z);$[2*Z+2]=D(xe>>4),$[2*Z+3]=D(xe&15)}return $.join("")},void 0),f("jspb.utils.hexStringToHash64",function(R){R=R.toLowerCase(),C(R.length==18),C(R[0]=="0"),C(R[1]=="x");for(var $="",Z=0;8>Z;Z++)$=String.fromCharCode(16*G(R.charCodeAt(2*Z+2))+G(R.charCodeAt(2*Z+3)))+$;return $},void 0),f("jspb.utils.hash64ToNumber",function(R,$){ve(R),R=K;var Z=Q;return $?pe(R,Z):ne(R,Z)},void 0),f("jspb.utils.numberToHash64",function(R){return ge(R),he(K,Q)},void 0),f("jspb.utils.countVarints",function(R,$,Z){for(var xe=0,$e=$;$e<Z;$e++)xe+=R[$e]>>7;return Z-$-xe},void 0),f("jspb.utils.countVarintFields",function(R,$,Z,xe){var $e=0;if(xe*=8,128>xe)for(;$<Z&&R[$++]==xe;)for($e++;;){var et=R[$++];if(!(et&128))break}else for(;$<Z;){for(et=xe;128<et;){if(R[$]!=(et&127|128))return $e;$++,et>>=7}if(R[$++]!=et)break;for($e++;et=R[$++],(et&128)!=0;);}return $e},void 0);function ie(R,$,Z,xe,$e){var et=0;if(128>xe)for(;$<Z&&R[$++]==xe;)et++,$+=$e;else for(;$<Z;){for(var $t=xe;128<$t;){if(R[$++]!=($t&127|128))return et;$t>>=7}if(R[$++]!=$t)break;et++,$+=$e}return et}f("jspb.utils.countFixed32Fields",function(R,$,Z,xe){return ie(R,$,Z,8*xe+5,4)},void 0),f("jspb.utils.countFixed64Fields",function(R,$,Z,xe){return ie(R,$,Z,8*xe+1,8)},void 0),f("jspb.utils.countDelimitedFields",function(R,$,Z,xe){var $e=0;for(xe=8*xe+2;$<Z;){for(var et=xe;128<et;){if(R[$++]!=(et&127|128))return $e;et>>=7}if(R[$++]!=et)break;$e++;for(var $t=0,pn=1;et=R[$++],$t+=(et&127)*pn,pn*=128,(et&128)!=0;);$+=$t}return $e},void 0),f("jspb.utils.debugBytesToTextFormat",function(R){var $='"';if(R){R=me(R);for(var Z=0;Z<R.length;Z++)$+="\\x",16>R[Z]&&($+="0"),$+=R[Z].toString(16)}return $+'"'},void 0),f("jspb.utils.debugScalarToTextFormat",function(R){if(typeof R=="string"){R=String(R);for(var $=['"'],Z=0;Z<R.length;Z++){var xe=R.charAt(Z),$e=xe.charCodeAt(0),et=Z+1,$t;($t=z[xe])||(31<$e&&127>$e||($e=xe,$e in L?xe=L[$e]:$e in z?xe=L[$e]=z[$e]:($t=$e.charCodeAt(0),31<$t&&127>$t?xe=$e:(256>$t?(xe="\\x",(16>$t||256<$t)&&(xe+="0")):(xe="\\u",4096>$t&&(xe+="0")),xe+=$t.toString(16).toUpperCase()),xe=L[$e]=xe)),$t=xe),$[et]=$t}$.push('"'),R=$.join("")}else R=R.toString();return R},void 0),f("jspb.utils.stringToByteArray",function(R){for(var $=new Uint8Array(R.length),Z=0;Z<R.length;Z++){var xe=R.charCodeAt(Z);if(255<xe)throw Error("Conversion error: string contains codepoint outside of byte range");$[Z]=xe}return $},void 0);function me(R){return R.constructor===Uint8Array?R:R.constructor===ArrayBuffer?new Uint8Array(R):R.constructor===Array?new Uint8Array(R):R.constructor===String?J(R):R instanceof Uint8Array?new Uint8Array(R.buffer,R.byteOffset,R.byteLength):(O("Type not convertible to Uint8Array."),new Uint8Array(0))}f("jspb.utils.byteSourceToUint8Array",me,void 0);function se(R,$,Z){this.b=null,this.a=this.c=this.h=0,this.v=!1,R&&this.H(R,$,Z)}f("jspb.BinaryDecoder",se,void 0);var Be=[];se.getInstanceCacheLength=function(){return Be.length};function Ve(R,$,Z){if(Be.length){var xe=Be.pop();return R&&xe.H(R,$,Z),xe}return new se(R,$,Z)}se.alloc=Ve,se.prototype.Ca=function(){this.clear(),100>Be.length&&Be.push(this)},se.prototype.free=se.prototype.Ca,se.prototype.clone=function(){return Ve(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(R,$,Z){this.b=me(R),this.h=$!==void 0?$:0,this.c=Z!==void 0?this.h+Z: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(R){this.c=R},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(R){this.a=R},se.prototype.setCursor=se.prototype.Ma,se.prototype.advance=function(R){this.a+=R,C(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(R){for(var $=128,Z=0,xe=0,$e=0;4>$e&&128<=$;$e++)$=this.b[this.a++],Z|=($&127)<<7*$e;if(128<=$&&($=this.b[this.a++],Z|=($&127)<<28,xe|=($&127)>>4),128<=$)for($e=0;5>$e&&128<=$;$e++)$=this.b[this.a++],xe|=($&127)<<7*$e+3;if(128>$)return R(Z>>>0,xe>>>0);O("Failed to read varint, encoding is invalid."),this.v=!0},se.prototype.readSplitVarint64=se.prototype.w,se.prototype.ea=function(R){return this.w(function($,Z){return Se($,Z,R)})},se.prototype.readSplitZigzagVarint64=se.prototype.ea,se.prototype.ta=function(R){var $=this.b,Z=this.a;this.a+=8;for(var xe=0,$e=0,et=Z+7;et>=Z;et--)xe=xe<<8|$[et],$e=$e<<8|$[et+4];return R(xe,$e)},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(R){for(;128<R;)this.a--,R>>>=7;this.a--},se.prototype.unskipVarint=se.prototype.mb,se.prototype.o=function(){var R=this.b,$=R[this.a],Z=$&127;return 128>$?(this.a+=1,C(this.a<=this.c),Z):($=R[this.a+1],Z|=($&127)<<7,128>$?(this.a+=2,C(this.a<=this.c),Z):($=R[this.a+2],Z|=($&127)<<14,128>$?(this.a+=3,C(this.a<=this.c),Z):($=R[this.a+3],Z|=($&127)<<21,128>$?(this.a+=4,C(this.a<=this.c),Z):($=R[this.a+4],Z|=($&15)<<28,128>$?(this.a+=5,C(this.a<=this.c),Z>>>0):(this.a+=5,128<=R[this.a++]&&128<=R[this.a++]&&128<=R[this.a++]&&128<=R[this.a++]&&128<=R[this.a++]&&C(!1),C(this.a<=this.c),Z)))))},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 R=this.o();return R>>>1^-(R&1)},se.prototype.readZigzagVarint32=se.prototype.Ia,se.prototype.Ga=function(){return this.w(ne)},se.prototype.readUnsignedVarint64=se.prototype.Ga,se.prototype.Ha=function(){return this.w(_e)},se.prototype.readUnsignedVarint64String=se.prototype.Ha,se.prototype.sa=function(){return this.w(pe)},se.prototype.readSignedVarint64=se.prototype.sa,se.prototype.Fa=function(){return this.w(Oe)},se.prototype.readSignedVarint64String=se.prototype.Fa,se.prototype.Ja=function(){return this.w(Re)},se.prototype.readZigzagVarint64=se.prototype.Ja,se.prototype.fb=function(){return this.ea(he)},se.prototype.readZigzagVarintHash64=se.prototype.fb,se.prototype.Ka=function(){return this.ea(Oe)},se.prototype.readZigzagVarint64String=se.prototype.Ka,se.prototype.Gc=function(){var R=this.b[this.a];return this.a+=1,C(this.a<=this.c),R},se.prototype.readUint8=se.prototype.Gc,se.prototype.Ec=function(){var R=this.b[this.a],$=this.b[this.a+1];return this.a+=2,C(this.a<=this.c),R<<0|$<<8},se.prototype.readUint16=se.prototype.Ec,se.prototype.m=function(){var R=this.b[this.a],$=this.b[this.a+1],Z=this.b[this.a+2],xe=this.b[this.a+3];return this.a+=4,C(this.a<=this.c),(R<<0|$<<8|Z<<16|xe<<24)>>>0},se.prototype.readUint32=se.prototype.m,se.prototype.ga=function(){var R=this.m(),$=this.m();return ne(R,$)},se.prototype.readUint64=se.prototype.ga,se.prototype.ha=function(){var R=this.m(),$=this.m();return _e(R,$)},se.prototype.readUint64String=se.prototype.ha,se.prototype.Xb=function(){var R=this.b[this.a];return this.a+=1,C(this.a<=this.c),R<<24>>24},se.prototype.readInt8=se.prototype.Xb,se.prototype.Vb=function(){var R=this.b[this.a],$=this.b[this.a+1];return this.a+=2,C(this.a<=this.c),(R<<0|$<<8)<<16>>16},se.prototype.readInt16=se.prototype.Vb,se.prototype.P=function(){var R=this.b[this.a],$=this.b[this.a+1],Z=this.b[this.a+2],xe=this.b[this.a+3];return this.a+=4,C(this.a<=this.c),R<<0|$<<8|Z<<16|xe<<24},se.prototype.readInt32=se.prototype.P,se.prototype.ba=function(){var R=this.m(),$=this.m();return pe(R,$)},se.prototype.readInt64=se.prototype.ba,se.prototype.ca=function(){var R=this.m(),$=this.m();return Oe(R,$)},se.prototype.readInt64String=se.prototype.ca,se.prototype.aa=function(){var R=this.m();return Ce(R)},se.prototype.readFloat=se.prototype.aa,se.prototype.Z=function(){var R=this.m(),$=this.m();return ye(R,$)},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(R){var $=this.b,Z=this.a;R=Z+R;for(var xe=[],$e="";Z<R;){var et=$[Z++];if(128>et)xe.push(et);else{if(192>et)continue;if(224>et){var $t=$[Z++];xe.push((et&31)<<6|$t&63)}else if(240>et){$t=$[Z++];var pn=$[Z++];xe.push((et&15)<<12|($t&63)<<6|pn&63)}else if(248>et){$t=$[Z++],pn=$[Z++];var Fn=$[Z++];et=(et&7)<<18|($t&63)<<12|(pn&63)<<6|Fn&63,et-=65536,xe.push((et>>10&1023)+55296,(et&1023)+56320)}}8192<=xe.length&&($e+=String.fromCharCode.apply(null,xe),xe.length=0)}return $e+=P(xe),this.a=Z,$e},se.prototype.readString=se.prototype.fa,se.prototype.Dc=function(){var R=this.o();return this.fa(R)},se.prototype.readStringWithLength=se.prototype.Dc,se.prototype.qa=function(R){if(0>R||this.a+R>this.b.length)return this.v=!0,O("Invalid byte length!"),new Uint8Array(0);var $=this.b.subarray(this.a,this.a+R);return this.a+=R,C(this.a<=this.c),$},se.prototype.readBytes=se.prototype.qa,se.prototype.ia=function(){return this.w(he)},se.prototype.readVarintHash64=se.prototype.ia,se.prototype.$=function(){var R=this.b,$=this.a,Z=R[$],xe=R[$+1],$e=R[$+2],et=R[$+3],$t=R[$+4],pn=R[$+5],Fn=R[$+6];return R=R[$+7],this.a+=8,String.fromCharCode(Z,xe,$e,et,$t,pn,Fn,R)},se.prototype.readFixedHash64=se.prototype.$;function re(R,$,Z){this.a=Ve(R,$,Z),this.O=this.a.B(),this.b=this.c=-1,this.h=!1,this.v=null}f("jspb.BinaryReader",re,void 0);var Me=[];re.clearInstanceCache=function(){Me=[]},re.getInstanceCacheLength=function(){return Me.length};function je(R,$,Z){if(Me.length){var xe=Me.pop();return R&&xe.a.H(R,$,Z),xe}return new re(R,$,Z)}re.alloc=je,re.prototype.zb=je,re.prototype.alloc=re.prototype.zb,re.prototype.Ca=function(){this.a.clear(),this.b=this.c=-1,this.h=!1,this.v=null,100>Me.length&&Me.push(this)},re.prototype.free=re.prototype.Ca,re.prototype.Fb=function(){return this.O},re.prototype.getFieldCursor=re.prototype.Fb,re.prototype.B=function(){return this.a.B()},re.prototype.getCursor=re.prototype.B,re.prototype.Y=function(){return this.a.Y()},re.prototype.getBuffer=re.prototype.Y,re.prototype.Hb=function(){return this.c},re.prototype.getFieldNumber=re.prototype.Hb,re.prototype.Lb=function(){return this.b},re.prototype.getWireType=re.prototype.Lb,re.prototype.Mb=function(){return this.b==2},re.prototype.isDelimited=re.prototype.Mb,re.prototype.bb=function(){return this.b==4},re.prototype.isEndGroup=re.prototype.bb,re.prototype.getError=function(){return this.h||this.a.getError()},re.prototype.getError=re.prototype.getError,re.prototype.H=function(R,$,Z){this.a.H(R,$,Z),this.b=this.c=-1},re.prototype.setBlock=re.prototype.H,re.prototype.reset=function(){this.a.reset(),this.b=this.c=-1},re.prototype.reset=re.prototype.reset,re.prototype.advance=function(R){this.a.advance(R)},re.prototype.advance=re.prototype.advance,re.prototype.oa=function(){if(this.a.ya())return!1;if(this.getError())return O("Decoder hit an error"),!1;this.O=this.a.B();var R=this.a.o(),$=R>>>3;return R&=7,R!=0&&R!=5&&R!=1&&R!=2&&R!=3&&R!=4?(O("Invalid wire type: %s (at position %s)",R,this.O),this.h=!0,!1):(this.c=$,this.b=R,!0)},re.prototype.nextField=re.prototype.oa,re.prototype.Oa=function(){this.a.mb(this.c<<3|this.b)},re.prototype.unskipHeader=re.prototype.Oa,re.prototype.Lc=function(){var R=this.c;for(this.Oa();this.oa()&&this.c==R;)this.C();this.a.ya()||this.Oa()},re.prototype.skipMatchingFields=re.prototype.Lc,re.prototype.lb=function(){this.b!=0?(O("Invalid wire type for skipVarintField"),this.C()):this.a.kb()},re.prototype.skipVarintField=re.prototype.lb,re.prototype.gb=function(){if(this.b!=2)O("Invalid wire type for skipDelimitedField"),this.C();else{var R=this.a.o();this.a.advance(R)}},re.prototype.skipDelimitedField=re.prototype.gb,re.prototype.hb=function(){this.b!=5?(O("Invalid wire type for skipFixed32Field"),this.C()):this.a.advance(4)},re.prototype.skipFixed32Field=re.prototype.hb,re.prototype.ib=function(){this.b!=1?(O("Invalid wire type for skipFixed64Field"),this.C()):this.a.advance(8)},re.prototype.skipFixed64Field=re.prototype.ib,re.prototype.jb=function(){var R=this.c;do{if(!this.oa()){O("Unmatched start-group tag: stream EOF"),this.h=!0;break}if(this.b==4){this.c!=R&&(O("Unmatched end-group tag"),this.h=!0);break}this.C()}while(!0)},re.prototype.skipGroup=re.prototype.jb,re.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:O("Invalid wire encoding for field.")}},re.prototype.skipField=re.prototype.C,re.prototype.Hc=function(R,$){this.v===null&&(this.v={}),C(!this.v[R]),this.v[R]=$},re.prototype.registerReadCallback=re.prototype.Hc,re.prototype.Ic=function(R){return C(this.v!==null),R=this.v[R],C(R),R(this)},re.prototype.runReadCallback=re.prototype.Ic,re.prototype.Yb=function(R,$){C(this.b==2);var Z=this.a.c,xe=this.a.o();xe=this.a.B()+xe,this.a.setEnd(xe),$(R,this),this.a.Ma(xe),this.a.setEnd(Z)},re.prototype.readMessage=re.prototype.Yb,re.prototype.Ub=function(R,$,Z){C(this.b==3),C(this.c==R),Z($,this),this.h||this.b==4||(O("Group submessage did not end with an END_GROUP tag"),this.h=!0)},re.prototype.readGroup=re.prototype.Ub,re.prototype.Gb=function(){C(this.b==2);var R=this.a.o(),$=this.a.B(),Z=$+R;return R=Ve(this.a.Y(),$,R),this.a.Ma(Z),R},re.prototype.getFieldDecoder=re.prototype.Gb,re.prototype.P=function(){return C(this.b==0),this.a.da()},re.prototype.readInt32=re.prototype.P,re.prototype.Wb=function(){return C(this.b==0),this.a.Ea()},re.prototype.readInt32String=re.prototype.Wb,re.prototype.ba=function(){return C(this.b==0),this.a.sa()},re.prototype.readInt64=re.prototype.ba,re.prototype.ca=function(){return C(this.b==0),this.a.Fa()},re.prototype.readInt64String=re.prototype.ca,re.prototype.m=function(){return C(this.b==0),this.a.o()},re.prototype.readUint32=re.prototype.m,re.prototype.Fc=function(){return C(this.b==0),this.a.O()},re.prototype.readUint32String=re.prototype.Fc,re.prototype.ga=function(){return C(this.b==0),this.a.Ga()},re.prototype.readUint64=re.prototype.ga,re.prototype.ha=function(){return C(this.b==0),this.a.Ha()},re.prototype.readUint64String=re.prototype.ha,re.prototype.zc=function(){return C(this.b==0),this.a.Ia()},re.prototype.readSint32=re.prototype.zc,re.prototype.Ac=function(){return C(this.b==0),this.a.Ja()},re.prototype.readSint64=re.prototype.Ac,re.prototype.Bc=function(){return C(this.b==0),this.a.Ka()},re.prototype.readSint64String=re.prototype.Bc,re.prototype.Rb=function(){return C(this.b==5),this.a.m()},re.prototype.readFixed32=re.prototype.Rb,re.prototype.Sb=function(){return C(this.b==1),this.a.ga()},re.prototype.readFixed64=re.prototype.Sb,re.prototype.Tb=function(){return C(this.b==1),this.a.ha()},re.prototype.readFixed64String=re.prototype.Tb,re.prototype.vc=function(){return C(this.b==5),this.a.P()},re.prototype.readSfixed32=re.prototype.vc,re.prototype.wc=function(){return C(this.b==5),this.a.P().toString()},re.prototype.readSfixed32String=re.prototype.wc,re.prototype.xc=function(){return C(this.b==1),this.a.ba()},re.prototype.readSfixed64=re.prototype.xc,re.prototype.yc=function(){return C(this.b==1),this.a.ca()},re.prototype.readSfixed64String=re.prototype.yc,re.prototype.aa=function(){return C(this.b==5),this.a.aa()},re.prototype.readFloat=re.prototype.aa,re.prototype.Z=function(){return C(this.b==1),this.a.Z()},re.prototype.readDouble=re.prototype.Z,re.prototype.pa=function(){return C(this.b==0),!!this.a.o()},re.prototype.readBool=re.prototype.pa,re.prototype.ra=function(){return C(this.b==0),this.a.sa()},re.prototype.readEnum=re.prototype.ra,re.prototype.fa=function(){C(this.b==2);var R=this.a.o();return this.a.fa(R)},re.prototype.readString=re.prototype.fa,re.prototype.qa=function(){C(this.b==2);var R=this.a.o();return this.a.qa(R)},re.prototype.readBytes=re.prototype.qa,re.prototype.ia=function(){return C(this.b==0),this.a.ia()},re.prototype.readVarintHash64=re.prototype.ia,re.prototype.Cc=function(){return C(this.b==0),this.a.fb()},re.prototype.readSintHash64=re.prototype.Cc,re.prototype.w=function(R){return C(this.b==0),this.a.w(R)},re.prototype.readSplitVarint64=re.prototype.w,re.prototype.ea=function(R){return C(this.b==0),this.a.w(function($,Z){return Se($,Z,R)})},re.prototype.readSplitZigzagVarint64=re.prototype.ea,re.prototype.$=function(){return C(this.b==1),this.a.$()},re.prototype.readFixedHash64=re.prototype.$,re.prototype.ta=function(R){return C(this.b==1),this.a.ta(R)},re.prototype.readSplitFixed64=re.prototype.ta;function ke(R,$){C(R.b==2);var Z=R.a.o();Z=R.a.B()+Z;for(var xe=[];R.a.B()<Z;)xe.push($.call(R.a));return xe}re.prototype.gc=function(){return ke(this,this.a.da)},re.prototype.readPackedInt32=re.prototype.gc,re.prototype.hc=function(){return ke(this,this.a.Ea)},re.prototype.readPackedInt32String=re.prototype.hc,re.prototype.ic=function(){return ke(this,this.a.sa)},re.prototype.readPackedInt64=re.prototype.ic,re.prototype.jc=function(){return ke(this,this.a.Fa)},re.prototype.readPackedInt64String=re.prototype.jc,re.prototype.qc=function(){return ke(this,this.a.o)},re.prototype.readPackedUint32=re.prototype.qc,re.prototype.rc=function(){return ke(this,this.a.O)},re.prototype.readPackedUint32String=re.prototype.rc,re.prototype.sc=function(){return ke(this,this.a.Ga)},re.prototype.readPackedUint64=re.prototype.sc,re.prototype.tc=function(){return ke(this,this.a.Ha)},re.prototype.readPackedUint64String=re.prototype.tc,re.prototype.nc=function(){return ke(this,this.a.Ia)},re.prototype.readPackedSint32=re.prototype.nc,re.prototype.oc=function(){return ke(this,this.a.Ja)},re.prototype.readPackedSint64=re.prototype.oc,re.prototype.pc=function(){return ke(this,this.a.Ka)},re.prototype.readPackedSint64String=re.prototype.pc,re.prototype.bc=function(){return ke(this,this.a.m)},re.prototype.readPackedFixed32=re.prototype.bc,re.prototype.cc=function(){return ke(this,this.a.ga)},re.prototype.readPackedFixed64=re.prototype.cc,re.prototype.dc=function(){return ke(this,this.a.ha)},re.prototype.readPackedFixed64String=re.prototype.dc,re.prototype.kc=function(){return ke(this,this.a.P)},re.prototype.readPackedSfixed32=re.prototype.kc,re.prototype.lc=function(){return ke(this,this.a.ba)},re.prototype.readPackedSfixed64=re.prototype.lc,re.prototype.mc=function(){return ke(this,this.a.ca)},re.prototype.readPackedSfixed64String=re.prototype.mc,re.prototype.fc=function(){return ke(this,this.a.aa)},re.prototype.readPackedFloat=re.prototype.fc,re.prototype.$b=function(){return ke(this,this.a.Z)},re.prototype.readPackedDouble=re.prototype.$b,re.prototype.Zb=function(){return ke(this,this.a.pa)},re.prototype.readPackedBool=re.prototype.Zb,re.prototype.ac=function(){return ke(this,this.a.ra)},re.prototype.readPackedEnum=re.prototype.ac,re.prototype.uc=function(){return ke(this,this.a.ia)},re.prototype.readPackedVarintHash64=re.prototype.uc,re.prototype.ec=function(){return ke(this,this.a.$)},re.prototype.readPackedFixedHash64=re.prototype.ec;function Ge(R,$,Z,xe,$e){this.ma=R,this.Ba=$,this.la=Z,this.Na=xe,this.na=$e}f("jspb.ExtensionFieldInfo",Ge,void 0);function Ue(R,$,Z,xe,$e,et){this.Za=R,this.za=$,this.Aa=Z,this.Wa=xe,this.Ab=$e,this.Nb=et}f("jspb.ExtensionFieldBinaryInfo",Ue,void 0),Ge.prototype.F=function(){return!!this.la},Ge.prototype.isMessageType=Ge.prototype.F;function qe(){}f("jspb.Message",qe,void 0),qe.GENERATE_TO_OBJECT=!0,qe.GENERATE_FROM_OBJECT=!0;var At=typeof Uint8Array=="function";qe.prototype.Ib=function(){return this.b},qe.prototype.getJsPbMessageId=qe.prototype.Ib,qe.initialize=function(R,$,Z,xe,$e,et){R.f=null,$||($=Z?[Z]:[]),R.b=Z?String(Z):void 0,R.D=Z===0?-1:0,R.u=$;e:{if(Z=R.u.length,$=-1,Z&&($=Z-1,Z=R.u[$],!(Z===null||typeof Z!="object"||Array.isArray(Z)||At&&Z instanceof Uint8Array))){R.G=$-R.D,R.i=Z;break e}-1<xe?(R.G=Math.max(xe,$+1-R.D),R.i=null):R.G=Number.MAX_VALUE}if(R.a={},$e)for(xe=0;xe<$e.length;xe++)$=$e[xe],$<R.G?($+=R.D,R.u[$]=R.u[$]||at):(pt(R),R.i[$]=R.i[$]||at);if(et&&et.length)for(xe=0;xe<et.length;xe++)_t(R,et[xe])};var at=Object.freeze?Object.freeze([]):[];function pt(R){var $=R.G+R.D;R.u[$]||(R.i=R.u[$]={})}function Ct(R,$,Z){for(var xe=[],$e=0;$e<R.length;$e++)xe[$e]=$.call(R[$e],Z,R[$e]);return xe}qe.toObjectList=Ct,qe.toObjectExtension=function(R,$,Z,xe,$e){for(var et in Z){var $t=Z[et],pn=xe.call(R,$t);if(pn!=null){for(var Fn in $t.Ba)if($t.Ba.hasOwnProperty(Fn))break;$[Fn]=$t.Na?$t.na?Ct(pn,$t.Na,$e):$t.Na($e,pn):pn}}},qe.serializeBinaryExtensions=function(R,$,Z,xe){for(var $e in Z){var et=Z[$e],$t=et.Za;if(!et.Aa)throw Error("Message extension present that was generated without binary serialization support");var pn=xe.call(R,$t);if(pn!=null)if($t.F())if(et.Wa)et.Aa.call($,$t.ma,pn,et.Wa);else throw Error("Message extension present holding submessage without binary support enabled, and message is being serialized to binary format");else et.Aa.call($,$t.ma,pn)}},qe.readBinaryExtension=function(R,$,Z,xe,$e){var et=Z[$.c];if(et){if(Z=et.Za,!et.za)throw Error("Deserializing extension whose generated code does not support binary format");if(Z.F()){var $t=new Z.la;et.za.call($,$t,et.Ab)}else $t=et.za.call($);Z.na&&!et.Nb?($=xe.call(R,Z))?$.push($t):$e.call(R,Z,[$t]):$e.call(R,Z,$t)}else $.C()};function bt(R,$){if($<R.G){$+=R.D;var Z=R.u[$];return Z===at?R.u[$]=[]:Z}if(R.i)return Z=R.i[$],Z===at?R.i[$]=[]:Z}qe.getField=bt,qe.getRepeatedField=function(R,$){return bt(R,$)};function Vt(R,$){return R=bt(R,$),R==null?R:+R}qe.getOptionalFloatingPointField=Vt;function Tt(R,$){return R=bt(R,$),R==null?R:!!R}qe.getBooleanField=Tt,qe.getRepeatedFloatingPointField=function(R,$){var Z=bt(R,$);if(R.a||(R.a={}),!R.a[$]){for(var xe=0;xe<Z.length;xe++)Z[xe]=+Z[xe];R.a[$]=!0}return Z},qe.getRepeatedBooleanField=function(R,$){var Z=bt(R,$);if(R.a||(R.a={}),!R.a[$]){for(var xe=0;xe<Z.length;xe++)Z[xe]=!!Z[xe];R.a[$]=!0}return Z};function Ot(R){return R==null||typeof R=="string"?R:At&&R instanceof Uint8Array?U(R):(O("Cannot coerce to b64 string: "+h(R)),null)}qe.bytesAsB64=Ot;function Ut(R){return R==null||R instanceof Uint8Array?R:typeof R=="string"?J(R):(O("Cannot coerce to Uint8Array: "+h(R)),null)}qe.bytesAsU8=Ut,qe.bytesListAsB64=function(R){return ze(R),R.length&&typeof R[0]!="string"?E(R,Ot):R},qe.bytesListAsU8=function(R){return ze(R),!R.length||R[0]instanceof Uint8Array?R:E(R,Ut)};function ze(R){if(R&&1<R.length){var $=h(R[0]);_(R,function(Z){h(Z)!=$&&O("Inconsistent type in JSPB repeated field array. Got "+h(Z)+" expected "+$)})}}function Ye(R,$,Z){return R=bt(R,$),R??Z}qe.getFieldWithDefault=Ye,qe.getBooleanFieldWithDefault=function(R,$,Z){return R=Tt(R,$),R??Z},qe.getFloatingPointFieldWithDefault=function(R,$,Z){return R=Vt(R,$),R??Z},qe.getFieldProto3=Ye,qe.getMapField=function(R,$,Z,xe){if(R.f||(R.f={}),$ in R.f)return R.f[$];var $e=bt(R,$);if(!$e){if(Z)return;$e=[],He(R,$,$e)}return R.f[$]=new M($e,xe)};function He(R,$,Z){return N(R,qe),$<R.G?R.u[$+R.D]=Z:(pt(R),R.i[$]=Z),R}qe.setField=He,qe.setProto3IntField=function(R,$,Z){return Ze(R,$,Z,0)},qe.setProto3FloatField=function(R,$,Z){return Ze(R,$,Z,0)},qe.setProto3BooleanField=function(R,$,Z){return Ze(R,$,Z,!1)},qe.setProto3StringField=function(R,$,Z){return Ze(R,$,Z,"")},qe.setProto3BytesField=function(R,$,Z){return Ze(R,$,Z,"")},qe.setProto3EnumField=function(R,$,Z){return Ze(R,$,Z,0)},qe.setProto3StringIntField=function(R,$,Z){return Ze(R,$,Z,"0")};function Ze(R,$,Z,xe){return N(R,qe),Z!==xe?He(R,$,Z):$<R.G?R.u[$+R.D]=null:(pt(R),delete R.i[$]),R}qe.addToRepeatedField=function(R,$,Z,xe){return N(R,qe),$=bt(R,$),xe!=null?$.splice(xe,0,Z):$.push(Z),R};function yt(R,$,Z,xe){return N(R,qe),(Z=_t(R,Z))&&Z!==$&&xe!==void 0&&(R.f&&Z in R.f&&(R.f[Z]=void 0),He(R,Z,void 0)),He(R,$,xe)}qe.setOneofField=yt;function _t(R,$){for(var Z,xe,$e=0;$e<$.length;$e++){var et=$[$e],$t=bt(R,et);$t!=null&&(Z=et,xe=$t,He(R,et,void 0))}return Z?(He(R,Z,xe),Z):0}qe.computeOneofCase=_t,qe.getWrapperField=function(R,$,Z,xe){if(R.f||(R.f={}),!R.f[Z]){var $e=bt(R,Z);(xe||$e)&&(R.f[Z]=new $($e))}return R.f[Z]},qe.getRepeatedWrapperField=function(R,$,Z){return Bt(R,$,Z),$=R.f[Z],$==at&&($=R.f[Z]=[]),$};function Bt(R,$,Z){if(R.f||(R.f={}),!R.f[Z]){for(var xe=bt(R,Z),$e=[],et=0;et<xe.length;et++)$e[et]=new $(xe[et]);R.f[Z]=$e}}qe.setWrapperField=function(R,$,Z){N(R,qe),R.f||(R.f={});var xe=Z&&Z.g();return R.f[$]=Z,He(R,$,xe)},qe.setOneofWrapperField=function(R,$,Z,xe){N(R,qe),R.f||(R.f={});var $e=xe&&xe.g();return R.f[$]=xe,yt(R,$,Z,$e)},qe.setRepeatedWrapperField=function(R,$,Z){N(R,qe),R.f||(R.f={}),Z=Z||[];for(var xe=[],$e=0;$e<Z.length;$e++)xe[$e]=Z[$e].g();return R.f[$]=Z,He(R,$,xe)},qe.addToRepeatedWrapperField=function(R,$,Z,xe,$e){Bt(R,xe,$);var et=R.f[$];return et||(et=R.f[$]=[]),Z=Z||new xe,R=bt(R,$),$e!=null?(et.splice($e,0,Z),R.splice($e,0,Z.g())):(et.push(Z),R.push(Z.g())),Z},qe.toMap=function(R,$,Z,xe){for(var $e={},et=0;et<R.length;et++)$e[$.call(R[et])]=Z?Z.call(R[et],xe,R[et]):R[et];return $e};function Nt(R){if(R.f)for(var $ in R.f){var Z=R.f[$];if(Array.isArray(Z))for(var xe=0;xe<Z.length;xe++)Z[xe]&&Z[xe].g();else Z&&Z.g()}}qe.prototype.g=function(){return Nt(this),this.u},qe.prototype.toArray=qe.prototype.g,qe.prototype.toString=function(){return Nt(this),this.u.toString()},qe.prototype.getExtension=function(R){if(this.i){this.f||(this.f={});var $=R.ma;if(R.na){if(R.F())return this.f[$]||(this.f[$]=E(this.i[$]||[],function(Z){return new R.la(Z)})),this.f[$]}else if(R.F())return!this.f[$]&&this.i[$]&&(this.f[$]=new R.la(this.i[$])),this.f[$];return this.i[$]}},qe.prototype.getExtension=qe.prototype.getExtension,qe.prototype.Kc=function(R,$){this.f||(this.f={}),pt(this);var Z=R.ma;return R.na?($=$||[],R.F()?(this.f[Z]=$,this.i[Z]=E($,function(xe){return xe.g()})):this.i[Z]=$):R.F()?(this.f[Z]=$,this.i[Z]=$&&$.g()):this.i[Z]=$,this},qe.prototype.setExtension=qe.prototype.Kc,qe.difference=function(R,$){if(!(R instanceof $.constructor))throw Error("Messages have different types.");var Z=R.g();$=$.g();var xe=[],$e=0,et=Z.length>$.length?Z.length:$.length;for(R.b&&(xe[0]=R.b,$e=1);$e<et;$e++)ht(Z[$e],$[$e])||(xe[$e]=$[$e]);return new R.constructor(xe)},qe.equals=function(R,$){return R==$||!(!R||!$)&&R instanceof $.constructor&&ht(R.g(),$.g())};function vt(R,$){R=R||{},$=$||{};var Z={},xe;for(xe in R)Z[xe]=0;for(xe in $)Z[xe]=0;for(xe in Z)if(!ht(R[xe],$[xe]))return!1;return!0}qe.compareExtensions=vt;function ht(R,$){if(R==$)return!0;if(!m(R)||!m($))return typeof R=="number"&&isNaN(R)||typeof $=="number"&&isNaN($)?String(R)==String($):!1;if(R.constructor!=$.constructor)return!1;if(At&&R.constructor===Uint8Array){if(R.length!=$.length)return!1;for(var Z=0;Z<R.length;Z++)if(R[Z]!=$[Z])return!1;return!0}if(R.constructor===Array){var xe=void 0,$e=void 0,et=Math.max(R.length,$.length);for(Z=0;Z<et;Z++){var $t=R[Z],pn=$[Z];if($t&&$t.constructor==Object&&(C(xe===void 0),C(Z===R.length-1),xe=$t,$t=void 0),pn&&pn.constructor==Object&&(C($e===void 0),C(Z===$.length-1),$e=pn,pn=void 0),!ht($t,pn))return!1}return xe||$e?(xe=xe||{},$e=$e||{},vt(xe,$e)):!0}if(R.constructor===Object)return vt(R,$);throw Error("Invalid type in JSPB array")}qe.compareFields=ht,qe.prototype.Bb=function(){return kt(this)},qe.prototype.cloneMessage=qe.prototype.Bb,qe.prototype.clone=function(){return kt(this)},qe.prototype.clone=qe.prototype.clone,qe.clone=function(R){return kt(R)};function kt(R){return new R.constructor(Et(R.g()))}qe.copyInto=function(R,$){N(R,qe),N($,qe),C(R.constructor==$.constructor,"Copy source and target message should have the same type."),R=kt(R);for(var Z=$.g(),xe=R.g(),$e=Z.length=0;$e<xe.length;$e++)Z[$e]=xe[$e];$.f=R.f,$.i=R.i};function Et(R){if(Array.isArray(R)){for(var $=Array(R.length),Z=0;Z<R.length;Z++){var xe=R[Z];xe!=null&&($[Z]=typeof xe=="object"?Et(C(xe)):xe)}return $}if(At&&R instanceof Uint8Array)return new Uint8Array(R);$={};for(Z in R)xe=R[Z],xe!=null&&($[Z]=typeof xe=="object"?Et(C(xe)):xe);return $}qe.registerMessageType=function(R,$){$.we=R};var Yt={dump:function(R){return N(R,qe,"jspb.Message instance expected"),C(R.getExtension,"Only unobfuscated and unoptimized compilation modes supported."),Yt.X(R)}};f("jspb.debug.dump",Yt.dump,void 0),Yt.X=function(R){var $=h(R);if($=="number"||$=="string"||$=="boolean"||$=="null"||$=="undefined"||typeof Uint8Array<"u"&&R instanceof Uint8Array)return R;if($=="array")return x(R),E(R,Yt.X);if(R instanceof M){var Z={};R=R.entries();for(var xe=R.next();!xe.done;xe=R.next())Z[xe.value[0]]=Yt.X(xe.value[1]);return Z}N(R,qe,"Only messages expected: "+R),$=R.constructor;var $e={$name:$.name||$.displayName};for(pn in $.prototype){var et=/^get([A-Z]\w*)/.exec(pn);if(et&&pn!="getExtension"&&pn!="getJsPbMessageId"){var $t="has"+et[1];(!R[$t]||R[$t]())&&($t=R[pn](),$e[Yt.$a(et[1])]=Yt.X($t))}}if(R.extensionObject_)return $e.$extensions="Recursive dumping of extensions not supported in compiled code. Switch to uncompiled or dump extension object directly",$e;for(xe in $.extensions)if(/^\d+$/.test(xe)){$t=$.extensions[xe];var pn=R.getExtension($t);et=void 0,$t=$t.Ba;var Fn=[],Xr=0;for(et in $t)Fn[Xr++]=et;et=Fn[0],pn!=null&&(Z||(Z=$e.$extensions={}),Z[Yt.$a(et)]=Yt.X(pn))}return $e},Yt.$a=function(R){return R.replace(/^[A-Z]/,function($){return $.toLowerCase()})};function ct(){this.a=[]}f("jspb.BinaryEncoder",ct,void 0),ct.prototype.length=function(){return this.a.length},ct.prototype.length=ct.prototype.length,ct.prototype.end=function(){var R=this.a;return this.a=[],R},ct.prototype.end=ct.prototype.end,ct.prototype.l=function(R,$){for(C(R==Math.floor(R)),C($==Math.floor($)),C(0<=R&&4294967296>R),C(0<=$&&4294967296>$);0<$||127<R;)this.a.push(R&127|128),R=(R>>>7|$<<25)>>>0,$>>>=7;this.a.push(R)},ct.prototype.writeSplitVarint64=ct.prototype.l,ct.prototype.A=function(R,$){C(R==Math.floor(R)),C($==Math.floor($)),C(0<=R&&4294967296>R),C(0<=$&&4294967296>$),this.s(R),this.s($)},ct.prototype.writeSplitFixed64=ct.prototype.A,ct.prototype.j=function(R){for(C(R==Math.floor(R)),C(0<=R&&4294967296>R);127<R;)this.a.push(R&127|128),R>>>=7;this.a.push(R)},ct.prototype.writeUnsignedVarint32=ct.prototype.j,ct.prototype.M=function(R){if(C(R==Math.floor(R)),C(-2147483648<=R&&2147483648>R),0<=R)this.j(R);else{for(var $=0;9>$;$++)this.a.push(R&127|128),R>>=7;this.a.push(1)}},ct.prototype.writeSignedVarint32=ct.prototype.M,ct.prototype.va=function(R){C(R==Math.floor(R)),C(0<=R&&18446744073709552e3>R),ge(R),this.l(K,Q)},ct.prototype.writeUnsignedVarint64=ct.prototype.va,ct.prototype.ua=function(R){C(R==Math.floor(R)),C(-9223372036854776e3<=R&&9223372036854776e3>R),ge(R),this.l(K,Q)},ct.prototype.writeSignedVarint64=ct.prototype.ua,ct.prototype.wa=function(R){C(R==Math.floor(R)),C(-2147483648<=R&&2147483648>R),this.j((R<<1^R>>31)>>>0)},ct.prototype.writeZigzagVarint32=ct.prototype.wa,ct.prototype.xa=function(R){C(R==Math.floor(R)),C(-9223372036854776e3<=R&&9223372036854776e3>R),fe(R),this.l(K,Q)},ct.prototype.writeZigzagVarint64=ct.prototype.xa,ct.prototype.Ta=function(R){this.W(Y(R))},ct.prototype.writeZigzagVarint64String=ct.prototype.Ta,ct.prototype.W=function(R){var $=this;ve(R),be(K,Q,function(Z,xe){$.l(Z>>>0,xe>>>0)})},ct.prototype.writeZigzagVarintHash64=ct.prototype.W,ct.prototype.be=function(R){C(R==Math.floor(R)),C(0<=R&&256>R),this.a.push(R>>>0&255)},ct.prototype.writeUint8=ct.prototype.be,ct.prototype.ae=function(R){C(R==Math.floor(R)),C(0<=R&&65536>R),this.a.push(R>>>0&255),this.a.push(R>>>8&255)},ct.prototype.writeUint16=ct.prototype.ae,ct.prototype.s=function(R){C(R==Math.floor(R)),C(0<=R&&4294967296>R),this.a.push(R>>>0&255),this.a.push(R>>>8&255),this.a.push(R>>>16&255),this.a.push(R>>>24&255)},ct.prototype.writeUint32=ct.prototype.s,ct.prototype.V=function(R){C(R==Math.floor(R)),C(0<=R&&18446744073709552e3>R),oe(R),this.s(K),this.s(Q)},ct.prototype.writeUint64=ct.prototype.V,ct.prototype.Qc=function(R){C(R==Math.floor(R)),C(-128<=R&&128>R),this.a.push(R>>>0&255)},ct.prototype.writeInt8=ct.prototype.Qc,ct.prototype.Pc=function(R){C(R==Math.floor(R)),C(-32768<=R&&32768>R),this.a.push(R>>>0&255),this.a.push(R>>>8&255)},ct.prototype.writeInt16=ct.prototype.Pc,ct.prototype.S=function(R){C(R==Math.floor(R)),C(-2147483648<=R&&2147483648>R),this.a.push(R>>>0&255),this.a.push(R>>>8&255),this.a.push(R>>>16&255),this.a.push(R>>>24&255)},ct.prototype.writeInt32=ct.prototype.S,ct.prototype.T=function(R){C(R==Math.floor(R)),C(-9223372036854776e3<=R&&9223372036854776e3>R),ge(R),this.A(K,Q)},ct.prototype.writeInt64=ct.prototype.T,ct.prototype.ka=function(R){C(R==Math.floor(R)),C(-9223372036854776e3<=+R&&9223372036854776e3>+R),ve(Y(R)),this.A(K,Q)},ct.prototype.writeInt64String=ct.prototype.ka,ct.prototype.L=function(R){C(R===1/0||R===-1/0||isNaN(R)||-34028234663852886e22<=R&&34028234663852886e22>=R),ue(R),this.s(K)},ct.prototype.writeFloat=ct.prototype.L,ct.prototype.J=function(R){C(R===1/0||R===-1/0||isNaN(R)||-17976931348623157e292<=R&&17976931348623157e292>=R),le(R),this.s(K),this.s(Q)},ct.prototype.writeDouble=ct.prototype.J,ct.prototype.I=function(R){C(typeof R=="boolean"||typeof R=="number"),this.a.push(R?1:0)},ct.prototype.writeBool=ct.prototype.I,ct.prototype.R=function(R){C(R==Math.floor(R)),C(-2147483648<=R&&2147483648>R),this.M(R)},ct.prototype.writeEnum=ct.prototype.R,ct.prototype.ja=function(R){this.a.push.apply(this.a,R)},ct.prototype.writeBytes=ct.prototype.ja,ct.prototype.N=function(R){ve(R),this.l(K,Q)},ct.prototype.writeVarintHash64=ct.prototype.N,ct.prototype.K=function(R){ve(R),this.s(K),this.s(Q)},ct.prototype.writeFixedHash64=ct.prototype.K,ct.prototype.U=function(R){var $=this.a.length;T(R);for(var Z=0;Z<R.length;Z++){var xe=R.charCodeAt(Z);if(128>xe)this.a.push(xe);else if(2048>xe)this.a.push(xe>>6|192),this.a.push(xe&63|128);else if(65536>xe)if(55296<=xe&&56319>=xe&&Z+1<R.length){var $e=R.charCodeAt(Z+1);56320<=$e&&57343>=$e&&(xe=1024*(xe-55296)+$e-56320+65536,this.a.push(xe>>18|240),this.a.push(xe>>12&63|128),this.a.push(xe>>6&63|128),this.a.push(xe&63|128),Z++)}else this.a.push(xe>>12|224),this.a.push(xe>>6&63|128),this.a.push(xe&63|128)}return this.a.length-$},ct.prototype.writeString=ct.prototype.U;function Rt(R,$){this.lo=R,this.hi=$}f("jspb.arith.UInt64",Rt,void 0),Rt.prototype.cmp=function(R){return this.hi<R.hi||this.hi==R.hi&&this.lo<R.lo?-1:this.hi==R.hi&&this.lo==R.lo?0:1},Rt.prototype.cmp=Rt.prototype.cmp,Rt.prototype.La=function(){return new Rt((this.lo>>>1|(this.hi&1)<<31)>>>0,this.hi>>>1>>>0)},Rt.prototype.rightShift=Rt.prototype.La,Rt.prototype.Da=function(){return new Rt(this.lo<<1>>>0,(this.hi<<1|this.lo>>>31)>>>0)},Rt.prototype.leftShift=Rt.prototype.Da,Rt.prototype.cb=function(){return!!(this.hi&2147483648)},Rt.prototype.msb=Rt.prototype.cb,Rt.prototype.Ob=function(){return!!(this.lo&1)},Rt.prototype.lsb=Rt.prototype.Ob,Rt.prototype.Ua=function(){return this.lo==0&&this.hi==0},Rt.prototype.zero=Rt.prototype.Ua,Rt.prototype.add=function(R){return new Rt((this.lo+R.lo&4294967295)>>>0>>>0,((this.hi+R.hi&4294967295)>>>0)+(4294967296<=this.lo+R.lo?1:0)>>>0)},Rt.prototype.add=Rt.prototype.add,Rt.prototype.sub=function(R){return new Rt((this.lo-R.lo&4294967295)>>>0>>>0,((this.hi-R.hi&4294967295)>>>0)-(0>this.lo-R.lo?1:0)>>>0)},Rt.prototype.sub=Rt.prototype.sub;function Ht(R,$){var Z=R&65535;R>>>=16;var xe=$&65535,$e=$>>>16;for($=Z*xe+65536*(Z*$e&65535)+65536*(R*xe&65535),Z=R*$e+(Z*$e>>>16)+(R*xe>>>16);4294967296<=$;)$-=4294967296,Z+=1;return new Rt($>>>0,Z>>>0)}Rt.mul32x32=Ht,Rt.prototype.eb=function(R){var $=Ht(this.lo,R);return R=Ht(this.hi,R),R.hi=R.lo,R.lo=0,$.add(R)},Rt.prototype.mul=Rt.prototype.eb,Rt.prototype.Xa=function(R){if(R==0)return[];var $=new Rt(0,0),Z=new Rt(this.lo,this.hi);R=new Rt(R,0);for(var xe=new Rt(1,0);!R.cb();)R=R.Da(),xe=xe.Da();for(;!xe.Ua();)0>=R.cmp(Z)&&($=$.add(xe),Z=Z.sub(R)),R=R.La(),xe=xe.La();return[$,Z]},Rt.prototype.div=Rt.prototype.Xa,Rt.prototype.toString=function(){for(var R="",$=this;!$.Ua();){$=$.Xa(10);var Z=$[0];R=$[1].lo+R,$=Z}return R==""&&(R="0"),R},Rt.prototype.toString=Rt.prototype.toString;function wt(R){for(var $=new Rt(0,0),Z=new Rt(0,0),xe=0;xe<R.length;xe++){if("0">R[xe]||"9"<R[xe])return null;Z.lo=parseInt(R[xe],10),$=$.eb(10).add(Z)}return $}Rt.fromString=wt,Rt.prototype.clone=function(){return new Rt(this.lo,this.hi)},Rt.prototype.clone=Rt.prototype.clone;function St(R,$){this.lo=R,this.hi=$}f("jspb.arith.Int64",St,void 0),St.prototype.add=function(R){return new St((this.lo+R.lo&4294967295)>>>0>>>0,((this.hi+R.hi&4294967295)>>>0)+(4294967296<=this.lo+R.lo?1:0)>>>0)},St.prototype.add=St.prototype.add,St.prototype.sub=function(R){return new St((this.lo-R.lo&4294967295)>>>0>>>0,((this.hi-R.hi&4294967295)>>>0)-(0>this.lo-R.lo?1:0)>>>0)},St.prototype.sub=St.prototype.sub,St.prototype.clone=function(){return new St(this.lo,this.hi)},St.prototype.clone=St.prototype.clone,St.prototype.toString=function(){var R=(this.hi&2147483648)!=0,$=new Rt(this.lo,this.hi);return R&&($=new Rt(0,0).sub($)),(R?"-":"")+$.toString()},St.prototype.toString=St.prototype.toString;function jt(R){var $=0<R.length&&R[0]=="-";return $&&(R=R.substring(1)),R=wt(R),R===null?null:($&&(R=new Rt(0,0).sub(R)),new St(R.lo,R.hi))}St.fromString=jt;function Pe(){this.c=[],this.b=0,this.a=new ct,this.h=[]}f("jspb.BinaryWriter",Pe,void 0);function Pt(R,$){var Z=R.a.end();R.c.push(Z),R.c.push($),R.b+=Z.length+$.length}function rt(R,$){return It(R,$,2),$=R.a.end(),R.c.push($),R.b+=$.length,$.push(R.b),$}function Mt(R,$){var Z=$.pop();for(Z=R.b+R.a.length()-Z,C(0<=Z);127<Z;)$.push(Z&127|128),Z>>>=7,R.b++;$.push(Z),R.b++}Pe.prototype.pb=function(R,$,Z){Pt(this,R.subarray($,Z))},Pe.prototype.writeSerializedMessage=Pe.prototype.pb,Pe.prototype.Pb=function(R,$,Z){R!=null&&$!=null&&Z!=null&&this.pb(R,$,Z)},Pe.prototype.maybeWriteSerializedMessage=Pe.prototype.Pb,Pe.prototype.reset=function(){this.c=[],this.a.end(),this.b=0,this.h=[]},Pe.prototype.reset=Pe.prototype.reset,Pe.prototype.ab=function(){C(this.h.length==0);for(var R=new Uint8Array(this.b+this.a.length()),$=this.c,Z=$.length,xe=0,$e=0;$e<Z;$e++){var et=$[$e];R.set(et,xe),xe+=et.length}return $=this.a.end(),R.set($,xe),xe+=$.length,C(xe==R.length),this.c=[R],R},Pe.prototype.getResultBuffer=Pe.prototype.ab,Pe.prototype.Kb=function(R){return U(this.ab(),R)},Pe.prototype.getResultBase64String=Pe.prototype.Kb,Pe.prototype.Va=function(R){this.h.push(rt(this,R))},Pe.prototype.beginSubMessage=Pe.prototype.Va,Pe.prototype.Ya=function(){C(0<=this.h.length),Mt(this,this.h.pop())},Pe.prototype.endSubMessage=Pe.prototype.Ya;function It(R,$,Z){C(1<=$&&$==Math.floor($)),R.a.j(8*$+Z)}Pe.prototype.Nc=function(R,$,Z){switch(R){case 1:this.J($,Z);break;case 2:this.L($,Z);break;case 3:this.T($,Z);break;case 4:this.V($,Z);break;case 5:this.S($,Z);break;case 6:this.Qa($,Z);break;case 7:this.Pa($,Z);break;case 8:this.I($,Z);break;case 9:this.U($,Z);break;case 10:O("Group field type not supported in writeAny()");break;case 11:O("Message field type not supported in writeAny()");break;case 12:this.ja($,Z);break;case 13:this.s($,Z);break;case 14:this.R($,Z);break;case 15:this.Ra($,Z);break;case 16:this.Sa($,Z);break;case 17:this.rb($,Z);break;case 18:this.sb($,Z);break;case 30:this.K($,Z);break;case 31:this.N($,Z);break;default:O("Invalid field type in writeAny()")}},Pe.prototype.writeAny=Pe.prototype.Nc;function xn(R,$,Z){Z!=null&&(It(R,$,0),R.a.j(Z))}function Hn(R,$,Z){Z!=null&&(It(R,$,0),R.a.M(Z))}Pe.prototype.S=function(R,$){$!=null&&(C(-2147483648<=$&&2147483648>$),Hn(this,R,$))},Pe.prototype.writeInt32=Pe.prototype.S,Pe.prototype.ob=function(R,$){$!=null&&($=parseInt($,10),C(-2147483648<=$&&2147483648>$),Hn(this,R,$))},Pe.prototype.writeInt32String=Pe.prototype.ob,Pe.prototype.T=function(R,$){$!=null&&(C(-9223372036854776e3<=$&&9223372036854776e3>$),$!=null&&(It(this,R,0),this.a.ua($)))},Pe.prototype.writeInt64=Pe.prototype.T,Pe.prototype.ka=function(R,$){$!=null&&($=jt($),It(this,R,0),this.a.l($.lo,$.hi))},Pe.prototype.writeInt64String=Pe.prototype.ka,Pe.prototype.s=function(R,$){$!=null&&(C(0<=$&&4294967296>$),xn(this,R,$))},Pe.prototype.writeUint32=Pe.prototype.s,Pe.prototype.ub=function(R,$){$!=null&&($=parseInt($,10),C(0<=$&&4294967296>$),xn(this,R,$))},Pe.prototype.writeUint32String=Pe.prototype.ub,Pe.prototype.V=function(R,$){$!=null&&(C(0<=$&&18446744073709552e3>$),$!=null&&(It(this,R,0),this.a.va($)))},Pe.prototype.writeUint64=Pe.prototype.V,Pe.prototype.vb=function(R,$){$!=null&&($=wt($),It(this,R,0),this.a.l($.lo,$.hi))},Pe.prototype.writeUint64String=Pe.prototype.vb,Pe.prototype.rb=function(R,$){$!=null&&(C(-2147483648<=$&&2147483648>$),$!=null&&(It(this,R,0),this.a.wa($)))},Pe.prototype.writeSint32=Pe.prototype.rb,Pe.prototype.sb=function(R,$){$!=null&&(C(-9223372036854776e3<=$&&9223372036854776e3>$),$!=null&&(It(this,R,0),this.a.xa($)))},Pe.prototype.writeSint64=Pe.prototype.sb,Pe.prototype.$d=function(R,$){$!=null&&$!=null&&(It(this,R,0),this.a.W($))},Pe.prototype.writeSintHash64=Pe.prototype.$d,Pe.prototype.Zd=function(R,$){$!=null&&$!=null&&(It(this,R,0),this.a.Ta($))},Pe.prototype.writeSint64String=Pe.prototype.Zd,Pe.prototype.Pa=function(R,$){$!=null&&(C(0<=$&&4294967296>$),It(this,R,5),this.a.s($))},Pe.prototype.writeFixed32=Pe.prototype.Pa,Pe.prototype.Qa=function(R,$){$!=null&&(C(0<=$&&18446744073709552e3>$),It(this,R,1),this.a.V($))},Pe.prototype.writeFixed64=Pe.prototype.Qa,Pe.prototype.nb=function(R,$){$!=null&&($=wt($),It(this,R,1),this.a.A($.lo,$.hi))},Pe.prototype.writeFixed64String=Pe.prototype.nb,Pe.prototype.Ra=function(R,$){$!=null&&(C(-2147483648<=$&&2147483648>$),It(this,R,5),this.a.S($))},Pe.prototype.writeSfixed32=Pe.prototype.Ra,Pe.prototype.Sa=function(R,$){$!=null&&(C(-9223372036854776e3<=$&&9223372036854776e3>$),It(this,R,1),this.a.T($))},Pe.prototype.writeSfixed64=Pe.prototype.Sa,Pe.prototype.qb=function(R,$){$!=null&&($=jt($),It(this,R,1),this.a.A($.lo,$.hi))},Pe.prototype.writeSfixed64String=Pe.prototype.qb,Pe.prototype.L=function(R,$){$!=null&&(It(this,R,5),this.a.L($))},Pe.prototype.writeFloat=Pe.prototype.L,Pe.prototype.J=function(R,$){$!=null&&(It(this,R,1),this.a.J($))},Pe.prototype.writeDouble=Pe.prototype.J,Pe.prototype.I=function(R,$){$!=null&&(C(typeof $=="boolean"||typeof $=="number"),It(this,R,0),this.a.I($))},Pe.prototype.writeBool=Pe.prototype.I,Pe.prototype.R=function(R,$){$!=null&&(C(-2147483648<=$&&2147483648>$),It(this,R,0),this.a.M($))},Pe.prototype.writeEnum=Pe.prototype.R,Pe.prototype.U=function(R,$){$!=null&&(R=rt(this,R),this.a.U($),Mt(this,R))},Pe.prototype.writeString=Pe.prototype.U,Pe.prototype.ja=function(R,$){$!=null&&($=me($),It(this,R,2),this.a.j($.length),Pt(this,$))},Pe.prototype.writeBytes=Pe.prototype.ja,Pe.prototype.Rc=function(R,$,Z){$!=null&&(R=rt(this,R),Z($,this),Mt(this,R))},Pe.prototype.writeMessage=Pe.prototype.Rc,Pe.prototype.Sc=function(R,$,Z){$!=null&&(It(this,1,3),It(this,2,0),this.a.M(R),R=rt(this,3),Z($,this),Mt(this,R),It(this,1,4))},Pe.prototype.writeMessageSet=Pe.prototype.Sc,Pe.prototype.Oc=function(R,$,Z){$!=null&&(It(this,R,3),Z($,this),It(this,R,4))},Pe.prototype.writeGroup=Pe.prototype.Oc,Pe.prototype.K=function(R,$){$!=null&&(C($.length==8),It(this,R,1),this.a.K($))},Pe.prototype.writeFixedHash64=Pe.prototype.K,Pe.prototype.N=function(R,$){$!=null&&(C($.length==8),It(this,R,0),this.a.N($))},Pe.prototype.writeVarintHash64=Pe.prototype.N,Pe.prototype.A=function(R,$,Z){It(this,R,1),this.a.A($,Z)},Pe.prototype.writeSplitFixed64=Pe.prototype.A,Pe.prototype.l=function(R,$,Z){It(this,R,0),this.a.l($,Z)},Pe.prototype.writeSplitVarint64=Pe.prototype.l,Pe.prototype.tb=function(R,$,Z){It(this,R,0);var xe=this.a;be($,Z,function($e,et){xe.l($e>>>0,et>>>0)})},Pe.prototype.writeSplitZigzagVarint64=Pe.prototype.tb,Pe.prototype.Ed=function(R,$){if($!=null)for(var Z=0;Z<$.length;Z++)Hn(this,R,$[Z])},Pe.prototype.writeRepeatedInt32=Pe.prototype.Ed,Pe.prototype.Fd=function(R,$){if($!=null)for(var Z=0;Z<$.length;Z++)this.ob(R,$[Z])},Pe.prototype.writeRepeatedInt32String=Pe.prototype.Fd,Pe.prototype.Gd=function(R,$){if($!=null)for(var Z=0;Z<$.length;Z++){var xe=$[Z];xe!=null&&(It(this,R,0),this.a.ua(xe))}},Pe.prototype.writeRepeatedInt64=Pe.prototype.Gd,Pe.prototype.Qd=function(R,$,Z,xe){if($!=null)for(var $e=0;$e<$.length;$e++)this.A(R,Z($[$e]),xe($[$e]))},Pe.prototype.writeRepeatedSplitFixed64=Pe.prototype.Qd,Pe.prototype.Rd=function(R,$,Z,xe){if($!=null)for(var $e=0;$e<$.length;$e++)this.l(R,Z($[$e]),xe($[$e]))},Pe.prototype.writeRepeatedSplitVarint64=Pe.prototype.Rd,Pe.prototype.Sd=function(R,$,Z,xe){if($!=null)for(var $e=0;$e<$.length;$e++)this.tb(R,Z($[$e]),xe($[$e]))},Pe.prototype.writeRepeatedSplitZigzagVarint64=Pe.prototype.Sd,Pe.prototype.Hd=function(R,$){if($!=null)for(var Z=0;Z<$.length;Z++)this.ka(R,$[Z])},Pe.prototype.writeRepeatedInt64String=Pe.prototype.Hd,Pe.prototype.Ud=function(R,$){if($!=null)for(var Z=0;Z<$.length;Z++)xn(this,R,$[Z])},Pe.prototype.writeRepeatedUint32=Pe.prototype.Ud,Pe.prototype.Vd=function(R,$){if($!=null)for(var Z=0;Z<$.length;Z++)this.ub(R,$[Z])},Pe.prototype.writeRepeatedUint32String=Pe.prototype.Vd,Pe.prototype.Wd=function(R,$){if($!=null)for(var Z=0;Z<$.length;Z++){var xe=$[Z];xe!=null&&(It(this,R,0),this.a.va(xe))}},Pe.prototype.writeRepeatedUint64=Pe.prototype.Wd,Pe.prototype.Xd=function(R,$){if($!=null)for(var Z=0;Z<$.length;Z++)this.vb(R,$[Z])},Pe.prototype.writeRepeatedUint64String=Pe.prototype.Xd,Pe.prototype.Md=function(R,$){if($!=null)for(var Z=0;Z<$.length;Z++){var xe=$[Z];xe!=null&&(It(this,R,0),this.a.wa(xe))}},Pe.prototype.writeRepeatedSint32=Pe.prototype.Md,Pe.prototype.Nd=function(R,$){if($!=null)for(var Z=0;Z<$.length;Z++){var xe=$[Z];xe!=null&&(It(this,R,0),this.a.xa(xe))}},Pe.prototype.writeRepeatedSint64=Pe.prototype.Nd,Pe.prototype.Od=function(R,$){if($!=null)for(var Z=0;Z<$.length;Z++){var xe=$[Z];xe!=null&&(It(this,R,0),this.a.Ta(xe))}},Pe.prototype.writeRepeatedSint64String=Pe.prototype.Od,Pe.prototype.Pd=function(R,$){if($!=null)for(var Z=0;Z<$.length;Z++){var xe=$[Z];xe!=null&&(It(this,R,0),this.a.W(xe))}},Pe.prototype.writeRepeatedSintHash64=Pe.prototype.Pd,Pe.prototype.yd=function(R,$){if($!=null)for(var Z=0;Z<$.length;Z++)this.Pa(R,$[Z])},Pe.prototype.writeRepeatedFixed32=Pe.prototype.yd,Pe.prototype.zd=function(R,$){if($!=null)for(var Z=0;Z<$.length;Z++)this.Qa(R,$[Z])},Pe.prototype.writeRepeatedFixed64=Pe.prototype.zd,Pe.prototype.Ad=function(R,$){if($!=null)for(var Z=0;Z<$.length;Z++)this.nb(R,$[Z])},Pe.prototype.writeRepeatedFixed64String=Pe.prototype.Ad,Pe.prototype.Jd=function(R,$){if($!=null)for(var Z=0;Z<$.length;Z++)this.Ra(R,$[Z])},Pe.prototype.writeRepeatedSfixed32=Pe.prototype.Jd,Pe.prototype.Kd=function(R,$){if($!=null)for(var Z=0;Z<$.length;Z++)this.Sa(R,$[Z])},Pe.prototype.writeRepeatedSfixed64=Pe.prototype.Kd,Pe.prototype.Ld=function(R,$){if($!=null)for(var Z=0;Z<$.length;Z++)this.qb(R,$[Z])},Pe.prototype.writeRepeatedSfixed64String=Pe.prototype.Ld,Pe.prototype.Cd=function(R,$){if($!=null)for(var Z=0;Z<$.length;Z++)this.L(R,$[Z])},Pe.prototype.writeRepeatedFloat=Pe.prototype.Cd,Pe.prototype.wd=function(R,$){if($!=null)for(var Z=0;Z<$.length;Z++)this.J(R,$[Z])},Pe.prototype.writeRepeatedDouble=Pe.prototype.wd,Pe.prototype.ud=function(R,$){if($!=null)for(var Z=0;Z<$.length;Z++)this.I(R,$[Z])},Pe.prototype.writeRepeatedBool=Pe.prototype.ud,Pe.prototype.xd=function(R,$){if($!=null)for(var Z=0;Z<$.length;Z++)this.R(R,$[Z])},Pe.prototype.writeRepeatedEnum=Pe.prototype.xd,Pe.prototype.Td=function(R,$){if($!=null)for(var Z=0;Z<$.length;Z++)this.U(R,$[Z])},Pe.prototype.writeRepeatedString=Pe.prototype.Td,Pe.prototype.vd=function(R,$){if($!=null)for(var Z=0;Z<$.length;Z++)this.ja(R,$[Z])},Pe.prototype.writeRepeatedBytes=Pe.prototype.vd,Pe.prototype.Id=function(R,$,Z){if($!=null)for(var xe=0;xe<$.length;xe++){var $e=rt(this,R);Z($[xe],this),Mt(this,$e)}},Pe.prototype.writeRepeatedMessage=Pe.prototype.Id,Pe.prototype.Dd=function(R,$,Z){if($!=null)for(var xe=0;xe<$.length;xe++)It(this,R,3),Z($[xe],this),It(this,R,4)},Pe.prototype.writeRepeatedGroup=Pe.prototype.Dd,Pe.prototype.Bd=function(R,$){if($!=null)for(var Z=0;Z<$.length;Z++)this.K(R,$[Z])},Pe.prototype.writeRepeatedFixedHash64=Pe.prototype.Bd,Pe.prototype.Yd=function(R,$){if($!=null)for(var Z=0;Z<$.length;Z++)this.N(R,$[Z])},Pe.prototype.writeRepeatedVarintHash64=Pe.prototype.Yd,Pe.prototype.ad=function(R,$){if($!=null&&$.length){R=rt(this,R);for(var Z=0;Z<$.length;Z++)this.a.M($[Z]);Mt(this,R)}},Pe.prototype.writePackedInt32=Pe.prototype.ad,Pe.prototype.bd=function(R,$){if($!=null&&$.length){R=rt(this,R);for(var Z=0;Z<$.length;Z++)this.a.M(parseInt($[Z],10));Mt(this,R)}},Pe.prototype.writePackedInt32String=Pe.prototype.bd,Pe.prototype.cd=function(R,$){if($!=null&&$.length){R=rt(this,R);for(var Z=0;Z<$.length;Z++)this.a.ua($[Z]);Mt(this,R)}},Pe.prototype.writePackedInt64=Pe.prototype.cd,Pe.prototype.md=function(R,$,Z,xe){if($!=null){R=rt(this,R);for(var $e=0;$e<$.length;$e++)this.a.A(Z($[$e]),xe($[$e]));Mt(this,R)}},Pe.prototype.writePackedSplitFixed64=Pe.prototype.md,Pe.prototype.nd=function(R,$,Z,xe){if($!=null){R=rt(this,R);for(var $e=0;$e<$.length;$e++)this.a.l(Z($[$e]),xe($[$e]));Mt(this,R)}},Pe.prototype.writePackedSplitVarint64=Pe.prototype.nd,Pe.prototype.od=function(R,$,Z,xe){if($!=null){R=rt(this,R);for(var $e=this.a,et=0;et<$.length;et++)be(Z($[et]),xe($[et]),function($t,pn){$e.l($t>>>0,pn>>>0)});Mt(this,R)}},Pe.prototype.writePackedSplitZigzagVarint64=Pe.prototype.od,Pe.prototype.dd=function(R,$){if($!=null&&$.length){R=rt(this,R);for(var Z=0;Z<$.length;Z++){var xe=jt($[Z]);this.a.l(xe.lo,xe.hi)}Mt(this,R)}},Pe.prototype.writePackedInt64String=Pe.prototype.dd,Pe.prototype.pd=function(R,$){if($!=null&&$.length){R=rt(this,R);for(var Z=0;Z<$.length;Z++)this.a.j($[Z]);Mt(this,R)}},Pe.prototype.writePackedUint32=Pe.prototype.pd,Pe.prototype.qd=function(R,$){if($!=null&&$.length){R=rt(this,R);for(var Z=0;Z<$.length;Z++)this.a.j(parseInt($[Z],10));Mt(this,R)}},Pe.prototype.writePackedUint32String=Pe.prototype.qd,Pe.prototype.rd=function(R,$){if($!=null&&$.length){R=rt(this,R);for(var Z=0;Z<$.length;Z++)this.a.va($[Z]);Mt(this,R)}},Pe.prototype.writePackedUint64=Pe.prototype.rd,Pe.prototype.sd=function(R,$){if($!=null&&$.length){R=rt(this,R);for(var Z=0;Z<$.length;Z++){var xe=wt($[Z]);this.a.l(xe.lo,xe.hi)}Mt(this,R)}},Pe.prototype.writePackedUint64String=Pe.prototype.sd,Pe.prototype.hd=function(R,$){if($!=null&&$.length){R=rt(this,R);for(var Z=0;Z<$.length;Z++)this.a.wa($[Z]);Mt(this,R)}},Pe.prototype.writePackedSint32=Pe.prototype.hd,Pe.prototype.jd=function(R,$){if($!=null&&$.length){R=rt(this,R);for(var Z=0;Z<$.length;Z++)this.a.xa($[Z]);Mt(this,R)}},Pe.prototype.writePackedSint64=Pe.prototype.jd,Pe.prototype.kd=function(R,$){if($!=null&&$.length){R=rt(this,R);for(var Z=0;Z<$.length;Z++)this.a.W(Y($[Z]));Mt(this,R)}},Pe.prototype.writePackedSint64String=Pe.prototype.kd,Pe.prototype.ld=function(R,$){if($!=null&&$.length){R=rt(this,R);for(var Z=0;Z<$.length;Z++)this.a.W($[Z]);Mt(this,R)}},Pe.prototype.writePackedSintHash64=Pe.prototype.ld,Pe.prototype.Wc=function(R,$){if($!=null&&$.length)for(It(this,R,2),this.a.j(4*$.length),R=0;R<$.length;R++)this.a.s($[R])},Pe.prototype.writePackedFixed32=Pe.prototype.Wc,Pe.prototype.Xc=function(R,$){if($!=null&&$.length)for(It(this,R,2),this.a.j(8*$.length),R=0;R<$.length;R++)this.a.V($[R])},Pe.prototype.writePackedFixed64=Pe.prototype.Xc,Pe.prototype.Yc=function(R,$){if($!=null&&$.length)for(It(this,R,2),this.a.j(8*$.length),R=0;R<$.length;R++){var Z=wt($[R]);this.a.A(Z.lo,Z.hi)}},Pe.prototype.writePackedFixed64String=Pe.prototype.Yc,Pe.prototype.ed=function(R,$){if($!=null&&$.length)for(It(this,R,2),this.a.j(4*$.length),R=0;R<$.length;R++)this.a.S($[R])},Pe.prototype.writePackedSfixed32=Pe.prototype.ed,Pe.prototype.fd=function(R,$){if($!=null&&$.length)for(It(this,R,2),this.a.j(8*$.length),R=0;R<$.length;R++)this.a.T($[R])},Pe.prototype.writePackedSfixed64=Pe.prototype.fd,Pe.prototype.gd=function(R,$){if($!=null&&$.length)for(It(this,R,2),this.a.j(8*$.length),R=0;R<$.length;R++)this.a.ka($[R])},Pe.prototype.writePackedSfixed64String=Pe.prototype.gd,Pe.prototype.$c=function(R,$){if($!=null&&$.length)for(It(this,R,2),this.a.j(4*$.length),R=0;R<$.length;R++)this.a.L($[R])},Pe.prototype.writePackedFloat=Pe.prototype.$c,Pe.prototype.Uc=function(R,$){if($!=null&&$.length)for(It(this,R,2),this.a.j(8*$.length),R=0;R<$.length;R++)this.a.J($[R])},Pe.prototype.writePackedDouble=Pe.prototype.Uc,Pe.prototype.Tc=function(R,$){if($!=null&&$.length)for(It(this,R,2),this.a.j($.length),R=0;R<$.length;R++)this.a.I($[R])},Pe.prototype.writePackedBool=Pe.prototype.Tc,Pe.prototype.Vc=function(R,$){if($!=null&&$.length){R=rt(this,R);for(var Z=0;Z<$.length;Z++)this.a.R($[Z]);Mt(this,R)}},Pe.prototype.writePackedEnum=Pe.prototype.Vc,Pe.prototype.Zc=function(R,$){if($!=null&&$.length)for(It(this,R,2),this.a.j(8*$.length),R=0;R<$.length;R++)this.a.K($[R])},Pe.prototype.writePackedFixedHash64=Pe.prototype.Zc,Pe.prototype.td=function(R,$){if($!=null&&$.length){R=rt(this,R);for(var Z=0;Z<$.length;Z++)this.a.N($[Z]);Mt(this,R)}},Pe.prototype.writePackedVarintHash64=Pe.prototype.td,e.debug=Yt,e.Map=M,e.Message=qe,e.BinaryReader=re,e.BinaryWriter=Pe,e.ExtensionFieldInfo=Ge,e.ExtensionFieldBinaryInfo=Ue,e.exportSymbol=g,e.inherits=v,e.object={extend:b},e.typeOf=h})(In);const Uje=di(In),nW=$4({__proto__:null,default:Uje},[In]);var rW=nW,Tj=(function(){return this?this:typeof window<"u"?window:typeof Tj<"u"?Tj:typeof self<"u"?self:Function("return this")()}).call(null);rW.exportSymbol("proto.User",null,Tj);proto.User=function(e){In.Message.initialize(this,e,0,-1,null,null)};rW.inherits(proto.User,In.Message);rW.DEBUG&&!COMPILED&&(proto.User.displayName="proto.User");In.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:In.Message.getFieldWithDefault(t,1,""),nickname:In.Message.getFieldWithDefault(t,2,""),avatar:In.Message.getFieldWithDefault(t,3,""),type:In.Message.getFieldWithDefault(t,4,""),extra:In.Message.getFieldWithDefault(t,5,"")};return e&&(n.$jspbMessageInstance=t),n});proto.User.deserializeBinary=function(e){var t=new In.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 In.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 In.Message.getFieldWithDefault(this,1,"")};proto.User.prototype.setUid=function(e){return In.Message.setProto3StringField(this,1,e)};proto.User.prototype.getNickname=function(){return In.Message.getFieldWithDefault(this,2,"")};proto.User.prototype.setNickname=function(e){return In.Message.setProto3StringField(this,2,e)};proto.User.prototype.getAvatar=function(){return In.Message.getFieldWithDefault(this,3,"")};proto.User.prototype.setAvatar=function(e){return In.Message.setProto3StringField(this,3,e)};proto.User.prototype.getType=function(){return In.Message.getFieldWithDefault(this,4,"")};proto.User.prototype.setType=function(e){return In.Message.setProto3StringField(this,4,e)};proto.User.prototype.getExtra=function(){return In.Message.getFieldWithDefault(this,5,"")};proto.User.prototype.setExtra=function(e){return In.Message.setProto3StringField(this,5,e)};const vte=proto;var iW=nW,xj=(function(){return this?this:typeof window<"u"?window:typeof xj<"u"?xj:typeof self<"u"?self:Function("return this")()}).call(null);iW.exportSymbol("proto.Thread",null,xj);proto.Thread=function(e){In.Message.initialize(this,e,0,-1,null,null)};iW.inherits(proto.Thread,In.Message);iW.DEBUG&&!COMPILED&&(proto.Thread.displayName="proto.Thread");In.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:In.Message.getFieldWithDefault(t,1,""),topic:In.Message.getFieldWithDefault(t,2,""),type:In.Message.getFieldWithDefault(t,3,""),state:In.Message.getFieldWithDefault(t,4,""),user:(n=t.getUser())&&proto.User.toObject(e,n),extra:In.Message.getFieldWithDefault(t,6,"")};return e&&(r.$jspbMessageInstance=t),r});proto.Thread.deserializeBinary=function(e){var t=new In.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 In.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 In.Message.getFieldWithDefault(this,1,"")};proto.Thread.prototype.setUid=function(e){return In.Message.setProto3StringField(this,1,e)};proto.Thread.prototype.getTopic=function(){return In.Message.getFieldWithDefault(this,2,"")};proto.Thread.prototype.setTopic=function(e){return In.Message.setProto3StringField(this,2,e)};proto.Thread.prototype.getType=function(){return In.Message.getFieldWithDefault(this,3,"")};proto.Thread.prototype.setType=function(e){return In.Message.setProto3StringField(this,3,e)};proto.Thread.prototype.getState=function(){return In.Message.getFieldWithDefault(this,4,"")};proto.Thread.prototype.setState=function(e){return In.Message.setProto3StringField(this,4,e)};proto.Thread.prototype.getUser=function(){return In.Message.getWrapperField(this,proto.User,5)};proto.Thread.prototype.setUser=function(e){return In.Message.setWrapperField(this,5,e)};proto.Thread.prototype.clearUser=function(){return this.setUser(void 0)};proto.Thread.prototype.hasUser=function(){return In.Message.getField(this,5)!=null};proto.Thread.prototype.getExtra=function(){return In.Message.getFieldWithDefault(this,6,"")};proto.Thread.prototype.setExtra=function(e){return In.Message.setProto3StringField(this,6,e)};const zje=proto;var oW=nW,Oj=(function(){return this?this:typeof window<"u"?window:typeof Oj<"u"?Oj:typeof self<"u"?self:Function("return this")()}).call(null);oW.exportSymbol("proto.Message",null,Oj);proto.Message=function(e){In.Message.initialize(this,e,0,-1,null,null)};oW.inherits(proto.Message,In.Message);oW.DEBUG&&!COMPILED&&(proto.Message.displayName="proto.Message");In.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:In.Message.getFieldWithDefault(t,1,""),type:In.Message.getFieldWithDefault(t,2,""),content:In.Message.getFieldWithDefault(t,3,""),status:In.Message.getFieldWithDefault(t,4,""),createdat:In.Message.getFieldWithDefault(t,5,""),client:In.Message.getFieldWithDefault(t,6,""),thread:(n=t.getThread())&&proto.Thread.toObject(e,n),user:(n=t.getUser())&&proto.User.toObject(e,n),extra:In.Message.getFieldWithDefault(t,9,"")};return e&&(r.$jspbMessageInstance=t),r});proto.Message.deserializeBinary=function(e){var t=new In.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 In.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 In.Message.getFieldWithDefault(this,1,"")};proto.Message.prototype.setUid=function(e){return In.Message.setProto3StringField(this,1,e)};proto.Message.prototype.getType=function(){return In.Message.getFieldWithDefault(this,2,"")};proto.Message.prototype.setType=function(e){return In.Message.setProto3StringField(this,2,e)};proto.Message.prototype.getContent=function(){return In.Message.getFieldWithDefault(this,3,"")};proto.Message.prototype.setContent=function(e){return In.Message.setProto3StringField(this,3,e)};proto.Message.prototype.getStatus=function(){return In.Message.getFieldWithDefault(this,4,"")};proto.Message.prototype.setStatus=function(e){return In.Message.setProto3StringField(this,4,e)};proto.Message.prototype.getCreatedat=function(){return In.Message.getFieldWithDefault(this,5,"")};proto.Message.prototype.setCreatedat=function(e){return In.Message.setProto3StringField(this,5,e)};proto.Message.prototype.getClient=function(){return In.Message.getFieldWithDefault(this,6,"")};proto.Message.prototype.setClient=function(e){return In.Message.setProto3StringField(this,6,e)};proto.Message.prototype.getThread=function(){return In.Message.getWrapperField(this,proto.Thread,7)};proto.Message.prototype.setThread=function(e){return In.Message.setWrapperField(this,7,e)};proto.Message.prototype.clearThread=function(){return this.setThread(void 0)};proto.Message.prototype.hasThread=function(){return In.Message.getField(this,7)!=null};proto.Message.prototype.getUser=function(){return In.Message.getWrapperField(this,proto.User,8)};proto.Message.prototype.setUser=function(e){return In.Message.setWrapperField(this,8,e)};proto.Message.prototype.clearUser=function(){return this.setUser(void 0)};proto.Message.prototype.hasUser=function(){return In.Message.getField(this,8)!=null};proto.Message.prototype.getExtra=function(){return In.Message.getFieldWithDefault(this,9,"")};proto.Message.prototype.setExtra=function(e){return In.Message.setProto3StringField(this,9,e)};const Gbe=proto,Vje="modulepreload",Gje=function(e){return"/notebase/"+e},bte={},aW=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=Gje(l),l in bte)return;bte[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":Vje,c||(d.as="script"),d.crossOrigin="",d.href=l,s&&d.setAttribute("nonce",s),document.head.appendChild(d),c)return new Promise((f,h)=>{d.addEventListener("load",f),d.addEventListener("error",()=>h(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 Wbe;function En(){return Wbe.apply(null,arguments)}function Wje(e){Wbe=e}function Sd(e){return e instanceof Array||Object.prototype.toString.call(e)==="[object Array]"}function sv(e){return e!=null&&Object.prototype.toString.call(e)==="[object Object]"}function pi(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function sW(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 pl(e){return e===void 0}function oh(e){return typeof e=="number"||Object.prototype.toString.call(e)==="[object Number]"}function qx(e){return e instanceof Date||Object.prototype.toString.call(e)==="[object Date]"}function qbe(e,t){var n=[],r,i=e.length;for(r=0;r<i;++r)n.push(t(e[r],r));return n}function Im(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 Vf(e,t,n,r){return gye(e,t,n,r,!0).utc()}function qje(){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 Nr(e){return e._pf==null&&(e._pf=qje()),e._pf}var Rj;Array.prototype.some?Rj=Array.prototype.some:Rj=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 lW(e){var t=null,n=!1,r=e._d&&!isNaN(e._d.getTime());if(r&&(t=Nr(e),n=Rj.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 MP(e){var t=Vf(NaN);return e!=null?Im(Nr(t),e):Nr(t).userInvalidated=!0,t}var yte=En.momentProperties=[],Z8=!1;function cW(e,t){var n,r,i,o=yte.length;if(pl(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),pl(t._i)||(e._i=t._i),pl(t._f)||(e._f=t._f),pl(t._l)||(e._l=t._l),pl(t._strict)||(e._strict=t._strict),pl(t._tzm)||(e._tzm=t._tzm),pl(t._isUTC)||(e._isUTC=t._isUTC),pl(t._offset)||(e._offset=t._offset),pl(t._pf)||(e._pf=Nr(t)),pl(t._locale)||(e._locale=t._locale),o>0)for(n=0;n<o;n++)r=yte[n],i=t[r],pl(i)||(e[r]=i);return e}function Yx(e){cW(this,e),this._d=new Date(e._d!=null?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),Z8===!1&&(Z8=!0,En.updateOffset(this),Z8=!1)}function Ed(e){return e instanceof Yx||e!=null&&e._isAMomentObject!=null}function Ybe(e){En.suppressDeprecationWarnings===!1&&typeof console<"u"&&console.warn&&console.warn("Deprecation warning: "+e)}function wu(e,t){var n=!0;return Im(function(){if(En.deprecationHandler!=null&&En.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)}Ybe(e+`
Arguments: `+Array.prototype.slice.call(r).join("")+`
`+new Error().stack),n=!1}return t.apply(this,arguments)},t)}var _te={};function Kbe(e,t){En.deprecationHandler!=null&&En.deprecationHandler(e,t),_te[e]||(Ybe(t),_te[e]=!0)}En.suppressDeprecationWarnings=!1;En.deprecationHandler=null;function Gf(e){return typeof Function<"u"&&e instanceof Function||Object.prototype.toString.call(e)==="[object Function]"}function Yje(e){var t,n;for(n in e)pi(e,n)&&(t=e[n],Gf(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 Ij(e,t){var n=Im({},e),r;for(r in t)pi(t,r)&&(sv(e[r])&&sv(t[r])?(n[r]={},Im(n[r],e[r]),Im(n[r],t[r])):t[r]!=null?n[r]=t[r]:delete n[r]);for(r in e)pi(e,r)&&!pi(t,r)&&sv(e[r])&&(n[r]=Im({},n[r]));return n}function uW(e){e!=null&&this.set(e)}var Aj;Object.keys?Aj=Object.keys:Aj=function(e){var t,n=[];for(t in e)pi(e,t)&&n.push(t);return n};var Kje={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function Qje(e,t,n){var r=this._calendar[e]||this._calendar.sameElse;return Gf(r)?r.call(t,n):r}function Lf(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 dW=/(\[[^\[]*\])|(\\)?([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,lR=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,J8={},by={};function or(e,t,n,r){var i=r;typeof r=="string"&&(i=function(){return this[r]()}),e&&(by[e]=i),t&&(by[t[0]]=function(){return Lf(i.apply(this,arguments),t[1],t[2])}),n&&(by[n]=function(){return this.localeData().ordinal(i.apply(this,arguments),e)})}function Xje(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function Zje(e){var t=e.match(dW),n,r;for(n=0,r=t.length;n<r;n++)by[t[n]]?t[n]=by[t[n]]:t[n]=Xje(t[n]);return function(i){var o="",a;for(a=0;a<r;a++)o+=Gf(t[a])?t[a].call(i,e):t[a];return o}}function yA(e,t){return e.isValid()?(t=Qbe(t,e.localeData()),J8[t]=J8[t]||Zje(t),J8[t](e)):e.localeData().invalidDate()}function Qbe(e,t){var n=5;function r(i){return t.longDateFormat(i)||i}for(lR.lastIndex=0;n>=0&&lR.test(e);)e=e.replace(lR,r),lR.lastIndex=0,n-=1;return e}var Jje={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 eHe(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.match(dW).map(function(r){return r==="MMMM"||r==="MM"||r==="DD"||r==="dddd"?r.slice(1):r}).join(""),this._longDateFormat[e])}var tHe="Invalid date";function nHe(){return this._invalidDate}var rHe="%d",iHe=/\d{1,2}/;function oHe(e){return this._ordinal.replace("%d",e)}var aHe={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 sHe(e,t,n,r){var i=this._relativeTime[n];return Gf(i)?i(e,t,n,r):i.replace(/%d/i,e)}function lHe(e,t){var n=this._relativeTime[e>0?"future":"past"];return Gf(n)?n(t):n.replace(/%s/i,t)}var Ste={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 Tu(e){return typeof e=="string"?Ste[e]||Ste[e.toLowerCase()]:void 0}function fW(e){var t={},n,r;for(r in e)pi(e,r)&&(n=Tu(r),n&&(t[n]=e[r]));return t}var cHe={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 uHe(e){var t=[],n;for(n in e)pi(e,n)&&t.push({unit:n,priority:cHe[n]});return t.sort(function(r,i){return r.priority-i.priority}),t}var Xbe=/\d/,Ic=/\d\d/,Zbe=/\d{3}/,pW=/\d{4}/,kP=/[+-]?\d{6}/,fo=/\d\d?/,Jbe=/\d\d\d\d?/,eye=/\d\d\d\d\d\d?/,PP=/\d{1,3}/,hW=/\d{1,4}/,DP=/[+-]?\d{1,6}/,cS=/\d+/,LP=/[+-]?\d+/,dHe=/Z|[+-]\d\d:?\d\d/gi,$P=/Z|[+-]\d\d(?::?\d\d)?/gi,fHe=/[+-]?\d+(\.\d{1,3})?/,Kx=/[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,uS=/^[1-9]\d?/,mW=/^([1-9]\d|\d)/,aM;aM={};function jn(e,t,n){aM[e]=Gf(t)?t:function(r,i){return r&&n?n:t}}function pHe(e,t){return pi(aM,e)?aM[e](t._strict,t._locale):new RegExp(hHe(e))}function hHe(e){return Wp(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(t,n,r,i,o){return n||r||i||o}))}function Wp(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function Zc(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function Wr(e){var t=+e,n=0;return t!==0&&isFinite(t)&&(n=Zc(t)),n}var Nj={};function Li(e,t){var n,r=t,i;for(typeof e=="string"&&(e=[e]),oh(t)&&(r=function(o,a){a[t]=Wr(o)}),i=e.length,n=0;n<i;n++)Nj[e[n]]=r}function Qx(e,t){Li(e,function(n,r,i,o){i._w=i._w||{},t(n,i._w,i,o)})}function mHe(e,t,n){t!=null&&pi(Nj,e)&&Nj[e](t,n._a,n,e)}function FP(e){return e%4===0&&e%100!==0||e%400===0}var Is=0,Hp=1,gf=2,Ca=3,rd=4,Up=5,L1=6,gHe=7,vHe=8;or("Y",0,0,function(){var e=this.year();return e<=9999?Lf(e,4):"+"+e});or(0,["YY",2],0,function(){return this.year()%100});or(0,["YYYY",4],0,"year");or(0,["YYYYY",5],0,"year");or(0,["YYYYYY",6,!0],0,"year");jn("Y",LP);jn("YY",fo,Ic);jn("YYYY",hW,pW);jn("YYYYY",DP,kP);jn("YYYYYY",DP,kP);Li(["YYYYY","YYYYYY"],Is);Li("YYYY",function(e,t){t[Is]=e.length===2?En.parseTwoDigitYear(e):Wr(e)});Li("YY",function(e,t){t[Is]=En.parseTwoDigitYear(e)});Li("Y",function(e,t){t[Is]=parseInt(e,10)});function iw(e){return FP(e)?366:365}En.parseTwoDigitYear=function(e){return Wr(e)+(Wr(e)>68?1900:2e3)};var tye=dS("FullYear",!0);function bHe(){return FP(this.year())}function dS(e,t){return function(n){return n!=null?(nye(this,e,n),En.updateOffset(this,t),this):mT(this,e)}}function mT(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 nye(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&&!FP(o)?28:s,i?r.setUTCFullYear(o,a,s):r.setFullYear(o,a,s)}}function yHe(e){return e=Tu(e),Gf(this[e])?this[e]():this}function _He(e,t){if(typeof e=="object"){e=fW(e);var n=uHe(e),r,i=n.length;for(r=0;r<i;r++)this[n[r].unit](e[n[r].unit])}else if(e=Tu(e),Gf(this[e]))return this[e](t);return this}function SHe(e,t){return(e%t+t)%t}var Xo;Array.prototype.indexOf?Xo=Array.prototype.indexOf:Xo=function(e){var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return-1};function gW(e,t){if(isNaN(e)||isNaN(t))return NaN;var n=SHe(t,12);return e+=(t-n)/12,n===1?FP(e)?29:28:31-n%7%2}or("M",["MM",2],"Mo",function(){return this.month()+1});or("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)});or("MMMM",0,0,function(e){return this.localeData().months(this,e)});jn("M",fo,uS);jn("MM",fo,Ic);jn("MMM",function(e,t){return t.monthsShortRegex(e)});jn("MMMM",function(e,t){return t.monthsRegex(e)});Li(["M","MM"],function(e,t){t[Hp]=Wr(e)-1});Li(["MMM","MMMM"],function(e,t,n,r){var i=n._locale.monthsParse(e,r,n._strict);i!=null?t[Hp]=i:Nr(n).invalidMonth=e});var EHe="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),rye="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),iye=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,CHe=Kx,wHe=Kx;function THe(e,t){return e?Sd(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||iye).test(t)?"format":"standalone"][e.month()]:Sd(this._months)?this._months:this._months.standalone}function xHe(e,t){return e?Sd(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[iye.test(t)?"format":"standalone"][e.month()]:Sd(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function OHe(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=Vf([2e3,r]),this._shortMonthsParse[r]=this.monthsShort(o,"").toLocaleLowerCase(),this._longMonthsParse[r]=this.months(o,"").toLocaleLowerCase();return n?t==="MMM"?(i=Xo.call(this._shortMonthsParse,a),i!==-1?i:null):(i=Xo.call(this._longMonthsParse,a),i!==-1?i:null):t==="MMM"?(i=Xo.call(this._shortMonthsParse,a),i!==-1?i:(i=Xo.call(this._longMonthsParse,a),i!==-1?i:null)):(i=Xo.call(this._longMonthsParse,a),i!==-1?i:(i=Xo.call(this._shortMonthsParse,a),i!==-1?i:null))}function RHe(e,t,n){var r,i,o;if(this._monthsParseExact)return OHe.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),r=0;r<12;r++){if(i=Vf([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 oye(e,t){if(!e.isValid())return e;if(typeof t=="string"){if(/^\d+$/.test(t))t=Wr(t);else if(t=e.localeData().monthsParse(t),!oh(t))return e}var n=t,r=e.date();return r=r<29?r:Math.min(r,gW(e.year(),n)),e._isUTC?e._d.setUTCMonth(n,r):e._d.setMonth(n,r),e}function aye(e){return e!=null?(oye(this,e),En.updateOffset(this,!0),this):mT(this,"Month")}function IHe(){return gW(this.year(),this.month())}function AHe(e){return this._monthsParseExact?(pi(this,"_monthsRegex")||sye.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(pi(this,"_monthsShortRegex")||(this._monthsShortRegex=CHe),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)}function NHe(e){return this._monthsParseExact?(pi(this,"_monthsRegex")||sye.call(this),e?this._monthsStrictRegex:this._monthsRegex):(pi(this,"_monthsRegex")||(this._monthsRegex=wHe),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)}function sye(){function e(l,c){return c.length-l.length}var t=[],n=[],r=[],i,o,a,s;for(i=0;i<12;i++)o=Vf([2e3,i]),a=Wp(this.monthsShort(o,"")),s=Wp(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 MHe(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 gT(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 sM(e,t,n){var r=7+t-n,i=(7+gT(e,0,r).getUTCDay()-t)%7;return-i+r-1}function lye(e,t,n,r,i){var o=(7+n-r)%7,a=sM(e,r,i),s=1+7*(t-1)+o+a,l,c;return s<=0?(l=e-1,c=iw(l)+s):s>iw(e)?(l=e+1,c=s-iw(e)):(l=e,c=s),{year:l,dayOfYear:c}}function vT(e,t,n){var r=sM(e.year(),t,n),i=Math.floor((e.dayOfYear()-r-1)/7)+1,o,a;return i<1?(a=e.year()-1,o=i+qp(a,t,n)):i>qp(e.year(),t,n)?(o=i-qp(e.year(),t,n),a=e.year()+1):(a=e.year(),o=i),{week:o,year:a}}function qp(e,t,n){var r=sM(e,t,n),i=sM(e+1,t,n);return(iw(e)-r+i)/7}or("w",["ww",2],"wo","week");or("W",["WW",2],"Wo","isoWeek");jn("w",fo,uS);jn("ww",fo,Ic);jn("W",fo,uS);jn("WW",fo,Ic);Qx(["w","ww","W","WW"],function(e,t,n,r){t[r.substr(0,1)]=Wr(e)});function kHe(e){return vT(e,this._week.dow,this._week.doy).week}var PHe={dow:0,doy:6};function DHe(){return this._week.dow}function LHe(){return this._week.doy}function $He(e){var t=this.localeData().week(this);return e==null?t:this.add((e-t)*7,"d")}function FHe(e){var t=vT(this,1,4).week;return e==null?t:this.add((e-t)*7,"d")}or("d",0,"do","day");or("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)});or("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)});or("dddd",0,0,function(e){return this.localeData().weekdays(this,e)});or("e",0,0,"weekday");or("E",0,0,"isoWeekday");jn("d",fo);jn("e",fo);jn("E",fo);jn("dd",function(e,t){return t.weekdaysMinRegex(e)});jn("ddd",function(e,t){return t.weekdaysShortRegex(e)});jn("dddd",function(e,t){return t.weekdaysRegex(e)});Qx(["dd","ddd","dddd"],function(e,t,n,r){var i=n._locale.weekdaysParse(e,r,n._strict);i!=null?t.d=i:Nr(n).invalidWeekday=e});Qx(["d","e","E"],function(e,t,n,r){t[r]=Wr(e)});function BHe(e,t){return typeof e!="string"?e:isNaN(e)?(e=t.weekdaysParse(e),typeof e=="number"?e:null):parseInt(e,10)}function jHe(e,t){return typeof e=="string"?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function vW(e,t){return e.slice(t,7).concat(e.slice(0,t))}var HHe="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),cye="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),UHe="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),zHe=Kx,VHe=Kx,GHe=Kx;function WHe(e,t){var n=Sd(this._weekdays)?this._weekdays:this._weekdays[e&&e!==!0&&this._weekdays.isFormat.test(t)?"format":"standalone"];return e===!0?vW(n,this._week.dow):e?n[e.day()]:n}function qHe(e){return e===!0?vW(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function YHe(e){return e===!0?vW(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function KHe(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=Vf([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=Xo.call(this._weekdaysParse,a),i!==-1?i:null):t==="ddd"?(i=Xo.call(this._shortWeekdaysParse,a),i!==-1?i:null):(i=Xo.call(this._minWeekdaysParse,a),i!==-1?i:null):t==="dddd"?(i=Xo.call(this._weekdaysParse,a),i!==-1||(i=Xo.call(this._shortWeekdaysParse,a),i!==-1)?i:(i=Xo.call(this._minWeekdaysParse,a),i!==-1?i:null)):t==="ddd"?(i=Xo.call(this._shortWeekdaysParse,a),i!==-1||(i=Xo.call(this._weekdaysParse,a),i!==-1)?i:(i=Xo.call(this._minWeekdaysParse,a),i!==-1?i:null)):(i=Xo.call(this._minWeekdaysParse,a),i!==-1||(i=Xo.call(this._weekdaysParse,a),i!==-1)?i:(i=Xo.call(this._shortWeekdaysParse,a),i!==-1?i:null))}function QHe(e,t,n){var r,i,o;if(this._weekdaysParseExact)return KHe.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(i=Vf([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 XHe(e){if(!this.isValid())return e!=null?this:NaN;var t=mT(this,"Day");return e!=null?(e=BHe(e,this.localeData()),this.add(e-t,"d")):t}function ZHe(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 JHe(e){if(!this.isValid())return e!=null?this:NaN;if(e!=null){var t=jHe(e,this.localeData());return this.day(this.day()%7?t:t-7)}else return this.day()||7}function eUe(e){return this._weekdaysParseExact?(pi(this,"_weekdaysRegex")||bW.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(pi(this,"_weekdaysRegex")||(this._weekdaysRegex=zHe),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function tUe(e){return this._weekdaysParseExact?(pi(this,"_weekdaysRegex")||bW.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(pi(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=VHe),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function nUe(e){return this._weekdaysParseExact?(pi(this,"_weekdaysRegex")||bW.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(pi(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=GHe),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function bW(){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=Vf([2e3,1]).day(o),s=Wp(this.weekdaysMin(a,"")),l=Wp(this.weekdaysShort(a,"")),c=Wp(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 yW(){return this.hours()%12||12}function rUe(){return this.hours()||24}or("H",["HH",2],0,"hour");or("h",["hh",2],0,yW);or("k",["kk",2],0,rUe);or("hmm",0,0,function(){return""+yW.apply(this)+Lf(this.minutes(),2)});or("hmmss",0,0,function(){return""+yW.apply(this)+Lf(this.minutes(),2)+Lf(this.seconds(),2)});or("Hmm",0,0,function(){return""+this.hours()+Lf(this.minutes(),2)});or("Hmmss",0,0,function(){return""+this.hours()+Lf(this.minutes(),2)+Lf(this.seconds(),2)});function uye(e,t){or(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}uye("a",!0);uye("A",!1);function dye(e,t){return t._meridiemParse}jn("a",dye);jn("A",dye);jn("H",fo,mW);jn("h",fo,uS);jn("k",fo,uS);jn("HH",fo,Ic);jn("hh",fo,Ic);jn("kk",fo,Ic);jn("hmm",Jbe);jn("hmmss",eye);jn("Hmm",Jbe);jn("Hmmss",eye);Li(["H","HH"],Ca);Li(["k","kk"],function(e,t,n){var r=Wr(e);t[Ca]=r===24?0:r});Li(["a","A"],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e});Li(["h","hh"],function(e,t,n){t[Ca]=Wr(e),Nr(n).bigHour=!0});Li("hmm",function(e,t,n){var r=e.length-2;t[Ca]=Wr(e.substr(0,r)),t[rd]=Wr(e.substr(r)),Nr(n).bigHour=!0});Li("hmmss",function(e,t,n){var r=e.length-4,i=e.length-2;t[Ca]=Wr(e.substr(0,r)),t[rd]=Wr(e.substr(r,2)),t[Up]=Wr(e.substr(i)),Nr(n).bigHour=!0});Li("Hmm",function(e,t,n){var r=e.length-2;t[Ca]=Wr(e.substr(0,r)),t[rd]=Wr(e.substr(r))});Li("Hmmss",function(e,t,n){var r=e.length-4,i=e.length-2;t[Ca]=Wr(e.substr(0,r)),t[rd]=Wr(e.substr(r,2)),t[Up]=Wr(e.substr(i))});function iUe(e){return(e+"").toLowerCase().charAt(0)==="p"}var oUe=/[ap]\.?m?\.?/i,aUe=dS("Hours",!0);function sUe(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"}var fye={calendar:Kje,longDateFormat:Jje,invalidDate:tHe,ordinal:rHe,dayOfMonthOrdinalParse:iHe,relativeTime:aHe,months:EHe,monthsShort:rye,week:PHe,weekdays:HHe,weekdaysMin:UHe,weekdaysShort:cye,meridiemParse:oUe},mo={},AE={},bT;function lUe(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 Ete(e){return e&&e.toLowerCase().replace("_","-")}function cUe(e){for(var t=0,n,r,i,o;t<e.length;){for(o=Ete(e[t]).split("-"),n=o.length,r=Ete(e[t+1]),r=r?r.split("-"):null;n>0;){if(i=BP(o.slice(0,n).join("-")),i)return i;if(r&&r.length>=n&&lUe(o,r)>=n-1)break;n--}t++}return bT}function uUe(e){return!!(e&&e.match("^[^/\\\\]*$"))}function BP(e){var t=null,n;if(mo[e]===void 0&&typeof module<"u"&&module&&module.exports&&uUe(e))try{t=bT._abbr,n=require,n("./locale/"+e),tg(t)}catch{mo[e]=null}return mo[e]}function tg(e,t){var n;return e&&(pl(t)?n=_h(e):n=_W(e,t),n?bT=n:typeof console<"u"&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),bT._abbr}function _W(e,t){if(t!==null){var n,r=fye;if(t.abbr=e,mo[e]!=null)Kbe("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=mo[e]._config;else if(t.parentLocale!=null)if(mo[t.parentLocale]!=null)r=mo[t.parentLocale]._config;else if(n=BP(t.parentLocale),n!=null)r=n._config;else return AE[t.parentLocale]||(AE[t.parentLocale]=[]),AE[t.parentLocale].push({name:e,config:t}),null;return mo[e]=new uW(Ij(r,t)),AE[e]&&AE[e].forEach(function(i){_W(i.name,i.config)}),tg(e),mo[e]}else return delete mo[e],null}function dUe(e,t){if(t!=null){var n,r,i=fye;mo[e]!=null&&mo[e].parentLocale!=null?mo[e].set(Ij(mo[e]._config,t)):(r=BP(e),r!=null&&(i=r._config),t=Ij(i,t),r==null&&(t.abbr=e),n=new uW(t),n.parentLocale=mo[e],mo[e]=n),tg(e)}else mo[e]!=null&&(mo[e].parentLocale!=null?(mo[e]=mo[e].parentLocale,e===tg()&&tg(e)):mo[e]!=null&&delete mo[e]);return mo[e]}function _h(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return bT;if(!Sd(e)){if(t=BP(e),t)return t;e=[e]}return cUe(e)}function fUe(){return Aj(mo)}function SW(e){var t,n=e._a;return n&&Nr(e).overflow===-2&&(t=n[Hp]<0||n[Hp]>11?Hp:n[gf]<1||n[gf]>gW(n[Is],n[Hp])?gf:n[Ca]<0||n[Ca]>24||n[Ca]===24&&(n[rd]!==0||n[Up]!==0||n[L1]!==0)?Ca:n[rd]<0||n[rd]>59?rd:n[Up]<0||n[Up]>59?Up:n[L1]<0||n[L1]>999?L1:-1,Nr(e)._overflowDayOfYear&&(t<Is||t>gf)&&(t=gf),Nr(e)._overflowWeeks&&t===-1&&(t=gHe),Nr(e)._overflowWeekday&&t===-1&&(t=vHe),Nr(e).overflow=t),e}var pUe=/^\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)?)?$/,hUe=/^\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)?)?$/,mUe=/Z|[+-]\d\d(?::?\d\d)?/,cR=[["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]],eL=[["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/]],gUe=/^\/?Date\((-?\d+)/i,vUe=/^(?:(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}))$/,bUe={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 pye(e){var t,n,r=e._i,i=pUe.exec(r)||hUe.exec(r),o,a,s,l,c=cR.length,u=eL.length;if(i){for(Nr(e).iso=!0,t=0,n=c;t<n;t++)if(cR[t][1].exec(i[1])){a=cR[t][0],o=cR[t][2]!==!1;break}if(a==null){e._isValid=!1;return}if(i[3]){for(t=0,n=u;t<n;t++)if(eL[t][1].exec(i[3])){s=(i[2]||" ")+eL[t][0];break}if(s==null){e._isValid=!1;return}}if(!o&&s!=null){e._isValid=!1;return}if(i[4])if(mUe.exec(i[4]))l="Z";else{e._isValid=!1;return}e._f=a+(s||"")+(l||""),CW(e)}else e._isValid=!1}function yUe(e,t,n,r,i,o){var a=[_Ue(e),rye.indexOf(t),parseInt(n,10),parseInt(r,10),parseInt(i,10)];return o&&a.push(parseInt(o,10)),a}function _Ue(e){var t=parseInt(e,10);return t<=49?2e3+t:t<=999?1900+t:t}function SUe(e){return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function EUe(e,t,n){if(e){var r=cye.indexOf(e),i=new Date(t[0],t[1],t[2]).getDay();if(r!==i)return Nr(n).weekdayMismatch=!0,n._isValid=!1,!1}return!0}function CUe(e,t,n){if(e)return bUe[e];if(t)return 0;var r=parseInt(n,10),i=r%100,o=(r-i)/100;return o*60+i}function hye(e){var t=vUe.exec(SUe(e._i)),n;if(t){if(n=yUe(t[4],t[3],t[2],t[5],t[6],t[7]),!EUe(t[1],n,e))return;e._a=n,e._tzm=CUe(t[8],t[9],t[10]),e._d=gT.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),Nr(e).rfc2822=!0}else e._isValid=!1}function wUe(e){var t=gUe.exec(e._i);if(t!==null){e._d=new Date(+t[1]);return}if(pye(e),e._isValid===!1)delete e._isValid;else return;if(hye(e),e._isValid===!1)delete e._isValid;else return;e._strict?e._isValid=!1:En.createFromInputFallback(e)}En.createFromInputFallback=wu("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 xb(e,t,n){return e??t??n}function TUe(e){var t=new Date(En.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}function EW(e){var t,n,r=[],i,o,a;if(!e._d){for(i=TUe(e),e._w&&e._a[gf]==null&&e._a[Hp]==null&&xUe(e),e._dayOfYear!=null&&(a=xb(e._a[Is],i[Is]),(e._dayOfYear>iw(a)||e._dayOfYear===0)&&(Nr(e)._overflowDayOfYear=!0),n=gT(a,0,e._dayOfYear),e._a[Hp]=n.getUTCMonth(),e._a[gf]=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[Ca]===24&&e._a[rd]===0&&e._a[Up]===0&&e._a[L1]===0&&(e._nextDay=!0,e._a[Ca]=0),e._d=(e._useUTC?gT:MHe).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[Ca]=24),e._w&&typeof e._w.d<"u"&&e._w.d!==o&&(Nr(e).weekdayMismatch=!0)}}function xUe(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=xb(t.GG,e._a[Is],vT(co(),1,4).year),r=xb(t.W,1),i=xb(t.E,1),(i<1||i>7)&&(l=!0)):(o=e._locale._week.dow,a=e._locale._week.doy,c=vT(co(),o,a),n=xb(t.gg,e._a[Is],c.year),r=xb(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>qp(n,o,a)?Nr(e)._overflowWeeks=!0:l!=null?Nr(e)._overflowWeekday=!0:(s=lye(n,r,i,o,a),e._a[Is]=s.year,e._dayOfYear=s.dayOfYear)}En.ISO_8601=function(){};En.RFC_2822=function(){};function CW(e){if(e._f===En.ISO_8601){pye(e);return}if(e._f===En.RFC_2822){hye(e);return}e._a=[],Nr(e).empty=!0;var t=""+e._i,n,r,i,o,a,s=t.length,l=0,c,u;for(i=Qbe(e._f,e._locale).match(dW)||[],u=i.length,n=0;n<u;n++)o=i[n],r=(t.match(pHe(o,e))||[])[0],r&&(a=t.substr(0,t.indexOf(r)),a.length>0&&Nr(e).unusedInput.push(a),t=t.slice(t.indexOf(r)+r.length),l+=r.length),by[o]?(r?Nr(e).empty=!1:Nr(e).unusedTokens.push(o),mHe(o,r,e)):e._strict&&!r&&Nr(e).unusedTokens.push(o);Nr(e).charsLeftOver=s-l,t.length>0&&Nr(e).unusedInput.push(t),e._a[Ca]<=12&&Nr(e).bigHour===!0&&e._a[Ca]>0&&(Nr(e).bigHour=void 0),Nr(e).parsedDateParts=e._a.slice(0),Nr(e).meridiem=e._meridiem,e._a[Ca]=OUe(e._locale,e._a[Ca],e._meridiem),c=Nr(e).era,c!==null&&(e._a[Is]=e._locale.erasConvertYear(c,e._a[Is])),EW(e),SW(e)}function OUe(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 RUe(e){var t,n,r,i,o,a,s=!1,l=e._f.length;if(l===0){Nr(e).invalidFormat=!0,e._d=new Date(NaN);return}for(i=0;i<l;i++)o=0,a=!1,t=cW({},e),e._useUTC!=null&&(t._useUTC=e._useUTC),t._f=e._f[i],CW(t),lW(t)&&(a=!0),o+=Nr(t).charsLeftOver,o+=Nr(t).unusedTokens.length*10,Nr(t).score=o,s?o<r&&(r=o,n=t):(r==null||o<r||a)&&(r=o,n=t,a&&(s=!0));Im(e,n||t)}function IUe(e){if(!e._d){var t=fW(e._i),n=t.day===void 0?t.date:t.day;e._a=qbe([t.year,t.month,n,t.hour,t.minute,t.second,t.millisecond],function(r){return r&&parseInt(r,10)}),EW(e)}}function AUe(e){var t=new Yx(SW(mye(e)));return t._nextDay&&(t.add(1,"d"),t._nextDay=void 0),t}function mye(e){var t=e._i,n=e._f;return e._locale=e._locale||_h(e._l),t===null||n===void 0&&t===""?MP({nullInput:!0}):(typeof t=="string"&&(e._i=t=e._locale.preparse(t)),Ed(t)?new Yx(SW(t)):(qx(t)?e._d=t:Sd(n)?RUe(e):n?CW(e):NUe(e),lW(e)||(e._d=null),e))}function NUe(e){var t=e._i;pl(t)?e._d=new Date(En.now()):qx(t)?e._d=new Date(t.valueOf()):typeof t=="string"?wUe(e):Sd(t)?(e._a=qbe(t.slice(0),function(n){return parseInt(n,10)}),EW(e)):sv(t)?IUe(e):oh(t)?e._d=new Date(t):En.createFromInputFallback(e)}function gye(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),(sv(e)&&sW(e)||Sd(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,AUe(o)}function co(e,t,n,r){return gye(e,t,n,r,!1)}var MUe=wu("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:MP()}),kUe=wu("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:MP()});function vye(e,t){var n,r;if(t.length===1&&Sd(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 PUe(){var e=[].slice.call(arguments,0);return vye("isBefore",e)}function DUe(){var e=[].slice.call(arguments,0);return vye("isAfter",e)}var LUe=function(){return Date.now?Date.now():+new Date},NE=["year","quarter","month","week","day","hour","minute","second","millisecond"];function $Ue(e){var t,n=!1,r,i=NE.length;for(t in e)if(pi(e,t)&&!(Xo.call(NE,t)!==-1&&(e[t]==null||!isNaN(e[t]))))return!1;for(r=0;r<i;++r)if(e[NE[r]]){if(n)return!1;parseFloat(e[NE[r]])!==Wr(e[NE[r]])&&(n=!0)}return!0}function FUe(){return this._isValid}function BUe(){return Ld(NaN)}function jP(e){var t=fW(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=$Ue(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=_h(),this._bubble()}function _A(e){return e instanceof jP}function Mj(e){return e<0?Math.round(-1*e)*-1:Math.round(e)}function jUe(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++)Wr(e[a])!==Wr(t[a])&&o++;return o+i}function bye(e,t){or(e,0,0,function(){var n=this.utcOffset(),r="+";return n<0&&(n=-n,r="-"),r+Lf(~~(n/60),2)+t+Lf(~~n%60,2)})}bye("Z",":");bye("ZZ","");jn("Z",$P);jn("ZZ",$P);Li(["Z","ZZ"],function(e,t,n){n._useUTC=!0,n._tzm=wW($P,e)});var HUe=/([\+\-]|\d\d)/gi;function wW(e,t){var n=(t||"").match(e),r,i,o;return n===null?null:(r=n[n.length-1]||[],i=(r+"").match(HUe)||["-",0,0],o=+(i[1]*60)+Wr(i[2]),o===0?0:i[0]==="+"?o:-o)}function TW(e,t){var n,r;return t._isUTC?(n=t.clone(),r=(Ed(e)||qx(e)?e.valueOf():co(e).valueOf())-n.valueOf(),n._d.setTime(n._d.valueOf()+r),En.updateOffset(n,!1),n):co(e).local()}function kj(e){return-Math.round(e._d.getTimezoneOffset())}En.updateOffset=function(){};function UUe(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=wW($P,e),e===null)return this}else Math.abs(e)<16&&!n&&(e=e*60);return!this._isUTC&&t&&(i=kj(this)),this._offset=e,this._isUTC=!0,i!=null&&this.add(i,"m"),r!==e&&(!t||this._changeInProgress?Sye(this,Ld(e-r,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,En.updateOffset(this,!0),this._changeInProgress=null)),this}else return this._isUTC?r:kj(this)}function zUe(e,t){return e!=null?(typeof e!="string"&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}function VUe(e){return this.utcOffset(0,e)}function GUe(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(kj(this),"m")),this}function WUe(){if(this._tzm!=null)this.utcOffset(this._tzm,!1,!0);else if(typeof this._i=="string"){var e=wW(dHe,this._i);e!=null?this.utcOffset(e):this.utcOffset(0,!0)}return this}function qUe(e){return this.isValid()?(e=e?co(e).utcOffset():0,(this.utcOffset()-e)%60===0):!1}function YUe(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function KUe(){if(!pl(this._isDSTShifted))return this._isDSTShifted;var e={},t;return cW(e,this),e=mye(e),e._a?(t=e._isUTC?Vf(e._a):co(e._a),this._isDSTShifted=this.isValid()&&jUe(e._a,t.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function QUe(){return this.isValid()?!this._isUTC:!1}function XUe(){return this.isValid()?this._isUTC:!1}function yye(){return this.isValid()?this._isUTC&&this._offset===0:!1}var ZUe=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,JUe=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Ld(e,t){var n=e,r=null,i,o,a;return _A(e)?n={ms:e._milliseconds,d:e._days,M:e._months}:oh(e)||!isNaN(+e)?(n={},t?n[t]=+e:n.milliseconds=+e):(r=ZUe.exec(e))?(i=r[1]==="-"?-1:1,n={y:0,d:Wr(r[gf])*i,h:Wr(r[Ca])*i,m:Wr(r[rd])*i,s:Wr(r[Up])*i,ms:Wr(Mj(r[L1]*1e3))*i}):(r=JUe.exec(e))?(i=r[1]==="-"?-1:1,n={y:e1(r[2],i),M:e1(r[3],i),w:e1(r[4],i),d:e1(r[5],i),h:e1(r[6],i),m:e1(r[7],i),s:e1(r[8],i)}):n==null?n={}:typeof n=="object"&&("from"in n||"to"in n)&&(a=eze(co(n.from),co(n.to)),n={},n.ms=a.milliseconds,n.M=a.months),o=new jP(n),_A(e)&&pi(e,"_locale")&&(o._locale=e._locale),_A(e)&&pi(e,"_isValid")&&(o._isValid=e._isValid),o}Ld.fn=jP.prototype;Ld.invalid=BUe;function e1(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function Cte(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 eze(e,t){var n;return e.isValid()&&t.isValid()?(t=TW(t,e),e.isBefore(t)?n=Cte(e,t):(n=Cte(t,e),n.milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}function _ye(e,t){return function(n,r){var i,o;return r!==null&&!isNaN(+r)&&(Kbe(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=Ld(n,r),Sye(this,i,e),this}}function Sye(e,t,n,r){var i=t._milliseconds,o=Mj(t._days),a=Mj(t._months);e.isValid()&&(r=r??!0,a&&oye(e,mT(e,"Month")+a*n),o&&nye(e,"Date",mT(e,"Date")+o*n),i&&e._d.setTime(e._d.valueOf()+i*n),r&&En.updateOffset(e,o||a))}var tze=_ye(1,"add"),nze=_ye(-1,"subtract");function Eye(e){return typeof e=="string"||e instanceof String}function rze(e){return Ed(e)||qx(e)||Eye(e)||oh(e)||oze(e)||ize(e)||e===null||e===void 0}function ize(e){var t=sv(e)&&!sW(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 oze(e){var t=Sd(e),n=!1;return t&&(n=e.filter(function(r){return!oh(r)&&Eye(e)}).length===0),t&&n}function aze(e){var t=sv(e)&&!sW(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 sze(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 lze(e,t){arguments.length===1&&(arguments[0]?rze(arguments[0])?(e=arguments[0],t=void 0):aze(arguments[0])&&(t=arguments[0],e=void 0):(e=void 0,t=void 0));var n=e||co(),r=TW(n,this).startOf("day"),i=En.calendarFormat(this,r)||"sameElse",o=t&&(Gf(t[i])?t[i].call(this,n):t[i]);return this.format(o||this.localeData().calendar(i,this,co(n)))}function cze(){return new Yx(this)}function uze(e,t){var n=Ed(e)?e:co(e);return this.isValid()&&n.isValid()?(t=Tu(t)||"millisecond",t==="millisecond"?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(t).valueOf()):!1}function dze(e,t){var n=Ed(e)?e:co(e);return this.isValid()&&n.isValid()?(t=Tu(t)||"millisecond",t==="millisecond"?this.valueOf()<n.valueOf():this.clone().endOf(t).valueOf()<n.valueOf()):!1}function fze(e,t,n,r){var i=Ed(e)?e:co(e),o=Ed(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 pze(e,t){var n=Ed(e)?e:co(e),r;return this.isValid()&&n.isValid()?(t=Tu(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 hze(e,t){return this.isSame(e,t)||this.isAfter(e,t)}function mze(e,t){return this.isSame(e,t)||this.isBefore(e,t)}function gze(e,t,n){var r,i,o;if(!this.isValid())return NaN;if(r=TW(e,this),!r.isValid())return NaN;switch(i=(r.utcOffset()-this.utcOffset())*6e4,t=Tu(t),t){case"year":o=SA(this,r)/12;break;case"month":o=SA(this,r);break;case"quarter":o=SA(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:Zc(o)}function SA(e,t){if(e.date()<t.date())return-SA(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}En.defaultFormat="YYYY-MM-DDTHH:mm:ssZ";En.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";function vze(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function bze(e){if(!this.isValid())return null;var t=e!==!0,n=t?this.clone().utc():this;return n.year()<0||n.year()>9999?yA(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):Gf(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",yA(n,"Z")):yA(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function yze(){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 _ze(e){e||(e=this.isUtc()?En.defaultFormatUtc:En.defaultFormat);var t=yA(this,e);return this.localeData().postformat(t)}function Sze(e,t){return this.isValid()&&(Ed(e)&&e.isValid()||co(e).isValid())?Ld({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function Eze(e){return this.from(co(),e)}function Cze(e,t){return this.isValid()&&(Ed(e)&&e.isValid()||co(e).isValid())?Ld({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function wze(e){return this.to(co(),e)}function Cye(e){var t;return e===void 0?this._locale._abbr:(t=_h(e),t!=null&&(this._locale=t),this)}var wye=wu("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 Tye(){return this._locale}var lM=1e3,yy=60*lM,cM=60*yy,xye=(365*400+97)*24*cM;function _y(e,t){return(e%t+t)%t}function Oye(e,t,n){return e<100&&e>=0?new Date(e+400,t,n)-xye:new Date(e,t,n).valueOf()}function Rye(e,t,n){return e<100&&e>=0?Date.UTC(e+400,t,n)-xye:Date.UTC(e,t,n)}function Tze(e){var t,n;if(e=Tu(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(n=this._isUTC?Rye:Oye,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-=_y(t+(this._isUTC?0:this.utcOffset()*yy),cM);break;case"minute":t=this._d.valueOf(),t-=_y(t,yy);break;case"second":t=this._d.valueOf(),t-=_y(t,lM);break}return this._d.setTime(t),En.updateOffset(this,!0),this}function xze(e){var t,n;if(e=Tu(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(n=this._isUTC?Rye:Oye,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+=cM-_y(t+(this._isUTC?0:this.utcOffset()*yy),cM)-1;break;case"minute":t=this._d.valueOf(),t+=yy-_y(t,yy)-1;break;case"second":t=this._d.valueOf(),t+=lM-_y(t,lM)-1;break}return this._d.setTime(t),En.updateOffset(this,!0),this}function Oze(){return this._d.valueOf()-(this._offset||0)*6e4}function Rze(){return Math.floor(this.valueOf()/1e3)}function Ize(){return new Date(this.valueOf())}function Aze(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function Nze(){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 Mze(){return this.isValid()?this.toISOString():null}function kze(){return lW(this)}function Pze(){return Im({},Nr(this))}function Dze(){return Nr(this).overflow}function Lze(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}or("N",0,0,"eraAbbr");or("NN",0,0,"eraAbbr");or("NNN",0,0,"eraAbbr");or("NNNN",0,0,"eraName");or("NNNNN",0,0,"eraNarrow");or("y",["y",1],"yo","eraYear");or("y",["yy",2],0,"eraYear");or("y",["yyy",3],0,"eraYear");or("y",["yyyy",4],0,"eraYear");jn("N",xW);jn("NN",xW);jn("NNN",xW);jn("NNNN",qze);jn("NNNNN",Yze);Li(["N","NN","NNN","NNNN","NNNNN"],function(e,t,n,r){var i=n._locale.erasParse(e,r,n._strict);i?Nr(n).era=i:Nr(n).invalidEra=e});jn("y",cS);jn("yy",cS);jn("yyy",cS);jn("yyyy",cS);jn("yo",Kze);Li(["y","yy","yyy","yyyy"],Is);Li(["yo"],function(e,t,n,r){var i;n._locale._eraYearOrdinalRegex&&(i=e.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?t[Is]=n._locale.eraYearOrdinalParse(e,i):t[Is]=parseInt(e,10)});function $ze(e,t){var n,r,i,o=this._eras||_h("en")._eras;for(n=0,r=o.length;n<r;++n){switch(typeof o[n].since){case"string":i=En(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=En(o[n].until).startOf("day").valueOf(),o[n].until=i.valueOf();break}}return o}function Fze(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 Bze(e,t){var n=e.since<=e.until?1:-1;return t===void 0?En(e.since).year():En(e.since).year()+(t-e.offset)*n}function jze(){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 Hze(){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 Uze(){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 zze(){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()-En(i[e].since).year())*n+i[e].offset;return this.year()}function Vze(e){return pi(this,"_erasNameRegex")||OW.call(this),e?this._erasNameRegex:this._erasRegex}function Gze(e){return pi(this,"_erasAbbrRegex")||OW.call(this),e?this._erasAbbrRegex:this._erasRegex}function Wze(e){return pi(this,"_erasNarrowRegex")||OW.call(this),e?this._erasNarrowRegex:this._erasRegex}function xW(e,t){return t.erasAbbrRegex(e)}function qze(e,t){return t.erasNameRegex(e)}function Yze(e,t){return t.erasNarrowRegex(e)}function Kze(e,t){return t._eraYearOrdinalRegex||cS}function OW(){var e=[],t=[],n=[],r=[],i,o,a,s,l,c=this.eras();for(i=0,o=c.length;i<o;++i)a=Wp(c[i].name),s=Wp(c[i].abbr),l=Wp(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")}or(0,["gg",2],0,function(){return this.weekYear()%100});or(0,["GG",2],0,function(){return this.isoWeekYear()%100});function HP(e,t){or(0,[e,e.length],0,t)}HP("gggg","weekYear");HP("ggggg","weekYear");HP("GGGG","isoWeekYear");HP("GGGGG","isoWeekYear");jn("G",LP);jn("g",LP);jn("GG",fo,Ic);jn("gg",fo,Ic);jn("GGGG",hW,pW);jn("gggg",hW,pW);jn("GGGGG",DP,kP);jn("ggggg",DP,kP);Qx(["gggg","ggggg","GGGG","GGGGG"],function(e,t,n,r){t[r.substr(0,2)]=Wr(e)});Qx(["gg","GG"],function(e,t,n,r){t[r]=En.parseTwoDigitYear(e)});function Qze(e){return Iye.call(this,e,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy)}function Xze(e){return Iye.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)}function Zze(){return qp(this.year(),1,4)}function Jze(){return qp(this.isoWeekYear(),1,4)}function eVe(){var e=this.localeData()._week;return qp(this.year(),e.dow,e.doy)}function tVe(){var e=this.localeData()._week;return qp(this.weekYear(),e.dow,e.doy)}function Iye(e,t,n,r,i){var o;return e==null?vT(this,r,i).year:(o=qp(e,r,i),t>o&&(t=o),nVe.call(this,e,t,n,r,i))}function nVe(e,t,n,r,i){var o=lye(e,t,n,r,i),a=gT(o.year,0,o.dayOfYear);return this.year(a.getUTCFullYear()),this.month(a.getUTCMonth()),this.date(a.getUTCDate()),this}or("Q",0,"Qo","quarter");jn("Q",Xbe);Li("Q",function(e,t){t[Hp]=(Wr(e)-1)*3});function rVe(e){return e==null?Math.ceil((this.month()+1)/3):this.month((e-1)*3+this.month()%3)}or("D",["DD",2],"Do","date");jn("D",fo,uS);jn("DD",fo,Ic);jn("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient});Li(["D","DD"],gf);Li("Do",function(e,t){t[gf]=Wr(e.match(fo)[0])});var Aye=dS("Date",!0);or("DDD",["DDDD",3],"DDDo","dayOfYear");jn("DDD",PP);jn("DDDD",Zbe);Li(["DDD","DDDD"],function(e,t,n){n._dayOfYear=Wr(e)});function iVe(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return e==null?t:this.add(e-t,"d")}or("m",["mm",2],0,"minute");jn("m",fo,mW);jn("mm",fo,Ic);Li(["m","mm"],rd);var oVe=dS("Minutes",!1);or("s",["ss",2],0,"second");jn("s",fo,mW);jn("ss",fo,Ic);Li(["s","ss"],Up);var aVe=dS("Seconds",!1);or("S",0,0,function(){return~~(this.millisecond()/100)});or(0,["SS",2],0,function(){return~~(this.millisecond()/10)});or(0,["SSS",3],0,"millisecond");or(0,["SSSS",4],0,function(){return this.millisecond()*10});or(0,["SSSSS",5],0,function(){return this.millisecond()*100});or(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3});or(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4});or(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5});or(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6});jn("S",PP,Xbe);jn("SS",PP,Ic);jn("SSS",PP,Zbe);var Am,Nye;for(Am="SSSS";Am.length<=9;Am+="S")jn(Am,cS);function sVe(e,t){t[L1]=Wr(("0."+e)*1e3)}for(Am="S";Am.length<=9;Am+="S")Li(Am,sVe);Nye=dS("Milliseconds",!1);or("z",0,0,"zoneAbbr");or("zz",0,0,"zoneName");function lVe(){return this._isUTC?"UTC":""}function cVe(){return this._isUTC?"Coordinated Universal Time":""}var fn=Yx.prototype;fn.add=tze;fn.calendar=lze;fn.clone=cze;fn.diff=gze;fn.endOf=xze;fn.format=_ze;fn.from=Sze;fn.fromNow=Eze;fn.to=Cze;fn.toNow=wze;fn.get=yHe;fn.invalidAt=Dze;fn.isAfter=uze;fn.isBefore=dze;fn.isBetween=fze;fn.isSame=pze;fn.isSameOrAfter=hze;fn.isSameOrBefore=mze;fn.isValid=kze;fn.lang=wye;fn.locale=Cye;fn.localeData=Tye;fn.max=kUe;fn.min=MUe;fn.parsingFlags=Pze;fn.set=_He;fn.startOf=Tze;fn.subtract=nze;fn.toArray=Aze;fn.toObject=Nze;fn.toDate=Ize;fn.toISOString=bze;fn.inspect=yze;typeof Symbol<"u"&&Symbol.for!=null&&(fn[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"});fn.toJSON=Mze;fn.toString=vze;fn.unix=Rze;fn.valueOf=Oze;fn.creationData=Lze;fn.eraName=jze;fn.eraNarrow=Hze;fn.eraAbbr=Uze;fn.eraYear=zze;fn.year=tye;fn.isLeapYear=bHe;fn.weekYear=Qze;fn.isoWeekYear=Xze;fn.quarter=fn.quarters=rVe;fn.month=aye;fn.daysInMonth=IHe;fn.week=fn.weeks=$He;fn.isoWeek=fn.isoWeeks=FHe;fn.weeksInYear=eVe;fn.weeksInWeekYear=tVe;fn.isoWeeksInYear=Zze;fn.isoWeeksInISOWeekYear=Jze;fn.date=Aye;fn.day=fn.days=XHe;fn.weekday=ZHe;fn.isoWeekday=JHe;fn.dayOfYear=iVe;fn.hour=fn.hours=aUe;fn.minute=fn.minutes=oVe;fn.second=fn.seconds=aVe;fn.millisecond=fn.milliseconds=Nye;fn.utcOffset=UUe;fn.utc=VUe;fn.local=GUe;fn.parseZone=WUe;fn.hasAlignedHourOffset=qUe;fn.isDST=YUe;fn.isLocal=QUe;fn.isUtcOffset=XUe;fn.isUtc=yye;fn.isUTC=yye;fn.zoneAbbr=lVe;fn.zoneName=cVe;fn.dates=wu("dates accessor is deprecated. Use date instead.",Aye);fn.months=wu("months accessor is deprecated. Use month instead",aye);fn.years=wu("years accessor is deprecated. Use year instead",tye);fn.zone=wu("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",zUe);fn.isDSTShifted=wu("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",KUe);function uVe(e){return co(e*1e3)}function dVe(){return co.apply(null,arguments).parseZone()}function Mye(e){return e}var hi=uW.prototype;hi.calendar=Qje;hi.longDateFormat=eHe;hi.invalidDate=nHe;hi.ordinal=oHe;hi.preparse=Mye;hi.postformat=Mye;hi.relativeTime=sHe;hi.pastFuture=lHe;hi.set=Yje;hi.eras=$ze;hi.erasParse=Fze;hi.erasConvertYear=Bze;hi.erasAbbrRegex=Gze;hi.erasNameRegex=Vze;hi.erasNarrowRegex=Wze;hi.months=THe;hi.monthsShort=xHe;hi.monthsParse=RHe;hi.monthsRegex=NHe;hi.monthsShortRegex=AHe;hi.week=kHe;hi.firstDayOfYear=LHe;hi.firstDayOfWeek=DHe;hi.weekdays=WHe;hi.weekdaysMin=YHe;hi.weekdaysShort=qHe;hi.weekdaysParse=QHe;hi.weekdaysRegex=eUe;hi.weekdaysShortRegex=tUe;hi.weekdaysMinRegex=nUe;hi.isPM=iUe;hi.meridiem=sUe;function uM(e,t,n,r){var i=_h(),o=Vf().set(r,t);return i[n](o,e)}function kye(e,t,n){if(oh(e)&&(t=e,e=void 0),e=e||"",t!=null)return uM(e,t,n,"month");var r,i=[];for(r=0;r<12;r++)i[r]=uM(e,r,n,"month");return i}function RW(e,t,n,r){typeof e=="boolean"?(oh(t)&&(n=t,t=void 0),t=t||""):(t=e,n=t,e=!1,oh(t)&&(n=t,t=void 0),t=t||"");var i=_h(),o=e?i._week.dow:0,a,s=[];if(n!=null)return uM(t,(n+o)%7,r,"day");for(a=0;a<7;a++)s[a]=uM(t,(a+o)%7,r,"day");return s}function fVe(e,t){return kye(e,t,"months")}function pVe(e,t){return kye(e,t,"monthsShort")}function hVe(e,t,n){return RW(e,t,n,"weekdays")}function mVe(e,t,n){return RW(e,t,n,"weekdaysShort")}function gVe(e,t,n){return RW(e,t,n,"weekdaysMin")}tg("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=Wr(e%100/10)===1?"th":t===1?"st":t===2?"nd":t===3?"rd":"th";return e+n}});En.lang=wu("moment.lang is deprecated. Use moment.locale instead.",tg);En.langData=wu("moment.langData is deprecated. Use moment.localeData instead.",_h);var ap=Math.abs;function vVe(){var e=this._data;return this._milliseconds=ap(this._milliseconds),this._days=ap(this._days),this._months=ap(this._months),e.milliseconds=ap(e.milliseconds),e.seconds=ap(e.seconds),e.minutes=ap(e.minutes),e.hours=ap(e.hours),e.months=ap(e.months),e.years=ap(e.years),this}function Pye(e,t,n,r){var i=Ld(t,n);return e._milliseconds+=r*i._milliseconds,e._days+=r*i._days,e._months+=r*i._months,e._bubble()}function bVe(e,t){return Pye(this,e,t,1)}function yVe(e,t){return Pye(this,e,t,-1)}function wte(e){return e<0?Math.floor(e):Math.ceil(e)}function _Ve(){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+=wte(Pj(n)+t)*864e5,t=0,n=0),r.milliseconds=e%1e3,i=Zc(e/1e3),r.seconds=i%60,o=Zc(i/60),r.minutes=o%60,a=Zc(o/60),r.hours=a%24,t+=Zc(a/24),l=Zc(Dye(t)),n+=l,t-=wte(Pj(l)),s=Zc(n/12),n%=12,r.days=t,r.months=n,r.years=s,this}function Dye(e){return e*4800/146097}function Pj(e){return e*146097/4800}function SVe(e){if(!this.isValid())return NaN;var t,n,r=this._milliseconds;if(e=Tu(e),e==="month"||e==="quarter"||e==="year")switch(t=this._days+r/864e5,n=this._months+Dye(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(t=this._days+Math.round(Pj(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 Sh(e){return function(){return this.as(e)}}var Lye=Sh("ms"),EVe=Sh("s"),CVe=Sh("m"),wVe=Sh("h"),TVe=Sh("d"),xVe=Sh("w"),OVe=Sh("M"),RVe=Sh("Q"),IVe=Sh("y"),AVe=Lye;function NVe(){return Ld(this)}function MVe(e){return e=Tu(e),this.isValid()?this[e+"s"]():NaN}function v0(e){return function(){return this.isValid()?this._data[e]:NaN}}var kVe=v0("milliseconds"),PVe=v0("seconds"),DVe=v0("minutes"),LVe=v0("hours"),$Ve=v0("days"),FVe=v0("months"),BVe=v0("years");function jVe(){return Zc(this.days()/7)}var Rp=Math.round,Jb={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function HVe(e,t,n,r,i){return i.relativeTime(t||1,!!n,e,r)}function UVe(e,t,n,r){var i=Ld(e).abs(),o=Rp(i.as("s")),a=Rp(i.as("m")),s=Rp(i.as("h")),l=Rp(i.as("d")),c=Rp(i.as("M")),u=Rp(i.as("w")),d=Rp(i.as("y")),f=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&&(f=f||u<=1&&["w"]||u<n.w&&["ww",u]),f=f||c<=1&&["M"]||c<n.M&&["MM",c]||d<=1&&["y"]||["yy",d],f[2]=t,f[3]=+e>0,f[4]=r,HVe.apply(null,f)}function zVe(e){return e===void 0?Rp:typeof e=="function"?(Rp=e,!0):!1}function VVe(e,t){return Jb[e]===void 0?!1:t===void 0?Jb[e]:(Jb[e]=t,e==="s"&&(Jb.ss=t-1),!0)}function GVe(e,t){if(!this.isValid())return this.localeData().invalidDate();var n=!1,r=Jb,i,o;return typeof e=="object"&&(t=e,e=!1),typeof e=="boolean"&&(n=e),typeof t=="object"&&(r=Object.assign({},Jb,t),t.s!=null&&t.ss==null&&(r.ss=t.s-1)),i=this.localeData(),o=UVe(this,!n,r,i),n&&(o=i.pastFuture(+this,o)),i.postformat(o)}var tL=Math.abs;function W0(e){return(e>0)-(e<0)||+e}function UP(){if(!this.isValid())return this.localeData().invalidDate();var e=tL(this._milliseconds)/1e3,t=tL(this._days),n=tL(this._months),r,i,o,a,s=this.asSeconds(),l,c,u,d;return s?(r=Zc(e/60),i=Zc(r/60),e%=60,r%=60,o=Zc(n/12),n%=12,a=e?e.toFixed(3).replace(/\.?0+$/,""):"",l=s<0?"-":"",c=W0(this._months)!==W0(s)?"-":"",u=W0(this._days)!==W0(s)?"-":"",d=W0(this._milliseconds)!==W0(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 ri=jP.prototype;ri.isValid=FUe;ri.abs=vVe;ri.add=bVe;ri.subtract=yVe;ri.as=SVe;ri.asMilliseconds=Lye;ri.asSeconds=EVe;ri.asMinutes=CVe;ri.asHours=wVe;ri.asDays=TVe;ri.asWeeks=xVe;ri.asMonths=OVe;ri.asQuarters=RVe;ri.asYears=IVe;ri.valueOf=AVe;ri._bubble=_Ve;ri.clone=NVe;ri.get=MVe;ri.milliseconds=kVe;ri.seconds=PVe;ri.minutes=DVe;ri.hours=LVe;ri.days=$Ve;ri.weeks=jVe;ri.months=FVe;ri.years=BVe;ri.humanize=GVe;ri.toISOString=UP;ri.toString=UP;ri.toJSON=UP;ri.locale=Cye;ri.localeData=Tye;ri.toIsoString=wu("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",UP);ri.lang=wye;or("X",0,0,"unix");or("x",0,0,"valueOf");jn("x",LP);jn("X",fHe);Li("X",function(e,t,n){n._d=new Date(parseFloat(e)*1e3)});Li("x",function(e,t,n){n._d=new Date(Wr(e))});//! moment.js
En.version="2.30.1";Wje(co);En.fn=fn;En.min=PUe;En.max=DUe;En.now=LUe;En.utc=Vf;En.unix=uVe;En.months=fVe;En.isDate=qx;En.locale=tg;En.invalid=MP;En.duration=Ld;En.isMoment=Ed;En.weekdays=hVe;En.parseZone=dVe;En.localeData=_h;En.isDuration=_A;En.monthsShort=pVe;En.weekdaysMin=gVe;En.defineLocale=_W;En.updateLocale=dUe;En.locales=fUe;En.weekdaysShort=mVe;En.normalizeUnits=Tu;En.relativeTimeRounding=zVe;En.relativeTimeThreshold=VVe;En.calendarFormat=sze;En.prototype=fn;En.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 uR;const WVe=new Uint8Array(16);function qVe(){if(!uR&&(uR=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!uR))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return uR(WVe)}const Ya=[];for(let e=0;e<256;++e)Ya.push((e+256).toString(16).slice(1));function YVe(e,t=0){return Ya[e[t+0]]+Ya[e[t+1]]+Ya[e[t+2]]+Ya[e[t+3]]+"-"+Ya[e[t+4]]+Ya[e[t+5]]+"-"+Ya[e[t+6]]+Ya[e[t+7]]+"-"+Ya[e[t+8]]+Ya[e[t+9]]+"-"+Ya[e[t+10]]+Ya[e[t+11]]+Ya[e[t+12]]+Ya[e[t+13]]+Ya[e[t+14]]+Ya[e[t+15]]}const KVe=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),Tte={randomUUID:KVe};function QVe(e,t,n){if(Tte.randomUUID&&!t&&!e)return Tte.randomUUID();e=e||{};const r=e.random||(e.rng||qVe)();return r[6]=r[6]&15|64,r[8]=r[8]&63|128,YVe(r)}const XVe="1.1.1";function ZVe(){return XVe}function JVe(){const e=localStorage.getItem(oA);(e===null||e==="true")&&new Audio(Y$e).play()}function eGe(){return En().format("YYYY-MM-DD HH:mm:ss")}function zP(){return QVe().replaceAll(/-/g,"")}function q0(e){return e.endsWith("/")?e.slice(0,-1):e}function xte(e,t){return e.length>t?e.slice(0,t-3)+"...":e}function tGe(e){if(e6e===e||t6e===e||n6e===e||r6e===e||i6e===e)return!0}function nGe(e){return e===fT||e===pT}function rGe(e){return e===fT||e===pT}function iGe(e){return e.startsWith(d6e)}function $ye(){console.log("%cWelcome to Bytedesk","font-family:Arial; color:#3370ff ; font-size:18px; font-weight:bold;","GitHubhttps://github.com/bytedesk/bytedesk")}function oGe(){return["undo","redo","brush","eraser","|","bold","italic","underline","strike","link","code","hr","todo","emoji","font-color","|","image","video","attachment","quote","code-block","table"]}const $l=Rc()(Md(kd(Pd(e=>({orgTree:[],currentOrg:{uid:"",name:"",logo:"",description:""},setCurrentOrg(t){e({currentOrg:t})},deleteOrg:()=>e({currentOrg:{uid:"",name:"",logo:"",description:""}})})),{name:R$e}))),id=Rc()(Md(kd(Pd((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.status===nee)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===J$e)return t().addQueuingThread(n),0;const i=t().threads.some(c=>c.topic===n.topic),o=!nGe(r.type);if(rGe(r.type)&&(n.status=ree),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,status: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:ree}:i);e({threads:r})},addThreads(n){for(let r=0;r<n.length;r++){const i=n[r];if(i.status===nee){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}=$l.getState();if(n!=null&&n.uid){const{threadService:r}=await aW(async()=>{const{threadService:i}=await import("./threadService-C0kzzRyQ.js");return{threadService:i}},[]);await r.loadThreads(n.uid)}},setPagination:n=>e({pagination:n})})),{name:P$e}))),Eh=Rc()(Md(kd(Pd((e,t)=>({messageList:[],addMessage(n){if(t().messageList.some(i=>i.uid===n.uid)){if(n.type===dT){const o=t().messageList.findIndex(a=>a.type===dT&&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===GF&&i.type===GF){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=En(o.createdAt,"YYYY-MM-DD HH:mm:ss").valueOf(),l=En(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=vve,i[r].content="该消息已被撤回",e({messageList:i})}},sortMessageList(){const n=t().messageList.sort((r,i)=>{const o=En(r.createdAt,"YYYY-MM-DD HH:mm:ss").valueOf(),a=En(i.createdAt,"YYYY-MM-DD HH:mm:ss").valueOf();return o-a});e({messageList:n})},resetMessageList(){e({messageList:[]})}})),{name:A$e}))),Oa=Rc()(Md(kd(Pd((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:M$e}))),b0=Rc()(Md(kd(Pd((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:L$e})));var Fye={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})()})(Fye);var VP=Fye.exports;const Te=di(VP);function Ke(){return Ke=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},Ke.apply(null,arguments)}function Gt(e){"@babel/helpers - typeof";return Gt=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},Gt(e)}var aGe=Symbol.for("react.element"),sGe=Symbol.for("react.transitional.element"),lGe=Symbol.for("react.fragment");function Bye(e){return e&&Gt(e)==="object"&&(e.$$typeof===aGe||e.$$typeof===sGe)&&e.type===lGe}function Mo(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[];return ce.Children.forEach(e,function(r){r==null&&!t.keepEmpty||(Array.isArray(r)?n=n.concat(Mo(r)):Bye(r)&&r.props?n=n.concat(Mo(r.props.children,t)):n.push(r))}),n}var Dj={},cGe=function(t){};function uGe(e,t){}function dGe(e,t){}function fGe(){Dj={}}function jye(e,t,n){!t&&!Dj[n]&&(e(!1,n),Dj[n]=!0)}function Yr(e,t){jye(uGe,e,t)}function yT(e,t){jye(dGe,e,t)}Yr.preMessage=cGe;Yr.resetWarned=fGe;Yr.noteOnce=yT;function pGe(e,t){if(Gt(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Gt(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Hye(e){var t=pGe(e,"string");return Gt(t)=="symbol"?t:t+""}function ee(e,t,n){return(t=Hye(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ote(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 W(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Ote(Object(n),!0).forEach(function(r){ee(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ote(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function _T(e){return e instanceof HTMLElement||e instanceof SVGElement}function GP(e){return e&&Gt(e)==="object"&&_T(e.nativeElement)?e.nativeElement:_T(e)?e:null}function ow(e){var t=GP(e);if(t)return t;if(e instanceof ce.Component){var n;return(n=aT.findDOMNode)===null||n===void 0?void 0:n.call(aT,e)}return null}var Uye={exports:{}},Oi={};/**
* @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 IW=Symbol.for("react.element"),AW=Symbol.for("react.portal"),WP=Symbol.for("react.fragment"),qP=Symbol.for("react.strict_mode"),YP=Symbol.for("react.profiler"),KP=Symbol.for("react.provider"),QP=Symbol.for("react.context"),hGe=Symbol.for("react.server_context"),XP=Symbol.for("react.forward_ref"),ZP=Symbol.for("react.suspense"),JP=Symbol.for("react.suspense_list"),e5=Symbol.for("react.memo"),t5=Symbol.for("react.lazy"),mGe=Symbol.for("react.offscreen"),zye;zye=Symbol.for("react.module.reference");function xu(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case IW:switch(e=e.type,e){case WP:case YP:case qP:case ZP:case JP:return e;default:switch(e=e&&e.$$typeof,e){case hGe:case QP:case XP:case t5:case e5:case KP:return e;default:return t}}case AW:return t}}}Oi.ContextConsumer=QP;Oi.ContextProvider=KP;Oi.Element=IW;Oi.ForwardRef=XP;Oi.Fragment=WP;Oi.Lazy=t5;Oi.Memo=e5;Oi.Portal=AW;Oi.Profiler=YP;Oi.StrictMode=qP;Oi.Suspense=ZP;Oi.SuspenseList=JP;Oi.isAsyncMode=function(){return!1};Oi.isConcurrentMode=function(){return!1};Oi.isContextConsumer=function(e){return xu(e)===QP};Oi.isContextProvider=function(e){return xu(e)===KP};Oi.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===IW};Oi.isForwardRef=function(e){return xu(e)===XP};Oi.isFragment=function(e){return xu(e)===WP};Oi.isLazy=function(e){return xu(e)===t5};Oi.isMemo=function(e){return xu(e)===e5};Oi.isPortal=function(e){return xu(e)===AW};Oi.isProfiler=function(e){return xu(e)===YP};Oi.isStrictMode=function(e){return xu(e)===qP};Oi.isSuspense=function(e){return xu(e)===ZP};Oi.isSuspenseList=function(e){return xu(e)===JP};Oi.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===WP||e===YP||e===qP||e===ZP||e===JP||e===mGe||typeof e=="object"&&e!==null&&(e.$$typeof===t5||e.$$typeof===e5||e.$$typeof===KP||e.$$typeof===QP||e.$$typeof===XP||e.$$typeof===zye||e.getModuleId!==void 0)};Oi.typeOf=xu;Uye.exports=Oi;var nL=Uye.exports;function ah(e,t,n){var r=p.useRef({});return(!("value"in r.current)||n(r.current.condition,t))&&(r.current.value=e(),r.current.condition=t),r.current.value}var ST=function(t,n){typeof t=="function"?t(n):Gt(t)==="object"&&t&&"current"in t&&(t.current=n)},oa=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){ST(a,o)})}},$d=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return ah(function(){return oa.apply(void 0,n)},n,function(i,o){return i.length!==o.length||i.every(function(a,s){return a!==o[s]})})},Cd=function(t){var n,r;if(!t)return!1;if(NW(t)&&t.props.propertyIsEnumerable("ref"))return!0;var i=nL.isMemo(t)?t.type.type:t.type;return!(typeof i=="function"&&!((n=i.prototype)!==null&&n!==void 0&&n.render)&&i.$$typeof!==nL.ForwardRef||typeof t=="function"&&!((r=t.prototype)!==null&&r!==void 0&&r.render)&&t.$$typeof!==nL.ForwardRef)};function NW(e){return p.isValidElement(e)&&!Bye(e)}var gGe=function(t){return NW(t)&&Cd(t)},Og=function(t){if(t&&NW(t)){var n=t;return n.props.propertyIsEnumerable("ref")?n.props.ref:n.ref}return null},Lj=p.createContext(null);function vGe(e){var t=e.children,n=e.onBatchResize,r=p.useRef(0),i=p.useRef([]),o=p.useContext(Lj),a=p.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 p.createElement(Lj.Provider,{value:a},t)}var Vye=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}()}(),$j=typeof window<"u"&&typeof document<"u"&&window.document===document,dM=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")()}(),bGe=function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(dM):function(e){return setTimeout(function(){return e(Date.now())},1e3/60)}}(),yGe=2;function _Ge(e,t){var n=!1,r=!1,i=0;function o(){n&&(n=!1,e()),r&&s()}function a(){bGe(o)}function s(){var l=Date.now();if(n){if(l-i<yGe)return;r=!0}else n=!0,r=!1,setTimeout(a,t);i=l}return s}var SGe=20,EGe=["top","right","bottom","left","width","height","size","weight"],CGe=typeof MutationObserver<"u",wGe=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=_Ge(this.refresh.bind(this),SGe)}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(){!$j||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),CGe?(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(){!$j||!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=EGe.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}(),Gye=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},o_=function(e){var t=e&&e.ownerDocument&&e.ownerDocument.defaultView;return t||dM},Wye=n5(0,0,0,0);function fM(e){return parseFloat(e)||0}function Rte(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+fM(o)},0)}function TGe(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]=fM(a)}return n}function xGe(e){var t=e.getBBox();return n5(0,0,t.width,t.height)}function OGe(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return Wye;var r=o_(e).getComputedStyle(e),i=TGe(r),o=i.left+i.right,a=i.top+i.bottom,s=fM(r.width),l=fM(r.height);if(r.boxSizing==="border-box"&&(Math.round(s+o)!==t&&(s-=Rte(r,"left","right")+o),Math.round(l+a)!==n&&(l-=Rte(r,"top","bottom")+a)),!IGe(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 n5(i.left,i.top,s,l)}var RGe=function(){return typeof SVGGraphicsElement<"u"?function(e){return e instanceof o_(e).SVGGraphicsElement}:function(e){return e instanceof o_(e).SVGElement&&typeof e.getBBox=="function"}}();function IGe(e){return e===o_(e).document.documentElement}function AGe(e){return $j?RGe(e)?xGe(e):OGe(e):Wye}function NGe(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 Gye(a,{x:t,y:n,width:r,height:i,top:n,right:t+r,bottom:i+n,left:t}),a}function n5(e,t,n,r){return{x:e,y:t,width:n,height:r}}var MGe=function(){function e(t){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=n5(0,0,0,0),this.target=t}return e.prototype.isActive=function(){var t=AGe(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}(),kGe=function(){function e(t,n){var r=NGe(n);Gye(this,{target:t,contentRect:r})}return e}(),PGe=function(){function e(t,n,r){if(this.activeObservations_=[],this.observations_=new Vye,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 o_(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(t)||(n.set(t,new MGe(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 o_(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 kGe(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}(),qye=typeof WeakMap<"u"?new WeakMap:new Vye,Yye=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=wGe.getInstance(),r=new PGe(t,n,this);qye.set(this,r)}return e}();["observe","unobserve","disconnect"].forEach(function(e){Yye.prototype[e]=function(){var t;return(t=qye.get(this))[e].apply(t,arguments)}});var DGe=function(){return typeof dM.ResizeObserver<"u"?dM.ResizeObserver:Yye}(),Nm=new Map;function LGe(e){e.forEach(function(t){var n,r=t.target;(n=Nm.get(r))===null||n===void 0||n.forEach(function(i){return i(r)})})}var Kye=new DGe(LGe);function $Ge(e,t){Nm.has(e)||(Nm.set(e,new Set),Kye.observe(e)),Nm.get(e).add(t)}function FGe(e,t){Nm.has(e)&&(Nm.get(e).delete(t),Nm.get(e).size||(Kye.unobserve(e),Nm.delete(e)))}function Kr(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ite(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,Hye(r.key),r)}}function Qr(e,t,n){return t&&Ite(e.prototype,t),n&&Ite(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function ET(e,t){return ET=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},ET(e,t)}function Ds(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&&ET(e,t)}function Dv(e){return Dv=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Dv(e)}function r5(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(r5=function(){return!!e})()}function cn(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Qye(e,t){if(t&&(Gt(t)=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return cn(e)}function il(e){var t=r5();return function(){var n,r=Dv(e);if(t){var i=Dv(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return Qye(this,n)}}var BGe=function(e){Ds(n,e);var t=il(n);function n(){return Kr(this,n),t.apply(this,arguments)}return Qr(n,[{key:"render",value:function(){return this.props.children}}]),n}(p.Component);function jGe(e,t){var n=e.children,r=e.disabled,i=p.useRef(null),o=p.useRef(null),a=p.useContext(Lj),s=typeof n=="function",l=s?n(i):n,c=p.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),u=!s&&p.isValidElement(l)&&Cd(l),d=u?Og(l):null,f=$d(d,i),h=function(){var y;return ow(i.current)||(i.current&&Gt(i.current)==="object"?ow((y=i.current)===null||y===void 0?void 0:y.nativeElement):null)||ow(o.current)};p.useImperativeHandle(t,function(){return h()});var m=p.useRef(e);m.current=e;var g=p.useCallback(function(v){var y=m.current,b=y.onResize,_=y.data,E=v.getBoundingClientRect(),w=E.width,S=E.height,C=v.offsetWidth,T=v.offsetHeight,x=Math.floor(w),O=Math.floor(S);if(c.current.width!==x||c.current.height!==O||c.current.offsetWidth!==C||c.current.offsetHeight!==T){var N={width:x,height:O,offsetWidth:C,offsetHeight:T};c.current=N;var I=C===Math.round(w)?w:C,M=T===Math.round(S)?S:T,F=W(W({},N),{},{offsetWidth:I,offsetHeight:M});a==null||a(F,v,_),b&&Promise.resolve().then(function(){b(F,v)})}},[]);return p.useEffect(function(){var v=h();return v&&!r&&$Ge(v,g),function(){return FGe(v,g)}},[i.current,r]),p.createElement(BGe,{ref:o},u?p.cloneElement(l,{ref:f}):l)}var HGe=p.forwardRef(jGe),UGe="rc-observer-key";function zGe(e,t){var n=e.children,r=typeof n=="function"?[n]:Mo(n);return r.map(function(i,o){var a=(i==null?void 0:i.key)||"".concat(UGe,"-").concat(o);return p.createElement(HGe,Ke({},e,{key:a,ref:o===0?t:void 0}),i)})}var Ta=p.forwardRef(zGe);Ta.Collection=vGe;function ur(e,t){var n=Object.assign({},e);return Array.isArray(t)&&t.forEach(function(r){delete n[r]}),n}function Fj(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 VGe(e){if(Array.isArray(e))return Fj(e)}function Xye(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function i5(e,t){if(e){if(typeof e=="string")return Fj(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)?Fj(e,t):void 0}}function GGe(){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 nt(e){return VGe(e)||Xye(e)||i5(e)||GGe()}var Zye=function(t){return+setTimeout(t,16)},Jye=function(t){return clearTimeout(t)};typeof window<"u"&&"requestAnimationFrame"in window&&(Zye=function(t){return window.requestAnimationFrame(t)},Jye=function(t){return window.cancelAnimationFrame(t)});var Ate=0,MW=new Map;function e_e(e){MW.delete(e)}var rr=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;Ate+=1;var r=Ate;function i(o){if(o===0)e_e(r),t();else{var a=Zye(function(){i(o-1)});MW.set(r,a)}}return i(n),r};rr.cancel=function(e){var t=MW.get(e);return e_e(e),Jye(t)};function t_e(e){if(Array.isArray(e))return e}function WGe(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 n_e(){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 Ie(e,t){return t_e(e)||WGe(e,t)||i5(e,t)||n_e()}function CT(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 fS(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function qGe(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 Nte="data-rc-order",Mte="data-rc-priority",YGe="rc-util-key",Bj=new Map;function r_e(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.mark;return t?t.startsWith("data-")?t:"data-".concat(t):YGe}function o5(e){if(e.attachTo)return e.attachTo;var t=document.querySelector("head");return t||document.body}function KGe(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function kW(e){return Array.from((Bj.get(e)||e).children).filter(function(t){return t.tagName==="STYLE"})}function i_e(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!fS())return null;var n=t.csp,r=t.prepend,i=t.priority,o=i===void 0?0:i,a=KGe(r),s=a==="prependQueue",l=document.createElement("style");l.setAttribute(Nte,a),s&&o&&l.setAttribute(Mte,"".concat(o)),n!=null&&n.nonce&&(l.nonce=n==null?void 0:n.nonce),l.innerHTML=e;var c=o5(t),u=c.firstChild;if(r){if(s){var d=(t.styles||kW(c)).filter(function(f){if(!["prepend","prependQueue"].includes(f.getAttribute(Nte)))return!1;var h=Number(f.getAttribute(Mte)||0);return o>=h});if(d.length)return c.insertBefore(l,d[d.length-1].nextSibling),l}c.insertBefore(l,u)}else c.appendChild(l);return l}function o_e(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=o5(t);return(t.styles||kW(n)).find(function(r){return r.getAttribute(r_e(t))===e})}function PW(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=o_e(e,t);if(n){var r=o5(t);r.removeChild(n)}}function QGe(e,t){var n=Bj.get(e);if(!n||!qGe(document,n)){var r=i_e("",t),i=r.parentNode;Bj.set(e,i),e.removeChild(r)}}function Sy(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=o5(n),i=kW(r),o=W(W({},n),{},{styles:i});QGe(r,o);var a=o_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=i_e(e,o);return u.setAttribute(r_e(o),t),u}function XGe(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 Dt(e,t){if(e==null)return{};var n,r,i=XGe(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 ZGe(e,t,n){var r=p.useRef({});return(!("value"in r.current)||n(r.current.condition,t))&&(r.current.value=e(),r.current.condition=t),r.current.value}var jj={},JGe=function(t){};function eWe(e,t){}function tWe(e,t){}function nWe(){jj={}}function a_e(e,t,n){!t&&!jj[n]&&(e(!1,n),jj[n]=!0)}function Xx(e,t){a_e(eWe,e,t)}function rWe(e,t){a_e(tWe,e,t)}Xx.preMessage=JGe;Xx.resetWarned=nWe;Xx.noteOnce=rWe;function kte(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(Xx(!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&&Gt(o)==="object"&&Gt(a)==="object"){var d=Object.keys(o);return d.length!==Object.keys(a).length?!1:d.every(function(f){return i(o[f],a[f],c)})}return!1}return i(e,t)}var iWe="%";function Hj(e){return e.join(iWe)}var oWe=function(){function e(t){Kr(this,e),ee(this,"instanceId",void 0),ee(this,"cache",new Map),this.instanceId=t}return Qr(e,[{key:"get",value:function(n){return this.opGet(Hj(n))}},{key:"opGet",value:function(n){return this.cache.get(n)||null}},{key:"update",value:function(n,r){return this.opUpdate(Hj(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}(),aWe=["children"],a_="data-token-hash",dd="data-css-hash",Mm="__cssinjs_instance__";function DW(){var e=Math.random().toString(12).slice(2);if(typeof document<"u"&&document.head&&document.body){var t=document.body.querySelectorAll("style[".concat(dd,"]"))||[],n=document.head.firstChild;Array.from(t).forEach(function(i){i[Mm]=i[Mm]||e,i[Mm]===e&&document.head.insertBefore(i,n)});var r={};Array.from(document.querySelectorAll("style[".concat(dd,"]"))).forEach(function(i){var o=i.getAttribute(dd);if(r[o]){if(i[Mm]===e){var a;(a=i.parentNode)===null||a===void 0||a.removeChild(i)}}else r[o]=!0})}return new oWe(e)}var s_=p.createContext({hashPriority:"low",cache:DW(),defaultCache:!0}),sWe=function(t){var n=t.children,r=Dt(t,aWe),i=p.useContext(s_),o=ZGe(function(){var a=W({},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||DW(),a.defaultCache=!s&&i.defaultCache,a},[i,r],function(a,s){return!kte(a[0],s[0],!0)||!kte(a[1],s[1],!0)});return p.createElement(s_.Provider,{value:o},n)},s_e=Qr(function e(){Kr(this,e)}),l_e="CALC_UNIT",lWe=new RegExp(l_e,"g");function rL(e){return typeof e=="number"?"".concat(e).concat(l_e):e}var cWe=function(e){Ds(n,e);var t=il(n);function n(r,i){var o;Kr(this,n),o=t.call(this),ee(cn(o),"result",""),ee(cn(o),"unitlessCssVar",void 0),ee(cn(o),"lowPriority",void 0);var a=Gt(r);return o.unitlessCssVar=i,r instanceof n?o.result="(".concat(r.result,")"):a==="number"?o.result=rL(r):a==="string"&&(o.result=r),o}return Qr(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(rL(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(rL(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(lWe,l?"px":""),typeof this.lowPriority<"u"?"calc(".concat(this.result,")"):this.result}}]),n}(s_e),uWe=function(e){Ds(n,e);var t=il(n);function n(r){var i;return Kr(this,n),i=t.call(this),ee(cn(i),"result",0),r instanceof n?i.result=r.result:typeof r=="number"&&(i.result=r),i}return Qr(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}(s_e),dWe=function(t,n){var r=t==="css"?cWe:uWe;return function(i){return new r(i,n)}};function fWe(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 LW=function(){function e(){Kr(this,e),ee(this,"cache",void 0),ee(this,"keys",void 0),ee(this,"cacheCallTimes",void 0),this.cache=new Map,this.keys=[],this.cacheCallTimes=0}return Qr(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=Ie(c,2),f=d[1];return i.internalGet(u)[1]<f?[u,i.internalGet(u)[1]]:c},[this.keys[0],this.cacheCallTimes]),a=Ie(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!fWe(r,n)}),this.deleteByPath(this.cache,n)}}]),e}();ee(LW,"MAX_CACHE_SIZE",20);ee(LW,"MAX_CACHE_OFFSET",5);var Pte=0,$W=function(){function e(t){Kr(this,e),ee(this,"derivatives",void 0),ee(this,"id",void 0),this.derivatives=Array.isArray(t)?t:[t],this.id=Pte,t.length===0&&(t.length>0,void 0),Pte+=1}return Qr(e,[{key:"getDerivativeToken",value:function(n){return this.derivatives.reduce(function(r,i){return i(n,r)},void 0)}}]),e}(),iL=new LW;function Lv(e){var t=Array.isArray(e)?e:[e];return iL.has(t)||iL.set(t,new $W(t)),iL.get(t)}var pWe=new WeakMap,oL={};function hWe(e,t){for(var n=pWe,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(oL)||n.set(oL,e()),n.get(oL)}var Dte=new WeakMap;function aw(e){var t=Dte.get(e)||"";return t||(Object.keys(e).forEach(function(n){var r=e[n];t+=n,r instanceof $W?t+=r.id:r&&Gt(r)==="object"?t+=aw(r):t+=r}),t=CT(t),Dte.set(e,t)),t}function Lte(e,t){return CT("".concat(t,"_").concat(aw(e)))}var l_="random-".concat(Date.now(),"-").concat(Math.random()).replace(/\./g,""),c_e="_bAmBoO_";function u_e(e,t,n){if(fS()){var r,i;Sy(e,l_);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(c_e);return(i=o.parentNode)===null||i===void 0||i.removeChild(o),PW(l_),a}return!1}var aL=void 0;function mWe(){return aL===void 0&&(aL=u_e(":where(.".concat(l_,') { content: "').concat(c_e,'"!important; }'),function(e){e.className=l_})),aL}var sL=void 0;function gWe(){return sL===void 0&&(sL=u_e(".".concat(l_," { inset-block: 93px !important; }"),function(e){e.className=l_},function(e){return getComputedStyle(e).bottom==="93px"})),sL}var Uj=fS();function Ae(e){return typeof e=="number"?"".concat(e,"px"):e}function wT(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=W(W({},i),{},(r={},ee(r,a_,t),ee(r,dd,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 sw=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()},vWe=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=Ie(i,2),a=o[0],s=o[1];return"".concat(a,":").concat(s,";")}).join(""),"}"):""},d_e=function(t,n,r){var i={},o={};return Object.entries(t).forEach(function(a){var s,l,c=Ie(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 f,h=sw(u,r==null?void 0:r.prefix);i[h]=typeof d=="number"&&!(r!=null&&(f=r.unitless)!==null&&f!==void 0&&f[u])?"".concat(d,"px"):String(d),o[u]="var(".concat(h,")")}}),[o,vWe(i,n,{scope:r==null?void 0:r.scope})]},$te=fS()?p.useLayoutEffect:p.useEffect,bWe=function(t,n){var r=p.useRef(!0);$te(function(){return t(r.current)},n),$te(function(){return r.current=!1,function(){r.current=!0}},[])},yWe=W({},kx),Fte=yWe.useInsertionEffect,_We=function(t,n,r){p.useMemo(t,r),bWe(function(){return n(!0)},r)},SWe=Fte?function(e,t,n){return Fte(function(){return e(),t()},n)}:_We,EWe=W({},kx),CWe=EWe.useInsertionEffect,wWe=function(t){var n=[],r=!1;function i(o){r||n.push(o)}return p.useEffect(function(){return r=!1,function(){r=!0,n.length&&n.forEach(function(o){return o()})}},t),i},TWe=function(){return function(t){t()}},xWe=typeof CWe<"u"?wWe:TWe;function FW(e,t,n,r,i){var o=p.useContext(s_),a=o.cache,s=[e].concat(nt(t)),l=Hj(s),c=xWe([l]),u=function(m){a.opUpdate(l,function(g){var v=g||[void 0,void 0],y=Ie(v,2),b=y[0],_=b===void 0?0:b,E=y[1],w=E,S=w||n(),C=[_,S];return m?m(C):C})};p.useMemo(function(){u()},[l]);var d=a.opGet(l),f=d[1];return SWe(function(){i==null||i(f)},function(h){return u(function(m){var g=Ie(m,2),v=g[0],y=g[1];return h&&v===0&&(i==null||i(f)),[v+1,y]}),function(){a.opUpdate(l,function(m){var g=m||[],v=Ie(g,2),y=v[0],b=y===void 0?0:y,_=v[1],E=b-1;return E===0?(c(function(){(h||!a.opGet(l))&&(r==null||r(_,!1))}),null):[b-1,_]})}},[l]),f}var OWe={},RWe="css",E1=new Map;function IWe(e){E1.set(e,(E1.get(e)||0)+1)}function AWe(e,t){if(typeof document<"u"){var n=document.querySelectorAll("style[".concat(a_,'="').concat(e,'"]'));n.forEach(function(r){if(r[Mm]===t){var i;(i=r.parentNode)===null||i===void 0||i.removeChild(r)}})}}var NWe=0;function MWe(e,t){E1.set(e,(E1.get(e)||0)-1);var n=Array.from(E1.keys()),r=n.filter(function(i){var o=E1.get(i)||0;return o<=0});n.length-r.length>NWe&&r.forEach(function(i){AWe(i,t),E1.delete(i)})}var BW=function(t,n,r,i){var o=r.getDerivativeToken(t),a=W(W({},o),n);return i&&(a=i(a)),a},f_e="token";function jW(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=p.useContext(s_),i=r.cache.instanceId,o=r.container,a=n.salt,s=a===void 0?"":a,l=n.override,c=l===void 0?OWe:l,u=n.formatToken,d=n.getComputedToken,f=n.cssVar,h=hWe(function(){return Object.assign.apply(Object,[{}].concat(nt(t)))},t),m=aw(h),g=aw(c),v=f?aw(f):"",y=FW(f_e,[s,e.id,m,g,v],function(){var b,_=d?d(h,c,e):BW(h,c,e,u),E=W({},_),w="";if(f){var S=d_e(_,f.key,{prefix:f.prefix,ignore:f.ignore,unitless:f.unitless,preserve:f.preserve}),C=Ie(S,2);_=C[0],w=C[1]}var T=Lte(_,s);_._tokenKey=T,E._tokenKey=Lte(E,s);var x=(b=f==null?void 0:f.key)!==null&&b!==void 0?b:T;_._themeKey=x,IWe(x);var O="".concat(RWe,"-").concat(CT(T));return _._hashId=O,[_,O,E,w,(f==null?void 0:f.key)||""]},function(b){MWe(b[0]._themeKey,i)},function(b){var _=Ie(b,4),E=_[0],w=_[3];if(f&&w){var S=Sy(w,CT("css-variables-".concat(E._themeKey)),{mark:dd,prepend:"queue",attachTo:o,priority:-999});S[Mm]=i,S.setAttribute(a_,E._themeKey)}});return y}var kWe=function(t,n,r){var i=Ie(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,f={"data-rc-order":"prependQueue","data-rc-priority":"".concat(d)},h=wT(a,s,u,f,c);return[d,u,h]},p_e={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},h_e="comm",m_e="rule",g_e="decl",PWe="@import",DWe="@keyframes",LWe="@layer",v_e=Math.abs,HW=String.fromCharCode;function b_e(e){return e.trim()}function EA(e,t,n){return e.replace(t,n)}function $We(e,t,n){return e.indexOf(t,n)}function TT(e,t){return e.charCodeAt(t)|0}function c_(e,t,n){return e.slice(t,n)}function sf(e){return e.length}function FWe(e){return e.length}function dR(e,t){return t.push(e),e}var a5=1,u_=1,y_e=0,mu=0,ua=0,pS="";function UW(e,t,n,r,i,o,a,s){return{value:e,root:t,parent:n,type:r,props:i,children:o,line:a5,column:u_,length:a,return:"",siblings:s}}function BWe(){return ua}function jWe(){return ua=mu>0?TT(pS,--mu):0,u_--,ua===10&&(u_=1,a5--),ua}function fd(){return ua=mu<y_e?TT(pS,mu++):0,u_++,ua===10&&(u_=1,a5++),ua}function km(){return TT(pS,mu)}function CA(){return mu}function s5(e,t){return c_(pS,e,t)}function xT(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 HWe(e){return a5=u_=1,y_e=sf(pS=e),mu=0,[]}function UWe(e){return pS="",e}function lL(e){return b_e(s5(mu-1,zj(e===91?e+2:e===40?e+1:e)))}function zWe(e){for(;(ua=km())&&ua<33;)fd();return xT(e)>2||xT(ua)>3?"":" "}function VWe(e,t){for(;--t&&fd()&&!(ua<48||ua>102||ua>57&&ua<65||ua>70&&ua<97););return s5(e,CA()+(t<6&&km()==32&&fd()==32))}function zj(e){for(;fd();)switch(ua){case e:return mu;case 34:case 39:e!==34&&e!==39&&zj(ua);break;case 40:e===41&&zj(e);break;case 92:fd();break}return mu}function GWe(e,t){for(;fd()&&e+ua!==57;)if(e+ua===84&&km()===47)break;return"/*"+s5(t,mu-1)+"*"+HW(e===47?e:fd())}function WWe(e){for(;!xT(km());)fd();return s5(e,mu)}function qWe(e){return UWe(wA("",null,null,null,[""],e=HWe(e),0,[0],e))}function wA(e,t,n,r,i,o,a,s,l){for(var c=0,u=0,d=a,f=0,h=0,m=0,g=1,v=1,y=1,b=0,_="",E=i,w=o,S=r,C=_;v;)switch(m=b,b=fd()){case 40:if(m!=108&&TT(C,d-1)==58){$We(C+=EA(lL(b),"&","&\f"),"&\f",v_e(c?s[c-1]:0))!=-1&&(y=-1);break}case 34:case 39:case 91:C+=lL(b);break;case 9:case 10:case 13:case 32:C+=zWe(m);break;case 92:C+=VWe(CA()-1,7);continue;case 47:switch(km()){case 42:case 47:dR(YWe(GWe(fd(),CA()),t,n,l),l),(xT(m||1)==5||xT(km()||1)==5)&&sf(C)&&c_(C,-1,void 0)!==" "&&(C+=" ");break;default:C+="/"}break;case 123*g:s[c++]=sf(C)*y;case 125*g:case 59:case 0:switch(b){case 0:case 125:v=0;case 59+u:y==-1&&(C=EA(C,/\f/g,"")),h>0&&(sf(C)-d||g===0&&m===47)&&dR(h>32?jte(C+";",r,n,d-1,l):jte(EA(C," ","")+";",r,n,d-2,l),l);break;case 59:C+=";";default:if(dR(S=Bte(C,t,n,c,u,i,s,_,E=[],w=[],d,o),o),b===123)if(u===0)wA(C,t,S,S,E,o,d,s,w);else switch(f===99&&TT(C,3)===110?100:f){case 100:case 108:case 109:case 115:wA(e,S,S,r&&dR(Bte(e,S,S,0,0,i,s,_,i,E=[],d,w),w),i,w,d,s,r?E:w);break;default:wA(C,S,S,S,[""],w,0,s,w)}}c=u=h=0,g=y=1,_=C="",d=a;break;case 58:d=1+sf(C),h=m;default:if(g<1){if(b==123)--g;else if(b==125&&g++==0&&jWe()==125)continue}switch(C+=HW(b),b*g){case 38:y=u>0?1:(C+="\f",-1);break;case 44:s[c++]=(sf(C)-1)*y,y=1;break;case 64:km()===45&&(C+=lL(fd())),f=km(),u=d=sf(_=C+=WWe(CA())),b++;break;case 45:m===45&&sf(C)==2&&(g=0)}}return o}function Bte(e,t,n,r,i,o,a,s,l,c,u,d){for(var f=i-1,h=i===0?o:[""],m=FWe(h),g=0,v=0,y=0;g<r;++g)for(var b=0,_=c_(e,f+1,f=v_e(v=a[g])),E=e;b<m;++b)(E=b_e(v>0?h[b]+" "+_:EA(_,/&\f/g,h[b])))&&(l[y++]=E);return UW(e,t,n,i===0?m_e:s,l,c,u,d)}function YWe(e,t,n,r){return UW(e,t,n,h_e,HW(BWe()),c_(e,2,-2),0,r)}function jte(e,t,n,r,i){return UW(e,t,n,g_e,c_(e,0,r),c_(e,r+1,-1),r,i)}function Vj(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function KWe(e,t,n,r){switch(e.type){case LWe:if(e.children.length)break;case PWe:case g_e:return e.return=e.return||e.value;case h_e:return"";case DWe:return e.return=e.value+"{"+Vj(e.children,r)+"}";case m_e:if(!sf(e.value=e.props.join(",")))return""}return sf(n=Vj(e.children,r))?e.return=e.value+"{"+n+"}":""}function $1(e,t){var n=t.path,r=t.parentSelectors;Xx(!1,"[Ant Design CSS-in-JS] ".concat(n?"Error in ".concat(n,": "):"").concat(e).concat(r.length?" Selector: ".concat(r.join(" | ")):""))}function QWe(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 XWe(e){return e.parentSelectors.reduce(function(t,n){return t?n.includes("&")?n.replace(/&/g,t):"".concat(t," ").concat(n):n},"")}var ZWe=function(t,n,r){var i=XWe(r),o=i.match(/:not\([^)]*\)/g)||[];o.length>0&&o.some(QWe)&&$1("Concat ':not' selector not support in legacy browsers.",r)},JWe=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":$1("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]&&$1("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")&&$1("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&&$1("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}},eqe=function(t,n,r){(typeof n=="string"&&/NaN/g.test(n)||Number.isNaN(n))&&$1("Unexpected 'NaN' in property '".concat(t,": ").concat(n,"'."),r)},tqe=function(t,n,r){r.parentSelectors.some(function(i){var o=i.split(",");return o.some(function(a){return a.split("&").length>2})})&&$1("Should not use more than one `&` in a selector.",r)},lw="data-ant-cssinjs-cache-path",__e="_FILE_STYLE__";function nqe(e){return Object.keys(e).map(function(t){var n=e[t];return"".concat(t,":").concat(n)}).join(";")}var lv,S_e=!0;function rqe(){if(!lv&&(lv={},fS())){var e=document.createElement("div");e.className=lw,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=Ie(o,2),s=a[0],l=a[1];lv[s]=l});var n=document.querySelector("style[".concat(lw,"]"));if(n){var r;S_e=!1,(r=n.parentNode)===null||r===void 0||r.removeChild(n)}document.body.removeChild(e)}}function iqe(e){return rqe(),!!lv[e]}function oqe(e){var t=lv[e],n=null;if(t&&fS())if(S_e)n=__e;else{var r=document.querySelector("style[".concat(dd,'="').concat(lv[e],'"]'));r?n=r.innerHTML:delete lv[e]}return[n,t]}var aqe="_skip_check_",E_e="_multi_value_";function TA(e){var t=Vj(qWe(e),KWe);return t.replace(/\{%%%\:[^;];}/g,";")}function sqe(e){return Gt(e)==="object"&&e&&(aqe in e||E_e in e)}function Hte(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(nt(l.slice(1))).join(" ")});return o.join(",")}var lqe=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 f="",h={};function m(y){var b=y.getName(s);if(!h[b]){var _=e(y.style,n,{root:!1,parentSelectors:a}),E=Ie(_,1),w=E[0];h[b]="@keyframes ".concat(y.getName(s)).concat(w)}}function g(y){var b=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return y.forEach(function(_){Array.isArray(_)?g(_,b):_&&b.push(_)}),b}var v=g(Array.isArray(t)?t:[t]);return v.forEach(function(y){var b=typeof y=="string"&&!i?{}:y;if(typeof b=="string")f+="".concat(b,`
`);else if(b._keyframe)m(b);else{var _=d.reduce(function(E,w){var S;return(w==null||(S=w.visit)===null||S===void 0?void 0:S.call(w,E))||E},b);Object.keys(_).forEach(function(E){var w=_[E];if(Gt(w)==="object"&&w&&(E!=="animationName"||!w._keyframe)&&!sqe(w)){var S=!1,C=E.trim(),T=!1;(i||o)&&s?C.startsWith("@")?S=!0:C==="&"?C=Hte("",s,c):C=Hte(E,s,c):i&&!s&&(C==="&"||C==="")&&(C="",T=!0);var x=e(w,n,{root:T,injectHash:S,parentSelectors:[].concat(nt(a),[C])}),O=Ie(x,2),N=O[0],I=O[1];h=W(W({},h),I),f+="".concat(C).concat(N)}else{let k=function(B,A){var P=B.replace(/[A-Z]/g,function(L){return"-".concat(L.toLowerCase())}),z=A;!p_e[B]&&typeof z=="number"&&z!==0&&(z="".concat(z,"px")),B==="animationName"&&A!==null&&A!==void 0&&A._keyframe&&(m(A),z=A.getName(s)),f+="".concat(P,":").concat(z,";")};var M,F=(M=w==null?void 0:w.value)!==null&&M!==void 0?M:w;Gt(w)==="object"&&w!==null&&w!==void 0&&w[E_e]&&Array.isArray(F)?F.forEach(function(B){k(E,B)}):k(E,F)}})}}),i?l&&(f="@layer ".concat(l.name," {").concat(f,"}"),l.dependencies&&(h["@layer ".concat(l.name)]=l.dependencies.map(function(y){return"@layer ".concat(y,", ").concat(l.name,";")}).join(`
`))):f="{".concat(f,"}"),[f,h]};function C_e(e,t){return CT("".concat(e.join("%")).concat(t))}function cqe(){return null}var w_e="style";function d_(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=p.useContext(s_),d=u.autoClear;u.mock;var f=u.defaultCache,h=u.hashPriority,m=u.container,g=u.ssrInline,v=u.transformers,y=u.linters,b=u.cache,_=u.layer,E=n._tokenKey,w=[E];_&&w.push("layer"),w.push.apply(w,nt(r));var S=Uj,C=FW(w_e,w,function(){var I=w.join("|");if(iqe(I)){var M=oqe(I),F=Ie(M,2),k=F[0],B=F[1];if(k)return[k,E,B,{},s,c]}var A=t(),P=lqe(A,{hashId:i,hashPriority:h,layer:_?o:void 0,path:r.join("-"),transformers:v,linters:y}),z=Ie(P,2),L=z[0],V=z[1],j=TA(L),U=C_e(w,j);return[j,E,U,V,s,c]},function(I,M){var F=Ie(I,3),k=F[2];(M||d)&&Uj&&PW(k,{mark:dd})},function(I){var M=Ie(I,4),F=M[0];M[1];var k=M[2],B=M[3];if(S&&F!==__e){var A={mark:dd,prepend:_?!1:"queue",attachTo:m,priority:c},P=typeof a=="function"?a():a;P&&(A.csp={nonce:P});var z=[],L=[];Object.keys(B).forEach(function(j){j.startsWith("@layer")?z.push(j):L.push(j)}),z.forEach(function(j){Sy(TA(B[j]),"_layer-".concat(j),W(W({},A),{},{prepend:!0}))});var V=Sy(F,k,A);V[Mm]=b.instanceId,V.setAttribute(a_,E),L.forEach(function(j){Sy(TA(B[j]),"_effect-".concat(j),A)})}}),T=Ie(C,3),x=T[0],O=T[1],N=T[2];return function(I){var M;if(!g||S||!f)M=p.createElement(cqe,null);else{var F;M=p.createElement("style",Ke({},(F={},ee(F,a_,O),ee(F,dd,N),F),{dangerouslySetInnerHTML:{__html:x}}))}return p.createElement(p.Fragment,null,M,I)}}var uqe=function(t,n,r){var i=Ie(t,6),o=i[0],a=i[1],s=i[2],l=i[3],c=i[4],u=i[5],d=r||{},f=d.plain;if(c)return null;var h=o,m={"data-rc-order":"prependQueue","data-rc-priority":"".concat(u)};return h=wT(o,a,s,m,f),l&&Object.keys(l).forEach(function(g){if(!n[g]){n[g]=!0;var v=TA(l[g]),y=wT(v,a,"_effect-".concat(g),m,f);g.startsWith("@layer")?h=y+h:h+=y}}),[u,s,h]},T_e="cssVar",x_e=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=p.useContext(s_),d=u.cache.instanceId,f=u.container,h=s._tokenKey,m=[].concat(nt(t.path),[r,c,h]),g=FW(T_e,m,function(){var v=n(),y=d_e(v,r,{prefix:i,unitless:o,ignore:a,scope:c}),b=Ie(y,2),_=b[0],E=b[1],w=C_e(m,E);return[_,E,w,r]},function(v){var y=Ie(v,3),b=y[2];Uj&&PW(b,{mark:dd})},function(v){var y=Ie(v,3),b=y[1],_=y[2];if(b){var E=Sy(b,_,{mark:dd,prepend:"queue",attachTo:f,priority:-999});E[Mm]=d,E.setAttribute(a_,r)}});return g},dqe=function(t,n,r){var i=Ie(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)},f=wT(o,s,a,d,c);return[u,a,f]},ME,fqe=(ME={},ee(ME,w_e,uqe),ee(ME,f_e,kWe),ee(ME,T_e,dqe),ME);function pqe(e){return e!==null}function hqe(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(f){return s.test(f)}),c={},u={},d="";return l.map(function(f){var h=f.replace(s,"").replace(/%/g,"|"),m=f.split("%"),g=Ie(m,1),v=g[0],y=fqe[v],b=y(e.cache.get(f)[1],c,{plain:i});if(!b)return null;var _=Ie(b,3),E=_[0],w=_[1],S=_[2];return f.startsWith("style")&&(u[h]=w),[E,S]}).filter(pqe).sort(function(f,h){var m=Ie(f,1),g=m[0],v=Ie(h,1),y=v[0];return g-y}).forEach(function(f){var h=Ie(f,2),m=h[1];d+=m}),d+=wT(".".concat(lw,'{content:"').concat(nqe(u),'";}'),void 0,void 0,ee({},lw,lw),i),d}var fr=function(){function e(t,n){Kr(this,e),ee(this,"name",void 0),ee(this,"style",void 0),ee(this,"_keyframe",!0),this.name=t,this.style=n}return Qr(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 mqe(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 Y0(e){return e.notSplit=!0,e}var gqe={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:Y0(["borderTop","borderBottom"]),borderBlockStart:Y0(["borderTop"]),borderBlockEnd:Y0(["borderBottom"]),borderInline:Y0(["borderLeft","borderRight"]),borderInlineStart:Y0(["borderLeft"]),borderInlineEnd:Y0(["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 fR(e,t){var n=e;return t&&(n="".concat(n," !important")),{_skip_check_:!0,value:n}}var vqe={visit:function(t){var n={};return Object.keys(t).forEach(function(r){var i=t[r],o=gqe[r];if(o&&(typeof i=="number"||typeof i=="string")){var a=mqe(i),s=Ie(a,2),l=s[0],c=s[1];o.length&&o.notSplit?o.forEach(function(u){n[u]=fR(i,c)}):o.length===1?n[o[0]]=fR(l[0],c):o.length===2?o.forEach(function(u,d){var f;n[u]=fR((f=l[d])!==null&&f!==void 0?f:l[0],c)}):o.length===4?o.forEach(function(u,d){var f,h;n[u]=fR((f=(h=l[d])!==null&&h!==void 0?h:l[d-2])!==null&&f!==void 0?f:l[0],c)}):n[r]=i}else n[r]=i}),n}},cL=/url\([^)]+\)|var\([^)]+\)|(\d*\.?\d+)px/g;function bqe(e,t){var n=Math.pow(10,t+1),r=Math.floor(e*n);return Math.round(r/10)*10/n}var yqe=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,f){if(!f)return d;var h=parseFloat(f);if(h<=1)return d;var m=bqe(h/r,o);return"".concat(m,"rem")},c=function(d){var f=W({},d);return Object.entries(d).forEach(function(h){var m=Ie(h,2),g=m[0],v=m[1];if(typeof v=="string"&&v.includes("px")){var y=v.replace(cL,l);f[g]=y}!p_e[g]&&typeof v=="number"&&v!==0&&(f[g]="".concat(v,"px").replace(cL,l));var b=g.trim();if(b.startsWith("@")&&b.includes("px")&&s){var _=g.replace(cL,l);f[_]=f[g],delete f[g]}}),f};return{visit:c}},_qe={supportModernCSS:function(){return mWe()&&gWe()}};const Sqe=Object.freeze(Object.defineProperty({__proto__:null,Keyframes:fr,NaNLinter:eqe,StyleProvider:sWe,Theme:$W,_experimental:_qe,createCache:DW,createTheme:Lv,extractStyle:hqe,genCalc:dWe,getComputedToken:BW,legacyLogicalPropertiesTransformer:vqe,legacyNotSelectorLinter:ZWe,logicalPropertiesLinter:JWe,parentSelectorLinter:tqe,px2remTransformer:yqe,token2CSSVar:sw,unit:Ae,useCSSVarRegister:x_e,useCacheToken:jW,useStyleRegister:d_},Symbol.toStringTag,{value:"Module"}));var l5=p.createContext({});function O_e(e){return t_e(e)||Xye(e)||i5(e)||n_e()}function Io(e,t){for(var n=e,r=0;r<t.length;r+=1){if(n==null)return;n=n[t[r]]}return n}function R_e(e,t,n,r){if(!t.length)return n;var i=O_e(t),o=i[0],a=i.slice(1),s;return!e&&typeof o=="number"?s=[]:Array.isArray(e)?s=nt(e):s=W({},e),r&&n===void 0&&a.length===1?delete s[o][a[0]]:s[o]=R_e(s[o],a,n,r),s}function Zo(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return t.length&&r&&n===void 0&&!Io(e,t.slice(0,-1))?e:R_e(e,t,n,r)}function Eqe(e){return Gt(e)==="object"&&e!==null&&Object.getPrototypeOf(e)===Object.prototype}function Ute(e){return Array.isArray(e)?[]:{}}var Cqe=typeof Reflect>"u"?Object.keys:Reflect.ownKeys;function F1(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=Ute(t[0]);return t.forEach(function(i){function o(a,s){var l=new Set(s),c=Io(i,a),u=Array.isArray(c);if(u||Eqe(c)){if(!l.has(c)){l.add(c);var d=Io(r,a);u?r=Zo(r,a,[]):(!d||Gt(d)!=="object")&&(r=Zo(r,a,Ute(c))),Cqe(c).forEach(function(f){o([].concat(nt(a),[f]),l)})}}else r=Zo(r,a,c)}o([])}),r}function wqe(){}const Tqe=p.createContext({}),Wf=()=>{const e=()=>{};return e.deprecated=wqe,e},I_e=p.createContext(void 0);var A_e={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"},N_e={yearFormat:"YYYY",dayFormat:"D",cellMeridiemFormat:"A",monthBeforeYear:!0},xqe=W(W({},N_e),{},{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 M_e={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},pM={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"]},xqe),timePickerLocale:Object.assign({},M_e)},Gl="${label} is not a valid ${type}",Ec={locale:"en",Pagination:A_e,DatePicker:pM,TimePicker:M_e,Calendar:pM,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:Gl,method:Gl,array:Gl,object:Gl,number:Gl,date:Gl,boolean:Gl,integer:Gl,float:Gl,regexp:Gl,email:Gl,url:Gl,hex:Gl},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 xA=Object.assign({},Ec.Modal),OA=[];const zte=()=>OA.reduce((e,t)=>Object.assign(Object.assign({},e),t),Ec.Modal);function Oqe(e){if(e){const t=Object.assign({},e);return OA.push(t),xA=zte(),()=>{OA=OA.filter(n=>n!==t),xA=zte()}}xA=Object.assign({},Ec.Modal)}function k_e(){return xA}const zW=p.createContext(void 0),ds=(e,t)=>{const n=p.useContext(zW),r=p.useMemo(()=>{var o;const a=t||Ec[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=p.useMemo(()=>{const o=n==null?void 0:n.locale;return n!=null&&n.exist&&!o?Ec.locale:o},[n]);return[r,i]},Rqe="internalMark",Iqe=e=>{const{locale:t={},children:n,_ANT_MARK__:r}=e;p.useEffect(()=>Oqe(t==null?void 0:t.Modal),[t]);const i=p.useMemo(()=>Object.assign(Object.assign({},t),{exist:!0}),[t]);return p.createElement(zW.Provider,{value:i},n)},Ma=Math.round;function uL(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 Vte=(e,t,n)=>n===0?e:e/100;function kE(e,t){const n=t||255;return e>n?n:e<0?0:e}class ir{constructor(t){ee(this,"isValid",!0),ee(this,"r",0),ee(this,"g",0),ee(this,"b",0),ee(this,"a",1),ee(this,"_h",void 0),ee(this,"_s",void 0),ee(this,"_l",void 0),ee(this,"_v",void 0),ee(this,"_max",void 0),ee(this,"_min",void 0),ee(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 ir)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=kE(t.r),this.g=kE(t.g),this.b=kE(t.b),this.a=typeof t.a=="number"?kE(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=Ma(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:Ma(o("r")),g:Ma(o("g")),b:Ma(o("b")),a:Ma(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=>Ma((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=Ma(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=Ma(this.getSaturation()*100),r=Ma(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]=kE(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 f=Ma(r*255);this.r=f,this.g=f,this.b=f}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=Ma((o+d)*255),this.g=Ma((a+d)*255),this.b=Ma((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=Ma(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=Ma(r*(1-n)*255),u=Ma(r*(1-n*l)*255),d=Ma(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=uL(t,Vte);this.fromHsv({h:n[0],s:n[1],v:n[2],a:n[3]})}fromHslString(t){const n=uL(t,Vte);this.fromHsl({h:n[0],s:n[1],l:n[2],a:n[3]})}fromRgbString(t){const n=uL(t,(r,i)=>i.includes("%")?Ma(r/100*255):r);this.r=n[0],this.g=n[1],this.b=n[2],this.a=n[3]}}const Aqe=Object.freeze(Object.defineProperty({__proto__:null,FastColor:ir},Symbol.toStringTag,{value:"Module"}));var pR=2,Gte=.16,Nqe=.05,Mqe=.05,kqe=.15,P_e=5,D_e=4,Pqe=[{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 Wte(e,t,n){var r;return Math.round(e.h)>=60&&Math.round(e.h)<=240?r=n?Math.round(e.h)-pR*t:Math.round(e.h)+pR*t:r=n?Math.round(e.h)+pR*t:Math.round(e.h)-pR*t,r<0?r+=360:r>=360&&(r-=360),r}function qte(e,t,n){if(e.h===0&&e.s===0)return e.s;var r;return n?r=e.s-Gte*t:t===D_e?r=e.s+Gte:r=e.s+Nqe*t,r>1&&(r=1),n&&t===P_e&&r>.1&&(r=.1),r<.06&&(r=.06),Math.round(r*100)/100}function Yte(e,t,n){var r;return n?r=e.v+Mqe*t:r=e.v-kqe*t,r=Math.max(0,Math.min(1,r)),Math.round(r*100)/100}function fg(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[],r=new ir(e),i=r.toHsv(),o=P_e;o>0;o-=1){var a=new ir({h:Wte(i,o,!0),s:qte(i,o,!0),v:Yte(i,o,!0)});n.push(a)}n.push(r);for(var s=1;s<=D_e;s+=1){var l=new ir({h:Wte(i,s),s:qte(i,s),v:Yte(i,s)});n.push(l)}return t.theme==="dark"?Pqe.map(function(c){var u=c.index,d=c.amount;return new ir(t.backgroundColor||"#141414").mix(n[u],d).toHexString()}):n.map(function(c){return c.toHexString()})}var cv={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"},hM=["#fff1f0","#ffccc7","#ffa39e","#ff7875","#ff4d4f","#f5222d","#cf1322","#a8071a","#820014","#5c0011"];hM.primary=hM[5];var mM=["#fff2e8","#ffd8bf","#ffbb96","#ff9c6e","#ff7a45","#fa541c","#d4380d","#ad2102","#871400","#610b00"];mM.primary=mM[5];var gM=["#fff7e6","#ffe7ba","#ffd591","#ffc069","#ffa940","#fa8c16","#d46b08","#ad4e00","#873800","#612500"];gM.primary=gM[5];var OT=["#fffbe6","#fff1b8","#ffe58f","#ffd666","#ffc53d","#faad14","#d48806","#ad6800","#874d00","#613400"];OT.primary=OT[5];var vM=["#feffe6","#ffffb8","#fffb8f","#fff566","#ffec3d","#fadb14","#d4b106","#ad8b00","#876800","#614700"];vM.primary=vM[5];var bM=["#fcffe6","#f4ffb8","#eaff8f","#d3f261","#bae637","#a0d911","#7cb305","#5b8c00","#3f6600","#254000"];bM.primary=bM[5];var yM=["#f6ffed","#d9f7be","#b7eb8f","#95de64","#73d13d","#52c41a","#389e0d","#237804","#135200","#092b00"];yM.primary=yM[5];var _M=["#e6fffb","#b5f5ec","#87e8de","#5cdbd3","#36cfc9","#13c2c2","#08979c","#006d75","#00474f","#002329"];_M.primary=_M[5];var $v=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];$v.primary=$v[5];var SM=["#f0f5ff","#d6e4ff","#adc6ff","#85a5ff","#597ef7","#2f54eb","#1d39c4","#10239e","#061178","#030852"];SM.primary=SM[5];var EM=["#f9f0ff","#efdbff","#d3adf7","#b37feb","#9254de","#722ed1","#531dab","#391085","#22075e","#120338"];EM.primary=EM[5];var CM=["#fff0f6","#ffd6e7","#ffadd2","#ff85c0","#f759ab","#eb2f96","#c41d7f","#9e1068","#780650","#520339"];CM.primary=CM[5];var RT=["#a6a6a6","#999999","#8c8c8c","#808080","#737373","#666666","#404040","#1a1a1a","#000000","#000000"];RT.primary=RT[5];var Dqe=RT,RA={red:hM,volcano:mM,orange:gM,gold:OT,yellow:vM,lime:bM,green:yM,cyan:_M,blue:$v,geekblue:SM,purple:EM,magenta:CM,grey:RT},wM=["#2a1215","#431418","#58181c","#791a1f","#a61d24","#d32029","#e84749","#f37370","#f89f9a","#fac8c3"];wM.primary=wM[5];var TM=["#2b1611","#441d12","#592716","#7c3118","#aa3e19","#d84a1b","#e87040","#f3956a","#f8b692","#fad4bc"];TM.primary=TM[5];var xM=["#2b1d11","#442a11","#593815","#7c4a15","#aa6215","#d87a16","#e89a3c","#f3b765","#f8cf8d","#fae3b7"];xM.primary=xM[5];var OM=["#2b2111","#443111","#594214","#7c5914","#aa7714","#d89614","#e8b339","#f3cc62","#f8df8b","#faedb5"];OM.primary=OM[5];var RM=["#2b2611","#443b11","#595014","#7c6e14","#aa9514","#d8bd14","#e8d639","#f3ea62","#f8f48b","#fafab5"];RM.primary=RM[5];var IM=["#1f2611","#2e3c10","#3e4f13","#536d13","#6f9412","#8bbb11","#a9d134","#c9e75d","#e4f88b","#f0fab5"];IM.primary=IM[5];var AM=["#162312","#1d3712","#274916","#306317","#3c8618","#49aa19","#6abe39","#8fd460","#b2e58b","#d5f2bb"];AM.primary=AM[5];var NM=["#112123","#113536","#144848","#146262","#138585","#13a8a8","#33bcb7","#58d1c9","#84e2d8","#b2f1e8"];NM.primary=NM[5];var MM=["#111a2c","#112545","#15325b","#15417e","#1554ad","#1668dc","#3c89e8","#65a9f3","#8dc5f8","#b7dcfa"];MM.primary=MM[5];var kM=["#131629","#161d40","#1c2755","#203175","#263ea0","#2b4acb","#5273e0","#7f9ef3","#a8c1f8","#d2e0fa"];kM.primary=kM[5];var PM=["#1a1325","#24163a","#301c4d","#3e2069","#51258f","#642ab5","#854eca","#ab7ae0","#cda8f0","#ebd7fa"];PM.primary=PM[5];var DM=["#291321","#40162f","#551c3b","#75204f","#a02669","#cb2b83","#e0529c","#f37fb7","#f8a8cc","#fad2e3"];DM.primary=DM[5];var LM=["#151515","#1f1f1f","#2d2d2d","#393939","#494949","#5a5a5a","#6a6a6a","#7b7b7b","#888888","#969696"];LM.primary=LM[5];var Lqe={red:wM,volcano:TM,orange:xM,gold:OM,yellow:RM,lime:IM,green:AM,cyan:NM,blue:MM,geekblue:kM,purple:PM,magenta:DM,grey:LM};const $qe=Object.freeze(Object.defineProperty({__proto__:null,blue:$v,blueDark:MM,cyan:_M,cyanDark:NM,geekblue:SM,geekblueDark:kM,generate:fg,gold:OT,goldDark:OM,gray:Dqe,green:yM,greenDark:AM,grey:RT,greyDark:LM,lime:bM,limeDark:IM,magenta:CM,magentaDark:DM,orange:gM,orangeDark:xM,presetDarkPalettes:Lqe,presetPalettes:RA,presetPrimaryColors:cv,purple:EM,purpleDark:PM,red:hM,redDark:wM,volcano:mM,volcanoDark:TM,yellow:vM,yellowDark:RM},Symbol.toStringTag,{value:"Module"})),VW={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"},f_=Object.assign(Object.assign({},VW),{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 L_e(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),f=n(i),h=n(o),m=n(a),g=n(s),v=r(c,u),y=e.colorLink||e.colorInfo,b=n(y),_=new ir(m[1]).mix(new ir(m[3]),50).toHexString();return Object.assign(Object.assign({},v),{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:f[1],colorSuccessBgHover:f[2],colorSuccessBorder:f[3],colorSuccessBorderHover:f[4],colorSuccessHover:f[4],colorSuccess:f[6],colorSuccessActive:f[7],colorSuccessTextHover:f[8],colorSuccessText:f[9],colorSuccessTextActive:f[10],colorErrorBg:m[1],colorErrorBgHover:m[2],colorErrorBgFilledHover:_,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:h[1],colorWarningBgHover:h[2],colorWarningBorder:h[3],colorWarningBorderHover:h[4],colorWarningHover:h[4],colorWarning:h[6],colorWarningActive:h[7],colorWarningTextHover:h[8],colorWarningText:h[9],colorWarningTextActive:h[10],colorInfoBg:g[1],colorInfoBgHover:g[2],colorInfoBorder:g[3],colorInfoBorderHover:g[4],colorInfoHover:g[4],colorInfo:g[6],colorInfoActive:g[7],colorInfoTextHover:g[8],colorInfoText:g[9],colorInfoTextActive:g[10],colorLinkHover:b[4],colorLink:b[6],colorLinkActive:b[7],colorBgMask:new ir("#000").setA(.45).toRgbString(),colorWhite:"#fff"})}const Fqe=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 Bqe(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},Fqe(r))}const $_e=e=>{const{controlHeight:t}=e;return{controlHeightSM:t*.75,controlHeightXS:t*.5,controlHeightLG:t*1.25}};function IA(e){return(e+8)/e}function jqe(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:IA(n)}))}const F_e=e=>{const t=jqe(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 Hqe(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 Dc=(e,t)=>new ir(e).setA(t).toRgbString(),PE=(e,t)=>new ir(e).darken(t).toHexString(),Uqe=e=>{const t=fg(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]}},zqe=(e,t)=>{const n=e||"#fff",r=t||"#000";return{colorBgBase:n,colorTextBase:r,colorText:Dc(r,.88),colorTextSecondary:Dc(r,.65),colorTextTertiary:Dc(r,.45),colorTextQuaternary:Dc(r,.25),colorFill:Dc(r,.15),colorFillSecondary:Dc(r,.06),colorFillTertiary:Dc(r,.04),colorFillQuaternary:Dc(r,.02),colorBgSolid:Dc(r,1),colorBgSolidHover:Dc(r,.75),colorBgSolidActive:Dc(r,.95),colorBgLayout:PE(n,4),colorBgContainer:PE(n,0),colorBgElevated:PE(n,0),colorBgSpotlight:Dc(r,.85),colorBgBlur:"transparent",colorBorder:PE(n,15),colorBorderSecondary:PE(n,6)}};function Zx(e){cv.pink=cv.magenta,RA.pink=RA.magenta;const t=Object.keys(VW).map(n=>{const r=e[n]===cv[n]?RA[n]:fg(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),L_e(e,{generateColorPalettes:Uqe,generateNeutralColorPalettes:zqe})),F_e(e.fontSize)),Hqe(e)),$_e(e)),Bqe(e))}const B_e=Lv(Zx),IT={token:f_,override:{override:f_},hashed:!0},GW=ce.createContext(IT),AT="ant",c5="anticon",Vqe=["outlined","borderless","filled"],Gqe=(e,t)=>t||(e?`${AT}-${e}`:AT),Qt=p.createContext({getPrefixCls:Gqe,iconPrefixCls:c5});function Qs(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function Gj(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 Kte="data-rc-order",Qte="data-rc-priority",Wqe="rc-util-key",Wj=new Map;function j_e(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.mark;return t?t.startsWith("data-")?t:"data-".concat(t):Wqe}function u5(e){if(e.attachTo)return e.attachTo;var t=document.querySelector("head");return t||document.body}function qqe(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function WW(e){return Array.from((Wj.get(e)||e).children).filter(function(t){return t.tagName==="STYLE"})}function H_e(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!Qs())return null;var n=t.csp,r=t.prepend,i=t.priority,o=i===void 0?0:i,a=qqe(r),s=a==="prependQueue",l=document.createElement("style");l.setAttribute(Kte,a),s&&o&&l.setAttribute(Qte,"".concat(o)),n!=null&&n.nonce&&(l.nonce=n==null?void 0:n.nonce),l.innerHTML=e;var c=u5(t),u=c.firstChild;if(r){if(s){var d=(t.styles||WW(c)).filter(function(f){if(!["prepend","prependQueue"].includes(f.getAttribute(Kte)))return!1;var h=Number(f.getAttribute(Qte)||0);return o>=h});if(d.length)return c.insertBefore(l,d[d.length-1].nextSibling),l}c.insertBefore(l,u)}else c.appendChild(l);return l}function U_e(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=u5(t);return(t.styles||WW(n)).find(function(r){return r.getAttribute(j_e(t))===e})}function qj(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=U_e(e,t);if(n){var r=u5(t);r.removeChild(n)}}function Yqe(e,t){var n=Wj.get(e);if(!n||!Gj(document,n)){var r=H_e("",t),i=r.parentNode;Wj.set(e,i),e.removeChild(r)}}function d5(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=u5(n),i=WW(r),o=W(W({},n),{},{styles:i});Yqe(r,o);var a=U_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=H_e(e,o);return u.setAttribute(j_e(o),t),u}const Kqe=`-ant-${Date.now()}-${Math.random()}`;function Qqe(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 ir(a),c=fg(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 ir(t.primaryColor),s=fg(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 ir(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 Xqe(e,t){const n=Qqe(e,t);Qs()&&d5(n,`${Kqe}-dynamic-theme`)}const Vo=p.createContext(!1),qW=e=>{let{children:t,disabled:n}=e;const r=p.useContext(Vo);return p.createElement(Vo.Provider,{value:n??r},t)},Fv=p.createContext(void 0),Zqe=e=>{let{children:t,size:n}=e;const r=p.useContext(Fv);return p.createElement(Fv.Provider,{value:n||r},t)};function Jqe(){const e=p.useContext(Vo),t=p.useContext(Fv);return{componentDisabled:e,componentSize:t}}function gu(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(Yr(!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&&Gt(o)==="object"&&Gt(a)==="object"){var d=Object.keys(o);return d.length!==Object.keys(a).length?!1:d.every(function(f){return i(o[f],a[f],c)})}return!1}return i(e,t)}var z_e=Qr(function e(){Kr(this,e)}),V_e="CALC_UNIT",eYe=new RegExp(V_e,"g");function dL(e){return typeof e=="number"?"".concat(e).concat(V_e):e}var tYe=function(e){Ds(n,e);var t=il(n);function n(r,i){var o;Kr(this,n),o=t.call(this),ee(cn(o),"result",""),ee(cn(o),"unitlessCssVar",void 0),ee(cn(o),"lowPriority",void 0);var a=Gt(r);return o.unitlessCssVar=i,r instanceof n?o.result="(".concat(r.result,")"):a==="number"?o.result=dL(r):a==="string"&&(o.result=r),o}return Qr(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(dL(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(dL(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(eYe,l?"px":""),typeof this.lowPriority<"u"?"calc(".concat(this.result,")"):this.result}}]),n}(z_e),nYe=function(e){Ds(n,e);var t=il(n);function n(r){var i;return Kr(this,n),i=t.call(this),ee(cn(i),"result",0),r instanceof n?i.result=r.result:typeof r=="number"&&(i.result=r),i}return Qr(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}(z_e),G_e=function(t,n){var r=t==="css"?tYe:nYe;return function(i){return new r(i,n)}},Xte=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 Yn(e){var t=p.useRef();t.current=e;var n=p.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 Zte=Qs()?p.useLayoutEffect:p.useEffect,sr=function(t,n){var r=p.useRef(!0);Zte(function(){return t(r.current)},n),Zte(function(){return r.current=!1,function(){r.current=!0}},[])},uv=function(t,n){sr(function(r){if(!r)return t()},n)};function Bv(e){var t=p.useRef(!1),n=p.useState(e),r=Ie(n,2),i=r[0],o=r[1];p.useEffect(function(){return t.current=!1,function(){t.current=!0}},[]);function a(s,l){l&&t.current||o(s)}return[i,a]}function fL(e){return e!==void 0}function Pn(e,t){var n=t||{},r=n.defaultValue,i=n.value,o=n.onChange,a=n.postState,s=Bv(function(){return fL(i)?i:fL(r)?typeof r=="function"?r():r:typeof e=="function"?e():e}),l=Ie(s,2),c=l[0],u=l[1],d=i!==void 0?i:c,f=a?a(d):d,h=Yn(o),m=Bv([d]),g=Ie(m,2),v=g[0],y=g[1];uv(function(){var _=v[0];c!==_&&h(c,_)},[v]),uv(function(){fL(i)||u(i)},[i]);var b=Yn(function(_,E){u(_,E),y([d],E)});return[f,b]}function Jte(e,t,n,r){var i=W({},t[e]);if(r!=null&&r.deprecatedTokens){var o=r.deprecatedTokens;o.forEach(function(s){var l=Ie(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=W(W({},n),i);return Object.keys(a).forEach(function(s){a[s]===t[s]&&delete a[s]}),a}var W_e=typeof CSSINJS_STATISTIC<"u",Yj=!0;function Kn(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(!W_e)return Object.assign.apply(Object,[{}].concat(t));Yj=!1;var r={};return t.forEach(function(i){if(Gt(i)==="object"){var o=Object.keys(i);o.forEach(function(a){Object.defineProperty(r,a,{configurable:!0,enumerable:!0,get:function(){return i[a]}})})}}),Yj=!0,r}var Kj={};function rYe(){}var q_e=function(t){var n,r=t,i=rYe;return W_e&&typeof Proxy<"u"&&(n=new Set,r=new Proxy(t,{get:function(a,s){if(Yj){var l;(l=n)===null||l===void 0||l.add(s)}return a[s]}}),i=function(a,s){var l;Kj[a]={global:Array.from(n),component:W(W({},(l=Kj[a])===null||l===void 0?void 0:l.component),s)}}),{token:r,keys:n,flush:i}};function ene(e,t,n){if(typeof n=="function"){var r;return n(Kn(t,(r=t[e])!==null&&r!==void 0?r:{}))}return n??{}}function iYe(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 Ae(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 Ae(o)}).join(","),")")}}}var oYe=1e3*60*10,aYe=function(){function e(){Kr(this,e),ee(this,"map",new Map),ee(this,"objectIDMap",new WeakMap),ee(this,"nextID",0),ee(this,"lastAccessBeat",new Map),ee(this,"accessBeat",0)}return Qr(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&&Gt(o)==="object"?"obj_".concat(r.getObjectID(o)):"".concat(Gt(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>oYe&&(n.map.delete(o),n.lastAccessBeat.delete(o))}),this.accessBeat=0}}}]),e}(),tne=new aYe;function sYe(e,t){return ce.useMemo(function(){var n=tne.get(t);if(n)return n;var r=e();return tne.set(t,r),r},t)}var lYe=function(){return{}};function Y_e(e){var t=e.useCSP,n=t===void 0?lYe:t,r=e.useToken,i=e.usePrefix,o=e.getResetStyles,a=e.getCommonStyle,s=e.getCompUnitless;function l(f,h,m,g){var v=Array.isArray(f)?f[0]:f;function y(T){return"".concat(String(v)).concat(T.slice(0,1).toUpperCase()).concat(T.slice(1))}var b=(g==null?void 0:g.unitless)||{},_=typeof s=="function"?s(f):{},E=W(W({},_),{},ee({},y("zIndexPopup"),!0));Object.keys(b).forEach(function(T){E[y(T)]=b[T]});var w=W(W({},g),{},{unitless:E,prefixToken:y}),S=u(f,h,m,w),C=c(v,m,w);return function(T){var x=arguments.length>1&&arguments[1]!==void 0?arguments[1]:T,O=S(T,x),N=Ie(O,2),I=N[1],M=C(x),F=Ie(M,2),k=F[0],B=F[1];return[k,I,B]}}function c(f,h,m){var g=m.unitless,v=m.injectStyle,y=v===void 0?!0:v,b=m.prefixToken,_=m.ignore,E=function(C){var T=C.rootCls,x=C.cssVar,O=x===void 0?{}:x,N=r(),I=N.realToken;return x_e({path:[f],prefix:O.prefix,key:O.key,unitless:g,ignore:_,token:I,scope:T},function(){var M=ene(f,I,h),F=Jte(f,I,M,{deprecatedTokens:m==null?void 0:m.deprecatedTokens});return Object.keys(M).forEach(function(k){F[b(k)]=F[k],delete F[k]}),F}),null},w=function(C){var T=r(),x=T.cssVar;return[function(O){return y&&x?ce.createElement(ce.Fragment,null,ce.createElement(E,{rootCls:C,cssVar:x,component:f}),O):O},x==null?void 0:x.key]};return w}function u(f,h,m){var g=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},v=Array.isArray(f)?f:[f,f],y=Ie(v,1),b=y[0],_=v.join("-"),E=e.layer||{name:"antd"};return function(w){var S=arguments.length>1&&arguments[1]!==void 0?arguments[1]:w,C=r(),T=C.theme,x=C.realToken,O=C.hashId,N=C.token,I=C.cssVar,M=i(),F=M.rootPrefixCls,k=M.iconPrefixCls,B=n(),A=I?"css":"js",P=sYe(function(){var J=new Set;return I&&Object.keys(g.unitless||{}).forEach(function(te){J.add(sw(te,I.prefix)),J.add(sw(te,Xte(b,I.prefix)))}),G_e(A,J)},[A,b,I==null?void 0:I.prefix]),z=iYe(A),L=z.max,V=z.min,j={theme:T,token:N,hashId:O,nonce:function(){return B.nonce},clientOnly:g.clientOnly,layer:E,order:g.order||-999};typeof o=="function"&&d_(W(W({},j),{},{clientOnly:!1,path:["Shared",F]}),function(){return o(N,{prefix:{rootPrefixCls:F,iconPrefixCls:k},csp:B})});var U=d_(W(W({},j),{},{path:[_,w,k]}),function(){if(g.injectStyle===!1)return[];var J=q_e(N),te=J.token,ae=J.flush,K=ene(b,x,m),Q=".".concat(w),oe=Jte(b,x,K,{deprecatedTokens:g.deprecatedTokens});I&&K&&Gt(K)==="object"&&Object.keys(K).forEach(function(le){K[le]="var(".concat(sw(le,Xte(b,I.prefix)),")")});var ge=Kn(te,{componentCls:Q,prefixCls:w,iconCls:".".concat(k),antCls:".".concat(F),calc:P,max:L,min:V},I?K:oe),fe=h(ge,{hashId:O,prefixCls:w,rootPrefixCls:F,iconPrefixCls:k});ae(b,oe);var ue=typeof a=="function"?a(ge,w,S,g.resetFont):null;return[g.resetStyle===!1?null:ue,fe]});return[U,O]}}function d(f,h,m){var g=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},v=u(f,h,m,W({resetStyle:!1,order:-998},g)),y=function(_){var E=_.prefixCls,w=_.rootCls,S=w===void 0?E:w;return v(E,S),null};return y}return{genStyleHooks:l,genSubStyleComponent:d,genComponentStyleHook:u}}const cYe=Object.freeze(Object.defineProperty({__proto__:null,genCalc:G_e,genStyleUtils:Y_e,mergeToken:Kn,statistic:Kj,statisticToken:q_e},Symbol.toStringTag,{value:"Module"})),jv=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"],sh="5.23.2";function pL(e){return e>=0&&e<=255}function hR(e,t){const{r:n,g:r,b:i,a:o}=new ir(e).toRgb();if(o<1)return e;const{r:a,g:s,b:l}=new ir(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),f=Math.round((i-l*(1-c))/c);if(pL(u)&&pL(d)&&pL(f))return new ir({r:u,g:d,b:f,a:Math.round(c*100)/100}).toRgbString()}return new ir({r:n,g:r,b:i,a:1}).toRgbString()}var uYe=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 YW(e){const{override:t}=e,n=uYe(e,["override"]),r=Object.assign({},t);Object.keys(f_).forEach(f=>{delete r[f]});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 f="0s";i.motionDurationFast=f,i.motionDurationMid=f,i.motionDurationSlow=f}return Object.assign(Object.assign(Object.assign({},i),{colorFillContent:i.colorFillSecondary,colorFillContentHover:i.colorFill,colorFillAlter:i.colorFillQuaternary,colorBgContainerDisabled:i.colorFillTertiary,colorBorderBg:i.colorBgContainer,colorSplit:hR(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:hR(i.colorErrorBg,i.colorBgContainer),colorWarningOutline:hR(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:hR(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 ir("rgba(0, 0, 0, 0.16)").toRgbString()},
0 3px 6px 0 ${new ir("rgba(0, 0, 0, 0.12)").toRgbString()},
0 5px 12px 4px ${new ir("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 nne=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 K_e={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},dYe={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},fYe={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},Q_e=(e,t,n)=>{const r=n.getDerivativeToken(e),{override:i}=t,o=nne(t,["override"]);let a=Object.assign(Object.assign({},r),{override:i});return a=YW(a),o&&Object.entries(o).forEach(s=>{let[l,c]=s;const{theme:u}=c,d=nne(c,["theme"]);let f=d;u&&(f=Q_e(Object.assign(Object.assign({},a),d),{override:d},u)),a[l]=f}),a};function Go(){const{token:e,hashed:t,theme:n,override:r,cssVar:i}=ce.useContext(GW),o=`${sh}-${t||""}`,a=n||B_e,[s,l,c]=jW(a,[f_,e],{salt:o,override:r,getComputedToken:Q_e,formatToken:YW,cssVar:i&&{prefix:i.prefix,key:i.key,unitless:K_e,ignore:dYe,preserve:fYe}});return[a,c,t?l:"",s,i]}const kl={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},gr=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}},y0=()=>({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"}}),wd=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),pYe=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"}}}),hYe=(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})}},Td=(e,t)=>({outline:`${Ae(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`,outlineOffset:t??1,transition:"outline-offset 0s, outline 0s"}),Xs=(e,t)=>({"&:focus-visible":Object.assign({},Td(e,t))}),X_e=e=>({[`.${e}`]:Object.assign(Object.assign({},y0()),{[`.${e} .${e}-icon`]:{display:"block"}})}),KW=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"},Xs(e)),{"&:focus, &:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive}}),{genStyleHooks:cr,genComponentStyleHook:Z_e,genSubStyleComponent:hS}=Y_e({usePrefix:()=>{const{getPrefixCls:e,iconPrefixCls:t}=p.useContext(Qt);return{rootPrefixCls:e(),iconPrefixCls:t}},useToken:()=>{const[e,t,n,r,i]=Go();return{theme:e,realToken:t,hashId:n,token:r,cssVar:i}},useCSP:()=>{const{csp:e}=p.useContext(Qt);return e??{}},getResetStyles:(e,t)=>{var n;return[{"&":pYe(e)},X_e((n=t==null?void 0:t.prefix.iconPrefixCls)!==null&&n!==void 0?n:c5)]},getCommonStyle:hYe,getCompUnitless:()=>K_e});function f5(e,t){return jv.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 mYe=(e,t)=>{const[n,r]=Go();return d_({theme:n,token:r,hashId:"",path:["ant-design-icons",e],nonce:()=>t==null?void 0:t.nonce,layer:{name:"antd"}},()=>[X_e(e)])},gYe=Object.assign({},kx),{useId:rne}=gYe,vYe=()=>"",bYe=typeof rne>"u"?vYe:rne;function yYe(e,t,n){var r;Wf();const i=e||{},o=i.inherit===!1||!t?Object.assign(Object.assign({},IT),{hashed:(r=t==null?void 0:t.hashed)!==null&&r!==void 0?r:IT.hashed,cssVar:t==null?void 0:t.cssVar}):t,a=bYe();return ah(()=>{var s,l;if(!e)return t;const c=Object.assign({},o.components);Object.keys(e.components||{}).forEach(f=>{c[f]=Object.assign(Object.assign({},c[f]),e.components[f])});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!gu(c,d,!0)}))}var _Ye=["children"],J_e=p.createContext({});function eSe(e){var t=e.children,n=Dt(e,_Ye);return p.createElement(J_e.Provider,{value:n},t)}var SYe=function(e){Ds(n,e);var t=il(n);function n(){return Kr(this,n),t.apply(this,arguments)}return Qr(n,[{key:"render",value:function(){return this.props.children}}]),n}(p.Component);function EYe(e){var t=p.useReducer(function(s){return s+1},0),n=Ie(t,2),r=n[1],i=p.useRef(e),o=Yn(function(){return i.current}),a=Yn(function(s){i.current=typeof s=="function"?s(i.current):s,r()});return[o,a]}var Xh="none",mR="appear",gR="enter",vR="leave",ine="none",Qu="prepare",ey="start",ty="active",QW="end",tSe="prepared";function one(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 CYe(e,t){var n={animationend:one("Animation","AnimationEnd"),transitionend:one("Transition","TransitionEnd")};return e&&("AnimationEvent"in t||delete n.animationend.animation,"TransitionEvent"in t||delete n.transitionend.transition),n}var wYe=CYe(Qs(),typeof window<"u"?window:{}),nSe={};if(Qs()){var TYe=document.createElement("div");nSe=TYe.style}var bR={};function rSe(e){if(bR[e])return bR[e];var t=wYe[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 nSe)return bR[e]=t[o],bR[e]}return""}var iSe=rSe("animationend"),oSe=rSe("transitionend"),aSe=!!(iSe&&oSe),ane=iSe||"animationend",sne=oSe||"transitionend";function lne(e,t){if(!e)return null;if(Gt(e)==="object"){var n=t.replace(/-\w/g,function(r){return r[1].toUpperCase()});return e[n]}return"".concat(e,"-").concat(t)}const xYe=function(e){var t=p.useRef();function n(i){i&&(i.removeEventListener(sne,e),i.removeEventListener(ane,e))}function r(i){t.current&&t.current!==i&&n(t.current),i&&i!==t.current&&(i.addEventListener(sne,e),i.addEventListener(ane,e),t.current=i)}return p.useEffect(function(){return function(){n(t.current)}},[]),[r,n]};var sSe=Qs()?p.useLayoutEffect:p.useEffect;const OYe=function(){var e=p.useRef(null);function t(){rr.cancel(e.current)}function n(r){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;t();var o=rr(function(){i<=1?r({isCanceled:function(){return o!==e.current}}):n(r,i-1)});e.current=o}return p.useEffect(function(){return function(){t()}},[]),[n,t]};var RYe=[Qu,ey,ty,QW],IYe=[Qu,tSe],lSe=!1,AYe=!0;function cSe(e){return e===ty||e===QW}const NYe=function(e,t,n){var r=Bv(ine),i=Ie(r,2),o=i[0],a=i[1],s=OYe(),l=Ie(s,2),c=l[0],u=l[1];function d(){a(Qu,!0)}var f=t?IYe:RYe;return sSe(function(){if(o!==ine&&o!==QW){var h=f.indexOf(o),m=f[h+1],g=n(o);g===lSe?a(m,!0):m&&c(function(v){function y(){v.isCanceled()||a(m,!0)}g===!0?y():Promise.resolve(g).then(y)})}},[e,o]),p.useEffect(function(){return function(){u()}},[]),[d,o]};function MYe(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,f=r.onAppearPrepare,h=r.onEnterPrepare,m=r.onLeavePrepare,g=r.onAppearStart,v=r.onEnterStart,y=r.onLeaveStart,b=r.onAppearActive,_=r.onEnterActive,E=r.onLeaveActive,w=r.onAppearEnd,S=r.onEnterEnd,C=r.onLeaveEnd,T=r.onVisibleChanged,x=Bv(),O=Ie(x,2),N=O[0],I=O[1],M=EYe(Xh),F=Ie(M,2),k=F[0],B=F[1],A=Bv(null),P=Ie(A,2),z=P[0],L=P[1],V=k(),j=p.useRef(!1),U=p.useRef(null);function J(){return n()}var te=p.useRef(!1);function ae(){B(Xh),L(null,!0)}var K=Yn(function(ye){var he=k();if(he!==Xh){var _e=J();if(!(ye&&!ye.deadline&&ye.target!==_e)){var Oe=te.current,De;he===mR&&Oe?De=w==null?void 0:w(_e,ye):he===gR&&Oe?De=S==null?void 0:S(_e,ye):he===vR&&Oe&&(De=C==null?void 0:C(_e,ye)),Oe&&De!==!1&&ae()}}}),Q=xYe(K),oe=Ie(Q,1),ge=oe[0],fe=function(he){switch(he){case mR:return ee(ee(ee({},Qu,f),ey,g),ty,b);case gR:return ee(ee(ee({},Qu,h),ey,v),ty,_);case vR:return ee(ee(ee({},Qu,m),ey,y),ty,E);default:return{}}},ue=p.useMemo(function(){return fe(V)},[V]),le=NYe(V,!e,function(ye){if(ye===Qu){var he=ue[Qu];return he?he(J()):lSe}if(pe in ue){var _e;L(((_e=ue[pe])===null||_e===void 0?void 0:_e.call(ue,J(),null))||null)}return pe===ty&&V!==Xh&&(ge(J()),u>0&&(clearTimeout(U.current),U.current=setTimeout(function(){K({deadline:!0})},u))),pe===tSe&&ae(),AYe}),ve=Ie(le,2),ne=ve[0],pe=ve[1],be=cSe(pe);te.current=be;var Re=p.useRef(null);sSe(function(){if(!(j.current&&Re.current===t)){I(t);var ye=j.current;j.current=!0;var he;!ye&&t&&s&&(he=mR),ye&&t&&o&&(he=gR),(ye&&!t&&c||!ye&&d&&!t&&c)&&(he=vR);var _e=fe(he);he&&(e||_e[Qu])?(B(he),ne()):B(Xh),Re.current=t}},[t]),p.useEffect(function(){(V===mR&&!s||V===gR&&!o||V===vR&&!c)&&B(Xh)},[s,o,c]),p.useEffect(function(){return function(){j.current=!1,clearTimeout(U.current)}},[]);var Se=p.useRef(!1);p.useEffect(function(){N&&(Se.current=!0),N!==void 0&&V===Xh&&((Se.current||N)&&(T==null||T(N)),Se.current=!0)},[N,V]);var Ce=z;return ue[Qu]&&pe===ey&&(Ce=W({transition:"none"},Ce)),[V,pe,Ce,N??t]}function kYe(e){var t=e;Gt(e)==="object"&&(t=e.transitionSupport);function n(i,o){return!!(i.motionName&&t&&o!==!1)}var r=p.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,f=i.motionName,h=i.leavedClassName,m=i.eventProps,g=p.useContext(J_e),v=g.motion,y=n(i,v),b=p.useRef(),_=p.useRef();function E(){try{return b.current instanceof HTMLElement?b.current:ow(_.current)}catch{return null}}var w=MYe(y,s,E,i),S=Ie(w,4),C=S[0],T=S[1],x=S[2],O=S[3],N=p.useRef(O);O&&(N.current=!0);var I=p.useCallback(function(P){b.current=P,ST(o,P)},[o]),M,F=W(W({},m),{},{visible:s});if(!d)M=null;else if(C===Xh)O?M=d(W({},F),I):!c&&N.current&&h?M=d(W(W({},F),{},{className:h}),I):u||!c&&!h?M=d(W(W({},F),{},{style:{display:"none"}}),I):M=null;else{var k;T===Qu?k="prepare":cSe(T)?k="active":T===ey&&(k="start");var B=lne(f,"".concat(C,"-").concat(k));M=d(W(W({},F),{},{className:Te(lne(f,C),ee(ee({},B,B&&k),f,typeof f=="string")),style:x}),I)}if(p.isValidElement(M)&&Cd(M)){var A=Og(M);A||(M=p.cloneElement(M,{ref:I}))}return p.createElement(SYe,{ref:_},M)});return r.displayName="CSSMotion",r}const ra=kYe(aSe);var Qj="add",Xj="keep",Zj="remove",hL="removed";function PYe(e){var t;return e&&Gt(e)==="object"&&"key"in e?t=e:t={key:e},W(W({},t),{},{key:String(t.key)})}function Jj(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return e.map(PYe)}function DYe(){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=Jj(e),a=Jj(t);o.forEach(function(c){for(var u=!1,d=r;d<i;d+=1){var f=a[d];if(f.key===c.key){r<d&&(n=n.concat(a.slice(r,d).map(function(h){return W(W({},h),{},{status:Qj})})),r=d),n.push(W(W({},f),{},{status:Xj})),r+=1,u=!0;break}}u||n.push(W(W({},c),{},{status:Zj}))}),r<i&&(n=n.concat(a.slice(r).map(function(c){return W(W({},c),{},{status:Qj})})));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,f=u.status;return d!==c||f!==Zj}),n.forEach(function(u){u.key===c&&(u.status=Xj)})}),n}var LYe=["component","children","onVisibleChanged","onAllRemoved"],$Ye=["status"],FYe=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function BYe(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ra,n=function(r){Ds(o,r);var i=il(o);function o(){var a;Kr(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)),ee(cn(a),"state",{keyEntities:[]}),ee(cn(a),"removeKey",function(u){a.setState(function(d){var f=d.keyEntities.map(function(h){return h.key!==u?h:W(W({},h),{},{status:hL})});return{keyEntities:f}},function(){var d=a.state.keyEntities,f=d.filter(function(h){var m=h.status;return m!==hL}).length;f===0&&a.props.onAllRemoved&&a.props.onAllRemoved()})}),a}return Qr(o,[{key:"render",value:function(){var s=this,l=this.state.keyEntities,c=this.props,u=c.component,d=c.children,f=c.onVisibleChanged;c.onAllRemoved;var h=Dt(c,LYe),m=u||p.Fragment,g={};return FYe.forEach(function(v){g[v]=h[v],delete h[v]}),delete h.keys,p.createElement(m,h,l.map(function(v,y){var b=v.status,_=Dt(v,$Ye),E=b===Qj||b===Xj;return p.createElement(t,Ke({},g,{key:_.key,visible:E,eventProps:_,onVisibleChanged:function(S){f==null||f(S,{key:_.key}),S||s.removeKey(_.key)}}),function(w,S){return d(W(W({},w),{},{index:y}),S)})}))}}],[{key:"getDerivedStateFromProps",value:function(s,l){var c=s.keys,u=l.keyEntities,d=Jj(c),f=DYe(u,d);return{keyEntities:f.filter(function(h){var m=u.find(function(g){var v=g.key;return h.key===v});return!(m&&m.status===hL&&h.status===Zj)})}}}]),o}(p.Component);return ee(n,"defaultProps",{component:"div"}),n}const p5=BYe(aSe),jYe=Object.freeze(Object.defineProperty({__proto__:null,CSSMotionList:p5,Provider:eSe,default:ra},Symbol.toStringTag,{value:"Module"}));function HYe(e){const{children:t}=e,[,n]=Go(),{motion:r}=n,i=p.useRef(!1);return i.current=i.current||r===!1,i.current?p.createElement(eSe,{motion:r},t):t}const UYe=()=>null;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 VYe=["getTargetContainer","getPopupContainer","renderEmpty","input","pagination","form","select","button"];let $M,uSe,dSe,fSe;function AA(){return $M||AT}function GYe(){return uSe||c5}function WYe(e){return Object.keys(e).some(t=>t.endsWith("Color"))}const qYe=e=>{const{prefixCls:t,iconPrefixCls:n,theme:r,holderRender:i}=e;t!==void 0&&($M=t),n!==void 0&&(uSe=n),"holderRender"in e&&(fSe=i),r&&(WYe(r)?Xqe(AA(),r):dSe=r)},pSe=()=>({getPrefixCls:(e,t)=>t||(e?`${AA()}-${e}`:AA()),getIconPrefixCls:GYe,getRootPrefixCls:()=>$M||AA(),getTheme:()=>dSe,holderRender:fSe}),YYe=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:f,dropdownMatchSelectWidth:h,popupMatchSelectWidth:m,popupOverflow:g,legacyLocale:v,parentContext:y,iconPrefixCls:b,theme:_,componentDisabled:E,segmented:w,statistic:S,spin:C,calendar:T,carousel:x,cascader:O,collapse:N,typography:I,checkbox:M,descriptions:F,divider:k,drawer:B,skeleton:A,steps:P,image:z,layout:L,list:V,mentions:j,modal:U,progress:J,result:te,slider:ae,breadcrumb:K,menu:Q,pagination:oe,input:ge,textArea:fe,empty:ue,badge:le,radio:ve,rate:ne,switch:pe,transfer:be,avatar:Re,message:Se,tag:Ce,table:ye,card:he,tabs:_e,timeline:Oe,timePicker:De,upload:Y,notification:D,tree:G,colorPicker:ie,datePicker:me,rangePicker:se,flex:Be,wave:Ve,dropdown:re,warning:Me,tour:je,tooltip:ke,popover:Ge,popconfirm:Ue,floatButtonGroup:qe,variant:At,inputNumber:at,treeSelect:pt}=e,Ct=p.useCallback((_t,Bt)=>{const{prefixCls:Nt}=e;if(Bt)return Bt;const vt=Nt||y.getPrefixCls("");return _t?`${vt}-${_t}`:vt},[y.getPrefixCls,e.prefixCls]),bt=b||y.iconPrefixCls||c5,Vt=n||y.csp;mYe(bt,Vt);const Tt=yYe(_,y.theme,{prefixCls:Ct("")}),Ot={csp:Vt,autoInsertSpaceInButton:r,alert:i,anchor:o,locale:s||v,direction:c,space:u,splitter:d,virtual:f,popupMatchSelectWidth:m??h,popupOverflow:g,getPrefixCls:Ct,iconPrefixCls:bt,theme:Tt,segmented:w,statistic:S,spin:C,calendar:T,carousel:x,cascader:O,collapse:N,typography:I,checkbox:M,descriptions:F,divider:k,drawer:B,skeleton:A,steps:P,image:z,input:ge,textArea:fe,layout:L,list:V,mentions:j,modal:U,progress:J,result:te,slider:ae,breadcrumb:K,menu:Q,pagination:oe,empty:ue,badge:le,radio:ve,rate:ne,switch:pe,transfer:be,avatar:Re,message:Se,tag:Ce,table:ye,card:he,tabs:_e,timeline:Oe,timePicker:De,upload:Y,notification:D,tree:G,colorPicker:ie,datePicker:me,rangePicker:se,flex:Be,wave:Ve,dropdown:re,warning:Me,tour:je,tooltip:ke,popover:Ge,popconfirm:Ue,floatButtonGroup:qe,variant:At,inputNumber:at,treeSelect:pt},Ut=Object.assign({},y);Object.keys(Ot).forEach(_t=>{Ot[_t]!==void 0&&(Ut[_t]=Ot[_t])}),VYe.forEach(_t=>{const Bt=e[_t];Bt&&(Ut[_t]=Bt)}),typeof r<"u"&&(Ut.button=Object.assign({autoInsertSpace:r},Ut.button));const ze=ah(()=>Ut,Ut,(_t,Bt)=>{const Nt=Object.keys(_t),vt=Object.keys(Bt);return Nt.length!==vt.length||Nt.some(ht=>_t[ht]!==Bt[ht])}),Ye=p.useMemo(()=>({prefixCls:bt,csp:Vt}),[bt,Vt]);let He=p.createElement(p.Fragment,null,p.createElement(UYe,{dropdownMatchSelectWidth:h}),t);const Ze=p.useMemo(()=>{var _t,Bt,Nt,vt;return F1(((_t=Ec.Form)===null||_t===void 0?void 0:_t.defaultValidateMessages)||{},((Nt=(Bt=ze.locale)===null||Bt===void 0?void 0:Bt.Form)===null||Nt===void 0?void 0:Nt.defaultValidateMessages)||{},((vt=ze.form)===null||vt===void 0?void 0:vt.validateMessages)||{},(a==null?void 0:a.validateMessages)||{})},[ze,a==null?void 0:a.validateMessages]);Object.keys(Ze).length>0&&(He=p.createElement(I_e.Provider,{value:Ze},He)),s&&(He=p.createElement(Iqe,{locale:s,_ANT_MARK__:Rqe},He)),(bt||Vt)&&(He=p.createElement(l5.Provider,{value:Ye},He)),l&&(He=p.createElement(Zqe,{size:l},He)),He=p.createElement(HYe,null,He);const yt=p.useMemo(()=>{const _t=Tt||{},{algorithm:Bt,token:Nt,components:vt,cssVar:ht}=_t,kt=zYe(_t,["algorithm","token","components","cssVar"]),Et=Bt&&(!Array.isArray(Bt)||Bt.length>0)?Lv(Bt):B_e,Yt={};Object.entries(vt||{}).forEach(Rt=>{let[Ht,wt]=Rt;const St=Object.assign({},wt);"algorithm"in St&&(St.algorithm===!0?St.theme=Et:(Array.isArray(St.algorithm)||typeof St.algorithm=="function")&&(St.theme=Lv(St.algorithm)),delete St.algorithm),Yt[Ht]=St});const ct=Object.assign(Object.assign({},f_),Nt);return Object.assign(Object.assign({},kt),{theme:Et,token:ct,components:Yt,override:Object.assign({override:ct},Yt),cssVar:ht})},[Tt]);return _&&(He=p.createElement(GW.Provider,{value:yt},He)),ze.warning&&(He=p.createElement(Tqe.Provider,{value:ze.warning},He)),E!==void 0&&(He=p.createElement(qW,{disabled:E},He)),p.createElement(Qt.Provider,{value:ze},He)},Ln=e=>{const t=p.useContext(Qt),n=p.useContext(zW);return p.createElement(YYe,Object.assign({parentContext:t,legacyLocale:n},e))};Ln.ConfigContext=Qt;Ln.SizeContext=Fv;Ln.config=qYe;Ln.useConfig=Jqe;Object.defineProperty(Ln,"SizeContext",{get:()=>Fv});var KYe={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 hSe(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}function QYe(e){return hSe(e)instanceof ShadowRoot}function FM(e){return QYe(e)?hSe(e):null}function XYe(e){return e.replace(/-(.)/g,function(t,n){return n.toUpperCase()})}function eH(e,t){Yr(e,"[@ant-design/icons] ".concat(t))}function cne(e){return Gt(e)==="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(Gt(e.icon)==="object"||typeof e.icon=="function")}function une(){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[XYe(n)]=r}return t},{})}function tH(e,t,n){return n?ce.createElement(e.tag,W(W({key:t},une(e.attrs)),n),(e.children||[]).map(function(r,i){return tH(r,"".concat(t,"-").concat(e.tag,"-").concat(i))})):ce.createElement(e.tag,W({key:t},une(e.attrs)),(e.children||[]).map(function(r,i){return tH(r,"".concat(t,"-").concat(e.tag,"-").concat(i))}))}function mSe(e){return fg(e)[0]}function gSe(e){return e?Array.isArray(e)?e:[e]:[]}var ZYe={width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",focusable:"false"},JYe=`
.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);
}
}
`,vSe=function(t){var n=p.useContext(l5),r=n.csp,i=n.prefixCls,o=n.layer,a=JYe;i&&(a=a.replace(/anticon/g,i)),o&&(a="@layer ".concat(o,` {
`).concat(a,`
}`)),p.useEffect(function(){var s=t.current,l=FM(s);d5(a,"@ant-design-icons",{prepend:!o,csp:r,attachTo:l})},[])},eKe=["icon","className","onClick","style","primaryColor","secondaryColor"],cw={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function tKe(e){var t=e.primaryColor,n=e.secondaryColor;cw.primaryColor=t,cw.secondaryColor=n||mSe(t),cw.calculated=!!n}function nKe(){return W({},cw)}var mS=function(t){var n=t.icon,r=t.className,i=t.onClick,o=t.style,a=t.primaryColor,s=t.secondaryColor,l=Dt(t,eKe),c=p.useRef(),u=cw;if(a&&(u={primaryColor:a,secondaryColor:s||mSe(a)}),vSe(c),eH(cne(n),"icon should be icon definiton, but got ".concat(n)),!cne(n))return null;var d=n;return d&&typeof d.icon=="function"&&(d=W(W({},d),{},{icon:d.icon(u.primaryColor,u.secondaryColor)})),tH(d.icon,"svg-".concat(d.name),W(W({className:r,onClick:i,style:o,"data-icon":d.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},l),{},{ref:c}))};mS.displayName="IconReact";mS.getTwoToneColors=nKe;mS.setTwoToneColors=tKe;function bSe(e){var t=gSe(e),n=Ie(t,2),r=n[0],i=n[1];return mS.setTwoToneColors({primaryColor:r,secondaryColor:i})}function rKe(){var e=mS.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}var iKe=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];bSe($v.primary);var Nn=p.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=Dt(e,iKe),u=p.useContext(l5),d=u.prefixCls,f=d===void 0?"anticon":d,h=u.rootClassName,m=Te(h,f,ee(ee({},"".concat(f,"-").concat(r.name),!!r.name),"".concat(f,"-spin"),!!i||r.name==="loading"),n),g=a;g===void 0&&s&&(g=-1);var v=o?{msTransform:"rotate(".concat(o,"deg)"),transform:"rotate(".concat(o,"deg)")}:void 0,y=gSe(l),b=Ie(y,2),_=b[0],E=b[1];return p.createElement("span",Ke({role:"img","aria-label":r.name},c,{ref:t,tabIndex:g,onClick:s,className:m}),p.createElement(mS,{icon:r,primaryColor:_,secondaryColor:E,style:v}))});Nn.displayName="AntdIcon";Nn.getTwoToneColor=rKe;Nn.setTwoToneColor=bSe;var oKe=function(t,n){return p.createElement(Nn,Ke({},t,{ref:n,icon:KYe}))},_0=p.forwardRef(oKe),aKe={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"},sKe=function(t,n){return p.createElement(Nn,Ke({},t,{ref:n,icon:aKe}))},qf=p.forwardRef(sKe),lKe={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"},cKe=function(t,n){return p.createElement(Nn,Ke({},t,{ref:n,icon:lKe}))},Yf=p.forwardRef(cKe),uKe={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"},dKe=function(t,n){return p.createElement(Nn,Ke({},t,{ref:n,icon:uKe}))},Rg=p.forwardRef(dKe),fKe={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"},pKe=function(t,n){return p.createElement(Nn,Ke({},t,{ref:n,icon:fKe}))},h5=p.forwardRef(pKe),hKe=`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`,mKe=`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`,gKe="".concat(hKe," ").concat(mKe).split(/[\s\n]+/),vKe="aria-",bKe="data-";function dne(e,t){return e.indexOf(t)===0}function xi(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=W({},t);var r={};return Object.keys(e).forEach(function(i){(n.aria&&(i==="role"||dne(i,vKe))||n.data&&dne(i,bKe)||n.attr&&gKe.includes(i))&&(r[i]=e[i])}),r}function ySe(e){return e&&ce.isValidElement(e)&&e.type===ce.Fragment}const XW=(e,t,n)=>ce.isValidElement(e)?ce.cloneElement(e,typeof n=="function"?n(e.props||{}):n):t;function _o(e,t){return XW(e,e,t)}const yR=(e,t,n,r,i)=>({background:e,border:`${Ae(r.lineWidth)} ${r.lineType} ${t}`,[`${i}-icon`]:{color:n}}),yKe=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:f,withDescriptionPadding:h,defaultPadding:m}=e;return{[t]:Object.assign(Object.assign({},gr(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:f},[`&${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:h,[`${t}-icon`]:{marginInlineEnd:i,fontSize:u,lineHeight:0},[`${t}-message`]:{display:"block",marginBottom:r,color:f,fontSize:a},[`${t}-description`]:{display:"block",color:d}},[`${t}-banner`]:{marginBottom:0,border:"0 !important",borderRadius:0}}},_Ke=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:f,colorInfoBg:h}=e;return{[t]:{"&-success":yR(i,r,n,e,t),"&-info":yR(h,f,d,e,t),"&-warning":yR(s,a,o,e,t),"&-error":Object.assign(Object.assign({},yR(u,c,l,e,t)),{[`${t}-description > pre`]:{margin:0,padding:0}})}}},SKe=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:Ae(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}}}}},EKe=e=>({withDescriptionIconSize:e.fontSizeHeading3,defaultPadding:`${e.paddingContentVerticalSM}px 12px`,withDescriptionPadding:`${e.paddingMD}px ${e.paddingContentHorizontalLG}px`}),CKe=cr("Alert",e=>[yKe(e),_Ke(e),SKe(e)],EKe);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};const wKe={success:_0,info:h5,error:qf,warning:Rg},TKe=e=>{const{icon:t,prefixCls:n,type:r}=e,i=wKe[r]||null;return t?XW(t,p.createElement("span",{className:`${n}-icon`},t),()=>({className:Te(`${n}-icon`,t.props.className)})):p.createElement(i,{className:`${n}-icon`})},xKe=e=>{const{isClosable:t,prefixCls:n,closeIcon:r,handleClose:i,ariaProps:o}=e,a=r===!0||r===void 0?p.createElement(Yf,null):r;return t?p.createElement("button",Object.assign({type:"button",onClick:i,className:`${n}-close-icon`,tabIndex:0},o),a):null},_Se=p.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:f,showIcon:h,closable:m,closeText:g,closeIcon:v,action:y,id:b}=e,_=fne(e,["description","prefixCls","message","banner","className","rootClassName","style","onMouseEnter","onMouseLeave","onClick","afterClose","showIcon","closable","closeText","closeIcon","action","id"]),[E,w]=p.useState(!1),S=p.useRef(null);p.useImperativeHandle(t,()=>({nativeElement:S.current}));const{getPrefixCls:C,direction:T,alert:x}=p.useContext(Qt),O=C("alert",r),[N,I,M]=CKe(O),F=j=>{var U;w(!0),(U=e.onClose)===null||U===void 0||U.call(e,j)},k=p.useMemo(()=>e.type!==void 0?e.type:o?"warning":"info",[e.type,o]),B=p.useMemo(()=>typeof m=="object"&&m.closeIcon||g?!0:typeof m=="boolean"?m:v!==!1&&v!==null&&v!==void 0?!0:!!(x!=null&&x.closable),[g,v,m,x==null?void 0:x.closable]),A=o&&h===void 0?!0:h,P=Te(O,`${O}-${k}`,{[`${O}-with-description`]:!!n,[`${O}-no-icon`]:!A,[`${O}-banner`]:!!o,[`${O}-rtl`]:T==="rtl"},x==null?void 0:x.className,a,s,M,I),z=xi(_,{aria:!0,data:!0}),L=p.useMemo(()=>{var j,U;return typeof m=="object"&&m.closeIcon?m.closeIcon:g||(v!==void 0?v:typeof(x==null?void 0:x.closable)=="object"&&(!((j=x==null?void 0:x.closable)===null||j===void 0)&&j.closeIcon)?(U=x==null?void 0:x.closable)===null||U===void 0?void 0:U.closeIcon:x==null?void 0:x.closeIcon)},[v,m,g,x==null?void 0:x.closeIcon]),V=p.useMemo(()=>{const j=m??(x==null?void 0:x.closable);return typeof j=="object"?fne(j,["closeIcon"]):{}},[m,x==null?void 0:x.closable]);return N(p.createElement(ra,{visible:!E,motionName:`${O}-motion`,motionAppear:!1,motionEnter:!1,onLeaveStart:j=>({maxHeight:j.offsetHeight}),onLeaveEnd:f},(j,U)=>{let{className:J,style:te}=j;return p.createElement("div",Object.assign({id:b,ref:oa(S,U),"data-show":!E,className:Te(P,J),style:Object.assign(Object.assign(Object.assign({},x==null?void 0:x.style),l),te),onMouseEnter:c,onMouseLeave:u,onClick:d,role:"alert"},z),A?p.createElement(TKe,{description:n,icon:e.icon,prefixCls:O,type:k}):null,p.createElement("div",{className:`${O}-content`},i?p.createElement("div",{className:`${O}-message`},i):null,n?p.createElement("div",{className:`${O}-description`},n):null),y?p.createElement("div",{className:`${O}-action`},y):null,p.createElement(xKe,{isClosable:B,prefixCls:O,closeIcon:L,handleClose:F,ariaProps:V}))}))});function OKe(e,t,n){return t=Dv(t),Qye(e,r5()?Reflect.construct(t,n||[],Dv(e).constructor):t.apply(e,n))}let RKe=function(e){function t(){var n;return Kr(this,t),n=OKe(this,t,arguments),n.state={error:void 0,info:{componentStack:""}},n}return Ds(t,e),Qr(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?p.createElement(_Se,{id:o,type:"error",message:u,description:p.createElement("pre",{style:{fontSize:"0.9em",overflowX:"auto"}},d)}):a}}])}(p.Component);const SSe=_Se;SSe.ErrorBoundary=RKe;const pne=e=>typeof e=="object"&&e!=null&&e.nodeType===1,hne=(e,t)=>(!t||e!=="hidden")&&e!=="visible"&&e!=="clip",mL=(e,t)=>{if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){const n=getComputedStyle(e,null);return hne(n.overflowY,t)||hne(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},_R=(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,IKe=e=>{const t=e.parentElement;return t??(e.getRootNode().host||null)},mne=(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:B=>B!==c;if(!pne(e))throw new TypeError("Invalid target");const f=document.scrollingElement||document.documentElement,h=[];let m=e;for(;pne(m)&&d(m);){if(m=IKe(m),m===f){h.push(m);break}m!=null&&m===document.body&&mL(m)&&!mL(document.documentElement)||m!=null&&mL(m,u)&&h.push(m)}const g=(r=(n=window.visualViewport)==null?void 0:n.width)!=null?r:innerWidth,v=(o=(i=window.visualViewport)==null?void 0:i.height)!=null?o:innerHeight,{scrollX:y,scrollY:b}=window,{height:_,width:E,top:w,right:S,bottom:C,left:T}=e.getBoundingClientRect(),{top:x,right:O,bottom:N,left:I}=(B=>{const A=window.getComputedStyle(B);return{top:parseFloat(A.scrollMarginTop)||0,right:parseFloat(A.scrollMarginRight)||0,bottom:parseFloat(A.scrollMarginBottom)||0,left:parseFloat(A.scrollMarginLeft)||0}})(e);let M=s==="start"||s==="nearest"?w-x:s==="end"?C+N:w+_/2-x+N,F=l==="center"?T+E/2-I+O:l==="end"?S+O:T-I;const k=[];for(let B=0;B<h.length;B++){const A=h[B],{height:P,width:z,top:L,right:V,bottom:j,left:U}=A.getBoundingClientRect();if(a==="if-needed"&&w>=0&&T>=0&&C<=v&&S<=g&&w>=L&&C<=j&&T>=U&&S<=V)return k;const J=getComputedStyle(A),te=parseInt(J.borderLeftWidth,10),ae=parseInt(J.borderTopWidth,10),K=parseInt(J.borderRightWidth,10),Q=parseInt(J.borderBottomWidth,10);let oe=0,ge=0;const fe="offsetWidth"in A?A.offsetWidth-A.clientWidth-te-K:0,ue="offsetHeight"in A?A.offsetHeight-A.clientHeight-ae-Q:0,le="offsetWidth"in A?A.offsetWidth===0?0:z/A.offsetWidth:0,ve="offsetHeight"in A?A.offsetHeight===0?0:P/A.offsetHeight:0;if(f===A)oe=s==="start"?M:s==="end"?M-v:s==="nearest"?_R(b,b+v,v,ae,Q,b+M,b+M+_,_):M-v/2,ge=l==="start"?F:l==="center"?F-g/2:l==="end"?F-g:_R(y,y+g,g,te,K,y+F,y+F+E,E),oe=Math.max(0,oe+b),ge=Math.max(0,ge+y);else{oe=s==="start"?M-L-ae:s==="end"?M-j+Q+ue:s==="nearest"?_R(L,j,P,ae,Q+ue,M,M+_,_):M-(L+P/2)+ue/2,ge=l==="start"?F-U-te:l==="center"?F-(U+z/2)+fe/2:l==="end"?F-V+K+fe:_R(U,V,z,te,K+fe,F,F+E,E);const{scrollLeft:ne,scrollTop:pe}=A;oe=ve===0?0:Math.max(0,Math.min(pe+oe/ve,A.scrollHeight-P/ve+ue)),ge=le===0?0:Math.max(0,Math.min(ne+ge/le,A.scrollWidth-z/le+fe)),M+=pe-oe,F+=ne-ge}k.push({el:A,top:oe,left:ge})}return k},AKe=e=>e===!1?{block:"end",inline:"nearest"}:(t=>t===Object(t)&&Object.keys(t).length!==0)(e)?e:{block:"start",inline:"nearest"};function NKe(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(mne(e,t));const r=typeof t=="boolean"||t==null?void 0:t.behavior;for(const{el:i,top:o,left:a}of mne(e,AKe(t))){const s=o-n.top+n.bottom,l=a-n.left+n.right;i.scroll({top:s,left:l,behavior:r})}}function nH(e){return e!=null&&e===e.window}const MKe=e=>{var t,n;if(typeof window>"u")return 0;let r=0;return nH(e)?r=e.pageYOffset:e instanceof Document?r=e.documentElement.scrollTop:(e instanceof HTMLElement||e)&&(r=e.scrollTop),e&&!nH(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 kKe(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 PKe(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=MKe(o),s=Date.now(),l=()=>{const u=Date.now()-s,d=kKe(u>i?i:u,a,e,i);nH(o)?o.scrollTo(window.pageXOffset,d):o instanceof Document||o.constructor.name==="HTMLDocument"?o.documentElement.scrollTop=d:o.scrollTop=d,u<i?rr(l):typeof r=="function"&&r()};rr(l)}const ui=e=>{const[,,,,t]=Go();return t?`${e}-css-var`:""};var dt={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>=dt.F1&&n<=dt.F12)return!1;switch(n){case dt.ALT:case dt.CAPS_LOCK:case dt.CONTEXT_MENU:case dt.CTRL:case dt.DOWN:case dt.END:case dt.ESC:case dt.HOME:case dt.INSERT:case dt.LEFT:case dt.MAC_FF_META:case dt.META:case dt.NUMLOCK:case dt.NUM_CENTER:case dt.PAGE_DOWN:case dt.PAGE_UP:case dt.PAUSE:case dt.PRINT_SCREEN:case dt.RIGHT:case dt.SHIFT:case dt.UP:case dt.WIN_KEY:case dt.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(t){if(t>=dt.ZERO&&t<=dt.NINE||t>=dt.NUM_ZERO&&t<=dt.NUM_MULTIPLY||t>=dt.A&&t<=dt.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&t===0)return!0;switch(t){case dt.SPACE:case dt.QUESTION_MARK:case dt.NUM_PLUS:case dt.NUM_MINUS:case dt.NUM_PERIOD:case dt.NUM_DIVISION:case dt.SEMICOLON:case dt.DASH:case dt.EQUALS:case dt.COMMA:case dt.PERIOD:case dt.SLASH:case dt.APOSTROPHE:case dt.SINGLE_QUOTE:case dt.OPEN_SQUARE_BRACKET:case dt.BACKSLASH:case dt.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},ESe=p.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,f=e.closable,h=e.closeIcon,m=h===void 0?"x":h,g=e.props,v=e.onClick,y=e.onNoticeClose,b=e.times,_=e.hovering,E=p.useState(!1),w=Ie(E,2),S=w[0],C=w[1],T=p.useState(0),x=Ie(T,2),O=x[0],N=x[1],I=p.useState(0),M=Ie(I,2),F=M[0],k=M[1],B=_||S,A=a>0&&s,P=function(){y(u)},z=function(te){(te.key==="Enter"||te.code==="Enter"||te.keyCode===dt.ENTER)&&P()};p.useEffect(function(){if(!B&&a>0){var J=Date.now()-F,te=setTimeout(function(){P()},a*1e3-F);return function(){c&&clearTimeout(te),k(Date.now()-J)}}},[a,B,b]),p.useEffect(function(){if(!B&&A&&(c||F===0)){var J=performance.now(),te,ae=function K(){cancelAnimationFrame(te),te=requestAnimationFrame(function(Q){var oe=Q+F-J,ge=Math.min(oe/(a*1e3),1);N(ge*100),ge<1&&K()})};return ae(),function(){c&&cancelAnimationFrame(te)}}},[a,F,B,A,b]);var L=p.useMemo(function(){return Gt(f)==="object"&&f!==null?f:f?{closeIcon:m}:{}},[f,m]),V=xi(L,!0),j=100-(!O||O<0?0:O>100?100:O),U="".concat(n,"-notice");return p.createElement("div",Ke({},g,{ref:t,className:Te(U,i,ee({},"".concat(U,"-closable"),f)),style:r,onMouseEnter:function(te){var ae;C(!0),g==null||(ae=g.onMouseEnter)===null||ae===void 0||ae.call(g,te)},onMouseLeave:function(te){var ae;C(!1),g==null||(ae=g.onMouseLeave)===null||ae===void 0||ae.call(g,te)},onClick:v}),p.createElement("div",{className:"".concat(U,"-content")},d),f&&p.createElement("a",Ke({tabIndex:0,className:"".concat(U,"-close"),onKeyDown:z,"aria-label":"Close"},V,{onClick:function(te){te.preventDefault(),te.stopPropagation(),P()}}),L.closeIcon),A&&p.createElement("progress",{className:"".concat(U,"-progress"),max:"100",value:j},j+"%"))}),CSe=ce.createContext({}),wSe=function(t){var n=t.children,r=t.classNames;return ce.createElement(CSe.Provider,{value:{classNames:r}},n)},gne=8,vne=3,bne=16,DKe=function(t){var n={offset:gne,threshold:vne,gap:bne};if(t&&Gt(t)==="object"){var r,i,o;n.offset=(r=t.offset)!==null&&r!==void 0?r:gne,n.threshold=(i=t.threshold)!==null&&i!==void 0?i:vne,n.gap=(o=t.gap)!==null&&o!==void 0?o:bne}return[!!t,n]},LKe=["className","style","classNames","styles"],$Ke=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=p.useContext(CSe),f=d.classNames,h=p.useRef({}),m=p.useState(null),g=Ie(m,2),v=g[0],y=g[1],b=p.useState([]),_=Ie(b,2),E=_[0],w=_[1],S=n.map(function(B){return{config:B,key:String(B.key)}}),C=DKe(u),T=Ie(C,2),x=T[0],O=T[1],N=O.offset,I=O.threshold,M=O.gap,F=x&&(E.length>0||S.length<=I),k=typeof s=="function"?s(r):s;return p.useEffect(function(){x&&E.length>1&&w(function(B){return B.filter(function(A){return S.some(function(P){var z=P.key;return A===z})})})},[E,S,x]),p.useEffect(function(){var B;if(x&&h.current[(B=S[S.length-1])===null||B===void 0?void 0:B.key]){var A;y(h.current[(A=S[S.length-1])===null||A===void 0?void 0:A.key])}},[S,x]),ce.createElement(p5,Ke({key:r,className:Te(i,"".concat(i,"-").concat(r),f==null?void 0:f.list,o,ee(ee({},"".concat(i,"-stack"),!!x),"".concat(i,"-stack-expanded"),F)),style:a,keys:S,motionAppear:!0},k,{onAllRemoved:function(){l(r)}}),function(B,A){var P=B.config,z=B.className,L=B.style,V=B.index,j=P,U=j.key,J=j.times,te=String(U),ae=P,K=ae.className,Q=ae.style,oe=ae.classNames,ge=ae.styles,fe=Dt(ae,LKe),ue=S.findIndex(function(Oe){return Oe.key===te}),le={};if(x){var ve=S.length-1-(ue>-1?ue:V-1),ne=r==="top"||r==="bottom"?"-50%":"0";if(ve>0){var pe,be,Re;le.height=F?(pe=h.current[te])===null||pe===void 0?void 0:pe.offsetHeight:v==null?void 0:v.offsetHeight;for(var Se=0,Ce=0;Ce<ve;Ce++){var ye;Se+=((ye=h.current[S[S.length-1-Ce].key])===null||ye===void 0?void 0:ye.offsetHeight)+M}var he=(F?Se:ve*N)*(r.startsWith("top")?1:-1),_e=!F&&v!==null&&v!==void 0&&v.offsetWidth&&(be=h.current[te])!==null&&be!==void 0&&be.offsetWidth?((v==null?void 0:v.offsetWidth)-N*2*(ve<3?ve:3))/((Re=h.current[te])===null||Re===void 0?void 0:Re.offsetWidth):1;le.transform="translate3d(".concat(ne,", ").concat(he,"px, 0) scaleX(").concat(_e,")")}else le.transform="translate3d(".concat(ne,", 0, 0)")}return ce.createElement("div",{ref:A,className:Te("".concat(i,"-notice-wrapper"),z,oe==null?void 0:oe.wrapper),style:W(W(W({},L),le),ge==null?void 0:ge.wrapper),onMouseEnter:function(){return w(function(De){return De.includes(te)?De:[].concat(nt(De),[te])})},onMouseLeave:function(){return w(function(De){return De.filter(function(Y){return Y!==te})})}},ce.createElement(ESe,Ke({},fe,{ref:function(De){ue>-1?h.current[te]=De:delete h.current[te]},prefixCls:i,classNames:oe,styles:ge,className:Te(K,f==null?void 0:f.notice),style:Q,times:J,key:U,eventKey:U,onNoticeClose:c,hovering:x&&E.length>0})))})},FKe=p.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,f=p.useState([]),h=Ie(f,2),m=h[0],g=h[1],v=function(x){var O,N=m.find(function(I){return I.key===x});N==null||(O=N.onClose)===null||O===void 0||O.call(N),g(function(I){return I.filter(function(M){return M.key!==x})})};p.useImperativeHandle(t,function(){return{open:function(x){g(function(O){var N=nt(O),I=N.findIndex(function(k){return k.key===x.key}),M=W({},x);if(I>=0){var F;M.times=(((F=O[I])===null||F===void 0?void 0:F.times)||0)+1,N[I]=M}else M.times=0,N.push(M);return a>0&&N.length>a&&(N=N.slice(-a)),N})},close:function(x){v(x)},destroy:function(){g([])}}});var y=p.useState({}),b=Ie(y,2),_=b[0],E=b[1];p.useEffect(function(){var T={};m.forEach(function(x){var O=x.placement,N=O===void 0?"topRight":O;N&&(T[N]=T[N]||[],T[N].push(x))}),Object.keys(_).forEach(function(x){T[x]=T[x]||[]}),E(T)},[m]);var w=function(x){E(function(O){var N=W({},O),I=N[x]||[];return I.length||delete N[x],N})},S=p.useRef(!1);if(p.useEffect(function(){Object.keys(_).length>0?S.current=!0:S.current&&(c==null||c(),S.current=!1)},[_]),!i)return null;var C=Object.keys(_);return Ml.createPortal(p.createElement(p.Fragment,null,C.map(function(T){var x=_[T],O=p.createElement($Ke,{key:T,configList:x,placement:T,prefixCls:r,className:s==null?void 0:s(T),style:l==null?void 0:l(T),motion:o,onNoticeClose:v,onAllNoticeRemoved:w,stack:u});return d?d(O,{prefixCls:r,key:T}):O})),i)}),BKe=["getContainer","motion","prefixCls","maxCount","className","style","onAllRemoved","stack","renderNotifications"],jKe=function(){return document.body},yne=0;function HKe(){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 TSe(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.getContainer,n=t===void 0?jKe: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=Dt(e,BKe),f=p.useState(),h=Ie(f,2),m=h[0],g=h[1],v=p.useRef(),y=p.createElement(FKe,{container:m,ref:v,prefixCls:i,motion:r,maxCount:o,className:a,style:s,onAllRemoved:l,stack:c,renderNotifications:u}),b=p.useState([]),_=Ie(b,2),E=_[0],w=_[1],S=p.useMemo(function(){return{open:function(T){var x=HKe(d,T);(x.key===null||x.key===void 0)&&(x.key="rc-notification-".concat(yne),yne+=1),w(function(O){return[].concat(nt(O),[{type:"open",config:x}])})},close:function(T){w(function(x){return[].concat(nt(x),[{type:"close",key:T}])})},destroy:function(){w(function(T){return[].concat(nt(T),[{type:"destroy"}])})}}},[]);return p.useEffect(function(){g(n())}),p.useEffect(function(){v.current&&E.length&&(E.forEach(function(C){switch(C.type){case"open":v.current.open(C.config);break;case"close":v.current.close(C.key);break;case"destroy":v.current.destroy();break}}),w(function(C){return C.filter(function(T){return!E.includes(T)})}))},[E]),[S,y]}var UKe={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"},zKe=function(t,n){return p.createElement(Nn,Ke({},t,{ref:n,icon:UKe}))},xd=p.forwardRef(zKe);const Jx=ce.createContext(void 0),Zh=100,VKe=10,ZW=Zh*VKe,xSe={Modal:Zh,Drawer:Zh,Popover:Zh,Popconfirm:Zh,Tooltip:Zh,Tour:Zh,FloatButton:Zh},GKe={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1};function WKe(e){return e in xSe}const Ou=(e,t)=>{const[,n]=Go(),r=ce.useContext(Jx),i=WKe(e);let o;if(t!==void 0)o=[t,t];else{let a=r??0;i?a+=(r?0:n.zIndexPopupBase)+xSe[e]:a+=GKe[e],o=[r===void 0?t:a,a]}return o},qKe=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:f,paddingXS:h,borderRadiusLG:m,zIndexPopup:g,contentPadding:v,contentBg:y}=e,b=`${t}-notice`,_=new fr("MessageMoveIn",{"0%":{padding:0,transform:"translateY(-100%)",opacity:0},"100%":{padding:h,transform:"translateY(0)",opacity:1}}),E=new fr("MessageMoveOut",{"0%":{maxHeight:e.height,padding:h,opacity:1},"100%":{maxHeight:0,padding:0,opacity:0}}),w={padding:h,textAlign:"center",[`${t}-custom-content`]:{display:"flex",alignItems:"center"},[`${t}-custom-content > ${n}`]:{marginInlineEnd:f,fontSize:c},[`${b}-content`]:{display:"inline-block",padding:v,background:y,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({},gr(e)),{color:i,position:"fixed",top:f,width:"100%",pointerEvents:"none",zIndex:g,[`${t}-move-up`]:{animationFillMode:"forwards"},[`
${t}-move-up-appear,
${t}-move-up-enter
`]:{animationName:_,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:E,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({},w)}},{[`${t}-notice-pure-panel`]:Object.assign(Object.assign({},w),{padding:0,textAlign:"start"})}]},YKe=e=>({zIndexPopup:e.zIndexPopupBase+ZW+10,contentBg:e.colorBgElevated,contentPadding:`${(e.controlHeightLG-e.fontSize*e.lineHeight)/2}px ${e.paddingSM}px`}),OSe=cr("Message",e=>{const t=Kn(e,{height:150});return[qKe(t)]},YKe);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};const QKe={info:p.createElement(h5,null),success:p.createElement(_0,null),error:p.createElement(qf,null),warning:p.createElement(Rg,null),loading:p.createElement(xd,null)},RSe=e=>{let{prefixCls:t,type:n,icon:r,children:i}=e;return p.createElement("div",{className:Te(`${t}-custom-content`,`${t}-${n}`)},r||QKe[n],p.createElement("span",null,i))},XKe=e=>{const{prefixCls:t,className:n,type:r,icon:i,content:o}=e,a=KKe(e,["prefixCls","className","type","icon","content"]),{getPrefixCls:s}=p.useContext(Qt),l=t||s("message"),c=ui(l),[u,d,f]=OSe(l,c);return u(p.createElement(ESe,Object.assign({},a,{prefixCls:l,className:Te(n,d,`${l}-notice-pure-panel`,f,c),eventKey:"pure",duration:null,content:p.createElement(RSe,{prefixCls:l,type:r,icon:i},o)})))};function ZKe(e,t){return{motionName:t??`${e}-move-up`}}function JW(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 JKe=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 eQe=8,tQe=3,nQe=e=>{let{children:t,prefixCls:n}=e;const r=ui(n),[i,o,a]=OSe(n,r);return i(p.createElement(wSe,{classNames:{list:Te(o,a,r)}},t))},rQe=(e,t)=>{let{prefixCls:n,key:r}=t;return p.createElement(nQe,{prefixCls:n,key:r},e)},iQe=p.forwardRef((e,t)=>{const{top:n,prefixCls:r,getContainer:i,maxCount:o,duration:a=tQe,rtl:s,transitionName:l,onAllRemoved:c}=e,{getPrefixCls:u,getPopupContainer:d,message:f,direction:h}=p.useContext(Qt),m=r||u("message"),g=()=>({left:"50%",transform:"translateX(-50%)",top:n??eQe}),v=()=>Te({[`${m}-rtl`]:s??h==="rtl"}),y=()=>ZKe(m,l),b=p.createElement("span",{className:`${m}-close-x`},p.createElement(Yf,{className:`${m}-close-icon`})),[_,E]=TSe({prefixCls:m,style:g,className:v,motion:y,closable:!1,closeIcon:b,duration:a,getContainer:()=>(i==null?void 0:i())||(d==null?void 0:d())||document.body,maxCount:o,onAllRemoved:c,renderNotifications:rQe});return p.useImperativeHandle(t,()=>Object.assign(Object.assign({},_),{prefixCls:m,message:f})),E});let _ne=0;function ISe(e){const t=p.useRef(null);return Wf(),[p.useMemo(()=>{const r=l=>{var c;(c=t.current)===null||c===void 0||c.close(l)},i=l=>{if(!t.current){const S=()=>{};return S.then=()=>{},S}const{open:c,prefixCls:u,message:d}=t.current,f=`${u}-notice`,{content:h,icon:m,type:g,key:v,className:y,style:b,onClose:_}=l,E=JKe(l,["content","icon","type","key","className","style","onClose"]);let w=v;return w==null&&(_ne+=1,w=`antd-message-${_ne}`),JW(S=>(c(Object.assign(Object.assign({},E),{key:w,content:p.createElement(RSe,{prefixCls:u,type:g,icon:m},h),placement:"top",className:Te(g&&`${f}-${g}`,y,d==null?void 0:d.className),style:Object.assign(Object.assign({},d==null?void 0:d.style),b),onClose:()=>{_==null||_(),S()}})),()=>{r(w)}))},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,f)=>{let h;u&&typeof u=="object"&&"content"in u?h=u:h={content:u};let m,g;typeof d=="function"?g=d:(m=d,g=f);const v=Object.assign(Object.assign({onClose:g,duration:m},h),{type:l});return i(v)};a[l]=c}),a},[]),p.createElement(iQe,Object.assign({key:"message-holder"},e,{ref:t}))]}function ASe(e){return ISe(e)}function oQe(){const[e,t]=p.useState([]),n=p.useCallback(r=>(t(i=>[].concat(nt(i),[r])),()=>{t(i=>i.filter(o=>o!==r))}),[]);return[e,n]}function pr(){pr=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,i=Object.defineProperty||function(B,A,P){B[A]=P.value},o=typeof Symbol=="function"?Symbol:{},a=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";function c(B,A,P){return Object.defineProperty(B,A,{value:P,enumerable:!0,configurable:!0,writable:!0}),B[A]}try{c({},"")}catch{c=function(P,z,L){return P[z]=L}}function u(B,A,P,z){var L=A&&A.prototype instanceof y?A:y,V=Object.create(L.prototype),j=new F(z||[]);return i(V,"_invoke",{value:O(B,P,j)}),V}function d(B,A,P){try{return{type:"normal",arg:B.call(A,P)}}catch(z){return{type:"throw",arg:z}}}t.wrap=u;var f="suspendedStart",h="suspendedYield",m="executing",g="completed",v={};function y(){}function b(){}function _(){}var E={};c(E,a,function(){return this});var w=Object.getPrototypeOf,S=w&&w(w(k([])));S&&S!==n&&r.call(S,a)&&(E=S);var C=_.prototype=y.prototype=Object.create(E);function T(B){["next","throw","return"].forEach(function(A){c(B,A,function(P){return this._invoke(A,P)})})}function x(B,A){function P(L,V,j,U){var J=d(B[L],B,V);if(J.type!=="throw"){var te=J.arg,ae=te.value;return ae&&Gt(ae)=="object"&&r.call(ae,"__await")?A.resolve(ae.__await).then(function(K){P("next",K,j,U)},function(K){P("throw",K,j,U)}):A.resolve(ae).then(function(K){te.value=K,j(te)},function(K){return P("throw",K,j,U)})}U(J.arg)}var z;i(this,"_invoke",{value:function(V,j){function U(){return new A(function(J,te){P(V,j,J,te)})}return z=z?z.then(U,U):U()}})}function O(B,A,P){var z=f;return function(L,V){if(z===m)throw Error("Generator is already running");if(z===g){if(L==="throw")throw V;return{value:e,done:!0}}for(P.method=L,P.arg=V;;){var j=P.delegate;if(j){var U=N(j,P);if(U){if(U===v)continue;return U}}if(P.method==="next")P.sent=P._sent=P.arg;else if(P.method==="throw"){if(z===f)throw z=g,P.arg;P.dispatchException(P.arg)}else P.method==="return"&&P.abrupt("return",P.arg);z=m;var J=d(B,A,P);if(J.type==="normal"){if(z=P.done?g:h,J.arg===v)continue;return{value:J.arg,done:P.done}}J.type==="throw"&&(z=g,P.method="throw",P.arg=J.arg)}}}function N(B,A){var P=A.method,z=B.iterator[P];if(z===e)return A.delegate=null,P==="throw"&&B.iterator.return&&(A.method="return",A.arg=e,N(B,A),A.method==="throw")||P!=="return"&&(A.method="throw",A.arg=new TypeError("The iterator does not provide a '"+P+"' method")),v;var L=d(z,B.iterator,A.arg);if(L.type==="throw")return A.method="throw",A.arg=L.arg,A.delegate=null,v;var V=L.arg;return V?V.done?(A[B.resultName]=V.value,A.next=B.nextLoc,A.method!=="return"&&(A.method="next",A.arg=e),A.delegate=null,v):V:(A.method="throw",A.arg=new TypeError("iterator result is not an object"),A.delegate=null,v)}function I(B){var A={tryLoc:B[0]};1 in B&&(A.catchLoc=B[1]),2 in B&&(A.finallyLoc=B[2],A.afterLoc=B[3]),this.tryEntries.push(A)}function M(B){var A=B.completion||{};A.type="normal",delete A.arg,B.completion=A}function F(B){this.tryEntries=[{tryLoc:"root"}],B.forEach(I,this),this.reset(!0)}function k(B){if(B||B===""){var A=B[a];if(A)return A.call(B);if(typeof B.next=="function")return B;if(!isNaN(B.length)){var P=-1,z=function L(){for(;++P<B.length;)if(r.call(B,P))return L.value=B[P],L.done=!1,L;return L.value=e,L.done=!0,L};return z.next=z}}throw new TypeError(Gt(B)+" is not iterable")}return b.prototype=_,i(C,"constructor",{value:_,configurable:!0}),i(_,"constructor",{value:b,configurable:!0}),b.displayName=c(_,l,"GeneratorFunction"),t.isGeneratorFunction=function(B){var A=typeof B=="function"&&B.constructor;return!!A&&(A===b||(A.displayName||A.name)==="GeneratorFunction")},t.mark=function(B){return Object.setPrototypeOf?Object.setPrototypeOf(B,_):(B.__proto__=_,c(B,l,"GeneratorFunction")),B.prototype=Object.create(C),B},t.awrap=function(B){return{__await:B}},T(x.prototype),c(x.prototype,s,function(){return this}),t.AsyncIterator=x,t.async=function(B,A,P,z,L){L===void 0&&(L=Promise);var V=new x(u(B,A,P,z),L);return t.isGeneratorFunction(A)?V:V.next().then(function(j){return j.done?j.value:V.next()})},T(C),c(C,l,"Generator"),c(C,a,function(){return this}),c(C,"toString",function(){return"[object Generator]"}),t.keys=function(B){var A=Object(B),P=[];for(var z in A)P.push(z);return P.reverse(),function L(){for(;P.length;){var V=P.pop();if(V in A)return L.value=V,L.done=!1,L}return L.done=!0,L}},t.values=k,F.prototype={constructor:F,reset:function(A){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(M),!A)for(var P in this)P.charAt(0)==="t"&&r.call(this,P)&&!isNaN(+P.slice(1))&&(this[P]=e)},stop:function(){this.done=!0;var A=this.tryEntries[0].completion;if(A.type==="throw")throw A.arg;return this.rval},dispatchException:function(A){if(this.done)throw A;var P=this;function z(te,ae){return j.type="throw",j.arg=A,P.next=te,ae&&(P.method="next",P.arg=e),!!ae}for(var L=this.tryEntries.length-1;L>=0;--L){var V=this.tryEntries[L],j=V.completion;if(V.tryLoc==="root")return z("end");if(V.tryLoc<=this.prev){var U=r.call(V,"catchLoc"),J=r.call(V,"finallyLoc");if(U&&J){if(this.prev<V.catchLoc)return z(V.catchLoc,!0);if(this.prev<V.finallyLoc)return z(V.finallyLoc)}else if(U){if(this.prev<V.catchLoc)return z(V.catchLoc,!0)}else{if(!J)throw Error("try statement without catch or finally");if(this.prev<V.finallyLoc)return z(V.finallyLoc)}}}},abrupt:function(A,P){for(var z=this.tryEntries.length-1;z>=0;--z){var L=this.tryEntries[z];if(L.tryLoc<=this.prev&&r.call(L,"finallyLoc")&&this.prev<L.finallyLoc){var V=L;break}}V&&(A==="break"||A==="continue")&&V.tryLoc<=P&&P<=V.finallyLoc&&(V=null);var j=V?V.completion:{};return j.type=A,j.arg=P,V?(this.method="next",this.next=V.finallyLoc,v):this.complete(j)},complete:function(A,P){if(A.type==="throw")throw A.arg;return A.type==="break"||A.type==="continue"?this.next=A.arg:A.type==="return"?(this.rval=this.arg=A.arg,this.method="return",this.next="end"):A.type==="normal"&&P&&(this.next=P),v},finish:function(A){for(var P=this.tryEntries.length-1;P>=0;--P){var z=this.tryEntries[P];if(z.finallyLoc===A)return this.complete(z.completion,z.afterLoc),M(z),v}},catch:function(A){for(var P=this.tryEntries.length-1;P>=0;--P){var z=this.tryEntries[P];if(z.tryLoc===A){var L=z.completion;if(L.type==="throw"){var V=L.arg;M(z)}return V}}throw Error("illegal catch attempt")},delegateYield:function(A,P,z){return this.delegate={iterator:k(A),resultName:P,nextLoc:z},this.method==="next"&&(this.arg=e),v}},t}function Sne(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 lo(e){return function(){var t=this,n=arguments;return new Promise(function(r,i){var o=e.apply(t,n);function a(l){Sne(o,r,i,a,s,"next",l)}function s(l){Sne(o,r,i,a,s,"throw",l)}a(void 0)})}}var e2=W({},J1e),aQe=e2.version,gL=e2.render,sQe=e2.unmountComponentAtNode,m5;try{var lQe=Number((aQe||"").split(".")[0]);lQe>=18&&(m5=e2.createRoot)}catch{}function Ene(e){var t=e2.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;t&&Gt(t)==="object"&&(t.usingClientEntryPoint=e)}var BM="__rc_react_root__";function cQe(e,t){Ene(!0);var n=t[BM]||m5(t);Ene(!1),n.render(e),t[BM]=n}function uQe(e,t){gL==null||gL(e,t)}function dQe(e,t){if(m5){cQe(e,t);return}uQe(e,t)}function fQe(e){return rH.apply(this,arguments)}function rH(){return rH=lo(pr().mark(function e(t){return pr().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",Promise.resolve().then(function(){var i;(i=t[BM])===null||i===void 0||i.unmount(),delete t[BM]}));case 1:case"end":return r.stop()}},e)})),rH.apply(this,arguments)}function pQe(e){sQe(e)}function hQe(e){return iH.apply(this,arguments)}function iH(){return iH=lo(pr().mark(function e(t){return pr().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:if(m5===void 0){r.next=2;break}return r.abrupt("return",fQe(t));case 2:pQe(t);case 3:case"end":return r.stop()}},e)})),iH.apply(this,arguments)}const mQe=(e,t)=>(dQe(e,t),()=>hQe(t));let gQe=mQe;function eq(){return gQe}const vL=()=>({height:0,opacity:0}),Cne=e=>{const{scrollHeight:t}=e;return{height:t,opacity:1}},vQe=e=>({height:e?e.offsetHeight:0}),bL=(e,t)=>(t==null?void 0:t.deadline)===!0||t.propertyName==="height",p_=function(){return{motionName:`${arguments.length>0&&arguments[0]!==void 0?arguments[0]:AT}-motion-collapse`,onAppearStart:vL,onEnterStart:vL,onAppearActive:Cne,onEnterActive:Cne,onLeaveStart:vQe,onLeaveActive:vL,onAppearEnd:bL,onEnterEnd:bL,onLeaveEnd:bL,motionDeadline:500}},Va=(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},bQe=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(",")}}}}},yQe=Z_e("Wave",e=>[bQe(e)]),g5=`${AT}-wave-target`;function yL(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 _Qe(e){const{borderTopColor:t,borderColor:n,backgroundColor:r}=getComputedStyle(e);return yL(t)?t:yL(n)?n:yL(r)?r:null}function _L(e){return Number.isNaN(e)?0:e}const SQe=e=>{const{className:t,target:n,component:r,registerUnmount:i}=e,o=p.useRef(null),a=p.useRef(null);p.useEffect(()=>{a.current=i()},[]);const[s,l]=p.useState(null),[c,u]=p.useState([]),[d,f]=p.useState(0),[h,m]=p.useState(0),[g,v]=p.useState(0),[y,b]=p.useState(0),[_,E]=p.useState(!1),w={left:d,top:h,width:g,height:y,borderRadius:c.map(T=>`${T}px`).join(" ")};s&&(w["--wave-color"]=s);function S(){const T=getComputedStyle(n);l(_Qe(n));const x=T.position==="static",{borderLeftWidth:O,borderTopWidth:N}=T;f(x?n.offsetLeft:_L(-parseFloat(O))),m(x?n.offsetTop:_L(-parseFloat(N))),v(n.offsetWidth),b(n.offsetHeight);const{borderTopLeftRadius:I,borderTopRightRadius:M,borderBottomLeftRadius:F,borderBottomRightRadius:k}=T;u([I,M,k,F].map(B=>_L(parseFloat(B))))}if(p.useEffect(()=>{if(n){const T=rr(()=>{S(),E(!0)});let x;return typeof ResizeObserver<"u"&&(x=new ResizeObserver(S),x.observe(n)),()=>{rr.cancel(T),x==null||x.disconnect()}}},[]),!_)return null;const C=(r==="Checkbox"||r==="Radio")&&(n==null?void 0:n.classList.contains(g5));return p.createElement(ra,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:(T,x)=>{var O,N;if(x.deadline||x.propertyName==="opacity"){const I=(O=o.current)===null||O===void 0?void 0:O.parentElement;(N=a.current)===null||N===void 0||N.call(a).then(()=>{I==null||I.remove()})}return!1}},(T,x)=>{let{className:O}=T;return p.createElement("div",{ref:oa(o,x),className:Te(t,O,{"wave-quick":C}),style:w})})},EQe=(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=eq();let a=null;function s(){return a}a=o(p.createElement(SQe,Object.assign({},t,{target:e,registerUnmount:s})),i)},CQe=(e,t,n)=>{const{wave:r}=p.useContext(Qt),[,i,o]=Go(),a=Yn(c=>{const u=e.current;if(r!=null&&r.disabled||!u)return;const d=u.querySelector(`.${g5}`)||u,{showEffect:f}=r||{};(f||EQe)(d,{className:t,token:i,component:n,event:c,hashId:o})}),s=p.useRef(null);return c=>{rr.cancel(s.current),s.current=rr(()=>{a(c)})}},t2=e=>{const{children:t,disabled:n,component:r}=e,{getPrefixCls:i}=p.useContext(Qt),o=p.useRef(null),a=i("wave"),[,s]=yQe(a),l=CQe(o,Te(a,s),r);if(ce.useEffect(()=>{const u=o.current;if(!u||u.nodeType!==1||n)return;const d=f=>{!gS(f.target)||!u.getAttribute||u.getAttribute("disabled")||u.disabled||u.className.includes("disabled")||u.className.includes("-leave")||l(f)};return u.addEventListener("click",d,!0),()=>{u.removeEventListener("click",d,!0)}},[n]),!ce.isValidElement(t))return t??null;const c=Cd(t)?oa(Og(t),o):o;return _o(t,{ref:c})},So=e=>{const t=ce.useContext(Fv);return ce.useMemo(()=>e?typeof e=="string"?e??t:e instanceof Function?e(t):t:t,[e,t])},wQe=e=>{const{componentCls:t}=e;return{[t]:{"&-block":{display:"flex",width:"100%"},"&-vertical":{flexDirection:"column"}}}},TQe=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"}}}},xQe=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}}}},NSe=cr("Space",e=>{const t=Kn(e,{spaceGapSmallSize:e.paddingXS,spaceGapMiddleSize:e.padding,spaceGapLargeSize:e.paddingLG});return[TQe(t),xQe(t),wQe(t)]},()=>({}),{resetStyle:!1});var MSe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const v5=p.createContext(null),Fd=(e,t)=>{const n=p.useContext(v5),r=p.useMemo(()=>{if(!n)return"";const{compactDirection:i,isFirstItem:o,isLastItem:a}=n,s=i==="vertical"?"-vertical-":"-";return Te(`${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}},OQe=e=>{let{children:t}=e;return p.createElement(v5.Provider,{value:null},t)},RQe=e=>{var{children:t}=e,n=MSe(e,["children"]);return p.createElement(v5.Provider,{value:n},t)},IQe=e=>{const{getPrefixCls:t,direction:n}=p.useContext(Qt),{size:r,direction:i,block:o,prefixCls:a,className:s,rootClassName:l,children:c}=e,u=MSe(e,["size","direction","block","prefixCls","className","rootClassName","children"]),d=So(_=>r??_),f=t("space-compact",a),[h,m]=NSe(f),g=Te(f,m,{[`${f}-rtl`]:n==="rtl",[`${f}-block`]:o,[`${f}-vertical`]:i==="vertical"},s,l),v=p.useContext(v5),y=Mo(c),b=p.useMemo(()=>y.map((_,E)=>{const w=(_==null?void 0:_.key)||`${f}-item-${E}`;return p.createElement(RQe,{key:w,compactSize:d,compactDirection:i,isFirstItem:E===0&&(!v||(v==null?void 0:v.isFirstItem)),isLastItem:E===y.length-1&&(!v||(v==null?void 0:v.isLastItem))},_)}),[r,y,v]);return y.length===0?null:h(p.createElement("div",Object.assign({className:g},u),b))};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};const kSe=p.createContext(void 0),NQe=e=>{const{getPrefixCls:t,direction:n}=p.useContext(Qt),{prefixCls:r,size:i,className:o}=e,a=AQe(e,["prefixCls","size","className"]),s=t("btn-group",r),[,,l]=Go();let c="";switch(i){case"large":c="lg";break;case"small":c="sm";break}const u=Te(s,{[`${s}-${c}`]:c,[`${s}-rtl`]:n==="rtl"},o,l);return p.createElement(kSe.Provider,{value:i},p.createElement("div",Object.assign({},a,{className:u})))},wne=/^[\u4E00-\u9FA5]{2}$/,oH=wne.test.bind(wne);function tq(e){return e==="danger"?{danger:!0}:{type:e}}function Tne(e){return typeof e=="string"}function SL(e){return e==="text"||e==="link"}function MQe(e,t){if(e==null)return;const n=t?" ":"";return typeof e!="string"&&typeof e!="number"&&Tne(e.type)&&oH(e.props.children)?_o(e,{children:e.props.children.split("").join(n)}):Tne(e)?oH(e)?ce.createElement("span",null,e.split("").join(n)):ce.createElement("span",null,e):ySe(e)?ce.createElement("span",null,e):e}function kQe(e,t){let n=!1;const r=[];return ce.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}),ce.Children.map(r,i=>MQe(i,t))}["default","primary","danger"].concat(nt(jv));const aH=p.forwardRef((e,t)=>{const{className:n,style:r,children:i,prefixCls:o}=e,a=Te(`${o}-icon`,n);return ce.createElement("span",{ref:t,className:a,style:r},i)}),xne=p.forwardRef((e,t)=>{const{prefixCls:n,className:r,style:i,iconClassName:o}=e,a=Te(`${n}-loading-icon`,r);return ce.createElement(aH,{prefixCls:n,className:a,style:i,ref:t},ce.createElement(xd,{className:o}))}),EL=()=>({width:0,opacity:0,transform:"scale(0)"}),CL=e=>({width:e.scrollWidth,opacity:1,transform:"scale(1)"}),PQe=e=>{const{prefixCls:t,loading:n,existIcon:r,className:i,style:o,mount:a}=e,s=!!n;return r?ce.createElement(xne,{prefixCls:t,className:i,style:o}):ce.createElement(ra,{visible:s,motionName:`${t}-loading-icon-motion`,motionAppear:!a,motionEnter:!a,motionLeave:!a,removeOnLeave:!0,onAppearStart:EL,onAppearActive:CL,onEnterStart:EL,onEnterActive:CL,onLeaveStart:CL,onLeaveActive:EL},(l,c)=>{let{className:u,style:d}=l;const f=Object.assign(Object.assign({},o),d);return ce.createElement(xne,{prefixCls:t,className:Te(i,u),style:f,ref:c})})},One=(e,t)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}}),DQe=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}},One(`${t}-primary`,i),One(`${t}-danger`,o)]}};var LQe=["b"],$Qe=["v"],wL=function(t){return Math.round(Number(t||0))},FQe=function(t){if(t instanceof ir)return t;if(t&&Gt(t)==="object"&&"h"in t&&"b"in t){var n=t,r=n.b,i=Dt(n,LQe);return W(W({},i),{},{v:r})}return typeof t=="string"&&/hsb/.test(t)?t.replace(/hsb/,"hsv"):t},Od=function(e){Ds(n,e);var t=il(n);function n(r){return Kr(this,n),t.call(this,FQe(r))}return Qr(n,[{key:"toHsbString",value:function(){var i=this.toHsb(),o=wL(i.s*100),a=wL(i.b*100),s=wL(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=Dt(i,$Qe);return W(W({},a),{},{b:o,a:this.a})}}]),n}(ir),BQe="rc-color-picker",Ey=function(t){return t instanceof Od?t:new Od(t)},jQe=Ey("#1677ff"),PSe=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,f=u.height,h=d/2,m=f/2,g=(n.x+h)/l,v=1-(n.y+m)/c,y=o.toHsb(),b=g,_=(n.x+h)/l*360;if(a)switch(a){case"hue":return Ey(W(W({},y),{},{h:_<=0?0:_}));case"alpha":return Ey(W(W({},y),{},{a:b<=0?0:b}))}return Ey({h:y.h,s:g<=0?0:g,b:v>=1?1:v,a:y.a})},DSe=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}}},nq=function(t){var n=t.color,r=t.prefixCls,i=t.className,o=t.style,a=t.onClick,s="".concat(r,"-color-block");return ce.createElement("div",{className:Te(s,i),style:o,onClick:a},ce.createElement("div",{className:"".concat(s,"-inner"),style:{background:n}}))};function HQe(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 LSe(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=p.useState({x:0,y:0}),u=Ie(c,2),d=u[0],f=u[1],h=p.useRef(null),m=p.useRef(null);p.useEffect(function(){f(a())},[s]),p.useEffect(function(){return function(){document.removeEventListener("mousemove",h.current),document.removeEventListener("mouseup",m.current),document.removeEventListener("touchmove",h.current),document.removeEventListener("touchend",m.current),h.current=null,m.current=null}},[]);var g=function(E){var w=HQe(E),S=w.pageX,C=w.pageY,T=n.current.getBoundingClientRect(),x=T.x,O=T.y,N=T.width,I=T.height,M=t.current.getBoundingClientRect(),F=M.width,k=M.height,B=F/2,A=k/2,P=Math.max(0,Math.min(S-x,N))-B,z=Math.max(0,Math.min(C-O,I))-A,L={x:P,y:r==="x"?d.y:z};if(F===0&&k===0||F!==k)return!1;i==null||i(L)},v=function(E){E.preventDefault(),g(E)},y=function(E){E.preventDefault(),document.removeEventListener("mousemove",h.current),document.removeEventListener("mouseup",m.current),document.removeEventListener("touchmove",h.current),document.removeEventListener("touchend",m.current),h.current=null,m.current=null,o==null||o()},b=function(E){document.removeEventListener("mousemove",h.current),document.removeEventListener("mouseup",m.current),!l&&(g(E),document.addEventListener("mousemove",v),document.addEventListener("mouseup",y),document.addEventListener("touchmove",v),document.addEventListener("touchend",y),h.current=v,m.current=y)};return[d,b]}var $Se=function(t){var n=t.size,r=n===void 0?"default":n,i=t.color,o=t.prefixCls;return ce.createElement("div",{className:Te("".concat(o,"-handler"),ee({},"".concat(o,"-handler-sm"),r==="small")),style:{backgroundColor:i}})},FSe=function(t){var n=t.children,r=t.style,i=t.prefixCls;return ce.createElement("div",{className:"".concat(i,"-palette"),style:W({position:"relative"},r)},n)},BSe=p.forwardRef(function(e,t){var n=e.children,r=e.x,i=e.y;return ce.createElement("div",{ref:t,style:{position:"absolute",left:"".concat(r,"%"),top:"".concat(i,"%"),zIndex:1,transform:"translate(-50%, -50%)"}},n)}),UQe=function(t){var n=t.color,r=t.onChange,i=t.prefixCls,o=t.onChangeComplete,a=t.disabled,s=p.useRef(),l=p.useRef(),c=p.useRef(n),u=Yn(function(g){var v=PSe({offset:g,targetRef:l,containerRef:s,color:n});c.current=v,r(v)}),d=LSe({color:n,containerRef:s,targetRef:l,calculate:function(){return DSe(n)},onDragChange:u,onDragChangeComplete:function(){return o==null?void 0:o(c.current)},disabledDrag:a}),f=Ie(d,2),h=f[0],m=f[1];return ce.createElement("div",{ref:s,className:"".concat(i,"-select"),onMouseDown:m,onTouchStart:m},ce.createElement(FSe,{prefixCls:i},ce.createElement(BSe,{x:h.x,y:h.y,ref:l},ce.createElement($Se,{color:n.toRgbString(),prefixCls:i})),ce.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))"}})))},zQe=function(t,n){var r=Pn(t,{value:n}),i=Ie(r,2),o=i[0],a=i[1],s=p.useMemo(function(){return Ey(o)},[o]);return[s,a]},VQe=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=p.useMemo(function(){return n.map(function(c,u){var d=Ey(c);return a==="alpha"&&u===n.length-1&&(d=new Od(d.setA(1))),d.toRgbString()}).join(",")},[n,a]);return ce.createElement("div",{className:"".concat(s,"-gradient"),style:{position:"absolute",inset:0,background:"linear-gradient(".concat(o,", ").concat(l,")")}},r)},GQe=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=p.useRef(),u=p.useRef(),d=p.useRef(s),f=function(w){return l==="hue"?w.getHue():w.a*100},h=Yn(function(E){var w=PSe({offset:E,targetRef:u,containerRef:c,color:s,type:l});d.current=w,o(f(w))}),m=LSe({color:s,targetRef:u,containerRef:c,calculate:function(){return DSe(s,l)},onDragChange:h,onDragChangeComplete:function(){a(f(d.current))},direction:"x",disabledDrag:i}),g=Ie(m,2),v=g[0],y=g[1],b=ce.useMemo(function(){if(l==="hue"){var E=s.toHsb();E.s=1,E.b=1,E.a=1;var w=new Od(E);return w}return s},[s,l]),_=ce.useMemo(function(){return r.map(function(E){return"".concat(E.color," ").concat(E.percent,"%")})},[r]);return ce.createElement("div",{ref:c,className:Te("".concat(n,"-slider"),"".concat(n,"-slider-").concat(l)),onMouseDown:y,onTouchStart:y},ce.createElement(FSe,{prefixCls:n},ce.createElement(BSe,{x:v.x,y:v.y,ref:u},ce.createElement($Se,{size:"small",color:b.toHexString(),prefixCls:n})),ce.createElement(VQe,{colors:_,type:l,prefixCls:n})))};function WQe(e){return p.useMemo(function(){var t=e||{},n=t.slider;return[n||GQe]},[e])}var qQe=[{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}],YQe=p.forwardRef(function(e,t){var n=e.value,r=e.defaultValue,i=e.prefixCls,o=i===void 0?BQe:i,a=e.onChange,s=e.onChangeComplete,l=e.className,c=e.style,u=e.panelRender,d=e.disabledAlpha,f=d===void 0?!1:d,h=e.disabled,m=h===void 0?!1:h,g=e.components,v=WQe(g),y=Ie(v,1),b=y[0],_=zQe(r||jQe,n),E=Ie(_,2),w=E[0],S=E[1],C=p.useMemo(function(){return w.setA(1).toRgbString()},[w]),T=function(z,L){n||S(z),a==null||a(z,L)},x=function(z){return new Od(w.setHue(z))},O=function(z){return new Od(w.setA(z/100))},N=function(z){T(x(z),{type:"hue",value:z})},I=function(z){T(O(z),{type:"alpha",value:z})},M=function(z){s&&s(x(z))},F=function(z){s&&s(O(z))},k=Te("".concat(o,"-panel"),l,ee({},"".concat(o,"-panel-disabled"),m)),B={prefixCls:o,disabled:m,color:w},A=ce.createElement(ce.Fragment,null,ce.createElement(UQe,Ke({onChange:T},B,{onChangeComplete:s})),ce.createElement("div",{className:"".concat(o,"-slider-container")},ce.createElement("div",{className:Te("".concat(o,"-slider-group"),ee({},"".concat(o,"-slider-group-disabled-alpha"),f))},ce.createElement(b,Ke({},B,{type:"hue",colors:qQe,min:0,max:359,value:w.getHue(),onChange:N,onChangeComplete:M})),!f&&ce.createElement(b,Ke({},B,{type:"alpha",colors:[{percent:0,color:"rgba(255, 0, 4, 0)"},{percent:100,color:C}],min:0,max:100,value:w.a*100,onChange:I,onChangeComplete:F}))),ce.createElement(nq,{color:w.toRgbString(),prefixCls:o})));return ce.createElement("div",{className:k,style:c,ref:t},typeof u=="function"?u(A):A)});const RC=(e,t)=>(e==null?void 0:e.replace(/[^\w/]/g,"").slice(0,t?8:6))||"",KQe=(e,t)=>e?RC(e,t):"";let pc=function(){function e(t){Kr(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 Od(this.colors[0].color.metaColor)):this.metaColor=new Od(r?"":t),(!t||r&&!this.colors)&&(this.metaColor=this.metaColor.setA(0),this.cleared=!0)}return Qr(e,[{key:"toHsb",value:function(){return this.metaColor.toHsb()}},{key:"toHsbString",value:function(){return this.metaColor.toHsbString()}},{key:"toHex",value:function(){return KQe(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 QQe={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"},XQe=function(t,n){return p.createElement(Nn,Ke({},t,{ref:n,icon:QQe}))},lh=p.forwardRef(XQe),jSe=ce.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=ce.useState(s||r),f=Ie(d,2),h=f[0],m=f[1];return ce.useEffect(function(){(r||s)&&m(!0)},[r,s]),h?ce.createElement("div",{ref:t,className:Te("".concat(n,"-content"),ee(ee({},"".concat(n,"-content-active"),s),"".concat(n,"-content-inactive"),!s),i),style:o,role:l},ce.createElement("div",{className:Te("".concat(n,"-content-box"),c==null?void 0:c.body),style:u==null?void 0:u.body},a)):null});jSe.displayName="PanelContent";var ZQe=["showArrow","headerClass","isActive","onItemClick","forceRender","className","classNames","styles","prefixCls","collapsible","accordion","panelKey","extra","header","expandIcon","openMotion","destroyInactivePanel","children"],HSe=ce.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,f=d===void 0?{}:d,h=e.prefixCls,m=e.collapsible,g=e.accordion,v=e.panelKey,y=e.extra,b=e.header,_=e.expandIcon,E=e.openMotion,w=e.destroyInactivePanel,S=e.children,C=Dt(e,ZQe),T=m==="disabled",x=y!=null&&typeof y!="boolean",O=ee(ee(ee({onClick:function(){a==null||a(v)},onKeyDown:function(A){(A.key==="Enter"||A.keyCode===dt.ENTER||A.which===dt.ENTER)&&(a==null||a(v))},role:g?"tab":"button"},"aria-expanded",o),"aria-disabled",T),"tabIndex",T?-1:0),N=typeof _=="function"?_(e):ce.createElement("i",{className:"arrow"}),I=N&&ce.createElement("div",Ke({className:"".concat(h,"-expand-icon")},["header","icon"].includes(m)?O:{}),N),M=Te("".concat(h,"-item"),ee(ee({},"".concat(h,"-item-active"),o),"".concat(h,"-item-disabled"),T),l),F=Te(i,"".concat(h,"-header"),ee({},"".concat(h,"-collapsible-").concat(m),!!m),u.header),k=W({className:F,style:f.header},["header","icon"].includes(m)?{}:O);return ce.createElement("div",Ke({},C,{ref:t,className:M}),ce.createElement("div",k,r&&I,ce.createElement("span",Ke({className:"".concat(h,"-header-text")},m==="header"?O:{}),b),x&&ce.createElement("div",{className:"".concat(h,"-extra")},y)),ce.createElement(ra,Ke({visible:o,leavedClassName:"".concat(h,"-content-hidden")},E,{forceRender:s,removeOnLeave:w}),function(B,A){var P=B.className,z=B.style;return ce.createElement(jSe,{ref:A,prefixCls:h,className:P,classNames:u,style:z,styles:f,isActive:o,forceRender:s,role:g?"tabpanel":void 0},S)}))}),JQe=["children","label","key","collapsible","onItemClick","destroyInactivePanel"],eXe=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,f){var h=d.children,m=d.label,g=d.key,v=d.collapsible,y=d.onItemClick,b=d.destroyInactivePanel,_=Dt(d,JQe),E=String(g??f),w=v??o,S=b??a,C=function(O){w!=="disabled"&&(s(O),y==null||y(O))},T=!1;return i?T=l[0]===E:T=l.indexOf(E)>-1,ce.createElement(HSe,Ke({},_,{prefixCls:r,key:E,panelKey:E,isActive:T,accordion:i,openMotion:c,expandIcon:u,header:m,collapsible:w,onItemClick:C,destroyInactivePanel:S}),h)})},tXe=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,f=t.key||String(n),h=t.props,m=h.header,g=h.headerClass,v=h.destroyInactivePanel,y=h.collapsible,b=h.onItemClick,_=!1;o?_=c[0]===f:_=c.indexOf(f)>-1;var E=y??a,w=function(T){E!=="disabled"&&(l(T),b==null||b(T))},S={key:f,panelKey:f,header:m,headerClass:g,isActive:_,prefixCls:i,destroyInactivePanel:v??s,openMotion:u,accordion:o,children:t.props.children,onItemClick:w,expandIcon:d,collapsible:E};return typeof t.type=="string"?t:(Object.keys(S).forEach(function(C){typeof S[C]>"u"&&delete S[C]}),ce.cloneElement(t,S))};function nXe(e,t,n){return Array.isArray(e)?eXe(e,n):Mo(t).map(function(r,i){return tXe(r,i,n)})}function rXe(e){var t=e;if(!Array.isArray(t)){var n=Gt(t);t=n==="number"||n==="string"?[t]:[]}return t.map(function(r){return String(r)})}var iXe=ce.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,f=e.expandIcon,h=e.activeKey,m=e.defaultActiveKey,g=e.onChange,v=e.items,y=Te(r,l),b=Pn([],{value:h,onChange:function(x){return g==null?void 0:g(x)},defaultValue:m,postState:rXe}),_=Ie(b,2),E=_[0],w=_[1],S=function(x){return w(function(){if(s)return E[0]===x?[]:[x];var O=E.indexOf(x),N=O>-1;return N?E.filter(function(I){return I!==x}):[].concat(nt(E),[x])})};Yr(!c,"[rc-collapse] `children` will be removed in next major version. Please use `items` instead.");var C=nXe(v,c,{prefixCls:r,accordion:s,openMotion:d,expandIcon:f,collapsible:u,destroyInactivePanel:o,onItemClick:S,activeKey:E});return ce.createElement("div",Ke({ref:t,className:y,style:a,role:s?"tablist":void 0},xi(e,{aria:!0,data:!0})),C)});const rq=Object.assign(iXe,{Panel:HSe});rq.Panel;const oXe=p.forwardRef((e,t)=>{const{getPrefixCls:n}=p.useContext(Qt),{prefixCls:r,className:i,showArrow:o=!0}=e,a=n("collapse",r),s=Te({[`${a}-no-arrow`]:!o},i);return p.createElement(rq.Panel,Object.assign({ref:t},e,{prefixCls:a,className:s}))}),n2=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`}}}),aXe=e=>({animationDuration:e,animationFillMode:"both"}),sXe=e=>({animationDuration:e,animationFillMode:"both"}),b5=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({},aXe(r)),{animationPlayState:"paused"}),[`${o}${e}-leave`]:Object.assign(Object.assign({},sXe(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"}}},lXe=new fr("antFadeIn",{"0%":{opacity:0},"100%":{opacity:1}}),cXe=new fr("antFadeOut",{"0%":{opacity:1},"100%":{opacity:0}}),iq=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const{antCls:n}=e,r=`${n}-fade`,i=t?"&":"";return[b5(r,lXe,cXe,e.motionDurationMid,t),{[`
${i}${r}-enter,
${i}${r}-appear
`]:{opacity:0,animationTimingFunction:"linear"},[`${i}${r}-leave`]:{animationTimingFunction:"linear"}}]},uXe=new fr("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),dXe=new fr("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),fXe=new fr("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),pXe=new fr("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),hXe=new fr("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),mXe=new fr("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),gXe=new fr("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),vXe=new fr("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}}),bXe={"move-up":{inKeyframes:gXe,outKeyframes:vXe},"move-down":{inKeyframes:uXe,outKeyframes:dXe},"move-left":{inKeyframes:fXe,outKeyframes:pXe},"move-right":{inKeyframes:hXe,outKeyframes:mXe}},h_=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:i,outKeyframes:o}=bXe[t];return[b5(r,i,o,e.motionDurationMid),{[`
${r}-enter,
${r}-appear
`]:{opacity:0,animationTimingFunction:e.motionEaseOutCirc},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},y5=new fr("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),_5=new fr("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),S5=new fr("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),E5=new fr("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),yXe=new fr("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),_Xe=new fr("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),SXe=new fr("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),EXe=new fr("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),CXe={"slide-up":{inKeyframes:y5,outKeyframes:_5},"slide-down":{inKeyframes:S5,outKeyframes:E5},"slide-left":{inKeyframes:yXe,outKeyframes:_Xe},"slide-right":{inKeyframes:SXe,outKeyframes:EXe}},$f=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:i,outKeyframes:o}=CXe[t];return[b5(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}}]},oq=new fr("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),wXe=new fr("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),Rne=new fr("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),Ine=new fr("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),TXe=new fr("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),xXe=new fr("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),OXe=new fr("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),RXe=new fr("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),IXe=new fr("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),AXe=new fr("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}}),NXe=new fr("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),MXe=new fr("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}}),kXe={zoom:{inKeyframes:oq,outKeyframes:wXe},"zoom-big":{inKeyframes:Rne,outKeyframes:Ine},"zoom-big-fast":{inKeyframes:Rne,outKeyframes:Ine},"zoom-left":{inKeyframes:OXe,outKeyframes:RXe},"zoom-right":{inKeyframes:IXe,outKeyframes:AXe},"zoom-up":{inKeyframes:TXe,outKeyframes:xXe},"zoom-down":{inKeyframes:NXe,outKeyframes:MXe}},vS=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:i,outKeyframes:o}=kXe[t];return[b5(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}}]},PXe=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:f,colorTextHeading:h,colorTextDisabled:m,fontSizeLG:g,lineHeight:v,lineHeightLG:y,marginSM:b,paddingSM:_,paddingLG:E,paddingXS:w,motionDurationSlow:S,fontSizeIcon:C,contentPadding:T,fontHeight:x,fontHeightLG:O}=e,N=`${Ae(c)} ${u} ${d}`;return{[t]:Object.assign(Object.assign({},gr(e)),{backgroundColor:i,border:N,borderRadius:l,"&-rtl":{direction:"rtl"},[`& > ${t}-item`]:{borderBottom:N,"&:first-child":{[`
&,
& > ${t}-header`]:{borderRadius:`${Ae(l)} ${Ae(l)} 0 0`}},"&:last-child":{[`
&,
& > ${t}-header`]:{borderRadius:`0 0 ${Ae(l)} ${Ae(l)}`}},[`> ${t}-header`]:Object.assign(Object.assign({position:"relative",display:"flex",flexWrap:"nowrap",alignItems:"flex-start",padding:o,color:h,lineHeight:v,cursor:"pointer",transition:`all ${S}, visibility 0s`},Xs(e)),{[`> ${t}-header-text`]:{flex:"auto"},[`${t}-expand-icon`]:{height:x,display:"flex",alignItems:"center",paddingInlineEnd:b},[`${t}-arrow`]:Object.assign(Object.assign({},y0()),{fontSize:C,transition:`transform ${S}`,svg:{transition:`transform ${S}`}}),[`${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:f,backgroundColor:n,borderTop:N,[`& > ${t}-content-box`]:{padding:T},"&-hidden":{display:"none"}},"&-small":{[`> ${t}-item`]:{[`> ${t}-header`]:{padding:a,paddingInlineStart:w,[`> ${t}-expand-icon`]:{marginInlineStart:e.calc(_).sub(w).equal()}},[`> ${t}-content > ${t}-content-box`]:{padding:_}}},"&-large":{[`> ${t}-item`]:{fontSize:g,lineHeight:y,[`> ${t}-header`]:{padding:s,paddingInlineStart:r,[`> ${t}-expand-icon`]:{height:O,marginInlineStart:e.calc(E).sub(r).equal()}},[`> ${t}-content > ${t}-content-box`]:{padding:E}}},[`${t}-item:last-child`]:{borderBottom:0,[`> ${t}-content`]:{borderRadius:`0 0 ${Ae(l)} ${Ae(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}}}}})}},DXe=e=>{const{componentCls:t}=e,n=`> ${t}-item > ${t}-header ${t}-arrow`;return{[`${t}-rtl`]:{[n]:{transform:"rotate(180deg)"}}}},LXe=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}}}},$Xe=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}}}}}},FXe=e=>({headerPadding:`${e.paddingSM}px ${e.padding}px`,headerBg:e.colorFillAlter,contentPadding:`${e.padding}px 16px`,contentBg:e.colorBgContainer}),BXe=cr("Collapse",e=>{const t=Kn(e,{collapseHeaderPaddingSM:`${Ae(e.paddingXS)} ${Ae(e.paddingSM)}`,collapseHeaderPaddingLG:`${Ae(e.padding)} ${Ae(e.paddingLG)}`,collapsePanelBorderRadius:e.borderRadiusLG});return[PXe(t),LXe(t),$Xe(t),DXe(t),n2(t)]},FXe),jXe=p.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r,collapse:i}=p.useContext(Qt),{prefixCls:o,className:a,rootClassName:s,style:l,bordered:c=!0,ghost:u,size:d,expandIconPosition:f="start",children:h,expandIcon:m}=e,g=So(N=>{var I;return(I=d??N)!==null&&I!==void 0?I:"middle"}),v=n("collapse",o),y=n(),[b,_,E]=BXe(v),w=p.useMemo(()=>f==="left"?"start":f==="right"?"end":f,[f]),S=m??(i==null?void 0:i.expandIcon),C=p.useCallback(function(){let N=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const I=typeof S=="function"?S(N):p.createElement(lh,{rotate:N.isActive?r==="rtl"?-90:90:void 0,"aria-label":N.isActive?"expanded":"collapsed"});return _o(I,()=>{var M;return{className:Te((M=I==null?void 0:I.props)===null||M===void 0?void 0:M.className,`${v}-arrow`)}})},[S,v]),T=Te(`${v}-icon-position-${w}`,{[`${v}-borderless`]:!c,[`${v}-rtl`]:r==="rtl",[`${v}-ghost`]:!!u,[`${v}-${g}`]:g!=="middle"},i==null?void 0:i.className,a,s,_,E),x=Object.assign(Object.assign({},p_(y)),{motionAppear:!1,leavedClassName:`${v}-content-hidden`}),O=p.useMemo(()=>h?Mo(h).map((N,I)=>{var M,F;const k=N.props;if(k!=null&&k.disabled){const B=(M=N.key)!==null&&M!==void 0?M:String(I),A=Object.assign(Object.assign({},ur(N.props,["disabled"])),{key:B,collapsible:(F=k.collapsible)!==null&&F!==void 0?F:"disabled"});return _o(N,A)}return N}):null,[h]);return b(p.createElement(rq,Object.assign({ref:t,openMotion:x},ur(e,["rootClassName"]),{expandIcon:C,prefixCls:v,className:T,style:Object.assign(Object.assign({},i==null?void 0:i.style),l)}),O))}),HXe=Object.assign(jXe,{Panel:oXe}),Ns=e=>e instanceof pc?e:new pc(e),NA=e=>Math.round(Number(e||0)),aq=e=>NA(e.toHsb().a*100),MA=(e,t)=>{const n=e.toRgb();if(!n.r&&!n.g&&!n.b){const r=e.toHsb();return r.a=1,Ns(r)}return n.a=1,Ns(n)},USe=(e,t)=>{const n=[{percent:0,color:e[0].color}].concat(nt(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 Od(a),d=new Od(s);return u.mix(d,c).toRgbString()}}return""},TL=e=>e.map(t=>(t.colors=t.colors.map(Ns),t)),zSe=(e,t)=>{const{r:n,g:r,b:i,a:o}=e.toRgb(),a=new Od(e.toRgbString()).onBackground(t).toHsv();return o<=.5?a.v>.5:n*.299+r*.587+i*.114>192},Ane=(e,t)=>{var n;return`panel-${(n=e.key)!==null&&n!==void 0?n:t}`},UXe=e=>{let{prefixCls:t,presets:n,value:r,onChange:i}=e;const[o]=ds("ColorPicker"),[,a]=Go(),[s]=Pn(TL(n),{value:TL(n),postState:TL}),l=`${t}-presets`,c=p.useMemo(()=>s.reduce((f,h,m)=>{const{defaultOpen:g=!0}=h;return g&&f.push(Ane(h,m)),f},[]),[s]),u=f=>{i==null||i(f)},d=s.map((f,h)=>{var m;return{key:Ane(f,h),label:ce.createElement("div",{className:`${l}-label`},f==null?void 0:f.label),children:ce.createElement("div",{className:`${l}-items`},Array.isArray(f==null?void 0:f.colors)&&((m=f.colors)===null||m===void 0?void 0:m.length)>0?f.colors.map((g,v)=>ce.createElement(nq,{key:`preset-${v}-${g.toHexString()}`,color:Ns(g).toRgbString(),prefixCls:t,className:Te(`${l}-color`,{[`${l}-color-checked`]:g.toHexString()===(r==null?void 0:r.toHexString()),[`${l}-color-bright`]:zSe(g,a.colorBgElevated)}),onClick:()=>u(g)})):ce.createElement("span",{className:`${l}-empty`},o.presetEmpty))}});return ce.createElement("div",{className:l},ce.createElement(HXe,{defaultActiveKey:c,ghost:!0,items:d}))},VSe=e=>{const{paddingInline:t,onlyIconSize:n}=e;return Kn(e,{buttonPaddingHorizontal:t,buttonPaddingVertical:0,buttonIconOnlyFontSize:n})},GSe=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:IA(s),d=(o=e.contentLineHeightSM)!==null&&o!==void 0?o:IA(l),f=(a=e.contentLineHeightLG)!==null&&a!==void 0?a:IA(c),h=zSe(new pc(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:h,contentFontSize:s,contentFontSizeSM:l,contentFontSizeLG:c,contentLineHeight:u,contentLineHeightSM:d,contentLineHeightLG:f,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*f)/2-e.lineWidth,0)}},zXe=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:`${Ae(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`]:y0(),"> a":{color:"currentColor"},"&:not(:disabled)":Xs(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()}}}}}},WSe=(e,t,n)=>({[`&:not(:disabled):not(${e}-disabled)`]:{"&:hover":t,"&:active":n}}),VXe=e=>({minWidth:e.controlHeight,paddingInlineStart:0,paddingInlineEnd:0,borderRadius:"50%"}),GXe=e=>({borderRadius:e.controlHeight,paddingInlineStart:e.calc(e.controlHeight).div(2).equal(),paddingInlineEnd:e.calc(e.controlHeight).div(2).equal()}),WXe=e=>({cursor:"not-allowed",borderColor:e.borderColorDisabled,color:e.colorTextDisabled,background:e.colorBgContainerDisabled,boxShadow:"none"}),sq=(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"},WSe(e,Object.assign({background:t},a),Object.assign({background:t},s))),{"&:disabled":{cursor:"not-allowed",color:i||void 0,borderColor:o||void 0}})}),qXe=e=>({[`&:disabled, &${e.componentCls}-disabled`]:Object.assign({},WXe(e))}),YXe=e=>({[`&:disabled, &${e.componentCls}-disabled`]:{cursor:"not-allowed",color:e.colorTextDisabled}}),C5=(e,t,n,r)=>{const o=r&&["link","text"].includes(r)?YXe:qXe;return Object.assign(Object.assign({},o(e)),WSe(e.componentCls,t,n))},w5=(e,t,n,r,i)=>({[`&${e.componentCls}-variant-solid`]:Object.assign({color:t,background:n},C5(e,r,i))}),T5=(e,t,n,r,i)=>({[`&${e.componentCls}-variant-outlined, &${e.componentCls}-variant-dashed`]:Object.assign({borderColor:t,background:n},C5(e,r,i))}),x5=e=>({[`&${e.componentCls}-variant-dashed`]:{borderStyle:"dashed"}}),O5=(e,t,n,r)=>({[`&${e.componentCls}-variant-filled`]:Object.assign({boxShadow:"none",background:t},C5(e,n,r))}),pg=(e,t,n,r,i)=>({[`&${e.componentCls}-variant-${n}`]:Object.assign({color:t,boxShadow:"none"},C5(e,r,i,n))}),KXe=e=>{const{componentCls:t}=e;return jv.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 ${Ae(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},w5(e,e.colorTextLightSolid,i,{background:a},{background:c})),T5(e,i,e.colorBgContainer,{color:a,borderColor:a,background:e.colorBgContainer},{color:c,borderColor:c,background:e.colorBgContainer})),x5(e)),O5(e,o,{background:s},{background:l})),pg(e,i,"link",{color:a},{color:c})),pg(e,i,"text",{color:a,background:o},{color:c,background:l}))})},{})},QXe=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.defaultColor,boxShadow:e.defaultShadow},w5(e,e.solidTextColor,e.colorBgSolid,{color:e.solidTextColor,background:e.colorBgSolidHover},{color:e.solidTextColor,background:e.colorBgSolidActive})),x5(e)),O5(e,e.colorFillTertiary,{background:e.colorFillSecondary},{background:e.colorFill})),pg(e,e.textTextColor,"link",{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),sq(e.componentCls,e.ghostBg,e.defaultGhostColor,e.defaultGhostBorderColor,e.colorTextDisabled,e.colorBorder)),XXe=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorPrimary,boxShadow:e.primaryShadow},T5(e,e.colorPrimary,e.colorBgContainer,{color:e.colorPrimaryTextHover,borderColor:e.colorPrimaryHover,background:e.colorBgContainer},{color:e.colorPrimaryTextActive,borderColor:e.colorPrimaryActive,background:e.colorBgContainer})),x5(e)),O5(e,e.colorPrimaryBg,{background:e.colorPrimaryBgHover},{background:e.colorPrimaryBorder})),pg(e,e.colorLink,"text",{color:e.colorPrimaryTextHover,background:e.colorPrimaryBg},{color:e.colorPrimaryTextActive,background:e.colorPrimaryBorder})),sq(e.componentCls,e.ghostBg,e.colorPrimary,e.colorPrimary,e.colorTextDisabled,e.colorBorder,{color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),ZXe=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorError,boxShadow:e.dangerShadow},w5(e,e.dangerColor,e.colorError,{background:e.colorErrorHover},{background:e.colorErrorActive})),T5(e,e.colorError,e.colorBgContainer,{color:e.colorErrorHover,borderColor:e.colorErrorBorderHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),x5(e)),O5(e,e.colorErrorBg,{background:e.colorErrorBgFilledHover},{background:e.colorErrorBgActive})),pg(e,e.colorError,"text",{color:e.colorErrorHover,background:e.colorErrorBg},{color:e.colorErrorHover,background:e.colorErrorBgActive})),pg(e,e.colorError,"link",{color:e.colorErrorHover},{color:e.colorErrorActive})),sq(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder,{color:e.colorErrorHover,borderColor:e.colorErrorHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),JXe=e=>{const{componentCls:t}=e;return Object.assign({[`${t}-color-default`]:QXe(e),[`${t}-color-primary`]:XXe(e),[`${t}-color-dangerous`]:ZXe(e)},KXe(e))},eZe=e=>Object.assign(Object.assign(Object.assign(Object.assign({},T5(e,e.defaultBorderColor,e.defaultBg,{color:e.defaultHoverColor,borderColor:e.defaultHoverBorderColor,background:e.defaultHoverBg},{color:e.defaultActiveColor,borderColor:e.defaultActiveBorderColor,background:e.defaultActiveBg})),pg(e,e.textTextColor,"text",{color:e.textTextHoverColor,background:e.textHoverBg},{color:e.textTextActiveColor,background:e.colorBgTextActive})),w5(e,e.primaryColor,e.colorPrimary,{background:e.colorPrimaryHover,color:e.primaryColor},{background:e.colorPrimaryActive,color:e.primaryColor})),pg(e,e.colorLink,"link",{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),lq=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:`${Ae(l)} ${Ae(a)}`,borderRadius:o,[`&${n}-icon-only`]:{width:r,[s]:{fontSize:c}}}},{[`${n}${n}-circle${t}`]:VXe(e)},{[`${n}${n}-round${t}`]:GXe(e)}]},tZe=e=>{const t=Kn(e,{fontSize:e.contentFontSize});return lq(t,e.componentCls)},nZe=e=>{const t=Kn(e,{controlHeight:e.controlHeightSM,fontSize:e.contentFontSizeSM,padding:e.paddingXS,buttonPaddingHorizontal:e.paddingInlineSM,buttonPaddingVertical:0,borderRadius:e.borderRadiusSM,buttonIconOnlyFontSize:e.onlyIconSizeSM});return lq(t,`${e.componentCls}-sm`)},rZe=e=>{const t=Kn(e,{controlHeight:e.controlHeightLG,fontSize:e.contentFontSizeLG,buttonPaddingHorizontal:e.paddingInlineLG,buttonPaddingVertical:0,borderRadius:e.borderRadiusLG,buttonIconOnlyFontSize:e.onlyIconSizeLG});return lq(t,`${e.componentCls}-lg`)},iZe=e=>{const{componentCls:t}=e;return{[t]:{[`&${t}-block`]:{width:"100%"}}}},oZe=cr("Button",e=>{const t=VSe(e);return[zXe(t),tZe(t),nZe(t),rZe(t),iZe(t),JXe(t),eZe(t),DQe(t)]},GSe,{unitless:{fontWeight:!0,contentLineHeight:!0,contentLineHeightSM:!0,contentLineHeightLG:!0}});function aZe(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 sZe(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 S0(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({},aZe(e,r,t)),sZe(n,r,t))}}function lZe(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 cZe(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 uZe(e){const t=`${e.componentCls}-compact-vertical`;return{[t]:Object.assign(Object.assign({},lZe(e,t)),cZe(e.componentCls,t))}}const dZe=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))},fZe=hS(["Button","compact"],e=>{const t=VSe(e);return[S0(t),uZe(t),dZe(t)]},GSe);var pZe=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 hZe(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 mZe={default:["default","outlined"],primary:["primary","solid"],dashed:["default","dashed"],link:["primary","link"],text:["default","text"]},gZe=ce.forwardRef((e,t)=>{var n,r,i,o;const{loading:a=!1,prefixCls:s,color:l,variant:c,type:u,danger:d=!1,shape:f="default",size:h,styles:m,disabled:g,className:v,rootClassName:y,children:b,icon:_,iconPosition:E="start",ghost:w=!1,block:S=!1,htmlType:C="button",classNames:T,style:x={},autoInsertSpace:O,autoFocus:N}=e,I=pZe(e,["loading","prefixCls","color","variant","type","danger","shape","size","styles","disabled","className","rootClassName","children","icon","iconPosition","ghost","block","htmlType","classNames","style","autoInsertSpace","autoFocus"]),M=u||"default",[F,k]=p.useMemo(()=>{if(l&&c)return[l,c];const Ve=mZe[M]||[];return d?["danger",Ve[1]]:Ve},[u,l,c,d]),A=F==="danger"?"dangerous":F,{getPrefixCls:P,direction:z,button:L}=p.useContext(Qt),V=(n=O??(L==null?void 0:L.autoInsertSpace))!==null&&n!==void 0?n:!0,j=P("btn",s),[U,J,te]=oZe(j),ae=p.useContext(Vo),K=g??ae,Q=p.useContext(kSe),oe=p.useMemo(()=>hZe(a),[a]),[ge,fe]=p.useState(oe.loading),[ue,le]=p.useState(!1),ve=p.useRef(null),ne=$d(t,ve),pe=p.Children.count(b)===1&&!_&&!SL(k),be=p.useRef(!0);ce.useEffect(()=>(be.current=!1,()=>{be.current=!0}),[]),p.useEffect(()=>{let Ve=null;oe.delay>0?Ve=setTimeout(()=>{Ve=null,fe(!0)},oe.delay):fe(oe.loading);function re(){Ve&&(clearTimeout(Ve),Ve=null)}return re},[oe]),p.useEffect(()=>{if(!ve.current||!V)return;const Ve=ve.current.textContent||"";pe&&oH(Ve)?ue||le(!0):ue&&le(!1)}),p.useEffect(()=>{N&&ve.current&&ve.current.focus()},[]);const Re=ce.useCallback(Ve=>{var re;if(ge||K){Ve.preventDefault();return}(re=e.onClick)===null||re===void 0||re.call(e,Ve)},[e.onClick,ge,K]),{compactSize:Se,compactItemClassnames:Ce}=Fd(j,z),ye={large:"lg",small:"sm",middle:void 0},he=So(Ve=>{var re,Me;return(Me=(re=h??Se)!==null&&re!==void 0?re:Q)!==null&&Me!==void 0?Me:Ve}),_e=he&&(r=ye[he])!==null&&r!==void 0?r:"",Oe=ge?"loading":_,De=ur(I,["navigate"]),Y=Te(j,J,te,{[`${j}-${f}`]:f!=="default"&&f,[`${j}-${M}`]:M,[`${j}-dangerous`]:d,[`${j}-color-${A}`]:A,[`${j}-variant-${k}`]:k,[`${j}-${_e}`]:_e,[`${j}-icon-only`]:!b&&b!==0&&!!Oe,[`${j}-background-ghost`]:w&&!SL(k),[`${j}-loading`]:ge,[`${j}-two-chinese-chars`]:ue&&V&&!ge,[`${j}-block`]:S,[`${j}-rtl`]:z==="rtl",[`${j}-icon-end`]:E==="end"},Ce,v,y,L==null?void 0:L.className),D=Object.assign(Object.assign({},L==null?void 0:L.style),x),G=Te(T==null?void 0:T.icon,(i=L==null?void 0:L.classNames)===null||i===void 0?void 0:i.icon),ie=Object.assign(Object.assign({},(m==null?void 0:m.icon)||{}),((o=L==null?void 0:L.styles)===null||o===void 0?void 0:o.icon)||{}),me=_&&!ge?ce.createElement(aH,{prefixCls:j,className:G,style:ie},_):typeof a=="object"&&a.icon?ce.createElement(aH,{prefixCls:j,className:G,style:ie},a.icon):ce.createElement(PQe,{existIcon:!!_,prefixCls:j,loading:ge,mount:be.current}),se=b||b===0?kQe(b,pe&&V):null;if(De.href!==void 0)return U(ce.createElement("a",Object.assign({},De,{className:Te(Y,{[`${j}-disabled`]:K}),href:K?void 0:De.href,style:D,onClick:Re,ref:ne,tabIndex:K?-1:0}),me,se));let Be=ce.createElement("button",Object.assign({},I,{type:C,className:Y,style:D,onClick:Re,disabled:K,ref:ne}),me,se,Ce&&ce.createElement(fZe,{prefixCls:j}));return SL(k)||(Be=ce.createElement(t2,{component:"Button",disabled:ge},Be)),U(Be)}),$n=gZe;$n.Group=NQe;$n.__ANT_BUTTON=!0;function xL(e){return!!(e!=null&&e.then)}const cq=e=>{const{type:t,children:n,prefixCls:r,buttonProps:i,close:o,autoFocus:a,emitEvent:s,isSilent:l,quitOnNullishReturnValue:c,actionFn:u}=e,d=p.useRef(!1),f=p.useRef(null),[h,m]=Bv(!1),g=function(){o==null||o.apply(void 0,arguments)};p.useEffect(()=>{let b=null;return a&&(b=setTimeout(()=>{var _;(_=f.current)===null||_===void 0||_.focus({preventScroll:!0})})),()=>{b&&clearTimeout(b)}},[]);const v=b=>{xL(b)&&(m(!0),b.then(function(){m(!1,!0),g.apply(void 0,arguments),d.current=!1},_=>{if(m(!1,!0),d.current=!1,!(l!=null&&l()))return Promise.reject(_)}))},y=b=>{if(d.current)return;if(d.current=!0,!u){g();return}let _;if(s){if(_=u(b),c&&!xL(_)){d.current=!1,g(b);return}}else if(u.length)_=u(o),d.current=!1;else if(_=u(),!xL(_)){g();return}v(_)};return p.createElement($n,Object.assign({},tq(t),{onClick:y,loading:h,prefixCls:r},i,{ref:f}),n)},r2=ce.createContext({}),{Provider:qSe}=r2,Nne=()=>{const{autoFocusButton:e,cancelButtonProps:t,cancelTextLocale:n,isSilent:r,mergedOkCancel:i,rootPrefixCls:o,close:a,onCancel:s,onConfirm:l}=p.useContext(r2);return i?ce.createElement(cq,{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},Mne=()=>{const{autoFocusButton:e,close:t,isSilent:n,okButtonProps:r,rootPrefixCls:i,okTextLocale:o,okType:a,onConfirm:s,onOk:l}=p.useContext(r2);return ce.createElement(cq,{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 YSe=p.createContext(null),kne=[];function vZe(e,t){var n=p.useState(function(){if(!Qs())return null;var m=document.createElement("div");return m}),r=Ie(n,1),i=r[0],o=p.useRef(!1),a=p.useContext(YSe),s=p.useState(kne),l=Ie(s,2),c=l[0],u=l[1],d=a||(o.current?void 0:function(m){u(function(g){var v=[m].concat(nt(g));return v})});function f(){i.parentElement||document.body.appendChild(i),o.current=!0}function h(){var m;(m=i.parentElement)===null||m===void 0||m.removeChild(i),o.current=!1}return sr(function(){return e?a?a(f):f():h(),h},[e]),sr(function(){c.length&&(c.forEach(function(m){return m()}),u(kne))},[c]),[i,d]}var OL;function KSe(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,";"):"";d5(`
#`.concat(t,`::-webkit-scrollbar {
`).concat(u,`
`).concat(d,`
}`),t)}catch(m){console.error(m),i=l,o=c}}document.body.appendChild(n);var f=e&&i&&!isNaN(i)?i:n.offsetWidth-n.clientWidth,h=e&&o&&!isNaN(o)?o:n.offsetHeight-n.clientHeight;return document.body.removeChild(n),qj(t),{width:f,height:h}}function Pne(e){return typeof document>"u"?0:(OL===void 0&&(OL=KSe()),OL.width)}function sH(e){return typeof document>"u"||!e||!(e instanceof Element)?{width:0,height:0}:KSe(e)}function bZe(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}var yZe="rc-util-locker-".concat(Date.now()),Dne=0;function _Ze(e){var t=!!e,n=p.useState(function(){return Dne+=1,"".concat(yZe,"_").concat(Dne)}),r=Ie(n,1),i=r[0];sr(function(){if(t){var o=sH(document.body).width,a=bZe();d5(`
html body {
overflow-y: hidden;
`.concat(a?"width: calc(100% - ".concat(o,"px);"):"",`
}`),i)}else qj(i);return function(){qj(i)}},[t,i])}var SZe=!1;function EZe(e){return SZe}var Lne=function(t){return t===!1?!1:!Qs()||!t?null:typeof t=="string"?document.querySelector(t):typeof t=="function"?t():t},i2=p.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=p.useState(n),c=Ie(l,2),u=c[0],d=c[1],f=u||n;p.useEffect(function(){(a||n)&&d(n)},[n,a]);var h=p.useState(function(){return Lne(i)}),m=Ie(h,2),g=m[0],v=m[1];p.useEffect(function(){var N=Lne(i);v(N??null)});var y=vZe(f&&!g),b=Ie(y,2),_=b[0],E=b[1],w=g??_;_Ze(r&&n&&Qs()&&(w===_||w===document.body));var S=null;if(s&&Cd(s)&&t){var C=s;S=C.ref}var T=$d(S,t);if(!f||!Qs()||g===void 0)return null;var x=w===!1||EZe(),O=s;return t&&(O=p.cloneElement(s,{ref:T})),p.createElement(YSe.Provider,{value:E},x?O:Ml.createPortal(O,w))}),QSe=p.createContext({});function CZe(){var e=W({},kx);return e.useId}var $ne=0,Fne=CZe();const R5=Fne?function(t){var n=Fne();return t||n}:function(t){var n=p.useState("ssr-id"),r=Ie(n,2),i=r[0],o=r[1];return p.useEffect(function(){var a=$ne;$ne+=1,o("rc_unique_".concat(a))},[]),t||i};function Bne(e,t,n){var r=t;return!r&&n&&(r="".concat(e,"-").concat(n)),r}function jne(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 wZe(e){var t=e.getBoundingClientRect(),n={left:t.left,top:t.top},r=e.ownerDocument,i=r.defaultView||r.parentWindow;return n.left+=jne(i),n.top+=jne(i,!0),n}const TZe=p.memo(function(e){var t=e.children;return t},function(e,t){var n=t.shouldUpdate;return!n});var xZe={width:0,height:0,overflow:"hidden",outline:"none"},OZe={outline:"none"},XSe=ce.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,f=e.bodyStyle,h=e.bodyProps,m=e.modalRender,g=e.onMouseDown,v=e.onMouseUp,y=e.holderRef,b=e.visible,_=e.forceRender,E=e.width,w=e.height,S=e.classNames,C=e.styles,T=ce.useContext(QSe),x=T.panel,O=$d(y,x),N=p.useRef(),I=p.useRef();ce.useImperativeHandle(t,function(){return{focus:function(){var j;(j=N.current)===null||j===void 0||j.focus({preventScroll:!0})},changeActive:function(j){var U=document,J=U.activeElement;j&&J===I.current?N.current.focus({preventScroll:!0}):!j&&J===N.current&&I.current.focus({preventScroll:!0})}}});var M={};E!==void 0&&(M.width=E),w!==void 0&&(M.height=w);var F=s?ce.createElement("div",{className:Te("".concat(n,"-footer"),S==null?void 0:S.footer),style:W({},C==null?void 0:C.footer)},s):null,k=o?ce.createElement("div",{className:Te("".concat(n,"-header"),S==null?void 0:S.header),style:W({},C==null?void 0:C.header)},ce.createElement("div",{className:"".concat(n,"-title"),id:a},o)):null,B=p.useMemo(function(){return Gt(l)==="object"&&l!==null?l:l?{closeIcon:c??ce.createElement("span",{className:"".concat(n,"-close-x")})}:{}},[l,c,n]),A=xi(B,!0),P=Gt(l)==="object"&&l.disabled,z=l?ce.createElement("button",Ke({type:"button",onClick:u,"aria-label":"Close"},A,{className:"".concat(n,"-close"),disabled:P}),B.closeIcon):null,L=ce.createElement("div",{className:Te("".concat(n,"-content"),S==null?void 0:S.content),style:C==null?void 0:C.content},z,k,ce.createElement("div",Ke({className:Te("".concat(n,"-body"),S==null?void 0:S.body),style:W(W({},f),C==null?void 0:C.body)},h),d),F);return ce.createElement("div",{key:"dialog-element",role:"dialog","aria-labelledby":o?a:null,"aria-modal":"true",ref:O,style:W(W({},i),M),className:Te(n,r),onMouseDown:g,onMouseUp:v},ce.createElement("div",{ref:N,tabIndex:0,style:OZe},ce.createElement(TZe,{shouldUpdate:b||_},m?m(L):L)),ce.createElement("div",{tabIndex:0,ref:I,style:xZe}))}),ZSe=p.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,f=e.mousePosition,h=p.useRef(),m=p.useState(),g=Ie(m,2),v=g[0],y=g[1],b={};v&&(b.transformOrigin=v);function _(){var E=wZe(h.current);y(f&&(f.x||f.y)?"".concat(f.x-E.left,"px ").concat(f.y-E.top,"px"):"")}return p.createElement(ra,{visible:a,onVisibleChanged:d,onAppearPrepare:_,onEnterPrepare:_,forceRender:s,motionName:c,removeOnLeave:l,ref:h},function(E,w){var S=E.className,C=E.style;return p.createElement(XSe,Ke({},e,{ref:t,title:r,ariaId:u,prefixCls:n,holderRef:w,style:W(W(W({},C),i),b),className:Te(o,S)}))})});ZSe.displayName="Content";var RZe=function(t){var n=t.prefixCls,r=t.style,i=t.visible,o=t.maskProps,a=t.motionName,s=t.className;return p.createElement(ra,{key:"mask",visible:i,motionName:a,leavedClassName:"".concat(n,"-mask-hidden")},function(l,c){var u=l.className,d=l.style;return p.createElement("div",Ke({ref:c,style:W(W({},d),r),className:Te("".concat(n,"-mask"),u,s)},o))})},IZe=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,f=t.wrapClassName,h=t.wrapProps,m=t.onClose,g=t.afterOpenChange,v=t.afterClose,y=t.transitionName,b=t.animation,_=t.closable,E=_===void 0?!0:_,w=t.mask,S=w===void 0?!0:w,C=t.maskTransitionName,T=t.maskAnimation,x=t.maskClosable,O=x===void 0?!0:x,N=t.maskStyle,I=t.maskProps,M=t.rootClassName,F=t.classNames,k=t.styles,B=p.useRef(),A=p.useRef(),P=p.useRef(),z=p.useState(a),L=Ie(z,2),V=L[0],j=L[1],U=R5();function J(){Gj(A.current,document.activeElement)||(B.current=document.activeElement)}function te(){if(!Gj(A.current,document.activeElement)){var ne;(ne=P.current)===null||ne===void 0||ne.focus()}}function ae(ne){if(ne)te();else{if(j(!1),S&&B.current&&u){try{B.current.focus({preventScroll:!0})}catch{}B.current=null}V&&(v==null||v())}g==null||g(ne)}function K(ne){m==null||m(ne)}var Q=p.useRef(!1),oe=p.useRef(),ge=function(){clearTimeout(oe.current),Q.current=!0},fe=function(){oe.current=setTimeout(function(){Q.current=!1})},ue=null;O&&(ue=function(pe){Q.current?Q.current=!1:A.current===pe.target&&K(pe)});function le(ne){if(l&&ne.keyCode===dt.ESC){ne.stopPropagation(),K(ne);return}a&&ne.keyCode===dt.TAB&&P.current.changeActive(!ne.shiftKey)}p.useEffect(function(){a&&(j(!0),J())},[a]),p.useEffect(function(){return function(){clearTimeout(oe.current)}},[]);var ve=W(W(W({zIndex:i},d),k==null?void 0:k.wrapper),{},{display:V?null:"none"});return p.createElement("div",Ke({className:Te("".concat(r,"-root"),M)},xi(t,{data:!0})),p.createElement(RZe,{prefixCls:r,visible:S&&a,motionName:Bne(r,C,T),style:W(W({zIndex:i},N),k==null?void 0:k.mask),maskProps:I,className:F==null?void 0:F.mask}),p.createElement("div",Ke({tabIndex:-1,onKeyDown:le,className:Te("".concat(r,"-wrap"),f,F==null?void 0:F.wrapper),ref:A,onClick:ue,style:ve},h),p.createElement(ZSe,Ke({},t,{onMouseDown:ge,onMouseUp:fe,ref:P,closable:E,ariaId:U,prefixCls:r,visible:a&&V,onClose:K,onVisibleChanged:ae,motionName:Bne(r,y,b)}))))},uq=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=p.useState(n),u=Ie(c,2),d=u[0],f=u[1],h=p.useMemo(function(){return{panel:l}},[l]);return p.useEffect(function(){n&&f(!0)},[n]),!i&&a&&!d?null:p.createElement(QSe.Provider,{value:h},p.createElement(i2,{open:n||i||d,autoDestroy:!1,getContainer:r,autoLock:n||d},p.createElement(IZe,Ke({},t,{destroyOnClose:a,afterClose:function(){s==null||s(),f(!1)}}))))};uq.displayName="Dialog";var B1="RC_FORM_INTERNAL_HOOKS",Ii=function(){Yr(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")},hg=p.createContext({getFieldValue:Ii,getFieldsValue:Ii,getFieldError:Ii,getFieldWarning:Ii,getFieldsError:Ii,isFieldsTouched:Ii,isFieldTouched:Ii,isFieldValidating:Ii,isFieldsValidating:Ii,resetFields:Ii,setFields:Ii,setFieldValue:Ii,setFieldsValue:Ii,validateFields:Ii,submit:Ii,getInternalHooks:function(){return Ii(),{dispatch:Ii,initEntityValue:Ii,registerField:Ii,useSubscribe:Ii,setInitialValues:Ii,destroyForm:Ii,setCallbacks:Ii,registerWatch:Ii,getFields:Ii,setValidateMessages:Ii,setPreserve:Ii,getInitialValue:Ii}}}),NT=p.createContext(null);function lH(e){return e==null?[]:Array.isArray(e)?e:[e]}function AZe(e){return e&&!!e._init}function cH(){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 uH=cH();function NZe(e){try{return Function.toString.call(e).indexOf("[native code]")!==-1}catch{return typeof e=="function"}}function MZe(e,t,n){if(r5())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,t);var i=new(e.bind.apply(e,r));return n&&ET(i,n.prototype),i}function dH(e){var t=typeof Map=="function"?new Map:void 0;return dH=function(r){if(r===null||!NZe(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 MZe(r,arguments,Dv(this).constructor)}return i.prototype=Object.create(r.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),ET(i,r)},dH(e)}var kZe=/%[sdj%]/g,PZe=function(){};function fH(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 hc(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(kZe,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 DZe(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"}function Ra(e,t){return!!(e==null||t==="array"&&Array.isArray(e)&&!e.length||DZe(t)&&typeof e=="string"&&!e)}function LZe(e,t,n){var r=[],i=0,o=e.length;function a(s){r.push.apply(r,nt(s||[])),i++,i===o&&n(r)}e.forEach(function(s){t(s,a)})}function Hne(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 $Ze(e){var t=[];return Object.keys(e).forEach(function(n){t.push.apply(t,nt(e[n]||[]))}),t}var Une=function(e){Ds(n,e);var t=il(n);function n(r,i){var o;return Kr(this,n),o=t.call(this,"Async Validation Error"),ee(cn(o),"errors",void 0),ee(cn(o),"fields",void 0),o.errors=r,o.fields=i,o}return Qr(n)}(dH(Error));function FZe(e,t,n,r,i){if(t.first){var o=new Promise(function(f,h){var m=function(y){return r(y),y.length?h(new Une(y,fH(y))):f(i)},g=$Ze(e);Hne(g,n,m)});return o.catch(function(f){return f}),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(f,h){var m=function(v){if(u.push.apply(u,v),c++,c===l)return r(u),u.length?h(new Une(u,fH(u))):f(i)};s.length||(r(u),f(i)),s.forEach(function(g){var v=e[g];a.indexOf(g)!==-1?Hne(v,n,m):LZe(v,n,m)})});return d.catch(function(f){return f}),d}function BZe(e){return!!(e&&e.message!==void 0)}function jZe(e,t){for(var n=e,r=0;r<t.length;r++){if(n==null)return n;n=n[t[r]]}return n}function zne(e,t){return function(n){var r;return e.fullFields?r=jZe(t,e.fullFields):r=t[n.field||e.fullField],BZe(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 Vne(e,t){if(t){for(var n in t)if(t.hasOwnProperty(n)){var r=t[n];Gt(r)==="object"&&Gt(e[n])==="object"?e[n]=W(W({},e[n]),r):e[n]=r}}return e}var K0="enum",HZe=function(t,n,r,i,o){t[K0]=Array.isArray(t[K0])?t[K0]:[],t[K0].indexOf(n)===-1&&i.push(hc(o.messages[K0],t.fullField,t[K0].join(", ")))},UZe=function(t,n,r,i,o){if(t.pattern){if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(n)||i.push(hc(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(hc(o.messages.pattern.mismatch,t.fullField,n,t.pattern))}}},zZe=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,f=typeof n=="number",h=typeof n=="string",m=Array.isArray(n);if(f?d="number":h?d="string":m&&(d="array"),!d)return!1;m&&(u=n.length),h&&(u=n.replace(c,"_").length),a?u!==t.len&&i.push(hc(o.messages[d].len,t.fullField,t.len)):s&&!l&&u<t.min?i.push(hc(o.messages[d].min,t.fullField,t.min)):l&&!s&&u>t.max?i.push(hc(o.messages[d].max,t.fullField,t.max)):s&&l&&(u<t.min||u>t.max)&&i.push(hc(o.messages[d].range,t.fullField,t.min,t.max))},JSe=function(t,n,r,i,o,a){t.required&&(!r.hasOwnProperty(t.field)||Ra(n,a||t.type))&&i.push(hc(o.messages.required,t.fullField))},SR;const VZe=function(){if(SR)return SR;var e="[a-fA-F\\d:]",t=function(S){return S&&S.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(S){return S&&S.exact?s:new RegExp("(?:".concat(t(S)).concat(n).concat(t(S),")|(?:").concat(t(S)).concat(a).concat(t(S),")"),"g")};u.v4=function(w){return w&&w.exact?l:new RegExp("".concat(t(w)).concat(n).concat(t(w)),"g")},u.v6=function(w){return w&&w.exact?c:new RegExp("".concat(t(w)).concat(a).concat(t(w)),"g")};var d="(?:(?:[a-z]+:)?//)",f="(?:\\S+(?::\\S*)?@)?",h=u.v4().source,m=u.v6().source,g="(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)",v="(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*",y="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",b="(?::\\d{2,5})?",_='(?:[/?#][^\\s"]*)?',E="(?:".concat(d,"|www\\.)").concat(f,"(?:localhost|").concat(h,"|").concat(m,"|").concat(g).concat(v).concat(y,")").concat(b).concat(_);return SR=new RegExp("(?:^".concat(E,"$)"),"i"),SR};var Gne={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},IC={integer:function(t){return IC.number(t)&&parseInt(t,10)===t},float:function(t){return IC.number(t)&&!IC.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 Gt(t)==="object"&&!IC.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(Gne.email)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(VZe())},hex:function(t){return typeof t=="string"&&!!t.match(Gne.hex)}},GZe=function(t,n,r,i,o){if(t.required&&n===void 0){JSe(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?IC[s](n)||i.push(hc(o.messages.types[s],t.fullField,t.type)):s&&Gt(n)!==t.type&&i.push(hc(o.messages.types[s],t.fullField,t.type))},WZe=function(t,n,r,i,o){(/^\s+$/.test(n)||n==="")&&i.push(hc(o.messages.whitespace,t.fullField))};const qr={required:JSe,whitespace:WZe,type:GZe,range:zZe,enum:HZe,pattern:UZe};var qZe=function(t,n,r,i,o){var a=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(Ra(n)&&!t.required)return r();qr.required(t,n,i,a,o)}r(a)},YZe=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();qr.required(t,n,i,a,o,"array"),n!=null&&(qr.type(t,n,i,a,o),qr.range(t,n,i,a,o))}r(a)},KZe=function(t,n,r,i,o){var a=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(Ra(n)&&!t.required)return r();qr.required(t,n,i,a,o),n!==void 0&&qr.type(t,n,i,a,o)}r(a)},QZe=function(t,n,r,i,o){var a=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(Ra(n,"date")&&!t.required)return r();if(qr.required(t,n,i,a,o),!Ra(n,"date")){var l;n instanceof Date?l=n:l=new Date(n),qr.type(t,l,i,a,o),l&&qr.range(t,l.getTime(),i,a,o)}}r(a)},XZe="enum",ZZe=function(t,n,r,i,o){var a=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(Ra(n)&&!t.required)return r();qr.required(t,n,i,a,o),n!==void 0&&qr[XZe](t,n,i,a,o)}r(a)},JZe=function(t,n,r,i,o){var a=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(Ra(n)&&!t.required)return r();qr.required(t,n,i,a,o),n!==void 0&&(qr.type(t,n,i,a,o),qr.range(t,n,i,a,o))}r(a)},eJe=function(t,n,r,i,o){var a=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(Ra(n)&&!t.required)return r();qr.required(t,n,i,a,o),n!==void 0&&(qr.type(t,n,i,a,o),qr.range(t,n,i,a,o))}r(a)},tJe=function(t,n,r,i,o){var a=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(Ra(n)&&!t.required)return r();qr.required(t,n,i,a,o),n!==void 0&&qr.type(t,n,i,a,o)}r(a)},nJe=function(t,n,r,i,o){var a=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(n===""&&(n=void 0),Ra(n)&&!t.required)return r();qr.required(t,n,i,a,o),n!==void 0&&(qr.type(t,n,i,a,o),qr.range(t,n,i,a,o))}r(a)},rJe=function(t,n,r,i,o){var a=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(Ra(n)&&!t.required)return r();qr.required(t,n,i,a,o),n!==void 0&&qr.type(t,n,i,a,o)}r(a)},iJe=function(t,n,r,i,o){var a=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(Ra(n,"string")&&!t.required)return r();qr.required(t,n,i,a,o),Ra(n,"string")||qr.pattern(t,n,i,a,o)}r(a)},oJe=function(t,n,r,i,o){var a=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(Ra(n)&&!t.required)return r();qr.required(t,n,i,a,o),Ra(n)||qr.type(t,n,i,a,o)}r(a)},aJe=function(t,n,r,i,o){var a=[],s=Array.isArray(n)?"array":Gt(n);qr.required(t,n,i,a,o,s),r(a)},sJe=function(t,n,r,i,o){var a=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(Ra(n,"string")&&!t.required)return r();qr.required(t,n,i,a,o,"string"),Ra(n,"string")||(qr.type(t,n,i,a,o),qr.range(t,n,i,a,o),qr.pattern(t,n,i,a,o),t.whitespace===!0&&qr.whitespace(t,n,i,a,o))}r(a)},RL=function(t,n,r,i,o){var a=t.type,s=[],l=t.required||!t.required&&i.hasOwnProperty(t.field);if(l){if(Ra(n,a)&&!t.required)return r();qr.required(t,n,i,s,o,a),Ra(n,a)||qr.type(t,n,i,s,o)}r(s)};const uw={string:sJe,method:tJe,number:nJe,boolean:KZe,regexp:oJe,integer:eJe,float:JZe,array:YZe,object:rJe,enum:ZZe,pattern:iJe,date:QZe,url:RL,hex:RL,email:RL,required:aJe,any:qZe};var o2=function(){function e(t){Kr(this,e),ee(this,"rules",null),ee(this,"_messages",uH),this.define(t)}return Qr(e,[{key:"define",value:function(n){var r=this;if(!n)throw new Error("Cannot configure a schema with no rules");if(Gt(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=Vne(cH(),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 g=[],v={};function y(_){if(Array.isArray(_)){var E;g=(E=g).concat.apply(E,nt(_))}else g.push(_)}for(var b=0;b<m.length;b++)y(m[b]);g.length?(v=fH(g),l(g,v)):l(null,a)}if(s.messages){var u=this.messages();u===uH&&(u=cH()),Vne(u,s.messages),s.messages=u}else s.messages=this.messages();var d={},f=s.keys||Object.keys(this.rules);f.forEach(function(m){var g=r.rules[m],v=a[m];g.forEach(function(y){var b=y;typeof b.transform=="function"&&(a===n&&(a=W({},a)),v=a[m]=b.transform(v),v!=null&&(b.type=b.type||(Array.isArray(v)?"array":Gt(v)))),typeof b=="function"?b={validator:b}:b=W({},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:v,source:a,field:m}))})});var h={};return FZe(d,s,function(m,g){var v=m.rule,y=(v.type==="object"||v.type==="array")&&(Gt(v.fields)==="object"||Gt(v.defaultField)==="object");y=y&&(v.required||!v.required&&m.value),v.field=m.field;function b(C,T){return W(W({},T),{},{fullField:"".concat(v.fullField,".").concat(C),fullFields:v.fullFields?[].concat(nt(v.fullFields),[C]):[C]})}function _(){var C=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],T=Array.isArray(C)?C:[C];!s.suppressWarning&&T.length&&e.warning("async-validator:",T),T.length&&v.message!==void 0&&(T=[].concat(v.message));var x=T.map(zne(v,a));if(s.first&&x.length)return h[v.field]=1,g(x);if(!y)g(x);else{if(v.required&&!m.value)return v.message!==void 0?x=[].concat(v.message).map(zne(v,a)):s.error&&(x=[s.error(v,hc(s.messages.required,v.field))]),g(x);var O={};v.defaultField&&Object.keys(m.value).map(function(M){O[M]=v.defaultField}),O=W(W({},O),m.rule.fields);var N={};Object.keys(O).forEach(function(M){var F=O[M],k=Array.isArray(F)?F:[F];N[M]=k.map(b.bind(null,M))});var I=new e(N);I.messages(s.messages),m.rule.options&&(m.rule.options.messages=s.messages,m.rule.options.error=s.error),I.validate(m.value,m.rule.options||s,function(M){var F=[];x&&x.length&&F.push.apply(F,nt(x)),M&&M.length&&F.push.apply(F,nt(M)),g(F.length?F:null)})}}var E;if(v.asyncValidator)E=v.asyncValidator(v,m.value,_,m.source,s);else if(v.validator){try{E=v.validator(v,m.value,_,m.source,s)}catch(C){var w,S;(w=(S=console).error)===null||w===void 0||w.call(S,C),s.suppressValidatorError||setTimeout(function(){throw C},0),_(C.message)}E===!0?_():E===!1?_(typeof v.message=="function"?v.message(v.fullField||v.field):v.message||"".concat(v.fullField||v.field," fails")):E instanceof Array?_(E):E instanceof Error&&_(E.message)}E&&E.then&&E.then(function(){return _()},function(C){return _(C)})},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&&!uw.hasOwnProperty(n.type))throw new Error(hc("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"?uw.required:uw[this.getType(n)]||void 0}}]),e}();ee(o2,"register",function(t,n){if(typeof n!="function")throw new Error("Cannot register a validator by type, validator is not a function");uw[t]=n});ee(o2,"warning",PZe);ee(o2,"messages",uH);ee(o2,"validators",uw);var Wl="'${name}' is not a valid ${type}",eEe={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:Wl,method:Wl,array:Wl,object:Wl,number:Wl,date:Wl,boolean:Wl,integer:Wl,float:Wl,regexp:Wl,email:Wl,url:Wl,hex:Wl},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}"}},Wne=o2;function lJe(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 qne="CODE_LOGIC_ERROR";function pH(e,t,n,r,i){return hH.apply(this,arguments)}function hH(){return hH=lo(pr().mark(function e(t,n,r,i,o){var a,s,l,c,u,d,f,h,m;return pr().wrap(function(v){for(;;)switch(v.prev=v.next){case 0:return a=W({},r),delete a.ruleIndex,Wne.warning=function(){},a.validator&&(s=a.validator,a.validator=function(){try{return s.apply(void 0,arguments)}catch(y){return console.error(y),Promise.reject(qne)}}),l=null,a&&a.type==="array"&&a.defaultField&&(l=a.defaultField,delete a.defaultField),c=new Wne(ee({},t,[a])),u=F1(eEe,i.validateMessages),c.messages(u),d=[],v.prev=10,v.next=13,Promise.resolve(c.validate(ee({},t,n),W({},i)));case 13:v.next=18;break;case 15:v.prev=15,v.t0=v.catch(10),v.t0.errors&&(d=v.t0.errors.map(function(y,b){var _=y.message,E=_===qne?u.default:_;return p.isValidElement(E)?p.cloneElement(E,{key:"error_".concat(b)}):E}));case 18:if(!(!d.length&&l)){v.next=23;break}return v.next=21,Promise.all(n.map(function(y,b){return pH("".concat(t,".").concat(b),y,l,i,o)}));case 21:return f=v.sent,v.abrupt("return",f.reduce(function(y,b){return[].concat(nt(y),nt(b))},[]));case 23:return h=W(W({},r),{},{name:t,enum:(r.enum||[]).join(", ")},o),m=d.map(function(y){return typeof y=="string"?lJe(y,h):y}),v.abrupt("return",m);case 26:case"end":return v.stop()}},e,null,[[10,15]])})),hH.apply(this,arguments)}function cJe(e,t,n,r,i,o){var a=e.join("."),s=n.map(function(u,d){var f=u.validator,h=W(W({},u),{},{ruleIndex:d});return f&&(h.validator=function(m,g,v){var y=!1,b=function(){for(var w=arguments.length,S=new Array(w),C=0;C<w;C++)S[C]=arguments[C];Promise.resolve().then(function(){Yr(!y,"Your validator function has already return a promise. `callback` will be ignored."),y||v.apply(void 0,S)})},_=f(m,g,b);y=_&&typeof _.then=="function"&&typeof _.catch=="function",Yr(y,"`callback` is deprecated. Please return a promise instead."),y&&_.then(function(){v()}).catch(function(E){v(E||" ")})}),h}).sort(function(u,d){var f=u.warningOnly,h=u.ruleIndex,m=d.warningOnly,g=d.ruleIndex;return!!f==!!m?h-g:f?1:-1}),l;if(i===!0)l=new Promise(function(){var u=lo(pr().mark(function d(f,h){var m,g,v;return pr().wrap(function(b){for(;;)switch(b.prev=b.next){case 0:m=0;case 1:if(!(m<s.length)){b.next=12;break}return g=s[m],b.next=5,pH(a,t,g,r,o);case 5:if(v=b.sent,!v.length){b.next=9;break}return h([{errors:v,rule:g}]),b.abrupt("return");case 9:m+=1,b.next=1;break;case 12:f([]);case 13:case"end":return b.stop()}},d)}));return function(d,f){return u.apply(this,arguments)}}());else{var c=s.map(function(u){return pH(a,t,u,r,o).then(function(d){return{errors:d,rule:u}})});l=(i?dJe(c):uJe(c)).then(function(u){return Promise.reject(u)})}return l.catch(function(u){return u}),l}function uJe(e){return mH.apply(this,arguments)}function mH(){return mH=lo(pr().mark(function e(t){return pr().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,nt(i));return a}));case 1:case"end":return r.stop()}},e)})),mH.apply(this,arguments)}function dJe(e){return gH.apply(this,arguments)}function gH(){return gH=lo(pr().mark(function e(t){var n;return pr().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)})),gH.apply(this,arguments)}function Qo(e){return lH(e)}function Yne(e,t){var n={};return t.forEach(function(r){var i=Io(e,r);n=Zo(n,r,i)}),n}function Cy(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return e&&e.some(function(r){return tEe(t,r,n)})}function tEe(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 fJe(e,t){if(e===t)return!0;if(!e&&t||e&&!t||!e||!t||Gt(e)!=="object"||Gt(t)!=="object")return!1;var n=Object.keys(e),r=Object.keys(t),i=new Set([].concat(n,r));return nt(i).every(function(o){var a=e[o],s=t[o];return typeof a=="function"&&typeof s=="function"?!0:a===s})}function pJe(e){var t=arguments.length<=1?void 0:arguments[1];return t&&t.target&&Gt(t.target)==="object"&&e in t.target?t.target[e]:t}function Kne(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(nt(e.slice(0,n)),[i],nt(e.slice(n,t)),nt(e.slice(t+1,r))):o<0?[].concat(nt(e.slice(0,t)),nt(e.slice(t+1,n+1)),[i],nt(e.slice(n+1,r))):e}var hJe=["name"],Lc=[];function IL(e,t,n,r,i,o){return typeof e=="function"?e(t,n,"source"in o?{source:o.source}:{}):r!==i}var dq=function(e){Ds(n,e);var t=il(n);function n(r){var i;if(Kr(this,n),i=t.call(this,r),ee(cn(i),"state",{resetCount:0}),ee(cn(i),"cancelRegisterFunc",null),ee(cn(i),"mounted",!1),ee(cn(i),"touched",!1),ee(cn(i),"dirty",!1),ee(cn(i),"validatePromise",void 0),ee(cn(i),"prevValidating",void 0),ee(cn(i),"errors",Lc),ee(cn(i),"warnings",Lc),ee(cn(i),"cancelRegister",function(){var l=i.props,c=l.preserve,u=l.isListField,d=l.name;i.cancelRegisterFunc&&i.cancelRegisterFunc(u,c,Qo(d)),i.cancelRegisterFunc=null}),ee(cn(i),"getNamePath",function(){var l=i.props,c=l.name,u=l.fieldContext,d=u.prefixName,f=d===void 0?[]:d;return c!==void 0?[].concat(nt(f),nt(c)):[]}),ee(cn(i),"getRules",function(){var l=i.props,c=l.rules,u=c===void 0?[]:c,d=l.fieldContext;return u.map(function(f){return typeof f=="function"?f(d):f})}),ee(cn(i),"refresh",function(){i.mounted&&i.setState(function(l){var c=l.resetCount;return{resetCount:c+1}})}),ee(cn(i),"metaCache",null),ee(cn(i),"triggerMetaEvent",function(l){var c=i.props.onMetaChange;if(c){var u=W(W({},i.getMeta()),{},{destroy:l});gu(i.metaCache,u)||c(u),i.metaCache=u}else i.metaCache=null}),ee(cn(i),"onStoreChange",function(l,c,u){var d=i.props,f=d.shouldUpdate,h=d.dependencies,m=h===void 0?[]:h,g=d.onReset,v=u.store,y=i.getNamePath(),b=i.getValue(l),_=i.getValue(v),E=c&&Cy(c,y);switch(u.type==="valueUpdate"&&u.source==="external"&&!gu(b,_)&&(i.touched=!0,i.dirty=!0,i.validatePromise=null,i.errors=Lc,i.warnings=Lc,i.triggerMetaEvent()),u.type){case"reset":if(!c||E){i.touched=!1,i.dirty=!1,i.validatePromise=void 0,i.errors=Lc,i.warnings=Lc,i.triggerMetaEvent(),g==null||g(),i.refresh();return}break;case"remove":{if(f&&IL(f,l,v,b,_,u)){i.reRender();return}break}case"setField":{var w=u.data;if(E){"touched"in w&&(i.touched=w.touched),"validating"in w&&!("originRCField"in w)&&(i.validatePromise=w.validating?Promise.resolve([]):null),"errors"in w&&(i.errors=w.errors||Lc),"warnings"in w&&(i.warnings=w.warnings||Lc),i.dirty=!0,i.triggerMetaEvent(),i.reRender();return}else if("value"in w&&Cy(c,y,!0)){i.reRender();return}if(f&&!y.length&&IL(f,l,v,b,_,u)){i.reRender();return}break}case"dependenciesUpdate":{var S=m.map(Qo);if(S.some(function(C){return Cy(u.relatedFields,C)})){i.reRender();return}break}default:if(E||(!m.length||y.length||f)&&IL(f,l,v,b,_,u)){i.reRender();return}break}f===!0&&i.reRender()}),ee(cn(i),"validateRules",function(l){var c=i.getNamePath(),u=i.getValue(),d=l||{},f=d.triggerName,h=d.validateOnly,m=h===void 0?!1:h,g=Promise.resolve().then(lo(pr().mark(function v(){var y,b,_,E,w,S,C;return pr().wrap(function(x){for(;;)switch(x.prev=x.next){case 0:if(i.mounted){x.next=2;break}return x.abrupt("return",[]);case 2:if(y=i.props,b=y.validateFirst,_=b===void 0?!1:b,E=y.messageVariables,w=y.validateDebounce,S=i.getRules(),f&&(S=S.filter(function(O){return O}).filter(function(O){var N=O.validateTrigger;if(!N)return!0;var I=lH(N);return I.includes(f)})),!(w&&f)){x.next=10;break}return x.next=8,new Promise(function(O){setTimeout(O,w)});case 8:if(i.validatePromise===g){x.next=10;break}return x.abrupt("return",[]);case 10:return C=cJe(c,u,S,l,_,E),C.catch(function(O){return O}).then(function(){var O=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Lc;if(i.validatePromise===g){var N;i.validatePromise=null;var I=[],M=[];(N=O.forEach)===null||N===void 0||N.call(O,function(F){var k=F.rule.warningOnly,B=F.errors,A=B===void 0?Lc:B;k?M.push.apply(M,nt(A)):I.push.apply(I,nt(A))}),i.errors=I,i.warnings=M,i.triggerMetaEvent(),i.reRender()}}),x.abrupt("return",C);case 13:case"end":return x.stop()}},v)})));return m||(i.validatePromise=g,i.dirty=!0,i.errors=Lc,i.warnings=Lc,i.triggerMetaEvent(),i.reRender()),g}),ee(cn(i),"isFieldValidating",function(){return!!i.validatePromise}),ee(cn(i),"isFieldTouched",function(){return i.touched}),ee(cn(i),"isFieldDirty",function(){if(i.dirty||i.props.initialValue!==void 0)return!0;var l=i.props.fieldContext,c=l.getInternalHooks(B1),u=c.getInitialValue;return u(i.getNamePath())!==void 0}),ee(cn(i),"getErrors",function(){return i.errors}),ee(cn(i),"getWarnings",function(){return i.warnings}),ee(cn(i),"isListField",function(){return i.props.isListField}),ee(cn(i),"isList",function(){return i.props.isList}),ee(cn(i),"isPreserve",function(){return i.props.preserve}),ee(cn(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}),ee(cn(i),"getOnlyChild",function(l){if(typeof l=="function"){var c=i.getMeta();return W(W({},i.getOnlyChild(l(i.getControlled(),c,i.props.fieldContext))),{},{isFunction:!0})}var u=Mo(l);return u.length!==1||!p.isValidElement(u[0])?{child:u,isFunction:!1}:{child:u[0],isFunction:!1}}),ee(cn(i),"getValue",function(l){var c=i.props.fieldContext.getFieldsValue,u=i.getNamePath();return Io(l||c(!0),u)}),ee(cn(i),"getControlled",function(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},c=i.props,u=c.name,d=c.trigger,f=c.validateTrigger,h=c.getValueFromEvent,m=c.normalize,g=c.valuePropName,v=c.getValueProps,y=c.fieldContext,b=f!==void 0?f:y.validateTrigger,_=i.getNamePath(),E=y.getInternalHooks,w=y.getFieldsValue,S=E(B1),C=S.dispatch,T=i.getValue(),x=v||function(F){return ee({},g,F)},O=l[d],N=u!==void 0?x(T):{},I=W(W({},l),N);I[d]=function(){i.touched=!0,i.dirty=!0,i.triggerMetaEvent();for(var F,k=arguments.length,B=new Array(k),A=0;A<k;A++)B[A]=arguments[A];h?F=h.apply(void 0,B):F=pJe.apply(void 0,[g].concat(B)),m&&(F=m(F,T,w(!0))),F!==T&&C({type:"updateValue",namePath:_,value:F}),O&&O.apply(void 0,B)};var M=lH(b||[]);return M.forEach(function(F){var k=I[F];I[F]=function(){k&&k.apply(void 0,arguments);var B=i.props.rules;B&&B.length&&C({type:"validateField",namePath:_,triggerName:F})}}),I}),r.fieldContext){var o=r.fieldContext.getInternalHooks,a=o(B1),s=a.initEntityValue;s(cn(i))}return i}return Qr(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(B1),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:p.isValidElement(s)?c=p.cloneElement(s,this.getControlled(s.props)):(Yr(!s,"`children` of Field is not validate ReactElement."),c=s),p.createElement(p.Fragment,{key:i},c)}}]),n}(p.Component);ee(dq,"contextType",hg);ee(dq,"defaultProps",{trigger:"onChange",valuePropName:"value"});function fq(e){var t,n=e.name,r=Dt(e,hJe),i=p.useContext(hg),o=p.useContext(NT),a=n!==void 0?Qo(n):void 0,s=(t=r.isListField)!==null&&t!==void 0?t:!!o,l="keep";return s||(l="_".concat((a||[]).join("_"))),p.createElement(dq,Ke({key:l,name:a,isListField:s},r,{fieldContext:i}))}function nEe(e){var t=e.name,n=e.initialValue,r=e.children,i=e.rules,o=e.validateTrigger,a=e.isListField,s=p.useContext(hg),l=p.useContext(NT),c=p.useRef({keys:[],id:0}),u=c.current,d=p.useMemo(function(){var g=Qo(s.prefixName)||[];return[].concat(nt(g),nt(Qo(t)))},[s.prefixName,t]),f=p.useMemo(function(){return W(W({},s),{},{prefixName:d})},[s,d]),h=p.useMemo(function(){return{getKey:function(v){var y=d.length,b=v[y];return[u.keys[b],v.slice(y+1)]}}},[d]);if(typeof r!="function")return Yr(!1,"Form.List only accepts function as children."),null;var m=function(v,y,b){var _=b.source;return _==="internal"?!1:v!==y};return p.createElement(NT.Provider,{value:h},p.createElement(hg.Provider,{value:f},p.createElement(fq,{name:[],shouldUpdate:m,rules:i,validateTrigger:o,initialValue:n,isList:!0,isListField:a??!!l},function(g,v){var y=g.value,b=y===void 0?[]:y,_=g.onChange,E=s.getFieldValue,w=function(){var x=E(d||[]);return x||[]},S={add:function(x,O){var N=w();O>=0&&O<=N.length?(u.keys=[].concat(nt(u.keys.slice(0,O)),[u.id],nt(u.keys.slice(O))),_([].concat(nt(N.slice(0,O)),[x],nt(N.slice(O))))):(u.keys=[].concat(nt(u.keys),[u.id]),_([].concat(nt(N),[x]))),u.id+=1},remove:function(x){var O=w(),N=new Set(Array.isArray(x)?x:[x]);N.size<=0||(u.keys=u.keys.filter(function(I,M){return!N.has(M)}),_(O.filter(function(I,M){return!N.has(M)})))},move:function(x,O){if(x!==O){var N=w();x<0||x>=N.length||O<0||O>=N.length||(u.keys=Kne(u.keys,x,O),_(Kne(N,x,O)))}}},C=b||[];return Array.isArray(C)||(C=[]),r(C.map(function(T,x){var O=u.keys[x];return O===void 0&&(u.keys[x]=u.id,O=u.keys[x],u.id+=1),{name:x,key:O,isListField:!0}}),S,v)})))}function mJe(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 rEe="__@field_split__";function AL(e){return e.map(function(t){return"".concat(Gt(t),":").concat(t)}).join(rEe)}var Q0=function(){function e(){Kr(this,e),ee(this,"kvs",new Map)}return Qr(e,[{key:"set",value:function(n,r){this.kvs.set(AL(n),r)}},{key:"get",value:function(n){return this.kvs.get(AL(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(AL(n))}},{key:"map",value:function(n){return nt(this.kvs.entries()).map(function(r){var i=Ie(r,2),o=i[0],a=i[1],s=o.split(rEe);return n({key:s.map(function(l){var c=l.match(/^([^:]*):(.*)$/),u=Ie(c,3),d=u[1],f=u[2];return d==="number"?Number(f):f}),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}(),gJe=["name"],vJe=Qr(function e(t){var n=this;Kr(this,e),ee(this,"formHooked",!1),ee(this,"forceRootUpdate",void 0),ee(this,"subscribable",!0),ee(this,"store",{}),ee(this,"fieldEntities",[]),ee(this,"initialValues",{}),ee(this,"callbacks",{}),ee(this,"validateMessages",null),ee(this,"preserve",null),ee(this,"lastValidatePromise",null),ee(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}}),ee(this,"getInternalHooks",function(r){return r===B1?(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}):(Yr(!1,"`getInternalHooks` is internal usage. Should not call directly."),null)}),ee(this,"useSubscribe",function(r){n.subscribable=r}),ee(this,"prevWithoutPreserves",null),ee(this,"setInitialValues",function(r,i){if(n.initialValues=r||{},i){var o,a=F1(r,n.store);(o=n.prevWithoutPreserves)===null||o===void 0||o.map(function(s){var l=s.key;a=Zo(a,l,Io(r,l))}),n.prevWithoutPreserves=null,n.updateStore(a)}}),ee(this,"destroyForm",function(r){if(r)n.updateStore({});else{var i=new Q0;n.getFieldEntities(!0).forEach(function(o){n.isMergedPreserve(o.isPreserve())||i.set(o.getNamePath(),!0)}),n.prevWithoutPreserves=i}}),ee(this,"getInitialValue",function(r){var i=Io(n.initialValues,r);return r.length?F1(i):i}),ee(this,"setCallbacks",function(r){n.callbacks=r}),ee(this,"setValidateMessages",function(r){n.validateMessages=r}),ee(this,"setPreserve",function(r){n.preserve=r}),ee(this,"watchList",[]),ee(this,"registerWatch",function(r){return n.watchList.push(r),function(){n.watchList=n.watchList.filter(function(i){return i!==r})}}),ee(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)})}}),ee(this,"timeoutId",null),ee(this,"warningUnhooked",function(){}),ee(this,"updateStore",function(r){n.store=r}),ee(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}),ee(this,"getFieldsMap",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,i=new Q0;return n.getFieldEntities(r).forEach(function(o){var a=o.getNamePath();i.set(a,o)}),i}),ee(this,"getFieldEntitiesForNamePathList",function(r){if(!r)return n.getFieldEntities(!0);var i=n.getFieldsMap(!0);return r.map(function(o){var a=Qo(o);return i.get(a)||{INVALIDATE_NAME_PATH:Qo(o)}})}),ee(this,"getFieldsValue",function(r,i){n.warningUnhooked();var o,a,s;if(r===!0||Array.isArray(r)?(o=r,a=i):r&&Gt(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,f,h="INVALIDATE_NAME_PATH"in u?u.INVALIDATE_NAME_PATH:u.getNamePath();if(s){var m,g;if((m=(g=u).isList)!==null&&m!==void 0&&m.call(g))return}else if(!o&&(d=(f=u).isListField)!==null&&d!==void 0&&d.call(f))return;if(!a)c.push(h);else{var v="getMeta"in u?u.getMeta():null;a(v)&&c.push(h)}}),Yne(n.store,c.map(Qo))}),ee(this,"getFieldValue",function(r){n.warningUnhooked();var i=Qo(r);return Io(n.store,i)}),ee(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:Qo(r[a]),errors:[],warnings:[]}})}),ee(this,"getFieldError",function(r){n.warningUnhooked();var i=Qo(r),o=n.getFieldsError([i])[0];return o.errors}),ee(this,"getFieldWarning",function(r){n.warningUnhooked();var i=Qo(r),o=n.getFieldsError([i])[0];return o.warnings}),ee(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(Qo),c=!1):(l=null,c=a):(l=a.map(Qo),c=s);var u=n.getFieldEntities(!0),d=function(v){return v.isFieldTouched()};if(!l)return c?u.every(function(g){return d(g)||g.isList()}):u.some(d);var f=new Q0;l.forEach(function(g){f.set(g,[])}),u.forEach(function(g){var v=g.getNamePath();l.forEach(function(y){y.every(function(b,_){return v[_]===b})&&f.update(y,function(b){return[].concat(nt(b),[g])})})});var h=function(v){return v.some(d)},m=f.map(function(g){var v=g.value;return v});return c?m.every(h):m.some(h)}),ee(this,"isFieldTouched",function(r){return n.warningUnhooked(),n.isFieldsTouched([r])}),ee(this,"isFieldsValidating",function(r){n.warningUnhooked();var i=n.getFieldEntities();if(!r)return i.some(function(a){return a.isFieldValidating()});var o=r.map(Qo);return i.some(function(a){var s=a.getNamePath();return Cy(o,s)&&a.isFieldValidating()})}),ee(this,"isFieldValidating",function(r){return n.warningUnhooked(),n.isFieldsValidating([r])}),ee(this,"resetWithFieldInitialValue",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},i=new Q0,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 f=u.getNamePath(),h=n.getInitialValue(f);if(h!==void 0)Yr(!1,"Form already set 'initialValues' with path '".concat(f.join("."),"'. Field can not overwrite it."));else{var m=i.get(f);if(m&&m.size>1)Yr(!1,"Multiple Field with path '".concat(f.join("."),"' set 'initialValue'. Can not decide which one to pick."));else if(m){var g=n.getFieldValue(f),v=u.isListField();!v&&(!r.skipExist||g===void 0)&&n.updateStore(Zo(n.store,f,nt(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,nt(nt(c).map(function(d){return d.entity})))}})):s=o,a(s)}),ee(this,"resetFields",function(r){n.warningUnhooked();var i=n.store;if(!r){n.updateStore(F1(n.initialValues)),n.resetWithFieldInitialValue(),n.notifyObservers(i,null,{type:"reset"}),n.notifyWatch();return}var o=r.map(Qo);o.forEach(function(a){var s=n.getInitialValue(a);n.updateStore(Zo(n.store,a,s))}),n.resetWithFieldInitialValue({namePathList:o}),n.notifyObservers(i,o,{type:"reset"}),n.notifyWatch(o)}),ee(this,"setFields",function(r){n.warningUnhooked();var i=n.store,o=[];r.forEach(function(a){var s=a.name,l=Dt(a,gJe),c=Qo(s);o.push(c),"value"in l&&n.updateStore(Zo(n.store,c,l.value)),n.notifyObservers(i,[c],{type:"setField",data:a})}),n.notifyWatch(o)}),ee(this,"getFields",function(){var r=n.getFieldEntities(!0),i=r.map(function(o){var a=o.getNamePath(),s=o.getMeta(),l=W(W({},s),{},{name:a,value:n.getFieldValue(a)});return Object.defineProperty(l,"originRCField",{value:!0}),l});return i}),ee(this,"initEntityValue",function(r){var i=r.props.initialValue;if(i!==void 0){var o=r.getNamePath(),a=Io(n.store,o);a===void 0&&n.updateStore(Zo(n.store,o,i))}}),ee(this,"isMergedPreserve",function(r){var i=r!==void 0?r:n.preserve;return i??!0}),ee(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!tEe(d.getNamePath(),i)})){var u=n.store;n.updateStore(Zo(u,i,c,!0)),n.notifyObservers(u,[i],{type:"remove"}),n.triggerDependenciesUpdate(u,i)}}n.notifyWatch([i])}}),ee(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}}}),ee(this,"notifyObservers",function(r,i,o){if(n.subscribable){var a=W(W({},o),{},{store:n.getFieldsValue(!0)});n.getFieldEntities().forEach(function(s){var l=s.onStoreChange;l(r,i,a)})}else n.forceRootUpdate()}),ee(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(nt(o))}),o}),ee(this,"updateValue",function(r,i){var o=Qo(r),a=n.store;n.updateStore(Zo(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=Yne(n.store,[o]);l(c,n.getFieldsValue())}n.triggerOnFieldsChange([o].concat(nt(s)))}),ee(this,"setFieldsValue",function(r){n.warningUnhooked();var i=n.store;if(r){var o=F1(n.store,r);n.updateStore(o)}n.notifyObservers(i,null,{type:"valueUpdate",source:"external"}),n.notifyWatch()}),ee(this,"setFieldValue",function(r,i){n.setFields([{name:r,value:i,errors:[],warnings:[]}])}),ee(this,"getDependencyChildrenFields",function(r){var i=new Set,o=[],a=new Q0;n.getFieldEntities().forEach(function(l){var c=l.props.dependencies;(c||[]).forEach(function(u){var d=Qo(u);a.update(d,function(){var f=arguments.length>0&&arguments[0]!==void 0?arguments[0]:new Set;return f.add(l),f})})});var s=function l(c){var u=a.get(c)||new Set;u.forEach(function(d){if(!i.has(d)){i.add(d);var f=d.getNamePath();d.isFieldDirty()&&f.length&&(o.push(f),l(f))}})};return s(r),o}),ee(this,"triggerOnFieldsChange",function(r,i){var o=n.callbacks.onFieldsChange;if(o){var a=n.getFields();if(i){var s=new Q0;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 Cy(r,u)});l.length&&o(l,a)}}),ee(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(Qo):[],c=[],u=String(Date.now()),d=new Set,f=a||{},h=f.recursive,m=f.dirty;n.getFieldEntities(!0).forEach(function(b){if(s||l.push(b.getNamePath()),!(!b.props.rules||!b.props.rules.length)&&!(m&&!b.isFieldDirty())){var _=b.getNamePath();if(d.add(_.join(u)),!s||Cy(l,_,h)){var E=b.validateRules(W({validateMessages:W(W({},eEe),n.validateMessages)},a));c.push(E.then(function(){return{name:_,errors:[],warnings:[]}}).catch(function(w){var S,C=[],T=[];return(S=w.forEach)===null||S===void 0||S.call(w,function(x){var O=x.rule.warningOnly,N=x.errors;O?T.push.apply(T,nt(N)):C.push.apply(C,nt(N))}),C.length?Promise.reject({name:_,errors:C,warnings:T}):{name:_,errors:C,warnings:T}}))}}});var g=mJe(c);n.lastValidatePromise=g,g.catch(function(b){return b}).then(function(b){var _=b.map(function(E){var w=E.name;return w});n.notifyObservers(n.store,_,{type:"validateFinish"}),n.triggerOnFieldsChange(_,b)});var v=g.then(function(){return n.lastValidatePromise===g?Promise.resolve(n.getFieldsValue(l)):Promise.reject([])}).catch(function(b){var _=b.filter(function(E){return E&&E.errors.length});return Promise.reject({values:n.getFieldsValue(l),errorFields:_,outOfDate:n.lastValidatePromise!==g})});v.catch(function(b){return b});var y=l.filter(function(b){return d.has(b.join(u))});return n.triggerOnFieldsChange(y),v}),ee(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 pq(e){var t=p.useRef(),n=p.useState({}),r=Ie(n,2),i=r[1];if(!t.current)if(e)t.current=e;else{var o=function(){i({})},a=new vJe(o);t.current=a.getForm()}return[t.current]}var vH=p.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),iEe=function(t){var n=t.validateMessages,r=t.onFormChange,i=t.onFormFinish,o=t.children,a=p.useContext(vH),s=p.useRef({});return p.createElement(vH.Provider,{value:W(W({},a),{},{validateMessages:W(W({},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=W(W({},s.current),{},ee({},c,u))),a.registerForm(c,u)},unregisterForm:function(c){var u=W({},s.current);delete u[c],s.current=u,a.unregisterForm(c)}})},o)},bJe=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed","clearOnDestroy"],yJe=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,f=t.validateTrigger,h=f===void 0?"onChange":f,m=t.onValuesChange,g=t.onFieldsChange,v=t.onFinish,y=t.onFinishFailed,b=t.clearOnDestroy,_=Dt(t,bJe),E=p.useRef(null),w=p.useContext(vH),S=pq(a),C=Ie(S,1),T=C[0],x=T.getInternalHooks(B1),O=x.useSubscribe,N=x.setInitialValues,I=x.setCallbacks,M=x.setValidateMessages,F=x.setPreserve,k=x.destroyForm;p.useImperativeHandle(n,function(){return W(W({},T),{},{nativeElement:E.current})}),p.useEffect(function(){return w.registerForm(r,T),function(){w.unregisterForm(r)}},[w,T,r]),M(W(W({},w.validateMessages),d)),I({onValuesChange:m,onFieldsChange:function(J){if(w.triggerFormChange(r,J),g){for(var te=arguments.length,ae=new Array(te>1?te-1:0),K=1;K<te;K++)ae[K-1]=arguments[K];g.apply(void 0,[J].concat(ae))}},onFinish:function(J){w.triggerFormFinish(r,J),v&&v(J)},onFinishFailed:y}),F(s);var B=p.useRef(null);N(i,!B.current),B.current||(B.current=!0),p.useEffect(function(){return function(){return k(b)}},[]);var A,P=typeof l=="function";if(P){var z=T.getFieldsValue(!0);A=l(z,T)}else A=l;O(!P);var L=p.useRef();p.useEffect(function(){fJe(L.current||[],o||[])||T.setFields(o||[]),L.current=o},[o,T]);var V=p.useMemo(function(){return W(W({},T),{},{validateTrigger:h})},[T,h]),j=p.createElement(NT.Provider,{value:null},p.createElement(hg.Provider,{value:V},A));return u===!1?j:p.createElement(u,Ke({},_,{ref:E,onSubmit:function(J){J.preventDefault(),J.stopPropagation(),T.submit()},onReset:function(J){var te;J.preventDefault(),T.resetFields(),(te=_.onReset)===null||te===void 0||te.call(_,J)}}),j)};function Qne(e){try{return JSON.stringify(e)}catch{return Math.random()}}function oEe(){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=AZe(o)?{form:o}:o,s=a.form,l=p.useState(),c=Ie(l,2),u=c[0],d=c[1],f=p.useMemo(function(){return Qne(u)},[u]),h=p.useRef(f);h.current=f;var m=p.useContext(hg),g=s||m,v=g&&g._init,y=Qo(r),b=p.useRef(y);return b.current=y,p.useEffect(function(){if(v){var _=g.getFieldsValue,E=g.getInternalHooks,w=E(B1),S=w.registerWatch,C=function(N,I){var M=a.preserve?I:N;return typeof r=="function"?r(M):Io(M,b.current)},T=S(function(O,N){var I=C(O,N),M=Qne(I);h.current!==M&&(h.current=M,d(I))}),x=C(_(),_(!0));return u!==x&&d(x),T}},[v]),u}var _Je=p.forwardRef(yJe),bS=_Je;bS.FormProvider=iEe;bS.Field=fq;bS.List=nEe;bS.useForm=pq;bS.useWatch=oEe;const ch=p.createContext({labelAlign:"right",vertical:!1,itemRef:()=>{}}),aEe=p.createContext(null),sEe=e=>{const t=ur(e,["prefixCls"]);return p.createElement(iEe,Object.assign({},t))},hq=p.createContext({prefixCls:""}),ia=p.createContext({}),SJe=e=>{let{children:t,status:n,override:r}=e;const i=p.useContext(ia),o=p.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 p.createElement(ia.Provider,{value:o},t)},lEe=p.createContext(void 0),Rd=e=>{const{space:t,form:n,children:r}=e;if(r==null)return null;let i=r;return n&&(i=ce.createElement(SJe,{override:!0,status:!0},i)),t&&(i=ce.createElement(OQe,null,i)),i};function m_(e){if(e)return{closable:e.closable,closeIcon:e.closeIcon}}function Xne(e){const{closable:t,closeIcon:n}=e||{};return ce.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 Zne(){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 EJe={};function mq(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:EJe;const r=Xne(e),i=Xne(t),o=typeof r!="boolean"?!!(r!=null&&r.disabled):!1,a=ce.useMemo(()=>Object.assign({closeIcon:ce.createElement(Yf,null)},n),[n]),s=ce.useMemo(()=>r===!1?!1:r?Zne(a,i,r):i===!1?!1:i?Zne(a,i):a.closable?a:!1,[r,i,a]);return ce.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=xi(s,!0);Object.keys(d).length&&(u=ce.isValidElement(u)?ce.cloneElement(u,d):ce.createElement("span",Object.assign({},d),u))}return[!0,u,o]},[s,a])}var cEe=function(t){if(Qs()&&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},CJe=function(t,n){if(!cEe(t))return!1;var r=document.createElement("div"),i=r.style[t];return r.style[t]=n,r.style[t]!==i};function bH(e,t){return!Array.isArray(e)&&t!==void 0?CJe(e,t):cEe(e)}const wJe=()=>Qs()&&window.document.documentElement,I5=e=>{const{prefixCls:t,className:n,style:r,size:i,shape:o}=e,a=Te({[`${t}-lg`]:i==="large",[`${t}-sm`]:i==="small"}),s=Te({[`${t}-circle`]:o==="circle",[`${t}-square`]:o==="square",[`${t}-round`]:o==="round"}),l=p.useMemo(()=>typeof i=="number"?{width:i,height:i,lineHeight:`${i}px`}:{},[i]);return p.createElement("span",{className:Te(t,a,s,n),style:Object.assign(Object.assign({},l),r)})},TJe=new fr("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),A5=e=>({height:e,lineHeight:Ae(e)}),wy=e=>Object.assign({width:e},A5(e)),xJe=e=>({background:e.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:TJe,animationDuration:e.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),NL=(e,t)=>Object.assign({width:t(e).mul(5).equal(),minWidth:t(e).mul(5).equal()},A5(e)),OJe=e=>{const{skeletonAvatarCls:t,gradientFromColor:n,controlHeight:r,controlHeightLG:i,controlHeightSM:o}=e;return{[t]:Object.assign({display:"inline-block",verticalAlign:"top",background:n},wy(r)),[`${t}${t}-circle`]:{borderRadius:"50%"},[`${t}${t}-lg`]:Object.assign({},wy(i)),[`${t}${t}-sm`]:Object.assign({},wy(o))}},RJe=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},NL(t,s)),[`${r}-lg`]:Object.assign({},NL(i,s)),[`${r}-sm`]:Object.assign({},NL(o,s))}},Jne=e=>Object.assign({width:e},A5(e)),IJe=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},Jne(o(n).mul(2).equal())),{[`${t}-path`]:{fill:"#bfbfbf"},[`${t}-svg`]:Object.assign(Object.assign({},Jne(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%"}}},ML=(e,t,n)=>{const{skeletonButtonCls:r}=e;return{[`${n}${r}-circle`]:{width:t,minWidth:t,borderRadius:"50%"},[`${n}${r}-round`]:{borderRadius:t}}},kL=(e,t)=>Object.assign({width:t(e).mul(2).equal(),minWidth:t(e).mul(2).equal()},A5(e)),AJe=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()},kL(r,s))},ML(e,r,n)),{[`${n}-lg`]:Object.assign({},kL(i,s))}),ML(e,i,`${n}-lg`)),{[`${n}-sm`]:Object.assign({},kL(o,s))}),ML(e,o,`${n}-sm`))},NJe=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:f,marginSM:h,borderRadius:m,titleHeight:g,blockRadius:v,paragraphLiHeight:y,controlHeightXS:b,paragraphMarginTop:_}=e;return{[t]:{display:"table",width:"100%",[`${t}-header`]:{display:"table-cell",paddingInlineEnd:f,verticalAlign:"top",[n]:Object.assign({display:"inline-block",verticalAlign:"top",background:d},wy(l)),[`${n}-circle`]:{borderRadius:"50%"},[`${n}-lg`]:Object.assign({},wy(c)),[`${n}-sm`]:Object.assign({},wy(u))},[`${t}-content`]:{display:"table-cell",width:"100%",verticalAlign:"top",[r]:{width:"100%",height:g,background:d,borderRadius:v,[`+ ${i}`]:{marginBlockStart:u}},[i]:{padding:0,"> li":{width:"100%",height:y,listStyle:"none",background:d,borderRadius:v,"+ 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:h,[`+ ${i}`]:{marginBlockStart:_}}},[`${t}${t}-element`]:Object.assign(Object.assign(Object.assign(Object.assign({display:"inline-block",width:"auto"},AJe(e)),OJe(e)),RJe(e)),IJe(e)),[`${t}${t}-block`]:{width:"100%",[o]:{width:"100%"},[a]:{width:"100%"}},[`${t}${t}-active`]:{[`
${r},
${i} > li,
${n},
${o},
${a},
${s}
`]:Object.assign({},xJe(e))}}},MJe=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}},yS=cr("Skeleton",e=>{const{componentCls:t,calc:n}=e,r=Kn(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[NJe(r)]},MJe,{deprecatedTokens:[["color","gradientFromColor"],["colorGradientEnd","gradientToColor"]]}),kJe=e=>{const{prefixCls:t,className:n,rootClassName:r,active:i,shape:o="circle",size:a="default"}=e,{getPrefixCls:s}=p.useContext(Qt),l=s("skeleton",t),[c,u,d]=yS(l),f=ur(e,["prefixCls","className"]),h=Te(l,`${l}-element`,{[`${l}-active`]:i},n,r,u,d);return c(p.createElement("div",{className:h},p.createElement(I5,Object.assign({prefixCls:`${l}-avatar`,shape:o,size:a},f))))},PJe=e=>{const{prefixCls:t,className:n,rootClassName:r,active:i,block:o=!1,size:a="default"}=e,{getPrefixCls:s}=p.useContext(Qt),l=s("skeleton",t),[c,u,d]=yS(l),f=ur(e,["prefixCls"]),h=Te(l,`${l}-element`,{[`${l}-active`]:i,[`${l}-block`]:o},n,r,u,d);return c(p.createElement("div",{className:h},p.createElement(I5,Object.assign({prefixCls:`${l}-button`,size:a},f))))},DJe="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",LJe=e=>{const{prefixCls:t,className:n,rootClassName:r,style:i,active:o}=e,{getPrefixCls:a}=p.useContext(Qt),s=a("skeleton",t),[l,c,u]=yS(s),d=Te(s,`${s}-element`,{[`${s}-active`]:o},n,r,c,u);return l(p.createElement("div",{className:d},p.createElement("div",{className:Te(`${s}-image`,n),style:i},p.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:`${s}-image-svg`},p.createElement("title",null,"Image placeholder"),p.createElement("path",{d:DJe,className:`${s}-image-path`})))))},$Je=e=>{const{prefixCls:t,className:n,rootClassName:r,active:i,block:o,size:a="default"}=e,{getPrefixCls:s}=p.useContext(Qt),l=s("skeleton",t),[c,u,d]=yS(l),f=ur(e,["prefixCls"]),h=Te(l,`${l}-element`,{[`${l}-active`]:i,[`${l}-block`]:o},n,r,u,d);return c(p.createElement("div",{className:h},p.createElement(I5,Object.assign({prefixCls:`${l}-input`,size:a},f))))},FJe=e=>{const{prefixCls:t,className:n,rootClassName:r,style:i,active:o,children:a}=e,{getPrefixCls:s}=p.useContext(Qt),l=s("skeleton",t),[c,u,d]=yS(l),f=Te(l,`${l}-element`,{[`${l}-active`]:o},u,n,r,d);return c(p.createElement("div",{className:f},p.createElement("div",{className:Te(`${l}-image`,n),style:i},a)))},BJe=(e,t)=>{const{width:n,rows:r=2}=t;if(Array.isArray(n))return n[e];if(r-1===e)return n},jJe=e=>{const{prefixCls:t,className:n,style:r,rows:i}=e,o=nt(new Array(i)).map((a,s)=>p.createElement("li",{key:s,style:{width:BJe(s,e)}}));return p.createElement("ul",{className:Te(t,n),style:r},o)},HJe=e=>{let{prefixCls:t,className:n,width:r,style:i}=e;return p.createElement("h3",{className:Te(t,n),style:Object.assign({width:r},i)})};function PL(e){return e&&typeof e=="object"?e:{}}function UJe(e,t){return e&&!t?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}function zJe(e,t){return!e&&t?{width:"38%"}:e&&t?{width:"50%"}:{}}function VJe(e,t){const n={};return(!e||!t)&&(n.width="61%"),!e&&t?n.rows=3:n.rows=2,n}const Ch=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:f,direction:h,skeleton:m}=p.useContext(Qt),g=f("skeleton",t),[v,y,b]=yS(g);if(n||!("loading"in e)){const _=!!s,E=!!l,w=!!c;let S;if(_){const x=Object.assign(Object.assign({prefixCls:`${g}-avatar`},UJe(E,w)),PL(s));S=p.createElement("div",{className:`${g}-header`},p.createElement(I5,Object.assign({},x)))}let C;if(E||w){let x;if(E){const N=Object.assign(Object.assign({prefixCls:`${g}-title`},zJe(_,w)),PL(l));x=p.createElement(HJe,Object.assign({},N))}let O;if(w){const N=Object.assign(Object.assign({prefixCls:`${g}-paragraph`},VJe(_,E)),PL(c));O=p.createElement(jJe,Object.assign({},N))}C=p.createElement("div",{className:`${g}-content`},x,O)}const T=Te(g,{[`${g}-with-avatar`]:_,[`${g}-active`]:u,[`${g}-rtl`]:h==="rtl",[`${g}-round`]:d},m==null?void 0:m.className,r,i,y,b);return v(p.createElement("div",{className:T,style:Object.assign(Object.assign({},m==null?void 0:m.style),o)},S,C))}return a??null};Ch.Button=PJe;Ch.Avatar=kJe;Ch.Input=$Je;Ch.Image=LJe;Ch.Node=FJe;function ere(){}const GJe=p.createContext({add:ere,remove:ere});function uEe(e){const t=p.useContext(GJe),n=p.useRef(null);return Yn(i=>{if(i){const o=e?i.querySelector(e):i;t.add(o),n.current=o}else t.remove(n.current)})}const tre=()=>{const{cancelButtonProps:e,cancelTextLocale:t,onCancel:n}=p.useContext(r2);return ce.createElement($n,Object.assign({onClick:n},e),t)},nre=()=>{const{confirmLoading:e,okButtonProps:t,okType:n,okTextLocale:r,onOk:i}=p.useContext(r2);return ce.createElement($n,Object.assign({},tq(n),{loading:e,onClick:i},t),r)};function dEe(e,t){return ce.createElement("span",{className:`${e}-close-x`},t||ce.createElement(Yf,{className:`${e}-close-icon`}))}const fEe=e=>{const{okText:t,okType:n="primary",cancelText:r,confirmLoading:i,onOk:o,onCancel:a,okButtonProps:s,cancelButtonProps:l,footer:c}=e,[u]=ds("Modal",k_e()),d=t||(u==null?void 0:u.okText),f=r||(u==null?void 0:u.cancelText),h={confirmLoading:i,okButtonProps:s,cancelButtonProps:l,okTextLocale:d,cancelTextLocale:f,okType:n,onOk:o,onCancel:a},m=ce.useMemo(()=>h,nt(Object.values(h)));let g;return typeof c=="function"||typeof c>"u"?(g=ce.createElement(ce.Fragment,null,ce.createElement(tre,null),ce.createElement(nre,null)),typeof c=="function"&&(g=c(g,{OkBtn:nre,CancelBtn:tre})),g=ce.createElement(qSe,{value:m},g)):g=c,ce.createElement(qW,{disabled:!1},g)},WJe=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"}}}},qJe=e=>{const{componentCls:t}=e;return{[t]:{position:"relative",maxWidth:"100%",minHeight:1}}},YJe=(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},yH=(e,t)=>YJe(e,t),KJe=(e,t,n)=>({[`@media (min-width: ${Ae(t)})`]:Object.assign({},yH(e,n))}),QJe=()=>({}),XJe=()=>({}),ZJe=cr("Grid",WJe,QJe),pEe=e=>({xs:e.screenXSMin,sm:e.screenSMMin,md:e.screenMDMin,lg:e.screenLGMin,xl:e.screenXLMin,xxl:e.screenXXLMin}),JJe=cr("Grid",e=>{const t=Kn(e,{gridColumns:24}),n=pEe(t);return delete n.xs,[qJe(t),yH(t,""),yH(t,"-xs"),Object.keys(n).map(r=>KJe(t,n[r],`-${r}`)).reduce((r,i)=>Object.assign(Object.assign({},r),i),{})]},XJe);function rre(e){return{position:e,inset:0}}const hEe=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({},rre("fixed")),{zIndex:e.zIndexPopupBase,height:"100%",backgroundColor:e.colorBgMask,pointerEvents:"none",[`${t}-hidden`]:{display:"none"}}),[`${t}-wrap`]:Object.assign(Object.assign({},rre("fixed")),{zIndex:e.zIndexPopupBase,overflow:"auto",outline:0,WebkitOverflowScrolling:"touch"})}},{[`${t}-root`]:iq(e)}]},eet=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:`${Ae(e.marginXS)} auto`},[`${t}-centered`]:{[t]:{flex:1}}}}},{[t]:Object.assign(Object.assign({},gr(e)),{pointerEvents:"none",position:"relative",top:100,width:"auto",maxWidth:`calc(100vw - ${Ae(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:Ae(e.modalCloseBtnSize),justifyContent:"center",textTransform:"none",textRendering:"auto"},"&:disabled":{pointerEvents:"none"},"&:hover":{color:e.modalCloseIconHoverColor,backgroundColor:e.colorBgTextHover,textDecoration:"none"},"&:active":{backgroundColor:e.colorBgTextActive}},Xs(e)),[`${t}-header`]:{color:e.colorText,background:e.headerBg,borderRadius:`${Ae(e.borderRadiusLG)} ${Ae(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:`${Ae(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"}}}]},tet=e=>{const{componentCls:t}=e;return{[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:"rtl",[`${t}-confirm-body`]:{direction:"rtl"}}}}},net=e=>{const{componentCls:t}=e,n=pEe(e);delete n.xs;const r=Object.keys(n).map(i=>({[`@media (min-width: ${Ae(n[i])})`]:{width:`var(--${t.replace(".","")}-${i}-width)`}}));return{[`${t}-root`]:{[t]:[{width:`var(--${t.replace(".","")}-xs-width)`}].concat(nt(r))}}},mEe=e=>{const t=e.padding,n=e.fontSizeHeading5,r=e.lineHeightHeading5;return Kn(e,{modalHeaderHeight:e.calc(e.calc(r).mul(n).equal()).add(e.calc(t).mul(2).equal()).equal(),modalFooterBorderColorSplit:e.colorSplit,modalFooterBorderStyle:e.lineType,modalFooterBorderWidth:e.lineWidth,modalCloseIconColor:e.colorIcon,modalCloseIconHoverColor:e.colorIconHover,modalCloseBtnSize:e.controlHeight,modalConfirmIconSize:e.fontHeight,modalTitleHeight:e.calc(e.titleFontSize).mul(e.titleLineHeight).equal()})},gEe=e=>({footerBg:"transparent",headerBg:e.colorBgElevated,titleLineHeight:e.lineHeightHeading5,titleFontSize:e.fontSizeHeading5,contentBg:e.colorBgElevated,titleColor:e.colorTextHeading,contentPadding:e.wireframe?0:`${Ae(e.paddingMD)} ${Ae(e.paddingContentHorizontalLG)}`,headerPadding:e.wireframe?`${Ae(e.padding)} ${Ae(e.paddingLG)}`:0,headerBorderBottom:e.wireframe?`${Ae(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:"none",headerMarginBottom:e.wireframe?0:e.marginXS,bodyPadding:e.wireframe?e.paddingLG:0,footerPadding:e.wireframe?`${Ae(e.paddingXS)} ${Ae(e.padding)}`:0,footerBorderTop:e.wireframe?`${Ae(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:"none",footerBorderRadius:e.wireframe?`0 0 ${Ae(e.borderRadiusLG)} ${Ae(e.borderRadiusLG)}`:0,footerMarginTop:e.wireframe?0:e.marginSM,confirmBodyPadding:e.wireframe?`${Ae(e.padding*2)} ${Ae(e.padding*2)} ${Ae(e.paddingLG)}`:0,confirmIconMarginInlineEnd:e.wireframe?e.margin:e.marginSM,confirmBtnsMarginTop:e.wireframe?e.marginLG:e.marginSM}),vEe=cr("Modal",e=>{const t=mEe(e);return[eet(t),tet(t),hEe(t),vS(t,"zoom"),net(t)]},gEe,{unitless:{titleLineHeight:!0}});var ret=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 _H;const iet=e=>{_H={x:e.pageX,y:e.pageY},setTimeout(()=>{_H=null},100)};wJe()&&document.documentElement.addEventListener("click",iet,!0);const bEe=e=>{var t;const{getPopupContainer:n,getPrefixCls:r,direction:i,modal:o}=p.useContext(Qt),a=ae=>{const{onCancel:K}=e;K==null||K(ae)},s=ae=>{const{onOk:K}=e;K==null||K(ae)},{prefixCls:l,className:c,rootClassName:u,open:d,wrapClassName:f,centered:h,getContainer:m,focusTriggerAfterClose:g=!0,style:v,visible:y,width:b=520,footer:_,classNames:E,styles:w,children:S,loading:C}=e,T=ret(e,["prefixCls","className","rootClassName","open","wrapClassName","centered","getContainer","focusTriggerAfterClose","style","visible","width","footer","classNames","styles","children","loading"]),x=r("modal",l),O=r(),N=ui(x),[I,M,F]=vEe(x,N),k=Te(f,{[`${x}-centered`]:!!h,[`${x}-wrap-rtl`]:i==="rtl"}),B=_!==null&&!C?p.createElement(fEe,Object.assign({},e,{onOk:s,onCancel:a})):null,[A,P,z]=mq(m_(e),m_(o),{closable:!0,closeIcon:p.createElement(Yf,{className:`${x}-close-icon`}),closeIconRender:ae=>dEe(x,ae)}),L=uEe(`.${x}-content`),[V,j]=Ou("Modal",T.zIndex),[U,J]=p.useMemo(()=>b&&typeof b=="object"?[void 0,b]:[b,void 0],[b]),te=p.useMemo(()=>{const ae={};return J&&Object.keys(J).forEach(K=>{const Q=J[K];Q!==void 0&&(ae[`--${x}-${K}-width`]=typeof Q=="number"?`${Q}px`:Q)}),ae},[J]);return I(p.createElement(Rd,{form:!0,space:!0},p.createElement(Jx.Provider,{value:j},p.createElement(uq,Object.assign({width:U},T,{zIndex:V,getContainer:m===void 0?n:m,prefixCls:x,rootClassName:Te(M,u,F,N),footer:B,visible:d??y,mousePosition:(t=T.mousePosition)!==null&&t!==void 0?t:_H,onClose:a,closable:A&&{disabled:z,closeIcon:P},closeIcon:P,focusTriggerAfterClose:g,transitionName:Va(O,"zoom",e.transitionName),maskTransitionName:Va(O,"fade",e.maskTransitionName),className:Te(M,c,o==null?void 0:o.className),style:Object.assign(Object.assign(Object.assign({},o==null?void 0:o.style),v),te),classNames:Object.assign(Object.assign(Object.assign({},o==null?void 0:o.classNames),E),{wrapper:Te(k,E==null?void 0:E.wrapper)}),styles:Object.assign(Object.assign({},o==null?void 0:o.styles),w),panelRef:L}),C?p.createElement(Ch,{active:!0,title:!1,paragraph:{rows:4},className:`${x}-body-skeleton`}):S))))},oet=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({},wd()),[`&${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% - ${Ae(e.marginSM)})`},[`${e.iconCls} + ${u}-paragraph`]:{maxWidth:`calc(100% - ${Ae(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}}},aet=hS(["Modal","confirm"],e=>{const t=mEe(e);return[oet(t)]},gEe,{order:-1e3});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 yEe(e){const{prefixCls:t,icon:n,okText:r,cancelText:i,confirmPrefixCls:o,type:a,okCancel:s,footer:l,locale:c}=e,u=set(e,["prefixCls","icon","okText","cancelText","confirmPrefixCls","type","okCancel","footer","locale"]);let d=n;if(!n&&n!==null)switch(a){case"info":d=p.createElement(h5,null);break;case"success":d=p.createElement(_0,null);break;case"error":d=p.createElement(qf,null);break;default:d=p.createElement(Rg,null)}const f=s??a==="confirm",h=e.autoFocusButton===null?!1:e.autoFocusButton||"ok",[m]=ds("Modal"),g=c||m,v=r||(f?g==null?void 0:g.okText:g==null?void 0:g.justOkText),y=i||(g==null?void 0:g.cancelText),b=Object.assign({autoFocusButton:h,cancelTextLocale:y,okTextLocale:v,mergedOkCancel:f},u),_=p.useMemo(()=>b,nt(Object.values(b))),E=p.createElement(p.Fragment,null,p.createElement(Nne,null),p.createElement(Mne,null)),w=e.title!==void 0&&e.title!==null,S=`${o}-body`;return p.createElement("div",{className:`${o}-body-wrapper`},p.createElement("div",{className:Te(S,{[`${S}-has-title`]:w})},d,p.createElement("div",{className:`${o}-paragraph`},w&&p.createElement("span",{className:`${o}-title`},e.title),p.createElement("div",{className:`${o}-content`},e.content))),l===void 0||typeof l=="function"?p.createElement(qSe,{value:_},p.createElement("div",{className:`${o}-btns`},typeof l=="function"?l(E,{OkBtn:Mne,CancelBtn:Nne}):E)):l,p.createElement(aet,{prefixCls:t}))}const cet=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,f=`${o}-confirm`,h=e.width||416,m=e.style||{},g=e.mask===void 0?!0:e.mask,v=e.maskClosable===void 0?!1:e.maskClosable,y=Te(f,`${f}-${e.type}`,{[`${f}-rtl`]:i==="rtl"},e.className),[,b]=Go(),_=p.useMemo(()=>n!==void 0?n:b.zIndexPopupBase+ZW,[n,b]);return p.createElement(bEe,Object.assign({},e,{className:y,wrapClassName:Te({[`${f}-centered`]:!!e.centered},a),onCancel:()=>{t==null||t({triggerCancel:!0}),u==null||u(!1)},title:"",footer:null,transitionName:Va(s||"","zoom",e.transitionName),maskTransitionName:Va(s||"","fade",e.maskTransitionName),mask:g,maskClosable:v,style:m,styles:Object.assign({body:l,mask:r},d),width:h,zIndex:_,closable:c}),p.createElement(yEe,Object.assign({},e,{confirmPrefixCls:f})))},_Ee=e=>{const{rootPrefixCls:t,iconPrefixCls:n,direction:r,theme:i}=e;return p.createElement(Ln,{prefixCls:t,iconPrefixCls:n,direction:r,theme:i},p.createElement(cet,Object.assign({},e)))},j1=[];let SEe="";function EEe(){return SEe}const uet=e=>{var t,n;const{prefixCls:r,getContainer:i,direction:o}=e,a=k_e(),s=p.useContext(Qt),l=EEe()||s.getPrefixCls(),c=r||`${l}-modal`;let u=i;return u===!1&&(u=void 0),ce.createElement(_Ee,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 a2(e){const t=pSe(),n=document.createDocumentFragment();let r=Object.assign(Object.assign({},e),{close:l,open:!0}),i,o;function a(){for(var u,d=arguments.length,f=new Array(d),h=0;h<d;h++)f[h]=arguments[h];if(f.some(v=>v==null?void 0:v.triggerCancel)){var g;(u=e.onCancel)===null||u===void 0||(g=u).call.apply(g,[e,()=>{}].concat(nt(f.slice(1))))}for(let v=0;v<j1.length;v++)if(j1[v]===l){j1.splice(v,1);break}o()}function s(u){clearTimeout(i),i=setTimeout(()=>{const d=t.getPrefixCls(void 0,EEe()),f=t.getIconPrefixCls(),h=t.getTheme(),m=ce.createElement(uet,Object.assign({},u));o=eq()(ce.createElement(Ln,{prefixCls:d,iconPrefixCls:f,theme:h},t.holderRender?t.holderRender(m):m),n)})}function l(){for(var u=arguments.length,d=new Array(u),f=0;f<u;f++)d[f]=arguments[f];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),j1.push(l),{destroy:l,update:c}}function CEe(e){return Object.assign(Object.assign({},e),{type:"warning"})}function wEe(e){return Object.assign(Object.assign({},e),{type:"info"})}function TEe(e){return Object.assign(Object.assign({},e),{type:"success"})}function xEe(e){return Object.assign(Object.assign({},e),{type:"error"})}function OEe(e){return Object.assign(Object.assign({},e),{type:"confirm"})}function det(e){let{rootPrefixCls:t}=e;SEe=t}var fet=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 pet=(e,t)=>{var n,{afterClose:r,config:i}=e,o=fet(e,["afterClose","config"]);const[a,s]=p.useState(!0),[l,c]=p.useState(i),{direction:u,getPrefixCls:d}=p.useContext(Qt),f=d("modal"),h=d(),m=()=>{var b;r(),(b=l.afterClose)===null||b===void 0||b.call(l)},g=function(){var b;s(!1);for(var _=arguments.length,E=new Array(_),w=0;w<_;w++)E[w]=arguments[w];if(E.some(T=>T==null?void 0:T.triggerCancel)){var C;(b=l.onCancel)===null||b===void 0||(C=b).call.apply(C,[l,()=>{}].concat(nt(E.slice(1))))}};p.useImperativeHandle(t,()=>({destroy:g,update:b=>{c(_=>Object.assign(Object.assign({},_),b))}}));const v=(n=l.okCancel)!==null&&n!==void 0?n:l.type==="confirm",[y]=ds("Modal",Ec.Modal);return p.createElement(_Ee,Object.assign({prefixCls:f,rootPrefixCls:h},l,{close:g,open:a,afterClose:m,okText:l.okText||(v?y==null?void 0:y.okText:y==null?void 0:y.justOkText),direction:l.direction||u,cancelText:l.cancelText||(y==null?void 0:y.cancelText)},o))},het=p.forwardRef(pet);let ire=0;const met=p.memo(p.forwardRef((e,t)=>{const[n,r]=oQe();return p.useImperativeHandle(t,()=>({patchElement:r}),[]),p.createElement(p.Fragment,null,n)}));function REe(){const e=p.useRef(null),[t,n]=p.useState([]);p.useEffect(()=>{t.length&&(nt(t).forEach(a=>{a()}),n([]))},[t]);const r=p.useCallback(o=>function(s){var l;ire+=1;const c=p.createRef();let u;const d=new Promise(v=>{u=v});let f=!1,h;const m=p.createElement(het,{key:`modal-${ire}`,config:o(s),ref:c,afterClose:()=>{h==null||h()},isSilent:()=>f,onConfirm:v=>{u(v)}});return h=(l=e.current)===null||l===void 0?void 0:l.patchElement(m),h&&j1.push(h),{destroy:()=>{function v(){var y;(y=c.current)===null||y===void 0||y.destroy()}c.current?v():n(y=>[].concat(nt(y),[v]))},update:v=>{function y(){var b;(b=c.current)===null||b===void 0||b.update(v)}c.current?y():n(b=>[].concat(nt(b),[y]))},then:v=>(f=!0,d.then(v))}},[]);return[p.useMemo(()=>({info:r(wEe),success:r(TEe),error:r(xEe),warning:r(CEe),confirm:r(OEe)}),[]),p.createElement(met,{key:"modal-holder",ref:e})]}const get=e=>{const{componentCls:t,notificationMarginEdge:n,animationMaxHeight:r}=e,i=`${t}-notice`,o=new fr("antNotificationFadeIn",{"0%":{transform:"translate3d(100%, 0, 0)",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",opacity:1}}),a=new fr("antNotificationTopFadeIn",{"0%":{top:-r,opacity:0},"100%":{top:0,opacity:1}}),s=new fr("antNotificationBottomFadeIn",{"0%":{bottom:e.calc(r).mul(-1).equal(),opacity:0},"100%":{bottom:0,opacity:1}}),l=new fr("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}}}}},vet=["top","topLeft","topRight","bottom","bottomLeft","bottomRight"],bet={topLeft:"left",topRight:"right",bottomLeft:"left",bottomRight:"right",top:"left",bottom:"left"},yet=(e,t)=>{const{componentCls:n}=e;return{[`${n}-${t}`]:{[`&${n}-stack > ${n}-notice-wrapper`]:{[t.startsWith("top")?"top":"bottom"]:0,[bet[t]]:{value:0,_skip_check_:!0}}}}},_et=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)},Eet=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)},Cet=e=>{const{componentCls:t}=e;return Object.assign({[`${t}-stack`]:{[`& > ${t}-notice-wrapper`]:Object.assign({transition:`all ${e.motionDurationSlow}, backdrop-filter 0s`,position:"absolute"},_et(e))},[`${t}-stack:not(${t}-stack-expanded)`]:{[`& > ${t}-notice-wrapper`]:Object.assign({},Eet(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"}}}},vet.map(n=>yet(e,n)).reduce((n,r)=>Object.assign(Object.assign({},n),r),{}))},wet=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:f,notificationPadding:h,notificationMarginEdge:m,notificationProgressBg:g,notificationProgressHeight:v,fontSize:y,lineHeight:b,width:_,notificationIconSize:E,colorText:w}=e,S=`${n}-notice`;return{position:"relative",marginBottom:o,marginInlineStart:"auto",background:f,borderRadius:a,boxShadow:r,[S]:{padding:h,width:_,maxWidth:`calc(100vw - ${Ae(e.calc(m).mul(2).equal())})`,overflow:"hidden",lineHeight:b,wordWrap:"break-word"},[`${S}-message`]:{marginBottom:e.marginXS,color:d,fontSize:i,lineHeight:e.lineHeightLG},[`${S}-description`]:{fontSize:y,color:w},[`${S}-closable ${S}-message`]:{paddingInlineEnd:e.paddingLG},[`${S}-with-icon ${S}-message`]:{marginBottom:e.marginXS,marginInlineStart:e.calc(e.marginSM).add(E).equal(),fontSize:i},[`${S}-with-icon ${S}-description`]:{marginInlineStart:e.calc(e.marginSM).add(E).equal(),fontSize:y},[`${S}-icon`]:{position:"absolute",fontSize:E,lineHeight:1,[`&-success${t}`]:{color:s},[`&-info${t}`]:{color:l},[`&-warning${t}`]:{color:c},[`&-error${t}`]:{color:u}},[`${S}-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}},Xs(e)),[`${S}-progress`]:{position:"absolute",display:"block",appearance:"none",WebkitAppearance:"none",inlineSize:`calc(100% - ${Ae(a)} * 2)`,left:{_skip_check_:!0,value:a},right:{_skip_check_:!0,value:a},bottom:0,blockSize:v,border:0,"&, &::-webkit-progress-bar":{borderRadius:a,backgroundColor:"rgba(0, 0, 0, 0.04)"},"&::-moz-progress-bar":{background:g},"&::-webkit-progress-value":{borderRadius:a,background:g}},[`${S}-btn`]:{float:"right",marginTop:e.marginSM}}},Tet=e=>{const{componentCls:t,notificationMarginBottom:n,notificationMarginEdge:r,motionDurationMid:i,motionEaseInOut:o}=e,a=`${t}-notice`,s=new fr("antNotificationFadeOut",{"0%":{maxHeight:e.animationMaxHeight,marginBottom:n},"100%":{maxHeight:0,marginBottom:0,paddingTop:0,paddingBottom:0,opacity:0}});return[{[t]:Object.assign(Object.assign({},gr(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({},wet(e))}}]},xet=e=>({zIndexPopup:e.zIndexPopupBase+ZW+50,width:384}),Oet=e=>{const t=e.paddingMD,n=e.paddingLG;return Kn(e,{notificationBg:e.colorBgElevated,notificationPaddingVertical:t,notificationPaddingHorizontal:n,notificationIconSize:e.calc(e.fontSizeLG).mul(e.lineHeightLG).equal(),notificationCloseButtonSize:e.calc(e.controlHeightLG).mul(.55).equal(),notificationMarginBottom:e.margin,notificationPadding:`${Ae(e.paddingMD)} ${Ae(e.paddingContentHorizontalLG)}`,notificationMarginEdge:e.marginLG,animationMaxHeight:150,notificationStackLayer:3,notificationProgressHeight:2,notificationProgressBg:`linear-gradient(90deg, ${e.colorPrimaryBorderHover}, ${e.colorPrimary})`})},Ret=cr("Notification",e=>{const t=Oet(e);return[Tet(t),get(t),Cet(t)]},xet);function IEe(e,t){return t===null||t===!1?null:t||p.createElement(Yf,{className:`${e}-close-icon`})}const Iet={success:_0,info:h5,error:qf,warning:Rg},Aet=e=>{const{prefixCls:t,icon:n,type:r,message:i,description:o,btn:a,role:s="alert"}=e;let l=null;return n?l=p.createElement("span",{className:`${t}-icon`},n):r&&(l=p.createElement(Iet[r]||null,{className:Te(`${t}-icon`,`${t}-icon-${r}`)})),p.createElement("div",{className:Te({[`${t}-with-icon`]:l}),role:s},l,p.createElement("div",{className:`${t}-message`},i),p.createElement("div",{className:`${t}-description`},o),a&&p.createElement("div",{className:`${t}-btn`},a))};function Net(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 Met(e){return{motionName:`${e}-fade`}}var ket=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 ore=24,Pet=4.5,Det="topRight",Let=e=>{let{children:t,prefixCls:n}=e;const r=ui(n),[i,o,a]=Ret(n,r);return i(ce.createElement(wSe,{classNames:{list:Te(o,a,r)}},t))},$et=(e,t)=>{let{prefixCls:n,key:r}=t;return ce.createElement(Let,{prefixCls:n,key:r},e)},Fet=ce.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:f}=e,{getPrefixCls:h,getPopupContainer:m,notification:g,direction:v}=p.useContext(Qt),[,y]=Go(),b=i||h("notification"),_=T=>Net(T,n??ore,r??ore),E=()=>Te({[`${b}-rtl`]:s??v==="rtl"}),w=()=>Met(b),[S,C]=TSe({prefixCls:b,style:_,className:E,motion:w,closable:!0,closeIcon:IEe(b),duration:u??Pet,getContainer:()=>(o==null?void 0:o())||(m==null?void 0:m())||document.body,maxCount:a,pauseOnHover:d,showProgress:f,onAllRemoved:l,renderNotifications:$et,stack:c===!1?!1:{threshold:typeof c=="object"?c==null?void 0:c.threshold:void 0,offset:8,gap:y.margin}});return ce.useImperativeHandle(t,()=>Object.assign(Object.assign({},S),{prefixCls:b,notification:g})),C});function Bet(e){const t=ce.useRef(null);return Wf(),[ce.useMemo(()=>{const r=s=>{var l;if(!t.current)return;const{open:c,prefixCls:u,notification:d}=t.current,f=`${u}-notice`,{message:h,description:m,icon:g,type:v,btn:y,className:b,style:_,role:E="alert",closeIcon:w,closable:S}=s,C=ket(s,["message","description","icon","type","btn","className","style","role","closeIcon","closable"]),T=IEe(f,typeof w<"u"?w: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:Det},C),{content:ce.createElement(Aet,{prefixCls:f,icon:g,type:v,message:h,description:m,btn:y,role:E}),className:Te(v&&`${f}-${v}`,b,d==null?void 0:d.className),style:Object.assign(Object.assign({},d==null?void 0:d.style),_),closeIcon:T,closable:S??!!T}))},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},[]),ce.createElement(Fet,Object.assign({key:"notification-holder"},e,{ref:t}))]}function jet(e){return Bet(e)}const SH=ce.createContext({}),AEe=ce.createContext({message:{},notification:{},modal:{}}),Het=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"}}}},Uet=()=>({}),zet=cr("App",Het,Uet),Vet=()=>ce.useContext(AEe),N5=e=>{const{prefixCls:t,children:n,className:r,rootClassName:i,message:o,notification:a,style:s,component:l="div"}=e,{direction:c,getPrefixCls:u}=p.useContext(Qt),d=u("app",t),[f,h,m]=zet(d),g=Te(h,d,r,i,m,{[`${d}-rtl`]:c==="rtl"}),v=p.useContext(SH),y=ce.useMemo(()=>({message:Object.assign(Object.assign({},v.message),o),notification:Object.assign(Object.assign({},v.notification),a)}),[o,a,v.message,v.notification]),[b,_]=ASe(y.message),[E,w]=jet(y.notification),[S,C]=REe(),T=ce.useMemo(()=>({message:b,notification:E,modal:S}),[b,E,S]);Wf()(!(m&&l===!1),"usage","When using cssVar, ensure `component` is assigned a valid React component string.");const x=l===!1?ce.Fragment:l,O={className:g,style:s};return f(ce.createElement(AEe.Provider,{value:T},ce.createElement(SH.Provider,{value:y},ce.createElement(x,Object.assign({},l===!1?void 0:O),C,_,w,n))))};N5.useApp=Vet;function NEe(e){return t=>p.createElement(Ln,{theme:{token:{motion:!1,zIndexPopupBase:0}}},p.createElement(e,Object.assign({},t)))}const Ig=(e,t,n,r,i)=>NEe(a=>{const{prefixCls:s,style:l}=a,c=p.useRef(null),[u,d]=p.useState(0),[f,h]=p.useState(0),[m,g]=Pn(!1,{value:a.open}),{getPrefixCls:v}=p.useContext(Qt),y=v(r||"select",s);p.useEffect(()=>{if(g(!0),typeof ResizeObserver<"u"){const E=new ResizeObserver(S=>{const C=S[0].target;d(C.offsetHeight+8),h(C.offsetWidth)}),w=setInterval(()=>{var S;const C=i?`.${i(y)}`:`.${y}-dropdown`,T=(S=c.current)===null||S===void 0?void 0:S.querySelector(C);T&&(clearInterval(w),E.observe(T))},10);return()=>{clearInterval(w),E.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 _={paddingBottom:u,position:"relative",minWidth:f};return p.createElement("div",{ref:c,style:_},p.createElement(e,Object.assign({},b)))}),M5=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 k5=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 p.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:p.createElement("span",{className:Te(n.split(/\s+/).map(function(c){return"".concat(c,"-icon")}))},o))},Get=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=ce.useMemo(function(){if(Gt(i)==="object")return i.clearIcon;if(o)return o},[i,o]),u=ce.useMemo(function(){return!!(!a&&i&&(r.length||s)&&!(l==="combobox"&&s===""))},[i,a,r.length,s,l]);return{allowClear:u,clearIcon:ce.createElement(k5,{className:"".concat(t,"-clear"),onMouseDown:n,customizeIcon:c},"×")}},MEe=p.createContext(null);function gq(){return p.useContext(MEe)}function Wet(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,t=p.useState(!1),n=Ie(t,2),r=n[0],i=n[1],o=p.useRef(null),a=function(){window.clearTimeout(o.current)};p.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 kEe(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,t=p.useRef(null),n=p.useRef(null);p.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 qet(e,t,n,r){var i=p.useRef(null);i.current={open:t,triggerOpen:n,customizedTrigger:r},p.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 Yet(e){return e&&![dt.ESC,dt.SHIFT,dt.BACKSPACE,dt.TAB,dt.WIN_KEY,dt.ALT,dt.META,dt.WIN_KEY_RIGHT,dt.CTRL,dt.SEMICOLON,dt.EQUALS,dt.CAPS_LOCK,dt.CONTEXT_MENU,dt.F1,dt.F2,dt.F3,dt.F4,dt.F5,dt.F6,dt.F7,dt.F8,dt.F9,dt.F10,dt.F11,dt.F12].includes(e)}var Ket=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],X0=void 0;function Qet(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,f=e.children,h=e.display,m=e.order,g=e.component,v=g===void 0?"div":g,y=Dt(e,Ket),b=a&&!h;function _(T){l(c,T)}p.useEffect(function(){return function(){_(null)}},[]);var E=o&&i!==X0?o(i):f,w;r||(w={opacity:b?0:1,height:b?0:X0,overflowY:b?"hidden":X0,order:a?m:X0,pointerEvents:b?"none":X0,position:b?"absolute":X0});var S={};b&&(S["aria-hidden"]=!0);var C=p.createElement(v,Ke({className:Te(!r&&n,u),style:W(W({},w),d)},S,y,{ref:t}),E);return a&&(C=p.createElement(Ta,{onResize:function(x){var O=x.offsetWidth;_(O)},disabled:s},C)),C}var dw=p.forwardRef(Qet);dw.displayName="Item";function Xet(e){if(typeof MessageChannel>"u")rr(e);else{var t=new MessageChannel;t.port1.onmessage=function(){return e()},t.port2.postMessage(void 0)}}function Zet(){var e=p.useRef(null),t=function(r){e.current||(e.current=[],Xet(function(){Ml.unstable_batchedUpdates(function(){e.current.forEach(function(i){i()}),e.current=null})})),e.current.push(r)};return t}function DE(e,t){var n=p.useState(t),r=Ie(n,2),i=r[0],o=r[1],a=Yn(function(s){e(function(){o(s)})});return[i,a]}var jM=ce.createContext(null),Jet=["component"],ett=["className"],ttt=["className"],ntt=function(t,n){var r=p.useContext(jM);if(!r){var i=t.component,o=i===void 0?"div":i,a=Dt(t,Jet);return p.createElement(o,Ke({},a,{ref:n}))}var s=r.className,l=Dt(r,ett),c=t.className,u=Dt(t,ttt);return p.createElement(jM.Provider,{value:null},p.createElement(dw,Ke({ref:n,className:Te(s,c)},l,u)))},PEe=p.forwardRef(ntt);PEe.displayName="RawItem";var rtt=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],DEe="responsive",LEe="invalidate";function itt(e){return"+ ".concat(e.length," ...")}function ott(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,f=e.style,h=e.className,m=e.maxCount,g=e.renderRest,v=e.renderRawRest,y=e.suffix,b=e.component,_=b===void 0?"div":b,E=e.itemComponent,w=e.onVisibleChange,S=Dt(e,rtt),C=d==="full",T=Zet(),x=DE(T,null),O=Ie(x,2),N=O[0],I=O[1],M=N||0,F=DE(T,new Map),k=Ie(F,2),B=k[0],A=k[1],P=DE(T,0),z=Ie(P,2),L=z[0],V=z[1],j=DE(T,0),U=Ie(j,2),J=U[0],te=U[1],ae=DE(T,0),K=Ie(ae,2),Q=K[0],oe=K[1],ge=p.useState(null),fe=Ie(ge,2),ue=fe[0],le=fe[1],ve=p.useState(null),ne=Ie(ve,2),pe=ne[0],be=ne[1],Re=p.useMemo(function(){return pe===null&&C?Number.MAX_SAFE_INTEGER:pe||0},[pe,N]),Se=p.useState(!1),Ce=Ie(Se,2),ye=Ce[0],he=Ce[1],_e="".concat(r,"-item"),Oe=Math.max(L,J),De=m===DEe,Y=o.length&&De,D=m===LEe,G=Y||typeof m=="number"&&o.length>m,ie=p.useMemo(function(){var Tt=o;return Y?N===null&&C?Tt=o:Tt=o.slice(0,Math.min(o.length,M/u)):typeof m=="number"&&(Tt=o.slice(0,m)),Tt},[o,u,N,m,Y]),me=p.useMemo(function(){return Y?o.slice(Re+1):o.slice(ie.length)},[o,ie,Y,Re]),se=p.useCallback(function(Tt,Ot){var Ut;return typeof l=="function"?l(Tt):(Ut=l&&(Tt==null?void 0:Tt[l]))!==null&&Ut!==void 0?Ut:Ot},[l]),Be=p.useCallback(a||function(Tt){return Tt},[a]);function Ve(Tt,Ot,Ut){pe===Tt&&(Ot===void 0||Ot===ue)||(be(Tt),Ut||(he(Tt<o.length-1),w==null||w(Tt)),Ot!==void 0&&le(Ot))}function re(Tt,Ot){I(Ot.clientWidth)}function Me(Tt,Ot){A(function(Ut){var ze=new Map(Ut);return Ot===null?ze.delete(Tt):ze.set(Tt,Ot),ze})}function je(Tt,Ot){te(Ot),V(J)}function ke(Tt,Ot){oe(Ot)}function Ge(Tt){return B.get(se(ie[Tt],Tt))}sr(function(){if(M&&typeof Oe=="number"&&ie){var Tt=Q,Ot=ie.length,Ut=Ot-1;if(!Ot){Ve(0,null);return}for(var ze=0;ze<Ot;ze+=1){var Ye=Ge(ze);if(C&&(Ye=Ye||0),Ye===void 0){Ve(ze-1,void 0,!0);break}if(Tt+=Ye,Ut===0&&Tt<=M||ze===Ut-1&&Tt+Ge(Ut)<=M){Ve(Ut,null);break}else if(Tt+Oe>M){Ve(ze-1,Tt-Ye-Q+J);break}}y&&Ge(0)+Q>M&&le(null)}},[M,B,J,Q,se,ie]);var Ue=ye&&!!me.length,qe={};ue!==null&&Y&&(qe={position:"absolute",left:ue,top:0});var At={prefixCls:_e,responsive:Y,component:E,invalidate:D},at=s?function(Tt,Ot){var Ut=se(Tt,Ot);return p.createElement(jM.Provider,{key:Ut,value:W(W({},At),{},{order:Ot,item:Tt,itemKey:Ut,registerSize:Me,display:Ot<=Re})},s(Tt,Ot))}:function(Tt,Ot){var Ut=se(Tt,Ot);return p.createElement(dw,Ke({},At,{order:Ot,key:Ut,item:Tt,renderItem:Be,itemKey:Ut,registerSize:Me,display:Ot<=Re}))},pt,Ct={order:Ue?Re:Number.MAX_SAFE_INTEGER,className:"".concat(_e,"-rest"),registerSize:je,display:Ue};if(v)v&&(pt=p.createElement(jM.Provider,{value:W(W({},At),Ct)},v(me)));else{var bt=g||itt;pt=p.createElement(dw,Ke({},At,Ct),typeof bt=="function"?bt(me):bt)}var Vt=p.createElement(_,Ke({className:Te(!D&&r,h),style:f,ref:t},S),ie.map(at),G?pt:null,y&&p.createElement(dw,Ke({},At,{responsive:De,responsiveDisabled:!Y,order:Re,className:"".concat(_e,"-suffix"),registerSize:ke,display:!0,style:qe}),y));return De&&(Vt=p.createElement(Ta,{onResize:re,disabled:!Y},Vt)),Vt}var pd=p.forwardRef(ott);pd.displayName="Overflow";pd.Item=PEe;pd.RESPONSIVE=DEe;pd.INVALIDATE=LEe;var att=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,f=t.activeDescendantId,h=t.value,m=t.maxLength,g=t.onKeyDown,v=t.onMouseDown,y=t.onChange,b=t.onPaste,_=t.onCompositionStart,E=t.onCompositionEnd,w=t.onBlur,S=t.open,C=t.attrs,T=a||p.createElement("input",null),x=T,O=x.ref,N=x.props,I=N.onKeyDown,M=N.onChange,F=N.onMouseDown,k=N.onCompositionStart,B=N.onCompositionEnd,A=N.onBlur,P=N.style;return"maxLength"in T.props,T=p.cloneElement(T,W(W(W({type:"search"},N),{},{id:o,ref:oa(n,O),disabled:s,tabIndex:l,autoComplete:u||"off",autoFocus:c,className:Te("".concat(i,"-selection-search-input"),(r=T)===null||r===void 0||(r=r.props)===null||r===void 0?void 0:r.className),role:"combobox","aria-expanded":S||!1,"aria-haspopup":"listbox","aria-owns":"".concat(o,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(o,"_list"),"aria-activedescendant":S?f:void 0},C),{},{value:d?h:"",maxLength:m,readOnly:!d,unselectable:d?null:"on",style:W(W({},P),{},{opacity:d?null:0}),onKeyDown:function(L){g(L),I&&I(L)},onMouseDown:function(L){v(L),F&&F(L)},onChange:function(L){y(L),M&&M(L)},onCompositionStart:function(L){_(L),k&&k(L)},onCompositionEnd:function(L){E(L),B&&B(L)},onPaste:b,onBlur:function(L){w(L),A&&A(L)}})),T},$Ee=p.forwardRef(att);function FEe(e){return Array.isArray(e)?e:e!==void 0?[e]:[]}var stt=typeof window<"u"&&window.document&&window.document.documentElement,ltt=stt;function ctt(e){return e!=null}function utt(e){return!e&&e!==0}function are(e){return["string","number"].includes(Gt(e))}function BEe(e){var t=void 0;return e&&(are(e.title)?t=e.title.toString():are(e.label)&&(t=e.label.toString())),t}function dtt(e,t){ltt?p.useLayoutEffect(e,t):p.useEffect(e,t)}function ftt(e){var t;return(t=e.key)!==null&&t!==void 0?t:e.value}var sre=function(t){t.preventDefault(),t.stopPropagation()},ptt=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,f=t.showSearch,h=t.autoFocus,m=t.autoComplete,g=t.activeDescendantId,v=t.tabIndex,y=t.removeIcon,b=t.maxTagCount,_=t.maxTagTextLength,E=t.maxTagPlaceholder,w=E===void 0?function(ve){return"+ ".concat(ve.length," ...")}:E,S=t.tagRender,C=t.onToggleOpen,T=t.onRemove,x=t.onInputChange,O=t.onInputPaste,N=t.onInputKeyDown,I=t.onInputMouseDown,M=t.onInputCompositionStart,F=t.onInputCompositionEnd,k=t.onInputBlur,B=p.useRef(null),A=p.useState(0),P=Ie(A,2),z=P[0],L=P[1],V=p.useState(!1),j=Ie(V,2),U=j[0],J=j[1],te="".concat(r,"-selection"),ae=o||d==="multiple"&&s===!1||d==="tags"?a:"",K=d==="tags"||d==="multiple"&&s===!1||f&&(o||U);dtt(function(){L(B.current.scrollWidth)},[ae]);var Q=function(ne,pe,be,Re,Se){return p.createElement("span",{title:BEe(ne),className:Te("".concat(te,"-item"),ee({},"".concat(te,"-item-disabled"),be))},p.createElement("span",{className:"".concat(te,"-item-content")},pe),Re&&p.createElement(k5,{className:"".concat(te,"-item-remove"),onMouseDown:sre,onClick:Se,customizeIcon:y},"×"))},oe=function(ne,pe,be,Re,Se,Ce){var ye=function(_e){sre(_e),C(!o)};return p.createElement("span",{onMouseDown:ye},S({label:pe,value:ne,disabled:be,closable:Re,onClose:Se,isMaxTag:!!Ce}))},ge=function(ne){var pe=ne.disabled,be=ne.label,Re=ne.value,Se=!u&&!pe,Ce=be;if(typeof _=="number"&&(typeof be=="string"||typeof be=="number")){var ye=String(Ce);ye.length>_&&(Ce="".concat(ye.slice(0,_),"..."))}var he=function(Oe){Oe&&Oe.stopPropagation(),T(ne)};return typeof S=="function"?oe(Re,Ce,pe,Se,he):Q(ne,Ce,pe,Se,he)},fe=function(ne){if(!i.length)return null;var pe=typeof w=="function"?w(ne):w;return typeof S=="function"?oe(void 0,pe,!1,!1,void 0,!0):Q({title:pe},pe,!1)},ue=p.createElement("div",{className:"".concat(te,"-search"),style:{width:z},onFocus:function(){J(!0)},onBlur:function(){J(!1)}},p.createElement($Ee,{ref:l,open:o,prefixCls:r,id:n,inputElement:null,disabled:u,autoFocus:h,autoComplete:m,editable:K,activeDescendantId:g,value:ae,onKeyDown:N,onMouseDown:I,onChange:x,onPaste:O,onCompositionStart:M,onCompositionEnd:F,onBlur:k,tabIndex:v,attrs:xi(t,!0)}),p.createElement("span",{ref:B,className:"".concat(te,"-search-mirror"),"aria-hidden":!0},ae," ")),le=p.createElement(pd,{prefixCls:"".concat(te,"-overflow"),data:i,renderItem:ge,renderRest:fe,suffix:ue,itemKey:ftt,maxCount:b});return p.createElement("span",{className:"".concat(te,"-wrap")},le,!i.length&&!ae&&p.createElement("span",{className:"".concat(te,"-placeholder")},c))},htt=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,f=t.values,h=t.placeholder,m=t.tabIndex,g=t.showSearch,v=t.searchValue,y=t.activeValue,b=t.maxLength,_=t.onInputKeyDown,E=t.onInputMouseDown,w=t.onInputChange,S=t.onInputPaste,C=t.onInputCompositionStart,T=t.onInputCompositionEnd,x=t.onInputBlur,O=t.title,N=p.useState(!1),I=Ie(N,2),M=I[0],F=I[1],k=u==="combobox",B=k||g,A=f[0],P=v||"";k&&y&&!M&&(P=y),p.useEffect(function(){k&&F(!1)},[k,y]);var z=u!=="combobox"&&!d&&!g?!1:!!P,L=O===void 0?BEe(A):O,V=p.useMemo(function(){return A?null:p.createElement("span",{className:"".concat(r,"-selection-placeholder"),style:z?{visibility:"hidden"}:void 0},h)},[A,z,h,r]);return p.createElement("span",{className:"".concat(r,"-selection-wrap")},p.createElement("span",{className:"".concat(r,"-selection-search")},p.createElement($Ee,{ref:o,prefixCls:r,id:i,open:d,inputElement:n,disabled:a,autoFocus:s,autoComplete:l,editable:B,activeDescendantId:c,value:P,onKeyDown:_,onMouseDown:E,onChange:function(U){F(!0),w(U)},onPaste:S,onCompositionStart:C,onCompositionEnd:T,onBlur:x,tabIndex:m,attrs:xi(t,!0),maxLength:k?b:void 0})),!k&&A?p.createElement("span",{className:"".concat(r,"-selection-item"),title:L,style:z?{visibility:"hidden"}:void 0},A.label):null,V)},mtt=function(t,n){var r=p.useRef(null),i=p.useRef(!1),o=t.prefixCls,a=t.open,s=t.mode,l=t.showSearch,c=t.tokenWithEnter,u=t.disabled,d=t.prefix,f=t.autoClearSearchValue,h=t.onSearch,m=t.onSearchSubmit,g=t.onToggleOpen,v=t.onInputKeyDown,y=t.onInputBlur,b=t.domRef;p.useImperativeHandle(n,function(){return{focus:function(L){r.current.focus(L)},blur:function(){r.current.blur()}}});var _=kEe(0),E=Ie(_,2),w=E[0],S=E[1],C=function(L){var V=L.which,j=r.current instanceof HTMLTextAreaElement;!j&&a&&(V===dt.UP||V===dt.DOWN)&&L.preventDefault(),v&&v(L),V===dt.ENTER&&s==="tags"&&!i.current&&!a&&(m==null||m(L.target.value)),!(j&&!a&&~[dt.UP,dt.DOWN,dt.LEFT,dt.RIGHT].indexOf(V))&&Yet(V)&&g(!0)},T=function(){S(!0)},x=p.useRef(null),O=function(L){h(L,!0,i.current)!==!1&&g(!0)},N=function(){i.current=!0},I=function(L){i.current=!1,s!=="combobox"&&O(L.target.value)},M=function(L){var V=L.target.value;if(c&&x.current&&/[\r\n]/.test(x.current)){var j=x.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");V=V.replace(j,x.current)}x.current=null,O(V)},F=function(L){var V=L.clipboardData,j=V==null?void 0:V.getData("text");x.current=j||""},k=function(L){var V=L.target;if(V!==r.current){var j=document.body.style.msTouchAction!==void 0;j?setTimeout(function(){r.current.focus()}):r.current.focus()}},B=function(L){var V=w();L.target!==r.current&&!V&&!(s==="combobox"&&u)&&L.preventDefault(),(s!=="combobox"&&(!l||!V)||!a)&&(a&&f!==!1&&h("",!0,!1),g())},A={inputRef:r,onInputKeyDown:C,onInputMouseDown:T,onInputChange:M,onInputPaste:F,onInputCompositionStart:N,onInputCompositionEnd:I,onInputBlur:y},P=s==="multiple"||s==="tags"?p.createElement(ptt,Ke({},t,A)):p.createElement(htt,Ke({},t,A));return p.createElement("div",{ref:b,className:"".concat(o,"-selector"),onClick:k,onMouseDown:B},d&&p.createElement("div",{className:"".concat(o,"-prefix")},d),P)},gtt=p.forwardRef(mtt);function vtt(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,f=p.useRef();if(!n||!n.points)return null;var h={position:"absolute"};if(n.autoArrow!==!1){var m=n.points[0],g=n.points[1],v=m[0],y=m[1],b=g[0],_=g[1];v===b||!["t","b"].includes(v)?h.top=d:v==="t"?h.top=0:h.bottom=0,y===_||!["l","r"].includes(y)?h.left=c:y==="l"?h.left=0:h.right=0}return p.createElement("div",{ref:f,className:Te("".concat(t,"-arrow"),a),style:h},s)}function btt(e){var t=e.prefixCls,n=e.open,r=e.zIndex,i=e.mask,o=e.motion;return i?p.createElement(ra,Ke({},o,{motionAppear:!0,visible:n,removeOnLeave:!0}),function(a){var s=a.className;return p.createElement("div",{style:{zIndex:r},className:Te("".concat(t,"-mask"),s)})}):null}var ytt=p.memo(function(e){var t=e.children;return t},function(e,t){return t.cache}),_tt=p.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,f=e.mask,h=e.arrow,m=e.arrowPos,g=e.align,v=e.motion,y=e.maskMotion,b=e.forceRender,_=e.getPopupContainer,E=e.autoDestroy,w=e.portal,S=e.zIndex,C=e.onMouseEnter,T=e.onMouseLeave,x=e.onPointerEnter,O=e.onPointerDownCapture,N=e.ready,I=e.offsetX,M=e.offsetY,F=e.offsetR,k=e.offsetB,B=e.onAlign,A=e.onPrepare,P=e.stretch,z=e.targetWidth,L=e.targetHeight,V=typeof n=="function"?n():n,j=l||c,U=(_==null?void 0:_.length)>0,J=p.useState(!_||!U),te=Ie(J,2),ae=te[0],K=te[1];if(sr(function(){!ae&&U&&a&&K(!0)},[ae,U,a]),!ae)return null;var Q="auto",oe={left:"-1000vw",top:"-1000vh",right:Q,bottom:Q};if(N||!l){var ge,fe=g.points,ue=g.dynamicInset||((ge=g._experimental)===null||ge===void 0?void 0:ge.dynamicInset),le=ue&&fe[0][1]==="r",ve=ue&&fe[0][0]==="b";le?(oe.right=F,oe.left=Q):(oe.left=I,oe.right=Q),ve?(oe.bottom=k,oe.top=Q):(oe.top=M,oe.bottom=Q)}var ne={};return P&&(P.includes("height")&&L?ne.height=L:P.includes("minHeight")&&L&&(ne.minHeight=L),P.includes("width")&&z?ne.width=z:P.includes("minWidth")&&z&&(ne.minWidth=z)),l||(ne.pointerEvents="none"),p.createElement(w,{open:b||j,getContainer:_&&function(){return _(a)},autoDestroy:E},p.createElement(btt,{prefixCls:i,open:l,zIndex:S,mask:f,motion:y}),p.createElement(Ta,{onResize:B,disabled:!l},function(pe){return p.createElement(ra,Ke({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:b,leavedClassName:"".concat(i,"-hidden")},v,{onAppearPrepare:A,onEnterPrepare:A,visible:l,onVisibleChanged:function(Re){var Se;v==null||(Se=v.onVisibleChanged)===null||Se===void 0||Se.call(v,Re),s(Re)}}),function(be,Re){var Se=be.className,Ce=be.style,ye=Te(i,Se,r);return p.createElement("div",{ref:oa(pe,t,Re),className:ye,style:W(W(W(W({"--arrow-x":"".concat(m.x||0,"px"),"--arrow-y":"".concat(m.y||0,"px")},oe),ne),Ce),{},{boxSizing:"border-box",zIndex:S},o),onMouseEnter:C,onMouseLeave:T,onPointerEnter:x,onClick:d,onPointerDownCapture:O},h&&p.createElement(vtt,{prefixCls:i,arrow:h,arrowPos:m,align:g}),p.createElement(ytt,{cache:!l&&!u},V))})}))}),Stt=p.forwardRef(function(e,t){var n=e.children,r=e.getTriggerDOMNode,i=Cd(n),o=p.useCallback(function(s){ST(t,r?r(s):s)},[r]),a=$d(o,Og(n));return i?p.cloneElement(n,{ref:a}):n}),lre=p.createContext(null);function cre(e){return e?Array.isArray(e)?e:[e]:[]}function Ett(e,t,n,r){return p.useMemo(function(){var i=cre(n??t),o=cre(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 Ctt(){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 wtt(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(Ctt((s=e[l])===null||s===void 0?void 0:s.points,i,r))return"".concat(t,"-placement-").concat(l)}return""}function ure(e,t,n,r){return t||(n?{motionName:"".concat(e,"-").concat(n)}:r?{motionName:r}:null)}function s2(e){return e.ownerDocument.defaultView}function EH(e){for(var t=[],n=e==null?void 0:e.parentElement,r=["hidden","scroll","clip","auto"];n;){var i=s2(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 MT(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;return Number.isNaN(e)?t:e}function LE(e){return MT(parseFloat(e),0)}function dre(e,t){var n=W({},e);return(t||[]).forEach(function(r){if(!(r instanceof HTMLBodyElement||r instanceof HTMLHtmlElement)){var i=s2(r).getComputedStyle(r),o=i.overflow,a=i.overflowClipMargin,s=i.borderTopWidth,l=i.borderBottomWidth,c=i.borderLeftWidth,u=i.borderRightWidth,d=r.getBoundingClientRect(),f=r.offsetHeight,h=r.clientHeight,m=r.offsetWidth,g=r.clientWidth,v=LE(s),y=LE(l),b=LE(c),_=LE(u),E=MT(Math.round(d.width/m*1e3)/1e3),w=MT(Math.round(d.height/f*1e3)/1e3),S=(m-g-b-_)*E,C=(f-h-v-y)*w,T=v*w,x=y*w,O=b*E,N=_*E,I=0,M=0;if(o==="clip"){var F=LE(a);I=F*E,M=F*w}var k=d.x+O-I,B=d.y+T-M,A=k+d.width+2*I-O-N-S,P=B+d.height+2*M-T-x-C;n.left=Math.max(n.left,k),n.top=Math.max(n.top,B),n.right=Math.min(n.right,A),n.bottom=Math.min(n.bottom,P)}}),n}function fre(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 pre(e,t){var n=t||[],r=Ie(n,2),i=r[0],o=r[1];return[fre(e.width,i),fre(e.height,o)]}function hre(){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 Fh(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 Ttt(e,t,n,r,i,o,a){var s=p.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:i[r]||{}}),l=Ie(s,2),c=l[0],u=l[1],d=p.useRef(0),f=p.useMemo(function(){return t?EH(t):[]},[t]),h=p.useRef({}),m=function(){h.current={}};e||m();var g=Yn(function(){if(t&&n&&e){let Mn=function(Mr,qo){var ma=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Oe,bi=J.x+Mr,ga=J.y+qo,tp=bi+le,np=ga+ue,Ug=Math.max(bi,ma.left),kn=Math.max(ga,ma.top),hr=Math.min(tp,ma.right),Zr=Math.min(np,ma.bottom);return Math.max(0,(hr-Ug)*(Zr-kn))},Qn=function(){Yt=J.y+Ut,ct=Yt+ue,Rt=J.x+Ot,Ht=Rt+le};var b,_,E,w,S=t,C=S.ownerDocument,T=s2(S),x=T.getComputedStyle(S),O=x.width,N=x.height,I=x.position,M=S.style.left,F=S.style.top,k=S.style.right,B=S.style.bottom,A=S.style.overflow,P=W(W({},i[r]),o),z=C.createElement("div");(b=S.parentElement)===null||b===void 0||b.appendChild(z),z.style.left="".concat(S.offsetLeft,"px"),z.style.top="".concat(S.offsetTop,"px"),z.style.position=I,z.style.height="".concat(S.offsetHeight,"px"),z.style.width="".concat(S.offsetWidth,"px"),S.style.left="0",S.style.top="0",S.style.right="auto",S.style.bottom="auto",S.style.overflow="hidden";var L;if(Array.isArray(n))L={x:n[0],y:n[1],width:0,height:0};else{var V,j,U=n.getBoundingClientRect();U.x=(V=U.x)!==null&&V!==void 0?V:U.left,U.y=(j=U.y)!==null&&j!==void 0?j:U.top,L={x:U.x,y:U.y,width:U.width,height:U.height}}var J=S.getBoundingClientRect();J.x=(_=J.x)!==null&&_!==void 0?_:J.left,J.y=(E=J.y)!==null&&E!==void 0?E:J.top;var te=C.documentElement,ae=te.clientWidth,K=te.clientHeight,Q=te.scrollWidth,oe=te.scrollHeight,ge=te.scrollTop,fe=te.scrollLeft,ue=J.height,le=J.width,ve=L.height,ne=L.width,pe={left:0,top:0,right:ae,bottom:K},be={left:-fe,top:-ge,right:Q-fe,bottom:oe-ge},Re=P.htmlRegion,Se="visible",Ce="visibleFirst";Re!=="scroll"&&Re!==Ce&&(Re=Se);var ye=Re===Ce,he=dre(be,f),_e=dre(pe,f),Oe=Re===Se?_e:he,De=ye?_e:Oe;S.style.left="auto",S.style.top="auto",S.style.right="0",S.style.bottom="0";var Y=S.getBoundingClientRect();S.style.left=M,S.style.top=F,S.style.right=k,S.style.bottom=B,S.style.overflow=A,(w=S.parentElement)===null||w===void 0||w.removeChild(z);var D=MT(Math.round(le/parseFloat(O)*1e3)/1e3),G=MT(Math.round(ue/parseFloat(N)*1e3)/1e3);if(D===0||G===0||_T(n)&&!gS(n))return;var ie=P.offset,me=P.targetOffset,se=pre(J,ie),Be=Ie(se,2),Ve=Be[0],re=Be[1],Me=pre(L,me),je=Ie(Me,2),ke=je[0],Ge=je[1];L.x-=ke,L.y-=Ge;var Ue=P.points||[],qe=Ie(Ue,2),At=qe[0],at=qe[1],pt=hre(at),Ct=hre(At),bt=Z0(L,pt),Vt=Z0(J,Ct),Tt=W({},P),Ot=bt.x-Vt.x+Ve,Ut=bt.y-Vt.y+re,ze=Mn(Ot,Ut),Ye=Mn(Ot,Ut,_e),He=Z0(L,["t","l"]),Ze=Z0(J,["t","l"]),yt=Z0(L,["b","r"]),_t=Z0(J,["b","r"]),Bt=P.overflow||{},Nt=Bt.adjustX,vt=Bt.adjustY,ht=Bt.shiftX,kt=Bt.shiftY,Et=function(qo){return typeof qo=="boolean"?qo:qo>=0},Yt,ct,Rt,Ht;Qn();var wt=Et(vt),St=Ct[0]===pt[0];if(wt&&Ct[0]==="t"&&(ct>De.bottom||h.current.bt)){var jt=Ut;St?jt-=ue-ve:jt=He.y-_t.y-re;var Pe=Mn(Ot,jt),Pt=Mn(Ot,jt,_e);Pe>ze||Pe===ze&&(!ye||Pt>=Ye)?(h.current.bt=!0,Ut=jt,re=-re,Tt.points=[Fh(Ct,0),Fh(pt,0)]):h.current.bt=!1}if(wt&&Ct[0]==="b"&&(Yt<De.top||h.current.tb)){var rt=Ut;St?rt+=ue-ve:rt=yt.y-Ze.y-re;var Mt=Mn(Ot,rt),It=Mn(Ot,rt,_e);Mt>ze||Mt===ze&&(!ye||It>=Ye)?(h.current.tb=!0,Ut=rt,re=-re,Tt.points=[Fh(Ct,0),Fh(pt,0)]):h.current.tb=!1}var xn=Et(Nt),Hn=Ct[1]===pt[1];if(xn&&Ct[1]==="l"&&(Ht>De.right||h.current.rl)){var R=Ot;Hn?R-=le-ne:R=He.x-_t.x-Ve;var $=Mn(R,Ut),Z=Mn(R,Ut,_e);$>ze||$===ze&&(!ye||Z>=Ye)?(h.current.rl=!0,Ot=R,Ve=-Ve,Tt.points=[Fh(Ct,1),Fh(pt,1)]):h.current.rl=!1}if(xn&&Ct[1]==="r"&&(Rt<De.left||h.current.lr)){var xe=Ot;Hn?xe+=le-ne:xe=yt.x-Ze.x-Ve;var $e=Mn(xe,Ut),et=Mn(xe,Ut,_e);$e>ze||$e===ze&&(!ye||et>=Ye)?(h.current.lr=!0,Ot=xe,Ve=-Ve,Tt.points=[Fh(Ct,1),Fh(pt,1)]):h.current.lr=!1}Qn();var $t=ht===!0?0:ht;typeof $t=="number"&&(Rt<_e.left&&(Ot-=Rt-_e.left-Ve,L.x+ne<_e.left+$t&&(Ot+=L.x-_e.left+ne-$t)),Ht>_e.right&&(Ot-=Ht-_e.right-Ve,L.x>_e.right-$t&&(Ot+=L.x-_e.right+$t)));var pn=kt===!0?0:kt;typeof pn=="number"&&(Yt<_e.top&&(Ut-=Yt-_e.top-re,L.y+ve<_e.top+pn&&(Ut+=L.y-_e.top+ve-pn)),ct>_e.bottom&&(Ut-=ct-_e.bottom-re,L.y>_e.bottom-pn&&(Ut+=L.y-_e.bottom+pn)));var Fn=J.x+Ot,Xr=Fn+le,Lr=J.y+Ut,vi=Lr+ue,Sr=L.x,ln=Sr+ne,_n=L.y,Er=_n+ve,on=Math.max(Fn,Sr),an=Math.min(Xr,ln),Gn=(on+an)/2,_r=Gn-Fn,oi=Math.max(Lr,_n),Zi=Math.min(vi,Er),nr=(oi+Zi)/2,Fi=nr-Lr;a==null||a(t,Tt);var Zn=Y.right-J.x-(Ot+J.width),dn=Y.bottom-J.y-(Ut+J.height);D===1&&(Ot=Math.round(Ot),Zn=Math.round(Zn)),G===1&&(Ut=Math.round(Ut),dn=Math.round(dn));var wn={ready:!0,offsetX:Ot/D,offsetY:Ut/G,offsetR:Zn/D,offsetB:dn/G,arrowX:_r/D,arrowY:Fi/G,scaleX:D,scaleY:G,align:Tt};u(wn)}}),v=function(){d.current+=1;var _=d.current;Promise.resolve().then(function(){d.current===_&&g()})},y=function(){u(function(_){return W(W({},_),{},{ready:!1})})};return sr(y,[r]),sr(function(){e||y()},[e]),[c.ready,c.offsetX,c.offsetY,c.offsetR,c.offsetB,c.arrowX,c.arrowY,c.scaleX,c.scaleY,c.align,v]}function xtt(e,t,n,r,i){sr(function(){if(e&&t&&n){let d=function(){r(),i()};var o=t,a=n,s=EH(o),l=EH(a),c=s2(a),u=new Set([c].concat(nt(s),nt(l)));return u.forEach(function(f){f.addEventListener("scroll",d,{passive:!0})}),c.addEventListener("resize",d,{passive:!0}),r(),function(){u.forEach(function(f){f.removeEventListener("scroll",d),c.removeEventListener("resize",d)})}}},[e,t,n])}function Ott(e,t,n,r,i,o,a,s){var l=p.useRef(e);l.current=e;var c=p.useRef(!1);p.useEffect(function(){if(t&&r&&(!i||o)){var d=function(){c.current=!1},f=function(v){var y;l.current&&!a(((y=v.composedPath)===null||y===void 0||(y=y.call(v))===null||y===void 0?void 0:y[0])||v.target)&&!c.current&&s(!1)},h=s2(r);h.addEventListener("pointerdown",d,!0),h.addEventListener("mousedown",f,!0),h.addEventListener("contextmenu",f,!0);var m=FM(n);return m&&(m.addEventListener("mousedown",f,!0),m.addEventListener("contextmenu",f,!0)),function(){h.removeEventListener("pointerdown",d,!0),h.removeEventListener("mousedown",f,!0),h.removeEventListener("contextmenu",f,!0),m&&(m.removeEventListener("mousedown",f,!0),m.removeEventListener("contextmenu",f,!0))}}},[t,n,r,i,o]);function u(){c.current=!0}return u}var Rtt=["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 Itt(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:i2,t=p.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,f=n.defaultPopupVisible,h=n.onPopupVisibleChange,m=n.afterPopupVisibleChange,g=n.mouseEnterDelay,v=n.mouseLeaveDelay,y=v===void 0?.1:v,b=n.focusDelay,_=n.blurDelay,E=n.mask,w=n.maskClosable,S=w===void 0?!0:w,C=n.getPopupContainer,T=n.forceRender,x=n.autoDestroy,O=n.destroyPopupOnHide,N=n.popup,I=n.popupClassName,M=n.popupStyle,F=n.popupPlacement,k=n.builtinPlacements,B=k===void 0?{}:k,A=n.popupAlign,P=n.zIndex,z=n.stretch,L=n.getPopupClassNameFromAlign,V=n.fresh,j=n.alignPoint,U=n.onPopupClick,J=n.onPopupAlign,te=n.arrow,ae=n.popupMotion,K=n.maskMotion,Q=n.popupTransitionName,oe=n.popupAnimation,ge=n.maskTransitionName,fe=n.maskAnimation,ue=n.className,le=n.getTriggerDOMNode,ve=Dt(n,Rtt),ne=x||O||!1,pe=p.useState(!1),be=Ie(pe,2),Re=be[0],Se=be[1];sr(function(){Se(M5())},[]);var Ce=p.useRef({}),ye=p.useContext(lre),he=p.useMemo(function(){return{registerSubPopup:function(hr,Zr){Ce.current[hr]=Zr,ye==null||ye.registerSubPopup(hr,Zr)}}},[ye]),_e=R5(),Oe=p.useState(null),De=Ie(Oe,2),Y=De[0],D=De[1],G=p.useRef(null),ie=Yn(function(kn){G.current=kn,_T(kn)&&Y!==kn&&D(kn),ye==null||ye.registerSubPopup(_e,kn)}),me=p.useState(null),se=Ie(me,2),Be=se[0],Ve=se[1],re=p.useRef(null),Me=Yn(function(kn){_T(kn)&&Be!==kn&&(Ve(kn),re.current=kn)}),je=p.Children.only(a),ke=(je==null?void 0:je.props)||{},Ge={},Ue=Yn(function(kn){var hr,Zr,Co=Be;return(Co==null?void 0:Co.contains(kn))||((hr=FM(Co))===null||hr===void 0?void 0:hr.host)===kn||kn===Co||(Y==null?void 0:Y.contains(kn))||((Zr=FM(Y))===null||Zr===void 0?void 0:Zr.host)===kn||kn===Y||Object.values(Ce.current).some(function(Ji){return(Ji==null?void 0:Ji.contains(kn))||kn===Ji})}),qe=ure(o,ae,oe,Q),At=ure(o,K,fe,ge),at=p.useState(f||!1),pt=Ie(at,2),Ct=pt[0],bt=pt[1],Vt=d??Ct,Tt=Yn(function(kn){d===void 0&&bt(kn)});sr(function(){bt(d||!1)},[d]);var Ot=p.useRef(Vt);Ot.current=Vt;var Ut=p.useRef([]);Ut.current=[];var ze=Yn(function(kn){var hr;Tt(kn),((hr=Ut.current[Ut.current.length-1])!==null&&hr!==void 0?hr:Vt)!==kn&&(Ut.current.push(kn),h==null||h(kn))}),Ye=p.useRef(),He=function(){clearTimeout(Ye.current)},Ze=function(hr){var Zr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;He(),Zr===0?ze(hr):Ye.current=setTimeout(function(){ze(hr)},Zr*1e3)};p.useEffect(function(){return He},[]);var yt=p.useState(!1),_t=Ie(yt,2),Bt=_t[0],Nt=_t[1];sr(function(kn){(!kn||Vt)&&Nt(!0)},[Vt]);var vt=p.useState(null),ht=Ie(vt,2),kt=ht[0],Et=ht[1],Yt=p.useState(null),ct=Ie(Yt,2),Rt=ct[0],Ht=ct[1],wt=function(hr){Ht([hr.clientX,hr.clientY])},St=Ttt(Vt,Y,j&&Rt!==null?Rt:Be,F,B,A,J),jt=Ie(St,11),Pe=jt[0],Pt=jt[1],rt=jt[2],Mt=jt[3],It=jt[4],xn=jt[5],Hn=jt[6],R=jt[7],$=jt[8],Z=jt[9],xe=jt[10],$e=Ett(Re,l,c,u),et=Ie($e,2),$t=et[0],pn=et[1],Fn=$t.has("click"),Xr=pn.has("click")||pn.has("contextMenu"),Lr=Yn(function(){Bt||xe()}),vi=function(){Ot.current&&j&&Xr&&Ze(!1)};xtt(Vt,Be,Y,Lr,vi),sr(function(){Lr()},[Rt,F]),sr(function(){Vt&&!(B!=null&&B[F])&&Lr()},[JSON.stringify(A)]);var Sr=p.useMemo(function(){var kn=wtt(B,o,Z,j);return Te(kn,L==null?void 0:L(Z))},[Z,L,B,o,j]);p.useImperativeHandle(r,function(){return{nativeElement:re.current,popupElement:G.current,forceAlign:Lr}});var ln=p.useState(0),_n=Ie(ln,2),Er=_n[0],on=_n[1],an=p.useState(0),Gn=Ie(an,2),_r=Gn[0],oi=Gn[1],Zi=function(){if(z&&Be){var hr=Be.getBoundingClientRect();on(hr.width),oi(hr.height)}},nr=function(){Zi(),Lr()},Fi=function(hr){Nt(!1),xe(),m==null||m(hr)},Zn=function(){return new Promise(function(hr){Zi(),Et(function(){return hr})})};sr(function(){kt&&(xe(),kt(),Et(null))},[kt]);function dn(kn,hr,Zr,Co){Ge[kn]=function(Ji){var Dh;Co==null||Co(Ji),Ze(hr,Zr);for(var rp=arguments.length,U0=new Array(rp>1?rp-1:0),zg=1;zg<rp;zg++)U0[zg-1]=arguments[zg];(Dh=ke[kn])===null||Dh===void 0||Dh.call.apply(Dh,[ke,Ji].concat(U0))}}(Fn||Xr)&&(Ge.onClick=function(kn){var hr;Ot.current&&Xr?Ze(!1):!Ot.current&&Fn&&(wt(kn),Ze(!0));for(var Zr=arguments.length,Co=new Array(Zr>1?Zr-1:0),Ji=1;Ji<Zr;Ji++)Co[Ji-1]=arguments[Ji];(hr=ke.onClick)===null||hr===void 0||hr.call.apply(hr,[ke,kn].concat(Co))});var wn=Ott(Vt,Xr,Be,Y,E,S,Ue,Ze),Mn=$t.has("hover"),Qn=pn.has("hover"),Mr,qo;Mn&&(dn("onMouseEnter",!0,g,function(kn){wt(kn)}),dn("onPointerEnter",!0,g,function(kn){wt(kn)}),Mr=function(hr){(Vt||Bt)&&Y!==null&&Y!==void 0&&Y.contains(hr.target)&&Ze(!0,g)},j&&(Ge.onMouseMove=function(kn){var hr;(hr=ke.onMouseMove)===null||hr===void 0||hr.call(ke,kn)})),Qn&&(dn("onMouseLeave",!1,y),dn("onPointerLeave",!1,y),qo=function(){Ze(!1,y)}),$t.has("focus")&&dn("onFocus",!0,b),pn.has("focus")&&dn("onBlur",!1,_),$t.has("contextMenu")&&(Ge.onContextMenu=function(kn){var hr;Ot.current&&pn.has("contextMenu")?Ze(!1):(wt(kn),Ze(!0)),kn.preventDefault();for(var Zr=arguments.length,Co=new Array(Zr>1?Zr-1:0),Ji=1;Ji<Zr;Ji++)Co[Ji-1]=arguments[Ji];(hr=ke.onContextMenu)===null||hr===void 0||hr.call.apply(hr,[ke,kn].concat(Co))}),ue&&(Ge.className=Te(ke.className,ue));var ma=W(W({},ke),Ge),bi={},ga=["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"];ga.forEach(function(kn){ve[kn]&&(bi[kn]=function(){for(var hr,Zr=arguments.length,Co=new Array(Zr),Ji=0;Ji<Zr;Ji++)Co[Ji]=arguments[Ji];(hr=ma[kn])===null||hr===void 0||hr.call.apply(hr,[ma].concat(Co)),ve[kn].apply(ve,Co)})});var tp=p.cloneElement(je,W(W({},ma),bi)),np={x:xn,y:Hn},Ug=te?W({},te!==!0?te:{}):null;return p.createElement(p.Fragment,null,p.createElement(Ta,{disabled:!Vt,ref:Me,onResize:nr},p.createElement(Stt,{getTriggerDOMNode:le},tp)),p.createElement(lre.Provider,{value:he},p.createElement(_tt,{portal:e,ref:ie,prefixCls:o,popup:N,className:Te(I,Sr),style:M,target:Be,onMouseEnter:Mr,onMouseLeave:qo,onPointerEnter:Mr,zIndex:P,open:Vt,keepDom:Bt,fresh:V,onClick:U,onPointerDownCapture:wn,mask:E,motion:qe,maskMotion:At,onVisibleChanged:Fi,onPrepare:Zn,forceRender:T,autoDestroy:ne,getPopupContainer:C,align:Z,arrow:Ug,arrowPos:np,ready:Pe,offsetX:Pt,offsetY:rt,offsetR:Mt,offsetB:It,onAlign:Lr,stretch:z,targetWidth:Er/R,targetHeight:_r/$})))});return t}const l2=Itt(i2);var Att=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],Ntt=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"}}},Mtt=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,f=d===void 0?"ltr":d,h=t.placement,m=t.builtinPlacements,g=t.dropdownMatchSelectWidth,v=t.dropdownRender,y=t.dropdownAlign,b=t.getPopupContainer,_=t.empty,E=t.getTriggerDOMNode,w=t.onPopupVisibleChange,S=t.onPopupMouseEnter,C=Dt(t,Att),T="".concat(r,"-dropdown"),x=a;v&&(x=v(a));var O=p.useMemo(function(){return m||Ntt(g)},[m,g]),N=s?"".concat(T,"-").concat(s):l,I=typeof g=="number",M=p.useMemo(function(){return I?null:g===!1?"minWidth":"width"},[g,I]),F=c;I&&(F=W(W({},F),{},{width:g}));var k=p.useRef(null);return p.useImperativeHandle(n,function(){return{getPopupElement:function(){var A;return(A=k.current)===null||A===void 0?void 0:A.popupElement}}}),p.createElement(l2,Ke({},C,{showAction:w?["click"]:[],hideAction:w?["click"]:[],popupPlacement:h||(f==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:O,prefixCls:T,popupTransitionName:N,popup:p.createElement("div",{onMouseEnter:S},x),ref:k,stretch:M,popupAlign:y,popupVisible:i,getPopupContainer:b,popupClassName:Te(u,ee({},"".concat(T,"-empty"),_)),popupStyle:F,getTriggerDOMNode:E,onPopupVisibleChange:w}),o)},ktt=p.forwardRef(Mtt);function mre(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 CH(e){return typeof e<"u"&&!Number.isNaN(e)}function jEe(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 Ptt(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.fieldNames,r=t.childrenAsData,i=[],o=jEe(n,!1),a=o.label,s=o.value,l=o.options,c=o.groupLabel;function u(d,f){Array.isArray(d)&&d.forEach(function(h){if(f||!(l in h)){var m=h[s];i.push({key:mre(h,i.length),groupOption:f,data:h,label:h[a],value:m})}else{var g=h[c];g===void 0&&r&&(g=h.label),i.push({key:mre(h,i.length),group:!0,data:h,label:g}),u(h[l],!0)}})}return u(e,!1),i}function wH(e){var t=W({},e);return"props"in t||Object.defineProperty(t,"props",{get:function(){return Yr(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),t}}),t}var Dtt=function(t,n,r){if(!n||!n.length)return null;var i=!1,o=function s(l,c){var u=O_e(c),d=u[0],f=u.slice(1);if(!d)return[l];var h=l.split(d);return i=i||h.length>1,h.reduce(function(m,g){return[].concat(nt(m),nt(s(g,f)))},[]).filter(Boolean)},a=o(t,n);return i?typeof r<"u"?a.slice(0,r):a:null},vq=p.createContext(null);function Ltt(e){var t=e.visible,n=e.values;if(!t)return null;var r=50;return p.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(Gt(o))?o:a}).join(", ")),n.length>r?", ...":null)}var $tt=["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"],Ftt=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"],TH=function(t){return t==="tags"||t==="multiple"},bq=p.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,f=e.emptyOptions,h=e.notFoundContent,m=h===void 0?"Not Found":h,g=e.onClear,v=e.mode,y=e.disabled,b=e.loading,_=e.getInputElement,E=e.getRawInputElement,w=e.open,S=e.defaultOpen,C=e.onDropdownVisibleChange,T=e.activeValue,x=e.onActiveValueChange,O=e.activeDescendantId,N=e.searchValue,I=e.autoClearSearchValue,M=e.onSearch,F=e.onSearchSplit,k=e.tokenSeparators,B=e.allowClear,A=e.prefix,P=e.suffixIcon,z=e.clearIcon,L=e.OptionList,V=e.animation,j=e.transitionName,U=e.dropdownStyle,J=e.dropdownClassName,te=e.dropdownMatchSelectWidth,ae=e.dropdownRender,K=e.dropdownAlign,Q=e.placement,oe=e.builtinPlacements,ge=e.getPopupContainer,fe=e.showAction,ue=fe===void 0?[]:fe,le=e.onFocus,ve=e.onBlur,ne=e.onKeyUp,pe=e.onKeyDown,be=e.onMouseDown,Re=Dt(e,$tt),Se=TH(v),Ce=(a!==void 0?a:Se)||v==="combobox",ye=W({},Re);Ftt.forEach(function(ln){delete ye[ln]}),c==null||c.forEach(function(ln){delete ye[ln]});var he=p.useState(!1),_e=Ie(he,2),Oe=_e[0],De=_e[1];p.useEffect(function(){De(M5())},[]);var Y=p.useRef(null),D=p.useRef(null),G=p.useRef(null),ie=p.useRef(null),me=p.useRef(null),se=p.useRef(!1),Be=Wet(),Ve=Ie(Be,3),re=Ve[0],Me=Ve[1],je=Ve[2];p.useImperativeHandle(t,function(){var ln,_n;return{focus:(ln=ie.current)===null||ln===void 0?void 0:ln.focus,blur:(_n=ie.current)===null||_n===void 0?void 0:_n.blur,scrollTo:function(on){var an;return(an=me.current)===null||an===void 0?void 0:an.scrollTo(on)},nativeElement:Y.current||D.current}});var ke=p.useMemo(function(){var ln;if(v!=="combobox")return N;var _n=(ln=u[0])===null||ln===void 0?void 0:ln.value;return typeof _n=="string"||typeof _n=="number"?String(_n):""},[N,v,u]),Ge=v==="combobox"&&typeof _=="function"&&_()||null,Ue=typeof E=="function"&&E(),qe=$d(D,Ue==null||(n=Ue.props)===null||n===void 0?void 0:n.ref),At=p.useState(!1),at=Ie(At,2),pt=at[0],Ct=at[1];sr(function(){Ct(!0)},[]);var bt=Pn(!1,{defaultValue:S,value:w}),Vt=Ie(bt,2),Tt=Vt[0],Ot=Vt[1],Ut=pt?Tt:!1,ze=!m&&f;(y||ze&&Ut&&v==="combobox")&&(Ut=!1);var Ye=ze?!1:Ut,He=p.useCallback(function(ln){var _n=ln!==void 0?ln:!Ut;y||(Ot(_n),Ut!==_n&&(C==null||C(_n)))},[y,Ut,Ot,C]),Ze=p.useMemo(function(){return(k||[]).some(function(ln){return[`
`,`\r
`].includes(ln)})},[k]),yt=p.useContext(vq)||{},_t=yt.maxCount,Bt=yt.rawValues,Nt=function(_n,Er,on){if(!(Se&&CH(_t)&&(Bt==null?void 0:Bt.size)>=_t)){var an=!0,Gn=_n;x==null||x(null);var _r=Dtt(_n,k,CH(_t)?_t-Bt.size:void 0),oi=on?null:_r;return v!=="combobox"&&oi&&(Gn="",F==null||F(oi),He(!1),an=!1),M&&ke!==Gn&&M(Gn,{source:Er?"typing":"effect"}),an}},vt=function(_n){!_n||!_n.trim()||M(_n,{source:"submit"})};p.useEffect(function(){!Ut&&!Se&&v!=="combobox"&&Nt("",!1,!1)},[Ut]),p.useEffect(function(){Tt&&y&&Ot(!1),y&&!se.current&&Me(!1)},[y]);var ht=kEe(),kt=Ie(ht,2),Et=kt[0],Yt=kt[1],ct=p.useRef(!1),Rt=function(_n){var Er=Et(),on=_n.key,an=on==="Enter";if(an&&(v!=="combobox"&&_n.preventDefault(),Ut||He(!0)),Yt(!!ke),on==="Backspace"&&!Er&&Se&&!ke&&u.length){for(var Gn=nt(u),_r=null,oi=Gn.length-1;oi>=0;oi-=1){var Zi=Gn[oi];if(!Zi.disabled){Gn.splice(oi,1),_r=Zi;break}}_r&&d(Gn,{type:"remove",values:[_r]})}for(var nr=arguments.length,Fi=new Array(nr>1?nr-1:0),Zn=1;Zn<nr;Zn++)Fi[Zn-1]=arguments[Zn];if(Ut&&(!an||!ct.current)){var dn;an&&(ct.current=!0),(dn=me.current)===null||dn===void 0||dn.onKeyDown.apply(dn,[_n].concat(Fi))}pe==null||pe.apply(void 0,[_n].concat(Fi))},Ht=function(_n){for(var Er=arguments.length,on=new Array(Er>1?Er-1:0),an=1;an<Er;an++)on[an-1]=arguments[an];if(Ut){var Gn;(Gn=me.current)===null||Gn===void 0||Gn.onKeyUp.apply(Gn,[_n].concat(on))}_n.key==="Enter"&&(ct.current=!1),ne==null||ne.apply(void 0,[_n].concat(on))},wt=function(_n){var Er=u.filter(function(on){return on!==_n});d(Er,{type:"remove",values:[_n]})},St=function(){ct.current=!1},jt=p.useRef(!1),Pe=function(){Me(!0),y||(le&&!jt.current&&le.apply(void 0,arguments),ue.includes("focus")&&He(!0)),jt.current=!0},Pt=function(){se.current=!0,Me(!1,function(){jt.current=!1,se.current=!1,He(!1)}),!y&&(ke&&(v==="tags"?M(ke,{source:"submit"}):v==="multiple"&&M("",{source:"blur"})),ve&&ve.apply(void 0,arguments))},rt=[];p.useEffect(function(){return function(){rt.forEach(function(ln){return clearTimeout(ln)}),rt.splice(0,rt.length)}},[]);var Mt=function(_n){var Er,on=_n.target,an=(Er=G.current)===null||Er===void 0?void 0:Er.getPopupElement();if(an&&an.contains(on)){var Gn=setTimeout(function(){var nr=rt.indexOf(Gn);if(nr!==-1&&rt.splice(nr,1),je(),!Oe&&!an.contains(document.activeElement)){var Fi;(Fi=ie.current)===null||Fi===void 0||Fi.focus()}});rt.push(Gn)}for(var _r=arguments.length,oi=new Array(_r>1?_r-1:0),Zi=1;Zi<_r;Zi++)oi[Zi-1]=arguments[Zi];be==null||be.apply(void 0,[_n].concat(oi))},It=p.useState({}),xn=Ie(It,2),Hn=xn[1];function R(){Hn({})}var $;Ue&&($=function(_n){He(_n)}),qet(function(){var ln;return[Y.current,(ln=G.current)===null||ln===void 0?void 0:ln.getPopupElement()]},Ye,He,!!Ue);var Z=p.useMemo(function(){return W(W({},e),{},{notFoundContent:m,open:Ut,triggerOpen:Ye,id:r,showSearch:Ce,multiple:Se,toggleOpen:He})},[e,m,Ye,Ut,r,Ce,Se,He]),xe=!!P||b,$e;xe&&($e=p.createElement(k5,{className:Te("".concat(i,"-arrow"),ee({},"".concat(i,"-arrow-loading"),b)),customizeIcon:P,customizeIconProps:{loading:b,searchValue:ke,open:Ut,focused:re,showSearch:Ce}}));var et=function(){var _n;g==null||g(),(_n=ie.current)===null||_n===void 0||_n.focus(),d([],{type:"clear",values:u}),Nt("",!1,!1)},$t=Get(i,et,u,B,z,y,ke,v),pn=$t.allowClear,Fn=$t.clearIcon,Xr=p.createElement(L,{ref:me}),Lr=Te(i,o,ee(ee(ee(ee(ee(ee(ee(ee(ee(ee({},"".concat(i,"-focused"),re),"".concat(i,"-multiple"),Se),"".concat(i,"-single"),!Se),"".concat(i,"-allow-clear"),B),"".concat(i,"-show-arrow"),xe),"".concat(i,"-disabled"),y),"".concat(i,"-loading"),b),"".concat(i,"-open"),Ut),"".concat(i,"-customize-input"),Ge),"".concat(i,"-show-search"),Ce)),vi=p.createElement(ktt,{ref:G,disabled:y,prefixCls:i,visible:Ye,popupElement:Xr,animation:V,transitionName:j,dropdownStyle:U,dropdownClassName:J,direction:l,dropdownMatchSelectWidth:te,dropdownRender:ae,dropdownAlign:K,placement:Q,builtinPlacements:oe,getPopupContainer:ge,empty:f,getTriggerDOMNode:function(_n){return D.current||_n},onPopupVisibleChange:$,onPopupMouseEnter:R},Ue?p.cloneElement(Ue,{ref:qe}):p.createElement(gtt,Ke({},e,{domRef:D,prefixCls:i,inputElement:Ge,ref:ie,id:r,prefix:A,showSearch:Ce,autoClearSearchValue:I,mode:v,activeDescendantId:O,tagRender:s,values:u,open:Ut,onToggleOpen:He,activeValue:T,searchValue:ke,onSearch:Nt,onSearchSubmit:vt,onRemove:wt,tokenWithEnter:Ze,onInputBlur:St}))),Sr;return Ue?Sr=vi:Sr=p.createElement("div",Ke({className:Lr},ye,{ref:Y,onMouseDown:Mt,onKeyDown:Rt,onKeyUp:Ht,onFocus:Pe,onBlur:Pt}),p.createElement(Ltt,{visible:re&&!Ut,values:u}),vi,$e,pn&&Fn),p.createElement(MEe.Provider,{value:Z},Sr)}),yq=function(){return null};yq.isSelectOptGroup=!0;var _q=function(){return null};_q.isSelectOption=!0;var HEe=p.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={},f={display:"flex",flexDirection:"column"};return r!==void 0&&(d={height:n,position:"relative",overflow:"hidden"},f=W(W({},f),{},ee(ee(ee(ee(ee({transform:"translateY(".concat(r,"px)")},c?"marginRight":"marginLeft",-i),"position","absolute"),"left",0),"right",0),"top",0))),p.createElement("div",{style:d},p.createElement(Ta,{onResize:function(m){var g=m.offsetHeight;g&&s&&s()}},p.createElement("div",Ke({style:f,className:Te(ee({},"".concat(a,"-holder-inner"),a)),ref:t},l),o,u)))});HEe.displayName="Filler";function Btt(e){var t=e.children,n=e.setRef,r=p.useCallback(function(i){n(i)},[]);return p.cloneElement(t,{ref:r})}function jtt(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,f=a(c,d,{style:{width:r},offsetX:i}),h=l(c);return p.createElement(Btt,{key:h,setRef:function(g){return o(c,g)}},f)})}function Htt(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 f=l(o[d]),h=l(a[d]);if(f!==h){c=d,u=u||f!==l(a[d+1]);break}}return c===null?null:{index:c,multiple:u}}function Utt(e,t,n){var r=p.useState(e),i=Ie(r,2),o=i[0],a=i[1],s=p.useState(null),l=Ie(s,2),c=l[0],u=l[1];return p.useEffect(function(){var d=Htt(o||[],e||[],t);(d==null?void 0:d.index)!==void 0&&u(e[d.index]),a(e)},[e]),[c]}var gre=(typeof navigator>"u"?"undefined":Gt(navigator))==="object"&&/Firefox/i.test(navigator.userAgent);const UEe=function(e,t,n,r){var i=p.useRef(!1),o=p.useRef(null);function a(){clearTimeout(o.current),i.current=!0,o.current=setTimeout(function(){i.current=!1},50)}var s=p.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 ztt(e,t,n,r,i,o,a){var s=p.useRef(0),l=p.useRef(null),c=p.useRef(null),u=p.useRef(!1),d=UEe(t,n,r,i);function f(b,_){if(rr.cancel(l.current),!d(!1,_)){var E=b;if(!E._virtualHandled)E._virtualHandled=!0;else return;s.current+=_,c.current=_,gre||E.preventDefault(),l.current=rr(function(){var w=u.current?10:1;a(s.current*w,!1),s.current=0})}}function h(b,_){a(_,!0),gre||b.preventDefault()}var m=p.useRef(null),g=p.useRef(null);function v(b){if(e){rr.cancel(g.current),g.current=rr(function(){m.current=null},2);var _=b.deltaX,E=b.deltaY,w=b.shiftKey,S=_,C=E;(m.current==="sx"||!m.current&&w&&E&&!_)&&(S=E,C=0,m.current="sx");var T=Math.abs(S),x=Math.abs(C);m.current===null&&(m.current=o&&T>x?"x":"y"),m.current==="y"?f(b,C):h(b,S)}}function y(b){e&&(u.current=b.detail===c.current)}return[v,y]}function Vtt(e,t,n,r){var i=p.useMemo(function(){return[new Map,[]]},[e,n.id,r]),o=Ie(i,2),a=o[0],s=o[1],l=function(u){var d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:u,f=a.get(u),h=a.get(d);if(f===void 0||h===void 0)for(var m=e.length,g=s.length;g<m;g+=1){var v,y=e[g],b=t(y);a.set(b,g);var _=(v=n.get(b))!==null&&v!==void 0?v:r;if(s[g]=(s[g-1]||0)+_,b===u&&(f=g),b===d&&(h=g),f!==void 0&&h!==void 0)break}return{top:s[f-1]||0,bottom:s[h]}};return l}var Gtt=function(){function e(){Kr(this,e),ee(this,"maps",void 0),ee(this,"id",0),this.maps=Object.create(null)}return Qr(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 vre(e){var t=parseFloat(e);return isNaN(t)?0:t}function Wtt(e,t,n){var r=p.useState(0),i=Ie(r,2),o=i[0],a=i[1],s=p.useRef(new Map),l=p.useRef(new Gtt),c=p.useRef();function u(){rr.cancel(c.current)}function d(){var h=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;u();var m=function(){s.current.forEach(function(v,y){if(v&&v.offsetParent){var b=ow(v),_=b.offsetHeight,E=getComputedStyle(b),w=E.marginTop,S=E.marginBottom,C=vre(w),T=vre(S),x=_+C+T;l.current.get(y)!==x&&l.current.set(y,x)}}),a(function(v){return v+1})};h?m():c.current=rr(m)}function f(h,m){var g=e(h);s.current.get(g),m?(s.current.set(g,m),d()):s.current.delete(g)}return p.useEffect(function(){return u},[]),[f,d,l.current,o]}var bre=14/15;function qtt(e,t,n){var r=p.useRef(!1),i=p.useRef(0),o=p.useRef(0),a=p.useRef(null),s=p.useRef(null),l,c=function(h){if(r.current){var m=Math.ceil(h.touches[0].pageX),g=Math.ceil(h.touches[0].pageY),v=i.current-m,y=o.current-g,b=Math.abs(v)>Math.abs(y);b?i.current=m:o.current=g;var _=n(b,b?v:y,!1,h);_&&h.preventDefault(),clearInterval(s.current),_&&(s.current=setInterval(function(){b?v*=bre:y*=bre;var E=Math.floor(b?v:y);(!n(b,E,!0)||Math.abs(E)<=.1)&&clearInterval(s.current)},16))}},u=function(){r.current=!1,l()},d=function(h){l(),h.touches.length===1&&!r.current&&(r.current=!0,i.current=Math.ceil(h.touches[0].pageX),o.current=Math.ceil(h.touches[0].pageY),a.current=h.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))},sr(function(){return e&&t.current.addEventListener("touchstart",d,{passive:!0}),function(){var f;(f=t.current)===null||f===void 0||f.removeEventListener("touchstart",d),l(),clearInterval(s.current)}},[e])}var Ytt=10;function Ktt(e,t,n,r,i,o,a,s){var l=p.useRef(),c=p.useState(null),u=Ie(c,2),d=u[0],f=u[1];return sr(function(){if(d&&d.times<Ytt){if(!e.current){f(function(z){return W({},z)});return}o();var h=d.targetAlign,m=d.originAlign,g=d.index,v=d.offset,y=e.current.clientHeight,b=!1,_=h,E=null;if(y){for(var w=h||m,S=0,C=0,T=0,x=Math.min(t.length-1,g),O=0;O<=x;O+=1){var N=i(t[O]);C=S;var I=n.get(N);T=C+(I===void 0?r:I),S=T}for(var M=w==="top"?v:y-v,F=x;F>=0;F-=1){var k=i(t[F]),B=n.get(k);if(B===void 0){b=!0;break}if(M-=B,M<=0)break}switch(w){case"top":E=C-v;break;case"bottom":E=T-y+v;break;default:{var A=e.current.scrollTop,P=A+y;C<A?_="top":T>P&&(_="bottom")}}E!==null&&a(E),E!==d.lastTop&&(b=!0)}b&&f(W(W({},d),{},{times:d.times+1,targetAlign:_,lastTop:E}))}},[d,e.current]),function(h){if(h==null){s();return}if(rr.cancel(l.current),typeof h=="number")a(h);else if(h&&Gt(h)==="object"){var m,g=h.align;"index"in h?m=h.index:m=t.findIndex(function(b){return i(b)===h.key});var v=h.offset,y=v===void 0?0:v;f({times:0,index:m,offset:y,originAlign:g})}}}function yre(e,t){var n="touches"in e?e.touches[0]:e;return n[t?"pageX":"pageY"]}var _re=p.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,f=e.style,h=e.thumbStyle,m=p.useState(!1),g=Ie(m,2),v=g[0],y=g[1],b=p.useState(null),_=Ie(b,2),E=_[0],w=_[1],S=p.useState(null),C=Ie(S,2),T=C[0],x=C[1],O=!r,N=p.useRef(),I=p.useRef(),M=p.useState(!1),F=Ie(M,2),k=F[0],B=F[1],A=p.useRef(),P=function(){clearTimeout(A.current),B(!0),A.current=setTimeout(function(){B(!1)},3e3)},z=o-d||0,L=d-u||0,V=p.useMemo(function(){if(i===0||z===0)return 0;var ge=i/z;return ge*L},[i,z,L]),j=function(fe){fe.stopPropagation(),fe.preventDefault()},U=p.useRef({top:V,dragging:v,pageY:E,startTop:T});U.current={top:V,dragging:v,pageY:E,startTop:T};var J=function(fe){y(!0),w(yre(fe,c)),x(U.current.top),a(),fe.stopPropagation(),fe.preventDefault()};p.useEffect(function(){var ge=function(ve){ve.preventDefault()},fe=N.current,ue=I.current;return fe.addEventListener("touchstart",ge,{passive:!1}),ue.addEventListener("touchstart",J,{passive:!1}),function(){fe.removeEventListener("touchstart",ge),ue.removeEventListener("touchstart",J)}},[]);var te=p.useRef();te.current=z;var ae=p.useRef();ae.current=L,p.useEffect(function(){if(v){var ge,fe=function(ve){var ne=U.current,pe=ne.dragging,be=ne.pageY,Re=ne.startTop;rr.cancel(ge);var Se=N.current.getBoundingClientRect(),Ce=d/(c?Se.width:Se.height);if(pe){var ye=(yre(ve,c)-be)*Ce,he=Re;!O&&c?he-=ye:he+=ye;var _e=te.current,Oe=ae.current,De=Oe?he/Oe:0,Y=Math.ceil(De*_e);Y=Math.max(Y,0),Y=Math.min(Y,_e),ge=rr(function(){l(Y,c)})}},ue=function(){y(!1),s()};return window.addEventListener("mousemove",fe,{passive:!0}),window.addEventListener("touchmove",fe,{passive:!0}),window.addEventListener("mouseup",ue,{passive:!0}),window.addEventListener("touchend",ue,{passive:!0}),function(){window.removeEventListener("mousemove",fe),window.removeEventListener("touchmove",fe),window.removeEventListener("mouseup",ue),window.removeEventListener("touchend",ue),rr.cancel(ge)}}},[v]),p.useEffect(function(){return P(),function(){clearTimeout(A.current)}},[i]),p.useImperativeHandle(t,function(){return{delayHidden:P}});var K="".concat(n,"-scrollbar"),Q={position:"absolute",visibility:k?null:"hidden"},oe={position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"};return c?(Q.height=8,Q.left=0,Q.right=0,Q.bottom=0,oe.height="100%",oe.width=u,O?oe.left=V:oe.right=V):(Q.width=8,Q.top=0,Q.bottom=0,O?Q.right=0:Q.left=0,oe.width="100%",oe.height=u,oe.top=V),p.createElement("div",{ref:N,className:Te(K,ee(ee(ee({},"".concat(K,"-horizontal"),c),"".concat(K,"-vertical"),!c),"".concat(K,"-visible"),k)),style:W(W({},Q),f),onMouseDown:j,onMouseMove:P},p.createElement("div",{ref:I,className:Te("".concat(K,"-thumb"),ee({},"".concat(K,"-thumb-moving"),v)),style:W(W({},oe),h),onMouseDown:J}))}),Qtt=20;function Sre(){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,Qtt),Math.floor(n)}var Xtt=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles"],Ztt=[],Jtt={overflowY:"auto",overflowAnchor:"none"};function ent(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,f=e.itemKey,h=e.virtual,m=e.direction,g=e.scrollWidth,v=e.component,y=v===void 0?"div":v,b=e.onScroll,_=e.onVirtualScroll,E=e.onVisibleChange,w=e.innerProps,S=e.extraRender,C=e.styles,T=Dt(e,Xtt),x=p.useCallback(function(wt){return typeof f=="function"?f(wt):wt==null?void 0:wt[f]},[f]),O=Wtt(x),N=Ie(O,4),I=N[0],M=N[1],F=N[2],k=N[3],B=!!(h!==!1&&o&&a),A=p.useMemo(function(){return Object.values(F.maps).reduce(function(wt,St){return wt+St},0)},[F.id,F.maps]),P=B&&u&&(Math.max(a*u.length,A)>o||!!g),z=m==="rtl",L=Te(r,ee({},"".concat(r,"-rtl"),z),i),V=u||Ztt,j=p.useRef(),U=p.useRef(),J=p.useRef(),te=p.useState(0),ae=Ie(te,2),K=ae[0],Q=ae[1],oe=p.useState(0),ge=Ie(oe,2),fe=ge[0],ue=ge[1],le=p.useState(!1),ve=Ie(le,2),ne=ve[0],pe=ve[1],be=function(){pe(!0)},Re=function(){pe(!1)},Se={getKey:x};function Ce(wt){Q(function(St){var jt;typeof wt=="function"?jt=wt(St):jt=wt;var Pe=at(jt);return j.current.scrollTop=Pe,Pe})}var ye=p.useRef({start:0,end:V.length}),he=p.useRef(),_e=Utt(V,x),Oe=Ie(_e,1),De=Oe[0];he.current=De;var Y=p.useMemo(function(){if(!B)return{scrollHeight:void 0,start:0,end:V.length-1,offset:void 0};if(!P){var wt;return{scrollHeight:((wt=U.current)===null||wt===void 0?void 0:wt.offsetHeight)||0,start:0,end:V.length-1,offset:void 0}}for(var St=0,jt,Pe,Pt,rt=V.length,Mt=0;Mt<rt;Mt+=1){var It=V[Mt],xn=x(It),Hn=F.get(xn),R=St+(Hn===void 0?a:Hn);R>=K&&jt===void 0&&(jt=Mt,Pe=St),R>K+o&&Pt===void 0&&(Pt=Mt),St=R}return jt===void 0&&(jt=0,Pe=0,Pt=Math.ceil(o/a)),Pt===void 0&&(Pt=V.length-1),Pt=Math.min(Pt+1,V.length-1),{scrollHeight:St,start:jt,end:Pt,offset:Pe}},[P,B,K,V,k,o]),D=Y.scrollHeight,G=Y.start,ie=Y.end,me=Y.offset;ye.current.start=G,ye.current.end=ie;var se=p.useState({width:0,height:o}),Be=Ie(se,2),Ve=Be[0],re=Be[1],Me=function(St){re({width:St.offsetWidth,height:St.offsetHeight})},je=p.useRef(),ke=p.useRef(),Ge=p.useMemo(function(){return Sre(Ve.width,g)},[Ve.width,g]),Ue=p.useMemo(function(){return Sre(Ve.height,D)},[Ve.height,D]),qe=D-o,At=p.useRef(qe);At.current=qe;function at(wt){var St=wt;return Number.isNaN(At.current)||(St=Math.min(St,At.current)),St=Math.max(St,0),St}var pt=K<=0,Ct=K>=qe,bt=fe<=0,Vt=fe>=g,Tt=UEe(pt,Ct,bt,Vt),Ot=function(){return{x:z?-fe:fe,y:K}},Ut=p.useRef(Ot()),ze=Yn(function(wt){if(_){var St=W(W({},Ot()),wt);(Ut.current.x!==St.x||Ut.current.y!==St.y)&&(_(St),Ut.current=St)}});function Ye(wt,St){var jt=wt;St?(Ml.flushSync(function(){ue(jt)}),ze()):Ce(jt)}function He(wt){var St=wt.currentTarget.scrollTop;St!==K&&Ce(St),b==null||b(wt),ze()}var Ze=function(St){var jt=St,Pe=g?g-Ve.width:0;return jt=Math.max(jt,0),jt=Math.min(jt,Pe),jt},yt=Yn(function(wt,St){St?(Ml.flushSync(function(){ue(function(jt){var Pe=jt+(z?-wt:wt);return Ze(Pe)})}),ze()):Ce(function(jt){var Pe=jt+wt;return Pe})}),_t=ztt(B,pt,Ct,bt,Vt,!!g,yt),Bt=Ie(_t,2),Nt=Bt[0],vt=Bt[1];qtt(B,j,function(wt,St,jt,Pe){var Pt=Pe;return Tt(wt,St,jt)?!1:!Pt||!Pt._virtualHandled?(Pt&&(Pt._virtualHandled=!0),Nt({preventDefault:function(){},deltaX:wt?St:0,deltaY:wt?0:St}),!0):!1}),sr(function(){function wt(jt){var Pe=pt&&jt.detail<0,Pt=Ct&&jt.detail>0;B&&!Pe&&!Pt&&jt.preventDefault()}var St=j.current;return St.addEventListener("wheel",Nt,{passive:!1}),St.addEventListener("DOMMouseScroll",vt,{passive:!0}),St.addEventListener("MozMousePixelScroll",wt,{passive:!1}),function(){St.removeEventListener("wheel",Nt),St.removeEventListener("DOMMouseScroll",vt),St.removeEventListener("MozMousePixelScroll",wt)}},[B,pt,Ct]),sr(function(){if(g){var wt=Ze(fe);ue(wt),ze({x:wt})}},[Ve.width,g]);var ht=function(){var St,jt;(St=je.current)===null||St===void 0||St.delayHidden(),(jt=ke.current)===null||jt===void 0||jt.delayHidden()},kt=Ktt(j,V,F,a,x,function(){return M(!0)},Ce,ht);p.useImperativeHandle(t,function(){return{nativeElement:J.current,getScrollInfo:Ot,scrollTo:function(St){function jt(Pe){return Pe&&Gt(Pe)==="object"&&("left"in Pe||"top"in Pe)}jt(St)?(St.left!==void 0&&ue(Ze(St.left)),kt(St.top)):kt(St)}}}),sr(function(){if(E){var wt=V.slice(G,ie+1);E(wt,V)}},[G,ie,V]);var Et=Vtt(V,x,F,a),Yt=S==null?void 0:S({start:G,end:ie,virtual:P,offsetX:fe,offsetY:me,rtl:z,getSize:Et}),ct=jtt(V,G,ie,g,fe,I,d,Se),Rt=null;o&&(Rt=W(ee({},l?"height":"maxHeight",o),Jtt),B&&(Rt.overflowY="hidden",g&&(Rt.overflowX="hidden"),ne&&(Rt.pointerEvents="none")));var Ht={};return z&&(Ht.dir="rtl"),p.createElement("div",Ke({ref:J,style:W(W({},c),{},{position:"relative"}),className:L},Ht,T),p.createElement(Ta,{onResize:Me},p.createElement(y,{className:"".concat(r,"-holder"),style:Rt,ref:j,onScroll:He,onMouseEnter:ht},p.createElement(HEe,{prefixCls:r,height:D,offsetX:fe,offsetY:me,scrollWidth:g,onInnerResize:M,ref:U,innerProps:w,rtl:z,extra:Yt},ct))),P&&D>o&&p.createElement(_re,{ref:je,prefixCls:r,scrollOffset:K,scrollRange:D,rtl:z,onScroll:Ye,onStartMove:be,onStopMove:Re,spinSize:Ue,containerSize:Ve.height,style:C==null?void 0:C.verticalScrollBar,thumbStyle:C==null?void 0:C.verticalScrollBarThumb}),P&&g>Ve.width&&p.createElement(_re,{ref:ke,prefixCls:r,scrollOffset:fe,scrollRange:g,rtl:z,onScroll:Ye,onStartMove:be,onStopMove:Re,spinSize:Ge,containerSize:Ve.width,horizontal:!0,style:C==null?void 0:C.horizontalScrollBar,thumbStyle:C==null?void 0:C.horizontalScrollBarThumb}))}var P5=p.forwardRef(ent);P5.displayName="List";function tnt(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var nnt=["disabled","title","children","style","className"];function Ere(e){return typeof e=="string"||typeof e=="number"}var rnt=function(t,n){var r=gq(),i=r.prefixCls,o=r.id,a=r.open,s=r.multiple,l=r.mode,c=r.searchValue,u=r.toggleOpen,d=r.notFoundContent,f=r.onPopupScroll,h=p.useContext(vq),m=h.maxCount,g=h.flattenOptions,v=h.onActiveValue,y=h.defaultActiveFirstOption,b=h.onSelect,_=h.menuItemSelectedIcon,E=h.rawValues,w=h.fieldNames,S=h.virtual,C=h.direction,T=h.listHeight,x=h.listItemHeight,O=h.optionRender,N="".concat(i,"-item"),I=ah(function(){return g},[a,g],function(fe,ue){return ue[0]&&fe[1]!==ue[1]}),M=p.useRef(null),F=p.useMemo(function(){return s&&CH(m)&&(E==null?void 0:E.size)>=m},[s,m,E==null?void 0:E.size]),k=function(ue){ue.preventDefault()},B=function(ue){var le;(le=M.current)===null||le===void 0||le.scrollTo(typeof ue=="number"?{index:ue}:ue)},A=p.useCallback(function(fe){return l==="combobox"?!1:E.has(fe)},[l,nt(E).toString(),E.size]),P=function(ue){for(var le=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,ve=I.length,ne=0;ne<ve;ne+=1){var pe=(ue+ne*le+ve)%ve,be=I[pe]||{},Re=be.group,Se=be.data;if(!Re&&!(Se!=null&&Se.disabled)&&(A(Se.value)||!F))return pe}return-1},z=p.useState(function(){return P(0)}),L=Ie(z,2),V=L[0],j=L[1],U=function(ue){var le=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;j(ue);var ve={source:le?"keyboard":"mouse"},ne=I[ue];if(!ne){v(null,-1,ve);return}v(ne.value,ue,ve)};p.useEffect(function(){U(y!==!1?P(0):-1)},[I.length,c]);var J=p.useCallback(function(fe){return l==="combobox"?String(fe).toLowerCase()===c.toLowerCase():E.has(fe)},[l,c,nt(E).toString(),E.size]);p.useEffect(function(){var fe=setTimeout(function(){if(!s&&a&&E.size===1){var le=Array.from(E)[0],ve=I.findIndex(function(ne){var pe=ne.data;return pe.value===le});ve!==-1&&(U(ve),B(ve))}});if(a){var ue;(ue=M.current)===null||ue===void 0||ue.scrollTo(void 0)}return function(){return clearTimeout(fe)}},[a,c]);var te=function(ue){ue!==void 0&&b(ue,{selected:!E.has(ue)}),s||u(!1)};if(p.useImperativeHandle(n,function(){return{onKeyDown:function(ue){var le=ue.which,ve=ue.ctrlKey;switch(le){case dt.N:case dt.P:case dt.UP:case dt.DOWN:{var ne=0;if(le===dt.UP?ne=-1:le===dt.DOWN?ne=1:tnt()&&ve&&(le===dt.N?ne=1:le===dt.P&&(ne=-1)),ne!==0){var pe=P(V+ne,ne);B(pe),U(pe,!0)}break}case dt.TAB:case dt.ENTER:{var be,Re=I[V];Re&&!(Re!=null&&(be=Re.data)!==null&&be!==void 0&&be.disabled)&&!F?te(Re.value):te(void 0),a&&ue.preventDefault();break}case dt.ESC:u(!1),a&&ue.stopPropagation()}},onKeyUp:function(){},scrollTo:function(ue){B(ue)}}}),I.length===0)return p.createElement("div",{role:"listbox",id:"".concat(o,"_list"),className:"".concat(N,"-empty"),onMouseDown:k},d);var ae=Object.keys(w).map(function(fe){return w[fe]}),K=function(ue){return ue.label};function Q(fe,ue){var le=fe.group;return{role:le?"presentation":"option",id:"".concat(o,"_list_").concat(ue)}}var oe=function(ue){var le=I[ue];if(!le)return null;var ve=le.data||{},ne=ve.value,pe=le.group,be=xi(ve,!0),Re=K(le);return le?p.createElement("div",Ke({"aria-label":typeof Re=="string"&&!pe?Re:null},be,{key:ue},Q(le,ue),{"aria-selected":J(ne)}),ne):null},ge={role:"listbox",id:"".concat(o,"_list")};return p.createElement(p.Fragment,null,S&&p.createElement("div",Ke({},ge,{style:{height:0,width:0,overflow:"hidden"}}),oe(V-1),oe(V),oe(V+1)),p.createElement(P5,{itemKey:"key",ref:M,data:I,height:T,itemHeight:x,fullHeight:!1,onMouseDown:k,onScroll:f,virtual:S,direction:C,innerProps:S?null:ge},function(fe,ue){var le=fe.group,ve=fe.groupOption,ne=fe.data,pe=fe.label,be=fe.value,Re=ne.key;if(le){var Se,Ce=(Se=ne.title)!==null&&Se!==void 0?Se:Ere(pe)?pe.toString():void 0;return p.createElement("div",{className:Te(N,"".concat(N,"-group"),ne.className),title:Ce},pe!==void 0?pe:Re)}var ye=ne.disabled,he=ne.title;ne.children;var _e=ne.style,Oe=ne.className,De=Dt(ne,nnt),Y=ur(De,ae),D=A(be),G=ye||!D&&F,ie="".concat(N,"-option"),me=Te(N,ie,Oe,ee(ee(ee(ee({},"".concat(ie,"-grouped"),ve),"".concat(ie,"-active"),V===ue&&!G),"".concat(ie,"-disabled"),G),"".concat(ie,"-selected"),D)),se=K(fe),Be=!_||typeof _=="function"||D,Ve=typeof se=="number"?se:se||be,re=Ere(Ve)?Ve.toString():void 0;return he!==void 0&&(re=he),p.createElement("div",Ke({},xi(Y),S?{}:Q(fe,ue),{"aria-selected":J(be),className:me,title:re,onMouseMove:function(){V===ue||G||U(ue)},onClick:function(){G||te(be)},style:_e}),p.createElement("div",{className:"".concat(ie,"-content")},typeof O=="function"?O(fe,{index:ue}):Ve),p.isValidElement(_)||D,Be&&p.createElement(k5,{className:"".concat(N,"-option-state"),customizeIcon:_,customizeIconProps:{value:be,disabled:G,isSelected:D}},D?"✓":null))}))},int=p.forwardRef(rnt);const ont=function(e,t){var n=p.useRef({values:new Map,options:new Map}),r=p.useMemo(function(){var o=n.current,a=o.values,s=o.options,l=e.map(function(d){if(d.label===void 0){var f;return W(W({},d),{},{label:(f=a.get(d.value))===null||f===void 0?void 0:f.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=p.useCallback(function(o){return t.get(o)||n.current.options.get(o)},[t]);return[r,i]};function DL(e,t){return FEe(e).join("").toUpperCase().includes(t)}const ant=function(e,t,n,r,i){return p.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(h,m){return i?DL(m[i],u):m[o]?DL(m[a!=="children"?a:"label"],u):DL(m[s],u)},f=c?function(h){return wH(h)}:function(h){return h};return e.forEach(function(h){if(h[o]){var m=d(n,f(h));if(m)l.push(h);else{var g=h[o].filter(function(v){return d(n,f(v))});g.length&&l.push(W(W({},h),{},ee({},o,g)))}return}d(n,f(h))&&l.push(h)}),l},[e,r,i,n,t])};var Cre=0,snt=Qs();function lnt(){var e;return snt?(e=Cre,Cre+=1):e="TEST_OR_SSR",e}function Sq(e){var t=p.useState(),n=Ie(t,2),r=n[0],i=n[1];return p.useEffect(function(){i("rc_select_".concat(lnt()))},[]),e||r}var cnt=["children","value"],unt=["children"];function dnt(e){var t=e,n=t.key,r=t.props,i=r.children,o=r.value,a=Dt(r,cnt);return W({key:n,value:o!==void 0?o:n,children:i},a)}function zEe(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return Mo(e).map(function(n,r){if(!p.isValidElement(n)||!n.type)return null;var i=n,o=i.type.isSelectOptGroup,a=i.key,s=i.props,l=s.children,c=Dt(s,unt);return t||!o?dnt(n):W(W({key:"__RC_SELECT_GRP__".concat(a===null?r:a,"__"),label:a},c),{},{options:zEe(l)})}).filter(function(n){return n})}var fnt=function(t,n,r,i,o){return p.useMemo(function(){var a=t,s=!t;s&&(a=zEe(n));var l=new Map,c=new Map,u=function(h,m,g){g&&typeof g=="string"&&h.set(m[g],m)},d=function f(h){for(var m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,g=0;g<h.length;g+=1){var v=h[g];!v[r.options]||m?(l.set(v[r.value],v),u(c,v,r.label),u(c,v,i),u(c,v,o)):f(v[r.options],!0)}};return d(a),{options:a,valueOptions:l,labelOptions:c}},[t,n,r,i,o])};function wre(e){var t=p.useRef();t.current=e;var n=p.useCallback(function(){return t.current.apply(t,arguments)},[]);return n}var pnt=["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"],hnt=["inputValue"];function mnt(e){return!e||Gt(e)!=="object"}var gnt=p.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,f=d===void 0?!0:d,h=e.onSelect,m=e.onDeselect,g=e.dropdownMatchSelectWidth,v=g===void 0?!0:g,y=e.filterOption,b=e.filterSort,_=e.optionFilterProp,E=e.optionLabelProp,w=e.options,S=e.optionRender,C=e.children,T=e.defaultActiveFirstOption,x=e.menuItemSelectedIcon,O=e.virtual,N=e.direction,I=e.listHeight,M=I===void 0?200:I,F=e.listItemHeight,k=F===void 0?20:F,B=e.labelRender,A=e.value,P=e.defaultValue,z=e.labelInValue,L=e.onChange,V=e.maxCount,j=Dt(e,pnt),U=Sq(n),J=TH(r),te=!!(!w&&C),ae=p.useMemo(function(){return y===void 0&&r==="combobox"?!1:y},[y,r]),K=p.useMemo(function(){return jEe(s,te)},[JSON.stringify(s),te]),Q=Pn("",{value:c!==void 0?c:l,postState:function(Ze){return Ze||""}}),oe=Ie(Q,2),ge=oe[0],fe=oe[1],ue=fnt(w,C,K,_,E),le=ue.valueOptions,ve=ue.labelOptions,ne=ue.options,pe=p.useCallback(function(He){var Ze=FEe(He);return Ze.map(function(yt){var _t,Bt,Nt,vt,ht;if(mnt(yt))_t=yt;else{var kt;Nt=yt.key,Bt=yt.label,_t=(kt=yt.value)!==null&&kt!==void 0?kt:Nt}var Et=le.get(_t);if(Et){var Yt;Bt===void 0&&(Bt=Et==null?void 0:Et[E||K.label]),Nt===void 0&&(Nt=(Yt=Et==null?void 0:Et.key)!==null&&Yt!==void 0?Yt:_t),vt=Et==null?void 0:Et.disabled,ht=Et==null?void 0:Et.title}return{label:Bt,value:_t,key:Nt,disabled:vt,title:ht}})},[K,E,le]),be=Pn(P,{value:A}),Re=Ie(be,2),Se=Re[0],Ce=Re[1],ye=p.useMemo(function(){var He,Ze=J&&Se===null?[]:Se,yt=pe(Ze);return r==="combobox"&&utt((He=yt[0])===null||He===void 0?void 0:He.value)?[]:yt},[Se,pe,r,J]),he=ont(ye,le),_e=Ie(he,2),Oe=_e[0],De=_e[1],Y=p.useMemo(function(){if(!r&&Oe.length===1){var He=Oe[0];if(He.value===null&&(He.label===null||He.label===void 0))return[]}return Oe.map(function(Ze){var yt;return W(W({},Ze),{},{label:(yt=typeof B=="function"?B(Ze):Ze.label)!==null&&yt!==void 0?yt:Ze.value})})},[r,Oe,B]),D=p.useMemo(function(){return new Set(Oe.map(function(He){return He.value}))},[Oe]);p.useEffect(function(){if(r==="combobox"){var He,Ze=(He=Oe[0])===null||He===void 0?void 0:He.value;fe(ctt(Ze)?String(Ze):"")}},[Oe]);var G=wre(function(He,Ze){var yt=Ze??He;return ee(ee({},K.value,He),K.label,yt)}),ie=p.useMemo(function(){if(r!=="tags")return ne;var He=nt(ne),Ze=function(_t){return le.has(_t)};return nt(Oe).sort(function(yt,_t){return yt.value<_t.value?-1:1}).forEach(function(yt){var _t=yt.value;Ze(_t)||He.push(G(_t,yt.label))}),He},[G,ne,le,Oe,r]),me=ant(ie,K,ge,ae,_),se=p.useMemo(function(){return r!=="tags"||!ge||me.some(function(He){return He[_||"value"]===ge})||me.some(function(He){return He[K.value]===ge})?me:[G(ge)].concat(nt(me))},[G,_,r,me,ge,K]),Be=function He(Ze){var yt=nt(Ze).sort(function(_t,Bt){return b(_t,Bt,{searchValue:ge})});return yt.map(function(_t){return Array.isArray(_t.options)?W(W({},_t),{},{options:_t.options.length>0?He(_t.options):_t.options}):_t})},Ve=p.useMemo(function(){return b?Be(se):se},[se,b,ge]),re=p.useMemo(function(){return Ptt(Ve,{fieldNames:K,childrenAsData:te})},[Ve,K,te]),Me=function(Ze){var yt=pe(Ze);if(Ce(yt),L&&(yt.length!==Oe.length||yt.some(function(Nt,vt){var ht;return((ht=Oe[vt])===null||ht===void 0?void 0:ht.value)!==(Nt==null?void 0:Nt.value)}))){var _t=z?yt:yt.map(function(Nt){return Nt.value}),Bt=yt.map(function(Nt){return wH(De(Nt.value))});L(J?_t:_t[0],J?Bt:Bt[0])}},je=p.useState(null),ke=Ie(je,2),Ge=ke[0],Ue=ke[1],qe=p.useState(0),At=Ie(qe,2),at=At[0],pt=At[1],Ct=T!==void 0?T:r!=="combobox",bt=p.useCallback(function(He,Ze){var yt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},_t=yt.source,Bt=_t===void 0?"keyboard":_t;pt(Ze),a&&r==="combobox"&&He!==null&&Bt==="keyboard"&&Ue(String(He))},[a,r]),Vt=function(Ze,yt,_t){var Bt=function(){var wt,St=De(Ze);return[z?{label:St==null?void 0:St[K.label],value:Ze,key:(wt=St==null?void 0:St.key)!==null&&wt!==void 0?wt:Ze}:Ze,wH(St)]};if(yt&&h){var Nt=Bt(),vt=Ie(Nt,2),ht=vt[0],kt=vt[1];h(ht,kt)}else if(!yt&&m&&_t!=="clear"){var Et=Bt(),Yt=Ie(Et,2),ct=Yt[0],Rt=Yt[1];m(ct,Rt)}},Tt=wre(function(He,Ze){var yt,_t=J?Ze.selected:!0;_t?yt=J?[].concat(nt(Oe),[He]):[He]:yt=Oe.filter(function(Bt){return Bt.value!==He}),Me(yt),Vt(He,_t),r==="combobox"?Ue(""):(!TH||f)&&(fe(""),Ue(""))}),Ot=function(Ze,yt){Me(Ze);var _t=yt.type,Bt=yt.values;(_t==="remove"||_t==="clear")&&Bt.forEach(function(Nt){Vt(Nt.value,!1,_t)})},Ut=function(Ze,yt){if(fe(Ze),Ue(null),yt.source==="submit"){var _t=(Ze||"").trim();if(_t){var Bt=Array.from(new Set([].concat(nt(D),[_t])));Me(Bt),Vt(_t,!0),fe("")}return}yt.source!=="blur"&&(r==="combobox"&&Me(Ze),u==null||u(Ze))},ze=function(Ze){var yt=Ze;r!=="tags"&&(yt=Ze.map(function(Bt){var Nt=ve.get(Bt);return Nt==null?void 0:Nt.value}).filter(function(Bt){return Bt!==void 0}));var _t=Array.from(new Set([].concat(nt(D),nt(yt))));Me(_t),_t.forEach(function(Bt){Vt(Bt,!0)})},Ye=p.useMemo(function(){var He=O!==!1&&v!==!1;return W(W({},ue),{},{flattenOptions:re,onActiveValue:bt,defaultActiveFirstOption:Ct,onSelect:Tt,menuItemSelectedIcon:x,rawValues:D,fieldNames:K,virtual:He,direction:N,listHeight:M,listItemHeight:k,childrenAsData:te,maxCount:V,optionRender:S})},[V,ue,re,bt,Ct,Tt,x,D,K,O,v,N,M,k,te,S]);return p.createElement(vq.Provider,{value:Ye},p.createElement(bq,Ke({},j,{id:U,prefixCls:o,ref:t,omitDomProps:hnt,mode:r,displayValues:Y,onDisplayValuesChange:Ot,direction:N,searchValue:ge,onSearch:Ut,autoClearSearchValue:f,onSearchSplit:ze,dropdownMatchSelectWidth:v,OptionList:int,emptyOptions:!re.length,activeValue:Ge,activeDescendantId:"".concat(U,"_list_").concat(at)})))}),Eq=gnt;Eq.Option=_q;Eq.OptGroup=yq;function Id(e,t,n){return Te({[`${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 wh=(e,t)=>t||e,vnt=()=>{const[,e]=Go(),[t]=ds("Empty"),r=new ir(e.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return p.createElement("svg",{style:r,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},p.createElement("title",null,(t==null?void 0:t.description)||"Empty"),p.createElement("g",{fill:"none",fillRule:"evenodd"},p.createElement("g",{transform:"translate(24 31.67)"},p.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),p.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"}),p.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)"}),p.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"}),p.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"})),p.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"}),p.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},p.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),p.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},bnt=()=>{const[,e]=Go(),[t]=ds("Empty"),{colorFill:n,colorFillTertiary:r,colorFillQuaternary:i,colorBgContainer:o}=e,{borderColor:a,shadowColor:s,contentColor:l}=p.useMemo(()=>({borderColor:new ir(n).onBackground(o).toHexString(),shadowColor:new ir(r).onBackground(o).toHexString(),contentColor:new ir(i).onBackground(o).toHexString()}),[n,r,i,o]);return p.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},p.createElement("title",null,(t==null?void 0:t.description)||"Empty"),p.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},p.createElement("ellipse",{fill:s,cx:"32",cy:"33",rx:"32",ry:"7"}),p.createElement("g",{fillRule:"nonzero",stroke:a},p.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"}),p.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}))))},ynt=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}}}}},_nt=cr("Empty",e=>{const{componentCls:t,controlHeightLG:n,calc:r}=e,i=Kn(e,{emptyImgCls:`${t}-img`,emptyImgHeight:r(n).mul(2.5).equal(),emptyImgHeightMD:n,emptyImgHeightSM:r(n).mul(.875).equal()});return[ynt(i)]});var Snt=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 VEe=p.createElement(vnt,null),GEe=p.createElement(bnt,null),Dp=e=>{var t,n,r,i,o,a,s,l;const{className:c,rootClassName:u,prefixCls:d,image:f=VEe,description:h,children:m,imageStyle:g,style:v,classNames:y,styles:b}=e,_=Snt(e,["className","rootClassName","prefixCls","image","description","children","imageStyle","style","classNames","styles"]),{getPrefixCls:E,direction:w,empty:S}=p.useContext(Qt),C=E("empty",d),[T,x,O]=_nt(C),[N]=ds("Empty"),I=typeof h<"u"?h:N==null?void 0:N.description,M=typeof I=="string"?I:"empty";let F=null;return typeof f=="string"?F=p.createElement("img",{alt:M,src:f}):F=f,T(p.createElement("div",Object.assign({className:Te(x,O,C,S==null?void 0:S.className,{[`${C}-normal`]:f===GEe,[`${C}-rtl`]:w==="rtl"},c,u,(t=S==null?void 0:S.classNames)===null||t===void 0?void 0:t.root,y==null?void 0:y.root),style:Object.assign(Object.assign(Object.assign(Object.assign({},(n=S==null?void 0:S.styles)===null||n===void 0?void 0:n.root),S==null?void 0:S.style),b==null?void 0:b.root),v)},_),p.createElement("div",{className:Te(`${C}-image`,(r=S==null?void 0:S.classNames)===null||r===void 0?void 0:r.image,y==null?void 0:y.image),style:Object.assign(Object.assign(Object.assign({},g),(i=S==null?void 0:S.styles)===null||i===void 0?void 0:i.image),b==null?void 0:b.image)},F),I&&p.createElement("div",{className:Te(`${C}-description`,(o=S==null?void 0:S.classNames)===null||o===void 0?void 0:o.description,y==null?void 0:y.description),style:Object.assign(Object.assign({},(a=S==null?void 0:S.styles)===null||a===void 0?void 0:a.description),b==null?void 0:b.description)},I),m&&p.createElement("div",{className:Te(`${C}-footer`,(s=S==null?void 0:S.classNames)===null||s===void 0?void 0:s.footer,y==null?void 0:y.footer),style:Object.assign(Object.assign({},(l=S==null?void 0:S.styles)===null||l===void 0?void 0:l.footer),b==null?void 0:b.footer)},m)))};Dp.PRESENTED_IMAGE_DEFAULT=VEe;Dp.PRESENTED_IMAGE_SIMPLE=GEe;const _S=e=>{const{componentName:t}=e,{getPrefixCls:n}=p.useContext(Qt),r=n("empty");switch(t){case"Table":case"List":return ce.createElement(Dp,{image:Dp.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return ce.createElement(Dp,{image:Dp.PRESENTED_IMAGE_SIMPLE,className:`${r}-small`});case"Table.filter":return null;default:return ce.createElement(Dp,null)}},Th=function(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0;var r,i;const{variant:o,[e]:a}=p.useContext(Qt),s=p.useContext(lEe),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=Vqe.includes(c);return[c,u]},Ent=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 Cq(e,t){return e||Ent(t)}const Tre=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"}},Cnt=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({},gr(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:y5},[`
${i}${s}topLeft,
${o}${s}topLeft,
${i}${s}topRight,
${o}${s}topRight
`]:{animationName:S5},[`${a}${s}bottomLeft`]:{animationName:_5},[`
${a}${s}topLeft,
${a}${s}topRight
`]:{animationName:E5},"&-hidden":{display:"none"},[r]:Object.assign(Object.assign({},Tre(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"},kl),"&-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({},Tre(e)),{color:e.colorTextDisabled})}),[`${l}:has(+ ${l})`]:{borderEndStartRadius:0,borderEndEndRadius:0,[`& + ${l}`]:{borderStartStartRadius:0,borderStartEndRadius:0}},"&-rtl":{direction:"rtl"}})},$f(e,"slide-up"),$f(e,"slide-down"),h_(e,"move-up"),h_(e,"move-down")]},WEe=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:Ae(t),itemLineHeight:Ae(e.calc(t).sub(e.calc(e.lineWidth).mul(2)).equal())}},wnt=e=>{const{multipleSelectItemHeight:t,selectHeight:n,lineWidth:r}=e;return e.calc(n).sub(t).div(2).sub(r).equal()},qEe=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({},y0()),{display:"inline-flex",alignItems:"center",color:l,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${n}`]:{verticalAlign:"-0.2em"},"&:hover":{color:c}})}}}},Tnt=(e,t)=>{const{componentCls:n,INTERNAL_FIXED_ITEM_MARGIN:r}=e,i=`${n}-selection-overflow`,o=e.multipleSelectItemHeight,a=wnt(e),s=t?`${n}-${t}`:"",l=WEe(e);return{[`${n}-multiple${s}`]:Object.assign(Object.assign({},qEe(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:`${Ae(r)} 0`,lineHeight:Ae(o),visibility:"hidden",content:'"\\a0"'}},[`${n}-selection-item`]:{height:l.itemHeight,lineHeight:Ae(l.itemLineHeight)},[`${n}-selection-wrap`]:{alignSelf:"flex-start","&:after":{lineHeight:Ae(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:Ae(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 LL(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[Tnt(e,t),i]}const xnt=e=>{const{componentCls:t}=e,n=Kn(e,{selectHeight:e.controlHeightSM,multipleSelectItemHeight:e.multipleItemHeightSM,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS}),r=Kn(e,{fontSize:e.fontSizeLG,selectHeight:e.controlHeightLG,multipleSelectItemHeight:e.multipleItemHeightLG,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius});return[LL(e),LL(n,"sm"),{[`${t}-multiple${t}-sm`]:{[`${t}-selection-placeholder`]:{insetInline:e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal()},[`${t}-selection-search`]:{marginInlineStart:2}}},LL(r,"lg")]};function $L(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({},gr(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:Ae(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 ${Ae(r)}`,[`${n}-selection-search-input`]:{height:o},"&:after":{lineHeight:Ae(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 ${Ae(r)}`,"&:after":{display:"none"}}}}}}}function Ont(e){const{componentCls:t}=e,n=e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal();return[$L(e),$L(Kn(e,{controlHeight:e.controlHeightSM,borderRadius:e.borderRadiusSM}),"sm"),{[`${t}-single${t}-sm`]:{[`&:not(${t}-customize-input)`]:{[`${t}-selector`]:{padding:`0 ${Ae(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()}}}},$L(Kn(e,{controlHeight:e.singleItemHeightLG,fontSize:e.fontSizeLG,borderRadius:e.borderRadiusLG}),"lg")]}const Rnt=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:f,controlItemBgHover:h,colorBgContainer:m,colorFillSecondary:g,colorBgContainerDisabled:v,colorTextDisabled:y,colorPrimaryHover:b,colorPrimary:_,controlOutline:E}=e,w=s*2,S=r*2,C=Math.min(i-w,i-S),T=Math.min(o-w,o-S),x=Math.min(a-w,a-S);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(s/2),zIndexPopup:c+50,optionSelectedColor:u,optionSelectedFontWeight:d,optionSelectedBg:f,optionActiveBg:h,optionPadding:`${(i-t*n)/2}px ${l}px`,optionFontSize:t,optionLineHeight:n,optionHeight:i,selectorBg:m,clearBg:m,singleItemHeightLG:a,multipleItemBg:g,multipleItemBorderColor:"transparent",multipleItemHeight:C,multipleItemHeightSM:T,multipleItemHeightLG:x,multipleSelectorBgDisabled:v,multipleItemColorDisabled:y,multipleItemBorderColorDisabled:"transparent",showArrowPaddingInlineEnd:Math.ceil(e.fontSize*1.25),hoverBorderColor:b,activeBorderColor:_,activeOutlineColor:E,selectAffixPadding:s}},YEe=(e,t)=>{const{componentCls:n,antCls:r,controlOutlineWidth:i}=e;return{[`&:not(${n}-customize-input) ${n}-selector`]:{border:`${Ae(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 ${Ae(i)} ${t.activeOutlineColor}`,outline:0},[`${n}-prefix`]:{color:t.color}}}},xre=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},YEe(e,t))}),Int=e=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign({},YEe(e,{borderColor:e.colorBorder,hoverBorderHover:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeOutlineColor:e.activeOutlineColor,color:e.colorText})),xre(e,{status:"error",borderColor:e.colorError,hoverBorderHover:e.colorErrorHover,activeBorderColor:e.colorError,activeOutlineColor:e.colorErrorOutline,color:e.colorError})),xre(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:`${Ae(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}})}),KEe=(e,t)=>{const{componentCls:n,antCls:r}=e;return{[`&:not(${n}-customize-input) ${n}-selector`]:{background:t.bg,border:`${Ae(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}}}},Ore=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},KEe(e,t))}),Ant=e=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign({},KEe(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor,color:e.colorText})),Ore(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,color:e.colorError})),Ore(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:`${Ae(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}})}),Nnt=e=>({"&-borderless":{[`${e.componentCls}-selector`]:{background:"transparent",border:`${Ae(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:`${Ae(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}}}}),Mnt=e=>({[e.componentCls]:Object.assign(Object.assign(Object.assign({},Int(e)),Ant(e)),Nnt(e))}),knt=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"}}}},Pnt=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"}}}},Dnt=e=>{const{antCls:t,componentCls:n,inputPaddingHorizontalBase:r,iconCls:i}=e;return{[n]:Object.assign(Object.assign({},gr(e)),{position:"relative",display:"inline-flex",cursor:"pointer",[`&:not(${n}-customize-input) ${n}-selector`]:Object.assign(Object.assign({},knt(e)),Pnt(e)),[`${n}-selection-item`]:Object.assign(Object.assign({flex:1,fontWeight:"normal",position:"relative",userSelect:"none"},kl),{[`> ${t}-typography`]:{display:"inline"}}),[`${n}-selection-placeholder`]:Object.assign(Object.assign({},kl),{flex:1,color:e.colorTextPlaceholder,pointerEvents:"none"}),[`${n}-arrow`]:Object.assign(Object.assign({},y0()),{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()}}}}}},Lnt=e=>{const{componentCls:t}=e;return[{[t]:{[`&${t}-in-form-item`]:{width:"100%"}}},Dnt(e),Ont(e),xnt(e),Cnt(e),{[`${t}-rtl`]:{direction:"rtl"}},S0(e,{borderElCls:`${t}-selector`,focusElCls:`${t}-focused`})]},wq=cr("Select",(e,t)=>{let{rootPrefixCls:n}=t;const r=Kn(e,{rootPrefixCls:n,inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(1).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[Lnt(r),Mnt(r)]},Rnt,{unitless:{optionLineHeight:!0,optionSelectedFontWeight:!0}});var $nt={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"},Fnt=function(t,n){return p.createElement(Nn,Ke({},t,{ref:n,icon:$nt}))},Yp=p.forwardRef(Fnt),Bnt={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"},jnt=function(t,n){return p.createElement(Nn,Ke({},t,{ref:n,icon:Bnt}))},c2=p.forwardRef(jnt),Hnt={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"},Unt=function(t,n){return p.createElement(Nn,Ke({},t,{ref:n,icon:Hnt}))},D5=p.forwardRef(Unt);function L5(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:f}=e;const h=n??p.createElement(qf,null),m=b=>t===null&&!s&&!d?null:p.createElement(p.Fragment,null,c!==!1&&b,s&&u);let g=null;if(t!==void 0)g=m(t);else if(o)g=m(p.createElement(xd,{spin:!0}));else{const b=`${l}-suffix`;g=_=>{let{open:E,showSearch:w}=_;return m(E&&w?p.createElement(D5,{className:b}):p.createElement(c2,{className:b}))}}let v=null;r!==void 0?v=r:a?v=p.createElement(Yp,null):v=null;let y=null;return i!==void 0?y=i:y=p.createElement(Yf,null),{clearIcon:h,suffixIcon:g,itemIcon:v,removeIcon:y}}function Tq(e,t){return t!==void 0?t:e!==null}var znt=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 QEe="SECRET_COMBOBOX_MODE_DO_NOT_USE",Vnt=(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:f,size:h,disabled:m,notFoundContent:g,status:v,builtinPlacements:y,dropdownMatchSelectWidth:b,popupMatchSelectWidth:_,direction:E,style:w,allowClear:S,variant:C,dropdownStyle:T,transitionName:x,tagRender:O,maxCount:N,prefix:I}=e,M=znt(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:F,getPrefixCls:k,renderEmpty:B,direction:A,virtual:P,popupMatchSelectWidth:z,popupOverflow:L,select:V}=p.useContext(Qt),[,j]=Go(),U=f??(j==null?void 0:j.controlHeight),J=k("select",r),te=k(),ae=E??A,{compactSize:K,compactItemClassnames:Q}=Fd(J,ae),[oe,ge]=Th("select",C,i),fe=ui(J),[ue,le,ve]=wq(J,fe),ne=p.useMemo(()=>{const{mode:Ge}=e;if(Ge!=="combobox")return Ge===QEe?"combobox":Ge},[e.mode]),pe=ne==="multiple"||ne==="tags",be=Tq(e.suffixIcon,e.showArrow),Re=(n=_??b)!==null&&n!==void 0?n:z,{status:Se,hasFeedback:Ce,isFormItemInput:ye,feedbackIcon:he}=p.useContext(ia),_e=wh(Se,v);let Oe;g!==void 0?Oe=g:ne==="combobox"?Oe=null:Oe=(B==null?void 0:B("Select"))||p.createElement(_S,{componentName:"Select"});const{suffixIcon:De,itemIcon:Y,removeIcon:D,clearIcon:G}=L5(Object.assign(Object.assign({},M),{multiple:pe,hasFeedback:Ce,feedbackIcon:he,showSuffixIcon:be,prefixCls:J,componentName:"Select"})),ie=S===!0?{clearIcon:G}:S,me=ur(M,["suffixIcon","itemIcon"]),se=Te(l||c,{[`${J}-dropdown-${ae}`]:ae==="rtl"},a,ve,fe,le),Be=So(Ge=>{var Ue;return(Ue=h??K)!==null&&Ue!==void 0?Ue:Ge}),Ve=p.useContext(Vo),re=m??Ve,Me=Te({[`${J}-lg`]:Be==="large",[`${J}-sm`]:Be==="small",[`${J}-rtl`]:ae==="rtl",[`${J}-${oe}`]:ge,[`${J}-in-form-item`]:ye},Id(J,_e,Ce),Q,V==null?void 0:V.className,o,a,ve,fe,le),je=p.useMemo(()=>d!==void 0?d:ae==="rtl"?"bottomRight":"bottomLeft",[d,ae]),[ke]=Ou("SelectLike",T==null?void 0:T.zIndex);return ue(p.createElement(Eq,Object.assign({ref:t,virtual:P,showSearch:V==null?void 0:V.showSearch},me,{style:Object.assign(Object.assign({},V==null?void 0:V.style),w),dropdownMatchSelectWidth:Re,transitionName:Va(te,"slide-up",x),builtinPlacements:Cq(y,L),listHeight:u,listItemHeight:U,mode:ne,prefixCls:J,placement:je,direction:ae,prefix:I,suffixIcon:De,menuItemSelectedIcon:Y,removeIcon:D,allowClear:ie,notFoundContent:Oe,className:Me,getPopupContainer:s||F,dropdownClassName:se,disabled:re,dropdownStyle:Object.assign(Object.assign({},T),{zIndex:ke}),maxCount:pe?N:void 0,tagRender:pe?O:void 0})))},vu=p.forwardRef(Vnt),Gnt=Ig(vu,"dropdownAlign");vu.SECRET_COMBOBOX_MODE_DO_NOT_USE=QEe;vu.Option=_q;vu.OptGroup=yq;vu._InternalPanelDoNotUseOrYouWillBeFired=Gnt;const mg=["xxl","xl","lg","md","sm","xs"],Wnt=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)`}),qnt=e=>{const t=e,n=[].concat(mg).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 XEe(){const[,e]=Go(),t=Wnt(qnt(e));return ce.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 xq(){const[,e]=p.useReducer(t=>t+1,0);return e}function $5(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;const t=p.useRef({}),n=xq(),r=XEe();return sr(()=>{const i=r.subscribe(o=>{t.current=o,e&&n()});return()=>r.unsubscribe(i)},[]),t.current}const xH=p.createContext({}),Ynt=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:f,borderRadiusLG:h,borderRadiusSM:m,lineWidth:g,lineType:v}=e,y=(b,_,E)=>({width:b,height:b,borderRadius:"50%",[`&${n}-square`]:{borderRadius:E},[`&${n}-icon`]:{fontSize:_,[`> ${r}`]:{margin:0}}});return{[n]:Object.assign(Object.assign(Object.assign(Object.assign({},gr(e)),{position:"relative",display:"inline-flex",justifyContent:"center",alignItems:"center",overflow:"hidden",color:o,whiteSpace:"nowrap",textAlign:"center",verticalAlign:"middle",background:i,border:`${Ae(g)} ${v} transparent`,"&-image":{background:"transparent"},[`${t}-image-img`]:{display:"block"}}),y(a,c,f)),{"&-lg":Object.assign({},y(s,u,h)),"&-sm":Object.assign({},y(l,d,m)),"> img":{display:"block",width:"100%",height:"100%",objectFit:"cover"}})}},Knt=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}}}},Qnt=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}},ZEe=cr("Avatar",e=>{const{colorTextLightSolid:t,colorTextPlaceholder:n}=e,r=Kn(e,{avatarBg:n,avatarColor:t});return[Ynt(r),Knt(r)]},Qnt);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 Znt=(e,t)=>{const[n,r]=p.useState(1),[i,o]=p.useState(!1),[a,s]=p.useState(!0),l=p.useRef(null),c=p.useRef(null),u=oa(t,l),{getPrefixCls:d,avatar:f}=p.useContext(Qt),h=p.useContext(xH),m=()=>{if(!c.current||!l.current)return;const Q=c.current.offsetWidth,oe=l.current.offsetWidth;if(Q!==0&&oe!==0){const{gap:ge=4}=e;ge*2<oe&&r(oe-ge*2<Q?(oe-ge*2)/Q:1)}};p.useEffect(()=>{o(!0)},[]),p.useEffect(()=>{s(!0),r(1)},[e.src]),p.useEffect(m,[e.gap]);const g=()=>{const{onError:Q}=e;(Q==null?void 0:Q())!==!1&&s(!1)},{prefixCls:v,shape:y,size:b,src:_,srcSet:E,icon:w,className:S,rootClassName:C,alt:T,draggable:x,children:O,crossOrigin:N}=e,I=Xnt(e,["prefixCls","shape","size","src","srcSet","icon","className","rootClassName","alt","draggable","children","crossOrigin"]),M=So(Q=>{var oe,ge;return(ge=(oe=b??(h==null?void 0:h.size))!==null&&oe!==void 0?oe:Q)!==null&&ge!==void 0?ge:"default"}),F=Object.keys(typeof M=="object"?M||{}:{}).some(Q=>["xs","sm","md","lg","xl","xxl"].includes(Q)),k=$5(F),B=p.useMemo(()=>{if(typeof M!="object")return{};const Q=mg.find(ge=>k[ge]),oe=M[Q];return oe?{width:oe,height:oe,fontSize:oe&&(w||O)?oe/2:18}:{}},[k,M]),A=d("avatar",v),P=ui(A),[z,L,V]=ZEe(A,P),j=Te({[`${A}-lg`]:M==="large",[`${A}-sm`]:M==="small"}),U=p.isValidElement(_),J=y||(h==null?void 0:h.shape)||"circle",te=Te(A,j,f==null?void 0:f.className,`${A}-${J}`,{[`${A}-image`]:U||_&&a,[`${A}-icon`]:!!w},V,P,S,C,L),ae=typeof M=="number"?{width:M,height:M,fontSize:w?M/2:18}:{};let K;if(typeof _=="string"&&a)K=p.createElement("img",{src:_,draggable:x,srcSet:E,onError:g,alt:T,crossOrigin:N});else if(U)K=_;else if(w)K=w;else if(i||n!==1){const Q=`scale(${n})`,oe={msTransform:Q,WebkitTransform:Q,transform:Q};K=p.createElement(Ta,{onResize:m},p.createElement("span",{className:`${A}-string`,ref:c,style:Object.assign({},oe)},O))}else K=p.createElement("span",{className:`${A}-string`,style:{opacity:0},ref:c},O);return delete I.onError,delete I.gap,z(p.createElement("span",Object.assign({},I,{style:Object.assign(Object.assign(Object.assign(Object.assign({},ae),B),f==null?void 0:f.style),I.style),className:te,ref:u}),K))},JEe=p.forwardRef(Znt),g_=e=>e?typeof e=="function"?e():e:null;function Oq(e){var t=e.children,n=e.prefixCls,r=e.id,i=e.overlayInnerStyle,o=e.bodyClassName,a=e.className,s=e.style;return p.createElement("div",{className:Te("".concat(n,"-content"),a),style:s},p.createElement("div",{className:Te("".concat(n,"-inner"),o),id:r,role:"tooltip",style:i},typeof t=="function"?t():t))}var J0={shiftX:64,adjustY:1},eb={adjustX:1,shiftY:!0},$c=[0,0],Jnt={left:{points:["cr","cl"],overflow:eb,offset:[-4,0],targetOffset:$c},right:{points:["cl","cr"],overflow:eb,offset:[4,0],targetOffset:$c},top:{points:["bc","tc"],overflow:J0,offset:[0,-4],targetOffset:$c},bottom:{points:["tc","bc"],overflow:J0,offset:[0,4],targetOffset:$c},topLeft:{points:["bl","tl"],overflow:J0,offset:[0,-4],targetOffset:$c},leftTop:{points:["tr","tl"],overflow:eb,offset:[-4,0],targetOffset:$c},topRight:{points:["br","tr"],overflow:J0,offset:[0,-4],targetOffset:$c},rightTop:{points:["tl","tr"],overflow:eb,offset:[4,0],targetOffset:$c},bottomRight:{points:["tr","br"],overflow:J0,offset:[0,4],targetOffset:$c},rightBottom:{points:["bl","br"],overflow:eb,offset:[4,0],targetOffset:$c},bottomLeft:{points:["tl","bl"],overflow:J0,offset:[0,4],targetOffset:$c},leftBottom:{points:["br","bl"],overflow:eb,offset:[-4,0],targetOffset:$c}},ert=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow","classNames","styles"],trt=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,f=d===void 0?"rc-tooltip":d,h=t.children,m=t.onVisibleChange,g=t.afterVisibleChange,v=t.transitionName,y=t.animation,b=t.motion,_=t.placement,E=_===void 0?"right":_,w=t.align,S=w===void 0?{}:w,C=t.destroyTooltipOnHide,T=C===void 0?!1:C,x=t.defaultVisible,O=t.getTooltipContainer,N=t.overlayInnerStyle;t.arrowContent;var I=t.overlay,M=t.id,F=t.showArrow,k=F===void 0?!0:F,B=t.classNames,A=t.styles,P=Dt(t,ert),z=p.useRef(null);p.useImperativeHandle(n,function(){return z.current});var L=W({},P);"visible"in t&&(L.popupVisible=t.visible);var V=function(){return p.createElement(Oq,{key:"content",prefixCls:f,id:M,bodyClassName:B==null?void 0:B.body,overlayInnerStyle:W(W({},N),A==null?void 0:A.body)},I)};return p.createElement(l2,Ke({popupClassName:Te(r,B==null?void 0:B.root),prefixCls:f,popup:V,action:o,builtinPlacements:Jnt,popupPlacement:E,ref:z,popupAlign:S,getPopupContainer:O,onPopupVisibleChange:m,afterPopupVisibleChange:g,popupTransitionName:v,popupAnimation:y,popupMotion:b,defaultPopupVisible:x,autoDestroy:T,mouseLeaveDelay:c,popupStyle:W(W({},u),A==null?void 0:A.root),mouseEnterDelay:s,arrow:k},L),h)};const nrt=p.forwardRef(trt);function F5(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,f=u,h=2*i-s,m=l,g=2*i-o,v=a,y=i*Math.sqrt(2)+r*(Math.sqrt(2)-2),b=r*(Math.sqrt(2)-1),_=`polygon(${b}px 100%, 50% ${b}px, ${2*i-b}px 100%, ${b}px 100%)`,E=`path('M ${o} ${a} A ${r} ${r} 0 0 0 ${s} ${l} L ${c} ${u} A ${n} ${n} 0 0 1 ${d} ${f} L ${h} ${m} A ${r} ${r} 0 0 0 ${g} ${v} Z')`;return{arrowShadowWidth:y,arrowPath:E,arrowPolygon:_}}const eCe=(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 ${Ae(s)} 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:n,zIndex:0,background:"transparent"}}},tCe=8;function B5(e){const{contentRadius:t,limitVerticalRadius:n}=e,r=t>12?t+2:12;return{arrowOffsetHorizontal:r,arrowOffsetVertical:n?tCe:r}}function ER(e,t){return e?t:{}}function Rq(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"},eCe(e,t,i)),{"&:before":{background:t}})]},ER(!!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% - ${Ae(a)})`,[`> ${r}-arrow`]:{right:{_skip_check_:!0,value:a}}}})),ER(!!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% - ${Ae(a)})`,[`> ${r}-arrow`]:{right:{_skip_check_:!0,value:a}}}})),ER(!!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}})),ER(!!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 rrt(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 Rre={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"]}},irt={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"]}},ort=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function nCe(e){const{arrowWidth:t,autoAdjustOverflow:n,arrowPointAtCenter:r,offset:i,borderRadius:o,visibleFirst:a}=e,s=t/2,l={};return Object.keys(Rre).forEach(c=>{const u=r&&irt[c]||Rre[c],d=Object.assign(Object.assign({},u),{offset:[0,0],dynamicInset:!0});switch(l[c]=d,ort.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 f=B5({contentRadius:o,limitVerticalRadius:!0});if(r)switch(c){case"topLeft":case"bottomLeft":d.offset[0]=-f.arrowOffsetHorizontal-s;break;case"topRight":case"bottomRight":d.offset[0]=f.arrowOffsetHorizontal+s;break;case"leftTop":case"rightTop":d.offset[1]=-f.arrowOffsetHorizontal*2+s;break;case"leftBottom":case"rightBottom":d.offset[1]=f.arrowOffsetHorizontal*2-s;break}d.overflow=rrt(c,f,t,n),a&&(d.htmlRegion="visibleFirst")}),l}const art=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:f,sizePopupArrow:h}=e,m=t(a).add(h).add(f).equal(),g=t(a).mul(2).add(h).equal();return[{[n]:Object.assign(Object.assign(Object.assign(Object.assign({},gr(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:g,minHeight:l,padding:`${Ae(e.calc(u).div(2).equal())} ${Ae(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,tCe)}},[`${n}-content`]:{position:"relative"}}),f5(e,(v,y)=>{let{darkColor:b}=y;return{[`&${n}-${v}`]:{[`${n}-inner`]:{backgroundColor:b},[`${n}-arrow`]:{"--antd-arrow-background-color":b}}}})),{"&-rtl":{direction:"rtl"}})},Rq(e,"var(--antd-arrow-background-color)"),{[`${n}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}}]},srt=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+70},B5({contentRadius:e.borderRadius,limitVerticalRadius:!0})),F5(Kn(e,{borderRadiusOuter:Math.min(e.borderRadiusOuter,4)}))),rCe=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return cr("Tooltip",r=>{const{borderRadius:i,colorTextLightSolid:o,colorBgSpotlight:a}=r,s=Kn(r,{tooltipMaxWidth:250,tooltipColor:o,tooltipBorderRadius:i,tooltipBg:a});return[art(s),vS(r,"zoom-big-fast")]},srt,{resetStyle:!1,injectStyle:t})(e)},lrt=jv.map(e=>`${e}-inverse`),crt=["success","processing","error","default","warning"];function j5(e){return(arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0)?[].concat(nt(lrt),nt(jv)).includes(e):jv.includes(e)}function urt(e){return crt.includes(e)}function iCe(e,t){const n=j5(t),r=Te({[`${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 drt=e=>{const{prefixCls:t,className:n,placement:r="top",title:i,color:o,overlayInnerStyle:a}=e,{getPrefixCls:s}=p.useContext(Qt),l=s("tooltip",t),[c,u,d]=rCe(l),f=iCe(l,o),h=f.arrowStyle,m=Object.assign(Object.assign({},a),f.overlayStyle),g=Te(u,d,l,`${l}-pure`,`${l}-placement-${r}`,n,f.className);return c(p.createElement("div",{className:g,style:h},p.createElement("div",{className:`${l}-arrow`}),p.createElement(Oq,Object.assign({},e,{className:u,prefixCls:l,overlayInnerStyle:m}),i)))};var frt=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 prt=p.forwardRef((e,t)=>{var n,r,i,o,a,s;const{prefixCls:l,openClassName:c,getTooltipContainer:u,color:d,overlayInnerStyle:f,children:h,afterOpenChange:m,afterVisibleChange:g,destroyTooltipOnHide:v,arrow:y=!0,title:b,overlay:_,builtinPlacements:E,arrowPointAtCenter:w=!1,autoAdjustOverflow:S=!0}=e,C=!!y,[,T]=Go(),{getPopupContainer:x,getPrefixCls:O,direction:N,tooltip:I}=p.useContext(Qt),M=Wf(),F=p.useRef(null),k=()=>{var me;(me=F.current)===null||me===void 0||me.forceAlign()};p.useImperativeHandle(t,()=>{var me;return{forceAlign:k,forcePopupAlign:()=>{M.deprecated(!1,"forcePopupAlign","forceAlign"),k()},nativeElement:(me=F.current)===null||me===void 0?void 0:me.nativeElement}});const[B,A]=Pn(!1,{value:(n=e.open)!==null&&n!==void 0?n:e.visible,defaultValue:(r=e.defaultOpen)!==null&&r!==void 0?r:e.defaultVisible}),P=!b&&!_&&b!==0,z=me=>{var se,Be;A(P?!1:me),P||((se=e.onOpenChange)===null||se===void 0||se.call(e,me),(Be=e.onVisibleChange)===null||Be===void 0||Be.call(e,me))},L=p.useMemo(()=>{var me,se;let Be=w;return typeof y=="object"&&(Be=(se=(me=y.pointAtCenter)!==null&&me!==void 0?me:y.arrowPointAtCenter)!==null&&se!==void 0?se:w),E||nCe({arrowPointAtCenter:Be,autoAdjustOverflow:S,arrowWidth:C?T.sizePopupArrow:0,borderRadius:T.borderRadius,offset:T.marginXXS,visibleFirst:!0})},[w,y,E,T]),V=p.useMemo(()=>b===0?b:_||b||"",[_,b]),j=p.createElement(Rd,{space:!0},typeof V=="function"?V():V),{getPopupContainer:U,placement:J="top",mouseEnterDelay:te=.1,mouseLeaveDelay:ae=.1,overlayStyle:K,rootClassName:Q,overlayClassName:oe,styles:ge,classNames:fe}=e,ue=frt(e,["getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay","overlayStyle","rootClassName","overlayClassName","styles","classNames"]),le=O("tooltip",l),ve=O(),ne=e["data-popover-inject"];let pe=B;!("open"in e)&&!("visible"in e)&&P&&(pe=!1);const be=p.isValidElement(h)&&!ySe(h)?h:p.createElement("span",null,h),Re=be.props,Se=!Re.className||typeof Re.className=="string"?Te(Re.className,c||`${le}-open`):Re.className,[Ce,ye,he]=rCe(le,!ne),_e=iCe(le,d),Oe=_e.arrowStyle,De=Te(oe,{[`${le}-rtl`]:N==="rtl"},_e.className,Q,ye,he,I==null?void 0:I.className,(i=I==null?void 0:I.classNames)===null||i===void 0?void 0:i.root,fe==null?void 0:fe.root),Y=Te((o=I==null?void 0:I.classNames)===null||o===void 0?void 0:o.body,fe==null?void 0:fe.body),[D,G]=Ou("Tooltip",ue.zIndex),ie=p.createElement(nrt,Object.assign({},ue,{zIndex:D,showArrow:C,placement:J,mouseEnterDelay:te,mouseLeaveDelay:ae,prefixCls:le,classNames:{root:De,body:Y},styles:{root:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Oe),(a=I==null?void 0:I.styles)===null||a===void 0?void 0:a.root),I==null?void 0:I.style),K),ge==null?void 0:ge.root),body:Object.assign(Object.assign(Object.assign(Object.assign({},(s=I==null?void 0:I.styles)===null||s===void 0?void 0:s.body),f),ge==null?void 0:ge.body),_e.overlayStyle)},getTooltipContainer:U||u||x,ref:F,builtinPlacements:L,overlay:j,visible:pe,onVisibleChange:z,afterVisibleChange:m??g,arrowContent:p.createElement("span",{className:`${le}-arrow-content`}),motion:{motionName:Va(ve,"zoom-big-fast",e.transitionName),motionDeadline:1e3},destroyTooltipOnHide:!!v}),pe?_o(be,{className:Se}):be);return Ce(p.createElement(Jx.Provider,{value:G},ie))}),Ia=prt;Ia._InternalPanelDoNotUseOrYouWillBeFired=drt;const hrt=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:f,titleBorderBottom:h,innerContentPadding:m,titlePadding:g}=e;return[{[t]:Object.assign(Object.assign({},gr(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:f,backgroundClip:"padding-box",borderRadius:l,boxShadow:a,padding:o},[`${t}-title`]:{minWidth:r,marginBottom:u,color:s,fontWeight:i,borderBottom:h,padding:g},[`${t}-inner-content`]:{color:n,padding:m}})},Rq(e,"var(--antd-arrow-background-color)"),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow,display:"inline-block",[`${t}-content`]:{display:"inline-block"}}}]},mrt=e=>{const{componentCls:t}=e;return{[t]:jv.map(n=>{const r=e[`${n}6`];return{[`&${t}-${n}`]:{"--antd-arrow-background-color":r,[`${t}-inner`]:{backgroundColor:r},[`${t}-arrow`]:{background:"transparent"}}}})}},grt=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,f=n-r,h=f/2,m=f/2-t,g=i;return Object.assign(Object.assign(Object.assign({titleMinWidth:177,zIndexPopup:a+30},F5(e)),B5({contentRadius:s,limitVerticalRadius:!0})),{innerPadding:o?0:12,titleMarginBottom:o?0:l,titlePadding:o?`${h}px ${g}px ${m}px`:0,titleBorderBottom:o?`${t}px ${c} ${u}`:"none",innerContentPadding:o?`${d}px ${g}px`:0})},oCe=cr("Popover",e=>{const{colorBgElevated:t,colorText:n}=e,r=Kn(e,{popoverBg:t,popoverColor:n});return[hrt(r),mrt(r),vS(r,"zoom-big")]},grt,{resetStyle:!1,deprecatedTokens:[["width","titleMinWidth"],["minWidth","titleMinWidth"]]});var vrt=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const aCe=e=>{let{title:t,content:n,prefixCls:r}=e;return!t&&!n?null:p.createElement(p.Fragment,null,t&&p.createElement("div",{className:`${r}-title`},t),n&&p.createElement("div",{className:`${r}-inner-content`},n))},brt=e=>{const{hashId:t,prefixCls:n,className:r,style:i,placement:o="top",title:a,content:s,children:l}=e,c=g_(a),u=g_(s),d=Te(t,n,`${n}-pure`,`${n}-placement-${o}`,r);return p.createElement("div",{className:d,style:i},p.createElement("div",{className:`${n}-arrow`}),p.createElement(Oq,Object.assign({},e,{className:t,prefixCls:n}),l||p.createElement(aCe,{prefixCls:n,title:c,content:u})))},sCe=e=>{const{prefixCls:t,className:n}=e,r=vrt(e,["prefixCls","className"]),{getPrefixCls:i}=p.useContext(Qt),o=i("popover",t),[a,s,l]=oCe(o);return a(p.createElement(brt,Object.assign({},r,{prefixCls:o,hashId:s,className:Te(n,l)})))};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};const _rt=p.forwardRef((e,t)=>{var n,r,i,o,a,s;const{prefixCls:l,title:c,content:u,overlayClassName:d,placement:f="top",trigger:h="hover",children:m,mouseEnterDelay:g=.1,mouseLeaveDelay:v=.1,onOpenChange:y,overlayStyle:b={},styles:_,classNames:E}=e,w=yrt(e,["prefixCls","title","content","overlayClassName","placement","trigger","children","mouseEnterDelay","mouseLeaveDelay","onOpenChange","overlayStyle","styles","classNames"]),{popover:S,getPrefixCls:C}=p.useContext(Qt),T=C("popover",l),[x,O,N]=oCe(T),I=C(),M=Te(d,O,N,(n=S==null?void 0:S.classNames)===null||n===void 0?void 0:n.root,E==null?void 0:E.root),F=Te((r=S==null?void 0:S.classNames)===null||r===void 0?void 0:r.body,E==null?void 0:E.body),[k,B]=Pn(!1,{value:(i=e.open)!==null&&i!==void 0?i:e.visible,defaultValue:(o=e.defaultOpen)!==null&&o!==void 0?o:e.defaultVisible}),A=(j,U)=>{B(j,!0),y==null||y(j,U)},P=j=>{j.keyCode===dt.ESC&&A(!1,j)},z=j=>{A(j)},L=g_(c),V=g_(u);return x(p.createElement(Ia,Object.assign({placement:f,trigger:h,mouseEnterDelay:g,mouseLeaveDelay:v},w,{prefixCls:T,classNames:{root:M,body:F},styles:{root:Object.assign(Object.assign(Object.assign(Object.assign({},(a=S==null?void 0:S.styles)===null||a===void 0?void 0:a.root),S==null?void 0:S.style),b),_==null?void 0:_.root),body:Object.assign(Object.assign({},(s=S==null?void 0:S.styles)===null||s===void 0?void 0:s.body),_==null?void 0:_.body)},ref:t,open:k,onOpenChange:z,overlay:L||V?p.createElement(aCe,{prefixCls:T,title:L,content:V}):null,transitionName:Va(I,"zoom-big",w.transitionName),"data-popover-inject":!0}),_o(m,{onKeyDown:j=>{var U,J;p.isValidElement(m)&&((J=m==null?void 0:(U=m.props).onKeyDown)===null||J===void 0||J.call(U,j)),P(j)}})))}),bu=_rt;bu._InternalPanelDoNotUseOrYouWillBeFired=sCe;const Ire=e=>{const{size:t,shape:n}=p.useContext(xH),r=p.useMemo(()=>({size:e.size||t,shape:e.shape||n}),[e.size,e.shape,t,n]);return p.createElement(xH.Provider,{value:r},e.children)},Srt=e=>{var t,n,r,i;const{getPrefixCls:o,direction:a}=p.useContext(Qt),{prefixCls:s,className:l,rootClassName:c,style:u,maxCount:d,maxStyle:f,size:h,shape:m,maxPopoverPlacement:g,maxPopoverTrigger:v,children:y,max:b}=e,_=o("avatar",s),E=`${_}-group`,w=ui(_),[S,C,T]=ZEe(_,w),x=Te(E,{[`${E}-rtl`]:a==="rtl"},T,w,l,c,C),O=Mo(y).map((M,F)=>_o(M,{key:`avatar-key-${F}`})),N=(b==null?void 0:b.count)||d,I=O.length;if(N&&N<I){const M=O.slice(0,N),F=O.slice(N,I),k=(b==null?void 0:b.style)||f,B=((t=b==null?void 0:b.popover)===null||t===void 0?void 0:t.trigger)||v||"hover",A=((n=b==null?void 0:b.popover)===null||n===void 0?void 0:n.placement)||g||"top",P=Object.assign(Object.assign({content:F},b==null?void 0:b.popover),{classNames:{root:Te(`${E}-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:A,trigger:B});return M.push(p.createElement(bu,Object.assign({key:"avatar-popover-key",destroyTooltipOnHide:!0},P),p.createElement(JEe,{style:k},`+${I-N}`))),S(p.createElement(Ire,{shape:m,size:h},p.createElement("div",{className:x,style:u},M)))}return S(p.createElement(Ire,{shape:m,size:h},p.createElement("div",{className:x,style:u},O)))},xh=JEe;xh.Group=Srt;const Ert=new fr("antStatusProcessing",{"0%":{transform:"scale(0.8)",opacity:.5},"100%":{transform:"scale(2.4)",opacity:0}}),Crt=new fr("antZoomBadgeIn",{"0%":{transform:"scale(0) translate(50%, -50%)",opacity:0},"100%":{transform:"scale(1) translate(50%, -50%)"}}),wrt=new fr("antZoomBadgeOut",{"0%":{transform:"scale(1) translate(50%, -50%)"},"100%":{transform:"scale(0) translate(50%, -50%)",opacity:0}}),Trt=new fr("antNoWrapperZoomBadgeIn",{"0%":{transform:"scale(0)",opacity:0},"100%":{transform:"scale(1)"}}),xrt=new fr("antNoWrapperZoomBadgeOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0)",opacity:0}}),Ort=new fr("antBadgeLoadingCircle",{"0%":{transformOrigin:"50%"},"100%":{transform:"translate(50%, -50%) rotate(360deg)",transformOrigin:"50%"}}),Rrt=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:f,calc:h}=e,m=`${r}-scroll-number`,g=f5(e,(v,y)=>{let{darkColor:b}=y;return{[`&${t} ${t}-color-${v}`]:{background:b,[`&:not(${t}-count)`]:{color:b},"a:hover &":{background:b}}}});return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},gr(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:Ae(u),whiteSpace:"nowrap",textAlign:"center",background:e.badgeColor,borderRadius:h(u).div(2).equal(),boxShadow:`0 0 0 ${Ae(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:Ae(d),borderRadius:h(d).div(2).equal()},[`${t}-multiple-words`]:{padding:`0 ${Ae(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 ${Ae(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:Ort,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:Ert,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:f,color:e.colorText,fontSize:e.fontSize}}}),g),{[`${t}-zoom-appear, ${t}-zoom-enter`]:{animationName:Crt,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack,animationFillMode:"both"},[`${t}-zoom-leave`]:{animationName:wrt,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack,animationFillMode:"both"},[`&${t}-not-a-wrapper`]:{[`${t}-zoom-appear, ${t}-zoom-enter`]:{animationName:Trt,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack},[`${t}-zoom-leave`]:{animationName:xrt,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%)"}}})}},lCe=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 Kn(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%)"})},cCe=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}},Irt=cr("Badge",e=>{const t=lCe(e);return Rrt(t)},cCe),Art=e=>{const{antCls:t,badgeFontHeight:n,marginXS:r,badgeRibbonOffset:i,calc:o}=e,a=`${t}-ribbon`,s=`${t}-ribbon-wrapper`,l=f5(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({},gr(e)),{position:"absolute",top:r,padding:`0 ${Ae(e.paddingXS)}`,color:e.colorPrimary,lineHeight:Ae(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:`${Ae(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"}})}},Nrt=cr(["Badge","Ribbon"],e=>{const t=lCe(e);return Art(t)},cCe),Mrt=e=>{const{className:t,prefixCls:n,style:r,color:i,children:o,text:a,placement:s="end",rootClassName:l}=e,{getPrefixCls:c,direction:u}=p.useContext(Qt),d=c("ribbon",n),f=`${d}-wrapper`,[h,m,g]=Nrt(d,f),v=j5(i,!1),y=Te(d,`${d}-placement-${s}`,{[`${d}-rtl`]:u==="rtl",[`${d}-color-${i}`]:v},t),b={},_={};return i&&!v&&(b.background=i,_.color=i),h(p.createElement("div",{className:Te(f,l,m,g)},o,p.createElement("div",{className:Te(y,m),style:Object.assign(Object.assign({},b),r)},p.createElement("span",{className:`${d}-text`},a),p.createElement("div",{className:`${d}-corner`,style:_}))))},Are=e=>{const{prefixCls:t,value:n,current:r,offset:i=0}=e;let o;return i&&(o={position:"absolute",top:`${i}00%`,left:0}),p.createElement("span",{style:o,className:Te(`${t}-only-unit`,{current:r})},n)};function krt(e,t,n){let r=e,i=0;for(;(r+10)%10!==t;)r+=n,i+=n;return i}const Prt=e=>{const{prefixCls:t,count:n,value:r}=e,i=Number(r),o=Math.abs(n),[a,s]=p.useState(i),[l,c]=p.useState(o),u=()=>{s(i),c(o)};p.useEffect(()=>{const h=setTimeout(u,1e3);return()=>clearTimeout(h)},[i]);let d,f;if(a===i||Number.isNaN(i)||Number.isNaN(a))d=[p.createElement(Are,Object.assign({},e,{key:i,current:!0}))],f={transition:"none"};else{d=[];const h=i+10,m=[];for(let b=i;b<=h;b+=1)m.push(b);const g=l<o?1:-1,v=m.findIndex(b=>b%10===a);d=(g<0?m.slice(0,v+1):m.slice(v)).map((b,_)=>{const E=b%10;return p.createElement(Are,Object.assign({},e,{key:b,value:E,offset:g<0?_-v:_,current:_===v}))}),f={transform:`translateY(${-krt(a,i,g)}00%)`}}return p.createElement("span",{className:`${t}-only`,style:f,onTransitionEnd:u},d)};var Drt=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 Lrt=p.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=Drt(e,["prefixCls","count","className","motionClassName","style","title","show","component","children"]),{getPrefixCls:f}=p.useContext(Qt),h=f("scroll-number",n),m=Object.assign(Object.assign({},d),{"data-show":l,style:a,className:Te(h,i,o),title:s});let g=r;if(r&&Number(r)%1===0){const v=String(r).split("");g=p.createElement("bdi",null,v.map((y,b)=>p.createElement(Prt,{prefixCls:h,count:Number(r),value:y,key:v.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,v=>({className:Te(`${h}-custom-component`,v==null?void 0:v.className,o)})):p.createElement(c,Object.assign({},m,{ref:t}),g)});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 Frt=p.forwardRef((e,t)=>{var n,r,i,o,a;const{prefixCls:s,scrollNumberPrefixCls:l,children:c,status:u,text:d,color:f,count:h=null,overflowCount:m=99,dot:g=!1,size:v="default",title:y,offset:b,style:_,className:E,rootClassName:w,classNames:S,styles:C,showZero:T=!1}=e,x=$rt(e,["prefixCls","scrollNumberPrefixCls","children","status","text","color","count","overflowCount","dot","size","title","offset","style","className","rootClassName","classNames","styles","showZero"]),{getPrefixCls:O,direction:N,badge:I}=p.useContext(Qt),M=O("badge",s),[F,k,B]=Irt(M),A=h>m?`${m}+`:h,P=A==="0"||A===0,z=h===null||P&&!T,L=(u!=null||f!=null)&&z,V=g&&!P,j=V?"":A,U=p.useMemo(()=>(j==null||j===""||P&&!T)&&!V,[j,P,T,V]),J=p.useRef(h);U||(J.current=h);const te=J.current,ae=p.useRef(j);U||(ae.current=j);const K=ae.current,Q=p.useRef(V);U||(Q.current=V);const oe=p.useMemo(()=>{if(!b)return Object.assign(Object.assign({},I==null?void 0:I.style),_);const be={marginTop:b[1]};return N==="rtl"?be.left=parseInt(b[0],10):be.right=-parseInt(b[0],10),Object.assign(Object.assign(Object.assign({},be),I==null?void 0:I.style),_)},[N,b,_,I==null?void 0:I.style]),ge=y??(typeof te=="string"||typeof te=="number"?te:void 0),fe=U||!d?null:p.createElement("span",{className:`${M}-status-text`},d),ue=!te||typeof te!="object"?void 0:_o(te,be=>({style:Object.assign(Object.assign({},oe),be.style)})),le=j5(f,!1),ve=Te(S==null?void 0:S.indicator,(n=I==null?void 0:I.classNames)===null||n===void 0?void 0:n.indicator,{[`${M}-status-dot`]:L,[`${M}-status-${u}`]:!!u,[`${M}-color-${f}`]:le}),ne={};f&&!le&&(ne.color=f,ne.background=f);const pe=Te(M,{[`${M}-status`]:L,[`${M}-not-a-wrapper`]:!c,[`${M}-rtl`]:N==="rtl"},E,w,I==null?void 0:I.className,(r=I==null?void 0:I.classNames)===null||r===void 0?void 0:r.root,S==null?void 0:S.root,k,B);if(!c&&L){const be=oe.color;return F(p.createElement("span",Object.assign({},x,{className:pe,style:Object.assign(Object.assign(Object.assign({},C==null?void 0:C.root),(i=I==null?void 0:I.styles)===null||i===void 0?void 0:i.root),oe)}),p.createElement("span",{className:ve,style:Object.assign(Object.assign(Object.assign({},C==null?void 0:C.indicator),(o=I==null?void 0:I.styles)===null||o===void 0?void 0:o.indicator),ne)}),d&&p.createElement("span",{style:{color:be},className:`${M}-status-text`},d)))}return F(p.createElement("span",Object.assign({ref:t},x,{className:pe,style:Object.assign(Object.assign({},(a=I==null?void 0:I.styles)===null||a===void 0?void 0:a.root),C==null?void 0:C.root)}),c,p.createElement(ra,{visible:!U,motionName:`${M}-zoom`,motionAppear:!1,motionDeadline:1e3},be=>{let{className:Re}=be;var Se,Ce;const ye=O("scroll-number",l),he=Q.current,_e=Te(S==null?void 0:S.indicator,(Se=I==null?void 0:I.classNames)===null||Se===void 0?void 0:Se.indicator,{[`${M}-dot`]:he,[`${M}-count`]:!he,[`${M}-count-sm`]:v==="small",[`${M}-multiple-words`]:!he&&K&&K.toString().length>1,[`${M}-status-${u}`]:!!u,[`${M}-color-${f}`]:le});let Oe=Object.assign(Object.assign(Object.assign({},C==null?void 0:C.indicator),(Ce=I==null?void 0:I.styles)===null||Ce===void 0?void 0:Ce.indicator),oe);return f&&!le&&(Oe=Oe||{},Oe.background=f),p.createElement(Lrt,{prefixCls:ye,show:!U,motionClassName:Re,className:_e,count:K,title:ge,style:Oe,key:"scrollNumber"},ue)}),fe))}),ml=Frt;ml.Ribbon=Mrt;var Brt=dt.ESC,jrt=dt.TAB;function Hrt(e){var t=e.visible,n=e.triggerRef,r=e.onVisibleChange,i=e.autoFocus,o=e.overlayRef,a=p.useRef(!1),s=function(){if(t){var d,f;(d=n.current)===null||d===void 0||(f=d.focus)===null||f===void 0||f.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 Brt:s();break;case jrt:{var f=!1;a.current||(f=l()),f?d.preventDefault():s();break}}};p.useEffect(function(){return t?(window.addEventListener("keydown",c),i&&rr(l,3),function(){window.removeEventListener("keydown",c),a.current=!1}):function(){a.current=!1}},[t])}var Urt=p.forwardRef(function(e,t){var n=e.overlay,r=e.arrow,i=e.prefixCls,o=p.useMemo(function(){var s;return typeof n=="function"?s=n():s=n,s},[n]),a=oa(t,Og(o));return ce.createElement(ce.Fragment,null,r&&ce.createElement("div",{className:"".concat(i,"-arrow")}),ce.cloneElement(o,{ref:Cd(o)?a:void 0}))}),tb={adjustX:1,adjustY:1},nb=[0,0],zrt={topLeft:{points:["bl","tl"],overflow:tb,offset:[0,-4],targetOffset:nb},top:{points:["bc","tc"],overflow:tb,offset:[0,-4],targetOffset:nb},topRight:{points:["br","tr"],overflow:tb,offset:[0,-4],targetOffset:nb},bottomLeft:{points:["tl","bl"],overflow:tb,offset:[0,4],targetOffset:nb},bottom:{points:["tc","bc"],overflow:tb,offset:[0,4],targetOffset:nb},bottomRight:{points:["tr","br"],overflow:tb,offset:[0,4],targetOffset:nb}},Vrt=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function Grt(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,f=e.placements,h=f===void 0?zrt:f,m=e.getPopupContainer,g=e.showAction,v=e.hideAction,y=e.overlayClassName,b=e.overlayStyle,_=e.visible,E=e.trigger,w=E===void 0?["hover"]:E,S=e.autoFocus,C=e.overlay,T=e.children,x=e.onVisibleChange,O=Dt(e,Vrt),N=ce.useState(),I=Ie(N,2),M=I[0],F=I[1],k="visible"in e?_:M,B=ce.useRef(null),A=ce.useRef(null),P=ce.useRef(null);ce.useImperativeHandle(t,function(){return B.current});var z=function(Q){F(Q),x==null||x(Q)};Hrt({visible:k,triggerRef:P,onVisibleChange:z,autoFocus:S,overlayRef:A});var L=function(Q){var oe=e.onOverlayClick;F(!1),oe&&oe(Q)},V=function(){return ce.createElement(Urt,{ref:A,overlay:C,prefixCls:a,arrow:i})},j=function(){return typeof C=="function"?V:V()},U=function(){var Q=e.minOverlayWidthMatchTrigger,oe=e.alignPoint;return"minOverlayWidthMatchTrigger"in e?Q:!oe},J=function(){var Q=e.openClassName;return Q!==void 0?Q:"".concat(a,"-open")},te=ce.cloneElement(T,{className:Te((n=T.props)===null||n===void 0?void 0:n.className,k&&J()),ref:Cd(T)?oa(P,Og(T)):void 0}),ae=v;return!ae&&w.indexOf("contextMenu")!==-1&&(ae=["click"]),ce.createElement(l2,Ke({builtinPlacements:h},O,{prefixCls:a,ref:B,popupClassName:Te(y,ee({},"".concat(a,"-show-arrow"),i)),popupStyle:b,action:w,showAction:g,hideAction:ae,popupPlacement:d,popupAlign:c,popupTransitionName:s,popupAnimation:l,popupVisible:k,stretch:U()?"minWidth":"",popup:j(),onPopupVisibleChange:z,onPopupClick:L,getPopupContainer:m}),te)}const uCe=ce.forwardRef(Grt),Wrt=e=>typeof e!="object"&&typeof e!="function"||e===null;var dCe=p.createContext(null);function fCe(e,t){return e===void 0?null:"".concat(e,"-").concat(t)}function pCe(e){var t=p.useContext(dCe);return fCe(t,e)}var qrt=["children","locked"],Ad=p.createContext(null);function Yrt(e,t){var n=W({},e);return Object.keys(t).forEach(function(r){var i=t[r];i!==void 0&&(n[r]=i)}),n}function kT(e){var t=e.children,n=e.locked,r=Dt(e,qrt),i=p.useContext(Ad),o=ah(function(){return Yrt(i,r)},[i,r],function(a,s){return!n&&(a[0]!==s[0]||!gu(a[1],s[1],!0))});return p.createElement(Ad.Provider,{value:o},t)}var Krt=[],hCe=p.createContext(null);function H5(){return p.useContext(hCe)}var mCe=p.createContext(Krt);function SS(e){var t=p.useContext(mCe);return p.useMemo(function(){return e!==void 0?[].concat(nt(t),[e]):t},[t,e])}var gCe=p.createContext(null),Iq=p.createContext({});function Nre(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 Qrt(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=nt(e.querySelectorAll("*")).filter(function(r){return Nre(r,t)});return Nre(e,t)&&n.unshift(e),n}var OH=dt.LEFT,RH=dt.RIGHT,IH=dt.UP,kA=dt.DOWN,PA=dt.ENTER,vCe=dt.ESC,$E=dt.HOME,FE=dt.END,Mre=[IH,kA,OH,RH];function Xrt(e,t,n,r){var i,o="prev",a="next",s="children",l="parent";if(e==="inline"&&r===PA)return{inlineTrigger:!0};var c=ee(ee({},IH,o),kA,a),u=ee(ee(ee(ee({},OH,n?a:o),RH,n?o:a),kA,s),PA,s),d=ee(ee(ee(ee(ee(ee({},IH,o),kA,a),PA,s),vCe,l),OH,n?s:l),RH,n?l:s),f={inline:c,horizontal:u,vertical:d,inlineSub:c,horizontalSub:d,verticalSub:d},h=(i=f["".concat(e).concat(t?"":"Sub")])===null||i===void 0?void 0:i[r];switch(h){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 Zrt(e){for(var t=e;t;){if(t.getAttribute("data-menu-list"))return t;t=t.parentElement}return null}function Jrt(e,t){for(var n=e||document.activeElement;n;){if(t.has(n))return n;n=n.parentElement}return null}function Aq(e,t){var n=Qrt(e,!0);return n.filter(function(r){return t.has(r)})}function kre(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;if(!e)return null;var i=Aq(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 AH=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(fCe(n,a),"']"));s&&(r.add(s),o.set(s,a),i.set(a,s))}),{elements:r,key2element:i,element2key:o}};function eit(e,t,n,r,i,o,a,s,l,c){var u=p.useRef(),d=p.useRef();d.current=t;var f=function(){rr.cancel(u.current)};return p.useEffect(function(){return function(){f()}},[]),function(h){var m=h.which;if([].concat(Mre,[PA,vCe,$E,FE]).includes(m)){var g=o(),v=AH(g,r),y=v,b=y.elements,_=y.key2element,E=y.element2key,w=_.get(t),S=Jrt(w,b),C=E.get(S),T=Xrt(e,a(C,!0).length===1,n,m);if(!T&&m!==$E&&m!==FE)return;(Mre.includes(m)||[$E,FE].includes(m))&&h.preventDefault();var x=function(A){if(A){var P=A,z=A.querySelector("a");z!=null&&z.getAttribute("href")&&(P=z);var L=E.get(A);s(L),f(),u.current=rr(function(){d.current===L&&P.focus()})}};if([$E,FE].includes(m)||T.sibling||!S){var O;!S||e==="inline"?O=i.current:O=Zrt(S);var N,I=Aq(O,b);m===$E?N=I[0]:m===FE?N=I[I.length-1]:N=kre(O,b,S,T.offset),x(N)}else if(T.inlineTrigger)l(C);else if(T.offset>0)l(C,!0),f(),u.current=rr(function(){v=AH(g,r);var B=S.getAttribute("aria-controls"),A=document.getElementById(B),P=kre(A,v.elements);x(P)},5);else if(T.offset<0){var M=a(C,!0),F=M[M.length-2],k=_.get(F);l(F,!1),x(k)}}c==null||c(h)}}function tit(e){Promise.resolve().then(e)}var Nq="__RC_UTIL_PATH_SPLIT__",Pre=function(t){return t.join(Nq)},nit=function(t){return t.split(Nq)},NH="rc-menu-more";function rit(){var e=p.useState({}),t=Ie(e,2),n=t[1],r=p.useRef(new Map),i=p.useRef(new Map),o=p.useState([]),a=Ie(o,2),s=a[0],l=a[1],c=p.useRef(0),u=p.useRef(!1),d=function(){u.current||n({})},f=p.useCallback(function(_,E){var w=Pre(E);i.current.set(w,_),r.current.set(_,w),c.current+=1;var S=c.current;tit(function(){S===c.current&&d()})},[]),h=p.useCallback(function(_,E){var w=Pre(E);i.current.delete(w),r.current.delete(_)},[]),m=p.useCallback(function(_){l(_)},[]),g=p.useCallback(function(_,E){var w=r.current.get(_)||"",S=nit(w);return E&&s.includes(S[0])&&S.unshift(NH),S},[s]),v=p.useCallback(function(_,E){return _.filter(function(w){return w!==void 0}).some(function(w){var S=g(w,!0);return S.includes(E)})},[g]),y=function(){var E=nt(r.current.keys());return s.length&&E.push(NH),E},b=p.useCallback(function(_){var E="".concat(r.current.get(_)).concat(Nq),w=new Set;return nt(i.current.keys()).forEach(function(S){S.startsWith(E)&&w.add(i.current.get(S))}),w},[]);return p.useEffect(function(){return function(){u.current=!0}},[]),{registerPath:f,unregisterPath:h,refreshOverflowKeys:m,isSubPathKey:v,getKeyPath:g,getKeys:y,getSubPathKeys:b}}function AC(e){var t=p.useRef(e);t.current=e;var n=p.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 iit=Math.random().toFixed(5).toString().slice(2),Dre=0;function oit(e){var t=Pn(e,{value:e}),n=Ie(t,2),r=n[0],i=n[1];return p.useEffect(function(){Dre+=1;var o="".concat(iit,"-").concat(Dre);i("rc-menu-uuid-".concat(o))},[]),r}function bCe(e,t,n,r){var i=p.useContext(Ad),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 yCe(e){var t=p.useContext(Ad),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 _Ce(e){var t=e.icon,n=e.props,r=e.children,i;return t===null||t===!1?null:(typeof t=="function"?i=p.createElement(t,W({},n)):typeof t!="boolean"&&(i=t),i||r||null)}var ait=["item"];function HM(e){var t=e.item,n=Dt(e,ait);return Object.defineProperty(n,"item",{get:function(){return Yr(!1,"`info.item` is deprecated since we will move to function component that not provides React Node instance in future."),t}}),n}var sit=["title","attribute","elementRef"],lit=["style","className","eventKey","warnKey","disabled","itemIcon","children","role","onMouseEnter","onMouseLeave","onClick","onKeyDown","onFocus"],cit=["active"],uit=function(e){Ds(n,e);var t=il(n);function n(){return Kr(this,n),t.apply(this,arguments)}return Qr(n,[{key:"render",value:function(){var i=this.props,o=i.title,a=i.attribute,s=i.elementRef,l=Dt(i,sit),c=ur(l,["eventKey","popupClassName","popupOffset","onTitleClick"]);return Yr(!a,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),p.createElement(pd.Item,Ke({},a,{title:typeof o=="string"?o:void 0},c,{ref:s}))}}]),n}(p.Component),dit=p.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,f=e.onKeyDown,h=e.onFocus,m=Dt(e,lit),g=pCe(i),v=p.useContext(Ad),y=v.prefixCls,b=v.onItemClick,_=v.disabled,E=v.overflowDisabled,w=v.itemIcon,S=v.selectedKeys,C=v.onActive,T=p.useContext(Iq),x=T._internalRenderMenuItem,O="".concat(y,"-item"),N=p.useRef(),I=p.useRef(),M=_||o,F=$d(t,I),k=SS(i),B=function(oe){return{key:i,keyPath:nt(k).reverse(),item:N.current,domEvent:oe}},A=a||w,P=bCe(i,M,c,u),z=P.active,L=Dt(P,cit),V=S.includes(i),j=yCe(k.length),U=function(oe){if(!M){var ge=B(oe);d==null||d(HM(ge)),b(ge)}},J=function(oe){if(f==null||f(oe),oe.which===dt.ENTER){var ge=B(oe);d==null||d(HM(ge)),b(ge)}},te=function(oe){C(i),h==null||h(oe)},ae={};e.role==="option"&&(ae["aria-selected"]=V);var K=p.createElement(uit,Ke({ref:N,elementRef:F,role:l===null?"none":l||"menuitem",tabIndex:o?null:-1,"data-menu-id":E&&g?null:g},ur(m,["extra"]),L,ae,{component:"li","aria-disabled":o,style:W(W({},j),n),className:Te(O,ee(ee(ee({},"".concat(O,"-active"),z),"".concat(O,"-selected"),V),"".concat(O,"-disabled"),M),r),onClick:U,onKeyDown:J,onFocus:te}),s,p.createElement(_Ce,{props:W(W({},e),{},{isSelected:V}),icon:A}));return x&&(K=x(K,e,{selected:V})),K});function fit(e,t){var n=e.eventKey,r=H5(),i=SS(n);return p.useEffect(function(){if(r)return r.registerPath(n,i),function(){r.unregisterPath(n,i)}},[i]),r?null:p.createElement(dit,Ke({},e,{ref:t}))}const u2=p.forwardRef(fit);var pit=["className","children"],hit=function(t,n){var r=t.className,i=t.children,o=Dt(t,pit),a=p.useContext(Ad),s=a.prefixCls,l=a.mode,c=a.rtl;return p.createElement("ul",Ke({className:Te(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)},Mq=p.forwardRef(hit);Mq.displayName="SubMenuList";function kq(e,t){return Mo(e).map(function(n,r){if(p.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(nt(t),[r]).join("-")));var c={key:s,eventKey:s};return p.cloneElement(n,c)}return n})}var Ss={adjustX:1,adjustY:1},mit={topLeft:{points:["bl","tl"],overflow:Ss},topRight:{points:["br","tr"],overflow:Ss},bottomLeft:{points:["tl","bl"],overflow:Ss},bottomRight:{points:["tr","br"],overflow:Ss},leftTop:{points:["tr","tl"],overflow:Ss},leftBottom:{points:["br","bl"],overflow:Ss},rightTop:{points:["tl","tr"],overflow:Ss},rightBottom:{points:["bl","br"],overflow:Ss}},git={topLeft:{points:["bl","tl"],overflow:Ss},topRight:{points:["br","tr"],overflow:Ss},bottomLeft:{points:["tl","bl"],overflow:Ss},bottomRight:{points:["tr","br"],overflow:Ss},rightTop:{points:["tr","tl"],overflow:Ss},rightBottom:{points:["br","bl"],overflow:Ss},leftTop:{points:["tl","tr"],overflow:Ss},leftBottom:{points:["bl","br"],overflow:Ss}};function SCe(e,t,n){if(t)return t;if(n)return n[e]||n.other}var vit={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"};function bit(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=p.useContext(Ad),f=d.getPopupContainer,h=d.rtl,m=d.subMenuOpenDelay,g=d.subMenuCloseDelay,v=d.builtinPlacements,y=d.triggerSubMenuAction,b=d.forceSubMenuRender,_=d.rootClassName,E=d.motion,w=d.defaultMotions,S=p.useState(!1),C=Ie(S,2),T=C[0],x=C[1],O=W(h?W({},git):W({},mit),v),N=vit[c],I=SCe(c,E,w),M=p.useRef(I);c!=="inline"&&(M.current=I);var F=W(W({},M.current),{},{leavedClassName:"".concat(t,"-hidden"),removeOnLeave:!1,motionAppear:!0}),k=p.useRef();return p.useEffect(function(){return k.current=rr(function(){x(n)}),function(){rr.cancel(k.current)}},[n]),p.createElement(l2,{prefixCls:t,popupClassName:Te("".concat(t,"-popup"),ee({},"".concat(t,"-rtl"),h),a,_),stretch:c==="horizontal"?"minWidth":null,getPopupContainer:f,builtinPlacements:O,popupPlacement:N,popupVisible:T,popup:i,popupStyle:o,popupAlign:s&&{offset:s},action:l?[]:[y],mouseEnterDelay:m,mouseLeaveDelay:g,onPopupVisibleChange:u,forceRender:b,popupMotion:F,fresh:!0},r)}function yit(e){var t=e.id,n=e.open,r=e.keyPath,i=e.children,o="inline",a=p.useContext(Ad),s=a.prefixCls,l=a.forceSubMenuRender,c=a.motion,u=a.defaultMotions,d=a.mode,f=p.useRef(!1);f.current=d===o;var h=p.useState(!f.current),m=Ie(h,2),g=m[0],v=m[1],y=f.current?n:!1;p.useEffect(function(){f.current&&v(!1)},[d]);var b=W({},SCe(o,c,u));r.length>1&&(b.motionAppear=!1);var _=b.onVisibleChanged;return b.onVisibleChanged=function(E){return!f.current&&!E&&v(!0),_==null?void 0:_(E)},g?null:p.createElement(kT,{mode:o,locked:!f.current},p.createElement(ra,Ke({visible:y},b,{forceRender:l,removeOnLeave:!1,leavedClassName:"".concat(s,"-hidden")}),function(E){var w=E.className,S=E.style;return p.createElement(Mq,{id:t,className:w,style:S},i)}))}var _it=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],Sit=["active"],Eit=p.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,f=e.popupOffset,h=e.popupStyle,m=e.onClick,g=e.onMouseEnter,v=e.onMouseLeave,y=e.onTitleClick,b=e.onTitleMouseEnter,_=e.onTitleMouseLeave,E=Dt(e,_it),w=pCe(o),S=p.useContext(Ad),C=S.prefixCls,T=S.mode,x=S.openKeys,O=S.disabled,N=S.overflowDisabled,I=S.activeKey,M=S.selectedKeys,F=S.itemIcon,k=S.expandIcon,B=S.onItemClick,A=S.onOpenChange,P=S.onActive,z=p.useContext(Iq),L=z._internalRenderSubMenuItem,V=p.useContext(gCe),j=V.isSubPathKey,U=SS(),J="".concat(C,"-submenu"),te=O||a,ae=p.useRef(),K=p.useRef(),Q=c??F,oe=u??k,ge=x.includes(o),fe=!N&&ge,ue=j(M,o),le=bCe(o,te,b,_),ve=le.active,ne=Dt(le,Sit),pe=p.useState(!1),be=Ie(pe,2),Re=be[0],Se=be[1],Ce=function(Me){te||Se(Me)},ye=function(Me){Ce(!0),g==null||g({key:o,domEvent:Me})},he=function(Me){Ce(!1),v==null||v({key:o,domEvent:Me})},_e=p.useMemo(function(){return ve||(T!=="inline"?Re||j([I],o):!1)},[T,ve,I,Re,o,j]),Oe=yCe(U.length),De=function(Me){te||(y==null||y({key:o,domEvent:Me}),T==="inline"&&A(o,!ge))},Y=AC(function(re){m==null||m(HM(re)),B(re)}),D=function(Me){T!=="inline"&&A(o,Me)},G=function(){P(o)},ie=w&&"".concat(w,"-popup"),me=p.createElement("div",Ke({role:"menuitem",style:Oe,className:"".concat(J,"-title"),tabIndex:te?null:-1,ref:ae,title:typeof i=="string"?i:null,"data-menu-id":N&&w?null:w,"aria-expanded":fe,"aria-haspopup":!0,"aria-controls":ie,"aria-disabled":te,onClick:De,onFocus:G},ne),i,p.createElement(_Ce,{icon:T!=="horizontal"?oe:void 0,props:W(W({},e),{},{isOpen:fe,isSubMenu:!0})},p.createElement("i",{className:"".concat(J,"-arrow")}))),se=p.useRef(T);if(T!=="inline"&&U.length>1?se.current="vertical":se.current=T,!N){var Be=se.current;me=p.createElement(bit,{mode:Be,prefixCls:J,visible:!s&&fe&&T!=="inline",popupClassName:d,popupOffset:f,popupStyle:h,popup:p.createElement(kT,{mode:Be==="horizontal"?"vertical":Be},p.createElement(Mq,{id:ie,ref:K},l)),disabled:te,onVisibleChange:D},me)}var Ve=p.createElement(pd.Item,Ke({ref:t,role:"none"},E,{component:"li",style:n,className:Te(J,"".concat(J,"-").concat(T),r,ee(ee(ee(ee({},"".concat(J,"-open"),fe),"".concat(J,"-active"),_e),"".concat(J,"-selected"),ue),"".concat(J,"-disabled"),te)),onMouseEnter:ye,onMouseLeave:he}),me,!N&&p.createElement(yit,{id:ie,open:fe,keyPath:U},l));return L&&(Ve=L(Ve,e,{selected:ue,active:_e,open:fe,disabled:te})),p.createElement(kT,{onItemClick:Y,mode:T==="horizontal"?"vertical":T,itemIcon:Q,expandIcon:oe},Ve)}),U5=p.forwardRef(function(e,t){var n=e.eventKey,r=e.children,i=SS(n),o=kq(r,i),a=H5();p.useEffect(function(){if(a)return a.registerPath(n,i),function(){a.unregisterPath(n,i)}},[i]);var s;return a?s=o:s=p.createElement(Eit,Ke({ref:t},e),o),p.createElement(mCe.Provider,{value:i},s)});function Pq(e){var t=e.className,n=e.style,r=p.useContext(Ad),i=r.prefixCls,o=H5();return o?null:p.createElement("li",{role:"separator",className:Te("".concat(i,"-item-divider"),t),style:n})}var Cit=["className","title","eventKey","children"],wit=p.forwardRef(function(e,t){var n=e.className,r=e.title;e.eventKey;var i=e.children,o=Dt(e,Cit),a=p.useContext(Ad),s=a.prefixCls,l="".concat(s,"-item-group");return p.createElement("li",Ke({ref:t,role:"presentation"},o,{onClick:function(u){return u.stopPropagation()},className:Te(l,n)}),p.createElement("div",{role:"presentation",className:"".concat(l,"-title"),title:typeof r=="string"?r:void 0},r),p.createElement("ul",{role:"group",className:"".concat(l,"-list")},i))}),Dq=p.forwardRef(function(e,t){var n=e.eventKey,r=e.children,i=SS(n),o=kq(r,i),a=H5();return a?o:p.createElement(wit,Ke({ref:t},ur(e,["warnKey"])),o)}),Tit=["label","children","key","type","extra"];function MH(e,t,n){var r=t.item,i=t.group,o=t.submenu,a=t.divider;return(e||[]).map(function(s,l){if(s&&Gt(s)==="object"){var c=s,u=c.label,d=c.children,f=c.key,h=c.type,m=c.extra,g=Dt(c,Tit),v=f??"tmp-".concat(l);return d||h==="group"?h==="group"?p.createElement(i,Ke({key:v},g,{title:u}),MH(d,t,n)):p.createElement(o,Ke({key:v},g,{title:u}),MH(d,t,n)):h==="divider"?p.createElement(a,Ke({key:v},g)):p.createElement(r,Ke({key:v},g,{extra:m}),u,(!!m||m===0)&&p.createElement("span",{className:"".concat(n,"-item-extra")},m))}return null}).filter(function(s){return s})}function Lre(e,t,n,r,i){var o=e,a=W({divider:Pq,item:u2,group:Dq,submenu:U5},r);return t&&(o=MH(t,a,i)),kq(o,n)}var xit=["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"],t1=[],Oit=p.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,f=r.children,h=r.direction,m=r.id,g=r.mode,v=g===void 0?"vertical":g,y=r.inlineCollapsed,b=r.disabled,_=r.disabledOverflow,E=r.subMenuOpenDelay,w=E===void 0?.1:E,S=r.subMenuCloseDelay,C=S===void 0?.1:S,T=r.forceSubMenuRender,x=r.defaultOpenKeys,O=r.openKeys,N=r.activeKey,I=r.defaultActiveFirst,M=r.selectable,F=M===void 0?!0:M,k=r.multiple,B=k===void 0?!1:k,A=r.defaultSelectedKeys,P=r.selectedKeys,z=r.onSelect,L=r.onDeselect,V=r.inlineIndent,j=V===void 0?24:V,U=r.motion,J=r.defaultMotions,te=r.triggerSubMenuAction,ae=te===void 0?"hover":te,K=r.builtinPlacements,Q=r.itemIcon,oe=r.expandIcon,ge=r.overflowedIndicator,fe=ge===void 0?"...":ge,ue=r.overflowedIndicatorPopupClassName,le=r.getPopupContainer,ve=r.onClick,ne=r.onOpenChange,pe=r.onKeyDown;r.openAnimation,r.openTransitionName;var be=r._internalRenderMenuItem,Re=r._internalRenderSubMenuItem,Se=r._internalComponents,Ce=Dt(r,xit),ye=p.useMemo(function(){return[Lre(f,d,t1,Se,o),Lre(f,d,t1,{},o)]},[f,d,Se]),he=Ie(ye,2),_e=he[0],Oe=he[1],De=p.useState(!1),Y=Ie(De,2),D=Y[0],G=Y[1],ie=p.useRef(),me=oit(m),se=h==="rtl",Be=Pn(x,{value:O,postState:function(ln){return ln||t1}}),Ve=Ie(Be,2),re=Ve[0],Me=Ve[1],je=function(ln){var _n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;function Er(){Me(ln),ne==null||ne(ln)}_n?Ml.flushSync(Er):Er()},ke=p.useState(re),Ge=Ie(ke,2),Ue=Ge[0],qe=Ge[1],At=p.useRef(!1),at=p.useMemo(function(){return(v==="inline"||v==="vertical")&&y?["vertical",y]:[v,!1]},[v,y]),pt=Ie(at,2),Ct=pt[0],bt=pt[1],Vt=Ct==="inline",Tt=p.useState(Ct),Ot=Ie(Tt,2),Ut=Ot[0],ze=Ot[1],Ye=p.useState(bt),He=Ie(Ye,2),Ze=He[0],yt=He[1];p.useEffect(function(){ze(Ct),yt(bt),At.current&&(Vt?Me(Ue):je(t1))},[Ct,bt]);var _t=p.useState(0),Bt=Ie(_t,2),Nt=Bt[0],vt=Bt[1],ht=Nt>=_e.length-1||Ut!=="horizontal"||_;p.useEffect(function(){Vt&&qe(re)},[re]),p.useEffect(function(){return At.current=!0,function(){At.current=!1}},[]);var kt=rit(),Et=kt.registerPath,Yt=kt.unregisterPath,ct=kt.refreshOverflowKeys,Rt=kt.isSubPathKey,Ht=kt.getKeyPath,wt=kt.getKeys,St=kt.getSubPathKeys,jt=p.useMemo(function(){return{registerPath:Et,unregisterPath:Yt}},[Et,Yt]),Pe=p.useMemo(function(){return{isSubPathKey:Rt}},[Rt]);p.useEffect(function(){ct(ht?t1:_e.slice(Nt+1).map(function(Sr){return Sr.key}))},[Nt,ht]);var Pt=Pn(N||I&&((n=_e[0])===null||n===void 0?void 0:n.key),{value:N}),rt=Ie(Pt,2),Mt=rt[0],It=rt[1],xn=AC(function(Sr){It(Sr)}),Hn=AC(function(){It(void 0)});p.useImperativeHandle(t,function(){return{list:ie.current,focus:function(ln){var _n,Er=wt(),on=AH(Er,me),an=on.elements,Gn=on.key2element,_r=on.element2key,oi=Aq(ie.current,an),Zi=Mt??(oi[0]?_r.get(oi[0]):(_n=_e.find(function(Zn){return!Zn.props.disabled}))===null||_n===void 0?void 0:_n.key),nr=Gn.get(Zi);if(Zi&&nr){var Fi;nr==null||(Fi=nr.focus)===null||Fi===void 0||Fi.call(nr,ln)}}}});var R=Pn(A||[],{value:P,postState:function(ln){return Array.isArray(ln)?ln:ln==null?t1:[ln]}}),$=Ie(R,2),Z=$[0],xe=$[1],$e=function(ln){if(F){var _n=ln.key,Er=Z.includes(_n),on;B?Er?on=Z.filter(function(Gn){return Gn!==_n}):on=[].concat(nt(Z),[_n]):on=[_n],xe(on);var an=W(W({},ln),{},{selectedKeys:on});Er?L==null||L(an):z==null||z(an)}!B&&re.length&&Ut!=="inline"&&je(t1)},et=AC(function(Sr){ve==null||ve(HM(Sr)),$e(Sr)}),$t=AC(function(Sr,ln){var _n=re.filter(function(on){return on!==Sr});if(ln)_n.push(Sr);else if(Ut!=="inline"){var Er=St(Sr);_n=_n.filter(function(on){return!Er.has(on)})}gu(re,_n,!0)||je(_n,!0)}),pn=function(ln,_n){var Er=_n??!re.includes(ln);$t(ln,Er)},Fn=eit(Ut,Mt,se,me,ie,wt,Ht,It,pn,pe);p.useEffect(function(){G(!0)},[]);var Xr=p.useMemo(function(){return{_internalRenderMenuItem:be,_internalRenderSubMenuItem:Re}},[be,Re]),Lr=Ut!=="horizontal"||_?_e:_e.map(function(Sr,ln){return p.createElement(kT,{key:Sr.key,overflowDisabled:ln>Nt},Sr)}),vi=p.createElement(pd,Ke({id:m,ref:ie,prefixCls:"".concat(o,"-overflow"),component:"ul",itemComponent:u2,className:Te(o,"".concat(o,"-root"),"".concat(o,"-").concat(Ut),l,ee(ee({},"".concat(o,"-inline-collapsed"),Ze),"".concat(o,"-rtl"),se),a),dir:h,style:s,role:"menu",tabIndex:u,data:Lr,renderRawItem:function(ln){return ln},renderRawRest:function(ln){var _n=ln.length,Er=_n?_e.slice(-_n):null;return p.createElement(U5,{eventKey:NH,title:fe,disabled:ht,internalPopupClose:_n===0,popupClassName:ue},Er)},maxCount:Ut!=="horizontal"||_?pd.INVALIDATE:pd.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(ln){vt(ln)},onKeyDown:Fn},Ce));return p.createElement(Iq.Provider,{value:Xr},p.createElement(dCe.Provider,{value:me},p.createElement(kT,{prefixCls:o,rootClassName:a,mode:Ut,openKeys:re,rtl:se,disabled:b,motion:D?U:null,defaultMotions:D?J:null,activeKey:Mt,onActive:xn,onInactive:Hn,selectedKeys:Z,inlineIndent:j,subMenuOpenDelay:w,subMenuCloseDelay:C,forceSubMenuRender:T,builtinPlacements:K,triggerSubMenuAction:ae,getPopupContainer:le,itemIcon:Q,expandIcon:oe,onItemClick:et,onOpenChange:$t},p.createElement(gCe.Provider,{value:Pe},vi),p.createElement("div",{style:{display:"none"},"aria-hidden":!0},p.createElement(hCe.Provider,{value:jt},Oe)))))}),ES=Oit;ES.Item=u2;ES.SubMenu=U5;ES.ItemGroup=Dq;ES.Divider=Pq;var Rit={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"},Iit=function(t,n){return p.createElement(Nn,Ke({},t,{ref:n,icon:Rit}))},ECe=p.forwardRef(Iit),Ait={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"},Nit=function(t,n){return p.createElement(Nn,Ke({},t,{ref:n,icon:Ait}))},v_=p.forwardRef(Nit);const CCe=p.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}}),Mit=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:Ae(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}}},wCe=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}},TCe=[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]],xCe=cr("Layout",e=>[Mit(e)],wCe,{deprecatedTokens:TCe}),kit=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:f,lightSiderBg:h,lightTriggerColor:m,lightTriggerBg:g,bodyBg:v}=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:Ae(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 ${Ae(f)} ${Ae(f)} 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:`${Ae(f)} 0 0 ${Ae(f)}`}}},"&-light":{background:h,[`${t}-trigger`]:{color:m,background:g},[`${t}-zero-width-trigger`]:{color:m,background:g,border:`1px solid ${v}`,borderInlineStart:0}}}}},Pit=cr(["Layout","Sider"],e=>[kit(e)],wCe,{deprecatedTokens:TCe});var Dit=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 $re={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},Lit=e=>!Number.isNaN(Number.parseFloat(e))&&isFinite(e),z5=p.createContext({}),$it=(()=>{let e=0;return function(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return e+=1,`${t}${e}`}})(),OCe=p.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:f=80,zeroWidthTriggerStyle:h,breakpoint:m,onCollapse:g,onBreakpoint:v}=e,y=Dit(e,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:b}=p.useContext(CCe),[_,E]=p.useState("collapsed"in e?e.collapsed:a),[w,S]=p.useState(!1);p.useEffect(()=>{"collapsed"in e&&E(e.collapsed)},[e.collapsed]);const C=(Q,oe)=>{"collapsed"in e||E(Q),g==null||g(Q,oe)},{getPrefixCls:T,direction:x}=p.useContext(Qt),O=T("layout-sider",n),[N,I,M]=Pit(O),F=p.useRef(null);F.current=Q=>{S(Q.matches),v==null||v(Q.matches),_!==Q.matches&&C(Q.matches,"responsive")},p.useEffect(()=>{function Q(ge){return F.current(ge)}let oe;if(typeof window<"u"){const{matchMedia:ge}=window;if(ge&&m&&m in $re){oe=ge(`screen and (max-width: ${$re[m]})`);try{oe.addEventListener("change",Q)}catch{oe.addListener(Q)}Q(oe)}}return()=>{try{oe==null||oe.removeEventListener("change",Q)}catch{oe==null||oe.removeListener(Q)}}},[m]),p.useEffect(()=>{const Q=$it("ant-sider-");return b.addSider(Q),()=>b.removeSider(Q)},[]);const k=()=>{C(!_,"clickTrigger")},B=ur(y,["collapsed"]),A=_?f:d,P=Lit(A)?`${A}px`:String(A),z=parseFloat(String(f||0))===0?p.createElement("span",{onClick:k,className:Te(`${O}-zero-width-trigger`,`${O}-zero-width-trigger-${u?"right":"left"}`),style:h},i||p.createElement(ECe,null)):null,L=x==="rtl"==!u,U={expanded:L?p.createElement(lh,null):p.createElement(v_,null),collapsed:L?p.createElement(v_,null):p.createElement(lh,null)}[_?"collapsed":"expanded"],J=i!==null?z||p.createElement("div",{className:`${O}-trigger`,onClick:k,style:{width:P}},i||U):null,te=Object.assign(Object.assign({},l),{flex:`0 0 ${P}`,maxWidth:P,minWidth:P,width:P}),ae=Te(O,`${O}-${s}`,{[`${O}-collapsed`]:!!_,[`${O}-has-trigger`]:c&&i!==null&&!z,[`${O}-below`]:!!w,[`${O}-zero-width`]:parseFloat(P)===0},r,I,M),K=p.useMemo(()=>({siderCollapsed:_}),[_]);return N(p.createElement(z5.Provider,{value:K},p.createElement("aside",Object.assign({className:ae},B,{style:te,ref:t}),p.createElement("div",{className:`${O}-children`},o),c||w&&z?J:null)))});var Fit={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"},Bit=function(t,n){return p.createElement(Nn,Ke({},t,{ref:n,icon:Fit}))},Lq=p.forwardRef(Bit);const UM=p.createContext({prefixCls:"",firstLevel:!0,inlineCollapsed:!1});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 RCe=e=>{const{prefixCls:t,className:n,dashed:r}=e,i=jit(e,["prefixCls","className","dashed"]),{getPrefixCls:o}=p.useContext(Qt),a=o("menu",t),s=Te({[`${a}-item-divider-dashed`]:!!r},n);return p.createElement(Pq,Object.assign({className:s},i))},ICe=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:f}=p.useContext(UM),h=_=>{const E=r==null?void 0:r[0],w=p.createElement("span",{className:Te(`${l}-title-content`,{[`${l}-title-content-with-extra`]:!!s||s===0})},r);return(!i||p.isValidElement(r)&&r.type==="span")&&r&&_&&c&&typeof E=="string"?p.createElement("div",{className:`${l}-inline-collapsed-noicon`},E.charAt(0)):w},{siderCollapsed:m}=p.useContext(z5);let g=o;typeof o>"u"?g=c?r:"":o===!1&&(g="");const v={title:g};!m&&!f&&(v.title=null,v.open=!1);const y=Mo(r).length;let b=p.createElement(u2,Object.assign({},ur(e,["title","icon","danger"]),{className:Te({[`${l}-item-danger`]:a,[`${l}-item-only-child`]:(i?y+1:y)===1},n),title:typeof o=="string"?o:void 0}),_o(i,{className:Te(p.isValidElement(i)?(t=i.props)===null||t===void 0?void 0:t.className:"",`${l}-item-icon`)}),h(f));return d||(b=p.createElement(Ia,Object.assign({},v,{placement:u==="rtl"?"left":"right",classNames:{root:`${l}-inline-collapsed-tooltip`}}),b)),b};var Hit=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 zM=p.createContext(null),ACe=p.forwardRef((e,t)=>{const{children:n}=e,r=Hit(e,["children"]),i=p.useContext(zM),o=p.useMemo(()=>Object.assign(Object.assign({},i),r),[i,r.prefixCls,r.mode,r.selectable,r.rootClassName]),a=gGe(n),s=$d(t,a?Og(n):null);return p.createElement(zM.Provider,{value:o},p.createElement(Rd,{space:!0},a?p.cloneElement(n,{ref:s}):n))}),Uit=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:`${Ae(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"}}}},zit=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(${Ae(r(n).mul(-1).equal())})`},"&::after":{transform:`rotate(45deg) translateY(${Ae(n)})`}}}}},Fre=e=>Object.assign({},Td(e)),Bre=(e,t)=>{const{componentCls:n,itemColor:r,itemSelectedColor:i,subMenuItemSelectedColor:o,groupTitleColor:a,itemBg:s,subMenuItemBg:l,itemSelectedBg:c,activeBarHeight:u,activeBarWidth:d,activeBarBorderWidth:f,motionDurationSlow:h,motionEaseInOut:m,motionEaseOut:g,itemPaddingInline:v,motionDurationMid:y,itemHoverColor:b,lineType:_,colorSplit:E,itemDisabledColor:w,dangerItemColor:S,dangerItemHoverColor:C,dangerItemSelectedColor:T,dangerItemActiveBg:x,dangerItemSelectedBg:O,popupBg:N,itemHoverBg:I,itemActiveBg:M,menuSubMenuBg:F,horizontalItemSelectedColor:k,horizontalItemSelectedBg:B,horizontalItemBorderRadius:A,horizontalItemHoverBg:P}=e;return{[`${n}-${t}, ${n}-${t} > ${n}`]:{color:r,background:s,[`&${n}-root:focus-visible`]:Object.assign({},Fre(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({},Fre(e))},[`${n}-item-disabled, ${n}-submenu-disabled`]:{color:`${w} !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:I},"&:active":{backgroundColor:M}},[`${n}-submenu-title`]:{"&:hover":{backgroundColor:I},"&:active":{backgroundColor:M}}},[`${n}-item-danger`]:{color:S,[`&${n}-item:hover`]:{[`&:not(${n}-item-selected):not(${n}-submenu-selected)`]:{color:C}},[`&${n}-item:active`]:{background:x}},[`${n}-item a`]:{"&, &:hover":{color:"inherit"}},[`${n}-item-selected`]:{color:i,[`&${n}-item-danger`]:{color:T},"a, a:hover":{color:"inherit"}},[`& ${n}-item-selected`]:{backgroundColor:c,[`&${n}-item-danger`]:{backgroundColor:O}},[`&${n}-submenu > ${n}`]:{backgroundColor:F},[`&${n}-popup > ${n}`]:{backgroundColor:N},[`&${n}-submenu-popup > ${n}`]:{backgroundColor:N},[`&${n}-horizontal`]:Object.assign(Object.assign({},t==="dark"?{borderBottom:0}:{}),{[`> ${n}-item, > ${n}-submenu`]:{top:f,marginTop:e.calc(f).mul(-1).equal(),marginBottom:0,borderRadius:A,"&::after":{position:"absolute",insetInline:v,bottom:0,borderBottom:`${Ae(u)} solid transparent`,transition:`border-color ${h} ${m}`,content:'""'},"&:hover, &-active, &-open":{background:P,"&::after":{borderBottomWidth:u,borderBottomColor:k}},"&-selected":{color:k,backgroundColor:B,"&:hover":{backgroundColor:B},"&::after":{borderBottomWidth:u,borderBottomColor:k}}}}),[`&${n}-root`]:{[`&${n}-inline, &${n}-vertical`]:{borderInlineEnd:`${Ae(f)} ${_} ${E}`}},[`&${n}-inline`]:{[`${n}-sub${n}-inline`]:{background:l},[`${n}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${Ae(d)} solid ${i}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${y} ${g}`,`opacity ${y} ${g}`].join(","),content:'""'},[`&${n}-item-danger`]:{"&::after":{borderInlineEndColor:T}}},[`${n}-selected, ${n}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${y} ${m}`,`opacity ${y} ${m}`].join(",")}}}}}},jre=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:Ae(n),paddingInline:c,overflow:"hidden",textOverflow:"ellipsis",marginInline:r,marginBlock:s,width:l},[`> ${t}-item,
> ${t}-submenu > ${t}-submenu-title`]:{height:n,lineHeight:Ae(n)},[`${t}-item-group-list ${t}-submenu-title,
${t}-submenu-title`]:{paddingInlineEnd:u}}},Vit=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:f,paddingXS:h,boxShadowSecondary:m,collapsedWidth:g,collapsedIconSize:v}=e,y={height:r,lineHeight:Ae(r),listStylePosition:"inside",listStyleType:"disc"};return[{[t]:{"&-inline, &-vertical":Object.assign({[`&${t}-root`]:{boxShadow:"none"}},jre(e))},[`${t}-submenu-popup`]:{[`${t}-vertical`]:Object.assign(Object.assign({},jre(e)),{boxShadow:m})}},{[`${t}-submenu-popup ${t}-vertical${t}-sub`]:{minWidth:o,maxHeight:`calc(100vh - ${Ae(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 ${f}`,`background ${f}`,`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`]:y,[`& ${t}-item-group-title`]:{paddingInlineStart:l}},[`${t}-item`]:y}},{[`${t}-inline-collapsed`]:{width:g,[`&${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% - ${Ae(e.calc(v).div(2).equal())} - ${Ae(c)})`,textOverflow:"clip",[`
${t}-submenu-arrow,
${t}-submenu-expand-icon
`]:{opacity:0},[`${t}-item-icon, ${n}`]:{margin:0,fontSize:v,lineHeight:Ae(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({},kl),{paddingInline:h})}}]},Hre=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({},y0()),[`&${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"}}}},Ure=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(${Ae(e.calc(a).mul(-1).equal())})`},"&::after":{transform:`rotate(-45deg) translateY(${Ae(a)})`}}}}},Git=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:f,subMenuItemBorderRadius:h,menuArrowSize:m,menuArrowOffset:g,lineType:v,groupTitleLineHeight:y,groupTitleFontSize:b}=e;return[{"":{[n]:Object.assign(Object.assign({},wd()),{"&-hidden":{display:"none"}})},[`${n}-submenu-hidden`]:{display:"none"}},{[n]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},gr(e)),wd()),{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:`${Ae(s)} ${Ae(l)}`,fontSize:b,lineHeight:y,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:v,borderWidth:0,borderTopWidth:u,marginBlock:u,padding:0,"&-dashed":{borderStyle:"dashed"}}}),Hre(e)),{[`${n}-item-group`]:{[`${n}-item-group-list`]:{margin:0,padding:0,[`${n}-item, ${n}-submenu-title`]:{paddingInline:`${Ae(e.calc(r).mul(2).equal())} ${Ae(l)}`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:d,borderRadius:f,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:f},Hre(e)),Ure(e)),{[`${n}-item, ${n}-submenu > ${n}-submenu-title`]:{borderRadius:h},[`${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}}}),Ure(e)),{[`&-inline-collapsed ${n}-submenu-arrow,
&-inline ${n}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${Ae(g)})`},"&::after":{transform:`rotate(45deg) translateX(${Ae(e.calc(g).mul(-1).equal())})`}},[`${n}-submenu-open${n}-submenu-inline > ${n}-submenu-title > ${n}-submenu-arrow`]:{transform:`translateY(${Ae(e.calc(m).mul(.2).mul(-1).equal())})`,"&::after":{transform:`rotate(-45deg) translateX(${Ae(e.calc(g).mul(-1).equal())})`},"&::before":{transform:`rotate(45deg) translateX(${Ae(g)})`}}})},{[`${t}-layout-header`]:{[n]:{lineHeight:"inherit"}}}]},Wit=e=>{var t,n,r;const{colorPrimary:i,colorError:o,colorTextDisabled:a,colorErrorBg:s,colorText:l,colorTextDescription:c,colorBgContainer:u,colorFillAlter:d,colorFillContent:f,lineWidth:h,lineWidthBold:m,controlItemBgActive:g,colorBgTextHover:v,controlHeightLG:y,lineHeight:b,colorBgElevated:_,marginXXS:E,padding:w,fontSize:S,controlHeightSM:C,fontSizeLG:T,colorTextLightSolid:x,colorErrorHover:O}=e,N=(t=e.activeBarWidth)!==null&&t!==void 0?t:0,I=(n=e.activeBarBorderWidth)!==null&&n!==void 0?n:h,M=(r=e.itemMarginInline)!==null&&r!==void 0?r:e.marginXXS,F=new ir(x).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:v,itemHoverBg:v,colorItemBgActive:f,itemActiveBg:g,colorSubItemBg:d,subMenuItemBg:d,colorItemBgSelected:g,itemSelectedBg:g,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:N,colorActiveBarHeight:m,activeBarHeight:m,colorActiveBarBorderSize:h,activeBarBorderWidth:I,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:M,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:y,groupTitleLineHeight:b,collapsedWidth:y*2,popupBg:_,itemMarginBlock:E,itemPaddingInline:w,horizontalLineHeight:`${y*1.15}px`,iconSize:S,iconMarginInlineEnd:C-S,collapsedIconSize:T,groupTitleFontSize:S,darkItemDisabledColor:new ir(x).setA(.25).toRgbString(),darkItemColor:F,darkDangerItemColor:o,darkItemBg:"#001529",darkPopupBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:x,darkItemSelectedBg:i,darkDangerItemSelectedBg:o,darkItemHoverBg:"transparent",darkGroupTitleColor:F,darkItemHoverColor:x,darkDangerItemHoverColor:O,darkDangerItemSelectedColor:x,darkDangerItemActiveBg:o,itemWidth:N?`calc(100% + ${I}px)`:`calc(100% - ${M*2}px)`}},qit=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 cr("Menu",i=>{const{colorBgElevated:o,controlHeightLG:a,fontSize:s,darkItemColor:l,darkDangerItemColor:c,darkItemBg:u,darkSubMenuItemBg:d,darkItemSelectedColor:f,darkItemSelectedBg:h,darkDangerItemSelectedBg:m,darkItemHoverBg:g,darkGroupTitleColor:v,darkItemHoverColor:y,darkItemDisabledColor:b,darkDangerItemHoverColor:_,darkDangerItemSelectedColor:E,darkDangerItemActiveBg:w,popupBg:S,darkPopupBg:C}=i,T=i.calc(s).div(7).mul(5).equal(),x=Kn(i,{menuArrowSize:T,menuHorizontalHeight:i.calc(a).mul(1.15).equal(),menuArrowOffset:i.calc(T).mul(.25).equal(),menuSubMenuBg:o,calc:i.calc,popupBg:S}),O=Kn(x,{itemColor:l,itemHoverColor:y,groupTitleColor:v,itemSelectedColor:f,itemBg:u,popupBg:C,subMenuItemBg:d,itemActiveBg:"transparent",itemSelectedBg:h,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:g,itemDisabledColor:b,dangerItemColor:c,dangerItemHoverColor:_,dangerItemSelectedColor:E,dangerItemActiveBg:w,dangerItemSelectedBg:m,menuSubMenuBg:d,horizontalItemSelectedColor:f,horizontalItemSelectedBg:h});return[Git(x),Uit(x),Vit(x),Bre(x,"light"),Bre(O,"dark"),zit(x),n2(x),$f(x,"slide-up"),$f(x,"slide-down"),vS(x,"zoom-big")]},Wit,{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)},NCe=e=>{var t;const{popupClassName:n,icon:r,title:i,theme:o}=e,a=p.useContext(UM),{prefixCls:s,inlineCollapsed:l,theme:c}=a,u=SS();let d;if(!r)d=l&&!u.length&&i&&typeof i=="string"?p.createElement("div",{className:`${s}-inline-collapsed-noicon`},i.charAt(0)):p.createElement("span",{className:`${s}-title-content`},i);else{const m=p.isValidElement(i)&&i.type==="span";d=p.createElement(p.Fragment,null,_o(r,{className:Te(p.isValidElement(r)?(t=r.props)===null||t===void 0?void 0:t.className:"",`${s}-item-icon`)}),m?i:p.createElement("span",{className:`${s}-title-content`},i))}const f=p.useMemo(()=>Object.assign(Object.assign({},a),{firstLevel:!1}),[a]),[h]=Ou("Menu");return p.createElement(UM.Provider,{value:f},p.createElement(U5,Object.assign({},ur(e,["icon"]),{title:d,popupClassName:Te(s,n,`${s}-${o||c}`),popupStyle:Object.assign({zIndex:h},e.popupStyle)})))};var Yit=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 FL(e){return e===null||e===!1}const Kit={item:ICe,submenu:NCe,divider:RCe},Qit=p.forwardRef((e,t)=>{var n;const r=p.useContext(zM),i=r||{},{getPrefixCls:o,getPopupContainer:a,direction:s,menu:l}=p.useContext(Qt),c=o(),{prefixCls:u,className:d,style:f,theme:h="light",expandIcon:m,_internalDisableMenuItemTitleTooltip:g,inlineCollapsed:v,siderCollapsed:y,rootClassName:b,mode:_,selectable:E,onClick:w,overflowedIndicatorPopupClassName:S}=e,C=Yit(e,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),T=ur(C,["collapsedWidth"]);(n=i.validator)===null||n===void 0||n.call(i,{mode:_});const x=Yn(function(){var j;w==null||w.apply(void 0,arguments),(j=i.onClick)===null||j===void 0||j.call(i)}),O=i.mode||_,N=E??i.selectable,I=v??y,M={horizontal:{motionName:`${c}-slide-up`},inline:p_(c),other:{motionName:`${c}-zoom-big`}},F=o("menu",u||i.prefixCls),k=ui(F),[B,A,P]=qit(F,k,!r),z=Te(`${F}-${h}`,l==null?void 0:l.className,d),L=p.useMemo(()=>{var j,U;if(typeof m=="function"||FL(m))return m||null;if(typeof i.expandIcon=="function"||FL(i.expandIcon))return i.expandIcon||null;if(typeof(l==null?void 0:l.expandIcon)=="function"||FL(l==null?void 0:l.expandIcon))return(l==null?void 0:l.expandIcon)||null;const J=(j=m??(i==null?void 0:i.expandIcon))!==null&&j!==void 0?j:l==null?void 0:l.expandIcon;return _o(J,{className:Te(`${F}-submenu-expand-icon`,p.isValidElement(J)?(U=J.props)===null||U===void 0?void 0:U.className:void 0)})},[m,i==null?void 0:i.expandIcon,l==null?void 0:l.expandIcon,F]),V=p.useMemo(()=>({prefixCls:F,inlineCollapsed:I||!1,direction:s,firstLevel:!0,theme:h,mode:O,disableMenuItemTitleTooltip:g}),[F,I,s,g,h]);return B(p.createElement(zM.Provider,{value:null},p.createElement(UM.Provider,{value:V},p.createElement(ES,Object.assign({getPopupContainer:a,overflowedIndicator:p.createElement(Lq,null),overflowedIndicatorPopupClassName:Te(F,`${F}-${h}`,S),mode:O,selectable:N,onClick:x},T,{inlineCollapsed:I,style:Object.assign(Object.assign({},l==null?void 0:l.style),f),className:z,prefixCls:F,direction:s,defaultMotions:M,expandIcon:L,ref:t,rootClassName:Te(b,A,i.rootClassName,P,k),_internalComponents:Kit})))))}),Bd=p.forwardRef((e,t)=>{const n=p.useRef(null),r=p.useContext(z5);return p.useImperativeHandle(t,()=>({menu:n.current,focus:i=>{var o;(o=n.current)===null||o===void 0||o.focus(i)}})),p.createElement(Qit,Object.assign({ref:n},e,r))});Bd.Item=ICe;Bd.SubMenu=NCe;Bd.Divider=RCe;Bd.ItemGroup=Dq;const Xit=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}}}}}},Zit=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:f,fontSizeIcon:h,controlPaddingHorizontal:m,colorBgElevated:g}=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:h}},[`${t}-wrap`]:{position:"relative",[`${a}-btn > ${s}-down`]:{fontSize:h},[`${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:y5},[`&${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:S5},[`&${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:_5},[`&${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:E5}}},Rq(e,g,{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({},gr(e)),{[n]:Object.assign(Object.assign({padding:d,listStyleType:"none",backgroundColor:g,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary},Xs(e)),{"&:empty":{padding:0,boxShadow:"none"},[`${n}-item-group-title`]:{padding:`${Ae(c)} ${Ae(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:`${Ae(c)} ${Ae(m)}`,color:e.colorText,fontWeight:"normal",fontSize:u,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${l}`,borderRadius:e.borderRadiusSM,"&:hover, &-active":{backgroundColor:e.controlItemBgHover}},Xs(e)),{"&-selected":{color:e.colorPrimary,backgroundColor:e.controlItemBgActive,"&:hover, &-active":{backgroundColor:e.controlItemBgActiveHover}},"&-disabled":{color:f,cursor:"not-allowed","&:hover":{color:f,backgroundColor:g,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${Ae(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:h,fontStyle:"normal"}}}),[`${n}-item-group-list`]:{margin:`0 ${Ae(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:f,backgroundColor:g,cursor:"not-allowed"}},[`${n}-submenu-selected ${t}-menu-submenu-title`]:{color:e.colorPrimary}})})},[$f(e,"slide-up"),$f(e,"slide-down"),h_(e,"move-up"),h_(e,"move-down"),vS(e,"zoom-big")]]},Jit=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+50,paddingBlock:(e.controlHeight-e.fontSize*e.lineHeight)/2},B5({contentRadius:e.borderRadiusLG,limitVerticalRadius:!0})),F5(e)),eot=cr("Dropdown",e=>{const{marginXXS:t,sizePopupArrow:n,paddingXXS:r,componentCls:i}=e,o=Kn(e,{menuCls:`${i}-menu`,dropdownArrowDistance:e.calc(n).div(2).add(t).equal(),dropdownEdgeChildPadding:r});return[Zit(o),Xit(o)]},Jit,{resetStyle:!1}),d2=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:f,open:h,onOpenChange:m,visible:g,onVisibleChange:v,mouseEnterDelay:y=.15,mouseLeaveDelay:b=.1,autoAdjustOverflow:_=!0,placement:E="",overlay:w,transitionName:S}=e,{getPopupContainer:C,getPrefixCls:T,direction:x,dropdown:O}=p.useContext(Qt);Wf();const N=p.useMemo(()=>{const le=T();return S!==void 0?S:E.includes("top")?`${le}-slide-down`:`${le}-slide-up`},[T,E,S]),I=p.useMemo(()=>E?E.includes("Center")?E.slice(0,E.indexOf("Center")):E:x==="rtl"?"bottomRight":"bottomLeft",[E,x]),M=T("dropdown",i),F=ui(M),[k,B,A]=eot(M,F),[,P]=Go(),z=p.Children.only(Wrt(o)?p.createElement("span",null,o):o),L=_o(z,{className:Te(`${M}-trigger`,{[`${M}-rtl`]:x==="rtl"},z.props.className),disabled:(t=z.props.disabled)!==null&&t!==void 0?t:s}),V=s?[]:a,j=!!(V!=null&&V.includes("contextMenu")),[U,J]=Pn(!1,{value:h??g}),te=Yn(le=>{m==null||m(le,{source:"trigger"}),v==null||v(le),J(le)}),ae=Te(u,d,B,A,F,O==null?void 0:O.className,{[`${M}-rtl`]:x==="rtl"}),K=nCe({arrowPointAtCenter:typeof r=="object"&&r.pointAtCenter,autoAdjustOverflow:_,offset:P.marginXXS,arrowWidth:r?P.sizePopupArrow:0,borderRadius:P.borderRadius}),Q=p.useCallback(()=>{n!=null&&n.selectable&&(n!=null&&n.multiple)||(m==null||m(!1,{source:"menu"}),J(!1))},[n==null?void 0:n.selectable,n==null?void 0:n.multiple]),oe=()=>{let le;return n!=null&&n.items?le=p.createElement(Bd,Object.assign({},n)):typeof w=="function"?le=w():le=w,l&&(le=l(le)),le=p.Children.only(typeof le=="string"?p.createElement("span",null,le):le),p.createElement(ACe,{prefixCls:`${M}-menu`,rootClassName:Te(A,F),expandIcon:p.createElement("span",{className:`${M}-menu-submenu-arrow`},p.createElement(lh,{className:`${M}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:Q,validator:ve=>{}},le)},[ge,fe]=Ou("Dropdown",f==null?void 0:f.zIndex);let ue=p.createElement(uCe,Object.assign({alignPoint:j},ur(e,["rootClassName"]),{mouseEnterDelay:y,mouseLeaveDelay:b,visible:U,builtinPlacements:K,arrow:!!r,overlayClassName:ae,prefixCls:M,getPopupContainer:c||C,transitionName:N,trigger:V,overlay:oe,placement:I,onVisibleChange:te,overlayStyle:Object.assign(Object.assign(Object.assign({},O==null?void 0:O.style),f),{zIndex:ge})}),L);return ge&&(ue=p.createElement(Jx.Provider,{value:fe},ue)),k(ue)},tot=Ig(d2,"align",void 0,"dropdown",e=>e),not=e=>p.createElement(tot,Object.assign({},e),p.createElement("span",null));d2._InternalPanelDoNotUseOrYouWillBeFired=not;const V5=e=>{let{children:t}=e;const{getPrefixCls:n}=p.useContext(Qt),r=n("breadcrumb");return p.createElement("li",{className:`${r}-separator`,"aria-hidden":"true"},t===""?t:t||"/")};V5.__ANT_BREADCRUMB_SEPARATOR=!0;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,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 MCe(e,t,n,r){if(n==null)return null;const{className:i,onClick:o}=t,a=rot(t,["className","onClick"]),s=Object.assign(Object.assign({},xi(a,{data:!0,aria:!0})),{onClick:o});return r!==void 0?p.createElement("a",Object.assign({},s,{className:Te(`${e}-link`,i),href:r}),n):p.createElement("span",Object.assign({},s,{className:Te(`${e}-link`,i)}),n)}function oot(e,t){return(r,i,o,a,s)=>{if(t)return t(r,i,o,a);const l=iot(r,i);return MCe(e,r,l,s)}}var kH=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 kCe=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 f=i||{},{items:h}=f,m=kH(f,["items"]);d.menu=Object.assign(Object.assign({},m),{items:h==null?void 0:h.map((g,v)=>{var{key:y,title:b,label:_,path:E}=g,w=kH(g,["key","title","label","path"]);let S=_??b;return E&&(S=p.createElement("a",{href:`${s}${E}`},S)),Object.assign(Object.assign({},w),{key:y??v,label:S})})})}else o&&(d.overlay=o);return p.createElement(d2,Object.assign({placement:"bottom"},d),p.createElement("span",{className:`${t}-overlay-link`},u,p.createElement(c2,null)))}return u})(r);return c!=null?p.createElement(p.Fragment,null,p.createElement("li",null,c),n&&p.createElement(V5,null,n)):null},PCe=e=>{const{prefixCls:t,children:n,href:r}=e,i=kH(e,["prefixCls","children","href"]),{getPrefixCls:o}=p.useContext(Qt),a=o("breadcrumb",t);return p.createElement(kCe,Object.assign({},i,{prefixCls:a}),MCe(a,i,n,r))};PCe.__ANT_BREADCRUMB_ITEM=!0;const aot=e=>{const{componentCls:t,iconCls:n,calc:r}=e;return{[t]:Object.assign(Object.assign({},gr(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 ${Ae(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}},Xs(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 ${Ae(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"}})}},sot=e=>({itemColor:e.colorTextDescription,lastItemColor:e.colorText,iconFontSize:e.fontSize,linkColor:e.colorTextDescription,linkHoverColor:e.colorText,separatorColor:e.colorTextDescription,separatorMargin:e.marginXS}),lot=cr("Breadcrumb",e=>{const t=Kn(e,{});return aot(t)},sot);var zre=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 cot(e){const{breadcrumbName:t,children:n}=e,r=zre(e,["breadcrumbName","children"]),i=Object.assign({title:t},r);return n&&(i.menu={items:n.map(o=>{var{breadcrumbName:a}=o,s=zre(o,["breadcrumbName"]);return Object.assign(Object.assign({},s),{title:a})})}),i}function uot(e,t){return p.useMemo(()=>e||(t?t.map(cot):null),[e,t])}var dot=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 fot=(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},$q=e=>{const{prefixCls:t,separator:n="/",style:r,className:i,rootClassName:o,routes:a,items:s,children:l,itemRender:c,params:u={}}=e,d=dot(e,["prefixCls","separator","style","className","rootClassName","routes","items","children","itemRender","params"]),{getPrefixCls:f,direction:h,breadcrumb:m}=p.useContext(Qt);let g;const v=f("breadcrumb",t),[y,b,_]=lot(v),E=uot(s,a),w=oot(v,c);if(E&&E.length>0){const T=[],x=s||a;g=E.map((O,N)=>{const{path:I,key:M,type:F,menu:k,overlay:B,onClick:A,className:P,separator:z,dropdownProps:L}=O,V=fot(u,I);V!==void 0&&T.push(V);const j=M??N;if(F==="separator")return p.createElement(V5,{key:j},z);const U={},J=N===E.length-1;k?U.menu=k:B&&(U.overlay=B);let{href:te}=O;return T.length&&V!==void 0&&(te=`#/${T.join("/")}`),p.createElement(kCe,Object.assign({key:j},U,xi(O,{data:!0,aria:!0}),{className:P,dropdownProps:L,href:te,separator:J?"":n,onClick:A,prefixCls:v}),w(O,u,x,T,te))})}else if(l){const T=Mo(l).length;g=Mo(l).map((x,O)=>{if(!x)return x;const N=O===T-1;return _o(x,{separator:N?"":n,key:O})})}const S=Te(v,m==null?void 0:m.className,{[`${v}-rtl`]:h==="rtl"},i,o,b,_),C=Object.assign(Object.assign({},m==null?void 0:m.style),r);return y(p.createElement("nav",Object.assign({className:S,style:C},d),p.createElement("ol",null,g)))};$q.Item=PCe;$q.Separator=V5;var DCe={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(ao,function(){var n=1e3,r=6e4,i=36e5,o="millisecond",a="second",s="minute",l="hour",c="day",u="week",d="month",f="quarter",h="year",m="date",g="Invalid Date",v=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,y=/\[([^\]]+)]|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(F){var k=["th","st","nd","rd"],B=F%100;return"["+F+(k[(B-20)%10]||k[B]||k[0])+"]"}},_=function(F,k,B){var A=String(F);return!A||A.length>=k?F:""+Array(k+1-A.length).join(B)+F},E={s:_,z:function(F){var k=-F.utcOffset(),B=Math.abs(k),A=Math.floor(B/60),P=B%60;return(k<=0?"+":"-")+_(A,2,"0")+":"+_(P,2,"0")},m:function F(k,B){if(k.date()<B.date())return-F(B,k);var A=12*(B.year()-k.year())+(B.month()-k.month()),P=k.clone().add(A,d),z=B-P<0,L=k.clone().add(A+(z?-1:1),d);return+(-(A+(B-P)/(z?P-L:L-P))||0)},a:function(F){return F<0?Math.ceil(F)||0:Math.floor(F)},p:function(F){return{M:d,y:h,w:u,d:c,D:m,h:l,m:s,s:a,ms:o,Q:f}[F]||String(F||"").toLowerCase().replace(/s$/,"")},u:function(F){return F===void 0}},w="en",S={};S[w]=b;var C="$isDayjsObject",T=function(F){return F instanceof I||!(!F||!F[C])},x=function F(k,B,A){var P;if(!k)return w;if(typeof k=="string"){var z=k.toLowerCase();S[z]&&(P=z),B&&(S[z]=B,P=z);var L=k.split("-");if(!P&&L.length>1)return F(L[0])}else{var V=k.name;S[V]=k,P=V}return!A&&P&&(w=P),P||!A&&w},O=function(F,k){if(T(F))return F.clone();var B=typeof k=="object"?k:{};return B.date=F,B.args=arguments,new I(B)},N=E;N.l=x,N.i=T,N.w=function(F,k){return O(F,{locale:k.$L,utc:k.$u,x:k.$x,$offset:k.$offset})};var I=function(){function F(B){this.$L=x(B.locale,null,!0),this.parse(B),this.$x=this.$x||B.x||{},this[C]=!0}var k=F.prototype;return k.parse=function(B){this.$d=function(A){var P=A.date,z=A.utc;if(P===null)return new Date(NaN);if(N.u(P))return new Date;if(P instanceof Date)return new Date(P);if(typeof P=="string"&&!/Z$/i.test(P)){var L=P.match(v);if(L){var V=L[2]-1||0,j=(L[7]||"0").substring(0,3);return z?new Date(Date.UTC(L[1],V,L[3]||1,L[4]||0,L[5]||0,L[6]||0,j)):new Date(L[1],V,L[3]||1,L[4]||0,L[5]||0,L[6]||0,j)}}return new Date(P)}(B),this.init()},k.init=function(){var B=this.$d;this.$y=B.getFullYear(),this.$M=B.getMonth(),this.$D=B.getDate(),this.$W=B.getDay(),this.$H=B.getHours(),this.$m=B.getMinutes(),this.$s=B.getSeconds(),this.$ms=B.getMilliseconds()},k.$utils=function(){return N},k.isValid=function(){return this.$d.toString()!==g},k.isSame=function(B,A){var P=O(B);return this.startOf(A)<=P&&P<=this.endOf(A)},k.isAfter=function(B,A){return O(B)<this.startOf(A)},k.isBefore=function(B,A){return this.endOf(A)<O(B)},k.$g=function(B,A,P){return N.u(B)?this[A]:this.set(P,B)},k.unix=function(){return Math.floor(this.valueOf()/1e3)},k.valueOf=function(){return this.$d.getTime()},k.startOf=function(B,A){var P=this,z=!!N.u(A)||A,L=N.p(B),V=function(oe,ge){var fe=N.w(P.$u?Date.UTC(P.$y,ge,oe):new Date(P.$y,ge,oe),P);return z?fe:fe.endOf(c)},j=function(oe,ge){return N.w(P.toDate()[oe].apply(P.toDate("s"),(z?[0,0,0,0]:[23,59,59,999]).slice(ge)),P)},U=this.$W,J=this.$M,te=this.$D,ae="set"+(this.$u?"UTC":"");switch(L){case h:return z?V(1,0):V(31,11);case d:return z?V(1,J):V(0,J+1);case u:var K=this.$locale().weekStart||0,Q=(U<K?U+7:U)-K;return V(z?te-Q:te+(6-Q),J);case c:case m:return j(ae+"Hours",0);case l:return j(ae+"Minutes",1);case s:return j(ae+"Seconds",2);case a:return j(ae+"Milliseconds",3);default:return this.clone()}},k.endOf=function(B){return this.startOf(B,!1)},k.$set=function(B,A){var P,z=N.p(B),L="set"+(this.$u?"UTC":""),V=(P={},P[c]=L+"Date",P[m]=L+"Date",P[d]=L+"Month",P[h]=L+"FullYear",P[l]=L+"Hours",P[s]=L+"Minutes",P[a]=L+"Seconds",P[o]=L+"Milliseconds",P)[z],j=z===c?this.$D+(A-this.$W):A;if(z===d||z===h){var U=this.clone().set(m,1);U.$d[V](j),U.init(),this.$d=U.set(m,Math.min(this.$D,U.daysInMonth())).$d}else V&&this.$d[V](j);return this.init(),this},k.set=function(B,A){return this.clone().$set(B,A)},k.get=function(B){return this[N.p(B)]()},k.add=function(B,A){var P,z=this;B=Number(B);var L=N.p(A),V=function(J){var te=O(z);return N.w(te.date(te.date()+Math.round(J*B)),z)};if(L===d)return this.set(d,this.$M+B);if(L===h)return this.set(h,this.$y+B);if(L===c)return V(1);if(L===u)return V(7);var j=(P={},P[s]=r,P[l]=i,P[a]=n,P)[L]||1,U=this.$d.getTime()+B*j;return N.w(U,this)},k.subtract=function(B,A){return this.add(-1*B,A)},k.format=function(B){var A=this,P=this.$locale();if(!this.isValid())return P.invalidDate||g;var z=B||"YYYY-MM-DDTHH:mm:ssZ",L=N.z(this),V=this.$H,j=this.$m,U=this.$M,J=P.weekdays,te=P.months,ae=P.meridiem,K=function(ge,fe,ue,le){return ge&&(ge[fe]||ge(A,z))||ue[fe].slice(0,le)},Q=function(ge){return N.s(V%12||12,ge,"0")},oe=ae||function(ge,fe,ue){var le=ge<12?"AM":"PM";return ue?le.toLowerCase():le};return z.replace(y,function(ge,fe){return fe||function(ue){switch(ue){case"YY":return String(A.$y).slice(-2);case"YYYY":return N.s(A.$y,4,"0");case"M":return U+1;case"MM":return N.s(U+1,2,"0");case"MMM":return K(P.monthsShort,U,te,3);case"MMMM":return K(te,U);case"D":return A.$D;case"DD":return N.s(A.$D,2,"0");case"d":return String(A.$W);case"dd":return K(P.weekdaysMin,A.$W,J,2);case"ddd":return K(P.weekdaysShort,A.$W,J,3);case"dddd":return J[A.$W];case"H":return String(V);case"HH":return N.s(V,2,"0");case"h":return Q(1);case"hh":return Q(2);case"a":return oe(V,j,!0);case"A":return oe(V,j,!1);case"m":return String(j);case"mm":return N.s(j,2,"0");case"s":return String(A.$s);case"ss":return N.s(A.$s,2,"0");case"SSS":return N.s(A.$ms,3,"0");case"Z":return L}return null}(ge)||L.replace(":","")})},k.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},k.diff=function(B,A,P){var z,L=this,V=N.p(A),j=O(B),U=(j.utcOffset()-this.utcOffset())*r,J=this-j,te=function(){return N.m(L,j)};switch(V){case h:z=te()/12;break;case d:z=te();break;case f:z=te()/3;break;case u:z=(J-U)/6048e5;break;case c:z=(J-U)/864e5;break;case l:z=J/i;break;case s:z=J/r;break;case a:z=J/n;break;default:z=J}return P?z:N.a(z)},k.daysInMonth=function(){return this.endOf(d).$D},k.$locale=function(){return S[this.$L]},k.locale=function(B,A){if(!B)return this.$L;var P=this.clone(),z=x(B,A,!0);return z&&(P.$L=z),P},k.clone=function(){return N.w(this.$d,this)},k.toDate=function(){return new Date(this.valueOf())},k.toJSON=function(){return this.isValid()?this.toISOString():null},k.toISOString=function(){return this.$d.toISOString()},k.toString=function(){return this.$d.toUTCString()},F}(),M=I.prototype;return O.prototype=M,[["$ms",o],["$s",a],["$m",s],["$H",l],["$W",c],["$M",d],["$y",h],["$D",m]].forEach(function(F){M[F[1]]=function(k){return this.$g(k,F[0],F[1])}}),O.extend=function(F,k){return F.$i||(F(k,I,O),F.$i=!0),O},O.locale=x,O.isDayjs=T,O.unix=function(F){return O(1e3*F)},O.en=S[w],O.Ls=S,O.p={},O})})(DCe);var LCe=DCe.exports;const br=di(LCe);var $Ce={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(ao,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")}}})})($Ce);var pot=$Ce.exports;const FCe=di(pot);var BCe={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(ao,function(){return function(n,r,i){var o=r.prototype,a=function(d){return d&&(d.indexOf?d:d.s)},s=function(d,f,h,m,g){var v=d.name?d:d.$locale(),y=a(v[f]),b=a(v[h]),_=y||b.map(function(w){return w.slice(0,m)});if(!g)return _;var E=v.weekStart;return _.map(function(w,S){return _[(S+(E||0))%7]})},l=function(){return i.Ls[i.locale()]},c=function(d,f){return d.formats[f]||function(h){return h.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(m,g,v){return g||v.slice(1)})}(d.formats[f.toUpperCase()])},u=function(){var d=this;return{months:function(f){return f?f.format("MMMM"):s(d,"months")},monthsShort:function(f){return f?f.format("MMM"):s(d,"monthsShort","months",3)},firstDayOfWeek:function(){return d.$locale().weekStart||0},weekdays:function(f){return f?f.format("dddd"):s(d,"weekdays")},weekdaysMin:function(f){return f?f.format("dd"):s(d,"weekdaysMin","weekdays",2)},weekdaysShort:function(f){return f?f.format("ddd"):s(d,"weekdaysShort","weekdays",3)},longDateFormat:function(f){return c(d.$locale(),f)},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(f){return c(d,f)},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)}}})})(BCe);var hot=BCe.exports;const jCe=di(hot);var HCe={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(ao,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 f=a(this).startOf(r).date(c).startOf(n).subtract(1,"millisecond"),h=this.diff(f,n,!0);return h<0?a(this).startOf("week").week():Math.ceil(h)},s.weeks=function(l){return l===void 0&&(l=null),this.week(l)}}})})(HCe);var mot=HCe.exports;const Fq=di(mot);var UCe={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(ao,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}}})})(UCe);var got=UCe.exports;const vot=di(got);var zCe={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(ao,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)}}})})(zCe);var bot=zCe.exports;const VCe=di(bot);var GCe={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(ao,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(v){return(v=+v)+(v>68?1900:2e3)},u=function(v){return function(y){this[v]=+y}},d=[/[+-]\d\d:?(\d\d)?|Z/,function(v){(this.zone||(this.zone={})).offset=function(y){if(!y||y==="Z")return 0;var b=y.match(/([+-]|\d\d)/g),_=60*b[1]+(+b[2]||0);return _===0?0:b[0]==="+"?-_:_}(v)}],f=function(v){var y=l[v];return y&&(y.indexOf?y:y.s.concat(y.f))},h=function(v,y){var b,_=l.meridiem;if(_){for(var E=1;E<=24;E+=1)if(v.indexOf(_(E,0,y))>-1){b=E>12;break}}else b=v===(y?"pm":"PM");return b},m={A:[s,function(v){this.afternoon=h(v,!1)}],a:[s,function(v){this.afternoon=h(v,!0)}],Q:[i,function(v){this.month=3*(v-1)+1}],S:[i,function(v){this.milliseconds=100*+v}],SS:[o,function(v){this.milliseconds=10*+v}],SSS:[/\d{3}/,function(v){this.milliseconds=+v}],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(v){var y=l.ordinal,b=v.match(/\d+/);if(this.day=b[0],y)for(var _=1;_<=31;_+=1)y(_).replace(/\[|\]/g,"")===v&&(this.day=_)}],w:[a,u("week")],ww:[o,u("week")],M:[a,u("month")],MM:[o,u("month")],MMM:[s,function(v){var y=f("months"),b=(f("monthsShort")||y.map(function(_){return _.slice(0,3)})).indexOf(v)+1;if(b<1)throw new Error;this.month=b%12||b}],MMMM:[s,function(v){var y=f("months").indexOf(v)+1;if(y<1)throw new Error;this.month=y%12||y}],Y:[/[+-]?\d+/,u("year")],YY:[o,function(v){this.year=c(v)}],YYYY:[/\d{4}/,u("year")],Z:d,ZZ:d};function g(v){var y,b;y=v,b=l&&l.formats;for(var _=(v=y.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(O,N,I){var M=I&&I.toUpperCase();return N||b[I]||n[I]||b[M].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(F,k,B){return k||B.slice(1)})})).match(r),E=_.length,w=0;w<E;w+=1){var S=_[w],C=m[S],T=C&&C[0],x=C&&C[1];_[w]=x?{regex:T,parser:x}:S.replace(/^\[|\]$/g,"")}return function(O){for(var N={},I=0,M=0;I<E;I+=1){var F=_[I];if(typeof F=="string")M+=F.length;else{var k=F.regex,B=F.parser,A=O.slice(M),P=k.exec(A)[0];B.call(N,P),O=O.replace(P,"")}}return function(z){var L=z.afternoon;if(L!==void 0){var V=z.hours;L?V<12&&(z.hours+=12):V===12&&(z.hours=0),delete z.afternoon}}(N),N}}return function(v,y,b){b.p.customParseFormat=!0,v&&v.parseTwoDigitYear&&(c=v.parseTwoDigitYear);var _=y.prototype,E=_.parse;_.parse=function(w){var S=w.date,C=w.utc,T=w.args;this.$u=C;var x=T[1];if(typeof x=="string"){var O=T[2]===!0,N=T[3]===!0,I=O||N,M=T[2];N&&(M=T[2]),l=this.$locale(),!O&&M&&(l=b.Ls[M]),this.$d=function(A,P,z,L){try{if(["x","X"].indexOf(P)>-1)return new Date((P==="X"?1e3:1)*A);var V=g(P)(A),j=V.year,U=V.month,J=V.day,te=V.hours,ae=V.minutes,K=V.seconds,Q=V.milliseconds,oe=V.zone,ge=V.week,fe=new Date,ue=J||(j||U?1:fe.getDate()),le=j||fe.getFullYear(),ve=0;j&&!U||(ve=U>0?U-1:fe.getMonth());var ne,pe=te||0,be=ae||0,Re=K||0,Se=Q||0;return oe?new Date(Date.UTC(le,ve,ue,pe,be,Re,Se+60*oe.offset*1e3)):z?new Date(Date.UTC(le,ve,ue,pe,be,Re,Se)):(ne=new Date(le,ve,ue,pe,be,Re,Se),ge&&(ne=L(ne).week(ge).toDate()),ne)}catch{return new Date("")}}(S,x,C,b),this.init(),M&&M!==!0&&(this.$L=this.locale(M).$L),I&&S!=this.format(x)&&(this.$d=new Date("")),l={}}else if(x instanceof Array)for(var F=x.length,k=1;k<=F;k+=1){T[1]=x[k-1];var B=b.apply(this,T);if(B.isValid()){this.$d=B.$d,this.$L=B.$L,this.init();break}k===F&&(this.$d=new Date(""))}else E.call(this,w)}}})})(GCe);var yot=GCe.exports;const WCe=di(yot);br.extend(WCe);br.extend(VCe);br.extend(FCe);br.extend(jCe);br.extend(Fq);br.extend(vot);br.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 _ot={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"},n1=function(t){var n=_ot[t];return n||t.split("_")[0]},Sot={getNow:function(){var t=br();return typeof t.tz=="function"?t.tz():t},getFixedDate:function(t){return br(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 br().locale(n1(t)).localeData().firstDayOfWeek()},getWeekFirstDate:function(t,n){return n.locale(n1(t)).weekday(0)},getWeek:function(t,n){return n.locale(n1(t)).week()},getShortWeekDays:function(t){return br().locale(n1(t)).localeData().weekdaysMin()},getShortMonths:function(t){return br().locale(n1(t)).localeData().monthsShort()},format:function(t,n,r){return n.locale(n1(t)).format(r)},parse:function(t,n,r){for(var i=n1(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=br(l,"YYYY").startOf("year").locale(i),d=0;d<=52;d+=1){var f=u.add(d,"week");if(f.format("Wo")===c)return f}return null}var h=br(s,a,!0).locale(i);if(h.isValid())return h}return null}}};function G5(e,t){return e!==void 0?e:t?"bottomRight":"bottomLeft"}function qCe(e,t){var n=G5(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 jd=p.createContext(null),Eot={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 YCe(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?Eot:u,f=e.direction,h=e.visible,m=e.onClose,g=p.useContext(jd),v=g.prefixCls,y="".concat(v,"-dropdown"),b=G5(c,f==="rtl");return p.createElement(l2,{showAction:[],hideAction:["click"],popupPlacement:b,builtinPlacements:d,prefixCls:y,popupTransitionName:o,popup:t,popupAlign:i,popupVisible:h,popupClassName:Te(r,ee(ee({},"".concat(y,"-range"),l),"".concat(y,"-rtl"),f==="rtl")),popupStyle:n,stretch:"minWidth",getPopupContainer:a,onPopupVisibleChange:function(E){E||m()}},s)}function Bq(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 E0(e){return e==null?[]:Array.isArray(e)?e:[e]}function fw(e,t,n){var r=nt(e);return r[t]=n,r}function W5(e,t){var n={},r=t||Object.keys(e);return r.forEach(function(i){e[i]!==void 0&&(n[i]=e[i])}),n}function KCe(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 QCe(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 XCe(e){return W5(e,["placement","builtinPlacements","popupAlign","getPopupContainer","transitionName","direction"])}function jq(e,t,n,r){var i=p.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=p.useCallback(function(a,s){return i(a,W(W({},s),{},{range:r}))},[i,r]);return o}function ZCe(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],r=p.useState([!1,!1]),i=Ie(r,2),o=i[0],a=i[1],s=function(u,d){a(function(f){return fw(f,d,u)})},l=p.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 JCe(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 Cot(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,f=e.fieldQuarterFormat,h=e.yearFormat,m=e.cellYearFormat,g=e.cellQuarterFormat,v=e.dayFormat,y=e.cellDateFormat,b=JCe(t,n,r,i,o);return W(W({},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:f||"YYYY-[Q]Q",yearFormat:h||"YYYY",cellYearFormat:m||"YYYY",cellQuarterFormat:g||"[Q]Q",cellDateFormat:y||v||"D"})}function ewe(e,t){var n=t.showHour,r=t.showMinute,i=t.showSecond,o=t.showMillisecond,a=t.use12Hours;return ce.useMemo(function(){return Cot(e,n,r,i,o,a)},[e,n,r,i,o,a])}function BE(e,t,n){return n??t.some(function(r){return e.includes(r)})}var wot=["showNow","showHour","showMinute","showSecond","showMillisecond","use12Hours","hourStep","minuteStep","secondStep","millisecondStep","hideDisabledOptions","defaultValue","disabledHours","disabledMinutes","disabledSeconds","disabledMilliseconds","disabledTime","changeOnScroll","defaultOpenValue"];function Tot(e){var t=W5(e,wot),n=e.format,r=e.picker,i=null;return n&&(i=n,Array.isArray(i)&&(i=i[0]),i=Gt(i)==="object"?i.format:i),r==="time"&&(t.format=i),[t,i]}function xot(e){return e&&typeof e=="string"}function twe(e,t,n,r){return[e,t,n,r].some(function(i){return i!==void 0})}function nwe(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}),f=[o,a,s].some(function(m){return m===!0}),h=d?!0:!f;o=(l=o)!==null&&l!==void 0?l:h,a=(c=a)!==null&&c!==void 0?c:h,s=(u=s)!==null&&u!==void 0?u:h}return[o,a,s,i]}function rwe(e){var t=e.showTime,n=Tot(e),r=Ie(n,2),i=r[0],o=r[1],a=t&&Gt(t)==="object"?t:{},s=W(W({defaultOpenValue:a.defaultOpenValue||a.defaultValue},i),a),l=s.showMillisecond,c=s.showHour,u=s.showMinute,d=s.showSecond,f=twe(c,u,d,l),h=nwe(f,c,u,d,l),m=Ie(h,3);return c=m[0],u=m[1],d=m[2],[s,W(W({},s),{},{showHour:c,showMinute:u,showSecond:d,showMillisecond:l}),s.format,o]}function iwe(e,t,n,r,i){var o=e==="time";if(e==="datetime"||o){for(var a=r,s=KCe(e,i,null),l=s,c=[t,n],u=0;u<c.length;u+=1){var d=E0(c[u])[0];if(xot(d)){l=d;break}}var f=a.showHour,h=a.showMinute,m=a.showSecond,g=a.showMillisecond,v=a.use12Hours,y=BE(l,["a","A","LT","LLL","LTS"],v),b=twe(f,h,m,g);b||(f=BE(l,["H","h","k","LT","LLL"]),h=BE(l,["m","LT","LLL"]),m=BE(l,["s","LTS"]),g=BE(l,["SSS"]));var _=nwe(b,f,h,m,g),E=Ie(_,3);f=E[0],h=E[1],m=E[2];var w=t||JCe(f,h,m,g,y);return W(W({},a),{},{format:w,showHour:f,showMinute:h,showSecond:m,showMillisecond:g,use12Hours:y})}return null}function Oot(e,t,n){if(t===!1)return null;var r=t&&Gt(t)==="object"?t:{};return r.clearIcon||n||p.createElement("span",{className:"".concat(e,"-clear-btn")})}var BL=7;function Ag(e,t,n){return!e&&!t||e===t?!0:!e||!t?!1:n()}function PH(e,t,n){return Ag(t,n,function(){var r=Math.floor(e.getYear(t)/10),i=Math.floor(e.getYear(n)/10);return r===i})}function Hv(e,t,n){return Ag(t,n,function(){return e.getYear(t)===e.getYear(n)})}function Vre(e,t){var n=Math.floor(e.getMonth(t)/3);return n+1}function Rot(e,t,n){return Ag(t,n,function(){return Hv(e,t,n)&&Vre(e,t)===Vre(e,n)})}function Hq(e,t,n){return Ag(t,n,function(){return Hv(e,t,n)&&e.getMonth(t)===e.getMonth(n)})}function Uq(e,t,n){return Ag(t,n,function(){return Hv(e,t,n)&&Hq(e,t,n)&&e.getDate(t)===e.getDate(n)})}function owe(e,t,n){return Ag(t,n,function(){return e.getHour(t)===e.getHour(n)&&e.getMinute(t)===e.getMinute(n)&&e.getSecond(t)===e.getSecond(n)})}function awe(e,t,n){return Ag(t,n,function(){return Uq(e,t,n)&&owe(e,t,n)&&e.getMillisecond(t)===e.getMillisecond(n)})}function NC(e,t,n,r){return Ag(n,r,function(){var i=e.locale.getWeekFirstDate(t,n),o=e.locale.getWeekFirstDate(t,r);return Hv(e,i,o)&&e.locale.getWeek(t,n)===e.locale.getWeek(t,r)})}function xs(e,t,n,r,i){switch(i){case"date":return Uq(e,n,r);case"week":return NC(e,t.locale,n,r);case"month":return Hq(e,n,r);case"quarter":return Rot(e,n,r);case"year":return Hv(e,n,r);case"decade":return PH(e,n,r);case"time":return owe(e,n,r);default:return awe(e,n,r)}}function q5(e,t,n,r){return!t||!n||!r?!1:e.isAfter(r,t)&&e.isAfter(n,r)}function CR(e,t,n,r,i){return xs(e,t,n,r,i)?!0:e.isAfter(n,r)}function Iot(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 VM(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 Aot(e,t,n,r,i){var o=Yn(function(a,s){return!!(n&&n(a,s)||r&&e.isAfter(r,a)&&!xs(e,t,r,a,s.type)||i&&e.isAfter(a,i)&&!xs(e,t,i,a,s.type))});return o}function Not(e,t,n){return p.useMemo(function(){var r=KCe(e,t,n),i=E0(r),o=i[0],a=Gt(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 Mot(e,t,n){return typeof e[0]=="function"||n?!0:t}function kot(e,t,n,r){var i=Yn(function(o,a){var s=W({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,f=u.disabledMinutes,h=u.disabledSeconds,m=u.disabledMilliseconds,g=r.disabledHours,v=r.disabledMinutes,y=r.disabledSeconds,b=d||g,_=f||v,E=h||y,w=e.getHour(o),S=e.getMinute(o),C=e.getSecond(o),T=e.getMillisecond(o);if(b&&b().includes(w)||_&&_(w).includes(S)||E&&E(w,S).includes(C)||m&&m(w,S,C).includes(T))return!0}return!1});return i}function wR(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=p.useMemo(function(){var r=e&&E0(e);return t&&r&&(r[1]=r[1]||r[0]),r},[e,t]);return n}function swe(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,f=e.order,h=f===void 0?!0:f,m=e.components,g=m===void 0?{}:m,v=e.inputRender,y=e.allowClear,b=e.clearIcon,_=e.needConfirm,E=e.multiple,w=e.format,S=e.inputReadOnly,C=e.disabledDate,T=e.minDate,x=e.maxDate,O=e.showTime,N=e.value,I=e.defaultValue,M=e.pickerValue,F=e.defaultPickerValue,k=wR(N),B=wR(I),A=wR(M),P=wR(F),z=o==="date"&&O?"datetime":o,L=z==="time"||z==="datetime",V=L||E,j=_??L,U=rwe(e),J=Ie(U,4),te=J[0],ae=J[1],K=J[2],Q=J[3],oe=ewe(r,ae),ge=p.useMemo(function(){return iwe(z,K,Q,te,oe)},[z,K,Q,te,oe]),fe=p.useMemo(function(){return W(W({},e),{},{prefixCls:s,locale:oe,picker:o,styles:c,classNames:d,order:h,components:W({input:v},g),clearIcon:Oot(s,y,b),showTime:ge,value:k,defaultValue:B,pickerValue:A,defaultPickerValue:P},t==null?void 0:t())},[e]),ue=Not(z,oe,w),le=Ie(ue,2),ve=le[0],ne=le[1],pe=Mot(ve,S,E),be=Aot(n,r,C,T,x),Re=kot(n,o,be,ge),Se=p.useMemo(function(){return W(W({},fe),{},{needConfirm:j,inputReadOnly:pe,disabledDate:be})},[fe,j,pe,be]);return[Se,z,V,ve,ne,Re]}function Pot(e,t,n){var r=Pn(t,{value:e}),i=Ie(r,2),o=i[0],a=i[1],s=ce.useRef(e),l=ce.useRef(),c=function(){rr.cancel(l.current)},u=Yn(function(){a(s.current),n&&o!==s.current&&n(s.current)}),d=Yn(function(f,h){c(),s.current=f,f||h?u():l.current=rr(u)});return ce.useEffect(function(){return c},[]),[o,d]}function lwe(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=Pot(i,t||!1,r),a=Ie(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 cwe(e){var t=p.useRef();return p.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 uwe(e,t){return p.useMemo(function(){return e||(t?(Yr(!1,"`ranges` is deprecated. Please use `presets` instead."),Object.entries(t).map(function(n){var r=Ie(n,2),i=r[0],o=r[1];return{label:i,value:o}})):[])},[e,t])}function zq(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,r=p.useRef(t);r.current=t,uv(function(){if(e)r.current(e);else{var i=rr(function(){r.current(e)},n);return function(){rr.cancel(i)}}},[e])}function dwe(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=p.useState(0),i=Ie(r,2),o=i[0],a=i[1],s=p.useState(!1),l=Ie(s,2),c=l[0],u=l[1],d=p.useRef([]),f=p.useRef(null),h=p.useRef(null),m=function(E){f.current=E},g=function(E){return f.current===E},v=function(E){u(E)},y=function(E){return E&&(h.current=E),h.current},b=function(E){var w=d.current,S=new Set(w.filter(function(T){return E[T]||t[T]})),C=w[w.length-1]===0?1:0;return S.size>=2||e[C]?null:C};return zq(c||n,function(){c||(d.current=[],m(null))}),p.useEffect(function(){c&&d.current.push(o)},[c,o]),[c,v,y,o,a,b,d.current,m,g]}function Dot(e,t,n,r,i,o){var a=n[n.length-1],s=function(c,u){var d=Ie(e,2),f=d[0],h=d[1],m=W(W({},u),{},{from:QCe(e,n)});return a===1&&t[0]&&f&&!xs(r,i,f,c,m.type)&&r.isAfter(f,c)||a===0&&t[1]&&h&&!xs(r,i,h,c,m.type)&&r.isAfter(c,h)?!0:o==null?void 0:o(c,m)};return s}function MC(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 jL=[];function fwe(e,t,n,r,i,o,a,s){var l=arguments.length>8&&arguments[8]!==void 0?arguments[8]:jL,c=arguments.length>9&&arguments[9]!==void 0?arguments[9]:jL,u=arguments.length>10&&arguments[10]!==void 0?arguments[10]:jL,d=arguments.length>11?arguments[11]:void 0,f=arguments.length>12?arguments[12]:void 0,h=arguments.length>13?arguments[13]:void 0,m=a==="time",g=o||0,v=function(A){var P=e.getNow();return m&&(P=VM(e,P)),l[A]||n[A]||P},y=Ie(c,2),b=y[0],_=y[1],E=Pn(function(){return v(0)},{value:b}),w=Ie(E,2),S=w[0],C=w[1],T=Pn(function(){return v(1)},{value:_}),x=Ie(T,2),O=x[0],N=x[1],I=p.useMemo(function(){var B=[S,O][g];return m?B:VM(e,B,u[g])},[m,S,O,g,e,u]),M=function(A){var P=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"panel",z=[C,N][g];z(A);var L=[S,O];L[g]=A,d&&(!xs(e,t,S,L[0],a)||!xs(e,t,O,L[1],a))&&d(L,{source:P,range:g===1?"end":"start",mode:r})},F=function(A,P){if(s){var z={date:"month",week:"month",month:"year",quarter:"year"},L=z[a];if(L&&!xs(e,t,A,P,L))return MC(e,a,P,-1);if(a==="year"&&A){var V=Math.floor(e.getYear(A)/10),j=Math.floor(e.getYear(P)/10);if(V!==j)return MC(e,a,P,-1)}}return P},k=p.useRef(null);return sr(function(){if(i&&!l[g]){var B=m?null:e.getNow();if(k.current!==null&&k.current!==g?B=[S,O][g^1]:n[g]?B=g===0?n[0]:F(n[0],n[1]):n[g^1]&&(B=n[g^1]),B){f&&e.isAfter(f,B)&&(B=f);var A=s?MC(e,a,B,1):B;h&&e.isAfter(A,h)&&(B=s?MC(e,a,h,-1):h),M(B,"reset")}}},[i,g,n[g]]),p.useEffect(function(){i?k.current=g:k.current=null},[i,g]),sr(function(){i&&l&&l[g]&&M(l[g],"reset")},[i,g]),[I,M]}function pwe(e,t){var n=p.useRef(e),r=p.useState({}),i=Ie(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 Lot=[];function hwe(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,f=s[u]||null;if(d!==f&&!awe(e,d,f)){c=u;break}}return[c<0,c!==0]};return[r,i]}function mwe(e,t){return nt(e).sort(function(n,r){return t.isAfter(n,r)?1:-1})}function $ot(e){var t=pwe(e),n=Ie(t,2),r=n[0],i=n[1],o=Yn(function(){i(e)});return p.useEffect(function(){o()},[e]),[r,i]}function gwe(e,t,n,r,i,o,a,s,l){var c=Pn(o,{value:a}),u=Ie(c,2),d=u[0],f=u[1],h=d||Lot,m=$ot(h),g=Ie(m,2),v=g[0],y=g[1],b=hwe(e,t,n),_=Ie(b,2),E=_[0],w=_[1],S=Yn(function(T){var x=nt(T);if(r)for(var O=0;O<2;O+=1)x[O]=x[O]||null;else i&&(x=mwe(x.filter(function(B){return B}),e));var N=w(v(),x),I=Ie(N,2),M=I[0],F=I[1];if(!M&&(y(x),s)){var k=E(x);s(x,k,{range:F?"end":"start"})}}),C=function(){l&&l(v())};return[h,f,v,S,C]}function vwe(e,t,n,r,i,o,a,s,l,c){var u=e.generateConfig,d=e.locale,f=e.picker,h=e.onChange,m=e.allowEmpty,g=e.order,v=o.some(function(M){return M})?!1:g,y=hwe(u,d,a),b=Ie(y,2),_=b[0],E=b[1],w=pwe(t),S=Ie(w,2),C=S[0],T=S[1],x=Yn(function(){T(t)});p.useEffect(function(){x()},[t]);var O=Yn(function(M){var F=M===null,k=nt(M||C());if(F)for(var B=Math.max(o.length,k.length),A=0;A<B;A+=1)o[A]||(k[A]=null);v&&k[0]&&k[1]&&(k=mwe(k,u)),i(k);var P=k,z=Ie(P,2),L=z[0],V=z[1],j=!L,U=!V,J=m?(!j||m[0])&&(!U||m[1]):!0,te=!g||j||U||xs(u,d,L,V,f)||u.isAfter(V,L),ae=(o[0]||!L||!c(L,{activeIndex:0}))&&(o[1]||!V||!c(V,{from:L,activeIndex:1})),K=F||J&&te&&ae;if(K){n(k);var Q=E(k,t),oe=Ie(Q,1),ge=oe[0];h&&!ge&&h(F&&k.every(function(fe){return!fe})?null:k,_(k))}return K}),N=Yn(function(M,F){var k=fw(C(),M,r()[M]);T(k),F&&O()}),I=!s&&!l;return zq(!I,function(){I&&(O(),i(t),x())},2),[N,O]}function bwe(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 Fot(e,t,n,r,i,o){var a=e;function s(d,f,h){var m=o[d](a),g=h.find(function(_){return _.value===m});if(!g||g.disabled){var v=h.filter(function(_){return!_.disabled}),y=nt(v).reverse(),b=y.find(function(_){return _.value<=m})||v[0];b&&(m=b.value,a=o[f](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 TR(){return[]}function xR(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:Bq(l,o),value:l,disabled:c})}return a}function Vq(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,f=d===void 0?100:d,h=r.hideDisabledOptions,m=r.disabledTime,g=r.disabledHours,v=r.disabledMinutes,y=r.disabledSeconds,b=p.useMemo(function(){return n||e.getNow()},[n,e]),_=p.useCallback(function(P){var z=(m==null?void 0:m(P))||{};return[z.disabledHours||g||TR,z.disabledMinutes||v||TR,z.disabledSeconds||y||TR,z.disabledMilliseconds||TR]},[m,g,v,y]),E=p.useMemo(function(){return _(b)},[b,_]),w=Ie(E,4),S=w[0],C=w[1],T=w[2],x=w[3],O=p.useCallback(function(P,z,L,V){var j=xR(0,23,a,h,P()),U=i?j.map(function(K){return W(W({},K),{},{label:Bq(K.value%12||12,2)})}):j,J=function(Q){return xR(0,59,l,h,z(Q))},te=function(Q,oe){return xR(0,59,u,h,L(Q,oe))},ae=function(Q,oe,ge){return xR(0,999,f,h,V(Q,oe,ge),3)};return[U,J,te,ae]},[h,a,i,f,l,u]),N=p.useMemo(function(){return O(S,C,T,x)},[O,S,C,T,x]),I=Ie(N,4),M=I[0],F=I[1],k=I[2],B=I[3],A=function(z,L){var V=function(){return M},j=F,U=k,J=B;if(L){var te=_(L),ae=Ie(te,4),K=ae[0],Q=ae[1],oe=ae[2],ge=ae[3],fe=O(K,Q,oe,ge),ue=Ie(fe,4),le=ue[0],ve=ue[1],ne=ue[2],pe=ue[3];V=function(){return le},j=ve,U=ne,J=pe}var be=Fot(z,V,j,U,J,e);return be};return[A,M,F,k,B]}function Bot(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,f=p.useContext(jd),h=f.prefixCls,m=f.locale,g=f.button,v=g===void 0?"button":g,y=u.getNow(),b=Vq(u,o,y),_=Ie(b,1),E=_[0],w=r==null?void 0:r(t),S=d(y,{type:t}),C=function(){if(!S){var F=E(y);s(F)}},T="".concat(h,"-now"),x="".concat(T,"-btn"),O=i&&p.createElement("li",{className:T},p.createElement("a",{className:Te(x,S&&"".concat(x,"-disabled")),"aria-disabled":S,onClick:C},n==="date"?m.today:m.now)),N=c&&p.createElement("li",{className:"".concat(h,"-ok")},p.createElement(v,{disabled:l,onClick:a},m.ok)),I=(O||N)&&p.createElement("ul",{className:"".concat(h,"-ranges")},O,N);return!w&&!I?null:p.createElement("div",{className:"".concat(h,"-footer")},w&&p.createElement("div",{className:"".concat(h,"-footer-extra")},w),I)}function ywe(e,t,n){function r(i,o){var a=i.findIndex(function(l){return xs(e,t,l,o,n)});if(a===-1)return[].concat(nt(i),[o]);var s=nt(i);return s.splice(a,1),s}return r}var C0=p.createContext(null);function Y5(){return p.useContext(C0)}function CS(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,f=e.values,h=e.pickerValue,m=e.onSelect,g=e.prevIcon,v=e.nextIcon,y=e.superPrevIcon,b=e.superNextIcon,_=r.getNow(),E={now:_,values:f,pickerValue:h,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:g,nextIcon:v,superPrevIcon:y,superNextIcon:b};return[E,_]}var ng=p.createContext({});function f2(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,f=d===void 0?!0:d,h=e.disabledDate,m=Y5(),g=m.prefixCls,v=m.panelType,y=m.now,b=m.disabledDate,_=m.cellRender,E=m.onHover,w=m.hoverValue,S=m.hoverRangeValue,C=m.generateConfig,T=m.values,x=m.locale,O=m.onSelect,N=h||b,I="".concat(g,"-cell"),M=p.useContext(ng),F=M.onCellDblClick,k=function(U){return T.some(function(J){return J&&xs(C,x,U,J,v)})},B=[],A=0;A<t;A+=1){for(var P=[],z=void 0,L=function(){var U=A*n+V,J=i(r,U),te=N==null?void 0:N(J,{type:v});V===0&&(z=J,o&&P.push(o(z)));var ae=!1,K=!1,Q=!1;if(f&&S){var oe=Ie(S,2),ge=oe[0],fe=oe[1];ae=q5(C,ge,fe,J),K=xs(C,x,J,ge,v),Q=xs(C,x,J,fe,v)}var ue=s?wa(J,{locale:x,format:s,generateConfig:C}):void 0,le=p.createElement("div",{className:"".concat(I,"-inner")},l(J));P.push(p.createElement("td",{key:V,title:ue,className:Te(I,W(ee(ee(ee(ee(ee(ee({},"".concat(I,"-disabled"),te),"".concat(I,"-hover"),(w||[]).some(function(ve){return xs(C,x,J,ve,v)})),"".concat(I,"-in-range"),ae&&!K&&!Q),"".concat(I,"-range-start"),K),"".concat(I,"-range-end"),Q),"".concat(g,"-cell-selected"),!S&&v!=="week"&&k(J)),c(J))),onClick:function(){te||O(J)},onDoubleClick:function(){!te&&F&&F()},onMouseEnter:function(){te||E==null||E(J)},onMouseLeave:function(){te||E==null||E(null)}},_?_(J,{prefixCls:g,originNode:le,today:y,type:v,locale:x}):le))},V=0;V<n;V+=1)L();B.push(p.createElement("tr",{key:A,className:a==null?void 0:a(z)},P))}return p.createElement("div",{className:"".concat(g,"-body")},p.createElement("table",{className:"".concat(g,"-content")},u&&p.createElement("thead",null,p.createElement("tr",null,u)),p.createElement("tbody",null,B)))}var OR={visibility:"hidden"};function wS(e){var t=e.offset,n=e.superOffset,r=e.onChange,i=e.getStart,o=e.getEnd,a=e.children,s=Y5(),l=s.prefixCls,c=s.prevIcon,u=c===void 0?"":c,d=s.nextIcon,f=d===void 0?"":d,h=s.superPrevIcon,m=h===void 0?"«":h,g=s.superNextIcon,v=g===void 0?"»":g,y=s.minDate,b=s.maxDate,_=s.generateConfig,E=s.locale,w=s.pickerValue,S=s.panelType,C="".concat(l,"-header"),T=p.useContext(ng),x=T.hidePrev,O=T.hideNext,N=T.hideHeader,I=p.useMemo(function(){if(!y||!t||!o)return!1;var j=o(t(-1,w));return!CR(_,E,j,y,S)},[y,t,w,o,_,E,S]),M=p.useMemo(function(){if(!y||!n||!o)return!1;var j=o(n(-1,w));return!CR(_,E,j,y,S)},[y,n,w,o,_,E,S]),F=p.useMemo(function(){if(!b||!t||!i)return!1;var j=i(t(1,w));return!CR(_,E,b,j,S)},[b,t,w,i,_,E,S]),k=p.useMemo(function(){if(!b||!n||!i)return!1;var j=i(n(1,w));return!CR(_,E,b,j,S)},[b,n,w,i,_,E,S]),B=function(U){t&&r(t(U,w))},A=function(U){n&&r(n(U,w))};if(N)return null;var P="".concat(C,"-prev-btn"),z="".concat(C,"-next-btn"),L="".concat(C,"-super-prev-btn"),V="".concat(C,"-super-next-btn");return p.createElement("div",{className:C},n&&p.createElement("button",{type:"button","aria-label":"super-prev-year",onClick:function(){return A(-1)},tabIndex:-1,className:Te(L,M&&"".concat(L,"-disabled")),disabled:M,style:x?OR:{}},m),t&&p.createElement("button",{type:"button","aria-label":"prev-year",onClick:function(){return B(-1)},tabIndex:-1,className:Te(P,I&&"".concat(P,"-disabled")),disabled:I,style:x?OR:{}},u),p.createElement("div",{className:"".concat(C,"-view")},a),t&&p.createElement("button",{type:"button","aria-label":"next-year",onClick:function(){return B(1)},tabIndex:-1,className:Te(z,F&&"".concat(z,"-disabled")),disabled:F,style:O?OR:{}},f),n&&p.createElement("button",{type:"button","aria-label":"super-next-year",onClick:function(){return A(1)},tabIndex:-1,className:Te(V,k&&"".concat(V,"-disabled")),disabled:k,style:O?OR:{}},v))}function K5(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,f=e.onSelect,h=e.onHover,m=e.showWeek,g="".concat(t,"-").concat(r,"-panel"),v="".concat(t,"-cell"),y=u==="week",b=CS(e,u),_=Ie(b,2),E=_[0],w=_[1],S=o.locale.getWeekFirstDay(i.locale),C=o.setDate(a,1),T=Iot(i.locale,o,C),x=o.getMonth(a),O=m===void 0?y:m,N=O?function(j){var U=d==null?void 0:d(j,{type:"week"});return p.createElement("td",{key:"week",className:Te(v,"".concat(v,"-week"),ee({},"".concat(v,"-disabled"),U)),onClick:function(){U||f(j)},onMouseEnter:function(){U||h==null||h(j)},onMouseLeave:function(){U||h==null||h(null)}},p.createElement("div",{className:"".concat(v,"-inner")},o.locale.getWeek(i.locale,j)))}:null,I=[],M=i.shortWeekDays||(o.locale.getShortWeekDays?o.locale.getShortWeekDays(i.locale):[]);N&&I.push(p.createElement("th",{key:"empty","aria-label":"empty cell"}));for(var F=0;F<BL;F+=1)I.push(p.createElement("th",{key:F},M[(F+S)%BL]));var k=function(U,J){return o.addDate(U,J)},B=function(U){return wa(U,{locale:i,format:i.cellDateFormat,generateConfig:o})},A=function(U){var J=ee(ee({},"".concat(t,"-cell-in-view"),Hq(o,U,a)),"".concat(t,"-cell-today"),Uq(o,U,w));return J},P=i.shortMonths||(o.locale.getShortMonths?o.locale.getShortMonths(i.locale):[]),z=p.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})),L=p.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}):P[x]),V=i.monthBeforeYear?[L,z]:[z,L];return p.createElement(C0.Provider,{value:E},p.createElement("div",{className:Te(g,m&&"".concat(g,"-show-week"))},p.createElement(wS,{offset:function(U){return o.addMonth(a,U)},superOffset:function(U){return o.addYear(a,U)},onChange:s,getStart:function(U){return o.setDate(U,1)},getEnd:function(U){var J=o.setDate(U,1);return J=o.addMonth(J,1),o.addDate(J,-1)}},V),p.createElement(f2,Ke({titleFormat:i.fieldDateFormat},e,{colNum:BL,rowNum:6,baseDate:T,headerCells:I,getCellDate:k,getCellText:B,getCellClassName:A,prefixColumn:N,cellSelection:!y}))))}var jot=1/3;function Hot(e,t){var n=p.useRef(!1),r=p.useRef(null),i=p.useRef(null),o=function(){return n.current},a=function(){rr.cancel(r.current),n.current=!1},s=p.useRef(),l=function(){var d=e.current;if(i.current=null,s.current=0,d){var f=d.querySelector('[data-value="'.concat(t,'"]')),h=d.querySelector("li"),m=function g(){a(),n.current=!0,s.current+=1;var v=d.scrollTop,y=h.offsetTop,b=f.offsetTop,_=b-y;if(b===0&&f!==h||!gS(d)){s.current<=5&&(r.current=rr(g));return}var E=v+(_-v)*jot,w=Math.abs(_-E);if(i.current!==null&&i.current<w){a();return}if(i.current=w,w<=1){d.scrollTop=_,a();return}d.scrollTop=E,r.current=rr(g)};f&&h&&m()}},c=Yn(l);return[c,a,o]}var Uot=300;function zot(e){return e.map(function(t){var n=t.value,r=t.label,i=t.disabled;return[n,r,i].join(",")}).join(";")}function jE(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=Y5(),u=c.prefixCls,d=c.cellRender,f=c.now,h=c.locale,m="".concat(u,"-time-panel"),g="".concat(u,"-time-panel-cell"),v=p.useRef(null),y=p.useRef(),b=function(){clearTimeout(y.current)},_=Hot(v,n??r),E=Ie(_,3),w=E[0],S=E[1],C=E[2];sr(function(){return w(),b(),function(){S(),b()}},[n,r,zot(t)]);var T=function(N){b();var I=N.target;!C()&&l&&(y.current=setTimeout(function(){var M=v.current,F=M.querySelector("li").offsetTop,k=Array.from(M.querySelectorAll("li")),B=k.map(function(V){return V.offsetTop-F}),A=B.map(function(V,j){return t[j].disabled?Number.MAX_SAFE_INTEGER:Math.abs(V-I.scrollTop)}),P=Math.min.apply(Math,nt(A)),z=A.findIndex(function(V){return V===P}),L=t[z];L&&!L.disabled&&o(L.value)},Uot))},x="".concat(m,"-column");return p.createElement("ul",{className:x,ref:v,"data-type":i,onScroll:T},t.map(function(O){var N=O.label,I=O.value,M=O.disabled,F=p.createElement("div",{className:"".concat(g,"-inner")},N);return p.createElement("li",{key:I,className:Te(g,ee(ee({},"".concat(g,"-selected"),n===I),"".concat(g,"-disabled"),M)),onClick:function(){M||o(I)},onDoubleClick:function(){!M&&s&&s()},onMouseEnter:function(){a(I)},onMouseLeave:function(){a(null)},"data-value":I},d?d(I,{prefixCls:u,originNode:F,today:f,type:"time",subType:i,locale:h}):F)}))}function Bh(e){return e<12}function Vot(e){var t=e.showHour,n=e.showMinute,r=e.showSecond,i=e.showMillisecond,o=e.use12Hours,a=e.changeOnScroll,s=Y5(),l=s.prefixCls,c=s.values,u=s.generateConfig,d=s.locale,f=s.onSelect,h=s.onHover,m=h===void 0?function(){}:h,g=s.pickerValue,v=(c==null?void 0:c[0])||null,y=p.useContext(ng),b=y.onCellDblClick,_=Vq(u,e,v),E=Ie(_,5),w=E[0],S=E[1],C=E[2],T=E[3],x=E[4],O=function(Ge){var Ue=v&&u[Ge](v),qe=g&&u[Ge](g);return[Ue,qe]},N=O("getHour"),I=Ie(N,2),M=I[0],F=I[1],k=O("getMinute"),B=Ie(k,2),A=B[0],P=B[1],z=O("getSecond"),L=Ie(z,2),V=L[0],j=L[1],U=O("getMillisecond"),J=Ie(U,2),te=J[0],ae=J[1],K=M===null?null:Bh(M)?"am":"pm",Q=p.useMemo(function(){return o?Bh(M)?S.filter(function(ke){return Bh(ke.value)}):S.filter(function(ke){return!Bh(ke.value)}):S},[M,S,o]),oe=function(Ge,Ue){var qe,At=Ge.filter(function(at){return!at.disabled});return Ue??(At==null||(qe=At[0])===null||qe===void 0?void 0:qe.value)},ge=oe(S,M),fe=p.useMemo(function(){return C(ge)},[C,ge]),ue=oe(fe,A),le=p.useMemo(function(){return T(ge,ue)},[T,ge,ue]),ve=oe(le,V),ne=p.useMemo(function(){return x(ge,ue,ve)},[x,ge,ue,ve]),pe=oe(ne,te),be=p.useMemo(function(){if(!o)return[];var ke=u.getNow(),Ge=u.setHour(ke,6),Ue=u.setHour(ke,18),qe=function(at,pt){var Ct=d.cellMeridiemFormat;return Ct?wa(at,{generateConfig:u,locale:d,format:Ct}):pt};return[{label:qe(Ge,"AM"),value:"am",disabled:S.every(function(At){return At.disabled||!Bh(At.value)})},{label:qe(Ue,"PM"),value:"pm",disabled:S.every(function(At){return At.disabled||Bh(At.value)})}]},[S,o,u,d]),Re=function(Ge){var Ue=w(Ge);f(Ue)},Se=p.useMemo(function(){var ke=v||g||u.getNow(),Ge=function(qe){return qe!=null};return Ge(M)?(ke=u.setHour(ke,M),ke=u.setMinute(ke,A),ke=u.setSecond(ke,V),ke=u.setMillisecond(ke,te)):Ge(F)?(ke=u.setHour(ke,F),ke=u.setMinute(ke,P),ke=u.setSecond(ke,j),ke=u.setMillisecond(ke,ae)):Ge(ge)&&(ke=u.setHour(ke,ge),ke=u.setMinute(ke,ue),ke=u.setSecond(ke,ve),ke=u.setMillisecond(ke,pe)),ke},[v,g,M,A,V,te,ge,ue,ve,pe,F,P,j,ae,u]),Ce=function(Ge,Ue){return Ge===null?null:u[Ue](Se,Ge)},ye=function(Ge){return Ce(Ge,"setHour")},he=function(Ge){return Ce(Ge,"setMinute")},_e=function(Ge){return Ce(Ge,"setSecond")},Oe=function(Ge){return Ce(Ge,"setMillisecond")},De=function(Ge){return Ge===null?null:Ge==="am"&&!Bh(M)?u.setHour(Se,M-12):Ge==="pm"&&Bh(M)?u.setHour(Se,M+12):Se},Y=function(Ge){Re(ye(Ge))},D=function(Ge){Re(he(Ge))},G=function(Ge){Re(_e(Ge))},ie=function(Ge){Re(Oe(Ge))},me=function(Ge){Re(De(Ge))},se=function(Ge){m(ye(Ge))},Be=function(Ge){m(he(Ge))},Ve=function(Ge){m(_e(Ge))},re=function(Ge){m(Oe(Ge))},Me=function(Ge){m(De(Ge))},je={onDblClick:b,changeOnScroll:a};return p.createElement("div",{className:"".concat(l,"-content")},t&&p.createElement(jE,Ke({units:Q,value:M,optionalValue:F,type:"hour",onChange:Y,onHover:se},je)),n&&p.createElement(jE,Ke({units:fe,value:A,optionalValue:P,type:"minute",onChange:D,onHover:Be},je)),r&&p.createElement(jE,Ke({units:le,value:V,optionalValue:j,type:"second",onChange:G,onHover:Ve},je)),i&&p.createElement(jE,Ke({units:ne,value:te,optionalValue:ae,type:"millisecond",onChange:ie,onHover:re},je)),o&&p.createElement(jE,Ke({units:be,value:K,type:"meridiem",onChange:me,onHover:Me},je)))}function _we(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=CS(e,"time"),u=Ie(c,1),d=u[0];return p.createElement(C0.Provider,{value:d},p.createElement("div",{className:Te(l)},p.createElement(wS,null,n?wa(n,{locale:r,format:s,generateConfig:i}):" "),p.createElement(Vot,o)))}function Got(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=Vq(n,r),u=Ie(c,1),d=u[0],f=function(v){return o?VM(n,v,o):VM(n,v,a)},h=function(v){s==null||s(v&&f(v))},m=function(v){var y=f(v);i(d(y,y))};return p.createElement("div",{className:l},p.createElement(K5,Ke({},e,{onSelect:m,onHover:h})),p.createElement(_we,e))}function Wot(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=CS(e,"decade"),c=Ie(l,1),u=c[0],d=function(S){var C=Math.floor(r.getYear(S)/100)*100;return r.setYear(S,C)},f=function(S){var C=d(S);return r.addYear(C,99)},h=d(i),m=f(i),g=r.addYear(h,-10),v=function(S,C){return r.addYear(S,C*10)},y=function(S){var C=n.cellYearFormat,T=wa(S,{locale:n,format:C,generateConfig:r}),x=wa(r.addYear(S,9),{locale:n,format:C,generateConfig:r});return"".concat(T,"-").concat(x)},b=function(S){return ee({},"".concat(t,"-cell-in-view"),PH(r,S,h)||PH(r,S,m)||q5(r,h,m,S))},_=o?function(w,S){var C=r.setDate(w,1),T=r.setMonth(C,0),x=r.setYear(T,Math.floor(r.getYear(T)/10)*10),O=r.addYear(x,10),N=r.addDate(O,-1);return o(x,S)&&o(N,S)}:null,E="".concat(wa(h,{locale:n,format:n.yearFormat,generateConfig:r}),"-").concat(wa(m,{locale:n,format:n.yearFormat,generateConfig:r}));return p.createElement(C0.Provider,{value:u},p.createElement("div",{className:s},p.createElement(wS,{superOffset:function(S){return r.addYear(i,S*100)},onChange:a,getStart:d,getEnd:f},E),p.createElement(f2,Ke({},e,{disabledDate:_,colNum:3,rowNum:4,baseDate:g,getCellDate:v,getCellText:y,getCellClassName:b}))))}function qot(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=CS(e,"month"),u=Ie(c,1),d=u[0],f=r.setMonth(i,0),h=n.shortMonths||(r.locale.getShortMonths?r.locale.getShortMonths(n.locale):[]),m=function(E,w){return r.addMonth(E,w)},g=function(E){var w=r.getMonth(E);return n.monthFormat?wa(E,{locale:n,format:n.monthFormat,generateConfig:r}):h[w]},v=function(){return ee({},"".concat(t,"-cell-in-view"),!0)},y=o?function(_,E){var w=r.setDate(_,1),S=r.setMonth(w,r.getMonth(w)+1),C=r.addDate(S,-1);return o(w,E)&&o(C,E)}:null,b=p.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 p.createElement(C0.Provider,{value:d},p.createElement("div",{className:l},p.createElement(wS,{superOffset:function(E){return r.addYear(i,E)},onChange:a,getStart:function(E){return r.setMonth(E,0)},getEnd:function(E){return r.setMonth(E,11)}},b),p.createElement(f2,Ke({},e,{disabledDate:y,titleFormat:n.fieldMonthFormat,colNum:3,rowNum:4,baseDate:f,getCellDate:m,getCellText:g,getCellClassName:v}))))}function Yot(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=CS(e,"quarter"),c=Ie(l,1),u=c[0],d=r.setMonth(i,0),f=function(y,b){return r.addMonth(y,b*3)},h=function(y){return wa(y,{locale:n,format:n.cellQuarterFormat,generateConfig:r})},m=function(){return ee({},"".concat(t,"-cell-in-view"),!0)},g=p.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 p.createElement(C0.Provider,{value:u},p.createElement("div",{className:s},p.createElement(wS,{superOffset:function(y){return r.addYear(i,y)},onChange:o,getStart:function(y){return r.setMonth(y,0)},getEnd:function(y){return r.setMonth(y,11)}},g),p.createElement(f2,Ke({},e,{titleFormat:n.fieldQuarterFormat,colNum:4,rowNum:1,baseDate:d,getCellDate:f,getCellText:h,getCellClassName:m}))))}function Kot(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 f={};if(a){var h=Ie(a,2),m=h[0],g=h[1],v=NC(n,s,m,d),y=NC(n,s,g,d);f["".concat(l,"-range-start")]=v,f["".concat(l,"-range-end")]=y,f["".concat(l,"-range-hover")]=!v&&!y&&q5(n,m,g,d)}return o&&(f["".concat(l,"-hover")]=o.some(function(b){return NC(n,s,d,b)})),Te(l,ee({},"".concat(l,"-selected"),!a&&NC(n,s,i,d)),f)};return p.createElement(K5,Ke({},e,{mode:"week",panelName:"week",rowClassName:c}))}function Qot(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=CS(e,"year"),u=Ie(c,1),d=u[0],f=function(C){var T=Math.floor(r.getYear(C)/10)*10;return r.setYear(C,T)},h=function(C){var T=f(C);return r.addYear(T,9)},m=f(i),g=h(i),v=r.addYear(m,-1),y=function(C,T){return r.addYear(C,T)},b=function(C){return wa(C,{locale:n,format:n.cellYearFormat,generateConfig:r})},_=function(C){return ee({},"".concat(t,"-cell-in-view"),Hv(r,C,m)||Hv(r,C,g)||q5(r,m,g,C))},E=o?function(S,C){var T=r.setMonth(S,0),x=r.setDate(T,1),O=r.addYear(x,1),N=r.addDate(O,-1);return o(x,C)&&o(N,C)}:null,w=p.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(g,{locale:n,format:n.yearFormat,generateConfig:r}));return p.createElement(C0.Provider,{value:d},p.createElement("div",{className:l},p.createElement(wS,{superOffset:function(C){return r.addYear(i,C*10)},onChange:a,getStart:f,getEnd:h},w),p.createElement(f2,Ke({},e,{disabledDate:E,titleFormat:n.fieldYearFormat,colNum:3,rowNum:4,baseDate:v,getCellDate:y,getCellText:b,getCellClassName:_}))))}var Xot={date:K5,datetime:Got,week:Kot,month:qot,quarter:Yot,year:Qot,decade:Wot,time:_we};function Zot(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,f=e.onChange,h=e.onSelect,m=e.defaultPickerValue,g=e.pickerValue,v=e.onPickerValueChange,y=e.mode,b=e.onPanelChange,_=e.picker,E=_===void 0?"date":_,w=e.showTime,S=e.hoverValue,C=e.hoverRangeValue,T=e.cellRender,x=e.dateRender,O=e.monthCellRender,N=e.components,I=N===void 0?{}:N,M=e.hideHeader,F=((n=p.useContext(jd))===null||n===void 0?void 0:n.prefixCls)||a||"rc-picker",k=p.useRef();p.useImperativeHandle(t,function(){return{nativeElement:k.current}});var B=rwe(e),A=Ie(B,4),P=A[0],z=A[1],L=A[2],V=A[3],j=ewe(r,z),U=E==="date"&&w?"datetime":E,J=p.useMemo(function(){return iwe(U,L,V,P,j)},[U,L,V,P,j]),te=i.getNow(),ae=Pn(E,{value:y,postState:function(Me){return Me||"date"}}),K=Ie(ae,2),Q=K[0],oe=K[1],ge=Q==="date"&&J?"datetime":Q,fe=ywe(i,r,U),ue=Pn(u,{value:d}),le=Ie(ue,2),ve=le[0],ne=le[1],pe=p.useMemo(function(){var re=E0(ve).filter(function(Me){return Me});return c?re:re.slice(0,1)},[ve,c]),be=Yn(function(re){ne(re),f&&(re===null||pe.length!==re.length||pe.some(function(Me,je){return!xs(i,r,Me,re[je],U)}))&&(f==null||f(c?re:re[0]))}),Re=Yn(function(re){if(h==null||h(re),Q===E){var Me=c?fe(pe,re):[re];be(Me)}}),Se=Pn(m||pe[0]||te,{value:g}),Ce=Ie(Se,2),ye=Ce[0],he=Ce[1];p.useEffect(function(){pe[0]&&!g&&he(pe[0])},[pe[0]]);var _e=function(Me,je){b==null||b(Me||g,je||Q)},Oe=function(Me){var je=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;he(Me),v==null||v(Me),je&&_e(Me)},De=function(Me,je){oe(Me),je&&Oe(je),_e(je,Me)},Y=function(Me){if(Re(Me),Oe(Me),Q!==E){var je=["decade","year"],ke=[].concat(je,["month"]),Ge={quarter:[].concat(je,["quarter"]),week:[].concat(nt(ke),["week"]),date:[].concat(nt(ke),["date"])},Ue=Ge[E]||ke,qe=Ue.indexOf(Q),At=Ue[qe+1];At&&De(At,Me)}},D=p.useMemo(function(){var re,Me;if(Array.isArray(C)){var je=Ie(C,2);re=je[0],Me=je[1]}else re=C;return!re&&!Me?null:(re=re||Me,Me=Me||re,i.isAfter(re,Me)?[Me,re]:[re,Me])},[C,i]),G=jq(T,x,O),ie=I[ge]||Xot[ge]||K5,me=p.useContext(ng),se=p.useMemo(function(){return W(W({},me),{},{hideHeader:M})},[me,M]),Be="".concat(F,"-panel"),Ve=W5(e,["showWeek","prevIcon","nextIcon","superPrevIcon","superNextIcon","disabledDate","minDate","maxDate","onHover"]);return p.createElement(ng.Provider,{value:se},p.createElement("div",{ref:k,tabIndex:l,className:Te(Be,ee({},"".concat(Be,"-rtl"),o==="rtl"))},p.createElement(ie,Ke({},Ve,{showTime:J,prefixCls:F,locale:j,generateConfig:i,onModeChange:De,pickerValue:ye,onPickerValueChange:function(Me){Oe(Me,!0)},value:pe[0],onSelect:Y,values:pe,cellRender:G,hoverRangeValue:D,hoverValue:S}))))}var HL=p.memo(p.forwardRef(Zot));function Jot(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=p.useContext(jd),u=c.prefixCls,d=c.generateConfig,f=p.useCallback(function(b,_){return MC(d,t,b,_)},[d,t]),h=p.useMemo(function(){return f(r,1)},[r,f]),m=function(_){i(f(_,-1))},g={onCellDblClick:function(){o&&a()}},v=t==="time",y=W(W({},e),{},{hoverValue:null,hoverRangeValue:null,hideHeader:v});return s?y.hoverRangeValue=l:y.hoverValue=l,n?p.createElement("div",{className:"".concat(u,"-panels")},p.createElement(ng.Provider,{value:W(W({},g),{},{hideNext:!0})},p.createElement(HL,y)),p.createElement(ng.Provider,{value:W(W({},g),{},{hidePrev:!0})},p.createElement(HL,Ke({},y,{pickerValue:h,onPickerValueChange:m})))):p.createElement(ng.Provider,{value:W({},g)},p.createElement(HL,y))}function Gre(e){return typeof e=="function"?e():e}function eat(e){var t=e.prefixCls,n=e.presets,r=e.onClick,i=e.onHover;return n.length?p.createElement("div",{className:"".concat(t,"-presets")},p.createElement("ul",null,n.map(function(o,a){var s=o.label,l=o.value;return p.createElement("li",{key:a,onClick:function(){r(Gre(l))},onMouseEnter:function(){i(Gre(l))},onMouseLeave:function(){i(null)}},s)}))):null}function Swe(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,f=e.onPresetSubmit,h=e.onFocus,m=e.onBlur,g=e.onPanelMouseDown,v=e.direction,y=e.value,b=e.onSelect,_=e.isInvalid,E=e.defaultOpenValue,w=e.onOk,S=e.onSubmit,C=p.useContext(jd),T=C.prefixCls,x="".concat(T,"-panel"),O=v==="rtl",N=p.useRef(null),I=p.useRef(null),M=p.useState(0),F=Ie(M,2),k=F[0],B=F[1],A=p.useState(0),P=Ie(A,2),z=P[0],L=P[1],V=function(be){be.offsetWidth&&B(be.offsetWidth)};p.useEffect(function(){if(o){var pe,be=((pe=N.current)===null||pe===void 0?void 0:pe.offsetWidth)||0,Re=k-be;l<=Re?L(0):L(l+be-k)}},[k,l,o]);function j(pe){return pe.filter(function(be){return be})}var U=p.useMemo(function(){return j(E0(y))},[y]),J=r==="time"&&!U.length,te=p.useMemo(function(){return J?j([E]):U},[J,U,E]),ae=J?E:U,K=p.useMemo(function(){return te.length?te.some(function(pe){return _(pe)}):!0},[te,_]),Q=function(){J&&b(E),w(),S()},oe=p.createElement("div",{className:"".concat(T,"-panel-layout")},p.createElement(eat,{prefixCls:T,presets:u,onClick:f,onHover:d}),p.createElement("div",null,p.createElement(Jot,Ke({},e,{value:ae})),p.createElement(Bot,Ke({},e,{showNow:a?!1:i,invalid:K,onSubmit:Q}))));t&&(oe=t(oe));var ge="".concat(x,"-container"),fe="marginLeft",ue="marginRight",le=p.createElement("div",{onMouseDown:g,tabIndex:-1,className:Te(ge,"".concat(T,"-").concat(n,"-panel-container")),style:ee(ee({},O?ue:fe,z),O?fe:ue,"auto"),onFocus:h,onBlur:m},oe);if(o){var ve=G5(c,O),ne=qCe(ve,O);le=p.createElement("div",{onMouseDown:g,ref:I,className:Te("".concat(T,"-range-wrapper"),"".concat(T,"-").concat(r,"-range-wrapper"))},p.createElement("div",{ref:N,className:"".concat(T,"-range-arrow"),style:ee({},ne,l)}),p.createElement(Ta,{onResize:V},le))}return le}function Ewe(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,f=e.onBlur,h=e.onInputChange,m=e.onInvalid,g=e.open,v=e.onOpenChange,y=e.onKeyDown,b=e.onChange,_=e.activeHelp,E=e.name,w=e.autoComplete,S=e.id,C=e.value,T=e.invalid,x=e.placeholder,O=e.disabled,N=e.activeIndex,I=e.allHelp,M=e.picker,F=function(j,U){var J=i.locale.parse(o.locale,j,[U]);return J&&i.isValidate(J)?J:null},k=n[0],B=p.useCallback(function(V){return wa(V,{locale:o,format:k,generateConfig:i})},[o,i,k]),A=p.useMemo(function(){return C.map(B)},[C,B]),P=p.useMemo(function(){var V=M==="time"?8:10,j=typeof k=="function"?k(i.getNow()).length:k.length;return Math.max(V,j)+2},[k,M,i]),z=function(j){for(var U=0;U<n.length;U+=1){var J=n[U];if(typeof J=="string"){var te=F(j,J);if(te)return te}}return!1},L=function(j){function U(ae){return j!==void 0?ae[j]:ae}var J=xi(e,{aria:!0,data:!0}),te=W(W({},J),{},{format:r,validateFormat:function(K){return!!z(K)},preserveInvalidOnBlur:a,readOnly:s,required:l,"aria-required":c,name:E,autoComplete:w,size:P,id:U(S),value:U(A)||"",invalid:U(T),placeholder:U(x),active:N===j,helped:I||_&&N===j,disabled:U(O),onFocus:function(K){d(K,j)},onBlur:function(K){f(K,j)},onSubmit:u,onChange:function(K){h();var Q=z(K);if(Q){m(!1,j),b(Q,j);return}m(!!K,j)},onHelp:function(){v(!0,{index:j})},onKeyDown:function(K){var Q=!1;if(y==null||y(K,function(){Q=!0}),!K.defaultPrevented&&!Q)switch(K.key){case"Escape":v(!1,{index:j});break;case"Enter":g||v(!0);break}}},t==null?void 0:t({valueTexts:A}));return Object.keys(te).forEach(function(ae){te[ae]===void 0&&delete te[ae]}),te};return[L,B]}var tat=["onMouseEnter","onMouseLeave"];function Cwe(e){return p.useMemo(function(){return W5(e,tat)},[e])}var nat=["icon","type"],rat=["onClear"];function Q5(e){var t=e.icon,n=e.type,r=Dt(e,nat),i=p.useContext(jd),o=i.prefixCls;return t?p.createElement("span",Ke({className:"".concat(o,"-").concat(n)},r),t):null}function DH(e){var t=e.onClear,n=Dt(e,rat);return p.createElement(Q5,Ke({},n,{type:"clear",role:"button",onMouseDown:function(i){i.preventDefault()},onClick:function(i){i.stopPropagation(),t()}}))}var UL=["YYYY","MM","DD","HH","mm","ss","SSS"],Wre="顧",iat=function(){function e(t){Kr(this,e),ee(this,"format",void 0),ee(this,"maskFormat",void 0),ee(this,"cells",void 0),ee(this,"maskCells",void 0),this.format=t;var n=UL.map(function(s){return"(".concat(s,")")}).join("|"),r=new RegExp(n,"g");this.maskFormat=t.replace(r,function(s){return Wre.repeat(s.length)});var i=new RegExp("(".concat(UL.join("|"),")")),o=(t.split(i)||[]).filter(function(s){return s}),a=0;this.cells=o.map(function(s){var l=UL.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 Qr(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!==Wre&&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 oat(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 aat=["active","showActiveCls","suffixIcon","format","validateFormat","onChange","onInput","helped","onHelp","onSubmit","onKeyDown","preserveInvalidOnBlur","invalid","clearIcon"],LH=p.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,f=e.onKeyDown,h=e.preserveInvalidOnBlur,m=h===void 0?!1:h,g=e.invalid,v=e.clearIcon,y=Dt(e,aat),b=e.value,_=e.onFocus,E=e.onBlur,w=e.onMouseUp,S=p.useContext(jd),C=S.prefixCls,T=S.input,x=T===void 0?"input":T,O="".concat(C,"-input"),N=p.useState(!1),I=Ie(N,2),M=I[0],F=I[1],k=p.useState(b),B=Ie(k,2),A=B[0],P=B[1],z=p.useState(""),L=Ie(z,2),V=L[0],j=L[1],U=p.useState(null),J=Ie(U,2),te=J[0],ae=J[1],K=p.useState(null),Q=Ie(K,2),oe=Q[0],ge=Q[1],fe=A||"";p.useEffect(function(){P(b)},[b]);var ue=p.useRef(),le=p.useRef();p.useImperativeHandle(t,function(){return{nativeElement:ue.current,inputElement:le.current,focus:function(re){le.current.focus(re)},blur:function(){le.current.blur()}}});var ve=p.useMemo(function(){return new iat(a||"")},[a]),ne=p.useMemo(function(){return c?[0,0]:ve.getSelection(te)},[ve,te,c]),pe=Ie(ne,2),be=pe[0],Re=pe[1],Se=function(re){re&&re!==a&&re!==b&&u()},Ce=Yn(function(Ve){s(Ve)&&l(Ve),P(Ve),Se(Ve)}),ye=function(re){if(!a){var Me=re.target.value;Se(Me),P(Me),l(Me)}},he=function(re){var Me=re.clipboardData.getData("text");s(Me)&&Ce(Me)},_e=p.useRef(!1),Oe=function(){_e.current=!0},De=function(re){var Me=re.target,je=Me.selectionStart,ke=ve.getMaskCellIndex(je);ae(ke),ge({}),w==null||w(re),_e.current=!1},Y=function(re){F(!0),ae(0),j(""),_(re)},D=function(re){E(re)},G=function(re){F(!1),D(re)};zq(n,function(){!n&&!m&&P(b)});var ie=function(re){re.key==="Enter"&&s(fe)&&d(),f==null||f(re)},me=function(re){ie(re);var Me=re.key,je=null,ke=null,Ge=Re-be,Ue=a.slice(be,Re),qe=function(Ct){ae(function(bt){var Vt=bt+Ct;return Vt=Math.max(Vt,0),Vt=Math.min(Vt,ve.size()-1),Vt})},At=function(Ct){var bt=oat(Ue),Vt=Ie(bt,3),Tt=Vt[0],Ot=Vt[1],Ut=Vt[2],ze=fe.slice(be,Re),Ye=Number(ze);if(isNaN(Ye))return String(Ut||(Ct>0?Tt:Ot));var He=Ye+Ct,Ze=Ot-Tt+1;return String(Tt+(Ze+He-Tt)%Ze)};switch(Me){case"Backspace":case"Delete":je="",ke=Ue;break;case"ArrowLeft":je="",qe(-1);break;case"ArrowRight":je="",qe(1);break;case"ArrowUp":je="",ke=At(1);break;case"ArrowDown":je="",ke=At(-1);break;default:isNaN(Number(Me))||(je=V+Me,ke=je);break}if(je!==null&&(j(je),je.length>=Ge&&(qe(1),j(""))),ke!==null){var at=fe.slice(0,be)+Bq(ke,Ge)+fe.slice(Re);Ce(at.slice(0,a.length))}ge({})},se=p.useRef();sr(function(){if(!(!M||!a||_e.current)){if(!ve.match(fe)){Ce(a);return}return le.current.setSelectionRange(be,Re),se.current=rr(function(){le.current.setSelectionRange(be,Re)}),function(){rr.cancel(se.current)}}},[ve,a,M,fe,te,be,Re,oe,Ce]);var Be=a?{onFocus:Y,onBlur:G,onKeyDown:me,onMouseDown:Oe,onMouseUp:De,onPaste:he}:{};return p.createElement("div",{ref:ue,className:Te(O,ee(ee({},"".concat(O,"-active"),n&&i),"".concat(O,"-placeholder"),c))},p.createElement(x,Ke({ref:le,"aria-invalid":g,autoComplete:"off"},y,{onKeyDown:ie,onBlur:D},Be,{value:fe,onChange:ye})),p.createElement(Q5,{type:"suffix",icon:o}),v)}),sat=["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"],lat=["index"],cat=["insetInlineStart","insetInlineEnd"];function uat(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,f=e.style,h=e.onClick,m=e.onClear,g=e.value;e.onChange,e.onSubmit,e.onInputChange,e.format,e.maskFormat,e.preserveInvalidOnBlur,e.onInvalid;var v=e.disabled,y=e.invalid;e.inputReadOnly;var b=e.direction;e.onOpenChange;var _=e.onActiveOffset,E=e.placement,w=e.onMouseDown;e.required,e["aria-required"];var S=e.autoFocus,C=e.tabIndex,T=Dt(e,sat),x=b==="rtl",O=p.useContext(jd),N=O.prefixCls,I=p.useMemo(function(){if(typeof n=="string")return[n];var le=n||{};return[le.start,le.end]},[n]),M=p.useRef(),F=p.useRef(),k=p.useRef(),B=function(ve){var ne;return(ne=[F,k][ve])===null||ne===void 0?void 0:ne.current};p.useImperativeHandle(t,function(){return{nativeElement:M.current,focus:function(ve){if(Gt(ve)==="object"){var ne,pe=ve||{},be=pe.index,Re=be===void 0?0:be,Se=Dt(pe,lat);(ne=B(Re))===null||ne===void 0||ne.focus(Se)}else{var Ce;(Ce=B(ve??0))===null||Ce===void 0||Ce.focus()}},blur:function(){var ve,ne;(ve=B(0))===null||ve===void 0||ve.blur(),(ne=B(1))===null||ne===void 0||ne.blur()}}});var A=Cwe(T),P=p.useMemo(function(){return Array.isArray(u)?u:[u,u]},[u]),z=Ewe(W(W({},e),{},{id:I,placeholder:P})),L=Ie(z,1),V=L[0],j=G5(E,x),U=qCe(j,x),J=j==null?void 0:j.toLowerCase().endsWith("right"),te=p.useState({position:"absolute",width:0}),ae=Ie(te,2),K=ae[0],Q=ae[1],oe=Yn(function(){var le=B(l);if(le){var ve=le.nativeElement,ne=ve.offsetWidth,pe=ve.offsetLeft,be=ve.offsetParent,Re=(be==null?void 0:be.offsetWidth)||0,Se=J?Re-ne-pe:pe;Q(function(Ce){Ce.insetInlineStart,Ce.insetInlineEnd;var ye=Dt(Ce,cat);return W(W({},ye),{},ee({width:ne},U,Se))}),_(Se)}});p.useEffect(function(){oe()},[l]);var ge=i&&(g[0]&&!v[0]||g[1]&&!v[1]),fe=S&&!v[0],ue=S&&!fe&&!v[1];return p.createElement(Ta,{onResize:oe},p.createElement("div",Ke({},A,{className:Te(N,"".concat(N,"-range"),ee(ee(ee(ee({},"".concat(N,"-focused"),c),"".concat(N,"-disabled"),v.every(function(le){return le})),"".concat(N,"-invalid"),y.some(function(le){return le})),"".concat(N,"-rtl"),x),d),style:f,ref:M,onClick:h,onMouseDown:function(ve){var ne=ve.target;ne!==F.current.inputElement&&ne!==k.current.inputElement&&ve.preventDefault(),w==null||w(ve)}}),r&&p.createElement("div",{className:"".concat(N,"-prefix")},r),p.createElement(LH,Ke({ref:F},V(0),{autoFocus:fe,tabIndex:C,"date-range":"start"})),p.createElement("div",{className:"".concat(N,"-range-separator")},s),p.createElement(LH,Ke({ref:k},V(1),{autoFocus:ue,tabIndex:C,"date-range":"end"})),p.createElement("div",{className:"".concat(N,"-active-bar"),style:K}),p.createElement(Q5,{type:"suffix",icon:o}),ge&&p.createElement(DH,{icon:i,onClear:m})))}var dat=p.forwardRef(uat);function qre(e,t){var n=e??t;return Array.isArray(n)?n:[n,n]}function RR(e){return e===1?"end":"start"}function fat(e,t){var n=swe(e,function(){var dn=e.disabled,wn=e.allowEmpty,Mn=qre(dn,!1),Qn=qre(wn,!1);return{disabled:Mn,allowEmpty:Qn}}),r=Ie(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,f=i.classNames,h=i.placement,m=i.defaultValue,g=i.value,v=i.needConfirm,y=i.onKeyDown,b=i.disabled,_=i.allowEmpty,E=i.disabledDate,w=i.minDate,S=i.maxDate,C=i.defaultOpen,T=i.open,x=i.onOpenChange,O=i.locale,N=i.generateConfig,I=i.picker,M=i.showNow,F=i.showToday,k=i.showTime,B=i.mode,A=i.onPanelChange,P=i.onCalendarChange,z=i.onOk,L=i.defaultPickerValue,V=i.pickerValue,j=i.onPickerValueChange,U=i.inputReadOnly,J=i.suffixIcon,te=i.onFocus,ae=i.onBlur,K=i.presets,Q=i.ranges,oe=i.components,ge=i.cellRender,fe=i.dateRender,ue=i.monthCellRender,le=i.onClick,ve=cwe(t),ne=lwe(T,C,b,x),pe=Ie(ne,2),be=pe[0],Re=pe[1],Se=function(wn,Mn){(b.some(function(Qn){return!Qn})||!wn)&&Re(wn,Mn)},Ce=gwe(N,O,s,!0,!1,m,g,P,z),ye=Ie(Ce,5),he=ye[0],_e=ye[1],Oe=ye[2],De=ye[3],Y=ye[4],D=Oe(),G=dwe(b,_,be),ie=Ie(G,9),me=ie[0],se=ie[1],Be=ie[2],Ve=ie[3],re=ie[4],Me=ie[5],je=ie[6],ke=ie[7],Ge=ie[8],Ue=function(wn,Mn){se(!0),te==null||te(wn,{range:RR(Mn??Ve)})},qe=function(wn,Mn){se(!1),ae==null||ae(wn,{range:RR(Mn??Ve)})},At=p.useMemo(function(){if(!k)return null;var dn=k.disabledTime,wn=dn?function(Mn){var Qn=RR(Ve),Mr=QCe(D,je,Ve);return dn(Mn,Qn,{from:Mr})}:void 0;return W(W({},k),{},{disabledTime:wn})},[k,Ve,D,je]),at=Pn([I,I],{value:B}),pt=Ie(at,2),Ct=pt[0],bt=pt[1],Vt=Ct[Ve]||I,Tt=Vt==="date"&&At?"datetime":Vt,Ot=Tt===I&&Tt!=="time",Ut=bwe(I,Vt,M,F,!0),ze=vwe(i,he,_e,Oe,De,b,s,me,be,c),Ye=Ie(ze,2),He=Ye[0],Ze=Ye[1],yt=Dot(D,b,je,N,O,E),_t=ZCe(D,c,_),Bt=Ie(_t,2),Nt=Bt[0],vt=Bt[1],ht=fwe(N,O,D,Ct,be,Ve,o,Ot,L,V,At==null?void 0:At.defaultOpenValue,j,w,S),kt=Ie(ht,2),Et=kt[0],Yt=kt[1],ct=Yn(function(dn,wn,Mn){var Qn=fw(Ct,Ve,wn);if((Qn[0]!==Ct[0]||Qn[1]!==Ct[1])&&bt(Qn),A&&Mn!==!1){var Mr=nt(D);dn&&(Mr[Ve]=dn),A(Mr,Qn)}}),Rt=function(wn,Mn){return fw(D,Mn,wn)},Ht=function(wn,Mn){var Qn=D;wn&&(Qn=Rt(wn,Ve)),ke(Ve);var Mr=Me(Qn);De(Qn),He(Ve,Mr===null),Mr===null?Se(!1,{force:!0}):Mn||ve.current.focus({index:Mr})},wt=function(wn){var Mn,Qn=wn.target.getRootNode();if(!ve.current.nativeElement.contains((Mn=Qn.activeElement)!==null&&Mn!==void 0?Mn:document.activeElement)){var Mr=b.findIndex(function(qo){return!qo});Mr>=0&&ve.current.focus({index:Mr})}Se(!0),le==null||le(wn)},St=function(){Ze(null),Se(!1,{force:!0})},jt=p.useState(null),Pe=Ie(jt,2),Pt=Pe[0],rt=Pe[1],Mt=p.useState(null),It=Ie(Mt,2),xn=It[0],Hn=It[1],R=p.useMemo(function(){return xn||D},[D,xn]);p.useEffect(function(){be||Hn(null)},[be]);var $=p.useState(0),Z=Ie($,2),xe=Z[0],$e=Z[1],et=uwe(K,Q),$t=function(wn){Hn(wn),rt("preset")},pn=function(wn){var Mn=Ze(wn);Mn&&Se(!1,{force:!0})},Fn=function(wn){Ht(wn)},Xr=function(wn){Hn(wn?Rt(wn,Ve):null),rt("cell")},Lr=function(wn){Se(!0),Ue(wn)},vi=function(){Be("panel")},Sr=function(wn){var Mn=fw(D,Ve,wn);De(Mn),!v&&!a&&o===Tt&&Ht(wn)},ln=function(){Se(!1)},_n=jq(ge,fe,ue,RR(Ve)),Er=D[Ve]||null,on=Yn(function(dn){return c(dn,{activeIndex:Ve})}),an=p.useMemo(function(){var dn=xi(i,!1),wn=ur(i,[].concat(nt(Object.keys(dn)),["onChange","onCalendarChange","style","className","onPanelChange","disabledTime"]));return wn},[i]),Gn=p.createElement(Swe,Ke({},an,{showNow:Ut,showTime:At,range:!0,multiplePanel:Ot,activeOffset:xe,placement:h,disabledDate:yt,onFocus:Lr,onBlur:qe,onPanelMouseDown:vi,picker:I,mode:Vt,internalMode:Tt,onPanelChange:ct,format:l,value:Er,isInvalid:on,onChange:null,onSelect:Sr,pickerValue:Et,defaultOpenValue:E0(k==null?void 0:k.defaultOpenValue)[Ve],onPickerValueChange:Yt,hoverValue:R,onHover:Xr,needConfirm:v,onSubmit:Ht,onOk:Y,presets:et,onPresetHover:$t,onPresetSubmit:pn,onNow:Fn,cellRender:_n})),_r=function(wn,Mn){var Qn=Rt(wn,Mn);De(Qn)},oi=function(){Be("input")},Zi=function(wn,Mn){var Qn=je.length,Mr=je[Qn-1];if(Qn&&Mr!==Mn&&v&&!_[Mr]&&!Ge(Mr)&&D[Mr]){ve.current.focus({index:Mr});return}Be("input"),Se(!0,{inherit:!0}),Ve!==Mn&&be&&!v&&a&&Ht(null,!0),re(Mn),Ue(wn,Mn)},nr=function(wn,Mn){if(Se(!1),!v&&Be()==="input"){var Qn=Me(D);He(Ve,Qn===null)}qe(wn,Mn)},Fi=function(wn,Mn){wn.key==="Tab"&&Ht(null,!0),y==null||y(wn,Mn)},Zn=p.useMemo(function(){return{prefixCls:u,locale:O,generateConfig:N,button:oe.button,input:oe.input}},[u,O,N,oe.button,oe.input]);return sr(function(){be&&Ve!==void 0&&ct(null,I,!1)},[be,Ve,I]),sr(function(){var dn=Be();!be&&dn==="input"&&(Se(!1),Ht(null,!0)),!be&&a&&!v&&dn==="panel"&&(Se(!0),Ht())},[be]),p.createElement(jd.Provider,{value:Zn},p.createElement(YCe,Ke({},XCe(i),{popupElement:Gn,popupStyle:d.popup,popupClassName:f.popup,visible:be,onClose:ln,range:!0}),p.createElement(dat,Ke({},i,{ref:ve,suffixIcon:J,activeIndex:me||be?Ve:null,activeHelp:!!xn,allHelp:!!xn&&Pt==="preset",focused:me,onFocus:Zi,onBlur:nr,onKeyDown:Fi,onSubmit:Ht,value:R,maskFormat:l,onChange:_r,onInputChange:oi,format:s,inputReadOnly:U,disabled:b,open:be,onOpenChange:Se,onClick:wt,onClear:St,invalid:Nt,onInvalid:vt,onActiveOffset:$e}))))}var pat=p.forwardRef(fat);function hat(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"),f="".concat(d,"-overflow");function h(v,y){return p.createElement("span",{className:Te("".concat(d,"-item")),title:typeof v=="string"?v:null},p.createElement("span",{className:"".concat(d,"-item-content")},v),!s&&y&&p.createElement("span",{onMouseDown:function(_){_.preventDefault()},onClick:y,className:"".concat(d,"-item-remove")},o))}function m(v){var y=a(v),b=function(E){E&&E.stopPropagation(),r(v)};return h(y,b)}function g(v){var y="+ ".concat(v.length," ...");return h(y)}return p.createElement("div",{className:u},p.createElement(pd,{prefixCls:f,data:n,renderItem:m,renderRest:g,itemKey:function(y){return a(y)},maxCount:l}),!n.length&&p.createElement("span",{className:"".concat(t,"-selection-placeholder")},c))}var mat=["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 gat(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,f=e.onClick,h=e.onClear,m=e.internalPicker,g=e.value,v=e.onChange,y=e.onSubmit;e.onInputChange;var b=e.multiple,_=e.maxTagCount;e.format,e.maskFormat,e.preserveInvalidOnBlur,e.onInvalid;var E=e.disabled,w=e.invalid;e.inputReadOnly;var S=e.direction;e.onOpenChange;var C=e.onMouseDown;e.required,e["aria-required"];var T=e.autoFocus,x=e.tabIndex,O=e.removeIcon,N=Dt(e,mat),I=S==="rtl",M=p.useContext(jd),F=M.prefixCls,k=p.useRef(),B=p.useRef();p.useImperativeHandle(t,function(){return{nativeElement:k.current,focus:function(K){var Q;(Q=B.current)===null||Q===void 0||Q.focus(K)},blur:function(){var K;(K=B.current)===null||K===void 0||K.blur()}}});var A=Cwe(N),P=function(K){v([K])},z=function(K){var Q=g.filter(function(oe){return oe&&!xs(l,s,oe,K,m)});v(Q),n||y()},L=Ewe(W(W({},e),{},{onChange:P}),function(ae){var K=ae.valueTexts;return{value:K[0]||"",active:a}}),V=Ie(L,2),j=V[0],U=V[1],J=!!(i&&g.length&&!E),te=b?p.createElement(p.Fragment,null,p.createElement(hat,{prefixCls:F,value:g,onRemove:z,formatDate:U,maxTagCount:_,disabled:E,removeIcon:O,placeholder:c}),p.createElement("input",{className:"".concat(F,"-multiple-input"),value:g.map(U).join(","),ref:B,readOnly:!0,autoFocus:T,tabIndex:x}),p.createElement(Q5,{type:"suffix",icon:o}),J&&p.createElement(DH,{icon:i,onClear:h})):p.createElement(LH,Ke({ref:B},j(),{autoFocus:T,tabIndex:x,suffixIcon:o,clearIcon:J&&p.createElement(DH,{icon:i,onClear:h}),showActiveCls:!1}));return p.createElement("div",Ke({},A,{className:Te(F,ee(ee(ee(ee(ee({},"".concat(F,"-multiple"),b),"".concat(F,"-focused"),a),"".concat(F,"-disabled"),E),"".concat(F,"-invalid"),w),"".concat(F,"-rtl"),I),u),style:d,ref:k,onClick:f,onMouseDown:function(K){var Q,oe=K.target;oe!==((Q=B.current)===null||Q===void 0?void 0:Q.inputElement)&&K.preventDefault(),C==null||C(K)}}),r&&p.createElement("div",{className:"".concat(F,"-prefix")},r),te)}var vat=p.forwardRef(gat);function bat(e,t){var n=swe(e),r=Ie(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,f=u.styles,h=u.classNames,m=u.order,g=u.defaultValue,v=u.value,y=u.needConfirm,b=u.onChange,_=u.onKeyDown,E=u.disabled,w=u.disabledDate,S=u.minDate,C=u.maxDate,T=u.defaultOpen,x=u.open,O=u.onOpenChange,N=u.locale,I=u.generateConfig,M=u.picker,F=u.showNow,k=u.showToday,B=u.showTime,A=u.mode,P=u.onPanelChange,z=u.onCalendarChange,L=u.onOk,V=u.multiple,j=u.defaultPickerValue,U=u.pickerValue,J=u.onPickerValueChange,te=u.inputReadOnly,ae=u.suffixIcon,K=u.removeIcon,Q=u.onFocus,oe=u.onBlur,ge=u.presets,fe=u.components,ue=u.cellRender,le=u.dateRender,ve=u.monthCellRender,ne=u.onClick,pe=cwe(t);function be(on){return on===null?null:V?on:on[0]}var Re=ywe(I,N,o),Se=lwe(x,T,[E],O),Ce=Ie(Se,2),ye=Ce[0],he=Ce[1],_e=function(an,Gn,_r){if(z){var oi=W({},_r);delete oi.range,z(be(an),be(Gn),oi)}},Oe=function(an){L==null||L(be(an))},De=gwe(I,N,s,!1,m,g,v,_e,Oe),Y=Ie(De,5),D=Y[0],G=Y[1],ie=Y[2],me=Y[3],se=Y[4],Be=ie(),Ve=dwe([E]),re=Ie(Ve,4),Me=re[0],je=re[1],ke=re[2],Ge=re[3],Ue=function(an){je(!0),Q==null||Q(an,{})},qe=function(an){je(!1),oe==null||oe(an,{})},At=Pn(M,{value:A}),at=Ie(At,2),pt=at[0],Ct=at[1],bt=pt==="date"&&B?"datetime":pt,Vt=bwe(M,pt,F,k),Tt=b&&function(on,an){b(be(on),be(an))},Ot=vwe(W(W({},i),{},{onChange:Tt}),D,G,ie,me,[],s,Me,ye,c),Ut=Ie(Ot,2),ze=Ut[1],Ye=ZCe(Be,c),He=Ie(Ye,2),Ze=He[0],yt=He[1],_t=p.useMemo(function(){return Ze.some(function(on){return on})},[Ze]),Bt=function(an,Gn){if(J){var _r=W(W({},Gn),{},{mode:Gn.mode[0]});delete _r.range,J(an[0],_r)}},Nt=fwe(I,N,Be,[pt],ye,Ge,o,!1,j,U,E0(B==null?void 0:B.defaultOpenValue),Bt,S,C),vt=Ie(Nt,2),ht=vt[0],kt=vt[1],Et=Yn(function(on,an,Gn){if(Ct(an),P&&Gn!==!1){var _r=on||Be[Be.length-1];P(_r,an)}}),Yt=function(){ze(ie()),he(!1,{force:!0})},ct=function(an){!E&&!pe.current.nativeElement.contains(document.activeElement)&&pe.current.focus(),he(!0),ne==null||ne(an)},Rt=function(){ze(null),he(!1,{force:!0})},Ht=p.useState(null),wt=Ie(Ht,2),St=wt[0],jt=wt[1],Pe=p.useState(null),Pt=Ie(Pe,2),rt=Pt[0],Mt=Pt[1],It=p.useMemo(function(){var on=[rt].concat(nt(Be)).filter(function(an){return an});return V?on:on.slice(0,1)},[Be,rt,V]),xn=p.useMemo(function(){return!V&&rt?[rt]:Be.filter(function(on){return on})},[Be,rt,V]);p.useEffect(function(){ye||Mt(null)},[ye]);var Hn=uwe(ge),R=function(an){Mt(an),jt("preset")},$=function(an){var Gn=V?Re(ie(),an):[an],_r=ze(Gn);_r&&!V&&he(!1,{force:!0})},Z=function(an){$(an)},xe=function(an){Mt(an),jt("cell")},$e=function(an){he(!0),Ue(an)},et=function(an){if(ke("panel"),!(V&&bt!==M)){var Gn=V?Re(ie(),an):[an];me(Gn),!y&&!a&&o===bt&&Yt()}},$t=function(){he(!1)},pn=jq(ue,le,ve),Fn=p.useMemo(function(){var on=xi(i,!1),an=ur(i,[].concat(nt(Object.keys(on)),["onChange","onCalendarChange","style","className","onPanelChange"]));return W(W({},an),{},{multiple:i.multiple})},[i]),Xr=p.createElement(Swe,Ke({},Fn,{showNow:Vt,showTime:B,disabledDate:w,onFocus:$e,onBlur:qe,picker:M,mode:pt,internalMode:bt,onPanelChange:Et,format:l,value:Be,isInvalid:c,onChange:null,onSelect:et,pickerValue:ht,defaultOpenValue:B==null?void 0:B.defaultOpenValue,onPickerValueChange:kt,hoverValue:It,onHover:xe,needConfirm:y,onSubmit:Yt,onOk:se,presets:Hn,onPresetHover:R,onPresetSubmit:$,onNow:Z,cellRender:pn})),Lr=function(an){me(an)},vi=function(){ke("input")},Sr=function(an){ke("input"),he(!0,{inherit:!0}),Ue(an)},ln=function(an){he(!1),qe(an)},_n=function(an,Gn){an.key==="Tab"&&Yt(),_==null||_(an,Gn)},Er=p.useMemo(function(){return{prefixCls:d,locale:N,generateConfig:I,button:fe.button,input:fe.input}},[d,N,I,fe.button,fe.input]);return sr(function(){ye&&Ge!==void 0&&Et(null,M,!1)},[ye,Ge,M]),sr(function(){var on=ke();!ye&&on==="input"&&(he(!1),Yt()),!ye&&a&&!y&&on==="panel"&&(he(!0),Yt())},[ye]),p.createElement(jd.Provider,{value:Er},p.createElement(YCe,Ke({},XCe(i),{popupElement:Xr,popupStyle:f.popup,popupClassName:h.popup,visible:ye,onClose:$t}),p.createElement(vat,Ke({},i,{ref:pe,suffixIcon:ae,removeIcon:K,activeHelp:!!rt,allHelp:!!rt&&St==="preset",focused:Me,onFocus:Sr,onBlur:ln,onKeyDown:_n,onSubmit:Yt,value:xn,maskFormat:l,onChange:Lr,onInputChange:vi,internalPicker:o,format:s,inputReadOnly:te,disabled:E,open:ye,onOpenChange:he,onClick:ct,onClear:Rt,invalid:_t,onInvalid:function(an){yt(an,0)}}))))}var yat=p.forwardRef(bat);const wwe=p.createContext(null),_at=wwe.Provider,Twe=p.createContext(null),Sat=Twe.Provider;var Eat=["prefixCls","className","style","checked","disabled","defaultChecked","type","title","onChange"],xwe=p.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,f=e.title,h=e.onChange,m=Dt(e,Eat),g=p.useRef(null),v=p.useRef(null),y=Pn(c,{value:a}),b=Ie(y,2),_=b[0],E=b[1];p.useImperativeHandle(t,function(){return{focus:function(T){var x;(x=g.current)===null||x===void 0||x.focus(T)},blur:function(){var T;(T=g.current)===null||T===void 0||T.blur()},input:g.current,nativeElement:v.current}});var w=Te(r,i,ee(ee({},"".concat(r,"-checked"),_),"".concat(r,"-disabled"),s)),S=function(T){s||("checked"in e||E(T.target.checked),h==null||h({target:W(W({},e),{},{type:d,checked:T.target.checked}),stopPropagation:function(){T.stopPropagation()},preventDefault:function(){T.preventDefault()},nativeEvent:T.nativeEvent}))};return p.createElement("span",{className:w,title:f,style:o,ref:v},p.createElement("input",Ke({},m,{className:"".concat(r,"-input"),ref:g,onChange:S,disabled:s,checked:!!_,type:d})),p.createElement("span",{className:"".concat(r,"-inner")}))});function Owe(e){const t=ce.useRef(null),n=()=>{rr.cancel(t.current),t.current=null};return[()=>{n(),t.current=rr(()=>{t.current=null})},o=>{t.current&&(o.stopPropagation(),n()),e==null||e(o)}]}const Cat=e=>{const{componentCls:t,antCls:n}=e,r=`${t}-group`;return{[r]:Object.assign(Object.assign({},gr(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"}})}},wat=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:f,paddingXS:h,dotColorDisabled:m,lineType:g,radioColor:v,radioBgColor:y,calc:b}=e,_=`${t}-inner`,w=b(i).sub(b(4).mul(2)),S=b(1).mul(i).equal({unit:!0});return{[`${t}-wrapper`]:Object.assign(Object.assign({},gr(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:`${Ae(u)} ${g} ${r}`,borderRadius:"50%",visibility:"hidden",opacity:0,content:'""'},[t]:Object.assign(Object.assign({},gr(e)),{position:"relative",display:"inline-block",outline:"none",cursor:"pointer",alignSelf:"center",borderRadius:"50%"}),[`${t}-wrapper:hover &,
&:hover ${_}`]:{borderColor:r},[`${t}-input:focus-visible + ${_}`]:Object.assign({},Td(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:S,height:S,marginBlockStart:b(1).mul(i).div(-2).equal({unit:!0}),marginInlineStart:b(1).mul(i).div(-2).equal({unit:!0}),backgroundColor:v,borderBlockStart:0,borderInlineStart:0,borderRadius:S,transform:"scale(0)",opacity:0,transition:`all ${o} ${s}`,content:'""'},boxSizing:"border-box",position:"relative",insetBlockStart:0,insetInlineStart:0,display:"block",width:S,height:S,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`]:{[_]:{borderColor:r,backgroundColor:y,"&::after":{transform:`scale(${e.calc(e.dotSize).div(i).equal()})`,opacity:1,transition:`all ${o} ${s}`}}},[`${t}-disabled`]:{cursor:"not-allowed",[_]:{backgroundColor:d,borderColor:c,cursor:"not-allowed","&::after":{backgroundColor:m}},[`${t}-input`]:{cursor:"not-allowed"},[`${t}-disabled + span`]:{color:f,cursor:"not-allowed"},[`&${t}-checked`]:{[_]:{"&::after":{transform:`scale(${b(w).div(i).equal()})`}}}},[`span${t} + *`]:{paddingInlineStart:h,paddingInlineEnd:h}})}},Tat=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:f,controlHeightLG:h,controlHeightSM:m,paddingXS:g,borderRadius:v,borderRadiusSM:y,borderRadiusLG:b,buttonCheckedBg:_,buttonSolidCheckedColor:E,colorTextDisabled:w,colorBgContainerDisabled:S,buttonCheckedBgDisabled:C,buttonCheckedColorDisabled:T,colorPrimary:x,colorPrimaryHover:O,colorPrimaryActive:N,buttonSolidCheckedBg:I,buttonSolidCheckedHoverBg:M,buttonSolidCheckedActiveBg:F,calc:k}=e;return{[`${r}-button-wrapper`]:{position:"relative",display:"inline-block",height:n,margin:0,paddingInline:c,paddingBlock:0,color:t,fontSize:u,lineHeight:Ae(k(n).sub(k(i).mul(2)).equal()),background:d,border:`${Ae(i)} ${o} ${a}`,borderBlockStartWidth:k(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:k(i).mul(-1).equal(),insetInlineStart:k(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:`${Ae(i)} ${o} ${a}`,borderStartStartRadius:v,borderEndStartRadius:v},"&:last-child":{borderStartEndRadius:v,borderEndEndRadius:v},"&:first-child:last-child":{borderRadius:v},[`${r}-group-large &`]:{height:h,fontSize:f,lineHeight:Ae(k(h).sub(k(i).mul(2)).equal()),"&:first-child":{borderStartStartRadius:b,borderEndStartRadius:b},"&:last-child":{borderStartEndRadius:b,borderEndEndRadius:b}},[`${r}-group-small &`]:{height:m,paddingInline:k(g).sub(i).equal(),paddingBlock:0,lineHeight:Ae(k(m).sub(k(i).mul(2)).equal()),"&:first-child":{borderStartStartRadius:y,borderEndStartRadius:y},"&:last-child":{borderStartEndRadius:y,borderEndEndRadius:y}},"&:hover":{position:"relative",color:x},"&:has(:focus-visible)":Object.assign({},Td(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:x,background:_,borderColor:x,"&::before":{backgroundColor:x},"&:first-child":{borderColor:x},"&:hover":{color:O,borderColor:O,"&::before":{backgroundColor:O}},"&:active":{color:N,borderColor:N,"&::before":{backgroundColor:N}}},[`${r}-group-solid &-checked:not(${r}-button-wrapper-disabled)`]:{color:E,background:I,borderColor:I,"&:hover":{color:E,background:M,borderColor:M},"&:active":{color:E,background:F,borderColor:F}},"&-disabled":{color:w,backgroundColor:S,borderColor:a,cursor:"not-allowed","&:first-child, &:hover":{color:w,backgroundColor:S,borderColor:a}},[`&-disabled${r}-button-wrapper-checked`]:{color:T,backgroundColor:C,borderColor:a,boxShadow:"none"},"&-block":{flex:1,textAlign:"center"}}}},xat=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:f,colorPrimaryActive:h,colorWhite:m}=e,g=4,v=o,y=t?v-g*2:v-(g+i)*2;return{radioSize:v,dotSize:y,dotColorDisabled:l,buttonSolidCheckedColor:u,buttonSolidCheckedBg:d,buttonSolidCheckedHoverBg:f,buttonSolidCheckedActiveBg:h,buttonBg:s,buttonCheckedBg:s,buttonColor:a,buttonCheckedBgDisabled:c,buttonCheckedColorDisabled:l,buttonPaddingInline:n-i,wrapperMarginInlineEnd:r,radioColor:t?d:m,radioBgColor:t?s:d}},Rwe=cr("Radio",e=>{const{controlOutline:t,controlOutlineWidth:n}=e,r=`0 0 0 ${Ae(n)} ${t}`,o=Kn(e,{radioFocusShadow:r,radioButtonFocusShadow:r});return[Cat(o),wat(o),Tat(o)]},xat,{unitless:{radioSize:!0,dotSize:!0}});var Oat=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 Rat=(e,t)=>{var n,r;const i=p.useContext(wwe),o=p.useContext(Twe),{getPrefixCls:a,direction:s,radio:l}=p.useContext(Qt),c=p.useRef(null),u=oa(t,c),{isFormItemInput:d}=p.useContext(ia),f=B=>{var A,P;(A=e.onChange)===null||A===void 0||A.call(e,B),(P=i==null?void 0:i.onChange)===null||P===void 0||P.call(i,B)},{prefixCls:h,className:m,rootClassName:g,children:v,style:y,title:b}=e,_=Oat(e,["prefixCls","className","rootClassName","children","style","title"]),E=a("radio",h),w=((i==null?void 0:i.optionType)||o)==="button",S=w?`${E}-button`:E,C=ui(E),[T,x,O]=Rwe(E,C),N=Object.assign({},_),I=p.useContext(Vo);i&&(N.name=i.name,N.onChange=f,N.checked=e.value===i.value,N.disabled=(n=N.disabled)!==null&&n!==void 0?n:i.disabled),N.disabled=(r=N.disabled)!==null&&r!==void 0?r:I;const M=Te(`${S}-wrapper`,{[`${S}-wrapper-checked`]:N.checked,[`${S}-wrapper-disabled`]:N.disabled,[`${S}-wrapper-rtl`]:s==="rtl",[`${S}-wrapper-in-form-item`]:d,[`${S}-wrapper-block`]:!!(i!=null&&i.block)},l==null?void 0:l.className,m,g,x,O,C),[F,k]=Owe(N.onClick);return T(p.createElement(t2,{component:"Radio",disabled:N.disabled},p.createElement("label",{className:M,style:Object.assign(Object.assign({},l==null?void 0:l.style),y),onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,title:b,onClick:F},p.createElement(xwe,Object.assign({},N,{className:Te(N.className,{[g5]:!w}),type:"radio",prefixCls:S,ref:u,onClick:k})),v!==void 0?p.createElement("span",null,v):null)))},GM=p.forwardRef(Rat),Iat=p.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r}=p.useContext(Qt),i=R5(),{prefixCls:o,className:a,rootClassName:s,options:l,buttonStyle:c="outline",disabled:u,children:d,size:f,style:h,id:m,optionType:g,name:v=i,defaultValue:y,value:b,block:_=!1,onChange:E,onMouseEnter:w,onMouseLeave:S,onFocus:C,onBlur:T}=e,[x,O]=Pn(y,{value:b}),N=p.useCallback(j=>{const U=x,J=j.target.value;"value"in e||O(J),J!==U&&(E==null||E(j))},[x,O,E]),I=n("radio",o),M=`${I}-group`,F=ui(I),[k,B,A]=Rwe(I,F);let P=d;l&&l.length>0&&(P=l.map(j=>typeof j=="string"||typeof j=="number"?p.createElement(GM,{key:j.toString(),prefixCls:I,disabled:u,value:j,checked:x===j},j):p.createElement(GM,{key:`radio-group-value-options-${j.value}`,prefixCls:I,disabled:j.disabled||u,value:j.value,checked:x===j.value,title:j.title,style:j.style,id:j.id,required:j.required},j.label)));const z=So(f),L=Te(M,`${M}-${c}`,{[`${M}-${z}`]:z,[`${M}-rtl`]:r==="rtl",[`${M}-block`]:_},a,s,B,A,F),V=p.useMemo(()=>({onChange:N,value:x,disabled:u,name:v,optionType:g,block:_}),[N,x,u,v,g,_]);return k(p.createElement("div",Object.assign({},xi(e,{aria:!0,data:!0}),{className:L,style:h,onMouseEnter:w,onMouseLeave:S,onFocus:C,onBlur:T,id:m,ref:t}),p.createElement(_at,{value:V},P)))}),Aat=p.memo(Iat);var Nat=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 Mat=(e,t)=>{const{getPrefixCls:n}=p.useContext(Qt),{prefixCls:r}=e,i=Nat(e,["prefixCls"]),o=n("radio",r);return p.createElement(Sat,{value:"button"},p.createElement(GM,Object.assign({prefixCls:o},i,{type:"radio",ref:t})))},kat=p.forwardRef(Mat),qi=GM;qi.Button=kat;qi.Group=Aat;qi.__ANT_RADIO=!0;function p2(e){return Kn(e,{inputAffixPadding:e.paddingXXS})}const h2=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:f,colorPrimaryHover:h,colorPrimary:m,controlOutlineWidth:g,controlOutline:v,colorErrorOutline:y,colorWarningOutline:b,colorBgContainer:_}=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:f,activeBorderColor:m,hoverBorderColor:h,activeShadow:`0 0 0 ${g}px ${v}`,errorActiveShadow:`0 0 0 ${g}px ${y}`,warningActiveShadow:`0 0 0 ${g}px ${b}`,hoverBg:_,activeBg:_,inputFontSize:n,inputFontSizeLG:s,inputFontSizeSM:n}},Pat=e=>({borderColor:e.hoverBorderColor,backgroundColor:e.hoverBg}),X5=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({},Pat(Kn(e,{hoverBorderColor:e.colorBorder,hoverBg:e.colorBgContainerDisabled})))}),Gq=(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}}),Yre=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},Gq(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}}),[`&${e.componentCls}-status-${t.status}${e.componentCls}-disabled`]:{borderColor:t.borderColor}}),Wq=(e,t)=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Gq(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},X5(e))}),Yre(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError})),Yre(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning})),t)}),Kre=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{borderColor:t.addonBorderColor,color:t.addonColor}}}),Iwe=e=>({"&-outlined":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group`]:{"&-addon":{background:e.addonBg,border:`${Ae(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}}},Kre(e,{status:"error",addonBorderColor:e.colorError,addonColor:e.colorErrorText})),Kre(e,{status:"warning",addonBorderColor:e.colorWarning,addonColor:e.colorWarningText})),{[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group-addon`]:Object.assign({},X5(e))}})}),qq=(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)}},Awe=(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}}),Qre=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},Awe(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}})}),Yq=(e,t)=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Awe(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},X5(e))}),Qre(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,inputColor:e.colorErrorText,affixColor:e.colorError})),Qre(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,inputColor:e.colorWarningText,affixColor:e.colorWarning})),t)}),Xre=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{background:t.addonBg,color:t.addonColor}}}),Nwe=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:`${Ae(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},"&:not(:last-child)":{borderInlineEnd:`${Ae(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}}}},Xre(e,{status:"error",addonBg:e.colorErrorBg,addonColor:e.colorErrorText})),Xre(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:`${Ae(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${Ae(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${Ae(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:last-child":{borderInlineEnd:`${Ae(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${Ae(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${Ae(e.lineWidth)} ${e.lineType} ${e.colorBorder}`}}}})}),Kq=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),Mwe=e=>{const{paddingBlockLG:t,lineHeightLG:n,borderRadiusLG:r,paddingInlineLG:i}=e;return{padding:`${Ae(t)} ${Ae(i)}`,fontSize:e.inputFontSizeLG,lineHeight:n,borderRadius:r}},Qq=e=>({padding:`${Ae(e.paddingBlockSM)} ${Ae(e.paddingInlineSM)}`,fontSize:e.inputFontSizeSM,borderRadius:e.borderRadiusSM}),m2=e=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${Ae(e.paddingBlock)} ${Ae(e.paddingInline)}`,color:e.colorText,fontSize:e.inputFontSize,lineHeight:e.lineHeight,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`},Kq(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({},Mwe(e)),"&-sm":Object.assign({},Qq(e)),"&-rtl, &-textarea-rtl":{direction:"rtl"}}),kwe=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({},Mwe(e)),[`&-sm ${t}, &-sm > ${t}-group-addon`]:Object.assign({},Qq(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 ${Ae(e.paddingInline)}`,color:e.colorText,fontWeight:"normal",fontSize:e.inputFontSize,textAlign:"center",borderRadius:e.borderRadius,transition:`all ${e.motionDurationSlow}`,lineHeight:1,[`${n}-select`]:{margin:`${Ae(e.calc(e.paddingBlock).add(1).mul(-1).equal())} ${Ae(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:`${Ae(e.lineWidth)} ${e.lineType} transparent`,boxShadow:"none"}}},[`${n}-cascader-picker`]:{margin:`-9px ${Ae(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"},wd()),{[`${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}}}})}},Dat=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({},gr(e)),m2(e)),Wq(e)),Yq(e)),qq(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"}})}},Lat=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 ${Ae(e.inputAffixPadding)}`}}}},$at=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({},m2(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}}}),Lat(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}}}}},Fat=e=>{const{componentCls:t,borderRadiusLG:n,borderRadiusSM:r}=e;return{[`${t}-group`]:Object.assign(Object.assign(Object.assign({},gr(e)),kwe(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}}},Iwe(e)),Nwe(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}}})})}},Bat=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}}}}},jat=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}}}}}},Hat=e=>{const{componentCls:t}=e;return{[`${t}-out-of-range`]:{[`&, & input, & textarea, ${t}-show-count-suffix, ${t}-data-count`]:{color:e.colorError}}}},Xq=cr("Input",e=>{const t=Kn(e,p2(e));return[Dat(t),jat(t),$at(t),Fat(t),Bat(t),Hat(t),S0(t)]},h2,{resetFont:!1}),zL=(e,t)=>{const{componentCls:n,controlHeight:r}=e,i=t?`${n}-${t}`:"",o=WEe(e);return[{[`${n}-multiple${i}`]:{paddingBlock:o.containerPadding,paddingInlineStart:o.basePadding,minHeight:r,[`${n}-selection-item`]:{height:o.itemHeight,lineHeight:Ae(o.itemLineHeight)}}}]},Uat=e=>{const{componentCls:t,calc:n,lineWidth:r}=e,i=Kn(e,{fontHeight:e.fontSize,selectHeight:e.controlHeightSM,multipleSelectItemHeight:e.multipleItemHeightSM,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS,controlHeight:e.controlHeightSM}),o=Kn(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[zL(i,"small"),zL(e),zL(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"}}},qEe(e)),{[`${t}-multiple-input`]:{width:0,height:0,border:0,visibility:"hidden",position:"absolute",zIndex:-1}})}]},zat=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:f,cellBgDisabled:h,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:Ae(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:`${Ae(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:f,cursor:"not-allowed",[n]:{background:"transparent"},"&::before":{background:h}},[`&-disabled${t}-today ${n}::before`]:{borderColor:f}}},Vat=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:f,borderRadiusLG:h,colorPrimary:m,colorTextHeading:g,colorSplit:v,pickerControlIconBorderWidth:y,colorIcon:b,textHeight:_,motionDurationMid:E,colorIconHover:w,fontWeightStrong:S,cellHeight:C,pickerCellPaddingVertical:T,colorTextDisabled:x,colorText:O,fontSize:N,motionDurationSlow:I,withoutTimeCellHeight:M,pickerQuarterPanelContentHeight:F,borderRadiusSM:k,colorTextLightSolid:B,cellHoverBg:A,timeColumnHeight:P,timeColumnWidth:z,timeCellHeight:L,controlItemBgActive:V,marginXXS:j,pickerDatePanelPaddingHorizontal:U,pickerControlIconMargin:J}=e,te=e.calc(a).mul(7).add(e.calc(U).mul(2)).equal();return{[t]:{"&-panel":{display:"inline-flex",flexDirection:"column",textAlign:"center",background:u,borderRadius:h,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:te},"&-header":{display:"flex",padding:`0 ${Ae(l)}`,color:g,borderBottom:`${Ae(d)} ${f} ${v}`,"> *":{flex:"none"},button:{padding:0,color:b,lineHeight:Ae(_),background:"transparent",border:0,cursor:"pointer",transition:`color ${E}`,fontSize:"inherit",display:"inline-flex",alignItems:"center",justifyContent:"center","&:empty":{display:"none"}},"> button":{minWidth:"1.6em",fontSize:N,"&:hover":{color:w},"&:disabled":{opacity:.25,pointerEvents:"none"}},"&-view":{flex:"auto",fontWeight:S,lineHeight:Ae(_),"> 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:`${Ae(y)} 0`,borderInlineWidth:`${Ae(y)} 0`,content:'""'}},"&-super-prev-icon,\n &-super-next-icon":{"&::after":{position:"absolute",top:J,insetInlineStart:J,display:"inline-block",width:o,height:o,border:"0 solid currentcolor",borderBlockWidth:`${Ae(y)} 0`,borderInlineWidth:`${Ae(y)} 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:C,fontWeight:"normal"},th:{height:e.calc(C).add(e.calc(T).mul(2)).equal(),color:O,verticalAlign:"middle"}},"&-cell":Object.assign({padding:`${Ae(T)} 0`,color:x,cursor:"pointer","&-in-view":{color:O}},zat(e)),"&-decade-panel,\n &-year-panel,\n &-quarter-panel,\n &-month-panel":{[`${t}-content`]:{height:e.calc(M).mul(4).equal()},[r]:{padding:`0 ${Ae(l)}`}},"&-quarter-panel":{[`${t}-content`]:{height:F}},"&-decade-panel":{[r]:{padding:`0 ${Ae(e.calc(l).div(2).equal())}`},[`${t}-cell::before`]:{display:"none"}},"&-year-panel,\n &-quarter-panel,\n &-month-panel":{[`${t}-body`]:{padding:`0 ${Ae(l)}`},[r]:{width:i}},"&-date-panel":{[`${t}-body`]:{padding:`${Ae(l)} ${Ae(U)}`},[`${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 ${E}`},"&:first-child:before":{borderStartStartRadius:k,borderEndStartRadius:k},"&:last-child:before":{borderStartEndRadius:k,borderEndEndRadius:k}},"&:hover td:before":{background:A},"&-range-start td, &-range-end td, &-selected td, &-hover td":{[`&${n}`]:{"&:before":{background:m},[`&${t}-cell-week`]:{color:new ir(B).setA(.5).toHexString()},[r]:{color:B}}},"&-range-hover td:before":{background:V}}},"&-week-panel, &-date-panel-show-week":{[`${t}-body`]:{padding:`${Ae(l)} ${Ae(s)}`},[`${t}-content th`]:{width:"auto"}},"&-datetime-panel":{display:"flex",[`${t}-time-panel`]:{borderInlineStart:`${Ae(d)} ${f} ${v}`},[`${t}-date-panel,
${t}-time-panel`]:{transition:`opacity ${I}`},"&-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:P},"&-column":{flex:"1 0 auto",width:z,margin:`${Ae(c)} 0`,padding:0,overflowY:"hidden",textAlign:"start",listStyle:"none",transition:`background ${E}`,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% - ${Ae(L)})`,content:'""'},"&:not(:first-child)":{borderInlineStart:`${Ae(d)} ${f} ${v}`},"&-active":{background:new ir(V).setA(.2).toHexString()},"&:hover":{overflowY:"auto"},"> li":{margin:0,padding:0,[`&${t}-time-panel-cell`]:{marginInline:j,[`${t}-time-panel-cell-inner`]:{display:"block",width:e.calc(z).sub(e.calc(j).mul(2)).equal(),height:L,margin:0,paddingBlock:0,paddingInlineEnd:0,paddingInlineStart:e.calc(z).sub(L).div(2).equal(),color:O,lineHeight:Ae(L),borderRadius:k,cursor:"pointer",transition:`background ${E}`,"&:hover":{background:A}},"&-selected":{[`${t}-time-panel-cell-inner`]:{background:V}},"&-disabled":{[`${t}-time-panel-cell-inner`]:{color:x,background:"transparent",cursor:"not-allowed"}}}}}}}}},Gat=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:`${Ae(r)} ${c} ${u}`,"&-extra":{padding:`0 ${Ae(i)}`,lineHeight:Ae(e.calc(n).sub(e.calc(r).mul(2)).equal()),textAlign:"start","&:not(:last-child)":{borderBottom:`${Ae(r)} ${c} ${u}`}}},[`${t}-panels + ${t}-footer ${t}-ranges`]:{justifyContent:"space-between"},[`${t}-ranges`]:{marginBlock:0,paddingInline:Ae(i),overflow:"hidden",textAlign:"start",listStyle:"none",display:"flex",justifyContent:"center",alignItems:"center","> li":{lineHeight:Ae(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"}}}}},Wat=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()}},qat=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 ir(e.colorPrimary).lighten(35).toHexString(),cellRangeBorderColor:new ir(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"}},Yat=e=>Object.assign(Object.assign(Object.assign(Object.assign({},h2(e)),qat(e)),F5(e)),{presetsWidth:120,presetsMaxWidth:200,zIndexPopup:e.zIndexPopupBase+50}),Kat=e=>{const{componentCls:t}=e;return{[t]:[Object.assign(Object.assign(Object.assign({},Wq(e)),Yq(e)),qq(e)),{"&-outlined":{[`&${t}-multiple ${t}-selection-item`]:{background:e.multipleItemBg,border:`${Ae(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}},"&-filled":{[`&${t}-multiple ${t}-selection-item`]:{background:e.colorBgContainer,border:`${Ae(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}},"&-borderless":{[`&${t}-multiple ${t}-selection-item`]:{background:e.multipleItemBg,border:`${Ae(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}}}]}},VL=(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:`${Ae(o)} ${Ae(r)} ${Ae(a)}`}},Qat=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}}}}},Xat=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:f,fontSizeLG:h,controlHeightSM:m,paddingInlineSM:g,paddingXS:v,marginXS:y,colorTextDescription:b,lineWidthBold:_,colorPrimary:E,motionDurationSlow:w,zIndexPopup:S,paddingXXS:C,sizePopupArrow:T,colorBgElevated:x,borderRadiusLG:O,boxShadowSecondary:N,borderRadiusSM:I,colorSplit:M,cellHoverBg:F,presetsWidth:k,presetsMaxWidth:B,boxShadowPopoverArrow:A,fontHeight:P,fontHeightLG:z,lineHeightLG:L}=e;return[{[t]:Object.assign(Object.assign(Object.assign({},gr(e)),VL(e,r,P,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}`},Kq(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({},VL(e,f,z,i)),{[`${t}-input > input`]:{fontSize:h,lineHeight:L}}),"&-small":Object.assign({},VL(e,m,P,g)),[`${t}-suffix`]:{display:"flex",flex:"none",alignSelf:"center",marginInlineStart:e.calc(v).div(2).equal(),color:u,lineHeight:1,pointerEvents:"none",transition:`opacity ${c}, color ${c}`,"> *":{verticalAlign:"top","&:not(:last-child)":{marginInlineEnd:y}}},[`${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:h,color:u,fontSize:h,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:_,background:E,opacity:0,transition:`all ${w} ease-out`,pointerEvents:"none"},[`&${t}-focused`]:{[`${t}-active-bar`]:{opacity:1}},[`${t}-range-separator`]:{alignItems:"center",padding:`0 ${Ae(v)}`,lineHeight:1}},"&-range, &-multiple":{[`${t}-clear`]:{insetInlineEnd:i},[`&${t}-small`]:{[`${t}-clear`]:{insetInlineEnd:g}}},"&-dropdown":Object.assign(Object.assign(Object.assign({},gr(e)),Vat(e)),{pointerEvents:"none",position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:S,[`&${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:S5},[`&${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:y5},[`&${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:E5},[`&${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:_5},[`${t}-panel > ${t}-time-panel`]:{paddingTop:C},[`${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 ${w} ease-out`},eCe(e,x,A)),{"&:before":{insetInlineStart:e.calc(i).mul(1.5).equal()}}),[`${t}-panel-container`]:{overflow:"hidden",verticalAlign:"top",background:x,borderRadius:O,boxShadow:N,transition:`margin ${w}`,display:"inline-block",pointerEvents:"auto",[`${t}-panel-layout`]:{display:"flex",flexWrap:"nowrap",alignItems:"stretch"},[`${t}-presets`]:{display:"flex",flexDirection:"column",minWidth:k,maxWidth:B,ul:{height:0,flex:"auto",listStyle:"none",overflow:"auto",margin:0,padding:v,borderInlineEnd:`${Ae(o)} ${a} ${M}`,li:Object.assign(Object.assign({},kl),{borderRadius:I,paddingInline:v,paddingBlock:e.calc(m).sub(P).div(2).equal(),cursor:"pointer",transition:`all ${w}`,"+ li":{marginTop:y},"&:hover":{background:F}})}},[`${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:`${Ae(e.calc(T).mul(2).div(3).equal())} 0`,"&-hidden":{display:"none"}},"&-rtl":{direction:"rtl",[`${t}-separator`]:{transform:"rotate(180deg)"},[`${t}-footer`]:{"&-extra":{direction:"rtl"}}}})},$f(e,"slide-up"),$f(e,"slide-down"),h_(e,"move-up"),h_(e,"move-down")]},Pwe=cr("DatePicker",e=>{const t=Kn(p2(e),Wat(e),{inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(1).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[Gat(t),Xat(t),Kat(t),Qat(t),Uat(t),S0(e,{focusElCls:`${e.componentCls}-focused`})]},Yat);var Zat={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"},Jat=function(t,n){return p.createElement(Nn,Ke({},t,{ref:n,icon:Zat}))},g2=p.forwardRef(Jat);const Z5=p.createContext(null);var est=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=p.useState(),d=Ie(u,2),f=d[0],h=d[1],m=p.useRef(),g=ce.useCallback(function(y){return typeof s=="function"?s(y):typeof s=="number"?s:y},[s]);function v(){rr.cancel(m.current)}return p.useEffect(function(){var y={};if(n)if(r){y.width=g(n.width);var b=i?"right":"left";c==="start"&&(y[b]=n[b]),c==="center"&&(y[b]=n[b]+n.width/2,y.transform=i?"translateX(50%)":"translateX(-50%)"),c==="end"&&(y[b]=n[b]+n.width,y.transform="translateX(-100%)")}else y.height=g(n.height),c==="start"&&(y.top=n.top),c==="center"&&(y.top=n.top+n.height/2,y.transform="translateY(-50%)"),c==="end"&&(y.top=n.top+n.height,y.transform="translateY(-100%)");return v(),m.current=rr(function(){h(y)}),v},[n,r,i,c,g]),{style:f}},Zre={width:0,height:0,left:0,top:0};function tst(e,t,n){return p.useMemo(function(){for(var r,i=new Map,o=t.get((r=e[0])===null||r===void 0?void 0:r.key)||Zre,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)||Zre}var d=i.get(l)||W({},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 Jre(e,t){var n=p.useRef(e),r=p.useState({}),i=Ie(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 nst=.1,eie=.01,DA=20,tie=Math.pow(.995,DA);function rst(e,t){var n=p.useState(),r=Ie(n,2),i=r[0],o=r[1],a=p.useState(0),s=Ie(a,2),l=s[0],c=s[1],u=p.useState(0),d=Ie(u,2),f=d[0],h=d[1],m=p.useState(),g=Ie(m,2),v=g[0],y=g[1],b=p.useRef();function _(x){var O=x.touches[0],N=O.screenX,I=O.screenY;o({x:N,y:I}),window.clearInterval(b.current)}function E(x){if(i){var O=x.touches[0],N=O.screenX,I=O.screenY;o({x:N,y:I});var M=N-i.x,F=I-i.y;t(M,F);var k=Date.now();c(k),h(k-l),y({x:M,y:F})}}function w(){if(i&&(o(null),y(null),v)){var x=v.x/f,O=v.y/f,N=Math.abs(x),I=Math.abs(O);if(Math.max(N,I)<nst)return;var M=x,F=O;b.current=window.setInterval(function(){if(Math.abs(M)<eie&&Math.abs(F)<eie){window.clearInterval(b.current);return}M*=tie,F*=tie,t(M*DA,F*DA)},DA)}}var S=p.useRef();function C(x){var O=x.deltaX,N=x.deltaY,I=0,M=Math.abs(O),F=Math.abs(N);M===F?I=S.current==="x"?O:N:M>F?(I=O,S.current="x"):(I=N,S.current="y"),t(-I,-I)&&x.preventDefault()}var T=p.useRef(null);T.current={onTouchStart:_,onTouchMove:E,onTouchEnd:w,onWheel:C},p.useEffect(function(){function x(M){T.current.onTouchStart(M)}function O(M){T.current.onTouchMove(M)}function N(M){T.current.onTouchEnd(M)}function I(M){T.current.onWheel(M)}return document.addEventListener("touchmove",O,{passive:!1}),document.addEventListener("touchend",N,{passive:!0}),e.current.addEventListener("touchstart",x,{passive:!0}),e.current.addEventListener("wheel",I,{passive:!1}),function(){document.removeEventListener("touchmove",O),document.removeEventListener("touchend",N)}},[])}function Dwe(e){var t=p.useState(0),n=Ie(t,2),r=n[0],i=n[1],o=p.useRef(0),a=p.useRef();return a.current=e,uv(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 ist(e){var t=p.useRef([]),n=p.useState({}),r=Ie(n,2),i=r[1],o=p.useRef(typeof e=="function"?e():e),a=Dwe(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 nie={width:0,height:0,left:0,top:0,right:0};function ost(e,t,n,r,i,o,a){var s=a.tabs,l=a.tabPosition,c=a.rtl,u,d,f;return["top","bottom"].includes(l)?(u="width",d=c?"right":"left",f=Math.abs(n)):(u="height",d="top",f=-n),p.useMemo(function(){if(!s.length)return[0,0];for(var h=s.length,m=h,g=0;g<h;g+=1){var v=e.get(s[g].key)||nie;if(Math.floor(v[d]+v[u])>Math.floor(f+t)){m=g-1;break}}for(var y=0,b=h-1;b>=0;b-=1){var _=e.get(s[b].key)||nie;if(_[d]<f){y=b+1;break}}return y>=m?[0,0]:[y,m]},[e,t,r,i,o,f,l,s.map(function(h){return h.key}).join("_"),c])}function rie(e){var t;return e instanceof Map?(t={},e.forEach(function(n,r){t[r]=n})):t=e,JSON.stringify(t)}var ast="TABS_DQ";function Lwe(e){return String(e).replace(/"/g,ast)}function Zq(e,t,n,r){return!(!n||r||e===!1||e===void 0&&(t===!1||t===null))}var $we=p.forwardRef(function(e,t){var n=e.prefixCls,r=e.editable,i=e.locale,o=e.style;return!r||r.showAdd===!1?null:p.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||"+")}),iie=p.forwardRef(function(e,t){var n=e.position,r=e.prefixCls,i=e.extra;if(!i)return null;var o,a={};return Gt(i)==="object"&&!p.isValidElement(i)?a=i:a.right=i,n==="right"&&(o=a.right),n==="left"&&(o=a.left),o?p.createElement("div",{className:"".concat(r,"-extra-content"),ref:t},o):null}),sst=p.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,f=e.tabBarGutter,h=e.rtl,m=e.removeAriaLabel,g=e.onTabClick,v=e.getPopupContainer,y=e.popupClassName,b=p.useState(!1),_=Ie(b,2),E=_[0],w=_[1],S=p.useState(null),C=Ie(S,2),T=C[0],x=C[1],O=l.icon,N=O===void 0?"More":O,I="".concat(r,"-more-popup"),M="".concat(n,"-dropdown"),F=T!==null?"".concat(I,"-").concat(T):null,k=o==null?void 0:o.dropdownAriaLabel;function B(U,J){U.preventDefault(),U.stopPropagation(),d.onEdit("remove",{key:J,event:U})}var A=p.createElement(ES,{onClick:function(J){var te=J.key,ae=J.domEvent;g(te,ae),w(!1)},prefixCls:"".concat(M,"-menu"),id:I,tabIndex:-1,role:"listbox","aria-activedescendant":F,selectedKeys:[T],"aria-label":k!==void 0?k:"expanded dropdown"},i.map(function(U){var J=U.closable,te=U.disabled,ae=U.closeIcon,K=U.key,Q=U.label,oe=Zq(J,ae,d,te);return p.createElement(u2,{key:K,id:"".concat(I,"-").concat(K),role:"option","aria-controls":r&&"".concat(r,"-panel-").concat(K),disabled:te},p.createElement("span",null,Q),oe&&p.createElement("button",{type:"button","aria-label":m||"remove",tabIndex:0,className:"".concat(M,"-menu-item-remove"),onClick:function(fe){fe.stopPropagation(),B(fe,K)}},ae||d.removeIcon||"×"))}));function P(U){for(var J=i.filter(function(oe){return!oe.disabled}),te=J.findIndex(function(oe){return oe.key===T})||0,ae=J.length,K=0;K<ae;K+=1){te=(te+U+ae)%ae;var Q=J[te];if(!Q.disabled){x(Q.key);return}}}function z(U){var J=U.which;if(!E){[dt.DOWN,dt.SPACE,dt.ENTER].includes(J)&&(w(!0),U.preventDefault());return}switch(J){case dt.UP:P(-1),U.preventDefault();break;case dt.DOWN:P(1),U.preventDefault();break;case dt.ESC:w(!1);break;case dt.SPACE:case dt.ENTER:T!==null&&g(T,U);break}}p.useEffect(function(){var U=document.getElementById(F);U&&U.scrollIntoView&&U.scrollIntoView(!1)},[T]),p.useEffect(function(){E||x(null)},[E]);var L=ee({},h?"marginRight":"marginLeft",f);i.length||(L.visibility="hidden",L.order=1);var V=Te(ee({},"".concat(M,"-rtl"),h)),j=a?null:p.createElement(uCe,Ke({prefixCls:M,overlay:A,visible:i.length?E:!1,onVisibleChange:w,overlayClassName:Te(V,y),mouseEnterDelay:.1,mouseLeaveDelay:.1,getPopupContainer:v},l),p.createElement("button",{type:"button",className:"".concat(n,"-nav-more"),style:L,tabIndex:-1,"aria-hidden":"true","aria-haspopup":"listbox","aria-controls":I,id:"".concat(r,"-more"),"aria-expanded":E,onKeyDown:z},N));return p.createElement("div",{className:Te("".concat(n,"-nav-operations"),u),style:c,ref:t},j,p.createElement($we,{prefixCls:n,locale:o,editable:d}))});const lst=p.memo(sst,function(e,t){return t.tabMoving});var cst=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,f=t.closable,h=t.renderWrapper,m=t.removeAriaLabel,g=t.editable,v=t.onClick,y=t.onFocus,b=t.onBlur,_=t.onKeyDown,E=t.onMouseDown,w=t.onMouseUp,S=t.style,C=t.tabCount,T=t.currentPosition,x="".concat(n,"-tab"),O=Zq(f,u,g,c);function N(B){c||v(B)}function I(B){B.preventDefault(),B.stopPropagation(),g.onEdit("remove",{key:s,event:B})}var M=p.useMemo(function(){return d&&typeof l=="string"?p.createElement("span",null,l):l},[l,d]),F=p.useRef(null);p.useEffect(function(){o&&F.current&&F.current.focus()},[o]);var k=p.createElement("div",{key:s,"data-node-key":Lwe(s),className:Te(x,ee(ee(ee(ee({},"".concat(x,"-with-remove"),O),"".concat(x,"-active"),i),"".concat(x,"-disabled"),c),"".concat(x,"-focus"),o)),style:S,onClick:N},p.createElement("div",{ref:F,role:"tab","aria-selected":i,id:r&&"".concat(r,"-tab-").concat(s),className:"".concat(x,"-btn"),"aria-controls":r&&"".concat(r,"-panel-").concat(s),"aria-disabled":c,tabIndex:c?null:i?0:-1,onClick:function(A){A.stopPropagation(),N(A)},onKeyDown:_,onMouseDown:E,onMouseUp:w,onFocus:y,onBlur:b},o&&p.createElement("div",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},"Tab ".concat(T," of ").concat(C)),d&&p.createElement("span",{className:"".concat(x,"-icon")},d),l&&M),O&&p.createElement("button",{type:"button","aria-label":m||"remove",tabIndex:i?0:-1,className:"".concat(x,"-remove"),onClick:function(A){A.stopPropagation(),I(A)}},u||g.removeIcon||"×"));return h?h(k):k},ust=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]},rb=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]},IR=function(t,n){return t[n?0:1]},oie=p.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,f=e.tabBarGutter,h=e.children,m=e.onTabClick,g=e.onTabScroll,v=e.indicator,y=p.useContext(Z5),b=y.prefixCls,_=y.tabs,E=p.useRef(null),w=p.useRef(null),S=p.useRef(null),C=p.useRef(null),T=p.useRef(null),x=p.useRef(null),O=p.useRef(null),N=d==="top"||d==="bottom",I=Jre(0,function(Pt,rt){N&&g&&g({direction:Pt>rt?"left":"right"})}),M=Ie(I,2),F=M[0],k=M[1],B=Jre(0,function(Pt,rt){!N&&g&&g({direction:Pt>rt?"top":"bottom"})}),A=Ie(B,2),P=A[0],z=A[1],L=p.useState([0,0]),V=Ie(L,2),j=V[0],U=V[1],J=p.useState([0,0]),te=Ie(J,2),ae=te[0],K=te[1],Q=p.useState([0,0]),oe=Ie(Q,2),ge=oe[0],fe=oe[1],ue=p.useState([0,0]),le=Ie(ue,2),ve=le[0],ne=le[1],pe=ist(new Map),be=Ie(pe,2),Re=be[0],Se=be[1],Ce=tst(_,Re,ae[0]),ye=IR(j,N),he=IR(ae,N),_e=IR(ge,N),Oe=IR(ve,N),De=Math.floor(ye)<Math.floor(he+_e),Y=De?ye-Oe:ye-_e,D="".concat(b,"-nav-operations-hidden"),G=0,ie=0;N&&s?(G=0,ie=Math.max(0,he-Y)):(G=Math.min(0,Y-he),ie=0);function me(Pt){return Pt<G?G:Pt>ie?ie:Pt}var se=p.useRef(null),Be=p.useState(),Ve=Ie(Be,2),re=Ve[0],Me=Ve[1];function je(){Me(Date.now())}function ke(){se.current&&clearTimeout(se.current)}rst(C,function(Pt,rt){function Mt(It,xn){It(function(Hn){var R=me(Hn+xn);return R})}return De?(N?Mt(k,Pt):Mt(z,rt),ke(),je(),!0):!1}),p.useEffect(function(){return ke(),re&&(se.current=setTimeout(function(){Me(0)},100)),ke},[re]);var Ge=ost(Ce,Y,N?F:P,he,_e,Oe,W(W({},e),{},{tabs:_})),Ue=Ie(Ge,2),qe=Ue[0],At=Ue[1],at=Yn(function(){var Pt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:a,rt=Ce.get(Pt)||{width:0,height:0,left:0,right:0,top:0};if(N){var Mt=F;s?rt.right<F?Mt=rt.right:rt.right+rt.width>F+Y&&(Mt=rt.right+rt.width-Y):rt.left<-F?Mt=-rt.left:rt.left+rt.width>-F+Y&&(Mt=-(rt.left+rt.width-Y)),z(0),k(me(Mt))}else{var It=P;rt.top<-P?It=-rt.top:rt.top+rt.height>-P+Y&&(It=-(rt.top+rt.height-Y)),k(0),z(me(It))}}),pt=p.useState(),Ct=Ie(pt,2),bt=Ct[0],Vt=Ct[1],Tt=p.useState(!1),Ot=Ie(Tt,2),Ut=Ot[0],ze=Ot[1],Ye=_.filter(function(Pt){return!Pt.disabled}).map(function(Pt){return Pt.key}),He=function(rt){var Mt=Ye.indexOf(bt||a),It=Ye.length,xn=(Mt+rt+It)%It,Hn=Ye[xn];Vt(Hn)},Ze=function(rt){var Mt=rt.code,It=s&&N,xn=Ye[0],Hn=Ye[Ye.length-1];switch(Mt){case"ArrowLeft":{N&&He(It?1:-1);break}case"ArrowRight":{N&&He(It?-1:1);break}case"ArrowUp":{rt.preventDefault(),N||He(-1);break}case"ArrowDown":{rt.preventDefault(),N||He(1);break}case"Home":{rt.preventDefault(),Vt(xn);break}case"End":{rt.preventDefault(),Vt(Hn);break}case"Enter":case"Space":{rt.preventDefault(),m(bt,rt);break}case"Backspace":case"Delete":{var R=Ye.indexOf(bt),$=_.find(function(xe){return xe.key===bt}),Z=Zq($==null?void 0:$.closable,$==null?void 0:$.closeIcon,c,$==null?void 0:$.disabled);Z&&(rt.preventDefault(),rt.stopPropagation(),c.onEdit("remove",{key:bt,event:rt}),R===Ye.length-1?He(-1):He(1));break}}},yt={};N?yt[s?"marginRight":"marginLeft"]=f:yt.marginTop=f;var _t=_.map(function(Pt,rt){var Mt=Pt.key;return p.createElement(cst,{id:i,prefixCls:b,key:Mt,tab:Pt,style:rt===0?void 0:yt,closable:Pt.closable,editable:c,active:Mt===a,focus:Mt===bt,renderWrapper:h,removeAriaLabel:u==null?void 0:u.removeAriaLabel,tabCount:Ye.length,currentPosition:rt+1,onClick:function(xn){m(Mt,xn)},onKeyDown:Ze,onFocus:function(){Ut||Vt(Mt),at(Mt),je(),C.current&&(s||(C.current.scrollLeft=0),C.current.scrollTop=0)},onBlur:function(){Vt(void 0)},onMouseDown:function(){ze(!0)},onMouseUp:function(){ze(!1)}})}),Bt=function(){return Se(function(){var rt,Mt=new Map,It=(rt=T.current)===null||rt===void 0?void 0:rt.getBoundingClientRect();return _.forEach(function(xn){var Hn,R=xn.key,$=(Hn=T.current)===null||Hn===void 0?void 0:Hn.querySelector('[data-node-key="'.concat(Lwe(R),'"]'));if($){var Z=ust($,It),xe=Ie(Z,4),$e=xe[0],et=xe[1],$t=xe[2],pn=xe[3];Mt.set(R,{width:$e,height:et,left:$t,top:pn})}}),Mt})};p.useEffect(function(){Bt()},[_.map(function(Pt){return Pt.key}).join("_")]);var Nt=Dwe(function(){var Pt=rb(E),rt=rb(w),Mt=rb(S);U([Pt[0]-rt[0]-Mt[0],Pt[1]-rt[1]-Mt[1]]);var It=rb(O);fe(It);var xn=rb(x);ne(xn);var Hn=rb(T);K([Hn[0]-It[0],Hn[1]-It[1]]),Bt()}),vt=_.slice(0,qe),ht=_.slice(At+1),kt=[].concat(nt(vt),nt(ht)),Et=Ce.get(a),Yt=est({activeTabOffset:Et,horizontal:N,indicator:v,rtl:s}),ct=Yt.style;p.useEffect(function(){at()},[a,G,ie,rie(Et),rie(Ce),N]),p.useEffect(function(){Nt()},[s]);var Rt=!!kt.length,Ht="".concat(b,"-nav-wrap"),wt,St,jt,Pe;return N?s?(St=F>0,wt=F!==ie):(wt=F<0,St=F!==G):(jt=P<0,Pe=P!==G),p.createElement(Ta,{onResize:Nt},p.createElement("div",{ref:$d(t,E),role:"tablist","aria-orientation":N?"horizontal":"vertical",className:Te("".concat(b,"-nav"),n),style:r,onKeyDown:function(){je()}},p.createElement(iie,{ref:w,position:"left",extra:l,prefixCls:b}),p.createElement(Ta,{onResize:Nt},p.createElement("div",{className:Te(Ht,ee(ee(ee(ee({},"".concat(Ht,"-ping-left"),wt),"".concat(Ht,"-ping-right"),St),"".concat(Ht,"-ping-top"),jt),"".concat(Ht,"-ping-bottom"),Pe)),ref:C},p.createElement(Ta,{onResize:Nt},p.createElement("div",{ref:T,className:"".concat(b,"-nav-list"),style:{transform:"translate(".concat(F,"px, ").concat(P,"px)"),transition:re?"none":void 0}},_t,p.createElement($we,{ref:O,prefixCls:b,locale:u,editable:c,style:W(W({},_t.length===0?void 0:yt),{},{visibility:Rt?"hidden":null})}),p.createElement("div",{className:Te("".concat(b,"-ink-bar"),ee({},"".concat(b,"-ink-bar-animated"),o.inkBar)),style:ct}))))),p.createElement(lst,Ke({},e,{removeAriaLabel:u==null?void 0:u.removeAriaLabel,ref:x,prefixCls:b,tabs:kt,className:!Rt&&D,tabMoving:!!re})),p.createElement(iie,{ref:S,position:"right",extra:l,prefixCls:b})))}),Fwe=p.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 p.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:Te(n,a&&"".concat(n,"-active"),r),ref:t},l)}),dst=["renderTabBar"],fst=["label","key"],pst=function(t){var n=t.renderTabBar,r=Dt(t,dst),i=p.useContext(Z5),o=i.tabs;if(n){var a=W(W({},r),{},{panes:o.map(function(s){var l=s.label,c=s.key,u=Dt(s,fst);return p.createElement(Fwe,Ke({tab:l,key:c,tabKey:c},u))})});return n(a,oie)}return p.createElement(oie,r)},hst=["key","forceRender","style","className","destroyInactiveTabPane"],mst=function(t){var n=t.id,r=t.activeKey,i=t.animated,o=t.tabPosition,a=t.destroyInactiveTabPane,s=p.useContext(Z5),l=s.prefixCls,c=s.tabs,u=i.tabPane,d="".concat(l,"-tabpane");return p.createElement("div",{className:Te("".concat(l,"-content-holder"))},p.createElement("div",{className:Te("".concat(l,"-content"),"".concat(l,"-content-").concat(o),ee({},"".concat(l,"-content-animated"),u))},c.map(function(f){var h=f.key,m=f.forceRender,g=f.style,v=f.className,y=f.destroyInactiveTabPane,b=Dt(f,hst),_=h===r;return p.createElement(ra,Ke({key:h,visible:_,forceRender:m,removeOnLeave:!!(a||y),leavedClassName:"".concat(d,"-hidden")},i.tabPaneMotion),function(E,w){var S=E.style,C=E.className;return p.createElement(Fwe,Ke({},b,{prefixCls:d,id:n,tabKey:h,animated:u,active:_,style:W(W({},g),S),className:Te(v,C),ref:w}))})})))};function gst(){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=W({inkBar:!0},Gt(e)==="object"?e:{}),t.tabPaneMotion&&t.tabPane===void 0&&(t.tabPane=!0),!t.tabPaneMotion&&t.tabPane&&(t.tabPane=!1),t}var vst=["id","prefixCls","className","items","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","more","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll","getPopupContainer","popupClassName","indicator"],aie=0,bst=p.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,f=e.tabPosition,h=f===void 0?"top":f,m=e.tabBarGutter,g=e.tabBarStyle,v=e.tabBarExtraContent,y=e.locale,b=e.more,_=e.destroyInactiveTabPane,E=e.renderTabBar,w=e.onChange,S=e.onTabClick,C=e.onTabScroll,T=e.getPopupContainer,x=e.popupClassName,O=e.indicator,N=Dt(e,vst),I=p.useMemo(function(){return(a||[]).filter(function(ve){return ve&&Gt(ve)==="object"&&"key"in ve})},[a]),M=s==="rtl",F=gst(d),k=p.useState(!1),B=Ie(k,2),A=B[0],P=B[1];p.useEffect(function(){P(M5())},[]);var z=Pn(function(){var ve;return(ve=I[0])===null||ve===void 0?void 0:ve.key},{value:l,defaultValue:c}),L=Ie(z,2),V=L[0],j=L[1],U=p.useState(function(){return I.findIndex(function(ve){return ve.key===V})}),J=Ie(U,2),te=J[0],ae=J[1];p.useEffect(function(){var ve=I.findIndex(function(pe){return pe.key===V});if(ve===-1){var ne;ve=Math.max(0,Math.min(te,I.length-1)),j((ne=I[ve])===null||ne===void 0?void 0:ne.key)}ae(ve)},[I.map(function(ve){return ve.key}).join("_"),V,te]);var K=Pn(null,{value:n}),Q=Ie(K,2),oe=Q[0],ge=Q[1];p.useEffect(function(){n||(ge("rc-tabs-".concat(aie)),aie+=1)},[]);function fe(ve,ne){S==null||S(ve,ne);var pe=ve!==V;j(ve),pe&&(w==null||w(ve))}var ue={id:oe,activeKey:V,animated:F,tabPosition:h,rtl:M,mobile:A},le=W(W({},ue),{},{editable:u,locale:y,more:b,tabBarGutter:m,onTabClick:fe,onTabScroll:C,extra:v,style:g,panes:null,getPopupContainer:T,popupClassName:x,indicator:O});return p.createElement(Z5.Provider,{value:{tabs:I,prefixCls:i}},p.createElement("div",Ke({ref:t,id:n,className:Te(i,"".concat(i,"-").concat(h),ee(ee(ee({},"".concat(i,"-mobile"),A),"".concat(i,"-editable"),u),"".concat(i,"-rtl"),M),o)},N),p.createElement(pst,Ke({},le,{renderTabBar:E})),p.createElement(mst,Ke({destroyInactiveTabPane:_},ue,{animated:F}))))});const yst={motionAppear:!1,motionEnter:!0,motionLeave:!0};function _st(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({},yst),{motionName:Va(e,"switch")})),n}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};function Est(e){return e.filter(t=>t)}function Cst(e,t){if(e)return e;const n=Mo(t).map(r=>{if(p.isValidElement(r)){const{key:i,props:o}=r,a=o||{},{tab:s}=a,l=Sst(a,["tab"]);return Object.assign(Object.assign({key:String(i)},l),{label:s})}return null});return Est(n)}const wst=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}`}}}}},[$f(e,"slide-up"),$f(e,"slide-down")]]},Tst=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:`${Ae(e.lineWidth)} ${e.lineType} ${o}`,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`},[`${t}-tab-active`]:{color:a,background:e.colorBgContainer},[`${t}-tab-focus`]:Object.assign({},Td(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:Ae(i)}}}},[`&${t}-top`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`${Ae(e.borderRadiusLG)} ${Ae(e.borderRadiusLG)} 0 0`},[`${t}-tab-active`]:{borderBottomColor:e.colorBgContainer}}},[`&${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`0 0 ${Ae(e.borderRadiusLG)} ${Ae(e.borderRadiusLG)}`},[`${t}-tab-active`]:{borderTopColor:e.colorBgContainer}}},[`&${t}-left, &${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginTop:Ae(i)}}},[`&${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${Ae(e.borderRadiusLG)} 0 0 ${Ae(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 ${Ae(e.borderRadiusLG)} ${Ae(e.borderRadiusLG)} 0`}},[`${t}-tab-active`]:{borderLeftColor:{_skip_check_:!0,value:e.colorBgContainer}}}}}}},xst=e=>{const{componentCls:t,itemHoverColor:n,dropdownEdgeChildVerticalPadding:r}=e;return{[`${t}-dropdown`]:Object.assign(Object.assign({},gr(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:`${Ae(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({},kl),{display:"flex",alignItems:"center",minWidth:e.tabsDropdownWidth,margin:0,padding:`${Ae(e.paddingXXS)} ${Ae(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"}}})}})}},Ost=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:`${Ae(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:Ae(s(e.lineWidth).mul(-1).equal())},borderLeft:{_skip_check_:!0,value:`${Ae(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:`${Ae(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingRight:{_skip_check_:!0,value:e.paddingLG}}}}}},Rst=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 ${Ae(e.borderRadius)} ${Ae(e.borderRadius)}`}},[`&${t}-top`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`${Ae(e.borderRadius)} ${Ae(e.borderRadius)} 0 0`}},[`&${t}-right`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${Ae(e.borderRadius)} ${Ae(e.borderRadius)} 0`}}},[`&${t}-left`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${Ae(e.borderRadius)} 0 0 ${Ae(e.borderRadius)}`}}}},[`&${t}-large`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:r}}}}}},Ist=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}},Xs(e)),"&:hover":{color:r},[`&${c}-active ${c}-btn`]:{color:s,textShadow:e.tabsActiveTextShadow},[`&${c}-focus ${c}-btn`]:Object.assign({},Td(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}}}},Ast=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:Ae(e.marginSM)}},[`${t}-tab-remove`]:{marginRight:{_skip_check_:!0,value:Ae(e.marginXS)},marginLeft:{_skip_check_:!0,value:Ae(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"}}}}},Nst=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({},gr(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:Ae(e.paddingXS),background:"transparent",border:`${Ae(e.lineWidth)} ${e.lineType} ${s}`,borderRadius:`${Ae(e.borderRadiusLG)} ${Ae(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}},Xs(e,-3))},[`${t}-extra-content`]:{flex:"none"},[`${t}-ink-bar`]:{position:"absolute",background:e.inkBarColor,pointerEvents:"none"}}),Ist(e)),{[`${t}-content`]:{position:"relative",width:"100%"},[`${t}-content-holder`]:{flex:"auto",minWidth:0,minHeight:0},[`${t}-tabpane`]:Object.assign(Object.assign({},Xs(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"}}}}}},Mst=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}},kst=cr("Tabs",e=>{const t=Kn(e,{tabsCardPadding:e.cardPadding,dropdownEdgeChildVerticalPadding:e.paddingXXS,tabsActiveTextShadow:"0 0 0.25px currentcolor",tabsDropdownHeight:200,tabsDropdownWidth:120,tabsHorizontalItemMargin:`0 0 0 ${Ae(e.horizontalItemGutter)}`,tabsHorizontalItemMarginRTL:`0 0 0 ${Ae(e.horizontalItemGutter)}`});return[Rst(t),Ast(t),Ost(t),xst(t),Tst(t),Nst(t),wst(t)]},Mst),Pst=()=>null;var Dst=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 TS=e=>{var t,n,r,i,o,a,s,l,c,u,d;const{type:f,className:h,rootClassName:m,size:g,onEdit:v,hideAdd:y,centered:b,addIcon:_,removeIcon:E,moreIcon:w,more:S,popupClassName:C,children:T,items:x,animated:O,style:N,indicatorSize:I,indicator:M}=e,F=Dst(e,["type","className","rootClassName","size","onEdit","hideAdd","centered","addIcon","removeIcon","moreIcon","more","popupClassName","children","items","animated","style","indicatorSize","indicator"]),{prefixCls:k}=F,{direction:B,tabs:A,getPrefixCls:P,getPopupContainer:z}=p.useContext(Qt),L=P("tabs",k),V=ui(L),[j,U,J]=kst(L,V);let te;f==="editable-card"&&(te={onEdit:(ue,le)=>{let{key:ve,event:ne}=le;v==null||v(ue==="add"?ne:ve,ue)},removeIcon:(t=E??(A==null?void 0:A.removeIcon))!==null&&t!==void 0?t:p.createElement(Yf,null),addIcon:(_??(A==null?void 0:A.addIcon))||p.createElement(g2,null),showAdd:y!==!0});const ae=P(),K=So(g),Q=Cst(x,T),oe=_st(L,O),ge=Object.assign(Object.assign({},A==null?void 0:A.style),N),fe={align:(n=M==null?void 0:M.align)!==null&&n!==void 0?n:(r=A==null?void 0:A.indicator)===null||r===void 0?void 0:r.align,size:(s=(o=(i=M==null?void 0:M.size)!==null&&i!==void 0?i:I)!==null&&o!==void 0?o:(a=A==null?void 0:A.indicator)===null||a===void 0?void 0:a.size)!==null&&s!==void 0?s:A==null?void 0:A.indicatorSize};return j(p.createElement(bst,Object.assign({direction:B,getPopupContainer:z},F,{items:Q,className:Te({[`${L}-${K}`]:K,[`${L}-card`]:["card","editable-card"].includes(f),[`${L}-editable-card`]:f==="editable-card",[`${L}-centered`]:b},A==null?void 0:A.className,h,m,U,J,V),popupClassName:Te(C,U,J,V),style:ge,editable:te,more:Object.assign({icon:(d=(u=(c=(l=A==null?void 0:A.more)===null||l===void 0?void 0:l.icon)!==null&&c!==void 0?c:A==null?void 0:A.moreIcon)!==null&&u!==void 0?u:w)!==null&&d!==void 0?d:p.createElement(Lq,null),transitionName:`${ae}-slide-up`},S),prefixCls:L,animated:oe,indicator:fe})))};TS.TabPane=Pst;var Lst=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 Bwe=e=>{var{prefixCls:t,className:n,hoverable:r=!0}=e,i=Lst(e,["prefixCls","className","hoverable"]);const{getPrefixCls:o}=p.useContext(Qt),a=o("card",t),s=Te(`${a}-grid`,n,{[`${a}-grid-hoverable`]:r});return p.createElement("div",Object.assign({},i,{className:s}))},$st=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 ${Ae(i)}`,color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.headerFontSize,background:e.headerBg,borderBottom:`${Ae(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`,borderRadius:`${Ae(e.borderRadiusLG)} ${Ae(e.borderRadiusLG)} 0 0`},wd()),{"&-wrapper":{width:"100%",display:"flex",alignItems:"center"},"&-title":Object.assign(Object.assign({display:"inline-block",flex:1},kl),{[`
> ${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:`${Ae(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`}}})},Fst=e=>{const{cardPaddingBase:t,colorBorderSecondary:n,cardShadow:r,lineWidth:i}=e;return{width:"33.33%",padding:t,border:0,borderRadius:0,boxShadow:`
${Ae(i)} 0 0 0 ${n},
0 ${Ae(i)} 0 0 ${n},
${Ae(i)} ${Ae(i)} 0 0 ${n},
${Ae(i)} 0 0 0 ${n} inset,
0 ${Ae(i)} 0 0 ${n} inset;
`,transition:`all ${e.motionDurationMid}`,"&-hoverable:hover":{position:"relative",zIndex:1,boxShadow:r}}},Bst=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:`${Ae(e.lineWidth)} ${e.lineType} ${o}`,display:"flex",borderRadius:`0 0 ${Ae(e.borderRadiusLG)} ${Ae(e.borderRadiusLG)}`},wd()),{"& > 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:Ae(e.fontHeight),transition:`color ${e.motionDurationMid}`,"&:hover":{color:e.colorPrimary}},[`> ${n}`]:{fontSize:i,lineHeight:Ae(e.calc(i).mul(e.lineHeight).equal())}},"&:not(:last-child)":{borderInlineEnd:`${Ae(e.lineWidth)} ${e.lineType} ${o}`}}})},jst=e=>Object.assign(Object.assign({margin:`${Ae(e.calc(e.marginXXS).mul(-1).equal())} 0`,display:"flex"},wd()),{"&-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},kl),"&-description":{color:e.colorTextDescription}}),Hst=e=>{const{componentCls:t,colorFillAlter:n,headerPadding:r,bodyPadding:i}=e;return{[`${t}-head`]:{padding:`0 ${Ae(r)}`,background:n,"&-title":{fontSize:e.fontSize}},[`${t}-body`]:{padding:`${Ae(e.padding)} ${Ae(i)}`}}},Ust=e=>{const{componentCls:t}=e;return{overflow:"hidden",[`${t}-body`]:{userSelect:"none"}}},zst=e=>{const{componentCls:t,cardShadow:n,cardHeadPadding:r,colorBorderSecondary:i,boxShadowTertiary:o,bodyPadding:a,extraColor:s}=e;return{[t]:Object.assign(Object.assign({},gr(e)),{position:"relative",background:e.colorBgContainer,borderRadius:e.borderRadiusLG,[`&:not(${t}-bordered)`]:{boxShadow:o},[`${t}-head`]:$st(e),[`${t}-extra`]:{marginInlineStart:"auto",color:s,fontWeight:"normal",fontSize:e.fontSize},[`${t}-body`]:Object.assign({padding:a,borderRadius:`0 0 ${Ae(e.borderRadiusLG)} ${Ae(e.borderRadiusLG)}`},wd()),[`${t}-grid`]:Fst(e),[`${t}-cover`]:{"> *":{display:"block",width:"100%",borderRadius:`${Ae(e.borderRadiusLG)} ${Ae(e.borderRadiusLG)} 0 0`}},[`${t}-actions`]:Bst(e),[`${t}-meta`]:jst(e)}),[`${t}-bordered`]:{border:`${Ae(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:`${Ae(e.borderRadiusLG)} ${Ae(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`]:Hst(e),[`${t}-loading`]:Ust(e),[`${t}-rtl`]:{direction:"rtl"}}},Vst=e=>{const{componentCls:t,bodyPaddingSM:n,headerPaddingSM:r,headerHeightSM:i,headerFontSizeSM:o}=e;return{[`${t}-small`]:{[`> ${t}-head`]:{minHeight:i,padding:`0 ${Ae(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"}}}}},Gst=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}},Wst=cr("Card",e=>{const t=Kn(e,{cardShadow:e.boxShadowCard,cardHeadPadding:e.padding,cardPaddingBase:e.paddingLG,cardActionsIconSize:e.fontSize});return[zst(t),Vst(t)]},Gst);var sie=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 qst=e=>{const{actionClasses:t,actions:n=[],actionStyle:r}=e;return p.createElement("ul",{className:t,style:r},n.map((i,o)=>{const a=`action-${o}`;return p.createElement("li",{style:{width:`${100/n.length}%`},key:a},p.createElement("span",null,i))}))},Yst=p.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:f,type:h,cover:m,actions:g,tabList:v,children:y,activeTabKey:b,defaultActiveTabKey:_,tabBarExtraContent:E,hoverable:w,tabProps:S={},classNames:C,styles:T}=e,x=sie(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:O,direction:N,card:I}=p.useContext(Qt),M=Re=>{var Se;(Se=e.onTabChange)===null||Se===void 0||Se.call(e,Re)},F=Re=>{var Se;return Te((Se=I==null?void 0:I.classNames)===null||Se===void 0?void 0:Se[Re],C==null?void 0:C[Re])},k=Re=>{var Se;return Object.assign(Object.assign({},(Se=I==null?void 0:I.styles)===null||Se===void 0?void 0:Se[Re]),T==null?void 0:T[Re])},B=p.useMemo(()=>{let Re=!1;return p.Children.forEach(y,Se=>{(Se==null?void 0:Se.type)===Bwe&&(Re=!0)}),Re},[y]),A=O("card",n),[P,z,L]=Wst(A),V=p.createElement(Ch,{loading:!0,active:!0,paragraph:{rows:4},title:!1},y),j=b!==void 0,U=Object.assign(Object.assign({},S),{[j?"activeKey":"defaultActiveKey"]:j?b:_,tabBarExtraContent:E});let J;const te=So(f),ae=!te||te==="default"?"large":te,K=v?p.createElement(TS,Object.assign({size:ae},U,{className:`${A}-head-tabs`,onChange:M,items:v.map(Re=>{var{tab:Se}=Re,Ce=sie(Re,["tab"]);return Object.assign({label:Se},Ce)})})):null;if(c||a||K){const Re=Te(`${A}-head`,F("header")),Se=Te(`${A}-head-title`,F("title")),Ce=Te(`${A}-extra`,F("extra")),ye=Object.assign(Object.assign({},s),k("header"));J=p.createElement("div",{className:Re,style:ye},p.createElement("div",{className:`${A}-head-wrapper`},c&&p.createElement("div",{className:Se,style:k("title")},c),a&&p.createElement("div",{className:Ce,style:k("extra")},a)),K)}const Q=Te(`${A}-cover`,F("cover")),oe=m?p.createElement("div",{className:Q,style:k("cover")},m):null,ge=Te(`${A}-body`,F("body")),fe=Object.assign(Object.assign({},l),k("body")),ue=p.createElement("div",{className:ge,style:fe},u?V:y),le=Te(`${A}-actions`,F("actions")),ve=g!=null&&g.length?p.createElement(qst,{actionClasses:le,actionStyle:k("actions"),actions:g}):null,ne=ur(x,["onTabChange"]),pe=Te(A,I==null?void 0:I.className,{[`${A}-loading`]:u,[`${A}-bordered`]:d,[`${A}-hoverable`]:w,[`${A}-contain-grid`]:B,[`${A}-contain-tabs`]:v==null?void 0:v.length,[`${A}-${te}`]:te,[`${A}-type-${h}`]:!!h,[`${A}-rtl`]:N==="rtl"},r,i,z,L),be=Object.assign(Object.assign({},I==null?void 0:I.style),o);return P(p.createElement("div",Object.assign({ref:t},ne,{className:pe,style:be}),J,oe,ue,ve))});var Kst=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 Qst=e=>{const{prefixCls:t,className:n,avatar:r,title:i,description:o}=e,a=Kst(e,["prefixCls","className","avatar","title","description"]),{getPrefixCls:s}=p.useContext(Qt),l=s("card",t),c=Te(`${l}-meta`,n),u=r?p.createElement("div",{className:`${l}-meta-avatar`},r):null,d=i?p.createElement("div",{className:`${l}-meta-title`},i):null,f=o?p.createElement("div",{className:`${l}-meta-description`},o):null,h=d||f?p.createElement("div",{className:`${l}-meta-detail`},d,f):null;return p.createElement("div",Object.assign({},a,{className:c}),u,h)},J5=Yst;J5.Grid=Bwe;J5.Meta=Qst;function Xst(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,f=0;function h(){u&&clearTimeout(u)}function m(v){var y=v||{},b=y.upcomingOnly,_=b===void 0?!1:b;h(),d=!_}function g(){for(var v=arguments.length,y=new Array(v),b=0;b<v;b++)y[b]=arguments[b];var _=this,E=Date.now()-f;if(d)return;function w(){f=Date.now(),t.apply(_,y)}function S(){u=void 0}!s&&c&&!u&&w(),h(),c===void 0&&E>e?s?(f=Date.now(),o||(u=setTimeout(c?S:w,e))):w():o!==!0&&(u=setTimeout(c?S:w,c===void 0?e-E:e))}return g.cancel=m,g}function Zst(e,t,n){var r={},i=r.atBegin,o=i===void 0?!1:i;return Xst(e,t,{debounceMode:o!==!1})}var xS=p.createContext({}),Ty="__rc_cascader_search_mark__",Jst=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())})},elt=function(t,n,r,i){return n.map(function(o){return o[i.label]}).join(" / ")},tlt=function(t,n,r,i,o,a){var s=o.filter,l=s===void 0?Jst:s,c=o.render,u=c===void 0?elt:c,d=o.limit,f=d===void 0?50:d,h=o.sort;return p.useMemo(function(){var m=[];if(!t)return[];function g(v,y){var b=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;v.forEach(function(_){if(!(!h&&f!==!1&&f>0&&m.length>=f)){var E=[].concat(nt(y),[_]),w=_[r.children],S=b||_.disabled;if((!w||w.length===0||a)&&l(t,E,{label:r.label})){var C;m.push(W(W({},_),{},(C={disabled:S},ee(C,r.label,u(t,E,i,r)),ee(C,Ty,E),ee(C,r.children,void 0),C)))}w&&g(_[r.children],E,S)}})}return g(n,[]),h&&m.sort(function(v,y){return h(v[Ty],y[Ty],t,r)}),f!==!1&&f>0?m.slice(0,f):m},[t,n,r,i,u,a,l,h,f])},Jq="__RC_CASCADER_SPLIT__",jwe="SHOW_PARENT",Hwe="SHOW_CHILD";function hd(e){return e.join(Jq)}function b_(e){return e.map(hd)}function nlt(e){return e.split(Jq)}function Uwe(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 kC(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 rlt(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 zwe(e,t){return e.map(function(n){var r;return(r=n[Ty])===null||r===void 0?void 0:r.map(function(i){return i[t.value]})})}function ilt(e){return Array.isArray(e)&&Array.isArray(e[0])}function WM(e){return e?ilt(e)?e:(e.length===0?[]:[e]).map(function(t){return Array.isArray(t)?t:[t]}):[]}function Vwe(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===Hwe?!(l&&l.some(function(c){return c.key&&r.has(c.key)})):!(s&&!s.node.disabled&&r.has(s.key))})}function y_(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,f=e[s],h=(c=i)===null||c===void 0?void 0:c.findIndex(function(g){var v=g[n.value];return r?String(v)===String(f):v===f}),m=h!==-1?(u=i)===null||u===void 0?void 0:u[h]:null;o.push({value:(d=m==null?void 0:m[n.value])!==null&&d!==void 0?d:f,index:h,option:m}),i=m==null?void 0:m[n.children]},s=0;s<e.length;s+=1)a();return o}const olt=function(e,t,n,r,i){return p.useMemo(function(){var o=i||function(a){var s=r?a.slice(-1):a,l=" / ";return s.every(function(c){return["string","number"].includes(Gt(c))})?s.join(l):s.reduce(function(c,u,d){var f=p.isValidElement(u)?p.cloneElement(u,{key:d}):u;return d===0?[f]:[].concat(nt(c),[l,f])},[])};return e.map(function(a){var s,l=y_(a,t,n),c=o(l.map(function(d){var f,h=d.option,m=d.value;return(f=h==null?void 0:h[n.label])!==null&&f!==void 0?f:m}),l.map(function(d){var f=d.option;return f})),u=hd(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 Gwe(e,t){return p.useCallback(function(n){var r=[],i=[];return n.forEach(function(o){var a=y_(o,e,t);a.every(function(s){return s.option})?i.push(o):r.push(o)}),[i,r]},[e,t])}function Sl(e,t){return e[t]}var alt=["children"];function Wwe(e,t){return"".concat(e,"-").concat(t)}function slt(e){return e&&e.type&&e.type.isTreeNode}function v2(e,t){return e??t}function __(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 qwe(e){function t(n){var r=Mo(n);return r.map(function(i){if(!slt(i))return Yr(!i,"Tree/TreeNode can only accept TreeNode as children."),null;var o=i.key,a=i.props,s=a.children,l=Dt(a,alt),c=W({key:o},l),u=t(s);return u.length&&(c.children=u),c}).filter(function(i){return i})}return t(e)}function GL(e,t,n){var r=__(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(f,h){for(var m=Wwe(d?d.pos:"0",h),g=v2(f[o],m),v,y=0;y<i.length;y+=1){var b=i[y];if(f[b]!==void 0){v=f[b];break}}var _=Object.assign(ur(f,[].concat(nt(i),[o,a])),{title:v,key:g,parent:d,pos:m,children:null,data:f,isStart:[].concat(nt(d?d.isStart:[]),[h===0]),isEnd:[].concat(nt(d?d.isEnd:[]),[h===u.length-1])});return l.push(_),t===!0||s.has(g)?_.children=c(f[a]||[],_):_.children=[],_})}return c(e),l}function llt(e,t,n){var r={};Gt(n)==="object"?r=n:r={externalGetKey:n},r=r||{};var i=r,o=i.childrenPropName,a=i.externalGetKey,s=i.fieldNames,l=__(s),c=l.key,u=l.children,d=o||u,f;a?typeof a=="string"?f=function(g){return g[a]}:typeof a=="function"&&(f=function(g){return a(g)}):f=function(g,v){return v2(g[c],v)};function h(m,g,v,y){var b=m?m[d]:e,_=m?Wwe(v.pos,g):"0",E=m?[].concat(nt(y),[m]):[];if(m){var w=f(m,_),S={node:m,index:g,pos:_,key:w,parentPos:v.node?v.pos:null,level:v.level+1,nodes:E};t(S)}b&&b.forEach(function(C,T){h(C,T,{node:m,pos:_,level:v?v.level+1:-1},E)})}h(null)}function b2(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={},f={posEntities:u,keyEntities:d};return n&&(f=n(f)||f),llt(e,function(h){var m=h.node,g=h.index,v=h.pos,y=h.key,b=h.parentPos,_=h.level,E=h.nodes,w={node:m,nodes:E,index:g,key:y,pos:v,level:_},S=v2(y,v);u[v]=w,d[S]=w,w.parent=u[b],w.parent&&(w.parent.children=w.parent.children||[],w.parent.children.push(w)),r&&r(w,f)},{externalGetKey:c,childrenPropName:a,fieldNames:s}),i&&i(f),f}function pw(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=Sl(u,e),f={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 f}function ca(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,f=e.active,h=e.eventKey,m=W(W({},t),{},{expanded:n,selected:r,checked:i,loaded:o,loading:a,halfChecked:s,dragOver:l,dragOverGapTop:c,dragOverGapBottom:u,pos:d,active:f,key:h});return"props"in m||Object.defineProperty(m,"props",{get:function(){return Yr(!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 clt=function(e,t){var n=p.useRef({options:[],info:{keyEntities:{},pathKeyEntities:{}}}),r=p.useCallback(function(){return n.current.options!==e&&(n.current.options=e,n.current.info=b2(e,{fieldNames:t,initWrapper:function(o){return W(W({},o),{},{pathKeyEntities:{}})},processEntity:function(o,a){var s=o.nodes.map(function(l){return l[t.value]}).join(Jq);a.pathKeyEntities[s]=o,o.key=s}})),n.current.info.pathKeyEntities},[t,e]);return r};function Ywe(e,t){var n=p.useMemo(function(){return t||[]},[t]),r=clt(n,e),i=p.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 ult(e){return p.useMemo(function(){if(!e)return[!1,{}];var t={matchInputWidth:!0,limit:50};return e&&Gt(e)==="object"&&(t=W(W({},t),e)),t.limit<=0&&(t.limit=!1),[!0,t]},[e])}function Kwe(e,t){var n=new Set;return e.forEach(function(r){t.has(r)||n.add(r)}),n}function dlt(e){var t=e||{},n=t.disabled,r=t.disableCheckbox,i=t.checkable;return!!(n||r)||i===!1}function flt(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 f=d.key,h=d.node,m=d.children,g=m===void 0?[]:m;i.has(f)&&!r(h)&&g.filter(function(v){return!r(v.node)}).forEach(function(v){i.add(v.key)})})}for(var l=new Set,c=n;c>=0;c-=1){var u=t.get(c)||new Set;u.forEach(function(d){var f=d.parent,h=d.node;if(!(r(h)||!d.parent||l.has(d.parent.key))){if(r(d.parent.node)){l.add(f.key);return}var m=!0,g=!1;(f.children||[]).filter(function(v){return!r(v.node)}).forEach(function(v){var y=v.key,b=i.has(y);m&&!b&&(m=!1),!g&&(b||o.has(y))&&(g=!0)}),m&&i.add(f.key),g&&o.add(f.key),l.add(f.key)}})}return{checkedKeys:Array.from(i),halfCheckedKeys:Array.from(Kwe(o,i))}}function plt(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(f){var h=f.key,m=f.node,g=f.children,v=g===void 0?[]:g;!o.has(h)&&!a.has(h)&&!i(m)&&v.filter(function(y){return!i(y.node)}).forEach(function(y){o.delete(y.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(f){var h=f.parent,m=f.node;if(!(i(m)||!f.parent||c.has(f.parent.key))){if(i(f.parent.node)){c.add(h.key);return}var g=!0,v=!1;(h.children||[]).filter(function(y){return!i(y.node)}).forEach(function(y){var b=y.key,_=o.has(b);g&&!_&&(g=!1),!v&&(_||a.has(b))&&(v=!0)}),g||o.delete(h.key),v&&a.add(h.key),c.add(h.key)}})}return{checkedKeys:Array.from(o),halfCheckedKeys:Array.from(Kwe(a,o))}}function au(e,t,n,r){var i=[],o;r?o=r:o=dlt;var a=new Set(e.filter(function(u){var d=!!Sl(n,u);return d||i.push(u),d})),s=new Map,l=0;Object.keys(n).forEach(function(u){var d=n[u],f=d.level,h=s.get(f);h||(h=new Set,s.set(f,h)),h.add(d),l=Math.max(l,f)}),Yr(!i.length,"Tree missing follow keys: ".concat(i.slice(0,100).map(function(u){return"'".concat(u,"'")}).join(", ")));var c;return t===!0?c=flt(a,s,l,o):c=plt(a,t.halfCheckedKeys,s,l,o),c}function Qwe(e,t,n,r,i,o,a,s){return function(l){if(!e)t(l);else{var c=hd(l),u=b_(n),d=b_(r),f=u.includes(c),h=i.some(function(S){return hd(S)===c}),m=n,g=i;if(h&&!f)g=i.filter(function(S){return hd(S)!==c});else{var v=f?u.filter(function(S){return S!==c}):[].concat(nt(u),[c]),y=o(),b;if(f){var _=au(v,{checked:!1,halfCheckedKeys:d},y);b=_.checkedKeys}else{var E=au(v,!0,y);b=E.checkedKeys}var w=Vwe(b,o,s);m=a(w)}t([].concat(nt(g),nt(m)))}}}function Xwe(e,t,n,r,i){return p.useMemo(function(){var o=i(t),a=Ie(o,2),s=a[0],l=a[1];if(!e||!t.length)return[s,[],l];var c=b_(s),u=n(),d=au(c,!0,u),f=d.checkedKeys,h=d.halfCheckedKeys;return[r(f),r(h),l]},[e,t,n,r,i])}var hlt=p.memo(function(e){var t=e.children;return t},function(e,t){return!t.open});function mlt(e){var t,n=e.prefixCls,r=e.checked,i=e.halfChecked,o=e.disabled,a=e.onClick,s=e.disableCheckbox,l=p.useContext(xS),c=l.checkable,u=typeof c!="boolean"?c:null;return p.createElement("span",{className:Te("".concat(n),(t={},ee(t,"".concat(n,"-checked"),r),ee(t,"".concat(n,"-indeterminate"),!r&&i),ee(t,"".concat(n,"-disabled"),o||s),t)),onClick:a},u)}var Zwe="__cascader_fix_label__";function glt(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,f=e.isSelectable,h=e.disabled,m="".concat(t,"-menu"),g="".concat(t,"-menu-item"),v=p.useContext(xS),y=v.fieldNames,b=v.changeOnSelect,_=v.expandTrigger,E=v.expandIcon,w=v.loadingIcon,S=v.dropdownMenuColumnStyle,C=v.optionRender,T=_==="hover",x=function(I){return h||I},O=p.useMemo(function(){return r.map(function(N){var I,M=N.disabled,F=N.disableCheckbox,k=N[Ty],B=(I=N[Zwe])!==null&&I!==void 0?I:N[y.label],A=N[y.value],P=kC(N,y),z=k?k.map(function(J){return J[y.value]}):[].concat(nt(o),[A]),L=hd(z),V=d.includes(L),j=c.has(L),U=u.has(L);return{disabled:M,label:B,value:A,isLeaf:P,isLoading:V,checked:j,halfChecked:U,option:N,disableCheckbox:F,fullPath:z,fullPathKey:L}})},[r,c,y,u,d,o]);return p.createElement("ul",{className:m,role:"menu"},O.map(function(N){var I,M=N.disabled,F=N.label,k=N.value,B=N.isLeaf,A=N.isLoading,P=N.checked,z=N.halfChecked,L=N.option,V=N.fullPath,j=N.fullPathKey,U=N.disableCheckbox,J=function(){if(!x(M)){var Q=nt(V);T&&B&&Q.pop(),l(Q)}},te=function(){f(L)&&!x(M)&&s(V,B)},ae;return typeof L.title=="string"?ae=L.title:typeof F=="string"&&(ae=F),p.createElement("li",{key:j,className:Te(g,(I={},ee(I,"".concat(g,"-expand"),!B),ee(I,"".concat(g,"-active"),i===k||i===j),ee(I,"".concat(g,"-disabled"),x(M)),ee(I,"".concat(g,"-loading"),A),I)),style:S,role:"menuitemcheckbox",title:ae,"aria-checked":P,"data-path-key":j,onClick:function(){J(),!U&&(!n||B)&&te()},onDoubleClick:function(){b&&a(!1)},onMouseEnter:function(){T&&J()},onMouseDown:function(Q){Q.preventDefault()}},n&&p.createElement(mlt,{prefixCls:"".concat(t,"-checkbox"),checked:P,halfChecked:z,disabled:x(M)||U,disableCheckbox:U,onClick:function(Q){U||(Q.stopPropagation(),te())}}),p.createElement("div",{className:"".concat(g,"-content")},C?C(L):F),!A&&E&&!B&&p.createElement("div",{className:"".concat(g,"-expand-icon")},E),A&&w&&p.createElement("div",{className:"".concat(g,"-loading-icon")},w))}))}var vlt=function(t,n){var r=p.useContext(xS),i=r.values,o=i[0],a=p.useState([]),s=Ie(a,2),l=s[0],c=s[1];return p.useEffect(function(){t||c(o||[])},[n,o]),[l,c]};const blt=function(e,t,n,r,i,o,a){var s=a.direction,l=a.searchValue,c=a.toggleOpen,u=a.open,d=s==="rtl",f=p.useMemo(function(){for(var S=-1,C=t,T=[],x=[],O=r.length,N=zwe(t,n),I=function(A){var P=C.findIndex(function(z,L){return(N[L]?hd(N[L]):z[n.value])===r[A]});if(P===-1)return 1;S=P,T.push(S),x.push(r[A]),C=C[S][n.children]},M=0;M<O&&C&&!I(M);M+=1);for(var F=t,k=0;k<T.length-1;k+=1)F=F[T[k]][n.children];return[x,S,F,N]},[r,n,t]),h=Ie(f,4),m=h[0],g=h[1],v=h[2],y=h[3],b=function(C){i(C)},_=function(C){var T=v.length,x=g;x===-1&&C<0&&(x=T);for(var O=0;O<T;O+=1){x=(x+C+T)%T;var N=v[x];if(N&&!N.disabled){var I=m.slice(0,-1).concat(y[x]?hd(y[x]):N[n.value]);b(I);return}}},E=function(){if(m.length>1){var C=m.slice(0,-1);b(C)}else c(!1)},w=function(){var C,T=((C=v[g])===null||C===void 0?void 0:C[n.children])||[],x=T.find(function(N){return!N.disabled});if(x){var O=[].concat(nt(m),[x[n.value]]);b(O)}};p.useImperativeHandle(e,function(){return{onKeyDown:function(C){var T=C.which;switch(T){case dt.UP:case dt.DOWN:{var x=0;T===dt.UP?x=-1:T===dt.DOWN&&(x=1),x!==0&&_(x);break}case dt.LEFT:{if(l)break;d?w():E();break}case dt.RIGHT:{if(l)break;d?E():w();break}case dt.BACKSPACE:{l||E();break}case dt.ENTER:{if(m.length){var O=v[g],N=(O==null?void 0:O[Ty])||[];N.length?o(N.map(function(I){return I[n.value]}),N[N.length-1]):o(m,v[g])}break}case dt.ESC:c(!1),u&&C.stopPropagation()}},onKeyUp:function(){}}})};var Jwe=p.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,f=e.disabled,h=p.useRef(null),m=u==="rtl",g=p.useContext(xS),v=g.options,y=g.values,b=g.halfValues,_=g.fieldNames,E=g.changeOnSelect,w=g.onSelect,S=g.searchOptions,C=g.dropdownPrefixCls,T=g.loadData,x=g.expandTrigger,O=C||o,N=p.useState([]),I=Ie(N,2),M=I[0],F=I[1],k=function(ve){if(!(!T||s)){var ne=y_(ve,v,_),pe=ne.map(function(Se){var Ce=Se.option;return Ce}),be=pe[pe.length-1];if(be&&!kC(be,_)){var Re=hd(ve);F(function(Se){return[].concat(nt(Se),[Re])}),T(pe)}}};p.useEffect(function(){M.length&&M.forEach(function(le){var ve=nlt(le),ne=y_(ve,v,_,!0).map(function(be){var Re=be.option;return Re}),pe=ne[ne.length-1];(!pe||pe[_.children]||kC(pe,_))&&F(function(be){return be.filter(function(Re){return Re!==le})})})},[v,M,_]);var B=p.useMemo(function(){return new Set(b_(y))},[y]),A=p.useMemo(function(){return new Set(b_(b))},[b]),P=vlt(a,d),z=Ie(P,2),L=z[0],V=z[1],j=function(ve){V(ve),k(ve)},U=function(ve){if(f)return!1;var ne=ve.disabled,pe=kC(ve,_);return!ne&&(pe||E||a)},J=function(ve,ne){var pe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;w(ve),!a&&(ne||E&&(x==="hover"||pe))&&l(!1)},te=p.useMemo(function(){return s?S:v},[s,S,v]),ae=p.useMemo(function(){for(var le=[{options:te}],ve=te,ne=zwe(ve,_),pe=function(){var Se=L[be],Ce=ve.find(function(he,_e){return(ne[_e]?hd(ne[_e]):he[_.value])===Se}),ye=Ce==null?void 0:Ce[_.children];if(!(ye!=null&&ye.length))return 1;ve=ye,le.push({options:ye})},be=0;be<L.length&&!pe();be+=1);return le},[te,L,_]),K=function(ve,ne){U(ne)&&J(ve,kC(ne,_),!0)};blt(t,te,_,L,j,K,{direction:u,searchValue:s,toggleOpen:l,open:d}),p.useEffect(function(){if(!s)for(var le=0;le<L.length;le+=1){var ve,ne=L.slice(0,le+1),pe=hd(ne),be=(ve=h.current)===null||ve===void 0?void 0:ve.querySelector('li[data-path-key="'.concat(pe.replace(/\\{0,2}"/g,'\\"'),'"]'));be&&rlt(be)}},[L,s]);var Q=!((n=ae[0])!==null&&n!==void 0&&(n=n.options)!==null&&n!==void 0&&n.length),oe=[(r={},ee(r,_.value,"__EMPTY__"),ee(r,Zwe,c),ee(r,"disabled",!0),r)],ge=W(W({},e),{},{multiple:!Q&&a,onSelect:J,onActive:j,onToggleOpen:l,checkedSet:B,halfCheckedSet:A,loadingKeys:M,isSelectable:U}),fe=Q?[{options:oe}]:ae,ue=fe.map(function(le,ve){var ne=L.slice(0,ve),pe=L[ve];return p.createElement(glt,Ke({key:ve},ge,{prefixCls:O,options:le.options,prevValuePath:ne,activeValue:pe}))});return p.createElement(hlt,{open:d},p.createElement("div",{className:Te("".concat(O,"-menus"),(i={},ee(i,"".concat(O,"-menu-empty"),Q),ee(i,"".concat(O,"-rtl"),m),i)),ref:h},ue))}),ylt=p.forwardRef(function(e,t){var n=gq();return p.createElement(Jwe,Ke({},e,n,{ref:t}))});function _lt(){}function eTe(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,f=n.changeOnSelect,h=n.onChange,m=n.showCheckedStrategy,g=n.loadData,v=n.expandTrigger,y=n.expandIcon,b=y===void 0?">":y,_=n.loadingIcon,E=n.direction,w=n.notFoundContent,S=w===void 0?"Not Found":w,C=n.disabled,T=!!l,x=Pn(c,{value:u,postState:WM}),O=Ie(x,2),N=O[0],I=O[1],M=p.useMemo(function(){return Uwe(d)},[JSON.stringify(d)]),F=Ywe(M,s),k=Ie(F,3),B=k[0],A=k[1],P=k[2],z=Gwe(B,M),L=Xwe(T,N,A,P,z),V=Ie(L,3),j=V[0],U=V[1],J=V[2],te=Yn(function(fe){if(I(fe),h){var ue=WM(fe),le=ue.map(function(pe){return y_(pe,B,M).map(function(be){return be.option})}),ve=T?ue:ue[0],ne=T?le:le[0];h(ve,ne)}}),ae=Qwe(T,te,j,U,J,A,P,m),K=Yn(function(fe){ae(fe)}),Q=p.useMemo(function(){return{options:B,fieldNames:M,values:j,halfValues:U,changeOnSelect:f,onSelect:K,checkable:l,searchOptions:[],dropdownPrefixCls:void 0,loadData:g,expandTrigger:v,expandIcon:b,loadingIcon:_,dropdownMenuColumnStyle:void 0}},[B,M,j,U,f,K,l,g,v,b,_]),oe="".concat(i,"-panel"),ge=!B.length;return p.createElement(xS.Provider,{value:Q},p.createElement("div",{className:Te(oe,(t={},ee(t,"".concat(oe,"-rtl"),E==="rtl"),ee(t,"".concat(oe,"-empty"),ge),t),a),style:o},ge?S:p.createElement(Jwe,{prefixCls:i,searchValue:"",multiple:T,toggleOpen:_lt,open:!0,direction:E,disabled:C})))}var Slt=["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"],y2=p.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,f=e.autoClearSearchValue,h=f===void 0?!0:f,m=e.searchValue,g=e.onSearch,v=e.showSearch,y=e.expandTrigger,b=e.options,_=e.dropdownPrefixCls,E=e.loadData,w=e.popupVisible,S=e.open,C=e.popupClassName,T=e.dropdownClassName,x=e.dropdownMenuColumnStyle,O=e.dropdownStyle,N=e.popupPlacement,I=e.placement,M=e.onDropdownVisibleChange,F=e.onPopupVisibleChange,k=e.expandIcon,B=k===void 0?">":k,A=e.loadingIcon,P=e.children,z=e.dropdownMatchSelectWidth,L=z===void 0?!1:z,V=e.showCheckedStrategy,j=V===void 0?jwe:V,U=e.optionRender,J=Dt(e,Slt),te=Sq(n),ae=!!d,K=Pn(a,{value:s,postState:WM}),Q=Ie(K,2),oe=Q[0],ge=Q[1],fe=p.useMemo(function(){return Uwe(o)},[JSON.stringify(o)]),ue=Ywe(fe,b),le=Ie(ue,3),ve=le[0],ne=le[1],pe=le[2],be=Pn("",{value:m,postState:function(Tt){return Tt||""}}),Re=Ie(be,2),Se=Re[0],Ce=Re[1],ye=function(Tt,Ot){Ce(Tt),Ot.source!=="blur"&&g&&g(Tt)},he=ult(v),_e=Ie(he,2),Oe=_e[0],De=_e[1],Y=tlt(Se,ve,fe,_||i,De,l||ae),D=Gwe(ve,fe),G=Xwe(ae,oe,ne,pe,D),ie=Ie(G,3),me=ie[0],se=ie[1],Be=ie[2],Ve=p.useMemo(function(){var Vt=b_(me),Tt=Vwe(Vt,ne,j);return[].concat(nt(Be),nt(pe(Tt)))},[me,ne,pe,Be,j]),re=olt(Ve,ve,fe,ae,u),Me=Yn(function(Vt){if(ge(Vt),c){var Tt=WM(Vt),Ot=Tt.map(function(Ye){return y_(Ye,ve,fe).map(function(He){return He.option})}),Ut=ae?Tt:Tt[0],ze=ae?Ot:Ot[0];c(Ut,ze)}}),je=Qwe(ae,Me,me,se,Be,ne,pe,j),ke=Yn(function(Vt){(!ae||h)&&Ce(""),je(Vt)}),Ge=function(Tt,Ot){if(Ot.type==="clear"){Me([]);return}var Ut=Ot.values[0],ze=Ut.valueCells;ke(ze)},Ue=S!==void 0?S:w,qe=T||C,At=I||N,at=function(Tt){M==null||M(Tt),F==null||F(Tt)},pt=p.useMemo(function(){return{options:ve,fieldNames:fe,values:me,halfValues:se,changeOnSelect:l,onSelect:ke,checkable:d,searchOptions:Y,dropdownPrefixCls:_,loadData:E,expandTrigger:y,expandIcon:B,loadingIcon:A,dropdownMenuColumnStyle:x,optionRender:U}},[ve,fe,me,se,l,ke,d,Y,_,E,y,B,A,x,U]),Ct=!(Se?Y:ve).length,bt=Se&&De.matchInputWidth||Ct?{}:{minWidth:"auto"};return p.createElement(xS.Provider,{value:pt},p.createElement(bq,Ke({},J,{ref:t,id:te,prefixCls:i,autoClearSearchValue:h,dropdownMatchSelectWidth:L,dropdownStyle:W(W({},bt),O),displayValues:re,onDisplayValuesChange:Ge,mode:ae?"multiple":void 0,searchValue:Se,onSearch:ye,showSearch:Oe,OptionList:ylt,emptyOptions:Ct,open:Ue,dropdownClassName:qe,placement:At,onDropdownVisibleChange:at,getRawInputElement:function(){return P}})))});y2.SHOW_PARENT=jwe;y2.SHOW_CHILD=Hwe;y2.Panel=eTe;function tTe(e,t){const{getPrefixCls:n,direction:r,renderEmpty:i}=p.useContext(Qt),o=t||r,a=n("select",e),s=n("cascader",e);return[a,s,o,i]}function nTe(e,t){return p.useMemo(()=>t?p.createElement("span",{className:`${e}-checkbox-inner`}):!1,[t])}const rTe=(e,t,n)=>{let r=n;n||(r=t?p.createElement(v_,null):p.createElement(lh,null));const i=p.createElement("span",{className:`${e}-menu-item-loading-icon`},p.createElement(xd,{spin:!0}));return p.useMemo(()=>[r,i],[r])},Elt=e=>{const{checkboxCls:t}=e,n=`${t}-wrapper`;return[{[`${t}-group`]:Object.assign(Object.assign({},gr(e)),{display:"inline-flex",flexWrap:"wrap",columnGap:e.marginXS,[`> ${e.antCls}-row`]:{flex:1}}),[n]:Object.assign(Object.assign({},gr(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({},gr(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({},Td(e))},[`${t}-inner`]:{boxSizing:"border-box",display:"block",width:e.checkboxSize,height:e.checkboxSize,direction:"ltr",backgroundColor:e.colorBgContainer,border:`${Ae(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:`${Ae(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 eD(e,t){const n=Kn(t,{checkboxCls:`.${e}`,checkboxSize:t.controlInteractiveSize});return[Elt(n)]}const iTe=cr("Checkbox",(e,t)=>{let{prefixCls:n}=t;return[eD(n,e)]}),oTe=e=>{const{prefixCls:t,componentCls:n}=e,r=`${n}-menu-item`,i=`
&${r}-expand ${r}-expand-icon,
${r}-loading-icon
`;return[eD(`${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:`${Ae(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},"&-item":Object.assign(Object.assign({},kl),{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}})}}}]},Clt=e=>{const{componentCls:t,antCls:n}=e;return[{[t]:{width:e.controlWidth}},{[`${t}-dropdown`]:[{[`&${n}-select-dropdown`]:{padding:0}},oTe(e)]},{[`${t}-dropdown-rtl`]:{direction:"rtl"}},S0(e)]},aTe=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}},sTe=cr("Cascader",e=>[Clt(e)],aTe),wlt=e=>{const{componentCls:t}=e;return{[`${t}-panel`]:[oTe(e),{display:"inline-flex",border:`${Ae(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}}]}},Tlt=Z_e(["Cascader","Panel"],e=>wlt(e),aTe);function xlt(e){const{prefixCls:t,className:n,multiple:r,rootClassName:i,notFoundContent:o,direction:a,expandIcon:s,disabled:l}=e,c=p.useContext(Vo),u=l??c,[d,f,h,m]=tTe(t,a),g=ui(f),[v,y,b]=sTe(f,g);Tlt(f);const _=h==="rtl",[E,w]=rTe(d,_,s),S=o||(m==null?void 0:m("Cascader"))||p.createElement(_S,{componentName:"Cascader"}),C=nTe(f,r);return v(p.createElement(eTe,Object.assign({},e,{checkable:C,prefixCls:f,className:Te(n,y,i,b,g),notFoundContent:S,direction:h,expandIcon:E,loadingIcon:w,disabled:u})))}var Olt=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:Rlt,SHOW_PARENT:Ilt}=y2;function Alt(e,t,n){const r=e.toLowerCase().split(t).reduce((a,s,l)=>l===0?[s]:[].concat(nt(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=p.createElement("span",{className:`${n}-menu-item-keyword`,key:`separator-${s}`},c)),i.push(c)}),i}const Nlt=(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=Alt(String(l),o,n)),i.push(l)}),i},OS=p.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:f,dropdownClassName:h,expandIcon:m,placement:g,showSearch:v,allowClear:y=!0,notFoundContent:b,direction:_,getPopupContainer:E,status:w,showArrow:S,builtinPlacements:C,style:T,variant:x}=e,O=Olt(e,["prefixCls","size","disabled","className","rootClassName","multiple","bordered","transitionName","choiceTransitionName","popupClassName","dropdownClassName","expandIcon","placement","showSearch","allowClear","notFoundContent","direction","getPopupContainer","status","showArrow","builtinPlacements","style","variant"]),N=ur(O,["suffixIcon"]),{getPopupContainer:I,getPrefixCls:M,popupOverflow:F,cascader:k}=p.useContext(Qt),{status:B,hasFeedback:A,isFormItemInput:P,feedbackIcon:z}=p.useContext(ia),L=wh(B,w),[V,j,U,J]=tTe(r,_),te=U==="rtl",ae=M(),K=ui(V),[Q,oe,ge]=wq(V,K),fe=ui(j),[ue]=sTe(j,fe),{compactSize:le,compactItemClassnames:ve}=Fd(V,_),[ne,pe]=Th("cascader",x,c),be=b||(J==null?void 0:J("Cascader"))||p.createElement(_S,{componentName:"Cascader"}),Re=Te(f||h,`${j}-dropdown`,{[`${j}-dropdown-rtl`]:U==="rtl"},s,K,fe,oe,ge),Se=p.useMemo(()=>{if(!v)return v;let re={render:Nlt};return typeof v=="object"&&(re=Object.assign(Object.assign({},re),v)),re},[v]),Ce=So(re=>{var Me;return(Me=i??le)!==null&&Me!==void 0?Me:re}),ye=p.useContext(Vo),he=o??ye,[_e,Oe]=rTe(V,te,m),De=nTe(j,l),Y=Tq(e.suffixIcon,S),{suffixIcon:D,removeIcon:G,clearIcon:ie}=L5(Object.assign(Object.assign({},e),{hasFeedback:A,feedbackIcon:z,showSuffixIcon:Y,multiple:l,prefixCls:V,componentName:"Cascader"})),me=p.useMemo(()=>g!==void 0?g:te?"bottomRight":"bottomLeft",[g,te]),se=y===!0?{clearIcon:ie}:y,[Be]=Ou("SelectLike",(n=N.dropdownStyle)===null||n===void 0?void 0:n.zIndex),Ve=p.createElement(y2,Object.assign({prefixCls:V,className:Te(!r&&j,{[`${V}-lg`]:Ce==="large",[`${V}-sm`]:Ce==="small",[`${V}-rtl`]:te,[`${V}-${ne}`]:pe,[`${V}-in-form-item`]:P},Id(V,L,A),ve,k==null?void 0:k.className,a,s,K,fe,oe,ge),disabled:he,style:Object.assign(Object.assign({},k==null?void 0:k.style),T)},N,{builtinPlacements:Cq(C,F),direction:U,placement:me,notFoundContent:be,allowClear:se,showSearch:Se,expandIcon:_e,suffixIcon:D,removeIcon:G,loadingIcon:Oe,checkable:De,dropdownClassName:Re,dropdownPrefixCls:r||j,dropdownStyle:Object.assign(Object.assign({},N.dropdownStyle),{zIndex:Be}),choiceTransitionName:Va(ae,"",d),transitionName:Va(ae,"slide-up",u),getPopupContainer:E||I,ref:t}));return ue(Q(Ve))}),Mlt=Ig(OS,"dropdownAlign",e=>ur(e,["visible"]));OS.SHOW_PARENT=Ilt;OS.SHOW_CHILD=Rlt;OS.Panel=xlt;OS._InternalPanelDoNotUseOrYouWillBeFired=Mlt;const lTe=ce.createContext(null);var klt=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 Plt=(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:f}=e,h=klt(e,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:m,direction:g,checkbox:v}=p.useContext(Qt),y=p.useContext(lTe),{isFormItemInput:b}=p.useContext(ia),_=p.useContext(Vo),E=(n=(y==null?void 0:y.disabled)||f)!==null&&n!==void 0?n:_,w=p.useRef(h.value),S=p.useRef(null),C=oa(t,S);p.useEffect(()=>{y==null||y.registerValue(h.value)},[]),p.useEffect(()=>{if(!d)return h.value!==w.current&&(y==null||y.cancelValue(w.current),y==null||y.registerValue(h.value),w.current=h.value),()=>y==null?void 0:y.cancelValue(h.value)},[h.value]),p.useEffect(()=>{var P;!((P=S.current)===null||P===void 0)&&P.input&&(S.current.input.indeterminate=s)},[s]);const T=m("checkbox",r),x=ui(T),[O,N,I]=iTe(T,x),M=Object.assign({},h);y&&!d&&(M.onChange=function(){h.onChange&&h.onChange.apply(h,arguments),y.toggleOption&&y.toggleOption({label:a,value:h.value})},M.name=y.name,M.checked=y.value.includes(h.value));const F=Te(`${T}-wrapper`,{[`${T}-rtl`]:g==="rtl",[`${T}-wrapper-checked`]:M.checked,[`${T}-wrapper-disabled`]:E,[`${T}-wrapper-in-form-item`]:b},v==null?void 0:v.className,i,o,I,x,N),k=Te({[`${T}-indeterminate`]:s},g5,N),[B,A]=Owe(M.onClick);return O(p.createElement(t2,{component:"Checkbox",disabled:E},p.createElement("label",{className:F,style:Object.assign(Object.assign({},v==null?void 0:v.style),l),onMouseEnter:c,onMouseLeave:u,onClick:B},p.createElement(xwe,Object.assign({},M,{onClick:A,prefixCls:T,className:k,disabled:E,ref:C})),a!==void 0&&p.createElement("span",null,a))))},cTe=p.forwardRef(Plt);var Dlt=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 Llt=p.forwardRef((e,t)=>{const{defaultValue:n,children:r,options:i=[],prefixCls:o,className:a,rootClassName:s,style:l,onChange:c}=e,u=Dlt(e,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:d,direction:f}=p.useContext(Qt),[h,m]=p.useState(u.value||n||[]),[g,v]=p.useState([]);p.useEffect(()=>{"value"in u&&m(u.value||[])},[u.value]);const y=p.useMemo(()=>i.map(k=>typeof k=="string"||typeof k=="number"?{label:k,value:k}:k),[i]),b=k=>{v(B=>B.filter(A=>A!==k))},_=k=>{v(B=>[].concat(nt(B),[k]))},E=k=>{const B=h.indexOf(k.value),A=nt(h);B===-1?A.push(k.value):A.splice(B,1),"value"in u||m(A),c==null||c(A.filter(P=>g.includes(P)).sort((P,z)=>{const L=y.findIndex(j=>j.value===P),V=y.findIndex(j=>j.value===z);return L-V}))},w=d("checkbox",o),S=`${w}-group`,C=ui(w),[T,x,O]=iTe(w,C),N=ur(u,["value","disabled"]),I=i.length?y.map(k=>p.createElement(cTe,{prefixCls:w,key:k.value.toString(),disabled:"disabled"in k?k.disabled:u.disabled,value:k.value,checked:h.includes(k.value),onChange:k.onChange,className:`${S}-item`,style:k.style,title:k.title,id:k.id,required:k.required},k.label)):r,M={toggleOption:E,value:h,disabled:u.disabled,name:u.name,registerValue:_,cancelValue:b},F=Te(S,{[`${S}-rtl`]:f==="rtl"},a,s,O,C,x);return T(p.createElement("div",Object.assign({className:F,style:l},N,{ref:t}),p.createElement(lTe.Provider,{value:M},I)))}),uh=cTe;uh.Group=Llt;uh.__ANT_CHECKBOX=!0;const uTe=p.createContext({});var $lt=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 lie(e){return typeof e=="number"?`${e} ${e} auto`:/^\d+(\.\d+)?(px|em|rem|%)$/.test(e)?`0 0 ${e}`:e}const Flt=["xs","sm","md","lg","xl","xxl"],Uv=p.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r}=p.useContext(Qt),{gutter:i,wrap:o}=p.useContext(uTe),{prefixCls:a,span:s,order:l,offset:c,push:u,pull:d,className:f,children:h,flex:m,style:g}=e,v=$lt(e,["prefixCls","span","order","offset","push","pull","className","children","flex","style"]),y=n("col",a),[b,_,E]=JJe(y),w={};let S={};Flt.forEach(x=>{let O={};const N=e[x];typeof N=="number"?O.span=N:typeof N=="object"&&(O=N||{}),delete v[x],S=Object.assign(Object.assign({},S),{[`${y}-${x}-${O.span}`]:O.span!==void 0,[`${y}-${x}-order-${O.order}`]:O.order||O.order===0,[`${y}-${x}-offset-${O.offset}`]:O.offset||O.offset===0,[`${y}-${x}-push-${O.push}`]:O.push||O.push===0,[`${y}-${x}-pull-${O.pull}`]:O.pull||O.pull===0,[`${y}-rtl`]:r==="rtl"}),O.flex&&(S[`${y}-${x}-flex`]=!0,w[`--${y}-${x}-flex`]=lie(O.flex))});const C=Te(y,{[`${y}-${s}`]:s!==void 0,[`${y}-order-${l}`]:l,[`${y}-offset-${c}`]:c,[`${y}-push-${u}`]:u,[`${y}-pull-${d}`]:d},f,S,_,E),T={};if(i&&i[0]>0){const x=i[0]/2;T.paddingLeft=x,T.paddingRight=x}return m&&(T.flex=lie(m),o===!1&&!T.minWidth&&(T.minWidth=0)),b(p.createElement("div",Object.assign({},v,{style:Object.assign(Object.assign(Object.assign({},T),g),w),className:C,ref:t}),h))});var Blt=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 cie(e,t){const[n,r]=p.useState(typeof e=="string"?e:""),i=()=>{if(typeof e=="string"&&r(e),typeof e=="object")for(let o=0;o<mg.length;o++){const a=mg[o];if(!t[a])continue;const s=e[a];if(s!==void 0){r(s);return}}};return p.useEffect(()=>{i()},[JSON.stringify(e),t]),n}const _2=p.forwardRef((e,t)=>{const{prefixCls:n,justify:r,align:i,className:o,style:a,children:s,gutter:l=0,wrap:c}=e,u=Blt(e,["prefixCls","justify","align","className","style","children","gutter","wrap"]),{getPrefixCls:d,direction:f}=p.useContext(Qt),[h,m]=p.useState({xs:!0,sm:!0,md:!0,lg:!0,xl:!0,xxl:!0}),[g,v]=p.useState({xs:!1,sm:!1,md:!1,lg:!1,xl:!1,xxl:!1}),y=cie(i,g),b=cie(r,g),_=p.useRef(l),E=XEe();p.useEffect(()=>{const A=E.subscribe(P=>{v(P);const z=_.current||0;(!Array.isArray(z)&&typeof z=="object"||Array.isArray(z)&&(typeof z[0]=="object"||typeof z[1]=="object"))&&m(P)});return()=>E.unsubscribe(A)},[]);const w=()=>{const A=[void 0,void 0];return(Array.isArray(l)?l:[l,void 0]).forEach((z,L)=>{if(typeof z=="object")for(let V=0;V<mg.length;V++){const j=mg[V];if(h[j]&&z[j]!==void 0){A[L]=z[j];break}}else A[L]=z}),A},S=d("row",n),[C,T,x]=ZJe(S),O=w(),N=Te(S,{[`${S}-no-wrap`]:c===!1,[`${S}-${b}`]:b,[`${S}-${y}`]:y,[`${S}-rtl`]:f==="rtl"},o,T,x),I={},M=O[0]!=null&&O[0]>0?O[0]/-2:void 0;M&&(I.marginLeft=M,I.marginRight=M);const[F,k]=O;I.rowGap=k;const B=p.useMemo(()=>({gutter:[F,k],wrap:c}),[F,k,c]);return C(p.createElement(uTe.Provider,{value:B},p.createElement("div",Object.assign({},u,{className:N,style:Object.assign(Object.assign({},I),a),ref:t}),s)))}),jlt=e=>{const{componentCls:t,sizePaddingEdgeHorizontal:n,colorSplit:r,lineWidth:i,textPaddingInline:o,orientationMargin:a,verticalMarginInline:s}=e;return{[t]:Object.assign(Object.assign({},gr(e)),{borderBlockStart:`${Ae(i)} solid ${r}`,"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",marginInline:s,marginBlock:0,verticalAlign:"middle",borderTop:0,borderInlineStart:`${Ae(i)} solid ${r}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${Ae(e.dividerHorizontalGutterMargin)} 0`},[`&-horizontal${t}-with-text`]:{display:"flex",alignItems:"center",margin:`${Ae(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:`${Ae(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:`${Ae(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:`${Ae(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}}})}},Hlt=e=>({textPaddingInline:"1em",orientationMargin:.05,verticalMarginInline:e.marginXS}),Ult=cr("Divider",e=>{const t=Kn(e,{dividerHorizontalWithTextGutterMargin:e.margin,dividerHorizontalGutterMargin:e.marginLG,sizePaddingEdgeHorizontal:0});return[jlt(t)]},Hlt,{unitless:{orientationMargin:!0}});var zlt=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 Vlt=e=>{const{getPrefixCls:t,direction:n,divider:r}=p.useContext(Qt),{prefixCls:i,type:o="horizontal",orientation:a="center",orientationMargin:s,className:l,rootClassName:c,children:u,dashed:d,variant:f="solid",plain:h,style:m}=e,g=zlt(e,["prefixCls","type","orientation","orientationMargin","className","rootClassName","children","dashed","variant","plain","style"]),v=t("divider",i),[y,b,_]=Ult(v),E=!!u,w=a==="left"&&s!=null,S=a==="right"&&s!=null,C=Te(v,r==null?void 0:r.className,b,_,`${v}-${o}`,{[`${v}-with-text`]:E,[`${v}-with-text-${a}`]:E,[`${v}-dashed`]:!!d,[`${v}-${f}`]:f!=="solid",[`${v}-plain`]:!!h,[`${v}-rtl`]:n==="rtl",[`${v}-no-default-orientation-margin-left`]:w,[`${v}-no-default-orientation-margin-right`]:S},l,c),T=p.useMemo(()=>typeof s=="number"?s:/^\d+$/.test(s)?Number(s):s,[s]),x=Object.assign(Object.assign({},w&&{marginLeft:T}),S&&{marginRight:T});return y(p.createElement("div",Object.assign({className:C,style:Object.assign(Object.assign({},r==null?void 0:r.style),m)},g,{role:"separator"}),u&&o!=="vertical"&&p.createElement("span",{className:`${v}-inner-text`,style:x},u)))};var uie=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}},Qd=function(t){return t!==void 0?"".concat(t,"px"):void 0};function Glt(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=p.useRef(null),f=p.useState(r),h=Ie(f,2),m=h[0],g=h[1],v=function(k){var B,A=i(k),P=(B=n.current)===null||B===void 0?void 0:B.querySelectorAll(".".concat(t,"-item"))[A];return(P==null?void 0:P.offsetParent)&&P},y=p.useState(null),b=Ie(y,2),_=b[0],E=b[1],w=p.useState(null),S=Ie(w,2),C=S[0],T=S[1];sr(function(){if(m!==r){var F=v(m),k=v(r),B=uie(F,u),A=uie(k,u);g(r),E(B),T(A),F&&k?a():s()}},[r]);var x=p.useMemo(function(){if(u){var F;return Qd((F=_==null?void 0:_.top)!==null&&F!==void 0?F:0)}return Qd(l==="rtl"?-(_==null?void 0:_.right):_==null?void 0:_.left)},[u,l,_]),O=p.useMemo(function(){if(u){var F;return Qd((F=C==null?void 0:C.top)!==null&&F!==void 0?F:0)}return Qd(l==="rtl"?-(C==null?void 0:C.right):C==null?void 0:C.left)},[u,l,C]),N=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)"}},I=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)"}},M=function(){E(null),T(null),s()};return!_||!C?null:p.createElement(ra,{visible:!0,motionName:o,motionAppear:!0,onAppearStart:N,onAppearActive:I,onVisibleChanged:M},function(F,k){var B=F.className,A=F.style,P=W(W({},A),{},{"--thumb-start-left":x,"--thumb-start-width":Qd(_==null?void 0:_.width),"--thumb-active-left":O,"--thumb-active-width":Qd(C==null?void 0:C.width),"--thumb-start-top":x,"--thumb-start-height":Qd(_==null?void 0:_.height),"--thumb-active-top":O,"--thumb-active-height":Qd(C==null?void 0:C.height)}),z={ref:oa(d,k),style:P,className:Te("".concat(t,"-thumb"),B)};return p.createElement("div",z)})}var Wlt=["prefixCls","direction","vertical","options","disabled","defaultValue","value","name","onChange","className","motionName"];function qlt(e){if(typeof e.title<"u")return e.title;if(Gt(e.label)!=="object"){var t;return(t=e.label)===null||t===void 0?void 0:t.toString()}}function Ylt(e){return e.map(function(t){if(Gt(t)==="object"&&t!==null){var n=qlt(t);return W(W({},t),{},{title:n})}return{label:t==null?void 0:t.toString(),title:t==null?void 0:t.toString(),value:t}})}var Klt=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,f=t.onBlur,h=t.onKeyDown,m=t.onKeyUp,g=t.onMouseDown,v=function(b){i||u(b,l)};return p.createElement("label",{className:Te(r,ee({},"".concat(n,"-item-disabled"),i)),onMouseDown:g},p.createElement("input",{name:c,className:"".concat(n,"-item-input"),type:"radio",disabled:i,checked:o,onChange:v,onFocus:d,onBlur:f,onKeyDown:h,onKeyUp:m}),p.createElement("div",{className:"".concat(n,"-item-label"),title:s,"aria-selected":o},a))},Qlt=p.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,f=e.value,h=e.name,m=e.onChange,g=e.className,v=g===void 0?"":g,y=e.motionName,b=y===void 0?"thumb-motion":y,_=Dt(e,Wlt),E=p.useRef(null),w=p.useMemo(function(){return oa(E,t)},[E,t]),S=p.useMemo(function(){return Ylt(c)},[c]),C=Pn((n=S[0])===null||n===void 0?void 0:n.value,{value:f,defaultValue:d}),T=Ie(C,2),x=T[0],O=T[1],N=p.useState(!1),I=Ie(N,2),M=I[0],F=I[1],k=function(ue,le){O(le),m==null||m(le)},B=ur(_,["children"]),A=p.useState(!1),P=Ie(A,2),z=P[0],L=P[1],V=p.useState(!1),j=Ie(V,2),U=j[0],J=j[1],te=function(){J(!0)},ae=function(){J(!1)},K=function(){L(!1)},Q=function(ue){ue.key==="Tab"&&L(!0)},oe=function(ue){var le=S.findIndex(function(be){return be.value===x}),ve=S.length,ne=(le+ue+ve)%ve,pe=S[ne];pe&&(O(pe.value),m==null||m(pe.value))},ge=function(ue){switch(ue.key){case"ArrowLeft":case"ArrowUp":oe(-1);break;case"ArrowRight":case"ArrowDown":oe(1);break}};return p.createElement("div",Ke({role:"radiogroup","aria-label":"segmented control",tabIndex:u?void 0:0},B,{className:Te(o,(r={},ee(r,"".concat(o,"-rtl"),a==="rtl"),ee(r,"".concat(o,"-disabled"),u),ee(r,"".concat(o,"-vertical"),s),r),v),ref:w}),p.createElement("div",{className:"".concat(o,"-group")},p.createElement(Glt,{vertical:s,prefixCls:o,value:x,containerRef:E,motionName:"".concat(o,"-").concat(b),direction:a,getValueIndex:function(ue){return S.findIndex(function(le){return le.value===ue})},onMotionStart:function(){F(!0)},onMotionEnd:function(){F(!1)}}),S.map(function(fe){var ue;return p.createElement(Klt,Ke({},fe,{name:h,key:fe.value,prefixCls:o,className:Te(fe.className,"".concat(o,"-item"),(ue={},ee(ue,"".concat(o,"-item-selected"),fe.value===x&&!M),ee(ue,"".concat(o,"-item-focused"),U&&z&&fe.value===x),ue)),checked:fe.value===x,onChange:k,onFocus:te,onBlur:ae,onKeyDown:ge,onKeyUp:Q,onMouseDown:K,disabled:!!u||!!fe.disabled}))})))}),Xlt=Qlt;function die(e,t){return{[`${e}, ${e}:hover, ${e}:focus`]:{color:t.colorTextDisabled,cursor:"not-allowed"}}}function fie(e){return{backgroundColor:e.itemSelectedBg,boxShadow:e.boxShadowTertiary}}const Zlt=Object.assign({overflow:"hidden"},kl),Jlt=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({},gr(e)),{display:"inline-block",padding:e.trackPadding,color:e.itemColor,background:e.trackBg,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`}),Xs(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 ${Ae(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({},fie(e)),{color:e.itemSelectedColor}),"&-focused":Object.assign({},Td(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:Ae(n),padding:`0 ${Ae(e.segmentedPaddingHorizontal)}`},Zlt),"&-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({},fie(e)),{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:0,height:"100%",padding:`${Ae(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:Ae(r),padding:`0 ${Ae(e.segmentedPaddingHorizontal)}`,fontSize:e.fontSizeLG},[`${t}-item, ${t}-thumb`]:{borderRadius:e.borderRadius}},[`&${t}-sm`]:{borderRadius:e.borderRadiusSM,[`${t}-item-label`]:{minHeight:i,lineHeight:Ae(i),padding:`0 ${Ae(e.segmentedPaddingHorizontalSM)}`},[`${t}-item, ${t}-thumb`]:{borderRadius:e.borderRadiusXS}}}),die(`&-disabled ${t}-item`,e)),die(`${t}-item-disabled`,e)),{[`${t}-thumb-motion-appear-active`]:{transition:`transform ${e.motionDurationSlow} ${e.motionEaseInOut}, width ${e.motionDurationSlow} ${e.motionEaseInOut}`,willChange:"transform, width"}})}},ect=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}},tct=cr("Segmented",e=>{const{lineWidth:t,calc:n}=e,r=Kn(e,{segmentedPaddingHorizontal:n(e.controlPaddingHorizontal).sub(t).equal(),segmentedPaddingHorizontalSM:n(e.controlPaddingHorizontalSM).sub(t).equal()});return[Jlt(r)]},ect);var pie=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 nct(e){return typeof e=="object"&&!!(e!=null&&e.icon)}const rct=p.forwardRef((e,t)=>{const n=R5(),{prefixCls:r,className:i,rootClassName:o,block:a,options:s=[],size:l="middle",style:c,vertical:u,name:d=n}=e,f=pie(e,["prefixCls","className","rootClassName","block","options","size","style","vertical","name"]),{getPrefixCls:h,direction:m,segmented:g}=p.useContext(Qt),v=h("segmented",r),[y,b,_]=tct(v),E=So(l),w=p.useMemo(()=>s.map(T=>{if(nct(T)){const{icon:x,label:O}=T,N=pie(T,["icon","label"]);return Object.assign(Object.assign({},N),{label:p.createElement(p.Fragment,null,p.createElement("span",{className:`${v}-item-icon`},x),O&&p.createElement("span",null,O))})}return T}),[s,v]),S=Te(i,o,g==null?void 0:g.className,{[`${v}-block`]:a,[`${v}-sm`]:E==="small",[`${v}-lg`]:E==="large",[`${v}-vertical`]:u},b,_),C=Object.assign(Object.assign({},g==null?void 0:g.style),c);return y(p.createElement(Xlt,Object.assign({},f,{name:d,className:S,style:C,options:w,ref:t,prefixCls:v,direction:m,vertical:u})))}),dTe=rct,fTe=ce.createContext({}),pTe=ce.createContext({}),hTe=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=Ns(o);a.cleared=!0,r(a)}};return ce.createElement("div",{className:`${t}-clear`,onClick:i})};var rg;(function(e){e.hex="hex",e.rgb="rgb",e.hsb="hsb"})(rg||(rg={}));var ict={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"},oct=function(t,n){return p.createElement(Nn,Ke({},t,{ref:n,icon:ict}))},act=p.forwardRef(oct);function $H(){return typeof BigInt=="function"}function mTe(e){return!e&&e!==0&&!Number.isNaN(e)||!String(e).trim()}function dv(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 eY(e){var t=String(e);return!Number.isNaN(Number(t))&&t.includes("e")}function H1(e){var t=String(e);if(eY(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(".")&&tY(t)?t.length-t.indexOf(".")-1:0}function tD(e){var t=String(e);if(eY(e)){if(e>Number.MAX_SAFE_INTEGER)return String($H()?BigInt(e).toString():Number.MAX_SAFE_INTEGER);if(e<Number.MIN_SAFE_INTEGER)return String($H()?BigInt(e).toString():Number.MIN_SAFE_INTEGER);t=e.toFixed(H1(t))}return dv(t).fullStr}function tY(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 sct=function(){function e(t){if(Kr(this,e),ee(this,"origin",""),ee(this,"negative",void 0),ee(this,"integer",void 0),ee(this,"decimal",void 0),ee(this,"decimalLen",void 0),ee(this,"empty",void 0),ee(this,"nan",void 0),mTe(t)){this.empty=!0;return}if(this.origin=String(t),t==="-"||Number.isNaN(t)){this.nan=!0;return}var n=t;if(eY(n)&&(n=Number(n)),n=typeof n=="string"?n:tD(n),tY(n)){var r=dv(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 Qr(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=dv(l),d=u.negativeStr,f=u.trimStr,h="".concat(d).concat(f.padStart(c+1,"0"));return new e("".concat(h.slice(0,-c),".").concat(h.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()?"":dv("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr:this.origin}}]),e}(),lct=function(){function e(t){if(Kr(this,e),ee(this,"origin",""),ee(this,"number",void 0),ee(this,"empty",void 0),mTe(t)){this.empty=!0;return}this.origin=String(t),this.number=Number(t)}return Qr(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(H1(this.number),H1(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(H1(this.number),H1(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()?"":tD(this.number):this.origin}}]),e}();function Vu(e){return $H()?new sct(e):new lct(e)}function LA(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(e==="")return"";var i=dv(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=Vu(e).add("".concat(o,"0.").concat("0".repeat(n)).concat(10-u));return LA(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 cct(e){return!!(e.addonBefore||e.addonAfter)}function uct(e){return!!(e.prefix||e.suffix||e.allowClear)}function hie(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 qM(e,t,n,r){if(n){var i=t;if(t.type==="click"){i=hie(t,e,""),n(i);return}if(e.type!=="file"&&r!==void 0){i=hie(t,e,r),n(i);return}n(i)}}function nY(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 rY=ce.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,f=e.className,h=e.style,m=e.disabled,g=e.readOnly,v=e.focused,y=e.triggerFocus,b=e.allowClear,_=e.value,E=e.handleReset,w=e.hidden,S=e.classes,C=e.classNames,T=e.dataAttrs,x=e.styles,O=e.components,N=e.onClear,I=a??o,M=(O==null?void 0:O.affixWrapper)||"span",F=(O==null?void 0:O.groupWrapper)||"span",k=(O==null?void 0:O.wrapper)||"span",B=(O==null?void 0:O.groupAddon)||"span",A=p.useRef(null),P=function(ne){var pe;(pe=A.current)!==null&&pe!==void 0&&pe.contains(ne.target)&&(y==null||y())},z=uct(e),L=p.cloneElement(I,{value:_,className:Te((n=I.props)===null||n===void 0?void 0:n.className,!z&&(C==null?void 0:C.variant))||null}),V=p.useRef(null);if(ce.useImperativeHandle(t,function(){return{nativeElement:V.current||A.current}}),z){var j=null;if(b){var U=!m&&!g&&_,J="".concat(s,"-clear-icon"),te=Gt(b)==="object"&&b!==null&&b!==void 0&&b.clearIcon?b.clearIcon:"✖";j=ce.createElement("button",{type:"button",onClick:function(ne){E==null||E(ne),N==null||N()},onMouseDown:function(ne){return ne.preventDefault()},className:Te(J,ee(ee({},"".concat(J,"-hidden"),!U),"".concat(J,"-has-suffix"),!!c))},te)}var ae="".concat(s,"-affix-wrapper"),K=Te(ae,ee(ee(ee(ee(ee({},"".concat(s,"-disabled"),m),"".concat(ae,"-disabled"),m),"".concat(ae,"-focused"),v),"".concat(ae,"-readonly"),g),"".concat(ae,"-input-with-clear-btn"),c&&b&&_),S==null?void 0:S.affixWrapper,C==null?void 0:C.affixWrapper,C==null?void 0:C.variant),Q=(c||b)&&ce.createElement("span",{className:Te("".concat(s,"-suffix"),C==null?void 0:C.suffix),style:x==null?void 0:x.suffix},j,c);L=ce.createElement(M,Ke({className:K,style:x==null?void 0:x.affixWrapper,onClick:P},T==null?void 0:T.affixWrapper,{ref:A}),l&&ce.createElement("span",{className:Te("".concat(s,"-prefix"),C==null?void 0:C.prefix),style:x==null?void 0:x.prefix},l),L,Q)}if(cct(e)){var oe="".concat(s,"-group"),ge="".concat(oe,"-addon"),fe="".concat(oe,"-wrapper"),ue=Te("".concat(s,"-wrapper"),oe,S==null?void 0:S.wrapper,C==null?void 0:C.wrapper),le=Te(fe,ee({},"".concat(fe,"-disabled"),m),S==null?void 0:S.group,C==null?void 0:C.groupWrapper);L=ce.createElement(F,{className:le,ref:V},ce.createElement(k,{className:ue},u&&ce.createElement(B,{className:ge},u),L,d&&ce.createElement(B,{className:ge},d)))}return ce.cloneElement(L,{className:Te((r=L.props)===null||r===void 0?void 0:r.className,f)||null,style:W(W({},(i=L.props)===null||i===void 0?void 0:i.style),h),hidden:w})}),dct=["show"];function gTe(e,t){return p.useMemo(function(){var n={};t&&(n.show=Gt(t)==="object"&&t.formatter?t.formatter:!!t),n=W(W({},n),e);var r=n,i=r.show,o=Dt(r,dct);return W(W({},o),{},{show:!!i,showFormatter:typeof i=="function"?i:void 0,strategy:o.strategy||function(a){return a.length}})},[e,t])}var fct=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","onKeyUp","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","count","type","classes","classNames","styles","onCompositionStart","onCompositionEnd"],pct=p.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,f=e.htmlSize,h=e.className,m=e.maxLength,g=e.suffix,v=e.showCount,y=e.count,b=e.type,_=b===void 0?"text":b,E=e.classes,w=e.classNames,S=e.styles,C=e.onCompositionStart,T=e.onCompositionEnd,x=Dt(e,fct),O=p.useState(!1),N=Ie(O,2),I=N[0],M=N[1],F=p.useRef(!1),k=p.useRef(!1),B=p.useRef(null),A=p.useRef(null),P=function(Oe){B.current&&nY(B.current,Oe)},z=Pn(e.defaultValue,{value:e.value}),L=Ie(z,2),V=L[0],j=L[1],U=V==null?"":String(V),J=p.useState(null),te=Ie(J,2),ae=te[0],K=te[1],Q=gTe(y,v),oe=Q.max||m,ge=Q.strategy(U),fe=!!oe&&ge>oe;p.useImperativeHandle(t,function(){var _e;return{focus:P,blur:function(){var De;(De=B.current)===null||De===void 0||De.blur()},setSelectionRange:function(De,Y,D){var G;(G=B.current)===null||G===void 0||G.setSelectionRange(De,Y,D)},select:function(){var De;(De=B.current)===null||De===void 0||De.select()},input:B.current,nativeElement:((_e=A.current)===null||_e===void 0?void 0:_e.nativeElement)||B.current}}),p.useEffect(function(){k.current&&(k.current=!1),M(function(_e){return _e&&d?!1:_e})},[d]);var ue=function(Oe,De,Y){var D=De;if(!F.current&&Q.exceedFormatter&&Q.max&&Q.strategy(De)>Q.max){if(D=Q.exceedFormatter(De,{max:Q.max}),De!==D){var G,ie;K([((G=B.current)===null||G===void 0?void 0:G.selectionStart)||0,((ie=B.current)===null||ie===void 0?void 0:ie.selectionEnd)||0])}}else if(Y.source==="compositionEnd")return;j(D),B.current&&qM(B.current,Oe,r,D)};p.useEffect(function(){if(ae){var _e;(_e=B.current)===null||_e===void 0||_e.setSelectionRange.apply(_e,nt(ae))}},[ae]);var le=function(Oe){ue(Oe,Oe.target.value,{source:"change"})},ve=function(Oe){F.current=!1,ue(Oe,Oe.currentTarget.value,{source:"compositionEnd"}),T==null||T(Oe)},ne=function(Oe){a&&Oe.key==="Enter"&&!k.current&&(k.current=!0,a(Oe)),s==null||s(Oe)},pe=function(Oe){Oe.key==="Enter"&&(k.current=!1),l==null||l(Oe)},be=function(Oe){M(!0),i==null||i(Oe)},Re=function(Oe){k.current&&(k.current=!1),M(!1),o==null||o(Oe)},Se=function(Oe){j(""),P(),B.current&&qM(B.current,Oe,r)},Ce=fe&&"".concat(u,"-out-of-range"),ye=function(){var Oe=ur(e,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","count","classes","htmlSize","styles","classNames","onClear"]);return ce.createElement("input",Ke({autoComplete:n},Oe,{onChange:le,onFocus:be,onBlur:Re,onKeyDown:ne,onKeyUp:pe,className:Te(u,ee({},"".concat(u,"-disabled"),d),w==null?void 0:w.input),style:S==null?void 0:S.input,ref:B,size:f,type:_,onCompositionStart:function(Y){F.current=!0,C==null||C(Y)},onCompositionEnd:ve}))},he=function(){var Oe=Number(oe)>0;if(g||Q.show){var De=Q.showFormatter?Q.showFormatter({value:U,count:ge,maxLength:oe}):"".concat(ge).concat(Oe?" / ".concat(oe):"");return ce.createElement(ce.Fragment,null,Q.show&&ce.createElement("span",{className:Te("".concat(u,"-show-count-suffix"),ee({},"".concat(u,"-show-count-has-suffix"),!!g),w==null?void 0:w.count),style:W({},S==null?void 0:S.count)},De),g)}return null};return ce.createElement(rY,Ke({},x,{prefixCls:u,className:Te(h,Ce),handleReset:Se,value:U,focused:I,triggerFocus:P,suffix:he(),disabled:d,classes:E,classNames:w,styles:S}),ye())});function hct(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 mct(e,t){var n=p.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],f=o.indexOf(d,c-1);f!==-1&&(u=f+1)}e.setSelectionRange(u,u)}catch(h){Yr(!1,"Something warning of cursor restore. Please fire issue about this: ".concat(h.message))}}return[r,i]}var gct=function(){var t=p.useState(!1),n=Ie(t,2),r=n[0],i=n[1];return sr(function(){i(M5())},[]),r},vct=200,bct=600;function yct(e){var t=e.prefixCls,n=e.upNode,r=e.downNode,i=e.upDisabled,o=e.downDisabled,a=e.onStep,s=p.useRef(),l=p.useRef([]),c=p.useRef();c.current=a;var u=function(){clearTimeout(s.current)},d=function(_,E){_.preventDefault(),u(),c.current(E);function w(){c.current(E),s.current=setTimeout(w,vct)}s.current=setTimeout(w,bct)};p.useEffect(function(){return function(){u(),l.current.forEach(function(b){return rr.cancel(b)})}},[]);var f=gct();if(f)return null;var h="".concat(t,"-handler"),m=Te(h,"".concat(h,"-up"),ee({},"".concat(h,"-up-disabled"),i)),g=Te(h,"".concat(h,"-down"),ee({},"".concat(h,"-down-disabled"),o)),v=function(){return l.current.push(rr(u))},y={unselectable:"on",role:"button",onMouseUp:v,onMouseLeave:v};return p.createElement("div",{className:"".concat(h,"-wrap")},p.createElement("span",Ke({},y,{onMouseDown:function(_){d(_,!0)},"aria-label":"Increase Value","aria-disabled":i,className:m}),n||p.createElement("span",{unselectable:"on",className:"".concat(t,"-handler-up-inner")})),p.createElement("span",Ke({},y,{onMouseDown:function(_){d(_,!1)},"aria-label":"Decrease Value","aria-disabled":o,className:g}),r||p.createElement("span",{unselectable:"on",className:"".concat(t,"-handler-down-inner")})))}function mie(e){var t=typeof e=="number"?tD(e):dv(e).fullStr,n=t.includes(".");return n?dv(t.replace(/(\d)\.(\d)/g,"$1$2.")).fullStr:e+"0"}const _ct=function(){var e=p.useRef(0),t=function(){rr.cancel(e.current)};return p.useEffect(function(){return t},[]),function(n){t(),e.current=rr(function(){n()})}};var Sct=["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"],Ect=["disabled","style","prefixCls","value","prefix","suffix","addonBefore","addonAfter","className","classNames"],gie=function(t,n){return t||n.isEmpty()?n.toString():n.toNumber()},vie=function(t){var n=Vu(t);return n.isInvalidate()?null:n},Cct=p.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,f=e.readOnly,h=e.upHandler,m=e.downHandler,g=e.keyboard,v=e.changeOnWheel,y=v===void 0?!1:v,b=e.controls,_=b===void 0?!0:b;e.classNames;var E=e.stringMode,w=e.parser,S=e.formatter,C=e.precision,T=e.decimalSeparator,x=e.onChange,O=e.onInput,N=e.onPressEnter,I=e.onStep,M=e.changeOnBlur,F=M===void 0?!0:M,k=e.domRef,B=Dt(e,Sct),A="".concat(n,"-input"),P=p.useRef(null),z=p.useState(!1),L=Ie(z,2),V=L[0],j=L[1],U=p.useRef(!1),J=p.useRef(!1),te=p.useRef(!1),ae=p.useState(function(){return Vu(u??c)}),K=Ie(ae,2),Q=K[0],oe=K[1];function ge(at){u===void 0&&oe(at)}var fe=p.useCallback(function(at,pt){if(!pt)return C>=0?C:Math.max(H1(at),H1(l))},[C,l]),ue=p.useCallback(function(at){var pt=String(at);if(w)return w(pt);var Ct=pt;return T&&(Ct=Ct.replace(T,".")),Ct.replace(/[^\w.-]+/g,"")},[w,T]),le=p.useRef(""),ve=p.useCallback(function(at,pt){if(S)return S(at,{userTyping:pt,input:String(le.current)});var Ct=typeof at=="number"?tD(at):at;if(!pt){var bt=fe(Ct,pt);if(tY(Ct)&&(T||bt>=0)){var Vt=T||".";Ct=LA(Ct,Vt,bt)}}return Ct},[S,fe,T]),ne=p.useState(function(){var at=c??u;return Q.isInvalidate()&&["string","number"].includes(Gt(at))?Number.isNaN(at)?"":at:ve(Q.toString(),!1)}),pe=Ie(ne,2),be=pe[0],Re=pe[1];le.current=be;function Se(at,pt){Re(ve(at.isInvalidate()?at.toString(!1):at.toString(!pt),pt))}var Ce=p.useMemo(function(){return vie(a)},[a,C]),ye=p.useMemo(function(){return vie(o)},[o,C]),he=p.useMemo(function(){return!Ce||!Q||Q.isInvalidate()?!1:Ce.lessEquals(Q)},[Ce,Q]),_e=p.useMemo(function(){return!ye||!Q||Q.isInvalidate()?!1:Q.lessEquals(ye)},[ye,Q]),Oe=mct(P.current,V),De=Ie(Oe,2),Y=De[0],D=De[1],G=function(pt){return Ce&&!pt.lessEquals(Ce)?Ce:ye&&!ye.lessEquals(pt)?ye:null},ie=function(pt){return!G(pt)},me=function(pt,Ct){var bt=pt,Vt=ie(bt)||bt.isEmpty();if(!bt.isEmpty()&&!Ct&&(bt=G(bt)||bt,Vt=!0),!f&&!d&&Vt){var Tt=bt.toString(),Ot=fe(Tt,Ct);return Ot>=0&&(bt=Vu(LA(Tt,".",Ot)),ie(bt)||(bt=Vu(LA(Tt,".",Ot,!0)))),bt.equals(Q)||(ge(bt),x==null||x(bt.isEmpty()?null:gie(E,bt)),u===void 0&&Se(bt,Ct)),bt}return Q},se=_ct(),Be=function at(pt){if(Y(),le.current=pt,Re(pt),!J.current){var Ct=ue(pt),bt=Vu(Ct);bt.isNaN()||me(bt,!0)}O==null||O(pt),se(function(){var Vt=pt;w||(Vt=pt.replace(/。/g,".")),Vt!==pt&&at(Vt)})},Ve=function(){J.current=!0},re=function(){J.current=!1,Be(P.current.value)},Me=function(pt){Be(pt.target.value)},je=function(pt){var Ct;if(!(pt&&he||!pt&&_e)){U.current=!1;var bt=Vu(te.current?mie(l):l);pt||(bt=bt.negate());var Vt=(Q||Vu(0)).add(bt.toString()),Tt=me(Vt,!1);I==null||I(gie(E,Tt),{offset:te.current?mie(l):l,type:pt?"up":"down"}),(Ct=P.current)===null||Ct===void 0||Ct.focus()}},ke=function(pt){var Ct=Vu(ue(be)),bt;Ct.isNaN()?bt=me(Q,pt):bt=me(Ct,pt),u!==void 0?Se(Q,!1):bt.isNaN()||Se(bt,!1)},Ge=function(){U.current=!0},Ue=function(pt){var Ct=pt.key,bt=pt.shiftKey;U.current=!0,te.current=bt,Ct==="Enter"&&(J.current||(U.current=!1),ke(!1),N==null||N(pt)),g!==!1&&!J.current&&["Up","ArrowUp","Down","ArrowDown"].includes(Ct)&&(je(Ct==="Up"||Ct==="ArrowUp"),pt.preventDefault())},qe=function(){U.current=!1,te.current=!1};p.useEffect(function(){if(y&&V){var at=function(bt){je(bt.deltaY<0),bt.preventDefault()},pt=P.current;if(pt)return pt.addEventListener("wheel",at,{passive:!1}),function(){return pt.removeEventListener("wheel",at)}}});var At=function(){F&&ke(!1),j(!1),U.current=!1};return uv(function(){Q.isInvalidate()||Se(Q,!1)},[C,S]),uv(function(){var at=Vu(u);oe(at);var pt=Vu(ue(be));(!at.equals(pt)||!U.current||S)&&Se(at,U.current)},[u]),uv(function(){S&&D()},[be]),p.createElement("div",{ref:k,className:Te(n,r,ee(ee(ee(ee(ee({},"".concat(n,"-focused"),V),"".concat(n,"-disabled"),d),"".concat(n,"-readonly"),f),"".concat(n,"-not-a-number"),Q.isNaN()),"".concat(n,"-out-of-range"),!Q.isInvalidate()&&!ie(Q))),style:i,onFocus:function(){j(!0)},onBlur:At,onKeyDown:Ue,onKeyUp:qe,onCompositionStart:Ve,onCompositionEnd:re,onBeforeInput:Ge},_&&p.createElement(yct,{prefixCls:n,upNode:h,downNode:m,upDisabled:he,downDisabled:_e,onStep:je}),p.createElement("div",{className:"".concat(A,"-wrap")},p.createElement("input",Ke({autoComplete:"off",role:"spinbutton","aria-valuemin":o,"aria-valuemax":a,"aria-valuenow":Q.isInvalidate()?null:Q.toString(),step:l},B,{ref:oa(P,t),className:A,value:be,onChange:Me,disabled:d,readOnly:f}))))}),wct=p.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,f=e.classNames,h=Dt(e,Ect),m=p.useRef(null),g=p.useRef(null),v=p.useRef(null),y=function(_){v.current&&nY(v.current,_)};return p.useImperativeHandle(t,function(){return hct(v.current,{focus:y,nativeElement:m.current.nativeElement||g.current})}),p.createElement(rY,{className:d,triggerFocus:y,prefixCls:o,value:a,disabled:n,style:r,prefix:s,suffix:l,addonAfter:u,addonBefore:c,classNames:f,components:{affixWrapper:"div",groupWrapper:"div",wrapper:"div",groupAddon:"div"},ref:m},p.createElement(Cct,Ke({prefixCls:o,disabled:n,ref:v,domRef:g,className:f==null?void 0:f.input},h)))});const Tct=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({},h2(e)),{controlWidth:90,handleWidth:r,handleFontSize:e.fontSize/2,handleVisible:n,handleActiveBg:e.colorFillAlter,handleBg:e.colorBgContainer,filledHandleBg:new ir(e.colorFillSecondary).onBackground(e.colorBgContainer).toHexString(),handleHoverColor:e.colorPrimary,handleBorderColor:e.colorBorder,handleOpacity:n===!0?1:0,handleVisibleWidth:n===!0?r:0})},bie=(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}}}},xct=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:f,paddingInlineLG:h,colorTextDescription:m,motionDurationMid:g,handleHoverColor:v,handleOpacity:y,paddingInline:b,paddingBlock:_,handleBg:E,handleActiveBg:w,colorTextDisabled:S,borderRadiusSM:C,borderRadiusLG:T,controlWidth:x,handleBorderColor:O,filledHandleBg:N,lineHeightLG:I,calc:M}=e;return[{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},gr(e)),m2(e)),{display:"inline-block",width:x,margin:0,padding:0,borderRadius:i}),Wq(e,{[`${t}-handler-wrap`]:{background:E,[`${t}-handler-down`]:{borderBlockStart:`${Ae(n)} ${r} ${O}`}}})),Yq(e,{[`${t}-handler-wrap`]:{background:N,[`${t}-handler-down`]:{borderBlockStart:`${Ae(n)} ${r} ${O}`}},"&:focus-within":{[`${t}-handler-wrap`]:{background:E}}})),qq(e)),{"&-rtl":{direction:"rtl",[`${t}-input`]:{direction:"rtl"}},"&-lg":{padding:0,fontSize:a,lineHeight:I,borderRadius:T,[`input${t}-input`]:{height:M(s).sub(M(n).mul(2)).equal(),padding:`${Ae(f)} ${Ae(h)}`}},"&-sm":{padding:0,fontSize:o,borderRadius:C,[`input${t}-input`]:{height:M(l).sub(M(n).mul(2)).equal(),padding:`${Ae(d)} ${Ae(u)}`}},"&-out-of-range":{[`${t}-input-wrap`]:{input:{color:c}}},"&-group":Object.assign(Object.assign(Object.assign({},gr(e)),kwe(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:T,fontSize:e.fontSizeLG}},"&-sm":{[`${t}-group-addon`]:{borderRadius:C}}},Iwe(e)),Nwe(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({},gr(e)),{width:"100%",padding:`${Ae(_)} ${Ae(b)}`,textAlign:"start",backgroundColor:"transparent",border:0,borderRadius:i,outline:0,transition:`all ${g} linear`,appearance:"textfield",fontSize:"inherit"}),Kq(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:y,height:"100%",borderStartStartRadius:0,borderStartEndRadius:i,borderEndEndRadius:i,borderEndStartRadius:0,display:"flex",flexDirection:"column",alignItems:"stretch",transition:`all ${g}`,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:`${Ae(n)} ${r} ${O}`,transition:`all ${g} linear`,"&:active":{background:w},"&:hover":{height:"60%",[`
${t}-handler-up-inner,
${t}-handler-down-inner
`]:{color:v}},"&-up-inner, &-down-inner":Object.assign(Object.assign({},y0()),{color:m,transition:`all ${g} linear`,userSelect:"none"})},[`${t}-handler-up`]:{borderStartEndRadius:i},[`${t}-handler-down`]:{borderEndEndRadius:i}},bie(e,"lg")),bie(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:S}})}]},Oct=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:f}=e;return{[`${t}-affix-wrapper`]:Object.assign(Object.assign({[`input${t}-input`]:{padding:`${Ae(n)} 0`}},m2(e)),{position:"relative",display:"inline-flex",alignItems:"center",width:o,padding:0,paddingInlineStart:r,"&-lg":{borderRadius:a,paddingInlineStart:l,[`input${t}-input`]:{padding:`${Ae(u)} 0`}},"&-sm":{borderRadius:s,paddingInlineStart:c,[`input${t}-input`]:{padding:`${Ae(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 ${f}`}},[`&: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()}})}},Rct=cr("InputNumber",e=>{const t=Kn(e,p2(e));return[xct(t),Oct(t),S0(t)]},Tct,{unitless:{handleOpacity:!0}});var Ict=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=p.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r}=p.useContext(Qt),i=p.useRef(null);p.useImperativeHandle(t,()=>i.current);const{className:o,rootClassName:a,size:s,disabled:l,prefixCls:c,addonBefore:u,addonAfter:d,prefix:f,suffix:h,bordered:m,readOnly:g,status:v,controls:y,variant:b}=e,_=Ict(e,["className","rootClassName","size","disabled","prefixCls","addonBefore","addonAfter","prefix","suffix","bordered","readOnly","status","controls","variant"]),E=n("input-number",c),w=ui(E),[S,C,T]=Rct(E,w),{compactSize:x,compactItemClassnames:O}=Fd(E,r);let N=p.createElement(act,{className:`${E}-handler-up-inner`}),I=p.createElement(c2,{className:`${E}-handler-down-inner`});const M=typeof y=="boolean"?y:void 0;typeof y=="object"&&(N=typeof y.upIcon>"u"?N:p.createElement("span",{className:`${E}-handler-up-inner`},y.upIcon),I=typeof y.downIcon>"u"?I:p.createElement("span",{className:`${E}-handler-down-inner`},y.downIcon));const{hasFeedback:F,status:k,isFormItemInput:B,feedbackIcon:A}=p.useContext(ia),P=wh(k,v),z=So(Q=>{var oe;return(oe=s??x)!==null&&oe!==void 0?oe:Q}),L=p.useContext(Vo),V=l??L,[j,U]=Th("inputNumber",b,m),J=F&&p.createElement(p.Fragment,null,A),te=Te({[`${E}-lg`]:z==="large",[`${E}-sm`]:z==="small",[`${E}-rtl`]:r==="rtl",[`${E}-in-form-item`]:B},C),ae=`${E}-group`,K=p.createElement(wct,Object.assign({ref:i,disabled:V,className:Te(T,w,o,a,O),upHandler:N,downHandler:I,prefixCls:E,readOnly:g,controls:M,prefix:f,suffix:J||h,addonBefore:u&&p.createElement(Rd,{form:!0,space:!0},u),addonAfter:d&&p.createElement(Rd,{form:!0,space:!0},d),classNames:{input:te,variant:Te({[`${E}-${j}`]:U},Id(E,P,F)),affixWrapper:Te({[`${E}-affix-wrapper-sm`]:z==="small",[`${E}-affix-wrapper-lg`]:z==="large",[`${E}-affix-wrapper-rtl`]:r==="rtl",[`${E}-affix-wrapper-without-controls`]:y===!1},C),wrapper:Te({[`${ae}-rtl`]:r==="rtl"},C),groupWrapper:Te({[`${E}-group-wrapper-sm`]:z==="small",[`${E}-group-wrapper-lg`]:z==="large",[`${E}-group-wrapper-rtl`]:r==="rtl",[`${E}-group-wrapper-${j}`]:U},Id(`${E}-group-wrapper`,P,F),C)}},_));return S(K)}),dh=vTe,Act=e=>p.createElement(Ln,{theme:{components:{InputNumber:{handleVisible:!0}}}},p.createElement(vTe,Object.assign({},e)));dh._InternalPanelDoNotUseOrYouWillBeFired=Act;const fv=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]=p.useState(i);return p.useEffect(()=>{Number.isNaN(i)||u(i)},[i]),ce.createElement(dh,{className:Te(l,a),min:n,max:r,value:c,formatter:s,size:"small",onChange:d=>{i||u(d||0),o==null||o(d)}})},Nct=e=>{let{prefixCls:t,value:n,onChange:r}=e;const i=`${t}-alpha-input`,[o,a]=p.useState(Ns(n||"#000"));p.useEffect(()=>{n&&a(n)},[n]);const s=l=>{const c=o.toHsb();c.a=(l||0)/100;const u=Ns(c);n||a(u),r==null||r(u)};return ce.createElement(fv,{value:aq(o),prefixCls:t,formatter:l=>`${l}%`,className:i,onChange:s})},Mct=e=>{const{getPrefixCls:t,direction:n}=p.useContext(Qt),{prefixCls:r,className:i}=e,o=t("input-group",r),a=t("input"),[s,l]=Xq(a),c=Te(o,{[`${o}-lg`]:e.size==="large",[`${o}-sm`]:e.size==="small",[`${o}-compact`]:e.compact,[`${o}-rtl`]:n==="rtl"},l,i),u=p.useContext(ia),d=p.useMemo(()=>Object.assign(Object.assign({},u),{isFormItemInput:!1}),[u]);return s(p.createElement("span",{className:c,style:e.style,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,onFocus:e.onFocus,onBlur:e.onBlur},p.createElement(ia.Provider,{value:d},e.children)))},bTe=e=>{let t;return typeof e=="object"&&(e!=null&&e.clearIcon)?t=e:e&&(t={clearIcon:ce.createElement(qf,null)}),t};function yTe(e,t){const n=p.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 p.useEffect(()=>(t&&r(),()=>n.current.forEach(i=>{i&&clearTimeout(i)})),[]),r}function kct(e){return!!(e.prefix||e.suffix||e.allowClear||e.showCount)}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 nD=p.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:f,addonBefore:h,className:m,style:g,styles:v,rootClassName:y,onChange:b,classNames:_,variant:E}=e,w=Pct(e,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames","variant"]),{getPrefixCls:S,direction:C,input:T}=ce.useContext(Qt),x=S("input",r),O=p.useRef(null),N=ui(x),[I,M,F]=Xq(x,N),{compactSize:k,compactItemClassnames:B}=Fd(x,C),A=So(le=>{var ve;return(ve=a??k)!==null&&ve!==void 0?ve:le}),P=ce.useContext(Vo),z=s??P,{status:L,hasFeedback:V,feedbackIcon:j}=p.useContext(ia),U=wh(L,o),J=kct(e)||!!V;p.useRef(J);const te=yTe(O,!0),ae=le=>{te(),l==null||l(le)},K=le=>{te(),c==null||c(le)},Q=le=>{te(),b==null||b(le)},oe=(V||u)&&ce.createElement(ce.Fragment,null,u,V&&j),ge=bTe(d??(T==null?void 0:T.allowClear)),[fe,ue]=Th("input",E,i);return I(ce.createElement(pct,Object.assign({ref:oa(t,O),prefixCls:x,autoComplete:T==null?void 0:T.autoComplete},w,{disabled:z,onBlur:ae,onFocus:K,style:Object.assign(Object.assign({},T==null?void 0:T.style),g),styles:Object.assign(Object.assign({},T==null?void 0:T.styles),v),suffix:oe,allowClear:ge,className:Te(m,y,F,N,B,T==null?void 0:T.className),onChange:Q,addonBefore:h&&ce.createElement(Rd,{form:!0,space:!0},h),addonAfter:f&&ce.createElement(Rd,{form:!0,space:!0},f),classNames:Object.assign(Object.assign(Object.assign({},_),T==null?void 0:T.classNames),{input:Te({[`${x}-sm`]:A==="small",[`${x}-lg`]:A==="large",[`${x}-rtl`]:C==="rtl"},_==null?void 0:_.input,(n=T==null?void 0:T.classNames)===null||n===void 0?void 0:n.input,M),variant:Te({[`${x}-${fe}`]:ue},Id(x,U)),affixWrapper:Te({[`${x}-affix-wrapper-sm`]:A==="small",[`${x}-affix-wrapper-lg`]:A==="large",[`${x}-affix-wrapper-rtl`]:C==="rtl"},M),wrapper:Te({[`${x}-group-rtl`]:C==="rtl"},M),groupWrapper:Te({[`${x}-group-wrapper-sm`]:A==="small",[`${x}-group-wrapper-lg`]:A==="large",[`${x}-group-wrapper-rtl`]:C==="rtl",[`${x}-group-wrapper-${fe}`]:ue},Id(`${x}-group-wrapper`,U,V),M)})})))}),Dct=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}}}},Lct=cr(["Input","OTP"],e=>{const t=Kn(e,p2(e));return[Dct(t)]},h2);var $ct=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 Fct=p.forwardRef((e,t)=>{const{value:n,onChange:r,onActiveChange:i,index:o,mask:a}=e,s=$ct(e,["value","onChange","onActiveChange","index","mask"]),l=n&&typeof a=="string"?a:n,c=m=>{r(o,m.target.value)},u=p.useRef(null);p.useImperativeHandle(t,()=>u.current);const d=()=>{rr(()=>{var m;const g=(m=u.current)===null||m===void 0?void 0:m.input;document.activeElement===g&&g&&g.select()})},f=m=>{const{key:g,ctrlKey:v,metaKey:y}=m;g==="ArrowLeft"?i(o-1):g==="ArrowRight"?i(o+1):g==="z"&&(v||y)&&m.preventDefault(),d()},h=m=>{m.key==="Backspace"&&!n&&i(o-1),d()};return p.createElement(nD,Object.assign({type:a===!0?"password":"text"},s,{ref:u,value:l,onInput:c,onFocus:d,onKeyDown:f,onKeyUp:h,onMouseDown:d,onMouseUp:d}))});var Bct=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 AR(e){return(e||"").split("")}const jct=p.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:f,mask:h,type:m,onInput:g,inputMode:v}=e,y=Bct(e,["prefixCls","length","size","defaultValue","value","onChange","formatter","variant","disabled","status","autoFocus","mask","type","onInput","inputMode"]),{getPrefixCls:b,direction:_}=p.useContext(Qt),E=b("otp",n),w=xi(y,{aria:!0,data:!0,attr:!0}),S=ui(E),[C,T,x]=Lct(E,S),O=So(J=>i??J),N=p.useContext(ia),I=wh(N.status,d),M=p.useMemo(()=>Object.assign(Object.assign({},N),{status:I,hasFeedback:!1,feedbackIcon:null}),[N,I]),F=p.useRef(null),k=p.useRef({});p.useImperativeHandle(t,()=>({focus:()=>{var J;(J=k.current[0])===null||J===void 0||J.focus()},blur:()=>{var J;for(let te=0;te<r;te+=1)(J=k.current[te])===null||J===void 0||J.blur()},nativeElement:F.current}));const B=J=>l?l(J):J,[A,P]=p.useState(AR(B(o||"")));p.useEffect(()=>{a!==void 0&&P(AR(a))},[a]);const z=Yn(J=>{P(J),g&&g(J),s&&J.length===r&&J.every(te=>te)&&J.some((te,ae)=>A[ae]!==te)&&s(J.join(""))}),L=Yn((J,te)=>{let ae=nt(A);for(let Q=0;Q<J;Q+=1)ae[Q]||(ae[Q]="");te.length<=1?ae[J]=te:ae=ae.slice(0,J).concat(AR(te)),ae=ae.slice(0,r);for(let Q=ae.length-1;Q>=0&&!ae[Q];Q-=1)ae.pop();const K=B(ae.map(Q=>Q||" ").join(""));return ae=AR(K).map((Q,oe)=>Q===" "&&!ae[oe]?ae[oe]:Q),ae}),V=(J,te)=>{var ae;const K=L(J,te),Q=Math.min(J+te.length,r-1);Q!==J&&K[J]!==void 0&&((ae=k.current[Q])===null||ae===void 0||ae.focus()),z(K)},j=J=>{var te;(te=k.current[J])===null||te===void 0||te.focus()},U={variant:c,disabled:u,status:I,mask:h,type:m,inputMode:v};return C(p.createElement("div",Object.assign({},w,{ref:F,className:Te(E,{[`${E}-sm`]:O==="small",[`${E}-lg`]:O==="large",[`${E}-rtl`]:_==="rtl"},x,T)}),p.createElement(ia.Provider,{value:M},Array.from({length:r}).map((J,te)=>{const ae=`otp-${te}`,K=A[te]||"";return p.createElement(Fct,Object.assign({ref:Q=>{k.current[te]=Q},key:ae,index:te,size:O,htmlSize:1,className:`${E}-input`,onChange:V,value:K,onActiveChange:j,autoFocus:te===0&&f},U))}))))});var Hct={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"},Uct=function(t,n){return p.createElement(Nn,Ke({},t,{ref:n,icon:Hct}))},_Te=p.forwardRef(Uct),zct={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"},Vct=function(t,n){return p.createElement(Nn,Ke({},t,{ref:n,icon:zct}))},RS=p.forwardRef(Vct),Gct=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 Wct=e=>e?p.createElement(RS,null):p.createElement(_Te,null),qct={click:"onClick",hover:"onMouseOver"},Yct=p.forwardRef((e,t)=>{const{disabled:n,action:r="click",visibilityToggle:i=!0,iconRender:o=Wct}=e,a=p.useContext(Vo),s=n??a,l=typeof i=="object"&&i.visible!==void 0,[c,u]=p.useState(()=>l?i.visible:!1),d=p.useRef(null);p.useEffect(()=>{l&&u(i.visible)},[l,i]);const f=yTe(d),h=()=>{var O;if(s)return;c&&f();const N=!c;u(N),typeof i=="object"&&((O=i.onVisibleChange)===null||O===void 0||O.call(i,N))},m=O=>{const N=qct[r]||"",I=o(c),M={[N]:h,className:`${O}-icon`,key:"passwordIcon",onMouseDown:F=>{F.preventDefault()},onMouseUp:F=>{F.preventDefault()}};return p.cloneElement(p.isValidElement(I)?I:p.createElement("span",null,I),M)},{className:g,prefixCls:v,inputPrefixCls:y,size:b}=e,_=Gct(e,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:E}=p.useContext(Qt),w=E("input",y),S=E("input-password",v),C=i&&m(S),T=Te(S,g,{[`${S}-${b}`]:!!b}),x=Object.assign(Object.assign({},ur(_,["suffix","iconRender","visibilityToggle"])),{type:c?"text":"password",className:T,prefixCls:w,suffix:C});return b&&(x.size=b),p.createElement(nD,Object.assign({ref:oa(t,d)},x))});var Kct=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 Qct=p.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:f,onCompositionStart:h,onCompositionEnd:m}=e,g=Kct(e,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:v,direction:y}=p.useContext(Qt),b=p.useRef(!1),_=v("input-search",n),E=v("input",r),{compactSize:w}=Fd(_,y),S=So(V=>{var j;return(j=o??w)!==null&&j!==void 0?j:V}),C=p.useRef(null),T=V=>{V!=null&&V.target&&V.type==="click"&&d&&d(V.target.value,V,{source:"clear"}),f==null||f(V)},x=V=>{var j;document.activeElement===((j=C.current)===null||j===void 0?void 0:j.input)&&V.preventDefault()},O=V=>{var j,U;d&&d((U=(j=C.current)===null||j===void 0?void 0:j.input)===null||U===void 0?void 0:U.value,V,{source:"input"})},N=V=>{b.current||c||O(V)},I=typeof s=="boolean"?p.createElement(D5,null):null,M=`${_}-button`;let F;const k=s||{},B=k.type&&k.type.__ANT_BUTTON===!0;B||k.type==="button"?F=_o(k,Object.assign({onMouseDown:x,onClick:V=>{var j,U;(U=(j=k==null?void 0:k.props)===null||j===void 0?void 0:j.onClick)===null||U===void 0||U.call(j,V),O(V)},key:"enterButton"},B?{className:M,size:S}:{})):F=p.createElement($n,{className:M,type:s?"primary":void 0,size:S,disabled:u,key:"enterButton",onMouseDown:x,onClick:O,loading:c,icon:I},s),l&&(F=[F,_o(l,{key:"addonAfter"})]);const A=Te(_,{[`${_}-rtl`]:y==="rtl",[`${_}-${S}`]:!!S,[`${_}-with-button`]:!!s},i),P=Object.assign(Object.assign({},g),{className:A,prefixCls:E,type:"search"}),z=V=>{b.current=!0,h==null||h(V)},L=V=>{b.current=!1,m==null||m(V)};return p.createElement(nD,Object.assign({ref:oa(C,t),onPressEnter:N},P,{size:S,onCompositionStart:z,onCompositionEnd:L,addonAfter:F,suffix:a,onChange:T,disabled:u}))});var Xct=`
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;
`,Zct=["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"],WL={},ql;function Jct(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&&WL[n])return WL[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=Zct.map(function(c){return"".concat(c,":").concat(r.getPropertyValue(c))}).join(";"),l={sizingStyle:s,paddingSize:o,borderSize:a,boxSizing:i};return t&&n&&(WL[n]=l),l}function eut(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;ql||(ql=document.createElement("textarea"),ql.setAttribute("tab-index","-1"),ql.setAttribute("aria-hidden","true"),ql.setAttribute("name","hiddenTextarea"),document.body.appendChild(ql)),e.getAttribute("wrap")?ql.setAttribute("wrap",e.getAttribute("wrap")):ql.removeAttribute("wrap");var i=Jct(e,t),o=i.paddingSize,a=i.borderSize,s=i.boxSizing,l=i.sizingStyle;ql.setAttribute("style","".concat(l,";").concat(Xct)),ql.value=e.value||e.placeholder||"";var c=void 0,u=void 0,d,f=ql.scrollHeight;if(s==="border-box"?f+=a:s==="content-box"&&(f-=o),n!==null||r!==null){ql.value=" ";var h=ql.scrollHeight-o;n!==null&&(c=h*n,s==="border-box"&&(c=c+o+a),f=Math.max(c,f)),r!==null&&(u=h*r,s==="border-box"&&(u=u+o+a),d=f>u?"":"hidden",f=Math.min(u,f))}var m={height:f,overflowY:d,resize:"none"};return c&&(m.minHeight=c),u&&(m.maxHeight=u),m}var tut=["prefixCls","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],qL=0,YL=1,KL=2,nut=p.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 f=Dt(n,tut),h=Pn(i,{value:o,postState:function(J){return J??""}}),m=Ie(h,2),g=m[0],v=m[1],y=function(J){v(J.target.value),d==null||d(J)},b=p.useRef();p.useImperativeHandle(t,function(){return{textArea:b.current}});var _=p.useMemo(function(){return a&&Gt(a)==="object"?[a.minRows,a.maxRows]:[]},[a]),E=Ie(_,2),w=E[0],S=E[1],C=!!a,T=function(){try{if(document.activeElement===b.current){var J=b.current,te=J.selectionStart,ae=J.selectionEnd,K=J.scrollTop;b.current.setSelectionRange(te,ae),b.current.scrollTop=K}}catch{}},x=p.useState(KL),O=Ie(x,2),N=O[0],I=O[1],M=p.useState(),F=Ie(M,2),k=F[0],B=F[1],A=function(){I(qL)};sr(function(){C&&A()},[o,w,S,C]),sr(function(){if(N===qL)I(YL);else if(N===YL){var U=eut(b.current,!1,w,S);I(KL),B(U)}else T()},[N]);var P=p.useRef(),z=function(){rr.cancel(P.current)},L=function(J){N===KL&&(s==null||s(J),a&&(z(),P.current=rr(function(){A()})))};p.useEffect(function(){return z},[]);var V=C?k:null,j=W(W({},c),V);return(N===qL||N===YL)&&(j.overflowY="hidden",j.overflowX="hidden"),p.createElement(Ta,{onResize:L,disabled:!(a||s)},p.createElement("textarea",Ke({},f,{ref:b,style:j,className:Te(r,l,ee({},"".concat(r,"-disabled"),u)),disabled:u,value:g,onChange:y})))}),rut=["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"],iut=ce.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,f=e.suffix,h=e.prefixCls,m=h===void 0?"rc-textarea":h,g=e.showCount,v=e.count,y=e.className,b=e.style,_=e.disabled,E=e.hidden,w=e.classNames,S=e.styles,C=e.onResize,T=e.onClear,x=e.onPressEnter,O=e.readOnly,N=e.autoSize,I=e.onKeyDown,M=Dt(e,rut),F=Pn(r,{value:i,defaultValue:r}),k=Ie(F,2),B=k[0],A=k[1],P=B==null?"":String(B),z=ce.useState(!1),L=Ie(z,2),V=L[0],j=L[1],U=ce.useRef(!1),J=ce.useState(null),te=Ie(J,2),ae=te[0],K=te[1],Q=p.useRef(null),oe=p.useRef(null),ge=function(){var re;return(re=oe.current)===null||re===void 0?void 0:re.textArea},fe=function(){ge().focus()};p.useImperativeHandle(t,function(){var Ve;return{resizableTextArea:oe.current,focus:fe,blur:function(){ge().blur()},nativeElement:((Ve=Q.current)===null||Ve===void 0?void 0:Ve.nativeElement)||ge()}}),p.useEffect(function(){j(function(Ve){return!_&&Ve})},[_]);var ue=ce.useState(null),le=Ie(ue,2),ve=le[0],ne=le[1];ce.useEffect(function(){if(ve){var Ve;(Ve=ge()).setSelectionRange.apply(Ve,nt(ve))}},[ve]);var pe=gTe(v,g),be=(n=pe.max)!==null&&n!==void 0?n:c,Re=Number(be)>0,Se=pe.strategy(P),Ce=!!be&&Se>be,ye=function(re,Me){var je=Me;!U.current&&pe.exceedFormatter&&pe.max&&pe.strategy(Me)>pe.max&&(je=pe.exceedFormatter(Me,{max:pe.max}),Me!==je&&ne([ge().selectionStart||0,ge().selectionEnd||0])),A(je),qM(re.currentTarget,re,s,je)},he=function(re){U.current=!0,u==null||u(re)},_e=function(re){U.current=!1,ye(re,re.currentTarget.value),d==null||d(re)},Oe=function(re){ye(re,re.target.value)},De=function(re){re.key==="Enter"&&x&&x(re),I==null||I(re)},Y=function(re){j(!0),o==null||o(re)},D=function(re){j(!1),a==null||a(re)},G=function(re){A(""),fe(),qM(ge(),re,s)},ie=f,me;pe.show&&(pe.showFormatter?me=pe.showFormatter({value:P,count:Se,maxLength:be}):me="".concat(Se).concat(Re?" / ".concat(be):""),ie=ce.createElement(ce.Fragment,null,ie,ce.createElement("span",{className:Te("".concat(m,"-data-count"),w==null?void 0:w.count),style:S==null?void 0:S.count},me)));var se=function(re){var Me;C==null||C(re),(Me=ge())!==null&&Me!==void 0&&Me.style.height&&K(!0)},Be=!N&&!g&&!l;return ce.createElement(rY,{ref:Q,value:P,allowClear:l,handleReset:G,suffix:ie,prefixCls:m,classNames:W(W({},w),{},{affixWrapper:Te(w==null?void 0:w.affixWrapper,ee(ee({},"".concat(m,"-show-count"),g),"".concat(m,"-textarea-allow-clear"),l))}),disabled:_,focused:V,className:Te(y,Ce&&"".concat(m,"-out-of-range")),style:W(W({},b),ae&&!Be?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof me=="string"?me:void 0}},hidden:E,readOnly:O,onClear:T},ce.createElement(nut,Ke({},M,{autoSize:N,maxLength:c,onKeyDown:De,onChange:Oe,onFocus:Y,onBlur:D,onCompositionStart:he,onCompositionEnd:_e,className:Te(w==null?void 0:w.textarea),style:W(W({},S==null?void 0:S.textarea),{},{resize:b==null?void 0:b.resize}),disabled:_,prefixCls:m,onResize:se,ref:oe,readOnly:O})))}),out=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 STe=p.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:f,style:h,styles:m,variant:g}=e,v=out(e,["prefixCls","bordered","size","disabled","status","allowClear","classNames","rootClassName","className","style","styles","variant"]),{getPrefixCls:y,direction:b,textArea:_}=p.useContext(Qt),E=So(a),w=p.useContext(Vo),S=s??w,{status:C,hasFeedback:T,feedbackIcon:x}=p.useContext(ia),O=wh(C,l),N=p.useRef(null);p.useImperativeHandle(t,()=>{var L;return{resizableTextArea:(L=N.current)===null||L===void 0?void 0:L.resizableTextArea,focus:V=>{var j,U;nY((U=(j=N.current)===null||j===void 0?void 0:j.resizableTextArea)===null||U===void 0?void 0:U.textArea,V)},blur:()=>{var V;return(V=N.current)===null||V===void 0?void 0:V.blur()}}});const I=y("input",i),M=ui(I),[F,k,B]=Xq(I,M),[A,P]=Th("textArea",g,o),z=bTe(c??(_==null?void 0:_.allowClear));return F(p.createElement(iut,Object.assign({autoComplete:_==null?void 0:_.autoComplete},v,{style:Object.assign(Object.assign({},_==null?void 0:_.style),h),styles:Object.assign(Object.assign({},_==null?void 0:_.styles),m),disabled:S,allowClear:z,className:Te(B,M,f,d,_==null?void 0:_.className),classNames:Object.assign(Object.assign(Object.assign({},u),_==null?void 0:_.classNames),{textarea:Te({[`${I}-sm`]:E==="small",[`${I}-lg`]:E==="large"},k,u==null?void 0:u.textarea,(n=_==null?void 0:_.classNames)===null||n===void 0?void 0:n.textarea),variant:Te({[`${I}-${A}`]:P},Id(I,O)),affixWrapper:Te(`${I}-textarea-affix-wrapper`,{[`${I}-affix-wrapper-rtl`]:b==="rtl",[`${I}-affix-wrapper-sm`]:E==="small",[`${I}-affix-wrapper-lg`]:E==="large",[`${I}-textarea-show-count`]:e.showCount||((r=e.count)===null||r===void 0?void 0:r.show)},k)}),prefixCls:I,suffix:T&&p.createElement("span",{className:`${I}-textarea-suffix`},x),ref:N})))}),Ki=nD;Ki.Group=Mct;Ki.Search=Qct;Ki.TextArea=STe;Ki.Password=Yct;Ki.OTP=jct;const aut=/(^#[\da-f]{6}$)|(^#[\da-f]{8}$)/i,sut=e=>aut.test(`#${e}`),lut=e=>{let{prefixCls:t,value:n,onChange:r}=e;const i=`${t}-hex-input`,[o,a]=p.useState(()=>n?RC(n.toHexString()):void 0);p.useEffect(()=>{n&&a(RC(n.toHexString()))},[n]);const s=l=>{const c=l.target.value;a(RC(c)),sut(RC(c,!0))&&(r==null||r(Ns(c)))};return ce.createElement(Ki,{className:i,value:o,prefix:"#",onChange:s,size:"small"})},cut=e=>{let{prefixCls:t,value:n,onChange:r}=e;const i=`${t}-hsb-input`,[o,a]=p.useState(Ns(n||"#000"));p.useEffect(()=>{n&&a(n)},[n]);const s=(l,c)=>{const u=o.toHsb();u[c]=c==="h"?l:(l||0)/100;const d=Ns(u);n||a(d),r==null||r(d)};return ce.createElement("div",{className:i},ce.createElement(fv,{max:360,min:0,value:Number(o.toHsb().h),prefixCls:t,className:i,formatter:l=>NA(l||0).toString(),onChange:l=>s(Number(l),"h")}),ce.createElement(fv,{max:100,min:0,value:Number(o.toHsb().s)*100,prefixCls:t,className:i,formatter:l=>`${NA(l||0)}%`,onChange:l=>s(Number(l),"s")}),ce.createElement(fv,{max:100,min:0,value:Number(o.toHsb().b)*100,prefixCls:t,className:i,formatter:l=>`${NA(l||0)}%`,onChange:l=>s(Number(l),"b")}))},uut=e=>{let{prefixCls:t,value:n,onChange:r}=e;const i=`${t}-rgb-input`,[o,a]=p.useState(Ns(n||"#000"));p.useEffect(()=>{n&&a(n)},[n]);const s=(l,c)=>{const u=o.toRgb();u[c]=l||0;const d=Ns(u);n||a(d),r==null||r(d)};return ce.createElement("div",{className:i},ce.createElement(fv,{max:255,min:0,value:Number(o.toRgb().r),prefixCls:t,className:i,onChange:l=>s(Number(l),"r")}),ce.createElement(fv,{max:255,min:0,value:Number(o.toRgb().g),prefixCls:t,className:i,onChange:l=>s(Number(l),"g")}),ce.createElement(fv,{max:255,min:0,value:Number(o.toRgb().b),prefixCls:t,className:i,onChange:l=>s(Number(l),"b")}))},dut=[rg.hex,rg.hsb,rg.rgb].map(e=>({value:e,label:e.toLocaleUpperCase()})),fut=e=>{const{prefixCls:t,format:n,value:r,disabledAlpha:i,onFormatChange:o,onChange:a,disabledFormat:s}=e,[l,c]=Pn(rg.hex,{value:n,onChange:o}),u=`${t}-input`,d=h=>{c(h)},f=p.useMemo(()=>{const h={value:r,prefixCls:t,onChange:a};switch(l){case rg.hsb:return ce.createElement(cut,Object.assign({},h));case rg.rgb:return ce.createElement(uut,Object.assign({},h));default:return ce.createElement(lut,Object.assign({},h))}},[l,t,r,a]);return ce.createElement("div",{className:`${u}-container`},!s&&ce.createElement(vu,{value:l,variant:"borderless",getPopupContainer:h=>h,popupMatchSelectWidth:68,placement:"bottomRight",onChange:d,className:`${t}-format-select`,size:"small",options:dut}),ce.createElement("div",{className:u},f),!i&&ce.createElement(Nct,{prefixCls:t,value:r,onChange:a}))};function FH(e,t,n){return(e-t)/(n-t)}function iY(e,t,n,r){var i=FH(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 C1(e,t){return Array.isArray(e)?e[t]:e}var w0=p.createContext({min:0,max:0,direction:"ltr",step:1,includedStart:0,includedEnd:0,tabIndex:0,keyboard:!0,styles:{},classNames:{}}),ETe=p.createContext({}),put=["prefixCls","value","valueIndex","onStartMove","onDelete","style","render","dragging","draggingDelete","onOffsetChange","onChangeComplete","onFocus","onMouseEnter"],yie=p.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,f=e.onChangeComplete,h=e.onFocus,m=e.onMouseEnter,g=Dt(e,put),v=p.useContext(w0),y=v.min,b=v.max,_=v.direction,E=v.disabled,w=v.keyboard,S=v.range,C=v.tabIndex,T=v.ariaLabelForHandle,x=v.ariaLabelledByForHandle,O=v.ariaRequired,N=v.ariaValueTextFormatterForHandle,I=v.styles,M=v.classNames,F="".concat(n,"-handle"),k=function(te){E||o(te,i)},B=function(te){h==null||h(te,i)},A=function(te){m(te,i)},P=function(te){if(!E&&w){var ae=null;switch(te.which||te.keyCode){case dt.LEFT:ae=_==="ltr"||_==="btt"?-1:1;break;case dt.RIGHT:ae=_==="ltr"||_==="btt"?1:-1;break;case dt.UP:ae=_!=="ttb"?1:-1;break;case dt.DOWN:ae=_!=="ttb"?-1:1;break;case dt.HOME:ae="min";break;case dt.END:ae="max";break;case dt.PAGE_UP:ae=2;break;case dt.PAGE_DOWN:ae=-2;break;case dt.BACKSPACE:case dt.DELETE:a(i);break}ae!==null&&(te.preventDefault(),d(ae,i))}},z=function(te){switch(te.which||te.keyCode){case dt.LEFT:case dt.RIGHT:case dt.UP:case dt.DOWN:case dt.HOME:case dt.END:case dt.PAGE_UP:case dt.PAGE_DOWN:f==null||f();break}},L=iY(_,r,y,b),V={};if(i!==null){var j;V={tabIndex:E?null:C1(C,i),role:"slider","aria-valuemin":y,"aria-valuemax":b,"aria-valuenow":r,"aria-disabled":E,"aria-label":C1(T,i),"aria-labelledby":C1(x,i),"aria-required":C1(O,i),"aria-valuetext":(j=C1(N,i))===null||j===void 0?void 0:j(r),"aria-orientation":_==="ltr"||_==="rtl"?"horizontal":"vertical",onMouseDown:k,onTouchStart:k,onFocus:B,onMouseEnter:A,onKeyDown:P,onKeyUp:z}}var U=p.createElement("div",Ke({ref:t,className:Te(F,ee(ee(ee({},"".concat(F,"-").concat(i+1),i!==null&&S),"".concat(F,"-dragging"),c),"".concat(F,"-dragging-delete"),u),M.handle),style:W(W(W({},L),s),I.handle)},V,g));return l&&(U=l(U,{index:i,prefixCls:n,value:r,dragging:c,draggingDelete:u})),U}),hut=["prefixCls","style","onStartMove","onOffsetChange","values","handleRender","activeHandleRender","draggingIndex","draggingDelete","onFocus"],mut=p.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,f=Dt(e,hut),h=p.useRef({}),m=p.useState(!1),g=Ie(m,2),v=g[0],y=g[1],b=p.useState(-1),_=Ie(b,2),E=_[0],w=_[1],S=function(N){w(N),y(!0)},C=function(N,I){S(I),d==null||d(N)},T=function(N,I){S(I)};p.useImperativeHandle(t,function(){return{focus:function(N){var I;(I=h.current[N])===null||I===void 0||I.focus()},hideHelp:function(){Ml.flushSync(function(){y(!1)})}}});var x=W({prefixCls:n,onStartMove:i,onOffsetChange:o,render:s,onFocus:C,onMouseEnter:T},f);return p.createElement(p.Fragment,null,a.map(function(O,N){var I=c===N;return p.createElement(yie,Ke({ref:function(F){F?h.current[N]=F:delete h.current[N]},dragging:I,draggingDelete:I&&u,style:C1(r,N),key:N,value:O,valueIndex:N},x))}),l&&v&&p.createElement(yie,Ke({key:"a11y"},x,{value:a[E],valueIndex:null,dragging:c!==-1,draggingDelete:u,render:l,style:{pointerEvents:"none"},tabIndex:null,"aria-hidden":!0})))}),gut=function(t){var n=t.prefixCls,r=t.style,i=t.children,o=t.value,a=t.onClick,s=p.useContext(w0),l=s.min,c=s.max,u=s.direction,d=s.includedStart,f=s.includedEnd,h=s.included,m="".concat(n,"-text"),g=iY(u,o,l,c);return p.createElement("span",{className:Te(m,ee({},"".concat(m,"-active"),h&&d<=o&&o<=f)),style:W(W({},g),r),onMouseDown:function(y){y.stopPropagation()},onClick:function(){a(o)}},i)},vut=function(t){var n=t.prefixCls,r=t.marks,i=t.onClick,o="".concat(n,"-mark");return r.length?p.createElement("div",{className:o},r.map(function(a){var s=a.value,l=a.style,c=a.label;return p.createElement(gut,{key:s,prefixCls:o,style:l,value:s,onClick:i},c)})):null},but=function(t){var n=t.prefixCls,r=t.value,i=t.style,o=t.activeStyle,a=p.useContext(w0),s=a.min,l=a.max,c=a.direction,u=a.included,d=a.includedStart,f=a.includedEnd,h="".concat(n,"-dot"),m=u&&d<=r&&r<=f,g=W(W({},iY(c,r,s,l)),typeof i=="function"?i(r):i);return m&&(g=W(W({},g),typeof o=="function"?o(r):o)),p.createElement("span",{className:Te(h,ee({},"".concat(h,"-active"),m)),style:g})},yut=function(t){var n=t.prefixCls,r=t.marks,i=t.dots,o=t.style,a=t.activeStyle,s=p.useContext(w0),l=s.min,c=s.max,u=s.step,d=p.useMemo(function(){var f=new Set;if(r.forEach(function(m){f.add(m.value)}),i&&u!==null)for(var h=l;h<=c;)f.add(h),h+=u;return Array.from(f)},[l,c,u,i,r]);return p.createElement("div",{className:"".concat(n,"-step")},d.map(function(f){return p.createElement(but,{prefixCls:n,key:f,value:f,style:o,activeStyle:a})}))},_ie=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=p.useContext(w0),u=c.direction,d=c.min,f=c.max,h=c.disabled,m=c.range,g=c.classNames,v="".concat(n,"-track"),y=FH(i,d,f),b=FH(o,d,f),_=function(C){!h&&s&&s(C,-1)},E={};switch(u){case"rtl":E.right="".concat(y*100,"%"),E.width="".concat(b*100-y*100,"%");break;case"btt":E.bottom="".concat(y*100,"%"),E.height="".concat(b*100-y*100,"%");break;case"ttb":E.top="".concat(y*100,"%"),E.height="".concat(b*100-y*100,"%");break;default:E.left="".concat(y*100,"%"),E.width="".concat(b*100-y*100,"%")}var w=l||Te(v,ee(ee({},"".concat(v,"-").concat(a+1),a!==null&&m),"".concat(n,"-track-draggable"),s),g.track);return p.createElement("div",{className:w,style:W(W({},E),r),onMouseDown:_,onTouchStart:_})},_ut=function(t){var n=t.prefixCls,r=t.style,i=t.values,o=t.startPoint,a=t.onStartMove,s=p.useContext(w0),l=s.included,c=s.range,u=s.min,d=s.styles,f=s.classNames,h=p.useMemo(function(){if(!c){if(i.length===0)return[];var g=o??u,v=i[0];return[{start:Math.min(g,v),end:Math.max(g,v)}]}for(var y=[],b=0;b<i.length-1;b+=1)y.push({start:i[b],end:i[b+1]});return y},[i,c,o,u]);if(!l)return null;var m=h!=null&&h.length&&(f.tracks||d.tracks)?p.createElement(_ie,{index:null,prefixCls:n,start:h[0].start,end:h[h.length-1].end,replaceCls:Te(f.tracks,"".concat(n,"-tracks")),style:d.tracks}):null;return p.createElement(p.Fragment,null,m,h.map(function(g,v){var y=g.start,b=g.end;return p.createElement(_ie,{index:v,prefixCls:n,style:W(W({},C1(r,v)),d.track),start:y,end:b,key:v,onStartMove:a})}))},Sut=130;function Sie(e){var t="targetTouches"in e?e.targetTouches[0]:e;return{pageX:t.pageX,pageY:t.pageY}}function Eut(e,t,n,r,i,o,a,s,l,c,u){var d=p.useState(null),f=Ie(d,2),h=f[0],m=f[1],g=p.useState(-1),v=Ie(g,2),y=v[0],b=v[1],_=p.useState(!1),E=Ie(_,2),w=E[0],S=E[1],C=p.useState(n),T=Ie(C,2),x=T[0],O=T[1],N=p.useState(n),I=Ie(N,2),M=I[0],F=I[1],k=p.useRef(null),B=p.useRef(null),A=p.useRef(null),P=p.useContext(ETe),z=P.onDragStart,L=P.onDragChange;sr(function(){y===-1&&O(n)},[n,y]),p.useEffect(function(){return function(){document.removeEventListener("mousemove",k.current),document.removeEventListener("mouseup",B.current),A.current&&(A.current.removeEventListener("touchmove",k.current),A.current.removeEventListener("touchend",B.current))}},[]);var V=function(ae,K,Q){K!==void 0&&m(K),O(ae);var oe=ae;Q&&(oe=ae.filter(function(ge,fe){return fe!==y})),a(oe),L&&L({rawValues:ae,deleteIndex:Q?y:-1,draggingIndex:y,draggingValue:K})},j=Yn(function(te,ae,K){if(te===-1){var Q=M[0],oe=M[M.length-1],ge=r-Q,fe=i-oe,ue=ae*(i-r);ue=Math.max(ue,ge),ue=Math.min(ue,fe);var le=o(Q+ue);ue=le-Q;var ve=M.map(function(Re){return Re+ue});V(ve)}else{var ne=(i-r)*ae,pe=nt(x);pe[te]=M[te];var be=l(pe,ne,te,"dist");V(be.values,be.value,K)}}),U=function(ae,K,Q){ae.stopPropagation();var oe=Q||n,ge=oe[K];b(K),m(ge),F(oe),O(oe),S(!1);var fe=Sie(ae),ue=fe.pageX,le=fe.pageY,ve=!1;z&&z({rawValues:oe,draggingIndex:K,draggingValue:ge});var ne=function(Re){Re.preventDefault();var Se=Sie(Re),Ce=Se.pageX,ye=Se.pageY,he=Ce-ue,_e=ye-le,Oe=e.current.getBoundingClientRect(),De=Oe.width,Y=Oe.height,D,G;switch(t){case"btt":D=-_e/Y,G=he;break;case"ttb":D=_e/Y,G=he;break;case"rtl":D=-he/De,G=_e;break;default:D=he/De,G=_e}ve=c?Math.abs(G)>Sut&&u<x.length:!1,S(ve),j(K,D,ve)},pe=function be(Re){Re.preventDefault(),document.removeEventListener("mouseup",be),document.removeEventListener("mousemove",ne),A.current&&(A.current.removeEventListener("touchmove",k.current),A.current.removeEventListener("touchend",B.current)),k.current=null,B.current=null,A.current=null,s(ve),b(-1),S(!1)};document.addEventListener("mouseup",pe),document.addEventListener("mousemove",ne),ae.currentTarget.addEventListener("touchend",pe),ae.currentTarget.addEventListener("touchmove",ne),k.current=ne,B.current=pe,A.current=ae.currentTarget},J=p.useMemo(function(){var te=nt(n).sort(function(ge,fe){return ge-fe}),ae=nt(x).sort(function(ge,fe){return ge-fe}),K={};ae.forEach(function(ge){K[ge]=(K[ge]||0)+1}),te.forEach(function(ge){K[ge]=(K[ge]||0)-1});var Q=c?1:0,oe=Object.values(K).reduce(function(ge,fe){return ge+Math.abs(fe)},0);return oe<=Q?x:n},[n,x,c]);return[y,h,w,J,U]}function Cut(e,t,n,r,i,o){var a=p.useCallback(function(h){return Math.max(e,Math.min(t,h))},[e,t]),s=p.useCallback(function(h){if(n!==null){var m=e+Math.round((a(h)-e)/n)*n,g=function(_){return(String(_).split(".")[1]||"").length},v=Math.max(g(n),g(t),g(e)),y=Number(m.toFixed(v));return e<=y&&y<=t?y:null}return null},[n,e,t,a]),l=p.useCallback(function(h){var m=a(h),g=r.map(function(b){return b.value});n!==null&&g.push(s(h)),g.push(e,t);var v=g[0],y=t-e;return g.forEach(function(b){var _=Math.abs(m-b);_<=y&&(v=b,y=_)}),v},[e,t,r,n,a,s]),c=function h(m,g,v){var y=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"unit";if(typeof g=="number"){var b,_=m[v],E=_+g,w=[];r.forEach(function(O){w.push(O.value)}),w.push(e,t),w.push(s(_));var S=g>0?1:-1;y==="unit"?w.push(s(_+S*n)):w.push(s(E)),w=w.filter(function(O){return O!==null}).filter(function(O){return g<0?O<=_:O>=_}),y==="unit"&&(w=w.filter(function(O){return O!==_}));var C=y==="unit"?_:E;b=w[0];var T=Math.abs(b-C);if(w.forEach(function(O){var N=Math.abs(O-C);N<T&&(b=O,T=N)}),b===void 0)return g<0?e:t;if(y==="dist")return b;if(Math.abs(g)>1){var x=nt(m);return x[v]=b,h(x,g-S,v,y)}return b}else{if(g==="min")return e;if(g==="max")return t}},u=function(m,g,v){var y=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"unit",b=m[v],_=c(m,g,v,y);return{value:_,changed:_!==b}},d=function(m){return o===null&&m===0||typeof o=="number"&&m<o},f=function(m,g,v){var y=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"unit",b=m.map(l),_=b[v],E=c(b,g,v,y);if(b[v]=E,i===!1){var w=o||0;v>0&&b[v-1]!==_&&(b[v]=Math.max(b[v],b[v-1]+w)),v<b.length-1&&b[v+1]!==_&&(b[v]=Math.min(b[v],b[v+1]-w))}else if(typeof o=="number"||o===null){for(var S=v+1;S<b.length;S+=1)for(var C=!0;d(b[S]-b[S-1])&&C;){var T=u(b,1,S);b[S]=T.value,C=T.changed}for(var x=v;x>0;x-=1)for(var O=!0;d(b[x]-b[x-1])&&O;){var N=u(b,-1,x-1);b[x-1]=N.value,O=N.changed}for(var I=b.length-1;I>0;I-=1)for(var M=!0;d(b[I]-b[I-1])&&M;){var F=u(b,-1,I-1);b[I-1]=F.value,M=F.changed}for(var k=0;k<b.length-1;k+=1)for(var B=!0;d(b[k+1]-b[k])&&B;){var A=u(b,1,k+1);b[k+1]=A.value,B=A.changed}}return{value:b[v],values:b}};return[l,f]}function wut(e){return p.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 Tut=p.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,f=d===void 0?!0:d,h=e.autoFocus,m=e.onFocus,g=e.onBlur,v=e.min,y=v===void 0?0:v,b=e.max,_=b===void 0?100:b,E=e.step,w=E===void 0?1:E,S=e.value,C=e.defaultValue,T=e.range,x=e.count,O=e.onChange,N=e.onBeforeChange,I=e.onAfterChange,M=e.onChangeComplete,F=e.allowCross,k=F===void 0?!0:F,B=e.pushable,A=B===void 0?!1:B,P=e.reverse,z=e.vertical,L=e.included,V=L===void 0?!0:L,j=e.startPoint,U=e.trackStyle,J=e.handleStyle,te=e.railStyle,ae=e.dotStyle,K=e.activeDotStyle,Q=e.marks,oe=e.dots,ge=e.handleRender,fe=e.activeHandleRender,ue=e.track,le=e.tabIndex,ve=le===void 0?0:le,ne=e.ariaLabelForHandle,pe=e.ariaLabelledByForHandle,be=e.ariaRequired,Re=e.ariaValueTextFormatterForHandle,Se=p.useRef(null),Ce=p.useRef(null),ye=p.useMemo(function(){return z?P?"ttb":"btt":P?"rtl":"ltr"},[P,z]),he=wut(T),_e=Ie(he,5),Oe=_e[0],De=_e[1],Y=_e[2],D=_e[3],G=_e[4],ie=p.useMemo(function(){return isFinite(y)?y:0},[y]),me=p.useMemo(function(){return isFinite(_)?_:100},[_]),se=p.useMemo(function(){return w!==null&&w<=0?1:w},[w]),Be=p.useMemo(function(){return typeof A=="boolean"?A?se:!1:A>=0?A:!1},[A,se]),Ve=p.useMemo(function(){return Object.keys(Q||{}).map(function(Pt){var rt=Q[Pt],Mt={value:Number(Pt)};return rt&&Gt(rt)==="object"&&!p.isValidElement(rt)&&("label"in rt||"style"in rt)?(Mt.style=rt.style,Mt.label=rt.label):Mt.label=rt,Mt}).filter(function(Pt){var rt=Pt.label;return rt||typeof rt=="number"}).sort(function(Pt,rt){return Pt.value-rt.value})},[Q]),re=Cut(ie,me,se,Ve,k,Be),Me=Ie(re,2),je=Me[0],ke=Me[1],Ge=Pn(C,{value:S}),Ue=Ie(Ge,2),qe=Ue[0],At=Ue[1],at=p.useMemo(function(){var Pt=qe==null?[]:Array.isArray(qe)?qe:[qe],rt=Ie(Pt,1),Mt=rt[0],It=Mt===void 0?ie:Mt,xn=qe===null?[]:[It];if(Oe){if(xn=nt(Pt),x||qe===void 0){var Hn=x>=0?x+1:2;for(xn=xn.slice(0,Hn);xn.length<Hn;){var R;xn.push((R=xn[xn.length-1])!==null&&R!==void 0?R:ie)}}xn.sort(function($,Z){return $-Z})}return xn.forEach(function($,Z){xn[Z]=je($)}),xn},[qe,Oe,ie,x,je]),pt=function(rt){return Oe?rt:rt[0]},Ct=Yn(function(Pt){var rt=nt(Pt).sort(function(Mt,It){return Mt-It});O&&!gu(rt,at,!0)&&O(pt(rt)),At(rt)}),bt=Yn(function(Pt){Pt&&Se.current.hideHelp();var rt=pt(at);I==null||I(rt),Yr(!I,"[rc-slider] `onAfterChange` is deprecated. Please use `onChangeComplete` instead."),M==null||M(rt)}),Vt=function(rt){if(!(u||!De||at.length<=D)){var Mt=nt(at);Mt.splice(rt,1),N==null||N(pt(Mt)),Ct(Mt);var It=Math.max(0,rt-1);Se.current.hideHelp(),Se.current.focus(It)}},Tt=Eut(Ce,ye,at,ie,me,je,Ct,bt,ke,De,D),Ot=Ie(Tt,5),Ut=Ot[0],ze=Ot[1],Ye=Ot[2],He=Ot[3],Ze=Ot[4],yt=function(rt,Mt){if(!u){var It=nt(at),xn=0,Hn=0,R=me-ie;at.forEach(function(et,$t){var pn=Math.abs(rt-et);pn<=R&&(R=pn,xn=$t),et<rt&&(Hn=$t)});var $=xn;De&&R!==0&&(!G||at.length<G)?(It.splice(Hn+1,0,rt),$=Hn+1):It[xn]=rt,Oe&&!at.length&&x===void 0&&It.push(rt);var Z=pt(It);if(N==null||N(Z),Ct(It),Mt){var xe,$e;(xe=document.activeElement)===null||xe===void 0||($e=xe.blur)===null||$e===void 0||$e.call(xe),Se.current.focus($),Ze(Mt,$,It)}else I==null||I(Z),Yr(!I,"[rc-slider] `onAfterChange` is deprecated. Please use `onChangeComplete` instead."),M==null||M(Z)}},_t=function(rt){rt.preventDefault();var Mt=Ce.current.getBoundingClientRect(),It=Mt.width,xn=Mt.height,Hn=Mt.left,R=Mt.top,$=Mt.bottom,Z=Mt.right,xe=rt.clientX,$e=rt.clientY,et;switch(ye){case"btt":et=($-$e)/xn;break;case"ttb":et=($e-R)/xn;break;case"rtl":et=(Z-xe)/It;break;default:et=(xe-Hn)/It}var $t=ie+et*(me-ie);yt(je($t),rt)},Bt=p.useState(null),Nt=Ie(Bt,2),vt=Nt[0],ht=Nt[1],kt=function(rt,Mt){if(!u){var It=ke(at,rt,Mt);N==null||N(pt(at)),Ct(It.values),ht(It.value)}};p.useEffect(function(){if(vt!==null){var Pt=at.indexOf(vt);Pt>=0&&Se.current.focus(Pt)}ht(null)},[vt]);var Et=p.useMemo(function(){return Y&&se===null?!1:Y},[Y,se]),Yt=Yn(function(Pt,rt){Ze(Pt,rt),N==null||N(pt(at))}),ct=Ut!==-1;p.useEffect(function(){if(!ct){var Pt=at.lastIndexOf(ze);Se.current.focus(Pt)}},[ct]);var Rt=p.useMemo(function(){return nt(He).sort(function(Pt,rt){return Pt-rt})},[He]),Ht=p.useMemo(function(){return Oe?[Rt[0],Rt[Rt.length-1]]:[ie,Rt[0]]},[Rt,Oe,ie]),wt=Ie(Ht,2),St=wt[0],jt=wt[1];p.useImperativeHandle(t,function(){return{focus:function(){Se.current.focus(0)},blur:function(){var rt,Mt=document,It=Mt.activeElement;(rt=Ce.current)!==null&&rt!==void 0&&rt.contains(It)&&(It==null||It.blur())}}}),p.useEffect(function(){h&&Se.current.focus(0)},[]);var Pe=p.useMemo(function(){return{min:ie,max:me,direction:ye,disabled:u,keyboard:f,step:se,included:V,includedStart:St,includedEnd:jt,range:Oe,tabIndex:ve,ariaLabelForHandle:ne,ariaLabelledByForHandle:pe,ariaRequired:be,ariaValueTextFormatterForHandle:Re,styles:s||{},classNames:a||{}}},[ie,me,ye,u,f,se,V,St,jt,Oe,ve,ne,pe,be,Re,s,a]);return p.createElement(w0.Provider,{value:Pe},p.createElement("div",{ref:Ce,className:Te(r,i,ee(ee(ee(ee({},"".concat(r,"-disabled"),u),"".concat(r,"-vertical"),z),"".concat(r,"-horizontal"),!z),"".concat(r,"-with-marks"),Ve.length)),style:o,onMouseDown:_t,id:l},p.createElement("div",{className:Te("".concat(r,"-rail"),a==null?void 0:a.rail),style:W(W({},te),s==null?void 0:s.rail)}),ue!==!1&&p.createElement(_ut,{prefixCls:r,style:U,values:at,startPoint:j,onStartMove:Et?Yt:void 0}),p.createElement(yut,{prefixCls:r,marks:Ve,dots:oe,style:ae,activeStyle:K}),p.createElement(mut,{ref:Se,prefixCls:r,style:J,values:He,draggingIndex:Ut,draggingDelete:Ye,onStartMove:Yt,onOffsetChange:kt,onFocus:m,onBlur:g,handleRender:ge,activeHandleRender:fe,onChangeComplete:bt,onDelete:De?Vt:void 0}),p.createElement(vut,{prefixCls:r,marks:Ve,onClick:yt})))});const CTe=p.createContext({}),Eie=p.forwardRef((e,t)=>{const{open:n,draggingDelete:r}=e,i=p.useRef(null),o=n&&!r,a=p.useRef(null);function s(){rr.cancel(a.current),a.current=null}function l(){a.current=rr(()=>{var c;(c=i.current)===null||c===void 0||c.forceAlign(),a.current=null})}return p.useEffect(()=>(o?l():s(),s),[o,e.title]),p.createElement(Ia,Object.assign({ref:oa(i,t)},e,{open:o}))}),xut=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:f,handleActiveOutlineColor:h,handleLineWidth:m,handleLineWidthHover:g,motionDurationMid:v}=e;return{[t]:Object.assign(Object.assign({},gr(e)),{position:"relative",height:r,margin:`${Ae(a)} ${Ae(o)}`,padding:0,cursor:"pointer",touchAction:"none","&-vertical":{margin:`${Ae(o)} ${Ae(a)}`},[`${t}-rail`]:{position:"absolute",backgroundColor:e.railBg,borderRadius:e.borderRadiusXS,transition:`background-color ${v}`},[`${t}-track,${t}-tracks`]:{position:"absolute",transition:`background-color ${v}`},[`${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 ${Ae(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 ${Ae(m)} ${e.handleColor}`,outline:"0px solid transparent",borderRadius:"50%",cursor:"pointer",transition:`
inset-inline-start ${v},
inset-block-start ${v},
width ${v},
height ${v},
box-shadow ${v},
outline ${v}
`},"&:hover, &:active, &:focus":{"&::before":{insetInlineStart:c(d).sub(u).div(2).add(g).mul(-1).equal(),insetBlockStart:c(d).sub(u).div(2).add(g).mul(-1).equal(),width:c(d).add(c(g).mul(2)).equal(),height:c(d).add(c(g).mul(2)).equal()},"&::after":{boxShadow:`0 0 0 ${Ae(g)} ${f}`,outline:`6px solid ${h}`,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:`${Ae(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 ${Ae(m)} ${l}`,insetInlineStart:0,insetBlockStart:0},[`
${t}-mark-text,
${t}-dot
`]:{cursor:"not-allowed !important"}},[`&-tooltip ${n}-tooltip-inner`]:{minWidth:"unset"}})}},wTe=(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",f=t?"top":"insetInlineStart",h=s(r).mul(3).sub(i).div(2).equal(),m=s(i).sub(r).div(2).equal(),g=t?{borderWidth:`${Ae(m)} 0`,transform:`translateY(${Ae(s(m).mul(-1).equal())})`}:{borderWidth:`0 ${Ae(m)}`,transform:`translateX(${Ae(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({},g),[`${n}-handle`]:{[d]:h},[`${n}-mark`]:{insetInlineStart:0,top:0,[f]:s(r).mul(3).add(t?0:a).equal(),[c]:"100%"},[`${n}-step`]:{insetInlineStart:0,top:0,[f]:r,[c]:"100%",[u]:r},[`${n}-dot`]:{position:"absolute",[d]:s(r).sub(o).div(2).equal()}}},Out=e=>{const{componentCls:t,marginPartWithMark:n}=e;return{[`${t}-horizontal`]:Object.assign(Object.assign({},wTe(e,!0)),{[`&${t}-with-marks`]:{marginBottom:n}})}},Rut=e=>{const{componentCls:t}=e;return{[`${t}-vertical`]:Object.assign(Object.assign({},wTe(e,!1)),{height:"100%"})}},Iut=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 ir(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 ir(e.colorTextDisabled).onBackground(e.colorBgContainer).toHexString(),dotBorderColor:e.colorBorderSecondary,dotActiveBorderColor:e.colorPrimaryBorder,trackBgDisabled:e.colorBgContainerDisabled}},Aut=cr("Slider",e=>{const t=Kn(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[xut(t),Out(t),Rut(t)]},Iut);function QL(){const[e,t]=p.useState(!1),n=p.useRef(null),r=()=>{rr.cancel(n.current)},i=o=>{r(),o?t(o):n.current=rr(()=>{t(o)})};return p.useEffect(()=>r,[]),[e,i]}var Nut=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 Mut(e,t){return e||e===null?e:t||t===null?t:n=>typeof n=="number"?n.toString():""}const TTe=ce.forwardRef((e,t)=>{var n,r,i,o,a,s,l,c,u,d;const{prefixCls:f,range:h,className:m,rootClassName:g,style:v,disabled:y,tooltipPrefixCls:b,tipFormatter:_,tooltipVisible:E,getTooltipPopupContainer:w,tooltipPlacement:S,tooltip:C={},onChangeComplete:T,classNames:x,styles:O}=e,N=Nut(e,["prefixCls","range","className","rootClassName","style","disabled","tooltipPrefixCls","tipFormatter","tooltipVisible","getTooltipPopupContainer","tooltipPlacement","tooltip","onChangeComplete","classNames","styles"]),{vertical:I}=e,{direction:M,slider:F,getPrefixCls:k,getPopupContainer:B}=ce.useContext(Qt),A=ce.useContext(Vo),P=y??A,{handleRender:z,direction:L}=ce.useContext(CTe),j=(L||M)==="rtl",[U,J]=QL(),[te,ae]=QL(),K=Object.assign({},C),{open:Q,placement:oe,getPopupContainer:ge,prefixCls:fe,formatter:ue}=K,le=Q??E,ve=(U||te)&&le!==!1,ne=Mut(ue,_),[pe,be]=QL(),Re=se=>{T==null||T(se),be(!1)},Se=(se,Be)=>se||(Be?j?"left":"right":"top"),Ce=k("slider",f),[ye,he,_e]=Aut(Ce),Oe=Te(m,F==null?void 0:F.className,(n=F==null?void 0:F.classNames)===null||n===void 0?void 0:n.root,x==null?void 0:x.root,g,{[`${Ce}-rtl`]:j,[`${Ce}-lock`]:pe},he,_e);j&&!N.vertical&&(N.reverse=!N.reverse),ce.useEffect(()=>{const se=()=>{rr(()=>{ae(!1)},1)};return document.addEventListener("mouseup",se),()=>{document.removeEventListener("mouseup",se)}},[]);const De=h&&!le,Y=z||((se,Be)=>{const{index:Ve}=Be,re=se.props;function Me(Ue,qe,At){var at,pt,Ct,bt;At&&((pt=(at=N)[Ue])===null||pt===void 0||pt.call(at,qe)),(bt=(Ct=re)[Ue])===null||bt===void 0||bt.call(Ct,qe)}const je=Object.assign(Object.assign({},re),{onMouseEnter:Ue=>{J(!0),Me("onMouseEnter",Ue)},onMouseLeave:Ue=>{J(!1),Me("onMouseLeave",Ue)},onMouseDown:Ue=>{ae(!0),be(!0),Me("onMouseDown",Ue)},onFocus:Ue=>{var qe;ae(!0),(qe=N.onFocus)===null||qe===void 0||qe.call(N,Ue),Me("onFocus",Ue,!0)},onBlur:Ue=>{var qe;ae(!1),(qe=N.onBlur)===null||qe===void 0||qe.call(N,Ue),Me("onBlur",Ue,!0)}}),ke=ce.cloneElement(se,je),Ge=(!!le||ve)&&ne!==null;return De?ke:ce.createElement(Eie,Object.assign({},K,{prefixCls:k("tooltip",fe??b),title:ne?ne(Be.value):"",open:Ge,placement:Se(oe??S,I),key:Ve,classNames:{root:`${Ce}-tooltip`},getPopupContainer:ge||w||B}),ke)}),D=De?(se,Be)=>{const Ve=ce.cloneElement(se,{style:Object.assign(Object.assign({},se.props.style),{visibility:"hidden"})});return ce.createElement(Eie,Object.assign({},K,{prefixCls:k("tooltip",fe??b),title:ne?ne(Be.value):"",open:ne!==null&&ve,placement:Se(oe??S,I),key:"tooltip",classNames:{root:`${Ce}-tooltip`},getPopupContainer:ge||w||B,draggingDelete:Be.draggingDelete}),Ve)}:void 0,G=Object.assign(Object.assign(Object.assign(Object.assign({},(r=F==null?void 0:F.styles)===null||r===void 0?void 0:r.root),F==null?void 0:F.style),O==null?void 0:O.root),v),ie=Object.assign(Object.assign({},(i=F==null?void 0:F.styles)===null||i===void 0?void 0:i.tracks),O==null?void 0:O.tracks),me=Te((o=F==null?void 0:F.classNames)===null||o===void 0?void 0:o.tracks,x==null?void 0:x.tracks);return ye(ce.createElement(Tut,Object.assign({},N,{classNames:Object.assign({handle:Te((a=F==null?void 0:F.classNames)===null||a===void 0?void 0:a.handle,x==null?void 0:x.handle),rail:Te((s=F==null?void 0:F.classNames)===null||s===void 0?void 0:s.rail,x==null?void 0:x.rail),track:Te((l=F==null?void 0:F.classNames)===null||l===void 0?void 0:l.track,x==null?void 0:x.track)},me?{tracks:me}:{}),styles:Object.assign({handle:Object.assign(Object.assign({},(c=F==null?void 0:F.styles)===null||c===void 0?void 0:c.handle),O==null?void 0:O.handle),rail:Object.assign(Object.assign({},(u=F==null?void 0:F.styles)===null||u===void 0?void 0:u.rail),O==null?void 0:O.rail),track:Object.assign(Object.assign({},(d=F==null?void 0:F.styles)===null||d===void 0?void 0:d.track),O==null?void 0:O.track)},Object.keys(ie).length?{tracks:ie}:{}),step:N.step,range:h,className:Oe,style:G,disabled:P,ref:t,prefixCls:Ce,handleRender:Y,activeHandleRender:D,onChangeComplete:Re})))});var kut=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 xTe=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,f=kut(e,["prefixCls","colors","type","color","range","className","activeIndex","onActive","onDragStart","onDragChange","onKeyDelete"]),h=Object.assign(Object.assign({},f),{track:!1}),m=p.useMemo(()=>`linear-gradient(90deg, ${n.map(S=>`${S.color} ${S.percent}%`).join(", ")})`,[n]),g=p.useMemo(()=>!i||!r?null:r==="alpha"?i.toRgbString():`hsl(${i.toHsb().h}, 100%, 50%)`,[i,r]),v=Yn(c),y=Yn(u),b=p.useMemo(()=>({onDragStart:v,onDragChange:y}),[]),_=Yn((w,S)=>{const{onFocus:C,style:T,className:x,onKeyDown:O}=w.props,N=Object.assign({},T);return r==="gradient"&&(N.background=USe(n,S.value)),p.cloneElement(w,{onFocus:I=>{l==null||l(S.index),C==null||C(I)},style:N,className:Te(x,{[`${t}-slider-handle-active`]:s===S.index}),onKeyDown:I=>{(I.key==="Delete"||I.key==="Backspace")&&d&&d(S.index),O==null||O(I)}})}),E=p.useMemo(()=>({direction:"ltr",handleRender:_}),[]);return p.createElement(CTe.Provider,{value:E},p.createElement(ETe.Provider,{value:b},p.createElement(TTe,Object.assign({},h,{className:Te(a,`${t}-slider`),tooltip:{open:!1},range:{editable:o,minCount:2},styles:{rail:{background:m},handle:g?{background:g}:{}},classNames:{rail:`${t}-slider-rail`,handle:`${t}-slider-handle`}}))))},Put=e=>{const{value:t,onChange:n,onChangeComplete:r}=e,i=a=>n(a[0]),o=a=>r(a[0]);return p.createElement(xTe,Object.assign({},e,{value:[t],onChange:i,onChangeComplete:o}))};function Cie(e){return nt(e).sort((t,n)=>t.percent-n.percent)}const Dut=e=>{const{prefixCls:t,mode:n,onChange:r,onChangeComplete:i,onActive:o,activeIndex:a,onGradientDragging:s,colors:l}=e,c=n==="gradient",u=p.useMemo(()=>l.map(y=>({percent:y.percent,color:y.color.toRgbString()})),[l]),d=p.useMemo(()=>u.map(y=>y.percent),[u]),f=p.useRef(u),h=y=>{let{rawValues:b,draggingIndex:_,draggingValue:E}=y;if(b.length>u.length){const w=USe(u,E),S=nt(u);S.splice(_,0,{percent:E,color:w}),f.current=S}else f.current=u;s(!0),r(new pc(Cie(f.current)),!0)},m=y=>{let{deleteIndex:b,draggingIndex:_,draggingValue:E}=y,w=nt(f.current);b!==-1?w.splice(b,1):(w[_]=Object.assign(Object.assign({},w[_]),{percent:E}),w=Cie(w)),r(new pc(w),!0)},g=y=>{const b=nt(u);b.splice(y,1);const _=new pc(b);r(_),i(_)},v=y=>{i(new pc(u)),a>=y.length&&o(y.length-1),s(!1)};return c?p.createElement(xTe,{min:0,max:100,prefixCls:t,className:`${t}-gradient-slider`,colors:u,color:null,value:d,range:!0,onChangeComplete:v,disabled:!1,type:"gradient",activeIndex:a,onActive:o,onDragStart:h,onDragChange:m,onKeyDelete:g}):null},Lut=p.memo(Dut);var $ut=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 Fut={slider:Put},wie=()=>{const e=p.useContext(fTe),{mode:t,onModeChange:n,modeOptions:r,prefixCls:i,allowClear:o,value:a,disabledAlpha:s,onChange:l,onClear:c,onChangeComplete:u,activeIndex:d,gradientDragging:f}=e,h=$ut(e,["mode","onModeChange","modeOptions","prefixCls","allowClear","value","disabledAlpha","onChange","onClear","onChangeComplete","activeIndex","gradientDragging"]),m=ce.useMemo(()=>a.cleared?[{percent:0,color:new pc("")},{percent:100,color:new pc("")}]:a.getColors(),[a]),g=!a.isGradient(),[v,y]=ce.useState(a);sr(()=>{var F;g||y((F=m[d])===null||F===void 0?void 0:F.color)},[f,d]);const b=ce.useMemo(()=>{var F;return g?a:f?v:(F=m[d])===null||F===void 0?void 0:F.color},[a,d,g,v,f]),[_,E]=ce.useState(b),[w,S]=ce.useState(0),C=_!=null&&_.equals(b)?b:_;sr(()=>{E(b)},[w,b==null?void 0:b.toHexString()]);const T=(F,k)=>{let B=Ns(F);if(a.cleared){const P=B.toRgb();if(!P.r&&!P.g&&!P.b&&k){const{type:z,value:L=0}=k;B=new pc({h:z==="hue"?L:0,s:1,b:1,a:z==="alpha"?L/100:1})}else B=MA(B)}if(t==="single")return B;const A=nt(m);return A[d]=Object.assign(Object.assign({},A[d]),{color:B}),new pc(A)},x=(F,k,B)=>{const A=T(F,B);E(A.isGradient()?A.getColors()[d].color:A),l(A,k)},O=(F,k)=>{u(T(F,k)),S(B=>B+1)},N=F=>{l(T(F))};let I=null;const M=r.length>1;return(o||M)&&(I=ce.createElement("div",{className:`${i}-operation`},M&&ce.createElement(dTe,{size:"small",options:r,value:t,onChange:n}),ce.createElement(hTe,Object.assign({prefixCls:i,value:a,onChange:F=>{l(F),c==null||c()}},h)))),ce.createElement(ce.Fragment,null,I,ce.createElement(Lut,Object.assign({},e,{colors:m})),ce.createElement(YQe,{prefixCls:i,value:C==null?void 0:C.toHsb(),disabledAlpha:s,onChange:(F,k)=>{x(F,!0,k)},onChangeComplete:(F,k)=>{O(F,k)},components:Fut}),ce.createElement(fut,Object.assign({value:b,onChange:N,prefixCls:i,disabledAlpha:s},h)))},Tie=()=>{const{prefixCls:e,value:t,presets:n,onChange:r}=p.useContext(pTe);return Array.isArray(n)?ce.createElement(UXe,{value:t,presets:n,prefixCls:e,onChange:r}):null},But=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:f,activeIndex:h,onActive:m,format:g,onFormatChange:v,gradientDragging:y,onGradientDragging:b,disabledFormat:_}=e,E=`${t}-inner`,w=ce.useMemo(()=>({prefixCls:t,value:i,onChange:o,onClear:a,allowClear:s,disabledAlpha:l,mode:c,onModeChange:u,modeOptions:d,onChangeComplete:f,activeIndex:h,onActive:m,format:g,onFormatChange:v,gradientDragging:y,onGradientDragging:b,disabledFormat:_}),[t,i,o,a,s,l,c,u,d,f,h,m,g,v,y,b,_]),S=ce.useMemo(()=>({prefixCls:t,value:i,presets:n,onChange:o}),[t,i,n,o]),C=ce.createElement("div",{className:`${E}-content`},ce.createElement(wie,null),Array.isArray(n)&&ce.createElement(Vlt,null),ce.createElement(Tie,null));return ce.createElement(fTe.Provider,{value:w},ce.createElement(pTe.Provider,{value:S},ce.createElement("div",{className:E},typeof r=="function"?r(C,{components:{Picker:wie,Presets:Tie}}):C)))};var jut=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=p.forwardRef((e,t)=>{const{color:n,prefixCls:r,open:i,disabled:o,format:a,className:s,showText:l,activeIndex:c}=e,u=jut(e,["color","prefixCls","open","disabled","format","className","showText","activeIndex"]),d=`${r}-trigger`,f=`${d}-text`,h=`${f}-cell`,[m]=ds("ColorPicker"),g=ce.useMemo(()=>{if(!l)return"";if(typeof l=="function")return l(n);if(n.cleared)return m.transparent;if(n.isGradient())return n.getColors().map((_,E)=>{const w=c!==-1&&c!==E;return ce.createElement("span",{key:E,className:Te(h,w&&`${h}-inactive`)},_.color.toRgbString()," ",_.percent,"%")});const y=n.toHexString().toUpperCase(),b=aq(n);switch(a){case"rgb":return n.toRgbString();case"hsb":return n.toHsbString();default:return b<100?`${y.slice(0,7)},${b}%`:y}},[n,a,l,c]),v=p.useMemo(()=>n.cleared?ce.createElement(hTe,{prefixCls:r}):ce.createElement(nq,{prefixCls:r,color:n.toCssString()}),[n,r]);return ce.createElement("div",Object.assign({ref:t,className:Te(d,s,{[`${d}-active`]:i,[`${d}-disabled`]:o})},xi(u)),v,l&&ce.createElement("div",{className:f},g))});function Uut(e,t,n){const[r]=ds("ColorPicker"),[i,o]=Pn(e,{value:t}),[a,s]=p.useState("single"),[l,c]=p.useMemo(()=>{const g=(Array.isArray(n)?n:[n]).filter(_=>_);g.length||g.push("single");const v=new Set(g),y=[],b=(_,E)=>{v.has(_)&&y.push({label:E,value:_})};return b("single",r.singleColor),b("gradient",r.gradientColor),[y,v]},[n]),[u,d]=p.useState(null),f=Yn(g=>{d(g),o(g)}),h=p.useMemo(()=>{const g=Ns(i||"");return g.equals(u)?u:g},[i,u]),m=p.useMemo(()=>{var g;return c.has(a)?a:(g=l[0])===null||g===void 0?void 0:g.value},[c,a,l]);return p.useEffect(()=>{s(h.isGradient()?"gradient":"single")},[h]),[h,f,m,s,l]}const OTe=(e,t)=>({backgroundImage:`conic-gradient(${t} 0 25%, transparent 0 50%, ${t} 0 75%, transparent 0)`,backgroundSize:`${e} ${e}`}),xie=(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"},OTe("50%",e.colorFillSecondary)),{[`${n}-color-block-inner`]:{width:"100%",height:"100%",boxShadow:`inset 0 0 0 ${Ae(o)} ${a}`,borderRadius:"inherit"}})}},zut=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:f,colorPickerInputNumberHandleWidth:h,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:h}},[`${t}-steppers${t}-alpha-input`]:{flex:`0 0 ${Ae(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:Ae(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 ${Ae(d)}`,[`${n}-input`]:{fontSize:r,textTransform:"uppercase",lineHeight:Ae(e.calc(l).sub(e.calc(m).mul(2)).equal())},[`${n}-input-prefix`]:{color:f}}}}}},Vut=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:`${Ae(l)} solid ${a}`,position:"relative",borderRadius:"50%",cursor:"pointer",boxShadow:`${i}, 0 0 0 1px ${s}`}}},Gut=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:f,marginXXS:h,paddingXS:m,fontHeightSM:g}=e;return{[`${t}-presets`]:{[`${n}-collapse-item > ${n}-collapse-header`]:{padding:0,[`${n}-collapse-expand-icon`]:{height:g,color:r,paddingInlineEnd:i}},[`${n}-collapse`]:{display:"flex",flexDirection:"column",gap:h},[`${n}-collapse-item > ${n}-collapse-content > ${n}-collapse-content-box`]:{padding:`${Ae(m)} 0`},"&-label":{fontSize:a,color:s,lineHeight:l},"&-items":{display:"flex",flexWrap:"wrap",gap:e.calc(h).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:`${Ae(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:`${Ae(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:f,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}}}},Wut=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(),f={"&:after":{transform:"scale(1)",boxShadow:`${n}, 0 0 0 1px ${e.colorPrimaryActive}`}};return{[`${t}-slider`]:[OTe(Ae(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:`${Ae(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":f}}],[`${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":f}}}},BH=(e,t,n)=>({borderInlineEndWidth:e.lineWidth,borderColor:t,boxShadow:`0 0 0 ${Ae(e.controlOutlineWidth)} ${n}`,outline:0}),qut=e=>{const{componentCls:t}=e;return{"&-rtl":{[`${t}-presets-color`]:{"&::after":{direction:"ltr"}},[`${t}-clear`]:{"&::after":{direction:"ltr"}}}}},Oie=(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:`${Ae(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}})}},Yut=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({},BH(e,n,a))},[`&${t}-status-warning`]:{borderColor:r,"&:hover":{borderColor:o},[`&${t}-trigger-active`]:Object.assign({},BH(e,r,s))}}},Kut=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:Ae(o)}}}},Qut=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:f,controlHeight:h,controlHeightSM:m,colorBgTextActive:g,colorPickerPresetColorSize:v,colorPickerPreviewSize:y,lineWidth:b,colorBorder:_,paddingXXS:E,fontSize:w,colorPrimaryHover:S,controlOutline:C}=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:`${Ae(f)} 0 ${Ae(d)}`}},[`${n}-panel`]:Object.assign({},Vut(e))},Wut(e)),xie(e,y)),zut(e)),Gut(e)),Oie(e,v,{marginInlineStart:"auto"})),{[`${n}-operation`]:{display:"flex",justifyContent:"space-between",marginBottom:d}}),"&-trigger":Object.assign(Object.assign(Object.assign(Object.assign({minWidth:h,minHeight:h,borderRadius:u,border:`${Ae(b)} solid ${_}`,cursor:"pointer",display:"inline-flex",alignItems:"flex-start",justifyContent:"center",transition:`all ${o}`,background:a,padding:e.calc(E).sub(b).equal(),[`${n}-trigger-text`]:{marginInlineStart:d,marginInlineEnd:e.calc(d).sub(e.calc(E).sub(b)).equal(),fontSize:w,color:l,alignSelf:"center","&-cell":{"&:not(:last-child):after":{content:'", "'},"&-inactive":{color:s}}},"&:hover":{borderColor:S},[`&${n}-trigger-active`]:Object.assign({},BH(e,i,C)),"&-disabled":{color:s,background:c,cursor:"not-allowed","&:hover":{borderColor:g},[`${n}-trigger-text`]:{color:s}}},Oie(e,m)),xie(e,m)),Yut(e)),Kut(e))},qut(e))},S0(e,{focusElCls:`${n}-trigger-active`})]},Xut=cr("ColorPicker",e=>{const{colorTextQuaternary:t,marginSM:n}=e,r=8,i=Kn(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[Qut(i)]});var Zut=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 oY=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:f="bottomLeft",arrow:h=!0,panelRender:m,showText:g,style:v,className:y,size:b,rootClassName:_,prefixCls:E,styles:w,disabledAlpha:S=!1,onFormatChange:C,onChange:T,onClear:x,onOpenChange:O,onChangeComplete:N,getPopupContainer:I,autoAdjustOverflow:M=!0,destroyTooltipOnHide:F,disabledFormat:k}=e,B=Zut(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:A,direction:P,colorPicker:z}=p.useContext(Qt),L=p.useContext(Vo),V=d??L,[j,U]=Pn(!1,{value:u,postState:je=>!V&&je,onChange:O}),[J,te]=Pn(i,{value:i,defaultValue:o,onChange:C}),ae=A("color-picker",E),[K,Q,oe,ge,fe]=Uut(r,n,t),ue=p.useMemo(()=>aq(K)<100,[K]),[le,ve]=ce.useState(null),ne=je=>{if(N){let ke=Ns(je);S&&ue&&(ke=MA(je)),N(ke)}},pe=(je,ke)=>{let Ge=Ns(je);S&&ue&&(Ge=MA(Ge)),Q(Ge),ve(null),T&&T(Ge,Ge.toCssString()),ke||ne(Ge)},[be,Re]=ce.useState(0),[Se,Ce]=ce.useState(!1),ye=je=>{if(ge(je),je==="single"&&K.isGradient())Re(0),pe(new pc(K.getColors()[0].color)),ve(K);else if(je==="gradient"&&!K.isGradient()){const ke=ue?MA(K):K;pe(new pc(le||[{percent:0,color:ke},{percent:100,color:ke}]))}},{status:he}=ce.useContext(ia),{compactSize:_e,compactItemClassnames:Oe}=Fd(ae,P),De=So(je=>{var ke;return(ke=b??_e)!==null&&ke!==void 0?ke:je}),Y=ui(ae),[D,G,ie]=Xut(ae,Y),me={[`${ae}-rtl`]:P},se=Te(_,ie,Y,me),Be=Te(Id(ae,he),{[`${ae}-sm`]:De==="small",[`${ae}-lg`]:De==="large"},Oe,z==null?void 0:z.className,se,y,G),Ve=Te(ae,se),re={open:j,trigger:c,placement:f,arrow:h,rootClassName:_,getPopupContainer:I,autoAdjustOverflow:M,destroyTooltipOnHide:F},Me=Object.assign(Object.assign({},z==null?void 0:z.style),v);return D(ce.createElement(bu,Object.assign({style:w==null?void 0:w.popup,styles:{body:w==null?void 0:w.popupOverlayInner},onOpenChange:je=>{(!je||!V)&&U(je)},content:ce.createElement(Rd,{form:!0},ce.createElement(But,{mode:oe,onModeChange:ye,modeOptions:fe,prefixCls:ae,value:K,allowClear:a,disabled:V,disabledAlpha:S,presets:s,panelRender:m,format:J,onFormatChange:te,onChange:pe,onChangeComplete:ne,onClear:x,activeIndex:be,onActive:Re,gradientDragging:Se,onGradientDragging:Ce,disabledFormat:k})),classNames:{root:Ve}},re),l||ce.createElement(Hut,Object.assign({activeIndex:j?be:-1,open:j,className:Be,style:Me,prefixCls:ae,disabled:V,showText:g,format:J},B,{color:K}))))},Jut=Ig(oY,void 0,e=>Object.assign(Object.assign({},e),{placement:"bottom",autoAdjustOverflow:!1}),"color-picker",e=>e);oY._InternalPanelDoNotUseOrYouWillBeFired=Jut;var edt={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"},tdt=function(t,n){return p.createElement(Nn,Ke({},t,{ref:n,icon:edt}))},RTe=p.forwardRef(tdt),ndt={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"},rdt=function(t,n){return p.createElement(Nn,Ke({},t,{ref:n,icon:ndt}))},ITe=p.forwardRef(rdt),idt={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"},odt=function(t,n){return p.createElement(Nn,Ke({},t,{ref:n,icon:idt}))},adt=p.forwardRef(odt);function sdt(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 ldt(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 ATe(e,t){const{allowClear:n=!0}=e,{clearIcon:r,removeIcon:i}=L5(Object.assign(Object.assign({},e),{prefixCls:t,componentName:"DatePicker"}));return[p.useMemo(()=>n===!1?!1:Object.assign({clearIcon:r},n===!0?{}:n),[n,r]),i]}const[cdt,udt]=["week","WeekPicker"],[ddt,fdt]=["month","MonthPicker"],[pdt,hdt]=["year","YearPicker"],[mdt,gdt]=["quarter","QuarterPicker"],[NTe,Rie]=["time","TimePicker"],vdt=e=>p.createElement($n,Object.assign({size:"small",type:"primary"},e));function MTe(e){return p.useMemo(()=>Object.assign({button:vdt},e),[e])}var bdt=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 ydt=e=>p.forwardRef((n,r)=>{var i;const{prefixCls:o,getPopupContainer:a,components:s,className:l,style:c,placement:u,size:d,disabled:f,bordered:h=!0,placeholder:m,popupClassName:g,dropdownClassName:v,status:y,rootClassName:b,variant:_,picker:E}=n,w=bdt(n,["prefixCls","getPopupContainer","components","className","style","placement","size","disabled","bordered","placeholder","popupClassName","dropdownClassName","status","rootClassName","variant","picker"]),S=p.useRef(null),{getPrefixCls:C,direction:T,getPopupContainer:x,rangePicker:O}=p.useContext(Qt),N=C("picker",o),{compactSize:I,compactItemClassnames:M}=Fd(N,T),F=C(),[k,B]=Th("rangePicker",_,h),A=ui(N),[P,z,L]=Pwe(N,A),[V]=ATe(n,N),j=MTe(s),U=So(ve=>{var ne;return(ne=d??I)!==null&&ne!==void 0?ne:ve}),J=p.useContext(Vo),te=f??J,ae=p.useContext(ia),{hasFeedback:K,status:Q,feedbackIcon:oe}=ae,ge=p.createElement(p.Fragment,null,E===NTe?p.createElement(ITe,null):p.createElement(RTe,null),K&&oe);p.useImperativeHandle(r,()=>S.current);const[fe]=ds("Calendar",pM),ue=Object.assign(Object.assign({},fe),n.locale),[le]=Ou("DatePicker",(i=n.popupStyle)===null||i===void 0?void 0:i.zIndex);return P(p.createElement(Rd,{space:!0},p.createElement(pat,Object.assign({separator:p.createElement("span",{"aria-label":"to",className:`${N}-separator`},p.createElement(adt,null)),disabled:te,ref:S,placement:u,placeholder:ldt(ue,E,m),suffixIcon:ge,prevIcon:p.createElement("span",{className:`${N}-prev-icon`}),nextIcon:p.createElement("span",{className:`${N}-next-icon`}),superPrevIcon:p.createElement("span",{className:`${N}-super-prev-icon`}),superNextIcon:p.createElement("span",{className:`${N}-super-next-icon`}),transitionName:`${F}-slide-up`,picker:E},w,{className:Te({[`${N}-${U}`]:U,[`${N}-${k}`]:B},Id(N,wh(Q,y),K),z,M,l,O==null?void 0:O.className,L,A,b),style:Object.assign(Object.assign({},O==null?void 0:O.style),c),locale:ue.lang,prefixCls:N,getPopupContainer:a||x,generateConfig:e,components:j,direction:T,classNames:{popup:Te(z,g||v,L,A,b)},styles:{popup:Object.assign(Object.assign({},n.popupStyle),{zIndex:le})},allowClear:V}))))});var _dt=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 Sdt=e=>{const t=(l,c)=>{const u=c===Rie?"timePicker":"datePicker";return p.forwardRef((f,h)=>{var m;const{prefixCls:g,getPopupContainer:v,components:y,style:b,className:_,rootClassName:E,size:w,bordered:S,placement:C,placeholder:T,popupClassName:x,dropdownClassName:O,disabled:N,status:I,variant:M,onCalendarChange:F}=f,k=_dt(f,["prefixCls","getPopupContainer","components","style","className","rootClassName","size","bordered","placement","placeholder","popupClassName","dropdownClassName","disabled","status","variant","onCalendarChange"]),{getPrefixCls:B,direction:A,getPopupContainer:P,[u]:z}=p.useContext(Qt),L=B("picker",g),{compactSize:V,compactItemClassnames:j}=Fd(L,A),U=p.useRef(null),[J,te]=Th("datePicker",M,S),ae=ui(L),[K,Q,oe]=Pwe(L,ae);p.useImperativeHandle(h,()=>U.current);const ge={showToday:!0},fe=l||f.picker,ue=B(),{onSelect:le,multiple:ve}=k,ne=le&&l==="time"&&!ve,pe=(se,Be,Ve)=>{F==null||F(se,Be,Ve),ne&&le(se)},[be,Re]=ATe(f,L),Se=MTe(y),Ce=So(se=>{var Be;return(Be=w??V)!==null&&Be!==void 0?Be:se}),ye=p.useContext(Vo),he=N??ye,_e=p.useContext(ia),{hasFeedback:Oe,status:De,feedbackIcon:Y}=_e,D=p.createElement(p.Fragment,null,fe==="time"?p.createElement(ITe,null):p.createElement(RTe,null),Oe&&Y),[G]=ds("DatePicker",pM),ie=Object.assign(Object.assign({},G),f.locale),[me]=Ou("DatePicker",(m=f.popupStyle)===null||m===void 0?void 0:m.zIndex);return K(p.createElement(Rd,{space:!0},p.createElement(yat,Object.assign({ref:U,placeholder:sdt(ie,fe,T),suffixIcon:D,placement:C,prevIcon:p.createElement("span",{className:`${L}-prev-icon`}),nextIcon:p.createElement("span",{className:`${L}-next-icon`}),superPrevIcon:p.createElement("span",{className:`${L}-super-prev-icon`}),superNextIcon:p.createElement("span",{className:`${L}-super-next-icon`}),transitionName:`${ue}-slide-up`,picker:l,onCalendarChange:pe},ge,k,{locale:ie.lang,className:Te({[`${L}-${Ce}`]:Ce,[`${L}-${J}`]:te},Id(L,wh(De,I),Oe),Q,j,z==null?void 0:z.className,_,oe,ae,E),style:Object.assign(Object.assign({},z==null?void 0:z.style),b),prefixCls:L,getPopupContainer:v||P,generateConfig:e,components:Se,direction:A,disabled:he,classNames:{popup:Te(Q,oe,ae,E,x||O)},styles:{popup:Object.assign(Object.assign({},f.popupStyle),{zIndex:me})},allowClear:be,removeIcon:Re}))))})},n=t(),r=t(cdt,udt),i=t(ddt,fdt),o=t(pdt,hdt),a=t(mdt,gdt),s=t(NTe,Rie);return{DatePicker:n,WeekPicker:r,MonthPicker:i,YearPicker:o,TimePicker:s,QuarterPicker:a}},kTe=e=>{const{DatePicker:t,WeekPicker:n,MonthPicker:r,YearPicker:i,TimePicker:o,QuarterPicker:a}=Sdt(e),s=ydt(e),l=t;return l.WeekPicker=n,l.MonthPicker=r,l.YearPicker=i,l.RangePicker=s,l.TimePicker=o,l.QuarterPicker=a,l},yu=kTe(Sot),Edt=Ig(yu,"popupAlign",void 0,"picker");yu._InternalPanelDoNotUseOrYouWillBeFired=Edt;const Cdt=Ig(yu.RangePicker,"popupAlign",void 0,"picker");yu._InternalRangePanelDoNotUseOrYouWillBeFired=Cdt;yu.generatePicker=kTe;var Iie=p.createContext(null),PTe=p.createContext({}),wdt=["prefixCls","className","containerRef"],Tdt=function(t){var n=t.prefixCls,r=t.className,i=t.containerRef,o=Dt(t,wdt),a=p.useContext(PTe),s=a.panel,l=$d(s,i);return p.createElement("div",Ke({className:Te("".concat(n,"-content"),r),role:"dialog",ref:l},xi(t,{aria:!0}),{"aria-modal":"true"},o))};function Aie(e){return typeof e=="string"&&String(Number(e))===e?(Yr(!1,"Invalid value type of `width` or `height` which should be number type instead."),Number(e)):e}var Nie={width:0,height:0,overflow:"hidden",outline:"none",position:"absolute"};function xdt(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,f=e.keyboard,h=e.classNames,m=e.rootClassName,g=e.rootStyle,v=e.zIndex,y=e.className,b=e.id,_=e.style,E=e.motion,w=e.width,S=e.height,C=e.children,T=e.mask,x=e.maskClosable,O=e.maskMotion,N=e.maskClassName,I=e.maskStyle,M=e.afterOpenChange,F=e.onClose,k=e.onMouseEnter,B=e.onMouseOver,A=e.onMouseLeave,P=e.onClick,z=e.onKeyDown,L=e.onKeyUp,V=e.styles,j=e.drawerRender,U=p.useRef(),J=p.useRef(),te=p.useRef();p.useImperativeHandle(t,function(){return U.current});var ae=function(he){var _e=he.keyCode,Oe=he.shiftKey;switch(_e){case dt.TAB:{if(_e===dt.TAB){if(!Oe&&document.activeElement===te.current){var De;(De=J.current)===null||De===void 0||De.focus({preventScroll:!0})}else if(Oe&&document.activeElement===J.current){var Y;(Y=te.current)===null||Y===void 0||Y.focus({preventScroll:!0})}}break}case dt.ESC:{F&&f&&(he.stopPropagation(),F(he));break}}};p.useEffect(function(){if(a&&d){var ye;(ye=U.current)===null||ye===void 0||ye.focus({preventScroll:!0})}},[a]);var K=p.useState(!1),Q=Ie(K,2),oe=Q[0],ge=Q[1],fe=p.useContext(Iie),ue;typeof c=="boolean"?ue=c?{}:{distance:0}:ue=c||{};var le=(n=(r=(i=ue)===null||i===void 0?void 0:i.distance)!==null&&r!==void 0?r:fe==null?void 0:fe.pushDistance)!==null&&n!==void 0?n:180,ve=p.useMemo(function(){return{pushDistance:le,push:function(){ge(!0)},pull:function(){ge(!1)}}},[le]);p.useEffect(function(){if(a){var ye;fe==null||(ye=fe.push)===null||ye===void 0||ye.call(fe)}else{var he;fe==null||(he=fe.pull)===null||he===void 0||he.call(fe)}},[a]),p.useEffect(function(){return function(){var ye;fe==null||(ye=fe.pull)===null||ye===void 0||ye.call(fe)}},[]);var ne=T&&p.createElement(ra,Ke({key:"mask"},O,{visible:a}),function(ye,he){var _e=ye.className,Oe=ye.style;return p.createElement("div",{className:Te("".concat(o,"-mask"),_e,h==null?void 0:h.mask,N),style:W(W(W({},Oe),I),V==null?void 0:V.mask),onClick:x&&a?F:void 0,ref:he})}),pe=typeof E=="function"?E(s):E,be={};if(oe&&le)switch(s){case"top":be.transform="translateY(".concat(le,"px)");break;case"bottom":be.transform="translateY(".concat(-le,"px)");break;case"left":be.transform="translateX(".concat(le,"px)");break;default:be.transform="translateX(".concat(-le,"px)");break}s==="left"||s==="right"?be.width=Aie(w):be.height=Aie(S);var Re={onMouseEnter:k,onMouseOver:B,onMouseLeave:A,onClick:P,onKeyDown:z,onKeyUp:L},Se=p.createElement(ra,Ke({key:"panel"},pe,{visible:a,forceRender:u,onVisibleChanged:function(he){M==null||M(he)},removeOnLeave:!1,leavedClassName:"".concat(o,"-content-wrapper-hidden")}),function(ye,he){var _e=ye.className,Oe=ye.style,De=p.createElement(Tdt,Ke({id:b,containerRef:he,prefixCls:o,className:Te(y,h==null?void 0:h.content),style:W(W({},_),V==null?void 0:V.content)},xi(e,{aria:!0}),Re),C);return p.createElement("div",Ke({className:Te("".concat(o,"-content-wrapper"),h==null?void 0:h.wrapper,_e),style:W(W(W({},be),Oe),V==null?void 0:V.wrapper)},xi(e,{data:!0})),j?j(De):De)}),Ce=W({},g);return v&&(Ce.zIndex=v),p.createElement(Iie.Provider,{value:ve},p.createElement("div",{className:Te(o,"".concat(o,"-").concat(s),m,ee(ee({},"".concat(o,"-open"),a),"".concat(o,"-inline"),l)),style:Ce,tabIndex:-1,ref:U,onKeyDown:ae},ne,p.createElement("div",{tabIndex:0,ref:J,style:Nie,"aria-hidden":"true","data-sentinel":"start"}),Se,p.createElement("div",{tabIndex:0,ref:te,style:Nie,"aria-hidden":"true","data-sentinel":"end"})))}var Odt=p.forwardRef(xdt),Rdt=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,f=t.width,h=f===void 0?378:f,m=t.mask,g=m===void 0?!0:m,v=t.maskClosable,y=v===void 0?!0:v,b=t.getContainer,_=t.forceRender,E=t.afterOpenChange,w=t.destroyOnClose,S=t.onMouseEnter,C=t.onMouseOver,T=t.onMouseLeave,x=t.onClick,O=t.onKeyDown,N=t.onKeyUp,I=t.panelRef,M=p.useState(!1),F=Ie(M,2),k=F[0],B=F[1],A=p.useState(!1),P=Ie(A,2),z=P[0],L=P[1];sr(function(){L(!0)},[]);var V=z?r:!1,j=p.useRef(),U=p.useRef();sr(function(){V&&(U.current=document.activeElement)},[V]);var J=function(oe){var ge;if(B(oe),E==null||E(oe),!oe&&U.current&&!((ge=j.current)!==null&&ge!==void 0&&ge.contains(U.current))){var fe;(fe=U.current)===null||fe===void 0||fe.focus({preventScroll:!0})}},te=p.useMemo(function(){return{panel:I}},[I]);if(!_&&!k&&!V&&w)return null;var ae={onMouseEnter:S,onMouseOver:C,onMouseLeave:T,onClick:x,onKeyDown:O,onKeyUp:N},K=W(W({},t),{},{open:V,prefixCls:o,placement:s,autoFocus:c,keyboard:d,width:h,mask:g,maskClosable:y,inline:b===!1,afterOpenChange:J,ref:j},ae);return p.createElement(PTe.Provider,{value:te},p.createElement(i2,{open:V||_||k,autoDestroy:!1,getContainer:b,autoLock:g&&(V||k)},p.createElement(Odt,K)))};const DTe=e=>{var t,n;const{prefixCls:r,title:i,footer:o,extra:a,loading:s,onClose:l,headerStyle:c,bodyStyle:u,footerStyle:d,children:f,classNames:h,styles:m}=e,{drawer:g}=p.useContext(Qt),v=p.useCallback(w=>p.createElement("button",{type:"button",onClick:l,"aria-label":"Close",className:`${r}-close`},w),[l]),[y,b]=mq(m_(e),m_(g),{closable:!0,closeIconRender:v}),_=p.useMemo(()=>{var w,S;return!i&&!y?null:p.createElement("div",{style:Object.assign(Object.assign(Object.assign({},(w=g==null?void 0:g.styles)===null||w===void 0?void 0:w.header),c),m==null?void 0:m.header),className:Te(`${r}-header`,{[`${r}-header-close-only`]:y&&!i&&!a},(S=g==null?void 0:g.classNames)===null||S===void 0?void 0:S.header,h==null?void 0:h.header)},p.createElement("div",{className:`${r}-header-title`},b,i&&p.createElement("div",{className:`${r}-title`},i)),a&&p.createElement("div",{className:`${r}-extra`},a))},[y,b,a,c,r,i]),E=p.useMemo(()=>{var w,S;if(!o)return null;const C=`${r}-footer`;return p.createElement("div",{className:Te(C,(w=g==null?void 0:g.classNames)===null||w===void 0?void 0:w.footer,h==null?void 0:h.footer),style:Object.assign(Object.assign(Object.assign({},(S=g==null?void 0:g.styles)===null||S===void 0?void 0:S.footer),d),m==null?void 0:m.footer)},o)},[o,d,r]);return p.createElement(p.Fragment,null,_,p.createElement("div",{className:Te(`${r}-body`,h==null?void 0:h.body,(t=g==null?void 0:g.classNames)===null||t===void 0?void 0:t.body),style:Object.assign(Object.assign(Object.assign({},(n=g==null?void 0:g.styles)===null||n===void 0?void 0:n.body),u),m==null?void 0:m.body)},s?p.createElement(Ch,{active:!0,title:!1,paragraph:{rows:5},className:`${r}-body-skeleton`}):f),E)},Idt=e=>{const t="100%";return{left:`translateX(-${t})`,right:`translateX(${t})`,top:`translateY(-${t})`,bottom:`translateY(${t})`}[e]},LTe=(e,t)=>({"&-enter, &-appear":Object.assign(Object.assign({},e),{"&-active":t}),"&-leave":Object.assign(Object.assign({},t),{"&-active":e})}),$Te=(e,t)=>Object.assign({"&-enter, &-appear, &-leave":{"&-start":{transition:"none"},"&-active":{transition:`all ${t}`}}},LTe({opacity:e},{opacity:1})),Adt=(e,t)=>[$Te(.7,t),LTe({transform:Idt(e)},{transform:"none"})],Ndt=e=>{const{componentCls:t,motionDurationSlow:n}=e;return{[t]:{[`${t}-mask-motion`]:$Te(0,n),[`${t}-panel-motion`]:["left","right","top","bottom"].reduce((r,i)=>Object.assign(Object.assign({},r),{[`&-${i}`]:Adt(i,n)}),{})}}},Mdt=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:f,lineWidth:h,lineType:m,colorSplit:g,marginXS:v,colorIcon:y,colorIconHover:b,colorBgTextHover:_,colorBgTextActive:E,colorText:w,fontWeightStrong:S,footerPaddingBlock:C,footerPaddingInline:T,calc:x}=e,O=`${n}-content-wrapper`;return{[n]:{position:"fixed",inset:0,zIndex:r,pointerEvents:"none",color:w,"&-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"},[O]:{position:"absolute",zIndex:r,maxWidth:"100vw",transition:`all ${a}`,"&-hidden":{display:"none"}},[`&-left > ${O}`]:{top:0,bottom:0,left:{_skip_check_:!0,value:0},boxShadow:e.boxShadowDrawerLeft},[`&-right > ${O}`]:{top:0,right:{_skip_check_:!0,value:0},bottom:0,boxShadow:e.boxShadowDrawerRight},[`&-top > ${O}`]:{top:0,insetInline:0,boxShadow:e.boxShadowDrawerUp},[`&-bottom > ${O}`]:{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:`${Ae(c)} ${Ae(u)}`,fontSize:d,lineHeight:f,borderBottom:`${Ae(h)} ${m} ${g}`,"&-title":{display:"flex",flex:1,alignItems:"center",minWidth:0,minHeight:0}},[`${n}-extra`]:{flex:"none"},[`${n}-close`]:Object.assign({display:"inline-flex",width:x(d).add(l).equal(),height:x(d).add(l).equal(),borderRadius:t,justifyContent:"center",alignItems:"center",marginInlineEnd:v,color:y,fontWeight:S,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:_,textDecoration:"none"},"&:active":{backgroundColor:E}},Xs(e)),[`${n}-title`]:{flex:1,margin:0,fontWeight:e.fontWeightStrong,fontSize:d,lineHeight:f},[`${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:`${Ae(C)} ${Ae(T)}`,borderTop:`${Ae(h)} ${m} ${g}`},"&-rtl":{direction:"rtl"}}}},kdt=e=>({zIndexPopup:e.zIndexPopupBase,footerPaddingBlock:e.paddingXS,footerPaddingInline:e.padding}),FTe=cr("Drawer",e=>{const t=Kn(e,{});return[Mdt(t),Ndt(t)]},kdt);var BTe=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 Pdt={distance:180},aY=e=>{const{rootClassName:t,width:n,height:r,size:i="default",mask:o=!0,push:a=Pdt,open:s,afterOpenChange:l,onClose:c,prefixCls:u,getContainer:d,style:f,className:h,visible:m,afterVisibleChange:g,maskStyle:v,drawerStyle:y,contentWrapperStyle:b}=e,_=BTe(e,["rootClassName","width","height","size","mask","push","open","afterOpenChange","onClose","prefixCls","getContainer","style","className","visible","afterVisibleChange","maskStyle","drawerStyle","contentWrapperStyle"]),{getPopupContainer:E,getPrefixCls:w,direction:S,drawer:C}=p.useContext(Qt),T=w("drawer",u),[x,O,N]=FTe(T),I=d===void 0&&E?()=>E(document.body):d,M=Te({"no-mask":!o,[`${T}-rtl`]:S==="rtl"},t,O,N),F=p.useMemo(()=>n??(i==="large"?736:378),[n,i]),k=p.useMemo(()=>r??(i==="large"?736:378),[r,i]),B={motionName:Va(T,"mask-motion"),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500},A=te=>({motionName:Va(T,`panel-motion-${te}`),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500}),P=uEe(),[z,L]=Ou("Drawer",_.zIndex),{classNames:V={},styles:j={}}=_,{classNames:U={},styles:J={}}=C||{};return x(p.createElement(Rd,{form:!0,space:!0},p.createElement(Jx.Provider,{value:L},p.createElement(Rdt,Object.assign({prefixCls:T,onClose:c,maskMotion:B,motion:A},_,{classNames:{mask:Te(V.mask,U.mask),content:Te(V.content,U.content),wrapper:Te(V.wrapper,U.wrapper)},styles:{mask:Object.assign(Object.assign(Object.assign({},j.mask),v),J.mask),content:Object.assign(Object.assign(Object.assign({},j.content),y),J.content),wrapper:Object.assign(Object.assign(Object.assign({},j.wrapper),b),J.wrapper)},open:s??m,mask:o,push:a,width:F,height:k,style:Object.assign(Object.assign({},C==null?void 0:C.style),f),className:Te(C==null?void 0:C.className,h),rootClassName:M,getContainer:I,afterOpenChange:l??g,panelRef:P,zIndex:z}),p.createElement(DTe,Object.assign({prefixCls:T},_,{onClose:c}))))))},Ddt=e=>{const{prefixCls:t,style:n,className:r,placement:i="right"}=e,o=BTe(e,["prefixCls","style","className","placement"]),{getPrefixCls:a}=p.useContext(Qt),s=a("drawer",t),[l,c,u]=FTe(s),d=Te(s,`${s}-pure`,`${s}-${i}`,c,u,r);return l(p.createElement("div",{className:d,style:n},p.createElement(DTe,Object.assign({prefixCls:s},o))))};aY._InternalPanelDoNotUseOrYouWillBeFired=Ddt;function Mie(e){return["small","middle","large"].includes(e)}function kie(e){return e?typeof e=="number"&&!Number.isNaN(e):!1}const jTe=ce.createContext({latestIndex:0}),Ldt=jTe.Provider,$dt=e=>{let{className:t,index:n,children:r,split:i,style:o}=e;const{latestIndex:a}=p.useContext(jTe);return r==null?null:p.createElement(p.Fragment,null,p.createElement("div",{className:t,style:o},r),n<a&&i&&p.createElement("span",{className:`${t}-split`},i))};var Fdt=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 Bdt=p.forwardRef((e,t)=>{var n,r,i;const{getPrefixCls:o,space:a,direction:s}=p.useContext(Qt),{size:l=(n=a==null?void 0:a.size)!==null&&n!==void 0?n:"small",align:c,className:u,rootClassName:d,children:f,direction:h="horizontal",prefixCls:m,split:g,style:v,wrap:y=!1,classNames:b,styles:_}=e,E=Fdt(e,["size","align","className","rootClassName","children","direction","prefixCls","split","style","wrap","classNames","styles"]),[w,S]=Array.isArray(l)?l:[l,l],C=Mie(S),T=Mie(w),x=kie(S),O=kie(w),N=Mo(f,{keepEmpty:!0}),I=c===void 0&&h==="horizontal"?"center":c,M=o("space",m),[F,k,B]=NSe(M),A=Te(M,a==null?void 0:a.className,k,`${M}-${h}`,{[`${M}-rtl`]:s==="rtl",[`${M}-align-${I}`]:I,[`${M}-gap-row-${S}`]:C,[`${M}-gap-col-${w}`]:T},u,d,B),P=Te(`${M}-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 L=N.map((U,J)=>{var te,ae;U!=null&&(z=J);const K=(U==null?void 0:U.key)||`${P}-${J}`;return p.createElement($dt,{className:P,key:K,index:J,split:g,style:(te=_==null?void 0:_.item)!==null&&te!==void 0?te:(ae=a==null?void 0:a.styles)===null||ae===void 0?void 0:ae.item},U)}),V=p.useMemo(()=>({latestIndex:z}),[z]);if(N.length===0)return null;const j={};return y&&(j.flexWrap="wrap"),!T&&O&&(j.columnGap=w),!C&&x&&(j.rowGap=S),F(p.createElement("div",Object.assign({ref:t,className:A,style:Object.assign(Object.assign(Object.assign({},j),a==null?void 0:a.style),v)},E),p.createElement(Ldt,{value:V},L)))}),Xi=Bdt;Xi.Compact=IQe;var jdt=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 HTe=e=>{const{getPopupContainer:t,getPrefixCls:n,direction:r}=p.useContext(Qt),{prefixCls:i,type:o="default",danger:a,disabled:s,loading:l,onClick:c,htmlType:u,children:d,className:f,menu:h,arrow:m,autoFocus:g,overlay:v,trigger:y,align:b,open:_,onOpenChange:E,placement:w,getPopupContainer:S,href:C,icon:T=p.createElement(Lq,null),title:x,buttonsRender:O=Q=>Q,mouseEnterDelay:N,mouseLeaveDelay:I,overlayClassName:M,overlayStyle:F,destroyPopupOnHide:k,dropdownRender:B}=e,A=jdt(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"]),P=n("dropdown",i),z=`${P}-button`,L={menu:h,arrow:m,autoFocus:g,align:b,disabled:s,trigger:s?[]:y,onOpenChange:E,getPopupContainer:S||t,mouseEnterDelay:N,mouseLeaveDelay:I,overlayClassName:M,overlayStyle:F,destroyPopupOnHide:k,dropdownRender:B},{compactSize:V,compactItemClassnames:j}=Fd(P,r),U=Te(z,j,f);"overlay"in e&&(L.overlay=v),"open"in e&&(L.open=_),"placement"in e?L.placement=w:L.placement=r==="rtl"?"bottomLeft":"bottomRight";const J=p.createElement($n,{type:o,danger:a,disabled:s,loading:l,onClick:c,htmlType:u,href:C,title:x},d),te=p.createElement($n,{type:o,danger:a,icon:T}),[ae,K]=O([J,te]);return p.createElement(Xi.Compact,Object.assign({className:U,size:V,block:!0},A),ae,p.createElement(d2,Object.assign({},L),K))};HTe.__ANT_BUTTON=!0;const rD=d2;rD.Button=HTe;var Hdt={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"},Udt=function(t,n){return p.createElement(Nn,Ke({},t,{ref:n,icon:Hdt}))},UTe=p.forwardRef(Udt);function YM(e){const[t,n]=p.useState(e);return p.useEffect(()=>{const r=setTimeout(()=>{n(e)},e.length?0:10);return()=>{clearTimeout(r)}},[e]),t}const zdt=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)"}}}}},Vdt=e=>({legend:{display:"block",width:"100%",marginBottom:e.marginLG,padding:0,color:e.colorTextDescription,fontSize:e.fontSizeLG,lineHeight:"inherit",border:0,borderBottom:`${Ae(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 ${Ae(e.controlOutlineWidth)} ${e.controlOutline}`},output:{display:"block",paddingTop:15,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight}}),Pie=(e,t)=>{const{formItemCls:n}=e;return{[n]:{[`${n}-label > label`]:{height:t},[`${n}-control-input`]:{minHeight:t}}}},Gdt=e=>{const{componentCls:t}=e;return{[e.componentCls]:Object.assign(Object.assign(Object.assign({},gr(e)),Vdt(e)),{[`${t}-text`]:{display:"inline-block",paddingInlineEnd:e.paddingSM},"&-small":Object.assign({},Pie(e,e.controlHeightSM)),"&-large":Object.assign({},Pie(e,e.controlHeightLG))})}},Wdt=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:f}=e;return{[t]:Object.assign(Object.assign({},gr(e)),{marginBottom:f,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:oq,animationDuration:e.motionDurationMid,animationTimingFunction:e.motionEaseOutBack,pointerEvents:"none","&-success":{color:e.colorSuccess},"&-error":{color:e.colorError},"&-warning":{color:e.colorWarning},"&-validating":{color:e.colorPrimary}}})}},Die=(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"}}}}},qdt=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"}}}}},td=e=>({padding:e.verticalLabelPadding,margin:e.verticalLabelMargin,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{visibility:"hidden"}}}),zTe=e=>{const{componentCls:t,formItemCls:n,rootPrefixCls:r}=e;return{[`${n} ${n}-label`]:td(e),[`${t}:not(${t}-inline)`]:{[n]:{flexWrap:"wrap",[`${n}-label, ${n}-control`]:{[`&:not([class*=" ${r}-col-xs"])`]:{flex:"0 0 100%",maxWidth:"100%"}}}}}},Ydt=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`]:td(e)}},[`@media (max-width: ${Ae(e.screenXSMax)})`]:[zTe(e),{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-xs-24${n}-label`]:td(e)}}}],[`@media (max-width: ${Ae(e.screenSMMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-sm-24${n}-label`]:td(e)}}},[`@media (max-width: ${Ae(e.screenMDMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-md-24${n}-label`]:td(e)}}},[`@media (max-width: ${Ae(e.screenLGMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-lg-24${n}-label`]:td(e)}}}}},Kdt=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`]:td(e),[`@media (max-width: ${Ae(e.screenXSMax)})`]:[zTe(e),{[t]:{[`${n}-col-xs-24${t}-label`]:td(e)}}],[`@media (max-width: ${Ae(e.screenSMMax)})`]:{[t]:{[`${n}-col-sm-24${t}-label`]:td(e)}},[`@media (max-width: ${Ae(e.screenMDMax)})`]:{[t]:{[`${n}-col-md-24${t}-label`]:td(e)}},[`@media (max-width: ${Ae(e.screenLGMax)})`]:{[t]:{[`${n}-col-lg-24${t}-label`]:td(e)}}}},Qdt=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}),VTe=(e,t)=>Kn(e,{formItemCls:`${e.componentCls}-item`,rootPrefixCls:t}),sY=cr("Form",(e,t)=>{let{rootPrefixCls:n}=t;const r=VTe(e,n);return[Gdt(r),Wdt(r),zdt(r),Die(r,r.componentCls),Die(r,r.formItemCls),qdt(r),Ydt(r),Kdt(r),n2(r),oq]},Qdt,{order:-1e3}),Lie=[];function XL(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 GTe=e=>{let{help:t,helpStatus:n,errors:r=Lie,warnings:i=Lie,className:o,fieldId:a,onVisibleChanged:s}=e;const{prefixCls:l}=p.useContext(hq),c=`${l}-item-explain`,u=ui(l),[d,f,h]=sY(l,u),m=p.useMemo(()=>p_(l),[l]),g=YM(r),v=YM(i),y=p.useMemo(()=>t!=null?[XL(t,"help",n)]:[].concat(nt(g.map((E,w)=>XL(E,"error","error",w))),nt(v.map((E,w)=>XL(E,"warning","warning",w)))),[t,n,g,v]),b=p.useMemo(()=>{const E={};return y.forEach(w=>{let{key:S}=w;E[S]=(E[S]||0)+1}),y.map((w,S)=>Object.assign(Object.assign({},w),{key:E[w.key]>1?`${w.key}-fallback-${S}`:w.key}))},[y]),_={};return a&&(_.id=`${a}_help`),d(p.createElement(ra,{motionDeadline:m.motionDeadline,motionName:`${l}-show-help`,visible:!!b.length,onVisibleChanged:s},E=>{const{className:w,style:S}=E;return p.createElement("div",Object.assign({},_,{className:Te(c,w,h,u,o,f),style:S,role:"alert"}),p.createElement(p5,Object.assign({keys:b},p_(l),{motionName:`${l}-show-help-item`,component:!1}),C=>{const{key:T,error:x,errorStatus:O,className:N,style:I}=C;return p.createElement("div",{key:T,className:Te(N,{[`${c}-${O}`]:O}),style:I},x)}))}))},Xdt=["parentNode"],Zdt="form_item";function hw(e){return e===void 0||e===!1?[]:Array.isArray(e)?e:[e]}function WTe(e,t){if(!e.length)return;const n=e.join("_");return t?`${t}_${n}`:Xdt.includes(n)?`${Zdt}_${n}`:n}function qTe(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 $ie(e){return hw(e).join("_")}function Fie(e,t){const n=t.getFieldInstance(e),r=GP(n);if(r)return r;const i=WTe(hw(e),t.__INTERNAL__.name);if(i)return document.getElementById(i)}function YTe(e){const[t]=pq(),n=p.useRef({}),r=p.useMemo(()=>e??Object.assign(Object.assign({},t),{__INTERNAL__:{itemRef:i=>o=>{const a=$ie(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=Fie(i,r);a&&NKe(a,Object.assign({scrollMode:"if-needed",block:"nearest"},o))},focusField:i=>{var o;const a=Fie(i,r);a&&((o=a.focus)===null||o===void 0||o.call(a))},getFieldInstance:i=>{const o=$ie(i);return n.current[o]}}),[e,t]);return[r]}var Jdt=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 eft=(e,t)=>{const n=p.useContext(Vo),{getPrefixCls:r,direction:i,form:o}=p.useContext(Qt),{prefixCls:a,className:s,rootClassName:l,size:c,disabled:u=n,form:d,colon:f,labelAlign:h,labelWrap:m,labelCol:g,wrapperCol:v,hideRequiredMark:y,layout:b="horizontal",scrollToFirstError:_,requiredMark:E,onFinishFailed:w,name:S,style:C,feedbackIcons:T,variant:x}=e,O=Jdt(e,["prefixCls","className","rootClassName","size","disabled","form","colon","labelAlign","labelWrap","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","requiredMark","onFinishFailed","name","style","feedbackIcons","variant"]),N=So(c),I=p.useContext(I_e),M=p.useMemo(()=>E!==void 0?E:y?!1:o&&o.requiredMark!==void 0?o.requiredMark:!0,[y,E,o]),F=f??(o==null?void 0:o.colon),k=r("form",a),B=ui(k),[A,P,z]=sY(k,B),L=Te(k,`${k}-${b}`,{[`${k}-hide-required-mark`]:M===!1,[`${k}-rtl`]:i==="rtl",[`${k}-${N}`]:N},z,B,P,o==null?void 0:o.className,s,l),[V]=YTe(d),{__INTERNAL__:j}=V;j.name=S;const U=p.useMemo(()=>({name:S,labelAlign:h,labelCol:g,labelWrap:m,wrapperCol:v,vertical:b==="vertical",colon:F,requiredMark:M,itemRef:j.itemRef,form:V,feedbackIcons:T}),[S,h,g,v,b,F,M,V,T]),J=p.useRef(null);p.useImperativeHandle(t,()=>{var K;return Object.assign(Object.assign({},V),{nativeElement:(K=J.current)===null||K===void 0?void 0:K.nativeElement})});const te=(K,Q)=>{if(K){let oe={block:"nearest"};typeof K=="object"&&(oe=Object.assign(Object.assign({},oe),K)),V.scrollToField(Q,oe),oe.focus&&V.focusField(Q)}},ae=K=>{if(w==null||w(K),K.errorFields.length){const Q=K.errorFields[0].name;if(_!==void 0){te(_,Q);return}o&&o.scrollToFirstError!==void 0&&te(o.scrollToFirstError,Q)}};return A(p.createElement(lEe.Provider,{value:x},p.createElement(qW,{disabled:u},p.createElement(Fv.Provider,{value:N},p.createElement(sEe,{validateMessages:I},p.createElement(ch.Provider,{value:U},p.createElement(bS,Object.assign({id:S},O,{name:S,onFinishFailed:ae,form:V,ref:J,style:Object.assign(Object.assign({},o==null?void 0:o.style),C),className:L}))))))))},tft=p.forwardRef(eft);function nft(e){if(typeof e=="function")return e;const t=Mo(e);return t.length<=1?t[0]:t}const KTe=()=>{const{status:e,errors:t=[],warnings:n=[]}=p.useContext(ia);return{status:e,errors:t,warnings:n}};KTe.Context=ia;function rft(e){const[t,n]=p.useState(e),r=p.useRef(null),i=p.useRef([]),o=p.useRef(!1);p.useEffect(()=>(o.current=!1,()=>{o.current=!0,rr.cancel(r.current),r.current=null}),[]);function a(s){o.current||(r.current===null&&(i.current=[],r.current=rr(()=>{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 ift(){const{itemRef:e}=p.useContext(ch),t=p.useRef({});function n(r,i){const o=i&&typeof i=="object"&&Og(i),a=r.join("_");return(t.current.name!==a||t.current.originRef!==o)&&(t.current.name=a,t.current.originRef=o,t.current.ref=oa(e(r),o)),t.current.ref}return n}const oft=e=>{const{formItemCls:t}=e;return{"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)":{[`${t}-control`]:{display:"flex"}}}},aft=hS(["Form","item-item"],(e,t)=>{let{rootPrefixCls:n}=t;const r=VTe(e,n);return[oft(r)]});var sft=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 lft=24,cft=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:f,onErrorVisibleChanged:h,label:m}=e,g=`${t}-item`,v=p.useContext(ch),y=p.useMemo(()=>{let F=Object.assign({},i||v.wrapperCol||{});return m===null&&!r&&!i&&v.labelCol&&[void 0,"xs","sm","md","lg","xl","xxl"].forEach(B=>{const A=B?[B]:[],P=Io(v.labelCol,A),z=typeof P=="object"?P:{},L=Io(F,A),V=typeof L=="object"?L:{};"span"in z&&!("offset"in V)&&z.span<lft&&(F=Zo(F,[].concat(A,["offset"]),z.span))}),F},[i,v]),b=Te(`${g}-control`,y.className),_=p.useMemo(()=>sft(v,["labelCol","wrapperCol"]),[v]),E=p.useRef(null),[w,S]=p.useState(0);sr(()=>{c&&E.current?S(E.current.clientHeight):S(0)},[c]);const C=p.createElement("div",{className:`${g}-control-input`},p.createElement("div",{className:`${g}-control-input-content`},o)),T=p.useMemo(()=>({prefixCls:t,status:n}),[t,n]),x=f!==null||a.length||s.length?p.createElement(hq.Provider,{value:T},p.createElement(GTe,{fieldId:d,errors:a,warnings:s,help:u,helpStatus:n,className:`${g}-explain-connected`,onVisibleChanged:h})):null,O={};d&&(O.id=`${d}_extra`);const N=c?p.createElement("div",Object.assign({},O,{className:`${g}-extra`,ref:E}),c):null,I=x||N?p.createElement("div",{className:`${g}-additional`,style:f?{minHeight:f+w}:{}},x,N):null,M=l&&l.mark==="pro_table_render"&&l.render?l.render(e,{input:C,errorList:x,extra:N}):p.createElement(p.Fragment,null,C,I);return p.createElement(ch.Provider,{value:_},p.createElement(Uv,Object.assign({},y,{className:b}),M),p.createElement(aft,{prefixCls:t}))};var uft={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"},dft=function(t,n){return p.createElement(Nn,Ke({},t,{ref:n,icon:uft}))},fft=p.forwardRef(dft),pft=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 hft(e){return e?typeof e=="object"&&!p.isValidElement(e)?e:{title:e}:null}const mft=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[f]=ds("Form"),{labelAlign:h,labelCol:m,labelWrap:g,colon:v}=p.useContext(ch);if(!n)return null;const y=i||m||{},b=o||h,_=`${t}-item-label`,E=Te(_,b==="left"&&`${_}-left`,y.className,{[`${_}-wrap`]:!!g});let w=n;const S=a===!0||v!==!1&&a!==!1;S&&!u&&typeof n=="string"&&n.trim()&&(w=n.replace(/[:|]\s*$/,""));const T=hft(c);if(T){const{icon:I=p.createElement(fft,null)}=T,M=pft(T,["icon"]),F=p.createElement(Ia,Object.assign({},M),p.cloneElement(I,{className:`${t}-item-tooltip`,title:"",onClick:k=>{k.preventDefault()},tabIndex:null}));w=p.createElement(p.Fragment,null,w,F)}const x=l==="optional",O=typeof l=="function";O?w=l(w,{required:!!s}):x&&!s&&(w=p.createElement(p.Fragment,null,w,p.createElement("span",{className:`${t}-item-optional`,title:""},(f==null?void 0:f.optional)||((d=Ec.Form)===null||d===void 0?void 0:d.optional))));const N=Te({[`${t}-item-required`]:s,[`${t}-item-required-mark-optional`]:x||O,[`${t}-item-no-colon`]:!S});return p.createElement(Uv,Object.assign({},y,{className:E}),p.createElement("label",{htmlFor:r,className:N,title:typeof n=="string"?n:""},w))},gft={success:_0,warning:Rg,error:qf,validating:xd};function QTe(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}=p.useContext(ch),d=qTe(n,r,s,null,!!i,o),{isFormItemInput:f,status:h,hasFeedback:m,feedbackIcon:g}=p.useContext(ia),v=p.useMemo(()=>{var y;let b;if(i){const E=i!==!0&&i.icons||u,w=d&&((y=E==null?void 0:E({status:d,errors:n,warnings:r}))===null||y===void 0?void 0:y[d]),S=d&&gft[d];b=w!==!1&&S?p.createElement("span",{className:Te(`${c}-feedback-icon`,`${c}-feedback-icon-${d}`)},w||p.createElement(S,null)):null}const _={status:d||"",errors:n,warnings:r,hasFeedback:!!i,feedbackIcon:b,isFormItemInput:!0};return l&&(_.status=(d??h)||"",_.isFormItemInput=f,_.hasFeedback=!!(i??m),_.feedbackIcon=i!==void 0?_.feedbackIcon:g),_},[d,i,l,f,h]);return p.createElement(ia.Provider,{value:v},t)}var vft=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 bft(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:f,fieldId:h,required:m,isRequired:g,onSubItemMetaChange:v,layout:y}=e,b=vft(e,["prefixCls","className","rootClassName","style","help","errors","warnings","validateStatus","meta","hasFeedback","hidden","children","fieldId","required","isRequired","onSubItemMetaChange","layout"]),_=`${t}-item`,{requiredMark:E,vertical:w}=p.useContext(ch),S=w||y==="vertical",C=p.useRef(null),T=YM(a),x=YM(s),O=o!=null,N=!!(O||a.length||s.length),I=!!C.current&&gS(C.current),[M,F]=p.useState(null);sr(()=>{if(N&&C.current){const z=getComputedStyle(C.current);F(parseInt(z.marginBottom,10))}},[N,I]);const k=z=>{z||F(null)},A=function(){let z=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const L=z?T:c.errors,V=z?x:c.warnings;return qTe(L,V,c,"",!!u,l)}(),P=Te(_,n,r,{[`${_}-with-help`]:O||T.length||x.length,[`${_}-has-feedback`]:A&&u,[`${_}-has-success`]:A==="success",[`${_}-has-warning`]:A==="warning",[`${_}-has-error`]:A==="error",[`${_}-is-validating`]:A==="validating",[`${_}-hidden`]:d,[`${_}-${y}`]:y});return p.createElement("div",{className:P,style:i,ref:C},p.createElement(_2,Object.assign({className:`${_}-row`},ur(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"])),p.createElement(mft,Object.assign({htmlFor:h},e,{requiredMark:E,required:m??g,prefixCls:t,vertical:S})),p.createElement(cft,Object.assign({},e,c,{errors:T,warnings:x,prefixCls:t,status:A,help:o,marginBottom:M,onErrorVisibleChanged:k}),p.createElement(aEe.Provider,{value:v},p.createElement(QTe,{prefixCls:t,meta:c,errors:c.errors,warnings:c.warnings,hasFeedback:u,validateStatus:A},f)))),!!M&&p.createElement("div",{className:`${_}-margin-offset`,style:{marginBottom:-M}}))}const yft="__SPLIT__";function _ft(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 Sft=p.memo(e=>{let{children:t}=e;return t},(e,t)=>_ft(e.control,t.control)&&e.update===t.update&&e.childProps.length===t.childProps.length&&e.childProps.every((n,r)=>n===t.childProps[r]));function Bie(){return{errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}}function Eft(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:f="onChange",validateTrigger:h,hidden:m,help:g,layout:v}=e,{getPrefixCls:y}=p.useContext(Qt),{name:b}=p.useContext(ch),_=nft(l),E=typeof _=="function",w=p.useContext(aEe),{validateTrigger:S}=p.useContext(hg),C=h!==void 0?h:S,T=t!=null,x=y("form",o),O=ui(x),[N,I,M]=sY(x,O);Wf();const F=p.useContext(NT),k=p.useRef(null),[B,A]=rft({}),[P,z]=Bv(()=>Bie()),L=K=>{const Q=F==null?void 0:F.getKey(K.name);if(z(K.destroy?Bie():K,!0),n&&g!==!1&&w){let oe=K.name;if(K.destroy)oe=k.current||oe;else if(Q!==void 0){const[ge,fe]=Q;oe=[ge].concat(nt(fe)),k.current=oe}w(K,oe)}},V=(K,Q)=>{A(oe=>{const ge=Object.assign({},oe),ue=[].concat(nt(K.name.slice(0,-1)),nt(Q)).join(yft);return K.destroy?delete ge[ue]:ge[ue]=K,ge})},[j,U]=p.useMemo(()=>{const K=nt(P.errors),Q=nt(P.warnings);return Object.values(B).forEach(oe=>{K.push.apply(K,nt(oe.errors||[])),Q.push.apply(Q,nt(oe.warnings||[]))}),[K,Q]},[B,P.errors,P.warnings]),J=ift();function te(K,Q,oe){return n&&!m?p.createElement(QTe,{prefixCls:x,hasFeedback:e.hasFeedback,validateStatus:e.validateStatus,meta:P,errors:j,warnings:U,noStyle:!0},K):p.createElement(bft,Object.assign({key:"row"},e,{className:Te(r,M,O,I),prefixCls:x,fieldId:Q,isRequired:oe,errors:j,warnings:U,meta:P,onSubItemMetaChange:V,layout:v}),K)}if(!T&&!E&&!i)return N(te(_));let ae={};return typeof u=="string"?ae.label=u:t&&(ae.label=String(t)),d&&(ae=Object.assign(Object.assign({},ae),d)),N(p.createElement(fq,Object.assign({},e,{messageVariables:ae,trigger:f,validateTrigger:C,onMetaChange:L}),(K,Q,oe)=>{const ge=hw(t).length&&Q?Q.name:[],fe=WTe(ge,b),ue=c!==void 0?c:!!(s!=null&&s.some(ne=>{if(ne&&typeof ne=="object"&&ne.required&&!ne.warningOnly)return!0;if(typeof ne=="function"){const pe=ne(oe);return(pe==null?void 0:pe.required)&&!(pe!=null&&pe.warningOnly)}return!1})),le=Object.assign({},K);let ve=null;if(Array.isArray(_)&&T)ve=_;else if(!(E&&(!(a||i)||T))){if(!(i&&!E&&!T))if(p.isValidElement(_)){const ne=Object.assign(Object.assign({},_.props),le);if(ne.id||(ne.id=fe),g||j.length>0||U.length>0||e.extra){const Re=[];(g||j.length>0)&&Re.push(`${fe}_help`),e.extra&&Re.push(`${fe}_extra`),ne["aria-describedby"]=Re.join(" ")}j.length>0&&(ne["aria-invalid"]="true"),ue&&(ne["aria-required"]="true"),Cd(_)&&(ne.ref=J(ge,_)),new Set([].concat(nt(hw(f)),nt(hw(C)))).forEach(Re=>{ne[Re]=function(){for(var Se,Ce,ye,he,_e,Oe=arguments.length,De=new Array(Oe),Y=0;Y<Oe;Y++)De[Y]=arguments[Y];(ye=le[Re])===null||ye===void 0||(Se=ye).call.apply(Se,[le].concat(De)),(_e=(he=_.props)[Re])===null||_e===void 0||(Ce=_e).call.apply(Ce,[he].concat(De))}});const be=[ne["aria-required"],ne["aria-invalid"],ne["aria-describedby"]];ve=p.createElement(Sft,{control:le,update:_,childProps:be},_o(_,ne))}else E&&(a||i)&&!T?ve=_(oe):ve=_}return te(ve,fe,ue)}))}const XTe=Eft;XTe.useStatus=KTe;var Cft=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 wft=e=>{var{prefixCls:t,children:n}=e,r=Cft(e,["prefixCls","children"]);const{getPrefixCls:i}=p.useContext(Qt),o=i("form",t),a=p.useMemo(()=>({prefixCls:o,status:"error"}),[o]);return p.createElement(nEe,Object.assign({},r),(s,l,c)=>p.createElement(hq.Provider,{value:a},n(s.map(u=>Object.assign(Object.assign({},u),{fieldKey:u.key})),l,{errors:c.errors,warnings:c.warnings})))};function Tft(){const{form:e}=p.useContext(ch);return e}const li=tft;li.Item=XTe;li.List=wft;li.ErrorList=GTe;li.useForm=YTe;li.useFormInstance=Tft;li.useWatch=oEe;li.Provider=sEe;li.create=()=>{};function ZTe(){var e=document.documentElement.clientWidth,t=window.innerHeight||document.documentElement.clientHeight;return{width:e,height:t}}function xft(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 _f(e,t,n,r){var i=aT.unstable_batchedUpdates?function(a){aT.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 S2=p.createContext(null),Oft=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,f=t.transform,h=t.count,m=t.scale,g=t.minScale,v=t.maxScale,y=t.closeIcon,b=t.onActive,_=t.onClose,E=t.onZoomIn,w=t.onZoomOut,S=t.onRotateRight,C=t.onRotateLeft,T=t.onFlipX,x=t.onFlipY,O=t.onReset,N=t.toolbarRender,I=t.zIndex,M=t.image,F=p.useContext(S2),k=s.rotateLeft,B=s.rotateRight,A=s.zoomIn,P=s.zoomOut,z=s.close,L=s.left,V=s.right,j=s.flipX,U=s.flipY,J="".concat(o,"-operations-operation");p.useEffect(function(){var pe=function(Re){Re.keyCode===dt.ESC&&_()};return n&&window.addEventListener("keydown",pe),function(){window.removeEventListener("keydown",pe)}},[n]);var te=function(be,Re){be.preventDefault(),be.stopPropagation(),b(Re)},ae=p.useCallback(function(pe){var be=pe.type,Re=pe.disabled,Se=pe.onClick,Ce=pe.icon;return p.createElement("div",{key:be,className:Te(J,"".concat(o,"-operations-operation-").concat(be),ee({},"".concat(o,"-operations-operation-disabled"),!!Re)),onClick:Se},Ce)},[J,o]),K=c?ae({icon:L,onClick:function(be){return te(be,-1)},type:"prev",disabled:d===0}):void 0,Q=c?ae({icon:V,onClick:function(be){return te(be,1)},type:"next",disabled:d===h-1}):void 0,oe=ae({icon:U,onClick:x,type:"flipY"}),ge=ae({icon:j,onClick:T,type:"flipX"}),fe=ae({icon:k,onClick:C,type:"rotateLeft"}),ue=ae({icon:B,onClick:S,type:"rotateRight"}),le=ae({icon:P,onClick:w,type:"zoomOut",disabled:m<=g}),ve=ae({icon:A,onClick:E,type:"zoomIn",disabled:m===v}),ne=p.createElement("div",{className:"".concat(o,"-operations")},oe,ge,fe,ue,le,ve);return p.createElement(ra,{visible:n,motionName:r},function(pe){var be=pe.className,Re=pe.style;return p.createElement(i2,{open:!0,getContainer:i??document.body},p.createElement("div",{className:Te("".concat(o,"-operations-wrapper"),be,a),style:W(W({},Re),{},{zIndex:I})},y===null?null:p.createElement("button",{className:"".concat(o,"-close"),onClick:_},y||z),c&&p.createElement(p.Fragment,null,p.createElement("div",{className:Te("".concat(o,"-switch-left"),ee({},"".concat(o,"-switch-left-disabled"),d===0)),onClick:function(Ce){return te(Ce,-1)}},L),p.createElement("div",{className:Te("".concat(o,"-switch-right"),ee({},"".concat(o,"-switch-right-disabled"),d===h-1)),onClick:function(Ce){return te(Ce,1)}},V)),p.createElement("div",{className:"".concat(o,"-footer")},u&&p.createElement("div",{className:"".concat(o,"-progress")},l?l(d+1,h):"".concat(d+1," / ").concat(h)),N?N(ne,W(W({icons:{prevIcon:K,nextIcon:Q,flipYIcon:oe,flipXIcon:ge,rotateLeftIcon:fe,rotateRightIcon:ue,zoomOutIcon:le,zoomInIcon:ve},actions:{onActive:b,onFlipY:x,onFlipX:T,onRotateLeft:C,onRotateRight:S,onZoomOut:w,onZoomIn:E,onReset:O,onClose:_},transform:f},F?{current:d,total:h}:{}),{},{image:M})):ne)))})},NR={x:0,y:0,rotate:0,scale:1,flipX:!1,flipY:!1};function Rft(e,t,n,r){var i=p.useRef(null),o=p.useRef([]),a=p.useState(NR),s=Ie(a,2),l=s[0],c=s[1],u=function(m){c(NR),gu(NR,l)||r==null||r({transform:NR,action:m})},d=function(m,g){i.current===null&&(o.current=[],i.current=rr(function(){c(function(v){var y=v;return o.current.forEach(function(b){y=W(W({},y),b)}),i.current=null,r==null||r({transform:y,action:g}),y})})),o.current.push(W(W({},l),m))},f=function(m,g,v,y,b){var _=e.current,E=_.width,w=_.height,S=_.offsetWidth,C=_.offsetHeight,T=_.offsetLeft,x=_.offsetTop,O=m,N=l.scale*m;N>n?(N=n,O=n/l.scale):N<t&&(N=b?N:t,O=N/l.scale);var I=v??innerWidth/2,M=y??innerHeight/2,F=O-1,k=F*E*.5,B=F*w*.5,A=F*(I-l.x-T),P=F*(M-l.y-x),z=l.x-(A-k),L=l.y-(P-B);if(m<1&&N===1){var V=S*N,j=C*N,U=ZTe(),J=U.width,te=U.height;V<=J&&j<=te&&(z=0,L=0)}d({x:z,y:L,scale:N},g)};return{transform:l,resetTransform:u,updateTransform:d,dispatchZoomChange:f}}function jie(e,t,n,r){var i=t+n,o=(n-r)/2;if(n>r){if(t>0)return ee({},e,o);if(t<0&&i<r)return ee({},e,-o)}else if(t<0||i>r)return ee({},e,t<0?o:-o);return{}}function JTe(e,t,n,r){var i=ZTe(),o=i.width,a=i.height,s=null;return e<=o&&t<=a?s={x:0,y:0}:(e>o||t>a)&&(s=W(W({},jie("x",n,e,o)),jie("y",r,t,a))),s}var ny=1,Ift=1;function Aft(e,t,n,r,i,o,a){var s=i.rotate,l=i.scale,c=i.x,u=i.y,d=p.useState(!1),f=Ie(d,2),h=f[0],m=f[1],g=p.useRef({diffX:0,diffY:0,transformX:0,transformY:0}),v=function(w){!t||w.button!==0||(w.preventDefault(),w.stopPropagation(),g.current={diffX:w.pageX-c,diffY:w.pageY-u,transformX:c,transformY:u},m(!0))},y=function(w){n&&h&&o({x:w.pageX-g.current.diffX,y:w.pageY-g.current.diffY},"move")},b=function(){if(n&&h){m(!1);var w=g.current,S=w.transformX,C=w.transformY,T=c!==S&&u!==C;if(!T)return;var x=e.current.offsetWidth*l,O=e.current.offsetHeight*l,N=e.current.getBoundingClientRect(),I=N.left,M=N.top,F=s%180!==0,k=JTe(F?O:x,F?x:O,I,M);k&&o(W({},k),"dragRebound")}},_=function(w){if(!(!n||w.deltaY==0)){var S=Math.abs(w.deltaY/100),C=Math.min(S,Ift),T=ny+C*r;w.deltaY>0&&(T=ny/T),a(T,"wheel",w.clientX,w.clientY)}};return p.useEffect(function(){var E,w,S,C;if(t){S=_f(window,"mouseup",b,!1),C=_f(window,"mousemove",y,!1);try{window.top!==window.self&&(E=_f(window.top,"mouseup",b,!1),w=_f(window.top,"mousemove",y,!1))}catch{}}return function(){var T,x,O,N;(T=S)===null||T===void 0||T.remove(),(x=C)===null||x===void 0||x.remove(),(O=E)===null||O===void 0||O.remove(),(N=w)===null||N===void 0||N.remove()}},[n,h,c,u,s,t]),{isMoving:h,onMouseDown:v,onMouseMove:y,onMouseUp:b,onWheel:_}}function Nft(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 exe(e){var t=e.src,n=e.isCustomPlaceholder,r=e.fallback,i=p.useState(n?"loading":"normal"),o=Ie(i,2),a=o[0],s=o[1],l=p.useRef(!1),c=a==="error";p.useEffect(function(){var h=!0;return Nft(t).then(function(m){!m&&h&&s("error")}),function(){h=!1}},[t]),p.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())},f=c&&r?{src:r}:{onLoad:u,src:t};return[d,f,a]}function KM(e,t){var n=e.x-t.x,r=e.y-t.y;return Math.hypot(n,r)}function Mft(e,t,n,r){var i=KM(e,n),o=KM(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 kft(e,t,n,r,i,o,a){var s=i.rotate,l=i.scale,c=i.x,u=i.y,d=p.useState(!1),f=Ie(d,2),h=f[0],m=f[1],g=p.useRef({point1:{x:0,y:0},point2:{x:0,y:0},eventType:"none"}),v=function(w){g.current=W(W({},g.current),w)},y=function(w){if(t){w.stopPropagation(),m(!0);var S=w.touches,C=S===void 0?[]:S;C.length>1?v({point1:{x:C[0].clientX,y:C[0].clientY},point2:{x:C[1].clientX,y:C[1].clientY},eventType:"touchZoom"}):v({point1:{x:C[0].clientX-c,y:C[0].clientY-u},eventType:"move"})}},b=function(w){var S=w.touches,C=S===void 0?[]:S,T=g.current,x=T.point1,O=T.point2,N=T.eventType;if(C.length>1&&N==="touchZoom"){var I={x:C[0].clientX,y:C[0].clientY},M={x:C[1].clientX,y:C[1].clientY},F=Mft(x,O,I,M),k=Ie(F,2),B=k[0],A=k[1],P=KM(I,M)/KM(x,O);a(P,"touchZoom",B,A,!0),v({point1:I,point2:M,eventType:"touchZoom"})}else N==="move"&&(o({x:C[0].clientX-x.x,y:C[0].clientY-x.y},"move"),v({eventType:"move"}))},_=function(){if(n){if(h&&m(!1),v({eventType:"none"}),r>l)return o({x:0,y:0,scale:r},"touchZoom");var w=e.current.offsetWidth*l,S=e.current.offsetHeight*l,C=e.current.getBoundingClientRect(),T=C.left,x=C.top,O=s%180!==0,N=JTe(O?S:w,O?w:S,T,x);N&&o(W({},N),"dragRebound")}};return p.useEffect(function(){var E;return n&&t&&(E=_f(window,"touchmove",function(w){return w.preventDefault()},{passive:!1})),function(){var w;(w=E)===null||w===void 0||w.remove()}},[n,t]),{isTouching:h,onTouchStart:y,onTouchMove:b,onTouchEnd:_}}var Pft=["fallback","src","imgRef"],Dft=["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"],Lft=function(t){var n=t.fallback,r=t.src,i=t.imgRef,o=Dt(t,Pft),a=exe({src:r,fallback:n}),s=Ie(a,2),l=s[0],c=s[1];return ce.createElement("img",Ke({ref:function(d){i.current=d,l(d)}},o,c))},txe=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,f=d===void 0?{}:d,h=t.rootClassName,m=t.closeIcon,g=t.getContainer,v=t.current,y=v===void 0?0:v,b=t.count,_=b===void 0?1:b,E=t.countRender,w=t.scaleStep,S=w===void 0?.5:w,C=t.minScale,T=C===void 0?1:C,x=t.maxScale,O=x===void 0?50:x,N=t.transitionName,I=N===void 0?"zoom":N,M=t.maskTransitionName,F=M===void 0?"fade":M,k=t.imageRender,B=t.imgCommonProps,A=t.toolbarRender,P=t.onTransform,z=t.onChange,L=Dt(t,Dft),V=p.useRef(),j=p.useContext(S2),U=j&&_>1,J=j&&_>=1,te=p.useState(!0),ae=Ie(te,2),K=ae[0],Q=ae[1],oe=Rft(V,T,O,P),ge=oe.transform,fe=oe.resetTransform,ue=oe.updateTransform,le=oe.dispatchZoomChange,ve=Aft(V,l,u,S,ge,ue,le),ne=ve.isMoving,pe=ve.onMouseDown,be=ve.onWheel,Re=kft(V,l,u,T,ge,ue,le),Se=Re.isTouching,Ce=Re.onTouchStart,ye=Re.onTouchMove,he=Re.onTouchEnd,_e=ge.rotate,Oe=ge.scale,De=Te(ee({},"".concat(n,"-moving"),ne));p.useEffect(function(){K||Q(!0)},[K]);var Y=function(){fe("close")},D=function(){le(ny+S,"zoomIn")},G=function(){le(ny/(ny+S),"zoomOut")},ie=function(){ue({rotate:_e+90},"rotateRight")},me=function(){ue({rotate:_e-90},"rotateLeft")},se=function(){ue({flipX:!ge.flipX},"flipX")},Be=function(){ue({flipY:!ge.flipY},"flipY")},Ve=function(){fe("reset")},re=function(qe){var At=y+qe;!Number.isInteger(At)||At<0||At>_-1||(Q(!1),fe(qe<0?"prev":"next"),z==null||z(At,y))},Me=function(qe){!u||!U||(qe.keyCode===dt.LEFT?re(-1):qe.keyCode===dt.RIGHT&&re(1))},je=function(qe){u&&(Oe!==1?ue({x:0,y:0,scale:1},"doubleClick"):le(ny+S,"doubleClick",qe.clientX,qe.clientY))};p.useEffect(function(){var Ue=_f(window,"keydown",Me,!1);return function(){Ue.remove()}},[u,U,y]);var ke=ce.createElement(Lft,Ke({},B,{width:t.width,height:t.height,imgRef:V,className:"".concat(n,"-img"),alt:i,style:{transform:"translate3d(".concat(ge.x,"px, ").concat(ge.y,"px, 0) scale3d(").concat(ge.flipX?"-":"").concat(Oe,", ").concat(ge.flipY?"-":"").concat(Oe,", 1) rotate(").concat(_e,"deg)"),transitionDuration:(!K||Se)&&"0s"},fallback:a,src:r,onWheel:be,onMouseDown:pe,onDoubleClick:je,onTouchStart:Ce,onTouchMove:ye,onTouchEnd:he,onTouchCancel:he})),Ge=W({url:r,alt:i},o);return ce.createElement(ce.Fragment,null,ce.createElement(uq,Ke({transitionName:I,maskTransitionName:F,closable:!1,keyboard:!0,prefixCls:n,onClose:c,visible:u,classNames:{wrapper:De},rootClassName:h,getContainer:g},L,{afterClose:Y}),ce.createElement("div",{className:"".concat(n,"-img-wrapper")},k?k(ke,W({transform:ge,image:Ge},j?{current:y}:{})):ke)),ce.createElement(Oft,{visible:u,transform:ge,maskTransitionName:F,closeIcon:m,getContainer:g,prefixCls:n,rootClassName:h,icons:f,countRender:E,showSwitch:U,showProgress:J,current:y,count:_,scale:Oe,minScale:T,maxScale:O,toolbarRender:A,onActive:re,onZoomIn:D,onZoomOut:G,onRotateRight:ie,onRotateLeft:me,onFlipX:se,onFlipY:Be,onClose:c,onReset:Ve,zIndex:L.zIndex!==void 0?L.zIndex+1:void 0,image:Ge}))},jH=["crossOrigin","decoding","draggable","loading","referrerPolicy","sizes","srcSet","useMap","alt"];function $ft(e){var t=p.useState({}),n=Ie(t,2),r=n[0],i=n[1],o=p.useCallback(function(s,l){return i(function(c){return W(W({},c),{},ee({},s,l))}),function(){i(function(c){var u=W({},c);return delete u[s],u})}},[]),a=p.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(nt(jH)).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 Fft=["visible","onVisibleChange","getContainer","current","movable","minScale","maxScale","countRender","closeIcon","onChange","onTransform","toolbarRender","imageRender"],Bft=["src"],jft=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=Gt(c)==="object"?c:{},f=d.visible,h=d.onVisibleChange,m=d.getContainer,g=d.current,v=d.movable,y=d.minScale,b=d.maxScale,_=d.countRender,E=d.closeIcon,w=d.onChange,S=d.onTransform,C=d.toolbarRender,T=d.imageRender,x=Dt(d,Fft),O=$ft(l),N=Ie(O,3),I=N[0],M=N[1],F=N[2],k=Pn(0,{value:g}),B=Ie(k,2),A=B[0],P=B[1],z=p.useState(!1),L=Ie(z,2),V=L[0],j=L[1],U=((n=I[A])===null||n===void 0?void 0:n.data)||{},J=U.src,te=Dt(U,Bft),ae=Pn(!!f,{value:f,onChange:function(Se,Ce){h==null||h(Se,Ce,A)}}),K=Ie(ae,2),Q=K[0],oe=K[1],ge=p.useState(null),fe=Ie(ge,2),ue=fe[0],le=fe[1],ve=p.useCallback(function(Re,Se,Ce,ye){var he=F?I.findIndex(function(_e){return _e.data.src===Se}):I.findIndex(function(_e){return _e.id===Re});P(he<0?0:he),oe(!0),le({x:Ce,y:ye}),j(!0)},[I,F]);p.useEffect(function(){Q?V||P(0):j(!1)},[Q]);var ne=function(Se,Ce){P(Se),w==null||w(Se,Ce)},pe=function(){oe(!1),le(null)},be=p.useMemo(function(){return{register:M,onPreview:ve}},[M,ve]);return p.createElement(S2.Provider,{value:be},o,p.createElement(txe,Ke({"aria-hidden":!Q,movable:v,visible:Q,prefixCls:i,closeIcon:E,onClose:pe,mousePosition:ue,imgCommonProps:te,src:J,fallback:u,icons:s,minScale:y,maxScale:b,getContainer:m,current:A,count:I.length,countRender:_,onTransform:S,toolbarRender:C,imageRender:T,onChange:ne},x)))},Hie=0;function Hft(e,t){var n=p.useState(function(){return Hie+=1,String(Hie)}),r=Ie(n,1),i=r[0],o=p.useContext(S2),a={data:t,canPreview:e};return p.useEffect(function(){if(o)return o.register(i,a)},[]),p.useEffect(function(){o&&o.register(i,a)},[e,t]),i}var Uft=["src","alt","onPreviewClose","prefixCls","previewPrefixCls","placeholder","fallback","width","height","style","preview","className","onClick","onError","wrapperClassName","wrapperStyle","rootClassName"],zft=["src","visible","onVisibleChange","getContainer","mask","maskClassName","movable","icons","scaleStep","minScale","maxScale","imageRender","toolbarRender"],lY=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,f=t.height,h=t.style,m=t.preview,g=m===void 0?!0:m,v=t.className,y=t.onClick,b=t.onError,_=t.wrapperClassName,E=t.wrapperStyle,w=t.rootClassName,S=Dt(t,Uft),C=c&&c!==!0,T=Gt(g)==="object"?g:{},x=T.src,O=T.visible,N=O===void 0?void 0:O,I=T.onVisibleChange,M=I===void 0?i:I,F=T.getContainer,k=F===void 0?void 0:F,B=T.mask,A=T.maskClassName,P=T.movable,z=T.icons,L=T.scaleStep,V=T.minScale,j=T.maxScale,U=T.imageRender,J=T.toolbarRender,te=Dt(T,zft),ae=x??n,K=Pn(!!N,{value:N,onChange:M}),Q=Ie(K,2),oe=Q[0],ge=Q[1],fe=exe({src:n,isCustomPlaceholder:C,fallback:u}),ue=Ie(fe,3),le=ue[0],ve=ue[1],ne=ue[2],pe=p.useState(null),be=Ie(pe,2),Re=be[0],Se=be[1],Ce=p.useContext(S2),ye=!!g,he=function(){ge(!1),Se(null)},_e=Te(a,_,w,ee({},"".concat(a,"-error"),ne==="error")),Oe=p.useMemo(function(){var G={};return jH.forEach(function(ie){t[ie]!==void 0&&(G[ie]=t[ie])}),G},jH.map(function(G){return t[G]})),De=p.useMemo(function(){return W(W({},Oe),{},{src:ae})},[ae,Oe]),Y=Hft(ye,De),D=function(ie){var me=xft(ie.target),se=me.left,Be=me.top;Ce?Ce.onPreview(Y,ae,se,Be):(Se({x:se,y:Be}),ge(!0)),y==null||y(ie)};return p.createElement(p.Fragment,null,p.createElement("div",Ke({},S,{className:_e,onClick:ye?D:y,style:W({width:d,height:f},E)}),p.createElement("img",Ke({},Oe,{className:Te("".concat(a,"-img"),ee({},"".concat(a,"-img-placeholder"),c===!0),v),style:W({height:f},h),ref:le},ve,{width:d,height:f,onError:b})),ne==="loading"&&p.createElement("div",{"aria-hidden":"true",className:"".concat(a,"-placeholder")},c),B&&ye&&p.createElement("div",{className:Te("".concat(a,"-mask"),A),style:{display:(h==null?void 0:h.display)==="none"?"none":void 0}},B)),!Ce&&ye&&p.createElement(txe,Ke({"aria-hidden":!oe,visible:oe,prefixCls:l,onClose:he,mousePosition:Re,src:ae,alt:r,imageInfo:{width:d,height:f},fallback:u,getContainer:k,icons:z,movable:P,scaleStep:L,minScale:V,maxScale:j,rootClassName:w,imageRender:U,imgCommonProps:Oe,toolbarRender:J},te)))};lY.PreviewGroup=jft;var Vft={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"},Gft=function(t,n){return p.createElement(Nn,Ke({},t,{ref:n,icon:Vft}))},Wft=p.forwardRef(Gft),qft={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"},Yft=function(t,n){return p.createElement(Nn,Ke({},t,{ref:n,icon:qft}))},Kft=p.forwardRef(Yft),Qft={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"},Xft=function(t,n){return p.createElement(Nn,Ke({},t,{ref:n,icon:Qft}))},Uie=p.forwardRef(Xft),Zft={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"},Jft=function(t,n){return p.createElement(Nn,Ke({},t,{ref:n,icon:Zft}))},ept=p.forwardRef(Jft),tpt={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"},npt=function(t,n){return p.createElement(Nn,Ke({},t,{ref:n,icon:tpt}))},rpt=p.forwardRef(npt);const HH=e=>({position:e||"absolute",inset:0}),ipt=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 ir("#000").setA(.5).toRgbString(),cursor:"pointer",opacity:0,transition:`opacity ${n}`,[`.${o}-mask-info`]:Object.assign(Object.assign({},kl),{padding:`0 ${Ae(r)}`,[t]:{marginInlineEnd:i,svg:{verticalAlign:"baseline"}}})}},opt=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,f=new ir(n).setA(.1),h=f.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:f.toRgbString(),borderRadius:"50%",padding:r,outline:0,border:0,cursor:"pointer",transition:`all ${c}`,"&:hover":{backgroundColor:h.toRgbString()},[`& > ${u}`]:{fontSize:e.previewOperationSize}},[`${t}-operations`]:{display:"flex",alignItems:"center",padding:`0 ${Ae(a)}`,backgroundColor:f.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}}}}},apt=e=>{const{modalMaskBg:t,iconCls:n,previewOperationColorDisabled:r,previewCls:i,zIndexPopup:o,motionDurationSlow:a}=e,s=new ir(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}}},spt=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({},HH()),{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({},HH()),{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()},"&":[opt(e),apt(e)]}]},lpt=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({},ipt(e)),[`${t}-mask:hover`]:{opacity:1},[`${t}-placeholder`]:Object.assign({},HH())}}},cpt=e=>{const{previewCls:t}=e;return{[`${t}-root`]:vS(e,"zoom"),"&":iq(e,!0)}},upt=e=>({zIndexPopup:e.zIndexPopupBase+80,previewOperationColor:new ir(e.colorTextLightSolid).setA(.65).toRgbString(),previewOperationHoverColor:new ir(e.colorTextLightSolid).setA(.85).toRgbString(),previewOperationColorDisabled:new ir(e.colorTextLightSolid).setA(.25).toRgbString(),previewOperationSize:e.fontSizeIcon*1.5}),nxe=cr("Image",e=>{const t=`${e.componentCls}-preview`,n=Kn(e,{previewCls:t,modalMaskBg:new ir("#000").setA(.45).toRgbString(),imagePreviewSwitchSize:e.controlHeightLG});return[lpt(n),spt(n),hEe(Kn(n,{componentCls:t})),cpt(n)]},upt);var dpt=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 rxe={rotateLeft:p.createElement(Wft,null),rotateRight:p.createElement(Kft,null),zoomIn:p.createElement(ept,null),zoomOut:p.createElement(rpt,null),close:p.createElement(Yf,null),left:p.createElement(v_,null),right:p.createElement(lh,null),flipX:p.createElement(Uie,null),flipY:p.createElement(Uie,{rotate:90})},fpt=e=>{var{previewPrefixCls:t,preview:n}=e,r=dpt(e,["previewPrefixCls","preview"]);const{getPrefixCls:i}=p.useContext(Qt),o=i("image",t),a=`${o}-preview`,s=i(),l=ui(o),[c,u,d]=nxe(o,l),[f]=Ou("ImagePreview",typeof n=="object"?n.zIndex:void 0),h=p.useMemo(()=>{var m;if(n===!1)return n;const g=typeof n=="object"?n:{},v=Te(u,d,l,(m=g.rootClassName)!==null&&m!==void 0?m:"");return Object.assign(Object.assign({},g),{transitionName:Va(s,"zoom",g.transitionName),maskTransitionName:Va(s,"fade",g.maskTransitionName),rootClassName:v,zIndex:f})},[n]);return c(p.createElement(lY.PreviewGroup,Object.assign({preview:h,previewPrefixCls:a,icons:rxe},r)))};var zie=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 ixe=e=>{var t;const{prefixCls:n,preview:r,className:i,rootClassName:o,style:a}=e,s=zie(e,["prefixCls","preview","className","rootClassName","style"]),{getPrefixCls:l,locale:c=Ec,getPopupContainer:u,image:d}=p.useContext(Qt),f=l("image",n),h=l(),m=c.Image||Ec.Image,g=ui(f),[v,y,b]=nxe(f,g),_=Te(o,y,b,g),E=Te(i,y,d==null?void 0:d.className),[w]=Ou("ImagePreview",typeof r=="object"?r.zIndex:void 0),S=p.useMemo(()=>{var T;if(r===!1)return r;const x=typeof r=="object"?r:{},{getContainer:O,closeIcon:N,rootClassName:I}=x,M=zie(x,["getContainer","closeIcon","rootClassName"]);return Object.assign(Object.assign({mask:p.createElement("div",{className:`${f}-mask-info`},p.createElement(RS,null),m==null?void 0:m.preview),icons:rxe},M),{rootClassName:Te(_,I),getContainer:O??u,transitionName:Va(h,"zoom",x.transitionName),maskTransitionName:Va(h,"fade",x.maskTransitionName),zIndex:w,closeIcon:N??((T=d==null?void 0:d.preview)===null||T===void 0?void 0:T.closeIcon)})},[r,m,(t=d==null?void 0:d.preview)===null||t===void 0?void 0:t.closeIcon]),C=Object.assign(Object.assign({},d==null?void 0:d.style),a);return v(p.createElement(lY,Object.assign({prefixCls:f,preview:S,rootClassName:_,className:E,style:C},s)))};ixe.PreviewGroup=fpt;function ppt(e,t,n){return typeof n=="boolean"?n:e.length?!0:Mo(t).some(i=>i.type===OCe)}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};function iD(e){let{suffixCls:t,tagName:n,displayName:r}=e;return i=>p.forwardRef((a,s)=>p.createElement(i,Object.assign({ref:s,suffixCls:t,tagName:n},a)))}const cY=p.forwardRef((e,t)=>{const{prefixCls:n,suffixCls:r,className:i,tagName:o}=e,a=oxe(e,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:s}=p.useContext(Qt),l=s("layout",n),[c,u,d]=xCe(l),f=r?`${l}-${r}`:l;return c(p.createElement(o,Object.assign({className:Te(n||f,i,u,d),ref:t},a)))}),hpt=p.forwardRef((e,t)=>{const{direction:n}=p.useContext(Qt),[r,i]=p.useState([]),{prefixCls:o,className:a,rootClassName:s,children:l,hasSider:c,tagName:u,style:d}=e,f=oxe(e,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),h=ur(f,["suffixCls"]),{getPrefixCls:m,layout:g}=p.useContext(Qt),v=m("layout",o),y=ppt(r,l,c),[b,_,E]=xCe(v),w=Te(v,{[`${v}-has-sider`]:y,[`${v}-rtl`]:n==="rtl"},g==null?void 0:g.className,a,s,_,E),S=p.useMemo(()=>({siderHook:{addSider:C=>{i(T=>[].concat(nt(T),[C]))},removeSider:C=>{i(T=>T.filter(x=>x!==C))}}}),[]);return b(p.createElement(CCe.Provider,{value:S},p.createElement(u,Object.assign({ref:t,className:w,style:Object.assign(Object.assign({},g==null?void 0:g.style),d)},h),l)))}),mpt=iD({tagName:"div",displayName:"Layout"})(hpt),QM=iD({suffixCls:"header",tagName:"header",displayName:"Header"})(cY),gpt=iD({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(cY),vpt=iD({suffixCls:"content",tagName:"main",displayName:"Content"})(cY),uo=mpt;uo.Header=QM;uo.Footer=gpt;uo.Content=vpt;uo.Sider=OCe;uo._InternalSiderContext=z5;const uY=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 bpt={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"},ypt=function(t,n){return p.createElement(Nn,Ke({},t,{ref:n,icon:bpt}))},Vie=p.forwardRef(ypt),_pt={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"},Spt=function(t,n){return p.createElement(Nn,Ke({},t,{ref:n,icon:_pt}))},Gie=p.forwardRef(Spt),axe={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:"页码"},Ept=[10,20,50,100],Cpt=function(t){var n=t.pageSizeOptions,r=n===void 0?Ept: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,f=t.showSizeChanger,h=t.sizeChangerRender,m=ce.useState(""),g=Ie(m,2),v=g[0],y=g[1],b=function(){return!v||Number.isNaN(v)?void 0:Number(v)},_=typeof d=="function"?d:function(I){return"".concat(I," ").concat(i.items_per_page)},E=function(M){y(M.target.value)},w=function(M){s||v===""||(y(""),!(M.relatedTarget&&(M.relatedTarget.className.indexOf("".concat(c,"-item-link"))>=0||M.relatedTarget.className.indexOf("".concat(c,"-item"))>=0))&&(l==null||l(b())))},S=function(M){v!==""&&(M.keyCode===dt.ENTER||M.type==="click")&&(y(""),l==null||l(b()))},C=function(){return r.some(function(M){return M.toString()===a.toString()})?r:r.concat([a]).sort(function(M,F){var k=Number.isNaN(Number(M))?0:Number(M),B=Number.isNaN(Number(F))?0:Number(F);return k-B})},T="".concat(c,"-options");if(!f&&!l)return null;var x=null,O=null,N=null;return f&&h&&(x=h({disabled:u,size:a,onSizeChange:function(M){o==null||o(Number(M))},"aria-label":i.page_size,className:"".concat(T,"-size-changer"),options:C().map(function(I){return{label:_(I),value:I}})})),l&&(s&&(N=typeof s=="boolean"?ce.createElement("button",{type:"button",onClick:S,onKeyUp:S,disabled:u,className:"".concat(T,"-quick-jumper-button")},i.jump_to_confirm):ce.createElement("span",{onClick:S,onKeyUp:S},s)),O=ce.createElement("div",{className:"".concat(T,"-quick-jumper")},i.jump_to,ce.createElement("input",{disabled:u,type:"text",value:v,onChange:E,onKeyUp:S,onBlur:w,"aria-label":i.page}),i.page,N)),ce.createElement("li",{className:T},x,O)},HE=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"),f=Te(d,"".concat(d,"-").concat(i),(n={},ee(n,"".concat(d,"-active"),o),ee(n,"".concat(d,"-disabled"),!i),n),a),h=function(){l(i)},m=function(y){c(y,l,i)},g=u(i,"page",ce.createElement("a",{rel:"nofollow"},i));return g?ce.createElement("li",{title:s?String(i):null,className:f,onClick:h,onKeyDown:m,tabIndex:0},g):null},wpt=function(t,n,r){return r};function Wie(){}function qie(e){var t=Number(e);return typeof t=="number"&&!Number.isNaN(t)&&isFinite(t)&&Math.floor(t)===t}function r1(e,t,n){var r=typeof e>"u"?t:e;return Math.floor((n-1)/r)+1}var Tpt=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,f=d===void 0?0:d,h=t.pageSize,m=t.defaultPageSize,g=m===void 0?10:m,v=t.onChange,y=v===void 0?Wie:v,b=t.hideOnSinglePage,_=t.align,E=t.showPrevNextJumpers,w=E===void 0?!0:E,S=t.showQuickJumper,C=t.showLessItems,T=t.showTitle,x=T===void 0?!0:T,O=t.onShowSizeChange,N=O===void 0?Wie:O,I=t.locale,M=I===void 0?axe:I,F=t.style,k=t.totalBoundaryShowSizeChanger,B=k===void 0?50:k,A=t.disabled,P=t.simple,z=t.showTotal,L=t.showSizeChanger,V=L===void 0?f>B:L,j=t.sizeChangerRender,U=t.pageSizeOptions,J=t.itemRender,te=J===void 0?wpt:J,ae=t.jumpPrevIcon,K=t.jumpNextIcon,Q=t.prevIcon,oe=t.nextIcon,ge=ce.useRef(null),fe=Pn(10,{value:h,defaultValue:g}),ue=Ie(fe,2),le=ue[0],ve=ue[1],ne=Pn(1,{value:l,defaultValue:u,postState:function(Z){return Math.max(1,Math.min(Z,r1(void 0,le,f)))}}),pe=Ie(ne,2),be=pe[0],Re=pe[1],Se=ce.useState(be),Ce=Ie(Se,2),ye=Ce[0],he=Ce[1];p.useEffect(function(){he(be)},[be]);var _e=Math.max(1,be-(C?3:5)),Oe=Math.min(r1(void 0,le,f),be+(C?3:5));function De($,Z){var xe=$||ce.createElement("button",{type:"button","aria-label":Z,className:"".concat(i,"-item-link")});return typeof $=="function"&&(xe=ce.createElement($,W({},t))),xe}function Y($){var Z=$.target.value,xe=r1(void 0,le,f),$e;return Z===""?$e=Z:Number.isNaN(Number(Z))?$e=ye:Z>=xe?$e=xe:$e=Number(Z),$e}function D($){return qie($)&&$!==be&&qie(f)&&f>0}var G=f>le?S:!1;function ie($){($.keyCode===dt.UP||$.keyCode===dt.DOWN)&&$.preventDefault()}function me($){var Z=Y($);switch(Z!==ye&&he(Z),$.keyCode){case dt.ENTER:Ve(Z);break;case dt.UP:Ve(Z-1);break;case dt.DOWN:Ve(Z+1);break}}function se($){Ve(Y($))}function Be($){var Z=r1($,le,f),xe=be>Z&&Z!==0?Z:be;ve($),he(xe),N==null||N(be,$),Re(xe),y==null||y(xe,$)}function Ve($){if(D($)&&!A){var Z=r1(void 0,le,f),xe=$;return $>Z?xe=Z:$<1&&(xe=1),xe!==ye&&he(xe),Re(xe),y==null||y(xe,le),xe}return be}var re=be>1,Me=be<r1(void 0,le,f);function je(){re&&Ve(be-1)}function ke(){Me&&Ve(be+1)}function Ge(){Ve(_e)}function Ue(){Ve(Oe)}function qe($,Z){if($.key==="Enter"||$.charCode===dt.ENTER||$.keyCode===dt.ENTER){for(var xe=arguments.length,$e=new Array(xe>2?xe-2:0),et=2;et<xe;et++)$e[et-2]=arguments[et];Z.apply(void 0,$e)}}function At($){qe($,je)}function at($){qe($,ke)}function pt($){qe($,Ge)}function Ct($){qe($,Ue)}function bt($){var Z=te($,"prev",De(Q,"prev page"));return ce.isValidElement(Z)?ce.cloneElement(Z,{disabled:!re}):Z}function Vt($){var Z=te($,"next",De(oe,"next page"));return ce.isValidElement(Z)?ce.cloneElement(Z,{disabled:!Me}):Z}function Tt($){($.type==="click"||$.keyCode===dt.ENTER)&&Ve(ye)}var Ot=null,Ut=xi(t,{aria:!0,data:!0}),ze=z&&ce.createElement("li",{className:"".concat(i,"-total-text")},z(f,[f===0?0:(be-1)*le+1,be*le>f?f:be*le])),Ye=null,He=r1(void 0,le,f);if(b&&f<=le)return null;var Ze=[],yt={rootPrefixCls:i,onClick:Ve,onKeyPress:qe,showTitle:x,itemRender:te,page:-1},_t=be-1>0?be-1:0,Bt=be+1<He?be+1:He,Nt=S&&S.goButton,vt=Gt(P)==="object"?P.readOnly:!P,ht=Nt,kt=null;P&&(Nt&&(typeof Nt=="boolean"?ht=ce.createElement("button",{type:"button",onClick:Tt,onKeyUp:Tt},M.jump_to_confirm):ht=ce.createElement("span",{onClick:Tt,onKeyUp:Tt},Nt),ht=ce.createElement("li",{title:x?"".concat(M.jump_to).concat(be,"/").concat(He):null,className:"".concat(i,"-simple-pager")},ht)),kt=ce.createElement("li",{title:x?"".concat(be,"/").concat(He):null,className:"".concat(i,"-simple-pager")},vt?ye:ce.createElement("input",{type:"text",value:ye,disabled:A,onKeyDown:ie,onKeyUp:me,onChange:me,onBlur:se,size:3}),ce.createElement("span",{className:"".concat(i,"-slash")},"/"),He));var Et=C?1:2;if(He<=3+Et*2){He||Ze.push(ce.createElement(HE,Ke({},yt,{key:"noPager",page:1,className:"".concat(i,"-item-disabled")})));for(var Yt=1;Yt<=He;Yt+=1)Ze.push(ce.createElement(HE,Ke({},yt,{key:Yt,page:Yt,active:be===Yt})))}else{var ct=C?M.prev_3:M.prev_5,Rt=C?M.next_3:M.next_5,Ht=te(_e,"jump-prev",De(ae,"prev page")),wt=te(Oe,"jump-next",De(K,"next page"));w&&(Ot=Ht?ce.createElement("li",{title:x?ct:null,key:"prev",onClick:Ge,tabIndex:0,onKeyDown:pt,className:Te("".concat(i,"-jump-prev"),ee({},"".concat(i,"-jump-prev-custom-icon"),!!ae))},Ht):null,Ye=wt?ce.createElement("li",{title:x?Rt:null,key:"next",onClick:Ue,tabIndex:0,onKeyDown:Ct,className:Te("".concat(i,"-jump-next"),ee({},"".concat(i,"-jump-next-custom-icon"),!!K))},wt):null);var St=Math.max(1,be-Et),jt=Math.min(be+Et,He);be-1<=Et&&(jt=1+Et*2),He-be<=Et&&(St=He-Et*2);for(var Pe=St;Pe<=jt;Pe+=1)Ze.push(ce.createElement(HE,Ke({},yt,{key:Pe,page:Pe,active:be===Pe})));if(be-1>=Et*2&&be!==3&&(Ze[0]=ce.cloneElement(Ze[0],{className:Te("".concat(i,"-item-after-jump-prev"),Ze[0].props.className)}),Ze.unshift(Ot)),He-be>=Et*2&&be!==He-2){var Pt=Ze[Ze.length-1];Ze[Ze.length-1]=ce.cloneElement(Pt,{className:Te("".concat(i,"-item-before-jump-next"),Pt.props.className)}),Ze.push(Ye)}St!==1&&Ze.unshift(ce.createElement(HE,Ke({},yt,{key:1,page:1}))),jt!==He&&Ze.push(ce.createElement(HE,Ke({},yt,{key:He,page:He})))}var rt=bt(_t);if(rt){var Mt=!re||!He;rt=ce.createElement("li",{title:x?M.prev_page:null,onClick:je,tabIndex:Mt?null:0,onKeyDown:At,className:Te("".concat(i,"-prev"),ee({},"".concat(i,"-disabled"),Mt)),"aria-disabled":Mt},rt)}var It=Vt(Bt);if(It){var xn,Hn;P?(xn=!Me,Hn=re?0:null):(xn=!Me||!He,Hn=xn?null:0),It=ce.createElement("li",{title:x?M.next_page:null,onClick:ke,tabIndex:Hn,onKeyDown:at,className:Te("".concat(i,"-next"),ee({},"".concat(i,"-disabled"),xn)),"aria-disabled":xn},It)}var R=Te(i,s,(n={},ee(n,"".concat(i,"-start"),_==="start"),ee(n,"".concat(i,"-center"),_==="center"),ee(n,"".concat(i,"-end"),_==="end"),ee(n,"".concat(i,"-simple"),P),ee(n,"".concat(i,"-disabled"),A),n));return ce.createElement("ul",Ke({className:R,style:F,ref:ge},Ut),ze,rt,P?kt:Ze,It,ce.createElement(Cpt,{locale:M,rootPrefixCls:i,disabled:A,selectPrefixCls:a,changeSize:Be,pageSize:le,pageSizeOptions:U,quickGo:G?Ve:null,goButton:ht,showSizeChanger:V,sizeChangerRender:j}))};const xpt=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"}}}}}},Opt=e=>{const{componentCls:t}=e;return{[`&${t}-mini ${t}-total-text, &${t}-mini ${t}-simple-pager`]:{height:e.itemSizeSM,lineHeight:Ae(e.itemSizeSM)},[`&${t}-mini ${t}-item`]:{minWidth:e.itemSizeSM,height:e.itemSizeSM,margin:0,lineHeight:Ae(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:Ae(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:Ae(e.itemSizeSM)}},[`&${t}-mini ${t}-jump-prev, &${t}-mini ${t}-jump-next`]:{height:e.itemSizeSM,marginInlineEnd:0,lineHeight:Ae(e.itemSizeSM)},[`&${t}-mini ${t}-options`]:{marginInlineStart:e.paginationMiniOptionsMarginInlineStart,"&-size-changer":{top:e.miniOptionsSizeChangerTop},"&-quick-jumper":{height:e.itemSizeSM,lineHeight:Ae(e.itemSizeSM),input:Object.assign(Object.assign({},Qq(e)),{width:e.paginationMiniQuickJumperInputWidth,height:e.controlHeightSM})}}}},Rpt=e=>{const{componentCls:t}=e;return{[`
&${t}-simple ${t}-prev,
&${t}-simple ${t}-next
`]:{height:e.itemSizeSM,lineHeight:Ae(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:Ae(e.itemSizeSM)}}},[`&${t}-simple ${t}-simple-pager`]:{display:"inline-block",height:e.itemSizeSM,marginInlineEnd:e.marginXS,input:{boxSizing:"border-box",height:"100%",padding:`0 ${Ae(e.paginationItemPaddingInline)}`,textAlign:"center",backgroundColor:e.itemInputBg,border:`${Ae(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:`${Ae(e.inputOutlineOffset)} 0 ${Ae(e.controlOutlineWidth)} ${e.controlOutline}`},"&[disabled]":{color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,cursor:"not-allowed"}}}}},Ipt=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:Ae(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:`${Ae(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:Ae(e.controlHeight),verticalAlign:"top",input:Object.assign(Object.assign(Object.assign({},m2(e)),Gq(e,{borderColor:e.colorBorder,hoverBorderColor:e.colorPrimaryHover,activeBorderColor:e.colorPrimary,activeShadow:e.activeShadow})),{"&[disabled]":Object.assign({},X5(e)),width:e.calc(e.controlHeightLG).mul(1.25).equal(),height:e.controlHeight,boxSizing:"border-box",margin:0,marginInlineStart:e.marginXS,marginInlineEnd:e.marginXS})}}}},Apt=e=>{const{componentCls:t}=e;return{[`${t}-item`]:{display:"inline-block",minWidth:e.itemSize,height:e.itemSize,marginInlineEnd:e.marginXS,fontFamily:e.fontFamily,lineHeight:Ae(e.calc(e.itemSize).sub(2).equal()),textAlign:"center",verticalAlign:"middle",listStyle:"none",backgroundColor:e.itemBg,border:`${Ae(e.lineWidth)} ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:0,cursor:"pointer",userSelect:"none",a:{display:"block",padding:`0 ${Ae(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}}}}},Npt=e=>{const{componentCls:t}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},gr(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:Ae(e.calc(e.itemSize).sub(2).equal()),verticalAlign:"middle"}}),Apt(e)),Ipt(e)),Rpt(e)),Opt(e)),xpt(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"}}},Mpt=e=>{const{componentCls:t}=e;return{[`${t}:not(${t}-disabled)`]:{[`${t}-item`]:Object.assign({},Xs(e)),[`${t}-jump-prev, ${t}-jump-next`]:{"&:focus-visible":Object.assign({[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0}},Td(e))},[`${t}-prev, ${t}-next`]:{[`&:focus-visible ${t}-item-link`]:Object.assign({},Td(e))}}}},sxe=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},h2(e)),lxe=e=>Kn(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"},p2(e)),kpt=cr("Pagination",e=>{const t=lxe(e);return[Npt(t),Mpt(t)]},sxe),Ppt=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:`${Ae(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}}}}},Dpt=hS(["Pagination","bordered"],e=>{const t=lxe(e);return[Ppt(t)]},sxe);function Yie(e){return p.useMemo(()=>typeof e=="boolean"?[e,{}]:e&&typeof e=="object"?[!0,e]:[void 0,void 0],[e])}var Lpt=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 cxe=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:f}=e,h=Lpt(e,["align","prefixCls","selectPrefixCls","className","rootClassName","style","size","locale","responsive","showSizeChanger","selectComponentClass","pageSizeOptions"]),{xs:m}=$5(c),[,g]=Go(),{getPrefixCls:v,direction:y,pagination:b={}}=p.useContext(Qt),_=v("pagination",n),[E,w,S]=kpt(_),C=So(s),T=C==="small"||!!(m&&!C&&c),[x]=ds("Pagination",A_e),O=Object.assign(Object.assign({},x),l),[N,I]=Yie(u),[M,F]=Yie(b.showSizeChanger),k=N??M,B=I??F,A=d||vu,P=p.useMemo(()=>f?f.map(J=>Number(J)):void 0,[f]),z=J=>{var te;const{disabled:ae,size:K,onSizeChange:Q,"aria-label":oe,className:ge,options:fe}=J,{className:ue,onChange:le}=B||{},ve=(te=fe.find(ne=>String(ne.value)===String(K)))===null||te===void 0?void 0:te.value;return p.createElement(A,Object.assign({disabled:ae,showSearch:!0,popupMatchSelectWidth:!1,getPopupContainer:ne=>ne.parentNode,"aria-label":oe,options:fe},B,{value:ve,onChange:(ne,pe)=>{Q==null||Q(ne),le==null||le(ne,pe)},size:T?"small":"middle",className:Te(ge,ue)}))},L=p.useMemo(()=>{const J=p.createElement("span",{className:`${_}-item-ellipsis`},"•••"),te=p.createElement("button",{className:`${_}-item-link`,type:"button",tabIndex:-1},y==="rtl"?p.createElement(lh,null):p.createElement(v_,null)),ae=p.createElement("button",{className:`${_}-item-link`,type:"button",tabIndex:-1},y==="rtl"?p.createElement(v_,null):p.createElement(lh,null)),K=p.createElement("a",{className:`${_}-item-link`},p.createElement("div",{className:`${_}-item-container`},y==="rtl"?p.createElement(Gie,{className:`${_}-item-link-icon`}):p.createElement(Vie,{className:`${_}-item-link-icon`}),J)),Q=p.createElement("a",{className:`${_}-item-link`},p.createElement("div",{className:`${_}-item-container`},y==="rtl"?p.createElement(Vie,{className:`${_}-item-link-icon`}):p.createElement(Gie,{className:`${_}-item-link-icon`}),J));return{prevIcon:te,nextIcon:ae,jumpPrevIcon:K,jumpNextIcon:Q}},[y,_]),V=v("select",r),j=Te({[`${_}-${t}`]:!!t,[`${_}-mini`]:T,[`${_}-rtl`]:y==="rtl",[`${_}-bordered`]:g.wireframe},b==null?void 0:b.className,i,o,w,S),U=Object.assign(Object.assign({},b==null?void 0:b.style),a);return E(p.createElement(p.Fragment,null,g.wireframe&&p.createElement(Dpt,{prefixCls:_}),p.createElement(Tpt,Object.assign({},L,h,{style:U,prefixCls:_,selectPrefixCls:V,className:j,locale:O,pageSizeOptions:P,showSizeChanger:k,sizeChangerRender:z}))))},XM=100,uxe=XM/5,dxe=XM/2-uxe/2,ZL=dxe*2*Math.PI,Kie=50,Qie=e=>{const{dotClassName:t,style:n,hasCircleCls:r}=e;return p.createElement("circle",{className:Te(`${t}-circle`,{[`${t}-circle-bg`]:r}),r:dxe,cx:Kie,cy:Kie,strokeWidth:uxe,style:n})},$pt=e=>{let{percent:t,prefixCls:n}=e;const r=`${n}-dot`,i=`${r}-holder`,o=`${i}-hidden`,[a,s]=p.useState(!1);sr(()=>{t!==0&&s(!0)},[t!==0]);const l=Math.max(Math.min(t,100),0);if(!a)return null;const c={strokeDashoffset:`${ZL/4}`,strokeDasharray:`${ZL*l/100} ${ZL*(100-l)/100}`};return p.createElement("span",{className:Te(i,`${r}-progress`,l<=0&&o)},p.createElement("svg",{viewBox:`0 0 ${XM} ${XM}`,role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":l},p.createElement(Qie,{dotClassName:r,hasCircleCls:!0}),p.createElement(Qie,{dotClassName:r,style:c})))};function Fpt(e){const{prefixCls:t,percent:n=0}=e,r=`${t}-dot`,i=`${r}-holder`,o=`${i}-hidden`;return p.createElement(p.Fragment,null,p.createElement("span",{className:Te(i,n>0&&o)},p.createElement("span",{className:Te(r,`${t}-dot-spin`)},[1,2,3,4].map(a=>p.createElement("i",{className:`${t}-dot-item`,key:a})))),p.createElement($pt,{prefixCls:t,percent:n}))}function Bpt(e){const{prefixCls:t,indicator:n,percent:r}=e,i=`${t}-dot`;return n&&p.isValidElement(n)?_o(n,{className:Te(n.props.className,i),percent:r}):p.createElement(Fpt,{prefixCls:t,percent:r})}const jpt=new fr("antSpinMove",{to:{opacity:1}}),Hpt=new fr("antRotate",{to:{transform:"rotate(405deg)"}}),Upt=e=>{const{componentCls:t,calc:n}=e;return{[t]:Object.assign(Object.assign({},gr(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:jpt,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:Hpt,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"}})}},zpt=e=>{const{controlHeightLG:t,controlHeight:n}=e;return{contentHeight:400,dotSize:t/2,dotSizeSM:t*.35,dotSizeLG:n}},Vpt=cr("Spin",e=>{const t=Kn(e,{spinDotDefault:e.colorTextDescription});return[Upt(t)]},zpt),Gpt=200,Xie=[[30,.05],[70,.03],[96,.01]];function Wpt(e,t){const[n,r]=p.useState(0),i=p.useRef(null),o=t==="auto";return p.useEffect(()=>(o&&e&&(r(0),i.current=setInterval(()=>{r(a=>{const s=100-a;for(let l=0;l<Xie.length;l+=1){const[c,u]=Xie[l];if(a<=c)return a+s*u}return a})},Gpt)),()=>{clearInterval(i.current)}),[o,e]),o?n:t}var qpt=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 fxe;function Ypt(e,t){return!!e&&!!t&&!Number.isNaN(Number(t))}const Ac=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:f=!1,indicator:h,percent:m}=e,g=qpt(e,["prefixCls","spinning","delay","className","rootClassName","size","tip","wrapperClassName","style","children","fullscreen","indicator","percent"]),{getPrefixCls:v,direction:y,spin:b}=p.useContext(Qt),_=v("spin",n),[E,w,S]=Vpt(_),[C,T]=p.useState(()=>r&&!Ypt(r,i)),x=Wpt(C,m);p.useEffect(()=>{if(r){const B=Zst(i,()=>{T(!0)});return B(),()=>{var A;(A=B==null?void 0:B.cancel)===null||A===void 0||A.call(B)}}T(!1)},[i,r]);const O=p.useMemo(()=>typeof d<"u"&&!f,[d,f]),N=Te(_,b==null?void 0:b.className,{[`${_}-sm`]:s==="small",[`${_}-lg`]:s==="large",[`${_}-spinning`]:C,[`${_}-show-text`]:!!l,[`${_}-rtl`]:y==="rtl"},o,!f&&a,w,S),I=Te(`${_}-container`,{[`${_}-blur`]:C}),M=(t=h??(b==null?void 0:b.indicator))!==null&&t!==void 0?t:fxe,F=Object.assign(Object.assign({},b==null?void 0:b.style),u),k=p.createElement("div",Object.assign({},g,{style:F,className:N,"aria-live":"polite","aria-busy":C}),p.createElement(Bpt,{prefixCls:_,indicator:M,percent:x}),l&&(O||f)?p.createElement("div",{className:`${_}-text`},l):null);return E(O?p.createElement("div",Object.assign({},g,{className:Te(`${_}-nested-loading`,c,w,S)}),C&&p.createElement("div",{key:"loading"},k),p.createElement("div",{className:I,key:"container"},d)):f?p.createElement("div",{className:Te(`${_}-fullscreen`,{[`${_}-fullscreen-show`]:C},a,w,S)},k):k)};Ac.setDefaultIndicator=e=>{fxe=e};const dY=ce.createContext({});dY.Consumer;var pxe=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 Kpt=e=>{var{prefixCls:t,className:n,avatar:r,title:i,description:o}=e,a=pxe(e,["prefixCls","className","avatar","title","description"]);const{getPrefixCls:s}=p.useContext(Qt),l=s("list",t),c=Te(`${l}-item-meta`,n),u=ce.createElement("div",{className:`${l}-item-meta-content`},i&&ce.createElement("h4",{className:`${l}-item-meta-title`},i),o&&ce.createElement("div",{className:`${l}-item-meta-description`},o));return ce.createElement("div",Object.assign({},a,{className:c}),r&&ce.createElement("div",{className:`${l}-item-meta-avatar`},r),(i||o)&&u)},Qpt=ce.forwardRef((e,t)=>{const{prefixCls:n,children:r,actions:i,extra:o,styles:a,className:s,classNames:l,colStyle:c}=e,u=pxe(e,["prefixCls","children","actions","extra","styles","className","classNames","colStyle"]),{grid:d,itemLayout:f}=p.useContext(dY),{getPrefixCls:h,list:m}=p.useContext(Qt),g=C=>{var T,x;return Te((x=(T=m==null?void 0:m.item)===null||T===void 0?void 0:T.classNames)===null||x===void 0?void 0:x[C],l==null?void 0:l[C])},v=C=>{var T,x;return Object.assign(Object.assign({},(x=(T=m==null?void 0:m.item)===null||T===void 0?void 0:T.styles)===null||x===void 0?void 0:x[C]),a==null?void 0:a[C])},y=()=>{let C=!1;return p.Children.forEach(r,T=>{typeof T=="string"&&(C=!0)}),C&&p.Children.count(r)>1},b=()=>f==="vertical"?!!o:!y(),_=h("list",n),E=i&&i.length>0&&ce.createElement("ul",{className:Te(`${_}-item-action`,g("actions")),key:"actions",style:v("actions")},i.map((C,T)=>ce.createElement("li",{key:`${_}-item-action-${T}`},C,T!==i.length-1&&ce.createElement("em",{className:`${_}-item-action-split`})))),w=d?"div":"li",S=ce.createElement(w,Object.assign({},u,d?{}:{ref:t},{className:Te(`${_}-item`,{[`${_}-item-no-flex`]:!b()},s)}),f==="vertical"&&o?[ce.createElement("div",{className:`${_}-item-main`,key:"content"},r,E),ce.createElement("div",{className:Te(`${_}-item-extra`,g("extra")),key:"extra",style:v("extra")},o)]:[r,E,_o(o,{key:"extra"})]);return d?ce.createElement(Uv,{ref:t,flex:1,style:c},S):S}),hxe=Qpt;hxe.Meta=Kpt;const Xpt=e=>{const{listBorderedCls:t,componentCls:n,paddingLG:r,margin:i,itemPaddingSM:o,itemPaddingLG:a,marginLG:s,borderRadiusLG:l}=e;return{[t]:{border:`${Ae(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:l,[`${n}-header,${n}-footer,${n}-item`]:{paddingInline:r},[`${n}-pagination`]:{margin:`${Ae(i)} ${Ae(s)}`}},[`${t}${n}-sm`]:{[`${n}-item,${n}-header,${n}-footer`]:{padding:o}},[`${t}${n}-lg`]:{[`${n}-item,${n}-header,${n}-footer`]:{padding:a}}}},Zpt=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 ${Ae(a)}`}}}}}},Jpt=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:f,margin:h,colorText:m,colorTextDescription:g,motionDurationSlow:v,lineWidth:y,headerBg:b,footerBg:_,emptyTextPadding:E,metaMarginBottom:w,avatarMarginRight:S,titleMarginBottom:C,descriptionFontSize:T}=e;return{[t]:Object.assign(Object.assign({},gr(e)),{position:"relative","*":{outline:"none"},[`${t}-header`]:{background:b},[`${t}-footer`]:{background:_},[`${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:S},[`${t}-item-meta-content`]:{flex:"1 0",width:0,color:m},[`${t}-item-meta-title`]:{margin:`0 0 ${Ae(e.marginXXS)} 0`,color:m,fontSize:e.fontSize,lineHeight:e.lineHeight,"> a":{color:m,transition:`all ${v}`,"&:hover":{color:c}}},[`${t}-item-meta-description`]:{color:g,fontSize:T,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 ${Ae(f)}`,color:g,fontSize:e.fontSize,lineHeight:e.lineHeight,textAlign:"center","&:first-child":{paddingInlineStart:0}},[`${t}-item-action-split`]:{position:"absolute",insetBlockStart:"50%",insetInlineEnd:0,width:y,height:e.calc(e.fontHeight).sub(e.calc(e.marginXXS).mul(2)).equal(),transform:"translateY(-50%)",backgroundColor:e.colorSplit}}},[`${t}-empty`]:{padding:`${Ae(s)} 0`,color:g,fontSize:e.fontSizeSM,textAlign:"center"},[`${t}-empty-text`]:{padding:E,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:h,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:w,[`${t}-item-meta-title`]:{marginBlockStart:0,marginBlockEnd:C,color:m,fontSize:e.fontSizeLG,lineHeight:e.lineHeightLG}},[`${t}-item-action`]:{marginBlockStart:s,marginInlineStart:"auto","> li":{padding:`0 ${Ae(s)}`,"&:first-child":{paddingInlineStart:0}}}},[`${t}-split ${t}-item`]:{borderBlockEnd:`${Ae(e.lineWidth)} ${e.lineType} ${e.colorSplit}`,"&:last-child":{borderBlockEnd:"none"}},[`${t}-split ${t}-header`]:{borderBlockEnd:`${Ae(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},[`${t}-split${t}-empty ${t}-footer`]:{borderTop:`${Ae(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:`${Ae(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"}}}}},eht=e=>({contentWidth:220,itemPadding:`${Ae(e.paddingContentVertical)} 0`,itemPaddingSM:`${Ae(e.paddingContentVerticalSM)} ${Ae(e.paddingContentHorizontal)}`,itemPaddingLG:`${Ae(e.paddingContentVerticalLG)} ${Ae(e.paddingContentHorizontalLG)}`,headerBg:"transparent",footerBg:"transparent",emptyTextPadding:e.padding,metaMarginBottom:e.padding,avatarMarginRight:e.padding,titleMarginBottom:e.paddingSM,descriptionFontSize:e.fontSize}),tht=cr("List",e=>{const t=Kn(e,{listBorderedCls:`${e.componentCls}-bordered`,minHeight:e.controlHeightLG});return[Jpt(t),Xpt(t),Zpt(t)]},eht);var nht=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 rht(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:f,dataSource:h=[],size:m,header:g,footer:v,loading:y=!1,rowKey:b,renderItem:_,locale:E}=e,w=nht(e,["pagination","prefixCls","bordered","split","className","rootClassName","style","children","itemLayout","loadMore","grid","dataSource","size","header","footer","loading","rowKey","renderItem","locale"]);const S=n&&typeof n=="object"?n:{},[C,T]=p.useState(S.defaultCurrent||1),[x,O]=p.useState(S.defaultPageSize||10),{getPrefixCls:N,renderEmpty:I,direction:M,list:F}=p.useContext(Qt),k={current:1,total:0},B=ye=>(he,_e)=>{var Oe;T(he),O(_e),n&&((Oe=n==null?void 0:n[ye])===null||Oe===void 0||Oe.call(n,he,_e))},A=B("onChange"),P=B("onShowSizeChange"),z=(ye,he)=>{if(!_)return null;let _e;return typeof b=="function"?_e=b(ye):b?_e=ye[b]:_e=ye.key,_e||(_e=`list-item-${he}`),p.createElement(p.Fragment,{key:_e},_(ye,he))},L=()=>!!(d||n||v),V=N("list",r),[j,U,J]=tht(V);let te=y;typeof te=="boolean"&&(te={spinning:te});const ae=!!(te!=null&&te.spinning),K=So(m);let Q="";switch(K){case"large":Q="lg";break;case"small":Q="sm";break}const oe=Te(V,{[`${V}-vertical`]:u==="vertical",[`${V}-${Q}`]:Q,[`${V}-split`]:o,[`${V}-bordered`]:i,[`${V}-loading`]:ae,[`${V}-grid`]:!!f,[`${V}-something-after-last-item`]:L(),[`${V}-rtl`]:M==="rtl"},F==null?void 0:F.className,a,s,U,J),ge=uY(k,{total:h.length,current:C,pageSize:x},n||{}),fe=Math.ceil(ge.total/ge.pageSize);ge.current>fe&&(ge.current=fe);const ue=n&&p.createElement("div",{className:Te(`${V}-pagination`)},p.createElement(cxe,Object.assign({align:"end"},ge,{onChange:A,onShowSizeChange:P})));let le=nt(h);n&&h.length>(ge.current-1)*ge.pageSize&&(le=nt(h).splice((ge.current-1)*ge.pageSize,ge.pageSize));const ve=Object.keys(f||{}).some(ye=>["xs","sm","md","lg","xl","xxl"].includes(ye)),ne=$5(ve),pe=p.useMemo(()=>{for(let ye=0;ye<mg.length;ye+=1){const he=mg[ye];if(ne[he])return he}},[ne]),be=p.useMemo(()=>{if(!f)return;const ye=pe&&f[pe]?f[pe]:f.column;if(ye)return{width:`${100/ye}%`,maxWidth:`${100/ye}%`}},[JSON.stringify(f),pe]);let Re=ae&&p.createElement("div",{style:{minHeight:53}});if(le.length>0){const ye=le.map((he,_e)=>z(he,_e));Re=f?p.createElement(_2,{gutter:f.gutter},p.Children.map(ye,he=>p.createElement("div",{key:he==null?void 0:he.key,style:be},he))):p.createElement("ul",{className:`${V}-items`},ye)}else!c&&!ae&&(Re=p.createElement("div",{className:`${V}-empty-text`},(E==null?void 0:E.emptyText)||(I==null?void 0:I("List"))||p.createElement(_S,{componentName:"List"})));const Se=ge.position||"bottom",Ce=p.useMemo(()=>({grid:f,itemLayout:u}),[JSON.stringify(f),u]);return j(p.createElement(dY.Provider,{value:Ce},p.createElement("div",Object.assign({ref:t,style:Object.assign(Object.assign({},F==null?void 0:F.style),l),className:oe},w),(Se==="top"||Se==="both")&&ue,g&&p.createElement("div",{className:`${V}-header`},g),p.createElement(Ac,Object.assign({},te),Re,c),v&&p.createElement("div",{className:`${V}-footer`},v),d||(Se==="bottom"||Se==="both")&&ue)))}const iht=p.forwardRef(rht),mxe=iht;mxe.Item=hxe;function oht(e){return(arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1)&&e==null?[]:Array.isArray(e)?e:[e]}let Gc=null,U1=e=>e(),PT=[],DT={};function Zie(){const{getContainer:e,duration:t,rtl:n,maxCount:r,top:i}=DT,o=(e==null?void 0:e())||document.body;return{getContainer:()=>o,duration:t,rtl:n,maxCount:r,top:i}}const aht=ce.forwardRef((e,t)=>{const{messageConfig:n,sync:r}=e,{getPrefixCls:i}=p.useContext(Qt),o=DT.prefixCls||i("message"),a=p.useContext(SH),[s,l]=ISe(Object.assign(Object.assign(Object.assign({},n),{prefixCls:o}),a.message));return ce.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}),sht=ce.forwardRef((e,t)=>{const[n,r]=ce.useState(Zie),i=()=>{r(Zie)};ce.useEffect(i,[]);const o=pSe(),a=o.getRootPrefixCls(),s=o.getIconPrefixCls(),l=o.getTheme(),c=ce.createElement(aht,{ref:t,sync:i,messageConfig:n});return ce.createElement(Ln,{prefixCls:a,iconPrefixCls:s,theme:l},o.holderRender?o.holderRender(c):c)});function oD(){if(!Gc){const e=document.createDocumentFragment(),t={fragment:e};Gc=t,U1(()=>{eq()(ce.createElement(sht,{ref:r=>{const{instance:i,sync:o}=r||{};Promise.resolve().then(()=>{!t.instance&&i&&(t.instance=i,t.sync=o,oD())})}}),e)});return}Gc.instance&&(PT.forEach(e=>{const{type:t,skipped:n}=e;if(!n)switch(t){case"open":{U1(()=>{const r=Gc.instance.open(Object.assign(Object.assign({},DT),e.config));r==null||r.then(e.resolve),e.setCloseFn(r)});break}case"destroy":U1(()=>{Gc==null||Gc.instance.destroy(e.key)});break;default:U1(()=>{var r;const i=(r=Gc.instance)[t].apply(r,nt(e.args));i==null||i.then(e.resolve),e.setCloseFn(i)})}}),PT=[])}function lht(e){DT=Object.assign(Object.assign({},DT),e),U1(()=>{var t;(t=Gc==null?void 0:Gc.sync)===null||t===void 0||t.call(Gc)})}function cht(e){const t=JW(n=>{let r;const i={type:"open",config:e,resolve:n,setCloseFn:o=>{r=o}};return PT.push(i),()=>{r?U1(()=>{r()}):i.skipped=!0}});return oD(),t}function uht(e,t){const n=JW(r=>{let i;const o={type:e,args:t,resolve:r,setCloseFn:a=>{i=a}};return PT.push(o),()=>{i?U1(()=>{i()}):o.skipped=!0}});return oD(),n}const dht=e=>{PT.push({type:"destroy",key:e}),oD()},fht=["success","info","warning","error","loading"],pht={open:cht,destroy:dht,config:lht,useMessage:ASe,_InternalPanelDoNotUseOrYouWillBeFired:XKe},Ho=pht;fht.forEach(e=>{Ho[e]=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return uht(e,n)}});var hht=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 mht=e=>{const{prefixCls:t,className:n,closeIcon:r,closable:i,type:o,title:a,children:s,footer:l}=e,c=hht(e,["prefixCls","className","closeIcon","closable","type","title","children","footer"]),{getPrefixCls:u}=p.useContext(Qt),d=u(),f=t||u("modal"),h=ui(d),[m,g,v]=vEe(f,h),y=`${f}-confirm`;let b={};return o?b={closable:i??!1,title:"",footer:"",children:p.createElement(yEe,Object.assign({},e,{prefixCls:f,confirmPrefixCls:y,rootPrefixCls:d,content:s}))}:b={closable:i??!0,title:a,footer:l!==null&&p.createElement(fEe,Object.assign({},e)),children:s},m(p.createElement(XSe,Object.assign({prefixCls:f,className:Te(g,`${f}-pure-panel`,o&&y,o&&`${y}-${o}`,n,v,h)},c,{closeIcon:dEe(f,r),closable:i},b)))},ght=NEe(mht);function gxe(e){return a2(CEe(e))}const Wo=bEe;Wo.useModal=REe;Wo.info=function(t){return a2(wEe(t))};Wo.success=function(t){return a2(TEe(t))};Wo.error=function(t){return a2(xEe(t))};Wo.warning=gxe;Wo.warn=gxe;Wo.confirm=function(t){return a2(OEe(t))};Wo.destroyAll=function(){for(;j1.length;){const t=j1.pop();t&&t()}};Wo.config=det;Wo._InternalPanelDoNotUseOrYouWillBeFired=ght;const vht=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}}}}},bht=e=>{const{zIndexPopupBase:t}=e;return{zIndexPopup:t+60}},vxe=cr("Popconfirm",e=>vht(e),bht,{resetStyle:!1});var yht=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 bxe=e=>{const{prefixCls:t,okButtonProps:n,cancelButtonProps:r,title:i,description:o,cancelText:a,okText:s,okType:l="primary",icon:c=p.createElement(Rg,null),showCancel:u=!0,close:d,onConfirm:f,onCancel:h,onPopupClick:m}=e,{getPrefixCls:g}=p.useContext(Qt),[v]=ds("Popconfirm",Ec.Popconfirm),y=g_(i),b=g_(o);return p.createElement("div",{className:`${t}-inner-content`,onClick:m},p.createElement("div",{className:`${t}-message`},c&&p.createElement("span",{className:`${t}-message-icon`},c),p.createElement("div",{className:`${t}-message-text`},y&&p.createElement("div",{className:`${t}-title`},y),b&&p.createElement("div",{className:`${t}-description`},b))),p.createElement("div",{className:`${t}-buttons`},u&&p.createElement($n,Object.assign({onClick:h,size:"small"},r),a||(v==null?void 0:v.cancelText)),p.createElement(cq,{buttonProps:Object.assign(Object.assign({size:"small"},tq(l)),n),actionFn:f,close:d,prefixCls:g("btn"),quitOnNullishReturnValue:!0,emitEvent:!0},s||(v==null?void 0:v.okText))))},_ht=e=>{const{prefixCls:t,placement:n,className:r,style:i}=e,o=yht(e,["prefixCls","placement","className","style"]),{getPrefixCls:a}=p.useContext(Qt),s=a("popconfirm",t),[l]=vxe(s);return l(p.createElement(sCe,{placement:n,className:Te(s,r),style:i,content:p.createElement(bxe,Object.assign({prefixCls:s},o))}))};var Sht=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 Eht=p.forwardRef((e,t)=>{var n,r,i,o,a,s;const{prefixCls:l,placement:c="top",trigger:u="click",okType:d="primary",icon:f=p.createElement(Rg,null),children:h,overlayClassName:m,onOpenChange:g,onVisibleChange:v,overlayStyle:y,styles:b,classNames:_}=e,E=Sht(e,["prefixCls","placement","trigger","okType","icon","children","overlayClassName","onOpenChange","onVisibleChange","overlayStyle","styles","classNames"]),{getPrefixCls:w,popconfirm:S}=p.useContext(Qt),[C,T]=Pn(!1,{value:(n=e.open)!==null&&n!==void 0?n:e.visible,defaultValue:(r=e.defaultOpen)!==null&&r!==void 0?r:e.defaultVisible}),x=(P,z)=>{T(P,!0),v==null||v(P),g==null||g(P,z)},O=P=>{x(!1,P)},N=P=>{var z;return(z=e.onConfirm)===null||z===void 0?void 0:z.call(void 0,P)},I=P=>{var z;x(!1,P),(z=e.onCancel)===null||z===void 0||z.call(void 0,P)},M=(P,z)=>{const{disabled:L=!1}=e;L||x(P,z)},F=w("popconfirm",l),k=Te(F,m,(i=S==null?void 0:S.classNames)===null||i===void 0?void 0:i.root,_==null?void 0:_.root),B=Te((o=S==null?void 0:S.classNames)===null||o===void 0?void 0:o.body,_==null?void 0:_.body),[A]=vxe(F);return A(p.createElement(bu,Object.assign({},ur(E,["title"]),{trigger:u,placement:c,onOpenChange:M,open:C,ref:t,classNames:{root:k,body:B},styles:{root:Object.assign(Object.assign(Object.assign(Object.assign({},(a=S==null?void 0:S.styles)===null||a===void 0?void 0:a.root),S==null?void 0:S.style),y),b==null?void 0:b.root),body:Object.assign(Object.assign({},(s=S==null?void 0:S.styles)===null||s===void 0?void 0:s.body),b==null?void 0:b.body)},content:p.createElement(bxe,Object.assign({okType:d,icon:f},e,{prefixCls:F,close:O,onConfirm:N,onCancel:I})),"data-popover-inject":!0}),h))}),aD=Eht;aD._InternalPanelDoNotUseOrYouWillBeFired=_ht;var Cht={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},wht=function(){var t=p.useRef([]),n=p.useRef(null);return p.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},Jie=0,Tht=Qs();function xht(){var e;return Tht?(e=Jie,Jie+=1):e="TEST_OR_SSR",e}const Oht=function(e){var t=p.useState(),n=Ie(t,2),r=n[0],i=n[1];return p.useEffect(function(){i("rc_progress_".concat(xht()))},[]),e||r};var eoe=function(t){var n=t.bg,r=t.children;return p.createElement("div",{style:{width:"100%",height:"100%",background:n}},r)};function toe(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 Rht=p.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,f=r&&Gt(r)==="object",h=f?"#FFF":void 0,m=u/2,g=p.createElement("circle",{className:"".concat(n,"-circle-path"),r:o,cx:m,cy:m,stroke:h,strokeLinecap:l,strokeWidth:c,opacity:s===0?0:1,style:a,ref:t});if(!f)return g;var v="".concat(i,"-conic"),y=d?"".concat(180+d/2,"deg"):"0deg",b=toe(r,(360-d)/360),_=toe(r,1),E="conic-gradient(from ".concat(y,", ").concat(b.join(", "),")"),w="linear-gradient(to ".concat(d?"bottom":"top",", ").concat(_.join(", "),")");return p.createElement(p.Fragment,null,p.createElement("mask",{id:v},g),p.createElement("foreignObject",{x:0,y:0,width:u,height:u,mask:"url(#".concat(v,")")},p.createElement(eoe,{bg:w},p.createElement(eoe,{bg:E}))))}),PC=100,JL=function(t,n,r,i,o,a,s,l,c,u){var d=arguments.length>10&&arguments[10]!==void 0?arguments[10]:0,f=r/100*360*((360-a)/360),h=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 g=PC/2;return{stroke:typeof l=="string"?l:void 0,strokeDasharray:"".concat(n,"px ").concat(t),strokeDashoffset:m+d,transform:"rotate(".concat(o+f+h,"deg)"),transformOrigin:"".concat(g,"px ").concat(g,"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}},Iht=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function noe(e){var t=e??[];return Array.isArray(t)?t:[t]}var Aht=function(t){var n=W(W({},Cht),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,f=n.strokeLinecap,h=n.style,m=n.className,g=n.strokeColor,v=n.percent,y=Dt(n,Iht),b=PC/2,_=Oht(r),E="".concat(_,"-gradient"),w=b-a/2,S=Math.PI*2*w,C=c>0?90+c/2:-90,T=S*((360-c)/360),x=Gt(o)==="object"?o:{count:o,gap:2},O=x.count,N=x.gap,I=noe(v),M=noe(g),F=M.find(function(V){return V&&Gt(V)==="object"}),k=F&&Gt(F)==="object",B=k?"butt":f,A=JL(S,T,0,100,C,c,u,d,B,a),P=wht(),z=function(){var j=0;return I.map(function(U,J){var te=M[J]||M[M.length-1],ae=JL(S,T,j,U,C,c,u,te,B,a);return j+=U,p.createElement(Rht,{key:J,color:te,ptg:U,radius:w,prefixCls:i,gradientId:E,style:ae,strokeLinecap:B,strokeWidth:a,gapDegree:c,ref:function(Q){P[J]=Q},size:PC})}).reverse()},L=function(){var j=Math.round(O*(I[0]/100)),U=100/O,J=0;return new Array(O).fill(null).map(function(te,ae){var K=ae<=j-1?M[0]:d,Q=K&&Gt(K)==="object"?"url(#".concat(E,")"):void 0,oe=JL(S,T,J,U,C,c,u,K,"butt",a,N);return J+=(T-oe.strokeDashoffset+N)*100/T,p.createElement("circle",{key:ae,className:"".concat(i,"-circle-path"),r:w,cx:b,cy:b,stroke:Q,strokeWidth:a,opacity:1,style:oe,ref:function(fe){P[ae]=fe}})})};return p.createElement("svg",Ke({className:Te("".concat(i,"-circle"),m),viewBox:"0 0 ".concat(PC," ").concat(PC),style:h,id:r,role:"presentation"},y),!O&&p.createElement("circle",{className:"".concat(i,"-circle-trail"),r:w,cx:b,cy:b,stroke:d,strokeLinecap:B,strokeWidth:s||a,style:A}),O?L():z())};function ig(e){return!e||e<0?0:e>100?100:e}function ZM(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 Nht=e=>{let{percent:t,success:n,successPercent:r}=e;const i=ig(ZM({success:n,successPercent:r}));return[i,ig(ig(t)-i)]},Mht=e=>{let{success:t={},strokeColor:n}=e;const{strokeColor:r}=t;return[r||cv.green,n||null]},sD=(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]},kht=3,Pht=e=>kht/e*100,Dht=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,[f,h]=sD(u,"circle");let{strokeWidth:m}=e;m===void 0&&(m=Math.max(Pht(f),6));const g={width:f,height:h,fontSize:f*.15+6},v=p.useMemo(()=>{if(o||o===0)return o;if(s==="dashboard")return 75},[o,s]),y=Nht(e),b=i||s==="dashboard"&&"bottom"||void 0,_=Object.prototype.toString.call(e.strokeColor)==="[object Object]",E=Mht({success:c,strokeColor:e.strokeColor}),w=Te(`${t}-inner`,{[`${t}-circle-gradient`]:_}),S=p.createElement(Aht,{steps:d,percent:d?y[1]:y,strokeWidth:m,trailWidth:m,strokeColor:d?E[1]:E,strokeLinecap:r,trailColor:n,prefixCls:t,gapDegree:v,gapPosition:b}),C=f<=20,T=p.createElement("div",{className:w,style:g},S,!C&&l);return C?p.createElement(Ia,{title:l},T):T},JM="--progress-line-stroke-color",yxe="--progress-percent",roe=e=>{const t=e?"100%":"-100%";return new fr(`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}})},Lht=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:Object.assign(Object.assign({},gr(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(${JM})`]},height:"100%",width:`calc(1 / var(${yxe}) * 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 ${Ae(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:roe(),animationDuration:e.progressActiveMotionDuration,animationTimingFunction:e.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${t}-rtl${t}-status-active`]:{[`${t}-bg::before`]:{animationName:roe(!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}}})}},$ht=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"}}}},Fht=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}}}}}},Bht=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:{[`${t}-small&-line, ${t}-small&-line ${t}-text ${n}`]:{fontSize:e.fontSizeSM}}}},jht=e=>({circleTextColor:e.colorText,defaultColor:e.colorInfo,remainingColor:e.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em",circleIconFontSize:`${e.fontSize/e.fontSizeSM}em`}),Hht=cr("Progress",e=>{const t=e.calc(e.marginXXS).div(2).equal(),n=Kn(e,{progressStepMarginInlineEnd:t,progressStepMinWidth:t,progressActiveMotionDuration:"2.4s"});return[Lht(n),$ht(n),Fht(n),Bht(n)]},jht);var Uht=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 zht=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(", ")},Vht=(e,t)=>{const{from:n=cv.blue,to:r=cv.blue,direction:i=t==="rtl"?"to left":"to right"}=e,o=Uht(e,["from","to","direction"]);if(Object.keys(o).length!==0){const s=zht(o),l=`linear-gradient(${i}, ${s})`;return{background:l,[JM]:l}}const a=`linear-gradient(${i}, ${n}, ${r})`;return{background:a,[JM]:a}},Ght=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:f,type:h}=u,m=a&&typeof a!="string"?Vht(a,n):{[JM]:a,background:a},g=s==="square"||s==="butt"?0:void 0,v=i??[-1,o||(i==="small"?6:8)],[y,b]=sD(v,"line",{strokeWidth:o}),_={backgroundColor:c||void 0,borderRadius:g},E=Object.assign(Object.assign({width:`${ig(r)}%`,height:b,borderRadius:g},m),{[yxe]:ig(r)/100}),w=ZM(e),S={width:`${ig(w)}%`,height:b,borderRadius:g,backgroundColor:d==null?void 0:d.strokeColor},C={width:y<0?"100%":y},T=p.createElement("div",{className:`${t}-inner`,style:_},p.createElement("div",{className:Te(`${t}-bg`,`${t}-bg-${h}`),style:E},h==="inner"&&l),w!==void 0&&p.createElement("div",{className:`${t}-success-bg`,style:S})),x=h==="outer"&&f==="start",O=h==="outer"&&f==="end";return h==="outer"&&f==="center"?p.createElement("div",{className:`${t}-layout-bottom`},T,l):p.createElement("div",{className:`${t}-outer`,style:C},x&&l,T,O&&l)},Wht=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],[f,h]=sD(d,"step",{steps:n,strokeWidth:i}),m=f/n,g=new Array(n);for(let v=0;v<n;v++){const y=Array.isArray(o)?o[v]:o;g[v]=p.createElement("div",{key:v,className:Te(`${s}-steps-item`,{[`${s}-steps-item-active`]:v<=c-1}),style:{backgroundColor:v<=c-1?y:a,width:m,height:h}})}return p.createElement("div",{className:`${s}-steps-outer`},g,l)};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 Yht=["normal","exception","active","success"],_xe=p.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:f,style:h,percentPosition:m={}}=e,g=qht(e,["prefixCls","className","rootClassName","steps","strokeColor","percent","size","showInfo","type","status","format","style","percentPosition"]),{align:v="end",type:y="outer"}=m,b=Array.isArray(a)?a[0]:a,_=typeof a=="string"||Array.isArray(a)?a:void 0,E=p.useMemo(()=>{if(b){const z=typeof b=="string"?b:Object.values(b)[0];return new ir(z).isLight()}return!1},[a]),w=p.useMemo(()=>{var z,L;const V=ZM(e);return parseInt(V!==void 0?(z=V??0)===null||z===void 0?void 0:z.toString():(L=s??0)===null||L===void 0?void 0:L.toString(),10)},[s,e.success,e.successPercent]),S=p.useMemo(()=>!Yht.includes(d)&&w>=100?"success":d||"normal",[d,w]),{getPrefixCls:C,direction:T,progress:x}=p.useContext(Qt),O=C("progress",n),[N,I,M]=Hht(O),F=u==="line",k=F&&!o,B=p.useMemo(()=>{if(!c)return null;const z=ZM(e);let L;const V=f||(U=>`${U}%`),j=F&&E&&y==="inner";return y==="inner"||f||S!=="exception"&&S!=="success"?L=V(ig(s),ig(z)):S==="exception"?L=F?p.createElement(qf,null):p.createElement(Yf,null):S==="success"&&(L=F?p.createElement(_0,null):p.createElement(Yp,null)),p.createElement("span",{className:Te(`${O}-text`,{[`${O}-text-bright`]:j,[`${O}-text-${v}`]:k,[`${O}-text-${y}`]:k}),title:typeof L=="string"?L:void 0},L)},[c,s,w,S,u,O,f]);let A;u==="line"?A=o?p.createElement(Wht,Object.assign({},e,{strokeColor:_,prefixCls:O,steps:typeof o=="object"?o.count:o}),B):p.createElement(Ght,Object.assign({},e,{strokeColor:b,prefixCls:O,direction:T,percentPosition:{align:v,type:y}}),B):(u==="circle"||u==="dashboard")&&(A=p.createElement(Dht,Object.assign({},e,{strokeColor:b,prefixCls:O,progressStatus:S}),B));const P=Te(O,`${O}-status-${S}`,{[`${O}-${u==="dashboard"&&"circle"||u}`]:u!=="line",[`${O}-inline-circle`]:u==="circle"&&sD(l,"circle")[0]<=20,[`${O}-line`]:k,[`${O}-line-align-${v}`]:k,[`${O}-line-position-${y}`]:k,[`${O}-steps`]:o,[`${O}-show-info`]:c,[`${O}-${l}`]:typeof l=="string",[`${O}-rtl`]:T==="rtl"},x==null?void 0:x.className,r,i,I,M);return N(p.createElement("div",Object.assign({ref:t,style:Object.assign(Object.assign({},x==null?void 0:x.style),h),className:P,role:"progressbar","aria-valuenow":w,"aria-valuemin":0,"aria-valuemax":100},ur(g,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])),A))});function Sf(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=i5(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 IS,E2;function bl(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 sp(e,t){return(e>>>t&1)!=0}function Yl(e){if(!e)throw new Error("Assertion error")}var Ef=function(){function e(t,n){Kr(this,e),ee(this,"modeBits",void 0),ee(this,"numBitsCharCount",void 0),this.modeBits=t,this.numBitsCharCount=n}return Qr(e,[{key:"numCharCountBits",value:function(n){return this.numBitsCharCount[Math.floor((n+7)/17)]}}]),e}();IS=Ef;ee(Ef,"NUMERIC",new IS(1,[10,12,14]));ee(Ef,"ALPHANUMERIC",new IS(2,[9,11,13]));ee(Ef,"BYTE",new IS(4,[8,16,16]));ee(Ef,"KANJI",new IS(8,[8,10,12]));ee(Ef,"ECI",new IS(7,[0,0,0]));var iu=Qr(function e(t,n){Kr(this,e),ee(this,"ordinal",void 0),ee(this,"formatBits",void 0),this.ordinal=t,this.formatBits=n});E2=iu;ee(iu,"LOW",new E2(0,1));ee(iu,"MEDIUM",new E2(1,0));ee(iu,"QUARTILE",new E2(2,3));ee(iu,"HIGH",new E2(3,2));var pv=function(){function e(t,n,r){if(Kr(this,e),ee(this,"mode",void 0),ee(this,"numChars",void 0),ee(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 Qr(e,[{key:"getData",value:function(){return this.bitData.slice()}}],[{key:"makeBytes",value:function(n){var r=[],i=Sf(n),o;try{for(i.s();!(o=i.n()).done;){var a=o.value;bl(a,8,r)}}catch(s){i.e(s)}finally{i.f()}return new e(Ef.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);bl(parseInt(n.substring(i,i+o),10),o*3+1,r),i+=o}return new e(Ef.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)),bl(o,11,r)}return i<n.length&&bl(e.ALPHANUMERIC_CHARSET.indexOf(n.charAt(i)),6,r),new e(Ef.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)bl(n,8,r);else if(n<16384)bl(2,2,r),bl(n,14,r);else if(n<1e6)bl(6,3,r),bl(n,21,r);else throw new RangeError("ECI assignment value out of range");return new e(Ef.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=Sf(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}();ee(pv,"NUMERIC_REGEX",/^[0-9]*$/);ee(pv,"ALPHANUMERIC_REGEX",/^[A-Z0-9 $%*+.\/:-]*$/);ee(pv,"ALPHANUMERIC_CHARSET","0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:");var Oh=function(){function e(t,n,r,i){Kr(this,e),ee(this,"size",void 0),ee(this,"mask",void 0),ee(this,"modules",[]),ee(this,"isFunction",[]),ee(this,"version",void 0),ee(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 f=this.getPenaltyScore();f<u&&(o=d,u=f),this.applyMask(d)}Yl(0<=o&&o<=7),this.mask=o,this.applyMask(o),this.drawFormatBits(o),this.isFunction=[]}return Qr(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;Yl(a>>>15==0);for(var s=0;s<=5;s++)this.setFunctionModule(8,s,sp(a,s));this.setFunctionModule(8,7,sp(a,6)),this.setFunctionModule(8,8,sp(a,7)),this.setFunctionModule(7,8,sp(a,8));for(var l=9;l<15;l++)this.setFunctionModule(14-l,8,sp(a,l));for(var c=0;c<8;c++)this.setFunctionModule(this.size-1-c,8,sp(a,c));for(var u=8;u<15;u++)this.setFunctionModule(8,this.size-15+u,sp(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;Yl(i>>>18==0);for(var o=0;o<18;o++){var a=sp(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),f=0,h=0;f<o;f++){var m=n.slice(h,h+c-a+(f<l?0:1));h+=m.length;var g=e.reedSolomonComputeRemainder(m,d);f<l&&m.push(0),u.push(m.concat(g))}for(var v=[],y=function(E){u.forEach(function(w,S){(E!=c-a||S>=l)&&v.push(w[E])})},b=0;b<u[0].length;b++)y(b);return Yl(v.length==s),v}},{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]=sp(n[r>>>3],7-(r&7)),r++)}}Yl(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],f=0;f<this.size;f++)this.modules[f][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[f][l],u=1);n+=this.finderPenaltyTerminateAndCount(c,u,d)*e.PENALTY_N3}for(var h=0;h<this.size-1;h++)for(var m=0;m<this.size-1;m++){var g=this.modules[h][m];g==this.modules[h][m+1]&&g==this.modules[h+1][m]&&g==this.modules[h+1][m+1]&&(n+=e.PENALTY_N2)}var v=0,y=Sf(this.modules),b;try{for(y.s();!(b=y.n()).done;){var _=b.value;v=_.reduce(function(S,C){return S+(C?1:0)},v)}}catch(S){y.e(S)}finally{y.f()}var E=this.size*this.size,w=Math.ceil(Math.abs(v*20-E*10)/E)-1;return Yl(0<=w&&w<=9),n+=w*e.PENALTY_N4,Yl(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];Yl(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=pv.makeSegments(n);return e.encodeSegments(i,r)}},{key:"encodeBinary",value:function(n,r){var i=pv.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=pv.getTotalBits(n,l);if(d<=u){c=d;break}if(l>=o)throw new RangeError("Data too long")}for(var f=r,h=0,m=[iu.MEDIUM,iu.QUARTILE,iu.HIGH];h<m.length;h++){var g=m[h];s&&c<=e.getNumDataCodewords(l,g)*8&&(f=g)}var v=[],y=Sf(n),b;try{for(y.s();!(b=y.n()).done;){var _=b.value;bl(_.mode.modeBits,4,v),bl(_.numChars,_.mode.numCharCountBits(l),v);var E=Sf(_.getData()),w;try{for(E.s();!(w=E.n()).done;){var S=w.value;v.push(S)}}catch(O){E.e(O)}finally{E.f()}}}catch(O){y.e(O)}finally{y.f()}Yl(v.length==c);var C=e.getNumDataCodewords(l,f)*8;Yl(v.length<=C),bl(0,Math.min(4,C-v.length),v),bl(0,(8-v.length%8)%8,v),Yl(v.length%8==0);for(var T=236;v.length<C;T^=253)bl(T,8,v);for(var x=[];x.length*8<v.length;)x.push(0);return v.forEach(function(O,N){return x[N>>>3]|=O<<7-(N&7)}),new e(l,f,x,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 Yl(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=Sf(n),a;try{var s=function(){var c=a.value,u=c^i.shift();i.push(0),r.forEach(function(d,f){return i[f]^=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 Yl(i>>>8==0),i}}]),e}();ee(Oh,"MIN_VERSION",1);ee(Oh,"MAX_VERSION",40);ee(Oh,"PENALTY_N1",3);ee(Oh,"PENALTY_N2",3);ee(Oh,"PENALTY_N3",40);ee(Oh,"PENALTY_N4",10);ee(Oh,"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]]);ee(Oh,"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 Kht={L:iu.LOW,M:iu.MEDIUM,Q:iu.QUARTILE,H:iu.HIGH},Sxe=128,Exe="L",Cxe="#FFFFFF",wxe="#000000",Txe=!1,xxe=1,Qht=4,Xht=0,Zht=.1;function Oxe(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 Rxe(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 Jht(e,t,n,r){if(r==null)return null;var i=e.length+n*2,o=Math.floor(t*Zht),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,f=null;if(r.excavate){var h=Math.floor(c),m=Math.floor(u),g=Math.ceil(s+c-h),v=Math.ceil(l+u-m);f={x:h,y:m,w:g,h:v}}var y=r.crossOrigin;return{x:c,y:u,h:l,w:s,excavation:f,opacity:d,crossOrigin:y}}function emt(e,t){return t!=null?Math.floor(t):e?Qht:Xht}var tmt=function(){try{new Path2D().addPath(new Path2D)}catch{return!1}return!0}();function Ixe(e){var t=e.value,n=e.level,r=e.minVersion,i=e.includeMargin,o=e.marginSize,a=e.imageSettings,s=e.size,l=p.useMemo(function(){var m=pv.makeSegments(t);return Oh.encodeSegments(m,Kht[n],r)},[t,n,r]),c=p.useMemo(function(){var m=l.getModules(),g=emt(i,o),v=m.length+g*2,y=Jht(m,s,g,a);return{cells:m,margin:g,numCells:v,calculatedImageSettings:y}},[l,s,a,i,o]),u=c.cells,d=c.margin,f=c.numCells,h=c.calculatedImageSettings;return{qrcode:l,margin:d,cells:u,numCells:f,calculatedImageSettings:h}}var nmt=["value","size","level","bgColor","fgColor","includeMargin","minVersion","marginSize","style","imageSettings"],Axe=ce.forwardRef(function(t,n){var r=t.value,i=t.size,o=i===void 0?Sxe:i,a=t.level,s=a===void 0?Exe:a,l=t.bgColor,c=l===void 0?Cxe:l,u=t.fgColor,d=u===void 0?wxe:u,f=t.includeMargin,h=f===void 0?Txe:f,m=t.minVersion,g=m===void 0?xxe:m,v=t.marginSize,y=t.style,b=t.imageSettings,_=Dt(t,nmt),E=b==null?void 0:b.src,w=p.useRef(null),S=p.useRef(null),C=p.useCallback(function(P){w.current=P,typeof n=="function"?n(P):n&&(n.current=P)},[n]),T=p.useState(!1),x=Ie(T,2),O=x[1],N=Ixe({value:r,level:s,minVersion:g,includeMargin:h,marginSize:v,imageSettings:b,size:o}),I=N.margin,M=N.cells,F=N.numCells,k=N.calculatedImageSettings;p.useEffect(function(){if(w.current!=null){var P=w.current,z=P.getContext("2d");if(!z)return;var L=M,V=S.current,j=k!=null&&V!==null&&V.complete&&V.naturalHeight!==0&&V.naturalWidth!==0;j&&k.excavation!=null&&(L=Rxe(M,k.excavation));var U=window.devicePixelRatio||1;P.height=P.width=o*U;var J=o/F*U;z.scale(J,J),z.fillStyle=c,z.fillRect(0,0,F,F),z.fillStyle=d,tmt?z.fill(new Path2D(Oxe(L,I))):M.forEach(function(te,ae){te.forEach(function(K,Q){K&&z.fillRect(Q+I,ae+I,1,1)})}),k&&(z.globalAlpha=k.opacity),j&&z.drawImage(V,k.x+I,k.y+I,k.w,k.h)}}),p.useEffect(function(){O(!1)},[E]);var B=W({height:o,width:o},y),A=null;return E!=null&&(A=ce.createElement("img",{src:E,key:E,style:{display:"none"},onLoad:function(){O(!0)},ref:S,crossOrigin:k==null?void 0:k.crossOrigin})),ce.createElement(ce.Fragment,null,ce.createElement("canvas",Ke({style:B,height:o,width:o,ref:C,role:"img"},_)),A)});Axe.displayName="QRCodeCanvas";var rmt=["value","size","level","bgColor","fgColor","includeMargin","minVersion","title","marginSize","imageSettings"],Nxe=ce.forwardRef(function(t,n){var r=t.value,i=t.size,o=i===void 0?Sxe:i,a=t.level,s=a===void 0?Exe:a,l=t.bgColor,c=l===void 0?Cxe:l,u=t.fgColor,d=u===void 0?wxe:u,f=t.includeMargin,h=f===void 0?Txe:f,m=t.minVersion,g=m===void 0?xxe:m,v=t.title,y=t.marginSize,b=t.imageSettings,_=Dt(t,rmt),E=Ixe({value:r,level:s,minVersion:g,includeMargin:h,marginSize:y,imageSettings:b,size:o}),w=E.margin,S=E.cells,C=E.numCells,T=E.calculatedImageSettings,x=S,O=null;b!=null&&T!=null&&(T.excavation!=null&&(x=Rxe(S,T.excavation)),O=ce.createElement("image",{href:b.src,height:T.h,width:T.w,x:T.x+w,y:T.y+w,preserveAspectRatio:"none",opacity:T.opacity,crossOrigin:T.crossOrigin}));var N=Oxe(x,w);return ce.createElement("svg",Ke({height:o,width:o,viewBox:"0 0 ".concat(C," ").concat(C),ref:n,role:"img"},_),!!v&&ce.createElement("title",null,v),ce.createElement("path",{fill:c,d:"M0,0 h".concat(C,"v").concat(C,"H0z"),shapeRendering:"crispEdges"}),ce.createElement("path",{fill:d,d:N,shapeRendering:"crispEdges"}),O)});Nxe.displayName="QRCodeSVG";var imt={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"},omt=function(t,n){return p.createElement(Nn,Ke({},t,{ref:n,icon:imt}))},amt=p.forwardRef(omt),smt={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"},lmt=function(t,n){return p.createElement(Nn,Ke({},t,{ref:n,icon:smt}))},cmt=p.forwardRef(lmt),umt={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"},dmt=function(t,n){return p.createElement(Nn,Ke({},t,{ref:n,icon:umt}))},fmt=p.forwardRef(dmt),pmt={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"},hmt=function(t,n){return p.createElement(Nn,Ke({},t,{ref:n,icon:pmt}))},mmt=p.forwardRef(hmt),gmt={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"},vmt=function(t,n){return p.createElement(Nn,Ke({},t,{ref:n,icon:gmt}))},bmt=p.forwardRef(vmt),ymt={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"},_mt=function(t,n){return p.createElement(Nn,Ke({},t,{ref:n,icon:ymt}))},Smt=p.forwardRef(_mt),Emt={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"},Cmt=function(t,n){return p.createElement(Nn,Ke({},t,{ref:n,icon:Emt}))},wmt=p.forwardRef(Cmt),Tmt={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"},xmt=function(t,n){return p.createElement(Nn,Ke({},t,{ref:n,icon:Tmt}))},C2=p.forwardRef(xmt),Omt={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"},Rmt=function(t,n){return p.createElement(Nn,Ke({},t,{ref:n,icon:Omt}))},Imt=p.forwardRef(Rmt),Amt={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"},Nmt=function(t,n){return p.createElement(Nn,Ke({},t,{ref:n,icon:Amt}))},LT=p.forwardRef(Nmt),Mmt={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"},kmt=function(t,n){return p.createElement(Nn,Ke({},t,{ref:n,icon:Mmt}))},Pmt=p.forwardRef(kmt),Dmt={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"},Lmt=function(t,n){return p.createElement(Nn,Ke({},t,{ref:n,icon:Dmt}))},Mxe=p.forwardRef(Lmt),$mt={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"},Fmt=function(t,n){return p.createElement(Nn,Ke({},t,{ref:n,icon:$mt}))},Bmt=p.forwardRef(Fmt),jmt={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"},Hmt=function(t,n){return p.createElement(Nn,Ke({},t,{ref:n,icon:jmt}))},Umt=p.forwardRef(Hmt),zmt={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"},Vmt=function(t,n){return p.createElement(Nn,Ke({},t,{ref:n,icon:zmt}))},Gmt=p.forwardRef(Vmt),Wmt={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"},qmt=function(t,n){return p.createElement(Nn,Ke({},t,{ref:n,icon:Wmt}))},kxe=p.forwardRef(qmt),Ymt={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"},Kmt=function(t,n){return p.createElement(Nn,Ke({},t,{ref:n,icon:Ymt}))},Qmt=p.forwardRef(Kmt),Xmt={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"},Zmt=function(t,n){return p.createElement(Nn,Ke({},t,{ref:n,icon:Xmt}))},Jmt=p.forwardRef(Zmt),egt={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"},tgt=function(t,n){return p.createElement(Nn,Ke({},t,{ref:n,icon:egt}))},ngt=p.forwardRef(tgt),rgt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M885.9 533.7c16.8-22.2 26.1-49.4 26.1-77.7 0-44.9-25.1-87.4-65.5-111.1a67.67 67.67 0 00-34.3-9.3H572.4l6-122.9c1.4-29.7-9.1-57.9-29.5-79.4A106.62 106.62 0 00471 99.9c-52 0-98 35-111.8 85.1l-85.9 311h-.3v428h472.3c9.2 0 18.2-1.8 26.5-5.4 47.6-20.3 78.3-66.8 78.3-118.4 0-12.6-1.8-25-5.4-37 16.8-22.2 26.1-49.4 26.1-77.7 0-12.6-1.8-25-5.4-37 16.8-22.2 26.1-49.4 26.1-77.7-.2-12.6-2-25.1-5.6-37.1zM112 528v364c0 17.7 14.3 32 32 32h65V496h-65c-17.7 0-32 14.3-32 32z"}}]},name:"like",theme:"filled"},igt=function(t,n){return p.createElement(Nn,Ke({},t,{ref:n,icon:rgt}))},ogt=p.forwardRef(igt),agt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M885.9 533.7c16.8-22.2 26.1-49.4 26.1-77.7 0-44.9-25.1-87.4-65.5-111.1a67.67 67.67 0 00-34.3-9.3H572.4l6-122.9c1.4-29.7-9.1-57.9-29.5-79.4A106.62 106.62 0 00471 99.9c-52 0-98 35-111.8 85.1l-85.9 311H144c-17.7 0-32 14.3-32 32v364c0 17.7 14.3 32 32 32h601.3c9.2 0 18.2-1.8 26.5-5.4 47.6-20.3 78.3-66.8 78.3-118.4 0-12.6-1.8-25-5.4-37 16.8-22.2 26.1-49.4 26.1-77.7 0-12.6-1.8-25-5.4-37 16.8-22.2 26.1-49.4 26.1-77.7-.2-12.6-2-25.1-5.6-37.1zM184 852V568h81v284h-81zm636.4-353l-21.9 19 13.9 25.4a56.2 56.2 0 016.9 27.3c0 16.5-7.2 32.2-19.6 43l-21.9 19 13.9 25.4a56.2 56.2 0 016.9 27.3c0 16.5-7.2 32.2-19.6 43l-21.9 19 13.9 25.4a56.2 56.2 0 016.9 27.3c0 22.4-13.2 42.6-33.6 51.8H329V564.8l99.5-360.5a44.1 44.1 0 0142.2-32.3c7.6 0 15.1 2.2 21.1 6.7 9.9 7.4 15.2 18.6 14.6 30.5l-9.6 198.4h314.4C829 418.5 840 436.9 840 456c0 16.5-7.2 32.1-19.6 43z"}}]},name:"like",theme:"outlined"},sgt=function(t,n){return p.createElement(Nn,Ke({},t,{ref:n,icon:agt}))},lgt=p.forwardRef(sgt),cgt={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"},ugt=function(t,n){return p.createElement(Nn,Ke({},t,{ref:n,icon:cgt}))},T0=p.forwardRef(ugt),dgt={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"},fgt=function(t,n){return p.createElement(Nn,Ke({},t,{ref:n,icon:dgt}))},pgt=p.forwardRef(fgt),hgt={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"},mgt=function(t,n){return p.createElement(Nn,Ke({},t,{ref:n,icon:hgt}))},ggt=p.forwardRef(mgt),vgt={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"},bgt=function(t,n){return p.createElement(Nn,Ke({},t,{ref:n,icon:vgt}))},ek=p.forwardRef(bgt),ygt={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"},_gt=function(t,n){return p.createElement(Nn,Ke({},t,{ref:n,icon:ygt}))},Sgt=p.forwardRef(_gt),Egt={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"},Cgt=function(t,n){return p.createElement(Nn,Ke({},t,{ref:n,icon:Egt}))},w2=p.forwardRef(Cgt),wgt={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"},Tgt=function(t,n){return p.createElement(Nn,Ke({},t,{ref:n,icon:wgt}))},xgt=p.forwardRef(Tgt),Ogt={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"},Rgt=function(t,n){return p.createElement(Nn,Ke({},t,{ref:n,icon:Ogt}))},Igt=p.forwardRef(Rgt),Agt={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"},Ngt=function(t,n){return p.createElement(Nn,Ke({},t,{ref:n,icon:Agt}))},Mgt=p.forwardRef(Ngt),kgt={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"},Pgt=function(t,n){return p.createElement(Nn,Ke({},t,{ref:n,icon:kgt}))},Dgt=p.forwardRef(Pgt),Lgt={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"},$gt=function(t,n){return p.createElement(Nn,Ke({},t,{ref:n,icon:Lgt}))},Fgt=p.forwardRef($gt),Bgt={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"},jgt=function(t,n){return p.createElement(Nn,Ke({},t,{ref:n,icon:Bgt}))},Hgt=p.forwardRef(jgt),Ugt={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"},zgt=function(t,n){return p.createElement(Nn,Ke({},t,{ref:n,icon:Ugt}))},Vgt=p.forwardRef(zgt),Ggt={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"},Wgt=function(t,n){return p.createElement(Nn,Ke({},t,{ref:n,icon:Ggt}))},Pxe=p.forwardRef(Wgt),qgt={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"},Ygt=function(t,n){return p.createElement(Nn,Ke({},t,{ref:n,icon:qgt}))},Kgt=p.forwardRef(Ygt),Qgt={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"},Xgt=function(t,n){return p.createElement(Nn,Ke({},t,{ref:n,icon:Qgt}))},fY=p.forwardRef(Xgt),Zgt={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"},Jgt=function(t,n){return p.createElement(Nn,Ke({},t,{ref:n,icon:Zgt}))},e1t=p.forwardRef(Jgt),t1t={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"},n1t=function(t,n){return p.createElement(Nn,Ke({},t,{ref:n,icon:t1t}))},lD=p.forwardRef(n1t),r1t={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"},i1t=function(t,n){return p.createElement(Nn,Ke({},t,{ref:n,icon:r1t}))},pY=p.forwardRef(i1t),o1t={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"},a1t=function(t,n){return p.createElement(Nn,Ke({},t,{ref:n,icon:o1t}))},s1t=p.forwardRef(a1t),l1t={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"},c1t=function(t,n){return p.createElement(Nn,Ke({},t,{ref:n,icon:l1t}))},hY=p.forwardRef(c1t),u1t={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"},d1t=function(t,n){return p.createElement(Nn,Ke({},t,{ref:n,icon:u1t}))},cD=p.forwardRef(d1t),f1t={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"},p1t=function(t,n){return p.createElement(Nn,Ke({},t,{ref:n,icon:f1t}))},h1t=p.forwardRef(p1t),m1t=["className","component","viewBox","spin","rotate","tabIndex","onClick","children"],Dxe=p.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=Dt(e,m1t),d=p.useRef(),f=$d(d,t);eH(!!(r||c),"Should have `component` prop or `children`."),vSe(d);var h=p.useContext(l5),m=h.prefixCls,g=m===void 0?"anticon":m,v=h.rootClassName,y=Te(v,g,ee({},"".concat(g,"-spin"),!!o&&!!r),n),b=Te(ee({},"".concat(g,"-spin"),!!o)),_=a?{msTransform:"rotate(".concat(a,"deg)"),transform:"rotate(".concat(a,"deg)")}:void 0,E=W(W({},ZYe),{},{className:b,style:_,viewBox:i});i||delete E.viewBox;var w=function(){return r?p.createElement(r,E,c):c?(eH(!!i||p.Children.count(c)===1&&p.isValidElement(c)&&p.Children.only(c).type==="use","Make sure that you provide correct `viewBox` prop (default `0 0 1024 1024`) to the icon."),p.createElement("svg",Ke({},E,{viewBox:i}),c)):null},S=s;return S===void 0&&l&&(S=-1),p.createElement("span",Ke({role:"img"},u,{ref:f,tabIndex:S,onClick:l,className:y}),w())});Dxe.displayName="AntdIcon";var g1t=["type","children"],Lxe=new Set;function v1t(e){return!!(typeof e=="string"&&e.length&&!Lxe.has(e))}function tk(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=e[t];if(v1t(n)){var r=document.createElement("script");r.setAttribute("src",n),r.setAttribute("data-namespace",n),e.length>t+1&&(r.onload=function(){tk(e,t+1)},r.onerror=function(){tk(e,t+1)}),Lxe.add(n),document.body.appendChild(r)}}function $xe(){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)?tk(t.reverse()):tk([t]));var i=p.forwardRef(function(o,a){var s=o.type,l=o.children,c=Dt(o,g1t),u=null;return o.type&&(u=p.createElement("use",{xlinkHref:"#".concat(s)})),l&&(u=l),p.createElement(Dxe,Ke({},r,c,{ref:a}),u)});return i.displayName="Iconfont",i}const b1t=ce.createElement(Ac,null);function y1t(e){let{prefixCls:t,locale:n,onRefresh:r,statusRender:i,status:o}=e;const a=ce.createElement(ce.Fragment,null,ce.createElement("p",{className:`${t}-expired`},n==null?void 0:n.expired),r&&ce.createElement($n,{type:"link",icon:ce.createElement(Hgt,null),onClick:r},n==null?void 0:n.refresh)),s=ce.createElement("p",{className:`${t}-scanned`},n==null?void 0:n.scanned),l={expired:a,loading:b1t,scanned:s};return(i??(d=>l[d.status]))({status:o,locale:n,onRefresh:r})}const _1t=e=>{const{componentCls:t,lineWidth:n,lineType:r,colorSplit:i}=e;return{[t]:Object.assign(Object.assign({},gr(e)),{display:"flex",justifyContent:"center",alignItems:"center",padding:e.paddingSM,backgroundColor:e.colorWhite,borderRadius:e.borderRadiusLG,border:`${Ae(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}}},S1t=e=>({QRCodeMaskBackgroundColor:new ir(e.colorBgContainer).setA(.96).toRgbString()}),E1t=cr("QRCode",e=>{const t=Kn(e,{QRCodeTextColor:e.colorText});return _1t(t)},S1t);var C1t=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 Fxe=e=>{var t,n,r,i;const[,o]=Go(),{value:a,type:s="canvas",icon:l="",size:c=160,iconSize:u,color:d=o.colorText,errorLevel:f="M",status:h="active",bordered:m=!0,onRefresh:g,style:v,className:y,rootClassName:b,prefixCls:_,bgColor:E="transparent",statusRender:w}=e,S=C1t(e,["value","type","icon","size","iconSize","color","errorLevel","status","bordered","onRefresh","style","className","rootClassName","prefixCls","bgColor","statusRender"]),{getPrefixCls:C}=p.useContext(Qt),T=C("qrcode",_),[x,O,N]=E1t(T),I={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"},M=xi(S,!0),F=ur(S,Object.keys(M)),k=Object.assign({value:a,size:c,level:f,bgColor:E,fgColor:d,style:{width:v==null?void 0:v.width,height:v==null?void 0:v.height},imageSettings:l?I:void 0},M),[B]=ds("QRCode");if(!a)return null;const A=Te(T,y,b,O,N,{[`${T}-borderless`]:!m}),P=Object.assign(Object.assign({backgroundColor:E},v),{width:(r=v==null?void 0:v.width)!==null&&r!==void 0?r:c,height:(i=v==null?void 0:v.height)!==null&&i!==void 0?i:c});return x(ce.createElement("div",Object.assign({},F,{className:A,style:P}),h!=="active"&&ce.createElement("div",{className:`${T}-mask`},ce.createElement(y1t,{prefixCls:T,locale:B,status:h,onRefresh:g,statusRender:w})),s==="canvas"?ce.createElement(Axe,Object.assign({},k)):ce.createElement(Nxe,Object.assign({},k))))};function w1t(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,f=e.onClick,h=function(w){d(w,a)},m=function(w){f(w,a)},g=function(w){w.keyCode===dt.ENTER&&f(w,a)},v=a+1,y=new Set([r]);l===0&&a===0&&u?y.add("".concat(r,"-focused")):c&&l+.5>=v&&l<v?(y.add("".concat(r,"-half")),y.add("".concat(r,"-active")),u&&y.add("".concat(r,"-focused"))):(v<=l?y.add("".concat(r,"-full")):y.add("".concat(r,"-zero")),v===l&&u&&y.add("".concat(r,"-focused")));var b=typeof i=="function"?i(e):i,_=ce.createElement("li",{className:Te(Array.from(y)),ref:t},ce.createElement("div",{onClick:n?null:m,onKeyDown:n?null:g,onMouseMove:n?null:h,role:"radio","aria-checked":l>a?"true":"false","aria-posinset":a+1,"aria-setsize":s,tabIndex:n?-1:0},ce.createElement("div",{className:"".concat(r,"-first")},b),ce.createElement("div",{className:"".concat(r,"-second")},b)));return o&&(_=o(_,e)),_}const T1t=ce.forwardRef(w1t);function x1t(){var e=p.useRef({});function t(r){return e.current[r]}function n(r){return function(i){e.current[r]=i}}return[t,n]}function O1t(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 R1t(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 I1t(e){var t=R1t(e),n=e.ownerDocument,r=n.defaultView||n.parentWindow;return t.left+=O1t(r),t.left}var A1t=["prefixCls","className","defaultValue","value","count","allowHalf","allowClear","keyboard","character","characterRender","disabled","direction","tabIndex","autoFocus","onHoverChange","onChange","onFocus","onBlur","onKeyDown","onMouseLeave"];function N1t(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,f=d===void 0?!0:d,h=e.keyboard,m=h===void 0?!0:h,g=e.character,v=g===void 0?"★":g,y=e.characterRender,b=e.disabled,_=e.direction,E=_===void 0?"ltr":_,w=e.tabIndex,S=w===void 0?0:w,C=e.autoFocus,T=e.onHoverChange,x=e.onChange,O=e.onFocus,N=e.onBlur,I=e.onKeyDown,M=e.onMouseLeave,F=Dt(e,A1t),k=x1t(),B=Ie(k,2),A=B[0],P=B[1],z=ce.useRef(null),L=function(){if(!b){var G;(G=z.current)===null||G===void 0||G.focus()}};ce.useImperativeHandle(t,function(){return{focus:L,blur:function(){if(!b){var G;(G=z.current)===null||G===void 0||G.blur()}}}});var V=Pn(o||0,{value:a}),j=Ie(V,2),U=j[0],J=j[1],te=Pn(null),ae=Ie(te,2),K=ae[0],Q=ae[1],oe=function(G,ie){var me=E==="rtl",se=G+1;if(u){var Be=A(G),Ve=I1t(Be),re=Be.clientWidth;(me&&ie-Ve>re/2||!me&&ie-Ve<re/2)&&(se-=.5)}return se},ge=function(G){J(G),x==null||x(G)},fe=ce.useState(!1),ue=Ie(fe,2),le=ue[0],ve=ue[1],ne=function(){ve(!0),O==null||O()},pe=function(){ve(!1),N==null||N()},be=ce.useState(null),Re=Ie(be,2),Se=Re[0],Ce=Re[1],ye=function(G,ie){var me=oe(ie,G.pageX);me!==K&&(Ce(me),Q(null)),T==null||T(me)},he=function(G){b||(Ce(null),Q(null),T==null||T(void 0)),G&&(M==null||M(G))},_e=function(G,ie){var me=oe(ie,G.pageX),se=!1;f&&(se=me===U),he(),ge(se?0:me),Q(se?me:null)},Oe=function(G){var ie=G.keyCode,me=E==="rtl",se=u?.5:1;m&&(ie===dt.RIGHT&&U<l&&!me?(ge(U+se),G.preventDefault()):ie===dt.LEFT&&U>0&&!me||ie===dt.RIGHT&&U>0&&me?(ge(U-se),G.preventDefault()):ie===dt.LEFT&&U<l&&me&&(ge(U+se),G.preventDefault())),I==null||I(G)};ce.useEffect(function(){C&&!b&&L()},[]);var De=new Array(l).fill(0).map(function(D,G){return ce.createElement(T1t,{ref:P(G),index:G,count:l,disabled:b,prefixCls:"".concat(r,"-star"),allowHalf:u,value:Se===null?U:Se,onClick:_e,onHover:ye,key:D||G,character:v,characterRender:y,focused:le})}),Y=Te(r,i,ee(ee({},"".concat(r,"-disabled"),b),"".concat(r,"-rtl"),E==="rtl"));return ce.createElement("ul",Ke({className:Y,onMouseLeave:he,tabIndex:b?-1:S,onFocus:b?null:ne,onBlur:b?null:pe,onKeyDown:b?null:Oe,ref:z,role:"radiogroup"},xi(F,{aria:!0,data:!0,attr:!0})),De)}const M1t=ce.forwardRef(N1t),k1t=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:`${Ae(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"}}}},P1t=e=>({[`&-rtl${e.componentCls}`]:{direction:"rtl"}}),D1t=e=>{const{componentCls:t}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},gr(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)"}}}),k1t(e)),P1t(e))}},L1t=e=>({starColor:e.yellow6,starSize:e.controlHeightLG*.5,starHoverScale:"scale(1.1)",starBg:e.colorFillContent}),$1t=cr("Rate",e=>{const t=Kn(e,{});return[D1t(t)]},L1t);var F1t=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 ioe=p.forwardRef((e,t)=>{const{prefixCls:n,className:r,rootClassName:i,style:o,tooltips:a,character:s=p.createElement(lD,null),disabled:l}=e,c=F1t(e,["prefixCls","className","rootClassName","style","tooltips","character","disabled"]),u=(w,S)=>{let{index:C}=S;return a?p.createElement(Ia,{title:a[C]},w):w},{getPrefixCls:d,direction:f,rate:h}=p.useContext(Qt),m=d("rate",n),[g,v,y]=$1t(m),b=Object.assign(Object.assign({},h==null?void 0:h.style),o),_=p.useContext(Vo),E=l??_;return g(p.createElement(M1t,Object.assign({ref:t,character:s,characterRender:u,disabled:E},c,{className:Te(r,i,v,y,h==null?void 0:h.className),style:b,prefixCls:m,direction:f})))}),B1t=()=>p.createElement("svg",{width:"252",height:"294"},p.createElement("title",null,"No Found"),p.createElement("defs",null,p.createElement("path",{d:"M0 .387h251.772v251.772H0z"})),p.createElement("g",{fill:"none",fillRule:"evenodd"},p.createElement("g",{transform:"translate(0 .012)"},p.createElement("mask",{fill:"#fff"}),p.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)"})),p.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"}),p.createElement("path",{d:"M36.975 134.297l10.482 5.943M48.373 146.508l-12.648 10.788",stroke:"#FFF",strokeWidth:"2"}),p.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"}),p.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"}),p.createElement("path",{d:"M179.26 141.75l12.64 7.167M193.006 156.477l-15.255 13.011",stroke:"#FFF",strokeWidth:"2"}),p.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"}),p.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"}),p.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"}),p.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"}),p.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"}),p.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"}),p.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"}),p.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"}),p.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"}),p.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"}),p.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"}),p.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"}),p.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"}),p.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"}),p.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"}),p.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"}),p.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"}),p.createElement("path",{d:"M107.275 222.1s2.773-1.11 6.102-3.884",stroke:"#648BD8",strokeLinecap:"round",strokeLinejoin:"round"}),p.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"}),p.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"}),p.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"}),p.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"}),p.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"}),p.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"}),p.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"}),p.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"}),p.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"}),p.createElement("path",{stroke:"#DB836E",strokeWidth:"1.118",strokeLinecap:"round",strokeLinejoin:"round",d:"M110.13 74.84l-.896 1.61-.298 4.357h-2.228"}),p.createElement("path",{d:"M110.846 74.481s1.79-.716 2.506.537",stroke:"#5C2552",strokeWidth:"1.118",strokeLinecap:"round",strokeLinejoin:"round"}),p.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"}),p.createElement("path",{d:"M103.287 72.93s1.83 1.113 4.137.954",stroke:"#5C2552",strokeWidth:"1.118",strokeLinecap:"round",strokeLinejoin:"round"}),p.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"}),p.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"}),p.createElement("path",{d:"M129.405 122.865s-5.272 7.403-9.422 10.768",stroke:"#E4EBF7",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),p.createElement("path",{d:"M119.306 107.329s.452 4.366-2.127 32.062",stroke:"#E4EBF7",strokeWidth:"1.101",strokeLinecap:"round",strokeLinejoin:"round"}),p.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"}),p.createElement("path",{d:"M150.29 151.232h-19.863v-33.707h20.784v32.786a.92.92 0 0 1-.92.92",fill:"#F4D19D"}),p.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"}),p.createElement("path",{fill:"#CC9B6E",d:"M123.689 128.447H99.25v-.519h24.169l7.183-10.26.424.298z"}),p.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"}),p.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"}),p.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"}),p.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"}),p.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"}),p.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"}),p.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"}),p.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"}),p.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"}),p.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"}),p.createElement("path",{d:"M88.979 89.48s7.776 5.384 16.6 2.842",stroke:"#E4EBF7",strokeWidth:"1.101",strokeLinecap:"round",strokeLinejoin:"round"}))),j1t=()=>p.createElement("svg",{width:"254",height:"294"},p.createElement("title",null,"Server Error"),p.createElement("defs",null,p.createElement("path",{d:"M0 .335h253.49v253.49H0z"}),p.createElement("path",{d:"M0 293.665h253.49V.401H0z"})),p.createElement("g",{fill:"none",fillRule:"evenodd"},p.createElement("g",{transform:"translate(0 .067)"},p.createElement("mask",{fill:"#fff"}),p.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)"})),p.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"}),p.createElement("path",{d:"M37.19 135.59l10.553 5.983M48.665 147.884l-12.734 10.861",stroke:"#FFF",strokeWidth:"2"}),p.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"}),p.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"}),p.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"}),p.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"}),p.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"}),p.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"}),p.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"}),p.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"}),p.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"}),p.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"}),p.createElement("path",{stroke:"#DB836E",strokeWidth:"1.063",strokeLinecap:"round",strokeLinejoin:"round",d:"M99.206 73.644l-.9 1.62-.3 4.38h-2.24"}),p.createElement("path",{d:"M99.926 73.284s1.8-.72 2.52.54",stroke:"#5C2552",strokeWidth:"1.117",strokeLinecap:"round",strokeLinejoin:"round"}),p.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"}),p.createElement("path",{d:"M92.326 71.724s1.84 1.12 4.16.96",stroke:"#5C2552",strokeWidth:"1.117",strokeLinecap:"round",strokeLinejoin:"round"}),p.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"}),p.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"}),p.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"}),p.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"}),p.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"}),p.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"}),p.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"}),p.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"}),p.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"}),p.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"}),p.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"}),p.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"}),p.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"}),p.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"}),p.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"}),p.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"}),p.createElement("path",{d:"M96.973 219.373s2.882-1.153 6.34-4.034",stroke:"#648BD8",strokeWidth:"1.032",strokeLinecap:"round",strokeLinejoin:"round"}),p.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"}),p.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"}),p.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"}),p.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"}),p.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"}),p.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"}),p.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"}),p.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"}),p.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"}),p.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"}),p.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"}),p.createElement("path",{d:"M109.278 112.533s3.38-3.613 7.575-4.662",stroke:"#E4EBF7",strokeWidth:"1.085",strokeLinecap:"round",strokeLinejoin:"round"}),p.createElement("path",{d:"M107.375 123.006s9.697-2.745 11.445-.88",stroke:"#E59788",strokeWidth:".774",strokeLinecap:"round",strokeLinejoin:"round"}),p.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"}),p.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"}),p.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"}),p.createElement("mask",{fill:"#fff"}),p.createElement("path",{fill:"#A3B4C6",mask:"url(#d)",d:"M154.098 190.096h70.513v-84.617h-70.513z"}),p.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)"}),p.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)"}),p.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)"}),p.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)"}),p.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)"}),p.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)"}),p.createElement("path",{d:"M177.259 207.217v11.52M201.05 207.217v11.52",stroke:"#A3B4C6",strokeWidth:"1.124",strokeLinecap:"round",strokeLinejoin:"round",mask:"url(#d)"}),p.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)"}),p.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)"}),p.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)"}))),H1t=e=>{const{componentCls:t,lineHeightHeading3:n,iconCls:r,padding:i,paddingXL:o,paddingXS:a,paddingLG:s,marginXS:l,lineHeight:c}=e;return{[t]:{padding:`${Ae(e.calc(s).mul(2).equal())} ${Ae(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:`${Ae(s)} ${Ae(e.calc(i).mul(2.5).equal())}`,backgroundColor:e.colorFillAlter},[`${t} ${t}-extra`]:{margin:e.extraMargin,textAlign:"center","& > *":{marginInlineEnd:a,"&:last-child":{marginInlineEnd:0}}}}},U1t=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}}},z1t=e=>[H1t(e),U1t(e)],V1t=e=>z1t(e),G1t=e=>({titleFontSize:e.fontSizeHeading3,subtitleFontSize:e.fontSize,iconFontSize:e.fontSizeHeading3*3,extraMargin:`${e.paddingLG}px 0 0 0`}),W1t=cr("Result",e=>{const t=e.colorInfo,n=e.colorError,r=e.colorSuccess,i=e.colorWarning,o=Kn(e,{resultInfoIconColor:t,resultErrorIconColor:n,resultSuccessIconColor:r,resultWarningIconColor:i,imageWidth:250,imageHeight:295});return[V1t(o)]},G1t),q1t=()=>p.createElement("svg",{width:"251",height:"294"},p.createElement("title",null,"Unauthorized"),p.createElement("g",{fill:"none",fillRule:"evenodd"},p.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"}),p.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"}),p.createElement("path",{d:"M38.652 136.36l10.425 5.91M49.989 148.505l-12.58 10.73",stroke:"#FFF",strokeWidth:"2"}),p.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"}),p.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"}),p.createElement("path",{d:"M180.17 143.772l12.572 7.129M193.841 158.42L178.67 171.36",stroke:"#FFF",strokeWidth:"2"}),p.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"}),p.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"}),p.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"}),p.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"}),p.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"}),p.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"}),p.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"}),p.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"}),p.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"}),p.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"}),p.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"}),p.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"}),p.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"}),p.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"}),p.createElement("path",{d:"M78.18 94.656s.911 7.41-4.914 13.078",stroke:"#E4EBF7",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),p.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"}),p.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"}),p.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"}),p.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"}),p.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"}),p.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"}),p.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"}),p.createElement("path",{d:"M91.132 86.786s5.269 4.957 12.679 2.327",stroke:"#DB836E",strokeWidth:"1.145",strokeLinecap:"round",strokeLinejoin:"round"}),p.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"}),p.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"}),p.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"}),p.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"}),p.createElement("path",{d:"M66.508 86.763s-1.598 8.83-6.697 14.078",stroke:"#E4EBF7",strokeWidth:"1.114",strokeLinecap:"round",strokeLinejoin:"round"}),p.createElement("path",{d:"M128.31 87.934s3.013 4.121 4.06 11.785",stroke:"#E4EBF7",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),p.createElement("path",{d:"M64.09 84.816s-6.03 9.912-13.607 9.903",stroke:"#DB836E",strokeWidth:".795",strokeLinecap:"round",strokeLinejoin:"round"}),p.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"}),p.createElement("path",{d:"M130.532 85.488s4.588 5.757 11.619 6.214",stroke:"#DB836E",strokeWidth:".75",strokeLinecap:"round",strokeLinejoin:"round"}),p.createElement("path",{d:"M121.708 105.73s-.393 8.564-1.34 13.612",stroke:"#E4EBF7",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),p.createElement("path",{d:"M115.784 161.512s-3.57-1.488-2.678-7.14",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),p.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"}),p.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"}),p.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"}),p.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"}),p.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"}),p.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"}),p.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"}),p.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"}),p.createElement("path",{d:"M108.459 220.905s2.759-1.104 6.07-3.863",stroke:"#648BD8",strokeLinecap:"round",strokeLinejoin:"round"}),p.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"}),p.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"}),p.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"}),p.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"}),p.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"}))),Y1t={success:_0,error:qf,info:Rg,warning:h1t},T2={404:B1t,500:j1t,403:q1t},K1t=Object.keys(T2),Q1t=e=>{let{prefixCls:t,icon:n,status:r}=e;const i=Te(`${t}-icon`);if(K1t.includes(`${r}`)){const a=T2[r];return p.createElement("div",{className:`${i} ${t}-image`},p.createElement(a,null))}const o=p.createElement(Y1t[r]);return n===null||n===!1?null:p.createElement("div",{className:i},n||o)},X1t=e=>{let{prefixCls:t,extra:n}=e;return n?p.createElement("div",{className:`${t}-extra`},n):null},x2=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:f,result:h}=p.useContext(Qt),m=d("result",t),[g,v,y]=W1t(m),b=Te(m,`${m}-${l}`,n,h==null?void 0:h.className,r,{[`${m}-rtl`]:f==="rtl"},v,y),_=Object.assign(Object.assign({},h==null?void 0:h.style),a);return g(p.createElement("div",{className:b,style:_},p.createElement(Q1t,{prefixCls:m,status:l,icon:c}),p.createElement("div",{className:`${m}-title`},o),i&&p.createElement("div",{className:`${m}-subtitle`},i),p.createElement(X1t,{prefixCls:m,extra:u}),s&&p.createElement("div",{className:`${m}-content`},s)))};x2.PRESENTED_IMAGE_403=T2[403];x2.PRESENTED_IMAGE_404=T2[404];x2.PRESENTED_IMAGE_500=T2[500];var Z1t=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],Bxe=p.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,f=e.onClick,h=e.onChange,m=e.onKeyDown,g=Dt(e,Z1t),v=Pn(!1,{value:a,defaultValue:s}),y=Ie(v,2),b=y[0],_=y[1];function E(T,x){var O=b;return l||(O=T,_(O),h==null||h(O,x)),O}function w(T){T.which===dt.LEFT?E(!1,T):T.which===dt.RIGHT&&E(!0,T),m==null||m(T)}function S(T){var x=E(!b,T);f==null||f(x,T)}var C=Te(i,o,(n={},ee(n,"".concat(i,"-checked"),b),ee(n,"".concat(i,"-disabled"),l),n));return p.createElement("button",Ke({},g,{type:"button",role:"switch","aria-checked":b,disabled:l,className:C,ref:t,onKeyDown:w,onClick:S}),c,p.createElement("span",{className:"".concat(i,"-inner")},p.createElement("span",{className:"".concat(i,"-inner-checked")},u),p.createElement("span",{className:"".concat(i,"-inner-unchecked")},d)))});Bxe.displayName="Switch";const J1t=e=>{const{componentCls:t,trackHeightSM:n,trackPadding:r,trackMinWidthSM:i,innerMinMarginSM:o,innerMaxMarginSM:a,handleSizeSM:s,calc:l}=e,c=`${t}-inner`,u=Ae(l(s).add(l(r).mul(2)).equal()),d=Ae(l(a).mul(2).equal());return{[t]:{[`&${t}-small`]:{minWidth:i,height:n,lineHeight:Ae(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% - ${Ae(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()}}}}}}},evt=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}}}},tvt=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% - ${Ae(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}}}}},nvt=e=>{const{componentCls:t,trackHeight:n,trackPadding:r,innerMinMargin:i,innerMaxMargin:o,handleSize:a,calc:s}=e,l=`${t}-inner`,c=Ae(s(a).add(s(r).mul(2)).equal()),u=Ae(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()}}}}}},rvt=e=>{const{componentCls:t,trackHeight:n,trackMinWidth:r}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},gr(e)),{position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:r,height:n,lineHeight:Ae(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}}),Xs(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"}})}},ivt=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 ir("#00230b").setA(.2).toRgbString()}`,innerMinMargin:l/2,innerMaxMargin:l+s+s*2,innerMinMarginSM:c/2,innerMaxMarginSM:c+s+s*2}},ovt=cr("Switch",e=>{const t=Kn(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[rvt(t),nvt(t),tvt(t),evt(t),J1t(t)]},ivt);var avt=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 svt=p.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:f,onChange:h}=e,m=avt(e,["prefixCls","size","disabled","loading","className","rootClassName","style","checked","value","defaultChecked","defaultValue","onChange"]),[g,v]=Pn(!1,{value:c??u,defaultValue:d??f}),{getPrefixCls:y,direction:b,switch:_}=p.useContext(Qt),E=p.useContext(Vo),w=(i??E)||o,S=y("switch",n),C=p.createElement("div",{className:`${S}-handle`},o&&p.createElement(xd,{className:`${S}-loading-icon`})),[T,x,O]=ovt(S),N=So(r),I=Te(_==null?void 0:_.className,{[`${S}-small`]:N==="small",[`${S}-loading`]:o,[`${S}-rtl`]:b==="rtl"},a,s,x,O),M=Object.assign(Object.assign({},_==null?void 0:_.style),l),F=function(){v(arguments.length<=0?void 0:arguments[0]),h==null||h.apply(void 0,arguments)};return T(p.createElement(t2,{component:"Switch"},p.createElement(Bxe,Object.assign({},m,{checked:g,onChange:F,prefixCls:S,className:I,style:M,disabled:w,ref:t,loadingIcon:C}))))}),nk=svt;nk.__ANT_SWITCH=!0;var Ip={},O2="rc-table-internal-hook";function mY(e){var t=p.createContext(void 0),n=function(i){var o=i.value,a=i.children,s=p.useRef(o);s.current=o;var l=p.useState(function(){return{getValue:function(){return s.current},listeners:new Set}}),c=Ie(l,1),u=c[0];return sr(function(){Ml.unstable_batchedUpdates(function(){u.listeners.forEach(function(d){d(o)})})},[o]),p.createElement(t.Provider,{value:u},a)};return{Context:t,Provider:n,defaultValue:e}}function is(e,t){var n=Yn(typeof t=="function"?t:function(d){if(t===void 0)return d;if(!Array.isArray(t))return d[t];var f={};return t.forEach(function(h){f[h]=d[h]}),f}),r=p.useContext(e==null?void 0:e.Context),i=r||{},o=i.listeners,a=i.getValue,s=p.useRef();s.current=n(r?a():e==null?void 0:e.defaultValue);var l=p.useState({}),c=Ie(l,2),u=c[1];return sr(function(){if(!r)return;function d(f){var h=n(f);gu(s.current,h,!0)||u({})}return o.add(d),function(){o.delete(d)}},[r]),s.current}function lvt(){var e=p.createContext(null);function t(){return p.useContext(e)}function n(i,o){var a=Cd(i),s=function(c,u){var d=a?{ref:u}:{},f=p.useRef(0),h=p.useRef(c),m=t();return m!==null?p.createElement(i,Ke({},c,d)):((!o||o(h.current,c))&&(f.current+=1),h.current=c,p.createElement(e.Provider,{value:f.current},p.createElement(i,Ke({},c,d))))};return a?p.forwardRef(s):s}function r(i,o){var a=Cd(i),s=function(c,u){var d=a?{ref:u}:{};return t(),p.createElement(i,Ke({},c,d))};return a?p.memo(p.forwardRef(s),o):p.memo(s,o)}return{makeImmutable:n,responseImmutable:r,useImmutableMark:t}}var gY=lvt(),jxe=gY.makeImmutable,AS=gY.responseImmutable,cvt=gY.useImmutableMark,ol=mY(),Hxe=p.createContext({renderWithProps:!1}),uvt="RC_TABLE_KEY";function dvt(e){return e==null?[]:Array.isArray(e)?e:[e]}function uD(e){var t=[],n={};return e.forEach(function(r){for(var i=r||{},o=i.key,a=i.dataIndex,s=o||dvt(a).join("-")||uvt;n[s];)s="".concat(s,"_next");n[s]=!0,t.push(s)}),t}function UH(e){return e!=null}function fvt(e){return typeof e=="number"&&!Number.isNaN(e)}function pvt(e){return e&&Gt(e)==="object"&&!Array.isArray(e)&&!p.isValidElement(e)}function hvt(e,t,n,r,i,o){var a=p.useContext(Hxe),s=cvt(),l=ah(function(){if(UH(r))return[r];var c=t==null||t===""?[]:Array.isArray(t)?t:[t],u=Io(e,c),d=u,f=void 0;if(i){var h=i(u,e,n);pvt(h)?(d=h.children,f=h.props,a.renderWithProps=!0):d=h}return[d,f]},[s,e,r,t,i,n],function(c,u){if(o){var d=Ie(c,2),f=d[1],h=Ie(u,2),m=h[1];return o(m,f)}return a.renderWithProps?!0:!gu(c,u,!0)});return l}function mvt(e,t,n,r){var i=e+t-1;return e<=r&&i>=n}function gvt(e,t){return is(ol,function(n){var r=mvt(e,t||1,n.hoverStartRow,n.hoverEndRow);return[r,n.onHover]})}var vvt=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():p.isValidElement(i)&&typeof i.props.children=="string"&&(o=i.props.children)),o};function bvt(e){var t,n,r,i,o,a,s,l,c=e.component,u=e.children,d=e.ellipsis,f=e.scope,h=e.prefixCls,m=e.className,g=e.align,v=e.record,y=e.render,b=e.dataIndex,_=e.renderIndex,E=e.shouldCellUpdate,w=e.index,S=e.rowType,C=e.colSpan,T=e.rowSpan,x=e.fixLeft,O=e.fixRight,N=e.firstFixLeft,I=e.lastFixLeft,M=e.firstFixRight,F=e.lastFixRight,k=e.appendNode,B=e.additionalProps,A=B===void 0?{}:B,P=e.isSticky,z="".concat(h,"-cell"),L=is(ol,["supportSticky","allColumnsFixedLeft","rowHoverable"]),V=L.supportSticky,j=L.allColumnsFixedLeft,U=L.rowHoverable,J=hvt(v,b,_,u,y,E),te=Ie(J,2),ae=te[0],K=te[1],Q={},oe=typeof x=="number"&&V,ge=typeof O=="number"&&V;oe&&(Q.position="sticky",Q.left=x),ge&&(Q.position="sticky",Q.right=O);var fe=(t=(n=(r=K==null?void 0:K.colSpan)!==null&&r!==void 0?r:A.colSpan)!==null&&n!==void 0?n:C)!==null&&t!==void 0?t:1,ue=(i=(o=(a=K==null?void 0:K.rowSpan)!==null&&a!==void 0?a:A.rowSpan)!==null&&o!==void 0?o:T)!==null&&i!==void 0?i:1,le=gvt(w,ue),ve=Ie(le,2),ne=ve[0],pe=ve[1],be=Yn(function(Oe){var De;v&&pe(w,w+ue-1),A==null||(De=A.onMouseEnter)===null||De===void 0||De.call(A,Oe)}),Re=Yn(function(Oe){var De;v&&pe(-1,-1),A==null||(De=A.onMouseLeave)===null||De===void 0||De.call(A,Oe)});if(fe===0||ue===0)return null;var Se=(s=A.title)!==null&&s!==void 0?s:vvt({rowType:S,ellipsis:d,children:ae}),Ce=Te(z,m,(l={},ee(ee(ee(ee(ee(ee(ee(ee(ee(ee(l,"".concat(z,"-fix-left"),oe&&V),"".concat(z,"-fix-left-first"),N&&V),"".concat(z,"-fix-left-last"),I&&V),"".concat(z,"-fix-left-all"),I&&j&&V),"".concat(z,"-fix-right"),ge&&V),"".concat(z,"-fix-right-first"),M&&V),"".concat(z,"-fix-right-last"),F&&V),"".concat(z,"-ellipsis"),d),"".concat(z,"-with-append"),k),"".concat(z,"-fix-sticky"),(oe||ge)&&P&&V),ee(l,"".concat(z,"-row-hover"),!K&&ne)),A.className,K==null?void 0:K.className),ye={};g&&(ye.textAlign=g);var he=W(W(W(W({},K==null?void 0:K.style),Q),ye),A.style),_e=ae;return Gt(_e)==="object"&&!Array.isArray(_e)&&!p.isValidElement(_e)&&(_e=null),d&&(I||M)&&(_e=p.createElement("span",{className:"".concat(z,"-content")},_e)),p.createElement(c,Ke({},K,A,{className:Ce,style:he,title:Se,scope:f,onMouseEnter:U?be:void 0,onMouseLeave:U?Re:void 0,colSpan:fe!==1?fe:null,rowSpan:ue!==1?ue:null}),k,_e)}const NS=p.memo(bvt);function vY(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,f=!1,h=n[t+1],m=n[e-1],g=h&&!h.fixed||m&&!m.fixed||n.every(function(E){return E.fixed==="left"});if(i==="rtl"){if(s!==void 0){var v=m&&m.fixed==="left";f=!v&&g}else if(l!==void 0){var y=h&&h.fixed==="right";d=!y&&g}}else if(s!==void 0){var b=h&&h.fixed==="left";c=!b&&g}else if(l!==void 0){var _=m&&m.fixed==="right";u=!_&&g}return{fixLeft:s,fixRight:l,lastFixLeft:c,firstFixRight:u,lastFixRight:d,firstFixLeft:f,isSticky:r.isSticky}}var Uxe=p.createContext({});function yvt(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=is(ol,["prefixCls","direction"]),c=l.prefixCls,u=l.direction,d=p.useContext(Uxe),f=d.scrollColumnIndex,h=d.stickyOffsets,m=d.flattenColumns,g=n+o-1,v=g+1===f?o+1:o,y=vY(n,n+v-1,m,h,u);return p.createElement(NS,Ke({className:t,index:n,component:"td",prefixCls:c,record:null,dataIndex:null,align:s,colSpan:v,rowSpan:a,render:function(){return r}},y))}var _vt=["children"];function Svt(e){var t=e.children,n=Dt(e,_vt);return p.createElement("tr",n,t)}function dD(e){var t=e.children;return t}dD.Row=Svt;dD.Cell=yvt;function Evt(e){var t=e.children,n=e.stickyOffsets,r=e.flattenColumns,i=is(ol,"prefixCls"),o=r.length-1,a=r[o],s=p.useMemo(function(){return{stickyOffsets:n,flattenColumns:r,scrollColumnIndex:a!=null&&a.scrollbar?o:null}},[a,r,o,n]);return p.createElement(Uxe.Provider,{value:s},p.createElement("tfoot",{className:"".concat(i,"-summary")},t))}const MR=AS(Evt);var zxe=dD;function Cvt(e){return null}function wvt(e){return null}function Vxe(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)Vxe(e,t[r][c],n+1,r,i,o,c)}function Gxe(e,t,n,r){var i=p.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];Vxe(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 Wxe(e,t,n,r){var i=is(ol,["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,f=i.expandRowByClick,h=i.rowClassName,m=a==="nest",g=a==="row"&&(!u||u(e)),v=g||m,y=s&&s.has(t),b=l&&e&&e[l],_=Yn(c),E=d==null?void 0:d(e,n),w=E==null?void 0:E.onClick,S=function(O){f&&v&&c(e,O);for(var N=arguments.length,I=new Array(N>1?N-1:0),M=1;M<N;M++)I[M-1]=arguments[M];w==null||w.apply(void 0,[O].concat(I))},C;typeof h=="string"?C=h:typeof h=="function"&&(C=h(e,n,r));var T=uD(o);return W(W({},i),{},{columnsKey:T,nestExpandable:m,expanded:y,hasNestChildren:b,record:e,onTriggerExpand:_,rowSupportExpand:g,expandable:v,rowProps:W(W({},E),{},{className:Te(C,E==null?void 0:E.className),onClick:S})})}function qxe(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=is(ol,["scrollbarSize","fixHeader","fixColumn","componentWidth","horizonScroll"]),u=c.scrollbarSize,d=c.fixHeader,f=c.fixColumn,h=c.componentWidth,m=c.horizonScroll,g=n;return(l?m&&h:f)&&(g=p.createElement("div",{style:{width:h-(d&&!l?u:0),position:"sticky",left:0,overflow:"hidden"},className:"".concat(t,"-expanded-row-fixed")},g)),p.createElement(r,{className:o,style:{display:a?null:"none"}},p.createElement(NS,{component:i,prefixCls:t,colSpan:s},g))}function Tvt(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 p.createElement("span",{className:Te(a,"".concat(t,"-row-spaced"))});var s=function(c){r(n,c),c.stopPropagation()};return p.createElement("span",{className:Te(a,ee(ee({},"".concat(t,"-row-expanded"),i),"".concat(t,"-row-collapsed"),!i)),onClick:s})}function xvt(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 Yxe(e,t,n,r){return typeof e=="string"?e:typeof e=="function"?e(t,n,r):""}function Kxe(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,f=e.expandIcon,h=e.expanded,m=e.hasNestChildren,g=e.onTriggerExpand,v=s[n],y=l[n],b;n===(c||0)&&u&&(b=p.createElement(p.Fragment,null,p.createElement("span",{style:{paddingLeft:"".concat(d*r,"px")},className:"".concat(a,"-row-indent indent-level-").concat(r)}),f({prefixCls:a,expanded:h,expandable:m,record:o,onExpand:g})));var _;return t.onCell&&(_=t.onCell(o,i)),{key:v,fixedInfo:y,appendCellNode:b,additionalCellProps:_||{}}}function Ovt(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,f=Wxe(r,a,i,l),h=f.prefixCls,m=f.flattenColumns,g=f.expandedRowClassName,v=f.expandedRowRender,y=f.rowProps,b=f.expanded,_=f.rowSupportExpand,E=p.useRef(!1);E.current||(E.current=b);var w=Yxe(g,r,i,l),S=p.createElement(c,Ke({},y,{"data-row-key":a,className:Te(t,"".concat(h,"-row"),"".concat(h,"-row-level-").concat(l),y==null?void 0:y.className,ee({},w,l>=1)),style:W(W({},n),y==null?void 0:y.style)}),m.map(function(x,O){var N=x.render,I=x.dataIndex,M=x.className,F=Kxe(f,x,O,l,i),k=F.key,B=F.fixedInfo,A=F.appendCellNode,P=F.additionalCellProps;return p.createElement(NS,Ke({className:M,ellipsis:x.ellipsis,align:x.align,scope:x.rowScope,component:x.rowScope?d:u,prefixCls:h,key:k,record:r,index:i,renderIndex:o,dataIndex:I,render:N,shouldCellUpdate:x.shouldCellUpdate},B,{appendNode:A,additionalProps:P}))})),C;if(_&&(E.current||b)){var T=v(r,i,l+1,b);C=p.createElement(qxe,{expanded:b,className:Te("".concat(h,"-expanded-row"),"".concat(h,"-expanded-row-level-").concat(l+1),w),prefixCls:h,component:c,cellComponent:u,colSpan:m.length,isEmpty:!1},T)}return p.createElement(p.Fragment,null,S,C)}const Rvt=AS(Ovt);function Ivt(e){var t=e.columnKey,n=e.onColumnResize,r=p.useRef();return p.useEffect(function(){r.current&&n(t,r.current.offsetWidth)},[]),p.createElement(Ta,{data:t},p.createElement("td",{ref:r,style:{padding:0,border:0,height:0}},p.createElement("div",{style:{height:0,overflow:"hidden"}}," ")))}function Avt(e){var t=e.prefixCls,n=e.columnsKey,r=e.onColumnResize;return p.createElement("tr",{"aria-hidden":"true",className:"".concat(t,"-measure-row"),style:{height:0,fontSize:0}},p.createElement(Ta.Collection,{onBatchResize:function(o){o.forEach(function(a){var s=a.data,l=a.size;r(s,l.offsetWidth)})}},n.map(function(i){return p.createElement(Ivt,{key:i,columnKey:i,onColumnResize:r})})))}function Nvt(e){var t=e.data,n=e.measureColumnWidth,r=is(ol,["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,f=Gxe(t,u,c,l),h=p.useRef({renderWithProps:!1}),m=o(["body","wrapper"],"tbody"),g=o(["body","row"],"tr"),v=o(["body","cell"],"td"),y=o(["body","cell"],"th"),b;t.length?b=f.map(function(E,w){var S=E.record,C=E.indent,T=E.index,x=l(S,w);return p.createElement(Rvt,{key:x,rowKey:x,record:S,index:w,renderIndex:T,rowComponent:g,cellComponent:v,scopeCellComponent:y,indent:C})}):b=p.createElement(qxe,{expanded:!0,className:"".concat(i,"-placeholder"),prefixCls:i,component:g,cellComponent:v,colSpan:s.length,isEmpty:!0},d);var _=uD(s);return p.createElement(Hxe.Provider,{value:h.current},p.createElement(m,{className:"".concat(i,"-tbody")},n&&p.createElement(Avt,{prefixCls:i,columnsKey:_,onColumnResize:a}),b))}const Mvt=AS(Nvt);var kvt=["expandable"],mw="RC_TABLE_INTERNAL_COL_DEFINE";function Pvt(e){var t=e.expandable,n=Dt(e,kvt),r;return"expandable"in e?r=W(W({},n),t):r=n,r.showExpandColumn===!1&&(r.expandIconColumnIndex=-1),r}var Dvt=["columnType"];function Qxe(e){for(var t=e.colWidths,n=e.columns,r=e.columCount,i=is(ol,["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],f=void 0,h=void 0;if(d&&(f=d[mw],o==="auto"&&(h=d.minWidth)),u||h||f||l){var m=f||{};m.columnType;var g=Dt(m,Dvt);a.unshift(p.createElement("col",Ke({key:c,style:{width:u,minWidth:h}},g))),l=!0}}return p.createElement("colgroup",null,a)}var Lvt=["className","noData","columns","flattenColumns","colWidths","columCount","stickyOffsets","direction","fixHeader","stickyTopOffset","stickyBottomOffset","stickyClassName","onScroll","maxContentScroll","children"];function $vt(e,t){return p.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 Fvt=p.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,f=e.stickyBottomOffset,h=e.stickyClassName,m=e.onScroll,g=e.maxContentScroll,v=e.children,y=Dt(e,Lvt),b=is(ol,["prefixCls","scrollbarSize","isSticky","getComponent"]),_=b.prefixCls,E=b.scrollbarSize,w=b.isSticky,S=b.getComponent,C=S(["header","table"],"table"),T=w&&!u?0:E,x=p.useRef(null),O=p.useCallback(function(P){ST(t,P),ST(x,P)},[]);p.useEffect(function(){var P;function z(L){var V=L,j=V.currentTarget,U=V.deltaX;U&&(m({currentTarget:j,scrollLeft:j.scrollLeft+U}),L.preventDefault())}return(P=x.current)===null||P===void 0||P.addEventListener("wheel",z,{passive:!1}),function(){var L;(L=x.current)===null||L===void 0||L.removeEventListener("wheel",z)}},[]);var N=p.useMemo(function(){return o.every(function(P){return P.width})},[o]),I=o[o.length-1],M={fixed:I?I.fixed:null,scrollbar:!0,onHeaderCell:function(){return{className:"".concat(_,"-cell-scrollbar")}}},F=p.useMemo(function(){return T?[].concat(nt(i),[M]):i},[T,i]),k=p.useMemo(function(){return T?[].concat(nt(o),[M]):o},[T,o]),B=p.useMemo(function(){var P=l.right,z=l.left;return W(W({},l),{},{left:c==="rtl"?[].concat(nt(z.map(function(L){return L+T})),[0]):z,right:c==="rtl"?P:[].concat(nt(P.map(function(L){return L+T})),[0]),isSticky:w})},[T,l,w]),A=$vt(a,s);return p.createElement("div",{style:W({overflow:"hidden"},w?{top:d,bottom:f}:{}),ref:O,className:Te(n,ee({},h,!!h))},p.createElement(C,{style:{tableLayout:"fixed",visibility:r||A?null:"hidden"}},(!r||!g||N)&&p.createElement(Qxe,{colWidths:A?[].concat(nt(A),[T]):[],columCount:s+1,columns:k}),v(W(W({},y),{},{stickyOffsets:B,columns:F,flattenColumns:k}))))});const ooe=p.memo(Fvt);var Bvt=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=is(ol,["prefixCls","direction"]),u=c.prefixCls,d=c.direction,f;s&&(f=s(n.map(function(m){return m.column}),l));var h=uD(n.map(function(m){return m.column}));return p.createElement(o,f,n.map(function(m,g){var v=m.column,y=vY(m.colStart,m.colEnd,i,r,d),b;return v&&v.onHeaderCell&&(b=m.column.onHeaderCell(v)),p.createElement(NS,Ke({},m,{scope:v.title?m.colSpan>1?"colgroup":"col":null,ellipsis:v.ellipsis,align:v.align,component:a,prefixCls:u,key:h[g]},y,{additionalProps:b,rowType:"header"}))}))};function jvt(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 f={key:d.key,className:d.className||"",children:d.title,column:d,colStart:c},h=1,m=d.children;return m&&m.length>0&&(h=n(m,c,l+1).reduce(function(g,v){return g+v},0),f.hasSubColumns=!0),"colSpan"in d&&(h=d.colSpan),"rowSpan"in d&&(f.rowSpan=d.rowSpan),f.colSpan=h,f.colEnd=f.colStart+h-1,t[l].push(f),c+=h,h});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 Hvt=function(t){var n=t.stickyOffsets,r=t.columns,i=t.flattenColumns,o=t.onHeaderRow,a=is(ol,["prefixCls","getComponent"]),s=a.prefixCls,l=a.getComponent,c=p.useMemo(function(){return jvt(r)},[r]),u=l(["header","wrapper"],"thead"),d=l(["header","row"],"tr"),f=l(["header","cell"],"th");return p.createElement(u,{className:"".concat(s,"-thead")},c.map(function(h,m){var g=p.createElement(Bvt,{key:m,flattenColumns:i,cells:h,stickyOffsets:n,rowComponent:d,cellComponent:f,onHeaderRow:o,index:m});return g}))};const aoe=AS(Hvt);function soe(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 Uvt(e,t,n){return p.useMemo(function(){if(t&&t>0){var r=0,i=0;e.forEach(function(f){var h=soe(t,f.width);h?r+=h: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(f){var h=W({},f),m=soe(t,h.width);if(m)h.width=m;else{var g=Math.floor(l);h.width=s===1?a:g,a-=g,s-=1}return c+=h.width,h});if(c<o){var d=o/c;a=o,u.forEach(function(f,h){var m=Math.floor(f.width*d);f.width=h===u.length-1?a:m,a-=m})}return[u,Math.max(c,o)]}return[e,t]},[e,t,n])}var zvt=["children"],Vvt=["fixed"];function bY(e){return Mo(e).filter(function(t){return p.isValidElement(t)}).map(function(t){var n=t.key,r=t.props,i=r.children,o=Dt(r,zvt),a=W({key:n},o);return i&&(a.children=bY(i)),a})}function Xxe(e){return e.filter(function(t){return t&&Gt(t)==="object"&&!t.hidden}).map(function(t){var n=t.children;return n&&n.length>0?W(W({},t),{},{children:Xxe(n)}):t})}function zH(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"key";return e.filter(function(n){return n&&Gt(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(nt(n),nt(zH(l,s).map(function(c){return W({fixed:a},c)}))):[].concat(nt(n),[W(W({key:s},r),{},{fixed:a})])},[])}function Gvt(e){return e.map(function(t){var n=t.fixed,r=Dt(t,Vvt),i=n;return n==="left"?i="right":n==="right"&&(i="left"),W({fixed:i},r)})}function Wvt(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,f=e.expandIconColumnIndex,h=e.direction,m=e.expandRowByClick,g=e.columnWidth,v=e.fixed,y=e.scrollWidth,b=e.clientWidth,_=p.useMemo(function(){var I=r||bY(i)||[];return Xxe(I.slice())},[r,i]),E=p.useMemo(function(){if(o){var I=_.slice();if(!I.includes(Ip)){var M=f||0;M>=0&&(M||v==="left"||!v)&&I.splice(M,0,Ip),v==="right"&&I.splice(_.length,0,Ip)}var F=I.indexOf(Ip);I=I.filter(function(P,z){return P!==Ip||z===F});var k=_[F],B;v?B=v:B=k?k.fixed:null;var A=ee(ee(ee(ee(ee(ee({},mw,{className:"".concat(n,"-expand-icon-col"),columnType:"EXPAND_COLUMN"}),"title",s),"fixed",B),"className","".concat(n,"-row-expand-icon-cell")),"width",g),"render",function(z,L,V){var j=l(L,V),U=a.has(j),J=d?d(L):!0,te=u({prefixCls:n,expanded:U,expandable:J,record:L,onExpand:c});return m?p.createElement("span",{onClick:function(K){return K.stopPropagation()}},te):te});return I.map(function(P){return P===Ip?A:P})}return _.filter(function(P){return P!==Ip})},[o,_,l,a,u,h]),w=p.useMemo(function(){var I=E;return t&&(I=t(I)),I.length||(I=[{render:function(){return null}}]),I},[t,E,h]),S=p.useMemo(function(){return h==="rtl"?Gvt(zH(w)):zH(w)},[w,h,y]),C=p.useMemo(function(){for(var I=-1,M=S.length-1;M>=0;M-=1){var F=S[M].fixed;if(F==="left"||F===!0){I=M;break}}if(I>=0)for(var k=0;k<=I;k+=1){var B=S[k].fixed;if(B!=="left"&&B!==!0)return!0}var A=S.findIndex(function(L){var V=L.fixed;return V==="right"});if(A>=0)for(var P=A;P<S.length;P+=1){var z=S[P].fixed;if(z!=="right")return!0}return!1},[S]),T=Uvt(S,y,b),x=Ie(T,2),O=x[0],N=x[1];return[w,O,N,C]}function qvt(e,t,n){var r=Pvt(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,f=i||Tvt,h=d||"children",m=p.useMemo(function(){return l?"row":e.expandable&&e.internalHooks===O2&&e.expandable.__PARENT_RENDER_ICON__||t.some(function(w){return w&&Gt(w)==="object"&&w[h]})?"nest":!1},[!!l,t]),g=p.useState(function(){return a||(s?xvt(t,n,h):[])}),v=Ie(g,2),y=v[0],b=v[1],_=p.useMemo(function(){return new Set(o||y||[])},[o,y]),E=p.useCallback(function(w){var S=n(w,t.indexOf(w)),C,T=_.has(S);T?(_.delete(S),C=nt(_)):C=[].concat(nt(_),[S]),b(C),c&&c(!T,w),u&&u(C)},[n,_,t,c,u]);return[r,m,_,f,h,E]}function Yvt(e,t,n){var r=e.map(function(i,o){return vY(o,o,e,t,n)});return ah(function(){return r},[r],function(i,o){return!gu(i,o)})}function Zxe(e){var t=p.useRef(e),n=p.useState({}),r=Ie(n,2),i=r[1],o=p.useRef(null),a=p.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(f){t.current=f(t.current)}),o.current=null,d!==t.current&&i({})}})}return p.useEffect(function(){return function(){o.current=null}},[]),[t.current,s]}function Kvt(e){var t=p.useRef(null),n=p.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 p.useEffect(function(){return r},[]),[i,o]}function Qvt(){var e=p.useState(-1),t=Ie(e,2),n=t[0],r=t[1],i=p.useState(-1),o=Ie(i,2),a=o[0],s=o[1],l=p.useCallback(function(c,u){r(c),s(u)},[]);return[n,a,l]}var loe=Qs()?window:null;function Xvt(e,t){var n=Gt(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 loe}:c,d=u()||loe,f=!!e;return p.useMemo(function(){return{isSticky:f,stickyClassName:f?"".concat(t,"-sticky-holder"):"",offsetHeader:i,offsetSummary:a,offsetScroll:l,container:d}},[f,l,i,a,t,d])}function Zvt(e,t,n){var r=p.useMemo(function(){var i=t.length,o=function(c,u,d){for(var f=[],h=0,m=c;m!==u;m+=d)f.push(h),t[m].fixed&&(h+=e[m]||0);return f},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 coe(e){var t=e.className,n=e.children;return p.createElement("div",{className:t},n)}function uoe(e){var t=GP(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 Jvt=function(t,n){var r,i,o=t.scrollBodyRef,a=t.onScroll,s=t.offsetScroll,l=t.container,c=t.direction,u=is(ol,"prefixCls"),d=((r=o.current)===null||r===void 0?void 0:r.scrollWidth)||0,f=((i=o.current)===null||i===void 0?void 0:i.clientWidth)||0,h=d&&f*(f/d),m=p.useRef(),g=Zxe({scrollLeft:0,isHiddenScrollBar:!0}),v=Ie(g,2),y=v[0],b=v[1],_=p.useRef({delta:0,x:0}),E=p.useState(!1),w=Ie(E,2),S=w[0],C=w[1],T=p.useRef(null);p.useEffect(function(){return function(){rr.cancel(T.current)}},[]);var x=function(){C(!1)},O=function(k){k.persist(),_.current.delta=k.pageX-y.scrollLeft,_.current.x=0,C(!0),k.preventDefault()},N=function(k){var B,A=k||((B=window)===null||B===void 0?void 0:B.event),P=A.buttons;if(!S||P===0){S&&C(!1);return}var z=_.current.x+k.pageX-_.current.x-_.current.delta,L=c==="rtl";z=Math.max(L?h-f:0,Math.min(L?0:f-h,z));var V=!L||Math.abs(z)+Math.abs(h)<f;V&&(a({scrollLeft:z/f*(d+2)}),_.current.x=k.pageX)},I=function(){T.current=rr(function(){if(o.current){var k=uoe(o.current).top,B=k+o.current.offsetHeight,A=l===window?document.documentElement.scrollTop+window.innerHeight:uoe(l).top+l.clientHeight;B-Pne()<=A||k>=A-s?b(function(P){return W(W({},P),{},{isHiddenScrollBar:!0})}):b(function(P){return W(W({},P),{},{isHiddenScrollBar:!1})})}})},M=function(k){b(function(B){return W(W({},B),{},{scrollLeft:k/d*f||0})})};return p.useImperativeHandle(n,function(){return{setScrollLeft:M,checkScrollBarVisible:I}}),p.useEffect(function(){var F=_f(document.body,"mouseup",x,!1),k=_f(document.body,"mousemove",N,!1);return I(),function(){F.remove(),k.remove()}},[h,S]),p.useEffect(function(){var F=_f(l,"scroll",I,!1),k=_f(window,"resize",I,!1);return function(){F.remove(),k.remove()}},[l]),p.useEffect(function(){y.isHiddenScrollBar||b(function(F){var k=o.current;return k?W(W({},F),{},{scrollLeft:k.scrollLeft/k.scrollWidth*k.clientWidth}):F})},[y.isHiddenScrollBar]),d<=f||!h||y.isHiddenScrollBar?null:p.createElement("div",{style:{height:Pne(),width:f,bottom:s},className:"".concat(u,"-sticky-scroll")},p.createElement("div",{onMouseDown:O,ref:m,className:Te("".concat(u,"-sticky-scroll-bar"),ee({},"".concat(u,"-sticky-scroll-bar-active"),S)),style:{width:"".concat(h,"px"),transform:"translate3d(".concat(y.scrollLeft,"px, 0, 0)")}}))};const e0t=p.forwardRef(Jvt);var Jxe="rc-table",t0t=[],n0t={};function r0t(){return"No Data"}function i0t(e,t){var n=W({rowKey:"key",prefixCls:Jxe,emptyText:r0t},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,f=n.title,h=n.footer,m=n.summary,g=n.caption,v=n.id,y=n.showHeader,b=n.components,_=n.emptyText,E=n.onRow,w=n.onHeaderRow,S=n.onScroll,C=n.internalHooks,T=n.transformColumns,x=n.internalRefs,O=n.tailor,N=n.getContainerWidth,I=n.sticky,M=n.rowHoverable,F=M===void 0?!0:M,k=s||t0t,B=!!k.length,A=C===O2,P=p.useCallback(function(Zn,dn){return Io(b,Zn)||dn},[b]),z=p.useMemo(function(){return typeof l=="function"?l:function(Zn){var dn=Zn&&Zn[l];return dn}},[l]),L=P(["body"]),V=Qvt(),j=Ie(V,3),U=j[0],J=j[1],te=j[2],ae=qvt(n,k,z),K=Ie(ae,6),Q=K[0],oe=K[1],ge=K[2],fe=K[3],ue=K[4],le=K[5],ve=c==null?void 0:c.x,ne=p.useState(0),pe=Ie(ne,2),be=pe[0],Re=pe[1],Se=Wvt(W(W(W({},n),Q),{},{expandable:!!Q.expandedRowRender,columnTitle:Q.columnTitle,expandedKeys:ge,getRowKey:z,onTriggerExpand:le,expandIcon:fe,expandIconColumnIndex:Q.expandIconColumnIndex,direction:d,scrollWidth:A&&O&&typeof ve=="number"?ve:null,clientWidth:be}),A?T:null),Ce=Ie(Se,4),ye=Ce[0],he=Ce[1],_e=Ce[2],Oe=Ce[3],De=_e??ve,Y=p.useMemo(function(){return{columns:ye,flattenColumns:he}},[ye,he]),D=p.useRef(),G=p.useRef(),ie=p.useRef(),me=p.useRef();p.useImperativeHandle(t,function(){return{nativeElement:D.current,scrollTo:function(dn){var wn;if(ie.current instanceof HTMLElement){var Mn=dn.index,Qn=dn.top,Mr=dn.key;if(fvt(Qn)){var qo;(qo=ie.current)===null||qo===void 0||qo.scrollTo({top:Qn})}else{var ma,bi=Mr??z(k[Mn]);(ma=ie.current.querySelector('[data-row-key="'.concat(bi,'"]')))===null||ma===void 0||ma.scrollIntoView()}}else(wn=ie.current)!==null&&wn!==void 0&&wn.scrollTo&&ie.current.scrollTo(dn)}}});var se=p.useRef(),Be=p.useState(!1),Ve=Ie(Be,2),re=Ve[0],Me=Ve[1],je=p.useState(!1),ke=Ie(je,2),Ge=ke[0],Ue=ke[1],qe=Zxe(new Map),At=Ie(qe,2),at=At[0],pt=At[1],Ct=uD(he),bt=Ct.map(function(Zn){return at.get(Zn)}),Vt=p.useMemo(function(){return bt},[bt.join("_")]),Tt=Zvt(Vt,he,d),Ot=c&&UH(c.y),Ut=c&&UH(De)||!!Q.fixed,ze=Ut&&he.some(function(Zn){var dn=Zn.fixed;return dn}),Ye=p.useRef(),He=Xvt(I,r),Ze=He.isSticky,yt=He.offsetHeader,_t=He.offsetSummary,Bt=He.offsetScroll,Nt=He.stickyClassName,vt=He.container,ht=p.useMemo(function(){return m==null?void 0:m(k)},[m,k]),kt=(Ot||Ze)&&p.isValidElement(ht)&&ht.type===dD&&ht.props.fixed,Et,Yt,ct;Ot&&(Yt={overflowY:B?"scroll":"auto",maxHeight:c.y}),Ut&&(Et={overflowX:"auto"},Ot||(Yt={overflowY:"hidden"}),ct={width:De===!0?"auto":De,minWidth:"100%"});var Rt=p.useCallback(function(Zn,dn){gS(D.current)&&pt(function(wn){if(wn.get(Zn)!==dn){var Mn=new Map(wn);return Mn.set(Zn,dn),Mn}return wn})},[]),Ht=Kvt(),wt=Ie(Ht,2),St=wt[0],jt=wt[1];function Pe(Zn,dn){dn&&(typeof dn=="function"?dn(Zn):dn.scrollLeft!==Zn&&(dn.scrollLeft=Zn,dn.scrollLeft!==Zn&&setTimeout(function(){dn.scrollLeft=Zn},0)))}var Pt=Yn(function(Zn){var dn=Zn.currentTarget,wn=Zn.scrollLeft,Mn=d==="rtl",Qn=typeof wn=="number"?wn:dn.scrollLeft,Mr=dn||n0t;if(!jt()||jt()===Mr){var qo;St(Mr),Pe(Qn,G.current),Pe(Qn,ie.current),Pe(Qn,se.current),Pe(Qn,(qo=Ye.current)===null||qo===void 0?void 0:qo.setScrollLeft)}var ma=dn||G.current;if(ma){var bi=A&&O&&typeof De=="number"?De:ma.scrollWidth,ga=ma.clientWidth;if(bi===ga){Me(!1),Ue(!1);return}Mn?(Me(-Qn<bi-ga),Ue(-Qn>0)):(Me(Qn>0),Ue(Qn<bi-ga))}}),rt=Yn(function(Zn){Pt(Zn),S==null||S(Zn)}),Mt=function(){if(Ut&&ie.current){var dn;Pt({currentTarget:GP(ie.current),scrollLeft:(dn=ie.current)===null||dn===void 0?void 0:dn.scrollLeft})}else Me(!1),Ue(!1)},It=function(dn){var wn,Mn=dn.width;(wn=Ye.current)===null||wn===void 0||wn.checkScrollBarVisible();var Qn=D.current?D.current.offsetWidth:Mn;A&&N&&D.current&&(Qn=N(D.current,Qn)||Qn),Qn!==be&&(Mt(),Re(Qn))},xn=p.useRef(!1);p.useEffect(function(){xn.current&&Mt()},[Ut,s,ye.length]),p.useEffect(function(){xn.current=!0},[]);var Hn=p.useState(0),R=Ie(Hn,2),$=R[0],Z=R[1],xe=p.useState(!0),$e=Ie(xe,2),et=$e[0],$t=$e[1];p.useEffect(function(){(!O||!A)&&(ie.current instanceof Element?Z(sH(ie.current).width):Z(sH(me.current).width)),$t(bH("position","sticky"))},[]),p.useEffect(function(){A&&x&&(x.body.current=ie.current)});var pn=p.useCallback(function(Zn){return p.createElement(p.Fragment,null,p.createElement(aoe,Zn),kt==="top"&&p.createElement(MR,Zn,ht))},[kt,ht]),Fn=p.useCallback(function(Zn){return p.createElement(MR,Zn,ht)},[ht]),Xr=P(["table"],"table"),Lr=p.useMemo(function(){return u||(ze?De==="max-content"?"auto":"fixed":Ot||Ze||he.some(function(Zn){var dn=Zn.ellipsis;return dn})?"fixed":"auto")},[Ot,ze,he,u,Ze]),vi,Sr={colWidths:Vt,columCount:he.length,stickyOffsets:Tt,onHeaderRow:w,fixHeader:Ot,scroll:c},ln=p.useMemo(function(){return B?null:typeof _=="function"?_():_},[B,_]),_n=p.createElement(Mvt,{data:k,measureColumnWidth:Ot||Ut||Ze}),Er=p.createElement(Qxe,{colWidths:he.map(function(Zn){var dn=Zn.width;return dn}),columns:he}),on=g!=null?p.createElement("caption",{className:"".concat(r,"-caption")},g):void 0,an=xi(n,{data:!0}),Gn=xi(n,{aria:!0});if(Ot||Ze){var _r;typeof L=="function"?(_r=L(k,{scrollbarSize:$,ref:ie,onScroll:Pt}),Sr.colWidths=he.map(function(Zn,dn){var wn=Zn.width,Mn=dn===he.length-1?wn-$:wn;return typeof Mn=="number"&&!Number.isNaN(Mn)?Mn:0})):_r=p.createElement("div",{style:W(W({},Et),Yt),onScroll:rt,ref:ie,className:Te("".concat(r,"-body"))},p.createElement(Xr,Ke({style:W(W({},ct),{},{tableLayout:Lr})},Gn),on,Er,_n,!kt&&ht&&p.createElement(MR,{stickyOffsets:Tt,flattenColumns:he},ht)));var oi=W(W(W({noData:!k.length,maxContentScroll:Ut&&De==="max-content"},Sr),Y),{},{direction:d,stickyClassName:Nt,onScroll:Pt});vi=p.createElement(p.Fragment,null,y!==!1&&p.createElement(ooe,Ke({},oi,{stickyTopOffset:yt,className:"".concat(r,"-header"),ref:G}),pn),_r,kt&&kt!=="top"&&p.createElement(ooe,Ke({},oi,{stickyBottomOffset:_t,className:"".concat(r,"-summary"),ref:se}),Fn),Ze&&ie.current&&ie.current instanceof Element&&p.createElement(e0t,{ref:Ye,offsetScroll:Bt,scrollBodyRef:ie,onScroll:Pt,container:vt,direction:d}))}else vi=p.createElement("div",{style:W(W({},Et),Yt),className:Te("".concat(r,"-content")),onScroll:Pt,ref:ie},p.createElement(Xr,Ke({style:W(W({},ct),{},{tableLayout:Lr})},Gn),on,Er,y!==!1&&p.createElement(aoe,Ke({},Sr,Y)),_n,ht&&p.createElement(MR,{stickyOffsets:Tt,flattenColumns:he},ht)));var Zi=p.createElement("div",Ke({className:Te(r,i,ee(ee(ee(ee(ee(ee(ee(ee(ee(ee({},"".concat(r,"-rtl"),d==="rtl"),"".concat(r,"-ping-left"),re),"".concat(r,"-ping-right"),Ge),"".concat(r,"-layout-fixed"),u==="fixed"),"".concat(r,"-fixed-header"),Ot),"".concat(r,"-fixed-column"),ze),"".concat(r,"-fixed-column-gapped"),ze&&Oe),"".concat(r,"-scroll-horizontal"),Ut),"".concat(r,"-has-fix-left"),he[0]&&he[0].fixed),"".concat(r,"-has-fix-right"),he[he.length-1]&&he[he.length-1].fixed==="right")),style:a,id:v,ref:D},an),f&&p.createElement(coe,{className:"".concat(r,"-title")},f(k)),p.createElement("div",{ref:me,className:"".concat(r,"-container")},vi),h&&p.createElement(coe,{className:"".concat(r,"-footer")},h(k)));Ut&&(Zi=p.createElement(Ta,{onResize:It},Zi));var nr=Yvt(he,Tt,d),Fi=p.useMemo(function(){return{scrollX:De,prefixCls:r,getComponent:P,scrollbarSize:$,direction:d,fixedInfoList:nr,isSticky:Ze,supportSticky:et,componentWidth:be,fixHeader:Ot,fixColumn:ze,horizonScroll:Ut,tableLayout:Lr,rowClassName:o,expandedRowClassName:Q.expandedRowClassName,expandIcon:fe,expandableType:oe,expandRowByClick:Q.expandRowByClick,expandedRowRender:Q.expandedRowRender,onTriggerExpand:le,expandIconColumnIndex:Q.expandIconColumnIndex,indentSize:Q.indentSize,allColumnsFixedLeft:he.every(function(Zn){return Zn.fixed==="left"}),emptyNode:ln,columns:ye,flattenColumns:he,onColumnResize:Rt,hoverStartRow:U,hoverEndRow:J,onHover:te,rowExpandable:Q.rowExpandable,onRow:E,getRowKey:z,expandedKeys:ge,childrenColumnName:ue,rowHoverable:F}},[De,r,P,$,d,nr,Ze,et,be,Ot,ze,Ut,Lr,o,Q.expandedRowClassName,fe,oe,Q.expandRowByClick,Q.expandedRowRender,le,Q.expandIconColumnIndex,Q.indentSize,ln,ye,he,Rt,U,J,te,Q.rowExpandable,E,z,ge,ue,F]);return p.createElement(ol.Provider,{value:Fi},Zi)}var o0t=p.forwardRef(i0t);function e2e(e){return jxe(o0t,e)}var MS=e2e();MS.EXPAND_COLUMN=Ip;MS.INTERNAL_HOOKS=O2;MS.Column=Cvt;MS.ColumnGroup=wvt;MS.Summary=zxe;var yY=mY(null),t2e=mY(null);function a0t(e,t,n){var r=t||1;return n[e+r]-(n[e]||0)}function s0t(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,f=e.getHeight,h=n.render,m=n.dataIndex,g=n.className,v=n.width,y=is(t2e,["columnsOffset"]),b=y.columnsOffset,_=Kxe(t,n,r,i,o),E=_.key,w=_.fixedInfo,S=_.appendCellNode,C=_.additionalCellProps,T=C.style,x=C.colSpan,O=x===void 0?1:x,N=C.rowSpan,I=N===void 0?1:N,M=r-1,F=a0t(M,O,b),k=O>1?v-F:0,B=W(W(W({},T),c),{},{flex:"0 0 ".concat(F,"px"),width:"".concat(F,"px"),marginRight:k,pointerEvents:"auto"}),A=p.useMemo(function(){return d?I<=1:O===0||I===0||I>1},[I,O,d]);A?B.visibility="hidden":d&&(B.height=f==null?void 0:f(I));var P=A?function(){return null}:h,z={};return(I===0||O===0)&&(z.rowSpan=1,z.colSpan=1),p.createElement(NS,Ke({className:Te(g,u),ellipsis:n.ellipsis,align:n.align,scope:n.rowScope,component:a,prefixCls:t.prefixCls,key:E,record:l,index:o,renderIndex:s,dataIndex:m,render:P,shouldCellUpdate:n.shouldCellUpdate},w,{appendNode:S,additionalProps:W(W({},C),{},{style:B},z)}))}var l0t=["data","index","className","rowKey","style","extra","getHeight"],c0t=p.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=Dt(e,l0t),u=n.record,d=n.indent,f=n.index,h=is(ol,["prefixCls","flattenColumns","fixColumn","componentWidth","scrollX"]),m=h.scrollX,g=h.flattenColumns,v=h.prefixCls,y=h.fixColumn,b=h.componentWidth,_=is(yY,["getComponent"]),E=_.getComponent,w=Wxe(u,o,r,d),S=E(["body","row"],"div"),C=E(["body","cell"],"div"),T=w.rowSupportExpand,x=w.expanded,O=w.rowProps,N=w.expandedRowRender,I=w.expandedRowClassName,M;if(T&&x){var F=N(u,r,d+1,x),k=Yxe(I,u,r,d),B={};y&&(B={style:ee({},"--virtual-width","".concat(b,"px"))});var A="".concat(v,"-expanded-row-cell");M=p.createElement(S,{className:Te("".concat(v,"-expanded-row"),"".concat(v,"-expanded-row-level-").concat(d+1),k)},p.createElement(NS,{component:C,prefixCls:v,className:Te(A,ee({},"".concat(A,"-fixed"),y)),additionalProps:B},F))}var P=W(W({},a),{},{width:m});s&&(P.position="absolute",P.pointerEvents="none");var z=p.createElement(S,Ke({},O,c,{"data-row-key":o,ref:T?null:t,className:Te(i,"".concat(v,"-row"),O==null?void 0:O.className,ee({},"".concat(v,"-row-extra"),s)),style:W(W({},P),O==null?void 0:O.style)}),g.map(function(L,V){return p.createElement(s0t,{key:V,component:C,rowInfo:w,column:L,colIndex:V,indent:d,index:r,renderIndex:f,record:u,inverse:s,getHeight:l})}));return T?p.createElement("div",{ref:t},z,M):z}),doe=AS(c0t),u0t=p.forwardRef(function(e,t){var n=e.data,r=e.onScroll,i=is(ol,["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,f=i.direction,h=is(yY),m=h.sticky,g=h.scrollY,v=h.listItemHeight,y=h.getComponent,b=h.onScroll,_=p.useRef(),E=Gxe(n,u,l,s),w=p.useMemo(function(){var M=0;return o.map(function(F){var k=F.width,B=F.key;return M+=k,[B,k,M]})},[o]),S=p.useMemo(function(){return w.map(function(M){return M[2]})},[w]);p.useEffect(function(){w.forEach(function(M){var F=Ie(M,2),k=F[0],B=F[1];a(k,B)})},[w]),p.useImperativeHandle(t,function(){var M,F={scrollTo:function(B){var A;(A=_.current)===null||A===void 0||A.scrollTo(B)},nativeElement:(M=_.current)===null||M===void 0?void 0:M.nativeElement};return Object.defineProperty(F,"scrollLeft",{get:function(){var B;return((B=_.current)===null||B===void 0?void 0:B.getScrollInfo().x)||0},set:function(B){var A;(A=_.current)===null||A===void 0||A.scrollTo({left:B})}}),F});var C=function(F,k){var B,A=(B=E[k])===null||B===void 0?void 0:B.record,P=F.onCell;if(P){var z,L=P(A,k);return(z=L==null?void 0:L.rowSpan)!==null&&z!==void 0?z:1}return 1},T=function(F){var k=F.start,B=F.end,A=F.getSize,P=F.offsetY;if(B<0)return null;for(var z=o.filter(function(fe){return C(fe,k)===0}),L=k,V=function(ue){if(z=z.filter(function(le){return C(le,ue)===0}),!z.length)return L=ue,1},j=k;j>=0&&!V(j);j-=1);for(var U=o.filter(function(fe){return C(fe,B)!==1}),J=B,te=function(ue){if(U=U.filter(function(le){return C(le,ue)!==1}),!U.length)return J=Math.max(ue-1,B),1},ae=B;ae<E.length&&!te(ae);ae+=1);for(var K=[],Q=function(ue){var le=E[ue];if(!le)return 1;o.some(function(ve){return C(ve,ue)>1})&&K.push(ue)},oe=L;oe<=J;oe+=1)Q(oe);var ge=K.map(function(fe){var ue=E[fe],le=s(ue.record,fe),ve=function(be){var Re=fe+be-1,Se=s(E[Re].record,Re),Ce=A(le,Se);return Ce.bottom-Ce.top},ne=A(le);return p.createElement(doe,{key:fe,data:ue,rowKey:le,index:fe,style:{top:-P+ne.top},extra:!0,getHeight:ve})});return ge},x=p.useMemo(function(){return{columnsOffset:S}},[S]),O="".concat(c,"-tbody"),N=y(["body","wrapper"]),I={};return m&&(I.position="sticky",I.bottom=0,Gt(m)==="object"&&m.offsetScroll&&(I.bottom=m.offsetScroll)),p.createElement(t2e.Provider,{value:x},p.createElement(P5,{fullHeight:!1,ref:_,prefixCls:"".concat(O,"-virtual"),styles:{horizontalScrollBar:I},className:O,height:g,itemHeight:v||24,data:E,itemKey:function(F){return s(F.record)},component:N,scrollWidth:d,direction:f,onVirtualScroll:function(F){var k,B=F.x;r({currentTarget:(k=_.current)===null||k===void 0?void 0:k.nativeElement,scrollLeft:B})},onScroll:b,extraRender:T},function(M,F,k){var B=s(M.record,F);return p.createElement(doe,{data:M,rowKey:B,index:F,style:k.style})}))}),d0t=AS(u0t),f0t=function(t,n){var r=n.ref,i=n.onScroll;return p.createElement(d0t,{ref:r,data:t,onScroll:i})};function p0t(e,t){var n=e.data,r=e.columns,i=e.scroll,o=e.sticky,a=e.prefixCls,s=a===void 0?Jxe:a,l=e.className,c=e.listItemHeight,u=e.components,d=e.onScroll,f=i||{},h=f.x,m=f.y;typeof h!="number"&&(h=1),typeof m!="number"&&(m=500);var g=Yn(function(b,_){return Io(u,b)||_}),v=Yn(d),y=p.useMemo(function(){return{sticky:o,scrollY:m,listItemHeight:c,getComponent:g,onScroll:v}},[o,m,c,g,v]);return p.createElement(yY.Provider,{value:y},p.createElement(MS,Ke({},e,{className:Te(l,"".concat(s,"-virtual")),scroll:W(W({},i),{},{x:h}),components:W(W({},u),{},{body:n!=null&&n.length?f0t:void 0}),columns:r,internalHooks:O2,tailor:!0,ref:t})))}var h0t=p.forwardRef(p0t);function n2e(e){return jxe(h0t,e)}n2e();const m0t=e=>null,g0t=e=>null;var _Y=p.createContext(null),r2e=p.createContext({}),v0t=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(p.createElement("span",{key:l,className:Te(a,ee(ee({},"".concat(a,"-start"),i[l]),"".concat(a,"-end"),o[l]))}));return p.createElement("span",{"aria-hidden":"true",className:"".concat(n,"-indent")},s)};const b0t=p.memo(v0t);var y0t=["eventKey","className","style","dragOver","dragOverGapTop","dragOverGapBottom","isLeaf","isStart","isEnd","expanded","selected","checked","halfChecked","loading","domRef","active","data","onMouseMove","selectable"],foe="open",poe="close",_0t="---",$T=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,f=t.isEnd,h=t.expanded,m=t.selected,g=t.checked,v=t.halfChecked,y=t.loading,b=t.domRef,_=t.active,E=t.data,w=t.onMouseMove,S=t.selectable,C=Dt(t,y0t),T=ce.useContext(_Y),x=ce.useContext(r2e),O=ce.useRef(null),N=ce.useState(!1),I=Ie(N,2),M=I[0],F=I[1],k=ce.useMemo(function(){var me;return!!(T.disabled||t.disabled||(me=x.nodeDisabled)!==null&&me!==void 0&&me.call(x,E))},[T.disabled,t.disabled,x.nodeDisabled,E]),B=ce.useMemo(function(){return!T.checkable||t.checkable===!1?!1:T.checkable},[T.checkable,t.checkable]),A=function(se){k||T.onNodeSelect(se,ca(t))},P=function(se){k||!B||t.disableCheckbox||T.onNodeCheck(se,ca(t),!g)},z=ce.useMemo(function(){return typeof S=="boolean"?S:T.selectable},[S,T.selectable]),L=function(se){T.onNodeClick(se,ca(t)),z?A(se):P(se)},V=function(se){T.onNodeDoubleClick(se,ca(t))},j=function(se){T.onNodeMouseEnter(se,ca(t))},U=function(se){T.onNodeMouseLeave(se,ca(t))},J=function(se){T.onNodeContextMenu(se,ca(t))},te=ce.useMemo(function(){return!!(T.draggable&&(!T.draggable.nodeDraggable||T.draggable.nodeDraggable(E)))},[T.draggable,E]),ae=function(se){se.stopPropagation(),F(!0),T.onNodeDragStart(se,t);try{se.dataTransfer.setData("text/plain","")}catch{}},K=function(se){se.preventDefault(),se.stopPropagation(),T.onNodeDragEnter(se,t)},Q=function(se){se.preventDefault(),se.stopPropagation(),T.onNodeDragOver(se,t)},oe=function(se){se.stopPropagation(),T.onNodeDragLeave(se,t)},ge=function(se){se.stopPropagation(),F(!1),T.onNodeDragEnd(se,t)},fe=function(se){se.preventDefault(),se.stopPropagation(),F(!1),T.onNodeDrop(se,t)},ue=function(se){y||T.onNodeExpand(se,ca(t))},le=ce.useMemo(function(){var me=Sl(T.keyEntities,i)||{},se=me.children;return!!(se||[]).length},[T.keyEntities,i]),ve=ce.useMemo(function(){return u===!1?!1:u||!T.loadData&&!le||T.loadData&&t.loaded&&!le},[u,T.loadData,le,t.loaded]);ce.useEffect(function(){y||typeof T.loadData=="function"&&h&&!ve&&!t.loaded&&T.onNodeLoad(ca(t))},[y,T.loadData,T.onNodeLoad,h,ve,t]);var ne=ce.useMemo(function(){var me;return(me=T.draggable)!==null&&me!==void 0&&me.icon?ce.createElement("span",{className:"".concat(T.prefixCls,"-draggable-icon")},T.draggable.icon):null},[T.draggable]),pe=function(se){var Be=t.switcherIcon||T.switcherIcon;return typeof Be=="function"?Be(W(W({},t),{},{isLeaf:se})):Be},be=function(){if(ve){var se=pe(!0);return se!==!1?ce.createElement("span",{className:Te("".concat(T.prefixCls,"-switcher"),"".concat(T.prefixCls,"-switcher-noop"))},se):null}var Be=pe(!1);return Be!==!1?ce.createElement("span",{onClick:ue,className:Te("".concat(T.prefixCls,"-switcher"),"".concat(T.prefixCls,"-switcher_").concat(h?foe:poe))},Be):null},Re=ce.useMemo(function(){if(!B)return null;var me=typeof B!="boolean"?B:null;return ce.createElement("span",{className:Te("".concat(T.prefixCls,"-checkbox"),ee(ee(ee({},"".concat(T.prefixCls,"-checkbox-checked"),g),"".concat(T.prefixCls,"-checkbox-indeterminate"),!g&&v),"".concat(T.prefixCls,"-checkbox-disabled"),k||t.disableCheckbox)),onClick:P,role:"checkbox","aria-checked":v?"mixed":g,"aria-disabled":k||t.disableCheckbox,"aria-label":"Select ".concat(typeof t.title=="string"?t.title:"tree node")},me)},[B,g,v,k,t.disableCheckbox,t.title]),Se=ce.useMemo(function(){return ve?null:h?foe:poe},[ve,h]),Ce=ce.useMemo(function(){return ce.createElement("span",{className:Te("".concat(T.prefixCls,"-iconEle"),"".concat(T.prefixCls,"-icon__").concat(Se||"docu"),ee({},"".concat(T.prefixCls,"-icon_loading"),y))})},[T.prefixCls,Se,y]),ye=ce.useMemo(function(){var me=!!T.draggable,se=!t.disabled&&me&&T.dragOverNodeKey===i;return se?T.dropIndicatorRender({dropPosition:T.dropPosition,dropLevelOffset:T.dropLevelOffset,indent:T.indent,prefixCls:T.prefixCls,direction:T.direction}):null},[T.dropPosition,T.dropLevelOffset,T.indent,T.prefixCls,T.direction,T.draggable,T.dragOverNodeKey,T.dropIndicatorRender]),he=ce.useMemo(function(){var me=t.title,se=me===void 0?_0t:me,Be="".concat(T.prefixCls,"-node-content-wrapper"),Ve;if(T.showIcon){var re=t.icon||T.icon;Ve=re?ce.createElement("span",{className:Te("".concat(T.prefixCls,"-iconEle"),"".concat(T.prefixCls,"-icon__customize"))},typeof re=="function"?re(t):re):Ce}else T.loadData&&y&&(Ve=Ce);var Me;return typeof se=="function"?Me=se(E):T.titleRender?Me=T.titleRender(E):Me=se,ce.createElement("span",{ref:O,title:typeof se=="string"?se:"",className:Te(Be,"".concat(Be,"-").concat(Se||"normal"),ee({},"".concat(T.prefixCls,"-node-selected"),!k&&(m||M))),onMouseEnter:j,onMouseLeave:U,onContextMenu:J,onClick:L,onDoubleClick:V},Ve,ce.createElement("span",{className:"".concat(T.prefixCls,"-title")},Me),ye)},[T.prefixCls,T.showIcon,t,T.icon,Ce,T.titleRender,E,Se,j,U,J,L,V]),_e=xi(C,{aria:!0,data:!0}),Oe=Sl(T.keyEntities,i)||{},De=Oe.level,Y=f[f.length-1],D=!k&&te,G=T.draggingNodeKey===i,ie=S!==void 0?{"aria-selected":!!S}:void 0;return ce.createElement("div",Ke({ref:b,role:"treeitem","aria-expanded":u?void 0:h,className:Te(o,"".concat(T.prefixCls,"-treenode"),(r={},ee(ee(ee(ee(ee(ee(ee(ee(ee(ee(r,"".concat(T.prefixCls,"-treenode-disabled"),k),"".concat(T.prefixCls,"-treenode-switcher-").concat(h?"open":"close"),!u),"".concat(T.prefixCls,"-treenode-checkbox-checked"),g),"".concat(T.prefixCls,"-treenode-checkbox-indeterminate"),v),"".concat(T.prefixCls,"-treenode-selected"),m),"".concat(T.prefixCls,"-treenode-loading"),y),"".concat(T.prefixCls,"-treenode-active"),_),"".concat(T.prefixCls,"-treenode-leaf-last"),Y),"".concat(T.prefixCls,"-treenode-draggable"),te),"dragging",G),ee(ee(ee(ee(ee(ee(ee(r,"drop-target",T.dropTargetKey===i),"drop-container",T.dropContainerKey===i),"drag-over",!k&&s),"drag-over-gap-top",!k&&l),"drag-over-gap-bottom",!k&&c),"filter-node",(n=T.filterTreeNode)===null||n===void 0?void 0:n.call(T,ca(t))),"".concat(T.prefixCls,"-treenode-leaf"),ve))),style:a,draggable:D,onDragStart:D?ae:void 0,onDragEnter:te?K:void 0,onDragOver:te?Q:void 0,onDragLeave:te?oe:void 0,onDrop:te?fe:void 0,onDragEnd:te?ge:void 0,onMouseMove:w},ie,_e),ce.createElement(b0t,{prefixCls:T.prefixCls,level:De,isStart:d,isEnd:f}),ne,be(),Re,he)};$T.isTreeNode=1;function Jd(e,t){if(!e)return[];var n=e.slice(),r=n.indexOf(t);return r>=0&&n.splice(r,1),n}function bp(e,t){var n=(e||[]).slice();return n.indexOf(t)===-1&&n.push(t),n}function SY(e){return e.split("-")}function S0t(e,t){var n=[],r=Sl(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 E0t(e){if(e.parent){var t=SY(e.pos);return Number(t[t.length-1])===e.parent.children.length-1}return!1}function C0t(e){var t=SY(e.pos);return Number(t[t.length-1])===0}function hoe(e,t,n,r,i,o,a,s,l,c){var u,d=e.clientX,f=e.clientY,h=e.target.getBoundingClientRect(),m=h.top,g=h.height,v=(c==="rtl"?-1:1)*(((i==null?void 0:i.x)||0)-d),y=(v-12)/r,b=l.filter(function(B){var A;return(A=s[B])===null||A===void 0||(A=A.children)===null||A===void 0?void 0:A.length}),_=Sl(s,n.eventKey);if(f<m+g/2){var E=a.findIndex(function(B){return B.key===_.key}),w=E<=0?0:E-1,S=a[w].key;_=Sl(s,S)}var C=_.key,T=_,x=_.key,O=0,N=0;if(!b.includes(C))for(var I=0;I<y&&E0t(_);I+=1)_=_.parent,N+=1;var M=t.data,F=_.node,k=!0;return C0t(_)&&_.level===0&&f<m+g/2&&o({dragNode:M,dropNode:F,dropPosition:-1})&&_.key===n.eventKey?O=-1:(T.children||[]).length&&b.includes(x)?o({dragNode:M,dropNode:F,dropPosition:0})?O=0:k=!1:N===0?y>-1.5?o({dragNode:M,dropNode:F,dropPosition:1})?O=1:k=!1:o({dragNode:M,dropNode:F,dropPosition:0})?O=0:o({dragNode:M,dropNode:F,dropPosition:1})?O=1:k=!1:o({dragNode:M,dropNode:F,dropPosition:1})?O=1:k=!1,{dropPosition:O,dropLevelOffset:N,dropTargetKey:_.key,dropTargetPos:_.pos,dragOverNodeKey:x,dropContainerKey:O===0?null:((u=_.parent)===null||u===void 0?void 0:u.key)||null,dropAllowed:k}}function moe(e,t){if(e){var n=t.multiple;return n?e.slice():e.length?[e[0]]:e}}function e$(e){if(!e)return null;var t;if(Array.isArray(e))t={checkedKeys:e,halfCheckedKeys:void 0};else if(Gt(e)==="object")t={checkedKeys:e.checked||void 0,halfCheckedKeys:e.halfChecked||void 0};else return Yr(!1,"`checkedKeys` is not an array or an object"),null;return t}function VH(e,t){var n=new Set;function r(i){if(!n.has(i)){var o=Sl(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)}),nt(n)}function w0t(e){const[t,n]=p.useState(null);return[p.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)),f=d.some(m=>!s.has(m)),h=[];return d.forEach(m=>{f?(s.has(m)||h.push(m),s.add(m)):(s.delete(m),h.push(m))}),n(f?u:null),h},[t]),o=>{n(o)}]}const Jh={},GH="SELECT_ALL",WH="SELECT_INVERT",qH="SELECT_NONE",goe=[],i2e=(e,t)=>{let n=[];return(t||[]).forEach(r=>{n.push(r),r&&typeof r=="object"&&e in r&&(n=[].concat(nt(n),nt(i2e(e,r[e]))))}),n},T0t=(e,t)=>{const{preserveSelectedRowKeys:n,selectedRowKeys:r,defaultSelectedRowKeys:i,getCheckboxProps:o,onChange:a,onSelect:s,onSelectAll:l,onSelectInvert:c,onSelectNone:u,onSelectMultiple:d,columnWidth:f,type:h,selections:m,fixed:g,renderCell:v,hideSelectAll:y,checkStrictly:b=!0}=t||{},{prefixCls:_,data:E,pageData:w,getRecordByKey:S,getRowKey:C,expandType:T,childrenColumnName:x,locale:O,getPopupContainer:N}=e,I=Wf(),[M,F]=w0t(fe=>fe),[k,B]=Pn(r||i||goe,{value:r}),A=p.useRef(new Map),P=p.useCallback(fe=>{if(n){const ue=new Map;fe.forEach(le=>{let ve=S(le);!ve&&A.current.has(le)&&(ve=A.current.get(le)),ue.set(le,ve)}),A.current=ue}},[S,n]);p.useEffect(()=>{P(k)},[k]);const z=p.useMemo(()=>i2e(x,w),[x,w]),{keyEntities:L}=p.useMemo(()=>{if(b)return{keyEntities:null};let fe=E;if(n){const ue=new Set(z.map((ve,ne)=>C(ve,ne))),le=Array.from(A.current).reduce((ve,ne)=>{let[pe,be]=ne;return ue.has(pe)?ve:ve.concat(be)},[]);fe=[].concat(nt(fe),nt(le))}return b2(fe,{externalGetKey:C,childrenPropName:x})},[E,C,b,x,n,z]),V=p.useMemo(()=>{const fe=new Map;return z.forEach((ue,le)=>{const ve=C(ue,le),ne=(o?o(ue):null)||{};fe.set(ve,ne)}),fe},[z,C,o]),j=p.useCallback(fe=>{const ue=C(fe);let le;return V.has(ue)?le=V.get(C(fe)):le=o?o(fe):void 0,!!(le!=null&&le.disabled)},[V,C]),[U,J]=p.useMemo(()=>{if(b)return[k||[],[]];const{checkedKeys:fe,halfCheckedKeys:ue}=au(k,!0,L,j);return[fe||[],ue]},[k,b,L,j]),te=p.useMemo(()=>{const fe=h==="radio"?U.slice(0,1):U;return new Set(fe)},[U,h]),ae=p.useMemo(()=>h==="radio"?new Set:new Set(J),[J,h]);p.useEffect(()=>{t||B(goe)},[!!t]);const K=p.useCallback((fe,ue)=>{let le,ve;P(fe),n?(le=fe,ve=fe.map(ne=>A.current.get(ne))):(le=[],ve=[],fe.forEach(ne=>{const pe=S(ne);pe!==void 0&&(le.push(ne),ve.push(pe))})),B(le),a==null||a(le,ve,{type:ue})},[B,S,a,n]),Q=p.useCallback((fe,ue,le,ve)=>{if(s){const ne=le.map(pe=>S(pe));s(S(fe),ue,ne,ve)}K(le,"single")},[s,S,K]),oe=p.useMemo(()=>!m||y?null:(m===!0?[GH,WH,qH]:m).map(ue=>ue===GH?{key:"all",text:O.selectionAll,onSelect(){K(E.map((le,ve)=>C(le,ve)).filter(le=>{const ve=V.get(le);return!(ve!=null&&ve.disabled)||te.has(le)}),"all")}}:ue===WH?{key:"invert",text:O.selectInvert,onSelect(){const le=new Set(te);w.forEach((ne,pe)=>{const be=C(ne,pe),Re=V.get(be);Re!=null&&Re.disabled||(le.has(be)?le.delete(be):le.add(be))});const ve=Array.from(le);c&&(I.deprecated(!1,"onSelectInvert","onChange"),c(ve)),K(ve,"invert")}}:ue===qH?{key:"none",text:O.selectNone,onSelect(){u==null||u(),K(Array.from(te).filter(le=>{const ve=V.get(le);return ve==null?void 0:ve.disabled}),"none")}}:ue).map(ue=>Object.assign(Object.assign({},ue),{onSelect:function(){for(var le,ve,ne=arguments.length,pe=new Array(ne),be=0;be<ne;be++)pe[be]=arguments[be];(ve=ue.onSelect)===null||ve===void 0||(le=ve).call.apply(le,[ue].concat(pe)),F(null)}})),[m,te,w,C,c,K]);return[p.useCallback(fe=>{var ue;if(!t)return fe.filter(me=>me!==Jh);let le=nt(fe);const ve=new Set(te),ne=z.map(C).filter(me=>!V.get(me).disabled),pe=ne.every(me=>ve.has(me)),be=ne.some(me=>ve.has(me)),Re=()=>{const me=[];pe?ne.forEach(Be=>{ve.delete(Be),me.push(Be)}):ne.forEach(Be=>{ve.has(Be)||(ve.add(Be),me.push(Be))});const se=Array.from(ve);l==null||l(!pe,se.map(Be=>S(Be)),me.map(Be=>S(Be))),K(se,"all"),F(null)};let Se,Ce;if(h!=="radio"){let me;if(oe){const Me={getPopupContainer:N,items:oe.map((je,ke)=>{const{key:Ge,text:Ue,onSelect:qe}=je;return{key:Ge??ke,onClick:()=>{qe==null||qe(ne)},label:Ue}})};me=p.createElement("div",{className:`${_}-selection-extra`},p.createElement(rD,{menu:Me,getPopupContainer:N},p.createElement("span",null,p.createElement(c2,null))))}const se=z.map((Me,je)=>{const ke=C(Me,je),Ge=V.get(ke)||{};return Object.assign({checked:ve.has(ke)},Ge)}).filter(Me=>{let{disabled:je}=Me;return je}),Be=!!se.length&&se.length===z.length,Ve=Be&&se.every(Me=>{let{checked:je}=Me;return je}),re=Be&&se.some(Me=>{let{checked:je}=Me;return je});Ce=p.createElement(uh,{checked:Be?Ve:!!z.length&&pe,indeterminate:Be?!Ve&&re:!pe&&be,onChange:Re,disabled:z.length===0||Be,"aria-label":me?"Custom selection":"Select all",skipGroup:!0}),Se=!y&&p.createElement("div",{className:`${_}-selection`},Ce,me)}let ye;h==="radio"?ye=(me,se,Be)=>{const Ve=C(se,Be),re=ve.has(Ve),Me=V.get(Ve);return{node:p.createElement(qi,Object.assign({},Me,{checked:re,onClick:je=>{var ke;je.stopPropagation(),(ke=Me==null?void 0:Me.onClick)===null||ke===void 0||ke.call(Me,je)},onChange:je=>{var ke;ve.has(Ve)||Q(Ve,!0,[Ve],je.nativeEvent),(ke=Me==null?void 0:Me.onChange)===null||ke===void 0||ke.call(Me,je)}})),checked:re}}:ye=(me,se,Be)=>{var Ve;const re=C(se,Be),Me=ve.has(re),je=ae.has(re),ke=V.get(re);let Ge;return T==="nest"?Ge=je:Ge=(Ve=ke==null?void 0:ke.indeterminate)!==null&&Ve!==void 0?Ve:je,{node:p.createElement(uh,Object.assign({},ke,{indeterminate:Ge,checked:Me,skipGroup:!0,onClick:Ue=>{var qe;Ue.stopPropagation(),(qe=ke==null?void 0:ke.onClick)===null||qe===void 0||qe.call(ke,Ue)},onChange:Ue=>{var qe;const{nativeEvent:At}=Ue,{shiftKey:at}=At,pt=ne.findIndex(bt=>bt===re),Ct=U.some(bt=>ne.includes(bt));if(at&&b&&Ct){const bt=M(pt,ne,ve),Vt=Array.from(ve);d==null||d(!Me,Vt.map(Tt=>S(Tt)),bt.map(Tt=>S(Tt))),K(Vt,"multiple")}else{const bt=U;if(b){const Vt=Me?Jd(bt,re):bp(bt,re);Q(re,!Me,Vt,At)}else{const Vt=au([].concat(nt(bt),[re]),!0,L,j),{checkedKeys:Tt,halfCheckedKeys:Ot}=Vt;let Ut=Tt;if(Me){const ze=new Set(Tt);ze.delete(re),Ut=au(Array.from(ze),{checked:!1,halfCheckedKeys:Ot},L,j).checkedKeys}Q(re,!Me,Ut,At)}}F(Me?null:pt),(qe=ke==null?void 0:ke.onChange)===null||qe===void 0||qe.call(ke,Ue)}})),checked:Me}};const he=(me,se,Be)=>{const{node:Ve,checked:re}=ye(me,se,Be);return v?v(re,se,Be,Ve):Ve};if(!le.includes(Jh))if(le.findIndex(me=>{var se;return((se=me[mw])===null||se===void 0?void 0:se.columnType)==="EXPAND_COLUMN"})===0){const[me,...se]=le;le=[me,Jh].concat(nt(se))}else le=[Jh].concat(nt(le));const _e=le.indexOf(Jh);le=le.filter((me,se)=>me!==Jh||se===_e);const Oe=le[_e-1],De=le[_e+1];let Y=g;Y===void 0&&((De==null?void 0:De.fixed)!==void 0?Y=De.fixed:(Oe==null?void 0:Oe.fixed)!==void 0&&(Y=Oe.fixed)),Y&&Oe&&((ue=Oe[mw])===null||ue===void 0?void 0:ue.columnType)==="EXPAND_COLUMN"&&Oe.fixed===void 0&&(Oe.fixed=Y);const D=Te(`${_}-selection-col`,{[`${_}-selection-col-with-dropdown`]:m&&h==="checkbox"}),G=()=>t!=null&&t.columnTitle?typeof t.columnTitle=="function"?t.columnTitle(Ce):t.columnTitle:Se,ie={fixed:Y,width:f,className:`${_}-selection-column`,title:G(),render:he,onCell:t.onCell,[mw]:{className:D}};return le.map(me=>me===Jh?ie:me)},[C,z,t,U,te,ae,f,oe,T,V,d,Q,j]),te]};function x0t(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 O0t(e,t){return p.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)}}):x0t(r,n)})}function R0t(e){return t=>{const{prefixCls:n,onExpand:r,record:i,expanded:o,expandable:a}=t,s=`${n}-row-expand-icon`;return p.createElement("button",{type:"button",onClick:l=>{r(i,l),l.stopPropagation()},className:Te(s,{[`${s}-spaced`]:!a,[`${s}-expanded`]:a&&o,[`${s}-collapsed`]:a&&!o}),"aria-label":o?e.collapse:e.expand,"aria-expanded":o})}}function I0t(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 gg=(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 kS(e,t){return t?`${t}-${e}`:`${e}`}const fD=(e,t)=>typeof e=="function"?e(t):e,A0t=(e,t)=>{const n=fD(e,t);return Object.prototype.toString.call(n)==="[object Object]"?"":n};function N0t(e){const t=p.useRef(e),n=xq();return[()=>t.current,r=>{t.current=r,n()}]}var M0t=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 ce.createElement("div",{style:o})};function o2e(e){if(e==null)throw new TypeError("Cannot destructure "+e)}function k0t(e,t){var n=p.useState(!1),r=Ie(n,2),i=r[0],o=r[1];sr(function(){if(i)return e(),function(){t()}},[i]),sr(function(){return o(!0),function(){o(!1)}},[])}var P0t=["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"],D0t=p.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=Dt(e,P0t),f=p.useState(!0),h=Ie(f,2),m=h[0],g=h[1],v=p.useContext(_Y),y=v.prefixCls,b=o&&a!=="hide";sr(function(){o&&b!==m&&g(b)},[o]);var _=function(){o&&s()},E=p.useRef(!1),w=function(){o&&!E.current&&(E.current=!0,l())};k0t(_,w);var S=function(T){b===T&&w()};return o?p.createElement(ra,Ke({ref:t,visible:m},i,{motionAppear:a==="show",onVisibleChanged:S}),function(C,T){var x=C.className,O=C.style;return p.createElement("div",{ref:T,className:Te("".concat(y,"-treenode-motion"),x),style:O},o.map(function(N){var I=Object.assign({},(o2e(N.data),N.data)),M=N.title,F=N.key,k=N.isStart,B=N.isEnd;delete I.children;var A=pw(F,u);return p.createElement($T,Ke({},I,A,{title:M,active:c,data:N.data,key:F,isStart:k,isEnd:B}))}))}):p.createElement($T,Ke({domRef:t,className:n,style:r},d,{active:c}))});function L0t(){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 voe(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 $0t=["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"],boe={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},F0t=function(){},zv="RC_TREE_MOTION_".concat(Math.random()),YH={key:zv},a2e={key:zv,level:0,index:0,pos:"0",node:YH,nodes:[YH]},yoe={parent:null,children:[],pos:a2e.pos,data:YH,title:null,key:zv,isStart:[],isEnd:[]};function _oe(e,t,n,r){return t===!1||!n?e:e.slice(0,Math.ceil(n/r)+1)}function Soe(e){var t=e.key,n=e.pos;return v2(t,n)}function B0t(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 j0t=p.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,f=e.dragging,h=e.dragOverNodeKey,m=e.dropPosition,g=e.motion,v=e.height,y=e.itemHeight,b=e.virtual,_=e.scrollWidth,E=e.focusable,w=e.activeItem,S=e.focused,C=e.tabIndex,T=e.onKeyDown,x=e.onFocus,O=e.onBlur,N=e.onActiveChange,I=e.onListChangeStart,M=e.onListChangeEnd,F=Dt(e,$0t),k=p.useRef(null),B=p.useRef(null);p.useImperativeHandle(t,function(){return{scrollTo:function(he){k.current.scrollTo(he)},getIndentWidth:function(){return B.current.offsetWidth}}});var A=p.useState(i),P=Ie(A,2),z=P[0],L=P[1],V=p.useState(r),j=Ie(V,2),U=j[0],J=j[1],te=p.useState(r),ae=Ie(te,2),K=ae[0],Q=ae[1],oe=p.useState([]),ge=Ie(oe,2),fe=ge[0],ue=ge[1],le=p.useState(null),ve=Ie(le,2),ne=ve[0],pe=ve[1],be=p.useRef(r);be.current=r;function Re(){var ye=be.current;J(ye),Q(ye),ue([]),pe(null),M()}sr(function(){L(i);var ye=L0t(z,i);if(ye.key!==null)if(ye.add){var he=U.findIndex(function(G){var ie=G.key;return ie===ye.key}),_e=_oe(voe(U,r,ye.key),b,v,y),Oe=U.slice();Oe.splice(he+1,0,yoe),Q(Oe),ue(_e),pe("show")}else{var De=r.findIndex(function(G){var ie=G.key;return ie===ye.key}),Y=_oe(voe(r,U,ye.key),b,v,y),D=r.slice();D.splice(De+1,0,yoe),Q(D),ue(Y),pe("hide")}else U!==r&&(J(r),Q(r))},[i,r]),p.useEffect(function(){f||Re()},[f]);var Se=g?K:r,Ce={expandedKeys:i,selectedKeys:o,loadedKeys:s,loadingKeys:l,checkedKeys:a,halfCheckedKeys:c,dragOverNodeKey:h,dropPosition:m,keyEntities:u};return p.createElement(p.Fragment,null,S&&w&&p.createElement("span",{style:boe,"aria-live":"assertive"},B0t(w)),p.createElement("div",null,p.createElement("input",{style:boe,disabled:E===!1||d,tabIndex:E!==!1?C:null,onKeyDown:T,onFocus:x,onBlur:O,value:"",onChange:F0t,"aria-label":"for screen reader"})),p.createElement("div",{className:"".concat(n,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},p.createElement("div",{className:"".concat(n,"-indent")},p.createElement("div",{ref:B,className:"".concat(n,"-indent-unit")}))),p.createElement(P5,Ke({},F,{data:Se,itemKey:Soe,height:v,fullHeight:!1,virtual:b,itemHeight:y,scrollWidth:_,prefixCls:"".concat(n,"-list"),ref:k,role:"tree",onVisibleChange:function(he){he.every(function(_e){return Soe(_e)!==zv})&&Re()}}),function(ye){var he=ye.pos,_e=Object.assign({},(o2e(ye.data),ye.data)),Oe=ye.title,De=ye.key,Y=ye.isStart,D=ye.isEnd,G=v2(De,he);delete _e.key,delete _e.children;var ie=pw(G,Ce);return p.createElement(D0t,Ke({},_e,ie,{title:Oe,active:!!w&&De===w.key,pos:he,data:ye.data,isStart:Y,isEnd:D,motion:g,motionNodes:De===zv?fe:null,motionType:ne,onMotionStart:I,onMotionEnd:Re,treeNodeRequiredProps:Ce,onMouseMove:function(){N(null)}}))}))}),H0t=10,pD=function(e){Ds(n,e);var t=il(n);function n(){var r;Kr(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)),ee(cn(r),"destroyed",!1),ee(cn(r),"delayedDragEnterLogic",void 0),ee(cn(r),"loadingRetryTimes",{}),ee(cn(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:__()}),ee(cn(r),"dragStartMousePosition",null),ee(cn(r),"dragNodeProps",null),ee(cn(r),"currentMouseOverDroppableNodeKey",null),ee(cn(r),"listRef",p.createRef()),ee(cn(r),"onNodeDragStart",function(s,l){var c=r.state,u=c.expandedKeys,d=c.keyEntities,f=r.props.onDragStart,h=l.eventKey;r.dragNodeProps=l,r.dragStartMousePosition={x:s.clientX,y:s.clientY};var m=Jd(u,h);r.setState({draggingNodeKey:h,dragChildrenKeys:S0t(h,d),indent:r.listRef.current.getIndentWidth()}),r.setExpandedKeys(m),window.addEventListener("dragend",r.onWindowDragEnd),f==null||f({event:s,node:ca(l)})}),ee(cn(r),"onNodeDragEnter",function(s,l){var c=r.state,u=c.expandedKeys,d=c.keyEntities,f=c.dragChildrenKeys,h=c.flattenNodes,m=c.indent,g=r.props,v=g.onDragEnter,y=g.onExpand,b=g.allowDrop,_=g.direction,E=l.pos,w=l.eventKey;if(r.currentMouseOverDroppableNodeKey!==w&&(r.currentMouseOverDroppableNodeKey=w),!r.dragNodeProps){r.resetDragState();return}var S=hoe(s,r.dragNodeProps,l,m,r.dragStartMousePosition,b,h,d,u,_),C=S.dropPosition,T=S.dropLevelOffset,x=S.dropTargetKey,O=S.dropContainerKey,N=S.dropTargetPos,I=S.dropAllowed,M=S.dragOverNodeKey;if(f.includes(x)||!I){r.resetDragState();return}if(r.delayedDragEnterLogic||(r.delayedDragEnterLogic={}),Object.keys(r.delayedDragEnterLogic).forEach(function(F){clearTimeout(r.delayedDragEnterLogic[F])}),r.dragNodeProps.eventKey!==l.eventKey&&(s.persist(),r.delayedDragEnterLogic[E]=window.setTimeout(function(){if(r.state.draggingNodeKey!==null){var F=nt(u),k=Sl(d,l.eventKey);k&&(k.children||[]).length&&(F=bp(u,l.eventKey)),r.props.hasOwnProperty("expandedKeys")||r.setExpandedKeys(F),y==null||y(F,{node:ca(l),expanded:!0,nativeEvent:s.nativeEvent})}},800)),r.dragNodeProps.eventKey===x&&T===0){r.resetDragState();return}r.setState({dragOverNodeKey:M,dropPosition:C,dropLevelOffset:T,dropTargetKey:x,dropContainerKey:O,dropTargetPos:N,dropAllowed:I}),v==null||v({event:s,node:ca(l),expandedKeys:u})}),ee(cn(r),"onNodeDragOver",function(s,l){var c=r.state,u=c.dragChildrenKeys,d=c.flattenNodes,f=c.keyEntities,h=c.expandedKeys,m=c.indent,g=r.props,v=g.onDragOver,y=g.allowDrop,b=g.direction;if(r.dragNodeProps){var _=hoe(s,r.dragNodeProps,l,m,r.dragStartMousePosition,y,d,f,h,b),E=_.dropPosition,w=_.dropLevelOffset,S=_.dropTargetKey,C=_.dropContainerKey,T=_.dropTargetPos,x=_.dropAllowed,O=_.dragOverNodeKey;u.includes(S)||!x||(r.dragNodeProps.eventKey===S&&w===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():E===r.state.dropPosition&&w===r.state.dropLevelOffset&&S===r.state.dropTargetKey&&C===r.state.dropContainerKey&&T===r.state.dropTargetPos&&x===r.state.dropAllowed&&O===r.state.dragOverNodeKey||r.setState({dropPosition:E,dropLevelOffset:w,dropTargetKey:S,dropContainerKey:C,dropTargetPos:T,dropAllowed:x,dragOverNodeKey:O}),v==null||v({event:s,node:ca(l)}))}}),ee(cn(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:ca(l)})}),ee(cn(r),"onWindowDragEnd",function(s){r.onNodeDragEnd(s,null,!0),window.removeEventListener("dragend",r.onWindowDragEnd)}),ee(cn(r),"onNodeDragEnd",function(s,l){var c=r.props.onDragEnd;r.setState({dragOverNodeKey:null}),r.cleanDragState(),c==null||c({event:s,node:ca(l)}),r.dragNodeProps=null,window.removeEventListener("dragend",r.onWindowDragEnd)}),ee(cn(r),"onNodeDrop",function(s,l){var c,u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,d=r.state,f=d.dragChildrenKeys,h=d.dropPosition,m=d.dropTargetKey,g=d.dropTargetPos,v=d.dropAllowed;if(v){var y=r.props.onDrop;if(r.setState({dragOverNodeKey:null}),r.cleanDragState(),m!==null){var b=W(W({},pw(m,r.getTreeNodeRequiredProps())),{},{active:((c=r.getActiveItem())===null||c===void 0?void 0:c.key)===m,data:Sl(r.state.keyEntities,m).node}),_=f.includes(m);Yr(!_,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var E=SY(g),w={event:s,node:ca(b),dragNode:r.dragNodeProps?ca(r.dragNodeProps):null,dragNodesKeys:[r.dragNodeProps.eventKey].concat(f),dropToGap:h!==0,dropPosition:h+Number(E[E.length-1])};u||y==null||y(w),r.dragNodeProps=null}}}),ee(cn(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}),ee(cn(r),"triggerExpandActionExpand",function(s,l){var c=r.state,u=c.expandedKeys,d=c.flattenNodes,f=l.expanded,h=l.key,m=l.isLeaf;if(!(m||s.shiftKey||s.metaKey||s.ctrlKey)){var g=d.filter(function(y){return y.key===h})[0],v=ca(W(W({},pw(h,r.getTreeNodeRequiredProps())),{},{data:g.data}));r.setExpandedKeys(f?Jd(u,h):bp(u,h)),r.onNodeExpand(s,v)}}),ee(cn(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)}),ee(cn(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)}),ee(cn(r),"onNodeSelect",function(s,l){var c=r.state.selectedKeys,u=r.state,d=u.keyEntities,f=u.fieldNames,h=r.props,m=h.onSelect,g=h.multiple,v=l.selected,y=l[f.key],b=!v;b?g?c=bp(c,y):c=[y]:c=Jd(c,y);var _=c.map(function(E){var w=Sl(d,E);return w?w.node:null}).filter(Boolean);r.setUncontrolledState({selectedKeys:c}),m==null||m(c,{event:"select",selected:b,node:l,selectedNodes:_,nativeEvent:s.nativeEvent})}),ee(cn(r),"onNodeCheck",function(s,l,c){var u=r.state,d=u.keyEntities,f=u.checkedKeys,h=u.halfCheckedKeys,m=r.props,g=m.checkStrictly,v=m.onCheck,y=l.key,b,_={event:"check",node:l,checked:c,nativeEvent:s.nativeEvent};if(g){var E=c?bp(f,y):Jd(f,y),w=Jd(h,y);b={checked:E,halfChecked:w},_.checkedNodes=E.map(function(N){return Sl(d,N)}).filter(Boolean).map(function(N){return N.node}),r.setUncontrolledState({checkedKeys:E})}else{var S=au([].concat(nt(f),[y]),!0,d),C=S.checkedKeys,T=S.halfCheckedKeys;if(!c){var x=new Set(C);x.delete(y);var O=au(Array.from(x),{checked:!1,halfCheckedKeys:T},d);C=O.checkedKeys,T=O.halfCheckedKeys}b=C,_.checkedNodes=[],_.checkedNodesPositions=[],_.halfCheckedKeys=T,C.forEach(function(N){var I=Sl(d,N);if(I){var M=I.node,F=I.pos;_.checkedNodes.push(M),_.checkedNodesPositions.push({node:M,pos:F})}}),r.setUncontrolledState({checkedKeys:C},!1,{halfCheckedKeys:T})}v==null||v(b,_)}),ee(cn(r),"onNodeLoad",function(s){var l,c=s.key,u=r.state.keyEntities,d=Sl(u,c);if(!(d!=null&&(l=d.children)!==null&&l!==void 0&&l.length)){var f=new Promise(function(h,m){r.setState(function(g){var v=g.loadedKeys,y=v===void 0?[]:v,b=g.loadingKeys,_=b===void 0?[]:b,E=r.props,w=E.loadData,S=E.onLoad;if(!w||y.includes(c)||_.includes(c))return null;var C=w(s);return C.then(function(){var T=r.state.loadedKeys,x=bp(T,c);S==null||S(x,{event:"load",node:s}),r.setUncontrolledState({loadedKeys:x}),r.setState(function(O){return{loadingKeys:Jd(O.loadingKeys,c)}}),h()}).catch(function(T){if(r.setState(function(O){return{loadingKeys:Jd(O.loadingKeys,c)}}),r.loadingRetryTimes[c]=(r.loadingRetryTimes[c]||0)+1,r.loadingRetryTimes[c]>=H0t){var x=r.state.loadedKeys;Yr(!1,"Retry for `loadData` many times but still failed. No more retry."),r.setUncontrolledState({loadedKeys:bp(x,c)}),h()}m(T)}),{loadingKeys:bp(_,c)}})});return f.catch(function(){}),f}}),ee(cn(r),"onNodeMouseEnter",function(s,l){var c=r.props.onMouseEnter;c==null||c({event:s,node:l})}),ee(cn(r),"onNodeMouseLeave",function(s,l){var c=r.props.onMouseLeave;c==null||c({event:s,node:l})}),ee(cn(r),"onNodeContextMenu",function(s,l){var c=r.props.onRightClick;c&&(s.preventDefault(),c({event:s,node:l}))}),ee(cn(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)}),ee(cn(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)}),ee(cn(r),"getTreeNodeRequiredProps",function(){var s=r.state,l=s.expandedKeys,c=s.selectedKeys,u=s.loadedKeys,d=s.loadingKeys,f=s.checkedKeys,h=s.halfCheckedKeys,m=s.dragOverNodeKey,g=s.dropPosition,v=s.keyEntities;return{expandedKeys:l||[],selectedKeys:c||[],loadedKeys:u||[],loadingKeys:d||[],checkedKeys:f||[],halfCheckedKeys:h||[],dragOverNodeKey:m,dropPosition:g,keyEntities:v}}),ee(cn(r),"setExpandedKeys",function(s){var l=r.state,c=l.treeData,u=l.fieldNames,d=GL(c,s,u);r.setUncontrolledState({expandedKeys:s,flattenNodes:d},!0)}),ee(cn(r),"onNodeExpand",function(s,l){var c=r.state.expandedKeys,u=r.state,d=u.listChanging,f=u.fieldNames,h=r.props,m=h.onExpand,g=h.loadData,v=l.expanded,y=l[f.key];if(!d){var b=c.includes(y),_=!v;if(Yr(v&&b||!v&&!b,"Expand state not sync with index check"),c=_?bp(c,y):Jd(c,y),r.setExpandedKeys(c),m==null||m(c,{node:l,expanded:_,nativeEvent:s.nativeEvent}),_&&g){var E=r.onNodeLoad(l);E&&E.then(function(){var w=GL(r.state.treeData,c,f);r.setUncontrolledState({flattenNodes:w})}).catch(function(){var w=r.state.expandedKeys,S=Jd(w,y);r.setExpandedKeys(S)})}}}),ee(cn(r),"onListChangeStart",function(){r.setUncontrolledState({listChanging:!0})}),ee(cn(r),"onListChangeEnd",function(){setTimeout(function(){r.setUncontrolledState({listChanging:!1})})}),ee(cn(r),"onActiveChange",function(s){var l=r.state.activeKey,c=r.props,u=c.onActiveChange,d=c.itemScrollOffset,f=d===void 0?0:d;l!==s&&(r.setState({activeKey:s}),s!==null&&r.scrollTo({key:s,offset:f}),u==null||u(s))}),ee(cn(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}),ee(cn(r),"offsetActiveKey",function(s){var l=r.state,c=l.flattenNodes,u=l.activeKey,d=c.findIndex(function(m){var g=m.key;return g===u});d===-1&&s<0&&(d=c.length),d=(d+s+c.length)%c.length;var f=c[d];if(f){var h=f.key;r.onActiveChange(h)}else r.onActiveChange(null)}),ee(cn(r),"onKeyDown",function(s){var l=r.state,c=l.activeKey,u=l.expandedKeys,d=l.checkedKeys,f=l.fieldNames,h=r.props,m=h.onKeyDown,g=h.checkable,v=h.selectable;switch(s.which){case dt.UP:{r.offsetActiveKey(-1),s.preventDefault();break}case dt.DOWN:{r.offsetActiveKey(1),s.preventDefault();break}}var y=r.getActiveItem();if(y&&y.data){var b=r.getTreeNodeRequiredProps(),_=y.data.isLeaf===!1||!!(y.data[f.children]||[]).length,E=ca(W(W({},pw(c,b)),{},{data:y.data,active:!0}));switch(s.which){case dt.LEFT:{_&&u.includes(c)?r.onNodeExpand({},E):y.parent&&r.onActiveChange(y.parent.key),s.preventDefault();break}case dt.RIGHT:{_&&!u.includes(c)?r.onNodeExpand({},E):y.children&&y.children.length&&r.onActiveChange(y.children[0].key),s.preventDefault();break}case dt.ENTER:case dt.SPACE:{g&&!E.disabled&&E.checkable!==!1&&!E.disableCheckbox?r.onNodeCheck({},E,!d.includes(c)):!g&&v&&!E.disabled&&E.selectable!==!1&&r.onNodeSelect({},E);break}}}m==null||m(s)}),ee(cn(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,f={};Object.keys(s).forEach(function(h){if(r.props.hasOwnProperty(h)){d=!1;return}u=!0,f[h]=s[h]}),u&&(!l||d)&&r.setState(W(W({},f),c))}}),ee(cn(r),"scrollTo",function(s){r.listRef.current.scrollTo(s)}),r}return Qr(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,f=i.dropTargetKey,h=i.dropPosition,m=i.dragOverNodeKey,g=i.indent,v=this.props,y=v.prefixCls,b=v.className,_=v.style,E=v.showLine,w=v.focusable,S=v.tabIndex,C=S===void 0?0:S,T=v.selectable,x=v.showIcon,O=v.icon,N=v.switcherIcon,I=v.draggable,M=v.checkable,F=v.checkStrictly,k=v.disabled,B=v.motion,A=v.loadData,P=v.filterTreeNode,z=v.height,L=v.itemHeight,V=v.scrollWidth,j=v.virtual,U=v.titleRender,J=v.dropIndicatorRender,te=v.onContextMenu,ae=v.onScroll,K=v.direction,Q=v.rootClassName,oe=v.rootStyle,ge=xi(this.props,{aria:!0,data:!0}),fe;I&&(Gt(I)==="object"?fe=I:typeof I=="function"?fe={nodeDraggable:I}:fe={});var ue={prefixCls:y,selectable:T,showIcon:x,icon:O,switcherIcon:N,draggable:fe,draggingNodeKey:l,checkable:M,checkStrictly:F,disabled:k,keyEntities:s,dropLevelOffset:u,dropContainerKey:d,dropTargetKey:f,dropPosition:h,dragOverNodeKey:m,indent:g,direction:K,dropIndicatorRender:J,loadData:A,filterTreeNode:P,titleRender:U,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 p.createElement(_Y.Provider,{value:ue},p.createElement("div",{className:Te(y,b,Q,ee(ee(ee({},"".concat(y,"-show-line"),E),"".concat(y,"-focused"),o),"".concat(y,"-active-focused"),c!==null)),style:oe},p.createElement(j0t,Ke({ref:this.listRef,prefixCls:y,style:_,data:a,disabled:k,selectable:T,checkable:!!M,motion:B,dragging:l!==null,height:z,itemHeight:L,virtual:j,focusable:w,focused:o,tabIndex:C,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:te,onScroll:ae,scrollWidth:V},this.getTreeNodeRequiredProps(),ge))))}}],[{key:"getDerivedStateFromProps",value:function(i,o){var a=o.prevProps,s={prevProps:i};function l(C){return!a&&i.hasOwnProperty(C)||a&&a[C]!==i[C]}var c,u=o.fieldNames;if(l("fieldNames")&&(u=__(i.fieldNames),s.fieldNames=u),l("treeData")?c=i.treeData:l("children")&&(Yr(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),c=qwe(i.children)),c){s.treeData=c;var d=b2(c,{fieldNames:u});s.keyEntities=W(ee({},zv,a2e),d.keyEntities)}var f=s.keyEntities||o.keyEntities;if(l("expandedKeys")||a&&l("autoExpandParent"))s.expandedKeys=i.autoExpandParent||!a&&i.defaultExpandParent?VH(i.expandedKeys,f):i.expandedKeys;else if(!a&&i.defaultExpandAll){var h=W({},f);delete h[zv];var m=[];Object.keys(h).forEach(function(C){var T=h[C];T.children&&T.children.length&&m.push(T.key)}),s.expandedKeys=m}else!a&&i.defaultExpandedKeys&&(s.expandedKeys=i.autoExpandParent||i.defaultExpandParent?VH(i.defaultExpandedKeys,f):i.defaultExpandedKeys);if(s.expandedKeys||delete s.expandedKeys,c||s.expandedKeys){var g=GL(c||o.treeData,s.expandedKeys||o.expandedKeys,u);s.flattenNodes=g}if(i.selectable&&(l("selectedKeys")?s.selectedKeys=moe(i.selectedKeys,i):!a&&i.defaultSelectedKeys&&(s.selectedKeys=moe(i.defaultSelectedKeys,i))),i.checkable){var v;if(l("checkedKeys")?v=e$(i.checkedKeys)||{}:!a&&i.defaultCheckedKeys?v=e$(i.defaultCheckedKeys)||{}:c&&(v=e$(i.checkedKeys)||{checkedKeys:o.checkedKeys,halfCheckedKeys:o.halfCheckedKeys}),v){var y=v,b=y.checkedKeys,_=b===void 0?[]:b,E=y.halfCheckedKeys,w=E===void 0?[]:E;if(!i.checkStrictly){var S=au(_,!0,f);_=S.checkedKeys,w=S.halfCheckedKeys}s.checkedKeys=_,s.halfCheckedKeys=w}}return l("loadedKeys")&&(s.loadedKeys=i.loadedKeys),s}}]),n}(p.Component);ee(pD,"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:M0t,allowDrop:function(){return!0},expandAction:!1});ee(pD,"TreeNode",$T);const U0t=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}}}}}},z0t=new fr("ant-tree-node-fx-do-not-use",{"0%":{opacity:0},"100%":{opacity:1}}),V0t=(e,t)=>({[`.${e}-switcher-icon`]:{display:"inline-block",fontSize:10,verticalAlign:"baseline",svg:{transition:`transform ${t.motionDurationSlow}`}}}),G0t=(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:`${Ae(t.lineWidthBold)} solid ${t.colorPrimary}`,borderRadius:"50%",content:'""'}}}),W0t=(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({},gr(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({},Td(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:z0t,animationDuration:t.motionDurationSlow,animationPlayState:"running",animationFillMode:"forwards",content:'""',pointerEvents:"none",borderRadius:t.borderRadius}}},[r]:{display:"flex",alignItems:"flex-start",marginBottom:i,lineHeight:Ae(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({},V0t(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`},G0t(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:`${Ae(t.calc(o).div(2).equal())} !important`}})}},s2e=(e,t)=>{const n=`.${e}`,r=`${n}-treenode`,i=t.calc(t.paddingXS).div(2).equal(),o=Kn(t,{treeCls:n,treeNodeCls:r,treeNodePadding:i});return[W0t(e,o),U0t(o)]},l2e=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}},q0t=e=>{const{colorTextLightSolid:t,colorPrimary:n}=e;return Object.assign(Object.assign({},l2e(e)),{directoryNodeSelectedColor:t,directoryNodeSelectedBg:n})},Y0t=cr("Tree",(e,t)=>{let{prefixCls:n}=t;return[{[e.componentCls]:eD(`${n}-checkbox`,e)},s2e(n,e),n2(e)]},q0t),Eoe=4;function K0t(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+Eoe,[s]:0};switch(t){case-1:l.top=-3;break;case 1:l.bottom=-3;break;default:l.bottom=-3,l[a]=i+Eoe;break}return ce.createElement("div",{style:l,className:`${r}-drop-indicator`})}const c2e=e=>{const{prefixCls:t,switcherIcon:n,treeNodeProps:r,showLine:i,switcherLoadingIcon:o}=e,{isLeaf:a,expanded:s,loading:l}=r;if(l)return p.isValidElement(o)?o:p.createElement(xd,{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 f=typeof c=="function"?c(r):c,h=`${t}-switcher-line-custom-icon`;return p.isValidElement(f)?_o(f,{className:Te(f.props.className||"",h)}):f}return c?p.createElement(Mxe,{className:`${t}-switcher-line-icon`}):p.createElement("span",{className:`${t}-switcher-leaf-line`})}const u=`${t}-switcher-icon`,d=typeof n=="function"?n(r):n;return p.isValidElement(d)?_o(d,{className:Te(d.props.className||"",u)}):d!==void 0?d:i?s?p.createElement(Sgt,{className:`${t}-switcher-line-icon`}):p.createElement(Dgt,{className:`${t}-switcher-line-icon`}):p.createElement(fmt,{className:u})},u2e=ce.forwardRef((e,t)=>{var n;const{getPrefixCls:r,direction:i,virtual:o,tree:a}=ce.useContext(Qt),{prefixCls:s,className:l,showIcon:c=!1,showLine:u,switcherIcon:d,switcherLoadingIcon:f,blockNode:h=!1,children:m,checkable:g=!1,selectable:v=!0,draggable:y,motion:b,style:_}=e,E=r("tree",s),w=r(),S=b??Object.assign(Object.assign({},p_(w)),{motionAppear:!1}),C=Object.assign(Object.assign({},e),{checkable:g,selectable:v,showIcon:c,motion:S,blockNode:h,showLine:!!u,dropIndicatorRender:K0t}),[T,x,O]=Y0t(E),[,N]=Go(),I=N.paddingXS/2+(((n=N.Tree)===null||n===void 0?void 0:n.titleHeight)||N.controlHeightSM),M=ce.useMemo(()=>{if(!y)return!1;let k={};switch(typeof y){case"function":k.nodeDraggable=y;break;case"object":k=Object.assign({},y);break}return k.icon!==!1&&(k.icon=k.icon||ce.createElement(Jmt,null)),k},[y]),F=k=>ce.createElement(c2e,{prefixCls:E,switcherIcon:d,switcherLoadingIcon:f,treeNodeProps:k,showLine:u});return T(ce.createElement(pD,Object.assign({itemHeight:I,ref:t,virtual:o},C,{style:Object.assign(Object.assign({},a==null?void 0:a.style),_),prefixCls:E,className:Te({[`${E}-icon-hide`]:!c,[`${E}-block-node`]:h,[`${E}-unselectable`]:!v,[`${E}-rtl`]:i==="rtl"},a==null?void 0:a.className,l,x,O),direction:i,checkable:g&&ce.createElement("span",{className:`${E}-checkbox-inner`}),selectable:v,switcherIcon:F,draggable:M}),m))}),Coe=0,t$=1,woe=2;function EY(e,t,n){const{key:r,children:i}=n;function o(a){const s=a[r],l=a[i];t(s,a)!==!1&&EY(l||[],t,n)}e.forEach(o)}function Q0t(e){let{treeData:t,expandedKeys:n,startKey:r,endKey:i,fieldNames:o}=e;const a=[];let s=Coe;if(r&&r===i)return[r];if(!r||!i)return[];function l(c){return c===r||c===i}return EY(t,c=>{if(s===woe)return!1;if(l(c)){if(a.push(c),s===Coe)s=t$;else if(s===t$)return s=woe,!1}else s===t$&&a.push(c);return n.includes(c)},__(o)),a}function n$(e,t,n){const r=nt(t),i=[];return EY(e,(o,a)=>{const s=r.indexOf(o);return s!==-1&&(i.push(a),r.splice(s,1)),!!r.length},__(n)),i}var Toe=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 X0t(e){const{isLeaf:t,expanded:n}=e;return t?p.createElement(Mxe,null):n?p.createElement(Gmt,null):p.createElement(kxe,null)}function xoe(e){let{treeData:t,children:n}=e;return t||qwe(n)}const Z0t=(e,t)=>{var{defaultExpandAll:n,defaultExpandParent:r,defaultExpandedKeys:i}=e,o=Toe(e,["defaultExpandAll","defaultExpandParent","defaultExpandedKeys"]);const a=p.useRef(null),s=p.useRef(null),l=()=>{const{keyEntities:T}=b2(xoe(o));let x;return n?x=Object.keys(T):r?x=VH(o.expandedKeys||i||[],T):x=o.expandedKeys||i||[],x},[c,u]=p.useState(o.selectedKeys||o.defaultSelectedKeys||[]),[d,f]=p.useState(()=>l());p.useEffect(()=>{"selectedKeys"in o&&u(o.selectedKeys)},[o.selectedKeys]),p.useEffect(()=>{"expandedKeys"in o&&f(o.expandedKeys)},[o.expandedKeys]);const h=(T,x)=>{var O;return"expandedKeys"in o||f(T),(O=o.onExpand)===null||O===void 0?void 0:O.call(o,T,x)},m=(T,x)=>{var O;const{multiple:N,fieldNames:I}=o,{node:M,nativeEvent:F}=x,{key:k=""}=M,B=xoe(o),A=Object.assign(Object.assign({},x),{selected:!0}),P=(F==null?void 0:F.ctrlKey)||(F==null?void 0:F.metaKey),z=F==null?void 0:F.shiftKey;let L;N&&P?(L=T,a.current=k,s.current=L,A.selectedNodes=n$(B,L,I)):N&&z?(L=Array.from(new Set([].concat(nt(s.current||[]),nt(Q0t({treeData:B,expandedKeys:d,startKey:k,endKey:a.current,fieldNames:I}))))),A.selectedNodes=n$(B,L,I)):(L=[k],a.current=k,s.current=L,A.selectedNodes=n$(B,L,I)),(O=o.onSelect)===null||O===void 0||O.call(o,L,A),"selectedKeys"in o||u(L)},{getPrefixCls:g,direction:v}=p.useContext(Qt),{prefixCls:y,className:b,showIcon:_=!0,expandAction:E="click"}=o,w=Toe(o,["prefixCls","className","showIcon","expandAction"]),S=g("tree",y),C=Te(`${S}-directory`,{[`${S}-directory-rtl`]:v==="rtl"},b);return p.createElement(u2e,Object.assign({icon:X0t,ref:t,blockNode:!0},w,{showIcon:_,expandAction:E,prefixCls:S,className:C,expandedKeys:d,selectedKeys:c,onSelect:m,onExpand:h}))},J0t=p.forwardRef(Z0t),CY=u2e;CY.DirectoryTree=J0t;CY.TreeNode=$T;const Ooe=e=>{const{value:t,filterSearch:n,tablePrefixCls:r,locale:i,onChange:o}=e;return n?p.createElement("div",{className:`${r}-filter-dropdown-search`},p.createElement(Ki,{prefix:p.createElement(D5,null),placeholder:i.filterSearchPlaceholder,onChange:o,value:t,htmlSize:1,className:`${r}-filter-dropdown-search-input`})):null},ebt=e=>{const{keyCode:t}=e;t===dt.ENTER&&e.stopPropagation()},tbt=p.forwardRef((e,t)=>p.createElement("div",{className:e.className,onClick:n=>n.stopPropagation(),onKeyDown:ebt,ref:t},e.children));function xy(e){let t=[];return(e||[]).forEach(n=>{let{value:r,children:i}=n;t.push(r),i&&(t=[].concat(nt(t),nt(xy(i))))}),t}function nbt(e){return e.some(t=>{let{children:n}=t;return n})}function d2e(e,t){return typeof t=="string"||typeof t=="number"?t==null?void 0:t.toString().toLowerCase().includes(e.trim().toLowerCase()):!1}function f2e(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:f2e({filters:s.children,prefixCls:n,filteredKeys:r,filterMultiple:i,searchValue:o,filterSearch:a})};const u=i?uh:qi,d={key:s.value!==void 0?c:l,label:p.createElement(p.Fragment,null,p.createElement(u,{checked:r.includes(c)}),p.createElement("span",null,s.text))};return o.trim()?typeof a=="function"?a(o,s)?d:null:d2e(o,s.text)?d:null:d})}function r$(e){return e||[]}const rbt=e=>{var t,n,r,i;const{tablePrefixCls:o,prefixCls:a,column:s,dropdownPrefixCls:l,columnKey:c,filterOnClose:u,filterMultiple:d,filterMode:f="menu",filterSearch:h=!1,filterState:m,triggerFilter:g,locale:v,children:y,getPopupContainer:b,rootClassName:_}=e,{filterResetToDefaultFilteredValue:E,defaultFilteredValue:w,filterDropdownProps:S={},filterDropdownOpen:C,filterDropdownVisible:T,onFilterDropdownVisibleChange:x,onFilterDropdownOpenChange:O}=s,[N,I]=p.useState(!1),M=!!(m&&(!((t=m.filteredKeys)===null||t===void 0)&&t.length||m.forceFiltered)),F=ye=>{var he;I(ye),(he=S.onOpenChange)===null||he===void 0||he.call(S,ye),O==null||O(ye),x==null||x(ye)},k=(i=(r=(n=S.open)!==null&&n!==void 0?n:C)!==null&&r!==void 0?r:T)!==null&&i!==void 0?i:N,B=m==null?void 0:m.filteredKeys,[A,P]=N0t(r$(B)),z=ye=>{let{selectedKeys:he}=ye;P(he)},L=(ye,he)=>{let{node:_e,checked:Oe}=he;z(d?{selectedKeys:ye}:{selectedKeys:Oe&&_e.key?[_e.key]:[]})};p.useEffect(()=>{N&&z({selectedKeys:r$(B)})},[B]);const[V,j]=p.useState([]),U=ye=>{j(ye)},[J,te]=p.useState(""),ae=ye=>{const{value:he}=ye.target;te(he)};p.useEffect(()=>{N||te("")},[N]);const K=ye=>{const he=ye!=null&&ye.length?ye:null;if(he===null&&(!m||!m.filteredKeys)||gu(he,m==null?void 0:m.filteredKeys,!0))return null;g({column:s,key:c,filteredKeys:he})},Q=()=>{F(!1),K(A())},oe=function(){let{confirm:ye,closeDropdown:he}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{confirm:!1,closeDropdown:!1};ye&&K([]),he&&F(!1),te(""),P(E?(w||[]).map(_e=>String(_e)):[])},ge=function(){let{closeDropdown:ye}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{closeDropdown:!0};ye&&F(!1),K(A())},fe=(ye,he)=>{he.source==="trigger"&&(ye&&B!==void 0&&P(r$(B)),F(ye),!ye&&!s.filterDropdown&&u&&Q())},ue=Te({[`${l}-menu-without-submenu`]:!nbt(s.filters||[])}),le=ye=>{if(ye.target.checked){const he=xy(s==null?void 0:s.filters).map(_e=>String(_e));P(he)}else P([])},ve=ye=>{let{filters:he}=ye;return(he||[]).map((_e,Oe)=>{const De=String(_e.value),Y={title:_e.text,key:_e.value!==void 0?De:String(Oe)};return _e.children&&(Y.children=ve({filters:_e.children})),Y})},ne=ye=>{var he;return Object.assign(Object.assign({},ye),{text:ye.title,value:ye.key,children:((he=ye.children)===null||he===void 0?void 0:he.map(_e=>ne(_e)))||[]})};let pe;const{direction:be,renderEmpty:Re}=p.useContext(Qt);if(typeof s.filterDropdown=="function")pe=s.filterDropdown({prefixCls:`${l}-custom`,setSelectedKeys:ye=>z({selectedKeys:ye}),selectedKeys:A(),confirm:ge,clearFilters:oe,filters:s.filters,visible:k,close:()=>{F(!1)}});else if(s.filterDropdown)pe=s.filterDropdown;else{const ye=A()||[],he=()=>{var Oe;const De=(Oe=Re==null?void 0:Re("Table.filter"))!==null&&Oe!==void 0?Oe:p.createElement(Dp,{image:Dp.PRESENTED_IMAGE_SIMPLE,description:v.filterEmptyText,styles:{image:{height:24}},style:{margin:0,padding:"16px 0"}});if((s.filters||[]).length===0)return De;if(f==="tree")return p.createElement(p.Fragment,null,p.createElement(Ooe,{filterSearch:h,value:J,onChange:ae,tablePrefixCls:o,locale:v}),p.createElement("div",{className:`${o}-filter-dropdown-tree`},d?p.createElement(uh,{checked:ye.length===xy(s.filters).length,indeterminate:ye.length>0&&ye.length<xy(s.filters).length,className:`${o}-filter-dropdown-checkall`,onChange:le},v.filterCheckall):null,p.createElement(CY,{checkable:!0,selectable:!1,blockNode:!0,multiple:d,checkStrictly:!d,className:`${l}-menu`,onCheck:L,checkedKeys:ye,selectedKeys:ye,showIcon:!1,treeData:ve({filters:s.filters}),autoExpandParent:!0,defaultExpandAll:!0,filterTreeNode:J.trim()?G=>typeof h=="function"?h(J,ne(G)):d2e(J,G.title):void 0})));const Y=f2e({filters:s.filters||[],filterSearch:h,prefixCls:a,filteredKeys:A(),filterMultiple:d,searchValue:J}),D=Y.every(G=>G===null);return p.createElement(p.Fragment,null,p.createElement(Ooe,{filterSearch:h,value:J,onChange:ae,tablePrefixCls:o,locale:v}),D?De:p.createElement(Bd,{selectable:!0,multiple:d,prefixCls:`${l}-menu`,className:ue,onSelect:z,onDeselect:z,selectedKeys:ye,getPopupContainer:b,openKeys:V,onOpenChange:U,items:Y}))},_e=()=>E?gu((w||[]).map(Oe=>String(Oe)),ye,!0):ye.length===0;pe=p.createElement(p.Fragment,null,he(),p.createElement("div",{className:`${a}-dropdown-btns`},p.createElement($n,{type:"link",size:"small",disabled:_e(),onClick:()=>oe()},v.filterReset),p.createElement($n,{type:"primary",size:"small",onClick:Q},v.filterConfirm)))}s.filterDropdown&&(pe=p.createElement(ACe,{selectable:void 0},pe)),pe=p.createElement(tbt,{className:`${a}-dropdown`},pe);const Ce=uY({trigger:["click"],placement:be==="rtl"?"bottomLeft":"bottomRight",children:(()=>{let ye;return typeof s.filterIcon=="function"?ye=s.filterIcon(M):s.filterIcon?ye=s.filterIcon:ye=p.createElement(Umt,null),p.createElement("span",{role:"button",tabIndex:-1,className:Te(`${a}-trigger`,{active:M}),onClick:he=>{he.stopPropagation()}},ye)})(),getPopupContainer:b},Object.assign(Object.assign({},S),{rootClassName:Te(_,S.rootClassName),open:k,onOpenChange:fe,dropdownRender:()=>typeof(S==null?void 0:S.dropdownRender)=="function"?S.dropdownRender(pe):pe}));return p.createElement("div",{className:`${a}-column`},p.createElement("span",{className:`${o}-column-title`},y),p.createElement(rD,Object.assign({},Ce)))},KH=(e,t,n)=>{let r=[];return(e||[]).forEach((i,o)=>{var a;const s=kS(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:gg(i,s),filteredKeys:l,forceFiltered:i.filtered})}else r.push({column:i,key:gg(i,s),filteredKeys:t&&i.defaultFilteredValue?i.defaultFilteredValue:void 0,forceFiltered:i.filtered});"children"in i&&(r=[].concat(nt(r),nt(KH(i.children,t,s))))}),r};function p2e(e,t,n,r,i,o,a,s,l){return n.map((c,u)=>{const d=kS(u,s),{filterOnClose:f=!0,filterMultiple:h=!0,filterMode:m,filterSearch:g}=c;let v=c;if(v.filters||v.filterDropdown){const y=gg(v,d),b=r.find(_=>{let{key:E}=_;return y===E});v=Object.assign(Object.assign({},v),{title:_=>p.createElement(rbt,{tablePrefixCls:e,prefixCls:`${e}-filter`,dropdownPrefixCls:t,column:v,columnKey:y,filterState:b,filterOnClose:f,filterMultiple:h,filterMode:m,filterSearch:g,triggerFilter:o,locale:i,getPopupContainer:a,rootClassName:l},fD(c.title,_))})}return"children"in v&&(v=Object.assign(Object.assign({},v),{children:p2e(e,t,v.children,r,i,o,a,d,l)})),v})}const Roe=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=xy(s);t[a]=c.filter(u=>i.includes(String(u)))}else t[a]=null}),t},QH=(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=xy(s),f=d.findIndex(m=>String(m)===String(u)),h=f!==-1?d[f]:u;return c[n]&&(c[n]=QH(c[n],t,n)),a(h,c)})):i},e),h2e=e=>e.flatMap(t=>"children"in t?[t].concat(nt(h2e(t.children||[]))):[t]),ibt=e=>{const{prefixCls:t,dropdownPrefixCls:n,mergedColumns:r,onFilterChange:i,getPopupContainer:o,locale:a,rootClassName:s}=e;Wf();const l=p.useMemo(()=>h2e(r||[]),[r]),[c,u]=p.useState(()=>KH(l,!0)),d=p.useMemo(()=>{const g=KH(l,!1);if(g.length===0)return g;let v=!0;if(g.forEach(y=>{let{filteredKeys:b}=y;b!==void 0&&(v=!1)}),v){const y=(l||[]).map((b,_)=>gg(b,kS(_)));return c.filter(b=>{let{key:_}=b;return y.includes(_)}).map(b=>{const _=l[y.findIndex(E=>E===b.key)];return Object.assign(Object.assign({},b),{column:Object.assign(Object.assign({},b.column),_),forceFiltered:_.filtered})})}return g},[l,c]),f=p.useMemo(()=>Roe(d),[d]),h=g=>{const v=d.filter(y=>{let{key:b}=y;return b!==g.key});v.push(g),u(v),i(Roe(v),v)};return[g=>p2e(t,n,g,d,a,h,o,void 0,s),d,f]},obt=(e,t,n)=>{const r=p.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 f=n(u,d);s.set(f,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 abt=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 m2e=10;function sbt(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 lbt(e,t,n){const r=n&&typeof n=="object"?n:{},{total:i=0}=r,o=abt(r,["total"]),[a,s]=p.useState(()=>({current:"defaultCurrent"in o?o.defaultCurrent:1,pageSize:"defaultPageSize"in o?o.defaultPageSize:m2e})),l=uY(a,o,{total:i>0?i:e}),c=Math.ceil((i||e)/l.pageSize);l.current>c&&(l.current=c||1);const u=(f,h)=>{s({current:f??1,pageSize:h||l.pageSize})},d=(f,h)=>{var m;n&&((m=n.onChange)===null||m===void 0||m.call(n,f,h)),u(f,h),t(f,h||(l==null?void 0:l.pageSize))};return n===!1?[{},()=>{}]:[Object.assign(Object.assign({},l),{onChange:d}),u]}const $A="ascend",i$="descend",rk=e=>typeof e.sorter=="object"&&typeof e.sorter.multiple=="number"?e.sorter.multiple:!1,Ioe=e=>typeof e=="function"?e:e&&typeof e=="object"&&e.compare?e.compare:!1,cbt=(e,t)=>t?e[e.indexOf(t)+1]:e[0],XH=(e,t,n)=>{let r=[];const i=(o,a)=>{r.push({column:o,key:gg(o,a),multiplePriority:rk(o),sortOrder:o.sortOrder})};return(e||[]).forEach((o,a)=>{const s=kS(a,n);o.children?("sortOrder"in o&&i(o,s),r=[].concat(nt(r),nt(XH(o.children,t,s)))):o.sorter&&("sortOrder"in o?i(o,s):t&&o.defaultSortOrder&&r.push({column:o,key:gg(o,s),multiplePriority:rk(o),sortOrder:o.defaultSortOrder}))}),r},g2e=(e,t,n,r,i,o,a,s)=>(t||[]).map((c,u)=>{const d=kS(u,s);let f=c;if(f.sorter){const h=f.sortDirections||i,m=f.showSorterTooltip===void 0?a:f.showSorterTooltip,g=gg(f,d),v=n.find(x=>{let{key:O}=x;return O===g}),y=v?v.sortOrder:null,b=cbt(h,y);let _;if(c.sortIcon)_=c.sortIcon({sortOrder:y});else{const x=h.includes($A)&&p.createElement(bmt,{className:Te(`${e}-column-sorter-up`,{active:y===$A})}),O=h.includes(i$)&&p.createElement(mmt,{className:Te(`${e}-column-sorter-down`,{active:y===i$})});_=p.createElement("span",{className:Te(`${e}-column-sorter`,{[`${e}-column-sorter-full`]:!!(x&&O)})},p.createElement("span",{className:`${e}-column-sorter-inner`,"aria-hidden":"true"},x,O))}const{cancelSort:E,triggerAsc:w,triggerDesc:S}=o||{};let C=E;b===i$?C=S:b===$A&&(C=w);const T=typeof m=="object"?Object.assign({title:C},m):{title:C};f=Object.assign(Object.assign({},f),{className:Te(f.className,{[`${e}-column-sort`]:y}),title:x=>{const O=`${e}-column-sorters`,N=p.createElement("span",{className:`${e}-column-title`},fD(c.title,x)),I=p.createElement("div",{className:O},N,_);return m?typeof m!="boolean"&&(m==null?void 0:m.target)==="sorter-icon"?p.createElement("div",{className:`${O} ${e}-column-sorters-tooltip-target-sorter`},N,p.createElement(Ia,Object.assign({},T),_)):p.createElement(Ia,Object.assign({},T),I):I},onHeaderCell:x=>{var O;const N=((O=c.onHeaderCell)===null||O===void 0?void 0:O.call(c,x))||{},I=N.onClick,M=N.onKeyDown;N.onClick=B=>{r({column:c,key:g,sortOrder:b,multiplePriority:rk(c)}),I==null||I(B)},N.onKeyDown=B=>{B.keyCode===dt.ENTER&&(r({column:c,key:g,sortOrder:b,multiplePriority:rk(c)}),M==null||M(B))};const F=A0t(c.title,{}),k=F==null?void 0:F.toString();return y?N["aria-sort"]=y==="ascend"?"ascending":"descending":N["aria-label"]=k||"",N.className=Te(N.className,`${e}-column-has-sorters`),N.tabIndex=0,c.ellipsis&&(N.title=(F??"").toString()),N}})}return"children"in f&&(f=Object.assign(Object.assign({},f),{children:g2e(e,f.children,n,r,i,o,a,d)})),f}),Aoe=e=>{const{column:t,sortOrder:n}=e;return{column:t,order:n,field:t.dataIndex,columnKey:t.key}},Noe=e=>{const t=e.filter(n=>{let{sortOrder:r}=n;return r}).map(Aoe);if(t.length===0&&e.length){const n=e.length-1;return Object.assign(Object.assign({},Aoe(e[n])),{column:void 0,order:void 0,field:void 0,columnKey:void 0})}return t.length<=1?t[0]||{}:t},ZH=(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 Ioe(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,f=Ioe(u);if(f&&d){const h=f(a,s,d);if(h!==0)return d===$A?h:-h}}return 0}).map(a=>{const s=a[n];return s?Object.assign(Object.assign({},a),{[n]:ZH(s,t,n)}):a}):i},ubt=e=>{const{prefixCls:t,mergedColumns:n,sortDirections:r,tableLocale:i,showSorterTooltip:o,onSorterChange:a}=e,[s,l]=p.useState(XH(n,!0)),c=(g,v)=>{const y=[];return g.forEach((b,_)=>{const E=kS(_,v);if(y.push(gg(b,E)),Array.isArray(b.children)){const w=c(b.children,E);y.push.apply(y,nt(w))}}),y},u=p.useMemo(()=>{let g=!0;const v=XH(n,!1);if(!v.length){const E=c(n);return s.filter(w=>{let{key:S}=w;return E.includes(S)})}const y=[];function b(E){g?y.push(E):y.push(Object.assign(Object.assign({},E),{sortOrder:null}))}let _=null;return v.forEach(E=>{_===null?(b(E),E.sortOrder&&(E.multiplePriority===!1?g=!1:_=!0)):(_&&E.multiplePriority!==!1||(g=!1),b(E))}),y},[n,s]),d=p.useMemo(()=>{var g,v;const y=u.map(b=>{let{column:_,sortOrder:E}=b;return{column:_,order:E}});return{sortColumns:y,sortColumn:(g=y[0])===null||g===void 0?void 0:g.column,sortOrder:(v=y[0])===null||v===void 0?void 0:v.order}},[u]),f=g=>{let v;g.multiplePriority===!1||!u.length||u[0].multiplePriority===!1?v=[g]:v=[].concat(nt(u.filter(y=>{let{key:b}=y;return b!==g.key})),[g]),l(v),a(Noe(v),v)};return[g=>g2e(t,g,u,f,r,i,o),u,d,()=>Noe(u)]},v2e=(e,t)=>e.map(r=>{const i=Object.assign({},r);return i.title=fD(r.title,t),"children"in i&&(i.children=v2e(i.children,t)),i}),dbt=e=>[p.useCallback(n=>v2e(n,e),[e])],fbt=e2e((e,t)=>{const{_renderTimes:n}=e,{_renderTimes:r}=t;return n!==r}),pbt=n2e((e,t)=>{const{_renderTimes:n}=e,{_renderTimes:r}=t;return n!==r}),hbt=e=>{const{componentCls:t,lineWidth:n,lineType:r,tableBorderColor:i,tableHeaderBg:o,tablePaddingVertical:a,tablePaddingHorizontal:s,calc:l}=e,c=`${Ae(n)} ${r} ${i}`,u=(d,f,h)=>({[`&${t}-${d}`]:{[`> ${t}-container`]:{[`> ${t}-content, > ${t}-body`]:{"\n > table > tbody > tr > th,\n > table > tbody > tr > td\n ":{[`> ${t}-expanded-row-fixed`]:{margin:`${Ae(l(f).mul(-1).equal())}
${Ae(l(l(h).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:`${Ae(l(a).mul(-1).equal())} ${Ae(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 ${Ae(n)} 0 ${Ae(n)} ${o}`}},[`${t}-bordered ${t}-cell-scrollbar`]:{borderInlineEnd:c}}}},mbt=e=>{const{componentCls:t}=e;return{[`${t}-wrapper`]:{[`${t}-cell-ellipsis`]:Object.assign(Object.assign({},kl),{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"}})}}},gbt=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}}}}},vbt=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:f,tableExpandedRowBg:h,paddingXXS:m,expandIconMarginTop:g,expandIconSize:v,expandIconHalfInner:y,expandIconScale:b,calc:_}=e,E=`${Ae(i)} ${a} ${s}`,w=_(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({},KW(e)),{position:"relative",float:"left",width:v,height:v,color:"inherit",lineHeight:Ae(v),background:l,border:E,borderRadius:u,transform:`scale(${b})`,"&:focus, &:hover, &:active":{borderColor:"currentcolor"},"&::before, &::after":{position:"absolute",background:"currentcolor",transition:`transform ${r} ease-out`,content:'""'},"&::before":{top:y,insetInlineEnd:w,insetInlineStart:w,height:i},"&::after":{top:w,bottom:w,insetInlineStart:y,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:g,marginInlineEnd:o},[`tr${t}-expanded-row`]:{"&, &:hover":{"> th, > td":{background:h}},[`${n}-descriptions-view`]:{display:"flex",table:{flex:"auto",width:"100%"}}},[`${t}-expanded-row-fixed`]:{position:"relative",margin:`${Ae(_(d).mul(-1).equal())} ${Ae(_(f).mul(-1).equal())}`,padding:`${Ae(d)} ${Ae(f)}`}}}},bbt=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:f,fontSizeSM:h,tablePaddingHorizontal:m,borderRadius:g,motionDurationSlow:v,colorTextDescription:y,colorPrimary:b,tableHeaderFilterActiveBg:_,colorTextDisabled:E,tableFilterDropdownBg:w,tableFilterDropdownHeight:S,controlItemBgHover:C,controlItemBgActive:T,boxShadowSecondary:x,filterDropdownMenuBg:O,calc:N}=e,I=`${n}-dropdown`,M=`${t}-filter-dropdown`,F=`${n}-tree`,k=`${Ae(c)} ${u} ${d}`;return[{[`${t}-wrapper`]:{[`${t}-filter-column`]:{display:"flex",justifyContent:"space-between"},[`${t}-filter-trigger`]:{position:"relative",display:"flex",alignItems:"center",marginBlock:N(a).mul(-1).equal(),marginInline:`${Ae(a)} ${Ae(N(m).div(2).mul(-1).equal())}`,padding:`0 ${Ae(a)}`,color:f,fontSize:h,borderRadius:g,cursor:"pointer",transition:`all ${v}`,"&:hover":{color:y,background:_},"&.active":{color:b}}}},{[`${n}-dropdown`]:{[M]:Object.assign(Object.assign({},gr(e)),{minWidth:i,backgroundColor:w,borderRadius:g,boxShadow:x,overflow:"hidden",[`${I}-menu`]:{maxHeight:S,overflowX:"hidden",border:0,boxShadow:"none",borderRadius:"unset",backgroundColor:O,"&:empty::after":{display:"block",padding:`${Ae(s)} 0`,color:E,fontSize:h,textAlign:"center",content:'"Not Found"'}},[`${M}-tree`]:{paddingBlock:`${Ae(s)} 0`,paddingInline:s,[F]:{padding:0},[`${F}-treenode ${F}-node-content-wrapper:hover`]:{backgroundColor:C},[`${F}-treenode-checkbox-checked ${F}-node-content-wrapper`]:{"&, &:hover":{backgroundColor:T}}},[`${M}-search`]:{padding:s,borderBottom:k,"&-input":{input:{minWidth:o},[r]:{color:E}}},[`${M}-checkall`]:{width:"100%",marginBottom:a,marginInlineStart:a},[`${M}-btns`]:{display:"flex",justifyContent:"space-between",padding:`${Ae(N(s).sub(c).equal())} ${Ae(s)}`,overflow:"hidden",borderTop:k}})}},{[`${n}-dropdown ${M}, ${M}-submenu`]:{[`${n}-checkbox-wrapper + span`]:{paddingInlineStart:s,color:l},"> ul":{maxHeight:"calc(100vh - 130px)",overflowX:"hidden",overflowY:"auto"}}}]},ybt=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"}}}}},_bt=e=>{const{componentCls:t,antCls:n,margin:r}=e;return{[`${t}-wrapper`]:{[`${t}-pagination${n}-pagination`]:{margin:`${Ae(r)} 0`},[`${t}-pagination`]:{display:"flex",flexWrap:"wrap",rowGap:e.paddingXS,"> *":{flex:"none"},"&-left":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-right":{justifyContent:"flex-end"}}}}},Sbt=e=>{const{componentCls:t,tableRadius:n}=e;return{[`${t}-wrapper`]:{[t]:{[`${t}-title, ${t}-header`]:{borderRadius:`${Ae(n)} ${Ae(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 ${Ae(n)} ${Ae(n)}`}}}}},Ebt=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"}}}}},Cbt=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:f,tablePaddingHorizontal:h,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:Ae(m(h).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:f}}}}}},wbt=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:`${Ae(a)} ${Ae(s)}`},[`${t}-filter-trigger`]:{marginInlineEnd:Ae(r(s).div(2).mul(-1).equal())},[`${t}-expanded-row-fixed`]:{margin:`${Ae(r(a).mul(-1).equal())} ${Ae(r(s).mul(-1).equal())}`},[`${t}-tbody`]:{[`${t}-wrapper:only-child ${t}`]:{marginBlock:Ae(r(a).mul(-1).equal()),marginInline:`${Ae(r(n).sub(s).equal())} ${Ae(r(s).mul(-1).equal())}`}},[`${t}-selection-extra`]:{paddingInlineStart:Ae(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))}},Tbt=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}}}},xbt=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,f=`${Ae(c)} ${u} ${d}`;return{[`${t}-wrapper`]:{[`${t}-sticky`]:{"&-holder":{position:"sticky",zIndex:s,background:e.colorBgContainer},"&-scroll":{position:"sticky",bottom:0,height:`${Ae(o)} !important`,zIndex:s,display:"flex",alignItems:"center",background:a,borderTop:f,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}}}}}}},Moe=e=>{const{componentCls:t,lineWidth:n,tableBorderColor:r,calc:i}=e,o=`${Ae(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 ${Ae(i(n).mul(-1).equal())} 0 ${r}`}}}},Obt=e=>{const{componentCls:t,motionDurationMid:n,lineWidth:r,lineType:i,tableBorderColor:o,calc:a}=e,s=`${Ae(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) - ${Ae(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}}}}}},Rbt=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:f,motionDurationMid:h,tableHeaderBg:m,tableHeaderCellSplitColor:g,tableFooterTextColor:v,tableFooterBg:y,calc:b}=e,_=`${Ae(a)} ${s} ${l}`;return{[`${t}-wrapper`]:Object.assign(Object.assign({clear:"both",maxWidth:"100%"},wd()),{[t]:Object.assign(Object.assign({},gr(e)),{fontSize:c,background:u,borderRadius:`${Ae(d)} ${Ae(d)} 0 0`,scrollbarColor:`${e.tableScrollThumbBg} ${e.tableScrollBg}`}),table:{width:"100%",textAlign:"start",borderRadius:`${Ae(d)} ${Ae(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:`${Ae(r)} ${Ae(i)}`,overflowWrap:"break-word"},[`${t}-title`]:{padding:`${Ae(r)} ${Ae(i)}`},[`${t}-thead`]:{"\n > tr > th,\n > tr > td\n ":{position:"relative",color:f,fontWeight:n,textAlign:"start",background:m,borderBottom:_,transition:`background ${h} 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:g,transform:"translateY(-50%)",transition:`background-color ${h}`,content:'""'}},"> tr:not(:last-child) > th[colspan]":{borderBottom:0}},[`${t}-tbody`]:{"> tr":{"> th, > td":{transition:`background ${h}, border-color ${h}`,borderBottom:_,[`
> ${t}-wrapper:only-child,
> ${t}-expanded-row-fixed > ${t}-wrapper:only-child
`]:{[t]:{marginBlock:Ae(b(r).mul(-1).equal()),marginInline:`${Ae(b(o).sub(i).equal())}
${Ae(b(i).mul(-1).equal())}`,[`${t}-tbody > tr:last-child > td`]:{borderBottom:0,"&:first-child, &:last-child":{borderRadius:0}}}}},"> th":{position:"relative",color:f,fontWeight:n,textAlign:"start",background:m,borderBottom:_,transition:`background ${h} ease`}}},[`${t}-footer`]:{padding:`${Ae(r)} ${Ae(i)}`,color:v,background:y}})}},Ibt=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:f,controlHeight:h,colorTextPlaceholder:m,fontSize:g,fontSizeSM:v,lineHeight:y,lineWidth:b,colorIcon:_,colorIconHover:E,opacityLoading:w,controlInteractiveSize:S}=e,C=new ir(i).onBackground(n).toHexString(),T=new ir(o).onBackground(n).toHexString(),x=new ir(t).onBackground(n).toHexString(),O=new ir(_),N=new ir(E),I=S/2-b,M=I*2+b*3;return{headerBg:x,headerColor:r,headerSortActiveBg:C,headerSortHoverBg:T,bodySortBg:x,rowHoverBg:x,rowSelectedBg:a,rowSelectedHoverBg:s,rowExpandedBg:t,cellPaddingBlock:l,cellPaddingInline:l,cellPaddingBlockMD:c,cellPaddingInlineMD:u,cellPaddingBlockSM:u,cellPaddingInlineSM:u,borderColor:d,headerBorderRadius:f,footerBg:x,footerColor:r,cellFontSize:g,cellFontSizeMD:g,cellFontSizeSM:g,headerSplitColor:d,fixedHeaderSortActiveBg:C,headerFilterHoverBg:o,filterDropdownMenuBg:n,filterDropdownBg:n,expandIconBg:n,selectionColumnWidth:h,stickyScrollBarBg:m,stickyScrollBarBorderRadius:100,expandIconMarginTop:(g*y-b*3)/2-Math.ceil((v*1.4-b*3)/2),headerIconColor:O.clone().setA(O.a*w).toRgbString(),headerIconHoverColor:N.clone().setA(N.a*w).toRgbString(),expandIconHalfInner:I,expandIconSize:M,expandIconScale:S/M}},koe=2,Abt=cr("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:f,rowExpandedBg:h,cellPaddingBlock:m,cellPaddingInline:g,cellPaddingBlockMD:v,cellPaddingInlineMD:y,cellPaddingBlockSM:b,cellPaddingInlineSM:_,borderColor:E,footerBg:w,footerColor:S,headerBorderRadius:C,cellFontSize:T,cellFontSizeMD:x,cellFontSizeSM:O,headerSplitColor:N,fixedHeaderSortActiveBg:I,headerFilterHoverBg:M,filterDropdownBg:F,expandIconBg:k,selectionColumnWidth:B,stickyScrollBarBg:A,calc:P}=e,z=Kn(e,{tableFontSize:T,tableBg:r,tableRadius:C,tablePaddingVertical:m,tablePaddingHorizontal:g,tablePaddingVerticalMiddle:v,tablePaddingHorizontalMiddle:y,tablePaddingVerticalSmall:b,tablePaddingHorizontalSmall:_,tableBorderColor:E,tableHeaderTextColor:a,tableHeaderBg:o,tableFooterTextColor:S,tableFooterBg:w,tableHeaderCellSplitColor:N,tableHeaderSortBg:s,tableHeaderSortHoverBg:l,tableBodySortBg:c,tableFixedHeaderSortActiveBg:I,tableHeaderFilterActiveBg:M,tableFilterDropdownBg:F,tableRowHoverBg:u,tableSelectedRowBg:d,tableSelectedRowHoverBg:f,zIndexTableFixed:koe,zIndexTableSticky:P(koe).add(1).equal({unit:!1}),tableFontSizeMiddle:x,tableFontSizeSmall:O,tableSelectionColumnWidth:B,tableExpandIconBg:k,tableExpandColumnWidth:P(i).add(P(e.padding).mul(2)).equal(),tableExpandedRowBg:h,tableFilterDropdownWidth:120,tableFilterDropdownHeight:264,tableFilterDropdownSearchWidth:140,tableScrollThumbSize:8,tableScrollThumbBg:A,tableScrollThumbBgHover:t,tableScrollBg:n});return[Rbt(z),_bt(z),Moe(z),Tbt(z),bbt(z),hbt(z),Sbt(z),vbt(z),Moe(z),gbt(z),Cbt(z),ybt(z),xbt(z),mbt(z),wbt(z),Ebt(z),Obt(z)]},Ibt,{unitless:{expandIconScale:!0}}),Nbt=[],Mbt=(e,t)=>{var n,r;const{prefixCls:i,className:o,rootClassName:a,style:s,size:l,bordered:c,dropdownPrefixCls:u,dataSource:d,pagination:f,rowSelection:h,rowKey:m="key",rowClassName:g,columns:v,children:y,childrenColumnName:b,onChange:_,getPopupContainer:E,loading:w,expandIcon:S,expandable:C,expandedRowRender:T,expandIconColumnIndex:x,indentSize:O,scroll:N,sortDirections:I,locale:M,showSorterTooltip:F={target:"full-header"},virtual:k}=e;Wf();const B=p.useMemo(()=>v||bY(y),[v,y]),A=p.useMemo(()=>B.some(vt=>vt.responsive),[B]),P=$5(A),z=p.useMemo(()=>{const vt=new Set(Object.keys(P).filter(ht=>P[ht]));return B.filter(ht=>!ht.responsive||ht.responsive.some(kt=>vt.has(kt)))},[B,P]),L=ur(e,["className","style","columns"]),{locale:V=Ec,direction:j,table:U,renderEmpty:J,getPrefixCls:te,getPopupContainer:ae}=p.useContext(Qt),K=So(l),Q=Object.assign(Object.assign({},V.Table),M),oe=d||Nbt,ge=te("table",i),fe=te("dropdown",u),[,ue]=Go(),le=ui(ge),[ve,ne,pe]=Abt(ge,le),be=Object.assign(Object.assign({childrenColumnName:b,expandIconColumnIndex:x},C),{expandIcon:(n=C==null?void 0:C.expandIcon)!==null&&n!==void 0?n:(r=U==null?void 0:U.expandable)===null||r===void 0?void 0:r.expandIcon}),{childrenColumnName:Re="children"}=be,Se=p.useMemo(()=>oe.some(vt=>vt==null?void 0:vt[Re])?"nest":T||C!=null&&C.expandedRowRender?"row":null,[oe]),Ce={body:p.useRef(null)},ye=I0t(ge),he=p.useRef(null),_e=p.useRef(null);O0t(t,()=>Object.assign(Object.assign({},_e.current),{nativeElement:he.current}));const Oe=p.useMemo(()=>typeof m=="function"?m:vt=>vt==null?void 0:vt[m],[m]),[De]=obt(oe,Re,Oe),Y={},D=function(vt,ht){let kt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;var Et,Yt,ct,Rt;const Ht=Object.assign(Object.assign({},Y),vt);kt&&((Et=Y.resetPagination)===null||Et===void 0||Et.call(Y),!((Yt=Ht.pagination)===null||Yt===void 0)&&Yt.current&&(Ht.pagination.current=1),f&&((ct=f.onChange)===null||ct===void 0||ct.call(f,1,(Rt=Ht.pagination)===null||Rt===void 0?void 0:Rt.pageSize))),N&&N.scrollToFirstRowOnChange!==!1&&Ce.body.current&&PKe(0,{getContainer:()=>Ce.body.current}),_==null||_(Ht.pagination,Ht.filters,Ht.sorter,{currentDataSource:QH(ZH(oe,Ht.sorterStates,Re),Ht.filterStates,Re),action:ht})},G=(vt,ht)=>{D({sorter:vt,sorterStates:ht},"sort",!1)},[ie,me,se,Be]=ubt({prefixCls:ge,mergedColumns:z,onSorterChange:G,sortDirections:I||["ascend","descend"],tableLocale:Q,showSorterTooltip:F}),Ve=p.useMemo(()=>ZH(oe,me,Re),[oe,me]);Y.sorter=Be(),Y.sorterStates=me;const re=(vt,ht)=>{D({filters:vt,filterStates:ht},"filter",!0)},[Me,je,ke]=ibt({prefixCls:ge,locale:Q,dropdownPrefixCls:fe,mergedColumns:z,onFilterChange:re,getPopupContainer:E||ae,rootClassName:Te(a,le)}),Ge=QH(Ve,je,Re);Y.filters=ke,Y.filterStates=je;const Ue=p.useMemo(()=>{const vt={};return Object.keys(ke).forEach(ht=>{ke[ht]!==null&&(vt[ht]=ke[ht])}),Object.assign(Object.assign({},se),{filters:vt})},[se,ke]),[qe]=dbt(Ue),At=(vt,ht)=>{D({pagination:Object.assign(Object.assign({},Y.pagination),{current:vt,pageSize:ht})},"paginate")},[at,pt]=lbt(Ge.length,At,f);Y.pagination=f===!1?{}:sbt(at,f),Y.resetPagination=pt;const Ct=p.useMemo(()=>{if(f===!1||!at.pageSize)return Ge;const{current:vt=1,total:ht,pageSize:kt=m2e}=at;return Ge.length<ht?Ge.length>kt?Ge.slice((vt-1)*kt,vt*kt):Ge:Ge.slice((vt-1)*kt,vt*kt)},[!!f,Ge,at==null?void 0:at.current,at==null?void 0:at.pageSize,at==null?void 0:at.total]),[bt,Vt]=T0t({prefixCls:ge,data:Ge,pageData:Ct,getRowKey:Oe,getRecordByKey:De,expandType:Se,childrenColumnName:Re,locale:Q,getPopupContainer:E||ae},h),Tt=(vt,ht,kt)=>{let Et;return typeof g=="function"?Et=Te(g(vt,ht,kt)):Et=Te(g),Te({[`${ge}-row-selected`]:Vt.has(Oe(vt,ht))},Et)};be.__PARENT_RENDER_ICON__=be.expandIcon,be.expandIcon=be.expandIcon||S||R0t(Q),Se==="nest"&&be.expandIconColumnIndex===void 0?be.expandIconColumnIndex=h?1:0:be.expandIconColumnIndex>0&&h&&(be.expandIconColumnIndex-=1),typeof be.indentSize!="number"&&(be.indentSize=typeof O=="number"?O:15);const Ot=p.useCallback(vt=>qe(bt(Me(ie(vt)))),[ie,Me,bt]);let Ut,ze;if(f!==!1&&(at!=null&&at.total)){let vt;at.size?vt=at.size:vt=K==="small"||K==="middle"?"small":void 0;const ht=Yt=>p.createElement(cxe,Object.assign({},at,{className:Te(`${ge}-pagination ${ge}-pagination-${Yt}`,at.className),size:vt})),kt=j==="rtl"?"left":"right",{position:Et}=at;if(Et!==null&&Array.isArray(Et)){const Yt=Et.find(Ht=>Ht.includes("top")),ct=Et.find(Ht=>Ht.includes("bottom")),Rt=Et.every(Ht=>`${Ht}`=="none");!Yt&&!ct&&!Rt&&(ze=ht(kt)),Yt&&(Ut=ht(Yt.toLowerCase().replace("top",""))),ct&&(ze=ht(ct.toLowerCase().replace("bottom","")))}else ze=ht(kt)}let Ye;typeof w=="boolean"?Ye={spinning:w}:typeof w=="object"&&(Ye=Object.assign({spinning:!0},w));const He=Te(pe,le,`${ge}-wrapper`,U==null?void 0:U.className,{[`${ge}-wrapper-rtl`]:j==="rtl"},o,a,ne),Ze=Object.assign(Object.assign({},U==null?void 0:U.style),s),yt=typeof(M==null?void 0:M.emptyText)<"u"?M.emptyText:(J==null?void 0:J("Table"))||p.createElement(_S,{componentName:"Table"}),_t=k?pbt:fbt,Bt={},Nt=p.useMemo(()=>{const{fontSize:vt,lineHeight:ht,lineWidth:kt,padding:Et,paddingXS:Yt,paddingSM:ct}=ue,Rt=Math.floor(vt*ht);switch(K){case"middle":return ct*2+Rt+kt;case"small":return Yt*2+Rt+kt;default:return Et*2+Rt+kt}},[ue,K]);return k&&(Bt.listItemHeight=Nt),ve(p.createElement("div",{ref:he,className:He,style:Ze},p.createElement(Ac,Object.assign({spinning:!1},Ye),Ut,p.createElement(_t,Object.assign({},Bt,L,{ref:_e,columns:z,direction:j,expandable:be,prefixCls:ge,className:Te({[`${ge}-middle`]:K==="middle",[`${ge}-small`]:K==="small",[`${ge}-bordered`]:c,[`${ge}-empty`]:oe.length===0},pe,le,ne),data:Ct,rowKey:Oe,rowClassName:Tt,emptyText:yt,internalHooks:O2,internalRefs:Ce,transformColumns:Ot,getContainerWidth:ye})),ze)))},kbt=p.forwardRef(Mbt),Pbt=(e,t)=>{const n=p.useRef(0);return n.current+=1,p.createElement(kbt,Object.assign({},e,{ref:t,_renderTimes:n.current}))},Hd=p.forwardRef(Pbt);Hd.SELECTION_COLUMN=Jh;Hd.EXPAND_COLUMN=Ip;Hd.SELECTION_ALL=GH;Hd.SELECTION_INVERT=WH;Hd.SELECTION_NONE=qH;Hd.Column=m0t;Hd.ColumnGroup=g0t;Hd.Summary=zxe;const Dbt=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({},gr(e)),{display:"inline-block",height:"auto",marginInlineEnd:e.marginXS,paddingInline:a,fontSize:e.tagFontSize,lineHeight:e.tagLineHeight,whiteSpace:"nowrap",background:e.defaultBg,border:`${Ae(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}}},wY=e=>{const{lineWidth:t,fontSizeIcon:n,calc:r}=e,i=e.fontSizeSM;return Kn(e,{tagFontSize:i,tagLineHeight:Ae(r(e.lineHeightSM).mul(i).equal()),tagIconSize:r(n).sub(r(t).mul(2)).equal(),tagPaddingHorizontal:8,tagBorderlessBg:e.defaultBg})},TY=e=>({defaultBg:new ir(e.colorFillQuaternary).onBackground(e.colorBgContainer).toHexString(),defaultColor:e.colorText}),b2e=cr("Tag",e=>{const t=wY(e);return Dbt(t)},TY);var Lbt=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 $bt=p.forwardRef((e,t)=>{const{prefixCls:n,style:r,className:i,checked:o,onChange:a,onClick:s}=e,l=Lbt(e,["prefixCls","style","className","checked","onChange","onClick"]),{getPrefixCls:c,tag:u}=p.useContext(Qt),d=y=>{a==null||a(!o),s==null||s(y)},f=c("tag",n),[h,m,g]=b2e(f),v=Te(f,`${f}-checkable`,{[`${f}-checkable-checked`]:o},u==null?void 0:u.className,i,m,g);return h(p.createElement("span",Object.assign({},l,{ref:t,style:Object.assign(Object.assign({},r),u==null?void 0:u.style),className:v,onClick:d})))}),Fbt=e=>f5(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"}}}}),Bbt=hS(["Tag","preset"],e=>{const t=wY(e);return Fbt(t)},TY);function jbt(e){return typeof e!="string"?e:e.charAt(0).toUpperCase()+e.slice(1)}const kR=(e,t,n)=>{const r=jbt(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"}}}},Hbt=hS(["Tag","status"],e=>{const t=wY(e);return[kR(t,"success","Success"),kR(t,"processing","Info"),kR(t,"error","Error"),kR(t,"warning","Warning")]},TY);var Ubt=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 zbt=p.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,f=Ubt(e,["prefixCls","className","rootClassName","style","children","icon","color","onClose","bordered","visible"]),{getPrefixCls:h,direction:m,tag:g}=p.useContext(Qt),[v,y]=p.useState(!0),b=ur(f,["closeIcon","closable"]);p.useEffect(()=>{d!==void 0&&y(d)},[d]);const _=j5(l),E=urt(l),w=_||E,S=Object.assign(Object.assign({backgroundColor:l&&!w?l:void 0},g==null?void 0:g.style),o),C=h("tag",n),[T,x,O]=b2e(C),N=Te(C,g==null?void 0:g.className,{[`${C}-${l}`]:w,[`${C}-has-color`]:l&&!w,[`${C}-hidden`]:!v,[`${C}-rtl`]:m==="rtl",[`${C}-borderless`]:!u},r,i,x,O),I=P=>{P.stopPropagation(),c==null||c(P),!P.defaultPrevented&&y(!1)},[,M]=mq(m_(e),m_(g),{closable:!1,closeIconRender:P=>{const z=p.createElement("span",{className:`${C}-close-icon`,onClick:I},P);return XW(P,z,L=>({onClick:V=>{var j;(j=L==null?void 0:L.onClick)===null||j===void 0||j.call(L,V),I(V)},className:Te(L==null?void 0:L.className,`${C}-close-icon`)}))}}),F=typeof f.onClick=="function"||a&&a.type==="a",k=s||null,B=k?p.createElement(p.Fragment,null,k,a&&p.createElement("span",null,a)):a,A=p.createElement("span",Object.assign({},b,{ref:t,className:N,style:S}),B,M,_&&p.createElement(Bbt,{key:"preset",prefixCls:C}),E&&p.createElement(Hbt,{key:"status",prefixCls:C}));return T(F?p.createElement(t2,{component:"Tag"},A):A)}),PS=zbt;PS.CheckableTag=$bt;const Vbt=e=>{const t=e!=null&&e.algorithm?Lv(e.algorithm):Lv(Zx),n=Object.assign(Object.assign({},f_),e==null?void 0:e.token);return BW(n,{override:e==null?void 0:e.token},t,YW)};function Gbt(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 Wbt=(e,t)=>{const n=t??Zx(e),r=n.fontSizeSM,i=n.controlHeight-4;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},n),Gbt(t??e)),F_e(r)),{controlHeight:i}),$_e(Object.assign(Object.assign({},n),{controlHeight:i})))},Fc=(e,t)=>new ir(e).setA(t).toRgbString(),ib=(e,t)=>new ir(e).lighten(t).toHexString(),qbt=e=>{const t=fg(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]}},Ybt=(e,t)=>{const n=e||"#000",r=t||"#fff";return{colorBgBase:n,colorTextBase:r,colorText:Fc(r,.85),colorTextSecondary:Fc(r,.65),colorTextTertiary:Fc(r,.45),colorTextQuaternary:Fc(r,.25),colorFill:Fc(r,.18),colorFillSecondary:Fc(r,.12),colorFillTertiary:Fc(r,.08),colorFillQuaternary:Fc(r,.04),colorBgSolid:Fc(r,.95),colorBgSolidHover:Fc(r,1),colorBgSolidActive:Fc(r,.9),colorBgElevated:ib(n,12),colorBgContainer:ib(n,8),colorBgLayout:ib(n,0),colorBgSpotlight:ib(n,26),colorBgBlur:Fc(r,.04),colorBorder:ib(n,26),colorBorderSecondary:ib(n,19)}},Kbt=(e,t)=>{const n=Object.keys(VW).map(i=>{const o=fg(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??Zx(e);return Object.assign(Object.assign(Object.assign({},r),n),L_e(e,{generateColorPalettes:qbt,generateNeutralColorPalettes:Ybt}))};function Qbt(){const[e,t,n]=Go();return{theme:e,token:t,hashId:n}}const Es={defaultSeed:IT.token,useToken:Qbt,defaultAlgorithm:Zx,darkAlgorithm:Kbt,compactAlgorithm:Wbt,getDesignToken:Vbt,defaultConfig:IT,_internalContext:GW};var Xbt=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:Zbt,RangePicker:Jbt}=yu,eyt=p.forwardRef((e,t)=>p.createElement(Jbt,Object.assign({},e,{picker:"time",mode:void 0,ref:t}))),Vv=p.forwardRef((e,t)=>{var{addon:n,renderExtraFooter:r,variant:i,bordered:o}=e,a=Xbt(e,["addon","renderExtraFooter","variant","bordered"]);const[s]=Th("timePicker",i,o),l=p.useMemo(()=>{if(r)return r;if(n)return n},[n,r]);return p.createElement(Zbt,Object.assign({},a,{mode:void 0,ref:t,renderExtraFooter:l,variant:s}))}),y2e=Ig(Vv,"popupAlign",void 0,"picker");Vv._InternalPanelDoNotUseOrYouWillBeFired=y2e;Vv.RangePicker=eyt;Vv._InternalPanelDoNotUseOrYouWillBeFired=y2e;const tyt=function(e){var t=p.useRef({valueLabels:new Map});return p.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),W(W({},o),{},{label:l})});return t.current.valueLabels=r,[i]},[e])};var nyt=function(t,n,r,i){return p.useMemo(function(){var o=function(h){return h.map(function(m){var g=m.value;return g})},a=o(t),s=o(n),l=a.filter(function(f){return!i[f]}),c=a,u=s;if(r){var d=au(a,!0,i);c=d.checkedKeys,u=d.halfCheckedKeys}return[Array.from(new Set([].concat(nt(l),nt(c)))),u]},[t,n,r,i])},ryt=function(t){return Array.isArray(t)?t:t!==void 0?[t]:[]},iyt=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"}},JH=function(t){return!t||t.disabled||t.disableCheckbox||t.checkable===!1},oyt=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},Poe=function(t){return t==null};const ayt=function(e,t){return p.useMemo(function(){var n=b2(e,{fieldNames:t,initWrapper:function(i){return W(W({},i),{},{valueEntities:new Map})},processEntity:function(i,o){var a=i.node[t.value];o.valueEntities.set(a,i)}});return n},[e,t])};var xY=function(){return null},syt=["children","value"];function _2e(e){return Mo(e).map(function(t){if(!p.isValidElement(t)||!t.type)return null;var n=t,r=n.key,i=n.props,o=i.children,a=i.value,s=Dt(i,syt),l=W({key:r,value:a},s),c=_2e(o);return c.length&&(l.children=c),l}).filter(function(t){return t})}function eU(e){if(!e)return e;var t=W({},e);return"props"in t||Object.defineProperty(t,"props",{get:function(){return Yr(!1,"New `rc-tree-select` not support return node instance as argument anymore. Please consider to remove `props` access."),t}}),t}function lyt(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",f=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return u.map(function(h,m){var g="".concat(d,"-").concat(m),v=h[o.value],y=n.includes(v),b=c(h[o.children]||[],g,y),_=p.createElement(xY,h,b.map(function(w){return w.node}));if(t===v&&(a=_),y){var E={pos:g,node:_,children:b};return f||s.push(E),E}return null}).filter(function(h){return h})}s||(s=[],c(r),s.sort(function(u,d){var f=u.node.props.value,h=d.node.props.value,m=n.indexOf(f),g=n.indexOf(h);return m-g}))}Object.defineProperty(e,"triggerNode",{get:function(){return Yr(!1,"`triggerNode` is deprecated. Please consider decoupling data with node."),l(),a}}),Object.defineProperty(e,"allCheckedNodes",{get:function(){return Yr(!1,"`allCheckedNodes` is deprecated. Please consider decoupling data with node."),l(),i?s:s.map(function(u){var d=u.node;return d})}})}var cyt=function(t,n,r){var i=r.fieldNames,o=r.treeNodeFilterProp,a=r.filterTreeNode,s=i.children;return p.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 f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return d.reduce(function(h,m){var g=m[s],v=f||l(n,eU(m)),y=u(g||[],v);return(v||y.length)&&h.push(W(W({},m),{},ee({isLeaf:void 0},s,y))),h},[])};return c(t)},[t,n,s,o,a])};function Doe(e){var t=p.useRef();t.current=e;var n=p.useCallback(function(){return t.current.apply(t,arguments)},[]);return n}function uyt(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=W(W({},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 dyt(e,t,n){return p.useMemo(function(){if(e){if(n){var r=W({id:"id",pId:"pId",rootPId:null},Gt(n)==="object"?n:{});return uyt(e,r)}return e}return _2e(t)},[t,n,e])}var S2e=p.createContext(null),E2e=p.createContext(null),fyt={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},pyt=function(t,n){var r=gq(),i=r.prefixCls,o=r.multiple,a=r.searchValue,s=r.toggleOpen,l=r.open,c=r.notFoundContent,u=p.useContext(E2e),d=u.virtual,f=u.listHeight,h=u.listItemHeight,m=u.listItemScrollOffset,g=u.treeData,v=u.fieldNames,y=u.onSelect,b=u.dropdownMatchSelectWidth,_=u.treeExpandAction,E=u.treeTitleRender,w=u.onPopupScroll,S=u.leftMaxCount,C=u.leafCountOnly,T=u.valueEntities,x=p.useContext(S2e),O=x.checkable,N=x.checkedKeys,I=x.halfCheckedKeys,M=x.treeExpandedKeys,F=x.treeDefaultExpandAll,k=x.treeDefaultExpandedKeys,B=x.onTreeExpand,A=x.treeIcon,P=x.showTreeIcon,z=x.switcherIcon,L=x.treeLine,V=x.treeNodeFilterProp,j=x.loadData,U=x.treeLoadedKeys,J=x.treeMotion,te=x.onTreeLoad,ae=x.keyEntities,K=p.useRef(),Q=ah(function(){return g},[l,g],function(Ue,qe){return qe[0]&&Ue[1]!==qe[1]}),oe=p.useMemo(function(){return O?{checked:N,halfChecked:I}:null},[O,N,I]);p.useEffect(function(){if(l&&!o&&N.length){var Ue;(Ue=K.current)===null||Ue===void 0||Ue.scrollTo({key:N[0]})}},[l]);var ge=function(qe){qe.preventDefault()},fe=function(qe,At){var at=At.node;O&&JH(at)||(y(at.key,{selected:!N.includes(at.key)}),o||s(!1))},ue=p.useState(k),le=Ie(ue,2),ve=le[0],ne=le[1],pe=p.useState(null),be=Ie(pe,2),Re=be[0],Se=be[1],Ce=p.useMemo(function(){return M?nt(M):a?Re:ve},[ve,Re,M,a]),ye=function(qe){ne(qe),Se(qe),B&&B(qe)},he=String(a).toLowerCase(),_e=function(qe){return he?String(qe[V]).toLowerCase().includes(he):!1};p.useEffect(function(){a&&Se(oyt(g,v))},[a]);var Oe=p.useState(function(){return new Map}),De=Ie(Oe,2),Y=De[0],D=De[1];p.useEffect(function(){S&&D(new Map)},[S]);function G(Ue){var qe=Ue[v.value];if(!Y.has(qe)){var At=T.get(qe),at=(At.children||[]).length===0;if(at)Y.set(qe,!1);else{var pt=At.children.filter(function(bt){return!bt.node.disabled&&!bt.node.disableCheckbox&&!N.includes(bt.node[v.value])}),Ct=pt.length;Y.set(qe,Ct>S)}}return Y.get(qe)}var ie=Yn(function(Ue){var qe=Ue[v.value];return N.includes(qe)||S===null?!1:S<=0?!0:C&&S?G(Ue):!1}),me=function Ue(qe){var At=Sf(qe),at;try{for(At.s();!(at=At.n()).done;){var pt=at.value;if(!(pt.disabled||pt.selectable===!1)){if(a){if(_e(pt))return pt}else return pt;if(pt[v.children]){var Ct=Ue(pt[v.children]);if(Ct)return Ct}}}}catch(bt){At.e(bt)}finally{At.f()}return null},se=p.useState(null),Be=Ie(se,2),Ve=Be[0],re=Be[1],Me=ae[Ve];p.useEffect(function(){if(l){var Ue=null,qe=function(){var at=me(Q);return at?at[v.value]:null};!o&&N.length&&!a?Ue=N[0]:Ue=qe(),re(Ue)}},[l,a]),p.useImperativeHandle(n,function(){var Ue;return{scrollTo:(Ue=K.current)===null||Ue===void 0?void 0:Ue.scrollTo,onKeyDown:function(At){var at,pt=At.which;switch(pt){case dt.UP:case dt.DOWN:case dt.LEFT:case dt.RIGHT:(at=K.current)===null||at===void 0||at.onKeyDown(At);break;case dt.ENTER:{if(Me){var Ct=ie(Me.node),bt=(Me==null?void 0:Me.node)||{},Vt=bt.selectable,Tt=bt.value,Ot=bt.disabled;Vt!==!1&&!Ot&&!Ct&&fe(null,{node:{key:Ve},selected:!N.includes(Tt)})}break}case dt.ESC:s(!1)}},onKeyUp:function(){}}});var je=ah(function(){return!a},[a,M||ve],function(Ue,qe){var At=Ie(Ue,1),at=At[0],pt=Ie(qe,2),Ct=pt[0],bt=pt[1];return at!==Ct&&!!(Ct||bt)}),ke=je?j:null;if(Q.length===0)return p.createElement("div",{role:"listbox",className:"".concat(i,"-empty"),onMouseDown:ge},c);var Ge={fieldNames:v};return U&&(Ge.loadedKeys=U),Ce&&(Ge.expandedKeys=Ce),p.createElement("div",{onMouseDown:ge},Me&&l&&p.createElement("span",{style:fyt,"aria-live":"assertive"},Me.node.value),p.createElement(r2e.Provider,{value:{nodeDisabled:ie}},p.createElement(pD,Ke({ref:K,focusable:!1,prefixCls:"".concat(i,"-tree"),treeData:Q,height:f,itemHeight:h,itemScrollOffset:m,virtual:d!==!1&&b!==!1,multiple:o,icon:A,showIcon:P,switcherIcon:z,showLine:L,loadData:ke,motion:J,activeKey:Ve,checkable:O,checkStrictly:!0,checkedKeys:oe,selectedKeys:O?[]:N,defaultExpandAll:F,titleRender:E},Ge,{onActiveChange:re,onSelect:fe,onCheck:fe,onExpand:ye,onLoad:te,filterTreeNode:_e,expandAction:_,onScroll:w}))))},hyt=p.forwardRef(pyt),OY="SHOW_ALL",RY="SHOW_PARENT",hD="SHOW_CHILD";function Loe(e,t,n,r){var i=new Set(e);return t===hD?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 JH(l)||i.has(l[r.value])})}):t===RY?e.filter(function(o){var a=n[o],s=a?a.parent:null;return!s||JH(s.node)||!i.has(s.key)}):e}var myt=["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 gyt(e){return!e||Gt(e)!=="object"}var vyt=p.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,f=e.onSearch,h=e.autoClearSearchValue,m=h===void 0?!0:h,g=e.filterTreeNode,v=e.treeNodeFilterProp,y=v===void 0?"value":v,b=e.showCheckedStrategy,_=e.treeNodeLabelProp,E=e.multiple,w=e.treeCheckable,S=e.treeCheckStrictly,C=e.labelInValue,T=e.maxCount,x=e.fieldNames,O=e.treeDataSimpleMode,N=e.treeData,I=e.children,M=e.loadData,F=e.treeLoadedKeys,k=e.onTreeLoad,B=e.treeDefaultExpandAll,A=e.treeExpandedKeys,P=e.treeDefaultExpandedKeys,z=e.onTreeExpand,L=e.treeExpandAction,V=e.virtual,j=e.listHeight,U=j===void 0?200:j,J=e.listItemHeight,te=J===void 0?20:J,ae=e.listItemScrollOffset,K=ae===void 0?0:ae,Q=e.onDropdownVisibleChange,oe=e.dropdownMatchSelectWidth,ge=oe===void 0?!0:oe,fe=e.treeLine,ue=e.treeIcon,le=e.showTreeIcon,ve=e.switcherIcon,ne=e.treeMotion,pe=e.treeTitleRender,be=e.onPopupScroll,Re=Dt(e,myt),Se=Sq(n),Ce=w&&!S,ye=w||S,he=S||C,_e=ye||E,Oe=Pn(a,{value:o}),De=Ie(Oe,2),Y=De[0],D=De[1],G=p.useMemo(function(){return w?b||hD:OY},[b,w]),ie=p.useMemo(function(){return iyt(x)},[JSON.stringify(x)]),me=Pn("",{value:u!==void 0?u:d,postState:function(wt){return wt||""}}),se=Ie(me,2),Be=se[0],Ve=se[1],re=function(wt){Ve(wt),f==null||f(wt)},Me=dyt(N,I,O),je=ayt(Me,ie),ke=je.keyEntities,Ge=je.valueEntities,Ue=p.useCallback(function(Ht){var wt=[],St=[];return Ht.forEach(function(jt){Ge.has(jt)?St.push(jt):wt.push(jt)}),{missingRawValues:wt,existRawValues:St}},[Ge]),qe=cyt(Me,Be,{fieldNames:ie,treeNodeFilterProp:y,filterTreeNode:g}),At=p.useCallback(function(Ht){if(Ht){if(_)return Ht[_];for(var wt=ie._title,St=0;St<wt.length;St+=1){var jt=Ht[wt[St]];if(jt!==void 0)return jt}}},[ie,_]),at=p.useCallback(function(Ht){var wt=ryt(Ht);return wt.map(function(St){return gyt(St)?{value:St}:St})},[]),pt=p.useCallback(function(Ht){var wt=at(Ht);return wt.map(function(St){var jt=St.label,Pe=St.value,Pt=St.halfChecked,rt,Mt=Ge.get(Pe);if(Mt){var It;jt=pe?pe(Mt.node):(It=jt)!==null&&It!==void 0?It:At(Mt.node),rt=Mt.node.disabled}else if(jt===void 0){var xn=at(Y).find(function(Hn){return Hn.value===Pe});jt=xn.label}return{label:jt,value:Pe,halfChecked:Pt,disabled:rt}})},[Ge,At,at,Y]),Ct=p.useMemo(function(){return at(Y===null?[]:Y)},[at,Y]),bt=p.useMemo(function(){var Ht=[],wt=[];return Ct.forEach(function(St){St.halfChecked?wt.push(St):Ht.push(St)}),[Ht,wt]},[Ct]),Vt=Ie(bt,2),Tt=Vt[0],Ot=Vt[1],Ut=p.useMemo(function(){return Tt.map(function(Ht){return Ht.value})},[Tt]),ze=nyt(Tt,Ot,Ce,ke),Ye=Ie(ze,2),He=Ye[0],Ze=Ye[1],yt=p.useMemo(function(){var Ht=Loe(He,G,ke,ie),wt=Ht.map(function(Pt){var rt,Mt;return(rt=(Mt=ke[Pt])===null||Mt===void 0||(Mt=Mt.node)===null||Mt===void 0?void 0:Mt[ie.value])!==null&&rt!==void 0?rt:Pt}),St=wt.map(function(Pt){var rt=Tt.find(function(It){return It.value===Pt}),Mt=C?rt==null?void 0:rt.label:pe==null?void 0:pe(rt);return{value:Pt,label:Mt}}),jt=pt(St),Pe=jt[0];return!_e&&Pe&&Poe(Pe.value)&&Poe(Pe.label)?[]:jt.map(function(Pt){var rt;return W(W({},Pt),{},{label:(rt=Pt.label)!==null&&rt!==void 0?rt:Pt.value})})},[ie,_e,He,Tt,pt,G,ke]),_t=tyt(yt),Bt=Ie(_t,1),Nt=Bt[0],vt=p.useMemo(function(){return _e&&(G==="SHOW_CHILD"||S||!w)?T:null},[T,_e,S,G,w]),ht=Doe(function(Ht,wt,St){var jt=Loe(Ht,G,ke,ie);if(!(vt&&jt.length>vt)){var Pe=pt(Ht);if(D(Pe),m&&Ve(""),s){var Pt=Ht;Ce&&(Pt=jt.map(function($e){var et=Ge.get($e);return et?et.node[ie.value]:$e}));var rt=wt||{triggerValue:void 0,selected:void 0},Mt=rt.triggerValue,It=rt.selected,xn=Pt;if(S){var Hn=Ot.filter(function($e){return!Pt.includes($e.value)});xn=[].concat(nt(xn),nt(Hn))}var R=pt(xn),$={preValue:Tt,triggerValue:Mt},Z=!0;(S||St==="selection"&&!It)&&(Z=!1),lyt($,Mt,Ht,Me,Z,ie),ye?$.checked=It:$.selected=It;var xe=he?R:R.map(function($e){return $e.value});s(_e?xe:xe[0],he?null:R.map(function($e){return $e.label}),$)}}}),kt=p.useCallback(function(Ht,wt){var St,jt=wt.selected,Pe=wt.source,Pt=ke[Ht],rt=Pt==null?void 0:Pt.node,Mt=(St=rt==null?void 0:rt[ie.value])!==null&&St!==void 0?St:Ht;if(!_e)ht([Mt],{selected:!0,triggerValue:Mt},"option");else{var It=jt?[].concat(nt(Ut),[Mt]):He.filter(function(et){return et!==Mt});if(Ce){var xn=Ue(It),Hn=xn.missingRawValues,R=xn.existRawValues,$=R.map(function(et){return Ge.get(et).key}),Z;if(jt){var xe=au($,!0,ke);Z=xe.checkedKeys}else{var $e=au($,{checked:!1,halfCheckedKeys:Ze},ke);Z=$e.checkedKeys}It=[].concat(nt(Hn),nt(Z.map(function(et){return ke[et].node[ie.value]})))}ht(It,{selected:jt,triggerValue:Mt},Pe||"option")}jt||!_e?l==null||l(Mt,eU(rt)):c==null||c(Mt,eU(rt))},[Ue,Ge,ke,ie,_e,Ut,ht,Ce,l,c,He,Ze,T]),Et=p.useCallback(function(Ht){if(Q){var wt={};Object.defineProperty(wt,"documentClickClose",{get:function(){return Yr(!1,"Second param of `onDropdownVisibleChange` has been removed."),!1}}),Q(Ht,wt)}},[Q]),Yt=Doe(function(Ht,wt){var St=Ht.map(function(jt){return jt.value});if(wt.type==="clear"){ht(St,{},"selection");return}wt.values.length&&kt(wt.values[0].value,{selected:!1,source:"selection"})}),ct=p.useMemo(function(){return{virtual:V,dropdownMatchSelectWidth:ge,listHeight:U,listItemHeight:te,listItemScrollOffset:K,treeData:qe,fieldNames:ie,onSelect:kt,treeExpandAction:L,treeTitleRender:pe,onPopupScroll:be,leftMaxCount:T===void 0?null:T-Nt.length,leafCountOnly:G==="SHOW_CHILD"&&!S&&!!w,valueEntities:Ge}},[V,ge,U,te,K,qe,ie,kt,L,pe,be,T,Nt.length,G,S,w,Ge]),Rt=p.useMemo(function(){return{checkable:ye,loadData:M,treeLoadedKeys:F,onTreeLoad:k,checkedKeys:He,halfCheckedKeys:Ze,treeDefaultExpandAll:B,treeExpandedKeys:A,treeDefaultExpandedKeys:P,onTreeExpand:z,treeIcon:ue,treeMotion:ne,showTreeIcon:le,switcherIcon:ve,treeLine:fe,treeNodeFilterProp:y,keyEntities:ke}},[ye,M,F,k,He,Ze,B,A,P,z,ue,ne,le,ve,fe,y,ke]);return p.createElement(E2e.Provider,{value:ct},p.createElement(S2e.Provider,{value:Rt},p.createElement(bq,Ke({ref:t},Re,{id:Se,prefixCls:i,mode:_e?"multiple":void 0,displayValues:Nt,onDisplayValuesChange:Yt,searchValue:Be,onSearch:re,OptionList:hyt,emptyOptions:!Me.length,onDropdownVisibleChange:Et,dropdownMatchSelectWidth:ge}))))}),R2=vyt;R2.TreeNode=xY;R2.SHOW_ALL=OY;R2.SHOW_PARENT=RY;R2.SHOW_CHILD=hD;const byt=e=>{const{componentCls:t,treePrefixCls:n,colorBgElevated:r}=e,i=`.${n}`;return[{[`${t}-dropdown`]:[{padding:`${Ae(e.paddingXS)} ${Ae(e.calc(e.paddingXS).div(2).equal())}`},s2e(n,Kn(e,{colorBgContainer:r})),{[i]:{borderRadius:0,[`${i}-list-holder-inner`]:{alignItems:"stretch",[`${i}-treenode`]:{[`${i}-node-content-wrapper`]:{flex:"auto"}}}}},eD(`${n}-checkbox`,e),{"&-rtl":{direction:"rtl",[`${i}-switcher${i}-switcher_close`]:{[`${i}-switcher-icon svg`]:{transform:"rotate(90deg)"}}}}]}]};function yyt(e,t,n){return cr("TreeSelect",r=>{const i=Kn(r,{treePrefixCls:t});return[byt(i)]},l2e)(e,n)}var _yt=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 Syt=(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:f,placement:h,notFoundContent:m,switcherIcon:g,treeLine:v,getPopupContainer:y,popupClassName:b,dropdownClassName:_,treeIcon:E=!1,transitionName:w,choiceTransitionName:S="",status:C,treeExpandAction:T,builtinPlacements:x,dropdownMatchSelectWidth:O,popupMatchSelectWidth:N,allowClear:I,variant:M,dropdownStyle:F,tagRender:k,maxCount:B,showCheckedStrategy:A,treeCheckStrictly:P}=e,z=_yt(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:L,getPrefixCls:V,renderEmpty:j,direction:U,virtual:J,popupMatchSelectWidth:te,popupOverflow:ae}=p.useContext(Qt),[,K]=Go(),Q=f??(K==null?void 0:K.controlHeightSM)+(K==null?void 0:K.paddingXXS),oe=V(),ge=V("select",r),fe=V("select-tree",r),ue=V("tree-select",r),{compactSize:le,compactItemClassnames:ve}=Fd(ge,U),ne=ui(ge),pe=ui(ue),[be,Re,Se]=wq(ge,ne),[Ce]=yyt(ue,fe,pe),[ye,he]=Th("treeSelect",M,a),_e=Te(b||_,`${ue}-dropdown`,{[`${ue}-dropdown-rtl`]:U==="rtl"},l,Se,ne,pe,Re),Oe=!!(c||u),De=p.useMemo(()=>{if(!(B&&(A==="SHOW_ALL"&&!P||A==="SHOW_PARENT")))return B},[B,A,P]),Y=Tq(e.suffixIcon,e.showArrow),D=(n=N??O)!==null&&n!==void 0?n:te,{status:G,hasFeedback:ie,isFormItemInput:me,feedbackIcon:se}=p.useContext(ia),Be=wh(G,C),{suffixIcon:Ve,removeIcon:re,clearIcon:Me}=L5(Object.assign(Object.assign({},z),{multiple:Oe,showSuffixIcon:Y,hasFeedback:ie,feedbackIcon:se,prefixCls:ge,componentName:"TreeSelect"})),je=I===!0?{clearIcon:Me}:I;let ke;m!==void 0?ke=m:ke=(j==null?void 0:j("Select"))||p.createElement(_S,{componentName:"Select"});const Ge=ur(z,["suffixIcon","removeIcon","clearIcon","itemIcon","switcherIcon"]),Ue=p.useMemo(()=>h!==void 0?h:U==="rtl"?"bottomRight":"bottomLeft",[h,U]),qe=So(Tt=>{var Ot;return(Ot=i??le)!==null&&Ot!==void 0?Ot:Tt}),At=p.useContext(Vo),at=o??At,pt=Te(!r&&ue,{[`${ge}-lg`]:qe==="large",[`${ge}-sm`]:qe==="small",[`${ge}-rtl`]:U==="rtl",[`${ge}-${ye}`]:he,[`${ge}-in-form-item`]:me},Id(ge,Be,ie),ve,s,l,Se,ne,pe,Re),Ct=Tt=>p.createElement(c2e,{prefixCls:fe,switcherIcon:g,treeNodeProps:Tt,showLine:v}),[bt]=Ou("SelectLike",F==null?void 0:F.zIndex),Vt=p.createElement(R2,Object.assign({virtual:J,disabled:at},Ge,{dropdownMatchSelectWidth:D,builtinPlacements:Cq(x,ae),ref:t,prefixCls:ge,className:pt,listHeight:d,listItemHeight:Q,treeCheckable:c&&p.createElement("span",{className:`${ge}-tree-checkbox-inner`}),treeLine:!!v,suffixIcon:Ve,multiple:Oe,placement:Ue,removeIcon:re,allowClear:je,switcherIcon:Ct,showTreeIcon:E,notFoundContent:ke,getPopupContainer:y||L,treeMotion:null,dropdownClassName:_e,dropdownStyle:Object.assign(Object.assign({},F),{zIndex:bt}),choiceTransitionName:Va(oe,"",S),transitionName:Va(oe,"slide-up",w),treeExpandAction:T,tagRender:Oe?k:void 0,maxCount:De,showCheckedStrategy:A,treeCheckStrictly:P}));return be(Ce(Vt))},Eyt=p.forwardRef(Syt),x0=Eyt,Cyt=Ig(x0,"dropdownAlign",e=>ur(e,["visible"]));x0.TreeNode=xY;x0.SHOW_ALL=OY;x0.SHOW_PARENT=RY;x0.SHOW_CHILD=hD;x0._InternalPanelDoNotUseOrYouWillBeFired=Cyt;const wyt=(e,t,n,r)=>{const{titleMarginBottom:i,fontWeightStrong:o}=r;return{marginBottom:i,color:n,fontWeight:o,fontSize:e,lineHeight:t}},Tyt=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}
`]=wyt(e[`fontSizeHeading${r}`],e[`lineHeightHeading${r}`],e.colorTextHeading,e)}),n},xyt=e=>{const{componentCls:t}=e;return{"a&, a":Object.assign(Object.assign({},KW(e)),{userSelect:"text",[`&[disabled], &${t}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed","&:active, &:hover":{color:e.colorTextDisabled},"&:active":{pointerEvents:"none"}}})}},Oyt=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:OT[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}}),Ryt=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 - ${Ae(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"}}}},Iyt=e=>({[`${e.componentCls}-copy-success`]:{"\n &,\n &:hover,\n &:focus":{color:e.colorSuccess}},[`${e.componentCls}-copy-icon-only`]:{marginInlineStart:0}}),Ayt=()=>({"\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"}}),Nyt=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"}},Tyt(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}}}),Oyt(e)),xyt(e)),{[`
${t}-expand,
${t}-collapse,
${t}-edit,
${t}-copy
`]:Object.assign(Object.assign({},KW(e)),{marginInlineStart:e.marginXXS})}),Ryt(e)),Iyt(e)),Ayt()),{"&-rtl":{direction:"rtl"}})}},Myt=()=>({titleMarginTop:"1.2em",titleMarginBottom:"0.5em"}),C2e=cr("Typography",e=>[Nyt(e)],Myt),kyt=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:f,enterIcon:h=p.createElement(Pmt,null)}=e,m=p.useRef(null),g=p.useRef(!1),v=p.useRef(null),[y,b]=p.useState(l);p.useEffect(()=>{b(l)},[l]),p.useEffect(()=>{var F;if(!((F=m.current)===null||F===void 0)&&F.resizableTextArea){const{textArea:k}=m.current.resizableTextArea;k.focus();const{length:B}=k.value;k.setSelectionRange(B,B)}},[]);const _=F=>{let{target:k}=F;b(k.value.replace(/[\n\r]/g,""))},E=()=>{g.current=!0},w=()=>{g.current=!1},S=F=>{let{keyCode:k}=F;g.current||(v.current=k)},C=()=>{c(y.trim())},T=F=>{let{keyCode:k,ctrlKey:B,altKey:A,metaKey:P,shiftKey:z}=F;v.current!==k||g.current||B||A||P||z||(k===dt.ENTER?(C(),d==null||d()):k===dt.ESC&&u())},x=()=>{C()},[O,N,I]=C2e(t),M=Te(t,`${t}-edit-content`,{[`${t}-rtl`]:o==="rtl",[`${t}-${f}`]:!!f},r,N,I);return O(p.createElement("div",{className:M,style:i},p.createElement(STe,{ref:m,maxLength:a,value:y,onChange:_,onKeyDown:S,onKeyUp:T,onCompositionStart:E,onCompositionEnd:w,onBlur:x,"aria-label":n,rows:1,autoSize:s}),h!==null?_o(h,{className:`${t}-edit-content-confirm`}):null))};var Pyt=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()}},Dyt=Pyt,$oe={"text/plain":"Text","text/html":"Url",default:"Text"},Lyt="Copy to clipboard: #{key}, Enter";function $yt(e){var t=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return e.replace(/#{\s*key\s*}/g,t)}function Fyt(e,t){var n,r,i,o,a,s,l=!1;t||(t={}),n=t.debug||!1;try{i=Dyt(),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=$oe[t.format]||$oe.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=$yt("message"in t?t.message:Lyt),window.prompt(r,e)}}finally{a&&(typeof a.removeRange=="function"?a.removeRange(o):a.removeAllRanges()),s&&document.body.removeChild(s),i()}return l}var Byt=Fyt;const jyt=di(Byt);var Hyt=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 Uyt=e=>{let{copyConfig:t,children:n}=e;const[r,i]=p.useState(!1),[o,a]=p.useState(!1),s=p.useRef(null),l=()=>{s.current&&clearTimeout(s.current)},c={};t.format&&(c.format=t.format),p.useEffect(()=>l,[]);const u=Yn(d=>Hyt(void 0,void 0,void 0,function*(){var f;d==null||d.preventDefault(),d==null||d.stopPropagation(),a(!0);try{const h=typeof t.text=="function"?yield t.text():t.text;jyt(h||oht(n,!0).join("")||"",c),a(!1),i(!0),l(),s.current=setTimeout(()=>{i(!1)},3e3),(f=t.onCopy)===null||f===void 0||f.call(t,d)}catch(h){throw a(!1),h}}));return{copied:r,copyLoading:o,onClick:u}};function o$(e,t){return p.useMemo(()=>{const n=!!e;return[n,Object.assign(Object.assign({},t),n&&typeof e=="object"?e:null)]},[e])}const zyt=e=>{const t=p.useRef(void 0);return p.useEffect(()=>{t.current=e}),t.current},Vyt=(e,t,n)=>p.useMemo(()=>e===!0?{title:t??n}:p.isValidElement(e)?{title:e}:typeof e=="object"?Object.assign({title:t??n},e):{title:e},[e,t,n]);var Gyt=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 w2e=p.forwardRef((e,t)=>{const{prefixCls:n,component:r="article",className:i,rootClassName:o,setContentRef:a,children:s,direction:l,style:c}=e,u=Gyt(e,["prefixCls","component","className","rootClassName","setContentRef","children","direction","style"]),{getPrefixCls:d,direction:f,typography:h}=p.useContext(Qt),m=l??f,g=a?oa(t,a):t,v=d("typography",n),[y,b,_]=C2e(v),E=Te(v,h==null?void 0:h.className,{[`${v}-rtl`]:m==="rtl"},i,o,b,_),w=Object.assign(Object.assign({},h==null?void 0:h.style),c);return y(p.createElement(r,Object.assign({className:E,style:w,ref:g},u),s))});function Foe(e){return e===!1?[!1,!1]:Array.isArray(e)?e:[e]}function a$(e,t,n){return e===!0||e===void 0?t:e||n&&t}function Wyt(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 IY=e=>["string","number"].includes(typeof e),qyt=e=>{let{prefixCls:t,copied:n,locale:r,iconOnly:i,tooltips:o,icon:a,tabIndex:s,onCopy:l,loading:c}=e;const u=Foe(o),d=Foe(a),{copied:f,copy:h}=r??{},m=n?f:h,g=a$(u[n?1:0],m),v=typeof g=="string"?g:m;return p.createElement(Ia,{title:g},p.createElement("button",{type:"button",className:Te(`${t}-copy`,{[`${t}-copy-success`]:n,[`${t}-copy-icon-only`]:i}),onClick:l,"aria-label":v,tabIndex:s},n?a$(d[1],p.createElement(Yp,null),!0):a$(d[0],c?p.createElement(xd,null):p.createElement(Smt,null),!0)))},PR=p.forwardRef((e,t)=>{let{style:n,children:r}=e;const i=p.useRef(null);return p.useImperativeHandle(t,()=>({isExceed:()=>{const o=i.current;return o.scrollHeight>o.clientHeight},getHeight:()=>i.current.clientHeight})),p.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)}),Yyt=e=>e.reduce((t,n)=>t+(IY(n)?String(n).length:1),0);function Boe(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=IY(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 s$=0,l$=1,c$=2,u$=3,joe=4,DR={display:"-webkit-box",overflow:"hidden",WebkitBoxOrient:"vertical"};function Kyt(e){const{enableMeasure:t,width:n,text:r,children:i,rows:o,expanded:a,miscDeps:s,onEllipsis:l}=e,c=p.useMemo(()=>Mo(r),[r]),u=p.useMemo(()=>Yyt(c),[r]),d=p.useMemo(()=>i(c,!1),[r]),[f,h]=p.useState(null),m=p.useRef(null),g=p.useRef(null),v=p.useRef(null),y=p.useRef(null),b=p.useRef(null),[_,E]=p.useState(!1),[w,S]=p.useState(s$),[C,T]=p.useState(0),[x,O]=p.useState(null);sr(()=>{S(t&&n&&u?l$:s$)},[n,r,o,t,c]),sr(()=>{var F,k,B,A;if(w===l$){S(c$);const P=g.current&&getComputedStyle(g.current).whiteSpace;O(P)}else if(w===c$){const P=!!(!((F=v.current)===null||F===void 0)&&F.isExceed());S(P?u$:joe),h(P?[0,u]:null),E(P);const z=((k=v.current)===null||k===void 0?void 0:k.getHeight())||0,L=o===1?0:((B=y.current)===null||B===void 0?void 0:B.getHeight())||0,V=((A=b.current)===null||A===void 0?void 0:A.getHeight())||0,j=Math.max(z,L+V);T(j+1),l(P)}},[w]);const N=f?Math.ceil((f[0]+f[1])/2):0;sr(()=>{var F;const[k,B]=f||[0,0];if(k!==B){const P=(((F=m.current)===null||F===void 0?void 0:F.getHeight())||0)>C;let z=N;B-k===1&&(z=P?k:B),h(P?[k,z]:[z,B])}},[f,N]);const I=p.useMemo(()=>{if(!t)return i(c,!1);if(w!==u$||!f||f[0]!==f[1]){const F=i(c,!1);return[joe,s$].includes(w)?F:p.createElement("span",{style:Object.assign(Object.assign({},DR),{WebkitLineClamp:o})},F)}return i(a?c:Boe(c,f[0]),_)},[a,w,f,c].concat(nt(s))),M={width:n,margin:0,padding:0,whiteSpace:x==="nowrap"?"normal":"inherit"};return p.createElement(p.Fragment,null,I,w===c$&&p.createElement(p.Fragment,null,p.createElement(PR,{style:Object.assign(Object.assign(Object.assign({},M),DR),{WebkitLineClamp:o}),ref:v},d),p.createElement(PR,{style:Object.assign(Object.assign(Object.assign({},M),DR),{WebkitLineClamp:o-1}),ref:y},d),p.createElement(PR,{style:Object.assign(Object.assign(Object.assign({},M),DR),{WebkitLineClamp:1}),ref:b},i([],!0))),w===u$&&f&&f[0]!==f[1]&&p.createElement(PR,{style:Object.assign(Object.assign({},M),{top:400}),ref:m},i(Boe(c,N),!0)),w===l$&&p.createElement("span",{style:{whiteSpace:"inherit"},ref:g}))}const Qyt=e=>{let{enableEllipsis:t,isEllipsis:n,children:r,tooltipProps:i}=e;return!(i!=null&&i.title)||!t?r:p.createElement(Ia,Object.assign({open:n?void 0:!1},i),r)};var Xyt=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 Zyt(e,t){let{mark:n,code:r,underline:i,delete:o,strong:a,keyboard:s,italic:l}=e,c=t;function u(d,f){f&&(c=p.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 Jyt="...",mD=p.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:f,title:h}=e,m=Xyt(e,["prefixCls","className","style","type","disabled","children","ellipsis","editable","copyable","component","title"]),{getPrefixCls:g,direction:v}=p.useContext(Qt),[y]=ds("Text"),b=p.useRef(null),_=p.useRef(null),E=g("typography",r),w=ur(m,["mark","code","delete","underline","strong","keyboard","italic"]),[S,C]=o$(u),[T,x]=Pn(!1,{value:C.editing}),{triggerType:O=["icon"]}=C,N=je=>{var ke;je&&((ke=C.onStart)===null||ke===void 0||ke.call(C)),x(je)},I=zyt(T);sr(()=>{var je;!T&&I&&((je=_.current)===null||je===void 0||je.focus())},[T]);const M=je=>{je==null||je.preventDefault(),N(!0)},F=je=>{var ke;(ke=C.onChange)===null||ke===void 0||ke.call(C,je),N(!1)},k=()=>{var je;(je=C.onCancel)===null||je===void 0||je.call(C),N(!1)},[B,A]=o$(d),{copied:P,copyLoading:z,onClick:L}=Uyt({copyConfig:A,children:l}),[V,j]=p.useState(!1),[U,J]=p.useState(!1),[te,ae]=p.useState(!1),[K,Q]=p.useState(!1),[oe,ge]=p.useState(!0),[fe,ue]=o$(c,{expandable:!1,symbol:je=>je?y==null?void 0:y.collapse:y==null?void 0:y.expand}),[le,ve]=Pn(ue.defaultExpanded||!1,{value:ue.expanded}),ne=fe&&(!le||ue.expandable==="collapsible"),{rows:pe=1}=ue,be=p.useMemo(()=>ne&&(ue.suffix!==void 0||ue.onEllipsis||ue.expandable||S||B),[ne,ue,S,B]);sr(()=>{fe&&!be&&(j(bH("webkitLineClamp")),J(bH("textOverflow")))},[be,fe]);const[Re,Se]=p.useState(ne),Ce=p.useMemo(()=>be?!1:pe===1?U:V,[be,U,V]);sr(()=>{Se(Ce&&ne)},[Ce,ne]);const ye=ne&&(Re?K:te),he=ne&&pe===1&&Re,_e=ne&&pe>1&&Re,Oe=(je,ke)=>{var Ge;ve(ke.expanded),(Ge=ue.onExpand)===null||Ge===void 0||Ge.call(ue,je,ke)},[De,Y]=p.useState(0),D=je=>{let{offsetWidth:ke}=je;Y(ke)},G=je=>{var ke;ae(je),te!==je&&((ke=ue.onEllipsis)===null||ke===void 0||ke.call(ue,je))};p.useEffect(()=>{const je=b.current;if(fe&&Re&&je){const ke=Wyt(je);K!==ke&&Q(ke)}},[fe,Re,l,_e,oe,De]),p.useEffect(()=>{const je=b.current;if(typeof IntersectionObserver>"u"||!je||!Re||!ne)return;const ke=new IntersectionObserver(()=>{ge(!!je.offsetParent)});return ke.observe(je),()=>{ke.disconnect()}},[Re,ne]);const ie=Vyt(ue.tooltip,C.text,l),me=p.useMemo(()=>{if(!(!fe||Re))return[C.text,l,h,ie.title].find(IY)},[fe,Re,h,ie.title,ye]);if(T)return p.createElement(kyt,{value:(n=C.text)!==null&&n!==void 0?n:typeof l=="string"?l:"",onSave:F,onCancel:k,onEnd:C.onEnd,prefixCls:E,className:i,style:o,direction:v,component:f,maxLength:C.maxLength,autoSize:C.autoSize,enterIcon:C.enterIcon});const se=()=>{const{expandable:je,symbol:ke}=ue;return je?p.createElement("button",{type:"button",key:"expand",className:`${E}-${le?"collapse":"expand"}`,onClick:Ge=>Oe(Ge,{expanded:!le}),"aria-label":le?y.collapse:y==null?void 0:y.expand},typeof ke=="function"?ke(le):ke):null},Be=()=>{if(!S)return;const{icon:je,tooltip:ke,tabIndex:Ge}=C,Ue=Mo(ke)[0]||(y==null?void 0:y.edit),qe=typeof Ue=="string"?Ue:"";return O.includes("icon")?p.createElement(Ia,{key:"edit",title:ke===!1?"":Ue},p.createElement("button",{type:"button",ref:_,className:`${E}-edit`,onClick:M,"aria-label":qe,tabIndex:Ge},je||p.createElement(LT,{role:"button"}))):null},Ve=()=>B?p.createElement(qyt,Object.assign({key:"copy"},A,{prefixCls:E,copied:P,locale:y,onCopy:L,loading:z,iconOnly:l==null})):null,re=je=>[je&&se(),Be(),Ve()],Me=je=>[je&&!le&&p.createElement("span",{"aria-hidden":!0,key:"ellipsis"},Jyt),ue.suffix,re(je)];return p.createElement(Ta,{onResize:D,disabled:!ne},je=>p.createElement(Qyt,{tooltipProps:ie,enableEllipsis:ne,isEllipsis:ye},p.createElement(w2e,Object.assign({className:Te({[`${E}-${a}`]:a,[`${E}-disabled`]:s,[`${E}-ellipsis`]:fe,[`${E}-ellipsis-single-line`]:he,[`${E}-ellipsis-multiple-line`]:_e},i),prefixCls:r,style:Object.assign(Object.assign({},o),{WebkitLineClamp:_e?pe:void 0}),component:f,ref:oa(je,b,t),direction:v,onClick:O.includes("text")?M:void 0,"aria-label":me==null?void 0:me.toString(),title:h},w),p.createElement(Kyt,{enableMeasure:ne&&!Re,text:l,rows:pe,width:De,onEllipsis:G,expanded:le,miscDeps:[P,le,z,S,B,y]},(ke,Ge)=>Zyt(e,p.createElement(p.Fragment,null,ke.length>0&&Ge&&!le&&me?p.createElement("span",{key:"show-content","aria-hidden":!0},ke):ke,Me(Ge)))))))});var e_t=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 t_t=p.forwardRef((e,t)=>{var{ellipsis:n,rel:r}=e,i=e_t(e,["ellipsis","rel"]);const o=Object.assign(Object.assign({},i),{rel:r===void 0&&i.target==="_blank"?"noopener noreferrer":r});return delete o.navigate,p.createElement(mD,Object.assign({},o,{ref:t,ellipsis:!!n,component:"a"}))}),n_t=p.forwardRef((e,t)=>p.createElement(mD,Object.assign({ref:t},e,{component:"div"})));var r_t=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 i_t=(e,t)=>{var{ellipsis:n}=e,r=r_t(e,["ellipsis"]);const i=p.useMemo(()=>n&&typeof n=="object"?ur(n,["expandable","rows"]):n,[n]);return p.createElement(mD,Object.assign({ref:t},r,{ellipsis:i,component:"span"}))},o_t=p.forwardRef(i_t);var a_t=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 s_t=[1,2,3,4,5],l_t=p.forwardRef((e,t)=>{const{level:n=1}=e,r=a_t(e,["level"]),i=s_t.includes(n)?`h${n}`:"h1";return p.createElement(mD,Object.assign({ref:t},r,{component:i}))}),I2=w2e;I2.Text=o_t;I2.Link=t_t;I2.Title=l_t;I2.Paragraph=n_t;const d$=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)?(Yr(!1,"Upload takes an invalidate 'accept' type '".concat(s,"'.Skip for check.")),!0):!1})}return!0};function c_t(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 Hoe(e){var t=e.responseText||e.response;if(!t)return t;try{return JSON.parse(t)}catch{return t}}function u_t(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(c_t(e,t),Hoe(t)):e.onSuccess(Hoe(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 d_t=function(){var e=lo(pr().mark(function t(n,r){var i,o,a,s,l,c,u,d;return pr().wrap(function(h){for(;;)switch(h.prev=h.next){case 0:c=function(){return c=lo(pr().mark(function g(v){return pr().wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return b.abrupt("return",new Promise(function(_){v.file(function(E){r(E)?(v.fullPath&&!E.webkitRelativePath&&(Object.defineProperties(E,{webkitRelativePath:{writable:!0}}),E.webkitRelativePath=v.fullPath.replace(/^\//,""),Object.defineProperties(E,{webkitRelativePath:{writable:!1}})),_(E)):_(null)})}));case 1:case"end":return b.stop()}},g)})),c.apply(this,arguments)},l=function(g){return c.apply(this,arguments)},s=function(){return s=lo(pr().mark(function g(v){var y,b,_,E,w;return pr().wrap(function(C){for(;;)switch(C.prev=C.next){case 0:y=v.createReader(),b=[];case 2:return C.next=5,new Promise(function(T){y.readEntries(T,function(){return T([])})});case 5:if(_=C.sent,E=_.length,E){C.next=9;break}return C.abrupt("break",12);case 9:for(w=0;w<E;w++)b.push(_[w]);C.next=2;break;case 12:return C.abrupt("return",b);case 13:case"end":return C.stop()}},g)})),s.apply(this,arguments)},a=function(g){return s.apply(this,arguments)},i=[],o=[],n.forEach(function(m){return o.push(m.webkitGetAsEntry())}),u=function(){var m=lo(pr().mark(function g(v,y){var b,_;return pr().wrap(function(w){for(;;)switch(w.prev=w.next){case 0:if(v){w.next=2;break}return w.abrupt("return");case 2:if(v.path=y||"",!v.isFile){w.next=10;break}return w.next=6,l(v);case 6:b=w.sent,b&&i.push(b),w.next=15;break;case 10:if(!v.isDirectory){w.next=15;break}return w.next=13,a(v);case 13:_=w.sent,o.push.apply(o,nt(_));case 15:case"end":return w.stop()}},g)}));return function(v,y){return m.apply(this,arguments)}}(),d=0;case 9:if(!(d<o.length)){h.next=15;break}return h.next=12,u(o[d]);case 12:d++,h.next=9;break;case 15:return h.abrupt("return",i);case 16:case"end":return h.stop()}},t)}));return function(n,r){return e.apply(this,arguments)}}(),f_t=+new Date,p_t=0;function f$(){return"rc-upload-".concat(f_t,"-").concat(++p_t)}var h_t=["component","prefixCls","className","classNames","disabled","id","name","style","styles","multiple","accept","capture","children","directory","openFileDialogOnClick","onMouseEnter","onMouseLeave","hasControlInside"],m_t=function(e){Ds(n,e);var t=il(n);function n(){var r;Kr(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)),ee(cn(r),"state",{uid:f$()}),ee(cn(r),"reqs",{}),ee(cn(r),"fileInput",void 0),ee(cn(r),"_isMounted",void 0),ee(cn(r),"onChange",function(s){var l=r.props,c=l.accept,u=l.directory,d=s.target.files,f=nt(d).filter(function(h){return!u||d$(h,c)});r.uploadFiles(f),r.reset()}),ee(cn(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)}}),ee(cn(r),"onKeyDown",function(s){s.key==="Enter"&&r.onClick(s)}),ee(cn(r),"onFileDrop",function(){var s=lo(pr().mark(function l(c){var u,d,f;return pr().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,d_t(Array.prototype.slice.call(c.dataTransfer.items),function(g){return d$(g,r.props.accept)});case 7:d=m.sent,r.uploadFiles(d),m.next=14;break;case 11:f=nt(c.dataTransfer.files).filter(function(g){return d$(g,r.props.accept)}),u===!1&&(f=f.slice(0,1)),r.uploadFiles(f);case 14:case"end":return m.stop()}},l)}));return function(l){return s.apply(this,arguments)}}()),ee(cn(r),"uploadFiles",function(s){var l=nt(s),c=l.map(function(u){return u.uid=f$(),r.processFile(u,l)});Promise.all(c).then(function(u){var d=r.props.onBatchStart;d==null||d(u.map(function(f){var h=f.origin,m=f.parsedFile;return{file:h,parsedFile:m}})),u.filter(function(f){return f.parsedFile!==null}).forEach(function(f){r.post(f)})})}),ee(cn(r),"processFile",function(){var s=lo(pr().mark(function l(c,u){var d,f,h,m,g,v,y,b,_;return pr().wrap(function(w){for(;;)switch(w.prev=w.next){case 0:if(d=r.props.beforeUpload,f=c,!d){w.next=14;break}return w.prev=3,w.next=6,d(c,u);case 6:f=w.sent,w.next=12;break;case 9:w.prev=9,w.t0=w.catch(3),f=!1;case 12:if(f!==!1){w.next=14;break}return w.abrupt("return",{origin:c,parsedFile:null,action:null,data:null});case 14:if(h=r.props.action,typeof h!="function"){w.next=21;break}return w.next=18,h(c);case 18:m=w.sent,w.next=22;break;case 21:m=h;case 22:if(g=r.props.data,typeof g!="function"){w.next=29;break}return w.next=26,g(c);case 26:v=w.sent,w.next=30;break;case 29:v=g;case 30:return y=(Gt(f)==="object"||typeof f=="string")&&f?f:c,y instanceof File?b=y:b=new File([y],c.name,{type:c.type}),_=b,_.uid=c.uid,w.abrupt("return",{origin:c,data:v,parsedFile:_,action:m});case 35:case"end":return w.stop()}},l,null,[[3,9]])}));return function(l,c){return s.apply(this,arguments)}}()),ee(cn(r),"saveFileInput",function(s){r.fileInput=s}),r}return Qr(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,f=u.customRequest,h=u.name,m=u.headers,g=u.withCredentials,v=u.method,y=s.uid,b=f||u_t,_={action:l,filename:h,data:a,file:c,headers:m,withCredentials:g,method:v||"post",onProgress:function(w){var S=o.props.onProgress;S==null||S(w,c)},onSuccess:function(w,S){var C=o.props.onSuccess;C==null||C(w,c,S),delete o.reqs[y]},onError:function(w,S){var C=o.props.onError;C==null||C(w,S,c),delete o.reqs[y]}};d(s),this.reqs[y]=b(_)}}},{key:"reset",value:function(){this.setState({uid:f$()})}},{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,f=i.name,h=i.style,m=i.styles,g=m===void 0?{}:m,v=i.multiple,y=i.accept,b=i.capture,_=i.children,E=i.directory,w=i.openFileDialogOnClick,S=i.onMouseEnter,C=i.onMouseLeave,T=i.hasControlInside,x=Dt(i,h_t),O=Te(ee(ee(ee({},a,!0),"".concat(a,"-disabled"),u),s,s)),N=E?{directory:"directory",webkitdirectory:"webkitdirectory"}:{},I=u?{}:{onClick:w?this.onClick:function(){},onKeyDown:w?this.onKeyDown:function(){},onMouseEnter:S,onMouseLeave:C,onDrop:this.onFileDrop,onDragOver:this.onFileDrop,tabIndex:T?void 0:"0"};return ce.createElement(o,Ke({},I,{className:O,role:T?void 0:"button",style:h}),ce.createElement("input",Ke({},xi(x,{aria:!0,data:!0}),{id:d,name:f,disabled:u,type:"file",ref:this.saveFileInput,onClick:function(F){return F.stopPropagation()},key:this.state.uid,style:W({display:"none"},g.input),className:c.input,accept:y},N,{multiple:v,onChange:this.onChange},b!=null?{capture:b}:{})),_)}}]),n}(p.Component);function p$(){}var tU=function(e){Ds(n,e);var t=il(n);function n(){var r;Kr(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)),ee(cn(r),"uploader",void 0),ee(cn(r),"saveUploader",function(s){r.uploader=s}),r}return Qr(n,[{key:"abort",value:function(i){this.uploader.abort(i)}},{key:"render",value:function(){return ce.createElement(m_t,Ke({},this.props,{ref:this.saveUploader}))}}]),n}(p.Component);ee(tU,"defaultProps",{component:"span",prefixCls:"rc-upload",data:{},headers:{},name:"file",multipart:!1,onStart:p$,onError:p$,onSuccess:p$,multiple:!1,beforeUpload:null,customRequest:null,withCredentials:!1,openFileDialogOnClick:!0,hasControlInside:!1});const g_t=e=>{const{componentCls:t,iconCls:n}=e;return{[`${t}-wrapper`]:{[`${t}-drag`]:{position:"relative",width:"100%",height:"100%",textAlign:"center",background:e.colorFillAlter,border:`${Ae(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:`${Ae(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 ${Ae(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}}}}}},v_t=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({},wd()),{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({},kl),{padding:`0 ${Ae(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:'""'}}})}}},b_t=e=>{const{componentCls:t}=e,n=new fr("uploadAnimateInlineIn",{from:{width:0,height:0,padding:0,opacity:0,margin:e.calc(e.marginXS).div(-2).equal()}}),r=new fr("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`]:iq(e)},n,r]},y_t=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:`${Ae(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusLG,"&:hover":{background:"transparent"},[`${s}-thumbnail`]:Object.assign(Object.assign({},kl),{width:r,height:r,lineHeight:Ae(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% - ${Ae(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='${$v[0]}']`]:{fill:e.colorErrorBg},[`svg path[fill='${$v.primary}']`]:{fill:e.colorError}}},[`${s}-uploading`]:{borderStyle:"dashed",[`${s}-name`]:{marginBottom:i}}},[`${a}${a}-picture-circle ${s}`]:{[`&, &::before, ${s}-thumbnail`]:{borderRadius:"50%"}}}}},__t=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({},wd()),{display:"block",[`${t}${t}-select`]:{width:l,height:l,textAlign:"center",verticalAlign:"top",backgroundColor:e.colorFillAlter,border:`${Ae(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% - ${Ae(o(e.paddingXS).mul(2).equal())})`,height:`calc(100% - ${Ae(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 ${Ae(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% - ${Ae(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% - ${Ae(o(e.paddingXS).mul(2).equal())})`,paddingInlineStart:0}}}),[`${t}-wrapper${t}-picture-circle-wrapper`]:{[`${t}${t}-select`]:{borderRadius:"50%"}}}},S_t=e=>{const{componentCls:t}=e;return{[`${t}-rtl`]:{direction:"rtl"}}},E_t=e=>{const{componentCls:t,colorTextDisabled:n}=e;return{[`${t}-wrapper`]:Object.assign(Object.assign({},gr(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"}})}},C_t=e=>({actionsColor:e.colorTextDescription}),w_t=cr("Upload",e=>{const{fontSizeHeading3:t,fontHeight:n,lineWidth:r,controlHeightLG:i,calc:o}=e,a=Kn(e,{uploadThumbnailSize:o(t).mul(2).equal(),uploadProgressOffset:o(o(n).div(2)).add(r).equal(),uploadPicCardSize:o(i).mul(2.55).equal()});return[E_t(a),g_t(a),y_t(a),__t(a),v_t(a),b_t(a),S_t(a),n2(a)]},C_t);function LR(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 $R(e,t){const n=nt(t),r=n.findIndex(i=>{let{uid:o}=i;return o===e.uid});return r===-1?n.push(e):n[r]=e,n}function h$(e,t){const n=e.uid!==void 0?"uid":"name";return t.filter(r=>r[n]===e[n])[0]}function T_t(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 x_t=function(){const t=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:"").split("/"),r=t[t.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(r)||[""])[0]},T2e=e=>e.indexOf("image/")===0,O_t=e=>{if(e.type&&!e.thumbUrl)return T2e(e.type);const t=e.thumbUrl||e.url||"",n=x_t(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)},jh=200;function R_t(e){return new Promise(t=>{if(!e.type||!T2e(e.type)){t("");return}const n=document.createElement("canvas");n.width=jh,n.height=jh,n.style.cssText=`position: fixed; left: 0; top: 0; width: ${jh}px; height: ${jh}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=jh,l=jh,c=0,u=0;o>a?(l=a*(jh/o),u=-(l-s)/2):(s=o*(jh/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 I_t=p.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:f,isImgUrl:h,showPreviewIcon:m,showRemoveIcon:g,showDownloadIcon:v,previewIcon:y,removeIcon:b,downloadIcon:_,extra:E,onPreview:w,onDownload:S,onClose:C}=e;var T,x;const{status:O}=s,[N,I]=p.useState(O);p.useEffect(()=>{O!=="removed"&&I(O)},[O]);const[M,F]=p.useState(!1);p.useEffect(()=>{const le=setTimeout(()=>{F(!0)},300);return()=>{clearTimeout(le)}},[]);const k=u(s);let B=p.createElement("div",{className:`${n}-icon`},k);if(a==="picture"||a==="picture-card"||a==="picture-circle")if(N==="uploading"||!s.thumbUrl&&!s.url){const le=Te(`${n}-list-item-thumbnail`,{[`${n}-list-item-file`]:N!=="uploading"});B=p.createElement("div",{className:le},k)}else{const le=h!=null&&h(s)?p.createElement("img",{src:s.thumbUrl||s.url,alt:s.name,className:`${n}-list-item-image`,crossOrigin:s.crossOrigin}):k,ve=Te(`${n}-list-item-thumbnail`,{[`${n}-list-item-file`]:h&&!h(s)});B=p.createElement("a",{className:ve,onClick:ne=>w(s,ne),href:s.url||s.thumbUrl,target:"_blank",rel:"noopener noreferrer"},le)}const A=Te(`${n}-list-item`,`${n}-list-item-${N}`),P=typeof s.linkProps=="string"?JSON.parse(s.linkProps):s.linkProps,z=(typeof g=="function"?g(s):g)?d((typeof b=="function"?b(s):b)||p.createElement(C2,null),()=>C(s),n,o.removeFile,!0):null,L=(typeof v=="function"?v(s):v)&&N==="done"?d((typeof _=="function"?_(s):_)||p.createElement(Imt,null),()=>S(s),n,o.downloadFile):null,V=a!=="picture-card"&&a!=="picture-circle"&&p.createElement("span",{key:"download-delete",className:Te(`${n}-list-item-actions`,{picture:a==="picture"})},L,z),j=typeof E=="function"?E(s):E,U=j&&p.createElement("span",{className:`${n}-list-item-extra`},j),J=Te(`${n}-list-item-name`),te=s.url?p.createElement("a",Object.assign({key:"view",target:"_blank",rel:"noopener noreferrer",className:J,title:s.name},P,{href:s.url,onClick:le=>w(s,le)}),s.name,U):p.createElement("span",{key:"view",className:J,onClick:le=>w(s,le),title:s.name},s.name,U),ae=(typeof m=="function"?m(s):m)&&(s.url||s.thumbUrl)?p.createElement("a",{href:s.url||s.thumbUrl,target:"_blank",rel:"noopener noreferrer",onClick:le=>w(s,le),title:o.previewFile},typeof y=="function"?y(s):y||p.createElement(RS,null)):null,K=(a==="picture-card"||a==="picture-circle")&&N!=="uploading"&&p.createElement("span",{className:`${n}-list-item-actions`},ae,N==="done"&&L,z),{getPrefixCls:Q}=p.useContext(Qt),oe=Q(),ge=p.createElement("div",{className:A},B,te,V,K,M&&p.createElement(ra,{motionName:`${oe}-fade`,visible:N==="uploading",motionDeadline:2e3},le=>{let{className:ve}=le;const ne="percent"in s?p.createElement(_xe,Object.assign({},c,{type:"line",percent:s.percent,"aria-label":s["aria-label"],"aria-labelledby":s["aria-labelledby"]})):null;return p.createElement("div",{className:Te(`${n}-list-item-progress`,ve)},ne)})),fe=s.response&&typeof s.response=="string"?s.response:((T=s.error)===null||T===void 0?void 0:T.statusText)||((x=s.error)===null||x===void 0?void 0:x.message)||o.uploadError,ue=N==="error"?p.createElement(Ia,{title:fe,getPopupContainer:le=>le.parentNode},ge):ge;return p.createElement("div",{className:Te(`${n}-list-item-container`,r),style:i,ref:t},f?f(ue,s,l,{download:S.bind(null,s),preview:w.bind(null,s),remove:C.bind(null,s)}):ue)}),A_t=(e,t)=>{const{listType:n="text",previewFile:r=R_t,onPreview:i,onDownload:o,onRemove:a,locale:s,iconRender:l,isImageUrl:c=O_t,prefixCls:u,items:d=[],showPreviewIcon:f=!0,showRemoveIcon:h=!0,showDownloadIcon:m=!1,removeIcon:g,previewIcon:v,downloadIcon:y,extra:b,progress:_={size:[-1,2],showInfo:!1},appendAction:E,appendActionVisible:w=!0,itemRender:S,disabled:C}=e,T=xq(),[x,O]=p.useState(!1),N=["picture-card","picture-circle"].includes(n);p.useEffect(()=>{n.startsWith("picture")&&(d||[]).forEach(U=>{!(U.originFileObj instanceof File||U.originFileObj instanceof Blob)||U.thumbUrl!==void 0||(U.thumbUrl="",r==null||r(U.originFileObj).then(J=>{U.thumbUrl=J||"",T()}))})},[n,d,r]),p.useEffect(()=>{O(!0)},[]);const I=(U,J)=>{if(i)return J==null||J.preventDefault(),i(U)},M=U=>{typeof o=="function"?o(U):U.url&&window.open(U.url)},F=U=>{a==null||a(U)},k=U=>{if(l)return l(U,n);const J=U.status==="uploading";if(n.startsWith("picture")){const te=n==="picture"?p.createElement(xd,null):s.uploading,ae=c!=null&&c(U)?p.createElement(Mgt,null):p.createElement(Bmt,null);return J?te:ae}return J?p.createElement(xd,null):p.createElement(Igt,null)},B=(U,J,te,ae,K)=>{const Q={type:"text",size:"small",title:ae,onClick:oe=>{var ge,fe;J(),p.isValidElement(U)&&((fe=(ge=U.props).onClick)===null||fe===void 0||fe.call(ge,oe))},className:`${te}-list-item-action`};return K&&(Q.disabled=C),p.isValidElement(U)?p.createElement($n,Object.assign({},Q,{icon:_o(U,Object.assign(Object.assign({},U.props),{onClick:()=>{}}))})):p.createElement($n,Object.assign({},Q),p.createElement("span",null,U))};p.useImperativeHandle(t,()=>({handlePreview:I,handleDownload:M}));const{getPrefixCls:A}=p.useContext(Qt),P=A("upload",u),z=A(),L=Te(`${P}-list`,`${P}-list-${n}`),V=p.useMemo(()=>ur(p_(z),["onAppearEnd","onEnterEnd","onLeaveEnd"]),[z]),j=Object.assign(Object.assign({},N?{}:V),{motionDeadline:2e3,motionName:`${P}-${N?"animate-inline":"animate"}`,keys:nt(d.map(U=>({key:U.uid,file:U}))),motionAppear:x});return p.createElement("div",{className:L},p.createElement(p5,Object.assign({},j,{component:!1}),U=>{let{key:J,file:te,className:ae,style:K}=U;return p.createElement(I_t,{key:J,locale:s,prefixCls:P,className:ae,style:K,file:te,items:d,progress:_,listType:n,isImgUrl:c,showPreviewIcon:f,showRemoveIcon:h,showDownloadIcon:m,removeIcon:g,previewIcon:v,downloadIcon:y,extra:b,iconRender:k,actionIconRender:B,itemRender:S,onPreview:I,onDownload:M,onClose:F})}),E&&p.createElement(ra,Object.assign({},j,{visible:w,forceRender:!0}),U=>{let{className:J,style:te}=U;return _o(E,ae=>({className:Te(ae.className,J),style:Object.assign(Object.assign(Object.assign({},te),{pointerEvents:J?"none":void 0}),ae.style)}))}))},N_t=p.forwardRef(A_t);var M_t=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 DC=`__LIST_IGNORE_${Date.now()}__`,k_t=(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:f,locale:h,iconRender:m,isImageUrl:g,progress:v,prefixCls:y,className:b,type:_="select",children:E,style:w,itemRender:S,maxCount:C,data:T={},multiple:x=!1,hasControlInside:O=!0,action:N="",accept:I="",supportServerRender:M=!0,rootClassName:F}=e,k=p.useContext(Vo),B=f??k,[A,P]=Pn(r||[],{value:n,postState:re=>re??[]}),[z,L]=p.useState("drop"),V=p.useRef(null),j=p.useRef(null);p.useMemo(()=>{const re=Date.now();(n||[]).forEach((Me,je)=>{!Me.uid&&!Object.isFrozen(Me)&&(Me.uid=`__AUTO__${re}_${je}__`)})},[n]);const U=(re,Me,je)=>{let ke=nt(Me),Ge=!1;C===1?ke=ke.slice(-1):C&&(Ge=ke.length>C,ke=ke.slice(0,C)),Ml.flushSync(()=>{P(ke)});const Ue={file:re,fileList:ke};je&&(Ue.event=je),(!Ge||re.status==="removed"||ke.some(qe=>qe.uid===re.uid))&&Ml.flushSync(()=>{c==null||c(Ue)})},J=(re,Me)=>M_t(void 0,void 0,void 0,function*(){const{beforeUpload:je,transformFile:ke}=e;let Ge=re;if(je){const Ue=yield je(re,Me);if(Ue===!1)return!1;if(delete re[DC],Ue===DC)return Object.defineProperty(re,DC,{value:!0,configurable:!0}),!1;typeof Ue=="object"&&Ue&&(Ge=Ue)}return ke&&(Ge=yield ke(Ge)),Ge}),te=re=>{const Me=re.filter(Ge=>!Ge.file[DC]);if(!Me.length)return;const je=Me.map(Ge=>LR(Ge.file));let ke=nt(A);je.forEach(Ge=>{ke=$R(Ge,ke)}),je.forEach((Ge,Ue)=>{let qe=Ge;if(Me[Ue].parsedFile)Ge.status="uploading";else{const{originFileObj:At}=Ge;let at;try{at=new File([At],At.name,{type:At.type})}catch{at=new Blob([At],{type:At.type}),at.name=At.name,at.lastModifiedDate=new Date,at.lastModified=new Date().getTime()}at.uid=Ge.uid,qe=at}U(qe,ke)})},ae=(re,Me,je)=>{try{typeof re=="string"&&(re=JSON.parse(re))}catch{}if(!h$(Me,A))return;const ke=LR(Me);ke.status="done",ke.percent=100,ke.response=re,ke.xhr=je;const Ge=$R(ke,A);U(ke,Ge)},K=(re,Me)=>{if(!h$(Me,A))return;const je=LR(Me);je.status="uploading",je.percent=re.percent;const ke=$R(je,A);U(je,ke,re)},Q=(re,Me,je)=>{if(!h$(je,A))return;const ke=LR(je);ke.error=re,ke.response=Me,ke.status="error";const Ge=$R(ke,A);U(ke,Ge)},oe=re=>{let Me;Promise.resolve(typeof i=="function"?i(re):i).then(je=>{var ke;if(je===!1)return;const Ge=T_t(re,A);Ge&&(Me=Object.assign(Object.assign({},re),{status:"removed"}),A==null||A.forEach(Ue=>{const qe=Me.uid!==void 0?"uid":"name";Ue[qe]===Me[qe]&&!Object.isFrozen(Ue)&&(Ue.status="removed")}),(ke=V.current)===null||ke===void 0||ke.abort(Me),U(Me,Ge))})},ge=re=>{L(re.type),re.type==="drop"&&(u==null||u(re))};p.useImperativeHandle(t,()=>({onBatchStart:te,onSuccess:ae,onProgress:K,onError:Q,fileList:A,upload:V.current,nativeElement:j.current}));const{getPrefixCls:fe,direction:ue,upload:le}=p.useContext(Qt),ve=fe("upload",y),ne=Object.assign(Object.assign({onBatchStart:te,onError:Q,onProgress:K,onSuccess:ae},e),{data:T,multiple:x,action:N,accept:I,supportServerRender:M,prefixCls:ve,disabled:B,beforeUpload:J,onChange:void 0,hasControlInside:O});delete ne.className,delete ne.style,(!E||B)&&delete ne.id;const pe=`${ve}-wrapper`,[be,Re,Se]=w_t(ve,pe),[Ce]=ds("Upload",Ec.Upload),{showRemoveIcon:ye,showPreviewIcon:he,showDownloadIcon:_e,removeIcon:Oe,previewIcon:De,downloadIcon:Y,extra:D}=typeof o=="boolean"?{}:o,G=typeof ye>"u"?!B:ye,ie=(re,Me)=>o?p.createElement(N_t,{prefixCls:ve,listType:a,items:A,previewFile:d,onPreview:s,onDownload:l,onRemove:oe,showRemoveIcon:G,showPreviewIcon:he,showDownloadIcon:_e,removeIcon:Oe,previewIcon:De,downloadIcon:Y,iconRender:m,extra:D,locale:Object.assign(Object.assign({},Ce),h),isImageUrl:g,progress:v,appendAction:re,appendActionVisible:Me,itemRender:S,disabled:B}):re,me=Te(pe,b,F,Re,Se,le==null?void 0:le.className,{[`${ve}-rtl`]:ue==="rtl",[`${ve}-picture-card-wrapper`]:a==="picture-card",[`${ve}-picture-circle-wrapper`]:a==="picture-circle"}),se=Object.assign(Object.assign({},le==null?void 0:le.style),w);if(_==="drag"){const re=Te(Re,ve,`${ve}-drag`,{[`${ve}-drag-uploading`]:A.some(Me=>Me.status==="uploading"),[`${ve}-drag-hover`]:z==="dragover",[`${ve}-disabled`]:B,[`${ve}-rtl`]:ue==="rtl"});return be(p.createElement("span",{className:me,ref:j},p.createElement("div",{className:re,style:se,onDrop:ge,onDragOver:ge,onDragLeave:ge},p.createElement(tU,Object.assign({},ne,{ref:V,className:`${ve}-btn`}),p.createElement("div",{className:`${ve}-drag-container`},E))),ie()))}const Be=Te(ve,`${ve}-select`,{[`${ve}-disabled`]:B,[`${ve}-hidden`]:!E}),Ve=p.createElement("div",{className:Be},p.createElement(tU,Object.assign({},ne,{ref:V})));return be(a==="picture-card"||a==="picture-circle"?p.createElement("span",{className:me,ref:j},ie(Ve,!!E)):p.createElement("span",{className:me,ref:j},Ve,ie()))},x2e=p.forwardRef(k_t);var P_t=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 D_t=p.forwardRef((e,t)=>{var{style:n,height:r,hasControlInside:i=!1}=e,o=P_t(e,["style","height","hasControlInside"]);return p.createElement(x2e,Object.assign({ref:t,hasControlInside:i},o,{type:"drag",style:Object.assign(Object.assign({},n),{height:r})}))}),gD=x2e;gD.Dragger=D_t;gD.LIST_IGNORE=DC;let Wt;const L_t=()=>{const e=N5.useApp();return Wt=e.message,e.modal,e.notification,null};var O2e={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(ao,function(){var n=function(q,X){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(de,we){de.__proto__=we}||function(de,we){for(var Ne in we)Object.prototype.hasOwnProperty.call(we,Ne)&&(de[Ne]=we[Ne])})(q,X)},r=function(){return(r=Object.assign||function(q){for(var X,de=1,we=arguments.length;de<we;de++)for(var Ne in X=arguments[de])Object.prototype.hasOwnProperty.call(X,Ne)&&(q[Ne]=X[Ne]);return q}).apply(this,arguments)};function i(q,X,de){for(var we,Ne=0,Le=X.length;Ne<Le;Ne++)!we&&Ne in X||((we=we||Array.prototype.slice.call(X,0,Ne))[Ne]=X[Ne]);return q.concat(we||Array.prototype.slice.call(X))}var o=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:ao,a=Object.keys,s=Array.isArray;function l(q,X){return typeof X!="object"||a(X).forEach(function(de){q[de]=X[de]}),q}typeof Promise>"u"||o.Promise||(o.Promise=Promise);var c=Object.getPrototypeOf,u={}.hasOwnProperty;function d(q,X){return u.call(q,X)}function f(q,X){typeof X=="function"&&(X=X(c(q))),(typeof Reflect>"u"?a:Reflect.ownKeys)(X).forEach(function(de){m(q,de,X[de])})}var h=Object.defineProperty;function m(q,X,de,we){h(q,X,l(de&&d(de,"get")&&typeof de.get=="function"?{get:de.get,set:de.set,configurable:!0}:{value:de,configurable:!0,writable:!0},we))}function g(q){return{from:function(X){return q.prototype=Object.create(X.prototype),m(q.prototype,"constructor",q),{extend:f.bind(null,q.prototype)}}}}var v=Object.getOwnPropertyDescriptor,y=[].slice;function b(q,X,de){return y.call(q,X,de)}function _(q,X){return X(q)}function E(q){if(!q)throw new Error("Assertion Failed")}function w(q){o.setImmediate?setImmediate(q):setTimeout(q,0)}function S(q,X){if(typeof X=="string"&&d(q,X))return q[X];if(!X)return q;if(typeof X!="string"){for(var de=[],we=0,Ne=X.length;we<Ne;++we){var Le=S(q,X[we]);de.push(Le)}return de}var We=X.indexOf(".");if(We!==-1){var Qe=q[X.substr(0,We)];return Qe==null?void 0:S(Qe,X.substr(We+1))}}function C(q,X,de){if(q&&X!==void 0&&!("isFrozen"in Object&&Object.isFrozen(q)))if(typeof X!="string"&&"length"in X){E(typeof de!="string"&&"length"in de);for(var we=0,Ne=X.length;we<Ne;++we)C(q,X[we],de[we])}else{var Le,We,Qe=X.indexOf(".");Qe!==-1?(Le=X.substr(0,Qe),(We=X.substr(Qe+1))===""?de===void 0?s(q)&&!isNaN(parseInt(Le))?q.splice(Le,1):delete q[Le]:q[Le]=de:C(Qe=!(Qe=q[Le])||!d(q,Le)?q[Le]={}:Qe,We,de)):de===void 0?s(q)&&!isNaN(parseInt(X))?q.splice(X,1):delete q[X]:q[X]=de}}function T(q){var X,de={};for(X in q)d(q,X)&&(de[X]=q[X]);return de}var x=[].concat;function O(q){return x.apply([],q)}var Gn="BigUint64Array,BigInt64Array,Array,Boolean,String,Date,RegExp,Blob,File,FileList,FileSystemFileHandle,FileSystemDirectoryHandle,ArrayBuffer,DataView,Uint8ClampedArray,ImageBitmap,ImageData,Map,Set,CryptoKey".split(",").concat(O([8,16,32,64].map(function(q){return["Int","Uint","Float"].map(function(X){return X+q+"Array"})}))).filter(function(q){return o[q]}),N=new Set(Gn.map(function(q){return o[q]})),I=null;function M(q){return I=new WeakMap,q=function X(de){if(!de||typeof de!="object")return de;var we=I.get(de);if(we)return we;if(s(de)){we=[],I.set(de,we);for(var Ne=0,Le=de.length;Ne<Le;++Ne)we.push(X(de[Ne]))}else if(N.has(de.constructor))we=de;else{var We,Qe=c(de);for(We in we=Qe===Object.prototype?{}:Object.create(Qe),I.set(de,we),de)d(de,We)&&(we[We]=X(de[We]))}return we}(q),I=null,q}var F={}.toString;function k(q){return F.call(q).slice(8,-1)}var B=typeof Symbol<"u"?Symbol.iterator:"@@iterator",A=typeof B=="symbol"?function(q){var X;return q!=null&&(X=q[B])&&X.apply(q)}:function(){return null};function P(q,X){return X=q.indexOf(X),0<=X&&q.splice(X,1),0<=X}var z={};function L(q){var X,de,we,Ne;if(arguments.length===1){if(s(q))return q.slice();if(this===z&&typeof q=="string")return[q];if(Ne=A(q)){for(de=[];!(we=Ne.next()).done;)de.push(we.value);return de}if(q==null)return[q];if(typeof(X=q.length)!="number")return[q];for(de=new Array(X);X--;)de[X]=q[X];return de}for(X=arguments.length,de=new Array(X);X--;)de[X]=arguments[X];return de}var V=typeof Symbol<"u"?function(q){return q[Symbol.toStringTag]==="AsyncFunction"}:function(){return!1},De=["Unknown","Constraint","Data","TransactionInactive","ReadOnly","Version","NotFound","InvalidState","InvalidAccess","Abort","Timeout","QuotaExceeded","Syntax","DataClone"],Pc=["Modify","Bulk","OpenFailed","VersionChange","Schema","Upgrade","InvalidTable","MissingAPI","NoSuchDatabase","InvalidArgument","SubTransaction","Unsupported","Internal","DatabaseClosed","PrematureCommit","ForeignAwait"].concat(De),j={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 U(q,X){this.name=q,this.message=X}function J(q,X){return q+". Errors: "+Object.keys(X).map(function(de){return X[de].toString()}).filter(function(de,we,Ne){return Ne.indexOf(de)===we}).join(`
`)}function te(q,X,de,we){this.failures=X,this.failedKeys=we,this.successCount=de,this.message=J(q,X)}function ae(q,X){this.name="BulkError",this.failures=Object.keys(X).map(function(de){return X[de]}),this.failuresByPos=X,this.message=J(q,this.failures)}g(U).from(Error).extend({toString:function(){return this.name+": "+this.message}}),g(te).from(U),g(ae).from(U);var K=Pc.reduce(function(q,X){return q[X]=X+"Error",q},{}),Q=U,oe=Pc.reduce(function(q,X){var de=X+"Error";function we(Ne,Le){this.name=de,Ne?typeof Ne=="string"?(this.message="".concat(Ne).concat(Le?`
`+Le:""),this.inner=Le||null):typeof Ne=="object"&&(this.message="".concat(Ne.name," ").concat(Ne.message),this.inner=Ne):(this.message=j[X]||de,this.inner=null)}return g(we).from(Q),q[X]=we,q},{});oe.Syntax=SyntaxError,oe.Type=TypeError,oe.Range=RangeError;var ge=De.reduce(function(q,X){return q[X+"Error"]=oe[X],q},{}),fe=Pc.reduce(function(q,X){return["Syntax","Type","Range"].indexOf(X)===-1&&(q[X+"Error"]=oe[X]),q},{});function ue(){}function le(q){return q}function ve(q,X){return q==null||q===le?X:function(de){return X(q(de))}}function ne(q,X){return function(){q.apply(this,arguments),X.apply(this,arguments)}}function pe(q,X){return q===ue?X:function(){var de=q.apply(this,arguments);de!==void 0&&(arguments[0]=de);var we=this.onsuccess,Ne=this.onerror;this.onsuccess=null,this.onerror=null;var Le=X.apply(this,arguments);return we&&(this.onsuccess=this.onsuccess?ne(we,this.onsuccess):we),Ne&&(this.onerror=this.onerror?ne(Ne,this.onerror):Ne),Le!==void 0?Le:de}}function be(q,X){return q===ue?X:function(){q.apply(this,arguments);var de=this.onsuccess,we=this.onerror;this.onsuccess=this.onerror=null,X.apply(this,arguments),de&&(this.onsuccess=this.onsuccess?ne(de,this.onsuccess):de),we&&(this.onerror=this.onerror?ne(we,this.onerror):we)}}function Re(q,X){return q===ue?X:function(de){var we=q.apply(this,arguments);l(de,we);var Ne=this.onsuccess,Le=this.onerror;return this.onsuccess=null,this.onerror=null,de=X.apply(this,arguments),Ne&&(this.onsuccess=this.onsuccess?ne(Ne,this.onsuccess):Ne),Le&&(this.onerror=this.onerror?ne(Le,this.onerror):Le),we===void 0?de===void 0?void 0:de:l(we,de)}}function Se(q,X){return q===ue?X:function(){return X.apply(this,arguments)!==!1&&q.apply(this,arguments)}}function Ce(q,X){return q===ue?X:function(){var de=q.apply(this,arguments);if(de&&typeof de.then=="function"){for(var we=this,Ne=arguments.length,Le=new Array(Ne);Ne--;)Le[Ne]=arguments[Ne];return de.then(function(){return X.apply(we,Le)})}return X.apply(this,arguments)}}fe.ModifyError=te,fe.DexieError=U,fe.BulkError=ae;var ye=typeof location<"u"&&/^(http|https):\/\/(localhost|127\.0\.0\.1)/.test(location.href);function he(q){ye=q}var _e={},Oe=100,Gn=typeof Promise>"u"?[]:function(){var q=Promise.resolve();if(typeof crypto>"u"||!crypto.subtle)return[q,c(q),q];var X=crypto.subtle.digest("SHA-512",new Uint8Array([0]));return[X,c(X),q]}(),De=Gn[0],Pc=Gn[1],Gn=Gn[2],Pc=Pc&&Pc.then,Y=De&&De.constructor,D=!!Gn,G=function(q,X){je.push([q,X]),me&&(queueMicrotask(Vt),me=!1)},ie=!0,me=!0,se=[],Be=[],Ve=le,re={id:"global",global:!0,ref:0,unhandleds:[],onunhandled:ue,pgp:!1,env:{},finalize:ue},Me=re,je=[],ke=0,Ge=[];function Ue(q){if(typeof this!="object")throw new TypeError("Promises must be constructed via new");this._listeners=[],this._lib=!1;var X=this._PSD=Me;if(typeof q!="function"){if(q!==_e)throw new TypeError("Not a function");return this._state=arguments[1],this._value=arguments[2],void(this._state===!1&&at(this,this._value))}this._state=null,this._value=null,++X.ref,function de(we,Ne){try{Ne(function(Le){if(we._state===null){if(Le===we)throw new TypeError("A promise cannot be resolved with itself.");var We=we._lib&&Tt();Le&&typeof Le.then=="function"?de(we,function(Qe,it){Le instanceof Ue?Le._then(Qe,it):Le.then(Qe,it)}):(we._state=!0,we._value=Le,pt(we)),We&&Ot()}},at.bind(null,we))}catch(Le){at(we,Le)}}(this,q)}var qe={get:function(){var q=Me,X=Bt;function de(we,Ne){var Le=this,We=!q.global&&(q!==Me||X!==Bt),Qe=We&&!kt(),it=new Ue(function(st,ft){Ct(Le,new At(wt(we,q,We,Qe),wt(Ne,q,We,Qe),st,ft,q))});return this._consoleTask&&(it._consoleTask=this._consoleTask),it}return de.prototype=_e,de},set:function(q){m(this,"then",q&&q.prototype===_e?qe:{get:function(){return q},set:qe.set})}};function At(q,X,de,we,Ne){this.onFulfilled=typeof q=="function"?q:null,this.onRejected=typeof X=="function"?X:null,this.resolve=de,this.reject=we,this.psd=Ne}function at(q,X){var de,we;Be.push(X),q._state===null&&(de=q._lib&&Tt(),X=Ve(X),q._state=!1,q._value=X,we=q,se.some(function(Ne){return Ne._value===we._value})||se.push(we),pt(q),de&&Ot())}function pt(q){var X=q._listeners;q._listeners=[];for(var de=0,we=X.length;de<we;++de)Ct(q,X[de]);var Ne=q._PSD;--Ne.ref||Ne.finalize(),ke===0&&(++ke,G(function(){--ke==0&&Ut()},[]))}function Ct(q,X){if(q._state!==null){var de=q._state?X.onFulfilled:X.onRejected;if(de===null)return(q._state?X.resolve:X.reject)(q._value);++X.psd.ref,++ke,G(bt,[de,q,X])}else q._listeners.push(X)}function bt(q,X,de){try{var we,Ne=X._value;!X._state&&Be.length&&(Be=[]),we=ye&&X._consoleTask?X._consoleTask.run(function(){return q(Ne)}):q(Ne),X._state||Be.indexOf(Ne)!==-1||function(Le){for(var We=se.length;We;)if(se[--We]._value===Le._value)return se.splice(We,1)}(X),de.resolve(we)}catch(Le){de.reject(Le)}finally{--ke==0&&Ut(),--de.psd.ref||de.psd.finalize()}}function Vt(){Ht(re,function(){Tt()&&Ot()})}function Tt(){var q=ie;return me=ie=!1,q}function Ot(){var q,X,de;do for(;0<je.length;)for(q=je,je=[],de=q.length,X=0;X<de;++X){var we=q[X];we[0].apply(null,we[1])}while(0<je.length);me=ie=!0}function Ut(){var q=se;se=[],q.forEach(function(we){we._PSD.onunhandled.call(null,we._value,we)});for(var X=Ge.slice(0),de=X.length;de;)X[--de]()}function ze(q){return new Ue(_e,!1,q)}function Ye(q,X){var de=Me;return function(){var we=Tt(),Ne=Me;try{return ct(de,!0),q.apply(this,arguments)}catch(Le){X&&X(Le)}finally{ct(Ne,!1),we&&Ot()}}}f(Ue.prototype,{then:qe,_then:function(q,X){Ct(this,new At(null,null,q,X,Me))},catch:function(q){if(arguments.length===1)return this.then(null,q);var X=q,de=arguments[1];return typeof X=="function"?this.then(null,function(we){return(we instanceof X?de:ze)(we)}):this.then(null,function(we){return(we&&we.name===X?de:ze)(we)})},finally:function(q){return this.then(function(X){return Ue.resolve(q()).then(function(){return X})},function(X){return Ue.resolve(q()).then(function(){return ze(X)})})},timeout:function(q,X){var de=this;return q<1/0?new Ue(function(we,Ne){var Le=setTimeout(function(){return Ne(new oe.Timeout(X))},q);de.then(we,Ne).finally(clearTimeout.bind(null,Le))}):this}}),typeof Symbol<"u"&&Symbol.toStringTag&&m(Ue.prototype,Symbol.toStringTag,"Dexie.Promise"),re.env=Rt(),f(Ue,{all:function(){var q=L.apply(null,arguments).map(Et);return new Ue(function(X,de){q.length===0&&X([]);var we=q.length;q.forEach(function(Ne,Le){return Ue.resolve(Ne).then(function(We){q[Le]=We,--we||X(q)},de)})})},resolve:function(q){return q instanceof Ue?q:q&&typeof q.then=="function"?new Ue(function(X,de){q.then(X,de)}):new Ue(_e,!0,q)},reject:ze,race:function(){var q=L.apply(null,arguments).map(Et);return new Ue(function(X,de){q.map(function(we){return Ue.resolve(we).then(X,de)})})},PSD:{get:function(){return Me},set:function(q){return Me=q}},totalEchoes:{get:function(){return Bt}},newPSD:vt,usePSD:Ht,scheduler:{get:function(){return G},set:function(q){G=q}},rejectionMapper:{get:function(){return Ve},set:function(q){Ve=q}},follow:function(q,X){return new Ue(function(de,we){return vt(function(Ne,Le){var We=Me;We.unhandleds=[],We.onunhandled=Le,We.finalize=ne(function(){var Qe,it=this;Qe=function(){it.unhandleds.length===0?Ne():Le(it.unhandleds[0])},Ge.push(function st(){Qe(),Ge.splice(Ge.indexOf(st),1)}),++ke,G(function(){--ke==0&&Ut()},[])},We.finalize),q()},X,de,we)})}}),Y&&(Y.allSettled&&m(Ue,"allSettled",function(){var q=L.apply(null,arguments).map(Et);return new Ue(function(X){q.length===0&&X([]);var de=q.length,we=new Array(de);q.forEach(function(Ne,Le){return Ue.resolve(Ne).then(function(We){return we[Le]={status:"fulfilled",value:We}},function(We){return we[Le]={status:"rejected",reason:We}}).then(function(){return--de||X(we)})})})}),Y.any&&typeof AggregateError<"u"&&m(Ue,"any",function(){var q=L.apply(null,arguments).map(Et);return new Ue(function(X,de){q.length===0&&de(new AggregateError([]));var we=q.length,Ne=new Array(we);q.forEach(function(Le,We){return Ue.resolve(Le).then(function(Qe){return X(Qe)},function(Qe){Ne[We]=Qe,--we||de(new AggregateError(Ne))})})})}),Y.withResolvers&&(Ue.withResolvers=Y.withResolvers));var He={awaits:0,echoes:0,id:0},Ze=0,yt=[],_t=0,Bt=0,Nt=0;function vt(q,X,de,we){var Ne=Me,Le=Object.create(Ne);return Le.parent=Ne,Le.ref=0,Le.global=!1,Le.id=++Nt,re.env,Le.env=D?{Promise:Ue,PromiseProp:{value:Ue,configurable:!0,writable:!0},all:Ue.all,race:Ue.race,allSettled:Ue.allSettled,any:Ue.any,resolve:Ue.resolve,reject:Ue.reject}:{},X&&l(Le,X),++Ne.ref,Le.finalize=function(){--this.parent.ref||this.parent.finalize()},we=Ht(Le,q,de,we),Le.ref===0&&Le.finalize(),we}function ht(){return He.id||(He.id=++Ze),++He.awaits,He.echoes+=Oe,He.id}function kt(){return!!He.awaits&&(--He.awaits==0&&(He.id=0),He.echoes=He.awaits*Oe,!0)}function Et(q){return He.echoes&&q&&q.constructor===Y?(ht(),q.then(function(X){return kt(),X},function(X){return kt(),jt(X)})):q}function Yt(){var q=yt[yt.length-1];yt.pop(),ct(q,!1)}function ct(q,X){var de,we=Me;(X?!He.echoes||_t++&&q===Me:!_t||--_t&&q===Me)||queueMicrotask(X?(function(Ne){++Bt,He.echoes&&--He.echoes!=0||(He.echoes=He.awaits=He.id=0),yt.push(Me),ct(Ne,!0)}).bind(null,q):Yt),q!==Me&&(Me=q,we===re&&(re.env=Rt()),D&&(de=re.env.Promise,X=q.env,(we.global||q.global)&&(Object.defineProperty(o,"Promise",X.PromiseProp),de.all=X.all,de.race=X.race,de.resolve=X.resolve,de.reject=X.reject,X.allSettled&&(de.allSettled=X.allSettled),X.any&&(de.any=X.any))))}function Rt(){var q=o.Promise;return D?{Promise:q,PromiseProp:Object.getOwnPropertyDescriptor(o,"Promise"),all:q.all,race:q.race,allSettled:q.allSettled,any:q.any,resolve:q.resolve,reject:q.reject}:{}}function Ht(q,X,de,we,Ne){var Le=Me;try{return ct(q,!0),X(de,we,Ne)}finally{ct(Le,!1)}}function wt(q,X,de,we){return typeof q!="function"?q:function(){var Ne=Me;de&&ht(),ct(X,!0);try{return q.apply(this,arguments)}finally{ct(Ne,!1),we&&queueMicrotask(kt)}}}function St(q){Promise===Y&&He.echoes===0?_t===0?q():enqueueNativeMicroTask(q):setTimeout(q,0)}(""+Pc).indexOf("[native code]")===-1&&(ht=kt=ue);var jt=Ue.reject,Pe="￿",Pt="Invalid key provided. Keys must be of type string, number, Date or Array<string | number | Date>.",rt="String expected.",Mt=[],It="__dbnames",xn="readonly",Hn="readwrite";function R(q,X){return q?X?function(){return q.apply(this,arguments)&&X.apply(this,arguments)}:q:X}var $={type:3,lower:-1/0,lowerOpen:!1,upper:[[]],upperOpen:!1};function Z(q){return typeof q!="string"||/\./.test(q)?function(X){return X}:function(X){return X[q]===void 0&&q in X&&delete(X=M(X))[q],X}}function xe(){throw oe.Type()}function $e(q,X){try{var de=et(q),we=et(X);if(de!==we)return de==="Array"?1:we==="Array"?-1:de==="binary"?1:we==="binary"?-1:de==="string"?1:we==="string"?-1:de==="Date"?1:we!=="Date"?NaN:-1;switch(de){case"number":case"Date":case"string":return X<q?1:q<X?-1:0;case"binary":return function(Ne,Le){for(var We=Ne.length,Qe=Le.length,it=We<Qe?We:Qe,st=0;st<it;++st)if(Ne[st]!==Le[st])return Ne[st]<Le[st]?-1:1;return We===Qe?0:We<Qe?-1:1}($t(q),$t(X));case"Array":return function(Ne,Le){for(var We=Ne.length,Qe=Le.length,it=We<Qe?We:Qe,st=0;st<it;++st){var ft=$e(Ne[st],Le[st]);if(ft!==0)return ft}return We===Qe?0:We<Qe?-1:1}(q,X)}}catch{}return NaN}function et(q){var X=typeof q;return X!="object"?X:ArrayBuffer.isView(q)?"binary":(q=k(q),q==="ArrayBuffer"?"binary":q)}function $t(q){return q instanceof Uint8Array?q:ArrayBuffer.isView(q)?new Uint8Array(q.buffer,q.byteOffset,q.byteLength):new Uint8Array(q)}var pn=(Fn.prototype._trans=function(q,X,de){var we=this._tx||Me.trans,Ne=this.name,Le=ye&&typeof console<"u"&&console.createTask&&console.createTask("Dexie: ".concat(q==="readonly"?"read":"write"," ").concat(this.name));function We(st,ft,Je){if(!Je.schema[Ne])throw new oe.NotFound("Table "+Ne+" not part of transaction");return X(Je.idbtrans,Je)}var Qe=Tt();try{var it=we&&we.db._novip===this.db._novip?we===Me.trans?we._promise(q,We,de):vt(function(){return we._promise(q,We,de)},{trans:we,transless:Me.transless||Me}):function st(ft,Je,gt,ot){if(ft.idbdb&&(ft._state.openComplete||Me.letThrough||ft._vip)){var ut=ft._createTransaction(Je,gt,ft._dbSchema);try{ut.create(),ft._state.PR1398_maxLoop=3}catch(mt){return mt.name===K.InvalidState&&ft.isOpen()&&0<--ft._state.PR1398_maxLoop?(console.warn("Dexie: Need to reopen db"),ft.close({disableAutoOpen:!1}),ft.open().then(function(){return st(ft,Je,gt,ot)})):jt(mt)}return ut._promise(Je,function(mt,lt){return vt(function(){return Me.trans=ut,ot(mt,lt,ut)})}).then(function(mt){if(Je==="readwrite")try{ut.idbtrans.commit()}catch{}return Je==="readonly"?mt:ut._completion.then(function(){return mt})})}if(ft._state.openComplete)return jt(new oe.DatabaseClosed(ft._state.dbOpenError));if(!ft._state.isBeingOpened){if(!ft._state.autoOpen)return jt(new oe.DatabaseClosed);ft.open().catch(ue)}return ft._state.dbReadyPromise.then(function(){return st(ft,Je,gt,ot)})}(this.db,q,[this.name],We);return Le&&(it._consoleTask=Le,it=it.catch(function(st){return console.trace(st),jt(st)})),it}finally{Qe&&Ot()}},Fn.prototype.get=function(q,X){var de=this;return q&&q.constructor===Object?this.where(q).first(X):q==null?jt(new oe.Type("Invalid argument to Table.get()")):this._trans("readonly",function(we){return de.core.get({trans:we,key:q}).then(function(Ne){return de.hook.reading.fire(Ne)})}).then(X)},Fn.prototype.where=function(q){if(typeof q=="string")return new this.db.WhereClause(this,q);if(s(q))return new this.db.WhereClause(this,"[".concat(q.join("+"),"]"));var X=a(q);if(X.length===1)return this.where(X[0]).equals(q[X[0]]);var de=this.schema.indexes.concat(this.schema.primKey).filter(function(Qe){if(Qe.compound&&X.every(function(st){return 0<=Qe.keyPath.indexOf(st)})){for(var it=0;it<X.length;++it)if(X.indexOf(Qe.keyPath[it])===-1)return!1;return!0}return!1}).sort(function(Qe,it){return Qe.keyPath.length-it.keyPath.length})[0];if(de&&this.db._maxKey!==Pe){var Le=de.keyPath.slice(0,X.length);return this.where(Le).equals(Le.map(function(it){return q[it]}))}!de&&ye&&console.warn("The query ".concat(JSON.stringify(q)," on ").concat(this.name," would benefit from a ")+"compound index [".concat(X.join("+"),"]"));var we=this.schema.idxByName;function Ne(Qe,it){return $e(Qe,it)===0}var We=X.reduce(function(Je,it){var st=Je[0],ft=Je[1],Je=we[it],gt=q[it];return[st||Je,st||!Je?R(ft,Je&&Je.multi?function(ot){return ot=S(ot,it),s(ot)&&ot.some(function(ut){return Ne(gt,ut)})}:function(ot){return Ne(gt,S(ot,it))}):ft]},[null,null]),Le=We[0],We=We[1];return Le?this.where(Le.name).equals(q[Le.keyPath]).filter(We):de?this.filter(We):this.where(X).equals("")},Fn.prototype.filter=function(q){return this.toCollection().and(q)},Fn.prototype.count=function(q){return this.toCollection().count(q)},Fn.prototype.offset=function(q){return this.toCollection().offset(q)},Fn.prototype.limit=function(q){return this.toCollection().limit(q)},Fn.prototype.each=function(q){return this.toCollection().each(q)},Fn.prototype.toArray=function(q){return this.toCollection().toArray(q)},Fn.prototype.toCollection=function(){return new this.db.Collection(new this.db.WhereClause(this))},Fn.prototype.orderBy=function(q){return new this.db.Collection(new this.db.WhereClause(this,s(q)?"[".concat(q.join("+"),"]"):q))},Fn.prototype.reverse=function(){return this.toCollection().reverse()},Fn.prototype.mapToClass=function(q){var X,de=this.db,we=this.name;function Ne(){return X!==null&&X.apply(this,arguments)||this}(this.schema.mappedClass=q).prototype instanceof xe&&(function(it,st){if(typeof st!="function"&&st!==null)throw new TypeError("Class extends value "+String(st)+" is not a constructor or null");function ft(){this.constructor=it}n(it,st),it.prototype=st===null?Object.create(st):(ft.prototype=st.prototype,new ft)}(Ne,X=q),Object.defineProperty(Ne.prototype,"db",{get:function(){return de},enumerable:!1,configurable:!0}),Ne.prototype.table=function(){return we},q=Ne);for(var Le=new Set,We=q.prototype;We;We=c(We))Object.getOwnPropertyNames(We).forEach(function(it){return Le.add(it)});function Qe(it){if(!it)return it;var st,ft=Object.create(q.prototype);for(st in it)if(!Le.has(st))try{ft[st]=it[st]}catch{}return ft}return this.schema.readHook&&this.hook.reading.unsubscribe(this.schema.readHook),this.schema.readHook=Qe,this.hook("reading",Qe),q},Fn.prototype.defineClass=function(){return this.mapToClass(function(q){l(this,q)})},Fn.prototype.add=function(q,X){var de=this,we=this.schema.primKey,Ne=we.auto,Le=we.keyPath,We=q;return Le&&Ne&&(We=Z(Le)(q)),this._trans("readwrite",function(Qe){return de.core.mutate({trans:Qe,type:"add",keys:X!=null?[X]:null,values:[We]})}).then(function(Qe){return Qe.numFailures?Ue.reject(Qe.failures[0]):Qe.lastResult}).then(function(Qe){if(Le)try{C(q,Le,Qe)}catch{}return Qe})},Fn.prototype.update=function(q,X){return typeof q!="object"||s(q)?this.where(":id").equals(q).modify(X):(q=S(q,this.schema.primKey.keyPath),q===void 0?jt(new oe.InvalidArgument("Given object does not contain its primary key")):this.where(":id").equals(q).modify(X))},Fn.prototype.put=function(q,X){var de=this,we=this.schema.primKey,Ne=we.auto,Le=we.keyPath,We=q;return Le&&Ne&&(We=Z(Le)(q)),this._trans("readwrite",function(Qe){return de.core.mutate({trans:Qe,type:"put",values:[We],keys:X!=null?[X]:null})}).then(function(Qe){return Qe.numFailures?Ue.reject(Qe.failures[0]):Qe.lastResult}).then(function(Qe){if(Le)try{C(q,Le,Qe)}catch{}return Qe})},Fn.prototype.delete=function(q){var X=this;return this._trans("readwrite",function(de){return X.core.mutate({trans:de,type:"delete",keys:[q]})}).then(function(de){return de.numFailures?Ue.reject(de.failures[0]):void 0})},Fn.prototype.clear=function(){var q=this;return this._trans("readwrite",function(X){return q.core.mutate({trans:X,type:"deleteRange",range:$})}).then(function(X){return X.numFailures?Ue.reject(X.failures[0]):void 0})},Fn.prototype.bulkGet=function(q){var X=this;return this._trans("readonly",function(de){return X.core.getMany({keys:q,trans:de}).then(function(we){return we.map(function(Ne){return X.hook.reading.fire(Ne)})})})},Fn.prototype.bulkAdd=function(q,X,de){var we=this,Ne=Array.isArray(X)?X:void 0,Le=(de=de||(Ne?void 0:X))?de.allKeys:void 0;return this._trans("readwrite",function(We){var st=we.schema.primKey,Qe=st.auto,st=st.keyPath;if(st&&Ne)throw new oe.InvalidArgument("bulkAdd(): keys argument invalid on tables with inbound keys");if(Ne&&Ne.length!==q.length)throw new oe.InvalidArgument("Arguments objects and keys must have the same length");var it=q.length,st=st&&Qe?q.map(Z(st)):q;return we.core.mutate({trans:We,type:"add",keys:Ne,values:st,wantResults:Le}).then(function(ut){var Je=ut.numFailures,gt=ut.results,ot=ut.lastResult,ut=ut.failures;if(Je===0)return Le?gt:ot;throw new ae("".concat(we.name,".bulkAdd(): ").concat(Je," of ").concat(it," operations failed"),ut)})})},Fn.prototype.bulkPut=function(q,X,de){var we=this,Ne=Array.isArray(X)?X:void 0,Le=(de=de||(Ne?void 0:X))?de.allKeys:void 0;return this._trans("readwrite",function(We){var st=we.schema.primKey,Qe=st.auto,st=st.keyPath;if(st&&Ne)throw new oe.InvalidArgument("bulkPut(): keys argument invalid on tables with inbound keys");if(Ne&&Ne.length!==q.length)throw new oe.InvalidArgument("Arguments objects and keys must have the same length");var it=q.length,st=st&&Qe?q.map(Z(st)):q;return we.core.mutate({trans:We,type:"put",keys:Ne,values:st,wantResults:Le}).then(function(ut){var Je=ut.numFailures,gt=ut.results,ot=ut.lastResult,ut=ut.failures;if(Je===0)return Le?gt:ot;throw new ae("".concat(we.name,".bulkPut(): ").concat(Je," of ").concat(it," operations failed"),ut)})})},Fn.prototype.bulkUpdate=function(q){var X=this,de=this.core,we=q.map(function(We){return We.key}),Ne=q.map(function(We){return We.changes}),Le=[];return this._trans("readwrite",function(We){return de.getMany({trans:We,keys:we,cache:"clone"}).then(function(Qe){var it=[],st=[];q.forEach(function(Je,gt){var ot=Je.key,ut=Je.changes,mt=Qe[gt];if(mt){for(var lt=0,xt=Object.keys(ut);lt<xt.length;lt++){var Lt=xt[lt],Ft=ut[Lt];if(Lt===X.schema.primKey.keyPath){if($e(Ft,ot)!==0)throw new oe.Constraint("Cannot update primary key in bulkUpdate()")}else C(mt,Lt,Ft)}Le.push(gt),it.push(ot),st.push(mt)}});var ft=it.length;return de.mutate({trans:We,type:"put",keys:it,values:st,updates:{keys:we,changeSpecs:Ne}}).then(function(Je){var gt=Je.numFailures,ot=Je.failures;if(gt===0)return ft;for(var ut=0,mt=Object.keys(ot);ut<mt.length;ut++){var lt,xt=mt[ut],Lt=Le[Number(xt)];Lt!=null&&(lt=ot[xt],delete ot[xt],ot[Lt]=lt)}throw new ae("".concat(X.name,".bulkUpdate(): ").concat(gt," of ").concat(ft," operations failed"),ot)})})})},Fn.prototype.bulkDelete=function(q){var X=this,de=q.length;return this._trans("readwrite",function(we){return X.core.mutate({trans:we,type:"delete",keys:q})}).then(function(We){var Ne=We.numFailures,Le=We.lastResult,We=We.failures;if(Ne===0)return Le;throw new ae("".concat(X.name,".bulkDelete(): ").concat(Ne," of ").concat(de," operations failed"),We)})},Fn);function Fn(){}function Xr(q){function X(We,Qe){if(Qe){for(var it=arguments.length,st=new Array(it-1);--it;)st[it-1]=arguments[it];return de[We].subscribe.apply(null,st),q}if(typeof We=="string")return de[We]}var de={};X.addEventType=Le;for(var we=1,Ne=arguments.length;we<Ne;++we)Le(arguments[we]);return X;function Le(We,Qe,it){if(typeof We!="object"){var st;Qe=Qe||Se;var ft={subscribers:[],fire:it=it||ue,subscribe:function(Je){ft.subscribers.indexOf(Je)===-1&&(ft.subscribers.push(Je),ft.fire=Qe(ft.fire,Je))},unsubscribe:function(Je){ft.subscribers=ft.subscribers.filter(function(gt){return gt!==Je}),ft.fire=ft.subscribers.reduce(Qe,it)}};return de[We]=X[We]=ft}a(st=We).forEach(function(Je){var gt=st[Je];if(s(gt))Le(Je,st[Je][0],st[Je][1]);else{if(gt!=="asap")throw new oe.InvalidArgument("Invalid event config");var ot=Le(Je,le,function(){for(var ut=arguments.length,mt=new Array(ut);ut--;)mt[ut]=arguments[ut];ot.subscribers.forEach(function(lt){w(function(){lt.apply(null,mt)})})})}})}}function Lr(q,X){return g(X).from({prototype:q}),X}function vi(q,X){return!(q.filter||q.algorithm||q.or)&&(X?q.justLimit:!q.replayFilter)}function Sr(q,X){q.filter=R(q.filter,X)}function ln(q,X,de){var we=q.replayFilter;q.replayFilter=we?function(){return R(we(),X())}:X,q.justLimit=de&&!we}function _n(q,X){if(q.isPrimKey)return X.primaryKey;var de=X.getIndexByKeyPath(q.index);if(!de)throw new oe.Schema("KeyPath "+q.index+" on object store "+X.name+" is not indexed");return de}function Er(q,X,de){var we=_n(q,X.schema);return X.openCursor({trans:de,values:!q.keysOnly,reverse:q.dir==="prev",unique:!!q.unique,query:{index:we,range:q.range}})}function on(q,X,de,we){var Ne=q.replayFilter?R(q.filter,q.replayFilter()):q.filter;if(q.or){var Le={},We=function(Qe,it,st){var ft,Je;Ne&&!Ne(it,st,function(gt){return it.stop(gt)},function(gt){return it.fail(gt)})||((Je=""+(ft=it.primaryKey))=="[object ArrayBuffer]"&&(Je=""+new Uint8Array(ft)),d(Le,Je)||(Le[Je]=!0,X(Qe,it,st)))};return Promise.all([q.or._iterate(We,de),an(Er(q,we,de),q.algorithm,We,!q.keysOnly&&q.valueMapper)])}return an(Er(q,we,de),R(q.algorithm,Ne),X,!q.keysOnly&&q.valueMapper)}function an(q,X,de,we){var Ne=Ye(we?function(Le,We,Qe){return de(we(Le),We,Qe)}:de);return q.then(function(Le){if(Le)return Le.start(function(){var We=function(){return Le.continue()};X&&!X(Le,function(Qe){return We=Qe},function(Qe){Le.stop(Qe),We=ue},function(Qe){Le.fail(Qe),We=ue})||Ne(Le.value,Le,function(Qe){return We=Qe}),We()})})}var Gn=Symbol(),_r=(oi.prototype.execute=function(q){if(this.add!==void 0){var X=this.add;if(s(X))return i(i([],s(q)?q:[],!0),X).sort();if(typeof X=="number")return(Number(q)||0)+X;if(typeof X=="bigint")try{return BigInt(q)+X}catch{return BigInt(0)+X}throw new TypeError("Invalid term ".concat(X))}if(this.remove!==void 0){var de=this.remove;if(s(de))return s(q)?q.filter(function(we){return!de.includes(we)}).sort():[];if(typeof de=="number")return Number(q)-de;if(typeof de=="bigint")try{return BigInt(q)-de}catch{return BigInt(0)-de}throw new TypeError("Invalid subtrahend ".concat(de))}return X=(X=this.replacePrefix)===null||X===void 0?void 0:X[0],X&&typeof q=="string"&&q.startsWith(X)?this.replacePrefix[1]+q.substring(X.length):q},oi);function oi(q){Object.assign(this,q)}var Zi=(nr.prototype._read=function(q,X){var de=this._ctx;return de.error?de.table._trans(null,jt.bind(null,de.error)):de.table._trans("readonly",q).then(X)},nr.prototype._write=function(q){var X=this._ctx;return X.error?X.table._trans(null,jt.bind(null,X.error)):X.table._trans("readwrite",q,"locked")},nr.prototype._addAlgorithm=function(q){var X=this._ctx;X.algorithm=R(X.algorithm,q)},nr.prototype._iterate=function(q,X){return on(this._ctx,q,X,this._ctx.table.core)},nr.prototype.clone=function(q){var X=Object.create(this.constructor.prototype),de=Object.create(this._ctx);return q&&l(de,q),X._ctx=de,X},nr.prototype.raw=function(){return this._ctx.valueMapper=null,this},nr.prototype.each=function(q){var X=this._ctx;return this._read(function(de){return on(X,q,de,X.table.core)})},nr.prototype.count=function(q){var X=this;return this._read(function(de){var we=X._ctx,Ne=we.table.core;if(vi(we,!0))return Ne.count({trans:de,query:{index:_n(we,Ne.schema),range:we.range}}).then(function(We){return Math.min(We,we.limit)});var Le=0;return on(we,function(){return++Le,!1},de,Ne).then(function(){return Le})}).then(q)},nr.prototype.sortBy=function(q,X){var de=q.split(".").reverse(),we=de[0],Ne=de.length-1;function Le(it,st){return st?Le(it[de[st]],st-1):it[we]}var We=this._ctx.dir==="next"?1:-1;function Qe(it,st){return $e(Le(it,Ne),Le(st,Ne))*We}return this.toArray(function(it){return it.sort(Qe)}).then(X)},nr.prototype.toArray=function(q){var X=this;return this._read(function(de){var we=X._ctx;if(we.dir==="next"&&vi(we,!0)&&0<we.limit){var Ne=we.valueMapper,Le=_n(we,we.table.core.schema);return we.table.core.query({trans:de,limit:we.limit,values:!0,query:{index:Le,range:we.range}}).then(function(Qe){return Qe=Qe.result,Ne?Qe.map(Ne):Qe})}var We=[];return on(we,function(Qe){return We.push(Qe)},de,we.table.core).then(function(){return We})},q)},nr.prototype.offset=function(q){var X=this._ctx;return q<=0||(X.offset+=q,vi(X)?ln(X,function(){var de=q;return function(we,Ne){return de===0||(de===1?--de:Ne(function(){we.advance(de),de=0}),!1)}}):ln(X,function(){var de=q;return function(){return--de<0}})),this},nr.prototype.limit=function(q){return this._ctx.limit=Math.min(this._ctx.limit,q),ln(this._ctx,function(){var X=q;return function(de,we,Ne){return--X<=0&&we(Ne),0<=X}},!0),this},nr.prototype.until=function(q,X){return Sr(this._ctx,function(de,we,Ne){return!q(de.value)||(we(Ne),X)}),this},nr.prototype.first=function(q){return this.limit(1).toArray(function(X){return X[0]}).then(q)},nr.prototype.last=function(q){return this.reverse().first(q)},nr.prototype.filter=function(q){var X;return Sr(this._ctx,function(de){return q(de.value)}),(X=this._ctx).isMatch=R(X.isMatch,q),this},nr.prototype.and=function(q){return this.filter(q)},nr.prototype.or=function(q){return new this.db.WhereClause(this._ctx.table,q,this)},nr.prototype.reverse=function(){return this._ctx.dir=this._ctx.dir==="prev"?"next":"prev",this._ondirectionchange&&this._ondirectionchange(this._ctx.dir),this},nr.prototype.desc=function(){return this.reverse()},nr.prototype.eachKey=function(q){var X=this._ctx;return X.keysOnly=!X.isMatch,this.each(function(de,we){q(we.key,we)})},nr.prototype.eachUniqueKey=function(q){return this._ctx.unique="unique",this.eachKey(q)},nr.prototype.eachPrimaryKey=function(q){var X=this._ctx;return X.keysOnly=!X.isMatch,this.each(function(de,we){q(we.primaryKey,we)})},nr.prototype.keys=function(q){var X=this._ctx;X.keysOnly=!X.isMatch;var de=[];return this.each(function(we,Ne){de.push(Ne.key)}).then(function(){return de}).then(q)},nr.prototype.primaryKeys=function(q){var X=this._ctx;if(X.dir==="next"&&vi(X,!0)&&0<X.limit)return this._read(function(we){var Ne=_n(X,X.table.core.schema);return X.table.core.query({trans:we,values:!1,limit:X.limit,query:{index:Ne,range:X.range}})}).then(function(we){return we.result}).then(q);X.keysOnly=!X.isMatch;var de=[];return this.each(function(we,Ne){de.push(Ne.primaryKey)}).then(function(){return de}).then(q)},nr.prototype.uniqueKeys=function(q){return this._ctx.unique="unique",this.keys(q)},nr.prototype.firstKey=function(q){return this.limit(1).keys(function(X){return X[0]}).then(q)},nr.prototype.lastKey=function(q){return this.reverse().firstKey(q)},nr.prototype.distinct=function(){var q=this._ctx,q=q.index&&q.table.schema.idxByName[q.index];if(!q||!q.multi)return this;var X={};return Sr(this._ctx,function(Ne){var we=Ne.primaryKey.toString(),Ne=d(X,we);return X[we]=!0,!Ne}),this},nr.prototype.modify=function(q){var X=this,de=this._ctx;return this._write(function(we){var Ne,Le,We;We=typeof q=="function"?q:(Ne=a(q),Le=Ne.length,function(lt){for(var xt=!1,Lt=0;Lt<Le;++Lt){var Ft=Ne[Lt],qt=q[Ft],hn=S(lt,Ft);qt instanceof _r?(C(lt,Ft,qt.execute(hn)),xt=!0):hn!==qt&&(C(lt,Ft,qt),xt=!0)}return xt});var Qe=de.table.core,Je=Qe.schema.primaryKey,it=Je.outbound,st=Je.extractKey,ft=200,Je=X.db._options.modifyChunkSize;Je&&(ft=typeof Je=="object"?Je[Qe.name]||Je["*"]||200:Je);function gt(lt,Ft){var Lt=Ft.failures,Ft=Ft.numFailures;ut+=lt-Ft;for(var qt=0,hn=a(Lt);qt<hn.length;qt++){var On=hn[qt];ot.push(Lt[On])}}var ot=[],ut=0,mt=[];return X.clone().primaryKeys().then(function(lt){function xt(Ft){var qt=Math.min(ft,lt.length-Ft);return Qe.getMany({trans:we,keys:lt.slice(Ft,Ft+qt),cache:"immutable"}).then(function(hn){for(var On=[],mn=[],Cn=it?[]:null,An=[],Tn=0;Tn<qt;++Tn){var Bn=hn[Tn],Or={value:M(Bn),primKey:lt[Ft+Tn]};We.call(Or,Or.value,Or)!==!1&&(Or.value==null?An.push(lt[Ft+Tn]):it||$e(st(Bn),st(Or.value))===0?(mn.push(Or.value),it&&Cn.push(lt[Ft+Tn])):(An.push(lt[Ft+Tn]),On.push(Or.value)))}return Promise.resolve(0<On.length&&Qe.mutate({trans:we,type:"add",values:On}).then(function(Fr){for(var Br in Fr.failures)An.splice(parseInt(Br),1);gt(On.length,Fr)})).then(function(){return(0<mn.length||Lt&&typeof q=="object")&&Qe.mutate({trans:we,type:"put",keys:Cn,values:mn,criteria:Lt,changeSpec:typeof q!="function"&&q,isAdditionalChunk:0<Ft}).then(function(Fr){return gt(mn.length,Fr)})}).then(function(){return(0<An.length||Lt&&q===Fi)&&Qe.mutate({trans:we,type:"delete",keys:An,criteria:Lt,isAdditionalChunk:0<Ft}).then(function(Fr){return gt(An.length,Fr)})}).then(function(){return lt.length>Ft+qt&&xt(Ft+ft)})})}var Lt=vi(de)&&de.limit===1/0&&(typeof q!="function"||q===Fi)&&{index:de.index,range:de.range};return xt(0).then(function(){if(0<ot.length)throw new te("Error modifying one or more objects",ot,ut,mt);return lt.length})})})},nr.prototype.delete=function(){var q=this._ctx,X=q.range;return vi(q)&&(q.isPrimKey||X.type===3)?this._write(function(de){var we=q.table.core.schema.primaryKey,Ne=X;return q.table.core.count({trans:de,query:{index:we,range:Ne}}).then(function(Le){return q.table.core.mutate({trans:de,type:"deleteRange",range:Ne}).then(function(We){var Qe=We.failures;if(We.lastResult,We.results,We=We.numFailures,We)throw new te("Could not delete some values",Object.keys(Qe).map(function(it){return Qe[it]}),Le-We);return Le-We})})}):this.modify(Fi)},nr);function nr(){}var Fi=function(q,X){return X.value=null};function Zn(q,X){return q<X?-1:q===X?0:1}function dn(q,X){return X<q?-1:q===X?0:1}function wn(q,X,de){return q=q instanceof ma?new q.Collection(q):q,q._ctx.error=new(de||TypeError)(X),q}function Mn(q){return new q.Collection(q,function(){return qo("")}).limit(0)}function Qn(q,X,de,we){var Ne,Le,We,Qe,it,st,ft,Je=de.length;if(!de.every(function(ut){return typeof ut=="string"}))return wn(q,rt);function gt(ut){Ne=ut==="next"?function(lt){return lt.toUpperCase()}:function(lt){return lt.toLowerCase()},Le=ut==="next"?function(lt){return lt.toLowerCase()}:function(lt){return lt.toUpperCase()},We=ut==="next"?Zn:dn;var mt=de.map(function(lt){return{lower:Le(lt),upper:Ne(lt)}}).sort(function(lt,xt){return We(lt.lower,xt.lower)});Qe=mt.map(function(lt){return lt.upper}),it=mt.map(function(lt){return lt.lower}),ft=(st=ut)==="next"?"":we}gt("next"),q=new q.Collection(q,function(){return Mr(Qe[0],it[Je-1]+we)}),q._ondirectionchange=function(ut){gt(ut)};var ot=0;return q._addAlgorithm(function(ut,mt,lt){var xt=ut.key;if(typeof xt!="string")return!1;var Lt=Le(xt);if(X(Lt,it,ot))return!0;for(var Ft=null,qt=ot;qt<Je;++qt){var hn=function(On,mn,Cn,An,Tn,Bn){for(var Or=Math.min(On.length,An.length),Fr=-1,Br=0;Br<Or;++Br){var jl=mn[Br];if(jl!==An[Br])return Tn(On[Br],Cn[Br])<0?On.substr(0,Br)+Cn[Br]+Cn.substr(Br+1):Tn(On[Br],An[Br])<0?On.substr(0,Br)+An[Br]+Cn.substr(Br+1):0<=Fr?On.substr(0,Fr)+mn[Fr]+Cn.substr(Fr+1):null;Tn(On[Br],jl)<0&&(Fr=Br)}return Or<An.length&&Bn==="next"?On+Cn.substr(On.length):Or<On.length&&Bn==="prev"?On.substr(0,Cn.length):Fr<0?null:On.substr(0,Fr)+An[Fr]+Cn.substr(Fr+1)}(xt,Lt,Qe[qt],it[qt],We,st);hn===null&&Ft===null?ot=qt+1:(Ft===null||0<We(Ft,hn))&&(Ft=hn)}return mt(Ft!==null?function(){ut.continue(Ft+ft)}:lt),!1}),q}function Mr(q,X,de,we){return{type:2,lower:q,upper:X,lowerOpen:de,upperOpen:we}}function qo(q){return{type:1,lower:q,upper:q}}var ma=(Object.defineProperty(bi.prototype,"Collection",{get:function(){return this._ctx.table.db.Collection},enumerable:!1,configurable:!0}),bi.prototype.between=function(q,X,de,we){de=de!==!1,we=we===!0;try{return 0<this._cmp(q,X)||this._cmp(q,X)===0&&(de||we)&&(!de||!we)?Mn(this):new this.Collection(this,function(){return Mr(q,X,!de,!we)})}catch{return wn(this,Pt)}},bi.prototype.equals=function(q){return q==null?wn(this,Pt):new this.Collection(this,function(){return qo(q)})},bi.prototype.above=function(q){return q==null?wn(this,Pt):new this.Collection(this,function(){return Mr(q,void 0,!0)})},bi.prototype.aboveOrEqual=function(q){return q==null?wn(this,Pt):new this.Collection(this,function(){return Mr(q,void 0,!1)})},bi.prototype.below=function(q){return q==null?wn(this,Pt):new this.Collection(this,function(){return Mr(void 0,q,!1,!0)})},bi.prototype.belowOrEqual=function(q){return q==null?wn(this,Pt):new this.Collection(this,function(){return Mr(void 0,q)})},bi.prototype.startsWith=function(q){return typeof q!="string"?wn(this,rt):this.between(q,q+Pe,!0,!0)},bi.prototype.startsWithIgnoreCase=function(q){return q===""?this.startsWith(q):Qn(this,function(X,de){return X.indexOf(de[0])===0},[q],Pe)},bi.prototype.equalsIgnoreCase=function(q){return Qn(this,function(X,de){return X===de[0]},[q],"")},bi.prototype.anyOfIgnoreCase=function(){var q=L.apply(z,arguments);return q.length===0?Mn(this):Qn(this,function(X,de){return de.indexOf(X)!==-1},q,"")},bi.prototype.startsWithAnyOfIgnoreCase=function(){var q=L.apply(z,arguments);return q.length===0?Mn(this):Qn(this,function(X,de){return de.some(function(we){return X.indexOf(we)===0})},q,Pe)},bi.prototype.anyOf=function(){var q=this,X=L.apply(z,arguments),de=this._cmp;try{X.sort(de)}catch{return wn(this,Pt)}if(X.length===0)return Mn(this);var we=new this.Collection(this,function(){return Mr(X[0],X[X.length-1])});we._ondirectionchange=function(Le){de=Le==="next"?q._ascending:q._descending,X.sort(de)};var Ne=0;return we._addAlgorithm(function(Le,We,Qe){for(var it=Le.key;0<de(it,X[Ne]);)if(++Ne===X.length)return We(Qe),!1;return de(it,X[Ne])===0||(We(function(){Le.continue(X[Ne])}),!1)}),we},bi.prototype.notEqual=function(q){return this.inAnyRange([[-1/0,q],[q,this.db._maxKey]],{includeLowers:!1,includeUppers:!1})},bi.prototype.noneOf=function(){var q=L.apply(z,arguments);if(q.length===0)return new this.Collection(this);try{q.sort(this._ascending)}catch{return wn(this,Pt)}var X=q.reduce(function(de,we){return de?de.concat([[de[de.length-1][1],we]]):[[-1/0,we]]},null);return X.push([q[q.length-1],this.db._maxKey]),this.inAnyRange(X,{includeLowers:!1,includeUppers:!1})},bi.prototype.inAnyRange=function(xt,X){var de=this,we=this._cmp,Ne=this._ascending,Le=this._descending,We=this._min,Qe=this._max;if(xt.length===0)return Mn(this);if(!xt.every(function(Lt){return Lt[0]!==void 0&&Lt[1]!==void 0&&Ne(Lt[0],Lt[1])<=0}))return wn(this,"First argument to inAnyRange() must be an Array of two-value Arrays [lower,upper] where upper must not be lower than lower",oe.InvalidArgument);var it=!X||X.includeLowers!==!1,st=X&&X.includeUppers===!0,ft,Je=Ne;function gt(Lt,Ft){return Je(Lt[0],Ft[0])}try{(ft=xt.reduce(function(Lt,Ft){for(var qt=0,hn=Lt.length;qt<hn;++qt){var On=Lt[qt];if(we(Ft[0],On[1])<0&&0<we(Ft[1],On[0])){On[0]=We(On[0],Ft[0]),On[1]=Qe(On[1],Ft[1]);break}}return qt===hn&&Lt.push(Ft),Lt},[])).sort(gt)}catch{return wn(this,Pt)}var ot=0,ut=st?function(Lt){return 0<Ne(Lt,ft[ot][1])}:function(Lt){return 0<=Ne(Lt,ft[ot][1])},mt=it?function(Lt){return 0<Le(Lt,ft[ot][0])}:function(Lt){return 0<=Le(Lt,ft[ot][0])},lt=ut,xt=new this.Collection(this,function(){return Mr(ft[0][0],ft[ft.length-1][1],!it,!st)});return xt._ondirectionchange=function(Lt){Je=Lt==="next"?(lt=ut,Ne):(lt=mt,Le),ft.sort(gt)},xt._addAlgorithm(function(Lt,Ft,qt){for(var hn,On=Lt.key;lt(On);)if(++ot===ft.length)return Ft(qt),!1;return!ut(hn=On)&&!mt(hn)||(de._cmp(On,ft[ot][1])===0||de._cmp(On,ft[ot][0])===0||Ft(function(){Je===Ne?Lt.continue(ft[ot][0]):Lt.continue(ft[ot][1])}),!1)}),xt},bi.prototype.startsWithAnyOf=function(){var q=L.apply(z,arguments);return q.every(function(X){return typeof X=="string"})?q.length===0?Mn(this):this.inAnyRange(q.map(function(X){return[X,X+Pe]})):wn(this,"startsWithAnyOf() only works with strings")},bi);function bi(){}function ga(q){return Ye(function(X){return tp(X),q(X.target.error),!1})}function tp(q){q.stopPropagation&&q.stopPropagation(),q.preventDefault&&q.preventDefault()}var np="storagemutated",Ug="x-storagemutated-1",kn=Xr(null,np),hr=(Zr.prototype._lock=function(){return E(!Me.global),++this._reculock,this._reculock!==1||Me.global||(Me.lockOwnerFor=this),this},Zr.prototype._unlock=function(){if(E(!Me.global),--this._reculock==0)for(Me.global||(Me.lockOwnerFor=null);0<this._blockedFuncs.length&&!this._locked();){var q=this._blockedFuncs.shift();try{Ht(q[1],q[0])}catch{}}return this},Zr.prototype._locked=function(){return this._reculock&&Me.lockOwnerFor!==this},Zr.prototype.create=function(q){var X=this;if(!this.mode)return this;var de=this.db.idbdb,we=this.db._state.dbOpenError;if(E(!this.idbtrans),!q&&!de)switch(we&&we.name){case"DatabaseClosedError":throw new oe.DatabaseClosed(we);case"MissingAPIError":throw new oe.MissingAPI(we.message,we);default:throw new oe.OpenFailed(we)}if(!this.active)throw new oe.TransactionInactive;return E(this._completion._state===null),(q=this.idbtrans=q||(this.db.core||de).transaction(this.storeNames,this.mode,{durability:this.chromeTransactionDurability})).onerror=Ye(function(Ne){tp(Ne),X._reject(q.error)}),q.onabort=Ye(function(Ne){tp(Ne),X.active&&X._reject(new oe.Abort(q.error)),X.active=!1,X.on("abort").fire(Ne)}),q.oncomplete=Ye(function(){X.active=!1,X._resolve(),"mutatedParts"in q&&kn.storagemutated.fire(q.mutatedParts)}),this},Zr.prototype._promise=function(q,X,de){var we=this;if(q==="readwrite"&&this.mode!=="readwrite")return jt(new oe.ReadOnly("Transaction is readonly"));if(!this.active)return jt(new oe.TransactionInactive);if(this._locked())return new Ue(function(Le,We){we._blockedFuncs.push([function(){we._promise(q,X,de).then(Le,We)},Me])});if(de)return vt(function(){var Le=new Ue(function(We,Qe){we._lock();var it=X(We,Qe,we);it&&it.then&&it.then(We,Qe)});return Le.finally(function(){return we._unlock()}),Le._lib=!0,Le});var Ne=new Ue(function(Le,We){var Qe=X(Le,We,we);Qe&&Qe.then&&Qe.then(Le,We)});return Ne._lib=!0,Ne},Zr.prototype._root=function(){return this.parent?this.parent._root():this},Zr.prototype.waitFor=function(q){var X,de=this._root(),we=Ue.resolve(q);de._waitingFor?de._waitingFor=de._waitingFor.then(function(){return we}):(de._waitingFor=we,de._waitingQueue=[],X=de.idbtrans.objectStore(de.storeNames[0]),function Le(){for(++de._spinCount;de._waitingQueue.length;)de._waitingQueue.shift()();de._waitingFor&&(X.get(-1/0).onsuccess=Le)}());var Ne=de._waitingFor;return new Ue(function(Le,We){we.then(function(Qe){return de._waitingQueue.push(Ye(Le.bind(null,Qe)))},function(Qe){return de._waitingQueue.push(Ye(We.bind(null,Qe)))}).finally(function(){de._waitingFor===Ne&&(de._waitingFor=null)})})},Zr.prototype.abort=function(){this.active&&(this.active=!1,this.idbtrans&&this.idbtrans.abort(),this._reject(new oe.Abort))},Zr.prototype.table=function(q){var X=this._memoizedTables||(this._memoizedTables={});if(d(X,q))return X[q];var de=this.schema[q];if(!de)throw new oe.NotFound("Table "+q+" not part of transaction");return de=new this.db.Table(q,de,this),de.core=this.db.core.table(q),X[q]=de},Zr);function Zr(){}function Co(q,X,de,we,Ne,Le,We){return{name:q,keyPath:X,unique:de,multi:we,auto:Ne,compound:Le,src:(de&&!We?"&":"")+(we?"*":"")+(Ne?"++":"")+Ji(X)}}function Ji(q){return typeof q=="string"?q:q?"["+[].join.call(q,"+")+"]":""}function Dh(q,X,de){return{name:q,primKey:X,indexes:de,mappedClass:null,idxByName:(we=function(Ne){return[Ne.name,Ne]},de.reduce(function(Ne,Le,We){return We=we(Le,We),We&&(Ne[We[0]]=We[1]),Ne},{}))};var we}var rp=function(q){try{return q.only([[]]),rp=function(){return[[]]},[[]]}catch{return rp=function(){return Pe},Pe}};function U0(q){return q==null?function(){}:typeof q=="string"?(X=q).split(".").length===1?function(de){return de[X]}:function(de){return S(de,X)}:function(de){return S(de,q)};var X}function zg(q){return[].slice.call(q)}var k3e=0;function hE(q){return q==null?":id":typeof q=="string"?q:"[".concat(q.join("+"),"]")}function P3e(q,X,it){function we(lt){if(lt.type===3)return null;if(lt.type===4)throw new Error("Cannot convert never type to IDBKeyRange");var ot=lt.lower,ut=lt.upper,mt=lt.lowerOpen,lt=lt.upperOpen;return ot===void 0?ut===void 0?null:X.upperBound(ut,!!lt):ut===void 0?X.lowerBound(ot,!!mt):X.bound(ot,ut,!!mt,!!lt)}function Ne(gt){var ot,ut=gt.name;return{name:ut,schema:gt,mutate:function(mt){var lt=mt.trans,xt=mt.type,Lt=mt.keys,Ft=mt.values,qt=mt.range;return new Promise(function(hn,On){hn=Ye(hn);var mn=lt.objectStore(ut),Cn=mn.keyPath==null,An=xt==="put"||xt==="add";if(!An&&xt!=="delete"&&xt!=="deleteRange")throw new Error("Invalid operation type: "+xt);var Tn,Bn=(Lt||Ft||{length:1}).length;if(Lt&&Ft&&Lt.length!==Ft.length)throw new Error("Given keys array must have same length as given values array.");if(Bn===0)return hn({numFailures:0,failures:{},results:[],lastResult:void 0});function Or(Fs){++jl,tp(Fs)}var Fr=[],Br=[],jl=0;if(xt==="deleteRange"){if(qt.type===4)return hn({numFailures:jl,failures:Br,results:[],lastResult:void 0});qt.type===3?Fr.push(Tn=mn.clear()):Fr.push(Tn=mn.delete(we(qt)))}else{var Cn=An?Cn?[Ft,Lt]:[Ft,null]:[Lt,null],Tr=Cn[0],ps=Cn[1];if(An)for(var hs=0;hs<Bn;++hs)Fr.push(Tn=ps&&ps[hs]!==void 0?mn[xt](Tr[hs],ps[hs]):mn[xt](Tr[hs])),Tn.onerror=Or;else for(hs=0;hs<Bn;++hs)Fr.push(Tn=mn[xt](Tr[hs])),Tn.onerror=Or}function DO(Fs){Fs=Fs.target.result,Fr.forEach(function(Wg,X9){return Wg.error!=null&&(Br[X9]=Wg.error)}),hn({numFailures:jl,failures:Br,results:xt==="delete"?Lt:Fr.map(function(Wg){return Wg.result}),lastResult:Fs})}Tn.onerror=function(Fs){Or(Fs),DO(Fs)},Tn.onsuccess=DO})},getMany:function(mt){var lt=mt.trans,xt=mt.keys;return new Promise(function(Lt,Ft){Lt=Ye(Lt);for(var qt,hn=lt.objectStore(ut),On=xt.length,mn=new Array(On),Cn=0,An=0,Tn=function(Fr){Fr=Fr.target,mn[Fr._pos]=Fr.result,++An===Cn&&Lt(mn)},Bn=ga(Ft),Or=0;Or<On;++Or)xt[Or]!=null&&((qt=hn.get(xt[Or]))._pos=Or,qt.onsuccess=Tn,qt.onerror=Bn,++Cn);Cn===0&&Lt(mn)})},get:function(mt){var lt=mt.trans,xt=mt.key;return new Promise(function(Lt,Ft){Lt=Ye(Lt);var qt=lt.objectStore(ut).get(xt);qt.onsuccess=function(hn){return Lt(hn.target.result)},qt.onerror=ga(Ft)})},query:(ot=st,function(mt){return new Promise(function(lt,xt){lt=Ye(lt);var Lt,Ft,qt,Cn=mt.trans,hn=mt.values,On=mt.limit,Tn=mt.query,mn=On===1/0?void 0:On,An=Tn.index,Tn=Tn.range,Cn=Cn.objectStore(ut),An=An.isPrimaryKey?Cn:Cn.index(An.name),Tn=we(Tn);if(On===0)return lt({result:[]});ot?((mn=hn?An.getAll(Tn,mn):An.getAllKeys(Tn,mn)).onsuccess=function(Bn){return lt({result:Bn.target.result})},mn.onerror=ga(xt)):(Lt=0,Ft=!hn&&"openKeyCursor"in An?An.openKeyCursor(Tn):An.openCursor(Tn),qt=[],Ft.onsuccess=function(Bn){var Or=Ft.result;return Or?(qt.push(hn?Or.value:Or.primaryKey),++Lt===On?lt({result:qt}):void Or.continue()):lt({result:qt})},Ft.onerror=ga(xt))})}),openCursor:function(mt){var lt=mt.trans,xt=mt.values,Lt=mt.query,Ft=mt.reverse,qt=mt.unique;return new Promise(function(hn,On){hn=Ye(hn);var An=Lt.index,mn=Lt.range,Cn=lt.objectStore(ut),Cn=An.isPrimaryKey?Cn:Cn.index(An.name),An=Ft?qt?"prevunique":"prev":qt?"nextunique":"next",Tn=!xt&&"openKeyCursor"in Cn?Cn.openKeyCursor(we(mn),An):Cn.openCursor(we(mn),An);Tn.onerror=ga(On),Tn.onsuccess=Ye(function(Bn){var Or,Fr,Br,jl,Tr=Tn.result;Tr?(Tr.___id=++k3e,Tr.done=!1,Or=Tr.continue.bind(Tr),Fr=(Fr=Tr.continuePrimaryKey)&&Fr.bind(Tr),Br=Tr.advance.bind(Tr),jl=function(){throw new Error("Cursor not stopped")},Tr.trans=lt,Tr.stop=Tr.continue=Tr.continuePrimaryKey=Tr.advance=function(){throw new Error("Cursor not started")},Tr.fail=Ye(On),Tr.next=function(){var ps=this,hs=1;return this.start(function(){return hs--?ps.continue():ps.stop()}).then(function(){return ps})},Tr.start=function(ps){function hs(){if(Tn.result)try{ps()}catch(Fs){Tr.fail(Fs)}else Tr.done=!0,Tr.start=function(){throw new Error("Cursor behind last entry")},Tr.stop()}var DO=new Promise(function(Fs,Wg){Fs=Ye(Fs),Tn.onerror=ga(Wg),Tr.fail=Wg,Tr.stop=function(X9){Tr.stop=Tr.continue=Tr.continuePrimaryKey=Tr.advance=jl,Fs(X9)}});return Tn.onsuccess=Ye(function(Fs){Tn.onsuccess=hs,hs()}),Tr.continue=Or,Tr.continuePrimaryKey=Fr,Tr.advance=Br,hs(),DO},hn(Tr)):hn(null)},On)})},count:function(mt){var lt=mt.query,xt=mt.trans,Lt=lt.index,Ft=lt.range;return new Promise(function(qt,hn){var On=xt.objectStore(ut),mn=Lt.isPrimaryKey?On:On.index(Lt.name),On=we(Ft),mn=On?mn.count(On):mn.count();mn.onsuccess=Ye(function(Cn){return qt(Cn.target.result)}),mn.onerror=ga(hn)})}}}var Le,We,Qe,ft=(We=it,Qe=zg((Le=q).objectStoreNames),{schema:{name:Le.name,tables:Qe.map(function(gt){return We.objectStore(gt)}).map(function(gt){var ot=gt.keyPath,lt=gt.autoIncrement,ut=s(ot),mt={},lt={name:gt.name,primaryKey:{name:null,isPrimaryKey:!0,outbound:ot==null,compound:ut,keyPath:ot,autoIncrement:lt,unique:!0,extractKey:U0(ot)},indexes:zg(gt.indexNames).map(function(xt){return gt.index(xt)}).map(function(qt){var Lt=qt.name,Ft=qt.unique,hn=qt.multiEntry,qt=qt.keyPath,hn={name:Lt,compound:s(qt),keyPath:qt,unique:Ft,multiEntry:hn,extractKey:U0(qt)};return mt[hE(qt)]=hn}),getIndexByKeyPath:function(xt){return mt[hE(xt)]}};return mt[":id"]=lt.primaryKey,ot!=null&&(mt[hE(ot)]=lt.primaryKey),lt})},hasGetAll:0<Qe.length&&"getAll"in We.objectStore(Qe[0])&&!(typeof navigator<"u"&&/Safari/.test(navigator.userAgent)&&!/(Chrome\/|Edge\/)/.test(navigator.userAgent)&&[].concat(navigator.userAgent.match(/Safari\/(\d*)/))[1]<604)}),it=ft.schema,st=ft.hasGetAll,ft=it.tables.map(Ne),Je={};return ft.forEach(function(gt){return Je[gt.name]=gt}),{stack:"dbcore",transaction:q.transaction.bind(q),table:function(gt){if(!Je[gt])throw new Error("Table '".concat(gt,"' not found"));return Je[gt]},MIN_KEY:-1/0,MAX_KEY:rp(X),schema:it}}function D3e(q,X,de,we){var Ne=de.IDBKeyRange;return de.indexedDB,{dbcore:(we=P3e(X,Ne,we),q.dbcore.reduce(function(Le,We){return We=We.create,r(r({},Le),We(Le))},we))}}function CO(q,we){var de=we.db,we=D3e(q._middlewares,de,q._deps,we);q.core=we.dbcore,q.tables.forEach(function(Ne){var Le=Ne.name;q.core.schema.tables.some(function(We){return We.name===Le})&&(Ne.core=q.core.table(Le),q[Le]instanceof q.Table&&(q[Le].core=Ne.core))})}function wO(q,X,de,we){de.forEach(function(Ne){var Le=we[Ne];X.forEach(function(We){var Qe=function it(st,ft){return v(st,ft)||(st=c(st))&&it(st,ft)}(We,Ne);(!Qe||"value"in Qe&&Qe.value===void 0)&&(We===q.Transaction.prototype||We instanceof q.Transaction?m(We,Ne,{get:function(){return this.table(Ne)},set:function(it){h(this,Ne,{value:it,writable:!0,configurable:!0,enumerable:!0})}}):We[Ne]=new q.Table(Ne,Le))})})}function P9(q,X){X.forEach(function(de){for(var we in de)de[we]instanceof q.Table&&delete de[we]})}function L3e(q,X){return q._cfg.version-X._cfg.version}function $3e(q,X,de,we){var Ne=q._dbSchema;de.objectStoreNames.contains("$meta")&&!Ne.$meta&&(Ne.$meta=Dh("$meta",hZ("")[0],[]),q._storeNames.push("$meta"));var Le=q._createTransaction("readwrite",q._storeNames,Ne);Le.create(de),Le._completion.catch(we);var We=Le._reject.bind(Le),Qe=Me.transless||Me;vt(function(){return Me.trans=Le,Me.transless=Qe,X!==0?(CO(q,de),st=X,((it=Le).storeNames.includes("$meta")?it.table("$meta").get("version").then(function(ft){return ft??st}):Ue.resolve(st)).then(function(ft){return gt=ft,ot=Le,ut=de,mt=[],ft=(Je=q)._versions,lt=Je._dbSchema=xO(0,Je.idbdb,ut),(ft=ft.filter(function(xt){return xt._cfg.version>=gt})).length!==0?(ft.forEach(function(xt){mt.push(function(){var Lt=lt,Ft=xt._cfg.dbschema;OO(Je,Lt,ut),OO(Je,Ft,ut),lt=Je._dbSchema=Ft;var qt=D9(Lt,Ft);qt.add.forEach(function(An){L9(ut,An[0],An[1].primKey,An[1].indexes)}),qt.change.forEach(function(An){if(An.recreate)throw new oe.Upgrade("Not yet support for changing primary key");var Tn=ut.objectStore(An.name);An.add.forEach(function(Bn){return TO(Tn,Bn)}),An.change.forEach(function(Bn){Tn.deleteIndex(Bn.name),TO(Tn,Bn)}),An.del.forEach(function(Bn){return Tn.deleteIndex(Bn)})});var hn=xt._cfg.contentUpgrade;if(hn&&xt._cfg.version>gt){CO(Je,ut),ot._memoizedTables={};var On=T(Ft);qt.del.forEach(function(An){On[An]=Lt[An]}),P9(Je,[Je.Transaction.prototype]),wO(Je,[Je.Transaction.prototype],a(On),On),ot.schema=On;var mn,Cn=V(hn);return Cn&&ht(),qt=Ue.follow(function(){var An;(mn=hn(ot))&&Cn&&(An=kt.bind(null,null),mn.then(An,An))}),mn&&typeof mn.then=="function"?Ue.resolve(mn):qt.then(function(){return mn})}}),mt.push(function(Lt){var Ft,qt,hn=xt._cfg.dbschema;Ft=hn,qt=Lt,[].slice.call(qt.db.objectStoreNames).forEach(function(On){return Ft[On]==null&&qt.db.deleteObjectStore(On)}),P9(Je,[Je.Transaction.prototype]),wO(Je,[Je.Transaction.prototype],Je._storeNames,Je._dbSchema),ot.schema=Je._dbSchema}),mt.push(function(Lt){Je.idbdb.objectStoreNames.contains("$meta")&&(Math.ceil(Je.idbdb.version/10)===xt._cfg.version?(Je.idbdb.deleteObjectStore("$meta"),delete Je._dbSchema.$meta,Je._storeNames=Je._storeNames.filter(function(Ft){return Ft!=="$meta"})):Lt.objectStore("$meta").put(xt._cfg.version,"version"))})}),function xt(){return mt.length?Ue.resolve(mt.shift()(ot.idbtrans)).then(xt):Ue.resolve()}().then(function(){pZ(lt,ut)})):Ue.resolve();var Je,gt,ot,ut,mt,lt}).catch(We)):(a(Ne).forEach(function(ft){L9(de,ft,Ne[ft].primKey,Ne[ft].indexes)}),CO(q,de),void Ue.follow(function(){return q.on.populate.fire(Le)}).catch(We));var it,st})}function F3e(q,X){pZ(q._dbSchema,X),X.db.version%10!=0||X.objectStoreNames.contains("$meta")||X.db.createObjectStore("$meta").add(Math.ceil(X.db.version/10-1),"version");var de=xO(0,q.idbdb,X);OO(q,q._dbSchema,X);for(var we=0,Ne=D9(de,q._dbSchema).change;we<Ne.length;we++){var Le=function(We){if(We.change.length||We.recreate)return console.warn("Unable to patch indexes of table ".concat(We.name," because it has changes on the type of index or primary key.")),{value:void 0};var Qe=X.objectStore(We.name);We.add.forEach(function(it){ye&&console.debug("Dexie upgrade patch: Creating missing index ".concat(We.name,".").concat(it.src)),TO(Qe,it)})}(Ne[we]);if(typeof Le=="object")return Le.value}}function D9(q,X){var de,we={del:[],add:[],change:[]};for(de in q)X[de]||we.del.push(de);for(de in X){var Ne=q[de],Le=X[de];if(Ne){var We={name:de,def:Le,recreate:!1,del:[],add:[],change:[]};if(""+(Ne.primKey.keyPath||"")!=""+(Le.primKey.keyPath||"")||Ne.primKey.auto!==Le.primKey.auto)We.recreate=!0,we.change.push(We);else{var Qe=Ne.idxByName,it=Le.idxByName,st=void 0;for(st in Qe)it[st]||We.del.push(st);for(st in it){var ft=Qe[st],Je=it[st];ft?ft.src!==Je.src&&We.change.push(Je):We.add.push(Je)}(0<We.del.length||0<We.add.length||0<We.change.length)&&we.change.push(We)}}else we.add.push([de,Le])}return we}function L9(q,X,de,we){var Ne=q.db.createObjectStore(X,de.keyPath?{keyPath:de.keyPath,autoIncrement:de.auto}:{autoIncrement:de.auto});return we.forEach(function(Le){return TO(Ne,Le)}),Ne}function pZ(q,X){a(q).forEach(function(de){X.db.objectStoreNames.contains(de)||(ye&&console.debug("Dexie: Creating missing table",de),L9(X,de,q[de].primKey,q[de].indexes))})}function TO(q,X){q.createIndex(X.name,X.keyPath,{unique:X.unique,multiEntry:X.multi})}function xO(q,X,de){var we={};return b(X.objectStoreNames,0).forEach(function(Ne){for(var Le=de.objectStore(Ne),We=Co(Ji(st=Le.keyPath),st||"",!0,!1,!!Le.autoIncrement,st&&typeof st!="string",!0),Qe=[],it=0;it<Le.indexNames.length;++it){var ft=Le.index(Le.indexNames[it]),st=ft.keyPath,ft=Co(ft.name,st,!!ft.unique,!!ft.multiEntry,!1,st&&typeof st!="string",!1);Qe.push(ft)}we[Ne]=Dh(Ne,We,Qe)}),we}function OO(q,X,de){for(var we=de.db.objectStoreNames,Ne=0;Ne<we.length;++Ne){var Le=we[Ne],We=de.objectStore(Le);q._hasGetAll="getAll"in We;for(var Qe=0;Qe<We.indexNames.length;++Qe){var it=We.indexNames[Qe],st=We.index(it).keyPath,ft=typeof st=="string"?st:"["+b(st).join("+")+"]";!X[Le]||(st=X[Le].idxByName[ft])&&(st.name=it,delete X[Le].idxByName[ft],X[Le].idxByName[it]=st)}}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&&(q._hasGetAll=!1)}function hZ(q){return q.split(",").map(function(X,de){var we=(X=X.trim()).replace(/([&*]|\+\+)/g,""),Ne=/^\[/.test(we)?we.match(/^\[(.*)\]$/)[1].split("+"):we;return Co(we,Ne||null,/\&/.test(X),/\*/.test(X),/\+\+/.test(X),s(Ne),de===0)})}var B3e=(RO.prototype._parseStoresSpec=function(q,X){a(q).forEach(function(de){if(q[de]!==null){var we=hZ(q[de]),Ne=we.shift();if(Ne.unique=!0,Ne.multi)throw new oe.Schema("Primary key cannot be multi-valued");we.forEach(function(Le){if(Le.auto)throw new oe.Schema("Only primary key can be marked as autoIncrement (++)");if(!Le.keyPath)throw new oe.Schema("Index must have a name and cannot be an empty string")}),X[de]=Dh(de,Ne,we)}})},RO.prototype.stores=function(de){var X=this.db;this._cfg.storesSource=this._cfg.storesSource?l(this._cfg.storesSource,de):de;var de=X._versions,we={},Ne={};return de.forEach(function(Le){l(we,Le._cfg.storesSource),Ne=Le._cfg.dbschema={},Le._parseStoresSpec(we,Ne)}),X._dbSchema=Ne,P9(X,[X._allTables,X,X.Transaction.prototype]),wO(X,[X._allTables,X,X.Transaction.prototype,this._cfg.tables],a(Ne),Ne),X._storeNames=a(Ne),this},RO.prototype.upgrade=function(q){return this._cfg.contentUpgrade=Ce(this._cfg.contentUpgrade||ue,q),this},RO);function RO(){}function $9(q,X){var de=q._dbNamesDB;return de||(de=q._dbNamesDB=new ip(It,{addons:[],indexedDB:q,IDBKeyRange:X})).version(1).stores({dbnames:"name"}),de.table("dbnames")}function F9(q){return q&&typeof q.databases=="function"}function B9(q){return vt(function(){return Me.letThrough=!0,q()})}function j9(q){return!("from"in q)}var fs=function(q,X){if(!this){var de=new fs;return q&&"d"in q&&l(de,q),de}l(this,arguments.length?{d:1,from:q,to:1<arguments.length?X:q}:{d:0})};function mE(q,X,de){var we=$e(X,de);if(!isNaN(we)){if(0<we)throw RangeError();if(j9(q))return l(q,{from:X,to:de,d:1});var Ne=q.l,we=q.r;if($e(de,q.from)<0)return Ne?mE(Ne,X,de):q.l={from:X,to:de,d:1,l:null,r:null},gZ(q);if(0<$e(X,q.to))return we?mE(we,X,de):q.r={from:X,to:de,d:1,l:null,r:null},gZ(q);$e(X,q.from)<0&&(q.from=X,q.l=null,q.d=we?we.d+1:1),0<$e(de,q.to)&&(q.to=de,q.r=null,q.d=q.l?q.l.d+1:1),de=!q.r,Ne&&!q.l&&gE(q,Ne),we&&de&&gE(q,we)}}function gE(q,X){j9(X)||function de(we,it){var Le=it.from,We=it.to,Qe=it.l,it=it.r;mE(we,Le,We),Qe&&de(we,Qe),it&&de(we,it)}(q,X)}function mZ(q,X){var de=IO(X),we=de.next();if(we.done)return!1;for(var Ne=we.value,Le=IO(q),We=Le.next(Ne.from),Qe=We.value;!we.done&&!We.done;){if($e(Qe.from,Ne.to)<=0&&0<=$e(Qe.to,Ne.from))return!0;$e(Ne.from,Qe.from)<0?Ne=(we=de.next(Qe.from)).value:Qe=(We=Le.next(Ne.from)).value}return!1}function IO(q){var X=j9(q)?null:{s:0,n:q};return{next:function(de){for(var we=0<arguments.length;X;)switch(X.s){case 0:if(X.s=1,we)for(;X.n.l&&$e(de,X.n.from)<0;)X={up:X,n:X.n.l,s:1};else for(;X.n.l;)X={up:X,n:X.n.l,s:1};case 1:if(X.s=2,!we||$e(de,X.n.to)<=0)return{value:X.n,done:!1};case 2:if(X.n.r){X.s=3,X={up:X,n:X.n.r,s:0};continue}case 3:X=X.up}return{done:!0}}}}function gZ(q){var X,de,we=(((X=q.r)===null||X===void 0?void 0:X.d)||0)-(((de=q.l)===null||de===void 0?void 0:de.d)||0),Ne=1<we?"r":we<-1?"l":"";Ne&&(X=Ne=="r"?"l":"r",de=r({},q),we=q[Ne],q.from=we.from,q.to=we.to,q[Ne]=we[Ne],de[Ne]=we[X],(q[X]=de).d=vZ(de)),q.d=vZ(q)}function vZ(de){var X=de.r,de=de.l;return(X?de?Math.max(X.d,de.d):X.d:de?de.d:0)+1}function AO(q,X){return a(X).forEach(function(de){q[de]?gE(q[de],X[de]):q[de]=function we(Ne){var Le,We,Qe={};for(Le in Ne)d(Ne,Le)&&(We=Ne[Le],Qe[Le]=!We||typeof We!="object"||N.has(We.constructor)?We:we(We));return Qe}(X[de])}),q}function H9(q,X){return q.all||X.all||Object.keys(q).some(function(de){return X[de]&&mZ(X[de],q[de])})}f(fs.prototype,((Pc={add:function(q){return gE(this,q),this},addKey:function(q){return mE(this,q,q),this},addKeys:function(q){var X=this;return q.forEach(function(de){return mE(X,de,de)}),this},hasKey:function(q){var X=IO(this).next(q).value;return X&&$e(X.from,q)<=0&&0<=$e(X.to,q)}})[B]=function(){return IO(this)},Pc));var Vg={},U9={},z9=!1;function NO(q){AO(U9,q),z9||(z9=!0,setTimeout(function(){z9=!1,V9(U9,!(U9={}))},0))}function V9(q,X){X===void 0&&(X=!1);var de=new Set;if(q.all)for(var we=0,Ne=Object.values(Vg);we<Ne.length;we++)bZ(We=Ne[we],q,de,X);else for(var Le in q){var We,Qe=/^idb\:\/\/(.*)\/(.*)\//.exec(Le);Qe&&(Le=Qe[1],Qe=Qe[2],(We=Vg["idb://".concat(Le,"/").concat(Qe)])&&bZ(We,q,de,X))}de.forEach(function(it){return it()})}function bZ(q,X,de,we){for(var Ne=[],Le=0,We=Object.entries(q.queries.query);Le<We.length;Le++){for(var Qe=We[Le],it=Qe[0],st=[],ft=0,Je=Qe[1];ft<Je.length;ft++){var gt=Je[ft];H9(X,gt.obsSet)?gt.subscribers.forEach(function(lt){return de.add(lt)}):we&&st.push(gt)}we&&Ne.push([it,st])}if(we)for(var ot=0,ut=Ne;ot<ut.length;ot++){var mt=ut[ot],it=mt[0],st=mt[1];q.queries.query[it]=st}}function j3e(q){var X=q._state,de=q._deps.indexedDB;if(X.isBeingOpened||q.idbdb)return X.dbReadyPromise.then(function(){return X.dbOpenError?jt(X.dbOpenError):q});X.isBeingOpened=!0,X.dbOpenError=null,X.openComplete=!1;var we=X.openCanceller,Ne=Math.round(10*q.verno),Le=!1;function We(){if(X.openCanceller!==we)throw new oe.DatabaseClosed("db.open() was cancelled")}function Qe(){return new Ue(function(gt,ot){if(We(),!de)throw new oe.MissingAPI;var ut=q.name,mt=X.autoSchema||!Ne?de.open(ut):de.open(ut,Ne);if(!mt)throw new oe.MissingAPI;mt.onerror=ga(ot),mt.onblocked=Ye(q._fireOnBlocked),mt.onupgradeneeded=Ye(function(lt){var xt;ft=mt.transaction,X.autoSchema&&!q._options.allowEmptyDB?(mt.onerror=tp,ft.abort(),mt.result.close(),(xt=de.deleteDatabase(ut)).onsuccess=xt.onerror=Ye(function(){ot(new oe.NoSuchDatabase("Database ".concat(ut," doesnt exist")))})):(ft.onerror=ga(ot),lt=lt.oldVersion>Math.pow(2,62)?0:lt.oldVersion,Je=lt<1,q.idbdb=mt.result,Le&&F3e(q,ft),$3e(q,lt/10,ft,ot))},ot),mt.onsuccess=Ye(function(){ft=null;var lt,xt,Lt,Ft,qt,hn=q.idbdb=mt.result,On=b(hn.objectStoreNames);if(0<On.length)try{var mn=hn.transaction((Ft=On).length===1?Ft[0]:Ft,"readonly");if(X.autoSchema)xt=hn,Lt=mn,(lt=q).verno=xt.version/10,Lt=lt._dbSchema=xO(0,xt,Lt),lt._storeNames=b(xt.objectStoreNames,0),wO(lt,[lt._allTables],a(Lt),Lt);else if(OO(q,q._dbSchema,mn),((qt=D9(xO(0,(qt=q).idbdb,mn),qt._dbSchema)).add.length||qt.change.some(function(Cn){return Cn.add.length||Cn.change.length}))&&!Le)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."),hn.close(),Ne=hn.version+1,Le=!0,gt(Qe());CO(q,mn)}catch{}Mt.push(q),hn.onversionchange=Ye(function(Cn){X.vcFired=!0,q.on("versionchange").fire(Cn)}),hn.onclose=Ye(function(Cn){q.on("close").fire(Cn)}),Je&&(qt=q._deps,mn=ut,hn=qt.indexedDB,qt=qt.IDBKeyRange,F9(hn)||mn===It||$9(hn,qt).put({name:mn}).catch(ue)),gt()},ot)}).catch(function(gt){switch(gt==null?void 0:gt.name){case"UnknownError":if(0<X.PR1398_maxLoop)return X.PR1398_maxLoop--,console.warn("Dexie: Workaround for Chrome UnknownError on open()"),Qe();break;case"VersionError":if(0<Ne)return Ne=0,Qe()}return Ue.reject(gt)})}var it,st=X.dbReadyResolve,ft=null,Je=!1;return Ue.race([we,(typeof navigator>"u"?Ue.resolve():!navigator.userAgentData&&/Safari\//.test(navigator.userAgent)&&!/Chrom(e|ium)\//.test(navigator.userAgent)&&indexedDB.databases?new Promise(function(gt){function ot(){return indexedDB.databases().finally(gt)}it=setInterval(ot,100),ot()}).finally(function(){return clearInterval(it)}):Promise.resolve()).then(Qe)]).then(function(){return We(),X.onReadyBeingFired=[],Ue.resolve(B9(function(){return q.on.ready.fire(q.vip)})).then(function gt(){if(0<X.onReadyBeingFired.length){var ot=X.onReadyBeingFired.reduce(Ce,ue);return X.onReadyBeingFired=[],Ue.resolve(B9(function(){return ot(q.vip)})).then(gt)}})}).finally(function(){X.openCanceller===we&&(X.onReadyBeingFired=null,X.isBeingOpened=!1)}).catch(function(gt){X.dbOpenError=gt;try{ft&&ft.abort()}catch{}return we===X.openCanceller&&q._close(),jt(gt)}).finally(function(){X.openComplete=!0,st()}).then(function(){var gt;return Je&&(gt={},q.tables.forEach(function(ot){ot.schema.indexes.forEach(function(ut){ut.name&&(gt["idb://".concat(q.name,"/").concat(ot.name,"/").concat(ut.name)]=new fs(-1/0,[[[]]]))}),gt["idb://".concat(q.name,"/").concat(ot.name,"/")]=gt["idb://".concat(q.name,"/").concat(ot.name,"/:dels")]=new fs(-1/0,[[[]]])}),kn(np).fire(gt),V9(gt,!0)),q})}function G9(q){function X(Le){return q.next(Le)}var de=Ne(X),we=Ne(function(Le){return q.throw(Le)});function Ne(Le){return function(it){var Qe=Le(it),it=Qe.value;return Qe.done?it:it&&typeof it.then=="function"?it.then(de,we):s(it)?Promise.all(it).then(de,we):de(it)}}return Ne(X)()}function MO(q,X,de){for(var we=s(q)?q.slice():[q],Ne=0;Ne<de;++Ne)we.push(X);return we}var H3e={stack:"dbcore",name:"VirtualIndexMiddleware",level:1,create:function(q){return r(r({},q),{table:function(X){var de=q.table(X),we=de.schema,Ne={},Le=[];function We(Je,gt,ot){var ut=hE(Je),mt=Ne[ut]=Ne[ut]||[],lt=Je==null?0:typeof Je=="string"?1:Je.length,xt=0<gt,xt=r(r({},ot),{name:xt?"".concat(ut,"(virtual-from:").concat(ot.name,")"):ot.name,lowLevelIndex:ot,isVirtual:xt,keyTail:gt,keyLength:lt,extractKey:U0(Je),unique:!xt&&ot.unique});return mt.push(xt),xt.isPrimaryKey||Le.push(xt),1<lt&&We(lt===2?Je[0]:Je.slice(0,lt-1),gt+1,ot),mt.sort(function(Lt,Ft){return Lt.keyTail-Ft.keyTail}),xt}X=We(we.primaryKey.keyPath,0,we.primaryKey),Ne[":id"]=[X];for(var Qe=0,it=we.indexes;Qe<it.length;Qe++){var st=it[Qe];We(st.keyPath,0,st)}function ft(Je){var gt,ot=Je.query.index;return ot.isVirtual?r(r({},Je),{query:{index:ot.lowLevelIndex,range:(gt=Je.query.range,ot=ot.keyTail,{type:gt.type===1?2:gt.type,lower:MO(gt.lower,gt.lowerOpen?q.MAX_KEY:q.MIN_KEY,ot),lowerOpen:!0,upper:MO(gt.upper,gt.upperOpen?q.MIN_KEY:q.MAX_KEY,ot),upperOpen:!0})}}):Je}return r(r({},de),{schema:r(r({},we),{primaryKey:X,indexes:Le,getIndexByKeyPath:function(Je){return(Je=Ne[hE(Je)])&&Je[0]}}),count:function(Je){return de.count(ft(Je))},query:function(Je){return de.query(ft(Je))},openCursor:function(Je){var gt=Je.query.index,ot=gt.keyTail,ut=gt.isVirtual,mt=gt.keyLength;return ut?de.openCursor(ft(Je)).then(function(xt){return xt&&lt(xt)}):de.openCursor(Je);function lt(xt){return Object.create(xt,{continue:{value:function(Lt){Lt!=null?xt.continue(MO(Lt,Je.reverse?q.MAX_KEY:q.MIN_KEY,ot)):Je.unique?xt.continue(xt.key.slice(0,mt).concat(Je.reverse?q.MIN_KEY:q.MAX_KEY,ot)):xt.continue()}},continuePrimaryKey:{value:function(Lt,Ft){xt.continuePrimaryKey(MO(Lt,q.MAX_KEY,ot),Ft)}},primaryKey:{get:function(){return xt.primaryKey}},key:{get:function(){var Lt=xt.key;return mt===1?Lt[0]:Lt.slice(0,mt)}},value:{get:function(){return xt.value}}})}}})}})}};function W9(q,X,de,we){return de=de||{},we=we||"",a(q).forEach(function(Ne){var Le,We,Qe;d(X,Ne)?(Le=q[Ne],We=X[Ne],typeof Le=="object"&&typeof We=="object"&&Le&&We?(Qe=k(Le))!==k(We)?de[we+Ne]=X[Ne]:Qe==="Object"?W9(Le,We,de,we+Ne+"."):Le!==We&&(de[we+Ne]=X[Ne]):Le!==We&&(de[we+Ne]=X[Ne])):de[we+Ne]=void 0}),a(X).forEach(function(Ne){d(q,Ne)||(de[we+Ne]=X[Ne])}),de}function q9(q,X){return X.type==="delete"?X.keys:X.keys||X.values.map(q.extractKey)}var U3e={stack:"dbcore",name:"HooksMiddleware",level:2,create:function(q){return r(r({},q),{table:function(X){var de=q.table(X),we=de.schema.primaryKey;return r(r({},de),{mutate:function(Ne){var Le=Me.trans,We=Le.table(X).hook,Qe=We.deleting,it=We.creating,st=We.updating;switch(Ne.type){case"add":if(it.fire===ue)break;return Le._promise("readwrite",function(){return ft(Ne)},!0);case"put":if(it.fire===ue&&st.fire===ue)break;return Le._promise("readwrite",function(){return ft(Ne)},!0);case"delete":if(Qe.fire===ue)break;return Le._promise("readwrite",function(){return ft(Ne)},!0);case"deleteRange":if(Qe.fire===ue)break;return Le._promise("readwrite",function(){return function Je(gt,ot,ut){return de.query({trans:gt,values:!1,query:{index:we,range:ot},limit:ut}).then(function(mt){var lt=mt.result;return ft({type:"delete",keys:lt,trans:gt}).then(function(xt){return 0<xt.numFailures?Promise.reject(xt.failures[0]):lt.length<ut?{failures:[],numFailures:0,lastResult:void 0}:Je(gt,r(r({},ot),{lower:lt[lt.length-1],lowerOpen:!0}),ut)})})}(Ne.trans,Ne.range,1e4)},!0)}return de.mutate(Ne);function ft(Je){var gt,ot,ut,mt=Me.trans,lt=Je.keys||q9(we,Je);if(!lt)throw new Error("Keys missing");return(Je=Je.type==="add"||Je.type==="put"?r(r({},Je),{keys:lt}):r({},Je)).type!=="delete"&&(Je.values=i([],Je.values)),Je.keys&&(Je.keys=i([],Je.keys)),gt=de,ut=lt,((ot=Je).type==="add"?Promise.resolve([]):gt.getMany({trans:ot.trans,keys:ut,cache:"immutable"})).then(function(xt){var Lt=lt.map(function(Ft,qt){var hn,On,mn,Cn=xt[qt],An={onerror:null,onsuccess:null};return Je.type==="delete"?Qe.fire.call(An,Ft,Cn,mt):Je.type==="add"||Cn===void 0?(hn=it.fire.call(An,Ft,Je.values[qt],mt),Ft==null&&hn!=null&&(Je.keys[qt]=Ft=hn,we.outbound||C(Je.values[qt],we.keyPath,Ft))):(hn=W9(Cn,Je.values[qt]),(On=st.fire.call(An,hn,Ft,Cn,mt))&&(mn=Je.values[qt],Object.keys(On).forEach(function(Tn){d(mn,Tn)?mn[Tn]=On[Tn]:C(mn,Tn,On[Tn])}))),An});return de.mutate(Je).then(function(Ft){for(var qt=Ft.failures,hn=Ft.results,On=Ft.numFailures,Ft=Ft.lastResult,mn=0;mn<lt.length;++mn){var Cn=(hn||lt)[mn],An=Lt[mn];Cn==null?An.onerror&&An.onerror(qt[mn]):An.onsuccess&&An.onsuccess(Je.type==="put"&&xt[mn]?Je.values[mn]:Cn)}return{failures:qt,results:hn,numFailures:On,lastResult:Ft}}).catch(function(Ft){return Lt.forEach(function(qt){return qt.onerror&&qt.onerror(Ft)}),Promise.reject(Ft)})})}}})}})}};function yZ(q,X,de){try{if(!X||X.keys.length<q.length)return null;for(var we=[],Ne=0,Le=0;Ne<X.keys.length&&Le<q.length;++Ne)$e(X.keys[Ne],q[Le])===0&&(we.push(de?M(X.values[Ne]):X.values[Ne]),++Le);return we.length===q.length?we:null}catch{return null}}var z3e={stack:"dbcore",level:-1,create:function(q){return{table:function(X){var de=q.table(X);return r(r({},de),{getMany:function(we){if(!we.cache)return de.getMany(we);var Ne=yZ(we.keys,we.trans._cache,we.cache==="clone");return Ne?Ue.resolve(Ne):de.getMany(we).then(function(Le){return we.trans._cache={keys:we.keys,values:we.cache==="clone"?M(Le):Le},Le})},mutate:function(we){return we.type!=="add"&&(we.trans._cache=null),de.mutate(we)}})}}}};function _Z(q,X){return q.trans.mode==="readonly"&&!!q.subscr&&!q.trans.explicit&&q.trans.db._options.cache!=="disabled"&&!X.schema.primaryKey.outbound}function SZ(q,X){switch(q){case"query":return X.values&&!X.unique;case"get":case"getMany":case"count":case"openCursor":return!1}}var V3e={stack:"dbcore",level:0,name:"Observability",create:function(q){var X=q.schema.name,de=new fs(q.MIN_KEY,q.MAX_KEY);return r(r({},q),{transaction:function(we,Ne,Le){if(Me.subscr&&Ne!=="readonly")throw new oe.ReadOnly("Readwrite transaction in liveQuery context. Querier source: ".concat(Me.querier));return q.transaction(we,Ne,Le)},table:function(we){var Ne=q.table(we),Le=Ne.schema,We=Le.primaryKey,Je=Le.indexes,Qe=We.extractKey,it=We.outbound,st=We.autoIncrement&&Je.filter(function(ot){return ot.compound&&ot.keyPath.includes(We.keyPath)}),ft=r(r({},Ne),{mutate:function(ot){function ut(Tn){return Tn="idb://".concat(X,"/").concat(we,"/").concat(Tn),Ft[Tn]||(Ft[Tn]=new fs)}var mt,lt,xt,Lt=ot.trans,Ft=ot.mutatedParts||(ot.mutatedParts={}),qt=ut(""),hn=ut(":dels"),On=ot.type,An=ot.type==="deleteRange"?[ot.range]:ot.type==="delete"?[ot.keys]:ot.values.length<50?[q9(We,ot).filter(function(Tn){return Tn}),ot.values]:[],mn=An[0],Cn=An[1],An=ot.trans._cache;return s(mn)?(qt.addKeys(mn),(An=On==="delete"||mn.length===Cn.length?yZ(mn,An):null)||hn.addKeys(mn),(An||Cn)&&(mt=ut,lt=An,xt=Cn,Le.indexes.forEach(function(Tn){var Bn=mt(Tn.name||"");function Or(Br){return Br!=null?Tn.extractKey(Br):null}function Fr(Br){return Tn.multiEntry&&s(Br)?Br.forEach(function(jl){return Bn.addKey(jl)}):Bn.addKey(Br)}(lt||xt).forEach(function(Br,ps){var Tr=lt&&Or(lt[ps]),ps=xt&&Or(xt[ps]);$e(Tr,ps)!==0&&(Tr!=null&&Fr(Tr),ps!=null&&Fr(ps))})}))):mn?(Cn={from:(Cn=mn.lower)!==null&&Cn!==void 0?Cn:q.MIN_KEY,to:(Cn=mn.upper)!==null&&Cn!==void 0?Cn:q.MAX_KEY},hn.add(Cn),qt.add(Cn)):(qt.add(de),hn.add(de),Le.indexes.forEach(function(Tn){return ut(Tn.name).add(de)})),Ne.mutate(ot).then(function(Tn){return!mn||ot.type!=="add"&&ot.type!=="put"||(qt.addKeys(Tn.results),st&&st.forEach(function(Bn){for(var Or=ot.values.map(function(Tr){return Bn.extractKey(Tr)}),Fr=Bn.keyPath.findIndex(function(Tr){return Tr===We.keyPath}),Br=0,jl=Tn.results.length;Br<jl;++Br)Or[Br][Fr]=Tn.results[Br];ut(Bn.name).addKeys(Or)})),Lt.mutatedParts=AO(Lt.mutatedParts||{},Ft),Tn})}}),Je=function(ut){var mt=ut.query,ut=mt.index,mt=mt.range;return[ut,new fs((ut=mt.lower)!==null&&ut!==void 0?ut:q.MIN_KEY,(mt=mt.upper)!==null&&mt!==void 0?mt:q.MAX_KEY)]},gt={get:function(ot){return[We,new fs(ot.key)]},getMany:function(ot){return[We,new fs().addKeys(ot.keys)]},count:Je,query:Je,openCursor:Je};return a(gt).forEach(function(ot){ft[ot]=function(ut){var mt=Me.subscr,lt=!!mt,xt=_Z(Me,Ne)&&SZ(ot,ut)?ut.obsSet={}:mt;if(lt){var Lt=function(Cn){return Cn="idb://".concat(X,"/").concat(we,"/").concat(Cn),xt[Cn]||(xt[Cn]=new fs)},Ft=Lt(""),qt=Lt(":dels"),mt=gt[ot](ut),lt=mt[0],mt=mt[1];if((ot==="query"&&lt.isPrimaryKey&&!ut.values?qt:Lt(lt.name||"")).add(mt),!lt.isPrimaryKey){if(ot!=="count"){var hn=ot==="query"&&it&&ut.values&&Ne.query(r(r({},ut),{values:!1}));return Ne[ot].apply(this,arguments).then(function(Cn){if(ot==="query"){if(it&&ut.values)return hn.then(function(Or){return Or=Or.result,Ft.addKeys(Or),Cn});var An=ut.values?Cn.result.map(Qe):Cn.result;(ut.values?Ft:qt).addKeys(An)}else if(ot==="openCursor"){var Tn=Cn,Bn=ut.values;return Tn&&Object.create(Tn,{key:{get:function(){return qt.addKey(Tn.primaryKey),Tn.key}},primaryKey:{get:function(){var Or=Tn.primaryKey;return qt.addKey(Or),Or}},value:{get:function(){return Bn&&Ft.addKey(Tn.primaryKey),Tn.value}}})}return Cn})}qt.add(de)}}return Ne[ot].apply(this,arguments)}}),ft}})}};function EZ(q,X,de){if(de.numFailures===0)return X;if(X.type==="deleteRange")return null;var we=X.keys?X.keys.length:"values"in X&&X.values?X.values.length:1;return de.numFailures===we?null:(X=r({},X),s(X.keys)&&(X.keys=X.keys.filter(function(Ne,Le){return!(Le in de.failures)})),"values"in X&&s(X.values)&&(X.values=X.values.filter(function(Ne,Le){return!(Le in de.failures)})),X)}function Y9(q,X){return de=q,((we=X).lower===void 0||(we.lowerOpen?0<$e(de,we.lower):0<=$e(de,we.lower)))&&(q=q,(X=X).upper===void 0||(X.upperOpen?$e(q,X.upper)<0:$e(q,X.upper)<=0));var de,we}function CZ(q,X,gt,we,Ne,Le){if(!gt||gt.length===0)return q;var We=X.query.index,Qe=We.multiEntry,it=X.query.range,st=we.schema.primaryKey.extractKey,ft=We.extractKey,Je=(We.lowLevelIndex||We).extractKey,gt=gt.reduce(function(ot,ut){var mt=ot,lt=[];if(ut.type==="add"||ut.type==="put")for(var xt=new fs,Lt=ut.values.length-1;0<=Lt;--Lt){var Ft,qt=ut.values[Lt],hn=st(qt);xt.hasKey(hn)||(Ft=ft(qt),(Qe&&s(Ft)?Ft.some(function(Tn){return Y9(Tn,it)}):Y9(Ft,it))&&(xt.addKey(hn),lt.push(qt)))}switch(ut.type){case"add":var On=new fs().addKeys(X.values?ot.map(function(Bn){return st(Bn)}):ot),mt=ot.concat(X.values?lt.filter(function(Bn){return Bn=st(Bn),!On.hasKey(Bn)&&(On.addKey(Bn),!0)}):lt.map(function(Bn){return st(Bn)}).filter(function(Bn){return!On.hasKey(Bn)&&(On.addKey(Bn),!0)}));break;case"put":var mn=new fs().addKeys(ut.values.map(function(Bn){return st(Bn)}));mt=ot.filter(function(Bn){return!mn.hasKey(X.values?st(Bn):Bn)}).concat(X.values?lt:lt.map(function(Bn){return st(Bn)}));break;case"delete":var Cn=new fs().addKeys(ut.keys);mt=ot.filter(function(Bn){return!Cn.hasKey(X.values?st(Bn):Bn)});break;case"deleteRange":var An=ut.range;mt=ot.filter(function(Bn){return!Y9(st(Bn),An)})}return mt},q);return gt===q?q:(gt.sort(function(ot,ut){return $e(Je(ot),Je(ut))||$e(st(ot),st(ut))}),X.limit&&X.limit<1/0&&(gt.length>X.limit?gt.length=X.limit:q.length===X.limit&&gt.length<X.limit&&(Ne.dirty=!0)),Le?Object.freeze(gt):gt)}function wZ(q,X){return $e(q.lower,X.lower)===0&&$e(q.upper,X.upper)===0&&!!q.lowerOpen==!!X.lowerOpen&&!!q.upperOpen==!!X.upperOpen}function G3e(q,X){return function(de,we,Ne,Le){if(de===void 0)return we!==void 0?-1:0;if(we===void 0)return 1;if((we=$e(de,we))===0){if(Ne&&Le)return 0;if(Ne)return 1;if(Le)return-1}return we}(q.lower,X.lower,q.lowerOpen,X.lowerOpen)<=0&&0<=function(de,we,Ne,Le){if(de===void 0)return we!==void 0?1:0;if(we===void 0)return-1;if((we=$e(de,we))===0){if(Ne&&Le)return 0;if(Ne)return-1;if(Le)return 1}return we}(q.upper,X.upper,q.upperOpen,X.upperOpen)}function W3e(q,X,de,we){q.subscribers.add(de),we.addEventListener("abort",function(){var Ne,Le;q.subscribers.delete(de),q.subscribers.size===0&&(Ne=q,Le=X,setTimeout(function(){Ne.subscribers.size===0&&P(Le,Ne)},3e3))})}var q3e={stack:"dbcore",level:0,name:"Cache",create:function(q){var X=q.schema.name;return r(r({},q),{transaction:function(de,we,Ne){var Le,We,Qe=q.transaction(de,we,Ne);return we==="readwrite"&&(We=(Le=new AbortController).signal,Ne=function(it){return function(){if(Le.abort(),we==="readwrite"){for(var st=new Set,ft=0,Je=de;ft<Je.length;ft++){var gt=Je[ft],ot=Vg["idb://".concat(X,"/").concat(gt)];if(ot){var ut=q.table(gt),mt=ot.optimisticOps.filter(function(Bn){return Bn.trans===Qe});if(Qe._explicit&&it&&Qe.mutatedParts)for(var lt=0,xt=Object.values(ot.queries.query);lt<xt.length;lt++)for(var Lt=0,Ft=(On=xt[lt]).slice();Lt<Ft.length;Lt++)H9((mn=Ft[Lt]).obsSet,Qe.mutatedParts)&&(P(On,mn),mn.subscribers.forEach(function(Bn){return st.add(Bn)}));else if(0<mt.length){ot.optimisticOps=ot.optimisticOps.filter(function(Bn){return Bn.trans!==Qe});for(var qt=0,hn=Object.values(ot.queries.query);qt<hn.length;qt++)for(var On,mn,Cn,An=0,Tn=(On=hn[qt]).slice();An<Tn.length;An++)(mn=Tn[An]).res!=null&&Qe.mutatedParts&&(it&&!mn.dirty?(Cn=Object.isFrozen(mn.res),Cn=CZ(mn.res,mn.req,mt,ut,mn,Cn),mn.dirty?(P(On,mn),mn.subscribers.forEach(function(Bn){return st.add(Bn)})):Cn!==mn.res&&(mn.res=Cn,mn.promise=Ue.resolve({result:Cn}))):(mn.dirty&&P(On,mn),mn.subscribers.forEach(function(Bn){return st.add(Bn)})))}}}st.forEach(function(Bn){return Bn()})}}},Qe.addEventListener("abort",Ne(!1),{signal:We}),Qe.addEventListener("error",Ne(!1),{signal:We}),Qe.addEventListener("complete",Ne(!0),{signal:We})),Qe},table:function(de){var we=q.table(de),Ne=we.schema.primaryKey;return r(r({},we),{mutate:function(Le){var We=Me.trans;if(Ne.outbound||We.db._options.cache==="disabled"||We.explicit||We.idbtrans.mode!=="readwrite")return we.mutate(Le);var Qe=Vg["idb://".concat(X,"/").concat(de)];return Qe?(We=we.mutate(Le),Le.type!=="add"&&Le.type!=="put"||!(50<=Le.values.length||q9(Ne,Le).some(function(it){return it==null}))?(Qe.optimisticOps.push(Le),Le.mutatedParts&&NO(Le.mutatedParts),We.then(function(it){0<it.numFailures&&(P(Qe.optimisticOps,Le),(it=EZ(0,Le,it))&&Qe.optimisticOps.push(it),Le.mutatedParts&&NO(Le.mutatedParts))}),We.catch(function(){P(Qe.optimisticOps,Le),Le.mutatedParts&&NO(Le.mutatedParts)})):We.then(function(it){var st=EZ(0,r(r({},Le),{values:Le.values.map(function(ft,Je){var gt;return it.failures[Je]?ft:(ft=(gt=Ne.keyPath)!==null&&gt!==void 0&&gt.includes(".")?M(ft):r({},ft),C(ft,Ne.keyPath,it.results[Je]),ft)})}),it);Qe.optimisticOps.push(st),queueMicrotask(function(){return Le.mutatedParts&&NO(Le.mutatedParts)})}),We):we.mutate(Le)},query:function(Le){if(!_Z(Me,we)||!SZ("query",Le))return we.query(Le);var We=((st=Me.trans)===null||st===void 0?void 0:st.db._options.cache)==="immutable",Je=Me,Qe=Je.requery,it=Je.signal,st=function(ut,mt,lt,xt){var Lt=Vg["idb://".concat(ut,"/").concat(mt)];if(!Lt)return[];if(!(mt=Lt.queries[lt]))return[null,!1,Lt,null];var Ft=mt[(xt.query?xt.query.index.name:null)||""];if(!Ft)return[null,!1,Lt,null];switch(lt){case"query":var qt=Ft.find(function(hn){return hn.req.limit===xt.limit&&hn.req.values===xt.values&&wZ(hn.req.query.range,xt.query.range)});return qt?[qt,!0,Lt,Ft]:[Ft.find(function(hn){return("limit"in hn.req?hn.req.limit:1/0)>=xt.limit&&(!xt.values||hn.req.values)&&G3e(hn.req.query.range,xt.query.range)}),!1,Lt,Ft];case"count":return qt=Ft.find(function(hn){return wZ(hn.req.query.range,xt.query.range)}),[qt,!!qt,Lt,Ft]}}(X,de,"query",Le),ft=st[0],Je=st[1],gt=st[2],ot=st[3];return ft&&Je?ft.obsSet=Le.obsSet:(Je=we.query(Le).then(function(ut){var mt=ut.result;if(ft&&(ft.res=mt),We){for(var lt=0,xt=mt.length;lt<xt;++lt)Object.freeze(mt[lt]);Object.freeze(mt)}else ut.result=M(mt);return ut}).catch(function(ut){return ot&&ft&&P(ot,ft),Promise.reject(ut)}),ft={obsSet:Le.obsSet,promise:Je,subscribers:new Set,type:"query",req:Le,dirty:!1},ot?ot.push(ft):(ot=[ft],(gt=gt||(Vg["idb://".concat(X,"/").concat(de)]={queries:{query:{},count:{}},objs:new Map,optimisticOps:[],unsignaledParts:{}})).queries.query[Le.query.index.name||""]=ot)),W3e(ft,ot,Qe,it),ft.promise.then(function(ut){return{result:CZ(ut.result,Le,gt==null?void 0:gt.optimisticOps,we,ft,We)}})}})}})}};function kO(q,X){return new Proxy(q,{get:function(de,we,Ne){return we==="db"?X:Reflect.get(de,we,Ne)}})}var ip=(Yo.prototype.version=function(q){if(isNaN(q)||q<.1)throw new oe.Type("Given version is not a positive number");if(q=Math.round(10*q)/10,this.idbdb||this._state.isBeingOpened)throw new oe.Schema("Cannot add version when database is open");this.verno=Math.max(this.verno,q);var X=this._versions,de=X.filter(function(we){return we._cfg.version===q})[0];return de||(de=new this.Version(q),X.push(de),X.sort(L3e),de.stores({}),this._state.autoSchema=!1,de)},Yo.prototype._whenReady=function(q){var X=this;return this.idbdb&&(this._state.openComplete||Me.letThrough||this._vip)?q():new Ue(function(de,we){if(X._state.openComplete)return we(new oe.DatabaseClosed(X._state.dbOpenError));if(!X._state.isBeingOpened){if(!X._state.autoOpen)return void we(new oe.DatabaseClosed);X.open().catch(ue)}X._state.dbReadyPromise.then(de,we)}).then(q)},Yo.prototype.use=function(q){var X=q.stack,de=q.create,we=q.level,Ne=q.name;return Ne&&this.unuse({stack:X,name:Ne}),q=this._middlewares[X]||(this._middlewares[X]=[]),q.push({stack:X,create:de,level:we??10,name:Ne}),q.sort(function(Le,We){return Le.level-We.level}),this},Yo.prototype.unuse=function(q){var X=q.stack,de=q.name,we=q.create;return X&&this._middlewares[X]&&(this._middlewares[X]=this._middlewares[X].filter(function(Ne){return we?Ne.create!==we:!!de&&Ne.name!==de})),this},Yo.prototype.open=function(){var q=this;return Ht(re,function(){return j3e(q)})},Yo.prototype._close=function(){var q=this._state,X=Mt.indexOf(this);if(0<=X&&Mt.splice(X,1),this.idbdb){try{this.idbdb.close()}catch{}this.idbdb=null}q.isBeingOpened||(q.dbReadyPromise=new Ue(function(de){q.dbReadyResolve=de}),q.openCanceller=new Ue(function(de,we){q.cancelOpen=we}))},Yo.prototype.close=function(de){var X=(de===void 0?{disableAutoOpen:!0}:de).disableAutoOpen,de=this._state;X?(de.isBeingOpened&&de.cancelOpen(new oe.DatabaseClosed),this._close(),de.autoOpen=!1,de.dbOpenError=new oe.DatabaseClosed):(this._close(),de.autoOpen=this._options.autoOpen||de.isBeingOpened,de.openComplete=!1,de.dbOpenError=null)},Yo.prototype.delete=function(q){var X=this;q===void 0&&(q={disableAutoOpen:!0});var de=0<arguments.length&&typeof arguments[0]!="object",we=this._state;return new Ue(function(Ne,Le){function We(){X.close(q);var Qe=X._deps.indexedDB.deleteDatabase(X.name);Qe.onsuccess=Ye(function(){var it,st,ft;it=X._deps,st=X.name,ft=it.indexedDB,it=it.IDBKeyRange,F9(ft)||st===It||$9(ft,it).delete(st).catch(ue),Ne()}),Qe.onerror=ga(Le),Qe.onblocked=X._fireOnBlocked}if(de)throw new oe.InvalidArgument("Invalid closeOptions argument to db.delete()");we.isBeingOpened?we.dbReadyPromise.then(We):We()})},Yo.prototype.backendDB=function(){return this.idbdb},Yo.prototype.isOpen=function(){return this.idbdb!==null},Yo.prototype.hasBeenClosed=function(){var q=this._state.dbOpenError;return q&&q.name==="DatabaseClosed"},Yo.prototype.hasFailed=function(){return this._state.dbOpenError!==null},Yo.prototype.dynamicallyOpened=function(){return this._state.autoSchema},Object.defineProperty(Yo.prototype,"tables",{get:function(){var q=this;return a(this._allTables).map(function(X){return q._allTables[X]})},enumerable:!1,configurable:!0}),Yo.prototype.transaction=function(){var q=(function(X,de,we){var Ne=arguments.length;if(Ne<2)throw new oe.InvalidArgument("Too few arguments");for(var Le=new Array(Ne-1);--Ne;)Le[Ne-1]=arguments[Ne];return we=Le.pop(),[X,O(Le),we]}).apply(this,arguments);return this._transaction.apply(this,q)},Yo.prototype._transaction=function(q,X,de){var we=this,Ne=Me.trans;Ne&&Ne.db===this&&q.indexOf("!")===-1||(Ne=null);var Le,We,Qe=q.indexOf("?")!==-1;q=q.replace("!","").replace("?","");try{if(We=X.map(function(st){if(st=st instanceof we.Table?st.name:st,typeof st!="string")throw new TypeError("Invalid table argument to Dexie.transaction(). Only Table or String are allowed");return st}),q=="r"||q===xn)Le=xn;else{if(q!="rw"&&q!=Hn)throw new oe.InvalidArgument("Invalid transaction mode: "+q);Le=Hn}if(Ne){if(Ne.mode===xn&&Le===Hn){if(!Qe)throw new oe.SubTransaction("Cannot enter a sub-transaction with READWRITE mode when parent transaction is READONLY");Ne=null}Ne&&We.forEach(function(st){if(Ne&&Ne.storeNames.indexOf(st)===-1){if(!Qe)throw new oe.SubTransaction("Table "+st+" not included in parent transaction.");Ne=null}}),Qe&&Ne&&!Ne.active&&(Ne=null)}}catch(st){return Ne?Ne._promise(null,function(ft,Je){Je(st)}):jt(st)}var it=(function st(ft,Je,gt,ot,ut){return Ue.resolve().then(function(){var mt=Me.transless||Me,lt=ft._createTransaction(Je,gt,ft._dbSchema,ot);if(lt.explicit=!0,mt={trans:lt,transless:mt},ot)lt.idbtrans=ot.idbtrans;else try{lt.create(),lt.idbtrans._explicit=!0,ft._state.PR1398_maxLoop=3}catch(Ft){return Ft.name===K.InvalidState&&ft.isOpen()&&0<--ft._state.PR1398_maxLoop?(console.warn("Dexie: Need to reopen db"),ft.close({disableAutoOpen:!1}),ft.open().then(function(){return st(ft,Je,gt,null,ut)})):jt(Ft)}var xt,Lt=V(ut);return Lt&&ht(),mt=Ue.follow(function(){var Ft;(xt=ut.call(lt,lt))&&(Lt?(Ft=kt.bind(null,null),xt.then(Ft,Ft)):typeof xt.next=="function"&&typeof xt.throw=="function"&&(xt=G9(xt)))},mt),(xt&&typeof xt.then=="function"?Ue.resolve(xt).then(function(Ft){return lt.active?Ft:jt(new oe.PrematureCommit("Transaction committed too early. See http://bit.ly/2kdckMn"))}):mt.then(function(){return xt})).then(function(Ft){return ot&&lt._resolve(),lt._completion.then(function(){return Ft})}).catch(function(Ft){return lt._reject(Ft),jt(Ft)})})}).bind(null,this,Le,We,Ne,de);return Ne?Ne._promise(Le,it,"lock"):Me.trans?Ht(Me.transless,function(){return we._whenReady(it)}):this._whenReady(it)},Yo.prototype.table=function(q){if(!d(this._allTables,q))throw new oe.InvalidTable("Table ".concat(q," does not exist"));return this._allTables[q]},Yo);function Yo(q,X){var de=this;this._middlewares={},this.verno=0;var we=Yo.dependencies;this._options=X=r({addons:Yo.addons,autoOpen:!0,indexedDB:we.indexedDB,IDBKeyRange:we.IDBKeyRange,cache:"cloned"},X),this._deps={indexedDB:X.indexedDB,IDBKeyRange:X.IDBKeyRange},we=X.addons,this._dbSchema={},this._versions=[],this._storeNames=[],this._allTables={},this.idbdb=null,this._novip=this;var Ne,Le,We,Qe,it,st={dbOpenError:null,isBeingOpened:!1,onReadyBeingFired:null,openComplete:!1,dbReadyResolve:ue,dbReadyPromise:null,cancelOpen:ue,openCanceller:null,autoSchema:!0,PR1398_maxLoop:3,autoOpen:X.autoOpen};st.dbReadyPromise=new Ue(function(Je){st.dbReadyResolve=Je}),st.openCanceller=new Ue(function(Je,gt){st.cancelOpen=gt}),this._state=st,this.name=q,this.on=Xr(this,"populate","blocked","versionchange","close",{ready:[Ce,ue]}),this.on.ready.subscribe=_(this.on.ready.subscribe,function(Je){return function(gt,ot){Yo.vip(function(){var ut,mt=de._state;mt.openComplete?(mt.dbOpenError||Ue.resolve().then(gt),ot&&Je(gt)):mt.onReadyBeingFired?(mt.onReadyBeingFired.push(gt),ot&&Je(gt)):(Je(gt),ut=de,ot||Je(function lt(){ut.on.ready.unsubscribe(gt),ut.on.ready.unsubscribe(lt)}))})}}),this.Collection=(Ne=this,Lr(Zi.prototype,function(xt,lt){this.db=Ne;var ot=$,ut=null;if(lt)try{ot=lt()}catch(Lt){ut=Lt}var mt=xt._ctx,lt=mt.table,xt=lt.hook.reading.fire;this._ctx={table:lt,index:mt.index,isPrimKey:!mt.index||lt.schema.primKey.keyPath&&mt.index===lt.schema.primKey.name,range:ot,keysOnly:!1,dir:"next",unique:"",algorithm:null,filter:null,replayFilter:null,justLimit:!0,isMatch:null,offset:0,limit:1/0,error:ut,or:mt.or,valueMapper:xt!==le?xt:null}})),this.Table=(Le=this,Lr(pn.prototype,function(Je,gt,ot){this.db=Le,this._tx=ot,this.name=Je,this.schema=gt,this.hook=Le._allTables[Je]?Le._allTables[Je].hook:Xr(null,{creating:[pe,ue],reading:[ve,le],updating:[Re,ue],deleting:[be,ue]})})),this.Transaction=(We=this,Lr(hr.prototype,function(Je,gt,ot,ut,mt){var lt=this;this.db=We,this.mode=Je,this.storeNames=gt,this.schema=ot,this.chromeTransactionDurability=ut,this.idbtrans=null,this.on=Xr(this,"complete","error","abort"),this.parent=mt||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 Ue(function(xt,Lt){lt._resolve=xt,lt._reject=Lt}),this._completion.then(function(){lt.active=!1,lt.on.complete.fire()},function(xt){var Lt=lt.active;return lt.active=!1,lt.on.error.fire(xt),lt.parent?lt.parent._reject(xt):Lt&&lt.idbtrans&&lt.idbtrans.abort(),jt(xt)})})),this.Version=(Qe=this,Lr(B3e.prototype,function(Je){this.db=Qe,this._cfg={version:Je,storesSource:null,dbschema:{},tables:{},contentUpgrade:null}})),this.WhereClause=(it=this,Lr(ma.prototype,function(Je,gt,ot){if(this.db=it,this._ctx={table:Je,index:gt===":id"?null:gt,or:ot},this._cmp=this._ascending=$e,this._descending=function(ut,mt){return $e(mt,ut)},this._max=function(ut,mt){return 0<$e(ut,mt)?ut:mt},this._min=function(ut,mt){return $e(ut,mt)<0?ut:mt},this._IDBKeyRange=it._deps.IDBKeyRange,!this._IDBKeyRange)throw new oe.MissingAPI})),this.on("versionchange",function(Je){0<Je.newVersion?console.warn("Another connection wants to upgrade database '".concat(de.name,"'. Closing db now to resume the upgrade.")):console.warn("Another connection wants to delete database '".concat(de.name,"'. Closing db now to resume the delete request.")),de.close({disableAutoOpen:!1})}),this.on("blocked",function(Je){!Je.newVersion||Je.newVersion<Je.oldVersion?console.warn("Dexie.delete('".concat(de.name,"') was blocked")):console.warn("Upgrade '".concat(de.name,"' blocked by other connection holding version ").concat(Je.oldVersion/10))}),this._maxKey=rp(X.IDBKeyRange),this._createTransaction=function(Je,gt,ot,ut){return new de.Transaction(Je,gt,ot,de._options.chromeTransactionDurability,ut)},this._fireOnBlocked=function(Je){de.on("blocked").fire(Je),Mt.filter(function(gt){return gt.name===de.name&&gt!==de&&!gt._state.vcFired}).map(function(gt){return gt.on("versionchange").fire(Je)})},this.use(z3e),this.use(q3e),this.use(V3e),this.use(H3e),this.use(U3e);var ft=new Proxy(this,{get:function(Je,gt,ot){if(gt==="_vip")return!0;if(gt==="table")return function(mt){return kO(de.table(mt),ft)};var ut=Reflect.get(Je,gt,ot);return ut instanceof pn?kO(ut,ft):gt==="tables"?ut.map(function(mt){return kO(mt,ft)}):gt==="_createTransaction"?function(){return kO(ut.apply(this,arguments),ft)}:ut}});this.vip=ft,we.forEach(function(Je){return Je(de)})}var PO,Pc=typeof Symbol<"u"&&"observable"in Symbol?Symbol.observable:"@@observable",Y3e=(K9.prototype.subscribe=function(q,X,de){return this._subscribe(q&&typeof q!="function"?q:{next:q,error:X,complete:de})},K9.prototype[Pc]=function(){return this},K9);function K9(q){this._subscribe=q}try{PO={indexedDB:o.indexedDB||o.mozIndexedDB||o.webkitIndexedDB||o.msIndexedDB,IDBKeyRange:o.IDBKeyRange||o.webkitIDBKeyRange}}catch{PO={indexedDB:null,IDBKeyRange:null}}function TZ(q){var X,de=!1,we=new Y3e(function(Ne){var Le=V(q),We,Qe=!1,it={},st={},ft={get closed(){return Qe},unsubscribe:function(){Qe||(Qe=!0,We&&We.abort(),Je&&kn.storagemutated.unsubscribe(ot))}};Ne.start&&Ne.start(ft);var Je=!1,gt=function(){return St(ut)},ot=function(mt){AO(it,mt),H9(st,it)&&gt()},ut=function(){var mt,lt,xt;!Qe&&PO.indexedDB&&(it={},mt={},We&&We.abort(),We=new AbortController,xt=function(Lt){var Ft=Tt();try{Le&&ht();var qt=vt(q,Lt);return qt=Le?qt.finally(kt):qt}finally{Ft&&Ot()}}(lt={subscr:mt,signal:We.signal,requery:gt,querier:q,trans:null}),Promise.resolve(xt).then(function(Lt){de=!0,X=Lt,Qe||lt.signal.aborted||(it={},function(Ft){for(var qt in Ft)if(d(Ft,qt))return;return 1}(st=mt)||Je||(kn(np,ot),Je=!0),St(function(){return!Qe&&Ne.next&&Ne.next(Lt)}))},function(Lt){de=!1,["DatabaseClosedError","AbortError"].includes(Lt==null?void 0:Lt.name)||Qe||St(function(){Qe||Ne.error&&Ne.error(Lt)})}))};return setTimeout(gt,0),ft});return we.hasValue=function(){return de},we.getValue=function(){return X},we}var Gg=ip;function Q9(q){var X=Lh;try{Lh=!0,kn.storagemutated.fire(q),V9(q,!0)}finally{Lh=X}}f(Gg,r(r({},fe),{delete:function(q){return new Gg(q,{addons:[]}).delete()},exists:function(q){return new Gg(q,{addons:[]}).open().then(function(X){return X.close(),!0}).catch("NoSuchDatabaseError",function(){return!1})},getDatabaseNames:function(q){try{return X=Gg.dependencies,de=X.indexedDB,X=X.IDBKeyRange,(F9(de)?Promise.resolve(de.databases()).then(function(we){return we.map(function(Ne){return Ne.name}).filter(function(Ne){return Ne!==It})}):$9(de,X).toCollection().primaryKeys()).then(q)}catch{return jt(new oe.MissingAPI)}var X,de},defineClass:function(){return function(q){l(this,q)}},ignoreTransaction:function(q){return Me.trans?Ht(Me.transless,q):q()},vip:B9,async:function(q){return function(){try{var X=G9(q.apply(this,arguments));return X&&typeof X.then=="function"?X:Ue.resolve(X)}catch(de){return jt(de)}}},spawn:function(q,X,de){try{var we=G9(q.apply(de,X||[]));return we&&typeof we.then=="function"?we:Ue.resolve(we)}catch(Ne){return jt(Ne)}},currentTransaction:{get:function(){return Me.trans||null}},waitFor:function(q,X){return X=Ue.resolve(typeof q=="function"?Gg.ignoreTransaction(q):q).timeout(X||6e4),Me.trans?Me.trans.waitFor(X):X},Promise:Ue,debug:{get:function(){return ye},set:function(q){he(q)}},derive:g,extend:l,props:f,override:_,Events:Xr,on:kn,liveQuery:TZ,extendObservabilitySet:AO,getByKeyPath:S,setByKeyPath:C,delByKeyPath:function(q,X){typeof X=="string"?C(q,X,void 0):"length"in X&&[].map.call(X,function(de){C(q,de,void 0)})},shallowClone:T,deepClone:M,getObjectDiff:W9,cmp:$e,asap:w,minKey:-1/0,addons:[],connections:Mt,errnames:K,dependencies:PO,cache:Vg,semVer:"4.0.10",version:"4.0.10".split(".").map(function(q){return parseInt(q)}).reduce(function(q,X,de){return q+X/Math.pow(10,2*de)})})),Gg.maxKey=rp(Gg.dependencies.IDBKeyRange),typeof dispatchEvent<"u"&&typeof addEventListener<"u"&&(kn(np,function(q){Lh||(q=new CustomEvent(Ug,{detail:q}),Lh=!0,dispatchEvent(q),Lh=!1)}),addEventListener(Ug,function(q){q=q.detail,Lh||Q9(q)}));var z0,Lh=!1,xZ=function(){};return typeof BroadcastChannel<"u"&&((xZ=function(){(z0=new BroadcastChannel(Ug)).onmessage=function(q){return q.data&&Q9(q.data)}})(),typeof z0.unref=="function"&&z0.unref(),kn(np,function(q){Lh||z0.postMessage(q)})),typeof addEventListener<"u"&&(addEventListener("pagehide",function(q){if(!ip.disableBfCache&&q.persisted){ye&&console.debug("Dexie: handling persisted pagehide"),z0!=null&&z0.close();for(var X=0,de=Mt;X<de.length;X++)de[X].close({disableAutoOpen:!1})}}),addEventListener("pageshow",function(q){!ip.disableBfCache&&q.persisted&&(ye&&console.debug("Dexie: handling persisted pageshow"),xZ(),Q9({all:new fs(-1/0,[[]])}))})),Ue.rejectionMapper=function(q,X){return!q||q instanceof U||q instanceof TypeError||q instanceof SyntaxError||!q.name||!ge[q.name]?q:(X=new ge[q.name](X||q.message,q),"stack"in q&&m(X,"stack",{get:function(){return this.inner.stack}}),X)},he(ye),r(ip,Object.freeze({__proto__:null,Dexie:ip,liveQuery:TZ,Entity:xe,cmp:$e,PropModSymbol:Gn,PropModification:_r,replacePrefix:function(q,X){return new _r({replacePrefix:[q,X]})},add:function(q){return new _r({add:q})},remove:function(q){return new _r({remove:q})},default:ip,RangeSet:fs,mergeRanges:gE,rangesOverlap:mZ}),{default:ip}),ip})})(O2e);var $_t=O2e.exports;const nU=di($_t),Uoe=Symbol.for("Dexie"),ik=globalThis[Uoe]||(globalThis[Uoe]=nU);if(nU.semVer!==ik.semVer)throw new Error(`Two different versions of Dexie loaded in the same app: ${nU.semVer} and ${ik.semVer}`);const{liveQuery:F_t,mergeRanges:eNn,rangesOverlap:tNn,RangeSet:nNn,cmp:rNn,Entity:iNn,PropModSymbol:oNn,PropModification:aNn,replacePrefix:sNn,add:lNn,remove:cNn}=ik;class R2e extends ik{constructor(){super("bytedesk");ai(this,"threads");ai(this,"messages");this.version(1).stores({threads:"++id, uid",messages:"++id, uid"})}async createMessage(n){return console.log("useIndexedDB createMessage",n.content),await Uc.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 Uc.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 Uc.messages.get(n)}async updateMessage(n,r){return await Uc.messages.update(n,{content:r})}async deleteMessage(n){return await Uc.messages.delete(n)}subscribeMessages(){F_t(()=>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 Uc.threads.put({uid:n.uid,type:n.type,topic:n.topic,status:n.status,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 Uc.threads.toArray()).map(r=>({uid:r.uid||"",type:r.type||"",topic:r.topic||"",status:r.status||"",extra:r.extra||"",createdAt:r.updatedAt||"",user:{uid:r.userUid||"",nickname:r.userNickname||"",avatar:r.userAvatar||""}}))}async getThread(n){return await Uc.threads.get(n)}async updateThread(n,r){return await Uc.threads.update(n,r)}async deleteThread(n){return await Uc.threads.delete(n)}}const Uc=new R2e;let Fo,dl,fl,ob=!1;const B_t=({uid:e,username:t,accessToken:n})=>{if(n===""||n==null){console.log("accessToken is empty, don't connect mqtt");return}if(dl=Oa.getState().userInfo,fl=b0.getState().agentInfo,ob){console.log("mqtt is connecting");return}if(Fo&&Fo.connected){console.log("mqtt already connected");return}if(Fo&&Fo.reconnecting){console.log("mqtt already reconnecting");return}ob=!0;const r=Oa.getState().deviceUid,o={keepalive:30,clientId:e+"/"+wr+"/"+r,username:t,password:n,clean:!1,path:"/websocket",reconnectPeriod:5e3,connectTimeout:30*1e3,reschedulePings:!0,rejectUnauthorized:!1,log(...a){ud&&console.log("mqtt debug log",...a)}};console.log("mqtt start connect:",o),Fo=Hje.connect(WFe(),o),Fo.on("connect",()=>{console.log("mqtt event connected"),ob=!1,vr.emit(DF)}),Fo.on("message",async function(a,s,l){console.log("mqtt receive message topic:",a,l);const c=Gbe.Message.deserializeBinary(s),u=id.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()}},f={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(z_t(c,dl,fl))switch(c.getType()){case KF:case YF:g$(c);return;case WF:case qF:return;case oee:return;case see:console.log("self transfer message"),Woe(f,d);break;case lee:console.log("self transfer accept message"),qoe(f,d);return;case cee:console.log("self transfer reject message"),Yoe(f,d);return;case aee:console.log("self recall message"),Koe(f);return;case pT:console.log("thread closed message"),id.getState().closeThread(d.topic);break;default:c.setStatus(VF)}else switch(c.getType()){case KF:case YF:g$(c);return;case WF:case qF:Goe(u,d,c.getType());return;case dT:Goe(u,d,c.getType());break;case oee:V_t(c,u,d);return;case o6e:case a6e:case s6e:case l6e:case c6e:case u6e:g$(c);return;case see:console.log("transfer message"),Woe(f,d);break;case lee:console.log("transfer accept message"),qoe(f,d);return;case cee:console.log("transfer reject message"),Yoe(f,d);return;case aee:console.log("recall message"),Koe(f);return;case fT:case pT:console.log("thread closed message"),id.getState().closeThread(d.topic);break;default:console.log("send receive message type",c.getType()),G_t(c,u,d)}console.log("mqtt message received",a,f,d),Eh.getState().addMessage(f),vr.emit(uT,f);const h=id.getState().addThreadWithMessage(d,f);console.log("unreadCount",h);try{await Uc.createMessage(f),console.log("Sent message stored in IndexedDB:",f)}catch(m){console.error("Error storing sent message in IndexedDB:",m)}}),Fo.on("packetsend",a=>{console.log("mqtt event packetsend",a)}),Fo.on("packetreceive",a=>{console.log("mqtt event packetreceive",a,a.cmd),a.cmd==="publish"||a.cmd==="pingresp"&&console.log("mqtt event packetreceive pingresp")}),Fo.on("reconnect",()=>{console.log("mqtt event reconnect")}),Fo.on("close",()=>{console.log("mqtt event close"),ob=!1,vr.emit($F)}),Fo.on("disconnect",()=>{console.error("mqtt event disconnected"),ob=!1,vr.emit(FF)}),Fo.on("offline",()=>{console.log("mqtt event offline"),ob=!1,vr.emit(LF)}),Fo.on("error",()=>{console.log("mqtt event error"),vr.emit(BF)}),Fo.on("end",()=>{console.log("mqtt event end"),vr.emit(jF)})},zoe=new Set,I2e=(e,t)=>{console.log("mqtt mqttSendReceiptReceivedMessage",e),zoe.has(e)||(zoe.add(e),A2e(zP(),YF,e,t))},Voe=new Set,j_t=(e,t)=>{console.log("mqtt mqttSendReceiptReadMessage",e),Voe.has(e)||(Voe.add(e),A2e(zP(),KF,e,t))},A2e=async(e,t,n,r)=>{var o,a,s,l,c,u,d,f;console.log("mqtt mqttSendMessage",n);const i=eGe();if(Fo&&Fo.connected){const h=new zje.Thread;h.setUid(r.uid),h.setType(r.type),h.setTopic(r.topic);const m=new vte.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),h.setUser(m);const g=new vte.User;(fl==null?void 0:fl.uid)!=""&&((r==null?void 0:r.type)===eee||(r==null?void 0:r.type)===tee)?(g.setUid(fl.uid),g.setNickname(fl.nickname),g.setAvatar(fl.avatar),g.setType(ZJ)):(g.setUid(dl.uid),g.setNickname(dl.nickname),g.setAvatar(dl.avatar),g.setType(JJ));const v={orgUid:(l=dl==null?void 0:dl.currentOrganization)==null?void 0:l.uid},y=new Gbe.Message;y.setUid(e),y.setType(t),y.setStatus(iee),y.setCreatedat(i),y.setClient(wr),y.setContent(n),y.setUser(g),y.setThread(h),y.setExtra(JSON.stringify(v));const b=y.serializeBinary();Fo.publish(r.topic,b);try{const _={uid:y.getUid(),type:y.getType(),content:y.getContent(),client:y.getClient(),createdAt:y.getCreatedat(),status:y.getStatus(),threadTopic:y.getThread().getTopic(),user:{uid:y.getUser().getUid(),nickname:y.getUser().getNickname(),avatar:y.getUser().getAvatar()}};await Uc.createMessage(_),console.log("Sent message stored in IndexedDB:",_)}catch(_){console.error("Error storing sent message in IndexedDB:",_)}}else{console.log("mqttClient is disconnect, use http rest api");const h={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;(fl==null?void 0:fl.uid)!=""&&((r==null?void 0:r.type)===eee||(r==null?void 0:r.type)===tee)?m={uid:fl.uid,nickname:fl.nickname,avatar:fl.avatar,type:ZJ}:m={uid:dl.uid,nickname:dl.nickname,avatar:dl.avatar,type:JJ};const g={orgUid:(f=dl==null?void 0:dl.currentOrganization)==null?void 0:f.uid},v={uid:e,type:t,status:iee,createdAt:i,client:wr,content:n,extra:JSON.stringify(g),user:m,thread:h};U_t(v)}},m$=()=>{Fo?Fo.end():console.log("mqttClient is null")},H_t=()=>Fo&&Fo.connected,U_t=async e=>{const t=JSON.stringify(e),n=await ZFe(t);if(console.log("sendHttpMessage:",n.data),n.data.code===200){Eh.getState().updateMessageStatus(e==null?void 0:e.uid,VF);const r={uid:e==null?void 0:e.uid,type:VF};vr.emit(mve,JSON.stringify(r))}else Wt.error(n.data.message)},z_t=(e,t,n)=>e.getUser().getUid()===(t==null?void 0:t.uid)||e.getUser().getUid()===(n==null?void 0:n.uid);function g$(e){console.log("update message status:",e.getContent(),e.getType()),Eh.getState().updateMessageStatus(e.getContent(),e.getType());const t={uid:e.getContent(),type:e.getType()};vr.emit(mve,JSON.stringify(t))}function Goe(e,t,n){(e==null?void 0:e.topic)===(t==null?void 0:t.topic)&&(n===WF?vr.emit(E$e):n===qF?vr.emit(C$e):n===dT&&vr.emit(w$e))}function V_t(e,t,n){(t==null?void 0:t.topic)===(n==null?void 0:n.topic)&&vr.emit(T$e,e.getContent())}function Woe(e,t){const n={message:e,thread:t};vr.emit(HF,JSON.stringify(n))}function qoe(e,t){const n=JSON.parse(e==null?void 0:e.content);Eh.getState().updateMessageStatus(n.uid,X$e);const r={message:e,thread:t};vr.emit(UF,JSON.stringify(r))}function Yoe(e,t){const n=JSON.parse(e==null?void 0:e.content);Eh.getState().updateMessageStatus(n.uid,Z$e);const r={message:e,thread:t};vr.emit(zF,JSON.stringify(r))}function Koe(e){console.log("handleRecallMessage",e==null?void 0:e.uid,e==null?void 0:e.content),Eh.getState().recallMessage(e==null?void 0:e.content)}function G_t(e,t,n){if(!iGe(n==null?void 0:n.topic)&&tGe(e==null?void 0:e.getType())){const r=e==null?void 0:e.getUid();I2e(r,n),(t==null?void 0:t.topic)===(n==null?void 0:n.topic)&&j_t(r,n)}}const W_t=Rc()(Md(kd(Pd(e=>({devices:[],currentDevice:{uid:""},myDevice:{uid:""},addDevice(t){console.log("addDevice",t)},setCurrentDevice:t=>{e({currentDevice:t})},setMyDevice(t){e({myDevice:t})},resetDeviceInfo(){}})),{name:D$e}))),q_t=()=>{FT("https://www.weiyuai.cn/docs/zh-CN/")},FT=e=>{Ha?window.electronAPI.openUrl(e):window.open(e,"_blank")},Y_t=async()=>{if(Ha){const e=await window.electronAPI.getSystemInfo();console.log("systemInfo:",e)}else return console.log("not electron"),{platform:"web"}},N2e=async()=>Ha?await window.electronAPI.getIpAddress():(console.log("not electron"),[]),K_t=async()=>{if(Ha){const e=await window.electronAPI.isWindowActive();return console.log("isWindowActive:",e),e}return null},Q_t=(e,t)=>{Ha&&window.electronAPI.showElectronNotification(e,t)},X_t=e=>{Ha?window.electronAPI.setThemeMode(e):console.log("not electron")},rU=()=>{Ha&&window.electronAPI.loginSuccess()},Z_t=()=>{Ha&&window.electronAPI.logoutSuccess()};function AY(){console.debug("useUserInfo");const[e,t]=p.useState(""),{myDevice:n,setMyDevice:r}=W_t(T=>({myDevice:T.myDevice,setMyDevice:T.setMyDevice})),{userInfo:i,deviceUid:o,setUserInfo:a,setDeviceUid:s}=Oa(T=>({userInfo:T.userInfo,deviceUid:T.deviceUid,setUserInfo:T.setUserInfo,setDeviceUid:T.setDeviceUid})),{agentInfo:l}=b0(T=>({agentInfo:T.agentInfo})),c=Eh(T=>T.addMessage),u=id(T=>T.updateThreadContent),d=p.useRef(!1),[f,h]=p.useState(!1);p.useEffect(()=>{h(!1),i.userOrganizationRoles&&i.userOrganizationRoles.forEach(T=>{T.roles.forEach(x=>{x.name===h6e&&h(!0)})})},[i.userOrganizationRoles]);const[m,g]=p.useState(!1);p.useEffect(()=>{g(!1),i.userOrganizationRoles&&i.userOrganizationRoles.forEach(T=>{T.roles.forEach(x=>{x.name===m6e&&g(!0)})})},[i.userOrganizationRoles]);const[v,y]=p.useState(!1);p.useEffect(()=>{y(!1),i.userOrganizationRoles&&i.userOrganizationRoles.forEach(T=>{T.roles.forEach(x=>{x.name===g6e&&y(!0)})})},[i.userOrganizationRoles]);const[b,_]=p.useState(!1);p.useEffect(()=>{_(!1),i.userOrganizationRoles&&i.userOrganizationRoles.forEach(T=>{T.roles.forEach(x=>{x.name===v6e&&_(!0)})})},[i.userOrganizationRoles]);const E="",w=async()=>{const T=await N2e();console.log("ipAddress",e,T),T.length>0&&(t(T[0]),n.ip=T[0],r(n))},S=async()=>{var x,O;if(d.current)return;d.current=!0;const T=await XFe(l==null?void 0:l.uid);console.log("getAgentMessageUnread response:",T==null?void 0:T.data),(O=(x=T==null?void 0:T.data)==null?void 0:x.data)==null||O.forEach(N=>{console.log("getAgentMessageUnread item:",N),c(N);const I=u(N.threadTopic,N.content);I&&I2e(N==null?void 0:N.uid,I)}),d.current=!1};return p.useEffect(()=>{b&&S()},[b]),p.useEffect(()=>{console.log("useUserInfo useEffect"),(o===void 0||o==="")&&s(zP()),w()},[]),{userInfo:i,setUserInfo:a,agentInfo:l,handleUpdateAgentStatus:async T=>{const x={...l,status:T};Wt.loading("正在更新状态");const O=await QFe(x);console.log("updateAgentStatus:",T,O.data),O.data.code===200?(Wt.destroy(),Wt.success("状态更新成功")):(Wt.destroy(),Wt.error("状态更新失败"))},avatar:E,hasRoleAgent:b,hasRoleSuper:f,hasRoleAdmin:m,hasRoleMember:v}}const as=p.createContext({}),J_t=({children:e})=>{const[t,n]=p.useState(!1),[r,i]=p.useState(!1),o=Fx(x=>x.accessToken),a=y6e(x=>x.settings),{userInfo:s,setUserInfo:l,agentInfo:c,handleUpdateAgentStatus:u,hasRoleAgent:d,hasRoleSuper:f,hasRoleAdmin:h,hasRoleMember:m}=AY(),g=p.useMemo(()=>!!o&&o.trim().length>0,[o]),{themeMode:v,setThemeMode:y,isDarkMode:b}=BG(),[_,E]=p.useState(tR),w=x=>{let O;x==="en"?O=pee:x==="zh-cn"?O=tR:x==="zh-tw"?O=h7e:O=tR,console.log("changeLocale localeValue:",O),E(O),localStorage.setItem(qJ,O.locale)},[S,C]=p.useState(vy),T=x=>{C(x),localStorage.setItem(YJ,x)};return p.useEffect(()=>{const x=localStorage.getItem(qJ);E(x==="en"?pee:tR);const O=localStorage.getItem(YJ);C(O===vy?vy:O===kv?kv:ZN)},[]),H.jsx(as.Provider,{value:{isCustomServer:t,setIsCustomServer:n,isLoggedIn:g,settings:a,isDarkMode:b,themeMode:v,setThemeMode:y,locale:_,changeLocale:w,mode:S,changeMode:T,isPingLoading:r,setPingLoading:i,userInfo:s,setUserInfo:l,agentInfo:c,handleUpdateAgentStatus:u,hasRoleAgent:d,hasRoleSuper:f,hasRoleAdmin:h,hasRoleMember:m},children:e})};var vD=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(){}},bD=typeof window>"u"||"Deno"in globalThis;function Wu(){}function eSt(e,t){return typeof e=="function"?e(t):e}function tSt(e){return typeof e=="number"&&e>=0&&e!==1/0}function nSt(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Qoe(e,t){return typeof e=="function"?e(t):e}function rSt(e,t){return typeof e=="function"?e(t):e}function Xoe(e,t){const{type:n="all",exact:r,fetchStatus:i,predicate:o,queryKey:a,stale:s}=e;if(a){if(r){if(t.queryHash!==NY(a,t.options))return!1}else if(!jT(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 Zoe(e,t){const{exact:n,status:r,predicate:i,mutationKey:o}=e;if(o){if(!t.options.mutationKey)return!1;if(n){if(BT(t.options.mutationKey)!==BT(o))return!1}else if(!jT(t.options.mutationKey,o))return!1}return!(r&&t.state.status!==r||i&&!i(t))}function NY(e,t){return((t==null?void 0:t.queryKeyHashFn)||BT)(e)}function BT(e){return JSON.stringify(e,(t,n)=>iU(n)?Object.keys(n).sort().reduce((r,i)=>(r[i]=n[i],r),{}):n)}function jT(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?!Object.keys(t).some(n=>!jT(e[n],t[n])):!1}function M2e(e,t){if(e===t)return e;const n=Joe(e)&&Joe(t);if(n||iU(e)&&iU(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]=M2e(e[u],t[u]),s[u]===e[u]&&e[u]!==void 0&&l++)}return i===a&&l===i?e:s}return t}function Joe(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function iU(e){if(!eae(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!eae(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function eae(e){return Object.prototype.toString.call(e)==="[object Object]"}function iSt(e){return new Promise(t=>{setTimeout(t,e)})}function oSt(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?M2e(e,t):t}function aSt(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function sSt(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var MY=Symbol();function k2e(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===MY?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}var Q1,Em,jy,kme,lSt=(kme=class extends vD{constructor(){super();zn(this,Q1);zn(this,Em);zn(this,jy);yn(this,jy,t=>{if(!bD&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){Fe(this,Em)||this.setEventListener(Fe(this,jy))}onUnsubscribe(){var t;this.hasListeners()||((t=Fe(this,Em))==null||t.call(this),yn(this,Em,void 0))}setEventListener(t){var n;yn(this,jy,t),(n=Fe(this,Em))==null||n.call(this),yn(this,Em,t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(t){Fe(this,Q1)!==t&&(yn(this,Q1,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof Fe(this,Q1)=="boolean"?Fe(this,Q1):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},Q1=new WeakMap,Em=new WeakMap,jy=new WeakMap,kme),P2e=new lSt,Hy,Cm,Uy,Pme,cSt=(Pme=class extends vD{constructor(){super();zn(this,Hy,!0);zn(this,Cm);zn(this,Uy);yn(this,Uy,t=>{if(!bD&&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(){Fe(this,Cm)||this.setEventListener(Fe(this,Uy))}onUnsubscribe(){var t;this.hasListeners()||((t=Fe(this,Cm))==null||t.call(this),yn(this,Cm,void 0))}setEventListener(t){var n;yn(this,Uy,t),(n=Fe(this,Cm))==null||n.call(this),yn(this,Cm,t(this.setOnline.bind(this)))}setOnline(t){Fe(this,Hy)!==t&&(yn(this,Hy,t),this.listeners.forEach(r=>{r(t)}))}isOnline(){return Fe(this,Hy)}},Hy=new WeakMap,Cm=new WeakMap,Uy=new WeakMap,Pme),ok=new cSt;function uSt(){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 dSt(e){return Math.min(1e3*2**e,3e4)}function D2e(e){return(e??"online")==="online"?ok.isOnline():!0}var L2e=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function v$(e){return e instanceof L2e}function $2e(e){let t=!1,n=0,r=!1,i;const o=uSt(),a=g=>{var v;r||(f(new L2e(g)),(v=e.abort)==null||v.call(e))},s=()=>{t=!0},l=()=>{t=!1},c=()=>P2e.isFocused()&&(e.networkMode==="always"||ok.isOnline())&&e.canRun(),u=()=>D2e(e.networkMode)&&e.canRun(),d=g=>{var v;r||(r=!0,(v=e.onSuccess)==null||v.call(e,g),i==null||i(),o.resolve(g))},f=g=>{var v;r||(r=!0,(v=e.onError)==null||v.call(e,g),i==null||i(),o.reject(g))},h=()=>new Promise(g=>{var v;i=y=>{(r||c())&&g(y)},(v=e.onPause)==null||v.call(e)}).then(()=>{var g;i=void 0,r||(g=e.onContinue)==null||g.call(e)}),m=()=>{if(r)return;let g;const v=n===0?e.initialPromise:void 0;try{g=v??e.fn()}catch(y){g=Promise.reject(y)}Promise.resolve(g).then(d).catch(y=>{var S;if(r)return;const b=e.retry??(bD?0:3),_=e.retryDelay??dSt,E=typeof _=="function"?_(n,y):_,w=b===!0||typeof b=="number"&&n<b||typeof b=="function"&&b(n,y);if(t||!w){f(y);return}n++,(S=e.onFail)==null||S.call(e,n,y),iSt(E).then(()=>c()?void 0:h()).then(()=>{t?f(y):m()})})};return{promise:o,cancel:a,continue:()=>(i==null||i(),o),cancelRetry:s,continueRetry:l,canStart:u,start:()=>(u()?m():h().then(m),o)}}function fSt(){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 Ws=fSt(),X1,Dme,F2e=(Dme=class{constructor(){zn(this,X1)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),tSt(this.gcTime)&&yn(this,X1,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(bD?1/0:5*60*1e3))}clearGcTimeout(){Fe(this,X1)&&(clearTimeout(Fe(this,X1)),yn(this,X1,void 0))}},X1=new WeakMap,Dme),zy,Vy,Vc,bs,Ix,Z1,qu,yp,Lme,pSt=(Lme=class extends F2e{constructor(t){super();zn(this,qu);zn(this,zy);zn(this,Vy);zn(this,Vc);zn(this,bs);zn(this,Ix);zn(this,Z1);yn(this,Z1,!1),yn(this,Ix,t.defaultOptions),this.setOptions(t.options),this.observers=[],yn(this,Vc,t.cache),this.queryKey=t.queryKey,this.queryHash=t.queryHash,yn(this,zy,mSt(this.options)),this.state=t.state??Fe(this,zy),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=Fe(this,bs))==null?void 0:t.promise}setOptions(t){this.options={...Fe(this,Ix),...t},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&Fe(this,Vc).remove(this)}setData(t,n){const r=oSt(this.state.data,t,this.options);return Dn(this,qu,yp).call(this,{data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t,n){Dn(this,qu,yp).call(this,{type:"setState",state:t,setStateOptions:n})}cancel(t){var r,i;const n=(r=Fe(this,bs))==null?void 0:r.promise;return(i=Fe(this,bs))==null||i.cancel(t),n?n.then(Wu).catch(Wu):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(Fe(this,zy))}isActive(){return this.observers.some(t=>rSt(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===MY||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||!nSt(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=this.observers.find(r=>r.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=Fe(this,bs))==null||n.continue()}onOnline(){var n;const t=this.observers.find(r=>r.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=Fe(this,bs))==null||n.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),Fe(this,Vc).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(Fe(this,bs)&&(Fe(this,Z1)?Fe(this,bs).cancel({revert:!0}):Fe(this,bs).cancelRetry()),this.scheduleGc()),Fe(this,Vc).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||Dn(this,qu,yp).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(Fe(this,bs))return Fe(this,bs).continueRetry(),Fe(this,bs).promise}if(t&&this.setOptions(t),!this.options.queryFn){const d=this.observers.find(f=>f.options.queryFn);d&&this.setOptions(d.options)}const r=new AbortController,i=d=>{Object.defineProperty(d,"signal",{enumerable:!0,get:()=>(yn(this,Z1,!0),r.signal)})},o=()=>{const d=k2e(this.options,n),f={queryKey:this.queryKey,meta:this.meta};return i(f),yn(this,Z1,!1),this.options.persister?this.options.persister(d,f,this):d(f)},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),yn(this,Vy,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((c=a.fetchOptions)==null?void 0:c.meta))&&Dn(this,qu,yp).call(this,{type:"fetch",meta:(u=a.fetchOptions)==null?void 0:u.meta});const s=d=>{var f,h,m,g;v$(d)&&d.silent||Dn(this,qu,yp).call(this,{type:"error",error:d}),v$(d)||((h=(f=Fe(this,Vc).config).onError)==null||h.call(f,d,this),(g=(m=Fe(this,Vc).config).onSettled)==null||g.call(m,this.state.data,d,this)),this.scheduleGc()};return yn(this,bs,$2e({initialPromise:n==null?void 0:n.initialPromise,fn:a.fetchFn,abort:r.abort.bind(r),onSuccess:d=>{var f,h,m,g;if(d===void 0){s(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(d)}catch(v){s(v);return}(h=(f=Fe(this,Vc).config).onSuccess)==null||h.call(f,d,this),(g=(m=Fe(this,Vc).config).onSettled)==null||g.call(m,d,this.state.error,this),this.scheduleGc()},onError:s,onFail:(d,f)=>{Dn(this,qu,yp).call(this,{type:"failed",failureCount:d,error:f})},onPause:()=>{Dn(this,qu,yp).call(this,{type:"pause"})},onContinue:()=>{Dn(this,qu,yp).call(this,{type:"continue"})},retry:a.options.retry,retryDelay:a.options.retryDelay,networkMode:a.options.networkMode,canRun:()=>!0})),Fe(this,bs).start()}},zy=new WeakMap,Vy=new WeakMap,Vc=new WeakMap,bs=new WeakMap,Ix=new WeakMap,Z1=new WeakMap,qu=new WeakSet,yp=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,...hSt(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 v$(i)&&i.revert&&Fe(this,Vy)?{...Fe(this,Vy),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),Ws.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),Fe(this,Vc).notify({query:this,type:"updated",action:t})})},Lme);function hSt(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:D2e(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function mSt(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 cf,$me,gSt=($me=class extends vD{constructor(t={}){super();zn(this,cf);this.config=t,yn(this,cf,new Map)}build(t,n,r){const i=n.queryKey,o=n.queryHash??NY(i,n);let a=this.get(o);return a||(a=new pSt({cache:this,queryKey:i,queryHash:o,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(i)}),this.add(a)),a}add(t){Fe(this,cf).has(t.queryHash)||(Fe(this,cf).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=Fe(this,cf).get(t.queryHash);n&&(t.destroy(),n===t&&Fe(this,cf).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){Ws.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return Fe(this,cf).get(t)}getAll(){return[...Fe(this,cf).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(r=>Xoe(n,r))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(r=>Xoe(t,r)):n}notify(t){Ws.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){Ws.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){Ws.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},cf=new WeakMap,$me),uf,js,J1,df,em,Fme,vSt=(Fme=class extends F2e{constructor(t){super();zn(this,df);zn(this,uf);zn(this,js);zn(this,J1);this.mutationId=t.mutationId,yn(this,js,t.mutationCache),yn(this,uf,[]),this.state=t.state||bSt(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){Fe(this,uf).includes(t)||(Fe(this,uf).push(t),this.clearGcTimeout(),Fe(this,js).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){yn(this,uf,Fe(this,uf).filter(n=>n!==t)),this.scheduleGc(),Fe(this,js).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){Fe(this,uf).length||(this.state.status==="pending"?this.scheduleGc():Fe(this,js).remove(this))}continue(){var t;return((t=Fe(this,J1))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var i,o,a,s,l,c,u,d,f,h,m,g,v,y,b,_,E,w,S,C;yn(this,J1,$2e({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(T,x)=>{Dn(this,df,em).call(this,{type:"failed",failureCount:T,error:x})},onPause:()=>{Dn(this,df,em).call(this,{type:"pause"})},onContinue:()=>{Dn(this,df,em).call(this,{type:"continue"})},retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>Fe(this,js).canRun(this)}));const n=this.state.status==="pending",r=!Fe(this,J1).canStart();try{if(!n){Dn(this,df,em).call(this,{type:"pending",variables:t,isPaused:r}),await((o=(i=Fe(this,js).config).onMutate)==null?void 0:o.call(i,t,this));const x=await((s=(a=this.options).onMutate)==null?void 0:s.call(a,t));x!==this.state.context&&Dn(this,df,em).call(this,{type:"pending",context:x,variables:t,isPaused:r})}const T=await Fe(this,J1).start();return await((c=(l=Fe(this,js).config).onSuccess)==null?void 0:c.call(l,T,t,this.state.context,this)),await((d=(u=this.options).onSuccess)==null?void 0:d.call(u,T,t,this.state.context)),await((h=(f=Fe(this,js).config).onSettled)==null?void 0:h.call(f,T,null,this.state.variables,this.state.context,this)),await((g=(m=this.options).onSettled)==null?void 0:g.call(m,T,null,t,this.state.context)),Dn(this,df,em).call(this,{type:"success",data:T}),T}catch(T){try{throw await((y=(v=Fe(this,js).config).onError)==null?void 0:y.call(v,T,t,this.state.context,this)),await((_=(b=this.options).onError)==null?void 0:_.call(b,T,t,this.state.context)),await((w=(E=Fe(this,js).config).onSettled)==null?void 0:w.call(E,void 0,T,this.state.variables,this.state.context,this)),await((C=(S=this.options).onSettled)==null?void 0:C.call(S,void 0,T,t,this.state.context)),T}finally{Dn(this,df,em).call(this,{type:"error",error:T})}}finally{Fe(this,js).runNext(this)}}},uf=new WeakMap,js=new WeakMap,J1=new WeakMap,df=new WeakSet,em=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),Ws.batch(()=>{Fe(this,uf).forEach(r=>{r.onMutationUpdate(t)}),Fe(this,js).notify({mutation:this,type:"updated",action:t})})},Fme);function bSt(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var nc,Ax,Bme,ySt=(Bme=class extends vD{constructor(t={}){super();zn(this,nc);zn(this,Ax);this.config=t,yn(this,nc,new Map),yn(this,Ax,Date.now())}build(t,n,r){const i=new vSt({mutationCache:this,mutationId:++qg(this,Ax)._,options:t.defaultMutationOptions(n),state:r});return this.add(i),i}add(t){const n=FR(t),r=Fe(this,nc).get(n)??[];r.push(t),Fe(this,nc).set(n,r),this.notify({type:"added",mutation:t})}remove(t){var r;const n=FR(t);if(Fe(this,nc).has(n)){const i=(r=Fe(this,nc).get(n))==null?void 0:r.filter(o=>o!==t);i&&(i.length===0?Fe(this,nc).delete(n):Fe(this,nc).set(n,i))}this.notify({type:"removed",mutation:t})}canRun(t){var r;const n=(r=Fe(this,nc).get(FR(t)))==null?void 0:r.find(i=>i.state.status==="pending");return!n||n===t}runNext(t){var r;const n=(r=Fe(this,nc).get(FR(t)))==null?void 0:r.find(i=>i!==t&&i.state.isPaused);return(n==null?void 0:n.continue())??Promise.resolve()}clear(){Ws.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}getAll(){return[...Fe(this,nc).values()].flat()}find(t){const n={exact:!0,...t};return this.getAll().find(r=>Zoe(n,r))}findAll(t={}){return this.getAll().filter(n=>Zoe(t,n))}notify(t){Ws.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return Ws.batch(()=>Promise.all(t.map(n=>n.continue().catch(Wu))))}},nc=new WeakMap,Ax=new WeakMap,Bme);function FR(e){var t;return((t=e.options.scope)==null?void 0:t.id)??String(e.mutationId)}function tae(e){return{onFetch:(t,n)=>{var u,d,f,h,m;const r=t.options,i=(f=(d=(u=t.fetchOptions)==null?void 0:u.meta)==null?void 0:d.fetchMore)==null?void 0:f.direction,o=((h=t.state.data)==null?void 0:h.pages)||[],a=((m=t.state.data)==null?void 0:m.pageParams)||[];let s={pages:[],pageParams:[]},l=0;const c=async()=>{let g=!1;const v=_=>{Object.defineProperty(_,"signal",{enumerable:!0,get:()=>(t.signal.aborted?g=!0:t.signal.addEventListener("abort",()=>{g=!0}),t.signal)})},y=k2e(t.options,t.fetchOptions),b=async(_,E,w)=>{if(g)return Promise.reject();if(E==null&&_.pages.length)return Promise.resolve(_);const S={queryKey:t.queryKey,pageParam:E,direction:w?"backward":"forward",meta:t.options.meta};v(S);const C=await y(S),{maxPages:T}=t.options,x=w?sSt:aSt;return{pages:x(_.pages,C,T),pageParams:x(_.pageParams,E,T)}};if(i&&o.length){const _=i==="backward",E=_?_St:nae,w={pages:o,pageParams:a},S=E(r,w);s=await b(w,S,_)}else{const _=e??o.length;do{const E=l===0?a[0]??r.initialPageParam:nae(r,s);if(l>0&&E==null)break;s=await b(s,E),l++}while(l<_)}return s};t.options.persister?t.fetchFn=()=>{var g,v;return(v=(g=t.options).persister)==null?void 0:v.call(g,c,{queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=c}}}function nae(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 _St(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 $o,wm,Tm,Gy,Wy,xm,qy,Yy,jme,SSt=(jme=class{constructor(e={}){zn(this,$o);zn(this,wm);zn(this,Tm);zn(this,Gy);zn(this,Wy);zn(this,xm);zn(this,qy);zn(this,Yy);yn(this,$o,e.queryCache||new gSt),yn(this,wm,e.mutationCache||new ySt),yn(this,Tm,e.defaultOptions||{}),yn(this,Gy,new Map),yn(this,Wy,new Map),yn(this,xm,0)}mount(){qg(this,xm)._++,Fe(this,xm)===1&&(yn(this,qy,P2e.subscribe(async e=>{e&&(await this.resumePausedMutations(),Fe(this,$o).onFocus())})),yn(this,Yy,ok.subscribe(async e=>{e&&(await this.resumePausedMutations(),Fe(this,$o).onOnline())})))}unmount(){var e,t;qg(this,xm)._--,Fe(this,xm)===0&&((e=Fe(this,qy))==null||e.call(this),yn(this,qy,void 0),(t=Fe(this,Yy))==null||t.call(this),yn(this,Yy,void 0))}isFetching(e){return Fe(this,$o).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return Fe(this,wm).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=Fe(this,$o).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=Fe(this,$o).build(this,n);return e.revalidateIfStale&&r.isStaleByTime(Qoe(n.staleTime,r))&&this.prefetchQuery(n),Promise.resolve(t)}}getQueriesData(e){return Fe(this,$o).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=Fe(this,$o).get(r.queryHash),o=i==null?void 0:i.state.data,a=eSt(t,o);if(a!==void 0)return Fe(this,$o).build(this,r).setData(a,{...n,manual:!0})}setQueriesData(e,t,n){return Ws.batch(()=>Fe(this,$o).findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=Fe(this,$o).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=Fe(this,$o);Ws.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=Fe(this,$o),r={type:"active",...e};return Ws.batch(()=>(n.findAll(e).forEach(i=>{i.reset()}),this.refetchQueries(r,t)))}cancelQueries(e={},t={}){const n={revert:!0,...t},r=Ws.batch(()=>Fe(this,$o).findAll(e).map(i=>i.cancel(n)));return Promise.all(r).then(Wu).catch(Wu)}invalidateQueries(e={},t={}){return Ws.batch(()=>{if(Fe(this,$o).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=Ws.batch(()=>Fe(this,$o).findAll(e).filter(i=>!i.isDisabled()).map(i=>{let o=i.fetch(void 0,n);return n.throwOnError||(o=o.catch(Wu)),i.state.fetchStatus==="paused"?Promise.resolve():o}));return Promise.all(r).then(Wu)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=Fe(this,$o).build(this,t);return n.isStaleByTime(Qoe(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(Wu).catch(Wu)}fetchInfiniteQuery(e){return e.behavior=tae(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(Wu).catch(Wu)}ensureInfiniteQueryData(e){return e.behavior=tae(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return ok.isOnline()?Fe(this,wm).resumePausedMutations():Promise.resolve()}getQueryCache(){return Fe(this,$o)}getMutationCache(){return Fe(this,wm)}getDefaultOptions(){return Fe(this,Tm)}setDefaultOptions(e){yn(this,Tm,e)}setQueryDefaults(e,t){Fe(this,Gy).set(BT(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...Fe(this,Gy).values()];let n={};return t.forEach(r=>{jT(e,r.queryKey)&&(n={...n,...r.defaultOptions})}),n}setMutationDefaults(e,t){Fe(this,Wy).set(BT(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...Fe(this,Wy).values()];let n={};return t.forEach(r=>{jT(e,r.mutationKey)&&(n={...n,...r.defaultOptions})}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...Fe(this,Tm).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=NY(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===MY&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...Fe(this,Tm).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){Fe(this,$o).clear(),Fe(this,wm).clear()}},$o=new WeakMap,wm=new WeakMap,Tm=new WeakMap,Gy=new WeakMap,Wy=new WeakMap,xm=new WeakMap,qy=new WeakMap,Yy=new WeakMap,jme),ESt=p.createContext(void 0),CSt=({client:e,children:t})=>(p.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),H.jsx(ESt.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 vo(){return vo=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},vo.apply(this,arguments)}var la;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(la||(la={}));const rae="popstate";function wSt(e){e===void 0&&(e={});function t(r,i){let{pathname:o,search:a,hash:s}=r.location;return S_("",{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:vg(i)}return B2e(t,n,null,e)}function TSt(e){e===void 0&&(e={});function t(i,o){let{pathname:a="/",search:s="",hash:l=""}=Rh(i.location.hash.substr(1));return!a.startsWith("/")&&!a.startsWith(".")&&(a="/"+a),S_("",{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:vg(o))}function r(i,o){Gv(i.pathname.charAt(0)==="/","relative pathnames are not supported in hash history.push("+JSON.stringify(o)+")")}return B2e(t,n,r,e)}function Hr(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function Gv(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function xSt(){return Math.random().toString(36).substr(2,8)}function iae(e,t){return{usr:e.state,key:e.key,idx:t}}function S_(e,t,n,r){return n===void 0&&(n=null),vo({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Rh(t):t,{state:n,key:t&&t.key||r||xSt()})}function vg(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 Rh(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 B2e(e,t,n,r){r===void 0&&(r={});let{window:i=document.defaultView,v5Compat:o=!1}=r,a=i.history,s=la.Pop,l=null,c=u();c==null&&(c=0,a.replaceState(vo({},a.state,{idx:c}),""));function u(){return(a.state||{idx:null}).idx}function d(){s=la.Pop;let v=u(),y=v==null?null:v-c;c=v,l&&l({action:s,location:g.location,delta:y})}function f(v,y){s=la.Push;let b=S_(g.location,v,y);n&&n(b,v),c=u()+1;let _=iae(b,c),E=g.createHref(b);try{a.pushState(_,"",E)}catch(w){if(w instanceof DOMException&&w.name==="DataCloneError")throw w;i.location.assign(E)}o&&l&&l({action:s,location:g.location,delta:1})}function h(v,y){s=la.Replace;let b=S_(g.location,v,y);n&&n(b,v),c=u();let _=iae(b,c),E=g.createHref(b);a.replaceState(_,"",E),o&&l&&l({action:s,location:g.location,delta:0})}function m(v){let y=i.location.origin!=="null"?i.location.origin:i.location.href,b=typeof v=="string"?v:vg(v);return b=b.replace(/ $/,"%20"),Hr(y,"No window.location.(origin|href) available to create URL for href: "+b),new URL(b,y)}let g={get action(){return s},get location(){return e(i,a)},listen(v){if(l)throw new Error("A history only accepts one active listener");return i.addEventListener(rae,d),l=v,()=>{i.removeEventListener(rae,d),l=null}},createHref(v){return t(i,v)},createURL:m,encodeLocation(v){let y=m(v);return{pathname:y.pathname,search:y.search,hash:y.hash}},push:f,replace:h,go(v){return a.go(v)}};return g}var Di;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(Di||(Di={}));const OSt=new Set(["lazy","caseSensitive","path","id","index","children"]);function RSt(e){return e.index===!0}function ak(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(Hr(i.index!==!0||!i.children,"Cannot specify children on an index route"),Hr(!r[s],'Found a route id collision on id "'+s+`". Route id's must be globally unique within Data Router usages`),RSt(i)){let l=vo({},i,t(i),{id:s});return r[s]=l,l}else{let l=vo({},i,t(i),{id:s,children:void 0});return r[s]=l,i.children&&(l.children=ak(i.children,t,a,r)),l}})}function w1(e,t,n){return n===void 0&&(n="/"),FA(e,t,n,!1)}function FA(e,t,n,r){let i=typeof t=="string"?Rh(t):t,o=DS(i.pathname||"/",n);if(o==null)return null;let a=j2e(e);ASt(a);let s=null;for(let l=0;s==null&&l<a.length;++l){let c=HSt(o);s=BSt(a[l],c,r)}return s}function ISt(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 j2e(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("/")&&(Hr(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=Kp([r,l.relativePath]),u=n.concat(l);o.children&&o.children.length>0&&(Hr(o.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+c+'".')),j2e(o.children,t,u,c)),!(o.path==null&&!o.index)&&t.push({path:c,score:$St(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 H2e(o.path))i(o,a,l)}),t}function H2e(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=H2e(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 ASt(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:FSt(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const NSt=/^:[\w-]+$/,MSt=3,kSt=2,PSt=1,DSt=10,LSt=-2,oae=e=>e==="*";function $St(e,t){let n=e.split("/"),r=n.length;return n.some(oae)&&(r+=LSt),t&&(r+=kSt),n.filter(i=>!oae(i)).reduce((i,o)=>i+(NSt.test(o)?MSt:o===""?PSt:DSt),r)}function FSt(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 BSt(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=aae({path:l.relativePath,caseSensitive:l.caseSensitive,end:c},u),f=l.route;if(!d&&c&&n&&!r[r.length-1].route.index&&(d=aae({path:l.relativePath,caseSensitive:l.caseSensitive,end:!1},u)),!d)return null;Object.assign(i,d.params),a.push({params:i,pathname:Kp([o,d.pathname]),pathnameBase:VSt(Kp([o,d.pathnameBase])),route:f}),d.pathnameBase!=="/"&&(o=Kp([o,d.pathnameBase]))}return a}function aae(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=jSt(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:f,isOptional:h}=u;if(f==="*"){let g=s[d]||"";a=o.slice(0,o.length-g.length).replace(/(.)\/+$/,"$1")}const m=s[d];return h&&!m?c[f]=void 0:c[f]=(m||"").replace(/%2F/g,"/"),c},{}),pathname:o,pathnameBase:a,pattern:e}}function jSt(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),Gv(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 HSt(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Gv(!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 DS(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 USt(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:i=""}=typeof e=="string"?Rh(e):e;return{pathname:n?n.startsWith("/")?n:zSt(n,t):t,search:GSt(r),hash:WSt(i)}}function zSt(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 b$(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 U2e(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function yD(e,t){let n=U2e(e);return t?n.map((r,i)=>i===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function _D(e,t,n,r){r===void 0&&(r=!1);let i;typeof e=="string"?i=Rh(e):(i=vo({},e),Hr(!i.pathname||!i.pathname.includes("?"),b$("?","pathname","search",i)),Hr(!i.pathname||!i.pathname.includes("#"),b$("#","pathname","hash",i)),Hr(!i.search||!i.search.includes("#"),b$("#","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 f=a.split("/");for(;f[0]==="..";)f.shift(),d-=1;i.pathname=f.join("/")}s=d>=0?t[d]:"/"}let l=USt(i,s),c=a&&a!=="/"&&a.endsWith("/"),u=(o||a===".")&&n.endsWith("/");return!l.pathname.endsWith("/")&&(c||u)&&(l.pathname+="/"),l}const Kp=e=>e.join("/").replace(/\/\/+/g,"/"),VSt=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),GSt=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,WSt=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;class sk{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 SD(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const z2e=["post","put","patch","delete"],qSt=new Set(z2e),YSt=["get",...z2e],KSt=new Set(YSt),QSt=new Set([301,302,303,307,308]),XSt=new Set([307,308]),y$={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},ZSt={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},UE={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},kY=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,JSt=e=>({hasErrorBoundary:!!e.hasErrorBoundary}),V2e="remix-router-transitions";function G2e(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;Hr(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 ze=e.detectErrorBoundary;i=Ye=>({hasErrorBoundary:ze(Ye)})}else i=JSt;let o={},a=ak(e.routes,i,void 0,o),s,l=e.basename||"/",c=e.dataStrategy||rEt,u=e.patchRoutesOnNavigation,d=vo({v7_fetcherPersist:!1,v7_normalizeFormMethod:!1,v7_partialHydration:!1,v7_prependBasename:!1,v7_relativeSplatPath:!1,v7_skipActionErrorRevalidation:!1},e.future),f=null,h=new Set,m=null,g=null,v=null,y=e.hydrationData!=null,b=w1(a,e.history.location,l),_=null;if(b==null&&!u){let ze=gl(404,{pathname:e.history.location.pathname}),{matches:Ye,route:He}=vae(a);b=Ye,_={[He.id]:ze}}b&&!e.hydrationData&&Vt(b,a,e.history.location.pathname).active&&(b=null);let E;if(b)if(b.some(ze=>ze.route.lazy))E=!1;else if(!b.some(ze=>ze.route.loader))E=!0;else if(d.v7_partialHydration){let ze=e.hydrationData?e.hydrationData.loaderData:null,Ye=e.hydrationData?e.hydrationData.errors:null;if(Ye){let He=b.findIndex(Ze=>Ye[Ze.route.id]!==void 0);E=b.slice(0,He+1).every(Ze=>!aU(Ze.route,ze,Ye))}else E=b.every(He=>!aU(He.route,ze,Ye))}else E=e.hydrationData!=null;else if(E=!1,b=[],d.v7_partialHydration){let ze=Vt(null,a,e.history.location.pathname);ze.active&&ze.matches&&(b=ze.matches)}let w,S={historyAction:e.history.action,location:e.history.location,matches:b,initialized:E,navigation:y$,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||_,fetchers:new Map,blockers:new Map},C=la.Pop,T=!1,x,O=!1,N=new Map,I=null,M=!1,F=!1,k=[],B=new Set,A=new Map,P=0,z=-1,L=new Map,V=new Set,j=new Map,U=new Map,J=new Set,te=new Map,ae=new Map,K;function Q(){if(f=e.history.listen(ze=>{let{action:Ye,location:He,delta:Ze}=ze;if(K){K(),K=void 0;return}Gv(ae.size===0||Ze!=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 yt=Ue({currentLocation:S.location,nextLocation:He,historyAction:Ye});if(yt&&Ze!=null){let _t=new Promise(Bt=>{K=Bt});e.history.go(Ze*-1),Ge(yt,{state:"blocked",location:He,proceed(){Ge(yt,{state:"proceeding",proceed:void 0,reset:void 0,location:He}),_t.then(()=>e.history.go(Ze))},reset(){let Bt=new Map(S.blockers);Bt.set(yt,UE),fe({blockers:Bt})}});return}return ne(Ye,He)}),n){vEt(t,N);let ze=()=>bEt(t,N);t.addEventListener("pagehide",ze),I=()=>t.removeEventListener("pagehide",ze)}return S.initialized||ne(la.Pop,S.location,{initialHydration:!0}),w}function oe(){f&&f(),I&&I(),h.clear(),x&&x.abort(),S.fetchers.forEach((ze,Ye)=>me(Ye)),S.blockers.forEach((ze,Ye)=>ke(Ye))}function ge(ze){return h.add(ze),()=>h.delete(ze)}function fe(ze,Ye){Ye===void 0&&(Ye={}),S=vo({},S,ze);let He=[],Ze=[];d.v7_fetcherPersist&&S.fetchers.forEach((yt,_t)=>{yt.state==="idle"&&(J.has(_t)?Ze.push(_t):He.push(_t))}),[...h].forEach(yt=>yt(S,{deletedFetchers:Ze,viewTransitionOpts:Ye.viewTransitionOpts,flushSync:Ye.flushSync===!0})),d.v7_fetcherPersist&&(He.forEach(yt=>S.fetchers.delete(yt)),Ze.forEach(yt=>me(yt)))}function ue(ze,Ye,He){var Ze,yt;let{flushSync:_t}=He===void 0?{}:He,Bt=S.actionData!=null&&S.navigation.formMethod!=null&&Xu(S.navigation.formMethod)&&S.navigation.state==="loading"&&((Ze=ze.state)==null?void 0:Ze._isRedirect)!==!0,Nt;Ye.actionData?Object.keys(Ye.actionData).length>0?Nt=Ye.actionData:Nt=null:Bt?Nt=S.actionData:Nt=null;let vt=Ye.loaderData?mae(S.loaderData,Ye.loaderData,Ye.matches||[],Ye.errors):S.loaderData,ht=S.blockers;ht.size>0&&(ht=new Map(ht),ht.forEach((Yt,ct)=>ht.set(ct,UE)));let kt=T===!0||S.navigation.formMethod!=null&&Xu(S.navigation.formMethod)&&((yt=ze.state)==null?void 0:yt._isRedirect)!==!0;s&&(a=s,s=void 0),M||C===la.Pop||(C===la.Push?e.history.push(ze,ze.state):C===la.Replace&&e.history.replace(ze,ze.state));let Et;if(C===la.Pop){let Yt=N.get(S.location.pathname);Yt&&Yt.has(ze.pathname)?Et={currentLocation:S.location,nextLocation:ze}:N.has(ze.pathname)&&(Et={currentLocation:ze,nextLocation:S.location})}else if(O){let Yt=N.get(S.location.pathname);Yt?Yt.add(ze.pathname):(Yt=new Set([ze.pathname]),N.set(S.location.pathname,Yt)),Et={currentLocation:S.location,nextLocation:ze}}fe(vo({},Ye,{actionData:Nt,loaderData:vt,historyAction:C,location:ze,initialized:!0,navigation:y$,revalidation:"idle",restoreScrollPosition:bt(ze,Ye.matches||S.matches),preventScrollReset:kt,blockers:ht}),{viewTransitionOpts:Et,flushSync:_t===!0}),C=la.Pop,T=!1,O=!1,M=!1,F=!1,k=[]}async function le(ze,Ye){if(typeof ze=="number"){e.history.go(ze);return}let He=oU(S.location,S.matches,l,d.v7_prependBasename,ze,d.v7_relativeSplatPath,Ye==null?void 0:Ye.fromRouteId,Ye==null?void 0:Ye.relative),{path:Ze,submission:yt,error:_t}=sae(d.v7_normalizeFormMethod,!1,He,Ye),Bt=S.location,Nt=S_(S.location,Ze,Ye&&Ye.state);Nt=vo({},Nt,e.history.encodeLocation(Nt));let vt=Ye&&Ye.replace!=null?Ye.replace:void 0,ht=la.Push;vt===!0?ht=la.Replace:vt===!1||yt!=null&&Xu(yt.formMethod)&&yt.formAction===S.location.pathname+S.location.search&&(ht=la.Replace);let kt=Ye&&"preventScrollReset"in Ye?Ye.preventScrollReset===!0:void 0,Et=(Ye&&Ye.flushSync)===!0,Yt=Ue({currentLocation:Bt,nextLocation:Nt,historyAction:ht});if(Yt){Ge(Yt,{state:"blocked",location:Nt,proceed(){Ge(Yt,{state:"proceeding",proceed:void 0,reset:void 0,location:Nt}),le(ze,Ye)},reset(){let ct=new Map(S.blockers);ct.set(Yt,UE),fe({blockers:ct})}});return}return await ne(ht,Nt,{submission:yt,pendingError:_t,preventScrollReset:kt,replace:Ye&&Ye.replace,enableViewTransition:Ye&&Ye.viewTransition,flushSync:Et})}function ve(){if(Y(),fe({revalidation:"loading"}),S.navigation.state!=="submitting"){if(S.navigation.state==="idle"){ne(S.historyAction,S.location,{startUninterruptedRevalidation:!0});return}ne(C||S.historyAction,S.navigation.location,{overrideNavigation:S.navigation,enableViewTransition:O===!0})}}async function ne(ze,Ye,He){x&&x.abort(),x=null,C=ze,M=(He&&He.startUninterruptedRevalidation)===!0,Ct(S.location,S.matches),T=(He&&He.preventScrollReset)===!0,O=(He&&He.enableViewTransition)===!0;let Ze=s||a,yt=He&&He.overrideNavigation,_t=w1(Ze,Ye,l),Bt=(He&&He.flushSync)===!0,Nt=Vt(_t,Ze,Ye.pathname);if(Nt.active&&Nt.matches&&(_t=Nt.matches),!_t){let{error:Rt,notFoundMatches:Ht,route:wt}=qe(Ye.pathname);ue(Ye,{matches:Ht,loaderData:{},errors:{[wt.id]:Rt}},{flushSync:Bt});return}if(S.initialized&&!F&&cEt(S.location,Ye)&&!(He&&He.submission&&Xu(He.submission.formMethod))){ue(Ye,{matches:_t},{flushSync:Bt});return}x=new AbortController;let vt=ab(e.history,Ye,x.signal,He&&He.submission),ht;if(He&&He.pendingError)ht=[T1(_t).route.id,{type:Di.error,error:He.pendingError}];else if(He&&He.submission&&Xu(He.submission.formMethod)){let Rt=await pe(vt,Ye,He.submission,_t,Nt.active,{replace:He.replace,flushSync:Bt});if(Rt.shortCircuited)return;if(Rt.pendingActionResult){let[Ht,wt]=Rt.pendingActionResult;if(ac(wt)&&SD(wt.error)&&wt.error.status===404){x=null,ue(Ye,{matches:Rt.matches,loaderData:{},errors:{[Ht]:wt.error}});return}}_t=Rt.matches||_t,ht=Rt.pendingActionResult,yt=_$(Ye,He.submission),Bt=!1,Nt.active=!1,vt=ab(e.history,vt.url,vt.signal)}let{shortCircuited:kt,matches:Et,loaderData:Yt,errors:ct}=await be(vt,Ye,_t,Nt.active,yt,He&&He.submission,He&&He.fetcherSubmission,He&&He.replace,He&&He.initialHydration===!0,Bt,ht);kt||(x=null,ue(Ye,vo({matches:Et||_t},gae(ht),{loaderData:Yt,errors:ct})))}async function pe(ze,Ye,He,Ze,yt,_t){_t===void 0&&(_t={}),Y();let Bt=mEt(Ye,He);if(fe({navigation:Bt},{flushSync:_t.flushSync===!0}),yt){let ht=await Tt(Ze,Ye.pathname,ze.signal);if(ht.type==="aborted")return{shortCircuited:!0};if(ht.type==="error"){let kt=T1(ht.partialMatches).route.id;return{matches:ht.partialMatches,pendingActionResult:[kt,{type:Di.error,error:ht.error}]}}else if(ht.matches)Ze=ht.matches;else{let{notFoundMatches:kt,error:Et,route:Yt}=qe(Ye.pathname);return{matches:kt,pendingActionResult:[Yt.id,{type:Di.error,error:Et}]}}}let Nt,vt=LC(Ze,Ye);if(!vt.route.action&&!vt.route.lazy)Nt={type:Di.error,error:gl(405,{method:ze.method,pathname:Ye.pathname,routeId:vt.route.id})};else if(Nt=(await Oe("action",S,ze,[vt],Ze,null))[vt.route.id],ze.signal.aborted)return{shortCircuited:!0};if(z1(Nt)){let ht;return _t&&_t.replace!=null?ht=_t.replace:ht=fae(Nt.response.headers.get("Location"),new URL(ze.url),l)===S.location.pathname+S.location.search,await _e(ze,Nt,!0,{submission:He,replace:ht}),{shortCircuited:!0}}if(Pm(Nt))throw gl(400,{type:"defer-action"});if(ac(Nt)){let ht=T1(Ze,vt.route.id);return(_t&&_t.replace)!==!0&&(C=la.Push),{matches:Ze,pendingActionResult:[ht.route.id,Nt]}}return{matches:Ze,pendingActionResult:[vt.route.id,Nt]}}async function be(ze,Ye,He,Ze,yt,_t,Bt,Nt,vt,ht,kt){let Et=yt||_$(Ye,_t),Yt=_t||Bt||yae(Et),ct=!M&&(!d.v7_partialHydration||!vt);if(Ze){if(ct){let $=Re(kt);fe(vo({navigation:Et},$!==void 0?{actionData:$}:{}),{flushSync:ht})}let R=await Tt(He,Ye.pathname,ze.signal);if(R.type==="aborted")return{shortCircuited:!0};if(R.type==="error"){let $=T1(R.partialMatches).route.id;return{matches:R.partialMatches,loaderData:{},errors:{[$]:R.error}}}else if(R.matches)He=R.matches;else{let{error:$,notFoundMatches:Z,route:xe}=qe(Ye.pathname);return{matches:Z,loaderData:{},errors:{[xe.id]:$}}}}let Rt=s||a,[Ht,wt]=cae(e.history,S,He,Yt,Ye,d.v7_partialHydration&&vt===!0,d.v7_skipActionErrorRevalidation,F,k,B,J,j,V,Rt,l,kt);if(At(R=>!(He&&He.some($=>$.route.id===R))||Ht&&Ht.some($=>$.route.id===R)),z=++P,Ht.length===0&&wt.length===0){let R=re();return ue(Ye,vo({matches:He,loaderData:{},errors:kt&&ac(kt[1])?{[kt[0]]:kt[1].error}:null},gae(kt),R?{fetchers:new Map(S.fetchers)}:{}),{flushSync:ht}),{shortCircuited:!0}}if(ct){let R={};if(!Ze){R.navigation=Et;let $=Re(kt);$!==void 0&&(R.actionData=$)}wt.length>0&&(R.fetchers=Se(wt)),fe(R,{flushSync:ht})}wt.forEach(R=>{Be(R.key),R.controller&&A.set(R.key,R.controller)});let St=()=>wt.forEach(R=>Be(R.key));x&&x.signal.addEventListener("abort",St);let{loaderResults:jt,fetcherResults:Pe}=await De(S,He,Ht,wt,ze);if(ze.signal.aborted)return{shortCircuited:!0};x&&x.signal.removeEventListener("abort",St),wt.forEach(R=>A.delete(R.key));let Pt=BR(jt);if(Pt)return await _e(ze,Pt.result,!0,{replace:Nt}),{shortCircuited:!0};if(Pt=BR(Pe),Pt)return V.add(Pt.key),await _e(ze,Pt.result,!0,{replace:Nt}),{shortCircuited:!0};let{loaderData:rt,errors:Mt}=hae(S,He,jt,kt,wt,Pe,te);te.forEach((R,$)=>{R.subscribe(Z=>{(Z||R.done)&&te.delete($)})}),d.v7_partialHydration&&vt&&S.errors&&(Mt=vo({},S.errors,Mt));let It=re(),xn=Me(z),Hn=It||xn||wt.length>0;return vo({matches:He,loaderData:rt,errors:Mt},Hn?{fetchers:new Map(S.fetchers)}:{})}function Re(ze){if(ze&&!ac(ze[1]))return{[ze[0]]:ze[1].data};if(S.actionData)return Object.keys(S.actionData).length===0?null:S.actionData}function Se(ze){return ze.forEach(Ye=>{let He=S.fetchers.get(Ye.key),Ze=zE(void 0,He?He.data:void 0);S.fetchers.set(Ye.key,Ze)}),new Map(S.fetchers)}function Ce(ze,Ye,He,Ze){if(r)throw new Error("router.fetch() was called during the server render, but it shouldn't be. You are likely calling a useFetcher() method in the body of your component. Try moving it to a useEffect or a callback.");Be(ze);let yt=(Ze&&Ze.flushSync)===!0,_t=s||a,Bt=oU(S.location,S.matches,l,d.v7_prependBasename,He,d.v7_relativeSplatPath,Ye,Ze==null?void 0:Ze.relative),Nt=w1(_t,Bt,l),vt=Vt(Nt,_t,Bt);if(vt.active&&vt.matches&&(Nt=vt.matches),!Nt){G(ze,Ye,gl(404,{pathname:Bt}),{flushSync:yt});return}let{path:ht,submission:kt,error:Et}=sae(d.v7_normalizeFormMethod,!0,Bt,Ze);if(Et){G(ze,Ye,Et,{flushSync:yt});return}let Yt=LC(Nt,ht),ct=(Ze&&Ze.preventScrollReset)===!0;if(kt&&Xu(kt.formMethod)){ye(ze,Ye,ht,Yt,Nt,vt.active,yt,ct,kt);return}j.set(ze,{routeId:Ye,path:ht}),he(ze,Ye,ht,Yt,Nt,vt.active,yt,ct,kt)}async function ye(ze,Ye,He,Ze,yt,_t,Bt,Nt,vt){Y(),j.delete(ze);function ht($e){if(!$e.route.action&&!$e.route.lazy){let et=gl(405,{method:vt.formMethod,pathname:He,routeId:Ye});return G(ze,Ye,et,{flushSync:Bt}),!0}return!1}if(!_t&&ht(Ze))return;let kt=S.fetchers.get(ze);D(ze,gEt(vt,kt),{flushSync:Bt});let Et=new AbortController,Yt=ab(e.history,He,Et.signal,vt);if(_t){let $e=await Tt(yt,He,Yt.signal);if($e.type==="aborted")return;if($e.type==="error"){G(ze,Ye,$e.error,{flushSync:Bt});return}else if($e.matches){if(yt=$e.matches,Ze=LC(yt,He),ht(Ze))return}else{G(ze,Ye,gl(404,{pathname:He}),{flushSync:Bt});return}}A.set(ze,Et);let ct=P,Ht=(await Oe("action",S,Yt,[Ze],yt,ze))[Ze.route.id];if(Yt.signal.aborted){A.get(ze)===Et&&A.delete(ze);return}if(d.v7_fetcherPersist&&J.has(ze)){if(z1(Ht)||ac(Ht)){D(ze,tm(void 0));return}}else{if(z1(Ht))if(A.delete(ze),z>ct){D(ze,tm(void 0));return}else return V.add(ze),D(ze,zE(vt)),_e(Yt,Ht,!1,{fetcherSubmission:vt,preventScrollReset:Nt});if(ac(Ht)){G(ze,Ye,Ht.error);return}}if(Pm(Ht))throw gl(400,{type:"defer-action"});let wt=S.navigation.location||S.location,St=ab(e.history,wt,Et.signal),jt=s||a,Pe=S.navigation.state!=="idle"?w1(jt,S.navigation.location,l):S.matches;Hr(Pe,"Didn't find any matches after fetcher action");let Pt=++P;L.set(ze,Pt);let rt=zE(vt,Ht.data);S.fetchers.set(ze,rt);let[Mt,It]=cae(e.history,S,Pe,vt,wt,!1,d.v7_skipActionErrorRevalidation,F,k,B,J,j,V,jt,l,[Ze.route.id,Ht]);It.filter($e=>$e.key!==ze).forEach($e=>{let et=$e.key,$t=S.fetchers.get(et),pn=zE(void 0,$t?$t.data:void 0);S.fetchers.set(et,pn),Be(et),$e.controller&&A.set(et,$e.controller)}),fe({fetchers:new Map(S.fetchers)});let xn=()=>It.forEach($e=>Be($e.key));Et.signal.addEventListener("abort",xn);let{loaderResults:Hn,fetcherResults:R}=await De(S,Pe,Mt,It,St);if(Et.signal.aborted)return;Et.signal.removeEventListener("abort",xn),L.delete(ze),A.delete(ze),It.forEach($e=>A.delete($e.key));let $=BR(Hn);if($)return _e(St,$.result,!1,{preventScrollReset:Nt});if($=BR(R),$)return V.add($.key),_e(St,$.result,!1,{preventScrollReset:Nt});let{loaderData:Z,errors:xe}=hae(S,Pe,Hn,void 0,It,R,te);if(S.fetchers.has(ze)){let $e=tm(Ht.data);S.fetchers.set(ze,$e)}Me(Pt),S.navigation.state==="loading"&&Pt>z?(Hr(C,"Expected pending action"),x&&x.abort(),ue(S.navigation.location,{matches:Pe,loaderData:Z,errors:xe,fetchers:new Map(S.fetchers)})):(fe({errors:xe,loaderData:mae(S.loaderData,Z,Pe,xe),fetchers:new Map(S.fetchers)}),F=!1)}async function he(ze,Ye,He,Ze,yt,_t,Bt,Nt,vt){let ht=S.fetchers.get(ze);D(ze,zE(vt,ht?ht.data:void 0),{flushSync:Bt});let kt=new AbortController,Et=ab(e.history,He,kt.signal);if(_t){let Ht=await Tt(yt,He,Et.signal);if(Ht.type==="aborted")return;if(Ht.type==="error"){G(ze,Ye,Ht.error,{flushSync:Bt});return}else if(Ht.matches)yt=Ht.matches,Ze=LC(yt,He);else{G(ze,Ye,gl(404,{pathname:He}),{flushSync:Bt});return}}A.set(ze,kt);let Yt=P,Rt=(await Oe("loader",S,Et,[Ze],yt,ze))[Ze.route.id];if(Pm(Rt)&&(Rt=await PY(Rt,Et.signal,!0)||Rt),A.get(ze)===kt&&A.delete(ze),!Et.signal.aborted){if(J.has(ze)){D(ze,tm(void 0));return}if(z1(Rt))if(z>Yt){D(ze,tm(void 0));return}else{V.add(ze),await _e(Et,Rt,!1,{preventScrollReset:Nt});return}if(ac(Rt)){G(ze,Ye,Rt.error);return}Hr(!Pm(Rt),"Unhandled fetcher deferred data"),D(ze,tm(Rt.data))}}async function _e(ze,Ye,He,Ze){let{submission:yt,fetcherSubmission:_t,preventScrollReset:Bt,replace:Nt}=Ze===void 0?{}:Ze;Ye.response.headers.has("X-Remix-Revalidate")&&(F=!0);let vt=Ye.response.headers.get("Location");Hr(vt,"Expected a Location header on the redirect Response"),vt=fae(vt,new URL(ze.url),l);let ht=S_(S.location,vt,{_isRedirect:!0});if(n){let Ht=!1;if(Ye.response.headers.has("X-Remix-Reload-Document"))Ht=!0;else if(kY.test(vt)){const wt=e.history.createURL(vt);Ht=wt.origin!==t.location.origin||DS(wt.pathname,l)==null}if(Ht){Nt?t.location.replace(vt):t.location.assign(vt);return}}x=null;let kt=Nt===!0||Ye.response.headers.has("X-Remix-Replace")?la.Replace:la.Push,{formMethod:Et,formAction:Yt,formEncType:ct}=S.navigation;!yt&&!_t&&Et&&Yt&&ct&&(yt=yae(S.navigation));let Rt=yt||_t;if(XSt.has(Ye.response.status)&&Rt&&Xu(Rt.formMethod))await ne(kt,ht,{submission:vo({},Rt,{formAction:vt}),preventScrollReset:Bt||T,enableViewTransition:He?O:void 0});else{let Ht=_$(ht,yt);await ne(kt,ht,{overrideNavigation:Ht,fetcherSubmission:_t,preventScrollReset:Bt||T,enableViewTransition:He?O:void 0})}}async function Oe(ze,Ye,He,Ze,yt,_t){let Bt,Nt={};try{Bt=await iEt(c,ze,Ye,He,Ze,yt,_t,o,i)}catch(vt){return Ze.forEach(ht=>{Nt[ht.route.id]={type:Di.error,error:vt}}),Nt}for(let[vt,ht]of Object.entries(Bt))if(uEt(ht)){let kt=ht.result;Nt[vt]={type:Di.redirect,response:sEt(kt,He,vt,yt,l,d.v7_relativeSplatPath)}}else Nt[vt]=await aEt(ht);return Nt}async function De(ze,Ye,He,Ze,yt){let _t=ze.matches,Bt=Oe("loader",ze,yt,He,Ye,null),Nt=Promise.all(Ze.map(async kt=>{if(kt.matches&&kt.match&&kt.controller){let Yt=(await Oe("loader",ze,ab(e.history,kt.path,kt.controller.signal),[kt.match],kt.matches,kt.key))[kt.match.route.id];return{[kt.key]:Yt}}else return Promise.resolve({[kt.key]:{type:Di.error,error:gl(404,{pathname:kt.path})}})})),vt=await Bt,ht=(await Nt).reduce((kt,Et)=>Object.assign(kt,Et),{});return await Promise.all([pEt(Ye,vt,yt.signal,_t,ze.loaderData),hEt(Ye,ht,Ze)]),{loaderResults:vt,fetcherResults:ht}}function Y(){F=!0,k.push(...At()),j.forEach((ze,Ye)=>{A.has(Ye)&&B.add(Ye),Be(Ye)})}function D(ze,Ye,He){He===void 0&&(He={}),S.fetchers.set(ze,Ye),fe({fetchers:new Map(S.fetchers)},{flushSync:(He&&He.flushSync)===!0})}function G(ze,Ye,He,Ze){Ze===void 0&&(Ze={});let yt=T1(S.matches,Ye);me(ze),fe({errors:{[yt.route.id]:He},fetchers:new Map(S.fetchers)},{flushSync:(Ze&&Ze.flushSync)===!0})}function ie(ze){return d.v7_fetcherPersist&&(U.set(ze,(U.get(ze)||0)+1),J.has(ze)&&J.delete(ze)),S.fetchers.get(ze)||ZSt}function me(ze){let Ye=S.fetchers.get(ze);A.has(ze)&&!(Ye&&Ye.state==="loading"&&L.has(ze))&&Be(ze),j.delete(ze),L.delete(ze),V.delete(ze),J.delete(ze),B.delete(ze),S.fetchers.delete(ze)}function se(ze){if(d.v7_fetcherPersist){let Ye=(U.get(ze)||0)-1;Ye<=0?(U.delete(ze),J.add(ze)):U.set(ze,Ye)}else me(ze);fe({fetchers:new Map(S.fetchers)})}function Be(ze){let Ye=A.get(ze);Ye&&(Ye.abort(),A.delete(ze))}function Ve(ze){for(let Ye of ze){let He=ie(Ye),Ze=tm(He.data);S.fetchers.set(Ye,Ze)}}function re(){let ze=[],Ye=!1;for(let He of V){let Ze=S.fetchers.get(He);Hr(Ze,"Expected fetcher: "+He),Ze.state==="loading"&&(V.delete(He),ze.push(He),Ye=!0)}return Ve(ze),Ye}function Me(ze){let Ye=[];for(let[He,Ze]of L)if(Ze<ze){let yt=S.fetchers.get(He);Hr(yt,"Expected fetcher: "+He),yt.state==="loading"&&(Be(He),L.delete(He),Ye.push(He))}return Ve(Ye),Ye.length>0}function je(ze,Ye){let He=S.blockers.get(ze)||UE;return ae.get(ze)!==Ye&&ae.set(ze,Ye),He}function ke(ze){S.blockers.delete(ze),ae.delete(ze)}function Ge(ze,Ye){let He=S.blockers.get(ze)||UE;Hr(He.state==="unblocked"&&Ye.state==="blocked"||He.state==="blocked"&&Ye.state==="blocked"||He.state==="blocked"&&Ye.state==="proceeding"||He.state==="blocked"&&Ye.state==="unblocked"||He.state==="proceeding"&&Ye.state==="unblocked","Invalid blocker state transition: "+He.state+" -> "+Ye.state);let Ze=new Map(S.blockers);Ze.set(ze,Ye),fe({blockers:Ze})}function Ue(ze){let{currentLocation:Ye,nextLocation:He,historyAction:Ze}=ze;if(ae.size===0)return;ae.size>1&&Gv(!1,"A router only supports one blocker at a time");let yt=Array.from(ae.entries()),[_t,Bt]=yt[yt.length-1],Nt=S.blockers.get(_t);if(!(Nt&&Nt.state==="proceeding")&&Bt({currentLocation:Ye,nextLocation:He,historyAction:Ze}))return _t}function qe(ze){let Ye=gl(404,{pathname:ze}),He=s||a,{matches:Ze,route:yt}=vae(He);return At(),{notFoundMatches:Ze,route:yt,error:Ye}}function At(ze){let Ye=[];return te.forEach((He,Ze)=>{(!ze||ze(Ze))&&(He.cancel(),Ye.push(Ze),te.delete(Ze))}),Ye}function at(ze,Ye,He){if(m=ze,v=Ye,g=He||null,!y&&S.navigation===y$){y=!0;let Ze=bt(S.location,S.matches);Ze!=null&&fe({restoreScrollPosition:Ze})}return()=>{m=null,v=null,g=null}}function pt(ze,Ye){return g&&g(ze,Ye.map(Ze=>ISt(Ze,S.loaderData)))||ze.key}function Ct(ze,Ye){if(m&&v){let He=pt(ze,Ye);m[He]=v()}}function bt(ze,Ye){if(m){let He=pt(ze,Ye),Ze=m[He];if(typeof Ze=="number")return Ze}return null}function Vt(ze,Ye,He){if(u)if(ze){if(Object.keys(ze[0].params).length>0)return{active:!0,matches:FA(Ye,He,l,!0)}}else return{active:!0,matches:FA(Ye,He,l,!0)||[]};return{active:!1,matches:null}}async function Tt(ze,Ye,He){if(!u)return{type:"success",matches:ze};let Ze=ze;for(;;){let yt=s==null,_t=s||a,Bt=o;try{await u({path:Ye,matches:Ze,patch:(ht,kt)=>{He.aborted||dae(ht,kt,_t,Bt,i)}})}catch(ht){return{type:"error",error:ht,partialMatches:Ze}}finally{yt&&!He.aborted&&(a=[...a])}if(He.aborted)return{type:"aborted"};let Nt=w1(_t,Ye,l);if(Nt)return{type:"success",matches:Nt};let vt=FA(_t,Ye,l,!0);if(!vt||Ze.length===vt.length&&Ze.every((ht,kt)=>ht.route.id===vt[kt].route.id))return{type:"success",matches:null};Ze=vt}}function Ot(ze){o={},s=ak(ze,i,void 0,o)}function Ut(ze,Ye){let He=s==null;dae(ze,Ye,s||a,o,i),He&&(a=[...a],fe({}))}return w={get basename(){return l},get future(){return d},get state(){return S},get routes(){return a},get window(){return t},initialize:Q,subscribe:ge,enableScrollRestoration:at,navigate:le,fetch:Ce,revalidate:ve,createHref:ze=>e.history.createHref(ze),encodeLocation:ze=>e.history.encodeLocation(ze),getFetcher:ie,deleteFetcher:se,dispose:oe,getBlocker:je,deleteBlocker:ke,patchRoutes:Ut,_internalFetchControllers:A,_internalActiveDeferreds:te,_internalSetRoutes:Ot},w}function eEt(e){return e!=null&&("formData"in e&&e.formData!=null||"body"in e&&e.body!==void 0)}function oU(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=_D(i||".",yD(l,o),DS(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=DY(u.search);if(c.route.index&&!d)u.search=u.search?u.search.replace(/^\?/,"?index&"):"?index";else if(!c.route.index&&d){let f=new URLSearchParams(u.search),h=f.getAll("index");f.delete("index"),h.filter(g=>g).forEach(g=>f.append("index",g));let m=f.toString();u.search=m?"?"+m:""}}return r&&n!=="/"&&(u.pathname=u.pathname==="/"?n:Kp([n,u.pathname])),vg(u)}function sae(e,t,n,r){if(!r||!eEt(r))return{path:n};if(r.formMethod&&!fEt(r.formMethod))return{path:n,error:gl(405,{method:r.formMethod})};let i=()=>({path:n,error:gl(400,{type:"invalid-body"})}),o=r.formMethod||"get",a=e?o.toUpperCase():o.toLowerCase(),s=Y2e(n);if(r.body!==void 0){if(r.formEncType==="text/plain"){if(!Xu(a))return i();let f=typeof r.body=="string"?r.body:r.body instanceof FormData||r.body instanceof URLSearchParams?Array.from(r.body.entries()).reduce((h,m)=>{let[g,v]=m;return""+h+g+"="+v+`
`},""):String(r.body);return{path:n,submission:{formMethod:a,formAction:s,formEncType:r.formEncType,formData:void 0,json:void 0,text:f}}}else if(r.formEncType==="application/json"){if(!Xu(a))return i();try{let f=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:f,text:void 0}}}catch{return i()}}}Hr(typeof FormData=="function","FormData is not available in this environment");let l,c;if(r.formData)l=sU(r.formData),c=r.formData;else if(r.body instanceof FormData)l=sU(r.body),c=r.body;else if(r.body instanceof URLSearchParams)l=r.body,c=pae(l);else if(r.body==null)l=new URLSearchParams,c=new FormData;else try{l=new URLSearchParams(r.body),c=pae(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(Xu(u.formMethod))return{path:n,submission:u};let d=Rh(n);return t&&d.search&&DY(d.search)&&l.append("index",""),d.search="?"+l,{path:vg(d),submission:u}}function lae(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 cae(e,t,n,r,i,o,a,s,l,c,u,d,f,h,m,g){let v=g?ac(g[1])?g[1].error:g[1].data:void 0,y=e.createURL(t.location),b=e.createURL(i),_=n;o&&t.errors?_=lae(n,Object.keys(t.errors)[0],!0):g&&ac(g[1])&&(_=lae(n,g[0]));let E=g?g[1].statusCode:void 0,w=a&&E&&E>=400,S=_.filter((T,x)=>{let{route:O}=T;if(O.lazy)return!0;if(O.loader==null)return!1;if(o)return aU(O,t.loaderData,t.errors);if(tEt(t.loaderData,t.matches[x],T)||l.some(M=>M===T.route.id))return!0;let N=t.matches[x],I=T;return uae(T,vo({currentUrl:y,currentParams:N.params,nextUrl:b,nextParams:I.params},r,{actionResult:v,actionStatus:E,defaultShouldRevalidate:w?!1:s||y.pathname+y.search===b.pathname+b.search||y.search!==b.search||W2e(N,I)}))}),C=[];return d.forEach((T,x)=>{if(o||!n.some(F=>F.route.id===T.routeId)||u.has(x))return;let O=w1(h,T.path,m);if(!O){C.push({key:x,routeId:T.routeId,path:T.path,matches:null,match:null,controller:null});return}let N=t.fetchers.get(x),I=LC(O,T.path),M=!1;f.has(x)?M=!1:c.has(x)?(c.delete(x),M=!0):N&&N.state!=="idle"&&N.data===void 0?M=s:M=uae(I,vo({currentUrl:y,currentParams:t.matches[t.matches.length-1].params,nextUrl:b,nextParams:n[n.length-1].params},r,{actionResult:v,actionStatus:E,defaultShouldRevalidate:w?!1:s})),M&&C.push({key:x,routeId:T.routeId,path:T.path,matches:O,match:I,controller:new AbortController})}),[S,C]}function aU(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 tEt(e,t,n){let r=!t||n.route.id!==t.route.id,i=e[n.route.id]===void 0;return r||i}function W2e(e,t){let n=e.route.path;return e.pathname!==t.pathname||n!=null&&n.endsWith("*")&&e.params["*"]!==t.params["*"]}function uae(e,t){if(e.route.shouldRevalidate){let n=e.route.shouldRevalidate(t);if(typeof n=="boolean")return n}return t.defaultShouldRevalidate}function dae(e,t,n,r,i){var o;let a;if(e){let c=r[e];Hr(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=>q2e(c,u))),l=ak(s,i,[e||"_","patch",String(((o=a)==null?void 0:o.length)||"0")],r);a.push(...l)}function q2e(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=>q2e(n,o))}):!1}async function nEt(e,t,n){if(!e.lazy)return;let r=await e.lazy();if(!e.lazy)return;let i=n[e.id];Hr(i,"No route found in manifest");let o={};for(let a in r){let l=i[a]!==void 0&&a!=="hasErrorBoundary";Gv(!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&&!OSt.has(a)&&(o[a]=r[a])}Object.assign(i,o),Object.assign(i,vo({},t(i),{lazy:void 0}))}async function rEt(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 iEt(e,t,n,r,i,o,a,s,l,c){let u=o.map(h=>h.route.lazy?nEt(h.route,l,s):void 0),d=o.map((h,m)=>{let g=u[m],v=i.some(b=>b.route.id===h.route.id);return vo({},h,{shouldLoad:v,resolve:async b=>(b&&r.method==="GET"&&(h.route.lazy||h.route.loader)&&(v=!0),v?oEt(t,r,h,g,b,c):Promise.resolve({type:Di.data,result:void 0}))})}),f=await e({matches:d,request:r,params:o[0].params,fetcherKey:a,context:c});try{await Promise.all(u)}catch{}return f}async function oEt(e,t,n,r,i,o){let a,s,l=c=>{let u,d=new Promise((m,g)=>u=g);s=()=>u(),t.signal.addEventListener("abort",s);let f=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]:[]),h=(async()=>{try{return{type:"data",result:await(i?i(g=>f(g)):f())}}catch(m){return{type:"error",result:m}}})();return Promise.race([h,d])};try{let c=n.route[e];if(r)if(c){let u,[d]=await Promise.all([l(c).catch(f=>{u=f}),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 gl(405,{method:t.method,pathname:d,routeId:n.route.id})}else return{type:Di.data,result:void 0};else if(c)a=await l(c);else{let u=new URL(t.url),d=u.pathname+u.search;throw gl(404,{pathname:d})}Hr(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:Di.error,result:c}}finally{s&&t.signal.removeEventListener("abort",s)}return a}async function aEt(e){let{result:t,type:n}=e;if(K2e(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:Di.error,error:u}}return n===Di.error?{type:Di.error,error:new sk(t.status,t.statusText,c),statusCode:t.status,headers:t.headers}:{type:Di.data,data:c,statusCode:t.status,headers:t.headers}}if(n===Di.error){if(bae(t)){var r;if(t.data instanceof Error){var i;return{type:Di.error,error:t.data,statusCode:(i=t.init)==null?void 0:i.status}}t=new sk(((r=t.init)==null?void 0:r.status)||500,void 0,t.data)}return{type:Di.error,error:t,statusCode:SD(t)?t.status:void 0}}if(dEt(t)){var o,a;return{type:Di.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(bae(t)){var s,l;return{type:Di.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:Di.data,data:t}}function sEt(e,t,n,r,i,o){let a=e.headers.get("Location");if(Hr(a,"Redirects returned/thrown from loaders/actions must have a Location header"),!kY.test(a)){let s=r.slice(0,r.findIndex(l=>l.route.id===n)+1);a=oU(new URL(t.url),s,i,!0,a,o),e.headers.set("Location",a)}return e}function fae(e,t,n){if(kY.test(e)){let r=e,i=r.startsWith("//")?new URL(t.protocol+r):new URL(r),o=DS(i.pathname,n)!=null;if(i.origin===t.origin&&o)return i.pathname+i.search+i.hash}return e}function ab(e,t,n,r){let i=e.createURL(Y2e(t)).toString(),o={signal:n};if(r&&Xu(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=sU(r.formData):o.body=r.formData}return new Request(i,o)}function sU(e){let t=new URLSearchParams;for(let[n,r]of e.entries())t.append(n,typeof r=="string"?r:r.name);return t}function pae(e){let t=new FormData;for(let[n,r]of e.entries())t.append(n,r);return t}function lEt(e,t,n,r,i){let o={},a=null,s,l=!1,c={},u=n&&ac(n[1])?n[1].error:void 0;return e.forEach(d=>{if(!(d.route.id in t))return;let f=d.route.id,h=t[f];if(Hr(!z1(h),"Cannot handle redirect results in processLoaderData"),ac(h)){let m=h.error;u!==void 0&&(m=u,u=void 0),a=a||{};{let g=T1(e,f);a[g.route.id]==null&&(a[g.route.id]=m)}o[f]=void 0,l||(l=!0,s=SD(h.error)?h.error.status:500),h.headers&&(c[f]=h.headers)}else Pm(h)?(r.set(f,h.deferredData),o[f]=h.deferredData.data,h.statusCode!=null&&h.statusCode!==200&&!l&&(s=h.statusCode),h.headers&&(c[f]=h.headers)):(o[f]=h.data,h.statusCode&&h.statusCode!==200&&!l&&(s=h.statusCode),h.headers&&(c[f]=h.headers))}),u!==void 0&&n&&(a={[n[0]]:u},o[n[0]]=void 0),{loaderData:o,errors:a,statusCode:s||200,loaderHeaders:c}}function hae(e,t,n,r,i,o,a){let{loaderData:s,errors:l}=lEt(t,n,r,a);return i.forEach(c=>{let{key:u,match:d,controller:f}=c,h=o[u];if(Hr(h,"Did not find corresponding fetcher result"),!(f&&f.signal.aborted))if(ac(h)){let m=T1(e.matches,d==null?void 0:d.route.id);l&&l[m.route.id]||(l=vo({},l,{[m.route.id]:h.error})),e.fetchers.delete(u)}else if(z1(h))Hr(!1,"Unhandled fetcher revalidation redirect");else if(Pm(h))Hr(!1,"Unhandled fetcher deferred data");else{let m=tm(h.data);e.fetchers.set(u,m)}}),{loaderData:s,errors:l}}function mae(e,t,n,r){let i=vo({},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 gae(e){return e?ac(e[1])?{actionData:{}}:{actionData:{[e[0]]:e[1].data}}:{}}function T1(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 vae(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 gl(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 sk(e||500,s,new Error(l),!0)}function BR(e){let t=Object.entries(e);for(let n=t.length-1;n>=0;n--){let[r,i]=t[n];if(z1(i))return{key:r,result:i}}}function Y2e(e){let t=typeof e=="string"?Rh(e):e;return vg(vo({},t,{hash:""}))}function cEt(e,t){return e.pathname!==t.pathname||e.search!==t.search?!1:e.hash===""?t.hash!=="":e.hash===t.hash?!0:t.hash!==""}function uEt(e){return K2e(e.result)&&QSt.has(e.result.status)}function Pm(e){return e.type===Di.deferred}function ac(e){return e.type===Di.error}function z1(e){return(e&&e.type)===Di.redirect}function bae(e){return typeof e=="object"&&e!=null&&"type"in e&&"data"in e&&"init"in e&&e.type==="DataWithResponseInit"}function dEt(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 K2e(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.headers=="object"&&typeof e.body<"u"}function fEt(e){return KSt.has(e.toLowerCase())}function Xu(e){return qSt.has(e.toLowerCase())}async function pEt(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(f=>(f==null?void 0:f.route.id)===s);if(!c)continue;let u=r.find(f=>f.route.id===c.route.id),d=u!=null&&!W2e(u,c)&&(i&&i[c.route.id])!==void 0;Pm(l)&&d&&await PY(l,n,!1).then(f=>{f&&(t[s]=f)})}}async function hEt(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)&&Pm(s)&&(Hr(a,"Expected an AbortController for revalidating fetcher deferred result"),await PY(s,a.signal,!0).then(c=>{c&&(t[i]=c)}))}}async function PY(e,t,n){if(n===void 0&&(n=!1),!await e.deferredData.resolveData(t)){if(n)try{return{type:Di.data,data:e.deferredData.unwrappedData}}catch(i){return{type:Di.error,error:i}}return{type:Di.data,data:e.deferredData.data}}}function DY(e){return new URLSearchParams(e).getAll("index").some(t=>t==="")}function LC(e,t){let n=typeof t=="string"?Rh(t).search:t.search;if(e[e.length-1].route.index&&DY(n||""))return e[e.length-1];let r=U2e(e);return r[r.length-1]}function yae(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 _$(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 mEt(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 zE(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 gEt(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 tm(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 vEt(e,t){try{let n=e.sessionStorage.getItem(V2e);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 bEt(e,t){if(t.size>0){let n={};for(let[r,i]of t)n[r]=[...i];try{e.sessionStorage.setItem(V2e,JSON.stringify(n))}catch(r){Gv(!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 lk(){return lk=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},lk.apply(this,arguments)}const ED=p.createContext(null),Q2e=p.createContext(null),Ng=p.createContext(null),LY=p.createContext(null),Kf=p.createContext({outlet:null,matches:[],isDataRoute:!1}),X2e=p.createContext(null);function yEt(e,t){let{relative:n}=t===void 0?{}:t;LS()||Hr(!1);let{basename:r,navigator:i}=p.useContext(Ng),{hash:o,pathname:a,search:s}=J2e(e,{relative:n}),l=a;return r!=="/"&&(l=a==="/"?r:Kp([r,a])),i.createHref({pathname:l,search:s,hash:o})}function LS(){return p.useContext(LY)!=null}function $S(){return LS()||Hr(!1),p.useContext(LY).location}function Z2e(e){p.useContext(Ng).static||p.useLayoutEffect(e)}function Aa(){let{isDataRoute:e}=p.useContext(Kf);return e?kEt():_Et()}function _Et(){LS()||Hr(!1);let e=p.useContext(ED),{basename:t,future:n,navigator:r}=p.useContext(Ng),{matches:i}=p.useContext(Kf),{pathname:o}=$S(),a=JSON.stringify(yD(i,n.v7_relativeSplatPath)),s=p.useRef(!1);return Z2e(()=>{s.current=!0}),p.useCallback(function(c,u){if(u===void 0&&(u={}),!s.current)return;if(typeof c=="number"){r.go(c);return}let d=_D(c,JSON.parse(a),o,u.relative==="path");e==null&&t!=="/"&&(d.pathname=d.pathname==="/"?t:Kp([t,d.pathname])),(u.replace?r.replace:r.push)(d,u.state,u)},[t,r,a,o,e])}const SEt=p.createContext(null);function EEt(e){let t=p.useContext(Kf).outlet;return t&&p.createElement(SEt.Provider,{value:e},t)}function $Y(){let{matches:e}=p.useContext(Kf),t=e[e.length-1];return t?t.params:{}}function J2e(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=p.useContext(Ng),{matches:i}=p.useContext(Kf),{pathname:o}=$S(),a=JSON.stringify(yD(i,r.v7_relativeSplatPath));return p.useMemo(()=>_D(e,JSON.parse(a),o,n==="path"),[e,a,o,n])}function CEt(e,t,n,r){LS()||Hr(!1);let{navigator:i}=p.useContext(Ng),{matches:o}=p.useContext(Kf),a=o[o.length-1],s=a?a.params:{};a&&a.pathname;let l=a?a.pathnameBase:"/";a&&a.route;let c=$S(),u;u=c;let d=u.pathname||"/",f=d;if(l!=="/"){let g=l.replace(/^\//,"").split("/");f="/"+d.replace(/^\//,"").split("/").slice(g.length).join("/")}let h=w1(e,{pathname:f});return REt(h&&h.map(g=>Object.assign({},g,{params:Object.assign({},s,g.params),pathname:Kp([l,i.encodeLocation?i.encodeLocation(g.pathname).pathname:g.pathname]),pathnameBase:g.pathnameBase==="/"?l:Kp([l,i.encodeLocation?i.encodeLocation(g.pathnameBase).pathname:g.pathnameBase])})),o,n,r)}function wEt(){let e=MEt(),t=SD(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 p.createElement(p.Fragment,null,p.createElement("h2",null,"Unexpected Application Error!"),p.createElement("h3",{style:{fontStyle:"italic"}},t),n?p.createElement("pre",{style:i},n):null,null)}const TEt=p.createElement(wEt,null);class xEt extends p.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?p.createElement(Kf.Provider,{value:this.props.routeContext},p.createElement(X2e.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function OEt(e){let{routeContext:t,match:n,children:r}=e,i=p.useContext(ED);return i&&i.static&&i.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=n.route.id),p.createElement(Kf.Provider,{value:t},r)}function REt(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||Hr(!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:f,errors:h}=n,m=d.route.loader&&f[d.route.id]===void 0&&(!h||h[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,f)=>{let h,m=!1,g=null,v=null;n&&(h=s&&d.route.id?s[d.route.id]:void 0,g=d.route.errorElement||TEt,l&&(c<0&&f===0?(m=!0,v=null):c===f&&(m=!0,v=d.route.hydrateFallbackElement||null)));let y=t.concat(a.slice(0,f+1)),b=()=>{let _;return h?_=g:m?_=v:d.route.Component?_=p.createElement(d.route.Component,null):d.route.element?_=d.route.element:_=u,p.createElement(OEt,{match:d,routeContext:{outlet:u,matches:y,isDataRoute:n!=null},children:_})};return n&&(d.route.ErrorBoundary||d.route.errorElement||f===0)?p.createElement(xEt,{location:n.location,revalidation:n.revalidation,component:g,error:h,children:b(),routeContext:{outlet:null,matches:y,isDataRoute:!0}}):b()},null)}var eOe=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(eOe||{}),ck=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}(ck||{});function IEt(e){let t=p.useContext(ED);return t||Hr(!1),t}function AEt(e){let t=p.useContext(Q2e);return t||Hr(!1),t}function NEt(e){let t=p.useContext(Kf);return t||Hr(!1),t}function tOe(e){let t=NEt(),n=t.matches[t.matches.length-1];return n.route.id||Hr(!1),n.route.id}function MEt(){var e;let t=p.useContext(X2e),n=AEt(ck.UseRouteError),r=tOe(ck.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function kEt(){let{router:e}=IEt(eOe.UseNavigateStable),t=tOe(ck.UseNavigateStable),n=p.useRef(!1);return Z2e(()=>{n.current=!0}),p.useCallback(function(i,o){o===void 0&&(o={}),n.current&&(typeof i=="number"?e.navigate(i):e.navigate(i,lk({fromRouteId:t},o)))},[e,t])}const _ae={};function PEt(e,t){_ae[t]||(_ae[t]=!0,console.warn(t))}const sb=(e,t,n)=>PEt(e,"⚠️ React Router Future Flag Warning: "+t+". "+("You can use the `"+e+"` future flag to opt-in early. ")+("For more information, see "+n+"."));function DEt(e,t){e!=null&&e.v7_startTransition||sb("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)&&sb("v7_relativeSplatPath","Relative route resolution within Splat routes is changing in v7","https://reactrouter.com/v6/upgrading/future#v7_relativesplatpath"),t&&(t.v7_fetcherPersist||sb("v7_fetcherPersist","The persistence behavior of fetchers is changing in v7","https://reactrouter.com/v6/upgrading/future#v7_fetcherpersist"),t.v7_normalizeFormMethod||sb("v7_normalizeFormMethod","Casing of `formMethod` fields is being normalized to uppercase in v7","https://reactrouter.com/v6/upgrading/future#v7_normalizeformmethod"),t.v7_partialHydration||sb("v7_partialHydration","`RouterProvider` hydration behavior is changing in v7","https://reactrouter.com/v6/upgrading/future#v7_partialhydration"),t.v7_skipActionErrorRevalidation||sb("v7_skipActionErrorRevalidation","The revalidation behavior after 4xx/5xx `action` responses is changing in v7","https://reactrouter.com/v6/upgrading/future#v7_skipactionerrorrevalidation"))}function LEt(e){let{to:t,replace:n,state:r,relative:i}=e;LS()||Hr(!1);let{future:o,static:a}=p.useContext(Ng),{matches:s}=p.useContext(Kf),{pathname:l}=$S(),c=Aa(),u=_D(t,yD(s,o.v7_relativeSplatPath),l,i==="path"),d=JSON.stringify(u);return p.useEffect(()=>c(JSON.parse(d),{replace:n,state:r,relative:i}),[c,d,i,n,r]),null}function CD(e){return EEt(e.context)}function $Et(e){let{basename:t="/",children:n=null,location:r,navigationType:i=la.Pop,navigator:o,static:a=!1,future:s}=e;LS()&&Hr(!1);let l=t.replace(/^\/*/,"/"),c=p.useMemo(()=>({basename:l,navigator:o,static:a,future:lk({v7_relativeSplatPath:!1},s)}),[l,s,o,a]);typeof r=="string"&&(r=Rh(r));let{pathname:u="/",search:d="",hash:f="",state:h=null,key:m="default"}=r,g=p.useMemo(()=>{let v=DS(u,l);return v==null?null:{location:{pathname:v,search:d,hash:f,state:h,key:m},navigationType:i}},[l,u,d,f,h,m,i]);return g==null?null:p.createElement(Ng.Provider,{value:c},p.createElement(LY.Provider,{children:n,value:g}))}new Promise(()=>{});function nOe(e){let t={hasErrorBoundary:e.ErrorBoundary!=null||e.errorElement!=null};return e.Component&&Object.assign(t,{element:p.createElement(e.Component),Component:void 0}),e.HydrateFallback&&Object.assign(t,{hydrateFallbackElement:p.createElement(e.HydrateFallback),HydrateFallback:void 0}),e.ErrorBoundary&&Object.assign(t,{errorElement:p.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 E_(){return E_=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},E_.apply(this,arguments)}function FEt(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 BEt(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function jEt(e,t){return e.button===0&&(!t||t==="_self")&&!BEt(e)}const HEt=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],UEt="6";try{window.__reactRouterVersion=UEt}catch{}function zEt(e,t){return G2e({basename:t==null?void 0:t.basename,future:E_({},t==null?void 0:t.future,{v7_prependBasename:!0}),history:wSt({window:t==null?void 0:t.window}),hydrationData:(t==null?void 0:t.hydrationData)||rOe(),routes:e,mapRouteProperties:nOe,dataStrategy:t==null?void 0:t.dataStrategy,patchRoutesOnNavigation:t==null?void 0:t.patchRoutesOnNavigation,window:t==null?void 0:t.window}).initialize()}function VEt(e,t){return G2e({basename:t==null?void 0:t.basename,future:E_({},t==null?void 0:t.future,{v7_prependBasename:!0}),history:TSt({window:t==null?void 0:t.window}),hydrationData:(t==null?void 0:t.hydrationData)||rOe(),routes:e,mapRouteProperties:nOe,dataStrategy:t==null?void 0:t.dataStrategy,patchRoutesOnNavigation:t==null?void 0:t.patchRoutesOnNavigation,window:t==null?void 0:t.window}).initialize()}function rOe(){var e;let t=(e=window)==null?void 0:e.__staticRouterHydrationData;return t&&t.errors&&(t=E_({},t,{errors:GEt(t.errors)})),t}function GEt(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 sk(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 WEt=p.createContext({isTransitioning:!1}),qEt=p.createContext(new Map),YEt="startTransition",Sae=kx[YEt],KEt="flushSync",Eae=J1e[KEt];function QEt(e){Sae?Sae(e):e()}function VE(e){Eae?Eae(e):e()}class XEt{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 ZEt(e){let{fallbackElement:t,router:n,future:r}=e,[i,o]=p.useState(n.state),[a,s]=p.useState(),[l,c]=p.useState({isTransitioning:!1}),[u,d]=p.useState(),[f,h]=p.useState(),[m,g]=p.useState(),v=p.useRef(new Map),{v7_startTransition:y}=r||{},b=p.useCallback(T=>{y?QEt(T):T()},[y]),_=p.useCallback((T,x)=>{let{deletedFetchers:O,flushSync:N,viewTransitionOpts:I}=x;O.forEach(F=>v.current.delete(F)),T.fetchers.forEach((F,k)=>{F.data!==void 0&&v.current.set(k,F.data)});let M=n.window==null||n.window.document==null||typeof n.window.document.startViewTransition!="function";if(!I||M){N?VE(()=>o(T)):b(()=>o(T));return}if(N){VE(()=>{f&&(u&&u.resolve(),f.skipTransition()),c({isTransitioning:!0,flushSync:!0,currentLocation:I.currentLocation,nextLocation:I.nextLocation})});let F=n.window.document.startViewTransition(()=>{VE(()=>o(T))});F.finished.finally(()=>{VE(()=>{d(void 0),h(void 0),s(void 0),c({isTransitioning:!1})})}),VE(()=>h(F));return}f?(u&&u.resolve(),f.skipTransition(),g({state:T,currentLocation:I.currentLocation,nextLocation:I.nextLocation})):(s(T),c({isTransitioning:!0,flushSync:!1,currentLocation:I.currentLocation,nextLocation:I.nextLocation}))},[n.window,f,u,v,b]);p.useLayoutEffect(()=>n.subscribe(_),[n,_]),p.useEffect(()=>{l.isTransitioning&&!l.flushSync&&d(new XEt)},[l]),p.useEffect(()=>{if(u&&a&&n.window){let T=a,x=u.promise,O=n.window.document.startViewTransition(async()=>{b(()=>o(T)),await x});O.finished.finally(()=>{d(void 0),h(void 0),s(void 0),c({isTransitioning:!1})}),h(O)}},[b,a,u,n.window]),p.useEffect(()=>{u&&a&&i.location.key===a.location.key&&u.resolve()},[u,f,i.location,a]),p.useEffect(()=>{!l.isTransitioning&&m&&(s(m.state),c({isTransitioning:!0,flushSync:!1,currentLocation:m.currentLocation,nextLocation:m.nextLocation}),g(void 0))},[l.isTransitioning,m]),p.useEffect(()=>{},[]);let E=p.useMemo(()=>({createHref:n.createHref,encodeLocation:n.encodeLocation,go:T=>n.navigate(T),push:(T,x,O)=>n.navigate(T,{state:x,preventScrollReset:O==null?void 0:O.preventScrollReset}),replace:(T,x,O)=>n.navigate(T,{replace:!0,state:x,preventScrollReset:O==null?void 0:O.preventScrollReset})}),[n]),w=n.basename||"/",S=p.useMemo(()=>({router:n,navigator:E,static:!1,basename:w}),[n,E,w]),C=p.useMemo(()=>({v7_relativeSplatPath:n.future.v7_relativeSplatPath}),[n.future.v7_relativeSplatPath]);return p.useEffect(()=>DEt(r,n.future),[r,n.future]),p.createElement(p.Fragment,null,p.createElement(ED.Provider,{value:S},p.createElement(Q2e.Provider,{value:i},p.createElement(qEt.Provider,{value:v.current},p.createElement(WEt.Provider,{value:l},p.createElement($Et,{basename:w,location:i.location,navigationType:i.historyAction,navigator:E,future:C},i.initialized||n.future.v7_partialHydration?p.createElement(JEt,{routes:n.routes,future:n.future,state:i}):t))))),null)}const JEt=p.memo(eCt);function eCt(e){let{routes:t,future:n,state:r}=e;return CEt(t,void 0,r,n)}const tCt=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",nCt=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,rCt=p.forwardRef(function(t,n){let{onClick:r,relative:i,reloadDocument:o,replace:a,state:s,target:l,to:c,preventScrollReset:u,viewTransition:d}=t,f=FEt(t,HEt),{basename:h}=p.useContext(Ng),m,g=!1;if(typeof c=="string"&&nCt.test(c)&&(m=c,tCt))try{let _=new URL(window.location.href),E=c.startsWith("//")?new URL(_.protocol+c):new URL(c),w=DS(E.pathname,h);E.origin===_.origin&&w!=null?c=w+E.search+E.hash:g=!0}catch{}let v=yEt(c,{relative:i}),y=iCt(c,{replace:a,state:s,target:l,preventScrollReset:u,relative:i,viewTransition:d});function b(_){r&&r(_),_.defaultPrevented||y(_)}return p.createElement("a",E_({},f,{href:m||v,onClick:g||o?r:b,ref:n,target:l}))});var Cae;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(Cae||(Cae={}));var wae;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(wae||(wae={}));function iCt(e,t){let{target:n,replace:r,state:i,preventScrollReset:o,relative:a,viewTransition:s}=t===void 0?{}:t,l=Aa(),c=$S(),u=J2e(e,{relative:a});return p.useCallback(d=>{if(jEt(d,n)){d.preventDefault();let f=r!==void 0?r:vg(c)===vg(u);l(e,{replace:f,state:i,preventScrollReset:o,relative:a,viewTransition:s})}},[c,l,u,r,i,n,e,o,a,s])}var oCt=W(W({},N_e),{},{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 iOe={placeholder:"请选择时间",rangePlaceholder:["开始时间","结束时间"]},lU={lang:Object.assign({placeholder:"请选择日期",yearPlaceholder:"请选择年份",quarterPlaceholder:"请选择季度",monthPlaceholder:"请选择月份",weekPlaceholder:"请选择周",rangePlaceholder:["开始日期","结束日期"],rangeYearPlaceholder:["开始年份","结束年份"],rangeMonthPlaceholder:["开始月份","结束月份"],rangeQuarterPlaceholder:["开始季度","结束季度"],rangeWeekPlaceholder:["开始周","结束周"]},oCt),timePickerLocale:Object.assign({},iOe)};lU.lang.ok="确定";const Kl="${label}不是一个有效的${type}",aCt={locale:"zh-cn",Pagination:axe,DatePicker:lU,TimePicker:iOe,Calendar:lU,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:Kl,method:Kl,array:Kl,object:Kl,number:Kl,date:Kl,boolean:Kl,integer:Kl,float:Kl,regexp:Kl,email:Kl,url:Kl,hex:Kl},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=()=>{},sc=Dm(),BA=Object,fi=e=>e===sc,Cf=e=>typeof e=="function",fh=(e,t)=>({...e,...t}),sCt=e=>Cf(e.then),jR=new WeakMap;let lCt=0;const HT=e=>{const t=typeof e,n=e&&e.constructor,r=n==Date;let i,o;if(BA(e)===e&&!r&&n!=RegExp){if(i=jR.get(e),i)return i;if(i=++lCt+"~",jR.set(e,i),n==Array){for(i="@",o=0;o<e.length;o++)i+=HT(e[o])+",";jR.set(e,i)}if(n==BA){i="#";const a=BA.keys(e).sort();for(;!fi(o=a.pop());)fi(e[o])||(i+=o+":"+HT(e[o])+",");jR.set(e,i)}}else i=r?e.toJSON():t=="symbol"?e.toString():t=="string"?JSON.stringify(e):""+e;return i},Lp=new WeakMap,S$={},HR={},FY="undefined",wD=typeof window!=FY,cU=typeof document!=FY,cCt=()=>wD&&typeof window.requestAnimationFrame!=FY,oOe=(e,t)=>{const n=Lp.get(e);return[()=>!fi(t)&&e.get(t)||S$,r=>{if(!fi(t)){const i=e.get(t);t in HR||(HR[t]=i),n[5](t,fh(i,r),i||S$)}},n[6],()=>!fi(t)&&t in HR?HR[t]:!fi(t)&&e.get(t)||S$]};let uU=!0;const uCt=()=>uU,[dU,fU]=wD&&window.addEventListener?[window.addEventListener.bind(window),window.removeEventListener.bind(window)]:[Dm,Dm],dCt=()=>{const e=cU&&document.visibilityState;return fi(e)||e!=="hidden"},fCt=e=>(cU&&document.addEventListener("visibilitychange",e),dU("focus",e),()=>{cU&&document.removeEventListener("visibilitychange",e),fU("focus",e)}),pCt=e=>{const t=()=>{uU=!0,e()},n=()=>{uU=!1};return dU("online",t),dU("offline",n),()=>{fU("online",t),fU("offline",n)}},hCt={isOnline:uCt,isVisible:dCt},mCt={initFocus:fCt,initReconnect:pCt},Tae=!ce.useId,UT=!wD||"Deno"in window,gCt=e=>cCt()?window.requestAnimationFrame(e):setTimeout(e,1),jA=UT?p.useEffect:p.useLayoutEffect,E$=typeof navigator<"u"&&navigator.connection,xae=!UT&&E$&&(["slow-2g","2g"].includes(E$.effectiveType)||E$.saveData),BY=e=>{if(Cf(e))try{e=e()}catch{e=""}const t=e;return e=typeof e=="string"?e:(Array.isArray(e)?e.length:e)?HT(e):"",[e,t]};let vCt=0;const pU=()=>++vCt,aOe=0,sOe=1,lOe=2,bCt=3;var GE={__proto__:null,ERROR_REVALIDATE_EVENT:bCt,FOCUS_EVENT:aOe,MUTATE_EVENT:lOe,RECONNECT_EVENT:sOe};async function cOe(...e){const[t,n,r,i]=e,o=fh({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=h=>typeof s=="function"?s(h):s!==!1,d=o.throwOnError;if(Cf(n)){const h=n,m=[],g=t.keys();for(const v of g)!/^\$(inf|sub)\$/.test(v)&&h(t.get(v)._k)&&m.push(v);return Promise.all(m.map(f))}return f(n);async function f(h){const[m]=BY(h);if(!m)return;const[g,v]=oOe(t,m),[y,b,_,E]=Lp.get(t),w=y[m],S=()=>c&&(delete _[m],delete E[m],w&&w[0])?w[0](lOe).then(()=>g().data):g().data;if(e.length<3)return S();let C=r,T;const x=pU();b[m]=[x,0];const O=!fi(l),N=g(),I=N.data,M=N._c,F=fi(M)?I:M;if(O&&(l=Cf(l)?l(F,I):l,v({data:l,_c:F})),Cf(C))try{C=C(F)}catch(B){T=B}if(C&&sCt(C))if(C=await C.catch(B=>{T=B}),x!==b[m][0]){if(T)throw T;return C}else T&&O&&u(T)&&(a=!0,C=F,v({data:C,_c:sc}));a&&(T||(Cf(a)&&(C=a(C,F)),v({data:C,error:sc,_c:sc}))),b[m][1]=pU();const k=await S();if(v({_c:sc}),T){if(d)throw T;return}return a?k:C}}const Oae=(e,t)=>{for(const n in e)e[n][0]&&e[n][0](t)},uOe=(e,t)=>{if(!Lp.has(e)){const n=fh(mCt,t),r={},i=cOe.bind(sc,e);let o=Dm;const a={},s=(u,d)=>{const f=a[u]||[];return a[u]=f,f.push(d),()=>f.splice(f.indexOf(d),1)},l=(u,d,f)=>{e.set(u,d);const h=a[u];if(h)for(const m of h)m(d,f)},c=()=>{if(!Lp.has(e)&&(Lp.set(e,[r,{},{},{},i,l,s]),!UT)){const u=n.initFocus(setTimeout.bind(sc,Oae.bind(sc,r,aOe))),d=n.initReconnect(setTimeout.bind(sc,Oae.bind(sc,r,sOe)));o=()=>{u&&u(),d&&d(),Lp.delete(e)}}};return c(),[e,i,c,o]}return[e,Lp.get(e)[4]]},yCt=(e,t,n,r,i)=>{const o=n.errorRetryCount,a=i.retryCount,s=~~((Math.random()+.5)*(1<<(a<8?a:8)))*n.errorRetryInterval;!fi(o)&&a>o||setTimeout(r,s,i)},_Ct=(e,t)=>HT(e)==HT(t),[jY,SCt]=uOe(new Map),dOe=fh({onLoadingSlow:Dm,onSuccess:Dm,onError:Dm,onErrorRetry:yCt,onDiscarded:Dm,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:xae?1e4:5e3,focusThrottleInterval:5*1e3,dedupingInterval:2*1e3,loadingTimeout:xae?5e3:3e3,compare:_Ct,isPaused:()=>!1,cache:jY,mutate:SCt,fallback:{}},hCt),fOe=(e,t)=>{const n=fh(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=fh(i,a))}return n},hU=p.createContext({}),ECt=e=>{const{value:t}=e,n=p.useContext(hU),r=Cf(t),i=p.useMemo(()=>r?t(n):t,[r,n,t]),o=p.useMemo(()=>r?i:fOe(n,i),[r,n,i]),a=i&&i.provider,s=p.useRef(sc);a&&!s.current&&(s.current=uOe(a(o.cache||jY),i));const l=s.current;return l&&(o.cache=l[0],o.mutate=l[1]),jA(()=>{if(l)return l[2]&&l[2](),l[3]},[]),p.createElement(hU.Provider,fh(e,{value:o}))},pOe=wD&&window.__SWR_DEVTOOLS_USE__,CCt=pOe?window.__SWR_DEVTOOLS_USE__:[],wCt=()=>{pOe&&(window.__SWR_DEVTOOLS_REACT__=ce)},TCt=e=>Cf(e[1])?[e[0],e[1],e[2]||{}]:[e[0],null,(e[1]===null?e[2]:e[1])||{}],HY=()=>fh(dOe,p.useContext(hU)),xCt=e=>(t,n,r)=>e(t,n&&((...o)=>{const[a]=BY(t),[,,,s]=Lp.get(jY),l=s[a];return fi(l)?n(...o):(delete s[a],l)}),r),OCt=CCt.concat(xCt),RCt=e=>function(...n){const r=HY(),[i,o,a]=TCt(n),s=fOe(r,a);let l=e;const{use:c}=s,u=(c||[]).concat(OCt);for(let d=u.length;d--;)l=u[d](l);return l(i,o||s.fetcher||null,s)},ICt=(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())}};wCt();const Rae=ce.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)}),C$={dedupe:!0},ACt=(e,t,n)=>{const{cache:r,compare:i,suspense:o,fallbackData:a,revalidateOnMount:s,revalidateIfStale:l,refreshInterval:c,refreshWhenHidden:u,refreshWhenOffline:d,keepPreviousData:f}=n,[h,m,g,v]=Lp.get(r),[y,b]=BY(e),_=p.useRef(!1),E=p.useRef(!1),w=p.useRef(y),S=p.useRef(t),C=p.useRef(n),T=()=>C.current,x=()=>T().isVisible()&&T().isOnline(),[O,N,I,M]=oOe(r,y),F=p.useRef({}).current,k=fi(a)?n.fallback[y]:a,B=(ue,le)=>{for(const ve in F){const ne=ve;if(ne==="data"){if(!i(ue[ne],le[ne])&&(!fi(ue[ne])||!i(te,le[ne])))return!1}else if(le[ne]!==ue[ne])return!1}return!0},A=p.useMemo(()=>{const ue=!y||!t?!1:fi(s)?T().isPaused()||o?!1:fi(l)?!0:l:s,le=Se=>{const Ce=fh(Se);return delete Ce._k,ue?{isValidating:!0,isLoading:!0,...Ce}:Ce},ve=O(),ne=M(),pe=le(ve),be=ve===ne?pe:le(ne);let Re=pe;return[()=>{const Se=le(O());return B(Se,Re)?(Re.data=Se.data,Re.isLoading=Se.isLoading,Re.isValidating=Se.isValidating,Re.error=Se.error,Re):(Re=Se,Se)},()=>be]},[r,y]),P=ive.useSyncExternalStore(p.useCallback(ue=>I(y,(le,ve)=>{B(ve,le)||ue()}),[r,y]),A[0],A[1]),z=!_.current,L=h[y]&&h[y].length>0,V=P.data,j=fi(V)?k:V,U=P.error,J=p.useRef(j),te=f?fi(V)?J.current:V:j,ae=L&&!fi(U)?!1:z&&!fi(s)?s:T().isPaused()?!1:o?fi(j)?!1:l:fi(j)||l,K=!!(y&&t&&z&&ae),Q=fi(P.isValidating)?K:P.isValidating,oe=fi(P.isLoading)?K:P.isLoading,ge=p.useCallback(async ue=>{const le=S.current;if(!y||!le||E.current||T().isPaused())return!1;let ve,ne,pe=!0;const be=ue||{},Re=!g[y]||!be.dedupe,Se=()=>Tae?!E.current&&y===w.current&&_.current:y===w.current,Ce={isValidating:!1,isLoading:!1},ye=()=>{N(Ce)},he=()=>{const Oe=g[y];Oe&&Oe[1]===ne&&delete g[y]},_e={isValidating:!0};fi(O().data)&&(_e.isLoading=!0);try{if(Re&&(N(_e),n.loadingTimeout&&fi(O().data)&&setTimeout(()=>{pe&&Se()&&T().onLoadingSlow(y,n)},n.loadingTimeout),g[y]=[le(b),pU()]),[ve,ne]=g[y],ve=await ve,Re&&setTimeout(he,n.dedupingInterval),!g[y]||g[y][1]!==ne)return Re&&Se()&&T().onDiscarded(y),!1;Ce.error=sc;const Oe=m[y];if(!fi(Oe)&&(ne<=Oe[0]||ne<=Oe[1]||Oe[1]===0))return ye(),Re&&Se()&&T().onDiscarded(y),!1;const De=O().data;Ce.data=i(De,ve)?De:ve,Re&&Se()&&T().onSuccess(ve,y,n)}catch(Oe){he();const De=T(),{shouldRetryOnError:Y}=De;De.isPaused()||(Ce.error=Oe,Re&&Se()&&(De.onError(Oe,y,De),(Y===!0||Cf(Y)&&Y(Oe))&&x()&&De.onErrorRetry(Oe,y,De,D=>{const G=h[y];G&&G[0]&&G[0](GE.ERROR_REVALIDATE_EVENT,D)},{retryCount:(be.retryCount||0)+1,dedupe:!0})))}return pe=!1,ye(),!0},[y,r]),fe=p.useCallback((...ue)=>cOe(r,w.current,...ue),[]);if(jA(()=>{S.current=t,C.current=n,fi(V)||(J.current=V)}),jA(()=>{if(!y)return;const ue=ge.bind(sc,C$);let le=0;const ne=ICt(y,h,(pe,be={})=>{if(pe==GE.FOCUS_EVENT){const Re=Date.now();T().revalidateOnFocus&&Re>le&&x()&&(le=Re+T().focusThrottleInterval,ue())}else if(pe==GE.RECONNECT_EVENT)T().revalidateOnReconnect&&x()&&ue();else{if(pe==GE.MUTATE_EVENT)return ge();if(pe==GE.ERROR_REVALIDATE_EVENT)return ge(be)}});return E.current=!1,w.current=y,_.current=!0,N({_k:b}),ae&&(fi(j)||UT?ue():gCt(ue)),()=>{E.current=!0,ne()}},[y]),jA(()=>{let ue;function le(){const ne=Cf(c)?c(O().data):c;ne&&ue!==-1&&(ue=setTimeout(ve,ne))}function ve(){!O().error&&(u||T().isVisible())&&(d||T().isOnline())?ge(C$).then(le):le()}return le(),()=>{ue&&(clearTimeout(ue),ue=-1)}},[c,u,d,y]),p.useDebugValue(te),o&&fi(j)&&y){if(!Tae&&UT)throw new Error("Fallback data is required when using suspense in SSR.");S.current=t,C.current=n,E.current=!1;const ue=v[y];if(!fi(ue)){const le=fe(ue);Rae(le)}if(fi(U)){const le=ge(C$);fi(te)||(le.status="fulfilled",le.value=!0),Rae(le)}else throw U}return{mutate:fe,get data(){return F.data=!0,te},get error(){return F.error=!0,U},get isValidating(){return F.isValidating=!0,Q},get isLoading(){return F.isLoading=!0,oe}}},NCt=BA.defineProperty(ECt,"defaultValue",{value:dOe}),UY=RCt(ACt),MCt={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:"غلق"}},kCt={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"}},PCt={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"}},DCt={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"}},LCt={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"}},$Ct={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"}},FCt={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"}},BCt={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:"نزدیک"}},jCt={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"}},HCt={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:"סגור"}},UCt={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"}},zCt={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"}},VCt={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"}},GCt={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:"閉じる"}},WCt={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:"가까 운"}},qCt={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:"Хаах"}},YCt={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"}},KCt={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"}},QCt={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ć"}},XCt={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"}},ZCt={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"}},JCt={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:"По адресу:"}},ewt={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ť"}},twt={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:"Затворите"}},nwt={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"}},rwt={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:"ปิด"}},iwt={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"}},owt={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:"Закрито"}},awt={moneySymbol:"UZS",form:{lightFilter:{more:"Yana",clear:"Tozalash",confirm:"OK",itemUnit:"Pozitsiyalar"}},tableForm:{search:"Qidirish",reset:"Qayta tiklash",submit:"Yuborish",collapsed:"Yigish",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:"Ongga mahkamlash",noPin:"Mahkamlashni olib tashlash",leftFixedTitle:"Chapga mahkamlangan",rightFixedTitle:"Ongga mahkamlangan",noFixedTitle:"Mahkamlashsiz",reset:"Qayta tiklash",columnDisplay:"Ustunni korsatish",columnSetting:"Sozlamalar",fullScreen:"Toliq ekran",exitFullScreen:"Toliq ekrandan chiqish",reload:"Yangilash",density:"Olcham",densityDefault:"Standart",densityLarger:"Katta",densityMiddle:"Ortacha",densitySmall:"Kichik"},stepsForm:{next:"Keyingi",prev:"Oldingi",submit:"Tugatish"},loginForm:{submitText:"Kirish"},editableTable:{action:{save:"Saqlash",cancel:"Bekor qilish",delete:"Ochirish",add:"maʼlumotlar qatorini qoshish"}},switch:{open:"Ochish",close:"Yopish"}},swt={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"}},lwt={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:"关闭"}},cwt={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 mi=function(t,n){return{getMessage:function(i,o){var a=Io(n,i.replace(/\[(\d+)\]/g,".$1").split("."))||"";if(a)return a;var s=t.replace("_","-");if(s==="zh-CN")return o;var l=Wv["zh-CN"];return l?l.getMessage(i,o):o},locale:t}},uwt=mi("mn_MN",qCt),dwt=mi("ar_EG",MCt),Oy=mi("zh_CN",lwt),fwt=mi("en_US",$Ct),pwt=mi("en_GB",LCt),hwt=mi("vi_VN",swt),mwt=mi("it_IT",VCt),gwt=mi("ja_JP",GCt),vwt=mi("es_ES",FCt),bwt=mi("ca_ES",kCt),ywt=mi("ru_RU",JCt),_wt=mi("sr_RS",twt),Swt=mi("ms_MY",YCt),Ewt=mi("zh_TW",cwt),Cwt=mi("fr_FR",jCt),wwt=mi("pt_BR",XCt),Twt=mi("ko_KR",WCt),xwt=mi("id_ID",zCt),Owt=mi("de_DE",DCt),Rwt=mi("fa_IR",BCt),Iwt=mi("tr_TR",iwt),Awt=mi("pl_PL",QCt),Nwt=mi("hr_",UCt),Mwt=mi("th_TH",rwt),kwt=mi("cs_cz",PCt),Pwt=mi("sk_SK",ewt),Dwt=mi("he_IL",HCt),Lwt=mi("uk_UA",owt),$wt=mi("uz_UZ",awt),Fwt=mi("nl_NL",KCt),Bwt=mi("ro_RO",ZCt),jwt=mi("sv_SE",nwt),Wv={"mn-MN":uwt,"ar-EG":dwt,"zh-CN":Oy,"en-US":fwt,"en-GB":pwt,"vi-VN":hwt,"it-IT":mwt,"ja-JP":gwt,"es-ES":vwt,"ca-ES":bwt,"ru-RU":ywt,"sr-RS":_wt,"ms-MY":Swt,"zh-TW":Ewt,"fr-FR":Cwt,"pt-BR":wwt,"ko-KR":Twt,"id-ID":xwt,"de-DE":Owt,"fa-IR":Rwt,"tr-TR":Iwt,"pl-PL":Awt,"hr-HR":Nwt,"th-TH":Mwt,"cs-CZ":kwt,"sk-SK":Pwt,"he-IL":Dwt,"uk-UA":Lwt,"uz-UZ":$wt,"nl-NL":Fwt,"ro-RO":Bwt,"sv-SE":jwt},Hwt=Object.keys(Wv),hOe=function(t){var n=(t||"zh-CN").toLocaleLowerCase();return Hwt.find(function(r){var i=r.toLocaleLowerCase();return i.includes(n)})};function ts(e,t){Uwt(e)&&(e="100%");var n=zwt(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 UR(e){return Math.min(1,Math.max(0,e))}function Uwt(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function zwt(e){return typeof e=="string"&&e.indexOf("%")!==-1}function mOe(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function zR(e){return e<=1?"".concat(Number(e)*100,"%"):e}function V1(e){return e.length===1?"0"+e:String(e)}function Vwt(e,t,n){return{r:ts(e,255)*255,g:ts(t,255)*255,b:ts(n,255)*255}}function Iae(e,t,n){e=ts(e,255),t=ts(t,255),n=ts(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 w$(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 Gwt(e,t,n){var r,i,o;if(e=ts(e,360),t=ts(t,100),n=ts(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=w$(s,a,e+1/3),i=w$(s,a,e),o=w$(s,a,e-1/3)}return{r:r*255,g:i*255,b:o*255}}function Aae(e,t,n){e=ts(e,255),t=ts(t,255),n=ts(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 Wwt(e,t,n){e=ts(e,360)*6,t=ts(t,100),n=ts(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 Nae(e,t,n,r){var i=[V1(Math.round(e).toString(16)),V1(Math.round(t).toString(16)),V1(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 qwt(e,t,n,r,i){var o=[V1(Math.round(e).toString(16)),V1(Math.round(t).toString(16)),V1(Math.round(n).toString(16)),V1(Ywt(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 Ywt(e){return Math.round(parseFloat(e)*255).toString(16)}function Mae(e){return Ql(e)/255}function Ql(e){return parseInt(e,16)}function Kwt(e){return{r:e>>16,g:(e&65280)>>8,b:e&255}}var mU={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 Qwt(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=Jwt(e)),typeof e=="object"&&(lp(e.r)&&lp(e.g)&&lp(e.b)?(t=Vwt(e.r,e.g,e.b),a=!0,s=String(e.r).substr(-1)==="%"?"prgb":"rgb"):lp(e.h)&&lp(e.s)&&lp(e.v)?(r=zR(e.s),i=zR(e.v),t=Wwt(e.h,r,i),a=!0,s="hsv"):lp(e.h)&&lp(e.s)&&lp(e.l)&&(r=zR(e.s),o=zR(e.l),t=Gwt(e.h,r,o),a=!0,s="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(n=e.a)),n=mOe(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 Xwt="[-\\+]?\\d+%?",Zwt="[-\\+]?\\d*\\.\\d+%?",Lm="(?:".concat(Zwt,")|(?:").concat(Xwt,")"),T$="[\\s|\\(]+(".concat(Lm,")[,|\\s]+(").concat(Lm,")[,|\\s]+(").concat(Lm,")\\s*\\)?"),x$="[\\s|\\(]+(".concat(Lm,")[,|\\s]+(").concat(Lm,")[,|\\s]+(").concat(Lm,")[,|\\s]+(").concat(Lm,")\\s*\\)?"),Bu={CSS_UNIT:new RegExp(Lm),rgb:new RegExp("rgb"+T$),rgba:new RegExp("rgba"+x$),hsl:new RegExp("hsl"+T$),hsla:new RegExp("hsla"+x$),hsv:new RegExp("hsv"+T$),hsva:new RegExp("hsva"+x$),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 Jwt(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var t=!1;if(mU[e])e=mU[e],t=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var n=Bu.rgb.exec(e);return n?{r:n[1],g:n[2],b:n[3]}:(n=Bu.rgba.exec(e),n?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=Bu.hsl.exec(e),n?{h:n[1],s:n[2],l:n[3]}:(n=Bu.hsla.exec(e),n?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=Bu.hsv.exec(e),n?{h:n[1],s:n[2],v:n[3]}:(n=Bu.hsva.exec(e),n?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=Bu.hex8.exec(e),n?{r:Ql(n[1]),g:Ql(n[2]),b:Ql(n[3]),a:Mae(n[4]),format:t?"name":"hex8"}:(n=Bu.hex6.exec(e),n?{r:Ql(n[1]),g:Ql(n[2]),b:Ql(n[3]),format:t?"name":"hex"}:(n=Bu.hex4.exec(e),n?{r:Ql(n[1]+n[1]),g:Ql(n[2]+n[2]),b:Ql(n[3]+n[3]),a:Mae(n[4]+n[4]),format:t?"name":"hex8"}:(n=Bu.hex3.exec(e),n?{r:Ql(n[1]+n[1]),g:Ql(n[2]+n[2]),b:Ql(n[3]+n[3]),format:t?"name":"hex"}:!1)))))))))}function lp(e){return!!Bu.CSS_UNIT.exec(String(e))}var eTt=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=Kwt(t)),this.originalInput=t;var i=Qwt(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=mOe(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=Aae(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=Aae(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=Iae(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=Iae(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),Nae(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),qwt(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(ts(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(ts(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="#"+Nae(this.r,this.g,this.b,!1),n=0,r=Object.entries(mU);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=UR(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=UR(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=UR(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=UR(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}(),O$,zT={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"},gOe=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)},zY=Lv(function(e){return e}),vOe={theme:zY,token:W(W({},zT),Es==null||(O$=Es.defaultAlgorithm)===null||O$===void 0?void 0:O$.call(Es,Es==null?void 0:Es.defaultSeed)),hashId:"pro-".concat(gOe(JSON.stringify(zT)))},tTt=function(){return vOe};const nTt=Object.freeze(Object.defineProperty({__proto__:null,defaultToken:zT,emptyTheme:zY,hashCode:gOe,token:vOe,useToken:tTt},Symbol.toStringTag,{value:"Module"}));var Xl=function(t,n){return new eTt(t).setAlpha(n).toRgbString()},rTt=function(){return typeof Es>"u"||!Es?nTt:Es},Ff=rTt(),HA=Ff.useToken,R$=function(t){return{boxSizing:"border-box",margin:0,padding:0,color:t.colorText,fontSize:t.fontSize,lineHeight:t.lineHeight,listStyle:"none"}};function zi(e,t){var n,r=p.useContext(md),i=r.token,o=i===void 0?{}:i,a=p.useContext(md),s=a.hashed,l=HA(),c=l.token,u=l.hashId,d=p.useContext(md),f=d.theme,h=p.useContext(Ln.ConfigContext),m=h.getPrefixCls,g=h.csp;return o.layout||(o=W({},c)),o.proComponentsCls=(n=o.proComponentsCls)!==null&&n!==void 0?n:".".concat(m("pro")),o.antCls=".".concat(m()),{wrapSSR:d_({theme:f,token:o,path:[e],nonce:g==null?void 0:g.nonce,layer:{name:"antd-pro",dependencies:["antd"]}},function(){return t(o)}),hashId:s?u:""}}var iTt=function(t,n){var r,i,o,a,s,l=W({},t);return W(W({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:Xl(n.colorTextBase,.04),colorTextAppListIconHover:n.colorTextBase},l),{},{header:W({colorBgHeader:Xl(n.colorBgElevated,.6),colorBgScrollHeader:Xl(n.colorBgElevated,.8),colorHeaderTitle:n.colorText,colorBgMenuItemHover:Xl(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:Xl(n.colorTextBase,.95),colorBgRightActionsItemHover:Xl(n.colorTextBase,.03),colorTextRightActionsItem:n.colorTextTertiary,heightLayoutHeader:56,colorTextMenu:n.colorTextSecondary,colorTextMenuSecondary:n.colorTextTertiary,colorTextMenuTitle:n.colorText,colorTextMenuActive:n.colorText},l.header),sider:W({paddingInlineLayoutMenu:8,paddingBlockLayoutMenu:0,colorBgCollapsedButton:n.colorBgElevated,colorTextCollapsedButtonHover:n.colorTextSecondary,colorTextCollapsedButton:Xl(n.colorTextBase,.25),colorMenuBackground:"transparent",colorMenuItemDivider:Xl(n.colorTextBase,.06),colorBgMenuItemHover:Xl(n.colorTextBase,.03),colorBgMenuItemSelected:Xl(n.colorTextBase,.04),colorTextMenuItemHover:n.colorText,colorTextMenuSelected:Xl(n.colorTextBase,.95),colorTextMenuActive:n.colorText,colorTextMenu:n.colorTextSecondary,colorTextMenuSecondary:n.colorTextTertiary,colorTextMenuTitle:n.colorText,colorTextSubMenuSelected:Xl(n.colorTextBase,.95)},l.sider),pageContainer:W({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)})},oTt=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)&&(Gt(t[a])==="object"&&Gt(r[s][a])==="object"&&t[a]!==void 0&&t[a]!==null&&!Array.isArray(t[a])&&!Array.isArray(r[s][a])?t[a]=W(W({},t[a]),r[s][a]):t[a]=r[s][a]);return t},aTt={exports:{}};(function(e,t){(function(n,r){e.exports=r(LCe)})(ao,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})})(aTt);var sTt=["locale","getPrefixCls"],lTt=["locale","theme"],cTt=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},Ry=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"))},bg=ce.createContext({intl:W(W({},Oy),{},{locale:"default"}),valueTypeMap:{},theme:zY,hashed:!0,dark:!1,token:zT});bg.Consumer;var uTt=function(){var t=HY(),n=t.cache;return p.useEffect(function(){return function(){n.clear()}},[]),null},dTt=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=p.useContext(Ln.ConfigContext),f=d.locale,h=d.getPrefixCls,m=Dt(d,sTt),g=(n=Ff.useToken)===null||n===void 0?void 0:n.call(Ff),v=p.useContext(bg),y=c?".".concat(c):".".concat(h(),"-pro"),b="."+h(),_="".concat(y),E=p.useMemo(function(){return iTt(l||{},g.token||zT)},[l,g.token]),w=p.useMemo(function(){var B,A=f==null?void 0:f.locale,P=hOe(A),z=u??(A&&((B=v.intl)===null||B===void 0?void 0:B.locale)==="default"?Wv[P]:v.intl||Wv[P]);return W(W({},v),{},{dark:i??v.dark,token:oTt(v.token,g.token,{proComponentsCls:y,antCls:b,themeId:g.theme.id,layout:E}),intl:z||Oy})},[f==null?void 0:f.locale,v,i,g.token,g.theme.id,y,b,E,u]),S=W(W({},w.token||{}),{},{proComponentsCls:y}),C=jW(g.theme,[g.token,S??{}],{salt:_,override:S}),T=Ie(C,2),x=T[0],O=T[1],N=p.useMemo(function(){return!(t.hashed===!1||v.hashed===!1)},[v.hashed,t.hashed]),I=p.useMemo(function(){return t.hashed===!1||v.hashed===!1||Ry()===!1?"":g.hashId?g.hashId:O},[O,v.hashed,t.hashed]);p.useEffect(function(){br.locale((f==null?void 0:f.locale)||"zh-cn")},[f==null?void 0:f.locale]);var M=p.useMemo(function(){return W(W({},m.theme),{},{hashId:I,hashed:N&&Ry()})},[m.theme,I,N,Ry()]),F=p.useMemo(function(){return W(W({},w),{},{valueTypeMap:o||(w==null?void 0:w.valueTypeMap),token:x,theme:g.theme,hashed:N,hashId:I})},[w,o,x,g.theme,N,I]),k=p.useMemo(function(){return H.jsx(Ln,W(W({},m),{},{theme:M,children:H.jsx(bg.Provider,{value:F,children:H.jsxs(H.Fragment,{children:[s&&H.jsx(uTt,{}),r]})})}))},[m,M,F,s,r]);return s?H.jsx(NCt,{value:{provider:function(){return new Map}},children:k}):k},TD=function(t){var n=t.needDeps,r=t.dark,i=t.token,o=p.useContext(bg),a=p.useContext(Ln.ConfigContext),s=a.locale,l=a.theme,c=Dt(a,lTt),u=n&&o.hashId!==void 0&&Object.keys(t).sort().join("-")==="children-needDeps";if(u)return H.jsx(H.Fragment,{children:t.children});var d=function(){var m=r??o.dark;return m&&!Array.isArray(l==null?void 0:l.algorithm)?[Ff.darkAlgorithm,l==null?void 0:l.algorithm].filter(Boolean):m&&Array.isArray(l==null?void 0:l.algorithm)?[Ff.darkAlgorithm].concat(nt((l==null?void 0:l.algorithm)||[])).filter(Boolean):l==null?void 0:l.algorithm},f=W(W({},c),{},{locale:s||aCt,theme:cTt(W(W({},l),{},{algorithm:d()}))});return H.jsx(Ln,W(W({},f),{},{children:H.jsx(dTt,W(W({},t),{},{token:i}))}))};function ko(){var e=p.useContext(Ln.ConfigContext),t=e.locale,n=p.useContext(bg),r=n.intl;return r&&r.locale!=="default"?r||Oy:t!=null&&t.locale&&Wv[hOe(t.locale)]||Oy}bg.displayName="ProProvider";var md=bg,fTt=function(t){return ee({},t.componentCls,{display:"flex",justifyContent:"space-between",paddingBlock:8,paddingInlineStart:8,paddingInlineEnd:8,borderBlockStart:"1px solid ".concat(t.colorSplit)})};function pTt(e){return zi("DropdownFooter",function(t){var n=W(W({},t),{},{componentCls:".".concat(e)});return[fTt(n)]})}var hTt=function(t){var n=ko(),r=t.onClear,i=t.onConfirm,o=t.disabled,a=t.footerRender,s=p.useContext(Ln.ConfigContext),l=s.getPrefixCls,c=l("pro-core-dropdown-footer"),u=pTt(c),d=u.wrapSSR,f=u.hashId,h=[H.jsx($n,{style:{visibility:r?"visible":"hidden"},type:"link",size:"small",disabled:o,onClick:function(v){r&&r(v),v.stopPropagation()},children:n.getMessage("form.lightFilter.clear","清除")},"clear"),H.jsx($n,{"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))||h;return d(H.jsx("div",{className:Te(c,f),onClick:function(v){return v.target.getAttribute("data-type")!=="confirm"&&v.stopPropagation()},children:m}))},mTt=function(e){Ds(n,e);var t=il(n);function n(){var r;Kr(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)),ee(cn(r),"state",{hasError:!1,errorInfo:""}),r}return Qr(n,[{key:"componentDidCatch",value:function(i,o){console.log(i,o)}},{key:"render",value:function(){return this.state.hasError?H.jsx(x2,{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}(ce.Component),gTt=function(t){return ee({},t.componentCls,ee(ee(ee(ee(ee(ee(ee(ee({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":ee({paddingBlock:0,paddingInline:8,backgroundColor:t.colorBgTextHover},"&".concat(t.componentCls,"-allow-clear:hover:not(").concat(t.componentCls,"-disabled)"),ee(ee({},"".concat(t.componentCls,"-arrow"),{display:"none"}),"".concat(t.componentCls,"-close"),{display:"inline-flex"}))},"".concat(t.antCls,"-select"),ee({},"".concat(t.antCls,"-select-clear"),{borderRadius:"50%"})),"".concat(t.antCls,"-picker"),ee({},"".concat(t.antCls,"-picker-clear"),{borderRadius:"50%"})),"&-icon",ee(ee({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",ee({color:t.colorTextPlaceholder,cursor:"not-allowed"},"".concat(t.componentCls,"-icon"),{color:t.colorTextPlaceholder})),"&-small",ee(ee(ee({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 vTt(e){return zi("FieldLabel",function(t){var n=W(W({},t),{},{componentCls:".".concat(e)});return[gTt(n)]})}var bTt=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,f=t.placeholder,h=t.className,m=t.formatter,g=t.bordered,v=t.style,y=t.downIcon,b=t.allowClear,_=b===void 0?!0:b,E=t.valueMaxLength,w=E===void 0?41:E,S=(Ln==null||(r=Ln.useConfig)===null||r===void 0?void 0:r.call(Ln))||{componentSize:"middle"},C=S.componentSize,T=C,x=p.useContext(Ln.ConfigContext),O=x.getPrefixCls,N=O("pro-core-field-label"),I=vTt(N),M=I.wrapSSR,F=I.hashId,k=ko(),B=p.useRef(null),A=p.useRef(null);p.useImperativeHandle(n,function(){return{labelRef:A,clearRef:B}});var P=function(j){return j.every(function(U){return typeof U=="string"})?j.join(","):j.map(function(U,J){var te=J===j.length-1?"":",";return typeof U=="string"?H.jsxs("span",{children:[U,te]},J):H.jsxs("span",{style:{display:"flex"},children:[U,te]},J)})},z=function(j){return m?m(j):Array.isArray(j)?P(j):j},L=function(j,U){if(U!=null&&U!==""&&(!Array.isArray(U)||U.length)){var J,te,ae=j?H.jsxs("span",{onClick:function(){u==null||u()},className:"".concat(N,"-text"),children:[j,": "]}):"",K=z(U);if(!d)return H.jsxs("span",{style:{display:"inline-flex",alignItems:"center"},children:[ae,z(U)]});var Q=function(){var fe=Array.isArray(U)&&U.length>1,ue=k.getMessage("form.lightFilter.itemUnit","项");return typeof K=="string"&&K.length>w&&fe?"...".concat(U.length).concat(ue):""},oe=Q();return H.jsxs("span",{title:typeof K=="string"?K:void 0,style:{display:"inline-flex",alignItems:"center"},children:[ae,H.jsx("span",{style:{paddingInlineStart:4,display:"flex"},children:typeof K=="string"?K==null||(J=K.toString())===null||J===void 0||(te=J.slice)===null||te===void 0?void 0:te.call(J,0,w):K}),oe]})}return j||f};return M(H.jsxs("span",{className:Te(N,F,"".concat(N,"-").concat((i=(o=t.size)!==null&&o!==void 0?o:T)!==null&&i!==void 0?i:"middle"),ee(ee(ee(ee({},"".concat(N,"-active"),(Array.isArray(l)?l.length>0:!!l)||l===0),"".concat(N,"-disabled"),c),"".concat(N,"-bordered"),g),"".concat(N,"-allow-clear"),_),h),style:v,ref:A,onClick:function(){var j;t==null||(j=t.onClick)===null||j===void 0||j.call(t)},children:[L(a,l),(l||l===0)&&_&&H.jsx(qf,{role:"button",title:k.getMessage("form.lightFilter.clear","清除"),className:Te("".concat(N,"-icon"),F,"".concat(N,"-close")),onClick:function(j){c||s==null||s(),j.stopPropagation()},ref:B}),y!==!1?y??H.jsx(c2,{className:Te("".concat(N,"-icon"),F,"".concat(N,"-arrow"))}):null]}))},Ih=ce.forwardRef(bTt),eu=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},yTt=/^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-([\da-z\-]+(?:\.[\da-z\-]+)*))?(?:\+[\da-z\-]+(?:\.[\da-z\-]+)*)?)?)?$/i,kae=function(t){return t==="*"||t==="x"||t==="X"},Pae=function(t){var n=parseInt(t,10);return isNaN(n)?t:n},_Tt=function(t,n){return Gt(t)!==Gt(n)?[String(t),String(n)]:[t,n]},STt=function(t,n){if(kae(t)||kae(n))return 0;var r=_Tt(Pae(t),Pae(n)),i=Ie(r,2),o=i[0],a=i[1];return o>a?1:o<a?-1:0},ETt=function(t,n){for(var r=0;r<Math.max(t.length,n.length);r++){var i=STt(t[r]||"0",n[r]||"0");if(i!==0)return i}return 0},Dae=function(t){var n,r=t.match(yTt);return r==null||(n=r.shift)===null||n===void 0||n.call(r),r},A2=function(t,n){var r=Dae(t),i=Dae(n),o=r.pop(),a=i.pop(),s=ETt(r,i);return s!==0?s:o||a?o?-1:1:0},bOe=function(){var t;return typeof process>"u"?sh:((t=process)===null||t===void 0||(t=t.env)===null||t===void 0?void 0:t.ANTD_VERSION)||sh},N2=function(t,n){var r=A2(bOe(),"4.23.0")>-1?{open:t,onOpenChange:n}:{visible:t,onVisibleChange:n};return eu(r)},CTt=function(t){return ee(ee(ee({},"".concat(t.componentCls,"-label"),{cursor:"pointer"}),"".concat(t.componentCls,"-overlay"),{minWidth:"200px",marginBlockStart:"4px"}),"".concat(t.componentCls,"-content"),{paddingBlock:16,paddingInline:16})};function wTt(e){return zi("FilterDropdown",function(t){var n=W(W({},t),{},{componentCls:".".concat(e)});return[CTt(n)]})}var TTt=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,f=p.useContext(Ln.ConfigContext),h=f.getPrefixCls,m=h("pro-core-field-dropdown"),g=wTt(m),v=g.wrapSSR,y=g.hashId,b=N2(o||c||!1,a||l),_=p.useRef(null);return v(H.jsx(bu,W(W({placement:d,trigger:["click"]},b),{},{overlayInnerStyle:{padding:0},content:H.jsxs("div",{ref:_,className:Te("".concat(m,"-overlay"),ee(ee({},"".concat(m,"-overlay-").concat(d),d),"hashId",y)),children:[H.jsx(Ln,{getPopupContainer:function(){return _.current||document.body},children:H.jsx("div",{className:"".concat(m,"-content ").concat(y).trim(),children:n})}),i&&H.jsx(hTt,W({disabled:s,footerRender:u},i))]}),children:H.jsx("span",{className:"".concat(m,"-label ").concat(y).trim(),children:r})})))},xTt=function(t){return ee({},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 OTt(e){return zi("LabelIconTip",function(t){var n=W(W({},t),{},{componentCls:".".concat(e)});return[xTt(n)]})}var RTt=ce.memo(function(e){var t=e.label,n=e.tooltip,r=e.ellipsis,i=e.subTitle,o=p.useContext(Ln.ConfigContext),a=o.getPrefixCls,s=a("pro-core-label-tip"),l=OTt(s),c=l.wrapSSR,u=l.hashId;if(!n&&!i)return H.jsx(H.Fragment,{children:t});var d=typeof n=="string"||ce.isValidElement(n)?{title:n}:n,f=(d==null?void 0:d.icon)||H.jsx(ngt,{});return c(H.jsxs("div",{className:Te(s,u),onMouseDown:function(m){return m.stopPropagation()},onMouseLeave:function(m){return m.stopPropagation()},onMouseMove:function(m){return m.stopPropagation()},children:[H.jsx("div",{className:Te("".concat(s,"-title"),u,ee({},"".concat(s,"-title-ellipsis"),r)),children:t}),i&&H.jsx("div",{className:"".concat(s,"-subtitle ").concat(u).trim(),children:i}),n&&H.jsx(Ia,W(W({},d),{},{children:H.jsx("span",{className:"".concat(s,"-icon ").concat(u).trim(),children:f})}))]}))}),yOe=ce.createContext({}),_Oe={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(ao,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(),f=!!d.u(u)||u;if(d.p(c)===r){var h=this.quarter()-1;return f?this.month(3*h).startOf(n).startOf("day"):this.month(3*h+2).endOf(n).endOf("day")}return l.bind(this)(c,u)}}})})(_Oe);var ITt=_Oe.exports;const ATt=di(ITt);var qv=function(t){return t==null};br.extend(ATt);var SOe={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 Lae(e){return Object.prototype.toString.call(e)==="[object Object]"}function NTt(e){if(Lae(e)===!1)return!1;var t=e.constructor;if(t===void 0)return!0;var n=t.prototype;return!(Lae(n)===!1||n.hasOwnProperty("isPrototypeOf")===!1)}var gU=function(t){return!!(t!=null&&t._isAMomentObject)},$ae=function(t,n,r){if(!n)return t;if(br.isDayjs(t)||gU(t)){if(n==="number")return t.valueOf();if(n==="string")return t.format(SOe[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},MTt=function e(t,n,r,i,o){var a={};return typeof window>"u"||Gt(t)!=="object"||qv(t)||t instanceof Blob||Array.isArray(t)?t:(Object.keys(t).forEach(function(s){var l=o?[o,s].flat(1):[s],c=Io(r,l)||"text",u="text",d;typeof c=="string"?u=c:c&&(u=c.valueType,d=c.dateFormat);var f=t[s];if(!(qv(f)&&i)){if(NTt(f)&&!Array.isArray(f)&&!br.isDayjs(f)&&!gU(f)){a[s]=e(f,n,r,i,l);return}if(Array.isArray(f)){a[s]=f.map(function(h,m){return br.isDayjs(h)||gU(h)?$ae(h,d||n,u):e(h,n,r,i,[s,"".concat(m)].flat(1))});return}a[s]=$ae(f,d||n,u)}}),a)},Fae=function(t,n){return typeof n=="function"?n(br(t)):br(t).format(n)},kTt=function(t,n){var r=Array.isArray(t)?t:[],i=Ie(r,2),o=i[0],a=i[1],s,l;Array.isArray(n)?(s=n[0],l=n[1]):Gt(n)==="object"&&n.type==="mask"?(s=n.format,l=n.format):(s=n,l=n);var c=o?Fae(o,s):"",u=a?Fae(a,l):"",d=c&&u?"".concat(c," ~ ").concat(u):"";return d};function Yv(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 EOe(e){if(A2(bOe(),"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=W({},e);return Object.keys(t).forEach(function(r){n[r]!==void 0&&(n[t[r]]=n[r],delete n[r])}),n}var gd=function(t){var n=p.useRef(null);return n.current=t,p.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(nt(o)))},[])};function PTt(e,t){var n=gd(e),r=p.useRef(),i=p.useCallback(function(){r.current&&(clearTimeout(r.current),r.current=null)},[]),o=p.useCallback(lo(pr().mark(function a(){var s,l,c,u=arguments;return pr().wrap(function(f){for(;;)switch(f.prev=f.next){case 0:for(s=u.length,l=new Array(s),c=0;c<s;c++)l[c]=u[c];{f.next=3;break}case 3:return i(),f.abrupt("return",new Promise(function(h){r.current=setTimeout(lo(pr().mark(function m(){return pr().wrap(function(v){for(;;)switch(v.prev=v.next){case 0:return v.t0=h,v.next=3,n.apply(void 0,l);case 3:return v.t1=v.sent,(0,v.t0)(v.t1),v.abrupt("return");case 6:case"end":return v.stop()}},m)})),t)}));case 5:case"end":return f.stop()}},a)})),[n,i,t]);return p.useEffect(function(){return i},[i]),{run:o,cancel:i}}var DTt=function(t){var n=p.useRef(t);return n.current=t,n};function LTt(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:100,n=arguments.length>2?arguments[2]:void 0,r=p.useState(e),i=Ie(r,2),o=i[0],a=i[1],s=DTt(e);return p.useEffect(function(){var l=setTimeout(function(){a(s.current)},t);return function(){return clearTimeout(l)}},n?[t].concat(nt(n)):void 0),o}function hv(e,t,n,r){if(e===t)return!0;if(e&&t&&Gt(e)==="object"&&Gt(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(!hv(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=Sf(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=Sf(e.entries()),u;try{for(c.s();!(u=c.n()).done;)if(o=u.value,!hv(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=Sf(e.entries()),f;try{for(d.s();!(f=d.n()).done;)if(o=f.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 h=a[o];if(!(n!=null&&n.includes(h))&&!(h==="_owner"&&e.$$typeof)&&!hv(e[h],t[h],n,r))return!1}return!0}return e!==e&&t!==t}var $Tt=function(t,n,r){return hv(t,n,r)};function COe(e,t){var n=p.useRef();return $Tt(e,n.current,t)||(n.current=e),n.current}function FTt(e,t,n){p.useEffect(e,COe(t||[],n))}function hl(e,t){return ce.useMemo(e,COe(t))}var BTt=typeof process<"u"&&process.versions!=null&&process.versions.node!=null,VY=function(){return typeof process<"u",typeof window<"u"&&typeof window.document<"u"&&typeof window.matchMedia<"u"&&!BTt};function jTt(e,t){var n=typeof e.pageName=="string"?e.title:t;p.useEffect(function(){VY()&&n&&(document.title=n)},[e.title,n])}var I$=0;function HTt(e){var t=p.useRef(null),n=p.useState(function(){return e.proFieldKey?e.proFieldKey.toString():(I$+=1,I$.toString())}),r=Ie(n,1),i=r[0],o=p.useRef(i),a=function(){var u=lo(pr().mark(function d(){var f,h,m,g;return pr().wrap(function(y){for(;;)switch(y.prev=y.next){case 0:return(f=t.current)===null||f===void 0||f.abort(),m=new AbortController,t.current=m,y.next=5,Promise.race([(h=e.request)===null||h===void 0?void 0:h.call(e,e.params,e),new Promise(function(b,_){var E;(E=t.current)===null||E===void 0||(E=E.signal)===null||E===void 0||E.addEventListener("abort",function(){_(new Error("aborted"))})})]);case 5:return g=y.sent,y.abrupt("return",g);case 7:case"end":return y.stop()}},d)}));return function(){return u.apply(this,arguments)}}();p.useEffect(function(){return function(){I$+=1}},[]);var s=UY([o.current,e.params],a,{revalidateOnFocus:!1,shouldRetryOnError:!1,revalidateOnReconnect:!1}),l=s.data,c=s.error;return[l||c]}var UTt=function(t){var n=p.useRef();return p.useEffect(function(){n.current=t}),n.current},zTt=function(t){var n=!1;return(typeof t=="string"&&t.startsWith("date")&&!t.endsWith("Range")||t==="select"||t==="time")&&(n=!0),n};function VTt(e){return/\w.(png|jpg|jpeg|svg|webp|gif|bmp)$/i.test(e)}var GY=function(t){if(!t||!t.startsWith("http"))return!1;try{var n=new URL(t);return!!n}catch{return!1}},wOe=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)&&(Gt(t[a])==="object"&&Gt(r[s][a])==="object"&&t[a]!==void 0&&t[a]!==null&&!Array.isArray(t[a])&&!Array.isArray(r[s][a])?t[a]=W(W({},t[a]),r[s][a]):t[a]=r[s][a]);return t},Bae=0,jae=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:21;if(typeof window>"u"||!window.crypto)return(Bae+=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},uk=function(){return typeof window>"u"?jae():window.crypto&&window.crypto.randomUUID&&typeof crypto.randomUUID=="function"?crypto.randomUUID():jae()};br.extend(WCe);var Hae=function(t){return!!(t!=null&&t._isAMomentObject)},M2=function e(t,n){return qv(t)||br.isDayjs(t)||Hae(t)?Hae(t)?br(t):t:Array.isArray(t)?t.map(function(r){return e(r,n)}):typeof t=="number"?br(t):br(t,n)},GTt=["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 WTt(e){var t={};return GTt.forEach(function(n){e[n]!==void 0&&(t[n]=e[n])}),t}var qTt="valueType request plain renderFormItem render text formItemProps valueEnum",YTt="fieldProps isDefaultDom groupProps contentRender submitterProps submitter";function TOe(e){var t="".concat(qTt," ").concat(YTt).split(/[\s\n]+/),n={};return Object.keys(e||{}).forEach(function(r){t.includes(r)||(n[r]=e[r])}),n}function KTt(e){var t=Object.prototype.toString.call(e).match(/^\[object (.*)\]$/)[1].toLowerCase();return t==="string"&&Gt(e)==="object"?"object":e===null?"null":e===void 0?"undefined":t}var QTt=function(t){var n=t.color,r=t.children;return H.jsx(ml,{color:n,text:r})},Ah=function(t){return KTt(t)==="map"?t:new Map(Object.entries(t||{}))},XTt={Success:function(t){var n=t.children;return H.jsx(ml,{status:"success",text:n})},Error:function(t){var n=t.children;return H.jsx(ml,{status:"error",text:n})},Default:function(t){var n=t.children;return H.jsx(ml,{status:"default",text:n})},Processing:function(t){var n=t.children;return H.jsx(ml,{status:"processing",text:n})},Warning:function(t){var n=t.children;return H.jsx(ml,{status:"warning",text:n})},success:function(t){var n=t.children;return H.jsx(ml,{status:"success",text:n})},error:function(t){var n=t.children;return H.jsx(ml,{status:"error",text:n})},default:function(t){var n=t.children;return H.jsx(ml,{status:"default",text:n})},processing:function(t){var n=t.children;return H.jsx(ml,{status:"processing",text:n})},warning:function(t){var n=t.children;return H.jsx(ml,{status:"warning",text:n})}},FS=function e(t,n,r){if(Array.isArray(t))return H.jsx(Xi,{split:",",size:2,wrap:!0,children:t.map(function(c,u){return e(c,n,u)})},r);var i=Ah(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 H.jsx(ce.Fragment,{children:(t==null?void 0:t.label)||t},r);var a=o.status,s=o.color,l=XTt[a||"Init"];return l?H.jsx(l,{children:o.text},r):s?H.jsx(QTt,{color:s,children:o.text},r):H.jsx(ce.Fragment,{children:o.text||o},r)},vU={exports:{}};(function(e,t){const{hasOwnProperty:n}=Object.prototype,r=y();r.configure=y,r.stringify=r,r.default=r,t.stringify=r,t.configure=y,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,_){if(b.length>200||_)return b.sort(_);for(let E=1;E<b.length;E++){const w=b[E];let S=E;for(;S!==0&&b[S-1]>w;)b[S]=b[S-1],S--;b[S]=w}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,_,E){b.length<E&&(E=b.length);const w=_===","?"":" ";let S=`"0":${w}${b[0]}`;for(let C=1;C<E;C++)S+=`${_}"${C}":${w}${b[C]}`;return S}function u(b){if(n.call(b,"circularValue")){const _=b.circularValue;if(typeof _=="string")return`"${_}"`;if(_==null)return _;if(_===Error||_===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 _;if(n.call(b,"deterministic")&&(_=b.deterministic,typeof _!="boolean"&&typeof _!="function"))throw new TypeError('The "deterministic" argument must be of type boolean or comparator function');return _===void 0?!0:_}function f(b,_){let E;if(n.call(b,_)&&(E=b[_],typeof E!="boolean"))throw new TypeError(`The "${_}" argument must be of type boolean`);return E===void 0?!0:E}function h(b,_){let E;if(n.call(b,_)){if(E=b[_],typeof E!="number")throw new TypeError(`The "${_}" argument must be of type number`);if(!Number.isInteger(E))throw new TypeError(`The "${_}" argument must be an integer`);if(E<1)throw new RangeError(`The "${_}" argument must be >= 1`)}return E===void 0?1/0:E}function m(b){return b===1?"1 item":`${b} items`}function g(b){const _=new Set;for(const E of b)(typeof E=="string"||typeof E=="number")&&_.add(String(E));return _}function v(b){if(n.call(b,"strict")){const _=b.strict;if(typeof _!="boolean")throw new TypeError('The "strict" argument must be of type boolean');if(_)return E=>{let w=`Object can not safely be stringified. Received type ${typeof E}`;throw typeof E!="function"&&(w+=` (${E.toString()})`),new Error(w)}}}function y(b){b={...b};const _=v(b);_&&(b.bigint===void 0&&(b.bigint=!1),"circularValue"in b||(b.circularValue=Error));const E=u(b),w=f(b,"bigint"),S=d(b),C=typeof S=="function"?S:void 0,T=h(b,"maximumDepth"),x=h(b,"maximumBreadth");function O(k,B,A,P,z,L){let V=B[k];switch(typeof V=="object"&&V!==null&&typeof V.toJSON=="function"&&(V=V.toJSON(k)),V=P.call(B,k,V),typeof V){case"string":return o(V);case"object":{if(V===null)return"null";if(A.indexOf(V)!==-1)return E;let j="",U=",";const J=L;if(Array.isArray(V)){if(V.length===0)return"[]";if(T<A.length+1)return'"[Array]"';A.push(V),z!==""&&(L+=z,j+=`
${L}`,U=`,
${L}`);const ge=Math.min(V.length,x);let fe=0;for(;fe<ge-1;fe++){const le=O(String(fe),V,A,P,z,L);j+=le!==void 0?le:"null",j+=U}const ue=O(String(fe),V,A,P,z,L);if(j+=ue!==void 0?ue:"null",V.length-1>x){const le=V.length-x-1;j+=`${U}"... ${m(le)} not stringified"`}return z!==""&&(j+=`
${J}`),A.pop(),`[${j}]`}let te=Object.keys(V);const ae=te.length;if(ae===0)return"{}";if(T<A.length+1)return'"[Object]"';let K="",Q="";z!==""&&(L+=z,U=`,
${L}`,K=" ");const oe=Math.min(ae,x);S&&!l(V)&&(te=a(te,C)),A.push(V);for(let ge=0;ge<oe;ge++){const fe=te[ge],ue=O(fe,V,A,P,z,L);ue!==void 0&&(j+=`${Q}${o(fe)}:${K}${ue}`,Q=U)}if(ae>x){const ge=ae-x;j+=`${Q}"...":${K}"${m(ge)} not stringified"`,Q=U}return z!==""&&Q.length>1&&(j=`
${L}${j}
${J}`),A.pop(),`{${j}}`}case"number":return isFinite(V)?String(V):_?_(V):"null";case"boolean":return V===!0?"true":"false";case"undefined":return;case"bigint":if(w)return String(V);default:return _?_(V):void 0}}function N(k,B,A,P,z,L){switch(typeof B=="object"&&B!==null&&typeof B.toJSON=="function"&&(B=B.toJSON(k)),typeof B){case"string":return o(B);case"object":{if(B===null)return"null";if(A.indexOf(B)!==-1)return E;const V=L;let j="",U=",";if(Array.isArray(B)){if(B.length===0)return"[]";if(T<A.length+1)return'"[Array]"';A.push(B),z!==""&&(L+=z,j+=`
${L}`,U=`,
${L}`);const ae=Math.min(B.length,x);let K=0;for(;K<ae-1;K++){const oe=N(String(K),B[K],A,P,z,L);j+=oe!==void 0?oe:"null",j+=U}const Q=N(String(K),B[K],A,P,z,L);if(j+=Q!==void 0?Q:"null",B.length-1>x){const oe=B.length-x-1;j+=`${U}"... ${m(oe)} not stringified"`}return z!==""&&(j+=`
${V}`),A.pop(),`[${j}]`}A.push(B);let J="";z!==""&&(L+=z,U=`,
${L}`,J=" ");let te="";for(const ae of P){const K=N(ae,B[ae],A,P,z,L);K!==void 0&&(j+=`${te}${o(ae)}:${J}${K}`,te=U)}return z!==""&&te.length>1&&(j=`
${L}${j}
${V}`),A.pop(),`{${j}}`}case"number":return isFinite(B)?String(B):_?_(B):"null";case"boolean":return B===!0?"true":"false";case"undefined":return;case"bigint":if(w)return String(B);default:return _?_(B):void 0}}function I(k,B,A,P,z){switch(typeof B){case"string":return o(B);case"object":{if(B===null)return"null";if(typeof B.toJSON=="function"){if(B=B.toJSON(k),typeof B!="object")return I(k,B,A,P,z);if(B===null)return"null"}if(A.indexOf(B)!==-1)return E;const L=z;if(Array.isArray(B)){if(B.length===0)return"[]";if(T<A.length+1)return'"[Array]"';A.push(B),z+=P;let K=`
${z}`;const Q=`,
${z}`,oe=Math.min(B.length,x);let ge=0;for(;ge<oe-1;ge++){const ue=I(String(ge),B[ge],A,P,z);K+=ue!==void 0?ue:"null",K+=Q}const fe=I(String(ge),B[ge],A,P,z);if(K+=fe!==void 0?fe:"null",B.length-1>x){const ue=B.length-x-1;K+=`${Q}"... ${m(ue)} not stringified"`}return K+=`
${L}`,A.pop(),`[${K}]`}let V=Object.keys(B);const j=V.length;if(j===0)return"{}";if(T<A.length+1)return'"[Object]"';z+=P;const U=`,
${z}`;let J="",te="",ae=Math.min(j,x);l(B)&&(J+=c(B,U,x),V=V.slice(B.length),ae-=B.length,te=U),S&&(V=a(V,C)),A.push(B);for(let K=0;K<ae;K++){const Q=V[K],oe=I(Q,B[Q],A,P,z);oe!==void 0&&(J+=`${te}${o(Q)}: ${oe}`,te=U)}if(j>x){const K=j-x;J+=`${te}"...": "${m(K)} not stringified"`,te=U}return te!==""&&(J=`
${z}${J}
${L}`),A.pop(),`{${J}}`}case"number":return isFinite(B)?String(B):_?_(B):"null";case"boolean":return B===!0?"true":"false";case"undefined":return;case"bigint":if(w)return String(B);default:return _?_(B):void 0}}function M(k,B,A){switch(typeof B){case"string":return o(B);case"object":{if(B===null)return"null";if(typeof B.toJSON=="function"){if(B=B.toJSON(k),typeof B!="object")return M(k,B,A);if(B===null)return"null"}if(A.indexOf(B)!==-1)return E;let P="";const z=B.length!==void 0;if(z&&Array.isArray(B)){if(B.length===0)return"[]";if(T<A.length+1)return'"[Array]"';A.push(B);const J=Math.min(B.length,x);let te=0;for(;te<J-1;te++){const K=M(String(te),B[te],A);P+=K!==void 0?K:"null",P+=","}const ae=M(String(te),B[te],A);if(P+=ae!==void 0?ae:"null",B.length-1>x){const K=B.length-x-1;P+=`,"... ${m(K)} not stringified"`}return A.pop(),`[${P}]`}let L=Object.keys(B);const V=L.length;if(V===0)return"{}";if(T<A.length+1)return'"[Object]"';let j="",U=Math.min(V,x);z&&l(B)&&(P+=c(B,",",x),L=L.slice(B.length),U-=B.length,j=","),S&&(L=a(L,C)),A.push(B);for(let J=0;J<U;J++){const te=L[J],ae=M(te,B[te],A);ae!==void 0&&(P+=`${j}${o(te)}:${ae}`,j=",")}if(V>x){const J=V-x;P+=`${j}"...":"${m(J)} not stringified"`}return A.pop(),`{${P}}`}case"number":return isFinite(B)?String(B):_?_(B):"null";case"boolean":return B===!0?"true":"false";case"undefined":return;case"bigint":if(w)return String(B);default:return _?_(B):void 0}}function F(k,B,A){if(arguments.length>1){let P="";if(typeof A=="number"?P=" ".repeat(Math.min(A,10)):typeof A=="string"&&(P=A.slice(0,10)),B!=null){if(typeof B=="function")return O("",{"":k},[],B,P,"");if(Array.isArray(B))return N("",k,[],g(B),P,"")}if(P.length!==0)return I("",k,[],P,"")}return M("",k,[])}return F}})(vU,vU.exports);var ZTt=vU.exports;const JTt=di(ZTt),ext=JTt.configure;var Uae=ext({bigint:!0,circularValue:"Magic circle!",deterministic:!1,maximumDepth:4});function txt(){this.__data__=[],this.size=0}function xD(e,t){return e===t||e!==e&&t!==t}function OD(e,t){for(var n=e.length;n--;)if(xD(e[n][0],t))return n;return-1}var nxt=Array.prototype,rxt=nxt.splice;function ixt(e){var t=this.__data__,n=OD(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():rxt.call(t,n,1),--this.size,!0}function oxt(e){var t=this.__data__,n=OD(t,e);return n<0?void 0:t[n][1]}function axt(e){return OD(this.__data__,e)>-1}function sxt(e,t){var n=this.__data__,r=OD(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function Nh(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])}}Nh.prototype.clear=txt;Nh.prototype.delete=ixt;Nh.prototype.get=oxt;Nh.prototype.has=axt;Nh.prototype.set=sxt;function lxt(){this.__data__=new Nh,this.size=0}function cxt(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}function uxt(e){return this.__data__.get(e)}function dxt(e){return this.__data__.has(e)}var xOe=typeof global=="object"&&global&&global.Object===Object&&global,fxt=typeof self=="object"&&self&&self.Object===Object&&self,BS=xOe||fxt||Function("return this")(),dk=BS.Symbol,OOe=Object.prototype,pxt=OOe.hasOwnProperty,hxt=OOe.toString,WE=dk?dk.toStringTag:void 0;function mxt(e){var t=pxt.call(e,WE),n=e[WE];try{e[WE]=void 0;var r=!0}catch{}var i=hxt.call(e);return r&&(t?e[WE]=n:delete e[WE]),i}var gxt=Object.prototype,vxt=gxt.toString;function bxt(e){return vxt.call(e)}var yxt="[object Null]",_xt="[object Undefined]",zae=dk?dk.toStringTag:void 0;function RD(e){return e==null?e===void 0?_xt:yxt:zae&&zae in Object(e)?mxt(e):bxt(e)}function O0(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Sxt="[object AsyncFunction]",Ext="[object Function]",Cxt="[object GeneratorFunction]",wxt="[object Proxy]";function WY(e){if(!O0(e))return!1;var t=RD(e);return t==Ext||t==Cxt||t==Sxt||t==wxt}var A$=BS["__core-js_shared__"],Vae=function(){var e=/[^.]+$/.exec(A$&&A$.keys&&A$.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function Txt(e){return!!Vae&&Vae in e}var xxt=Function.prototype,Oxt=xxt.toString;function Rxt(e){if(e!=null){try{return Oxt.call(e)}catch{}try{return e+""}catch{}}return""}var Ixt=/[\\^$.*+?()[\]{}|]/g,Axt=/^\[object .+?Constructor\]$/,Nxt=Function.prototype,Mxt=Object.prototype,kxt=Nxt.toString,Pxt=Mxt.hasOwnProperty,Dxt=RegExp("^"+kxt.call(Pxt).replace(Ixt,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Lxt(e){if(!O0(e)||Txt(e))return!1;var t=WY(e)?Dxt:Axt;return t.test(Rxt(e))}function $xt(e,t){return e==null?void 0:e[t]}function qY(e,t){var n=$xt(e,t);return Lxt(n)?n:void 0}var ROe=qY(BS,"Map"),VT=qY(Object,"create");function Fxt(){this.__data__=VT?VT(null):{},this.size=0}function Bxt(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var jxt="__lodash_hash_undefined__",Hxt=Object.prototype,Uxt=Hxt.hasOwnProperty;function zxt(e){var t=this.__data__;if(VT){var n=t[e];return n===jxt?void 0:n}return Uxt.call(t,e)?t[e]:void 0}var Vxt=Object.prototype,Gxt=Vxt.hasOwnProperty;function Wxt(e){var t=this.__data__;return VT?t[e]!==void 0:Gxt.call(t,e)}var qxt="__lodash_hash_undefined__";function Yxt(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=VT&&t===void 0?qxt:t,this}function Kv(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])}}Kv.prototype.clear=Fxt;Kv.prototype.delete=Bxt;Kv.prototype.get=zxt;Kv.prototype.has=Wxt;Kv.prototype.set=Yxt;function Kxt(){this.size=0,this.__data__={hash:new Kv,map:new(ROe||Nh),string:new Kv}}function Qxt(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function ID(e,t){var n=e.__data__;return Qxt(t)?n[typeof t=="string"?"string":"hash"]:n.map}function Xxt(e){var t=ID(this,e).delete(e);return this.size-=t?1:0,t}function Zxt(e){return ID(this,e).get(e)}function Jxt(e){return ID(this,e).has(e)}function e2t(e,t){var n=ID(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}function jS(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])}}jS.prototype.clear=Kxt;jS.prototype.delete=Xxt;jS.prototype.get=Zxt;jS.prototype.has=Jxt;jS.prototype.set=e2t;var t2t=200;function n2t(e,t){var n=this.__data__;if(n instanceof Nh){var r=n.__data__;if(!ROe||r.length<t2t-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new jS(r)}return n.set(e,t),this.size=n.size,this}function HS(e){var t=this.__data__=new Nh(e);this.size=t.size}HS.prototype.clear=lxt;HS.prototype.delete=cxt;HS.prototype.get=uxt;HS.prototype.has=dxt;HS.prototype.set=n2t;var fk=function(){try{var e=qY(Object,"defineProperty");return e({},"",{}),e}catch{}}();function YY(e,t,n){t=="__proto__"&&fk?fk(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function bU(e,t,n){(n!==void 0&&!xD(e[t],n)||n===void 0&&!(t in e))&&YY(e,t,n)}function r2t(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 i2t=r2t(),IOe=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Gae=IOe&&typeof module=="object"&&module&&!module.nodeType&&module,o2t=Gae&&Gae.exports===IOe,Wae=o2t?BS.Buffer:void 0,qae=Wae?Wae.allocUnsafe:void 0;function a2t(e,t){if(t)return e.slice();var n=e.length,r=qae?qae(n):new e.constructor(n);return e.copy(r),r}var Yae=BS.Uint8Array;function s2t(e){var t=new e.constructor(e.byteLength);return new Yae(t).set(new Yae(e)),t}function l2t(e,t){var n=t?s2t(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function c2t(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}var Kae=Object.create,u2t=function(){function e(){}return function(t){if(!O0(t))return{};if(Kae)return Kae(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();function d2t(e,t){return function(n){return e(t(n))}}var AOe=d2t(Object.getPrototypeOf,Object),f2t=Object.prototype;function NOe(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||f2t;return e===n}function p2t(e){return typeof e.constructor=="function"&&!NOe(e)?u2t(AOe(e)):{}}function k2(e){return e!=null&&typeof e=="object"}var h2t="[object Arguments]";function Qae(e){return k2(e)&&RD(e)==h2t}var MOe=Object.prototype,m2t=MOe.hasOwnProperty,g2t=MOe.propertyIsEnumerable,yU=Qae(function(){return arguments}())?Qae:function(e){return k2(e)&&m2t.call(e,"callee")&&!g2t.call(e,"callee")},_U=Array.isArray,v2t=9007199254740991;function kOe(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=v2t}function KY(e){return e!=null&&kOe(e.length)&&!WY(e)}function b2t(e){return k2(e)&&KY(e)}function y2t(){return!1}var POe=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Xae=POe&&typeof module=="object"&&module&&!module.nodeType&&module,_2t=Xae&&Xae.exports===POe,Zae=_2t?BS.Buffer:void 0,S2t=Zae?Zae.isBuffer:void 0,DOe=S2t||y2t,E2t="[object Object]",C2t=Function.prototype,w2t=Object.prototype,LOe=C2t.toString,T2t=w2t.hasOwnProperty,x2t=LOe.call(Object);function O2t(e){if(!k2(e)||RD(e)!=E2t)return!1;var t=AOe(e);if(t===null)return!0;var n=T2t.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&LOe.call(n)==x2t}var R2t="[object Arguments]",I2t="[object Array]",A2t="[object Boolean]",N2t="[object Date]",M2t="[object Error]",k2t="[object Function]",P2t="[object Map]",D2t="[object Number]",L2t="[object Object]",$2t="[object RegExp]",F2t="[object Set]",B2t="[object String]",j2t="[object WeakMap]",H2t="[object ArrayBuffer]",U2t="[object DataView]",z2t="[object Float32Array]",V2t="[object Float64Array]",G2t="[object Int8Array]",W2t="[object Int16Array]",q2t="[object Int32Array]",Y2t="[object Uint8Array]",K2t="[object Uint8ClampedArray]",Q2t="[object Uint16Array]",X2t="[object Uint32Array]",ro={};ro[z2t]=ro[V2t]=ro[G2t]=ro[W2t]=ro[q2t]=ro[Y2t]=ro[K2t]=ro[Q2t]=ro[X2t]=!0;ro[R2t]=ro[I2t]=ro[H2t]=ro[A2t]=ro[U2t]=ro[N2t]=ro[M2t]=ro[k2t]=ro[P2t]=ro[D2t]=ro[L2t]=ro[$2t]=ro[F2t]=ro[B2t]=ro[j2t]=!1;function Z2t(e){return k2(e)&&kOe(e.length)&&!!ro[RD(e)]}function J2t(e){return function(t){return e(t)}}var $Oe=typeof exports=="object"&&exports&&!exports.nodeType&&exports,gw=$Oe&&typeof module=="object"&&module&&!module.nodeType&&module,eOt=gw&&gw.exports===$Oe,N$=eOt&&xOe.process,Jae=function(){try{var e=gw&&gw.require&&gw.require("util").types;return e||N$&&N$.binding&&N$.binding("util")}catch{}}(),ese=Jae&&Jae.isTypedArray,FOe=ese?J2t(ese):Z2t;function SU(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}var tOt=Object.prototype,nOt=tOt.hasOwnProperty;function rOt(e,t,n){var r=e[t];(!(nOt.call(e,t)&&xD(r,n))||n===void 0&&!(t in e))&&YY(e,t,n)}function iOt(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?YY(n,s,l):rOt(n,s,l)}return n}function oOt(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}var aOt=9007199254740991,sOt=/^(?:0|[1-9]\d*)$/;function BOe(e,t){var n=typeof e;return t=t??aOt,!!t&&(n=="number"||n!="symbol"&&sOt.test(e))&&e>-1&&e%1==0&&e<t}var lOt=Object.prototype,cOt=lOt.hasOwnProperty;function uOt(e,t){var n=_U(e),r=!n&&yU(e),i=!n&&!r&&DOe(e),o=!n&&!r&&!i&&FOe(e),a=n||r||i||o,s=a?oOt(e.length,String):[],l=s.length;for(var c in e)(t||cOt.call(e,c))&&!(a&&(c=="length"||i&&(c=="offset"||c=="parent")||o&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||BOe(c,l)))&&s.push(c);return s}function dOt(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var fOt=Object.prototype,pOt=fOt.hasOwnProperty;function hOt(e){if(!O0(e))return dOt(e);var t=NOe(e),n=[];for(var r in e)r=="constructor"&&(t||!pOt.call(e,r))||n.push(r);return n}function jOe(e){return KY(e)?uOt(e,!0):hOt(e)}function mOt(e){return iOt(e,jOe(e))}function gOt(e,t,n,r,i,o,a){var s=SU(e,n),l=SU(t,n),c=a.get(l);if(c){bU(e,n,c);return}var u=o?o(s,l,n+"",e,t,a):void 0,d=u===void 0;if(d){var f=_U(l),h=!f&&DOe(l),m=!f&&!h&&FOe(l);u=l,f||h||m?_U(s)?u=s:b2t(s)?u=c2t(s):h?(d=!1,u=a2t(l,!0)):m?(d=!1,u=l2t(l,!0)):u=[]:O2t(l)||yU(l)?(u=s,yU(s)?u=mOt(s):(!O0(s)||WY(s))&&(u=p2t(l))):d=!1}d&&(a.set(l,u),i(u,l,r,o,a),a.delete(l)),bU(e,n,u)}function HOe(e,t,n,r,i){e!==t&&i2t(t,function(o,a){if(i||(i=new HS),O0(o))gOt(e,t,a,n,HOe,r,i);else{var s=r?r(SU(e,a),o,a+"",e,t,i):void 0;s===void 0&&(s=o),bU(e,a,s)}},jOe)}function UOe(e){return e}function vOt(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 tse=Math.max;function bOt(e,t,n){return t=tse(t===void 0?e.length-1:t,0),function(){for(var r=arguments,i=-1,o=tse(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),vOt(e,this,s)}}function yOt(e){return function(){return e}}var _Ot=fk?function(e,t){return fk(e,"toString",{configurable:!0,enumerable:!1,value:yOt(t),writable:!0})}:UOe,SOt=800,EOt=16,COt=Date.now;function wOt(e){var t=0,n=0;return function(){var r=COt(),i=EOt-(r-n);if(n=r,i>0){if(++t>=SOt)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var TOt=wOt(_Ot);function xOt(e,t){return TOt(bOt(e,t,UOe),e+"")}function OOt(e,t,n){if(!O0(n))return!1;var r=typeof t;return(r=="number"?KY(n)&&BOe(t,n.length):r=="string"&&t in n)?xD(n[t],e):!1}function ROt(e){return xOt(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&&OOt(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 IOt=ROt(function(e,t,n){HOe(e,t,n)});function AOt(e){return Gt(e)!=="object"?!1:e===null?!0:!(ce.isValidElement(e)||e.constructor===RegExp||e instanceof Map||e instanceof Set||e instanceof HTMLElement||e instanceof Blob||e instanceof File||Array.isArray(e))}var NOt=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 qv(c)||(s[l]=c),s},{});if(Object.keys(i).length<1||typeof window>"u"||Gt(t)!=="object"||qv(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(f){var h=function _(E,w){return Array.isArray(E)&&E.forEach(function(S,C){if(S){var T=w==null?void 0:w[C];typeof S=="function"&&(w[C]=S(w,f,l)),Gt(S)==="object"&&!Array.isArray(S)&&Object.keys(S).forEach(function(x){var O=T==null?void 0:T[x];if(typeof S[x]=="function"&&O){var N=S[x](T[x],f,l);T[x]=Gt(N)==="object"?N[x]:N}else Gt(S[x])==="object"&&Array.isArray(S[x])&&O&&_(S[x],O)}),Gt(S)==="object"&&Array.isArray(S)&&T&&_(S,T)}}),f},m=c?[c,f].flat(1):[f].flat(1),g=l[f],v=Io(i,m),y=function(){var E,w,S=!1;if(typeof v=="function"){w=v==null?void 0:v(g,f,l);var C=Gt(w);C!=="object"&&C!=="undefined"?(E=f,S=!0):E=w}else E=h(v,g);if(Array.isArray(E)){d=Zo(d,E,g);return}Gt(E)==="object"&&!Array.isArray(o)?o=IOt(o,E):Gt(E)==="object"&&Array.isArray(o)?d=W(W({},d),E):(E!==null||E!==void 0)&&(d=Zo(d,[E],S?w:g))};if(v&&typeof v=="function"&&y(),!(typeof window>"u")){if(AOt(g)){var b=s(g,m);if(Object.keys(b).length<1)return;d=Zo(d,[f],b);return}y()}}),r?d:l)};return o=Array.isArray(t)&&Array.isArray(o)?nt(a(t)):wOe({},a(t),o),o},Cc=function(t){return t===void 0?{}:A2(sh,"5.13.0")<=0?{bordered:t}:{variant:t?void 0:"borderless"}};function lb(e){var t=typeof window>"u",n=p.useState(function(){return t?!1:window.matchMedia(e).matches}),r=Ie(n,2),i=r[0],o=r[1];return p.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 um={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)"}},MOt=function(){var t=void 0;if(typeof window>"u")return t;var n=Object.keys(um).find(function(r){var i=um[r].matchMedia;return!!window.matchMedia(i).matches});return t=n,t},kOt=function(){var t=lb(um.md.matchMedia),n=lb(um.lg.matchMedia),r=lb(um.xxl.matchMedia),i=lb(um.xl.matchMedia),o=lb(um.sm.matchMedia),a=lb(um.xs.matchMedia),s=p.useState(MOt()),l=Ie(s,2),c=l[0],u=l[1];return p.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},vw=function(){return vw=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},vw.apply(this,arguments)};function POt(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 DOt(e,t){var n;e===void 0&&(e={}),t===void 0&&(t={disabled:!1});var r=p.useState(),i=r[1],o=typeof window<"u"&&((n=window==null?void 0:window.location)===null||n===void 0?void 0:n.search),a=p.useMemo(function(){return t.disabled?{}:new URLSearchParams(o||{})},[t.disabled,o]),s=p.useMemo(function(){if(t.disabled)return{};if(typeof window>"u"||!window.URL)return{};var u=[];a.forEach(function(f,h){u.push({key:h,value:f})}),u=u.reduce(function(f,h){return(f[h.key]=f[h.key]||[]).push(h),f},{}),u=Object.keys(u).map(function(f){var h=u[f];return h.length===1?[f,h[0].value]:[f,h.map(function(m){var g=m.value;return g})]});var d=vw({},e);return u.forEach(function(f){var h=f[0],m=f[1];d[h]=$Ot(h,m,{},e)}),d},[t.disabled,e,a]);function l(u){if(!(typeof window>"u"||!window.URL)){var d=POt(u);window.location.search!==d.search&&window.history.replaceState({},"",d.toString()),a.toString()!==d.searchParams.toString()&&i({})}}p.useEffect(function(){t.disabled||typeof window>"u"||!window.URL||l(vw(vw({},e),s))},[t.disabled,s]);var c=function(u){l(u)};return p.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 LOt={true:!0,false:!1};function $Ot(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"?LOt[o]:Array.isArray(i)?i.find(function(a){return a==o})||r[e]:o}var US=ce.createContext({}),FOt=["children","Wrapper"],BOt=["children","Wrapper"],zOe=p.createContext({grid:!1,colProps:void 0,rowProps:void 0}),jOt=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=Dt(a,FOt);return n?H.jsx(_2,W(W(W({gutter:8},r),c),{},{children:s})):l?H.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=Dt(a,BOt),u=p.useMemo(function(){var d=W(W({},i),c);return typeof d.span>"u"&&typeof d.xs>"u"&&(d.xs=24),d},[c]);return n?H.jsx(Uv,W(W({},u),{},{children:s})):l?H.jsx(l,{children:s}):s}}},QY=function(t){var n=p.useMemo(function(){return Gt(t)==="object"?t:{grid:t}},[t]),r=p.useContext(zOe),i=r.grid,o=r.colProps;return p.useMemo(function(){return jOt({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])])},HOt=["valueType","customLightMode","lightFilterLabelFormatter","valuePropName","ignoreWidth","defaultProps"],UOt=["label","tooltip","placeholder","width","bordered","messageVariables","ignoreFormItem","transform","convertValue","readonly","allowClear","colSize","getFormItemProps","getFieldProps","filedConfig","cacheForSwr","proFieldProps"],nse={xs:104,s:216,sm:216,m:328,md:328,l:440,lg:440,xl:552},zOt=["switch","radioButton","radio","rate"];function AD(e,t){e.displayName="ProFormComponent";var n=function(o){var a=W(W({},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,f=a.ignoreWidth,h=a.defaultProps,m=Dt(a,HOt),g=W(W({},h),o),v=g.label,y=g.tooltip,b=g.placeholder,_=g.width,E=g.bordered,w=g.messageVariables,S=g.ignoreFormItem,C=g.transform,T=g.convertValue,x=g.readonly,O=g.allowClear;g.colSize;var N=g.getFormItemProps,I=g.getFieldProps;g.filedConfig;var M=g.cacheForSwr,F=g.proFieldProps,k=Dt(g,UOt),B=s||k.valueType,A=p.useMemo(function(){return f||zOt.includes(B)},[f,B]),P=p.useState(),z=Ie(P,2),L=z[1],V=p.useState(),j=Ie(V,2),U=j[0],J=j[1],te=ce.useContext(US),ae=hl(function(){return{formItemProps:N==null?void 0:N(),fieldProps:I==null?void 0:I()}},[I,N,k.dependenciesValues,U]),K=hl(function(){var _e=W(W(W(W({},S?eu({value:k.value}):{}),{},{placeholder:b,disabled:o.disabled},te.fieldProps),ae.fieldProps),k.fieldProps);return _e.style=eu(_e==null?void 0:_e.style),_e},[S,k.value,k.fieldProps,b,o.disabled,te.fieldProps,ae.fieldProps]),Q=WTt(k),oe=hl(function(){return W(W(W(W({},te.formItemProps),Q),ae.formItemProps),k.formItemProps)},[ae.formItemProps,te.formItemProps,k.formItemProps,Q]),ge=hl(function(){return W(W({messageVariables:w},m),oe)},[m,oe,w]);yT(!k.defaultValue,"请不要在 Form 中使用 defaultXXX。如果需要默认值请使用 initialValues 和 initialValue。");var fe=p.useContext(hg),ue=fe.prefixName,le=hl(function(){var _e,Oe=ge==null?void 0:ge.name;Array.isArray(Oe)&&(Oe=Oe.join("_")),Array.isArray(ue)&&Oe&&(Oe="".concat(ue.join("."),".").concat(Oe));var De=Oe&&"form-".concat((_e=te.formKey)!==null&&_e!==void 0?_e:"","-field-").concat(Oe);return De},[Uae(ge==null?void 0:ge.name),ue,te.formKey]),ve=gd(function(){var _e;N||I?J([]):k.renderFormItem&&L([]);for(var Oe=arguments.length,De=new Array(Oe),Y=0;Y<Oe;Y++)De[Y]=arguments[Y];K==null||(_e=K.onChange)===null||_e===void 0||_e.call.apply(_e,[K].concat(De))}),ne=hl(function(){var _e=W({width:_&&!nse[_]?_:te.grid?"100%":void 0},K==null?void 0:K.style);return A&&Reflect.deleteProperty(_e,"width"),eu(_e)},[Uae(K==null?void 0:K.style),te.grid,A,_]),pe=hl(function(){var _e=_&&nse[_];return Te(K==null?void 0:K.className,ee({"pro-field":_e},"pro-field-".concat(_),_e&&!A))||void 0},[_,K==null?void 0:K.className,A]),be=hl(function(){return eu(W(W({},te.proFieldProps),{},{mode:k==null?void 0:k.mode,readonly:x,params:k.params,proFieldKey:le,cacheForSwr:M},F))},[te.proFieldProps,k==null?void 0:k.mode,k.params,x,le,M,F]),Re=hl(function(){return W(W({onChange:ve,allowClear:O},K),{},{style:ne,className:pe})},[O,pe,ve,K,ne]),Se=hl(function(){return H.jsx(e,W(W({},k),{},{fieldProps:Re,proFieldProps:be,ref:o==null?void 0:o.fieldRef}),o.proFormFieldKey||o.name)},[be,Re,k]),Ce=hl(function(){var _e,Oe,De,Y;return H.jsx(ZRe,W(W({label:v&&(F==null?void 0:F.light)!==!0?v:void 0,tooltip:(F==null?void 0:F.light)!==!0&&y,valuePropName:d},ge),{},{ignoreFormItem:S,transform:C,dataFormat:K==null?void 0:K.format,valueType:B,messageVariables:W({label:v||""},ge==null?void 0:ge.messageVariables),convertValue:T,lightProps:eu(W(W(W({},K),{},{valueType:B,bordered:E,allowClear:(Oe=Se==null||(De=Se.props)===null||De===void 0?void 0:De.allowClear)!==null&&Oe!==void 0?Oe:O,light:F==null?void 0:F.light,label:v,customLightMode:l,labelFormatter:c,valuePropName:d,footerRender:Se==null||(Y=Se.props)===null||Y===void 0?void 0:Y.footerRender},k.lightProps),ge.lightProps)),children:Se}),o.proFormFieldKey||((_e=ge.name)===null||_e===void 0?void 0:_e.toString()))},[v,F==null?void 0:F.light,y,d,o.proFormFieldKey,ge,S,C,K,B,T,E,Se,O,l,c,k.lightProps]),ye=QY(k),he=ye.ColWrapper;return H.jsx(he,{children:Ce})},r=function(o){var a=o.dependencies;return a?H.jsx(XRe,{name:a,originDependencies:o==null?void 0:o.originDependencies,children:function(l){return H.jsx(n,W({dependenciesValues:l,dependencies:a},o))}}):H.jsx(n,W({dependencies:a},o))};return r}var VOt=["rules","name","phoneName","fieldProps","onTiming","captchaTextRender","captchaProps"],GOt=ce.forwardRef(function(e,t){var n=li.useFormInstance(),r=p.useState(e.countDown||60),i=Ie(r,2),o=i[0],a=i[1],s=p.useState(!1),l=Ie(s,2),c=l[0],u=l[1],d=p.useState(),f=Ie(d,2),h=f[0],m=f[1];e.rules,e.name;var g=e.phoneName,v=e.fieldProps,y=e.onTiming,b=e.captchaTextRender,_=b===void 0?function(C,T){return C?"".concat(T," 秒后重新获取"):"获取验证码"}:b,E=e.captchaProps,w=Dt(e,VOt),S=function(){var C=lo(pr().mark(function T(x){return pr().wrap(function(N){for(;;)switch(N.prev=N.next){case 0:return N.prev=0,m(!0),N.next=4,w.onGetCaptcha(x);case 4:m(!1),u(!0),N.next=13;break;case 8:N.prev=8,N.t0=N.catch(0),u(!1),m(!1),console.log(N.t0);case 13:case"end":return N.stop()}},T,null,[[0,8]])}));return function(x){return C.apply(this,arguments)}}();return p.useImperativeHandle(t,function(){return{startTiming:function(){return u(!0)},endTiming:function(){return u(!1)}}}),p.useEffect(function(){var C=0,T=e.countDown;return c&&(C=window.setInterval(function(){a(function(x){return x<=1?(u(!1),clearInterval(C),T||60):x-1})},1e3)),function(){return clearInterval(C)}},[c]),p.useEffect(function(){y&&y(o)},[o,y]),H.jsxs("div",{style:W(W({},v==null?void 0:v.style),{},{display:"flex",alignItems:"center"}),ref:t,children:[H.jsx(Ki,W(W({},v),{},{style:W({flex:1,transition:"width .3s",marginRight:8},v==null?void 0:v.style)})),H.jsx($n,W(W({style:{display:"block"},disabled:c,loading:h},E),{},{onClick:lo(pr().mark(function C(){var T;return pr().wrap(function(O){for(;;)switch(O.prev=O.next){case 0:if(O.prev=0,!g){O.next=9;break}return O.next=4,n.validateFields([g].flat(1));case 4:return T=n.getFieldValue([g].flat(1)),O.next=7,S(T);case 7:O.next=11;break;case 9:return O.next=11,S("");case 11:O.next=16;break;case 13:O.prev=13,O.t0=O.catch(0),console.log(O.t0);case 16:case"end":return O.stop()}},C,null,[[0,13]])})),children:_(c,o)}))]})}),P2=AD(GOt),WOt=["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"],rse=function(t,n){return Gt(n)!=="object"?t[n]||n:t[n==null?void 0:n.value]||n.label},qOt=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,f=t.className,h=t.bordered,m=t.options,g=t.onSearch,v=t.allowClear,y=t.labelInValue,b=t.fieldNames,_=t.lightLabel,E=t.labelTrigger,w=t.optionFilterProp,S=t.optionLabelProp,C=S===void 0?"":S,T=t.valueMaxLength,x=T===void 0?41:T,O=t.fetchDataOnSearch,N=O===void 0?!1:O,I=t.fetchData,M=Dt(t,WOt),F=t.placeholder,k=F===void 0?r:F,B=b||{},A=B.label,P=A===void 0?"label":A,z=B.value,L=z===void 0?"value":z,V=p.useContext(Ln.ConfigContext),j=V.getPrefixCls,U=j("pro-field-select-light-select"),J=p.useState(!1),te=Ie(J,2),ae=te[0],K=te[1],Q=p.useState(""),oe=Ie(Q,2),ge=oe[0],fe=oe[1],ue=zi("LightSelect",function(Re){return ee({},".".concat(U),ee(ee({},"".concat(Re.antCls,"-select"),{position:"absolute",width:"153px",height:"28px",visibility:"hidden","&-selector":{height:28}}),"&.".concat(U,"-searchable"),ee({},"".concat(Re.antCls,"-select"),{width:"200px","&-selector":{height:28}})))}),le=ue.wrapSSR,ve=ue.hashId,ne=p.useMemo(function(){var Re={};return m==null||m.forEach(function(Se){var Ce=Se[C]||Se[P],ye=Se[L];Re[ye]=Ce||ye}),Re},[P,m,L,C]),pe=p.useMemo(function(){return Reflect.has(M,"open")?M==null?void 0:M.open:ae},[ae,M]),be=Array.isArray(a)?a.map(function(Re){return rse(ne,Re)}):rse(ne,a);return le(H.jsxs("div",{className:Te(U,ve,ee({},"".concat(U,"-searchable"),c),"".concat(U,"-container-").concat(M.placement||"bottomLeft"),f),style:d,onClick:function(Se){var Ce;if(!u){var ye=_==null||(Ce=_.current)===null||Ce===void 0||(Ce=Ce.labelRef)===null||Ce===void 0||(Ce=Ce.current)===null||Ce===void 0?void 0:Ce.contains(Se.target);ye&&K(!ae)}},children:[H.jsx(vu,W(W(W({},M),{},{allowClear:v,value:a,mode:s,labelInValue:y,size:l,disabled:u,onChange:function(Se,Ce){o==null||o(Se,Ce),s!=="multiple"&&K(!1)}},Cc(h)),{},{showSearch:c,onSearch:c?function(Re){N&&I&&I(Re),g==null||g(Re)}:void 0,style:d,dropdownRender:function(Se){return H.jsxs("div",{ref:n,children:[c&&H.jsx("div",{style:{margin:"4px 8px"},children:H.jsx(Ki,{value:ge,allowClear:!!v,onChange:function(ye){fe(ye.target.value),N&&I&&I(ye.target.value),g==null||g(ye.target.value)},onKeyDown:function(ye){if(ye.key==="Backspace"){ye.stopPropagation();return}(ye.key==="ArrowUp"||ye.key==="ArrowDown")&&ye.preventDefault()},style:{width:"100%"},prefix:H.jsx(D5,{})})}),Se]})},open:pe,onDropdownVisibleChange:function(Se){var Ce;Se||fe(""),E||K(Se),M==null||(Ce=M.onDropdownVisibleChange)===null||Ce===void 0||Ce.call(M,Se)},prefixCls:i,options:g||!ge?m:m==null?void 0:m.filter(function(Re){var Se,Ce;return w?Mo(Re[w]).join("").toLowerCase().includes(ge):((Se=String(Re[P]))===null||Se===void 0||(Se=Se.toLowerCase())===null||Se===void 0?void 0:Se.includes(ge==null?void 0:ge.toLowerCase()))||((Ce=Re[L])===null||Ce===void 0||(Ce=Ce.toString())===null||Ce===void 0||(Ce=Ce.toLowerCase())===null||Ce===void 0?void 0:Ce.includes(ge==null?void 0:ge.toLowerCase()))})})),H.jsx(Ih,{ellipsis:!0,label:r,placeholder:k,disabled:u,bordered:h,allowClear:!!v,value:be||(a==null?void 0:a.label)||a,onClear:function(){o==null||o(void 0,void 0)},ref:_,valueMaxLength:x})]}))};const YOt=ce.forwardRef(qOt);var KOt=["optionItemRender","mode","onSearch","onFocus","onChange","autoClearSearchValue","searchOnFocus","resetAfterSelect","fetchDataOnSearch","optionFilterProp","optionLabelProp","className","disabled","options","fetchData","resetData","prefixCls","onClear","searchValue","showSearch","fieldNames","defaultSearchValue","preserveOriginalLabel"],QOt=["className","optionType"],XOt=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,f=t.resetAfterSelect,h=f===void 0?!1:f,m=t.fetchDataOnSearch,g=m===void 0?!0:m,v=t.optionFilterProp,y=v===void 0?"label":v,b=t.optionLabelProp,_=b===void 0?"label":b,E=t.className,w=t.disabled,S=t.options,C=t.fetchData,T=t.resetData,x=t.prefixCls,O=t.onClear,N=t.searchValue,I=t.showSearch,M=t.fieldNames,F=t.defaultSearchValue,k=t.preserveOriginalLabel,B=k===void 0?!1:k,A=Dt(t,KOt),P=M||{},z=P.label,L=z===void 0?"label":z,V=P.value,j=V===void 0?"value":V,U=P.options,J=U===void 0?"options":U,te=p.useState(N??F),ae=Ie(te,2),K=ae[0],Q=ae[1],oe=p.useRef();p.useImperativeHandle(n,function(){return oe.current}),p.useEffect(function(){if(A.autoFocus){var pe;oe==null||(pe=oe.current)===null||pe===void 0||pe.focus()}},[A.autoFocus]),p.useEffect(function(){Q(N)},[N]);var ge=p.useContext(Ln.ConfigContext),fe=ge.getPrefixCls,ue=fe("pro-filed-search-select",x),le=Te(ue,E,ee({},"".concat(ue,"-disabled"),w)),ve=function(be,Re){return Array.isArray(be)&&Array.isArray(Re)&&be.length>0?be.map(function(Se,Ce){var ye=Re==null?void 0:Re[Ce],he=(ye==null?void 0:ye["data-item"])||{};return W(W(W({},he),Se),{},{label:B?he.label:Se.label})}):[]},ne=function pe(be){return be.map(function(Re,Se){var Ce,ye=Re,he=ye.className,_e=ye.optionType,Oe=Dt(ye,QOt),De=Re[L],Y=Re[j],D=(Ce=Re[J])!==null&&Ce!==void 0?Ce:[];return _e==="optGroup"||Re.options?W(W({label:De},Oe),{},{data_title:De,title:De,key:Y??"".concat(De==null?void 0:De.toString(),"-").concat(Se,"-").concat(uk()),children:pe(D)}):W(W({title:De},Oe),{},{data_title:De,value:Y??Se,key:Y??"".concat(De==null?void 0:De.toString(),"-").concat(Se,"-").concat(uk()),"data-item":Re,className:"".concat(ue,"-option ").concat(he||"").trim(),label:(r==null?void 0:r(Re))||De})})};return H.jsx(vu,W(W({ref:oe,className:le,allowClear:!0,autoClearSearchValue:c,disabled:w,mode:i,showSearch:I,searchValue:K,optionFilterProp:y,optionLabelProp:_,onClear:function(){O==null||O(),C(void 0),I&&Q(void 0)}},A),{},{filterOption:A.filterOption==!1?!1:function(pe,be){var Re,Se,Ce;return A.filterOption&&typeof A.filterOption=="function"?A.filterOption(pe,W(W({},be),{},{label:be==null?void 0:be.data_title})):!!(be!=null&&(Re=be.data_title)!==null&&Re!==void 0&&Re.toString().toLowerCase().includes(pe.toLowerCase())||be!=null&&(Se=be.label)!==null&&Se!==void 0&&Se.toString().toLowerCase().includes(pe.toLowerCase())||be!=null&&(Ce=be.value)!==null&&Ce!==void 0&&Ce.toString().toLowerCase().includes(pe.toLowerCase()))},onSearch:I?function(pe){g&&C(pe),o==null||o(pe),Q(pe)}:void 0,onChange:function(be,Re){I&&c&&(C(void 0),o==null||o(""),Q(void 0));for(var Se=arguments.length,Ce=new Array(Se>2?Se-2:0),ye=2;ye<Se;ye++)Ce[ye-2]=arguments[ye];if(!t.labelInValue){s==null||s.apply(void 0,[be,Re].concat(Ce));return}if(i!=="multiple"&&!Array.isArray(Re)){var he=Re&&Re["data-item"];if(!be||!he){var _e=be&&W(W({},be),{},{label:B?he==null?void 0:he.label:be.label});s==null||s.apply(void 0,[_e,Re].concat(Ce))}else s==null||s.apply(void 0,[W(W(W({},be),he),{},{label:B?he.label:be.label}),Re].concat(Ce));return}var Oe=ve(be,Re);s==null||s.apply(void 0,[Oe,Re].concat(Ce)),h&&T()},onFocus:function(be){d&&C(K),a==null||a(be)},options:ne(S||[])}))};const ZOt=ce.forwardRef(XOt);var JOt=["value","text"],eRt=["mode","valueEnum","render","renderFormItem","request","fieldProps","plain","children","light","proFieldKey","params","label","bordered","id","lightLabel","labelTrigger"],tRt=function(t){for(var n=t.label,r=t.words,i=p.useContext(Ln.ConfigContext),o=i.getPrefixCls,a=o("pro-select-item-option-content-light"),s=o("pro-select-item-option-content"),l=zi("Highlight",function(v){return ee(ee({},".".concat(a),{color:v.colorPrimary}),".".concat(s),{flex:"auto",overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"})}),c=l.wrapSSR,u=new RegExp(r.map(function(v){return v.replace(/[-[\]/{}()*+?.\\^$|]/g,"\\$&")}).join("|"),"gi"),d=n,f=[];d.length;){var h=u.exec(d);if(!h){f.push(d);break}var m=h.index,g=h[0].length+m;f.push(d.slice(0,m),ce.createElement("span",{className:a},d.slice(m,g))),d=d.slice(g)}return c(ce.createElement.apply(ce,["div",{title:n,className:s}].concat(f)))};function EU(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(nt(e.children||[]),[e.options||[]]).find(function(o){return EU(o,t)});if(i)return!0}return!1}var nRt=function(t){var n=[],r=Ah(t);return r.forEach(function(i,o){var a=r.get(o)||r.get("".concat(o));if(a){if(Gt(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},zS=function(t){var n,r,i,o,a=t.cacheForSwr,s=t.fieldProps,l=p.useState(t.defaultKeyWords),c=Ie(l,2),u=c[0],d=c[1],f=p.useState(function(){return t.proFieldKey?t.proFieldKey.toString():t.request?uk():"no-fetch"}),h=Ie(f,1),m=h[0],g=p.useRef(m),v=gd(function(I){return nRt(Ah(I)).map(function(M){var F=M.value,k=M.text,B=Dt(M,JOt);return W({label:k,value:F,key:F},B)})}),y=hl(function(){if(s){var I=(s==null?void 0:s.options)||(s==null?void 0:s.treeData);if(I){var M=s.fieldNames||{},F=M.children,k=M.label,B=M.value,A=function P(z,L){if(z!=null&&z.length)for(var V=z.length,j=0;j<V;){var U=z[j++];(U[F]||U[k]||U[B])&&(U[L]=U[L==="children"?F:L==="label"?k:B],P(U[F],L))}};return F&&A(I,"children"),k&&A(I,"label"),B&&A(I,"value"),I}}},[s]),b=Pn(function(){return t.valueEnum?v(t.valueEnum):[]},{value:y}),_=Ie(b,2),E=_[0],w=_[1];FTt(function(){var I,M;!t.valueEnum||(I=t.fieldProps)!==null&&I!==void 0&&I.options||(M=t.fieldProps)!==null&&M!==void 0&&M.treeData||w(v(t.valueEnum))},[t.valueEnum]);var S=LTt([g.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]),C=UY(function(){return t.request?S:null},function(I){var M=Ie(I,3),F=M[1],k=M[2];return t.request(W(W({},F),{},{keyWords:k}),t)},{revalidateIfStale:!a,revalidateOnReconnect:a,shouldRetryOnError:!1,revalidateOnFocus:!1}),T=C.data,x=C.mutate,O=C.isValidating,N=p.useMemo(function(){var I,M,F=E==null?void 0:E.map(function(k){if(typeof k=="string")return{label:k,value:k};if(k.children||k.options){var B=[].concat(nt(k.children||[]),nt(k.options||[])).filter(function(A){return EU(A,u)});return W(W({},k),{},{children:B,options:B})}return k});return((I=t.fieldProps)===null||I===void 0?void 0:I.filterOption)===!0||((M=t.fieldProps)===null||M===void 0?void 0:M.filterOption)===void 0?F==null?void 0:F.filter(function(k){return k?u?EU(k,u):!0:!1}):F},[E,u,(o=t.fieldProps)===null||o===void 0?void 0:o.filterOption]);return[O,t.request?T:N,function(I){d(I)},function(){d(void 0),x([],!1)}]},rRt=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,f=t.id,h=t.lightLabel,m=t.labelTrigger,g=Dt(t,eRt),v=p.useRef(),y=ko(),b=p.useRef(""),_=l.fieldNames;p.useEffect(function(){b.current=l==null?void 0:l.searchValue},[l==null?void 0:l.searchValue]);var E=zS(t),w=Ie(E,4),S=w[0],C=w[1],T=w[2],x=w[3],O=(Ln==null||(r=Ln.useConfig)===null||r===void 0?void 0:r.call(Ln))||{componentSize:"middle"},N=O.componentSize;p.useImperativeHandle(n,function(){return W(W({},v.current||{}),{},{fetchData:function(z){return T(z)}})},[T]);var I=p.useMemo(function(){if(i==="read"){var P=_||{},z=P.label,L=z===void 0?"label":z,V=P.value,j=V===void 0?"value":V,U=P.options,J=U===void 0?"options":U,te=new Map,ae=function K(Q){if(!(Q!=null&&Q.length))return te;for(var oe=Q.length,ge=0;ge<oe;){var fe=Q[ge++];te.set(fe[j],fe[L]),K(fe[J])}return te};return ae(C)}},[_,i,C]);if(i==="read"){var M=H.jsx(H.Fragment,{children:FS(g.text,Ah(o||I))});if(a){var F;return(F=a(M,W({mode:i},l),M))!==null&&F!==void 0?F:null}return M}if(i==="edit"||i==="update"){var k=function(){return c?H.jsx(YOt,W(W({},Cc(d)),{},{id:f,loading:S,ref:v,allowClear:!0,size:N,options:C,label:u,placeholder:y.getMessage("tableForm.selectPlaceholder","请选择"),lightLabel:h,labelTrigger:m,fetchData:T},l)):H.jsx(ZOt,W(W(W({className:g.className,style:W({minWidth:100},g.style)},Cc(d)),{},{id:f,loading:S,ref:v,allowClear:!0,defaultSearchValue:t.defaultKeyWords,notFoundContent:S?H.jsx(Ac,{size:"small"}):l==null?void 0:l.notFoundContent,fetchData:function(L){b.current=L??"",T(L)},resetData:x,preserveOriginalLabel:!0,optionItemRender:function(L){return typeof L.label=="string"&&b.current?H.jsx(tRt,{label:L.label,words:[b.current]}):L.label},placeholder:y.getMessage("tableForm.selectPlaceholder","请选择"),label:u},l),{},{options:C}),"SearchSelect")},B=k();if(s){var A;return(A=s(g.text,W(W({mode:i},l),{},{options:C,loading:S}),B))!==null&&A!==void 0?A:null}return B}return null};const iRt=ce.forwardRef(rRt);var oRt=["radioType","renderFormItem","mode","render","label","light"],aRt=function(t,n){var r;t.radioType;var i=t.renderFormItem,o=t.mode,a=t.render,s=t.label,l=t.light,c=Dt(t,oRt),u=p.useContext(Ln.ConfigContext),d=u.getPrefixCls,f=d("pro-field-cascader"),h=zS(c),m=Ie(h,3),g=m[0],v=m[1],y=m[2],b=ko(),_=p.useRef(),E=p.useState(!1),w=Ie(E,2),S=w[0],C=w[1];p.useImperativeHandle(n,function(){return W(W({},_.current||{}),{},{fetchData:function(L){return y(L)}})},[y]);var T=p.useMemo(function(){var z;if(o==="read"){var L=((z=c.fieldProps)===null||z===void 0?void 0:z.fieldNames)||{},V=L.value,j=V===void 0?"value":V,U=L.label,J=U===void 0?"label":U,te=L.children,ae=te===void 0?"children":te,K=new Map,Q=function oe(ge){if(!(ge!=null&&ge.length))return K;for(var fe=ge.length,ue=0;ue<fe;){var le=ge[ue++];K.set(le[j],le[J]),oe(le[ae])}return K};return Q(v)}},[o,v,(r=c.fieldProps)===null||r===void 0?void 0:r.fieldNames]);if(o==="read"){var x=H.jsx(H.Fragment,{children:FS(c.text,Ah(c.valueEnum||T))});if(a){var O;return(O=a(c.text,W({mode:o},c.fieldProps),x))!==null&&O!==void 0?O:null}return x}if(o==="edit"){var N,I,M=H.jsx(OS,W(W(W({},Cc(!l)),{},{ref:_,open:S,suffixIcon:g?H.jsx(xd,{}):void 0,placeholder:b.getMessage("tableForm.selectPlaceholder","请选择"),allowClear:((N=c.fieldProps)===null||N===void 0?void 0:N.allowClear)!==!1},c.fieldProps),{},{onDropdownVisibleChange:function(L){var V,j;c==null||(V=c.fieldProps)===null||V===void 0||(j=V.onDropdownVisibleChange)===null||j===void 0||j.call(V,L),C(L)},className:Te((I=c.fieldProps)===null||I===void 0?void 0:I.className,f),options:v}));if(i){var F;M=(F=i(c.text,W(W({mode:o},c.fieldProps),{},{options:v,loading:g}),M))!==null&&F!==void 0?F:null}if(l){var k=c.fieldProps,B=k.disabled,A=k.value,P=!!A&&(A==null?void 0:A.length)!==0;return H.jsx(Ih,{label:s,disabled:B,bordered:c.bordered,value:P||S?M:null,style:P?{paddingInlineEnd:0}:void 0,allowClear:!1,downIcon:P||S?!1:void 0,onClick:function(){var L,V;C(!0),c==null||(L=c.fieldProps)===null||L===void 0||(V=L.onDropdownVisibleChange)===null||V===void 0||V.call(L,!0)}})}return M}return null};const sRt=ce.forwardRef(aRt);var lRt=["layout","renderFormItem","mode","render"],cRt=["fieldNames"],uRt=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=Dt(t,lRt),d=p.useContext(Ln.ConfigContext),f=d.getPrefixCls,h=f("pro-field-checkbox"),m=(r=li.Item)===null||r===void 0||(i=r.useStatus)===null||i===void 0?void 0:i.call(r),g=zS(u),v=Ie(g,3),y=v[0],b=v[1],_=v[2],E=zi("Checkbox",function(P){return ee({},".".concat(h),{"&-error":{span:{color:P.colorError}},"&-warning":{span:{color:P.colorWarning}},"&-vertical":ee(ee(ee({},"&".concat(P.antCls,"-checkbox-group"),{display:"inline-block"}),"".concat(P.antCls,"-checkbox-wrapper+").concat(P.antCls,"-checkbox-wrapper"),{"margin-inline-start":"0 !important"}),"".concat(P.antCls,"-checkbox-group-item"),{display:"flex",marginInlineEnd:0})})}),w=E.wrapSSR,S=E.hashId,C=HA==null?void 0:HA(),T=C.token,x=p.useRef();if(p.useImperativeHandle(n,function(){return W(W({},x.current||{}),{},{fetchData:function(z){return _(z)}})},[_]),y)return H.jsx(Ac,{size:"small"});if(l==="read"){var O=b!=null&&b.length?b==null?void 0:b.reduce(function(P,z){var L;return W(W({},P),{},ee({},(L=z.value)!==null&&L!==void 0?L:"",z.label))},{}):void 0,N=FS(u.text,Ah(u.valueEnum||O));if(c){var I;return(I=c(u.text,W({mode:l},u.fieldProps),H.jsx(H.Fragment,{children:N})))!==null&&I!==void 0?I:null}return H.jsx("div",{style:{display:"flex",flexWrap:"wrap",alignItems:"center",gap:T.marginSM},children:N})}if(l==="edit"){var M,F=u.fieldProps||{};F.fieldNames;var k=Dt(F,cRt),B=w(H.jsx(uh.Group,W(W({},k),{},{className:Te((M=u.fieldProps)===null||M===void 0?void 0:M.className,S,"".concat(h,"-").concat(a),ee(ee({},"".concat(h,"-error"),(m==null?void 0:m.status)==="error"),"".concat(h,"-warning"),(m==null?void 0:m.status)==="warning")),options:b})));if(s){var A;return(A=s(u.text,W(W({mode:l},u.fieldProps),{},{options:b,loading:y}),B))!==null&&A!==void 0?A:null}return B}return null};const dRt=ce.forwardRef(uRt);var fRt=function(t,n){if(typeof t!="string")return t;try{if(n==="json")return JSON.stringify(JSON.parse(t),null,2)}catch{}return t},pRt=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=fRt(r,s),f=Ff.useToken(),h=f.token;if(i==="read"){var m=H.jsx("pre",W(W({ref:n},u),{},{style:W({padding:16,overflow:"auto",fontSize:"85%",lineHeight:1.45,color:h.colorTextSecondary,fontFamily:h.fontFamilyCode,backgroundColor:"rgba(150, 150, 150, 0.1)",borderRadius:3,width:"min-content"},u.style),children:H.jsx("code",{children:d})}));return o?o(d,W(W({mode:i},u),{},{ref:n}),m):m}if(i==="edit"||i==="update"){u.value=d;var g=H.jsx(Ki.TextArea,W(W({rows:5},u),{},{ref:n}));if(c&&(g=H.jsx(Ki,W(W({},u),{},{ref:n}))),l){var v;return(v=l(d,W(W({mode:i},u),{},{ref:n}),g))!==null&&v!==void 0?v:null}return g}return null};const ise=ce.forwardRef(pRt);var tu={},D2={},hRt=typeof ao=="object"&&ao&&ao.Object===Object&&ao,VOe=hRt,mRt=VOe,gRt=typeof self=="object"&&self&&self.Object===Object&&self,vRt=mRt||gRt||Function("return this")(),Ud=vRt,bRt=Ud,yRt=bRt.Symbol,L2=yRt,ose=L2,GOe=Object.prototype,_Rt=GOe.hasOwnProperty,SRt=GOe.toString,qE=ose?ose.toStringTag:void 0;function ERt(e){var t=_Rt.call(e,qE),n=e[qE];try{e[qE]=void 0;var r=!0}catch{}var i=SRt.call(e);return r&&(t?e[qE]=n:delete e[qE]),i}var CRt=ERt,wRt=Object.prototype,TRt=wRt.toString;function xRt(e){return TRt.call(e)}var ORt=xRt,ase=L2,RRt=CRt,IRt=ORt,ARt="[object Null]",NRt="[object Undefined]",sse=ase?ase.toStringTag:void 0;function MRt(e){return e==null?e===void 0?NRt:ARt:sse&&sse in Object(e)?RRt(e):IRt(e)}var R0=MRt,kRt=Array.isArray,Nc=kRt;function PRt(e){return e!=null&&typeof e=="object"}var Qf=PRt,DRt=R0,LRt=Nc,$Rt=Qf,FRt="[object String]";function BRt(e){return typeof e=="string"||!LRt(e)&&$Rt(e)&&DRt(e)==FRt}var jRt=BRt;function HRt(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 URt=HRt,zRt=URt,VRt=zRt(),WOe=VRt;function GRt(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}var WRt=GRt,qRt=R0,YRt=Qf,KRt="[object Arguments]";function QRt(e){return YRt(e)&&qRt(e)==KRt}var XRt=QRt,lse=XRt,ZRt=Qf,qOe=Object.prototype,JRt=qOe.hasOwnProperty,eIt=qOe.propertyIsEnumerable,tIt=lse(function(){return arguments}())?lse:function(e){return ZRt(e)&&JRt.call(e,"callee")&&!eIt.call(e,"callee")},XY=tIt,pk={exports:{}};function nIt(){return!1}var rIt=nIt;pk.exports;(function(e,t){var n=Ud,r=rIt,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})(pk,pk.exports);var ND=pk.exports,iIt=9007199254740991,oIt=/^(?:0|[1-9]\d*)$/;function aIt(e,t){var n=typeof e;return t=t??iIt,!!t&&(n=="number"||n!="symbol"&&oIt.test(e))&&e>-1&&e%1==0&&e<t}var ZY=aIt,sIt=9007199254740991;function lIt(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=sIt}var JY=lIt,cIt=R0,uIt=JY,dIt=Qf,fIt="[object Arguments]",pIt="[object Array]",hIt="[object Boolean]",mIt="[object Date]",gIt="[object Error]",vIt="[object Function]",bIt="[object Map]",yIt="[object Number]",_It="[object Object]",SIt="[object RegExp]",EIt="[object Set]",CIt="[object String]",wIt="[object WeakMap]",TIt="[object ArrayBuffer]",xIt="[object DataView]",OIt="[object Float32Array]",RIt="[object Float64Array]",IIt="[object Int8Array]",AIt="[object Int16Array]",NIt="[object Int32Array]",MIt="[object Uint8Array]",kIt="[object Uint8ClampedArray]",PIt="[object Uint16Array]",DIt="[object Uint32Array]",io={};io[OIt]=io[RIt]=io[IIt]=io[AIt]=io[NIt]=io[MIt]=io[kIt]=io[PIt]=io[DIt]=!0;io[fIt]=io[pIt]=io[TIt]=io[hIt]=io[xIt]=io[mIt]=io[gIt]=io[vIt]=io[bIt]=io[yIt]=io[_It]=io[SIt]=io[EIt]=io[CIt]=io[wIt]=!1;function LIt(e){return dIt(e)&&uIt(e.length)&&!!io[cIt(e)]}var $It=LIt;function FIt(e){return function(t){return e(t)}}var eK=FIt,hk={exports:{}};hk.exports;(function(e,t){var n=VOe,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})(hk,hk.exports);var tK=hk.exports,BIt=$It,jIt=eK,cse=tK,use=cse&&cse.isTypedArray,HIt=use?jIt(use):BIt,nK=HIt,UIt=WRt,zIt=XY,VIt=Nc,GIt=ND,WIt=ZY,qIt=nK,YIt=Object.prototype,KIt=YIt.hasOwnProperty;function QIt(e,t){var n=VIt(e),r=!n&&zIt(e),i=!n&&!r&&GIt(e),o=!n&&!r&&!i&&qIt(e),a=n||r||i||o,s=a?UIt(e.length,String):[],l=s.length;for(var c in e)(t||KIt.call(e,c))&&!(a&&(c=="length"||i&&(c=="offset"||c=="parent")||o&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||WIt(c,l)))&&s.push(c);return s}var YOe=QIt,XIt=Object.prototype;function ZIt(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||XIt;return e===n}var rK=ZIt;function JIt(e,t){return function(n){return e(t(n))}}var KOe=JIt,eAt=KOe,tAt=eAt(Object.keys,Object),nAt=tAt,rAt=rK,iAt=nAt,oAt=Object.prototype,aAt=oAt.hasOwnProperty;function sAt(e){if(!rAt(e))return iAt(e);var t=[];for(var n in Object(e))aAt.call(e,n)&&n!="constructor"&&t.push(n);return t}var lAt=sAt;function cAt(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Ru=cAt,uAt=R0,dAt=Ru,fAt="[object AsyncFunction]",pAt="[object Function]",hAt="[object GeneratorFunction]",mAt="[object Proxy]";function gAt(e){if(!dAt(e))return!1;var t=uAt(e);return t==pAt||t==hAt||t==fAt||t==mAt}var iK=gAt,vAt=iK,bAt=JY;function yAt(e){return e!=null&&bAt(e.length)&&!vAt(e)}var VS=yAt,_At=YOe,SAt=lAt,EAt=VS;function CAt(e){return EAt(e)?_At(e):SAt(e)}var $2=CAt,wAt=WOe,TAt=$2;function xAt(e,t){return e&&wAt(e,t,TAt)}var QOe=xAt;function OAt(e){return e}var MD=OAt,RAt=MD;function IAt(e){return typeof e=="function"?e:RAt}var XOe=IAt,AAt=QOe,NAt=XOe;function MAt(e,t){return e&&AAt(e,NAt(t))}var oK=MAt,kAt=KOe,PAt=kAt(Object.getPrototypeOf,Object),aK=PAt,DAt=R0,LAt=aK,$At=Qf,FAt="[object Object]",BAt=Function.prototype,jAt=Object.prototype,ZOe=BAt.toString,HAt=jAt.hasOwnProperty,UAt=ZOe.call(Object);function zAt(e){if(!$At(e)||DAt(e)!=FAt)return!1;var t=LAt(e);if(t===null)return!0;var n=HAt.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&ZOe.call(n)==UAt}var JOe=zAt;function VAt(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 eRe=VAt;function GAt(){this.__data__=[],this.size=0}var WAt=GAt;function qAt(e,t){return e===t||e!==e&&t!==t}var F2=qAt,YAt=F2;function KAt(e,t){for(var n=e.length;n--;)if(YAt(e[n][0],t))return n;return-1}var kD=KAt,QAt=kD,XAt=Array.prototype,ZAt=XAt.splice;function JAt(e){var t=this.__data__,n=QAt(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():ZAt.call(t,n,1),--this.size,!0}var eNt=JAt,tNt=kD;function nNt(e){var t=this.__data__,n=tNt(t,e);return n<0?void 0:t[n][1]}var rNt=nNt,iNt=kD;function oNt(e){return iNt(this.__data__,e)>-1}var aNt=oNt,sNt=kD;function lNt(e,t){var n=this.__data__,r=sNt(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}var cNt=lNt,uNt=WAt,dNt=eNt,fNt=rNt,pNt=aNt,hNt=cNt;function GS(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])}}GS.prototype.clear=uNt;GS.prototype.delete=dNt;GS.prototype.get=fNt;GS.prototype.has=pNt;GS.prototype.set=hNt;var PD=GS,mNt=PD;function gNt(){this.__data__=new mNt,this.size=0}var vNt=gNt;function bNt(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}var yNt=bNt;function _Nt(e){return this.__data__.get(e)}var SNt=_Nt;function ENt(e){return this.__data__.has(e)}var CNt=ENt,wNt=Ud,TNt=wNt["__core-js_shared__"],xNt=TNt,M$=xNt,dse=function(){var e=/[^.]+$/.exec(M$&&M$.keys&&M$.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function ONt(e){return!!dse&&dse in e}var RNt=ONt,INt=Function.prototype,ANt=INt.toString;function NNt(e){if(e!=null){try{return ANt.call(e)}catch{}try{return e+""}catch{}}return""}var tRe=NNt,MNt=iK,kNt=RNt,PNt=Ru,DNt=tRe,LNt=/[\\^$.*+?()[\]{}|]/g,$Nt=/^\[object .+?Constructor\]$/,FNt=Function.prototype,BNt=Object.prototype,jNt=FNt.toString,HNt=BNt.hasOwnProperty,UNt=RegExp("^"+jNt.call(HNt).replace(LNt,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function zNt(e){if(!PNt(e)||kNt(e))return!1;var t=MNt(e)?UNt:$Nt;return t.test(DNt(e))}var VNt=zNt;function GNt(e,t){return e==null?void 0:e[t]}var WNt=GNt,qNt=VNt,YNt=WNt;function KNt(e,t){var n=YNt(e,t);return qNt(n)?n:void 0}var I0=KNt,QNt=I0,XNt=Ud,ZNt=QNt(XNt,"Map"),sK=ZNt,JNt=I0,eMt=JNt(Object,"create"),DD=eMt,fse=DD;function tMt(){this.__data__=fse?fse(null):{},this.size=0}var nMt=tMt;function rMt(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var iMt=rMt,oMt=DD,aMt="__lodash_hash_undefined__",sMt=Object.prototype,lMt=sMt.hasOwnProperty;function cMt(e){var t=this.__data__;if(oMt){var n=t[e];return n===aMt?void 0:n}return lMt.call(t,e)?t[e]:void 0}var uMt=cMt,dMt=DD,fMt=Object.prototype,pMt=fMt.hasOwnProperty;function hMt(e){var t=this.__data__;return dMt?t[e]!==void 0:pMt.call(t,e)}var mMt=hMt,gMt=DD,vMt="__lodash_hash_undefined__";function bMt(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=gMt&&t===void 0?vMt:t,this}var yMt=bMt,_Mt=nMt,SMt=iMt,EMt=uMt,CMt=mMt,wMt=yMt;function WS(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])}}WS.prototype.clear=_Mt;WS.prototype.delete=SMt;WS.prototype.get=EMt;WS.prototype.has=CMt;WS.prototype.set=wMt;var TMt=WS,pse=TMt,xMt=PD,OMt=sK;function RMt(){this.size=0,this.__data__={hash:new pse,map:new(OMt||xMt),string:new pse}}var IMt=RMt;function AMt(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var NMt=AMt,MMt=NMt;function kMt(e,t){var n=e.__data__;return MMt(t)?n[typeof t=="string"?"string":"hash"]:n.map}var LD=kMt,PMt=LD;function DMt(e){var t=PMt(this,e).delete(e);return this.size-=t?1:0,t}var LMt=DMt,$Mt=LD;function FMt(e){return $Mt(this,e).get(e)}var BMt=FMt,jMt=LD;function HMt(e){return jMt(this,e).has(e)}var UMt=HMt,zMt=LD;function VMt(e,t){var n=zMt(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}var GMt=VMt,WMt=IMt,qMt=LMt,YMt=BMt,KMt=UMt,QMt=GMt;function qS(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])}}qS.prototype.clear=WMt;qS.prototype.delete=qMt;qS.prototype.get=YMt;qS.prototype.has=KMt;qS.prototype.set=QMt;var lK=qS,XMt=PD,ZMt=sK,JMt=lK,ekt=200;function tkt(e,t){var n=this.__data__;if(n instanceof XMt){var r=n.__data__;if(!ZMt||r.length<ekt-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new JMt(r)}return n.set(e,t),this.size=n.size,this}var nkt=tkt,rkt=PD,ikt=vNt,okt=yNt,akt=SNt,skt=CNt,lkt=nkt;function YS(e){var t=this.__data__=new rkt(e);this.size=t.size}YS.prototype.clear=ikt;YS.prototype.delete=okt;YS.prototype.get=akt;YS.prototype.has=skt;YS.prototype.set=lkt;var $D=YS,ckt="__lodash_hash_undefined__";function ukt(e){return this.__data__.set(e,ckt),this}var dkt=ukt;function fkt(e){return this.__data__.has(e)}var pkt=fkt,hkt=lK,mkt=dkt,gkt=pkt;function mk(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new hkt;++t<n;)this.add(e[t])}mk.prototype.add=mk.prototype.push=mkt;mk.prototype.has=gkt;var vkt=mk;function bkt(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 ykt=bkt;function _kt(e,t){return e.has(t)}var Skt=_kt,Ekt=vkt,Ckt=ykt,wkt=Skt,Tkt=1,xkt=2;function Okt(e,t,n,r,i,o){var a=n&Tkt,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,f=!0,h=n&xkt?new Ekt:void 0;for(o.set(e,t),o.set(t,e);++d<s;){var m=e[d],g=t[d];if(r)var v=a?r(g,m,d,t,e,o):r(m,g,d,e,t,o);if(v!==void 0){if(v)continue;f=!1;break}if(h){if(!Ckt(t,function(y,b){if(!wkt(h,b)&&(m===y||i(m,y,n,r,o)))return h.push(b)})){f=!1;break}}else if(!(m===g||i(m,g,n,r,o))){f=!1;break}}return o.delete(e),o.delete(t),f}var nRe=Okt,Rkt=Ud,Ikt=Rkt.Uint8Array,rRe=Ikt;function Akt(e){var t=-1,n=Array(e.size);return e.forEach(function(r,i){n[++t]=[i,r]}),n}var Nkt=Akt;function Mkt(e){var t=-1,n=Array(e.size);return e.forEach(function(r){n[++t]=r}),n}var kkt=Mkt,hse=L2,mse=rRe,Pkt=F2,Dkt=nRe,Lkt=Nkt,$kt=kkt,Fkt=1,Bkt=2,jkt="[object Boolean]",Hkt="[object Date]",Ukt="[object Error]",zkt="[object Map]",Vkt="[object Number]",Gkt="[object RegExp]",Wkt="[object Set]",qkt="[object String]",Ykt="[object Symbol]",Kkt="[object ArrayBuffer]",Qkt="[object DataView]",gse=hse?hse.prototype:void 0,k$=gse?gse.valueOf:void 0;function Xkt(e,t,n,r,i,o,a){switch(n){case Qkt:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case Kkt:return!(e.byteLength!=t.byteLength||!o(new mse(e),new mse(t)));case jkt:case Hkt:case Vkt:return Pkt(+e,+t);case Ukt:return e.name==t.name&&e.message==t.message;case Gkt:case qkt:return e==t+"";case zkt:var s=Lkt;case Wkt:var l=r&Fkt;if(s||(s=$kt),e.size!=t.size&&!l)return!1;var c=a.get(e);if(c)return c==t;r|=Bkt,a.set(e,t);var u=Dkt(s(e),s(t),r,i,o,a);return a.delete(e),u;case Ykt:if(k$)return k$.call(e)==k$.call(t)}return!1}var Zkt=Xkt;function Jkt(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}var iRe=Jkt,e4t=iRe,t4t=Nc;function n4t(e,t,n){var r=t(e);return t4t(e)?r:e4t(r,n(e))}var oRe=n4t;function r4t(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 i4t=r4t;function o4t(){return[]}var aRe=o4t,a4t=i4t,s4t=aRe,l4t=Object.prototype,c4t=l4t.propertyIsEnumerable,vse=Object.getOwnPropertySymbols,u4t=vse?function(e){return e==null?[]:(e=Object(e),a4t(vse(e),function(t){return c4t.call(e,t)}))}:s4t,cK=u4t,d4t=oRe,f4t=cK,p4t=$2;function h4t(e){return d4t(e,p4t,f4t)}var sRe=h4t,bse=sRe,m4t=1,g4t=Object.prototype,v4t=g4t.hasOwnProperty;function b4t(e,t,n,r,i,o){var a=n&m4t,s=bse(e),l=s.length,c=bse(t),u=c.length;if(l!=u&&!a)return!1;for(var d=l;d--;){var f=s[d];if(!(a?f in t:v4t.call(t,f)))return!1}var h=o.get(e),m=o.get(t);if(h&&m)return h==t&&m==e;var g=!0;o.set(e,t),o.set(t,e);for(var v=a;++d<l;){f=s[d];var y=e[f],b=t[f];if(r)var _=a?r(b,y,f,t,e,o):r(y,b,f,e,t,o);if(!(_===void 0?y===b||i(y,b,n,r,o):_)){g=!1;break}v||(v=f=="constructor")}if(g&&!v){var E=e.constructor,w=t.constructor;E!=w&&"constructor"in e&&"constructor"in t&&!(typeof E=="function"&&E instanceof E&&typeof w=="function"&&w instanceof w)&&(g=!1)}return o.delete(e),o.delete(t),g}var y4t=b4t,_4t=I0,S4t=Ud,E4t=_4t(S4t,"DataView"),C4t=E4t,w4t=I0,T4t=Ud,x4t=w4t(T4t,"Promise"),O4t=x4t,R4t=I0,I4t=Ud,A4t=R4t(I4t,"Set"),N4t=A4t,M4t=I0,k4t=Ud,P4t=M4t(k4t,"WeakMap"),D4t=P4t,CU=C4t,wU=sK,TU=O4t,xU=N4t,OU=D4t,lRe=R0,KS=tRe,yse="[object Map]",L4t="[object Object]",_se="[object Promise]",Sse="[object Set]",Ese="[object WeakMap]",Cse="[object DataView]",$4t=KS(CU),F4t=KS(wU),B4t=KS(TU),j4t=KS(xU),H4t=KS(OU),g1=lRe;(CU&&g1(new CU(new ArrayBuffer(1)))!=Cse||wU&&g1(new wU)!=yse||TU&&g1(TU.resolve())!=_se||xU&&g1(new xU)!=Sse||OU&&g1(new OU)!=Ese)&&(g1=function(e){var t=lRe(e),n=t==L4t?e.constructor:void 0,r=n?KS(n):"";if(r)switch(r){case $4t:return Cse;case F4t:return yse;case B4t:return _se;case j4t:return Sse;case H4t:return Ese}return t});var FD=g1,P$=$D,U4t=nRe,z4t=Zkt,V4t=y4t,wse=FD,Tse=Nc,xse=ND,G4t=nK,W4t=1,Ose="[object Arguments]",Rse="[object Array]",VR="[object Object]",q4t=Object.prototype,Ise=q4t.hasOwnProperty;function Y4t(e,t,n,r,i,o){var a=Tse(e),s=Tse(t),l=a?Rse:wse(e),c=s?Rse:wse(t);l=l==Ose?VR:l,c=c==Ose?VR:c;var u=l==VR,d=c==VR,f=l==c;if(f&&xse(e)){if(!xse(t))return!1;a=!0,u=!1}if(f&&!u)return o||(o=new P$),a||G4t(e)?U4t(e,t,n,r,i,o):z4t(e,t,l,n,r,i,o);if(!(n&W4t)){var h=u&&Ise.call(e,"__wrapped__"),m=d&&Ise.call(t,"__wrapped__");if(h||m){var g=h?e.value():e,v=m?t.value():t;return o||(o=new P$),i(g,v,n,r,o)}}return f?(o||(o=new P$),V4t(e,t,n,r,i,o)):!1}var K4t=Y4t,Q4t=K4t,Ase=Qf;function cRe(e,t,n,r,i){return e===t?!0:e==null||t==null||!Ase(e)&&!Ase(t)?e!==e&&t!==t:Q4t(e,t,n,r,cRe,i)}var uRe=cRe,X4t=$D,Z4t=uRe,J4t=1,ePt=2;function tPt(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 X4t;if(r)var f=r(c,u,l,e,t,d);if(!(f===void 0?Z4t(u,c,J4t|ePt,r,d):f))return!1}}return!0}var nPt=tPt,rPt=Ru;function iPt(e){return e===e&&!rPt(e)}var dRe=iPt,oPt=dRe,aPt=$2;function sPt(e){for(var t=aPt(e),n=t.length;n--;){var r=t[n],i=e[r];t[n]=[r,i,oPt(i)]}return t}var lPt=sPt;function cPt(e,t){return function(n){return n==null?!1:n[e]===t&&(t!==void 0||e in Object(n))}}var fRe=cPt,uPt=nPt,dPt=lPt,fPt=fRe;function pPt(e){var t=dPt(e);return t.length==1&&t[0][2]?fPt(t[0][0],t[0][1]):function(n){return n===e||uPt(n,e,t)}}var hPt=pPt,mPt=R0,gPt=Qf,vPt="[object Symbol]";function bPt(e){return typeof e=="symbol"||gPt(e)&&mPt(e)==vPt}var BD=bPt,yPt=Nc,_Pt=BD,SPt=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,EPt=/^\w*$/;function CPt(e,t){if(yPt(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||_Pt(e)?!0:EPt.test(e)||!SPt.test(e)||t!=null&&e in Object(t)}var uK=CPt,pRe=lK,wPt="Expected a function";function dK(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(wPt);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(dK.Cache||pRe),n}dK.Cache=pRe;var TPt=dK,xPt=TPt,OPt=500;function RPt(e){var t=xPt(e,function(r){return n.size===OPt&&n.clear(),r}),n=t.cache;return t}var IPt=RPt,APt=IPt,NPt=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,MPt=/\\(\\)?/g,kPt=APt(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(NPt,function(n,r,i,o){t.push(i?o.replace(MPt,"$1"):r||n)}),t}),PPt=kPt,Nse=L2,DPt=eRe,LPt=Nc,$Pt=BD,FPt=1/0,Mse=Nse?Nse.prototype:void 0,kse=Mse?Mse.toString:void 0;function hRe(e){if(typeof e=="string")return e;if(LPt(e))return DPt(e,hRe)+"";if($Pt(e))return kse?kse.call(e):"";var t=e+"";return t=="0"&&1/e==-FPt?"-0":t}var BPt=hRe,jPt=BPt;function HPt(e){return e==null?"":jPt(e)}var UPt=HPt,zPt=Nc,VPt=uK,GPt=PPt,WPt=UPt;function qPt(e,t){return zPt(e)?e:VPt(e,t)?[e]:GPt(WPt(e))}var mRe=qPt,YPt=BD,KPt=1/0;function QPt(e){if(typeof e=="string"||YPt(e))return e;var t=e+"";return t=="0"&&1/e==-KPt?"-0":t}var jD=QPt,XPt=mRe,ZPt=jD;function JPt(e,t){t=XPt(t,e);for(var n=0,r=t.length;e!=null&&n<r;)e=e[ZPt(t[n++])];return n&&n==r?e:void 0}var gRe=JPt,e5t=gRe;function t5t(e,t,n){var r=e==null?void 0:e5t(e,t);return r===void 0?n:r}var n5t=t5t;function r5t(e,t){return e!=null&&t in Object(e)}var i5t=r5t,o5t=mRe,a5t=XY,s5t=Nc,l5t=ZY,c5t=JY,u5t=jD;function d5t(e,t,n){t=o5t(t,e);for(var r=-1,i=t.length,o=!1;++r<i;){var a=u5t(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&&c5t(i)&&l5t(a,i)&&(s5t(e)||a5t(e)))}var f5t=d5t,p5t=i5t,h5t=f5t;function m5t(e,t){return e!=null&&h5t(e,t,p5t)}var g5t=m5t,v5t=uRe,b5t=n5t,y5t=g5t,_5t=uK,S5t=dRe,E5t=fRe,C5t=jD,w5t=1,T5t=2;function x5t(e,t){return _5t(e)&&S5t(t)?E5t(C5t(e),t):function(n){var r=b5t(n,e);return r===void 0&&r===t?y5t(n,e):v5t(t,r,w5t|T5t)}}var O5t=x5t;function R5t(e){return function(t){return t==null?void 0:t[e]}}var I5t=R5t,A5t=gRe;function N5t(e){return function(t){return A5t(t,e)}}var M5t=N5t,k5t=I5t,P5t=M5t,D5t=uK,L5t=jD;function $5t(e){return D5t(e)?k5t(L5t(e)):P5t(e)}var F5t=$5t,B5t=hPt,j5t=O5t,H5t=MD,U5t=Nc,z5t=F5t;function V5t(e){return typeof e=="function"?e:e==null?H5t:typeof e=="object"?U5t(e)?j5t(e[0],e[1]):B5t(e):z5t(e)}var G5t=V5t,W5t=VS;function q5t(e,t){return function(n,r){if(n==null)return n;if(!W5t(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 Y5t=q5t,K5t=QOe,Q5t=Y5t,X5t=Q5t(K5t),vRe=X5t,Z5t=vRe,J5t=VS;function eDt(e,t){var n=-1,r=J5t(e)?Array(e.length):[];return Z5t(e,function(i,o,a){r[++n]=t(i,o,a)}),r}var tDt=eDt,nDt=eRe,rDt=G5t,iDt=tDt,oDt=Nc;function aDt(e,t){var n=oDt(e)?nDt:iDt;return n(e,rDt(t))}var sDt=aDt;Object.defineProperty(D2,"__esModule",{value:!0});D2.flattenNames=void 0;var lDt=jRt,cDt=HD(lDt),uDt=oK,dDt=HD(uDt),fDt=JOe,pDt=HD(fDt),hDt=sDt,mDt=HD(hDt);function HD(e){return e&&e.__esModule?e:{default:e}}var gDt=D2.flattenNames=function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],n=[];return(0,mDt.default)(t,function(r){Array.isArray(r)?e(r).map(function(i){return n.push(i)}):(0,pDt.default)(r)?(0,dDt.default)(r,function(i,o){i===!0&&n.push(o),n.push(o+"-"+i)}):(0,cDt.default)(r)&&n.push(r)}),n};D2.default=gDt;var B2={};function vDt(e,t){for(var n=-1,r=e==null?0:e.length;++n<r&&t(e[n],n,e)!==!1;);return e}var bRe=vDt,bDt=I0,yDt=function(){try{var e=bDt(Object,"defineProperty");return e({},"",{}),e}catch{}}(),yRe=yDt,Pse=yRe;function _Dt(e,t,n){t=="__proto__"&&Pse?Pse(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}var fK=_Dt,SDt=fK,EDt=F2,CDt=Object.prototype,wDt=CDt.hasOwnProperty;function TDt(e,t,n){var r=e[t];(!(wDt.call(e,t)&&EDt(r,n))||n===void 0&&!(t in e))&&SDt(e,t,n)}var _Re=TDt,xDt=_Re,ODt=fK;function RDt(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?ODt(n,s,l):xDt(n,s,l)}return n}var j2=RDt,IDt=j2,ADt=$2;function NDt(e,t){return e&&IDt(t,ADt(t),e)}var MDt=NDt;function kDt(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var PDt=kDt,DDt=Ru,LDt=rK,$Dt=PDt,FDt=Object.prototype,BDt=FDt.hasOwnProperty;function jDt(e){if(!DDt(e))return $Dt(e);var t=LDt(e),n=[];for(var r in e)r=="constructor"&&(t||!BDt.call(e,r))||n.push(r);return n}var HDt=jDt,UDt=YOe,zDt=HDt,VDt=VS;function GDt(e){return VDt(e)?UDt(e,!0):zDt(e)}var H2=GDt,WDt=j2,qDt=H2;function YDt(e,t){return e&&WDt(t,qDt(t),e)}var KDt=YDt,gk={exports:{}};gk.exports;(function(e,t){var n=Ud,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,f=s?s(d):new c.constructor(d);return c.copy(f),f}e.exports=l})(gk,gk.exports);var SRe=gk.exports;function QDt(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}var ERe=QDt,XDt=j2,ZDt=cK;function JDt(e,t){return XDt(e,ZDt(e),t)}var e3t=JDt,t3t=iRe,n3t=aK,r3t=cK,i3t=aRe,o3t=Object.getOwnPropertySymbols,a3t=o3t?function(e){for(var t=[];e;)t3t(t,r3t(e)),e=n3t(e);return t}:i3t,CRe=a3t,s3t=j2,l3t=CRe;function c3t(e,t){return s3t(e,l3t(e),t)}var u3t=c3t,d3t=oRe,f3t=CRe,p3t=H2;function h3t(e){return d3t(e,p3t,f3t)}var m3t=h3t,g3t=Object.prototype,v3t=g3t.hasOwnProperty;function b3t(e){var t=e.length,n=new e.constructor(t);return t&&typeof e[0]=="string"&&v3t.call(e,"index")&&(n.index=e.index,n.input=e.input),n}var y3t=b3t,Dse=rRe;function _3t(e){var t=new e.constructor(e.byteLength);return new Dse(t).set(new Dse(e)),t}var pK=_3t,S3t=pK;function E3t(e,t){var n=t?S3t(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}var C3t=E3t,w3t=/\w*$/;function T3t(e){var t=new e.constructor(e.source,w3t.exec(e));return t.lastIndex=e.lastIndex,t}var x3t=T3t,Lse=L2,$se=Lse?Lse.prototype:void 0,Fse=$se?$se.valueOf:void 0;function O3t(e){return Fse?Object(Fse.call(e)):{}}var R3t=O3t,I3t=pK;function A3t(e,t){var n=t?I3t(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}var wRe=A3t,N3t=pK,M3t=C3t,k3t=x3t,P3t=R3t,D3t=wRe,L3t="[object Boolean]",$3t="[object Date]",F3t="[object Map]",B3t="[object Number]",j3t="[object RegExp]",H3t="[object Set]",U3t="[object String]",z3t="[object Symbol]",V3t="[object ArrayBuffer]",G3t="[object DataView]",W3t="[object Float32Array]",q3t="[object Float64Array]",Y3t="[object Int8Array]",K3t="[object Int16Array]",Q3t="[object Int32Array]",X3t="[object Uint8Array]",Z3t="[object Uint8ClampedArray]",J3t="[object Uint16Array]",e9t="[object Uint32Array]";function t9t(e,t,n){var r=e.constructor;switch(t){case V3t:return N3t(e);case L3t:case $3t:return new r(+e);case G3t:return M3t(e,n);case W3t:case q3t:case Y3t:case K3t:case Q3t:case X3t:case Z3t:case J3t:case e9t:return D3t(e,n);case F3t:return new r;case B3t:case U3t:return new r(e);case j3t:return k3t(e);case H3t:return new r;case z3t:return P3t(e)}}var n9t=t9t,r9t=Ru,Bse=Object.create,i9t=function(){function e(){}return function(t){if(!r9t(t))return{};if(Bse)return Bse(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}(),o9t=i9t,a9t=o9t,s9t=aK,l9t=rK;function c9t(e){return typeof e.constructor=="function"&&!l9t(e)?a9t(s9t(e)):{}}var TRe=c9t,u9t=FD,d9t=Qf,f9t="[object Map]";function p9t(e){return d9t(e)&&u9t(e)==f9t}var h9t=p9t,m9t=h9t,g9t=eK,jse=tK,Hse=jse&&jse.isMap,v9t=Hse?g9t(Hse):m9t,b9t=v9t,y9t=FD,_9t=Qf,S9t="[object Set]";function E9t(e){return _9t(e)&&y9t(e)==S9t}var C9t=E9t,w9t=C9t,T9t=eK,Use=tK,zse=Use&&Use.isSet,x9t=zse?T9t(zse):w9t,O9t=x9t,R9t=$D,I9t=bRe,A9t=_Re,N9t=MDt,M9t=KDt,k9t=SRe,P9t=ERe,D9t=e3t,L9t=u3t,$9t=sRe,F9t=m3t,B9t=FD,j9t=y3t,H9t=n9t,U9t=TRe,z9t=Nc,V9t=ND,G9t=b9t,W9t=Ru,q9t=O9t,Y9t=$2,K9t=H2,Q9t=1,X9t=2,Z9t=4,xRe="[object Arguments]",J9t="[object Array]",e8t="[object Boolean]",t8t="[object Date]",n8t="[object Error]",ORe="[object Function]",r8t="[object GeneratorFunction]",i8t="[object Map]",o8t="[object Number]",RRe="[object Object]",a8t="[object RegExp]",s8t="[object Set]",l8t="[object String]",c8t="[object Symbol]",u8t="[object WeakMap]",d8t="[object ArrayBuffer]",f8t="[object DataView]",p8t="[object Float32Array]",h8t="[object Float64Array]",m8t="[object Int8Array]",g8t="[object Int16Array]",v8t="[object Int32Array]",b8t="[object Uint8Array]",y8t="[object Uint8ClampedArray]",_8t="[object Uint16Array]",S8t="[object Uint32Array]",Vi={};Vi[xRe]=Vi[J9t]=Vi[d8t]=Vi[f8t]=Vi[e8t]=Vi[t8t]=Vi[p8t]=Vi[h8t]=Vi[m8t]=Vi[g8t]=Vi[v8t]=Vi[i8t]=Vi[o8t]=Vi[RRe]=Vi[a8t]=Vi[s8t]=Vi[l8t]=Vi[c8t]=Vi[b8t]=Vi[y8t]=Vi[_8t]=Vi[S8t]=!0;Vi[n8t]=Vi[ORe]=Vi[u8t]=!1;function UA(e,t,n,r,i,o){var a,s=t&Q9t,l=t&X9t,c=t&Z9t;if(n&&(a=i?n(e,r,i,o):n(e)),a!==void 0)return a;if(!W9t(e))return e;var u=z9t(e);if(u){if(a=j9t(e),!s)return P9t(e,a)}else{var d=B9t(e),f=d==ORe||d==r8t;if(V9t(e))return k9t(e,s);if(d==RRe||d==xRe||f&&!i){if(a=l||f?{}:U9t(e),!s)return l?L9t(e,M9t(a,e)):D9t(e,N9t(a,e))}else{if(!Vi[d])return i?e:{};a=H9t(e,d,s)}}o||(o=new R9t);var h=o.get(e);if(h)return h;o.set(e,a),q9t(e)?e.forEach(function(v){a.add(UA(v,t,n,v,e,o))}):G9t(e)&&e.forEach(function(v,y){a.set(y,UA(v,t,n,y,e,o))});var m=c?l?F9t:$9t:l?K9t:Y9t,g=u?void 0:m(e);return I9t(g||e,function(v,y){g&&(y=v,v=e[y]),A9t(a,y,UA(v,t,n,y,e,o))}),a}var E8t=UA,C8t=E8t,w8t=1,T8t=4;function x8t(e){return C8t(e,w8t|T8t)}var O8t=x8t;Object.defineProperty(B2,"__esModule",{value:!0});B2.mergeClasses=void 0;var R8t=oK,I8t=IRe(R8t),A8t=O8t,N8t=IRe(A8t),M8t=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 IRe(e){return e&&e.__esModule?e:{default:e}}var k8t=B2.mergeClasses=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],r=t.default&&(0,N8t.default)(t.default)||{};return n.map(function(i){var o=t[i];return o&&(0,I8t.default)(o,function(a,s){r[s]||(r[s]={}),r[s]=M8t({},r[s],o[s])}),i}),r};B2.default=k8t;var U2={};Object.defineProperty(U2,"__esModule",{value:!0});U2.autoprefix=void 0;var P8t=oK,Vse=L8t(P8t),D8t=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 L8t(e){return e&&e.__esModule?e:{default:e}}var $8t={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}}},F8t=U2.autoprefix=function(t){var n={};return(0,Vse.default)(t,function(r,i){var o={};(0,Vse.default)(r,function(a,s){var l=$8t[s];l?o=D8t({},o,l(a)):o[s]=a}),n[i]=o}),n};U2.default=F8t;var z2={};Object.defineProperty(z2,"__esModule",{value:!0});z2.hover=void 0;var B8t=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},j8t=p,D$=H8t(j8t);function H8t(e){return e&&e.__esModule?e:{default:e}}function U8t(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Gse(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 z8t(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 V8t=z2.hover=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"span";return function(r){z8t(i,r);function i(){var o,a,s,l;U8t(this,i);for(var c=arguments.length,u=Array(c),d=0;d<c;d++)u[d]=arguments[d];return l=(a=(s=Gse(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 D$.default.createElement(n,{onMouseOver:s.handleMouseOver,onMouseOut:s.handleMouseOut},D$.default.createElement(t,B8t({},s.props,s.state)))},a),Gse(s,l)}return i}(D$.default.Component)};z2.default=V8t;var V2={};Object.defineProperty(V2,"__esModule",{value:!0});V2.active=void 0;var G8t=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},W8t=p,L$=q8t(W8t);function q8t(e){return e&&e.__esModule?e:{default:e}}function Y8t(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Wse(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 K8t(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 Q8t=V2.active=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"span";return function(r){K8t(i,r);function i(){var o,a,s,l;Y8t(this,i);for(var c=arguments.length,u=Array(c),d=0;d<c;d++)u[d]=arguments[d];return l=(a=(s=Wse(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 L$.default.createElement(n,{onMouseDown:s.handleMouseDown,onMouseUp:s.handleMouseUp},L$.default.createElement(t,G8t({},s.props,s.state)))},a),Wse(s,l)}return i}(L$.default.Component)};V2.default=Q8t;var hK={};Object.defineProperty(hK,"__esModule",{value:!0});var X8t=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};hK.default=X8t;Object.defineProperty(tu,"__esModule",{value:!0});tu.ReactCSS=tu.loop=tu.handleActive=tu.handleHover=tu.hover=void 0;var Z8t=D2,J8t=QS(Z8t),eLt=B2,tLt=QS(eLt),nLt=U2,rLt=QS(nLt),iLt=z2,ARe=QS(iLt),oLt=V2,aLt=QS(oLt),sLt=hK,lLt=QS(sLt);function QS(e){return e&&e.__esModule?e:{default:e}}tu.hover=ARe.default;tu.handleHover=ARe.default;tu.handleActive=aLt.default;tu.loop=lLt.default;var cLt=tu.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,J8t.default)(r),a=(0,tLt.default)(t,o);return(0,rLt.default)(a)},Mg=tu.default=cLt,uLt=fK,dLt=F2;function fLt(e,t,n){(n!==void 0&&!dLt(e[t],n)||n===void 0&&!(t in e))&&uLt(e,t,n)}var NRe=fLt,pLt=VS,hLt=Qf;function mLt(e){return hLt(e)&&pLt(e)}var gLt=mLt;function vLt(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}var MRe=vLt,bLt=j2,yLt=H2;function _Lt(e){return bLt(e,yLt(e))}var SLt=_Lt,qse=NRe,ELt=SRe,CLt=wRe,wLt=ERe,TLt=TRe,Yse=XY,Kse=Nc,xLt=gLt,OLt=ND,RLt=iK,ILt=Ru,ALt=JOe,NLt=nK,Qse=MRe,MLt=SLt;function kLt(e,t,n,r,i,o,a){var s=Qse(e,n),l=Qse(t,n),c=a.get(l);if(c){qse(e,n,c);return}var u=o?o(s,l,n+"",e,t,a):void 0,d=u===void 0;if(d){var f=Kse(l),h=!f&&OLt(l),m=!f&&!h&&NLt(l);u=l,f||h||m?Kse(s)?u=s:xLt(s)?u=wLt(s):h?(d=!1,u=ELt(l,!0)):m?(d=!1,u=CLt(l,!0)):u=[]:ALt(l)||Yse(l)?(u=s,Yse(s)?u=MLt(s):(!ILt(s)||RLt(s))&&(u=TLt(l))):d=!1}d&&(a.set(l,u),i(u,l,r,o,a),a.delete(l)),qse(e,n,u)}var PLt=kLt,DLt=$D,LLt=NRe,$Lt=WOe,FLt=PLt,BLt=Ru,jLt=H2,HLt=MRe;function kRe(e,t,n,r,i){e!==t&&$Lt(t,function(o,a){if(i||(i=new DLt),BLt(o))FLt(e,t,a,n,kRe,r,i);else{var s=r?r(HLt(e,a),o,a+"",e,t,i):void 0;s===void 0&&(s=o),LLt(e,a,s)}},jLt)}var ULt=kRe;function zLt(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 VLt=zLt,GLt=VLt,Xse=Math.max;function WLt(e,t,n){return t=Xse(t===void 0?e.length-1:t,0),function(){for(var r=arguments,i=-1,o=Xse(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),GLt(e,this,s)}}var qLt=WLt;function YLt(e){return function(){return e}}var KLt=YLt,QLt=KLt,Zse=yRe,XLt=MD,ZLt=Zse?function(e,t){return Zse(e,"toString",{configurable:!0,enumerable:!1,value:QLt(t),writable:!0})}:XLt,JLt=ZLt,e$t=800,t$t=16,n$t=Date.now;function r$t(e){var t=0,n=0;return function(){var r=n$t(),i=t$t-(r-n);if(n=r,i>0){if(++t>=e$t)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var i$t=r$t,o$t=JLt,a$t=i$t,s$t=a$t(o$t),l$t=s$t,c$t=MD,u$t=qLt,d$t=l$t;function f$t(e,t){return d$t(u$t(e,t,c$t),e+"")}var p$t=f$t,h$t=F2,m$t=VS,g$t=ZY,v$t=Ru;function b$t(e,t,n){if(!v$t(n))return!1;var r=typeof t;return(r=="number"?m$t(n)&&g$t(t,n.length):r=="string"&&t in n)?h$t(n[t],e):!1}var y$t=b$t,_$t=p$t,S$t=y$t;function E$t(e){return _$t(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&&S$t(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 C$t=E$t,w$t=ULt,T$t=C$t,x$t=T$t(function(e,t,n){w$t(e,t,n)}),O$t=x$t;const R$t=di(O$t);var I$t=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 f;if(d<0?f=0:d>s?f=1:f=Math.round(d*100/s)/100,n.a!==f)return{h:n.h,s:n.s,l:n.l,a:f,source:"rgb"}}else{var h;if(u<0?h=0:u>a?h=1:h=Math.round(u*100/a)/100,i!==h)return{h:n.h,s:n.s,l:n.l,a:h,source:"rgb"}}return null},$$={},A$t=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},N$t=function(t,n,r,i){var o="".concat(t,"-").concat(n,"-").concat(r).concat(i?"-server":"");if($$[o])return $$[o];var a=A$t(t,n,r,i);return $$[o]=a,a};function GT(e){"@babel/helpers - typeof";return GT=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},GT(e)}function Jse(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 GR(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Jse(Object(n),!0).forEach(function(r){M$t(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Jse(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function M$t(e,t,n){return t=k$t(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function k$t(e){var t=P$t(e,"string");return GT(t)==="symbol"?t:String(t)}function P$t(e,t){if(GT(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(GT(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var UD=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=Mg({default:{grid:{borderRadius:a,boxShadow:s,absolute:"0px 0px 0px 0px",background:"url(".concat(N$t(n,r,i,o.canvas),") center left")}}});return p.isValidElement(l)?ce.cloneElement(l,GR(GR({},l.props),{},{style:GR(GR({},l.props.style),c.grid)})):ce.createElement("div",{style:c.grid})};UD.defaultProps={size:8,white:"transparent",grey:"rgba(0,0,0,.08)",renderers:{}};function C_(e){"@babel/helpers - typeof";return C_=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},C_(e)}function ele(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 D$t(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?ele(Object(n),!0).forEach(function(r){L$t(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ele(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function L$t(e,t,n){return t=PRe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function $$t(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function F$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,PRe(r.key),r)}}function B$t(e,t,n){return t&&F$t(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function PRe(e){var t=j$t(e,"string");return C_(t)==="symbol"?t:String(t)}function j$t(e,t){if(C_(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(C_(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function H$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&&RU(e,t)}function RU(e,t){return RU=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},RU(e,t)}function U$t(e){var t=G$t();return function(){var r=vk(e),i;if(t){var o=vk(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return z$t(this,i)}}function z$t(e,t){if(t&&(C_(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return V$t(e)}function V$t(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function G$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 vk(e){return vk=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},vk(e)}var W$t=function(e){H$t(n,e);var t=U$t(n);function n(){var r;$$t(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=I$t(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 B$t(n,[{key:"componentWillUnmount",value:function(){this.unbindEventListeners()}},{key:"render",value:function(){var i=this,o=this.props.rgb,a=Mg({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:D$t({},this.props.style)},{vertical:this.props.direction==="vertical",overwrite:!0});return ce.createElement("div",{style:a.alpha},ce.createElement("div",{style:a.checkboard},ce.createElement(UD,{renderers:this.props.renderers})),ce.createElement("div",{style:a.gradient}),ce.createElement("div",{style:a.container,ref:function(l){return i.container=l},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},ce.createElement("div",{style:a.pointer},this.props.pointer?ce.createElement(this.props.pointer,this.props):ce.createElement("div",{style:a.slider}))))}}]),n}(p.PureComponent||p.Component),q$t=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 f=-(u*100/a)+100;d=360*f/100}if(r.h!==d)return{h:d,s:r.s,l:r.l,a:r.a,source:"hsl"}}else{var h;if(c<0)h=0;else if(c>o)h=359;else{var m=c*100/o;h=360*m/100}if(r.h!==h)return{h,s:r.s,l:r.l,a:r.a,source:"hsl"}}return null};function w_(e){"@babel/helpers - typeof";return w_=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},w_(e)}function Y$t(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function K$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,X$t(r.key),r)}}function Q$t(e,t,n){return t&&K$t(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function X$t(e){var t=Z$t(e,"string");return w_(t)==="symbol"?t:String(t)}function Z$t(e,t){if(w_(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(w_(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function J$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&&IU(e,t)}function IU(e,t){return IU=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},IU(e,t)}function e6t(e){var t=r6t();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 t6t(this,i)}}function t6t(e,t){if(t&&(w_(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return n6t(e)}function n6t(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function r6t(){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 i6t=function(e){J$t(n,e);var t=e6t(n);function n(){var r;Y$t(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=q$t(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 Q$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=Mg({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 ce.createElement("div",{style:s.hue},ce.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},ce.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%);
}
`),ce.createElement("div",{style:s.pointer},this.props.pointer?ce.createElement(this.props.pointer,this.props):ce.createElement("div",{style:s.slider}))))}}]),n}(p.PureComponent||p.Component),o6t=Ud,a6t=function(){return o6t.Date.now()},s6t=a6t,l6t=/\s/;function c6t(e){for(var t=e.length;t--&&l6t.test(e.charAt(t)););return t}var u6t=c6t,d6t=u6t,f6t=/^\s+/;function p6t(e){return e&&e.slice(0,d6t(e)+1).replace(f6t,"")}var h6t=p6t,m6t=h6t,tle=Ru,g6t=BD,nle=NaN,v6t=/^[-+]0x[0-9a-f]+$/i,b6t=/^0b[01]+$/i,y6t=/^0o[0-7]+$/i,_6t=parseInt;function S6t(e){if(typeof e=="number")return e;if(g6t(e))return nle;if(tle(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=tle(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=m6t(e);var n=b6t.test(e);return n||y6t.test(e)?_6t(e.slice(2),n?2:8):v6t.test(e)?nle:+e}var E6t=S6t,C6t=Ru,F$=s6t,rle=E6t,w6t="Expected a function",T6t=Math.max,x6t=Math.min;function O6t(e,t,n){var r,i,o,a,s,l,c=0,u=!1,d=!1,f=!0;if(typeof e!="function")throw new TypeError(w6t);t=rle(t)||0,C6t(n)&&(u=!!n.leading,d="maxWait"in n,o=d?T6t(rle(n.maxWait)||0,t):o,f="trailing"in n?!!n.trailing:f);function h(S){var C=r,T=i;return r=i=void 0,c=S,a=e.apply(T,C),a}function m(S){return c=S,s=setTimeout(y,t),u?h(S):a}function g(S){var C=S-l,T=S-c,x=t-C;return d?x6t(x,o-T):x}function v(S){var C=S-l,T=S-c;return l===void 0||C>=t||C<0||d&&T>=o}function y(){var S=F$();if(v(S))return b(S);s=setTimeout(y,g(S))}function b(S){return s=void 0,f&&r?h(S):(r=i=void 0,a)}function _(){s!==void 0&&clearTimeout(s),c=0,r=l=i=s=void 0}function E(){return s===void 0?a:b(F$())}function w(){var S=F$(),C=v(S);if(r=arguments,i=this,l=S,C){if(s===void 0)return m(l);if(d)return clearTimeout(s),s=setTimeout(y,t),h(l)}return s===void 0&&(s=setTimeout(y,t)),a}return w.cancel=_,w.flush=E,w}var DRe=O6t;const R6t=di(DRe);var I6t=DRe,A6t=Ru,N6t="Expected a function";function M6t(e,t,n){var r=!0,i=!0;if(typeof e!="function")throw new TypeError(N6t);return A6t(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),I6t(e,t,{leading:r,maxWait:t,trailing:i})}var k6t=M6t;const P6t=di(k6t);var D6t=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,f=1-u/a;return{h:n.h,s:d,v:f,a:n.a,source:"hsv"}};function T_(e){"@babel/helpers - typeof";return T_=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},T_(e)}function L6t(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function $6t(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,B6t(r.key),r)}}function F6t(e,t,n){return t&&$6t(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function B6t(e){var t=j6t(e,"string");return T_(t)==="symbol"?t:String(t)}function j6t(e,t){if(T_(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(T_(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function H6t(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&&AU(e,t)}function AU(e,t){return AU=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},AU(e,t)}function U6t(e){var t=G6t();return function(){var r=yk(e),i;if(t){var o=yk(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return z6t(this,i)}}function z6t(e,t){if(t&&(T_(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return V6t(e)}function V6t(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function G6t(){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 yk(e){return yk=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},yk(e)}var W6t=function(e){H6t(n,e);var t=U6t(n);function n(r){var i;return L6t(this,n),i=t.call(this,r),i.handleChange=function(o){typeof i.props.onChange=="function"&&i.throttle(i.props.onChange,D6t(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=P6t(function(o,a,s){o(a,s)},50),i}return F6t(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=Mg({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 ce.createElement("div",{style:d.color,ref:function(h){return i.container=h},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},ce.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));
}
`),ce.createElement("div",{style:d.white,className:"saturation-white"},ce.createElement("div",{style:d.black,className:"saturation-black"}),ce.createElement("div",{style:d.pointer},this.props.pointer?ce.createElement(this.props.pointer,this.props):ce.createElement("div",{style:d.circle}))))}}]),n}(p.PureComponent||p.Component),q6t=bRe,Y6t=vRe,K6t=XOe,Q6t=Nc;function X6t(e,t){var n=Q6t(e)?q6t:Y6t;return n(e,K6t(t))}var Z6t=X6t,J6t=Z6t;const e7t=di(J6t);function _k(e){"@babel/helpers - typeof";return _k=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},_k(e)}var t7t=/^\s+/,n7t=/\s+$/;function Jn(e,t){if(e=e||"",t=t||{},e instanceof Jn)return e;if(!(this instanceof Jn))return new Jn(e,t);var n=r7t(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}Jn.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=LRe(t),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var t=ole(this._r,this._g,this._b);return{h:t.h*360,s:t.s,v:t.v,a:this._a}},toHsvString:function(){var t=ole(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=ile(this._r,this._g,this._b);return{h:t.h*360,s:t.s,l:t.l,a:this._a}},toHslString:function(){var t=ile(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 ale(this._r,this._g,this._b,t)},toHexString:function(t){return"#"+this.toHex(t)},toHex8:function(t){return s7t(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(bo(this._r,255)*100)+"%",g:Math.round(bo(this._g,255)*100)+"%",b:Math.round(bo(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+Math.round(bo(this._r,255)*100)+"%, "+Math.round(bo(this._g,255)*100)+"%, "+Math.round(bo(this._b,255)*100)+"%)":"rgba("+Math.round(bo(this._r,255)*100)+"%, "+Math.round(bo(this._g,255)*100)+"%, "+Math.round(bo(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:y7t[ale(this._r,this._g,this._b,!0)]||!1},toFilter:function(t){var n="#"+sle(this._r,this._g,this._b,this._a),r=n,i=this._gradientType?"GradientType = 1, ":"";if(t){var o=Jn(t);r="#"+sle(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 Jn(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(d7t,arguments)},brighten:function(){return this._applyModification(f7t,arguments)},darken:function(){return this._applyModification(p7t,arguments)},desaturate:function(){return this._applyModification(l7t,arguments)},saturate:function(){return this._applyModification(c7t,arguments)},greyscale:function(){return this._applyModification(u7t,arguments)},spin:function(){return this._applyModification(h7t,arguments)},_applyCombination:function(t,n){return t.apply(null,[this].concat([].slice.call(n)))},analogous:function(){return this._applyCombination(v7t,arguments)},complement:function(){return this._applyCombination(m7t,arguments)},monochromatic:function(){return this._applyCombination(b7t,arguments)},splitcomplement:function(){return this._applyCombination(g7t,arguments)},triad:function(){return this._applyCombination(lle,[3])},tetrad:function(){return this._applyCombination(lle,[4])}};Jn.fromRatio=function(e,t){if(_k(e)=="object"){var n={};for(var r in e)e.hasOwnProperty(r)&&(r==="a"?n[r]=e[r]:n[r]=$C(e[r]));e=n}return Jn(e,t)};function r7t(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=C7t(e)),_k(e)=="object"&&(cp(e.r)&&cp(e.g)&&cp(e.b)?(t=i7t(e.r,e.g,e.b),a=!0,s=String(e.r).substr(-1)==="%"?"prgb":"rgb"):cp(e.h)&&cp(e.s)&&cp(e.v)?(r=$C(e.s),i=$C(e.v),t=a7t(e.h,r,i),a=!0,s="hsv"):cp(e.h)&&cp(e.s)&&cp(e.l)&&(r=$C(e.s),o=$C(e.l),t=o7t(e.h,r,o),a=!0,s="hsl"),e.hasOwnProperty("a")&&(n=e.a)),n=LRe(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 i7t(e,t,n){return{r:bo(e,255)*255,g:bo(t,255)*255,b:bo(n,255)*255}}function ile(e,t,n){e=bo(e,255),t=bo(t,255),n=bo(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 o7t(e,t,n){var r,i,o;e=bo(e,360),t=bo(t,100),n=bo(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 ole(e,t,n){e=bo(e,255),t=bo(t,255),n=bo(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 a7t(e,t,n){e=bo(e,360)*6,t=bo(t,100),n=bo(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 ale(e,t,n,r){var i=[od(Math.round(e).toString(16)),od(Math.round(t).toString(16)),od(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 s7t(e,t,n,r,i){var o=[od(Math.round(e).toString(16)),od(Math.round(t).toString(16)),od(Math.round(n).toString(16)),od($Re(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 sle(e,t,n,r){var i=[od($Re(r)),od(Math.round(e).toString(16)),od(Math.round(t).toString(16)),od(Math.round(n).toString(16))];return i.join("")}Jn.equals=function(e,t){return!e||!t?!1:Jn(e).toRgbString()==Jn(t).toRgbString()};Jn.random=function(){return Jn.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})};function l7t(e,t){t=t===0?0:t||10;var n=Jn(e).toHsl();return n.s-=t/100,n.s=zD(n.s),Jn(n)}function c7t(e,t){t=t===0?0:t||10;var n=Jn(e).toHsl();return n.s+=t/100,n.s=zD(n.s),Jn(n)}function u7t(e){return Jn(e).desaturate(100)}function d7t(e,t){t=t===0?0:t||10;var n=Jn(e).toHsl();return n.l+=t/100,n.l=zD(n.l),Jn(n)}function f7t(e,t){t=t===0?0:t||10;var n=Jn(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)))),Jn(n)}function p7t(e,t){t=t===0?0:t||10;var n=Jn(e).toHsl();return n.l-=t/100,n.l=zD(n.l),Jn(n)}function h7t(e,t){var n=Jn(e).toHsl(),r=(n.h+t)%360;return n.h=r<0?360+r:r,Jn(n)}function m7t(e){var t=Jn(e).toHsl();return t.h=(t.h+180)%360,Jn(t)}function lle(e,t){if(isNaN(t)||t<=0)throw new Error("Argument to polyad must be a positive number");for(var n=Jn(e).toHsl(),r=[Jn(e)],i=360/t,o=1;o<t;o++)r.push(Jn({h:(n.h+o*i)%360,s:n.s,l:n.l}));return r}function g7t(e){var t=Jn(e).toHsl(),n=t.h;return[Jn(e),Jn({h:(n+72)%360,s:t.s,l:t.l}),Jn({h:(n+216)%360,s:t.s,l:t.l})]}function v7t(e,t,n){t=t||6,n=n||30;var r=Jn(e).toHsl(),i=360/n,o=[Jn(e)];for(r.h=(r.h-(i*t>>1)+720)%360;--t;)r.h=(r.h+i)%360,o.push(Jn(r));return o}function b7t(e,t){t=t||6;for(var n=Jn(e).toHsv(),r=n.h,i=n.s,o=n.v,a=[],s=1/t;t--;)a.push(Jn({h:r,s:i,v:o})),o=(o+s)%1;return a}Jn.mix=function(e,t,n){n=n===0?0:n||50;var r=Jn(e).toRgb(),i=Jn(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 Jn(a)};Jn.readability=function(e,t){var n=Jn(e),r=Jn(t);return(Math.max(n.getLuminance(),r.getLuminance())+.05)/(Math.min(n.getLuminance(),r.getLuminance())+.05)};Jn.isReadable=function(e,t,n){var r=Jn.readability(e,t),i,o;switch(o=!1,i=w7t(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};Jn.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=Jn.readability(e,t[c]),o>i&&(i=o,r=Jn(t[c]));return Jn.isReadable(e,r,{level:s,size:l})||!a?r:(n.includeFallbackColors=!1,Jn.mostReadable(e,["#fff","#000"],n))};var NU=Jn.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"},y7t=Jn.hexNames=_7t(NU);function _7t(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}function LRe(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function bo(e,t){S7t(e)&&(e="100%");var n=E7t(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 zD(e){return Math.min(1,Math.max(0,e))}function Zl(e){return parseInt(e,16)}function S7t(e){return typeof e=="string"&&e.indexOf(".")!=-1&&parseFloat(e)===1}function E7t(e){return typeof e=="string"&&e.indexOf("%")!=-1}function od(e){return e.length==1?"0"+e:""+e}function $C(e){return e<=1&&(e=e*100+"%"),e}function $Re(e){return Math.round(parseFloat(e)*255).toString(16)}function cle(e){return Zl(e)/255}var ju=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 cp(e){return!!ju.CSS_UNIT.exec(e)}function C7t(e){e=e.replace(t7t,"").replace(n7t,"").toLowerCase();var t=!1;if(NU[e])e=NU[e],t=!0;else if(e=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var n;return(n=ju.rgb.exec(e))?{r:n[1],g:n[2],b:n[3]}:(n=ju.rgba.exec(e))?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=ju.hsl.exec(e))?{h:n[1],s:n[2],l:n[3]}:(n=ju.hsla.exec(e))?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=ju.hsv.exec(e))?{h:n[1],s:n[2],v:n[3]}:(n=ju.hsva.exec(e))?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=ju.hex8.exec(e))?{r:Zl(n[1]),g:Zl(n[2]),b:Zl(n[3]),a:cle(n[4]),format:t?"name":"hex8"}:(n=ju.hex6.exec(e))?{r:Zl(n[1]),g:Zl(n[2]),b:Zl(n[3]),format:t?"name":"hex"}:(n=ju.hex4.exec(e))?{r:Zl(n[1]+""+n[1]),g:Zl(n[2]+""+n[2]),b:Zl(n[3]+""+n[3]),a:cle(n[4]+""+n[4]),format:t?"name":"hex8"}:(n=ju.hex3.exec(e))?{r:Zl(n[1]+""+n[1]),g:Zl(n[2]+""+n[2]),b:Zl(n[3]+""+n[3]),format:t?"name":"hex"}:!1}function w7t(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 ule=function(t){var n=["r","g","b","a","h","s","l","v"],r=0,i=0;return e7t(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},WR=function(t,n){var r=t.hex?Jn(t.hex):Jn(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}},T7t=function(t){if(t==="transparent")return!0;var n=String(t).charAt(0)==="#"?1:0;return t.length!==4+n&&t.length<7+n&&Jn(t).isValid()};function x_(e){"@babel/helpers - typeof";return x_=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},x_(e)}function MU(){return MU=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},MU.apply(this,arguments)}function dle(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 YE(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?dle(Object(n),!0).forEach(function(r){x7t(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):dle(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function x7t(e,t,n){return t=FRe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function O7t(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function fle(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,FRe(r.key),r)}}function R7t(e,t,n){return t&&fle(e.prototype,t),n&&fle(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function FRe(e){var t=I7t(e,"string");return x_(t)==="symbol"?t:String(t)}function I7t(e,t){if(x_(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(x_(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function A7t(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&&kU(e,t)}function kU(e,t){return kU=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},kU(e,t)}function N7t(e){var t=P7t();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 M7t(this,i)}}function M7t(e,t){if(t&&(x_(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return k7t(e)}function k7t(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function P7t(){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 D7t=function(t){var n=function(r){A7t(o,r);var i=N7t(o);function o(a){var s;return O7t(this,o),s=i.call(this),s.handleChange=function(l,c){var u=ule(l);if(u){var d=WR(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=ule(l);if(u){var d=WR(l,l.h||s.state.oldHue);s.props.onSwatchHover&&s.props.onSwatchHover(d,c)}},s.state=YE({},WR(a.color,0)),s.debounce=R6t(function(l,c,u){l(c,u)},100),s}return R7t(o,[{key:"render",value:function(){var s={};return this.props.onSwatchHover&&(s.onSwatchHover=this.handleSwatchHover),ce.createElement(t,MU({},this.props,this.state,{onChange:this.handleChange},s))}}],[{key:"getDerivedStateFromProps",value:function(s,l){return YE({},WR(s.color,l.oldHue))}}]),o}(p.PureComponent||p.Component);return n.propTypes=YE({},t.propTypes),n.defaultProps=YE(YE({},t.defaultProps),{},{color:{h:250,s:.5,l:.2,a:1}}),n};function O_(e){"@babel/helpers - typeof";return O_=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},O_(e)}function L7t(e,t,n){return t=BRe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function $7t(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function F7t(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,BRe(r.key),r)}}function B7t(e,t,n){return t&&F7t(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function BRe(e){var t=j7t(e,"string");return O_(t)==="symbol"?t:String(t)}function j7t(e,t){if(O_(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(O_(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function H7t(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&&PU(e,t)}function PU(e,t){return PU=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},PU(e,t)}function U7t(e){var t=G7t();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 z7t(this,i)}}function z7t(e,t){if(t&&(O_(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return V7t(e)}function V7t(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function G7t(){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 W7t=1,jRe=38,q7t=40,Y7t=[jRe,q7t],K7t=function(t){return Y7t.indexOf(t)>-1},Q7t=function(t){return Number(String(t).replace(/%/g,""))},X7t=1,KE=function(e){H7t(n,e);var t=U7t(n);function n(r){var i;return $7t(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=Q7t(o.target.value);if(!isNaN(a)&&K7t(o.keyCode)){var s=i.getArrowOffset(),l=o.keyCode===jRe?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(X7t++),i}return B7t(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 L7t({},this.props.label,i)}},{key:"getArrowOffset",value:function(){return this.props.arrowOffset||W7t}},{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=Mg({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 ce.createElement("div",{style:o.wrap},ce.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?ce.createElement("label",{htmlFor:this.inputId,style:o.label,onMouseDown:this.handleMouseDown},this.props.label):null)}}]),n}(p.PureComponent||p.Component);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 DU(){return DU=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},DU.apply(this,arguments)}function Z7t(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function J7t(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,tFt(r.key),r)}}function eFt(e,t,n){return t&&J7t(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function tFt(e){var t=nFt(e,"string");return R_(t)==="symbol"?t:String(t)}function nFt(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);if(R_(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function rFt(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&&LU(e,t)}function LU(e,t){return LU=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},LU(e,t)}function iFt(e){var t=sFt();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 oFt(this,i)}}function oFt(e,t){if(t&&(R_(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return aFt(e)}function aFt(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function sFt(){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 lFt=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"span";return function(r){rFt(o,r);var i=iFt(o);function o(){var a;Z7t(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 eFt(o,[{key:"render",value:function(){return ce.createElement(n,{onFocus:this.handleFocus,onBlur:this.handleBlur},ce.createElement(t,DU({},this.props,this.state)))}}]),o}(ce.Component)};function WT(e){"@babel/helpers - typeof";return WT=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},WT(e)}function $U(){return $U=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},$U.apply(this,arguments)}function ple(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 hle(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?ple(Object(n),!0).forEach(function(r){cFt(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ple(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function cFt(e,t,n){return t=uFt(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function uFt(e){var t=dFt(e,"string");return WT(t)==="symbol"?t:String(t)}function dFt(e,t){if(WT(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(WT(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var fFt=13,pFt=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,f=d===void 0?{}:d,h=n==="transparent",m=Mg({default:{swatch:hle(hle({background:n,height:"100%",width:"100%",cursor:"pointer",position:"relative",outline:"none"},r),u?f:{})}}),g=function(E){return o(n,E)},v=function(E){return E.keyCode===fFt&&o(n,E)},y=function(E){return a(n,E)},b={};return a&&(b.onMouseOver=y),ce.createElement("div",$U({style:m.swatch,onClick:g,title:l,tabIndex:0,onKeyDown:v},b),c,h&&ce.createElement(UD,{borderRadius:m.swatch.borderRadius,boxShadow:"inset 0 0 0 1px rgba(0,0,0,0.1)"}))};const hFt=lFt(pFt);var mFt=function(t){var n=t.onChange,r=t.rgb,i=t.hsl,o=t.hex,a=t.disableAlpha,s=Mg({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?T7t(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 ce.createElement("div",{style:s.fields,className:"flexbox-fix"},ce.createElement("div",{style:s.double},ce.createElement(KE,{style:{input:s.input,label:s.label},label:"hex",value:o==null?void 0:o.replace("#",""),onChange:l})),ce.createElement("div",{style:s.single},ce.createElement(KE,{style:{input:s.input,label:s.label},label:"r",value:r==null?void 0:r.r,onChange:l,dragLabel:"true",dragMax:"255"})),ce.createElement("div",{style:s.single},ce.createElement(KE,{style:{input:s.input,label:s.label},label:"g",value:r==null?void 0:r.g,onChange:l,dragLabel:"true",dragMax:"255"})),ce.createElement("div",{style:s.single},ce.createElement(KE,{style:{input:s.input,label:s.label},label:"b",value:r==null?void 0:r.b,onChange:l,dragLabel:"true",dragMax:"255"})),ce.createElement("div",{style:s.alpha},ce.createElement(KE,{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 qT(e){"@babel/helpers - typeof";return qT=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},qT(e)}function mle(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 gle(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?mle(Object(n),!0).forEach(function(r){gFt(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):mle(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function gFt(e,t,n){return t=vFt(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function vFt(e){var t=bFt(e,"string");return qT(t)==="symbol"?t:String(t)}function bFt(e,t){if(qT(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(qT(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var yFt=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 ce.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 ce.createElement("div",{key:u,style:a.swatchWrap},ce.createElement(hFt,gle(gle({},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 YT(e){"@babel/helpers - typeof";return YT=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},YT(e)}function vle(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 _Ft(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?vle(Object(n),!0).forEach(function(r){SFt(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):vle(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function SFt(e,t,n){return t=EFt(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function EFt(e){var t=CFt(e,"string");return YT(t)==="symbol"?t:String(t)}function CFt(e,t){if(YT(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(YT(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var HRe=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,f=t.styles,h=f===void 0?{}:f,m=t.className,g=m===void 0?"":m,v=Mg(R$t({default:_Ft({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)"}},h),disableAlpha:{color:{height:"10px"},hue:{height:"10px"},alpha:{display:"none"}}},h),{disableAlpha:c});return ce.createElement("div",{style:v.picker,className:"sketch-picker ".concat(g)},ce.createElement("div",{style:v.saturation},ce.createElement(W6t,{style:v.Saturation,hsl:a,hsv:o,onChange:s})),ce.createElement("div",{style:v.controls,className:"flexbox-fix"},ce.createElement("div",{style:v.sliders},ce.createElement("div",{style:v.hue},ce.createElement(i6t,{style:v.Hue,hsl:a,onChange:s})),ce.createElement("div",{style:v.alpha},ce.createElement(W$t,{style:v.Alpha,rgb:r,hsl:a,renderers:d,onChange:s}))),ce.createElement("div",{style:v.color},ce.createElement(UD,null),ce.createElement("div",{style:v.activeColor}))),ce.createElement(mFt,{rgb:r,hsl:a,hex:i,onChange:s,disableAlpha:c}),ce.createElement(yFt,{colors:u,onClick:s,onSwatchHover:l}))};HRe.defaultProps={disableAlpha:!1,width:200,styles:{},presetColors:["#D0021B","#F5A623","#F8E71C","#8B572A","#7ED321","#417505","#BD10E0","#9013FE","#4A90E2","#50E3C2","#B8E986","#000000","#4A4A4A","#9B9B9B","#FFFFFF"]};var wFt=D7t(HRe),TFt=["mode","popoverProps"],xFt=["#FF9D4E","#5BD8A6","#5B8FF9","#F7664E","#FF86B7","#2B9E9D","#9270CA","#6DC8EC","#667796","#F6BD16"],OFt=ce.forwardRef(function(e,t){var n=e.mode,r=e.popoverProps,i=Dt(e,TFt),o=p.useContext(Ln.ConfigContext),a=o.getPrefixCls,s=a("pro-field-color-picker"),l=Ff.useToken(),c=l.token,u=Pn("#1890ff",{value:i.value,onChange:i.onChange}),d=Ie(u,2),f=d[0],h=d[1],m=zi("ProFiledColorPicker"+f,function(){return ee({},".".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:f}})}),g=m.wrapSSR,v=m.hashId,y=g(H.jsx("div",{className:"".concat(s," ").concat(v).trim(),style:{cursor:i.disabled?"not-allowed":"pointer",backgroundColor:i.disabled?c.colorBgContainerDisabled:c.colorBgContainer},children:H.jsx("div",{style:{backgroundColor:f,width:24,boxSizing:"border-box",height:24,borderRadius:c.borderRadius}})}));return p.useImperativeHandle(t,function(){}),n==="read"||i.disabled?y:H.jsx(bu,W(W({trigger:"click",placement:"right"},r),{},{content:H.jsx("div",{style:{margin:"-12px -16px"},children:H.jsx(wFt,W(W({},i),{},{presetColors:i.colors||i.presetColors||xFt,color:f,onChange:function(_){var E=_.hex,w=_.rgb,S=w.r,C=w.g,T=w.b,x=w.a;if(x&&x<1){h("rgba(".concat(S,", ").concat(C,", ").concat(T,", ").concat(x,")"));return}h(E)}}))}),children:y}))}),RFt={label:"Recommended",colors:["#F5222D","#FA8C16","#FADB14","#8BBB11","#52C41A","#13A8A8","#1677FF","#2F54EB","#722ED1","#EB2F96","#F5222D4D","#FA8C164D","#FADB144D","#8BBB114D","#52C41A4D","#13A8A84D","#1677FF4D","#2F54EB4D","#722ED14D","#EB2F964D"]};function URe(){return A2(sh,"5.5.0")>-1}function IFt(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return(typeof e>"u"||e===!1)&&URe()?oY:OFt}var AFt=function(t,n){var r=t.text,i=t.mode,o=t.render,a=t.renderFormItem,s=t.fieldProps,l=t.old,c=p.useContext(Ln.ConfigContext),u=c.getPrefixCls,d=ce.useMemo(function(){return IFt(l)},[l]),f=u("pro-field-color-picker"),h=p.useMemo(function(){return l?"":Te(ee({},f,URe()))},[f,l]);if(i==="read"){var m=H.jsx(d,{value:r,mode:"read",ref:n,className:h,open:!1});return o?o(r,W({mode:i},s),m):m}if(i==="edit"||i==="update"){var g=W({display:"table-cell"},s.style),v=H.jsx(d,W(W({ref:n,presets:[RFt]},s),{},{style:g,className:h}));return a?a(r,W(W({mode:i},s),{},{style:g}),v):v}return null};const NFt=ce.forwardRef(AFt);br.extend(Fq);var MFt=function(t,n){return t?typeof n=="function"?n(br(t)):br(t).format((Array.isArray(n)?n[0]:n)||"YYYY-MM-DD"):"-"},kFt=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,f=t.fieldProps,h=t.picker,m=t.bordered,g=t.lightLabel,v=ko(),y=p.useState(!1),b=Ie(y,2),_=b[0],E=b[1];if(i==="read"){var w=MFt(r,f.format||o);return l?l(r,W({mode:i},f),H.jsx(H.Fragment,{children:w})):H.jsx(H.Fragment,{children:w})}if(i==="edit"||i==="update"){var S,C=f.disabled,T=f.value,x=f.placeholder,O=x===void 0?v.getMessage("tableForm.selectPlaceholder","请选择"):x,N=M2(T);return s?S=H.jsx(Ih,{label:a,onClick:function(){var M;f==null||(M=f.onOpenChange)===null||M===void 0||M.call(f,!0),E(!0)},style:N?{paddingInlineEnd:0}:void 0,disabled:C,value:N||_?H.jsx(yu,W(W(W({picker:h,showTime:d,format:o,ref:n},f),{},{value:N,onOpenChange:function(M){var F;E(M),f==null||(F=f.onOpenChange)===null||F===void 0||F.call(f,M)}},Cc(!1)),{},{open:_})):void 0,allowClear:!1,downIcon:N||_?!1:void 0,bordered:m,ref:g}):S=H.jsx(yu,W(W(W({picker:h,showTime:d,format:o,placeholder:O},Cc(u===void 0?!0:!u)),{},{ref:n},f),{},{value:N})),c?c(r,W({mode:i},f),S):S}return null};const cb=ce.forwardRef(kFt);var PFt=function(t,n){var r=t.text,i=t.mode,o=t.render,a=t.placeholder,s=t.renderFormItem,l=t.fieldProps,c=ko(),u=a||c.getMessage("tableForm.inputPlaceholder","请输入"),d=p.useCallback(function(y){var b=y??void 0;return!l.stringMode&&typeof b=="string"&&(b=Number(b)),typeof b=="number"&&!qv(b)&&!qv(l.precision)&&(b=Number(b.toFixed(l.precision))),b},[l]);if(i==="read"){var f,h={};l!=null&&l.precision&&(h={minimumFractionDigits:Number(l.precision),maximumFractionDigits:Number(l.precision)});var m=new Intl.NumberFormat(void 0,W(W({},h),(l==null?void 0:l.intlProps)||{})).format(Number(r)),g=l!=null&&l.stringMode?H.jsx("span",{children:r}):H.jsx("span",{ref:n,children:(l==null||(f=l.formatter)===null||f===void 0?void 0:f.call(l,m))||m});return o?o(r,W({mode:i},l),g):g}if(i==="edit"||i==="update"){var v=H.jsx(dh,W(W({ref:n,min:0,placeholder:u},ur(l,["onChange","onBlur"])),{},{onChange:function(b){var _;return l==null||(_=l.onChange)===null||_===void 0?void 0:_.call(l,d(b))},onBlur:function(b){var _;return l==null||(_=l.onBlur)===null||_===void 0?void 0:_.call(l,d(b.target.value))}}));return s?s(r,W({mode:i},l),v):v}return null};const DFt=ce.forwardRef(PFt);var LFt=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,f=d===void 0?30:d,h=l.value,m=l.defaultValue,g=l.onChange,v=l.id,y=ko(),b=Ff.useToken(),_=b.token,E=Pn(function(){return m},{value:h,onChange:g}),w=Ie(E,2),S=w[0],C=w[1];if(i==="read"){var T=function(P){var z,L=new Intl.NumberFormat(void 0,W({minimumSignificantDigits:2},(l==null?void 0:l.intlProps)||{})).format(Number(P));return(l==null||(z=l.formatter)===null||z===void 0?void 0:z.call(l,L))||L},x=H.jsxs("span",{ref:n,children:[T(r[0])," ",u," ",T(r[1])]});return o?o(r,W({mode:i},l),x):x}if(i==="edit"||i==="update"){var O=function(){if(Array.isArray(S)){var P=Ie(S,2),z=P[0],L=P[1];typeof z=="number"&&typeof L=="number"&&z>L?C([L,z]):z===void 0&&L===void 0&&C(void 0)}},N=function(P,z){var L=nt(S||[]);L[P]=z===null?void 0:z,C(L)},I=(l==null?void 0:l.placeholder)||a||[y.getMessage("tableForm.inputPlaceholder","请输入"),y.getMessage("tableForm.inputPlaceholder","请输入")],M=function(P){return Array.isArray(I)?I[P]:I},F=Xi.Compact||Ki.Group,k=Xi.Compact?{}:{compact:!0},B=H.jsxs(F,W(W({},k),{},{onBlur:O,children:[H.jsx(dh,W(W({},l),{},{placeholder:M(0),id:v??"".concat(v,"-0"),style:{width:"calc((100% - ".concat(f,"px) / 2)")},value:S==null?void 0:S[0],defaultValue:m==null?void 0:m[0],onChange:function(P){return N(0,P)}})),H.jsx(Ki,{style:{width:f,textAlign:"center",borderInlineStart:0,borderInlineEnd:0,pointerEvents:"none",backgroundColor:_==null?void 0:_.colorBgContainer},placeholder:u,disabled:!0}),H.jsx(dh,W(W({},l),{},{placeholder:M(1),id:v??"".concat(v,"-1"),style:{width:"calc((100% - ".concat(f,"px) / 2)"),borderInlineStart:0},value:S==null?void 0:S[1],defaultValue:m==null?void 0:m[1],onChange:function(P){return N(1,P)}}))]}));return s?s(r,W({mode:i},l),B):B}return null};const $Ft=ce.forwardRef(LFt);var zRe={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(ao,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,f){return o.fromToBase(c,u,d,f)}i.en.relativeTime=a,o.fromToBase=function(c,u,d,f,h){for(var m,g,v,y=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"}],_=b.length,E=0;E<_;E+=1){var w=b[E];w.d&&(m=f?i(c).diff(d,w.d,!0):d.diff(c,w.d,!0));var S=(n.rounding||Math.round)(Math.abs(m));if(v=m>0,S<=w.r||!w.r){S<=1&&E>0&&(w=b[E-1]);var C=y[w.l];h&&(S=h(""+S)),g=typeof C=="string"?C.replace("%d",S):C(S,u,w.l,v);break}}if(u)return g;var T=v?y.future:y.past;return typeof T=="function"?T(g):T.replace("%s",g)},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)}}})})(zRe);var FFt=zRe.exports;const BFt=di(FFt);br.extend(BFt);var jFt=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=ko();if(i==="read"){var d=H.jsx(Ia,{title:br(r).format((c==null?void 0:c.format)||l||"YYYY-MM-DD HH:mm:ss"),children:br(r).fromNow()});return a?a(r,W({mode:i},c),H.jsx(H.Fragment,{children:d})):H.jsx(H.Fragment,{children:d})}if(i==="edit"||i==="update"){var f=u.getMessage("tableForm.selectPlaceholder","请选择"),h=M2(c.value),m=H.jsx(yu,W(W(W({ref:n,placeholder:f,showTime:!0},Cc(o===void 0?!0:!o)),c),{},{value:h}));return s?s(r,W({mode:i},c),m):m}return null};const HFt=ce.forwardRef(jFt);var VRe=ce.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=ko(),u=s||c.getMessage("tableForm.inputPlaceholder","请输入");if(r==="read"){var d=H.jsx(ixe,W({ref:t,width:l||32,src:n},a));return i?i(n,W({mode:r},a),d):d}if(r==="edit"||r==="update"){var f=H.jsx(Ki,W({ref:t,placeholder:u},a));return o?o(n,W({mode:r},a),f):f}return null}),UFt=function(t,n){var r=t.border,i=r===void 0?!1:r,o=t.children,a=p.useContext(Ln.ConfigContext),s=a.getPrefixCls,l=s("pro-field-index-column"),c=zi("IndexColumn",function(){return ee({},".".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(H.jsx("div",{ref:n,className:Te(l,d,ee(ee({},"".concat(l,"-border"),i),"top-three",o>3)),children:o}))};const ble=ce.forwardRef(UFt);var zFt=["contentRender","numberFormatOptions","numberPopoverRender","open"],VFt=["text","mode","render","renderFormItem","fieldProps","proFieldKey","plain","valueEnum","placeholder","locale","customSymbol","numberFormatOptions","numberPopoverRender"],GRe=new Intl.NumberFormat("zh-Hans-CN",{currency:"CNY",style:"currency"}),GFt={style:"currency",currency:"USD"},WFt={style:"currency",currency:"RUB"},qFt={style:"currency",currency:"RSD"},YFt={style:"currency",currency:"MYR"},KFt={style:"currency",currency:"BRL"},QFt={default:GRe,"zh-Hans-CN":{currency:"CNY",style:"currency"},"en-US":GFt,"ru-RU":WFt,"ms-MY":YFt,"sr-RS":qFt,"pt-BR":KFt},yle=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",W(W({},QFt[t||"zh-Hans-CN"]||GRe),{},{maximumFractionDigits:r},i)),u=c.format(a),d=function(y){var b=y.match(/\d+/);if(b){var _=b[0];return y.slice(y.indexOf(_))}else return y},f=d(u),h=u||"",m=Ie(h,1),g=m[0];return["+","-"].includes(g)?"".concat(o||"").concat(g).concat(f):"".concat(o||"").concat(f)}catch{return a}},B$=2,XFt=ce.forwardRef(function(e,t){var n=e.contentRender;e.numberFormatOptions,e.numberPopoverRender;var r=e.open,i=Dt(e,zFt),o=Pn(function(){return i.defaultValue},{value:i.value,onChange:i.onChange}),a=Ie(o,2),s=a[0],l=a[1],c=n==null?void 0:n(W(W({},i),{},{value:s})),u=N2(c?r:!1);return H.jsx(bu,W(W({placement:"topLeft"},u),{},{trigger:["focus","click"],content:c,getPopupContainer:function(f){return(f==null?void 0:f.parentElement)||document.body},children:H.jsx(dh,W(W({ref:t},i),{},{value:s,onChange:l}))}))}),ZFt=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,f=d===void 0?l.customSymbol:d,h=t.numberFormatOptions,m=h===void 0?l==null?void 0:l.numberFormatOptions:h,g=t.numberPopoverRender,v=g===void 0?(l==null?void 0:l.numberPopoverRender)||!1:g,y=Dt(t,VFt),b=(r=l==null?void 0:l.precision)!==null&&r!==void 0?r:B$,_=ko();u&&Wv[u]&&(_=Wv[u]);var E=c||_.getMessage("tableForm.inputPlaceholder","请输入"),w=p.useMemo(function(){if(f)return f;if(!(y.moneySymbol===!1||l.moneySymbol===!1))return _.getMessage("moneySymbol","¥")},[f,l.moneySymbol,_,y.moneySymbol]),S=p.useCallback(function(x){var O=new RegExp("\\B(?=(\\d{".concat(3+Math.max(b-B$,0),"})+(?!\\d))"),"g"),N=String(x).split("."),I=Ie(N,2),M=I[0],F=I[1],k=M.replace(O,","),B="";return F&&b>0&&(B=".".concat(F.slice(0,b===void 0?B$:b))),"".concat(k).concat(B)},[b]);if(o==="read"){var C=H.jsx("span",{ref:n,children:yle(u||!1,i,b,m??l.numberFormatOptions,w)});return a?a(i,W({mode:o},l),C):C}if(o==="edit"||o==="update"){var T=H.jsx(XFt,W(W({contentRender:function(O){if(v===!1||!O.value)return null;var N=yle(w||u||!1,"".concat(S(O.value)),b,W(W({},m),{},{notation:"compact"}),w);return typeof v=="function"?v==null?void 0:v(O,N):N},ref:n,precision:b,formatter:function(O){return O&&w?"".concat(w," ").concat(S(O)):O==null?void 0:O.toString()},parser:function(O){return w&&O?O.replace(new RegExp("\\".concat(w,"\\s?|(,*)"),"g"),""):O},placeholder:E},ur(l,["numberFormatOptions","precision","numberPopoverRender","customSymbol","moneySymbol","visible","open"])),{},{onBlur:l.onBlur?function(x){var O,N=x.target.value;w&&N&&(N=N.replace(new RegExp("\\".concat(w,"\\s?|(,*)"),"g"),"")),(O=l.onBlur)===null||O===void 0||O.call(l,N)}:void 0}));return s?s(i,W({mode:o},l),T):T}return null};const WRe=ce.forwardRef(ZFt);var _le=function(t){return t.map(function(n,r){var i;return ce.isValidElement(n)?ce.cloneElement(n,W(W({key:r},n==null?void 0:n.props),{},{style:W({},n==null||(i=n.props)===null||i===void 0?void 0:i.style)})):H.jsx(ce.Fragment,{children:n},r)})},JFt=function(t,n){var r=t.text,i=t.mode,o=t.render,a=t.fieldProps,s=p.useContext(Ln.ConfigContext),l=s.getPrefixCls,c=l("pro-field-option"),u=Ff.useToken(),d=u.token;if(p.useImperativeHandle(n,function(){return{}}),o){var f=o(r,W({mode:i},a),H.jsx(H.Fragment,{}));return!f||(f==null?void 0:f.length)<1||!Array.isArray(f)?null:H.jsx("div",{style:{display:"flex",gap:d.margin,alignItems:"center"},className:c,children:_le(f)})}return!r||!Array.isArray(r)?ce.isValidElement(r)?r:null:H.jsx("div",{style:{display:"flex",gap:d.margin,alignItems:"center"},className:c,children:_le(r)})};const eBt=ce.forwardRef(JFt);var tBt=["text","mode","render","renderFormItem","fieldProps","proFieldKey"],nBt=function(t,n){var r=t.text,i=t.mode,o=t.render,a=t.renderFormItem,s=t.fieldProps;t.proFieldKey;var l=Dt(t,tBt),c=ko(),u=Pn(function(){return l.open||l.visible||!1},{value:l.open||l.visible,onChange:l.onOpenChange||l.onVisible}),d=Ie(u,2),f=d[0],h=d[1];if(i==="read"){var m=H.jsx(H.Fragment,{children:"-"});return r&&(m=H.jsxs(Xi,{children:[H.jsx("span",{ref:n,children:f?r:"********"}),H.jsx("a",{onClick:function(){return h(!f)},children:f?H.jsx(RS,{}):H.jsx(_Te,{})})]})),o?o(r,W({mode:i},s),m):m}if(i==="edit"||i==="update"){var g=H.jsx(Ki.Password,W({placeholder:c.getMessage("tableForm.inputPlaceholder","请输入"),ref:n},s));return a?a(r,W({mode:i},s),g):g}return null};const rBt=ce.forwardRef(nBt);function iBt(e){return e===0?null:e>0?"+":"-"}function oBt(e){return e===0?"#595959":e>0?"#ff4d4f":"#52c41a"}function aBt(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 wk(e){return Gt(e)==="symbol"||e instanceof Symbol?NaN:Number(e)}var sBt=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,f=t.renderFormItem,h=t.fieldProps,m=t.placeholder,g=t.showSymbol,v=ko(),y=m||v.getMessage("tableForm.inputPlaceholder","请输入"),b=p.useMemo(function(){return typeof r=="string"&&r.includes("%")?wk(r.replace("%","")):wk(r)},[r]),_=p.useMemo(function(){return typeof g=="function"?g==null?void 0:g(r):g},[g,r]);if(l==="read"){var E=u?{color:oBt(b)}:{},w=H.jsxs("span",{style:E,ref:n,children:[i&&H.jsx("span",{children:i}),_&&H.jsxs(p.Fragment,{children:[iBt(b)," "]}),aBt(Math.abs(b),o),s&&s]});return d?d(r,W(W({mode:l},h),{},{prefix:i,precision:o,showSymbol:_,suffix:s}),w):w}if(l==="edit"||l==="update"){var S=H.jsx(dh,W({ref:n,formatter:function(T){return T&&i?"".concat(i," ").concat(T).replace(/\B(?=(\d{3})+(?!\d)$)/g,","):T},parser:function(T){return T?T.replace(/.*\s|,/g,""):""},placeholder:y},h));return f?f(r,W({mode:l},h),S):S}return null};const qRe=ce.forwardRef(sBt);function lBt(e){return e===100?"success":e<0?"exception":e<100?"active":"normal"}var cBt=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=ko(),d=c||u.getMessage("tableForm.inputPlaceholder","请输入"),f=p.useMemo(function(){return typeof r=="string"&&r.includes("%")?wk(r.replace("%","")):wk(r)},[r]);if(i==="read"){var h=H.jsx(_xe,W({ref:n,size:"small",style:{minWidth:100,maxWidth:320},percent:f,steps:a?10:void 0,status:lBt(f)},l));return o?o(f,W({mode:i},l),h):h}if(i==="edit"||i==="update"){var m=H.jsx(dh,W({ref:n,placeholder:d},l));return s?s(r,W({mode:i},l),m):m}return null};const YRe=ce.forwardRef(cBt);var uBt=["radioType","renderFormItem","mode","render"],dBt=function(t,n){var r,i,o=t.radioType,a=t.renderFormItem,s=t.mode,l=t.render,c=Dt(t,uBt),u=p.useContext(Ln.ConfigContext),d=u.getPrefixCls,f=d("pro-field-radio"),h=zS(c),m=Ie(h,3),g=m[0],v=m[1],y=m[2],b=p.useRef(),_=(r=li.Item)===null||r===void 0||(i=r.useStatus)===null||i===void 0?void 0:i.call(r);p.useImperativeHandle(n,function(){return W(W({},b.current||{}),{},{fetchData:function(F){return y(F)}})},[y]);var E=zi("FieldRadioRadio",function(M){return ee(ee(ee({},".".concat(f,"-error"),{span:{color:M.colorError}}),".".concat(f,"-warning"),{span:{color:M.colorWarning}}),".".concat(f,"-vertical"),ee({},"".concat(M.antCls,"-radio-wrapper"),{display:"flex",marginInlineEnd:0}))}),w=E.wrapSSR,S=E.hashId;if(g)return H.jsx(Ac,{size:"small"});if(s==="read"){var C=v!=null&&v.length?v==null?void 0:v.reduce(function(M,F){var k;return W(W({},M),{},ee({},(k=F.value)!==null&&k!==void 0?k:"",F.label))},{}):void 0,T=H.jsx(H.Fragment,{children:FS(c.text,Ah(c.valueEnum||C))});if(l){var x;return(x=l(c.text,W({mode:s},c.fieldProps),T))!==null&&x!==void 0?x:null}return T}if(s==="edit"){var O,N=w(H.jsx(qi.Group,W(W({ref:b,optionType:o},c.fieldProps),{},{className:Te((O=c.fieldProps)===null||O===void 0?void 0:O.className,ee(ee({},"".concat(f,"-error"),(_==null?void 0:_.status)==="error"),"".concat(f,"-warning"),(_==null?void 0:_.status)==="warning"),S,"".concat(f,"-").concat(c.fieldProps.layout||"horizontal")),options:v})));if(a){var I;return(I=a(c.text,W(W({mode:s},c.fieldProps),{},{options:v,loading:g}),N))!==null&&I!==void 0?I:null}return N}return null};const Sle=ce.forwardRef(dBt);var fBt=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,f=t.showTime,h=t.lightLabel,m=t.bordered,g=t.fieldProps,v=ko(),y=Array.isArray(r)?r:[],b=Ie(y,2),_=b[0],E=b[1],w=ce.useState(!1),S=Ie(w,2),C=S[0],T=S[1],x=p.useCallback(function(B){if(typeof(g==null?void 0:g.format)=="function"){var A;return g==null||(A=g.format)===null||A===void 0?void 0:A.call(g,B)}return(g==null?void 0:g.format)||s||"YYYY-MM-DD"},[g,s]),O=_?br(_).format(x(br(_))):"",N=E?br(E).format(x(br(E))):"";if(i==="read"){var I=H.jsxs("div",{ref:n,style:{display:"flex",flexWrap:"wrap",gap:8,alignItems:"center"},children:[H.jsx("div",{children:O||"-"}),H.jsx("div",{children:N||"-"})]});return l?l(r,W({mode:i},g),H.jsx("span",{children:I})):I}if(i==="edit"||i==="update"){var M=M2(g.value),F;if(o){var k;F=H.jsx(Ih,{label:a,onClick:function(){var A;g==null||(A=g.onOpenChange)===null||A===void 0||A.call(g,!0),T(!0)},style:M?{paddingInlineEnd:0}:void 0,disabled:g.disabled,value:M||C?H.jsx(yu.RangePicker,W(W(W({picker:c,showTime:f,format:s},Cc(!1)),g),{},{placeholder:(k=g.placeholder)!==null&&k!==void 0?k:[v.getMessage("tableForm.selectPlaceholder","请选择"),v.getMessage("tableForm.selectPlaceholder","请选择")],onClear:function(){var A;T(!1),g==null||(A=g.onClear)===null||A===void 0||A.call(g)},value:M,onOpenChange:function(A){var P;M&&T(A),g==null||(P=g.onOpenChange)===null||P===void 0||P.call(g,A)}})):null,allowClear:!1,bordered:m,ref:h,downIcon:M||C?!1:void 0})}else F=H.jsx(yu.RangePicker,W(W(W({ref:n,format:s,showTime:f,placeholder:[v.getMessage("tableForm.selectPlaceholder","请选择"),v.getMessage("tableForm.selectPlaceholder","请选择")]},Cc(d===void 0?!0:!d)),g),{},{value:M}));return u?u(r,W({mode:i},g),F):F}return null};const ub=ce.forwardRef(fBt);var pBt=function(t,n){var r=t.text,i=t.mode,o=t.render,a=t.renderFormItem,s=t.fieldProps;if(i==="read"){var l=H.jsx(ioe,W(W({allowHalf:!0,disabled:!0,ref:n},s),{},{value:r}));return o?o(r,W({mode:i},s),H.jsx(H.Fragment,{children:l})):l}if(i==="edit"||i==="update"){var c=H.jsx(ioe,W({allowHalf:!0,ref:n},s));return a?a(r,W({mode:i},s),c):c}return null};const hBt=ce.forwardRef(pBt);function mBt(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 gBt=function(t,n){var r=t.text,i=t.mode,o=t.render,a=t.renderFormItem,s=t.fieldProps,l=t.placeholder,c=ko(),u=l||c.getMessage("tableForm.inputPlaceholder","请输入");if(i==="read"){var d=mBt(Number(r)),f=H.jsx("span",{ref:n,children:d});return o?o(r,W({mode:i},s),f):f}if(i==="edit"||i==="update"){var h=H.jsx(dh,W({ref:n,min:0,style:{width:"100%"},placeholder:u},s));return a?a(r,W({mode:i},s),h):h}return null};const vBt=ce.forwardRef(gBt);var bBt=["mode","render","renderFormItem","fieldProps","emptyText"],yBt=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=Dt(t,bBt),u=p.useRef(),d=zS(t),f=Ie(d,3),h=f[0],m=f[1],g=f[2];if(p.useImperativeHandle(n,function(){return W(W({},u.current||{}),{},{fetchData:function(w){return g(w)}})},[g]),h)return H.jsx(Ac,{size:"small"});if(r==="read"){var v=m!=null&&m.length?m==null?void 0:m.reduce(function(E,w){var S;return W(W({},E),{},ee({},(S=w.value)!==null&&S!==void 0?S:"",w.label))},{}):void 0,y=H.jsx(H.Fragment,{children:FS(c.text,Ah(c.valueEnum||v))});if(i){var b;return(b=i(c.text,W({mode:r},a),H.jsx(H.Fragment,{children:y})))!==null&&b!==void 0?b:l}return y}if(r==="edit"||r==="update"){var _=H.jsx(dTe,W(W({ref:u},ur(a||{},["allowClear"])),{},{options:m}));return o?o(c.text,W(W({mode:r},a),{},{options:m,loading:h}),_):_}return null};const _Bt=ce.forwardRef(yBt);var SBt=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,W({mode:i},s),H.jsx(H.Fragment,{children:l})):H.jsx(H.Fragment,{children:l})}if(i==="edit"||i==="update"){var c=H.jsx(TTe,W(W({ref:n},s),{},{style:W({minWidth:120},s==null?void 0:s.style)}));return a?a(r,W({mode:i},s),c):c}return null};const EBt=ce.forwardRef(SBt);var CBt=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=ko(),d=p.useMemo(function(){var v,y;return r==null||"".concat(r).length<1?"-":r?(v=c==null?void 0:c.checkedChildren)!==null&&v!==void 0?v:u.getMessage("switch.open","打开"):(y=c==null?void 0:c.unCheckedChildren)!==null&&y!==void 0?y:u.getMessage("switch.close","关闭")},[c==null?void 0:c.checkedChildren,c==null?void 0:c.unCheckedChildren,r]);if(i==="read")return o?o(r,W({mode:i},c),H.jsx(H.Fragment,{children:d})):d??"-";if(i==="edit"||i==="update"){var f,h=H.jsx(nk,W(W({ref:n,size:a?"small":void 0},ur(c,["value"])),{},{checked:(f=c==null?void 0:c.checked)!==null&&f!==void 0?f:c==null?void 0:c.value}));if(a){var m=c.disabled,g=c.bordered;return H.jsx(Ih,{label:s,disabled:m,bordered:g,downIcon:!1,value:H.jsx("div",{style:{paddingLeft:8},children:h}),allowClear:!1})}return l?l(r,W({mode:i},c),h):h}return null};const wBt=ce.forwardRef(CBt);var TBt=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,f=u.prefix,h=f===void 0?"":f,m=u.suffix,g=m===void 0?"":m,v=ko(),y=p.useRef();if(p.useImperativeHandle(n,function(){return y.current},[]),p.useEffect(function(){if(d){var S;(S=y.current)===null||S===void 0||S.focus()}},[d]),i==="read"){var b=H.jsxs(H.Fragment,{children:[h,r??c,g]});if(o){var _;return(_=o(r,W({mode:i},s),b))!==null&&_!==void 0?_:c}return b}if(i==="edit"||i==="update"){var E=v.getMessage("tableForm.inputPlaceholder","请输入"),w=H.jsx(Ki,W({ref:y,placeholder:E,allowClear:!0},s));return a?a(r,W({mode:i},s),w):w}return null};const xBt=ce.forwardRef(TBt);var OBt=function(t,n){var r=t.text,i=t.fieldProps,o=p.useContext(Ln.ConfigContext),a=o.getPrefixCls,s=a("pro-field-readonly"),l="".concat(s,"-textarea"),c=zi("TextArea",function(){return ee({},".".concat(l),{display:"inline-block",lineHeight:"1.5715",maxWidth:"100%",whiteSpace:"pre-wrap"})}),u=c.wrapSSR,d=c.hashId;return u(H.jsx("span",W(W({ref:n,className:Te(d,s,l)},ur(i,["autoSize","classNames","styles"])),{},{children:r??"-"})))};const RBt=ce.forwardRef(OBt);var IBt=function(t,n){var r=t.text,i=t.mode,o=t.render,a=t.renderFormItem,s=t.fieldProps,l=ko();if(i==="read"){var c=H.jsx(RBt,W(W({},t),{},{ref:n}));return o?o(r,W({mode:i},ur(s,["showCount"])),c):c}if(i==="edit"||i==="update"){var u=H.jsx(Ki.TextArea,W({ref:n,rows:3,onKeyPress:function(f){f.key==="Enter"&&f.stopPropagation()},placeholder:l.getMessage("tableForm.inputPlaceholder","请输入")},s));return a?a(r,W({mode:i},s),u):u}return null};const ABt=ce.forwardRef(IBt);var NBt=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,f=t.lightLabel,h=p.useState(!1),m=Ie(h,2),g=m[0],v=m[1],y=ko(),b=(d==null?void 0:d.format)||s||"HH:mm:ss",_=br.isDayjs(r)||typeof r=="number";if(i==="read"){var E=H.jsx("span",{ref:n,children:r?br(r,_?void 0:b).format(b):"-"});return l?l(r,W({mode:i},d),H.jsx("span",{children:E})):E}if(i==="edit"||i==="update"){var w,S=d.disabled,C=d.value,T=M2(C,b);if(o){var x;w=H.jsx(Ih,{onClick:function(){var N;d==null||(N=d.onOpenChange)===null||N===void 0||N.call(d,!0),v(!0)},style:T?{paddingInlineEnd:0}:void 0,label:a,disabled:S,value:T||g?H.jsx(Vv,W(W(W({},Cc(!1)),{},{format:s,ref:n},d),{},{placeholder:(x=d.placeholder)!==null&&x!==void 0?x:y.getMessage("tableForm.selectPlaceholder","请选择"),value:T,onOpenChange:function(N){var I;v(N),d==null||(I=d.onOpenChange)===null||I===void 0||I.call(d,N)},open:g})):null,downIcon:T||g?!1:void 0,allowClear:!1,ref:f})}else w=H.jsx(yu.TimePicker,W(W(W({ref:n,format:s},Cc(u===void 0?!0:!u)),d),{},{value:T}));return c?c(r,W({mode:i},d),w):w}return null},MBt=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,f=t.fieldProps,h=ko(),m=p.useState(!1),g=Ie(m,2),v=g[0],y=g[1],b=(f==null?void 0:f.format)||l||"HH:mm:ss",_=Array.isArray(r)?r:[],E=Ie(_,2),w=E[0],S=E[1],C=br.isDayjs(w)||typeof w=="number",T=br.isDayjs(S)||typeof S=="number",x=w?br(w,C?void 0:b).format(b):"",O=S?br(S,T?void 0:b).format(b):"";if(a==="read"){var N=H.jsxs("div",{ref:n,children:[H.jsx("div",{children:x||"-"}),H.jsx("div",{children:O||"-"})]});return c?c(r,W({mode:a},f),H.jsx("span",{children:N})):N}if(a==="edit"||a==="update"){var I=M2(f.value,b),M;if(i){var F=f.disabled,k=f.placeholder,B=k===void 0?[h.getMessage("tableForm.selectPlaceholder","请选择"),h.getMessage("tableForm.selectPlaceholder","请选择")]:k;M=H.jsx(Ih,{onClick:function(){var P;f==null||(P=f.onOpenChange)===null||P===void 0||P.call(f,!0),y(!0)},style:I?{paddingInlineEnd:0}:void 0,label:o,disabled:F,placeholder:B,value:I||v?H.jsx(Vv.RangePicker,W(W(W({},Cc(!1)),{},{format:l,ref:n},f),{},{placeholder:B,value:I,onOpenChange:function(P){var z;y(P),f==null||(z=f.onOpenChange)===null||z===void 0||z.call(f,P)},open:v})):null,downIcon:I||v?!1:void 0,allowClear:!1,ref:s})}else M=H.jsx(Vv.RangePicker,W(W(W({ref:n,format:l},Cc(d===void 0?!0:!d)),f),{},{value:I}));return u?u(r,W({mode:a},f),M):M}return null},kBt=ce.forwardRef(MBt);const PBt=ce.forwardRef(NBt);var DBt=["radioType","renderFormItem","mode","light","label","render"],LBt=["onSearch","onClear","onChange","onBlur","showSearch","autoClearSearchValue","treeData","fetchDataOnSearch","searchValue"],$Bt=function(t,n){t.radioType;var r=t.renderFormItem,i=t.mode,o=t.light,a=t.label,s=t.render,l=Dt(t,DBt),c=p.useContext(Ln.ConfigContext),u=c.getPrefixCls,d=u("pro-field-tree-select"),f=p.useRef(null),h=p.useState(!1),m=Ie(h,2),g=m[0],v=m[1],y=l.fieldProps,b=y.onSearch,_=y.onClear,E=y.onChange,w=y.onBlur,S=y.showSearch,C=y.autoClearSearchValue;y.treeData;var T=y.fetchDataOnSearch,x=y.searchValue,O=Dt(y,LBt),N=ko(),I=zS(W(W({},l),{},{defaultKeyWords:x})),M=Ie(I,3),F=M[0],k=M[1],B=M[2],A=Pn(void 0,{onChange:b,value:x}),P=Ie(A,2),z=P[0],L=P[1];p.useImperativeHandle(n,function(){return W(W({},f.current||{}),{},{fetchData:function(ve){return B(ve)}})});var V=p.useMemo(function(){if(i==="read"){var le=(O==null?void 0:O.fieldNames)||{},ve=le.value,ne=ve===void 0?"value":ve,pe=le.label,be=pe===void 0?"label":pe,Re=le.children,Se=Re===void 0?"children":Re,Ce=new Map,ye=function he(_e){if(!(_e!=null&&_e.length))return Ce;for(var Oe=_e.length,De=0;De<Oe;){var Y=_e[De++];Ce.set(Y[ne],Y[be]),he(Y[Se])}return Ce};return ye(k)}},[O==null?void 0:O.fieldNames,i,k]),j=function(ve,ne,pe){S&&C&&(B(void 0),L(void 0)),E==null||E(ve,ne,pe)};if(i==="read"){var U=H.jsx(H.Fragment,{children:FS(l.text,Ah(l.valueEnum||V))});if(s){var J;return(J=s(l.text,W({mode:i},O),U))!==null&&J!==void 0?J:null}return U}if(i==="edit"){var te,ae=Array.isArray(O==null?void 0:O.value)?O==null||(te=O.value)===null||te===void 0?void 0:te.length:0,K=H.jsx(Ac,{spinning:F,children:H.jsx(x0,W(W({open:g,onDropdownVisibleChange:function(ve){var ne;O==null||(ne=O.onDropdownVisibleChange)===null||ne===void 0||ne.call(O,ve),v(ve)},ref:f,popupMatchSelectWidth:!o,placeholder:N.getMessage("tableForm.selectPlaceholder","请选择"),tagRender:o?function(le){var ve;if(ae<2)return H.jsx(H.Fragment,{children:le.label});var ne=O==null||(ve=O.value)===null||ve===void 0?void 0:ve.findIndex(function(pe){return pe===le.value||pe.value===le.value});return H.jsxs(H.Fragment,{children:[le.label," ",ne<ae-1?",":""]})}:void 0,bordered:!o},O),{},{treeData:k,showSearch:S,style:W({minWidth:60},O.style),allowClear:O.allowClear!==!1,searchValue:z,autoClearSearchValue:C,onClear:function(){_==null||_(),B(void 0),S&&L(void 0)},onChange:j,onSearch:function(ve){T&&l!==null&&l!==void 0&&l.request&&B(ve),L(ve)},onBlur:function(ve){L(void 0),B(void 0),w==null||w(ve)},className:Te(O==null?void 0:O.className,d)}))});if(r){var Q;K=(Q=r(l.text,W(W({mode:i},O),{},{options:k,loading:F}),K))!==null&&Q!==void 0?Q:null}if(o){var oe,ge=O.disabled,fe=O.placeholder,ue=!!O.value&&((oe=O.value)===null||oe===void 0?void 0:oe.length)!==0;return H.jsx(Ih,{label:a,disabled:ge,placeholder:fe,onClick:function(){var ve;v(!0),O==null||(ve=O.onDropdownVisibleChange)===null||ve===void 0||ve.call(O,!0)},bordered:l.bordered,value:ue||g?K:null,style:ue?{paddingInlineEnd:0}:void 0,allowClear:!1,downIcon:!1})}return K}return null};const FBt=ce.forwardRef($Bt);function sl(e){var t=p.useState(!1),n=Ie(t,2),r=n[0],i=n[1],o=p.useRef(null),a=p.useCallback(function(c){var u,d,f=(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),h=(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 f&&!h},[o]),s=function(u){a(u)&&i(!0)},l=function(){i(!1)};return e.isLight?H.jsx("div",{onMouseDown:s,onMouseUp:l,children:ce.cloneElement(e.children,{labelTrigger:r,lightLabel:o})}):H.jsx(H.Fragment,{children:e.children})}var KRe={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(ao,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,f,h,m=a(this),g=(u=this.isoWeekYear(),d=this.$u,f=(d?o.utc:o)().year(u).startOf("year"),h=4-f.isoWeekday(),f.isoWeekday()>4&&(h+=7),f.add(h,n));return m.diff(g,"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(),f=!!d.u(u)||u;return d.p(c)==="isoweek"?f?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)}}})})(KRe);var BBt=KRe.exports;const jBt=di(BBt);var QRe={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(ao,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,f){return d.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(h,m,g){var v=g&&g.toUpperCase();return m||f[g]||n[g]||f[v].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(y,b,_){return b||_.slice(1)})})}(l,c===void 0?{}:c);return s.call(this,u)}}})})(QRe);var HBt=QRe.exports;const UBt=di(HBt);var zBt=["fieldProps"],VBt=["fieldProps"],GBt=["fieldProps"],WBt=["fieldProps"],qBt=["text","valueType","mode","onChange","renderFormItem","value","readonly","fieldProps"],YBt=["placeholder"];br.extend(jCe);br.extend(VCe);br.extend(jBt);br.extend(Fq);br.extend(FCe);br.extend(UBt);var KBt=function(t,n,r){var i=TOe(r.fieldProps);return n.type==="progress"?H.jsx(YRe,W(W({},r),{},{text:t,fieldProps:W({status:n.status?n.status:void 0},i)})):n.type==="money"?H.jsx(WRe,W(W({locale:n.locale},r),{},{fieldProps:i,text:t,moneySymbol:n.moneySymbol})):n.type==="percent"?H.jsx(qRe,W(W({},r),{},{text:t,showSymbol:n.showSymbol,precision:n.precision,fieldProps:i,showColor:n.showColor})):n.type==="image"?H.jsx(VRe,W(W({},r),{},{text:t,width:n.width})):t},QBt=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,W({mode:a},c),H.jsx(H.Fragment,{children:l})):H.jsx(H.Fragment,{children:l})}if(delete r.emptyText,Gt(n)==="object")return KBt(t,n,r);var d=i&&i[n];if(d){if(delete r.ref,a==="read"){var f;return(f=d.render)===null||f===void 0?void 0:f.call(d,t,W(W({text:t},r),{},{mode:a||"read"}),H.jsx(H.Fragment,{children:t}))}if(a==="update"||a==="edit"){var h;return(h=d.renderFormItem)===null||h===void 0?void 0:h.call(d,t,W({text:t},r),H.jsx(H.Fragment,{children:t}))}}if(n==="money")return H.jsx(WRe,W(W({},r),{},{text:t}));if(n==="date")return H.jsx(sl,{isLight:r.light,children:H.jsx(cb,W({text:t,format:"YYYY-MM-DD"},r))});if(n==="dateWeek")return H.jsx(sl,{isLight:r.light,children:H.jsx(cb,W({text:t,format:"YYYY-wo",picker:"week"},r))});if(n==="dateWeekRange"){var m=r.fieldProps,g=Dt(r,zBt);return H.jsx(sl,{isLight:r.light,children:H.jsx(ub,W({text:t,format:"YYYY-W",showTime:!0,fieldProps:W({picker:"week"},m)},g))})}if(n==="dateMonthRange"){var v=r.fieldProps,y=Dt(r,VBt);return H.jsx(sl,{isLight:r.light,children:H.jsx(ub,W({text:t,format:"YYYY-MM",showTime:!0,fieldProps:W({picker:"month"},v)},y))})}if(n==="dateQuarterRange"){var b=r.fieldProps,_=Dt(r,GBt);return H.jsx(sl,{isLight:r.light,children:H.jsx(ub,W({text:t,format:"YYYY-Q",showTime:!0,fieldProps:W({picker:"quarter"},b)},_))})}if(n==="dateYearRange"){var E=r.fieldProps,w=Dt(r,WBt);return H.jsx(sl,{isLight:r.light,children:H.jsx(ub,W({text:t,format:"YYYY",showTime:!0,fieldProps:W({picker:"year"},E)},w))})}return n==="dateMonth"?H.jsx(sl,{isLight:r.light,children:H.jsx(cb,W({text:t,format:"YYYY-MM",picker:"month"},r))}):n==="dateQuarter"?H.jsx(sl,{isLight:r.light,children:H.jsx(cb,W({text:t,format:"YYYY-[Q]Q",picker:"quarter"},r))}):n==="dateYear"?H.jsx(sl,{isLight:r.light,children:H.jsx(cb,W({text:t,format:"YYYY",picker:"year"},r))}):n==="dateRange"?H.jsx(ub,W({text:t,format:"YYYY-MM-DD"},r)):n==="dateTime"?H.jsx(sl,{isLight:r.light,children:H.jsx(cb,W({text:t,format:"YYYY-MM-DD HH:mm:ss",showTime:!0},r))}):n==="dateTimeRange"?H.jsx(sl,{isLight:r.light,children:H.jsx(ub,W({text:t,format:"YYYY-MM-DD HH:mm:ss",showTime:!0},r))}):n==="time"?H.jsx(sl,{isLight:r.light,children:H.jsx(PBt,W({text:t,format:"HH:mm:ss"},r))}):n==="timeRange"?H.jsx(sl,{isLight:r.light,children:H.jsx(kBt,W({text:t,format:"HH:mm:ss"},r))}):n==="fromNow"?H.jsx(HFt,W({text:t},r)):n==="index"?H.jsx(ble,{children:t+1}):n==="indexBorder"?H.jsx(ble,{border:!0,children:t+1}):n==="progress"?H.jsx(YRe,W(W({},r),{},{text:t})):n==="percent"?H.jsx(qRe,W({text:t},r)):n==="avatar"&&typeof t=="string"&&r.mode==="read"?H.jsx(xh,{src:t,size:22,shape:"circle"}):n==="code"?H.jsx(ise,W({text:t},r)):n==="jsonCode"?H.jsx(ise,W({text:t,language:"json"},r)):n==="textarea"?H.jsx(ABt,W({text:t},r)):n==="digit"?H.jsx(DFt,W({text:t},r)):n==="digitRange"?H.jsx($Ft,W({text:t},r)):n==="second"?H.jsx(vBt,W({text:t},r)):n==="select"||n==="text"&&(r.valueEnum||r.request)?H.jsx(sl,{isLight:r.light,children:H.jsx(iRt,W({text:t},r))}):n==="checkbox"?H.jsx(dRt,W({text:t},r)):n==="radio"?H.jsx(Sle,W({text:t},r)):n==="radioButton"?H.jsx(Sle,W({radioType:"button",text:t},r)):n==="rate"?H.jsx(hBt,W({text:t},r)):n==="slider"?H.jsx(EBt,W({text:t},r)):n==="switch"?H.jsx(wBt,W({text:t},r)):n==="option"?H.jsx(eBt,W({text:t},r)):n==="password"?H.jsx(rBt,W({text:t},r)):n==="image"?H.jsx(VRe,W({text:t},r)):n==="cascader"?H.jsx(sRt,W({text:t},r)):n==="treeSelect"?H.jsx(FBt,W({text:t},r)):n==="color"?H.jsx(NFt,W({text:t},r)):n==="segmented"?H.jsx(_Bt,W({text:t},r)):H.jsx(xBt,W({text:t},r))},XBt=function(t,n){var r,i,o,a,s,l=t.text,c=t.valueType,u=c===void 0?"text":c,d=t.mode,f=d===void 0?"read":d,h=t.onChange,m=t.renderFormItem,g=t.value,v=t.readonly,y=t.fieldProps,b=Dt(t,qBt),_=p.useContext(bg),E=gd(function(){for(var C,T=arguments.length,x=new Array(T),O=0;O<T;O++)x[O]=arguments[O];y==null||(C=y.onChange)===null||C===void 0||C.call.apply(C,[y].concat(x)),h==null||h.apply(void 0,x)}),w=hl(function(){return(g!==void 0||y)&&W(W({value:g},eu(y)),{},{onChange:E})},[g,y,E]),S=QBt(f==="edit"?(r=(i=w==null?void 0:w.value)!==null&&i!==void 0?i:l)!==null&&r!==void 0?r:"":(o=l??(w==null?void 0:w.value))!==null&&o!==void 0?o:"",u||"text",eu(W(W({ref:n},b),{},{mode:v?"read":f,renderFormItem:m?function(C,T,x){T.placeholder;var O=Dt(T,YBt),N=m(C,O,x);return ce.isValidElement(N)?ce.cloneElement(N,W(W({},w),N.props||{})):N}:void 0,placeholder:m?void 0:(a=b==null?void 0:b.placeholder)!==null&&a!==void 0?a:w==null?void 0:w.placeholder,fieldProps:TOe(eu(W(W({},w),{},{placeholder:m?void 0:(s=b==null?void 0:b.placeholder)!==null&&s!==void 0?s:w==null?void 0:w.placeholder})))})),_.valueTypeMap||{});return H.jsx(ce.Fragment,{children:S})},ZBt=ce.forwardRef(XBt),mK=ce.createContext({mode:"edit"}),JBt=["fieldProps","children","labelCol","label","autoFocus","isDefaultDom","render","proFieldProps","renderFormItem","valueType","initialValue","onChange","valueEnum","params","name","dependenciesValues","cacheForSwr","valuePropName"],ejt=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 f=t.dependenciesValues,h=t.cacheForSwr,m=h===void 0?!1:h,g=t.valuePropName,v=g===void 0?"value":g,y=Dt(t,JBt),b=p.useContext(mK),_=p.useMemo(function(){return f&&y.request?W(W({},d),f||{}):d},[f,d,y.request]),E=gd(function(){if(n!=null&&n.onChange){for(var C,T=arguments.length,x=new Array(T),O=0;O<T;O++)x[O]=arguments[O];n==null||(C=n.onChange)===null||C===void 0||C.call.apply(C,[n].concat(x));return}}),w=p.useMemo(function(){return W(W({autoFocus:i},n),{},{onChange:E})},[i,n,E]),S=p.useMemo(function(){if(r)return ce.isValidElement(r)?ce.cloneElement(r,W(W({},y),{},{onChange:function(){for(var T=arguments.length,x=new Array(T),O=0;O<T;O++)x[O]=arguments[O];if(n!=null&&n.onChange){var N;n==null||(N=n.onChange)===null||N===void 0||N.call.apply(N,[n].concat(x));return}c==null||c.apply(void 0,x)}},(r==null?void 0:r.props)||{})):H.jsx(H.Fragment,{children:r})},[r,n==null?void 0:n.onChange,c,y]);return S||H.jsx(ZBt,W(W(W({text:n==null?void 0:n[v],render:o,renderFormItem:s,valueType:l||"text",cacheForSwr:m,fieldProps:w,valueEnum:Yv(u)},a),y),{},{mode:(a==null?void 0:a.mode)||b.mode||"edit",params:_}))},ph=AD(p.memo(ejt,function(e,t){return hv(t,e,["onChange","onBlur"])})),tjt=["options","fieldProps","proFieldProps","valueEnum"],njt=ce.forwardRef(function(e,t){var n=e.options,r=e.fieldProps,i=e.proFieldProps,o=e.valueEnum,a=Dt(e,tjt);return H.jsx(ph,W({ref:t,valueType:"checkbox",valueEnum:Yv(o,void 0),fieldProps:W({options:n},r),lightProps:W({labelFormatter:function(){return H.jsx(ph,W({ref:t,valueType:"checkbox",mode:"read",valueEnum:Yv(o,void 0),filedConfig:{customLightMode:!0},fieldProps:W({options:n},r),proFieldProps:i},a))}},a.lightProps),proFieldProps:i},a))}),rjt=ce.forwardRef(function(e,t){var n=e.fieldProps,r=e.children;return H.jsx(uh,W(W({ref:t},n),{},{children:r}))}),ijt=AD(rjt,{valuePropName:"checked"}),gK=ijt;gK.Group=njt;var vK=ce.createContext({}),ojt=["name","originDependencies","children","ignoreFormListField"],XRe=function(t){var n=t.name,r=t.originDependencies,i=r===void 0?n:r,o=t.children,a=t.ignoreFormListField,s=Dt(t,ojt),l=p.useContext(yOe),c=p.useContext(vK),u=p.useMemo(function(){return n.map(function(d){var f,h=[d];return!a&&c.name!==void 0&&(f=c.listName)!==null&&f!==void 0&&f.length&&h.unshift(c.listName),h.flat(1)})},[c.listName,c.name,a,n==null?void 0:n.toString()]);return H.jsx(li.Item,W(W({},s),{},{noStyle:!0,shouldUpdate:function(f,h,m){if(typeof s.shouldUpdate=="boolean")return s.shouldUpdate;if(typeof s.shouldUpdate=="function"){var g;return(g=s.shouldUpdate)===null||g===void 0?void 0:g.call(s,f,h,m)}return u.some(function(v){return!hv(Io(f,v),Io(h,v))})},children:function(f){for(var h={},m=0;m<n.length;m++){var g,v=u[m],y=i[m],b=[y].flat(1),_=(g=l.getFieldFormatValueObject)===null||g===void 0?void 0:g.call(l,v);if(_&&Object.keys(_).length)h=wOe({},h,_),Io(_,v)&&(h=Zo(h,b,Io(_,v)));else{var E;_=(E=f.getFieldValue)===null||E===void 0?void 0:E.call(f,v),typeof _<"u"&&(h=Zo(h,b,_))}}return o==null?void 0:o(h,W(W({},f),l))}}))};XRe.displayName="ProFormDependency";var ajt=["children","onChange","onBlur","ignoreFormItem","valuePropName"],sjt=["children","addonAfter","addonBefore","valuePropName","addonWarpStyle","convertValue","help"],ljt=["valueType","transform","dataFormat","ignoreFormItem","lightProps","children"],cjt=ce.createContext({}),ujt=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=Dt(t,ajt),u=(i==null||(n=i.type)===null||n===void 0?void 0:n.displayName)!=="ProFormComponent",d=!ce.isValidElement(i),f=gd(function(){for(var b,_,E,w,S=arguments.length,C=new Array(S),T=0;T<S;T++)C[T]=arguments[T];o==null||o.apply(void 0,C),!u&&(d||(i==null||(b=i.props)===null||b===void 0||(_=b.onChange)===null||_===void 0||_.call.apply(_,[b].concat(C)),i==null||(E=i.props)===null||E===void 0||(E=E.fieldProps)===null||E===void 0||(w=E.onChange)===null||w===void 0||w.call.apply(w,[E].concat(C))))}),h=gd(function(){var b,_,E,w;if(!u&&!d){for(var S=arguments.length,C=new Array(S),T=0;T<S;T++)C[T]=arguments[T];a==null||a.apply(void 0,C),i==null||(b=i.props)===null||b===void 0||(_=b.onBlur)===null||_===void 0||_.call.apply(_,[b].concat(C)),i==null||(E=i.props)===null||E===void 0||(E=E.fieldProps)===null||E===void 0||(w=E.onBlur)===null||w===void 0||w.call.apply(w,[E].concat(C))}}),m=hl(function(){var b;return ur((i==null||(b=i.props)===null||b===void 0?void 0:b.fieldProps)||{},["onBlur","onChange"])},[ur((i==null||(r=i.props)===null||r===void 0?void 0:r.fieldProps)||{},["onBlur","onChange"])]),g=t[l],v=p.useMemo(function(){if(!u&&!d)return eu(W(W(ee({id:c.id},l,g),m),{},{onBlur:h,onChange:f}))},[g,m,h,f,c.id,l]),y=p.useMemo(function(){if(!v&&ce.isValidElement(i))return function(){for(var b,_,E=arguments.length,w=new Array(E),S=0;S<E;S++)w[S]=arguments[S];o==null||o.apply(void 0,w),i==null||(b=i.props)===null||b===void 0||(_=b.onChange)===null||_===void 0||_.call.apply(_,[b].concat(w))}},[v,i,o]);return ce.isValidElement(i)?ce.cloneElement(i,eu(W(W(W({},c),{},ee({},l,t[l]),i.props),{},{onChange:y,fieldProps:v,onBlur:u&&!d&&a}))):H.jsx(H.Fragment,{children:i})},Ele=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=Dt(t,sjt),u=p.useMemo(function(){var d=function(h){var m,g=(m=s==null?void 0:s(h,c.name))!==null&&m!==void 0?m:h;return c.getValueProps?c.getValueProps(g):ee({},o||"value",g)};return!s&&!c.getValueProps&&(d=void 0),!r&&!i?H.jsx(li.Item,W(W({},c),{},{help:typeof l!="function"?l:void 0,valuePropName:o,getValueProps:d,_internalItemRender:{mark:"pro_table_render",render:function(h,m){return H.jsxs(H.Fragment,{children:[m.input,typeof l=="function"?l({errors:h.errors,warnings:h.warnings}):m.errorList,m.extra]})}},children:n})):H.jsx(li.Item,W(W(W({},c),{},{help:typeof l!="function"?l:void 0,valuePropName:o,_internalItemRender:{mark:"pro_table_render",render:function(h,m){return H.jsxs(H.Fragment,{children:[H.jsxs("div",{style:W({display:"flex",alignItems:"center",flexWrap:"wrap"},a),children:[i?H.jsx("div",{style:{marginInlineEnd:8},children:i}):null,m.input,r?H.jsx("div",{style:{marginInlineStart:8},children:r}):null]}),typeof l=="function"?l({errors:h.errors,warnings:h.warnings}):m.errorList,m.extra]})}}},c),{},{getValueProps:d,children:n}))},[r,i,n,s==null?void 0:s.toString(),c]);return H.jsx(cjt.Provider,{value:{name:c.name,label:c.label},children:u})},ZRe=function(t){var n,r,i,o,a=(Ln==null||(n=Ln.useConfig)===null||n===void 0?void 0:n.call(Ln))||{componentSize:"middle"},s=a.componentSize,l=s,c=t.valueType,u=t.transform,d=t.dataFormat,f=t.ignoreFormItem,h=t.lightProps;t.children;var m=Dt(t,ljt),g=p.useContext(vK),v=p.useMemo(function(){return t.name===void 0?t.name:g.name!==void 0?[g.name,t.name].flat(1):t.name},[g.name,t.name]),y=ce.useContext(US),b=y.setFieldValueType,_=y.formItemProps;p.useEffect(function(){!b||!t.name||b([g.listName,t.name].flat(1).filter(function(x){return x!==void 0}),{valueType:c||"text",dateFormat:d,transform:u})},[g.listName,v,d,t.name,b,u,c]);var E=ce.isValidElement(t.children)&&zTt(c||t.children.props.valueType),w=p.useMemo(function(){return!!(!(h!=null&&h.light)||h!=null&&h.customLightMode||E)},[h==null?void 0:h.customLightMode,E,h==null?void 0:h.light]);if(typeof t.children=="function"){var S;return p.createElement(Ele,W(W({},m),{},{name:v,key:m.proFormFieldKey||((S=m.name)===null||S===void 0?void 0:S.toString())}),t.children)}var C=H.jsx(ujt,{valuePropName:t.valuePropName,children:t.children},m.proFormFieldKey||((r=m.name)===null||r===void 0?void 0:r.toString())),T=w?C:p.createElement(Fjt,W(W({},h),{},{key:m.proFormFieldKey||((i=m.name)===null||i===void 0?void 0:i.toString()),size:l}),C);return f?H.jsx(H.Fragment,{children:T}):H.jsx(Ele,W(W(W({},_),m),{},{name:v,isListField:g.name!==void 0,children:T}),m.proFormFieldKey||((o=m.name)===null||o===void 0?void 0:o.toString()))},djt=function(t){return ee({},t.componentCls,{"&-title":{marginBlockEnd:t.marginXL,fontWeight:"bold"},"&-container":ee({flexWrap:"wrap",maxWidth:"100%"},"> div".concat(t.antCls,"-space-item"),{maxWidth:"100%"}),"&-twoLine":ee(ee(ee(ee({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 fjt(e){return zi("ProFormGroup",function(t){var n=W(W({},t),{},{componentCls:".".concat(e)});return[djt(n)]})}var JRe=ce.forwardRef(function(e,t){var n=ce.useContext(US),r=n.groupProps,i=W(W({},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,f=i.tooltip,h=i.align,m=h===void 0?"start":h,g=i.direction,v=i.size,y=v===void 0?32:v,b=i.titleStyle,_=i.titleRender,E=i.spaceProps,w=i.extra,S=i.autoFocus,C=Pn(function(){return s||!1},{value:e.collapsed,onChange:e.onCollapse}),T=Ie(C,2),x=T[0],O=T[1],N=p.useContext(Ln.ConfigContext),I=N.getPrefixCls,M=QY(e),F=M.ColWrapper,k=M.RowWrapper,B=I("pro-form-group"),A=fjt(B),P=A.wrapSSR,z=A.hashId,L=a&&H.jsx(lh,{style:{marginInlineEnd:8},rotate:x?void 0:90}),V=H.jsx(RTt,{label:L?H.jsxs("div",{children:[L,d]}):d,tooltip:f}),j=p.useCallback(function(Q){var oe=Q.children;return H.jsx(Xi,W(W({},E),{},{className:Te("".concat(B,"-container ").concat(z),E==null?void 0:E.className),size:y,align:m,direction:g,style:W({rowGap:0},E==null?void 0:E.style),children:oe}))},[m,B,g,z,y,E]),U=_?_(V,e):V,J=p.useMemo(function(){var Q=[],oe=ce.Children.toArray(o).map(function(ge,fe){var ue;return ce.isValidElement(ge)&&ge!==null&&ge!==void 0&&(ue=ge.props)!==null&&ue!==void 0&&ue.hidden?(Q.push(ge),null):fe===0&&ce.isValidElement(ge)&&S?ce.cloneElement(ge,W(W({},ge.props),{},{autoFocus:S})):ge});return[H.jsx(k,{Wrapper:j,children:oe},"children"),Q.length>0?H.jsx("div",{style:{display:"none"},children:Q}):null]},[o,k,j,S]),te=Ie(J,2),ae=te[0],K=te[1];return P(H.jsx(F,{children:H.jsxs("div",{className:Te(B,z,ee({},"".concat(B,"-twoLine"),c==="twoLine")),style:l,ref:t,children:[K,(d||f||w)&&H.jsx("div",{className:"".concat(B,"-title ").concat(z).trim(),style:b,onClick:function(){O(!x)},children:w?H.jsxs("div",{style:{display:"flex",width:"100%",alignItems:"center",justifyContent:"space-between"},children:[U,H.jsx("span",{onClick:function(oe){return oe.stopPropagation()},children:w})]}):U}),H.jsx("div",{style:{display:a&&x?"none":void 0},children:ae})]})}))});JRe.displayName="ProForm-Group";var pjt=["fieldProps","options","radioType","layout","proFieldProps","valueEnum"],hjt=ce.forwardRef(function(e,t){var n=e.fieldProps,r=e.options,i=e.radioType,o=e.layout,a=e.proFieldProps,s=e.valueEnum,l=Dt(e,pjt);return H.jsx(ph,W(W({valueType:i==="button"?"radioButton":"radio",ref:t,valueEnum:Yv(s,void 0)},l),{},{fieldProps:W({options:r,layout:o},n),proFieldProps:a,filedConfig:{customLightMode:!0}}))}),mjt=ce.forwardRef(function(e,t){var n=e.fieldProps,r=e.children;return H.jsx(qi,W(W({},n),{},{ref:t,children:r}))}),gjt=AD(mjt,{valuePropName:"checked",ignoreWidth:!0}),VD=gjt;VD.Group=hjt;VD.Button=qi.Button;VD.displayName="ProFormComponent";var vjt=["children","trigger","onVisibleChange","onOpenChange","modalProps","onFinish","submitTimeout","title","width","visible","open"];function eIe(e){var t,n,r=e.children,i=e.trigger,o=e.onVisibleChange,a=e.onOpenChange,s=e.modalProps,l=e.onFinish,c=e.submitTimeout,u=e.title,d=e.width,f=e.visible,h=e.open,m=Dt(e,vjt);yT(!m.footer||!(s!=null&&s.footer),"ModalForm 是一个 ProForm 的特殊布局,如果想自定义按钮,请使用 submit.render 自定义。");var g=p.useContext(Ln.ConfigContext),v=p.useState([]),y=Ie(v,2),b=y[1],_=p.useState(!1),E=Ie(_,2),w=E[0],S=E[1],C=Pn(!!f,{value:h||f,onChange:a||o}),T=Ie(C,2),x=T[0],O=T[1],N=p.useRef(null),I=p.useCallback(function(L){N.current===null&&L&&b([]),N.current=L},[]),M=p.useRef(),F=p.useCallback(function(){var L,V,j,U=(L=(V=m.form)!==null&&V!==void 0?V:(j=m.formRef)===null||j===void 0?void 0:j.current)!==null&&L!==void 0?L:M.current;U&&s!==null&&s!==void 0&&s.destroyOnClose&&U.resetFields()},[s==null?void 0:s.destroyOnClose,m.form,m.formRef]);p.useImperativeHandle(m.formRef,function(){return M.current},[M.current]),p.useEffect(function(){(h||f)&&(a==null||a(!0),o==null||o(!0))},[f,h]);var k=p.useMemo(function(){return i?ce.cloneElement(i,W(W({key:"trigger"},i.props),{},{onClick:function(){var L=lo(pr().mark(function j(U){var J,te;return pr().wrap(function(K){for(;;)switch(K.prev=K.next){case 0:O(!x),(J=i.props)===null||J===void 0||(te=J.onClick)===null||te===void 0||te.call(J,U);case 2:case"end":return K.stop()}},j)}));function V(j){return L.apply(this,arguments)}return V}()})):null},[O,i,x]),B=p.useMemo(function(){var L,V,j,U,J,te,ae;return m.submitter===!1?!1:F1({searchConfig:{submitText:(L=(V=s==null?void 0:s.okText)!==null&&V!==void 0?V:(j=g.locale)===null||j===void 0||(j=j.Modal)===null||j===void 0?void 0:j.okText)!==null&&L!==void 0?L:"确认",resetText:(U=(J=s==null?void 0:s.cancelText)!==null&&J!==void 0?J:(te=g.locale)===null||te===void 0||(te=te.Modal)===null||te===void 0?void 0:te.cancelText)!==null&&U!==void 0?U:"取消"},resetButtonProps:{preventDefault:!0,disabled:c?w:void 0,onClick:function(Q){var oe;O(!1),s==null||(oe=s.onCancel)===null||oe===void 0||oe.call(s,Q)}}},(ae=m.submitter)!==null&&ae!==void 0?ae:{})},[(t=g.locale)===null||t===void 0||(t=t.Modal)===null||t===void 0?void 0:t.cancelText,(n=g.locale)===null||n===void 0||(n=n.Modal)===null||n===void 0?void 0:n.okText,s,m.submitter,O,w,c]),A=p.useCallback(function(L,V){return H.jsxs(H.Fragment,{children:[L,N.current&&V?H.jsx(ce.Fragment,{children:Ml.createPortal(V,N.current)},"submitter"):V]})},[]),P=p.useCallback(function(){var L=lo(pr().mark(function V(j){var U,J,te;return pr().wrap(function(K){for(;;)switch(K.prev=K.next){case 0:return U=l==null?void 0:l(j),c&&U instanceof Promise&&(S(!0),J=setTimeout(function(){return S(!1)},c),U.finally(function(){clearTimeout(J),S(!1)})),K.next=4,U;case 4:return te=K.sent,te&&O(!1),K.abrupt("return",te);case 7:case"end":return K.stop()}},V)}));return function(V){return L.apply(this,arguments)}}(),[l,O,c]),z=N2(x);return H.jsxs(H.Fragment,{children:[H.jsx(Wo,W(W(W({title:u,width:d||800},s),z),{},{onCancel:function(V){var j;c&&w||(O(!1),s==null||(j=s.onCancel)===null||j===void 0||j.call(s,V))},afterClose:function(){var V;F(),x&&O(!1),s==null||(V=s.afterClose)===null||V===void 0||V.call(s)},footer:m.submitter!==!1?H.jsx("div",{ref:I,style:{display:"flex",justifyContent:"flex-end"}}):null,children:H.jsx(tIe,W(W({formComponentType:"ModalForm",layout:"vertical"},m),{},{onInit:function(V,j){var U;m.formRef&&(m.formRef.current=j),m==null||(U=m.onInit)===null||U===void 0||U.call(m,V,j),M.current=j},formRef:M,submitter:B,onFinish:function(){var L=lo(pr().mark(function V(j){var U;return pr().wrap(function(te){for(;;)switch(te.prev=te.next){case 0:return te.next=2,P(j);case 2:return U=te.sent,te.abrupt("return",U);case 4:case"end":return te.stop()}},V)}));return function(V){return L.apply(this,arguments)}}(),contentRender:A,children:r}))})),k]})}var bjt=["fieldProps","children","params","proFieldProps","mode","valueEnum","request","showSearch","options"],yjt=["fieldProps","children","params","proFieldProps","mode","valueEnum","request","options"],_jt=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,f=Dt(t,bjt),h=p.useContext(US);return H.jsx(ph,W(W({valueEnum:Yv(l),request:c,params:o,valueType:"select",filedConfig:{customLightMode:!0},fieldProps:W({options:d,mode:s,showSearch:u,getPopupContainer:h.getPopupContainer},r),ref:n,proFieldProps:a},f),{},{children:i}))},Sjt=ce.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=Dt(e,yjt),d=W({options:c,mode:a||"multiple",labelInValue:!0,showSearch:!0,suffixIcon:null,autoClearSearchValue:!0,optionLabelProp:"label"},n),f=p.useContext(US);return H.jsx(ph,W(W({valueEnum:Yv(s),request:l,params:i,valueType:"select",filedConfig:{customLightMode:!0},fieldProps:W({getPopupContainer:f.getPopupContainer},d),ref:t,proFieldProps:o},u),{},{children:r}))}),Ejt=ce.forwardRef(_jt),Cjt=Sjt,G2=Ejt;G2.SearchSelect=Cjt;G2.displayName="ProFormComponent";var wjt=function(t){var n=ko(),r=li.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=Ff.useToken(),f=d.token,h=function(){r.submit(),i==null||i()},m=function(){r.resetFields(),a==null||a()},g=l.submitText,v=g===void 0?n.getMessage("tableForm.submit","提交"):g,y=l.resetText,b=y===void 0?n.getMessage("tableForm.reset","重置"):y,_=[];u!==!1&&_.push(p.createElement($n,W(W({},ur(u??{},["preventDefault"])),{},{key:"rest",onClick:function(S){var C;u!=null&&u.preventDefault||m(),u==null||(C=u.onClick)===null||C===void 0||C.call(u,S)}}),b)),c!==!1&&_.push(p.createElement($n,W(W({type:"primary"},ur(c||{},["preventDefault"])),{},{key:"submit",onClick:function(S){var C;c!=null&&c.preventDefault||h(),c==null||(C=c.onClick)===null||C===void 0||C.call(c,S)}}),v));var E=o?o(W(W({},t),{},{form:r,submit:h,reset:m}),_):_;return E?Array.isArray(E)?(E==null?void 0:E.length)<1?null:(E==null?void 0:E.length)===1?E[0]:H.jsx("div",{style:{display:"flex",gap:f.marginXS,alignItems:"center"},children:E}):E:null},Tjt=["fieldProps","proFieldProps"],xjt=["fieldProps","proFieldProps"],Tk="text",Ojt=function(t){var n=t.fieldProps,r=t.proFieldProps,i=Dt(t,Tjt);return H.jsx(ph,W({valueType:Tk,fieldProps:n,filedConfig:{valueType:Tk},proFieldProps:r},i))},Rjt=function(t){var n=Pn(t.open||!1,{value:t.open,onChange:t.onOpenChange}),r=Ie(n,2),i=r[0],o=r[1];return H.jsx(li.Item,{shouldUpdate:!0,noStyle:!0,children:function(s){var l,c=s.getFieldValue(t.name||[]);return H.jsx(bu,W(W({getPopupContainer:function(d){return d&&d.parentNode?d.parentNode:d},onOpenChange:function(d){return o(d)},content:H.jsxs("div",{style:{padding:"4px 0"},children:[(l=t.statusRender)===null||l===void 0?void 0:l.call(t,c),t.strengthText?H.jsx("div",{style:{marginTop:10},children:H.jsx("span",{children:t.strengthText})}):null]}),overlayStyle:{width:240},placement:"rightTop"},t.popoverProps),{},{open:i,children:t.children}))}})},Ijt=function(t){var n=t.fieldProps,r=t.proFieldProps,i=Dt(t,xjt),o=p.useState(!1),a=Ie(o,2),s=a[0],l=a[1];return n!=null&&n.statusRender&&i.name?H.jsx(Rjt,{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:H.jsx("div",{children:H.jsx(ph,W({valueType:"password",fieldProps:W(W({},ur(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:Tk}},i))})}):H.jsx(ph,W({valueType:"password",fieldProps:n,proFieldProps:r,filedConfig:{valueType:Tk}},i))},ci=Ojt;ci.Password=Ijt;ci.displayName="ProFormComponent";var Ajt=["fieldProps","proFieldProps"],Njt=function(t,n){var r=t.fieldProps,i=t.proFieldProps,o=Dt(t,Ajt);return H.jsx(ph,W({ref:n,valueType:"textarea",fieldProps:r,proFieldProps:i},o))};const XS=ce.forwardRef(Njt);var Mjt=["children","contentRender","submitter","fieldProps","formItemProps","groupProps","transformKey","formRef","onInit","form","loading","formComponentType","extraUrlParams","syncToUrl","onUrlSearchChange","onReset","omitNil","isKeyPressSubmit","autoFocusFirstInput","grid","rowProps","colProps"],kjt=["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"],zA=function(t,n,r){return t===!0?n:Yv(t,n,r)},Cle=function(t){return!t||Array.isArray(t)?t:[t]};function Pjt(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,f=e.syncToUrl,h=e.onUrlSearchChange,m=e.onReset,g=e.omitNil,v=g===void 0?!0:g;e.isKeyPressSubmit;var y=e.autoFocusFirstInput,b=y===void 0?!0:y,_=e.grid,E=e.rowProps,w=e.colProps,S=Dt(e,Mjt),C=li.useFormInstance(),T=(Ln==null||(t=Ln.useConfig)===null||t===void 0?void 0:t.call(Ln))||{componentSize:"middle"},x=T.componentSize,O=p.useRef(l||C),N=QY({grid:_,rowProps:E}),I=N.RowWrapper,M=gd(function(){return C}),F=p.useMemo(function(){return{getFieldsFormatValue:function(V){var j;return o((j=M())===null||j===void 0?void 0:j.getFieldsValue(V),v)},getFieldFormatValue:function(){var V,j=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],U=Cle(j);if(!U)throw new Error("nameList is require");var J=(V=M())===null||V===void 0?void 0:V.getFieldValue(U),te=U?Zo({},U,J):J,ae=nt(U);return ae.shift(),Io(o(te,v,ae),U)},getFieldFormatValueObject:function(V){var j,U=Cle(V),J=(j=M())===null||j===void 0?void 0:j.getFieldValue(U),te=U?Zo({},U,J):J;return o(te,v,U)},validateFieldsReturnFormatValue:function(){var L=lo(pr().mark(function j(U){var J,te,ae;return pr().wrap(function(Q){for(;;)switch(Q.prev=Q.next){case 0:if(!(!Array.isArray(U)&&U)){Q.next=2;break}throw new Error("nameList must be array");case 2:return Q.next=4,(J=M())===null||J===void 0?void 0:J.validateFields(U);case 4:return te=Q.sent,ae=o(te,v),Q.abrupt("return",ae||{});case 7:case"end":return Q.stop()}},j)}));function V(j){return L.apply(this,arguments)}return V}()}},[v,o]),k=p.useMemo(function(){return ce.Children.toArray(n).map(function(L,V){return V===0&&ce.isValidElement(L)&&b?ce.cloneElement(L,W(W({},L.props),{},{autoFocus:b})):L})},[b,n]),B=p.useMemo(function(){return typeof i=="boolean"||!i?{}:i},[i]),A=p.useMemo(function(){if(i!==!1)return H.jsx(wjt,W(W({},B),{},{onReset:function(){var V,j,U=o((V=O.current)===null||V===void 0?void 0:V.getFieldsValue(),v);if(B==null||(j=B.onReset)===null||j===void 0||j.call(B,U),m==null||m(U),f){var J,te=Object.keys(o((J=O.current)===null||J===void 0?void 0:J.getFieldsValue(),!1)).reduce(function(ae,K){return W(W({},ae),{},ee({},K,U[K]||void 0))},d);h(zA(f,te||{},"set"))}},submitButtonProps:W({loading:c},B.submitButtonProps)}),"submitter")},[i,B,c,o,v,m,f,d,h]),P=p.useMemo(function(){var L=_?H.jsx(I,{children:k}):k;return r?r(L,A,O.current):L},[_,I,k,r,A]),z=UTt(e.initialValues);return p.useEffect(function(){if(!(f||!e.initialValues||!z||S.request)){var L=hv(e.initialValues,z);yT(L,"initialValues 只在 form 初始化时生效,如果你需要异步加载推荐使用 request或者 initialValues ? <Form/> : null "),yT(L,"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]),p.useImperativeHandle(a,function(){return W(W({},O.current),F)},[F,O.current]),p.useEffect(function(){var L,V,j=o((L=O.current)===null||L===void 0||(V=L.getFieldsValue)===null||V===void 0?void 0:V.call(L,!0),v);s==null||s(j,W(W({},O.current),F))},[]),H.jsx(yOe.Provider,{value:W(W({},F),{},{formRef:O}),children:H.jsx(Ln,{componentSize:S.size||x,children:H.jsxs(zOe.Provider,{value:{grid:_,colProps:w},children:[S.component!==!1&&H.jsx("input",{type:"text",style:{display:"none"}}),P]})})})}var wle=0;function tIe(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,f=e.groupProps,h=e.dateFormatter,m=h===void 0?"string":h,g=e.formRef;e.onInit;var v=e.form,y=e.formComponentType;e.onReset,e.grid,e.rowProps,e.colProps;var b=e.omitNil,_=b===void 0?!0:b,E=e.request,w=e.params,S=e.initialValues,C=e.formKey,T=C===void 0?wle:C;e.readonly;var x=e.onLoadingChange,O=e.loading,N=Dt(e,kjt),I=p.useRef({}),M=Pn(!1,{onChange:x,value:O}),F=Ie(M,2),k=F[0],B=F[1],A=DOt({},{disabled:!r}),P=Ie(A,2),z=P[0],L=P[1],V=p.useRef(uk());p.useEffect(function(){wle+=0},[]);var j=HTt({request:E,params:w,proFieldKey:T}),U=Ie(j,1),J=U[0],te=p.useContext(Ln.ConfigContext),ae=te.getPrefixCls,K=ae("pro-form"),Q=zi("ProForm",function(ye){return ee({},".".concat(K),ee({},"> div:not(".concat(ye.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}}}))}),oe=Q.wrapSSR,ge=Q.hashId,fe=p.useState(function(){return r?zA(r,z,"get"):{}}),ue=Ie(fe,2),le=ue[0],ve=ue[1],ne=p.useRef({}),pe=p.useRef({}),be=gd(function(ye,he,_e){return NOt(MTt(ye,m,pe.current,he,_e),ne.current,he)});p.useEffect(function(){l||ve({})},[l]);var Re=gd(function(){return W(W({},z),n)});p.useEffect(function(){r&&L(zA(r,Re(),"set"))},[n,Re,r]);var Se=p.useMemo(function(){if(!(typeof window>"u")&&y&&["DrawerForm"].includes(y))return function(ye){return ye.parentNode||document.body}},[y]),Ce=gd(lo(pr().mark(function ye(){var he,_e,Oe,De,Y,D,G;return pr().wrap(function(me){for(;;)switch(me.prev=me.next){case 0:if(N.onFinish){me.next=2;break}return me.abrupt("return");case 2:if(!k){me.next=4;break}return me.abrupt("return");case 4:return me.prev=4,Oe=I==null||(he=I.current)===null||he===void 0||(_e=he.getFieldsFormatValue)===null||_e===void 0?void 0:_e.call(he),De=N.onFinish(Oe),De instanceof Promise&&B(!0),me.next=10,De;case 10:r&&(G=Object.keys(I==null||(Y=I.current)===null||Y===void 0||(D=Y.getFieldsFormatValue)===null||D===void 0?void 0:D.call(Y,void 0,!1)).reduce(function(se,Be){var Ve;return W(W({},se),{},ee({},Be,(Ve=Oe[Be])!==null&&Ve!==void 0?Ve:void 0))},n),Object.keys(z).forEach(function(se){G[se]!==!1&&G[se]!==0&&!G[se]&&(G[se]=void 0)}),L(zA(r,G,"set"))),B(!1),me.next=18;break;case 14:me.prev=14,me.t0=me.catch(4),console.log(me.t0),B(!1);case 18:case"end":return me.stop()}},ye,null,[[4,14]])})));return p.useImperativeHandle(g,function(){return I.current},[!J]),!J&&e.request?H.jsx("div",{style:{paddingTop:50,paddingBottom:50,textAlign:"center"},children:H.jsx(Ac,{})}):oe(H.jsx(mK.Provider,{value:{mode:e.readonly?"read":"edit"},children:H.jsx(TD,{needDeps:!0,children:H.jsx(US.Provider,{value:{formRef:I,fieldProps:c,proFieldProps:u,formItemProps:d,groupProps:f,formComponentType:y,getPopupContainer:Se,formKey:V.current,setFieldValueType:function(he,_e){var Oe=_e.valueType,De=Oe===void 0?"text":Oe,Y=_e.dateFormat,D=_e.transform;Array.isArray(he)&&(ne.current=Zo(ne.current,he,D),pe.current=Zo(pe.current,he,{valueType:De,dateFormat:Y}))}},children:H.jsx(vK.Provider,{value:{},children:H.jsx(li,W(W({onKeyPress:function(he){if(i&&he.key==="Enter"){var _e;(_e=I.current)===null||_e===void 0||_e.submit()}},autoComplete:"off",form:v},ur(N,["ref","labelWidth","autoFocusFirstInput"])),{},{ref:function(he){I.current&&(I.current.nativeElement=he==null?void 0:he.nativeElement)},initialValues:a?W(W(W({},S),J),le):W(W(W({},le),S),J),onValuesChange:function(he,_e){var Oe;N==null||(Oe=N.onValuesChange)===null||Oe===void 0||Oe.call(N,be(he,!!_),be(_e,!!_))},className:Te(e.className,K,ge),onFinish:Ce,children:H.jsx(Pjt,W(W({transformKey:be,autoComplete:"off",loading:k,onUrlSearchChange:L},e),{},{formRef:I,initialValues:W(W({},S),J)}))}))})})})}))}var Djt=function(t){return ee(ee({},"".concat(t.componentCls,"-collapse-label"),{paddingInline:1,paddingBlock:1}),"".concat(t.componentCls,"-container"),ee({},"".concat(t.antCls,"-form-item"),{marginBlockEnd:0}))};function Ljt(e){return zi("LightWrapper",function(t){var n=W(W({},t),{},{componentCls:".".concat(e)});return[Djt(n)]})}var $jt=["label","size","disabled","onChange","className","style","children","valuePropName","placeholder","labelFormatter","bordered","footerRender","allowClear","otherFieldProps","valueType","placement"],Fjt=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,f=t.bordered,h=t.footerRender,m=t.allowClear,g=t.otherFieldProps,v=t.valueType,y=t.placement,b=Dt(t,$jt),_=p.useContext(Ln.ConfigContext),E=_.getPrefixCls,w=E("pro-field-light-wrapper"),S=Ljt(w),C=S.wrapSSR,T=S.hashId,x=p.useState(t[c]),O=Ie(x,2),N=O[0],I=O[1],M=Pn(!1),F=Ie(M,2),k=F[0],B=F[1],A=function(){for(var V,j=arguments.length,U=new Array(j),J=0;J<j;J++)U[J]=arguments[J];g==null||(V=g.onChange)===null||V===void 0||V.call.apply(V,[g].concat(U)),o==null||o.apply(void 0,U)},P=t[c],z=p.useMemo(function(){var L;return P&&(v!=null&&(L=v.toLowerCase())!==null&&L!==void 0&&L.endsWith("range")&&v!=="digitRange"&&!d?kTt(P,SOe[v]||"YYYY-MM-DD"):Array.isArray(P)?P.map(function(V){return Gt(V)==="object"&&V.label&&V.value?V.label:V}):P)},[P,v,d]);return C(H.jsx(TTt,{disabled:i,open:k,onOpenChange:B,placement:y,label:H.jsx(Ih,{ellipsis:!0,size:r,onClear:function(){A==null||A(),I(null)},bordered:f,style:s,className:a,label:n,placeholder:u,value:z,disabled:i,formatter:d,allowClear:m}),footer:{onClear:function(){return I(null)},onConfirm:function(){A==null||A(N),B(!1)}},footerRender:h,children:H.jsx("div",{className:Te("".concat(w,"-container"),T,a),style:s,children:ce.cloneElement(l,W(W({},b),{},ee(ee({},c,N),"onChange",function(V){I(V!=null&&V.target?V.target.value:V)}),l.props))})}))};function Dr(e){return H.jsx(tIe,W({layout:"vertical",contentRender:function(n,r){return H.jsxs(H.Fragment,{children:[n,r]})}},e))}Dr.Group=JRe;Dr.useForm=li.useForm;Dr.Item=ZRe;Dr.useWatch=li.useWatch;Dr.ErrorList=li.ErrorList;Dr.Provider=li.Provider;Dr.useFormInstance=li.useFormInstance;Dr.EditOrReadOnlyContext=mK;var Bjt=function(t){return ee(ee({},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)",ee({},"".concat(t.componentCls,"-container"),{paddingInline:0,paddingBlockStart:32,paddingBlockEnd:24,backgroundRepeat:"no-repeat",backgroundPosition:"center 110px",backgroundSize:"100%"}))};function jjt(e){return zi("LoginForm",function(t){var n=W(W({},t),{},{componentCls:".".concat(e)});return[Bjt(n)]})}var Hjt=["logo","message","contentStyle","title","subTitle","actions","children","containerStyle","otherStyle"];function nIe(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=Dt(e,Hjt),f=ko(),h=d.submitter===!1?!1:W(W({searchConfig:{submitText:f.getMessage("loginForm.submitText","登录")}},d.submitter),{},{submitButtonProps:W({size:"large",style:{width:"100%"}},(t=d.submitter)===null||t===void 0?void 0:t.submitButtonProps),render:function(S,C){var T,x=C.pop();if(typeof(d==null||(T=d.submitter)===null||T===void 0?void 0:T.render)=="function"){var O,N;return d==null||(O=d.submitter)===null||O===void 0||(N=O.render)===null||N===void 0?void 0:N.call(O,S,C)}return x}}),m=p.useContext(Ln.ConfigContext),g=m.getPrefixCls("pro-form-login"),v=jjt(g),y=v.wrapSSR,b=v.hashId,_=function(S){return"".concat(g,"-").concat(S," ").concat(b)},E=p.useMemo(function(){return n?typeof n=="string"?H.jsx("img",{src:n}):n:null},[n]);return y(H.jsxs("div",{className:Te(_("container"),b),style:c,children:[H.jsxs("div",{className:"".concat(_("top")," ").concat(b).trim(),children:[o||E?H.jsxs("div",{className:"".concat(_("header")),children:[E?H.jsx("span",{className:_("logo"),children:E}):null,o?H.jsx("span",{className:_("title"),children:o}):null]}):null,a?H.jsx("div",{className:_("desc"),children:a}):null]}),H.jsxs("div",{className:_("main"),style:W({width:328},i),children:[H.jsxs(Dr,W(W({isKeyPressSubmit:!0},d),{},{submitter:h,children:[r,l]})),s?H.jsx("div",{className:_("main-other"),style:u,children:s}):null]})]}))}var Tle=p.createContext({}),rIe={exports:{}};(function(e){var t=d0.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})(rIe);var aa=rIe.exports,iIe={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})(iIe);var GD=iIe.exports,ZS={},oIe={exports:{}},aIe={exports:{}};(function(e){function t(n){if(Array.isArray(n))return n}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(aIe);var sIe=aIe.exports,lIe={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(f){d=!0,a=f}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})(lIe);var Ujt=lIe.exports,cIe={exports:{}},uIe={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})(uIe);var dIe=uIe.exports;(function(e){var t=dIe;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})(cIe);var bK=cIe.exports,fIe={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})(fIe);var pIe=fIe.exports;(function(e){var t=sIe,n=Ujt,r=bK,i=pIe;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})(oIe);var hIe=oIe.exports,mIe={exports:{}},gIe={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})(gIe);var zjt=gIe.exports;(function(e){var t=zjt;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})(mIe);var vIe=mIe.exports;const W2=Nx($qe);var JS={};Object.defineProperty(JS,"__esModule",{value:!0});JS.default=void 0;var Vjt=p,Gjt=(0,Vjt.createContext)({});JS.default=Gjt;var q2={},Ms={},A0={},WD={};Object.defineProperty(WD,"__esModule",{value:!0});WD.default=Wjt;function Wjt(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}var yK={};Object.defineProperty(yK,"__esModule",{value:!0});yK.default=qjt;function qjt(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 _K=xr.default;Object.defineProperty(A0,"__esModule",{value:!0});A0.clearContainerCache=eHt;A0.injectCSS=EK;A0.removeCSS=Zjt;A0.updateCSS=tHt;var xle=_K(f0),Yjt=_K(WD),Kjt=_K(yK),Ole="data-rc-order",Rle="data-rc-priority",Qjt="rc-util-key",xk=new Map;function bIe(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.mark;return t?t.startsWith("data-")?t:"data-".concat(t):Qjt}function qD(e){if(e.attachTo)return e.attachTo;var t=document.querySelector("head");return t||document.body}function Xjt(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function SK(e){return Array.from((xk.get(e)||e).children).filter(function(t){return t.tagName==="STYLE"})}function EK(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!(0,Yjt.default)())return null;var n=t.csp,r=t.prepend,i=t.priority,o=i===void 0?0:i,a=Xjt(r),s=a==="prependQueue",l=document.createElement("style");l.setAttribute(Ole,a),s&&o&&l.setAttribute(Rle,"".concat(o)),n!=null&&n.nonce&&(l.nonce=n==null?void 0:n.nonce),l.innerHTML=e;var c=qD(t),u=c.firstChild;if(r){if(s){var d=(t.styles||SK(c)).filter(function(f){if(!["prepend","prependQueue"].includes(f.getAttribute(Ole)))return!1;var h=Number(f.getAttribute(Rle)||0);return o>=h});if(d.length)return c.insertBefore(l,d[d.length-1].nextSibling),l}c.insertBefore(l,u)}else c.appendChild(l);return l}function yIe(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=qD(t);return(t.styles||SK(n)).find(function(r){return r.getAttribute(bIe(t))===e})}function Zjt(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=yIe(e,t);if(n){var r=qD(t);r.removeChild(n)}}function Jjt(e,t){var n=xk.get(e);if(!n||!(0,Kjt.default)(document,n)){var r=EK("",t),i=r.parentNode;xk.set(e,i),e.removeChild(r)}}function eHt(){xk.clear()}function tHt(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=qD(n),i=SK(r),o=(0,xle.default)((0,xle.default)({},n),{},{styles:i});Jjt(r,o);var a=yIe(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=EK(e,o);return u.setAttribute(bIe(o),t),u}var YD={};Object.defineProperty(YD,"__esModule",{value:!0});YD.getShadowRoot=nHt;YD.inShadow=SIe;function _Ie(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}function SIe(e){return _Ie(e)instanceof ShadowRoot}function nHt(e){return SIe(e)?_Ie(e):null}var Fl={};Object.defineProperty(Fl,"__esModule",{value:!0});Fl.call=CK;Fl.default=void 0;Fl.note=CIe;Fl.noteOnce=TIe;Fl.preMessage=void 0;Fl.resetWarned=wIe;Fl.warning=EIe;Fl.warningOnce=Y2;var FU={},rHt=Fl.preMessage=function(t){};function EIe(e,t){}function CIe(e,t){}function wIe(){FU={}}function CK(e,t,n){!t&&!FU[n]&&(e(!1,n),FU[n]=!0)}function Y2(e,t){CK(EIe,e,t)}function TIe(e,t){CK(CIe,e,t)}Y2.preMessage=rHt;Y2.resetWarned=wIe;Y2.noteOnce=TIe;Fl.default=Y2;var iHt=aa.default,KD=xr.default;Object.defineProperty(Ms,"__esModule",{value:!0});Ms.generate=jU;Ms.getSecondaryColor=pHt;Ms.iconStyles=void 0;Ms.isIconDefinition=fHt;Ms.normalizeAttrs=BU;Ms.normalizeTwoToneColors=hHt;Ms.useInsertStyles=Ms.svgBaseProps=void 0;Ms.warning=dHt;var j$=KD(f0),Ile=KD(d0),oHt=W2,aHt=A0,sHt=YD,lHt=KD(Fl),Ok=iHt(p),cHt=KD(JS);function uHt(e){return e.replace(/-(.)/g,function(t,n){return n.toUpperCase()})}function dHt(e,t){(0,lHt.default)(e,"[@ant-design/icons] ".concat(t))}function fHt(e){return(0,Ile.default)(e)==="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&((0,Ile.default)(e.icon)==="object"||typeof e.icon=="function")}function BU(){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[uHt(n)]=r}return t},{})}function jU(e,t,n){return n?Ok.default.createElement(e.tag,(0,j$.default)((0,j$.default)({key:t},BU(e.attrs)),n),(e.children||[]).map(function(r,i){return jU(r,"".concat(t,"-").concat(e.tag,"-").concat(i))})):Ok.default.createElement(e.tag,(0,j$.default)({key:t},BU(e.attrs)),(e.children||[]).map(function(r,i){return jU(r,"".concat(t,"-").concat(e.tag,"-").concat(i))}))}function pHt(e){return(0,oHt.generate)(e)[0]}function hHt(e){return e?Array.isArray(e)?e:[e]:[]}Ms.svgBaseProps={width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",focusable:"false"};var mHt=Ms.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);
}
}
`;Ms.useInsertStyles=function(t){var n=(0,Ok.useContext)(cHt.default),r=n.csp,i=n.prefixCls,o=n.layer,a=mHt;i&&(a=a.replace(/anticon/g,i)),o&&(a="@layer ".concat(o,` {
`).concat(a,`
}`)),(0,Ok.useEffect)(function(){var s=t.current,l=(0,sHt.getShadowRoot)(s);(0,aHt.updateCSS)(a,"@ant-design-icons",{prepend:!o,csp:r,attachTo:l})},[])};var xIe=xr.default,gHt=aa.default;Object.defineProperty(q2,"__esModule",{value:!0});q2.default=void 0;var vHt=xIe(vIe),FC=xIe(f0),bHt=gHt(p),v1=Ms,yHt=["icon","className","onClick","style","primaryColor","secondaryColor"],bw={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function _Ht(e){var t=e.primaryColor,n=e.secondaryColor;bw.primaryColor=t,bw.secondaryColor=n||(0,v1.getSecondaryColor)(t),bw.calculated=!!n}function SHt(){return(0,FC.default)({},bw)}var QD=function(t){var n=t.icon,r=t.className,i=t.onClick,o=t.style,a=t.primaryColor,s=t.secondaryColor,l=(0,vHt.default)(t,yHt),c=bHt.useRef(),u=bw;if(a&&(u={primaryColor:a,secondaryColor:s||(0,v1.getSecondaryColor)(a)}),(0,v1.useInsertStyles)(c),(0,v1.warning)((0,v1.isIconDefinition)(n),"icon should be icon definiton, but got ".concat(n)),!(0,v1.isIconDefinition)(n))return null;var d=n;return d&&typeof d.icon=="function"&&(d=(0,FC.default)((0,FC.default)({},d),{},{icon:d.icon(u.primaryColor,u.secondaryColor)})),(0,v1.generate)(d.icon,"svg-".concat(d.name),(0,FC.default)((0,FC.default)({className:r,onClick:i,style:o,"data-icon":d.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},l),{},{ref:c}))};QD.displayName="IconReact";QD.getTwoToneColors=SHt;QD.setTwoToneColors=_Ht;q2.default=QD;var XD={},OIe=xr.default;Object.defineProperty(XD,"__esModule",{value:!0});XD.getTwoToneColor=THt;XD.setTwoToneColor=wHt;var EHt=OIe(hIe),RIe=OIe(q2),CHt=Ms;function wHt(e){var t=(0,CHt.normalizeTwoToneColors)(e),n=(0,EHt.default)(t,2),r=n[0],i=n[1];return RIe.default.setTwoToneColors({primaryColor:r,secondaryColor:i})}function THt(){var e=RIe.default.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}var N0=xr.default,xHt=aa.default;Object.defineProperty(ZS,"__esModule",{value:!0});ZS.default=void 0;var OHt=N0(GD),RHt=N0(hIe),Ale=N0(wve),IHt=N0(vIe),qR=xHt(p),AHt=N0(VP),NHt=W2,MHt=N0(JS),kHt=N0(q2),wK=XD,PHt=Ms,DHt=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];(0,wK.setTwoToneColor)(NHt.blue.primary);var ZD=qR.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,IHt.default)(e,DHt),u=qR.useContext(MHt.default),d=u.prefixCls,f=d===void 0?"anticon":d,h=u.rootClassName,m=(0,AHt.default)(h,f,(0,Ale.default)((0,Ale.default)({},"".concat(f,"-").concat(r.name),!!r.name),"".concat(f,"-spin"),!!i||r.name==="loading"),n),g=a;g===void 0&&s&&(g=-1);var v=o?{msTransform:"rotate(".concat(o,"deg)"),transform:"rotate(".concat(o,"deg)")}:void 0,y=(0,PHt.normalizeTwoToneColors)(l),b=(0,RHt.default)(y,2),_=b[0],E=b[1];return qR.createElement("span",(0,OHt.default)({role:"img","aria-label":r.name},c,{ref:t,tabIndex:g,onClick:s,className:m}),qR.createElement(kHt.default,{icon:r,primaryColor:_,secondaryColor:E,style:v}))});ZD.displayName="AntdIcon";ZD.getTwoToneColor=wK.getTwoToneColor;ZD.setTwoToneColor=wK.setTwoToneColor;ZS.default=ZD;var LHt=["isLoading","pastDelay","timedOut","error","retry"],$Ht=function(t){t.isLoading,t.pastDelay,t.timedOut,t.error,t.retry;var n=Dt(t,LHt);return H.jsx("div",{style:{paddingBlockStart:100,textAlign:"center"},children:H.jsx(Ac,W({size:"large"},n))})},FHt=function(t){return ee({},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 BHt(e){return zi("ProLayoutFooter",function(t){var n=W(W({},t),{},{componentCls:".".concat(e)});return[FHt(n)]})}var jHt=function(t){var n=t.className,r=t.prefixCls,i=t.links,o=t.copyright,a=t.style,s=p.useContext(Ln.ConfigContext),l=s.getPrefixCls(r||"pro-global-footer"),c=BHt(l),u=c.wrapSSR,d=c.hashId;return(i==null||i===!1||Array.isArray(i)&&i.length===0)&&(o==null||o===!1)?null:u(H.jsxs("div",{className:Te(l,d,n),style:a,children:[i&&H.jsx("div",{className:"".concat(l,"-list ").concat(d).trim(),children:i.map(function(f){return H.jsx("a",{className:"".concat(l,"-list-link ").concat(d).trim(),title:f.key,target:f.blankTarget?"_blank":"_self",href:f.href,rel:"noreferrer",children:f.title},f.key)})}),o&&H.jsx("div",{className:"".concat(l,"-copyright ").concat(d).trim(),children:o})]}))},HHt=uo.Footer,UHt=function(t){var n=t.links,r=t.copyright,i=t.style,o=t.className,a=t.prefixCls;return H.jsx(HHt,{className:o,style:W({padding:0},i),children:H.jsx(jHt,{links:n,prefixCls:a,copyright:r===!1?null:H.jsxs(p.Fragment,{children:[H.jsx(wmt,{})," ",r]})})})},Nle=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 JD(e){return e.map(function(t){var n=t.children||[],r=W({},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 W(W({},t),{},{children:JD(n)});delete r.children}return delete r.routes,r}).filter(function(t){return t})}var zHt=function(){return H.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 12 12",fill:"currentColor","aria-hidden":"true",children:H.jsx("path",{d:"M0 0h3v3H0V0zm4.5 0h3v3h-3V0zM9 0h3v3H9V0zM0 4.5h3v3H0v-3zm4.503 0h3v3h-3v-3zM9 4.5h3v3H9v-3zM0 9h3v3H0V9zm4.503 0h3v3h-3V9zM9 9h3v3H9V9z"})})},VHt=function e(t){var n=t.appList,r=t.baseClassName,i=t.hashId,o=t.itemClick;return H.jsx("div",{className:"".concat(r,"-content ").concat(i).trim(),children:H.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?H.jsxs("div",{className:"".concat(r,"-content-list-item-group ").concat(i).trim(),children:[H.jsx("div",{className:"".concat(r,"-content-list-item-group-title ").concat(i).trim(),children:a.title}),H.jsx(e,{hashId:i,itemClick:o,appList:a==null?void 0:a.children,baseClassName:r})]},s):H.jsx("li",{className:"".concat(r,"-content-list-item ").concat(i).trim(),onClick:function(u){u.stopPropagation(),o==null||o(a)},children:H.jsxs("a",{href:o?void 0:a.url,target:a.target,rel:"noreferrer",children:[TK(a.icon),H.jsxs("div",{children:[H.jsx("div",{children:a.title}),a.desc?H.jsx("span",{children:a.desc}):null]})]})},s)})})})},GHt=function(t,n){if(t&&typeof t=="string"&&GY(t))return H.jsx("img",{src:t,alt:"logo"});if(typeof t=="function")return t();if(t&&typeof t=="string")return H.jsx("div",{id:"avatarLogo",children:t});if(!t&&n&&typeof n=="string"){var r=n.substring(0,1);return H.jsx("div",{id:"avatarLogo",children:r})}return t},WHt=function e(t){var n=t.appList,r=t.baseClassName,i=t.hashId,o=t.itemClick;return H.jsx("div",{className:"".concat(r,"-content ").concat(i).trim(),children:H.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?H.jsxs("div",{className:"".concat(r,"-content-list-item-group ").concat(i).trim(),children:[H.jsx("div",{className:"".concat(r,"-content-list-item-group-title ").concat(i).trim(),children:a.title}),H.jsx(e,{hashId:i,itemClick:o,appList:a==null?void 0:a.children,baseClassName:r})]},s):H.jsx("li",{className:"".concat(r,"-content-list-item ").concat(i).trim(),onClick:function(u){u.stopPropagation(),o==null||o(a)},children:H.jsxs("a",{href:o?"javascript:;":a.url,target:a.target,rel:"noreferrer",children:[GHt(a.icon,a.title),H.jsx("div",{children:H.jsx("div",{children:a.title})})]})},s)})})})},qHt=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":R$==null?void 0:R$(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"}}}}}}},YHt=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"}}}}}}},KHt=function(t){var n,r,i,o,a;return ee({},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":ee({},"".concat(t.antCls,"-popover-arrow"),{display:"none"}),"&-simple":YHt(t),"&-default":qHt(t)})};function QHt(e){return zi("AppsLogoComponents",function(t){var n=W(W({},t),{},{componentCls:".".concat(e)});return[KHt(n)]})}var TK=function(t){return typeof t=="string"?H.jsx("img",{width:"auto",height:22,src:t,alt:"logo"}):typeof t=="function"?t():t},xK=function(t){var n,r=t.appList,i=t.appListRender,o=t.prefixCls,a=o===void 0?"ant-pro":o,s=t.onItemClick,l=ce.useRef(null),c=ce.useRef(null),u="".concat(a,"-layout-apps"),d=QHt(u),f=d.wrapSSR,h=d.hashId,m=p.useState(!1),g=Ie(m,2),v=g[0],y=g[1],b=function(C){s==null||s(C,c)},_=p.useMemo(function(){var S=r==null?void 0:r.some(function(C){return!(C!=null&&C.desc)});return S?H.jsx(WHt,{hashId:h,appList:r,itemClick:s?b:void 0,baseClassName:"".concat(u,"-simple")}):H.jsx(VHt,{hashId:h,appList:r,itemClick:s?b:void 0,baseClassName:"".concat(u,"-default")})},[r,u,h]);if(!(t!=null&&(n=t.appList)!==null&&n!==void 0&&n.length))return null;var E=i?i(t==null?void 0:t.appList,_):_,w=N2(void 0,function(S){return y(S)});return f(H.jsxs(H.Fragment,{children:[H.jsx("div",{ref:l,onClick:function(C){C.stopPropagation(),C.preventDefault()}}),H.jsx(bu,W(W({placement:"bottomRight",trigger:["click"],zIndex:9999,arrow:!1},w),{},{overlayClassName:"".concat(u,"-popover ").concat(h).trim(),content:E,getPopupContainer:function(){return l.current||document.body},children:H.jsx("span",{ref:c,onClick:function(C){C.stopPropagation()},className:Te("".concat(u,"-icon"),h,ee({},"".concat(u,"-icon-active"),v)),children:H.jsx(zHt,{})})}))]}))};function XHt(){return H.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 12 12",fill:"currentColor","aria-hidden":"true",children:H.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 ZHt=function(t){var n,r,i;return ee({},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 JHt(e){return zi("SiderMenuCollapsedIcon",function(t){var n=W(W({},t),{},{componentCls:".".concat(e)});return[ZHt(n)]})}var eUt=["isMobile","collapsed"],tUt=function(t){var n=t.isMobile,r=t.collapsed,i=Dt(t,eUt),o=JHt(t.className),a=o.wrapSSR,s=o.hashId;return n&&r?null:a(H.jsx("div",W(W({},i),{},{className:Te(t.className,s,ee(ee({},"".concat(t.className,"-collapsed"),r),"".concat(t.className,"-is-mobile"),n)),children:H.jsx(XHt,{})})))},IIe={navTheme:"light",layout:"side",contentWidth:"Fluid",fixedHeader:!1,fixSiderbar:!0,iconfontUrl:"",colorPrimary:"#1677FF",splitMenus:!1},nUt=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 W(W(ee({},"".concat(t.componentCls),ee(ee(ee(ee(ee(ee(ee(ee(ee({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"),ee({},"> ".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",ee(ee(ee({},"".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"),ee({},"".concat(t.antCls,"-menu-item-group-title"),{paddingInline:0}))),"&-item-title",ee(ee(ee(ee(ee({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",ee(ee({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"),ee({lineHeight:"16px",gap:0},"&".concat(t.componentCls,"-item-title-collapsed"),ee(ee({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",ee({},"".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")?{}:ee({},"".concat(t.antCls,"-menu-submenu").concat(t.antCls,"-menu-submenu-popup"),ee({},"".concat(t.componentCls,"-item-title"),{alignItems:"flex-start"}))),{},ee({},"".concat(t.antCls,"-menu-submenu-popup"),{backgroundColor:"rgba(255, 255, 255, 0.42)","-webkit-backdrop-filter":"blur(8px)",backdropFilter:"blur(8px)"}))};function rUt(e,t){return zi("ProLayoutBaseMenu"+t,function(n){var r=W(W({},n),{},{componentCls:".".concat(e)});return[nUt(r,t||"inline")]})}var Mle=function(t){var n=p.useState(t.collapsed),r=Ie(n,2),i=r[0],o=r[1],a=p.useState(!1),s=Ie(a,2),l=s[0],c=s[1];return p.useEffect(function(){c(!1),setTimeout(function(){o(t.collapsed)},400)},[t.collapsed]),t.disable?t.children:H.jsx(Ia,{title:t.title,open:i&&t.collapsed?l:!1,placement:"right",onOpenChange:c,children:t.children})},AIe=$xe({scriptUrl:IIe.iconfontUrl}),kle=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(GY(t)||VTt(t))return H.jsx("img",{width:16,src:t,alt:"icon",className:r},t);if(t.startsWith(n))return H.jsx(AIe,{type:t})}return t},Ple=function(t){if(t&&typeof t=="string"){var n=t.substring(0,1).toUpperCase();return n}return null},iUt=Qr(function e(t){var n=this;Kr(this,e),ee(this,"props",void 0),ee(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)}),ee(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,f=a.iconPrefixes,h=a.layout,m=(d==null?void 0:d.type)==="group"&&h!=="top",g=n.props.token,v=n.getIntlName(r),y=(r==null?void 0:r.children)||(r==null?void 0:r.routes),b=m&&i===0?"group":void 0;if(Array.isArray(y)&&y.length>0){var _,E,w,S,C,T=i===0||m&&i===1,x=kle(r.icon,f,"".concat(l,"-icon ").concat((_=n.props)===null||_===void 0?void 0:_.hashId)),O=u&&T?Ple(v):null,N=H.jsxs("div",{className:Te("".concat(l,"-item-title"),(E=n.props)===null||E===void 0?void 0:E.hashId,ee(ee(ee(ee({},"".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:T&&x?H.jsx("span",{className:"".concat(l,"-item-icon ").concat((w=n.props)===null||w===void 0?void 0:w.hashId).trim(),children:x}):O,H.jsx("span",{className:Te("".concat(l,"-item-text"),(S=n.props)===null||S===void 0?void 0:S.hashId,ee({},"".concat(l,"-item-text-has-icon"),b!=="group"&&T&&(x||O))),children:v})]}),I=s?s(W(W({},r),{},{isUrl:!1}),N,n.props):N;if(m&&i===0&&n.props.collapsed&&!d.collapsedShowGroupTitle)return n.getNavMenuItems(y,i+1,i);var M=n.getNavMenuItems(y,i+1,m&&i===0&&n.props.collapsed?i:i+1);return[{type:b,key:r.key||r.path,label:I,onClick:m?void 0:r.onTitleClick,children:M,className:Te(ee(ee(ee({},"".concat(l,"-group"),b==="group"),"".concat(l,"-submenu"),b!=="group"),"".concat(l,"-submenu-has-icon"),b!=="group"&&T&&x))},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:g==null||(C=g.layout)===null||C===void 0||(C=C.sider)===null||C===void 0?void 0:C.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)}}),ee(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}),ee(this,"getMenuItemPath",function(r,i,o){var a,s,l,c,u=n.conversionPath(r.path||"/"),d=n.props,f=d.location,h=f===void 0?{pathname:"/"}:f,m=d.isMobile,g=d.onCollapse,v=d.menuItemRender,y=d.iconPrefixes,b=n.getIntlName(r),_=n.props,E=_.baseClassName,w=_.menu,S=_.collapsed,C=(w==null?void 0:w.type)==="group",T=i===0||C&&i===1,x=T?kle(r.icon,y,"".concat(E,"-icon ").concat((a=n.props)===null||a===void 0?void 0:a.hashId)):null,O=S&&T?Ple(b):null,N=H.jsxs("div",{className:Te("".concat(E,"-item-title"),(s=n.props)===null||s===void 0?void 0:s.hashId,ee(ee(ee({},"".concat(E,"-item-title-collapsed"),S),"".concat(E,"-item-title-collapsed-level-").concat(o),S),"".concat(E,"-item-collapsed-show-title"),(w==null?void 0:w.collapsedShowTitle)&&S)),children:[H.jsx("span",{className:"".concat(E,"-item-icon ").concat((l=n.props)===null||l===void 0?void 0:l.hashId).trim(),style:{display:O===null&&!x?"none":""},children:x||H.jsx("span",{className:"anticon",children:O})}),H.jsx("span",{className:Te("".concat(E,"-item-text"),(c=n.props)===null||c===void 0?void 0:c.hashId,ee({},"".concat(E,"-item-text-has-icon"),T&&(x||O))),children:b})]},u),I=GY(u);if(I){var M,F,k;N=H.jsxs("span",{onClick:function(){var P,z;(P=window)===null||P===void 0||(z=P.open)===null||z===void 0||z.call(P,u,"_blank")},className:Te("".concat(E,"-item-title"),(M=n.props)===null||M===void 0?void 0:M.hashId,ee(ee(ee(ee({},"".concat(E,"-item-title-collapsed"),S),"".concat(E,"-item-title-collapsed-level-").concat(o),S),"".concat(E,"-item-link"),!0),"".concat(E,"-item-collapsed-show-title"),(w==null?void 0:w.collapsedShowTitle)&&S)),children:[H.jsx("span",{className:"".concat(E,"-item-icon ").concat((F=n.props)===null||F===void 0?void 0:F.hashId).trim(),style:{display:O===null&&!x?"none":""},children:x||H.jsx("span",{className:"anticon",children:O})}),H.jsx("span",{className:Te("".concat(E,"-item-text"),(k=n.props)===null||k===void 0?void 0:k.hashId,ee({},"".concat(E,"-item-text-has-icon"),T&&(x||O))),children:b})]},u)}if(v){var B=W(W({},r),{},{isUrl:I,itemPath:u,isMobile:m,replace:u===h.pathname,onClick:function(){return g&&g(!0)},children:void 0});return i===0?H.jsx(Mle,{collapsed:S,title:b,disable:r.disabledTooltip,children:v(B,N,n.props)}):v(B,N,n.props)}return i===0?H.jsx(Mle,{collapsed:S,title:b,disable:r.disabledTooltip,children:N}):N}),ee(this,"conversionPath",function(r){return r&&r.indexOf("http")===0?r:"/".concat(r||"").replace(/\/+/g,"/")}),this.props=t}),oUt=function(t,n){var r=n.layout,i=n.collapsed,o={};return t&&!i&&["side","mix"].includes(r||"mix")&&(o={openKeys:t}),o},NIe=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,f=t.onSelect,h=t.menuRenderType,m=t.openKeys,g=p.useContext(md),v=g.dark,y=g.token,b="".concat(s,"-base-menu-").concat(n),_=p.useRef([]),E=Pn(l==null?void 0:l.defaultOpenAll),w=Ie(E,2),S=w[0],C=w[1],T=Pn(function(){return l!=null&&l.defaultOpenAll?Nle(a)||[]:m===!1?!1:[]},{value:m===!1?void 0:m,onChange:i}),x=Ie(T,2),O=x[0],N=x[1],I=Pn([],{value:d,onChange:f?function(j){f&&j&&f(j)}:void 0}),M=Ie(I,2),F=M[0],k=M[1];p.useEffect(function(){l!=null&&l.defaultOpenAll||m===!1||c&&(N(c),k(c))},[c.join("-")]),p.useEffect(function(){u&&(AIe=$xe({scriptUrl:u}))},[u]),p.useEffect(function(){if(c.join("-")!==(F||[]).join("-")&&k(c),!S&&m!==!1&&c.join("-")!==(O||[]).join("-")){var j=c;(l==null?void 0:l.autoClose)===!1&&(j=Array.from(new Set([].concat(nt(c),nt(O||[]))))),N(j)}else l!=null&&l.ignoreFlatMenu&&S?N(Nle(a)):C(!1)},[c.join("-")]);var B=p.useMemo(function(){return oUt(O,t)},[O&&O.join(","),t.layout,t.collapsed]),A=rUt(b,n),P=A.wrapSSR,z=A.hashId,L=p.useMemo(function(){return new iUt(W(W({},t),{},{token:y,menuRenderType:h,baseClassName:b,hashId:z}))},[t,y,h,b,z]);if(l!=null&&l.loading)return H.jsx("div",{style:n!=null&&n.includes("inline")?{padding:24}:{marginBlockStart:16},children:H.jsx(Ch,{active:!0,title:!1,paragraph:{rows:n!=null&&n.includes("inline")?6:1}})});t.openKeys===!1&&!t.handleOpenChange&&(_.current=c);var V=t.postMenuData?t.postMenuData(a):a;return V&&(V==null?void 0:V.length)<1?null:P(p.createElement(Bd,W(W({},B),{},{_internalDisableMenuItemTitleTooltip:!0,key:"Menu",mode:n,inlineIndent:16,defaultOpenKeys:_.current,theme:v?"dark":"light",selectedKeys:F,style:W({backgroundColor:"transparent",border:"none"},o),className:Te(r,z,b,ee(ee({},"".concat(b,"-horizontal"),n==="horizontal"),"".concat(b,"-collapsed"),t.collapsed)),items:L.getNavMenuItems(V,0,0),onOpenChange:function(U){t.collapsed||N(U)}},t.menuProps)))};function aUt(e,t){var n=t.stylish,r=t.proLayoutCollapsedWidth;return zi("ProLayoutSiderMenuStylish",function(i){var o=W(W({},i),{},{componentCls:".".concat(e),proLayoutCollapsedWidth:r});return n?[ee({},"div".concat(i.proComponentsCls,"-layout"),ee({},"".concat(o.componentCls),n==null?void 0:n(o)))]:[]})}var sUt=["title","render"],lUt=ce.memo(function(e){return H.jsx(H.Fragment,{children:e.children})}),cUt=uo.Sider,Dle=uo._InternalSiderContext,uUt=Dle===void 0?{Provider:lUt}:Dle,OK=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=TK(r),l=H.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?H.jsx("a",{children:s},"title"):H.jsxs("a",{children:[s,l]},"title")},Lle=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,f=t.breakpoint,h=f===void 0?"lg":f,m=t.style,g=t.layout,v=t.menuExtraRender,y=v===void 0?!1:v,b=t.links,_=t.menuContentRender,E=t.collapsedButtonRender,w=t.prefixCls,S=t.avatarProps,C=t.rightContentRender,T=t.actionsRender,x=t.onOpenChange,O=t.stylish,N=t.logoStyle,I=p.useContext(md),M=I.hashId,F=p.useMemo(function(){return!(u||g==="mix")},[u,g]),k="".concat(w,"-sider"),B=64,A=aUt("".concat(k,".").concat(k,"-stylish"),{stylish:O,proLayoutCollapsedWidth:B}),P=Te("".concat(k),M,ee(ee(ee(ee(ee(ee(ee({},"".concat(k,"-fixed"),o),"".concat(k,"-fixed-mix"),g==="mix"&&!u&&o),"".concat(k,"-collapsed"),t.collapsed),"".concat(k,"-layout-").concat(g),g&&!u),"".concat(k,"-light"),l!=="dark"),"".concat(k,"-mix"),g==="mix"&&!u),"".concat(k,"-stylish"),!!O)),z=OK(t),L=y&&y(t),V=p.useMemo(function(){return _!==!1&&p.createElement(NIe,W(W({},t),{},{key:"base-menu",mode:r&&!u?"vertical":"inline",handleOpenChange:x,style:{width:"100%"},className:"".concat(k,"-menu ").concat(M).trim()}))},[k,M,_,x,t]),j=(b||[]).map(function(ue,le){return{className:"".concat(k,"-link"),label:ue,key:le}}),U=p.useMemo(function(){return _?_(t,V):V},[_,V,t]),J=p.useMemo(function(){if(!S)return null;var ue=S.title,le=S.render,ve=Dt(S,sUt),ne=H.jsxs("div",{className:"".concat(k,"-actions-avatar"),children:[ve!=null&&ve.src||ve!=null&&ve.srcSet||ve.icon||ve.children?H.jsx(xh,W({size:28},ve)):null,S.title&&!r&&H.jsx("span",{children:ue})]});return le?le(S,ne,t):ne},[S,k,r]),te=p.useMemo(function(){return T?H.jsx(Xi,{align:"center",size:4,direction:r?"vertical":"horizontal",className:Te(["".concat(k,"-actions-list"),r&&"".concat(k,"-actions-list-collapsed"),M]),children:[T==null?void 0:T(t)].flat(1).map(function(ue,le){return H.jsx("div",{className:"".concat(k,"-actions-list-item ").concat(M).trim(),children:ue},le)})}):null},[T,k,r]),ae=p.useMemo(function(){return H.jsx(xK,{onItemClick:t.itemClick,appListRender:t.appListRender,appList:t.appList,prefixCls:t.prefixCls})},[t.appList,t.appListRender,t.prefixCls]),K=p.useMemo(function(){if(E===!1)return null;var ue=H.jsx(tUt,{isMobile:u,collapsed:i,className:"".concat(k,"-collapsed-button"),onClick:function(){s==null||s(!i)}});return E?E(r,ue):ue},[E,u,i,k,r,s]),Q=p.useMemo(function(){return!J&&!te?null:H.jsxs("div",{className:Te("".concat(k,"-actions"),M,r&&"".concat(k,"-actions-collapsed")),children:[J,te]})},[te,J,k,r,M]),oe=p.useMemo(function(){var ue;return t!=null&&(ue=t.menu)!==null&&ue!==void 0&&ue.hideMenuWhenCollapsed&&r?"".concat(k,"-hide-menu-collapsed"):null},[k,r,t==null||(n=t.menu)===null||n===void 0?void 0:n.hideMenuWhenCollapsed]),ge=a&&(a==null?void 0:a(t)),fe=H.jsxs(H.Fragment,{children:[z&&H.jsxs("div",{className:Te([Te("".concat(k,"-logo"),M,ee({},"".concat(k,"-logo-collapsed"),r))]),onClick:F?d:void 0,id:"logo",style:N,children:[z,ae]}),L&&H.jsx("div",{className:Te(["".concat(k,"-extra"),!z&&"".concat(k,"-extra-no-logo"),M]),children:L}),H.jsx("div",{style:{flex:1,overflowY:"auto",overflowX:"hidden"},children:U}),H.jsxs(uUt.Provider,{value:{},children:[b?H.jsx("div",{className:"".concat(k,"-links ").concat(M).trim(),children:H.jsx(Bd,{inlineIndent:16,className:"".concat(k,"-link-menu ").concat(M).trim(),selectedKeys:[],openKeys:[],theme:l,mode:"inline",items:j})}):null,F&&H.jsxs(H.Fragment,{children:[Q,!te&&C?H.jsx("div",{className:Te("".concat(k,"-actions"),M,ee({},"".concat(k,"-actions-collapsed"),r)),children:C==null?void 0:C(t)}):null]}),ge&&H.jsx("div",{className:Te(["".concat(k,"-footer"),M,ee({},"".concat(k,"-footer-collapsed"),r)]),children:ge})]})]});return A.wrapSSR(H.jsxs(H.Fragment,{children:[o&&!u&&!oe&&H.jsx("div",{style:W({width:r?B:c,overflow:"hidden",flex:"0 0 ".concat(r?B:c,"px"),maxWidth:r?B:c,minWidth:r?B:c,transition:"all 0.2s ease 0s"},m)}),H.jsxs(cUt,{collapsible:!0,trigger:null,collapsed:r,breakpoint:h===!1?void 0:h,onCollapse:function(le){u||s==null||s(le)},collapsedWidth:B,style:m,theme:l,width:c,className:Te(P,M,oe),children:[oe?H.jsx("div",{className:"".concat(k,"-hide-when-collapsed ").concat(M).trim(),style:{height:"100%",width:"100%",opacity:oe?0:1},children:fe}):fe,K]})]}))},dUt=function(t){var n,r,i,o,a;return ee({},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 fUt(e){return zi("ProLayoutRightContent",function(t){var n=W(W({},t),{},{componentCls:".".concat(e)});return[dUt(n)]})}var pUt=["rightContentRender","avatarProps","actionsRender","headerContentRender"],hUt=["title","render"],MIe=function(t){var n=t.rightContentRender,r=t.avatarProps,i=t.actionsRender;t.headerContentRender;var o=Dt(t,pUt),a=p.useContext(Ln.ConfigContext),s=a.getPrefixCls,l="".concat(s(),"-pro-global-header"),c=fUt(l),u=c.wrapSSR,d=c.hashId,f=p.useState("auto"),h=Ie(f,2),m=h[0],g=h[1],v=p.useMemo(function(){if(!r)return null;var E=r.title,w=r.render,S=Dt(r,hUt),C=[S!=null&&S.src||S!=null&&S.srcSet||S.icon||S.children?p.createElement(xh,W(W({},S),{},{size:28,key:"avatar"})):null,E?H.jsx("span",{style:{marginInlineStart:8},children:E},"name"):void 0];return w?w(r,H.jsx("div",{children:C}),o):H.jsx("div",{children:C})},[r]),y=i||v?function(E){var w=i&&(i==null?void 0:i(E));return!w&&!v?null:Array.isArray(w)?u(H.jsxs("div",{className:"".concat(l,"-header-actions ").concat(d).trim(),children:[w.filter(Boolean).map(function(S,C){var T=!1;if(ce.isValidElement(S)){var x;T=!!(S!=null&&(x=S.props)!==null&&x!==void 0&&x["aria-hidden"])}return H.jsx("div",{className:Te("".concat(l,"-header-actions-item ").concat(d),ee({},"".concat(l,"-header-actions-hover"),!T)),children:S},C)}),v&&H.jsx("span",{className:"".concat(l,"-header-actions-avatar ").concat(d).trim(),children:v})]})):u(H.jsxs("div",{className:"".concat(l,"-header-actions ").concat(d).trim(),children:[w,v&&H.jsx("span",{className:"".concat(l,"-header-actions-avatar ").concat(d).trim(),children:v})]}))}:void 0,b=PTt(function(){var E=lo(pr().mark(function w(S){return pr().wrap(function(T){for(;;)switch(T.prev=T.next){case 0:g(S);case 1:case"end":return T.stop()}},w)}));return function(w){return E.apply(this,arguments)}}(),160),_=y||n;return H.jsx("div",{className:"".concat(l,"-right-content ").concat(d).trim(),style:{minWidth:m,height:"100%"},children:H.jsx("div",{style:{height:"100%"},children:H.jsx(Ta,{onResize:function(w){var S=w.width;b.run(S)},children:_?H.jsx("div",{style:{display:"flex",alignItems:"center",height:"100%",justifyContent:"flex-end"},children:_(W(W({},o),{},{rightContentSize:m}))}):null})})})},mUt=function(t){var n,r;return ee({},t.componentCls,{position:"relative",width:"100%",height:"100%",backgroundColor:"transparent",".anticon":{color:"inherit"},"&-main":{display:"flex",height:"100%",paddingInlineStart:"16px","&-left":ee({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 gUt(e){return zi("ProLayoutTopNavHeader",function(t){var n=W(W({},t),{},{componentCls:".".concat(e)});return[mUt(n)]})}var kIe=function(t){var n,r,i,o,a,s,l,c=p.useRef(null),u=t.onMenuHeaderClick,d=t.contentWidth,f=t.rightContentRender,h=t.className,m=t.style,g=t.headerContentRender,v=t.layout,y=t.actionsRender,b=p.useContext(Ln.ConfigContext),_=b.getPrefixCls,E=p.useContext(md),w=E.dark,S="".concat(t.prefixCls||_("pro"),"-top-nav-header"),C=gUt(S),T=C.wrapSSR,x=C.hashId,O=void 0;t.menuHeaderRender!==void 0?O="menuHeaderRender":(v==="mix"||v==="top")&&(O="headerTitleRender");var N=OK(W(W({},t),{},{collapsed:!1}),O),I=p.useContext(md),M=I.token,F=p.useMemo(function(){var k,B,A,P,z,L,V,j,U,J,te,ae,K,Q=H.jsx(Ln,{theme:{hashed:Ry(),components:{Layout:{headerBg:"transparent",bodyBg:"transparent"},Menu:W({},EOe({colorItemBg:((k=M.layout)===null||k===void 0||(k=k.header)===null||k===void 0?void 0:k.colorBgHeader)||"transparent",colorSubItemBg:((B=M.layout)===null||B===void 0||(B=B.header)===null||B===void 0?void 0:B.colorBgHeader)||"transparent",radiusItem:M.borderRadius,colorItemBgSelected:((A=M.layout)===null||A===void 0||(A=A.header)===null||A===void 0?void 0:A.colorBgMenuItemSelected)||(M==null?void 0:M.colorBgTextHover),itemHoverBg:((P=M.layout)===null||P===void 0||(P=P.header)===null||P===void 0?void 0:P.colorBgMenuItemHover)||(M==null?void 0:M.colorBgTextHover),colorItemBgSelectedHorizontal:((z=M.layout)===null||z===void 0||(z=z.header)===null||z===void 0?void 0:z.colorBgMenuItemSelected)||(M==null?void 0:M.colorBgTextHover),colorActiveBarWidth:0,colorActiveBarHeight:0,colorActiveBarBorderSize:0,colorItemText:((L=M.layout)===null||L===void 0||(L=L.header)===null||L===void 0?void 0:L.colorTextMenu)||(M==null?void 0:M.colorTextSecondary),colorItemTextHoverHorizontal:((V=M.layout)===null||V===void 0||(V=V.header)===null||V===void 0?void 0:V.colorTextMenuActive)||(M==null?void 0:M.colorText),colorItemTextSelectedHorizontal:((j=M.layout)===null||j===void 0||(j=j.header)===null||j===void 0?void 0:j.colorTextMenuSelected)||(M==null?void 0:M.colorTextBase),horizontalItemBorderRadius:4,colorItemTextHover:((U=M.layout)===null||U===void 0||(U=U.header)===null||U===void 0?void 0:U.colorTextMenuActive)||"rgba(0, 0, 0, 0.85)",horizontalItemHoverBg:((J=M.layout)===null||J===void 0||(J=J.header)===null||J===void 0?void 0:J.colorBgMenuItemHover)||"rgba(0, 0, 0, 0.04)",colorItemTextSelected:((te=M.layout)===null||te===void 0||(te=te.header)===null||te===void 0?void 0:te.colorTextMenuSelected)||"rgba(0, 0, 0, 1)",popupBg:M==null?void 0:M.colorBgElevated,subMenuItemBg:M==null?void 0:M.colorBgElevated,darkSubMenuItemBg:"transparent",darkPopupBg:M==null?void 0:M.colorBgElevated}))},token:{colorBgElevated:((ae=M.layout)===null||ae===void 0||(ae=ae.header)===null||ae===void 0?void 0:ae.colorBgHeader)||"transparent"}},children:H.jsx(NIe,W(W(W({theme:w?"dark":"light"},t),{},{className:"".concat(S,"-base-menu ").concat(x).trim()},t.menuProps),{},{style:W({width:"100%"},(K=t.menuProps)===null||K===void 0?void 0:K.style),collapsed:!1,menuRenderType:"header",mode:"horizontal"}))});return g?g(t,Q):Q},[(n=M.layout)===null||n===void 0||(n=n.header)===null||n===void 0?void 0:n.colorBgHeader,(r=M.layout)===null||r===void 0||(r=r.header)===null||r===void 0?void 0:r.colorBgMenuItemSelected,(i=M.layout)===null||i===void 0||(i=i.header)===null||i===void 0?void 0:i.colorBgMenuItemHover,(o=M.layout)===null||o===void 0||(o=o.header)===null||o===void 0?void 0:o.colorTextMenu,(a=M.layout)===null||a===void 0||(a=a.header)===null||a===void 0?void 0:a.colorTextMenuActive,(s=M.layout)===null||s===void 0||(s=s.header)===null||s===void 0?void 0:s.colorTextMenuSelected,(l=M.layout)===null||l===void 0||(l=l.header)===null||l===void 0?void 0:l.colorBgMenuElevated,M.borderRadius,M==null?void 0:M.colorBgTextHover,M==null?void 0:M.colorTextSecondary,M==null?void 0:M.colorText,M==null?void 0:M.colorTextBase,M.colorBgElevated,w,t,S,x,g]);return T(H.jsx("div",{className:Te(S,x,h,ee({},"".concat(S,"-light"),!0)),style:m,children:H.jsxs("div",{ref:c,className:Te("".concat(S,"-main"),x,ee({},"".concat(S,"-wide"),d==="Fixed"&&v==="top")),children:[N&&H.jsxs("div",{className:Te("".concat(S,"-main-left ").concat(x)),onClick:u,children:[H.jsx(xK,W({},t)),H.jsx("div",{className:"".concat(S,"-logo ").concat(x).trim(),id:"logo",children:N},"logo")]}),H.jsx("div",{style:{flex:1},className:"".concat(S,"-menu ").concat(x).trim(),children:F}),(f||y||t.avatarProps)&&H.jsx(MIe,W(W({rightContentRender:f},t),{},{prefixCls:S}))]})}))},vUt=function(t){var n,r,i;return ee({},t.componentCls,ee(ee(ee(ee({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 bUt(e){return zi("ProLayoutGlobalHeader",function(t){var n=W(W({},t),{},{componentCls:".".concat(e)});return[vUt(n)]})}var yUt=function(t,n){return t===!1?null:t?t(n,null):n},_Ut=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,f=t.children,h=t.splitMenus,m=t.menuData,g=t.prefixCls,v=p.useContext(Ln.ConfigContext),y=v.getPrefixCls,b=v.direction,_="".concat(g||y("pro"),"-global-header"),E=bUt(_),w=E.wrapSSR,S=E.hashId,C=Te(c,_,S);if(d==="mix"&&!n&&h){var T=(m||[]).map(function(I){return W(W({},I),{},{children:void 0,routes:void 0})}),x=JD(T);return H.jsx(kIe,W(W({mode:"horizontal"},t),{},{splitMenus:!1,menuData:x}))}var O=Te("".concat(_,"-logo"),S,ee(ee(ee({},"".concat(_,"-logo-rtl"),b==="rtl"),"".concat(_,"-logo-mix"),d==="mix"),"".concat(_,"-logo-mobile"),n)),N=H.jsx("span",{className:O,children:H.jsx("a",{children:TK(r)})},"logo");return w(H.jsxs("div",{className:C,style:W({},u),children:[n&&H.jsx("span",{className:"".concat(_,"-collapsed-button ").concat(S).trim(),onClick:function(){o==null||o(!i)},children:H.jsx(ggt,{})}),n&&yUt(s,N),d==="mix"&&!n&&H.jsxs(H.Fragment,{children:[H.jsx(xK,W({},t)),H.jsx("div",{className:O,onClick:l,children:OK(W(W({},t),{},{collapsed:!1}),"headerTitleRender")})]}),H.jsx("div",{style:{flex:1},children:f}),(a||t.actionsRender||t.avatarProps)&&H.jsx(MIe,W({rightContentRender:a},t))]}))},SUt=function(t){var n,r,i,o;return ee({},"".concat(t.proComponentsCls,"-layout"),ee({},"".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 EUt(e){return zi("ProLayoutHeader",function(t){var n=W(W({},t),{},{componentCls:".".concat(e)});return[SUt(n)]})}function CUt(e,t){var n=t.stylish,r=t.proLayoutCollapsedWidth;return zi("ProLayoutHeaderStylish",function(i){var o=W(W({},i),{},{componentCls:".".concat(e),proLayoutCollapsedWidth:r});return n?[ee({},"div".concat(i.proComponentsCls,"-layout"),ee({},"".concat(o.componentCls),n==null?void 0:n(o)))]:[]})}var $le=uo.Header,wUt=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,f=t.layout,h=t.headerRender,m=t.headerContentRender,g=p.useContext(md),v=g.token,y=p.useContext(Ln.ConfigContext),b=p.useState(!1),_=Ie(b,2),E=_[0],w=_[1],S=a||f==="mix",C=p.useCallback(function(){var k=f==="top",B=JD(t.menuData||[]),A=H.jsx(_Ut,W(W({onCollapse:d},t),{},{menuData:B,children:m&&m(t,null)}));return k&&!o&&(A=H.jsx(kIe,W(W({mode:"horizontal",onCollapse:d},t),{},{menuData:B}))),h&&typeof h=="function"?h(t,A):A},[m,h,o,f,d,t]);p.useEffect(function(){var k,B=(y==null||(k=y.getTargetContainer)===null||k===void 0?void 0:k.call(y))||document.body,A=function(){var z,L=B.scrollTop;return L>(((z=v.layout)===null||z===void 0||(z=z.header)===null||z===void 0?void 0:z.heightLayoutHeader)||56)&&!E?(w(!0),!0):(E&&w(!1),!1)};if(S&&!(typeof window>"u"))return B.addEventListener("scroll",A,{passive:!0}),function(){B.removeEventListener("scroll",A)}},[(n=v.layout)===null||n===void 0||(n=n.header)===null||n===void 0?void 0:n.heightLayoutHeader,S,E]);var T=f==="top",x="".concat(u,"-layout-header"),O=EUt(x),N=O.wrapSSR,I=O.hashId,M=CUt("".concat(x,".").concat(x,"-stylish"),{proLayoutCollapsedWidth:64,stylish:t.stylish}),F=Te(s,I,x,ee(ee(ee(ee(ee(ee(ee({},"".concat(x,"-fixed-header"),S),"".concat(x,"-fixed-header-scroll"),E),"".concat(x,"-mix"),f==="mix"),"".concat(x,"-fixed-header-action"),!c),"".concat(x,"-top-menu"),T),"".concat(x,"-header"),!0),"".concat(x,"-stylish"),!!t.stylish));return f==="side"&&!o?null:M.wrapSSR(N(H.jsx(H.Fragment,{children:H.jsxs(Ln,{theme:{hashed:Ry(),components:{Layout:{headerBg:"transparent",bodyBg:"transparent"}}},children:[S&&H.jsx($le,{style:W({height:((r=v.layout)===null||r===void 0||(r=r.header)===null||r===void 0?void 0:r.heightLayoutHeader)||56,lineHeight:"".concat(((i=v.layout)===null||i===void 0||(i=i.header)===null||i===void 0?void 0:i.heightLayoutHeader)||56,"px"),backgroundColor:"transparent",zIndex:19},l)}),H.jsx($le,{className:F,style:l,children:C()})]})})))};const TUt={"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 successplease replace defaultSettings in src/models/setting.js","app.setting.production.hint":"Setting panel shows in development environment only, please manually modify"},xUt=W({},TUt),OUt={"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"},RUt=W({},OUt),IUt={"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":"설정 판넬은 개발 환경에서만 보여집니다. 직접 수동으로 변경바랍니다."},AUt=W({},IUt),NUt={"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":"配置栏只在开发环境用于预览,生产环境不会展现,请拷贝后手动修改配置文件"},MUt=W({},NUt),kUt={"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":"配置欄只在開發環境用於預覽,生產環境不會展現,請拷貝後手動修改配置文件"},PUt=W({},kUt);var Fle={"zh-CN":MUt,"zh-TW":PUt,"en-US":xUt,"it-IT":RUt,"ko-KR":AUt},DUt=function(){if(!VY())return"zh-CN";var t=window.localStorage.getItem("umi_locale");return t||window.g_locale||navigator.language},LUt=function(){var t=DUt();return Fle[t]||Fle["zh-CN"]},kg={};Object.defineProperty(kg,"__esModule",{value:!0});kg.TokenData=void 0;kg.parse=NK;kg.compile=HUt;var HU=kg.match=zUt;kg.pathToRegexp=LIe;kg.stringify=WUt;const RK="/",IK=e=>e,PIe=/^[$_\p{ID_Start}]$/u,AK=/^[$\u200c\u200d\p{ID_Continue}]$/u,Rk="https://git.new/pathToRegexpError",$Ut={"{":"{","}":"}","(":"(",")":")","[":"[","]":"]","+":"+","?":"?","!":"!"};function FUt(e){return e.replace(/[{}()\[\]+?!:*]/g,"\\$&")}function lf(e){return e.replace(/[.+*?^${}()[\]|/\\]/g,"\\$&")}function*BUt(e){const t=[...e];let n=0;function r(){let i="";if(PIe.test(t[++n]))for(i+=t[n];AK.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}: ${Rk}`)}if(!i)throw new TypeError(`Missing parameter name at ${n}: ${Rk}`);return i}for(;n<t.length;){const i=t[n],o=$Ut[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 jUt{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}: ${Rk}`)}text(){let t="",n;for(;n=this.tryConsume("CHAR")||this.tryConsume("ESCAPED");)t+=n;return t}}class e3{constructor(t){this.tokens=t}}kg.TokenData=e3;function NK(e,t={}){const{encodePath:n=IK}=t,r=new jUt(BUt(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 e3(o)}function HUt(e,t={}){const{encode:n=encodeURIComponent,delimiter:r=RK}=t,i=e instanceof e3?e:NK(e,t),o=DIe(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 DIe(e,t,n){const r=e.map(i=>UUt(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 UUt(e,t,n){if(e.type==="text")return()=>[e.value];if(e.type==="group"){const i=DIe(e.tokens,t,n);return o=>{const[a,...s]=i(o);return s.length?[""]:[a]}}const r=n||IK;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 zUt(e,t={}){const{decode:n=decodeURIComponent,delimiter:r=RK}=t,{regexp:i,keys:o}=LIe(e,t),a=o.map(s=>n===!1?IK: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 f=1;f<c.length;f++){if(c[f]===void 0)continue;const h=o[f-1],m=a[f-1];d[h.name]=m(c[f])}return{path:u,params:d}}}function LIe(e,t={}){const{delimiter:n=RK,end:r=!0,sensitive:i=!1,trailing:o=!0}=t,a=[],s=[],l=i?"":"i",u=(Array.isArray(e)?e:[e]).map(h=>h instanceof e3?h:NK(h,t));for(const{tokens:h}of u)for(const m of VA(h,0,[])){const g=VUt(m,n,a);s.push(g)}let d=`^(?:${s.join("|")})`;return o&&(d+=`(?:${lf(n)}$)?`),d+=r?"$":`(?=${lf(n)}|$)`,{regexp:new RegExp(d,l),keys:a}}function*VA(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 VA(r.tokens,0,i))yield*VA(e,t+1,o)}else n.push(r);yield*VA(e,t+1,n)}function VUt(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+=lf(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}": ${Rk}`);s.type==="param"?r+=`(${GUt(t,o?"":i)}+)`:r+="([\\s\\S]+)",n.push(s),i="",o=!1;continue}}return r}function GUt(e,t){return t.length<2?e.length<2?`[^${lf(e+t)}]`:`(?:(?!${lf(e)})[^${lf(t)}])`:e.length<2?`(?:(?!${lf(t)})[^${lf(e)}])`:`(?:(?!${lf(t)}|${lf(e)})[\\s\\S])`}function WUt(e){return e.tokens.map(function t(n,r,i){if(n.type==="text")return FUt(n.value);if(n.type==="group")return`{${n.tokens.map(t).join("")}}`;const a=qUt(n.name)&&YUt(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 qUt(e){const[t,...n]=e;return PIe.test(t)?n.every(r=>AK.test(r)):!1}function YUt(e){return(e==null?void 0:e.type)!=="text"?!0:!AK.test(e.value[0])}var KUt=function(t,n,r){if(r){var i=nt(r.keys()).find(function(a){try{return a.startsWith("http")?!1:HU(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:HU(a)(t)}catch(s){return console.log("key",a,s),!1}});if(o)return n[o]}return{path:""}},Ble=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||"",f=KUt(i,o,a);if(!f)return{title:d,id:"",pageName:d};var h=f.name;return u.locale!==!1&&f.locale&&s&&(h=s({id:f.locale||"",defaultMessage:f.name})),h?n||!l?{title:h,id:f.locale||"",pageName:h}:{title:"".concat(h," - ").concat(l),id:f.locale||"",pageName:h}:{title:d,id:f.locale||"",pageName:d}},zs={};function UU(e){"@babel/helpers - typeof";return UU=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},UU(e)}Object.defineProperty(zs,"__esModule",{value:!0});var yw=zs.pathToRegexp=zs.tokensToRegexp=zs.regexpToFunction=zs.match=zs.tokensToFunction=zs.compile=zs.parse=void 0;function QUt(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 MK(e,t){t===void 0&&(t={});for(var n=QUt(e),r=t.prefixes,i=r===void 0?"./":r,o="[^"+Ob(t.delimiter||"/#?")+"]+?",a=[],s=0,l=0,c="",u=function(C){if(l<n.length&&n[l].type===C)return n[l++].value},d=function(C){var T=u(C);if(T!==void 0)return T;var x=n[l],O=x.type,N=x.index;throw new TypeError("Unexpected "+O+" at "+N+", expected "+C)},f=function(){for(var C="",T;T=u("CHAR")||u("ESCAPED_CHAR");)C+=T;return C};l<n.length;){var h=u("CHAR"),m=u("NAME"),g=u("PATTERN");if(m||g){var v=h||"";i.indexOf(v)===-1&&(c+=v,v=""),c&&(a.push(c),c=""),a.push({name:m||s++,prefix:v,suffix:"",pattern:g||o,modifier:u("MODIFIER")||""});continue}var y=h||u("ESCAPED_CHAR");if(y){c+=y;continue}c&&(a.push(c),c="");var b=u("OPEN");if(b){var v=f(),_=u("NAME")||"",E=u("PATTERN")||"",w=f();d("CLOSE"),a.push({name:_||(E?s++:""),pattern:_&&!E?o:E,prefix:v,suffix:w,modifier:u("MODIFIER")||""});continue}d("END")}return a}zs.parse=MK;function XUt(e,t){return $Ie(MK(e,t),t)}zs.compile=XUt;function $Ie(e,t){t===void 0&&(t={});var n=kK(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(UU(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 f=l?l[d.name]:void 0,h=d.modifier==="?"||d.modifier==="*",m=d.modifier==="*"||d.modifier==="+";if(Array.isArray(f)){if(!m)throw new TypeError('Expected "'+d.name+'" to not repeat, but got an array');if(f.length===0){if(h)continue;throw new TypeError('Expected "'+d.name+'" to not be empty')}for(var g=0;g<f.length;g++){var v=i(f[g],d);if(a&&!s[u].test(v))throw new TypeError('Expected all "'+d.name+'" to match "'+d.pattern+'", but got "'+v+'"');c+=d.prefix+v+d.suffix}continue}if(typeof f=="string"||typeof f=="number"){var v=i(String(f),d);if(a&&!s[u].test(v))throw new TypeError('Expected "'+d.name+'" to match "'+d.pattern+'", but got "'+v+'"');c+=d.prefix+v+d.suffix;continue}if(!h){var y=m?"an array":"a string";throw new TypeError('Expected "'+d.name+'" to be '+y)}}return c}}zs.tokensToFunction=$Ie;function ZUt(e,t){var n=[],r=PK(e,n,t);return FIe(r,n,t)}zs.match=ZUt;function FIe(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(h){if(a[h]===void 0)return"continue";var m=t[h-1];m.modifier==="*"||m.modifier==="+"?c[m.name]=a[h].split(m.prefix+m.suffix).map(function(g){return i(g,m)}):c[m.name]=i(a[h],m)},d=1;d<a.length;d++)u(d);return{path:s,index:l,params:c}}}zs.regexpToFunction=FIe;function Ob(e){return e.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1")}function kK(e){return e&&e.sensitive?"":"i"}function JUt(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 ezt(e,t,n){var r=e.map(function(i){return PK(i,t,n).source});return new RegExp("(?:"+r.join("|")+")",kK(n))}function tzt(e,t,n){return BIe(MK(e,n),t,n)}function BIe(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(S){return S}:c,d="["+Ob(n.endsWith||"")+"]|$",f="["+Ob(n.delimiter||"/#?")+"]",h=a?"^":"",m=0,g=e;m<g.length;m++){var v=g[m];if(typeof v=="string")h+=Ob(u(v));else{var y=Ob(u(v.prefix)),b=Ob(u(v.suffix));if(v.pattern)if(t&&t.push(v),y||b)if(v.modifier==="+"||v.modifier==="*"){var _=v.modifier==="*"?"?":"";h+="(?:"+y+"((?:"+v.pattern+")(?:"+b+y+"(?:"+v.pattern+"))*)"+b+")"+_}else h+="(?:"+y+"("+v.pattern+")"+b+")"+v.modifier;else h+="("+v.pattern+")"+v.modifier;else h+="(?:"+y+b+")"+v.modifier}}if(l)i||(h+=f+"?"),h+=n.endsWith?"(?="+d+")":"$";else{var E=e[e.length-1],w=typeof E=="string"?f.indexOf(E[E.length-1])>-1:E===void 0;i||(h+="(?:"+f+"(?="+d+"))?"),w||(h+="(?="+f+"|"+d+")")}return new RegExp(h,kK(n))}zs.tokensToRegexp=BIe;function PK(e,t,n){return e instanceof RegExp?JUt(e,t):Array.isArray(e)?ezt(e,t,n):tzt(e,t,n)}yw=zs.pathToRegexp=PK;function Nf(e,t){return t>>>e|t<<32-e}function nzt(e,t,n){return e&t^~e&n}function rzt(e,t,n){return e&t^e&n^t&n}function izt(e){return Nf(2,e)^Nf(13,e)^Nf(22,e)}function ozt(e){return Nf(6,e)^Nf(11,e)^Nf(25,e)}function azt(e){return Nf(7,e)^Nf(18,e)^e>>>3}function szt(e){return Nf(17,e)^Nf(19,e)^e>>>10}function lzt(e,t){return e[t&15]+=szt(e[t+14&15])+e[t+9&15]+azt(e[t+1&15])}var czt=[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],Gi,_s,ba,uzt="0123456789abcdef";function jle(e,t){var n=(e&65535)+(t&65535),r=(e>>16)+(t>>16)+(n>>16);return r<<16|n&65535}function dzt(){Gi=new Array(8),_s=new Array(2),ba=new Array(64),_s[0]=_s[1]=0,Gi[0]=1779033703,Gi[1]=3144134277,Gi[2]=1013904242,Gi[3]=2773480762,Gi[4]=1359893119,Gi[5]=2600822924,Gi[6]=528734635,Gi[7]=1541459225}function zU(){var e,t,n,r,i,o,a,s,l,c,u=new Array(16);e=Gi[0],t=Gi[1],n=Gi[2],r=Gi[3],i=Gi[4],o=Gi[5],a=Gi[6],s=Gi[7];for(var d=0;d<16;d++)u[d]=ba[(d<<2)+3]|ba[(d<<2)+2]<<8|ba[(d<<2)+1]<<16|ba[d<<2]<<24;for(var f=0;f<64;f++)l=s+ozt(i)+nzt(i,o,a)+czt[f],f<16?l+=u[f]:l+=lzt(u,f),c=izt(e)+rzt(e,t,n),s=a,a=o,o=i,i=jle(r,l),r=n,n=t,t=e,e=jle(l,c);Gi[0]+=e,Gi[1]+=t,Gi[2]+=n,Gi[3]+=r,Gi[4]+=i,Gi[5]+=o,Gi[6]+=a,Gi[7]+=s}function fzt(e,t){var n,r,i=0;r=_s[0]>>3&63;var o=t&63;for((_s[0]+=t<<3)<t<<3&&_s[1]++,_s[1]+=t>>29,n=0;n+63<t;n+=64){for(var a=r;a<64;a++)ba[a]=e.charCodeAt(i++);zU(),r=0}for(var s=0;s<o;s++)ba[s]=e.charCodeAt(i++)}function pzt(){var e=_s[0]>>3&63;if(ba[e++]=128,e<=56)for(var t=e;t<56;t++)ba[t]=0;else{for(var n=e;n<64;n++)ba[n]=0;zU();for(var r=0;r<56;r++)ba[r]=0}ba[56]=_s[1]>>>24&255,ba[57]=_s[1]>>>16&255,ba[58]=_s[1]>>>8&255,ba[59]=_s[1]&255,ba[60]=_s[0]>>>24&255,ba[61]=_s[0]>>>16&255,ba[62]=_s[0]>>>8&255,ba[63]=_s[0]&255,zU()}function hzt(){for(var e=new String,t=0;t<8;t++)for(var n=28;n>=0;n-=4)e+=uzt.charAt(Gi[t]>>>n&15);return e}function mzt(e){return dzt(),fzt(e,e.length),pzt(),hzt()}function VU(e){"@babel/helpers - typeof";return VU=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},VU(e)}var gzt=["pro_layout_parentKeys","children","icon","flatMenu","indexRoute","routes"];function vzt(e,t){return _zt(e)||yzt(e,t)||DK(e,t)||bzt()}function bzt(){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 yzt(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 _zt(e){if(Array.isArray(e))return e}function Szt(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=DK(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 Ezt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Czt(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 wzt(e,t,n){return t&&Czt(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Tzt(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&&KT(e,t)}function xzt(e){var t=jIe();return function(){var r=QT(e),i;if(t){var o=QT(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return Ozt(this,i)}}function Ozt(e,t){if(t&&(VU(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Rzt(e)}function Rzt(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function GU(e){var t=typeof Map=="function"?new Map:void 0;return GU=function(r){if(r===null||!Izt(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 GA(r,arguments,QT(this).constructor)}return i.prototype=Object.create(r.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),KT(i,r)},GU(e)}function GA(e,t,n){return jIe()?GA=Reflect.construct.bind():GA=function(i,o,a){var s=[null];s.push.apply(s,o);var l=Function.bind.apply(i,s),c=new l;return a&&KT(c,a.prototype),c},GA.apply(null,arguments)}function jIe(){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 Izt(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function KT(e,t){return KT=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},KT(e,t)}function QT(e){return QT=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},QT(e)}function Hle(e){return Mzt(e)||Nzt(e)||DK(e)||Azt()}function Azt(){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 DK(e,t){if(e){if(typeof e=="string")return WU(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 WU(e,t)}}function Nzt(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Mzt(e){if(Array.isArray(e))return WU(e)}function WU(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 kzt(e,t){if(e==null)return{};var n=Pzt(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 Pzt(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 Ule(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 ya(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Ule(Object(n),!0).forEach(function(r){Dzt(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ule(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Dzt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var mc="routes";function K2(e){return e.split("?")[0].split("#")[0]}var LK=function(t){if(!t.startsWith("http"))return!1;try{var n=new URL(t);return!!n}catch{return!1}},Lzt=function(t){var n=t.path;if(!n||n==="/")try{return"/".concat(mzt(JSON.stringify(t)))}catch{}return n&&K2(n)},$zt=function(t,n){var r=t.name,i=t.locale;return"locale"in t&&i===!1||!r?!1:t.locale||"".concat(n,".").concat(r)},HIe=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("/")||LK(t)?t:"/".concat(n,"/").concat(t).replace(/\/\//g,"/").replace(/\/\//g,"/")},Fzt=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,f=d===void 0?t.icon:d,h=i.hideChildren,m=h===void 0?t.hideChildren:h,g=i.flatMenu,v=g===void 0?t.flatMenu:g,y=o&&Object.keys(o).join(",")!=="redirect"?[ya({path:s,menu:i},o)].concat(l||[]):l,b=ya({},t);if(u&&(b.name=u),f&&(b.icon=f),y&&y.length){if(m)return delete b.children,b;var _=$K(ya(ya({},n),{},{data:y}),t);if(v)return _;delete b[mc]}return b},mv=function(t){return Array.isArray(t)&&t.length>0};function $K(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?mv(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=ya(ya({},a),{},{path:a.path||a.originPath});return!s.children&&s[mc]&&(s.children=s[mc],delete s[mc]),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[mc]||[],l=HIe(a.path,t?t.path:"/"),c=a.name,u=$zt(a,i||"menu"),d=u!==!1&&o!==!1&&r&&u?r({id:u,defaultMessage:c}):c,f=t.pro_layout_parentKeys,h=f===void 0?[]:f;t.children,t.icon,t.flatMenu,t.indexRoute,t.routes;var m=kzt(t,gzt),g=new Set([].concat(Hle(h),Hle(a.parentKeys||[])));t.key&&g.add(t.key);var v=ya(ya(ya({},m),{},{menu:void 0},a),{},{path:l,locale:u,key:a.key||Lzt(ya(ya({},a),{},{path:l})),pro_layout_parentKeys:Array.from(g).filter(function(b){return b&&b!=="/"})});if(d?v.name=d:delete v.name,v.menu===void 0&&delete v.menu,mv(s)){var y=$K(ya(ya({},e),{},{data:s,parentName:u||""}),v);mv(y)&&(v.children=y)}return Fzt(v,e)}).flat(1)}var Bzt=function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return t.filter(function(n){return n&&(n.name||mv(n.children))&&!n.hideInMenu&&!n.redirect}).map(function(n){var r=ya({},n),i=r.children||n[mc]||[];if(delete r[mc],mv(i)&&!r.hideChildrenInMenu&&i.some(function(a){return a&&!!a.name})){var o=e(i);if(o.length)return ya(ya({},r),{},{children:o})}return ya({},n)}).filter(function(n){return n})},jzt=function(e){Tzt(n,e);var t=xzt(n);function n(){return Ezt(this,n),t.apply(this,arguments)}return wzt(n,[{key:"get",value:function(i){var o;try{var a=Szt(this.entries()),s;try{for(a.s();!(s=a.n()).done;){var l=vzt(s.value,2),c=l[0],u=l[1],d=K2(c);if(!LK(c)&&yw(d,[]).test(i)){o=u;break}}}catch(f){a.e(f)}finally{a.f()}}catch{o=void 0}return o}}]),n}(GU(Map)),Hzt=function(t){var n=new jzt,r=function i(o,a){o.forEach(function(s){var l=s.children||s[mc]||[];mv(l)&&i(l,s);var c=HIe(s.path,a?a.path:"/");n.set(K2(c),s)})};return r(t),n},Uzt=function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return t.map(function(n){var r=n.children||n[mc];if(mv(r)){var i=e(r);if(i.length)return ya({},n)}var o=ya({},n);return delete o[mc],delete o.children,o}).filter(function(n){return n})},zzt=function(t,n,r,i){var o=$K({data:t,formatMessage:r,locale:n}),a=i?Uzt(o):Bzt(o),s=Hzt(o);return{breadcrumb:s,menuData:a}};function zle(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 QE(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?zle(Object(n),!0).forEach(function(r){Vzt(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):zle(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Vzt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Gzt=function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],n={};return t.forEach(function(r){var i=QE({},r);if(!(!i||!i.key)){!i.children&&i[mc]&&(i.children=i[mc],delete i[mc]);var o=i.children||[];n[K2(i.path||i.key||"/")]=QE({},i),n[i.key||i.path||"/"]=QE({},i),o&&(n=QE(QE({},n),e(o)))}}),n},Wzt=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&&!LK(i)){var o=K2(i);try{if(r&&yw("".concat(o)).test(n)||yw("".concat(o),[]).test(n)||yw("".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})},qzt=function(t,n,r,i){var o=Gzt(n),a=Object.keys(o),s=Wzt(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(f){return u.has(f)?null:(u.set(f,!0),o[f])}).filter(function(f){return f});return c.key&&d.push(c),d}).flat(1)},Yzt=function(t){var n=p.useContext(md),r=n.hashId,i=t.style,o=t.prefixCls,a=t.children,s=t.hasPageContainer,l=s===void 0?0:s,c=Te("".concat(o,"-content"),r,ee(ee({},"".concat(o,"-has-header"),t.hasHeader),"".concat(o,"-content-has-page-container"),l>0)),u=t.ErrorBoundary||mTt;return t.ErrorBoundary===!1?H.jsx(uo.Content,{className:c,style:i,children:a}):H.jsx(u,{children:H.jsx(uo.Content,{className:c,style:i,children:a})})},Kzt=function(){return H.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 200 200",children:[H.jsxs("defs",{children:[H.jsxs("linearGradient",{x1:"62.1023273%",y1:"0%",x2:"108.19718%",y2:"37.8635764%",id:"linearGradient-1",children:[H.jsx("stop",{stopColor:"#4285EB",offset:"0%"}),H.jsx("stop",{stopColor:"#2EC7FF",offset:"100%"})]}),H.jsxs("linearGradient",{x1:"69.644116%",y1:"0%",x2:"54.0428975%",y2:"108.456714%",id:"linearGradient-2",children:[H.jsx("stop",{stopColor:"#29CDFF",offset:"0%"}),H.jsx("stop",{stopColor:"#148EFF",offset:"37.8600687%"}),H.jsx("stop",{stopColor:"#0A60FF",offset:"100%"})]}),H.jsxs("linearGradient",{x1:"69.6908165%",y1:"-12.9743587%",x2:"16.7228981%",y2:"117.391248%",id:"linearGradient-3",children:[H.jsx("stop",{stopColor:"#FA816E",offset:"0%"}),H.jsx("stop",{stopColor:"#F74A5C",offset:"41.472606%"}),H.jsx("stop",{stopColor:"#F51D2C",offset:"100%"})]}),H.jsxs("linearGradient",{x1:"68.1279872%",y1:"-35.6905737%",x2:"30.4400914%",y2:"114.942679%",id:"linearGradient-4",children:[H.jsx("stop",{stopColor:"#FA8E7D",offset:"0%"}),H.jsx("stop",{stopColor:"#F74A5C",offset:"51.2635191%"}),H.jsx("stop",{stopColor:"#F51D2C",offset:"100%"})]})]}),H.jsx("g",{stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd",children:H.jsx("g",{transform:"translate(-20.000000, -20.000000)",children:H.jsx("g",{transform:"translate(20.000000, 20.000000)",children:H.jsxs("g",{children:[H.jsxs("g",{fillRule:"nonzero",children:[H.jsxs("g",{children:[H.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)"}),H.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)"})]}),H.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)"})]}),H.jsx("ellipse",{fill:"url(#linearGradient-4)",cx:"100.519339",cy:"100.436681",rx:"23.6001926",ry:"23.580786"})]})})})})]})},Vle=new fr("antBadgeLoadingCircle",{"0%":{display:"none",opacity:0,overflow:"hidden"},"80%":{overflow:"hidden"},"100%":{display:"unset",opacity:1}}),Qzt=function(t){var n,r,i,o,a,s,l,c,u,d,f,h;return ee({},"".concat(t.proComponentsCls,"-layout"),ee(ee(ee({},"".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,ee(ee(ee(ee(ee(ee(ee(ee(ee({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"),ee(ee({},"".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:Vle,animationDuration:".4s",animationTimingFunction:"ease",fontWeight:600,fontSize:16,lineHeight:"22px",verticalAlign:"middle"}},"&-collapsed":ee({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:Vle,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(((f=t.layout)===null||f===void 0||(f=f.header)===null||f===void 0?void 0:f.heightLayoutHeader)||56,"px)"),insetBlockStart:"".concat(((h=t.layout)===null||h===void 0||(h=h.header)===null||h===void 0?void 0:h.heightLayoutHeader)||56,"px")}}))};function Xzt(e,t){var n=t.proLayoutCollapsedWidth;return zi("ProLayoutSiderMenu",function(r){var i=W(W({},r),{},{componentCls:".".concat(e),proLayoutCollapsedWidth:n});return[Qzt(i)]})}var Gle=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,f=p.useContext(md),h=f.token;p.useEffect(function(){r===!0&&(a==null||a(!0))},[r]);var m=ur(t,["className","style"]),g=ce.useContext(Ln.ConfigContext),v=g.direction,y=Xzt("".concat(u,"-sider"),{proLayoutCollapsedWidth:64}),b=y.wrapSSR,_=y.hashId,E=Te("".concat(u,"-sider"),l,_);if(c)return null;var w=N2(!o,function(){return a==null?void 0:a(!0)});return b(r?H.jsx(aY,W(W({placement:v==="rtl"?"right":"left",className:Te("".concat(u,"-drawer-sider"),l)},w),{},{style:W({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=h.layout)===null||n===void 0||(n=n.sider)===null||n===void 0?void 0:n.colorMenuBackground}},children:H.jsx(Lle,W(W({},m),{},{isMobile:!0,className:E,collapsed:r?!1:o,splitMenus:!1,originCollapsed:o}))})):H.jsx(Lle,W(W({className:E,originCollapsed:o},m),{},{style:s})))},Zzt=function(){var t;return typeof process>"u"?sh:((t=process)===null||t===void 0||(t=t.env)===null||t===void 0?void 0:t.ANTD_VERSION)||sh},Jzt=function(t){var n,r,i,o,a,s,l,c,u,d,f,h,m,g,v,y,b,_,E,w,S,C,T,x,O,N,I,M,F,k,B,A;return(n=Zzt())!==null&&n!==void 0&&n.startsWith("5")?{}:ee(ee(ee({},t.componentCls,ee(ee({width:"100%",height:"100%"},"".concat(t.proComponentsCls,"-base-menu"),(S={color:(r=t.layout)===null||r===void 0||(r=r.sider)===null||r===void 0?void 0:r.colorTextMenu},ee(ee(ee(ee(ee(ee(ee(ee(ee(ee(S,"".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"),ee(ee({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"),ee({},"".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"),ee({},"".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"),ee({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)"),ee(ee({},"".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"),ee({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:(f=t.layout)===null||f===void 0||(f=f.sider)===null||f===void 0?void 0:f.colorTextMenuSelected}),ee(ee(ee(ee(ee(S,"".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-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"),ee({},"".concat(t.antCls,"-menu-submenu-selected"),{borderRadius:t.borderRadius,color:(g=t.layout)===null||g===void 0||(g=g.sider)===null||g===void 0?void 0:g.colorTextMenuSelected})),"".concat(t.antCls,"-menu-submenu:hover > ").concat(t.antCls,"-menu-submenu-title > ").concat(t.antCls,"-menu-submenu-arrow"),{color:(v=t.layout)===null||v===void 0||(v=v.sider)===null||v===void 0?void 0:v.colorTextMenuActive}),"&".concat(t.antCls,"-menu-horizontal"),ee(ee(ee(ee({},"".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:(y=t.layout)===null||y===void 0||(y=y.header)===null||y===void 0?void 0:y.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"),ee({backgroundColor:(_=t.layout)===null||_===void 0||(_=_.header)===null||_===void 0?void 0:_.colorBgMenuItemSelected,borderRadius:t.borderRadius,transition:"none",color:"".concat((E=t.layout)===null||E===void 0||(E=E.header)===null||E===void 0?void 0:E.colorTextMenuSelected," !important")},"".concat(t.antCls,"-menu-submenu-arrow"),{color:"".concat((w=t.layout)===null||w===void 0||(w=w.header)===null||w===void 0?void 0:w.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"),ee(ee({},"&".concat(t.antCls,"-menu"),ee({color:(C=t.layout)===null||C===void 0||(C=C.header)===null||C===void 0?void 0:C.colorTextMenu},"".concat(t.antCls,"-menu-item a"),{color:"inherit"})),"&".concat(t.antCls,"-menu-light"),ee(ee({},"".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"),ee({color:(T=t.layout)===null||T===void 0||(T=T.header)===null||T===void 0?void 0:T.colorTextMenuActive,borderRadius:t.borderRadius,transition:"none",backgroundColor:(x=t.layout)===null||x===void 0||(x=x.header)===null||x===void 0?void 0:x.colorBgMenuItemSelected},"".concat(t.antCls,"-menu-submenu-arrow"),{color:(O=t.layout)===null||O===void 0||(O=O.header)===null||O===void 0?void 0:O.colorTextMenuActive})),"".concat(t.antCls,"-menu-item-selected"),{color:(N=t.layout)===null||N===void 0||(N=N.header)===null||N===void 0?void 0:N.colorTextMenuSelected,borderRadius:t.borderRadius,backgroundColor:(I=t.layout)===null||I===void 0||(I=I.header)===null||I===void 0?void 0:I.colorBgMenuItemSelected})))),"".concat(t.antCls,"-menu-sub").concat(t.antCls,"-menu-inline"),{backgroundColor:"transparent!important"}),"".concat(t.antCls,"-menu-submenu-popup"),ee(ee(ee(ee({backgroundColor:"rgba(255, 255, 255, 0.42)","-webkit-backdrop-filter":"blur(8px)",backdropFilter:"blur(8px)"},"".concat(t.antCls,"-menu"),ee({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:(M=t.layout)===null||M===void 0||(M=M.sider)===null||M===void 0?void 0:M.colorTextMenuSelected}),"".concat(t.antCls,"-menu-submenu-selected"),{color:(F=t.layout)===null||F===void 0||(F=F.sider)===null||F===void 0?void 0:F.colorTextMenuSelected}),"".concat(t.antCls,"-menu:not(").concat(t.antCls,"-menu-horizontal)"),ee(ee({},"".concat(t.antCls,"-menu-item-selected"),{backgroundColor:"rgba(0, 0, 0, 0.04)",borderRadius:t.borderRadius,color:(k=t.layout)===null||k===void 0||(k=k.sider)===null||k===void 0?void 0:k.colorTextMenuSelected}),"".concat(t.antCls,`-menu-item:hover,
`).concat(t.antCls,`-menu-item-active,
`).concat(t.antCls,"-menu-submenu-title:hover"),ee({color:(B=t.layout)===null||B===void 0||(B=B.sider)===null||B===void 0?void 0:B.colorTextMenuActive,borderRadius:t.borderRadius},"".concat(t.antCls,"-menu-submenu-arrow"),{color:(A=t.layout)===null||A===void 0||(A=A.sider)===null||A===void 0?void 0:A.colorTextMenuActive}))))},eVt=function(t){var n,r,i,o;return ee(ee({},"".concat(t.antCls,"-layout"),{backgroundColor:"transparent !important"}),t.componentCls,ee(ee(ee(ee({},"& ".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 tVt(e){return zi("ProLayout",function(t){var n=W(W({},t),{},{componentCls:".".concat(e)});return[eVt(n),Jzt(n)]})}function nVt(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 rVt=function(){var t;return typeof process>"u"?sh:((t=process)===null||t===void 0||(t=t.env)===null||t===void 0?void 0:t.ANTD_VERSION)||sh},iVt=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?H.jsx("span",{children:a||o}):H.jsx("span",{onClick:s?function(){return location.href=s}:void 0,children:a||o})},oVt=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},aVt=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:HU(a.replace("?",""))(n)}catch(s){return console.log("path",a,s),!1}});o&&(r=t.get(o))}return r||{path:""}},sVt=function(t){var n=t.location,r=t.breadcrumbMap;return{location:n,breadcrumbMap:r}},lVt=function(t,n,r){var i=nVt(t==null?void 0:t.pathname),o=i.map(function(a){var s=aVt(n,a),l=oVt(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},cVt=function(t){var n=sVt(t),r=n.location,i=n.breadcrumbMap;return r&&r.pathname&&i?lVt(r,i,t):[]},uVt=function(t,n){var r=t.breadcrumbRender,i=t.itemRender,o=n.breadcrumbProps||{},a=o.minLength,s=a===void 0?2:a,l=cVt(t),c=function(f){for(var h=i||iVt,m=arguments.length,g=new Array(m>1?m-1:0),v=1;v<m;v++)g[v-1]=arguments[v];return h==null?void 0:h.apply(void 0,[W(W({},f),{},{path:f.linkPath||f.path})].concat(g))},u=l;return r&&(u=r(u||[])||void 0),(u&&u.length<s||r===!1)&&(u=void 0),A2(rVt(),"5.3.0")>-1?{items:u,itemRender:c}:{routes:u,itemRender:c}};function dVt(e){return nt(e).reduce(function(t,n){var r=Ie(n,2),i=r[0],o=r[1];return t[i]=o,t},{})}var fVt=function e(t,n,r,i){var o=zzt(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:dVt(s),breadcrumbMap:s,menuData:a}},pVt=function(t){var n=p.useState({}),r=Ie(n,2),i=r[0],o=r[1];return p.useEffect(function(){o(eu({layout:Gt(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},hVt=["id","defaultMessage"],mVt=["fixSiderbar","navTheme","layout"],Wle=0,gVt=function(t,n){var r;return t.headerRender===!1||t.pure?null:H.jsx(wUt,W(W({matchMenuKeys:n},t),{},{stylish:(r=t.stylish)===null||r===void 0?void 0:r.header}))},vVt=function(t){return t.footerRender===!1||t.pure?null:t.footerRender?t.footerRender(W({},t),H.jsx(UHt,{})):null},bVt=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 f=a||n,h=Ie(f,1),m=h[0];if(m){var g;d=((g=t.menuData)===null||g===void 0||(g=g.find(function(_){return _.key===m}))===null||g===void 0?void 0:g.children)||[]}else d=[]}var v=JD(d||[]);if(v&&(v==null?void 0:v.length)<1&&(l||c))return null;if(i==="top"&&!o){var y;return H.jsx(Gle,W(W({matchMenuKeys:n},t),{},{hide:!0,stylish:(y=t.stylish)===null||y===void 0?void 0:y.sider}))}var b=H.jsx(Gle,W(W({matchMenuKeys:n},t),{},{menuData:v,stylish:(r=t.stylish)===null||r===void 0?void 0:r.sider}));return u?u(t,b):b},yVt=function(t,n){var r=n.pageTitleRender,i=Ble(t);if(r===!1)return{title:n.title||"",id:"",pageName:""};if(r){var o=r(t,i.title,i);if(typeof o=="string")return Ble(W(W({},i),{},{title:o}));Yr(typeof o=="string","pro-layout: renderPageTitle return value should be a string")}return i},_Vt=function(t,n,r){return t?n?64:r:0},SVt=function(t){var n,r,i,o,a,s,l,c,u,d,f,h,m,g,v=t||{},y=v.children,b=v.onCollapse,_=v.location,E=_===void 0?{pathname:"/"}:_,w=v.contentStyle,S=v.route,C=v.defaultCollapsed,T=v.style,x=v.siderWidth,O=v.menu,N=v.siderMenuType,I=v.isChildrenLayout,M=v.menuDataRender,F=v.actionRef,k=v.bgLayoutImgList,B=v.formatMessage,A=v.loading,P=p.useMemo(function(){return x||(t.layout==="mix"?215:256)},[t.layout,x]),z=p.useContext(Ln.ConfigContext),L=(n=t.prefixCls)!==null&&n!==void 0?n:z.getPrefixCls("pro"),V=Pn(!1,{value:O==null?void 0:O.loading,onChange:O==null?void 0:O.onLoadingChange}),j=Ie(V,2),U=j[0],J=j[1],te=p.useState(function(){return Wle+=1,"pro-layout-".concat(Wle)}),ae=Ie(te,1),K=ae[0],Q=p.useCallback(function(ct){var Rt=ct.id,Ht=ct.defaultMessage,wt=Dt(ct,hVt);if(B)return B(W({id:Rt,defaultMessage:Ht},wt));var St=LUt();return St[Rt]?St[Rt]:Ht},[B]),oe=UY([K,O==null?void 0:O.params],function(){var ct=lo(pr().mark(function Rt(Ht){var wt,St,jt,Pe;return pr().wrap(function(rt){for(;;)switch(rt.prev=rt.next){case 0:return St=Ie(Ht,2),jt=St[1],J(!0),rt.next=4,O==null||(wt=O.request)===null||wt===void 0?void 0:wt.call(O,jt||{},(S==null?void 0:S.children)||(S==null?void 0:S.routes)||[]);case 4:return Pe=rt.sent,J(!1),rt.abrupt("return",Pe);case 7:case"end":return rt.stop()}},Rt)}));return function(Rt){return ct.apply(this,arguments)}}(),{revalidateOnFocus:!1,shouldRetryOnError:!1,revalidateOnReconnect:!1}),ge=oe.data,fe=oe.mutate,ue=oe.isLoading;p.useEffect(function(){J(ue)},[ue]);var le=HY(),ve=le.cache;p.useEffect(function(){return function(){ve instanceof Map&&ve.delete(K)}},[]);var ne=p.useMemo(function(){return fVt(ge||(S==null?void 0:S.children)||(S==null?void 0:S.routes)||[],O,Q,M)},[Q,O,M,ge,S==null?void 0:S.children,S==null?void 0:S.routes]),pe=ne||{},be=pe.breadcrumb,Re=pe.breadcrumbMap,Se=pe.menuData,Ce=Se===void 0?[]:Se;F&&O!==null&&O!==void 0&&O.request&&(F.current={reload:function(){fe()}});var ye=p.useMemo(function(){return qzt(E.pathname||"/",Ce||[])},[E.pathname,Ce]),he=p.useMemo(function(){return Array.from(new Set(ye.map(function(ct){return ct.key||ct.path||""})))},[ye]),_e=ye[ye.length-1]||{},Oe=pVt(_e),De=W(W({},t),Oe),Y=De.fixSiderbar;De.navTheme;var D=De.layout,G=Dt(De,mVt),ie=kOt(),me=p.useMemo(function(){return(ie==="sm"||ie==="xs")&&!t.disableMobile},[ie,t.disableMobile]),se=D!=="top"&&!me,Be=Pn(function(){return C!==void 0?C:!!(me||ie==="md")},{value:t.collapsed,onChange:b}),Ve=Ie(Be,2),re=Ve[0],Me=Ve[1],je=ur(W(W(W({prefixCls:L},t),{},{siderWidth:P},Oe),{},{formatMessage:Q,breadcrumb:be,menu:W(W({},O),{},{type:N||(O==null?void 0:O.type),loading:U}),layout:D}),["className","style","breadcrumbRender"]),ke=yVt(W(W({pathname:E.pathname},je),{},{breadcrumbMap:Re}),t),Ge=uVt(W(W({},je),{},{breadcrumbRender:t.breadcrumbRender,breadcrumbMap:Re}),t),Ue=bVt(W(W({},je),{},{menuData:Ce,onCollapse:Me,isMobile:me,collapsed:re}),he),qe=gVt(W(W({},je),{},{children:null,hasSiderMenu:!!Ue,menuData:Ce,isMobile:me,collapsed:re,onCollapse:Me}),he),At=vVt(W({isMobile:me,collapsed:re},je)),at=p.useContext(Tle),pt=at.isChildrenLayout,Ct=I!==void 0?I:pt,bt="".concat(L,"-layout"),Vt=tVt(bt),Tt=Vt.wrapSSR,Ot=Vt.hashId,Ut=Te(t.className,Ot,"ant-design-pro",bt,ee(ee(ee(ee(ee({},"screen-".concat(ie),ie),"".concat(bt,"-top-menu"),D==="top"),"".concat(bt,"-is-children"),Ct),"".concat(bt,"-fix-siderbar"),Y),"".concat(bt,"-").concat(D),D)),ze=_Vt(!!se,re,P),Ye={position:"relative"};(Ct||w&&w.minHeight)&&(Ye.minHeight=0),p.useEffect(function(){var ct;(ct=t.onPageChange)===null||ct===void 0||ct.call(t,t.location)},[E.pathname,(r=E.pathname)===null||r===void 0?void 0:r.search]);var He=p.useState(!1),Ze=Ie(He,2),yt=Ze[0],_t=Ze[1],Bt=p.useState(0),Nt=Ie(Bt,2),vt=Nt[0],ht=Nt[1];jTt(ke,t.title||!1);var kt=p.useContext(md),Et=kt.token,Yt=p.useMemo(function(){return k&&k.length>0?k==null?void 0:k.map(function(ct,Rt){return H.jsx("img",{src:ct.src,style:W({position:"absolute"},ct)},Rt)}):null},[k]);return Tt(H.jsx(Tle.Provider,{value:W(W({},je),{},{breadcrumb:Ge,menuData:Ce,isMobile:me,collapsed:re,hasPageContainer:vt,setHasPageContainer:ht,isChildrenLayout:!0,title:ke.pageName,hasSiderMenu:!!Ue,hasHeader:!!qe,siderWidth:ze,hasFooter:!!At,hasFooterToolbar:yt,setHasFooterToolbar:_t,pageTitleInfo:ke,matchMenus:ye,matchMenuKeys:he,currentMenu:_e}),children:t.pure?H.jsx(H.Fragment,{children:y}):H.jsxs("div",{className:Ut,children:[Yt||(i=Et.layout)!==null&&i!==void 0&&i.bgLayout?H.jsx("div",{className:Te("".concat(bt,"-bg-list"),Ot),children:Yt}):null,H.jsxs(uo,{style:W({minHeight:"100%",flexDirection:Ue?"row":void 0},T),children:[H.jsx(Ln,{theme:{hashed:Ry(),token:{controlHeightLG:((o=Et.layout)===null||o===void 0||(o=o.sider)===null||o===void 0?void 0:o.menuHeight)||(Et==null?void 0:Et.controlHeightLG)},components:{Menu:EOe({colorItemBg:((a=Et.layout)===null||a===void 0||(a=a.sider)===null||a===void 0?void 0:a.colorMenuBackground)||"transparent",colorSubItemBg:((s=Et.layout)===null||s===void 0||(s=s.sider)===null||s===void 0?void 0:s.colorMenuBackground)||"transparent",radiusItem:Et.borderRadius,colorItemBgSelected:((l=Et.layout)===null||l===void 0||(l=l.sider)===null||l===void 0?void 0:l.colorBgMenuItemSelected)||(Et==null?void 0:Et.colorBgTextHover),colorItemBgHover:((c=Et.layout)===null||c===void 0||(c=c.sider)===null||c===void 0?void 0:c.colorBgMenuItemHover)||(Et==null?void 0:Et.colorBgTextHover),colorItemBgActive:((u=Et.layout)===null||u===void 0||(u=u.sider)===null||u===void 0?void 0:u.colorBgMenuItemActive)||(Et==null?void 0:Et.colorBgTextActive),colorItemBgSelectedHorizontal:((d=Et.layout)===null||d===void 0||(d=d.sider)===null||d===void 0?void 0:d.colorBgMenuItemSelected)||(Et==null?void 0:Et.colorBgTextHover),colorActiveBarWidth:0,colorActiveBarHeight:0,colorActiveBarBorderSize:0,colorItemText:((f=Et.layout)===null||f===void 0||(f=f.sider)===null||f===void 0?void 0:f.colorTextMenu)||(Et==null?void 0:Et.colorTextSecondary),colorItemTextHover:((h=Et.layout)===null||h===void 0||(h=h.sider)===null||h===void 0?void 0:h.colorTextMenuItemHover)||"rgba(0, 0, 0, 0.85)",colorItemTextSelected:((m=Et.layout)===null||m===void 0||(m=m.sider)===null||m===void 0?void 0:m.colorTextMenuSelected)||"rgba(0, 0, 0, 1)",popupBg:Et==null?void 0:Et.colorBgElevated,subMenuItemBg:Et==null?void 0:Et.colorBgElevated,darkSubMenuItemBg:"transparent",darkPopupBg:Et==null?void 0:Et.colorBgElevated})}},children:Ue}),H.jsxs("div",{style:Ye,className:"".concat(bt,"-container ").concat(Ot).trim(),children:[qe,H.jsx(Yzt,W(W({hasPageContainer:vt,isChildrenLayout:Ct},G),{},{hasHeader:!!qe,prefixCls:bt,style:w,children:A?H.jsx($Ht,{}):y})),At,yt&&H.jsx("div",{className:"".concat(bt,"-has-footer"),style:{height:64,marginBlockStart:(g=Et.layout)===null||g===void 0||(g=g.pageContainer)===null||g===void 0?void 0:g.paddingBlockPageContainerContent}})]})]})]})}))},UIe=function(t){var n=t.colorPrimary,r=t.navTheme!==void 0?{dark:t.navTheme==="realDark"}:{};return H.jsx(Ln,{theme:n?{token:{colorPrimary:n}}:void 0,children:H.jsx(TD,W(W({},r),{},{token:t.token,prefixCls:t.prefixCls,children:H.jsx(SVt,W(W({logo:H.jsx(Kzt,{})},IIe),{},{location:VY()?window.location:void 0},t))}))})};async function EVt(){return $r("/kaptcha/api/v1/get",{method:"GET",params:{client:wr}})}async function CVt(e,t){return $r("/kaptcha/api/v1/check",{method:"POST",data:{captchaUid:e,captchaCode:t,client:wr}})}var qU=function(e,t){return qU=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])},qU(e,t)};function Iu(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");qU(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var Xn=function(){return Xn=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},Xn.apply(this,arguments)};function I_(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 qs(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 Vs(e,t){var n=t&&t.cache?t.cache:IVt,r=t&&t.serializer?t.serializer:RVt,i=t&&t.strategy?t.strategy:TVt;return i(e,{cache:n,serializer:r})}function wVt(e){return e==null||typeof e=="number"||typeof e=="boolean"}function zIe(e,t,n,r){var i=wVt(r)?r:n(r),o=t.get(i);return typeof o>"u"&&(o=e.call(this,r),t.set(i,o)),o}function VIe(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 FK(e,t,n,r,i){return n.bind(t,e,r,i)}function TVt(e,t){var n=e.length===1?zIe:VIe;return FK(e,this,n,t.cache.create(),t.serializer)}function xVt(e,t){return FK(e,this,VIe,t.cache.create(),t.serializer)}function OVt(e,t){return FK(e,this,zIe,t.cache.create(),t.serializer)}var RVt=function(){return JSON.stringify(arguments)};function BK(){this.cache=Object.create(null)}BK.prototype.get=function(e){return this.cache[e]};BK.prototype.set=function(e,t){this.cache[e]=t};var IVt={create:function(){return new BK}},Gs={variadic:xVt,monadic:OVt};function GIe(e,t,n){if(n===void 0&&(n=Error),!e)throw new n(t)}Vs(function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.NumberFormat).bind.apply(e,qs([void 0],t,!1)))},{strategy:Gs.variadic});Vs(function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.DateTimeFormat).bind.apply(e,qs([void 0],t,!1)))},{strategy:Gs.variadic});Vs(function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.PluralRules).bind.apply(e,qs([void 0],t,!1)))},{strategy:Gs.variadic});Vs(function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.Locale).bind.apply(e,qs([void 0],t,!1)))},{strategy:Gs.variadic});Vs(function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.ListFormat).bind.apply(e,qs([void 0],t,!1)))},{strategy:Gs.variadic});var Jr;(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"})(Jr||(Jr={}));var oo;(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"})(oo||(oo={}));var A_;(function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime"})(A_||(A_={}));function qle(e){return e.type===oo.literal}function AVt(e){return e.type===oo.argument}function WIe(e){return e.type===oo.number}function qIe(e){return e.type===oo.date}function YIe(e){return e.type===oo.time}function KIe(e){return e.type===oo.select}function QIe(e){return e.type===oo.plural}function NVt(e){return e.type===oo.pound}function XIe(e){return e.type===oo.tag}function ZIe(e){return!!(e&&typeof e=="object"&&e.type===A_.number)}function YU(e){return!!(e&&typeof e=="object"&&e.type===A_.dateTime)}var JIe=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,MVt=/(?:[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 kVt(e){var t={};return e.replace(MVt,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 PVt=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function DVt(e){if(e.length===0)throw new Error("Number skeleton cannot be empty");for(var t=e.split(PVt).filter(function(f){return f.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 LVt(e){return e.replace(/^(.*?)-/,"")}var Yle=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,eAe=/^(@+)?(\+|#+)?[rs]?$/g,$Vt=/(\*)(0+)|(#+)(0+)|(0+)/g,tAe=/^(0+)$/;function Kle(e){var t={};return e[e.length-1]==="r"?t.roundingPriority="morePrecision":e[e.length-1]==="s"&&(t.roundingPriority="lessPrecision"),e.replace(eAe,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 nAe(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 FVt(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)),!tAe.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}function Qle(e){var t={},n=nAe(e);return n||t}function BVt(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=LVt(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=Xn(Xn(Xn({},t),{notation:"scientific"}),i.options.reduce(function(l,c){return Xn(Xn({},l),Qle(c))},{}));continue;case"engineering":t=Xn(Xn(Xn({},t),{notation:"engineering"}),i.options.reduce(function(l,c){return Xn(Xn({},l),Qle(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($Vt,function(l,c,u,d,f,h){if(c)t.minimumIntegerDigits=u.length;else{if(d&&f)throw new Error("We currently do not support maximum integer digits");if(h)throw new Error("We currently do not support exact integer digits")}return""});continue}if(tAe.test(i.stem)){t.minimumIntegerDigits=i.stem.length;continue}if(Yle.test(i.stem)){if(i.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");i.stem.replace(Yle,function(l,c,u,d,f,h){return u==="*"?t.minimumFractionDigits=c.length:d&&d[0]==="#"?t.maximumFractionDigits=d.length:f&&h?(t.minimumFractionDigits=f.length,t.maximumFractionDigits=f.length+h.length):(t.minimumFractionDigits=c.length,t.maximumFractionDigits=c.length),""});var o=i.options[0];o==="w"?t=Xn(Xn({},t),{trailingZeroDisplay:"stripIfInteger"}):o&&(t=Xn(Xn({},t),Kle(o)));continue}if(eAe.test(i.stem)){t=Xn(Xn({},t),Kle(i.stem));continue}var a=nAe(i.stem);a&&(t=Xn(Xn({},t),a));var s=FVt(i.stem);s&&(t=Xn(Xn({},t),s))}return t}var YR={"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 jVt(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=HVt(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 HVt(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=YR[r||""]||YR[n||""]||YR["".concat(n,"-001")]||YR["001"];return i[0]}var H$,UVt=new RegExp("^".concat(JIe.source,"*")),zVt=new RegExp("".concat(JIe.source,"*$"));function ti(e,t){return{start:e,end:t}}var VVt=!!String.prototype.startsWith&&"_a".startsWith("a",1),GVt=!!String.fromCodePoint,WVt=!!Object.fromEntries,qVt=!!String.prototype.codePointAt,YVt=!!String.prototype.trimStart,KVt=!!String.prototype.trimEnd,QVt=!!Number.isSafeInteger,XVt=QVt?Number.isSafeInteger:function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},KU=!0;try{var ZVt=iAe("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");KU=((H$=ZVt.exec("a"))===null||H$===void 0?void 0:H$[0])==="a"}catch{KU=!1}var Xle=VVt?function(t,n,r){return t.startsWith(n,r)}:function(t,n,r){return t.slice(r,r+n.length)===n},QU=GVt?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},Zle=WVt?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},rAe=qVt?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}},JVt=YVt?function(t){return t.trimStart()}:function(t){return t.replace(UVt,"")},eGt=KVt?function(t){return t.trimEnd()}:function(t){return t.replace(zVt,"")};function iAe(e,t){return new RegExp(e,t)}var XU;if(KU){var Jle=iAe("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");XU=function(t,n){var r;Jle.lastIndex=n;var i=Jle.exec(t);return(r=i[1])!==null&&r!==void 0?r:""}}else XU=function(t,n){for(var r=[];;){var i=rAe(t,n);if(i===void 0||oAe(i)||iGt(i))break;r.push(i),n+=i>=65536?2:1}return QU.apply(void 0,r)};var tGt=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:oo.pound,location:ti(s,this.clonePosition())})}else if(o===60&&!this.ignoreTag&&this.peek()===47){if(r)break;return this.error(Jr.UNMATCHED_CLOSING_TAG,ti(this.clonePosition(),this.clonePosition()))}else if(o===60&&!this.ignoreTag&&ZU(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:oo.literal,value:"<".concat(i,"/>"),location:ti(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()||!ZU(this.char()))return this.error(Jr.INVALID_TAG,ti(s,this.clonePosition()));var l=this.clonePosition(),c=this.parseTagName();return i!==c?this.error(Jr.UNMATCHED_CLOSING_TAG,ti(l,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:oo.tag,value:i,children:a,location:ti(r,this.clonePosition())},err:null}:this.error(Jr.INVALID_TAG,ti(s,this.clonePosition())))}else return this.error(Jr.UNCLOSED_TAG,ti(r,this.clonePosition()))}else return this.error(Jr.INVALID_TAG,ti(r,this.clonePosition()))},e.prototype.parseTagName=function(){var t=this.offset();for(this.bump();!this.isEOF()&&rGt(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=ti(r,this.clonePosition());return{val:{type:oo.literal,value:i,location:l},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!nGt(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 QU.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(),QU(r))},e.prototype.parseArgument=function(t,n){var r=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(Jr.EXPECT_ARGUMENT_CLOSING_BRACE,ti(r,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(Jr.EMPTY_ARGUMENT,ti(r,this.clonePosition()));var i=this.parseIdentifierIfPossible().value;if(!i)return this.error(Jr.MALFORMED_ARGUMENT,ti(r,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(Jr.EXPECT_ARGUMENT_CLOSING_BRACE,ti(r,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:oo.argument,value:i,location:ti(r,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(Jr.EXPECT_ARGUMENT_CLOSING_BRACE,ti(r,this.clonePosition())):this.parseArgumentOptions(t,n,i,r);default:return this.error(Jr.MALFORMED_ARGUMENT,ti(r,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var t=this.clonePosition(),n=this.offset(),r=XU(this.message,n),i=n+r.length;this.bumpTo(i);var o=this.clonePosition(),a=ti(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(Jr.EXPECT_ARGUMENT_TYPE,ti(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 f=eGt(d.val);if(f.length===0)return this.error(Jr.EXPECT_ARGUMENT_STYLE,ti(this.clonePosition(),this.clonePosition()));var h=ti(u,this.clonePosition());c={style:f,styleLocation:h}}var m=this.tryParseArgumentClose(i);if(m.err)return m;var g=ti(i,this.clonePosition());if(c&&Xle(c==null?void 0:c.style,"::",0)){var v=JVt(c.style.slice(2));if(s==="number"){var d=this.parseNumberSkeletonFromString(v,c.styleLocation);return d.err?d:{val:{type:oo.number,value:r,location:g,style:d.val},err:null}}else{if(v.length===0)return this.error(Jr.EXPECT_DATE_TIME_SKELETON,g);var y=v;this.locale&&(y=jVt(v,this.locale));var f={type:A_.dateTime,pattern:y,location:c.styleLocation,parsedOptions:this.shouldParseSkeletons?kVt(y):{}},b=s==="date"?oo.date:oo.time;return{val:{type:b,value:r,location:g,style:f},err:null}}}return{val:{type:s==="number"?oo.number:s==="date"?oo.date:oo.time,value:r,location:g,style:(o=c==null?void 0:c.style)!==null&&o!==void 0?o:null},err:null}}case"plural":case"selectordinal":case"select":{var _=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(Jr.EXPECT_SELECT_ARGUMENT_OPTIONS,ti(_,Xn({},_)));this.bumpSpace();var E=this.parseIdentifierIfPossible(),w=0;if(s!=="select"&&E.value==="offset"){if(!this.bumpIf(":"))return this.error(Jr.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,ti(this.clonePosition(),this.clonePosition()));this.bumpSpace();var d=this.tryParseDecimalInteger(Jr.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,Jr.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(d.err)return d;this.bumpSpace(),E=this.parseIdentifierIfPossible(),w=d.val}var S=this.tryParsePluralOrSelectOptions(t,s,n,E);if(S.err)return S;var m=this.tryParseArgumentClose(i);if(m.err)return m;var C=ti(i,this.clonePosition());return s==="select"?{val:{type:oo.select,value:r,options:Zle(S.val),location:C},err:null}:{val:{type:oo.plural,value:r,options:Zle(S.val),offset:w,pluralType:s==="plural"?"cardinal":"ordinal",location:C},err:null}}default:return this.error(Jr.INVALID_ARGUMENT_TYPE,ti(a,l))}},e.prototype.tryParseArgumentClose=function(t){return this.isEOF()||this.char()!==125?this.error(Jr.EXPECT_ARGUMENT_CLOSING_BRACE,ti(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(Jr.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,ti(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=DVt(t)}catch{return this.error(Jr.INVALID_NUMBER_SKELETON,n)}return{val:{type:A_.number,tokens:r,location:n,parsedOptions:this.shouldParseSkeletons?BVt(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 f=this.tryParseDecimalInteger(Jr.EXPECT_PLURAL_ARGUMENT_SELECTOR,Jr.INVALID_PLURAL_ARGUMENT_SELECTOR);if(f.err)return f;u=ti(d,this.clonePosition()),c=this.message.slice(d.offset,this.offset())}else break}if(l.has(c))return this.error(n==="select"?Jr.DUPLICATE_SELECT_ARGUMENT_SELECTOR:Jr.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,u);c==="other"&&(a=!0),this.bumpSpace();var h=this.clonePosition();if(!this.bumpIf("{"))return this.error(n==="select"?Jr.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:Jr.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,ti(this.clonePosition(),this.clonePosition()));var m=this.parseMessage(t+1,n,r);if(m.err)return m;var g=this.tryParseArgumentClose(h);if(g.err)return g;s.push([c,{value:m.val,location:ti(h,this.clonePosition())}]),l.add(c),this.bumpSpace(),o=this.parseIdentifierIfPossible(),c=o.value,u=o.location}return s.length===0?this.error(n==="select"?Jr.EXPECT_SELECT_ARGUMENT_SELECTOR:Jr.EXPECT_PLURAL_ARGUMENT_SELECTOR,ti(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!a?this.error(Jr.MISSING_OTHER_CLAUSE,ti(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=ti(i,this.clonePosition());return o?(a*=r,XVt(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=rAe(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(Xle(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()&&oAe(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 ZU(e){return e>=97&&e<=122||e>=65&&e<=90}function nGt(e){return ZU(e)||e===47}function rGt(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 oAe(e){return e>=9&&e<=13||e===32||e===133||e>=8206&&e<=8207||e===8232||e===8233}function iGt(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 JU(e){e.forEach(function(t){if(delete t.location,KIe(t)||QIe(t))for(var n in t.options)delete t.options[n].location,JU(t.options[n].value);else WIe(t)&&ZIe(t.style)||(qIe(t)||YIe(t))&&YU(t.style)?delete t.style.location:XIe(t)&&JU(t.children)})}function oGt(e,t){t===void 0&&(t={}),t=Xn({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var n=new tGt(e,t).parse();if(n.err){var r=SyntaxError(Jr[n.err.kind]);throw r.location=n.err.location,r.originalMessage=n.err.message,r}return t!=null&&t.captureLocation||JU(n.val),n.val}var Bf;(function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"})(Bf||(Bf={}));var Pg=function(e){Iu(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),ece=function(e){Iu(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('", "'),'"'),Bf.INVALID_VALUE,o)||this}return t}(Pg),aGt=function(e){Iu(t,e);function t(n,r,i){return e.call(this,'Value for "'.concat(n,'" must be of type ').concat(r),Bf.INVALID_VALUE,i)||this}return t}(Pg),sGt=function(e){Iu(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,'"'),Bf.MISSING_VALUE,r)||this}return t}(Pg),Hs;(function(e){e[e.literal=0]="literal",e[e.object=1]="object"})(Hs||(Hs={}));function lGt(e){return e.length<2?e:e.reduce(function(t,n){var r=t[t.length-1];return!r||r.type!==Hs.literal||n.type!==Hs.literal?t.push(n):r.value+=n.value,t},[])}function aAe(e){return typeof e=="function"}function WA(e,t,n,r,i,o,a){if(e.length===1&&qle(e[0]))return[{type:Hs.literal,value:e[0].value}];for(var s=[],l=0,c=e;l<c.length;l++){var u=c[l];if(qle(u)){s.push({type:Hs.literal,value:u.value});continue}if(NVt(u)){typeof o=="number"&&s.push({type:Hs.literal,value:n.getNumberFormat(t).format(o)});continue}var d=u.value;if(!(i&&d in i))throw new sGt(d,a);var f=i[d];if(AVt(u)){(!f||typeof f=="string"||typeof f=="number")&&(f=typeof f=="string"||typeof f=="number"?String(f):""),s.push({type:typeof f=="string"?Hs.literal:Hs.object,value:f});continue}if(qIe(u)){var h=typeof u.style=="string"?r.date[u.style]:YU(u.style)?u.style.parsedOptions:void 0;s.push({type:Hs.literal,value:n.getDateTimeFormat(t,h).format(f)});continue}if(YIe(u)){var h=typeof u.style=="string"?r.time[u.style]:YU(u.style)?u.style.parsedOptions:r.time.medium;s.push({type:Hs.literal,value:n.getDateTimeFormat(t,h).format(f)});continue}if(WIe(u)){var h=typeof u.style=="string"?r.number[u.style]:ZIe(u.style)?u.style.parsedOptions:void 0;h&&h.scale&&(f=f*(h.scale||1)),s.push({type:Hs.literal,value:n.getNumberFormat(t,h).format(f)});continue}if(XIe(u)){var m=u.children,g=u.value,v=i[g];if(!aAe(v))throw new aGt(g,"function",a);var y=WA(m,t,n,r,i,o),b=v(y.map(function(w){return w.value}));Array.isArray(b)||(b=[b]),s.push.apply(s,b.map(function(w){return{type:typeof w=="string"?Hs.literal:Hs.object,value:w}}))}if(KIe(u)){var _=u.options[f]||u.options.other;if(!_)throw new ece(u.value,f,Object.keys(u.options),a);s.push.apply(s,WA(_.value,t,n,r,i));continue}if(QIe(u)){var _=u.options["=".concat(f)];if(!_){if(!Intl.PluralRules)throw new Pg(`Intl.PluralRules is not available in this environment.
Try polyfilling it using "@formatjs/intl-pluralrules"
`,Bf.MISSING_INTL_API,a);var E=n.getPluralRules(t,{type:u.pluralType}).select(f-(u.offset||0));_=u.options[E]||u.options.other}if(!_)throw new ece(u.value,f,Object.keys(u.options),a);s.push.apply(s,WA(_.value,t,n,r,i,f-(u.offset||0)));continue}}return lGt(s)}function cGt(e,t){return t?Xn(Xn(Xn({},e||{}),t||{}),Object.keys(e).reduce(function(n,r){return n[r]=Xn(Xn({},e[r]),t[r]||{}),n},{})):e}function uGt(e,t){return t?Object.keys(e).reduce(function(n,r){return n[r]=cGt(e[r],t[r]),n},Xn({},e)):e}function U$(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,n){e[t]=n}}}}}function dGt(e){return e===void 0&&(e={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:Vs(function(){for(var t,n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return new((t=Intl.NumberFormat).bind.apply(t,qs([void 0],n,!1)))},{cache:U$(e.number),strategy:Gs.variadic}),getDateTimeFormat:Vs(function(){for(var t,n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return new((t=Intl.DateTimeFormat).bind.apply(t,qs([void 0],n,!1)))},{cache:U$(e.dateTime),strategy:Gs.variadic}),getPluralRules:Vs(function(){for(var t,n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return new((t=Intl.PluralRules).bind.apply(t,qs([void 0],n,!1)))},{cache:U$(e.pluralRules),strategy:Gs.variadic})}}var sAe=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,f){return!d.length||f.type!==Hs.literal||typeof d[d.length-1]!="string"?d.push(f.value):d[d.length-1]+=f.value,d},[]);return u.length<=1?u[0]||"":u},this.formatToParts=function(l){return WA(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=I_(a,["formatters"]);this.ast=e.__parse(t,Xn(Xn({},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=uGt(e.formats,r),this.formatters=i&&i.formatters||dGt(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=oGt,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}(),Qv;(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"})(Qv||(Qv={}));var Q2=function(e){Iu(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),fGt=function(e){Iu(t,e);function t(n,r){return e.call(this,Qv.UNSUPPORTED_FORMATTER,n,r)||this}return t}(Q2),pGt=function(e){Iu(t,e);function t(n,r){return e.call(this,Qv.INVALID_CONFIG,n,r)||this}return t}(Q2),tce=function(e){Iu(t,e);function t(n,r){return e.call(this,Qv.MISSING_DATA,n,r)||this}return t}(Q2),Au=function(e){Iu(t,e);function t(n,r,i){var o=e.call(this,Qv.FORMAT_ERROR,"".concat(n,`
Locale: `).concat(r,`
`),i)||this;return o.locale=r,o}return t}(Q2),z$=function(e){Iu(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}(Au),hGt=function(e){Iu(t,e);function t(n,r){var i=e.call(this,Qv.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}(Q2);function M0(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 mGt=function(e){},gGt=function(e){},lAe={formats:{},messages:{},timeZone:void 0,defaultLocale:"en",defaultFormats:{},fallbackOnEmptyString:!0,onError:mGt,onWarn:gGt};function cAe(){return{dateTime:{},number:{},message:{},relativeTime:{},pluralRules:{},list:{},displayNames:{}}}function i1(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,n){e[t]=n}}}}}function vGt(e){e===void 0&&(e=cAe());var t=Intl.RelativeTimeFormat,n=Intl.ListFormat,r=Intl.DisplayNames,i=Vs(function(){for(var s,l=[],c=0;c<arguments.length;c++)l[c]=arguments[c];return new((s=Intl.DateTimeFormat).bind.apply(s,qs([void 0],l,!1)))},{cache:i1(e.dateTime),strategy:Gs.variadic}),o=Vs(function(){for(var s,l=[],c=0;c<arguments.length;c++)l[c]=arguments[c];return new((s=Intl.NumberFormat).bind.apply(s,qs([void 0],l,!1)))},{cache:i1(e.number),strategy:Gs.variadic}),a=Vs(function(){for(var s,l=[],c=0;c<arguments.length;c++)l[c]=arguments[c];return new((s=Intl.PluralRules).bind.apply(s,qs([void 0],l,!1)))},{cache:i1(e.pluralRules),strategy:Gs.variadic});return{getDateTimeFormat:i,getNumberFormat:o,getMessageFormat:Vs(function(s,l,c,u){return new sAe(s,l,c,Xn({formatters:{getNumberFormat:o,getDateTimeFormat:i,getPluralRules:a}},u||{}))},{cache:i1(e.message),strategy:Gs.variadic}),getRelativeTimeFormat:Vs(function(){for(var s=[],l=0;l<arguments.length;l++)s[l]=arguments[l];return new(t.bind.apply(t,qs([void 0],s,!1)))},{cache:i1(e.relativeTime),strategy:Gs.variadic}),getPluralRules:a,getListFormat:Vs(function(){for(var s=[],l=0;l<arguments.length;l++)s[l]=arguments[l];return new(n.bind.apply(n,qs([void 0],s,!1)))},{cache:i1(e.list),strategy:Gs.variadic}),getDisplayNames:Vs(function(){for(var s=[],l=0;l<arguments.length;l++)s[l]=arguments[l];return new(r.bind.apply(r,qs([void 0],s,!1)))},{cache:i1(e.displayNames),strategy:Gs.variadic})}}function jK(e,t,n,r){var i=e&&e[t],o;if(i&&(o=i[n]),o)return o;r(new fGt("No ".concat(t," format named: ").concat(n)))}function KR(e,t){return Object.keys(e).reduce(function(n,r){return n[r]=Xn({timeZone:t},e[r]),n},{})}function nce(e,t){var n=Object.keys(Xn(Xn({},e),t));return n.reduce(function(r,i){return r[i]=Xn(Xn({},e[i]||{}),t[i]||{}),r},{})}function rce(e,t){if(!t)return e;var n=sAe.formats;return Xn(Xn(Xn({},n),e),{date:nce(KR(n.date,t),KR(e.date||{},t)),time:nce(KR(n.time,t),KR(e.time||{},t))})}var ez=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,f=e.timeZone,h=e.defaultRichTextElements;n===void 0&&(n={id:""});var m=n.id,g=n.defaultMessage;GIe(!!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 v=String(m),y=s&&Object.prototype.hasOwnProperty.call(s,v)&&s[v];if(Array.isArray(y)&&y.length===1&&y[0].type===oo.literal)return y[0].value;if(!r&&y&&typeof y=="string"&&!h)return y.replace(/'\{(.*?)\}'/gi,"{$1}");if(r=Xn(Xn({},h),r||{}),a=rce(a,f),c=rce(c,f),!y){if(u===!1&&y==="")return y;if((!g||o&&o.toLowerCase()!==l.toLowerCase())&&d(new hGt(n,o)),g)try{var b=t.getMessageFormat(g,l,c,i);return b.format(r)}catch(_){return d(new z$('Error formatting default message for: "'.concat(v,'", rendering default message verbatim'),o,n,_)),typeof g=="string"?g:v}return v}try{var b=t.getMessageFormat(y,o,a,Xn({formatters:t},i||{}));return b.format(r)}catch(_){d(new z$('Error formatting message: "'.concat(v,'", using ').concat(g?"default message":"id"," as fallback."),o,n,_))}if(g)try{var b=t.getMessageFormat(g,l,c,i);return b.format(r)}catch(_){d(new z$('Error formatting the default message for: "'.concat(v,'", rendering message verbatim'),o,n,_))}return typeof y=="string"?y:typeof g=="string"?g:v},uAe=["formatMatcher","timeZone","hour12","weekday","era","year","month","day","hour","minute","second","timeZoneName","hourCycle","dateStyle","timeStyle","calendar","numberingSystem","fractionalSecondDigits"];function t3(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=Xn(Xn({},s&&{timeZone:s}),l&&jK(o,t,l,a)),u=M0(r,uAe,c);return t==="time"&&!u.hour&&!u.minute&&!u.second&&!u.timeStyle&&!u.dateStyle&&(u=Xn(Xn({},u),{hour:"numeric",minute:"numeric"})),n(i,u)}function bGt(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 t3(e,"date",t,a).format(s)}catch(l){e.onError(new Au("Error formatting date.",e.locale,l))}return String(s)}function yGt(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 t3(e,"time",t,a).format(s)}catch(l){e.onError(new Au("Error formatting time.",e.locale,l))}return String(s)}function _Gt(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=M0(s,uAe,l?{timeZone:l}:{});try{return t(c,d).formatRange(i,o)}catch(f){u(new Au("Error formatting date time range.",e.locale,f))}return String(i)}function SGt(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 t3(e,"date",t,a).formatToParts(s)}catch(l){e.onError(new Au("Error formatting date.",e.locale,l))}return[]}function EGt(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 t3(e,"time",t,a).formatToParts(s)}catch(l){e.onError(new Au("Error formatting time.",e.locale,l))}return[]}var CGt=["style","type","fallback","languageDisplay"];function wGt(e,t,n,r){var i=e.locale,o=e.onError,a=Intl.DisplayNames;a||o(new Pg(`Intl.DisplayNames is not available in this environment.
Try polyfilling it using "@formatjs/intl-displaynames"
`,Bf.MISSING_INTL_API));var s=M0(r,CGt);try{return t(i,s).of(n)}catch(l){o(new Au("Error formatting display name.",i,l))}}var TGt=["type","style"],ice=Date.now();function xGt(e){return"".concat(ice,"_").concat(e,"_").concat(ice)}function OGt(e,t,n,r){r===void 0&&(r={});var i=dAe(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 dAe(e,t,n,r){var i=e.locale,o=e.onError;r===void 0&&(r={});var a=Intl.ListFormat;a||o(new Pg(`Intl.ListFormat is not available in this environment.
Try polyfilling it using "@formatjs/intl-listformat"
`,Bf.MISSING_INTL_API));var s=M0(r,TGt);try{var l={},c=n.map(function(u,d){if(typeof u=="object"){var f=xGt(d);return l[f]=u,f}return String(u)});return t(i,s).formatToParts(c).map(function(u){return u.type==="literal"?u:Xn(Xn({},u),{value:l[u.value]||u.value})})}catch(u){o(new Au("Error formatting list.",i,u))}return n}var RGt=["type"];function IGt(e,t,n,r){var i=e.locale,o=e.onError;r===void 0&&(r={}),Intl.PluralRules||o(new Pg(`Intl.PluralRules is not available in this environment.
Try polyfilling it using "@formatjs/intl-pluralrules"
`,Bf.MISSING_INTL_API));var a=M0(r,RGt);try{return t(i,a).select(n)}catch(s){o(new Au("Error formatting plural.",i,s))}return"other"}var AGt=["numeric","style"];function NGt(e,t,n){var r=e.locale,i=e.formats,o=e.onError;n===void 0&&(n={});var a=n.format,s=!!a&&jK(i,"relative",a,o)||{},l=M0(n,AGt,s);return t(r,l)}function MGt(e,t,n,r,i){i===void 0&&(i={}),r||(r="second");var o=Intl.RelativeTimeFormat;o||e.onError(new Pg(`Intl.RelativeTimeFormat is not available in this environment.
Try polyfilling it using "@formatjs/intl-relativetimeformat"
`,Bf.MISSING_INTL_API));try{return NGt(e,t,i).format(n,r)}catch(a){e.onError(new Au("Error formatting relative time.",e.locale,a))}return String(n)}var kGt=["style","currency","unit","unitDisplay","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","currencyDisplay","currencySign","notation","signDisplay","unit","unitDisplay","numberingSystem","trailingZeroDisplay","roundingPriority","roundingIncrement","roundingMode"];function fAe(e,t,n){var r=e.locale,i=e.formats,o=e.onError;n===void 0&&(n={});var a=n.format,s=a&&jK(i,"number",a,o)||{},l=M0(n,kGt,s);return t(r,l)}function PGt(e,t,n,r){r===void 0&&(r={});try{return fAe(e,t,r).format(n)}catch(i){e.onError(new Au("Error formatting number.",e.locale,i))}return String(n)}function DGt(e,t,n,r){r===void 0&&(r={});try{return fAe(e,t,r).formatToParts(n)}catch(i){e.onError(new Au("Error formatting number.",e.locale,i))}return[]}function LGt(e){var t=e?e[Object.keys(e)[0]]:void 0;return typeof t=="string"}function $Gt(e){e.onWarn&&e.defaultRichTextElements&&LGt(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 FGt(e,t){var n=vGt(t),r=Xn(Xn({},lAe),e),i=r.locale,o=r.defaultLocale,a=r.onError;return i?!Intl.NumberFormat.supportedLocalesOf(i).length&&a?a(new tce('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 tce('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 pGt('"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"),$Gt(r),Xn(Xn({},r),{formatters:n,formatNumber:PGt.bind(null,r,n.getNumberFormat),formatNumberToParts:DGt.bind(null,r,n.getNumberFormat),formatRelativeTime:MGt.bind(null,r,n.getRelativeTimeFormat),formatDate:bGt.bind(null,r,n.getDateTimeFormat),formatDateToParts:SGt.bind(null,r,n.getDateTimeFormat),formatTime:yGt.bind(null,r,n.getDateTimeFormat),formatDateTimeRange:_Gt.bind(null,r,n.getDateTimeFormat),formatTimeToParts:EGt.bind(null,r,n.getDateTimeFormat),formatPlural:IGt.bind(null,r,n.getPluralRules),formatMessage:ez.bind(null,r,n),$t:ez.bind(null,r,n),formatList:OGt.bind(null,r,n.getListFormat),formatListToParts:dAe.bind(null,r,n.getListFormat),formatDisplayName:wGt.bind(null,r,n.getDisplayNames)})}function pAe(e){GIe(e,"[React Intl] Could not find required `intl` object. <IntlProvider> needs to exist in the component ancestry.")}var hAe=Xn(Xn({},lAe),{textComponent:p.Fragment});function BGt(e){return function(t){return e(p.Children.toArray(t))}}function tz(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 mAe={exports:{}},Ri={};/** @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 Wa=typeof Symbol=="function"&&Symbol.for,HK=Wa?Symbol.for("react.element"):60103,UK=Wa?Symbol.for("react.portal"):60106,n3=Wa?Symbol.for("react.fragment"):60107,r3=Wa?Symbol.for("react.strict_mode"):60108,i3=Wa?Symbol.for("react.profiler"):60114,o3=Wa?Symbol.for("react.provider"):60109,a3=Wa?Symbol.for("react.context"):60110,zK=Wa?Symbol.for("react.async_mode"):60111,s3=Wa?Symbol.for("react.concurrent_mode"):60111,l3=Wa?Symbol.for("react.forward_ref"):60112,c3=Wa?Symbol.for("react.suspense"):60113,jGt=Wa?Symbol.for("react.suspense_list"):60120,u3=Wa?Symbol.for("react.memo"):60115,d3=Wa?Symbol.for("react.lazy"):60116,HGt=Wa?Symbol.for("react.block"):60121,UGt=Wa?Symbol.for("react.fundamental"):60117,zGt=Wa?Symbol.for("react.responder"):60118,VGt=Wa?Symbol.for("react.scope"):60119;function Mc(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case HK:switch(e=e.type,e){case zK:case s3:case n3:case i3:case r3:case c3:return e;default:switch(e=e&&e.$$typeof,e){case a3:case l3:case d3:case u3:case o3:return e;default:return t}}case UK:return t}}}function gAe(e){return Mc(e)===s3}Ri.AsyncMode=zK;Ri.ConcurrentMode=s3;Ri.ContextConsumer=a3;Ri.ContextProvider=o3;Ri.Element=HK;Ri.ForwardRef=l3;Ri.Fragment=n3;Ri.Lazy=d3;Ri.Memo=u3;Ri.Portal=UK;Ri.Profiler=i3;Ri.StrictMode=r3;Ri.Suspense=c3;Ri.isAsyncMode=function(e){return gAe(e)||Mc(e)===zK};Ri.isConcurrentMode=gAe;Ri.isContextConsumer=function(e){return Mc(e)===a3};Ri.isContextProvider=function(e){return Mc(e)===o3};Ri.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===HK};Ri.isForwardRef=function(e){return Mc(e)===l3};Ri.isFragment=function(e){return Mc(e)===n3};Ri.isLazy=function(e){return Mc(e)===d3};Ri.isMemo=function(e){return Mc(e)===u3};Ri.isPortal=function(e){return Mc(e)===UK};Ri.isProfiler=function(e){return Mc(e)===i3};Ri.isStrictMode=function(e){return Mc(e)===r3};Ri.isSuspense=function(e){return Mc(e)===c3};Ri.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===n3||e===s3||e===i3||e===r3||e===c3||e===jGt||typeof e=="object"&&e!==null&&(e.$$typeof===d3||e.$$typeof===u3||e.$$typeof===o3||e.$$typeof===a3||e.$$typeof===l3||e.$$typeof===UGt||e.$$typeof===zGt||e.$$typeof===VGt||e.$$typeof===HGt)};Ri.typeOf=Mc;mAe.exports=Ri;var GGt=mAe.exports,vAe=GGt,WGt={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},qGt={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},bAe={};bAe[vAe.ForwardRef]=WGt;bAe[vAe.Memo]=qGt;var VK=typeof window<"u"&&!window.__REACT_INTL_BYPASS_GLOBAL_CONTEXT__?window.__REACT_INTL_CONTEXT__||(window.__REACT_INTL_CONTEXT__=p.createContext(null)):p.createContext(null);VK.Consumer;var YGt=VK.Provider,KGt=YGt,QGt=VK;function Si(){var e=p.useContext(QGt);return pAe(e),e}var nz;(function(e){e.formatDate="FormattedDate",e.formatTime="FormattedTime",e.formatNumber="FormattedNumber",e.formatList="FormattedList",e.formatDisplayName="FormattedDisplayName"})(nz||(nz={}));var rz;(function(e){e.formatDate="FormattedDateParts",e.formatTime="FormattedTimeParts",e.formatNumber="FormattedNumberParts",e.formatList="FormattedListParts"})(rz||(rz={}));function yAe(e){var t=function(n){var r=Si(),i=n.value,o=n.children,a=I_(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=rz[e],t}function X2(e){var t=function(n){var r=Si(),i=n.value,o=n.children,a=I_(n,["value","children"]),s=r[e](i,a);if(typeof o=="function")return o(s);var l=r.textComponent||p.Fragment;return p.createElement(l,null,s)};return t.displayName=nz[e],t}function _Ae(e){return e&&Object.keys(e).reduce(function(t,n){var r=e[n];return t[n]=aAe(r)?BGt(r):r,t},{})}var oce=function(e,t,n,r){for(var i=[],o=4;o<arguments.length;o++)i[o-4]=arguments[o];var a=_Ae(r),s=ez.apply(void 0,qs([e,t,n,a],i,!1));return Array.isArray(s)?p.Children.toArray(s):s},ace=function(e,t){var n=e.defaultRichTextElements,r=I_(e,["defaultRichTextElements"]),i=_Ae(n),o=FGt(Xn(Xn(Xn({},hAe),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 Xn(Xn({},o),{formatMessage:oce.bind(null,a,o.formatters),$t:oce.bind(null,a,o.formatters)})};function V$(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 XGt=function(e){Iu(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.cache=cAe(),n.state={cache:n.cache,intl:ace(V$(n.props),n.cache),prevConfig:V$(n.props)},n}return t.getDerivedStateFromProps=function(n,r){var i=r.prevConfig,o=r.cache,a=V$(n);return tz(i,a)?null:{intl:ace(a,o),prevConfig:a}},t.prototype.render=function(){return pAe(this.state.intl),p.createElement(KGt,{value:this.state.intl},this.props.children)},t.displayName="IntlProvider",t.defaultProps=hAe,t}(p.PureComponent);function ZGt(e,t){var n=e.values,r=I_(e,["values"]),i=t.values,o=I_(t,["values"]);return tz(i,n)&&tz(r,o)}function SAe(e){var t=Si(),n=t.formatMessage,r=t.textComponent,i=r===void 0?p.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,f=e.ignoreTag,h={id:o,description:a,defaultMessage:s},m=n(h,l,{ignoreTag:f});return typeof c=="function"?c(Array.isArray(m)?m:[m]):d?p.createElement(d,null,p.Children.toArray(m)):p.createElement(p.Fragment,null,m)}SAe.displayName="FormattedMessage";var ad=p.memo(SAe,ZGt);ad.displayName="MemoizedFormattedMessage";X2("formatDate");X2("formatTime");X2("formatNumber");X2("formatList");X2("formatDisplayName");yAe("formatDate");yAe("formatTime");const eE=({onKaptchaChange:e,onKaptchaCheck:t})=>{const n=Si(),[r,i]=p.useState(),[o,a]=p.useState(),s=async()=>{const u=await EVt();u.data.code===200&&(i(u.data.data.captchaUid),a(u.data.data.captchaImage))},l=async(u,d)=>{const f=await CVt(u,d);console.log("checkCaptcha response",f),f.data.code===200?t&&t(!0):t&&t(!1)};p.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 H.jsx(H.Fragment,{children:o&&H.jsxs(H.Fragment,{children:[H.jsx(Ki,{onChange:c,prefix:H.jsx(Vgt,{}),placeholder:n.formatMessage({id:"captcha",defaultMessage:"captcha"}),style:{width:"65%",float:"left",height:40}}),H.jsx("img",{src:o,alt:"captcha",onClick:s})]})})},JGt=({loginType:e,onKaptchaChange:t,onKaptchaCheck:n,onRememberChange:r})=>{const i=Si(),[o,a]=p.useState(!1);return p.useEffect(()=>{if(o)return;const s=localStorage.getItem(oc);if(s)try{const{username:l,remember:c}=JSON.parse(s);l&&(r==null||r(l,!!c),a(!0))}catch(l){console.error("Failed to parse saved credentials:",l)}},[r,o]),H.jsx(H.Fragment,{children:e==="account"&&H.jsxs("div",{children:[H.jsx(ci,{name:"username",fieldProps:{size:"large",prefix:H.jsx(cD,{className:"prefixIcon"}),onChange:()=>{a(!0)},onClear:()=>{console.log("onClear");const s=localStorage.getItem(oc);if(s)try{const l=JSON.parse(s),{username:c,...u}=l;console.log("username",c),console.log("rest",u),localStorage.setItem(oc,JSON.stringify(u))}catch(l){console.error("Failed to parse saved credentials:",l)}}},placeholder:i.formatMessage({id:"pages.login.username.placeholder",defaultMessage:"邮箱"}),rules:[{required:!0,message:H.jsx(ad,{id:"pages.login.username.required",defaultMessage:"请输入邮箱!"})}]}),H.jsx(ci.Password,{name:"password",fieldProps:{size:"large",prefix:H.jsx(T0,{className:"prefixIcon"})},placeholder:i.formatMessage({id:"pages.login.password.placeholder",defaultMessage:"密码"}),rules:[{required:!0,message:H.jsx(ad,{id:"pages.login.password.required",defaultMessage:"请输入密码!"})}]}),H.jsx(Dr.Item,{name:"captchaCode",rules:[{required:!0,message:i.formatMessage({id:"pages.login.captcha.required",defaultMessage:"请输入验证码!"})}],children:H.jsx(eE,{onKaptchaChange:t,onKaptchaCheck:n})})]})})};async function eWt(e){return $r("/auth/v1/login",{method:"POST",data:{...e,client:wr}})}async function GK(e){return $r("/auth/v1/send/mobile",{method:"POST",data:{...e,client:wr}})}async function EAe(e){return $r("/auth/v1/send/email",{method:"POST",data:{...e,client:wr}})}async function tWt(e){return $r("/auth/v1/login/mobile",{method:"POST",data:{...e,client:wr}})}async function nWt(e,t){return $r("/auth/v1/vip/scan/query",{method:"GET",params:{deviceUid:e,forceRefresh:t,client:wr}})}async function rWt(e){return $r("/auth/v1/vip/scan/login",{method:"POST",data:{...e,client:wr}})}async function iWt(e){return $r("/api/v1/user/logout",{method:"POST",data:{client:wr}})}const oWt=({loginType:e,onKaptchaChange:t,onKaptchaCheck:n,onRememberChange:r})=>{const i=Si(),[o,a]=p.useState(""),[s,l]=p.useState(""),[c,u]=p.useState(!1),[d,f]=p.useState(!1);p.useEffect(()=>{if(d)return;const y=localStorage.getItem(oc);if(y)try{const{mobile:b}=JSON.parse(y);b&&(r==null||r(b),f(!0))}catch(b){console.error("Failed to parse saved credentials:",b)}},[r,d]);const h=async(y,b)=>{a(y),l(b),t&&t(y,b)},m=async y=>{u(y),n&&n(y)},g=[{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"}],v=y=>{const b=y.value.includes("-")?y.value.split("-")[0]:y.value;return H.jsxs("div",{children:[H.jsx("span",{role:"img","aria-label":y.label,style:{marginRight:8},children:y.icon}),y.label," (+",b,")"]})};return H.jsx(H.Fragment,{children:e==="mobile"&&H.jsxs(H.Fragment,{children:[H.jsxs(_2,{gutter:16,children:[H.jsx(Uv,{span:10,children:H.jsx(G2,{name:"country",options:g,fieldProps:{size:"large",placeholder:i.formatMessage({id:"pages.login.country.placeholder",defaultMessage:"选择国家/地区"}),optionLabelProp:"label",optionItemRender:v},initialValue:"86"})}),H.jsx(Uv,{span:14,children:H.jsx(ci,{fieldProps:{size:"large",prefix:H.jsx(w2,{className:"prefixIcon"}),onChange:()=>{f(!0)},onClear:()=>{console.log("onClear");const y=localStorage.getItem(oc);if(y)try{const b=JSON.parse(y),{mobile:_,...E}=b;console.log("saved:",_,b),localStorage.setItem(oc,JSON.stringify(E))}catch(b){console.error("Failed to parse saved credentials:",b)}}},name:"mobile",placeholder:i.formatMessage({id:"pages.login.phoneNumber.placeholder",defaultMessage:"手机号"}),rules:[{required:!0,message:H.jsx(ad,{id:"pages.login.phoneNumber.required",defaultMessage:"请输入手机号!"})},{pattern:/^1\d{10}$/,message:H.jsx(ad,{id:"pages.login.phoneNumber.invalid",defaultMessage:"手机号格式错误!"})}]})})]}),H.jsx(Dr.Item,{name:"captchaCode",rules:[{required:!0,message:i.formatMessage({id:"pages.login.captcha.required",defaultMessage:"请输入验证码!"})}],children:H.jsx(eE,{onKaptchaChange:h,onKaptchaCheck:m})}),H.jsx(P2,{fieldProps:{size:"large",prefix:H.jsx(T0,{className:"prefixIcon"})},captchaProps:{size:"large",disabled:!c},placeholder:i.formatMessage({id:"pages.login.captcha.placeholder",defaultMessage:"请输入验证码"}),captchaTextRender:(y,b)=>y?`${b} ${i.formatMessage({id:"pages.getCaptchaSecondText",defaultMessage:"获取验证码"})}`:i.formatMessage({id:"pages.login.phoneLogin.getVerificationCode",defaultMessage:"获取验证码"}),phoneName:"mobile",name:"code",rules:[{required:!0,message:H.jsx(ad,{id:"pages.login.captcha.required",defaultMessage:"请输入验证码!"})}],onGetCaptcha:async y=>{if(console.log("mobile:",y),y&&y.length===11){const _=await GK({mobile:y,type:B$e,captchaUid:o,captchaCode:s,platform:hu});if(console.log("sendMobileCode:",_.data),_.data.code!==200){Wt.error(i.formatMessage({id:_.data.message,defaultMessage:_.data.message}));return}Wt.success(i.formatMessage({id:_.data.message,defaultMessage:_.data.message}))}else Wt.error("手机号格式错误")}}),H.jsx(SSe,{message:H.jsx(ad,{id:"pages.login.auto.register",defaultMessage:"Mobile will auto register"}),type:"info"})]})})},aWt=({loginType:e})=>{const t=Si(),n=Aa(),r=Oa(h=>h.setUserInfo),i=Fx(h=>h.setAccessToken),{deviceUid:o,setDeviceUid:a}=Oa(h=>({deviceUid:h.deviceUid,setDeviceUid:h.setDeviceUid})),[s,l]=p.useState("login"),[c,u]=p.useState("loading"),d=async h=>{console.log("handleScanLogin values: ",h),Wt.loading(t.formatMessage({id:"logging",defaultMessage:"logging..."}));const m=await rWt({...h});console.log("LoginMobileResult scanLogin:",m.data),m.data.code===200?(Wt.destroy(),Wt.success(t.formatMessage({id:"pages.login.success",defaultMessage:"login success"})),r(m.data.data.user),i(m.data.data.accessToken),n("/chat"),rU()):(Wt.destroy(),Wt.error(m.data.message))},f=async h=>{if(e!="scan")return;const m=await nWt(o,h);if(m.data.code===200){const g=m.data.data;if(console.log("handleScanQuery status: ",g.status),g.status===V$e)u("active"),l("deviceUid="+g.deviceUid+"&code="+g.content);else if(g.status===G$e)u("scanned");else if(g.status===q$e)u("expired");else if(g.status===W$e){if(g.receiver===void 0||g.receiver==="")return;let v={mobile:g.receiver,code:g.content,platform:hu};console.log("login scan info:",v),await d(v)}}else Wt.error(m.data.message)};return p.useEffect(()=>{console.log("scan deviceUid:",o),(o===void 0||o==="")&&a(zP()),f(!0);const h=setInterval(()=>{f(!1)},3e3);return()=>{clearInterval(h)}},[e,o]),H.jsx(H.Fragment,{children:e==="scan"&&H.jsx(H.Fragment,{children:H.jsx(Fxe,{style:{margin:"auto"},value:s,status:c,onRefresh:()=>{console.log("onRefresh"),f(!0)}})})})},CAe=()=>{const{token:e}=Es.useToken(),{isCustomServer:t,setIsCustomServer:n}=p.useContext(as),[r]=Dr.useForm(),[i,o]=p.useState(!1),[a,s]=p.useState(""),[l,c]=p.useState(""),u=Si(),d=()=>{console.log("switch server"),n(m=>!m)};p.useEffect(()=>{a&&a.length>0&&(r.setFieldsValue({apiUrl:a}),console.log("apiUrl:",a))},[a]),p.useEffect(()=>{if(t){const m=localStorage.getItem(Xb);m==="true"&&(o(!0),r.setFieldsValue({isCustomServerEnabled:!0})),console.log("isCustomServer customEnabled:",m);const g=localStorage.getItem(CC);g&&r.setFieldsValue({apiUrl:q0(g)});const v=localStorage.getItem(wC);v&&r.setFieldsValue({websocketUrl:q0(v)})}},[t]);const f=m=>{if(console.log("handleCustomServerChange e:",m),o(m.target.checked),m.target.checked){const g=localStorage.getItem(CC);g&&r.setFieldsValue({apiUrl:q0(g)});const v=localStorage.getItem(wC);v&&r.setFieldsValue({websocketUrl:q0(v)}),console.log("initData apiUrl:",g,"websocketUrl:",v)}else localStorage.setItem(Xb,"false")},h=(m,g)=>(console.log("props:",m,g),H.jsxs("div",{style:{display:"flex",justifyContent:"center",gap:"8px"},children:[H.jsx($n,{icon:H.jsx(cmt,{}),onClick:d,children:u.formatMessage({id:"server.button.back"})},"back"),H.jsx($n,{type:"primary",onClick:()=>{let v=m.form.getFieldValue("apiUrl");v=q0(v.trim());let y=m.form.getFieldValue("websocketUrl");y=q0(y.trim()),v&&v.trim().length>0&&y&&y.trim().length>0?(localStorage.setItem(CC,v),localStorage.setItem(wC,y),localStorage.setItem(Xb,"true"),Wt.success(u.formatMessage({id:"server.save.success"}))):Wt.error("请输入正确的服务器地址")},children:u.formatMessage({id:"server.button.save"})},"submit"),H.jsx($n,{onClick:()=>{var v;(v=m.form)==null||v.resetFields(),s(""),localStorage.setItem(Xb,"false"),localStorage.setItem(CC,""),localStorage.setItem(wC,""),Wt.success(u.formatMessage({id:"server.reset.success"}))},children:u.formatMessage({id:"server.button.reset"})},"reset"),H.jsx($n,{onClick:()=>{FT("https://www.weiyuai.cn/docs/zh-CN/docs/manual/agent/auth/login")},children:u.formatMessage({id:"server.button.help"})},"help")]}));return H.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:H.jsxs(Dr,{className:"ant-pro-form-server-main",form:r,submitter:{render:h},children:[H.jsx(gK,{name:"isCustomServerEnabled",fieldProps:{onChange:f},children:u.formatMessage({id:"server.custom.enable"})}),i&&H.jsxs(H.Fragment,{children:[H.jsx(ci,{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)}}),H.jsx(ci,{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)}})]})]})})},sWt=({isModel:e=!1})=>{const t=Si(),[n]=Dr.useForm(),r=Aa(),{isLoggedIn:i}=p.useContext(as),{token:o}=Es.useToken(),[a,s]=p.useState("/notebase/logo.png"),[l,c]=p.useState(""),[u,d]=p.useState(""),f=localStorage.getItem(QF),[h]=p.useState(f||"/"),[m,g]=p.useState("account"),v=Oa(V=>V.setUserInfo),y=Fx(V=>V.setAccessToken),{isCustomServer:b,setIsCustomServer:_}=p.useContext(as),[E,w]=p.useState(!1);p.useEffect(()=>{i&&!e&&r(h)},[i,r,e]);const S=V=>{console.log(`onPrivacyProtocolChange checked = ${V.target.checked}`),w(V.target.checked);const j=localStorage.getItem(oc);if(j)try{const{remember:U}=JSON.parse(j);U&&setTimeout(()=>{n.setFieldsValue({remember:U})},0)}catch(U){console.error("Failed to parse saved credentials:",U)}},C=()=>{FT(h$e)},[T,x]=p.useState(""),O=async(V,j)=>{x(V),n.setFieldValue("captchaCode",j)},N=async V=>{console.log("handleKaptchaCheck:",V)},I=async V=>{if(console.log("handleSubmit values: ",V,m),!E){Wt.error("请阅读并同意隐私协议");return}Wt.loading(t.formatMessage({id:"logging",defaultMessage:"logging..."}));const j=localStorage.getItem(oc);let U=!1;if(j)try{U=JSON.parse(j).remember}catch(te){console.error("Failed to parse saved credentials:",te)}localStorage.setItem(oc,JSON.stringify({username:V.username,remember:U}));const J=await eWt({...V});console.log("LoginResult:",J.data),J.data.code===200?(Wt.destroy(),Wt.success(t.formatMessage({id:"pages.login.success",defaultMessage:"login success"})),U&&localStorage.setItem(oc,JSON.stringify({username:V.username,password:V.password,remember:!0})),v(J.data.data.user),y(J.data.data.accessToken),e||r(h),rU()):(Wt.destroy(),Wt.error(t.formatMessage({id:J.data.message,defaultMessage:J.data.message})))},M=V=>{n.setFieldsValue({mobile:V})},F=async V=>{if(!E){Wt.error(t.formatMessage({id:"login.privacy.required",defaultMessage:"请阅读并同意隐私协议"}));return}const j=localStorage.getItem(oc);let U={};if(j)try{U=JSON.parse(j)}catch(te){console.error("Failed to parse saved credentials:",te)}localStorage.setItem(oc,JSON.stringify({...U,mobile:V.mobile}));const J=await tWt({...V});console.log("LoginMobileResult:",J),J.data.code===200?(Wt.destroy(),Wt.success(t.formatMessage({id:"pages.login.success",defaultMessage:"login success"})),v(J.data.data.user),y(J.data.data.accessToken),e||r("/"),rU()):(Wt.destroy(),Wt.error(t.formatMessage({id:J.data.message,defaultMessage:J.data.message})))},k=()=>{console.log("switch server"),_(V=>!V)},B=()=>{console.log("handleAnonymousLogin"),r("/anonymous")},A=()=>{if(ud)return{}},P=(V,j)=>{n.setFieldsValue({username:V,remember:j});const U=localStorage.getItem(oc);if(U&&j)try{const{password:J}=JSON.parse(U);J&&n.setFieldsValue({password:J})}catch(J){console.error("Failed to parse saved credentials:",J)}},z=async()=>{var j,U,J,te,ae,K,Q;console.log("getConfig");const V=await t0e();(j=V==null?void 0:V.custom)!=null&&j.enabled?((U=V==null?void 0:V.custom)!=null&&U.logo?s((J=V==null?void 0:V.custom)==null?void 0:J.logo):s("/notebase/logo.png"),(te=V==null?void 0:V.custom)!=null&&te.name?c((ae=V==null?void 0:V.custom)==null?void 0:ae.name):c(t.formatMessage({id:"app.title"})),(K=V==null?void 0:V.custom)!=null&&K.description?d((Q=V==null?void 0:V.custom)==null?void 0:Q.description):d(t.formatMessage({id:"slogan"}))):(s("/notebase/logo.png"),c(t.formatMessage({id:"app.title"})),d(t.formatMessage({id:"slogan"}))),e0e()};p.useEffect(()=>{$ye(),z()},[]);const L=[{key:"account",label:t.formatMessage({id:"pages.login.accountLogin.tab",defaultMessage:"账户密码登录"}),children:H.jsx(JGt,{loginType:m,onKaptchaChange:O,onKaptchaCheck:N,onRememberChange:P})},{key:"mobile",label:t.formatMessage({id:"pages.login.phoneLogin.tab",defaultMessage:"手机号登录"}),children:H.jsx(oWt,{loginType:m,onKaptchaChange:O,onKaptchaCheck:N,onRememberChange:M})}];return g$e&&L.push({key:"scan",label:t.formatMessage({id:"pages.login.scanLogin.tab",defaultMessage:"扫码登录"}),children:H.jsx(aWt,{loginType:m})}),H.jsx(TD,{hashed:!1,children:H.jsxs("div",{style:{backgroundColor:o.colorBgContainer,textAlign:"center",height:"100%"},children:[!b&&H.jsxs(nIe,{form:n,contentStyle:{minWidth:400},logo:H.jsx("img",{alt:"logo",src:v$e}),title:b$e,initialValues:A(),onFinish:async V=>{if(console.log("login:",V),m==="account"){const j={username:V.username,password:V.password,captchaUid:T,captchaCode:V.captchaCode,platform:hu};await I(j)}else if(m==="mobile"){const j={mobile:V.mobile,code:V.code,captchaUid:T,captchaCode:V.captchaCode,platform:hu};await F(j)}else console.log("scan login type")},actions:ud&&H.jsxs(Xi,{children:[H.jsx(ad,{id:"pages.login.loginWith",defaultMessage:"其他登录方式"}),H.jsx($n,{type:"link",onClick:B,children:t.formatMessage({id:"pages.login.anonymousLogin",defaultMessage:"匿名登录"})})]}),children:[H.jsx(TS,{centered:!0,items:L,activeKey:m,onChange:V=>g(V)}),H.jsxs("div",{style:{marginBlockEnd:24,textAlign:"left",marginTop:10},children:[H.jsx(uh,{checked:E,onChange:S,children:H.jsx($n,{size:"small",type:"link",onClick:C,children:t.formatMessage({id:"login.privacy.agreement",defaultMessage:"同意《用户隐私&协议》"})})}),m$e&&H.jsx($n,{type:"link",style:{float:"right",marginBottom:24},onClick:k,children:t.formatMessage({id:"login.switch.server",defaultMessage:"切换服务器"})})]})]}),b&&H.jsx(CAe,{})]})})},iz=({isModel:e=!1})=>H.jsx(N5,{children:H.jsx(sWt,{isModel:e})}),lWt=()=>{Aa();const{token:e}=Es.useToken();return p.useState("phone"),Xl(e.colorTextBase,.2),H.jsx(TD,{hashed:!1,children:H.jsx("div",{style:{backgroundColor:e.colorBgContainer,textAlign:"center",height:"100vh"},children:H.jsxs(nIe,{logo:"./logo.png",title:"微语",subTitle:"注册账号",children:[H.jsxs(H.Fragment,{children:[H.jsx(ci,{name:"username",fieldProps:{size:"large",prefix:H.jsx(cD,{className:"prefixIcon"})},placeholder:"用户名",rules:[{required:!0,message:"请输入用户名!"}]}),H.jsx(ci.Password,{name:"password",fieldProps:{size:"large",prefix:H.jsx(T0,{className:"prefixIcon"})},placeholder:"密码",rules:[{required:!0,message:"请输入密码!"}]})]}),H.jsxs("div",{style:{marginBlockEnd:24},children:[H.jsx(gK,{noStyle:!0,name:"autoLogin",children:"自动登录"}),H.jsx(rCt,{to:"/agent/auth/login",style:{float:"right"},children:"登录"})]})]})})})};function f3(){const[e,t]=p.useState(!0);return p.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 kc(){const e=Si();return{translateString:r=>r==null?r:r&&r.startsWith(KJ)?e.formatMessage({id:r,defaultMessage:r}):r,translateStringTranct:r=>r==null?r:r!=null&&r.startsWith(KJ)?xte(e.formatMessage({id:r}),10):xte(r,10)}}function WK(){const e=f3(),{translateString:t}=kc(),[n,r]=p.useState(!1),[i,o]=p.useState(!1),a=async(l,c)=>{Ha?await K_t()?console.log("handleNewMessage isWindowActive"):Q_t(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 p.useEffect(()=>(Ha||(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",()=>{})}),[]),p.useEffect(()=>{if(console.log("useNotification useEffect isNetworkOnline",e),e){const l=localStorage.getItem(JC);(l==null||l==="true")&&a(t("i18n.tip.title"),t("i18n.tip.network.disconnected"))}else{const l=localStorage.getItem(JC);(l==null||l==="true")&&a(t("i18n.tip.title"),t("i18n.tip.network.connected"))}},[e]),{isNotificationGranted:n,showWebNotification:s,showNotification:a}}var zp={},wAe={exports:{}},TAe={exports:{}};(function(e){var t=dIe;function n(r){if(Array.isArray(r))return t(r)}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports})(TAe);var cWt=TAe.exports,xAe={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})(xAe);var OAe=xAe.exports,RAe={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})(RAe);var uWt=RAe.exports;(function(e){var t=cWt,n=OAe,r=bK,i=uWt;function o(a){return t(a)||n(a)||r(a)||i()}e.exports=o,e.exports.__esModule=!0,e.exports.default=e.exports})(wAe);var IAe=wAe.exports,p3={};Object.defineProperty(p3,"__esModule",{value:!0});p3.default=dWt;function dWt(e,t){var n=Object.assign({},e);return Array.isArray(t)&&t.forEach(function(r){delete n[r]}),n}var qK={};const Dg=Nx(Sqe);var h3={},fWt=aa.default;Object.defineProperty(h3,"__esModule",{value:!0});h3.default=hWt;var pWt=fWt(p);function hWt(e,t,n){var r=pWt.useRef({});return(!("value"in r.current)||n(r.current.condition,t))&&(r.current.value=e(),r.current.condition=t),r.current.value}var m3={},AAe={exports:{}};(function(e){var t=sIe,n=OAe,r=bK,i=pIe;function o(a){return t(a)||n(a)||r(a)||i()}e.exports=o,e.exports.__esModule=!0,e.exports.default=e.exports})(AAe);var mWt=AAe.exports,YK={};Object.defineProperty(YK,"__esModule",{value:!0});YK.default=gWt;function gWt(e,t){for(var n=e,r=0;r<t.length;r+=1){if(n==null)return;n=n[t[r]]}return n}var Z2=xr.default;Object.defineProperty(m3,"__esModule",{value:!0});m3.default=qA;m3.merge=SWt;var NAe=Z2(d0),vWt=Z2(f0),MAe=Z2(IAe),bWt=Z2(mWt),oz=Z2(YK);function kAe(e,t,n,r){if(!t.length)return n;var i=(0,bWt.default)(t),o=i[0],a=i.slice(1),s;return!e&&typeof o=="number"?s=[]:Array.isArray(e)?s=(0,MAe.default)(e):s=(0,vWt.default)({},e),r&&n===void 0&&a.length===1?delete s[o][a[0]]:s[o]=kAe(s[o],a,n,r),s}function qA(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return t.length&&r&&n===void 0&&!(0,oz.default)(e,t.slice(0,-1))?e:kAe(e,t,n,r)}function yWt(e){return(0,NAe.default)(e)==="object"&&e!==null&&Object.getPrototypeOf(e)===Object.prototype}function sce(e){return Array.isArray(e)?[]:{}}var _Wt=typeof Reflect>"u"?Object.keys:Reflect.ownKeys;function SWt(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=sce(t[0]);return t.forEach(function(i){function o(a,s){var l=new Set(s),c=(0,oz.default)(i,a),u=Array.isArray(c);if(u||yWt(c)){if(!l.has(c)){l.add(c);var d=(0,oz.default)(r,a);u?r=qA(r,a,[]):(!d||(0,NAe.default)(d)!=="object")&&(r=qA(r,a,sce(c))),_Wt(c).forEach(function(f){o([].concat((0,MAe.default)(a),[f]),l)})}}else r=qA(r,a,c)}o([])}),r}var su={},PAe=aa.default;Object.defineProperty(su,"__esModule",{value:!0});su.devUseWarning=su.default=su.WarningContext=void 0;su.noop=KK;su.resetWarned=wWt;var EWt=PAe(p),CWt=PAe(Fl);function KK(){}function wWt(){(0,CWt.resetWarned)()}let TWt=KK;su.WarningContext=EWt.createContext({});su.devUseWarning=()=>{const e=()=>{};return e.deprecated=KK,e};su.default=TWt;var g3={};Object.defineProperty(g3,"__esModule",{value:!0});g3.default=void 0;var xWt=p;g3.default=(0,xWt.createContext)(void 0);var DAe={},v3={},OWt=xr.default;Object.defineProperty(v3,"__esModule",{value:!0});v3.changeConfirmLocale=RWt;v3.getConfirmLocale=IWt;var QK=OWt(u0);let YA=Object.assign({},QK.default.Modal),KA=[];const lce=()=>KA.reduce((e,t)=>Object.assign(Object.assign({},e),t),QK.default.Modal);function RWt(e){if(e){const t=Object.assign({},e);return KA.push(t),YA=lce(),()=>{KA=KA.filter(n=>n!==t),YA=lce()}}YA=Object.assign({},QK.default.Modal)}function IWt(){return YA}var tE={};Object.defineProperty(tE,"__esModule",{value:!0});tE.default=void 0;var AWt=p;const NWt=(0,AWt.createContext)(void 0);tE.default=NWt;var b3={},LAe=xr.default,MWt=aa.default;Object.defineProperty(b3,"__esModule",{value:!0});b3.default=void 0;var G$=MWt(p),kWt=LAe(tE),cce=LAe(u0);const PWt=(e,t)=>{const n=G$.useContext(kWt.default),r=G$.useMemo(()=>{var o;const a=t||cce.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=G$.useMemo(()=>{const o=n==null?void 0:n.locale;return n!=null&&n.exist&&!o?cce.default.locale:o},[n]);return[r,i]};b3.default=PWt;(function(e){"use client";var t=xr.default,n=aa.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(p),i=v3,o=t(tE),a=t(b3);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 f=r.useMemo(()=>Object.assign(Object.assign({},c),{exist:!0}),[c]);return r.createElement(o.default.Provider,{value:f},u)};e.default=s})(DAe);var Mf={},XK={},jf={};Object.defineProperty(jf,"__esModule",{value:!0});jf.defaultPresetColors=jf.default=void 0;const DWt=jf.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"},LWt=Object.assign(Object.assign({},DWt),{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});jf.default=LWt;var ZK={};const J2=Nx(Aqe);Object.defineProperty(ZK,"__esModule",{value:!0});ZK.default=$Wt;var W$=J2;function $Wt(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),f=n(i),h=n(o),m=n(a),g=n(s),v=r(c,u),y=e.colorLink||e.colorInfo,b=n(y),_=new W$.FastColor(m[1]).mix(new W$.FastColor(m[3]),50).toHexString();return Object.assign(Object.assign({},v),{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:f[1],colorSuccessBgHover:f[2],colorSuccessBorder:f[3],colorSuccessBorderHover:f[4],colorSuccessHover:f[4],colorSuccess:f[6],colorSuccessActive:f[7],colorSuccessTextHover:f[8],colorSuccessText:f[9],colorSuccessTextActive:f[10],colorErrorBg:m[1],colorErrorBgHover:m[2],colorErrorBgFilledHover:_,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:h[1],colorWarningBgHover:h[2],colorWarningBorder:h[3],colorWarningBorderHover:h[4],colorWarningHover:h[4],colorWarning:h[6],colorWarningActive:h[7],colorWarningTextHover:h[8],colorWarningText:h[9],colorWarningTextActive:h[10],colorInfoBg:g[1],colorInfoBgHover:g[2],colorInfoBorder:g[3],colorInfoBorderHover:g[4],colorInfoHover:g[4],colorInfo:g[6],colorInfoActive:g[7],colorInfoTextHover:g[8],colorInfoText:g[9],colorInfoTextActive:g[10],colorLinkHover:b[4],colorLink:b[6],colorLinkActive:b[7],colorBgMask:new W$.FastColor("#000").setA(.45).toRgbString(),colorWhite:"#fff"})}var JK={},y3={};Object.defineProperty(y3,"__esModule",{value:!0});y3.default=void 0;const FWt=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}};y3.default=FWt;var BWt=xr.default;Object.defineProperty(JK,"__esModule",{value:!0});JK.default=HWt;var jWt=BWt(y3);function HWt(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,jWt.default)(r))}var _3={};Object.defineProperty(_3,"__esModule",{value:!0});_3.default=void 0;const UWt=e=>{const{controlHeight:t}=e;return{controlHeightSM:t*.75,controlHeightXS:t*.5,controlHeightLG:t*1.25}};_3.default=UWt;var S3={},eO={};Object.defineProperty(eO,"__esModule",{value:!0});eO.default=zWt;eO.getLineHeight=$Ae;function $Ae(e){return(e+8)/e}function zWt(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:$Ae(n)}))}var VWt=xr.default;Object.defineProperty(S3,"__esModule",{value:!0});S3.default=void 0;var GWt=VWt(eO);const WWt=e=>{const t=(0,GWt.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]}};S3.default=WWt;var eQ={};Object.defineProperty(eQ,"__esModule",{value:!0});eQ.default=qWt;function qWt(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 N_={},M_={};Object.defineProperty(M_,"__esModule",{value:!0});M_.getSolidColor=M_.getAlphaColor=void 0;var FAe=J2;const YWt=(e,t)=>new FAe.FastColor(e).setA(t).toRgbString();M_.getAlphaColor=YWt;const KWt=(e,t)=>new FAe.FastColor(e).darken(t).toHexString();M_.getSolidColor=KWt;Object.defineProperty(N_,"__esModule",{value:!0});N_.generateNeutralColorPalettes=N_.generateColorPalettes=void 0;var QWt=W2,qa=M_;const XWt=e=>{const t=(0,QWt.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]}};N_.generateColorPalettes=XWt;const ZWt=(e,t)=>{const n=e||"#fff",r=t||"#000";return{colorBgBase:n,colorTextBase:r,colorText:(0,qa.getAlphaColor)(r,.88),colorTextSecondary:(0,qa.getAlphaColor)(r,.65),colorTextTertiary:(0,qa.getAlphaColor)(r,.45),colorTextQuaternary:(0,qa.getAlphaColor)(r,.25),colorFill:(0,qa.getAlphaColor)(r,.15),colorFillSecondary:(0,qa.getAlphaColor)(r,.06),colorFillTertiary:(0,qa.getAlphaColor)(r,.04),colorFillQuaternary:(0,qa.getAlphaColor)(r,.02),colorBgSolid:(0,qa.getAlphaColor)(r,1),colorBgSolidHover:(0,qa.getAlphaColor)(r,.75),colorBgSolidActive:(0,qa.getAlphaColor)(r,.95),colorBgLayout:(0,qa.getSolidColor)(n,4),colorBgContainer:(0,qa.getSolidColor)(n,0),colorBgElevated:(0,qa.getSolidColor)(n,0),colorBgSpotlight:(0,qa.getAlphaColor)(r,.85),colorBgBlur:"transparent",colorBorder:(0,qa.getSolidColor)(n,15),colorBorderSecondary:(0,qa.getSolidColor)(n,6)}};N_.generateNeutralColorPalettes=ZWt;var tO=xr.default;Object.defineProperty(XK,"__esModule",{value:!0});XK.default=oqt;var o1=W2,JWt=jf,eqt=tO(ZK),tqt=tO(JK),nqt=tO(_3),rqt=tO(S3),iqt=tO(eQ),uce=N_;function oqt(e){o1.presetPrimaryColors.pink=o1.presetPrimaryColors.magenta,o1.presetPalettes.pink=o1.presetPalettes.magenta;const t=Object.keys(JWt.defaultPresetColors).map(n=>{const r=e[n]===o1.presetPrimaryColors[n]?o1.presetPalettes[n]:(0,o1.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,eqt.default)(e,{generateColorPalettes:uce.generateColorPalettes,generateNeutralColorPalettes:uce.generateNeutralColorPalettes})),(0,rqt.default)(e.fontSize)),(0,iqt.default)(e)),(0,nqt.default)(e)),(0,tqt.default)(e))}var tQ=xr.default;Object.defineProperty(Mf,"__esModule",{value:!0});Mf.defaultTheme=Mf.defaultConfig=Mf.DesignTokenContext=void 0;var aqt=tQ(p),sqt=Dg,lqt=tQ(XK),dce=tQ(jf);Mf.defaultTheme=(0,sqt.createTheme)(lqt.default);const cqt=Mf.defaultConfig={token:dce.default,override:{override:dce.default},hashed:!0};Mf.DesignTokenContext=aqt.default.createContext(cqt);var lc={},uqt=aa.default;Object.defineProperty(lc,"__esModule",{value:!0});lc.defaultPrefixCls=lc.defaultIconPrefixCls=lc.Variants=lc.ConfigContext=lc.ConfigConsumer=void 0;var dqt=uqt(p);const fce=lc.defaultPrefixCls="ant",fqt=lc.defaultIconPrefixCls="anticon";lc.Variants=["outlined","borderless","filled"];const pqt=(e,t)=>t||(e?`${fce}-${e}`:fce),hqt=lc.ConfigContext=dqt.createContext({getPrefixCls:pqt,iconPrefixCls:fqt}),{Consumer:mqt}=hqt;lc.ConfigConsumer=mqt;var E3={},BAe=xr.default;Object.defineProperty(E3,"__esModule",{value:!0});E3.getStyle=jAe;E3.registerTheme=yqt;var pce=W2,q$=J2,gqt=BAe(WD),vqt=A0;BAe(su);const bqt=`-ant-${Date.now()}-${Math.random()}`;function jAe(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 q$.FastColor(a),c=(0,pce.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 q$.FastColor(t.primaryColor),s=(0,pce.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 q$.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 yqt(e,t){const n=jAe(e,t);(0,gqt.default)()&&(0,vqt.updateCSS)(n,`${bqt}-dynamic-theme`)}var Xv={},_qt=aa.default;Object.defineProperty(Xv,"__esModule",{value:!0});Xv.default=Xv.DisabledContextProvider=void 0;var az=_qt(p);const sz=az.createContext(!1),Sqt=e=>{let{children:t,disabled:n}=e;const r=az.useContext(sz);return az.createElement(sz.Provider,{value:n??r},t)};Xv.DisabledContextProvider=Sqt;Xv.default=sz;var C3={},Zv={},Eqt=aa.default;Object.defineProperty(Zv,"__esModule",{value:!0});Zv.default=Zv.SizeContextProvider=void 0;var lz=Eqt(p);const cz=lz.createContext(void 0),Cqt=e=>{let{children:t,size:n}=e;const r=lz.useContext(cz);return lz.createElement(cz.Provider,{value:n||r},t)};Zv.SizeContextProvider=Cqt;Zv.default=cz;var HAe=xr.default;Object.defineProperty(C3,"__esModule",{value:!0});C3.default=void 0;var hce=p,wqt=HAe(Xv),Tqt=HAe(Zv);function xqt(){const e=(0,hce.useContext)(wqt.default),t=(0,hce.useContext)(Tqt.default);return{componentDisabled:e,componentSize:t}}C3.default=xqt;var nQ={},w3={},UAe=xr.default;Object.defineProperty(w3,"__esModule",{value:!0});w3.default=void 0;var mce=UAe(d0),Oqt=UAe(Fl);function Rqt(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,Oqt.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,mce.default)(o)==="object"&&(0,mce.default)(a)==="object"){var d=Object.keys(o);return d.length!==Object.keys(a).length?!1:d.every(function(f){return i(o[f],a[f],c)})}return!1}return i(e,t)}w3.default=Rqt;var nE={};const zAe=Nx(cYe);var rQ={},T3={};Object.defineProperty(T3,"__esModule",{value:!0});T3.PresetColors=void 0;T3.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=T3})(rQ);var vd={},x3={},O3={};Object.defineProperty(O3,"__esModule",{value:!0});O3.default=void 0;O3.default="5.23.2";var Iqt=xr.default;Object.defineProperty(x3,"__esModule",{value:!0});x3.default=void 0;var Aqt=Iqt(O3);x3.default=Aqt.default;var iQ={},R3={};Object.defineProperty(R3,"__esModule",{value:!0});R3.default=void 0;var QR=J2;function Y$(e){return e>=0&&e<=255}function Nqt(e,t){const{r:n,g:r,b:i,a:o}=new QR.FastColor(e).toRgb();if(o<1)return e;const{r:a,g:s,b:l}=new QR.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),f=Math.round((i-l*(1-c))/c);if(Y$(u)&&Y$(d)&&Y$(f))return new QR.FastColor({r:u,g:d,b:f,a:Math.round(c*100)/100}).toRgbString()}return new QR.FastColor({r:n,g:r,b:i,a:1}).toRgbString()}R3.default=Nqt;var VAe=xr.default;Object.defineProperty(iQ,"__esModule",{value:!0});iQ.default=Pqt;var K$=J2,Mqt=VAe(jf),XR=VAe(R3),kqt=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 Pqt(e){const{override:t}=e,n=kqt(e,["override"]),r=Object.assign({},t);Object.keys(Mqt.default).forEach(f=>{delete r[f]});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 f="0s";i.motionDurationFast=f,i.motionDurationMid=f,i.motionDurationSlow=f}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,XR.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,XR.default)(i.colorErrorBg,i.colorBgContainer),colorWarningOutline:(0,XR.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,XR.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 K$.FastColor("rgba(0, 0, 0, 0.16)").toRgbString()},
0 3px 6px 0 ${new K$.FastColor("rgba(0, 0, 0, 0.12)").toRgbString()},
0 5px 12px 4px ${new K$.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 I3=xr.default;Object.defineProperty(vd,"__esModule",{value:!0});vd.default=Uqt;vd.unitless=vd.ignore=vd.getComputedToken=void 0;var Dqt=I3(p),Lqt=Dg,$qt=I3(x3),gce=Mf,Fqt=I3(jf),GAe=I3(iQ),vce=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const Bqt=vd.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},jqt=vd.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},Hqt={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},oQ=(e,t,n)=>{const r=n.getDerivativeToken(e),{override:i}=t,o=vce(t,["override"]);let a=Object.assign(Object.assign({},r),{override:i});return a=(0,GAe.default)(a),o&&Object.entries(o).forEach(s=>{let[l,c]=s;const{theme:u}=c,d=vce(c,["theme"]);let f=d;u&&(f=oQ(Object.assign(Object.assign({},a),d),{override:d},u)),a[l]=f}),a};vd.getComputedToken=oQ;function Uqt(){const{token:e,hashed:t,theme:n,override:r,cssVar:i}=Dqt.default.useContext(gce.DesignTokenContext),o=`${$qt.default}-${t||""}`,a=n||gce.defaultTheme,[s,l,c]=(0,Lqt.useCacheToken)(a,[Fqt.default,e],{salt:o,override:r,getComputedToken:oQ,formatToken:GAe.default,cssVar:i&&{prefix:i.prefix,key:i.key,unitless:Bqt,ignore:jqt,preserve:Hqt}});return[a,c,t?l:"",s,i]}var og={},xo={};Object.defineProperty(xo,"__esModule",{value:!0});xo.textEllipsis=xo.resetIcon=xo.resetComponent=xo.operationUnit=xo.genLinkStyle=xo.genIconStyle=xo.genFocusStyle=xo.genFocusOutline=xo.genCommonStyle=xo.clearFix=void 0;var zqt=Dg;xo.textEllipsis={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"};const Vqt=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}};xo.resetComponent=Vqt;const WAe=()=>({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"}});xo.resetIcon=WAe;const Gqt=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}});xo.clearFix=Gqt;const Wqt=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"}}});xo.genLinkStyle=Wqt;const qqt=(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})}};xo.genCommonStyle=qqt;const qAe=(e,t)=>({outline:`${(0,zqt.unit)(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`,outlineOffset:t??1,transition:"outline-offset 0s, outline 0s"});xo.genFocusOutline=qAe;const YAe=(e,t)=>({"&:focus-visible":Object.assign({},qAe(e,t))});xo.genFocusStyle=YAe;const Yqt=e=>({[`.${e}`]:Object.assign(Object.assign({},WAe()),{[`.${e} .${e}-icon`]:{display:"block"}})});xo.genIconStyle=Yqt;const Kqt=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"},YAe(e)),{"&:focus, &:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive}});xo.operationUnit=Kqt;var Qqt=aa.default;Object.defineProperty(og,"__esModule",{value:!0});og.genSubStyleComponent=og.genStyleHooks=og.genComponentStyleHook=void 0;var bce=p,Xqt=zAe,Q$=lc,X$=xo,yce=Qqt(vd);const{genStyleHooks:Zqt,genComponentStyleHook:Jqt,genSubStyleComponent:eYt}=(0,Xqt.genStyleUtils)({usePrefix:()=>{const{getPrefixCls:e,iconPrefixCls:t}=(0,bce.useContext)(Q$.ConfigContext);return{rootPrefixCls:e(),iconPrefixCls:t}},useToken:()=>{const[e,t,n,r,i]=(0,yce.default)();return{theme:e,realToken:t,hashId:n,token:r,cssVar:i}},useCSP:()=>{const{csp:e}=(0,bce.useContext)(Q$.ConfigContext);return e??{}},getResetStyles:(e,t)=>{var n;return[{"&":(0,X$.genLinkStyle)(e)},(0,X$.genIconStyle)((n=t==null?void 0:t.prefix.iconPrefixCls)!==null&&n!==void 0?n:Q$.defaultIconPrefixCls)]},getCommonStyle:X$.genCommonStyle,getCompUnitless:()=>yce.unitless});og.genSubStyleComponent=eYt;og.genComponentStyleHook=Jqt;og.genStyleHooks=Zqt;var aQ={};Object.defineProperty(aQ,"__esModule",{value:!0});aQ.default=nYt;var tYt=rQ;function nYt(e,t){return tYt.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 A3={},rYt=xr.default;Object.defineProperty(A3,"__esModule",{value:!0});A3.default=void 0;var iYt=Dg,oYt=xo,aYt=rYt(vd);const sYt=(e,t)=>{const[n,r]=(0,aYt.default)();return(0,iYt.useStyleRegister)({theme:n,token:r,hashId:"",path:["ant-design-icons",e],nonce:()=>t==null?void 0:t.nonce,layer:{name:"antd"}},()=>[(0,oYt.genIconStyle)(e)])};A3.default=sYt;(function(e){var t=xr.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=Dg,r=zAe,i=rQ,o=eO,a=t(vd),s=og,l=t(aQ),c=t(A3),u=Mf})(nE);var N3={},lYt=aa.default;Object.defineProperty(N3,"__esModule",{value:!0});N3.default=void 0;var cYt=lYt(p);const uYt=Object.assign({},cYt),{useId:_ce}=uYt,dYt=()=>"",fYt=typeof _ce>"u"?dYt:_ce;N3.default=fYt;var sQ=xr.default;Object.defineProperty(nQ,"__esModule",{value:!0});nQ.default=vYt;var pYt=sQ(h3),hYt=sQ(w3),mYt=su,Sce=nE,gYt=sQ(N3);function vYt(e,t,n){var r;(0,mYt.devUseWarning)("ConfigProvider");const i=e||{},o=i.inherit===!1||!t?Object.assign(Object.assign({},Sce.defaultConfig),{hashed:(r=t==null?void 0:t.hashed)!==null&&r!==void 0?r:Sce.defaultConfig.hashed,cssVar:t==null?void 0:t.cssVar}):t,a=(0,gYt.default)();return(0,pYt.default)(()=>{var s,l;if(!e)return t;const c=Object.assign({},o.components);Object.keys(e.components||{}).forEach(f=>{c[f]=Object.assign(Object.assign({},c[f]),e.components[f])});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,hYt.default)(c,d,!0)}))}var lQ={};const bYt=Nx(jYe);var yYt=aa.default;Object.defineProperty(lQ,"__esModule",{value:!0});lQ.default=EYt;var Ece=yYt(p),_Yt=bYt,SYt=nE;function EYt(e){const{children:t}=e,[,n]=(0,SYt.useToken)(),{motion:r}=n,i=Ece.useRef(!1);return i.current=i.current||r===!1,i.current?Ece.createElement(_Yt.Provider,{motion:r},t):t}var M3={},CYt=aa.default;Object.defineProperty(M3,"__esModule",{value:!0});M3.default=void 0;CYt(p);M3.default=()=>null;var KAe={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.useResetIconStyle}});var t=nE})(KAe);(function(e){"use client";var t=xr.default,n=aa.default;Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"ConfigConsumer",{enumerable:!0,get:function(){return g.ConfigConsumer}}),Object.defineProperty(e,"ConfigContext",{enumerable:!0,get:function(){return g.ConfigContext}}),Object.defineProperty(e,"Variants",{enumerable:!0,get:function(){return g.Variants}}),e.default=e.configConsumerProps=void 0,Object.defineProperty(e,"defaultIconPrefixCls",{enumerable:!0,get:function(){return g.defaultIconPrefixCls}}),Object.defineProperty(e,"defaultPrefixCls",{enumerable:!0,get:function(){return g.defaultPrefixCls}}),e.warnContext=e.globalConfig=void 0;var r=n(p),i=Dg,o=t(JS),a=t(h3),s=m3,l=n(su),c=t(g3),u=n(DAe),d=t(tE),f=t(u0),h=Mf,m=t(jf),g=lc,v=E3,y=Xv,b=t(C3),_=t(nQ),E=t(lQ),w=t(M3),S=n(Zv),C=t(KAe),T=function(V,j){var U={};for(var J in V)Object.prototype.hasOwnProperty.call(V,J)&&j.indexOf(J)<0&&(U[J]=V[J]);if(V!=null&&typeof Object.getOwnPropertySymbols=="function")for(var te=0,J=Object.getOwnPropertySymbols(V);te<J.length;te++)j.indexOf(J[te])<0&&Object.prototype.propertyIsEnumerable.call(V,J[te])&&(U[J[te]]=V[J[te]]);return U};e.warnContext=null,e.configConsumerProps=["getTargetContainer","getPopupContainer","rootPrefixCls","getPrefixCls","renderEmpty","csp","autoInsertSpaceInButton","locale"];const x=["getTargetContainer","getPopupContainer","renderEmpty","input","pagination","form","select","button"];let O,N,I,M;function F(){return O||g.defaultPrefixCls}function k(){return N||g.defaultIconPrefixCls}function B(V){return Object.keys(V).some(j=>j.endsWith("Color"))}const A=V=>{const{prefixCls:j,iconPrefixCls:U,theme:J,holderRender:te}=V;j!==void 0&&(O=j),U!==void 0&&(N=U),"holderRender"in V&&(M=te),J&&(B(J)?(0,v.registerTheme)(F(),J):I=J)},P=()=>({getPrefixCls:(V,j)=>j||(V?`${F()}-${V}`:F()),getIconPrefixCls:k,getRootPrefixCls:()=>O||F(),getTheme:()=>I,holderRender:M});e.globalConfig=P;const z=V=>{const{children:j,csp:U,autoInsertSpaceInButton:J,alert:te,anchor:ae,form:K,locale:Q,componentSize:oe,direction:ge,space:fe,splitter:ue,virtual:le,dropdownMatchSelectWidth:ve,popupMatchSelectWidth:ne,popupOverflow:pe,legacyLocale:be,parentContext:Re,iconPrefixCls:Se,theme:Ce,componentDisabled:ye,segmented:he,statistic:_e,spin:Oe,calendar:De,carousel:Y,cascader:D,collapse:G,typography:ie,checkbox:me,descriptions:se,divider:Be,drawer:Ve,skeleton:re,steps:Me,image:je,layout:ke,list:Ge,mentions:Ue,modal:qe,progress:At,result:at,slider:pt,breadcrumb:Ct,menu:bt,pagination:Vt,input:Tt,textArea:Ot,empty:Ut,badge:ze,radio:Ye,rate:He,switch:Ze,transfer:yt,avatar:_t,message:Bt,tag:Nt,table:vt,card:ht,tabs:kt,timeline:Et,timePicker:Yt,upload:ct,notification:Rt,tree:Ht,colorPicker:wt,datePicker:St,rangePicker:jt,flex:Pe,wave:Pt,dropdown:rt,warning:Mt,tour:It,tooltip:xn,popover:Hn,popconfirm:R,floatButtonGroup:$,variant:Z,inputNumber:xe,treeSelect:$e}=V,et=r.useCallback((on,an)=>{const{prefixCls:Gn}=V;if(an)return an;const _r=Gn||Re.getPrefixCls("");return on?`${_r}-${on}`:_r},[Re.getPrefixCls,V.prefixCls]),$t=Se||Re.iconPrefixCls||g.defaultIconPrefixCls,pn=U||Re.csp;(0,C.default)($t,pn);const Fn=(0,_.default)(Ce,Re.theme,{prefixCls:et("")}),Xr={csp:pn,autoInsertSpaceInButton:J,alert:te,anchor:ae,locale:Q||be,direction:ge,space:fe,splitter:ue,virtual:le,popupMatchSelectWidth:ne??ve,popupOverflow:pe,getPrefixCls:et,iconPrefixCls:$t,theme:Fn,segmented:he,statistic:_e,spin:Oe,calendar:De,carousel:Y,cascader:D,collapse:G,typography:ie,checkbox:me,descriptions:se,divider:Be,drawer:Ve,skeleton:re,steps:Me,image:je,input:Tt,textArea:Ot,layout:ke,list:Ge,mentions:Ue,modal:qe,progress:At,result:at,slider:pt,breadcrumb:Ct,menu:bt,pagination:Vt,empty:Ut,badge:ze,radio:Ye,rate:He,switch:Ze,transfer:yt,avatar:_t,message:Bt,tag:Nt,table:vt,card:ht,tabs:kt,timeline:Et,timePicker:Yt,upload:ct,notification:Rt,tree:Ht,colorPicker:wt,datePicker:St,rangePicker:jt,flex:Pe,wave:Pt,dropdown:rt,warning:Mt,tour:It,tooltip:xn,popover:Hn,popconfirm:R,floatButtonGroup:$,variant:Z,inputNumber:xe,treeSelect:$e},Lr=Object.assign({},Re);Object.keys(Xr).forEach(on=>{Xr[on]!==void 0&&(Lr[on]=Xr[on])}),x.forEach(on=>{const an=V[on];an&&(Lr[on]=an)}),typeof J<"u"&&(Lr.button=Object.assign({autoInsertSpace:J},Lr.button));const vi=(0,a.default)(()=>Lr,Lr,(on,an)=>{const Gn=Object.keys(on),_r=Object.keys(an);return Gn.length!==_r.length||Gn.some(oi=>on[oi]!==an[oi])}),Sr=r.useMemo(()=>({prefixCls:$t,csp:pn}),[$t,pn]);let ln=r.createElement(r.Fragment,null,r.createElement(w.default,{dropdownMatchSelectWidth:ve}),j);const _n=r.useMemo(()=>{var on,an,Gn,_r;return(0,s.merge)(((on=f.default.Form)===null||on===void 0?void 0:on.defaultValidateMessages)||{},((Gn=(an=vi.locale)===null||an===void 0?void 0:an.Form)===null||Gn===void 0?void 0:Gn.defaultValidateMessages)||{},((_r=vi.form)===null||_r===void 0?void 0:_r.validateMessages)||{},(K==null?void 0:K.validateMessages)||{})},[vi,K==null?void 0:K.validateMessages]);Object.keys(_n).length>0&&(ln=r.createElement(c.default.Provider,{value:_n},ln)),Q&&(ln=r.createElement(u.default,{locale:Q,_ANT_MARK__:u.ANT_MARK},ln)),($t||pn)&&(ln=r.createElement(o.default.Provider,{value:Sr},ln)),oe&&(ln=r.createElement(S.SizeContextProvider,{size:oe},ln)),ln=r.createElement(E.default,null,ln);const Er=r.useMemo(()=>{const on=Fn||{},{algorithm:an,token:Gn,components:_r,cssVar:oi}=on,Zi=T(on,["algorithm","token","components","cssVar"]),nr=an&&(!Array.isArray(an)||an.length>0)?(0,i.createTheme)(an):h.defaultTheme,Fi={};Object.entries(_r||{}).forEach(dn=>{let[wn,Mn]=dn;const Qn=Object.assign({},Mn);"algorithm"in Qn&&(Qn.algorithm===!0?Qn.theme=nr:(Array.isArray(Qn.algorithm)||typeof Qn.algorithm=="function")&&(Qn.theme=(0,i.createTheme)(Qn.algorithm)),delete Qn.algorithm),Fi[wn]=Qn});const Zn=Object.assign(Object.assign({},m.default),Gn);return Object.assign(Object.assign({},Zi),{theme:nr,token:Zn,components:Fi,override:Object.assign({override:Zn},Fi),cssVar:oi})},[Fn]);return Ce&&(ln=r.createElement(h.DesignTokenContext.Provider,{value:Er},ln)),vi.warning&&(ln=r.createElement(l.WarningContext.Provider,{value:vi.warning},ln)),ye!==void 0&&(ln=r.createElement(y.DisabledContextProvider,{disabled:ye},ln)),r.createElement(g.ConfigContext.Provider,{value:vi},ln)},L=V=>{const j=r.useContext(g.ConfigContext),U=r.useContext(d.default);return r.createElement(z,Object.assign({parentContext:j,legacyLocale:U},V))};L.ConfigContext=g.ConfigContext,L.SizeContext=S.default,L.config=A,L.useConfig=b.default,Object.defineProperty(L,"SizeContext",{get:()=>S.default}),e.default=L})(qK);var nO={},wYt=aa.default;Object.defineProperty(nO,"__esModule",{value:!0});nO.LayoutContext=void 0;var TYt=wYt(p);nO.LayoutContext=TYt.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}});var cQ={},uQ={},dQ={},xYt=xr.default;Object.defineProperty(dQ,"__esModule",{value:!0});dQ.default=NYt;var OYt=xYt(d0),RYt=Symbol.for("react.element"),IYt=Symbol.for("react.transitional.element"),AYt=Symbol.for("react.fragment");function NYt(e){return e&&(0,OYt.default)(e)==="object"&&(e.$$typeof===RYt||e.$$typeof===IYt)&&e.type===AYt}var QAe=xr.default;Object.defineProperty(uQ,"__esModule",{value:!0});uQ.default=uz;var MYt=QAe(dQ),kYt=QAe(p);function uz(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[];return kYt.default.Children.forEach(e,function(r){r==null&&!t.keepEmpty||(Array.isArray(r)?n=n.concat(uz(r)):(0,MYt.default)(r)&&r.props?n=n.concat(uz(r.props.children,t)):n.push(r))}),n}var k_={},dz={exports:{}},k3={},fQ={};Object.defineProperty(fQ,"__esModule",{value:!0});var PYt={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"};fQ.default=PYt;var DYt=aa.default,pQ=xr.default;Object.defineProperty(k3,"__esModule",{value:!0});k3.default=void 0;var LYt=pQ(GD),XAe=DYt(p),$Yt=pQ(fQ),FYt=pQ(ZS),BYt=function(t,n){return XAe.createElement(FYt.default,(0,LYt.default)({},t,{ref:n,icon:$Yt.default}))},jYt=XAe.forwardRef(BYt);k3.default=jYt;(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;const n=r(k3);function r(o){return o&&o.__esModule?o:{default:o}}const i=n;t.default=i,e.exports=i})(dz,dz.exports);var HYt=dz.exports,fz={exports:{}},P3={},hQ={};Object.defineProperty(hQ,"__esModule",{value:!0});var UYt={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"};hQ.default=UYt;var zYt=aa.default,mQ=xr.default;Object.defineProperty(P3,"__esModule",{value:!0});P3.default=void 0;var VYt=mQ(GD),ZAe=zYt(p),GYt=mQ(hQ),WYt=mQ(ZS),qYt=function(t,n){return ZAe.createElement(WYt.default,(0,VYt.default)({},t,{ref:n,icon:GYt.default}))},YYt=ZAe.forwardRef(qYt);P3.default=YYt;(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;const n=r(P3);function r(o){return o&&o.__esModule?o:{default:o}}const i=n;t.default=i,e.exports=i})(fz,fz.exports);var KYt=fz.exports,pz={exports:{}},D3={},gQ={};Object.defineProperty(gQ,"__esModule",{value:!0});var QYt={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"};gQ.default=QYt;var XYt=aa.default,vQ=xr.default;Object.defineProperty(D3,"__esModule",{value:!0});D3.default=void 0;var ZYt=vQ(GD),JAe=XYt(p),JYt=vQ(gQ),eKt=vQ(ZS),tKt=function(t,n){return JAe.createElement(eKt.default,(0,ZYt.default)({},t,{ref:n,icon:JYt.default}))},nKt=JAe.forwardRef(tKt);D3.default=nKt;(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;const n=r(D3);function r(o){return o&&o.__esModule?o:{default:o}}const i=n;t.default=i,e.exports=i})(pz,pz.exports);var rKt=pz.exports,L3={},Qp={};Object.defineProperty(Qp,"__esModule",{value:!0});Qp.prepareComponentToken=Qp.default=Qp.DEPRECATED_TOKENS=void 0;var iKt=Dg,oKt=nE;const aKt=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,iKt.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}}},eNe=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}};Qp.prepareComponentToken=eNe;const sKt=Qp.DEPRECATED_TOKENS=[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]];Qp.default=(0,oKt.genStyleHooks)("Layout",e=>[aKt(e)],eNe,{deprecatedTokens:sKt});Object.defineProperty(L3,"__esModule",{value:!0});L3.default=void 0;var XE=Dg,Cce=Qp,lKt=nE;const cKt=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:f,lightSiderBg:h,lightTriggerColor:m,lightTriggerBg:g,bodyBg:v}=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,XE.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,XE.unit)(f)} ${(0,XE.unit)(f)} 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,XE.unit)(f)} 0 0 ${(0,XE.unit)(f)}`}}},"&-light":{background:h,[`${t}-trigger`]:{color:m,background:g},[`${t}-zero-width-trigger`]:{color:m,background:g,border:`1px solid ${v}`,borderInlineStart:0}}}}};L3.default=(0,lKt.genStyleHooks)(["Layout","Sider"],e=>[cKt(e)],Cce.prepareComponentToken,{deprecatedTokens:Cce.DEPRECATED_TOKENS});var rE=xr.default,uKt=aa.default;Object.defineProperty(k_,"__esModule",{value:!0});k_.default=k_.SiderContext=void 0;var _p=uKt(p),Jl=_p,dKt=rE(HYt),wce=rE(KYt),Tce=rE(rKt),xce=rE(VP),fKt=rE(p3),pKt=qK,hKt=nO,mKt=rE(L3),gKt=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 Oce={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},vKt=e=>!Number.isNaN(Number.parseFloat(e))&&isFinite(e),bKt=k_.SiderContext=Jl.createContext({}),yKt=(()=>{let e=0;return function(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return e+=1,`${t}${e}`}})(),_Kt=Jl.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:f=80,zeroWidthTriggerStyle:h,breakpoint:m,onCollapse:g,onBreakpoint:v}=e,y=gKt(e,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:b}=(0,_p.useContext)(hKt.LayoutContext),[_,E]=(0,_p.useState)("collapsed"in e?e.collapsed:a),[w,S]=(0,_p.useState)(!1);(0,_p.useEffect)(()=>{"collapsed"in e&&E(e.collapsed)},[e.collapsed]);const C=(Q,oe)=>{"collapsed"in e||E(Q),g==null||g(Q,oe)},{getPrefixCls:T,direction:x}=(0,_p.useContext)(pKt.ConfigContext),O=T("layout-sider",n),[N,I,M]=(0,mKt.default)(O),F=(0,_p.useRef)(null);F.current=Q=>{S(Q.matches),v==null||v(Q.matches),_!==Q.matches&&C(Q.matches,"responsive")},(0,_p.useEffect)(()=>{function Q(ge){return F.current(ge)}let oe;if(typeof window<"u"){const{matchMedia:ge}=window;if(ge&&m&&m in Oce){oe=ge(`screen and (max-width: ${Oce[m]})`);try{oe.addEventListener("change",Q)}catch{oe.addListener(Q)}Q(oe)}}return()=>{try{oe==null||oe.removeEventListener("change",Q)}catch{oe==null||oe.removeListener(Q)}}},[m]),(0,_p.useEffect)(()=>{const Q=yKt("ant-sider-");return b.addSider(Q),()=>b.removeSider(Q)},[]);const k=()=>{C(!_,"clickTrigger")},B=(0,fKt.default)(y,["collapsed"]),A=_?f:d,P=vKt(A)?`${A}px`:String(A),z=parseFloat(String(f||0))===0?Jl.createElement("span",{onClick:k,className:(0,xce.default)(`${O}-zero-width-trigger`,`${O}-zero-width-trigger-${u?"right":"left"}`),style:h},i||Jl.createElement(dKt.default,null)):null,L=x==="rtl"==!u,U={expanded:L?Jl.createElement(Tce.default,null):Jl.createElement(wce.default,null),collapsed:L?Jl.createElement(wce.default,null):Jl.createElement(Tce.default,null)}[_?"collapsed":"expanded"],J=i!==null?z||Jl.createElement("div",{className:`${O}-trigger`,onClick:k,style:{width:P}},i||U):null,te=Object.assign(Object.assign({},l),{flex:`0 0 ${P}`,maxWidth:P,minWidth:P,width:P}),ae=(0,xce.default)(O,`${O}-${s}`,{[`${O}-collapsed`]:!!_,[`${O}-has-trigger`]:c&&i!==null&&!z,[`${O}-below`]:!!w,[`${O}-zero-width`]:parseFloat(P)===0},r,I,M),K=Jl.useMemo(()=>({siderCollapsed:_}),[_]);return N(Jl.createElement(bKt.Provider,{value:K},Jl.createElement("aside",Object.assign({className:ae},B,{style:te,ref:t}),Jl.createElement("div",{className:`${O}-children`},o),c||w&&z?J:null)))});k_.default=_Kt;var tNe=xr.default;Object.defineProperty(cQ,"__esModule",{value:!0});cQ.default=CKt;var SKt=tNe(uQ),EKt=tNe(k_);function CKt(e,t,n){return typeof n=="boolean"?n:e.length?!0:(0,SKt.default)(t).some(i=>i.type===EKt.default)}var $3,F3,wKt=aa.default,rO=xr.default;Object.defineProperty(zp,"__esModule",{value:!0});zp.default=zp.Header=F3=zp.Footer=$3=zp.Content=void 0;var TKt=rO(IAe),Yc=wKt(p),nNe=rO(VP),xKt=rO(p3),hz=qK,OKt=nO,RKt=rO(cQ),rNe=rO(Qp),iNe=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 B3(e){let{suffixCls:t,tagName:n,displayName:r}=e;return i=>Yc.forwardRef((a,s)=>Yc.createElement(i,Object.assign({ref:s,suffixCls:t,tagName:n},a)))}const bQ=Yc.forwardRef((e,t)=>{const{prefixCls:n,suffixCls:r,className:i,tagName:o}=e,a=iNe(e,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:s}=Yc.useContext(hz.ConfigContext),l=s("layout",n),[c,u,d]=(0,rNe.default)(l),f=r?`${l}-${r}`:l;return c(Yc.createElement(o,Object.assign({className:(0,nNe.default)(n||f,i,u,d),ref:t},a)))}),IKt=Yc.forwardRef((e,t)=>{const{direction:n}=Yc.useContext(hz.ConfigContext),[r,i]=Yc.useState([]),{prefixCls:o,className:a,rootClassName:s,children:l,hasSider:c,tagName:u,style:d}=e,f=iNe(e,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),h=(0,xKt.default)(f,["suffixCls"]),{getPrefixCls:m,layout:g}=Yc.useContext(hz.ConfigContext),v=m("layout",o),y=(0,RKt.default)(r,l,c),[b,_,E]=(0,rNe.default)(v),w=(0,nNe.default)(v,{[`${v}-has-sider`]:y,[`${v}-rtl`]:n==="rtl"},g==null?void 0:g.className,a,s,_,E),S=Yc.useMemo(()=>({siderHook:{addSider:C=>{i(T=>[].concat((0,TKt.default)(T),[C]))},removeSider:C=>{i(T=>T.filter(x=>x!==C))}}}),[]);return b(Yc.createElement(OKt.LayoutContext.Provider,{value:S},Yc.createElement(u,Object.assign({ref:t,className:w,style:Object.assign(Object.assign({},g==null?void 0:g.style),d)},h),l)))}),AKt=B3({tagName:"div",displayName:"Layout"})(IKt);zp.Header=B3({suffixCls:"header",tagName:"header",displayName:"Header"})(bQ);F3=zp.Footer=B3({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(bQ);$3=zp.Content=B3({suffixCls:"content",tagName:"main",displayName:"Content"})(bQ);zp.default=AKt;function iO(){const{isDarkMode:e}=BG(),{token:t}=Es.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:NKt,Sider:MKt,Content:kKt}=uo,oNe=()=>{const e=Si();p.useContext(as);const t=Aa(),{headerStyle:n,leftSiderStyle:r,leftSiderWidth:i,contentStyle:o}=iO(),[a,s]=p.useState([]);p.useEffect(()=>{const c=[{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"}]}];s(c)},[e]);const l=c=>{console.log(e.formatMessage({id:"setting.menu.click",defaultMessage:"Menu clicked"}),c),t("/setting/"+c.key)};return H.jsxs(uo,{children:[H.jsx(MKt,{style:r,width:i,children:H.jsx(Bd,{mode:"inline",onClick:l,defaultSelectedKeys:["profile"],defaultOpenKeys:["setting"],items:a})}),H.jsxs(uo,{children:[H.jsx(NKt,{style:n,children:e.formatMessage({id:"menu.dashboard.mine"})}),H.jsx(kKt,{style:o,children:H.jsx(CD,{})})]})]})},aNe=()=>{const e=Aa(),{userInfo:t}=AY(),{translateString:n}=kc(),{mode:r}=p.useContext(as),[i,o]=p.useState(""),[a,s]=p.useState(""),[l,c]=p.useState(""),u=()=>{e("/setting")};return p.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]),H.jsx(H.Fragment,{children:H.jsx(bu,{title:i,content:a,placement:"rightBottom",children:H.jsx(H.Fragment,{children:H.jsx(xh,{style:{marginTop:60,cursor:"pointer"},size:40,src:l,onClick:u})})})})};function yQ(){const e=Fx(b=>b.accessToken),t=Oa(b=>b.userInfo),n=b0(b=>b.agentInfo),r=f3(),[i,o]=p.useState(!1),{showNotification:a}=WK(),{translateString:s}=kc();Eh(b=>b.addMessage),id(b=>b.updateThreadContent),p.useContext(as),p.useRef(!1);const l=id(b=>b.threads),[c,u]=p.useState(l),d=p.useCallback(()=>{if(r&&e)return setInterval(()=>{console.log("useMqtt autoCheckConnection"),!H_t()&&r&&e&&g()},1e4);console.log("useMqtt autoCheckConnection isNetworkOnline:",r," accessToken:",e)},[r,e]),f=async()=>{},h=p.useRef(n==null?void 0:n.uid),m=p.useCallback(()=>{if(!i&&e)return setInterval(async()=>{h.current?f():console.log("useMqtt autoPingMessage currentUidRef.current:",h.current)},1e4);console.log("useMqtt autoPingMessage isNetworkOnline:",r," accessToken:",e)},[i,e,t,n]),g=()=>{console.log("useMqtt doConnect"),B_t({uid:t.uid,username:t.username,accessToken:e})},v=()=>{console.log("useMqtt useEffect doDisconnect"),m$()},y=b=>{var _,E;(b==null?void 0:b.type)!==fT&&((_=b==null?void 0:b.user)==null?void 0:_.uid)!==(t==null?void 0:t.uid)&&((E=b==null?void 0:b.user)==null?void 0:E.uid)!==(n==null?void 0:n.uid)&&(JVe(),console.log("playAudio"))};return p.useEffect(()=>{console.log("useMqtt useEffect isNetworkOnline",r),r?g():m$()},[r]),p.useEffect(()=>{if(n!=null&&n.uid){h.current=n==null?void 0:n.uid;const b=m();return()=>{clearInterval(b)}}else h.current=null},[n]),p.useEffect(()=>{console.log("useMqtt useEffect accessToken"),g();const b=d();return()=>{m$(),clearInterval(b)}},[e,t]),p.useEffect(()=>{console.log("useMqtt threads change"),u(l)},[l]),p.useEffect(()=>{const b=function(_){if(console.log("useMqtt handleNewMessage",_),_.type===dT||_.type===vve||_.type===GF||_.type===fT||_.type===pT)return;const E=_.threadTopic,w=c.find(S=>S.topic===E);w?w.mute?console.log("useMqtt matchingThread muted",E):(console.log("useMqtt matchingThread no mute",E),a(s(eR),s(eR)),y(_)):(console.log("useMqtt matchingThread no"),a(s(eR),s(eR)),y(_))};return vr.on(uT,b),()=>{vr.off(uT)}},[c]),p.useEffect(()=>{console.log("useMqtt useEffect");const b=function(){console.log("handleMqttConnected"),o(!0)},_=function(){console.log("handleMqttDisconnected"),o(!1)};return vr.on(DF,b),vr.on($F,_),vr.on(FF,_),vr.on(LF,_),vr.on(BF,_),vr.on(jF,_),()=>{console.log("un - useEffect mqttDisconnect"),vr.off(DF),vr.off($F),vr.off(FF),vr.off(LF),vr.off(BF),vr.off(jF)}},[]),{doConnect:g,doDisconnect:v,isMqttConnected:i}}const sNe=Rc()(Md(kd(Pd((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===gve){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===F$e){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:N$e})));function lNe(){console.log("useElectronApi");const e=Aa(),t=Oa(r=>r.userInfo),n=sNe(r=>r.addDevice);p.useEffect(()=>(console.log("useElectronApi useEffect"),Ha?(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:gve,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===_$e){Wt.success("截图成功");const i=r.data;vr.emit(x$e,i.toDataURL())}})):console.log("not electron - in browser"),()=>{console.log("un - useEffect"),Ha?(window.electronAPI.offNewWindowCreated(),window.electronAPI.offMulticastMessageAll(),window.electronAPI.offWebSocketMessageAll(),window.electronAPI.offHttpMessageAll(),window.electronAPI.offNotificationMessageAll()):console.log("not electron")}),[])}const PKt=Rc()(Md(kd(Pd((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:I$e}))),cNe=Rc()(Md(kd(Pd((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:$$e}))),DKt=()=>{const e=$l(u=>u.deleteOrg),t=id(u=>u.resetThreads),n=Eh(u=>u.resetMessageList),r=PKt(u=>u.resetMembers),i=Fx(u=>u.removeAccessToken),o=Oa(u=>u.resetUserInfo),a=sNe(u=>u.resetContactInfo),s=b0(u=>u.resetAgentInfo),l=cNe(u=>u.resetWorkgroupInfo);return{clearStorage:()=>{e(),t(),n(),r(),i(),o(),a(),s(),l()}}};function uNe(){console.log("useEventBus");const{clearStorage:e}=DKt(),{doDisconnect:t}=yQ(),{setPingLoading:n}=p.useContext(as),r=p.useCallback(async()=>{try{const i=await iWt();console.log("logout result:",i.data),n(!1),t(),e(),Z_t()}catch(i){console.log("logout error:",i)}},[]);return p.useEffect(()=>{console.log("useEventBus useEffect");const i=function(o){console.log("token过期强制刷新登录",o),vr.off(Zm,i),r()};return vr.on(Zm,i),()=>{console.log("un - useEffect mqttDisconnect"),vr.off(Zm)}},[]),{doLogout:r}}const LKt=()=>{const e=Si(),{doLogout:t}=uNe(),{isLoggedIn:n,locale:r,changeLocale:i,mode:o,changeMode:a,handleUpdateAgentStatus:s}=p.useContext(as),{agentInfo:l}=b0(h=>({agentInfo:h.agentInfo})),c=[{key:"settings",label:e.formatMessage({id:"menu.settings",defaultMessage:"Settings"}),icon:H.jsx(fY,{}),children:[{key:"logout",label:e.formatMessage({id:"menu.settings.logout",defaultMessage:"Logout"})}]}],[u,d]=p.useState(c);p.useEffect(()=>{if(d(c),l.uid!==""&&o===kv){console.log("agentInfo changed",l);const h=[...c],m={key:"status",label:e.formatMessage({id:"menu.agent.status",defaultMessage:"Agent Status"}),type:"group",children:[{key:uee,icon:l.status===uee?H.jsx(Yp,{}):H.jsx(H.Fragment,{}),label:e.formatMessage({id:"menu.agent.status.available",defaultMessage:"Available"})},{key:dee,icon:l.status===dee?H.jsx(Yp,{}):H.jsx(H.Fragment,{}),label:e.formatMessage({id:"menu.agent.status.rest",defaultMessage:"Rest"})},{key:N8,icon:l.status===N8?H.jsx(Yp,{}):H.jsx(H.Fragment,{}),label:e.formatMessage({id:"menu.agent.status.offline",defaultMessage:"Offline"})}]},g=h[0].children,v=g.findIndex(y=>y.key===m.key);v!==-1?g[v]=m:g.splice(0,0,m),h[0].children=g,d(h)}},[l,r,o]);const f=async h=>{console.log("click",h.key),h.key==="logout"?t():h.key==="zh-cn"||h.key==="zh-tw"||h.key==="en"?i(h.key):h.key===vy||h.key===kv||h.key===ZN?(console.log("mode",h.key),a(h.key)):(console.log("status"),h.key===N8&&Ho.warning(e.formatMessage({id:"menu.agent.offline.warning",defaultMessage:"Please end all ongoing conversations before going offline"})),s(h.key))};return H.jsx(H.Fragment,{children:n?H.jsx(H.Fragment,{children:H.jsx(Bd,{inlineCollapsed:!0,onClick:f,style:{width:64,height:34},mode:"inline",items:u})}):H.jsx(H.Fragment,{})})};async function $Kt(e){return $r("/api/v1/workgroup/query/org",{method:"GET",params:{...e,client:wr}})}const dNe=()=>{const[e,t]=p.useState([]),n=new R2e;p.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 p.useEffect(()=>{console.log("useIndexedDB useEffect");const a=function(s){console.log("useIndexedDB handleNewMessage",s),r(s)};return vr.on(uT,a),()=>{console.log("useIndexedDB useEffect return"),vr.off(uT,a)}},[]),{messages:e,createMessage:r,updateMessage:i,deleteMessage:o}};async function fNe(){return $r("/api/v1/user/profile",{method:"GET",params:{client:wr}})}async function pNe(e){return $r("/api/v1/user/update",{method:"POST",data:{...e,client:wr}})}async function FKt(e){return $r("/api/v1/user/change/password",{method:"POST",data:{...e,client:wr}})}async function hNe(e){return $r("/api/v1/user/change/email",{method:"POST",data:{...e,client:wr}})}async function mNe(e){return $r("/api/v1/user/change/mobile",{method:"POST",data:{...e,client:wr}})}const BKt=()=>{const e=Si(),{locale:t,changeLocale:n}=p.useContext(as),r=[{key:"lang",icon:H.jsx(Qmt,{}),label:e.formatMessage({id:"menu.language"}),children:[{key:"zh-cn",icon:t.locale==="zh-cn"?H.jsx(Yp,{}):H.jsx(H.Fragment,{}),label:e.formatMessage({id:"i18n.lang.zh-CN"})},{key:"zh-tw",icon:t.locale==="zh-tw"?H.jsx(Yp,{}):H.jsx(H.Fragment,{}),label:e.formatMessage({id:"i18n.lang.zh-TW"})},{key:"en",icon:t.locale==="en"?H.jsx(Yp,{}):H.jsx(H.Fragment,{}),label:e.formatMessage({id:"i18n.lang.en-US"})}]}],i=o=>{const a=o.key;n(a)};return H.jsx(Bd,{inlineCollapsed:!0,onClick:i,style:{width:64,height:34},mode:"inline",items:r})};var wl=function(){return wl=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},wl.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 jKt=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],f=n[u];if(o=r?r.call(i,d,f,u):void 0,o===!1||o===void 0&&d!==f)return!1}return!0};const HKt=di(jKt);var no="-ms-",_w="-moz-",yi="-webkit-",gNe="comm",j3="rule",_Q="decl",UKt="@import",vNe="@keyframes",zKt="@layer",bNe=Math.abs,SQ=String.fromCharCode,mz=Object.assign;function VKt(e,t){return La(e,0)^45?(((t<<2^La(e,0))<<2^La(e,1))<<2^La(e,2))<<2^La(e,3):0}function yNe(e){return e.trim()}function Ap(e,t){return(e=t.exec(e))?e[0]:e}function kr(e,t,n){return e.replace(t,n)}function QA(e,t,n){return e.indexOf(t,n)}function La(e,t){return e.charCodeAt(t)|0}function P_(e,t,n){return e.slice(t,n)}function ff(e){return e.length}function _Ne(e){return e.length}function BC(e,t){return t.push(e),e}function GKt(e,t){return e.map(t).join("")}function Rce(e,t){return e.filter(function(n){return!Ap(n,t)})}var H3=1,D_=1,SNe=0,_u=0,da=0,iE="";function U3(e,t,n,r,i,o,a,s){return{value:e,root:t,parent:n,type:r,props:i,children:o,line:H3,column:D_,length:a,return:"",siblings:s}}function nm(e,t){return mz(U3("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function db(e){for(;e.root;)e=nm(e.root,{children:[e]});BC(e,e.siblings)}function WKt(){return da}function qKt(){return da=_u>0?La(iE,--_u):0,D_--,da===10&&(D_=1,H3--),da}function bd(){return da=_u<SNe?La(iE,_u++):0,D_++,da===10&&(D_=1,H3++),da}function gv(){return La(iE,_u)}function XA(){return _u}function z3(e,t){return P_(iE,e,t)}function gz(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 YKt(e){return H3=D_=1,SNe=ff(iE=e),_u=0,[]}function KKt(e){return iE="",e}function Z$(e){return yNe(z3(_u-1,vz(e===91?e+2:e===40?e+1:e)))}function QKt(e){for(;(da=gv())&&da<33;)bd();return gz(e)>2||gz(da)>3?"":" "}function XKt(e,t){for(;--t&&bd()&&!(da<48||da>102||da>57&&da<65||da>70&&da<97););return z3(e,XA()+(t<6&&gv()==32&&bd()==32))}function vz(e){for(;bd();)switch(da){case e:return _u;case 34:case 39:e!==34&&e!==39&&vz(da);break;case 40:e===41&&vz(e);break;case 92:bd();break}return _u}function ZKt(e,t){for(;bd()&&e+da!==57;)if(e+da===84&&gv()===47)break;return"/*"+z3(t,_u-1)+"*"+SQ(e===47?e:bd())}function JKt(e){for(;!gz(gv());)bd();return z3(e,_u)}function eQt(e){return KKt(ZA("",null,null,null,[""],e=YKt(e),0,[0],e))}function ZA(e,t,n,r,i,o,a,s,l){for(var c=0,u=0,d=a,f=0,h=0,m=0,g=1,v=1,y=1,b=0,_="",E=i,w=o,S=r,C=_;v;)switch(m=b,b=bd()){case 40:if(m!=108&&La(C,d-1)==58){QA(C+=kr(Z$(b),"&","&\f"),"&\f",bNe(c?s[c-1]:0))!=-1&&(y=-1);break}case 34:case 39:case 91:C+=Z$(b);break;case 9:case 10:case 13:case 32:C+=QKt(m);break;case 92:C+=XKt(XA()-1,7);continue;case 47:switch(gv()){case 42:case 47:BC(tQt(ZKt(bd(),XA()),t,n,l),l);break;default:C+="/"}break;case 123*g:s[c++]=ff(C)*y;case 125*g:case 59:case 0:switch(b){case 0:case 125:v=0;case 59+u:y==-1&&(C=kr(C,/\f/g,"")),h>0&&ff(C)-d&&BC(h>32?Ace(C+";",r,n,d-1,l):Ace(kr(C," ","")+";",r,n,d-2,l),l);break;case 59:C+=";";default:if(BC(S=Ice(C,t,n,c,u,i,s,_,E=[],w=[],d,o),o),b===123)if(u===0)ZA(C,t,S,S,E,o,d,s,w);else switch(f===99&&La(C,3)===110?100:f){case 100:case 108:case 109:case 115:ZA(e,S,S,r&&BC(Ice(e,S,S,0,0,i,s,_,i,E=[],d,w),w),i,w,d,s,r?E:w);break;default:ZA(C,S,S,S,[""],w,0,s,w)}}c=u=h=0,g=y=1,_=C="",d=a;break;case 58:d=1+ff(C),h=m;default:if(g<1){if(b==123)--g;else if(b==125&&g++==0&&qKt()==125)continue}switch(C+=SQ(b),b*g){case 38:y=u>0?1:(C+="\f",-1);break;case 44:s[c++]=(ff(C)-1)*y,y=1;break;case 64:gv()===45&&(C+=Z$(bd())),f=gv(),u=d=ff(_=C+=JKt(XA())),b++;break;case 45:m===45&&ff(C)==2&&(g=0)}}return o}function Ice(e,t,n,r,i,o,a,s,l,c,u,d){for(var f=i-1,h=i===0?o:[""],m=_Ne(h),g=0,v=0,y=0;g<r;++g)for(var b=0,_=P_(e,f+1,f=bNe(v=a[g])),E=e;b<m;++b)(E=yNe(v>0?h[b]+" "+_:kr(_,/&\f/g,h[b])))&&(l[y++]=E);return U3(e,t,n,i===0?j3:s,l,c,u,d)}function tQt(e,t,n,r){return U3(e,t,n,gNe,SQ(WKt()),P_(e,2,-2),0,r)}function Ace(e,t,n,r,i){return U3(e,t,n,_Q,P_(e,0,r),P_(e,r+1,-1),r,i)}function ENe(e,t,n){switch(VKt(e,t)){case 5103:return yi+"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 yi+e+e;case 4789:return _w+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return yi+e+_w+e+no+e+e;case 5936:switch(La(e,t+11)){case 114:return yi+e+no+kr(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return yi+e+no+kr(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return yi+e+no+kr(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return yi+e+no+e+e;case 6165:return yi+e+no+"flex-"+e+e;case 5187:return yi+e+kr(e,/(\w+).+(:[^]+)/,yi+"box-$1$2"+no+"flex-$1$2")+e;case 5443:return yi+e+no+"flex-item-"+kr(e,/flex-|-self/g,"")+(Ap(e,/flex-|baseline/)?"":no+"grid-row-"+kr(e,/flex-|-self/g,""))+e;case 4675:return yi+e+no+"flex-line-pack"+kr(e,/align-content|flex-|-self/g,"")+e;case 5548:return yi+e+no+kr(e,"shrink","negative")+e;case 5292:return yi+e+no+kr(e,"basis","preferred-size")+e;case 6060:return yi+"box-"+kr(e,"-grow","")+yi+e+no+kr(e,"grow","positive")+e;case 4554:return yi+kr(e,/([^-])(transform)/g,"$1"+yi+"$2")+e;case 6187:return kr(kr(kr(e,/(zoom-|grab)/,yi+"$1"),/(image-set)/,yi+"$1"),e,"")+e;case 5495:case 3959:return kr(e,/(image-set\([^]*)/,yi+"$1$`$1");case 4968:return kr(kr(e,/(.+:)(flex-)?(.*)/,yi+"box-pack:$3"+no+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+yi+e+e;case 4200:if(!Ap(e,/flex-|baseline/))return no+"grid-column-align"+P_(e,t)+e;break;case 2592:case 3360:return no+kr(e,"template-","")+e;case 4384:case 3616:return n&&n.some(function(r,i){return t=i,Ap(r.props,/grid-\w+-end/)})?~QA(e+(n=n[t].value),"span",0)?e:no+kr(e,"-start","")+e+no+"grid-row-span:"+(~QA(n,"span",0)?Ap(n,/\d+/):+Ap(n,/\d+/)-+Ap(e,/\d+/))+";":no+kr(e,"-start","")+e;case 4896:case 4128:return n&&n.some(function(r){return Ap(r.props,/grid-\w+-start/)})?e:no+kr(kr(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return kr(e,/(.+)-inline(.+)/,yi+"$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(ff(e)-1-t>6)switch(La(e,t+1)){case 109:if(La(e,t+4)!==45)break;case 102:return kr(e,/(.+:)(.+)-([^]+)/,"$1"+yi+"$2-$3$1"+_w+(La(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~QA(e,"stretch",0)?ENe(kr(e,"stretch","fill-available"),t,n)+e:e}break;case 5152:case 5920:return kr(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(r,i,o,a,s,l,c){return no+i+":"+o+c+(a?no+i+"-span:"+(s?l:+l-+o)+c:"")+e});case 4949:if(La(e,t+6)===121)return kr(e,":",":"+yi)+e;break;case 6444:switch(La(e,La(e,14)===45?18:11)){case 120:return kr(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+yi+(La(e,14)===45?"inline-":"")+"box$3$1"+yi+"$2$3$1"+no+"$2box$3")+e;case 100:return kr(e,":",":"+no)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return kr(e,"scroll-","scroll-snap-")+e}return e}function Ak(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function nQt(e,t,n,r){switch(e.type){case zKt:if(e.children.length)break;case UKt:case _Q:return e.return=e.return||e.value;case gNe:return"";case vNe:return e.return=e.value+"{"+Ak(e.children,r)+"}";case j3:if(!ff(e.value=e.props.join(",")))return""}return ff(n=Ak(e.children,r))?e.return=e.value+"{"+n+"}":""}function rQt(e){var t=_Ne(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 iQt(e){return function(t){t.root||(t=t.return)&&e(t)}}function oQt(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case _Q:e.return=ENe(e.value,e.length,n);return;case vNe:return Ak([nm(e,{value:kr(e.value,"@","@"+yi)})],r);case j3:if(e.length)return GKt(n=e.props,function(i){switch(Ap(i,r=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":db(nm(e,{props:[kr(i,/:(read-\w+)/,":"+_w+"$1")]})),db(nm(e,{props:[i]})),mz(e,{props:Rce(n,r)});break;case"::placeholder":db(nm(e,{props:[kr(i,/:(plac\w+)/,":"+yi+"input-$1")]})),db(nm(e,{props:[kr(i,/:(plac\w+)/,":"+_w+"$1")]})),db(nm(e,{props:[kr(i,/:(plac\w+)/,no+"input-$1")]})),db(nm(e,{props:[i]})),mz(e,{props:Rce(n,r)});break}return""})}}var aQt={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},tc={npm_package_dependencies_emoji_mart:"^5.6.0",npm_package_dependencies_use_debounce:"^10.0.1",NVM_INC:"/Users/ningjinpeng/.nvm/versions/node/v20.0.0/include/node",ELECTRON_MIRROR:"http://npm.taobao.org/mirrors/electron/",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",GEM_HOME:"/Users/ningjinpeng/.gem/ruby",NVM_CD_FLAGS:"-q",PYENV_ROOT:"/Users/ningjinpeng/.pyenv",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",SHELL:"/bin/zsh",TERM:"xterm-256color",npm_config_shamefully_hoist:"true",npm_package_dependencies__emotion_styled:"11.11.5",npm_package_dependencies_react_infinite_scroll_component:"^6.1.0",HOMEBREW_API_DOMAIN:"https://mirrors.tuna.tsinghua.edu.cn/homebrew-bottles/api",HOMEBREW_BOTTLE_DOMAIN:"https://mirrors.tuna.tsinghua.edu.cn/homebrew-bottles",npm_package_dependencies__ant_design_pro_provider:"^2.15.2",HOMEBREW_REPOSITORY:"/opt/homebrew",TMPDIR:"/var/folders/gs/yt0l6r9963zgwd7fmhn3jfg40000gn/T/",npm_config_init_license:"MIT",npm_package_dependencies__ant_design_x:"^1.1.0",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:"1.99.2",npm_package_scripts_dev:"vite --host --mode dev",npm_package_dependencies_express_rate_limit:"^7.2.0",npm_package_dependencies_uuid:"^9.0.1",MallocNanoZone:"0",ORIGINAL_XDG_CURRENT_DESKTOP:"undefined",npm_package_scripts_build_linux:"tsc && vite build --mode prod && electron-builder --linux --config electron-builder-linux.yml",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:"^5.6.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",NVM_DIR:"/Users/ningjinpeng/.nvm",USER:"ningjinpeng",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_aieditor:"^1.0.13",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",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:/Users/ningjinpeng/flutter/bin/cache/dart-sdk/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:/Users/ningjinpeng/Library/Application Support/Code/User/globalStorage/github.copilot-chat/debugCommand:/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",HOMEBREW_CORE_GIT_REMOTE:"https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/homebrew-core.git",HOMEBREW_INSTALL_FROM_API:"1",rvm_path:"/Users/ningjinpeng/.rvm",npm_package_dependencies_react_virtuoso:"^4.7.1",npm_package_dependencies_zustand:"^4.4.7",SSH_AUTH_SOCK:"/private/tmp/com.apple.launchd.HpewnUYk0F/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",PUB_HOSTED_URL:"https://pub.flutter-io.cn",__CF_USER_TEXT_ENCODING:"0x1F5:0x19:0x34",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--1744795537715-0.7533670210844918:/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:/Users/ningjinpeng/flutter/bin/cache/dart-sdk/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:/Users/ningjinpeng/Library/Application Support/Code/User/globalStorage/github.copilot-chat/debugCommand:/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",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",__CFBundleIdentifier:"com.microsoft.VSCode",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",FLUTTER_STORAGE_BASE_URL:"https://storage.flutter-io.cn",JAVA_HOME:"/Library/Java/JavaVirtualMachines/jdk-17.0.4.jdk/Contents/Home",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",LOCAL_GIT_DIRECTORY:"/Applications/GitHub Desktop.app/Contents/Resources/app/git",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_release_quanjing:"sh cicd/scripts/build-quanjing.sh",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",XPC_FLAGS:"0x0",VSCODE_GIT_ASKPASS_EXTRA_ARGS:"",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.1.1",npm_package_dependencies__emotion_react:"11.11.4",npm_package_dependencies_node_json_db:"^2.3.1",npm_package_dependencies_ws:"^8.16.0",XPC_SERVICE_NAME:"0",npm_package_devDependencies_autoprefixer:"^10.4.16",rvm_version:"1.29.12 (latest)",npm_package_type:"module",HOME:"/Users/ningjinpeng",PYENV_SHELL:"zsh",SHLVL:"3",npm_package_dependencies_react_markdown:"^9.0.1",HOMEBREW_BREW_GIT_REMOTE:"https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/brew.git",VSCODE_GIT_ASKPASS_MAIN:"/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/git/dist/askpass-main.js",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-7f4d23a467.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",BUN_INSTALL:"/Users/ningjinpeng/.bun",NVM_BIN:"/Users/ningjinpeng/.nvm/versions/node/v20.0.0/bin",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",HOMEBREW_CELLAR:"/opt/homebrew/Cellar",INFOPATH:"/opt/homebrew/share/info:/opt/homebrew/share/info:",GIT_ASKPASS:"/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/git/dist/askpass.sh",VSCODE_GIT_ASKPASS_NODE:"/Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper (Plugin).app/Contents/MacOS/Code Helper (Plugin)",npm_package_dependencies_express:"^4.18.3",npm_config_ignore_optional:"",npm_config_init_version:"1.0.0",npm_package_scripts_build_quanjing:"tsc && vite build --mode quanjing",npm_package_dependencies_antd:"^5.23.2",npm_package_dependencies_langchain:"^0.2.16",npm_package_dependencies__ant_design_compatible:"^5.1.4",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",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"},L_=typeof process<"u"&&tc!==void 0&&(tc.REACT_APP_SC_ATTR||tc.SC_ATTR)||"data-styled",CNe="active",wNe="data-styled-version",V3="6.1.13",EQ=`/*!sc*/
`,Nk=typeof window<"u"&&"HTMLElement"in window,sQt=!!(typeof SC_DISABLE_SPEEDY=="boolean"?SC_DISABLE_SPEEDY:typeof process<"u"&&tc!==void 0&&tc.REACT_APP_SC_DISABLE_SPEEDY!==void 0&&tc.REACT_APP_SC_DISABLE_SPEEDY!==""?tc.REACT_APP_SC_DISABLE_SPEEDY!=="false"&&tc.REACT_APP_SC_DISABLE_SPEEDY:typeof process<"u"&&tc!==void 0&&tc.SC_DISABLE_SPEEDY!==void 0&&tc.SC_DISABLE_SPEEDY!==""&&tc.SC_DISABLE_SPEEDY!=="false"&&tc.SC_DISABLE_SPEEDY),G3=Object.freeze([]),$_=Object.freeze({});function lQt(e,t,n){return n===void 0&&(n=$_),e.theme!==n.theme&&e.theme||t||n.theme}var TNe=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"]),cQt=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,uQt=/(^-|-$)/g;function Nce(e){return e.replace(cQt,"-").replace(uQt,"")}var dQt=/(a)(d)/gi,ZR=52,Mce=function(e){return String.fromCharCode(e+(e>25?39:97))};function bz(e){var t,n="";for(t=Math.abs(e);t>ZR;t=t/ZR|0)n=Mce(t%ZR)+n;return(Mce(t%ZR)+n).replace(dQt,"$1-$2")}var J$,xNe=5381,ry=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},ONe=function(e){return ry(xNe,e)};function fQt(e){return bz(ONe(e)>>>0)}function pQt(e){return e.displayName||e.name||"Component"}function e6(e){return typeof e=="string"&&!0}var RNe=typeof Symbol=="function"&&Symbol.for,INe=RNe?Symbol.for("react.memo"):60115,hQt=RNe?Symbol.for("react.forward_ref"):60112,mQt={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},gQt={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},ANe={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},vQt=((J$={})[hQt]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},J$[INe]=ANe,J$);function kce(e){return("type"in(t=e)&&t.type.$$typeof)===INe?ANe:"$$typeof"in e?vQt[e.$$typeof]:mQt;var t}var bQt=Object.defineProperty,yQt=Object.getOwnPropertyNames,Pce=Object.getOwnPropertySymbols,_Qt=Object.getOwnPropertyDescriptor,SQt=Object.getPrototypeOf,Dce=Object.prototype;function NNe(e,t,n){if(typeof t!="string"){if(Dce){var r=SQt(t);r&&r!==Dce&&NNe(e,r,n)}var i=yQt(t);Pce&&(i=i.concat(Pce(t)));for(var o=kce(e),a=kce(t),s=0;s<i.length;++s){var l=i[s];if(!(l in gQt||n&&n[l]||a&&l in a||o&&l in o)){var c=_Qt(t,l);try{bQt(e,l,c)}catch{}}}}return e}function F_(e){return typeof e=="function"}function CQ(e){return typeof e=="object"&&"styledComponentId"in e}function G1(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function Lce(e,t){if(e.length===0)return"";for(var n=e[0],r=1;r<e.length;r++)n+=e[r];return n}function XT(e){return e!==null&&typeof e=="object"&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function yz(e,t,n){if(n===void 0&&(n=!1),!n&&!XT(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var r=0;r<t.length;r++)e[r]=yz(e[r],t[r]);else if(XT(t))for(var r in t)e[r]=yz(e[r],t[r]);return e}function wQ(e,t){Object.defineProperty(e,"toString",{value:t})}function oO(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 EQt=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 oO(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(EQ);return n},e}(),JA=new Map,Mk=new Map,eN=1,JR=function(e){if(JA.has(e))return JA.get(e);for(;Mk.has(eN);)eN++;var t=eN++;return JA.set(e,t),Mk.set(t,e),t},CQt=function(e,t){eN=t+1,JA.set(e,t),Mk.set(t,e)},wQt="style[".concat(L_,"][").concat(wNe,'="').concat(V3,'"]'),TQt=new RegExp("^".concat(L_,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),xQt=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)},OQt=function(e,t){for(var n,r=((n=t.textContent)!==null&&n!==void 0?n:"").split(EQ),i=[],o=0,a=r.length;o<a;o++){var s=r[o].trim();if(s){var l=s.match(TQt);if(l){var c=0|parseInt(l[1],10),u=l[2];c!==0&&(CQt(u,c),xQt(e,u,l[3]),e.getTag().insertRules(c,i)),i.length=0}else i.push(s)}}},$ce=function(e){for(var t=document.querySelectorAll(wQt),n=0,r=t.length;n<r;n++){var i=t[n];i&&i.getAttribute(L_)!==CNe&&(OQt(e,i),i.parentNode&&i.parentNode.removeChild(i))}};function RQt(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:null}var MNe=function(e){var t=document.head,n=e||t,r=document.createElement("style"),i=function(s){var l=Array.from(s.querySelectorAll("style[".concat(L_,"]")));return l[l.length-1]}(n),o=i!==void 0?i.nextSibling:null;r.setAttribute(L_,CNe),r.setAttribute(wNe,V3);var a=RQt();return a&&r.setAttribute("nonce",a),n.insertBefore(r,o),r},IQt=function(){function e(t){this.element=MNe(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 oO(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}(),AQt=function(){function e(t){this.element=MNe(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}(),NQt=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}(),Fce=Nk,MQt={isServer:!Nk,useCSSOMInjection:!sQt},kNe=function(){function e(t,n,r){t===void 0&&(t=$_),n===void 0&&(n={});var i=this;this.options=wl(wl({},MQt),t),this.gs=n,this.names=new Map(r),this.server=!!t.isServer,!this.server&&Nk&&Fce&&(Fce=!1,$ce(this)),wQ(this,function(){return function(o){for(var a=o.getTag(),s=a.length,l="",c=function(d){var f=function(y){return Mk.get(y)}(d);if(f===void 0)return"continue";var h=o.names.get(f),m=a.getGroup(d);if(h===void 0||!h.size||m.length===0)return"continue";var g="".concat(L_,".g").concat(d,'[id="').concat(f,'"]'),v="";h!==void 0&&h.forEach(function(y){y.length>0&&(v+="".concat(y,","))}),l+="".concat(m).concat(g,'{content:"').concat(v,'"}').concat(EQ)},u=0;u<s;u++)c(u);return l}(i)})}return e.registerId=function(t){return JR(t)},e.prototype.rehydrate=function(){!this.server&&Nk&&$ce(this)},e.prototype.reconstructWithOptions=function(t,n){return n===void 0&&(n=!0),new e(wl(wl({},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 NQt(i):r?new IQt(i):new AQt(i)}(this.options),new EQt(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(JR(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(JR(t),r)},e.prototype.clearNames=function(t){this.names.has(t)&&this.names.get(t).clear()},e.prototype.clearRules=function(t){this.getTag().clearGroup(JR(t)),this.clearNames(t)},e.prototype.clearTag=function(){this.tag=void 0},e}(),kQt=/&/g,PQt=/^\s*\/\/.*$/gm;function PNe(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=PNe(n.children,t)),n})}function DQt(e){var t,n,r,i=$_,o=i.options,a=o===void 0?$_:o,s=i.plugins,l=s===void 0?G3:s,c=function(f,h,m){return m.startsWith(n)&&m.endsWith(n)&&m.replaceAll(n,"").length>0?".".concat(t):f},u=l.slice();u.push(function(f){f.type===j3&&f.value.includes("&")&&(f.props[0]=f.props[0].replace(kQt,n).replace(r,c))}),a.prefix&&u.push(oQt),u.push(nQt);var d=function(f,h,m,g){h===void 0&&(h=""),m===void 0&&(m=""),g===void 0&&(g="&"),t=g,n=h,r=new RegExp("\\".concat(n,"\\b"),"g");var v=f.replace(PQt,""),y=eQt(m||h?"".concat(m," ").concat(h," { ").concat(v," }"):v);a.namespace&&(y=PNe(y,a.namespace));var b=[];return Ak(y,rQt(u.concat(iQt(function(_){return b.push(_)})))),b};return d.hash=l.length?l.reduce(function(f,h){return h.name||oO(15),ry(f,h.name)},xNe).toString():"",d}var LQt=new kNe,_z=DQt(),DNe=ce.createContext({shouldForwardProp:void 0,styleSheet:LQt,stylis:_z});DNe.Consumer;ce.createContext(void 0);function Bce(){return p.useContext(DNe)}var $Qt=function(){function e(t,n){var r=this;this.inject=function(i,o){o===void 0&&(o=_z);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,wQ(this,function(){throw oO(12,String(r.name))})}return e.prototype.getName=function(t){return t===void 0&&(t=_z),this.name+t.hash},e}(),FQt=function(e){return e>="A"&&e<="Z"};function jce(e){for(var t="",n=0;n<e.length;n++){var r=e[n];if(n===1&&r==="-"&&e[0]==="-")return e;FQt(r)?t+="-"+r.toLowerCase():t+=r}return t.startsWith("ms-")?"-"+t:t}var LNe=function(e){return e==null||e===!1||e===""},$Ne=function(e){var t,n,r=[];for(var i in e){var o=e[i];e.hasOwnProperty(i)&&!LNe(o)&&(Array.isArray(o)&&o.isCss||F_(o)?r.push("".concat(jce(i),":"),o,";"):XT(o)?r.push.apply(r,Ik(Ik(["".concat(i," {")],$Ne(o),!1),["}"],!1)):r.push("".concat(jce(i),": ").concat((t=i,(n=o)==null||typeof n=="boolean"||n===""?"":typeof n!="number"||n===0||t in aQt||t.startsWith("--")?String(n).trim():"".concat(n,"px")),";")))}return r};function vv(e,t,n,r){if(LNe(e))return[];if(CQ(e))return[".".concat(e.styledComponentId)];if(F_(e)){if(!F_(o=e)||o.prototype&&o.prototype.isReactComponent||!t)return[e];var i=e(t);return vv(i,t,n,r)}var o;return e instanceof $Qt?n?(e.inject(n,r),[e.getName(r)]):[e]:XT(e)?$Ne(e):Array.isArray(e)?Array.prototype.concat.apply(G3,e.map(function(a){return vv(a,t,n,r)})):[e.toString()]}function BQt(e){for(var t=0;t<e.length;t+=1){var n=e[t];if(F_(n)&&!CQ(n))return!1}return!0}var jQt=ONe(V3),HQt=function(){function e(t,n,r){this.rules=t,this.staticRulesId="",this.isStatic=(r===void 0||r.isStatic)&&BQt(t),this.componentId=n,this.baseHash=ry(jQt,n),this.baseStyle=r,kNe.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=G1(i,this.staticRulesId);else{var o=Lce(vv(this.rules,t,n,r)),a=bz(ry(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=G1(i,a),this.staticRulesId=a}else{for(var l=ry(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 f=Lce(vv(d,t,n,r));l=ry(l,f+u),c+=f}}if(c){var h=bz(l>>>0);n.hasNameForId(this.componentId,h)||n.insertRules(this.componentId,h,r(c,".".concat(h),void 0,this.componentId)),i=G1(i,h)}}return i},e}(),FNe=ce.createContext(void 0);FNe.Consumer;var t6={};function UQt(e,t,n){var r=CQ(e),i=e,o=!e6(e),a=t.attrs,s=a===void 0?G3:a,l=t.componentId,c=l===void 0?function(E,w){var S=typeof E!="string"?"sc":Nce(E);t6[S]=(t6[S]||0)+1;var C="".concat(S,"-").concat(fQt(V3+S+t6[S]));return w?"".concat(w,"-").concat(C):C}(t.displayName,t.parentComponentId):l,u=t.displayName,d=u===void 0?function(E){return e6(E)?"styled.".concat(E):"Styled(".concat(pQt(E),")")}(e):u,f=t.displayName&&t.componentId?"".concat(Nce(t.displayName),"-").concat(t.componentId):t.componentId||c,h=r&&i.attrs?i.attrs.concat(s).filter(Boolean):s,m=t.shouldForwardProp;if(r&&i.shouldForwardProp){var g=i.shouldForwardProp;if(t.shouldForwardProp){var v=t.shouldForwardProp;m=function(E,w){return g(E,w)&&v(E,w)}}else m=g}var y=new HQt(n,f,r?i.componentStyle:void 0);function b(E,w){return function(S,C,T){var x=S.attrs,O=S.componentStyle,N=S.defaultProps,I=S.foldedComponentIds,M=S.styledComponentId,F=S.target,k=ce.useContext(FNe),B=Bce(),A=S.shouldForwardProp||B.shouldForwardProp,P=lQt(C,k,N)||$_,z=function(te,ae,K){for(var Q,oe=wl(wl({},ae),{className:void 0,theme:K}),ge=0;ge<te.length;ge+=1){var fe=F_(Q=te[ge])?Q(oe):Q;for(var ue in fe)oe[ue]=ue==="className"?G1(oe[ue],fe[ue]):ue==="style"?wl(wl({},oe[ue]),fe[ue]):fe[ue]}return ae.className&&(oe.className=G1(oe.className,ae.className)),oe}(x,C,P),L=z.as||F,V={};for(var j in z)z[j]===void 0||j[0]==="$"||j==="as"||j==="theme"&&z.theme===P||(j==="forwardedAs"?V.as=z.forwardedAs:A&&!A(j,L)||(V[j]=z[j]));var U=function(te,ae){var K=Bce(),Q=te.generateAndInjectStyles(ae,K.styleSheet,K.stylis);return Q}(O,z),J=G1(I,M);return U&&(J+=" "+U),z.className&&(J+=" "+z.className),V[e6(L)&&!TNe.has(L)?"class":"className"]=J,V.ref=T,p.createElement(L,V)}(_,E,w)}b.displayName=d;var _=ce.forwardRef(b);return _.attrs=h,_.componentStyle=y,_.displayName=d,_.shouldForwardProp=m,_.foldedComponentIds=r?G1(i.foldedComponentIds,i.styledComponentId):"",_.styledComponentId=f,_.target=r?i.target:e,Object.defineProperty(_,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(E){this._foldedDefaultProps=r?function(w){for(var S=[],C=1;C<arguments.length;C++)S[C-1]=arguments[C];for(var T=0,x=S;T<x.length;T++)yz(w,x[T],!0);return w}({},i.defaultProps,E):E}}),wQ(_,function(){return".".concat(_.styledComponentId)}),o&&NNe(_,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),_}function Hce(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 Uce=function(e){return Object.assign(e,{isCss:!0})};function zQt(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(F_(e)||XT(e))return Uce(vv(Hce(G3,Ik([e],t,!0))));var r=e;return t.length===0&&r.length===1&&typeof r[0]=="string"?vv(r):Uce(vv(Hce(r,t)))}function Sz(e,t,n){if(n===void 0&&(n=$_),!t)throw oO(1,t);var r=function(i){for(var o=[],a=1;a<arguments.length;a++)o[a-1]=arguments[a];return e(t,n,zQt.apply(void 0,Ik([i],o,!1)))};return r.attrs=function(i){return Sz(e,t,wl(wl({},n),{attrs:Array.prototype.concat(n.attrs,i).filter(Boolean)}))},r.withConfig=function(i){return Sz(e,t,wl(wl({},n),i))},r}var BNe=function(e){return Sz(UQt,e)},Po=BNe;TNe.forEach(function(e){Po[e]=BNe(e)});async function VQt(e){return $r("/api/v1/kbase/query/org",{method:"GET",params:{...e,client:wr}})}async function GQt(e){return $r("/api/v1/kbase/query/detail",{method:"GET",params:{...e,client:wr}})}async function jNe(e){return $r("/api/v1/kbase/create",{method:"POST",data:{...e,client:wr}})}async function HNe(e){return $r("/api/v1/kbase/update",{method:"POST",data:{...e,client:wr}})}async function WQt(e){return $r("/api/v1/kbase/delete",{method:"POST",data:{...e,client:wr}})}const UNe=({visible:e,isEdit:t,kbase:n,onCancel:r,onOk:i})=>{const[o]=Dr.useForm(),a=$l(l=>l.currentOrg);p.useEffect(()=>{t&&n?o.setFieldsValue({name:n==null?void 0:n.name,description:n==null?void 0:n.description,type:n==null?void 0:n.type}):o.setFieldsValue({type:eg})},[o,t,n]);const s=async()=>{try{const l=await o.validateFields();if(console.log("values:",l),t&&n){const c={...l,orgUid:a==null?void 0:a.uid,uid:n==null?void 0:n.uid},u=await HNe(c);if(console.log("updateKbase response:",u.data),u.data.code===200)return Wt.success("知识库更新成功"),i(),!0}else{const c={...l,orgUid:a==null?void 0:a.uid},u=await jNe(c);return console.log("createKbase response:",u.data),u.data.code===200?(Wt.success("知识库创建成功"),i(),!0):(Wt.error(u.data.message),!1)}}catch(l){return console.error("Create space failed:",l),Wt.error("创建知识库失败"),!1}};return H.jsx(Wo,{title:"创建知识库",open:e,onOk:s,onCancel:r,children:H.jsxs(Dr,{form:o,submitter:!1,children:[H.jsx(ci,{name:"name",label:"知识库名称",placeholder:"请输入知识库名称",rules:[{required:!0,message:"请输入知识库名称"}]}),H.jsx(XS,{name:"description",label:"知识库描述",placeholder:"请输入知识库描述",rules:[{required:!0,message:"请输入知识库描述"}],fieldProps:{rows:4}}),H.jsx(VD.Group,{name:"type",label:"知识库类型",rules:[{required:!0,message:"请选择知识库类型"}],options:[{label:"帮助文档",value:f6e},{label:"私有知识库",value:eg}]})]})})},Lg=Rc(e=>({kbases:[],currentKbase:null,setKbases:t=>e({kbases:t}),setCurrentKbase:t=>e({currentKbase:t}),fetchKbases:async t=>{const r=await VQt({pageNumber:0,pageSize:10,type:eg,orgUid:t,queryNotebase:!0});console.log("queryKbasesByOrg response",r.data),r.data.code===200?e({kbases:r.data.data.content||[]}):Wt.error(r.data.message)},toggleStarKbase:t=>e(n=>({kbases:n.kbases.map(r=>r.uid===t?{...r,favorite:!r.favorite}:r)})),createKbase:async t=>{const n={...t,type:eg,queryNotebase:!0},r=await jNe(n);console.log("createKbase response",r.data),r.data.code===200?e(i=>({kbases:[...i.kbases,t]})):Wt.error(r.data.message)},updateKbase:async t=>{const n={...t,type:eg,queryNotebase:!0},r=await HNe(n);console.log("updateKbase response",r.data),r.data.code===200?Wt.success("更新成功"):Wt.error(r.data.message)},deleteKbase:async t=>{const r=await WQt({uid:t});console.log("deleteKbase response",r.data),r.data.code===200?Wt.success("删除成功"):Wt.error(r.data.message)},fetchKbaseDetail:async t=>{const r=await GQt({uid:t});if(console.log("queryKbaseDetail response",r.data),r.data.code===200)e({currentKbase:r.data.data});else throw new Error("KBASE.KbaseResponse not found")}})),{Title:qQt,Paragraph:YQt}=I2,KQt=Po(J5)`
.ant-card-body {
height: 120px;
padding: 12px;
overflow: hidden;
}
`,QQt=Po(qQt)`
&& {
margin-bottom: 8px !important;
display: flex;
align-items: center;
.title-text {
flex: 1;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
font-size: 16px;
margin-right: 8px;
}
.ant-tag {
flex-shrink: 0;
}
}
`,XQt=Po(YQt)`
&& {
margin-bottom: 0;
color: rgba(0, 0, 0, 0.45);
font-size: 14px;
}
`,ZQt=()=>H.jsxs("svg",{width:"100%",height:"140",viewBox:"0 0 400 140",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:{background:"#E8F4FF"},children:[H.jsx("rect",{width:"400",height:"140",fill:"#E8F4FF"}),H.jsx("path",{d:"M180 45h40v10h-40zM160 65h80v5h-80zM170 80h60v5h-60z",fill:"#4A90E2"}),H.jsx("path",{d:"M185 30c-8.8 0-16 7.2-16 16v48c0 8.8 7.2 16 16 16h30c8.8 0 16-7.2 16-16V46c0-8.8-7.2-16-16-16h-30zm0 4h30c6.6 0 12 5.4 12 12v48c0 6.6-5.4 12-12 12h-30c-6.6 0-12-5.4-12-12V46c0-6.6 5.4-12 12-12z",fill:"#1890FF"}),H.jsx("circle",{cx:"320",cy:"40",r:"15",fill:"#FFD666",opacity:"0.6"}),H.jsx("path",{d:"M100 90c15-25 25-15 35 0",stroke:"#91D5FF",strokeWidth:"3",fill:"none"})]}),JQt=({kbase:e,onClick:t})=>{const{translateStringTranct:n}=kc();return H.jsxs(KQt,{hoverable:!0,onClick:t,cover:e!=null&&e.coverImageUrl?H.jsx("img",{alt:e.name,src:e.coverImageUrl,style:{height:140,objectFit:"cover"}}):H.jsx(ZQt,{}),children:[H.jsxs(QQt,{level:4,children:[H.jsx("span",{className:"title-text",children:n(e.name)}),(e==null?void 0:e.type)===eg&&H.jsx(PS,{color:"blue",children:"私有"})]}),H.jsx(XQt,{ellipsis:{rows:2},children:n(e.description)})]})},eXt=Po.div`
padding: 24px;
`,tXt=Po.div`
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 24px;
`,nXt=Po.h2`
margin: 0;
`,Ez=()=>{const e=Aa(),{translateString:t}=kc(),{kbases:n,fetchKbases:r,toggleStarKbase:i}=Lg(),[o,a]=ce.useState("grid"),[s,l]=ce.useState(!0),[c,u]=ce.useState(!1),d=$l(_=>_.currentOrg),[f,h]=ce.useState(!1),[m,g]=ce.useState(null),v=async()=>{try{await r(d==null?void 0:d.uid)}finally{l(!1)}};ce.useEffect(()=>{d!=null&&d.uid&&v()},[r,d==null?void 0:d.uid]);const y=_=>{e(`/kbase/${_==null?void 0:_.uid}`)},b=[{title:"名称",dataIndex:"name",key:"name",render:(_,E)=>H.jsxs(Xi,{children:[H.jsx(UTe,{}),H.jsx("a",{onClick:()=>y(E),children:t(_)}),E.type===eg&&H.jsx(PS,{color:"blue",children:"私有"})]})},{title:"描述",dataIndex:"description",key:"description",ellipsis:!0},{title:"更新时间",dataIndex:"updatedAt",key:"updatedAt",render:_=>En(_).format("YYYY-MM-DD HH:mm:ss")},{title:"操作",key:"action",render:(_,E)=>H.jsxs(Xi,{children:[ud&&H.jsx($n,{type:"text",icon:E.favorite?H.jsx(lD,{}):H.jsx(pY,{}),onClick:w=>{w.stopPropagation(),i(E.uid)}}),H.jsx($n,{type:"link",onClick:()=>y(E),children:"查看"}),H.jsx($n,{type:"link",onClick:w=>{w.stopPropagation(),h(!0),g(E),u(!0)},children:"编辑"})]})}];return H.jsxs(eXt,{children:[H.jsxs(tXt,{children:[H.jsx(nXt,{children:"知识库"}),H.jsxs(Xi,{children:[H.jsxs(qi.Group,{value:o,onChange:_=>a(_.target.value),buttonStyle:"solid",children:[H.jsxs(qi.Button,{value:"grid",children:[H.jsx(amt,{})," 网格"]}),H.jsxs(qi.Button,{value:"list",children:[H.jsx(ECe,{})," 列表"]})]}),H.jsx($n,{type:"primary",icon:H.jsx(g2,{}),onClick:()=>u(!0),children:"创建知识库"})]})]}),o==="grid"?H.jsx(_2,{gutter:[16,16],children:n.map(_=>H.jsx(Uv,{xs:24,sm:12,md:8,lg:4,children:H.jsx(JQt,{kbase:_,onClick:()=>y(_)})},_.uid))}):H.jsx(Hd,{columns:b,dataSource:n,loading:s,rowKey:"uid",onRow:_=>({onClick:()=>y(_),style:{cursor:"pointer"}})}),c&&H.jsx(UNe,{visible:c,isEdit:f,kbase:m,onCancel:()=>u(!1),onOk:()=>{u(!1),v()}})]})};async function rXt(e){return $r("/api/v1/org/create",{method:"POST",data:{...e,client:wr}})}const iXt=({open:e,onClose:t,onSuccess:n})=>{const r=Si(),{userInfo:i}=AY(),[o,a]=p.useState(!1),[s,l]=p.useState(""),[c,u]=p.useState(!1),d=()=>{t()},f=()=>{Wt.error(r.formatMessage({id:"welcome.message.org.required"}))},h=async()=>{if(s===""){Wt.error(r.formatMessage({id:"welcome.message.org.name.required"}));return}a(!0),Wt.loading(r.formatMessage({id:"welcome.message.org.creating"}));const g=i!=null&&i.mobile?i==null?void 0:i.mobile:i==null?void 0:i.email,v={name:s,code:g,logo:"https://www.weiyuai.cn/logo.png",description:s+"description"};try{const y=await rXt(v);y.data.code===200?(a(!1),Wt.destroy(),Wt.success(r.formatMessage({id:"welcome.message.create.success"})),n(y.data.data),t()):(a(!1),Wt.destroy(),Wt.error(r.formatMessage({id:"welcome.message.create.failed"})))}catch{a(!1),Wt.destroy(),Wt.error(r.formatMessage({id:"welcome.message.create.failed"}))}},m=()=>{c?h():(u(!0),a(!1))};return H.jsxs(Wo,{title:r.formatMessage({id:"welcome.modal.title"}),closable:!1,open:e,onCancel:f,maskClosable:!1,footer:[H.jsx($n,{type:"primary",onClick:d,disabled:!0,children:r.formatMessage({id:"welcome.modal.join"})},"join"),H.jsx($n,{type:"primary",loading:o,onClick:m,children:r.formatMessage({id:"welcome.modal.create"})},"create")],children:[H.jsx("p",{children:r.formatMessage({id:"welcome.modal.description"})}),c&&H.jsx(Ki,{placeholder:r.formatMessage({id:"welcome.modal.input.placeholder"}),value:s,onChange:g=>l(g.target.value),onPressEnter:h,autoFocus:!0})]})},oXt=({open:e,onClose:t})=>{const n=Si(),r=Aa(),i=()=>{t(),r("/setting/certification")},o=()=>{localStorage.setItem("skipVerification","true"),t()};return H.jsx(Wo,{title:n.formatMessage({id:"welcome.verify.modal.title",defaultMessage:"账号验证提示"}),open:e,onCancel:o,footer:[H.jsx($n,{onClick:o,children:n.formatMessage({id:"welcome.verify.later",defaultMessage:"稍后验证"})},"later"),H.jsx($n,{type:"primary",onClick:i,children:n.formatMessage({id:"welcome.verify.now",defaultMessage:"立即验证"})},"now")],children:H.jsx("p",{children:n.formatMessage({id:"welcome.verify.modal.description",defaultMessage:"您的邮箱和手机号尚未验证,为保障账号安全,建议您尽快完成验证。"})})})},aXt=()=>{const e=Si(),{locale:t}=p.useContext(as),n=localStorage.getItem(QF),[r,i]=p.useState(n||"/chat"),o=Aa(),{isLoggedIn:a,hasRoleAgent:s}=p.useContext(as),{footerStyle:l}=iO(),{currentOrg:c,setCurrentOrg:u}=$l(k=>({currentOrg:k.currentOrg,setCurrentOrg:k.setCurrentOrg})),{userInfo:d,setUserInfo:f}=Oa(k=>({userInfo:k.userInfo,setUserInfo:k.setUserInfo})),{setAgentInfo:h}=b0(k=>({setAgentInfo:k.setAgentInfo})),m=id(k=>k.removeThread),g=cNe(k=>k.setWorkgroupResult),[v,y]=p.useState(!1),b=id(k=>k.threads);p.useEffect(()=>{const k=b.some(B=>B.unreadCount>0);y(k)},[b]);const[_,E]=p.useState([]);p.useEffect(()=>{const k=[{path:"/",name:e.formatMessage({id:"menu.dashboard.notebase"}),icon:H.jsx(ek,{}),component:H.jsx(Ez,{})},{path:"/setting",name:e.formatMessage({id:"menu.dashboard.mine"}),icon:H.jsx(fY,{}),component:H.jsx(oNe,{})}];E(k)},[e,t]),dNe(),yQ(),lNe(),WK();const w=async()=>{if(!a||(c==null?void 0:c.uid)===""||!s)return;const k=await YFe(c==null?void 0:c.uid);console.log("getAgentProfile response:",c==null?void 0:c.uid,k.data),k.data.code===200&&h(k.data.data)},[S,C]=p.useState(!1),[T,x]=p.useState(!1),O=p.useCallback(k=>{u(k)},[u]),N=p.useCallback(()=>{localStorage.getItem("skipVerification")!=="true"&&d&&!d.emailVerified&&!d.mobileVerified&&x(!0)},[d]),I=async()=>{if(a){if(d.currentOrganization===void 0||d.currentOrganization===null){console.log("before initOrganization",d),C(!0);return}console.log("after initOrganization"),u(d==null?void 0:d.currentOrganization),w(),N()}};p.useEffect(()=>(I(),()=>{console.log("un - useEffect")}),[a,d]);const M=async()=>{const k=await fNe();console.log("initProfile response:",k.data),k.data.code===200?f(k.data.data):Wt.error(e.formatMessage({id:"dashboard.error.message",defaultMessage:"获取数据失败"}))};p.useEffect(()=>{a&&M()},[a]);const F=async()=>{if(!a||(c==null?void 0:c.uid)===""||!s)return;const k={orgUid:c==null?void 0:c.uid,pageNumber:0,pageSize:20},B=await $Kt(k);console.log("initWorkgroups",B.data),B.data.code===200?g(B.data):console.log("获取工作组失败")};return p.useEffect(()=>{F()},[a,c]),p.useEffect(()=>{const k=P=>{var L,V;if(console.log("handleTransfer:",P),((V=(L=JSON.parse(P).message)==null?void 0:L.user)==null?void 0:V.uid)===(d==null?void 0:d.uid)){Wt.success("转接会话发送成功,请等待对方响应");return}},B=P=>{var V,j,U;console.log("handleTransferAccept:",P);const z=JSON.parse(P),L=JSON.parse((V=z.message)==null?void 0:V.content);m(L==null?void 0:L.thread),Wt.success(`${(U=(j=z.message)==null?void 0:j.user)==null?void 0:U.nickname} 已接受转接会话`)},A=P=>{var L,V;console.log("handleTransferReject:",P);const z=JSON.parse(P);Wt.success(`${(V=(L=z.message)==null?void 0:L.user)==null?void 0:V.nickname} 已拒绝转接会话`)};return vr.on(HF,k),vr.on(UF,B),vr.on(zF,A),()=>{vr.off(HF,k),vr.off(UF,B),vr.off(zF,A)}},[]),H.jsxs(UIe,{collapsed:!0,collapsedButtonRender:!1,layout:"side",style:{height:"100vh"},route:{routes:_},location:{pathname:r},menu:{type:"group",collapsedShowTitle:!0},avatarProps:null,actionsRender:k=>k.isMobile?[]:[H.jsx(BKt,{}),H.jsx(LKt,{})],menuHeaderRender:()=>H.jsx(aNe,{}),menuFooterRender:k=>{k!=null&&k.collapsed},onMenuHeaderClick:k=>{console.log("onMenuHeaderClick",k)},menuItemRender:(k,B)=>H.jsx(H.Fragment,{children:H.jsxs("div",{onClick:()=>{i(k.path),o(k.path),localStorage.setItem(QF,k.path)},children:[v&&H.jsxs(H.Fragment,{children:[k.path==="/chat"&&H.jsx(ml,{size:"small",dot:v,offset:[-5,5],children:B}),k.path!=="/chat"&&B]}),!v&&H.jsx(H.Fragment,{children:B})]})}),children:[H.jsx($3,{children:H.jsx(CD,{},t.locale)}),H.jsx(F3,{style:l}),H.jsx(iXt,{open:S,onClose:()=>C(!1),onSuccess:O}),H.jsx(oXt,{open:T,onClose:()=>x(!1)}),H.jsx("audio",{id:"audioPlay",src:"soundUrl",hidden:!0})]})},sXt=()=>H.jsx(H.Fragment,{children:H.jsx(CD,{})}),lXt=({open:e,onClose:t})=>{const n=Si(),{translateString:r}=kc(),i=()=>{t()},o=()=>{t()};return H.jsx(H.Fragment,{children:H.jsx(Wo,{title:n.formatMessage({id:"profile.password.change.title",defaultMessage:"Change Password"}),forceRender:!0,open:e,footer:null,onCancel:o,children:H.jsxs(Dr,{initialValues:{oldPassword:"",newPassword:"",confirmPassword:""},onFinish:async a=>{if(console.log("changePassword:",a),a.newPassword.trim().length<6){Wt.error(n.formatMessage({id:"profile.password.length.error",defaultMessage:"Password must be at least 6 characters"}));return}if(a.newPassword!==a.confirmPassword){Wt.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 FKt(s);console.log("changePassword response:",l),l.data.code===200?(Wt.success(n.formatMessage({id:"profile.password.change.success",defaultMessage:"Password changed successfully!"})),i()):Wt.error(r(l.data.message))},children:[H.jsx(ci.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"})}),H.jsx(ci.Password,{name:"newPassword",label:n.formatMessage({id:"profile.password.new",defaultMessage:"New Password"})}),H.jsx(ci.Password,{name:"confirmPassword",label:n.formatMessage({id:"profile.password.confirm",defaultMessage:"Confirm Password"})})]})})})},zNe=({children:e,onSuccess:t,onError:n})=>{const r={file:null,file_name:"test.png",file_type:"image/png",is_avatar:"true",kb_type:p6e,category_uid:"",kb_uid:"",client:wr},i={name:"file",accept:"image/*",action:tw(),headers:{Authorization:"Bearer "+localStorage.getItem(Jm)},data:r,showUploadList:!1,beforeUpload(o){console.log("beforeUpload",o);const a=En(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),Wt.success(`${o.file.name} 上传成功`)}else n(o.file),Wt.error(`${o.file.name} 上传失败`);else o.file.status==="error"&&(Wt.error(`${o.file.name} 上传失败`),n(o.file))}};return H.jsx(gD,{...i,children:e})},cXt=({open:e,onSubmit:t,onClose:n})=>{const r=Si(),[i]=Dr.useForm(),{translateString:o}=kc(),{userInfo:a,deviceUid:s}=Oa(S=>({userInfo:S.userInfo,deviceUid:S.deviceUid})),l=$l(S=>S.currentOrg),c=p.useRef(),[u,d]=p.useState(""),[f,h]=p.useState(""),[m,g]=p.useState(!1),v=async(S,C)=>{console.log("captchaUid",S," captchaValue",C),d(S),h(C)},y=async S=>{console.log("captcha check result",S),g(S)},b=()=>{n()},_=()=>{n()},E=async()=>{i.validateFields().then(async S=>{if(console.log("changeEmail:",S),a.email===S.email){Wt.error(r.formatMessage({id:"profile.email.not.changed",defaultMessage:"Email is not changed!"}));return}const C={email:S.email,code:S.code,platform:hu},T=await hNe(C);console.log("changeEmail response:",T),T.data.code===200?(Wt.success(r.formatMessage({id:"profile.email.change.success",defaultMessage:"Email changed successfully!"})),t(S.email),b()):Wt.error(o(T.data.message))})},w=()=>{setTimeout(()=>{var S;console.log("endCaptchaTiming"),(S=c.current)==null||S.endTiming()},2)};return H.jsx(H.Fragment,{children:H.jsx(Wo,{title:r.formatMessage({id:"profile.email.change.title",defaultMessage:"Change Email"}),forceRender:!0,open:e,footer:null,onCancel:_,children:H.jsxs(Dr,{form:i,onFinish:async S=>{console.log("changeEmail:",S),E()},children:[H.jsx(ci,{fieldProps:{size:"large",prefix:H.jsx(w2,{})},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"})}]}),H.jsx(Dr.Item,{name:"captchaCode",children:H.jsx(eE,{onKaptchaChange:v,onKaptchaCheck:y})}),H.jsx(P2,{fieldProps:{size:"large",prefix:H.jsx(T0,{})},captchaProps:{size:"large",disabled:!m},placeholder:r.formatMessage({id:"profile.email.verification.code.placeholder",defaultMessage:"Enter verification code"}),captchaTextRender:(S,C)=>S?`${C} ${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 S=>{if(S){if(a.email===S){Wt.error(r.formatMessage({id:"profile.email.not.changed",defaultMessage:"Email is not changed!"})),w();return}const C={email:S,type:U$e,captchaUid:u,captchaCode:f,deviceUid:s,userUid:a.uid,orgUid:l.uid,platform:hu},T=await EAe(C);if(T.data.code!==200){Wt.error(T.data.message),w();return}Wt.success(T.data.message)}else Wt.error(r.formatMessage({id:"profile.email.format.error",defaultMessage:"Invalid email format"}))}})]})})})},uXt=({open:e,onSubmit:t,onClose:n})=>{const r=Si(),[i]=Dr.useForm(),{translateString:o}=kc(),{userInfo:a,deviceUid:s}=Oa(S=>({userInfo:S.userInfo,deviceUid:S.deviceUid})),l=$l(S=>S.currentOrg),c=p.useRef(),[u,d]=p.useState(""),[f,h]=p.useState(""),[m,g]=p.useState(!1),v=async(S,C)=>{console.log("captchaUid",S," captchaValue",C),d(S),h(C)},y=async S=>{console.log("captcha check result",S),g(S)},b=()=>{n()},_=()=>{n()},E=async()=>{i.validateFields().then(async S=>{if(console.log("changeMobile:",S),a.mobile===S.mobile){Wt.error(r.formatMessage({id:"profile.mobile.not.changed",defaultMessage:"Mobile number is not changed!"}));return}const C={mobile:S.mobile,code:S.code,platform:hu},T=await mNe(C);console.log("changeMobile response:",T),T.data.code===200?(Wt.success(r.formatMessage({id:"profile.mobile.change.success",defaultMessage:"Mobile number changed successfully!"})),t(S.mobile),b()):Wt.error(o(T.data.message))})},w=()=>{setTimeout(()=>{var S;console.log("endCaptchaTiming"),(S=c.current)==null||S.endTiming()},2)};return H.jsx(H.Fragment,{children:H.jsx(Wo,{title:r.formatMessage({id:"profile.mobile.change.title",defaultMessage:"Change Mobile"}),forceRender:!0,open:e,footer:null,onCancel:_,children:H.jsxs(Dr,{form:i,onFinish:async S=>{console.log("changeMobile:",S),E()},children:[H.jsx(ci,{fieldProps:{size:"large",prefix:H.jsx(w2,{})},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"})}]}),H.jsx(Dr.Item,{name:"captchaCode",children:H.jsx(eE,{onKaptchaChange:v,onKaptchaCheck:y})}),H.jsx(P2,{fieldProps:{size:"large",prefix:H.jsx(T0,{})},captchaProps:{size:"large",disabled:!m},placeholder:r.formatMessage({id:"profile.mobile.verification.code.placeholder",defaultMessage:"Enter verification code"}),captchaTextRender:(S,C)=>S?`${C} ${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 S=>{if(S&&S.length===11){if(a.mobile===S){Wt.error(r.formatMessage({id:"profile.mobile.not.changed",defaultMessage:"Mobile number is not changed!"})),w();return}const C={mobile:S,type:j$e,captchaUid:u,captchaCode:f,deviceUid:s,userUid:a.uid,orgUid:l.uid,platform:hu},T=await GK(C);if(T.data.code!==200){Wt.error(T.data.message),w();return}Wt.success(T.data.message)}else Wt.error(r.formatMessage({id:"profile.mobile.format.error",defaultMessage:"Invalid mobile format"}))}})]})})})},dXt={labelCol:{span:8},wrapperCol:{span:8}},zce=()=>{const e=Si(),[t]=Dr.useForm(),{translateString:n}=kc(),{userInfo:r,setUserInfo:i}=Oa(O=>({userInfo:O.userInfo,setUserInfo:O.setUserInfo})),[o,a]=p.useState(""),[s,l]=p.useState(!1),[c,u]=p.useState(!1),[d,f]=p.useState(!1),h=()=>{l(!0)},m=()=>{u(!0)},g=()=>{f(!0)},v=()=>{l(!1)},y=()=>{u(!1)},b=O=>{u(!1),r.email=O,i(r),t.setFieldValue("email",O)},_=()=>{f(!1)},E=O=>{f(!1),r.mobile=O,i(r),t.setFieldValue("mobile",O)},w=O=>{console.log("handleUploadSuccess:",O),a(O)},S=O=>{console.log("handleUploadError:",O)},C=async O=>{const N={...r,...O,avatar:o};console.log(N);const I=await pNe(N);console.log("updateProfile response:",I.data),I.data.code===200?(Wt.success(e.formatMessage({id:"profile.update.success",defaultMessage:"Profile updated successfully"})),i(I.data.data)):Wt.error(I.data.message)},T=O=>Array.isArray(O)?O:O==null?void 0:O.fileList;p.useEffect(()=>{r&&a(r.avatar)},[r]);const x=async()=>{const O=await fNe();console.log("handleRefreshProfile getProfile response:",O.data),O.data.code===200?(i(O.data.data),t.setFieldsValue({uid:O.data.data.uid,username:O.data.data.username,nickname:n(O.data.data.nickname),email:O.data.data.email,mobile:O.data.data.mobile,description:n(O.data.data.description)})):Wt.error(O.data.message)};return p.useEffect(()=>{x()},[]),H.jsxs("div",{className:"profile-container",children:[H.jsxs(Dr,{...dXt,form:t,onFinish:C,children:[H.jsx(ci,{name:"uid",label:"UID",readonly:!0}),H.jsx(Dr.Item,{name:"avatar",valuePropName:"fileList",getValueFromEvent:T,label:e.formatMessage({id:"profile.form.avatar",defaultMessage:"Avatar"}),children:H.jsxs(zNe,{onSuccess:w,onError:S,children:[H.jsx(xh,{src:o}),H.jsx($n,{icon:H.jsx(hY,{}),children:e.formatMessage({id:"profile.form.upload",defaultMessage:"Upload"})})]},"avatar")}),H.jsx(ci,{name:"username",label:e.formatMessage({id:"profile.form.username",defaultMessage:"Username"}),rules:[{required:!0}]}),H.jsx($n,{onClick:h,children:e.formatMessage({id:"profile.button.change.password",defaultMessage:"Change Password"})}),H.jsx(ci,{name:"nickname",label:e.formatMessage({id:"profile.form.nickname",defaultMessage:"Nickname"}),rules:[{required:!0}]}),H.jsx(ci,{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}),H.jsx($n,{onClick:m,children:e.formatMessage({id:"profile.button.change.email",defaultMessage:"Change Email"})}),H.jsx(ci,{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}),H.jsx($n,{onClick:g,children:e.formatMessage({id:"profile.button.change.mobile",defaultMessage:"Change Mobile"})}),H.jsx(XS,{name:"description",label:e.formatMessage({id:"profile.form.description",defaultMessage:"Description"})})]}),s&&H.jsx(lXt,{open:s,onClose:v}),c&&H.jsx(cXt,{open:c,onSubmit:b,onClose:y}),d&&H.jsx(uXt,{open:d,onSubmit:E,onClose:_})]})},fXt=()=>{const e=Si(),t=f3(),{isMqttConnected:n}=yQ(),[r,i]=p.useState(!0),[o,a]=p.useState(!0),[s,l]=p.useState(!1),c=S=>{console.log("radio checked",S.target.value),l(S.target.value),Ha?window.electronAPI.setOpenAtLogin(S.target.value):console.log("not electron")},u=async()=>{if(Ha){const S=await window.electronAPI.getOpenAtLogin();console.log("openAtLogin:",S),l(S)}};p.useEffect(()=>{u(),Y_t(),N2e(),console.log("isNetworkOnline:",t);const S=localStorage.getItem(oA);S===null?(localStorage.setItem(oA,"true"),i(!0)):i(S==="true");const C=localStorage.getItem(JC);C===null?(localStorage.setItem(JC,"true"),a(!0)):a(C==="true")},[]);const{themeMode:d,setThemeMode:f,mode:h,changeMode:m,locale:g,changeLocale:v}=p.useContext(as),y=S=>{console.log("radio checked",S.target.value),f(S.target.value),X_t(S.target.value)},b=S=>{console.log("language change",S.target.value),v(S.target.value)},_=S=>{console.log("play audio switch",S),localStorage.setItem(oA,S?"true":"false"),i(S)},E=S=>{console.log("show network status notification",S),localStorage.setItem(JC,S?"true":"false"),a(S)},w=S=>{console.log("mode change",S.target.value),m(S.target.value)};return H.jsxs("div",{className:"profile-container",children:[H.jsx("p",{children:H.jsx(nk,{checkedChildren:e.formatMessage({id:"setting.basic.sound.on",defaultMessage:"已开启消息提示音"}),unCheckedChildren:e.formatMessage({id:"setting.basic.sound.off",defaultMessage:"已关闭消息提示音"}),value:r,onChange:_})}),H.jsx("p",{children:H.jsx(nk,{checkedChildren:e.formatMessage({id:"setting.basic.notification.on",defaultMessage:"已开启网络状态通知"}),unCheckedChildren:e.formatMessage({id:"setting.basic.notification.off",defaultMessage:"已关闭网络状态通知"}),value:o,onChange:E})}),ud&&H.jsxs(H.Fragment,{children:[H.jsx("p",{children:e.formatMessage({id:"setting.basic.connection.status",defaultMessage:"长链接状态:"})}),H.jsx("div",{children:n?e.formatMessage({id:"setting.basic.connection.connected",defaultMessage:"✅连接正常"}):e.formatMessage({id:"setting.basic.connection.disconnected",defaultMessage:"❌连接断开"})})]}),Ha&&H.jsxs(H.Fragment,{children:[H.jsx("p",{children:e.formatMessage({id:"setting.basic.startup",defaultMessage:"开机启动:"})}),H.jsxs(qi.Group,{onChange:c,value:s,children:[H.jsx(qi,{value:!0,children:e.formatMessage({id:"setting.basic.startup.on",defaultMessage:"开机启动"})}),H.jsx(qi,{value:!1,children:e.formatMessage({id:"setting.basic.startup.off",defaultMessage:"不开机启动"})})]})]}),H.jsx("p",{children:e.formatMessage({id:"setting.basic.theme",defaultMessage:"颜色主题:"})}),H.jsxs(qi.Group,{onChange:y,value:d,children:[H.jsx(qi,{value:"light",children:H.jsx(ad,{id:"theme.light"})}),H.jsx(qi,{value:"dark",children:H.jsx(ad,{id:"theme.dark"})}),H.jsx(qi,{value:"system",children:H.jsx(ad,{id:"theme.system"})})]}),H.jsxs("div",{children:[H.jsx("p",{children:e.formatMessage({id:"setting.basic.language",defaultMessage:"语言设置:"})}),H.jsxs(qi.Group,{value:g.locale,onChange:b,children:[H.jsx(qi,{value:"en",children:e.formatMessage({id:"i18n.lang.en-US"})},"en"),H.jsx(qi,{value:"zh-cn",children:e.formatMessage({id:"i18n.lang.zh-CN"})},"zh-cn"),H.jsx(qi,{value:"zh-tw",children:e.formatMessage({id:"i18n.lang.zh-TW"})},"zh-tw")]})]}),ud&&H.jsxs("div",{children:[H.jsx("p",{children:e.formatMessage({id:"setting.basic.mode",defaultMessage:"模式设置:"})}),H.jsxs(qi.Group,{value:h,onChange:w,children:[H.jsx(qi,{value:vy,children:e.formatMessage({id:"setting.basic.mode.team",defaultMessage:"团队模式"})},vy),H.jsx(qi,{value:kv,children:e.formatMessage({id:"setting.basic.mode.agent",defaultMessage:"客服模式"})},kv),H.jsx(qi,{value:ZN,children:e.formatMessage({id:"setting.basic.mode.personal",defaultMessage:"个人模式"})},ZN)]})]})]})},pXt=()=>{const e=Oa(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 H.jsxs("div",{id:"myqrcode",style:{textAlign:"center",marginTop:"50px"},children:[H.jsx(Fxe,{style:{margin:"auto"},errorLevel:"H",value:"https://www.weiyuai.cn/",icon:"/agent/logo.png"}),H.jsx($n,{type:"primary",onClick:t,style:{marginTop:"20px"},children:"下载二维码"})]})},hXt=()=>H.jsx(H.Fragment,{children:H.jsx("div",{children:"ShortcutAdmin"})}),mXt=()=>{const e=Aa();return H.jsx(x2,{status:"404",title:"404",subTitle:"Sorry, the page you visited does not exist.",extra:H.jsx($n,{type:"primary",onClick:()=>e("/"),children:"返回主页"})})},gXt={labelCol:{span:8},wrapperCol:{span:8}},vXt=()=>{const e=Si(),[t]=Dr.useForm(),{userInfo:n,setUserInfo:r}=Oa(u=>({userInfo:u.userInfo,setUserInfo:u.setUserInfo})),[i,o]=p.useState(""),a={file:null,file_name:"test.png",file_type:"image/png"},s={name:"file",action:tw(),headers:{Authorization:"Bearer "+localStorage.getItem(Jm)},showUploadList:!1,data:a,beforeUpload(u){const d=En(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),Wt.success(`${u.file.name} file uploaded successfully`)}else u.file.status==="error"&&Wt.error(`${u.file.name} file upload failed.`)}},l=async u=>{const d={...n,...u,avatar:i};console.log(d);const f=await pNe(d);console.log("updateProfile response:",f),f.data.code===200?(Wt.success("修改成功"),r(f.data.data)):Wt.error("修改失败")},c=u=>Array.isArray(u)?u:u==null?void 0:u.fileList;return p.useEffect(()=>{n&&o(n.avatar)},[n]),H.jsxs("div",{className:"profile-container",children:[H.jsx("p",{children:"员工信息"}),H.jsxs(Dr,{...gXt,style:{marginLeft:20},form:t,onFinish:l,initialValues:{nickname:n.nickname,email:n.email,mobile:n.mobile,description:n.description},children:[H.jsx(li.Item,{name:"avatar",valuePropName:"fileList",getValueFromEvent:c,label:e.formatMessage({id:"pages.robot.tab.avatar",defaultMessage:"Avatar"}),children:H.jsxs(gD,{...s,children:[H.jsx(xh,{src:i}),H.jsx($n,{icon:H.jsx(hY,{}),children:e.formatMessage({id:"pages.robot.upload",defaultMessage:"Upload"})})]},"avatar")}),H.jsx(ci,{name:"nickname",label:"昵称",rules:[{required:!0}],children:H.jsx(Ki,{})}),H.jsx(ci,{name:"email",label:"邮箱",rules:[{type:"email"}],disabled:!0,children:H.jsx(Ki,{})}),H.jsx(ci,{name:"mobile",label:"手机号",disabled:!0,children:H.jsx(Ki,{})}),H.jsx(XS,{name:"description",label:"描述",children:H.jsx(Ki.TextArea,{})})]})]})},bXt=({open:e,onSubmit:t,onClose:n})=>{const r=Si(),[i]=Dr.useForm(),{translateString:o}=kc(),{userInfo:a,deviceUid:s}=Oa(S=>({userInfo:S.userInfo,deviceUid:S.deviceUid})),l=$l(S=>S.currentOrg),c=p.useRef(),[u,d]=p.useState(""),[f,h]=p.useState(""),[m,g]=p.useState(!1);p.useEffect(()=>{e?i.setFieldsValue({email:a==null?void 0:a.email}):(i.resetFields(),w())},[e]);const v=async(S,C)=>{console.log("captchaUid",S," captchaValue",C),d(S),h(C)},y=async S=>{console.log("captcha check result",S),g(S)},b=()=>{n()},_=()=>{n()},E=async()=>{i.validateFields().then(async S=>{console.log("changeEmail:",S);const C={email:S.email,code:S.code,platform:hu},T=await hNe(C);console.log("changeEmail response:",T),T.data.code===200?(Wt.success("Email verify successfully!"),t(S.email),b()):Wt.error(o(T.data.message))})},w=()=>{setTimeout(()=>{var S;console.log("endCaptchaTiming"),(S=c.current)==null||S.endTiming()},2)};return H.jsx(H.Fragment,{children:H.jsx(Wo,{title:r.formatMessage({id:"pages.settings.verify.email",defaultMessage:"验证邮箱"}),forceRender:!0,open:e,footer:null,onCancel:_,children:H.jsxs(Dr,{form:i,onFinish:async S=>{console.log("changeEmail:",S),E()},children:[H.jsx(ci,{fieldProps:{size:"large",prefix:H.jsx(w2,{})},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}),H.jsx(Dr.Item,{name:"captchaCode",rules:[],children:H.jsx(eE,{onKaptchaChange:v,onKaptchaCheck:y})}),H.jsx(P2,{fieldProps:{size:"large",prefix:H.jsx(T0,{}),allowClear:!0},captchaProps:{size:"large",disabled:!m},placeholder:r.formatMessage({id:"pages.login.captcha.placeholder",defaultMessage:"请输入验证码"}),captchaTextRender:(S,C)=>S?`${C} ${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 S=>{if(console.log("email:",S),S){const C={email:S,type:z$e,captchaUid:u,captchaCode:f,deviceUid:s,userUid:a==null?void 0:a.uid,orgUid:l.uid,platform:hu},T=await EAe(C);if(console.log("sendEmailCode",T),T.data.code!==200){Wt.error(o(T.data.message)),w();return}Wt.success(o(T.data.message))}else Wt.error("手机号格式错误")}})]})})})},yXt=({open:e,onSubmit:t,onClose:n})=>{const r=Si(),[i]=Dr.useForm(),{translateString:o}=kc(),{userInfo:a,deviceUid:s}=Oa(S=>({userInfo:S.userInfo,deviceUid:S.deviceUid})),l=$l(S=>S.currentOrg),c=p.useRef(),[u,d]=p.useState(""),[f,h]=p.useState(""),[m,g]=p.useState(!1);p.useEffect(()=>{e?i.setFieldsValue({mobile:a==null?void 0:a.mobile}):(i.resetFields(),w())},[e]);const v=async(S,C)=>{console.log("captchaUid",S," captchaValue",C),d(S),h(C)},y=async S=>{console.log("captcha check result",S),g(S)},b=()=>{n()},_=()=>{n()},E=async()=>{i.validateFields().then(async S=>{console.log("changeMobile:",S);const C={mobile:S.mobile,code:S.code,platform:hu},T=await mNe(C);console.log("changeMobile response:",T),T.data.code===200?(Wt.success("Mobile verify successfully!"),t(S.mobile),b()):Wt.error(o(T.data.message))})},w=()=>{setTimeout(()=>{var S;console.log("endCaptchaTiming"),(S=c.current)==null||S.endTiming()},2)};return H.jsx(H.Fragment,{children:H.jsx(Wo,{title:r.formatMessage({id:"pages.settings.verify.mobile",defaultMessage:"验证手机号"}),forceRender:!0,open:e,footer:null,onCancel:_,children:H.jsxs(Dr,{form:i,onFinish:async S=>{console.log("changeMobile:",S),E()},children:[H.jsx(ci,{fieldProps:{size:"large",prefix:H.jsx(w2,{})},name:"mobile",placeholder:r.formatMessage({id:"pages.login.phoneNumber.placeholder",defaultMessage:"手机号"}),rules:[{required:!0},{pattern:/^1\d{10}$/}],readonly:!0}),H.jsx(Dr.Item,{name:"captchaCode",rules:[],children:H.jsx(eE,{onKaptchaChange:v,onKaptchaCheck:y})}),H.jsx(P2,{fieldProps:{size:"large",prefix:H.jsx(T0,{}),allowClear:!0},captchaProps:{size:"large",disabled:!m},placeholder:r.formatMessage({id:"pages.login.captcha.placeholder",defaultMessage:"请输入验证码"}),captchaTextRender:(S,C)=>S?`${C} ${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 S=>{if(console.log("mobile:",S),S&&S.length===11){const C={mobile:S,type:H$e,captchaUid:u,captchaCode:f,deviceUid:s,userUid:a==null?void 0:a.uid,orgUid:l.uid,platform:hu},T=await GK(C);if(console.log("sendMobileCode",T),T.data.code!==200){Wt.error(o(T.data.message)),w();return}Wt.success(o(T.data.message))}else Wt.error("手机号格式错误")}})]})})})},_Xt=()=>{const e=Si(),t=Aa(),[n]=Dr.useForm(),{userInfo:r,setUserInfo:i}=Oa(y=>({userInfo:y.userInfo,setUserInfo:y.setUserInfo})),[o,a]=p.useState(!1),[s,l]=p.useState(!1),c=()=>{a(!0)},u=()=>{l(!0)},d=()=>{a(!1)},f=y=>{a(!1),r.email=y,r.emailVerified=!0,i(r),n.setFieldValue("email",y)},h=()=>{l(!1)},m=y=>{l(!1),r.mobile=y,r.mobileVerified=!0,i(r),n.setFieldValue("mobile",y)};p.useEffect(()=>{n.setFieldsValue({uid:r.uid,username:r.username,nickname:r.nickname,email:r.email,mobile:r.mobile})},[]);const g=()=>{t("/setting/profile")},v=()=>{t("/setting/profile")};return H.jsxs("div",{children:[H.jsxs(Dr,{form:n,submitter:!1,children:[H.jsx(ci,{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&&H.jsx($n,{onClick:c,children:e.formatMessage({id:"pages.settings.verify.email",defaultMessage:"验证邮箱"})}),H.jsx($n,{type:"link",onClick:g,children:"重置邮箱"}),H.jsx(ci,{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&&H.jsx($n,{onClick:u,children:e.formatMessage({id:"pages.settings.verify.mobile",defaultMessage:"验证手机号"})}),H.jsx($n,{type:"link",onClick:v,children:"重置手机号"})]}),o&&H.jsx(bXt,{open:o,onSubmit:f,onClose:d}),s&&H.jsx(yXt,{open:s,onSubmit:m,onClose:h})]})},SXt=e=>{console.log(e)},EXt=[{key:"personal",label:"个人认证",children:H.jsx(_Xt,{})}],CXt=()=>H.jsx("div",{className:"profile-container",children:H.jsx(TS,{defaultActiveKey:"personal",items:EXt,onChange:SXt})}),wXt=()=>{const[e]=Dr.useForm(),t=Si(),{translateString:n}=kc(),{agentInfo:r,setAgentInfo:i}=b0(d=>({agentInfo:d.agentInfo,setAgentInfo:d.setAgentInfo})),[o,a]=p.useState("");p.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),Wt.error(d)},c=async d=>{var m,g,v,y,b,_,E,w,S,C,T,x,O,N;console.log("onFinish:",d),Wt.loading(t.formatMessage({id:"updating"}));const f={...r,...d,avatar:o,serviceSettings:{...r.serviceSettings,quickFaqUids:(g=(m=r==null?void 0:r.serviceSettings)==null?void 0:m.quickFaqs)==null?void 0:g.map(I=>I.uid),faqUids:(y=(v=r==null?void 0:r.serviceSettings)==null?void 0:v.faqs)==null?void 0:y.map(I=>I.uid),guessFaqUids:(_=(b=r==null?void 0:r.serviceSettings)==null?void 0:b.guessFaqs)==null?void 0:_.map(I=>I.uid),hotFaqUids:(w=(E=r==null?void 0:r.serviceSettings)==null?void 0:E.hotFaqs)==null?void 0:w.map(I=>I.uid),shortcutFaqUids:(C=(S=r==null?void 0:r.serviceSettings)==null?void 0:S.shortcutFaqs)==null?void 0:C.map(I=>I.uid)},robotSettings:{...r.robotSettings,robotUid:(x=(T=r==null?void 0:r.robotSettings)==null?void 0:T.robot)==null?void 0:x.uid},leaveMsgSettings:{...r.leaveMsgSettings,worktimeUids:(N=(O=r==null?void 0:r.leaveMsgSettings)==null?void 0:O.worktimes)==null?void 0:N.map(I=>I.uid)},autoReplySettings:{...r.autoReplySettings}};console.log("agentObject:",f);const h=await KFe(f);console.log("updateAgent response:",h),h.data.code===200?(Wt.destroy(),Wt.success(t.formatMessage({id:"update.success"})),i(h.data.data)):(Wt.destroy(),Wt.error(h.data.message))},u=d=>Array.isArray(d)?d:d==null?void 0:d.fileList;return p.useEffect(()=>{var d;r&&(a(r.avatar),e.setFieldsValue({member:(d=r==null?void 0:r.member)==null?void 0:d.nickname}))},[r]),H.jsx(H.Fragment,{children:H.jsxs(Dr,{form:e,style:{marginLeft:"20px"},onFinish:c,children:[H.jsx(Dr.Item,{name:"avatar",valuePropName:"fileList",getValueFromEvent:u,label:t.formatMessage({id:"pages.robot.tab.avatar",defaultMessage:"Avatar"}),children:H.jsxs(zNe,{onSuccess:s,onError:l,children:[H.jsx(xh,{src:o}),H.jsx($n,{icon:H.jsx(hY,{}),children:t.formatMessage({id:"pages.robot.upload",defaultMessage:"Upload"})})]},"avatar")}),H.jsx(ci,{width:"md",name:"nickname",label:"客服卡片-展示客服昵称",rules:[{required:!0,message:"请输入客服昵称"}]}),H.jsx(ci,{width:"md",name:"email",label:"客服卡片-展示邮箱",rules:[{required:!0,message:"请输入邮箱"}]}),H.jsx(ci,{width:"md",name:"mobile",label:"客服卡片-展示手机号",rules:[{required:!0,message:"请输入手机号"}]}),H.jsx(XS,{width:"md",name:"description",label:"客服卡片-展示描述",rules:[{required:!0,message:"请输入描述"}]})]})})},TXt=()=>{const e=Si(),[t,n]=p.useState([]),r=[{key:"basic",label:e.formatMessage({id:"pages.agent.tab.basic",defaultMessage:"Basic"}),children:H.jsx(wXt,{})}];return p.useEffect(()=>{n(r)},[]),H.jsx(H.Fragment,{children:H.jsx(TS,{style:{marginLeft:20},defaultActiveKey:"basic",items:t})})},xXt=()=>{const e=Si(),{isLoggedIn:t,mode:n}=p.useContext(as),{doLogout:r}=uNe(),[i,o]=p.useState("✅"),[a,s]=p.useState(e.formatMessage({id:"footbar.network.normal",defaultMessage:"网络正常"})),l=f3();p.useEffect(()=>{l?(o("✅"),s(e.formatMessage({id:"footbar.network.normal",defaultMessage:"网络正常"}))):(o("❌"),s(e.formatMessage({id:"footbar.network.disconnected",defaultMessage:"网络断开"})))},[l,e]);const c=H.jsx("div",{children:H.jsx("p",{children:e.formatMessage({id:"footbar.anonymous.tip",defaultMessage:"匿名状态,仅支持同一个局域网内在线设备之间通信"})})}),u=H.jsx("div",{children:H.jsx("p",{children:e.formatMessage({id:"footbar.login.tip",defaultMessage:"登录后,支持离线消息和更多功能"})})}),[d,f]=p.useState(!1),h=()=>{f(!0)},m=()=>{f(!1)},g=()=>{console.log("handleShowLoginModel"),h()},v=b=>{console.log(b),r()},y=b=>{console.log(b)};return H.jsxs(H.Fragment,{children:[H.jsx(Wo,{open:d&&!t,onOk:m,onCancel:m,footer:[H.jsx($n,{onClick:m,children:e.formatMessage({id:"footbar.login.skip",defaultMessage:"暂不登录"})},"back")],children:H.jsx(iz,{isModel:!0})}),H.jsxs("span",{children:[!t&&H.jsxs(H.Fragment,{children:[H.jsx(bu,{content:c,title:e.formatMessage({id:"footbar.anonymous.status",defaultMessage:"匿名状态"}),children:H.jsx("span",{className:"footerLeftButton",children:e.formatMessage({id:"footbar.anonymous.status",defaultMessage:"匿名状态"})})}),H.jsx(bu,{content:u,children:H.jsx("span",{className:"footerLeftButton",onClick:g,children:e.formatMessage({id:"footbar.login",defaultMessage:"登录"})})})]}),t&&H.jsx(H.Fragment,{children:H.jsx(aD,{title:e.formatMessage({id:"footbar.logout.title",defaultMessage:"退出登录"}),description:e.formatMessage({id:"footbar.logout.confirm",defaultMessage:"确定要退出登录?"}),onConfirm:v,onCancel:y,okText:e.formatMessage({id:"common.confirm",defaultMessage:"确定"}),cancelText:e.formatMessage({id:"common.cancel",defaultMessage:"取消"}),children:H.jsx("span",{className:"footerLeftButton",children:e.formatMessage({id:"footbar.logout",defaultMessage:"退出登录"})})})}),n===kv&&ud&&H.jsx("span",{style:{marginLeft:10},children:H.jsx(Ia,{title:e.formatMessage({id:"footbar.serving.count",defaultMessage:"当前接待人数"}),children:H.jsx("span",{children:e.formatMessage({id:"footbar.serving.text",defaultMessage:"当前接待人数:0"})})})})]}),H.jsxs("span",{className:"footerRightButton",children:[H.jsx(Ia,{title:a,children:H.jsx("span",{children:i})}),H.jsxs("span",{style:{marginLeft:"10px"},onClick:()=>FT(Q$e),children:["v",ZVe()]}),H.jsx("span",{style:{marginLeft:"10px"},onClick:()=>FT("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"})})]})]})},{Sider:OXt,Content:RXt}=uo,Cz=()=>{const{leftSiderStyle:e,leftSiderWidth:t,headerStyle:n,contentStyle:r}=iO();return H.jsx(H.Fragment,{children:H.jsxs(uo,{children:[H.jsx(OXt,{style:e,width:t,children:H.jsx(QM,{style:n,children:"home"})}),H.jsxs(uo,{children:[H.jsx(QM,{style:n,children:"home"}),H.jsx(RXt,{style:r,children:"home"})]})]})})},IXt=()=>{console.log("useMulticast");const e=()=>setInterval(()=>{},5e3);p.useEffect(()=>{console.log("useMulticast useEffect");const t=e();return()=>{console.log("un - useEffect"),clearInterval(t)}},[])};class AXt{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 NXt(t).buffer}}function NXt(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 VNe(e){return new MXt(e).unpack()}function GNe(e){const t=new kXt,n=t.pack(e);return n instanceof Promise?n.then(()=>t.getBuffer()):t.getBuffer()}class MXt{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 kXt{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 AXt,this._textEncoder=new TextEncoder}}let WNe=!0,qNe=!0;function tN(e,t,n){const r=e.match(t);return r&&r.length>=n&&parseInt(r[n],10)}function k0(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 PXt(e){return typeof e!="boolean"?new Error("Argument type: "+typeof e+". Please use a boolean."):(WNe=e,e?"adapter.js logging disabled":"adapter.js logging enabled")}function DXt(e){return typeof e!="boolean"?new Error("Argument type: "+typeof e+". Please use a boolean."):(qNe=!e,"adapter.js deprecation warnings "+(e?"disabled":"enabled"))}function YNe(){if(typeof window=="object"){if(WNe)return;typeof console<"u"&&typeof console.log=="function"&&console.log.apply(console,arguments)}}function TQ(e,t){qNe&&console.warn(e+" is deprecated, please use "+t+" instead.")}function LXt(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=tN(n.userAgent,/Firefox\/(\d+)\./,1);else if(n.webkitGetUserMedia||e.isSecureContext===!1&&e.webkitRTCPeerConnection)t.browser="chrome",t.version=tN(n.userAgent,/Chrom(e|ium)\/(\d+)\./,2);else if(e.RTCPeerConnection&&n.userAgent.match(/AppleWebKit\/(\d+)\./))t.browser="safari",t.version=tN(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 Vce(e){return Object.prototype.toString.call(e)==="[object Object]"}function KNe(e){return Vce(e)?Object.keys(e).reduce(function(t,n){const r=Vce(e[n]),i=r?KNe(e[n]):e[n],o=r&&!Object.keys(i).length;return i===void 0||o?t:Object.assign(t,{[n]:i})},{}):e}function wz(e,t,n){!t||n.has(t.id)||(n.set(t.id,t),Object.keys(t).forEach(r=>{r.endsWith("Id")?wz(e,e.get(t[r]),n):r.endsWith("Ids")&&t[r].forEach(i=>{wz(e,e.get(i),n)})}))}function Gce(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&&wz(e,s,i)})}),i}const Wce=YNe;function QNe(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(f,h){return f?f+h.charAt(0).toUpperCase()+h.slice(1):h==="deviceId"?"sourceId":h};if(u.ideal!==void 0){l.optional=l.optional||[];let f={};typeof u.ideal=="number"?(f[d("min",c)]=u.ideal,l.optional.push(f),f={},f[d("max",c)]=u.ideal,l.optional.push(f)):(f[d("",c)]=u.ideal,l.optional.push(f))}u.exact!==void 0&&typeof u.exact!="number"?(l.mandatory=l.mandatory||{},l.mandatory[d("",c)]=u.exact):["min","max"].forEach(f=>{u[f]!==void 0&&(l.mandatory=l.mandatory||{},l.mandatory[d(f,c)]=u[f])})}),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,f){d in u&&!(f in u)&&(u[f]=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(f=>{f=f.filter(m=>m.kind==="videoinput");let h=f.find(m=>d.some(g=>m.label.toLowerCase().includes(g)));return!h&&f.length&&d.includes("back")&&(h=f[f.length-1]),h&&(s.video.deviceId=c.exact?{exact:h.deviceId}:{ideal:h.deviceId}),s.video=r(s.video),Wce("chrome: "+JSON.stringify(s)),l(s)})}s.video=r(s.video)}return Wce("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 XNe(e){e.MediaStream=e.MediaStream||e.webkitMediaStream}function ZNe(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 k0(e,"track",t=>(t.transceiver||Object.defineProperty(t,"transceiver",{value:{receiver:t.receiver}}),t))}function JNe(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 eMe(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=>Gce(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}),k0(e,"track",r=>(r.receiver._pc=r.srcElement,r)),e.RTCRtpReceiver.prototype.getStats=function(){const i=this;return this._pc.getStats().then(o=>Gce(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 tMe(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 nMe(e,t){if(!e.RTCPeerConnection)return;if(e.RTCPeerConnection.prototype.addTrack&&t.version>=65)return tMe(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(h=>h.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 f=[].slice.call(arguments,1);if(f.length!==1||!f[0].getTracks().find(g=>g===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(g=>g.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 g=new e.MediaStream([u]);this._streams[d.id]=g,this._reverseStreams[g.id]=d,this.addStream(g)}return this.getSenders().find(g=>g.track===u)};function o(c,u){let d=u.sdp;return Object.keys(c._reverseStreams||[]).forEach(f=>{const h=c._reverseStreams[f],m=c._streams[h.id];d=d.replace(new RegExp(m.id,"g"),h.id)}),new RTCSessionDescription({type:u.type,sdp:d})}function a(c,u){let d=u.sdp;return Object.keys(c._reverseStreams||[]).forEach(f=>{const h=c._reverseStreams[f],m=c._streams[h.id];d=d.replace(new RegExp(h.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 f=arguments;return arguments.length&&typeof arguments[0]=="function"?u.apply(this,[m=>{const g=o(this,m);f[0].apply(null,[g])},m=>{f[1]&&f[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 f;Object.keys(this._streams).forEach(h=>{this._streams[h].getTracks().find(g=>u.track===g)&&(f=this._streams[h])}),f&&(f.getTracks().length===1?this.removeStream(this._reverseStreams[f.id]):f.removeTrack(u.track),this.dispatchEvent(new Event("negotiationneeded")))}}function Tz(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 rMe(e,t){k0(e,"negotiationneeded",n=>{const r=n.target;if(!((t.version<72||r.getConfiguration&&r.getConfiguration().sdpSemantics==="plan-b")&&r.signalingState!=="stable"))return n})}const qce=Object.freeze(Object.defineProperty({__proto__:null,fixNegotiationNeeded:rMe,shimAddTrackRemoveTrack:nMe,shimAddTrackRemoveTrackWithNative:tMe,shimGetSendersWithDtmf:JNe,shimGetUserMedia:QNe,shimMediaStream:XNe,shimOnTrack:ZNe,shimPeerConnection:Tz,shimSenderReceiverGetStats:eMe},Symbol.toStringTag,{value:"Module"}));function iMe(e,t){const n=e&&e.navigator,r=e&&e.MediaStreamTrack;if(n.getUserMedia=function(i,o,a){TQ("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 $Xt(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 oMe(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 xz(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 aMe(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 sMe(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}),k0(e,"track",n=>(n.receiver._pc=n.srcElement,n)),e.RTCRtpReceiver.prototype.getStats=function(){return this._pc.getStats(this.track)}}function lMe(e){!e.RTCPeerConnection||"removeStream"in e.RTCPeerConnection.prototype||(e.RTCPeerConnection.prototype.removeStream=function(n){TQ("removeStream","removeTrack"),this.getSenders().forEach(r=>{r.track&&n.getTracks().includes(r.track)&&this.removeTrack(r)})})}function cMe(e){e.DataChannel&&!e.RTCDataChannel&&(e.RTCDataChannel=e.DataChannel)}function uMe(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 dMe(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 fMe(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 pMe(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 Yce=Object.freeze(Object.defineProperty({__proto__:null,shimAddTransceiver:uMe,shimCreateAnswer:pMe,shimCreateOffer:fMe,shimGetDisplayMedia:$Xt,shimGetParameters:dMe,shimGetUserMedia:iMe,shimOnTrack:oMe,shimPeerConnection:xz,shimRTCDataChannel:cMe,shimReceiverGetStats:sMe,shimRemoveStream:lMe,shimSenderGetStats:aMe},Symbol.toStringTag,{value:"Module"}));function hMe(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 mMe(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 gMe(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],f=n.apply(this,[d]);return u?(f.then(c,u),Promise.resolve()):f},t.createAnswer=function(c,u){const d=arguments.length>=2?arguments[2]:arguments[0],f=r.apply(this,[d]);return u?(f.then(c,u),Promise.resolve()):f};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 vMe(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(bMe(i))}!t.getUserMedia&&t.mediaDevices&&t.mediaDevices.getUserMedia&&(t.getUserMedia=(function(r,i,o){t.mediaDevices.getUserMedia(r).then(i,o)}).bind(t))}function bMe(e){return e&&e.video!==void 0?Object.assign({},e,{video:KNe(e.video)}):e}function yMe(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?(TQ("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 _Me(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 SMe(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 EMe(e){typeof e!="object"||e.AudioContext||(e.AudioContext=e.webkitAudioContext)}const Kce=Object.freeze(Object.defineProperty({__proto__:null,shimAudioContext:EMe,shimCallbacksAPI:gMe,shimConstraints:bMe,shimCreateOfferLegacy:SMe,shimGetUserMedia:vMe,shimLocalStreamsAPI:hMe,shimRTCIceServerUrls:yMe,shimRemoteStreamsAPI:mMe,shimTrackEventTransceiver:_Me},Symbol.toStringTag,{value:"Module"}));var CMe={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(f=>t.parseSsrcMedia(f)).filter(f=>f.attribute==="cname"),l=s.length>0&&s[0].ssrc;let c;const u=t.matchPrefix(n,"a=ssrc-group:FID").map(f=>f.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(f=>{if(f.name.toUpperCase()==="RTX"&&f.parameters.apt){let h={ssrc:l,codecPayloadType:parseInt(f.parameters.apt,10)};l&&c&&(h.rtx={ssrc:c}),r.push(h),o&&(h=JSON.parse(JSON.stringify(h)),h.fec={ssrc:l,mechanism:a?"red+ulpfec":"red"},r.push(h))}}),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(f=>{f.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})(CMe);var wMe=CMe.exports;const Iy=di(wMe),FXt=$4({__proto__:null,default:Iy},[wMe]);function nN(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=Iy.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,k0(e,"icecandidate",n=>(n.candidate&&Object.defineProperty(n,"candidate",{value:new e.RTCIceCandidate(n.candidate),writable:"false"}),n))}function Oz(e){!e.RTCIceCandidate||e.RTCIceCandidate&&"relayProtocol"in e.RTCIceCandidate.prototype||k0(e,"icecandidate",t=>{if(t.candidate){const n=Iy.parseCandidate(t.candidate.candidate);n.type==="relay"&&(t.candidate.relayProtocol={0:"tls",1:"tcp",2:"udp"}[n.priority>>24])}return t})}function rN(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=Iy.splitSections(s.sdp);return l.shift(),l.some(c=>{const u=Iy.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=Iy.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 f={};Object.defineProperty(f,"maxMessageSize",{get(){return d}}),this._sctp=f}return a.apply(this,arguments)}}function iN(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},k0(e,"datachannel",r=>(t(r.channel,r.target),r))}function Rz(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 Iz(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 oN(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 aN(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 BXt=Object.freeze(Object.defineProperty({__proto__:null,removeExtmapAllowMixed:Iz,shimAddIceCandidateNullOrEmpty:oN,shimConnectionState:Rz,shimMaxMessageSize:rN,shimParameterlessSetLocalDescription:aN,shimRTCIceCandidate:nN,shimRTCIceCandidateRelayProtocol:Oz,shimSendThrowTypeError:iN},Symbol.toStringTag,{value:"Module"}));function jXt({window:e}={},t={shimChrome:!0,shimFirefox:!0,shimSafari:!0}){const n=YNe,r=LXt(e),i={browserDetails:r,commonShim:BXt,extractVersion:tN,disableLog:PXt,disableWarnings:DXt,sdp:FXt};switch(r.browser){case"chrome":if(!qce||!Tz||!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=qce,oN(e,r),aN(e),QNe(e,r),XNe(e),Tz(e,r),ZNe(e),nMe(e,r),JNe(e),eMe(e),rMe(e,r),nN(e),Oz(e),Rz(e),rN(e,r),iN(e),Iz(e,r);break;case"firefox":if(!Yce||!xz||!t.shimFirefox)return n("Firefox shim is not included in this adapter release."),i;n("adapter.js shimming firefox."),i.browserShim=Yce,oN(e,r),aN(e),iMe(e,r),xz(e,r),oMe(e),lMe(e),aMe(e),sMe(e),cMe(e),uMe(e),dMe(e),fMe(e),pMe(e),nN(e),Rz(e),rN(e,r),iN(e);break;case"safari":if(!Kce||!t.shimSafari)return n("Safari shim is not included in this adapter release."),i;n("adapter.js shimming safari."),i.browserShim=Kce,oN(e,r),aN(e),yMe(e),SMe(e),gMe(e),hMe(e),mMe(e),_Me(e),vMe(e),EMe(e),nN(e),Oz(e),rN(e,r),iN(e),Iz(e,r);break;default:n("Unsupported browser!");break}return i}const Qce=jXt({window:typeof window>"u"?void 0:window});function P0(e,t,n,r){Object.defineProperty(e,t,{get:n,set:r,enumerable:!0,configurable:!0})}class TMe{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 HXt(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 n6=Qce.default||Qce,ZE=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 n6.browserDetails.browser}getVersion(){return n6.browserDetails.version||0}isUnifiedPlanSupported(){const e=this.getBrowser(),t=n6.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}},UXt=e=>!e||/^[A-Za-z0-9]+(?:[ _-][A-Za-z0-9]+)*$/.test(e),xMe=()=>Math.random().toString(36).slice(2),Xce={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 zXt extends TMe{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=Xce,this.browser=ZE.getBrowser(),this.browserVersion=ZE.getVersion(),this.pack=GNe,this.unpack=VNe,this.supports=function(){const n={browser:ZE.isBrowserSupported(),webRTC:ZE.isWebRTCSupported(),audioVideo:!1,data:!1,binaryBlob:!1,reliable:!1};if(!n.webRTC)return n;let r;try{r=new RTCPeerConnection(Xce),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=!ZE.isIOS}catch{}}catch{}finally{i&&i.close()}}catch{}finally{r&&r.close()}return n}(),this.validateId=UXt,this.randomToken=xMe}}const vl=new zXt,VXt="PeerJS: ";var Zce;(function(e){e[e.Disabled=0]="Disabled",e[e.Errors=1]="Errors",e[e.Warnings=2]="Warnings",e[e.All=3]="All"})(Zce||(Zce={}));class GXt{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=[VXt,...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 qn=new GXt,xQ={},WXt=Object.prototype.hasOwnProperty,Zs="~";function ZT(){}Object.create&&(ZT.prototype=Object.create(null),new ZT().__proto__||(Zs=!1));function qXt(e,t,n){this.fn=e,this.context=t,this.once=n||!1}function OMe(e,t,n,r,i){if(typeof n!="function")throw new TypeError("The listener must be a function");var o=new qXt(n,r||e,i),a=Zs?Zs+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 sN(e,t){--e._eventsCount===0?e._events=new ZT:delete e._events[t]}function ks(){this._events=new ZT,this._eventsCount=0}ks.prototype.eventNames=function(){var t=[],n,r;if(this._eventsCount===0)return t;for(r in n=this._events)WXt.call(n,r)&&t.push(Zs?r.slice(1):r);return Object.getOwnPropertySymbols?t.concat(Object.getOwnPropertySymbols(n)):t};ks.prototype.listeners=function(t){var n=Zs?Zs+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};ks.prototype.listenerCount=function(t){var n=Zs?Zs+t:t,r=this._events[n];return r?r.fn?1:r.length:0};ks.prototype.emit=function(t,n,r,i,o,a){var s=Zs?Zs+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 f=l.length,h;for(d=0;d<f;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(h=1,u=new Array(c-1);h<c;h++)u[h-1]=arguments[h];l[d].fn.apply(l[d].context,u)}}return!0};ks.prototype.on=function(t,n,r){return OMe(this,t,n,r,!1)};ks.prototype.once=function(t,n,r){return OMe(this,t,n,r,!0)};ks.prototype.removeListener=function(t,n,r,i){var o=Zs?Zs+t:t;if(!this._events[o])return this;if(!n)return sN(this,o),this;var a=this._events[o];if(a.fn)a.fn===n&&(!i||a.once)&&(!r||a.context===r)&&sN(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:sN(this,o)}return this};ks.prototype.removeAllListeners=function(t){var n;return t?(n=Zs?Zs+t:t,this._events[n]&&sN(this,n)):(this._events=new ZT,this._eventsCount=0),this};ks.prototype.off=ks.prototype.removeListener;ks.prototype.addListener=ks.prototype.on;ks.prefixed=Zs;ks.EventEmitter=ks;xQ=ks;var D0={};P0(D0,"ConnectionType",()=>kf);P0(D0,"PeerErrorType",()=>Bo);P0(D0,"BaseConnectionErrorType",()=>JT);P0(D0,"DataConnectionErrorType",()=>ex);P0(D0,"SerializationType",()=>B_);P0(D0,"SocketEventType",()=>wf);P0(D0,"ServerMessageType",()=>$a);var kf;(function(e){e.Data="data",e.Media="media"})(kf||(kf={}));var Bo;(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"})(Bo||(Bo={}));var JT;(function(e){e.NegotiationFailed="negotiation-failed",e.ConnectionClosed="connection-closed"})(JT||(JT={}));var ex;(function(e){e.NotOpenYet="not-open-yet",e.MessageToBig="message-too-big"})(ex||(ex={}));var B_;(function(e){e.Binary="binary",e.BinaryUTF8="binary-utf8",e.JSON="json",e.None="raw"})(B_||(B_={}));var wf;(function(e){e.Message="message",e.Disconnected="disconnected",e.Error="error",e.Close="close"})(wf||(wf={}));var $a;(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"})($a||($a={}));var OQ={};OQ=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 YXt extends xQ.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="+OQ.version),this._disconnected=!1,this._socket.onmessage=i=>{let o;try{o=JSON.parse(i.data),qn.log("Server message received:",o)}catch{qn.log("Invalid server message",i.data);return}this.emit(wf.Message,o)},this._socket.onclose=i=>{this._disconnected||(qn.log("Socket closed.",i),this._cleanup(),this._disconnected=!0,this.emit(wf.Disconnected))},this._socket.onopen=()=>{this._disconnected||(this._sendQueuedMessages(),qn.log("Socket open"),this._scheduleHeartbeat())})}_scheduleHeartbeat(){this._wsPingTimer=setTimeout(()=>{this._sendHeartbeat()},this.pingInterval)}_sendHeartbeat(){if(!this._wsOpen()){qn.log("Cannot send heartbeat, because socket closed");return}const t=JSON.stringify({type:$a.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(wf.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 RMe{constructor(t){this.connection=t}startConnection(t){const n=this._startPeerConnection();if(this.connection.peerConnection=n,this.connection.type===kf.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(){qn.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;qn.log("Listening for ICE candidates."),t.onicecandidate=a=>{!a.candidate||!a.candidate.candidate||(qn.log(`Received ICE candidates for ${n}:`,a.candidate),o.socket.send({type:$a.Candidate,payload:{candidate:a.candidate,type:i,connectionId:r},dst:n}))},t.oniceconnectionstatechange=()=>{switch(t.iceConnectionState){case"failed":qn.log("iceConnectionState is failed, closing connections to "+n),this.connection.emitError(JT.NegotiationFailed,"Negotiation of connection to "+n+" failed."),this.connection.close();break;case"closed":qn.log("iceConnectionState is closed, closing connections to "+n),this.connection.emitError(JT.ConnectionClosed,"Connection to "+n+" closed."),this.connection.close();break;case"disconnected":qn.log("iceConnectionState changed to disconnected on the connection with "+n);break;case"completed":t.onicecandidate=()=>{};break}this.connection.emit("iceStateChanged",t.iceConnectionState)},qn.log("Listening for data channel"),t.ondatachannel=a=>{qn.log("Received data channel");const s=a.channel;o.getConnection(n,r)._initializeDataChannel(s)},qn.log("Listening for remote stream"),t.ontrack=a=>{qn.log("Received remote stream");const s=a.streams[0],l=o.getConnection(n,r);if(l.type===kf.Media){const c=l;this._addStreamToMediaConnection(s,c)}}}cleanup(){qn.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);qn.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),qn.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===kf.Data){const o=this.connection;i={...i,label:o.label,reliable:o.reliable,serialization:o.serialization}}n.socket.send({type:$a.Offer,payload:i,dst:this.connection.peer})}catch(i){i!="OperationError: Failed to set local offer sdp: Called in wrong state: kHaveRemoteOffer"&&(n.emitError(Bo.WebRTC,i),qn.log("Failed to setLocalDescription, ",i))}}catch(r){n.emitError(Bo.WebRTC,r),qn.log("Failed to createOffer, ",r)}}async _makeAnswer(){const t=this.connection.peerConnection,n=this.connection.provider;try{const r=await t.createAnswer();qn.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),qn.log("Set localDescription:",r,`for:${this.connection.peer}`),n.socket.send({type:$a.Answer,payload:{sdp:r,type:this.connection.type,connectionId:this.connection.connectionId},dst:this.connection.peer})}catch(i){n.emitError(Bo.WebRTC,i),qn.log("Failed to setLocalDescription, ",i)}}catch(r){n.emitError(Bo.WebRTC,r),qn.log("Failed to create answer, ",r)}}async handleSDP(t,n){n=new RTCSessionDescription(n);const r=this.connection.peerConnection,i=this.connection.provider;qn.log("Setting remote description",n);const o=this;try{await r.setRemoteDescription(n),qn.log(`Set remoteDescription:${t} for:${this.connection.peer}`),t==="OFFER"&&await o._makeAnswer()}catch(a){i.emitError(Bo.WebRTC,a),qn.log("Failed to setRemoteDescription, ",a)}}async handleCandidate(t){qn.log("handleCandidate:",t);try{await this.connection.peerConnection.addIceCandidate(t),qn.log(`Added ICE candidate for:${this.connection.peer}`)}catch(n){this.connection.provider.emitError(Bo.WebRTC,n),qn.log("Failed to handleCandidate, ",n)}}_addTracksToConnection(t,n){if(qn.log(`add tracks from stream ${t.id} to peer connection`),!n.addTrack)return qn.error("Your browser does't support RTCPeerConnection#addTrack. Ignored.");t.getTracks().forEach(r=>{n.addTrack(r,t)})}_addStreamToMediaConnection(t,n){qn.log(`add stream ${t.id} to media connection ${n.connectionId}`),n.addStream(t)}}class IMe extends xQ.EventEmitter{emitError(t,n){qn.error("Error:",n),this.emit("error",new KXt(`${t}`,n))}}class KXt extends Error{constructor(t,n){typeof n=="string"?super(n):(super(),Object.assign(this,n)),this.type=t}}class AMe extends IMe{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 BV;const Hw=class Hw extends AMe{get type(){return kf.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||Hw.ID_PREFIX+vl.randomToken(),this._negotiator=new RMe(this),this._localStream&&this._negotiator.startConnection({_stream:this._localStream,originator:!0})}_initializeDataChannel(t){this.dataChannel=t,this.dataChannel.onopen=()=>{qn.log(`DC#${this.connectionId} dc connection success`),this.emit("willCloseOnRemote")},this.dataChannel.onclose=()=>{qn.log(`DC#${this.connectionId} dc closed for:`,this.peer),this.close()}}addStream(t){qn.log("Receiving stream",t),this._remoteStream=t,super.emit("stream",t)}handleMessage(t){const n=t.type,r=t.payload;switch(t.type){case $a.Answer:this._negotiator.handleSDP(n,r.sdp),this._open=!0;break;case $a.Candidate:this._negotiator.handleCandidate(r.candidate);break;default:qn.warn(`Unrecognized message type:${n} from peer:${this.peer}`);break}}answer(t,n={}){if(this._localStream){qn.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"))}};BV=new WeakMap,zn(Hw,BV,Hw.ID_PREFIX="mc_");let kk=Hw;class QXt{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",OQ.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){qn.error("Error retrieving ID",t);let n="";throw this._options.path==="/"&&this._options.host!==vl.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===vl.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 qn.error("Error retrieving list peers",t),new Error("Could not get list peers from the server."+t)}}}var jV,HV;const I1=class I1 extends AMe{get type(){return kf.Data}constructor(t,n,r){super(t,n,r),this.connectionId=this.options.connectionId||I1.ID_PREFIX+xMe(),this.label=this.options.label||this.connectionId,this.reliable=!!this.options.reliable,this._negotiator=new RMe(this),this._negotiator.startConnection(this.options._payload||{originator:!0,reliable:this.reliable})}_initializeDataChannel(t){this.dataChannel=t,this.dataChannel.onopen=()=>{qn.log(`DC#${this.connectionId} dc connection success`),this._open=!0,this.emit("open")},this.dataChannel.onmessage=n=>{qn.log(`DC#${this.connectionId} dc onmessage:`,n.data)},this.dataChannel.onclose=()=>{qn.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(ex.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 $a.Answer:await this._negotiator.handleSDP(t.type,n.sdp);break;case $a.Candidate:await this._negotiator.handleCandidate(n.candidate);break;default:qn.warn("Unrecognized message type:",t.type,"from peer:",this.peer);break}}};jV=new WeakMap,HV=new WeakMap,zn(I1,jV,I1.ID_PREFIX="dc_"),zn(I1,HV,I1.MAX_BUFFERED_AMOUNT=8388608);let Pk=I1;class RQ extends Pk{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>Pk.MAX_BUFFERED_AMOUNT)return this._buffering=!0,setTimeout(()=>{this._buffering=!1,this._tryBuffer()},50),!1;try{this.dataChannel.send(t)}catch(n){return qn.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 r6 extends RQ{close(t){super.close(t),this._chunkedData={}}constructor(t,n,r){super(t,n,r),this.chunker=new TMe,this.serialization=B_.Binary,this._chunkedData={}}_handleDataMessage({data:t}){const n=VNe(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=HXt(r.data);this._handleDataMessage({data:i})}}_send(t,n){const r=GNe(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);qn.log(`DC#${this.connectionId} Try to send ${n.length} chunks...`);for(const r of n)this.send(r,!0)}}class XXt extends RQ{_handleDataMessage({data:t}){super.emit("data",t)}_send(t,n){this._bufferedSend(t)}constructor(...t){super(...t),this.serialization=B_.None}}class ZXt extends RQ{_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>=vl.chunkedMTU){this.emitError(ex.MessageToBig,"Message too big for JSON channel");return}this._bufferedSend(r)}constructor(...t){super(...t),this.serialization=B_.JSON,this.encoder=new TextEncoder,this.decoder=new TextDecoder,this.stringify=JSON.stringify,this.parse=JSON.parse}}var UV;const Uw=class Uw extends IMe{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:XXt,json:ZXt,binary:r6,"binary-utf8":r6,default:r6},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:vl.CLOUD_HOST,port:vl.CLOUD_PORT,path:"/",key:Uw.DEFAULT_KEY,token:vl.randomToken(),config:vl.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!==vl.CLOUD_HOST?this._options.secure=vl.isSecure():this._options.host==vl.CLOUD_HOST&&(this._options.secure=!0),this._options.logFunction&&qn.setLogFunction(this._options.logFunction),qn.logLevel=this._options.debug||0,this._api=new QXt(n),this._socket=this._createServerConnection(),!vl.supports.audioVideo&&!vl.supports.data){this._delayedAbort(Bo.BrowserIncompatible,"The current browser does not support WebRTC");return}if(r&&!vl.validateId(r)){this._delayedAbort(Bo.InvalidID,`ID "${r}" is invalid`);return}r?this._initialize(r):this._api.retrieveId().then(i=>this._initialize(i)).catch(i=>this._abort(Bo.ServerError,i))}_createServerConnection(){const t=new YXt(this._options.secure,this._options.host,this._options.port,this._options.path,this._options.key,this._options.pingInterval);return t.on(wf.Message,n=>{this._handleMessage(n)}),t.on(wf.Error,n=>{this._abort(Bo.SocketError,n)}),t.on(wf.Disconnected,()=>{this.disconnected||(this.emitError(Bo.Network,"Lost connection to server."),this.disconnect())}),t.on(wf.Close,()=>{this.disconnected||this._abort(Bo.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 $a.Open:this._lastServerId=this.id,this._open=!0,this.emit("open",this.id);break;case $a.Error:this._abort(Bo.ServerError,r.msg);break;case $a.IdTaken:this._abort(Bo.UnavailableID,`ID "${this.id}" is taken`);break;case $a.InvalidKey:this._abort(Bo.InvalidKey,`API KEY "${this._options.key}" is invalid`);break;case $a.Leave:qn.log(`Received leave message from ${i}`),this._cleanupPeer(i),this._connections.delete(i);break;case $a.Expire:this.emitError(Bo.PeerUnavailable,`Could not connect to peer ${i}`);break;case $a.Offer:{const o=r.connectionId;let a=this.getConnection(i,o);if(a&&(a.close(),qn.warn(`Offer received for existing Connection ID:${o}`)),r.type===kf.Media){const l=new kk(i,this,{connectionId:o,_payload:r,metadata:r.metadata});a=l,this._addConnection(i,a),this.emit("call",l)}else if(r.type===kf.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{qn.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){qn.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):qn.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){qn.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(Bo.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){qn.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(Bo.Disconnected,"Cannot connect to new Peer after disconnecting from server.");return}if(!n){qn.error("To call a peer, you must provide a stream from your browser's `getUserMedia`.");return}const i=new kk(t,this,{...r,_stream:n});return this._addConnection(t,i),i}_addConnection(t,n){qn.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){qn.error("Aborting!"),this.emitError(t,n),this._lastServerId?this.disconnect():this.destroy()}destroy(){this.destroyed||(qn.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;qn.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)qn.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)qn.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(Bo.ServerError,n))}};UV=new WeakMap,zn(Uw,UV,Uw.DEFAULT_KEY="peerjs");let Az=Uw,JXt="127.0.0.1",eZt=9e3,tZt="/";function nZt(){console.log("usePeer");const e=Oa(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 p.useEffect(()=>{const a=new Az(e.uid,{host:JXt,port:eZt,path:tZt});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 rZt=()=>{const e=Si(),[t,n]=p.useState("/chat"),r=Aa(),{isLoggedIn:i,mode:o}=p.useContext(as),{footerStyle:a}=iO(),[s,l]=p.useState(!1),c=id(h=>h.threads);p.useEffect(()=>{const h=c.some(m=>m.unreadCount>0);l(h)},[c]);const u=[{path:"/anonymous/home",name:e.formatMessage({id:"menu.dashboard.chat"}),icon:H.jsx(ek,{}),component:H.jsx(Cz,{})}],[d,f]=p.useState(u);return dNe(),lNe(),IXt(),nZt(),WK(),p.useEffect(()=>{f(u)},[o]),p.useEffect(()=>(i&&r("/chat"),()=>{console.log("un - useEffect")}),[i]),H.jsxs(UIe,{collapsed:!0,collapsedButtonRender:!1,layout:"side",style:{height:"100vh"},route:{routes:d},location:{pathname:t},menu:{type:"group",collapsedShowTitle:!0},avatarProps:null,actionsRender:h=>h.isMobile?[]:[H.jsx(Fgt,{onClick:q_t},"QuestionCircleFilled")],menuHeaderRender:()=>H.jsx(aNe,{}),menuFooterRender:h=>{h!=null&&h.collapsed},onMenuHeaderClick:h=>{console.log("onMenuHeaderClick",h)},menuItemRender:(h,m)=>H.jsx(H.Fragment,{children:H.jsxs("a",{onClick:()=>{n(h.path),r(h.path)},children:[s&&H.jsxs(H.Fragment,{children:[h.path==="/anonymous/home"&&H.jsx(ml,{size:"small",dot:s,offset:[-5,5],children:m}),h.path!=="/anonymous/home"&&m]}),!s&&H.jsx(H.Fragment,{children:m})]})}),children:[H.jsx($3,{children:H.jsx(CD,{})}),H.jsx(F3,{style:a,children:H.jsx(xXt,{})}),H.jsx("audio",{id:"audioPlay",src:"soundUrl",hidden:!0})]})},{Sider:iZt,Content:oZt}=uo,aZt=()=>{const{leftSiderStyle:e,leftSiderWidth:t,headerStyle:n,contentStyle:r}=iO();return H.jsx(H.Fragment,{children:H.jsxs(uo,{children:[H.jsx(iZt,{style:e,width:t}),H.jsxs(uo,{children:[H.jsx(QM,{style:n,children:"setting"}),H.jsx(oZt,{style:r,children:"setting"})]})]})})};async function sZt(e){return $r("/api/v1/article/query/org",{method:"GET",params:{...e,client:wr}})}async function lZt(e){return $r("/api/v1/article/query/detail",{method:"GET",params:{...e,client:wr}})}async function cZt(e){return $r("/api/v1/article/create",{method:"POST",data:{...e,client:wr}})}async function IQ(e){return $r("/api/v1/article/update",{method:"POST",data:{...e,client:wr}})}async function NMe(e){return $r("/api/v1/article/delete",{method:"POST",data:{...e,client:wr}})}const aO=Rc(e=>({saving:!1,currentArticle:null,setCurrentArticle:t=>e({currentArticle:t}),setSaving:t=>e({saving:t}),fetchArticle:async t=>{console.log("fetchArticle",t);const r=await lZt({uid:t});console.log("fetchArticle response:",r.data),r.data.code===200?e({currentArticle:r.data.data}):Wt.error(r.data.message)},updateArticle:async t=>{const n={uid:t.uid,title:t.title,contentHtml:t.contentHtml,contentMarkdown:t.contentMarkdown},r=await IQ(n);console.log("updateArticle response:",r.data),r.data.code===200?Wt.success("保存成功"):Wt.error(r.data.message)},deleteArticle:async t=>{const r=await NMe({uid:t});console.log("deleteArticle response:",r.data),r.data.code===200?(Wt.success("删除成功"),e({currentArticle:null})):Wt.error(r.data.message)}}));async function AQ(e){return $r("/api/v1/category/query/org",{method:"GET",params:{...e,client:wr}})}async function uZt(e){return $r("/api/v1/category/create",{method:"POST",data:{...e,client:wr}})}const MMe=({open:e,onCancel:t,onSuccess:n})=>{const r=$l(a=>a.currentOrg),{currentKbase:i}=Lg(),o=async a=>{try{const s={name:a.name,orderNo:0,type:i==null?void 0:i.type,kbUid:i==null?void 0:i.uid,orgUid:r==null?void 0:r.uid},l=await uZt(s);return l.data.code===200?(Ho.success("分类创建成功"),n(l.data.data),!0):(Ho.error(l.data.message),!1)}catch{return Ho.error("创建分类失败"),!1}};return H.jsx(eIe,{title:"创建分类",width:500,open:e,onFinish:o,onOpenChange:a=>!a&&t(),modalProps:{destroyOnClose:!0},children:H.jsx(ci,{name:"name",label:"分类名称",placeholder:"请输入分类名称",rules:[{required:!0,message:"请输入分类名称"},{max:50,message:"名称最多50个字符"}],fieldProps:{autoFocus:!0}})})},dZt=({article:e,visible:t,onClose:n})=>{const[r]=li.useForm(),[i,o]=ce.useState(!1),[a,s]=ce.useState([]),[l,c]=ce.useState(!1),u=$l(v=>v.currentOrg),{currentKbase:d}=Lg(),{setCurrentArticle:f}=aO(),h=async()=>{try{const v={pageNumber:0,pageSize:100,type:d==null?void 0:d.type,kbUid:d==null?void 0:d.uid,orgUid:u==null?void 0:u.uid},y=await AQ(v);y.data.code===200&&y.data.data.content&&s(y.data.data.content)}catch(v){console.error("获取分类列表失败:",v),Ho.error("获取分类列表失败")}};ce.useEffect(()=>{t&&(h(),r.setFieldsValue({title:e.title,summary:e.summary,categoryUid:e.categoryUid}))},[t,e]);const m=async v=>{var y;o(!0);try{const b={...e,title:v.title,summary:v.summary,categoryUid:v.categoryUid},_=await IQ(b);console.log("updateArticle response:",_.data,b),((y=_==null?void 0:_.data)==null?void 0:y.code)===200?(Ho.success("更新成功"),f(_.data.data),n()):Ho.error(_.data.message)}catch{Ho.error("更新失败")}finally{o(!1)}},g=v=>{s(y=>[...y,v]),r.setFieldValue("categoryUid",v.uid),c(!1)};return H.jsxs(H.Fragment,{children:[H.jsx(aY,{title:"文章设置",width:500,open:t,onClose:n,destroyOnClose:!0,children:H.jsxs(Dr,{form:r,onFinish:m,submitter:{render:(v,y)=>H.jsxs(Xi,{style:{width:"100%",justifyContent:"flex-end"},children:[H.jsx($n,{onClick:n,children:"取消"}),y]})},children:[H.jsx(ci,{name:"title",label:"标题",rules:[{required:!0,message:"请输入标题"}]}),H.jsx(XS,{name:"summary",label:"概要",placeholder:"请输入文章概要"}),H.jsxs(Xi,{direction:"vertical",style:{width:"100%"},children:[H.jsx(G2,{name:"categoryUid",label:"所属分类",placeholder:"请选择分类",options:a.map(v=>({label:v.name,value:v.uid})),fieldProps:{showSearch:!0,allowClear:!0,loading:i,notFoundContent:i?"加载中...":"暂无分类"}}),H.jsx($n,{type:"dashed",icon:H.jsx(g2,{}),onClick:()=>c(!0),style:{width:"100%"},children:"创建新分类"})]})]})}),H.jsx(MMe,{open:l,onCancel:()=>c(!1),onSuccess:g})]})};var fZt=Object.defineProperty,kMe=e=>{throw TypeError(e)},pZt=(e,t,n)=>t in e?fZt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,nn=(e,t,n)=>pZt(e,typeof t!="symbol"?t+"":t,n),PMe=(e,t,n)=>t.has(e)||kMe("Cannot "+n),JE=(e,t,n)=>(PMe(e,t,"read from private field"),n?n.call(e):t.get(e)),hZt=(e,t,n)=>t.has(e)?kMe("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),mZt=(e,t,n,r)=>(PMe(e,t,"write to private field"),t.set(e,n),n);function Qa(e){this.content=e}Qa.prototype={constructor:Qa,find:function(e){for(var t=0;t<this.content.length;t+=2)if(this.content[t]===e)return t;return-1},get:function(e){var t=this.find(e);return t==-1?void 0:this.content[t+1]},update:function(e,t,n){var r=n&&n!=e?this.remove(n):this,i=r.find(e),o=r.content.slice();return i==-1?o.push(n||e,t):(o[i+1]=t,n&&(o[i]=n)),new Qa(o)},remove:function(e){var t=this.find(e);if(t==-1)return this;var n=this.content.slice();return n.splice(t,2),new Qa(n)},addToStart:function(e,t){return new Qa([e,t].concat(this.remove(e).content))},addToEnd:function(e,t){var n=this.remove(e).content.slice();return n.push(e,t),new Qa(n)},addBefore:function(e,t,n){var r=this.remove(t),i=r.content.slice(),o=r.find(e);return i.splice(o==-1?i.length:o,0,t,n),new Qa(i)},forEach:function(e){for(var t=0;t<this.content.length;t+=2)e(this.content[t],this.content[t+1])},prepend:function(e){return e=Qa.from(e),e.size?new Qa(e.content.concat(this.subtract(e).content)):this},append:function(e){return e=Qa.from(e),e.size?new Qa(this.subtract(e).content.concat(e.content)):this},subtract:function(e){var t=this;e=Qa.from(e);for(var n=0;n<e.content.length;n+=2)t=t.remove(e.content[n]);return t},toObject:function(){var e={};return this.forEach(function(t,n){e[t]=n}),e},get size(){return this.content.length>>1}};Qa.from=function(e){if(e instanceof Qa)return e;var t=[];if(e)for(var n in e)t.push(n,e[n]);return new Qa(t)};function DMe(e,t,n){for(let r=0;;r++){if(r==e.childCount||r==t.childCount)return e.childCount==t.childCount?null:n;let i=e.child(r),o=t.child(r);if(i==o){n+=i.nodeSize;continue}if(!i.sameMarkup(o))return n;if(i.isText&&i.text!=o.text){for(let a=0;i.text[a]==o.text[a];a++)n++;return n}if(i.content.size||o.content.size){let a=DMe(i.content,o.content,n+1);if(a!=null)return a}n+=i.nodeSize}}function LMe(e,t,n,r){for(let i=e.childCount,o=t.childCount;;){if(i==0||o==0)return i==o?null:{a:n,b:r};let a=e.child(--i),s=t.child(--o),l=a.nodeSize;if(a==s){n-=l,r-=l;continue}if(!a.sameMarkup(s))return{a:n,b:r};if(a.isText&&a.text!=s.text){let c=0,u=Math.min(a.text.length,s.text.length);for(;c<u&&a.text[a.text.length-c-1]==s.text[s.text.length-c-1];)c++,n--,r--;return{a:n,b:r}}if(a.content.size||s.content.size){let c=LMe(a.content,s.content,n-1,r-1);if(c)return c}n-=l,r-=l}}class Xt{constructor(t,n){if(this.content=t,this.size=n||0,n==null)for(let r=0;r<t.length;r++)this.size+=t[r].nodeSize}nodesBetween(t,n,r,i=0,o){for(let a=0,s=0;s<n;a++){let l=this.content[a],c=s+l.nodeSize;if(c>t&&r(l,i+s,o||null,a)!==!1&&l.content.size){let u=s+1;l.nodesBetween(Math.max(0,t-u),Math.min(l.content.size,n-u),r,i+u)}s=c}}descendants(t){this.nodesBetween(0,this.size,t)}textBetween(t,n,r,i){let o="",a=!0;return this.nodesBetween(t,n,(s,l)=>{let c=s.isText?s.text.slice(Math.max(t,l)-l,n-l):s.isLeaf?i?typeof i=="function"?i(s):i:s.type.spec.leafText?s.type.spec.leafText(s):"":"";s.isBlock&&(s.isLeaf&&c||s.isTextblock)&&r&&(a?a=!1:o+=r),o+=c},0),o}append(t){if(!t.size)return this;if(!this.size)return t;let n=this.lastChild,r=t.firstChild,i=this.content.slice(),o=0;for(n.isText&&n.sameMarkup(r)&&(i[i.length-1]=n.withText(n.text+r.text),o=1);o<t.content.length;o++)i.push(t.content[o]);return new Xt(i,this.size+t.size)}cut(t,n=this.size){if(t==0&&n==this.size)return this;let r=[],i=0;if(n>t)for(let o=0,a=0;a<n;o++){let s=this.content[o],l=a+s.nodeSize;l>t&&((a<t||l>n)&&(s.isText?s=s.cut(Math.max(0,t-a),Math.min(s.text.length,n-a)):s=s.cut(Math.max(0,t-a-1),Math.min(s.content.size,n-a-1))),r.push(s),i+=s.nodeSize),a=l}return new Xt(r,i)}cutByIndex(t,n){return t==n?Xt.empty:t==0&&n==this.content.length?this:new Xt(this.content.slice(t,n))}replaceChild(t,n){let r=this.content[t];if(r==n)return this;let i=this.content.slice(),o=this.size+n.nodeSize-r.nodeSize;return i[t]=n,new Xt(i,o)}addToStart(t){return new Xt([t].concat(this.content),this.size+t.nodeSize)}addToEnd(t){return new Xt(this.content.concat(t),this.size+t.nodeSize)}eq(t){if(this.content.length!=t.content.length)return!1;for(let n=0;n<this.content.length;n++)if(!this.content[n].eq(t.content[n]))return!1;return!0}get firstChild(){return this.content.length?this.content[0]:null}get lastChild(){return this.content.length?this.content[this.content.length-1]:null}get childCount(){return this.content.length}child(t){let n=this.content[t];if(!n)throw new RangeError("Index "+t+" out of range for "+this);return n}maybeChild(t){return this.content[t]||null}forEach(t){for(let n=0,r=0;n<this.content.length;n++){let i=this.content[n];t(i,r,n),r+=i.nodeSize}}findDiffStart(t,n=0){return DMe(this,t,n)}findDiffEnd(t,n=this.size,r=t.size){return LMe(this,t,n,r)}findIndex(t,n=-1){if(t==0)return eI(0,t);if(t==this.size)return eI(this.content.length,t);if(t>this.size||t<0)throw new RangeError(`Position ${t} outside of fragment (${this})`);for(let r=0,i=0;;r++){let o=this.child(r),a=i+o.nodeSize;if(a>=t)return a==t||n>0?eI(r+1,a):eI(r,i);i=a}}toString(){return"<"+this.toStringInner()+">"}toStringInner(){return this.content.join(", ")}toJSON(){return this.content.length?this.content.map(t=>t.toJSON()):null}static fromJSON(t,n){if(!n)return Xt.empty;if(!Array.isArray(n))throw new RangeError("Invalid input for Fragment.fromJSON");return new Xt(n.map(t.nodeFromJSON))}static fromArray(t){if(!t.length)return Xt.empty;let n,r=0;for(let i=0;i<t.length;i++){let o=t[i];r+=o.nodeSize,i&&o.isText&&t[i-1].sameMarkup(o)?(n||(n=t.slice(0,i)),n[n.length-1]=o.withText(n[n.length-1].text+o.text)):n&&n.push(o)}return new Xt(n||t,r)}static from(t){if(!t)return Xt.empty;if(t instanceof Xt)return t;if(Array.isArray(t))return this.fromArray(t);if(t.attrs)return new Xt([t],t.nodeSize);throw new RangeError("Can not convert "+t+" to a Fragment"+(t.nodesBetween?" (looks like multiple versions of prosemirror-model were loaded)":""))}}Xt.empty=new Xt([],0);const i6={index:0,offset:0};function eI(e,t){return i6.index=e,i6.offset=t,i6}function Dk(e,t){if(e===t)return!0;if(!(e&&typeof e=="object")||!(t&&typeof t=="object"))return!1;let n=Array.isArray(e);if(Array.isArray(t)!=n)return!1;if(n){if(e.length!=t.length)return!1;for(let r=0;r<e.length;r++)if(!Dk(e[r],t[r]))return!1}else{for(let r in e)if(!(r in t)||!Dk(e[r],t[r]))return!1;for(let r in t)if(!(r in e))return!1}return!0}let ji=class Nz{constructor(t,n){this.type=t,this.attrs=n}addToSet(t){let n,r=!1;for(let i=0;i<t.length;i++){let o=t[i];if(this.eq(o))return t;if(this.type.excludes(o.type))n||(n=t.slice(0,i));else{if(o.type.excludes(this.type))return t;!r&&o.type.rank>this.type.rank&&(n||(n=t.slice(0,i)),n.push(this),r=!0),n&&n.push(o)}}return n||(n=t.slice()),r||n.push(this),n}removeFromSet(t){for(let n=0;n<t.length;n++)if(this.eq(t[n]))return t.slice(0,n).concat(t.slice(n+1));return t}isInSet(t){for(let n=0;n<t.length;n++)if(this.eq(t[n]))return!0;return!1}eq(t){return this==t||this.type==t.type&&Dk(this.attrs,t.attrs)}toJSON(){let t={type:this.type.name};for(let n in this.attrs){t.attrs=this.attrs;break}return t}static fromJSON(t,n){if(!n)throw new RangeError("Invalid input for Mark.fromJSON");let r=t.marks[n.type];if(!r)throw new RangeError(`There is no mark type ${n.type} in this schema`);let i=r.create(n.attrs);return r.checkAttrs(i.attrs),i}static sameSet(t,n){if(t==n)return!0;if(t.length!=n.length)return!1;for(let r=0;r<t.length;r++)if(!t[r].eq(n[r]))return!1;return!0}static setFrom(t){if(!t||Array.isArray(t)&&t.length==0)return Nz.none;if(t instanceof Nz)return[t];let n=t.slice();return n.sort((r,i)=>r.type.rank-i.type.rank),n}};ji.none=[];class Lk extends Error{}class Rn{constructor(t,n,r){this.content=t,this.openStart=n,this.openEnd=r}get size(){return this.content.size-this.openStart-this.openEnd}insertAt(t,n){let r=FMe(this.content,t+this.openStart,n);return r&&new Rn(r,this.openStart,this.openEnd)}removeBetween(t,n){return new Rn($Me(this.content,t+this.openStart,n+this.openStart),this.openStart,this.openEnd)}eq(t){return this.content.eq(t.content)&&this.openStart==t.openStart&&this.openEnd==t.openEnd}toString(){return this.content+"("+this.openStart+","+this.openEnd+")"}toJSON(){if(!this.content.size)return null;let t={content:this.content.toJSON()};return this.openStart>0&&(t.openStart=this.openStart),this.openEnd>0&&(t.openEnd=this.openEnd),t}static fromJSON(t,n){if(!n)return Rn.empty;let r=n.openStart||0,i=n.openEnd||0;if(typeof r!="number"||typeof i!="number")throw new RangeError("Invalid input for Slice.fromJSON");return new Rn(Xt.fromJSON(t,n.content),r,i)}static maxOpen(t,n=!0){let r=0,i=0;for(let o=t.firstChild;o&&!o.isLeaf&&(n||!o.type.spec.isolating);o=o.firstChild)r++;for(let o=t.lastChild;o&&!o.isLeaf&&(n||!o.type.spec.isolating);o=o.lastChild)i++;return new Rn(t,r,i)}}Rn.empty=new Rn(Xt.empty,0,0);function $Me(e,t,n){let{index:r,offset:i}=e.findIndex(t),o=e.maybeChild(r),{index:a,offset:s}=e.findIndex(n);if(i==t||o.isText){if(s!=n&&!e.child(a).isText)throw new RangeError("Removing non-flat range");return e.cut(0,t).append(e.cut(n))}if(r!=a)throw new RangeError("Removing non-flat range");return e.replaceChild(r,o.copy($Me(o.content,t-i-1,n-i-1)))}function FMe(e,t,n,r){let{index:i,offset:o}=e.findIndex(t),a=e.maybeChild(i);if(o==t||a.isText)return e.cut(0,t).append(n).append(e.cut(t));let s=FMe(a.content,t-o-1,n);return s&&e.replaceChild(i,a.copy(s))}function gZt(e,t,n){if(n.openStart>e.depth)throw new Lk("Inserted content deeper than insertion position");if(e.depth-n.openStart!=t.depth-n.openEnd)throw new Lk("Inconsistent open depths");return BMe(e,t,n,0)}function BMe(e,t,n,r){let i=e.index(r),o=e.node(r);if(i==t.index(r)&&r<e.depth-n.openStart){let a=BMe(e,t,n,r+1);return o.copy(o.content.replaceChild(i,a))}else if(n.content.size)if(!n.openStart&&!n.openEnd&&e.depth==r&&t.depth==r){let a=e.parent,s=a.content;return yv(a,s.cut(0,e.parentOffset).append(n.content).append(s.cut(t.parentOffset)))}else{let{start:a,end:s}=vZt(n,e);return yv(o,HMe(e,a,s,t,r))}else return yv(o,$k(e,t,r))}function jMe(e,t){if(!t.type.compatibleContent(e.type))throw new Lk("Cannot join "+t.type.name+" onto "+e.type.name)}function Mz(e,t,n){let r=e.node(n);return jMe(r,t.node(n)),r}function bv(e,t){let n=t.length-1;n>=0&&e.isText&&e.sameMarkup(t[n])?t[n]=e.withText(t[n].text+e.text):t.push(e)}function Sw(e,t,n,r){let i=(t||e).node(n),o=0,a=t?t.index(n):i.childCount;e&&(o=e.index(n),e.depth>n?o++:e.textOffset&&(bv(e.nodeAfter,r),o++));for(let s=o;s<a;s++)bv(i.child(s),r);t&&t.depth==n&&t.textOffset&&bv(t.nodeBefore,r)}function yv(e,t){return e.type.checkContent(t),e.copy(t)}function HMe(e,t,n,r,i){let o=e.depth>i&&Mz(e,t,i+1),a=r.depth>i&&Mz(n,r,i+1),s=[];return Sw(null,e,i,s),o&&a&&t.index(i)==n.index(i)?(jMe(o,a),bv(yv(o,HMe(e,t,n,r,i+1)),s)):(o&&bv(yv(o,$k(e,t,i+1)),s),Sw(t,n,i,s),a&&bv(yv(a,$k(n,r,i+1)),s)),Sw(r,null,i,s),new Xt(s)}function $k(e,t,n){let r=[];if(Sw(null,e,n,r),e.depth>n){let i=Mz(e,t,n+1);bv(yv(i,$k(e,t,n+1)),r)}return Sw(t,null,n,r),new Xt(r)}function vZt(e,t){let n=t.depth-e.openStart,r=t.node(n).copy(e.content);for(let i=n-1;i>=0;i--)r=t.node(i).copy(Xt.from(r));return{start:r.resolveNoCache(e.openStart+n),end:r.resolveNoCache(r.content.size-e.openEnd-n)}}class tx{constructor(t,n,r){this.pos=t,this.path=n,this.parentOffset=r,this.depth=n.length/3-1}resolveDepth(t){return t==null?this.depth:t<0?this.depth+t:t}get parent(){return this.node(this.depth)}get doc(){return this.node(0)}node(t){return this.path[this.resolveDepth(t)*3]}index(t){return this.path[this.resolveDepth(t)*3+1]}indexAfter(t){return t=this.resolveDepth(t),this.index(t)+(t==this.depth&&!this.textOffset?0:1)}start(t){return t=this.resolveDepth(t),t==0?0:this.path[t*3-1]+1}end(t){return t=this.resolveDepth(t),this.start(t)+this.node(t).content.size}before(t){if(t=this.resolveDepth(t),!t)throw new RangeError("There is no position before the top-level node");return t==this.depth+1?this.pos:this.path[t*3-1]}after(t){if(t=this.resolveDepth(t),!t)throw new RangeError("There is no position after the top-level node");return t==this.depth+1?this.pos:this.path[t*3-1]+this.path[t*3].nodeSize}get textOffset(){return this.pos-this.path[this.path.length-1]}get nodeAfter(){let t=this.parent,n=this.index(this.depth);if(n==t.childCount)return null;let r=this.pos-this.path[this.path.length-1],i=t.child(n);return r?t.child(n).cut(r):i}get nodeBefore(){let t=this.index(this.depth),n=this.pos-this.path[this.path.length-1];return n?this.parent.child(t).cut(0,n):t==0?null:this.parent.child(t-1)}posAtIndex(t,n){n=this.resolveDepth(n);let r=this.path[n*3],i=n==0?0:this.path[n*3-1]+1;for(let o=0;o<t;o++)i+=r.child(o).nodeSize;return i}marks(){let t=this.parent,n=this.index();if(t.content.size==0)return ji.none;if(this.textOffset)return t.child(n).marks;let r=t.maybeChild(n-1),i=t.maybeChild(n);if(!r){let s=r;r=i,i=s}let o=r.marks;for(var a=0;a<o.length;a++)o[a].type.spec.inclusive===!1&&(!i||!o[a].isInSet(i.marks))&&(o=o[a--].removeFromSet(o));return o}marksAcross(t){let n=this.parent.maybeChild(this.index());if(!n||!n.isInline)return null;let r=n.marks,i=t.parent.maybeChild(t.index());for(var o=0;o<r.length;o++)r[o].type.spec.inclusive===!1&&(!i||!r[o].isInSet(i.marks))&&(r=r[o--].removeFromSet(r));return r}sharedDepth(t){for(let n=this.depth;n>0;n--)if(this.start(n)<=t&&this.end(n)>=t)return n;return 0}blockRange(t=this,n){if(t.pos<this.pos)return t.blockRange(this);for(let r=this.depth-(this.parent.inlineContent||this.pos==t.pos?1:0);r>=0;r--)if(t.pos<=this.end(r)&&(!n||n(this.node(r))))return new Fk(this,t,r);return null}sameParent(t){return this.pos-this.parentOffset==t.pos-t.parentOffset}max(t){return t.pos>this.pos?t:this}min(t){return t.pos<this.pos?t:this}toString(){let t="";for(let n=1;n<=this.depth;n++)t+=(t?"/":"")+this.node(n).type.name+"_"+this.index(n-1);return t+":"+this.parentOffset}static resolve(t,n){if(!(n>=0&&n<=t.content.size))throw new RangeError("Position "+n+" out of range");let r=[],i=0,o=n;for(let a=t;;){let{index:s,offset:l}=a.content.findIndex(o),c=o-l;if(r.push(a,s,i+l),!c||(a=a.child(s),a.isText))break;o=c-1,i+=l+1}return new tx(n,r,o)}static resolveCached(t,n){let r=Jce.get(t);if(r)for(let o=0;o<r.elts.length;o++){let a=r.elts[o];if(a.pos==n)return a}else Jce.set(t,r=new bZt);let i=r.elts[r.i]=tx.resolve(t,n);return r.i=(r.i+1)%yZt,i}}class bZt{constructor(){this.elts=[],this.i=0}}const yZt=12,Jce=new WeakMap;class Fk{constructor(t,n,r){this.$from=t,this.$to=n,this.depth=r}get start(){return this.$from.before(this.depth+1)}get end(){return this.$to.after(this.depth+1)}get parent(){return this.$from.node(this.depth)}get startIndex(){return this.$from.index(this.depth)}get endIndex(){return this.$to.indexAfter(this.depth)}}const _Zt=Object.create(null);let ag=class kz{constructor(t,n,r,i=ji.none){this.type=t,this.attrs=n,this.marks=i,this.content=r||Xt.empty}get nodeSize(){return this.isLeaf?1:2+this.content.size}get childCount(){return this.content.childCount}child(t){return this.content.child(t)}maybeChild(t){return this.content.maybeChild(t)}forEach(t){this.content.forEach(t)}nodesBetween(t,n,r,i=0){this.content.nodesBetween(t,n,r,i,this)}descendants(t){this.nodesBetween(0,this.content.size,t)}get textContent(){return this.isLeaf&&this.type.spec.leafText?this.type.spec.leafText(this):this.textBetween(0,this.content.size,"")}textBetween(t,n,r,i){return this.content.textBetween(t,n,r,i)}get firstChild(){return this.content.firstChild}get lastChild(){return this.content.lastChild}eq(t){return this==t||this.sameMarkup(t)&&this.content.eq(t.content)}sameMarkup(t){return this.hasMarkup(t.type,t.attrs,t.marks)}hasMarkup(t,n,r){return this.type==t&&Dk(this.attrs,n||t.defaultAttrs||_Zt)&&ji.sameSet(this.marks,r||ji.none)}copy(t=null){return t==this.content?this:new kz(this.type,this.attrs,t,this.marks)}mark(t){return t==this.marks?this:new kz(this.type,this.attrs,this.content,t)}cut(t,n=this.content.size){return t==0&&n==this.content.size?this:this.copy(this.content.cut(t,n))}slice(t,n=this.content.size,r=!1){if(t==n)return Rn.empty;let i=this.resolve(t),o=this.resolve(n),a=r?0:i.sharedDepth(n),s=i.start(a),l=i.node(a).content.cut(i.pos-s,o.pos-s);return new Rn(l,i.depth-a,o.depth-a)}replace(t,n,r){return gZt(this.resolve(t),this.resolve(n),r)}nodeAt(t){for(let n=this;;){let{index:r,offset:i}=n.content.findIndex(t);if(n=n.maybeChild(r),!n)return null;if(i==t||n.isText)return n;t-=i+1}}childAfter(t){let{index:n,offset:r}=this.content.findIndex(t);return{node:this.content.maybeChild(n),index:n,offset:r}}childBefore(t){if(t==0)return{node:null,index:0,offset:0};let{index:n,offset:r}=this.content.findIndex(t);if(r<t)return{node:this.content.child(n),index:n,offset:r};let i=this.content.child(n-1);return{node:i,index:n-1,offset:r-i.nodeSize}}resolve(t){return tx.resolveCached(this,t)}resolveNoCache(t){return tx.resolve(this,t)}rangeHasMark(t,n,r){let i=!1;return n>t&&this.nodesBetween(t,n,o=>(r.isInSet(o.marks)&&(i=!0),!i)),i}get isBlock(){return this.type.isBlock}get isTextblock(){return this.type.isTextblock}get inlineContent(){return this.type.inlineContent}get isInline(){return this.type.isInline}get isText(){return this.type.isText}get isLeaf(){return this.type.isLeaf}get isAtom(){return this.type.isAtom}toString(){if(this.type.spec.toDebugString)return this.type.spec.toDebugString(this);let t=this.type.name;return this.content.size&&(t+="("+this.content.toStringInner()+")"),UMe(this.marks,t)}contentMatchAt(t){let n=this.type.contentMatch.matchFragment(this.content,0,t);if(!n)throw new Error("Called contentMatchAt on a node with invalid content");return n}canReplace(t,n,r=Xt.empty,i=0,o=r.childCount){let a=this.contentMatchAt(t).matchFragment(r,i,o),s=a&&a.matchFragment(this.content,n);if(!s||!s.validEnd)return!1;for(let l=i;l<o;l++)if(!this.type.allowsMarks(r.child(l).marks))return!1;return!0}canReplaceWith(t,n,r,i){if(i&&!this.type.allowsMarks(i))return!1;let o=this.contentMatchAt(t).matchType(r),a=o&&o.matchFragment(this.content,n);return a?a.validEnd:!1}canAppend(t){return t.content.size?this.canReplace(this.childCount,this.childCount,t.content):this.type.compatibleContent(t.type)}check(){this.type.checkContent(this.content),this.type.checkAttrs(this.attrs);let t=ji.none;for(let n=0;n<this.marks.length;n++){let r=this.marks[n];r.type.checkAttrs(r.attrs),t=r.addToSet(t)}if(!ji.sameSet(t,this.marks))throw new RangeError(`Invalid collection of marks for node ${this.type.name}: ${this.marks.map(n=>n.type.name)}`);this.content.forEach(n=>n.check())}toJSON(){let t={type:this.type.name};for(let n in this.attrs){t.attrs=this.attrs;break}return this.content.size&&(t.content=this.content.toJSON()),this.marks.length&&(t.marks=this.marks.map(n=>n.toJSON())),t}static fromJSON(t,n){if(!n)throw new RangeError("Invalid input for Node.fromJSON");let r;if(n.marks){if(!Array.isArray(n.marks))throw new RangeError("Invalid mark data for Node.fromJSON");r=n.marks.map(t.markFromJSON)}if(n.type=="text"){if(typeof n.text!="string")throw new RangeError("Invalid text node in JSON");return t.text(n.text,r)}let i=Xt.fromJSON(t,n.content),o=t.nodeType(n.type).create(n.attrs,i,r);return o.type.checkAttrs(o.attrs),o}};ag.prototype.text=void 0;class Bk extends ag{constructor(t,n,r,i){if(super(t,n,null,i),!r)throw new RangeError("Empty text nodes are not allowed");this.text=r}toString(){return this.type.spec.toDebugString?this.type.spec.toDebugString(this):UMe(this.marks,JSON.stringify(this.text))}get textContent(){return this.text}textBetween(t,n){return this.text.slice(t,n)}get nodeSize(){return this.text.length}mark(t){return t==this.marks?this:new Bk(this.type,this.attrs,this.text,t)}withText(t){return t==this.text?this:new Bk(this.type,this.attrs,t,this.marks)}cut(t=0,n=this.text.length){return t==0&&n==this.text.length?this:this.withText(this.text.slice(t,n))}eq(t){return this.sameMarkup(t)&&this.text==t.text}toJSON(){let t=super.toJSON();return t.text=this.text,t}}function UMe(e,t){for(let n=e.length-1;n>=0;n--)t=e[n].type.name+"("+t+")";return t}class Jv{constructor(t){this.validEnd=t,this.next=[],this.wrapCache=[]}static parse(t,n){let r=new SZt(t,n);if(r.next==null)return Jv.empty;let i=zMe(r);r.next&&r.err("Unexpected trailing text");let o=RZt(OZt(i));return IZt(o,r),o}matchType(t){for(let n=0;n<this.next.length;n++)if(this.next[n].type==t)return this.next[n].next;return null}matchFragment(t,n=0,r=t.childCount){let i=this;for(let o=n;i&&o<r;o++)i=i.matchType(t.child(o).type);return i}get inlineContent(){return this.next.length!=0&&this.next[0].type.isInline}get defaultType(){for(let t=0;t<this.next.length;t++){let{type:n}=this.next[t];if(!(n.isText||n.hasRequiredAttrs()))return n}return null}compatible(t){for(let n=0;n<this.next.length;n++)for(let r=0;r<t.next.length;r++)if(this.next[n].type==t.next[r].type)return!0;return!1}fillBefore(t,n=!1,r=0){let i=[this];function o(a,s){let l=a.matchFragment(t,r);if(l&&(!n||l.validEnd))return Xt.from(s.map(c=>c.createAndFill()));for(let c=0;c<a.next.length;c++){let{type:u,next:d}=a.next[c];if(!(u.isText||u.hasRequiredAttrs())&&i.indexOf(d)==-1){i.push(d);let f=o(d,s.concat(u));if(f)return f}}return null}return o(this,[])}findWrapping(t){for(let r=0;r<this.wrapCache.length;r+=2)if(this.wrapCache[r]==t)return this.wrapCache[r+1];let n=this.computeWrapping(t);return this.wrapCache.push(t,n),n}computeWrapping(t){let n=Object.create(null),r=[{match:this,type:null,via:null}];for(;r.length;){let i=r.shift(),o=i.match;if(o.matchType(t)){let a=[];for(let s=i;s.type;s=s.via)a.push(s.type);return a.reverse()}for(let a=0;a<o.next.length;a++){let{type:s,next:l}=o.next[a];!s.isLeaf&&!s.hasRequiredAttrs()&&!(s.name in n)&&(!i.type||l.validEnd)&&(r.push({match:s.contentMatch,type:s,via:i}),n[s.name]=!0)}}return null}get edgeCount(){return this.next.length}edge(t){if(t>=this.next.length)throw new RangeError(`There's no ${t}th edge in this content match`);return this.next[t]}toString(){let t=[];function n(r){t.push(r);for(let i=0;i<r.next.length;i++)t.indexOf(r.next[i].next)==-1&&n(r.next[i].next)}return n(this),t.map((r,i)=>{let o=i+(r.validEnd?"*":" ")+" ";for(let a=0;a<r.next.length;a++)o+=(a?", ":"")+r.next[a].type.name+"->"+t.indexOf(r.next[a].next);return o}).join(`
`)}}Jv.empty=new Jv(!0);class SZt{constructor(t,n){this.string=t,this.nodeTypes=n,this.inline=null,this.pos=0,this.tokens=t.split(/\s*(?=\b|\W|$)/),this.tokens[this.tokens.length-1]==""&&this.tokens.pop(),this.tokens[0]==""&&this.tokens.shift()}get next(){return this.tokens[this.pos]}eat(t){return this.next==t&&(this.pos++||!0)}err(t){throw new SyntaxError(t+" (in content expression '"+this.string+"')")}}function zMe(e){let t=[];do t.push(EZt(e));while(e.eat("|"));return t.length==1?t[0]:{type:"choice",exprs:t}}function EZt(e){let t=[];do t.push(CZt(e));while(e.next&&e.next!=")"&&e.next!="|");return t.length==1?t[0]:{type:"seq",exprs:t}}function CZt(e){let t=xZt(e);for(;;)if(e.eat("+"))t={type:"plus",expr:t};else if(e.eat("*"))t={type:"star",expr:t};else if(e.eat("?"))t={type:"opt",expr:t};else if(e.eat("{"))t=wZt(e,t);else break;return t}function eue(e){/\D/.test(e.next)&&e.err("Expected number, got '"+e.next+"'");let t=Number(e.next);return e.pos++,t}function wZt(e,t){let n=eue(e),r=n;return e.eat(",")&&(e.next!="}"?r=eue(e):r=-1),e.eat("}")||e.err("Unclosed braced range"),{type:"range",min:n,max:r,expr:t}}function TZt(e,t){let n=e.nodeTypes,r=n[t];if(r)return[r];let i=[];for(let o in n){let a=n[o];a.isInGroup(t)&&i.push(a)}return i.length==0&&e.err("No node type or group '"+t+"' found"),i}function xZt(e){if(e.eat("(")){let t=zMe(e);return e.eat(")")||e.err("Missing closing paren"),t}else if(/\W/.test(e.next))e.err("Unexpected token '"+e.next+"'");else{let t=TZt(e,e.next).map(n=>(e.inline==null?e.inline=n.isInline:e.inline!=n.isInline&&e.err("Mixing inline and block content"),{type:"name",value:n}));return e.pos++,t.length==1?t[0]:{type:"choice",exprs:t}}}function OZt(e){let t=[[]];return i(o(e,0),n()),t;function n(){return t.push([])-1}function r(a,s,l){let c={term:l,to:s};return t[a].push(c),c}function i(a,s){a.forEach(l=>l.to=s)}function o(a,s){if(a.type=="choice")return a.exprs.reduce((l,c)=>l.concat(o(c,s)),[]);if(a.type=="seq")for(let l=0;;l++){let c=o(a.exprs[l],s);if(l==a.exprs.length-1)return c;i(c,s=n())}else if(a.type=="star"){let l=n();return r(s,l),i(o(a.expr,l),l),[r(l)]}else if(a.type=="plus"){let l=n();return i(o(a.expr,s),l),i(o(a.expr,l),l),[r(l)]}else{if(a.type=="opt")return[r(s)].concat(o(a.expr,s));if(a.type=="range"){let l=s;for(let c=0;c<a.min;c++){let u=n();i(o(a.expr,l),u),l=u}if(a.max==-1)i(o(a.expr,l),l);else for(let c=a.min;c<a.max;c++){let u=n();r(l,u),i(o(a.expr,l),u),l=u}return[r(l)]}else{if(a.type=="name")return[r(s,void 0,a.value)];throw new Error("Unknown expr type")}}}}function VMe(e,t){return t-e}function tue(e,t){let n=[];return r(t),n.sort(VMe);function r(i){let o=e[i];if(o.length==1&&!o[0].term)return r(o[0].to);n.push(i);for(let a=0;a<o.length;a++){let{term:s,to:l}=o[a];!s&&n.indexOf(l)==-1&&r(l)}}}function RZt(e){let t=Object.create(null);return n(tue(e,0));function n(r){let i=[];r.forEach(a=>{e[a].forEach(({term:s,to:l})=>{if(!s)return;let c;for(let u=0;u<i.length;u++)i[u][0]==s&&(c=i[u][1]);tue(e,l).forEach(u=>{c||i.push([s,c=[]]),c.indexOf(u)==-1&&c.push(u)})})});let o=t[r.join(",")]=new Jv(r.indexOf(e.length-1)>-1);for(let a=0;a<i.length;a++){let s=i[a][1].sort(VMe);o.next.push({type:i[a][0],next:t[s.join(",")]||n(s)})}return o}}function IZt(e,t){for(let n=0,r=[e];n<r.length;n++){let i=r[n],o=!i.validEnd,a=[];for(let s=0;s<i.next.length;s++){let{type:l,next:c}=i.next[s];a.push(l.name),o&&!(l.isText||l.hasRequiredAttrs())&&(o=!1),r.indexOf(c)==-1&&r.push(c)}o&&t.err("Only non-generatable nodes ("+a.join(", ")+") in a required position (see https://prosemirror.net/docs/guide/#generatable)")}}function GMe(e){let t=Object.create(null);for(let n in e){let r=e[n];if(!r.hasDefault)return null;t[n]=r.default}return t}function WMe(e,t){let n=Object.create(null);for(let r in e){let i=t&&t[r];if(i===void 0){let o=e[r];if(o.hasDefault)i=o.default;else throw new RangeError("No value supplied for attribute "+r)}n[r]=i}return n}function qMe(e,t,n,r){for(let i in t)if(!(i in e))throw new RangeError(`Unsupported attribute ${i} for ${n} of type ${i}`);for(let i in e){let o=e[i];o.validate&&o.validate(t[i])}}function YMe(e,t){let n=Object.create(null);if(t)for(let r in t)n[r]=new NZt(e,r,t[r]);return n}let nue=class KMe{constructor(t,n,r){this.name=t,this.schema=n,this.spec=r,this.markSet=null,this.groups=r.group?r.group.split(" "):[],this.attrs=YMe(t,r.attrs),this.defaultAttrs=GMe(this.attrs),this.contentMatch=null,this.inlineContent=null,this.isBlock=!(r.inline||t=="text"),this.isText=t=="text"}get isInline(){return!this.isBlock}get isTextblock(){return this.isBlock&&this.inlineContent}get isLeaf(){return this.contentMatch==Jv.empty}get isAtom(){return this.isLeaf||!!this.spec.atom}isInGroup(t){return this.groups.indexOf(t)>-1}get whitespace(){return this.spec.whitespace||(this.spec.code?"pre":"normal")}hasRequiredAttrs(){for(let t in this.attrs)if(this.attrs[t].isRequired)return!0;return!1}compatibleContent(t){return this==t||this.contentMatch.compatible(t.contentMatch)}computeAttrs(t){return!t&&this.defaultAttrs?this.defaultAttrs:WMe(this.attrs,t)}create(t=null,n,r){if(this.isText)throw new Error("NodeType.create can't construct text nodes");return new ag(this,this.computeAttrs(t),Xt.from(n),ji.setFrom(r))}createChecked(t=null,n,r){return n=Xt.from(n),this.checkContent(n),new ag(this,this.computeAttrs(t),n,ji.setFrom(r))}createAndFill(t=null,n,r){if(t=this.computeAttrs(t),n=Xt.from(n),n.size){let a=this.contentMatch.fillBefore(n);if(!a)return null;n=a.append(n)}let i=this.contentMatch.matchFragment(n),o=i&&i.fillBefore(Xt.empty,!0);return o?new ag(this,t,n.append(o),ji.setFrom(r)):null}validContent(t){let n=this.contentMatch.matchFragment(t);if(!n||!n.validEnd)return!1;for(let r=0;r<t.childCount;r++)if(!this.allowsMarks(t.child(r).marks))return!1;return!0}checkContent(t){if(!this.validContent(t))throw new RangeError(`Invalid content for node ${this.name}: ${t.toString().slice(0,50)}`)}checkAttrs(t){qMe(this.attrs,t,"node",this.name)}allowsMarkType(t){return this.markSet==null||this.markSet.indexOf(t)>-1}allowsMarks(t){if(this.markSet==null)return!0;for(let n=0;n<t.length;n++)if(!this.allowsMarkType(t[n].type))return!1;return!0}allowedMarks(t){if(this.markSet==null)return t;let n;for(let r=0;r<t.length;r++)this.allowsMarkType(t[r].type)?n&&n.push(t[r]):n||(n=t.slice(0,r));return n?n.length?n:ji.none:t}static compile(t,n){let r=Object.create(null);t.forEach((o,a)=>r[o]=new KMe(o,n,a));let i=n.spec.topNode||"doc";if(!r[i])throw new RangeError("Schema is missing its top node type ('"+i+"')");if(!r.text)throw new RangeError("Every schema needs a 'text' type");for(let o in r.text.attrs)throw new RangeError("The text node type should not have attributes");return r}};function AZt(e,t,n){let r=n.split("|");return i=>{let o=i===null?"null":typeof i;if(r.indexOf(o)<0)throw new RangeError(`Expected value of type ${r} for attribute ${t} on type ${e}, got ${o}`)}}class NZt{constructor(t,n,r){this.hasDefault=Object.prototype.hasOwnProperty.call(r,"default"),this.default=r.default,this.validate=typeof r.validate=="string"?AZt(t,n,r.validate):r.validate}get isRequired(){return!this.hasDefault}}class W3{constructor(t,n,r,i){this.name=t,this.rank=n,this.schema=r,this.spec=i,this.attrs=YMe(t,i.attrs),this.excluded=null;let o=GMe(this.attrs);this.instance=o?new ji(this,o):null}create(t=null){return!t&&this.instance?this.instance:new ji(this,WMe(this.attrs,t))}static compile(t,n){let r=Object.create(null),i=0;return t.forEach((o,a)=>r[o]=new W3(o,i++,n,a)),r}removeFromSet(t){for(var n=0;n<t.length;n++)t[n].type==this&&(t=t.slice(0,n).concat(t.slice(n+1)),n--);return t}isInSet(t){for(let n=0;n<t.length;n++)if(t[n].type==this)return t[n]}checkAttrs(t){qMe(this.attrs,t,"mark",this.name)}excludes(t){return this.excluded.indexOf(t)>-1}}class QMe{constructor(t){this.linebreakReplacement=null,this.cached=Object.create(null);let n=this.spec={};for(let i in t)n[i]=t[i];n.nodes=Qa.from(t.nodes),n.marks=Qa.from(t.marks||{}),this.nodes=nue.compile(this.spec.nodes,this),this.marks=W3.compile(this.spec.marks,this);let r=Object.create(null);for(let i in this.nodes){if(i in this.marks)throw new RangeError(i+" can not be both a node and a mark");let o=this.nodes[i],a=o.spec.content||"",s=o.spec.marks;if(o.contentMatch=r[a]||(r[a]=Jv.parse(a,this.nodes)),o.inlineContent=o.contentMatch.inlineContent,o.spec.linebreakReplacement){if(this.linebreakReplacement)throw new RangeError("Multiple linebreak nodes defined");if(!o.isInline||!o.isLeaf)throw new RangeError("Linebreak replacement nodes must be inline leaf nodes");this.linebreakReplacement=o}o.markSet=s=="_"?null:s?rue(this,s.split(" ")):s==""||!o.inlineContent?[]:null}for(let i in this.marks){let o=this.marks[i],a=o.spec.excludes;o.excluded=a==null?[o]:a==""?[]:rue(this,a.split(" "))}this.nodeFromJSON=this.nodeFromJSON.bind(this),this.markFromJSON=this.markFromJSON.bind(this),this.topNodeType=this.nodes[this.spec.topNode||"doc"],this.cached.wrappings=Object.create(null)}node(t,n=null,r,i){if(typeof t=="string")t=this.nodeType(t);else if(t instanceof nue){if(t.schema!=this)throw new RangeError("Node type from different schema used ("+t.name+")")}else throw new RangeError("Invalid node type: "+t);return t.createChecked(n,r,i)}text(t,n){let r=this.nodes.text;return new Bk(r,r.defaultAttrs,t,ji.setFrom(n))}mark(t,n){return typeof t=="string"&&(t=this.marks[t]),t.create(n)}nodeFromJSON(t){return ag.fromJSON(this,t)}markFromJSON(t){return ji.fromJSON(this,t)}nodeType(t){let n=this.nodes[t];if(!n)throw new RangeError("Unknown node type: "+t);return n}}function rue(e,t){let n=[];for(let r=0;r<t.length;r++){let i=t[r],o=e.marks[i],a=o;if(o)n.push(o);else for(let s in e.marks){let l=e.marks[s];(i=="_"||l.spec.group&&l.spec.group.split(" ").indexOf(i)>-1)&&n.push(a=l)}if(!a)throw new SyntaxError("Unknown mark type: '"+t[r]+"'")}return n}function MZt(e){return e.tag!=null}function kZt(e){return e.style!=null}let Ay=class Pz{constructor(t,n){this.schema=t,this.rules=n,this.tags=[],this.styles=[];let r=this.matchedStyles=[];n.forEach(i=>{if(MZt(i))this.tags.push(i);else if(kZt(i)){let o=/[^=]*/.exec(i.style)[0];r.indexOf(o)<0&&r.push(o),this.styles.push(i)}}),this.normalizeLists=!this.tags.some(i=>{if(!/^(ul|ol)\b/.test(i.tag)||!i.node)return!1;let o=t.nodes[i.node];return o.contentMatch.matchType(o)})}parse(t,n={}){let r=new oue(this,n,!1);return r.addAll(t,ji.none,n.from,n.to),r.finish()}parseSlice(t,n={}){let r=new oue(this,n,!0);return r.addAll(t,ji.none,n.from,n.to),Rn.maxOpen(r.finish())}matchTag(t,n,r){for(let i=r?this.tags.indexOf(r)+1:0;i<this.tags.length;i++){let o=this.tags[i];if(LZt(t,o.tag)&&(o.namespace===void 0||t.namespaceURI==o.namespace)&&(!o.context||n.matchesContext(o.context))){if(o.getAttrs){let a=o.getAttrs(t);if(a===!1)continue;o.attrs=a||void 0}return o}}}matchStyle(t,n,r,i){for(let o=i?this.styles.indexOf(i)+1:0;o<this.styles.length;o++){let a=this.styles[o],s=a.style;if(!(s.indexOf(t)!=0||a.context&&!r.matchesContext(a.context)||s.length>t.length&&(s.charCodeAt(t.length)!=61||s.slice(t.length+1)!=n))){if(a.getAttrs){let l=a.getAttrs(n);if(l===!1)continue;a.attrs=l||void 0}return a}}}static schemaRules(t){let n=[];function r(i){let o=i.priority==null?50:i.priority,a=0;for(;a<n.length;a++){let s=n[a];if((s.priority==null?50:s.priority)<o)break}n.splice(a,0,i)}for(let i in t.marks){let o=t.marks[i].spec.parseDOM;o&&o.forEach(a=>{r(a=aue(a)),a.mark||a.ignore||a.clearMark||(a.mark=i)})}for(let i in t.nodes){let o=t.nodes[i].spec.parseDOM;o&&o.forEach(a=>{r(a=aue(a)),a.node||a.ignore||a.mark||(a.node=i)})}return n}static fromSchema(t){return t.cached.domParser||(t.cached.domParser=new Pz(t,Pz.schemaRules(t)))}};const XMe={address:!0,article:!0,aside:!0,blockquote:!0,canvas:!0,dd:!0,div:!0,dl:!0,fieldset:!0,figcaption:!0,figure:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,li:!0,noscript:!0,ol:!0,output:!0,p:!0,pre:!0,section:!0,table:!0,tfoot:!0,ul:!0},PZt={head:!0,noscript:!0,object:!0,script:!0,style:!0,title:!0},ZMe={ol:!0,ul:!0},jk=1,Hk=2,Ew=4;function iue(e,t,n){return t!=null?(t?jk:0)|(t==="full"?Hk:0):e&&e.whitespace=="pre"?jk|Hk:n&~Ew}class tI{constructor(t,n,r,i,o,a){this.type=t,this.attrs=n,this.marks=r,this.solid=i,this.options=a,this.content=[],this.activeMarks=ji.none,this.match=o||(a&Ew?null:t.contentMatch)}findWrapping(t){if(!this.match){if(!this.type)return[];let n=this.type.contentMatch.fillBefore(Xt.from(t));if(n)this.match=this.type.contentMatch.matchFragment(n);else{let r=this.type.contentMatch,i;return(i=r.findWrapping(t.type))?(this.match=r,i):null}}return this.match.findWrapping(t.type)}finish(t){if(!(this.options&jk)){let r=this.content[this.content.length-1],i;if(r&&r.isText&&(i=/[ \t\r\n\u000c]+$/.exec(r.text))){let o=r;r.text.length==i[0].length?this.content.pop():this.content[this.content.length-1]=o.withText(o.text.slice(0,o.text.length-i[0].length))}}let n=Xt.from(this.content);return!t&&this.match&&(n=n.append(this.match.fillBefore(Xt.empty,!0))),this.type?this.type.create(this.attrs,n,this.marks):n}inlineContext(t){return this.type?this.type.inlineContent:this.content.length?this.content[0].isInline:t.parentNode&&!XMe.hasOwnProperty(t.parentNode.nodeName.toLowerCase())}}class oue{constructor(t,n,r){this.parser=t,this.options=n,this.isOpen=r,this.open=0;let i=n.topNode,o,a=iue(null,n.preserveWhitespace,0)|(r?Ew:0);i?o=new tI(i.type,i.attrs,ji.none,!0,n.topMatch||i.type.contentMatch,a):r?o=new tI(null,null,ji.none,!0,null,a):o=new tI(t.schema.topNodeType,null,ji.none,!0,null,a),this.nodes=[o],this.find=n.findPositions,this.needsBlock=!1}get top(){return this.nodes[this.open]}addDOM(t,n){t.nodeType==3?this.addTextNode(t,n):t.nodeType==1&&this.addElement(t,n)}addTextNode(t,n){let r=t.nodeValue,i=this.top;if(i.options&Hk||i.inlineContext(t)||/[^ \t\r\n\u000c]/.test(r)){if(i.options&jk)i.options&Hk?r=r.replace(/\r\n?/g,`
`):r=r.replace(/\r?\n|\r/g," ");else if(r=r.replace(/[ \t\r\n\u000c]+/g," "),/^[ \t\r\n\u000c]/.test(r)&&this.open==this.nodes.length-1){let o=i.content[i.content.length-1],a=t.previousSibling;(!o||a&&a.nodeName=="BR"||o.isText&&/[ \t\r\n\u000c]$/.test(o.text))&&(r=r.slice(1))}r&&this.insertNode(this.parser.schema.text(r),n),this.findInText(t)}else this.findInside(t)}addElement(t,n,r){let i=t.nodeName.toLowerCase(),o;ZMe.hasOwnProperty(i)&&this.parser.normalizeLists&&DZt(t);let a=this.options.ruleFromNode&&this.options.ruleFromNode(t)||(o=this.parser.matchTag(t,this,r));if(a?a.ignore:PZt.hasOwnProperty(i))this.findInside(t),this.ignoreFallback(t,n);else if(!a||a.skip||a.closeParent){a&&a.closeParent?this.open=Math.max(0,this.open-1):a&&a.skip.nodeType&&(t=a.skip);let s,l=this.top,c=this.needsBlock;if(XMe.hasOwnProperty(i))l.content.length&&l.content[0].isInline&&this.open&&(this.open--,l=this.top),s=!0,l.type||(this.needsBlock=!0);else if(!t.firstChild){this.leafFallback(t,n);return}let u=a&&a.skip?n:this.readStyles(t,n);u&&this.addAll(t,u),s&&this.sync(l),this.needsBlock=c}else{let s=this.readStyles(t,n);s&&this.addElementByRule(t,a,s,a.consuming===!1?o:void 0)}}leafFallback(t,n){t.nodeName=="BR"&&this.top.type&&this.top.type.inlineContent&&this.addTextNode(t.ownerDocument.createTextNode(`
`),n)}ignoreFallback(t,n){t.nodeName=="BR"&&(!this.top.type||!this.top.type.inlineContent)&&this.findPlace(this.parser.schema.text("-"),n)}readStyles(t,n){let r=t.style;if(r&&r.length)for(let i=0;i<this.parser.matchedStyles.length;i++){let o=this.parser.matchedStyles[i],a=r.getPropertyValue(o);if(a)for(let s=void 0;;){let l=this.parser.matchStyle(o,a,this,s);if(!l)break;if(l.ignore)return null;if(l.clearMark?n=n.filter(c=>!l.clearMark(c)):n=n.concat(this.parser.schema.marks[l.mark].create(l.attrs)),l.consuming===!1)s=l;else break}}return n}addElementByRule(t,n,r,i){let o,a;if(n.node)if(a=this.parser.schema.nodes[n.node],a.isLeaf)this.insertNode(a.create(n.attrs),r)||this.leafFallback(t,r);else{let l=this.enter(a,n.attrs||null,r,n.preserveWhitespace);l&&(o=!0,r=l)}else{let l=this.parser.schema.marks[n.mark];r=r.concat(l.create(n.attrs))}let s=this.top;if(a&&a.isLeaf)this.findInside(t);else if(i)this.addElement(t,r,i);else if(n.getContent)this.findInside(t),n.getContent(t,this.parser.schema).forEach(l=>this.insertNode(l,r));else{let l=t;typeof n.contentElement=="string"?l=t.querySelector(n.contentElement):typeof n.contentElement=="function"?l=n.contentElement(t):n.contentElement&&(l=n.contentElement),this.findAround(t,l,!0),this.addAll(l,r),this.findAround(t,l,!1)}o&&this.sync(s)&&this.open--}addAll(t,n,r,i){let o=r||0;for(let a=r?t.childNodes[r]:t.firstChild,s=i==null?null:t.childNodes[i];a!=s;a=a.nextSibling,++o)this.findAtPoint(t,o),this.addDOM(a,n);this.findAtPoint(t,o)}findPlace(t,n){let r,i;for(let o=this.open;o>=0;o--){let a=this.nodes[o],s=a.findWrapping(t);if(s&&(!r||r.length>s.length)&&(r=s,i=a,!s.length)||a.solid)break}if(!r)return null;this.sync(i);for(let o=0;o<r.length;o++)n=this.enterInner(r[o],null,n,!1);return n}insertNode(t,n){if(t.isInline&&this.needsBlock&&!this.top.type){let i=this.textblockFromContext();i&&(n=this.enterInner(i,null,n))}let r=this.findPlace(t,n);if(r){this.closeExtra();let i=this.top;i.match&&(i.match=i.match.matchType(t.type));let o=ji.none;for(let a of r.concat(t.marks))(i.type?i.type.allowsMarkType(a.type):sue(a.type,t.type))&&(o=a.addToSet(o));return i.content.push(t.mark(o)),!0}return!1}enter(t,n,r,i){let o=this.findPlace(t.create(n),r);return o&&(o=this.enterInner(t,n,r,!0,i)),o}enterInner(t,n,r,i=!1,o){this.closeExtra();let a=this.top;a.match=a.match&&a.match.matchType(t);let s=iue(t,o,a.options);a.options&Ew&&a.content.length==0&&(s|=Ew);let l=ji.none;return r=r.filter(c=>(a.type?a.type.allowsMarkType(c.type):sue(c.type,t))?(l=c.addToSet(l),!1):!0),this.nodes.push(new tI(t,n,l,i,null,s)),this.open++,r}closeExtra(t=!1){let n=this.nodes.length-1;if(n>this.open){for(;n>this.open;n--)this.nodes[n-1].content.push(this.nodes[n].finish(t));this.nodes.length=this.open+1}}finish(){return this.open=0,this.closeExtra(this.isOpen),this.nodes[0].finish(this.isOpen||this.options.topOpen)}sync(t){for(let n=this.open;n>=0;n--)if(this.nodes[n]==t)return this.open=n,!0;return!1}get currentPos(){this.closeExtra();let t=0;for(let n=this.open;n>=0;n--){let r=this.nodes[n].content;for(let i=r.length-1;i>=0;i--)t+=r[i].nodeSize;n&&t++}return t}findAtPoint(t,n){if(this.find)for(let r=0;r<this.find.length;r++)this.find[r].node==t&&this.find[r].offset==n&&(this.find[r].pos=this.currentPos)}findInside(t){if(this.find)for(let n=0;n<this.find.length;n++)this.find[n].pos==null&&t.nodeType==1&&t.contains(this.find[n].node)&&(this.find[n].pos=this.currentPos)}findAround(t,n,r){if(t!=n&&this.find)for(let i=0;i<this.find.length;i++)this.find[i].pos==null&&t.nodeType==1&&t.contains(this.find[i].node)&&n.compareDocumentPosition(this.find[i].node)&(r?2:4)&&(this.find[i].pos=this.currentPos)}findInText(t){if(this.find)for(let n=0;n<this.find.length;n++)this.find[n].node==t&&(this.find[n].pos=this.currentPos-(t.nodeValue.length-this.find[n].offset))}matchesContext(t){if(t.indexOf("|")>-1)return t.split(/\s*\|\s*/).some(this.matchesContext,this);let n=t.split("/"),r=this.options.context,i=!this.isOpen&&(!r||r.parent.type==this.nodes[0].type),o=-(r?r.depth+1:0)+(i?0:1),a=(s,l)=>{for(;s>=0;s--){let c=n[s];if(c==""){if(s==n.length-1||s==0)continue;for(;l>=o;l--)if(a(s-1,l))return!0;return!1}else{let u=l>0||l==0&&i?this.nodes[l].type:r&&l>=o?r.node(l-o).type:null;if(!u||u.name!=c&&!u.isInGroup(c))return!1;l--}}return!0};return a(n.length-1,this.open)}textblockFromContext(){let t=this.options.context;if(t)for(let n=t.depth;n>=0;n--){let r=t.node(n).contentMatchAt(t.indexAfter(n)).defaultType;if(r&&r.isTextblock&&r.defaultAttrs)return r}for(let n in this.parser.schema.nodes){let r=this.parser.schema.nodes[n];if(r.isTextblock&&r.defaultAttrs)return r}}}function DZt(e){for(let t=e.firstChild,n=null;t;t=t.nextSibling){let r=t.nodeType==1?t.nodeName.toLowerCase():null;r&&ZMe.hasOwnProperty(r)&&n?(n.appendChild(t),t=n):r=="li"?n=t:r&&(n=null)}}function LZt(e,t){return(e.matches||e.msMatchesSelector||e.webkitMatchesSelector||e.mozMatchesSelector).call(e,t)}function aue(e){let t={};for(let n in e)t[n]=e[n];return t}function sue(e,t){let n=t.schema.nodes;for(let r in n){let i=n[r];if(!i.allowsMarkType(e))continue;let o=[],a=s=>{o.push(s);for(let l=0;l<s.edgeCount;l++){let{type:c,next:u}=s.edge(l);if(c==t||o.indexOf(u)<0&&a(u))return!0}};if(a(i.contentMatch))return!0}}class L0{constructor(t,n){this.nodes=t,this.marks=n}serializeFragment(t,n={},r){r||(r=o6(n).createDocumentFragment());let i=r,o=[];return t.forEach(a=>{if(o.length||a.marks.length){let s=0,l=0;for(;s<o.length&&l<a.marks.length;){let c=a.marks[l];if(!this.marks[c.type.name]){l++;continue}if(!c.eq(o[s][0])||c.type.spec.spanning===!1)break;s++,l++}for(;s<o.length;)i=o.pop()[1];for(;l<a.marks.length;){let c=a.marks[l++],u=this.serializeMark(c,a.isInline,n);u&&(o.push([c,i]),i.appendChild(u.dom),i=u.contentDOM||u.dom)}}i.appendChild(this.serializeNodeInner(a,n))}),r}serializeNodeInner(t,n){let{dom:r,contentDOM:i}=lN(o6(n),this.nodes[t.type.name](t),null,t.attrs);if(i){if(t.isLeaf)throw new RangeError("Content hole not allowed in a leaf node spec");this.serializeFragment(t.content,n,i)}return r}serializeNode(t,n={}){let r=this.serializeNodeInner(t,n);for(let i=t.marks.length-1;i>=0;i--){let o=this.serializeMark(t.marks[i],t.isInline,n);o&&((o.contentDOM||o.dom).appendChild(r),r=o.dom)}return r}serializeMark(t,n,r={}){let i=this.marks[t.type.name];return i&&lN(o6(r),i(t,n),null,t.attrs)}static renderSpec(t,n,r=null,i){return lN(t,n,r,i)}static fromSchema(t){return t.cached.domSerializer||(t.cached.domSerializer=new L0(this.nodesFromSchema(t),this.marksFromSchema(t)))}static nodesFromSchema(t){let n=lue(t.nodes);return n.text||(n.text=r=>r.text),n}static marksFromSchema(t){return lue(t.marks)}}function lue(e){let t={};for(let n in e){let r=e[n].spec.toDOM;r&&(t[n]=r)}return t}function o6(e){return e.document||window.document}const cue=new WeakMap;function $Zt(e){let t=cue.get(e);return t===void 0&&cue.set(e,t=FZt(e)),t}function FZt(e){let t=null;function n(r){if(r&&typeof r=="object")if(Array.isArray(r))if(typeof r[0]=="string")t||(t=[]),t.push(r);else for(let i=0;i<r.length;i++)n(r[i]);else for(let i in r)n(r[i])}return n(e),t}function lN(e,t,n,r){if(typeof t=="string")return{dom:e.createTextNode(t)};if(t.nodeType!=null)return{dom:t};if(t.dom&&t.dom.nodeType!=null)return t;let i=t[0],o;if(typeof i!="string")throw new RangeError("Invalid array passed to renderSpec");if(r&&(o=$Zt(r))&&o.indexOf(t)>-1)throw new RangeError("Using an array from an attribute object as a DOM spec. This may be an attempted cross site scripting attack.");let a=i.indexOf(" ");a>0&&(n=i.slice(0,a),i=i.slice(a+1));let s,l=n?e.createElementNS(n,i):e.createElement(i),c=t[1],u=1;if(c&&typeof c=="object"&&c.nodeType==null&&!Array.isArray(c)){u=2;for(let d in c)if(c[d]!=null){let f=d.indexOf(" ");f>0?l.setAttributeNS(d.slice(0,f),d.slice(f+1),c[d]):l.setAttribute(d,c[d])}}for(let d=u;d<t.length;d++){let f=t[d];if(f===0){if(d<t.length-1||d>u)throw new RangeError("Content hole must be the only child of its parent node");return{dom:l,contentDOM:l}}else{let{dom:h,contentDOM:m}=lN(e,f,n,r);if(l.appendChild(h),m){if(s)throw new RangeError("Multiple content holes");s=m}}}return{dom:l,contentDOM:s}}const JMe=65535,eke=Math.pow(2,16);function BZt(e,t){return e+t*eke}function uue(e){return e&JMe}function jZt(e){return(e-(e&JMe))/eke}const tke=1,nke=2,cN=4,rke=8;class Dz{constructor(t,n,r){this.pos=t,this.delInfo=n,this.recover=r}get deleted(){return(this.delInfo&rke)>0}get deletedBefore(){return(this.delInfo&(tke|cN))>0}get deletedAfter(){return(this.delInfo&(nke|cN))>0}get deletedAcross(){return(this.delInfo&cN)>0}}class cc{constructor(t,n=!1){if(this.ranges=t,this.inverted=n,!t.length&&cc.empty)return cc.empty}recover(t){let n=0,r=uue(t);if(!this.inverted)for(let i=0;i<r;i++)n+=this.ranges[i*3+2]-this.ranges[i*3+1];return this.ranges[r*3]+n+jZt(t)}mapResult(t,n=1){return this._map(t,n,!1)}map(t,n=1){return this._map(t,n,!0)}_map(t,n,r){let i=0,o=this.inverted?2:1,a=this.inverted?1:2;for(let s=0;s<this.ranges.length;s+=3){let l=this.ranges[s]-(this.inverted?i:0);if(l>t)break;let c=this.ranges[s+o],u=this.ranges[s+a],d=l+c;if(t<=d){let f=c?t==l?-1:t==d?1:n:n,h=l+i+(f<0?0:u);if(r)return h;let m=t==(n<0?l:d)?null:BZt(s/3,t-l),g=t==l?nke:t==d?tke:cN;return(n<0?t!=l:t!=d)&&(g|=rke),new Dz(h,g,m)}i+=u-c}return r?t+i:new Dz(t+i,0,null)}touches(t,n){let r=0,i=uue(n),o=this.inverted?2:1,a=this.inverted?1:2;for(let s=0;s<this.ranges.length;s+=3){let l=this.ranges[s]-(this.inverted?r:0);if(l>t)break;let c=this.ranges[s+o],u=l+c;if(t<=u&&s==i*3)return!0;r+=this.ranges[s+a]-c}return!1}forEach(t){let n=this.inverted?2:1,r=this.inverted?1:2;for(let i=0,o=0;i<this.ranges.length;i+=3){let a=this.ranges[i],s=a-(this.inverted?o:0),l=a+(this.inverted?0:o),c=this.ranges[i+n],u=this.ranges[i+r];t(s,s+c,l,l+u),o+=u-c}}invert(){return new cc(this.ranges,!this.inverted)}toString(){return(this.inverted?"-":"")+JSON.stringify(this.ranges)}static offset(t){return t==0?cc.empty:new cc(t<0?[0,-t,0]:[0,0,t])}}cc.empty=new cc([]);class Ny{constructor(t=[],n,r=0,i=t.length){this.maps=t,this.mirror=n,this.from=r,this.to=i}slice(t=0,n=this.maps.length){return new Ny(this.maps,this.mirror,t,n)}copy(){return new Ny(this.maps.slice(),this.mirror&&this.mirror.slice(),this.from,this.to)}appendMap(t,n){this.to=this.maps.push(t),n!=null&&this.setMirror(this.maps.length-1,n)}appendMapping(t){for(let n=0,r=this.maps.length;n<t.maps.length;n++){let i=t.getMirror(n);this.appendMap(t.maps[n],i!=null&&i<n?r+i:void 0)}}getMirror(t){if(this.mirror){for(let n=0;n<this.mirror.length;n++)if(this.mirror[n]==t)return this.mirror[n+(n%2?-1:1)]}}setMirror(t,n){this.mirror||(this.mirror=[]),this.mirror.push(t,n)}appendMappingInverted(t){for(let n=t.maps.length-1,r=this.maps.length+t.maps.length;n>=0;n--){let i=t.getMirror(n);this.appendMap(t.maps[n].invert(),i!=null&&i>n?r-i-1:void 0)}}invert(){let t=new Ny;return t.appendMappingInverted(this),t}map(t,n=1){if(this.mirror)return this._map(t,n,!0);for(let r=this.from;r<this.to;r++)t=this.maps[r].map(t,n);return t}mapResult(t,n=1){return this._map(t,n,!1)}_map(t,n,r){let i=0;for(let o=this.from;o<this.to;o++){let a=this.maps[o],s=a.mapResult(t,n);if(s.recover!=null){let l=this.getMirror(o);if(l!=null&&l>o&&l<this.to){o=l,t=this.maps[l].recover(s.recover);continue}}i|=s.delInfo,t=s.pos}return r?t:new Dz(t,i,null)}}const a6=Object.create(null);class Ls{getMap(){return cc.empty}merge(t){return null}static fromJSON(t,n){if(!n||!n.stepType)throw new RangeError("Invalid input for Step.fromJSON");let r=a6[n.stepType];if(!r)throw new RangeError(`No step type ${n.stepType} defined`);return r.fromJSON(t,n)}static jsonID(t,n){if(t in a6)throw new RangeError("Duplicate use of step JSON ID "+t);return a6[t]=n,n.prototype.jsonID=t,n}}class pa{constructor(t,n){this.doc=t,this.failed=n}static ok(t){return new pa(t,null)}static fail(t){return new pa(null,t)}static fromReplace(t,n,r,i){try{return pa.ok(t.replace(n,r,i))}catch(o){if(o instanceof Lk)return pa.fail(o.message);throw o}}}function NQ(e,t,n){let r=[];for(let i=0;i<e.childCount;i++){let o=e.child(i);o.content.size&&(o=o.copy(NQ(o.content,t,o))),o.isInline&&(o=t(o,n,i)),r.push(o)}return Xt.fromArray(r)}class $m extends Ls{constructor(t,n,r){super(),this.from=t,this.to=n,this.mark=r}apply(t){let n=t.slice(this.from,this.to),r=t.resolve(this.from),i=r.node(r.sharedDepth(this.to)),o=new Rn(NQ(n.content,(a,s)=>!a.isAtom||!s.type.allowsMarkType(this.mark.type)?a:a.mark(this.mark.addToSet(a.marks)),i),n.openStart,n.openEnd);return pa.fromReplace(t,this.from,this.to,o)}invert(){return new Tf(this.from,this.to,this.mark)}map(t){let n=t.mapResult(this.from,1),r=t.mapResult(this.to,-1);return n.deleted&&r.deleted||n.pos>=r.pos?null:new $m(n.pos,r.pos,this.mark)}merge(t){return t instanceof $m&&t.mark.eq(this.mark)&&this.from<=t.to&&this.to>=t.from?new $m(Math.min(this.from,t.from),Math.max(this.to,t.to),this.mark):null}toJSON(){return{stepType:"addMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(t,n){if(typeof n.from!="number"||typeof n.to!="number")throw new RangeError("Invalid input for AddMarkStep.fromJSON");return new $m(n.from,n.to,t.markFromJSON(n.mark))}}Ls.jsonID("addMark",$m);class Tf extends Ls{constructor(t,n,r){super(),this.from=t,this.to=n,this.mark=r}apply(t){let n=t.slice(this.from,this.to),r=new Rn(NQ(n.content,i=>i.mark(this.mark.removeFromSet(i.marks)),t),n.openStart,n.openEnd);return pa.fromReplace(t,this.from,this.to,r)}invert(){return new $m(this.from,this.to,this.mark)}map(t){let n=t.mapResult(this.from,1),r=t.mapResult(this.to,-1);return n.deleted&&r.deleted||n.pos>=r.pos?null:new Tf(n.pos,r.pos,this.mark)}merge(t){return t instanceof Tf&&t.mark.eq(this.mark)&&this.from<=t.to&&this.to>=t.from?new Tf(Math.min(this.from,t.from),Math.max(this.to,t.to),this.mark):null}toJSON(){return{stepType:"removeMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(t,n){if(typeof n.from!="number"||typeof n.to!="number")throw new RangeError("Invalid input for RemoveMarkStep.fromJSON");return new Tf(n.from,n.to,t.markFromJSON(n.mark))}}Ls.jsonID("removeMark",Tf);class Fm extends Ls{constructor(t,n){super(),this.pos=t,this.mark=n}apply(t){let n=t.nodeAt(this.pos);if(!n)return pa.fail("No node at mark step's position");let r=n.type.create(n.attrs,null,this.mark.addToSet(n.marks));return pa.fromReplace(t,this.pos,this.pos+1,new Rn(Xt.from(r),0,n.isLeaf?0:1))}invert(t){let n=t.nodeAt(this.pos);if(n){let r=this.mark.addToSet(n.marks);if(r.length==n.marks.length){for(let i=0;i<n.marks.length;i++)if(!n.marks[i].isInSet(r))return new Fm(this.pos,n.marks[i]);return new Fm(this.pos,this.mark)}}return new j_(this.pos,this.mark)}map(t){let n=t.mapResult(this.pos,1);return n.deletedAfter?null:new Fm(n.pos,this.mark)}toJSON(){return{stepType:"addNodeMark",pos:this.pos,mark:this.mark.toJSON()}}static fromJSON(t,n){if(typeof n.pos!="number")throw new RangeError("Invalid input for AddNodeMarkStep.fromJSON");return new Fm(n.pos,t.markFromJSON(n.mark))}}Ls.jsonID("addNodeMark",Fm);class j_ extends Ls{constructor(t,n){super(),this.pos=t,this.mark=n}apply(t){let n=t.nodeAt(this.pos);if(!n)return pa.fail("No node at mark step's position");let r=n.type.create(n.attrs,null,this.mark.removeFromSet(n.marks));return pa.fromReplace(t,this.pos,this.pos+1,new Rn(Xt.from(r),0,n.isLeaf?0:1))}invert(t){let n=t.nodeAt(this.pos);return!n||!this.mark.isInSet(n.marks)?this:new Fm(this.pos,this.mark)}map(t){let n=t.mapResult(this.pos,1);return n.deletedAfter?null:new j_(n.pos,this.mark)}toJSON(){return{stepType:"removeNodeMark",pos:this.pos,mark:this.mark.toJSON()}}static fromJSON(t,n){if(typeof n.pos!="number")throw new RangeError("Invalid input for RemoveNodeMarkStep.fromJSON");return new j_(n.pos,t.markFromJSON(n.mark))}}Ls.jsonID("removeNodeMark",j_);class Sa extends Ls{constructor(t,n,r,i=!1){super(),this.from=t,this.to=n,this.slice=r,this.structure=i}apply(t){return this.structure&&Lz(t,this.from,this.to)?pa.fail("Structure replace would overwrite content"):pa.fromReplace(t,this.from,this.to,this.slice)}getMap(){return new cc([this.from,this.to-this.from,this.slice.size])}invert(t){return new Sa(this.from,this.from+this.slice.size,t.slice(this.from,this.to))}map(t){let n=t.mapResult(this.from,1),r=t.mapResult(this.to,-1);return n.deletedAcross&&r.deletedAcross?null:new Sa(n.pos,Math.max(n.pos,r.pos),this.slice)}merge(t){if(!(t instanceof Sa)||t.structure||this.structure)return null;if(this.from+this.slice.size==t.from&&!this.slice.openEnd&&!t.slice.openStart){let n=this.slice.size+t.slice.size==0?Rn.empty:new Rn(this.slice.content.append(t.slice.content),this.slice.openStart,t.slice.openEnd);return new Sa(this.from,this.to+(t.to-t.from),n,this.structure)}else if(t.to==this.from&&!this.slice.openStart&&!t.slice.openEnd){let n=this.slice.size+t.slice.size==0?Rn.empty:new Rn(t.slice.content.append(this.slice.content),t.slice.openStart,this.slice.openEnd);return new Sa(t.from,this.to,n,this.structure)}else return null}toJSON(){let t={stepType:"replace",from:this.from,to:this.to};return this.slice.size&&(t.slice=this.slice.toJSON()),this.structure&&(t.structure=!0),t}static fromJSON(t,n){if(typeof n.from!="number"||typeof n.to!="number")throw new RangeError("Invalid input for ReplaceStep.fromJSON");return new Sa(n.from,n.to,Rn.fromJSON(t,n.slice),!!n.structure)}}Ls.jsonID("replace",Sa);class Ua extends Ls{constructor(t,n,r,i,o,a,s=!1){super(),this.from=t,this.to=n,this.gapFrom=r,this.gapTo=i,this.slice=o,this.insert=a,this.structure=s}apply(t){if(this.structure&&(Lz(t,this.from,this.gapFrom)||Lz(t,this.gapTo,this.to)))return pa.fail("Structure gap-replace would overwrite content");let n=t.slice(this.gapFrom,this.gapTo);if(n.openStart||n.openEnd)return pa.fail("Gap is not a flat range");let r=this.slice.insertAt(this.insert,n.content);return r?pa.fromReplace(t,this.from,this.to,r):pa.fail("Content does not fit in gap")}getMap(){return new cc([this.from,this.gapFrom-this.from,this.insert,this.gapTo,this.to-this.gapTo,this.slice.size-this.insert])}invert(t){let n=this.gapTo-this.gapFrom;return new Ua(this.from,this.from+this.slice.size+n,this.from+this.insert,this.from+this.insert+n,t.slice(this.from,this.to).removeBetween(this.gapFrom-this.from,this.gapTo-this.from),this.gapFrom-this.from,this.structure)}map(t){let n=t.mapResult(this.from,1),r=t.mapResult(this.to,-1),i=this.from==this.gapFrom?n.pos:t.map(this.gapFrom,-1),o=this.to==this.gapTo?r.pos:t.map(this.gapTo,1);return n.deletedAcross&&r.deletedAcross||i<n.pos||o>r.pos?null:new Ua(n.pos,r.pos,i,o,this.slice,this.insert,this.structure)}toJSON(){let t={stepType:"replaceAround",from:this.from,to:this.to,gapFrom:this.gapFrom,gapTo:this.gapTo,insert:this.insert};return this.slice.size&&(t.slice=this.slice.toJSON()),this.structure&&(t.structure=!0),t}static fromJSON(t,n){if(typeof n.from!="number"||typeof n.to!="number"||typeof n.gapFrom!="number"||typeof n.gapTo!="number"||typeof n.insert!="number")throw new RangeError("Invalid input for ReplaceAroundStep.fromJSON");return new Ua(n.from,n.to,n.gapFrom,n.gapTo,Rn.fromJSON(t,n.slice),n.insert,!!n.structure)}}Ls.jsonID("replaceAround",Ua);function Lz(e,t,n){let r=e.resolve(t),i=n-t,o=r.depth;for(;i>0&&o>0&&r.indexAfter(o)==r.node(o).childCount;)o--,i--;if(i>0){let a=r.node(o).maybeChild(r.indexAfter(o));for(;i>0;){if(!a||a.isLeaf)return!0;a=a.firstChild,i--}}return!1}function HZt(e,t,n,r){let i=[],o=[],a,s;e.doc.nodesBetween(t,n,(l,c,u)=>{if(!l.isInline)return;let d=l.marks;if(!r.isInSet(d)&&u.type.allowsMarkType(r.type)){let f=Math.max(c,t),h=Math.min(c+l.nodeSize,n),m=r.addToSet(d);for(let g=0;g<d.length;g++)d[g].isInSet(m)||(a&&a.to==f&&a.mark.eq(d[g])?a.to=h:i.push(a=new Tf(f,h,d[g])));s&&s.to==f?s.to=h:o.push(s=new $m(f,h,r))}}),i.forEach(l=>e.step(l)),o.forEach(l=>e.step(l))}function UZt(e,t,n,r){let i=[],o=0;e.doc.nodesBetween(t,n,(a,s)=>{if(!a.isInline)return;o++;let l=null;if(r instanceof W3){let c=a.marks,u;for(;u=r.isInSet(c);)(l||(l=[])).push(u),c=u.removeFromSet(c)}else r?r.isInSet(a.marks)&&(l=[r]):l=a.marks;if(l&&l.length){let c=Math.min(s+a.nodeSize,n);for(let u=0;u<l.length;u++){let d=l[u],f;for(let h=0;h<i.length;h++){let m=i[h];m.step==o-1&&d.eq(i[h].style)&&(f=m)}f?(f.to=c,f.step=o):i.push({style:d,from:Math.max(s,t),to:c,step:o})}}}),i.forEach(a=>e.step(new Tf(a.from,a.to,a.style)))}function MQ(e,t,n,r=n.contentMatch,i=!0){let o=e.doc.nodeAt(t),a=[],s=t+1;for(let l=0;l<o.childCount;l++){let c=o.child(l),u=s+c.nodeSize,d=r.matchType(c.type);if(!d)a.push(new Sa(s,u,Rn.empty));else{r=d;for(let f=0;f<c.marks.length;f++)n.allowsMarkType(c.marks[f].type)||e.step(new Tf(s,u,c.marks[f]));if(i&&c.isText&&n.whitespace!="pre"){let f,h=/\r?\n|\r/g,m;for(;f=h.exec(c.text);)m||(m=new Rn(Xt.from(n.schema.text(" ",n.allowedMarks(c.marks))),0,0)),a.push(new Sa(s+f.index,s+f.index+f[0].length,m))}}s=u}if(!r.validEnd){let l=r.fillBefore(Xt.empty,!0);e.replace(s,s,new Rn(l,0,0))}for(let l=a.length-1;l>=0;l--)e.step(a[l])}function zZt(e,t,n){return(t==0||e.canReplace(t,e.childCount))&&(n==e.childCount||e.canReplace(0,n))}function oE(e){let t=e.parent.content.cutByIndex(e.startIndex,e.endIndex);for(let n=e.depth;;--n){let r=e.$from.node(n),i=e.$from.index(n),o=e.$to.indexAfter(n);if(n<e.depth&&r.canReplace(i,o,t))return n;if(n==0||r.type.spec.isolating||!zZt(r,i,o))break}return null}function VZt(e,t,n){let{$from:r,$to:i,depth:o}=t,a=r.before(o+1),s=i.after(o+1),l=a,c=s,u=Xt.empty,d=0;for(let m=o,g=!1;m>n;m--)g||r.index(m)>0?(g=!0,u=Xt.from(r.node(m).copy(u)),d++):l--;let f=Xt.empty,h=0;for(let m=o,g=!1;m>n;m--)g||i.after(m+1)<i.end(m)?(g=!0,f=Xt.from(i.node(m).copy(f)),h++):c++;e.step(new Ua(l,c,a,s,new Rn(u.append(f),d,h),u.size-d,!0))}function kQ(e,t,n=null,r=e){let i=GZt(e,t),o=i&&WZt(r,t);return o?i.map(due).concat({type:t,attrs:n}).concat(o.map(due)):null}function due(e){return{type:e,attrs:null}}function GZt(e,t){let{parent:n,startIndex:r,endIndex:i}=e,o=n.contentMatchAt(r).findWrapping(t);if(!o)return null;let a=o.length?o[0]:t;return n.canReplaceWith(r,i,a)?o:null}function WZt(e,t){let{parent:n,startIndex:r,endIndex:i}=e,o=n.child(r),a=t.contentMatch.findWrapping(o.type);if(!a)return null;let s=(a.length?a[a.length-1]:t).contentMatch;for(let l=r;s&&l<i;l++)s=s.matchType(n.child(l).type);return!s||!s.validEnd?null:a}function qZt(e,t,n){let r=Xt.empty;for(let a=n.length-1;a>=0;a--){if(r.size){let s=n[a].type.contentMatch.matchFragment(r);if(!s||!s.validEnd)throw new RangeError("Wrapper type given to Transform.wrap does not form valid content of its parent wrapper")}r=Xt.from(n[a].type.create(n[a].attrs,r))}let i=t.start,o=t.end;e.step(new Ua(i,o,i,o,new Rn(r,0,0),n.length,!0))}function YZt(e,t,n,r,i){if(!r.isTextblock)throw new RangeError("Type given to setBlockType should be a textblock");let o=e.steps.length;e.doc.nodesBetween(t,n,(a,s)=>{let l=typeof i=="function"?i(a):i;if(a.isTextblock&&!a.hasMarkup(r,l)&&KZt(e.doc,e.mapping.slice(o).map(s),r)){let c=null;if(r.schema.linebreakReplacement){let h=r.whitespace=="pre",m=!!r.contentMatch.matchType(r.schema.linebreakReplacement);h&&!m?c=!1:!h&&m&&(c=!0)}c===!1&&oke(e,a,s,o),MQ(e,e.mapping.slice(o).map(s,1),r,void 0,c===null);let u=e.mapping.slice(o),d=u.map(s,1),f=u.map(s+a.nodeSize,1);return e.step(new Ua(d,f,d+1,f-1,new Rn(Xt.from(r.create(l,null,a.marks)),0,0),1,!0)),c===!0&&ike(e,a,s,o),!1}})}function ike(e,t,n,r){t.forEach((i,o)=>{if(i.isText){let a,s=/\r?\n|\r/g;for(;a=s.exec(i.text);){let l=e.mapping.slice(r).map(n+1+o+a.index);e.replaceWith(l,l+1,t.type.schema.linebreakReplacement.create())}}})}function oke(e,t,n,r){t.forEach((i,o)=>{if(i.type==i.type.schema.linebreakReplacement){let a=e.mapping.slice(r).map(n+1+o);e.replaceWith(a,a+1,t.type.schema.text(`
`))}})}function KZt(e,t,n){let r=e.resolve(t),i=r.index();return r.parent.canReplaceWith(i,i+1,n)}function QZt(e,t,n,r,i){let o=e.doc.nodeAt(t);if(!o)throw new RangeError("No node at given position");n||(n=o.type);let a=n.create(r,null,i||o.marks);if(o.isLeaf)return e.replaceWith(t,t+o.nodeSize,a);if(!n.validContent(o.content))throw new RangeError("Invalid content for node type "+n.name);e.step(new Ua(t,t+o.nodeSize,t+1,t+o.nodeSize-1,new Rn(Xt.from(a),0,0),1,!0))}function My(e,t,n=1,r){let i=e.resolve(t),o=i.depth-n,a=r&&r[r.length-1]||i.parent;if(o<0||i.parent.type.spec.isolating||!i.parent.canReplace(i.index(),i.parent.childCount)||!a.type.validContent(i.parent.content.cutByIndex(i.index(),i.parent.childCount)))return!1;for(let c=i.depth-1,u=n-2;c>o;c--,u--){let d=i.node(c),f=i.index(c);if(d.type.spec.isolating)return!1;let h=d.content.cutByIndex(f,d.childCount),m=r&&r[u+1];m&&(h=h.replaceChild(0,m.type.create(m.attrs)));let g=r&&r[u]||d;if(!d.canReplace(f+1,d.childCount)||!g.type.validContent(h))return!1}let s=i.indexAfter(o),l=r&&r[0];return i.node(o).canReplaceWith(s,s,l?l.type:i.node(o+1).type)}function XZt(e,t,n=1,r){let i=e.doc.resolve(t),o=Xt.empty,a=Xt.empty;for(let s=i.depth,l=i.depth-n,c=n-1;s>l;s--,c--){o=Xt.from(i.node(s).copy(o));let u=r&&r[c];a=Xt.from(u?u.type.create(u.attrs,a):i.node(s).copy(a))}e.step(new Sa(t,t,new Rn(o.append(a),n,n),!0))}function $g(e,t){let n=e.resolve(t),r=n.index();return ake(n.nodeBefore,n.nodeAfter)&&n.parent.canReplace(r,r+1)}function ZZt(e,t){t.content.size||e.type.compatibleContent(t.type);let n=e.contentMatchAt(e.childCount),{linebreakReplacement:r}=e.type.schema;for(let i=0;i<t.childCount;i++){let o=t.child(i),a=o.type==r?e.type.schema.nodes.text:o.type;if(n=n.matchType(a),!n||!e.type.allowsMarks(o.marks))return!1}return n.validEnd}function ake(e,t){return!!(e&&t&&!e.isLeaf&&ZZt(e,t))}function q3(e,t,n=-1){let r=e.resolve(t);for(let i=r.depth;;i--){let o,a,s=r.index(i);if(i==r.depth?(o=r.nodeBefore,a=r.nodeAfter):n>0?(o=r.node(i+1),s++,a=r.node(i).maybeChild(s)):(o=r.node(i).maybeChild(s-1),a=r.node(i+1)),o&&!o.isTextblock&&ake(o,a)&&r.node(i).canReplace(s,s+1))return t;if(i==0)break;t=n<0?r.before(i):r.after(i)}}function JZt(e,t,n){let r=null,{linebreakReplacement:i}=e.doc.type.schema,o=e.doc.resolve(t-n),a=o.node().type;if(i&&a.inlineContent){let u=a.whitespace=="pre",d=!!a.contentMatch.matchType(i);u&&!d?r=!1:!u&&d&&(r=!0)}let s=e.steps.length;if(r===!1){let u=e.doc.resolve(t+n);oke(e,u.node(),u.before(),s)}a.inlineContent&&MQ(e,t+n-1,a,o.node().contentMatchAt(o.index()),r==null);let l=e.mapping.slice(s),c=l.map(t-n);if(e.step(new Sa(c,l.map(t+n,-1),Rn.empty,!0)),r===!0){let u=e.doc.resolve(c);ike(e,u.node(),u.before(),e.steps.length)}return e}function eJt(e,t,n){let r=e.resolve(t);if(r.parent.canReplaceWith(r.index(),r.index(),n))return t;if(r.parentOffset==0)for(let i=r.depth-1;i>=0;i--){let o=r.index(i);if(r.node(i).canReplaceWith(o,o,n))return r.before(i+1);if(o>0)return null}if(r.parentOffset==r.parent.content.size)for(let i=r.depth-1;i>=0;i--){let o=r.indexAfter(i);if(r.node(i).canReplaceWith(o,o,n))return r.after(i+1);if(o<r.node(i).childCount)return null}return null}function ske(e,t,n){let r=e.resolve(t);if(!n.content.size)return t;let i=n.content;for(let o=0;o<n.openStart;o++)i=i.firstChild.content;for(let o=1;o<=(n.openStart==0&&n.size?2:1);o++)for(let a=r.depth;a>=0;a--){let s=a==r.depth?0:r.pos<=(r.start(a+1)+r.end(a+1))/2?-1:1,l=r.index(a)+(s>0?1:0),c=r.node(a),u=!1;if(o==1)u=c.canReplace(l,l,i);else{let d=c.contentMatchAt(l).findWrapping(i.firstChild.type);u=d&&c.canReplaceWith(l,l,d[0])}if(u)return s==0?r.pos:s<0?r.before(a+1):r.after(a+1)}return null}function Y3(e,t,n=t,r=Rn.empty){if(t==n&&!r.size)return null;let i=e.resolve(t),o=e.resolve(n);return lke(i,o,r)?new Sa(t,n,r):new tJt(i,o,r).fit()}function lke(e,t,n){return!n.openStart&&!n.openEnd&&e.start()==t.start()&&e.parent.canReplace(e.index(),t.index(),n.content)}class tJt{constructor(t,n,r){this.$from=t,this.$to=n,this.unplaced=r,this.frontier=[],this.placed=Xt.empty;for(let i=0;i<=t.depth;i++){let o=t.node(i);this.frontier.push({type:o.type,match:o.contentMatchAt(t.indexAfter(i))})}for(let i=t.depth;i>0;i--)this.placed=Xt.from(t.node(i).copy(this.placed))}get depth(){return this.frontier.length-1}fit(){for(;this.unplaced.size;){let c=this.findFittable();c?this.placeNodes(c):this.openMore()||this.dropNode()}let t=this.mustMoveInline(),n=this.placed.size-this.depth-this.$from.depth,r=this.$from,i=this.close(t<0?this.$to:r.doc.resolve(t));if(!i)return null;let o=this.placed,a=r.depth,s=i.depth;for(;a&&s&&o.childCount==1;)o=o.firstChild.content,a--,s--;let l=new Rn(o,a,s);return t>-1?new Ua(r.pos,t,this.$to.pos,this.$to.end(),l,n):l.size||r.pos!=this.$to.pos?new Sa(r.pos,i.pos,l):null}findFittable(){let t=this.unplaced.openStart;for(let n=this.unplaced.content,r=0,i=this.unplaced.openEnd;r<t;r++){let o=n.firstChild;if(n.childCount>1&&(i=0),o.type.spec.isolating&&i<=r){t=r;break}n=o.content}for(let n=1;n<=2;n++)for(let r=n==1?t:this.unplaced.openStart;r>=0;r--){let i,o=null;r?(o=s6(this.unplaced.content,r-1).firstChild,i=o.content):i=this.unplaced.content;let a=i.firstChild;for(let s=this.depth;s>=0;s--){let{type:l,match:c}=this.frontier[s],u,d=null;if(n==1&&(a?c.matchType(a.type)||(d=c.fillBefore(Xt.from(a),!1)):o&&l.compatibleContent(o.type)))return{sliceDepth:r,frontierDepth:s,parent:o,inject:d};if(n==2&&a&&(u=c.findWrapping(a.type)))return{sliceDepth:r,frontierDepth:s,parent:o,wrap:u};if(o&&c.matchType(o.type))break}}}openMore(){let{content:t,openStart:n,openEnd:r}=this.unplaced,i=s6(t,n);return!i.childCount||i.firstChild.isLeaf?!1:(this.unplaced=new Rn(t,n+1,Math.max(r,i.size+n>=t.size-r?n+1:0)),!0)}dropNode(){let{content:t,openStart:n,openEnd:r}=this.unplaced,i=s6(t,n);if(i.childCount<=1&&n>0){let o=t.size-n<=n+i.size;this.unplaced=new Rn(jC(t,n-1,1),n-1,o?n-1:r)}else this.unplaced=new Rn(jC(t,n,1),n,r)}placeNodes({sliceDepth:t,frontierDepth:n,parent:r,inject:i,wrap:o}){for(;this.depth>n;)this.closeFrontierNode();if(o)for(let g=0;g<o.length;g++)this.openFrontierNode(o[g]);let a=this.unplaced,s=r?r.content:a.content,l=a.openStart-t,c=0,u=[],{match:d,type:f}=this.frontier[n];if(i){for(let g=0;g<i.childCount;g++)u.push(i.child(g));d=d.matchFragment(i)}let h=s.size+t-(a.content.size-a.openEnd);for(;c<s.childCount;){let g=s.child(c),v=d.matchType(g.type);if(!v)break;c++,(c>1||l==0||g.content.size)&&(d=v,u.push(cke(g.mark(f.allowedMarks(g.marks)),c==1?l:0,c==s.childCount?h:-1)))}let m=c==s.childCount;m||(h=-1),this.placed=HC(this.placed,n,Xt.from(u)),this.frontier[n].match=d,m&&h<0&&r&&r.type==this.frontier[this.depth].type&&this.frontier.length>1&&this.closeFrontierNode();for(let g=0,v=s;g<h;g++){let y=v.lastChild;this.frontier.push({type:y.type,match:y.contentMatchAt(y.childCount)}),v=y.content}this.unplaced=m?t==0?Rn.empty:new Rn(jC(a.content,t-1,1),t-1,h<0?a.openEnd:t-1):new Rn(jC(a.content,t,c),a.openStart,a.openEnd)}mustMoveInline(){if(!this.$to.parent.isTextblock)return-1;let t=this.frontier[this.depth],n;if(!t.type.isTextblock||!l6(this.$to,this.$to.depth,t.type,t.match,!1)||this.$to.depth==this.depth&&(n=this.findCloseLevel(this.$to))&&n.depth==this.depth)return-1;let{depth:r}=this.$to,i=this.$to.after(r);for(;r>1&&i==this.$to.end(--r);)++i;return i}findCloseLevel(t){e:for(let n=Math.min(this.depth,t.depth);n>=0;n--){let{match:r,type:i}=this.frontier[n],o=n<t.depth&&t.end(n+1)==t.pos+(t.depth-(n+1)),a=l6(t,n,i,r,o);if(a){for(let s=n-1;s>=0;s--){let{match:l,type:c}=this.frontier[s],u=l6(t,s,c,l,!0);if(!u||u.childCount)continue e}return{depth:n,fit:a,move:o?t.doc.resolve(t.after(n+1)):t}}}}close(t){let n=this.findCloseLevel(t);if(!n)return null;for(;this.depth>n.depth;)this.closeFrontierNode();n.fit.childCount&&(this.placed=HC(this.placed,n.depth,n.fit)),t=n.move;for(let r=n.depth+1;r<=t.depth;r++){let i=t.node(r),o=i.type.contentMatch.fillBefore(i.content,!0,t.index(r));this.openFrontierNode(i.type,i.attrs,o)}return t}openFrontierNode(t,n=null,r){let i=this.frontier[this.depth];i.match=i.match.matchType(t),this.placed=HC(this.placed,this.depth,Xt.from(t.create(n,r))),this.frontier.push({type:t,match:t.contentMatch})}closeFrontierNode(){let t=this.frontier.pop().match.fillBefore(Xt.empty,!0);t.childCount&&(this.placed=HC(this.placed,this.frontier.length,t))}}function jC(e,t,n){return t==0?e.cutByIndex(n,e.childCount):e.replaceChild(0,e.firstChild.copy(jC(e.firstChild.content,t-1,n)))}function HC(e,t,n){return t==0?e.append(n):e.replaceChild(e.childCount-1,e.lastChild.copy(HC(e.lastChild.content,t-1,n)))}function s6(e,t){for(let n=0;n<t;n++)e=e.firstChild.content;return e}function cke(e,t,n){if(t<=0)return e;let r=e.content;return t>1&&(r=r.replaceChild(0,cke(r.firstChild,t-1,r.childCount==1?n-1:0))),t>0&&(r=e.type.contentMatch.fillBefore(r).append(r),n<=0&&(r=r.append(e.type.contentMatch.matchFragment(r).fillBefore(Xt.empty,!0)))),e.copy(r)}function l6(e,t,n,r,i){let o=e.node(t),a=i?e.indexAfter(t):e.index(t);if(a==o.childCount&&!n.compatibleContent(o.type))return null;let s=r.fillBefore(o.content,!0,a);return s&&!nJt(n,o.content,a)?s:null}function nJt(e,t,n){for(let r=n;r<t.childCount;r++)if(!e.allowsMarks(t.child(r).marks))return!0;return!1}function rJt(e){return e.spec.defining||e.spec.definingForContent}function iJt(e,t,n,r){if(!r.size)return e.deleteRange(t,n);let i=e.doc.resolve(t),o=e.doc.resolve(n);if(lke(i,o,r))return e.step(new Sa(t,n,r));let a=dke(i,e.doc.resolve(n));a[a.length-1]==0&&a.pop();let s=-(i.depth+1);a.unshift(s);for(let f=i.depth,h=i.pos-1;f>0;f--,h--){let m=i.node(f).type.spec;if(m.defining||m.definingAsContext||m.isolating)break;a.indexOf(f)>-1?s=f:i.before(f)==h&&a.splice(1,0,-f)}let l=a.indexOf(s),c=[],u=r.openStart;for(let f=r.content,h=0;;h++){let m=f.firstChild;if(c.push(m),h==r.openStart)break;f=m.content}for(let f=u-1;f>=0;f--){let h=c[f],m=rJt(h.type);if(m&&!h.sameMarkup(i.node(Math.abs(s)-1)))u=f;else if(m||!h.type.isTextblock)break}for(let f=r.openStart;f>=0;f--){let h=(f+u+1)%(r.openStart+1),m=c[h];if(m)for(let g=0;g<a.length;g++){let v=a[(g+l)%a.length],y=!0;v<0&&(y=!1,v=-v);let b=i.node(v-1),_=i.index(v-1);if(b.canReplaceWith(_,_,m.type,m.marks))return e.replace(i.before(v),y?o.after(v):n,new Rn(uke(r.content,0,r.openStart,h),h,r.openEnd))}}let d=e.steps.length;for(let f=a.length-1;f>=0&&(e.replace(t,n,r),!(e.steps.length>d));f--){let h=a[f];h<0||(t=i.before(h),n=o.after(h))}}function uke(e,t,n,r,i){if(t<n){let o=e.firstChild;e=e.replaceChild(0,o.copy(uke(o.content,t+1,n,r,o)))}if(t>r){let o=i.contentMatchAt(0),a=o.fillBefore(e).append(e);e=a.append(o.matchFragment(a).fillBefore(Xt.empty,!0))}return e}function oJt(e,t,n,r){if(!r.isInline&&t==n&&e.doc.resolve(t).parent.content.size){let i=eJt(e.doc,t,r.type);i!=null&&(t=n=i)}e.replaceRange(t,n,new Rn(Xt.from(r),0,0))}function aJt(e,t,n){let r=e.doc.resolve(t),i=e.doc.resolve(n),o=dke(r,i);for(let a=0;a<o.length;a++){let s=o[a],l=a==o.length-1;if(l&&s==0||r.node(s).type.contentMatch.validEnd)return e.delete(r.start(s),i.end(s));if(s>0&&(l||r.node(s-1).canReplace(r.index(s-1),i.indexAfter(s-1))))return e.delete(r.before(s),i.after(s))}for(let a=1;a<=r.depth&&a<=i.depth;a++)if(t-r.start(a)==r.depth-a&&n>r.end(a)&&i.end(a)-n!=i.depth-a&&r.start(a-1)==i.start(a-1)&&r.node(a-1).canReplace(r.index(a-1),i.index(a-1)))return e.delete(r.before(a),n);e.delete(t,n)}function dke(e,t){let n=[],r=Math.min(e.depth,t.depth);for(let i=r;i>=0;i--){let o=e.start(i);if(o<e.pos-(e.depth-i)||t.end(i)>t.pos+(t.depth-i)||e.node(i).type.spec.isolating||t.node(i).type.spec.isolating)break;(o==t.start(i)||i==e.depth&&i==t.depth&&e.parent.inlineContent&&t.parent.inlineContent&&i&&t.start(i-1)==o-1)&&n.push(i)}return n}class ky extends Ls{constructor(t,n,r){super(),this.pos=t,this.attr=n,this.value=r}apply(t){let n=t.nodeAt(this.pos);if(!n)return pa.fail("No node at attribute step's position");let r=Object.create(null);for(let o in n.attrs)r[o]=n.attrs[o];r[this.attr]=this.value;let i=n.type.create(r,null,n.marks);return pa.fromReplace(t,this.pos,this.pos+1,new Rn(Xt.from(i),0,n.isLeaf?0:1))}getMap(){return cc.empty}invert(t){return new ky(this.pos,this.attr,t.nodeAt(this.pos).attrs[this.attr])}map(t){let n=t.mapResult(this.pos,1);return n.deletedAfter?null:new ky(n.pos,this.attr,this.value)}toJSON(){return{stepType:"attr",pos:this.pos,attr:this.attr,value:this.value}}static fromJSON(t,n){if(typeof n.pos!="number"||typeof n.attr!="string")throw new RangeError("Invalid input for AttrStep.fromJSON");return new ky(n.pos,n.attr,n.value)}}Ls.jsonID("attr",ky);class nx extends Ls{constructor(t,n){super(),this.attr=t,this.value=n}apply(t){let n=Object.create(null);for(let i in t.attrs)n[i]=t.attrs[i];n[this.attr]=this.value;let r=t.type.create(n,t.content,t.marks);return pa.ok(r)}getMap(){return cc.empty}invert(t){return new nx(this.attr,t.attrs[this.attr])}map(t){return this}toJSON(){return{stepType:"docAttr",attr:this.attr,value:this.value}}static fromJSON(t,n){if(typeof n.attr!="string")throw new RangeError("Invalid input for DocAttrStep.fromJSON");return new nx(n.attr,n.value)}}Ls.jsonID("docAttr",nx);let H_=class extends Error{};H_=function e(t){let n=Error.call(this,t);return n.__proto__=e.prototype,n};H_.prototype=Object.create(Error.prototype);H_.prototype.constructor=H_;H_.prototype.name="TransformError";class PQ{constructor(t){this.doc=t,this.steps=[],this.docs=[],this.mapping=new Ny}get before(){return this.docs.length?this.docs[0]:this.doc}step(t){let n=this.maybeStep(t);if(n.failed)throw new H_(n.failed);return this}maybeStep(t){let n=t.apply(this.doc);return n.failed||this.addStep(t,n.doc),n}get docChanged(){return this.steps.length>0}addStep(t,n){this.docs.push(this.doc),this.steps.push(t),this.mapping.appendMap(t.getMap()),this.doc=n}replace(t,n=t,r=Rn.empty){let i=Y3(this.doc,t,n,r);return i&&this.step(i),this}replaceWith(t,n,r){return this.replace(t,n,new Rn(Xt.from(r),0,0))}delete(t,n){return this.replace(t,n,Rn.empty)}insert(t,n){return this.replaceWith(t,t,n)}replaceRange(t,n,r){return iJt(this,t,n,r),this}replaceRangeWith(t,n,r){return oJt(this,t,n,r),this}deleteRange(t,n){return aJt(this,t,n),this}lift(t,n){return VZt(this,t,n),this}join(t,n=1){return JZt(this,t,n),this}wrap(t,n){return qZt(this,t,n),this}setBlockType(t,n=t,r,i=null){return YZt(this,t,n,r,i),this}setNodeMarkup(t,n,r=null,i){return QZt(this,t,n,r,i),this}setNodeAttribute(t,n,r){return this.step(new ky(t,n,r)),this}setDocAttribute(t,n){return this.step(new nx(t,n)),this}addNodeMark(t,n){return this.step(new Fm(t,n)),this}removeNodeMark(t,n){if(!(n instanceof ji)){let r=this.doc.nodeAt(t);if(!r)throw new RangeError("No node at position "+t);if(n=n.isInSet(r.marks),!n)return this}return this.step(new j_(t,n)),this}split(t,n=1,r){return XZt(this,t,n,r),this}addMark(t,n,r){return HZt(this,t,n,r),this}removeMark(t,n,r){return UZt(this,t,n,r),this}clearIncompatible(t,n,r){return MQ(this,t,n,r),this}}const c6=Object.create(null);class mr{constructor(t,n,r){this.$anchor=t,this.$head=n,this.ranges=r||[new fke(t.min(n),t.max(n))]}get anchor(){return this.$anchor.pos}get head(){return this.$head.pos}get from(){return this.$from.pos}get to(){return this.$to.pos}get $from(){return this.ranges[0].$from}get $to(){return this.ranges[0].$to}get empty(){let t=this.ranges;for(let n=0;n<t.length;n++)if(t[n].$from.pos!=t[n].$to.pos)return!1;return!0}content(){return this.$from.doc.slice(this.from,this.to,!0)}replace(t,n=Rn.empty){let r=n.content.lastChild,i=null;for(let s=0;s<n.openEnd;s++)i=r,r=r.lastChild;let o=t.steps.length,a=this.ranges;for(let s=0;s<a.length;s++){let{$from:l,$to:c}=a[s],u=t.mapping.slice(o);t.replaceRange(u.map(l.pos),u.map(c.pos),s?Rn.empty:n),s==0&&hue(t,o,(r?r.isInline:i&&i.isTextblock)?-1:1)}}replaceWith(t,n){let r=t.steps.length,i=this.ranges;for(let o=0;o<i.length;o++){let{$from:a,$to:s}=i[o],l=t.mapping.slice(r),c=l.map(a.pos),u=l.map(s.pos);o?t.deleteRange(c,u):(t.replaceRangeWith(c,u,n),hue(t,r,n.isInline?-1:1))}}static findFrom(t,n,r=!1){let i=t.parent.inlineContent?new er(t):Rb(t.node(0),t.parent,t.pos,t.index(),n,r);if(i)return i;for(let o=t.depth-1;o>=0;o--){let a=n<0?Rb(t.node(0),t.node(o),t.before(o+1),t.index(o),n,r):Rb(t.node(0),t.node(o),t.after(o+1),t.index(o)+1,n,r);if(a)return a}return null}static near(t,n=1){return this.findFrom(t,n)||this.findFrom(t,-n)||new lu(t.node(0))}static atStart(t){return Rb(t,t,0,0,1)||new lu(t)}static atEnd(t){return Rb(t,t,t.content.size,t.childCount,-1)||new lu(t)}static fromJSON(t,n){if(!n||!n.type)throw new RangeError("Invalid input for Selection.fromJSON");let r=c6[n.type];if(!r)throw new RangeError(`No selection type ${n.type} defined`);return r.fromJSON(t,n)}static jsonID(t,n){if(t in c6)throw new RangeError("Duplicate use of selection JSON ID "+t);return c6[t]=n,n.prototype.jsonID=t,n}getBookmark(){return er.between(this.$anchor,this.$head).getBookmark()}}mr.prototype.visible=!0;class fke{constructor(t,n){this.$from=t,this.$to=n}}let fue=!1;function pue(e){!fue&&!e.parent.inlineContent&&(fue=!0,console.warn("TextSelection endpoint not pointing into a node with inline content ("+e.parent.type.name+")"))}class er extends mr{constructor(t,n=t){pue(t),pue(n),super(t,n)}get $cursor(){return this.$anchor.pos==this.$head.pos?this.$head:null}map(t,n){let r=t.resolve(n.map(this.head));if(!r.parent.inlineContent)return mr.near(r);let i=t.resolve(n.map(this.anchor));return new er(i.parent.inlineContent?i:r,r)}replace(t,n=Rn.empty){if(super.replace(t,n),n==Rn.empty){let r=this.$from.marksAcross(this.$to);r&&t.ensureMarks(r)}}eq(t){return t instanceof er&&t.anchor==this.anchor&&t.head==this.head}getBookmark(){return new K3(this.anchor,this.head)}toJSON(){return{type:"text",anchor:this.anchor,head:this.head}}static fromJSON(t,n){if(typeof n.anchor!="number"||typeof n.head!="number")throw new RangeError("Invalid input for TextSelection.fromJSON");return new er(t.resolve(n.anchor),t.resolve(n.head))}static create(t,n,r=n){let i=t.resolve(n);return new this(i,r==n?i:t.resolve(r))}static between(t,n,r){let i=t.pos-n.pos;if((!r||i)&&(r=i>=0?1:-1),!n.parent.inlineContent){let o=mr.findFrom(n,r,!0)||mr.findFrom(n,-r,!0);if(o)n=o.$head;else return mr.near(n,r)}return t.parent.inlineContent||(i==0?t=n:(t=(mr.findFrom(t,-r,!0)||mr.findFrom(t,r,!0)).$anchor,t.pos<n.pos!=i<0&&(t=n))),new er(t,n)}}mr.jsonID("text",er);class K3{constructor(t,n){this.anchor=t,this.head=n}map(t){return new K3(t.map(this.anchor),t.map(this.head))}resolve(t){return er.between(t.resolve(this.anchor),t.resolve(this.head))}}class lr extends mr{constructor(t){let n=t.nodeAfter,r=t.node(0).resolve(t.pos+n.nodeSize);super(t,r),this.node=n}map(t,n){let{deleted:r,pos:i}=n.mapResult(this.anchor),o=t.resolve(i);return r?mr.near(o):new lr(o)}content(){return new Rn(Xt.from(this.node),0,0)}eq(t){return t instanceof lr&&t.anchor==this.anchor}toJSON(){return{type:"node",anchor:this.anchor}}getBookmark(){return new DQ(this.anchor)}static fromJSON(t,n){if(typeof n.anchor!="number")throw new RangeError("Invalid input for NodeSelection.fromJSON");return new lr(t.resolve(n.anchor))}static create(t,n){return new lr(t.resolve(n))}static isSelectable(t){return!t.isText&&t.type.spec.selectable!==!1}}lr.prototype.visible=!1;mr.jsonID("node",lr);class DQ{constructor(t){this.anchor=t}map(t){let{deleted:n,pos:r}=t.mapResult(this.anchor);return n?new K3(r,r):new DQ(r)}resolve(t){let n=t.resolve(this.anchor),r=n.nodeAfter;return r&&lr.isSelectable(r)?new lr(n):mr.near(n)}}class lu extends mr{constructor(t){super(t.resolve(0),t.resolve(t.content.size))}replace(t,n=Rn.empty){if(n==Rn.empty){t.delete(0,t.doc.content.size);let r=mr.atStart(t.doc);r.eq(t.selection)||t.setSelection(r)}else super.replace(t,n)}toJSON(){return{type:"all"}}static fromJSON(t){return new lu(t)}map(t){return new lu(t)}eq(t){return t instanceof lu}getBookmark(){return sJt}}mr.jsonID("all",lu);const sJt={map(){return this},resolve(e){return new lu(e)}};function Rb(e,t,n,r,i,o=!1){if(t.inlineContent)return er.create(e,n);for(let a=r-(i>0?0:1);i>0?a<t.childCount:a>=0;a+=i){let s=t.child(a);if(s.isAtom){if(!o&&lr.isSelectable(s))return lr.create(e,n-(i<0?s.nodeSize:0))}else{let l=Rb(e,s,n+i,i<0?s.childCount:0,i,o);if(l)return l}n+=s.nodeSize*i}return null}function hue(e,t,n){let r=e.steps.length-1;if(r<t)return;let i=e.steps[r];if(!(i instanceof Sa||i instanceof Ua))return;let o=e.mapping.maps[r],a;o.forEach((s,l,c,u)=>{a==null&&(a=u)}),e.setSelection(mr.near(e.doc.resolve(a),n))}const mue=1,nI=2,gue=4;class lJt extends PQ{constructor(t){super(t.doc),this.curSelectionFor=0,this.updated=0,this.meta=Object.create(null),this.time=Date.now(),this.curSelection=t.selection,this.storedMarks=t.storedMarks}get selection(){return this.curSelectionFor<this.steps.length&&(this.curSelection=this.curSelection.map(this.doc,this.mapping.slice(this.curSelectionFor)),this.curSelectionFor=this.steps.length),this.curSelection}setSelection(t){if(t.$from.doc!=this.doc)throw new RangeError("Selection passed to setSelection must point at the current document");return this.curSelection=t,this.curSelectionFor=this.steps.length,this.updated=(this.updated|mue)&~nI,this.storedMarks=null,this}get selectionSet(){return(this.updated&mue)>0}setStoredMarks(t){return this.storedMarks=t,this.updated|=nI,this}ensureMarks(t){return ji.sameSet(this.storedMarks||this.selection.$from.marks(),t)||this.setStoredMarks(t),this}addStoredMark(t){return this.ensureMarks(t.addToSet(this.storedMarks||this.selection.$head.marks()))}removeStoredMark(t){return this.ensureMarks(t.removeFromSet(this.storedMarks||this.selection.$head.marks()))}get storedMarksSet(){return(this.updated&nI)>0}addStep(t,n){super.addStep(t,n),this.updated=this.updated&~nI,this.storedMarks=null}setTime(t){return this.time=t,this}replaceSelection(t){return this.selection.replace(this,t),this}replaceSelectionWith(t,n=!0){let r=this.selection;return n&&(t=t.mark(this.storedMarks||(r.empty?r.$from.marks():r.$from.marksAcross(r.$to)||ji.none))),r.replaceWith(this,t),this}deleteSelection(){return this.selection.replace(this),this}insertText(t,n,r){let i=this.doc.type.schema;if(n==null)return t?this.replaceSelectionWith(i.text(t),!0):this.deleteSelection();{if(r==null&&(r=n),r=r??n,!t)return this.deleteRange(n,r);let o=this.storedMarks;if(!o){let a=this.doc.resolve(n);o=r==n?a.marks():a.marksAcross(this.doc.resolve(r))}return this.replaceRangeWith(n,r,i.text(t,o)),this.selection.empty||this.setSelection(mr.near(this.selection.$to)),this}}setMeta(t,n){return this.meta[typeof t=="string"?t:t.key]=n,this}getMeta(t){return this.meta[typeof t=="string"?t:t.key]}get isGeneric(){for(let t in this.meta)return!1;return!0}scrollIntoView(){return this.updated|=gue,this}get scrolledIntoView(){return(this.updated&gue)>0}}function vue(e,t){return!t||!e?e:e.bind(t)}class UC{constructor(t,n,r){this.name=t,this.init=vue(n.init,r),this.apply=vue(n.apply,r)}}const cJt=[new UC("doc",{init(e){return e.doc||e.schema.topNodeType.createAndFill()},apply(e){return e.doc}}),new UC("selection",{init(e,t){return e.selection||mr.atStart(t.doc)},apply(e){return e.selection}}),new UC("storedMarks",{init(e){return e.storedMarks||null},apply(e,t,n,r){return r.selection.$cursor?e.storedMarks:null}}),new UC("scrollToSelection",{init(){return 0},apply(e,t){return e.scrolledIntoView?t+1:t}})];class u6{constructor(t,n){this.schema=t,this.plugins=[],this.pluginsByKey=Object.create(null),this.fields=cJt.slice(),n&&n.forEach(r=>{if(this.pluginsByKey[r.key])throw new RangeError("Adding different instances of a keyed plugin ("+r.key+")");this.plugins.push(r),this.pluginsByKey[r.key]=r,r.spec.state&&this.fields.push(new UC(r.key,r.spec.state,r))})}}class iy{constructor(t){this.config=t}get schema(){return this.config.schema}get plugins(){return this.config.plugins}apply(t){return this.applyTransaction(t).state}filterTransaction(t,n=-1){for(let r=0;r<this.config.plugins.length;r++)if(r!=n){let i=this.config.plugins[r];if(i.spec.filterTransaction&&!i.spec.filterTransaction.call(i,t,this))return!1}return!0}applyTransaction(t){if(!this.filterTransaction(t))return{state:this,transactions:[]};let n=[t],r=this.applyInner(t),i=null;for(;;){let o=!1;for(let a=0;a<this.config.plugins.length;a++){let s=this.config.plugins[a];if(s.spec.appendTransaction){let l=i?i[a].n:0,c=i?i[a].state:this,u=l<n.length&&s.spec.appendTransaction.call(s,l?n.slice(l):n,c,r);if(u&&r.filterTransaction(u,a)){if(u.setMeta("appendedTransaction",t),!i){i=[];for(let d=0;d<this.config.plugins.length;d++)i.push(d<a?{state:r,n:n.length}:{state:this,n:0})}n.push(u),r=r.applyInner(u),o=!0}i&&(i[a]={state:r,n:n.length})}}if(!o)return{state:r,transactions:n}}}applyInner(t){if(!t.before.eq(this.doc))throw new RangeError("Applying a mismatched transaction");let n=new iy(this.config),r=this.config.fields;for(let i=0;i<r.length;i++){let o=r[i];n[o.name]=o.apply(t,this[o.name],this,n)}return n}get tr(){return new lJt(this)}static create(t){let n=new u6(t.doc?t.doc.type.schema:t.schema,t.plugins),r=new iy(n);for(let i=0;i<n.fields.length;i++)r[n.fields[i].name]=n.fields[i].init(t,r);return r}reconfigure(t){let n=new u6(this.schema,t.plugins),r=n.fields,i=new iy(n);for(let o=0;o<r.length;o++){let a=r[o].name;i[a]=this.hasOwnProperty(a)?this[a]:r[o].init(t,i)}return i}toJSON(t){let n={doc:this.doc.toJSON(),selection:this.selection.toJSON()};if(this.storedMarks&&(n.storedMarks=this.storedMarks.map(r=>r.toJSON())),t&&typeof t=="object")for(let r in t){if(r=="doc"||r=="selection")throw new RangeError("The JSON fields `doc` and `selection` are reserved");let i=t[r],o=i.spec.state;o&&o.toJSON&&(n[r]=o.toJSON.call(i,this[i.key]))}return n}static fromJSON(t,n,r){if(!n)throw new RangeError("Invalid input for EditorState.fromJSON");if(!t.schema)throw new RangeError("Required config field 'schema' missing");let i=new u6(t.schema,t.plugins),o=new iy(i);return i.fields.forEach(a=>{if(a.name=="doc")o.doc=ag.fromJSON(t.schema,n.doc);else if(a.name=="selection")o.selection=mr.fromJSON(o.doc,n.selection);else if(a.name=="storedMarks")n.storedMarks&&(o.storedMarks=n.storedMarks.map(t.schema.markFromJSON));else{if(r)for(let s in r){let l=r[s],c=l.spec.state;if(l.key==a.name&&c&&c.fromJSON&&Object.prototype.hasOwnProperty.call(n,s)){o[a.name]=c.fromJSON.call(l,t,n[s],o);return}}o[a.name]=a.init(t,o)}}),o}}function pke(e,t,n){for(let r in e){let i=e[r];i instanceof Function?i=i.bind(t):r=="handleDOMEvents"&&(i=pke(i,t,{})),n[r]=i}return n}class Ei{constructor(t){this.spec=t,this.props={},t.props&&pke(t.props,this,this.props),this.key=t.key?t.key.key:hke("plugin")}getState(t){return t[this.key]}}const d6=Object.create(null);function hke(e){return e in d6?e+"$"+ ++d6[e]:(d6[e]=0,e+"$")}class $i{constructor(t="key"){this.key=hke(t)}get(t){return t.config.pluginsByKey[this.key]}getState(t){return t[this.key]}}const Za=function(e){for(var t=0;;t++)if(e=e.previousSibling,!e)return t},rx=function(e){let t=e.assignedSlot||e.parentNode;return t&&t.nodeType==11?t.host:t};let $z=null;const Np=function(e,t,n){let r=$z||($z=document.createRange());return r.setEnd(e,n??e.nodeValue.length),r.setStart(e,t||0),r},uJt=function(){$z=null},e0=function(e,t,n,r){return n&&(bue(e,t,n,r,-1)||bue(e,t,n,r,1))},dJt=/^(img|br|input|textarea|hr)$/i;function bue(e,t,n,r,i){for(;;){if(e==n&&t==r)return!0;if(t==(i<0?0:nu(e))){let o=e.parentNode;if(!o||o.nodeType!=1||sO(e)||dJt.test(e.nodeName)||e.contentEditable=="false")return!1;t=Za(e)+(i<0?0:1),e=o}else if(e.nodeType==1){if(e=e.childNodes[t+(i<0?-1:0)],e.contentEditable=="false")return!1;t=i<0?nu(e):0}else return!1}}function nu(e){return e.nodeType==3?e.nodeValue.length:e.childNodes.length}function fJt(e,t){for(;;){if(e.nodeType==3&&t)return e;if(e.nodeType==1&&t>0){if(e.contentEditable=="false")return null;e=e.childNodes[t-1],t=nu(e)}else if(e.parentNode&&!sO(e))t=Za(e),e=e.parentNode;else return null}}function pJt(e,t){for(;;){if(e.nodeType==3&&t<e.nodeValue.length)return e;if(e.nodeType==1&&t<e.childNodes.length){if(e.contentEditable=="false")return null;e=e.childNodes[t],t=0}else if(e.parentNode&&!sO(e))t=Za(e)+1,e=e.parentNode;else return null}}function hJt(e,t,n){for(let r=t==0,i=t==nu(e);r||i;){if(e==n)return!0;let o=Za(e);if(e=e.parentNode,!e)return!1;r=r&&o==0,i=i&&o==nu(e)}}function sO(e){let t;for(let n=e;n&&!(t=n.pmViewDesc);n=n.parentNode);return t&&t.node&&t.node.isBlock&&(t.dom==e||t.contentDOM==e)}const Q3=function(e){return e.focusNode&&e0(e.focusNode,e.focusOffset,e.anchorNode,e.anchorOffset)};function x1(e,t){let n=document.createEvent("Event");return n.initEvent("keydown",!0,!0),n.keyCode=e,n.key=n.code=t,n}function mJt(e){let t=e.activeElement;for(;t&&t.shadowRoot;)t=t.shadowRoot.activeElement;return t}function gJt(e,t,n){if(e.caretPositionFromPoint)try{let r=e.caretPositionFromPoint(t,n);if(r)return{node:r.offsetNode,offset:Math.min(nu(r.offsetNode),r.offset)}}catch{}if(e.caretRangeFromPoint){let r=e.caretRangeFromPoint(t,n);if(r)return{node:r.startContainer,offset:Math.min(nu(r.startContainer),r.startOffset)}}}const Hf=typeof navigator<"u"?navigator:null,yue=typeof document<"u"?document:null,Fg=Hf&&Hf.userAgent||"",Fz=/Edge\/(\d+)/.exec(Fg),mke=/MSIE \d/.exec(Fg),Bz=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(Fg),Il=!!(mke||Bz||Fz),sg=mke?document.documentMode:Bz?+Bz[1]:Fz?+Fz[1]:0,Nd=!Il&&/gecko\/(\d+)/i.test(Fg);Nd&&+(/Firefox\/(\d+)/.exec(Fg)||[0,0])[1];const jz=!Il&&/Chrome\/(\d+)/.exec(Fg),Os=!!jz,gke=jz?+jz[1]:0,Js=!Il&&!!Hf&&/Apple Computer/.test(Hf.vendor),U_=Js&&(/Mobile\/\w+/.test(Fg)||!!Hf&&Hf.maxTouchPoints>2),Kc=U_||(Hf?/Mac/.test(Hf.platform):!1),vJt=Hf?/Win/.test(Hf.platform):!1,Ju=/Android \d/.test(Fg),lO=!!yue&&"webkitFontSmoothing"in yue.documentElement.style,bJt=lO?+(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent)||[0,0])[1]:0;function yJt(e){let t=e.defaultView&&e.defaultView.visualViewport;return t?{left:0,right:t.width,top:0,bottom:t.height}:{left:0,right:e.documentElement.clientWidth,top:0,bottom:e.documentElement.clientHeight}}function up(e,t){return typeof e=="number"?e:e[t]}function _Jt(e){let t=e.getBoundingClientRect(),n=t.width/e.offsetWidth||1,r=t.height/e.offsetHeight||1;return{left:t.left,right:t.left+e.clientWidth*n,top:t.top,bottom:t.top+e.clientHeight*r}}function _ue(e,t,n){let r=e.someProp("scrollThreshold")||0,i=e.someProp("scrollMargin")||5,o=e.dom.ownerDocument;for(let a=n||e.dom;a;a=rx(a)){if(a.nodeType!=1)continue;let s=a,l=s==o.body,c=l?yJt(o):_Jt(s),u=0,d=0;if(t.top<c.top+up(r,"top")?d=-(c.top-t.top+up(i,"top")):t.bottom>c.bottom-up(r,"bottom")&&(d=t.bottom-t.top>c.bottom-c.top?t.top+up(i,"top")-c.top:t.bottom-c.bottom+up(i,"bottom")),t.left<c.left+up(r,"left")?u=-(c.left-t.left+up(i,"left")):t.right>c.right-up(r,"right")&&(u=t.right-c.right+up(i,"right")),u||d)if(l)o.defaultView.scrollBy(u,d);else{let f=s.scrollLeft,h=s.scrollTop;d&&(s.scrollTop+=d),u&&(s.scrollLeft+=u);let m=s.scrollLeft-f,g=s.scrollTop-h;t={left:t.left-m,top:t.top-g,right:t.right-m,bottom:t.bottom-g}}if(l||/^(fixed|sticky)$/.test(getComputedStyle(a).position))break}}function SJt(e){let t=e.dom.getBoundingClientRect(),n=Math.max(0,t.top),r,i;for(let o=(t.left+t.right)/2,a=n+1;a<Math.min(innerHeight,t.bottom);a+=5){let s=e.root.elementFromPoint(o,a);if(!s||s==e.dom||!e.dom.contains(s))continue;let l=s.getBoundingClientRect();if(l.top>=n-20){r=s,i=l.top;break}}return{refDOM:r,refTop:i,stack:vke(e.dom)}}function vke(e){let t=[],n=e.ownerDocument;for(let r=e;r&&(t.push({dom:r,top:r.scrollTop,left:r.scrollLeft}),e!=n);r=rx(r));return t}function EJt({refDOM:e,refTop:t,stack:n}){let r=e?e.getBoundingClientRect().top:0;bke(n,r==0?0:r-t)}function bke(e,t){for(let n=0;n<e.length;n++){let{dom:r,top:i,left:o}=e[n];r.scrollTop!=i+t&&(r.scrollTop=i+t),r.scrollLeft!=o&&(r.scrollLeft=o)}}let fb=null;function CJt(e){if(e.setActive)return e.setActive();if(fb)return e.focus(fb);let t=vke(e);e.focus(fb==null?{get preventScroll(){return fb={preventScroll:!0},!0}}:void 0),fb||(fb=!1,bke(t,0))}function yke(e,t){let n,r=2e8,i,o=0,a=t.top,s=t.top,l,c;for(let u=e.firstChild,d=0;u;u=u.nextSibling,d++){let f;if(u.nodeType==1)f=u.getClientRects();else if(u.nodeType==3)f=Np(u).getClientRects();else continue;for(let h=0;h<f.length;h++){let m=f[h];if(m.top<=a&&m.bottom>=s){a=Math.max(m.bottom,a),s=Math.min(m.top,s);let g=m.left>t.left?m.left-t.left:m.right<t.left?t.left-m.right:0;if(g<r){n=u,r=g,i=g&&n.nodeType==3?{left:m.right<t.left?m.right:m.left,top:t.top}:t,u.nodeType==1&&g&&(o=d+(t.left>=(m.left+m.right)/2?1:0));continue}}else m.top>t.top&&!l&&m.left<=t.left&&m.right>=t.left&&(l=u,c={left:Math.max(m.left,Math.min(m.right,t.left)),top:m.top});!n&&(t.left>=m.right&&t.top>=m.top||t.left>=m.left&&t.top>=m.bottom)&&(o=d+1)}}return!n&&l&&(n=l,i=c,r=0),n&&n.nodeType==3?wJt(n,i):!n||r&&n.nodeType==1?{node:e,offset:o}:yke(n,i)}function wJt(e,t){let n=e.nodeValue.length,r=document.createRange();for(let i=0;i<n;i++){r.setEnd(e,i+1),r.setStart(e,i);let o=rm(r,1);if(o.top!=o.bottom&&LQ(t,o))return{node:e,offset:i+(t.left>=(o.left+o.right)/2?1:0)}}return{node:e,offset:0}}function LQ(e,t){return e.left>=t.left-1&&e.left<=t.right+1&&e.top>=t.top-1&&e.top<=t.bottom+1}function TJt(e,t){let n=e.parentNode;return n&&/^li$/i.test(n.nodeName)&&t.left<e.getBoundingClientRect().left?n:e}function xJt(e,t,n){let{node:r,offset:i}=yke(t,n),o=-1;if(r.nodeType==1&&!r.firstChild){let a=r.getBoundingClientRect();o=a.left!=a.right&&n.left>(a.left+a.right)/2?1:-1}return e.docView.posFromDOM(r,i,o)}function OJt(e,t,n,r){let i=-1;for(let o=t,a=!1;o!=e.dom;){let s=e.docView.nearestDesc(o,!0);if(!s)return null;if(s.dom.nodeType==1&&(s.node.isBlock&&s.parent||!s.contentDOM)){let l=s.dom.getBoundingClientRect();if(s.node.isBlock&&s.parent&&(!a&&l.left>r.left||l.top>r.top?i=s.posBefore:(!a&&l.right<r.left||l.bottom<r.top)&&(i=s.posAfter),a=!0),!s.contentDOM&&i<0&&!s.node.isText)return(s.node.isBlock?r.top<(l.top+l.bottom)/2:r.left<(l.left+l.right)/2)?s.posBefore:s.posAfter}o=s.dom.parentNode}return i>-1?i:e.docView.posFromDOM(t,n,-1)}function _ke(e,t,n){let r=e.childNodes.length;if(r&&n.top<n.bottom)for(let i=Math.max(0,Math.min(r-1,Math.floor(r*(t.top-n.top)/(n.bottom-n.top))-2)),o=i;;){let a=e.childNodes[o];if(a.nodeType==1){let s=a.getClientRects();for(let l=0;l<s.length;l++){let c=s[l];if(LQ(t,c))return _ke(a,t,c)}}if((o=(o+1)%r)==i)break}return e}function RJt(e,t){let n=e.dom.ownerDocument,r,i=0,o=gJt(n,t.left,t.top);o&&({node:r,offset:i}=o);let a=(e.root.elementFromPoint?e.root:n).elementFromPoint(t.left,t.top),s;if(!a||!e.dom.contains(a.nodeType!=1?a.parentNode:a)){let c=e.dom.getBoundingClientRect();if(!LQ(t,c)||(a=_ke(e.dom,t,c),!a))return null}if(Js)for(let c=a;r&&c;c=rx(c))c.draggable&&(r=void 0);if(a=TJt(a,t),r){if(Nd&&r.nodeType==1&&(i=Math.min(i,r.childNodes.length),i<r.childNodes.length)){let u=r.childNodes[i],d;u.nodeName=="IMG"&&(d=u.getBoundingClientRect()).right<=t.left&&d.bottom>t.top&&i++}let c;lO&&i&&r.nodeType==1&&(c=r.childNodes[i-1]).nodeType==1&&c.contentEditable=="false"&&c.getBoundingClientRect().top>=t.top&&i--,r==e.dom&&i==r.childNodes.length-1&&r.lastChild.nodeType==1&&t.top>r.lastChild.getBoundingClientRect().bottom?s=e.state.doc.content.size:(i==0||r.nodeType!=1||r.childNodes[i-1].nodeName!="BR")&&(s=OJt(e,r,i,t))}s==null&&(s=xJt(e,a,t));let l=e.docView.nearestDesc(a,!0);return{pos:s,inside:l?l.posAtStart-l.border:-1}}function Sue(e){return e.top<e.bottom||e.left<e.right}function rm(e,t){let n=e.getClientRects();if(n.length){let r=n[t<0?0:n.length-1];if(Sue(r))return r}return Array.prototype.find.call(n,Sue)||e.getBoundingClientRect()}const IJt=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/;function Ske(e,t,n){let{node:r,offset:i,atom:o}=e.docView.domFromPos(t,n<0?-1:1),a=lO||Nd;if(r.nodeType==3)if(a&&(IJt.test(r.nodeValue)||(n<0?!i:i==r.nodeValue.length))){let s=rm(Np(r,i,i),n);if(Nd&&i&&/\s/.test(r.nodeValue[i-1])&&i<r.nodeValue.length){let l=rm(Np(r,i-1,i-1),-1);if(l.top==s.top){let c=rm(Np(r,i,i+1),-1);if(c.top!=s.top)return eC(c,c.left<l.left)}}return s}else{let s=i,l=i,c=n<0?1:-1;return n<0&&!i?(l++,c=-1):n>=0&&i==r.nodeValue.length?(s--,c=1):n<0?s--:l++,eC(rm(Np(r,s,l),c),c<0)}if(!e.state.doc.resolve(t-(o||0)).parent.inlineContent){if(o==null&&i&&(n<0||i==nu(r))){let s=r.childNodes[i-1];if(s.nodeType==1)return f6(s.getBoundingClientRect(),!1)}if(o==null&&i<nu(r)){let s=r.childNodes[i];if(s.nodeType==1)return f6(s.getBoundingClientRect(),!0)}return f6(r.getBoundingClientRect(),n>=0)}if(o==null&&i&&(n<0||i==nu(r))){let s=r.childNodes[i-1],l=s.nodeType==3?Np(s,nu(s)-(a?0:1)):s.nodeType==1&&(s.nodeName!="BR"||!s.nextSibling)?s:null;if(l)return eC(rm(l,1),!1)}if(o==null&&i<nu(r)){let s=r.childNodes[i];for(;s.pmViewDesc&&s.pmViewDesc.ignoreForCoords;)s=s.nextSibling;let l=s?s.nodeType==3?Np(s,0,a?0:1):s.nodeType==1?s:null:null;if(l)return eC(rm(l,-1),!0)}return eC(rm(r.nodeType==3?Np(r):r,-n),n>=0)}function eC(e,t){if(e.width==0)return e;let n=t?e.left:e.right;return{top:e.top,bottom:e.bottom,left:n,right:n}}function f6(e,t){if(e.height==0)return e;let n=t?e.top:e.bottom;return{top:n,bottom:n,left:e.left,right:e.right}}function Eke(e,t,n){let r=e.state,i=e.root.activeElement;r!=t&&e.updateState(t),i!=e.dom&&e.focus();try{return n()}finally{r!=t&&e.updateState(r),i!=e.dom&&i&&i.focus()}}function AJt(e,t,n){let r=t.selection,i=n=="up"?r.$from:r.$to;return Eke(e,t,()=>{let{node:o}=e.docView.domFromPos(i.pos,n=="up"?-1:1);for(;;){let s=e.docView.nearestDesc(o,!0);if(!s)break;if(s.node.isBlock){o=s.contentDOM||s.dom;break}o=s.dom.parentNode}let a=Ske(e,i.pos,1);for(let s=o.firstChild;s;s=s.nextSibling){let l;if(s.nodeType==1)l=s.getClientRects();else if(s.nodeType==3)l=Np(s,0,s.nodeValue.length).getClientRects();else continue;for(let c=0;c<l.length;c++){let u=l[c];if(u.bottom>u.top+1&&(n=="up"?a.top-u.top>(u.bottom-a.top)*2:u.bottom-a.bottom>(a.bottom-u.top)*2))return!1}}return!0})}const NJt=/[\u0590-\u08ac]/;function MJt(e,t,n){let{$head:r}=t.selection;if(!r.parent.isTextblock)return!1;let i=r.parentOffset,o=!i,a=i==r.parent.content.size,s=e.domSelection();return s?!NJt.test(r.parent.textContent)||!s.modify?n=="left"||n=="backward"?o:a:Eke(e,t,()=>{let{focusNode:l,focusOffset:c,anchorNode:u,anchorOffset:d}=e.domSelectionRange(),f=s.caretBidiLevel;s.modify("move",n,"character");let h=r.depth?e.docView.domAfterPos(r.before()):e.dom,{focusNode:m,focusOffset:g}=e.domSelectionRange(),v=m&&!h.contains(m.nodeType==1?m:m.parentNode)||l==m&&c==g;try{s.collapse(u,d),l&&(l!=u||c!=d)&&s.extend&&s.extend(l,c)}catch{}return f!=null&&(s.caretBidiLevel=f),v}):r.pos==r.start()||r.pos==r.end()}let Eue=null,Cue=null,wue=!1;function kJt(e,t,n){return Eue==t&&Cue==n?wue:(Eue=t,Cue=n,wue=n=="up"||n=="down"?AJt(e,t,n):MJt(e,t,n))}const cu=0,Tue=1,W1=2,Uf=3;class cO{constructor(t,n,r,i){this.parent=t,this.children=n,this.dom=r,this.contentDOM=i,this.dirty=cu,r.pmViewDesc=this}matchesWidget(t){return!1}matchesMark(t){return!1}matchesNode(t,n,r){return!1}matchesHack(t){return!1}parseRule(){return null}stopEvent(t){return!1}get size(){let t=0;for(let n=0;n<this.children.length;n++)t+=this.children[n].size;return t}get border(){return 0}destroy(){this.parent=void 0,this.dom.pmViewDesc==this&&(this.dom.pmViewDesc=void 0);for(let t=0;t<this.children.length;t++)this.children[t].destroy()}posBeforeChild(t){for(let n=0,r=this.posAtStart;;n++){let i=this.children[n];if(i==t)return r;r+=i.size}}get posBefore(){return this.parent.posBeforeChild(this)}get posAtStart(){return this.parent?this.parent.posBeforeChild(this)+this.border:0}get posAfter(){return this.posBefore+this.size}get posAtEnd(){return this.posAtStart+this.size-2*this.border}localPosFromDOM(t,n,r){if(this.contentDOM&&this.contentDOM.contains(t.nodeType==1?t:t.parentNode))if(r<0){let o,a;if(t==this.contentDOM)o=t.childNodes[n-1];else{for(;t.parentNode!=this.contentDOM;)t=t.parentNode;o=t.previousSibling}for(;o&&!((a=o.pmViewDesc)&&a.parent==this);)o=o.previousSibling;return o?this.posBeforeChild(a)+a.size:this.posAtStart}else{let o,a;if(t==this.contentDOM)o=t.childNodes[n];else{for(;t.parentNode!=this.contentDOM;)t=t.parentNode;o=t.nextSibling}for(;o&&!((a=o.pmViewDesc)&&a.parent==this);)o=o.nextSibling;return o?this.posBeforeChild(a):this.posAtEnd}let i;if(t==this.dom&&this.contentDOM)i=n>Za(this.contentDOM);else if(this.contentDOM&&this.contentDOM!=this.dom&&this.dom.contains(this.contentDOM))i=t.compareDocumentPosition(this.contentDOM)&2;else if(this.dom.firstChild){if(n==0)for(let o=t;;o=o.parentNode){if(o==this.dom){i=!1;break}if(o.previousSibling)break}if(i==null&&n==t.childNodes.length)for(let o=t;;o=o.parentNode){if(o==this.dom){i=!0;break}if(o.nextSibling)break}}return i??r>0?this.posAtEnd:this.posAtStart}nearestDesc(t,n=!1){for(let r=!0,i=t;i;i=i.parentNode){let o=this.getDesc(i),a;if(o&&(!n||o.node))if(r&&(a=o.nodeDOM)&&!(a.nodeType==1?a.contains(t.nodeType==1?t:t.parentNode):a==t))r=!1;else return o}}getDesc(t){let n=t.pmViewDesc;for(let r=n;r;r=r.parent)if(r==this)return n}posFromDOM(t,n,r){for(let i=t;i;i=i.parentNode){let o=this.getDesc(i);if(o)return o.localPosFromDOM(t,n,r)}return-1}descAt(t){for(let n=0,r=0;n<this.children.length;n++){let i=this.children[n],o=r+i.size;if(r==t&&o!=r){for(;!i.border&&i.children.length;)i=i.children[0];return i}if(t<o)return i.descAt(t-r-i.border);r=o}}domFromPos(t,n){if(!this.contentDOM)return{node:this.dom,offset:0,atom:t+1};let r=0,i=0;for(let o=0;r<this.children.length;r++){let a=this.children[r],s=o+a.size;if(s>t||a instanceof wke){i=t-o;break}o=s}if(i)return this.children[r].domFromPos(i-this.children[r].border,n);for(let o;r&&!(o=this.children[r-1]).size&&o instanceof Cke&&o.side>=0;r--);if(n<=0){let o,a=!0;for(;o=r?this.children[r-1]:null,!(!o||o.dom.parentNode==this.contentDOM);r--,a=!1);return o&&n&&a&&!o.border&&!o.domAtom?o.domFromPos(o.size,n):{node:this.contentDOM,offset:o?Za(o.dom)+1:0}}else{let o,a=!0;for(;o=r<this.children.length?this.children[r]:null,!(!o||o.dom.parentNode==this.contentDOM);r++,a=!1);return o&&a&&!o.border&&!o.domAtom?o.domFromPos(0,n):{node:this.contentDOM,offset:o?Za(o.dom):this.contentDOM.childNodes.length}}}parseRange(t,n,r=0){if(this.children.length==0)return{node:this.contentDOM,from:t,to:n,fromOffset:0,toOffset:this.contentDOM.childNodes.length};let i=-1,o=-1;for(let a=r,s=0;;s++){let l=this.children[s],c=a+l.size;if(i==-1&&t<=c){let u=a+l.border;if(t>=u&&n<=c-l.border&&l.node&&l.contentDOM&&this.contentDOM.contains(l.contentDOM))return l.parseRange(t,n,u);t=a;for(let d=s;d>0;d--){let f=this.children[d-1];if(f.size&&f.dom.parentNode==this.contentDOM&&!f.emptyChildAt(1)){i=Za(f.dom)+1;break}t-=f.size}i==-1&&(i=0)}if(i>-1&&(c>n||s==this.children.length-1)){n=c;for(let u=s+1;u<this.children.length;u++){let d=this.children[u];if(d.size&&d.dom.parentNode==this.contentDOM&&!d.emptyChildAt(-1)){o=Za(d.dom);break}n+=d.size}o==-1&&(o=this.contentDOM.childNodes.length);break}a=c}return{node:this.contentDOM,from:t,to:n,fromOffset:i,toOffset:o}}emptyChildAt(t){if(this.border||!this.contentDOM||!this.children.length)return!1;let n=this.children[t<0?0:this.children.length-1];return n.size==0||n.emptyChildAt(t)}domAfterPos(t){let{node:n,offset:r}=this.domFromPos(t,0);if(n.nodeType!=1||r==n.childNodes.length)throw new RangeError("No node after pos "+t);return n.childNodes[r]}setSelection(t,n,r,i=!1){let o=Math.min(t,n),a=Math.max(t,n);for(let f=0,h=0;f<this.children.length;f++){let m=this.children[f],g=h+m.size;if(o>h&&a<g)return m.setSelection(t-h-m.border,n-h-m.border,r,i);h=g}let s=this.domFromPos(t,t?-1:1),l=n==t?s:this.domFromPos(n,n?-1:1),c=r.getSelection(),u=!1;if((Nd||Js)&&t==n){let{node:f,offset:h}=s;if(f.nodeType==3){if(u=!!(h&&f.nodeValue[h-1]==`
`),u&&h==f.nodeValue.length)for(let m=f,g;m;m=m.parentNode){if(g=m.nextSibling){g.nodeName=="BR"&&(s=l={node:g.parentNode,offset:Za(g)+1});break}let v=m.pmViewDesc;if(v&&v.node&&v.node.isBlock)break}}else{let m=f.childNodes[h-1];u=m&&(m.nodeName=="BR"||m.contentEditable=="false")}}if(Nd&&c.focusNode&&c.focusNode!=l.node&&c.focusNode.nodeType==1){let f=c.focusNode.childNodes[c.focusOffset];f&&f.contentEditable=="false"&&(i=!0)}if(!(i||u&&Js)&&e0(s.node,s.offset,c.anchorNode,c.anchorOffset)&&e0(l.node,l.offset,c.focusNode,c.focusOffset))return;let d=!1;if((c.extend||t==n)&&!u){c.collapse(s.node,s.offset);try{t!=n&&c.extend(l.node,l.offset),d=!0}catch{}}if(!d){if(t>n){let h=s;s=l,l=h}let f=document.createRange();f.setEnd(l.node,l.offset),f.setStart(s.node,s.offset),c.removeAllRanges(),c.addRange(f)}}ignoreMutation(t){return!this.contentDOM&&t.type!="selection"}get contentLost(){return this.contentDOM&&this.contentDOM!=this.dom&&!this.dom.contains(this.contentDOM)}markDirty(t,n){for(let r=0,i=0;i<this.children.length;i++){let o=this.children[i],a=r+o.size;if(r==a?t<=a&&n>=r:t<a&&n>r){let s=r+o.border,l=a-o.border;if(t>=s&&n<=l){this.dirty=t==r||n==a?W1:Tue,t==s&&n==l&&(o.contentLost||o.dom.parentNode!=this.contentDOM)?o.dirty=Uf:o.markDirty(t-s,n-s);return}else o.dirty=o.dom==o.contentDOM&&o.dom.parentNode==this.contentDOM&&!o.children.length?W1:Uf}r=a}this.dirty=W1}markParentsDirty(){let t=1;for(let n=this.parent;n;n=n.parent,t++){let r=t==1?W1:Tue;n.dirty<r&&(n.dirty=r)}}get domAtom(){return!1}get ignoreForCoords(){return!1}isText(t){return!1}}class Cke extends cO{constructor(t,n,r,i){let o,a=n.type.toDOM;if(typeof a=="function"&&(a=a(r,()=>{if(!o)return i;if(o.parent)return o.parent.posBeforeChild(o)})),!n.type.spec.raw){if(a.nodeType!=1){let s=document.createElement("span");s.appendChild(a),a=s}a.contentEditable="false",a.classList.add("ProseMirror-widget")}super(t,[],a,null),this.widget=n,this.widget=n,o=this}matchesWidget(t){return this.dirty==cu&&t.type.eq(this.widget.type)}parseRule(){return{ignore:!0}}stopEvent(t){let n=this.widget.spec.stopEvent;return n?n(t):!1}ignoreMutation(t){return t.type!="selection"||this.widget.spec.ignoreSelection}destroy(){this.widget.type.destroy(this.dom),super.destroy()}get domAtom(){return!0}get side(){return this.widget.type.side}}class PJt extends cO{constructor(t,n,r,i){super(t,[],n,null),this.textDOM=r,this.text=i}get size(){return this.text.length}localPosFromDOM(t,n){return t!=this.textDOM?this.posAtStart+(n?this.size:0):this.posAtStart+n}domFromPos(t){return{node:this.textDOM,offset:t}}ignoreMutation(t){return t.type==="characterData"&&t.target.nodeValue==t.oldValue}}class t0 extends cO{constructor(t,n,r,i,o){super(t,[],r,i),this.mark=n,this.spec=o}static create(t,n,r,i){let o=i.nodeViews[n.type.name],a=o&&o(n,i,r);return(!a||!a.dom)&&(a=L0.renderSpec(document,n.type.spec.toDOM(n,r),null,n.attrs)),new t0(t,n,a.dom,a.contentDOM||a.dom,a)}parseRule(){return this.dirty&Uf||this.mark.type.spec.reparseInView?null:{mark:this.mark.type.name,attrs:this.mark.attrs,contentElement:this.contentDOM}}matchesMark(t){return this.dirty!=Uf&&this.mark.eq(t)}markDirty(t,n){if(super.markDirty(t,n),this.dirty!=cu){let r=this.parent;for(;!r.node;)r=r.parent;r.dirty<this.dirty&&(r.dirty=this.dirty),this.dirty=cu}}slice(t,n,r){let i=t0.create(this.parent,this.mark,!0,r),o=this.children,a=this.size;n<a&&(o=Uz(o,n,a,r)),t>0&&(o=Uz(o,0,t,r));for(let s=0;s<o.length;s++)o[s].parent=i;return i.children=o,i}destroy(){this.spec.destroy&&this.spec.destroy(),super.destroy()}}class lg extends cO{constructor(t,n,r,i,o,a,s,l,c){super(t,[],o,a),this.node=n,this.outerDeco=r,this.innerDeco=i,this.nodeDOM=s}static create(t,n,r,i,o,a){let s=o.nodeViews[n.type.name],l,c=s&&s(n,o,()=>{if(!l)return a;if(l.parent)return l.parent.posBeforeChild(l)},r,i),u=c&&c.dom,d=c&&c.contentDOM;if(n.isText){if(!u)u=document.createTextNode(n.text);else if(u.nodeType!=3)throw new RangeError("Text must be rendered as a DOM text node")}else u||({dom:u,contentDOM:d}=L0.renderSpec(document,n.type.spec.toDOM(n),null,n.attrs));!d&&!n.isText&&u.nodeName!="BR"&&(u.hasAttribute("contenteditable")||(u.contentEditable="false"),n.type.spec.draggable&&(u.draggable=!0));let f=u;return u=Oke(u,r,n),c?l=new DJt(t,n,r,i,u,d||null,f,c,o,a+1):n.isText?new X3(t,n,r,i,u,f,o):new lg(t,n,r,i,u,d||null,f,o,a+1)}parseRule(){if(this.node.type.spec.reparseInView)return null;let t={node:this.node.type.name,attrs:this.node.attrs};if(this.node.type.whitespace=="pre"&&(t.preserveWhitespace="full"),!this.contentDOM)t.getContent=()=>this.node.content;else if(!this.contentLost)t.contentElement=this.contentDOM;else{for(let n=this.children.length-1;n>=0;n--){let r=this.children[n];if(this.dom.contains(r.dom.parentNode)){t.contentElement=r.dom.parentNode;break}}t.contentElement||(t.getContent=()=>Xt.empty)}return t}matchesNode(t,n,r){return this.dirty==cu&&t.eq(this.node)&&Uk(n,this.outerDeco)&&r.eq(this.innerDeco)}get size(){return this.node.nodeSize}get border(){return this.node.isLeaf?0:1}updateChildren(t,n){let r=this.node.inlineContent,i=n,o=t.composing?this.localCompositionInfo(t,n):null,a=o&&o.pos>-1?o:null,s=o&&o.pos<0,l=new $Jt(this,a&&a.node,t);jJt(this.node,this.innerDeco,(c,u,d)=>{c.spec.marks?l.syncToMarks(c.spec.marks,r,t):c.type.side>=0&&!d&&l.syncToMarks(u==this.node.childCount?ji.none:this.node.child(u).marks,r,t),l.placeWidget(c,t,i)},(c,u,d,f)=>{l.syncToMarks(c.marks,r,t);let h;l.findNodeMatch(c,u,d,f)||s&&t.state.selection.from>i&&t.state.selection.to<i+c.nodeSize&&(h=l.findIndexWithChild(o.node))>-1&&l.updateNodeAt(c,u,d,h,t)||l.updateNextNode(c,u,d,t,f,i)||l.addNode(c,u,d,t,i),i+=c.nodeSize}),l.syncToMarks([],r,t),this.node.isTextblock&&l.addTextblockHacks(),l.destroyRest(),(l.changed||this.dirty==W1)&&(a&&this.protectLocalComposition(t,a),Tke(this.contentDOM,this.children,t),U_&&HJt(this.dom))}localCompositionInfo(t,n){let{from:r,to:i}=t.state.selection;if(!(t.state.selection instanceof er)||r<n||i>n+this.node.content.size)return null;let o=t.input.compositionNode;if(!o||!this.dom.contains(o.parentNode))return null;if(this.node.inlineContent){let a=o.nodeValue,s=UJt(this.node.content,a,r-n,i-n);return s<0?null:{node:o,pos:s,text:a}}else return{node:o,pos:-1,text:""}}protectLocalComposition(t,{node:n,pos:r,text:i}){if(this.getDesc(n))return;let o=n;for(;o.parentNode!=this.contentDOM;o=o.parentNode){for(;o.previousSibling;)o.parentNode.removeChild(o.previousSibling);for(;o.nextSibling;)o.parentNode.removeChild(o.nextSibling);o.pmViewDesc&&(o.pmViewDesc=void 0)}let a=new PJt(this,o,n,i);t.input.compositionNodes.push(a),this.children=Uz(this.children,r,r+i.length,t,a)}update(t,n,r,i){return this.dirty==Uf||!t.sameMarkup(this.node)?!1:(this.updateInner(t,n,r,i),!0)}updateInner(t,n,r,i){this.updateOuterDeco(n),this.node=t,this.innerDeco=r,this.contentDOM&&this.updateChildren(i,this.posAtStart),this.dirty=cu}updateOuterDeco(t){if(Uk(t,this.outerDeco))return;let n=this.nodeDOM.nodeType!=1,r=this.dom;this.dom=xke(this.dom,this.nodeDOM,Hz(this.outerDeco,this.node,n),Hz(t,this.node,n)),this.dom!=r&&(r.pmViewDesc=void 0,this.dom.pmViewDesc=this),this.outerDeco=t}selectNode(){this.nodeDOM.nodeType==1&&this.nodeDOM.classList.add("ProseMirror-selectednode"),(this.contentDOM||!this.node.type.spec.draggable)&&(this.dom.draggable=!0)}deselectNode(){this.nodeDOM.nodeType==1&&(this.nodeDOM.classList.remove("ProseMirror-selectednode"),(this.contentDOM||!this.node.type.spec.draggable)&&this.dom.removeAttribute("draggable"))}get domAtom(){return this.node.isAtom}}function xue(e,t,n,r,i){Oke(r,t,e);let o=new lg(void 0,e,t,n,r,r,r,i,0);return o.contentDOM&&o.updateChildren(i,0),o}class X3 extends lg{constructor(t,n,r,i,o,a,s){super(t,n,r,i,o,null,a,s,0)}parseRule(){let t=this.nodeDOM.parentNode;for(;t&&t!=this.dom&&!t.pmIsDeco;)t=t.parentNode;return{skip:t||!0}}update(t,n,r,i){return this.dirty==Uf||this.dirty!=cu&&!this.inParent()||!t.sameMarkup(this.node)?!1:(this.updateOuterDeco(n),(this.dirty!=cu||t.text!=this.node.text)&&t.text!=this.nodeDOM.nodeValue&&(this.nodeDOM.nodeValue=t.text,i.trackWrites==this.nodeDOM&&(i.trackWrites=null)),this.node=t,this.dirty=cu,!0)}inParent(){let t=this.parent.contentDOM;for(let n=this.nodeDOM;n;n=n.parentNode)if(n==t)return!0;return!1}domFromPos(t){return{node:this.nodeDOM,offset:t}}localPosFromDOM(t,n,r){return t==this.nodeDOM?this.posAtStart+Math.min(n,this.node.text.length):super.localPosFromDOM(t,n,r)}ignoreMutation(t){return t.type!="characterData"&&t.type!="selection"}slice(t,n,r){let i=this.node.cut(t,n),o=document.createTextNode(i.text);return new X3(this.parent,i,this.outerDeco,this.innerDeco,o,o,r)}markDirty(t,n){super.markDirty(t,n),this.dom!=this.nodeDOM&&(t==0||n==this.nodeDOM.nodeValue.length)&&(this.dirty=Uf)}get domAtom(){return!1}isText(t){return this.node.text==t}}class wke extends cO{parseRule(){return{ignore:!0}}matchesHack(t){return this.dirty==cu&&this.dom.nodeName==t}get domAtom(){return!0}get ignoreForCoords(){return this.dom.nodeName=="IMG"}}class DJt extends lg{constructor(t,n,r,i,o,a,s,l,c,u){super(t,n,r,i,o,a,s,c,u),this.spec=l}update(t,n,r,i){if(this.dirty==Uf)return!1;if(this.spec.update&&(this.node.type==t.type||this.spec.multiType)){let o=this.spec.update(t,n,r);return o&&this.updateInner(t,n,r,i),o}else return!this.contentDOM&&!t.isLeaf?!1:super.update(t,n,r,i)}selectNode(){this.spec.selectNode?this.spec.selectNode():super.selectNode()}deselectNode(){this.spec.deselectNode?this.spec.deselectNode():super.deselectNode()}setSelection(t,n,r,i){this.spec.setSelection?this.spec.setSelection(t,n,r):super.setSelection(t,n,r,i)}destroy(){this.spec.destroy&&this.spec.destroy(),super.destroy()}stopEvent(t){return this.spec.stopEvent?this.spec.stopEvent(t):!1}ignoreMutation(t){return this.spec.ignoreMutation?this.spec.ignoreMutation(t):super.ignoreMutation(t)}}function Tke(e,t,n){let r=e.firstChild,i=!1;for(let o=0;o<t.length;o++){let a=t[o],s=a.dom;if(s.parentNode==e){for(;s!=r;)r=Oue(r),i=!0;r=r.nextSibling}else i=!0,e.insertBefore(s,r);if(a instanceof t0){let l=r?r.previousSibling:e.lastChild;Tke(a.contentDOM,a.children,n),r=l?l.nextSibling:e.firstChild}}for(;r;)r=Oue(r),i=!0;i&&n.trackWrites==e&&(n.trackWrites=null)}const Cw=function(e){e&&(this.nodeName=e)};Cw.prototype=Object.create(null);const q1=[new Cw];function Hz(e,t,n){if(e.length==0)return q1;let r=n?q1[0]:new Cw,i=[r];for(let o=0;o<e.length;o++){let a=e[o].type.attrs;if(a){a.nodeName&&i.push(r=new Cw(a.nodeName));for(let s in a){let l=a[s];l!=null&&(n&&i.length==1&&i.push(r=new Cw(t.isInline?"span":"div")),s=="class"?r.class=(r.class?r.class+" ":"")+l:s=="style"?r.style=(r.style?r.style+";":"")+l:s!="nodeName"&&(r[s]=l))}}}return i}function xke(e,t,n,r){if(n==q1&&r==q1)return t;let i=t;for(let o=0;o<r.length;o++){let a=r[o],s=n[o];if(o){let l;s&&s.nodeName==a.nodeName&&i!=e&&(l=i.parentNode)&&l.nodeName.toLowerCase()==a.nodeName||(l=document.createElement(a.nodeName),l.pmIsDeco=!0,l.appendChild(i),s=q1[0]),i=l}LJt(i,s||q1[0],a)}return i}function LJt(e,t,n){for(let r in t)r!="class"&&r!="style"&&r!="nodeName"&&!(r in n)&&e.removeAttribute(r);for(let r in n)r!="class"&&r!="style"&&r!="nodeName"&&n[r]!=t[r]&&e.setAttribute(r,n[r]);if(t.class!=n.class){let r=t.class?t.class.split(" ").filter(Boolean):[],i=n.class?n.class.split(" ").filter(Boolean):[];for(let o=0;o<r.length;o++)i.indexOf(r[o])==-1&&e.classList.remove(r[o]);for(let o=0;o<i.length;o++)r.indexOf(i[o])==-1&&e.classList.add(i[o]);e.classList.length==0&&e.removeAttribute("class")}if(t.style!=n.style){if(t.style){let r=/\s*([\w\-\xa1-\uffff]+)\s*:(?:"(?:\\.|[^"])*"|'(?:\\.|[^'])*'|\(.*?\)|[^;])*/g,i;for(;i=r.exec(t.style);)e.style.removeProperty(i[1])}n.style&&(e.style.cssText+=n.style)}}function Oke(e,t,n){return xke(e,e,q1,Hz(t,n,e.nodeType!=1))}function Uk(e,t){if(e.length!=t.length)return!1;for(let n=0;n<e.length;n++)if(!e[n].type.eq(t[n].type))return!1;return!0}function Oue(e){let t=e.nextSibling;return e.parentNode.removeChild(e),t}class $Jt{constructor(t,n,r){this.lock=n,this.view=r,this.index=0,this.stack=[],this.changed=!1,this.top=t,this.preMatch=FJt(t.node.content,t)}destroyBetween(t,n){if(t!=n){for(let r=t;r<n;r++)this.top.children[r].destroy();this.top.children.splice(t,n-t),this.changed=!0}}destroyRest(){this.destroyBetween(this.index,this.top.children.length)}syncToMarks(t,n,r){let i=0,o=this.stack.length>>1,a=Math.min(o,t.length);for(;i<a&&(i==o-1?this.top:this.stack[i+1<<1]).matchesMark(t[i])&&t[i].type.spec.spanning!==!1;)i++;for(;i<o;)this.destroyRest(),this.top.dirty=cu,this.index=this.stack.pop(),this.top=this.stack.pop(),o--;for(;o<t.length;){this.stack.push(this.top,this.index+1);let s=-1;for(let l=this.index;l<Math.min(this.index+3,this.top.children.length);l++){let c=this.top.children[l];if(c.matchesMark(t[o])&&!this.isLocked(c.dom)){s=l;break}}if(s>-1)s>this.index&&(this.changed=!0,this.destroyBetween(this.index,s)),this.top=this.top.children[this.index];else{let l=t0.create(this.top,t[o],n,r);this.top.children.splice(this.index,0,l),this.top=l,this.changed=!0}this.index=0,o++}}findNodeMatch(t,n,r,i){let o=-1,a;if(i>=this.preMatch.index&&(a=this.preMatch.matches[i-this.preMatch.index]).parent==this.top&&a.matchesNode(t,n,r))o=this.top.children.indexOf(a,this.index);else for(let s=this.index,l=Math.min(this.top.children.length,s+5);s<l;s++){let c=this.top.children[s];if(c.matchesNode(t,n,r)&&!this.preMatch.matched.has(c)){o=s;break}}return o<0?!1:(this.destroyBetween(this.index,o),this.index++,!0)}updateNodeAt(t,n,r,i,o){let a=this.top.children[i];return a.dirty==Uf&&a.dom==a.contentDOM&&(a.dirty=W1),a.update(t,n,r,o)?(this.destroyBetween(this.index,i),this.index++,!0):!1}findIndexWithChild(t){for(;;){let n=t.parentNode;if(!n)return-1;if(n==this.top.contentDOM){let r=t.pmViewDesc;if(r){for(let i=this.index;i<this.top.children.length;i++)if(this.top.children[i]==r)return i}return-1}t=n}}updateNextNode(t,n,r,i,o,a){for(let s=this.index;s<this.top.children.length;s++){let l=this.top.children[s];if(l instanceof lg){let c=this.preMatch.matched.get(l);if(c!=null&&c!=o)return!1;let u=l.dom,d,f=this.isLocked(u)&&!(t.isText&&l.node&&l.node.isText&&l.nodeDOM.nodeValue==t.text&&l.dirty!=Uf&&Uk(n,l.outerDeco));if(!f&&l.update(t,n,r,i))return this.destroyBetween(this.index,s),l.dom!=u&&(this.changed=!0),this.index++,!0;if(!f&&(d=this.recreateWrapper(l,t,n,r,i,a)))return this.destroyBetween(this.index,s),this.top.children[this.index]=d,d.contentDOM&&(d.dirty=W1,d.updateChildren(i,a+1),d.dirty=cu),this.changed=!0,this.index++,!0;break}}return!1}recreateWrapper(t,n,r,i,o,a){if(t.dirty||n.isAtom||!t.children.length||!t.node.content.eq(n.content)||!Uk(r,t.outerDeco)||!i.eq(t.innerDeco))return null;let s=lg.create(this.top,n,r,i,o,a);if(s.contentDOM){s.children=t.children,t.children=[];for(let l of s.children)l.parent=s}return t.destroy(),s}addNode(t,n,r,i,o){let a=lg.create(this.top,t,n,r,i,o);a.contentDOM&&a.updateChildren(i,o+1),this.top.children.splice(this.index++,0,a),this.changed=!0}placeWidget(t,n,r){let i=this.index<this.top.children.length?this.top.children[this.index]:null;if(i&&i.matchesWidget(t)&&(t==i.widget||!i.widget.type.toDOM.parentNode))this.index++;else{let o=new Cke(this.top,t,n,r);this.top.children.splice(this.index++,0,o),this.changed=!0}}addTextblockHacks(){let t=this.top.children[this.index-1],n=this.top;for(;t instanceof t0;)n=t,t=n.children[n.children.length-1];(!t||!(t instanceof X3)||/\n$/.test(t.node.text)||this.view.requiresGeckoHackNode&&/\s$/.test(t.node.text))&&((Js||Os)&&t&&t.dom.contentEditable=="false"&&this.addHackNode("IMG",n),this.addHackNode("BR",this.top))}addHackNode(t,n){if(n==this.top&&this.index<n.children.length&&n.children[this.index].matchesHack(t))this.index++;else{let r=document.createElement(t);t=="IMG"&&(r.className="ProseMirror-separator",r.alt=""),t=="BR"&&(r.className="ProseMirror-trailingBreak");let i=new wke(this.top,[],r,null);n!=this.top?n.children.push(i):n.children.splice(this.index++,0,i),this.changed=!0}}isLocked(t){return this.lock&&(t==this.lock||t.nodeType==1&&t.contains(this.lock.parentNode))}}function FJt(e,t){let n=t,r=n.children.length,i=e.childCount,o=new Map,a=[];e:for(;i>0;){let s;for(;;)if(r){let c=n.children[r-1];if(c instanceof t0)n=c,r=c.children.length;else{s=c,r--;break}}else{if(n==t)break e;r=n.parent.children.indexOf(n),n=n.parent}let l=s.node;if(l){if(l!=e.child(i-1))break;--i,o.set(s,i),a.push(s)}}return{index:i,matched:o,matches:a.reverse()}}function BJt(e,t){return e.type.side-t.type.side}function jJt(e,t,n,r){let i=t.locals(e),o=0;if(i.length==0){for(let c=0;c<e.childCount;c++){let u=e.child(c);r(u,i,t.forChild(o,u),c),o+=u.nodeSize}return}let a=0,s=[],l=null;for(let c=0;;){let u,d;for(;a<i.length&&i[a].to==o;){let v=i[a++];v.widget&&(u?(d||(d=[u])).push(v):u=v)}if(u)if(d){d.sort(BJt);for(let v=0;v<d.length;v++)n(d[v],c,!!l)}else n(u,c,!!l);let f,h;if(l)h=-1,f=l,l=null;else if(c<e.childCount)h=c,f=e.child(c++);else break;for(let v=0;v<s.length;v++)s[v].to<=o&&s.splice(v--,1);for(;a<i.length&&i[a].from<=o&&i[a].to>o;)s.push(i[a++]);let m=o+f.nodeSize;if(f.isText){let v=m;a<i.length&&i[a].from<v&&(v=i[a].from);for(let y=0;y<s.length;y++)s[y].to<v&&(v=s[y].to);v<m&&(l=f.cut(v-o),f=f.cut(0,v-o),m=v,h=-1)}else for(;a<i.length&&i[a].to<m;)a++;let g=f.isInline&&!f.isLeaf?s.filter(v=>!v.inline):s.slice();r(f,g,t.forChild(o,f),h),o=m}}function HJt(e){if(e.nodeName=="UL"||e.nodeName=="OL"){let t=e.style.cssText;e.style.cssText=t+"; list-style: square !important",window.getComputedStyle(e).listStyle,e.style.cssText=t}}function UJt(e,t,n,r){for(let i=0,o=0;i<e.childCount&&o<=r;){let a=e.child(i++),s=o;if(o+=a.nodeSize,!a.isText)continue;let l=a.text;for(;i<e.childCount;){let c=e.child(i++);if(o+=c.nodeSize,!c.isText)break;l+=c.text}if(o>=n){if(o>=r&&l.slice(r-t.length-s,r-s)==t)return r-t.length;let c=s<r?l.lastIndexOf(t,r-s-1):-1;if(c>=0&&c+t.length+s>=n)return s+c;if(n==r&&l.length>=r+t.length-s&&l.slice(r-s,r-s+t.length)==t)return r}}return-1}function Uz(e,t,n,r,i){let o=[];for(let a=0,s=0;a<e.length;a++){let l=e[a],c=s,u=s+=l.size;c>=n||u<=t?o.push(l):(c<t&&o.push(l.slice(0,t-c,r)),i&&(o.push(i),i=void 0),u>n&&o.push(l.slice(n-c,l.size,r)))}return o}function $Q(e,t=null){let n=e.domSelectionRange(),r=e.state.doc;if(!n.focusNode)return null;let i=e.docView.nearestDesc(n.focusNode),o=i&&i.size==0,a=e.docView.posFromDOM(n.focusNode,n.focusOffset,1);if(a<0)return null;let s=r.resolve(a),l,c;if(Q3(n)){for(l=a;i&&!i.node;)i=i.parent;let d=i.node;if(i&&d.isAtom&&lr.isSelectable(d)&&i.parent&&!(d.isInline&&hJt(n.focusNode,n.focusOffset,i.dom))){let f=i.posBefore;c=new lr(a==f?s:r.resolve(f))}}else{if(n instanceof e.dom.ownerDocument.defaultView.Selection&&n.rangeCount>1){let d=a,f=a;for(let h=0;h<n.rangeCount;h++){let m=n.getRangeAt(h);d=Math.min(d,e.docView.posFromDOM(m.startContainer,m.startOffset,1)),f=Math.max(f,e.docView.posFromDOM(m.endContainer,m.endOffset,-1))}if(d<0)return null;[l,a]=f==e.state.selection.anchor?[f,d]:[d,f],s=r.resolve(a)}else l=e.docView.posFromDOM(n.anchorNode,n.anchorOffset,1);if(l<0)return null}let u=r.resolve(l);if(!c){let d=t=="pointer"||e.state.selection.head<s.pos&&!o?1:-1;c=FQ(e,u,s,d)}return c}function Rke(e){return e.editable?e.hasFocus():Ake(e)&&document.activeElement&&document.activeElement.contains(e.dom)}function Xp(e,t=!1){let n=e.state.selection;if(Ike(e,n),!!Rke(e)){if(!t&&e.input.mouseDown&&e.input.mouseDown.allowDefault&&Os){let r=e.domSelectionRange(),i=e.domObserver.currentSelection;if(r.anchorNode&&i.anchorNode&&e0(r.anchorNode,r.anchorOffset,i.anchorNode,i.anchorOffset)){e.input.mouseDown.delayedSelectionSync=!0,e.domObserver.setCurSelection();return}}if(e.domObserver.disconnectSelection(),e.cursorWrapper)VJt(e);else{let{anchor:r,head:i}=n,o,a;Rue&&!(n instanceof er)&&(n.$from.parent.inlineContent||(o=Iue(e,n.from)),!n.empty&&!n.$from.parent.inlineContent&&(a=Iue(e,n.to))),e.docView.setSelection(r,i,e.root,t),Rue&&(o&&Aue(o),a&&Aue(a)),n.visible?e.dom.classList.remove("ProseMirror-hideselection"):(e.dom.classList.add("ProseMirror-hideselection"),"onselectionchange"in document&&zJt(e))}e.domObserver.setCurSelection(),e.domObserver.connectSelection()}}const Rue=Js||Os&&gke<63;function Iue(e,t){let{node:n,offset:r}=e.docView.domFromPos(t,0),i=r<n.childNodes.length?n.childNodes[r]:null,o=r?n.childNodes[r-1]:null;if(Js&&i&&i.contentEditable=="false")return p6(i);if((!i||i.contentEditable=="false")&&(!o||o.contentEditable=="false")){if(i)return p6(i);if(o)return p6(o)}}function p6(e){return e.contentEditable="true",Js&&e.draggable&&(e.draggable=!1,e.wasDraggable=!0),e}function Aue(e){e.contentEditable="false",e.wasDraggable&&(e.draggable=!0,e.wasDraggable=null)}function zJt(e){let t=e.dom.ownerDocument;t.removeEventListener("selectionchange",e.input.hideSelectionGuard);let n=e.domSelectionRange(),r=n.anchorNode,i=n.anchorOffset;t.addEventListener("selectionchange",e.input.hideSelectionGuard=()=>{(n.anchorNode!=r||n.anchorOffset!=i)&&(t.removeEventListener("selectionchange",e.input.hideSelectionGuard),setTimeout(()=>{(!Rke(e)||e.state.selection.visible)&&e.dom.classList.remove("ProseMirror-hideselection")},20))})}function VJt(e){let t=e.domSelection(),n=document.createRange();if(!t)return;let r=e.cursorWrapper.dom,i=r.nodeName=="IMG";i?n.setStart(r.parentNode,Za(r)+1):n.setStart(r,0),n.collapse(!0),t.removeAllRanges(),t.addRange(n),!i&&!e.state.selection.visible&&Il&&sg<=11&&(r.disabled=!0,r.disabled=!1)}function Ike(e,t){if(t instanceof lr){let n=e.docView.descAt(t.from);n!=e.lastSelectedViewDesc&&(Nue(e),n&&n.selectNode(),e.lastSelectedViewDesc=n)}else Nue(e)}function Nue(e){e.lastSelectedViewDesc&&(e.lastSelectedViewDesc.parent&&e.lastSelectedViewDesc.deselectNode(),e.lastSelectedViewDesc=void 0)}function FQ(e,t,n,r){return e.someProp("createSelectionBetween",i=>i(e,t,n))||er.between(t,n,r)}function Mue(e){return e.editable&&!e.hasFocus()?!1:Ake(e)}function Ake(e){let t=e.domSelectionRange();if(!t.anchorNode)return!1;try{return e.dom.contains(t.anchorNode.nodeType==3?t.anchorNode.parentNode:t.anchorNode)&&(e.editable||e.dom.contains(t.focusNode.nodeType==3?t.focusNode.parentNode:t.focusNode))}catch{return!1}}function GJt(e){let t=e.docView.domFromPos(e.state.selection.anchor,0),n=e.domSelectionRange();return e0(t.node,t.offset,n.anchorNode,n.anchorOffset)}function zz(e,t){let{$anchor:n,$head:r}=e.selection,i=t>0?n.max(r):n.min(r),o=i.parent.inlineContent?i.depth?e.doc.resolve(t>0?i.after():i.before()):null:i;return o&&mr.findFrom(o,t)}function dm(e,t){return e.dispatch(e.state.tr.setSelection(t).scrollIntoView()),!0}function kue(e,t,n){let r=e.state.selection;if(r instanceof er)if(n.indexOf("s")>-1){let{$head:i}=r,o=i.textOffset?null:t<0?i.nodeBefore:i.nodeAfter;if(!o||o.isText||!o.isLeaf)return!1;let a=e.state.doc.resolve(i.pos+o.nodeSize*(t<0?-1:1));return dm(e,new er(r.$anchor,a))}else if(r.empty){if(e.endOfTextblock(t>0?"forward":"backward")){let i=zz(e.state,t);return i&&i instanceof lr?dm(e,i):!1}else if(!(Kc&&n.indexOf("m")>-1)){let i=r.$head,o=i.textOffset?null:t<0?i.nodeBefore:i.nodeAfter,a;if(!o||o.isText)return!1;let s=t<0?i.pos-o.nodeSize:i.pos;return o.isAtom||(a=e.docView.descAt(s))&&!a.contentDOM?lr.isSelectable(o)?dm(e,new lr(t<0?e.state.doc.resolve(i.pos-o.nodeSize):i)):lO?dm(e,new er(e.state.doc.resolve(t<0?s:s+o.nodeSize))):!1:!1}}else return!1;else{if(r instanceof lr&&r.node.isInline)return dm(e,new er(t>0?r.$to:r.$from));{let i=zz(e.state,t);return i?dm(e,i):!1}}}function zk(e){return e.nodeType==3?e.nodeValue.length:e.childNodes.length}function ww(e,t){let n=e.pmViewDesc;return n&&n.size==0&&(t<0||e.nextSibling||e.nodeName!="BR")}function pb(e,t){return t<0?WJt(e):qJt(e)}function WJt(e){let t=e.domSelectionRange(),n=t.focusNode,r=t.focusOffset;if(!n)return;let i,o,a=!1;for(Nd&&n.nodeType==1&&r<zk(n)&&ww(n.childNodes[r],-1)&&(a=!0);;)if(r>0){if(n.nodeType!=1)break;{let s=n.childNodes[r-1];if(ww(s,-1))i=n,o=--r;else if(s.nodeType==3)n=s,r=n.nodeValue.length;else break}}else{if(Nke(n))break;{let s=n.previousSibling;for(;s&&ww(s,-1);)i=n.parentNode,o=Za(s),s=s.previousSibling;if(s)n=s,r=zk(n);else{if(n=n.parentNode,n==e.dom)break;r=0}}}a?Vz(e,n,r):i&&Vz(e,i,o)}function qJt(e){let t=e.domSelectionRange(),n=t.focusNode,r=t.focusOffset;if(!n)return;let i=zk(n),o,a;for(;;)if(r<i){if(n.nodeType!=1)break;let s=n.childNodes[r];if(ww(s,1))o=n,a=++r;else break}else{if(Nke(n))break;{let s=n.nextSibling;for(;s&&ww(s,1);)o=s.parentNode,a=Za(s)+1,s=s.nextSibling;if(s)n=s,r=0,i=zk(n);else{if(n=n.parentNode,n==e.dom)break;r=i=0}}}o&&Vz(e,o,a)}function Nke(e){let t=e.pmViewDesc;return t&&t.node&&t.node.isBlock}function YJt(e,t){for(;e&&t==e.childNodes.length&&!sO(e);)t=Za(e)+1,e=e.parentNode;for(;e&&t<e.childNodes.length;){let n=e.childNodes[t];if(n.nodeType==3)return n;if(n.nodeType==1&&n.contentEditable=="false")break;e=n,t=0}}function KJt(e,t){for(;e&&!t&&!sO(e);)t=Za(e),e=e.parentNode;for(;e&&t;){let n=e.childNodes[t-1];if(n.nodeType==3)return n;if(n.nodeType==1&&n.contentEditable=="false")break;e=n,t=e.childNodes.length}}function Vz(e,t,n){if(t.nodeType!=3){let o,a;(a=YJt(t,n))?(t=a,n=0):(o=KJt(t,n))&&(t=o,n=o.nodeValue.length)}let r=e.domSelection();if(!r)return;if(Q3(r)){let o=document.createRange();o.setEnd(t,n),o.setStart(t,n),r.removeAllRanges(),r.addRange(o)}else r.extend&&r.extend(t,n);e.domObserver.setCurSelection();let{state:i}=e;setTimeout(()=>{e.state==i&&Xp(e)},50)}function Pue(e,t){let n=e.state.doc.resolve(t);if(!(Os||vJt)&&n.parent.inlineContent){let r=e.coordsAtPos(t);if(t>n.start()){let i=e.coordsAtPos(t-1),o=(i.top+i.bottom)/2;if(o>r.top&&o<r.bottom&&Math.abs(i.left-r.left)>1)return i.left<r.left?"ltr":"rtl"}if(t<n.end()){let i=e.coordsAtPos(t+1),o=(i.top+i.bottom)/2;if(o>r.top&&o<r.bottom&&Math.abs(i.left-r.left)>1)return i.left>r.left?"ltr":"rtl"}}return getComputedStyle(e.dom).direction=="rtl"?"rtl":"ltr"}function Due(e,t,n){let r=e.state.selection;if(r instanceof er&&!r.empty||n.indexOf("s")>-1||Kc&&n.indexOf("m")>-1)return!1;let{$from:i,$to:o}=r;if(!i.parent.inlineContent||e.endOfTextblock(t<0?"up":"down")){let a=zz(e.state,t);if(a&&a instanceof lr)return dm(e,a)}if(!i.parent.inlineContent){let a=t<0?i:o,s=r instanceof lu?mr.near(a,t):mr.findFrom(a,t);return s?dm(e,s):!1}return!1}function Lue(e,t){if(!(e.state.selection instanceof er))return!0;let{$head:n,$anchor:r,empty:i}=e.state.selection;if(!n.sameParent(r))return!0;if(!i)return!1;if(e.endOfTextblock(t>0?"forward":"backward"))return!0;let o=!n.textOffset&&(t<0?n.nodeBefore:n.nodeAfter);if(o&&!o.isText){let a=e.state.tr;return t<0?a.delete(n.pos-o.nodeSize,n.pos):a.delete(n.pos,n.pos+o.nodeSize),e.dispatch(a),!0}return!1}function $ue(e,t,n){e.domObserver.stop(),t.contentEditable=n,e.domObserver.start()}function QJt(e){if(!Js||e.state.selection.$head.parentOffset>0)return!1;let{focusNode:t,focusOffset:n}=e.domSelectionRange();if(t&&t.nodeType==1&&n==0&&t.firstChild&&t.firstChild.contentEditable=="false"){let r=t.firstChild;$ue(e,r,"true"),setTimeout(()=>$ue(e,r,"false"),20)}return!1}function XJt(e){let t="";return e.ctrlKey&&(t+="c"),e.metaKey&&(t+="m"),e.altKey&&(t+="a"),e.shiftKey&&(t+="s"),t}function ZJt(e,t){let n=t.keyCode,r=XJt(t);if(n==8||Kc&&n==72&&r=="c")return Lue(e,-1)||pb(e,-1);if(n==46&&!t.shiftKey||Kc&&n==68&&r=="c")return Lue(e,1)||pb(e,1);if(n==13||n==27)return!0;if(n==37||Kc&&n==66&&r=="c"){let i=n==37?Pue(e,e.state.selection.from)=="ltr"?-1:1:-1;return kue(e,i,r)||pb(e,i)}else if(n==39||Kc&&n==70&&r=="c"){let i=n==39?Pue(e,e.state.selection.from)=="ltr"?1:-1:1;return kue(e,i,r)||pb(e,i)}else{if(n==38||Kc&&n==80&&r=="c")return Due(e,-1,r)||pb(e,-1);if(n==40||Kc&&n==78&&r=="c")return QJt(e)||Due(e,1,r)||pb(e,1);if(r==(Kc?"m":"c")&&(n==66||n==73||n==89||n==90))return!0}return!1}function Mke(e,t){e.someProp("transformCopied",h=>{t=h(t,e)});let n=[],{content:r,openStart:i,openEnd:o}=t;for(;i>1&&o>1&&r.childCount==1&&r.firstChild.childCount==1;){i--,o--;let h=r.firstChild;n.push(h.type.name,h.attrs!=h.type.defaultAttrs?h.attrs:null),r=h.content}let a=e.someProp("clipboardSerializer")||L0.fromSchema(e.state.schema),s=Fke(),l=s.createElement("div");l.appendChild(a.serializeFragment(r,{document:s}));let c=l.firstChild,u,d=0;for(;c&&c.nodeType==1&&(u=$ke[c.nodeName.toLowerCase()]);){for(let h=u.length-1;h>=0;h--){let m=s.createElement(u[h]);for(;l.firstChild;)m.appendChild(l.firstChild);l.appendChild(m),d++}c=l.firstChild}c&&c.nodeType==1&&c.setAttribute("data-pm-slice",`${i} ${o}${d?` -${d}`:""} ${JSON.stringify(n)}`);let f=e.someProp("clipboardTextSerializer",h=>h(t,e))||t.content.textBetween(0,t.content.size,`
`);return{dom:l,text:f,slice:t}}function kke(e,t,n,r,i){let o=i.parent.type.spec.code,a,s;if(!n&&!t)return null;let l=t&&(r||o||!n);if(l){if(e.someProp("transformPastedText",f=>{t=f(t,o||r,e)}),o)return t?new Rn(Xt.from(e.state.schema.text(t.replace(/\r\n?/g,`
`))),0,0):Rn.empty;let d=e.someProp("clipboardTextParser",f=>f(t,i,r,e));if(d)s=d;else{let f=i.marks(),{schema:h}=e.state,m=L0.fromSchema(h);a=document.createElement("div"),t.split(/(?:\r\n?|\n)+/).forEach(g=>{let v=a.appendChild(document.createElement("p"));g&&v.appendChild(m.serializeNode(h.text(g,f)))})}}else e.someProp("transformPastedHTML",d=>{n=d(n,e)}),a=nen(n),lO&&ren(a);let c=a&&a.querySelector("[data-pm-slice]"),u=c&&/^(\d+) (\d+)(?: -(\d+))? (.*)/.exec(c.getAttribute("data-pm-slice")||"");if(u&&u[3])for(let d=+u[3];d>0;d--){let f=a.firstChild;for(;f&&f.nodeType!=1;)f=f.nextSibling;if(!f)break;a=f}if(s||(s=(e.someProp("clipboardParser")||e.someProp("domParser")||Ay.fromSchema(e.state.schema)).parseSlice(a,{preserveWhitespace:!!(l||u),context:i,ruleFromNode(d){return d.nodeName=="BR"&&!d.nextSibling&&d.parentNode&&!JJt.test(d.parentNode.nodeName)?{ignore:!0}:null}})),u)s=ien(Fue(s,+u[1],+u[2]),u[4]);else if(s=Rn.maxOpen(een(s.content,i),!0),s.openStart||s.openEnd){let d=0,f=0;for(let h=s.content.firstChild;d<s.openStart&&!h.type.spec.isolating;d++,h=h.firstChild);for(let h=s.content.lastChild;f<s.openEnd&&!h.type.spec.isolating;f++,h=h.lastChild);s=Fue(s,d,f)}return e.someProp("transformPasted",d=>{s=d(s,e)}),s}const JJt=/^(a|abbr|acronym|b|cite|code|del|em|i|ins|kbd|label|output|q|ruby|s|samp|span|strong|sub|sup|time|u|tt|var)$/i;function een(e,t){if(e.childCount<2)return e;for(let n=t.depth;n>=0;n--){let r=t.node(n).contentMatchAt(t.index(n)),i,o=[];if(e.forEach(a=>{if(!o)return;let s=r.findWrapping(a.type),l;if(!s)return o=null;if(l=o.length&&i.length&&Dke(s,i,a,o[o.length-1],0))o[o.length-1]=l;else{o.length&&(o[o.length-1]=Lke(o[o.length-1],i.length));let c=Pke(a,s);o.push(c),r=r.matchType(c.type),i=s}}),o)return Xt.from(o)}return e}function Pke(e,t,n=0){for(let r=t.length-1;r>=n;r--)e=t[r].create(null,Xt.from(e));return e}function Dke(e,t,n,r,i){if(i<e.length&&i<t.length&&e[i]==t[i]){let o=Dke(e,t,n,r.lastChild,i+1);if(o)return r.copy(r.content.replaceChild(r.childCount-1,o));if(r.contentMatchAt(r.childCount).matchType(i==e.length-1?n.type:e[i+1]))return r.copy(r.content.append(Xt.from(Pke(n,e,i+1))))}}function Lke(e,t){if(t==0)return e;let n=e.content.replaceChild(e.childCount-1,Lke(e.lastChild,t-1)),r=e.contentMatchAt(e.childCount).fillBefore(Xt.empty,!0);return e.copy(n.append(r))}function Gz(e,t,n,r,i,o){let a=t<0?e.firstChild:e.lastChild,s=a.content;return e.childCount>1&&(o=0),i<r-1&&(s=Gz(s,t,n,r,i+1,o)),i>=n&&(s=t<0?a.contentMatchAt(0).fillBefore(s,o<=i).append(s):s.append(a.contentMatchAt(a.childCount).fillBefore(Xt.empty,!0))),e.replaceChild(t<0?0:e.childCount-1,a.copy(s))}function Fue(e,t,n){return t<e.openStart&&(e=new Rn(Gz(e.content,-1,t,e.openStart,0,e.openEnd),t,e.openEnd)),n<e.openEnd&&(e=new Rn(Gz(e.content,1,n,e.openEnd,0,0),e.openStart,n)),e}const $ke={thead:["table"],tbody:["table"],tfoot:["table"],caption:["table"],colgroup:["table"],col:["table","colgroup"],tr:["table","tbody"],td:["table","tbody","tr"],th:["table","tbody","tr"]};let Bue=null;function Fke(){return Bue||(Bue=document.implementation.createHTMLDocument("title"))}let h6=null;function ten(e){let t=window.trustedTypes;return t?(h6||(h6=t.createPolicy("ProseMirrorClipboard",{createHTML:n=>n})),h6.createHTML(e)):e}function nen(e){let t=/^(\s*<meta [^>]*>)*/.exec(e);t&&(e=e.slice(t[0].length));let n=Fke().createElement("div"),r=/<([a-z][^>\s]+)/i.exec(e),i;if((i=r&&$ke[r[1].toLowerCase()])&&(e=i.map(o=>"<"+o+">").join("")+e+i.map(o=>"</"+o+">").reverse().join("")),n.innerHTML=ten(e),i)for(let o=0;o<i.length;o++)n=n.querySelector(i[o])||n;return n}function ren(e){let t=e.querySelectorAll(Os?"span:not([class]):not([style])":"span.Apple-converted-space");for(let n=0;n<t.length;n++){let r=t[n];r.childNodes.length==1&&r.textContent==" "&&r.parentNode&&r.parentNode.replaceChild(e.ownerDocument.createTextNode(" "),r)}}function ien(e,t){if(!e.size)return e;let n=e.content.firstChild.type.schema,r;try{r=JSON.parse(t)}catch{return e}let{content:i,openStart:o,openEnd:a}=e;for(let s=r.length-2;s>=0;s-=2){let l=n.nodes[r[s]];if(!l||l.hasRequiredAttrs())break;i=Xt.from(l.create(r[s+1],i)),o++,a++}return new Rn(i,o,a)}const el={},tl={},oen={touchstart:!0,touchmove:!0};class aen{constructor(){this.shiftKey=!1,this.mouseDown=null,this.lastKeyCode=null,this.lastKeyCodeTime=0,this.lastClick={time:0,x:0,y:0,type:""},this.lastSelectionOrigin=null,this.lastSelectionTime=0,this.lastIOSEnter=0,this.lastIOSEnterFallbackTimeout=-1,this.lastFocus=0,this.lastTouch=0,this.lastAndroidDelete=0,this.composing=!1,this.compositionNode=null,this.composingTimeout=-1,this.compositionNodes=[],this.compositionEndedAt=-2e8,this.compositionID=1,this.compositionPendingChanges=0,this.domChangeCount=0,this.eventHandlers=Object.create(null),this.hideSelectionGuard=null}}function sen(e){for(let t in el){let n=el[t];e.dom.addEventListener(t,e.input.eventHandlers[t]=r=>{cen(e,r)&&!BQ(e,r)&&(e.editable||!(r.type in tl))&&n(e,r)},oen[t]?{passive:!0}:void 0)}Js&&e.dom.addEventListener("input",()=>null),Wz(e)}function Bm(e,t){e.input.lastSelectionOrigin=t,e.input.lastSelectionTime=Date.now()}function len(e){e.domObserver.stop();for(let t in e.input.eventHandlers)e.dom.removeEventListener(t,e.input.eventHandlers[t]);clearTimeout(e.input.composingTimeout),clearTimeout(e.input.lastIOSEnterFallbackTimeout)}function Wz(e){e.someProp("handleDOMEvents",t=>{for(let n in t)e.input.eventHandlers[n]||e.dom.addEventListener(n,e.input.eventHandlers[n]=r=>BQ(e,r))})}function BQ(e,t){return e.someProp("handleDOMEvents",n=>{let r=n[t.type];return r?r(e,t)||t.defaultPrevented:!1})}function cen(e,t){if(!t.bubbles)return!0;if(t.defaultPrevented)return!1;for(let n=t.target;n!=e.dom;n=n.parentNode)if(!n||n.nodeType==11||n.pmViewDesc&&n.pmViewDesc.stopEvent(t))return!1;return!0}function uen(e,t){!BQ(e,t)&&el[t.type]&&(e.editable||!(t.type in tl))&&el[t.type](e,t)}tl.keydown=(e,t)=>{let n=t;if(e.input.shiftKey=n.keyCode==16||n.shiftKey,!jke(e,n)&&(e.input.lastKeyCode=n.keyCode,e.input.lastKeyCodeTime=Date.now(),!(Ju&&Os&&n.keyCode==13)))if(n.keyCode!=229&&e.domObserver.forceFlush(),U_&&n.keyCode==13&&!n.ctrlKey&&!n.altKey&&!n.metaKey){let r=Date.now();e.input.lastIOSEnter=r,e.input.lastIOSEnterFallbackTimeout=setTimeout(()=>{e.input.lastIOSEnter==r&&(e.someProp("handleKeyDown",i=>i(e,x1(13,"Enter"))),e.input.lastIOSEnter=0)},200)}else e.someProp("handleKeyDown",r=>r(e,n))||ZJt(e,n)?n.preventDefault():Bm(e,"key")};tl.keyup=(e,t)=>{t.keyCode==16&&(e.input.shiftKey=!1)};tl.keypress=(e,t)=>{let n=t;if(jke(e,n)||!n.charCode||n.ctrlKey&&!n.altKey||Kc&&n.metaKey)return;if(e.someProp("handleKeyPress",i=>i(e,n))){n.preventDefault();return}let r=e.state.selection;if(!(r instanceof er)||!r.$from.sameParent(r.$to)){let i=String.fromCharCode(n.charCode);!/[\r\n]/.test(i)&&!e.someProp("handleTextInput",o=>o(e,r.$from.pos,r.$to.pos,i))&&e.dispatch(e.state.tr.insertText(i).scrollIntoView()),n.preventDefault()}};function Z3(e){return{left:e.clientX,top:e.clientY}}function den(e,t){let n=t.x-e.clientX,r=t.y-e.clientY;return n*n+r*r<100}function jQ(e,t,n,r,i){if(r==-1)return!1;let o=e.state.doc.resolve(r);for(let a=o.depth+1;a>0;a--)if(e.someProp(t,s=>a>o.depth?s(e,n,o.nodeAfter,o.before(a),i,!0):s(e,n,o.node(a),o.before(a),i,!1)))return!0;return!1}function Py(e,t,n){if(e.focused||e.focus(),e.state.selection.eq(t))return;let r=e.state.tr.setSelection(t);r.setMeta("pointer",!0),e.dispatch(r)}function fen(e,t){if(t==-1)return!1;let n=e.state.doc.resolve(t),r=n.nodeAfter;return r&&r.isAtom&&lr.isSelectable(r)?(Py(e,new lr(n)),!0):!1}function pen(e,t){if(t==-1)return!1;let n=e.state.selection,r,i;n instanceof lr&&(r=n.node);let o=e.state.doc.resolve(t);for(let a=o.depth+1;a>0;a--){let s=a>o.depth?o.nodeAfter:o.node(a);if(lr.isSelectable(s)){r&&n.$from.depth>0&&a>=n.$from.depth&&o.before(n.$from.depth+1)==n.$from.pos?i=o.before(n.$from.depth):i=o.before(a);break}}return i!=null?(Py(e,lr.create(e.state.doc,i)),!0):!1}function hen(e,t,n,r,i){return jQ(e,"handleClickOn",t,n,r)||e.someProp("handleClick",o=>o(e,t,r))||(i?pen(e,n):fen(e,n))}function men(e,t,n,r){return jQ(e,"handleDoubleClickOn",t,n,r)||e.someProp("handleDoubleClick",i=>i(e,t,r))}function gen(e,t,n,r){return jQ(e,"handleTripleClickOn",t,n,r)||e.someProp("handleTripleClick",i=>i(e,t,r))||ven(e,n,r)}function ven(e,t,n){if(n.button!=0)return!1;let r=e.state.doc;if(t==-1)return r.inlineContent?(Py(e,er.create(r,0,r.content.size)),!0):!1;let i=r.resolve(t);for(let o=i.depth+1;o>0;o--){let a=o>i.depth?i.nodeAfter:i.node(o),s=i.before(o);if(a.inlineContent)Py(e,er.create(r,s+1,s+1+a.content.size));else if(lr.isSelectable(a))Py(e,lr.create(r,s));else continue;return!0}}function HQ(e){return Vk(e)}const Bke=Kc?"metaKey":"ctrlKey";el.mousedown=(e,t)=>{let n=t;e.input.shiftKey=n.shiftKey;let r=HQ(e),i=Date.now(),o="singleClick";i-e.input.lastClick.time<500&&den(n,e.input.lastClick)&&!n[Bke]&&(e.input.lastClick.type=="singleClick"?o="doubleClick":e.input.lastClick.type=="doubleClick"&&(o="tripleClick")),e.input.lastClick={time:i,x:n.clientX,y:n.clientY,type:o};let a=e.posAtCoords(Z3(n));a&&(o=="singleClick"?(e.input.mouseDown&&e.input.mouseDown.done(),e.input.mouseDown=new ben(e,a,n,!!r)):(o=="doubleClick"?men:gen)(e,a.pos,a.inside,n)?n.preventDefault():Bm(e,"pointer"))};class ben{constructor(t,n,r,i){this.view=t,this.pos=n,this.event=r,this.flushed=i,this.delayedSelectionSync=!1,this.mightDrag=null,this.startDoc=t.state.doc,this.selectNode=!!r[Bke],this.allowDefault=r.shiftKey;let o,a;if(n.inside>-1)o=t.state.doc.nodeAt(n.inside),a=n.inside;else{let u=t.state.doc.resolve(n.pos);o=u.parent,a=u.depth?u.before():0}const s=i?null:r.target,l=s?t.docView.nearestDesc(s,!0):null;this.target=l&&l.dom.nodeType==1?l.dom:null;let{selection:c}=t.state;(r.button==0&&o.type.spec.draggable&&o.type.spec.selectable!==!1||c instanceof lr&&c.from<=a&&c.to>a)&&(this.mightDrag={node:o,pos:a,addAttr:!!(this.target&&!this.target.draggable),setUneditable:!!(this.target&&Nd&&!this.target.hasAttribute("contentEditable"))}),this.target&&this.mightDrag&&(this.mightDrag.addAttr||this.mightDrag.setUneditable)&&(this.view.domObserver.stop(),this.mightDrag.addAttr&&(this.target.draggable=!0),this.mightDrag.setUneditable&&setTimeout(()=>{this.view.input.mouseDown==this&&this.target.setAttribute("contentEditable","false")},20),this.view.domObserver.start()),t.root.addEventListener("mouseup",this.up=this.up.bind(this)),t.root.addEventListener("mousemove",this.move=this.move.bind(this)),Bm(t,"pointer")}done(){this.view.root.removeEventListener("mouseup",this.up),this.view.root.removeEventListener("mousemove",this.move),this.mightDrag&&this.target&&(this.view.domObserver.stop(),this.mightDrag.addAttr&&this.target.removeAttribute("draggable"),this.mightDrag.setUneditable&&this.target.removeAttribute("contentEditable"),this.view.domObserver.start()),this.delayedSelectionSync&&setTimeout(()=>Xp(this.view)),this.view.input.mouseDown=null}up(t){if(this.done(),!this.view.dom.contains(t.target))return;let n=this.pos;this.view.state.doc!=this.startDoc&&(n=this.view.posAtCoords(Z3(t))),this.updateAllowDefault(t),this.allowDefault||!n?Bm(this.view,"pointer"):hen(this.view,n.pos,n.inside,t,this.selectNode)?t.preventDefault():t.button==0&&(this.flushed||Js&&this.mightDrag&&!this.mightDrag.node.isAtom||Os&&!this.view.state.selection.visible&&Math.min(Math.abs(n.pos-this.view.state.selection.from),Math.abs(n.pos-this.view.state.selection.to))<=2)?(Py(this.view,mr.near(this.view.state.doc.resolve(n.pos))),t.preventDefault()):Bm(this.view,"pointer")}move(t){this.updateAllowDefault(t),Bm(this.view,"pointer"),t.buttons==0&&this.done()}updateAllowDefault(t){!this.allowDefault&&(Math.abs(this.event.x-t.clientX)>4||Math.abs(this.event.y-t.clientY)>4)&&(this.allowDefault=!0)}}el.touchstart=e=>{e.input.lastTouch=Date.now(),HQ(e),Bm(e,"pointer")};el.touchmove=e=>{e.input.lastTouch=Date.now(),Bm(e,"pointer")};el.contextmenu=e=>HQ(e);function jke(e,t){return e.composing?!0:Js&&Math.abs(t.timeStamp-e.input.compositionEndedAt)<500?(e.input.compositionEndedAt=-2e8,!0):!1}const yen=Ju?5e3:-1;tl.compositionstart=tl.compositionupdate=e=>{if(!e.composing){e.domObserver.flush();let{state:t}=e,n=t.selection.$to;if(t.selection instanceof er&&(t.storedMarks||!n.textOffset&&n.parentOffset&&n.nodeBefore.marks.some(r=>r.type.spec.inclusive===!1)))e.markCursor=e.state.storedMarks||n.marks(),Vk(e,!0),e.markCursor=null;else if(Vk(e,!t.selection.empty),Nd&&t.selection.empty&&n.parentOffset&&!n.textOffset&&n.nodeBefore.marks.length){let r=e.domSelectionRange();for(let i=r.focusNode,o=r.focusOffset;i&&i.nodeType==1&&o!=0;){let a=o<0?i.lastChild:i.childNodes[o-1];if(!a)break;if(a.nodeType==3){let s=e.domSelection();s&&s.collapse(a,a.nodeValue.length);break}else i=a,o=-1}}e.input.composing=!0}Hke(e,yen)};tl.compositionend=(e,t)=>{e.composing&&(e.input.composing=!1,e.input.compositionEndedAt=t.timeStamp,e.input.compositionPendingChanges=e.domObserver.pendingRecords().length?e.input.compositionID:0,e.input.compositionNode=null,e.input.compositionPendingChanges&&Promise.resolve().then(()=>e.domObserver.flush()),e.input.compositionID++,Hke(e,20))};function Hke(e,t){clearTimeout(e.input.composingTimeout),t>-1&&(e.input.composingTimeout=setTimeout(()=>Vk(e),t))}function Uke(e){for(e.composing&&(e.input.composing=!1,e.input.compositionEndedAt=Sen());e.input.compositionNodes.length>0;)e.input.compositionNodes.pop().markParentsDirty()}function _en(e){let t=e.domSelectionRange();if(!t.focusNode)return null;let n=fJt(t.focusNode,t.focusOffset),r=pJt(t.focusNode,t.focusOffset);if(n&&r&&n!=r){let i=r.pmViewDesc,o=e.domObserver.lastChangedTextNode;if(n==o||r==o)return o;if(!i||!i.isText(r.nodeValue))return r;if(e.input.compositionNode==r){let a=n.pmViewDesc;if(!(!a||!a.isText(n.nodeValue)))return r}}return n||r}function Sen(){let e=document.createEvent("Event");return e.initEvent("event",!0,!0),e.timeStamp}function Vk(e,t=!1){if(!(Ju&&e.domObserver.flushingSoon>=0)){if(e.domObserver.forceFlush(),Uke(e),t||e.docView&&e.docView.dirty){let n=$Q(e);return n&&!n.eq(e.state.selection)?e.dispatch(e.state.tr.setSelection(n)):(e.markCursor||t)&&!e.state.selection.empty?e.dispatch(e.state.tr.deleteSelection()):e.updateState(e.state),!0}return!1}}function Een(e,t){if(!e.dom.parentNode)return;let n=e.dom.parentNode.appendChild(document.createElement("div"));n.appendChild(t),n.style.cssText="position: fixed; left: -10000px; top: 10px";let r=getSelection(),i=document.createRange();i.selectNodeContents(t),e.dom.blur(),r.removeAllRanges(),r.addRange(i),setTimeout(()=>{n.parentNode&&n.parentNode.removeChild(n),e.focus()},50)}const ix=Il&&sg<15||U_&&bJt<604;el.copy=tl.cut=(e,t)=>{let n=t,r=e.state.selection,i=n.type=="cut";if(r.empty)return;let o=ix?null:n.clipboardData,a=r.content(),{dom:s,text:l}=Mke(e,a);o?(n.preventDefault(),o.clearData(),o.setData("text/html",s.innerHTML),o.setData("text/plain",l)):Een(e,s),i&&e.dispatch(e.state.tr.deleteSelection().scrollIntoView().setMeta("uiEvent","cut"))};function Cen(e){return e.openStart==0&&e.openEnd==0&&e.content.childCount==1?e.content.firstChild:null}function wen(e,t){if(!e.dom.parentNode)return;let n=e.input.shiftKey||e.state.selection.$from.parent.type.spec.code,r=e.dom.parentNode.appendChild(document.createElement(n?"textarea":"div"));n||(r.contentEditable="true"),r.style.cssText="position: fixed; left: -10000px; top: 10px",r.focus();let i=e.input.shiftKey&&e.input.lastKeyCode!=45;setTimeout(()=>{e.focus(),r.parentNode&&r.parentNode.removeChild(r),n?ox(e,r.value,null,i,t):ox(e,r.textContent,r.innerHTML,i,t)},50)}function ox(e,t,n,r,i){let o=kke(e,t,n,r,e.state.selection.$from);if(e.someProp("handlePaste",l=>l(e,i,o||Rn.empty)))return!0;if(!o)return!1;let a=Cen(o),s=a?e.state.tr.replaceSelectionWith(a,r):e.state.tr.replaceSelection(o);return e.dispatch(s.scrollIntoView().setMeta("paste",!0).setMeta("uiEvent","paste")),!0}function zke(e){let t=e.getData("text/plain")||e.getData("Text");if(t)return t;let n=e.getData("text/uri-list");return n?n.replace(/\r?\n/g," "):""}tl.paste=(e,t)=>{let n=t;if(e.composing&&!Ju)return;let r=ix?null:n.clipboardData,i=e.input.shiftKey&&e.input.lastKeyCode!=45;r&&ox(e,zke(r),r.getData("text/html"),i,n)?n.preventDefault():wen(e,n)};class Vke{constructor(t,n,r){this.slice=t,this.move=n,this.node=r}}const Gke=Kc?"altKey":"ctrlKey";el.dragstart=(e,t)=>{let n=t,r=e.input.mouseDown;if(r&&r.done(),!n.dataTransfer)return;let i=e.state.selection,o=i.empty?null:e.posAtCoords(Z3(n)),a;if(!(o&&o.pos>=i.from&&o.pos<=(i instanceof lr?i.to-1:i.to))){if(r&&r.mightDrag)a=lr.create(e.state.doc,r.mightDrag.pos);else if(n.target&&n.target.nodeType==1){let d=e.docView.nearestDesc(n.target,!0);d&&d.node.type.spec.draggable&&d!=e.docView&&(a=lr.create(e.state.doc,d.posBefore))}}let s=(a||e.state.selection).content(),{dom:l,text:c,slice:u}=Mke(e,s);(!n.dataTransfer.files.length||!Os||gke>120)&&n.dataTransfer.clearData(),n.dataTransfer.setData(ix?"Text":"text/html",l.innerHTML),n.dataTransfer.effectAllowed="copyMove",ix||n.dataTransfer.setData("text/plain",c),e.dragging=new Vke(u,!n[Gke],a)};el.dragend=e=>{let t=e.dragging;window.setTimeout(()=>{e.dragging==t&&(e.dragging=null)},50)};tl.dragover=tl.dragenter=(e,t)=>t.preventDefault();tl.drop=(e,t)=>{let n=t,r=e.dragging;if(e.dragging=null,!n.dataTransfer)return;let i=e.posAtCoords(Z3(n));if(!i)return;let o=e.state.doc.resolve(i.pos),a=r&&r.slice;a?e.someProp("transformPasted",m=>{a=m(a,e)}):a=kke(e,zke(n.dataTransfer),ix?null:n.dataTransfer.getData("text/html"),!1,o);let s=!!(r&&!n[Gke]);if(e.someProp("handleDrop",m=>m(e,n,a||Rn.empty,s))){n.preventDefault();return}if(!a)return;n.preventDefault();let l=a?ske(e.state.doc,o.pos,a):o.pos;l==null&&(l=o.pos);let c=e.state.tr;if(s){let{node:m}=r;m?m.replace(c):c.deleteSelection()}let u=c.mapping.map(l),d=a.openStart==0&&a.openEnd==0&&a.content.childCount==1,f=c.doc;if(d?c.replaceRangeWith(u,u,a.content.firstChild):c.replaceRange(u,u,a),c.doc.eq(f))return;let h=c.doc.resolve(u);if(d&&lr.isSelectable(a.content.firstChild)&&h.nodeAfter&&h.nodeAfter.sameMarkup(a.content.firstChild))c.setSelection(new lr(h));else{let m=c.mapping.map(l);c.mapping.maps[c.mapping.maps.length-1].forEach((g,v,y,b)=>m=b),c.setSelection(FQ(e,h,c.doc.resolve(m)))}e.focus(),e.dispatch(c.setMeta("uiEvent","drop"))};el.focus=e=>{e.input.lastFocus=Date.now(),e.focused||(e.domObserver.stop(),e.dom.classList.add("ProseMirror-focused"),e.domObserver.start(),e.focused=!0,setTimeout(()=>{e.docView&&e.hasFocus()&&!e.domObserver.currentSelection.eq(e.domSelectionRange())&&Xp(e)},20))};el.blur=(e,t)=>{let n=t;e.focused&&(e.domObserver.stop(),e.dom.classList.remove("ProseMirror-focused"),e.domObserver.start(),n.relatedTarget&&e.dom.contains(n.relatedTarget)&&e.domObserver.currentSelection.clear(),e.focused=!1)};el.beforeinput=(e,t)=>{if(Os&&Ju&&t.inputType=="deleteContentBackward"){e.domObserver.flushSoon();let{domChangeCount:n}=e.input;setTimeout(()=>{if(e.input.domChangeCount!=n||(e.dom.blur(),e.focus(),e.someProp("handleKeyDown",i=>i(e,x1(8,"Backspace")))))return;let{$cursor:r}=e.state.selection;r&&r.pos>0&&e.dispatch(e.state.tr.delete(r.pos-1,r.pos).scrollIntoView())},50)}};for(let e in tl)el[e]=tl[e];function ax(e,t){if(e==t)return!0;for(let n in e)if(e[n]!==t[n])return!1;for(let n in t)if(!(n in e))return!1;return!0}class Gk{constructor(t,n){this.toDOM=t,this.spec=n||_v,this.side=this.spec.side||0}map(t,n,r,i){let{pos:o,deleted:a}=t.mapResult(n.from+i,this.side<0?-1:1);return a?null:new ta(o-r,o-r,this)}valid(){return!0}eq(t){return this==t||t instanceof Gk&&(this.spec.key&&this.spec.key==t.spec.key||this.toDOM==t.toDOM&&ax(this.spec,t.spec))}destroy(t){this.spec.destroy&&this.spec.destroy(t)}}class cg{constructor(t,n){this.attrs=t,this.spec=n||_v}map(t,n,r,i){let o=t.map(n.from+i,this.spec.inclusiveStart?-1:1)-r,a=t.map(n.to+i,this.spec.inclusiveEnd?1:-1)-r;return o>=a?null:new ta(o,a,this)}valid(t,n){return n.from<n.to}eq(t){return this==t||t instanceof cg&&ax(this.attrs,t.attrs)&&ax(this.spec,t.spec)}static is(t){return t.type instanceof cg}destroy(){}}class UQ{constructor(t,n){this.attrs=t,this.spec=n||_v}map(t,n,r,i){let o=t.mapResult(n.from+i,1);if(o.deleted)return null;let a=t.mapResult(n.to+i,-1);return a.deleted||a.pos<=o.pos?null:new ta(o.pos-r,a.pos-r,this)}valid(t,n){let{index:r,offset:i}=t.content.findIndex(n.from),o;return i==n.from&&!(o=t.child(r)).isText&&i+o.nodeSize==n.to}eq(t){return this==t||t instanceof UQ&&ax(this.attrs,t.attrs)&&ax(this.spec,t.spec)}destroy(){}}class ta{constructor(t,n,r){this.from=t,this.to=n,this.type=r}copy(t,n){return new ta(t,n,this.type)}eq(t,n=0){return this.type.eq(t.type)&&this.from+n==t.from&&this.to+n==t.to}map(t,n,r){return this.type.map(t,this,n,r)}static widget(t,n,r){return new ta(t,t,new Gk(n,r))}static inline(t,n,r,i){return new ta(t,n,new cg(r,i))}static node(t,n,r,i){return new ta(t,n,new UQ(r,i))}get spec(){return this.type.spec}get inline(){return this.type instanceof cg}get widget(){return this.type instanceof Gk}}const Ib=[],_v={};class Ci{constructor(t,n){this.local=t.length?t:Ib,this.children=n.length?n:Ib}static create(t,n){return n.length?Wk(n,t,0,_v):ys}find(t,n,r){let i=[];return this.findInner(t??0,n??1e9,i,0,r),i}findInner(t,n,r,i,o){for(let a=0;a<this.local.length;a++){let s=this.local[a];s.from<=n&&s.to>=t&&(!o||o(s.spec))&&r.push(s.copy(s.from+i,s.to+i))}for(let a=0;a<this.children.length;a+=3)if(this.children[a]<n&&this.children[a+1]>t){let s=this.children[a]+1;this.children[a+2].findInner(t-s,n-s,r,i+s,o)}}map(t,n,r){return this==ys||t.maps.length==0?this:this.mapInner(t,n,0,0,r||_v)}mapInner(t,n,r,i,o){let a;for(let s=0;s<this.local.length;s++){let l=this.local[s].map(t,r,i);l&&l.type.valid(n,l)?(a||(a=[])).push(l):o.onRemove&&o.onRemove(this.local[s].spec)}return this.children.length?Ten(this.children,a||[],t,n,r,i,o):a?new Ci(a.sort(Sv),Ib):ys}add(t,n){return n.length?this==ys?Ci.create(t,n):this.addInner(t,n,0):this}addInner(t,n,r){let i,o=0;t.forEach((s,l)=>{let c=l+r,u;if(u=qke(n,s,c)){for(i||(i=this.children.slice());o<i.length&&i[o]<l;)o+=3;i[o]==l?i[o+2]=i[o+2].addInner(s,u,c+1):i.splice(o,0,l,l+s.nodeSize,Wk(u,s,c+1,_v)),o+=3}});let a=Wke(o?Yke(n):n,-r);for(let s=0;s<a.length;s++)a[s].type.valid(t,a[s])||a.splice(s--,1);return new Ci(a.length?this.local.concat(a).sort(Sv):this.local,i||this.children)}remove(t){return t.length==0||this==ys?this:this.removeInner(t,0)}removeInner(t,n){let r=this.children,i=this.local;for(let o=0;o<r.length;o+=3){let a,s=r[o]+n,l=r[o+1]+n;for(let u=0,d;u<t.length;u++)(d=t[u])&&d.from>s&&d.to<l&&(t[u]=null,(a||(a=[])).push(d));if(!a)continue;r==this.children&&(r=this.children.slice());let c=r[o+2].removeInner(a,s+1);c!=ys?r[o+2]=c:(r.splice(o,3),o-=3)}if(i.length){for(let o=0,a;o<t.length;o++)if(a=t[o])for(let s=0;s<i.length;s++)i[s].eq(a,n)&&(i==this.local&&(i=this.local.slice()),i.splice(s--,1))}return r==this.children&&i==this.local?this:i.length||r.length?new Ci(i,r):ys}forChild(t,n){if(this==ys)return this;if(n.isLeaf)return Ci.empty;let r,i;for(let s=0;s<this.children.length;s+=3)if(this.children[s]>=t){this.children[s]==t&&(r=this.children[s+2]);break}let o=t+1,a=o+n.content.size;for(let s=0;s<this.local.length;s++){let l=this.local[s];if(l.from<a&&l.to>o&&l.type instanceof cg){let c=Math.max(o,l.from)-o,u=Math.min(a,l.to)-o;c<u&&(i||(i=[])).push(l.copy(c,u))}}if(i){let s=new Ci(i.sort(Sv),Ib);return r?new bm([s,r]):s}return r||ys}eq(t){if(this==t)return!0;if(!(t instanceof Ci)||this.local.length!=t.local.length||this.children.length!=t.children.length)return!1;for(let n=0;n<this.local.length;n++)if(!this.local[n].eq(t.local[n]))return!1;for(let n=0;n<this.children.length;n+=3)if(this.children[n]!=t.children[n]||this.children[n+1]!=t.children[n+1]||!this.children[n+2].eq(t.children[n+2]))return!1;return!0}locals(t){return zQ(this.localsInner(t))}localsInner(t){if(this==ys)return Ib;if(t.inlineContent||!this.local.some(cg.is))return this.local;let n=[];for(let r=0;r<this.local.length;r++)this.local[r].type instanceof cg||n.push(this.local[r]);return n}forEachSet(t){t(this)}}Ci.empty=new Ci([],[]);Ci.removeOverlap=zQ;const ys=Ci.empty;class bm{constructor(t){this.members=t}map(t,n){const r=this.members.map(i=>i.map(t,n,_v));return bm.from(r)}forChild(t,n){if(n.isLeaf)return Ci.empty;let r=[];for(let i=0;i<this.members.length;i++){let o=this.members[i].forChild(t,n);o!=ys&&(o instanceof bm?r=r.concat(o.members):r.push(o))}return bm.from(r)}eq(t){if(!(t instanceof bm)||t.members.length!=this.members.length)return!1;for(let n=0;n<this.members.length;n++)if(!this.members[n].eq(t.members[n]))return!1;return!0}locals(t){let n,r=!0;for(let i=0;i<this.members.length;i++){let o=this.members[i].localsInner(t);if(o.length)if(!n)n=o;else{r&&(n=n.slice(),r=!1);for(let a=0;a<o.length;a++)n.push(o[a])}}return n?zQ(r?n:n.sort(Sv)):Ib}static from(t){switch(t.length){case 0:return ys;case 1:return t[0];default:return new bm(t.every(n=>n instanceof Ci)?t:t.reduce((n,r)=>n.concat(r instanceof Ci?r:r.members),[]))}}forEachSet(t){for(let n=0;n<this.members.length;n++)this.members[n].forEachSet(t)}}function Ten(e,t,n,r,i,o,a){let s=e.slice();for(let c=0,u=o;c<n.maps.length;c++){let d=0;n.maps[c].forEach((f,h,m,g)=>{let v=g-m-(h-f);for(let y=0;y<s.length;y+=3){let b=s[y+1];if(b<0||f>b+u-d)continue;let _=s[y]+u-d;h>=_?s[y+1]=f<=_?-2:-1:f>=u&&v&&(s[y]+=v,s[y+1]+=v)}d+=v}),u=n.maps[c].map(u,-1)}let l=!1;for(let c=0;c<s.length;c+=3)if(s[c+1]<0){if(s[c+1]==-2){l=!0,s[c+1]=-1;continue}let u=n.map(e[c]+o),d=u-i;if(d<0||d>=r.content.size){l=!0;continue}let f=n.map(e[c+1]+o,-1),h=f-i,{index:m,offset:g}=r.content.findIndex(d),v=r.maybeChild(m);if(v&&g==d&&g+v.nodeSize==h){let y=s[c+2].mapInner(n,v,u+1,e[c]+o+1,a);y!=ys?(s[c]=d,s[c+1]=h,s[c+2]=y):(s[c+1]=-2,l=!0)}else l=!0}if(l){let c=xen(s,e,t,n,i,o,a),u=Wk(c,r,0,a);t=u.local;for(let d=0;d<s.length;d+=3)s[d+1]<0&&(s.splice(d,3),d-=3);for(let d=0,f=0;d<u.children.length;d+=3){let h=u.children[d];for(;f<s.length&&s[f]<h;)f+=3;s.splice(f,0,u.children[d],u.children[d+1],u.children[d+2])}}return new Ci(t.sort(Sv),s)}function Wke(e,t){if(!t||!e.length)return e;let n=[];for(let r=0;r<e.length;r++){let i=e[r];n.push(new ta(i.from+t,i.to+t,i.type))}return n}function xen(e,t,n,r,i,o,a){function s(l,c){for(let u=0;u<l.local.length;u++){let d=l.local[u].map(r,i,c);d?n.push(d):a.onRemove&&a.onRemove(l.local[u].spec)}for(let u=0;u<l.children.length;u+=3)s(l.children[u+2],l.children[u]+c+1)}for(let l=0;l<e.length;l+=3)e[l+1]==-1&&s(e[l+2],t[l]+o+1);return n}function qke(e,t,n){if(t.isLeaf)return null;let r=n+t.nodeSize,i=null;for(let o=0,a;o<e.length;o++)(a=e[o])&&a.from>n&&a.to<r&&((i||(i=[])).push(a),e[o]=null);return i}function Yke(e){let t=[];for(let n=0;n<e.length;n++)e[n]!=null&&t.push(e[n]);return t}function Wk(e,t,n,r){let i=[],o=!1;t.forEach((s,l)=>{let c=qke(e,s,l+n);if(c){o=!0;let u=Wk(c,s,n+l+1,r);u!=ys&&i.push(l,l+s.nodeSize,u)}});let a=Wke(o?Yke(e):e,-n).sort(Sv);for(let s=0;s<a.length;s++)a[s].type.valid(t,a[s])||(r.onRemove&&r.onRemove(a[s].spec),a.splice(s--,1));return a.length||i.length?new Ci(a,i):ys}function Sv(e,t){return e.from-t.from||e.to-t.to}function zQ(e){let t=e;for(let n=0;n<t.length-1;n++){let r=t[n];if(r.from!=r.to)for(let i=n+1;i<t.length;i++){let o=t[i];if(o.from==r.from){o.to!=r.to&&(t==e&&(t=e.slice()),t[i]=o.copy(o.from,r.to),jue(t,i+1,o.copy(r.to,o.to)));continue}else{o.from<r.to&&(t==e&&(t=e.slice()),t[n]=r.copy(r.from,o.from),jue(t,i,r.copy(o.from,r.to)));break}}}return t}function jue(e,t,n){for(;t<e.length&&Sv(n,e[t])>0;)t++;e.splice(t,0,n)}function m6(e){let t=[];return e.someProp("decorations",n=>{let r=n(e.state);r&&r!=ys&&t.push(r)}),e.cursorWrapper&&t.push(Ci.create(e.state.doc,[e.cursorWrapper.deco])),bm.from(t)}const Oen={childList:!0,characterData:!0,characterDataOldValue:!0,attributes:!0,attributeOldValue:!0,subtree:!0},Ren=Il&&sg<=11;class Ien{constructor(){this.anchorNode=null,this.anchorOffset=0,this.focusNode=null,this.focusOffset=0}set(t){this.anchorNode=t.anchorNode,this.anchorOffset=t.anchorOffset,this.focusNode=t.focusNode,this.focusOffset=t.focusOffset}clear(){this.anchorNode=this.focusNode=null}eq(t){return t.anchorNode==this.anchorNode&&t.anchorOffset==this.anchorOffset&&t.focusNode==this.focusNode&&t.focusOffset==this.focusOffset}}class Aen{constructor(t,n){this.view=t,this.handleDOMChange=n,this.queue=[],this.flushingSoon=-1,this.observer=null,this.currentSelection=new Ien,this.onCharData=null,this.suppressingSelectionUpdates=!1,this.lastChangedTextNode=null,this.observer=window.MutationObserver&&new window.MutationObserver(r=>{for(let i=0;i<r.length;i++)this.queue.push(r[i]);Il&&sg<=11&&r.some(i=>i.type=="childList"&&i.removedNodes.length||i.type=="characterData"&&i.oldValue.length>i.target.nodeValue.length)?this.flushSoon():this.flush()}),Ren&&(this.onCharData=r=>{this.queue.push({target:r.target,type:"characterData",oldValue:r.prevValue}),this.flushSoon()}),this.onSelectionChange=this.onSelectionChange.bind(this)}flushSoon(){this.flushingSoon<0&&(this.flushingSoon=window.setTimeout(()=>{this.flushingSoon=-1,this.flush()},20))}forceFlush(){this.flushingSoon>-1&&(window.clearTimeout(this.flushingSoon),this.flushingSoon=-1,this.flush())}start(){this.observer&&(this.observer.takeRecords(),this.observer.observe(this.view.dom,Oen)),this.onCharData&&this.view.dom.addEventListener("DOMCharacterDataModified",this.onCharData),this.connectSelection()}stop(){if(this.observer){let t=this.observer.takeRecords();if(t.length){for(let n=0;n<t.length;n++)this.queue.push(t[n]);window.setTimeout(()=>this.flush(),20)}this.observer.disconnect()}this.onCharData&&this.view.dom.removeEventListener("DOMCharacterDataModified",this.onCharData),this.disconnectSelection()}connectSelection(){this.view.dom.ownerDocument.addEventListener("selectionchange",this.onSelectionChange)}disconnectSelection(){this.view.dom.ownerDocument.removeEventListener("selectionchange",this.onSelectionChange)}suppressSelectionUpdates(){this.suppressingSelectionUpdates=!0,setTimeout(()=>this.suppressingSelectionUpdates=!1,50)}onSelectionChange(){if(Mue(this.view)){if(this.suppressingSelectionUpdates)return Xp(this.view);if(Il&&sg<=11&&!this.view.state.selection.empty){let t=this.view.domSelectionRange();if(t.focusNode&&e0(t.focusNode,t.focusOffset,t.anchorNode,t.anchorOffset))return this.flushSoon()}this.flush()}}setCurSelection(){this.currentSelection.set(this.view.domSelectionRange())}ignoreSelectionChange(t){if(!t.focusNode)return!0;let n=new Set,r;for(let o=t.focusNode;o;o=rx(o))n.add(o);for(let o=t.anchorNode;o;o=rx(o))if(n.has(o)){r=o;break}let i=r&&this.view.docView.nearestDesc(r);if(i&&i.ignoreMutation({type:"selection",target:r.nodeType==3?r.parentNode:r}))return this.setCurSelection(),!0}pendingRecords(){if(this.observer)for(let t of this.observer.takeRecords())this.queue.push(t);return this.queue}flush(){let{view:t}=this;if(!t.docView||this.flushingSoon>-1)return;let n=this.pendingRecords();n.length&&(this.queue=[]);let r=t.domSelectionRange(),i=!this.suppressingSelectionUpdates&&!this.currentSelection.eq(r)&&Mue(t)&&!this.ignoreSelectionChange(r),o=-1,a=-1,s=!1,l=[];if(t.editable)for(let u=0;u<n.length;u++){let d=this.registerMutation(n[u],l);d&&(o=o<0?d.from:Math.min(d.from,o),a=a<0?d.to:Math.max(d.to,a),d.typeOver&&(s=!0))}if(Nd&&l.length){let u=l.filter(d=>d.nodeName=="BR");if(u.length==2){let[d,f]=u;d.parentNode&&d.parentNode.parentNode==f.parentNode?f.remove():d.remove()}else{let{focusNode:d}=this.currentSelection;for(let f of u){let h=f.parentNode;h&&h.nodeName=="LI"&&(!d||ken(t,d)!=h)&&f.remove()}}}let c=null;o<0&&i&&t.input.lastFocus>Date.now()-200&&Math.max(t.input.lastTouch,t.input.lastClick.time)<Date.now()-300&&Q3(r)&&(c=$Q(t))&&c.eq(mr.near(t.state.doc.resolve(0),1))?(t.input.lastFocus=0,Xp(t),this.currentSelection.set(r),t.scrollToSelection()):(o>-1||i)&&(o>-1&&(t.docView.markDirty(o,a),Nen(t)),this.handleDOMChange(o,a,s,l),t.docView&&t.docView.dirty?t.updateState(t.state):this.currentSelection.eq(r)||Xp(t),this.currentSelection.set(r))}registerMutation(t,n){if(n.indexOf(t.target)>-1)return null;let r=this.view.docView.nearestDesc(t.target);if(t.type=="attributes"&&(r==this.view.docView||t.attributeName=="contenteditable"||t.attributeName=="style"&&!t.oldValue&&!t.target.getAttribute("style"))||!r||r.ignoreMutation(t))return null;if(t.type=="childList"){for(let u=0;u<t.addedNodes.length;u++){let d=t.addedNodes[u];n.push(d),d.nodeType==3&&(this.lastChangedTextNode=d)}if(r.contentDOM&&r.contentDOM!=r.dom&&!r.contentDOM.contains(t.target))return{from:r.posBefore,to:r.posAfter};let i=t.previousSibling,o=t.nextSibling;if(Il&&sg<=11&&t.addedNodes.length)for(let u=0;u<t.addedNodes.length;u++){let{previousSibling:d,nextSibling:f}=t.addedNodes[u];(!d||Array.prototype.indexOf.call(t.addedNodes,d)<0)&&(i=d),(!f||Array.prototype.indexOf.call(t.addedNodes,f)<0)&&(o=f)}let a=i&&i.parentNode==t.target?Za(i)+1:0,s=r.localPosFromDOM(t.target,a,-1),l=o&&o.parentNode==t.target?Za(o):t.target.childNodes.length,c=r.localPosFromDOM(t.target,l,1);return{from:s,to:c}}else return t.type=="attributes"?{from:r.posAtStart-r.border,to:r.posAtEnd+r.border}:(this.lastChangedTextNode=t.target,{from:r.posAtStart,to:r.posAtEnd,typeOver:t.target.nodeValue==t.oldValue})}}let Hue=new WeakMap,Uue=!1;function Nen(e){if(!Hue.has(e)&&(Hue.set(e,null),["normal","nowrap","pre-line"].indexOf(getComputedStyle(e.dom).whiteSpace)!==-1)){if(e.requiresGeckoHackNode=Nd,Uue)return;console.warn("ProseMirror expects the CSS white-space property to be set, preferably to 'pre-wrap'. It is recommended to load style/prosemirror.css from the prosemirror-view package."),Uue=!0}}function zue(e,t){let n=t.startContainer,r=t.startOffset,i=t.endContainer,o=t.endOffset,a=e.domAtPos(e.state.selection.anchor);return e0(a.node,a.offset,i,o)&&([n,r,i,o]=[i,o,n,r]),{anchorNode:n,anchorOffset:r,focusNode:i,focusOffset:o}}function Men(e,t){if(t.getComposedRanges){let i=t.getComposedRanges(e.root)[0];if(i)return zue(e,i)}let n;function r(i){i.preventDefault(),i.stopImmediatePropagation(),n=i.getTargetRanges()[0]}return e.dom.addEventListener("beforeinput",r,!0),document.execCommand("indent"),e.dom.removeEventListener("beforeinput",r,!0),n?zue(e,n):null}function ken(e,t){for(let n=t.parentNode;n&&n!=e.dom;n=n.parentNode){let r=e.docView.nearestDesc(n,!0);if(r&&r.node.isBlock)return n}return null}function Pen(e,t,n){let{node:r,fromOffset:i,toOffset:o,from:a,to:s}=e.docView.parseRange(t,n),l=e.domSelectionRange(),c,u=l.anchorNode;if(u&&e.dom.contains(u.nodeType==1?u:u.parentNode)&&(c=[{node:u,offset:l.anchorOffset}],Q3(l)||c.push({node:l.focusNode,offset:l.focusOffset})),Os&&e.input.lastKeyCode===8)for(let v=o;v>i;v--){let y=r.childNodes[v-1],b=y.pmViewDesc;if(y.nodeName=="BR"&&!b){o=v;break}if(!b||b.size)break}let d=e.state.doc,f=e.someProp("domParser")||Ay.fromSchema(e.state.schema),h=d.resolve(a),m=null,g=f.parse(r,{topNode:h.parent,topMatch:h.parent.contentMatchAt(h.index()),topOpen:!0,from:i,to:o,preserveWhitespace:h.parent.type.whitespace=="pre"?"full":!0,findPositions:c,ruleFromNode:Den,context:h});if(c&&c[0].pos!=null){let v=c[0].pos,y=c[1]&&c[1].pos;y==null&&(y=v),m={anchor:v+a,head:y+a}}return{doc:g,sel:m,from:a,to:s}}function Den(e){let t=e.pmViewDesc;if(t)return t.parseRule();if(e.nodeName=="BR"&&e.parentNode){if(Js&&/^(ul|ol)$/i.test(e.parentNode.nodeName)){let n=document.createElement("div");return n.appendChild(document.createElement("li")),{skip:n}}else if(e.parentNode.lastChild==e||Js&&/^(tr|table)$/i.test(e.parentNode.nodeName))return{ignore:!0}}else if(e.nodeName=="IMG"&&e.getAttribute("mark-placeholder"))return{ignore:!0};return null}const Len=/^(a|abbr|acronym|b|bd[io]|big|br|button|cite|code|data(list)?|del|dfn|em|i|ins|kbd|label|map|mark|meter|output|q|ruby|s|samp|small|span|strong|su[bp]|time|u|tt|var)$/i;function $en(e,t,n,r,i){let o=e.input.compositionPendingChanges||(e.composing?e.input.compositionID:0);if(e.input.compositionPendingChanges=0,t<0){let x=e.input.lastSelectionTime>Date.now()-50?e.input.lastSelectionOrigin:null,O=$Q(e,x);if(O&&!e.state.selection.eq(O)){if(Os&&Ju&&e.input.lastKeyCode===13&&Date.now()-100<e.input.lastKeyCodeTime&&e.someProp("handleKeyDown",I=>I(e,x1(13,"Enter"))))return;let N=e.state.tr.setSelection(O);x=="pointer"?N.setMeta("pointer",!0):x=="key"&&N.scrollIntoView(),o&&N.setMeta("composition",o),e.dispatch(N)}return}let a=e.state.doc.resolve(t),s=a.sharedDepth(n);t=a.before(s+1),n=e.state.doc.resolve(n).after(s+1);let l=e.state.selection,c=Pen(e,t,n),u=e.state.doc,d=u.slice(c.from,c.to),f,h;e.input.lastKeyCode===8&&Date.now()-100<e.input.lastKeyCodeTime?(f=e.state.selection.to,h="end"):(f=e.state.selection.from,h="start"),e.input.lastKeyCode=null;let m=jen(d.content,c.doc.content,c.from,f,h);if(m&&e.input.domChangeCount++,(U_&&e.input.lastIOSEnter>Date.now()-225||Ju)&&i.some(x=>x.nodeType==1&&!Len.test(x.nodeName))&&(!m||m.endA>=m.endB)&&e.someProp("handleKeyDown",x=>x(e,x1(13,"Enter")))){e.input.lastIOSEnter=0;return}if(!m)if(r&&l instanceof er&&!l.empty&&l.$head.sameParent(l.$anchor)&&!e.composing&&!(c.sel&&c.sel.anchor!=c.sel.head))m={start:l.from,endA:l.to,endB:l.to};else{if(c.sel){let x=Vue(e,e.state.doc,c.sel);if(x&&!x.eq(e.state.selection)){let O=e.state.tr.setSelection(x);o&&O.setMeta("composition",o),e.dispatch(O)}}return}e.state.selection.from<e.state.selection.to&&m.start==m.endB&&e.state.selection instanceof er&&(m.start>e.state.selection.from&&m.start<=e.state.selection.from+2&&e.state.selection.from>=c.from?m.start=e.state.selection.from:m.endA<e.state.selection.to&&m.endA>=e.state.selection.to-2&&e.state.selection.to<=c.to&&(m.endB+=e.state.selection.to-m.endA,m.endA=e.state.selection.to)),Il&&sg<=11&&m.endB==m.start+1&&m.endA==m.start&&m.start>c.from&&c.doc.textBetween(m.start-c.from-1,m.start-c.from+1)=="  "&&(m.start--,m.endA--,m.endB--);let g=c.doc.resolveNoCache(m.start-c.from),v=c.doc.resolveNoCache(m.endB-c.from),y=u.resolve(m.start),b=g.sameParent(v)&&g.parent.inlineContent&&y.end()>=m.endA,_;if((U_&&e.input.lastIOSEnter>Date.now()-225&&(!b||i.some(x=>x.nodeName=="DIV"||x.nodeName=="P"))||!b&&g.pos<c.doc.content.size&&!g.sameParent(v)&&(_=mr.findFrom(c.doc.resolve(g.pos+1),1,!0))&&_.head==v.pos)&&e.someProp("handleKeyDown",x=>x(e,x1(13,"Enter")))){e.input.lastIOSEnter=0;return}if(e.state.selection.anchor>m.start&&Ben(u,m.start,m.endA,g,v)&&e.someProp("handleKeyDown",x=>x(e,x1(8,"Backspace")))){Ju&&Os&&e.domObserver.suppressSelectionUpdates();return}Os&&Ju&&m.endB==m.start&&(e.input.lastAndroidDelete=Date.now()),Ju&&!b&&g.start()!=v.start()&&v.parentOffset==0&&g.depth==v.depth&&c.sel&&c.sel.anchor==c.sel.head&&c.sel.head==m.endA&&(m.endB-=2,v=c.doc.resolveNoCache(m.endB-c.from),setTimeout(()=>{e.someProp("handleKeyDown",function(x){return x(e,x1(13,"Enter"))})},20));let E=m.start,w=m.endA,S,C,T;if(b){if(g.pos==v.pos)Il&&sg<=11&&g.parentOffset==0&&(e.domObserver.suppressSelectionUpdates(),setTimeout(()=>Xp(e),20)),S=e.state.tr.delete(E,w),C=u.resolve(m.start).marksAcross(u.resolve(m.endA));else if(m.endA==m.endB&&(T=Fen(g.parent.content.cut(g.parentOffset,v.parentOffset),y.parent.content.cut(y.parentOffset,m.endA-y.start()))))S=e.state.tr,T.type=="add"?S.addMark(E,w,T.mark):S.removeMark(E,w,T.mark);else if(g.parent.child(g.index()).isText&&g.index()==v.index()-(v.textOffset?0:1)){let x=g.parent.textBetween(g.parentOffset,v.parentOffset);if(e.someProp("handleTextInput",O=>O(e,E,w,x)))return;S=e.state.tr.insertText(x,E,w)}}if(S||(S=e.state.tr.replace(E,w,c.doc.slice(m.start-c.from,m.endB-c.from))),c.sel){let x=Vue(e,S.doc,c.sel);x&&!(Os&&Ju&&e.composing&&x.empty&&(m.start!=m.endB||e.input.lastAndroidDelete<Date.now()-100)&&(x.head==E||x.head==S.mapping.map(w)-1)||Il&&x.empty&&x.head==E)&&S.setSelection(x)}C&&S.ensureMarks(C),o&&S.setMeta("composition",o),e.dispatch(S.scrollIntoView())}function Vue(e,t,n){return Math.max(n.anchor,n.head)>t.content.size?null:FQ(e,t.resolve(n.anchor),t.resolve(n.head))}function Fen(e,t){let n=e.firstChild.marks,r=t.firstChild.marks,i=n,o=r,a,s,l;for(let u=0;u<r.length;u++)i=r[u].removeFromSet(i);for(let u=0;u<n.length;u++)o=n[u].removeFromSet(o);if(i.length==1&&o.length==0)s=i[0],a="add",l=u=>u.mark(s.addToSet(u.marks));else if(i.length==0&&o.length==1)s=o[0],a="remove",l=u=>u.mark(s.removeFromSet(u.marks));else return null;let c=[];for(let u=0;u<t.childCount;u++)c.push(l(t.child(u)));if(Xt.from(c).eq(e))return{mark:s,type:a}}function Ben(e,t,n,r,i){if(n-t<=i.pos-r.pos||g6(r,!0,!1)<i.pos)return!1;let o=e.resolve(t);if(!r.parent.isTextblock){let s=o.nodeAfter;return s!=null&&n==t+s.nodeSize}if(o.parentOffset<o.parent.content.size||!o.parent.isTextblock)return!1;let a=e.resolve(g6(o,!0,!0));return!a.parent.isTextblock||a.pos>n||g6(a,!0,!1)<n?!1:r.parent.content.cut(r.parentOffset).eq(a.parent.content)}function g6(e,t,n){let r=e.depth,i=t?e.end():e.pos;for(;r>0&&(t||e.indexAfter(r)==e.node(r).childCount);)r--,i++,t=!1;if(n){let o=e.node(r).maybeChild(e.indexAfter(r));for(;o&&!o.isLeaf;)o=o.firstChild,i++}return i}function jen(e,t,n,r,i){let o=e.findDiffStart(t,n);if(o==null)return null;let{a,b:s}=e.findDiffEnd(t,n+e.size,n+t.size);if(i=="end"){let l=Math.max(0,o-Math.min(a,s));r-=a+l-o}if(a<o&&e.size<t.size){let l=r<=o&&r>=a?o-r:0;o-=l,o&&o<t.size&&Gue(t.textBetween(o-1,o+1))&&(o+=l?1:-1),s=o+(s-a),a=o}else if(s<o){let l=r<=o&&r>=s?o-r:0;o-=l,o&&o<e.size&&Gue(e.textBetween(o-1,o+1))&&(o+=l?1:-1),a=o+(a-s),s=o}return{start:o,endA:a,endB:s}}function Gue(e){if(e.length!=2)return!1;let t=e.charCodeAt(0),n=e.charCodeAt(1);return t>=56320&&t<=57343&&n>=55296&&n<=56319}class Hen{constructor(t,n){this._root=null,this.focused=!1,this.trackWrites=null,this.mounted=!1,this.markCursor=null,this.cursorWrapper=null,this.lastSelectedViewDesc=void 0,this.input=new aen,this.prevDirectPlugins=[],this.pluginViews=[],this.requiresGeckoHackNode=!1,this.dragging=null,this._props=n,this.state=n.state,this.directPlugins=n.plugins||[],this.directPlugins.forEach(Que),this.dispatch=this.dispatch.bind(this),this.dom=t&&t.mount||document.createElement("div"),t&&(t.appendChild?t.appendChild(this.dom):typeof t=="function"?t(this.dom):t.mount&&(this.mounted=!0)),this.editable=Yue(this),que(this),this.nodeViews=Kue(this),this.docView=xue(this.state.doc,Wue(this),m6(this),this.dom,this),this.domObserver=new Aen(this,(r,i,o,a)=>$en(this,r,i,o,a)),this.domObserver.start(),sen(this),this.updatePluginViews()}get composing(){return this.input.composing}get props(){if(this._props.state!=this.state){let t=this._props;this._props={};for(let n in t)this._props[n]=t[n];this._props.state=this.state}return this._props}update(t){t.handleDOMEvents!=this._props.handleDOMEvents&&Wz(this);let n=this._props;this._props=t,t.plugins&&(t.plugins.forEach(Que),this.directPlugins=t.plugins),this.updateStateInner(t.state,n)}setProps(t){let n={};for(let r in this._props)n[r]=this._props[r];n.state=this.state;for(let r in t)n[r]=t[r];this.update(n)}updateState(t){this.updateStateInner(t,this._props)}updateStateInner(t,n){var r;let i=this.state,o=!1,a=!1;t.storedMarks&&this.composing&&(Uke(this),a=!0),this.state=t;let s=i.plugins!=t.plugins||this._props.plugins!=n.plugins;if(s||this._props.plugins!=n.plugins||this._props.nodeViews!=n.nodeViews){let h=Kue(this);zen(h,this.nodeViews)&&(this.nodeViews=h,o=!0)}(s||n.handleDOMEvents!=this._props.handleDOMEvents)&&Wz(this),this.editable=Yue(this),que(this);let l=m6(this),c=Wue(this),u=i.plugins!=t.plugins&&!i.doc.eq(t.doc)?"reset":t.scrollToSelection>i.scrollToSelection?"to selection":"preserve",d=o||!this.docView.matchesNode(t.doc,c,l);(d||!t.selection.eq(i.selection))&&(a=!0);let f=u=="preserve"&&a&&this.dom.style.overflowAnchor==null&&SJt(this);if(a){this.domObserver.stop();let h=d&&(Il||Os)&&!this.composing&&!i.selection.empty&&!t.selection.empty&&Uen(i.selection,t.selection);if(d){let m=Os?this.trackWrites=this.domSelectionRange().focusNode:null;this.composing&&(this.input.compositionNode=_en(this)),(o||!this.docView.update(t.doc,c,l,this))&&(this.docView.updateOuterDeco(c),this.docView.destroy(),this.docView=xue(t.doc,c,l,this.dom,this)),m&&!this.trackWrites&&(h=!0)}h||!(this.input.mouseDown&&this.domObserver.currentSelection.eq(this.domSelectionRange())&&GJt(this))?Xp(this,h):(Ike(this,t.selection),this.domObserver.setCurSelection()),this.domObserver.start()}this.updatePluginViews(i),!((r=this.dragging)===null||r===void 0)&&r.node&&!i.doc.eq(t.doc)&&this.updateDraggedNode(this.dragging,i),u=="reset"?this.dom.scrollTop=0:u=="to selection"?this.scrollToSelection():f&&EJt(f)}scrollToSelection(){let t=this.domSelectionRange().focusNode;if(!this.someProp("handleScrollToSelection",n=>n(this)))if(this.state.selection instanceof lr){let n=this.docView.domAfterPos(this.state.selection.from);n.nodeType==1&&_ue(this,n.getBoundingClientRect(),t)}else _ue(this,this.coordsAtPos(this.state.selection.head,1),t)}destroyPluginViews(){let t;for(;t=this.pluginViews.pop();)t.destroy&&t.destroy()}updatePluginViews(t){if(!t||t.plugins!=this.state.plugins||this.directPlugins!=this.prevDirectPlugins){this.prevDirectPlugins=this.directPlugins,this.destroyPluginViews();for(let n=0;n<this.directPlugins.length;n++){let r=this.directPlugins[n];r.spec.view&&this.pluginViews.push(r.spec.view(this))}for(let n=0;n<this.state.plugins.length;n++){let r=this.state.plugins[n];r.spec.view&&this.pluginViews.push(r.spec.view(this))}}else for(let n=0;n<this.pluginViews.length;n++){let r=this.pluginViews[n];r.update&&r.update(this,t)}}updateDraggedNode(t,n){let r=t.node,i=-1;if(this.state.doc.nodeAt(r.from)==r.node)i=r.from;else{let o=r.from+(this.state.doc.content.size-n.doc.content.size);(o>0&&this.state.doc.nodeAt(o))==r.node&&(i=o)}this.dragging=new Vke(t.slice,t.move,i<0?void 0:lr.create(this.state.doc,i))}someProp(t,n){let r=this._props&&this._props[t],i;if(r!=null&&(i=n?n(r):r))return i;for(let a=0;a<this.directPlugins.length;a++){let s=this.directPlugins[a].props[t];if(s!=null&&(i=n?n(s):s))return i}let o=this.state.plugins;if(o)for(let a=0;a<o.length;a++){let s=o[a].props[t];if(s!=null&&(i=n?n(s):s))return i}}hasFocus(){if(Il){let t=this.root.activeElement;if(t==this.dom)return!0;if(!t||!this.dom.contains(t))return!1;for(;t&&this.dom!=t&&this.dom.contains(t);){if(t.contentEditable=="false")return!1;t=t.parentElement}return!0}return this.root.activeElement==this.dom}focus(){this.domObserver.stop(),this.editable&&CJt(this.dom),Xp(this),this.domObserver.start()}get root(){let t=this._root;if(t==null){for(let n=this.dom.parentNode;n;n=n.parentNode)if(n.nodeType==9||n.nodeType==11&&n.host)return n.getSelection||(Object.getPrototypeOf(n).getSelection=()=>n.ownerDocument.getSelection()),this._root=n}return t||document}updateRoot(){this._root=null}posAtCoords(t){return RJt(this,t)}coordsAtPos(t,n=1){return Ske(this,t,n)}domAtPos(t,n=0){return this.docView.domFromPos(t,n)}nodeDOM(t){let n=this.docView.descAt(t);return n?n.nodeDOM:null}posAtDOM(t,n,r=-1){let i=this.docView.posFromDOM(t,n,r);if(i==null)throw new RangeError("DOM position not inside the editor");return i}endOfTextblock(t,n){return kJt(this,n||this.state,t)}pasteHTML(t,n){return ox(this,"",t,!1,n||new ClipboardEvent("paste"))}pasteText(t,n){return ox(this,t,null,!0,n||new ClipboardEvent("paste"))}destroy(){this.docView&&(len(this),this.destroyPluginViews(),this.mounted?(this.docView.update(this.state.doc,[],m6(this),this),this.dom.textContent=""):this.dom.parentNode&&this.dom.parentNode.removeChild(this.dom),this.docView.destroy(),this.docView=null,uJt())}get isDestroyed(){return this.docView==null}dispatchEvent(t){return uen(this,t)}dispatch(t){let n=this._props.dispatchTransaction;n?n.call(this,t):this.updateState(this.state.apply(t))}domSelectionRange(){let t=this.domSelection();return t?Js&&this.root.nodeType===11&&mJt(this.dom.ownerDocument)==this.dom&&Men(this,t)||t:{focusNode:null,focusOffset:0,anchorNode:null,anchorOffset:0}}domSelection(){return this.root.getSelection()}}function Wue(e){let t=Object.create(null);return t.class="ProseMirror",t.contenteditable=String(e.editable),e.someProp("attributes",n=>{if(typeof n=="function"&&(n=n(e.state)),n)for(let r in n)r=="class"?t.class+=" "+n[r]:r=="style"?t.style=(t.style?t.style+";":"")+n[r]:!t[r]&&r!="contenteditable"&&r!="nodeName"&&(t[r]=String(n[r]))}),t.translate||(t.translate="no"),[ta.node(0,e.state.doc.content.size,t)]}function que(e){if(e.markCursor){let t=document.createElement("img");t.className="ProseMirror-separator",t.setAttribute("mark-placeholder","true"),t.setAttribute("alt",""),e.cursorWrapper={dom:t,deco:ta.widget(e.state.selection.from,t,{raw:!0,marks:e.markCursor})}}else e.cursorWrapper=null}function Yue(e){return!e.someProp("editable",t=>t(e.state)===!1)}function Uen(e,t){let n=Math.min(e.$anchor.sharedDepth(e.head),t.$anchor.sharedDepth(t.head));return e.$anchor.start(n)!=t.$anchor.start(n)}function Kue(e){let t=Object.create(null);function n(r){for(let i in r)Object.prototype.hasOwnProperty.call(t,i)||(t[i]=r[i])}return e.someProp("nodeViews",n),e.someProp("markViews",n),t}function zen(e,t){let n=0,r=0;for(let i in e){if(e[i]!=t[i])return!0;n++}for(let i in t)r++;return n!=r}function Que(e){if(e.spec.state||e.spec.filterTransaction||e.spec.appendTransaction)throw new RangeError("Plugins passed directly to the view must not have a state component")}var yg={8:"Backspace",9:"Tab",10:"Enter",12:"NumLock",13:"Enter",16:"Shift",17:"Control",18:"Alt",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",44:"PrintScreen",45:"Insert",46:"Delete",59:";",61:"=",91:"Meta",92:"Meta",106:"*",107:"+",108:",",109:"-",110:".",111:"/",144:"NumLock",145:"ScrollLock",160:"Shift",161:"Shift",162:"Control",163:"Control",164:"Alt",165:"Alt",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},qk={48:")",49:"!",50:"@",51:"#",52:"$",53:"%",54:"^",55:"&",56:"*",57:"(",59:":",61:"+",173:"_",186:":",187:"+",188:"<",189:"_",190:">",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},Ven=typeof navigator<"u"&&/Mac/.test(navigator.platform),Gen=typeof navigator<"u"&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent);for(var Ja=0;Ja<10;Ja++)yg[48+Ja]=yg[96+Ja]=String(Ja);for(var Ja=1;Ja<=24;Ja++)yg[Ja+111]="F"+Ja;for(var Ja=65;Ja<=90;Ja++)yg[Ja]=String.fromCharCode(Ja+32),qk[Ja]=String.fromCharCode(Ja);for(var v6 in yg)qk.hasOwnProperty(v6)||(qk[v6]=yg[v6]);function Wen(e){var t=Ven&&e.metaKey&&e.shiftKey&&!e.ctrlKey&&!e.altKey||Gen&&e.shiftKey&&e.key&&e.key.length==1||e.key=="Unidentified",n=!t&&e.key||(e.shiftKey?qk:yg)[e.keyCode]||e.key||"Unidentified";return n=="Esc"&&(n="Escape"),n=="Del"&&(n="Delete"),n=="Left"&&(n="ArrowLeft"),n=="Up"&&(n="ArrowUp"),n=="Right"&&(n="ArrowRight"),n=="Down"&&(n="ArrowDown"),n}const qen=typeof navigator<"u"?/Mac|iP(hone|[oa]d)/.test(navigator.platform):!1;function Yen(e){let t=e.split(/-(?!$)/),n=t[t.length-1];n=="Space"&&(n=" ");let r,i,o,a;for(let s=0;s<t.length-1;s++){let l=t[s];if(/^(cmd|meta|m)$/i.test(l))a=!0;else if(/^a(lt)?$/i.test(l))r=!0;else if(/^(c|ctrl|control)$/i.test(l))i=!0;else if(/^s(hift)?$/i.test(l))o=!0;else if(/^mod$/i.test(l))qen?a=!0:i=!0;else throw new Error("Unrecognized modifier name: "+l)}return r&&(n="Alt-"+n),i&&(n="Ctrl-"+n),a&&(n="Meta-"+n),o&&(n="Shift-"+n),n}function Ken(e){let t=Object.create(null);for(let n in e)t[Yen(n)]=e[n];return t}function b6(e,t,n=!0){return t.altKey&&(e="Alt-"+e),t.ctrlKey&&(e="Ctrl-"+e),t.metaKey&&(e="Meta-"+e),n&&t.shiftKey&&(e="Shift-"+e),e}function Qen(e){return new Ei({props:{handleKeyDown:VQ(e)}})}function VQ(e){let t=Ken(e);return function(n,r){let i=Wen(r),o,a=t[b6(i,r)];if(a&&a(n.state,n.dispatch,n))return!0;if(i.length==1&&i!=" "){if(r.shiftKey){let s=t[b6(i,r,!1)];if(s&&s(n.state,n.dispatch,n))return!0}if((r.shiftKey||r.altKey||r.metaKey||i.charCodeAt(0)>127)&&(o=yg[r.keyCode])&&o!=i){let s=t[b6(o,r)];if(s&&s(n.state,n.dispatch,n))return!0}}return!1}}const Xen=(e,t)=>e.selection.empty?!1:(t&&t(e.tr.deleteSelection().scrollIntoView()),!0);function Kke(e,t){let{$cursor:n}=e.selection;return!n||n.parentOffset>0?null:n}const Zen=(e,t,n)=>{let r=Kke(e);if(!r)return!1;let i=GQ(r);if(!i){let a=r.blockRange(),s=a&&oE(a);return s==null?!1:(t&&t(e.tr.lift(a,s).scrollIntoView()),!0)}let o=i.nodeBefore;if(Jke(e,i,t,-1))return!0;if(r.parent.content.size==0&&(z_(o,"end")||lr.isSelectable(o)))for(let a=r.depth;;a--){let s=Y3(e.doc,r.before(a),r.after(a),Rn.empty);if(s&&s.slice.size<s.to-s.from){if(t){let l=e.tr.step(s);l.setSelection(z_(o,"end")?mr.findFrom(l.doc.resolve(l.mapping.map(i.pos,-1)),-1):lr.create(l.doc,i.pos-o.nodeSize)),t(l.scrollIntoView())}return!0}if(a==1||r.node(a-1).childCount>1)break}return o.isAtom&&i.depth==r.depth-1?(t&&t(e.tr.delete(i.pos-o.nodeSize,i.pos).scrollIntoView()),!0):!1},Jen=(e,t,n)=>{let r=Kke(e);if(!r)return!1;let i=GQ(r);return i?Qke(e,i,t):!1},etn=(e,t,n)=>{let r=Xke(e);if(!r)return!1;let i=WQ(r);return i?Qke(e,i,t):!1};function Qke(e,t,n){let r=t.nodeBefore,i=r,o=t.pos-1;for(;!i.isTextblock;o--){if(i.type.spec.isolating)return!1;let u=i.lastChild;if(!u)return!1;i=u}let a=t.nodeAfter,s=a,l=t.pos+1;for(;!s.isTextblock;l++){if(s.type.spec.isolating)return!1;let u=s.firstChild;if(!u)return!1;s=u}let c=Y3(e.doc,o,l,Rn.empty);if(!c||c.from!=o||c instanceof Sa&&c.slice.size>=l-o)return!1;if(n){let u=e.tr.step(c);u.setSelection(er.create(u.doc,o)),n(u.scrollIntoView())}return!0}function z_(e,t,n=!1){for(let r=e;r;r=t=="start"?r.firstChild:r.lastChild){if(r.isTextblock)return!0;if(n&&r.childCount!=1)return!1}return!1}const ttn=(e,t,n)=>{let{$head:r,empty:i}=e.selection,o=r;if(!i)return!1;if(r.parent.isTextblock){if(r.parentOffset>0)return!1;o=GQ(r)}let a=o&&o.nodeBefore;return!a||!lr.isSelectable(a)?!1:(t&&t(e.tr.setSelection(lr.create(e.doc,o.pos-a.nodeSize)).scrollIntoView()),!0)};function GQ(e){if(!e.parent.type.spec.isolating)for(let t=e.depth-1;t>=0;t--){if(e.index(t)>0)return e.doc.resolve(e.before(t+1));if(e.node(t).type.spec.isolating)break}return null}function Xke(e,t){let{$cursor:n}=e.selection;return!n||n.parentOffset<n.parent.content.size?null:n}const ntn=(e,t,n)=>{let r=Xke(e);if(!r)return!1;let i=WQ(r);if(!i)return!1;let o=i.nodeAfter;if(Jke(e,i,t,1))return!0;if(r.parent.content.size==0&&(z_(o,"start")||lr.isSelectable(o))){let a=Y3(e.doc,r.before(),r.after(),Rn.empty);if(a&&a.slice.size<a.to-a.from){if(t){let s=e.tr.step(a);s.setSelection(z_(o,"start")?mr.findFrom(s.doc.resolve(s.mapping.map(i.pos)),1):lr.create(s.doc,s.mapping.map(i.pos))),t(s.scrollIntoView())}return!0}}return o.isAtom&&i.depth==r.depth-1?(t&&t(e.tr.delete(i.pos,i.pos+o.nodeSize).scrollIntoView()),!0):!1},rtn=(e,t,n)=>{let{$head:r,empty:i}=e.selection,o=r;if(!i)return!1;if(r.parent.isTextblock){if(r.parentOffset<r.parent.content.size)return!1;o=WQ(r)}let a=o&&o.nodeAfter;return!a||!lr.isSelectable(a)?!1:(t&&t(e.tr.setSelection(lr.create(e.doc,o.pos)).scrollIntoView()),!0)};function WQ(e){if(!e.parent.type.spec.isolating)for(let t=e.depth-1;t>=0;t--){let n=e.node(t);if(e.index(t)+1<n.childCount)return e.doc.resolve(e.after(t+1));if(n.type.spec.isolating)break}return null}const itn=(e,t)=>{let n=e.selection,r=n instanceof lr,i;if(r){if(n.node.isTextblock||!$g(e.doc,n.from))return!1;i=n.from}else if(i=q3(e.doc,n.from,-1),i==null)return!1;if(t){let o=e.tr.join(i);r&&o.setSelection(lr.create(o.doc,i-e.doc.resolve(i).nodeBefore.nodeSize)),t(o.scrollIntoView())}return!0},otn=(e,t)=>{let n=e.selection,r;if(n instanceof lr){if(n.node.isTextblock||!$g(e.doc,n.to))return!1;r=n.to}else if(r=q3(e.doc,n.to,1),r==null)return!1;return t&&t(e.tr.join(r).scrollIntoView()),!0},atn=(e,t)=>{let{$from:n,$to:r}=e.selection,i=n.blockRange(r),o=i&&oE(i);return o==null?!1:(t&&t(e.tr.lift(i,o).scrollIntoView()),!0)},stn=(e,t)=>{let{$head:n,$anchor:r}=e.selection;return!n.parent.type.spec.code||!n.sameParent(r)?!1:(t&&t(e.tr.insertText(`
`).scrollIntoView()),!0)};function Zke(e){for(let t=0;t<e.edgeCount;t++){let{type:n}=e.edge(t);if(n.isTextblock&&!n.hasRequiredAttrs())return n}return null}const ltn=(e,t)=>{let{$head:n,$anchor:r}=e.selection;if(!n.parent.type.spec.code||!n.sameParent(r))return!1;let i=n.node(-1),o=n.indexAfter(-1),a=Zke(i.contentMatchAt(o));if(!a||!i.canReplaceWith(o,o,a))return!1;if(t){let s=n.after(),l=e.tr.replaceWith(s,s,a.createAndFill());l.setSelection(mr.near(l.doc.resolve(s),1)),t(l.scrollIntoView())}return!0},ctn=(e,t)=>{let n=e.selection,{$from:r,$to:i}=n;if(n instanceof lu||r.parent.inlineContent||i.parent.inlineContent)return!1;let o=Zke(i.parent.contentMatchAt(i.indexAfter()));if(!o||!o.isTextblock)return!1;if(t){let a=(!r.parentOffset&&i.index()<i.parent.childCount?r:i).pos,s=e.tr.insert(a,o.createAndFill());s.setSelection(er.create(s.doc,a+1)),t(s.scrollIntoView())}return!0},utn=(e,t)=>{let{$cursor:n}=e.selection;if(!n||n.parent.content.size)return!1;if(n.depth>1&&n.after()!=n.end(-1)){let o=n.before();if(My(e.doc,o))return t&&t(e.tr.split(o).scrollIntoView()),!0}let r=n.blockRange(),i=r&&oE(r);return i==null?!1:(t&&t(e.tr.lift(r,i).scrollIntoView()),!0)},dtn=(e,t)=>{let{$from:n,to:r}=e.selection,i,o=n.sharedDepth(r);return o==0?!1:(i=n.before(o),t&&t(e.tr.setSelection(lr.create(e.doc,i))),!0)};function ftn(e,t,n){let r=t.nodeBefore,i=t.nodeAfter,o=t.index();return!r||!i||!r.type.compatibleContent(i.type)?!1:!r.content.size&&t.parent.canReplace(o-1,o)?(n&&n(e.tr.delete(t.pos-r.nodeSize,t.pos).scrollIntoView()),!0):!t.parent.canReplace(o,o+1)||!(i.isTextblock||$g(e.doc,t.pos))?!1:(n&&n(e.tr.join(t.pos).scrollIntoView()),!0)}function Jke(e,t,n,r){let i=t.nodeBefore,o=t.nodeAfter,a,s,l=i.type.spec.isolating||o.type.spec.isolating;if(!l&&ftn(e,t,n))return!0;let c=!l&&t.parent.canReplace(t.index(),t.index()+1);if(c&&(a=(s=i.contentMatchAt(i.childCount)).findWrapping(o.type))&&s.matchType(a[0]||o.type).validEnd){if(n){let h=t.pos+o.nodeSize,m=Xt.empty;for(let y=a.length-1;y>=0;y--)m=Xt.from(a[y].create(null,m));m=Xt.from(i.copy(m));let g=e.tr.step(new Ua(t.pos-1,h,t.pos,h,new Rn(m,1,0),a.length,!0)),v=g.doc.resolve(h+2*a.length);v.nodeAfter&&v.nodeAfter.type==i.type&&$g(g.doc,v.pos)&&g.join(v.pos),n(g.scrollIntoView())}return!0}let u=o.type.spec.isolating||r>0&&l?null:mr.findFrom(t,1),d=u&&u.$from.blockRange(u.$to),f=d&&oE(d);if(f!=null&&f>=t.depth)return n&&n(e.tr.lift(d,f).scrollIntoView()),!0;if(c&&z_(o,"start",!0)&&z_(i,"end")){let h=i,m=[];for(;m.push(h),!h.isTextblock;)h=h.lastChild;let g=o,v=1;for(;!g.isTextblock;g=g.firstChild)v++;if(h.canReplace(h.childCount,h.childCount,g.content)){if(n){let y=Xt.empty;for(let _=m.length-1;_>=0;_--)y=Xt.from(m[_].copy(y));let b=e.tr.step(new Ua(t.pos-m.length,t.pos+o.nodeSize,t.pos+v,t.pos+o.nodeSize-v,new Rn(y,m.length,0),0,!0));n(b.scrollIntoView())}return!0}}return!1}function e4e(e){return function(t,n){let r=t.selection,i=e<0?r.$from:r.$to,o=i.depth;for(;i.node(o).isInline;){if(!o)return!1;o--}return i.node(o).isTextblock?(n&&n(t.tr.setSelection(er.create(t.doc,e<0?i.start(o):i.end(o)))),!0):!1}}const ptn=e4e(-1),htn=e4e(1);function mtn(e,t=null){return function(n,r){let{$from:i,$to:o}=n.selection,a=i.blockRange(o),s=a&&kQ(a,e,t);return s?(r&&r(n.tr.wrap(a,s).scrollIntoView()),!0):!1}}function Xue(e,t=null){return function(n,r){let i=!1;for(let o=0;o<n.selection.ranges.length&&!i;o++){let{$from:{pos:a},$to:{pos:s}}=n.selection.ranges[o];n.doc.nodesBetween(a,s,(l,c)=>{if(i)return!1;if(!(!l.isTextblock||l.hasMarkup(e,t)))if(l.type==e)i=!0;else{let u=n.doc.resolve(c),d=u.index();i=u.parent.canReplaceWith(d,d+1,e)}})}if(!i)return!1;if(r){let o=n.tr;for(let a=0;a<n.selection.ranges.length;a++){let{$from:{pos:s},$to:{pos:l}}=n.selection.ranges[a];o.setBlockType(s,l,e,t)}r(o.scrollIntoView())}return!0}}typeof navigator<"u"?/Mac|iP(hone|[oa]d)/.test(navigator.platform):typeof os<"u"&&os.platform&&os.platform()=="darwin";function gtn(e,t=null){return function(n,r){let{$from:i,$to:o}=n.selection,a=i.blockRange(o),s=!1,l=a;if(!a)return!1;if(a.depth>=2&&i.node(a.depth-1).type.compatibleContent(e)&&a.startIndex==0){if(i.index(a.depth-1)==0)return!1;let u=n.doc.resolve(a.start-2);l=new Fk(u,u,a.depth),a.endIndex<a.parent.childCount&&(a=new Fk(i,n.doc.resolve(o.end(a.depth)),a.depth)),s=!0}let c=kQ(l,e,t,a);return c?(r&&r(vtn(n.tr,a,c,s,e).scrollIntoView()),!0):!1}}function vtn(e,t,n,r,i){let o=Xt.empty;for(let u=n.length-1;u>=0;u--)o=Xt.from(n[u].type.create(n[u].attrs,o));e.step(new Ua(t.start-(r?2:0),t.end,t.start,t.end,new Rn(o,0,0),n.length,!0));let a=0;for(let u=0;u<n.length;u++)n[u].type==i&&(a=u+1);let s=n.length-a,l=t.start+n.length-(r?2:0),c=t.parent;for(let u=t.startIndex,d=t.endIndex,f=!0;u<d;u++,f=!1)!f&&My(e.doc,l,s)&&(e.split(l,s),l+=2*s),l+=c.child(u).nodeSize;return e}function btn(e){return function(t,n){let{$from:r,$to:i}=t.selection,o=r.blockRange(i,a=>a.childCount>0&&a.firstChild.type==e);return o?n?r.node(o.depth-1).type==e?ytn(t,n,e,o):_tn(t,n,o):!0:!1}}function ytn(e,t,n,r){let i=e.tr,o=r.end,a=r.$to.end(r.depth);o<a&&(i.step(new Ua(o-1,a,o,a,new Rn(Xt.from(n.create(null,r.parent.copy())),1,0),1,!0)),r=new Fk(i.doc.resolve(r.$from.pos),i.doc.resolve(a),r.depth));const s=oE(r);if(s==null)return!1;i.lift(r,s);let l=i.mapping.map(o,-1)-1;return $g(i.doc,l)&&i.join(l),t(i.scrollIntoView()),!0}function _tn(e,t,n){let r=e.tr,i=n.parent;for(let h=n.end,m=n.endIndex-1,g=n.startIndex;m>g;m--)h-=i.child(m).nodeSize,r.delete(h-1,h+1);let o=r.doc.resolve(n.start),a=o.nodeAfter;if(r.mapping.map(n.end)!=n.start+o.nodeAfter.nodeSize)return!1;let s=n.startIndex==0,l=n.endIndex==i.childCount,c=o.node(-1),u=o.index(-1);if(!c.canReplace(u+(s?0:1),u+1,a.content.append(l?Xt.empty:Xt.from(i))))return!1;let d=o.pos,f=d+a.nodeSize;return r.step(new Ua(d-(s?1:0),f+(l?1:0),d+1,f-1,new Rn((s?Xt.empty:Xt.from(i.copy(Xt.empty))).append(l?Xt.empty:Xt.from(i.copy(Xt.empty))),s?0:1,l?0:1),s?0:1)),t(r.scrollIntoView()),!0}function Stn(e){return function(t,n){let{$from:r,$to:i}=t.selection,o=r.blockRange(i,c=>c.childCount>0&&c.firstChild.type==e);if(!o)return!1;let a=o.startIndex;if(a==0)return!1;let s=o.parent,l=s.child(a-1);if(l.type!=e)return!1;if(n){let c=l.lastChild&&l.lastChild.type==s.type,u=Xt.from(c?e.create():null),d=new Rn(Xt.from(e.create(null,Xt.from(s.type.create(null,u)))),c?3:1,0),f=o.start,h=o.end;n(t.tr.step(new Ua(f-(c?3:1),h,f,h,d,1,!0)).scrollIntoView())}return!0}}function J3(e){const{state:t,transaction:n}=e;let{selection:r}=n,{doc:i}=n,{storedMarks:o}=n;return{...t,apply:t.apply.bind(t),applyTransaction:t.applyTransaction.bind(t),plugins:t.plugins,schema:t.schema,reconfigure:t.reconfigure.bind(t),toJSON:t.toJSON.bind(t),get storedMarks(){return o},get selection(){return r},get doc(){return i},get tr(){return r=n.selection,i=n.doc,o=n.storedMarks,n}}}class e9{constructor(t){this.editor=t.editor,this.rawCommands=this.editor.extensionManager.commands,this.customState=t.state}get hasCustomState(){return!!this.customState}get state(){return this.customState||this.editor.state}get commands(){const{rawCommands:t,editor:n,state:r}=this,{view:i}=n,{tr:o}=r,a=this.buildProps(o);return Object.fromEntries(Object.entries(t).map(([s,l])=>[s,(...c)=>{const u=l(...c)(a);return!o.getMeta("preventDispatch")&&!this.hasCustomState&&i.dispatch(o),u}]))}get chain(){return()=>this.createChain()}get can(){return()=>this.createCan()}createChain(t,n=!0){const{rawCommands:r,editor:i,state:o}=this,{view:a}=i,s=[],l=!!t,c=t||o.tr,u=()=>(!l&&n&&!c.getMeta("preventDispatch")&&!this.hasCustomState&&a.dispatch(c),s.every(f=>f===!0)),d={...Object.fromEntries(Object.entries(r).map(([f,h])=>[f,(...m)=>{const g=this.buildProps(c,n),v=h(...m)(g);return s.push(v),d}])),run:u};return d}createCan(t){const{rawCommands:n,state:r}=this,i=!1,o=t||r.tr,a=this.buildProps(o,i);return{...Object.fromEntries(Object.entries(n).map(([s,l])=>[s,(...c)=>l(...c)({...a,dispatch:void 0})])),chain:()=>this.createChain(o,i)}}buildProps(t,n=!0){const{rawCommands:r,editor:i,state:o}=this,{view:a}=i,s={tr:t,editor:i,view:a,state:J3({state:o,transaction:t}),dispatch:n?()=>{}:void 0,chain:()=>this.createChain(t,n),can:()=>this.createCan(t),get commands(){return Object.fromEntries(Object.entries(r).map(([l,c])=>[l,(...u)=>c(...u)(s)]))}};return s}}let Etn=class{constructor(){this.callbacks={}}on(e,t){return this.callbacks[e]||(this.callbacks[e]=[]),this.callbacks[e].push(t),this}emit(e,...t){const n=this.callbacks[e];return n&&n.forEach(r=>r.apply(this,t)),this}off(e,t){const n=this.callbacks[e];return n&&(t?this.callbacks[e]=n.filter(r=>r!==t):delete this.callbacks[e]),this}once(e,t){const n=(...r)=>{this.off(e,n),t.apply(this,r)};return this.on(e,n)}removeAllListeners(){this.callbacks={}}};function Wn(e,t,n){return e.config[t]===void 0&&e.parent?Wn(e.parent,t,n):typeof e.config[t]=="function"?e.config[t].bind({...n,parent:e.parent?Wn(e.parent,t,n):null}):e.config[t]}function t9(e){const t=e.filter(i=>i.type==="extension"),n=e.filter(i=>i.type==="node"),r=e.filter(i=>i.type==="mark");return{baseExtensions:t,nodeExtensions:n,markExtensions:r}}function t4e(e){const t=[],{nodeExtensions:n,markExtensions:r}=t9(e),i=[...n,...r],o={default:null,rendered:!0,renderHTML:null,parseHTML:null,keepOnSplit:!0,isRequired:!1};return e.forEach(a=>{const s={name:a.name,options:a.options,storage:a.storage,extensions:i},l=Wn(a,"addGlobalAttributes",s);l&&l().forEach(c=>{c.types.forEach(u=>{Object.entries(c.attributes).forEach(([d,f])=>{t.push({type:u,name:d,attribute:{...o,...f}})})})})}),i.forEach(a=>{const s={name:a.name,options:a.options,storage:a.storage},l=Wn(a,"addAttributes",s);if(!l)return;const c=l();Object.entries(c).forEach(([u,d])=>{const f={...o,...d};typeof(f==null?void 0:f.default)=="function"&&(f.default=f.default()),f!=null&&f.isRequired&&(f==null?void 0:f.default)===void 0&&delete f.default,t.push({type:a.name,name:u,attribute:f})})}),t}function Ga(e,t){if(typeof e=="string"){if(!t.nodes[e])throw Error(`There is no node type named '${e}'. Maybe you forgot to add the extension?`);return t.nodes[e]}return e}function zr(...e){return e.filter(t=>!!t).reduce((t,n)=>{const r={...t};return Object.entries(n).forEach(([i,o])=>{if(!r[i]){r[i]=o;return}if(i==="class"){const a=o?o.split(" "):[],s=r[i]?r[i].split(" "):[],l=a.filter(c=>!s.includes(c));r[i]=[...s,...l].join(" ")}else if(i==="style"){const a=o?o.split(";").map(c=>c.trim()).filter(Boolean):[],s=r[i]?r[i].split(";").map(c=>c.trim()).filter(Boolean):[],l=new Map;s.forEach(c=>{const[u,d]=c.split(":").map(f=>f.trim());l.set(u,d)}),a.forEach(c=>{const[u,d]=c.split(":").map(f=>f.trim());l.set(u,d)}),r[i]=Array.from(l.entries()).map(([c,u])=>`${c}: ${u}`).join("; ")}else r[i]=o}),r},{})}function qz(e,t){return t.filter(n=>n.type===e.type.name).filter(n=>n.attribute.rendered).map(n=>n.attribute.renderHTML?n.attribute.renderHTML(e.attrs)||{}:{[n.name]:e.attrs[n.name]}).reduce((n,r)=>zr(n,r),{})}function n4e(e){return typeof e=="function"}function Ar(e,t=void 0,...n){return n4e(e)?t?e.bind(t)(...n):e(...n):e}function Ctn(e={}){return Object.keys(e).length===0&&e.constructor===Object}function wtn(e){return typeof e!="string"?e:e.match(/^[+-]?(?:\d*\.)?\d+$/)?Number(e):e==="true"?!0:e==="false"?!1:e}function Zue(e,t){return"style"in e?e:{...e,getAttrs:n=>{const r=e.getAttrs?e.getAttrs(n):e.attrs;if(r===!1)return!1;const i=t.reduce((o,a)=>{const s=a.attribute.parseHTML?a.attribute.parseHTML(n):wtn(n.getAttribute(a.name));return s==null?o:{...o,[a.name]:s}},{});return{...r,...i}}}}function Jue(e){return Object.fromEntries(Object.entries(e).filter(([t,n])=>t==="attrs"&&Ctn(n)?!1:n!=null))}function Ttn(e,t){var n;const r=t4e(e),{nodeExtensions:i,markExtensions:o}=t9(e),a=(n=i.find(c=>Wn(c,"topNode")))===null||n===void 0?void 0:n.name,s=Object.fromEntries(i.map(c=>{const u=r.filter(y=>y.type===c.name),d={name:c.name,options:c.options,storage:c.storage,editor:t},f=e.reduce((y,b)=>{const _=Wn(b,"extendNodeSchema",d);return{...y,..._?_(c):{}}},{}),h=Jue({...f,content:Ar(Wn(c,"content",d)),marks:Ar(Wn(c,"marks",d)),group:Ar(Wn(c,"group",d)),inline:Ar(Wn(c,"inline",d)),atom:Ar(Wn(c,"atom",d)),selectable:Ar(Wn(c,"selectable",d)),draggable:Ar(Wn(c,"draggable",d)),code:Ar(Wn(c,"code",d)),whitespace:Ar(Wn(c,"whitespace",d)),linebreakReplacement:Ar(Wn(c,"linebreakReplacement",d)),defining:Ar(Wn(c,"defining",d)),isolating:Ar(Wn(c,"isolating",d)),attrs:Object.fromEntries(u.map(y=>{var b;return[y.name,{default:(b=y==null?void 0:y.attribute)===null||b===void 0?void 0:b.default}]}))}),m=Ar(Wn(c,"parseHTML",d));m&&(h.parseDOM=m.map(y=>Zue(y,u)));const g=Wn(c,"renderHTML",d);g&&(h.toDOM=y=>g({node:y,HTMLAttributes:qz(y,u)}));const v=Wn(c,"renderText",d);return v&&(h.toText=v),[c.name,h]})),l=Object.fromEntries(o.map(c=>{const u=r.filter(v=>v.type===c.name),d={name:c.name,options:c.options,storage:c.storage,editor:t},f=e.reduce((v,y)=>{const b=Wn(y,"extendMarkSchema",d);return{...v,...b?b(c):{}}},{}),h=Jue({...f,inclusive:Ar(Wn(c,"inclusive",d)),excludes:Ar(Wn(c,"excludes",d)),group:Ar(Wn(c,"group",d)),spanning:Ar(Wn(c,"spanning",d)),code:Ar(Wn(c,"code",d)),attrs:Object.fromEntries(u.map(v=>{var y;return[v.name,{default:(y=v==null?void 0:v.attribute)===null||y===void 0?void 0:y.default}]}))}),m=Ar(Wn(c,"parseHTML",d));m&&(h.parseDOM=m.map(v=>Zue(v,u)));const g=Wn(c,"renderHTML",d);return g&&(h.toDOM=v=>g({mark:v,HTMLAttributes:qz(v,u)})),[c.name,h]}));return new QMe({topNode:a,nodes:s,marks:l})}function y6(e,t){return t.nodes[e]||t.marks[e]||null}function ede(e,t){return Array.isArray(t)?t.some(n=>(typeof n=="string"?n:n.name)===e.name):t}function qQ(e,t){const n=L0.fromSchema(t).serializeFragment(e),r=document.implementation.createHTMLDocument().createElement("div");return r.appendChild(n),r.innerHTML}const xtn=(e,t=500)=>{let n="";const r=e.parentOffset;return e.parent.nodesBetween(Math.max(0,r-t),r,(i,o,a,s)=>{var l,c;const u=((c=(l=i.type.spec).toText)===null||c===void 0?void 0:c.call(l,{node:i,pos:o,parent:a,index:s}))||i.textContent||"%leaf%";n+=i.isAtom&&!i.isText?u:u.slice(0,Math.max(0,r-o))}),n};function YQ(e){return Object.prototype.toString.call(e)==="[object RegExp]"}class uO{constructor(t){this.find=t.find,this.handler=t.handler}}const Otn=(e,t)=>{if(YQ(t))return t.exec(e);const n=t(e);if(!n)return null;const r=[n.text];return r.index=n.index,r.input=e,r.data=n.data,n.replaceWith&&(n.text.includes(n.replaceWith)||console.warn('[tiptap warn]: "inputRuleMatch.replaceWith" must be part of "inputRuleMatch.text".'),r.push(n.replaceWith)),r};function rI(e){var t;const{editor:n,from:r,to:i,text:o,rules:a,plugin:s}=e,{view:l}=n;if(l.composing)return!1;const c=l.state.doc.resolve(r);if(c.parent.type.spec.code||!((t=c.nodeBefore||c.nodeAfter)===null||t===void 0)&&t.marks.find(f=>f.type.spec.code))return!1;let u=!1;const d=xtn(c)+o;return a.forEach(f=>{if(u)return;const h=Otn(d,f.find);if(!h)return;const m=l.state.tr,g=J3({state:l.state,transaction:m}),v={from:r-(h[0].length-o.length),to:i},{commands:y,chain:b,can:_}=new e9({editor:n,state:g});f.handler({state:g,range:v,match:h,commands:y,chain:b,can:_})===null||!m.steps.length||(m.setMeta(s,{transform:m,from:r,to:i,text:o}),l.dispatch(m),u=!0)}),u}function Rtn(e){const{editor:t,rules:n}=e,r=new Ei({state:{init(){return null},apply(i,o,a){const s=i.getMeta(r);if(s)return s;const l=i.getMeta("applyInputRules");return l&&setTimeout(()=>{let{text:c}=l;typeof c=="string"?c=c:c=qQ(Xt.from(c),a.schema);const{from:u}=l,d=u+c.length;rI({editor:t,from:u,to:d,text:c,rules:n,plugin:r})}),i.selectionSet||i.docChanged?null:o}},props:{handleTextInput(i,o,a,s){return rI({editor:t,from:o,to:a,text:s,rules:n,plugin:r})},handleDOMEvents:{compositionend:i=>(setTimeout(()=>{const{$cursor:o}=i.state.selection;o&&rI({editor:t,from:o.pos,to:o.pos,text:"",rules:n,plugin:r})}),!1)},handleKeyDown(i,o){if(o.key!=="Enter")return!1;const{$cursor:a}=i.state.selection;return a?rI({editor:t,from:a.pos,to:a.pos,text:`
`,rules:n,plugin:r}):!1}},isInputRules:!0});return r}function Itn(e){return Object.prototype.toString.call(e).slice(8,-1)}function iI(e){return Itn(e)!=="Object"?!1:e.constructor===Object&&Object.getPrototypeOf(e)===Object.prototype}function n9(e,t){const n={...e};return iI(e)&&iI(t)&&Object.keys(t).forEach(r=>{iI(t[r])&&iI(e[r])?n[r]=n9(e[r],t[r]):n[r]=t[r]}),n}class Pl{constructor(t={}){this.type="mark",this.name="mark",this.parent=null,this.child=null,this.config={name:this.name,defaultOptions:{}},this.config={...this.config,...t},this.name=this.config.name,t.defaultOptions&&Object.keys(t.defaultOptions).length>0&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${this.name}".`),this.options=this.config.defaultOptions,this.config.addOptions&&(this.options=Ar(Wn(this,"addOptions",{name:this.name}))),this.storage=Ar(Wn(this,"addStorage",{name:this.name,options:this.options}))||{}}static create(t={}){return new Pl(t)}configure(t={}){const n=this.extend({...this.config,addOptions:()=>n9(this.options,t)});return n.name=this.name,n.parent=this.parent,n}extend(t={}){const n=new Pl(t);return n.parent=this,this.child=n,n.name=t.name?t.name:n.parent.name,t.defaultOptions&&Object.keys(t.defaultOptions).length>0&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${n.name}".`),n.options=Ar(Wn(n,"addOptions",{name:n.name})),n.storage=Ar(Wn(n,"addStorage",{name:n.name,options:n.options})),n}static handleExit({editor:t,mark:n}){const{tr:r}=t.state,i=t.state.selection.$from;if(i.pos===i.end()){const o=i.marks();if(!o.find(s=>(s==null?void 0:s.type.name)===n.name))return!1;const a=o.find(s=>(s==null?void 0:s.type.name)===n.name);return a&&r.removeStoredMark(a),r.insertText(" ",i.pos),t.view.dispatch(r),!0}return!1}}function Atn(e){return typeof e=="number"}class Ntn{constructor(t){this.find=t.find,this.handler=t.handler}}const Mtn=(e,t,n)=>{if(YQ(t))return[...e.matchAll(t)];const r=t(e,n);return r?r.map(i=>{const o=[i.text];return o.index=i.index,o.input=e,o.data=i.data,i.replaceWith&&(i.text.includes(i.replaceWith)||console.warn('[tiptap warn]: "pasteRuleMatch.replaceWith" must be part of "pasteRuleMatch.text".'),o.push(i.replaceWith)),o}):[]};function ktn(e){const{editor:t,state:n,from:r,to:i,rule:o,pasteEvent:a,dropEvent:s}=e,{commands:l,chain:c,can:u}=new e9({editor:t,state:n}),d=[];return n.doc.nodesBetween(r,i,(f,h)=>{if(!f.isTextblock||f.type.spec.code)return;const m=Math.max(r,h),g=Math.min(i,h+f.content.size),v=f.textBetween(m-h,g-h,void 0,"");Mtn(v,o.find,a).forEach(y=>{if(y.index===void 0)return;const b=m+y.index+1,_=b+y[0].length,E={from:n.tr.mapping.map(b),to:n.tr.mapping.map(_)},w=o.handler({state:n,range:E,match:y,commands:l,chain:c,can:u,pasteEvent:a,dropEvent:s});d.push(w)})}),d.every(f=>f!==null)}const Ptn=e=>{var t;const n=new ClipboardEvent("paste",{clipboardData:new DataTransfer});return(t=n.clipboardData)===null||t===void 0||t.setData("text/html",e),n};function Dtn(e){const{editor:t,rules:n}=e;let r=null,i=!1,o=!1,a=typeof ClipboardEvent<"u"?new ClipboardEvent("paste"):null,s;try{s=typeof DragEvent<"u"?new DragEvent("drop"):null}catch{s=null}const l=({state:c,from:u,to:d,rule:f,pasteEvt:h})=>{const m=c.tr,g=J3({state:c,transaction:m});if(!(!ktn({editor:t,state:g,from:Math.max(u-1,0),to:d.b-1,rule:f,pasteEvent:h,dropEvent:s})||!m.steps.length)){try{s=typeof DragEvent<"u"?new DragEvent("drop"):null}catch{s=null}return a=typeof ClipboardEvent<"u"?new ClipboardEvent("paste"):null,m}};return n.map(c=>new Ei({view(u){const d=f=>{var h;r=!((h=u.dom.parentElement)===null||h===void 0)&&h.contains(f.target)?u.dom.parentElement:null};return window.addEventListener("dragstart",d),{destroy(){window.removeEventListener("dragstart",d)}}},props:{handleDOMEvents:{drop:(u,d)=>(o=r===u.dom.parentElement,s=d,!1),paste:(u,d)=>{var f;const h=(f=d.clipboardData)===null||f===void 0?void 0:f.getData("text/html");return a=d,i=!!(h!=null&&h.includes("data-pm-slice")),!1}}},appendTransaction:(u,d,f)=>{const h=u[0],m=h.getMeta("uiEvent")==="paste"&&!i,g=h.getMeta("uiEvent")==="drop"&&!o,v=h.getMeta("applyPasteRules"),y=!!v;if(!m&&!g&&!y)return;if(y){let{text:E}=v;typeof E=="string"?E=E:E=qQ(Xt.from(E),f.schema);const{from:w}=v,S=w+E.length,C=Ptn(E);return l({rule:c,state:f,from:w,to:{b:S},pasteEvt:C})}const b=d.doc.content.findDiffStart(f.doc.content),_=d.doc.content.findDiffEnd(f.doc.content);if(!(!Atn(b)||!_||b===_.b))return l({rule:c,state:f,from:b,to:_,pasteEvt:a})}}))}function Ltn(e){const t=e.filter((n,r)=>e.indexOf(n)!==r);return Array.from(new Set(t))}class oy{constructor(t,n){this.splittableMarks=[],this.editor=n,this.extensions=oy.resolve(t),this.schema=Ttn(this.extensions,n),this.setupExtensions()}static resolve(t){const n=oy.sort(oy.flatten(t)),r=Ltn(n.map(i=>i.name));return r.length&&console.warn(`[tiptap warn]: Duplicate extension names found: [${r.map(i=>`'${i}'`).join(", ")}]. This can lead to issues.`),n}static flatten(t){return t.map(n=>{const r={name:n.name,options:n.options,storage:n.storage},i=Wn(n,"addExtensions",r);return i?[n,...this.flatten(i())]:n}).flat(10)}static sort(t){return t.sort((n,r)=>{const i=Wn(n,"priority")||100,o=Wn(r,"priority")||100;return i>o?-1:i<o?1:0})}get commands(){return this.extensions.reduce((t,n)=>{const r={name:n.name,options:n.options,storage:n.storage,editor:this.editor,type:y6(n.name,this.schema)},i=Wn(n,"addCommands",r);return i?{...t,...i()}:t},{})}get plugins(){const{editor:t}=this,n=oy.sort([...this.extensions].reverse()),r=[],i=[],o=n.map(a=>{const s={name:a.name,options:a.options,storage:a.storage,editor:t,type:y6(a.name,this.schema)},l=[],c=Wn(a,"addKeyboardShortcuts",s);let u={};if(a.type==="mark"&&Wn(a,"exitable",s)&&(u.ArrowRight=()=>Pl.handleExit({editor:t,mark:a})),c){const g=Object.fromEntries(Object.entries(c()).map(([v,y])=>[v,()=>y({editor:t})]));u={...u,...g}}const d=Qen(u);l.push(d);const f=Wn(a,"addInputRules",s);ede(a,t.options.enableInputRules)&&f&&r.push(...f());const h=Wn(a,"addPasteRules",s);ede(a,t.options.enablePasteRules)&&h&&i.push(...h());const m=Wn(a,"addProseMirrorPlugins",s);if(m){const g=m();l.push(...g)}return l}).flat();return[Rtn({editor:t,rules:r}),...Dtn({editor:t,rules:i}),...o]}get attributes(){return t4e(this.extensions)}get nodeViews(){const{editor:t}=this,{nodeExtensions:n}=t9(this.extensions);return Object.fromEntries(n.filter(r=>!!Wn(r,"addNodeView")).map(r=>{const i=this.attributes.filter(l=>l.type===r.name),o={name:r.name,options:r.options,storage:r.storage,editor:t,type:Ga(r.name,this.schema)},a=Wn(r,"addNodeView",o);if(!a)return[];const s=(l,c,u,d,f)=>{const h=qz(l,i);return a()({node:l,view:c,getPos:u,decorations:d,innerDecorations:f,editor:t,extension:r,HTMLAttributes:h})};return[r.name,s]}))}setupExtensions(){this.extensions.forEach(t=>{var n;this.editor.extensionStorage[t.name]=t.storage;const r={name:t.name,options:t.options,storage:t.storage,editor:this.editor,type:y6(t.name,this.schema)};t.type==="mark"&&(!((n=Ar(Wn(t,"keepOnSplit",r)))!==null&&n!==void 0)||n)&&this.splittableMarks.push(t.name);const i=Wn(t,"onBeforeCreate",r),o=Wn(t,"onCreate",r),a=Wn(t,"onUpdate",r),s=Wn(t,"onSelectionUpdate",r),l=Wn(t,"onTransaction",r),c=Wn(t,"onFocus",r),u=Wn(t,"onBlur",r),d=Wn(t,"onDestroy",r);i&&this.editor.on("beforeCreate",i),o&&this.editor.on("create",o),a&&this.editor.on("update",a),s&&this.editor.on("selectionUpdate",s),l&&this.editor.on("transaction",l),c&&this.editor.on("focus",c),u&&this.editor.on("blur",u),d&&this.editor.on("destroy",d)})}}class gi{constructor(t={}){this.type="extension",this.name="extension",this.parent=null,this.child=null,this.config={name:this.name,defaultOptions:{}},this.config={...this.config,...t},this.name=this.config.name,t.defaultOptions&&Object.keys(t.defaultOptions).length>0&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${this.name}".`),this.options=this.config.defaultOptions,this.config.addOptions&&(this.options=Ar(Wn(this,"addOptions",{name:this.name}))),this.storage=Ar(Wn(this,"addStorage",{name:this.name,options:this.options}))||{}}static create(t={}){return new gi(t)}configure(t={}){const n=this.extend({...this.config,addOptions:()=>n9(this.options,t)});return n.name=this.name,n.parent=this.parent,n}extend(t={}){const n=new gi({...this.config,...t});return n.parent=this,this.child=n,n.name=t.name?t.name:n.parent.name,t.defaultOptions&&Object.keys(t.defaultOptions).length>0&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${n.name}".`),n.options=Ar(Wn(n,"addOptions",{name:n.name})),n.storage=Ar(Wn(n,"addStorage",{name:n.name,options:n.options})),n}}function r9(e,t,n){const{from:r,to:i}=t,{blockSeparator:o=`
`,textSerializers:a={}}=n||{};let s="";return e.nodesBetween(r,i,(l,c,u,d)=>{var f;l.isBlock&&c>r&&(s+=o);const h=a==null?void 0:a[l.type.name];if(h)return u&&(s+=h({node:l,pos:c,parent:u,index:d,range:t})),!1;l.isText&&(s+=(f=l==null?void 0:l.text)===null||f===void 0?void 0:f.slice(Math.max(r,c)-c,i-c))}),s}function r4e(e){return Object.fromEntries(Object.entries(e.nodes).filter(([,t])=>t.spec.toText).map(([t,n])=>[t,n.spec.toText]))}const $tn=gi.create({name:"clipboardTextSerializer",addOptions(){return{blockSeparator:void 0}},addProseMirrorPlugins(){return[new Ei({key:new $i("clipboardTextSerializer"),props:{clipboardTextSerializer:()=>{const{editor:e}=this,{state:t,schema:n}=e,{doc:r,selection:i}=t,{ranges:o}=i,a=Math.min(...o.map(c=>c.$from.pos)),s=Math.max(...o.map(c=>c.$to.pos)),l=r4e(n);return r9(r,{from:a,to:s},{...this.options.blockSeparator!==void 0?{blockSeparator:this.options.blockSeparator}:{},textSerializers:l})}}})]}}),Ftn=()=>({editor:e,view:t})=>(requestAnimationFrame(()=>{var n;e.isDestroyed||(t.dom.blur(),(n=window==null?void 0:window.getSelection())===null||n===void 0||n.removeAllRanges())}),!0),Btn=(e=!1)=>({commands:t})=>t.setContent("",e),jtn=()=>({state:e,tr:t,dispatch:n})=>{const{selection:r}=t,{ranges:i}=r;return n&&i.forEach(({$from:o,$to:a})=>{e.doc.nodesBetween(o.pos,a.pos,(s,l)=>{if(s.type.isText)return;const{doc:c,mapping:u}=t,d=c.resolve(u.map(l)),f=c.resolve(u.map(l+s.nodeSize)),h=d.blockRange(f);if(!h)return;const m=oE(h);if(s.type.isTextblock){const{defaultType:g}=d.parent.contentMatchAt(d.index());t.setNodeMarkup(h.start,g)}(m||m===0)&&t.lift(h,m)})}),!0},Htn=e=>t=>e(t),Utn=()=>({state:e,dispatch:t})=>ctn(e,t),ztn=(e,t)=>({editor:n,tr:r})=>{const{state:i}=n,o=i.doc.slice(e.from,e.to);r.deleteRange(e.from,e.to);const a=r.mapping.map(t);return r.insert(a,o.content),r.setSelection(new er(r.doc.resolve(a-1))),!0},Vtn=()=>({tr:e,dispatch:t})=>{const{selection:n}=e,r=n.$anchor.node();if(r.content.size>0)return!1;const i=e.selection.$anchor;for(let o=i.depth;o>0;o-=1)if(i.node(o).type===r.type){if(t){const a=i.before(o),s=i.after(o);e.delete(a,s).scrollIntoView()}return!0}return!1},Gtn=e=>({tr:t,state:n,dispatch:r})=>{const i=Ga(e,n.schema),o=t.selection.$anchor;for(let a=o.depth;a>0;a-=1)if(o.node(a).type===i){if(r){const s=o.before(a),l=o.after(a);t.delete(s,l).scrollIntoView()}return!0}return!1},Wtn=e=>({tr:t,dispatch:n})=>{const{from:r,to:i}=e;return n&&t.delete(r,i),!0},qtn=()=>({state:e,dispatch:t})=>Xen(e,t),Ytn=()=>({commands:e})=>e.keyboardShortcut("Enter"),Ktn=()=>({state:e,dispatch:t})=>ltn(e,t);function V_(e,t,n={strict:!0}){const r=Object.keys(t);return r.length?r.every(i=>n.strict?t[i]===e[i]:YQ(t[i])?t[i].test(e[i]):t[i]===e[i]):!0}function i4e(e,t,n={}){return e.find(r=>r.type===t&&V_(Object.fromEntries(Object.keys(n).map(i=>[i,r.attrs[i]])),n))}function tde(e,t,n={}){return!!i4e(e,t,n)}function KQ(e,t,n){var r;if(!e||!t)return;let i=e.parent.childAfter(e.parentOffset);if((!i.node||!i.node.marks.some(c=>c.type===t))&&(i=e.parent.childBefore(e.parentOffset)),!i.node||!i.node.marks.some(c=>c.type===t)||(n=n||((r=i.node.marks[0])===null||r===void 0?void 0:r.attrs),!i4e([...i.node.marks],t,n)))return;let o=i.index,a=e.start()+i.offset,s=o+1,l=a+i.node.nodeSize;for(;o>0&&tde([...e.parent.child(o-1).marks],t,n);)o-=1,a-=e.parent.child(o).nodeSize;for(;s<e.parent.childCount&&tde([...e.parent.child(s).marks],t,n);)l+=e.parent.child(s).nodeSize,s+=1;return{from:a,to:l}}function Mh(e,t){if(typeof e=="string"){if(!t.marks[e])throw Error(`There is no mark type named '${e}'. Maybe you forgot to add the extension?`);return t.marks[e]}return e}const Qtn=(e,t={})=>({tr:n,state:r,dispatch:i})=>{const o=Mh(e,r.schema),{doc:a,selection:s}=n,{$from:l,from:c,to:u}=s;if(i){const d=KQ(l,o,t);if(d&&d.from<=c&&d.to>=u){const f=er.create(a,d.from,d.to);n.setSelection(f)}}return!0},Xtn=e=>t=>{const n=typeof e=="function"?e(t):e;for(let r=0;r<n.length;r+=1)if(n[r](t))return!0;return!1};function QQ(e){return e instanceof er}function Vp(e=0,t=0,n=0){return Math.min(Math.max(e,t),n)}function o4e(e,t=null){if(!t)return null;const n=mr.atStart(e),r=mr.atEnd(e);if(t==="start"||t===!0)return n;if(t==="end")return r;const i=n.from,o=r.to;return t==="all"?er.create(e,Vp(0,i,o),Vp(e.content.size,i,o)):er.create(e,Vp(t,i,o),Vp(t,i,o))}function XQ(){return["iPad Simulator","iPhone Simulator","iPod Simulator","iPad","iPhone","iPod"].includes(navigator.platform)||navigator.userAgent.includes("Mac")&&"ontouchend"in document}const Ztn=(e=null,t={})=>({editor:n,view:r,tr:i,dispatch:o})=>{t={scrollIntoView:!0,...t};const a=()=>{XQ()&&r.dom.focus(),requestAnimationFrame(()=>{n.isDestroyed||(r.focus(),t!=null&&t.scrollIntoView&&n.commands.scrollIntoView())})};if(r.hasFocus()&&e===null||e===!1)return!0;if(o&&e===null&&!QQ(n.state.selection))return a(),!0;const s=o4e(i.doc,e)||n.state.selection,l=n.state.selection.eq(s);return o&&(l||i.setSelection(s),l&&i.storedMarks&&i.setStoredMarks(i.storedMarks),a()),!0},Jtn=(e,t)=>n=>e.every((r,i)=>t(r,{...n,index:i})),enn=(e,t)=>({tr:n,commands:r})=>r.insertContentAt({from:n.selection.from,to:n.selection.to},e,t),a4e=e=>{const t=e.childNodes;for(let n=t.length-1;n>=0;n-=1){const r=t[n];r.nodeType===3&&r.nodeValue&&/^(\n\s\s|\n)$/.test(r.nodeValue)?e.removeChild(r):r.nodeType===1&&a4e(r)}return e};function oI(e){const t=`<body>${e}</body>`,n=new window.DOMParser().parseFromString(t,"text/html").body;return a4e(n)}function Yk(e,t,n){if(e instanceof ag||e instanceof Xt)return e;n={slice:!0,parseOptions:{},...n};const r=typeof e=="object"&&e!==null,i=typeof e=="string";if(r)try{if(Array.isArray(e)&&e.length>0)return Xt.fromArray(e.map(a=>t.nodeFromJSON(a)));const o=t.nodeFromJSON(e);return n.errorOnInvalidContent&&o.check(),o}catch(o){if(n.errorOnInvalidContent)throw new Error("[tiptap error]: Invalid JSON content",{cause:o});return console.warn("[tiptap warn]: Invalid content.","Passed value:",e,"Error:",o),Yk("",t,n)}if(i){if(n.errorOnInvalidContent){let a=!1,s="";const l=new QMe({topNode:t.spec.topNode,marks:t.spec.marks,nodes:t.spec.nodes.append({__tiptap__private__unknown__catch__all__node:{content:"inline*",group:"block",parseDOM:[{tag:"*",getAttrs:c=>(a=!0,s=typeof c=="string"?c:c.outerHTML,null)}]}})});if(n.slice?Ay.fromSchema(l).parseSlice(oI(e),n.parseOptions):Ay.fromSchema(l).parse(oI(e),n.parseOptions),n.errorOnInvalidContent&&a)throw new Error("[tiptap error]: Invalid HTML content",{cause:new Error(`Invalid element found: ${s}`)})}const o=Ay.fromSchema(t);return n.slice?o.parseSlice(oI(e),n.parseOptions).content:o.parse(oI(e),n.parseOptions)}return Yk("",t,n)}function tnn(e,t,n){const r=e.steps.length-1;if(r<t)return;const i=e.steps[r];if(!(i instanceof Sa||i instanceof Ua))return;const o=e.mapping.maps[r];let a=0;o.forEach((s,l,c,u)=>{a===0&&(a=u)}),e.setSelection(mr.near(e.doc.resolve(a),n))}const nnn=e=>!("type"in e),rnn=(e,t,n)=>({tr:r,dispatch:i,editor:o})=>{var a;if(i){n={parseOptions:o.options.parseOptions,updateSelection:!0,applyInputRules:!1,applyPasteRules:!1,...n};let s;try{s=Yk(t,o.schema,{parseOptions:{preserveWhitespace:"full",...n.parseOptions},errorOnInvalidContent:(a=n.errorOnInvalidContent)!==null&&a!==void 0?a:o.options.enableContentCheck})}catch(h){return o.emit("contentError",{editor:o,error:h,disableCollaboration:()=>{o.storage.collaboration&&(o.storage.collaboration.isDisabled=!0)}}),!1}let{from:l,to:c}=typeof e=="number"?{from:e,to:e}:{from:e.from,to:e.to},u=!0,d=!0;if((nnn(s)?s:[s]).forEach(h=>{h.check(),u=u?h.isText&&h.marks.length===0:!1,d=d?h.isBlock:!1}),l===c&&d){const{parent:h}=r.doc.resolve(l);h.isTextblock&&!h.type.spec.code&&!h.childCount&&(l-=1,c+=1)}let f;if(u){if(Array.isArray(t))f=t.map(h=>h.text||"").join("");else if(t instanceof Xt){let h="";t.forEach(m=>{m.text&&(h+=m.text)}),f=h}else typeof t=="object"&&t&&t.text?f=t.text:f=t;r.insertText(f,l,c)}else f=s,r.replaceWith(l,c,f);n.updateSelection&&tnn(r,r.steps.length-1,-1),n.applyInputRules&&r.setMeta("applyInputRules",{from:l,text:f}),n.applyPasteRules&&r.setMeta("applyPasteRules",{from:l,text:f})}return!0},inn=()=>({state:e,dispatch:t})=>itn(e,t),onn=()=>({state:e,dispatch:t})=>otn(e,t),ann=()=>({state:e,dispatch:t})=>Zen(e,t),snn=()=>({state:e,dispatch:t})=>ntn(e,t),lnn=()=>({state:e,dispatch:t,tr:n})=>{try{const r=q3(e.doc,e.selection.$from.pos,-1);return r==null?!1:(n.join(r,2),t&&t(n),!0)}catch{return!1}},cnn=()=>({state:e,dispatch:t,tr:n})=>{try{const r=q3(e.doc,e.selection.$from.pos,1);return r==null?!1:(n.join(r,2),t&&t(n),!0)}catch{return!1}},unn=()=>({state:e,dispatch:t})=>Jen(e,t),dnn=()=>({state:e,dispatch:t})=>etn(e,t);function s4e(){return typeof navigator<"u"?/Mac/.test(navigator.platform):!1}function fnn(e){const t=e.split(/-(?!$)/);let n=t[t.length-1];n==="Space"&&(n=" ");let r,i,o,a;for(let s=0;s<t.length-1;s+=1){const l=t[s];if(/^(cmd|meta|m)$/i.test(l))a=!0;else if(/^a(lt)?$/i.test(l))r=!0;else if(/^(c|ctrl|control)$/i.test(l))i=!0;else if(/^s(hift)?$/i.test(l))o=!0;else if(/^mod$/i.test(l))XQ()||s4e()?a=!0:i=!0;else throw new Error(`Unrecognized modifier name: ${l}`)}return r&&(n=`Alt-${n}`),i&&(n=`Ctrl-${n}`),a&&(n=`Meta-${n}`),o&&(n=`Shift-${n}`),n}const pnn=e=>({editor:t,view:n,tr:r,dispatch:i})=>{const o=fnn(e).split(/-(?!$)/),a=o.find(c=>!["Alt","Ctrl","Meta","Shift"].includes(c)),s=new KeyboardEvent("keydown",{key:a==="Space"?" ":a,altKey:o.includes("Alt"),ctrlKey:o.includes("Ctrl"),metaKey:o.includes("Meta"),shiftKey:o.includes("Shift"),bubbles:!0,cancelable:!0}),l=t.captureTransaction(()=>{n.someProp("handleKeyDown",c=>c(n,s))});return l==null||l.steps.forEach(c=>{const u=c.map(r.mapping);u&&i&&r.maybeStep(u)}),!0};function n0(e,t,n={}){const{from:r,to:i,empty:o}=e.selection,a=t?Ga(t,e.schema):null,s=[];e.doc.nodesBetween(r,i,(u,d)=>{if(u.isText)return;const f=Math.max(r,d),h=Math.min(i,d+u.nodeSize);s.push({node:u,from:f,to:h})});const l=i-r,c=s.filter(u=>a?a.name===u.node.type.name:!0).filter(u=>V_(u.node.attrs,n,{strict:!1}));return o?!!c.length:c.reduce((u,d)=>u+d.to-d.from,0)>=l}const hnn=(e,t={})=>({state:n,dispatch:r})=>{const i=Ga(e,n.schema);return n0(n,i,t)?atn(n,r):!1},mnn=()=>({state:e,dispatch:t})=>utn(e,t),gnn=e=>({state:t,dispatch:n})=>{const r=Ga(e,t.schema);return btn(r)(t,n)},vnn=()=>({state:e,dispatch:t})=>stn(e,t);function i9(e,t){return t.nodes[e]?"node":t.marks[e]?"mark":null}function nde(e,t){const n=typeof t=="string"?[t]:t;return Object.keys(e).reduce((r,i)=>(n.includes(i)||(r[i]=e[i]),r),{})}const bnn=(e,t)=>({tr:n,state:r,dispatch:i})=>{let o=null,a=null;const s=i9(typeof e=="string"?e:e.name,r.schema);return s?(s==="node"&&(o=Ga(e,r.schema)),s==="mark"&&(a=Mh(e,r.schema)),i&&n.selection.ranges.forEach(l=>{r.doc.nodesBetween(l.$from.pos,l.$to.pos,(c,u)=>{o&&o===c.type&&n.setNodeMarkup(u,void 0,nde(c.attrs,t)),a&&c.marks.length&&c.marks.forEach(d=>{a===d.type&&n.addMark(u,u+c.nodeSize,a.create(nde(d.attrs,t)))})})}),!0):!1},ynn=()=>({tr:e,dispatch:t})=>(t&&e.scrollIntoView(),!0),_nn=()=>({tr:e,commands:t})=>t.setTextSelection({from:0,to:e.doc.content.size}),Snn=()=>({state:e,dispatch:t})=>ttn(e,t),Enn=()=>({state:e,dispatch:t})=>rtn(e,t),Cnn=()=>({state:e,dispatch:t})=>dtn(e,t),wnn=()=>({state:e,dispatch:t})=>htn(e,t),Tnn=()=>({state:e,dispatch:t})=>ptn(e,t);function Yz(e,t,n={},r={}){return Yk(e,t,{slice:!1,parseOptions:n,errorOnInvalidContent:r.errorOnInvalidContent})}const xnn=(e,t=!1,n={},r={})=>({editor:i,tr:o,dispatch:a,commands:s})=>{var l,c;const{doc:u}=o;if(n.preserveWhitespace!=="full"){const d=Yz(e,i.schema,n,{errorOnInvalidContent:(l=r.errorOnInvalidContent)!==null&&l!==void 0?l:i.options.enableContentCheck});return a&&o.replaceWith(0,u.content.size,d).setMeta("preventUpdate",!t),!0}return a&&o.setMeta("preventUpdate",!t),s.insertContentAt({from:0,to:u.content.size},e,{parseOptions:n,errorOnInvalidContent:(c=r.errorOnInvalidContent)!==null&&c!==void 0?c:i.options.enableContentCheck})};function ZQ(e,t){const n=Mh(t,e.schema),{from:r,to:i,empty:o}=e.selection,a=[];o?(e.storedMarks&&a.push(...e.storedMarks),a.push(...e.selection.$head.marks())):e.doc.nodesBetween(r,i,l=>{a.push(...l.marks)});const s=a.find(l=>l.type.name===n.name);return s?{...s.attrs}:{}}function Onn(e,t){const n=new PQ(e);return t.forEach(r=>{r.steps.forEach(i=>{n.step(i)})}),n}function Rnn(e){for(let t=0;t<e.edgeCount;t+=1){const{type:n}=e.edge(t);if(n.isTextblock&&!n.hasRequiredAttrs())return n}return null}function Kz(e,t){const n=[];return e.descendants((r,i)=>{t(r)&&n.push({node:r,pos:i})}),n}function Inn(e,t,n){const r=[];return e.nodesBetween(t.from,t.to,(i,o)=>{n(i)&&r.push({node:i,pos:o})}),r}function l4e(e,t){for(let n=e.depth;n>0;n-=1){const r=e.node(n);if(t(r))return{pos:n>0?e.before(n):0,start:e.start(n),depth:n,node:r}}}function o9(e){return t=>l4e(t.$from,e)}function Ann(e,t){const n={from:0,to:e.content.size};return r9(e,n,t)}function Nnn(e,t){const n=Ga(t,e.schema),{from:r,to:i}=e.selection,o=[];e.doc.nodesBetween(r,i,s=>{o.push(s)});const a=o.reverse().find(s=>s.type.name===n.name);return a?{...a.attrs}:{}}function c4e(e,t){const n=i9(typeof t=="string"?t:t.name,e.schema);return n==="node"?Nnn(e,t):n==="mark"?ZQ(e,t):{}}function Mnn(e,t=JSON.stringify){const n={};return e.filter(r=>{const i=t(r);return Object.prototype.hasOwnProperty.call(n,i)?!1:n[i]=!0})}function knn(e){const t=Mnn(e);return t.length===1?t:t.filter((n,r)=>!t.filter((i,o)=>o!==r).some(i=>n.oldRange.from>=i.oldRange.from&&n.oldRange.to<=i.oldRange.to&&n.newRange.from>=i.newRange.from&&n.newRange.to<=i.newRange.to))}function Pnn(e){const{mapping:t,steps:n}=e,r=[];return t.maps.forEach((i,o)=>{const a=[];if(i.ranges.length)i.forEach((s,l)=>{a.push({from:s,to:l})});else{const{from:s,to:l}=n[o];if(s===void 0||l===void 0)return;a.push({from:s,to:l})}a.forEach(({from:s,to:l})=>{const c=t.slice(o).map(s,-1),u=t.slice(o).map(l),d=t.invert().map(c,-1),f=t.invert().map(u);r.push({oldRange:{from:d,to:f},newRange:{from:c,to:u}})})}),knn(r)}function JQ(e,t,n){const r=[];return e===t?n.resolve(e).marks().forEach(i=>{const o=n.resolve(e),a=KQ(o,i.type);a&&r.push({mark:i,...a})}):n.nodesBetween(e,t,(i,o)=>{!i||(i==null?void 0:i.nodeSize)===void 0||r.push(...i.marks.map(a=>({from:o,to:o+i.nodeSize,mark:a})))}),r}function uN(e,t,n){return Object.fromEntries(Object.entries(n).filter(([r])=>{const i=e.find(o=>o.type===t&&o.name===r);return i?i.attribute.keepOnSplit:!1}))}function Qz(e,t,n={}){const{empty:r,ranges:i}=e.selection,o=t?Mh(t,e.schema):null;if(r)return!!(e.storedMarks||e.selection.$from.marks()).filter(u=>o?o.name===u.type.name:!0).find(u=>V_(u.attrs,n,{strict:!1}));let a=0;const s=[];if(i.forEach(({$from:u,$to:d})=>{const f=u.pos,h=d.pos;e.doc.nodesBetween(f,h,(m,g)=>{if(!m.isText&&!m.marks.length)return;const v=Math.max(f,g),y=Math.min(h,g+m.nodeSize),b=y-v;a+=b,s.push(...m.marks.map(_=>({mark:_,from:v,to:y})))})}),a===0)return!1;const l=s.filter(u=>o?o.name===u.mark.type.name:!0).filter(u=>V_(u.mark.attrs,n,{strict:!1})).reduce((u,d)=>u+d.to-d.from,0),c=s.filter(u=>o?u.mark.type!==o&&u.mark.type.excludes(o):!0).reduce((u,d)=>u+d.to-d.from,0);return(l>0?l+c:l)>=a}function Dnn(e,t,n={}){if(!t)return n0(e,null,n)||Qz(e,null,n);const r=i9(t,e.schema);return r==="node"?n0(e,t,n):r==="mark"?Qz(e,t,n):!1}function rde(e,t){const{nodeExtensions:n}=t9(t),r=n.find(a=>a.name===e);if(!r)return!1;const i={name:r.name,options:r.options,storage:r.storage},o=Ar(Wn(r,"group",i));return typeof o!="string"?!1:o.split(" ").includes("list")}function a9(e,{checkChildren:t=!0,ignoreWhitespace:n=!1}={}){var r;if(n){if(e.type.name==="hardBreak")return!0;if(e.isText)return/^\s*$/m.test((r=e.text)!==null&&r!==void 0?r:"")}if(e.isText)return!e.text;if(e.isAtom||e.isLeaf)return!1;if(e.content.childCount===0)return!0;if(t){let i=!0;return e.content.forEach(o=>{i!==!1&&(a9(o,{ignoreWhitespace:n,checkChildren:t})||(i=!1))}),i}return!1}function u4e(e){return e instanceof lr}function sx(e,t,n){const r=e.state.doc.content.size,i=Vp(t,0,r),o=Vp(n,0,r),a=e.coordsAtPos(i),s=e.coordsAtPos(o,-1),l=Math.min(a.top,s.top),c=Math.max(a.bottom,s.bottom),u=Math.min(a.left,s.left),d=Math.max(a.right,s.right),f=d-u,h=c-l,m={top:l,bottom:c,left:u,right:d,width:f,height:h,x:u,y:l};return{...m,toJSON:()=>m}}function Lnn(e,t,n){var r;const{selection:i}=t;let o=null;if(QQ(i)&&(o=i.$cursor),o){const s=(r=e.storedMarks)!==null&&r!==void 0?r:o.marks();return!!n.isInSet(s)||!s.some(l=>l.type.excludes(n))}const{ranges:a}=i;return a.some(({$from:s,$to:l})=>{let c=s.depth===0?e.doc.inlineContent&&e.doc.type.allowsMarkType(n):!1;return e.doc.nodesBetween(s.pos,l.pos,(u,d,f)=>{if(c)return!1;if(u.isInline){const h=!f||f.type.allowsMarkType(n),m=!!n.isInSet(u.marks)||!u.marks.some(g=>g.type.excludes(n));c=h&&m}return!c}),c})}const $nn=(e,t={})=>({tr:n,state:r,dispatch:i})=>{const{selection:o}=n,{empty:a,ranges:s}=o,l=Mh(e,r.schema);if(i)if(a){const c=ZQ(r,l);n.addStoredMark(l.create({...c,...t}))}else s.forEach(c=>{const u=c.$from.pos,d=c.$to.pos;r.doc.nodesBetween(u,d,(f,h)=>{const m=Math.max(h,u),g=Math.min(h+f.nodeSize,d);f.marks.find(v=>v.type===l)?f.marks.forEach(v=>{l===v.type&&n.addMark(m,g,l.create({...v.attrs,...t}))}):n.addMark(m,g,l.create(t))})});return Lnn(r,n,l)},Fnn=(e,t)=>({tr:n})=>(n.setMeta(e,t),!0),Bnn=(e,t={})=>({state:n,dispatch:r,chain:i})=>{const o=Ga(e,n.schema);let a;return n.selection.$anchor.sameParent(n.selection.$head)&&(a=n.selection.$anchor.parent.attrs),o.isTextblock?i().command(({commands:s})=>Xue(o,{...a,...t})(n)?!0:s.clearNodes()).command(({state:s})=>Xue(o,{...a,...t})(s,r)).run():(console.warn('[tiptap warn]: Currently "setNode()" only supports text block nodes.'),!1)},jnn=e=>({tr:t,dispatch:n})=>{if(n){const{doc:r}=t,i=Vp(e,0,r.content.size),o=lr.create(r,i);t.setSelection(o)}return!0},Hnn=e=>({tr:t,dispatch:n})=>{if(n){const{doc:r}=t,{from:i,to:o}=typeof e=="number"?{from:e,to:e}:e,a=er.atStart(r).from,s=er.atEnd(r).to,l=Vp(i,a,s),c=Vp(o,a,s),u=er.create(r,l,c);t.setSelection(u)}return!0},Unn=e=>({state:t,dispatch:n})=>{const r=Ga(e,t.schema);return Stn(r)(t,n)};function ide(e,t){const n=e.storedMarks||e.selection.$to.parentOffset&&e.selection.$from.marks();if(n){const r=n.filter(i=>t==null?void 0:t.includes(i.type.name));e.tr.ensureMarks(r)}}const znn=({keepMarks:e=!0}={})=>({tr:t,state:n,dispatch:r,editor:i})=>{const{selection:o,doc:a}=t,{$from:s,$to:l}=o,c=i.extensionManager.attributes,u=uN(c,s.node().type.name,s.node().attrs);if(o instanceof lr&&o.node.isBlock)return!s.parentOffset||!My(a,s.pos)?!1:(r&&(e&&ide(n,i.extensionManager.splittableMarks),t.split(s.pos).scrollIntoView()),!0);if(!s.parent.isBlock)return!1;const d=l.parentOffset===l.parent.content.size,f=s.depth===0?void 0:Rnn(s.node(-1).contentMatchAt(s.indexAfter(-1)));let h=d&&f?[{type:f,attrs:u}]:void 0,m=My(t.doc,t.mapping.map(s.pos),1,h);if(!h&&!m&&My(t.doc,t.mapping.map(s.pos),1,f?[{type:f}]:void 0)&&(m=!0,h=f?[{type:f,attrs:u}]:void 0),r){if(m&&(o instanceof er&&t.deleteSelection(),t.split(t.mapping.map(s.pos),1,h),f&&!d&&!s.parentOffset&&s.parent.type!==f)){const g=t.mapping.map(s.before()),v=t.doc.resolve(g);s.node(-1).canReplaceWith(v.index(),v.index()+1,f)&&t.setNodeMarkup(t.mapping.map(s.before()),f)}e&&ide(n,i.extensionManager.splittableMarks),t.scrollIntoView()}return m},Vnn=(e,t={})=>({tr:n,state:r,dispatch:i,editor:o})=>{var a;const s=Ga(e,r.schema),{$from:l,$to:c}=r.selection,u=r.selection.node;if(u&&u.isBlock||l.depth<2||!l.sameParent(c))return!1;const d=l.node(-1);if(d.type!==s)return!1;const f=o.extensionManager.attributes;if(l.parent.content.size===0&&l.node(-1).childCount===l.indexAfter(-1)){if(l.depth===2||l.node(-3).type!==s||l.index(-2)!==l.node(-2).childCount-1)return!1;if(i){let y=Xt.empty;const b=l.index(-1)?1:l.index(-2)?2:3;for(let T=l.depth-b;T>=l.depth-3;T-=1)y=Xt.from(l.node(T).copy(y));const _=l.indexAfter(-1)<l.node(-2).childCount?1:l.indexAfter(-2)<l.node(-3).childCount?2:3,E={...uN(f,l.node().type.name,l.node().attrs),...t},w=((a=s.contentMatch.defaultType)===null||a===void 0?void 0:a.createAndFill(E))||void 0;y=y.append(Xt.from(s.createAndFill(null,w)||void 0));const S=l.before(l.depth-(b-1));n.replace(S,l.after(-_),new Rn(y,4-b,0));let C=-1;n.doc.nodesBetween(S,n.doc.content.size,(T,x)=>{if(C>-1)return!1;T.isTextblock&&T.content.size===0&&(C=x+1)}),C>-1&&n.setSelection(er.near(n.doc.resolve(C))),n.scrollIntoView()}return!0}const h=c.pos===l.end()?d.contentMatchAt(0).defaultType:null,m={...uN(f,d.type.name,d.attrs),...t},g={...uN(f,l.node().type.name,l.node().attrs),...t};n.delete(l.pos,c.pos);const v=h?[{type:s,attrs:m},{type:h,attrs:g}]:[{type:s,attrs:m}];if(!My(n.doc,l.pos,2))return!1;if(i){const{selection:y,storedMarks:b}=r,{splittableMarks:_}=o.extensionManager,E=b||y.$to.parentOffset&&y.$from.marks();if(n.split(l.pos,2,v).scrollIntoView(),!E||!i)return!0;const w=E.filter(S=>_.includes(S.type.name));n.ensureMarks(w)}return!0},_6=(e,t)=>{const n=o9(o=>o.type===t)(e.selection);if(!n)return!0;const r=e.doc.resolve(Math.max(0,n.pos-1)).before(n.depth);if(r===void 0)return!0;const i=e.doc.nodeAt(r);return n.node.type===(i==null?void 0:i.type)&&$g(e.doc,n.pos)&&e.join(n.pos),!0},S6=(e,t)=>{const n=o9(o=>o.type===t)(e.selection);if(!n)return!0;const r=e.doc.resolve(n.start).after(n.depth);if(r===void 0)return!0;const i=e.doc.nodeAt(r);return n.node.type===(i==null?void 0:i.type)&&$g(e.doc,r)&&e.join(r),!0},Gnn=(e,t,n,r={})=>({editor:i,tr:o,state:a,dispatch:s,chain:l,commands:c,can:u})=>{const{extensions:d,splittableMarks:f}=i.extensionManager,h=Ga(e,a.schema),m=Ga(t,a.schema),{selection:g,storedMarks:v}=a,{$from:y,$to:b}=g,_=y.blockRange(b),E=v||g.$to.parentOffset&&g.$from.marks();if(!_)return!1;const w=o9(S=>rde(S.type.name,d))(g);if(_.depth>=1&&w&&_.depth-w.depth<=1){if(w.node.type===h)return c.liftListItem(m);if(rde(w.node.type.name,d)&&h.validContent(w.node.content)&&s)return l().command(()=>(o.setNodeMarkup(w.pos,h),!0)).command(()=>_6(o,h)).command(()=>S6(o,h)).run()}return!n||!E||!s?l().command(()=>u().wrapInList(h,r)?!0:c.clearNodes()).wrapInList(h,r).command(()=>_6(o,h)).command(()=>S6(o,h)).run():l().command(()=>{const S=u().wrapInList(h,r),C=E.filter(T=>f.includes(T.type.name));return o.ensureMarks(C),S?!0:c.clearNodes()}).wrapInList(h,r).command(()=>_6(o,h)).command(()=>S6(o,h)).run()},Wnn=(e,t={},n={})=>({state:r,commands:i})=>{const{extendEmptyMarkRange:o=!1}=n,a=Mh(e,r.schema);return Qz(r,a,t)?i.unsetMark(a,{extendEmptyMarkRange:o}):i.setMark(a,t)},qnn=(e,t,n={})=>({state:r,commands:i})=>{const o=Ga(e,r.schema),a=Ga(t,r.schema),s=n0(r,o,n);let l;return r.selection.$anchor.sameParent(r.selection.$head)&&(l=r.selection.$anchor.parent.attrs),s?i.setNode(a,l):i.setNode(o,{...l,...n})},Ynn=(e,t={})=>({state:n,commands:r})=>{const i=Ga(e,n.schema);return n0(n,i,t)?r.lift(i):r.wrapIn(i,t)},Knn=()=>({state:e,dispatch:t})=>{const n=e.plugins;for(let r=0;r<n.length;r+=1){const i=n[r];let o;if(i.spec.isInputRules&&(o=i.getState(e))){if(t){const a=e.tr,s=o.transform;for(let l=s.steps.length-1;l>=0;l-=1)a.step(s.steps[l].invert(s.docs[l]));if(o.text){const l=a.doc.resolve(o.from).marks();a.replaceWith(o.from,o.to,e.schema.text(o.text,l))}else a.delete(o.from,o.to)}return!0}}return!1},Qnn=()=>({tr:e,dispatch:t})=>{const{selection:n}=e,{empty:r,ranges:i}=n;return r||t&&i.forEach(o=>{e.removeMark(o.$from.pos,o.$to.pos)}),!0},Xnn=(e,t={})=>({tr:n,state:r,dispatch:i})=>{var o;const{extendEmptyMarkRange:a=!1}=t,{selection:s}=n,l=Mh(e,r.schema),{$from:c,empty:u,ranges:d}=s;if(!i)return!0;if(u&&a){let{from:f,to:h}=s;const m=(o=c.marks().find(v=>v.type===l))===null||o===void 0?void 0:o.attrs,g=KQ(c,l,m);g&&(f=g.from,h=g.to),n.removeMark(f,h,l)}else d.forEach(f=>{n.removeMark(f.$from.pos,f.$to.pos,l)});return n.removeStoredMark(l),!0},Znn=(e,t={})=>({tr:n,state:r,dispatch:i})=>{let o=null,a=null;const s=i9(typeof e=="string"?e:e.name,r.schema);return s?(s==="node"&&(o=Ga(e,r.schema)),s==="mark"&&(a=Mh(e,r.schema)),i&&n.selection.ranges.forEach(l=>{const c=l.$from.pos,u=l.$to.pos;let d,f,h,m;n.selection.empty?r.doc.nodesBetween(c,u,(g,v)=>{o&&o===g.type&&(h=Math.max(v,c),m=Math.min(v+g.nodeSize,u),d=v,f=g)}):r.doc.nodesBetween(c,u,(g,v)=>{v<c&&o&&o===g.type&&(h=Math.max(v,c),m=Math.min(v+g.nodeSize,u),d=v,f=g),v>=c&&v<=u&&(o&&o===g.type&&n.setNodeMarkup(v,void 0,{...g.attrs,...t}),a&&g.marks.length&&g.marks.forEach(y=>{if(a===y.type){const b=Math.max(v,c),_=Math.min(v+g.nodeSize,u);n.addMark(b,_,a.create({...y.attrs,...t}))}}))}),f&&(d!==void 0&&n.setNodeMarkup(d,void 0,{...f.attrs,...t}),a&&f.marks.length&&f.marks.forEach(g=>{a===g.type&&n.addMark(h,m,a.create({...g.attrs,...t}))}))}),!0):!1},Jnn=(e,t={})=>({state:n,dispatch:r})=>{const i=Ga(e,n.schema);return mtn(i,t)(n,r)},ern=(e,t={})=>({state:n,dispatch:r})=>{const i=Ga(e,n.schema);return gtn(i,t)(n,r)};var trn=Object.freeze({__proto__:null,blur:Ftn,clearContent:Btn,clearNodes:jtn,command:Htn,createParagraphNear:Utn,cut:ztn,deleteCurrentNode:Vtn,deleteNode:Gtn,deleteRange:Wtn,deleteSelection:qtn,enter:Ytn,exitCode:Ktn,extendMarkRange:Qtn,first:Xtn,focus:Ztn,forEach:Jtn,insertContent:enn,insertContentAt:rnn,joinBackward:ann,joinDown:onn,joinForward:snn,joinItemBackward:lnn,joinItemForward:cnn,joinTextblockBackward:unn,joinTextblockForward:dnn,joinUp:inn,keyboardShortcut:pnn,lift:hnn,liftEmptyBlock:mnn,liftListItem:gnn,newlineInCode:vnn,resetAttributes:bnn,scrollIntoView:ynn,selectAll:_nn,selectNodeBackward:Snn,selectNodeForward:Enn,selectParentNode:Cnn,selectTextblockEnd:wnn,selectTextblockStart:Tnn,setContent:xnn,setMark:$nn,setMeta:Fnn,setNode:Bnn,setNodeSelection:jnn,setTextSelection:Hnn,sinkListItem:Unn,splitBlock:znn,splitListItem:Vnn,toggleList:Gnn,toggleMark:Wnn,toggleNode:qnn,toggleWrap:Ynn,undoInputRule:Knn,unsetAllMarks:Qnn,unsetMark:Xnn,updateAttributes:Znn,wrapIn:Jnn,wrapInList:ern});const nrn=gi.create({name:"commands",addCommands(){return{...trn}}}),rrn=gi.create({name:"drop",addProseMirrorPlugins(){return[new Ei({key:new $i("tiptapDrop"),props:{handleDrop:(e,t,n,r)=>{this.editor.emit("drop",{editor:this.editor,event:t,slice:n,moved:r})}}})]}}),irn=gi.create({name:"editable",addProseMirrorPlugins(){return[new Ei({key:new $i("editable"),props:{editable:()=>this.editor.options.editable}})]}}),orn=gi.create({name:"focusEvents",addProseMirrorPlugins(){const{editor:e}=this;return[new Ei({key:new $i("focusEvents"),props:{handleDOMEvents:{focus:(t,n)=>{e.isFocused=!0;const r=e.state.tr.setMeta("focus",{event:n}).setMeta("addToHistory",!1);return t.dispatch(r),!1},blur:(t,n)=>{e.isFocused=!1;const r=e.state.tr.setMeta("blur",{event:n}).setMeta("addToHistory",!1);return t.dispatch(r),!1}}}})]}}),arn=gi.create({name:"keymap",addKeyboardShortcuts(){const e=()=>this.editor.commands.first(({commands:o})=>[()=>o.undoInputRule(),()=>o.command(({tr:a})=>{const{selection:s,doc:l}=a,{empty:c,$anchor:u}=s,{pos:d,parent:f}=u,h=u.parent.isTextblock&&d>0?a.doc.resolve(d-1):u,m=h.parent.type.spec.isolating,g=u.pos-u.parentOffset,v=m&&h.parent.childCount===1?g===u.pos:mr.atStart(l).from===d;return!c||!f.type.isTextblock||f.textContent.length||!v||v&&u.parent.type.name==="paragraph"?!1:o.clearNodes()}),()=>o.deleteSelection(),()=>o.joinBackward(),()=>o.selectNodeBackward()]),t=()=>this.editor.commands.first(({commands:o})=>[()=>o.deleteSelection(),()=>o.deleteCurrentNode(),()=>o.joinForward(),()=>o.selectNodeForward()]),n={Enter:()=>this.editor.commands.first(({commands:o})=>[()=>o.newlineInCode(),()=>o.createParagraphNear(),()=>o.liftEmptyBlock(),()=>o.splitBlock()]),"Mod-Enter":()=>this.editor.commands.exitCode(),Backspace:e,"Mod-Backspace":e,"Shift-Backspace":e,Delete:t,"Mod-Delete":t,"Mod-a":()=>this.editor.commands.selectAll()},r={...n},i={...n,"Ctrl-h":e,"Alt-Backspace":e,"Ctrl-d":t,"Ctrl-Alt-Backspace":t,"Alt-Delete":t,"Alt-d":t,"Ctrl-a":()=>this.editor.commands.selectTextblockStart(),"Ctrl-e":()=>this.editor.commands.selectTextblockEnd()};return XQ()||s4e()?i:r},addProseMirrorPlugins(){return[new Ei({key:new $i("clearDocument"),appendTransaction:(e,t,n)=>{const r=e.some(h=>h.docChanged)&&!t.doc.eq(n.doc),i=e.some(h=>h.getMeta("preventClearDocument"));if(!r||i)return;const{empty:o,from:a,to:s}=t.selection,l=mr.atStart(t.doc).from,c=mr.atEnd(t.doc).to;if(o||!(a===l&&s===c)||!a9(n.doc))return;const u=n.tr,d=J3({state:n,transaction:u}),{commands:f}=new e9({editor:this.editor,state:d});if(f.clearNodes(),!!u.steps.length)return u}})]}}),srn=gi.create({name:"paste",addProseMirrorPlugins(){return[new Ei({key:new $i("tiptapPaste"),props:{handlePaste:(e,t,n)=>{this.editor.emit("paste",{editor:this.editor,event:t,slice:n})}}})]}}),lrn=gi.create({name:"tabindex",addProseMirrorPlugins(){return[new Ei({key:new $i("tabindex"),props:{attributes:()=>this.editor.isEditable?{tabindex:"0"}:{}}})]}});let crn=class Ab{get name(){return this.node.type.name}constructor(t,n,r=!1,i=null){this.currentNode=null,this.actualDepth=null,this.isBlock=r,this.resolvedPos=t,this.editor=n,this.currentNode=i}get node(){return this.currentNode||this.resolvedPos.node()}get element(){return this.editor.view.domAtPos(this.pos).node}get depth(){var t;return(t=this.actualDepth)!==null&&t!==void 0?t:this.resolvedPos.depth}get pos(){return this.resolvedPos.pos}get content(){return this.node.content}set content(t){let n=this.from,r=this.to;if(this.isBlock){if(this.content.size===0){console.error(`You cant set content on a block node. Tried to set content on ${this.name} at ${this.pos}`);return}n=this.from+1,r=this.to-1}this.editor.commands.insertContentAt({from:n,to:r},t)}get attributes(){return this.node.attrs}get textContent(){return this.node.textContent}get size(){return this.node.nodeSize}get from(){return this.isBlock?this.pos:this.resolvedPos.start(this.resolvedPos.depth)}get range(){return{from:this.from,to:this.to}}get to(){return this.isBlock?this.pos+this.size:this.resolvedPos.end(this.resolvedPos.depth)+(this.node.isText?0:1)}get parent(){if(this.depth===0)return null;const t=this.resolvedPos.start(this.resolvedPos.depth-1),n=this.resolvedPos.doc.resolve(t);return new Ab(n,this.editor)}get before(){let t=this.resolvedPos.doc.resolve(this.from-(this.isBlock?1:2));return t.depth!==this.depth&&(t=this.resolvedPos.doc.resolve(this.from-3)),new Ab(t,this.editor)}get after(){let t=this.resolvedPos.doc.resolve(this.to+(this.isBlock?2:1));return t.depth!==this.depth&&(t=this.resolvedPos.doc.resolve(this.to+3)),new Ab(t,this.editor)}get children(){const t=[];return this.node.content.forEach((n,r)=>{const i=n.isBlock&&!n.isTextblock,o=n.isAtom&&!n.isText,a=this.pos+r+(o?0:1),s=this.resolvedPos.doc.resolve(a);if(!i&&s.depth<=this.depth)return;const l=new Ab(s,this.editor,i,i?n:null);i&&(l.actualDepth=this.depth+1),t.push(new Ab(s,this.editor,i,i?n:null))}),t}get firstChild(){return this.children[0]||null}get lastChild(){const t=this.children;return t[t.length-1]||null}closest(t,n={}){let r=null,i=this.parent;for(;i&&!r;){if(i.node.type.name===t)if(Object.keys(n).length>0){const o=i.node.attrs,a=Object.keys(n);for(let s=0;s<a.length;s+=1){const l=a[s];if(o[l]!==n[l])break}}else r=i;i=i.parent}return r}querySelector(t,n={}){return this.querySelectorAll(t,n,!0)[0]||null}querySelectorAll(t,n={},r=!1){let i=[];if(!this.children||this.children.length===0)return i;const o=Object.keys(n);return this.children.forEach(a=>{r&&i.length>0||(a.node.type.name===t&&o.every(s=>n[s]===a.node.attrs[s])&&i.push(a),!(r&&i.length>0)&&(i=i.concat(a.querySelectorAll(t,n,r))))}),i}setAttribute(t){const{tr:n}=this.editor.state;n.setNodeMarkup(this.from,void 0,{...this.node.attrs,...t}),this.editor.view.dispatch(n)}};const urn=`.ProseMirror {
position: relative;
}
.ProseMirror {
word-wrap: break-word;
white-space: pre-wrap;
white-space: break-spaces;
-webkit-font-variant-ligatures: none;
font-variant-ligatures: none;
font-feature-settings: "liga" 0; /* the above doesn't seem to work in Edge */
}
.ProseMirror [contenteditable="false"] {
white-space: normal;
}
.ProseMirror [contenteditable="false"] [contenteditable="true"] {
white-space: pre-wrap;
}
.ProseMirror pre {
white-space: pre-wrap;
}
img.ProseMirror-separator {
display: inline !important;
border: none !important;
margin: 0 !important;
width: 0 !important;
height: 0 !important;
}
.ProseMirror-gapcursor {
display: none;
pointer-events: none;
position: absolute;
margin: 0;
}
.ProseMirror-gapcursor:after {
content: "";
display: block;
position: absolute;
top: -2px;
width: 20px;
border-top: 1px solid black;
animation: ProseMirror-cursor-blink 1.1s steps(2, start) infinite;
}
@keyframes ProseMirror-cursor-blink {
to {
visibility: hidden;
}
}
.ProseMirror-hideselection *::selection {
background: transparent;
}
.ProseMirror-hideselection *::-moz-selection {
background: transparent;
}
.ProseMirror-hideselection * {
caret-color: transparent;
}
.ProseMirror-focused .ProseMirror-gapcursor {
display: block;
}
.tippy-box[data-animation=fade][data-state=hidden] {
opacity: 0
}`;function drn(e,t,n){const r=document.querySelector("style[data-tiptap-style]");if(r!==null)return r;const i=document.createElement("style");return t&&i.setAttribute("nonce",t),i.setAttribute("data-tiptap-style",""),i.innerHTML=e,document.getElementsByTagName("head")[0].appendChild(i),i}class frn extends Etn{constructor(t={}){super(),this.isFocused=!1,this.isInitialized=!1,this.extensionStorage={},this.options={element:document.createElement("div"),content:"",injectCSS:!0,injectNonce:void 0,extensions:[],autofocus:!1,editable:!0,editorProps:{},parseOptions:{},coreExtensionOptions:{},enableInputRules:!0,enablePasteRules:!0,enableCoreExtensions:!0,enableContentCheck:!1,onBeforeCreate:()=>null,onCreate:()=>null,onUpdate:()=>null,onSelectionUpdate:()=>null,onTransaction:()=>null,onFocus:()=>null,onBlur:()=>null,onDestroy:()=>null,onContentError:({error:n})=>{throw n},onPaste:()=>null,onDrop:()=>null},this.isCapturingTransaction=!1,this.capturedTransaction=null,this.setOptions(t),this.createExtensionManager(),this.createCommandManager(),this.createSchema(),this.on("beforeCreate",this.options.onBeforeCreate),this.emit("beforeCreate",{editor:this}),this.on("contentError",this.options.onContentError),this.createView(),this.injectCSS(),this.on("create",this.options.onCreate),this.on("update",this.options.onUpdate),this.on("selectionUpdate",this.options.onSelectionUpdate),this.on("transaction",this.options.onTransaction),this.on("focus",this.options.onFocus),this.on("blur",this.options.onBlur),this.on("destroy",this.options.onDestroy),this.on("drop",({event:n,slice:r,moved:i})=>this.options.onDrop(n,r,i)),this.on("paste",({event:n,slice:r})=>this.options.onPaste(n,r)),window.setTimeout(()=>{this.isDestroyed||(this.commands.focus(this.options.autofocus),this.emit("create",{editor:this}),this.isInitialized=!0)},0)}get storage(){return this.extensionStorage}get commands(){return this.commandManager.commands}chain(){return this.commandManager.chain()}can(){return this.commandManager.can()}injectCSS(){this.options.injectCSS&&document&&(this.css=drn(urn,this.options.injectNonce))}setOptions(t={}){this.options={...this.options,...t},!(!this.view||!this.state||this.isDestroyed)&&(this.options.editorProps&&this.view.setProps(this.options.editorProps),this.view.updateState(this.state))}setEditable(t,n=!0){this.setOptions({editable:t}),n&&this.emit("update",{editor:this,transaction:this.state.tr})}get isEditable(){return this.options.editable&&this.view&&this.view.editable}get state(){return this.view.state}registerPlugin(t,n){const r=n4e(n)?n(t,[...this.state.plugins]):[...this.state.plugins,t],i=this.state.reconfigure({plugins:r});return this.view.updateState(i),i}unregisterPlugin(t){if(this.isDestroyed)return;const n=this.state.plugins;let r=n;if([].concat(t).forEach(o=>{const a=typeof o=="string"?`${o}$`:o.key;r=n.filter(s=>!s.key.startsWith(a))}),n.length===r.length)return;const i=this.state.reconfigure({plugins:r});return this.view.updateState(i),i}createExtensionManager(){var t,n;const r=[...this.options.enableCoreExtensions?[irn,$tn.configure({blockSeparator:(n=(t=this.options.coreExtensionOptions)===null||t===void 0?void 0:t.clipboardTextSerializer)===null||n===void 0?void 0:n.blockSeparator}),nrn,orn,arn,lrn,rrn,srn].filter(i=>typeof this.options.enableCoreExtensions=="object"?this.options.enableCoreExtensions[i.name]!==!1:!0):[],...this.options.extensions].filter(i=>["extension","node","mark"].includes(i==null?void 0:i.type));this.extensionManager=new oy(r,this)}createCommandManager(){this.commandManager=new e9({editor:this})}createSchema(){this.schema=this.extensionManager.schema}createView(){var t;let n;try{n=Yz(this.options.content,this.schema,this.options.parseOptions,{errorOnInvalidContent:this.options.enableContentCheck})}catch(a){if(!(a instanceof Error)||!["[tiptap error]: Invalid JSON content","[tiptap error]: Invalid HTML content"].includes(a.message))throw a;this.emit("contentError",{editor:this,error:a,disableCollaboration:()=>{this.storage.collaboration&&(this.storage.collaboration.isDisabled=!0),this.options.extensions=this.options.extensions.filter(s=>s.name!=="collaboration"),this.createExtensionManager()}}),n=Yz(this.options.content,this.schema,this.options.parseOptions,{errorOnInvalidContent:!1})}const r=o4e(n,this.options.autofocus);this.view=new Hen(this.options.element,{...this.options.editorProps,attributes:{role:"textbox",...(t=this.options.editorProps)===null||t===void 0?void 0:t.attributes},dispatchTransaction:this.dispatchTransaction.bind(this),state:iy.create({doc:n,selection:r||void 0})});const i=this.state.reconfigure({plugins:this.extensionManager.plugins});this.view.updateState(i),this.createNodeViews(),this.prependClass();const o=this.view.dom;o.editor=this}createNodeViews(){this.view.isDestroyed||this.view.setProps({nodeViews:this.extensionManager.nodeViews})}prependClass(){this.view.dom.className=`tiptap ${this.view.dom.className}`}captureTransaction(t){this.isCapturingTransaction=!0,t(),this.isCapturingTransaction=!1;const n=this.capturedTransaction;return this.capturedTransaction=null,n}dispatchTransaction(t){if(this.view.isDestroyed)return;if(this.isCapturingTransaction){if(!this.capturedTransaction){this.capturedTransaction=t;return}t.steps.forEach(a=>{var s;return(s=this.capturedTransaction)===null||s===void 0?void 0:s.step(a)});return}const n=this.state.apply(t),r=!this.state.selection.eq(n.selection);this.emit("beforeTransaction",{editor:this,transaction:t,nextState:n}),this.view.updateState(n),this.emit("transaction",{editor:this,transaction:t}),r&&this.emit("selectionUpdate",{editor:this,transaction:t});const i=t.getMeta("focus"),o=t.getMeta("blur");i&&this.emit("focus",{editor:this,event:i.event,transaction:t}),o&&this.emit("blur",{editor:this,event:o.event,transaction:t}),!(!t.docChanged||t.getMeta("preventUpdate"))&&this.emit("update",{editor:this,transaction:t})}getAttributes(t){return c4e(this.state,t)}isActive(t,n){const r=typeof t=="string"?t:null,i=typeof t=="string"?n:t;return Dnn(this.state,r,i)}getJSON(){return this.state.doc.toJSON()}getHTML(){return qQ(this.state.doc.content,this.schema)}getText(t){const{blockSeparator:n=`
`,textSerializers:r={}}=t||{};return Ann(this.state.doc,{blockSeparator:n,textSerializers:{...r4e(this.schema),...r}})}get isEmpty(){return a9(this.state.doc)}getCharacterCount(){return console.warn('[tiptap warn]: "editor.getCharacterCount()" is deprecated. Please use "editor.storage.characterCount.characters()" instead.'),this.state.doc.content.size-2}destroy(){if(this.emit("destroy"),this.view){const t=this.view.dom;t&&t.editor&&delete t.editor,this.view.destroy()}this.removeAllListeners()}get isDestroyed(){var t;return!(!((t=this.view)===null||t===void 0)&&t.docView)}$node(t,n){var r;return((r=this.$doc)===null||r===void 0?void 0:r.querySelector(t,n))||null}$nodes(t,n){var r;return((r=this.$doc)===null||r===void 0?void 0:r.querySelectorAll(t,n))||null}$pos(t){const n=this.state.doc.resolve(t);return new crn(n,this)}get $doc(){return this.$pos(0)}}function r0(e){return new uO({find:e.find,handler:({state:t,range:n,match:r})=>{const i=Ar(e.getAttributes,void 0,r);if(i===!1||i===null)return null;const{tr:o}=t,a=r[r.length-1],s=r[0];if(a){const l=s.search(/\S/),c=n.from+s.indexOf(a),u=c+a.length;if(JQ(n.from,n.to,t.doc).filter(f=>f.mark.type.excluded.find(h=>h===e.type&&h!==f.mark.type)).filter(f=>f.to>c).length)return null;u<n.to&&o.delete(u,n.to),c>n.from&&o.delete(n.from+l,c);const d=n.from+l+a.length;o.addMark(n.from+l,d,e.type.create(i||{})),o.removeStoredMark(e.type)}}})}function eX(e){return new uO({find:e.find,handler:({state:t,range:n,match:r})=>{const i=Ar(e.getAttributes,void 0,r)||{},{tr:o}=t,a=n.from;let s=n.to;const l=e.type.create(i);if(r[1]){const c=r[0].lastIndexOf(r[1]);let u=a+c;u>s?u=s:s=u+r[1].length;const d=r[0][r[0].length-1];o.insertText(d,a+r[0].length-1),o.replaceWith(u,s,l)}else if(r[0]){const c=e.type.isInline?a:a-1;o.insert(c,e.type.create(i)).delete(o.mapping.map(a),o.mapping.map(s))}o.scrollIntoView()}})}function Xz(e){return new uO({find:e.find,handler:({state:t,range:n,match:r})=>{const i=t.doc.resolve(n.from),o=Ar(e.getAttributes,void 0,r)||{};if(!i.node(-1).canReplaceWith(i.index(-1),i.indexAfter(-1),e.type))return null;t.tr.delete(n.from,n.to).setBlockType(n.from,n.from,e.type,o)}})}function i0(e){return new uO({find:e.find,handler:({state:t,range:n,match:r,chain:i})=>{const o=Ar(e.getAttributes,void 0,r)||{},a=t.tr.delete(n.from,n.to),s=a.doc.resolve(n.from).blockRange(),l=s&&kQ(s,e.type,o);if(!l)return null;if(a.wrap(s,l),e.keepMarks&&e.editor){const{selection:u,storedMarks:d}=t,{splittableMarks:f}=e.editor.extensionManager,h=d||u.$to.parentOffset&&u.$from.marks();if(h){const m=h.filter(g=>f.includes(g.type.name));a.ensureMarks(m)}}if(e.keepAttributes){const u=e.type.name==="bulletList"||e.type.name==="orderedList"?"listItem":"taskList";i().updateAttributes(u,o).run()}const c=a.doc.resolve(n.from-1).nodeBefore;c&&c.type===e.type&&$g(a.doc,n.from-1)&&(!e.joinPredicate||e.joinPredicate(r,c))&&a.join(n.from-1)}})}let Eo=class Zz{constructor(t={}){this.type="node",this.name="node",this.parent=null,this.child=null,this.config={name:this.name,defaultOptions:{}},this.config={...this.config,...t},this.name=this.config.name,t.defaultOptions&&Object.keys(t.defaultOptions).length>0&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${this.name}".`),this.options=this.config.defaultOptions,this.config.addOptions&&(this.options=Ar(Wn(this,"addOptions",{name:this.name}))),this.storage=Ar(Wn(this,"addStorage",{name:this.name,options:this.options}))||{}}static create(t={}){return new Zz(t)}configure(t={}){const n=this.extend({...this.config,addOptions:()=>n9(this.options,t)});return n.name=this.name,n.parent=this.parent,n}extend(t={}){const n=new Zz(t);return n.parent=this,this.child=n,n.name=t.name?t.name:n.parent.name,t.defaultOptions&&Object.keys(t.defaultOptions).length>0&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${n.name}".`),n.options=Ar(Wn(n,"addOptions",{name:n.name})),n.storage=Ar(Wn(n,"addStorage",{name:n.name,options:n.options})),n}};function _g(e){return new Ntn({find:e.find,handler:({state:t,range:n,match:r,pasteEvent:i})=>{const o=Ar(e.getAttributes,void 0,r,i);if(o===!1||o===null)return null;const{tr:a}=t,s=r[r.length-1],l=r[0];let c=n.to;if(s){const u=l.search(/\S/),d=n.from+l.indexOf(s),f=d+s.length;if(JQ(n.from,n.to,t.doc).filter(h=>h.mark.type.excluded.find(m=>m===e.type&&m!==h.mark.type)).filter(h=>h.to>d).length)return null;f<n.to&&a.delete(f,n.to),d>n.from&&a.delete(n.from+u,d),c=n.from+u+s.length,a.addMark(n.from+u,c,e.type.create(o||{})),a.removeStoredMark(e.type)}}})}function prn(e){return e.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&")}class ei extends HTMLElement{constructor(){super(),nn(this,"template",""),nn(this,"editor"),nn(this,"options")}registerClickListener(){this.addEventListener("click",()=>{var t;const n=(t=this.editor)==null?void 0:t.chain();this.onClick(n),n==null||n.run()})}connectedCallback(){this.innerHTML=this.template}onClick(t){}onCreate(t,n){this.editor=t.editor,this.options=n}onTransaction(t){const n=this.querySelector("div");n&&(this.onActive(t.editor)?n.classList.add("active"):n.classList.remove("active"))}onActive(t){return!1}onEditableChange(t){t?(this.style.pointerEvents="",this.style.opacity=""):(this.style.pointerEvents="none",this.style.opacity="0.5")}}class d4e extends ei{constructor(){super(),this.template=`
<div>
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M5.82843 6.99955L8.36396 9.53509L6.94975 10.9493L2 5.99955L6.94975 1.0498L8.36396 2.46402L5.82843 4.99955H13C17.4183 4.99955 21 8.58127 21 12.9996C21 17.4178 17.4183 20.9996 13 20.9996H4V18.9996H13C16.3137 18.9996 19 16.3133 19 12.9996C19 9.68584 16.3137 6.99955 13 6.99955H5.82843Z"></path></svg>
</div>
`,this.registerClickListener()}onClick(t){t.undo()}}class hrn extends ei{constructor(){super(),this.template=`
<div>
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M18.1716 6.99955H11C7.68629 6.99955 5 9.68584 5 12.9996C5 16.3133 7.68629 18.9996 11 18.9996H20V20.9996H11C6.58172 20.9996 3 17.4178 3 12.9996C3 8.58127 6.58172 4.99955 11 4.99955H18.1716L15.636 2.46402L17.0503 1.0498L22 5.99955L17.0503 10.9493L15.636 9.53509L18.1716 6.99955Z"></path></svg>
</div>
`,this.registerClickListener()}onClick(t){t.redo()}}var Al="top",Su="bottom",Eu="right",Nl="left",tX="auto",dO=[Al,Su,Eu,Nl],G_="start",lx="end",mrn="clippingParents",f4e="viewport",tC="popper",grn="reference",ode=dO.reduce(function(e,t){return e.concat([t+"-"+G_,t+"-"+lx])},[]),p4e=[].concat(dO,[tX]).reduce(function(e,t){return e.concat([t,t+"-"+G_,t+"-"+lx])},[]),vrn="beforeRead",brn="read",yrn="afterRead",_rn="beforeMain",Srn="main",Ern="afterMain",Crn="beforeWrite",wrn="write",Trn="afterWrite",xrn=[vrn,brn,yrn,_rn,Srn,Ern,Crn,wrn,Trn];function zf(e){return e?(e.nodeName||"").toLowerCase():null}function wc(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function o0(e){var t=wc(e).Element;return e instanceof t||e instanceof Element}function uu(e){var t=wc(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function nX(e){if(typeof ShadowRoot>"u")return!1;var t=wc(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function Orn(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];!uu(o)||!zf(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 Rrn(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},{});!uu(i)||!zf(i)||(Object.assign(i.style,s),Object.keys(o).forEach(function(l){i.removeAttribute(l)}))})}}const h4e={name:"applyStyles",enabled:!0,phase:"write",fn:Orn,effect:Rrn,requires:["computeStyles"]};function Pf(e){return e.split("-")[0]}var Ev=Math.max,Kk=Math.min,W_=Math.round;function Jz(){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 m4e(){return!/^((?!chrome|android).)*safari/i.test(Jz())}function q_(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),i=1,o=1;t&&uu(e)&&(i=e.offsetWidth>0&&W_(r.width)/e.offsetWidth||1,o=e.offsetHeight>0&&W_(r.height)/e.offsetHeight||1);var a=o0(e)?wc(e):window,s=a.visualViewport,l=!m4e()&&n,c=(r.left+(l&&s?s.offsetLeft:0))/i,u=(r.top+(l&&s?s.offsetTop:0))/o,d=r.width/i,f=r.height/o;return{width:d,height:f,top:u,right:c+d,bottom:u+f,left:c,x:c,y:u}}function rX(e){var t=q_(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 g4e(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&nX(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function hh(e){return wc(e).getComputedStyle(e)}function Irn(e){return["table","td","th"].indexOf(zf(e))>=0}function Bg(e){return((o0(e)?e.ownerDocument:e.document)||window.document).documentElement}function s9(e){return zf(e)==="html"?e:e.assignedSlot||e.parentNode||(nX(e)?e.host:null)||Bg(e)}function ade(e){return!uu(e)||hh(e).position==="fixed"?null:e.offsetParent}function Arn(e){var t=/firefox/i.test(Jz()),n=/Trident/i.test(Jz());if(n&&uu(e)){var r=hh(e);if(r.position==="fixed")return null}var i=s9(e);for(nX(i)&&(i=i.host);uu(i)&&["html","body"].indexOf(zf(i))<0;){var o=hh(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 fO(e){for(var t=wc(e),n=ade(e);n&&Irn(n)&&hh(n).position==="static";)n=ade(n);return n&&(zf(n)==="html"||zf(n)==="body"&&hh(n).position==="static")?t:n||Arn(e)||t}function iX(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Tw(e,t,n){return Ev(e,Kk(t,n))}function Nrn(e,t,n){var r=Tw(e,t,n);return r>n?n:r}function v4e(){return{top:0,right:0,bottom:0,left:0}}function b4e(e){return Object.assign({},v4e(),e)}function y4e(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var Mrn=function(e,t){return e=typeof e=="function"?e(Object.assign({},t.rects,{placement:t.placement})):e,b4e(typeof e!="number"?e:y4e(e,dO))};function krn(e){var t,n=e.state,r=e.name,i=e.options,o=n.elements.arrow,a=n.modifiersData.popperOffsets,s=Pf(n.placement),l=iX(s),c=[Nl,Eu].indexOf(s)>=0,u=c?"height":"width";if(!(!o||!a)){var d=Mrn(i.padding,n),f=rX(o),h=l==="y"?Al:Nl,m=l==="y"?Su:Eu,g=n.rects.reference[u]+n.rects.reference[l]-a[l]-n.rects.popper[u],v=a[l]-n.rects.reference[l],y=fO(o),b=y?l==="y"?y.clientHeight||0:y.clientWidth||0:0,_=g/2-v/2,E=d[h],w=b-f[u]-d[m],S=b/2-f[u]/2+_,C=Tw(E,S,w),T=l;n.modifiersData[r]=(t={},t[T]=C,t.centerOffset=C-S,t)}}function Prn(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)||g4e(t.elements.popper,i)&&(t.elements.arrow=i))}const Drn={name:"arrow",enabled:!0,phase:"main",fn:krn,effect:Prn,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Y_(e){return e.split("-")[1]}var Lrn={top:"auto",right:"auto",bottom:"auto",left:"auto"};function $rn(e,t){var n=e.x,r=e.y,i=t.devicePixelRatio||1;return{x:W_(n*i)/i||0,y:W_(r*i)/i||0}}function sde(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,f=a.x,h=f===void 0?0:f,m=a.y,g=m===void 0?0:m,v=typeof u=="function"?u({x:h,y:g}):{x:h,y:g};h=v.x,g=v.y;var y=a.hasOwnProperty("x"),b=a.hasOwnProperty("y"),_=Nl,E=Al,w=window;if(c){var S=fO(n),C="clientHeight",T="clientWidth";if(S===wc(n)&&(S=Bg(n),hh(S).position!=="static"&&s==="absolute"&&(C="scrollHeight",T="scrollWidth")),S=S,i===Al||(i===Nl||i===Eu)&&o===lx){E=Su;var x=d&&S===w&&w.visualViewport?w.visualViewport.height:S[C];g-=x-r.height,g*=l?1:-1}if(i===Nl||(i===Al||i===Su)&&o===lx){_=Eu;var O=d&&S===w&&w.visualViewport?w.visualViewport.width:S[T];h-=O-r.width,h*=l?1:-1}}var N=Object.assign({position:s},c&&Lrn),I=u===!0?$rn({x:h,y:g},wc(n)):{x:h,y:g};if(h=I.x,g=I.y,l){var M;return Object.assign({},N,(M={},M[E]=b?"0":"",M[_]=y?"0":"",M.transform=(w.devicePixelRatio||1)<=1?"translate("+h+"px, "+g+"px)":"translate3d("+h+"px, "+g+"px, 0)",M))}return Object.assign({},N,(t={},t[E]=b?g+"px":"",t[_]=y?h+"px":"",t.transform="",t))}function Frn(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:Pf(t.placement),variation:Y_(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,sde(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,sde(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 Brn={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Frn,data:{}};var aI={passive:!0};function jrn(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=wc(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&c.forEach(function(u){u.addEventListener("scroll",n.update,aI)}),s&&l.addEventListener("resize",n.update,aI),function(){o&&c.forEach(function(u){u.removeEventListener("scroll",n.update,aI)}),s&&l.removeEventListener("resize",n.update,aI)}}const Hrn={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:jrn,data:{}};var Urn={left:"right",right:"left",bottom:"top",top:"bottom"};function dN(e){return e.replace(/left|right|bottom|top/g,function(t){return Urn[t]})}var zrn={start:"end",end:"start"};function lde(e){return e.replace(/start|end/g,function(t){return zrn[t]})}function oX(e){var t=wc(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function aX(e){return q_(Bg(e)).left+oX(e).scrollLeft}function Vrn(e,t){var n=wc(e),r=Bg(e),i=n.visualViewport,o=r.clientWidth,a=r.clientHeight,s=0,l=0;if(i){o=i.width,a=i.height;var c=m4e();(c||!c&&t==="fixed")&&(s=i.offsetLeft,l=i.offsetTop)}return{width:o,height:a,x:s+aX(e),y:l}}function Grn(e){var t,n=Bg(e),r=oX(e),i=(t=e.ownerDocument)==null?void 0:t.body,o=Ev(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),a=Ev(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),s=-r.scrollLeft+aX(e),l=-r.scrollTop;return hh(i||n).direction==="rtl"&&(s+=Ev(n.clientWidth,i?i.clientWidth:0)-o),{width:o,height:a,x:s,y:l}}function sX(e){var t=hh(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function _4e(e){return["html","body","#document"].indexOf(zf(e))>=0?e.ownerDocument.body:uu(e)&&sX(e)?e:_4e(s9(e))}function xw(e,t){var n;t===void 0&&(t=[]);var r=_4e(e),i=r===((n=e.ownerDocument)==null?void 0:n.body),o=wc(r),a=i?[o].concat(o.visualViewport||[],sX(r)?r:[]):r,s=t.concat(a);return i?s:s.concat(xw(s9(a)))}function eV(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Wrn(e,t){var n=q_(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 cde(e,t,n){return t===f4e?eV(Vrn(e,n)):o0(t)?Wrn(t,n):eV(Grn(Bg(e)))}function qrn(e){var t=xw(s9(e)),n=["absolute","fixed"].indexOf(hh(e).position)>=0,r=n&&uu(e)?fO(e):e;return o0(r)?t.filter(function(i){return o0(i)&&g4e(i,r)&&zf(i)!=="body"}):[]}function Yrn(e,t,n,r){var i=t==="clippingParents"?qrn(e):[].concat(t),o=[].concat(i,[n]),a=o[0],s=o.reduce(function(l,c){var u=cde(e,c,r);return l.top=Ev(u.top,l.top),l.right=Kk(u.right,l.right),l.bottom=Kk(u.bottom,l.bottom),l.left=Ev(u.left,l.left),l},cde(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 S4e(e){var t=e.reference,n=e.element,r=e.placement,i=r?Pf(r):null,o=r?Y_(r):null,a=t.x+t.width/2-n.width/2,s=t.y+t.height/2-n.height/2,l;switch(i){case Al:l={x:a,y:t.y-n.height};break;case Su:l={x:a,y:t.y+t.height};break;case Eu:l={x:t.x+t.width,y:s};break;case Nl:l={x:t.x-n.width,y:s};break;default:l={x:t.x,y:t.y}}var c=i?iX(i):null;if(c!=null){var u=c==="y"?"height":"width";switch(o){case G_:l[c]=l[c]-(t[u]/2-n[u]/2);break;case lx:l[c]=l[c]+(t[u]/2-n[u]/2);break}}return l}function cx(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?mrn:s,c=n.rootBoundary,u=c===void 0?f4e:c,d=n.elementContext,f=d===void 0?tC:d,h=n.altBoundary,m=h===void 0?!1:h,g=n.padding,v=g===void 0?0:g,y=b4e(typeof v!="number"?v:y4e(v,dO)),b=f===tC?grn:tC,_=e.rects.popper,E=e.elements[m?b:f],w=Yrn(o0(E)?E:E.contextElement||Bg(e.elements.popper),l,u,a),S=q_(e.elements.reference),C=S4e({reference:S,element:_,strategy:"absolute",placement:i}),T=eV(Object.assign({},_,C)),x=f===tC?T:S,O={top:w.top-x.top+y.top,bottom:x.bottom-w.bottom+y.bottom,left:w.left-x.left+y.left,right:x.right-w.right+y.right},N=e.modifiersData.offset;if(f===tC&&N){var I=N[i];Object.keys(O).forEach(function(M){var F=[Eu,Su].indexOf(M)>=0?1:-1,k=[Al,Su].indexOf(M)>=0?"y":"x";O[M]+=I[k]*F})}return O}function Krn(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?p4e:l,u=Y_(r),d=u?s?ode:ode.filter(function(m){return Y_(m)===u}):dO,f=d.filter(function(m){return c.indexOf(m)>=0});f.length===0&&(f=d);var h=f.reduce(function(m,g){return m[g]=cx(e,{placement:g,boundary:i,rootBoundary:o,padding:a})[Pf(g)],m},{});return Object.keys(h).sort(function(m,g){return h[m]-h[g]})}function Qrn(e){if(Pf(e)===tX)return[];var t=dN(e);return[lde(e),t,lde(t)]}function Xrn(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,f=n.altBoundary,h=n.flipVariations,m=h===void 0?!0:h,g=n.allowedAutoPlacements,v=t.options.placement,y=Pf(v),b=y===v,_=l||(b||!m?[dN(v)]:Qrn(v)),E=[v].concat(_).reduce(function(J,te){return J.concat(Pf(te)===tX?Krn(t,{placement:te,boundary:u,rootBoundary:d,padding:c,flipVariations:m,allowedAutoPlacements:g}):te)},[]),w=t.rects.reference,S=t.rects.popper,C=new Map,T=!0,x=E[0],O=0;O<E.length;O++){var N=E[O],I=Pf(N),M=Y_(N)===G_,F=[Al,Su].indexOf(I)>=0,k=F?"width":"height",B=cx(t,{placement:N,boundary:u,rootBoundary:d,altBoundary:f,padding:c}),A=F?M?Eu:Nl:M?Su:Al;w[k]>S[k]&&(A=dN(A));var P=dN(A),z=[];if(o&&z.push(B[I]<=0),s&&z.push(B[A]<=0,B[P]<=0),z.every(function(J){return J})){x=N,T=!1;break}C.set(N,z)}if(T)for(var L=m?3:1,V=function(J){var te=E.find(function(ae){var K=C.get(ae);if(K)return K.slice(0,J).every(function(Q){return Q})});if(te)return x=te,"break"},j=L;j>0;j--){var U=V(j);if(U==="break")break}t.placement!==x&&(t.modifiersData[r]._skip=!0,t.placement=x,t.reset=!0)}}const Zrn={name:"flip",enabled:!0,phase:"main",fn:Xrn,requiresIfExists:["offset"],data:{_skip:!1}};function ude(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 dde(e){return[Al,Eu,Su,Nl].some(function(t){return e[t]>=0})}function Jrn(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,o=t.modifiersData.preventOverflow,a=cx(t,{elementContext:"reference"}),s=cx(t,{altBoundary:!0}),l=ude(a,r),c=ude(s,i,o),u=dde(l),d=dde(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 ein={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Jrn};function tin(e,t,n){var r=Pf(e),i=[Nl,Al].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,[Nl,Eu].indexOf(r)>=0?{x:s,y:a}:{x:a,y:s}}function nin(e){var t=e.state,n=e.options,r=e.name,i=n.offset,o=i===void 0?[0,0]:i,a=p4e.reduce(function(u,d){return u[d]=tin(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 rin={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:nin};function iin(e){var t=e.state,n=e.name;t.modifiersData[n]=S4e({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const oin={name:"popperOffsets",enabled:!0,phase:"read",fn:iin,data:{}};function ain(e){return e==="x"?"y":"x"}function sin(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,f=n.tether,h=f===void 0?!0:f,m=n.tetherOffset,g=m===void 0?0:m,v=cx(t,{boundary:l,rootBoundary:c,padding:d,altBoundary:u}),y=Pf(t.placement),b=Y_(t.placement),_=!b,E=iX(y),w=ain(E),S=t.modifiersData.popperOffsets,C=t.rects.reference,T=t.rects.popper,x=typeof g=="function"?g(Object.assign({},t.rects,{placement:t.placement})):g,O=typeof x=="number"?{mainAxis:x,altAxis:x}:Object.assign({mainAxis:0,altAxis:0},x),N=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,I={x:0,y:0};if(S){if(o){var M,F=E==="y"?Al:Nl,k=E==="y"?Su:Eu,B=E==="y"?"height":"width",A=S[E],P=A+v[F],z=A-v[k],L=h?-T[B]/2:0,V=b===G_?C[B]:T[B],j=b===G_?-T[B]:-C[B],U=t.elements.arrow,J=h&&U?rX(U):{width:0,height:0},te=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:v4e(),ae=te[F],K=te[k],Q=Tw(0,C[B],J[B]),oe=_?C[B]/2-L-Q-ae-O.mainAxis:V-Q-ae-O.mainAxis,ge=_?-C[B]/2+L+Q+K+O.mainAxis:j+Q+K+O.mainAxis,fe=t.elements.arrow&&fO(t.elements.arrow),ue=fe?E==="y"?fe.clientTop||0:fe.clientLeft||0:0,le=(M=N==null?void 0:N[E])!=null?M:0,ve=A+oe-le-ue,ne=A+ge-le,pe=Tw(h?Kk(P,ve):P,A,h?Ev(z,ne):z);S[E]=pe,I[E]=pe-A}if(s){var be,Re=E==="x"?Al:Nl,Se=E==="x"?Su:Eu,Ce=S[w],ye=w==="y"?"height":"width",he=Ce+v[Re],_e=Ce-v[Se],Oe=[Al,Nl].indexOf(y)!==-1,De=(be=N==null?void 0:N[w])!=null?be:0,Y=Oe?he:Ce-C[ye]-T[ye]-De+O.altAxis,D=Oe?Ce+C[ye]+T[ye]-De-O.altAxis:_e,G=h&&Oe?Nrn(Y,Ce,D):Tw(h?Y:he,Ce,h?D:_e);S[w]=G,I[w]=G-Ce}t.modifiersData[r]=I}}const lin={name:"preventOverflow",enabled:!0,phase:"main",fn:sin,requiresIfExists:["offset"]};function cin(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function uin(e){return e===wc(e)||!uu(e)?oX(e):cin(e)}function din(e){var t=e.getBoundingClientRect(),n=W_(t.width)/e.offsetWidth||1,r=W_(t.height)/e.offsetHeight||1;return n!==1||r!==1}function fin(e,t,n){n===void 0&&(n=!1);var r=uu(t),i=uu(t)&&din(t),o=Bg(t),a=q_(e,i,n),s={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&((zf(t)!=="body"||sX(o))&&(s=uin(t)),uu(t)?(l=q_(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):o&&(l.x=aX(o))),{x:a.left+s.scrollLeft-l.x,y:a.top+s.scrollTop-l.y,width:a.width,height:a.height}}function pin(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 hin(e){var t=pin(e);return xrn.reduce(function(n,r){return n.concat(t.filter(function(i){return i.phase===r}))},[])}function min(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function gin(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 fde={placement:"bottom",modifiers:[],strategy:"absolute"};function pde(){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 vin(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,i=t.defaultOptions,o=i===void 0?fde:i;return function(a,s,l){l===void 0&&(l=o);var c={placement:"bottom",orderedModifiers:[],options:Object.assign({},fde,o),modifiersData:{},elements:{reference:a,popper:s},attributes:{},styles:{}},u=[],d=!1,f={state:c,setOptions:function(g){var v=typeof g=="function"?g(c.options):g;m(),c.options=Object.assign({},o,c.options,v),c.scrollParents={reference:o0(a)?xw(a):a.contextElement?xw(a.contextElement):[],popper:xw(s)};var y=hin(gin([].concat(r,c.options.modifiers)));return c.orderedModifiers=y.filter(function(b){return b.enabled}),h(),f.update()},forceUpdate:function(){if(!d){var g=c.elements,v=g.reference,y=g.popper;if(pde(v,y)){c.rects={reference:fin(v,fO(y),c.options.strategy==="fixed"),popper:rX(y)},c.reset=!1,c.placement=c.options.placement,c.orderedModifiers.forEach(function(T){return c.modifiersData[T.name]=Object.assign({},T.data)});for(var b=0;b<c.orderedModifiers.length;b++){if(c.reset===!0){c.reset=!1,b=-1;continue}var _=c.orderedModifiers[b],E=_.fn,w=_.options,S=w===void 0?{}:w,C=_.name;typeof E=="function"&&(c=E({state:c,options:S,name:C,instance:f})||c)}}}},update:min(function(){return new Promise(function(g){f.forceUpdate(),g(c)})}),destroy:function(){m(),d=!0}};if(!pde(a,s))return f;f.setOptions(l).then(function(g){!d&&l.onFirstUpdate&&l.onFirstUpdate(g)});function h(){c.orderedModifiers.forEach(function(g){var v=g.name,y=g.options,b=y===void 0?{}:y,_=g.effect;if(typeof _=="function"){var E=_({state:c,name:v,instance:f,options:b}),w=function(){};u.push(E||w)}})}function m(){u.forEach(function(g){return g()}),u=[]}return f}}var bin=[Hrn,oin,Brn,h4e,rin,Zrn,lin,Drn,ein],yin=vin({defaultModifiers:bin}),Wc={},_in="tippy-box",E4e="tippy-content",Sin="tippy-backdrop",C4e="tippy-arrow",w4e="tippy-svg-arrow",b1={passive:!0,capture:!0},T4e=function(){return document.body};function Ein(e,t){return{}.hasOwnProperty.call(e,t)}function E6(e,t,n){if(Array.isArray(e)){var r=e[t];return r??(Array.isArray(n)?n[t]:n)}return e}function lX(e,t){var n={}.toString.call(e);return n.indexOf("[object")===0&&n.indexOf(t+"]")>-1}function x4e(e,t){return typeof e=="function"?e.apply(void 0,t):e}function hde(e,t){if(t===0)return e;var n;return function(r){clearTimeout(n),n=setTimeout(function(){e(r)},t)}}function Cin(e,t){var n=Object.assign({},e);return t.forEach(function(r){delete n[r]}),n}function win(e){return e.split(/\s+/).filter(Boolean)}function Nb(e){return[].concat(e)}function mde(e,t){e.indexOf(t)===-1&&e.push(t)}function Tin(e){return e.filter(function(t,n){return e.indexOf(t)===n})}function xin(e){return e.split("-")[0]}function Qk(e){return[].slice.call(e)}function gde(e){return Object.keys(e).reduce(function(t,n){return e[n]!==void 0&&(t[n]=e[n]),t},{})}function Ow(){return document.createElement("div")}function ux(e){return["Element","Fragment"].some(function(t){return lX(e,t)})}function Oin(e){return lX(e,"NodeList")}function Rin(e){return lX(e,"MouseEvent")}function Iin(e){return!!(e&&e._tippy&&e._tippy.reference===e)}function Ain(e){return ux(e)?[e]:Oin(e)?Qk(e):Array.isArray(e)?e:Qk(document.querySelectorAll(e))}function C6(e,t){e.forEach(function(n){n&&(n.style.transitionDuration=t+"ms")})}function vde(e,t){e.forEach(function(n){n&&n.setAttribute("data-state",t)})}function Nin(e){var t,n=Nb(e),r=n[0];return r!=null&&(t=r.ownerDocument)!=null&&t.body?r.ownerDocument:document}function Min(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=xin(a.placement),u=a.modifiersData.offset;if(!u)return!0;var d=c==="bottom"?u.top.y:0,f=c==="top"?u.bottom.y:0,h=c==="right"?u.left.x:0,m=c==="left"?u.right.x:0,g=o.top-r+d>l,v=r-o.bottom-f>l,y=o.left-n+h>l,b=n-o.right-m>l;return g||v||y||b})}function w6(e,t,n){var r=t+"EventListener";["transitionend","webkitTransitionEnd"].forEach(function(i){e[r](i,n)})}function bde(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 pf={isTouch:!1},yde=0;function kin(){pf.isTouch||(pf.isTouch=!0,window.performance&&document.addEventListener("mousemove",O4e))}function O4e(){var e=performance.now();e-yde<20&&(pf.isTouch=!1,document.removeEventListener("mousemove",O4e)),yde=e}function Pin(){var e=document.activeElement;if(Iin(e)){var t=e._tippy;e.blur&&!t.state.isVisible&&e.blur()}}function Din(){document.addEventListener("touchstart",kin,b1),window.addEventListener("blur",Pin)}var Lin=typeof window<"u"&&typeof document<"u",$in=Lin?!!window.msCrypto:!1;function hb(e){var t=e==="destroy"?"n already-":" ";return[e+"() was called on a"+t+"destroyed instance. This is a no-op but","indicates a potential memory leak."].join(" ")}function _de(e){var t=/[ \t]{2,}/g,n=/^[ \t]*/gm;return e.replace(t," ").replace(n,"").trim()}function Fin(e){return _de(`
%ctippy.js
%c`+_de(e)+`
%c👷 This is a development-only message. It will be removed in production.
`)}function R4e(e){return[Fin(e),"color: #00C584; font-size: 1.3em; font-weight: bold;","line-height: 1.5","color: #a6a095;"]}var dx;Wc.NODE_ENV!=="production"&&Bin();function Bin(){dx=new Set}function Mp(e,t){if(e&&!dx.has(t)){var n;dx.add(t),(n=console).warn.apply(n,R4e(t))}}function tV(e,t){if(e&&!dx.has(t)){var n;dx.add(t),(n=console).error.apply(n,R4e(t))}}function jin(e){var t=!e,n=Object.prototype.toString.call(e)==="[object Object]"&&!e.addEventListener;tV(t,["tippy() was passed","`"+String(e)+"`","as its targets (first) argument. Valid types are: String, Element,","Element[], or NodeList."].join(" ")),tV(n,["tippy() was passed a plain object which is not supported as an argument","for virtual positioning. Use props.getReferenceClientRect instead."].join(" "))}var I4e={animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},Hin={allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999},uc=Object.assign({appendTo:T4e,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},I4e,Hin),Uin=Object.keys(uc),zin=function(e){Wc.NODE_ENV!=="production"&&N4e(e,[]);var t=Object.keys(e);t.forEach(function(n){uc[n]=e[n]})};function A4e(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=uc[o])!=null?s:a}return r},{});return Object.assign({},e,n)}function Vin(e,t){var n=t?Object.keys(A4e(Object.assign({},uc,{plugins:t}))):Uin,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 Sde(e,t){var n=Object.assign({},t,{content:x4e(t.content,[e])},t.ignoreAttributes?{}:Vin(e,t.plugins));return n.aria=Object.assign({},uc.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}function N4e(e,t){e===void 0&&(e={}),t===void 0&&(t=[]);var n=Object.keys(e);n.forEach(function(r){var i=Cin(uc,Object.keys(I4e)),o=!Ein(i,r);o&&(o=t.filter(function(a){return a.name===r}).length===0),Mp(o,["`"+r+"`","is not a valid prop. You may have spelled it incorrectly, or if it's","a plugin, forgot to pass it in an array as props.plugins.",`
`,`All props: https://atomiks.github.io/tippyjs/v6/all-props/
`,"Plugins: https://atomiks.github.io/tippyjs/v6/plugins/"].join(" "))})}var Gin=function(){return"innerHTML"};function nV(e,t){e[Gin()]=t}function Ede(e){var t=Ow();return e===!0?t.className=C4e:(t.className=w4e,ux(e)?t.appendChild(e):nV(t,e)),t}function Cde(e,t){ux(t.content)?(nV(e,""),e.appendChild(t.content)):typeof t.content!="function"&&(t.allowHTML?nV(e,t.content):e.textContent=t.content)}function rV(e){var t=e.firstElementChild,n=Qk(t.children);return{box:t,content:n.find(function(r){return r.classList.contains(E4e)}),arrow:n.find(function(r){return r.classList.contains(C4e)||r.classList.contains(w4e)}),backdrop:n.find(function(r){return r.classList.contains(Sin)})}}function M4e(e){var t=Ow(),n=Ow();n.className=_in,n.setAttribute("data-state","hidden"),n.setAttribute("tabindex","-1");var r=Ow();r.className=E4e,r.setAttribute("data-state","hidden"),Cde(r,e.props),t.appendChild(n),n.appendChild(r),i(e.props,e.props);function i(o,a){var s=rV(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)&&Cde(c,e.props),a.arrow?u?o.arrow!==a.arrow&&(l.removeChild(u),l.appendChild(Ede(a.arrow))):l.appendChild(Ede(a.arrow)):u&&l.removeChild(u)}return{popper:t,onUpdate:i}}M4e.$$tippy=!0;var Win=1,sI=[],T6=[];function qin(e,t){var n=Sde(e,Object.assign({},uc,A4e(gde(t)))),r,i,o,a=!1,s=!1,l=!1,c=!1,u,d,f,h=[],m=hde(ve,n.interactiveDebounce),g,v=Win++,y=null,b=Tin(n.plugins),_={isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},E={id:v,reference:e,popper:Ow(),popperInstance:y,props:n,state:_,plugins:b,clearDelayTimeouts:Y,setProps:D,setContent:G,show:ie,hide:me,hideWithInteractivity:se,enable:Oe,disable:De,unmount:Be,destroy:Ve};if(!n.render)return Wc.NODE_ENV!=="production"&&tV(!0,"render() function has not been supplied."),E;var w=n.render(E),S=w.popper,C=w.onUpdate;S.setAttribute("data-tippy-root",""),S.id="tippy-"+E.id,E.popper=S,e._tippy=E,S._tippy=E;var T=b.map(function(re){return re.fn(E)}),x=e.hasAttribute("aria-expanded");return fe(),L(),A(),P("onCreate",[E]),n.showOnCreate&&he(),S.addEventListener("mouseenter",function(){E.props.interactive&&E.state.isVisible&&E.clearDelayTimeouts()}),S.addEventListener("mouseleave",function(){E.props.interactive&&E.props.trigger.indexOf("mouseenter")>=0&&F().addEventListener("mousemove",m)}),E;function O(){var re=E.props.touch;return Array.isArray(re)?re:[re,0]}function N(){return O()[0]==="hold"}function I(){var re;return!!((re=E.props.render)!=null&&re.$$tippy)}function M(){return g||e}function F(){var re=M().parentNode;return re?Nin(re):document}function k(){return rV(S)}function B(re){return E.state.isMounted&&!E.state.isVisible||pf.isTouch||u&&u.type==="focus"?0:E6(E.props.delay,re?0:1,uc.delay)}function A(re){re===void 0&&(re=!1),S.style.pointerEvents=E.props.interactive&&!re?"":"none",S.style.zIndex=""+E.props.zIndex}function P(re,Me,je){if(je===void 0&&(je=!0),T.forEach(function(Ge){Ge[re]&&Ge[re].apply(Ge,Me)}),je){var ke;(ke=E.props)[re].apply(ke,Me)}}function z(){var re=E.props.aria;if(re.content){var Me="aria-"+re.content,je=S.id,ke=Nb(E.props.triggerTarget||e);ke.forEach(function(Ge){var Ue=Ge.getAttribute(Me);if(E.state.isVisible)Ge.setAttribute(Me,Ue?Ue+" "+je:je);else{var qe=Ue&&Ue.replace(je,"").trim();qe?Ge.setAttribute(Me,qe):Ge.removeAttribute(Me)}})}}function L(){if(!(x||!E.props.aria.expanded)){var re=Nb(E.props.triggerTarget||e);re.forEach(function(Me){E.props.interactive?Me.setAttribute("aria-expanded",E.state.isVisible&&Me===M()?"true":"false"):Me.removeAttribute("aria-expanded")})}}function V(){F().removeEventListener("mousemove",m),sI=sI.filter(function(re){return re!==m})}function j(re){if(!(pf.isTouch&&(l||re.type==="mousedown"))){var Me=re.composedPath&&re.composedPath()[0]||re.target;if(!(E.props.interactive&&bde(S,Me))){if(Nb(E.props.triggerTarget||e).some(function(je){return bde(je,Me)})){if(pf.isTouch||E.state.isVisible&&E.props.trigger.indexOf("click")>=0)return}else P("onClickOutside",[E,re]);E.props.hideOnClick===!0&&(E.clearDelayTimeouts(),E.hide(),s=!0,setTimeout(function(){s=!1}),E.state.isMounted||ae())}}}function U(){l=!0}function J(){l=!1}function te(){var re=F();re.addEventListener("mousedown",j,!0),re.addEventListener("touchend",j,b1),re.addEventListener("touchstart",J,b1),re.addEventListener("touchmove",U,b1)}function ae(){var re=F();re.removeEventListener("mousedown",j,!0),re.removeEventListener("touchend",j,b1),re.removeEventListener("touchstart",J,b1),re.removeEventListener("touchmove",U,b1)}function K(re,Me){oe(re,function(){!E.state.isVisible&&S.parentNode&&S.parentNode.contains(S)&&Me()})}function Q(re,Me){oe(re,Me)}function oe(re,Me){var je=k().box;function ke(Ge){Ge.target===je&&(w6(je,"remove",ke),Me())}if(re===0)return Me();w6(je,"remove",d),w6(je,"add",ke),d=ke}function ge(re,Me,je){je===void 0&&(je=!1);var ke=Nb(E.props.triggerTarget||e);ke.forEach(function(Ge){Ge.addEventListener(re,Me,je),h.push({node:Ge,eventType:re,handler:Me,options:je})})}function fe(){N()&&(ge("touchstart",le,{passive:!0}),ge("touchend",ne,{passive:!0})),win(E.props.trigger).forEach(function(re){if(re!=="manual")switch(ge(re,le),re){case"mouseenter":ge("mouseleave",ne);break;case"focus":ge($in?"focusout":"blur",pe);break;case"focusin":ge("focusout",pe);break}})}function ue(){h.forEach(function(re){var Me=re.node,je=re.eventType,ke=re.handler,Ge=re.options;Me.removeEventListener(je,ke,Ge)}),h=[]}function le(re){var Me,je=!1;if(!(!E.state.isEnabled||be(re)||s)){var ke=((Me=u)==null?void 0:Me.type)==="focus";u=re,g=re.currentTarget,L(),!E.state.isVisible&&Rin(re)&&sI.forEach(function(Ge){return Ge(re)}),re.type==="click"&&(E.props.trigger.indexOf("mouseenter")<0||a)&&E.props.hideOnClick!==!1&&E.state.isVisible?je=!0:he(re),re.type==="click"&&(a=!je),je&&!ke&&_e(re)}}function ve(re){var Me=re.target,je=M().contains(Me)||S.contains(Me);if(!(re.type==="mousemove"&&je)){var ke=ye().concat(S).map(function(Ge){var Ue,qe=Ge._tippy,At=(Ue=qe.popperInstance)==null?void 0:Ue.state;return At?{popperRect:Ge.getBoundingClientRect(),popperState:At,props:n}:null}).filter(Boolean);Min(ke,re)&&(V(),_e(re))}}function ne(re){var Me=be(re)||E.props.trigger.indexOf("click")>=0&&a;if(!Me){if(E.props.interactive){E.hideWithInteractivity(re);return}_e(re)}}function pe(re){E.props.trigger.indexOf("focusin")<0&&re.target!==M()||E.props.interactive&&re.relatedTarget&&S.contains(re.relatedTarget)||_e(re)}function be(re){return pf.isTouch?N()!==re.type.indexOf("touch")>=0:!1}function Re(){Se();var re=E.props,Me=re.popperOptions,je=re.placement,ke=re.offset,Ge=re.getReferenceClientRect,Ue=re.moveTransition,qe=I()?rV(S).arrow:null,At=Ge?{getBoundingClientRect:Ge,contextElement:Ge.contextElement||M()}:e,at={name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(Ct){var bt=Ct.state;if(I()){var Vt=k(),Tt=Vt.box;["placement","reference-hidden","escaped"].forEach(function(Ot){Ot==="placement"?Tt.setAttribute("data-placement",bt.placement):bt.attributes.popper["data-popper-"+Ot]?Tt.setAttribute("data-"+Ot,""):Tt.removeAttribute("data-"+Ot)}),bt.attributes.popper={}}}},pt=[{name:"offset",options:{offset:ke}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!Ue}},at];I()&&qe&&pt.push({name:"arrow",options:{element:qe,padding:3}}),pt.push.apply(pt,(Me==null?void 0:Me.modifiers)||[]),E.popperInstance=yin(At,S,Object.assign({},Me,{placement:je,onFirstUpdate:f,modifiers:pt}))}function Se(){E.popperInstance&&(E.popperInstance.destroy(),E.popperInstance=null)}function Ce(){var re=E.props.appendTo,Me,je=M();E.props.interactive&&re===T4e||re==="parent"?Me=je.parentNode:Me=x4e(re,[je]),Me.contains(S)||Me.appendChild(S),E.state.isMounted=!0,Re(),Wc.NODE_ENV!=="production"&&Mp(E.props.interactive&&re===uc.appendTo&&je.nextElementSibling!==S,["Interactive tippy element may not be accessible via keyboard","navigation because it is not directly after the reference element","in the DOM source order.",`
`,"Using a wrapper <div> or <span> tag around the reference element","solves this by creating a new parentNode context.",`
`,"Specifying `appendTo: document.body` silences this warning, but it","assumes you are using a focus management solution to handle","keyboard navigation.",`
`,"See: https://atomiks.github.io/tippyjs/v6/accessibility/#interactivity"].join(" "))}function ye(){return Qk(S.querySelectorAll("[data-tippy-root]"))}function he(re){E.clearDelayTimeouts(),re&&P("onTrigger",[E,re]),te();var Me=B(!0),je=O(),ke=je[0],Ge=je[1];pf.isTouch&&ke==="hold"&&Ge&&(Me=Ge),Me?r=setTimeout(function(){E.show()},Me):E.show()}function _e(re){if(E.clearDelayTimeouts(),P("onUntrigger",[E,re]),!E.state.isVisible){ae();return}if(!(E.props.trigger.indexOf("mouseenter")>=0&&E.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(re.type)>=0&&a)){var Me=B(!1);Me?i=setTimeout(function(){E.state.isVisible&&E.hide()},Me):o=requestAnimationFrame(function(){E.hide()})}}function Oe(){E.state.isEnabled=!0}function De(){E.hide(),E.state.isEnabled=!1}function Y(){clearTimeout(r),clearTimeout(i),cancelAnimationFrame(o)}function D(re){if(Wc.NODE_ENV!=="production"&&Mp(E.state.isDestroyed,hb("setProps")),!E.state.isDestroyed){P("onBeforeUpdate",[E,re]),ue();var Me=E.props,je=Sde(e,Object.assign({},Me,gde(re),{ignoreAttributes:!0}));E.props=je,fe(),Me.interactiveDebounce!==je.interactiveDebounce&&(V(),m=hde(ve,je.interactiveDebounce)),Me.triggerTarget&&!je.triggerTarget?Nb(Me.triggerTarget).forEach(function(ke){ke.removeAttribute("aria-expanded")}):je.triggerTarget&&e.removeAttribute("aria-expanded"),L(),A(),C&&C(Me,je),E.popperInstance&&(Re(),ye().forEach(function(ke){requestAnimationFrame(ke._tippy.popperInstance.forceUpdate)})),P("onAfterUpdate",[E,re])}}function G(re){E.setProps({content:re})}function ie(){Wc.NODE_ENV!=="production"&&Mp(E.state.isDestroyed,hb("show"));var re=E.state.isVisible,Me=E.state.isDestroyed,je=!E.state.isEnabled,ke=pf.isTouch&&!E.props.touch,Ge=E6(E.props.duration,0,uc.duration);if(!(re||Me||je||ke)&&!M().hasAttribute("disabled")&&(P("onShow",[E],!1),E.props.onShow(E)!==!1)){if(E.state.isVisible=!0,I()&&(S.style.visibility="visible"),A(),te(),E.state.isMounted||(S.style.transition="none"),I()){var Ue=k(),qe=Ue.box,At=Ue.content;C6([qe,At],0)}f=function(){var at;if(!(!E.state.isVisible||c)){if(c=!0,S.offsetHeight,S.style.transition=E.props.moveTransition,I()&&E.props.animation){var pt=k(),Ct=pt.box,bt=pt.content;C6([Ct,bt],Ge),vde([Ct,bt],"visible")}z(),L(),mde(T6,E),(at=E.popperInstance)==null||at.forceUpdate(),P("onMount",[E]),E.props.animation&&I()&&Q(Ge,function(){E.state.isShown=!0,P("onShown",[E])})}},Ce()}}function me(){Wc.NODE_ENV!=="production"&&Mp(E.state.isDestroyed,hb("hide"));var re=!E.state.isVisible,Me=E.state.isDestroyed,je=!E.state.isEnabled,ke=E6(E.props.duration,1,uc.duration);if(!(re||Me||je)&&(P("onHide",[E],!1),E.props.onHide(E)!==!1)){if(E.state.isVisible=!1,E.state.isShown=!1,c=!1,a=!1,I()&&(S.style.visibility="hidden"),V(),ae(),A(!0),I()){var Ge=k(),Ue=Ge.box,qe=Ge.content;E.props.animation&&(C6([Ue,qe],ke),vde([Ue,qe],"hidden"))}z(),L(),E.props.animation?I()&&K(ke,E.unmount):E.unmount()}}function se(re){Wc.NODE_ENV!=="production"&&Mp(E.state.isDestroyed,hb("hideWithInteractivity")),F().addEventListener("mousemove",m),mde(sI,m),m(re)}function Be(){Wc.NODE_ENV!=="production"&&Mp(E.state.isDestroyed,hb("unmount")),E.state.isVisible&&E.hide(),E.state.isMounted&&(Se(),ye().forEach(function(re){re._tippy.unmount()}),S.parentNode&&S.parentNode.removeChild(S),T6=T6.filter(function(re){return re!==E}),E.state.isMounted=!1,P("onHidden",[E]))}function Ve(){Wc.NODE_ENV!=="production"&&Mp(E.state.isDestroyed,hb("destroy")),!E.state.isDestroyed&&(E.clearDelayTimeouts(),E.unmount(),ue(),delete e._tippy,E.state.isDestroyed=!0,P("onDestroy",[E]))}}function zo(e,t){t===void 0&&(t={});var n=uc.plugins.concat(t.plugins||[]);Wc.NODE_ENV!=="production"&&(jin(e),N4e(t,n)),Din();var r=Object.assign({},t,{plugins:n}),i=Ain(e);if(Wc.NODE_ENV!=="production"){var o=ux(r.content),a=i.length>1;Mp(o&&a,["tippy() was passed an Element as the `content` prop, but more than","one tippy instance was created by this invocation. This means the","content element will only be appended to the last tippy instance.",`
`,"Instead, pass the .innerHTML of the element, or use a function that","returns a cloned version of the element instead.",`
`,`1) content: element.innerHTML
`,"2) content: () => element.cloneNode(true)"].join(" "))}var s=i.reduce(function(l,c){var u=c&&qin(c,r);return u&&l.push(u),l},[]);return ux(e)?s[0]:s}zo.defaultProps=uc;zo.setDefaultProps=zin;zo.currentInput=pf;Object.assign({},h4e,{effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow)}});zo.setDefaultProps({render:M4e});class aE extends ei{constructor(){super(...arguments),nn(this,"tippyInstance"),nn(this,"tippyEl"),nn(this,"textEl"),nn(this,"menuData",[]),nn(this,"menuTextWidth","fit-content"),nn(this,"defaultMenuIndex",0),nn(this,"refreshMenuText",!0),nn(this,"width","fit-content"),nn(this,"dropDivWith","fit-content"),nn(this,"dropDivHeight","fit-content"),nn(this,"showItemsTip",!1)}renderTemplate(){this.template=`
<div>
<div style="display: flex;align-items: center;padding: 0 4px;" id="tippy">
<span style="display:flex;text-align:center;overflow: hidden;" id="text">
${this.onMenuTextRender(this.defaultMenuIndex)}
</span>
<div style="display: flex;justify-content: center;align-items: center;">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
<path fill="none" d="M0 0h24v24H0z"></path><path d="M12 14L8 10H16L12 14Z"></path>
</svg>
</div>
</div>
</div>
`}connectedCallback(){this.renderTemplate(),super.connectedCallback(),this.textEl=this.querySelector("#text"),this.tippyInstance=zo(this.querySelector("#tippy"),{content:this.createMenuElement(),appendTo:this.closest(".aie-container"),placement:"bottom",trigger:"click",interactive:!0,arrow:!1})}createMenuElement(){const t=document.createElement("div");t.style.height=this.dropDivHeight,t.style.width=this.dropDivWith,t.classList.add("aie-dropdown-container");for(let n=0;n<this.menuData.length;n++){const r=document.createElement("div");if(r.classList.add("aie-dropdown-item"),r.innerHTML=`
<div class="red-dot-container" id="item${n}">
<div class="${n==this.defaultMenuIndex?"red-dot":""}"></div>
</div>
<div class="text">${this.onDropdownItemRender(n)}</div>
`,r.addEventListener("click",i=>{const o=this.menuData[n];o.onClick?o.onClick(i)&&this.tippyInstance.hide():(this.onDropdownItemClick(n),this.tippyInstance.hide())}),this.showItemsTip){const i=this.menuData[n];zo(r,{appendTo:()=>this.closest(".aie-container"),content:i.tip||i.title,theme:"aietip",arrow:!0,placement:"right"})}t.appendChild(r)}return this.tippyEl=t,t}onTransaction(t){var n,r;const i=(n=this.tippyEl)==null?void 0:n.querySelector(".red-dot");i&&i.classList.remove("red-dot");let o=this.defaultMenuIndex;for(let a=0;a<this.menuData.length;a++)if(this.onDropdownActive(t.editor,a)){o=a;break}if((r=this.tippyEl)==null||r.querySelector(`#item${o}`).children[0].classList.add("red-dot"),this.refreshMenuText&&this.textEl){const a=this.onMenuTextRender(o);typeof a=="string"?this.textEl.innerHTML=a:(this.textEl.removeChild(this.textEl.firstChild),this.textEl.appendChild(a))}}}const Cr=e=>typeof e=="string",nC=()=>{let e,t;const n=new Promise((r,i)=>{e=r,t=i});return n.resolve=e,n.reject=t,n},wde=e=>e==null?"":""+e,Yin=(e,t,n)=>{e.forEach(r=>{t[r]&&(n[r]=t[r])})},Kin=/###/g,Tde=e=>e&&e.indexOf("###")>-1?e.replace(Kin,"."):e,xde=e=>!e||Cr(e),Rw=(e,t,n)=>{const r=Cr(t)?t.split("."):t;let i=0;for(;i<r.length-1;){if(xde(e))return{};const o=Tde(r[i]);!e[o]&&n&&(e[o]=new n),Object.prototype.hasOwnProperty.call(e,o)?e=e[o]:e={},++i}return xde(e)?{}:{obj:e,k:Tde(r[i])}},Ode=(e,t,n)=>{const{obj:r,k:i}=Rw(e,t,Object);if(r!==void 0||t.length===1){r[i]=n;return}let o=t[t.length-1],a=t.slice(0,t.length-1),s=Rw(e,a,Object);for(;s.obj===void 0&&a.length;)o=`${a[a.length-1]}.${o}`,a=a.slice(0,a.length-1),s=Rw(e,a,Object),s&&s.obj&&typeof s.obj[`${s.k}.${o}`]<"u"&&(s.obj=void 0);s.obj[`${s.k}.${o}`]=n},Qin=(e,t,n,r)=>{const{obj:i,k:o}=Rw(e,t,Object);i[o]=i[o]||[],i[o].push(n)},Xk=(e,t)=>{const{obj:n,k:r}=Rw(e,t);if(n)return n[r]},Xin=(e,t,n)=>{const r=Xk(e,n);return r!==void 0?r:Xk(t,n)},k4e=(e,t,n)=>{for(const r in t)r!=="__proto__"&&r!=="constructor"&&(r in e?Cr(e[r])||e[r]instanceof String||Cr(t[r])||t[r]instanceof String?n&&(e[r]=t[r]):k4e(e[r],t[r],n):e[r]=t[r]);return e},mb=e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var Zin={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};const Jin=e=>Cr(e)?e.replace(/[&<>"'\/]/g,t=>Zin[t]):e;class eon{constructor(t){this.capacity=t,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(t){const n=this.regExpMap.get(t);if(n!==void 0)return n;const r=new RegExp(t);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(t,r),this.regExpQueue.push(t),r}}const ton=[" ",",","?","!",";"],non=new eon(20),ron=(e,t,n)=>{t=t||"",n=n||"";const r=ton.filter(a=>t.indexOf(a)<0&&n.indexOf(a)<0);if(r.length===0)return!0;const i=non.getRegExp(`(${r.map(a=>a==="?"?"\\?":a).join("|")})`);let o=!i.test(e);if(!o){const a=e.indexOf(n);a>0&&!i.test(e.substring(0,a))&&(o=!0)}return o},iV=function(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(!e)return;if(e[t])return e[t];const r=t.split(n);let i=e;for(let o=0;o<r.length;){if(!i||typeof i!="object")return;let a,s="";for(let l=o;l<r.length;++l)if(l!==o&&(s+=n),s+=r[l],a=i[s],a!==void 0){if(["string","number","boolean"].indexOf(typeof a)>-1&&l<r.length-1)continue;o+=l-o+1;break}i=a}return i},Zk=e=>e&&e.replace("_","-"),ion={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,t){console&&console[e]&&console[e].apply(console,t)}};class Jk{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.init(t,n)}init(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=n.prefix||"i18next:",this.logger=t||ion,this.options=n,this.debug=n.debug}log(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this.forward(n,"log","",!0)}warn(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this.forward(n,"warn","",!0)}error(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this.forward(n,"error","")}deprecate(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this.forward(n,"warn","WARNING DEPRECATED: ",!0)}forward(t,n,r,i){return i&&!this.debug?null:(Cr(t[0])&&(t[0]=`${r}${this.prefix} ${t[0]}`),this.logger[n](t))}create(t){return new Jk(this.logger,{prefix:`${this.prefix}:${t}:`,...this.options})}clone(t){return t=t||this.options,t.prefix=t.prefix||this.prefix,new Jk(this.logger,t)}}var xf=new Jk;class l9{constructor(){this.observers={}}on(t,n){return t.split(" ").forEach(r=>{this.observers[r]||(this.observers[r]=new Map);const i=this.observers[r].get(n)||0;this.observers[r].set(n,i+1)}),this}off(t,n){if(this.observers[t]){if(!n){delete this.observers[t];return}this.observers[t].delete(n)}}emit(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];this.observers[t]&&Array.from(this.observers[t].entries()).forEach(o=>{let[a,s]=o;for(let l=0;l<s;l++)a(...r)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(o=>{let[a,s]=o;for(let l=0;l<s;l++)a.apply(a,[t,...r])})}}class Rde extends l9{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=t||{},this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(t){this.options.ns.indexOf(t)<0&&this.options.ns.push(t)}removeNamespaces(t){const n=this.options.ns.indexOf(t);n>-1&&this.options.ns.splice(n,1)}getResource(t,n,r){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const o=i.keySeparator!==void 0?i.keySeparator:this.options.keySeparator,a=i.ignoreJSONStructure!==void 0?i.ignoreJSONStructure:this.options.ignoreJSONStructure;let s;t.indexOf(".")>-1?s=t.split("."):(s=[t,n],r&&(Array.isArray(r)?s.push(...r):Cr(r)&&o?s.push(...r.split(o)):s.push(r)));const l=Xk(this.data,s);return!l&&!n&&!r&&t.indexOf(".")>-1&&(t=s[0],n=s[1],r=s.slice(2).join(".")),l||!a||!Cr(r)?l:iV(this.data&&this.data[t]&&this.data[t][n],r,o)}addResource(t,n,r,i){let o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1};const a=o.keySeparator!==void 0?o.keySeparator:this.options.keySeparator;let s=[t,n];r&&(s=s.concat(a?r.split(a):r)),t.indexOf(".")>-1&&(s=t.split("."),i=n,n=s[1]),this.addNamespaces(n),Ode(this.data,s,i),o.silent||this.emit("added",t,n,r,i)}addResources(t,n,r){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(const o in r)(Cr(r[o])||Array.isArray(r[o]))&&this.addResource(t,n,o,r[o],{silent:!0});i.silent||this.emit("added",t,n,r)}addResourceBundle(t,n,r,i,o){let a=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1,skipCopy:!1},s=[t,n];t.indexOf(".")>-1&&(s=t.split("."),i=r,r=n,n=s[1]),this.addNamespaces(n);let l=Xk(this.data,s)||{};a.skipCopy||(r=JSON.parse(JSON.stringify(r))),i?k4e(l,r,o):l={...l,...r},Ode(this.data,s,l),a.silent||this.emit("added",t,n,r)}removeResourceBundle(t,n){this.hasResourceBundle(t,n)&&delete this.data[t][n],this.removeNamespaces(n),this.emit("removed",t,n)}hasResourceBundle(t,n){return this.getResource(t,n)!==void 0}getResourceBundle(t,n){return n||(n=this.options.defaultNS),this.options.compatibilityAPI==="v1"?{...this.getResource(t,n)}:this.getResource(t,n)}getDataByLanguage(t){return this.data[t]}hasLanguageSomeTranslations(t){const n=this.getDataByLanguage(t);return!!(n&&Object.keys(n)||[]).find(r=>n[r]&&Object.keys(n[r]).length>0)}toJSON(){return this.data}}var P4e={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,n,r,i){return e.forEach(o=>{this.processors[o]&&(t=this.processors[o].process(t,n,r,i))}),t}};const Ide={};class e4 extends l9{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(),Yin(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],t,this),this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=xf.create("translator")}changeLanguage(t){t&&(this.language=t)}exists(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(t==null)return!1;const r=this.resolve(t,n);return r&&r.res!==void 0}extractFromKey(t,n){let r=n.nsSeparator!==void 0?n.nsSeparator:this.options.nsSeparator;r===void 0&&(r=":");const i=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator;let o=n.ns||this.options.defaultNS||[];const a=r&&t.indexOf(r)>-1,s=!this.options.userDefinedKeySeparator&&!n.keySeparator&&!this.options.userDefinedNsSeparator&&!n.nsSeparator&&!ron(t,r,i);if(a&&!s){const l=t.match(this.interpolator.nestingRegexp);if(l&&l.length>0)return{key:t,namespaces:o};const c=t.split(r);(r!==i||r===i&&this.options.ns.indexOf(c[0])>-1)&&(o=c.shift()),t=c.join(i)}return Cr(o)&&(o=[o]),{key:t,namespaces:o}}translate(t,n,r){if(typeof n!="object"&&this.options.overloadTranslationOptionHandler&&(n=this.options.overloadTranslationOptionHandler(arguments)),typeof n=="object"&&(n={...n}),n||(n={}),t==null)return"";Array.isArray(t)||(t=[String(t)]);const i=n.returnDetails!==void 0?n.returnDetails:this.options.returnDetails,o=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator,{key:a,namespaces:s}=this.extractFromKey(t[t.length-1],n),l=s[s.length-1],c=n.lng||this.language,u=n.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(c&&c.toLowerCase()==="cimode"){if(u){const E=n.nsSeparator||this.options.nsSeparator;return i?{res:`${l}${E}${a}`,usedKey:a,exactUsedKey:a,usedLng:c,usedNS:l,usedParams:this.getUsedParamsDetails(n)}:`${l}${E}${a}`}return i?{res:a,usedKey:a,exactUsedKey:a,usedLng:c,usedNS:l,usedParams:this.getUsedParamsDetails(n)}:a}const d=this.resolve(t,n);let f=d&&d.res;const h=d&&d.usedKey||a,m=d&&d.exactUsedKey||a,g=Object.prototype.toString.apply(f),v=["[object Number]","[object Function]","[object RegExp]"],y=n.joinArrays!==void 0?n.joinArrays:this.options.joinArrays,b=!this.i18nFormat||this.i18nFormat.handleAsObject,_=!Cr(f)&&typeof f!="boolean"&&typeof f!="number";if(b&&f&&_&&v.indexOf(g)<0&&!(Cr(y)&&Array.isArray(f))){if(!n.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const E=this.options.returnedObjectHandler?this.options.returnedObjectHandler(h,f,{...n,ns:s}):`key '${a} (${this.language})' returned an object instead of string.`;return i?(d.res=E,d.usedParams=this.getUsedParamsDetails(n),d):E}if(o){const E=Array.isArray(f),w=E?[]:{},S=E?m:h;for(const C in f)if(Object.prototype.hasOwnProperty.call(f,C)){const T=`${S}${o}${C}`;w[C]=this.translate(T,{...n,joinArrays:!1,ns:s}),w[C]===T&&(w[C]=f[C])}f=w}}else if(b&&Cr(y)&&Array.isArray(f))f=f.join(y),f&&(f=this.extendTranslation(f,t,n,r));else{let E=!1,w=!1;const S=n.count!==void 0&&!Cr(n.count),C=e4.hasDefaultValue(n),T=S?this.pluralResolver.getSuffix(c,n.count,n):"",x=n.ordinal&&S?this.pluralResolver.getSuffix(c,n.count,{ordinal:!1}):"",O=S&&!n.ordinal&&n.count===0&&this.pluralResolver.shouldUseIntlApi(),N=O&&n[`defaultValue${this.options.pluralSeparator}zero`]||n[`defaultValue${T}`]||n[`defaultValue${x}`]||n.defaultValue;!this.isValidLookup(f)&&C&&(E=!0,f=N),this.isValidLookup(f)||(w=!0,f=a);const I=(n.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&w?void 0:f,M=C&&N!==f&&this.options.updateMissing;if(w||E||M){if(this.logger.log(M?"updateKey":"missingKey",c,l,a,M?N:f),o){const A=this.resolve(a,{...n,keySeparator:!1});A&&A.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let F=[];const k=this.languageUtils.getFallbackCodes(this.options.fallbackLng,n.lng||this.language);if(this.options.saveMissingTo==="fallback"&&k&&k[0])for(let A=0;A<k.length;A++)F.push(k[A]);else this.options.saveMissingTo==="all"?F=this.languageUtils.toResolveHierarchy(n.lng||this.language):F.push(n.lng||this.language);const B=(A,P,z)=>{const L=C&&z!==f?z:I;this.options.missingKeyHandler?this.options.missingKeyHandler(A,l,P,L,M,n):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(A,l,P,L,M,n),this.emit("missingKey",A,l,P,f)};this.options.saveMissing&&(this.options.saveMissingPlurals&&S?F.forEach(A=>{const P=this.pluralResolver.getSuffixes(A,n);O&&n[`defaultValue${this.options.pluralSeparator}zero`]&&P.indexOf(`${this.options.pluralSeparator}zero`)<0&&P.push(`${this.options.pluralSeparator}zero`),P.forEach(z=>{B([A],a+z,n[`defaultValue${z}`]||N)})}):B(F,a,N))}f=this.extendTranslation(f,t,n,d,r),w&&f===a&&this.options.appendNamespaceToMissingKey&&(f=`${l}:${a}`),(w||E)&&this.options.parseMissingKeyHandler&&(this.options.compatibilityAPI!=="v1"?f=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${l}:${a}`:a,E?f:void 0):f=this.options.parseMissingKeyHandler(f))}return i?(d.res=f,d.usedParams=this.getUsedParamsDetails(n),d):f}extendTranslation(t,n,r,i,o){var a=this;if(this.i18nFormat&&this.i18nFormat.parse)t=this.i18nFormat.parse(t,{...this.options.interpolation.defaultVariables,...r},r.lng||this.language||i.usedLng,i.usedNS,i.usedKey,{resolved:i});else if(!r.skipInterpolation){r.interpolation&&this.interpolator.init({...r,interpolation:{...this.options.interpolation,...r.interpolation}});const c=Cr(t)&&(r&&r.interpolation&&r.interpolation.skipOnVariables!==void 0?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let u;if(c){const f=t.match(this.interpolator.nestingRegexp);u=f&&f.length}let d=r.replace&&!Cr(r.replace)?r.replace:r;if(this.options.interpolation.defaultVariables&&(d={...this.options.interpolation.defaultVariables,...d}),t=this.interpolator.interpolate(t,d,r.lng||this.language||i.usedLng,r),c){const f=t.match(this.interpolator.nestingRegexp),h=f&&f.length;u<h&&(r.nest=!1)}!r.lng&&this.options.compatibilityAPI!=="v1"&&i&&i.res&&(r.lng=this.language||i.usedLng),r.nest!==!1&&(t=this.interpolator.nest(t,function(){for(var f=arguments.length,h=new Array(f),m=0;m<f;m++)h[m]=arguments[m];return o&&o[0]===h[0]&&!r.context?(a.logger.warn(`It seems you are nesting recursively key: ${h[0]} in key: ${n[0]}`),null):a.translate(...h,n)},r)),r.interpolation&&this.interpolator.reset()}const s=r.postProcess||this.options.postProcess,l=Cr(s)?[s]:s;return t!=null&&l&&l.length&&r.applyPostProcessor!==!1&&(t=P4e.handle(l,t,n,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...i,usedParams:this.getUsedParamsDetails(r)},...r}:r,this)),t}resolve(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r,i,o,a,s;return Cr(t)&&(t=[t]),t.forEach(l=>{if(this.isValidLookup(r))return;const c=this.extractFromKey(l,n),u=c.key;i=u;let d=c.namespaces;this.options.fallbackNS&&(d=d.concat(this.options.fallbackNS));const f=n.count!==void 0&&!Cr(n.count),h=f&&!n.ordinal&&n.count===0&&this.pluralResolver.shouldUseIntlApi(),m=n.context!==void 0&&(Cr(n.context)||typeof n.context=="number")&&n.context!=="",g=n.lngs?n.lngs:this.languageUtils.toResolveHierarchy(n.lng||this.language,n.fallbackLng);d.forEach(v=>{this.isValidLookup(r)||(s=v,!Ide[`${g[0]}-${v}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(s)&&(Ide[`${g[0]}-${v}`]=!0,this.logger.warn(`key "${i}" for languages "${g.join(", ")}" won't get resolved as namespace "${s}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),g.forEach(y=>{if(this.isValidLookup(r))return;a=y;const b=[u];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(b,u,y,v,n);else{let E;f&&(E=this.pluralResolver.getSuffix(y,n.count,n));const w=`${this.options.pluralSeparator}zero`,S=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(f&&(b.push(u+E),n.ordinal&&E.indexOf(S)===0&&b.push(u+E.replace(S,this.options.pluralSeparator)),h&&b.push(u+w)),m){const C=`${u}${this.options.contextSeparator}${n.context}`;b.push(C),f&&(b.push(C+E),n.ordinal&&E.indexOf(S)===0&&b.push(C+E.replace(S,this.options.pluralSeparator)),h&&b.push(C+w))}}let _;for(;_=b.pop();)this.isValidLookup(r)||(o=_,r=this.getResource(y,v,_,n))}))})}),{res:r,usedKey:i,exactUsedKey:o,usedLng:a,usedNS:s}}isValidLookup(t){return t!==void 0&&!(!this.options.returnNull&&t===null)&&!(!this.options.returnEmptyString&&t==="")}getResource(t,n,r){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(t,n,r,i):this.resourceStore.getResource(t,n,r,i)}getUsedParamsDetails(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const n=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],r=t.replace&&!Cr(t.replace);let i=r?t.replace:t;if(r&&typeof t.count<"u"&&(i.count=t.count),this.options.interpolation.defaultVariables&&(i={...this.options.interpolation.defaultVariables,...i}),!r){i={...i};for(const o of n)delete i[o]}return i}static hasDefaultValue(t){const n="defaultValue";for(const r in t)if(Object.prototype.hasOwnProperty.call(t,r)&&n===r.substring(0,n.length)&&t[r]!==void 0)return!0;return!1}}const x6=e=>e.charAt(0).toUpperCase()+e.slice(1);class Ade{constructor(t){this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=xf.create("languageUtils")}getScriptPartFromCode(t){if(t=Zk(t),!t||t.indexOf("-")<0)return null;const n=t.split("-");return n.length===2||(n.pop(),n[n.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(n.join("-"))}getLanguagePartFromCode(t){if(t=Zk(t),!t||t.indexOf("-")<0)return t;const n=t.split("-");return this.formatLanguageCode(n[0])}formatLanguageCode(t){if(Cr(t)&&t.indexOf("-")>-1){if(typeof Intl<"u"&&typeof Intl.getCanonicalLocales<"u")try{let i=Intl.getCanonicalLocales(t)[0];if(i&&this.options.lowerCaseLng&&(i=i.toLowerCase()),i)return i}catch{}const n=["hans","hant","latn","cyrl","cans","mong","arab"];let r=t.split("-");return this.options.lowerCaseLng?r=r.map(i=>i.toLowerCase()):r.length===2?(r[0]=r[0].toLowerCase(),r[1]=r[1].toUpperCase(),n.indexOf(r[1].toLowerCase())>-1&&(r[1]=x6(r[1].toLowerCase()))):r.length===3&&(r[0]=r[0].toLowerCase(),r[1].length===2&&(r[1]=r[1].toUpperCase()),r[0]!=="sgn"&&r[2].length===2&&(r[2]=r[2].toUpperCase()),n.indexOf(r[1].toLowerCase())>-1&&(r[1]=x6(r[1].toLowerCase())),n.indexOf(r[2].toLowerCase())>-1&&(r[2]=x6(r[2].toLowerCase()))),r.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?t.toLowerCase():t}isSupportedCode(t){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(t=this.getLanguagePartFromCode(t)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(t)>-1}getBestMatchFromCodes(t){if(!t)return null;let n;return t.forEach(r=>{if(n)return;const i=this.formatLanguageCode(r);(!this.options.supportedLngs||this.isSupportedCode(i))&&(n=i)}),!n&&this.options.supportedLngs&&t.forEach(r=>{if(n)return;const i=this.getLanguagePartFromCode(r);if(this.isSupportedCode(i))return n=i;n=this.options.supportedLngs.find(o=>{if(o===i||!(o.indexOf("-")<0&&i.indexOf("-")<0)&&(o.indexOf("-")>0&&i.indexOf("-")<0&&o.substring(0,o.indexOf("-"))===i||o.indexOf(i)===0&&i.length>1))return o})}),n||(n=this.getFallbackCodes(this.options.fallbackLng)[0]),n}getFallbackCodes(t,n){if(!t)return[];if(typeof t=="function"&&(t=t(n)),Cr(t)&&(t=[t]),Array.isArray(t))return t;if(!n)return t.default||[];let r=t[n];return r||(r=t[this.getScriptPartFromCode(n)]),r||(r=t[this.formatLanguageCode(n)]),r||(r=t[this.getLanguagePartFromCode(n)]),r||(r=t.default),r||[]}toResolveHierarchy(t,n){const r=this.getFallbackCodes(n||this.options.fallbackLng||[],t),i=[],o=a=>{a&&(this.isSupportedCode(a)?i.push(a):this.logger.warn(`rejecting language code not found in supportedLngs: ${a}`))};return Cr(t)&&(t.indexOf("-")>-1||t.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&o(this.formatLanguageCode(t)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&o(this.getScriptPartFromCode(t)),this.options.load!=="currentOnly"&&o(this.getLanguagePartFromCode(t))):Cr(t)&&o(this.formatLanguageCode(t)),r.forEach(a=>{i.indexOf(a)<0&&o(this.formatLanguageCode(a))}),i}}let oon=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],aon={1:e=>+(e>1),2:e=>+(e!=1),3:e=>0,4:e=>e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2,5:e=>e==0?0:e==1?1:e==2?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5,6:e=>e==1?0:e>=2&&e<=4?1:2,7:e=>e==1?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2,8:e=>e==1?0:e==2?1:e!=8&&e!=11?2:3,9:e=>+(e>=2),10:e=>e==1?0:e==2?1:e<7?2:e<11?3:4,11:e=>e==1||e==11?0:e==2||e==12?1:e>2&&e<20?2:3,12:e=>+(e%10!=1||e%100==11),13:e=>+(e!==0),14:e=>e==1?0:e==2?1:e==3?2:3,15:e=>e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2,16:e=>e%10==1&&e%100!=11?0:e!==0?1:2,17:e=>e==1||e%10==1&&e%100!=11?0:1,18:e=>e==0?0:e==1?1:2,19:e=>e==1?0:e==0||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3,20:e=>e==1?0:e==0||e%100>0&&e%100<20?1:2,21:e=>e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0,22:e=>e==1?0:e==2?1:(e<0||e>10)&&e%10==0?2:3};const son=["v1","v2","v3"],lon=["v4"],Nde={zero:0,one:1,two:2,few:3,many:4,other:5},con=()=>{const e={};return oon.forEach(t=>{t.lngs.forEach(n=>{e[n]={numbers:t.nr,plurals:aon[t.fc]}})}),e};class uon{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.languageUtils=t,this.options=n,this.logger=xf.create("pluralResolver"),(!this.options.compatibilityJSON||lon.includes(this.options.compatibilityJSON))&&(typeof Intl>"u"||!Intl.PluralRules)&&(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=con(),this.pluralRulesCache={}}addRule(t,n){this.rules[t]=n}clearCache(){this.pluralRulesCache={}}getRule(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.shouldUseIntlApi())try{const r=Zk(t==="dev"?"en":t),i=n.ordinal?"ordinal":"cardinal",o=JSON.stringify({cleanedCode:r,type:i});if(o in this.pluralRulesCache)return this.pluralRulesCache[o];const a=new Intl.PluralRules(r,{type:i});return this.pluralRulesCache[o]=a,a}catch{return}return this.rules[t]||this.rules[this.languageUtils.getLanguagePartFromCode(t)]}needsPlural(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const r=this.getRule(t,n);return this.shouldUseIntlApi()?r&&r.resolvedOptions().pluralCategories.length>1:r&&r.numbers.length>1}getPluralFormsOfKey(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(t,r).map(i=>`${n}${i}`)}getSuffixes(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const r=this.getRule(t,n);return r?this.shouldUseIntlApi()?r.resolvedOptions().pluralCategories.sort((i,o)=>Nde[i]-Nde[o]).map(i=>`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${i}`):r.numbers.map(i=>this.getSuffix(t,i,n)):[]}getSuffix(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const i=this.getRule(t,r);return i?this.shouldUseIntlApi()?`${this.options.prepend}${r.ordinal?`ordinal${this.options.prepend}`:""}${i.select(n)}`:this.getSuffixRetroCompatible(i,n):(this.logger.warn(`no plural rule found for: ${t}`),"")}getSuffixRetroCompatible(t,n){const r=t.noAbs?t.plurals(n):t.plurals(Math.abs(n));let i=t.numbers[r];this.options.simplifyPluralSuffix&&t.numbers.length===2&&t.numbers[0]===1&&(i===2?i="plural":i===1&&(i=""));const o=()=>this.options.prepend&&i.toString()?this.options.prepend+i.toString():i.toString();return this.options.compatibilityJSON==="v1"?i===1?"":typeof i=="number"?`_plural_${i.toString()}`:o():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&t.numbers.length===2&&t.numbers[0]===1?o():this.options.prepend&&r.toString()?this.options.prepend+r.toString():r.toString()}shouldUseIntlApi(){return!son.includes(this.options.compatibilityJSON)}}const Mde=function(e,t,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:".",i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,o=Xin(e,t,n);return!o&&i&&Cr(n)&&(o=iV(e,n,r),o===void 0&&(o=iV(t,n,r))),o},O6=e=>e.replace(/\$/g,"$$$$");class don{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=xf.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||(n=>n),this.init(t)}init(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};t.interpolation||(t.interpolation={escapeValue:!0});const{escape:n,escapeValue:r,useRawValueToEscape:i,prefix:o,prefixEscaped:a,suffix:s,suffixEscaped:l,formatSeparator:c,unescapeSuffix:u,unescapePrefix:d,nestingPrefix:f,nestingPrefixEscaped:h,nestingSuffix:m,nestingSuffixEscaped:g,nestingOptionsSeparator:v,maxReplaces:y,alwaysFormat:b}=t.interpolation;this.escape=n!==void 0?n:Jin,this.escapeValue=r!==void 0?r:!0,this.useRawValueToEscape=i!==void 0?i:!1,this.prefix=o?mb(o):a||"{{",this.suffix=s?mb(s):l||"}}",this.formatSeparator=c||",",this.unescapePrefix=u?"":d||"-",this.unescapeSuffix=this.unescapePrefix?"":u||"",this.nestingPrefix=f?mb(f):h||mb("$t("),this.nestingSuffix=m?mb(m):g||mb(")"),this.nestingOptionsSeparator=v||",",this.maxReplaces=y||1e3,this.alwaysFormat=b!==void 0?b:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const t=(n,r)=>n&&n.source===r?(n.lastIndex=0,n):new RegExp(r,"g");this.regexp=t(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=t(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=t(this.nestingRegexp,`${this.nestingPrefix}(.+?)${this.nestingSuffix}`)}interpolate(t,n,r,i){let o,a,s;const l=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},c=f=>{if(f.indexOf(this.formatSeparator)<0){const v=Mde(n,l,f,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(v,void 0,r,{...i,...n,interpolationkey:f}):v}const h=f.split(this.formatSeparator),m=h.shift().trim(),g=h.join(this.formatSeparator).trim();return this.format(Mde(n,l,m,this.options.keySeparator,this.options.ignoreJSONStructure),g,r,{...i,...n,interpolationkey:m})};this.resetRegExp();const u=i&&i.missingInterpolationHandler||this.options.missingInterpolationHandler,d=i&&i.interpolation&&i.interpolation.skipOnVariables!==void 0?i.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:f=>O6(f)},{regex:this.regexp,safeValue:f=>this.escapeValue?O6(this.escape(f)):O6(f)}].forEach(f=>{for(s=0;o=f.regex.exec(t);){const h=o[1].trim();if(a=c(h),a===void 0)if(typeof u=="function"){const g=u(t,o,i);a=Cr(g)?g:""}else if(i&&Object.prototype.hasOwnProperty.call(i,h))a="";else if(d){a=o[0];continue}else this.logger.warn(`missed to pass in variable ${h} for interpolating ${t}`),a="";else!Cr(a)&&!this.useRawValueToEscape&&(a=wde(a));const m=f.safeValue(a);if(t=t.replace(o[0],m),d?(f.regex.lastIndex+=a.length,f.regex.lastIndex-=o[0].length):f.regex.lastIndex=0,s++,s>=this.maxReplaces)break}}),t}nest(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i,o,a;const s=(l,c)=>{const u=this.nestingOptionsSeparator;if(l.indexOf(u)<0)return l;const d=l.split(new RegExp(`${u}[ ]*{`));let f=`{${d[1]}`;l=d[0],f=this.interpolate(f,a);const h=f.match(/'/g),m=f.match(/"/g);(h&&h.length%2===0&&!m||m.length%2!==0)&&(f=f.replace(/'/g,'"'));try{a=JSON.parse(f),c&&(a={...c,...a})}catch(g){return this.logger.warn(`failed parsing options string in nesting for key ${l}`,g),`${l}${u}${f}`}return a.defaultValue&&a.defaultValue.indexOf(this.prefix)>-1&&delete a.defaultValue,l};for(;i=this.nestingRegexp.exec(t);){let l=[];a={...r},a=a.replace&&!Cr(a.replace)?a.replace:a,a.applyPostProcessor=!1,delete a.defaultValue;let c=!1;if(i[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(i[1])){const u=i[1].split(this.formatSeparator).map(d=>d.trim());i[1]=u.shift(),l=u,c=!0}if(o=n(s.call(this,i[1].trim(),a),a),o&&i[0]===t&&!Cr(o))return o;Cr(o)||(o=wde(o)),o||(this.logger.warn(`missed to resolve ${i[1]} for nesting ${t}`),o=""),c&&(o=l.reduce((u,d)=>this.format(u,d,r.lng,{...r,interpolationkey:i[1].trim()}),o.trim())),t=t.replace(i[0],o),this.regexp.lastIndex=0}return t}}const fon=e=>{let t=e.toLowerCase().trim();const n={};if(e.indexOf("(")>-1){const r=e.split("(");t=r[0].toLowerCase().trim();const i=r[1].substring(0,r[1].length-1);t==="currency"&&i.indexOf(":")<0?n.currency||(n.currency=i.trim()):t==="relativetime"&&i.indexOf(":")<0?n.range||(n.range=i.trim()):i.split(";").forEach(o=>{if(o){const[a,...s]=o.split(":"),l=s.join(":").trim().replace(/^'+|'+$/g,""),c=a.trim();n[c]||(n[c]=l),l==="false"&&(n[c]=!1),l==="true"&&(n[c]=!0),isNaN(l)||(n[c]=parseInt(l,10))}})}return{formatName:t,formatOptions:n}},gb=e=>{const t={};return(n,r,i)=>{let o=i;i&&i.interpolationkey&&i.formatParams&&i.formatParams[i.interpolationkey]&&i[i.interpolationkey]&&(o={...o,[i.interpolationkey]:void 0});const a=r+JSON.stringify(o);let s=t[a];return s||(s=e(Zk(r),i),t[a]=s),s(n)}};class pon{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=xf.create("formatter"),this.options=t,this.formats={number:gb((n,r)=>i=>new Intl.NumberFormat(n,{...r}).format(i)),currency:gb((n,r)=>i=>new Intl.NumberFormat(n,{...r,style:"currency"}).format(i)),datetime:gb((n,r)=>i=>new Intl.DateTimeFormat(n,{...r}).format(i)),relativetime:gb((n,r)=>i=>new Intl.RelativeTimeFormat(n,{...r}).format(i,r.range||"day")),list:gb((n,r)=>i=>new Intl.ListFormat(n,{...r}).format(i))},this.init(t)}init(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};this.formatSeparator=n.interpolation.formatSeparator||","}add(t,n){this.formats[t.toLowerCase().trim()]=n}addCached(t,n){this.formats[t.toLowerCase().trim()]=gb(n)}format(t,n,r){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const o=n.split(this.formatSeparator);if(o.length>1&&o[0].indexOf("(")>1&&o[0].indexOf(")")<0&&o.find(a=>a.indexOf(")")>-1)){const a=o.findIndex(s=>s.indexOf(")")>-1);o[0]=[o[0],...o.splice(1,a)].join(this.formatSeparator)}return o.reduce((a,s)=>{const{formatName:l,formatOptions:c}=fon(s);if(this.formats[l]){let u=a;try{const d=i&&i.formatParams&&i.formatParams[i.interpolationkey]||{},f=d.locale||d.lng||i.locale||i.lng||r;u=this.formats[l](a,f,{...c,...i,...d})}catch(d){this.logger.warn(d)}return u}else this.logger.warn(`there was no format function for ${l}`);return a},t)}}const hon=(e,t)=>{e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)};class mon extends l9{constructor(t,n,r){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};super(),this.backend=t,this.store=n,this.services=r,this.languageUtils=r.languageUtils,this.options=i,this.logger=xf.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=i.maxParallelReads||10,this.readingCalls=0,this.maxRetries=i.maxRetries>=0?i.maxRetries:5,this.retryTimeout=i.retryTimeout>=1?i.retryTimeout:350,this.state={},this.queue=[],this.backend&&this.backend.init&&this.backend.init(r,i.backend,i)}queueLoad(t,n,r,i){const o={},a={},s={},l={};return t.forEach(c=>{let u=!0;n.forEach(d=>{const f=`${c}|${d}`;!r.reload&&this.store.hasResourceBundle(c,d)?this.state[f]=2:this.state[f]<0||(this.state[f]===1?a[f]===void 0&&(a[f]=!0):(this.state[f]=1,u=!1,a[f]===void 0&&(a[f]=!0),o[f]===void 0&&(o[f]=!0),l[d]===void 0&&(l[d]=!0)))}),u||(s[c]=!0)}),(Object.keys(o).length||Object.keys(a).length)&&this.queue.push({pending:a,pendingCount:Object.keys(a).length,loaded:{},errors:[],callback:i}),{toLoad:Object.keys(o),pending:Object.keys(a),toLoadLanguages:Object.keys(s),toLoadNamespaces:Object.keys(l)}}loaded(t,n,r){const i=t.split("|"),o=i[0],a=i[1];n&&this.emit("failedLoading",o,a,n),!n&&r&&this.store.addResourceBundle(o,a,r,void 0,void 0,{skipCopy:!0}),this.state[t]=n?-1:2,n&&r&&(this.state[t]=0);const s={};this.queue.forEach(l=>{Qin(l.loaded,[o],a),hon(l,t),n&&l.errors.push(n),l.pendingCount===0&&!l.done&&(Object.keys(l.loaded).forEach(c=>{s[c]||(s[c]={});const u=l.loaded[c];u.length&&u.forEach(d=>{s[c][d]===void 0&&(s[c][d]=!0)})}),l.done=!0,l.errors.length?l.callback(l.errors):l.callback())}),this.emit("loaded",s),this.queue=this.queue.filter(l=>!l.done)}read(t,n,r){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,a=arguments.length>5?arguments[5]:void 0;if(!t.length)return a(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:t,ns:n,fcName:r,tried:i,wait:o,callback:a});return}this.readingCalls++;const s=(c,u)=>{if(this.readingCalls--,this.waitingReads.length>0){const d=this.waitingReads.shift();this.read(d.lng,d.ns,d.fcName,d.tried,d.wait,d.callback)}if(c&&u&&i<this.maxRetries){setTimeout(()=>{this.read.call(this,t,n,r,i+1,o*2,a)},o);return}a(c,u)},l=this.backend[r].bind(this.backend);if(l.length===2){try{const c=l(t,n);c&&typeof c.then=="function"?c.then(u=>s(null,u)).catch(s):s(null,c)}catch(c){s(c)}return}return l(t,n,s)}prepareLoading(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),i&&i();Cr(t)&&(t=this.languageUtils.toResolveHierarchy(t)),Cr(n)&&(n=[n]);const o=this.queueLoad(t,n,r,i);if(!o.toLoad.length)return o.pending.length||i(),null;o.toLoad.forEach(a=>{this.loadOne(a)})}load(t,n,r){this.prepareLoading(t,n,{},r)}reload(t,n,r){this.prepareLoading(t,n,{reload:!0},r)}loadOne(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const r=t.split("|"),i=r[0],o=r[1];this.read(i,o,"read",void 0,void 0,(a,s)=>{a&&this.logger.warn(`${n}loading namespace ${o} for language ${i} failed`,a),!a&&s&&this.logger.log(`${n}loaded namespace ${o} for language ${i}`,s),this.loaded(t,a,s)})}saveMissing(t,n,r,i,o){let a=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},s=arguments.length>6&&arguments[6]!==void 0?arguments[6]:()=>{};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(n)){this.logger.warn(`did not save key "${r}" as the namespace "${n}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(r==null||r==="")){if(this.backend&&this.backend.create){const l={...a,isUpdate:o},c=this.backend.create.bind(this.backend);if(c.length<6)try{let u;c.length===5?u=c(t,n,r,i,l):u=c(t,n,r,i),u&&typeof u.then=="function"?u.then(d=>s(null,d)).catch(s):s(null,u)}catch(u){s(u)}else c(t,n,r,i,s,l)}!t||!t[0]||this.store.addResource(t[0],n,r,i)}}}const kde=()=>({debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:e=>{let t={};if(typeof e[1]=="object"&&(t=e[1]),Cr(e[1])&&(t.defaultValue=e[1]),Cr(e[2])&&(t.tDescription=e[2]),typeof e[2]=="object"||typeof e[3]=="object"){const n=e[3]||e[2];Object.keys(n).forEach(r=>{t[r]=n[r]})}return t},interpolation:{escapeValue:!0,format:e=>e,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}),Pde=e=>(Cr(e.ns)&&(e.ns=[e.ns]),Cr(e.fallbackLng)&&(e.fallbackLng=[e.fallbackLng]),Cr(e.fallbackNS)&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e),lI=()=>{},gon=e=>{Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(t=>{typeof e[t]=="function"&&(e[t]=e[t].bind(e))})};class fx extends l9{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;if(super(),this.options=Pde(t),this.services={},this.logger=xf,this.modules={external:[]},gon(this),n&&!this.isInitialized&&!t.isClone){if(!this.options.initImmediate)return this.init(t,n),this;setTimeout(()=>{this.init(t,n)},0)}}init(){var t=this;let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;this.isInitializing=!0,typeof n=="function"&&(r=n,n={}),!n.defaultNS&&n.defaultNS!==!1&&n.ns&&(Cr(n.ns)?n.defaultNS=n.ns:n.ns.indexOf("translation")<0&&(n.defaultNS=n.ns[0]));const i=kde();this.options={...i,...this.options,...Pde(n)},this.options.compatibilityAPI!=="v1"&&(this.options.interpolation={...i.interpolation,...this.options.interpolation}),n.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=n.keySeparator),n.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=n.nsSeparator);const o=l=>l?typeof l=="function"?new l:l:null;if(!this.options.isClone){this.modules.logger?xf.init(o(this.modules.logger),this.options):xf.init(null,this.options);let l;this.modules.formatter?l=this.modules.formatter:typeof Intl<"u"&&(l=pon);const c=new Ade(this.options);this.store=new Rde(this.options.resources,this.options);const u=this.services;u.logger=xf,u.resourceStore=this.store,u.languageUtils=c,u.pluralResolver=new uon(c,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),l&&(!this.options.interpolation.format||this.options.interpolation.format===i.interpolation.format)&&(u.formatter=o(l),u.formatter.init(u,this.options),this.options.interpolation.format=u.formatter.format.bind(u.formatter)),u.interpolator=new don(this.options),u.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},u.backendConnector=new mon(o(this.modules.backend),u.resourceStore,u,this.options),u.backendConnector.on("*",function(d){for(var f=arguments.length,h=new Array(f>1?f-1:0),m=1;m<f;m++)h[m-1]=arguments[m];t.emit(d,...h)}),this.modules.languageDetector&&(u.languageDetector=o(this.modules.languageDetector),u.languageDetector.init&&u.languageDetector.init(u,this.options.detection,this.options)),this.modules.i18nFormat&&(u.i18nFormat=o(this.modules.i18nFormat),u.i18nFormat.init&&u.i18nFormat.init(this)),this.translator=new e4(this.services,this.options),this.translator.on("*",function(d){for(var f=arguments.length,h=new Array(f>1?f-1:0),m=1;m<f;m++)h[m-1]=arguments[m];t.emit(d,...h)}),this.modules.external.forEach(d=>{d.init&&d.init(this)})}if(this.format=this.options.interpolation.format,r||(r=lI),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const l=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);l.length>0&&l[0]!=="dev"&&(this.options.lng=l[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(l=>{this[l]=function(){return t.store[l](...arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(l=>{this[l]=function(){return t.store[l](...arguments),t}});const a=nC(),s=()=>{const l=(c,u)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),a.resolve(u),r(c,u)};if(this.languages&&this.options.compatibilityAPI!=="v1"&&!this.isInitialized)return l(null,this.t.bind(this));this.changeLanguage(this.options.lng,l)};return this.options.resources||!this.options.initImmediate?s():setTimeout(s,0),a}loadResources(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:lI;const r=Cr(t)?t:this.language;if(typeof t=="function"&&(n=t),!this.options.resources||this.options.partialBundledLanguages){if(r&&r.toLowerCase()==="cimode"&&(!this.options.preload||this.options.preload.length===0))return n();const i=[],o=a=>{!a||a==="cimode"||this.services.languageUtils.toResolveHierarchy(a).forEach(s=>{s!=="cimode"&&i.indexOf(s)<0&&i.push(s)})};r?o(r):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(a=>o(a)),this.options.preload&&this.options.preload.forEach(a=>o(a)),this.services.backendConnector.load(i,this.options.ns,a=>{!a&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),n(a)})}else n(null)}reloadResources(t,n,r){const i=nC();return typeof t=="function"&&(r=t,t=void 0),typeof n=="function"&&(r=n,n=void 0),t||(t=this.languages),n||(n=this.options.ns),r||(r=lI),this.services.backendConnector.reload(t,n,o=>{i.resolve(),r(o)}),i}use(t){if(!t)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!t.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return t.type==="backend"&&(this.modules.backend=t),(t.type==="logger"||t.log&&t.warn&&t.error)&&(this.modules.logger=t),t.type==="languageDetector"&&(this.modules.languageDetector=t),t.type==="i18nFormat"&&(this.modules.i18nFormat=t),t.type==="postProcessor"&&P4e.addPostProcessor(t),t.type==="formatter"&&(this.modules.formatter=t),t.type==="3rdParty"&&this.modules.external.push(t),this}setResolvedLanguage(t){if(!(!t||!this.languages)&&!(["cimode","dev"].indexOf(t)>-1))for(let n=0;n<this.languages.length;n++){const r=this.languages[n];if(!(["cimode","dev"].indexOf(r)>-1)&&this.store.hasLanguageSomeTranslations(r)){this.resolvedLanguage=r;break}}}changeLanguage(t,n){var r=this;this.isLanguageChangingTo=t;const i=nC();this.emit("languageChanging",t);const o=l=>{this.language=l,this.languages=this.services.languageUtils.toResolveHierarchy(l),this.resolvedLanguage=void 0,this.setResolvedLanguage(l)},a=(l,c)=>{c?(o(c),this.translator.changeLanguage(c),this.isLanguageChangingTo=void 0,this.emit("languageChanged",c),this.logger.log("languageChanged",c)):this.isLanguageChangingTo=void 0,i.resolve(function(){return r.t(...arguments)}),n&&n(l,function(){return r.t(...arguments)})},s=l=>{!t&&!l&&this.services.languageDetector&&(l=[]);const c=Cr(l)?l:this.services.languageUtils.getBestMatchFromCodes(l);c&&(this.language||o(c),this.translator.language||this.translator.changeLanguage(c),this.services.languageDetector&&this.services.languageDetector.cacheUserLanguage&&this.services.languageDetector.cacheUserLanguage(c)),this.loadResources(c,u=>{a(u,c)})};return!t&&this.services.languageDetector&&!this.services.languageDetector.async?s(this.services.languageDetector.detect()):!t&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(s):this.services.languageDetector.detect(s):s(t),i}getFixedT(t,n,r){var i=this;const o=function(a,s){let l;if(typeof s!="object"){for(var c=arguments.length,u=new Array(c>2?c-2:0),d=2;d<c;d++)u[d-2]=arguments[d];l=i.options.overloadTranslationOptionHandler([a,s].concat(u))}else l={...s};l.lng=l.lng||o.lng,l.lngs=l.lngs||o.lngs,l.ns=l.ns||o.ns,l.keyPrefix!==""&&(l.keyPrefix=l.keyPrefix||r||o.keyPrefix);const f=i.options.keySeparator||".";let h;return l.keyPrefix&&Array.isArray(a)?h=a.map(m=>`${l.keyPrefix}${f}${m}`):h=l.keyPrefix?`${l.keyPrefix}${f}${a}`:a,i.t(h,l)};return Cr(t)?o.lng=t:o.lngs=t,o.ns=n,o.keyPrefix=r,o}t(){return this.translator&&this.translator.translate(...arguments)}exists(){return this.translator&&this.translator.exists(...arguments)}setDefaultNamespace(t){this.options.defaultNS=t}hasLoadedNamespace(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const r=n.lng||this.resolvedLanguage||this.languages[0],i=this.options?this.options.fallbackLng:!1,o=this.languages[this.languages.length-1];if(r.toLowerCase()==="cimode")return!0;const a=(s,l)=>{const c=this.services.backendConnector.state[`${s}|${l}`];return c===-1||c===0||c===2};if(n.precheck){const s=n.precheck(this,a);if(s!==void 0)return s}return!!(this.hasResourceBundle(r,t)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||a(r,t)&&(!i||a(o,t)))}loadNamespaces(t,n){const r=nC();return this.options.ns?(Cr(t)&&(t=[t]),t.forEach(i=>{this.options.ns.indexOf(i)<0&&this.options.ns.push(i)}),this.loadResources(i=>{r.resolve(),n&&n(i)}),r):(n&&n(),Promise.resolve())}loadLanguages(t,n){const r=nC();Cr(t)&&(t=[t]);const i=this.options.preload||[],o=t.filter(a=>i.indexOf(a)<0&&this.services.languageUtils.isSupportedCode(a));return o.length?(this.options.preload=i.concat(o),this.loadResources(a=>{r.resolve(),n&&n(a)}),r):(n&&n(),Promise.resolve())}dir(t){if(t||(t=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!t)return"rtl";const n=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],r=this.services&&this.services.languageUtils||new Ade(kde());return n.indexOf(r.getLanguagePartFromCode(t))>-1||t.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;return new fx(t,n)}cloneInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:lI;const r=t.forkResourceStore;r&&delete t.forkResourceStore;const i={...this.options,...t,isClone:!0},o=new fx(i);return(t.debug!==void 0||t.prefix!==void 0)&&(o.logger=o.logger.clone(t)),["store","services","language"].forEach(a=>{o[a]=this[a]}),o.services={...this.services},o.services.utils={hasLoadedNamespace:o.hasLoadedNamespace.bind(o)},r&&(o.store=new Rde(this.store.data,i),o.services.resourceStore=o.store),o.translator=new e4(o.services,i),o.translator.on("*",function(a){for(var s=arguments.length,l=new Array(s>1?s-1:0),c=1;c<s;c++)l[c-1]=arguments[c];o.emit(a,...l)}),o.init(i,n),o.translator.options=i,o.translator.backendConnector.services.utils={hasLoadedNamespace:o.hasLoadedNamespace.bind(o)},o}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const ss=fx.createInstance();ss.createInstance=fx.createInstance;ss.createInstance;ss.dir;ss.init;ss.loadResources;ss.reloadResources;ss.use;ss.changeLanguage;ss.getFixedT;const Pr=ss.t;ss.exists;ss.setDefaultNamespace;ss.hasLoadedNamespace;ss.loadNamespaces;ss.loadLanguages;const von=["paragraph","h1","h2","h3","h4","h5","h6"];let bon=class extends aE{constructor(){super(),this.menuData=von.map(e=>Pr(e)),this.dropDivHeight="265px",this.dropDivWith="fit-content"}onDropdownActive(e,t){return t==0?e.isActive("paragraph"):e.isActive("heading",{level:t})}onDropdownItemClick(e){e==0?this.editor.chain().setParagraph().run():this.editor.chain().setHeading({level:e}).run()}onDropdownItemRender(e){return e==0?this.menuData[e]:`<h${e}>${this.menuData[e]}</h${e}>`}onMenuTextRender(e){return this.menuData[e].replace(" ","")}};const yon=[{name:"宋体",value:"SimSun"},{name:"仿宋",value:"FangSong"},{name:"黑体",value:"SimHei"},{name:"楷体",value:"KaiTi"},{name:"微软雅黑",value:"Microsoft YaHei"},{name:"方正仿宋简体_GBK",value:"FangSong_GB2312"},{name:"Arial",value:"Arial"}];let _on=class extends aE{constructor(){super(),this.width="72px",this.menuTextWidth="60px",this.dropDivWith="150px"}onCreate(e,t){var n;super.onCreate(e,t),this.menuData=((n=t.fontFamily)==null?void 0:n.values)||yon,this.menuData=[{name:Pr("default-font-family"),value:""}].concat(this.menuData)}onDropdownActive(e,t){return e.isActive("textStyle",{fontFamily:this.menuData[t].value})}onDropdownItemClick(e){const t=this.menuData[e].value;t?this.editor.chain().setFontFamily(t).run():this.editor.chain().unsetFontFamily().run()}onDropdownItemRender(e){return this.menuData[e].name}onMenuTextRender(e){return this.menuData[e].name}};const Son=[{name:"9",value:9},{name:"10",value:10},{name:"11",value:11},{name:"12",value:12},{name:"14",value:14},{name:"18",value:18},{name:"20",value:20},{name:"22",value:22},{name:"24",value:24},{name:"26",value:26},{name:"28",value:28},{name:"30",value:30},{name:"36",value:36},{name:"42",value:42},{name:"48",value:48},{name:"56",value:56},{name:"72",value:72}];class Eon extends aE{constructor(){super(),nn(this,"defaultValue",14)}onCreate(t,n){var r,i;super.onCreate(t,n),this.menuData=((r=n.fontSize)==null?void 0:r.values)||Son,this.defaultValue=((i=n.fontSize)==null?void 0:i.defaultValue)||this.defaultValue;for(let o=0;o<this.menuData.length;o++)if(this.menuData[o].value==this.defaultValue){this.defaultMenuIndex=o,this.menuData[o].name=`${this.defaultValue}${Pr("default")}`;break}}onDropdownActive(t,n){return t.isActive("textStyle",{fontSize:`${this.menuData[n].value}px`})}onDropdownItemClick(t){var n,r;const i=this.menuData[t].value;i==this.defaultValue?(n=this.editor)==null||n.chain().focus().unsetFontSize().run():(r=this.editor)==null||r.chain().focus().setFontSize(`${i}px`).run()}onDropdownItemRender(t){return this.menuData[t].name}onMenuTextRender(t){const n=this.menuData[t];return n.value==this.defaultValue?Pr("default-font-size"):n.name}}let Con=class extends ei{constructor(){super(),this.template=`
<div>
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M8 11H12.5C13.8807 11 15 9.88071 15 8.5C15 7.11929 13.8807 6 12.5 6H8V11ZM18 15.5C18 17.9853 15.9853 20 13.5 20H6V4H12.5C14.9853 4 17 6.01472 17 8.5C17 9.70431 16.5269 10.7981 15.7564 11.6058C17.0979 12.3847 18 13.837 18 15.5ZM8 13V18H13.5C14.8807 18 16 16.8807 16 15.5C16 14.1193 14.8807 13 13.5 13H8Z"></path></svg>
</div>
`,this.registerClickListener()}onClick(e){e.toggleBold()}onActive(e){return e.isActive("bold")}},won=class extends ei{constructor(){super(),this.template=`
<div>
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M15 20H7V18H9.92661L12.0425 6H9V4H17V6H14.0734L11.9575 18H15V20Z"></path></svg>
</div>
`,this.registerClickListener()}onClick(e){e.toggleItalic()}onActive(e){return e.isActive("italic")}},Ton=class extends ei{constructor(){super(),this.template=`
<div>
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M8 3V12C8 14.2091 9.79086 16 12 16C14.2091 16 16 14.2091 16 12V3H18V12C18 15.3137 15.3137 18 12 18C8.68629 18 6 15.3137 6 12V3H8ZM4 20H20V22H4V20Z"></path></svg>
</div>
`,this.registerClickListener()}onClick(e){e.toggleUnderline()}onActive(e){return e.isActive("underline")}},xon=class extends ei{constructor(){super(),this.template=`
<div>
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M17.1538 14C17.3846 14.5161 17.5 15.0893 17.5 15.7196C17.5 17.0625 16.9762 18.1116 15.9286 18.867C14.8809 19.6223 13.4335 20 11.5862 20C9.94674 20 8.32335 19.6185 6.71592 18.8555V16.6009C8.23538 17.4783 9.7908 17.917 11.3822 17.917C13.9333 17.917 15.2128 17.1846 15.2208 15.7196C15.2208 15.0939 15.0049 14.5598 14.5731 14.1173C14.5339 14.0772 14.4939 14.0381 14.4531 14H3V12H21V14H17.1538ZM13.076 11H7.62908C7.4566 10.8433 7.29616 10.6692 7.14776 10.4778C6.71592 9.92084 6.5 9.24559 6.5 8.45207C6.5 7.21602 6.96583 6.165 7.89749 5.299C8.82916 4.43299 10.2706 4 12.2219 4C13.6934 4 15.1009 4.32808 16.4444 4.98426V7.13591C15.2448 6.44921 13.9293 6.10587 12.4978 6.10587C10.0187 6.10587 8.77917 6.88793 8.77917 8.45207C8.77917 8.87172 8.99709 9.23796 9.43293 9.55079C9.86878 9.86362 10.4066 10.1135 11.0463 10.3004C11.6665 10.4816 12.3431 10.7148 13.076 11H13.076Z"></path></svg>
</div>
`,this.registerClickListener()}onClick(e){e.toggleStrike()}onActive(e){return e.isActive("strike")}},Oon=class extends ei{constructor(){super(),this.template=`
<div>
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M5.59567 4L10.5 9.92831L15.4043 4H18L11.7978 11.4971L18 18.9943V19H15.4091L10.5 13.0659L5.59092 19H3V18.9943L9.20216 11.4971L3 4H5.59567ZM21.8 16C21.8 15.5582 21.4418 15.2 21 15.2C20.5582 15.2 20.2 15.5582 20.2 16C20.2 16.0762 20.2107 16.15 20.2306 16.2198L19.0765 16.5496C19.0267 16.375 19 16.1906 19 16C19 14.8954 19.8954 14 21 14C22.1046 14 23 14.8954 23 16C23 16.5727 22.7593 17.0892 22.3735 17.4538L20.7441 19H23V20H19V19L21.5507 16.5803C21.7042 16.4345 21.8 16.2284 21.8 16Z"></path></svg>
</div>
`,this.registerClickListener()}onClick(e){e.toggleSubscript()}onActive(e){return e.isActive("subscript")}},Ron=class extends ei{constructor(){super(),this.template=`
<div>
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M5.59567 5L10.5 10.9283L15.4043 5H18L11.7978 12.4971L18 19.9943V20H15.4091L10.5 14.0659L5.59092 20H3V19.9943L9.20216 12.4971L3 5H5.59567ZM21.5507 6.5803C21.7042 6.43453 21.8 6.22845 21.8 6C21.8 5.55817 21.4418 5.2 21 5.2C20.5582 5.2 20.2 5.55817 20.2 6C20.2 6.07624 20.2107 6.14999 20.2306 6.21983L19.0765 6.54958C19.0267 6.37497 19 6.1906 19 6C19 4.89543 19.8954 4 21 4C22.1046 4 23 4.89543 23 6C23 6.57273 22.7593 7.08923 22.3735 7.45384L20.7441 9H23V10H19V9L21.5507 6.5803V6.5803Z"></path></svg>
</div>
`,this.registerClickListener()}onClick(e){e.toggleSuperscript()}onActive(e){return e.isActive("superscript")}};const Ion=["ffffff","000000","e9d989","2972f4","609eec","de3c36","a1d533","7334c5","27b5d9","ff8926","f2f2f2","7f7f7f","ddd9c3","c6d9f0","dbe5f1","f2dcdb","ebf1dd","e5e0ec","dbeef3","fdeada","d8d8d8","595959","c4bd97","8db3e2","b8cce4","e5b9b7","d7e3bc","ccc1d9","b7dde8","fbd5b5","bfbfbf","3f3f3f","938953","548dd4","95b3d7","d99694","c3d69b","b2a2c7","92cddc","fac08f","a5a5a5","262626","494429","17365d","366092","953734","76923c","5f497a","31859b","e36c09","6e6e6e","0c0c0c","1d1b10","0f243e","244061","632423","4f6128","3f3151","205867","974806"],Aon=["c00000","ff0000","ffc000","ffff00","92d050","00b050","00b0f0","0070c0","002060","7030a0"];class D4e extends ei{constructor(){super(),nn(this,"historyColorsKey","historyColors"),nn(this,"historyColors",[]),nn(this,"iconSvg"),nn(this,"menuColorEL"),nn(this,"onColorItemClick"),nn(this,"onDefaultColorClick")}connectedCallback(){this.template=`
<div class="colors-menu">
<div class="currentColor">
<div class="colors-menu-icon">${this.iconSvg}</div>
<div class="colors-menu-status" id="menuColorEL"></div>
</div>
<div id="dropdown">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0z"></path><path d="M12 14L8 10H16L12 14Z"></path></svg>
</div>
</div>
`,super.connectedCallback();const t=localStorage.getItem(this.historyColorsKey);t&&(this.historyColors=JSON.parse(t)),this.querySelector(".currentColor").addEventListener("click",()=>{this.onColorItemClick(this.historyColors.length>0?this.historyColors[0]:"#ccc")}),this.menuColorEL=this.querySelector("#menuColorEL"),this.historyColors&&this.historyColors.length>0&&(this.menuColorEL.style.background=this.historyColors[0]),zo(this.querySelector("#dropdown"),{content:this.createMenuElement(),placement:"bottom",trigger:"click",interactive:!0,arrow:!1})}createMenuElement(){const t=document.createElement("div");return t.style.height="278px",t.style.width="250px",t.classList.add("aie-dropdown-container"),t.innerHTML=`
<div class="color-panel">
<div class="color-panel-default-button" id="defaultColor">${Pr("default")}</div>
<div style="display: flex;flex-wrap: wrap;padding-top: 5px">
${Ion.map((n,r)=>`<div class="color-item" data-color="#${n}" style="width: 18px;height:18px;margin:1px;padding:1px;border:1px solid #${r==0?"efefef":n};background: #${n}"></div>`).join(" ")}
</div>
<div class="color-panel-title">${Pr("standardColors")}</div>
<div style="display: flex;flex-wrap: wrap;">
${Aon.map(n=>`<div class="color-item" data-color="#${n}" style="width: 18px;height:18px;margin:1px;padding:1px;border:1px solid #${n};background: #${n}"></div>`).join(" ")}
</div>
<div class="color-panel-title">${Pr("historyColors")}</div>
<div style="display: flex;flex-wrap: wrap;" id="history-colors">
${this.historyColors.map(n=>`<div class="history-color-item" data-color="${n}" style="width: 22px;height: 23px;margin: 1px;background: ${n}"></div>`).join(" ")}
</div>
</div>
`,t.querySelector("#defaultColor").addEventListener("click",()=>{this.onDefaultColorClick()}),t.querySelectorAll(".color-item").forEach(n=>{n.addEventListener("click",()=>{this.invokeColorItemClick(t,n)}),n.addEventListener("mouseover",()=>{n.style.border="solid 1px #999"}),n.addEventListener("mouseout",()=>{let r=n.getAttribute("data-color");r==="#ffffff"&&(r="#efefef"),n.style.border=`solid 1px ${r}`})}),t.querySelector("#history-colors").addEventListener("click",n=>{const r=n.target.closest(".history-color-item");r&&this.invokeColorItemClick(t,r)}),t}invokeColorItemClick(t,n){const r=n.getAttribute("data-color");this.historyColors=this.historyColors.filter(i=>i!==r),this.historyColors.unshift(r),this.historyColors.length>7&&(this.historyColors=this.historyColors.slice(0,7)),t.querySelector("#history-colors").innerHTML=`
${this.historyColors.map(i=>`<div class="history-color-item" data-color="${i}" style="width: 22px;height: 23px;margin: 1px;background: ${i}"></div>`).join(" ")}
`,localStorage.setItem(this.historyColorsKey,JSON.stringify(this.historyColors)),this.menuColorEL.style.background=r,this.onColorItemClick(r)}}let Non=class extends D4e{constructor(){super(),this.historyColorsKey="highlightHistoryColors",this.iconSvg='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M15.2427 4.51138L8.50547 11.2486L7.79836 13.3699L6.7574 14.4109L9.58583 17.2393L10.6268 16.1983L12.7481 15.4912L19.4853 8.75402L15.2427 4.51138ZM21.6066 8.04692C21.9972 8.43744 21.9972 9.0706 21.6066 9.46113L13.8285 17.2393L11.7071 17.9464L10.2929 19.3606C9.90241 19.7511 9.26925 19.7511 8.87872 19.3606L4.63608 15.118C4.24556 14.7275 4.24556 14.0943 4.63608 13.7038L6.0503 12.2896L6.7574 10.1682L14.5356 2.39006C14.9261 1.99954 15.5593 1.99954 15.9498 2.39006L21.6066 8.04692ZM15.2427 7.33981L16.6569 8.75402L11.7071 13.7038L10.2929 12.2896L15.2427 7.33981ZM4.28253 16.8858L7.11096 19.7142L5.69674 21.1284L1.4541 19.7142L4.28253 16.8858Z"></path></svg>',this.onDefaultColorClick=()=>{var e;(e=this.editor)==null||e.chain().focus().unsetHighlight().run()},this.onColorItemClick=e=>{var t;(t=this.editor)==null||t.chain().focus().setHighlight({color:e}).run()}}onActive(e){return e.isActive("highlight")}};class Mon extends D4e{constructor(){super(),this.historyColorsKey="fontHistoryColors",this.iconSvg='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M5.55446 22H3.40039L11.0004 3H13.0004L20.6004 22H18.4463L16.0463 16H7.95446L5.55446 22ZM8.75446 14H15.2463L12.0004 5.88517L8.75446 14Z"></path></svg>',this.onDefaultColorClick=()=>{var t;(t=this.editor)==null||t.chain().focus().unsetColor().run()},this.onColorItemClick=t=>{var n;(n=this.editor)==null||n.chain().focus().setColor(t).run()}}onActive(t){return t.isActive("textStyle")}}class kon extends ei{constructor(){super(),this.template='<div no-hover style="width: 1px;display: flex"><div class="aie-menu-divider" /></div>'}}let Pon=class extends ei{constructor(){super(),this.template=`
<div>
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M8 4H21V6H8V4ZM3 3.5H6V6.5H3V3.5ZM3 10.5H6V13.5H3V10.5ZM3 17.5H6V20.5H3V17.5ZM8 11H21V13H8V11ZM8 18H21V20H8V18Z"></path></svg>
</div>
`,this.registerClickListener()}onClick(e){e.toggleBulletList()}onActive(e){return e.isActive("bulletList")}},Don=class extends ei{constructor(){super(),this.template=`
<div>
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M8 4H21V6H8V4ZM5 3V6H6V7H3V6H4V4H3V3H5ZM3 14V11.5H5V11H3V10H6V12.5H4V13H6V14H3ZM5 19.5H3V18.5H5V18H3V17H6V21H3V20H5V19.5ZM8 11H21V13H8V11ZM8 18H21V20H8V18Z"></path></svg>
</div>
`,this.registerClickListener()}onClick(e){e.toggleOrderedList()}onActive(e){return e.isActive("orderedList")}};class Lon extends ei{constructor(){super(),this.template=`
<div>
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M3 4H21V6H3V4ZM3 19H21V21H3V19ZM11 14H21V16H11V14ZM11 9H21V11H11V9ZM3 12.5L7 9V16L3 12.5Z"></path></svg>
</div>
`,this.registerClickListener()}onClick(t){t.outdent()}}class $on extends ei{constructor(){super(),this.template=`
<div>
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M3 4H21V6H3V4ZM3 19H21V21H3V19ZM11 14H21V16H11V14ZM11 9H21V11H11V9ZM7 12.5L3 16V9L7 12.5Z"></path></svg>
</div>
`,this.registerClickListener()}onClick(t){t.indent()}}const Fon=[{icon:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M3 4H21V6H3V4ZM3 19H17V21H3V19ZM3 14H21V16H3V14ZM3 9H17V11H3V9Z"></path></svg>',title:"align-left",value:"left"},{icon:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M3 4H21V6H3V4ZM5 19H19V21H5V19ZM3 14H21V16H3V14ZM5 9H19V11H5V9Z"></path></svg>',title:"align-center",value:"center"},{icon:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M3 4H21V6H3V4ZM7 19H21V21H7V19ZM3 14H21V16H3V14ZM7 9H21V11H7V9Z"></path></svg>',title:"align-right",value:"right"},{icon:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M3 4H21V6H3V4ZM3 19H21V21H3V19ZM3 14H21V16H3V14ZM3 9H21V11H3V9Z"></path></svg>',title:"align-justify",value:"justify"}];class Bon extends aE{constructor(){super(),this.menuData=Fon.map(t=>({...t,title:Pr(t.title)})),this.showItemsTip=!0}onDropdownActive(t,n){return t.isActive({textAlign:this.menuData[n].value})}onDropdownItemClick(t){this.editor.chain().focus().setTextAlign(this.menuData[t].value).run()}onDropdownItemRender(t){return this.menuData[t].icon}onMenuTextRender(t){return this.menuData[t].icon}}class cX{constructor(){nn(this,"tippyInstance"),nn(this,"content"),nn(this,"onConfirmClickFunc"),nn(this,"onShowFunc")}setContent(t){this.content=t}onConfirmClick(t){this.onConfirmClickFunc=t}onShow(t){this.onShowFunc=t}setTrigger(t,n="bottom",r="click"){this.tippyInstance=zo(t,{content:this.createContentElement(),appendTo:t.closest(".aie-container"),placement:n,trigger:r,interactive:!0,arrow:!1,onShow:i=>{this.onShowFunc&&this.onShowFunc(i)}})}show(){var t;(t=this.tippyInstance)==null||t.show()}hide(){var t;(t=this.tippyInstance)==null||t.hide()}createContentElement(){const t=`
<div class="aie-popover">
<div class="aie-popover-header">
<svg class="aie-popover-header-close" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12.0007 10.5865L16.9504 5.63672L18.3646 7.05093L13.4149 12.0007L18.3646 16.9504L16.9504 18.3646L12.0007 13.4149L7.05093 18.3646L5.63672 16.9504L10.5865 12.0007L5.63672 7.05093L7.05093 5.63672L12.0007 10.5865Z"></path></svg>
</div>
<div class="aie-popover-content">${this.content}</div>
<div class="aie-popover-footer">
<button class="aie-popover-footer-confirm" type="button">${Pr("confirm")}</button>
</div>
</div>
`,n=document.createElement("div");return n.innerHTML=t,n.querySelector(".aie-popover-header-close").addEventListener("click",()=>{this.tippyInstance.hide()}),n.querySelector(".aie-popover-footer-confirm").addEventListener("click",()=>{this.onConfirmClickFunc&&this.onConfirmClickFunc(this.tippyInstance),this.tippyInstance.hide()}),n}}let jon=class extends ei{constructor(){super(),this.template=`
<div>
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M17.6572 14.8282L16.2429 13.414L17.6572 11.9998C19.2193 10.4377 19.2193 7.90506 17.6572 6.34296C16.0951 4.78086 13.5624 4.78086 12.0003 6.34296L10.5861 7.75717L9.17188 6.34296L10.5861 4.92875C12.9292 2.5856 16.7282 2.5856 19.0714 4.92875C21.4145 7.27189 21.4145 11.0709 19.0714 13.414L17.6572 14.8282ZM14.8287 17.6567L13.4145 19.0709C11.0714 21.414 7.27238 21.414 4.92923 19.0709C2.58609 16.7277 2.58609 12.9287 4.92923 10.5856L6.34345 9.17139L7.75766 10.5856L6.34345 11.9998C4.78135 13.5619 4.78135 16.0946 6.34345 17.6567C7.90555 19.2188 10.4382 19.2188 12.0003 17.6567L13.4145 16.2425L14.8287 17.6567ZM14.8287 7.75717L16.2429 9.17139L9.17188 16.2425L7.75766 14.8282L14.8287 7.75717Z"></path></svg>
</div>
`}connectedCallback(){super.connectedCallback();const e=new cX;e.setContent(`
<div style="width: 250px">${Pr("link-address")}</div>
<div style="width: 250px">
<input type="text" id="href" style="width: 250px">
</div>
<div style="margin-top: 10px">${Pr("link-open-type")}</div>
<div>
<select id="target" style="width: 250px">
<option value="">${Pr("default")}</option>
<option value="_blank">${Pr("link-open-blank")}</option>
</select>
</div>
`),e.onConfirmClick(t=>{var n,r;const i=t.popper.querySelector("#href").value;if(i.trim()===""){(n=this.editor)==null||n.chain().focus().extendMarkRange("link").unsetLink().run();return}let o=t.popper.querySelector("#target").value;o.trim()===""&&(o=null),(r=this.editor)==null||r.chain().focus().extendMarkRange("link").setLink({href:i,target:o,rel:null}).run()}),e.onShow(t=>{var n;const r=(n=this.editor)==null?void 0:n.getAttributes("link");r&&r.href?t.popper.querySelector("#href").value=r.href:t.popper.querySelector("#href").value="",r&&r.target?t.popper.querySelector("#target").value=r.target:t.popper.querySelector("#target").value=""}),e.setTrigger(this.querySelector("div"),"bottom")}onActive(e){return e.isActive("link")}};class Hon extends ei{constructor(){super(),this.template=`
<div>
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M2 4C2 3.44772 2.44772 3 3 3H21C21.5523 3 22 3.44772 22 4V20C22 20.5523 21.5523 21 21 21H3C2.44772 21 2 20.5523 2 20V4ZM4 19H20V9H4V19ZM11 13H6V17H11V13Z"></path></svg>
</div>
`}connectedCallback(){super.connectedCallback();const t=new cX;t.setContent(`
<div style="padding: 10px 10px 0 0;width: 850px;max-width: calc(100% - 10px);">
<textarea id="source-code" style="width: 100%; height: 260px;"></textarea>
</div>
`),t.onConfirmClick(n=>{var r;const i=n.popper.querySelector("#source-code");(r=this.editor)==null||r.commands.setContent(i.value)}),t.onShow(n=>{var r;n.popper.querySelector("#source-code").value=((r=this.editor)==null?void 0:r.getHTML())||""}),t.setTrigger(this.querySelector("div"),"bottom")}}class Uon extends ei{constructor(){super(),this.template=`
<div>
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M4 3H20C20.5523 3 21 3.44772 21 4V20C21 20.5523 20.5523 21 20 21H4C3.44772 21 3 20.5523 3 20V4C3 3.44772 3.44772 3 4 3ZM5 5V19H19V5H5ZM11.0026 16L6.75999 11.7574L8.17421 10.3431L11.0026 13.1716L16.6595 7.51472L18.0737 8.92893L11.0026 16Z"></path></svg>
</div>
`,this.registerClickListener()}onClick(t){t.toggleTaskList()}onActive(t){return t.isActive("taskList")}}const zon=["1.0","1.25","1.5","2.0","2.5","3.0"];class Von extends aE{constructor(){super(),this.refreshMenuText=!1,this.dropDivWith="70px",this.width="36px",this.menuTextWidth="20px"}onCreate(t,n){var r;super.onCreate(t,n),this.menuData=((r=n.lineHeight)==null?void 0:r.values)||zon}onDropdownActive(t,n){let r=null;return t.isActive("paragraph")?r=t.getAttributes("paragraph").lineHeight:t.isActive("heading")&&(r=t.getAttributes("heading").lineHeight),!!(r&&r===`${(Number(this.menuData[n])*100).toFixed(0)}%`)}onDropdownItemClick(t){const n=`${(Number(this.menuData[t])*100).toFixed(0)}%`;this.editor.chain().setLineHeight(n).run()}onDropdownItemRender(t){return this.menuData[t]}onMenuTextRender(t){return`
<div style="width:18px;height: 18px;">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M11 4H21V6H11V4ZM6 7V11H4V7H1L5 3L9 7H6ZM6 17H9L5 21L1 17H4V13H6V17ZM11 18H21V20H11V18ZM9 11H21V13H9V11Z"></path></svg>
</div>
`}}class Gon extends ei{constructor(){super(),this.template=`
<div>
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M4.58341 17.3211C3.55316 16.2275 3 15 3 13.0104C3 9.51092 5.45651 6.37372 9.03059 4.82324L9.92328 6.20085C6.58804 8.00545 5.93618 10.3461 5.67564 11.8221C6.21263 11.5444 6.91558 11.4467 7.60471 11.5106C9.40908 11.6778 10.8312 13.1591 10.8312 15C10.8312 16.933 9.26416 18.5 7.33116 18.5C6.2581 18.5 5.23196 18.0096 4.58341 17.3211ZM14.5834 17.3211C13.5532 16.2275 13 15 13 13.0104C13 9.51092 15.4565 6.37372 19.0306 4.82324L19.9233 6.20085C16.588 8.00545 15.9362 10.3461 15.6756 11.8221C16.2126 11.5444 16.9156 11.4467 17.6047 11.5106C19.4091 11.6778 20.8312 13.1591 20.8312 15C20.8312 16.933 19.2642 18.5 17.3312 18.5C16.2581 18.5 15.232 18.0096 14.5834 17.3211Z"></path></svg>
</div>
`,this.registerClickListener()}onClick(t){t.toggleBlockquote()}onActive(t){return t.isActive("blockquote")}}let Won=class extends ei{constructor(){super(),nn(this,"fileInput"),this.template=`
<div>
<input type="file" accept="image/*" multiple style="display: none">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M2.9918 21C2.44405 21 2 20.5551 2 20.0066V3.9934C2 3.44476 2.45531 3 2.9918 3H21.0082C21.556 3 22 3.44495 22 3.9934V20.0066C22 20.5552 21.5447 21 21.0082 21H2.9918ZM20 15V5H4V19L14 9L20 15ZM20 17.8284L14 11.8284L6.82843 19H20V17.8284ZM8 11C6.89543 11 6 10.1046 6 9C6 7.89543 6.89543 7 8 7C9.10457 7 10 7.89543 10 9C10 10.1046 9.10457 11 8 11Z"></path></svg>
</div>
`,this.registerClickListener()}connectedCallback(){var e,t;super.connectedCallback(),(t=(e=this.options)==null?void 0:e.image)!=null&&t.customMenuInvoke?this.querySelector("input").remove():(this.fileInput=this.querySelector("input"),this.fileInput.addEventListener("change",()=>{var n,r;const i=(n=this.fileInput)==null?void 0:n.files;if(i&&i.length>0)for(let o of i)(r=this.editor)==null||r.commands.uploadImage(o);this.fileInput.value=""}))}onClick(e){var t,n,r;(n=(t=this.options)==null?void 0:t.image)!=null&&n.customMenuInvoke?this.options.image.customMenuInvoke(this.editor.aiEditor):(r=this.fileInput)==null||r.click()}};class qon extends ei{constructor(){super(),nn(this,"fileInput"),this.template=`
<div>
<input type="file" accept="video/*" style="display: none">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0z"></path><path d="M2 3.9934C2 3.44476 2.45531 3 2.9918 3H21.0082C21.556 3 22 3.44495 22 3.9934V20.0066C22 20.5552 21.5447 21 21.0082 21H2.9918C2.44405 21 2 20.5551 2 20.0066V3.9934ZM4 5V19H20V5H4ZM10.6219 8.41459L15.5008 11.6672C15.6846 11.7897 15.7343 12.0381 15.6117 12.2219C15.5824 12.2658 15.5447 12.3035 15.5008 12.3328L10.6219 15.5854C10.4381 15.708 10.1897 15.6583 10.0672 15.4745C10.0234 15.4088 10 15.3316 10 15.2526V8.74741C10 8.52649 10.1791 8.34741 10.4 8.34741C10.479 8.34741 10.5562 8.37078 10.6219 8.41459Z"></path></svg>
</div>
`,this.registerClickListener()}connectedCallback(){var t,n;super.connectedCallback(),(n=(t=this.options)==null?void 0:t.video)!=null&&n.customMenuInvoke?this.querySelector("input").remove():(this.fileInput=this.querySelector("input"),this.fileInput.addEventListener("change",()=>{var r,i;const o=(r=this.fileInput)==null?void 0:r.files;if(o&&o.length>0)for(let a of o)(i=this.editor)==null||i.commands.uploadVideo(a);this.fileInput.value=""}))}onClick(t){var n,r,i;(r=(n=this.options)==null?void 0:n.video)!=null&&r.customMenuInvoke?this.options.video.customMenuInvoke(this.editor.aiEditor):(i=this.fileInput)==null||i.click()}}let Yon=class extends ei{constructor(){super(),this.template=`
<div>
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M23 11.9998L15.9289 19.0708L14.5147 17.6566L20.1716 11.9998L14.5147 6.34292L15.9289 4.92871L23 11.9998ZM3.82843 11.9998L9.48528 17.6566L8.07107 19.0708L1 11.9998L8.07107 4.92871L9.48528 6.34292L3.82843 11.9998Z"></path></svg>
</div>
`,this.registerClickListener()}onClick(e){e.toggleCode()}onActive(e){return e.isActive("code")}},Kon=class extends ei{constructor(){super(),this.template=`
<div>
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M3.41436 5.99995L5.70726 3.70706L4.29304 2.29285L0.585938 5.99995L4.29304 9.70706L5.70726 8.29285L3.41436 5.99995ZM9.58594 5.99995L7.29304 3.70706L8.70726 2.29285L12.4144 5.99995L8.70726 9.70706L7.29304 8.29285L9.58594 5.99995ZM14.0002 2.99995H21.0002C21.5524 2.99995 22.0002 3.44767 22.0002 3.99995V20C22.0002 20.5522 21.5524 21 21.0002 21H3.00015C2.44787 21 2.00015 20.5522 2.00015 20V12H4.00015V19H20.0002V4.99995H14.0002V2.99995Z"></path></svg>
</div>
`,this.registerClickListener()}onClick(e){e.toggleCodeBlock()}onActive(e){return e.isActive("codeBlock")}};class Qon extends ei{constructor(){super(),this.template=`
<div>
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M13.9999 18.9967H20.9999V20.9967H11.9999L8.00229 20.9992L1.51457 14.5115C1.12405 14.1209 1.12405 13.4878 1.51457 13.0972L12.1212 2.49065C12.5117 2.10012 13.1449 2.10012 13.5354 2.49065L21.3136 10.2688C21.7041 10.6593 21.7041 11.2925 21.3136 11.683L13.9999 18.9967ZM15.6567 14.5115L19.1922 10.9759L12.8283 4.61197L9.29275 8.1475L15.6567 14.5115Z"></path></svg>
</div>
`,this.registerClickListener()}onClick(t){t.unsetAllMarks()}}class Xon extends ei{constructor(){super(),this.template=`
<div>
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M2 11H4V13H2V11ZM6 11H18V13H6V11ZM20 11H22V13H20V11Z"></path></svg>
</div>
`,this.registerClickListener()}onClick(t){t.setHorizontalRule()}}let Zon=class extends ei{constructor(){super(),nn(this,"instance"),this.template=`
<div>
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M14 10H10V14H14V10ZM16 10V14H19V10H16ZM14 19V16H10V19H14ZM16 19H19V16H16V19ZM14 5H10V8H14V5ZM16 5V8H19V5H16ZM8 10H5V14H8V10ZM8 19V16H5V19H8ZM8 5H5V8H8V5ZM4 3H20C20.5523 3 21 3.44772 21 4V20C21 20.5523 20.5523 21 20 21H4C3.44772 21 3 20.5523 3 20V4C3 3.44772 3.44772 3 4 3Z"></path></svg>
</div>
`}connectedCallback(){super.connectedCallback(),this.instance=zo(this.querySelector("svg"),{content:this.createMenuElement(),appendTo:this.closest(".aie-container"),placement:"bottom",trigger:"click",interactive:!0,arrow:!1})}createMenuElement(){const e=document.createElement("div");e.classList.add("aie-dropdown-container"),e.innerHTML=`
<div style="margin: 5px">
<div style="padding: 5px 0;font-size: 14px;display: flex"><span>${Pr("insertTable")}</span><span style="margin-left: auto" id="columnRows"></span></div>
<div style="display: flex;flex-wrap: wrap;width: 240px;height: 200px" id="table-cells">
${[...Array(8).keys()].map((n,r)=>[...Array(10).keys()].map((i,o)=>`<div data-i="${r}" data-j="${o}" class="table-cell" style="width: 20px;height: 20px;margin:1px;"></div>`).join("")).join("")}
</div>
</div>
`;const t=e.querySelector("#table-cells");return t.addEventListener("click",n=>{var r,i;const o=n.target.closest(".table-cell");if(o){let a=o.getAttribute("data-i"),s=o.getAttribute("data-j");(r=this.editor)==null||r.commands.insertTable({rows:Number(a)+1,cols:Number(s)+1,withHeaderRow:!0}),(i=this.instance)==null||i.hide()}}),t.addEventListener("mouseover",n=>{const r=n.target.closest(".table-cell");if(r){let i=Number(r.getAttribute("data-i")),o=Number(r.getAttribute("data-j"));const a=t.querySelectorAll("div"),s=e.querySelector("#columnRows");s.textContent=`${i+1} ${Pr("row")} x ${o+1} ${Pr("column")}`,a.forEach(l=>{let c=Number(l.getAttribute("data-i")),u=Number(l.getAttribute("data-j"));c<=i&&u<=o?l.classList.add("active"):l.classList.remove("active")})}}),t.addEventListener("mouseleave",()=>{t.querySelectorAll("div").forEach(r=>{r.classList.remove("active")});const n=e.querySelector("#columnRows");n.textContent=""}),e}};class Jon extends ei{constructor(){super(),this.template=`
<div>
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M15 18H16.5C17.8807 18 19 16.8807 19 15.5C19 14.1193 17.8807 13 16.5 13H3V11H16.5C18.9853 11 21 13.0147 21 15.5C21 17.9853 18.9853 20 16.5 20H15V22L11 19L15 16V18ZM3 4H21V6H3V4ZM9 18V20H3V18H9Z"></path></svg>
</div>
`,this.registerClickListener()}onClick(t){t.setHardBreak()}}class ean extends ei{constructor(){super(),nn(this,"fileInput"),this.template=`
<div>
<input type="file" style="display: none">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M14.8287 7.7574L9.1718 13.4143C8.78127 13.8048 8.78127 14.4379 9.1718 14.8285C9.56232 15.219 10.1955 15.219 10.586 14.8285L16.2429 9.17161C17.4144 8.00004 17.4144 6.10055 16.2429 4.92897C15.0713 3.7574 13.1718 3.7574 12.0002 4.92897L6.34337 10.5858C4.39075 12.5384 4.39075 15.7043 6.34337 17.6569C8.29599 19.6095 11.4618 19.6095 13.4144 17.6569L19.0713 12L20.4855 13.4143L14.8287 19.0711C12.095 21.8048 7.66283 21.8048 4.92916 19.0711C2.19549 16.3374 2.19549 11.9053 4.92916 9.17161L10.586 3.51476C12.5386 1.56214 15.7045 1.56214 17.6571 3.51476C19.6097 5.46738 19.6097 8.63321 17.6571 10.5858L12.0002 16.2427C10.8287 17.4143 8.92916 17.4143 7.75759 16.2427C6.58601 15.0711 6.58601 13.1716 7.75759 12L13.4144 6.34319L14.8287 7.7574Z"></path></svg>
</div>
`,this.registerClickListener()}connectedCallback(){var t,n;super.connectedCallback(),(n=(t=this.options)==null?void 0:t.attachment)!=null&&n.customMenuInvoke?this.querySelector("input").remove():(this.fileInput=this.querySelector("input"),this.fileInput.addEventListener("change",()=>{var r,i;const o=(r=this.fileInput)==null?void 0:r.files;if(o&&o.length>0)for(let a of o)(i=this.editor)==null||i.commands.uploadAttachment(a);this.fileInput.value=""}))}onClick(t){var n,r,i;(r=(n=this.options)==null?void 0:n.attachment)!=null&&r.customMenuInvoke?this.options.attachment.customMenuInvoke(this.editor.aiEditor):(i=this.fileInput)==null||i.click()}}class tan extends ei{constructor(){super(),nn(this,"fullscreenSvg",'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M8 3V5H4V9H2V3H8ZM2 21V15H4V19H8V21H2ZM22 21H16V19H20V15H22V21ZM22 9H20V5H16V3H22V9Z"></path></svg>'),nn(this,"fullscreenExitSvg",'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M18 7H22V9H16V3H18V7ZM8 9H2V7H6V3H8V9ZM18 17V21H16V15H22V17H18ZM8 15V21H6V17H2V15H8Z"></path></svg>'),nn(this,"isFullscreen",!1),this.template=`
<div>
${this.fullscreenSvg}
</div>
`,this.registerClickListener()}onClick(t){const n=this.closest(".aie-container");this.isFullscreen?(n.style.height="100%",n.style.width="",n.style.background="",n.style.position="",n.style.top="",n.style.left="",n.style.zIndex=""):(n.style.height="calc(100vh - 2px)",n.style.width="calc(100% - 2px)",n.style.position="fixed",n.style.top="0",n.style.left="0",n.style.zIndex="9999"),this.isFullscreen=!this.isFullscreen,this.querySelector("div").innerHTML=this.isFullscreen?this.fullscreenExitSvg:this.fullscreenSvg}}class nan extends ei{constructor(){super(),this.template=`
<div>
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M17 2C17.5523 2 18 2.44772 18 3V7H21C21.5523 7 22 7.44772 22 8V18C22 18.5523 21.5523 19 21 19H18V21C18 21.5523 17.5523 22 17 22H7C6.44772 22 6 21.5523 6 21V19H3C2.44772 19 2 18.5523 2 18V8C2 7.44772 2.44772 7 3 7H6V3C6 2.44772 6.44772 2 7 2H17ZM16 17H8V20H16V17ZM20 9H4V17H6V16C6 15.4477 6.44772 15 7 15H17C17.5523 15 18 15.4477 18 16V17H20V9ZM8 10V12H5V10H8ZM16 4H8V7H16V4Z"></path></svg>
</div>
`,this.registerClickListener()}onClick(t){let n=this.closest(".aie-container").querySelector(".aie-content").innerHTML;n=`<div class="aie-container" style="border: none;padding: 0;margin: 0"><div class="aie-content" style="border: none;height: auto;overflow: visible">${n}</div></div>`;const r=Array.from(document.querySelectorAll("style, link")).map(s=>s.outerHTML).join("")+n,i=document.createElement("iframe");i.id="aie-print-iframe",i.setAttribute("style","position: absolute; width: 0; height: 0; top: -10px; left: -10px;"),document.body.appendChild(i);const o=i.contentWindow,a=i.contentDocument||i.contentWindow&&i.contentWindow.document;a&&(a.open(),a.write(r),a.close()),o&&(i.onload=function(){try{setTimeout(()=>{o.focus();try{o.document.execCommand("print",!1)||o.print()}catch{o.print()}o.close()},10)}catch(s){console.error(s)}setTimeout(function(){document.body.removeChild(i)},100)})}}const Dde=["😀","😃","😄","😁","😆","😅","🤣","😂","🙂","🙃","😉","😊","😇","🥰","😍","🤩","😘","😗","😚","😙","🥲","😋","😛","😜","🤪","😝","🤑","🤗","🤭","🤫","🤔","🤐","🤨","😐","😑","😶","😶‍🌫","😏","😒","🙄","😬","😮‍💨","🤥","😌","😔","😪","🤤","😴","😷","🤒","🤕","🤢","🤮","🤧","🥵","🥶","🥴","😵","😵‍💫","🤯","🤠","🥳","🥸","😎","🤓","🧐","😕","😟","🙁","😮","😲","😳","🥺","😦","😧","😨","😰","😥","😢","😭","😱","😖","😣","😞","😓","😩","😫","🥱","😤","😡","😠","🤬","😈","👿","💀","☠️","💩","🤡","👹","👺","👻","👽","👾","🤖","😺","😸","😹","😻","😼","😽","🙀","😿","😾","👍","👎","🙏","🙈","🙉","🙊","💌","💘","💝","💖","💗","💓","💞","💕","💟","❣️","💔","💋","💯","💢","💥","💫","💦","💨","💤"];class ran extends ei{constructor(){super(),nn(this,"emojis",Dde),nn(this,"tippy"),this.template=`
<div>
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20ZM8 13H16C16 15.2091 14.2091 17 12 17C9.79086 17 8 15.2091 8 13ZM8 11C7.17157 11 6.5 10.3284 6.5 9.5C6.5 8.67157 7.17157 8 8 8C8.82843 8 9.5 8.67157 9.5 9.5C9.5 10.3284 8.82843 11 8 11ZM16 11C15.1716 11 14.5 10.3284 14.5 9.5C14.5 8.67157 15.1716 8 16 8C16.8284 8 17.5 8.67157 17.5 9.5C17.5 10.3284 16.8284 11 16 11Z"></path></svg>
</div>
`}onCreate(t,n){var r;super.onCreate(t,n),this.emojis=((r=n.emoji)==null?void 0:r.values)||Dde}connectedCallback(){super.connectedCallback(),this.tippy=zo(this.querySelector("svg"),{content:this.createMenuElement(),appendTo:this.closest(".aie-container"),placement:"bottom",trigger:"click",interactive:!0,arrow:!1})}createMenuElement(){const t=document.createElement("div");return t.style.maxWidth="450px",t.style.overflow="hidden",t.style.display="flex",t.style.justifyContent="center",t.classList.add("aie-dropdown-container"),t.innerHTML=`
<div class="emoji-cells">
${this.emojis.map(n=>`<div class="emoji-cell"><span>${n}</span></div>`).join("")}
</div>
`,t.querySelector(".emoji-cells").addEventListener("click",n=>{var r,i;const o=n.target.closest(".emoji-cell");o&&((r=this.editor)==null||r.commands.insertContent(o.querySelector("span").innerHTML),(i=this.tippy)==null||i.hide())}),t}}class ian extends ei{constructor(){super(),this.template='<div><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M5 4.99658V7.99658H19V4.99658H5ZM4 2.99658H20C20.5523 2.99658 21 3.4443 21 3.99658V8.99658C21 9.54887 20.5523 9.99658 20 9.99658H4C3.44772 9.99658 3 9.54887 3 8.99658V3.99658C3 3.4443 3.44772 2.99658 4 2.99658ZM6 11.9966H12C12.5523 11.9966 13 12.4443 13 12.9966V15.9966H14V21.9966H10V15.9966H11V13.9966H5C4.44772 13.9966 4 13.5489 4 12.9966V10.9966H6V11.9966ZM17.7322 13.7288L19.5 11.961L21.2678 13.7288C22.2441 14.7051 22.2441 16.288 21.2678 17.2643C20.2915 18.2407 18.7085 18.2407 17.7322 17.2643C16.7559 16.288 16.7559 14.7051 17.7322 13.7288Z"></path></svg></div>',this.registerClickListener()}onClick(t){var n;t.setPainter((n=this.editor)==null?void 0:n.state.selection.$head.marks())}}class pO{constructor(t,n,r){nn(this,"editor"),nn(this,"globalConfig"),nn(this,"aiModelName"),nn(this,"aiModelConfig"),this.editor=t,this.globalConfig=n,this.aiModelName=r,this.aiModelConfig=n.models[r]}chatWithPayload(t,n){const r=o=>{this.createAiClient(o,n).start(typeof t=="string"?t:JSON.stringify(t))},i=()=>{n==null||n.onStop()};this.globalConfig.onCreateClientUrl?this.globalConfig.onCreateClientUrl(this.aiModelName,this.aiModelConfig,r,i):r(this.createAiClientUrl())}chat(t,n,r){const i=a=>{const s=this.createAiClient(a,r),l=n.includes("{content}")?n.split("{content}").join(t):`${t?t+`
`:""}${n}`,c=this.wrapPayload(l);s.start(typeof c=="string"?c:JSON.stringify(c))},o=()=>{r==null||r.onStop()};this.globalConfig.onCreateClientUrl?this.globalConfig.onCreateClientUrl(this.aiModelName,this.aiModelConfig,i,o):i(this.createAiClientUrl())}}class L4e{constructor(t,n){nn(this,"isStop",!1),nn(this,"url"),nn(this,"webSocket"),nn(this,"isOpen",!1),nn(this,"payload"),nn(this,"listener"),this.url=t,this.listener=n}start(t){this.listener.onStart(this),this.payload=t,this.webSocket=new WebSocket(this.url),this.webSocket.onopen=n=>this.onOpen(n),this.webSocket.onmessage=n=>this.onMessage(n),this.webSocket.onclose=n=>this.onClose(n),this.webSocket.onerror=n=>this.onError(n)}stop(){this.webSocket&&(this.webSocket.close(),this.webSocket=void 0,this.isStop||(this.listener.onStop(),this.isStop=!0))}send(t){this.webSocket&&this.isOpen&&this.webSocket.send(t)}onOpen(t){this.isOpen=!0,this.send(this.payload)}onMessage(t){this.listener.onMessage(t.data)}onClose(t){this.isOpen=!1,this.isStop||(this.listener.onStop(),this.isStop=!0)}onError(t){this.isOpen=!1,this.isStop||(this.listener.onStop(),this.isStop=!0)}}var jm=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function uX(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function oan(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 $4e={exports:{}};function aan(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var Lde={exports:{}};const san={},lan=Object.freeze(Object.defineProperty({__proto__:null,default:san},Symbol.toStringTag,{value:"Module"})),can=oan(lan);var $de;function c9(){return $de||($de=1,function(e,t){(function(n,r){e.exports=r()})(jm,function(){var n=n||function(r,i){var o;if(typeof window<"u"&&window.crypto&&(o=window.crypto),typeof self<"u"&&self.crypto&&(o=self.crypto),typeof globalThis<"u"&&globalThis.crypto&&(o=globalThis.crypto),!o&&typeof window<"u"&&window.msCrypto&&(o=window.msCrypto),!o&&typeof jm<"u"&&jm.crypto&&(o=jm.crypto),!o&&typeof aan=="function")try{o=can}catch{}var a=function(){if(o){if(typeof o.getRandomValues=="function")try{return o.getRandomValues(new Uint32Array(1))[0]}catch{}if(typeof o.randomBytes=="function")try{return o.randomBytes(4).readInt32LE()}catch{}}throw new Error("Native crypto module could not be used to get secure random number.")},s=Object.create||function(){function b(){}return function(_){var E;return b.prototype=_,E=new b,b.prototype=null,E}}(),l={},c=l.lib={},u=c.Base=function(){return{extend:function(b){var _=s(this);return b&&_.mixIn(b),(!_.hasOwnProperty("init")||this.init===_.init)&&(_.init=function(){_.$super.init.apply(this,arguments)}),_.init.prototype=_,_.$super=this,_},create:function(){var b=this.extend();return b.init.apply(b,arguments),b},init:function(){},mixIn:function(b){for(var _ in b)b.hasOwnProperty(_)&&(this[_]=b[_]);b.hasOwnProperty("toString")&&(this.toString=b.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),d=c.WordArray=u.extend({init:function(b,_){b=this.words=b||[],_!=i?this.sigBytes=_:this.sigBytes=b.length*4},toString:function(b){return(b||h).stringify(this)},concat:function(b){var _=this.words,E=b.words,w=this.sigBytes,S=b.sigBytes;if(this.clamp(),w%4)for(var C=0;C<S;C++){var T=E[C>>>2]>>>24-C%4*8&255;_[w+C>>>2]|=T<<24-(w+C)%4*8}else for(var x=0;x<S;x+=4)_[w+x>>>2]=E[x>>>2];return this.sigBytes+=S,this},clamp:function(){var b=this.words,_=this.sigBytes;b[_>>>2]&=4294967295<<32-_%4*8,b.length=r.ceil(_/4)},clone:function(){var b=u.clone.call(this);return b.words=this.words.slice(0),b},random:function(b){for(var _=[],E=0;E<b;E+=4)_.push(a());return new d.init(_,b)}}),f=l.enc={},h=f.Hex={stringify:function(b){for(var _=b.words,E=b.sigBytes,w=[],S=0;S<E;S++){var C=_[S>>>2]>>>24-S%4*8&255;w.push((C>>>4).toString(16)),w.push((C&15).toString(16))}return w.join("")},parse:function(b){for(var _=b.length,E=[],w=0;w<_;w+=2)E[w>>>3]|=parseInt(b.substr(w,2),16)<<24-w%8*4;return new d.init(E,_/2)}},m=f.Latin1={stringify:function(b){for(var _=b.words,E=b.sigBytes,w=[],S=0;S<E;S++){var C=_[S>>>2]>>>24-S%4*8&255;w.push(String.fromCharCode(C))}return w.join("")},parse:function(b){for(var _=b.length,E=[],w=0;w<_;w++)E[w>>>2]|=(b.charCodeAt(w)&255)<<24-w%4*8;return new d.init(E,_)}},g=f.Utf8={stringify:function(b){try{return decodeURIComponent(escape(m.stringify(b)))}catch{throw new Error("Malformed UTF-8 data")}},parse:function(b){return m.parse(unescape(encodeURIComponent(b)))}},v=c.BufferedBlockAlgorithm=u.extend({reset:function(){this._data=new d.init,this._nDataBytes=0},_append:function(b){typeof b=="string"&&(b=g.parse(b)),this._data.concat(b),this._nDataBytes+=b.sigBytes},_process:function(b){var _,E=this._data,w=E.words,S=E.sigBytes,C=this.blockSize,T=C*4,x=S/T;b?x=r.ceil(x):x=r.max((x|0)-this._minBufferSize,0);var O=x*C,N=r.min(O*4,S);if(O){for(var I=0;I<O;I+=C)this._doProcessBlock(w,I);_=w.splice(0,O),E.sigBytes-=N}return new d.init(_,N)},clone:function(){var b=u.clone.call(this);return b._data=this._data.clone(),b},_minBufferSize:0});c.Hasher=v.extend({cfg:u.extend(),init:function(b){this.cfg=this.cfg.extend(b),this.reset()},reset:function(){v.reset.call(this),this._doReset()},update:function(b){return this._append(b),this._process(),this},finalize:function(b){b&&this._append(b);var _=this._doFinalize();return _},blockSize:16,_createHelper:function(b){return function(_,E){return new b.init(E).finalize(_)}},_createHmacHelper:function(b){return function(_,E){return new y.HMAC.init(b,E).finalize(_)}}});var y=l.algo={};return l}(Math);return n})}(Lde)),Lde.exports}var Fde={exports:{}},Bde;function uan(){return Bde||(Bde=1,function(e,t){(function(n,r){e.exports=r(c9())})(jm,function(n){return function(r){var i=n,o=i.lib,a=o.WordArray,s=o.Hasher,l=i.algo,c=[],u=[];(function(){function h(y){for(var b=r.sqrt(y),_=2;_<=b;_++)if(!(y%_))return!1;return!0}function m(y){return(y-(y|0))*4294967296|0}for(var g=2,v=0;v<64;)h(g)&&(v<8&&(c[v]=m(r.pow(g,1/2))),u[v]=m(r.pow(g,1/3)),v++),g++})();var d=[],f=l.SHA256=s.extend({_doReset:function(){this._hash=new a.init(c.slice(0))},_doProcessBlock:function(h,m){for(var g=this._hash.words,v=g[0],y=g[1],b=g[2],_=g[3],E=g[4],w=g[5],S=g[6],C=g[7],T=0;T<64;T++){if(T<16)d[T]=h[m+T]|0;else{var x=d[T-15],O=(x<<25|x>>>7)^(x<<14|x>>>18)^x>>>3,N=d[T-2],I=(N<<15|N>>>17)^(N<<13|N>>>19)^N>>>10;d[T]=O+d[T-7]+I+d[T-16]}var M=E&w^~E&S,F=v&y^v&b^y&b,k=(v<<30|v>>>2)^(v<<19|v>>>13)^(v<<10|v>>>22),B=(E<<26|E>>>6)^(E<<21|E>>>11)^(E<<7|E>>>25),A=C+B+M+u[T]+d[T],P=k+F;C=S,S=w,w=E,E=_+A|0,_=b,b=y,y=v,v=A+P|0}g[0]=g[0]+v|0,g[1]=g[1]+y|0,g[2]=g[2]+b|0,g[3]=g[3]+_|0,g[4]=g[4]+E|0,g[5]=g[5]+w|0,g[6]=g[6]+S|0,g[7]=g[7]+C|0},_doFinalize:function(){var h=this._data,m=h.words,g=this._nDataBytes*8,v=h.sigBytes*8;return m[v>>>5]|=128<<24-v%32,m[(v+64>>>9<<4)+14]=r.floor(g/4294967296),m[(v+64>>>9<<4)+15]=g,h.sigBytes=m.length*4,this._process(),this._hash},clone:function(){var h=s.clone.call(this);return h._hash=this._hash.clone(),h}});i.SHA256=s._createHelper(f),i.HmacSHA256=s._createHmacHelper(f)}(Math),n.SHA256})}(Fde)),Fde.exports}var jde={exports:{}},Hde;function dan(){return Hde||(Hde=1,function(e,t){(function(n,r){e.exports=r(c9())})(jm,function(n){(function(){var r=n,i=r.lib,o=i.Base,a=r.enc,s=a.Utf8,l=r.algo;l.HMAC=o.extend({init:function(c,u){c=this._hasher=new c.init,typeof u=="string"&&(u=s.parse(u));var d=c.blockSize,f=d*4;u.sigBytes>f&&(u=c.finalize(u)),u.clamp();for(var h=this._oKey=u.clone(),m=this._iKey=u.clone(),g=h.words,v=m.words,y=0;y<d;y++)g[y]^=1549556828,v[y]^=909522486;h.sigBytes=m.sigBytes=f,this.reset()},reset:function(){var c=this._hasher;c.reset(),c.update(this._iKey)},update:function(c){return this._hasher.update(c),this},finalize:function(c){var u=this._hasher,d=u.finalize(c);u.reset();var f=u.finalize(this._oKey.clone().concat(d));return f}})})()})}(jde)),jde.exports}(function(e,t){(function(n,r,i){e.exports=r(c9(),uan(),dan())})(jm,function(n){return n.HmacSHA256})})($4e);var fan=$4e.exports;const pan=uX(fan);var F4e={exports:{}};(function(e,t){(function(n,r){e.exports=r(c9())})(jm,function(n){return function(){var r=n,i=r.lib,o=i.WordArray,a=r.enc;a.Base64={stringify:function(l){var c=l.words,u=l.sigBytes,d=this._map;l.clamp();for(var f=[],h=0;h<u;h+=3)for(var m=c[h>>>2]>>>24-h%4*8&255,g=c[h+1>>>2]>>>24-(h+1)%4*8&255,v=c[h+2>>>2]>>>24-(h+2)%4*8&255,y=m<<16|g<<8|v,b=0;b<4&&h+b*.75<u;b++)f.push(d.charAt(y>>>6*(3-b)&63));var _=d.charAt(64);if(_)for(;f.length%4;)f.push(_);return f.join("")},parse:function(l){var c=l.length,u=this._map,d=this._reverseMap;if(!d){d=this._reverseMap=[];for(var f=0;f<u.length;f++)d[u.charCodeAt(f)]=f}var h=u.charAt(64);if(h){var m=l.indexOf(h);m!==-1&&(c=m)}return s(l,c,d)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="};function s(l,c,u){for(var d=[],f=0,h=0;h<c;h++)if(h%4){var m=u[l.charCodeAt(h-1)]<<h%4*2,g=u[l.charCodeAt(h)]>>>6-h%4*2,v=m|g;d[f>>>2]|=v<<24-f%4*8,f++}return o.create(d,f)}}(),n.enc.Base64})})(F4e);var han=F4e.exports;const man=uX(han),u9=()=>"10000000-1000-4000-8000-100000000000".replace(/[018]/g,e=>(e^crypto.getRandomValues(new Uint8Array(1))[0]&15>>e/4).toString(16));class gan extends pO{constructor(t,n){super(t,n,"spark"),this.aiModelConfig={version:"v3.5",protocol:"wss",...n.models.spark}}createAiClient(t,n){return new L4e(t,{onStart:n.onStart,onStop:n.onStop,onMessage:r=>{var i,o,a,s,l;const c=JSON.parse(r);c.payload&&((o=(i=c.payload.usage)==null?void 0:i.text)!=null&&o.total_tokens&&this.globalConfig.onTokenConsume&&this.globalConfig.onTokenConsume(this.aiModelName,this.aiModelConfig,(s=(a=c.payload.usage)==null?void 0:a.text)==null?void 0:s.total_tokens),(l=c.payload.choices)!=null&&l.text&&c.payload.choices.text[0]&&n.onMessage({...c.payload.choices.text[0],status:c.payload.choices.status}))}})}wrapPayload(t){const n=this.aiModelConfig,r={header:{app_id:n.appId,uid:u9().replace(/-/g,"")},parameter:{chat:{domain:this.getDomain(n),temperature:n.temperature||.5,max_tokens:n.maxTokens||2048}},payload:{message:{text:[{role:"user",content:t}]}}};return JSON.stringify(r)}getDomain(t){switch(t.version){case"v4.0":return"4.0Ultra";case"v3.5":return"generalv3.5";case"v3.1":return"generalv3";case"v2.1":return"generalv2";case"v1.1":return"lite";default:return"general"}}createAiClientUrl(){const t=this.aiModelConfig,n=new Date().toUTCString().replace("GMT","+0000");let r=`host: spark-api.xf-yun.com
`;r+="date: "+n+`
`,r+=`GET /${t.version}/chat HTTP/1.1`;const i=pan(r,t.apiSecret),o=man.stringify(i),a=`api_key="${t.apiKey}", algorithm="hmac-sha256", headers="host date request-line", signature="${o}"`,s=btoa(a);return`${t.protocol}://spark-api.xf-yun.com/${t.version}/chat?authorization=${s}&date=${encodeURIComponent(n)}&host=spark-api.xf-yun.com`}}class B4e{constructor(t,n){nn(this,"isStop",!1),nn(this,"config"),nn(this,"fetch"),nn(this,"isOpen",!1),nn(this,"payload"),nn(this,"listener"),this.config=t,this.listener=n}start(t){this.payload=t,this.onOpen(),this.listener.onStart(this)}stop(){this.fetch&&(this.fetch=void 0,this.isStop||(this.listener.onStop(),this.isStop=!0))}async send(t){if(this.isOpen)try{this.fetch=await fetch(this.config.url,{method:this.config.method,headers:this.config.headers,body:t});const n=this.fetch;if(!n.body)throw new Error("response.body is none");const r=({done:a,value:s})=>{if(a){this.onClose();return}return this.onMessage(o.decode(s)),i.read().then(({done:l,value:c})=>r({done:l,value:c}))},i=n.body.getReader(),o=new TextDecoder("utf-8");i.read().then(({done:a,value:s})=>r({done:a,value:s}))}catch{this.onError()}}onOpen(){this.isOpen=!0,this.send(this.payload)}onMessage(t){this.listener.onMessage(t)}onClose(){this.isOpen=!1,this.isStop||(this.listener.onStop(),this.isStop=!0)}onError(){this.isOpen=!1,this.isStop||(this.listener.onStop(),this.isStop=!0)}}class van extends pO{constructor(t,n){super(t,n,"wenxin"),this.aiModelConfig={...n.models.wenxin}}createAiClient(t,n){return new B4e({url:t,method:"POST"},{onStart:n.onStart,onStop:n.onStop,onMessage:r=>{const i=r.match(/data:([\s\S]*)$/);if(!i)return;const o=JSON.parse(i[1]);n.onMessage({status:o.is_end?2:1,role:"assistant",content:o.result||"",index:o.sentence_id})}})}wrapPayload(t){const n={messages:[{role:"user",content:t}],stream:!0,max_tokens:this.aiModelConfig.maxTokens||null,temperature:this.aiModelConfig.temperature||null};return JSON.stringify(n)}createAiClientUrl(){return`https://aip.baidubce.com/rpc/2.0/ai_custom/v1/wenxinworkshop/chat/completions_pro?access_token=${this.aiModelConfig.access_token}`}}var im;class ban extends TransformStream{constructor(t={allowCR:!1}){super({transform:(n,r)=>{for(n=JE(this,im)+n;;){const i=n.indexOf(`
`),o=t.allowCR?n.indexOf("\r"):-1;if(o!==-1&&o!==n.length-1&&(i===-1||i-1>o)){r.enqueue(n.slice(0,o)),n=n.slice(o+1);continue}if(i===-1)break;const a=n[i-1]==="\r"?i-1:i;r.enqueue(n.slice(0,a)),n=n.slice(i+1)}mZt(this,im,n)},flush:n=>{if(JE(this,im)==="")return;const r=t.allowCR&&JE(this,im).endsWith("\r")?JE(this,im).slice(0,-1):JE(this,im);n.enqueue(r)}}),hZt(this,im,"")}}im=new WeakMap;function yan(e){let t=new TextDecoderStream,n=new ban({allowCR:!0});return e.pipeThrough(t).pipeThrough(n)}function _an(e){let t=/[:]\s*/.exec(e),n=t&&t.index;if(n)return[e.substring(0,n),e.substring(n+t[0].length)]}async function*San(e,t){if(!e.body)return;let n=yan(e.body),r,i=n.getReader(),o;for(;;){if(t&&t.aborted)return i.cancel();if(r=await i.read(),r.done)return;if(!r.value){o&&(yield o),o=void 0;continue}let[a,s]=_an(r.value)||[];a&&(a==="data"?(o||(o={}),o[a]=o[a]?o[a]+`
`+s:s):a==="event"?(o||(o={}),o[a]=s):a==="id"?(o||(o={}),o[a]=+s||s):a==="retry"&&(o||(o={}),o[a]=+s||void 0))}}class dX{constructor(t,n){nn(this,"isStop",!1),nn(this,"config"),nn(this,"fetch"),nn(this,"isOpen",!1),nn(this,"payload"),nn(this,"listener"),nn(this,"ctrl",new AbortController),this.config=t,this.listener=n}start(t){this.payload=t,this.onOpen(),this.listener.onStart(this)}stop(){this.fetch&&(this.ctrl.abort(),this.isStop||(this.listener.onStop(),this.isStop=!0))}async send(t){let n=await fetch(this.config.url,{method:this.config.method,signal:this.ctrl.signal,headers:this.config.headers,body:t});if(!n.ok){this.onError();return}try{let r=San(n,this.ctrl.signal);for await(let i of r)i.data&&i.data.trim()!=="[DONE]"&&this.onMessage(i.data)}catch(r){console.error("error",r),this.onError()}finally{this.onClose()}}onOpen(){this.isOpen=!0,this.send(this.payload)}onMessage(t){this.listener.onMessage(t)}onClose(){this.isOpen=!1,this.isStop||(this.listener.onStop(),this.isStop=!0)}onError(){this.isOpen=!1,this.isStop||(this.listener.onStop(),this.isStop=!0)}}class Ean extends pO{constructor(t,n){super(t,n,"custom"),this.aiModelConfig={protocol:"sse",...n.models.custom}}createAiClient(t,n){var r;const i=this.aiModelConfig,o={onStart:n.onStart,onStop:n.onStop,onMessage:s=>{var l;const c=this.aiModelConfig,u=(l=c.parseMessage)==null?void 0:l.call(c,s);u&&n.onMessage(u)}},a={url:t,method:i.method||"post",headers:(r=i.headers)==null?void 0:r.call(i)};return i.protocol==="sse"?new dX(a,o):i.protocol==="http"?new B4e(a,o):new L4e(t,o)}wrapPayload(t){var n;const r=this.aiModelConfig;return(n=r.wrapPayload)==null?void 0:n.call(r,t)}createAiClientUrl(){var t;const n=this.aiModelConfig;return typeof n.url=="string"?n.url:(t=n.url)==null?void 0:t.call(n)}}class Can extends pO{constructor(t,n){super(t,n,"openai"),this.aiModelConfig={endpoint:"https://api.openai.com",...n.models.openai}}createAiClient(t,n){const r=this.aiModelConfig,i={"Content-Type":"application/json"};return r.apiKey&&(i.Authorization=`Bearer ${r.apiKey}`),new dX({url:t,method:"post",headers:i},{onStart:n.onStart,onStop:n.onStop,onMessage:o=>{var a,s;let l=null;try{l=JSON.parse(o)}catch(c){console.error("error",c,o);return}!l.choices||l.choices.length===0||(n.onMessage({status:l.choices[0].finish_reason==="stop"?2:1,role:"assistant",content:((a=l.choices[0].delta)==null?void 0:a.content)||"",index:l.choices[0].index}),this.globalConfig.onTokenConsume&&(s=l.choices[0].usage)!=null&&s.total_tokens&&this.globalConfig.onTokenConsume(this.aiModelName,this.aiModelConfig,l.choices[0].usage.total_tokens))}})}wrapPayload(t){const n=this.aiModelConfig,r={messages:[{role:"user",content:t}],max_tokens:n.maxTokens||null,temperature:n.temperature||null,stream:!0};return n.model&&(r.model=n.model),JSON.stringify(r)}createAiClientUrl(){const t=this.aiModelConfig;if(t.customUrl){if(typeof t.customUrl=="string")return t.customUrl;if(typeof t.customUrl=="function")return t.customUrl()}return`${t.endpoint}/v1/chat/completions`}}class wan extends pO{constructor(t,n){super(t,n,"gitee"),this.aiModelConfig={top_p:.7,top_k:50,...n.models.gitee}}createAiClient(t,n){const r=this.aiModelConfig;return new dX({url:t,method:"post",headers:{"Content-Type":"application/json",Authorization:`Bearer ${r.apiKey}`}},{onStart:n.onStart,onStop:n.onStop,onMessage:i=>{var o,a;let s=null;try{s=JSON.parse(i)}catch(l){console.error("error",l,i);return}n.onMessage({status:s.choices[0].finish_reason==="stop"?2:1,role:"assistant",content:((o=s.choices[0].delta)==null?void 0:o.content)||"",index:s.choices[0].index}),this.globalConfig.onTokenConsume&&(a=s.usage)!=null&&a.total_tokens&&this.globalConfig.onTokenConsume(this.aiModelName,this.aiModelConfig,s.usage.total_tokens)}})}wrapPayload(t){const n=this.aiModelConfig,r={messages:[{role:"user",content:t}],stream:!0,max_tokens:n.maxTokens||null,temperature:n.temperature||null,top_p:n.top_p,top_k:n.top_k};return JSON.stringify(r)}createAiClientUrl(){const{endpoint:t}=this.aiModelConfig;return t}}class Sg{static init(t,n){var r;if(n&&n.models)for(let i of Object.keys(n.models))switch(i){case"spark":this.set(i,new gan(t,n));break;case"wenxin":this.set(i,new van(t,n));break;case"openai":this.set(i,new Can(t,n));break;case"gitee":this.set(i,new wan(t,n));break;case"custom":this.set(i,new Ean(t,n));break;default:const o=(r=n.modelFactory)==null?void 0:r.create(i,t,n);o&&this.set(i,o)}}static get(t){return(!t||t==="auto")&&(t=Object.keys(this.models)[0]),this.models[t]}static set(t,n){this.models[t]=n}}nn(Sg,"models",{});const Tan=e=>{let t="";return e.descendants(n=>{n.text&&(t+=n.text)}),t};class t4{constructor(t,n){nn(this,"editor"),nn(this,"from"),nn(this,"options"),this.editor=t,this.from=t.view.state.selection.from,this.options=n||{markdownParseEnable:!0}}onStart(){}onStop(){}onMessage(t){const{state:{tr:n},view:r}=this.editor;if(r.dispatch(n.insertText(t.content)),t.status==2&&this.options.markdownParseEnable){const i=this.editor.state.selection.to,o=this.editor.state.doc.textBetween(this.from,i),{state:{tr:a},view:s}=this.editor,l=this.editor.parseMarkdown(o);if(this.options.useMarkdownTextOnly){const c=Tan(l),u=this.editor.schema.text(c);s.dispatch(a.replaceWith(this.from,i,u).scrollIntoView())}else s.dispatch(a.replaceWith(this.from,i,l).scrollIntoView())}this.editor.commands.scrollIntoView()}}const xan=[{icon:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0z"></path><path d="M4 18.9997H20V13.9997H22V19.9997C22 20.552 21.5523 20.9997 21 20.9997H3C2.44772 20.9997 2 20.552 2 19.9997V13.9997H4V18.9997ZM16.1716 6.9997L12.2218 3.04996L13.636 1.63574L20 7.9997L13.636 14.3637L12.2218 12.9495L16.1716 8.9997H5V6.9997H16.1716Z"></path></svg>',name:"ai-continuation",prompt:`<content>{content}</content>
请帮我继续扩展一些这段话的内容。
注意:你应该先判断一下这句话是中文还是英文,如果是中文,请给我返回中文的内容,如果是英文,请给我返回英文内容,只需要返回内容即可,不需要告知我是中文还是英文。`,text:"focusBefore",model:"auto"},{icon:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0z"></path><path d="M15 5.25C16.7949 5.25 18.25 3.79493 18.25 2H19.75C19.75 3.79493 21.2051 5.25 23 5.25V6.75C21.2051 6.75 19.75 8.20507 19.75 10H18.25C18.25 8.20507 16.7949 6.75 15 6.75V5.25ZM4 7C4 5.89543 4.89543 5 6 5H13V3H6C3.79086 3 2 4.79086 2 7V17C2 19.2091 3.79086 21 6 21H18C20.2091 21 22 19.2091 22 17V12H20V17C20 18.1046 19.1046 19 18 19H6C4.89543 19 4 18.1046 4 17V7Z"></path></svg>',name:"ai-optimization",prompt:`<content>{content}</content>
请帮我优化一下这段文字的内容,并返回结果
注意:你应该先判断一下这句话是中文还是英文,如果是中文,请给我返回中文的内容,如果是英文,请给我返回英文内容,只需要返回内容即可,不需要告知我是中文还是英文。`,text:"selected",model:"auto"},{icon:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0z"></path><path d="M17.934 3.0359L19.666 4.0359L18.531 6H21V8H19V12H21V14H19V21H17V14L13.9157 14.0004C13.5914 16.8623 12.3522 19.3936 10.5466 21.1933L8.98361 19.9233C10.5031 18.4847 11.5801 16.4008 11.9008 14.0009L10 14V12L12 11.999V8H10V6H12.467L11.334 4.0359L13.066 3.0359L14.777 6H16.221L17.934 3.0359ZM5 13.803L3 14.339V12.268L5 11.732V8H3V6H5V3H7V6H9V8H7V11.197L9 10.661V12.731L7 13.267V18.5C7 19.8807 5.88071 21 4.5 21H3V19H4.5C4.74546 19 4.94961 18.8231 4.99194 18.5899L5 18.5V13.803ZM17 8H14V12H17V8Z"></path></svg>',name:"ai-proofreading",prompt:`<content>{content}</content>
请帮我找出这段话的错别字,把错别字修改后,并返回结果,不要解释或其他多余的内容
注意:你应该先判断一下这句话是中文还是英文,如果是中文,请给我返回中文的内容,如果是英文,请给我返回英文内容,只需要返回内容即可,不需要告知我是中文还是英文。`,text:"selected",model:"auto"},{icon:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0z"></path><path d="M5 15V17C5 18.0544 5.81588 18.9182 6.85074 18.9945L7 19H10V21H7C4.79086 21 3 19.2091 3 17V15H5ZM18 10L22.4 21H20.245L19.044 18H14.954L13.755 21H11.601L16 10H18ZM17 12.8852L15.753 16H18.245L17 12.8852ZM8 2V4H12V11H8V14H6V11H2V4H6V2H8ZM17 3C19.2091 3 21 4.79086 21 7V9H19V7C19 5.89543 18.1046 5 17 5H14V3H17ZM6 6H4V9H6V6ZM10 6H8V9H10V6Z"></path></svg>',name:"ai-translation",prompt:"请帮我翻译以上内容,在翻译之前,想先判断一下这个内容是不是中文,如果是中文,则翻译问英文,如果是其他语言,则需要翻译为中文,注意,你只需要返回翻译的结果,不需要对此进行任何解释,不需要除了翻译结果以外的其他任何内容。",text:"selected",model:"auto"}];class Oan extends aE{constructor(){super(),nn(this,"aiMenus",xan.map(t=>({...t,name:`${Pr(t.name)}`}))),this.dropDivHeight="auto",this.dropDivWith="fit-content",this.width="36px",this.menuTextWidth="20px"}onCreate(t,n){var r;super.onCreate(t,n),this.menuData=((r=n.ai)==null?void 0:r.menus)||this.aiMenus}renderTemplate(){this.template=`
<div style="width: ${this.width};">
<div id="tippy" class="menu-ai" id="text">
<span> AI </span>
<div style="width: 18px;height: 18px;display: inline-block" >
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0z"></path><path d="M12 14L8 10H16L12 14Z"></path></svg>
</div>
</div>
</div>
`}createMenuElement(){const t=document.createElement("div");t.style.height=this.dropDivHeight,t.style.width=this.dropDivWith,t.classList.add("aie-dropdown-container");for(let n=0;n<this.menuData.length;n++){const r=document.createElement("div");r.classList.add("aie-dropdown-item"),r.innerHTML=`
<div class="text" style="display: flex;padding: 5px 10px">${this.onDropdownItemRender(n)}</div>
`,r.addEventListener("click",i=>{const o=this.menuData[n];o.onClick?o.onClick(i)&&this.tippyInstance.hide():(this.onDropdownItemClick(n),this.tippyInstance.hide())}),t.appendChild(r)}return this.tippyEl=t,t}onTransaction(t){}onDropdownActive(t,n){return!1}getSelectedText(t){if(t==="selected"){const{selection:n,doc:r}=this.editor.state;return r.textBetween(n.from,n.to)}else return this.editor.state.selection.$head.parent.textContent}onDropdownItemClick(t){const n=this.menuData[t],r=this.getSelectedText(n.text);if(r){const i=Sg.get(n.model);i?i==null||i.chat(r,n.prompt,new t4(this.editor)):console.error("Ai model config error.")}else console.error("Can not get selected text.")}onDropdownItemRender(t){return`<div style="width:18px;height: 18px;">${this.menuData[t].icon}</div><div style="margin-left: 10px">${this.menuData[t].name}</div>`}onMenuTextRender(t){return this.menuData[t].icon}}class Ran extends ei{constructor(){super(),this.template=`
<div>
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0z"></path><path d="M21 3C21.5523 3 22 3.44772 22 4V20C22 20.5523 21.5523 21 21 21H3C2.44772 21 2 20.5523 2 20V4C2 3.44772 2.44772 3 3 3H21ZM20 5H4V19H20V5ZM18 15V17H6V15H18Z"></path></svg>
</div>
`,this.registerClickListener()}onClick(t){var n;(n=this.editor)!=null&&n.isActive("container")?t.unsetContainer():t.setContainer("warning"),t.focus()}onActive(t){return t.isActive("container")}}class Ian extends ei{constructor(){super(),nn(this,"config")}onConfig(t){this.config=t,t.html?this.template=t.html:t.icon&&(this.template=`<div style="height: 16px">${t.icon}</div>`),this.addEventListener("click",n=>{this.config&&this.config.onClick&&this.config.onClick(n,this.editor.aiEditor)})}}const yr=(e,t)=>{window.customElements.get(e)||window.customElements.define(e,t)},j4e=(e,t,n,r)=>{for(let i of r)if(i)try{if(typeof i=="string"){i=i.trim(),i==="|"&&(i="divider");const o=document.createElement("aie-"+i);if(o.classList.add("aie-menu-item"),t.editable===!1&&(o.style.pointerEvents="none",o.style.opacity="0.5"),o.onCreate(e,t),i!=="divider"){const a=Pr(i);o.setAttribute("data-title",a),o.setAttribute("data-size",t.toolbarSize),a&&zo(o,{appendTo:()=>e.editor.view.dom.closest(".aie-container"),content:a,theme:"aietip",arrow:!0})}n.push(o)}else if(i.toolbarKeys){const o=i,a=document.createElement("aie-group");if(a.classList.add("aie-menu-item"),t.editable===!1&&(a.style.pointerEvents="none",a.style.opacity="0.5"),a.onCreate(e,t),a.init(e,t,o),o.title){const s=Pr(o.title);s&&zo(a,{appendTo:()=>e.editor.view.dom.closest(".aie-container"),content:s,theme:"aietip",arrow:!0})}n.push(a)}else{const o=i,a=document.createElement("aie-custom");if(a.classList.add("aie-menu-item"),t.editable===!1&&(a.style.pointerEvents="none",a.style.opacity="0.5"),o.id&&a.setAttribute("id",o.id),o.className&&a.classList.add(o.className),a.onCreate(e,t),a.onConfig(o),o.tip){const s=Pr(o.tip);s&&zo(a,{appendTo:()=>e.editor.view.dom.closest(".aie-container"),content:s,theme:"aietip",arrow:!0})}o.onCreate&&o.onCreate(a,e.editor.aiEditor),n.push(a)}}catch(o){console.error(o,"Can not create toolbar by key: "+i)}};class Aan extends ei{constructor(){super(),nn(this,"menuButtons",[]),nn(this,"tippyInstance"),nn(this,"tippyEl"),nn(this,"iconSvg",'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M12 3C11.175 3 10.5 3.675 10.5 4.5C10.5 5.325 11.175 6 12 6C12.825 6 13.5 5.325 13.5 4.5C13.5 3.675 12.825 3 12 3ZM12 18C11.175 18 10.5 18.675 10.5 19.5C10.5 20.325 11.175 21 12 21C12.825 21 13.5 20.325 13.5 19.5C13.5 18.675 12.825 18 12 18ZM12 10.5C11.175 10.5 10.5 11.175 10.5 12C10.5 12.825 11.175 13.5 12 13.5C12.825 13.5 13.5 12.825 13.5 12C13.5 11.175 12.825 10.5 12 10.5Z"></path></svg>')}onCreate(t,n){super.onCreate(t,n)}init(t,n,r){j4e(t,n,this.menuButtons,r.toolbarKeys),this.iconSvg=r.icon||this.iconSvg}renderTemplate(){this.template=`<div id="tippy" >${this.iconSvg}</div>`}onTransaction(t){for(let n of this.menuButtons)n.onTransaction(t)}connectedCallback(){this.renderTemplate(),super.connectedCallback(),this.tippyInstance=zo(this.querySelector("#tippy"),{content:this.createMenuElement(),appendTo:this.closest(".aie-container"),placement:"bottom",trigger:"click",interactive:!0,arrow:!1})}createMenuElement(){const t=document.createElement("div");t.classList.add("aie-dropdown-container");for(let n=0;n<this.menuButtons.length;n++){const r=this.menuButtons[n],i=document.createElement("div");i.classList.add("aie-dropdown-item"),i.style.padding="5px 10px",i.style.lineHeight="16px",i.appendChild(r);const o=document.createElement("div");o.innerText=r.getAttribute("data-title"),o.style.marginLeft="5px",i.appendChild(o),i.addEventListener("click",a=>{if(a.target.closest(".aie-menu-item"))return;const s=i.querySelector("#tippy");if(s){s.click();return}const l=i.querySelector("#dropdown");if(l){l.click();return}r.click()}),t.appendChild(i)}return this.tippyEl=t,t}}const Nan=["undo","redo","brush","eraser","divider","heading","font-family","font-size","divider","bold","italic","underline","strike","link","code","subscript","superscript","hr","todo","emoji","divider","highlight","font-color","divider","align","line-height","divider","bullet-list","ordered-list","indent-decrease","indent-increase","break","divider","image","video","attachment","quote","container","code-block","table","divider","source-code","printer","fullscreen","ai"];yr("aie-undo",d4e);yr("aie-undo",d4e);yr("aie-redo",hrn);yr("aie-brush",ian);yr("aie-container",Ran);yr("aie-custom",Ian);yr("aie-eraser",Qon);yr("aie-heading",bon);yr("aie-font-family",_on);yr("aie-font-size",Eon);yr("aie-bold",Con);yr("aie-italic",won);yr("aie-underline",Ton);yr("aie-strike",xon);yr("aie-link",jon);yr("aie-source-code",Hon);yr("aie-code",Yon);yr("aie-subscript",Oon);yr("aie-superscript",Ron);yr("aie-highlight",Non);yr("aie-font-color",Mon);yr("aie-divider",kon);yr("aie-bullet-list",Pon);yr("aie-ordered-list",Don);yr("aie-indent-decrease",Lon);yr("aie-indent-increase",$on);yr("aie-align",Bon);yr("aie-todo",Uon);yr("aie-line-height",Von);yr("aie-break",Jon);yr("aie-quote",Gon);yr("aie-image",Won);yr("aie-video",qon);yr("aie-code-block",Kon);yr("aie-hr",Xon);yr("aie-table",Zon);yr("aie-attachment",ean);yr("aie-fullscreen",tan);yr("aie-printer",nan);yr("aie-emoji",ran);yr("aie-ai",Oan);yr("aie-group",Aan);class H4e extends HTMLElement{constructor(){super(),nn(this,"menuButtons",[])}connectedCallback(){if(this.children&&this.children.length>0)return;const t=document.createElement("div");for(let n of this.menuButtons)t.appendChild(n);t.style.display="flex",t.style.flexWrap="wrap",this.appendChild(t)}onCreate(t,n){let r=n.toolbarKeys||Nan;r=r.filter(i=>{var o;return typeof i=="string"?!((o=n.toolbarExcludeKeys)!=null&&o.includes(i)):!0}).filter((i,o,a)=>{const s=a[o-1];if(typeof i=="string"&&(typeof s=="string"||typeof s>"u")){const l=["divider","|",void 0];return l.includes(i)?!l.includes(s):!0}return!0}),j4e(t,n,this.menuButtons,r)}onTransaction(t){for(let n of this.menuButtons)n.onTransaction(t)}onEditableChange(t){for(let n of this.menuButtons)n.onEditableChange(t)}}class U4e extends HTMLElement{constructor(){super(),nn(this,"count",0),nn(this,"draggable",!0)}initDraggable(t){if(this.draggable=!!t,!this.draggable)return;let n,r,i=300,o=300,a,s,l;const c=d=>{d.preventDefault(),document.removeEventListener("mouseup",c),document.removeEventListener("mousemove",u)},u=d=>{const f=d.clientX-n,h=d.clientY-r;if(f==0&&h==0)return;let m=a+f,g=s+h;m<i&&(m=i),g<o&&(g=o),l.style.width=`${m}px`,l.style.height=`${g}px`};this.addEventListener("mousedown",d=>{var f;d.target.closest("svg")&&(d.preventDefault(),document.addEventListener("mouseup",c),document.addEventListener("mousemove",u),l=(f=d.target.closest(".aie-container"))==null?void 0:f.parentElement,a=l.clientWidth,s=l.clientHeight,n=d.clientX,r=d.clientY)}),this.addEventListener("mouseup",c)}updateCharacters(){this.draggable?this.innerHTML=`<div style="display: flex">
<span> Powered by AiEditor, Characters: ${this.count} </span>
<div style="width: 20px;height: 20px;overflow: hidden">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0z"></path><path d="M12 16L6 10H18L12 16Z"></path></svg>
</div>
</div>
`:this.innerHTML=`<div style="display: flex;">
<span style="margin-right: 10px"> Powered by AiEditor, Characters: ${this.count} </span>
</div>
`}onCreate(t,n){this.count=t.editor.storage.characterCount.characters(),this.updateCharacters()}onTransaction(t){const n=t.editor.storage.characterCount.characters();n!=this.count&&(this.count=n,this.updateCharacters())}onEditableChange(t){}}const Man=/^\s*>\s$/,kan=Eo.create({name:"blockquote",addOptions(){return{HTMLAttributes:{}}},content:"block+",group:"block",defining:!0,parseHTML(){return[{tag:"blockquote"}]},renderHTML({HTMLAttributes:e}){return["blockquote",zr(this.options.HTMLAttributes,e),0]},addCommands(){return{setBlockquote:()=>({commands:e})=>e.wrapIn(this.name),toggleBlockquote:()=>({commands:e})=>e.toggleWrap(this.name),unsetBlockquote:()=>({commands:e})=>e.lift(this.name)}},addKeyboardShortcuts(){return{"Mod-Shift-b":()=>this.editor.commands.toggleBlockquote()}},addInputRules(){return[i0({find:Man,type:this.type})]}}),Pan=/(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))$/,Dan=/(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))/g,Lan=/(?:^|\s)(__(?!\s+__)((?:[^_]+))__(?!\s+__))$/,$an=/(?:^|\s)(__(?!\s+__)((?:[^_]+))__(?!\s+__))/g,Fan=Pl.create({name:"bold",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"strong"},{tag:"b",getAttrs:e=>e.style.fontWeight!=="normal"&&null},{style:"font-weight=400",clearMark:e=>e.type.name===this.name},{style:"font-weight",getAttrs:e=>/^(bold(er)?|[5-9]\d{2,})$/.test(e)&&null}]},renderHTML({HTMLAttributes:e}){return["strong",zr(this.options.HTMLAttributes,e),0]},addCommands(){return{setBold:()=>({commands:e})=>e.setMark(this.name),toggleBold:()=>({commands:e})=>e.toggleMark(this.name),unsetBold:()=>({commands:e})=>e.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-b":()=>this.editor.commands.toggleBold(),"Mod-B":()=>this.editor.commands.toggleBold()}},addInputRules(){return[r0({find:Pan,type:this.type}),r0({find:Lan,type:this.type})]},addPasteRules(){return[_g({find:Dan,type:this.type}),_g({find:$an,type:this.type})]}}),Ban="listItem",Ude="textStyle",zde=/^\s*([-+*])\s$/,jan=Eo.create({name:"bulletList",addOptions(){return{itemTypeName:"listItem",HTMLAttributes:{},keepMarks:!1,keepAttributes:!1}},group:"block list",content(){return`${this.options.itemTypeName}+`},parseHTML(){return[{tag:"ul"}]},renderHTML({HTMLAttributes:e}){return["ul",zr(this.options.HTMLAttributes,e),0]},addCommands(){return{toggleBulletList:()=>({commands:e,chain:t})=>this.options.keepAttributes?t().toggleList(this.name,this.options.itemTypeName,this.options.keepMarks).updateAttributes(Ban,this.editor.getAttributes(Ude)).run():e.toggleList(this.name,this.options.itemTypeName,this.options.keepMarks)}},addKeyboardShortcuts(){return{"Mod-Shift-8":()=>this.editor.commands.toggleBulletList()}},addInputRules(){let e=i0({find:zde,type:this.type});return(this.options.keepMarks||this.options.keepAttributes)&&(e=i0({find:zde,type:this.type,keepMarks:this.options.keepMarks,keepAttributes:this.options.keepAttributes,getAttributes:()=>this.editor.getAttributes(Ude),editor:this.editor})),[e]}}),Han=/(?:^|\s)(`(?!\s+`)((?:[^`]+))`(?!\s+`))$/,Uan=/(?:^|\s)(`(?!\s+`)((?:[^`]+))`(?!\s+`))/g,zan=Pl.create({name:"code",addOptions(){return{HTMLAttributes:{}}},excludes:"_",code:!0,exitable:!0,parseHTML(){return[{tag:"code"}]},renderHTML({HTMLAttributes:e}){return["code",zr(this.options.HTMLAttributes,e),0]},addCommands(){return{setCode:()=>({commands:e})=>e.setMark(this.name),toggleCode:()=>({commands:e})=>e.toggleMark(this.name),unsetCode:()=>({commands:e})=>e.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-e":()=>this.editor.commands.toggleCode()}},addInputRules(){return[r0({find:Han,type:this.type})]},addPasteRules(){return[_g({find:Uan,type:this.type})]}}),Van=/^```([a-z]+)?[\s\n]$/,Gan=/^~~~([a-z]+)?[\s\n]$/,z4e=Eo.create({name:"codeBlock",addOptions(){return{languageClassPrefix:"language-",exitOnTripleEnter:!0,exitOnArrowDown:!0,defaultLanguage:null,HTMLAttributes:{}}},content:"text*",marks:"",group:"block",code:!0,defining:!0,addAttributes(){return{language:{default:this.options.defaultLanguage,parseHTML:e=>{var t;const{languageClassPrefix:n}=this.options;return[...((t=e.firstElementChild)===null||t===void 0?void 0:t.classList)||[]].filter(i=>i.startsWith(n)).map(i=>i.replace(n,""))[0]||null},rendered:!1}}},parseHTML(){return[{tag:"pre",preserveWhitespace:"full"}]},renderHTML({node:e,HTMLAttributes:t}){return["pre",zr(this.options.HTMLAttributes,t),["code",{class:e.attrs.language?this.options.languageClassPrefix+e.attrs.language:null},0]]},addCommands(){return{setCodeBlock:e=>({commands:t})=>t.setNode(this.name,e),toggleCodeBlock:e=>({commands:t})=>t.toggleNode(this.name,"paragraph",e)}},addKeyboardShortcuts(){return{"Mod-Alt-c":()=>this.editor.commands.toggleCodeBlock(),Backspace:()=>{const{empty:e,$anchor:t}=this.editor.state.selection,n=t.pos===1;return!e||t.parent.type.name!==this.name?!1:n||!t.parent.textContent.length?this.editor.commands.clearNodes():!1},Enter:({editor:e})=>{if(!this.options.exitOnTripleEnter)return!1;const{state:t}=e,{selection:n}=t,{$from:r,empty:i}=n;if(!i||r.parent.type!==this.type)return!1;const o=r.parentOffset===r.parent.nodeSize-2,a=r.parent.textContent.endsWith(`
`);return!o||!a?!1:e.chain().command(({tr:s})=>(s.delete(r.pos-2,r.pos),!0)).exitCode().run()},ArrowDown:({editor:e})=>{if(!this.options.exitOnArrowDown)return!1;const{state:t}=e,{selection:n,doc:r}=t,{$from:i,empty:o}=n;if(!o||i.parent.type!==this.type||i.parentOffset!==i.parent.nodeSize-2)return!1;const a=i.after();return a===void 0?!1:r.nodeAt(a)?e.commands.command(({tr:s})=>(s.setSelection(mr.near(r.resolve(a))),!0)):e.commands.exitCode()}}},addInputRules(){return[Xz({find:Van,type:this.type,getAttributes:e=>({language:e[1]})}),Xz({find:Gan,type:this.type,getAttributes:e=>({language:e[1]})})]},addProseMirrorPlugins(){return[new Ei({key:new $i("codeBlockVSCodeHandler"),props:{handlePaste:(e,t)=>{if(!t.clipboardData||this.editor.isActive(this.type.name))return!1;const n=t.clipboardData.getData("text/plain"),r=t.clipboardData.getData("vscode-editor-data"),i=r?JSON.parse(r):void 0,o=i==null?void 0:i.mode;if(!n||!o)return!1;const{tr:a,schema:s}=e.state,l=s.text(n.replace(/\r\n?/g,`
`));return a.replaceSelectionWith(this.type.create({language:o},l)),a.selection.$from.parent.type!==this.type&&a.setSelection(er.near(a.doc.resolve(Math.max(0,a.selection.from-2)))),a.setMeta("paste",!0),e.dispatch(a),!0}}})]}}),Wan=Eo.create({name:"doc",topNode:!0,content:"block+"});function qan(e={}){return new Ei({view(t){return new Yan(t,e)}})}class Yan{constructor(t,n){var r;this.editorView=t,this.cursorPos=null,this.element=null,this.timeout=-1,this.width=(r=n.width)!==null&&r!==void 0?r:1,this.color=n.color===!1?void 0:n.color||"black",this.class=n.class,this.handlers=["dragover","dragend","drop","dragleave"].map(i=>{let o=a=>{this[i](a)};return t.dom.addEventListener(i,o),{name:i,handler:o}})}destroy(){this.handlers.forEach(({name:t,handler:n})=>this.editorView.dom.removeEventListener(t,n))}update(t,n){this.cursorPos!=null&&n.doc!=t.state.doc&&(this.cursorPos>t.state.doc.content.size?this.setCursor(null):this.updateOverlay())}setCursor(t){t!=this.cursorPos&&(this.cursorPos=t,t==null?(this.element.parentNode.removeChild(this.element),this.element=null):this.updateOverlay())}updateOverlay(){let t=this.editorView.state.doc.resolve(this.cursorPos),n=!t.parent.inlineContent,r;if(n){let s=t.nodeBefore,l=t.nodeAfter;if(s||l){let c=this.editorView.nodeDOM(this.cursorPos-(s?s.nodeSize:0));if(c){let u=c.getBoundingClientRect(),d=s?u.bottom:u.top;s&&l&&(d=(d+this.editorView.nodeDOM(this.cursorPos).getBoundingClientRect().top)/2),r={left:u.left,right:u.right,top:d-this.width/2,bottom:d+this.width/2}}}}if(!r){let s=this.editorView.coordsAtPos(this.cursorPos);r={left:s.left-this.width/2,right:s.left+this.width/2,top:s.top,bottom:s.bottom}}let i=this.editorView.dom.offsetParent;this.element||(this.element=i.appendChild(document.createElement("div")),this.class&&(this.element.className=this.class),this.element.style.cssText="position: absolute; z-index: 50; pointer-events: none;",this.color&&(this.element.style.backgroundColor=this.color)),this.element.classList.toggle("prosemirror-dropcursor-block",n),this.element.classList.toggle("prosemirror-dropcursor-inline",!n);let o,a;if(!i||i==document.body&&getComputedStyle(i).position=="static")o=-pageXOffset,a=-pageYOffset;else{let s=i.getBoundingClientRect();o=s.left-i.scrollLeft,a=s.top-i.scrollTop}this.element.style.left=r.left-o+"px",this.element.style.top=r.top-a+"px",this.element.style.width=r.right-r.left+"px",this.element.style.height=r.bottom-r.top+"px"}scheduleRemoval(t){clearTimeout(this.timeout),this.timeout=setTimeout(()=>this.setCursor(null),t)}dragover(t){if(!this.editorView.editable)return;let n=this.editorView.posAtCoords({left:t.clientX,top:t.clientY}),r=n&&n.inside>=0&&this.editorView.state.doc.nodeAt(n.inside),i=r&&r.type.spec.disableDropCursor,o=typeof i=="function"?i(this.editorView,n,t):i;if(n&&!o){let a=n.pos;if(this.editorView.dragging&&this.editorView.dragging.slice){let s=ske(this.editorView.state.doc,a,this.editorView.dragging.slice);s!=null&&(a=s)}this.setCursor(a),this.scheduleRemoval(5e3)}}dragend(){this.scheduleRemoval(20)}drop(){this.scheduleRemoval(20)}dragleave(t){(t.target==this.editorView.dom||!this.editorView.dom.contains(t.relatedTarget))&&this.setCursor(null)}}const Kan=gi.create({name:"dropCursor",addOptions(){return{color:"currentColor",width:1,class:void 0}},addProseMirrorPlugins(){return[qan(this.options)]}});class Uo extends mr{constructor(t){super(t,t)}map(t,n){let r=t.resolve(n.map(this.head));return Uo.valid(r)?new Uo(r):mr.near(r)}content(){return Rn.empty}eq(t){return t instanceof Uo&&t.head==this.head}toJSON(){return{type:"gapcursor",pos:this.head}}static fromJSON(t,n){if(typeof n.pos!="number")throw new RangeError("Invalid input for GapCursor.fromJSON");return new Uo(t.resolve(n.pos))}getBookmark(){return new fX(this.anchor)}static valid(t){let n=t.parent;if(n.isTextblock||!Qan(t)||!Xan(t))return!1;let r=n.type.spec.allowGapCursor;if(r!=null)return r;let i=n.contentMatchAt(t.index()).defaultType;return i&&i.isTextblock}static findGapCursorFrom(t,n,r=!1){e:for(;;){if(!r&&Uo.valid(t))return t;let i=t.pos,o=null;for(let a=t.depth;;a--){let s=t.node(a);if(n>0?t.indexAfter(a)<s.childCount:t.index(a)>0){o=s.child(n>0?t.indexAfter(a):t.index(a)-1);break}else if(a==0)return null;i+=n;let l=t.doc.resolve(i);if(Uo.valid(l))return l}for(;;){let a=n>0?o.firstChild:o.lastChild;if(!a){if(o.isAtom&&!o.isText&&!lr.isSelectable(o)){t=t.doc.resolve(i+o.nodeSize*n),r=!1;continue e}break}o=a,i+=n;let s=t.doc.resolve(i);if(Uo.valid(s))return s}return null}}}Uo.prototype.visible=!1;Uo.findFrom=Uo.findGapCursorFrom;mr.jsonID("gapcursor",Uo);class fX{constructor(t){this.pos=t}map(t){return new fX(t.map(this.pos))}resolve(t){let n=t.resolve(this.pos);return Uo.valid(n)?new Uo(n):mr.near(n)}}function Qan(e){for(let t=e.depth;t>=0;t--){let n=e.index(t),r=e.node(t);if(n==0){if(r.type.spec.isolating)return!0;continue}for(let i=r.child(n-1);;i=i.lastChild){if(i.childCount==0&&!i.inlineContent||i.isAtom||i.type.spec.isolating)return!0;if(i.inlineContent)return!1}}return!0}function Xan(e){for(let t=e.depth;t>=0;t--){let n=e.indexAfter(t),r=e.node(t);if(n==r.childCount){if(r.type.spec.isolating)return!0;continue}for(let i=r.child(n);;i=i.firstChild){if(i.childCount==0&&!i.inlineContent||i.isAtom||i.type.spec.isolating)return!0;if(i.inlineContent)return!1}}return!0}function Zan(){return new Ei({props:{decorations:nsn,createSelectionBetween(e,t,n){return t.pos==n.pos&&Uo.valid(n)?new Uo(n):null},handleClick:esn,handleKeyDown:Jan,handleDOMEvents:{beforeinput:tsn}}})}const Jan=VQ({ArrowLeft:cI("horiz",-1),ArrowRight:cI("horiz",1),ArrowUp:cI("vert",-1),ArrowDown:cI("vert",1)});function cI(e,t){const n=e=="vert"?t>0?"down":"up":t>0?"right":"left";return function(r,i,o){let a=r.selection,s=t>0?a.$to:a.$from,l=a.empty;if(a instanceof er){if(!o.endOfTextblock(n)||s.depth==0)return!1;l=!1,s=r.doc.resolve(t>0?s.after():s.before())}let c=Uo.findGapCursorFrom(s,t,l);return c?(i&&i(r.tr.setSelection(new Uo(c))),!0):!1}}function esn(e,t,n){if(!e||!e.editable)return!1;let r=e.state.doc.resolve(t);if(!Uo.valid(r))return!1;let i=e.posAtCoords({left:n.clientX,top:n.clientY});return i&&i.inside>-1&&lr.isSelectable(e.state.doc.nodeAt(i.inside))?!1:(e.dispatch(e.state.tr.setSelection(new Uo(r))),!0)}function tsn(e,t){if(t.inputType!="insertCompositionText"||!(e.state.selection instanceof Uo))return!1;let{$from:n}=e.state.selection,r=n.parent.contentMatchAt(n.index()).findWrapping(e.state.schema.nodes.text);if(!r)return!1;let i=Xt.empty;for(let a=r.length-1;a>=0;a--)i=Xt.from(r[a].createAndFill(null,i));let o=e.state.tr.replace(n.pos,n.pos,new Rn(i,0,0));return o.setSelection(er.near(o.doc.resolve(n.pos+1))),e.dispatch(o),!1}function nsn(e){if(!(e.selection instanceof Uo))return null;let t=document.createElement("div");return t.className="ProseMirror-gapcursor",Ci.create(e.doc,[ta.widget(e.selection.head,t,{key:"gapcursor"})])}const rsn=gi.create({name:"gapCursor",addProseMirrorPlugins(){return[Zan()]},extendNodeSchema(e){var t;const n={name:e.name,options:e.options,storage:e.storage};return{allowGapCursor:(t=Ar(Wn(e,"allowGapCursor",n)))!==null&&t!==void 0?t:null}}}),isn=Eo.create({name:"hardBreak",addOptions(){return{keepMarks:!0,HTMLAttributes:{}}},inline:!0,group:"inline",selectable:!1,linebreakReplacement:!0,parseHTML(){return[{tag:"br"}]},renderHTML({HTMLAttributes:e}){return["br",zr(this.options.HTMLAttributes,e)]},renderText(){return`
`},addCommands(){return{setHardBreak:()=>({commands:e,chain:t,state:n,editor:r})=>e.first([()=>e.exitCode(),()=>e.command(()=>{const{selection:i,storedMarks:o}=n;if(i.$from.parent.type.spec.isolating)return!1;const{keepMarks:a}=this.options,{splittableMarks:s}=r.extensionManager,l=o||i.$to.parentOffset&&i.$from.marks();return t().insertContent({type:this.name}).command(({tr:c,dispatch:u})=>{if(u&&l&&a){const d=l.filter(f=>s.includes(f.type.name));c.ensureMarks(d)}return!0}).run()})])}},addKeyboardShortcuts(){return{"Mod-Enter":()=>this.editor.commands.setHardBreak(),"Shift-Enter":()=>this.editor.commands.setHardBreak()}}}),V4e=Eo.create({name:"heading",addOptions(){return{levels:[1,2,3,4,5,6],HTMLAttributes:{}}},content:"inline*",group:"block",defining:!0,addAttributes(){return{level:{default:1,rendered:!1}}},parseHTML(){return this.options.levels.map(e=>({tag:`h${e}`,attrs:{level:e}}))},renderHTML({node:e,HTMLAttributes:t}){return[`h${this.options.levels.includes(e.attrs.level)?e.attrs.level:this.options.levels[0]}`,zr(this.options.HTMLAttributes,t),0]},addCommands(){return{setHeading:e=>({commands:t})=>this.options.levels.includes(e.level)?t.setNode(this.name,e):!1,toggleHeading:e=>({commands:t})=>this.options.levels.includes(e.level)?t.toggleNode(this.name,"paragraph",e):!1}},addKeyboardShortcuts(){return this.options.levels.reduce((e,t)=>({...e,[`Mod-Alt-${t}`]:()=>this.editor.commands.toggleHeading({level:t})}),{})},addInputRules(){return this.options.levels.map(e=>Xz({find:new RegExp(`^(#{1,${e}})\\s$`),type:this.type,getAttributes:{level:e}}))}});var n4=200,za=function(){};za.prototype.append=function(e){return e.length?(e=za.from(e),!this.length&&e||e.length<n4&&this.leafAppend(e)||this.length<n4&&e.leafPrepend(this)||this.appendInner(e)):this};za.prototype.prepend=function(e){return e.length?za.from(e).append(this):this};za.prototype.appendInner=function(e){return new osn(this,e)};za.prototype.slice=function(e,t){return e===void 0&&(e=0),t===void 0&&(t=this.length),e>=t?za.empty:this.sliceInner(Math.max(0,e),Math.min(this.length,t))};za.prototype.get=function(e){if(!(e<0||e>=this.length))return this.getInner(e)};za.prototype.forEach=function(e,t,n){t===void 0&&(t=0),n===void 0&&(n=this.length),t<=n?this.forEachInner(e,t,n,0):this.forEachInvertedInner(e,t,n,0)};za.prototype.map=function(e,t,n){t===void 0&&(t=0),n===void 0&&(n=this.length);var r=[];return this.forEach(function(i,o){return r.push(e(i,o))},t,n),r};za.from=function(e){return e instanceof za?e:e&&e.length?new G4e(e):za.empty};var G4e=function(e){function t(r){e.call(this),this.values=r}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t;var n={length:{configurable:!0},depth:{configurable:!0}};return t.prototype.flatten=function(){return this.values},t.prototype.sliceInner=function(r,i){return r==0&&i==this.length?this:new t(this.values.slice(r,i))},t.prototype.getInner=function(r){return this.values[r]},t.prototype.forEachInner=function(r,i,o,a){for(var s=i;s<o;s++)if(r(this.values[s],a+s)===!1)return!1},t.prototype.forEachInvertedInner=function(r,i,o,a){for(var s=i-1;s>=o;s--)if(r(this.values[s],a+s)===!1)return!1},t.prototype.leafAppend=function(r){if(this.length+r.length<=n4)return new t(this.values.concat(r.flatten()))},t.prototype.leafPrepend=function(r){if(this.length+r.length<=n4)return new t(r.flatten().concat(this.values))},n.length.get=function(){return this.values.length},n.depth.get=function(){return 0},Object.defineProperties(t.prototype,n),t}(za);za.empty=new G4e([]);var osn=function(e){function t(n,r){e.call(this),this.left=n,this.right=r,this.length=n.length+r.length,this.depth=Math.max(n.depth,r.depth)+1}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.flatten=function(){return this.left.flatten().concat(this.right.flatten())},t.prototype.getInner=function(n){return n<this.left.length?this.left.get(n):this.right.get(n-this.left.length)},t.prototype.forEachInner=function(n,r,i,o){var a=this.left.length;if(r<a&&this.left.forEachInner(n,r,Math.min(i,a),o)===!1||i>a&&this.right.forEachInner(n,Math.max(r-a,0),Math.min(this.length,i)-a,o+a)===!1)return!1},t.prototype.forEachInvertedInner=function(n,r,i,o){var a=this.left.length;if(r>a&&this.right.forEachInvertedInner(n,r-a,Math.max(i,a)-a,o+a)===!1||i<a&&this.left.forEachInvertedInner(n,Math.min(r,a),i,o)===!1)return!1},t.prototype.sliceInner=function(n,r){if(n==0&&r==this.length)return this;var i=this.left.length;return r<=i?this.left.slice(n,r):n>=i?this.right.slice(n-i,r-i):this.left.slice(n,i).append(this.right.slice(0,r-i))},t.prototype.leafAppend=function(n){var r=this.right.leafAppend(n);if(r)return new t(this.left,r)},t.prototype.leafPrepend=function(n){var r=this.left.leafPrepend(n);if(r)return new t(r,this.right)},t.prototype.appendInner=function(n){return this.left.depth>=Math.max(this.right.depth,n.depth)+1?new t(this.left,new t(this.right,n)):new t(this,n)},t}(za);const asn=500;class nd{constructor(t,n){this.items=t,this.eventCount=n}popEvent(t,n){if(this.eventCount==0)return null;let r=this.items.length;for(;;r--)if(this.items.get(r-1).selection){--r;break}let i,o;n&&(i=this.remapping(r,this.items.length),o=i.maps.length);let a=t.tr,s,l,c=[],u=[];return this.items.forEach((d,f)=>{if(!d.step){i||(i=this.remapping(r,f+1),o=i.maps.length),o--,u.push(d);return}if(i){u.push(new tf(d.map));let h=d.step.map(i.slice(o)),m;h&&a.maybeStep(h).doc&&(m=a.mapping.maps[a.mapping.maps.length-1],c.push(new tf(m,void 0,void 0,c.length+u.length))),o--,m&&i.appendMap(m,o)}else a.maybeStep(d.step);if(d.selection)return s=i?d.selection.map(i.slice(o)):d.selection,l=new nd(this.items.slice(0,r).append(u.reverse().concat(c)),this.eventCount-1),!1},this.items.length,0),{remaining:l,transform:a,selection:s}}addTransform(t,n,r,i){let o=[],a=this.eventCount,s=this.items,l=!i&&s.length?s.get(s.length-1):null;for(let u=0;u<t.steps.length;u++){let d=t.steps[u].invert(t.docs[u]),f=new tf(t.mapping.maps[u],d,n),h;(h=l&&l.merge(f))&&(f=h,u?o.pop():s=s.slice(0,s.length-1)),o.push(f),n&&(a++,n=void 0),i||(l=f)}let c=a-r.depth;return c>lsn&&(s=ssn(s,c),a-=c),new nd(s.append(o),a)}remapping(t,n){let r=new Ny;return this.items.forEach((i,o)=>{let a=i.mirrorOffset!=null&&o-i.mirrorOffset>=t?r.maps.length-i.mirrorOffset:void 0;r.appendMap(i.map,a)},t,n),r}addMaps(t){return this.eventCount==0?this:new nd(this.items.append(t.map(n=>new tf(n))),this.eventCount)}rebased(t,n){if(!this.eventCount)return this;let r=[],i=Math.max(0,this.items.length-n),o=t.mapping,a=t.steps.length,s=this.eventCount;this.items.forEach(f=>{f.selection&&s--},i);let l=n;this.items.forEach(f=>{let h=o.getMirror(--l);if(h==null)return;a=Math.min(a,h);let m=o.maps[h];if(f.step){let g=t.steps[h].invert(t.docs[h]),v=f.selection&&f.selection.map(o.slice(l+1,h));v&&s++,r.push(new tf(m,g,v))}else r.push(new tf(m))},i);let c=[];for(let f=n;f<a;f++)c.push(new tf(o.maps[f]));let u=this.items.slice(0,i).append(c).append(r),d=new nd(u,s);return d.emptyItemCount()>asn&&(d=d.compress(this.items.length-r.length)),d}emptyItemCount(){let t=0;return this.items.forEach(n=>{n.step||t++}),t}compress(t=this.items.length){let n=this.remapping(0,t),r=n.maps.length,i=[],o=0;return this.items.forEach((a,s)=>{if(s>=t)i.push(a),a.selection&&o++;else if(a.step){let l=a.step.map(n.slice(r)),c=l&&l.getMap();if(r--,c&&n.appendMap(c,r),l){let u=a.selection&&a.selection.map(n.slice(r));u&&o++;let d=new tf(c.invert(),l,u),f,h=i.length-1;(f=i.length&&i[h].merge(d))?i[h]=f:i.push(d)}}else a.map&&r--},this.items.length,0),new nd(za.from(i.reverse()),o)}}nd.empty=new nd(za.empty,0);function ssn(e,t){let n;return e.forEach((r,i)=>{if(r.selection&&t--==0)return n=i,!1}),e.slice(n)}class tf{constructor(t,n,r,i){this.map=t,this.step=n,this.selection=r,this.mirrorOffset=i}merge(t){if(this.step&&t.step&&!t.selection){let n=t.step.merge(this.step);if(n)return new tf(n.getMap().invert(),n,this.selection)}}}class fm{constructor(t,n,r,i,o){this.done=t,this.undone=n,this.prevRanges=r,this.prevTime=i,this.prevComposition=o}}const lsn=20;function csn(e,t,n,r){let i=n.getMeta(Cv),o;if(i)return i.historyState;n.getMeta(fsn)&&(e=new fm(e.done,e.undone,null,0,-1));let a=n.getMeta("appendedTransaction");if(n.steps.length==0)return e;if(a&&a.getMeta(Cv))return a.getMeta(Cv).redo?new fm(e.done.addTransform(n,void 0,r,fN(t)),e.undone,Vde(n.mapping.maps),e.prevTime,e.prevComposition):new fm(e.done,e.undone.addTransform(n,void 0,r,fN(t)),null,e.prevTime,e.prevComposition);if(n.getMeta("addToHistory")!==!1&&!(a&&a.getMeta("addToHistory")===!1)){let s=n.getMeta("composition"),l=e.prevTime==0||!a&&e.prevComposition!=s&&(e.prevTime<(n.time||0)-r.newGroupDelay||!usn(n,e.prevRanges)),c=a?R6(e.prevRanges,n.mapping):Vde(n.mapping.maps);return new fm(e.done.addTransform(n,l?t.selection.getBookmark():void 0,r,fN(t)),nd.empty,c,n.time,s??e.prevComposition)}else return(o=n.getMeta("rebased"))?new fm(e.done.rebased(n,o),e.undone.rebased(n,o),R6(e.prevRanges,n.mapping),e.prevTime,e.prevComposition):new fm(e.done.addMaps(n.mapping.maps),e.undone.addMaps(n.mapping.maps),R6(e.prevRanges,n.mapping),e.prevTime,e.prevComposition)}function usn(e,t){if(!t)return!1;if(!e.docChanged)return!0;let n=!1;return e.mapping.maps[0].forEach((r,i)=>{for(let o=0;o<t.length;o+=2)r<=t[o+1]&&i>=t[o]&&(n=!0)}),n}function Vde(e){let t=[];for(let n=e.length-1;n>=0&&t.length==0;n--)e[n].forEach((r,i,o,a)=>t.push(o,a));return t}function R6(e,t){if(!e)return null;let n=[];for(let r=0;r<e.length;r+=2){let i=t.map(e[r],1),o=t.map(e[r+1],-1);i<=o&&n.push(i,o)}return n}function dsn(e,t,n){let r=fN(t),i=Cv.get(t).spec.config,o=(n?e.undone:e.done).popEvent(t,r);if(!o)return null;let a=o.selection.resolve(o.transform.doc),s=(n?e.done:e.undone).addTransform(o.transform,t.selection.getBookmark(),i,r),l=new fm(n?s:o.remaining,n?o.remaining:s,null,0,-1);return o.transform.setSelection(a).setMeta(Cv,{redo:n,historyState:l})}let I6=!1,Gde=null;function fN(e){let t=e.plugins;if(Gde!=t){I6=!1,Gde=t;for(let n=0;n<t.length;n++)if(t[n].spec.historyPreserveItems){I6=!0;break}}return I6}const Cv=new $i("history"),fsn=new $i("closeHistory");function psn(e={}){return e={depth:e.depth||100,newGroupDelay:e.newGroupDelay||500},new Ei({key:Cv,state:{init(){return new fm(nd.empty,nd.empty,null,0,-1)},apply(t,n,r){return csn(n,r,t,e)}},config:e,props:{handleDOMEvents:{beforeinput(t,n){let r=n.inputType,i=r=="historyUndo"?q4e:r=="historyRedo"?Y4e:null;return i?(n.preventDefault(),i(t.state,t.dispatch)):!1}}}})}function W4e(e,t){return(n,r)=>{let i=Cv.getState(n);if(!i||(e?i.undone:i.done).eventCount==0)return!1;if(r){let o=dsn(i,n,e);o&&r(o.scrollIntoView())}return!0}}const q4e=W4e(!1),Y4e=W4e(!0),hsn=gi.create({name:"history",addOptions(){return{depth:100,newGroupDelay:500}},addCommands(){return{undo:()=>({state:e,dispatch:t})=>q4e(e,t),redo:()=>({state:e,dispatch:t})=>Y4e(e,t)}},addProseMirrorPlugins(){return[psn(this.options)]},addKeyboardShortcuts(){return{"Mod-z":()=>this.editor.commands.undo(),"Shift-Mod-z":()=>this.editor.commands.redo(),"Mod-y":()=>this.editor.commands.redo(),"Mod-я":()=>this.editor.commands.undo(),"Shift-Mod-я":()=>this.editor.commands.redo()}}}),msn=Eo.create({name:"horizontalRule",addOptions(){return{HTMLAttributes:{}}},group:"block",parseHTML(){return[{tag:"hr"}]},renderHTML({HTMLAttributes:e}){return["hr",zr(this.options.HTMLAttributes,e)]},addCommands(){return{setHorizontalRule:()=>({chain:e,state:t})=>{const{selection:n}=t,{$from:r,$to:i}=n,o=e();return r.parentOffset===0?o.insertContentAt({from:Math.max(r.pos-1,0),to:i.pos},{type:this.name}):u4e(n)?o.insertContentAt(i.pos,{type:this.name}):o.insertContent({type:this.name}),o.command(({tr:a,dispatch:s})=>{var l;if(s){const{$to:c}=a.selection,u=c.end();if(c.nodeAfter)c.nodeAfter.isTextblock?a.setSelection(er.create(a.doc,c.pos+1)):c.nodeAfter.isBlock?a.setSelection(lr.create(a.doc,c.pos)):a.setSelection(er.create(a.doc,c.pos));else{const d=(l=c.parent.type.contentMatch.defaultType)===null||l===void 0?void 0:l.create();d&&(a.insert(u,d),a.setSelection(er.create(a.doc,u+1)))}a.scrollIntoView()}return!0}).run()}}},addInputRules(){return[eX({find:/^(?:---|—-|___\s|\*\*\*\s)$/,type:this.type})]}}),gsn=/(?:^|\s)(\*(?!\s+\*)((?:[^*]+))\*(?!\s+\*))$/,vsn=/(?:^|\s)(\*(?!\s+\*)((?:[^*]+))\*(?!\s+\*))/g,bsn=/(?:^|\s)(_(?!\s+_)((?:[^_]+))_(?!\s+_))$/,ysn=/(?:^|\s)(_(?!\s+_)((?:[^_]+))_(?!\s+_))/g,_sn=Pl.create({name:"italic",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"em"},{tag:"i",getAttrs:e=>e.style.fontStyle!=="normal"&&null},{style:"font-style=normal",clearMark:e=>e.type.name===this.name},{style:"font-style=italic"}]},renderHTML({HTMLAttributes:e}){return["em",zr(this.options.HTMLAttributes,e),0]},addCommands(){return{setItalic:()=>({commands:e})=>e.setMark(this.name),toggleItalic:()=>({commands:e})=>e.toggleMark(this.name),unsetItalic:()=>({commands:e})=>e.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-i":()=>this.editor.commands.toggleItalic(),"Mod-I":()=>this.editor.commands.toggleItalic()}},addInputRules(){return[r0({find:gsn,type:this.type}),r0({find:bsn,type:this.type})]},addPasteRules(){return[_g({find:vsn,type:this.type}),_g({find:ysn,type:this.type})]}}),Ssn=Eo.create({name:"listItem",addOptions(){return{HTMLAttributes:{},bulletListTypeName:"bulletList",orderedListTypeName:"orderedList"}},content:"paragraph block*",defining:!0,parseHTML(){return[{tag:"li"}]},renderHTML({HTMLAttributes:e}){return["li",zr(this.options.HTMLAttributes,e),0]},addKeyboardShortcuts(){return{Enter:()=>this.editor.commands.splitListItem(this.name),Tab:()=>this.editor.commands.sinkListItem(this.name),"Shift-Tab":()=>this.editor.commands.liftListItem(this.name)}}}),Esn="listItem",Wde="textStyle",qde=/^(\d+)\.\s$/,Csn=Eo.create({name:"orderedList",addOptions(){return{itemTypeName:"listItem",HTMLAttributes:{},keepMarks:!1,keepAttributes:!1}},group:"block list",content(){return`${this.options.itemTypeName}+`},addAttributes(){return{start:{default:1,parseHTML:e=>e.hasAttribute("start")?parseInt(e.getAttribute("start")||"",10):1},type:{default:void 0,parseHTML:e=>e.getAttribute("type")}}},parseHTML(){return[{tag:"ol"}]},renderHTML({HTMLAttributes:e}){const{start:t,...n}=e;return t===1?["ol",zr(this.options.HTMLAttributes,n),0]:["ol",zr(this.options.HTMLAttributes,e),0]},addCommands(){return{toggleOrderedList:()=>({commands:e,chain:t})=>this.options.keepAttributes?t().toggleList(this.name,this.options.itemTypeName,this.options.keepMarks).updateAttributes(Esn,this.editor.getAttributes(Wde)).run():e.toggleList(this.name,this.options.itemTypeName,this.options.keepMarks)}},addKeyboardShortcuts(){return{"Mod-Shift-7":()=>this.editor.commands.toggleOrderedList()}},addInputRules(){let e=i0({find:qde,type:this.type,getAttributes:t=>({start:+t[1]}),joinPredicate:(t,n)=>n.childCount+n.attrs.start===+t[1]});return(this.options.keepMarks||this.options.keepAttributes)&&(e=i0({find:qde,type:this.type,keepMarks:this.options.keepMarks,keepAttributes:this.options.keepAttributes,getAttributes:t=>({start:+t[1],...this.editor.getAttributes(Wde)}),joinPredicate:(t,n)=>n.childCount+n.attrs.start===+t[1],editor:this.editor})),[e]}}),wsn=Eo.create({name:"paragraph",priority:1e3,addOptions(){return{HTMLAttributes:{}}},group:"block",content:"inline*",parseHTML(){return[{tag:"p"}]},renderHTML({HTMLAttributes:e}){return["p",zr(this.options.HTMLAttributes,e),0]},addCommands(){return{setParagraph:()=>({commands:e})=>e.setNode(this.name)}},addKeyboardShortcuts(){return{"Mod-Alt-0":()=>this.editor.commands.setParagraph()}}}),Tsn=/(?:^|\s)(~~(?!\s+~~)((?:[^~]+))~~(?!\s+~~))$/,xsn=/(?:^|\s)(~~(?!\s+~~)((?:[^~]+))~~(?!\s+~~))/g,Osn=Pl.create({name:"strike",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"s"},{tag:"del"},{tag:"strike"},{style:"text-decoration",consuming:!1,getAttrs:e=>e.includes("line-through")?{}:!1}]},renderHTML({HTMLAttributes:e}){return["s",zr(this.options.HTMLAttributes,e),0]},addCommands(){return{setStrike:()=>({commands:e})=>e.setMark(this.name),toggleStrike:()=>({commands:e})=>e.toggleMark(this.name),unsetStrike:()=>({commands:e})=>e.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-Shift-s":()=>this.editor.commands.toggleStrike()}},addInputRules(){return[r0({find:Tsn,type:this.type})]},addPasteRules(){return[_g({find:xsn,type:this.type})]}}),Rsn=Eo.create({name:"text",group:"inline"}),Isn=gi.create({name:"starterKit",addExtensions(){var e,t,n,r,i,o,a,s,l,c,u,d,f,h,m,g,v,y;const b=[];return this.options.bold!==!1&&b.push(Fan.configure((e=this.options)===null||e===void 0?void 0:e.bold)),this.options.blockquote!==!1&&b.push(kan.configure((t=this.options)===null||t===void 0?void 0:t.blockquote)),this.options.bulletList!==!1&&b.push(jan.configure((n=this.options)===null||n===void 0?void 0:n.bulletList)),this.options.code!==!1&&b.push(zan.configure((r=this.options)===null||r===void 0?void 0:r.code)),this.options.codeBlock!==!1&&b.push(z4e.configure((i=this.options)===null||i===void 0?void 0:i.codeBlock)),this.options.document!==!1&&b.push(Wan.configure((o=this.options)===null||o===void 0?void 0:o.document)),this.options.dropcursor!==!1&&b.push(Kan.configure((a=this.options)===null||a===void 0?void 0:a.dropcursor)),this.options.gapcursor!==!1&&b.push(rsn.configure((s=this.options)===null||s===void 0?void 0:s.gapcursor)),this.options.hardBreak!==!1&&b.push(isn.configure((l=this.options)===null||l===void 0?void 0:l.hardBreak)),this.options.heading!==!1&&b.push(V4e.configure((c=this.options)===null||c===void 0?void 0:c.heading)),this.options.history!==!1&&b.push(hsn.configure((u=this.options)===null||u===void 0?void 0:u.history)),this.options.horizontalRule!==!1&&b.push(msn.configure((d=this.options)===null||d===void 0?void 0:d.horizontalRule)),this.options.italic!==!1&&b.push(_sn.configure((f=this.options)===null||f===void 0?void 0:f.italic)),this.options.listItem!==!1&&b.push(Ssn.configure((h=this.options)===null||h===void 0?void 0:h.listItem)),this.options.orderedList!==!1&&b.push(Csn.configure((m=this.options)===null||m===void 0?void 0:m.orderedList)),this.options.paragraph!==!1&&b.push(wsn.configure((g=this.options)===null||g===void 0?void 0:g.paragraph)),this.options.strike!==!1&&b.push(Osn.configure((v=this.options)===null||v===void 0?void 0:v.strike)),this.options.text!==!1&&b.push(Rsn.configure((y=this.options)===null||y===void 0?void 0:y.text)),b}}),Asn=Pl.create({name:"underline",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"u"},{style:"text-decoration",consuming:!1,getAttrs:e=>e.includes("underline")?{}:!1}]},renderHTML({HTMLAttributes:e}){return["u",zr(this.options.HTMLAttributes,e),0]},addCommands(){return{setUnderline:()=>({commands:e})=>e.setMark(this.name),toggleUnderline:()=>({commands:e})=>e.toggleMark(this.name),unsetUnderline:()=>({commands:e})=>e.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-u":()=>this.editor.commands.toggleUnderline(),"Mod-U":()=>this.editor.commands.toggleUnderline()}}}),Nsn=Pl.create({name:"textStyle",priority:101,addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"span",getAttrs:e=>e.hasAttribute("style")?{}:!1}]},renderHTML({HTMLAttributes:e}){return["span",zr(this.options.HTMLAttributes,e),0]},addCommands(){return{removeEmptyTextStyle:()=>({state:e,commands:t})=>{const n=ZQ(e,this.type);return Object.entries(n).some(([,r])=>!!r)?!0:t.unsetMark(this.name)}}}}),Msn=gi.create({name:"fontFamily",addOptions(){return{types:["textStyle"]}},addGlobalAttributes(){return[{types:this.options.types,attributes:{fontFamily:{default:null,parseHTML:e=>e.style.fontFamily,renderHTML:e=>e.fontFamily?{style:`font-family: ${e.fontFamily}`}:{}}}}]},addCommands(){return{setFontFamily:e=>({chain:t})=>t().setMark("textStyle",{fontFamily:e}).run(),unsetFontFamily:()=>({chain:e})=>e().setMark("textStyle",{fontFamily:null}).removeEmptyTextStyle().run()}}}),K4e=e=>{const t=document.createElement("div");return t.classList.add("aie-loader-placeholder"),t.innerHTML=`
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0z"></path><path d="M12 3C16.9706 3 21 7.02944 21 12H19C19 8.13401 15.866 5 12 5V3Z"></path></svg>
`,ta.widget(e.pos,t,{id:e.id})},ksn=e=>{const t=document.createElement("div");return t.classList.add("aie-loader-placeholder"),t.style.height="20px",t.style.display="inline-block",t.innerHTML=`
<svg style="width: 16px" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0z"></path><path d="M12 3C16.9706 3 21 7.02944 21 12H19C19 8.13401 15.866 5 12 5V3Z"></path></svg>
${e.text}
`,ta.widget(e.pos,t,{id:e.id})},Psn=(e,t,n,r)=>{const i=new FormData;return i.append(r,e),new Promise((o,a)=>{fetch(t,{method:"post",headers:{Accept:"application/json",...n},body:i}).then(s=>s.json()).then(s=>{o(s)}).catch(s=>{a(s)})})},Dsn=(e,t,n,r)=>{let i=new FileReader;return new Promise((o,a)=>{i.onload=()=>o({errorCode:0,data:{src:i.result,href:e.name}}),i.onerror=()=>a(i.error),setTimeout(()=>i.readAsDataURL(e),5e3*Math.random())})},pX=e=>e?Psn:Dsn,Yde=new $i("aie-attachment-plugin"),rC="attachment_action",Lsn=gi.create({name:"attachment",addOptions(){return{uploadUrl:"",uploadHeaders:{},HTMLAttributes:{}}},addCommands(){return{uploadAttachment:e=>()=>{const t=typeof this.options.uploadHeaders=="object"?this.options.uploadHeaders:typeof this.options.uploadHeaders=="function"?this.options.uploadHeaders():{};if(this.options.uploaderEvent&&this.options.uploaderEvent.onUploadBefore&&this.options.uploaderEvent.onUploadBefore(e,this.options.uploadUrl,t)===!1)return!1;const n=u9(),{state:{tr:r},view:i,schema:o}=this.editor;r.selection.empty||r.deleteSelection(),i.dispatch(r.setMeta(rC,{type:"add",id:n,pos:r.selection.from,text:e.name}));const a=this.options.uploader||pX(this.options.uploadUrl),s=this.options.uploadFormName||"attachment";return a(e,this.options.uploadUrl,t,s).then(l=>{var c;if((c=this.options.uploaderEvent)!=null&&c.onSuccess){const u=this.options.uploaderEvent.onSuccess(e,l);if(typeof u=="boolean"&&!u)return;typeof u=="object"&&(l=u)}if(l.errorCode===0&&l.data&&l.data.href){let u=Yde.getState(this.editor.state).find(void 0,void 0,f=>f.id==n);const d=l.data.fileName||e.name;i.dispatch(i.state.tr.insertText(` ${d} `,u[0].from).addMark(u[0].from+1,d.length+u[0].from+1,o.marks.link.create({href:l.data.href,target:"_blank"})).setMeta(rC,{type:"remove",id:n}))}else i.dispatch(r.setMeta(rC,{type:"remove",id:n})),this.options.uploaderEvent&&this.options.uploaderEvent.onFailed&&this.options.uploaderEvent.onFailed(e,l)}).catch(l=>{const{state:{tr:c},view:u}=this.editor;u.dispatch(c.setMeta(rC,{type:"remove",id:n})),this.options.uploaderEvent&&this.options.uploaderEvent.onError&&this.options.uploaderEvent.onError(e,l)}),!0}}},addProseMirrorPlugins(){const e=this.editor;return[new Ei({key:Yde,state:{init:()=>Ci.empty,apply:(t,n)=>{const r=t.getMeta(rC);return n=n.map(t.mapping,t.doc),r&&r.type==="add"?n=n.add(t.doc,[ksn(r)]):r&&r.type==="remove"&&(n=n.remove(n.find(void 0,void 0,i=>i.id==r.id))),n}},props:{decorations(t){return this.getState(t)},handleDOMEvents:{drop(t,n){if(!(n.dataTransfer&&n.dataTransfer.files&&n.dataTransfer.files.length))return!1;const r=Array.from(n.dataTransfer.files).filter(i=>!/video/i.test(i.type)&&!/image/i.test(i.type));return n.preventDefault(),r.forEach(i=>{e.commands.uploadAttachment(i)}),!0}}}})]}}),$sn=gi.create({name:"painter",addCommands(){return{setPainter:e=>({view:{dispatch:t,state:{tr:n},dom:r}})=>(r.style.cursor="context-menu",t(n.setMeta("painterAction",{type:"start",marks:e})),!0)}},addProseMirrorPlugins(){return[new Ei({key:new $i("aie-painter"),state:{init:()=>[],apply:(e,t)=>{const n=e.getMeta("painterAction");return n&&n.type==="start"?t=n.marks:n&&n.type==="end"&&(t=[]),t}},props:{handleDOMEvents:{mousedown(e,t){const n=this.getState(e.state);if(!n||n.length==0)return!1;const r=()=>{document.removeEventListener("mouseup",r);let{dispatch:i,state:{tr:o,selection:a},dom:s}=e;s.style.cursor="",o=o.removeMark(a.from,a.to);for(let l of n)l.type.name!="link"&&(o=o.addMark(a.from,a.to,l));i(o.setMeta("painterAction",{type:"end"}))};return document.addEventListener("mouseup",r),!0}}}})]}}),Fsn=/(?:^|\s)(==(?!\s+==)((?:[^=]+))==(?!\s+==))$/,Bsn=/(?:^|\s)(==(?!\s+==)((?:[^=]+))==(?!\s+==))/g,jsn=Pl.create({name:"highlight",addOptions(){return{multicolor:!1,HTMLAttributes:{}}},addAttributes(){return this.options.multicolor?{color:{default:null,parseHTML:e=>e.getAttribute("data-color")||e.style.backgroundColor,renderHTML:e=>e.color?{"data-color":e.color,style:`background-color: ${e.color}; color: inherit`}:{}}}:{}},parseHTML(){return[{tag:"mark"}]},renderHTML({HTMLAttributes:e}){return["mark",zr(this.options.HTMLAttributes,e),0]},addCommands(){return{setHighlight:e=>({commands:t})=>t.setMark(this.name,e),toggleHighlight:e=>({commands:t})=>t.toggleMark(this.name,e),unsetHighlight:()=>({commands:e})=>e.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-Shift-h":()=>this.editor.commands.toggleHighlight()}},addInputRules(){return[r0({find:Fsn,type:this.type})]},addPasteRules(){return[_g({find:Bsn,type:this.type})]}}),Hsn=gi.create({name:"color",addOptions(){return{types:["textStyle"]}},addGlobalAttributes(){return[{types:this.options.types,attributes:{color:{default:null,parseHTML:e=>{var t;return(t=e.style.color)===null||t===void 0?void 0:t.replace(/['"]+/g,"")},renderHTML:e=>e.color?{style:`color: ${e.color}`}:{}}}}]},addCommands(){return{setColor:e=>({chain:t})=>t().setMark("textStyle",{color:e}).run(),unsetColor:()=>({chain:e})=>e().setMark("textStyle",{color:null}).removeEmptyTextStyle().run()}}}),Usn=gi.create({name:"fontSize",addOptions(){return{types:["textStyle"]}},addGlobalAttributes(){return[{types:this.options.types,attributes:{fontSize:{default:null,parseHTML:e=>{var t;return(t=e.style.fontSize)==null?void 0:t.replace(/['"]+/g,"")},renderHTML:e=>e.fontSize?{style:`font-size: ${e.fontSize}`}:{}}}}]},addCommands(){return{setFontSize:e=>({chain:t})=>t().setMark("textStyle",{fontSize:e}).run(),unsetFontSize:()=>({chain:e})=>e().setMark("textStyle",{fontSize:null}).removeEmptyTextStyle().run()}}}),zsn=gi.create({name:"lineHeight",addOptions(){return{types:["heading","paragraph"],defaultHeight:"100%"}},addGlobalAttributes(){return[{types:this.options.types,attributes:{lineHeight:{default:this.options.defaultHeight,parseHTML:e=>e.style.lineHeight||this.options.defaultHeight,renderHTML:e=>e.lineHeight===this.options.defaultHeight?{}:{style:`line-height: ${e.lineHeight}`}}}}]},addCommands(){return{setLineHeight:e=>({commands:t})=>this.options.types.every(n=>t.updateAttributes(n,{lineHeight:e})),unsetLineHeight:()=>({commands:e})=>this.options.types.every(t=>e.resetAttributes(t,"lineHeight"))}}}),Vsn=gi.create({name:"textAlign",addOptions(){return{types:[],alignments:["left","center","right","justify"],defaultAlignment:"left"}},addGlobalAttributes(){return[{types:this.options.types,attributes:{textAlign:{default:this.options.defaultAlignment,parseHTML:e=>{const t=e.style.textAlign||this.options.defaultAlignment;return this.options.alignments.includes(t)?t:this.options.defaultAlignment},renderHTML:e=>e.textAlign===this.options.defaultAlignment?{}:{style:`text-align: ${e.textAlign}`}}}}]},addCommands(){return{setTextAlign:e=>({commands:t})=>this.options.alignments.includes(e)?this.options.types.map(n=>t.updateAttributes(n,{textAlign:e})).every(n=>n):!1,unsetTextAlign:()=>({commands:e})=>this.options.types.map(t=>e.resetAttributes(t,"textAlign")).every(t=>t)}},addKeyboardShortcuts(){return{"Mod-Shift-l":()=>this.editor.commands.setTextAlign("left"),"Mod-Shift-e":()=>this.editor.commands.setTextAlign("center"),"Mod-Shift-r":()=>this.editor.commands.setTextAlign("right"),"Mod-Shift-j":()=>this.editor.commands.setTextAlign("justify")}}}),Gsn=gi.create({name:"indent",priority:99,addOptions(){return{types:["listItem","paragraph"],minLevel:0,maxLevel:8}},addGlobalAttributes(){return[{types:this.options.types,attributes:{indent:{default:0,parseHTML:e=>{const t=Number(e.getAttribute("data-indent"));return t&&t>this.options.minLevel?t:null},renderHTML:e=>e.indent?{style:`text-indent: ${(e==null?void 0:e.indent)*2}em`,"data-indent":e==null?void 0:e.indent}:{}}}}]},addCommands(){const e=(r,i,o)=>{var a;const s=(a=r==null?void 0:r.doc)==null?void 0:a.nodeAt(i);if(s){const l=(s.attrs.indent||0)+o,{minLevel:c,maxLevel:u}=this.options,d=l<c?c:l>u?u:l;if(d!==s.attrs.indent){const{indent:f,...h}=s.attrs,m=d>c?{...h,indent:d}:h;return r.setNodeMarkup(i,s.type,m,s.marks)}}return r},t=(r,i)=>{const{doc:o,selection:a}=r;if(o&&a&&(a instanceof er||a instanceof lu)){const{from:s,to:l}=a;o.nodesBetween(s,l,(c,u)=>this.options.types.includes(c.type.name)?(r=e(r,u,i),!1):!0)}return r},n=r=>()=>({tr:i,state:o,dispatch:a})=>{const{selection:s}=o;return i=i.setSelection(s),i=t(i,r),i.docChanged?(a==null||a(i),!0):!1};return{indent:n(1),outdent:n(-1)}},addKeyboardShortcuts(){return{Tab:()=>this.editor.commands.indent(),"Shift-Tab":()=>this.editor.commands.outdent()}}}),Wsn=/(?:^|\s)(!\[(.+|:?)]\((\S+)(?:(?:\s+)["'](\S+)["'])?\))$/,qsn=Eo.create({name:"image",addOptions(){return{inline:!1,allowBase64:!1,HTMLAttributes:{}}},inline(){return this.options.inline},group(){return this.options.inline?"inline":"block"},draggable:!0,addAttributes(){return{src:{default:null},alt:{default:null},title:{default:null}}},parseHTML(){return[{tag:this.options.allowBase64?"img[src]":'img[src]:not([src^="data:"])'}]},renderHTML({HTMLAttributes:e}){return["img",zr(this.options.HTMLAttributes,e)]},addCommands(){return{setImage:e=>({commands:t})=>t.insertContent({type:this.name,attrs:e})}},addInputRules(){return[eX({find:Wsn,type:this.type,getAttributes:e=>{const[,,t,n,r]=e;return{src:n,alt:t,title:r}}})]}}),Q4e=(e,t,n)=>{const r=e.querySelector(".resize-obj"),i=10;let o,a,s,l;const c=f=>{f.preventDefault(),t.addEventListener("mousemove",u),t.addEventListener("mouseup",d),t.addEventListener("mouseleave",d),o=f.clientX,a=Number(r.getAttribute("data-with"))||r.clientWidth,s=f.target.getAttribute("data-position"),l=t.clientWidth-100},u=f=>{const h=f.clientX-o;if(h==0)return;const m=s==="right"?h>0:h<0;let g=a+Math.abs(h)*(m?1:-1);g>=l&&(g=l),g<i&&(g=i),r.style.width=`${g}px`,r.setAttribute("data-width",g.toString()),r.parentElement.removeAttribute("style")},d=()=>{t.removeEventListener("mousemove",u),t.removeEventListener("mouseup",d),t.removeEventListener("mouseleave",d);const f={width:Number(r.getAttribute("data-width"))};n(f)};for(let f of e.querySelector(".aie-resize").children)f.addEventListener("mousedown",c)},Ysn=e=>typeof e=="number"||!isNaN(+e)?`${e}px`:e,Kde=new $i("aie-image-plugin"),iC="image_action",Ksn=qsn.extend({name:"image",draggable:!0,selectable:!0,addOptions(){var e;return{...(e=this.parent)==null?void 0:e.call(this),uploadUrl:"",uploadHeaders:{},uploader:void 0,defaultSize:350}},allowGapCursor(){return!this.options.inline},addAttributes(){return{src:{default:"",parseHTML:e=>`${e.getAttribute("src")??""}`},alt:{default:"",parseHTML:e=>`${e.getAttribute("alt")??""}`,renderHTML:({alt:e})=>e?{alt:e}:{}},title:{default:"",parseHTML:e=>`${e.getAttribute("title")??""}`,renderHTML:({title:e})=>e?{title:e}:{}},width:{default:this.options.defaultSize,parseHTML:e=>`${e.getAttribute("width")??""}`,renderHTML:({width:e})=>e?{width:e}:{}},height:{default:"auto",parseHTML:e=>`${e.getAttribute("height")??""}`,renderHTML:({height:e})=>e?{height:e}:{}},align:{default:"left",parseHTML:e=>e.getAttribute("data-align")||e.getAttribute("align"),renderHTML:({align:e})=>e?{"data-align":e}:{}},"data-src":{default:null,parseHTML:e=>`${e.getAttribute("data-src")??""}`,renderHTML:e=>e["data-src"]?{"data-src":e["data-src"]}:{}},loading:{default:null,parseHTML:e=>`${e.getAttribute("loading")??""}`,renderHTML:({loading:e})=>e?{loading:e}:{}}}},parseHTML(){return[{tag:this.options.allowBase64?"img[src]":'img[src]:not([src^="data:"])'}]},renderHTML({HTMLAttributes:e}){const t=zr(this.options.HTMLAttributes,e);return["div",{style:`text-align:${t["data-align"]||"left"}`},["img",t]]},addCommands(){var e;return{...(e=this.parent)==null?void 0:e.call(this),uploadImage:t=>()=>{const n=typeof this.options.uploadHeaders=="object"?this.options.uploadHeaders:typeof this.options.uploadHeaders=="function"?this.options.uploadHeaders():{};if(this.options.uploaderEvent&&this.options.uploaderEvent.onUploadBefore&&this.options.uploaderEvent.onUploadBefore(t,this.options.uploadUrl,n)===!1)return!1;const r=u9(),{state:{tr:i},view:o,schema:a}=this.editor;i.selection.empty||i.deleteSelection(),o.dispatch(i.setMeta(iC,{type:"add",id:r,pos:i.selection.from}));const s=this.options.uploader||pX(this.options.uploadUrl),l=this.options.uploadFormName||"image";return s(t,this.options.uploadUrl,n,l).then(c=>{var u;if((u=this.options.uploaderEvent)!=null&&u.onSuccess){const d=this.options.uploaderEvent.onSuccess(t,c);if(typeof d=="boolean"&&!d)return;typeof d=="object"&&(c=d)}if(c.errorCode===0&&c.data&&c.data.src){let d=Kde.getState(this.editor.state).find(void 0,void 0,f=>f.id==r);o.dispatch(o.state.tr.insert(d[0].from,a.nodes.image.create({src:c.data.src,alt:c.data.alt,align:c.data.align||"left",width:c.data.width||this.options.defaultSize,height:c.data.height||"auto","data-src":c.data["data-src"],loading:c.data.loading,class:c.data.class})).setMeta(iC,{type:"remove",id:r}))}else o.dispatch(i.setMeta(iC,{type:"remove",id:r})),this.options.uploaderEvent&&this.options.uploaderEvent.onFailed&&this.options.uploaderEvent.onFailed(t,c)}).catch(c=>{const{state:{tr:u},view:d}=this.editor;d.dispatch(u.setMeta(iC,{type:"remove",id:r})),this.options.uploaderEvent&&this.options.uploaderEvent.onError&&this.options.uploaderEvent.onError(t,c)}),!0}}},addNodeView(){return e=>{const t=document.createElement("div"),{src:n,width:r,height:i,align:o,alt:a}=e.node.attrs,s=Ysn(r||350),l=s.indexOf("%")>0?`style="width: ${s};"`:"",c=s.indexOf("%")>0?"calc(100% - 2px)":s;return t.classList.add(`align-${o}`),this.editor.isEditable?(t.innerHTML=`
<div class="aie-resize-wrapper" ${l}>
<div class="aie-resize">
<div class="aie-resize-btn-top-left" data-position="left" draggable="true"></div>
<div class="aie-resize-btn-top-right" data-position="right" draggable="true"></div>
<div class="aie-resize-btn-bottom-left" data-position="left" draggable="true"></div>
<div class="aie-resize-btn-bottom-right" data-position="right" draggable="true"></div>
</div>
<img alt="${a}" src="${e.node.attrs["data-src"]||n}" style="width: ${c}; height: ${i||"auto"}" class="align-${o} resize-obj">
</div>
`,Q4e(t,this.editor.view.dom,u=>this.editor.commands.updateAttributes("image",u)),{dom:t}):(t.innerHTML=`<div class="aie-resize-wrapper" ${l}>
<img alt="${a}" src="${e.node.attrs["data-src"]||n}" style="width: ${c}; height: ${i||"auto"}" class="align-${o} resize-obj">
</div>`,{dom:t})}},addProseMirrorPlugins(){const e=this.editor;return[new Ei({key:Kde,state:{init:()=>Ci.empty,apply:(t,n)=>{const r=t.getMeta(iC);if(r){let i=!1;const o=n.map(t.mapping,t.doc,{onRemove:a=>{i=!0}});i||(n=o),r.type==="add"?n=n.add(t.doc,[K4e(r)]):r.type==="remove"&&(n=n.remove(n.find(void 0,void 0,a=>a.id==r.id)))}return n}},props:{decorations(t){return this.getState(t)},handlePaste:(t,n)=>{var r;const i=Array.from(((r=n.clipboardData)==null?void 0:r.items)||[]);let o=!1;for(const a of i)if(a.type.indexOf("image")===0){const s=a.getAsFile();s&&(n.preventDefault(),o=!0,this.editor.commands.uploadImage(s))}return o},handleDOMEvents:{drop(t,n){if(!(n.dataTransfer&&n.dataTransfer.files&&n.dataTransfer.files.length))return!1;const r=Array.from(n.dataTransfer.files).filter(l=>/image/i.test(l.type));if(r.length===0)return!1;n.preventDefault();const{state:{tr:i,doc:o},dispatch:a}=t,s=t.posAtCoords({left:n.clientX,top:n.clientY});return a(i.setSelection(er.create(o,s.pos)).scrollIntoView()),r.forEach(l=>{e.commands.uploadImage(l)}),!0}},transformPastedHTML(t){const n=new DOMParser().parseFromString(t,"text/html"),r=n.documentElement.querySelector("body");if(r!=null&&r.children){const i=n.documentElement.querySelectorAll("p > img");for(const o of i){const a=o.parentNode,s=Array.prototype.indexOf.call(r.children,a);o.parentElement.prepend(o),r.insertBefore(o,r.children[s])}return r.innerHTML}return t}}})]}});var oV,aV;if(typeof WeakMap<"u"){let e=new WeakMap;oV=t=>e.get(t),aV=(t,n)=>(e.set(t,n),n)}else{const e=[];let t=0;oV=n=>{for(let r=0;r<e.length;r+=2)if(e[r]==n)return e[r+1]},aV=(n,r)=>(t==10&&(t=0),e[t++]=n,e[t++]=r)}var Ro=class{constructor(e,t,n,r){this.width=e,this.height=t,this.map=n,this.problems=r}findCell(e){for(let t=0;t<this.map.length;t++){const n=this.map[t];if(n!=e)continue;const r=t%this.width,i=t/this.width|0;let o=r+1,a=i+1;for(let s=1;o<this.width&&this.map[t+s]==n;s++)o++;for(let s=1;a<this.height&&this.map[t+this.width*s]==n;s++)a++;return{left:r,top:i,right:o,bottom:a}}throw new RangeError(`No cell with offset ${e} found`)}colCount(e){for(let t=0;t<this.map.length;t++)if(this.map[t]==e)return t%this.width;throw new RangeError(`No cell with offset ${e} found`)}nextCell(e,t,n){const{left:r,right:i,top:o,bottom:a}=this.findCell(e);return t=="horiz"?(n<0?r==0:i==this.width)?null:this.map[o*this.width+(n<0?r-1:i)]:(n<0?o==0:a==this.height)?null:this.map[r+this.width*(n<0?o-1:a)]}rectBetween(e,t){const{left:n,right:r,top:i,bottom:o}=this.findCell(e),{left:a,right:s,top:l,bottom:c}=this.findCell(t);return{left:Math.min(n,a),top:Math.min(i,l),right:Math.max(r,s),bottom:Math.max(o,c)}}cellsInRect(e){const t=[],n={};for(let r=e.top;r<e.bottom;r++)for(let i=e.left;i<e.right;i++){const o=r*this.width+i,a=this.map[o];n[a]||(n[a]=!0,!(i==e.left&&i&&this.map[o-1]==a||r==e.top&&r&&this.map[o-this.width]==a)&&t.push(a))}return t}positionAt(e,t,n){for(let r=0,i=0;;r++){const o=i+n.child(r).nodeSize;if(r==e){let a=t+e*this.width;const s=(e+1)*this.width;for(;a<s&&this.map[a]<i;)a++;return a==s?o-1:this.map[a]}i=o}}static get(e){return oV(e)||aV(e,Qsn(e))}};function Qsn(e){if(e.type.spec.tableRole!="table")throw new RangeError("Not a table node: "+e.type.name);const t=Xsn(e),n=e.childCount,r=[];let i=0,o=null;const a=[];for(let c=0,u=t*n;c<u;c++)r[c]=0;for(let c=0,u=0;c<n;c++){const d=e.child(c);u++;for(let m=0;;m++){for(;i<r.length&&r[i]!=0;)i++;if(m==d.childCount)break;const g=d.child(m),{colspan:v,rowspan:y,colwidth:b}=g.attrs;for(let _=0;_<y;_++){if(_+c>=n){(o||(o=[])).push({type:"overlong_rowspan",pos:u,n:y-_});break}const E=i+_*t;for(let w=0;w<v;w++){r[E+w]==0?r[E+w]=u:(o||(o=[])).push({type:"collision",row:c,pos:u,n:v-w});const S=b&&b[w];if(S){const C=(E+w)%t*2,T=a[C];T==null||T!=S&&a[C+1]==1?(a[C]=S,a[C+1]=1):T==S&&a[C+1]++}}}i+=v,u+=g.nodeSize}const f=(c+1)*t;let h=0;for(;i<f;)r[i++]==0&&h++;h&&(o||(o=[])).push({type:"missing",row:c,n:h}),u++}const s=new Ro(t,n,r,o);let l=!1;for(let c=0;!l&&c<a.length;c+=2)a[c]!=null&&a[c+1]<n&&(l=!0);return l&&Zsn(s,a,e),s}function Xsn(e){let t=-1,n=!1;for(let r=0;r<e.childCount;r++){const i=e.child(r);let o=0;if(n)for(let a=0;a<r;a++){const s=e.child(a);for(let l=0;l<s.childCount;l++){const c=s.child(l);a+c.attrs.rowspan>r&&(o+=c.attrs.colspan)}}for(let a=0;a<i.childCount;a++){const s=i.child(a);o+=s.attrs.colspan,s.attrs.rowspan>1&&(n=!0)}t==-1?t=o:t!=o&&(t=Math.max(t,o))}return t}function Zsn(e,t,n){e.problems||(e.problems=[]);const r={};for(let i=0;i<e.map.length;i++){const o=e.map[i];if(r[o])continue;r[o]=!0;const a=n.nodeAt(o);if(!a)throw new RangeError(`No cell with offset ${o} found`);let s=null;const l=a.attrs;for(let c=0;c<l.colspan;c++){const u=(i+c)%e.width,d=t[u*2];d!=null&&(!l.colwidth||l.colwidth[c]!=d)&&((s||(s=Jsn(l)))[c]=d)}s&&e.problems.unshift({type:"colwidth mismatch",pos:o,colwidth:s})}}function Jsn(e){if(e.colwidth)return e.colwidth.slice();const t=[];for(let n=0;n<e.colspan;n++)t.push(0);return t}function Ps(e){let t=e.cached.tableNodeTypes;if(!t){t=e.cached.tableNodeTypes={};for(const n in e.nodes){const r=e.nodes[n],i=r.spec.tableRole;i&&(t[i]=r)}}return t}var ym=new $i("selectingCells");function sE(e){for(let t=e.depth-1;t>0;t--)if(e.node(t).type.spec.tableRole=="row")return e.node(0).resolve(e.before(t+1));return null}function eln(e){for(let t=e.depth;t>0;t--){const n=e.node(t).type.spec.tableRole;if(n==="cell"||n==="header_cell")return e.node(t)}return null}function zd(e){const t=e.selection.$head;for(let n=t.depth;n>0;n--)if(t.node(n).type.spec.tableRole=="row")return!0;return!1}function d9(e){const t=e.selection;if("$anchorCell"in t&&t.$anchorCell)return t.$anchorCell.pos>t.$headCell.pos?t.$anchorCell:t.$headCell;if("node"in t&&t.node&&t.node.type.spec.tableRole=="cell")return t.$anchor;const n=sE(t.$head)||tln(t.$head);if(n)return n;throw new RangeError(`No cell found around position ${t.head}`)}function tln(e){for(let t=e.nodeAfter,n=e.pos;t;t=t.firstChild,n++){const r=t.type.spec.tableRole;if(r=="cell"||r=="header_cell")return e.doc.resolve(n)}for(let t=e.nodeBefore,n=e.pos;t;t=t.lastChild,n--){const r=t.type.spec.tableRole;if(r=="cell"||r=="header_cell")return e.doc.resolve(n-t.nodeSize)}}function sV(e){return e.parent.type.spec.tableRole=="row"&&!!e.nodeAfter}function nln(e){return e.node(0).resolve(e.pos+e.nodeAfter.nodeSize)}function hX(e,t){return e.depth==t.depth&&e.pos>=t.start(-1)&&e.pos<=t.end(-1)}function X4e(e,t,n){const r=e.node(-1),i=Ro.get(r),o=e.start(-1),a=i.nextCell(e.pos-o,t,n);return a==null?null:e.node(0).resolve(o+a)}function a0(e,t,n=1){const r={...e,colspan:e.colspan-n};return r.colwidth&&(r.colwidth=r.colwidth.slice(),r.colwidth.splice(t,n),r.colwidth.some(i=>i>0)||(r.colwidth=null)),r}function Z4e(e,t,n=1){const r={...e,colspan:e.colspan+n};if(r.colwidth){r.colwidth=r.colwidth.slice();for(let i=0;i<n;i++)r.colwidth.splice(t,0,0)}return r}function rln(e,t,n){const r=Ps(t.type.schema).header_cell;for(let i=0;i<e.height;i++)if(t.nodeAt(e.map[n+i*e.width]).type!=r)return!1;return!0}var Ti=class Sp extends mr{constructor(t,n=t){const r=t.node(-1),i=Ro.get(r),o=t.start(-1),a=i.rectBetween(t.pos-o,n.pos-o),s=t.node(0),l=i.cellsInRect(a).filter(u=>u!=n.pos-o);l.unshift(n.pos-o);const c=l.map(u=>{const d=r.nodeAt(u);if(!d)throw RangeError(`No cell with offset ${u} found`);const f=o+u+1;return new fke(s.resolve(f),s.resolve(f+d.content.size))});super(c[0].$from,c[0].$to,c),this.$anchorCell=t,this.$headCell=n}map(t,n){const r=t.resolve(n.map(this.$anchorCell.pos)),i=t.resolve(n.map(this.$headCell.pos));if(sV(r)&&sV(i)&&hX(r,i)){const o=this.$anchorCell.node(-1)!=r.node(-1);return o&&this.isRowSelection()?Sp.rowSelection(r,i):o&&this.isColSelection()?Sp.colSelection(r,i):new Sp(r,i)}return er.between(r,i)}content(){const t=this.$anchorCell.node(-1),n=Ro.get(t),r=this.$anchorCell.start(-1),i=n.rectBetween(this.$anchorCell.pos-r,this.$headCell.pos-r),o={},a=[];for(let l=i.top;l<i.bottom;l++){const c=[];for(let u=l*n.width+i.left,d=i.left;d<i.right;d++,u++){const f=n.map[u];if(o[f])continue;o[f]=!0;const h=n.findCell(f);let m=t.nodeAt(f);if(!m)throw RangeError(`No cell with offset ${f} found`);const g=i.left-h.left,v=h.right-i.right;if(g>0||v>0){let y=m.attrs;if(g>0&&(y=a0(y,0,g)),v>0&&(y=a0(y,y.colspan-v,v)),h.left<i.left){if(m=m.type.createAndFill(y),!m)throw RangeError(`Could not create cell with attrs ${JSON.stringify(y)}`)}else m=m.type.create(y,m.content)}if(h.top<i.top||h.bottom>i.bottom){const y={...m.attrs,rowspan:Math.min(h.bottom,i.bottom)-Math.max(h.top,i.top)};h.top<i.top?m=m.type.createAndFill(y):m=m.type.create(y,m.content)}c.push(m)}a.push(t.child(l).copy(Xt.from(c)))}const s=this.isColSelection()&&this.isRowSelection()?t:a;return new Rn(Xt.from(s),1,1)}replace(t,n=Rn.empty){const r=t.steps.length,i=this.ranges;for(let a=0;a<i.length;a++){const{$from:s,$to:l}=i[a],c=t.mapping.slice(r);t.replace(c.map(s.pos),c.map(l.pos),a?Rn.empty:n)}const o=mr.findFrom(t.doc.resolve(t.mapping.slice(r).map(this.to)),-1);o&&t.setSelection(o)}replaceWith(t,n){this.replace(t,new Rn(Xt.from(n),0,0))}forEachCell(t){const n=this.$anchorCell.node(-1),r=Ro.get(n),i=this.$anchorCell.start(-1),o=r.cellsInRect(r.rectBetween(this.$anchorCell.pos-i,this.$headCell.pos-i));for(let a=0;a<o.length;a++)t(n.nodeAt(o[a]),i+o[a])}isColSelection(){const t=this.$anchorCell.index(-1),n=this.$headCell.index(-1);if(Math.min(t,n)>0)return!1;const r=t+this.$anchorCell.nodeAfter.attrs.rowspan,i=n+this.$headCell.nodeAfter.attrs.rowspan;return Math.max(r,i)==this.$headCell.node(-1).childCount}static colSelection(t,n=t){const r=t.node(-1),i=Ro.get(r),o=t.start(-1),a=i.findCell(t.pos-o),s=i.findCell(n.pos-o),l=t.node(0);return a.top<=s.top?(a.top>0&&(t=l.resolve(o+i.map[a.left])),s.bottom<i.height&&(n=l.resolve(o+i.map[i.width*(i.height-1)+s.right-1]))):(s.top>0&&(n=l.resolve(o+i.map[s.left])),a.bottom<i.height&&(t=l.resolve(o+i.map[i.width*(i.height-1)+a.right-1]))),new Sp(t,n)}isRowSelection(){const t=this.$anchorCell.node(-1),n=Ro.get(t),r=this.$anchorCell.start(-1),i=n.colCount(this.$anchorCell.pos-r),o=n.colCount(this.$headCell.pos-r);if(Math.min(i,o)>0)return!1;const a=i+this.$anchorCell.nodeAfter.attrs.colspan,s=o+this.$headCell.nodeAfter.attrs.colspan;return Math.max(a,s)==n.width}eq(t){return t instanceof Sp&&t.$anchorCell.pos==this.$anchorCell.pos&&t.$headCell.pos==this.$headCell.pos}static rowSelection(t,n=t){const r=t.node(-1),i=Ro.get(r),o=t.start(-1),a=i.findCell(t.pos-o),s=i.findCell(n.pos-o),l=t.node(0);return a.left<=s.left?(a.left>0&&(t=l.resolve(o+i.map[a.top*i.width])),s.right<i.width&&(n=l.resolve(o+i.map[i.width*(s.top+1)-1]))):(s.left>0&&(n=l.resolve(o+i.map[s.top*i.width])),a.right<i.width&&(t=l.resolve(o+i.map[i.width*(a.top+1)-1]))),new Sp(t,n)}toJSON(){return{type:"cell",anchor:this.$anchorCell.pos,head:this.$headCell.pos}}static fromJSON(t,n){return new Sp(t.resolve(n.anchor),t.resolve(n.head))}static create(t,n,r=n){return new Sp(t.resolve(n),t.resolve(r))}getBookmark(){return new iln(this.$anchorCell.pos,this.$headCell.pos)}};Ti.prototype.visible=!1;mr.jsonID("cell",Ti);var iln=class J4e{constructor(t,n){this.anchor=t,this.head=n}map(t){return new J4e(t.map(this.anchor),t.map(this.head))}resolve(t){const n=t.resolve(this.anchor),r=t.resolve(this.head);return n.parent.type.spec.tableRole=="row"&&r.parent.type.spec.tableRole=="row"&&n.index()<n.parent.childCount&&r.index()<r.parent.childCount&&hX(n,r)?new Ti(n,r):mr.near(r,1)}};function oln(e){if(!(e.selection instanceof Ti))return null;const t=[];return e.selection.forEachCell((n,r)=>{t.push(ta.node(r,r+n.nodeSize,{class:"selectedCell"}))}),Ci.create(e.doc,t)}function aln({$from:e,$to:t}){if(e.pos==t.pos||e.pos<t.pos-6)return!1;let n=e.pos,r=t.pos,i=e.depth;for(;i>=0&&!(e.after(i+1)<e.end(i));i--,n++);for(let o=t.depth;o>=0&&!(t.before(o+1)>t.start(o));o--,r--);return n==r&&/row|table/.test(e.node(i).type.spec.tableRole)}function sln({$from:e,$to:t}){let n,r;for(let i=e.depth;i>0;i--){const o=e.node(i);if(o.type.spec.tableRole==="cell"||o.type.spec.tableRole==="header_cell"){n=o;break}}for(let i=t.depth;i>0;i--){const o=t.node(i);if(o.type.spec.tableRole==="cell"||o.type.spec.tableRole==="header_cell"){r=o;break}}return n!==r&&t.parentOffset===0}function lln(e,t,n){const r=(t||e).selection,i=(t||e).doc;let o,a;if(r instanceof lr&&(a=r.node.type.spec.tableRole)){if(a=="cell"||a=="header_cell")o=Ti.create(i,r.from);else if(a=="row"){const s=i.resolve(r.from+1);o=Ti.rowSelection(s,s)}else if(!n){const s=Ro.get(r.node),l=r.from+1,c=l+s.map[s.width*s.height-1];o=Ti.create(i,l+1,c)}}else r instanceof er&&aln(r)?o=er.create(i,r.from):r instanceof er&&sln(r)&&(o=er.create(i,r.$from.start(),r.$from.end()));return o&&(t||(t=e.tr)).setSelection(o),t}var cln=new $i("fix-tables");function ePe(e,t,n,r){const i=e.childCount,o=t.childCount;e:for(let a=0,s=0;a<o;a++){const l=t.child(a);for(let c=s,u=Math.min(i,a+3);c<u;c++)if(e.child(c)==l){s=c+1,n+=l.nodeSize;continue e}r(l,n),s<i&&e.child(s).sameMarkup(l)?ePe(e.child(s),l,n+1,r):l.nodesBetween(0,l.content.size,r,n+1),n+=l.nodeSize}}function tPe(e,t){let n;const r=(i,o)=>{i.type.spec.tableRole=="table"&&(n=uln(e,i,o,n))};return t?t.doc!=e.doc&&ePe(t.doc,e.doc,0,r):e.doc.descendants(r),n}function uln(e,t,n,r){const i=Ro.get(t);if(!i.problems)return r;r||(r=e.tr);const o=[];for(let l=0;l<i.height;l++)o.push(0);for(let l=0;l<i.problems.length;l++){const c=i.problems[l];if(c.type=="collision"){const u=t.nodeAt(c.pos);if(!u)continue;const d=u.attrs;for(let f=0;f<d.rowspan;f++)o[c.row+f]+=c.n;r.setNodeMarkup(r.mapping.map(n+1+c.pos),null,a0(d,d.colspan-c.n,c.n))}else if(c.type=="missing")o[c.row]+=c.n;else if(c.type=="overlong_rowspan"){const u=t.nodeAt(c.pos);if(!u)continue;r.setNodeMarkup(r.mapping.map(n+1+c.pos),null,{...u.attrs,rowspan:u.attrs.rowspan-c.n})}else if(c.type=="colwidth mismatch"){const u=t.nodeAt(c.pos);if(!u)continue;r.setNodeMarkup(r.mapping.map(n+1+c.pos),null,{...u.attrs,colwidth:c.colwidth})}}let a,s;for(let l=0;l<o.length;l++)o[l]&&(a==null&&(a=l),s=l);for(let l=0,c=n+1;l<i.height;l++){const u=t.child(l),d=c+u.nodeSize,f=o[l];if(f>0){let h="cell";u.firstChild&&(h=u.firstChild.type.spec.tableRole);const m=[];for(let v=0;v<f;v++){const y=Ps(e.schema)[h].createAndFill();y&&m.push(y)}const g=(l==0||a==l-1)&&s==l?c+1:d-1;r.insert(r.mapping.map(g),m)}c=d}return r.setMeta(cln,{fixTables:!0})}function Xf(e){const t=e.selection,n=d9(e),r=n.node(-1),i=n.start(-1),o=Ro.get(r);return{...t instanceof Ti?o.rectBetween(t.$anchorCell.pos-i,t.$headCell.pos-i):o.findCell(n.pos-i),tableStart:i,map:o,table:r}}function nPe(e,{map:t,tableStart:n,table:r},i){let o=i>0?-1:0;rln(t,r,i+o)&&(o=i==0||i==t.width?null:0);for(let a=0;a<t.height;a++){const s=a*t.width+i;if(i>0&&i<t.width&&t.map[s-1]==t.map[s]){const l=t.map[s],c=r.nodeAt(l);e.setNodeMarkup(e.mapping.map(n+l),null,Z4e(c.attrs,i-t.colCount(l))),a+=c.attrs.rowspan-1}else{const l=o==null?Ps(r.type.schema).cell:r.nodeAt(t.map[s+o]).type,c=t.positionAt(a,i,r);e.insert(e.mapping.map(n+c),l.createAndFill())}}return e}function dln(e,t){if(!zd(e))return!1;if(t){const n=Xf(e);t(nPe(e.tr,n,n.left))}return!0}function fln(e,t){if(!zd(e))return!1;if(t){const n=Xf(e);t(nPe(e.tr,n,n.right))}return!0}function pln(e,{map:t,table:n,tableStart:r},i){const o=e.mapping.maps.length;for(let a=0;a<t.height;){const s=a*t.width+i,l=t.map[s],c=n.nodeAt(l),u=c.attrs;if(i>0&&t.map[s-1]==l||i<t.width-1&&t.map[s+1]==l)e.setNodeMarkup(e.mapping.slice(o).map(r+l),null,a0(u,i-t.colCount(l)));else{const d=e.mapping.slice(o).map(r+l);e.delete(d,d+c.nodeSize)}a+=u.rowspan}}function hln(e,t){if(!zd(e))return!1;if(t){const n=Xf(e),r=e.tr;if(n.left==0&&n.right==n.map.width)return!1;for(let i=n.right-1;pln(r,n,i),i!=n.left;i--){const o=n.tableStart?r.doc.nodeAt(n.tableStart-1):r.doc;if(!o)throw RangeError("No table found");n.table=o,n.map=Ro.get(o)}t(r)}return!0}function mln(e,t,n){var r;const i=Ps(t.type.schema).header_cell;for(let o=0;o<e.width;o++)if(((r=t.nodeAt(e.map[o+n*e.width]))==null?void 0:r.type)!=i)return!1;return!0}function rPe(e,{map:t,tableStart:n,table:r},i){var o;let a=n;for(let c=0;c<i;c++)a+=r.child(c).nodeSize;const s=[];let l=i>0?-1:0;mln(t,r,i+l)&&(l=i==0||i==t.height?null:0);for(let c=0,u=t.width*i;c<t.width;c++,u++)if(i>0&&i<t.height&&t.map[u]==t.map[u-t.width]){const d=t.map[u],f=r.nodeAt(d).attrs;e.setNodeMarkup(n+d,null,{...f,rowspan:f.rowspan+1}),c+=f.colspan-1}else{const d=l==null?Ps(r.type.schema).cell:(o=r.nodeAt(t.map[u+l*t.width]))==null?void 0:o.type,f=d==null?void 0:d.createAndFill();f&&s.push(f)}return e.insert(a,Ps(r.type.schema).row.create(null,s)),e}function gln(e,t){if(!zd(e))return!1;if(t){const n=Xf(e);t(rPe(e.tr,n,n.top))}return!0}function vln(e,t){if(!zd(e))return!1;if(t){const n=Xf(e);t(rPe(e.tr,n,n.bottom))}return!0}function bln(e,{map:t,table:n,tableStart:r},i){let o=0;for(let c=0;c<i;c++)o+=n.child(c).nodeSize;const a=o+n.child(i).nodeSize,s=e.mapping.maps.length;e.delete(o+r,a+r);const l=new Set;for(let c=0,u=i*t.width;c<t.width;c++,u++){const d=t.map[u];if(!l.has(d)){if(l.add(d),i>0&&d==t.map[u-t.width]){const f=n.nodeAt(d).attrs;e.setNodeMarkup(e.mapping.slice(s).map(d+r),null,{...f,rowspan:f.rowspan-1}),c+=f.colspan-1}else if(i<t.height&&d==t.map[u+t.width]){const f=n.nodeAt(d),h=f.attrs,m=f.type.create({...h,rowspan:f.attrs.rowspan-1},f.content),g=t.positionAt(i+1,c,n);e.insert(e.mapping.slice(s).map(r+g),m),c+=h.colspan-1}}}}function yln(e,t){if(!zd(e))return!1;if(t){const n=Xf(e),r=e.tr;if(n.top==0&&n.bottom==n.map.height)return!1;for(let i=n.bottom-1;bln(r,n,i),i!=n.top;i--){const o=n.tableStart?r.doc.nodeAt(n.tableStart-1):r.doc;if(!o)throw RangeError("No table found");n.table=o,n.map=Ro.get(n.table)}t(r)}return!0}function Qde(e){const t=e.content;return t.childCount==1&&t.child(0).isTextblock&&t.child(0).childCount==0}function _ln({width:e,height:t,map:n},r){let i=r.top*e+r.left,o=i,a=(r.bottom-1)*e+r.left,s=i+(r.right-r.left-1);for(let l=r.top;l<r.bottom;l++){if(r.left>0&&n[o]==n[o-1]||r.right<e&&n[s]==n[s+1])return!0;o+=e,s+=e}for(let l=r.left;l<r.right;l++){if(r.top>0&&n[i]==n[i-e]||r.bottom<t&&n[a]==n[a+e])return!0;i++,a++}return!1}function Xde(e,t){const n=e.selection;if(!(n instanceof Ti)||n.$anchorCell.pos==n.$headCell.pos)return!1;const r=Xf(e),{map:i}=r;if(_ln(i,r))return!1;if(t){const o=e.tr,a={};let s=Xt.empty,l,c;for(let u=r.top;u<r.bottom;u++)for(let d=r.left;d<r.right;d++){const f=i.map[u*i.width+d],h=r.table.nodeAt(f);if(!(a[f]||!h))if(a[f]=!0,l==null)l=f,c=h;else{Qde(h)||(s=s.append(h.content));const m=o.mapping.map(f+r.tableStart);o.delete(m,m+h.nodeSize)}}if(l==null||c==null)return!0;if(o.setNodeMarkup(l+r.tableStart,null,{...Z4e(c.attrs,c.attrs.colspan,r.right-r.left-c.attrs.colspan),rowspan:r.bottom-r.top}),s.size){const u=l+1+c.content.size,d=Qde(c)?l+1:u;o.replaceWith(d+r.tableStart,u+r.tableStart,s)}o.setSelection(new Ti(o.doc.resolve(l+r.tableStart))),t(o)}return!0}function Zde(e,t){const n=Ps(e.schema);return Sln(({node:r})=>n[r.type.spec.tableRole])(e,t)}function Sln(e){return(t,n)=>{var r;const i=t.selection;let o,a;if(i instanceof Ti){if(i.$anchorCell.pos!=i.$headCell.pos)return!1;o=i.$anchorCell.nodeAfter,a=i.$anchorCell.pos}else{if(o=eln(i.$from),!o)return!1;a=(r=sE(i.$from))==null?void 0:r.pos}if(o==null||a==null||o.attrs.colspan==1&&o.attrs.rowspan==1)return!1;if(n){let s=o.attrs;const l=[],c=s.colwidth;s.rowspan>1&&(s={...s,rowspan:1}),s.colspan>1&&(s={...s,colspan:1});const u=Xf(t),d=t.tr;for(let h=0;h<u.right-u.left;h++)l.push(c?{...s,colwidth:c&&c[h]?[c[h]]:null}:s);let f;for(let h=u.top;h<u.bottom;h++){let m=u.map.positionAt(h,u.left,u.table);h==u.top&&(m+=o.nodeSize);for(let g=u.left,v=0;g<u.right;g++,v++)g==u.left&&h==u.top||d.insert(f=d.mapping.map(m+u.tableStart,1),e({node:o,row:h,col:g}).createAndFill(l[v]))}d.setNodeMarkup(a,e({node:o,row:u.top,col:u.left}),l[0]),i instanceof Ti&&d.setSelection(new Ti(d.doc.resolve(i.$anchorCell.pos),f?d.doc.resolve(f):void 0)),n(d)}return!0}}function Eln(e,t){return function(n,r){if(!zd(n))return!1;const i=d9(n);if(i.nodeAfter.attrs[e]===t)return!1;if(r){const o=n.tr;n.selection instanceof Ti?n.selection.forEachCell((a,s)=>{a.attrs[e]!==t&&o.setNodeMarkup(s,null,{...a.attrs,[e]:t})}):o.setNodeMarkup(i.pos,null,{...i.nodeAfter.attrs,[e]:t}),r(o)}return!0}}function Cln(e){return function(t,n){if(!zd(t))return!1;if(n){const r=Ps(t.schema),i=Xf(t),o=t.tr,a=i.map.cellsInRect(e=="column"?{left:i.left,top:0,right:i.right,bottom:i.map.height}:e=="row"?{left:0,top:i.top,right:i.map.width,bottom:i.bottom}:i),s=a.map(l=>i.table.nodeAt(l));for(let l=0;l<a.length;l++)s[l].type==r.header_cell&&o.setNodeMarkup(i.tableStart+a[l],r.cell,s[l].attrs);if(o.steps.length==0)for(let l=0;l<a.length;l++)o.setNodeMarkup(i.tableStart+a[l],r.header_cell,s[l].attrs);n(o)}return!0}}function Jde(e,t,n){const r=t.map.cellsInRect({left:0,top:0,right:e=="row"?t.map.width:1,bottom:e=="column"?t.map.height:1});for(let i=0;i<r.length;i++){const o=t.table.nodeAt(r[i]);if(o&&o.type!==n.header_cell)return!1}return!0}function px(e,t){return t=t||{useDeprecatedLogic:!1},t.useDeprecatedLogic?Cln(e):function(n,r){if(!zd(n))return!1;if(r){const i=Ps(n.schema),o=Xf(n),a=n.tr,s=Jde("row",o,i),l=Jde("column",o,i),c=(e==="column"?s:e==="row"&&l)?1:0,u=e=="column"?{left:0,top:c,right:1,bottom:o.map.height}:e=="row"?{left:c,top:0,right:o.map.width,bottom:1}:o,d=e=="column"?l?i.cell:i.header_cell:e=="row"?s?i.cell:i.header_cell:i.cell;o.map.cellsInRect(u).forEach(f=>{const h=f+o.tableStart,m=a.doc.nodeAt(h);m&&a.setNodeMarkup(h,d,m.attrs)}),r(a)}return!0}}px("row",{useDeprecatedLogic:!0});px("column",{useDeprecatedLogic:!0});var wln=px("cell",{useDeprecatedLogic:!0});function Tln(e,t){if(t<0){const n=e.nodeBefore;if(n)return e.pos-n.nodeSize;for(let r=e.index(-1)-1,i=e.before();r>=0;r--){const o=e.node(-1).child(r),a=o.lastChild;if(a)return i-1-a.nodeSize;i-=o.nodeSize}}else{if(e.index()<e.parent.childCount-1)return e.pos+e.nodeAfter.nodeSize;const n=e.node(-1);for(let r=e.indexAfter(-1),i=e.after();r<n.childCount;r++){const o=n.child(r);if(o.childCount)return i+1;i+=o.nodeSize}}return null}function efe(e){return function(t,n){if(!zd(t))return!1;const r=Tln(d9(t),e);if(r==null)return!1;if(n){const i=t.doc.resolve(r);n(t.tr.setSelection(er.between(i,nln(i))).scrollIntoView())}return!0}}function xln(e,t){const n=e.selection.$anchor;for(let r=n.depth;r>0;r--)if(n.node(r).type.spec.tableRole=="table")return t&&t(e.tr.delete(n.before(r),n.after(r)).scrollIntoView()),!0;return!1}function uI(e,t){const n=e.selection;if(!(n instanceof Ti))return!1;if(t){const r=e.tr,i=Ps(e.schema).cell.createAndFill().content;n.forEachCell((o,a)=>{o.content.eq(i)||r.replace(r.mapping.map(a+1),r.mapping.map(a+o.nodeSize-1),new Rn(i,0,0))}),r.docChanged&&t(r)}return!0}function Oln(e){if(!e.size)return null;let{content:t,openStart:n,openEnd:r}=e;for(;t.childCount==1&&(n>0&&r>0||t.child(0).type.spec.tableRole=="table");)n--,r--,t=t.child(0).content;const i=t.child(0),o=i.type.spec.tableRole,a=i.type.schema,s=[];if(o=="row")for(let l=0;l<t.childCount;l++){let c=t.child(l).content;const u=l?0:Math.max(0,n-1),d=l<t.childCount-1?0:Math.max(0,r-1);(u||d)&&(c=lV(Ps(a).row,new Rn(c,u,d)).content),s.push(c)}else if(o=="cell"||o=="header_cell")s.push(n||r?lV(Ps(a).row,new Rn(t,n,r)).content:t);else return null;return Rln(a,s)}function Rln(e,t){const n=[];for(let i=0;i<t.length;i++){const o=t[i];for(let a=o.childCount-1;a>=0;a--){const{rowspan:s,colspan:l}=o.child(a).attrs;for(let c=i;c<i+s;c++)n[c]=(n[c]||0)+l}}let r=0;for(let i=0;i<n.length;i++)r=Math.max(r,n[i]);for(let i=0;i<n.length;i++)if(i>=t.length&&t.push(Xt.empty),n[i]<r){const o=Ps(e).cell.createAndFill(),a=[];for(let s=n[i];s<r;s++)a.push(o);t[i]=t[i].append(Xt.from(a))}return{height:t.length,width:r,rows:t}}function lV(e,t){const n=e.createAndFill();return new PQ(n).replace(0,n.content.size,t).doc}function Iln({width:e,height:t,rows:n},r,i){if(e!=r){const o=[],a=[];for(let s=0;s<n.length;s++){const l=n[s],c=[];for(let u=o[s]||0,d=0;u<r;d++){let f=l.child(d%l.childCount);u+f.attrs.colspan>r&&(f=f.type.createChecked(a0(f.attrs,f.attrs.colspan,u+f.attrs.colspan-r),f.content)),c.push(f),u+=f.attrs.colspan;for(let h=1;h<f.attrs.rowspan;h++)o[s+h]=(o[s+h]||0)+f.attrs.colspan}a.push(Xt.from(c))}n=a,e=r}if(t!=i){const o=[];for(let a=0,s=0;a<i;a++,s++){const l=[],c=n[s%t];for(let u=0;u<c.childCount;u++){let d=c.child(u);a+d.attrs.rowspan>i&&(d=d.type.create({...d.attrs,rowspan:Math.max(1,i-d.attrs.rowspan)},d.content)),l.push(d)}o.push(Xt.from(l))}n=o,t=i}return{width:e,height:t,rows:n}}function Aln(e,t,n,r,i,o,a){const s=e.doc.type.schema,l=Ps(s);let c,u;if(i>t.width)for(let d=0,f=0;d<t.height;d++){const h=n.child(d);f+=h.nodeSize;const m=[];let g;h.lastChild==null||h.lastChild.type==l.cell?g=c||(c=l.cell.createAndFill()):g=u||(u=l.header_cell.createAndFill());for(let v=t.width;v<i;v++)m.push(g);e.insert(e.mapping.slice(a).map(f-1+r),m)}if(o>t.height){const d=[];for(let m=0,g=(t.height-1)*t.width;m<Math.max(t.width,i);m++){const v=m>=t.width?!1:n.nodeAt(t.map[g+m]).type==l.header_cell;d.push(v?u||(u=l.header_cell.createAndFill()):c||(c=l.cell.createAndFill()))}const f=l.row.create(null,Xt.from(d)),h=[];for(let m=t.height;m<o;m++)h.push(f);e.insert(e.mapping.slice(a).map(r+n.nodeSize-2),h)}return!!(c||u)}function tfe(e,t,n,r,i,o,a,s){if(a==0||a==t.height)return!1;let l=!1;for(let c=i;c<o;c++){const u=a*t.width+c,d=t.map[u];if(t.map[u-t.width]==d){l=!0;const f=n.nodeAt(d),{top:h,left:m}=t.findCell(d);e.setNodeMarkup(e.mapping.slice(s).map(d+r),null,{...f.attrs,rowspan:a-h}),e.insert(e.mapping.slice(s).map(t.positionAt(a,m,n)),f.type.createAndFill({...f.attrs,rowspan:h+f.attrs.rowspan-a})),c+=f.attrs.colspan-1}}return l}function nfe(e,t,n,r,i,o,a,s){if(a==0||a==t.width)return!1;let l=!1;for(let c=i;c<o;c++){const u=c*t.width+a,d=t.map[u];if(t.map[u-1]==d){l=!0;const f=n.nodeAt(d),h=t.colCount(d),m=e.mapping.slice(s).map(d+r);e.setNodeMarkup(m,null,a0(f.attrs,a-h,f.attrs.colspan-(a-h))),e.insert(m+f.nodeSize,f.type.createAndFill(a0(f.attrs,0,a-h))),c+=f.attrs.rowspan-1}}return l}function rfe(e,t,n,r,i){let o=n?e.doc.nodeAt(n-1):e.doc;if(!o)throw new Error("No table found");let a=Ro.get(o);const{top:s,left:l}=r,c=l+i.width,u=s+i.height,d=e.tr;let f=0;function h(){if(o=n?d.doc.nodeAt(n-1):d.doc,!o)throw new Error("No table found");a=Ro.get(o),f=d.mapping.maps.length}Aln(d,a,o,n,c,u,f)&&h(),tfe(d,a,o,n,l,c,s,f)&&h(),tfe(d,a,o,n,l,c,u,f)&&h(),nfe(d,a,o,n,s,u,l,f)&&h(),nfe(d,a,o,n,s,u,c,f)&&h();for(let m=s;m<u;m++){const g=a.positionAt(m,l,o),v=a.positionAt(m,c,o);d.replace(d.mapping.slice(f).map(g+n),d.mapping.slice(f).map(v+n),new Rn(i.rows[m-s],0,0))}h(),d.setSelection(new Ti(d.doc.resolve(n+a.positionAt(s,l,o)),d.doc.resolve(n+a.positionAt(u-1,c-1,o)))),t(d)}var Nln=VQ({ArrowLeft:dI("horiz",-1),ArrowRight:dI("horiz",1),ArrowUp:dI("vert",-1),ArrowDown:dI("vert",1),"Shift-ArrowLeft":fI("horiz",-1),"Shift-ArrowRight":fI("horiz",1),"Shift-ArrowUp":fI("vert",-1),"Shift-ArrowDown":fI("vert",1),Backspace:uI,"Mod-Backspace":uI,Delete:uI,"Mod-Delete":uI});function pN(e,t,n){return n.eq(e.selection)?!1:(t&&t(e.tr.setSelection(n).scrollIntoView()),!0)}function dI(e,t){return(n,r,i)=>{if(!i)return!1;const o=n.selection;if(o instanceof Ti)return pN(n,r,mr.near(o.$headCell,t));if(e!="horiz"&&!o.empty)return!1;const a=iPe(i,e,t);if(a==null)return!1;if(e=="horiz")return pN(n,r,mr.near(n.doc.resolve(o.head+t),t));{const s=n.doc.resolve(a),l=X4e(s,e,t);let c;return l?c=mr.near(l,1):t<0?c=mr.near(n.doc.resolve(s.before(-1)),-1):c=mr.near(n.doc.resolve(s.after(-1)),1),pN(n,r,c)}}}function fI(e,t){return(n,r,i)=>{if(!i)return!1;const o=n.selection;let a;if(o instanceof Ti)a=o;else{const l=iPe(i,e,t);if(l==null)return!1;a=new Ti(n.doc.resolve(l))}const s=X4e(a.$headCell,e,t);return s?pN(n,r,new Ti(a.$anchorCell,s)):!1}}function Mln(e,t){const n=e.state.doc,r=sE(n.resolve(t));return r?(e.dispatch(e.state.tr.setSelection(new Ti(r))),!0):!1}function kln(e,t,n){if(!zd(e.state))return!1;let r=Oln(n);const i=e.state.selection;if(i instanceof Ti){r||(r={width:1,height:1,rows:[Xt.from(lV(Ps(e.state.schema).cell,n))]});const o=i.$anchorCell.node(-1),a=i.$anchorCell.start(-1),s=Ro.get(o).rectBetween(i.$anchorCell.pos-a,i.$headCell.pos-a);return r=Iln(r,s.right-s.left,s.bottom-s.top),rfe(e.state,e.dispatch,a,s,r),!0}else if(r){const o=d9(e.state),a=o.start(-1);return rfe(e.state,e.dispatch,a,Ro.get(o.node(-1)).findCell(o.pos-a),r),!0}else return!1}function Pln(e,t){var n;if(t.ctrlKey||t.metaKey)return;const r=ife(e,t.target);let i;if(t.shiftKey&&e.state.selection instanceof Ti)o(e.state.selection.$anchorCell,t),t.preventDefault();else if(t.shiftKey&&r&&(i=sE(e.state.selection.$anchor))!=null&&((n=A6(e,t))==null?void 0:n.pos)!=i.pos)o(i,t),t.preventDefault();else if(!r)return;function o(l,c){let u=A6(e,c);const d=ym.getState(e.state)==null;if(!u||!hX(l,u))if(d)u=l;else return;const f=new Ti(l,u);if(d||!e.state.selection.eq(f)){const h=e.state.tr.setSelection(f);d&&h.setMeta(ym,l.pos),e.dispatch(h)}}function a(){e.root.removeEventListener("mouseup",a),e.root.removeEventListener("dragstart",a),e.root.removeEventListener("mousemove",s),ym.getState(e.state)!=null&&e.dispatch(e.state.tr.setMeta(ym,-1))}function s(l){const c=l,u=ym.getState(e.state);let d;if(u!=null)d=e.state.doc.resolve(u);else if(ife(e,c.target)!=r&&(d=A6(e,t),!d))return a();d&&o(d,c)}e.root.addEventListener("mouseup",a),e.root.addEventListener("dragstart",a),e.root.addEventListener("mousemove",s)}function iPe(e,t,n){if(!(e.state.selection instanceof er))return null;const{$head:r}=e.state.selection;for(let i=r.depth-1;i>=0;i--){const o=r.node(i);if((n<0?r.index(i):r.indexAfter(i))!=(n<0?0:o.childCount))return null;if(o.type.spec.tableRole=="cell"||o.type.spec.tableRole=="header_cell"){const a=r.before(i),s=t=="vert"?n>0?"down":"up":n>0?"right":"left";return e.endOfTextblock(s)?a:null}}return null}function ife(e,t){for(;t&&t!=e.dom;t=t.parentNode)if(t.nodeName=="TD"||t.nodeName=="TH")return t;return null}function A6(e,t){const n=e.posAtCoords({left:t.clientX,top:t.clientY});return n&&n?sE(e.state.doc.resolve(n.pos)):null}var Dln=class{constructor(e,t){this.node=e,this.defaultCellMinWidth=t,this.dom=document.createElement("div"),this.dom.className="tableWrapper",this.table=this.dom.appendChild(document.createElement("table")),this.table.style.setProperty("--default-cell-min-width",`${t}px`),this.colgroup=this.table.appendChild(document.createElement("colgroup")),cV(e,this.colgroup,this.table,t),this.contentDOM=this.table.appendChild(document.createElement("tbody"))}update(e){return e.type!=this.node.type?!1:(this.node=e,cV(e,this.colgroup,this.table,this.defaultCellMinWidth),!0)}ignoreMutation(e){return e.type=="attributes"&&(e.target==this.table||this.colgroup.contains(e.target))}};function cV(e,t,n,r,i,o){var a;let s=0,l=!0,c=t.firstChild;const u=e.firstChild;if(u){for(let d=0,f=0;d<u.childCount;d++){const{colspan:h,colwidth:m}=u.child(d).attrs;for(let g=0;g<h;g++,f++){const v=i==f?o:m&&m[g],y=v?v+"px":"";if(s+=v||r,v||(l=!1),c)c.style.width!=y&&(c.style.width=y),c=c.nextSibling;else{const b=document.createElement("col");b.style.width=y,t.appendChild(b)}}}for(;c;){const d=c.nextSibling;(a=c.parentNode)==null||a.removeChild(c),c=d}l?(n.style.width=s+"px",n.style.minWidth=""):(n.style.width="",n.style.minWidth=s+"px")}}var dc=new $i("tableColumnResizing");function Lln({handleWidth:e=5,cellMinWidth:t=25,defaultCellMinWidth:n=100,View:r=Dln,lastColumnResizable:i=!0}={}){const o=new Ei({key:dc,state:{init(a,s){var l,c;const u=(c=(l=o.spec)==null?void 0:l.props)==null?void 0:c.nodeViews,d=Ps(s.schema).table.name;return r&&u&&(u[d]=(f,h)=>new r(f,n,h)),new $ln(-1,!1)},apply(a,s){return s.apply(a)}},props:{attributes:a=>{const s=dc.getState(a);return s&&s.activeHandle>-1?{class:"resize-cursor"}:{}},handleDOMEvents:{mousemove:(a,s)=>{Fln(a,s,e,i)},mouseleave:a=>{Bln(a)},mousedown:(a,s)=>{jln(a,s,t,n)}},decorations:a=>{const s=dc.getState(a);if(s&&s.activeHandle>-1)return Gln(a,s.activeHandle)},nodeViews:{}}});return o}var $ln=class hN{constructor(t,n){this.activeHandle=t,this.dragging=n}apply(t){const n=this,r=t.getMeta(dc);if(r&&r.setHandle!=null)return new hN(r.setHandle,!1);if(r&&r.setDragging!==void 0)return new hN(n.activeHandle,r.setDragging);if(n.activeHandle>-1&&t.docChanged){let i=t.mapping.map(n.activeHandle,-1);return sV(t.doc.resolve(i))||(i=-1),new hN(i,n.dragging)}return n}};function Fln(e,t,n,r){const i=dc.getState(e.state);if(i&&!i.dragging){const o=Uln(t.target);let a=-1;if(o){const{left:s,right:l}=o.getBoundingClientRect();t.clientX-s<=n?a=ofe(e,t,"left",n):l-t.clientX<=n&&(a=ofe(e,t,"right",n))}if(a!=i.activeHandle){if(!r&&a!==-1){const s=e.state.doc.resolve(a),l=s.node(-1),c=Ro.get(l),u=s.start(-1);if(c.colCount(s.pos-u)+s.nodeAfter.attrs.colspan-1==c.width-1)return}oPe(e,a)}}}function Bln(e){const t=dc.getState(e.state);t&&t.activeHandle>-1&&!t.dragging&&oPe(e,-1)}function jln(e,t,n,r){var i;const o=(i=e.dom.ownerDocument.defaultView)!=null?i:window,a=dc.getState(e.state);if(!a||a.activeHandle==-1||a.dragging)return!1;const s=e.state.doc.nodeAt(a.activeHandle),l=Hln(e,a.activeHandle,s.attrs);e.dispatch(e.state.tr.setMeta(dc,{setDragging:{startX:t.clientX,startWidth:l}}));function c(d){o.removeEventListener("mouseup",c),o.removeEventListener("mousemove",u);const f=dc.getState(e.state);f!=null&&f.dragging&&(zln(e,f.activeHandle,afe(f.dragging,d,n)),e.dispatch(e.state.tr.setMeta(dc,{setDragging:null})))}function u(d){if(!d.which)return c(d);const f=dc.getState(e.state);if(f&&f.dragging){const h=afe(f.dragging,d,n);sfe(e,f.activeHandle,h,r)}}return sfe(e,a.activeHandle,l,r),o.addEventListener("mouseup",c),o.addEventListener("mousemove",u),t.preventDefault(),!0}function Hln(e,t,{colspan:n,colwidth:r}){const i=r&&r[r.length-1];if(i)return i;const o=e.domAtPos(t);let a=o.node.childNodes[o.offset].offsetWidth,s=n;if(r)for(let l=0;l<n;l++)r[l]&&(a-=r[l],s--);return a/s}function Uln(e){for(;e&&e.nodeName!="TD"&&e.nodeName!="TH";)e=e.classList&&e.classList.contains("ProseMirror")?null:e.parentNode;return e}function ofe(e,t,n,r){const i=n=="right"?-r:r,o=e.posAtCoords({left:t.clientX+i,top:t.clientY});if(!o)return-1;const{pos:a}=o,s=sE(e.state.doc.resolve(a));if(!s)return-1;if(n=="right")return s.pos;const l=Ro.get(s.node(-1)),c=s.start(-1),u=l.map.indexOf(s.pos-c);return u%l.width==0?-1:c+l.map[u-1]}function afe(e,t,n){const r=t.clientX-e.startX;return Math.max(n,e.startWidth+r)}function oPe(e,t){e.dispatch(e.state.tr.setMeta(dc,{setHandle:t}))}function zln(e,t,n){const r=e.state.doc.resolve(t),i=r.node(-1),o=Ro.get(i),a=r.start(-1),s=o.colCount(r.pos-a)+r.nodeAfter.attrs.colspan-1,l=e.state.tr;for(let c=0;c<o.height;c++){const u=c*o.width+s;if(c&&o.map[u]==o.map[u-o.width])continue;const d=o.map[u],f=i.nodeAt(d).attrs,h=f.colspan==1?0:s-o.colCount(d);if(f.colwidth&&f.colwidth[h]==n)continue;const m=f.colwidth?f.colwidth.slice():Vln(f.colspan);m[h]=n,l.setNodeMarkup(a+d,null,{...f,colwidth:m})}l.docChanged&&e.dispatch(l)}function sfe(e,t,n,r){const i=e.state.doc.resolve(t),o=i.node(-1),a=i.start(-1),s=Ro.get(o).colCount(i.pos-a)+i.nodeAfter.attrs.colspan-1;let l=e.domAtPos(i.start(-1)).node;for(;l&&l.nodeName!="TABLE";)l=l.parentNode;l&&cV(o,l.firstChild,l,r,s,n)}function Vln(e){return Array(e).fill(0)}function Gln(e,t){var n;const r=[],i=e.doc.resolve(t),o=i.node(-1);if(!o)return Ci.empty;const a=Ro.get(o),s=i.start(-1),l=a.colCount(i.pos-s)+i.nodeAfter.attrs.colspan-1;for(let c=0;c<a.height;c++){const u=l+c*a.width;if((l==a.width-1||a.map[u]!=a.map[u+1])&&(c==0||a.map[u]!=a.map[u-a.width])){const d=a.map[u],f=s+d+o.nodeAt(d).nodeSize-1,h=document.createElement("div");h.className="column-resize-handle",(n=dc.getState(e))!=null&&n.dragging&&r.push(ta.node(s+d,s+d+o.nodeAt(d).nodeSize,{class:"column-resize-dragging"})),r.push(ta.widget(f,h))}}return Ci.create(e.doc,r)}function Wln({allowTableNodeSelection:e=!1}={}){return new Ei({key:ym,state:{init(){return null},apply(t,n){const r=t.getMeta(ym);if(r!=null)return r==-1?null:r;if(n==null||!t.docChanged)return n;const{deleted:i,pos:o}=t.mapping.mapResult(n);return i?null:o}},props:{decorations:oln,handleDOMEvents:{mousedown:Pln},createSelectionBetween(t){return ym.getState(t.state)!=null?t.state.selection:null},handleTripleClick:Mln,handleKeyDown:Nln,handlePaste:kln},appendTransaction(t,n,r){return lln(r,tPe(r,n),e)}})}function uV(e,t){return t?["width",`${Math.max(t,e)}px`]:["min-width",`${e}px`]}function lfe(e,t,n,r,i,o){var a;let s=0,l=!0,c=t.firstChild;const u=e.firstChild;if(u!==null)for(let d=0,f=0;d<u.childCount;d+=1){const{colspan:h,colwidth:m}=u.child(d).attrs;for(let g=0;g<h;g+=1,f+=1){const v=i===f?o:m&&m[g],y=v?`${v}px`:"";if(s+=v||r,v||(l=!1),c){if(c.style.width!==y){const[b,_]=uV(r,v);c.style.setProperty(b,_)}c=c.nextSibling}else{const b=document.createElement("col"),[_,E]=uV(r,v);b.style.setProperty(_,E),t.appendChild(b)}}}for(;c;){const d=c.nextSibling;(a=c.parentNode)===null||a===void 0||a.removeChild(c),c=d}l?(n.style.width=`${s}px`,n.style.minWidth=""):(n.style.width="",n.style.minWidth=`${s}px`)}class qln{constructor(t,n){this.node=t,this.cellMinWidth=n,this.dom=document.createElement("div"),this.dom.className="tableWrapper",this.table=this.dom.appendChild(document.createElement("table")),this.colgroup=this.table.appendChild(document.createElement("colgroup")),lfe(t,this.colgroup,this.table,n),this.contentDOM=this.table.appendChild(document.createElement("tbody"))}update(t){return t.type!==this.node.type?!1:(this.node=t,lfe(t,this.colgroup,this.table,this.cellMinWidth),!0)}ignoreMutation(t){return t.type==="attributes"&&(t.target===this.table||this.colgroup.contains(t.target))}}function Yln(e,t,n,r){let i=0,o=!0;const a=[],s=e.firstChild;if(!s)return{};for(let u=0,d=0;u<s.childCount;u+=1){const{colspan:f,colwidth:h}=s.child(u).attrs;for(let m=0;m<f;m+=1,d+=1){const g=n===d?r:h&&h[m];i+=g||t,g||(o=!1);const[v,y]=uV(t,g);a.push(["col",{style:`${v}: ${y}`}])}}const l=o?`${i}px`:"",c=o?"":`${i}px`;return{colgroup:["colgroup",{},...a],tableWidth:l,tableMinWidth:c}}function cfe(e,t){return e.createAndFill()}function Kln(e){if(e.cached.tableNodeTypes)return e.cached.tableNodeTypes;const t={};return Object.keys(e.nodes).forEach(n=>{const r=e.nodes[n];r.spec.tableRole&&(t[r.spec.tableRole]=r)}),e.cached.tableNodeTypes=t,t}function Qln(e,t,n,r,i){const o=Kln(e),a=[],s=[];for(let c=0;c<n;c+=1){const u=cfe(o.cell);if(u&&s.push(u),r){const d=cfe(o.header_cell);d&&a.push(d)}}const l=[];for(let c=0;c<t;c+=1)l.push(o.row.createChecked(null,r&&c===0?a:s));return o.table.createChecked(null,l)}function Xln(e){return e instanceof Ti}const pI=({editor:e})=>{const{selection:t}=e.state;if(!Xln(t))return!1;let n=0;const r=l4e(t.ranges[0].$from,i=>i.type.name==="table");return r==null||r.node.descendants(i=>{if(i.type.name==="table")return!1;["tableCell","tableHeader"].includes(i.type.name)&&(n+=1)}),n===t.ranges.length?(e.commands.deleteTable(),!0):!1},Zln=Eo.create({name:"table",addOptions(){return{HTMLAttributes:{},resizable:!1,handleWidth:5,cellMinWidth:25,View:qln,lastColumnResizable:!0,allowTableNodeSelection:!1}},content:"tableRow+",tableRole:"table",isolating:!0,group:"block",parseHTML(){return[{tag:"table"}]},renderHTML({node:e,HTMLAttributes:t}){const{colgroup:n,tableWidth:r,tableMinWidth:i}=Yln(e,this.options.cellMinWidth);return["table",zr(this.options.HTMLAttributes,t,{style:r?`width: ${r}`:`min-width: ${i}`}),n,["tbody",0]]},addCommands(){return{insertTable:({rows:e=3,cols:t=3,withHeaderRow:n=!0}={})=>({tr:r,dispatch:i,editor:o})=>{const a=Qln(o.schema,e,t,n);if(i){const s=r.selection.from+1;r.replaceSelectionWith(a).scrollIntoView().setSelection(er.near(r.doc.resolve(s)))}return!0},addColumnBefore:()=>({state:e,dispatch:t})=>dln(e,t),addColumnAfter:()=>({state:e,dispatch:t})=>fln(e,t),deleteColumn:()=>({state:e,dispatch:t})=>hln(e,t),addRowBefore:()=>({state:e,dispatch:t})=>gln(e,t),addRowAfter:()=>({state:e,dispatch:t})=>vln(e,t),deleteRow:()=>({state:e,dispatch:t})=>yln(e,t),deleteTable:()=>({state:e,dispatch:t})=>xln(e,t),mergeCells:()=>({state:e,dispatch:t})=>Xde(e,t),splitCell:()=>({state:e,dispatch:t})=>Zde(e,t),toggleHeaderColumn:()=>({state:e,dispatch:t})=>px("column")(e,t),toggleHeaderRow:()=>({state:e,dispatch:t})=>px("row")(e,t),toggleHeaderCell:()=>({state:e,dispatch:t})=>wln(e,t),mergeOrSplit:()=>({state:e,dispatch:t})=>Xde(e,t)?!0:Zde(e,t),setCellAttribute:(e,t)=>({state:n,dispatch:r})=>Eln(e,t)(n,r),goToNextCell:()=>({state:e,dispatch:t})=>efe(1)(e,t),goToPreviousCell:()=>({state:e,dispatch:t})=>efe(-1)(e,t),fixTables:()=>({state:e,dispatch:t})=>(t&&tPe(e),!0),setCellSelection:e=>({tr:t,dispatch:n})=>{if(n){const r=Ti.create(t.doc,e.anchorCell,e.headCell);t.setSelection(r)}return!0}}},addKeyboardShortcuts(){return{Tab:()=>this.editor.commands.goToNextCell()?!0:this.editor.can().addRowAfter()?this.editor.chain().addRowAfter().goToNextCell().run():!1,"Shift-Tab":()=>this.editor.commands.goToPreviousCell(),Backspace:pI,"Mod-Backspace":pI,Delete:pI,"Mod-Delete":pI}},addProseMirrorPlugins(){return[...this.options.resizable&&this.editor.isEditable?[Lln({handleWidth:this.options.handleWidth,cellMinWidth:this.options.cellMinWidth,defaultCellMinWidth:this.options.cellMinWidth,View:this.options.View,lastColumnResizable:this.options.lastColumnResizable})]:[],Wln({allowTableNodeSelection:this.options.allowTableNodeSelection})]},extendNodeSchema(e){const t={name:e.name,options:e.options,storage:e.storage};return{tableRole:Ar(Wn(e,"tableRole",t))}}}),Jln=Eo.create({name:"tableRow",addOptions(){return{HTMLAttributes:{}}},content:"(tableCell | tableHeader)*",tableRole:"row",parseHTML(){return[{tag:"tr"}]},renderHTML({HTMLAttributes:e}){return["tr",zr(this.options.HTMLAttributes,e),0]}}),ecn=Eo.create({name:"tableHeader",addOptions(){return{HTMLAttributes:{}}},content:"block+",addAttributes(){return{colspan:{default:1},rowspan:{default:1},colwidth:{default:null,parseHTML:e=>{const t=e.getAttribute("colwidth");return t?t.split(",").map(n=>parseInt(n,10)):null}}}},tableRole:"header_cell",isolating:!0,parseHTML(){return[{tag:"th"}]},renderHTML({HTMLAttributes:e}){return["th",zr(this.options.HTMLAttributes,e),0]}}),tcn=Eo.create({name:"tableCell",addOptions(){return{HTMLAttributes:{}}},content:"block+",addAttributes(){return{colspan:{default:1},rowspan:{default:1},colwidth:{default:null,parseHTML:e=>{const t=e.getAttribute("colwidth");return t?t.split(",").map(n=>parseInt(n,10)):null}}}},tableRole:"cell",isolating:!0,parseHTML(){return[{tag:"td"}]},renderHTML({HTMLAttributes:e}){return["td",zr(this.options.HTMLAttributes,e),0]}}),ufe=gi.create({name:"characterCount",addOptions(){return{limit:null,mode:"textSize",textCounter:e=>e.length,wordCounter:e=>e.split(" ").filter(t=>t!=="").length}},addStorage(){return{characters:()=>0,words:()=>0}},onBeforeCreate(){this.storage.characters=e=>{const t=(e==null?void 0:e.node)||this.editor.state.doc;if(((e==null?void 0:e.mode)||this.options.mode)==="textSize"){const n=t.textBetween(0,t.content.size,void 0," ");return this.options.textCounter(n)}return t.nodeSize},this.storage.words=e=>{const t=(e==null?void 0:e.node)||this.editor.state.doc,n=t.textBetween(0,t.content.size," "," ");return this.options.wordCounter(n)}},addProseMirrorPlugins(){return[new Ei({key:new $i("characterCount"),filterTransaction:(e,t)=>{const n=this.options.limit;if(!e.docChanged||n===0||n===null||n===void 0)return!0;const r=this.storage.characters({node:t.doc}),i=this.storage.characters({node:e.doc});if(i<=n||r>n&&i>n&&i<=r)return!0;if(r>n&&i>n&&i>r||!e.getMeta("paste"))return!1;const o=e.selection.$head.pos,a=i-n,s=o-a,l=o;return e.deleteRange(s,l),!(this.storage.characters({node:e.doc})>n)}})]}}),ncn="aaa1rp3barth4b0ott3vie4c1le2ogado5udhabi7c0ademy5centure6ountant0s9o1tor4d0s1ult4e0g1ro2tna4f0l1rica5g0akhan5ency5i0g1rbus3force5tel5kdn3l0faromeo7ibaba4pay4lfinanz6state5y2sace3tom5m0azon4ericanexpress7family11x2fam3ica3sterdam8nalytics7droid5quan4z2o0l2partments8p0le4q0uarelle8r0ab1mco4chi3my2pa2t0e3s0da2ia2sociates9t0hleta5torney7u0ction5di0ble3o3spost5thor3o0s4vianca6w0s2x0a2z0ure5ba0by2idu3namex3narepublic11d1k2r0celona5laycard4s5efoot5gains6seball5ketball8uhaus5yern5b0c1t1va3cg1n2d1e0ats2uty4er2ntley5rlin4st0buy5t2f1g1h0arti5i0ble3d1ke2ng0o3o1z2j1lack0friday9ockbuster8g1omberg7ue3m0s1w2n0pparibas9o0ats3ehringer8fa2m1nd2o0k0ing5sch2tik2on4t1utique6x2r0adesco6idgestone9oadway5ker3ther5ussels7s1t1uild0ers6siness6y1zz3v1w1y1z0h3ca0b1fe2l0l1vinklein9m0era3p2non3petown5ital0one8r0avan4ds2e0er0s4s2sa1e1h1ino4t0ering5holic7ba1n1re2s2c1d1enter4o1rn3f0a1d2g1h0anel2nel4rity4se2t2eap3intai5ristmas6ome4urch5i0priani6rcle4sco3tadel4i0c2y0eats7k1l0aims4eaning6ick2nic1que6othing5ud3ub0med6m1n1o0ach3des3ffee4llege4ogne5m0cast4mbank4unity6pany2re3uter5sec4ndos3struction8ulting7tact3ractors9oking0channel11l1p2rsica5untry4pon0s4rses6pa2r0edit0card4union9icket5own3s1uise0s6u0isinella9v1w1x1y0mru3ou3z2dabur3d1nce3ta1e1ing3sun4y2clk3ds2e0al0er2s3gree4livery5l1oitte5ta3mocrat6ntal2ist5si0gn4v2hl2iamonds6et2gital5rect0ory7scount3ver5h2y2j1k1m1np2o0cs1tor4g1mains5t1wnload7rive4tv2ubai3nlop4pont4rban5vag2r2z2earth3t2c0o2deka3u0cation8e1g1mail3erck5nergy4gineer0ing9terprises10pson4quipment8r0icsson6ni3s0q1tate5t0isalat7u0rovision8s2vents5xchange6pert3osed4ress5traspace10fage2il1rwinds6th3mily4n0s2rm0ers5shion4t3edex3edback6rrari3ero6i0at2delity5o2lm2nal1nce1ial7re0stone6mdale6sh0ing5t0ness6j1k1lickr3ghts4r2orist4wers5y2m1o0o0d0network8tball6rd1ex2sale4um3undation8x2r0ee1senius7l1ogans4ntdoor4ier7tr2ujitsu5n0d2rniture7tbol5yi3ga0l0lery3o1up4me0s3p1rden4y2b0iz3d0n2e0a1nt0ing5orge5f1g0ee3h1i0ft0s3ves2ing5l0ass3e1obal2o4m0ail3bh2o1x2n1odaddy5ld0point6f2o0dyear5g0le4p1t1v2p1q1r0ainger5phics5tis4een3ipe3ocery4up4s1t1u0ardian6cci3ge2ide2tars5ru3w1y2hair2mburg5ngout5us3bo2dfc0bank7ealth0care8lp1sinki6re1mes5gtv3iphop4samitsu7tachi5v2k0t2m1n1ockey4ldings5iday5medepot5goods5s0ense7nda3rse3spital5t0ing5t0eles2s3mail5use3w2r1sbc3t1u0ghes5yatt3undai7ibm2cbc2e1u2d1e0ee3fm2kano4l1m0amat4db2mo0bilien9n0c1dustries8finiti5o2g1k1stitute6urance4e4t0ernational10uit4vestments10o1piranga7q1r0ish4s0maili5t0anbul7t0au2v3jaguar4va3cb2e0ep2tzt3welry6io2ll2m0p2nj2o0bs1urg4t1y2p0morgan6rs3uegos4niper7kaufen5ddi3e0rryhotels6logistics9properties14fh2g1h1i0a1ds2m1nder2le4tchen5wi3m1n1oeln3matsu5sher5p0mg2n2r0d1ed3uokgroup8w1y0oto4z2la0caixa5mborghini8er3ncaster5ia3d0rover6xess5salle5t0ino3robe5w0yer5b1c1ds2ease3clerc5frak4gal2o2xus4gbt3i0dl2fe0insurance9style7ghting6ke2lly3mited4o2ncoln4de2k2psy3ve1ing5k1lc1p2oan0s3cker3us3l1ndon4tte1o3ve3pl0financial11r1s1t0d0a3u0ndbeck6xe1ury5v1y2ma0cys3drid4if1son4keup4n0agement7go3p1rket0ing3s4riott5shalls7serati6ttel5ba2c0kinsey7d1e0d0ia3et2lbourne7me1orial6n0u2rckmsd7g1h1iami3crosoft7l1ni1t2t0subishi9k1l0b1s2m0a2n1o0bi0le4da2e1i1m1nash3ey2ster5rmon3tgage6scow4to0rcycles9v0ie4p1q1r1s0d2t0n1r2u0seum3ic3tual5v1w1x1y1z2na0b1goya4me2tura4vy3ba2c1e0c1t0bank4flix4work5ustar5w0s2xt0direct7us4f0l2g0o2hk2i0co2ke1on3nja3ssan1y5l1o0kia3rthwesternmutual14on4w0ruz3tv4p1r0a1w2tt2u1yc2z2obi1server7ffice5kinawa6layan0group9dnavy5lo3m0ega4ne1g1l0ine5oo2pen3racle3nge4g0anic5igins6saka4tsuka4t2vh3pa0ge2nasonic7ris2s1tners4s1y3ssagens7y2ccw3e0t2f0izer5g1h0armacy6d1ilips5one2to0graphy6s4ysio5ics1tet2ures6d1n0g1k2oneer5zza4k1l0ace2y0station9umbing5s3m1n0c2ohl2ker3litie5rn2st3r0america6xi3ess3ime3o0d0uctions8f1gressive8mo2perties3y5tection8u0dential9s1t1ub2w0c2y2qa1pon3uebec3st5racing4dio4e0ad1lestate6tor2y4cipes5d0stone5umbrella9hab3ise0n3t2liance6n0t0als5pair3ort3ublican8st0aurant8view0s5xroth6ich0ardli6oh3l1o1p2o0cher3ks3deo3gers4om3s0vp3u0gby3hr2n2w0e2yukyu6sa0arland6fe0ty4kura4le1on3msclub4ung5ndvik0coromant12ofi4p1rl2s1ve2xo3b0i1s2c0a1b1haeffler7midt4olarships8ol3ule3warz5ience5ot3d1e0arch3t2cure1ity6ek2lect4ner3rvices6ven3w1x0y3fr2g1h0angrila6rp2w2ell3ia1ksha5oes2p0ping5uji3w0time7i0lk2na1gles5te3j1k0i0n2y0pe4l0ing4m0art3ile4n0cf3o0ccer3ial4ftbank4ware6hu2lar2utions7ng1y2y2pa0ce3ort2t3r0l2s1t0ada2ples4r1tebank4farm7c0group6ockholm6rage3e3ream4udio2y3yle4u0cks3pplies3y2ort5rf1gery5zuki5v1watch4iss4x1y0dney4stems6z2tab1ipei4lk2obao4rget4tamotors6r2too4x0i3c0i2d0k2eam2ch0nology8l1masek5nnis4va3f1g1h0d1eater2re6iaa2ckets5enda4ffany5ps2res2ol4j0maxx4x2k0maxx5l1m0all4n1o0day3kyo3ols3p1ray3shiba5tal3urs3wn2yota3s3r0ade1ing4ining5vel0channel7ers0insurance16ust3v2t1ube2i1nes3shu4v0s2w1z2ua1bank3s2g1k1nicom3versity8o2ol2ps2s1y1z2va0cations7na1guard7c1e0gas3ntures6risign5mögensberater2ung14sicherung10t2g1i0ajes4deo3g1king4llas4n1p1rgin4sa1ion4va1o3laanderen9n1odka3lkswagen7vo3te1ing3o2yage5u0elos6wales2mart4ter4ng0gou5tch0es6eather0channel12bcam3er2site5d0ding5ibo2r3f1hoswho6ien2ki2lliamhill9n0dows4e1ners6me2olterskluwer11odside6rk0s2ld3w2s1tc1f3xbox3erox4finity6ihuan4n2xx2yz3yachts4hoo3maxun5ndex5e1odobashi7ga2kohama6u0tube6t1un3za0ppos4ra3ero3ip2m1one3uerich6w2",rcn="ελ1υ2бг1ел3дети4ею2католик6ом3мкд2он1сква6онлайн5рг3рус2ф2сайт3рб3украз3հայ3ישראל5קום3ابوظبي5تصالات6رامكو5لاردن4بحرين5جزائر5سعودية6عليان5مغرب5مارات5یران5بارت2زار4يتك3ھارت5تونس4سودان3رية5شبكة4عراق2ب2مان4فلسطين6قطر3كاثوليك6وم3مصر2ليسيا5وريتانيا7قع4همراهاکستان7ڀارت4कॉम3नेट3भारत0म्3ोत5संगठन5বাংলা5ভারত2ৰত4ਭਾਰਤ4ભારત4ଭାରତ4இந்தியா6லங்கை6சிங்கப்பூர்11భారత్5ಭಾರತ4ഭാരത5ලකා4คอม3ไทย3ລາວ3გე2みんな3アマゾン4クラウド4グーグル4コム2ストア3セール3ファッション6ポイント4世界2中信1国1國1文网3亚马逊3企业2佛山2信息2健康2八卦2公司1益2台湾1灣2商城1店1标2嘉里0大酒店5在线2大拿2天主教3娱乐2家電2广东2微博2慈善2我爱你3手机2招聘2政务1府2新加坡2闻2时尚2書籍2机构2淡马锡3游戏2澳門2点看2移动2组织机构4网址1店1站1络2联通2谷歌2购物2通販2集团2電訊盈科4飞利浦3食品2餐厅2香格里拉3港2닷넷1컴2삼성2한국2",K_=(e,t)=>{for(const n in t)e[n]=t[n];return e},dV="numeric",fV="ascii",pV="alpha",mN="asciinumeric",hI="alphanumeric",hV="domain",aPe="emoji",icn="scheme",ocn="slashscheme",dfe="whitespace";function acn(e,t){return e in t||(t[e]=[]),t[e]}function Y1(e,t,n){t[dV]&&(t[mN]=!0,t[hI]=!0),t[fV]&&(t[mN]=!0,t[pV]=!0),t[mN]&&(t[hI]=!0),t[pV]&&(t[hI]=!0),t[hI]&&(t[hV]=!0),t[aPe]&&(t[hV]=!0);for(const r in t){const i=acn(r,n);i.indexOf(e)<0&&i.push(e)}}function scn(e,t){const n={};for(const r in t)t[r].indexOf(e)>=0&&(n[r]=!0);return n}function El(e){e===void 0&&(e=null),this.j={},this.jr=[],this.jd=null,this.t=e}El.groups={};El.prototype={accepts(){return!!this.t},go(e){const t=this,n=t.j[e];if(n)return n;for(let r=0;r<t.jr.length;r++){const i=t.jr[r][0],o=t.jr[r][1];if(o&&i.test(e))return o}return t.jd},has(e,t){return t===void 0&&(t=!1),t?e in this.j:!!this.go(e)},ta(e,t,n,r){for(let i=0;i<e.length;i++)this.tt(e[i],t,n,r)},tr(e,t,n,r){r=r||El.groups;let i;return t&&t.j?i=t:(i=new El(t),n&&r&&Y1(t,n,r)),this.jr.push([e,i]),i},ts(e,t,n,r){let i=this;const o=e.length;if(!o)return i;for(let a=0;a<o-1;a++)i=i.tt(e[a]);return i.tt(e[o-1],t,n,r)},tt(e,t,n,r){r=r||El.groups;const i=this;if(t&&t.j)return i.j[e]=t,t;const o=t;let a,s=i.go(e);if(s?(a=new El,K_(a.j,s.j),a.jr.push.apply(a.jr,s.jr),a.jd=s.jd,a.t=s.t):a=new El,o){if(r)if(a.t&&typeof a.t=="string"){const l=K_(scn(a.t,r),n);Y1(o,l,r)}else n&&Y1(o,n,r);a.t=o}return i.j[e]=a,a}};const tr=(e,t,n,r,i)=>e.ta(t,n,r,i),Bc=(e,t,n,r,i)=>e.tr(t,n,r,i),ffe=(e,t,n,r,i)=>e.ts(t,n,r,i),bn=(e,t,n,r,i)=>e.tt(t,n,r,i),Ep="WORD",mV="UWORD",hx="LOCALHOST",gV="TLD",vV="UTLD",gN="SCHEME",Mb="SLASH_SCHEME",mX="NUM",sPe="WS",gX="NL",ay="OPENBRACE",Iw="OPENBRACKET",Aw="OPENANGLEBRACKET",Nw="OPENPAREN",O1="CLOSEBRACE",sy="CLOSEBRACKET",ly="CLOSEANGLEBRACKET",R1="CLOSEPAREN",r4="AMPERSAND",i4="APOSTROPHE",o4="ASTERISK",pm="AT",a4="BACKSLASH",s4="BACKTICK",l4="CARET",_m="COLON",vX="COMMA",c4="DOLLAR",nf="DOT",u4="EQUALS",bX="EXCLAMATION",rf="HYPHEN",d4="PERCENT",f4="PIPE",p4="PLUS",h4="POUND",m4="QUERY",yX="QUOTE",_X="SEMI",of="SLASH",Mw="TILDE",g4="UNDERSCORE",lPe="EMOJI",v4="SYM";var cPe=Object.freeze({__proto__:null,WORD:Ep,UWORD:mV,LOCALHOST:hx,TLD:gV,UTLD:vV,SCHEME:gN,SLASH_SCHEME:Mb,NUM:mX,WS:sPe,NL:gX,OPENBRACE:ay,OPENBRACKET:Iw,OPENANGLEBRACKET:Aw,OPENPAREN:Nw,CLOSEBRACE:O1,CLOSEBRACKET:sy,CLOSEANGLEBRACKET:ly,CLOSEPAREN:R1,AMPERSAND:r4,APOSTROPHE:i4,ASTERISK:o4,AT:pm,BACKSLASH:a4,BACKTICK:s4,CARET:l4,COLON:_m,COMMA:vX,DOLLAR:c4,DOT:nf,EQUALS:u4,EXCLAMATION:bX,HYPHEN:rf,PERCENT:d4,PIPE:f4,PLUS:p4,POUND:h4,QUERY:m4,QUOTE:yX,SEMI:_X,SLASH:of,TILDE:Mw,UNDERSCORE:g4,EMOJI:lPe,SYM:v4});const vb=/[a-z]/,N6=new RegExp("\\p{L}","u"),M6=new RegExp("\\p{Emoji}","u"),k6=/\d/,pfe=/\s/,hfe=`
`,lcn="",ccn="";let mI=null,gI=null;function ucn(e){e===void 0&&(e=[]);const t={};El.groups=t;const n=new El;mI==null&&(mI=mfe(ncn)),gI==null&&(gI=mfe(rcn)),bn(n,"'",i4),bn(n,"{",ay),bn(n,"[",Iw),bn(n,"<",Aw),bn(n,"(",Nw),bn(n,"}",O1),bn(n,"]",sy),bn(n,">",ly),bn(n,")",R1),bn(n,"&",r4),bn(n,"*",o4),bn(n,"@",pm),bn(n,"`",s4),bn(n,"^",l4),bn(n,":",_m),bn(n,",",vX),bn(n,"$",c4),bn(n,".",nf),bn(n,"=",u4),bn(n,"!",bX),bn(n,"-",rf),bn(n,"%",d4),bn(n,"|",f4),bn(n,"+",p4),bn(n,"#",h4),bn(n,"?",m4),bn(n,'"',yX),bn(n,"/",of),bn(n,";",_X),bn(n,"~",Mw),bn(n,"_",g4),bn(n,"\\",a4);const r=Bc(n,k6,mX,{[dV]:!0});Bc(r,k6,r);const i=Bc(n,vb,Ep,{[fV]:!0});Bc(i,vb,i);const o=Bc(n,N6,mV,{[pV]:!0});Bc(o,vb),Bc(o,N6,o);const a=Bc(n,pfe,sPe,{[dfe]:!0});bn(n,hfe,gX,{[dfe]:!0}),bn(a,hfe),Bc(a,pfe,a);const s=Bc(n,M6,lPe,{[aPe]:!0});Bc(s,M6,s),bn(s,lcn,s);const l=bn(s,ccn);Bc(l,M6,s);const c=[[vb,i]],u=[[vb,null],[N6,o]];for(let d=0;d<mI.length;d++)Hh(n,mI[d],gV,Ep,c);for(let d=0;d<gI.length;d++)Hh(n,gI[d],vV,mV,u);Y1(gV,{tld:!0,ascii:!0},t),Y1(vV,{utld:!0,alpha:!0},t),Hh(n,"file",gN,Ep,c),Hh(n,"mailto",gN,Ep,c),Hh(n,"http",Mb,Ep,c),Hh(n,"https",Mb,Ep,c),Hh(n,"ftp",Mb,Ep,c),Hh(n,"ftps",Mb,Ep,c),Y1(gN,{scheme:!0,ascii:!0},t),Y1(Mb,{slashscheme:!0,ascii:!0},t),e=e.sort((d,f)=>d[0]>f[0]?1:-1);for(let d=0;d<e.length;d++){const f=e[d][0],h=e[d][1]?{[icn]:!0}:{[ocn]:!0};f.indexOf("-")>=0?h[hV]=!0:vb.test(f)?k6.test(f)?h[mN]=!0:h[fV]=!0:h[dV]=!0,ffe(n,f,f,h)}return ffe(n,"localhost",hx,{ascii:!0}),n.jd=new El(v4),{start:n,tokens:K_({groups:t},cPe)}}function dcn(e,t){const n=fcn(t.replace(/[A-Z]/g,s=>s.toLowerCase())),r=n.length,i=[];let o=0,a=0;for(;a<r;){let s=e,l=null,c=0,u=null,d=-1,f=-1;for(;a<r&&(l=s.go(n[a]));)s=l,s.accepts()?(d=0,f=0,u=s):d>=0&&(d+=n[a].length,f++),c+=n[a].length,o+=n[a].length,a++;o-=d,a-=f,c-=d,i.push({t:u.t,v:t.slice(o-c,o),s:o-c,e:o})}return i}function fcn(e){const t=[],n=e.length;let r=0;for(;r<n;){let i=e.charCodeAt(r),o,a=i<55296||i>56319||r+1===n||(o=e.charCodeAt(r+1))<56320||o>57343?e[r]:e.slice(r,r+2);t.push(a),r+=a.length}return t}function Hh(e,t,n,r,i){let o;const a=t.length;for(let s=0;s<a-1;s++){const l=t[s];e.j[l]?o=e.j[l]:(o=new El(r),o.jr=i.slice(),e.j[l]=o),e=o}return o=new El(n),o.jr=i.slice(),e.j[t[a-1]]=o,o}function mfe(e){const t=[],n=[];let r=0,i="0123456789";for(;r<e.length;){let o=0;for(;i.indexOf(e[r+o])>=0;)o++;if(o>0){t.push(n.join(""));for(let a=parseInt(e.substring(r,r+o),10);a>0;a--)n.pop();r+=o}else n.push(e[r]),r++}return t}const mx={defaultProtocol:"http",events:null,format:gfe,formatHref:gfe,nl2br:!1,tagName:"a",target:null,rel:null,validate:!0,truncate:1/0,className:null,attributes:null,ignoreTags:[],render:null};function SX(e,t){t===void 0&&(t=null);let n=K_({},mx);e&&(n=K_(n,e instanceof SX?e.o:e));const r=n.ignoreTags,i=[];for(let o=0;o<r.length;o++)i.push(r[o].toUpperCase());this.o=n,t&&(this.defaultRender=t),this.ignoreTags=i}SX.prototype={o:mx,ignoreTags:[],defaultRender(e){return e},check(e){return this.get("validate",e.toString(),e)},get(e,t,n){const r=t!=null;let i=this.o[e];return i&&(typeof i=="object"?(i=n.t in i?i[n.t]:mx[e],typeof i=="function"&&r&&(i=i(t,n))):typeof i=="function"&&r&&(i=i(t,n.t,n)),i)},getObj(e,t,n){let r=this.o[e];return typeof r=="function"&&t!=null&&(r=r(t,n.t,n)),r},render(e){const t=e.render(this);return(this.get("render",null,e)||this.defaultRender)(t,e.t,e)}};function gfe(e){return e}function uPe(e,t){this.t="token",this.v=e,this.tk=t}uPe.prototype={isLink:!1,toString(){return this.v},toHref(e){return this.toString()},toFormattedString(e){const t=this.toString(),n=e.get("truncate",t,this),r=e.get("format",t,this);return n&&r.length>n?r.substring(0,n)+"…":r},toFormattedHref(e){return e.get("formatHref",this.toHref(e.get("defaultProtocol")),this)},startIndex(){return this.tk[0].s},endIndex(){return this.tk[this.tk.length-1].e},toObject(e){return e===void 0&&(e=mx.defaultProtocol),{type:this.t,value:this.toString(),isLink:this.isLink,href:this.toHref(e),start:this.startIndex(),end:this.endIndex()}},toFormattedObject(e){return{type:this.t,value:this.toFormattedString(e),isLink:this.isLink,href:this.toFormattedHref(e),start:this.startIndex(),end:this.endIndex()}},validate(e){return e.get("validate",this.toString(),this)},render(e){const t=this,n=this.toHref(e.get("defaultProtocol")),r=e.get("formatHref",n,this),i=e.get("tagName",n,t),o=this.toFormattedString(e),a={},s=e.get("className",n,t),l=e.get("target",n,t),c=e.get("rel",n,t),u=e.getObj("attributes",n,t),d=e.getObj("events",n,t);return a.href=r,s&&(a.class=s),l&&(a.target=l),c&&(a.rel=c),u&&K_(a,u),{tagName:i,attributes:a,content:o,eventListeners:d}}};function f9(e,t){class n extends uPe{constructor(i,o){super(i,o),this.t=e}}for(const r in t)n.prototype[r]=t[r];return n.t=e,n}const vfe=f9("email",{isLink:!0,toHref(){return"mailto:"+this.toString()}}),bfe=f9("text"),pcn=f9("nl"),a1=f9("url",{isLink:!0,toHref(e){return e===void 0&&(e=mx.defaultProtocol),this.hasProtocol()?this.v:`${e}://${this.v}`},hasProtocol(){const e=this.tk;return e.length>=2&&e[0].t!==hx&&e[1].t===_m}}),ka=e=>new El(e);function hcn(e){let{groups:t}=e;const n=t.domain.concat([r4,o4,pm,a4,s4,l4,c4,u4,rf,mX,d4,f4,p4,h4,of,v4,Mw,g4]),r=[i4,ly,O1,sy,R1,_m,vX,nf,bX,Aw,ay,Iw,Nw,m4,yX,_X],i=[r4,i4,o4,a4,s4,l4,O1,c4,u4,rf,ay,d4,f4,p4,h4,m4,of,v4,Mw,g4],o=ka(),a=bn(o,Mw);tr(a,i,a),tr(a,t.domain,a);const s=ka(),l=ka(),c=ka();tr(o,t.domain,s),tr(o,t.scheme,l),tr(o,t.slashscheme,c),tr(s,i,a),tr(s,t.domain,s);const u=bn(s,pm);bn(a,pm,u),bn(l,pm,u),bn(c,pm,u);const d=bn(a,nf);tr(d,i,a),tr(d,t.domain,a);const f=ka();tr(u,t.domain,f),tr(f,t.domain,f);const h=bn(f,nf);tr(h,t.domain,f);const m=ka(vfe);tr(h,t.tld,m),tr(h,t.utld,m),bn(u,hx,m);const g=bn(f,rf);tr(g,t.domain,f),tr(m,t.domain,f),bn(m,nf,h),bn(m,rf,g);const v=bn(m,_m);tr(v,t.numeric,vfe);const y=bn(s,rf),b=bn(s,nf);tr(y,t.domain,s),tr(b,i,a),tr(b,t.domain,s);const _=ka(a1);tr(b,t.tld,_),tr(b,t.utld,_),tr(_,t.domain,s),tr(_,i,a),bn(_,nf,b),bn(_,rf,y),bn(_,pm,u);const E=bn(_,_m),w=ka(a1);tr(E,t.numeric,w);const S=ka(a1),C=ka();tr(S,n,S),tr(S,r,C),tr(C,n,S),tr(C,r,C),bn(_,of,S),bn(w,of,S);const T=bn(l,_m),x=bn(c,_m),O=bn(x,of),N=bn(O,of);tr(l,t.domain,s),bn(l,nf,b),bn(l,rf,y),tr(c,t.domain,s),bn(c,nf,b),bn(c,rf,y),tr(T,t.domain,S),bn(T,of,S),tr(N,t.domain,S),tr(N,n,S),bn(N,of,S);const I=bn(S,ay),M=bn(S,Iw),F=bn(S,Aw),k=bn(S,Nw);bn(C,ay,I),bn(C,Iw,M),bn(C,Aw,F),bn(C,Nw,k),bn(I,O1,S),bn(M,sy,S),bn(F,ly,S),bn(k,R1,S),bn(I,O1,S);const B=ka(a1),A=ka(a1),P=ka(a1),z=ka(a1);tr(I,n,B),tr(M,n,A),tr(F,n,P),tr(k,n,z);const L=ka(),V=ka(),j=ka(),U=ka();return tr(I,r),tr(M,r),tr(F,r),tr(k,r),tr(B,n,B),tr(A,n,A),tr(P,n,P),tr(z,n,z),tr(B,r,B),tr(A,r,A),tr(P,r,P),tr(z,r,z),tr(L,n,L),tr(V,n,A),tr(j,n,P),tr(U,n,z),tr(L,r,L),tr(V,r,V),tr(j,r,j),tr(U,r,U),bn(A,sy,S),bn(P,ly,S),bn(z,R1,S),bn(B,O1,S),bn(V,sy,S),bn(j,ly,S),bn(U,R1,S),bn(L,R1,S),bn(o,hx,_),bn(o,gX,pcn),{start:o,tokens:cPe}}function mcn(e,t,n){let r=n.length,i=0,o=[],a=[];for(;i<r;){let s=e,l=null,c=null,u=0,d=null,f=-1;for(;i<r&&!(l=s.go(n[i].t));)a.push(n[i++]);for(;i<r&&(c=l||s.go(n[i].t));)l=null,s=c,s.accepts()?(f=0,d=s):f>=0&&f++,i++,u++;if(f<0)i-=u,i<r&&(a.push(n[i]),i++);else{a.length>0&&(o.push(P6(bfe,t,a)),a=[]),i-=f,u-=f;const h=d.t,m=n.slice(i-u,i);o.push(P6(h,t,m))}}return a.length>0&&o.push(P6(bfe,t,a)),o}function P6(e,t,n){const r=n[0].s,i=n[n.length-1].e,o=t.slice(r,i);return new e(o,n)}const gcn=typeof console<"u"&&console&&console.warn||(()=>{}),vcn="until manual call of linkify.init(). Register all schemes and plugins before invoking linkify the first time.",To={scanner:null,parser:null,tokenQueue:[],pluginQueue:[],customSchemes:[],initialized:!1};function bcn(){El.groups={},To.scanner=null,To.parser=null,To.tokenQueue=[],To.pluginQueue=[],To.customSchemes=[],To.initialized=!1}function yfe(e,t){if(t===void 0&&(t=!1),To.initialized&&gcn(`linkifyjs: already initialized - will not register custom scheme "${e}" ${vcn}`),!/^[0-9a-z]+(-[0-9a-z]+)*$/.test(e))throw new Error(`linkifyjs: incorrect scheme format.
1. Must only contain digits, lowercase ASCII letters or "-"
2. Cannot start or end with "-"
3. "-" cannot repeat`);To.customSchemes.push([e,t])}function ycn(){To.scanner=ucn(To.customSchemes);for(let e=0;e<To.tokenQueue.length;e++)To.tokenQueue[e][1]({scanner:To.scanner});To.parser=hcn(To.scanner.tokens);for(let e=0;e<To.pluginQueue.length;e++)To.pluginQueue[e][1]({scanner:To.scanner,parser:To.parser});To.initialized=!0}function dPe(e){return To.initialized||ycn(),mcn(To.parser.start,e,dcn(To.scanner.start,e))}function fPe(e,t,n){if(t===void 0&&(t=null),n===void 0&&(n=null),t&&typeof t=="object"){if(n)throw Error(`linkifyjs: Invalid link type ${t}; must be a string`);n=t,t=null}const r=new SX(n),i=dPe(e),o=[];for(let a=0;a<i.length;a++){const s=i[a];s.isLink&&(!t||s.t===t)&&r.check(s)&&o.push(s.toFormattedObject(r))}return o}function _cn(e){return e.length===1?e[0].isLink:e.length===3&&e[1].isLink?["()","[]"].includes(e[0].value+e[2].value):!1}function Scn(e){return new Ei({key:new $i("autolink"),appendTransaction:(t,n,r)=>{const i=t.some(l=>l.docChanged)&&!n.doc.eq(r.doc),o=t.some(l=>l.getMeta("preventAutolink"));if(!i||o)return;const{tr:a}=r,s=Onn(n.doc,[...t]);if(Pnn(s).forEach(({newRange:l})=>{const c=Inn(r.doc,l,f=>f.isTextblock);let u,d;if(c.length>1?(u=c[0],d=r.doc.textBetween(u.pos,u.pos+u.node.nodeSize,void 0," ")):c.length&&r.doc.textBetween(l.from,l.to," "," ").endsWith(" ")&&(u=c[0],d=r.doc.textBetween(u.pos,l.to,void 0," ")),u&&d){const f=d.split(" ").filter(v=>v!=="");if(f.length<=0)return!1;const h=f[f.length-1],m=u.pos+d.lastIndexOf(h);if(!h)return!1;const g=dPe(h).map(v=>v.toObject(e.defaultProtocol));if(!_cn(g))return!1;g.filter(v=>v.isLink).map(v=>({...v,from:m+v.start+1,to:m+v.end+1})).filter(v=>r.schema.marks.code?!r.doc.rangeHasMark(v.from,v.to,r.schema.marks.code):!0).filter(v=>e.validate(v.value)).filter(v=>e.shouldAutoLink(v.value)).forEach(v=>{JQ(v.from,v.to,r.doc).some(y=>y.mark.type===e.type)||a.addMark(v.from,v.to,e.type.create({href:v.href}))})}}),!!a.steps.length)return a}})}function Ecn(e){return new Ei({key:new $i("handleClickLink"),props:{handleClick:(t,n,r)=>{var i,o;if(r.button!==0||!t.editable)return!1;let a=r.target;const s=[];for(;a.nodeName!=="DIV";)s.push(a),a=a.parentNode;if(!s.find(f=>f.nodeName==="A"))return!1;const l=c4e(t.state,e.type.name),c=r.target,u=(i=c==null?void 0:c.href)!==null&&i!==void 0?i:l.href,d=(o=c==null?void 0:c.target)!==null&&o!==void 0?o:l.target;return c&&u?(window.open(u,d),!0):!1}}})}function Ccn(e){return new Ei({key:new $i("handlePasteLink"),props:{handlePaste:(t,n,r)=>{const{state:i}=t,{selection:o}=i,{empty:a}=o;if(a)return!1;let s="";r.content.forEach(c=>{s+=c.textContent});const l=fPe(s,{defaultProtocol:e.defaultProtocol}).find(c=>c.isLink&&c.value===s);return!s||!l?!1:(e.editor.commands.setMark(e.type,{href:l.href}),!0)}}})}const wcn=/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g;function oC(e,t){const n=["http","https","ftp","ftps","mailto","tel","callto","sms","cid","xmpp"];return t&&t.forEach(r=>{const i=typeof r=="string"?r:r.scheme;i&&n.push(i)}),!e||e.replace(wcn,"").match(new RegExp(`^(?:(?:${n.join("|")}):|[^a-z]|[a-z+.-]+(?:[^a-z+.-:]|$))`,"i"))}const Tcn=Pl.create({name:"link",priority:1e3,keepOnSplit:!1,exitable:!0,onCreate(){this.options.validate&&!this.options.shouldAutoLink&&(this.options.shouldAutoLink=this.options.validate,console.warn("The `validate` option is deprecated. Rename to the `shouldAutoLink` option instead.")),this.options.protocols.forEach(e=>{if(typeof e=="string"){yfe(e);return}yfe(e.scheme,e.optionalSlashes)})},onDestroy(){bcn()},inclusive(){return this.options.autolink},addOptions(){return{openOnClick:!0,linkOnPaste:!0,autolink:!0,protocols:[],defaultProtocol:"http",HTMLAttributes:{target:"_blank",rel:"noopener noreferrer nofollow",class:null},isAllowedUri:(e,t)=>!!oC(e,t.protocols),validate:e=>!!e,shouldAutoLink:e=>!!e}},addAttributes(){return{href:{default:null,parseHTML(e){return e.getAttribute("href")}},target:{default:this.options.HTMLAttributes.target},rel:{default:this.options.HTMLAttributes.rel},class:{default:this.options.HTMLAttributes.class}}},parseHTML(){return[{tag:"a[href]",getAttrs:e=>{const t=e.getAttribute("href");return!t||!this.options.isAllowedUri(t,{defaultValidate:n=>!!oC(n,this.options.protocols),protocols:this.options.protocols,defaultProtocol:this.options.defaultProtocol})?!1:null}}]},renderHTML({HTMLAttributes:e}){return this.options.isAllowedUri(e.href,{defaultValidate:t=>!!oC(t,this.options.protocols),protocols:this.options.protocols,defaultProtocol:this.options.defaultProtocol})?["a",zr(this.options.HTMLAttributes,e),0]:["a",zr(this.options.HTMLAttributes,{...e,href:""}),0]},addCommands(){return{setLink:e=>({chain:t})=>t().setMark(this.name,e).setMeta("preventAutolink",!0).run(),toggleLink:e=>({chain:t})=>t().toggleMark(this.name,e,{extendEmptyMarkRange:!0}).setMeta("preventAutolink",!0).run(),unsetLink:()=>({chain:e})=>e().unsetMark(this.name,{extendEmptyMarkRange:!0}).setMeta("preventAutolink",!0).run()}},addPasteRules(){return[_g({find:e=>{const t=[];if(e){const{protocols:n,defaultProtocol:r}=this.options,i=fPe(e).filter(o=>o.isLink&&this.options.isAllowedUri(o.value,{defaultValidate:a=>!!oC(a,n),protocols:n,defaultProtocol:r}));i.length&&i.forEach(o=>t.push({text:o.value,data:{href:o.href},index:o.start}))}return t},type:this.type,getAttributes:e=>{var t;return{href:(t=e.data)===null||t===void 0?void 0:t.href}}})]},addProseMirrorPlugins(){const e=[],{protocols:t,defaultProtocol:n}=this.options;return this.options.autolink&&e.push(Scn({type:this.type,defaultProtocol:this.options.defaultProtocol,validate:r=>this.options.isAllowedUri(r,{defaultValidate:i=>!!oC(i,t),protocols:t,defaultProtocol:n}),shouldAutoLink:this.options.shouldAutoLink})),this.options.openOnClick===!0&&e.push(Ecn({type:this.type})),this.options.linkOnPaste&&e.push(Ccn({editor:this.editor,defaultProtocol:this.options.defaultProtocol,type:this.type})),e}}),xcn=Pl.create({name:"superscript",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"sup"},{style:"vertical-align",getAttrs(e){return e!=="super"?!1:null}}]},renderHTML({HTMLAttributes:e}){return["sup",zr(this.options.HTMLAttributes,e),0]},addCommands(){return{setSuperscript:()=>({commands:e})=>e.setMark(this.name),toggleSuperscript:()=>({commands:e})=>e.toggleMark(this.name),unsetSuperscript:()=>({commands:e})=>e.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-.":()=>this.editor.commands.toggleSuperscript()}}}),Ocn=Pl.create({name:"subscript",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"sub"},{style:"vertical-align",getAttrs(e){return e!=="sub"?!1:null}}]},renderHTML({HTMLAttributes:e}){return["sub",zr(this.options.HTMLAttributes,e),0]},addCommands(){return{setSubscript:()=>({commands:e})=>e.setMark(this.name),toggleSubscript:()=>({commands:e})=>e.toggleMark(this.name),unsetSubscript:()=>({commands:e})=>e.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-,":()=>this.editor.commands.toggleSubscript()}}}),Rcn=Eo.create({name:"taskList",addOptions(){return{itemTypeName:"taskItem",HTMLAttributes:{}}},group:"block list",content(){return`${this.options.itemTypeName}+`},parseHTML(){return[{tag:`ul[data-type="${this.name}"]`,priority:51}]},renderHTML({HTMLAttributes:e}){return["ul",zr(this.options.HTMLAttributes,e,{"data-type":this.name}),0]},addCommands(){return{toggleTaskList:()=>({commands:e})=>e.toggleList(this.name,this.options.itemTypeName)}},addKeyboardShortcuts(){return{"Mod-Shift-9":()=>this.editor.commands.toggleTaskList()}}}),Icn=/^\s*(\[([( |x])?\])\s$/,Acn=Eo.create({name:"taskItem",addOptions(){return{nested:!1,HTMLAttributes:{},taskListTypeName:"taskList"}},content(){return this.options.nested?"paragraph block*":"paragraph+"},defining:!0,addAttributes(){return{checked:{default:!1,keepOnSplit:!1,parseHTML:e=>{const t=e.getAttribute("data-checked");return t===""||t==="true"},renderHTML:e=>({"data-checked":e.checked})}}},parseHTML(){return[{tag:`li[data-type="${this.name}"]`,priority:51}]},renderHTML({node:e,HTMLAttributes:t}){return["li",zr(this.options.HTMLAttributes,t,{"data-type":this.name}),["label",["input",{type:"checkbox",checked:e.attrs.checked?"checked":null}],["span"]],["div",0]]},addKeyboardShortcuts(){const e={Enter:()=>this.editor.commands.splitListItem(this.name),"Shift-Tab":()=>this.editor.commands.liftListItem(this.name)};return this.options.nested?{...e,Tab:()=>this.editor.commands.sinkListItem(this.name)}:e},addNodeView(){return({node:e,HTMLAttributes:t,getPos:n,editor:r})=>{const i=document.createElement("li"),o=document.createElement("label"),a=document.createElement("span"),s=document.createElement("input"),l=document.createElement("div");return o.contentEditable="false",s.type="checkbox",s.addEventListener("mousedown",c=>c.preventDefault()),s.addEventListener("change",c=>{if(!r.isEditable&&!this.options.onReadOnlyChecked){s.checked=!s.checked;return}const{checked:u}=c.target;r.isEditable&&typeof n=="function"&&r.chain().focus(void 0,{scrollIntoView:!1}).command(({tr:d})=>{const f=n();if(typeof f!="number")return!1;const h=d.doc.nodeAt(f);return d.setNodeMarkup(f,void 0,{...h==null?void 0:h.attrs,checked:u}),!0}).run(),!r.isEditable&&this.options.onReadOnlyChecked&&(this.options.onReadOnlyChecked(e,u)||(s.checked=!s.checked))}),Object.entries(this.options.HTMLAttributes).forEach(([c,u])=>{i.setAttribute(c,u)}),i.dataset.checked=e.attrs.checked,e.attrs.checked&&s.setAttribute("checked","checked"),o.append(s,a),i.append(o,l),Object.entries(t).forEach(([c,u])=>{i.setAttribute(c,u)}),{dom:i,contentDOM:l,update:c=>c.type!==this.type?!1:(i.dataset.checked=c.attrs.checked,c.attrs.checked?s.setAttribute("checked","checked"):s.removeAttribute("checked"),!0)}}},addInputRules(){return[i0({find:Icn,type:this.type,getAttributes:e=>({checked:e[e.length-1]==="x"})})]}});function Ncn(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function pPe(e){return e instanceof Map?e.clear=e.delete=e.set=function(){throw new Error("map is read-only")}:e instanceof Set&&(e.add=e.clear=e.delete=function(){throw new Error("set is read-only")}),Object.freeze(e),Object.getOwnPropertyNames(e).forEach(t=>{const n=e[t],r=typeof n;(r==="object"||r==="function")&&!Object.isFrozen(n)&&pPe(n)}),e}let _fe=class{constructor(e){e.data===void 0&&(e.data={}),this.data=e.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}};function hPe(e){return e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;")}function Hm(e,...t){const n=Object.create(null);for(const r in e)n[r]=e[r];return t.forEach(function(r){for(const i in r)n[i]=r[i]}),n}const Mcn="</span>",Sfe=e=>!!e.scope,kcn=(e,{prefix:t})=>{if(e.startsWith("language:"))return e.replace("language:","language-");if(e.includes(".")){const n=e.split(".");return[`${t}${n.shift()}`,...n.map((r,i)=>`${r}${"_".repeat(i+1)}`)].join(" ")}return`${t}${e}`};let Pcn=class{constructor(e,t){this.buffer="",this.classPrefix=t.classPrefix,e.walk(this)}addText(e){this.buffer+=hPe(e)}openNode(e){if(!Sfe(e))return;const t=kcn(e.scope,{prefix:this.classPrefix});this.span(t)}closeNode(e){Sfe(e)&&(this.buffer+=Mcn)}value(){return this.buffer}span(e){this.buffer+=`<span class="${e}">`}};const Efe=(e={})=>{const t={children:[]};return Object.assign(t,e),t};let Dcn=class mPe{constructor(){this.rootNode=Efe(),this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(t){this.top.children.push(t)}openNode(t){const n=Efe({scope:t});this.add(n),this.stack.push(n)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(t){return this.constructor._walk(t,this.rootNode)}static _walk(t,n){return typeof n=="string"?t.addText(n):n.children&&(t.openNode(n),n.children.forEach(r=>this._walk(t,r)),t.closeNode(n)),t}static _collapse(t){typeof t!="string"&&t.children&&(t.children.every(n=>typeof n=="string")?t.children=[t.children.join("")]:t.children.forEach(n=>{mPe._collapse(n)}))}},Lcn=class extends Dcn{constructor(e){super(),this.options=e}addText(e){e!==""&&this.add(e)}startScope(e){this.openNode(e)}endScope(){this.closeNode()}__addSublanguage(e,t){const n=e.root;t&&(n.scope=`language:${t}`),this.add(n)}toHTML(){return new Pcn(this,this.options).value()}finalize(){return this.closeAllNodes(),!0}};function gx(e){return e?typeof e=="string"?e:e.source:null}function gPe(e){return $0("(?=",e,")")}function $cn(e){return $0("(?:",e,")*")}function Fcn(e){return $0("(?:",e,")?")}function $0(...e){return e.map(t=>gx(t)).join("")}function Bcn(e){const t=e[e.length-1];return typeof t=="object"&&t.constructor===Object?(e.splice(e.length-1,1),t):{}}function EX(...e){return"("+(Bcn(e).capture?"":"?:")+e.map(t=>gx(t)).join("|")+")"}function vPe(e){return new RegExp(e.toString()+"|").exec("").length-1}function jcn(e,t){const n=e&&e.exec(t);return n&&n.index===0}const Hcn=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function CX(e,{joinWith:t}){let n=0;return e.map(r=>{n+=1;const i=n;let o=gx(r),a="";for(;o.length>0;){const s=Hcn.exec(o);if(!s){a+=o;break}a+=o.substring(0,s.index),o=o.substring(s.index+s[0].length),s[0][0]==="\\"&&s[1]?a+="\\"+String(Number(s[1])+i):(a+=s[0],s[0]==="("&&n++)}return a}).map(r=>`(${r})`).join(t)}const Ucn=/\b\B/,bPe="[a-zA-Z]\\w*",wX="[a-zA-Z_]\\w*",yPe="\\b\\d+(\\.\\d+)?",_Pe="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",SPe="\\b(0b[01]+)",zcn="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",Vcn=(e={})=>{const t=/^#![ ]*\//;return e.binary&&(e.begin=$0(t,/.*\b/,e.binary,/\b.*/)),Hm({scope:"meta",begin:t,end:/$/,relevance:0,"on:begin":(n,r)=>{n.index!==0&&r.ignoreMatch()}},e)},vx={begin:"\\\\[\\s\\S]",relevance:0},Gcn={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[vx]},Wcn={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[vx]},qcn={begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/},p9=function(e,t,n={}){const r=Hm({scope:"comment",begin:e,end:t,contains:[]},n);r.contains.push({scope:"doctag",begin:"[ ]*(?=(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):)",end:/(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):/,excludeBegin:!0,relevance:0});const i=EX("I","a","is","so","us","to","at","if","in","it","on",/[A-Za-z]+['](d|ve|re|ll|t|s|n)/,/[A-Za-z]+[-][a-z]+/,/[A-Za-z][a-z]{2,}/);return r.contains.push({begin:$0(/[ ]+/,"(",i,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),r},Ycn=p9("//","$"),Kcn=p9("/\\*","\\*/"),Qcn=p9("#","$"),Xcn={scope:"number",begin:yPe,relevance:0},Zcn={scope:"number",begin:_Pe,relevance:0},Jcn={scope:"number",begin:SPe,relevance:0},eun={scope:"regexp",begin:/\/(?=[^/\n]*\/)/,end:/\/[gimuy]*/,contains:[vx,{begin:/\[/,end:/\]/,relevance:0,contains:[vx]}]},tun={scope:"title",begin:bPe,relevance:0},nun={scope:"title",begin:wX,relevance:0},run={begin:"\\.\\s*"+wX,relevance:0},iun=function(e){return Object.assign(e,{"on:begin":(t,n)=>{n.data._beginMatch=t[1]},"on:end":(t,n)=>{n.data._beginMatch!==t[1]&&n.ignoreMatch()}})};var vI=Object.freeze({__proto__:null,APOS_STRING_MODE:Gcn,BACKSLASH_ESCAPE:vx,BINARY_NUMBER_MODE:Jcn,BINARY_NUMBER_RE:SPe,COMMENT:p9,C_BLOCK_COMMENT_MODE:Kcn,C_LINE_COMMENT_MODE:Ycn,C_NUMBER_MODE:Zcn,C_NUMBER_RE:_Pe,END_SAME_AS_BEGIN:iun,HASH_COMMENT_MODE:Qcn,IDENT_RE:bPe,MATCH_NOTHING_RE:Ucn,METHOD_GUARD:run,NUMBER_MODE:Xcn,NUMBER_RE:yPe,PHRASAL_WORDS_MODE:qcn,QUOTE_STRING_MODE:Wcn,REGEXP_MODE:eun,RE_STARTERS_RE:zcn,SHEBANG:Vcn,TITLE_MODE:tun,UNDERSCORE_IDENT_RE:wX,UNDERSCORE_TITLE_MODE:nun});function oun(e,t){e.input[e.index-1]==="."&&t.ignoreMatch()}function aun(e,t){e.className!==void 0&&(e.scope=e.className,delete e.className)}function sun(e,t){t&&e.beginKeywords&&(e.begin="\\b("+e.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",e.__beforeBegin=oun,e.keywords=e.keywords||e.beginKeywords,delete e.beginKeywords,e.relevance===void 0&&(e.relevance=0))}function lun(e,t){Array.isArray(e.illegal)&&(e.illegal=EX(...e.illegal))}function cun(e,t){if(e.match){if(e.begin||e.end)throw new Error("begin & end are not supported with match");e.begin=e.match,delete e.match}}function uun(e,t){e.relevance===void 0&&(e.relevance=1)}const dun=(e,t)=>{if(!e.beforeMatch)return;if(e.starts)throw new Error("beforeMatch cannot be used with starts");const n=Object.assign({},e);Object.keys(e).forEach(r=>{delete e[r]}),e.keywords=n.keywords,e.begin=$0(n.beforeMatch,gPe(n.begin)),e.starts={relevance:0,contains:[Object.assign(n,{endsParent:!0})]},e.relevance=0,delete n.beforeMatch},fun=["of","and","for","in","not","or","if","then","parent","list","value"],pun="keyword";function EPe(e,t,n=pun){const r=Object.create(null);return typeof e=="string"?i(n,e.split(" ")):Array.isArray(e)?i(n,e):Object.keys(e).forEach(function(o){Object.assign(r,EPe(e[o],t,o))}),r;function i(o,a){t&&(a=a.map(s=>s.toLowerCase())),a.forEach(function(s){const l=s.split("|");r[l[0]]=[o,hun(l[0],l[1])]})}}function hun(e,t){return t?Number(t):mun(e)?0:1}function mun(e){return fun.includes(e.toLowerCase())}const Cfe={},wv=e=>{console.error(e)},wfe=(e,...t)=>{console.log(`WARN: ${e}`,...t)},bb=(e,t)=>{Cfe[`${e}/${t}`]||(console.log(`Deprecated as of ${e}. ${t}`),Cfe[`${e}/${t}`]=!0)},b4=new Error;function CPe(e,t,{key:n}){let r=0;const i=e[n],o={},a={};for(let s=1;s<=t.length;s++)a[s+r]=i[s],o[s+r]=!0,r+=vPe(t[s-1]);e[n]=a,e[n]._emit=o,e[n]._multi=!0}function gun(e){if(Array.isArray(e.begin)){if(e.skip||e.excludeBegin||e.returnBegin)throw wv("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),b4;if(typeof e.beginScope!="object"||e.beginScope===null)throw wv("beginScope must be object"),b4;CPe(e,e.begin,{key:"beginScope"}),e.begin=CX(e.begin,{joinWith:""})}}function vun(e){if(Array.isArray(e.end)){if(e.skip||e.excludeEnd||e.returnEnd)throw wv("skip, excludeEnd, returnEnd not compatible with endScope: {}"),b4;if(typeof e.endScope!="object"||e.endScope===null)throw wv("endScope must be object"),b4;CPe(e,e.end,{key:"endScope"}),e.end=CX(e.end,{joinWith:""})}}function bun(e){e.scope&&typeof e.scope=="object"&&e.scope!==null&&(e.beginScope=e.scope,delete e.scope)}function yun(e){bun(e),typeof e.beginScope=="string"&&(e.beginScope={_wrap:e.beginScope}),typeof e.endScope=="string"&&(e.endScope={_wrap:e.endScope}),gun(e),vun(e)}function _un(e){function t(a,s){return new RegExp(gx(a),"m"+(e.case_insensitive?"i":"")+(e.unicodeRegex?"u":"")+(s?"g":""))}class n{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(s,l){l.position=this.position++,this.matchIndexes[this.matchAt]=l,this.regexes.push([l,s]),this.matchAt+=vPe(s)+1}compile(){this.regexes.length===0&&(this.exec=()=>null);const s=this.regexes.map(l=>l[1]);this.matcherRe=t(CX(s,{joinWith:"|"}),!0),this.lastIndex=0}exec(s){this.matcherRe.lastIndex=this.lastIndex;const l=this.matcherRe.exec(s);if(!l)return null;const c=l.findIndex((d,f)=>f>0&&d!==void 0),u=this.matchIndexes[c];return l.splice(0,c),Object.assign(l,u)}}class r{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(s){if(this.multiRegexes[s])return this.multiRegexes[s];const l=new n;return this.rules.slice(s).forEach(([c,u])=>l.addRule(c,u)),l.compile(),this.multiRegexes[s]=l,l}resumingScanAtSamePosition(){return this.regexIndex!==0}considerAll(){this.regexIndex=0}addRule(s,l){this.rules.push([s,l]),l.type==="begin"&&this.count++}exec(s){const l=this.getMatcher(this.regexIndex);l.lastIndex=this.lastIndex;let c=l.exec(s);if(this.resumingScanAtSamePosition()&&!(c&&c.index===this.lastIndex)){const u=this.getMatcher(0);u.lastIndex=this.lastIndex+1,c=u.exec(s)}return c&&(this.regexIndex+=c.position+1,this.regexIndex===this.count&&this.considerAll()),c}}function i(a){const s=new r;return a.contains.forEach(l=>s.addRule(l.begin,{rule:l,type:"begin"})),a.terminatorEnd&&s.addRule(a.terminatorEnd,{type:"end"}),a.illegal&&s.addRule(a.illegal,{type:"illegal"}),s}function o(a,s){const l=a;if(a.isCompiled)return l;[aun,cun,yun,dun].forEach(u=>u(a,s)),e.compilerExtensions.forEach(u=>u(a,s)),a.__beforeBegin=null,[sun,lun,uun].forEach(u=>u(a,s)),a.isCompiled=!0;let c=null;return typeof a.keywords=="object"&&a.keywords.$pattern&&(a.keywords=Object.assign({},a.keywords),c=a.keywords.$pattern,delete a.keywords.$pattern),c=c||/\w+/,a.keywords&&(a.keywords=EPe(a.keywords,e.case_insensitive)),l.keywordPatternRe=t(c,!0),s&&(a.begin||(a.begin=/\B|\b/),l.beginRe=t(l.begin),!a.end&&!a.endsWithParent&&(a.end=/\B|\b/),a.end&&(l.endRe=t(l.end)),l.terminatorEnd=gx(l.end)||"",a.endsWithParent&&s.terminatorEnd&&(l.terminatorEnd+=(a.end?"|":"")+s.terminatorEnd)),a.illegal&&(l.illegalRe=t(a.illegal)),a.contains||(a.contains=[]),a.contains=[].concat(...a.contains.map(function(u){return Sun(u==="self"?a:u)})),a.contains.forEach(function(u){o(u,l)}),a.starts&&o(a.starts,s),l.matcher=i(l),l}if(e.compilerExtensions||(e.compilerExtensions=[]),e.contains&&e.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return e.classNameAliases=Hm(e.classNameAliases||{}),o(e)}function wPe(e){return e?e.endsWithParent||wPe(e.starts):!1}function Sun(e){return e.variants&&!e.cachedVariants&&(e.cachedVariants=e.variants.map(function(t){return Hm(e,{variants:null},t)})),e.cachedVariants?e.cachedVariants:wPe(e)?Hm(e,{starts:e.starts?Hm(e.starts):null}):Object.isFrozen(e)?Hm(e):e}var Eun="11.10.0";let Cun=class extends Error{constructor(e,t){super(e),this.name="HTMLInjectionError",this.html=t}};const D6=hPe,Tfe=Hm,xfe=Symbol("nomatch"),wun=7,TPe=function(e){const t=Object.create(null),n=Object.create(null),r=[];let i=!0;const o="Could not find the language '{}', did you forget to load/include a language module?",a={disableAutodetect:!0,name:"Plain text",contains:[]};let s={ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",cssSelector:"pre code",languages:null,__emitter:Lcn};function l(A){return s.noHighlightRe.test(A)}function c(A){let P=A.className+" ";P+=A.parentNode?A.parentNode.className:"";const z=s.languageDetectRe.exec(P);if(z){const L=x(z[1]);return L||(wfe(o.replace("{}",z[1])),wfe("Falling back to no-highlight mode for this block.",A)),L?z[1]:"no-highlight"}return P.split(/\s+/).find(L=>l(L)||x(L))}function u(A,P,z){let L="",V="";typeof P=="object"?(L=A,z=P.ignoreIllegals,V=P.language):(bb("10.7.0","highlight(lang, code, ...args) has been deprecated."),bb("10.7.0",`Please use highlight(code, options) instead.
https://github.com/highlightjs/highlight.js/issues/2277`),V=A,L=P),z===void 0&&(z=!0);const j={code:L,language:V};k("before:highlight",j);const U=j.result?j.result:d(j.language,j.code,z);return U.code=j.code,k("after:highlight",U),U}function d(A,P,z,L){const V=Object.create(null);function j(D,G){return D.keywords[G]}function U(){if(!Se.keywords){ye.addText(he);return}let D=0;Se.keywordPatternRe.lastIndex=0;let G=Se.keywordPatternRe.exec(he),ie="";for(;G;){ie+=he.substring(D,G.index);const me=pe.case_insensitive?G[0].toLowerCase():G[0],se=j(Se,me);if(se){const[Be,Ve]=se;if(ye.addText(ie),ie="",V[me]=(V[me]||0)+1,V[me]<=wun&&(_e+=Ve),Be.startsWith("_"))ie+=G[0];else{const re=pe.classNameAliases[Be]||Be;ae(G[0],re)}}else ie+=G[0];D=Se.keywordPatternRe.lastIndex,G=Se.keywordPatternRe.exec(he)}ie+=he.substring(D),ye.addText(ie)}function J(){if(he==="")return;let D=null;if(typeof Se.subLanguage=="string"){if(!t[Se.subLanguage]){ye.addText(he);return}D=d(Se.subLanguage,he,!0,Ce[Se.subLanguage]),Ce[Se.subLanguage]=D._top}else D=h(he,Se.subLanguage.length?Se.subLanguage:null);Se.relevance>0&&(_e+=D.relevance),ye.__addSublanguage(D._emitter,D.language)}function te(){Se.subLanguage!=null?J():U(),he=""}function ae(D,G){D!==""&&(ye.startScope(G),ye.addText(D),ye.endScope())}function K(D,G){let ie=1;const me=G.length-1;for(;ie<=me;){if(!D._emit[ie]){ie++;continue}const se=pe.classNameAliases[D[ie]]||D[ie],Be=G[ie];se?ae(Be,se):(he=Be,U(),he=""),ie++}}function Q(D,G){return D.scope&&typeof D.scope=="string"&&ye.openNode(pe.classNameAliases[D.scope]||D.scope),D.beginScope&&(D.beginScope._wrap?(ae(he,pe.classNameAliases[D.beginScope._wrap]||D.beginScope._wrap),he=""):D.beginScope._multi&&(K(D.beginScope,G),he="")),Se=Object.create(D,{parent:{value:Se}}),Se}function oe(D,G,ie){let me=jcn(D.endRe,ie);if(me){if(D["on:end"]){const se=new _fe(D);D["on:end"](G,se),se.isMatchIgnored&&(me=!1)}if(me){for(;D.endsParent&&D.parent;)D=D.parent;return D}}if(D.endsWithParent)return oe(D.parent,G,ie)}function ge(D){return Se.matcher.regexIndex===0?(he+=D[0],1):(Y=!0,0)}function fe(D){const G=D[0],ie=D.rule,me=new _fe(ie),se=[ie.__beforeBegin,ie["on:begin"]];for(const Be of se)if(Be&&(Be(D,me),me.isMatchIgnored))return ge(G);return ie.skip?he+=G:(ie.excludeBegin&&(he+=G),te(),!ie.returnBegin&&!ie.excludeBegin&&(he=G)),Q(ie,D),ie.returnBegin?0:G.length}function ue(D){const G=D[0],ie=P.substring(D.index),me=oe(Se,D,ie);if(!me)return xfe;const se=Se;Se.endScope&&Se.endScope._wrap?(te(),ae(G,Se.endScope._wrap)):Se.endScope&&Se.endScope._multi?(te(),K(Se.endScope,D)):se.skip?he+=G:(se.returnEnd||se.excludeEnd||(he+=G),te(),se.excludeEnd&&(he=G));do Se.scope&&ye.closeNode(),!Se.skip&&!Se.subLanguage&&(_e+=Se.relevance),Se=Se.parent;while(Se!==me.parent);return me.starts&&Q(me.starts,D),se.returnEnd?0:G.length}function le(){const D=[];for(let G=Se;G!==pe;G=G.parent)G.scope&&D.unshift(G.scope);D.forEach(G=>ye.openNode(G))}let ve={};function ne(D,G){const ie=G&&G[0];if(he+=D,ie==null)return te(),0;if(ve.type==="begin"&&G.type==="end"&&ve.index===G.index&&ie===""){if(he+=P.slice(G.index,G.index+1),!i){const me=new Error(`0 width match regex (${A})`);throw me.languageName=A,me.badRule=ve.rule,me}return 1}if(ve=G,G.type==="begin")return fe(G);if(G.type==="illegal"&&!z){const me=new Error('Illegal lexeme "'+ie+'" for mode "'+(Se.scope||"<unnamed>")+'"');throw me.mode=Se,me}else if(G.type==="end"){const me=ue(G);if(me!==xfe)return me}if(G.type==="illegal"&&ie==="")return 1;if(De>1e5&&De>G.index*3)throw new Error("potential infinite loop, way more iterations than matches");return he+=ie,ie.length}const pe=x(A);if(!pe)throw wv(o.replace("{}",A)),new Error('Unknown language: "'+A+'"');const be=_un(pe);let Re="",Se=L||be;const Ce={},ye=new s.__emitter(s);le();let he="",_e=0,Oe=0,De=0,Y=!1;try{if(pe.__emitTokens)pe.__emitTokens(P,ye);else{for(Se.matcher.considerAll();;){De++,Y?Y=!1:Se.matcher.considerAll(),Se.matcher.lastIndex=Oe;const D=Se.matcher.exec(P);if(!D)break;const G=P.substring(Oe,D.index),ie=ne(G,D);Oe=D.index+ie}ne(P.substring(Oe))}return ye.finalize(),Re=ye.toHTML(),{language:A,value:Re,relevance:_e,illegal:!1,_emitter:ye,_top:Se}}catch(D){if(D.message&&D.message.includes("Illegal"))return{language:A,value:D6(P),illegal:!0,relevance:0,_illegalBy:{message:D.message,index:Oe,context:P.slice(Oe-100,Oe+100),mode:D.mode,resultSoFar:Re},_emitter:ye};if(i)return{language:A,value:D6(P),illegal:!1,relevance:0,errorRaised:D,_emitter:ye,_top:Se};throw D}}function f(A){const P={value:D6(A),illegal:!1,relevance:0,_top:a,_emitter:new s.__emitter(s)};return P._emitter.addText(A),P}function h(A,P){P=P||s.languages||Object.keys(t);const z=f(A),L=P.filter(x).filter(N).map(te=>d(te,A,!1));L.unshift(z);const V=L.sort((te,ae)=>{if(te.relevance!==ae.relevance)return ae.relevance-te.relevance;if(te.language&&ae.language){if(x(te.language).supersetOf===ae.language)return 1;if(x(ae.language).supersetOf===te.language)return-1}return 0}),[j,U]=V,J=j;return J.secondBest=U,J}function m(A,P,z){const L=P&&n[P]||z;A.classList.add("hljs"),A.classList.add(`language-${L}`)}function g(A){let P=null;const z=c(A);if(l(z))return;if(k("before:highlightElement",{el:A,language:z}),A.dataset.highlighted){console.log("Element previously highlighted. To highlight again, first unset `dataset.highlighted`.",A);return}if(A.children.length>0&&(s.ignoreUnescapedHTML||(console.warn("One of your code blocks includes unescaped HTML. This is a potentially serious security risk."),console.warn("https://github.com/highlightjs/highlight.js/wiki/security"),console.warn("The element with unescaped HTML:"),console.warn(A)),s.throwUnescapedHTML))throw new Cun("One of your code blocks includes unescaped HTML.",A.innerHTML);P=A;const L=P.textContent,V=z?u(L,{language:z,ignoreIllegals:!0}):h(L);A.innerHTML=V.value,A.dataset.highlighted="yes",m(A,z,V.language),A.result={language:V.language,re:V.relevance,relevance:V.relevance},V.secondBest&&(A.secondBest={language:V.secondBest.language,relevance:V.secondBest.relevance}),k("after:highlightElement",{el:A,result:V,text:L})}function v(A){s=Tfe(s,A)}const y=()=>{E(),bb("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")};function b(){E(),bb("10.6.0","initHighlightingOnLoad() deprecated. Use highlightAll() now.")}let _=!1;function E(){if(document.readyState==="loading"){_=!0;return}document.querySelectorAll(s.cssSelector).forEach(g)}function w(){_&&E()}typeof window<"u"&&window.addEventListener&&window.addEventListener("DOMContentLoaded",w,!1);function S(A,P){let z=null;try{z=P(e)}catch(L){if(wv("Language definition for '{}' could not be registered.".replace("{}",A)),i)wv(L);else throw L;z=a}z.name||(z.name=A),t[A]=z,z.rawDefinition=P.bind(null,e),z.aliases&&O(z.aliases,{languageName:A})}function C(A){delete t[A];for(const P of Object.keys(n))n[P]===A&&delete n[P]}function T(){return Object.keys(t)}function x(A){return A=(A||"").toLowerCase(),t[A]||t[n[A]]}function O(A,{languageName:P}){typeof A=="string"&&(A=[A]),A.forEach(z=>{n[z.toLowerCase()]=P})}function N(A){const P=x(A);return P&&!P.disableAutodetect}function I(A){A["before:highlightBlock"]&&!A["before:highlightElement"]&&(A["before:highlightElement"]=P=>{A["before:highlightBlock"](Object.assign({block:P.el},P))}),A["after:highlightBlock"]&&!A["after:highlightElement"]&&(A["after:highlightElement"]=P=>{A["after:highlightBlock"](Object.assign({block:P.el},P))})}function M(A){I(A),r.push(A)}function F(A){const P=r.indexOf(A);P!==-1&&r.splice(P,1)}function k(A,P){const z=A;r.forEach(function(L){L[z]&&L[z](P)})}function B(A){return bb("10.7.0","highlightBlock will be removed entirely in v12.0"),bb("10.7.0","Please use highlightElement now."),g(A)}Object.assign(e,{highlight:u,highlightAuto:h,highlightAll:E,highlightElement:g,highlightBlock:B,configure:v,initHighlighting:y,initHighlightingOnLoad:b,registerLanguage:S,unregisterLanguage:C,listLanguages:T,getLanguage:x,registerAliases:O,autoDetection:N,inherit:Tfe,addPlugin:M,removePlugin:F}),e.debugMode=function(){i=!1},e.safeMode=function(){i=!0},e.versionString=Eun,e.regex={concat:$0,lookahead:gPe,either:EX,optional:Fcn,anyNumberOfTimes:$cn};for(const A in vI)typeof vI[A]=="object"&&pPe(vI[A]);return Object.assign(e,vI),e},Q_=TPe({});Q_.newInstance=()=>TPe({});var Tun=Q_;Q_.HighlightJS=Q_;Q_.default=Q_;var xun=Ncn(Tun);function xPe(e,t=[]){return e.map(n=>{const r=[...t,...n.properties?n.properties.className:[]];return n.children?xPe(n.children,r):{text:n.value,classes:r}}).flat()}function Ofe(e){return e.value||e.children||[]}function Oun(e){return!!xun.getLanguage(e)}function Rfe({doc:e,name:t,lowlight:n,defaultLanguage:r}){const i=[];return Kz(e,o=>o.type.name===t).forEach(o=>{var a;let s=o.pos+1;const l=o.node.attrs.language||r,c=n.listLanguages(),u=l&&(c.includes(l)||Oun(l)||!((a=n.registered)===null||a===void 0)&&a.call(n,l))?Ofe(n.highlight(l,o.node.textContent)):Ofe(n.highlightAuto(o.node.textContent));xPe(u).forEach(d=>{const f=s+d.text.length;if(d.classes.length){const h=ta.inline(s,f,{class:d.classes.join(" ")});i.push(h)}s=f})}),Ci.create(e,i)}function Run(e){return typeof e=="function"}function Iun({name:e,lowlight:t,defaultLanguage:n}){if(!["highlight","highlightAuto","listLanguages"].every(i=>Run(t[i])))throw Error("You should provide an instance of lowlight to use the code-block-lowlight extension");const r=new Ei({key:new $i("lowlight"),state:{init:(i,{doc:o})=>Rfe({doc:o,name:e,lowlight:t,defaultLanguage:n}),apply:(i,o,a,s)=>{const l=a.selection.$head.parent.type.name,c=s.selection.$head.parent.type.name,u=Kz(a.doc,f=>f.type.name===e),d=Kz(s.doc,f=>f.type.name===e);return i.docChanged&&([l,c].includes(e)||d.length!==u.length||i.steps.some(f=>f.from!==void 0&&f.to!==void 0&&u.some(h=>h.pos>=f.from&&h.pos+h.node.nodeSize<=f.to)))?Rfe({doc:i.doc,name:e,lowlight:t,defaultLanguage:n}):o.map(i.mapping,i.doc)}},props:{decorations(i){return r.getState(i)}}});return r}const Aun=z4e.extend({addOptions(){var e;return{...(e=this.parent)===null||e===void 0?void 0:e.call(this),lowlight:{},languageClassPrefix:"language-",exitOnTripleEnter:!0,exitOnArrowDown:!0,defaultLanguage:null,HTMLAttributes:{}}},addProseMirrorPlugins(){var e;return[...((e=this.parent)===null||e===void 0?void 0:e.call(this))||[],Iun({name:this.name,lowlight:this.options.lowlight,defaultLanguage:this.options.defaultLanguage})]}});function Ife(e,t,n={}){const{empty:r,ranges:i,from:o,to:a}=e.selection,s=t?Mh(t,e.schema):null;if(r)return!!(e.storedMarks||e.selection.$from.marks()).filter(m=>s?s.name===m.type.name:!0).find(m=>V_(m.attrs,n,{strict:!1}));let l=o,c=a;const u=[];i.forEach(({$from:m,$to:g})=>{const v=m.pos,y=g.pos;l=Math.min(l,v),c=Math.max(l,y),e.doc.nodesBetween(v,y,(b,_)=>{if(!b.isText&&!b.marks.length)return;const E=Math.max(v,_),w=Math.min(y,_+b.nodeSize);u.push(...b.marks.map(S=>({mark:S,from:E,to:w})))})});const d=c-l;if(d===0)return!1;const f=u.filter(m=>s?s.name===m.mark.type.name:!0).filter(m=>V_(m.mark.attrs,n,{strict:!1})).reduce((m,g)=>m+g.to-g.from,0),h=u.filter(m=>s?m.mark.type!==s&&m.mark.type.excludes(s):!0).reduce((m,g)=>m+g.to-g.from,0);return(f>0?f+h:f)>=d}function Afe(e){var t;return!!((t=e.spec.group)!=null&&t.split(" ").includes("list"))}function Nfe(e,t,n={}){if(!t)return n0(e,null,n)||Ife(e,null,n);const r=e.schema.nodes[t];if(r){if(Afe(r)){const i=o9(o=>Afe(o.type))(e.selection);return!!(i&&i.node.type.name===t)}return n0(e,t,n)}return e.schema.marks[t]?Ife(e,t,n):!1}function Mfe(e){return new uO({find:e.find,handler:({state:t,range:n,match:r,commands:i})=>{const o=t.doc.resolve(n.from),a=Ar(e.getAttributes,void 0,r)||{};if(!o.node(-1).canReplaceWith(o.index(-1),o.indexAfter(-1),e.type))return null;t.tr.delete(n.from,n.to).setBlockType(n.from,n.from,e.type,a),setTimeout(()=>i.focus(!0),0)}})}const OPe=[{name:"Auto",value:"auto"},{name:"Plain Text",value:"plaintext",alias:["text","txt"]},{name:"Bash",value:"bash",alias:["sh"]},{name:"BASIC",value:"basic",alias:[]},{name:"C",value:"c",alias:["h"]},{name:"Clojure",value:"clojure",alias:["clj","edn"]},{name:"CMake",value:"cmake",alias:["cmake.in"]},{name:"CoffeeScript",value:"coffeescript",alias:["coffee","cson","iced"]},{name:"C++",value:"cpp",alias:["cc","c++","h++","hpp","hh","hxx","cxx"]},{name:"C#",value:"csharp",alias:["cs","c#"]},{name:"CSS",value:"css",alias:[]},{name:"Dart",value:"dart",alias:[]},{name:"Delphi",value:"delphi",alias:["dpr","dfm","pas","pascal"]},{name:"Dockerfile",value:"dockerfile",alias:["docker"]},{name:"Erlang",value:"erlang",alias:["erl"]},{name:"Go",value:"go",alias:["golang"]},{name:"GraphQL",value:"graphql",alias:["gql"]},{name:"Groovy",value:"groovy",alias:[]},{name:"Java",value:"java",alias:["jsp"]},{name:"JavaScript",value:"javascript",alias:["js","jsx","mjs","cjs"]},{name:"JSON",value:"json",alias:[]},{name:"Kotlin",value:"kotlin",alias:["kt","kts"]},{name:"Lua",value:"lua",alias:[]},{name:"Makefile",value:"makefile",alias:["mk","mak","make"]},{name:"Markdown",value:"markdown",alias:["md","mkdown","mkd"]},{name:"Matlab",value:"matlab",alias:[]},{name:"Objective-C",value:"objectivec",alias:["mm","objc","obj-c","obj-c++","objective-c++"]},{name:"PHP",value:"php",alias:[]},{name:"Properties",value:"properties",alias:[]},{name:"Python",value:"python",alias:["py","gyp","ipython"]},{name:"Ruby",value:"ruby",alias:["rb","gemspec","podspec","thor","irb"]},{name:"Rust",value:"rust",alias:["rs"]},{name:"Scala",value:"scala",alias:[]},{name:"SCSS",value:"scss",alias:[]},{name:"Shell",value:"shell",alias:["console","shellsession"]},{name:"SQL",value:"sql",alias:[]},{name:"Swift",value:"swift",alias:[]},{name:"TypeScript",value:"typescript",alias:["ts","tsx"]},{name:"WebAssembly",value:"wasm",alias:[]},{name:"HTML, XML",value:"xml",alias:["html","xhtml","rss","atom","xjb","xsd","xsl","plist","wsf","svg"]},{name:"YAML",value:"yaml",alias:["yml"]}],kfe=e=>{if(!e)return null;const t=e.toLocaleLowerCase();return OPe.find(n=>n.value===t||n.alias&&n.alias.includes(t))};function Nun(e,t){const{$from:n,from:r,to:i}=e,o=(t.textContent||"").split(`
`).reduce((d,f,h)=>(d[h]=(d[h-1]||0)+f.length+(h===0?0:1),d),{}),a=n.parentOffset,s=n.parentOffset+i-r,l=Object.keys(o),c=l.find(d=>o[d]>=a),u=l.find(d=>o[d]>=s);return{start:c,end:u}}const Mun=/^[`·]{3}([a-z]+)?[\s\n]$/,kun=/^[~]{3}([a-z]+)?[\s\n]$/,Pun=Aun.extend({addOptions(){var e;return{...(e=this.parent)==null?void 0:e.call(this),lowlight:{},defaultLanguage:null,languages:[]}},addCommands(){var e;return{...(e=this.parent)==null?void 0:e.call(this),addCodeComments:(t,n)=>({editor:r})=>{const{view:{dispatch:i},state:{tr:o}}=r;return i(o.setSelection(lr.create(r.state.doc,n)).deleteSelection()),Sg.get(this.options.codeCommentsAi.model).chat(t.textContent,this.options.codeCommentsAi.prompt,new t4(r,{markdownParseEnable:!0,useMarkdownTextOnly:!0})),!0},addCodeExplain:(t,n)=>({editor:r})=>{const{view:{dispatch:i},state:{tr:o}}=r,a=r.state.doc.nodeSize;a<=n+t.nodeSize+2?(r.commands.insertContentAt(n+t.nodeSize+1,"<p></p>"),i(o.setSelection(er.create(r.state.doc,a-2)))):i(o.setSelection(er.create(r.state.doc,n+t.nodeSize+1)));const s=Sg.get(this.options.codeExplainAi.model);return s==null||s.chat(t.textContent,this.options.codeExplainAi.prompt,new t4(r)),!0},toggleCodeBlock:t=>({commands:n,editor:r,chain:i})=>{const{state:o}=r,{from:a,to:s}=o.selection;if(!Nfe(o,this.name)&&!o.selection.empty){let l=!0;const c=[];if(o.doc.nodesBetween(a,s,(u,d)=>{if(u.isInline)return!1;if(u.type.name!=="paragraph")return d+1<=a&&d+u.nodeSize-1>=s?void 0:(l=!1,!1);{const f=(u.textContent||"").slice(d+1>a?0:a-d-1,d+u.nodeSize-1<s?u.nodeSize-1:s-d-1);c.push(f||"")}}),l&&c.length>1)return i().command(({state:u,tr:d})=>(d.replaceRangeWith(a,s,this.type.create(t,u.schema.text(c.join(`
`)))),!0)).setTextSelection({from:a+2,to:a+2}).run()}return n.toggleNode(this.name,"paragraph",t)}}},addKeyboardShortcuts(){var e;return{...(e=this.parent)==null?void 0:e.call(this),Tab:({editor:t})=>{const{state:n,view:r}=t;if(!Nfe(n,this.name))return!1;const{selection:i,tr:o}=n,a=" ";if(i.empty)r.dispatch(o.insertText(a));else{const{$from:s,from:l,to:c}=i,u=s.node();if(u.type!==this.type)return!1;const{start:d,end:f}=Nun(i,u);if(d===void 0||f===void 0)return r.dispatch(o.replaceSelectionWith(n.schema.text(a))),!0;const h=(u.textContent||"").split(`
`).map((v,y)=>y>=d&&y<=f&&v?a+v:v),m=s.node(1),g=s.start(1);o.replaceWith(g,g+m.nodeSize-2,n.schema.text(h.join(`
`))),o.setSelection(er.between(o.doc.resolve(l+a.length),o.doc.resolve(c+(f-d+1)*a.length))),r.dispatch(o)}return!0}}},addInputRules(){return[Mfe({find:Mun,type:this.type,getAttributes:e=>{var t;return{language:((t=kfe(e[1]))==null?void 0:t.value)||this.options.defaultLanguage}}}),Mfe({find:kun,type:this.type,getAttributes:e=>{var t;return{language:((t=kfe(e[1]))==null?void 0:t.value)||this.options.defaultLanguage}}})]},addNodeView(){return e=>{var t,n;const r=document.createElement("div");r.classList.add("aie-codeblock-wrapper");const{language:i}=e.node.attrs;if(!this.editor.isEditable)return r.innerHTML=`
<div class="aie-codeblock-tools" contenteditable="false">
<div class="aie-codeblock-tools-lang" contenteditable="false" style="margin-right: 10px">${i||this.options.defaultLanguage}</div>
</div>
<pre class="hljs"><code></code></pre>
`,{dom:r,contentDOM:r.querySelector("code")};r.innerHTML=`
<div class="aie-codeblock-tools" contenteditable="false">
${this.options.codeCommentsAi?'<div class="aie-codeblock-tools-comments">'+Pr("codeblock-ai-auto-comment")+"</div>":""}
${this.options.codeExplainAi?'<div class="aie-codeblock-tools-explain">'+Pr("codeblock-ai-code-explain")+"</div>":""}
<div class="aie-codeblock-tools-lang" contenteditable="false"><span>${i||this.options.defaultLanguage}</span><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 16L6 10H18L12 16Z"></path></svg></div>
</div>
<pre class="hljs"><code></code></pre>
`;const o=()=>{const s=document.createElement("div");return s.classList.add("aie-codeblock-langs"),s.innerHTML=`
${this.options.languages.map(l=>`<div class="aie-codeblock-langs-item" data-item="${l.value}">${l.name}</div>`).join("")}`,s.addEventListener("click",l=>{const c=l.target.closest(".aie-codeblock-langs-item");if(c){const u=c.getAttribute("data-item");e.editor.chain().setCodeBlock({language:u}).run()}}),s},a=zo(r.querySelector(".aie-codeblock-tools-lang"),{content:o(),appendTo:e.editor.options.element,placement:"bottom-end",trigger:"click",interactive:!0,arrow:!1,aria:{content:null,expanded:!1}});return(t=r.querySelector(".aie-codeblock-tools-comments"))==null||t.addEventListener("click",s=>{const l=e.editor.view.posAtCoords({left:s.clientX,top:s.clientY}),c=e.editor.state.doc.resolve(l.pos).parent;e.editor.chain().addCodeComments(c,l.pos)}),(n=r.querySelector(".aie-codeblock-tools-explain"))==null||n.addEventListener("click",s=>{const l=e.editor.view.posAtCoords({left:s.clientX,top:s.clientY}),c=e.editor.state.doc.resolve(l.pos).parent;e.editor.chain().addCodeExplain(c,l.pos)}),{dom:r,contentDOM:r.querySelector("code"),destroy:()=>{a.destroy()}}}}});function Dun(e){const t="[A-Za-zА-Яа-яёЁ_][A-Za-zА-Яа-яёЁ_0-9]+",n="далее возврат вызватьисключение выполнить для если и из или иначе иначеесли исключение каждого конецесли конецпопытки конеццикла не новый перейти перем по пока попытка прервать продолжить тогда цикл экспорт ",r="загрузитьизфайла вебклиент вместо внешнеесоединение клиент конецобласти мобильноеприложениеклиент мобильноеприложениесервер наклиенте наклиентенасервере наклиентенасерверебезконтекста насервере насерверебезконтекста область перед после сервер толстыйклиентобычноеприложение толстыйклиентуправляемоеприложение тонкийклиент ",i="разделительстраниц разделительстрок символтабуляции ansitooem oemtoansi ввестивидсубконто ввестиперечисление ввестипериод ввестиплансчетов выбранныйплансчетов датагод датамесяц датачисло заголовоксистемы значениевстроку значениеизстроки каталогиб каталогпользователя кодсимв конгода конецпериодаби конецрассчитанногопериодаби конецстандартногоинтервала конквартала конмесяца коннедели лог лог10 максимальноеколичествосубконто названиеинтерфейса названиенабораправ назначитьвид назначитьсчет найтиссылки началопериодаби началостандартногоинтервала начгода начквартала начмесяца начнедели номерднягода номерднянедели номернеделигода обработкаожидания основнойжурналрасчетов основнойплансчетов основнойязык очиститьокносообщений периодстр получитьвремята получитьдатута получитьдокументта получитьзначенияотбора получитьпозициюта получитьпустоезначение получитьта префиксавтонумерации пропись пустоезначение разм разобратьпозициюдокумента рассчитатьрегистрына рассчитатьрегистрыпо симв создатьобъект статусвозврата стрколичествострок сформироватьпозициюдокумента счетпокоду текущеевремя типзначения типзначениястр установитьтана установитьтапо фиксшаблон шаблон acos asin atan base64значение base64строка cos exp log log10 pow sin sqrt tan xmlзначение xmlстрока xmlтип xmlтипзнч активноеокно безопасныйрежим безопасныйрежимразделенияданных булево ввестидату ввестизначение ввестистроку ввестичисло возможностьчтенияxml вопрос восстановитьзначение врег выгрузитьжурналрегистрации выполнитьобработкуоповещения выполнитьпроверкуправдоступа вычислить год данныеформывзначение дата день деньгода деньнедели добавитьмесяц заблокироватьданныедляредактирования заблокироватьработупользователя завершитьработусистемы загрузитьвнешнююкомпоненту закрытьсправку записатьjson записатьxml записатьдатуjson записьжурналарегистрации заполнитьзначениясвойств запроситьразрешениепользователя запуститьприложение запуститьсистему зафиксироватьтранзакцию значениевданныеформы значениевстрокувнутр значениевфайл значениезаполнено значениеизстрокивнутр значениеизфайла изxmlтипа импортмоделиxdto имякомпьютера имяпользователя инициализироватьпредопределенныеданные информацияобошибке каталогбиблиотекимобильногоустройства каталогвременныхфайлов каталогдокументов каталогпрограммы кодироватьстроку кодлокализацииинформационнойбазы кодсимвола командасистемы конецгода конецдня конецквартала конецмесяца конецминуты конецнедели конецчаса конфигурациябазыданныхизмененадинамически конфигурацияизменена копироватьданныеформы копироватьфайл краткоепредставлениеошибки лев макс местноевремя месяц мин минута монопольныйрежим найти найтинедопустимыесимволыxml найтиокнопонавигационнойссылке найтипомеченныенаудаление найтипоссылкам найтифайлы началогода началодня началоквартала началомесяца началоминуты началонедели началочаса начатьзапросразрешенияпользователя начатьзапускприложения начатькопированиефайла начатьперемещениефайла начатьподключениевнешнейкомпоненты начатьподключениерасширенияработыскриптографией начатьподключениерасширенияработысфайлами начатьпоискфайлов начатьполучениекаталогавременныхфайлов начатьполучениекаталогадокументов начатьполучениерабочегокаталогаданныхпользователя начатьполучениефайлов начатьпомещениефайла начатьпомещениефайлов начатьсозданиедвоичныхданныхизфайла начатьсозданиекаталога начатьтранзакцию начатьудалениефайлов начатьустановкувнешнейкомпоненты начатьустановкурасширенияработыскриптографией начатьустановкурасширенияработысфайлами неделягода необходимостьзавершениясоединения номерсеансаинформационнойбазы номерсоединенияинформационнойбазы нрег нстр обновитьинтерфейс обновитьнумерациюобъектов обновитьповторноиспользуемыезначения обработкапрерыванияпользователя объединитьфайлы окр описаниеошибки оповестить оповеститьобизменении отключитьобработчикзапросанастроекклиенталицензирования отключитьобработчикожидания отключитьобработчикоповещения открытьзначение открытьиндекссправки открытьсодержаниесправки открытьсправку открытьформу открытьформумодально отменитьтранзакцию очиститьжурналрегистрации очиститьнастройкипользователя очиститьсообщения параметрыдоступа перейтипонавигационнойссылке переместитьфайл подключитьвнешнююкомпоненту подключитьобработчикзапросанастроекклиенталицензирования подключитьобработчикожидания подключитьобработчикоповещения подключитьрасширениеработыскриптографией подключитьрасширениеработысфайлами подробноепредставлениеошибки показатьвводдаты показатьвводзначения показатьвводстроки показатьвводчисла показатьвопрос показатьзначение показатьинформациюобошибке показатьнакарте показатьоповещениепользователя показатьпредупреждение полноеимяпользователя получитьcomобъект получитьxmlтип получитьадреспоместоположению получитьблокировкусеансов получитьвремязавершенияспящегосеанса получитьвремязасыпанияпассивногосеанса получитьвремяожиданияблокировкиданных получитьданныевыбора получитьдополнительныйпараметрклиенталицензирования получитьдопустимыекодылокализации получитьдопустимыечасовыепояса получитьзаголовокклиентскогоприложения получитьзаголовоксистемы получитьзначенияотборажурналарегистрации получитьидентификаторконфигурации получитьизвременногохранилища получитьимявременногофайла получитьимяклиенталицензирования получитьинформациюэкрановклиента получитьиспользованиежурналарегистрации получитьиспользованиесобытияжурналарегистрации получитькраткийзаголовокприложения получитьмакетоформления получитьмаскувсефайлы получитьмаскувсефайлыклиента получитьмаскувсефайлысервера получитьместоположениепоадресу получитьминимальнуюдлинупаролейпользователей получитьнавигационнуюссылку получитьнавигационнуюссылкуинформационнойбазы получитьобновлениеконфигурациибазыданных получитьобновлениепредопределенныхданныхинформационнойбазы получитьобщиймакет получитьобщуюформу получитьокна получитьоперативнуюотметкувремени получитьотключениебезопасногорежима получитьпараметрыфункциональныхопцийинтерфейса получитьполноеимяпредопределенногозначения получитьпредставлениянавигационныхссылок получитьпроверкусложностипаролейпользователей получитьразделительпути получитьразделительпутиклиента получитьразделительпутисервера получитьсеансыинформационнойбазы получитьскоростьклиентскогосоединения получитьсоединенияинформационнойбазы получитьсообщенияпользователю получитьсоответствиеобъектаиформы получитьсоставстандартногоинтерфейсаodata получитьструктурухранениябазыданных получитьтекущийсеансинформационнойбазы получитьфайл получитьфайлы получитьформу получитьфункциональнуюопцию получитьфункциональнуюопциюинтерфейса получитьчасовойпоясинформационнойбазы пользователиос поместитьвовременноехранилище поместитьфайл поместитьфайлы прав праводоступа предопределенноезначение представлениекодалокализации представлениепериода представлениеправа представлениеприложения представлениесобытияжурналарегистрации представлениечасовогопояса предупреждение прекратитьработусистемы привилегированныйрежим продолжитьвызов прочитатьjson прочитатьxml прочитатьдатуjson пустаястрока рабочийкаталогданныхпользователя разблокироватьданныедляредактирования разделитьфайл разорватьсоединениесвнешнимисточникомданных раскодироватьстроку рольдоступна секунда сигнал символ скопироватьжурналрегистрации смещениелетнеговремени смещениестандартноговремени соединитьбуферыдвоичныхданных создатькаталог создатьфабрикуxdto сокрл сокрлп сокрп сообщить состояние сохранитьзначение сохранитьнастройкипользователя сред стрдлина стрзаканчиваетсяна стрзаменить стрнайти стрначинаетсяс строка строкасоединенияинформационнойбазы стрполучитьстроку стрразделить стрсоединить стрсравнить стрчисловхождений стрчислострок стршаблон текущаядата текущаядатасеанса текущаяуниверсальнаядата текущаяуниверсальнаядатавмиллисекундах текущийвариантинтерфейсаклиентскогоприложения текущийвариантосновногошрифтаклиентскогоприложения текущийкодлокализации текущийрежимзапуска текущийязык текущийязыксистемы тип типзнч транзакцияактивна трег удалитьданныеинформационнойбазы удалитьизвременногохранилища удалитьобъекты удалитьфайлы универсальноевремя установитьбезопасныйрежим установитьбезопасныйрежимразделенияданных установитьблокировкусеансов установитьвнешнююкомпоненту установитьвремязавершенияспящегосеанса установитьвремязасыпанияпассивногосеанса установитьвремяожиданияблокировкиданных установитьзаголовокклиентскогоприложения установитьзаголовоксистемы установитьиспользованиежурналарегистрации установитьиспользованиесобытияжурналарегистрации установитькраткийзаголовокприложения установитьминимальнуюдлинупаролейпользователей установитьмонопольныйрежим установитьнастройкиклиенталицензирования установитьобновлениепредопределенныхданныхинформационнойбазы установитьотключениебезопасногорежима установитьпараметрыфункциональныхопцийинтерфейса установитьпривилегированныйрежим установитьпроверкусложностипаролейпользователей установитьрасширениеработыскриптографией установитьрасширениеработысфайлами установитьсоединениесвнешнимисточникомданных установитьсоответствиеобъектаиформы установитьсоставстандартногоинтерфейсаodata установитьчасовойпоясинформационнойбазы установитьчасовойпояссеанса формат цел час часовойпояс часовойпояссеанса число числопрописью этоадресвременногохранилища wsссылки библиотекакартинок библиотекамакетовоформлениякомпоновкиданных библиотекастилей бизнеспроцессы внешниеисточникиданных внешниеобработки внешниеотчеты встроенныепокупки главныйинтерфейс главныйстиль документы доставляемыеуведомления журналыдокументов задачи информацияобинтернетсоединении использованиерабочейдаты историяработыпользователя константы критерииотбора метаданные обработки отображениерекламы отправкадоставляемыхуведомлений отчеты панельзадачос параметрзапуска параметрысеанса перечисления планывидоврасчета планывидовхарактеристик планыобмена планысчетов полнотекстовыйпоиск пользователиинформационнойбазы последовательности проверкавстроенныхпокупок рабочаядата расширенияконфигурации регистрыбухгалтерии регистрынакопления регистрырасчета регистрысведений регламентныезадания сериализаторxdto справочники средствагеопозиционирования средствакриптографии средствамультимедиа средстваотображениярекламы средствапочты средствателефонии фабрикаxdto файловыепотоки фоновыезадания хранилищанастроек хранилищевариантовотчетов хранилищенастроекданныхформ хранилищеобщихнастроек хранилищепользовательскихнастроекдинамическихсписков хранилищепользовательскихнастроекотчетов хранилищесистемныхнастроек ",o="webцвета windowsцвета windowsшрифты библиотекакартинок рамкистиля символы цветастиля шрифтыстиля автоматическоесохранениеданныхформывнастройках автонумерациявформе автораздвижениесерий анимациядиаграммы вариантвыравниванияэлементовизаголовков вариантуправлениявысотойтаблицы вертикальнаяпрокруткаформы вертикальноеположение вертикальноеположениеэлемента видгруппыформы виддекорацииформы виддополненияэлементаформы видизмененияданных видкнопкиформы видпереключателя видподписейкдиаграмме видполяформы видфлажка влияниеразмеранапузырекдиаграммы горизонтальноеположение горизонтальноеположениеэлемента группировкаколонок группировкаподчиненныхэлементовформы группыиэлементы действиеперетаскивания дополнительныйрежимотображения допустимыедействияперетаскивания интервалмеждуэлементамиформы использованиевывода использованиеполосыпрокрутки используемоезначениеточкибиржевойдиаграммы историявыборапривводе источникзначенийоситочекдиаграммы источникзначенияразмерапузырькадиаграммы категориягруппыкоманд максимумсерий начальноеотображениедерева начальноеотображениесписка обновлениетекстаредактирования ориентациядендрограммы ориентациядиаграммы ориентацияметокдиаграммы ориентацияметоксводнойдиаграммы ориентацияэлементаформы отображениевдиаграмме отображениевлегендедиаграммы отображениегруппыкнопок отображениезаголовкашкалыдиаграммы отображениезначенийсводнойдиаграммы отображениезначенияизмерительнойдиаграммы отображениеинтерваладиаграммыганта отображениекнопки отображениекнопкивыбора отображениеобсужденийформы отображениеобычнойгруппы отображениеотрицательныхзначенийпузырьковойдиаграммы отображениепанелипоиска отображениеподсказки отображениепредупрежденияприредактировании отображениеразметкиполосырегулирования отображениестраницформы отображениетаблицы отображениетекстазначениядиаграммыганта отображениеуправленияобычнойгруппы отображениефигурыкнопки палитрацветовдиаграммы поведениеобычнойгруппы поддержкамасштабадендрограммы поддержкамасштабадиаграммыганта поддержкамасштабасводнойдиаграммы поисквтаблицепривводе положениезаголовкаэлементаформы положениекартинкикнопкиформы положениекартинкиэлементаграфическойсхемы положениекоманднойпанелиформы положениекоманднойпанелиэлементаформы положениеопорнойточкиотрисовки положениеподписейкдиаграмме положениеподписейшкалызначенийизмерительнойдиаграммы положениесостоянияпросмотра положениестрокипоиска положениетекстасоединительнойлинии положениеуправленияпоиском положениешкалывремени порядокотображенияточекгоризонтальнойгистограммы порядоксерийвлегендедиаграммы размеркартинки расположениезаголовкашкалыдиаграммы растягиваниеповертикалидиаграммыганта режимавтоотображениясостояния режимвводастроктаблицы режимвыборанезаполненного режимвыделениядаты режимвыделениястрокитаблицы режимвыделениятаблицы режимизмененияразмера режимизменениясвязанногозначения режимиспользованиядиалогапечати режимиспользованияпараметракоманды режиммасштабированияпросмотра режимосновногоокнаклиентскогоприложения режимоткрытияокнаформы режимотображениявыделения режимотображениягеографическойсхемы режимотображениязначенийсерии режимотрисовкисеткиграфическойсхемы режимполупрозрачностидиаграммы режимпробеловдиаграммы режимразмещениянастранице режимредактированияколонки режимсглаживаниядиаграммы режимсглаживанияиндикатора режимсписказадач сквозноевыравнивание сохранениеданныхформывнастройках способзаполнениятекстазаголовкашкалыдиаграммы способопределенияограничивающегозначениядиаграммы стандартнаягруппакоманд стандартноеоформление статусоповещенияпользователя стильстрелки типаппроксимациилиниитрендадиаграммы типдиаграммы типединицышкалывремени типимпортасерийслоягеографическойсхемы типлиниигеографическойсхемы типлиниидиаграммы типмаркерагеографическойсхемы типмаркерадиаграммы типобластиоформления типорганизацииисточникаданныхгеографическойсхемы типотображениясериислоягеографическойсхемы типотображенияточечногообъектагеографическойсхемы типотображенияшкалыэлементалегендыгеографическойсхемы типпоискаобъектовгеографическойсхемы типпроекциигеографическойсхемы типразмещенияизмерений типразмещенияреквизитовизмерений типрамкиэлементауправления типсводнойдиаграммы типсвязидиаграммыганта типсоединениязначенийпосериямдиаграммы типсоединенияточекдиаграммы типсоединительнойлинии типстороныэлементаграфическойсхемы типформыотчета типшкалырадарнойдиаграммы факторлиниитрендадиаграммы фигуракнопки фигурыграфическойсхемы фиксациявтаблице форматдняшкалывремени форматкартинки ширинаподчиненныхэлементовформы виддвижениябухгалтерии виддвижениянакопления видпериодарегистрарасчета видсчета видточкимаршрутабизнеспроцесса использованиеагрегатарегистранакопления использованиегруппиэлементов использованиережимапроведения использованиесреза периодичностьагрегатарегистранакопления режимавтовремя режимзаписидокумента режимпроведениядокумента авторегистрацияизменений допустимыйномерсообщения отправкаэлементаданных получениеэлементаданных использованиерасшифровкитабличногодокумента ориентациястраницы положениеитоговколоноксводнойтаблицы положениеитоговстроксводнойтаблицы положениетекстаотносительнокартинки расположениезаголовкагруппировкитабличногодокумента способчтениязначенийтабличногодокумента типдвустороннейпечати типзаполненияобластитабличногодокумента типкурсоровтабличногодокумента типлиниирисункатабличногодокумента типлинииячейкитабличногодокумента типнаправленияпереходатабличногодокумента типотображениявыделениятабличногодокумента типотображениялинийсводнойтаблицы типразмещениятекстатабличногодокумента типрисункатабличногодокумента типсмещениятабличногодокумента типузоратабличногодокумента типфайлатабличногодокумента точностьпечати чередованиерасположениястраниц отображениевремениэлементовпланировщика типфайлаформатированногодокумента обходрезультатазапроса типзаписизапроса видзаполнениярасшифровкипостроителяотчета типдобавленияпредставлений типизмеренияпостроителяотчета типразмещенияитогов доступкфайлу режимдиалогавыборафайла режимоткрытияфайла типизмеренияпостроителязапроса видданныханализа методкластеризации типединицыинтервалавременианализаданных типзаполнениятаблицырезультатаанализаданных типиспользованиячисловыхзначенийанализаданных типисточникаданныхпоискаассоциаций типколонкианализаданныхдереворешений типколонкианализаданныхкластеризация типколонкианализаданныхобщаястатистика типколонкианализаданныхпоискассоциаций типколонкианализаданныхпоискпоследовательностей типколонкимоделипрогноза типмерырасстоянияанализаданных типотсеченияправилассоциации типполяанализаданных типстандартизациианализаданных типупорядочиванияправилассоциациианализаданных типупорядочиванияшаблоновпоследовательностейанализаданных типупрощениядереварешений wsнаправлениепараметра вариантxpathxs вариантзаписидатыjson вариантпростоготипаxs видгруппымоделиxs видфасетаxdto действиепостроителяdom завершенностьпростоготипаxs завершенностьсоставноготипаxs завершенностьсхемыxs запрещенныеподстановкиxs исключениягруппподстановкиxs категорияиспользованияатрибутаxs категорияограниченияидентичностиxs категорияограниченияпространствименxs методнаследованияxs модельсодержимогоxs назначениетипаxml недопустимыеподстановкиxs обработкапробельныхсимволовxs обработкасодержимогоxs ограничениезначенияxs параметрыотбораузловdom переносстрокjson позициявдокументеdom пробельныесимволыxml типатрибутаxml типзначенияjson типканоническогоxml типкомпонентыxs типпроверкиxml типрезультатаdomxpath типузлаdom типузлаxml формаxml формапредставленияxs форматдатыjson экранированиесимволовjson видсравнениякомпоновкиданных действиеобработкирасшифровкикомпоновкиданных направлениесортировкикомпоновкиданных расположениевложенныхэлементоврезультатакомпоновкиданных расположениеитоговкомпоновкиданных расположениегруппировкикомпоновкиданных расположениеполейгруппировкикомпоновкиданных расположениеполякомпоновкиданных расположениереквизитовкомпоновкиданных расположениересурсовкомпоновкиданных типбухгалтерскогоостаткакомпоновкиданных типвыводатекстакомпоновкиданных типгруппировкикомпоновкиданных типгруппыэлементовотборакомпоновкиданных типдополненияпериодакомпоновкиданных типзаголовкаполейкомпоновкиданных типмакетагруппировкикомпоновкиданных типмакетаобластикомпоновкиданных типостаткакомпоновкиданных типпериодакомпоновкиданных типразмещениятекстакомпоновкиданных типсвязинаборовданныхкомпоновкиданных типэлементарезультатакомпоновкиданных расположениелегендыдиаграммыкомпоновкиданных типпримененияотборакомпоновкиданных режимотображенияэлементанастройкикомпоновкиданных режимотображениянастроеккомпоновкиданных состояниеэлементанастройкикомпоновкиданных способвосстановлениянастроеккомпоновкиданных режимкомпоновкирезультата использованиепараметракомпоновкиданных автопозицияресурсовкомпоновкиданных вариантиспользованиягруппировкикомпоновкиданных расположениересурсоввдиаграммекомпоновкиданных фиксациякомпоновкиданных использованиеусловногооформлениякомпоновкиданных важностьинтернетпочтовогосообщения обработкатекстаинтернетпочтовогосообщения способкодированияинтернетпочтовоговложения способкодированиянеasciiсимволовинтернетпочтовогосообщения типтекстапочтовогосообщения протоколинтернетпочты статусразборапочтовогосообщения режимтранзакциизаписижурналарегистрации статустранзакциизаписижурналарегистрации уровеньжурналарегистрации расположениехранилищасертификатовкриптографии режимвключениясертификатовкриптографии режимпроверкисертификатакриптографии типхранилищасертификатовкриптографии кодировкаименфайловвzipфайле методсжатияzip методшифрованияzip режимвосстановленияпутейфайловzip режимобработкиподкаталоговzip режимсохраненияпутейzip уровеньсжатияzip звуковоеоповещение направлениепереходакстроке позициявпотоке порядокбайтов режимблокировкиданных режимуправленияблокировкойданных сервисвстроенныхпокупок состояниефоновогозадания типподписчикадоставляемыхуведомлений уровеньиспользованиязащищенногосоединенияftp направлениепорядкасхемызапроса типдополненияпериодамисхемызапроса типконтрольнойточкисхемызапроса типобъединениясхемызапроса типпараметрадоступнойтаблицысхемызапроса типсоединениясхемызапроса httpметод автоиспользованиеобщегореквизита автопрефиксномеразадачи вариантвстроенногоязыка видиерархии видрегистранакопления видтаблицывнешнегоисточникаданных записьдвиженийприпроведении заполнениепоследовательностей индексирование использованиебазыпланавидоврасчета использованиебыстроговыбора использованиеобщегореквизита использованиеподчинения использованиеполнотекстовогопоиска использованиеразделяемыхданныхобщегореквизита использованиереквизита назначениеиспользованияприложения назначениерасширенияконфигурации направлениепередачи обновлениепредопределенныхданных оперативноепроведение основноепредставлениевидарасчета основноепредставлениевидахарактеристики основноепредставлениезадачи основноепредставлениепланаобмена основноепредставлениесправочника основноепредставлениесчета перемещениеграницыприпроведении периодичностьномерабизнеспроцесса периодичностьномерадокумента периодичностьрегистрарасчета периодичностьрегистрасведений повторноеиспользованиевозвращаемыхзначений полнотекстовыйпоискпривводепостроке принадлежностьобъекта проведение разделениеаутентификацииобщегореквизита разделениеданныхобщегореквизита разделениерасширенийконфигурацииобщегореквизита режимавтонумерацииобъектов режимзаписирегистра режимиспользованиямодальности режимиспользованиясинхронныхвызововрасширенийплатформыивнешнихкомпонент режимповторногоиспользованиясеансов режимполученияданныхвыборапривводепостроке режимсовместимости режимсовместимостиинтерфейса режимуправленияблокировкойданныхпоумолчанию сериикодовпланавидовхарактеристик сериикодовпланасчетов сериикодовсправочника созданиепривводе способвыбора способпоискастрокипривводепостроке способредактирования типданныхтаблицывнешнегоисточникаданных типкодапланавидоврасчета типкодасправочника типмакета типномерабизнеспроцесса типномерадокумента типномеразадачи типформы удалениедвижений важностьпроблемыприменениярасширенияконфигурации вариантинтерфейсаклиентскогоприложения вариантмасштабаформклиентскогоприложения вариантосновногошрифтаклиентскогоприложения вариантстандартногопериода вариантстандартнойдатыначала видграницы видкартинки видотображенияполнотекстовогопоиска видрамки видсравнения видцвета видчисловогозначения видшрифта допустимаядлина допустимыйзнак использованиеbyteordermark использованиеметаданныхполнотекстовогопоиска источникрасширенийконфигурации клавиша кодвозвратадиалога кодировкаxbase кодировкатекста направлениепоиска направлениесортировки обновлениепредопределенныхданных обновлениеприизмененииданных отображениепанелиразделов проверказаполнения режимдиалогавопрос режимзапускаклиентскогоприложения режимокругления режимоткрытияформприложения режимполнотекстовогопоиска скоростьклиентскогосоединения состояниевнешнегоисточникаданных состояниеобновленияконфигурациибазыданных способвыборасертификатаwindows способкодированиястроки статуссообщения типвнешнейкомпоненты типплатформы типповеденияклавишиenter типэлементаинформацииовыполненииобновленияконфигурациибазыданных уровеньизоляциитранзакций хешфункция частидаты",a="comобъект ftpсоединение httpзапрос httpсервисответ httpсоединение wsопределения wsпрокси xbase анализданных аннотацияxs блокировкаданных буфердвоичныхданных включениеxs выражениекомпоновкиданных генераторслучайныхчисел географическаясхема географическиекоординаты графическаясхема группамоделиxs данныерасшифровкикомпоновкиданных двоичныеданные дендрограмма диаграмма диаграммаганта диалогвыборафайла диалогвыборацвета диалогвыборашрифта диалограсписаниярегламентногозадания диалогредактированиястандартногопериода диапазон документdom документhtml документацияxs доставляемоеуведомление записьdom записьfastinfoset записьhtml записьjson записьxml записьzipфайла записьданных записьтекста записьузловdom запрос защищенноесоединениеopenssl значенияполейрасшифровкикомпоновкиданных извлечениетекста импортxs интернетпочта интернетпочтовоесообщение интернетпочтовыйпрофиль интернетпрокси интернетсоединение информациядляприложенияxs использованиеатрибутаxs использованиесобытияжурналарегистрации источникдоступныхнастроеккомпоновкиданных итераторузловdom картинка квалификаторыдаты квалификаторыдвоичныхданных квалификаторыстроки квалификаторычисла компоновщикмакетакомпоновкиданных компоновщикнастроеккомпоновкиданных конструктормакетаоформлениякомпоновкиданных конструкторнастроеккомпоновкиданных конструкторформатнойстроки линия макеткомпоновкиданных макетобластикомпоновкиданных макетоформлениякомпоновкиданных маскаxs менеджеркриптографии наборсхемxml настройкикомпоновкиданных настройкисериализацииjson обработкакартинок обработкарасшифровкикомпоновкиданных обходдереваdom объявлениеатрибутаxs объявлениенотацииxs объявлениеэлементаxs описаниеиспользованиясобытиядоступжурналарегистрации описаниеиспользованиясобытияотказвдоступежурналарегистрации описаниеобработкирасшифровкикомпоновкиданных описаниепередаваемогофайла описаниетипов определениегруппыатрибутовxs определениегруппымоделиxs определениеограниченияидентичностиxs определениепростоготипаxs определениесоставноготипаxs определениетипадокументаdom определенияxpathxs отборкомпоновкиданных пакетотображаемыхдокументов параметрвыбора параметркомпоновкиданных параметрызаписиjson параметрызаписиxml параметрычтенияxml переопределениеxs планировщик полеанализаданных полекомпоновкиданных построительdom построительзапроса построительотчета построительотчетаанализаданных построительсхемxml поток потоквпамяти почта почтовоесообщение преобразованиеxsl преобразованиекканоническомуxml процессорвыводарезультатакомпоновкиданныхвколлекциюзначений процессорвыводарезультатакомпоновкиданныхвтабличныйдокумент процессоркомпоновкиданных разыменовательпространствименdom рамка расписаниерегламентногозадания расширенноеимяxml результатчтенияданных своднаядиаграмма связьпараметравыбора связьпотипу связьпотипукомпоновкиданных сериализаторxdto сертификатклиентаwindows сертификатклиентафайл сертификаткриптографии сертификатыудостоверяющихцентровwindows сертификатыудостоверяющихцентровфайл сжатиеданных системнаяинформация сообщениепользователю сочетаниеклавиш сравнениезначений стандартнаядатаначала стандартныйпериод схемаxml схемакомпоновкиданных табличныйдокумент текстовыйдокумент тестируемоеприложение типданныхxml уникальныйидентификатор фабрикаxdto файл файловыйпоток фасетдлиныxs фасетколичестваразрядовдробнойчастиxs фасетмаксимальноговключающегозначенияxs фасетмаксимальногоисключающегозначенияxs фасетмаксимальнойдлиныxs фасетминимальноговключающегозначенияxs фасетминимальногоисключающегозначенияxs фасетминимальнойдлиныxs фасетобразцаxs фасетобщегоколичестваразрядовxs фасетперечисленияxs фасетпробельныхсимволовxs фильтрузловdom форматированнаястрока форматированныйдокумент фрагментxs хешированиеданных хранилищезначения цвет чтениеfastinfoset чтениеhtml чтениеjson чтениеxml чтениеzipфайла чтениеданных чтениетекста чтениеузловdom шрифт элементрезультатакомпоновкиданных comsafearray деревозначений массив соответствие списокзначений структура таблицазначений фиксированнаяструктура фиксированноесоответствие фиксированныймассив ",s="null истина ложь неопределено",l=e.inherit(e.NUMBER_MODE),c={className:"string",begin:'"|\\|',end:'"|$',contains:[{begin:'""'}]},u={begin:"'",end:"'",excludeBegin:!0,excludeEnd:!0,contains:[{className:"number",begin:"\\d{4}([\\.\\\\/:-]?\\d{2}){0,5}"}]},d=e.inherit(e.C_LINE_COMMENT_MODE),f={className:"meta",begin:"#|&",end:"$",keywords:{$pattern:t,keyword:n+r},contains:[d]},h={className:"symbol",begin:"~",end:";|:",excludeEnd:!0},m={className:"function",variants:[{begin:"процедура|функция",end:"\\)",keywords:"процедура функция"},{begin:"конецпроцедуры|конецфункции",keywords:"конецпроцедуры конецфункции"}],contains:[{begin:"\\(",end:"\\)",endsParent:!0,contains:[{className:"params",begin:t,end:",",excludeEnd:!0,endsWithParent:!0,keywords:{$pattern:t,keyword:"знач",literal:s},contains:[l,c,u]},d]},e.inherit(e.TITLE_MODE,{begin:t})]};return{name:"1C:Enterprise",case_insensitive:!0,keywords:{$pattern:t,keyword:n,built_in:i,class:o,type:a,literal:s},contains:[f,m,d,h,l,c,u]}}function Lun(e){const t=e.regex,n=/^[a-zA-Z][a-zA-Z0-9-]*/,r=["ALPHA","BIT","CHAR","CR","CRLF","CTL","DIGIT","DQUOTE","HEXDIG","HTAB","LF","LWSP","OCTET","SP","VCHAR","WSP"],i=e.COMMENT(/;/,/$/),o={scope:"symbol",match:/%b[0-1]+(-[0-1]+|(\.[0-1]+)+)?/},a={scope:"symbol",match:/%d[0-9]+(-[0-9]+|(\.[0-9]+)+)?/},s={scope:"symbol",match:/%x[0-9A-F]+(-[0-9A-F]+|(\.[0-9A-F]+)+)?/},l={scope:"symbol",match:/%[si](?=".*")/},c={scope:"attribute",match:t.concat(n,/(?=\s*=)/)};return{name:"Augmented Backus-Naur Form",illegal:/[!@#$^&',?+~`|:]/,keywords:r,contains:[{scope:"operator",match:/=\/?/},c,i,o,a,s,l,e.QUOTE_STRING_MODE,e.NUMBER_MODE]}}function $un(e){const t=e.regex,n=["GET","POST","HEAD","PUT","DELETE","CONNECT","OPTIONS","PATCH","TRACE"];return{name:"Apache Access Log",contains:[{className:"number",begin:/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}(:\d{1,5})?\b/,relevance:5},{className:"number",begin:/\b\d+\b/,relevance:0},{className:"string",begin:t.concat(/"/,t.either(...n)),end:/"/,keywords:n,illegal:/\n/,relevance:5,contains:[{begin:/HTTP\/[12]\.\d'/,relevance:5}]},{className:"string",begin:/\[\d[^\]\n]{8,}\]/,illegal:/\n/,relevance:1},{className:"string",begin:/\[/,end:/\]/,illegal:/\n/,relevance:0},{className:"string",begin:/"Mozilla\/\d\.\d \(/,end:/"/,illegal:/\n/,relevance:3},{className:"string",begin:/"/,end:/"/,illegal:/\n/,relevance:0}]}}function Fun(e){const t=e.regex,n=/[a-zA-Z_$][a-zA-Z0-9_$]*/,r=t.concat(n,t.concat("(\\.",n,")*")),i=/([*]|[a-zA-Z_$][a-zA-Z0-9_$]*)/,o={className:"rest_arg",begin:/[.]{3}/,end:n,relevance:10};return{name:"ActionScript",aliases:["as"],keywords:{keyword:["as","break","case","catch","class","const","continue","default","delete","do","dynamic","each","else","extends","final","finally","for","function","get","if","implements","import","in","include","instanceof","interface","internal","is","namespace","native","new","override","package","private","protected","public","return","set","static","super","switch","this","throw","try","typeof","use","var","void","while","with"],literal:["true","false","null","undefined"]},contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.C_NUMBER_MODE,{match:[/\bpackage/,/\s+/,r],className:{1:"keyword",3:"title.class"}},{match:[/\b(?:class|interface|extends|implements)/,/\s+/,n],className:{1:"keyword",3:"title.class"}},{className:"meta",beginKeywords:"import include",end:/;/,keywords:{keyword:"import include"}},{beginKeywords:"function",end:/[{;]/,excludeEnd:!0,illegal:/\S/,contains:[e.inherit(e.TITLE_MODE,{className:"title.function"}),{className:"params",begin:/\(/,end:/\)/,contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,o]},{begin:t.concat(/:\s*/,i)}]},e.METHOD_GUARD],illegal:/#/}}function Bun(e){const t="\\d(_|\\d)*",n="[eE][-+]?"+t,r=t+"(\\."+t+")?("+n+")?",i="\\w+",o="\\b("+(t+"#"+i+"(\\."+i+")?#("+n+")?")+"|"+r+")",a="[A-Za-z](_?[A-Za-z0-9.])*",s=`[]\\{\\}%#'"`,l=e.COMMENT("--","$"),c={begin:"\\s+:\\s+",end:"\\s*(:=|;|\\)|=>|$)",illegal:s,contains:[{beginKeywords:"loop for declare others",endsParent:!0},{className:"keyword",beginKeywords:"not null constant access function procedure in out aliased exception"},{className:"type",begin:a,endsParent:!0,relevance:0}]};return{name:"Ada",case_insensitive:!0,keywords:{keyword:["abort","else","new","return","abs","elsif","not","reverse","abstract","end","accept","entry","select","access","exception","of","separate","aliased","exit","or","some","all","others","subtype","and","for","out","synchronized","array","function","overriding","at","tagged","generic","package","task","begin","goto","pragma","terminate","body","private","then","if","procedure","type","case","in","protected","constant","interface","is","raise","use","declare","range","delay","limited","record","when","delta","loop","rem","while","digits","renames","with","do","mod","requeue","xor"],literal:["True","False"]},contains:[l,{className:"string",begin:/"/,end:/"/,contains:[{begin:/""/,relevance:0}]},{className:"string",begin:/'.'/},{className:"number",begin:o,relevance:0},{className:"symbol",begin:"'"+a},{className:"title",begin:"(\\bwith\\s+)?(\\bprivate\\s+)?\\bpackage\\s+(\\bbody\\s+)?",end:"(is|$)",keywords:"package body",excludeBegin:!0,excludeEnd:!0,illegal:s},{begin:"(\\b(with|overriding)\\s+)?\\b(function|procedure)\\s+",end:"(\\bis|\\bwith|\\brenames|\\)\\s*;)",keywords:"overriding function procedure with is renames return",returnBegin:!0,contains:[l,{className:"title",begin:"(\\bwith\\s+)?\\b(function|procedure)\\s+",end:"(\\(|\\s+|$)",excludeBegin:!0,excludeEnd:!0,illegal:s},c,{className:"type",begin:"\\breturn\\s+",end:"(\\s+|;|$)",keywords:"return",excludeBegin:!0,excludeEnd:!0,endsParent:!0,illegal:s}]},{className:"type",begin:"\\b(sub)?type\\s+",end:"\\s+",keywords:"type",excludeBegin:!0,illegal:s},c]}}function jun(e){const t={className:"built_in",begin:"\\b(void|bool|int8|int16|int32|int64|int|uint8|uint16|uint32|uint64|uint|string|ref|array|double|float|auto|dictionary)"},n={className:"symbol",begin:"[a-zA-Z0-9_]+@"},r={className:"keyword",begin:"<",end:">",contains:[t,n]};return t.contains=[r],n.contains=[r],{name:"AngelScript",aliases:["asc"],keywords:["for","in|0","break","continue","while","do|0","return","if","else","case","switch","namespace","is","cast","or","and","xor","not","get|0","in","inout|10","out","override","set|0","private","public","const","default|0","final","shared","external","mixin|10","enum","typedef","funcdef","this","super","import","from","interface","abstract|0","try","catch","protected","explicit","property"],illegal:"(^using\\s+[A-Za-z0-9_\\.]+;$|\\bfunction\\s*[^\\(])",contains:[{className:"string",begin:"'",end:"'",illegal:"\\n",contains:[e.BACKSLASH_ESCAPE],relevance:0},{className:"string",begin:'"""',end:'"""'},{className:"string",begin:'"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE],relevance:0},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"string",begin:"^\\s*\\[",end:"\\]"},{beginKeywords:"interface namespace",end:/\{/,illegal:"[;.\\-]",contains:[{className:"symbol",begin:"[a-zA-Z0-9_]+"}]},{beginKeywords:"class",end:/\{/,illegal:"[;.\\-]",contains:[{className:"symbol",begin:"[a-zA-Z0-9_]+",contains:[{begin:"[:,]\\s*",contains:[{className:"symbol",begin:"[a-zA-Z0-9_]+"}]}]}]},t,n,{className:"literal",begin:"\\b(null|true|false)"},{className:"number",relevance:0,begin:"(-?)(\\b0[xXbBoOdD][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?f?|\\.\\d+f?)([eE][-+]?\\d+f?)?)"}]}}function Hun(e){const t={className:"number",begin:/[$%]\d+/},n={className:"number",begin:/\b\d+/},r={className:"number",begin:/\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}(:\d{1,5})?/},i={className:"number",begin:/:\d{1,5}/};return{name:"Apache config",aliases:["apacheconf"],case_insensitive:!0,contains:[e.HASH_COMMENT_MODE,{className:"section",begin:/<\/?/,end:/>/,contains:[r,i,e.inherit(e.QUOTE_STRING_MODE,{relevance:0})]},{className:"attribute",begin:/\w+/,relevance:0,keywords:{_:["order","deny","allow","setenv","rewriterule","rewriteengine","rewritecond","documentroot","sethandler","errordocument","loadmodule","options","header","listen","serverroot","servername"]},starts:{end:/$/,relevance:0,keywords:{literal:"on off all deny allow"},contains:[{className:"meta",begin:/\s\[/,end:/\]$/},{className:"variable",begin:/[\$%]\{/,end:/\}/,contains:["self",t]},r,n,e.QUOTE_STRING_MODE]}}],illegal:/\S/}}function Uun(e){const t=e.regex,n=e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),r={className:"params",begin:/\(/,end:/\)/,contains:["self",e.C_NUMBER_MODE,n]},i=e.COMMENT(/--/,/$/),o=e.COMMENT(/\(\*/,/\*\)/,{contains:["self",i]}),a=[i,o,e.HASH_COMMENT_MODE],s=[/apart from/,/aside from/,/instead of/,/out of/,/greater than/,/isn't|(doesn't|does not) (equal|come before|come after|contain)/,/(greater|less) than( or equal)?/,/(starts?|ends|begins?) with/,/contained by/,/comes (before|after)/,/a (ref|reference)/,/POSIX (file|path)/,/(date|time) string/,/quoted form/],l=[/clipboard info/,/the clipboard/,/info for/,/list (disks|folder)/,/mount volume/,/path to/,/(close|open for) access/,/(get|set) eof/,/current date/,/do shell script/,/get volume settings/,/random number/,/set volume/,/system attribute/,/system info/,/time to GMT/,/(load|run|store) script/,/scripting components/,/ASCII (character|number)/,/localized string/,/choose (application|color|file|file name|folder|from list|remote application|URL)/,/display (alert|dialog)/];return{name:"AppleScript",aliases:["osascript"],keywords:{keyword:"about above after against and around as at back before beginning behind below beneath beside between but by considering contain contains continue copy div does eighth else end equal equals error every exit fifth first for fourth from front get given global if ignoring in into is it its last local me middle mod my ninth not of on onto or over prop property put ref reference repeat returning script second set seventh since sixth some tell tenth that the|0 then third through thru timeout times to transaction try until where while whose with without",literal:"AppleScript false linefeed return pi quote result space tab true",built_in:"alias application boolean class constant date file integer list number real record string text activate beep count delay launch log offset read round run say summarize write character characters contents day frontmost id item length month name|0 paragraph paragraphs rest reverse running time version weekday word words year"},contains:[n,e.C_NUMBER_MODE,{className:"built_in",begin:t.concat(/\b/,t.either(...l),/\b/)},{className:"built_in",begin:/^\s*return\b/},{className:"literal",begin:/\b(text item delimiters|current application|missing value)\b/},{className:"keyword",begin:t.concat(/\b/,t.either(...s),/\b/)},{beginKeywords:"on",illegal:/[${=;\n]/,contains:[e.UNDERSCORE_TITLE_MODE,r]},...a],illegal:/\/\/|->|=>|\[\[/}}function zun(e){const t="[A-Za-z_][0-9A-Za-z_]*",n={keyword:["if","for","while","var","new","function","do","return","void","else","break"],literal:["BackSlash","DoubleQuote","false","ForwardSlash","Infinity","NaN","NewLine","null","PI","SingleQuote","Tab","TextFormatting","true","undefined"],built_in:["Abs","Acos","All","Angle","Any","Area","AreaGeodetic","Array","Asin","Atan","Atan2","Attachments","Average","Back","Bearing","Boolean","Buffer","BufferGeodetic","Ceil","Centroid","Clip","Concatenate","Console","Constrain","Contains","ConvertDirection","Cos","Count","Crosses","Cut","Date","DateAdd","DateDiff","Day","Decode","DefaultValue","Densify","DensifyGeodetic","Dictionary","Difference","Disjoint","Distance","DistanceGeodetic","Distinct","Domain","DomainCode","DomainName","EnvelopeIntersects","Equals","Erase","Exp","Expects","Extent","Feature","FeatureSet","FeatureSetByAssociation","FeatureSetById","FeatureSetByName","FeatureSetByPortalItem","FeatureSetByRelationshipName","Filter","Find","First","Floor","FromCharCode","FromCodePoint","FromJSON","GdbVersion","Generalize","Geometry","GetFeatureSet","GetUser","GroupBy","Guid","Hash","HasKey","Hour","IIf","Includes","IndexOf","Insert","Intersection","Intersects","IsEmpty","IsNan","ISOMonth","ISOWeek","ISOWeekday","ISOYear","IsSelfIntersecting","IsSimple","Left|0","Length","Length3D","LengthGeodetic","Log","Lower","Map","Max","Mean","Mid","Millisecond","Min","Minute","Month","MultiPartToSinglePart","Multipoint","NextSequenceValue","None","Now","Number","Offset|0","OrderBy","Overlaps","Point","Polygon","Polyline","Pop","Portal","Pow","Proper","Push","Random","Reduce","Relate","Replace","Resize","Reverse","Right|0","RingIsClockwise","Rotate","Round","Schema","Second","SetGeometry","Simplify","Sin","Slice","Sort","Splice","Split","Sqrt","Stdev","SubtypeCode","SubtypeName","Subtypes","Sum","SymmetricDifference","Tan","Text","Timestamp","ToCharCode","ToCodePoint","Today","ToHex","ToLocal","Top|0","Touches","ToUTC","TrackAccelerationAt","TrackAccelerationWindow","TrackCurrentAcceleration","TrackCurrentDistance","TrackCurrentSpeed","TrackCurrentTime","TrackDistanceAt","TrackDistanceWindow","TrackDuration","TrackFieldWindow","TrackGeometryWindow","TrackIndex","TrackSpeedAt","TrackSpeedWindow","TrackStartTime","TrackWindow","Trim","TypeOf","Union","Upper","UrlEncode","Variance","Week","Weekday","When","Within","Year"]},r={className:"symbol",begin:"\\$[datastore|feature|layer|map|measure|sourcefeature|sourcelayer|targetfeature|targetlayer|value|view]+"},i={className:"number",variants:[{begin:"\\b(0[bB][01]+)"},{begin:"\\b(0[oO][0-7]+)"},{begin:e.C_NUMBER_RE}],relevance:0},o={className:"subst",begin:"\\$\\{",end:"\\}",keywords:n,contains:[]},a={className:"string",begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE,o]};o.contains=[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,a,i,e.REGEXP_MODE];const s=o.contains.concat([e.C_BLOCK_COMMENT_MODE,e.C_LINE_COMMENT_MODE]);return{name:"ArcGIS Arcade",case_insensitive:!0,keywords:n,contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,a,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,r,i,{begin:/[{,]\s*/,relevance:0,contains:[{begin:t+"\\s*:",returnBegin:!0,relevance:0,contains:[{className:"attr",begin:t,relevance:0}]}]},{begin:"("+e.RE_STARTERS_RE+"|\\b(return)\\b)\\s*",keywords:"return",contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.REGEXP_MODE,{className:"function",begin:"(\\(.*?\\)|"+t+")\\s*=>",returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:t},{begin:/\(\s*\)/},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:n,contains:s}]}]}],relevance:0},{beginKeywords:"function",end:/\{/,excludeEnd:!0,contains:[e.inherit(e.TITLE_MODE,{className:"title.function",begin:t}),{className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,contains:s}],illegal:/\[|%/},{begin:/\$[(.]/}],illegal:/#(?!!)/}}function Vun(e){const t={variants:[e.COMMENT("^[ \\t]*(?=#)","$",{relevance:0,excludeBegin:!0}),e.COMMENT("[;@]","$",{relevance:0}),e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]};return{name:"ARM Assembly",case_insensitive:!0,aliases:["arm"],keywords:{$pattern:"\\.?"+e.IDENT_RE,meta:".2byte .4byte .align .ascii .asciz .balign .byte .code .data .else .end .endif .endm .endr .equ .err .exitm .extern .global .hword .if .ifdef .ifndef .include .irp .long .macro .rept .req .section .set .skip .space .text .word .arm .thumb .code16 .code32 .force_thumb .thumb_func .ltorg ALIAS ALIGN ARM AREA ASSERT ATTR CN CODE CODE16 CODE32 COMMON CP DATA DCB DCD DCDU DCDO DCFD DCFDU DCI DCQ DCQU DCW DCWU DN ELIF ELSE END ENDFUNC ENDIF ENDP ENTRY EQU EXPORT EXPORTAS EXTERN FIELD FILL FUNCTION GBLA GBLL GBLS GET GLOBAL IF IMPORT INCBIN INCLUDE INFO KEEP LCLA LCLL LCLS LTORG MACRO MAP MEND MEXIT NOFP OPT PRESERVE8 PROC QN READONLY RELOC REQUIRE REQUIRE8 RLIST FN ROUT SETA SETL SETS SN SPACE SUBT THUMB THUMBX TTL WHILE WEND ",built_in:"r0 r1 r2 r3 r4 r5 r6 r7 r8 r9 r10 r11 r12 r13 r14 r15 w0 w1 w2 w3 w4 w5 w6 w7 w8 w9 w10 w11 w12 w13 w14 w15 w16 w17 w18 w19 w20 w21 w22 w23 w24 w25 w26 w27 w28 w29 w30 x0 x1 x2 x3 x4 x5 x6 x7 x8 x9 x10 x11 x12 x13 x14 x15 x16 x17 x18 x19 x20 x21 x22 x23 x24 x25 x26 x27 x28 x29 x30 pc lr sp ip sl sb fp a1 a2 a3 a4 v1 v2 v3 v4 v5 v6 v7 v8 f0 f1 f2 f3 f4 f5 f6 f7 p0 p1 p2 p3 p4 p5 p6 p7 p8 p9 p10 p11 p12 p13 p14 p15 c0 c1 c2 c3 c4 c5 c6 c7 c8 c9 c10 c11 c12 c13 c14 c15 q0 q1 q2 q3 q4 q5 q6 q7 q8 q9 q10 q11 q12 q13 q14 q15 cpsr_c cpsr_x cpsr_s cpsr_f cpsr_cx cpsr_cxs cpsr_xs cpsr_xsf cpsr_sf cpsr_cxsf spsr_c spsr_x spsr_s spsr_f spsr_cx spsr_cxs spsr_xs spsr_xsf spsr_sf spsr_cxsf s0 s1 s2 s3 s4 s5 s6 s7 s8 s9 s10 s11 s12 s13 s14 s15 s16 s17 s18 s19 s20 s21 s22 s23 s24 s25 s26 s27 s28 s29 s30 s31 d0 d1 d2 d3 d4 d5 d6 d7 d8 d9 d10 d11 d12 d13 d14 d15 d16 d17 d18 d19 d20 d21 d22 d23 d24 d25 d26 d27 d28 d29 d30 d31 {PC} {VAR} {TRUE} {FALSE} {OPT} {CONFIG} {ENDIAN} {CODESIZE} {CPU} {FPU} {ARCHITECTURE} {PCSTOREOFFSET} {ARMASM_VERSION} {INTER} {ROPI} {RWPI} {SWST} {NOSWST} . @"},contains:[{className:"keyword",begin:"\\b(adc|(qd?|sh?|u[qh]?)?add(8|16)?|usada?8|(q|sh?|u[qh]?)?(as|sa)x|and|adrl?|sbc|rs[bc]|asr|b[lx]?|blx|bxj|cbn?z|tb[bh]|bic|bfc|bfi|[su]bfx|bkpt|cdp2?|clz|clrex|cmp|cmn|cpsi[ed]|cps|setend|dbg|dmb|dsb|eor|isb|it[te]{0,3}|lsl|lsr|ror|rrx|ldm(([id][ab])|f[ds])?|ldr((s|ex)?[bhd])?|movt?|mvn|mra|mar|mul|[us]mull|smul[bwt][bt]|smu[as]d|smmul|smmla|mla|umlaal|smlal?([wbt][bt]|d)|mls|smlsl?[ds]|smc|svc|sev|mia([bt]{2}|ph)?|mrr?c2?|mcrr2?|mrs|msr|orr|orn|pkh(tb|bt)|rbit|rev(16|sh)?|sel|[su]sat(16)?|nop|pop|push|rfe([id][ab])?|stm([id][ab])?|str(ex)?[bhd]?|(qd?)?sub|(sh?|q|u[qh]?)?sub(8|16)|[su]xt(a?h|a?b(16)?)|srs([id][ab])?|swpb?|swi|smi|tst|teq|wfe|wfi|yield)(eq|ne|cs|cc|mi|pl|vs|vc|hi|ls|ge|lt|gt|le|al|hs|lo)?[sptrx]?(?=\\s)"},t,e.QUOTE_STRING_MODE,{className:"string",begin:"'",end:"[^\\\\]'",relevance:0},{className:"title",begin:"\\|",end:"\\|",illegal:"\\n",relevance:0},{className:"number",variants:[{begin:"[#$=]?0x[0-9a-f]+"},{begin:"[#$=]?0b[01]+"},{begin:"[#$=]\\d+"},{begin:"\\b\\d+"}],relevance:0},{className:"symbol",variants:[{begin:"^[ \\t]*[a-z_\\.\\$][a-z0-9_\\.\\$]+:"},{begin:"^[a-z_\\.\\$][a-z0-9_\\.\\$]+"},{begin:"[=#]\\w+"}],relevance:0}]}}function Gun(e){const t=e.regex,n={begin:"^'{3,}[ \\t]*$",relevance:10},r=[{begin:/\\[*_`]/},{begin:/\\\\\*{2}[^\n]*?\*{2}/},{begin:/\\\\_{2}[^\n]*_{2}/},{begin:/\\\\`{2}[^\n]*`{2}/},{begin:/[:;}][*_`](?![*_`])/}],i=[{className:"strong",begin:/\*{2}([^\n]+?)\*{2}/},{className:"strong",begin:t.concat(/\*\*/,/((\*(?!\*)|\\[^\n]|[^*\n\\])+\n)+/,/(\*(?!\*)|\\[^\n]|[^*\n\\])*/,/\*\*/),relevance:0},{className:"strong",begin:/\B\*(\S|\S[^\n]*?\S)\*(?!\w)/},{className:"strong",begin:/\*[^\s]([^\n]+\n)+([^\n]+)\*/}],o=[{className:"emphasis",begin:/_{2}([^\n]+?)_{2}/},{className:"emphasis",begin:t.concat(/__/,/((_(?!_)|\\[^\n]|[^_\n\\])+\n)+/,/(_(?!_)|\\[^\n]|[^_\n\\])*/,/__/),relevance:0},{className:"emphasis",begin:/\b_(\S|\S[^\n]*?\S)_(?!\w)/},{className:"emphasis",begin:/_[^\s]([^\n]+\n)+([^\n]+)_/},{className:"emphasis",begin:"\\B'(?!['\\s])",end:"(\\n{2}|')",contains:[{begin:"\\\\'\\w",relevance:0}],relevance:0}],a={className:"symbol",begin:"^(NOTE|TIP|IMPORTANT|WARNING|CAUTION):\\s+",relevance:10},s={className:"bullet",begin:"^(\\*+|-+|\\.+|[^\\n]+?::)\\s+"};return{name:"AsciiDoc",aliases:["adoc"],contains:[e.COMMENT("^/{4,}\\n","\\n/{4,}$",{relevance:10}),e.COMMENT("^//","$",{relevance:0}),{className:"title",begin:"^\\.\\w.*$"},{begin:"^[=\\*]{4,}\\n",end:"\\n^[=\\*]{4,}$",relevance:10},{className:"section",relevance:10,variants:[{begin:"^(={1,6})[ ].+?([ ]\\1)?$"},{begin:"^[^\\[\\]\\n]+?\\n[=\\-~\\^\\+]{2,}$"}]},{className:"meta",begin:"^:.+?:",end:"\\s",excludeEnd:!0,relevance:10},{className:"meta",begin:"^\\[.+?\\]$",relevance:0},{className:"quote",begin:"^_{4,}\\n",end:"\\n_{4,}$",relevance:10},{className:"code",begin:"^[\\-\\.]{4,}\\n",end:"\\n[\\-\\.]{4,}$",relevance:10},{begin:"^\\+{4,}\\n",end:"\\n\\+{4,}$",contains:[{begin:"<",end:">",subLanguage:"xml",relevance:0}],relevance:10},s,a,...r,...i,...o,{className:"string",variants:[{begin:"``.+?''"},{begin:"`.+?'"}]},{className:"code",begin:/`{2}/,end:/(\n{2}|`{2})/},{className:"code",begin:"(`.+?`|\\+.+?\\+)",relevance:0},{className:"code",begin:"^[ \\t]",end:"$",relevance:0},n,{begin:"(link:)?(http|https|ftp|file|irc|image:?):\\S+?\\[[^[]*?\\]",returnBegin:!0,contains:[{begin:"(link|image:?):",relevance:0},{className:"link",begin:"\\w",end:"[^\\[]+",relevance:0},{className:"string",begin:"\\[",end:"\\]",excludeBegin:!0,excludeEnd:!0,relevance:0}],relevance:10}]}}function Wun(e){const t=e.regex,n=["false","synchronized","int","abstract","float","private","char","boolean","static","null","if","const","for","true","while","long","throw","strictfp","finally","protected","import","native","final","return","void","enum","else","extends","implements","break","transient","new","catch","instanceof","byte","super","volatile","case","assert","short","package","default","double","public","try","this","switch","continue","throws","privileged","aspectOf","adviceexecution","proceed","cflowbelow","cflow","initialization","preinitialization","staticinitialization","withincode","target","within","execution","getWithinTypeName","handler","thisJoinPoint","thisJoinPointStaticPart","thisEnclosingJoinPointStaticPart","declare","parents","warning","error","soft","precedence","thisAspectInstance"],r=["get","set","args","call"];return{name:"AspectJ",keywords:n,illegal:/<\/|#/,contains:[e.COMMENT(/\/\*\*/,/\*\//,{relevance:0,contains:[{begin:/\w+@/,relevance:0},{className:"doctag",begin:/@[A-Za-z]+/}]}),e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{className:"class",beginKeywords:"aspect",end:/[{;=]/,excludeEnd:!0,illegal:/[:;"\[\]]/,contains:[{beginKeywords:"extends implements pertypewithin perthis pertarget percflowbelow percflow issingleton"},e.UNDERSCORE_TITLE_MODE,{begin:/\([^\)]*/,end:/[)]+/,keywords:n.concat(r),excludeEnd:!1}]},{className:"class",beginKeywords:"class interface",end:/[{;=]/,excludeEnd:!0,relevance:0,keywords:"class interface",illegal:/[:"\[\]]/,contains:[{beginKeywords:"extends implements"},e.UNDERSCORE_TITLE_MODE]},{beginKeywords:"pointcut after before around throwing returning",end:/[)]/,excludeEnd:!1,illegal:/["\[\]]/,contains:[{begin:t.concat(e.UNDERSCORE_IDENT_RE,/\s*\(/),returnBegin:!0,contains:[e.UNDERSCORE_TITLE_MODE]}]},{begin:/[:]/,returnBegin:!0,end:/[{;]/,relevance:0,excludeEnd:!1,keywords:n,illegal:/["\[\]]/,contains:[{begin:t.concat(e.UNDERSCORE_IDENT_RE,/\s*\(/),keywords:n.concat(r),relevance:0},e.QUOTE_STRING_MODE]},{beginKeywords:"new throw",relevance:0},{className:"function",begin:/\w+ +\w+(\.\w+)?\s*\([^\)]*\)\s*((throws)[\w\s,]+)?[\{;]/,returnBegin:!0,end:/[{;=]/,keywords:n,excludeEnd:!0,contains:[{begin:t.concat(e.UNDERSCORE_IDENT_RE,/\s*\(/),returnBegin:!0,relevance:0,contains:[e.UNDERSCORE_TITLE_MODE]},{className:"params",begin:/\(/,end:/\)/,relevance:0,keywords:n,contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.C_NUMBER_MODE,e.C_BLOCK_COMMENT_MODE]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},e.C_NUMBER_MODE,{className:"meta",begin:/@[A-Za-z]+/}]}}function qun(e){const t={begin:"`[\\s\\S]"};return{name:"AutoHotkey",case_insensitive:!0,aliases:["ahk"],keywords:{keyword:"Break Continue Critical Exit ExitApp Gosub Goto New OnExit Pause return SetBatchLines SetTimer Suspend Thread Throw Until ahk_id ahk_class ahk_pid ahk_exe ahk_group",literal:"true false NOT AND OR",built_in:"ComSpec Clipboard ClipboardAll ErrorLevel"},contains:[t,e.inherit(e.QUOTE_STRING_MODE,{contains:[t]}),e.COMMENT(";","$",{relevance:0}),e.C_BLOCK_COMMENT_MODE,{className:"number",begin:e.NUMBER_RE,relevance:0},{className:"variable",begin:"%[a-zA-Z0-9#_$@]+%"},{className:"built_in",begin:"^\\s*\\w+\\s*(,|%)"},{className:"title",variants:[{begin:'^[^\\n";]+::(?!=)'},{begin:'^[^\\n";]+:(?!=)',relevance:0}]},{className:"meta",begin:"^\\s*#\\w+",end:"$",relevance:0},{className:"built_in",begin:"A_[a-zA-Z0-9]+"},{begin:",\\s*,"}]}}function Yun(e){const t="ByRef Case Const ContinueCase ContinueLoop Dim Do Else ElseIf EndFunc EndIf EndSelect EndSwitch EndWith Enum Exit ExitLoop For Func Global If In Local Next ReDim Return Select Static Step Switch Then To Until Volatile WEnd While With",n=["EndRegion","forcedef","forceref","ignorefunc","include","include-once","NoTrayIcon","OnAutoItStartRegister","pragma","Region","RequireAdmin","Tidy_Off","Tidy_On","Tidy_Parameters"],r="True False And Null Not Or Default",i="Abs ACos AdlibRegister AdlibUnRegister Asc AscW ASin Assign ATan AutoItSetOption AutoItWinGetTitle AutoItWinSetTitle Beep Binary BinaryLen BinaryMid BinaryToString BitAND BitNOT BitOR BitRotate BitShift BitXOR BlockInput Break Call CDTray Ceiling Chr ChrW ClipGet ClipPut ConsoleRead ConsoleWrite ConsoleWriteError ControlClick ControlCommand ControlDisable ControlEnable ControlFocus ControlGetFocus ControlGetHandle ControlGetPos ControlGetText ControlHide ControlListView ControlMove ControlSend ControlSetText ControlShow ControlTreeView Cos Dec DirCopy DirCreate DirGetSize DirMove DirRemove DllCall DllCallAddress DllCallbackFree DllCallbackGetPtr DllCallbackRegister DllClose DllOpen DllStructCreate DllStructGetData DllStructGetPtr DllStructGetSize DllStructSetData DriveGetDrive DriveGetFileSystem DriveGetLabel DriveGetSerial DriveGetType DriveMapAdd DriveMapDel DriveMapGet DriveSetLabel DriveSpaceFree DriveSpaceTotal DriveStatus EnvGet EnvSet EnvUpdate Eval Execute Exp FileChangeDir FileClose FileCopy FileCreateNTFSLink FileCreateShortcut FileDelete FileExists FileFindFirstFile FileFindNextFile FileFlush FileGetAttrib FileGetEncoding FileGetLongName FileGetPos FileGetShortcut FileGetShortName FileGetSize FileGetTime FileGetVersion FileInstall FileMove FileOpen FileOpenDialog FileRead FileReadLine FileReadToArray FileRecycle FileRecycleEmpty FileSaveDialog FileSelectFolder FileSetAttrib FileSetEnd FileSetPos FileSetTime FileWrite FileWriteLine Floor FtpSetProxy FuncName GUICreate GUICtrlCreateAvi GUICtrlCreateButton GUICtrlCreateCheckbox GUICtrlCreateCombo GUICtrlCreateContextMenu GUICtrlCreateDate GUICtrlCreateDummy GUICtrlCreateEdit GUICtrlCreateGraphic GUICtrlCreateGroup GUICtrlCreateIcon GUICtrlCreateInput GUICtrlCreateLabel GUICtrlCreateList GUICtrlCreateListView GUICtrlCreateListViewItem GUICtrlCreateMenu GUICtrlCreateMenuItem GUICtrlCreateMonthCal GUICtrlCreateObj GUICtrlCreatePic GUICtrlCreateProgress GUICtrlCreateRadio GUICtrlCreateSlider GUICtrlCreateTab GUICtrlCreateTabItem GUICtrlCreateTreeView GUICtrlCreateTreeViewItem GUICtrlCreateUpdown GUICtrlDelete GUICtrlGetHandle GUICtrlGetState GUICtrlRead GUICtrlRecvMsg GUICtrlRegisterListViewSort GUICtrlSendMsg GUICtrlSendToDummy GUICtrlSetBkColor GUICtrlSetColor GUICtrlSetCursor GUICtrlSetData GUICtrlSetDefBkColor GUICtrlSetDefColor GUICtrlSetFont GUICtrlSetGraphic GUICtrlSetImage GUICtrlSetLimit GUICtrlSetOnEvent GUICtrlSetPos GUICtrlSetResizing GUICtrlSetState GUICtrlSetStyle GUICtrlSetTip GUIDelete GUIGetCursorInfo GUIGetMsg GUIGetStyle GUIRegisterMsg GUISetAccelerators GUISetBkColor GUISetCoord GUISetCursor GUISetFont GUISetHelp GUISetIcon GUISetOnEvent GUISetState GUISetStyle GUIStartGroup GUISwitch Hex HotKeySet HttpSetProxy HttpSetUserAgent HWnd InetClose InetGet InetGetInfo InetGetSize InetRead IniDelete IniRead IniReadSection IniReadSectionNames IniRenameSection IniWrite IniWriteSection InputBox Int IsAdmin IsArray IsBinary IsBool IsDeclared IsDllStruct IsFloat IsFunc IsHWnd IsInt IsKeyword IsNumber IsObj IsPtr IsString Log MemGetStats Mod MouseClick MouseClickDrag MouseDown MouseGetCursor MouseGetPos MouseMove MouseUp MouseWheel MsgBox Number ObjCreate ObjCreateInterface ObjEvent ObjGet ObjName OnAutoItExitRegister OnAutoItExitUnRegister Ping PixelChecksum PixelGetColor PixelSearch ProcessClose ProcessExists ProcessGetStats ProcessList ProcessSetPriority ProcessWait ProcessWaitClose ProgressOff ProgressOn ProgressSet Ptr Random RegDelete RegEnumKey RegEnumVal RegRead RegWrite Round Run RunAs RunAsWait RunWait Send SendKeepActive SetError SetExtended ShellExecute ShellExecuteWait Shutdown Sin Sleep SoundPlay SoundSetWaveVolume SplashImageOn SplashOff SplashTextOn Sqrt SRandom StatusbarGetText StderrRead StdinWrite StdioClose StdoutRead String StringAddCR StringCompare StringFormat StringFromASCIIArray StringInStr StringIsAlNum StringIsAlpha StringIsASCII StringIsDigit StringIsFloat StringIsInt StringIsLower StringIsSpace StringIsUpper StringIsXDigit StringLeft StringLen StringLower StringMid StringRegExp StringRegExpReplace StringReplace StringReverse StringRight StringSplit StringStripCR StringStripWS StringToASCIIArray StringToBinary StringTrimLeft StringTrimRight StringUpper Tan TCPAccept TCPCloseSocket TCPConnect TCPListen TCPNameToIP TCPRecv TCPSend TCPShutdown, UDPShutdown TCPStartup, UDPStartup TimerDiff TimerInit ToolTip TrayCreateItem TrayCreateMenu TrayGetMsg TrayItemDelete TrayItemGetHandle TrayItemGetState TrayItemGetText TrayItemSetOnEvent TrayItemSetState TrayItemSetText TraySetClick TraySetIcon TraySetOnEvent TraySetPauseIcon TraySetState TraySetToolTip TrayTip UBound UDPBind UDPCloseSocket UDPOpen UDPRecv UDPSend VarGetType WinActivate WinActive WinClose WinExists WinFlash WinGetCaretPos WinGetClassList WinGetClientSize WinGetHandle WinGetPos WinGetProcess WinGetState WinGetText WinGetTitle WinKill WinList WinMenuSelectItem WinMinimizeAll WinMinimizeAllUndo WinMove WinSetOnTop WinSetState WinSetTitle WinSetTrans WinWait WinWaitActive WinWaitClose WinWaitNotActive",o={variants:[e.COMMENT(";","$",{relevance:0}),e.COMMENT("#cs","#ce"),e.COMMENT("#comments-start","#comments-end")]},a={begin:"\\$[A-z0-9_]+"},s={className:"string",variants:[{begin:/"/,end:/"/,contains:[{begin:/""/,relevance:0}]},{begin:/'/,end:/'/,contains:[{begin:/''/,relevance:0}]}]},l={variants:[e.BINARY_NUMBER_MODE,e.C_NUMBER_MODE]},c={className:"meta",begin:"#",end:"$",keywords:{keyword:n},contains:[{begin:/\\\n/,relevance:0},{beginKeywords:"include",keywords:{keyword:"include"},end:"$",contains:[s,{className:"string",variants:[{begin:"<",end:">"},{begin:/"/,end:/"/,contains:[{begin:/""/,relevance:0}]},{begin:/'/,end:/'/,contains:[{begin:/''/,relevance:0}]}]}]},s,o]},u={className:"symbol",begin:"@[A-z0-9_]+"},d={beginKeywords:"Func",end:"$",illegal:"\\$|\\[|%",contains:[e.inherit(e.UNDERSCORE_TITLE_MODE,{className:"title.function"}),{className:"params",begin:"\\(",end:"\\)",contains:[a,s,l]}]};return{name:"AutoIt",case_insensitive:!0,illegal:/\/\*/,keywords:{keyword:t,built_in:i,literal:r},contains:[o,a,s,l,c,u,d]}}function Kun(e){return{name:"AVR Assembly",case_insensitive:!0,keywords:{$pattern:"\\.?"+e.IDENT_RE,keyword:"adc add adiw and andi asr bclr bld brbc brbs brcc brcs break breq brge brhc brhs brid brie brlo brlt brmi brne brpl brsh brtc brts brvc brvs bset bst call cbi cbr clc clh cli cln clr cls clt clv clz com cp cpc cpi cpse dec eicall eijmp elpm eor fmul fmuls fmulsu icall ijmp in inc jmp ld ldd ldi lds lpm lsl lsr mov movw mul muls mulsu neg nop or ori out pop push rcall ret reti rjmp rol ror sbc sbr sbrc sbrs sec seh sbi sbci sbic sbis sbiw sei sen ser ses set sev sez sleep spm st std sts sub subi swap tst wdr",built_in:"r0 r1 r2 r3 r4 r5 r6 r7 r8 r9 r10 r11 r12 r13 r14 r15 r16 r17 r18 r19 r20 r21 r22 r23 r24 r25 r26 r27 r28 r29 r30 r31 x|0 xh xl y|0 yh yl z|0 zh zl ucsr1c udr1 ucsr1a ucsr1b ubrr1l ubrr1h ucsr0c ubrr0h tccr3c tccr3a tccr3b tcnt3h tcnt3l ocr3ah ocr3al ocr3bh ocr3bl ocr3ch ocr3cl icr3h icr3l etimsk etifr tccr1c ocr1ch ocr1cl twcr twdr twar twsr twbr osccal xmcra xmcrb eicra spmcsr spmcr portg ddrg ping portf ddrf sreg sph spl xdiv rampz eicrb eimsk gimsk gicr eifr gifr timsk tifr mcucr mcucsr tccr0 tcnt0 ocr0 assr tccr1a tccr1b tcnt1h tcnt1l ocr1ah ocr1al ocr1bh ocr1bl icr1h icr1l tccr2 tcnt2 ocr2 ocdr wdtcr sfior eearh eearl eedr eecr porta ddra pina portb ddrb pinb portc ddrc pinc portd ddrd pind spdr spsr spcr udr0 ucsr0a ucsr0b ubrr0l acsr admux adcsr adch adcl porte ddre pine pinf",meta:".byte .cseg .db .def .device .dseg .dw .endmacro .equ .eseg .exit .include .list .listmac .macro .nolist .org .set"},contains:[e.C_BLOCK_COMMENT_MODE,e.COMMENT(";","$",{relevance:0}),e.C_NUMBER_MODE,e.BINARY_NUMBER_MODE,{className:"number",begin:"\\b(\\$[a-zA-Z0-9]+|0o[0-7]+)"},e.QUOTE_STRING_MODE,{className:"string",begin:"'",end:"[^\\\\]'",illegal:"[^\\\\][^']"},{className:"symbol",begin:"^[A-Za-z0-9_.$]+:"},{className:"meta",begin:"#",end:"$"},{className:"subst",begin:"@[0-9]+"}]}}function Qun(e){const t={className:"variable",variants:[{begin:/\$[\w\d#@][\w\d_]*/},{begin:/\$\{(.*?)\}/}]},n="BEGIN END if else while do for in break continue delete next nextfile function func exit|10",r={className:"string",contains:[e.BACKSLASH_ESCAPE],variants:[{begin:/(u|b)?r?'''/,end:/'''/,relevance:10},{begin:/(u|b)?r?"""/,end:/"""/,relevance:10},{begin:/(u|r|ur)'/,end:/'/,relevance:10},{begin:/(u|r|ur)"/,end:/"/,relevance:10},{begin:/(b|br)'/,end:/'/},{begin:/(b|br)"/,end:/"/},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]};return{name:"Awk",keywords:{keyword:n},contains:[t,r,e.REGEXP_MODE,e.HASH_COMMENT_MODE,e.NUMBER_MODE]}}function Xun(e){const t=e.UNDERSCORE_IDENT_RE,n={keyword:["abstract","as","asc","avg","break","breakpoint","by","byref","case","catch","changecompany","class","client","client","common","const","continue","count","crosscompany","delegate","delete_from","desc","display","div","do","edit","else","eventhandler","exists","extends","final","finally","firstfast","firstonly","firstonly1","firstonly10","firstonly100","firstonly1000","flush","for","forceliterals","forcenestedloop","forceplaceholders","forceselectorder","forupdate","from","generateonly","group","hint","if","implements","in","index","insert_recordset","interface","internal","is","join","like","maxof","minof","mod","namespace","new","next","nofetch","notexists","optimisticlock","order","outer","pessimisticlock","print","private","protected","public","readonly","repeatableread","retry","return","reverse","select","server","setting","static","sum","super","switch","this","throw","try","ttsabort","ttsbegin","ttscommit","unchecked","update_recordset","using","validtimestate","void","where","while"],built_in:["anytype","boolean","byte","char","container","date","double","enum","guid","int","int64","long","real","short","str","utcdatetime","var"],literal:["default","false","null","true"]},r={variants:[{match:[/(class|interface)\s+/,t,/\s+(extends|implements)\s+/,t]},{match:[/class\s+/,t]}],scope:{2:"title.class",4:"title.class.inherited"},keywords:n};return{name:"X++",aliases:["x++"],keywords:n,contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.C_NUMBER_MODE,{className:"meta",begin:"#",end:"$"},r]}}function Zun(e){return{name:"BASIC",case_insensitive:!0,illegal:"^.",keywords:{$pattern:"[a-zA-Z][a-zA-Z0-9_$%!#]*",keyword:["ABS","ASC","AND","ATN","AUTO|0","BEEP","BLOAD|10","BSAVE|10","CALL","CALLS","CDBL","CHAIN","CHDIR","CHR$|10","CINT","CIRCLE","CLEAR","CLOSE","CLS","COLOR","COM","COMMON","CONT","COS","CSNG","CSRLIN","CVD","CVI","CVS","DATA","DATE$","DEFDBL","DEFINT","DEFSNG","DEFSTR","DEF|0","SEG","USR","DELETE","DIM","DRAW","EDIT","END","ENVIRON","ENVIRON$","EOF","EQV","ERASE","ERDEV","ERDEV$","ERL","ERR","ERROR","EXP","FIELD","FILES","FIX","FOR|0","FRE","GET","GOSUB|10","GOTO","HEX$","IF","THEN","ELSE|0","INKEY$","INP","INPUT","INPUT#","INPUT$","INSTR","IMP","INT","IOCTL","IOCTL$","KEY","ON","OFF","LIST","KILL","LEFT$","LEN","LET","LINE","LLIST","LOAD","LOC","LOCATE","LOF","LOG","LPRINT","USING","LSET","MERGE","MID$","MKDIR","MKD$","MKI$","MKS$","MOD","NAME","NEW","NEXT","NOISE","NOT","OCT$","ON","OR","PEN","PLAY","STRIG","OPEN","OPTION","BASE","OUT","PAINT","PALETTE","PCOPY","PEEK","PMAP","POINT","POKE","POS","PRINT","PRINT]","PSET","PRESET","PUT","RANDOMIZE","READ","REM","RENUM","RESET|0","RESTORE","RESUME","RETURN|0","RIGHT$","RMDIR","RND","RSET","RUN","SAVE","SCREEN","SGN","SHELL","SIN","SOUND","SPACE$","SPC","SQR","STEP","STICK","STOP","STR$","STRING$","SWAP","SYSTEM","TAB","TAN","TIME$","TIMER","TROFF","TRON","TO","USR","VAL","VARPTR","VARPTR$","VIEW","WAIT","WHILE","WEND","WIDTH","WINDOW","WRITE","XOR"]},contains:[e.QUOTE_STRING_MODE,e.COMMENT("REM","$",{relevance:10}),e.COMMENT("'","$",{relevance:0}),{className:"symbol",begin:"^[0-9]+ ",relevance:10},{className:"number",begin:"\\b\\d+(\\.\\d+)?([edED]\\d+)?[#!]?",relevance:0},{className:"number",begin:"(&[hH][0-9a-fA-F]{1,4})"},{className:"number",begin:"(&[oO][0-7]{1,6})"}]}}function Jun(e){return{name:"BackusNaur Form",contains:[{className:"attribute",begin:/</,end:/>/},{begin:/::=/,end:/$/,contains:[{begin:/</,end:/>/},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]}]}}function edn(e){const t={className:"literal",begin:/[+-]+/,relevance:0};return{name:"Brainfuck",aliases:["bf"],contains:[e.COMMENT(/[^\[\]\.,\+\-<> \r\n]/,/[\[\]\.,\+\-<> \r\n]/,{contains:[{match:/[ ]+[^\[\]\.,\+\-<> \r\n]/,relevance:0}],returnEnd:!0,relevance:0}),{className:"title",begin:"[\\[\\]]",relevance:0},{className:"string",begin:"[\\.,]",relevance:0},{begin:/(?=\+\+|--)/,contains:[t]},t]}}function tdn(e){const t=e.regex,n=["div","mod","in","and","or","not","xor","asserterror","begin","case","do","downto","else","end","exit","for","local","if","of","repeat","then","to","until","while","with","var"],r="false true",i=[e.C_LINE_COMMENT_MODE,e.COMMENT(/\{/,/\}/,{relevance:0}),e.COMMENT(/\(\*/,/\*\)/,{relevance:10})],o={className:"string",begin:/'/,end:/'/,contains:[{begin:/''/}]},a={className:"string",begin:/(#\d+)+/},s={className:"number",begin:"\\b\\d+(\\.\\d+)?(DT|D|T)",relevance:0},l={className:"string",begin:'"',end:'"'},c={match:[/procedure/,/\s+/,/[a-zA-Z_][\w@]*/,/\s*/],scope:{1:"keyword",3:"title.function"},contains:[{className:"params",begin:/\(/,end:/\)/,keywords:n,contains:[o,a,e.NUMBER_MODE]},...i]},u=["Table","Form","Report","Dataport","Codeunit","XMLport","MenuSuite","Page","Query"],d={match:[/OBJECT/,/\s+/,t.either(...u),/\s+/,/\d+/,/\s+(?=[^\s])/,/.*/,/$/],relevance:3,scope:{1:"keyword",3:"type",5:"number",7:"title"}};return{name:"C/AL",case_insensitive:!0,keywords:{keyword:n,literal:r},illegal:/\/\*/,contains:[{match:/[\w]+(?=\=)/,scope:"attribute",relevance:0},o,a,s,l,e.NUMBER_MODE,d,c]}}function ndn(e){const t=["struct","enum","interface","union","group","import","using","const","annotation","extends","in","of","on","as","with","from","fixed"],n=["Void","Bool","Int8","Int16","Int32","Int64","UInt8","UInt16","UInt32","UInt64","Float32","Float64","Text","Data","AnyPointer","AnyStruct","Capability","List"],r=["true","false"],i={variants:[{match:[/(struct|enum|interface)/,/\s+/,e.IDENT_RE]},{match:[/extends/,/\s*\(/,e.IDENT_RE,/\s*\)/]}],scope:{1:"keyword",3:"title.class"}};return{name:"Capn Proto",aliases:["capnp"],keywords:{keyword:t,type:n,literal:r},contains:[e.QUOTE_STRING_MODE,e.NUMBER_MODE,e.HASH_COMMENT_MODE,{className:"meta",begin:/@0x[\w\d]{16};/,illegal:/\n/},{className:"symbol",begin:/@\d+\b/},i]}}function rdn(e){const t=["assembly","module","package","import","alias","class","interface","object","given","value","assign","void","function","new","of","extends","satisfies","abstracts","in","out","return","break","continue","throw","assert","dynamic","if","else","switch","case","for","while","try","catch","finally","then","let","this","outer","super","is","exists","nonempty"],n=["shared","abstract","formal","default","actual","variable","late","native","deprecated","final","sealed","annotation","suppressWarnings","small"],r=["doc","by","license","see","throws","tagged"],i={className:"subst",excludeBegin:!0,excludeEnd:!0,begin:/``/,end:/``/,keywords:t,relevance:10},o=[{className:"string",begin:'"""',end:'"""',relevance:10},{className:"string",begin:'"',end:'"',contains:[i]},{className:"string",begin:"'",end:"'"},{className:"number",begin:"#[0-9a-fA-F_]+|\\$[01_]+|[0-9_]+(?:\\.[0-9_](?:[eE][+-]?\\d+)?)?[kMGTPmunpf]?",relevance:0}];return i.contains=o,{name:"Ceylon",keywords:{keyword:t.concat(n),meta:r},illegal:"\\$[^01]|#[^0-9a-fA-F]",contains:[e.C_LINE_COMMENT_MODE,e.COMMENT("/\\*","\\*/",{contains:["self"]}),{className:"meta",begin:'@[a-z]\\w*(?::"[^"]*")?'}].concat(o)}}function idn(e){return{name:"Clean",aliases:["icl","dcl"],keywords:{keyword:["if","let","in","with","where","case","of","class","instance","otherwise","implementation","definition","system","module","from","import","qualified","as","special","code","inline","foreign","export","ccall","stdcall","generic","derive","infix","infixl","infixr"],built_in:"Int Real Char Bool",literal:"True False"},contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.C_NUMBER_MODE,{begin:"->|<-[|:]?|#!?|>>=|\\{\\||\\|\\}|:==|=:|<>"}]}}function odn(e){const t="a-zA-Z_\\-!.?+*=<>&'",n="[#]?["+t+"]["+t+"0-9/;:$#]*",r="def defonce defprotocol defstruct defmulti defmethod defn- defn defmacro deftype defrecord",i={$pattern:n,built_in:r+" cond apply if-not if-let if not not= =|0 <|0 >|0 <=|0 >=|0 ==|0 +|0 /|0 *|0 -|0 rem quot neg? pos? delay? symbol? keyword? true? false? integer? empty? coll? list? set? ifn? fn? associative? sequential? sorted? counted? reversible? number? decimal? class? distinct? isa? float? rational? reduced? ratio? odd? even? char? seq? vector? string? map? nil? contains? zero? instance? not-every? not-any? libspec? -> ->> .. . inc compare do dotimes mapcat take remove take-while drop letfn drop-last take-last drop-while while intern condp case reduced cycle split-at split-with repeat replicate iterate range merge zipmap declare line-seq sort comparator sort-by dorun doall nthnext nthrest partition eval doseq await await-for let agent atom send send-off release-pending-sends add-watch mapv filterv remove-watch agent-error restart-agent set-error-handler error-handler set-error-mode! error-mode shutdown-agents quote var fn loop recur throw try monitor-enter monitor-exit macroexpand macroexpand-1 for dosync and or when when-not when-let comp juxt partial sequence memoize constantly complement identity assert peek pop doto proxy first rest cons cast coll last butlast sigs reify second ffirst fnext nfirst nnext meta with-meta ns in-ns create-ns import refer keys select-keys vals key val rseq name namespace promise into transient persistent! conj! assoc! dissoc! pop! disj! use class type num float double short byte boolean bigint biginteger bigdec print-method print-dup throw-if printf format load compile get-in update-in pr pr-on newline flush read slurp read-line subvec with-open memfn time re-find re-groups rand-int rand mod locking assert-valid-fdecl alias resolve ref deref refset swap! reset! set-validator! compare-and-set! alter-meta! reset-meta! commute get-validator alter ref-set ref-history-count ref-min-history ref-max-history ensure sync io! new next conj set! to-array future future-call into-array aset gen-class reduce map filter find empty hash-map hash-set sorted-map sorted-map-by sorted-set sorted-set-by vec vector seq flatten reverse assoc dissoc list disj get union difference intersection extend extend-type extend-protocol int nth delay count concat chunk chunk-buffer chunk-append chunk-first chunk-rest max min dec unchecked-inc-int unchecked-inc unchecked-dec-inc unchecked-dec unchecked-negate unchecked-add-int unchecked-add unchecked-subtract-int unchecked-subtract chunk-next chunk-cons chunked-seq? prn vary-meta lazy-seq spread list* str find-keyword keyword symbol gensym force rationalize"},o={begin:n,relevance:0},a={scope:"number",relevance:0,variants:[{match:/[-+]?0[xX][0-9a-fA-F]+N?/},{match:/[-+]?0[0-7]+N?/},{match:/[-+]?[1-9][0-9]?[rR][0-9a-zA-Z]+N?/},{match:/[-+]?[0-9]+\/[0-9]+N?/},{match:/[-+]?[0-9]+((\.[0-9]*([eE][+-]?[0-9]+)?M?)|([eE][+-]?[0-9]+M?|M))/},{match:/[-+]?([1-9][0-9]*|0)N?/}]},s={scope:"character",variants:[{match:/\\o[0-3]?[0-7]{1,2}/},{match:/\\u[0-9a-fA-F]{4}/},{match:/\\(newline|space|tab|formfeed|backspace|return)/},{match:/\\\S/,relevance:0}]},l={scope:"regex",begin:/#"/,end:/"/,contains:[e.BACKSLASH_ESCAPE]},c=e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),u={scope:"punctuation",match:/,/,relevance:0},d=e.COMMENT(";","$",{relevance:0}),f={className:"literal",begin:/\b(true|false|nil)\b/},h={begin:"\\[|(#::?"+n+")?\\{",end:"[\\]\\}]",relevance:0},m={className:"symbol",begin:"[:]{1,2}"+n},g={begin:"\\(",end:"\\)"},v={endsWithParent:!0,relevance:0},y={keywords:i,className:"name",begin:n,relevance:0,starts:v},b=[u,g,s,l,c,d,m,h,a,f,o],_={beginKeywords:r,keywords:{$pattern:n,keyword:r},end:'(\\[|#|\\d|"|:|\\{|\\)|\\(|$)',contains:[{className:"title",begin:n,relevance:0,excludeEnd:!0,endsParent:!0}].concat(b)};return g.contains=[_,y,v],v.contains=b,h.contains=b,{name:"Clojure",aliases:["clj","edn"],illegal:/\S/,contains:[u,g,s,l,c,d,m,h,a,f]}}function adn(e){return{name:"Clojure REPL",contains:[{className:"meta.prompt",begin:/^([\w.-]+|\s*#_)?=>/,starts:{end:/$/,subLanguage:"clojure"}}]}}function sdn(e){return{name:"CMake",aliases:["cmake.in"],case_insensitive:!0,keywords:{keyword:"break cmake_host_system_information cmake_minimum_required cmake_parse_arguments cmake_policy configure_file continue elseif else endforeach endfunction endif endmacro endwhile execute_process file find_file find_library find_package find_path find_program foreach function get_cmake_property get_directory_property get_filename_component get_property if include include_guard list macro mark_as_advanced math message option return separate_arguments set_directory_properties set_property set site_name string unset variable_watch while add_compile_definitions add_compile_options add_custom_command add_custom_target add_definitions add_dependencies add_executable add_library add_link_options add_subdirectory add_test aux_source_directory build_command create_test_sourcelist define_property enable_language enable_testing export fltk_wrap_ui get_source_file_property get_target_property get_test_property include_directories include_external_msproject include_regular_expression install link_directories link_libraries load_cache project qt_wrap_cpp qt_wrap_ui remove_definitions set_source_files_properties set_target_properties set_tests_properties source_group target_compile_definitions target_compile_features target_compile_options target_include_directories target_link_directories target_link_libraries target_link_options target_sources try_compile try_run ctest_build ctest_configure ctest_coverage ctest_empty_binary_directory ctest_memcheck ctest_read_custom_files ctest_run_script ctest_sleep ctest_start ctest_submit ctest_test ctest_update ctest_upload build_name exec_program export_library_dependencies install_files install_programs install_targets load_command make_directory output_required_files remove subdir_depends subdirs use_mangled_mesa utility_source variable_requires write_file qt5_use_modules qt5_use_package qt5_wrap_cpp on off true false and or not command policy target test exists is_newer_than is_directory is_symlink is_absolute matches less greater equal less_equal greater_equal strless strgreater strequal strless_equal strgreater_equal version_less version_greater version_equal version_less_equal version_greater_equal in_list defined"},contains:[{className:"variable",begin:/\$\{/,end:/\}/},e.COMMENT(/#\[\[/,/]]/),e.HASH_COMMENT_MODE,e.QUOTE_STRING_MODE,e.NUMBER_MODE]}}const ldn=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends"],cdn=["true","false","null","undefined","NaN","Infinity"],udn=["Object","Function","Boolean","Symbol","Math","Date","Number","BigInt","String","RegExp","Array","Float32Array","Float64Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Int32Array","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array","Set","Map","WeakSet","WeakMap","ArrayBuffer","SharedArrayBuffer","Atomics","DataView","JSON","Promise","Generator","GeneratorFunction","AsyncFunction","Reflect","Proxy","Intl","WebAssembly"],ddn=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],fdn=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],pdn=[].concat(fdn,udn,ddn);function hdn(e){const t=["npm","print"],n=["yes","no","on","off"],r=["then","unless","until","loop","by","when","and","or","is","isnt","not"],i=["var","const","let","function","static"],o=m=>g=>!m.includes(g),a={keyword:ldn.concat(r).filter(o(i)),literal:cdn.concat(n),built_in:pdn.concat(t)},s="[A-Za-z$_][0-9A-Za-z$_]*",l={className:"subst",begin:/#\{/,end:/\}/,keywords:a},c=[e.BINARY_NUMBER_MODE,e.inherit(e.C_NUMBER_MODE,{starts:{end:"(\\s*/)?",relevance:0}}),{className:"string",variants:[{begin:/'''/,end:/'''/,contains:[e.BACKSLASH_ESCAPE]},{begin:/'/,end:/'/,contains:[e.BACKSLASH_ESCAPE]},{begin:/"""/,end:/"""/,contains:[e.BACKSLASH_ESCAPE,l]},{begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,l]}]},{className:"regexp",variants:[{begin:"///",end:"///",contains:[l,e.HASH_COMMENT_MODE]},{begin:"//[gim]{0,3}(?=\\W)",relevance:0},{begin:/\/(?![ *]).*?(?![\\]).\/[gim]{0,3}(?=\W)/}]},{begin:"@"+s},{subLanguage:"javascript",excludeBegin:!0,excludeEnd:!0,variants:[{begin:"```",end:"```"},{begin:"`",end:"`"}]}];l.contains=c;const u=e.inherit(e.TITLE_MODE,{begin:s}),d="(\\(.*\\)\\s*)?\\B[-=]>",f={className:"params",begin:"\\([^\\(]",returnBegin:!0,contains:[{begin:/\(/,end:/\)/,keywords:a,contains:["self"].concat(c)}]},h={variants:[{match:[/class\s+/,s,/\s+extends\s+/,s]},{match:[/class\s+/,s]}],scope:{2:"title.class",4:"title.class.inherited"},keywords:a};return{name:"CoffeeScript",aliases:["coffee","cson","iced"],keywords:a,illegal:/\/\*/,contains:[...c,e.COMMENT("###","###"),e.HASH_COMMENT_MODE,{className:"function",begin:"^\\s*"+s+"\\s*=\\s*"+d,end:"[-=]>",returnBegin:!0,contains:[u,f]},{begin:/[:\(,=]\s*/,relevance:0,contains:[{className:"function",begin:d,end:"[-=]>",returnBegin:!0,contains:[f]}]},h,{begin:s+":",end:":",returnBegin:!0,returnEnd:!0,relevance:0}]}}function mdn(e){return{name:"Coq",keywords:{keyword:["_|0","as","at","cofix","else","end","exists","exists2","fix","for","forall","fun","if","IF","in","let","match","mod","Prop","return","Set","then","Type","using","where","with","Abort","About","Add","Admit","Admitted","All","Arguments","Assumptions","Axiom","Back","BackTo","Backtrack","Bind","Blacklist","Canonical","Cd","Check","Class","Classes","Close","Coercion","Coercions","CoFixpoint","CoInductive","Collection","Combined","Compute","Conjecture","Conjectures","Constant","constr","Constraint","Constructors","Context","Corollary","CreateHintDb","Cut","Declare","Defined","Definition","Delimit","Dependencies","Dependent","Derive","Drop","eauto","End","Equality","Eval","Example","Existential","Existentials","Existing","Export","exporting","Extern","Extract","Extraction","Fact","Field","Fields","File","Fixpoint","Focus","for","From","Function","Functional","Generalizable","Global","Goal","Grab","Grammar","Graph","Guarded","Heap","Hint","HintDb","Hints","Hypotheses","Hypothesis","ident","Identity","If","Immediate","Implicit","Import","Include","Inductive","Infix","Info","Initial","Inline","Inspect","Instance","Instances","Intro","Intros","Inversion","Inversion_clear","Language","Left","Lemma","Let","Libraries","Library","Load","LoadPath","Local","Locate","Ltac","ML","Mode","Module","Modules","Monomorphic","Morphism","Next","NoInline","Notation","Obligation","Obligations","Opaque","Open","Optimize","Options","Parameter","Parameters","Parametric","Path","Paths","pattern","Polymorphic","Preterm","Print","Printing","Program","Projections","Proof","Proposition","Pwd","Qed","Quit","Rec","Record","Recursive","Redirect","Relation","Remark","Remove","Require","Reserved","Reset","Resolve","Restart","Rewrite","Right","Ring","Rings","Save","Scheme","Scope","Scopes","Script","Search","SearchAbout","SearchHead","SearchPattern","SearchRewrite","Section","Separate","Set","Setoid","Show","Solve","Sorted","Step","Strategies","Strategy","Structure","SubClass","Table","Tables","Tactic","Term","Test","Theorem","Time","Timeout","Transparent","Type","Typeclasses","Types","Undelimit","Undo","Unfocus","Unfocused","Unfold","Universe","Universes","Unset","Unshelve","using","Variable","Variables","Variant","Verbose","Visibility","where","with"],built_in:["abstract","absurd","admit","after","apply","as","assert","assumption","at","auto","autorewrite","autounfold","before","bottom","btauto","by","case","case_eq","cbn","cbv","change","classical_left","classical_right","clear","clearbody","cofix","compare","compute","congruence","constr_eq","constructor","contradict","contradiction","cut","cutrewrite","cycle","decide","decompose","dependent","destruct","destruction","dintuition","discriminate","discrR","do","double","dtauto","eapply","eassumption","eauto","ecase","econstructor","edestruct","ediscriminate","eelim","eexact","eexists","einduction","einjection","eleft","elim","elimtype","enough","equality","erewrite","eright","esimplify_eq","esplit","evar","exact","exactly_once","exfalso","exists","f_equal","fail","field","field_simplify","field_simplify_eq","first","firstorder","fix","fold","fourier","functional","generalize","generalizing","gfail","give_up","has_evar","hnf","idtac","in","induction","injection","instantiate","intro","intro_pattern","intros","intuition","inversion","inversion_clear","is_evar","is_var","lapply","lazy","left","lia","lra","move","native_compute","nia","nsatz","omega","once","pattern","pose","progress","proof","psatz","quote","record","red","refine","reflexivity","remember","rename","repeat","replace","revert","revgoals","rewrite","rewrite_strat","right","ring","ring_simplify","rtauto","set","setoid_reflexivity","setoid_replace","setoid_rewrite","setoid_symmetry","setoid_transitivity","shelve","shelve_unifiable","simpl","simple","simplify_eq","solve","specialize","split","split_Rabs","split_Rmult","stepl","stepr","subst","sum","swap","symmetry","tactic","tauto","time","timeout","top","transitivity","trivial","try","tryif","unfold","unify","until","using","vm_compute","with"]},contains:[e.QUOTE_STRING_MODE,e.COMMENT("\\(\\*","\\*\\)"),e.C_NUMBER_MODE,{className:"type",excludeBegin:!0,begin:"\\|\\s*",end:"\\w+"},{begin:/[-=]>/}]}}function gdn(e){return{name:"Caché Object Script",case_insensitive:!0,aliases:["cls"],keywords:"property parameter class classmethod clientmethod extends as break catch close continue do d|0 else elseif for goto halt hang h|0 if job j|0 kill k|0 lock l|0 merge new open quit q|0 read r|0 return set s|0 tcommit throw trollback try tstart use view while write w|0 xecute x|0 zkill znspace zn ztrap zwrite zw zzdump zzwrite print zbreak zinsert zload zprint zremove zsave zzprint mv mvcall mvcrt mvdim mvprint zquit zsync ascii",contains:[{className:"number",begin:"\\b(\\d+(\\.\\d*)?|\\.\\d+)",relevance:0},{className:"string",variants:[{begin:'"',end:'"',contains:[{begin:'""',relevance:0}]}]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"comment",begin:/;/,end:"$",relevance:0},{className:"built_in",begin:/(?:\$\$?|\.\.)\^?[a-zA-Z]+/},{className:"built_in",begin:/\$\$\$[a-zA-Z]+/},{className:"built_in",begin:/%[a-z]+(?:\.[a-z]+)*/},{className:"symbol",begin:/\^%?[a-zA-Z][\w]*/},{className:"keyword",begin:/##class|##super|#define|#dim/},{begin:/&sql\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,subLanguage:"sql"},{begin:/&(js|jscript|javascript)</,end:/>/,excludeBegin:!0,excludeEnd:!0,subLanguage:"javascript"},{begin:/&html<\s*</,end:/>\s*>/,subLanguage:"xml"}]}}function vdn(e){const t="primitive rsc_template",n="group clone ms master location colocation order fencing_topology rsc_ticket acl_target acl_group user role tag xml";return{name:"crmsh",aliases:["crm","pcmk"],case_insensitive:!0,keywords:{keyword:"params meta operations op rule attributes utilization read write deny defined not_defined in_range date spec in ref reference attribute type xpath version and or lt gt tag lte gte eq ne \\ number string",literal:"Master Started Slave Stopped start promote demote stop monitor true false"},contains:[e.HASH_COMMENT_MODE,{beginKeywords:"node",starts:{end:"\\s*([\\w_-]+:)?",starts:{className:"title",end:"\\s*[\\$\\w_][\\w_-]*"}}},{beginKeywords:t,starts:{className:"title",end:"\\s*[\\$\\w_][\\w_-]*",starts:{end:"\\s*@?[\\w_][\\w_\\.:-]*"}}},{begin:"\\b("+n.split(" ").join("|")+")\\s+",keywords:n,starts:{className:"title",end:"[\\$\\w_][\\w_-]*"}},{beginKeywords:"property rsc_defaults op_defaults",starts:{className:"title",end:"\\s*([\\w_-]+:)?"}},e.QUOTE_STRING_MODE,{className:"meta",begin:"(ocf|systemd|service|lsb):[\\w_:-]+",relevance:0},{className:"number",begin:"\\b\\d+(\\.\\d+)?(ms|s|h|m)?",relevance:0},{className:"literal",begin:"[-]?(infinity|inf)",relevance:0},{className:"attr",begin:/([A-Za-z$_#][\w_-]+)=/,relevance:0},{className:"tag",begin:"</?",end:"/?>",relevance:0}]}}function bdn(e){const t="(_?[ui](8|16|32|64|128))?",n="(_?f(32|64))?",r="[a-zA-Z_]\\w*[!?=]?",i="[a-zA-Z_]\\w*[!?=]?|[-+~]@|<<|>>|[=!]~|===?|<=>|[<>]=?|\\*\\*|[-/+%^&*~|]|//|//=|&[-+*]=?|&\\*\\*|\\[\\][=?]?",o="[A-Za-z_]\\w*(::\\w+)*(\\?|!)?",a={$pattern:r,keyword:"abstract alias annotation as as? asm begin break case class def do else elsif end ensure enum extend for fun if include instance_sizeof is_a? lib macro module next nil? of out pointerof private protected rescue responds_to? return require select self sizeof struct super then type typeof union uninitialized unless until verbatim when while with yield __DIR__ __END_LINE__ __FILE__ __LINE__",literal:"false nil true"},s={className:"subst",begin:/#\{/,end:/\}/,keywords:a},l={className:"variable",begin:"(\\$\\W)|((\\$|@@?)(\\w+))(?=[^@$?])(?![A-Za-z])(?![@$?'])"},c={className:"template-variable",variants:[{begin:"\\{\\{",end:"\\}\\}"},{begin:"\\{%",end:"%\\}"}],keywords:a};function u(y,b){const _=[{begin:y,end:b}];return _[0].contains=_,_}const d={className:"string",contains:[e.BACKSLASH_ESCAPE,s],variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/},{begin:/`/,end:/`/},{begin:"%[Qwi]?\\(",end:"\\)",contains:u("\\(","\\)")},{begin:"%[Qwi]?\\[",end:"\\]",contains:u("\\[","\\]")},{begin:"%[Qwi]?\\{",end:/\}/,contains:u(/\{/,/\}/)},{begin:"%[Qwi]?<",end:">",contains:u("<",">")},{begin:"%[Qwi]?\\|",end:"\\|"},{begin:/<<-\w+$/,end:/^\s*\w+$/}],relevance:0},f={className:"string",variants:[{begin:"%q\\(",end:"\\)",contains:u("\\(","\\)")},{begin:"%q\\[",end:"\\]",contains:u("\\[","\\]")},{begin:"%q\\{",end:/\}/,contains:u(/\{/,/\}/)},{begin:"%q<",end:">",contains:u("<",">")},{begin:"%q\\|",end:"\\|"},{begin:/<<-'\w+'$/,end:/^\s*\w+$/}],relevance:0},h={begin:"(?!%\\})("+e.RE_STARTERS_RE+"|\\n|\\b(case|if|select|unless|until|when|while)\\b)\\s*",keywords:"case if select unless until when while",contains:[{className:"regexp",contains:[e.BACKSLASH_ESCAPE,s],variants:[{begin:"//[a-z]*",relevance:0},{begin:"/(?!\\/)",end:"/[a-z]*"}]}],relevance:0},m={className:"regexp",contains:[e.BACKSLASH_ESCAPE,s],variants:[{begin:"%r\\(",end:"\\)",contains:u("\\(","\\)")},{begin:"%r\\[",end:"\\]",contains:u("\\[","\\]")},{begin:"%r\\{",end:/\}/,contains:u(/\{/,/\}/)},{begin:"%r<",end:">",contains:u("<",">")},{begin:"%r\\|",end:"\\|"}],relevance:0},g={className:"meta",begin:"@\\[",end:"\\]",contains:[e.inherit(e.QUOTE_STRING_MODE,{className:"string"})]},v=[c,d,f,m,h,g,l,e.HASH_COMMENT_MODE,{className:"class",beginKeywords:"class module struct",end:"$|;",illegal:/=/,contains:[e.HASH_COMMENT_MODE,e.inherit(e.TITLE_MODE,{begin:o}),{begin:"<"}]},{className:"class",beginKeywords:"lib enum union",end:"$|;",illegal:/=/,contains:[e.HASH_COMMENT_MODE,e.inherit(e.TITLE_MODE,{begin:o})]},{beginKeywords:"annotation",end:"$|;",illegal:/=/,contains:[e.HASH_COMMENT_MODE,e.inherit(e.TITLE_MODE,{begin:o})],relevance:2},{className:"function",beginKeywords:"def",end:/\B\b/,contains:[e.inherit(e.TITLE_MODE,{begin:i,endsParent:!0})]},{className:"function",beginKeywords:"fun macro",end:/\B\b/,contains:[e.inherit(e.TITLE_MODE,{begin:i,endsParent:!0})],relevance:2},{className:"symbol",begin:e.UNDERSCORE_IDENT_RE+"(!|\\?)?:",relevance:0},{className:"symbol",begin:":",contains:[d,{begin:i}],relevance:0},{className:"number",variants:[{begin:"\\b0b([01_]+)"+t},{begin:"\\b0o([0-7_]+)"+t},{begin:"\\b0x([A-Fa-f0-9_]+)"+t},{begin:"\\b([1-9][0-9_]*[0-9]|[0-9])(\\.[0-9][0-9_]*)?([eE]_?[-+]?[0-9_]*)?"+n+"(?!_)"},{begin:"\\b([1-9][0-9_]*|0)"+t}],relevance:0}];return s.contains=v,c.contains=v.slice(1),{name:"Crystal",aliases:["cr"],keywords:a,contains:v}}function ydn(e){return{name:"CSP",case_insensitive:!1,keywords:{$pattern:"[a-zA-Z][a-zA-Z0-9_-]*",keyword:["base-uri","child-src","connect-src","default-src","font-src","form-action","frame-ancestors","frame-src","img-src","manifest-src","media-src","object-src","plugin-types","report-uri","sandbox","script-src","style-src","trusted-types","unsafe-hashes","worker-src"]},contains:[{className:"string",begin:"'",end:"'"},{className:"attribute",begin:"^Content",end:":",excludeEnd:!0}]}}function _dn(e){const t={$pattern:e.UNDERSCORE_IDENT_RE,keyword:"abstract alias align asm assert auto body break byte case cast catch class const continue debug default delete deprecated do else enum export extern final finally for foreach foreach_reverse|10 goto if immutable import in inout int interface invariant is lazy macro mixin module new nothrow out override package pragma private protected public pure ref return scope shared static struct super switch synchronized template this throw try typedef typeid typeof union unittest version void volatile while with __FILE__ __LINE__ __gshared|10 __thread __traits __DATE__ __EOF__ __TIME__ __TIMESTAMP__ __VENDOR__ __VERSION__",built_in:"bool cdouble cent cfloat char creal dchar delegate double dstring float function idouble ifloat ireal long real short string ubyte ucent uint ulong ushort wchar wstring",literal:"false null true"},n="(0|[1-9][\\d_]*)",r="(0|[1-9][\\d_]*|\\d[\\d_]*|[\\d_]+?\\d)",i="0[bB][01_]+",o="([\\da-fA-F][\\da-fA-F_]*|_[\\da-fA-F][\\da-fA-F_]*)",a="0[xX]"+o,s="([eE][+-]?"+r+")",l="("+r+"(\\.\\d*|"+s+")|\\d+\\."+r+"|\\."+n+s+"?)",c="(0[xX]("+o+"\\."+o+"|\\.?"+o+")[pP][+-]?"+r+")",u="("+n+"|"+i+"|"+a+")",d="("+c+"|"+l+")",f=`\\\\(['"\\?\\\\abfnrtv]|u[\\dA-Fa-f]{4}|[0-7]{1,3}|x[\\dA-Fa-f]{2}|U[\\dA-Fa-f]{8})|&[a-zA-Z\\d]{2,};`,h={className:"number",begin:"\\b"+u+"(L|u|U|Lu|LU|uL|UL)?",relevance:0},m={className:"number",begin:"\\b("+d+"([fF]|L|i|[fF]i|Li)?|"+u+"(i|[fF]i|Li))",relevance:0},g={className:"string",begin:"'("+f+"|.)",end:"'",illegal:"."},v={className:"string",begin:'"',contains:[{begin:f,relevance:0}],end:'"[cwd]?'},y={className:"string",begin:'[rq]"',end:'"[cwd]?',relevance:5},b={className:"string",begin:"`",end:"`[cwd]?"},_={className:"string",begin:'x"[\\da-fA-F\\s\\n\\r]*"[cwd]?',relevance:10},E={className:"string",begin:'q"\\{',end:'\\}"'},w={className:"meta",begin:"^#!",end:"$",relevance:5},S={className:"meta",begin:"#(line)",end:"$",relevance:5},C={className:"keyword",begin:"@[a-zA-Z_][a-zA-Z_\\d]*"},T=e.COMMENT("\\/\\+","\\+\\/",{contains:["self"],relevance:10});return{name:"D",keywords:t,contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,T,_,v,y,b,E,m,h,g,w,S,C]}}function Sdn(e){const t={className:"subst",variants:[{begin:"\\$[A-Za-z0-9_]+"}]},n={className:"subst",variants:[{begin:/\$\{/,end:/\}/}],keywords:"true false null this is new super"},r={className:"string",variants:[{begin:"r'''",end:"'''"},{begin:'r"""',end:'"""'},{begin:"r'",end:"'",illegal:"\\n"},{begin:'r"',end:'"',illegal:"\\n"},{begin:"'''",end:"'''",contains:[e.BACKSLASH_ESCAPE,t,n]},{begin:'"""',end:'"""',contains:[e.BACKSLASH_ESCAPE,t,n]},{begin:"'",end:"'",illegal:"\\n",contains:[e.BACKSLASH_ESCAPE,t,n]},{begin:'"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE,t,n]}]};n.contains=[e.C_NUMBER_MODE,r];const i=["Comparable","DateTime","Duration","Function","Iterable","Iterator","List","Map","Match","Object","Pattern","RegExp","Set","Stopwatch","String","StringBuffer","StringSink","Symbol","Type","Uri","bool","double","int","num","Element","ElementList"],o=i.map(a=>`${a}?`);return{name:"Dart",keywords:{keyword:["abstract","as","assert","async","await","base","break","case","catch","class","const","continue","covariant","default","deferred","do","dynamic","else","enum","export","extends","extension","external","factory","false","final","finally","for","Function","get","hide","if","implements","import","in","interface","is","late","library","mixin","new","null","on","operator","part","required","rethrow","return","sealed","set","show","static","super","switch","sync","this","throw","true","try","typedef","var","void","when","while","with","yield"],built_in:i.concat(o).concat(["Never","Null","dynamic","print","document","querySelector","querySelectorAll","window"]),$pattern:/[A-Za-z][A-Za-z0-9_]*\??/},contains:[r,e.COMMENT(/\/\*\*(?!\/)/,/\*\//,{subLanguage:"markdown",relevance:0}),e.COMMENT(/\/{3,} ?/,/$/,{contains:[{subLanguage:"markdown",begin:".",end:"$",relevance:0}]}),e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"class",beginKeywords:"class interface",end:/\{/,excludeEnd:!0,contains:[{beginKeywords:"extends implements"},e.UNDERSCORE_TITLE_MODE]},e.C_NUMBER_MODE,{className:"meta",begin:"@[A-Za-z]+"},{begin:"=>"}]}}function Edn(e){const t=["exports","register","file","shl","array","record","property","for","mod","while","set","ally","label","uses","raise","not","stored","class","safecall","var","interface","or","private","static","exit","index","inherited","to","else","stdcall","override","shr","asm","far","resourcestring","finalization","packed","virtual","out","and","protected","library","do","xorwrite","goto","near","function","end","div","overload","object","unit","begin","string","on","inline","repeat","until","destructor","write","message","program","with","read","initialization","except","default","nil","if","case","cdecl","in","downto","threadvar","of","try","pascal","const","external","constructor","type","public","then","implementation","finally","published","procedure","absolute","reintroduce","operator","as","is","abstract","alias","assembler","bitpacked","break","continue","cppdecl","cvar","enumerator","experimental","platform","deprecated","unimplemented","dynamic","export","far16","forward","generic","helper","implements","interrupt","iochecks","local","name","nodefault","noreturn","nostackframe","oldfpccall","otherwise","saveregisters","softfloat","specialize","strict","unaligned","varargs"],n=[e.C_LINE_COMMENT_MODE,e.COMMENT(/\{/,/\}/,{relevance:0}),e.COMMENT(/\(\*/,/\*\)/,{relevance:10})],r={className:"meta",variants:[{begin:/\{\$/,end:/\}/},{begin:/\(\*\$/,end:/\*\)/}]},i={className:"string",begin:/'/,end:/'/,contains:[{begin:/''/}]},o={className:"number",relevance:0,variants:[{begin:"\\$[0-9A-Fa-f]+"},{begin:"&[0-7]+"},{begin:"%[01]+"}]},a={className:"string",begin:/(#\d+)+/},s={begin:e.IDENT_RE+"\\s*=\\s*class\\s*\\(",returnBegin:!0,contains:[e.TITLE_MODE]},l={className:"function",beginKeywords:"function constructor destructor procedure",end:/[:;]/,keywords:"function constructor|10 destructor|10 procedure|10",contains:[e.TITLE_MODE,{className:"params",begin:/\(/,end:/\)/,keywords:t,contains:[i,a,r].concat(n)},r].concat(n)};return{name:"Delphi",aliases:["dpr","dfm","pas","pascal"],case_insensitive:!0,keywords:t,illegal:/"|\$[G-Zg-z]|\/\*|<\/|\|/,contains:[i,a,e.NUMBER_MODE,o,s,l,r].concat(n)}}function Cdn(e){const t={begin:/\|[A-Za-z]+:?/,keywords:{name:"truncatewords removetags linebreaksbr yesno get_digit timesince random striptags filesizeformat escape linebreaks length_is ljust rjust cut urlize fix_ampersands title floatformat capfirst pprint divisibleby add make_list unordered_list urlencode timeuntil urlizetrunc wordcount stringformat linenumbers slice date dictsort dictsortreversed default_if_none pluralize lower join center default truncatewords_html upper length phone2numeric wordwrap time addslashes slugify first escapejs force_escape iriencode last safe safeseq truncatechars localize unlocalize localtime utc timezone"},contains:[e.QUOTE_STRING_MODE,e.APOS_STRING_MODE]};return{name:"Django",aliases:["jinja"],case_insensitive:!0,subLanguage:"xml",contains:[e.COMMENT(/\{%\s*comment\s*%\}/,/\{%\s*endcomment\s*%\}/),e.COMMENT(/\{#/,/#\}/),{className:"template-tag",begin:/\{%/,end:/%\}/,contains:[{className:"name",begin:/\w+/,keywords:{name:"comment endcomment load templatetag ifchanged endifchanged if endif firstof for endfor ifnotequal endifnotequal widthratio extends include spaceless endspaceless regroup ifequal endifequal ssi now with cycle url filter endfilter debug block endblock else autoescape endautoescape csrf_token empty elif endwith static trans blocktrans endblocktrans get_static_prefix get_media_prefix plural get_current_language language get_available_languages get_current_language_bidi get_language_info get_language_info_list localize endlocalize localtime endlocaltime timezone endtimezone get_current_timezone verbatim"},starts:{endsWithParent:!0,keywords:"in by as",contains:[t],relevance:0}}]},{className:"template-variable",begin:/\{\{/,end:/\}\}/,contains:[t]}]}}function wdn(e){return{name:"DNS Zone",aliases:["bind","zone"],keywords:["IN","A","AAAA","AFSDB","APL","CAA","CDNSKEY","CDS","CERT","CNAME","DHCID","DLV","DNAME","DNSKEY","DS","HIP","IPSECKEY","KEY","KX","LOC","MX","NAPTR","NS","NSEC","NSEC3","NSEC3PARAM","PTR","RRSIG","RP","SIG","SOA","SRV","SSHFP","TA","TKEY","TLSA","TSIG","TXT"],contains:[e.COMMENT(";","$",{relevance:0}),{className:"meta",begin:/^\$(TTL|GENERATE|INCLUDE|ORIGIN)\b/},{className:"number",begin:"((([0-9A-Fa-f]{1,4}:){7}([0-9A-Fa-f]{1,4}|:))|(([0-9A-Fa-f]{1,4}:){6}(:[0-9A-Fa-f]{1,4}|((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){5}(((:[0-9A-Fa-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){4}(((:[0-9A-Fa-f]{1,4}){1,3})|((:[0-9A-Fa-f]{1,4})?:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){3}(((:[0-9A-Fa-f]{1,4}){1,4})|((:[0-9A-Fa-f]{1,4}){0,2}:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){2}(((:[0-9A-Fa-f]{1,4}){1,5})|((:[0-9A-Fa-f]{1,4}){0,3}:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){1}(((:[0-9A-Fa-f]{1,4}){1,6})|((:[0-9A-Fa-f]{1,4}){0,4}:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:))|(:(((:[0-9A-Fa-f]{1,4}){1,7})|((:[0-9A-Fa-f]{1,4}){0,5}:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:)))\\b"},{className:"number",begin:"((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]).){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\\b"},e.inherit(e.NUMBER_MODE,{begin:/\b\d+[dhwm]?/})]}}function Tdn(e){return{name:"Dockerfile",aliases:["docker"],case_insensitive:!0,keywords:["from","maintainer","expose","env","arg","user","onbuild","stopsignal"],contains:[e.HASH_COMMENT_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.NUMBER_MODE,{beginKeywords:"run cmd entrypoint volume add copy workdir label healthcheck shell",starts:{end:/[^\\]$/,subLanguage:"bash"}}],illegal:"</"}}function xdn(e){const t=e.COMMENT(/^\s*@?rem\b/,/$/,{relevance:10});return{name:"Batch file (DOS)",aliases:["bat","cmd"],case_insensitive:!0,illegal:/\/\*/,keywords:{keyword:["if","else","goto","for","in","do","call","exit","not","exist","errorlevel","defined","equ","neq","lss","leq","gtr","geq"],built_in:["prn","nul","lpt3","lpt2","lpt1","con","com4","com3","com2","com1","aux","shift","cd","dir","echo","setlocal","endlocal","set","pause","copy","append","assoc","at","attrib","break","cacls","cd","chcp","chdir","chkdsk","chkntfs","cls","cmd","color","comp","compact","convert","date","dir","diskcomp","diskcopy","doskey","erase","fs","find","findstr","format","ftype","graftabl","help","keyb","label","md","mkdir","mode","more","move","path","pause","print","popd","pushd","promt","rd","recover","rem","rename","replace","restore","rmdir","shift","sort","start","subst","time","title","tree","type","ver","verify","vol","ping","net","ipconfig","taskkill","xcopy","ren","del"]},contains:[{className:"variable",begin:/%%[^ ]|%[^ ]+?%|![^ ]+?!/},{className:"function",begin:"^\\s*[A-Za-z._?][A-Za-z0-9_$#@~.?]*(:|\\s+label)",end:"goto:eof",contains:[e.inherit(e.TITLE_MODE,{begin:"([_a-zA-Z]\\w*\\.)*([_a-zA-Z]\\w*:)?[_a-zA-Z]\\w*"}),t]},{className:"number",begin:"\\b\\d+",relevance:0},t]}}function Odn(e){return{keywords:"dsconfig",contains:[{className:"keyword",begin:"^dsconfig",end:/\s/,excludeEnd:!0,relevance:10},{className:"built_in",begin:/(list|create|get|set|delete)-(\w+)/,end:/\s/,excludeEnd:!0,illegal:"!@#$%^&*()",relevance:10},{className:"built_in",begin:/--(\w+)/,end:/\s/,excludeEnd:!0},{className:"string",begin:/"/,end:/"/},{className:"string",begin:/'/,end:/'/},{className:"string",begin:/[\w\-?]+:\w+/,end:/\W/,relevance:0},{className:"string",begin:/\w+(\-\w+)*/,end:/(?=\W)/,relevance:0},e.HASH_COMMENT_MODE]}}function Rdn(e){const t={className:"string",variants:[e.inherit(e.QUOTE_STRING_MODE,{begin:'((u8?|U)|L)?"'}),{begin:'(u8?|U)?R"',end:'"',contains:[e.BACKSLASH_ESCAPE]},{begin:"'\\\\?.",end:"'",illegal:"."}]},n={className:"number",variants:[{begin:"\\b(\\d+(\\.\\d*)?|\\.\\d+)(u|U|l|L|ul|UL|f|F)"},{begin:e.C_NUMBER_RE}],relevance:0},r={className:"meta",begin:"#",end:"$",keywords:{keyword:"if else elif endif define undef ifdef ifndef"},contains:[{begin:/\\\n/,relevance:0},{beginKeywords:"include",end:"$",keywords:{keyword:"include"},contains:[e.inherit(t,{className:"string"}),{className:"string",begin:"<",end:">",illegal:"\\n"}]},t,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},i={className:"variable",begin:/&[a-z\d_]*\b/},o={className:"keyword",begin:"/[a-z][a-z\\d-]*/"},a={className:"symbol",begin:"^\\s*[a-zA-Z_][a-zA-Z\\d_]*:"},s={className:"params",relevance:0,begin:"<",end:">",contains:[n,i]},l={className:"title.class",begin:/[a-zA-Z_][a-zA-Z\d_@-]*(?=\s\{)/,relevance:.2},c={className:"title.class",begin:/^\/(?=\s*\{)/,relevance:10},u={match:/[a-z][a-z-,]+(?=;)/,relevance:0,scope:"attr"},d={relevance:0,match:[/[a-z][a-z-,]+/,/\s*/,/=/],scope:{1:"attr",3:"operator"}},f={scope:"punctuation",relevance:0,match:/\};|[;{}]/};return{name:"Device Tree",contains:[c,i,o,a,l,d,u,s,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,n,t,r,f,{begin:e.IDENT_RE+"::",keywords:""}]}}function Idn(e){return{name:"Dust",aliases:["dst"],case_insensitive:!0,subLanguage:"xml",contains:[{className:"template-tag",begin:/\{[#\/]/,end:/\}/,illegal:/;/,contains:[{className:"name",begin:/[a-zA-Z\.-]+/,starts:{endsWithParent:!0,relevance:0,contains:[e.QUOTE_STRING_MODE]}}]},{className:"template-variable",begin:/\{/,end:/\}/,illegal:/;/,keywords:"if eq ne lt lte gt gte select default math sep"}]}}function Adn(e){const t=e.COMMENT(/\(\*/,/\*\)/),n={className:"attribute",begin:/^[ ]*[a-zA-Z]+([\s_-]+[a-zA-Z]+)*/},r={begin:/=/,end:/[.;]/,contains:[t,{className:"meta",begin:/\?.*\?/},{className:"string",variants:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{begin:"`",end:"`"}]}]};return{name:"Extended Backus-Naur Form",illegal:/\S/,contains:[t,n,r]}}function Ndn(e){const t=e.regex,n="[a-zA-Z_][a-zA-Z0-9_.]*(!|\\?)?",r="[a-zA-Z_]\\w*[!?=]?|[-+~]@|<<|>>|=~|===?|<=>|[<>]=?|\\*\\*|[-/+%^&*~`|]|\\[\\]=?",i={$pattern:n,keyword:["after","alias","and","case","catch","cond","defstruct","defguard","do","else","end","fn","for","if","import","in","not","or","quote","raise","receive","require","reraise","rescue","try","unless","unquote","unquote_splicing","use","when","with|0"],literal:["false","nil","true"]},o={className:"subst",begin:/#\{/,end:/\}/,keywords:i},a={className:"number",begin:"(\\b0o[0-7_]+)|(\\b0b[01_]+)|(\\b0x[0-9a-fA-F_]+)|(-?\\b[0-9][0-9_]*(\\.[0-9_]+([eE][-+]?[0-9]+)?)?)",relevance:0},s={match:/\\[\s\S]/,scope:"char.escape",relevance:0},l=`[/|([{<"']`,c=[{begin:/"/,end:/"/},{begin:/'/,end:/'/},{begin:/\//,end:/\//},{begin:/\|/,end:/\|/},{begin:/\(/,end:/\)/},{begin:/\[/,end:/\]/},{begin:/\{/,end:/\}/},{begin:/</,end:/>/}],u=b=>({scope:"char.escape",begin:t.concat(/\\/,b),relevance:0}),d={className:"string",begin:"~[a-z](?="+l+")",contains:c.map(b=>e.inherit(b,{contains:[u(b.end),s,o]}))},f={className:"string",begin:"~[A-Z](?="+l+")",contains:c.map(b=>e.inherit(b,{contains:[u(b.end)]}))},h={className:"regex",variants:[{begin:"~r(?="+l+")",contains:c.map(b=>e.inherit(b,{end:t.concat(b.end,/[uismxfU]{0,7}/),contains:[u(b.end),s,o]}))},{begin:"~R(?="+l+")",contains:c.map(b=>e.inherit(b,{end:t.concat(b.end,/[uismxfU]{0,7}/),contains:[u(b.end)]}))}]},m={className:"string",contains:[e.BACKSLASH_ESCAPE,o],variants:[{begin:/"""/,end:/"""/},{begin:/'''/,end:/'''/},{begin:/~S"""/,end:/"""/,contains:[]},{begin:/~S"/,end:/"/,contains:[]},{begin:/~S'''/,end:/'''/,contains:[]},{begin:/~S'/,end:/'/,contains:[]},{begin:/'/,end:/'/},{begin:/"/,end:/"/}]},g={className:"function",beginKeywords:"def defp defmacro defmacrop",end:/\B\b/,contains:[e.inherit(e.TITLE_MODE,{begin:n,endsParent:!0})]},v=e.inherit(g,{className:"class",beginKeywords:"defimpl defmodule defprotocol defrecord",end:/\bdo\b|$|;/}),y=[m,h,f,d,e.HASH_COMMENT_MODE,v,g,{begin:"::"},{className:"symbol",begin:":(?![\\s:])",contains:[m,{begin:r}],relevance:0},{className:"symbol",begin:n+":(?!:)",relevance:0},{className:"title.class",begin:/(\b[A-Z][a-zA-Z0-9_]+)/,relevance:0},a,{className:"variable",begin:"(\\$\\W)|((\\$|@@?)(\\w+))"}];return o.contains=y,{name:"Elixir",aliases:["ex","exs"],keywords:i,contains:y}}function Mdn(e){const t={variants:[e.COMMENT("--","$"),e.COMMENT(/\{-/,/-\}/,{contains:["self"]})]},n={className:"type",begin:"\\b[A-Z][\\w']*",relevance:0},r={begin:"\\(",end:"\\)",illegal:'"',contains:[{className:"type",begin:"\\b[A-Z][\\w]*(\\((\\.\\.|,|\\w+)\\))?"},t]},i={begin:/\{/,end:/\}/,contains:r.contains},o={className:"string",begin:"'\\\\?.",end:"'",illegal:"."};return{name:"Elm",keywords:["let","in","if","then","else","case","of","where","module","import","exposing","type","alias","as","infix","infixl","infixr","port","effect","command","subscription"],contains:[{beginKeywords:"port effect module",end:"exposing",keywords:"port effect module where command subscription exposing",contains:[r,t],illegal:"\\W\\.|;"},{begin:"import",end:"$",keywords:"import as exposing",contains:[r,t],illegal:"\\W\\.|;"},{begin:"type",end:"$",keywords:"type alias",contains:[n,r,i,t]},{beginKeywords:"infix infixl infixr",end:"$",contains:[e.C_NUMBER_MODE,t]},{begin:"port",end:"$",keywords:"port",contains:[t]},o,e.QUOTE_STRING_MODE,e.C_NUMBER_MODE,n,e.inherit(e.TITLE_MODE,{begin:"^[_a-z][\\w']*"}),t,{begin:"->|<-"}],illegal:/;/}}function kdn(e){return{name:"ERB",subLanguage:"xml",contains:[e.COMMENT("<%#","%>"),{begin:"<%[%=-]?",end:"[%-]?%>",subLanguage:"ruby",excludeBegin:!0,excludeEnd:!0}]}}function Pdn(e){const t="[a-z'][a-zA-Z0-9_']*",n="("+t+":"+t+"|"+t+")",r={keyword:"after and andalso|10 band begin bnot bor bsl bzr bxor case catch cond div end fun if let not of orelse|10 query receive rem try when xor",literal:"false true"},i=e.COMMENT("%","$"),o={className:"number",begin:"\\b(\\d+(_\\d+)*#[a-fA-F0-9]+(_[a-fA-F0-9]+)*|\\d+(_\\d+)*(\\.\\d+(_\\d+)*)?([eE][-+]?\\d+)?)",relevance:0},a={begin:"fun\\s+"+t+"/\\d+"},s={begin:n+"\\(",end:"\\)",returnBegin:!0,relevance:0,contains:[{begin:n,relevance:0},{begin:"\\(",end:"\\)",endsWithParent:!0,returnEnd:!0,relevance:0}]},l={begin:/\{/,end:/\}/,relevance:0},c={begin:"\\b_([A-Z][A-Za-z0-9_]*)?",relevance:0},u={begin:"[A-Z][a-zA-Z0-9_]*",relevance:0},d={begin:"#"+e.UNDERSCORE_IDENT_RE,relevance:0,returnBegin:!0,contains:[{begin:"#"+e.UNDERSCORE_IDENT_RE,relevance:0},{begin:/\{/,end:/\}/,relevance:0}]},f={beginKeywords:"fun receive if try case",end:"end",keywords:r};f.contains=[i,a,e.inherit(e.APOS_STRING_MODE,{className:""}),f,s,e.QUOTE_STRING_MODE,o,l,c,u,d];const h=[i,a,f,s,e.QUOTE_STRING_MODE,o,l,c,u,d];s.contains[1].contains=h,l.contains=h,d.contains[1].contains=h;const m=["-module","-record","-undef","-export","-ifdef","-ifndef","-author","-copyright","-doc","-vsn","-import","-include","-include_lib","-compile","-define","-else","-endif","-file","-behaviour","-behavior","-spec"],g={className:"params",begin:"\\(",end:"\\)",contains:h};return{name:"Erlang",aliases:["erl"],keywords:r,illegal:"(</|\\*=|\\+=|-=|/\\*|\\*/|\\(\\*|\\*\\))",contains:[{className:"function",begin:"^"+t+"\\s*\\(",end:"->",returnBegin:!0,illegal:"\\(|#|//|/\\*|\\\\|:|;",contains:[g,e.inherit(e.TITLE_MODE,{begin:t})],starts:{end:";|\\.",keywords:r,contains:h}},i,{begin:"^-",end:"\\.",relevance:0,excludeEnd:!0,returnBegin:!0,keywords:{$pattern:"-"+e.IDENT_RE,keyword:m.map(v=>`${v}|1.5`).join(" ")},contains:[g]},o,e.QUOTE_STRING_MODE,d,c,u,l,{begin:/\.$/}]}}function Ddn(e){const t=e.regex;return{name:"Erlang REPL",keywords:{built_in:"spawn spawn_link self",keyword:"after and andalso|10 band begin bnot bor bsl bsr bxor case catch cond div end fun if let not of or orelse|10 query receive rem try when xor"},contains:[{className:"meta.prompt",begin:"^[0-9]+> ",relevance:10},e.COMMENT("%","$"),{className:"number",begin:"\\b(\\d+(_\\d+)*#[a-fA-F0-9]+(_[a-fA-F0-9]+)*|\\d+(_\\d+)*(\\.\\d+(_\\d+)*)?([eE][-+]?\\d+)?)",relevance:0},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{begin:t.concat(/\?(::)?/,/([A-Z]\w*)/,/((::)[A-Z]\w*)*/)},{begin:"->"},{begin:"ok"},{begin:"!"},{begin:"(\\b[a-z'][a-zA-Z0-9_']*:[a-z'][a-zA-Z0-9_']*)|(\\b[a-z'][a-zA-Z0-9_']*)",relevance:0},{begin:"[A-Z][a-zA-Z0-9_']*",relevance:0}]}}function Ldn(e){return{name:"Excel formulae",aliases:["xlsx","xls"],case_insensitive:!0,keywords:{$pattern:/[a-zA-Z][\w\.]*/,built_in:["ABS","ACCRINT","ACCRINTM","ACOS","ACOSH","ACOT","ACOTH","AGGREGATE","ADDRESS","AMORDEGRC","AMORLINC","AND","ARABIC","AREAS","ASC","ASIN","ASINH","ATAN","ATAN2","ATANH","AVEDEV","AVERAGE","AVERAGEA","AVERAGEIF","AVERAGEIFS","BAHTTEXT","BASE","BESSELI","BESSELJ","BESSELK","BESSELY","BETADIST","BETA.DIST","BETAINV","BETA.INV","BIN2DEC","BIN2HEX","BIN2OCT","BINOMDIST","BINOM.DIST","BINOM.DIST.RANGE","BINOM.INV","BITAND","BITLSHIFT","BITOR","BITRSHIFT","BITXOR","CALL","CEILING","CEILING.MATH","CEILING.PRECISE","CELL","CHAR","CHIDIST","CHIINV","CHITEST","CHISQ.DIST","CHISQ.DIST.RT","CHISQ.INV","CHISQ.INV.RT","CHISQ.TEST","CHOOSE","CLEAN","CODE","COLUMN","COLUMNS","COMBIN","COMBINA","COMPLEX","CONCAT","CONCATENATE","CONFIDENCE","CONFIDENCE.NORM","CONFIDENCE.T","CONVERT","CORREL","COS","COSH","COT","COTH","COUNT","COUNTA","COUNTBLANK","COUNTIF","COUNTIFS","COUPDAYBS","COUPDAYS","COUPDAYSNC","COUPNCD","COUPNUM","COUPPCD","COVAR","COVARIANCE.P","COVARIANCE.S","CRITBINOM","CSC","CSCH","CUBEKPIMEMBER","CUBEMEMBER","CUBEMEMBERPROPERTY","CUBERANKEDMEMBER","CUBESET","CUBESETCOUNT","CUBEVALUE","CUMIPMT","CUMPRINC","DATE","DATEDIF","DATEVALUE","DAVERAGE","DAY","DAYS","DAYS360","DB","DBCS","DCOUNT","DCOUNTA","DDB","DEC2BIN","DEC2HEX","DEC2OCT","DECIMAL","DEGREES","DELTA","DEVSQ","DGET","DISC","DMAX","DMIN","DOLLAR","DOLLARDE","DOLLARFR","DPRODUCT","DSTDEV","DSTDEVP","DSUM","DURATION","DVAR","DVARP","EDATE","EFFECT","ENCODEURL","EOMONTH","ERF","ERF.PRECISE","ERFC","ERFC.PRECISE","ERROR.TYPE","EUROCONVERT","EVEN","EXACT","EXP","EXPON.DIST","EXPONDIST","FACT","FACTDOUBLE","FALSE|0","F.DIST","FDIST","F.DIST.RT","FILTERXML","FIND","FINDB","F.INV","F.INV.RT","FINV","FISHER","FISHERINV","FIXED","FLOOR","FLOOR.MATH","FLOOR.PRECISE","FORECAST","FORECAST.ETS","FORECAST.ETS.CONFINT","FORECAST.ETS.SEASONALITY","FORECAST.ETS.STAT","FORECAST.LINEAR","FORMULATEXT","FREQUENCY","F.TEST","FTEST","FV","FVSCHEDULE","GAMMA","GAMMA.DIST","GAMMADIST","GAMMA.INV","GAMMAINV","GAMMALN","GAMMALN.PRECISE","GAUSS","GCD","GEOMEAN","GESTEP","GETPIVOTDATA","GROWTH","HARMEAN","HEX2BIN","HEX2DEC","HEX2OCT","HLOOKUP","HOUR","HYPERLINK","HYPGEOM.DIST","HYPGEOMDIST","IF","IFERROR","IFNA","IFS","IMABS","IMAGINARY","IMARGUMENT","IMCONJUGATE","IMCOS","IMCOSH","IMCOT","IMCSC","IMCSCH","IMDIV","IMEXP","IMLN","IMLOG10","IMLOG2","IMPOWER","IMPRODUCT","IMREAL","IMSEC","IMSECH","IMSIN","IMSINH","IMSQRT","IMSUB","IMSUM","IMTAN","INDEX","INDIRECT","INFO","INT","INTERCEPT","INTRATE","IPMT","IRR","ISBLANK","ISERR","ISERROR","ISEVEN","ISFORMULA","ISLOGICAL","ISNA","ISNONTEXT","ISNUMBER","ISODD","ISREF","ISTEXT","ISO.CEILING","ISOWEEKNUM","ISPMT","JIS","KURT","LARGE","LCM","LEFT","LEFTB","LEN","LENB","LINEST","LN","LOG","LOG10","LOGEST","LOGINV","LOGNORM.DIST","LOGNORMDIST","LOGNORM.INV","LOOKUP","LOWER","MATCH","MAX","MAXA","MAXIFS","MDETERM","MDURATION","MEDIAN","MID","MIDBs","MIN","MINIFS","MINA","MINUTE","MINVERSE","MIRR","MMULT","MOD","MODE","MODE.MULT","MODE.SNGL","MONTH","MROUND","MULTINOMIAL","MUNIT","N","NA","NEGBINOM.DIST","NEGBINOMDIST","NETWORKDAYS","NETWORKDAYS.INTL","NOMINAL","NORM.DIST","NORMDIST","NORMINV","NORM.INV","NORM.S.DIST","NORMSDIST","NORM.S.INV","NORMSINV","NOT","NOW","NPER","NPV","NUMBERVALUE","OCT2BIN","OCT2DEC","OCT2HEX","ODD","ODDFPRICE","ODDFYIELD","ODDLPRICE","ODDLYIELD","OFFSET","OR","PDURATION","PEARSON","PERCENTILE.EXC","PERCENTILE.INC","PERCENTILE","PERCENTRANK.EXC","PERCENTRANK.INC","PERCENTRANK","PERMUT","PERMUTATIONA","PHI","PHONETIC","PI","PMT","POISSON.DIST","POISSON","POWER","PPMT","PRICE","PRICEDISC","PRICEMAT","PROB","PRODUCT","PROPER","PV","QUARTILE","QUARTILE.EXC","QUARTILE.INC","QUOTIENT","RADIANS","RAND","RANDBETWEEN","RANK.AVG","RANK.EQ","RANK","RATE","RECEIVED","REGISTER.ID","REPLACE","REPLACEB","REPT","RIGHT","RIGHTB","ROMAN","ROUND","ROUNDDOWN","ROUNDUP","ROW","ROWS","RRI","RSQ","RTD","SEARCH","SEARCHB","SEC","SECH","SECOND","SERIESSUM","SHEET","SHEETS","SIGN","SIN","SINH","SKEW","SKEW.P","SLN","SLOPE","SMALL","SQL.REQUEST","SQRT","SQRTPI","STANDARDIZE","STDEV","STDEV.P","STDEV.S","STDEVA","STDEVP","STDEVPA","STEYX","SUBSTITUTE","SUBTOTAL","SUM","SUMIF","SUMIFS","SUMPRODUCT","SUMSQ","SUMX2MY2","SUMX2PY2","SUMXMY2","SWITCH","SYD","T","TAN","TANH","TBILLEQ","TBILLPRICE","TBILLYIELD","T.DIST","T.DIST.2T","T.DIST.RT","TDIST","TEXT","TEXTJOIN","TIME","TIMEVALUE","T.INV","T.INV.2T","TINV","TODAY","TRANSPOSE","TREND","TRIM","TRIMMEAN","TRUE|0","TRUNC","T.TEST","TTEST","TYPE","UNICHAR","UNICODE","UPPER","VALUE","VAR","VAR.P","VAR.S","VARA","VARP","VARPA","VDB","VLOOKUP","WEBSERVICE","WEEKDAY","WEEKNUM","WEIBULL","WEIBULL.DIST","WORKDAY","WORKDAY.INTL","XIRR","XNPV","XOR","YEAR","YEARFRAC","YIELD","YIELDDISC","YIELDMAT","Z.TEST","ZTEST"]},contains:[{begin:/^=/,end:/[^=]/,returnEnd:!0,illegal:/=/,relevance:10},{className:"symbol",begin:/\b[A-Z]{1,2}\d+\b/,end:/[^\d]/,excludeEnd:!0,relevance:0},{className:"symbol",begin:/[A-Z]{0,2}\d*:[A-Z]{0,2}\d*/,relevance:0},e.BACKSLASH_ESCAPE,e.QUOTE_STRING_MODE,{className:"number",begin:e.NUMBER_RE+"(%)?",relevance:0},e.COMMENT(/\bN\(/,/\)/,{excludeBegin:!0,excludeEnd:!0,illegal:/\n/})]}}function $dn(e){return{name:"FIX",contains:[{begin:/[^\u2401\u0001]+/,end:/[\u2401\u0001]/,excludeEnd:!0,returnBegin:!0,returnEnd:!1,contains:[{begin:/([^\u2401\u0001=]+)/,end:/=([^\u2401\u0001=]+)/,returnEnd:!0,returnBegin:!1,className:"attr"},{begin:/=/,end:/([\u2401\u0001])/,excludeEnd:!0,excludeBegin:!0,className:"string"}]}],case_insensitive:!0}}function Fdn(e){const t={className:"string",begin:/'(.|\\[xXuU][a-zA-Z0-9]+)'/},n={className:"string",variants:[{begin:'"',end:'"'}]},r={className:"function",beginKeywords:"def",end:/[:={\[(\n;]/,excludeEnd:!0,contains:[{className:"title",relevance:0,begin:/[^0-9\n\t "'(),.`{}\[\]:;][^\n\t "'(),.`{}\[\]:;]+|[^0-9\n\t "'(),.`{}\[\]:;=]/}]};return{name:"Flix",keywords:{keyword:["case","class","def","else","enum","if","impl","import","in","lat","rel","index","let","match","namespace","switch","type","yield","with"],literal:["true","false"]},contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,t,n,r,e.C_NUMBER_MODE]}}function Bdn(e){const t=e.regex,n={className:"params",begin:"\\(",end:"\\)"},r={variants:[e.COMMENT("!","$",{relevance:0}),e.COMMENT("^C[ ]","$",{relevance:0}),e.COMMENT("^C$","$",{relevance:0})]},i=/(_[a-z_\d]+)?/,o=/([de][+-]?\d+)?/,a={className:"number",variants:[{begin:t.concat(/\b\d+/,/\.(\d*)/,o,i)},{begin:t.concat(/\b\d+/,o,i)},{begin:t.concat(/\.\d+/,o,i)}],relevance:0},s={className:"function",beginKeywords:"subroutine function program",illegal:"[${=\\n]",contains:[e.UNDERSCORE_TITLE_MODE,n]},l={className:"string",relevance:0,variants:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]};return{name:"Fortran",case_insensitive:!0,aliases:["f90","f95"],keywords:{keyword:["kind","do","concurrent","local","shared","while","private","call","intrinsic","where","elsewhere","type","endtype","endmodule","endselect","endinterface","end","enddo","endif","if","forall","endforall","only","contains","default","return","stop","then","block","endblock","endassociate","public","subroutine|10","function","program",".and.",".or.",".not.",".le.",".eq.",".ge.",".gt.",".lt.","goto","save","else","use","module","select","case","access","blank","direct","exist","file","fmt","form","formatted","iostat","name","named","nextrec","number","opened","rec","recl","sequential","status","unformatted","unit","continue","format","pause","cycle","exit","c_null_char","c_alert","c_backspace","c_form_feed","flush","wait","decimal","round","iomsg","synchronous","nopass","non_overridable","pass","protected","volatile","abstract","extends","import","non_intrinsic","value","deferred","generic","final","enumerator","class","associate","bind","enum","c_int","c_short","c_long","c_long_long","c_signed_char","c_size_t","c_int8_t","c_int16_t","c_int32_t","c_int64_t","c_int_least8_t","c_int_least16_t","c_int_least32_t","c_int_least64_t","c_int_fast8_t","c_int_fast16_t","c_int_fast32_t","c_int_fast64_t","c_intmax_t","C_intptr_t","c_float","c_double","c_long_double","c_float_complex","c_double_complex","c_long_double_complex","c_bool","c_char","c_null_ptr","c_null_funptr","c_new_line","c_carriage_return","c_horizontal_tab","c_vertical_tab","iso_c_binding","c_loc","c_funloc","c_associated","c_f_pointer","c_ptr","c_funptr","iso_fortran_env","character_storage_size","error_unit","file_storage_size","input_unit","iostat_end","iostat_eor","numeric_storage_size","output_unit","c_f_procpointer","ieee_arithmetic","ieee_support_underflow_control","ieee_get_underflow_mode","ieee_set_underflow_mode","newunit","contiguous","recursive","pad","position","action","delim","readwrite","eor","advance","nml","interface","procedure","namelist","include","sequence","elemental","pure","impure","integer","real","character","complex","logical","codimension","dimension","allocatable|10","parameter","external","implicit|10","none","double","precision","assign","intent","optional","pointer","target","in","out","common","equivalence","data"],literal:[".False.",".True."],built_in:["alog","alog10","amax0","amax1","amin0","amin1","amod","cabs","ccos","cexp","clog","csin","csqrt","dabs","dacos","dasin","datan","datan2","dcos","dcosh","ddim","dexp","dint","dlog","dlog10","dmax1","dmin1","dmod","dnint","dsign","dsin","dsinh","dsqrt","dtan","dtanh","float","iabs","idim","idint","idnint","ifix","isign","max0","max1","min0","min1","sngl","algama","cdabs","cdcos","cdexp","cdlog","cdsin","cdsqrt","cqabs","cqcos","cqexp","cqlog","cqsin","cqsqrt","dcmplx","dconjg","derf","derfc","dfloat","dgamma","dimag","dlgama","iqint","qabs","qacos","qasin","qatan","qatan2","qcmplx","qconjg","qcos","qcosh","qdim","qerf","qerfc","qexp","qgamma","qimag","qlgama","qlog","qlog10","qmax1","qmin1","qmod","qnint","qsign","qsin","qsinh","qsqrt","qtan","qtanh","abs","acos","aimag","aint","anint","asin","atan","atan2","char","cmplx","conjg","cos","cosh","exp","ichar","index","int","log","log10","max","min","nint","sign","sin","sinh","sqrt","tan","tanh","print","write","dim","lge","lgt","lle","llt","mod","nullify","allocate","deallocate","adjustl","adjustr","all","allocated","any","associated","bit_size","btest","ceiling","count","cshift","date_and_time","digits","dot_product","eoshift","epsilon","exponent","floor","fraction","huge","iand","ibclr","ibits","ibset","ieor","ior","ishft","ishftc","lbound","len_trim","matmul","maxexponent","maxloc","maxval","merge","minexponent","minloc","minval","modulo","mvbits","nearest","pack","present","product","radix","random_number","random_seed","range","repeat","reshape","rrspacing","scale","scan","selected_int_kind","selected_real_kind","set_exponent","shape","size","spacing","spread","sum","system_clock","tiny","transpose","trim","ubound","unpack","verify","achar","iachar","transfer","dble","entry","dprod","cpu_time","command_argument_count","get_command","get_command_argument","get_environment_variable","is_iostat_end","ieee_arithmetic","ieee_support_underflow_control","ieee_get_underflow_mode","ieee_set_underflow_mode","is_iostat_eor","move_alloc","new_line","selected_char_kind","same_type_as","extends_type_of","acosh","asinh","atanh","bessel_j0","bessel_j1","bessel_jn","bessel_y0","bessel_y1","bessel_yn","erf","erfc","erfc_scaled","gamma","log_gamma","hypot","norm2","atomic_define","atomic_ref","execute_command_line","leadz","trailz","storage_size","merge_bits","bge","bgt","ble","blt","dshiftl","dshiftr","findloc","iall","iany","iparity","image_index","lcobound","ucobound","maskl","maskr","num_images","parity","popcnt","poppar","shifta","shiftl","shiftr","this_image","sync","change","team","co_broadcast","co_max","co_min","co_sum","co_reduce"]},illegal:/\/\*/,contains:[l,s,{begin:/^C\s*=(?!=)/,relevance:0},r,a]}}function jdn(e){return new RegExp(e.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&"),"m")}function RPe(e){return e?typeof e=="string"?e:e.source:null}function aC(e){return Hu("(?=",e,")")}function Hu(...e){return e.map(t=>RPe(t)).join("")}function Hdn(e){const t=e[e.length-1];return typeof t=="object"&&t.constructor===Object?(e.splice(e.length-1,1),t):{}}function s1(...e){return"("+(Hdn(e).capture?"":"?:")+e.map(t=>RPe(t)).join("|")+")"}function Udn(e){const t=["abstract","and","as","assert","base","begin","class","default","delegate","do","done","downcast","downto","elif","else","end","exception","extern","finally","fixed","for","fun","function","global","if","in","inherit","inline","interface","internal","lazy","let","match","member","module","mutable","namespace","new","of","open","or","override","private","public","rec","return","static","struct","then","to","try","type","upcast","use","val","void","when","while","with","yield"],n={scope:"keyword",match:/\b(yield|return|let|do|match|use)!/},r=["if","else","endif","line","nowarn","light","r","i","I","load","time","help","quit"],i=["true","false","null","Some","None","Ok","Error","infinity","infinityf","nan","nanf"],o=["__LINE__","__SOURCE_DIRECTORY__","__SOURCE_FILE__"],a=["bool","byte","sbyte","int8","int16","int32","uint8","uint16","uint32","int","uint","int64","uint64","nativeint","unativeint","decimal","float","double","float32","single","char","string","unit","bigint","option","voption","list","array","seq","byref","exn","inref","nativeptr","obj","outref","voidptr","Result"],s={keyword:t,literal:i,built_in:["not","ref","raise","reraise","dict","readOnlyDict","set","get","enum","sizeof","typeof","typedefof","nameof","nullArg","invalidArg","invalidOp","id","fst","snd","ignore","lock","using","box","unbox","tryUnbox","printf","printfn","sprintf","eprintf","eprintfn","fprintf","fprintfn","failwith","failwithf"],"variable.constant":o},l={variants:[e.COMMENT(/\(\*(?!\))/,/\*\)/,{contains:["self"]}),e.C_LINE_COMMENT_MODE]},c=/[a-zA-Z_](\w|')*/,u={scope:"variable",begin:/``/,end:/``/},d=/\B('|\^)/,f={scope:"symbol",variants:[{match:Hu(d,/``.*?``/)},{match:Hu(d,e.UNDERSCORE_IDENT_RE)}],relevance:0},h=function({includeEqual:k}){let B;k?B="!%&*+-/<=>@^|~?":B="!%&*+-/<>@^|~?";const A=Array.from(B),P=Hu("[",...A.map(jdn),"]"),z=s1(P,/\./),L=Hu(z,aC(z)),V=s1(Hu(L,z,"*"),Hu(P,"+"));return{scope:"operator",match:s1(V,/:\?>/,/:\?/,/:>/,/:=/,/::?/,/\$/),relevance:0}},m=h({includeEqual:!0}),g=h({includeEqual:!1}),v=function(k,B){return{begin:Hu(k,aC(Hu(/\s*/,s1(/\w/,/'/,/\^/,/#/,/``/,/\(/,/{\|/)))),beginScope:B,end:aC(s1(/\n/,/=/)),relevance:0,keywords:e.inherit(s,{type:a}),contains:[l,f,e.inherit(u,{scope:null}),g]}},y=v(/:/,"operator"),b=v(/\bof\b/,"keyword"),_={begin:[/(^|\s+)/,/type/,/\s+/,c],beginScope:{2:"keyword",4:"title.class"},end:aC(/\(|=|$/),keywords:s,contains:[l,e.inherit(u,{scope:null}),f,{scope:"operator",match:/<|>/},y]},E={scope:"computation-expression",match:/\b[_a-z]\w*(?=\s*\{)/},w={begin:[/^\s*/,Hu(/#/,s1(...r)),/\b/],beginScope:{2:"meta"},end:aC(/\s|$/)},S={variants:[e.BINARY_NUMBER_MODE,e.C_NUMBER_MODE]},C={scope:"string",begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE]},T={scope:"string",begin:/@"/,end:/"/,contains:[{match:/""/},e.BACKSLASH_ESCAPE]},x={scope:"string",begin:/"""/,end:/"""/,relevance:2},O={scope:"subst",begin:/\{/,end:/\}/,keywords:s},N={scope:"string",begin:/\$"/,end:/"/,contains:[{match:/\{\{/},{match:/\}\}/},e.BACKSLASH_ESCAPE,O]},I={scope:"string",begin:/(\$@|@\$)"/,end:/"/,contains:[{match:/\{\{/},{match:/\}\}/},{match:/""/},e.BACKSLASH_ESCAPE,O]},M={scope:"string",begin:/\$"""/,end:/"""/,contains:[{match:/\{\{/},{match:/\}\}/},O],relevance:2},F={scope:"string",match:Hu(/'/,s1(/[^\\']/,/\\(?:.|\d{3}|x[a-fA-F\d]{2}|u[a-fA-F\d]{4}|U[a-fA-F\d]{8})/),/'/)};return O.contains=[I,N,T,C,F,n,l,u,y,E,w,S,f,m],{name:"F#",aliases:["fs","f#"],keywords:s,illegal:/\/\*/,classNameAliases:{"computation-expression":"keyword"},contains:[n,{variants:[M,I,N,x,T,C,F]},l,u,_,{scope:"meta",begin:/\[</,end:/>\]/,relevance:2,contains:[u,x,T,C,F,S]},b,y,E,w,S,f,m]}}function zdn(e){const t=e.regex,n={keyword:"abort acronym acronyms alias all and assign binary card diag display else eq file files for free ge gt if integer le loop lt maximizing minimizing model models ne negative no not option options or ord positive prod put putpage puttl repeat sameas semicont semiint smax smin solve sos1 sos2 sum system table then until using while xor yes",literal:"eps inf na",built_in:"abs arccos arcsin arctan arctan2 Beta betaReg binomial ceil centropy cos cosh cvPower div div0 eDist entropy errorf execSeed exp fact floor frac gamma gammaReg log logBeta logGamma log10 log2 mapVal max min mod ncpCM ncpF ncpVUpow ncpVUsin normal pi poly power randBinomial randLinear randTriangle round rPower sigmoid sign signPower sin sinh slexp sllog10 slrec sqexp sqlog10 sqr sqrec sqrt tan tanh trunc uniform uniformInt vcPower bool_and bool_eqv bool_imp bool_not bool_or bool_xor ifThen rel_eq rel_ge rel_gt rel_le rel_lt rel_ne gday gdow ghour gleap gmillisec gminute gmonth gsecond gyear jdate jnow jstart jtime errorLevel execError gamsRelease gamsVersion handleCollect handleDelete handleStatus handleSubmit heapFree heapLimit heapSize jobHandle jobKill jobStatus jobTerminate licenseLevel licenseStatus maxExecError sleep timeClose timeComp timeElapsed timeExec timeStart"},r={className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0},i={className:"symbol",variants:[{begin:/=[lgenxc]=/},{begin:/\$/}]},o={className:"comment",variants:[{begin:"'",end:"'"},{begin:'"',end:'"'}],illegal:"\\n",contains:[e.BACKSLASH_ESCAPE]},a={begin:"/",end:"/",keywords:n,contains:[o,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,e.C_NUMBER_MODE]},s=/[a-z0-9&#*=?@\\><:,()$[\]_.{}!+%^-]+/,l={begin:/[a-z][a-z0-9_]*(\([a-z0-9_, ]*\))?[ \t]+/,excludeBegin:!0,end:"$",endsWithParent:!0,contains:[o,a,{className:"comment",begin:t.concat(s,t.anyNumberOfTimes(t.concat(/[ ]+/,s))),relevance:0}]};return{name:"GAMS",aliases:["gms"],case_insensitive:!0,keywords:n,contains:[e.COMMENT(/^\$ontext/,/^\$offtext/),{className:"meta",begin:"^\\$[a-z0-9]+",end:"$",returnBegin:!0,contains:[{className:"keyword",begin:"^\\$[a-z0-9]+"}]},e.COMMENT("^\\*","$"),e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,{beginKeywords:"set sets parameter parameters variable variables scalar scalars equation equations",end:";",contains:[e.COMMENT("^\\*","$"),e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,a,l]},{beginKeywords:"table",end:";",returnBegin:!0,contains:[{beginKeywords:"table",end:"$",contains:[l]},e.COMMENT("^\\*","$"),e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,e.C_NUMBER_MODE]},{className:"function",begin:/^[a-z][a-z0-9_,\-+' ()$]+\.{2}/,returnBegin:!0,contains:[{className:"title",begin:/^[a-z0-9_]+/},r,i]},e.C_NUMBER_MODE,i]}}function Vdn(e){const t={keyword:"bool break call callexe checkinterrupt clear clearg closeall cls comlog compile continue create debug declare delete disable dlibrary dllcall do dos ed edit else elseif enable end endfor endif endp endo errorlog errorlogat expr external fn for format goto gosub graph if keyword let lib library line load loadarray loadexe loadf loadk loadm loadp loads loadx local locate loopnextindex lprint lpwidth lshow matrix msym ndpclex new open output outwidth plot plotsym pop prcsn print printdos proc push retp return rndcon rndmod rndmult rndseed run save saveall screen scroll setarray show sparse stop string struct system trace trap threadfor threadendfor threadbegin threadjoin threadstat threadend until use while winprint ne ge le gt lt and xor or not eq eqv",built_in:"abs acf aconcat aeye amax amean AmericanBinomCall AmericanBinomCall_Greeks AmericanBinomCall_ImpVol AmericanBinomPut AmericanBinomPut_Greeks AmericanBinomPut_ImpVol AmericanBSCall AmericanBSCall_Greeks AmericanBSCall_ImpVol AmericanBSPut AmericanBSPut_Greeks AmericanBSPut_ImpVol amin amult annotationGetDefaults annotationSetBkd annotationSetFont annotationSetLineColor annotationSetLineStyle annotationSetLineThickness annualTradingDays arccos arcsin areshape arrayalloc arrayindex arrayinit arraytomat asciiload asclabel astd astds asum atan atan2 atranspose axmargin balance band bandchol bandcholsol bandltsol bandrv bandsolpd bar base10 begwind besselj bessely beta box boxcox cdfBeta cdfBetaInv cdfBinomial cdfBinomialInv cdfBvn cdfBvn2 cdfBvn2e cdfCauchy cdfCauchyInv cdfChic cdfChii cdfChinc cdfChincInv cdfExp cdfExpInv cdfFc cdfFnc cdfFncInv cdfGam cdfGenPareto cdfHyperGeo cdfLaplace cdfLaplaceInv cdfLogistic cdfLogisticInv cdfmControlCreate cdfMvn cdfMvn2e cdfMvnce cdfMvne cdfMvt2e cdfMvtce cdfMvte cdfN cdfN2 cdfNc cdfNegBinomial cdfNegBinomialInv cdfNi cdfPoisson cdfPoissonInv cdfRayleigh cdfRayleighInv cdfTc cdfTci cdfTnc cdfTvn cdfWeibull cdfWeibullInv cdir ceil ChangeDir chdir chiBarSquare chol choldn cholsol cholup chrs close code cols colsf combinate combinated complex con cond conj cons ConScore contour conv convertsatostr convertstrtosa corrm corrms corrvc corrx corrxs cos cosh counts countwts crossprd crout croutp csrcol csrlin csvReadM csvReadSA cumprodc cumsumc curve cvtos datacreate datacreatecomplex datalist dataload dataloop dataopen datasave date datestr datestring datestrymd dayinyr dayofweek dbAddDatabase dbClose dbCommit dbCreateQuery dbExecQuery dbGetConnectOptions dbGetDatabaseName dbGetDriverName dbGetDrivers dbGetHostName dbGetLastErrorNum dbGetLastErrorText dbGetNumericalPrecPolicy dbGetPassword dbGetPort dbGetTableHeaders dbGetTables dbGetUserName dbHasFeature dbIsDriverAvailable dbIsOpen dbIsOpenError dbOpen dbQueryBindValue dbQueryClear dbQueryCols dbQueryExecPrepared dbQueryFetchAllM dbQueryFetchAllSA dbQueryFetchOneM dbQueryFetchOneSA dbQueryFinish dbQueryGetBoundValue dbQueryGetBoundValues dbQueryGetField dbQueryGetLastErrorNum dbQueryGetLastErrorText dbQueryGetLastInsertID dbQueryGetLastQuery dbQueryGetPosition dbQueryIsActive dbQueryIsForwardOnly dbQueryIsNull dbQueryIsSelect dbQueryIsValid dbQueryPrepare dbQueryRows dbQuerySeek dbQuerySeekFirst dbQuerySeekLast dbQuerySeekNext dbQuerySeekPrevious dbQuerySetForwardOnly dbRemoveDatabase dbRollback dbSetConnectOptions dbSetDatabaseName dbSetHostName dbSetNumericalPrecPolicy dbSetPort dbSetUserName dbTransaction DeleteFile delif delrows denseToSp denseToSpRE denToZero design det detl dfft dffti diag diagrv digamma doswin DOSWinCloseall DOSWinOpen dotfeq dotfeqmt dotfge dotfgemt dotfgt dotfgtmt dotfle dotflemt dotflt dotfltmt dotfne dotfnemt draw drop dsCreate dstat dstatmt dstatmtControlCreate dtdate dtday dttime dttodtv dttostr dttoutc dtvnormal dtvtodt dtvtoutc dummy dummybr dummydn eig eigh eighv eigv elapsedTradingDays endwind envget eof eqSolve eqSolvemt eqSolvemtControlCreate eqSolvemtOutCreate eqSolveset erf erfc erfccplx erfcplx error etdays ethsec etstr EuropeanBinomCall EuropeanBinomCall_Greeks EuropeanBinomCall_ImpVol EuropeanBinomPut EuropeanBinomPut_Greeks EuropeanBinomPut_ImpVol EuropeanBSCall EuropeanBSCall_Greeks EuropeanBSCall_ImpVol EuropeanBSPut EuropeanBSPut_Greeks EuropeanBSPut_ImpVol exctsmpl exec execbg exp extern eye fcheckerr fclearerr feq feqmt fflush fft ffti fftm fftmi fftn fge fgemt fgets fgetsa fgetsat fgetst fgt fgtmt fileinfo filesa fle flemt floor flt fltmt fmod fne fnemt fonts fopen formatcv formatnv fputs fputst fseek fstrerror ftell ftocv ftos ftostrC gamma gammacplx gammaii gausset gdaAppend gdaCreate gdaDStat gdaDStatMat gdaGetIndex gdaGetName gdaGetNames gdaGetOrders gdaGetType gdaGetTypes gdaGetVarInfo gdaIsCplx gdaLoad gdaPack gdaRead gdaReadByIndex gdaReadSome gdaReadSparse gdaReadStruct gdaReportVarInfo gdaSave gdaUpdate gdaUpdateAndPack gdaVars gdaWrite gdaWrite32 gdaWriteSome getarray getdims getf getGAUSShome getmatrix getmatrix4D getname getnamef getNextTradingDay getNextWeekDay getnr getorders getpath getPreviousTradingDay getPreviousWeekDay getRow getscalar3D getscalar4D getTrRow getwind glm gradcplx gradMT gradMTm gradMTT gradMTTm gradp graphprt graphset hasimag header headermt hess hessMT hessMTg hessMTgw hessMTm hessMTmw hessMTT hessMTTg hessMTTgw hessMTTm hessMTw hessp hist histf histp hsec imag indcv indexcat indices indices2 indicesf indicesfn indnv indsav integrate1d integrateControlCreate intgrat2 intgrat3 inthp1 inthp2 inthp3 inthp4 inthpControlCreate intquad1 intquad2 intquad3 intrleav intrleavsa intrsect intsimp inv invpd invswp iscplx iscplxf isden isinfnanmiss ismiss key keyav keyw lag lag1 lagn lapEighb lapEighi lapEighvb lapEighvi lapgEig lapgEigh lapgEighv lapgEigv lapgSchur lapgSvdcst lapgSvds lapgSvdst lapSvdcusv lapSvds lapSvdusv ldlp ldlsol linSolve listwise ln lncdfbvn lncdfbvn2 lncdfmvn lncdfn lncdfn2 lncdfnc lnfact lngammacplx lnpdfmvn lnpdfmvt lnpdfn lnpdft loadd loadstruct loadwind loess loessmt loessmtControlCreate log loglog logx logy lower lowmat lowmat1 ltrisol lu lusol machEpsilon make makevars makewind margin matalloc matinit mattoarray maxbytes maxc maxindc maxv maxvec mbesselei mbesselei0 mbesselei1 mbesseli mbesseli0 mbesseli1 meanc median mergeby mergevar minc minindc minv miss missex missrv moment momentd movingave movingaveExpwgt movingaveWgt nextindex nextn nextnevn nextwind ntos null null1 numCombinations ols olsmt olsmtControlCreate olsqr olsqr2 olsqrmt ones optn optnevn orth outtyp pacf packedToSp packr parse pause pdfCauchy pdfChi pdfExp pdfGenPareto pdfHyperGeo pdfLaplace pdfLogistic pdfn pdfPoisson pdfRayleigh pdfWeibull pi pinv pinvmt plotAddArrow plotAddBar plotAddBox plotAddHist plotAddHistF plotAddHistP plotAddPolar plotAddScatter plotAddShape plotAddTextbox plotAddTS plotAddXY plotArea plotBar plotBox plotClearLayout plotContour plotCustomLayout plotGetDefaults plotHist plotHistF plotHistP plotLayout plotLogLog plotLogX plotLogY plotOpenWindow plotPolar plotSave plotScatter plotSetAxesPen plotSetBar plotSetBarFill plotSetBarStacked plotSetBkdColor plotSetFill plotSetGrid plotSetLegend plotSetLineColor plotSetLineStyle plotSetLineSymbol plotSetLineThickness plotSetNewWindow plotSetTitle plotSetWhichYAxis plotSetXAxisShow plotSetXLabel plotSetXRange plotSetXTicInterval plotSetXTicLabel plotSetYAxisShow plotSetYLabel plotSetYRange plotSetZAxisShow plotSetZLabel plotSurface plotTS plotXY polar polychar polyeval polygamma polyint polymake polymat polymroot polymult polyroot pqgwin previousindex princomp printfm printfmt prodc psi putarray putf putvals pvCreate pvGetIndex pvGetParNames pvGetParVector pvLength pvList pvPack pvPacki pvPackm pvPackmi pvPacks pvPacksi pvPacksm pvPacksmi pvPutParVector pvTest pvUnpack QNewton QNewtonmt QNewtonmtControlCreate QNewtonmtOutCreate QNewtonSet QProg QProgmt QProgmtInCreate qqr qqre qqrep qr qre qrep qrsol qrtsol qtyr qtyre qtyrep quantile quantiled qyr qyre qyrep qz rank rankindx readr real reclassify reclassifyCuts recode recserar recsercp recserrc rerun rescale reshape rets rev rfft rffti rfftip rfftn rfftnp rfftp rndBernoulli rndBeta rndBinomial rndCauchy rndChiSquare rndCon rndCreateState rndExp rndGamma rndGeo rndGumbel rndHyperGeo rndi rndKMbeta rndKMgam rndKMi rndKMn rndKMnb rndKMp rndKMu rndKMvm rndLaplace rndLCbeta rndLCgam rndLCi rndLCn rndLCnb rndLCp rndLCu rndLCvm rndLogNorm rndMTu rndMVn rndMVt rndn rndnb rndNegBinomial rndp rndPoisson rndRayleigh rndStateSkip rndu rndvm rndWeibull rndWishart rotater round rows rowsf rref sampleData satostrC saved saveStruct savewind scale scale3d scalerr scalinfnanmiss scalmiss schtoc schur searchsourcepath seekr select selif seqa seqm setdif setdifsa setvars setvwrmode setwind shell shiftr sin singleindex sinh sleep solpd sortc sortcc sortd sorthc sorthcc sortind sortindc sortmc sortr sortrc spBiconjGradSol spChol spConjGradSol spCreate spDenseSubmat spDiagRvMat spEigv spEye spLDL spline spLU spNumNZE spOnes spreadSheetReadM spreadSheetReadSA spreadSheetWrite spScale spSubmat spToDense spTrTDense spTScalar spZeros sqpSolve sqpSolveMT sqpSolveMTControlCreate sqpSolveMTlagrangeCreate sqpSolveMToutCreate sqpSolveSet sqrt statements stdc stdsc stocv stof strcombine strindx strlen strput strrindx strsect strsplit strsplitPad strtodt strtof strtofcplx strtriml strtrimr strtrunc strtruncl strtruncpad strtruncr submat subscat substute subvec sumc sumr surface svd svd1 svd2 svdcusv svds svdusv sysstate tab tan tanh tempname time timedt timestr timeutc title tkf2eps tkf2ps tocart todaydt toeplitz token topolar trapchk trigamma trimr trunc type typecv typef union unionsa uniqindx uniqindxsa unique uniquesa upmat upmat1 upper utctodt utctodtv utrisol vals varCovMS varCovXS varget vargetl varmall varmares varput varputl vartypef vcm vcms vcx vcxs vec vech vecr vector vget view viewxyz vlist vnamecv volume vput vread vtypecv wait waitc walkindex where window writer xlabel xlsGetSheetCount xlsGetSheetSize xlsGetSheetTypes xlsMakeRange xlsReadM xlsReadSA xlsWrite xlsWriteM xlsWriteSA xpnd xtics xy xyz ylabel ytics zeros zeta zlabel ztics cdfEmpirical dot h5create h5open h5read h5readAttribute h5write h5writeAttribute ldl plotAddErrorBar plotAddSurface plotCDFEmpirical plotSetColormap plotSetContourLabels plotSetLegendFont plotSetTextInterpreter plotSetXTicCount plotSetYTicCount plotSetZLevels powerm strjoin sylvester strtrim",literal:"DB_AFTER_LAST_ROW DB_ALL_TABLES DB_BATCH_OPERATIONS DB_BEFORE_FIRST_ROW DB_BLOB DB_EVENT_NOTIFICATIONS DB_FINISH_QUERY DB_HIGH_PRECISION DB_LAST_INSERT_ID DB_LOW_PRECISION_DOUBLE DB_LOW_PRECISION_INT32 DB_LOW_PRECISION_INT64 DB_LOW_PRECISION_NUMBERS DB_MULTIPLE_RESULT_SETS DB_NAMED_PLACEHOLDERS DB_POSITIONAL_PLACEHOLDERS DB_PREPARED_QUERIES DB_QUERY_SIZE DB_SIMPLE_LOCKING DB_SYSTEM_TABLES DB_TABLES DB_TRANSACTIONS DB_UNICODE DB_VIEWS __STDIN __STDOUT __STDERR __FILE_DIR"},n=e.COMMENT("@","@"),r={className:"meta",begin:"#",end:"$",keywords:{keyword:"define definecs|10 undef ifdef ifndef iflight ifdllcall ifmac ifos2win ifunix else endif lineson linesoff srcfile srcline"},contains:[{begin:/\\\n/,relevance:0},{beginKeywords:"include",end:"$",keywords:{keyword:"include"},contains:[{className:"string",begin:'"',end:'"',illegal:"\\n"}]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,n]},i={begin:/\bstruct\s+/,end:/\s/,keywords:"struct",contains:[{className:"type",begin:e.UNDERSCORE_IDENT_RE,relevance:0}]},o=[{className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,endsWithParent:!0,relevance:0,contains:[{className:"literal",begin:/\.\.\./},e.C_NUMBER_MODE,e.C_BLOCK_COMMENT_MODE,n,i]}],a={className:"title",begin:e.UNDERSCORE_IDENT_RE,relevance:0},s=function(f,h,m){const g=e.inherit({className:"function",beginKeywords:f,end:h,excludeEnd:!0,contains:[].concat(o)},{});return g.contains.push(a),g.contains.push(e.C_NUMBER_MODE),g.contains.push(e.C_BLOCK_COMMENT_MODE),g.contains.push(n),g},l={className:"built_in",begin:"\\b("+t.built_in.split(" ").join("|")+")\\b"},c={className:"string",begin:'"',end:'"',contains:[e.BACKSLASH_ESCAPE],relevance:0},u={begin:e.UNDERSCORE_IDENT_RE+"\\s*\\(",returnBegin:!0,keywords:t,relevance:0,contains:[{beginKeywords:t.keyword},l,{className:"built_in",begin:e.UNDERSCORE_IDENT_RE,relevance:0}]},d={begin:/\(/,end:/\)/,relevance:0,keywords:{built_in:t.built_in,literal:t.literal},contains:[e.C_NUMBER_MODE,e.C_BLOCK_COMMENT_MODE,n,l,u,c,"self"]};return u.contains.push(d),{name:"GAUSS",aliases:["gss"],case_insensitive:!0,keywords:t,illegal:/(\{[%#]|[%#]\}| <- )/,contains:[e.C_NUMBER_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,n,c,r,{className:"keyword",begin:/\bexternal (matrix|string|array|sparse matrix|struct|proc|keyword|fn)/},s("proc keyword",";"),s("fn","="),{beginKeywords:"for threadfor",end:/;/,relevance:0,contains:[e.C_BLOCK_COMMENT_MODE,n,d]},{variants:[{begin:e.UNDERSCORE_IDENT_RE+"\\."+e.UNDERSCORE_IDENT_RE},{begin:e.UNDERSCORE_IDENT_RE+"\\s*="}],relevance:0},u,i]}}function Gdn(e){const t="[A-Z_][A-Z0-9_.]*",n="%",r={$pattern:t,keyword:"IF DO WHILE ENDWHILE CALL ENDIF SUB ENDSUB GOTO REPEAT ENDREPEAT EQ LT GT NE GE LE OR XOR"},i={className:"meta",begin:"([O])([0-9]+)"},o=e.inherit(e.C_NUMBER_MODE,{begin:"([-+]?((\\.\\d+)|(\\d+)(\\.\\d*)?))|"+e.C_NUMBER_RE}),a=[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.COMMENT(/\(/,/\)/),o,e.inherit(e.APOS_STRING_MODE,{illegal:null}),e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),{className:"name",begin:"([G])([0-9]+\\.?[0-9]?)"},{className:"name",begin:"([M])([0-9]+\\.?[0-9]?)"},{className:"attr",begin:"(VC|VS|#)",end:"(\\d+)"},{className:"attr",begin:"(VZOFX|VZOFY|VZOFZ)"},{className:"built_in",begin:"(ATAN|ABS|ACOS|ASIN|SIN|COS|EXP|FIX|FUP|ROUND|LN|TAN)(\\[)",contains:[o],end:"\\]"},{className:"symbol",variants:[{begin:"N",end:"\\d+",illegal:"\\W"}]}];return{name:"G-code (ISO 6983)",aliases:["nc"],case_insensitive:!0,keywords:r,contains:[{className:"meta",begin:n},i].concat(a)}}function Wdn(e){return{name:"Gherkin",aliases:["feature"],keywords:"Feature Background Ability Business Need Scenario Scenarios Scenario Outline Scenario Template Examples Given And Then But When",contains:[{className:"symbol",begin:"\\*",relevance:0},{className:"meta",begin:"@[^@\\s]+"},{begin:"\\|",end:"\\|\\w*$",contains:[{className:"string",begin:"[^|]+"}]},{className:"variable",begin:"<",end:">"},e.HASH_COMMENT_MODE,{className:"string",begin:'"""',end:'"""'},e.QUOTE_STRING_MODE]}}function qdn(e){return{name:"GLSL",keywords:{keyword:"break continue discard do else for if return while switch case default attribute binding buffer ccw centroid centroid varying coherent column_major const cw depth_any depth_greater depth_less depth_unchanged early_fragment_tests equal_spacing flat fractional_even_spacing fractional_odd_spacing highp in index inout invariant invocations isolines layout line_strip lines lines_adjacency local_size_x local_size_y local_size_z location lowp max_vertices mediump noperspective offset origin_upper_left out packed patch pixel_center_integer point_mode points precise precision quads r11f_g11f_b10f r16 r16_snorm r16f r16i r16ui r32f r32i r32ui r8 r8_snorm r8i r8ui readonly restrict rg16 rg16_snorm rg16f rg16i rg16ui rg32f rg32i rg32ui rg8 rg8_snorm rg8i rg8ui rgb10_a2 rgb10_a2ui rgba16 rgba16_snorm rgba16f rgba16i rgba16ui rgba32f rgba32i rgba32ui rgba8 rgba8_snorm rgba8i rgba8ui row_major sample shared smooth std140 std430 stream triangle_strip triangles triangles_adjacency uniform varying vertices volatile writeonly",type:"atomic_uint bool bvec2 bvec3 bvec4 dmat2 dmat2x2 dmat2x3 dmat2x4 dmat3 dmat3x2 dmat3x3 dmat3x4 dmat4 dmat4x2 dmat4x3 dmat4x4 double dvec2 dvec3 dvec4 float iimage1D iimage1DArray iimage2D iimage2DArray iimage2DMS iimage2DMSArray iimage2DRect iimage3D iimageBuffer iimageCube iimageCubeArray image1D image1DArray image2D image2DArray image2DMS image2DMSArray image2DRect image3D imageBuffer imageCube imageCubeArray int isampler1D isampler1DArray isampler2D isampler2DArray isampler2DMS isampler2DMSArray isampler2DRect isampler3D isamplerBuffer isamplerCube isamplerCubeArray ivec2 ivec3 ivec4 mat2 mat2x2 mat2x3 mat2x4 mat3 mat3x2 mat3x3 mat3x4 mat4 mat4x2 mat4x3 mat4x4 sampler1D sampler1DArray sampler1DArrayShadow sampler1DShadow sampler2D sampler2DArray sampler2DArrayShadow sampler2DMS sampler2DMSArray sampler2DRect sampler2DRectShadow sampler2DShadow sampler3D samplerBuffer samplerCube samplerCubeArray samplerCubeArrayShadow samplerCubeShadow image1D uimage1DArray uimage2D uimage2DArray uimage2DMS uimage2DMSArray uimage2DRect uimage3D uimageBuffer uimageCube uimageCubeArray uint usampler1D usampler1DArray usampler2D usampler2DArray usampler2DMS usampler2DMSArray usampler2DRect usampler3D samplerBuffer usamplerCube usamplerCubeArray uvec2 uvec3 uvec4 vec2 vec3 vec4 void",built_in:"gl_MaxAtomicCounterBindings gl_MaxAtomicCounterBufferSize gl_MaxClipDistances gl_MaxClipPlanes gl_MaxCombinedAtomicCounterBuffers gl_MaxCombinedAtomicCounters gl_MaxCombinedImageUniforms gl_MaxCombinedImageUnitsAndFragmentOutputs gl_MaxCombinedTextureImageUnits gl_MaxComputeAtomicCounterBuffers gl_MaxComputeAtomicCounters gl_MaxComputeImageUniforms gl_MaxComputeTextureImageUnits gl_MaxComputeUniformComponents gl_MaxComputeWorkGroupCount gl_MaxComputeWorkGroupSize gl_MaxDrawBuffers gl_MaxFragmentAtomicCounterBuffers gl_MaxFragmentAtomicCounters gl_MaxFragmentImageUniforms gl_MaxFragmentInputComponents gl_MaxFragmentInputVectors gl_MaxFragmentUniformComponents gl_MaxFragmentUniformVectors gl_MaxGeometryAtomicCounterBuffers gl_MaxGeometryAtomicCounters gl_MaxGeometryImageUniforms gl_MaxGeometryInputComponents gl_MaxGeometryOutputComponents gl_MaxGeometryOutputVertices gl_MaxGeometryTextureImageUnits gl_MaxGeometryTotalOutputComponents gl_MaxGeometryUniformComponents gl_MaxGeometryVaryingComponents gl_MaxImageSamples gl_MaxImageUnits gl_MaxLights gl_MaxPatchVertices gl_MaxProgramTexelOffset gl_MaxTessControlAtomicCounterBuffers gl_MaxTessControlAtomicCounters gl_MaxTessControlImageUniforms gl_MaxTessControlInputComponents gl_MaxTessControlOutputComponents gl_MaxTessControlTextureImageUnits gl_MaxTessControlTotalOutputComponents gl_MaxTessControlUniformComponents gl_MaxTessEvaluationAtomicCounterBuffers gl_MaxTessEvaluationAtomicCounters gl_MaxTessEvaluationImageUniforms gl_MaxTessEvaluationInputComponents gl_MaxTessEvaluationOutputComponents gl_MaxTessEvaluationTextureImageUnits gl_MaxTessEvaluationUniformComponents gl_MaxTessGenLevel gl_MaxTessPatchComponents gl_MaxTextureCoords gl_MaxTextureImageUnits gl_MaxTextureUnits gl_MaxVaryingComponents gl_MaxVaryingFloats gl_MaxVaryingVectors gl_MaxVertexAtomicCounterBuffers gl_MaxVertexAtomicCounters gl_MaxVertexAttribs gl_MaxVertexImageUniforms gl_MaxVertexOutputComponents gl_MaxVertexOutputVectors gl_MaxVertexTextureImageUnits gl_MaxVertexUniformComponents gl_MaxVertexUniformVectors gl_MaxViewports gl_MinProgramTexelOffset gl_BackColor gl_BackLightModelProduct gl_BackLightProduct gl_BackMaterial gl_BackSecondaryColor gl_ClipDistance gl_ClipPlane gl_ClipVertex gl_Color gl_DepthRange gl_EyePlaneQ gl_EyePlaneR gl_EyePlaneS gl_EyePlaneT gl_Fog gl_FogCoord gl_FogFragCoord gl_FragColor gl_FragCoord gl_FragData gl_FragDepth gl_FrontColor gl_FrontFacing gl_FrontLightModelProduct gl_FrontLightProduct gl_FrontMaterial gl_FrontSecondaryColor gl_GlobalInvocationID gl_InstanceID gl_InvocationID gl_Layer gl_LightModel gl_LightSource gl_LocalInvocationID gl_LocalInvocationIndex gl_ModelViewMatrix gl_ModelViewMatrixInverse gl_ModelViewMatrixInverseTranspose gl_ModelViewMatrixTranspose gl_ModelViewProjectionMatrix gl_ModelViewProjectionMatrixInverse gl_ModelViewProjectionMatrixInverseTranspose gl_ModelViewProjectionMatrixTranspose gl_MultiTexCoord0 gl_MultiTexCoord1 gl_MultiTexCoord2 gl_MultiTexCoord3 gl_MultiTexCoord4 gl_MultiTexCoord5 gl_MultiTexCoord6 gl_MultiTexCoord7 gl_Normal gl_NormalMatrix gl_NormalScale gl_NumSamples gl_NumWorkGroups gl_ObjectPlaneQ gl_ObjectPlaneR gl_ObjectPlaneS gl_ObjectPlaneT gl_PatchVerticesIn gl_Point gl_PointCoord gl_PointSize gl_Position gl_PrimitiveID gl_PrimitiveIDIn gl_ProjectionMatrix gl_ProjectionMatrixInverse gl_ProjectionMatrixInverseTranspose gl_ProjectionMatrixTranspose gl_SampleID gl_SampleMask gl_SampleMaskIn gl_SamplePosition gl_SecondaryColor gl_TessCoord gl_TessLevelInner gl_TessLevelOuter gl_TexCoord gl_TextureEnvColor gl_TextureMatrix gl_TextureMatrixInverse gl_TextureMatrixInverseTranspose gl_TextureMatrixTranspose gl_Vertex gl_VertexID gl_ViewportIndex gl_WorkGroupID gl_WorkGroupSize gl_in gl_out EmitStreamVertex EmitVertex EndPrimitive EndStreamPrimitive abs acos acosh all any asin asinh atan atanh atomicAdd atomicAnd atomicCompSwap atomicCounter atomicCounterDecrement atomicCounterIncrement atomicExchange atomicMax atomicMin atomicOr atomicXor barrier bitCount bitfieldExtract bitfieldInsert bitfieldReverse ceil clamp cos cosh cross dFdx dFdy degrees determinant distance dot equal exp exp2 faceforward findLSB findMSB floatBitsToInt floatBitsToUint floor fma fract frexp ftransform fwidth greaterThan greaterThanEqual groupMemoryBarrier imageAtomicAdd imageAtomicAnd imageAtomicCompSwap imageAtomicExchange imageAtomicMax imageAtomicMin imageAtomicOr imageAtomicXor imageLoad imageSize imageStore imulExtended intBitsToFloat interpolateAtCentroid interpolateAtOffset interpolateAtSample inverse inversesqrt isinf isnan ldexp length lessThan lessThanEqual log log2 matrixCompMult max memoryBarrier memoryBarrierAtomicCounter memoryBarrierBuffer memoryBarrierImage memoryBarrierShared min mix mod modf noise1 noise2 noise3 noise4 normalize not notEqual outerProduct packDouble2x32 packHalf2x16 packSnorm2x16 packSnorm4x8 packUnorm2x16 packUnorm4x8 pow radians reflect refract round roundEven shadow1D shadow1DLod shadow1DProj shadow1DProjLod shadow2D shadow2DLod shadow2DProj shadow2DProjLod sign sin sinh smoothstep sqrt step tan tanh texelFetch texelFetchOffset texture texture1D texture1DLod texture1DProj texture1DProjLod texture2D texture2DLod texture2DProj texture2DProjLod texture3D texture3DLod texture3DProj texture3DProjLod textureCube textureCubeLod textureGather textureGatherOffset textureGatherOffsets textureGrad textureGradOffset textureLod textureLodOffset textureOffset textureProj textureProjGrad textureProjGradOffset textureProjLod textureProjLodOffset textureProjOffset textureQueryLevels textureQueryLod textureSize transpose trunc uaddCarry uintBitsToFloat umulExtended unpackDouble2x32 unpackHalf2x16 unpackSnorm2x16 unpackSnorm4x8 unpackUnorm2x16 unpackUnorm4x8 usubBorrow",literal:"true false"},illegal:'"',contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.C_NUMBER_MODE,{className:"meta",begin:"#",end:"$"}]}}function Ydn(e){return{name:"GML",case_insensitive:!1,keywords:{keyword:["#endregion","#macro","#region","and","begin","break","case","constructor","continue","default","delete","div","do","else","end","enum","exit","for","function","globalvar","if","mod","not","or","repeat","return","switch","then","until","var","while","with","xor"],built_in:["abs","achievement_available","achievement_event","achievement_get_challenges","achievement_get_info","achievement_get_pic","achievement_increment","achievement_load_friends","achievement_load_leaderboard","achievement_load_progress","achievement_login","achievement_login_status","achievement_logout","achievement_post","achievement_post_score","achievement_reset","achievement_send_challenge","achievement_show","achievement_show_achievements","achievement_show_challenge_notifications","achievement_show_leaderboards","action_inherited","action_kill_object","ads_disable","ads_enable","ads_engagement_active","ads_engagement_available","ads_engagement_launch","ads_event","ads_event_preload","ads_get_display_height","ads_get_display_width","ads_interstitial_available","ads_interstitial_display","ads_move","ads_set_reward_callback","ads_setup","alarm_get","alarm_set","analytics_event","analytics_event_ext","angle_difference","ansi_char","application_get_position","application_surface_draw_enable","application_surface_enable","application_surface_is_enabled","arccos","arcsin","arctan","arctan2","array_copy","array_create","array_delete","array_equals","array_height_2d","array_insert","array_length","array_length_1d","array_length_2d","array_pop","array_push","array_resize","array_sort","asset_get_index","asset_get_type","audio_channel_num","audio_create_buffer_sound","audio_create_play_queue","audio_create_stream","audio_create_sync_group","audio_debug","audio_destroy_stream","audio_destroy_sync_group","audio_emitter_create","audio_emitter_exists","audio_emitter_falloff","audio_emitter_free","audio_emitter_gain","audio_emitter_get_gain","audio_emitter_get_listener_mask","audio_emitter_get_pitch","audio_emitter_get_vx","audio_emitter_get_vy","audio_emitter_get_vz","audio_emitter_get_x","audio_emitter_get_y","audio_emitter_get_z","audio_emitter_pitch","audio_emitter_position","audio_emitter_set_listener_mask","audio_emitter_velocity","audio_exists","audio_falloff_set_model","audio_free_buffer_sound","audio_free_play_queue","audio_get_listener_count","audio_get_listener_info","audio_get_listener_mask","audio_get_master_gain","audio_get_name","audio_get_recorder_count","audio_get_recorder_info","audio_get_type","audio_group_is_loaded","audio_group_load","audio_group_load_progress","audio_group_name","audio_group_set_gain","audio_group_stop_all","audio_group_unload","audio_is_paused","audio_is_playing","audio_listener_get_data","audio_listener_orientation","audio_listener_position","audio_listener_set_orientation","audio_listener_set_position","audio_listener_set_velocity","audio_listener_velocity","audio_master_gain","audio_music_gain","audio_music_is_playing","audio_pause_all","audio_pause_music","audio_pause_sound","audio_pause_sync_group","audio_play_in_sync_group","audio_play_music","audio_play_sound","audio_play_sound_at","audio_play_sound_on","audio_queue_sound","audio_resume_all","audio_resume_music","audio_resume_sound","audio_resume_sync_group","audio_set_listener_mask","audio_set_master_gain","audio_sound_gain","audio_sound_get_gain","audio_sound_get_listener_mask","audio_sound_get_pitch","audio_sound_get_track_position","audio_sound_length","audio_sound_pitch","audio_sound_set_listener_mask","audio_sound_set_track_position","audio_start_recording","audio_start_sync_group","audio_stop_all","audio_stop_music","audio_stop_recording","audio_stop_sound","audio_stop_sync_group","audio_sync_group_debug","audio_sync_group_get_track_pos","audio_sync_group_is_playing","audio_system","background_get_height","background_get_width","base64_decode","base64_encode","browser_input_capture","buffer_async_group_begin","buffer_async_group_end","buffer_async_group_option","buffer_base64_decode","buffer_base64_decode_ext","buffer_base64_encode","buffer_copy","buffer_copy_from_vertex_buffer","buffer_create","buffer_create_from_vertex_buffer","buffer_create_from_vertex_buffer_ext","buffer_delete","buffer_exists","buffer_fill","buffer_get_address","buffer_get_alignment","buffer_get_size","buffer_get_surface","buffer_get_type","buffer_load","buffer_load_async","buffer_load_ext","buffer_load_partial","buffer_md5","buffer_peek","buffer_poke","buffer_read","buffer_resize","buffer_save","buffer_save_async","buffer_save_ext","buffer_seek","buffer_set_surface","buffer_sha1","buffer_sizeof","buffer_tell","buffer_write","camera_apply","camera_create","camera_create_view","camera_destroy","camera_get_active","camera_get_begin_script","camera_get_default","camera_get_end_script","camera_get_proj_mat","camera_get_update_script","camera_get_view_angle","camera_get_view_border_x","camera_get_view_border_y","camera_get_view_height","camera_get_view_mat","camera_get_view_speed_x","camera_get_view_speed_y","camera_get_view_target","camera_get_view_width","camera_get_view_x","camera_get_view_y","camera_set_begin_script","camera_set_default","camera_set_end_script","camera_set_proj_mat","camera_set_update_script","camera_set_view_angle","camera_set_view_border","camera_set_view_mat","camera_set_view_pos","camera_set_view_size","camera_set_view_speed","camera_set_view_target","ceil","choose","chr","clamp","clickable_add","clickable_add_ext","clickable_change","clickable_change_ext","clickable_delete","clickable_exists","clickable_set_style","clipboard_get_text","clipboard_has_text","clipboard_set_text","cloud_file_save","cloud_string_save","cloud_synchronise","code_is_compiled","collision_circle","collision_circle_list","collision_ellipse","collision_ellipse_list","collision_line","collision_line_list","collision_point","collision_point_list","collision_rectangle","collision_rectangle_list","color_get_blue","color_get_green","color_get_hue","color_get_red","color_get_saturation","color_get_value","colour_get_blue","colour_get_green","colour_get_hue","colour_get_red","colour_get_saturation","colour_get_value","cos","darccos","darcsin","darctan","darctan2","date_compare_date","date_compare_datetime","date_compare_time","date_create_datetime","date_current_datetime","date_date_of","date_date_string","date_datetime_string","date_day_span","date_days_in_month","date_days_in_year","date_get_day","date_get_day_of_year","date_get_hour","date_get_hour_of_year","date_get_minute","date_get_minute_of_year","date_get_month","date_get_second","date_get_second_of_year","date_get_timezone","date_get_week","date_get_weekday","date_get_year","date_hour_span","date_inc_day","date_inc_hour","date_inc_minute","date_inc_month","date_inc_second","date_inc_week","date_inc_year","date_is_today","date_leap_year","date_minute_span","date_month_span","date_second_span","date_set_timezone","date_time_of","date_time_string","date_valid_datetime","date_week_span","date_year_span","dcos","debug_event","debug_get_callstack","degtorad","device_get_tilt_x","device_get_tilt_y","device_get_tilt_z","device_is_keypad_open","device_mouse_check_button","device_mouse_check_button_pressed","device_mouse_check_button_released","device_mouse_dbclick_enable","device_mouse_raw_x","device_mouse_raw_y","device_mouse_x","device_mouse_x_to_gui","device_mouse_y","device_mouse_y_to_gui","directory_create","directory_destroy","directory_exists","display_get_dpi_x","display_get_dpi_y","display_get_gui_height","display_get_gui_width","display_get_height","display_get_orientation","display_get_sleep_margin","display_get_timing_method","display_get_width","display_mouse_get_x","display_mouse_get_y","display_mouse_set","display_reset","display_set_gui_maximise","display_set_gui_maximize","display_set_gui_size","display_set_sleep_margin","display_set_timing_method","display_set_ui_visibility","distance_to_object","distance_to_point","dot_product","dot_product_3d","dot_product_3d_normalised","dot_product_3d_normalized","dot_product_normalised","dot_product_normalized","draw_arrow","draw_background","draw_background_ext","draw_background_part_ext","draw_background_tiled","draw_button","draw_circle","draw_circle_color","draw_circle_colour","draw_clear","draw_clear_alpha","draw_ellipse","draw_ellipse_color","draw_ellipse_colour","draw_enable_alphablend","draw_enable_drawevent","draw_enable_swf_aa","draw_flush","draw_get_alpha","draw_get_color","draw_get_colour","draw_get_lighting","draw_get_swf_aa_level","draw_getpixel","draw_getpixel_ext","draw_healthbar","draw_highscore","draw_light_define_ambient","draw_light_define_direction","draw_light_define_point","draw_light_enable","draw_light_get","draw_light_get_ambient","draw_line","draw_line_color","draw_line_colour","draw_line_width","draw_line_width_color","draw_line_width_colour","draw_path","draw_point","draw_point_color","draw_point_colour","draw_primitive_begin","draw_primitive_begin_texture","draw_primitive_end","draw_rectangle","draw_rectangle_color","draw_rectangle_colour","draw_roundrect","draw_roundrect_color","draw_roundrect_color_ext","draw_roundrect_colour","draw_roundrect_colour_ext","draw_roundrect_ext","draw_self","draw_set_alpha","draw_set_alpha_test","draw_set_alpha_test_ref_value","draw_set_blend_mode","draw_set_blend_mode_ext","draw_set_circle_precision","draw_set_color","draw_set_color_write_enable","draw_set_colour","draw_set_font","draw_set_halign","draw_set_lighting","draw_set_swf_aa_level","draw_set_valign","draw_skeleton","draw_skeleton_collision","draw_skeleton_instance","draw_skeleton_time","draw_sprite","draw_sprite_ext","draw_sprite_general","draw_sprite_part","draw_sprite_part_ext","draw_sprite_pos","draw_sprite_stretched","draw_sprite_stretched_ext","draw_sprite_tiled","draw_sprite_tiled_ext","draw_surface","draw_surface_ext","draw_surface_general","draw_surface_part","draw_surface_part_ext","draw_surface_stretched","draw_surface_stretched_ext","draw_surface_tiled","draw_surface_tiled_ext","draw_text","draw_text_color","draw_text_colour","draw_text_ext","draw_text_ext_color","draw_text_ext_colour","draw_text_ext_transformed","draw_text_ext_transformed_color","draw_text_ext_transformed_colour","draw_text_transformed","draw_text_transformed_color","draw_text_transformed_colour","draw_texture_flush","draw_tile","draw_tilemap","draw_triangle","draw_triangle_color","draw_triangle_colour","draw_vertex","draw_vertex_color","draw_vertex_colour","draw_vertex_texture","draw_vertex_texture_color","draw_vertex_texture_colour","ds_exists","ds_grid_add","ds_grid_add_disk","ds_grid_add_grid_region","ds_grid_add_region","ds_grid_clear","ds_grid_copy","ds_grid_create","ds_grid_destroy","ds_grid_get","ds_grid_get_disk_max","ds_grid_get_disk_mean","ds_grid_get_disk_min","ds_grid_get_disk_sum","ds_grid_get_max","ds_grid_get_mean","ds_grid_get_min","ds_grid_get_sum","ds_grid_height","ds_grid_multiply","ds_grid_multiply_disk","ds_grid_multiply_grid_region","ds_grid_multiply_region","ds_grid_read","ds_grid_resize","ds_grid_set","ds_grid_set_disk","ds_grid_set_grid_region","ds_grid_set_region","ds_grid_shuffle","ds_grid_sort","ds_grid_value_disk_exists","ds_grid_value_disk_x","ds_grid_value_disk_y","ds_grid_value_exists","ds_grid_value_x","ds_grid_value_y","ds_grid_width","ds_grid_write","ds_list_add","ds_list_clear","ds_list_copy","ds_list_create","ds_list_delete","ds_list_destroy","ds_list_empty","ds_list_find_index","ds_list_find_value","ds_list_insert","ds_list_mark_as_list","ds_list_mark_as_map","ds_list_read","ds_list_replace","ds_list_set","ds_list_shuffle","ds_list_size","ds_list_sort","ds_list_write","ds_map_add","ds_map_add_list","ds_map_add_map","ds_map_clear","ds_map_copy","ds_map_create","ds_map_delete","ds_map_destroy","ds_map_empty","ds_map_exists","ds_map_find_first","ds_map_find_last","ds_map_find_next","ds_map_find_previous","ds_map_find_value","ds_map_read","ds_map_replace","ds_map_replace_list","ds_map_replace_map","ds_map_secure_load","ds_map_secure_load_buffer","ds_map_secure_save","ds_map_secure_save_buffer","ds_map_set","ds_map_size","ds_map_write","ds_priority_add","ds_priority_change_priority","ds_priority_clear","ds_priority_copy","ds_priority_create","ds_priority_delete_max","ds_priority_delete_min","ds_priority_delete_value","ds_priority_destroy","ds_priority_empty","ds_priority_find_max","ds_priority_find_min","ds_priority_find_priority","ds_priority_read","ds_priority_size","ds_priority_write","ds_queue_clear","ds_queue_copy","ds_queue_create","ds_queue_dequeue","ds_queue_destroy","ds_queue_empty","ds_queue_enqueue","ds_queue_head","ds_queue_read","ds_queue_size","ds_queue_tail","ds_queue_write","ds_set_precision","ds_stack_clear","ds_stack_copy","ds_stack_create","ds_stack_destroy","ds_stack_empty","ds_stack_pop","ds_stack_push","ds_stack_read","ds_stack_size","ds_stack_top","ds_stack_write","dsin","dtan","effect_clear","effect_create_above","effect_create_below","environment_get_variable","event_inherited","event_perform","event_perform_object","event_user","exp","external_call","external_define","external_free","facebook_accesstoken","facebook_check_permission","facebook_dialog","facebook_graph_request","facebook_init","facebook_launch_offerwall","facebook_login","facebook_logout","facebook_post_message","facebook_request_publish_permissions","facebook_request_read_permissions","facebook_send_invite","facebook_status","facebook_user_id","file_attributes","file_bin_close","file_bin_open","file_bin_position","file_bin_read_byte","file_bin_rewrite","file_bin_seek","file_bin_size","file_bin_write_byte","file_copy","file_delete","file_exists","file_find_close","file_find_first","file_find_next","file_rename","file_text_close","file_text_eof","file_text_eoln","file_text_open_append","file_text_open_from_string","file_text_open_read","file_text_open_write","file_text_read_real","file_text_read_string","file_text_readln","file_text_write_real","file_text_write_string","file_text_writeln","filename_change_ext","filename_dir","filename_drive","filename_ext","filename_name","filename_path","floor","font_add","font_add_enable_aa","font_add_get_enable_aa","font_add_sprite","font_add_sprite_ext","font_delete","font_exists","font_get_bold","font_get_first","font_get_fontname","font_get_italic","font_get_last","font_get_name","font_get_size","font_get_texture","font_get_uvs","font_replace","font_replace_sprite","font_replace_sprite_ext","font_set_cache_size","font_texture_page_size","frac","game_end","game_get_speed","game_load","game_load_buffer","game_restart","game_save","game_save_buffer","game_set_speed","gamepad_axis_count","gamepad_axis_value","gamepad_button_check","gamepad_button_check_pressed","gamepad_button_check_released","gamepad_button_count","gamepad_button_value","gamepad_get_axis_deadzone","gamepad_get_button_threshold","gamepad_get_description","gamepad_get_device_count","gamepad_is_connected","gamepad_is_supported","gamepad_set_axis_deadzone","gamepad_set_button_threshold","gamepad_set_color","gamepad_set_colour","gamepad_set_vibration","gesture_double_tap_distance","gesture_double_tap_time","gesture_drag_distance","gesture_drag_time","gesture_flick_speed","gesture_get_double_tap_distance","gesture_get_double_tap_time","gesture_get_drag_distance","gesture_get_drag_time","gesture_get_flick_speed","gesture_get_pinch_angle_away","gesture_get_pinch_angle_towards","gesture_get_pinch_distance","gesture_get_rotate_angle","gesture_get_rotate_time","gesture_get_tap_count","gesture_pinch_angle_away","gesture_pinch_angle_towards","gesture_pinch_distance","gesture_rotate_angle","gesture_rotate_time","gesture_tap_count","get_integer","get_integer_async","get_login_async","get_open_filename","get_open_filename_ext","get_save_filename","get_save_filename_ext","get_string","get_string_async","get_timer","gml_pragma","gml_release_mode","gpu_get_alphatestenable","gpu_get_alphatestfunc","gpu_get_alphatestref","gpu_get_blendenable","gpu_get_blendmode","gpu_get_blendmode_dest","gpu_get_blendmode_destalpha","gpu_get_blendmode_ext","gpu_get_blendmode_ext_sepalpha","gpu_get_blendmode_src","gpu_get_blendmode_srcalpha","gpu_get_colorwriteenable","gpu_get_colourwriteenable","gpu_get_cullmode","gpu_get_fog","gpu_get_lightingenable","gpu_get_state","gpu_get_tex_filter","gpu_get_tex_filter_ext","gpu_get_tex_max_aniso","gpu_get_tex_max_aniso_ext","gpu_get_tex_max_mip","gpu_get_tex_max_mip_ext","gpu_get_tex_min_mip","gpu_get_tex_min_mip_ext","gpu_get_tex_mip_bias","gpu_get_tex_mip_bias_ext","gpu_get_tex_mip_enable","gpu_get_tex_mip_enable_ext","gpu_get_tex_mip_filter","gpu_get_tex_mip_filter_ext","gpu_get_tex_repeat","gpu_get_tex_repeat_ext","gpu_get_texfilter","gpu_get_texfilter_ext","gpu_get_texrepeat","gpu_get_texrepeat_ext","gpu_get_zfunc","gpu_get_ztestenable","gpu_get_zwriteenable","gpu_pop_state","gpu_push_state","gpu_set_alphatestenable","gpu_set_alphatestfunc","gpu_set_alphatestref","gpu_set_blendenable","gpu_set_blendmode","gpu_set_blendmode_ext","gpu_set_blendmode_ext_sepalpha","gpu_set_colorwriteenable","gpu_set_colourwriteenable","gpu_set_cullmode","gpu_set_fog","gpu_set_lightingenable","gpu_set_state","gpu_set_tex_filter","gpu_set_tex_filter_ext","gpu_set_tex_max_aniso","gpu_set_tex_max_aniso_ext","gpu_set_tex_max_mip","gpu_set_tex_max_mip_ext","gpu_set_tex_min_mip","gpu_set_tex_min_mip_ext","gpu_set_tex_mip_bias","gpu_set_tex_mip_bias_ext","gpu_set_tex_mip_enable","gpu_set_tex_mip_enable_ext","gpu_set_tex_mip_filter","gpu_set_tex_mip_filter_ext","gpu_set_tex_repeat","gpu_set_tex_repeat_ext","gpu_set_texfilter","gpu_set_texfilter_ext","gpu_set_texrepeat","gpu_set_texrepeat_ext","gpu_set_zfunc","gpu_set_ztestenable","gpu_set_zwriteenable","highscore_add","highscore_clear","highscore_name","highscore_value","http_get","http_get_file","http_post_string","http_request","iap_acquire","iap_activate","iap_consume","iap_enumerate_products","iap_product_details","iap_purchase_details","iap_restore_all","iap_status","ini_close","ini_key_delete","ini_key_exists","ini_open","ini_open_from_string","ini_read_real","ini_read_string","ini_section_delete","ini_section_exists","ini_write_real","ini_write_string","instance_activate_all","instance_activate_layer","instance_activate_object","instance_activate_region","instance_change","instance_copy","instance_create","instance_create_depth","instance_create_layer","instance_deactivate_all","instance_deactivate_layer","instance_deactivate_object","instance_deactivate_region","instance_destroy","instance_exists","instance_find","instance_furthest","instance_id_get","instance_nearest","instance_number","instance_place","instance_place_list","instance_position","instance_position_list","int64","io_clear","irandom","irandom_range","is_array","is_bool","is_infinity","is_int32","is_int64","is_matrix","is_method","is_nan","is_numeric","is_ptr","is_real","is_string","is_struct","is_undefined","is_vec3","is_vec4","json_decode","json_encode","keyboard_check","keyboard_check_direct","keyboard_check_pressed","keyboard_check_released","keyboard_clear","keyboard_get_map","keyboard_get_numlock","keyboard_key_press","keyboard_key_release","keyboard_set_map","keyboard_set_numlock","keyboard_unset_map","keyboard_virtual_height","keyboard_virtual_hide","keyboard_virtual_show","keyboard_virtual_status","layer_add_instance","layer_background_alpha","layer_background_blend","layer_background_change","layer_background_create","layer_background_destroy","layer_background_exists","layer_background_get_alpha","layer_background_get_blend","layer_background_get_htiled","layer_background_get_id","layer_background_get_index","layer_background_get_speed","layer_background_get_sprite","layer_background_get_stretch","layer_background_get_visible","layer_background_get_vtiled","layer_background_get_xscale","layer_background_get_yscale","layer_background_htiled","layer_background_index","layer_background_speed","layer_background_sprite","layer_background_stretch","layer_background_visible","layer_background_vtiled","layer_background_xscale","layer_background_yscale","layer_create","layer_depth","layer_destroy","layer_destroy_instances","layer_element_move","layer_exists","layer_force_draw_depth","layer_get_all","layer_get_all_elements","layer_get_depth","layer_get_element_layer","layer_get_element_type","layer_get_forced_depth","layer_get_hspeed","layer_get_id","layer_get_id_at_depth","layer_get_name","layer_get_script_begin","layer_get_script_end","layer_get_shader","layer_get_target_room","layer_get_visible","layer_get_vspeed","layer_get_x","layer_get_y","layer_has_instance","layer_hspeed","layer_instance_get_instance","layer_is_draw_depth_forced","layer_reset_target_room","layer_script_begin","layer_script_end","layer_set_target_room","layer_set_visible","layer_shader","layer_sprite_alpha","layer_sprite_angle","layer_sprite_blend","layer_sprite_change","layer_sprite_create","layer_sprite_destroy","layer_sprite_exists","layer_sprite_get_alpha","layer_sprite_get_angle","layer_sprite_get_blend","layer_sprite_get_id","layer_sprite_get_index","layer_sprite_get_speed","layer_sprite_get_sprite","layer_sprite_get_x","layer_sprite_get_xscale","layer_sprite_get_y","layer_sprite_get_yscale","layer_sprite_index","layer_sprite_speed","layer_sprite_x","layer_sprite_xscale","layer_sprite_y","layer_sprite_yscale","layer_tile_alpha","layer_tile_blend","layer_tile_change","layer_tile_create","layer_tile_destroy","layer_tile_exists","layer_tile_get_alpha","layer_tile_get_blend","layer_tile_get_region","layer_tile_get_sprite","layer_tile_get_visible","layer_tile_get_x","layer_tile_get_xscale","layer_tile_get_y","layer_tile_get_yscale","layer_tile_region","layer_tile_visible","layer_tile_x","layer_tile_xscale","layer_tile_y","layer_tile_yscale","layer_tilemap_create","layer_tilemap_destroy","layer_tilemap_exists","layer_tilemap_get_id","layer_vspeed","layer_x","layer_y","lengthdir_x","lengthdir_y","lerp","ln","load_csv","log10","log2","logn","make_color_hsv","make_color_rgb","make_colour_hsv","make_colour_rgb","math_get_epsilon","math_set_epsilon","matrix_build","matrix_build_identity","matrix_build_lookat","matrix_build_projection_ortho","matrix_build_projection_perspective","matrix_build_projection_perspective_fov","matrix_get","matrix_multiply","matrix_set","matrix_stack_clear","matrix_stack_is_empty","matrix_stack_multiply","matrix_stack_pop","matrix_stack_push","matrix_stack_set","matrix_stack_top","matrix_transform_vertex","max","md5_file","md5_string_unicode","md5_string_utf8","mean","median","merge_color","merge_colour","min","motion_add","motion_set","mouse_check_button","mouse_check_button_pressed","mouse_check_button_released","mouse_clear","mouse_wheel_down","mouse_wheel_up","move_bounce_all","move_bounce_solid","move_contact_all","move_contact_solid","move_outside_all","move_outside_solid","move_random","move_snap","move_towards_point","move_wrap","mp_grid_add_cell","mp_grid_add_instances","mp_grid_add_rectangle","mp_grid_clear_all","mp_grid_clear_cell","mp_grid_clear_rectangle","mp_grid_create","mp_grid_destroy","mp_grid_draw","mp_grid_get_cell","mp_grid_path","mp_grid_to_ds_grid","mp_linear_path","mp_linear_path_object","mp_linear_step","mp_linear_step_object","mp_potential_path","mp_potential_path_object","mp_potential_settings","mp_potential_step","mp_potential_step_object","network_connect","network_connect_raw","network_create_server","network_create_server_raw","network_create_socket","network_create_socket_ext","network_destroy","network_resolve","network_send_broadcast","network_send_packet","network_send_raw","network_send_udp","network_send_udp_raw","network_set_config","network_set_timeout","object_exists","object_get_depth","object_get_mask","object_get_name","object_get_parent","object_get_persistent","object_get_physics","object_get_solid","object_get_sprite","object_get_visible","object_is_ancestor","object_set_mask","object_set_persistent","object_set_solid","object_set_sprite","object_set_visible","ord","os_get_config","os_get_info","os_get_language","os_get_region","os_is_network_connected","os_is_paused","os_lock_orientation","os_powersave_enable","parameter_count","parameter_string","part_emitter_burst","part_emitter_clear","part_emitter_create","part_emitter_destroy","part_emitter_destroy_all","part_emitter_exists","part_emitter_region","part_emitter_stream","part_particles_clear","part_particles_count","part_particles_create","part_particles_create_color","part_particles_create_colour","part_system_automatic_draw","part_system_automatic_update","part_system_clear","part_system_create","part_system_create_layer","part_system_depth","part_system_destroy","part_system_draw_order","part_system_drawit","part_system_exists","part_system_get_layer","part_system_layer","part_system_position","part_system_update","part_type_alpha1","part_type_alpha2","part_type_alpha3","part_type_blend","part_type_clear","part_type_color1","part_type_color2","part_type_color3","part_type_color_hsv","part_type_color_mix","part_type_color_rgb","part_type_colour1","part_type_colour2","part_type_colour3","part_type_colour_hsv","part_type_colour_mix","part_type_colour_rgb","part_type_create","part_type_death","part_type_destroy","part_type_direction","part_type_exists","part_type_gravity","part_type_life","part_type_orientation","part_type_scale","part_type_shape","part_type_size","part_type_speed","part_type_sprite","part_type_step","path_add","path_add_point","path_append","path_assign","path_change_point","path_clear_points","path_delete","path_delete_point","path_duplicate","path_end","path_exists","path_flip","path_get_closed","path_get_kind","path_get_length","path_get_name","path_get_number","path_get_point_speed","path_get_point_x","path_get_point_y","path_get_precision","path_get_speed","path_get_time","path_get_x","path_get_y","path_insert_point","path_mirror","path_rescale","path_reverse","path_rotate","path_set_closed","path_set_kind","path_set_precision","path_shift","path_start","physics_apply_angular_impulse","physics_apply_force","physics_apply_impulse","physics_apply_local_force","physics_apply_local_impulse","physics_apply_torque","physics_draw_debug","physics_fixture_add_point","physics_fixture_bind","physics_fixture_bind_ext","physics_fixture_create","physics_fixture_delete","physics_fixture_set_angular_damping","physics_fixture_set_awake","physics_fixture_set_box_shape","physics_fixture_set_chain_shape","physics_fixture_set_circle_shape","physics_fixture_set_collision_group","physics_fixture_set_density","physics_fixture_set_edge_shape","physics_fixture_set_friction","physics_fixture_set_kinematic","physics_fixture_set_linear_damping","physics_fixture_set_polygon_shape","physics_fixture_set_restitution","physics_fixture_set_sensor","physics_get_density","physics_get_friction","physics_get_restitution","physics_joint_delete","physics_joint_distance_create","physics_joint_enable_motor","physics_joint_friction_create","physics_joint_gear_create","physics_joint_get_value","physics_joint_prismatic_create","physics_joint_pulley_create","physics_joint_revolute_create","physics_joint_rope_create","physics_joint_set_value","physics_joint_weld_create","physics_joint_wheel_create","physics_mass_properties","physics_particle_count","physics_particle_create","physics_particle_delete","physics_particle_delete_region_box","physics_particle_delete_region_circle","physics_particle_delete_region_poly","physics_particle_draw","physics_particle_draw_ext","physics_particle_get_damping","physics_particle_get_data","physics_particle_get_data_particle","physics_particle_get_density","physics_particle_get_gravity_scale","physics_particle_get_group_flags","physics_particle_get_max_count","physics_particle_get_radius","physics_particle_group_add_point","physics_particle_group_begin","physics_particle_group_box","physics_particle_group_circle","physics_particle_group_count","physics_particle_group_delete","physics_particle_group_end","physics_particle_group_get_ang_vel","physics_particle_group_get_angle","physics_particle_group_get_centre_x","physics_particle_group_get_centre_y","physics_particle_group_get_data","physics_particle_group_get_inertia","physics_particle_group_get_mass","physics_particle_group_get_vel_x","physics_particle_group_get_vel_y","physics_particle_group_get_x","physics_particle_group_get_y","physics_particle_group_join","physics_particle_group_polygon","physics_particle_set_category_flags","physics_particle_set_damping","physics_particle_set_density","physics_particle_set_flags","physics_particle_set_gravity_scale","physics_particle_set_group_flags","physics_particle_set_max_count","physics_particle_set_radius","physics_pause_enable","physics_remove_fixture","physics_set_density","physics_set_friction","physics_set_restitution","physics_test_overlap","physics_world_create","physics_world_draw_debug","physics_world_gravity","physics_world_update_iterations","physics_world_update_speed","place_empty","place_free","place_meeting","place_snapped","point_direction","point_distance","point_distance_3d","point_in_circle","point_in_rectangle","point_in_triangle","position_change","position_destroy","position_empty","position_meeting","power","ptr","push_cancel_local_notification","push_get_first_local_notification","push_get_next_local_notification","push_local_notification","radtodeg","random","random_get_seed","random_range","random_set_seed","randomise","randomize","real","rectangle_in_circle","rectangle_in_rectangle","rectangle_in_triangle","room_add","room_assign","room_duplicate","room_exists","room_get_camera","room_get_name","room_get_viewport","room_goto","room_goto_next","room_goto_previous","room_instance_add","room_instance_clear","room_next","room_previous","room_restart","room_set_background_color","room_set_background_colour","room_set_camera","room_set_height","room_set_persistent","room_set_view","room_set_view_enabled","room_set_viewport","room_set_width","round","screen_save","screen_save_part","script_execute","script_exists","script_get_name","sha1_file","sha1_string_unicode","sha1_string_utf8","shader_current","shader_enable_corner_id","shader_get_name","shader_get_sampler_index","shader_get_uniform","shader_is_compiled","shader_reset","shader_set","shader_set_uniform_f","shader_set_uniform_f_array","shader_set_uniform_i","shader_set_uniform_i_array","shader_set_uniform_matrix","shader_set_uniform_matrix_array","shaders_are_supported","shop_leave_rating","show_debug_message","show_debug_overlay","show_error","show_message","show_message_async","show_question","show_question_async","sign","sin","skeleton_animation_clear","skeleton_animation_get","skeleton_animation_get_duration","skeleton_animation_get_ext","skeleton_animation_get_frame","skeleton_animation_get_frames","skeleton_animation_list","skeleton_animation_mix","skeleton_animation_set","skeleton_animation_set_ext","skeleton_animation_set_frame","skeleton_attachment_create","skeleton_attachment_get","skeleton_attachment_set","skeleton_bone_data_get","skeleton_bone_data_set","skeleton_bone_state_get","skeleton_bone_state_set","skeleton_collision_draw_set","skeleton_get_bounds","skeleton_get_minmax","skeleton_get_num_bounds","skeleton_skin_get","skeleton_skin_list","skeleton_skin_set","skeleton_slot_data","sprite_add","sprite_add_from_surface","sprite_assign","sprite_collision_mask","sprite_create_from_surface","sprite_delete","sprite_duplicate","sprite_exists","sprite_flush","sprite_flush_multi","sprite_get_bbox_bottom","sprite_get_bbox_left","sprite_get_bbox_right","sprite_get_bbox_top","sprite_get_height","sprite_get_name","sprite_get_number","sprite_get_speed","sprite_get_speed_type","sprite_get_texture","sprite_get_tpe","sprite_get_uvs","sprite_get_width","sprite_get_xoffset","sprite_get_yoffset","sprite_merge","sprite_prefetch","sprite_prefetch_multi","sprite_replace","sprite_save","sprite_save_strip","sprite_set_alpha_from_sprite","sprite_set_cache_size","sprite_set_cache_size_ext","sprite_set_offset","sprite_set_speed","sqr","sqrt","steam_activate_overlay","steam_activate_overlay_browser","steam_activate_overlay_store","steam_activate_overlay_user","steam_available_languages","steam_clear_achievement","steam_create_leaderboard","steam_current_game_language","steam_download_friends_scores","steam_download_scores","steam_download_scores_around_user","steam_file_delete","steam_file_exists","steam_file_persisted","steam_file_read","steam_file_share","steam_file_size","steam_file_write","steam_file_write_file","steam_get_achievement","steam_get_app_id","steam_get_persona_name","steam_get_quota_free","steam_get_quota_total","steam_get_stat_avg_rate","steam_get_stat_float","steam_get_stat_int","steam_get_user_account_id","steam_get_user_persona_name","steam_get_user_steam_id","steam_initialised","steam_is_cloud_enabled_for_account","steam_is_cloud_enabled_for_app","steam_is_overlay_activated","steam_is_overlay_enabled","steam_is_screenshot_requested","steam_is_user_logged_on","steam_reset_all_stats","steam_reset_all_stats_achievements","steam_send_screenshot","steam_set_achievement","steam_set_stat_avg_rate","steam_set_stat_float","steam_set_stat_int","steam_stats_ready","steam_ugc_create_item","steam_ugc_create_query_all","steam_ugc_create_query_all_ex","steam_ugc_create_query_user","steam_ugc_create_query_user_ex","steam_ugc_download","steam_ugc_get_item_install_info","steam_ugc_get_item_update_info","steam_ugc_get_item_update_progress","steam_ugc_get_subscribed_items","steam_ugc_num_subscribed_items","steam_ugc_query_add_excluded_tag","steam_ugc_query_add_required_tag","steam_ugc_query_set_allow_cached_response","steam_ugc_query_set_cloud_filename_filter","steam_ugc_query_set_match_any_tag","steam_ugc_query_set_ranked_by_trend_days","steam_ugc_query_set_return_long_description","steam_ugc_query_set_return_total_only","steam_ugc_query_set_search_text","steam_ugc_request_item_details","steam_ugc_send_query","steam_ugc_set_item_content","steam_ugc_set_item_description","steam_ugc_set_item_preview","steam_ugc_set_item_tags","steam_ugc_set_item_title","steam_ugc_set_item_visibility","steam_ugc_start_item_update","steam_ugc_submit_item_update","steam_ugc_subscribe_item","steam_ugc_unsubscribe_item","steam_upload_score","steam_upload_score_buffer","steam_upload_score_buffer_ext","steam_upload_score_ext","steam_user_installed_dlc","steam_user_owns_dlc","string","string_byte_at","string_byte_length","string_char_at","string_copy","string_count","string_delete","string_digits","string_format","string_hash_to_newline","string_height","string_height_ext","string_insert","string_length","string_letters","string_lettersdigits","string_lower","string_ord_at","string_pos","string_repeat","string_replace","string_replace_all","string_set_byte_at","string_upper","string_width","string_width_ext","surface_copy","surface_copy_part","surface_create","surface_create_ext","surface_depth_disable","surface_exists","surface_free","surface_get_depth_disable","surface_get_height","surface_get_texture","surface_get_width","surface_getpixel","surface_getpixel_ext","surface_reset_target","surface_resize","surface_save","surface_save_part","surface_set_target","surface_set_target_ext","tan","texture_get_height","texture_get_texel_height","texture_get_texel_width","texture_get_uvs","texture_get_width","texture_global_scale","texture_set_stage","tile_get_empty","tile_get_flip","tile_get_index","tile_get_mirror","tile_get_rotate","tile_set_empty","tile_set_flip","tile_set_index","tile_set_mirror","tile_set_rotate","tilemap_clear","tilemap_get","tilemap_get_at_pixel","tilemap_get_cell_x_at_pixel","tilemap_get_cell_y_at_pixel","tilemap_get_frame","tilemap_get_global_mask","tilemap_get_height","tilemap_get_mask","tilemap_get_tile_height","tilemap_get_tile_width","tilemap_get_tileset","tilemap_get_width","tilemap_get_x","tilemap_get_y","tilemap_set","tilemap_set_at_pixel","tilemap_set_global_mask","tilemap_set_mask","tilemap_tileset","tilemap_x","tilemap_y","timeline_add","timeline_clear","timeline_delete","timeline_exists","timeline_get_name","timeline_max_moment","timeline_moment_add_script","timeline_moment_clear","timeline_size","typeof","url_get_domain","url_open","url_open_ext","url_open_full","variable_global_exists","variable_global_get","variable_global_set","variable_instance_exists","variable_instance_get","variable_instance_get_names","variable_instance_set","variable_struct_exists","variable_struct_get","variable_struct_get_names","variable_struct_names_count","variable_struct_remove","variable_struct_set","vertex_argb","vertex_begin","vertex_color","vertex_colour","vertex_create_buffer","vertex_create_buffer_ext","vertex_create_buffer_from_buffer","vertex_create_buffer_from_buffer_ext","vertex_delete_buffer","vertex_end","vertex_float1","vertex_float2","vertex_float3","vertex_float4","vertex_format_add_color","vertex_format_add_colour","vertex_format_add_custom","vertex_format_add_normal","vertex_format_add_position","vertex_format_add_position_3d","vertex_format_add_texcoord","vertex_format_add_textcoord","vertex_format_begin","vertex_format_delete","vertex_format_end","vertex_freeze","vertex_get_buffer_size","vertex_get_number","vertex_normal","vertex_position","vertex_position_3d","vertex_submit","vertex_texcoord","vertex_ubyte4","view_get_camera","view_get_hport","view_get_surface_id","view_get_visible","view_get_wport","view_get_xport","view_get_yport","view_set_camera","view_set_hport","view_set_surface_id","view_set_visible","view_set_wport","view_set_xport","view_set_yport","virtual_key_add","virtual_key_delete","virtual_key_hide","virtual_key_show","win8_appbar_add_element","win8_appbar_enable","win8_appbar_remove_element","win8_device_touchscreen_available","win8_license_initialize_sandbox","win8_license_trial_version","win8_livetile_badge_clear","win8_livetile_badge_notification","win8_livetile_notification_begin","win8_livetile_notification_end","win8_livetile_notification_expiry","win8_livetile_notification_image_add","win8_livetile_notification_secondary_begin","win8_livetile_notification_tag","win8_livetile_notification_text_add","win8_livetile_queue_enable","win8_livetile_tile_clear","win8_livetile_tile_notification","win8_search_add_suggestions","win8_search_disable","win8_search_enable","win8_secondarytile_badge_notification","win8_secondarytile_delete","win8_secondarytile_pin","win8_settingscharm_add_entry","win8_settingscharm_add_html_entry","win8_settingscharm_add_xaml_entry","win8_settingscharm_get_xaml_property","win8_settingscharm_remove_entry","win8_settingscharm_set_xaml_property","win8_share_file","win8_share_image","win8_share_screenshot","win8_share_text","win8_share_url","window_center","window_device","window_get_caption","window_get_color","window_get_colour","window_get_cursor","window_get_fullscreen","window_get_height","window_get_visible_rects","window_get_width","window_get_x","window_get_y","window_handle","window_has_focus","window_mouse_get_x","window_mouse_get_y","window_mouse_set","window_set_caption","window_set_color","window_set_colour","window_set_cursor","window_set_fullscreen","window_set_max_height","window_set_max_width","window_set_min_height","window_set_min_width","window_set_position","window_set_rectangle","window_set_size","window_view_mouse_get_x","window_view_mouse_get_y","window_views_mouse_get_x","window_views_mouse_get_y","winphone_license_trial_version","winphone_tile_back_content","winphone_tile_back_content_wide","winphone_tile_back_image","winphone_tile_back_image_wide","winphone_tile_back_title","winphone_tile_background_color","winphone_tile_background_colour","winphone_tile_count","winphone_tile_cycle_images","winphone_tile_front_image","winphone_tile_front_image_small","winphone_tile_front_image_wide","winphone_tile_icon_image","winphone_tile_small_background_image","winphone_tile_small_icon_image","winphone_tile_title","winphone_tile_wide_content","zip_unzip"],literal:["all","false","noone","pointer_invalid","pointer_null","true","undefined"],symbol:["ANSI_CHARSET","ARABIC_CHARSET","BALTIC_CHARSET","CHINESEBIG5_CHARSET","DEFAULT_CHARSET","EASTEUROPE_CHARSET","GB2312_CHARSET","GM_build_date","GM_runtime_version","GM_version","GREEK_CHARSET","HANGEUL_CHARSET","HEBREW_CHARSET","JOHAB_CHARSET","MAC_CHARSET","OEM_CHARSET","RUSSIAN_CHARSET","SHIFTJIS_CHARSET","SYMBOL_CHARSET","THAI_CHARSET","TURKISH_CHARSET","VIETNAMESE_CHARSET","achievement_achievement_info","achievement_filter_all_players","achievement_filter_favorites_only","achievement_filter_friends_only","achievement_friends_info","achievement_leaderboard_info","achievement_our_info","achievement_pic_loaded","achievement_show_achievement","achievement_show_bank","achievement_show_friend_picker","achievement_show_leaderboard","achievement_show_profile","achievement_show_purchase_prompt","achievement_show_ui","achievement_type_achievement_challenge","achievement_type_score_challenge","asset_font","asset_object","asset_path","asset_room","asset_script","asset_shader","asset_sound","asset_sprite","asset_tiles","asset_timeline","asset_unknown","audio_3d","audio_falloff_exponent_distance","audio_falloff_exponent_distance_clamped","audio_falloff_inverse_distance","audio_falloff_inverse_distance_clamped","audio_falloff_linear_distance","audio_falloff_linear_distance_clamped","audio_falloff_none","audio_mono","audio_new_system","audio_old_system","audio_stereo","bm_add","bm_complex","bm_dest_alpha","bm_dest_color","bm_dest_colour","bm_inv_dest_alpha","bm_inv_dest_color","bm_inv_dest_colour","bm_inv_src_alpha","bm_inv_src_color","bm_inv_src_colour","bm_max","bm_normal","bm_one","bm_src_alpha","bm_src_alpha_sat","bm_src_color","bm_src_colour","bm_subtract","bm_zero","browser_chrome","browser_edge","browser_firefox","browser_ie","browser_ie_mobile","browser_not_a_browser","browser_opera","browser_safari","browser_safari_mobile","browser_tizen","browser_unknown","browser_windows_store","buffer_bool","buffer_f16","buffer_f32","buffer_f64","buffer_fast","buffer_fixed","buffer_generalerror","buffer_grow","buffer_invalidtype","buffer_network","buffer_outofbounds","buffer_outofspace","buffer_s16","buffer_s32","buffer_s8","buffer_seek_end","buffer_seek_relative","buffer_seek_start","buffer_string","buffer_surface_copy","buffer_text","buffer_u16","buffer_u32","buffer_u64","buffer_u8","buffer_vbuffer","buffer_wrap","button_type","c_aqua","c_black","c_blue","c_dkgray","c_fuchsia","c_gray","c_green","c_lime","c_ltgray","c_maroon","c_navy","c_olive","c_orange","c_purple","c_red","c_silver","c_teal","c_white","c_yellow","cmpfunc_always","cmpfunc_equal","cmpfunc_greater","cmpfunc_greaterequal","cmpfunc_less","cmpfunc_lessequal","cmpfunc_never","cmpfunc_notequal","cr_appstart","cr_arrow","cr_beam","cr_cross","cr_default","cr_drag","cr_handpoint","cr_hourglass","cr_none","cr_size_all","cr_size_nesw","cr_size_ns","cr_size_nwse","cr_size_we","cr_uparrow","cull_clockwise","cull_counterclockwise","cull_noculling","device_emulator","device_ios_ipad","device_ios_ipad_retina","device_ios_iphone","device_ios_iphone5","device_ios_iphone6","device_ios_iphone6plus","device_ios_iphone_retina","device_ios_unknown","device_tablet","display_landscape","display_landscape_flipped","display_portrait","display_portrait_flipped","dll_cdecl","dll_stdcall","ds_type_grid","ds_type_list","ds_type_map","ds_type_priority","ds_type_queue","ds_type_stack","ef_cloud","ef_ellipse","ef_explosion","ef_firework","ef_flare","ef_rain","ef_ring","ef_smoke","ef_smokeup","ef_snow","ef_spark","ef_star","ev_alarm","ev_animation_end","ev_boundary","ev_cleanup","ev_close_button","ev_collision","ev_create","ev_destroy","ev_draw","ev_draw_begin","ev_draw_end","ev_draw_post","ev_draw_pre","ev_end_of_path","ev_game_end","ev_game_start","ev_gesture","ev_gesture_double_tap","ev_gesture_drag_end","ev_gesture_drag_start","ev_gesture_dragging","ev_gesture_flick","ev_gesture_pinch_end","ev_gesture_pinch_in","ev_gesture_pinch_out","ev_gesture_pinch_start","ev_gesture_rotate_end","ev_gesture_rotate_start","ev_gesture_rotating","ev_gesture_tap","ev_global_gesture_double_tap","ev_global_gesture_drag_end","ev_global_gesture_drag_start","ev_global_gesture_dragging","ev_global_gesture_flick","ev_global_gesture_pinch_end","ev_global_gesture_pinch_in","ev_global_gesture_pinch_out","ev_global_gesture_pinch_start","ev_global_gesture_rotate_end","ev_global_gesture_rotate_start","ev_global_gesture_rotating","ev_global_gesture_tap","ev_global_left_button","ev_global_left_press","ev_global_left_release","ev_global_middle_button","ev_global_middle_press","ev_global_middle_release","ev_global_right_button","ev_global_right_press","ev_global_right_release","ev_gui","ev_gui_begin","ev_gui_end","ev_joystick1_button1","ev_joystick1_button2","ev_joystick1_button3","ev_joystick1_button4","ev_joystick1_button5","ev_joystick1_button6","ev_joystick1_button7","ev_joystick1_button8","ev_joystick1_down","ev_joystick1_left","ev_joystick1_right","ev_joystick1_up","ev_joystick2_button1","ev_joystick2_button2","ev_joystick2_button3","ev_joystick2_button4","ev_joystick2_button5","ev_joystick2_button6","ev_joystick2_button7","ev_joystick2_button8","ev_joystick2_down","ev_joystick2_left","ev_joystick2_right","ev_joystick2_up","ev_keyboard","ev_keypress","ev_keyrelease","ev_left_button","ev_left_press","ev_left_release","ev_middle_button","ev_middle_press","ev_middle_release","ev_mouse","ev_mouse_enter","ev_mouse_leave","ev_mouse_wheel_down","ev_mouse_wheel_up","ev_no_button","ev_no_more_health","ev_no_more_lives","ev_other","ev_outside","ev_right_button","ev_right_press","ev_right_release","ev_room_end","ev_room_start","ev_step","ev_step_begin","ev_step_end","ev_step_normal","ev_trigger","ev_user0","ev_user1","ev_user2","ev_user3","ev_user4","ev_user5","ev_user6","ev_user7","ev_user8","ev_user9","ev_user10","ev_user11","ev_user12","ev_user13","ev_user14","ev_user15","fa_archive","fa_bottom","fa_center","fa_directory","fa_hidden","fa_left","fa_middle","fa_readonly","fa_right","fa_sysfile","fa_top","fa_volumeid","fb_login_default","fb_login_fallback_to_webview","fb_login_forcing_safari","fb_login_forcing_webview","fb_login_no_fallback_to_webview","fb_login_use_system_account","gamespeed_fps","gamespeed_microseconds","ge_lose","global","gp_axislh","gp_axislv","gp_axisrh","gp_axisrv","gp_face1","gp_face2","gp_face3","gp_face4","gp_padd","gp_padl","gp_padr","gp_padu","gp_select","gp_shoulderl","gp_shoulderlb","gp_shoulderr","gp_shoulderrb","gp_start","gp_stickl","gp_stickr","iap_available","iap_canceled","iap_ev_consume","iap_ev_product","iap_ev_purchase","iap_ev_restore","iap_ev_storeload","iap_failed","iap_purchased","iap_refunded","iap_status_available","iap_status_loading","iap_status_processing","iap_status_restoring","iap_status_unavailable","iap_status_uninitialised","iap_storeload_failed","iap_storeload_ok","iap_unavailable","input_type","kbv_autocapitalize_characters","kbv_autocapitalize_none","kbv_autocapitalize_sentences","kbv_autocapitalize_words","kbv_returnkey_continue","kbv_returnkey_default","kbv_returnkey_done","kbv_returnkey_emergency","kbv_returnkey_go","kbv_returnkey_google","kbv_returnkey_join","kbv_returnkey_next","kbv_returnkey_route","kbv_returnkey_search","kbv_returnkey_send","kbv_returnkey_yahoo","kbv_type_ascii","kbv_type_default","kbv_type_email","kbv_type_numbers","kbv_type_phone","kbv_type_phone_name","kbv_type_url","layerelementtype_background","layerelementtype_instance","layerelementtype_oldtilemap","layerelementtype_particlesystem","layerelementtype_sprite","layerelementtype_tile","layerelementtype_tilemap","layerelementtype_undefined","lb_disp_none","lb_disp_numeric","lb_disp_time_ms","lb_disp_time_sec","lb_sort_ascending","lb_sort_descending","lb_sort_none","leaderboard_type_number","leaderboard_type_time_mins_secs","lighttype_dir","lighttype_point","local","matrix_projection","matrix_view","matrix_world","mb_any","mb_left","mb_middle","mb_none","mb_right","mip_markedonly","mip_off","mip_on","network_config_connect_timeout","network_config_disable_reliable_udp","network_config_enable_reliable_udp","network_config_use_non_blocking_socket","network_socket_bluetooth","network_socket_tcp","network_socket_udp","network_type_connect","network_type_data","network_type_disconnect","network_type_non_blocking_connect","of_challen","of_challenge_tie","of_challenge_win","os_3ds","os_android","os_bb10","os_ios","os_linux","os_macosx","os_ps3","os_ps4","os_psvita","os_switch","os_symbian","os_tizen","os_tvos","os_unknown","os_uwp","os_wiiu","os_win32","os_win8native","os_windows","os_winphone","os_xbox360","os_xboxone","other","ov_achievements","ov_community","ov_friends","ov_gamegroup","ov_players","ov_settings","path_action_continue","path_action_restart","path_action_reverse","path_action_stop","phy_debug_render_aabb","phy_debug_render_collision_pairs","phy_debug_render_coms","phy_debug_render_core_shapes","phy_debug_render_joints","phy_debug_render_obb","phy_debug_render_shapes","phy_joint_anchor_1_x","phy_joint_anchor_1_y","phy_joint_anchor_2_x","phy_joint_anchor_2_y","phy_joint_angle","phy_joint_angle_limits","phy_joint_damping_ratio","phy_joint_frequency","phy_joint_length_1","phy_joint_length_2","phy_joint_lower_angle_limit","phy_joint_max_force","phy_joint_max_length","phy_joint_max_motor_force","phy_joint_max_motor_torque","phy_joint_max_torque","phy_joint_motor_force","phy_joint_motor_speed","phy_joint_motor_torque","phy_joint_reaction_force_x","phy_joint_reaction_force_y","phy_joint_reaction_torque","phy_joint_speed","phy_joint_translation","phy_joint_upper_angle_limit","phy_particle_data_flag_category","phy_particle_data_flag_color","phy_particle_data_flag_colour","phy_particle_data_flag_position","phy_particle_data_flag_typeflags","phy_particle_data_flag_velocity","phy_particle_flag_colormixing","phy_particle_flag_colourmixing","phy_particle_flag_elastic","phy_particle_flag_powder","phy_particle_flag_spring","phy_particle_flag_tensile","phy_particle_flag_viscous","phy_particle_flag_wall","phy_particle_flag_water","phy_particle_flag_zombie","phy_particle_group_flag_rigid","phy_particle_group_flag_solid","pi","pr_linelist","pr_linestrip","pr_pointlist","pr_trianglefan","pr_trianglelist","pr_trianglestrip","ps_distr_gaussian","ps_distr_invgaussian","ps_distr_linear","ps_shape_diamond","ps_shape_ellipse","ps_shape_line","ps_shape_rectangle","pt_shape_circle","pt_shape_cloud","pt_shape_disk","pt_shape_explosion","pt_shape_flare","pt_shape_line","pt_shape_pixel","pt_shape_ring","pt_shape_smoke","pt_shape_snow","pt_shape_spark","pt_shape_sphere","pt_shape_square","pt_shape_star","spritespeed_framespergameframe","spritespeed_framespersecond","text_type","tf_anisotropic","tf_linear","tf_point","tile_flip","tile_index_mask","tile_mirror","tile_rotate","timezone_local","timezone_utc","tm_countvsyncs","tm_sleep","ty_real","ty_string","ugc_filetype_community","ugc_filetype_microtrans","ugc_list_Favorited","ugc_list_Followed","ugc_list_Published","ugc_list_Subscribed","ugc_list_UsedOrPlayed","ugc_list_VotedDown","ugc_list_VotedOn","ugc_list_VotedUp","ugc_list_WillVoteLater","ugc_match_AllGuides","ugc_match_Artwork","ugc_match_Collections","ugc_match_ControllerBindings","ugc_match_IntegratedGuides","ugc_match_Items","ugc_match_Items_Mtx","ugc_match_Items_ReadyToUse","ugc_match_Screenshots","ugc_match_UsableInGame","ugc_match_Videos","ugc_match_WebGuides","ugc_query_AcceptedForGameRankedByAcceptanceDate","ugc_query_CreatedByFollowedUsersRankedByPublicationDate","ugc_query_CreatedByFriendsRankedByPublicationDate","ugc_query_FavoritedByFriendsRankedByPublicationDate","ugc_query_NotYetRated","ugc_query_RankedByNumTimesReported","ugc_query_RankedByPublicationDate","ugc_query_RankedByTextSearch","ugc_query_RankedByTotalVotesAsc","ugc_query_RankedByTrend","ugc_query_RankedByVote","ugc_query_RankedByVotesUp","ugc_result_success","ugc_sortorder_CreationOrderAsc","ugc_sortorder_CreationOrderDesc","ugc_sortorder_ForModeration","ugc_sortorder_LastUpdatedDesc","ugc_sortorder_SubscriptionDateDesc","ugc_sortorder_TitleAsc","ugc_sortorder_VoteScoreDesc","ugc_visibility_friends_only","ugc_visibility_private","ugc_visibility_public","vertex_type_color","vertex_type_colour","vertex_type_float1","vertex_type_float2","vertex_type_float3","vertex_type_float4","vertex_type_ubyte4","vertex_usage_binormal","vertex_usage_blendindices","vertex_usage_blendweight","vertex_usage_color","vertex_usage_colour","vertex_usage_depth","vertex_usage_fog","vertex_usage_normal","vertex_usage_position","vertex_usage_psize","vertex_usage_sample","vertex_usage_tangent","vertex_usage_texcoord","vertex_usage_textcoord","vk_add","vk_alt","vk_anykey","vk_backspace","vk_control","vk_decimal","vk_delete","vk_divide","vk_down","vk_end","vk_enter","vk_escape","vk_f1","vk_f2","vk_f3","vk_f4","vk_f5","vk_f6","vk_f7","vk_f8","vk_f9","vk_f10","vk_f11","vk_f12","vk_home","vk_insert","vk_lalt","vk_lcontrol","vk_left","vk_lshift","vk_multiply","vk_nokey","vk_numpad0","vk_numpad1","vk_numpad2","vk_numpad3","vk_numpad4","vk_numpad5","vk_numpad6","vk_numpad7","vk_numpad8","vk_numpad9","vk_pagedown","vk_pageup","vk_pause","vk_printscreen","vk_ralt","vk_rcontrol","vk_return","vk_right","vk_rshift","vk_shift","vk_space","vk_subtract","vk_tab","vk_up"],"variable.language":["alarm","application_surface","argument","argument0","argument1","argument2","argument3","argument4","argument5","argument6","argument7","argument8","argument9","argument10","argument11","argument12","argument13","argument14","argument15","argument_count","argument_relative","async_load","background_color","background_colour","background_showcolor","background_showcolour","bbox_bottom","bbox_left","bbox_right","bbox_top","browser_height","browser_width","caption_health","caption_lives","caption_score","current_day","current_hour","current_minute","current_month","current_second","current_time","current_weekday","current_year","cursor_sprite","debug_mode","delta_time","depth","direction","display_aa","error_last","error_occurred","event_action","event_data","event_number","event_object","event_type","fps","fps_real","friction","game_display_name","game_id","game_project_name","game_save_id","gamemaker_pro","gamemaker_registered","gamemaker_version","gravity","gravity_direction","health","hspeed","iap_data","id|0","image_alpha","image_angle","image_blend","image_index","image_number","image_speed","image_xscale","image_yscale","instance_count","instance_id","keyboard_key","keyboard_lastchar","keyboard_lastkey","keyboard_string","layer","lives","mask_index","mouse_button","mouse_lastbutton","mouse_x","mouse_y","object_index","os_browser","os_device","os_type","os_version","path_endaction","path_index","path_orientation","path_position","path_positionprevious","path_scale","path_speed","persistent","phy_active","phy_angular_damping","phy_angular_velocity","phy_bullet","phy_col_normal_x","phy_col_normal_y","phy_collision_points","phy_collision_x","phy_collision_y","phy_com_x","phy_com_y","phy_dynamic","phy_fixed_rotation","phy_inertia","phy_kinematic","phy_linear_damping","phy_linear_velocity_x","phy_linear_velocity_y","phy_mass","phy_position_x","phy_position_xprevious","phy_position_y","phy_position_yprevious","phy_rotation","phy_sleeping","phy_speed","phy_speed_x","phy_speed_y","program_directory","room","room_caption","room_first","room_height","room_last","room_persistent","room_speed","room_width","score","self","show_health","show_lives","show_score","solid","speed","sprite_height","sprite_index","sprite_width","sprite_xoffset","sprite_yoffset","temp_directory","timeline_index","timeline_loop","timeline_position","timeline_running","timeline_speed","view_angle","view_camera","view_current","view_enabled","view_hborder","view_hport","view_hspeed","view_hview","view_object","view_surface_id","view_vborder","view_visible","view_vspeed","view_wport","view_wview","view_xport","view_xview","view_yport","view_yview","visible","vspeed","webgl_enabled","working_directory","xprevious","xstart","x|0","yprevious","ystart","y|0"]},contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.C_NUMBER_MODE]}}function Kdn(e){return{name:"Golo",keywords:{keyword:["println","readln","print","import","module","function","local","return","let","var","while","for","foreach","times","in","case","when","match","with","break","continue","augment","augmentation","each","find","filter","reduce","if","then","else","otherwise","try","catch","finally","raise","throw","orIfNull","DynamicObject|10","DynamicVariable","struct","Observable","map","set","vector","list","array"],literal:["true","false","null"]},contains:[e.HASH_COMMENT_MODE,e.QUOTE_STRING_MODE,e.C_NUMBER_MODE,{className:"meta",begin:"@[A-Za-z]+"}]}}function Qdn(e){return{name:"Gradle",case_insensitive:!0,keywords:["task","project","allprojects","subprojects","artifacts","buildscript","configurations","dependencies","repositories","sourceSets","description","delete","from","into","include","exclude","source","classpath","destinationDir","includes","options","sourceCompatibility","targetCompatibility","group","flatDir","doLast","doFirst","flatten","todir","fromdir","ant","def","abstract","break","case","catch","continue","default","do","else","extends","final","finally","for","if","implements","instanceof","native","new","private","protected","public","return","static","switch","synchronized","throw","throws","transient","try","volatile","while","strictfp","package","import","false","null","super","this","true","antlrtask","checkstyle","codenarc","copy","boolean","byte","char","class","double","float","int","interface","long","short","void","compile","runTime","file","fileTree","abs","any","append","asList","asWritable","call","collect","compareTo","count","div","dump","each","eachByte","eachFile","eachLine","every","find","findAll","flatten","getAt","getErr","getIn","getOut","getText","grep","immutable","inject","inspect","intersect","invokeMethods","isCase","join","leftShift","minus","multiply","newInputStream","newOutputStream","newPrintWriter","newReader","newWriter","next","plus","pop","power","previous","print","println","push","putAt","read","readBytes","readLines","reverse","reverseEach","round","size","sort","splitEachLine","step","subMap","times","toInteger","toList","tokenize","upto","waitForOrKill","withPrintWriter","withReader","withStream","withWriter","withWriterAppend","write","writeLine"],contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.NUMBER_MODE,e.REGEXP_MODE]}}function L6(e,t={}){return t.variants=e,t}function Xdn(e){const t=e.regex,n="[A-Za-z0-9_$]+",r=L6([e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{begin:/\w+@/,relevance:0},{className:"doctag",begin:"@[A-Za-z]+"}]})]),i={className:"regexp",begin:/~?\/[^\/\n]+\//,contains:[e.BACKSLASH_ESCAPE]},o=L6([e.BINARY_NUMBER_MODE,e.C_NUMBER_MODE]),a=L6([{begin:/"""/,end:/"""/},{begin:/'''/,end:/'''/},{begin:"\\$/",end:"/\\$",relevance:10},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE],{className:"string"}),s={match:[/(class|interface|trait|enum|record|extends|implements)/,/\s+/,e.UNDERSCORE_IDENT_RE],scope:{1:"keyword",3:"title.class"}};return{name:"Groovy",keywords:{"variable.language":"this super",literal:"true false null",type:["byte","short","char","int","long","boolean","float","double","void"],keyword:["def","as","in","assert","trait","abstract","static","volatile","transient","public","private","protected","synchronized","final","class","interface","enum","if","else","for","while","switch","case","break","default","continue","throw","throws","try","catch","finally","implements","extends","new","import","package","return","instanceof","var"]},contains:[e.SHEBANG({binary:"groovy",relevance:10}),r,a,i,o,s,{className:"meta",begin:"@[A-Za-z]+",relevance:0},{className:"attr",begin:n+"[ ]*:",relevance:0},{begin:/\?/,end:/:/,relevance:0,contains:[r,a,i,o,"self"]},{className:"symbol",begin:"^[ ]*"+t.lookahead(n+":"),excludeBegin:!0,end:n+":",relevance:0}],illegal:/#|<\//}}function Zdn(e){return{name:"HAML",case_insensitive:!0,contains:[{className:"meta",begin:"^!!!( (5|1\\.1|Strict|Frameset|Basic|Mobile|RDFa|XML\\b.*))?$",relevance:10},e.COMMENT("^\\s*(!=#|=#|-#|/).*$",null,{relevance:0}),{begin:"^\\s*(-|=|!=)(?!#)",end:/$/,subLanguage:"ruby",excludeBegin:!0,excludeEnd:!0},{className:"tag",begin:"^\\s*%",contains:[{className:"selector-tag",begin:"\\w+"},{className:"selector-id",begin:"#[\\w-]+"},{className:"selector-class",begin:"\\.[\\w-]+"},{begin:/\{\s*/,end:/\s*\}/,contains:[{begin:":\\w+\\s*=>",end:",\\s+",returnBegin:!0,endsWithParent:!0,contains:[{className:"attr",begin:":\\w+"},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{begin:"\\w+",relevance:0}]}]},{begin:"\\(\\s*",end:"\\s*\\)",excludeEnd:!0,contains:[{begin:"\\w+\\s*=",end:"\\s+",returnBegin:!0,endsWithParent:!0,contains:[{className:"attr",begin:"\\w+",relevance:0},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{begin:"\\w+",relevance:0}]}]}]},{begin:"^\\s*[=~]\\s*"},{begin:/#\{/,end:/\}/,subLanguage:"ruby",excludeBegin:!0,excludeEnd:!0}]}}function Jdn(e){const t=e.regex,n={$pattern:/[\w.\/]+/,built_in:["action","bindattr","collection","component","concat","debugger","each","each-in","get","hash","if","in","input","link-to","loc","log","lookup","mut","outlet","partial","query-params","render","template","textarea","unbound","unless","view","with","yield"]},r={$pattern:/[\w.\/]+/,literal:["true","false","undefined","null"]},i=/""|"[^"]+"/,o=/''|'[^']+'/,a=/\[\]|\[[^\]]+\]/,s=/[^\s!"#%&'()*+,.\/;<=>@\[\\\]^`{|}~]+/,l=/(\.|\/)/,c=t.either(i,o,a,s),u=t.concat(t.optional(/\.|\.\/|\//),c,t.anyNumberOfTimes(t.concat(l,c))),d=t.concat("(",a,"|",s,")(?==)"),f={begin:u},h=e.inherit(f,{keywords:r}),m={begin:/\(/,end:/\)/},g={className:"attr",begin:d,relevance:0,starts:{begin:/=/,end:/=/,starts:{contains:[e.NUMBER_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,h,m]}}},v={begin:/as\s+\|/,keywords:{keyword:"as"},end:/\|/,contains:[{begin:/\w+/}]},y={contains:[e.NUMBER_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,v,g,h,m],returnEnd:!0},b=e.inherit(f,{className:"name",keywords:n,starts:e.inherit(y,{end:/\)/})});m.contains=[b];const _=e.inherit(f,{keywords:n,className:"name",starts:e.inherit(y,{end:/\}\}/})}),E=e.inherit(f,{keywords:n,className:"name"}),w=e.inherit(f,{className:"name",keywords:n,starts:e.inherit(y,{end:/\}\}/})});return{name:"Handlebars",aliases:["hbs","html.hbs","html.handlebars","htmlbars"],case_insensitive:!0,subLanguage:"xml",contains:[{begin:/\\\{\{/,skip:!0},{begin:/\\\\(?=\{\{)/,skip:!0},e.COMMENT(/\{\{!--/,/--\}\}/),e.COMMENT(/\{\{!/,/\}\}/),{className:"template-tag",begin:/\{\{\{\{(?!\/)/,end:/\}\}\}\}/,contains:[_],starts:{end:/\{\{\{\{\//,returnEnd:!0,subLanguage:"xml"}},{className:"template-tag",begin:/\{\{\{\{\//,end:/\}\}\}\}/,contains:[E]},{className:"template-tag",begin:/\{\{#/,end:/\}\}/,contains:[_]},{className:"template-tag",begin:/\{\{(?=else\}\})/,end:/\}\}/,keywords:"else"},{className:"template-tag",begin:/\{\{(?=else if)/,end:/\}\}/,keywords:"else if"},{className:"template-tag",begin:/\{\{\//,end:/\}\}/,contains:[E]},{className:"template-variable",begin:/\{\{\{/,end:/\}\}\}/,contains:[w]},{className:"template-variable",begin:/\{\{/,end:/\}\}/,contains:[w]}]}}function efn(e){const t="([0-9]_*)+",n="([0-9a-fA-F]_*)+",r="([01]_*)+",i="([0-7]_*)+",o="([!#$%&*+.\\/<=>?@\\\\^~-]|(?!([(),;\\[\\]`|{}]|[_:\"']))(\\p{S}|\\p{P}))",a={variants:[e.COMMENT("--+","$"),e.COMMENT(/\{-/,/-\}/,{contains:["self"]})]},s={className:"meta",begin:/\{-#/,end:/#-\}/},l={className:"meta",begin:"^#",end:"$"},c={className:"type",begin:"\\b[A-Z][\\w']*",relevance:0},u={begin:"\\(",end:"\\)",illegal:'"',contains:[s,l,{className:"type",begin:"\\b[A-Z][\\w]*(\\((\\.\\.|,|\\w+)\\))?"},e.inherit(e.TITLE_MODE,{begin:"[_a-z][\\w']*"}),a]},d={begin:/\{/,end:/\}/,contains:u.contains},f={className:"number",relevance:0,variants:[{match:`\\b(${t})(\\.(${t}))?([eE][+-]?(${t}))?\\b`},{match:`\\b0[xX]_*(${n})(\\.(${n}))?([pP][+-]?(${t}))?\\b`},{match:`\\b0[oO](${i})\\b`},{match:`\\b0[bB](${r})\\b`}]};return{name:"Haskell",aliases:["hs"],keywords:"let in if then else case of where do module import hiding qualified type data newtype deriving class instance as default infix infixl infixr foreign export ccall stdcall cplusplus jvm dotnet safe unsafe family forall mdo proc rec",unicodeRegex:!0,contains:[{beginKeywords:"module",end:"where",keywords:"module where",contains:[u,a],illegal:"\\W\\.|;"},{begin:"\\bimport\\b",end:"$",keywords:"import qualified as hiding",contains:[u,a],illegal:"\\W\\.|;"},{className:"class",begin:"^(\\s*)?(class|instance)\\b",end:"where",keywords:"class family instance where",contains:[c,u,a]},{className:"class",begin:"\\b(data|(new)?type)\\b",end:"$",keywords:"data family type newtype deriving",contains:[s,c,u,d,a]},{beginKeywords:"default",end:"$",contains:[c,u,a]},{beginKeywords:"infix infixl infixr",end:"$",contains:[e.C_NUMBER_MODE,a]},{begin:"\\bforeign\\b",end:"$",keywords:"foreign import export ccall stdcall cplusplus jvm dotnet safe unsafe",contains:[c,e.QUOTE_STRING_MODE,a]},{className:"meta",begin:"#!\\/usr\\/bin\\/env runhaskell",end:"$"},s,l,{scope:"string",begin:/'(?=\\?.')/,end:/'/,contains:[{scope:"char.escape",match:/\\./}]},e.QUOTE_STRING_MODE,f,c,e.inherit(e.TITLE_MODE,{begin:"^[_a-z][\\w']*"}),{begin:`(?!-)${o}--+|--+(?!-)${o}`},a,{begin:"->|<-"}]}}function tfn(e){const t="[a-zA-Z_$][a-zA-Z0-9_$]*",n=/(-?)(\b0[xX][a-fA-F0-9_]+|(\b\d+(\.[\d_]*)?|\.[\d_]+)(([eE][-+]?\d+)|i32|u32|i64|f64)?)/;return{name:"Haxe",aliases:["hx"],keywords:{keyword:"abstract break case cast catch continue default do dynamic else enum extern final for function here if import in inline is macro never new override package private get set public return static super switch this throw trace try typedef untyped using var while Int Float String Bool Dynamic Void Array ",built_in:"trace this",literal:"true false null _"},contains:[{className:"string",begin:"'",end:"'",contains:[e.BACKSLASH_ESCAPE,{className:"subst",begin:/\$\{/,end:/\}/},{className:"subst",begin:/\$/,end:/\W\}/}]},e.QUOTE_STRING_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"number",begin:n,relevance:0},{className:"variable",begin:"\\$"+t},{className:"meta",begin:/@:?/,end:/\(|$/,excludeEnd:!0},{className:"meta",begin:"#",end:"$",keywords:{keyword:"if else elseif end error"}},{className:"type",begin:/:[ \t]*/,end:/[^A-Za-z0-9_ \t\->]/,excludeBegin:!0,excludeEnd:!0,relevance:0},{className:"type",begin:/:[ \t]*/,end:/\W/,excludeBegin:!0,excludeEnd:!0},{className:"type",begin:/new */,end:/\W/,excludeBegin:!0,excludeEnd:!0},{className:"title.class",beginKeywords:"enum",end:/\{/,contains:[e.TITLE_MODE]},{className:"title.class",begin:"\\babstract\\b(?=\\s*"+e.IDENT_RE+"\\s*\\()",end:/[\{$]/,contains:[{className:"type",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0},{className:"type",begin:/from +/,end:/\W/,excludeBegin:!0,excludeEnd:!0},{className:"type",begin:/to +/,end:/\W/,excludeBegin:!0,excludeEnd:!0},e.TITLE_MODE],keywords:{keyword:"abstract from to"}},{className:"title.class",begin:/\b(class|interface) +/,end:/[\{$]/,excludeEnd:!0,keywords:"class interface",contains:[{className:"keyword",begin:/\b(extends|implements) +/,keywords:"extends implements",contains:[{className:"type",begin:e.IDENT_RE,relevance:0}]},e.TITLE_MODE]},{className:"title.function",beginKeywords:"function",end:/\(/,excludeEnd:!0,illegal:/\S/,contains:[e.TITLE_MODE]}],illegal:/<\//}}function nfn(e){return{name:"HSP",case_insensitive:!0,keywords:{$pattern:/[\w._]+/,keyword:"goto gosub return break repeat loop continue wait await dim sdim foreach dimtype dup dupptr end stop newmod delmod mref run exgoto on mcall assert logmes newlab resume yield onexit onerror onkey onclick oncmd exist delete mkdir chdir dirlist bload bsave bcopy memfile if else poke wpoke lpoke getstr chdpm memexpand memcpy memset notesel noteadd notedel noteload notesave randomize noteunsel noteget split strrep setease button chgdisp exec dialog mmload mmplay mmstop mci pset pget syscolor mes print title pos circle cls font sysfont objsize picload color palcolor palette redraw width gsel gcopy gzoom gmode bmpsave hsvcolor getkey listbox chkbox combox input mesbox buffer screen bgscr mouse objsel groll line clrobj boxf objprm objmode stick grect grotate gsquare gradf objimage objskip objenable celload celdiv celput newcom querycom delcom cnvstow comres axobj winobj sendmsg comevent comevarg sarrayconv callfunc cnvwtos comevdisp libptr system hspstat hspver stat cnt err strsize looplev sublev iparam wparam lparam refstr refdval int rnd strlen length length2 length3 length4 vartype gettime peek wpeek lpeek varptr varuse noteinfo instr abs limit getease str strmid strf getpath strtrim sin cos tan atan sqrt double absf expf logf limitf powf geteasef mousex mousey mousew hwnd hinstance hdc ginfo objinfo dirinfo sysinfo thismod __hspver__ __hsp30__ __date__ __time__ __line__ __file__ _debug __hspdef__ and or xor not screen_normal screen_palette screen_hide screen_fixedsize screen_tool screen_frame gmode_gdi gmode_mem gmode_rgb0 gmode_alpha gmode_rgb0alpha gmode_add gmode_sub gmode_pixela ginfo_mx ginfo_my ginfo_act ginfo_sel ginfo_wx1 ginfo_wy1 ginfo_wx2 ginfo_wy2 ginfo_vx ginfo_vy ginfo_sizex ginfo_sizey ginfo_winx ginfo_winy ginfo_mesx ginfo_mesy ginfo_r ginfo_g ginfo_b ginfo_paluse ginfo_dispx ginfo_dispy ginfo_cx ginfo_cy ginfo_intid ginfo_newid ginfo_sx ginfo_sy objinfo_mode objinfo_bmscr objinfo_hwnd notemax notesize dir_cur dir_exe dir_win dir_sys dir_cmdline dir_desktop dir_mydoc dir_tv font_normal font_bold font_italic font_underline font_strikeout font_antialias objmode_normal objmode_guifont objmode_usefont gsquare_grad msgothic msmincho do until while wend for next _break _continue switch case default swbreak swend ddim ldim alloc m_pi rad2deg deg2rad ease_linear ease_quad_in ease_quad_out ease_quad_inout ease_cubic_in ease_cubic_out ease_cubic_inout ease_quartic_in ease_quartic_out ease_quartic_inout ease_bounce_in ease_bounce_out ease_bounce_inout ease_shake_in ease_shake_out ease_shake_inout ease_loop"},contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,{className:"string",begin:/\{"/,end:/"\}/,contains:[e.BACKSLASH_ESCAPE]},e.COMMENT(";","$",{relevance:0}),{className:"meta",begin:"#",end:"$",keywords:{keyword:"addion cfunc cmd cmpopt comfunc const defcfunc deffunc define else endif enum epack func global if ifdef ifndef include modcfunc modfunc modinit modterm module pack packopt regcmd runtime undef usecom uselib"},contains:[e.inherit(e.QUOTE_STRING_MODE,{className:"string"}),e.NUMBER_MODE,e.C_NUMBER_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{className:"symbol",begin:"^\\*(\\w+|@)"},e.NUMBER_MODE,e.C_NUMBER_MODE]}}function rfn(e){const t=e.regex,n="HTTP/([32]|1\\.[01])",r=/[A-Za-z][A-Za-z0-9-]*/,i={className:"attribute",begin:t.concat("^",r,"(?=\\:\\s)"),starts:{contains:[{className:"punctuation",begin:/: /,relevance:0,starts:{end:"$",relevance:0}}]}},o=[i,{begin:"\\n\\n",starts:{subLanguage:[],endsWithParent:!0}}];return{name:"HTTP",aliases:["https"],illegal:/\S/,contains:[{begin:"^(?="+n+" \\d{3})",end:/$/,contains:[{className:"meta",begin:n},{className:"number",begin:"\\b\\d{3}\\b"}],starts:{end:/\b\B/,illegal:/\S/,contains:o}},{begin:"(?=^[A-Z]+ (.*?) "+n+"$)",end:/$/,contains:[{className:"string",begin:" ",end:" ",excludeBegin:!0,excludeEnd:!0},{className:"meta",begin:n},{className:"keyword",begin:"[A-Z]+"}],starts:{end:/\b\B/,illegal:/\S/,contains:o}},e.inherit(i,{relevance:0})]}}function ifn(e){const t="a-zA-Z_\\-!.?+*=<>&#'",n="["+t+"]["+t+"0-9/;:]*",r={$pattern:n,built_in:"!= % %= & &= * ** **= *= *map + += , --build-class-- --import-- -= . / // //= /= < << <<= <= = > >= >> >>= @ @= ^ ^= abs accumulate all and any ap-compose ap-dotimes ap-each ap-each-while ap-filter ap-first ap-if ap-last ap-map ap-map-when ap-pipe ap-reduce ap-reject apply as-> ascii assert assoc bin break butlast callable calling-module-name car case cdr chain chr coll? combinations compile compress cond cons cons? continue count curry cut cycle dec def default-method defclass defmacro defmacro-alias defmacro/g! defmain defmethod defmulti defn defn-alias defnc defnr defreader defseq del delattr delete-route dict-comp dir disassemble dispatch-reader-macro distinct divmod do doto drop drop-last drop-while empty? end-sequence eval eval-and-compile eval-when-compile even? every? except exec filter first flatten float? fn fnc fnr for for* format fraction genexpr gensym get getattr global globals group-by hasattr hash hex id identity if if* if-not if-python2 import in inc input instance? integer integer-char? integer? interleave interpose is is-coll is-cons is-empty is-even is-every is-float is-instance is-integer is-integer-char is-iterable is-iterator is-keyword is-neg is-none is-not is-numeric is-odd is-pos is-string is-symbol is-zero isinstance islice issubclass iter iterable? iterate iterator? keyword keyword? lambda last len let lif lif-not list* list-comp locals loop macro-error macroexpand macroexpand-1 macroexpand-all map max merge-with method-decorator min multi-decorator multicombinations name neg? next none? nonlocal not not-in not? nth numeric? oct odd? open or ord partition permutations pos? post-route postwalk pow prewalk print product profile/calls profile/cpu put-route quasiquote quote raise range read read-str recursive-replace reduce remove repeat repeatedly repr require rest round route route-with-methods rwm second seq set-comp setattr setv some sorted string string? sum switch symbol? take take-nth take-while tee try unless unquote unquote-splicing vars walk when while with with* with-decorator with-gensyms xi xor yield yield-from zero? zip zip-longest | |= ~"},i="[-+]?\\d+(\\.\\d+)?",o={begin:n,relevance:0},a={className:"number",begin:i,relevance:0},s=e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),l=e.COMMENT(";","$",{relevance:0}),c={className:"literal",begin:/\b([Tt]rue|[Ff]alse|nil|None)\b/},u={begin:"[\\[\\{]",end:"[\\]\\}]",relevance:0},d={className:"comment",begin:"\\^"+n},f=e.COMMENT("\\^\\{","\\}"),h={className:"symbol",begin:"[:]{1,2}"+n},m={begin:"\\(",end:"\\)"},g={endsWithParent:!0,relevance:0},v={className:"name",relevance:0,keywords:r,begin:n,starts:g},y=[m,s,d,f,l,h,u,a,c,o];return m.contains=[e.COMMENT("comment",""),v,g],g.contains=y,u.contains=y,{name:"Hy",aliases:["hylang"],illegal:/\S/,contains:[e.SHEBANG(),m,s,d,f,l,h,u,a,c]}}function ofn(e){const t="\\[",n="\\]";return{name:"Inform 7",aliases:["i7"],case_insensitive:!0,keywords:{keyword:"thing room person man woman animal container supporter backdrop door scenery open closed locked inside gender is are say understand kind of rule"},contains:[{className:"string",begin:'"',end:'"',relevance:0,contains:[{className:"subst",begin:t,end:n}]},{className:"section",begin:/^(Volume|Book|Part|Chapter|Section|Table)\b/,end:"$"},{begin:/^(Check|Carry out|Report|Instead of|To|Rule|When|Before|After)\b/,end:":",contains:[{begin:"\\(This",end:"\\)"}]},{className:"comment",begin:t,end:n,contains:["self"]}]}}function afn(e){const t=e.regex,n={className:"params",begin:"\\(",end:"\\)"},r=/(_[a-z_\d]+)?/,i=/([de][+-]?\d+)?/,o={className:"number",variants:[{begin:t.concat(/\b\d+/,/\.(\d*)/,i,r)},{begin:t.concat(/\b\d+/,i,r)},{begin:t.concat(/\.\d+/,i,r)}],relevance:0};return{name:"IRPF90",case_insensitive:!0,keywords:{literal:".False. .True.",keyword:"kind do while private call intrinsic where elsewhere type endtype endmodule endselect endinterface end enddo endif if forall endforall only contains default return stop then public subroutine|10 function program .and. .or. .not. .le. .eq. .ge. .gt. .lt. goto save else use module select case access blank direct exist file fmt form formatted iostat name named nextrec number opened rec recl sequential status unformatted unit continue format pause cycle exit c_null_char c_alert c_backspace c_form_feed flush wait decimal round iomsg synchronous nopass non_overridable pass protected volatile abstract extends import non_intrinsic value deferred generic final enumerator class associate bind enum c_int c_short c_long c_long_long c_signed_char c_size_t c_int8_t c_int16_t c_int32_t c_int64_t c_int_least8_t c_int_least16_t c_int_least32_t c_int_least64_t c_int_fast8_t c_int_fast16_t c_int_fast32_t c_int_fast64_t c_intmax_t C_intptr_t c_float c_double c_long_double c_float_complex c_double_complex c_long_double_complex c_bool c_char c_null_ptr c_null_funptr c_new_line c_carriage_return c_horizontal_tab c_vertical_tab iso_c_binding c_loc c_funloc c_associated c_f_pointer c_ptr c_funptr iso_fortran_env character_storage_size error_unit file_storage_size input_unit iostat_end iostat_eor numeric_storage_size output_unit c_f_procpointer ieee_arithmetic ieee_support_underflow_control ieee_get_underflow_mode ieee_set_underflow_mode newunit contiguous recursive pad position action delim readwrite eor advance nml interface procedure namelist include sequence elemental pure integer real character complex logical dimension allocatable|10 parameter external implicit|10 none double precision assign intent optional pointer target in out common equivalence data begin_provider &begin_provider end_provider begin_shell end_shell begin_template end_template subst assert touch soft_touch provide no_dep free irp_if irp_else irp_endif irp_write irp_read",built_in:"alog alog10 amax0 amax1 amin0 amin1 amod cabs ccos cexp clog csin csqrt dabs dacos dasin datan datan2 dcos dcosh ddim dexp dint dlog dlog10 dmax1 dmin1 dmod dnint dsign dsin dsinh dsqrt dtan dtanh float iabs idim idint idnint ifix isign max0 max1 min0 min1 sngl algama cdabs cdcos cdexp cdlog cdsin cdsqrt cqabs cqcos cqexp cqlog cqsin cqsqrt dcmplx dconjg derf derfc dfloat dgamma dimag dlgama iqint qabs qacos qasin qatan qatan2 qcmplx qconjg qcos qcosh qdim qerf qerfc qexp qgamma qimag qlgama qlog qlog10 qmax1 qmin1 qmod qnint qsign qsin qsinh qsqrt qtan qtanh abs acos aimag aint anint asin atan atan2 char cmplx conjg cos cosh exp ichar index int log log10 max min nint sign sin sinh sqrt tan tanh print write dim lge lgt lle llt mod nullify allocate deallocate adjustl adjustr all allocated any associated bit_size btest ceiling count cshift date_and_time digits dot_product eoshift epsilon exponent floor fraction huge iand ibclr ibits ibset ieor ior ishft ishftc lbound len_trim matmul maxexponent maxloc maxval merge minexponent minloc minval modulo mvbits nearest pack present product radix random_number random_seed range repeat reshape rrspacing scale scan selected_int_kind selected_real_kind set_exponent shape size spacing spread sum system_clock tiny transpose trim ubound unpack verify achar iachar transfer dble entry dprod cpu_time command_argument_count get_command get_command_argument get_environment_variable is_iostat_end ieee_arithmetic ieee_support_underflow_control ieee_get_underflow_mode ieee_set_underflow_mode is_iostat_eor move_alloc new_line selected_char_kind same_type_as extends_type_of acosh asinh atanh bessel_j0 bessel_j1 bessel_jn bessel_y0 bessel_y1 bessel_yn erf erfc erfc_scaled gamma log_gamma hypot norm2 atomic_define atomic_ref execute_command_line leadz trailz storage_size merge_bits bge bgt ble blt dshiftl dshiftr findloc iall iany iparity image_index lcobound ucobound maskl maskr num_images parity popcnt poppar shifta shiftl shiftr this_image IRP_ALIGN irp_here"},illegal:/\/\*/,contains:[e.inherit(e.APOS_STRING_MODE,{className:"string",relevance:0}),e.inherit(e.QUOTE_STRING_MODE,{className:"string",relevance:0}),{className:"function",beginKeywords:"subroutine function program",illegal:"[${=\\n]",contains:[e.UNDERSCORE_TITLE_MODE,n]},e.COMMENT("!","$",{relevance:0}),e.COMMENT("begin_doc","end_doc",{relevance:10}),o]}}function sfn(e){const t="[A-Za-zА-Яа-яёЁ_!][A-Za-zА-Яа-яёЁ_0-9]*",n="[A-Za-zА-Яа-яёЁ_][A-Za-zА-Яа-яёЁ_0-9]*",r="and и else иначе endexcept endfinally endforeach конецвсе endif конецесли endwhile конецпока except exitfor finally foreach все if если in в not не or или try while пока ",i="SYSRES_CONST_ACCES_RIGHT_TYPE_EDIT SYSRES_CONST_ACCES_RIGHT_TYPE_FULL SYSRES_CONST_ACCES_RIGHT_TYPE_VIEW SYSRES_CONST_ACCESS_MODE_REQUISITE_CODE SYSRES_CONST_ACCESS_NO_ACCESS_VIEW SYSRES_CONST_ACCESS_NO_ACCESS_VIEW_CODE SYSRES_CONST_ACCESS_RIGHTS_ADD_REQUISITE_CODE SYSRES_CONST_ACCESS_RIGHTS_ADD_REQUISITE_YES_CODE SYSRES_CONST_ACCESS_RIGHTS_CHANGE_REQUISITE_CODE SYSRES_CONST_ACCESS_RIGHTS_CHANGE_REQUISITE_YES_CODE SYSRES_CONST_ACCESS_RIGHTS_DELETE_REQUISITE_CODE SYSRES_CONST_ACCESS_RIGHTS_DELETE_REQUISITE_YES_CODE SYSRES_CONST_ACCESS_RIGHTS_EXECUTE_REQUISITE_CODE SYSRES_CONST_ACCESS_RIGHTS_EXECUTE_REQUISITE_YES_CODE SYSRES_CONST_ACCESS_RIGHTS_NO_ACCESS_REQUISITE_CODE SYSRES_CONST_ACCESS_RIGHTS_NO_ACCESS_REQUISITE_YES_CODE SYSRES_CONST_ACCESS_RIGHTS_RATIFY_REQUISITE_CODE SYSRES_CONST_ACCESS_RIGHTS_RATIFY_REQUISITE_YES_CODE SYSRES_CONST_ACCESS_RIGHTS_REQUISITE_CODE SYSRES_CONST_ACCESS_RIGHTS_VIEW SYSRES_CONST_ACCESS_RIGHTS_VIEW_CODE SYSRES_CONST_ACCESS_RIGHTS_VIEW_REQUISITE_CODE SYSRES_CONST_ACCESS_RIGHTS_VIEW_REQUISITE_YES_CODE SYSRES_CONST_ACCESS_TYPE_CHANGE SYSRES_CONST_ACCESS_TYPE_CHANGE_CODE SYSRES_CONST_ACCESS_TYPE_EXISTS SYSRES_CONST_ACCESS_TYPE_EXISTS_CODE SYSRES_CONST_ACCESS_TYPE_FULL SYSRES_CONST_ACCESS_TYPE_FULL_CODE SYSRES_CONST_ACCESS_TYPE_VIEW SYSRES_CONST_ACCESS_TYPE_VIEW_CODE SYSRES_CONST_ACTION_TYPE_ABORT SYSRES_CONST_ACTION_TYPE_ACCEPT SYSRES_CONST_ACTION_TYPE_ACCESS_RIGHTS SYSRES_CONST_ACTION_TYPE_ADD_ATTACHMENT SYSRES_CONST_ACTION_TYPE_CHANGE_CARD SYSRES_CONST_ACTION_TYPE_CHANGE_KIND SYSRES_CONST_ACTION_TYPE_CHANGE_STORAGE SYSRES_CONST_ACTION_TYPE_CONTINUE SYSRES_CONST_ACTION_TYPE_COPY SYSRES_CONST_ACTION_TYPE_CREATE SYSRES_CONST_ACTION_TYPE_CREATE_VERSION SYSRES_CONST_ACTION_TYPE_DELETE SYSRES_CONST_ACTION_TYPE_DELETE_ATTACHMENT SYSRES_CONST_ACTION_TYPE_DELETE_VERSION SYSRES_CONST_ACTION_TYPE_DISABLE_DELEGATE_ACCESS_RIGHTS SYSRES_CONST_ACTION_TYPE_ENABLE_DELEGATE_ACCESS_RIGHTS SYSRES_CONST_ACTION_TYPE_ENCRYPTION_BY_CERTIFICATE SYSRES_CONST_ACTION_TYPE_ENCRYPTION_BY_CERTIFICATE_AND_PASSWORD SYSRES_CONST_ACTION_TYPE_ENCRYPTION_BY_PASSWORD SYSRES_CONST_ACTION_TYPE_EXPORT_WITH_LOCK SYSRES_CONST_ACTION_TYPE_EXPORT_WITHOUT_LOCK SYSRES_CONST_ACTION_TYPE_IMPORT_WITH_UNLOCK SYSRES_CONST_ACTION_TYPE_IMPORT_WITHOUT_UNLOCK SYSRES_CONST_ACTION_TYPE_LIFE_CYCLE_STAGE SYSRES_CONST_ACTION_TYPE_LOCK SYSRES_CONST_ACTION_TYPE_LOCK_FOR_SERVER SYSRES_CONST_ACTION_TYPE_LOCK_MODIFY SYSRES_CONST_ACTION_TYPE_MARK_AS_READED SYSRES_CONST_ACTION_TYPE_MARK_AS_UNREADED SYSRES_CONST_ACTION_TYPE_MODIFY SYSRES_CONST_ACTION_TYPE_MODIFY_CARD SYSRES_CONST_ACTION_TYPE_MOVE_TO_ARCHIVE SYSRES_CONST_ACTION_TYPE_OFF_ENCRYPTION SYSRES_CONST_ACTION_TYPE_PASSWORD_CHANGE SYSRES_CONST_ACTION_TYPE_PERFORM SYSRES_CONST_ACTION_TYPE_RECOVER_FROM_LOCAL_COPY SYSRES_CONST_ACTION_TYPE_RESTART SYSRES_CONST_ACTION_TYPE_RESTORE_FROM_ARCHIVE SYSRES_CONST_ACTION_TYPE_REVISION SYSRES_CONST_ACTION_TYPE_SEND_BY_MAIL SYSRES_CONST_ACTION_TYPE_SIGN SYSRES_CONST_ACTION_TYPE_START SYSRES_CONST_ACTION_TYPE_UNLOCK SYSRES_CONST_ACTION_TYPE_UNLOCK_FROM_SERVER SYSRES_CONST_ACTION_TYPE_VERSION_STATE SYSRES_CONST_ACTION_TYPE_VERSION_VISIBILITY SYSRES_CONST_ACTION_TYPE_VIEW SYSRES_CONST_ACTION_TYPE_VIEW_SHADOW_COPY SYSRES_CONST_ACTION_TYPE_WORKFLOW_DESCRIPTION_MODIFY SYSRES_CONST_ACTION_TYPE_WRITE_HISTORY SYSRES_CONST_ACTIVE_VERSION_STATE_PICK_VALUE SYSRES_CONST_ADD_REFERENCE_MODE_NAME SYSRES_CONST_ADDITION_REQUISITE_CODE SYSRES_CONST_ADDITIONAL_PARAMS_REQUISITE_CODE SYSRES_CONST_ADITIONAL_JOB_END_DATE_REQUISITE_NAME SYSRES_CONST_ADITIONAL_JOB_READ_REQUISITE_NAME SYSRES_CONST_ADITIONAL_JOB_START_DATE_REQUISITE_NAME SYSRES_CONST_ADITIONAL_JOB_STATE_REQUISITE_NAME SYSRES_CONST_ADMINISTRATION_HISTORY_ADDING_USER_TO_GROUP_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_ADDING_USER_TO_GROUP_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_CREATION_COMP_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_CREATION_COMP_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_CREATION_GROUP_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_CREATION_GROUP_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_CREATION_USER_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_CREATION_USER_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_DATABASE_USER_CREATION SYSRES_CONST_ADMINISTRATION_HISTORY_DATABASE_USER_CREATION_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_DATABASE_USER_DELETION SYSRES_CONST_ADMINISTRATION_HISTORY_DATABASE_USER_DELETION_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_DELETION_COMP_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_DELETION_COMP_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_DELETION_GROUP_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_DELETION_GROUP_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_DELETION_USER_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_DELETION_USER_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_DELETION_USER_FROM_GROUP_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_DELETION_USER_FROM_GROUP_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_GRANTING_FILTERER_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_GRANTING_FILTERER_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_GRANTING_FILTERER_RESTRICTION_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_GRANTING_FILTERER_RESTRICTION_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_GRANTING_PRIVILEGE_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_GRANTING_PRIVILEGE_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_GRANTING_RIGHTS_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_GRANTING_RIGHTS_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_IS_MAIN_SERVER_CHANGED_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_IS_MAIN_SERVER_CHANGED_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_IS_PUBLIC_CHANGED_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_IS_PUBLIC_CHANGED_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_REMOVING_FILTERER_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_REMOVING_FILTERER_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_REMOVING_FILTERER_RESTRICTION_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_REMOVING_FILTERER_RESTRICTION_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_REMOVING_PRIVILEGE_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_REMOVING_PRIVILEGE_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_REMOVING_RIGHTS_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_REMOVING_RIGHTS_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_SERVER_LOGIN_CREATION SYSRES_CONST_ADMINISTRATION_HISTORY_SERVER_LOGIN_CREATION_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_SERVER_LOGIN_DELETION SYSRES_CONST_ADMINISTRATION_HISTORY_SERVER_LOGIN_DELETION_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_CATEGORY_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_CATEGORY_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_COMP_TITLE_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_COMP_TITLE_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_FULL_NAME_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_FULL_NAME_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_GROUP_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_GROUP_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_PARENT_GROUP_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_PARENT_GROUP_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_USER_AUTH_TYPE_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_USER_AUTH_TYPE_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_USER_LOGIN_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_USER_LOGIN_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_USER_STATUS_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_USER_STATUS_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_USER_PASSWORD_CHANGE SYSRES_CONST_ADMINISTRATION_HISTORY_USER_PASSWORD_CHANGE_ACTION SYSRES_CONST_ALL_ACCEPT_CONDITION_RUS SYSRES_CONST_ALL_USERS_GROUP SYSRES_CONST_ALL_USERS_GROUP_NAME SYSRES_CONST_ALL_USERS_SERVER_GROUP_NAME SYSRES_CONST_ALLOWED_ACCESS_TYPE_CODE SYSRES_CONST_ALLOWED_ACCESS_TYPE_NAME SYSRES_CONST_APP_VIEWER_TYPE_REQUISITE_CODE SYSRES_CONST_APPROVING_SIGNATURE_NAME SYSRES_CONST_APPROVING_SIGNATURE_REQUISITE_CODE SYSRES_CONST_ASSISTANT_SUBSTITUE_TYPE SYSRES_CONST_ASSISTANT_SUBSTITUE_TYPE_CODE SYSRES_CONST_ATTACH_TYPE_COMPONENT_TOKEN SYSRES_CONST_ATTACH_TYPE_DOC SYSRES_CONST_ATTACH_TYPE_EDOC SYSRES_CONST_ATTACH_TYPE_FOLDER SYSRES_CONST_ATTACH_TYPE_JOB SYSRES_CONST_ATTACH_TYPE_REFERENCE SYSRES_CONST_ATTACH_TYPE_TASK SYSRES_CONST_AUTH_ENCODED_PASSWORD SYSRES_CONST_AUTH_ENCODED_PASSWORD_CODE SYSRES_CONST_AUTH_NOVELL SYSRES_CONST_AUTH_PASSWORD SYSRES_CONST_AUTH_PASSWORD_CODE SYSRES_CONST_AUTH_WINDOWS SYSRES_CONST_AUTHENTICATING_SIGNATURE_NAME SYSRES_CONST_AUTHENTICATING_SIGNATURE_REQUISITE_CODE SYSRES_CONST_AUTO_ENUM_METHOD_FLAG SYSRES_CONST_AUTO_NUMERATION_CODE SYSRES_CONST_AUTO_STRONG_ENUM_METHOD_FLAG SYSRES_CONST_AUTOTEXT_NAME_REQUISITE_CODE SYSRES_CONST_AUTOTEXT_TEXT_REQUISITE_CODE SYSRES_CONST_AUTOTEXT_USAGE_ALL SYSRES_CONST_AUTOTEXT_USAGE_ALL_CODE SYSRES_CONST_AUTOTEXT_USAGE_SIGN SYSRES_CONST_AUTOTEXT_USAGE_SIGN_CODE SYSRES_CONST_AUTOTEXT_USAGE_WORK SYSRES_CONST_AUTOTEXT_USAGE_WORK_CODE SYSRES_CONST_AUTOTEXT_USE_ANYWHERE_CODE SYSRES_CONST_AUTOTEXT_USE_ON_SIGNING_CODE SYSRES_CONST_AUTOTEXT_USE_ON_WORK_CODE SYSRES_CONST_BEGIN_DATE_REQUISITE_CODE SYSRES_CONST_BLACK_LIFE_CYCLE_STAGE_FONT_COLOR SYSRES_CONST_BLUE_LIFE_CYCLE_STAGE_FONT_COLOR SYSRES_CONST_BTN_PART SYSRES_CONST_CALCULATED_ROLE_TYPE_CODE SYSRES_CONST_CALL_TYPE_VARIABLE_BUTTON_VALUE SYSRES_CONST_CALL_TYPE_VARIABLE_PROGRAM_VALUE SYSRES_CONST_CANCEL_MESSAGE_FUNCTION_RESULT SYSRES_CONST_CARD_PART SYSRES_CONST_CARD_REFERENCE_MODE_NAME SYSRES_CONST_CERTIFICATE_TYPE_REQUISITE_ENCRYPT_VALUE SYSRES_CONST_CERTIFICATE_TYPE_REQUISITE_SIGN_AND_ENCRYPT_VALUE SYSRES_CONST_CERTIFICATE_TYPE_REQUISITE_SIGN_VALUE SYSRES_CONST_CHECK_PARAM_VALUE_DATE_PARAM_TYPE SYSRES_CONST_CHECK_PARAM_VALUE_FLOAT_PARAM_TYPE SYSRES_CONST_CHECK_PARAM_VALUE_INTEGER_PARAM_TYPE SYSRES_CONST_CHECK_PARAM_VALUE_PICK_PARAM_TYPE SYSRES_CONST_CHECK_PARAM_VALUE_REEFRENCE_PARAM_TYPE SYSRES_CONST_CLOSED_RECORD_FLAG_VALUE_FEMININE SYSRES_CONST_CLOSED_RECORD_FLAG_VALUE_MASCULINE SYSRES_CONST_CODE_COMPONENT_TYPE_ADMIN SYSRES_CONST_CODE_COMPONENT_TYPE_DEVELOPER SYSRES_CONST_CODE_COMPONENT_TYPE_DOCS SYSRES_CONST_CODE_COMPONENT_TYPE_EDOC_CARDS SYSRES_CONST_CODE_COMPONENT_TYPE_EXTERNAL_EXECUTABLE SYSRES_CONST_CODE_COMPONENT_TYPE_OTHER SYSRES_CONST_CODE_COMPONENT_TYPE_REFERENCE SYSRES_CONST_CODE_COMPONENT_TYPE_REPORT SYSRES_CONST_CODE_COMPONENT_TYPE_SCRIPT SYSRES_CONST_CODE_COMPONENT_TYPE_URL SYSRES_CONST_CODE_REQUISITE_ACCESS SYSRES_CONST_CODE_REQUISITE_CODE SYSRES_CONST_CODE_REQUISITE_COMPONENT SYSRES_CONST_CODE_REQUISITE_DESCRIPTION SYSRES_CONST_CODE_REQUISITE_EXCLUDE_COMPONENT SYSRES_CONST_CODE_REQUISITE_RECORD SYSRES_CONST_COMMENT_REQ_CODE SYSRES_CONST_COMMON_SETTINGS_REQUISITE_CODE SYSRES_CONST_COMP_CODE_GRD SYSRES_CONST_COMPONENT_GROUP_TYPE_REQUISITE_CODE SYSRES_CONST_COMPONENT_TYPE_ADMIN_COMPONENTS SYSRES_CONST_COMPONENT_TYPE_DEVELOPER_COMPONENTS SYSRES_CONST_COMPONENT_TYPE_DOCS SYSRES_CONST_COMPONENT_TYPE_EDOC_CARDS SYSRES_CONST_COMPONENT_TYPE_EDOCS SYSRES_CONST_COMPONENT_TYPE_EXTERNAL_EXECUTABLE SYSRES_CONST_COMPONENT_TYPE_OTHER SYSRES_CONST_COMPONENT_TYPE_REFERENCE_TYPES SYSRES_CONST_COMPONENT_TYPE_REFERENCES SYSRES_CONST_COMPONENT_TYPE_REPORTS SYSRES_CONST_COMPONENT_TYPE_SCRIPTS SYSRES_CONST_COMPONENT_TYPE_URL SYSRES_CONST_COMPONENTS_REMOTE_SERVERS_VIEW_CODE SYSRES_CONST_CONDITION_BLOCK_DESCRIPTION SYSRES_CONST_CONST_FIRM_STATUS_COMMON SYSRES_CONST_CONST_FIRM_STATUS_INDIVIDUAL SYSRES_CONST_CONST_NEGATIVE_VALUE SYSRES_CONST_CONST_POSITIVE_VALUE SYSRES_CONST_CONST_SERVER_STATUS_DONT_REPLICATE SYSRES_CONST_CONST_SERVER_STATUS_REPLICATE SYSRES_CONST_CONTENTS_REQUISITE_CODE SYSRES_CONST_DATA_TYPE_BOOLEAN SYSRES_CONST_DATA_TYPE_DATE SYSRES_CONST_DATA_TYPE_FLOAT SYSRES_CONST_DATA_TYPE_INTEGER SYSRES_CONST_DATA_TYPE_PICK SYSRES_CONST_DATA_TYPE_REFERENCE SYSRES_CONST_DATA_TYPE_STRING SYSRES_CONST_DATA_TYPE_TEXT SYSRES_CONST_DATA_TYPE_VARIANT SYSRES_CONST_DATE_CLOSE_REQ_CODE SYSRES_CONST_DATE_FORMAT_DATE_ONLY_CHAR SYSRES_CONST_DATE_OPEN_REQ_CODE SYSRES_CONST_DATE_REQUISITE SYSRES_CONST_DATE_REQUISITE_CODE SYSRES_CONST_DATE_REQUISITE_NAME SYSRES_CONST_DATE_REQUISITE_TYPE SYSRES_CONST_DATE_TYPE_CHAR SYSRES_CONST_DATETIME_FORMAT_VALUE SYSRES_CONST_DEA_ACCESS_RIGHTS_ACTION_CODE SYSRES_CONST_DESCRIPTION_LOCALIZE_ID_REQUISITE_CODE SYSRES_CONST_DESCRIPTION_REQUISITE_CODE SYSRES_CONST_DET1_PART SYSRES_CONST_DET2_PART SYSRES_CONST_DET3_PART SYSRES_CONST_DET4_PART SYSRES_CONST_DET5_PART SYSRES_CONST_DET6_PART SYSRES_CONST_DETAIL_DATASET_KEY_REQUISITE_CODE SYSRES_CONST_DETAIL_PICK_REQUISITE_CODE SYSRES_CONST_DETAIL_REQ_CODE SYSRES_CONST_DO_NOT_USE_ACCESS_TYPE_CODE SYSRES_CONST_DO_NOT_USE_ACCESS_TYPE_NAME SYSRES_CONST_DO_NOT_USE_ON_VIEW_ACCESS_TYPE_CODE SYSRES_CONST_DO_NOT_USE_ON_VIEW_ACCESS_TYPE_NAME SYSRES_CONST_DOCUMENT_STORAGES_CODE SYSRES_CONST_DOCUMENT_TEMPLATES_TYPE_NAME SYSRES_CONST_DOUBLE_REQUISITE_CODE SYSRES_CONST_EDITOR_CLOSE_FILE_OBSERV_TYPE_CODE SYSRES_CONST_EDITOR_CLOSE_PROCESS_OBSERV_TYPE_CODE SYSRES_CONST_EDITOR_TYPE_REQUISITE_CODE SYSRES_CONST_EDITORS_APPLICATION_NAME_REQUISITE_CODE SYSRES_CONST_EDITORS_CREATE_SEVERAL_PROCESSES_REQUISITE_CODE SYSRES_CONST_EDITORS_EXTENSION_REQUISITE_CODE SYSRES_CONST_EDITORS_OBSERVER_BY_PROCESS_TYPE SYSRES_CONST_EDITORS_REFERENCE_CODE SYSRES_CONST_EDITORS_REPLACE_SPEC_CHARS_REQUISITE_CODE SYSRES_CONST_EDITORS_USE_PLUGINS_REQUISITE_CODE SYSRES_CONST_EDITORS_VIEW_DOCUMENT_OPENED_TO_EDIT_CODE SYSRES_CONST_EDOC_CARD_TYPE_REQUISITE_CODE SYSRES_CONST_EDOC_CARD_TYPES_LINK_REQUISITE_CODE SYSRES_CONST_EDOC_CERTIFICATE_AND_PASSWORD_ENCODE_CODE SYSRES_CONST_EDOC_CERTIFICATE_ENCODE_CODE SYSRES_CONST_EDOC_DATE_REQUISITE_CODE SYSRES_CONST_EDOC_KIND_REFERENCE_CODE SYSRES_CONST_EDOC_KINDS_BY_TEMPLATE_ACTION_CODE SYSRES_CONST_EDOC_MANAGE_ACCESS_CODE SYSRES_CONST_EDOC_NONE_ENCODE_CODE SYSRES_CONST_EDOC_NUMBER_REQUISITE_CODE SYSRES_CONST_EDOC_PASSWORD_ENCODE_CODE SYSRES_CONST_EDOC_READONLY_ACCESS_CODE SYSRES_CONST_EDOC_SHELL_LIFE_TYPE_VIEW_VALUE SYSRES_CONST_EDOC_SIZE_RESTRICTION_PRIORITY_REQUISITE_CODE SYSRES_CONST_EDOC_STORAGE_CHECK_ACCESS_RIGHTS_REQUISITE_CODE SYSRES_CONST_EDOC_STORAGE_COMPUTER_NAME_REQUISITE_CODE SYSRES_CONST_EDOC_STORAGE_DATABASE_NAME_REQUISITE_CODE SYSRES_CONST_EDOC_STORAGE_EDIT_IN_STORAGE_REQUISITE_CODE SYSRES_CONST_EDOC_STORAGE_LOCAL_PATH_REQUISITE_CODE SYSRES_CONST_EDOC_STORAGE_SHARED_SOURCE_NAME_REQUISITE_CODE SYSRES_CONST_EDOC_TEMPLATE_REQUISITE_CODE SYSRES_CONST_EDOC_TYPES_REFERENCE_CODE SYSRES_CONST_EDOC_VERSION_ACTIVE_STAGE_CODE SYSRES_CONST_EDOC_VERSION_DESIGN_STAGE_CODE SYSRES_CONST_EDOC_VERSION_OBSOLETE_STAGE_CODE SYSRES_CONST_EDOC_WRITE_ACCES_CODE SYSRES_CONST_EDOCUMENT_CARD_REQUISITES_REFERENCE_CODE_SELECTED_REQUISITE SYSRES_CONST_ENCODE_CERTIFICATE_TYPE_CODE SYSRES_CONST_END_DATE_REQUISITE_CODE SYSRES_CONST_ENUMERATION_TYPE_REQUISITE_CODE SYSRES_CONST_EXECUTE_ACCESS_RIGHTS_TYPE_CODE SYSRES_CONST_EXECUTIVE_FILE_STORAGE_TYPE SYSRES_CONST_EXIST_CONST SYSRES_CONST_EXIST_VALUE SYSRES_CONST_EXPORT_LOCK_TYPE_ASK SYSRES_CONST_EXPORT_LOCK_TYPE_WITH_LOCK SYSRES_CONST_EXPORT_LOCK_TYPE_WITHOUT_LOCK SYSRES_CONST_EXPORT_VERSION_TYPE_ASK SYSRES_CONST_EXPORT_VERSION_TYPE_LAST SYSRES_CONST_EXPORT_VERSION_TYPE_LAST_ACTIVE SYSRES_CONST_EXTENSION_REQUISITE_CODE SYSRES_CONST_FILTER_NAME_REQUISITE_CODE SYSRES_CONST_FILTER_REQUISITE_CODE SYSRES_CONST_FILTER_TYPE_COMMON_CODE SYSRES_CONST_FILTER_TYPE_COMMON_NAME SYSRES_CONST_FILTER_TYPE_USER_CODE SYSRES_CONST_FILTER_TYPE_USER_NAME SYSRES_CONST_FILTER_VALUE_REQUISITE_NAME SYSRES_CONST_FLOAT_NUMBER_FORMAT_CHAR SYSRES_CONST_FLOAT_REQUISITE_TYPE SYSRES_CONST_FOLDER_AUTHOR_VALUE SYSRES_CONST_FOLDER_KIND_ANY_OBJECTS SYSRES_CONST_FOLDER_KIND_COMPONENTS SYSRES_CONST_FOLDER_KIND_EDOCS SYSRES_CONST_FOLDER_KIND_JOBS SYSRES_CONST_FOLDER_KIND_TASKS SYSRES_CONST_FOLDER_TYPE_COMMON SYSRES_CONST_FOLDER_TYPE_COMPONENT SYSRES_CONST_FOLDER_TYPE_FAVORITES SYSRES_CONST_FOLDER_TYPE_INBOX SYSRES_CONST_FOLDER_TYPE_OUTBOX SYSRES_CONST_FOLDER_TYPE_QUICK_LAUNCH SYSRES_CONST_FOLDER_TYPE_SEARCH SYSRES_CONST_FOLDER_TYPE_SHORTCUTS SYSRES_CONST_FOLDER_TYPE_USER SYSRES_CONST_FROM_DICTIONARY_ENUM_METHOD_FLAG SYSRES_CONST_FULL_SUBSTITUTE_TYPE SYSRES_CONST_FULL_SUBSTITUTE_TYPE_CODE SYSRES_CONST_FUNCTION_CANCEL_RESULT SYSRES_CONST_FUNCTION_CATEGORY_SYSTEM SYSRES_CONST_FUNCTION_CATEGORY_USER SYSRES_CONST_FUNCTION_FAILURE_RESULT SYSRES_CONST_FUNCTION_SAVE_RESULT SYSRES_CONST_GENERATED_REQUISITE SYSRES_CONST_GREEN_LIFE_CYCLE_STAGE_FONT_COLOR SYSRES_CONST_GROUP_ACCOUNT_TYPE_VALUE_CODE SYSRES_CONST_GROUP_CATEGORY_NORMAL_CODE SYSRES_CONST_GROUP_CATEGORY_NORMAL_NAME SYSRES_CONST_GROUP_CATEGORY_SERVICE_CODE SYSRES_CONST_GROUP_CATEGORY_SERVICE_NAME SYSRES_CONST_GROUP_COMMON_CATEGORY_FIELD_VALUE SYSRES_CONST_GROUP_FULL_NAME_REQUISITE_CODE SYSRES_CONST_GROUP_NAME_REQUISITE_CODE SYSRES_CONST_GROUP_RIGHTS_T_REQUISITE_CODE SYSRES_CONST_GROUP_SERVER_CODES_REQUISITE_CODE SYSRES_CONST_GROUP_SERVER_NAME_REQUISITE_CODE SYSRES_CONST_GROUP_SERVICE_CATEGORY_FIELD_VALUE SYSRES_CONST_GROUP_USER_REQUISITE_CODE SYSRES_CONST_GROUPS_REFERENCE_CODE SYSRES_CONST_GROUPS_REQUISITE_CODE SYSRES_CONST_HIDDEN_MODE_NAME SYSRES_CONST_HIGH_LVL_REQUISITE_CODE SYSRES_CONST_HISTORY_ACTION_CREATE_CODE SYSRES_CONST_HISTORY_ACTION_DELETE_CODE SYSRES_CONST_HISTORY_ACTION_EDIT_CODE SYSRES_CONST_HOUR_CHAR SYSRES_CONST_ID_REQUISITE_CODE SYSRES_CONST_IDSPS_REQUISITE_CODE SYSRES_CONST_IMAGE_MODE_COLOR SYSRES_CONST_IMAGE_MODE_GREYSCALE SYSRES_CONST_IMAGE_MODE_MONOCHROME SYSRES_CONST_IMPORTANCE_HIGH SYSRES_CONST_IMPORTANCE_LOW SYSRES_CONST_IMPORTANCE_NORMAL SYSRES_CONST_IN_DESIGN_VERSION_STATE_PICK_VALUE SYSRES_CONST_INCOMING_WORK_RULE_TYPE_CODE SYSRES_CONST_INT_REQUISITE SYSRES_CONST_INT_REQUISITE_TYPE SYSRES_CONST_INTEGER_NUMBER_FORMAT_CHAR SYSRES_CONST_INTEGER_TYPE_CHAR SYSRES_CONST_IS_GENERATED_REQUISITE_NEGATIVE_VALUE SYSRES_CONST_IS_PUBLIC_ROLE_REQUISITE_CODE SYSRES_CONST_IS_REMOTE_USER_NEGATIVE_VALUE SYSRES_CONST_IS_REMOTE_USER_POSITIVE_VALUE SYSRES_CONST_IS_STORED_REQUISITE_NEGATIVE_VALUE SYSRES_CONST_IS_STORED_REQUISITE_STORED_VALUE SYSRES_CONST_ITALIC_LIFE_CYCLE_STAGE_DRAW_STYLE SYSRES_CONST_JOB_BLOCK_DESCRIPTION SYSRES_CONST_JOB_KIND_CONTROL_JOB SYSRES_CONST_JOB_KIND_JOB SYSRES_CONST_JOB_KIND_NOTICE SYSRES_CONST_JOB_STATE_ABORTED SYSRES_CONST_JOB_STATE_COMPLETE SYSRES_CONST_JOB_STATE_WORKING SYSRES_CONST_KIND_REQUISITE_CODE SYSRES_CONST_KIND_REQUISITE_NAME SYSRES_CONST_KINDS_CREATE_SHADOW_COPIES_REQUISITE_CODE SYSRES_CONST_KINDS_DEFAULT_EDOC_LIFE_STAGE_REQUISITE_CODE SYSRES_CONST_KINDS_EDOC_ALL_TEPLATES_ALLOWED_REQUISITE_CODE SYSRES_CONST_KINDS_EDOC_ALLOW_LIFE_CYCLE_STAGE_CHANGING_REQUISITE_CODE SYSRES_CONST_KINDS_EDOC_ALLOW_MULTIPLE_ACTIVE_VERSIONS_REQUISITE_CODE SYSRES_CONST_KINDS_EDOC_SHARE_ACCES_RIGHTS_BY_DEFAULT_CODE SYSRES_CONST_KINDS_EDOC_TEMPLATE_REQUISITE_CODE SYSRES_CONST_KINDS_EDOC_TYPE_REQUISITE_CODE SYSRES_CONST_KINDS_SIGNERS_REQUISITES_CODE SYSRES_CONST_KOD_INPUT_TYPE SYSRES_CONST_LAST_UPDATE_DATE_REQUISITE_CODE SYSRES_CONST_LIFE_CYCLE_START_STAGE_REQUISITE_CODE SYSRES_CONST_LILAC_LIFE_CYCLE_STAGE_FONT_COLOR SYSRES_CONST_LINK_OBJECT_KIND_COMPONENT SYSRES_CONST_LINK_OBJECT_KIND_DOCUMENT SYSRES_CONST_LINK_OBJECT_KIND_EDOC SYSRES_CONST_LINK_OBJECT_KIND_FOLDER SYSRES_CONST_LINK_OBJECT_KIND_JOB SYSRES_CONST_LINK_OBJECT_KIND_REFERENCE SYSRES_CONST_LINK_OBJECT_KIND_TASK SYSRES_CONST_LINK_REF_TYPE_REQUISITE_CODE SYSRES_CONST_LIST_REFERENCE_MODE_NAME SYSRES_CONST_LOCALIZATION_DICTIONARY_MAIN_VIEW_CODE SYSRES_CONST_MAIN_VIEW_CODE SYSRES_CONST_MANUAL_ENUM_METHOD_FLAG SYSRES_CONST_MASTER_COMP_TYPE_REQUISITE_CODE SYSRES_CONST_MASTER_TABLE_REC_ID_REQUISITE_CODE SYSRES_CONST_MAXIMIZED_MODE_NAME SYSRES_CONST_ME_VALUE SYSRES_CONST_MESSAGE_ATTENTION_CAPTION SYSRES_CONST_MESSAGE_CONFIRMATION_CAPTION SYSRES_CONST_MESSAGE_ERROR_CAPTION SYSRES_CONST_MESSAGE_INFORMATION_CAPTION SYSRES_CONST_MINIMIZED_MODE_NAME SYSRES_CONST_MINUTE_CHAR SYSRES_CONST_MODULE_REQUISITE_CODE SYSRES_CONST_MONITORING_BLOCK_DESCRIPTION SYSRES_CONST_MONTH_FORMAT_VALUE SYSRES_CONST_NAME_LOCALIZE_ID_REQUISITE_CODE SYSRES_CONST_NAME_REQUISITE_CODE SYSRES_CONST_NAME_SINGULAR_REQUISITE_CODE SYSRES_CONST_NAMEAN_INPUT_TYPE SYSRES_CONST_NEGATIVE_PICK_VALUE SYSRES_CONST_NEGATIVE_VALUE SYSRES_CONST_NO SYSRES_CONST_NO_PICK_VALUE SYSRES_CONST_NO_SIGNATURE_REQUISITE_CODE SYSRES_CONST_NO_VALUE SYSRES_CONST_NONE_ACCESS_RIGHTS_TYPE_CODE SYSRES_CONST_NONOPERATING_RECORD_FLAG_VALUE SYSRES_CONST_NONOPERATING_RECORD_FLAG_VALUE_MASCULINE SYSRES_CONST_NORMAL_ACCESS_RIGHTS_TYPE_CODE SYSRES_CONST_NORMAL_LIFE_CYCLE_STAGE_DRAW_STYLE SYSRES_CONST_NORMAL_MODE_NAME SYSRES_CONST_NOT_ALLOWED_ACCESS_TYPE_CODE SYSRES_CONST_NOT_ALLOWED_ACCESS_TYPE_NAME SYSRES_CONST_NOTE_REQUISITE_CODE SYSRES_CONST_NOTICE_BLOCK_DESCRIPTION SYSRES_CONST_NUM_REQUISITE SYSRES_CONST_NUM_STR_REQUISITE_CODE SYSRES_CONST_NUMERATION_AUTO_NOT_STRONG SYSRES_CONST_NUMERATION_AUTO_STRONG SYSRES_CONST_NUMERATION_FROM_DICTONARY SYSRES_CONST_NUMERATION_MANUAL SYSRES_CONST_NUMERIC_TYPE_CHAR SYSRES_CONST_NUMREQ_REQUISITE_CODE SYSRES_CONST_OBSOLETE_VERSION_STATE_PICK_VALUE SYSRES_CONST_OPERATING_RECORD_FLAG_VALUE SYSRES_CONST_OPERATING_RECORD_FLAG_VALUE_CODE SYSRES_CONST_OPERATING_RECORD_FLAG_VALUE_FEMININE SYSRES_CONST_OPERATING_RECORD_FLAG_VALUE_MASCULINE SYSRES_CONST_OPTIONAL_FORM_COMP_REQCODE_PREFIX SYSRES_CONST_ORANGE_LIFE_CYCLE_STAGE_FONT_COLOR SYSRES_CONST_ORIGINALREF_REQUISITE_CODE SYSRES_CONST_OURFIRM_REF_CODE SYSRES_CONST_OURFIRM_REQUISITE_CODE SYSRES_CONST_OURFIRM_VAR SYSRES_CONST_OUTGOING_WORK_RULE_TYPE_CODE SYSRES_CONST_PICK_NEGATIVE_RESULT SYSRES_CONST_PICK_POSITIVE_RESULT SYSRES_CONST_PICK_REQUISITE SYSRES_CONST_PICK_REQUISITE_TYPE SYSRES_CONST_PICK_TYPE_CHAR SYSRES_CONST_PLAN_STATUS_REQUISITE_CODE SYSRES_CONST_PLATFORM_VERSION_COMMENT SYSRES_CONST_PLUGINS_SETTINGS_DESCRIPTION_REQUISITE_CODE SYSRES_CONST_POSITIVE_PICK_VALUE SYSRES_CONST_POWER_TO_CREATE_ACTION_CODE SYSRES_CONST_POWER_TO_SIGN_ACTION_CODE SYSRES_CONST_PRIORITY_REQUISITE_CODE SYSRES_CONST_QUALIFIED_TASK_TYPE SYSRES_CONST_QUALIFIED_TASK_TYPE_CODE SYSRES_CONST_RECSTAT_REQUISITE_CODE SYSRES_CONST_RED_LIFE_CYCLE_STAGE_FONT_COLOR SYSRES_CONST_REF_ID_T_REF_TYPE_REQUISITE_CODE SYSRES_CONST_REF_REQUISITE SYSRES_CONST_REF_REQUISITE_TYPE SYSRES_CONST_REF_REQUISITES_REFERENCE_CODE_SELECTED_REQUISITE SYSRES_CONST_REFERENCE_RECORD_HISTORY_CREATE_ACTION_CODE SYSRES_CONST_REFERENCE_RECORD_HISTORY_DELETE_ACTION_CODE SYSRES_CONST_REFERENCE_RECORD_HISTORY_MODIFY_ACTION_CODE SYSRES_CONST_REFERENCE_TYPE_CHAR SYSRES_CONST_REFERENCE_TYPE_REQUISITE_NAME SYSRES_CONST_REFERENCES_ADD_PARAMS_REQUISITE_CODE SYSRES_CONST_REFERENCES_DISPLAY_REQUISITE_REQUISITE_CODE SYSRES_CONST_REMOTE_SERVER_STATUS_WORKING SYSRES_CONST_REMOTE_SERVER_TYPE_MAIN SYSRES_CONST_REMOTE_SERVER_TYPE_SECONDARY SYSRES_CONST_REMOTE_USER_FLAG_VALUE_CODE SYSRES_CONST_REPORT_APP_EDITOR_INTERNAL SYSRES_CONST_REPORT_BASE_REPORT_ID_REQUISITE_CODE SYSRES_CONST_REPORT_BASE_REPORT_REQUISITE_CODE SYSRES_CONST_REPORT_SCRIPT_REQUISITE_CODE SYSRES_CONST_REPORT_TEMPLATE_REQUISITE_CODE SYSRES_CONST_REPORT_VIEWER_CODE_REQUISITE_CODE SYSRES_CONST_REQ_ALLOW_COMPONENT_DEFAULT_VALUE SYSRES_CONST_REQ_ALLOW_RECORD_DEFAULT_VALUE SYSRES_CONST_REQ_ALLOW_SERVER_COMPONENT_DEFAULT_VALUE SYSRES_CONST_REQ_MODE_AVAILABLE_CODE SYSRES_CONST_REQ_MODE_EDIT_CODE SYSRES_CONST_REQ_MODE_HIDDEN_CODE SYSRES_CONST_REQ_MODE_NOT_AVAILABLE_CODE SYSRES_CONST_REQ_MODE_VIEW_CODE SYSRES_CONST_REQ_NUMBER_REQUISITE_CODE SYSRES_CONST_REQ_SECTION_VALUE SYSRES_CONST_REQ_TYPE_VALUE SYSRES_CONST_REQUISITE_FORMAT_BY_UNIT SYSRES_CONST_REQUISITE_FORMAT_DATE_FULL SYSRES_CONST_REQUISITE_FORMAT_DATE_TIME SYSRES_CONST_REQUISITE_FORMAT_LEFT SYSRES_CONST_REQUISITE_FORMAT_RIGHT SYSRES_CONST_REQUISITE_FORMAT_WITHOUT_UNIT SYSRES_CONST_REQUISITE_NUMBER_REQUISITE_CODE SYSRES_CONST_REQUISITE_SECTION_ACTIONS SYSRES_CONST_REQUISITE_SECTION_BUTTON SYSRES_CONST_REQUISITE_SECTION_BUTTONS SYSRES_CONST_REQUISITE_SECTION_CARD SYSRES_CONST_REQUISITE_SECTION_TABLE SYSRES_CONST_REQUISITE_SECTION_TABLE10 SYSRES_CONST_REQUISITE_SECTION_TABLE11 SYSRES_CONST_REQUISITE_SECTION_TABLE12 SYSRES_CONST_REQUISITE_SECTION_TABLE13 SYSRES_CONST_REQUISITE_SECTION_TABLE14 SYSRES_CONST_REQUISITE_SECTION_TABLE15 SYSRES_CONST_REQUISITE_SECTION_TABLE16 SYSRES_CONST_REQUISITE_SECTION_TABLE17 SYSRES_CONST_REQUISITE_SECTION_TABLE18 SYSRES_CONST_REQUISITE_SECTION_TABLE19 SYSRES_CONST_REQUISITE_SECTION_TABLE2 SYSRES_CONST_REQUISITE_SECTION_TABLE20 SYSRES_CONST_REQUISITE_SECTION_TABLE21 SYSRES_CONST_REQUISITE_SECTION_TABLE22 SYSRES_CONST_REQUISITE_SECTION_TABLE23 SYSRES_CONST_REQUISITE_SECTION_TABLE24 SYSRES_CONST_REQUISITE_SECTION_TABLE3 SYSRES_CONST_REQUISITE_SECTION_TABLE4 SYSRES_CONST_REQUISITE_SECTION_TABLE5 SYSRES_CONST_REQUISITE_SECTION_TABLE6 SYSRES_CONST_REQUISITE_SECTION_TABLE7 SYSRES_CONST_REQUISITE_SECTION_TABLE8 SYSRES_CONST_REQUISITE_SECTION_TABLE9 SYSRES_CONST_REQUISITES_PSEUDOREFERENCE_REQUISITE_NUMBER_REQUISITE_CODE SYSRES_CONST_RIGHT_ALIGNMENT_CODE SYSRES_CONST_ROLES_REFERENCE_CODE SYSRES_CONST_ROUTE_STEP_AFTER_RUS SYSRES_CONST_ROUTE_STEP_AND_CONDITION_RUS SYSRES_CONST_ROUTE_STEP_OR_CONDITION_RUS SYSRES_CONST_ROUTE_TYPE_COMPLEX SYSRES_CONST_ROUTE_TYPE_PARALLEL SYSRES_CONST_ROUTE_TYPE_SERIAL SYSRES_CONST_SBDATASETDESC_NEGATIVE_VALUE SYSRES_CONST_SBDATASETDESC_POSITIVE_VALUE SYSRES_CONST_SBVIEWSDESC_POSITIVE_VALUE SYSRES_CONST_SCRIPT_BLOCK_DESCRIPTION SYSRES_CONST_SEARCH_BY_TEXT_REQUISITE_CODE SYSRES_CONST_SEARCHES_COMPONENT_CONTENT SYSRES_CONST_SEARCHES_CRITERIA_ACTION_NAME SYSRES_CONST_SEARCHES_EDOC_CONTENT SYSRES_CONST_SEARCHES_FOLDER_CONTENT SYSRES_CONST_SEARCHES_JOB_CONTENT SYSRES_CONST_SEARCHES_REFERENCE_CODE SYSRES_CONST_SEARCHES_TASK_CONTENT SYSRES_CONST_SECOND_CHAR SYSRES_CONST_SECTION_REQUISITE_ACTIONS_VALUE SYSRES_CONST_SECTION_REQUISITE_CARD_VALUE SYSRES_CONST_SECTION_REQUISITE_CODE SYSRES_CONST_SECTION_REQUISITE_DETAIL_1_VALUE SYSRES_CONST_SECTION_REQUISITE_DETAIL_2_VALUE SYSRES_CONST_SECTION_REQUISITE_DETAIL_3_VALUE SYSRES_CONST_SECTION_REQUISITE_DETAIL_4_VALUE SYSRES_CONST_SECTION_REQUISITE_DETAIL_5_VALUE SYSRES_CONST_SECTION_REQUISITE_DETAIL_6_VALUE SYSRES_CONST_SELECT_REFERENCE_MODE_NAME SYSRES_CONST_SELECT_TYPE_SELECTABLE SYSRES_CONST_SELECT_TYPE_SELECTABLE_ONLY_CHILD SYSRES_CONST_SELECT_TYPE_SELECTABLE_WITH_CHILD SYSRES_CONST_SELECT_TYPE_UNSLECTABLE SYSRES_CONST_SERVER_TYPE_MAIN SYSRES_CONST_SERVICE_USER_CATEGORY_FIELD_VALUE SYSRES_CONST_SETTINGS_USER_REQUISITE_CODE SYSRES_CONST_SIGNATURE_AND_ENCODE_CERTIFICATE_TYPE_CODE SYSRES_CONST_SIGNATURE_CERTIFICATE_TYPE_CODE SYSRES_CONST_SINGULAR_TITLE_REQUISITE_CODE SYSRES_CONST_SQL_SERVER_AUTHENTIFICATION_FLAG_VALUE_CODE SYSRES_CONST_SQL_SERVER_ENCODE_AUTHENTIFICATION_FLAG_VALUE_CODE SYSRES_CONST_STANDART_ROUTE_REFERENCE_CODE SYSRES_CONST_STANDART_ROUTE_REFERENCE_COMMENT_REQUISITE_CODE SYSRES_CONST_STANDART_ROUTES_GROUPS_REFERENCE_CODE SYSRES_CONST_STATE_REQ_NAME SYSRES_CONST_STATE_REQUISITE_ACTIVE_VALUE SYSRES_CONST_STATE_REQUISITE_CLOSED_VALUE SYSRES_CONST_STATE_REQUISITE_CODE SYSRES_CONST_STATIC_ROLE_TYPE_CODE SYSRES_CONST_STATUS_PLAN_DEFAULT_VALUE SYSRES_CONST_STATUS_VALUE_AUTOCLEANING SYSRES_CONST_STATUS_VALUE_BLUE_SQUARE SYSRES_CONST_STATUS_VALUE_COMPLETE SYSRES_CONST_STATUS_VALUE_GREEN_SQUARE SYSRES_CONST_STATUS_VALUE_ORANGE_SQUARE SYSRES_CONST_STATUS_VALUE_PURPLE_SQUARE SYSRES_CONST_STATUS_VALUE_RED_SQUARE SYSRES_CONST_STATUS_VALUE_SUSPEND SYSRES_CONST_STATUS_VALUE_YELLOW_SQUARE SYSRES_CONST_STDROUTE_SHOW_TO_USERS_REQUISITE_CODE SYSRES_CONST_STORAGE_TYPE_FILE SYSRES_CONST_STORAGE_TYPE_SQL_SERVER SYSRES_CONST_STR_REQUISITE SYSRES_CONST_STRIKEOUT_LIFE_CYCLE_STAGE_DRAW_STYLE SYSRES_CONST_STRING_FORMAT_LEFT_ALIGN_CHAR SYSRES_CONST_STRING_FORMAT_RIGHT_ALIGN_CHAR SYSRES_CONST_STRING_REQUISITE_CODE SYSRES_CONST_STRING_REQUISITE_TYPE SYSRES_CONST_STRING_TYPE_CHAR SYSRES_CONST_SUBSTITUTES_PSEUDOREFERENCE_CODE SYSRES_CONST_SUBTASK_BLOCK_DESCRIPTION SYSRES_CONST_SYSTEM_SETTING_CURRENT_USER_PARAM_VALUE SYSRES_CONST_SYSTEM_SETTING_EMPTY_VALUE_PARAM_VALUE SYSRES_CONST_SYSTEM_VERSION_COMMENT SYSRES_CONST_TASK_ACCESS_TYPE_ALL SYSRES_CONST_TASK_ACCESS_TYPE_ALL_MEMBERS SYSRES_CONST_TASK_ACCESS_TYPE_MANUAL SYSRES_CONST_TASK_ENCODE_TYPE_CERTIFICATION SYSRES_CONST_TASK_ENCODE_TYPE_CERTIFICATION_AND_PASSWORD SYSRES_CONST_TASK_ENCODE_TYPE_NONE SYSRES_CONST_TASK_ENCODE_TYPE_PASSWORD SYSRES_CONST_TASK_ROUTE_ALL_CONDITION SYSRES_CONST_TASK_ROUTE_AND_CONDITION SYSRES_CONST_TASK_ROUTE_OR_CONDITION SYSRES_CONST_TASK_STATE_ABORTED SYSRES_CONST_TASK_STATE_COMPLETE SYSRES_CONST_TASK_STATE_CONTINUED SYSRES_CONST_TASK_STATE_CONTROL SYSRES_CONST_TASK_STATE_INIT SYSRES_CONST_TASK_STATE_WORKING SYSRES_CONST_TASK_TITLE SYSRES_CONST_TASK_TYPES_GROUPS_REFERENCE_CODE SYSRES_CONST_TASK_TYPES_REFERENCE_CODE SYSRES_CONST_TEMPLATES_REFERENCE_CODE SYSRES_CONST_TEST_DATE_REQUISITE_NAME SYSRES_CONST_TEST_DEV_DATABASE_NAME SYSRES_CONST_TEST_DEV_SYSTEM_CODE SYSRES_CONST_TEST_EDMS_DATABASE_NAME SYSRES_CONST_TEST_EDMS_MAIN_CODE SYSRES_CONST_TEST_EDMS_MAIN_DB_NAME SYSRES_CONST_TEST_EDMS_SECOND_CODE SYSRES_CONST_TEST_EDMS_SECOND_DB_NAME SYSRES_CONST_TEST_EDMS_SYSTEM_CODE SYSRES_CONST_TEST_NUMERIC_REQUISITE_NAME SYSRES_CONST_TEXT_REQUISITE SYSRES_CONST_TEXT_REQUISITE_CODE SYSRES_CONST_TEXT_REQUISITE_TYPE SYSRES_CONST_TEXT_TYPE_CHAR SYSRES_CONST_TYPE_CODE_REQUISITE_CODE SYSRES_CONST_TYPE_REQUISITE_CODE SYSRES_CONST_UNDEFINED_LIFE_CYCLE_STAGE_FONT_COLOR SYSRES_CONST_UNITS_SECTION_ID_REQUISITE_CODE SYSRES_CONST_UNITS_SECTION_REQUISITE_CODE SYSRES_CONST_UNOPERATING_RECORD_FLAG_VALUE_CODE SYSRES_CONST_UNSTORED_DATA_REQUISITE_CODE SYSRES_CONST_UNSTORED_DATA_REQUISITE_NAME SYSRES_CONST_USE_ACCESS_TYPE_CODE SYSRES_CONST_USE_ACCESS_TYPE_NAME SYSRES_CONST_USER_ACCOUNT_TYPE_VALUE_CODE SYSRES_CONST_USER_ADDITIONAL_INFORMATION_REQUISITE_CODE SYSRES_CONST_USER_AND_GROUP_ID_FROM_PSEUDOREFERENCE_REQUISITE_CODE SYSRES_CONST_USER_CATEGORY_NORMAL SYSRES_CONST_USER_CERTIFICATE_REQUISITE_CODE SYSRES_CONST_USER_CERTIFICATE_STATE_REQUISITE_CODE SYSRES_CONST_USER_CERTIFICATE_SUBJECT_NAME_REQUISITE_CODE SYSRES_CONST_USER_CERTIFICATE_THUMBPRINT_REQUISITE_CODE SYSRES_CONST_USER_COMMON_CATEGORY SYSRES_CONST_USER_COMMON_CATEGORY_CODE SYSRES_CONST_USER_FULL_NAME_REQUISITE_CODE SYSRES_CONST_USER_GROUP_TYPE_REQUISITE_CODE SYSRES_CONST_USER_LOGIN_REQUISITE_CODE SYSRES_CONST_USER_REMOTE_CONTROLLER_REQUISITE_CODE SYSRES_CONST_USER_REMOTE_SYSTEM_REQUISITE_CODE SYSRES_CONST_USER_RIGHTS_T_REQUISITE_CODE SYSRES_CONST_USER_SERVER_NAME_REQUISITE_CODE SYSRES_CONST_USER_SERVICE_CATEGORY SYSRES_CONST_USER_SERVICE_CATEGORY_CODE SYSRES_CONST_USER_STATUS_ADMINISTRATOR_CODE SYSRES_CONST_USER_STATUS_ADMINISTRATOR_NAME SYSRES_CONST_USER_STATUS_DEVELOPER_CODE SYSRES_CONST_USER_STATUS_DEVELOPER_NAME SYSRES_CONST_USER_STATUS_DISABLED_CODE SYSRES_CONST_USER_STATUS_DISABLED_NAME SYSRES_CONST_USER_STATUS_SYSTEM_DEVELOPER_CODE SYSRES_CONST_USER_STATUS_USER_CODE SYSRES_CONST_USER_STATUS_USER_NAME SYSRES_CONST_USER_STATUS_USER_NAME_DEPRECATED SYSRES_CONST_USER_TYPE_FIELD_VALUE_USER SYSRES_CONST_USER_TYPE_REQUISITE_CODE SYSRES_CONST_USERS_CONTROLLER_REQUISITE_CODE SYSRES_CONST_USERS_IS_MAIN_SERVER_REQUISITE_CODE SYSRES_CONST_USERS_REFERENCE_CODE SYSRES_CONST_USERS_REGISTRATION_CERTIFICATES_ACTION_NAME SYSRES_CONST_USERS_REQUISITE_CODE SYSRES_CONST_USERS_SYSTEM_REQUISITE_CODE SYSRES_CONST_USERS_USER_ACCESS_RIGHTS_TYPR_REQUISITE_CODE SYSRES_CONST_USERS_USER_AUTHENTICATION_REQUISITE_CODE SYSRES_CONST_USERS_USER_COMPONENT_REQUISITE_CODE SYSRES_CONST_USERS_USER_GROUP_REQUISITE_CODE SYSRES_CONST_USERS_VIEW_CERTIFICATES_ACTION_NAME SYSRES_CONST_VIEW_DEFAULT_CODE SYSRES_CONST_VIEW_DEFAULT_NAME SYSRES_CONST_VIEWER_REQUISITE_CODE SYSRES_CONST_WAITING_BLOCK_DESCRIPTION SYSRES_CONST_WIZARD_FORM_LABEL_TEST_STRING SYSRES_CONST_WIZARD_QUERY_PARAM_HEIGHT_ETALON_STRING SYSRES_CONST_WIZARD_REFERENCE_COMMENT_REQUISITE_CODE SYSRES_CONST_WORK_RULES_DESCRIPTION_REQUISITE_CODE SYSRES_CONST_WORK_TIME_CALENDAR_REFERENCE_CODE SYSRES_CONST_WORK_WORKFLOW_HARD_ROUTE_TYPE_VALUE SYSRES_CONST_WORK_WORKFLOW_HARD_ROUTE_TYPE_VALUE_CODE SYSRES_CONST_WORK_WORKFLOW_HARD_ROUTE_TYPE_VALUE_CODE_RUS SYSRES_CONST_WORK_WORKFLOW_SOFT_ROUTE_TYPE_VALUE_CODE_RUS SYSRES_CONST_WORKFLOW_ROUTE_TYPR_HARD SYSRES_CONST_WORKFLOW_ROUTE_TYPR_SOFT SYSRES_CONST_XML_ENCODING SYSRES_CONST_XREC_STAT_REQUISITE_CODE SYSRES_CONST_XRECID_FIELD_NAME SYSRES_CONST_YES SYSRES_CONST_YES_NO_2_REQUISITE_CODE SYSRES_CONST_YES_NO_REQUISITE_CODE SYSRES_CONST_YES_NO_T_REF_TYPE_REQUISITE_CODE SYSRES_CONST_YES_PICK_VALUE SYSRES_CONST_YES_VALUE CR FALSE nil NO_VALUE NULL TAB TRUE YES_VALUE ADMINISTRATORS_GROUP_NAME CUSTOMIZERS_GROUP_NAME DEVELOPERS_GROUP_NAME SERVICE_USERS_GROUP_NAME DECISION_BLOCK_FIRST_OPERAND_PROPERTY DECISION_BLOCK_NAME_PROPERTY DECISION_BLOCK_OPERATION_PROPERTY DECISION_BLOCK_RESULT_TYPE_PROPERTY DECISION_BLOCK_SECOND_OPERAND_PROPERTY ANY_FILE_EXTENTION COMPRESSED_DOCUMENT_EXTENSION EXTENDED_DOCUMENT_EXTENSION SHORT_COMPRESSED_DOCUMENT_EXTENSION SHORT_EXTENDED_DOCUMENT_EXTENSION JOB_BLOCK_ABORT_DEADLINE_PROPERTY JOB_BLOCK_AFTER_FINISH_EVENT JOB_BLOCK_AFTER_QUERY_PARAMETERS_EVENT JOB_BLOCK_ATTACHMENT_PROPERTY JOB_BLOCK_ATTACHMENTS_RIGHTS_GROUP_PROPERTY JOB_BLOCK_ATTACHMENTS_RIGHTS_TYPE_PROPERTY JOB_BLOCK_BEFORE_QUERY_PARAMETERS_EVENT JOB_BLOCK_BEFORE_START_EVENT JOB_BLOCK_CREATED_JOBS_PROPERTY JOB_BLOCK_DEADLINE_PROPERTY JOB_BLOCK_EXECUTION_RESULTS_PROPERTY JOB_BLOCK_IS_PARALLEL_PROPERTY JOB_BLOCK_IS_RELATIVE_ABORT_DEADLINE_PROPERTY JOB_BLOCK_IS_RELATIVE_DEADLINE_PROPERTY JOB_BLOCK_JOB_TEXT_PROPERTY JOB_BLOCK_NAME_PROPERTY JOB_BLOCK_NEED_SIGN_ON_PERFORM_PROPERTY JOB_BLOCK_PERFORMER_PROPERTY JOB_BLOCK_RELATIVE_ABORT_DEADLINE_TYPE_PROPERTY JOB_BLOCK_RELATIVE_DEADLINE_TYPE_PROPERTY JOB_BLOCK_SUBJECT_PROPERTY ENGLISH_LANGUAGE_CODE RUSSIAN_LANGUAGE_CODE smHidden smMaximized smMinimized smNormal wmNo wmYes COMPONENT_TOKEN_LINK_KIND DOCUMENT_LINK_KIND EDOCUMENT_LINK_KIND FOLDER_LINK_KIND JOB_LINK_KIND REFERENCE_LINK_KIND TASK_LINK_KIND COMPONENT_TOKEN_LOCK_TYPE EDOCUMENT_VERSION_LOCK_TYPE MONITOR_BLOCK_AFTER_FINISH_EVENT MONITOR_BLOCK_BEFORE_START_EVENT MONITOR_BLOCK_DEADLINE_PROPERTY MONITOR_BLOCK_INTERVAL_PROPERTY MONITOR_BLOCK_INTERVAL_TYPE_PROPERTY MONITOR_BLOCK_IS_RELATIVE_DEADLINE_PROPERTY MONITOR_BLOCK_NAME_PROPERTY MONITOR_BLOCK_RELATIVE_DEADLINE_TYPE_PROPERTY MONITOR_BLOCK_SEARCH_SCRIPT_PROPERTY NOTICE_BLOCK_AFTER_FINISH_EVENT NOTICE_BLOCK_ATTACHMENT_PROPERTY NOTICE_BLOCK_ATTACHMENTS_RIGHTS_GROUP_PROPERTY NOTICE_BLOCK_ATTACHMENTS_RIGHTS_TYPE_PROPERTY NOTICE_BLOCK_BEFORE_START_EVENT NOTICE_BLOCK_CREATED_NOTICES_PROPERTY NOTICE_BLOCK_DEADLINE_PROPERTY NOTICE_BLOCK_IS_RELATIVE_DEADLINE_PROPERTY NOTICE_BLOCK_NAME_PROPERTY NOTICE_BLOCK_NOTICE_TEXT_PROPERTY NOTICE_BLOCK_PERFORMER_PROPERTY NOTICE_BLOCK_RELATIVE_DEADLINE_TYPE_PROPERTY NOTICE_BLOCK_SUBJECT_PROPERTY dseAfterCancel dseAfterClose dseAfterDelete dseAfterDeleteOutOfTransaction dseAfterInsert dseAfterOpen dseAfterScroll dseAfterUpdate dseAfterUpdateOutOfTransaction dseBeforeCancel dseBeforeClose dseBeforeDelete dseBeforeDetailUpdate dseBeforeInsert dseBeforeOpen dseBeforeUpdate dseOnAnyRequisiteChange dseOnCloseRecord dseOnDeleteError dseOnOpenRecord dseOnPrepareUpdate dseOnUpdateError dseOnUpdateRatifiedRecord dseOnValidDelete dseOnValidUpdate reOnChange reOnChangeValues SELECTION_BEGIN_ROUTE_EVENT SELECTION_END_ROUTE_EVENT CURRENT_PERIOD_IS_REQUIRED PREVIOUS_CARD_TYPE_NAME SHOW_RECORD_PROPERTIES_FORM ACCESS_RIGHTS_SETTING_DIALOG_CODE ADMINISTRATOR_USER_CODE ANALYTIC_REPORT_TYPE asrtHideLocal asrtHideRemote CALCULATED_ROLE_TYPE_CODE COMPONENTS_REFERENCE_DEVELOPER_VIEW_CODE DCTS_TEST_PROTOCOLS_FOLDER_PATH E_EDOC_VERSION_ALREADY_APPROVINGLY_SIGNED E_EDOC_VERSION_ALREADY_APPROVINGLY_SIGNED_BY_USER E_EDOC_VERSION_ALREDY_SIGNED E_EDOC_VERSION_ALREDY_SIGNED_BY_USER EDOC_TYPES_CODE_REQUISITE_FIELD_NAME EDOCUMENTS_ALIAS_NAME FILES_FOLDER_PATH FILTER_OPERANDS_DELIMITER FILTER_OPERATIONS_DELIMITER FORMCARD_NAME FORMLIST_NAME GET_EXTENDED_DOCUMENT_EXTENSION_CREATION_MODE GET_EXTENDED_DOCUMENT_EXTENSION_IMPORT_MODE INTEGRATED_REPORT_TYPE IS_BUILDER_APPLICATION_ROLE IS_BUILDER_APPLICATION_ROLE2 IS_BUILDER_USERS ISBSYSDEV LOG_FOLDER_PATH mbCancel mbNo mbNoToAll mbOK mbYes mbYesToAll MEMORY_DATASET_DESRIPTIONS_FILENAME mrNo mrNoToAll mrYes mrYesToAll MULTIPLE_SELECT_DIALOG_CODE NONOPERATING_RECORD_FLAG_FEMININE NONOPERATING_RECORD_FLAG_MASCULINE OPERATING_RECORD_FLAG_FEMININE OPERATING_RECORD_FLAG_MASCULINE PROFILING_SETTINGS_COMMON_SETTINGS_CODE_VALUE PROGRAM_INITIATED_LOOKUP_ACTION ratDelete ratEdit ratInsert REPORT_TYPE REQUIRED_PICK_VALUES_VARIABLE rmCard rmList SBRTE_PROGID_DEV SBRTE_PROGID_RELEASE STATIC_ROLE_TYPE_CODE SUPPRESS_EMPTY_TEMPLATE_CREATION SYSTEM_USER_CODE UPDATE_DIALOG_DATASET USED_IN_OBJECT_HINT_PARAM USER_INITIATED_LOOKUP_ACTION USER_NAME_FORMAT USER_SELECTION_RESTRICTIONS WORKFLOW_TEST_PROTOCOLS_FOLDER_PATH ELS_SUBTYPE_CONTROL_NAME ELS_FOLDER_KIND_CONTROL_NAME REPEAT_PROCESS_CURRENT_OBJECT_EXCEPTION_NAME PRIVILEGE_COMPONENT_FULL_ACCESS PRIVILEGE_DEVELOPMENT_EXPORT PRIVILEGE_DEVELOPMENT_IMPORT PRIVILEGE_DOCUMENT_DELETE PRIVILEGE_ESD PRIVILEGE_FOLDER_DELETE PRIVILEGE_MANAGE_ACCESS_RIGHTS PRIVILEGE_MANAGE_REPLICATION PRIVILEGE_MANAGE_SESSION_SERVER PRIVILEGE_OBJECT_FULL_ACCESS PRIVILEGE_OBJECT_VIEW PRIVILEGE_RESERVE_LICENSE PRIVILEGE_SYSTEM_CUSTOMIZE PRIVILEGE_SYSTEM_DEVELOP PRIVILEGE_SYSTEM_INSTALL PRIVILEGE_TASK_DELETE PRIVILEGE_USER_PLUGIN_SETTINGS_CUSTOMIZE PRIVILEGES_PSEUDOREFERENCE_CODE ACCESS_TYPES_PSEUDOREFERENCE_CODE ALL_AVAILABLE_COMPONENTS_PSEUDOREFERENCE_CODE ALL_AVAILABLE_PRIVILEGES_PSEUDOREFERENCE_CODE ALL_REPLICATE_COMPONENTS_PSEUDOREFERENCE_CODE AVAILABLE_DEVELOPERS_COMPONENTS_PSEUDOREFERENCE_CODE COMPONENTS_PSEUDOREFERENCE_CODE FILTRATER_SETTINGS_CONFLICTS_PSEUDOREFERENCE_CODE GROUPS_PSEUDOREFERENCE_CODE RECEIVE_PROTOCOL_PSEUDOREFERENCE_CODE REFERENCE_REQUISITE_PSEUDOREFERENCE_CODE REFERENCE_REQUISITES_PSEUDOREFERENCE_CODE REFTYPES_PSEUDOREFERENCE_CODE REPLICATION_SEANCES_DIARY_PSEUDOREFERENCE_CODE SEND_PROTOCOL_PSEUDOREFERENCE_CODE SUBSTITUTES_PSEUDOREFERENCE_CODE SYSTEM_SETTINGS_PSEUDOREFERENCE_CODE UNITS_PSEUDOREFERENCE_CODE USERS_PSEUDOREFERENCE_CODE VIEWERS_PSEUDOREFERENCE_CODE CERTIFICATE_TYPE_ENCRYPT CERTIFICATE_TYPE_SIGN CERTIFICATE_TYPE_SIGN_AND_ENCRYPT STORAGE_TYPE_FILE STORAGE_TYPE_NAS_CIFS STORAGE_TYPE_SAPERION STORAGE_TYPE_SQL_SERVER COMPTYPE2_REQUISITE_DOCUMENTS_VALUE COMPTYPE2_REQUISITE_TASKS_VALUE COMPTYPE2_REQUISITE_FOLDERS_VALUE COMPTYPE2_REQUISITE_REFERENCES_VALUE SYSREQ_CODE SYSREQ_COMPTYPE2 SYSREQ_CONST_AVAILABLE_FOR_WEB SYSREQ_CONST_COMMON_CODE SYSREQ_CONST_COMMON_VALUE SYSREQ_CONST_FIRM_CODE SYSREQ_CONST_FIRM_STATUS SYSREQ_CONST_FIRM_VALUE SYSREQ_CONST_SERVER_STATUS SYSREQ_CONTENTS SYSREQ_DATE_OPEN SYSREQ_DATE_CLOSE SYSREQ_DESCRIPTION SYSREQ_DESCRIPTION_LOCALIZE_ID SYSREQ_DOUBLE SYSREQ_EDOC_ACCESS_TYPE SYSREQ_EDOC_AUTHOR SYSREQ_EDOC_CREATED SYSREQ_EDOC_DELEGATE_RIGHTS_REQUISITE_CODE SYSREQ_EDOC_EDITOR SYSREQ_EDOC_ENCODE_TYPE SYSREQ_EDOC_ENCRYPTION_PLUGIN_NAME SYSREQ_EDOC_ENCRYPTION_PLUGIN_VERSION SYSREQ_EDOC_EXPORT_DATE SYSREQ_EDOC_EXPORTER SYSREQ_EDOC_KIND SYSREQ_EDOC_LIFE_STAGE_NAME SYSREQ_EDOC_LOCKED_FOR_SERVER_CODE SYSREQ_EDOC_MODIFIED SYSREQ_EDOC_NAME SYSREQ_EDOC_NOTE SYSREQ_EDOC_QUALIFIED_ID SYSREQ_EDOC_SESSION_KEY SYSREQ_EDOC_SESSION_KEY_ENCRYPTION_PLUGIN_NAME SYSREQ_EDOC_SESSION_KEY_ENCRYPTION_PLUGIN_VERSION SYSREQ_EDOC_SIGNATURE_TYPE SYSREQ_EDOC_SIGNED SYSREQ_EDOC_STORAGE SYSREQ_EDOC_STORAGES_ARCHIVE_STORAGE SYSREQ_EDOC_STORAGES_CHECK_RIGHTS SYSREQ_EDOC_STORAGES_COMPUTER_NAME SYSREQ_EDOC_STORAGES_EDIT_IN_STORAGE SYSREQ_EDOC_STORAGES_EXECUTIVE_STORAGE SYSREQ_EDOC_STORAGES_FUNCTION SYSREQ_EDOC_STORAGES_INITIALIZED SYSREQ_EDOC_STORAGES_LOCAL_PATH SYSREQ_EDOC_STORAGES_SAPERION_DATABASE_NAME SYSREQ_EDOC_STORAGES_SEARCH_BY_TEXT SYSREQ_EDOC_STORAGES_SERVER_NAME SYSREQ_EDOC_STORAGES_SHARED_SOURCE_NAME SYSREQ_EDOC_STORAGES_TYPE SYSREQ_EDOC_TEXT_MODIFIED SYSREQ_EDOC_TYPE_ACT_CODE SYSREQ_EDOC_TYPE_ACT_DESCRIPTION SYSREQ_EDOC_TYPE_ACT_DESCRIPTION_LOCALIZE_ID SYSREQ_EDOC_TYPE_ACT_ON_EXECUTE SYSREQ_EDOC_TYPE_ACT_ON_EXECUTE_EXISTS SYSREQ_EDOC_TYPE_ACT_SECTION SYSREQ_EDOC_TYPE_ADD_PARAMS SYSREQ_EDOC_TYPE_COMMENT SYSREQ_EDOC_TYPE_EVENT_TEXT SYSREQ_EDOC_TYPE_NAME_IN_SINGULAR SYSREQ_EDOC_TYPE_NAME_IN_SINGULAR_LOCALIZE_ID SYSREQ_EDOC_TYPE_NAME_LOCALIZE_ID SYSREQ_EDOC_TYPE_NUMERATION_METHOD SYSREQ_EDOC_TYPE_PSEUDO_REQUISITE_CODE SYSREQ_EDOC_TYPE_REQ_CODE SYSREQ_EDOC_TYPE_REQ_DESCRIPTION SYSREQ_EDOC_TYPE_REQ_DESCRIPTION_LOCALIZE_ID SYSREQ_EDOC_TYPE_REQ_IS_LEADING SYSREQ_EDOC_TYPE_REQ_IS_REQUIRED SYSREQ_EDOC_TYPE_REQ_NUMBER SYSREQ_EDOC_TYPE_REQ_ON_CHANGE SYSREQ_EDOC_TYPE_REQ_ON_CHANGE_EXISTS SYSREQ_EDOC_TYPE_REQ_ON_SELECT SYSREQ_EDOC_TYPE_REQ_ON_SELECT_KIND SYSREQ_EDOC_TYPE_REQ_SECTION SYSREQ_EDOC_TYPE_VIEW_CARD SYSREQ_EDOC_TYPE_VIEW_CODE SYSREQ_EDOC_TYPE_VIEW_COMMENT SYSREQ_EDOC_TYPE_VIEW_IS_MAIN SYSREQ_EDOC_TYPE_VIEW_NAME SYSREQ_EDOC_TYPE_VIEW_NAME_LOCALIZE_ID SYSREQ_EDOC_VERSION_AUTHOR SYSREQ_EDOC_VERSION_CRC SYSREQ_EDOC_VERSION_DATA SYSREQ_EDOC_VERSION_EDITOR SYSREQ_EDOC_VERSION_EXPORT_DATE SYSREQ_EDOC_VERSION_EXPORTER SYSREQ_EDOC_VERSION_HIDDEN SYSREQ_EDOC_VERSION_LIFE_STAGE SYSREQ_EDOC_VERSION_MODIFIED SYSREQ_EDOC_VERSION_NOTE SYSREQ_EDOC_VERSION_SIGNATURE_TYPE SYSREQ_EDOC_VERSION_SIGNED SYSREQ_EDOC_VERSION_SIZE SYSREQ_EDOC_VERSION_SOURCE SYSREQ_EDOC_VERSION_TEXT_MODIFIED SYSREQ_EDOCKIND_DEFAULT_VERSION_STATE_CODE SYSREQ_FOLDER_KIND SYSREQ_FUNC_CATEGORY SYSREQ_FUNC_COMMENT SYSREQ_FUNC_GROUP SYSREQ_FUNC_GROUP_COMMENT SYSREQ_FUNC_GROUP_NUMBER SYSREQ_FUNC_HELP SYSREQ_FUNC_PARAM_DEF_VALUE SYSREQ_FUNC_PARAM_IDENT SYSREQ_FUNC_PARAM_NUMBER SYSREQ_FUNC_PARAM_TYPE SYSREQ_FUNC_TEXT SYSREQ_GROUP_CATEGORY SYSREQ_ID SYSREQ_LAST_UPDATE SYSREQ_LEADER_REFERENCE SYSREQ_LINE_NUMBER SYSREQ_MAIN_RECORD_ID SYSREQ_NAME SYSREQ_NAME_LOCALIZE_ID SYSREQ_NOTE SYSREQ_ORIGINAL_RECORD SYSREQ_OUR_FIRM SYSREQ_PROFILING_SETTINGS_BATCH_LOGING SYSREQ_PROFILING_SETTINGS_BATCH_SIZE SYSREQ_PROFILING_SETTINGS_PROFILING_ENABLED SYSREQ_PROFILING_SETTINGS_SQL_PROFILING_ENABLED SYSREQ_PROFILING_SETTINGS_START_LOGGED SYSREQ_RECORD_STATUS SYSREQ_REF_REQ_FIELD_NAME SYSREQ_REF_REQ_FORMAT SYSREQ_REF_REQ_GENERATED SYSREQ_REF_REQ_LENGTH SYSREQ_REF_REQ_PRECISION SYSREQ_REF_REQ_REFERENCE SYSREQ_REF_REQ_SECTION SYSREQ_REF_REQ_STORED SYSREQ_REF_REQ_TOKENS SYSREQ_REF_REQ_TYPE SYSREQ_REF_REQ_VIEW SYSREQ_REF_TYPE_ACT_CODE SYSREQ_REF_TYPE_ACT_DESCRIPTION SYSREQ_REF_TYPE_ACT_DESCRIPTION_LOCALIZE_ID SYSREQ_REF_TYPE_ACT_ON_EXECUTE SYSREQ_REF_TYPE_ACT_ON_EXECUTE_EXISTS SYSREQ_REF_TYPE_ACT_SECTION SYSREQ_REF_TYPE_ADD_PARAMS SYSREQ_REF_TYPE_COMMENT SYSREQ_REF_TYPE_COMMON_SETTINGS SYSREQ_REF_TYPE_DISPLAY_REQUISITE_NAME SYSREQ_REF_TYPE_EVENT_TEXT SYSREQ_REF_TYPE_MAIN_LEADING_REF SYSREQ_REF_TYPE_NAME_IN_SINGULAR SYSREQ_REF_TYPE_NAME_IN_SINGULAR_LOCALIZE_ID SYSREQ_REF_TYPE_NAME_LOCALIZE_ID SYSREQ_REF_TYPE_NUMERATION_METHOD SYSREQ_REF_TYPE_REQ_CODE SYSREQ_REF_TYPE_REQ_DESCRIPTION SYSREQ_REF_TYPE_REQ_DESCRIPTION_LOCALIZE_ID SYSREQ_REF_TYPE_REQ_IS_CONTROL SYSREQ_REF_TYPE_REQ_IS_FILTER SYSREQ_REF_TYPE_REQ_IS_LEADING SYSREQ_REF_TYPE_REQ_IS_REQUIRED SYSREQ_REF_TYPE_REQ_NUMBER SYSREQ_REF_TYPE_REQ_ON_CHANGE SYSREQ_REF_TYPE_REQ_ON_CHANGE_EXISTS SYSREQ_REF_TYPE_REQ_ON_SELECT SYSREQ_REF_TYPE_REQ_ON_SELECT_KIND SYSREQ_REF_TYPE_REQ_SECTION SYSREQ_REF_TYPE_VIEW_CARD SYSREQ_REF_TYPE_VIEW_CODE SYSREQ_REF_TYPE_VIEW_COMMENT SYSREQ_REF_TYPE_VIEW_IS_MAIN SYSREQ_REF_TYPE_VIEW_NAME SYSREQ_REF_TYPE_VIEW_NAME_LOCALIZE_ID SYSREQ_REFERENCE_TYPE_ID SYSREQ_STATE SYSREQ_STATЕ SYSREQ_SYSTEM_SETTINGS_VALUE SYSREQ_TYPE SYSREQ_UNIT SYSREQ_UNIT_ID SYSREQ_USER_GROUPS_GROUP_FULL_NAME SYSREQ_USER_GROUPS_GROUP_NAME SYSREQ_USER_GROUPS_GROUP_SERVER_NAME SYSREQ_USERS_ACCESS_RIGHTS SYSREQ_USERS_AUTHENTICATION SYSREQ_USERS_CATEGORY SYSREQ_USERS_COMPONENT SYSREQ_USERS_COMPONENT_USER_IS_PUBLIC SYSREQ_USERS_DOMAIN SYSREQ_USERS_FULL_USER_NAME SYSREQ_USERS_GROUP SYSREQ_USERS_IS_MAIN_SERVER SYSREQ_USERS_LOGIN SYSREQ_USERS_REFERENCE_USER_IS_PUBLIC SYSREQ_USERS_STATUS SYSREQ_USERS_USER_CERTIFICATE SYSREQ_USERS_USER_CERTIFICATE_INFO SYSREQ_USERS_USER_CERTIFICATE_PLUGIN_NAME SYSREQ_USERS_USER_CERTIFICATE_PLUGIN_VERSION SYSREQ_USERS_USER_CERTIFICATE_STATE SYSREQ_USERS_USER_CERTIFICATE_SUBJECT_NAME SYSREQ_USERS_USER_CERTIFICATE_THUMBPRINT SYSREQ_USERS_USER_DEFAULT_CERTIFICATE SYSREQ_USERS_USER_DESCRIPTION SYSREQ_USERS_USER_GLOBAL_NAME SYSREQ_USERS_USER_LOGIN SYSREQ_USERS_USER_MAIN_SERVER SYSREQ_USERS_USER_TYPE SYSREQ_WORK_RULES_FOLDER_ID RESULT_VAR_NAME RESULT_VAR_NAME_ENG AUTO_NUMERATION_RULE_ID CANT_CHANGE_ID_REQUISITE_RULE_ID CANT_CHANGE_OURFIRM_REQUISITE_RULE_ID CHECK_CHANGING_REFERENCE_RECORD_USE_RULE_ID CHECK_CODE_REQUISITE_RULE_ID CHECK_DELETING_REFERENCE_RECORD_USE_RULE_ID CHECK_FILTRATER_CHANGES_RULE_ID CHECK_RECORD_INTERVAL_RULE_ID CHECK_REFERENCE_INTERVAL_RULE_ID CHECK_REQUIRED_DATA_FULLNESS_RULE_ID CHECK_REQUIRED_REQUISITES_FULLNESS_RULE_ID MAKE_RECORD_UNRATIFIED_RULE_ID RESTORE_AUTO_NUMERATION_RULE_ID SET_FIRM_CONTEXT_FROM_RECORD_RULE_ID SET_FIRST_RECORD_IN_LIST_FORM_RULE_ID SET_IDSPS_VALUE_RULE_ID SET_NEXT_CODE_VALUE_RULE_ID SET_OURFIRM_BOUNDS_RULE_ID SET_OURFIRM_REQUISITE_RULE_ID SCRIPT_BLOCK_AFTER_FINISH_EVENT SCRIPT_BLOCK_BEFORE_START_EVENT SCRIPT_BLOCK_EXECUTION_RESULTS_PROPERTY SCRIPT_BLOCK_NAME_PROPERTY SCRIPT_BLOCK_SCRIPT_PROPERTY SUBTASK_BLOCK_ABORT_DEADLINE_PROPERTY SUBTASK_BLOCK_AFTER_FINISH_EVENT SUBTASK_BLOCK_ASSIGN_PARAMS_EVENT SUBTASK_BLOCK_ATTACHMENTS_PROPERTY SUBTASK_BLOCK_ATTACHMENTS_RIGHTS_GROUP_PROPERTY SUBTASK_BLOCK_ATTACHMENTS_RIGHTS_TYPE_PROPERTY SUBTASK_BLOCK_BEFORE_START_EVENT SUBTASK_BLOCK_CREATED_TASK_PROPERTY SUBTASK_BLOCK_CREATION_EVENT SUBTASK_BLOCK_DEADLINE_PROPERTY SUBTASK_BLOCK_IMPORTANCE_PROPERTY SUBTASK_BLOCK_INITIATOR_PROPERTY SUBTASK_BLOCK_IS_RELATIVE_ABORT_DEADLINE_PROPERTY SUBTASK_BLOCK_IS_RELATIVE_DEADLINE_PROPERTY SUBTASK_BLOCK_JOBS_TYPE_PROPERTY SUBTASK_BLOCK_NAME_PROPERTY SUBTASK_BLOCK_PARALLEL_ROUTE_PROPERTY SUBTASK_BLOCK_PERFORMERS_PROPERTY SUBTASK_BLOCK_RELATIVE_ABORT_DEADLINE_TYPE_PROPERTY SUBTASK_BLOCK_RELATIVE_DEADLINE_TYPE_PROPERTY SUBTASK_BLOCK_REQUIRE_SIGN_PROPERTY SUBTASK_BLOCK_STANDARD_ROUTE_PROPERTY SUBTASK_BLOCK_START_EVENT SUBTASK_BLOCK_STEP_CONTROL_PROPERTY SUBTASK_BLOCK_SUBJECT_PROPERTY SUBTASK_BLOCK_TASK_CONTROL_PROPERTY SUBTASK_BLOCK_TEXT_PROPERTY SUBTASK_BLOCK_UNLOCK_ATTACHMENTS_ON_STOP_PROPERTY SUBTASK_BLOCK_USE_STANDARD_ROUTE_PROPERTY SUBTASK_BLOCK_WAIT_FOR_TASK_COMPLETE_PROPERTY SYSCOMP_CONTROL_JOBS SYSCOMP_FOLDERS SYSCOMP_JOBS SYSCOMP_NOTICES SYSCOMP_TASKS SYSDLG_CREATE_EDOCUMENT SYSDLG_CREATE_EDOCUMENT_VERSION SYSDLG_CURRENT_PERIOD SYSDLG_EDIT_FUNCTION_HELP SYSDLG_EDOCUMENT_KINDS_FOR_TEMPLATE SYSDLG_EXPORT_MULTIPLE_EDOCUMENTS SYSDLG_EXPORT_SINGLE_EDOCUMENT SYSDLG_IMPORT_EDOCUMENT SYSDLG_MULTIPLE_SELECT SYSDLG_SETUP_ACCESS_RIGHTS SYSDLG_SETUP_DEFAULT_RIGHTS SYSDLG_SETUP_FILTER_CONDITION SYSDLG_SETUP_SIGN_RIGHTS SYSDLG_SETUP_TASK_OBSERVERS SYSDLG_SETUP_TASK_ROUTE SYSDLG_SETUP_USERS_LIST SYSDLG_SIGN_EDOCUMENT SYSDLG_SIGN_MULTIPLE_EDOCUMENTS SYSREF_ACCESS_RIGHTS_TYPES SYSREF_ADMINISTRATION_HISTORY SYSREF_ALL_AVAILABLE_COMPONENTS SYSREF_ALL_AVAILABLE_PRIVILEGES SYSREF_ALL_REPLICATING_COMPONENTS SYSREF_AVAILABLE_DEVELOPERS_COMPONENTS SYSREF_CALENDAR_EVENTS SYSREF_COMPONENT_TOKEN_HISTORY SYSREF_COMPONENT_TOKENS SYSREF_COMPONENTS SYSREF_CONSTANTS SYSREF_DATA_RECEIVE_PROTOCOL SYSREF_DATA_SEND_PROTOCOL SYSREF_DIALOGS SYSREF_DIALOGS_REQUISITES SYSREF_EDITORS SYSREF_EDOC_CARDS SYSREF_EDOC_TYPES SYSREF_EDOCUMENT_CARD_REQUISITES SYSREF_EDOCUMENT_CARD_TYPES SYSREF_EDOCUMENT_CARD_TYPES_REFERENCE SYSREF_EDOCUMENT_CARDS SYSREF_EDOCUMENT_HISTORY SYSREF_EDOCUMENT_KINDS SYSREF_EDOCUMENT_REQUISITES SYSREF_EDOCUMENT_SIGNATURES SYSREF_EDOCUMENT_TEMPLATES SYSREF_EDOCUMENT_TEXT_STORAGES SYSREF_EDOCUMENT_VIEWS SYSREF_FILTERER_SETUP_CONFLICTS SYSREF_FILTRATER_SETTING_CONFLICTS SYSREF_FOLDER_HISTORY SYSREF_FOLDERS SYSREF_FUNCTION_GROUPS SYSREF_FUNCTION_PARAMS SYSREF_FUNCTIONS SYSREF_JOB_HISTORY SYSREF_LINKS SYSREF_LOCALIZATION_DICTIONARY SYSREF_LOCALIZATION_LANGUAGES SYSREF_MODULES SYSREF_PRIVILEGES SYSREF_RECORD_HISTORY SYSREF_REFERENCE_REQUISITES SYSREF_REFERENCE_TYPE_VIEWS SYSREF_REFERENCE_TYPES SYSREF_REFERENCES SYSREF_REFERENCES_REQUISITES SYSREF_REMOTE_SERVERS SYSREF_REPLICATION_SESSIONS_LOG SYSREF_REPLICATION_SESSIONS_PROTOCOL SYSREF_REPORTS SYSREF_ROLES SYSREF_ROUTE_BLOCK_GROUPS SYSREF_ROUTE_BLOCKS SYSREF_SCRIPTS SYSREF_SEARCHES SYSREF_SERVER_EVENTS SYSREF_SERVER_EVENTS_HISTORY SYSREF_STANDARD_ROUTE_GROUPS SYSREF_STANDARD_ROUTES SYSREF_STATUSES SYSREF_SYSTEM_SETTINGS SYSREF_TASK_HISTORY SYSREF_TASK_KIND_GROUPS SYSREF_TASK_KINDS SYSREF_TASK_RIGHTS SYSREF_TASK_SIGNATURES SYSREF_TASKS SYSREF_UNITS SYSREF_USER_GROUPS SYSREF_USER_GROUPS_REFERENCE SYSREF_USER_SUBSTITUTION SYSREF_USERS SYSREF_USERS_REFERENCE SYSREF_VIEWERS SYSREF_WORKING_TIME_CALENDARS ACCESS_RIGHTS_TABLE_NAME EDMS_ACCESS_TABLE_NAME EDOC_TYPES_TABLE_NAME TEST_DEV_DB_NAME TEST_DEV_SYSTEM_CODE TEST_EDMS_DB_NAME TEST_EDMS_MAIN_CODE TEST_EDMS_MAIN_DB_NAME TEST_EDMS_SECOND_CODE TEST_EDMS_SECOND_DB_NAME TEST_EDMS_SYSTEM_CODE TEST_ISB5_MAIN_CODE TEST_ISB5_SECOND_CODE TEST_SQL_SERVER_2005_NAME TEST_SQL_SERVER_NAME ATTENTION_CAPTION cbsCommandLinks cbsDefault CONFIRMATION_CAPTION ERROR_CAPTION INFORMATION_CAPTION mrCancel mrOk EDOC_VERSION_ACTIVE_STAGE_CODE EDOC_VERSION_DESIGN_STAGE_CODE EDOC_VERSION_OBSOLETE_STAGE_CODE cpDataEnciphermentEnabled cpDigitalSignatureEnabled cpID cpIssuer cpPluginVersion cpSerial cpSubjectName cpSubjSimpleName cpValidFromDate cpValidToDate ISBL_SYNTAX NO_SYNTAX XML_SYNTAX WAIT_BLOCK_AFTER_FINISH_EVENT WAIT_BLOCK_BEFORE_START_EVENT WAIT_BLOCK_DEADLINE_PROPERTY WAIT_BLOCK_IS_RELATIVE_DEADLINE_PROPERTY WAIT_BLOCK_NAME_PROPERTY WAIT_BLOCK_RELATIVE_DEADLINE_TYPE_PROPERTY SYSRES_COMMON SYSRES_CONST SYSRES_MBFUNC SYSRES_SBDATA SYSRES_SBGUI SYSRES_SBINTF SYSRES_SBREFDSC SYSRES_SQLERRORS SYSRES_SYSCOMP ",o="atUser atGroup atRole aemEnabledAlways aemDisabledAlways aemEnabledOnBrowse aemEnabledOnEdit aemDisabledOnBrowseEmpty apBegin apEnd alLeft alRight asmNever asmNoButCustomize asmAsLastTime asmYesButCustomize asmAlways cirCommon cirRevoked ctSignature ctEncode ctSignatureEncode clbUnchecked clbChecked clbGrayed ceISB ceAlways ceNever ctDocument ctReference ctScript ctUnknown ctReport ctDialog ctFunction ctFolder ctEDocument ctTask ctJob ctNotice ctControlJob cfInternal cfDisplay ciUnspecified ciWrite ciRead ckFolder ckEDocument ckTask ckJob ckComponentToken ckAny ckReference ckScript ckReport ckDialog ctISBLEditor ctBevel ctButton ctCheckListBox ctComboBox ctComboEdit ctGrid ctDBCheckBox ctDBComboBox ctDBEdit ctDBEllipsis ctDBMemo ctDBNavigator ctDBRadioGroup ctDBStatusLabel ctEdit ctGroupBox ctInplaceHint ctMemo ctPanel ctListBox ctRadioButton ctRichEdit ctTabSheet ctWebBrowser ctImage ctHyperLink ctLabel ctDBMultiEllipsis ctRibbon ctRichView ctInnerPanel ctPanelGroup ctBitButton cctDate cctInteger cctNumeric cctPick cctReference cctString cctText cltInternal cltPrimary cltGUI dseBeforeOpen dseAfterOpen dseBeforeClose dseAfterClose dseOnValidDelete dseBeforeDelete dseAfterDelete dseAfterDeleteOutOfTransaction dseOnDeleteError dseBeforeInsert dseAfterInsert dseOnValidUpdate dseBeforeUpdate dseOnUpdateRatifiedRecord dseAfterUpdate dseAfterUpdateOutOfTransaction dseOnUpdateError dseAfterScroll dseOnOpenRecord dseOnCloseRecord dseBeforeCancel dseAfterCancel dseOnUpdateDeadlockError dseBeforeDetailUpdate dseOnPrepareUpdate dseOnAnyRequisiteChange dssEdit dssInsert dssBrowse dssInActive dftDate dftShortDate dftDateTime dftTimeStamp dotDays dotHours dotMinutes dotSeconds dtkndLocal dtkndUTC arNone arView arEdit arFull ddaView ddaEdit emLock emEdit emSign emExportWithLock emImportWithUnlock emChangeVersionNote emOpenForModify emChangeLifeStage emDelete emCreateVersion emImport emUnlockExportedWithLock emStart emAbort emReInit emMarkAsReaded emMarkAsUnreaded emPerform emAccept emResume emChangeRights emEditRoute emEditObserver emRecoveryFromLocalCopy emChangeWorkAccessType emChangeEncodeTypeToCertificate emChangeEncodeTypeToPassword emChangeEncodeTypeToNone emChangeEncodeTypeToCertificatePassword emChangeStandardRoute emGetText emOpenForView emMoveToStorage emCreateObject emChangeVersionHidden emDeleteVersion emChangeLifeCycleStage emApprovingSign emExport emContinue emLockFromEdit emUnLockForEdit emLockForServer emUnlockFromServer emDelegateAccessRights emReEncode ecotFile ecotProcess eaGet eaCopy eaCreate eaCreateStandardRoute edltAll edltNothing edltQuery essmText essmCard esvtLast esvtLastActive esvtSpecified edsfExecutive edsfArchive edstSQLServer edstFile edvstNone edvstEDocumentVersionCopy edvstFile edvstTemplate edvstScannedFile vsDefault vsDesign vsActive vsObsolete etNone etCertificate etPassword etCertificatePassword ecException ecWarning ecInformation estAll estApprovingOnly evtLast evtLastActive evtQuery fdtString fdtNumeric fdtInteger fdtDate fdtText fdtUnknown fdtWideString fdtLargeInteger ftInbox ftOutbox ftFavorites ftCommonFolder ftUserFolder ftComponents ftQuickLaunch ftShortcuts ftSearch grhAuto grhX1 grhX2 grhX3 hltText hltRTF hltHTML iffBMP iffJPEG iffMultiPageTIFF iffSinglePageTIFF iffTIFF iffPNG im8bGrayscale im24bRGB im1bMonochrome itBMP itJPEG itWMF itPNG ikhInformation ikhWarning ikhError ikhNoIcon icUnknown icScript icFunction icIntegratedReport icAnalyticReport icDataSetEventHandler icActionHandler icFormEventHandler icLookUpEventHandler icRequisiteChangeEventHandler icBeforeSearchEventHandler icRoleCalculation icSelectRouteEventHandler icBlockPropertyCalculation icBlockQueryParamsEventHandler icChangeSearchResultEventHandler icBlockEventHandler icSubTaskInitEventHandler icEDocDataSetEventHandler icEDocLookUpEventHandler icEDocActionHandler icEDocFormEventHandler icEDocRequisiteChangeEventHandler icStructuredConversionRule icStructuredConversionEventBefore icStructuredConversionEventAfter icWizardEventHandler icWizardFinishEventHandler icWizardStepEventHandler icWizardStepFinishEventHandler icWizardActionEnableEventHandler icWizardActionExecuteEventHandler icCreateJobsHandler icCreateNoticesHandler icBeforeLookUpEventHandler icAfterLookUpEventHandler icTaskAbortEventHandler icWorkflowBlockActionHandler icDialogDataSetEventHandler icDialogActionHandler icDialogLookUpEventHandler icDialogRequisiteChangeEventHandler icDialogFormEventHandler icDialogValidCloseEventHandler icBlockFormEventHandler icTaskFormEventHandler icReferenceMethod icEDocMethod icDialogMethod icProcessMessageHandler isShow isHide isByUserSettings jkJob jkNotice jkControlJob jtInner jtLeft jtRight jtFull jtCross lbpAbove lbpBelow lbpLeft lbpRight eltPerConnection eltPerUser sfcUndefined sfcBlack sfcGreen sfcRed sfcBlue sfcOrange sfcLilac sfsItalic sfsStrikeout sfsNormal ldctStandardRoute ldctWizard ldctScript ldctFunction ldctRouteBlock ldctIntegratedReport ldctAnalyticReport ldctReferenceType ldctEDocumentType ldctDialog ldctServerEvents mrcrtNone mrcrtUser mrcrtMaximal mrcrtCustom vtEqual vtGreaterOrEqual vtLessOrEqual vtRange rdYesterday rdToday rdTomorrow rdThisWeek rdThisMonth rdThisYear rdNextMonth rdNextWeek rdLastWeek rdLastMonth rdWindow rdFile rdPrinter rdtString rdtNumeric rdtInteger rdtDate rdtReference rdtAccount rdtText rdtPick rdtUnknown rdtLargeInteger rdtDocument reOnChange reOnChangeValues ttGlobal ttLocal ttUser ttSystem ssmBrowse ssmSelect ssmMultiSelect ssmBrowseModal smSelect smLike smCard stNone stAuthenticating stApproving sctString sctStream sstAnsiSort sstNaturalSort svtEqual svtContain soatString soatNumeric soatInteger soatDatetime soatReferenceRecord soatText soatPick soatBoolean soatEDocument soatAccount soatIntegerCollection soatNumericCollection soatStringCollection soatPickCollection soatDatetimeCollection soatBooleanCollection soatReferenceRecordCollection soatEDocumentCollection soatAccountCollection soatContents soatUnknown tarAbortByUser tarAbortByWorkflowException tvtAllWords tvtExactPhrase tvtAnyWord usNone usCompleted usRedSquare usBlueSquare usYellowSquare usGreenSquare usOrangeSquare usPurpleSquare usFollowUp utUnknown utUser utDeveloper utAdministrator utSystemDeveloper utDisconnected btAnd btDetailAnd btOr btNotOr btOnly vmView vmSelect vmNavigation vsmSingle vsmMultiple vsmMultipleCheck vsmNoSelection wfatPrevious wfatNext wfatCancel wfatFinish wfepUndefined wfepText3 wfepText6 wfepText9 wfepSpinEdit wfepDropDown wfepRadioGroup wfepFlag wfepText12 wfepText15 wfepText18 wfepText21 wfepText24 wfepText27 wfepText30 wfepRadioGroupColumn1 wfepRadioGroupColumn2 wfepRadioGroupColumn3 wfetQueryParameter wfetText wfetDelimiter wfetLabel wptString wptInteger wptNumeric wptBoolean wptDateTime wptPick wptText wptUser wptUserList wptEDocumentInfo wptEDocumentInfoList wptReferenceRecordInfo wptReferenceRecordInfoList wptFolderInfo wptTaskInfo wptContents wptFileName wptDate wsrComplete wsrGoNext wsrGoPrevious wsrCustom wsrCancel wsrGoFinal wstForm wstEDocument wstTaskCard wstReferenceRecordCard wstFinal waAll waPerformers waManual wsbStart wsbFinish wsbNotice wsbStep wsbDecision wsbWait wsbMonitor wsbScript wsbConnector wsbSubTask wsbLifeCycleStage wsbPause wdtInteger wdtFloat wdtString wdtPick wdtDateTime wdtBoolean wdtTask wdtJob wdtFolder wdtEDocument wdtReferenceRecord wdtUser wdtGroup wdtRole wdtIntegerCollection wdtFloatCollection wdtStringCollection wdtPickCollection wdtDateTimeCollection wdtBooleanCollection wdtTaskCollection wdtJobCollection wdtFolderCollection wdtEDocumentCollection wdtReferenceRecordCollection wdtUserCollection wdtGroupCollection wdtRoleCollection wdtContents wdtUserList wdtSearchDescription wdtDeadLine wdtPickSet wdtAccountCollection wiLow wiNormal wiHigh wrtSoft wrtHard wsInit wsRunning wsDone wsControlled wsAborted wsContinued wtmFull wtmFromCurrent wtmOnlyCurrent ",a="AddSubString AdjustLineBreaks AmountInWords Analysis ArrayDimCount ArrayHighBound ArrayLowBound ArrayOf ArrayReDim Assert Assigned BeginOfMonth BeginOfPeriod BuildProfilingOperationAnalysis CallProcedure CanReadFile CArrayElement CDataSetRequisite ChangeDate ChangeReferenceDataset Char CharPos CheckParam CheckParamValue CompareStrings ConstantExists ControlState ConvertDateStr Copy CopyFile CreateArray CreateCachedReference CreateConnection CreateDialog CreateDualListDialog CreateEditor CreateException CreateFile CreateFolderDialog CreateInputDialog CreateLinkFile CreateList CreateLock CreateMemoryDataSet CreateObject CreateOpenDialog CreateProgress CreateQuery CreateReference CreateReport CreateSaveDialog CreateScript CreateSQLPivotFunction CreateStringList CreateTreeListSelectDialog CSelectSQL CSQL CSubString CurrentUserID CurrentUserName CurrentVersion DataSetLocateEx DateDiff DateTimeDiff DateToStr DayOfWeek DeleteFile DirectoryExists DisableCheckAccessRights DisableCheckFullShowingRestriction DisableMassTaskSendingRestrictions DropTable DupeString EditText EnableCheckAccessRights EnableCheckFullShowingRestriction EnableMassTaskSendingRestrictions EndOfMonth EndOfPeriod ExceptionExists ExceptionsOff ExceptionsOn Execute ExecuteProcess Exit ExpandEnvironmentVariables ExtractFileDrive ExtractFileExt ExtractFileName ExtractFilePath ExtractParams FileExists FileSize FindFile FindSubString FirmContext ForceDirectories Format FormatDate FormatNumeric FormatSQLDate FormatString FreeException GetComponent GetComponentLaunchParam GetConstant GetLastException GetReferenceRecord GetRefTypeByRefID GetTableID GetTempFolder IfThen In IndexOf InputDialog InputDialogEx InteractiveMode IsFileLocked IsGraphicFile IsNumeric Length LoadString LoadStringFmt LocalTimeToUTC LowerCase Max MessageBox MessageBoxEx MimeDecodeBinary MimeDecodeString MimeEncodeBinary MimeEncodeString Min MoneyInWords MoveFile NewID Now OpenFile Ord Precision Raise ReadCertificateFromFile ReadFile ReferenceCodeByID ReferenceNumber ReferenceRequisiteMode ReferenceRequisiteValue RegionDateSettings RegionNumberSettings RegionTimeSettings RegRead RegWrite RenameFile Replace Round SelectServerCode SelectSQL ServerDateTime SetConstant SetManagedFolderFieldsState ShowConstantsInputDialog ShowMessage Sleep Split SQL SQL2XLSTAB SQLProfilingSendReport StrToDate SubString SubStringCount SystemSetting Time TimeDiff Today Transliterate Trim UpperCase UserStatus UTCToLocalTime ValidateXML VarIsClear VarIsEmpty VarIsNull WorkTimeDiff WriteFile WriteFileEx WriteObjectHistory Анализ БазаДанных БлокЕсть БлокЕстьРасш БлокИнфо БлокСнять БлокСнятьРасш БлокУстановить Ввод ВводМеню ВедС ВедСпр ВерхняяГраницаМассива ВнешПрогр Восст ВременнаяПапка Время ВыборSQL ВыбратьЗапись ВыделитьСтр Вызвать Выполнить ВыпПрогр ГрафическийФайл ГруппаДополнительно ДатаВремяСерв ДеньНедели ДиалогДаНет ДлинаСтр ДобПодстр ЕПусто ЕслиТо ЕЧисло ЗамПодстр ЗаписьСправочника ЗначПоляСпр ИДТипСпр ИзвлечьДиск ИзвлечьИмяФайла ИзвлечьПуть ИзвлечьРасширение ИзмДат ИзменитьРазмерМассива ИзмеренийМассива ИмяОрг ИмяПоляСпр Индекс ИндикаторЗакрыть ИндикаторОткрыть ИндикаторШаг ИнтерактивныйРежим ИтогТблСпр КодВидВедСпр КодВидСпрПоИД КодПоAnalit КодСимвола КодСпр КолПодстр КолПроп КонМес Конст КонстЕсть КонстЗнач КонТран КопироватьФайл КопияСтр КПериод КСтрТблСпр Макс МаксСтрТблСпр Массив Меню МенюРасш Мин НаборДанныхНайтиРасш НаимВидСпр НаимПоAnalit НаимСпр НастроитьПереводыСтрок НачМес НачТран НижняяГраницаМассива НомерСпр НПериод Окно Окр Окружение ОтлИнфДобавить ОтлИнфУдалить Отчет ОтчетАнал ОтчетИнт ПапкаСуществует Пауза ПВыборSQL ПереименоватьФайл Переменные ПереместитьФайл Подстр ПоискПодстр ПоискСтр ПолучитьИДТаблицы ПользовательДополнительно ПользовательИД ПользовательИмя ПользовательСтатус Прервать ПроверитьПараметр ПроверитьПараметрЗнач ПроверитьУсловие РазбСтр РазнВремя РазнДат РазнДатаВремя РазнРабВремя РегУстВрем РегУстДат РегУстЧсл РедТекст РеестрЗапись РеестрСписокИменПарам РеестрЧтение РеквСпр РеквСпрПр Сегодня Сейчас Сервер СерверПроцессИД СертификатФайлСчитать СжПроб Символ СистемаДиректумКод СистемаИнформация СистемаКод Содержит СоединениеЗакрыть СоединениеОткрыть СоздатьДиалог СоздатьДиалогВыбораИзДвухСписков СоздатьДиалогВыбораПапки СоздатьДиалогОткрытияФайла СоздатьДиалогСохраненияФайла СоздатьЗапрос СоздатьИндикатор СоздатьИсключение СоздатьКэшированныйСправочник СоздатьМассив СоздатьНаборДанных СоздатьОбъект СоздатьОтчет СоздатьПапку СоздатьРедактор СоздатьСоединение СоздатьСписок СоздатьСписокСтрок СоздатьСправочник СоздатьСценарий СоздСпр СостСпр Сохр СохрСпр СписокСистем Спр Справочник СпрБлокЕсть СпрБлокСнять СпрБлокСнятьРасш СпрБлокУстановить СпрИзмНабДан СпрКод СпрНомер СпрОбновить СпрОткрыть СпрОтменить СпрПарам СпрПолеЗнач СпрПолеИмя СпрРекв СпрРеквВведЗн СпрРеквНовые СпрРеквПр СпрРеквПредЗн СпрРеквРежим СпрРеквТипТекст СпрСоздать СпрСост СпрСохранить СпрТблИтог СпрТблСтр СпрТблСтрКол СпрТблСтрМакс СпрТблСтрМин СпрТблСтрПред СпрТблСтрСлед СпрТблСтрСозд СпрТблСтрУд СпрТекПредст СпрУдалить СравнитьСтр СтрВерхРегистр СтрНижнРегистр СтрТблСпр СумПроп Сценарий СценарийПарам ТекВерсия ТекОрг Точн Тран Транслитерация УдалитьТаблицу УдалитьФайл УдСпр УдСтрТблСпр Уст УстановкиКонстант ФайлАтрибутСчитать ФайлАтрибутУстановить ФайлВремя ФайлВремяУстановить ФайлВыбрать ФайлЗанят ФайлЗаписать ФайлИскать ФайлКопировать ФайлМожноЧитать ФайлОткрыть ФайлПереименовать ФайлПерекодировать ФайлПереместить ФайлПросмотреть ФайлРазмер ФайлСоздать ФайлСсылкаСоздать ФайлСуществует ФайлСчитать ФайлУдалить ФмтSQLДат ФмтДат ФмтСтр ФмтЧсл Формат ЦМассивЭлемент ЦНаборДанныхРеквизит ЦПодстр ",s="AltState Application CallType ComponentTokens CreatedJobs CreatedNotices ControlState DialogResult Dialogs EDocuments EDocumentVersionSource Folders GlobalIDs Job Jobs InputValue LookUpReference LookUpRequisiteNames LookUpSearch Object ParentComponent Processes References Requisite ReportName Reports Result Scripts Searches SelectedAttachments SelectedItems SelectMode Sender ServerEvents ServiceFactory ShiftState SubTask SystemDialogs Tasks Wizard Wizards Work ВызовСпособ ИмяОтчета РеквЗнач ",l="IApplication IAccessRights IAccountRepository IAccountSelectionRestrictions IAction IActionList IAdministrationHistoryDescription IAnchors IApplication IArchiveInfo IAttachment IAttachmentList ICheckListBox ICheckPointedList IColumn IComponent IComponentDescription IComponentToken IComponentTokenFactory IComponentTokenInfo ICompRecordInfo IConnection IContents IControl IControlJob IControlJobInfo IControlList ICrypto ICrypto2 ICustomJob ICustomJobInfo ICustomListBox ICustomObjectWizardStep ICustomWork ICustomWorkInfo IDataSet IDataSetAccessInfo IDataSigner IDateCriterion IDateRequisite IDateRequisiteDescription IDateValue IDeaAccessRights IDeaObjectInfo IDevelopmentComponentLock IDialog IDialogFactory IDialogPickRequisiteItems IDialogsFactory IDICSFactory IDocRequisite IDocumentInfo IDualListDialog IECertificate IECertificateInfo IECertificates IEditControl IEditorForm IEdmsExplorer IEdmsObject IEdmsObjectDescription IEdmsObjectFactory IEdmsObjectInfo IEDocument IEDocumentAccessRights IEDocumentDescription IEDocumentEditor IEDocumentFactory IEDocumentInfo IEDocumentStorage IEDocumentVersion IEDocumentVersionListDialog IEDocumentVersionSource IEDocumentWizardStep IEDocVerSignature IEDocVersionState IEnabledMode IEncodeProvider IEncrypter IEvent IEventList IException IExternalEvents IExternalHandler IFactory IField IFileDialog IFolder IFolderDescription IFolderDialog IFolderFactory IFolderInfo IForEach IForm IFormTitle IFormWizardStep IGlobalIDFactory IGlobalIDInfo IGrid IHasher IHistoryDescription IHyperLinkControl IImageButton IImageControl IInnerPanel IInplaceHint IIntegerCriterion IIntegerList IIntegerRequisite IIntegerValue IISBLEditorForm IJob IJobDescription IJobFactory IJobForm IJobInfo ILabelControl ILargeIntegerCriterion ILargeIntegerRequisite ILargeIntegerValue ILicenseInfo ILifeCycleStage IList IListBox ILocalIDInfo ILocalization ILock IMemoryDataSet IMessagingFactory IMetadataRepository INotice INoticeInfo INumericCriterion INumericRequisite INumericValue IObject IObjectDescription IObjectImporter IObjectInfo IObserver IPanelGroup IPickCriterion IPickProperty IPickRequisite IPickRequisiteDescription IPickRequisiteItem IPickRequisiteItems IPickValue IPrivilege IPrivilegeList IProcess IProcessFactory IProcessMessage IProgress IProperty IPropertyChangeEvent IQuery IReference IReferenceCriterion IReferenceEnabledMode IReferenceFactory IReferenceHistoryDescription IReferenceInfo IReferenceRecordCardWizardStep IReferenceRequisiteDescription IReferencesFactory IReferenceValue IRefRequisite IReport IReportFactory IRequisite IRequisiteDescription IRequisiteDescriptionList IRequisiteFactory IRichEdit IRouteStep IRule IRuleList ISchemeBlock IScript IScriptFactory ISearchCriteria ISearchCriterion ISearchDescription ISearchFactory ISearchFolderInfo ISearchForObjectDescription ISearchResultRestrictions ISecuredContext ISelectDialog IServerEvent IServerEventFactory IServiceDialog IServiceFactory ISignature ISignProvider ISignProvider2 ISignProvider3 ISimpleCriterion IStringCriterion IStringList IStringRequisite IStringRequisiteDescription IStringValue ISystemDialogsFactory ISystemInfo ITabSheet ITask ITaskAbortReasonInfo ITaskCardWizardStep ITaskDescription ITaskFactory ITaskInfo ITaskRoute ITextCriterion ITextRequisite ITextValue ITreeListSelectDialog IUser IUserList IValue IView IWebBrowserControl IWizard IWizardAction IWizardFactory IWizardFormElement IWizardParam IWizardPickParam IWizardReferenceParam IWizardStep IWorkAccessRights IWorkDescription IWorkflowAskableParam IWorkflowAskableParams IWorkflowBlock IWorkflowBlockResult IWorkflowEnabledMode IWorkflowParam IWorkflowPickParam IWorkflowReferenceParam IWorkState IWorkTreeCustomNode IWorkTreeJobNode IWorkTreeTaskNode IXMLEditorForm SBCrypto ",c=i+o,u=s,d="null true false nil ",f={className:"number",begin:e.NUMBER_RE,relevance:0},h={className:"string",variants:[{begin:'"',end:'"'},{begin:"'",end:"'"}]},m={className:"doctag",begin:"\\b(?:TODO|DONE|BEGIN|END|STUB|CHG|FIXME|NOTE|BUG|XXX)\\b",relevance:0},g={className:"comment",begin:"//",end:"$",relevance:0,contains:[e.PHRASAL_WORDS_MODE,m]},v={className:"comment",begin:"/\\*",end:"\\*/",relevance:0,contains:[e.PHRASAL_WORDS_MODE,m]},y={variants:[g,v]},b={$pattern:t,keyword:r,built_in:c,class:u,literal:d},_={begin:"\\.\\s*"+e.UNDERSCORE_IDENT_RE,keywords:b,relevance:0},E={className:"type",begin:":[ \\t]*("+l.trim().replace(/\s/g,"|")+")",end:"[ \\t]*=",excludeEnd:!0},w={className:"variable",keywords:b,begin:t,relevance:0,contains:[E,_]},S=n+"\\(";return{name:"ISBL",case_insensitive:!0,keywords:b,illegal:"\\$|\\?|%|,|;$|~|#|@|</",contains:[{className:"function",begin:S,end:"\\)$",returnBegin:!0,keywords:b,illegal:"[\\[\\]\\|\\$\\?%,~#@]",contains:[{className:"title",keywords:{$pattern:t,built_in:a},begin:S,end:"\\(",returnBegin:!0,excludeEnd:!0},_,w,h,f,y]},E,_,w,h,f,y]}}function lfn(e){const t={className:"params",begin:/\(/,end:/\)/,contains:[{begin:/[\w-]+ *=/,returnBegin:!0,relevance:0,contains:[{className:"attr",begin:/[\w-]+/}]}],relevance:0},n={className:"function",begin:/:[\w\-.]+/,relevance:0},r={className:"string",begin:/\B([\/.])[\w\-.\/=]+/},i={className:"params",begin:/--[\w\-=\/]+/};return{name:"JBoss CLI",aliases:["wildfly-cli"],keywords:{$pattern:"[a-z-]+",keyword:"alias batch cd clear command connect connection-factory connection-info data-source deploy deployment-info deployment-overlay echo echo-dmr help history if jdbc-driver-info jms-queue|20 jms-topic|20 ls patch pwd quit read-attribute read-operation reload rollout-plan run-batch set shutdown try unalias undeploy unset version xa-data-source",literal:"true false"},contains:[e.HASH_COMMENT_MODE,e.QUOTE_STRING_MODE,i,n,r,t]}}function cfn(e){const t="[A-Za-z_\\u00A1-\\uFFFF][A-Za-z_0-9\\u00A1-\\uFFFF]*",n={$pattern:t,keyword:["baremodule","begin","break","catch","ccall","const","continue","do","else","elseif","end","export","false","finally","for","function","global","if","import","in","isa","let","local","macro","module","quote","return","true","try","using","where","while"],literal:["ARGS","C_NULL","DEPOT_PATH","ENDIAN_BOM","ENV","Inf","Inf16","Inf32","Inf64","InsertionSort","LOAD_PATH","MergeSort","NaN","NaN16","NaN32","NaN64","PROGRAM_FILE","QuickSort","RoundDown","RoundFromZero","RoundNearest","RoundNearestTiesAway","RoundNearestTiesUp","RoundToZero","RoundUp","VERSION|0","devnull","false","im","missing","nothing","pi","stderr","stdin","stdout","true","undef","π",""],built_in:["AbstractArray","AbstractChannel","AbstractChar","AbstractDict","AbstractDisplay","AbstractFloat","AbstractIrrational","AbstractMatrix","AbstractRange","AbstractSet","AbstractString","AbstractUnitRange","AbstractVecOrMat","AbstractVector","Any","ArgumentError","Array","AssertionError","BigFloat","BigInt","BitArray","BitMatrix","BitSet","BitVector","Bool","BoundsError","CapturedException","CartesianIndex","CartesianIndices","Cchar","Cdouble","Cfloat","Channel","Char","Cint","Cintmax_t","Clong","Clonglong","Cmd","Colon","Complex","ComplexF16","ComplexF32","ComplexF64","CompositeException","Condition","Cptrdiff_t","Cshort","Csize_t","Cssize_t","Cstring","Cuchar","Cuint","Cuintmax_t","Culong","Culonglong","Cushort","Cvoid","Cwchar_t","Cwstring","DataType","DenseArray","DenseMatrix","DenseVecOrMat","DenseVector","Dict","DimensionMismatch","Dims","DivideError","DomainError","EOFError","Enum","ErrorException","Exception","ExponentialBackOff","Expr","Float16","Float32","Float64","Function","GlobalRef","HTML","IO","IOBuffer","IOContext","IOStream","IdDict","IndexCartesian","IndexLinear","IndexStyle","InexactError","InitError","Int","Int128","Int16","Int32","Int64","Int8","Integer","InterruptException","InvalidStateException","Irrational","KeyError","LinRange","LineNumberNode","LinearIndices","LoadError","MIME","Matrix","Method","MethodError","Missing","MissingException","Module","NTuple","NamedTuple","Nothing","Number","OrdinalRange","OutOfMemoryError","OverflowError","Pair","PartialQuickSort","PermutedDimsArray","Pipe","ProcessFailedException","Ptr","QuoteNode","Rational","RawFD","ReadOnlyMemoryError","Real","ReentrantLock","Ref","Regex","RegexMatch","RoundingMode","SegmentationFault","Set","Signed","Some","StackOverflowError","StepRange","StepRangeLen","StridedArray","StridedMatrix","StridedVecOrMat","StridedVector","String","StringIndexError","SubArray","SubString","SubstitutionString","Symbol","SystemError","Task","TaskFailedException","Text","TextDisplay","Timer","Tuple","Type","TypeError","TypeVar","UInt","UInt128","UInt16","UInt32","UInt64","UInt8","UndefInitializer","UndefKeywordError","UndefRefError","UndefVarError","Union","UnionAll","UnitRange","Unsigned","Val","Vararg","VecElement","VecOrMat","Vector","VersionNumber","WeakKeyDict","WeakRef"]},r={keywords:n,illegal:/<\//},i={className:"number",begin:/(\b0x[\d_]*(\.[\d_]*)?|0x\.\d[\d_]*)p[-+]?\d+|\b0[box][a-fA-F0-9][a-fA-F0-9_]*|(\b\d[\d_]*(\.[\d_]*)?|\.\d[\d_]*)([eEfF][-+]?\d+)?/,relevance:0},o={className:"string",begin:/'(.|\\[xXuU][a-zA-Z0-9]+)'/},a={className:"subst",begin:/\$\(/,end:/\)/,keywords:n},s={className:"variable",begin:"\\$"+t},l={className:"string",contains:[e.BACKSLASH_ESCAPE,a,s],variants:[{begin:/\w*"""/,end:/"""\w*/,relevance:10},{begin:/\w*"/,end:/"\w*/}]},c={className:"string",contains:[e.BACKSLASH_ESCAPE,a,s],begin:"`",end:"`"},u={className:"meta",begin:"@"+t},d={className:"comment",variants:[{begin:"#=",end:"=#",relevance:10},{begin:"#",end:"$"}]};return r.name="Julia",r.contains=[i,o,l,c,u,d,e.HASH_COMMENT_MODE,{className:"keyword",begin:"\\b(((abstract|primitive)\\s+)type|(mutable\\s+)?struct)\\b"},{begin:/<:/}],a.contains=r.contains,r}function ufn(e){return{name:"Julia REPL",contains:[{className:"meta.prompt",begin:/^julia>/,relevance:10,starts:{end:/^(?![ ]{6})/,subLanguage:"julia"}}],aliases:["jldoctest"]}}function dfn(e){const t="[a-zA-Z_][\\w.]*",n="<\\?(lasso(script)?|=)",r="\\]|\\?>",i={$pattern:t+"|&[lg]t;",literal:"true false none minimal full all void and or not bw nbw ew new cn ncn lt lte gt gte eq neq rx nrx ft",built_in:"array date decimal duration integer map pair string tag xml null boolean bytes keyword list locale queue set stack staticarray local var variable global data self inherited currentcapture givenblock",keyword:"cache database_names database_schemanames database_tablenames define_tag define_type email_batch encode_set html_comment handle handle_error header if inline iterate ljax_target link link_currentaction link_currentgroup link_currentrecord link_detail link_firstgroup link_firstrecord link_lastgroup link_lastrecord link_nextgroup link_nextrecord link_prevgroup link_prevrecord log loop namespace_using output_none portal private protect records referer referrer repeating resultset rows search_args search_arguments select sort_args sort_arguments thread_atomic value_list while abort case else fail_if fail_ifnot fail if_empty if_false if_null if_true loop_abort loop_continue loop_count params params_up return return_value run_children soap_definetag soap_lastrequest soap_lastresponse tag_name ascending average by define descending do equals frozen group handle_failure import in into join let match max min on order parent protected provide public require returnhome skip split_thread sum take thread to trait type where with yield yieldhome"},o=e.COMMENT("<!--","-->",{relevance:0}),a={className:"meta",begin:"\\[noprocess\\]",starts:{end:"\\[/noprocess\\]",returnEnd:!0,contains:[o]}},s={className:"meta",begin:"\\[/noprocess|"+n},l={className:"symbol",begin:"'"+t+"'"},c=[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.inherit(e.C_NUMBER_MODE,{begin:e.C_NUMBER_RE+"|(-?infinity|NaN)\\b"}),e.inherit(e.APOS_STRING_MODE,{illegal:null}),e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),{className:"string",begin:"`",end:"`"},{variants:[{begin:"[#$]"+t},{begin:"#",end:"\\d+",illegal:"\\W"}]},{className:"type",begin:"::\\s*",end:t,illegal:"\\W"},{className:"params",variants:[{begin:"-(?!infinity)"+t,relevance:0},{begin:"(\\.\\.\\.)"}]},{begin:/(->|\.)\s*/,relevance:0,contains:[l]},{className:"class",beginKeywords:"define",returnEnd:!0,end:"\\(|=>",contains:[e.inherit(e.TITLE_MODE,{begin:t+"(=(?!>))?|[-+*/%](?!>)"})]}];return{name:"Lasso",aliases:["ls","lassoscript"],case_insensitive:!0,keywords:i,contains:[{className:"meta",begin:r,relevance:0,starts:{end:"\\[|"+n,returnEnd:!0,relevance:0,contains:[o]}},a,s,{className:"meta",begin:"\\[no_square_brackets",starts:{end:"\\[/no_square_brackets\\]",keywords:i,contains:[{className:"meta",begin:r,relevance:0,starts:{end:"\\[noprocess\\]|"+n,returnEnd:!0,contains:[o]}},a,s].concat(c)}},{className:"meta",begin:"\\[",relevance:0},{className:"meta",begin:"^#!",end:"lasso9$",relevance:10}].concat(c)}}function ffn(e){const t=e.regex.either(...["(?:NeedsTeXFormat|RequirePackage|GetIdInfo)","Provides(?:Expl)?(?:Package|Class|File)","(?:DeclareOption|ProcessOptions)","(?:documentclass|usepackage|input|include)","makeat(?:letter|other)","ExplSyntax(?:On|Off)","(?:new|renew|provide)?command","(?:re)newenvironment","(?:New|Renew|Provide|Declare)(?:Expandable)?DocumentCommand","(?:New|Renew|Provide|Declare)DocumentEnvironment","(?:(?:e|g|x)?def|let)","(?:begin|end)","(?:part|chapter|(?:sub){0,2}section|(?:sub)?paragraph)","caption","(?:label|(?:eq|page|name)?ref|(?:paren|foot|super)?cite)","(?:alpha|beta|[Gg]amma|[Dd]elta|(?:var)?epsilon|zeta|eta|[Tt]heta|vartheta)","(?:iota|(?:var)?kappa|[Ll]ambda|mu|nu|[Xx]i|[Pp]i|varpi|(?:var)rho)","(?:[Ss]igma|varsigma|tau|[Uu]psilon|[Pp]hi|varphi|chi|[Pp]si|[Oo]mega)","(?:frac|sum|prod|lim|infty|times|sqrt|leq|geq|left|right|middle|[bB]igg?)","(?:[lr]angle|q?quad|[lcvdi]?dots|d?dot|hat|tilde|bar)"].map(x=>x+"(?![a-zA-Z@:_])")),n=new RegExp(["(?:__)?[a-zA-Z]{2,}_[a-zA-Z](?:_?[a-zA-Z])+:[a-zA-Z]*","[lgc]__?[a-zA-Z](?:_?[a-zA-Z])*_[a-zA-Z]{2,}","[qs]__?[a-zA-Z](?:_?[a-zA-Z])+","use(?:_i)?:[a-zA-Z]*","(?:else|fi|or):","(?:if|cs|exp):w","(?:hbox|vbox):n","::[a-zA-Z]_unbraced","::[a-zA-Z:]"].map(x=>x+"(?![a-zA-Z:_])").join("|")),r=[{begin:/[a-zA-Z@]+/},{begin:/[^a-zA-Z@]?/}],i=[{begin:/\^{6}[0-9a-f]{6}/},{begin:/\^{5}[0-9a-f]{5}/},{begin:/\^{4}[0-9a-f]{4}/},{begin:/\^{3}[0-9a-f]{3}/},{begin:/\^{2}[0-9a-f]{2}/},{begin:/\^{2}[\u0000-\u007f]/}],o={className:"keyword",begin:/\\/,relevance:0,contains:[{endsParent:!0,begin:t},{endsParent:!0,begin:n},{endsParent:!0,variants:i},{endsParent:!0,relevance:0,variants:r}]},a={className:"params",relevance:0,begin:/#+\d?/},s={variants:i},l={className:"built_in",relevance:0,begin:/[$&^_]/},c={className:"meta",begin:/% ?!(T[eE]X|tex|BIB|bib)/,end:"$",relevance:10},u=e.COMMENT("%","$",{relevance:0}),d=[o,a,s,l,c,u],f={begin:/\{/,end:/\}/,relevance:0,contains:["self",...d]},h=e.inherit(f,{relevance:0,endsParent:!0,contains:[f,...d]}),m={begin:/\[/,end:/\]/,endsParent:!0,relevance:0,contains:[f,...d]},g={begin:/\s+/,relevance:0},v=[h],y=[m],b=function(x,O){return{contains:[g],starts:{relevance:0,contains:x,starts:O}}},_=function(x,O){return{begin:"\\\\"+x+"(?![a-zA-Z@:_])",keywords:{$pattern:/\\[a-zA-Z]+/,keyword:"\\"+x},relevance:0,contains:[g],starts:O}},E=function(x,O){return e.inherit({begin:"\\\\begin(?=[ ]*(\\r?\\n[ ]*)?\\{"+x+"\\})",keywords:{$pattern:/\\[a-zA-Z]+/,keyword:"\\begin"},relevance:0},b(v,O))},w=(x="string")=>e.END_SAME_AS_BEGIN({className:x,begin:/(.|\r?\n)/,end:/(.|\r?\n)/,excludeBegin:!0,excludeEnd:!0,endsParent:!0}),S=function(x){return{className:"string",end:"(?=\\\\end\\{"+x+"\\})"}},C=(x="string")=>({relevance:0,begin:/\{/,starts:{endsParent:!0,contains:[{className:x,end:/(?=\})/,endsParent:!0,contains:[{begin:/\{/,end:/\}/,relevance:0,contains:["self"]}]}]}}),T=[...["verb","lstinline"].map(x=>_(x,{contains:[w()]})),_("mint",b(v,{contains:[w()]})),_("mintinline",b(v,{contains:[C(),w()]})),_("url",{contains:[C("link"),C("link")]}),_("hyperref",{contains:[C("link")]}),_("href",b(y,{contains:[C("link")]})),...[].concat(...["","\\*"].map(x=>[E("verbatim"+x,S("verbatim"+x)),E("filecontents"+x,b(v,S("filecontents"+x))),...["","B","L"].map(O=>E(O+"Verbatim"+x,b(y,S(O+"Verbatim"+x))))])),E("minted",b(y,b(v,S("minted"))))];return{name:"LaTeX",aliases:["tex"],contains:[...T,...d]}}function pfn(e){return{name:"LDIF",contains:[{className:"attribute",match:"^dn(?=:)",relevance:10},{className:"attribute",match:"^\\w+(?=:)"},{className:"literal",match:"^-"},e.HASH_COMMENT_MODE]}}function hfn(e){const t=/([A-Za-z_][A-Za-z_0-9]*)?/,n={scope:"params",begin:/\(/,end:/\)(?=\:?)/,endsParent:!0,relevance:7,contains:[{scope:"string",begin:'"',end:'"'},{scope:"keyword",match:["true","false","in"].join("|")},{scope:"variable",match:/[A-Za-z_][A-Za-z_0-9]*/},{scope:"operator",match:/\+|\-|\*|\/|\%|\=\=|\=|\!|\>|\<|\&\&|\|\|/}]},r={match:[t,/(?=\()/],scope:{1:"keyword"},contains:[n]};return n.contains.unshift(r),{name:"Leaf",contains:[{match:[/#+/,t,/(?=\()/],scope:{1:"punctuation",2:"keyword"},starts:{contains:[{match:/\:/,scope:"punctuation"}]},contains:[n]},{match:[/#+/,t,/:?/],scope:{1:"punctuation",2:"keyword",3:"punctuation"}}]}}function mfn(e){const t="[a-zA-Z_\\-+\\*\\/<=>&#][a-zA-Z0-9_\\-+*\\/<=>&#!]*",n="\\|[^]*?\\|",r="(-|\\+)?\\d+(\\.\\d+|\\/\\d+)?((d|e|f|l|s|D|E|F|L|S)(\\+|-)?\\d+)?",i={className:"literal",begin:"\\b(t{1}|nil)\\b"},o={className:"number",variants:[{begin:r,relevance:0},{begin:"#(b|B)[0-1]+(/[0-1]+)?"},{begin:"#(o|O)[0-7]+(/[0-7]+)?"},{begin:"#(x|X)[0-9a-fA-F]+(/[0-9a-fA-F]+)?"},{begin:"#(c|C)\\("+r+" +"+r,end:"\\)"}]},a=e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),s=e.COMMENT(";","$",{relevance:0}),l={begin:"\\*",end:"\\*"},c={className:"symbol",begin:"[:&]"+t},u={begin:t,relevance:0},d={begin:n},f={contains:[o,a,l,c,{begin:"\\(",end:"\\)",contains:["self",i,a,o,u]},u],variants:[{begin:"['`]\\(",end:"\\)"},{begin:"\\(quote ",end:"\\)",keywords:{name:"quote"}},{begin:"'"+n}]},h={variants:[{begin:"'"+t},{begin:"#'"+t+"(::"+t+")*"}]},m={begin:"\\(\\s*",end:"\\)"},g={endsWithParent:!0,relevance:0};return m.contains=[{className:"name",variants:[{begin:t,relevance:0},{begin:n}]},g],g.contains=[f,h,m,i,o,a,s,l,c,d,u],{name:"Lisp",illegal:/\S/,contains:[o,e.SHEBANG(),i,a,s,f,h,m,u]}}function gfn(e){const t={className:"variable",variants:[{begin:"\\b([gtps][A-Z]{1}[a-zA-Z0-9]*)(\\[.+\\])?(?:\\s*?)"},{begin:"\\$_[A-Z]+"}],relevance:0},n=[e.C_BLOCK_COMMENT_MODE,e.HASH_COMMENT_MODE,e.COMMENT("--","$"),e.COMMENT("[^:]//","$")],r=e.inherit(e.TITLE_MODE,{variants:[{begin:"\\b_*rig[A-Z][A-Za-z0-9_\\-]*"},{begin:"\\b_[a-z0-9\\-]+"}]}),i=e.inherit(e.TITLE_MODE,{begin:"\\b([A-Za-z0-9_\\-]+)\\b"});return{name:"LiveCode",case_insensitive:!1,keywords:{keyword:"$_COOKIE $_FILES $_GET $_GET_BINARY $_GET_RAW $_POST $_POST_BINARY $_POST_RAW $_SESSION $_SERVER codepoint codepoints segment segments codeunit codeunits sentence sentences trueWord trueWords paragraph after byte bytes english the until http forever descending using line real8 with seventh for stdout finally element word words fourth before black ninth sixth characters chars stderr uInt1 uInt1s uInt2 uInt2s stdin string lines relative rel any fifth items from middle mid at else of catch then third it file milliseconds seconds second secs sec int1 int1s int4 int4s internet int2 int2s normal text item last long detailed effective uInt4 uInt4s repeat end repeat URL in try into switch to words https token binfile each tenth as ticks tick system real4 by dateItems without char character ascending eighth whole dateTime numeric short first ftp integer abbreviated abbr abbrev private case while if div mod wrap and or bitAnd bitNot bitOr bitXor among not in a an within contains ends with begins the keys of keys",literal:"SIX TEN FORMFEED NINE ZERO NONE SPACE FOUR FALSE COLON CRLF PI COMMA ENDOFFILE EOF EIGHT FIVE QUOTE EMPTY ONE TRUE RETURN CR LINEFEED RIGHT BACKSLASH NULL SEVEN TAB THREE TWO six ten formfeed nine zero none space four false colon crlf pi comma endoffile eof eight five quote empty one true return cr linefeed right backslash null seven tab three two RIVERSION RISTATE FILE_READ_MODE FILE_WRITE_MODE FILE_WRITE_MODE DIR_WRITE_MODE FILE_READ_UMASK FILE_WRITE_UMASK DIR_READ_UMASK DIR_WRITE_UMASK",built_in:"put abs acos aliasReference annuity arrayDecode arrayEncode asin atan atan2 average avg avgDev base64Decode base64Encode baseConvert binaryDecode binaryEncode byteOffset byteToNum cachedURL cachedURLs charToNum cipherNames codepointOffset codepointProperty codepointToNum codeunitOffset commandNames compound compress constantNames cos date dateFormat decompress difference directories diskSpace DNSServers exp exp1 exp2 exp10 extents files flushEvents folders format functionNames geometricMean global globals hasMemory harmonicMean hostAddress hostAddressToName hostName hostNameToAddress isNumber ISOToMac itemOffset keys len length libURLErrorData libUrlFormData libURLftpCommand libURLLastHTTPHeaders libURLLastRHHeaders libUrlMultipartFormAddPart libUrlMultipartFormData libURLVersion lineOffset ln ln1 localNames log log2 log10 longFilePath lower macToISO matchChunk matchText matrixMultiply max md5Digest median merge messageAuthenticationCode messageDigest millisec millisecs millisecond milliseconds min monthNames nativeCharToNum normalizeText num number numToByte numToChar numToCodepoint numToNativeChar offset open openfiles openProcesses openProcessIDs openSockets paragraphOffset paramCount param params peerAddress pendingMessages platform popStdDev populationStandardDeviation populationVariance popVariance processID random randomBytes replaceText result revCreateXMLTree revCreateXMLTreeFromFile revCurrentRecord revCurrentRecordIsFirst revCurrentRecordIsLast revDatabaseColumnCount revDatabaseColumnIsNull revDatabaseColumnLengths revDatabaseColumnNames revDatabaseColumnNamed revDatabaseColumnNumbered revDatabaseColumnTypes revDatabaseConnectResult revDatabaseCursors revDatabaseID revDatabaseTableNames revDatabaseType revDataFromQuery revdb_closeCursor revdb_columnbynumber revdb_columncount revdb_columnisnull revdb_columnlengths revdb_columnnames revdb_columntypes revdb_commit revdb_connect revdb_connections revdb_connectionerr revdb_currentrecord revdb_cursorconnection revdb_cursorerr revdb_cursors revdb_dbtype revdb_disconnect revdb_execute revdb_iseof revdb_isbof revdb_movefirst revdb_movelast revdb_movenext revdb_moveprev revdb_query revdb_querylist revdb_recordcount revdb_rollback revdb_tablenames revGetDatabaseDriverPath revNumberOfRecords revOpenDatabase revOpenDatabases revQueryDatabase revQueryDatabaseBlob revQueryResult revQueryIsAtStart revQueryIsAtEnd revUnixFromMacPath revXMLAttribute revXMLAttributes revXMLAttributeValues revXMLChildContents revXMLChildNames revXMLCreateTreeFromFileWithNamespaces revXMLCreateTreeWithNamespaces revXMLDataFromXPathQuery revXMLEvaluateXPath revXMLFirstChild revXMLMatchingNode revXMLNextSibling revXMLNodeContents revXMLNumberOfChildren revXMLParent revXMLPreviousSibling revXMLRootNode revXMLRPC_CreateRequest revXMLRPC_Documents revXMLRPC_Error revXMLRPC_GetHost revXMLRPC_GetMethod revXMLRPC_GetParam revXMLText revXMLRPC_Execute revXMLRPC_GetParamCount revXMLRPC_GetParamNode revXMLRPC_GetParamType revXMLRPC_GetPath revXMLRPC_GetPort revXMLRPC_GetProtocol revXMLRPC_GetRequest revXMLRPC_GetResponse revXMLRPC_GetSocket revXMLTree revXMLTrees revXMLValidateDTD revZipDescribeItem revZipEnumerateItems revZipOpenArchives round sampVariance sec secs seconds sentenceOffset sha1Digest shell shortFilePath sin specialFolderPath sqrt standardDeviation statRound stdDev sum sysError systemVersion tan tempName textDecode textEncode tick ticks time to tokenOffset toLower toUpper transpose truewordOffset trunc uniDecode uniEncode upper URLDecode URLEncode URLStatus uuid value variableNames variance version waitDepth weekdayNames wordOffset xsltApplyStylesheet xsltApplyStylesheetFromFile xsltLoadStylesheet xsltLoadStylesheetFromFile add breakpoint cancel clear local variable file word line folder directory URL close socket process combine constant convert create new alias folder directory decrypt delete variable word line folder directory URL dispatch divide do encrypt filter get include intersect kill libURLDownloadToFile libURLFollowHttpRedirects libURLftpUpload libURLftpUploadFile libURLresetAll libUrlSetAuthCallback libURLSetDriver libURLSetCustomHTTPHeaders libUrlSetExpect100 libURLSetFTPListCommand libURLSetFTPMode libURLSetFTPStopTime libURLSetStatusCallback load extension loadedExtensions multiply socket prepare process post seek rel relative read from process rename replace require resetAll resolve revAddXMLNode revAppendXML revCloseCursor revCloseDatabase revCommitDatabase revCopyFile revCopyFolder revCopyXMLNode revDeleteFolder revDeleteXMLNode revDeleteAllXMLTrees revDeleteXMLTree revExecuteSQL revGoURL revInsertXMLNode revMoveFolder revMoveToFirstRecord revMoveToLastRecord revMoveToNextRecord revMoveToPreviousRecord revMoveToRecord revMoveXMLNode revPutIntoXMLNode revRollBackDatabase revSetDatabaseDriverPath revSetXMLAttribute revXMLRPC_AddParam revXMLRPC_DeleteAllDocuments revXMLAddDTD revXMLRPC_Free revXMLRPC_FreeAll revXMLRPC_DeleteDocument revXMLRPC_DeleteParam revXMLRPC_SetHost revXMLRPC_SetMethod revXMLRPC_SetPort revXMLRPC_SetProtocol revXMLRPC_SetSocket revZipAddItemWithData revZipAddItemWithFile revZipAddUncompressedItemWithData revZipAddUncompressedItemWithFile revZipCancel revZipCloseArchive revZipDeleteItem revZipExtractItemToFile revZipExtractItemToVariable revZipSetProgressCallback revZipRenameItem revZipReplaceItemWithData revZipReplaceItemWithFile revZipOpenArchive send set sort split start stop subtract symmetric union unload vectorDotProduct wait write"},contains:[t,{className:"keyword",begin:"\\bend\\sif\\b"},{className:"function",beginKeywords:"function",end:"$",contains:[t,i,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.BINARY_NUMBER_MODE,e.C_NUMBER_MODE,r]},{className:"function",begin:"\\bend\\s+",end:"$",keywords:"end",contains:[i,r],relevance:0},{beginKeywords:"command on",end:"$",contains:[t,i,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.BINARY_NUMBER_MODE,e.C_NUMBER_MODE,r]},{className:"meta",variants:[{begin:"<\\?(rev|lc|livecode)",relevance:10},{begin:"<\\?"},{begin:"\\?>"}]},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.BINARY_NUMBER_MODE,e.C_NUMBER_MODE,r].concat(n),illegal:";$|^\\[|^=|&|\\{"}}const vfn=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends"],bfn=["true","false","null","undefined","NaN","Infinity"],yfn=["Object","Function","Boolean","Symbol","Math","Date","Number","BigInt","String","RegExp","Array","Float32Array","Float64Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Int32Array","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array","Set","Map","WeakSet","WeakMap","ArrayBuffer","SharedArrayBuffer","Atomics","DataView","JSON","Promise","Generator","GeneratorFunction","AsyncFunction","Reflect","Proxy","Intl","WebAssembly"],_fn=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],Sfn=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],Efn=[].concat(Sfn,yfn,_fn);function Cfn(e){const t=["npm","print"],n=["yes","no","on","off","it","that","void"],r=["then","unless","until","loop","of","by","when","and","or","is","isnt","not","it","that","otherwise","from","to","til","fallthrough","case","enum","native","list","map","__hasProp","__extends","__slice","__bind","__indexOf"],i={keyword:vfn.concat(r),literal:bfn.concat(n),built_in:Efn.concat(t)},o="[A-Za-z$_](?:-[0-9A-Za-z$_]|[0-9A-Za-z$_])*",a=e.inherit(e.TITLE_MODE,{begin:o}),s={className:"subst",begin:/#\{/,end:/\}/,keywords:i},l={className:"subst",begin:/#[A-Za-z$_]/,end:/(?:-[0-9A-Za-z$_]|[0-9A-Za-z$_])*/,keywords:i},c=[e.BINARY_NUMBER_MODE,{className:"number",begin:"(\\b0[xX][a-fA-F0-9_]+)|(\\b\\d(\\d|_\\d)*(\\.(\\d(\\d|_\\d)*)?)?(_*[eE]([-+]\\d(_\\d|\\d)*)?)?[_a-z]*)",relevance:0,starts:{end:"(\\s*/)?",relevance:0}},{className:"string",variants:[{begin:/'''/,end:/'''/,contains:[e.BACKSLASH_ESCAPE]},{begin:/'/,end:/'/,contains:[e.BACKSLASH_ESCAPE]},{begin:/"""/,end:/"""/,contains:[e.BACKSLASH_ESCAPE,s,l]},{begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,s,l]},{begin:/\\/,end:/(\s|$)/,excludeEnd:!0}]},{className:"regexp",variants:[{begin:"//",end:"//[gim]*",contains:[s,e.HASH_COMMENT_MODE]},{begin:/\/(?![ *])(\\.|[^\\\n])*?\/[gim]*(?=\W)/}]},{begin:"@"+o},{begin:"``",end:"``",excludeBegin:!0,excludeEnd:!0,subLanguage:"javascript"}];s.contains=c;const u={className:"params",begin:"\\(",returnBegin:!0,contains:[{begin:/\(/,end:/\)/,keywords:i,contains:["self"].concat(c)}]},d={begin:"(#=>|=>|\\|>>|-?->|!->)"},f={variants:[{match:[/class\s+/,o,/\s+extends\s+/,o]},{match:[/class\s+/,o]}],scope:{2:"title.class",4:"title.class.inherited"},keywords:i};return{name:"LiveScript",aliases:["ls"],keywords:i,illegal:/\/\*/,contains:c.concat([e.COMMENT("\\/\\*","\\*\\/"),e.HASH_COMMENT_MODE,d,{className:"function",contains:[a,u],returnBegin:!0,variants:[{begin:"("+o+"\\s*(?:=|:=)\\s*)?(\\(.*\\)\\s*)?\\B->\\*?",end:"->\\*?"},{begin:"("+o+"\\s*(?:=|:=)\\s*)?!?(\\(.*\\)\\s*)?\\B[-~]{1,2}>\\*?",end:"[-~]{1,2}>\\*?"},{begin:"("+o+"\\s*(?:=|:=)\\s*)?(\\(.*\\)\\s*)?\\B!?[-~]{1,2}>\\*?",end:"!?[-~]{1,2}>\\*?"}]},f,{begin:o+":",end:":",returnBegin:!0,returnEnd:!0,relevance:0}])}}function wfn(e){const t=e.regex,n=/([-a-zA-Z$._][\w$.-]*)/,r={className:"type",begin:/\bi\d+(?=\s|\b)/},i={className:"operator",relevance:0,begin:/=/},o={className:"punctuation",relevance:0,begin:/,/},a={className:"number",variants:[{begin:/[su]?0[xX][KMLHR]?[a-fA-F0-9]+/},{begin:/[-+]?\d+(?:[.]\d+)?(?:[eE][-+]?\d+(?:[.]\d+)?)?/}],relevance:0},s={className:"symbol",variants:[{begin:/^\s*[a-z]+:/}],relevance:0},l={className:"variable",variants:[{begin:t.concat(/%/,n)},{begin:/%\d+/},{begin:/#\d+/}]},c={className:"title",variants:[{begin:t.concat(/@/,n)},{begin:/@\d+/},{begin:t.concat(/!/,n)},{begin:t.concat(/!\d+/,n)},{begin:/!\d+/}]};return{name:"LLVM IR",keywords:"begin end true false declare define global constant private linker_private internal available_externally linkonce linkonce_odr weak weak_odr appending dllimport dllexport common default hidden protected extern_weak external thread_local zeroinitializer undef null to tail target triple datalayout volatile nuw nsw nnan ninf nsz arcp fast exact inbounds align addrspace section alias module asm sideeffect gc dbg linker_private_weak attributes blockaddress initialexec localdynamic localexec prefix unnamed_addr ccc fastcc coldcc x86_stdcallcc x86_fastcallcc arm_apcscc arm_aapcscc arm_aapcs_vfpcc ptx_device ptx_kernel intel_ocl_bicc msp430_intrcc spir_func spir_kernel x86_64_sysvcc x86_64_win64cc x86_thiscallcc cc c signext zeroext inreg sret nounwind noreturn noalias nocapture byval nest readnone readonly inlinehint noinline alwaysinline optsize ssp sspreq noredzone noimplicitfloat naked builtin cold nobuiltin noduplicate nonlazybind optnone returns_twice sanitize_address sanitize_memory sanitize_thread sspstrong uwtable returned type opaque eq ne slt sgt sle sge ult ugt ule uge oeq one olt ogt ole oge ord uno ueq une x acq_rel acquire alignstack atomic catch cleanup filter inteldialect max min monotonic nand personality release seq_cst singlethread umax umin unordered xchg add fadd sub fsub mul fmul udiv sdiv fdiv urem srem frem shl lshr ashr and or xor icmp fcmp phi call trunc zext sext fptrunc fpext uitofp sitofp fptoui fptosi inttoptr ptrtoint bitcast addrspacecast select va_arg ret br switch invoke unwind unreachable indirectbr landingpad resume malloc alloca free load store getelementptr extractelement insertelement shufflevector getresult extractvalue insertvalue atomicrmw cmpxchg fence argmemonly double",contains:[r,e.COMMENT(/;\s*$/,null,{relevance:0}),e.COMMENT(/;/,/$/),{className:"string",begin:/"/,end:/"/,contains:[{className:"char.escape",match:/\\\d\d/}]},c,o,i,l,s,a]}}function Tfn(e){const t={className:"string",begin:'"',end:'"',contains:[{className:"subst",begin:/\\[tn"\\]/}]},n={className:"number",relevance:0,begin:e.C_NUMBER_RE},r={className:"literal",variants:[{begin:"\\b(PI|TWO_PI|PI_BY_TWO|DEG_TO_RAD|RAD_TO_DEG|SQRT2)\\b"},{begin:"\\b(XP_ERROR_(EXPERIENCES_DISABLED|EXPERIENCE_(DISABLED|SUSPENDED)|INVALID_(EXPERIENCE|PARAMETERS)|KEY_NOT_FOUND|MATURITY_EXCEEDED|NONE|NOT_(FOUND|PERMITTED(_LAND)?)|NO_EXPERIENCE|QUOTA_EXCEEDED|RETRY_UPDATE|STORAGE_EXCEPTION|STORE_DISABLED|THROTTLED|UNKNOWN_ERROR)|JSON_APPEND|STATUS_(PHYSICS|ROTATE_[XYZ]|PHANTOM|SANDBOX|BLOCK_GRAB(_OBJECT)?|(DIE|RETURN)_AT_EDGE|CAST_SHADOWS|OK|MALFORMED_PARAMS|TYPE_MISMATCH|BOUNDS_ERROR|NOT_(FOUND|SUPPORTED)|INTERNAL_ERROR|WHITELIST_FAILED)|AGENT(_(BY_(LEGACY_|USER)NAME|FLYING|ATTACHMENTS|SCRIPTED|MOUSELOOK|SITTING|ON_OBJECT|AWAY|WALKING|IN_AIR|TYPING|CROUCHING|BUSY|ALWAYS_RUN|AUTOPILOT|LIST_(PARCEL(_OWNER)?|REGION)))?|CAMERA_(PITCH|DISTANCE|BEHINDNESS_(ANGLE|LAG)|(FOCUS|POSITION)(_(THRESHOLD|LOCKED|LAG))?|FOCUS_OFFSET|ACTIVE)|ANIM_ON|LOOP|REVERSE|PING_PONG|SMOOTH|ROTATE|SCALE|ALL_SIDES|LINK_(ROOT|SET|ALL_(OTHERS|CHILDREN)|THIS)|ACTIVE|PASS(IVE|_(ALWAYS|IF_NOT_HANDLED|NEVER))|SCRIPTED|CONTROL_(FWD|BACK|(ROT_)?(LEFT|RIGHT)|UP|DOWN|(ML_)?LBUTTON)|PERMISSION_(RETURN_OBJECTS|DEBIT|OVERRIDE_ANIMATIONS|SILENT_ESTATE_MANAGEMENT|TAKE_CONTROLS|TRIGGER_ANIMATION|ATTACH|CHANGE_LINKS|(CONTROL|TRACK)_CAMERA|TELEPORT)|INVENTORY_(TEXTURE|SOUND|OBJECT|SCRIPT|LANDMARK|CLOTHING|NOTECARD|BODYPART|ANIMATION|GESTURE|ALL|NONE)|CHANGED_(INVENTORY|COLOR|SHAPE|SCALE|TEXTURE|LINK|ALLOWED_DROP|OWNER|REGION(_START)?|TELEPORT|MEDIA)|OBJECT_(CLICK_ACTION|HOVER_HEIGHT|LAST_OWNER_ID|(PHYSICS|SERVER|STREAMING)_COST|UNKNOWN_DETAIL|CHARACTER_TIME|PHANTOM|PHYSICS|TEMP_(ATTACHED|ON_REZ)|NAME|DESC|POS|PRIM_(COUNT|EQUIVALENCE)|RETURN_(PARCEL(_OWNER)?|REGION)|REZZER_KEY|ROO?T|VELOCITY|OMEGA|OWNER|GROUP(_TAG)?|CREATOR|ATTACHED_(POINT|SLOTS_AVAILABLE)|RENDER_WEIGHT|(BODY_SHAPE|PATHFINDING)_TYPE|(RUNNING|TOTAL)_SCRIPT_COUNT|TOTAL_INVENTORY_COUNT|SCRIPT_(MEMORY|TIME))|TYPE_(INTEGER|FLOAT|STRING|KEY|VECTOR|ROTATION|INVALID)|(DEBUG|PUBLIC)_CHANNEL|ATTACH_(AVATAR_CENTER|CHEST|HEAD|BACK|PELVIS|MOUTH|CHIN|NECK|NOSE|BELLY|[LR](SHOULDER|HAND|FOOT|EAR|EYE|[UL](ARM|LEG)|HIP)|(LEFT|RIGHT)_PEC|HUD_(CENTER_[12]|TOP_(RIGHT|CENTER|LEFT)|BOTTOM(_(RIGHT|LEFT))?)|[LR]HAND_RING1|TAIL_(BASE|TIP)|[LR]WING|FACE_(JAW|[LR]EAR|[LR]EYE|TOUNGE)|GROIN|HIND_[LR]FOOT)|LAND_(LEVEL|RAISE|LOWER|SMOOTH|NOISE|REVERT)|DATA_(ONLINE|NAME|BORN|SIM_(POS|STATUS|RATING)|PAYINFO)|PAYMENT_INFO_(ON_FILE|USED)|REMOTE_DATA_(CHANNEL|REQUEST|REPLY)|PSYS_(PART_(BF_(ZERO|ONE(_MINUS_(DEST_COLOR|SOURCE_(ALPHA|COLOR)))?|DEST_COLOR|SOURCE_(ALPHA|COLOR))|BLEND_FUNC_(DEST|SOURCE)|FLAGS|(START|END)_(COLOR|ALPHA|SCALE|GLOW)|MAX_AGE|(RIBBON|WIND|INTERP_(COLOR|SCALE)|BOUNCE|FOLLOW_(SRC|VELOCITY)|TARGET_(POS|LINEAR)|EMISSIVE)_MASK)|SRC_(MAX_AGE|PATTERN|ANGLE_(BEGIN|END)|BURST_(RATE|PART_COUNT|RADIUS|SPEED_(MIN|MAX))|ACCEL|TEXTURE|TARGET_KEY|OMEGA|PATTERN_(DROP|EXPLODE|ANGLE(_CONE(_EMPTY)?)?)))|VEHICLE_(REFERENCE_FRAME|TYPE_(NONE|SLED|CAR|BOAT|AIRPLANE|BALLOON)|(LINEAR|ANGULAR)_(FRICTION_TIMESCALE|MOTOR_DIRECTION)|LINEAR_MOTOR_OFFSET|HOVER_(HEIGHT|EFFICIENCY|TIMESCALE)|BUOYANCY|(LINEAR|ANGULAR)_(DEFLECTION_(EFFICIENCY|TIMESCALE)|MOTOR_(DECAY_)?TIMESCALE)|VERTICAL_ATTRACTION_(EFFICIENCY|TIMESCALE)|BANKING_(EFFICIENCY|MIX|TIMESCALE)|FLAG_(NO_DEFLECTION_UP|LIMIT_(ROLL_ONLY|MOTOR_UP)|HOVER_((WATER|TERRAIN|UP)_ONLY|GLOBAL_HEIGHT)|MOUSELOOK_(STEER|BANK)|CAMERA_DECOUPLED))|PRIM_(ALLOW_UNSIT|ALPHA_MODE(_(BLEND|EMISSIVE|MASK|NONE))?|NORMAL|SPECULAR|TYPE(_(BOX|CYLINDER|PRISM|SPHERE|TORUS|TUBE|RING|SCULPT))?|HOLE_(DEFAULT|CIRCLE|SQUARE|TRIANGLE)|MATERIAL(_(STONE|METAL|GLASS|WOOD|FLESH|PLASTIC|RUBBER))?|SHINY_(NONE|LOW|MEDIUM|HIGH)|BUMP_(NONE|BRIGHT|DARK|WOOD|BARK|BRICKS|CHECKER|CONCRETE|TILE|STONE|DISKS|GRAVEL|BLOBS|SIDING|LARGETILE|STUCCO|SUCTION|WEAVE)|TEXGEN_(DEFAULT|PLANAR)|SCRIPTED_SIT_ONLY|SCULPT_(TYPE_(SPHERE|TORUS|PLANE|CYLINDER|MASK)|FLAG_(MIRROR|INVERT))|PHYSICS(_(SHAPE_(CONVEX|NONE|PRIM|TYPE)))?|(POS|ROT)_LOCAL|SLICE|TEXT|FLEXIBLE|POINT_LIGHT|TEMP_ON_REZ|PHANTOM|POSITION|SIT_TARGET|SIZE|ROTATION|TEXTURE|NAME|OMEGA|DESC|LINK_TARGET|COLOR|BUMP_SHINY|FULLBRIGHT|TEXGEN|GLOW|MEDIA_(ALT_IMAGE_ENABLE|CONTROLS|(CURRENT|HOME)_URL|AUTO_(LOOP|PLAY|SCALE|ZOOM)|FIRST_CLICK_INTERACT|(WIDTH|HEIGHT)_PIXELS|WHITELIST(_ENABLE)?|PERMS_(INTERACT|CONTROL)|PARAM_MAX|CONTROLS_(STANDARD|MINI)|PERM_(NONE|OWNER|GROUP|ANYONE)|MAX_(URL_LENGTH|WHITELIST_(SIZE|COUNT)|(WIDTH|HEIGHT)_PIXELS)))|MASK_(BASE|OWNER|GROUP|EVERYONE|NEXT)|PERM_(TRANSFER|MODIFY|COPY|MOVE|ALL)|PARCEL_(MEDIA_COMMAND_(STOP|PAUSE|PLAY|LOOP|TEXTURE|URL|TIME|AGENT|UNLOAD|AUTO_ALIGN|TYPE|SIZE|DESC|LOOP_SET)|FLAG_(ALLOW_(FLY|(GROUP_)?SCRIPTS|LANDMARK|TERRAFORM|DAMAGE|CREATE_(GROUP_)?OBJECTS)|USE_(ACCESS_(GROUP|LIST)|BAN_LIST|LAND_PASS_LIST)|LOCAL_SOUND_ONLY|RESTRICT_PUSHOBJECT|ALLOW_(GROUP|ALL)_OBJECT_ENTRY)|COUNT_(TOTAL|OWNER|GROUP|OTHER|SELECTED|TEMP)|DETAILS_(NAME|DESC|OWNER|GROUP|AREA|ID|SEE_AVATARS))|LIST_STAT_(MAX|MIN|MEAN|MEDIAN|STD_DEV|SUM(_SQUARES)?|NUM_COUNT|GEOMETRIC_MEAN|RANGE)|PAY_(HIDE|DEFAULT)|REGION_FLAG_(ALLOW_DAMAGE|FIXED_SUN|BLOCK_TERRAFORM|SANDBOX|DISABLE_(COLLISIONS|PHYSICS)|BLOCK_FLY|ALLOW_DIRECT_TELEPORT|RESTRICT_PUSHOBJECT)|HTTP_(METHOD|MIMETYPE|BODY_(MAXLENGTH|TRUNCATED)|CUSTOM_HEADER|PRAGMA_NO_CACHE|VERBOSE_THROTTLE|VERIFY_CERT)|SIT_(INVALID_(AGENT|LINK_OBJECT)|NO(T_EXPERIENCE|_(ACCESS|EXPERIENCE_PERMISSION|SIT_TARGET)))|STRING_(TRIM(_(HEAD|TAIL))?)|CLICK_ACTION_(NONE|TOUCH|SIT|BUY|PAY|OPEN(_MEDIA)?|PLAY|ZOOM)|TOUCH_INVALID_FACE|PROFILE_(NONE|SCRIPT_MEMORY)|RC_(DATA_FLAGS|DETECT_PHANTOM|GET_(LINK_NUM|NORMAL|ROOT_KEY)|MAX_HITS|REJECT_(TYPES|AGENTS|(NON)?PHYSICAL|LAND))|RCERR_(CAST_TIME_EXCEEDED|SIM_PERF_LOW|UNKNOWN)|ESTATE_ACCESS_(ALLOWED_(AGENT|GROUP)_(ADD|REMOVE)|BANNED_AGENT_(ADD|REMOVE))|DENSITY|FRICTION|RESTITUTION|GRAVITY_MULTIPLIER|KFM_(COMMAND|CMD_(PLAY|STOP|PAUSE)|MODE|FORWARD|LOOP|PING_PONG|REVERSE|DATA|ROTATION|TRANSLATION)|ERR_(GENERIC|PARCEL_PERMISSIONS|MALFORMED_PARAMS|RUNTIME_PERMISSIONS|THROTTLED)|CHARACTER_(CMD_((SMOOTH_)?STOP|JUMP)|DESIRED_(TURN_)?SPEED|RADIUS|STAY_WITHIN_PARCEL|LENGTH|ORIENTATION|ACCOUNT_FOR_SKIPPED_FRAMES|AVOIDANCE_MODE|TYPE(_([ABCD]|NONE))?|MAX_(DECEL|TURN_RADIUS|(ACCEL|SPEED)))|PURSUIT_(OFFSET|FUZZ_FACTOR|GOAL_TOLERANCE|INTERCEPT)|REQUIRE_LINE_OF_SIGHT|FORCE_DIRECT_PATH|VERTICAL|HORIZONTAL|AVOID_(CHARACTERS|DYNAMIC_OBSTACLES|NONE)|PU_(EVADE_(HIDDEN|SPOTTED)|FAILURE_(DYNAMIC_PATHFINDING_DISABLED|INVALID_(GOAL|START)|NO_(NAVMESH|VALID_DESTINATION)|OTHER|TARGET_GONE|(PARCEL_)?UNREACHABLE)|(GOAL|SLOWDOWN_DISTANCE)_REACHED)|TRAVERSAL_TYPE(_(FAST|NONE|SLOW))?|CONTENT_TYPE_(ATOM|FORM|HTML|JSON|LLSD|RSS|TEXT|XHTML|XML)|GCNP_(RADIUS|STATIC)|(PATROL|WANDER)_PAUSE_AT_WAYPOINTS|OPT_(AVATAR|CHARACTER|EXCLUSION_VOLUME|LEGACY_LINKSET|MATERIAL_VOLUME|OTHER|STATIC_OBSTACLE|WALKABLE)|SIM_STAT_PCT_CHARS_STEPPED)\\b"},{begin:"\\b(FALSE|TRUE)\\b"},{begin:"\\b(ZERO_ROTATION)\\b"},{begin:"\\b(EOF|JSON_(ARRAY|DELETE|FALSE|INVALID|NULL|NUMBER|OBJECT|STRING|TRUE)|NULL_KEY|TEXTURE_(BLANK|DEFAULT|MEDIA|PLYWOOD|TRANSPARENT)|URL_REQUEST_(GRANTED|DENIED))\\b"},{begin:"\\b(ZERO_VECTOR|TOUCH_INVALID_(TEXCOORD|VECTOR))\\b"}]},i={className:"built_in",begin:"\\b(ll(AgentInExperience|(Create|DataSize|Delete|KeyCount|Keys|Read|Update)KeyValue|GetExperience(Details|ErrorMessage)|ReturnObjectsBy(ID|Owner)|Json(2List|[GS]etValue|ValueType)|Sin|Cos|Tan|Atan2|Sqrt|Pow|Abs|Fabs|Frand|Floor|Ceil|Round|Vec(Mag|Norm|Dist)|Rot(Between|2(Euler|Fwd|Left|Up))|(Euler|Axes)2Rot|Whisper|(Region|Owner)?Say|Shout|Listen(Control|Remove)?|Sensor(Repeat|Remove)?|Detected(Name|Key|Owner|Type|Pos|Vel|Grab|Rot|Group|LinkNumber)|Die|Ground|Wind|([GS]et)(AnimationOverride|MemoryLimit|PrimMediaParams|ParcelMusicURL|Object(Desc|Name)|PhysicsMaterial|Status|Scale|Color|Alpha|Texture|Pos|Rot|Force|Torque)|ResetAnimationOverride|(Scale|Offset|Rotate)Texture|(Rot)?Target(Remove)?|(Stop)?MoveToTarget|Apply(Rotational)?Impulse|Set(KeyframedMotion|ContentType|RegionPos|(Angular)?Velocity|Buoyancy|HoverHeight|ForceAndTorque|TimerEvent|ScriptState|Damage|TextureAnim|Sound(Queueing|Radius)|Vehicle(Type|(Float|Vector|Rotation)Param)|(Touch|Sit)?Text|Camera(Eye|At)Offset|PrimitiveParams|ClickAction|Link(Alpha|Color|PrimitiveParams(Fast)?|Texture(Anim)?|Camera|Media)|RemoteScriptAccessPin|PayPrice|LocalRot)|ScaleByFactor|Get((Max|Min)ScaleFactor|ClosestNavPoint|StaticPath|SimStats|Env|PrimitiveParams|Link(PrimitiveParams|Number(OfSides)?|Key|Name|Media)|HTTPHeader|FreeURLs|Object(Details|PermMask|PrimCount)|Parcel(MaxPrims|Details|Prim(Count|Owners))|Attached(List)?|(SPMax|Free|Used)Memory|Region(Name|TimeDilation|FPS|Corner|AgentCount)|Root(Position|Rotation)|UnixTime|(Parcel|Region)Flags|(Wall|GMT)clock|SimulatorHostname|BoundingBox|GeometricCenter|Creator|NumberOf(Prims|NotecardLines|Sides)|Animation(List)?|(Camera|Local)(Pos|Rot)|Vel|Accel|Omega|Time(stamp|OfDay)|(Object|CenterOf)?Mass|MassMKS|Energy|Owner|(Owner)?Key|SunDirection|Texture(Offset|Scale|Rot)|Inventory(Number|Name|Key|Type|Creator|PermMask)|Permissions(Key)?|StartParameter|List(Length|EntryType)|Date|Agent(Size|Info|Language|List)|LandOwnerAt|NotecardLine|Script(Name|State))|(Get|Reset|GetAndReset)Time|PlaySound(Slave)?|LoopSound(Master|Slave)?|(Trigger|Stop|Preload)Sound|((Get|Delete)Sub|Insert)String|To(Upper|Lower)|Give(InventoryList|Money)|RezObject|(Stop)?LookAt|Sleep|CollisionFilter|(Take|Release)Controls|DetachFromAvatar|AttachToAvatar(Temp)?|InstantMessage|(GetNext)?Email|StopHover|MinEventDelay|RotLookAt|String(Length|Trim)|(Start|Stop)Animation|TargetOmega|Request(Experience)?Permissions|(Create|Break)Link|BreakAllLinks|(Give|Remove)Inventory|Water|PassTouches|Request(Agent|Inventory)Data|TeleportAgent(Home|GlobalCoords)?|ModifyLand|CollisionSound|ResetScript|MessageLinked|PushObject|PassCollisions|AxisAngle2Rot|Rot2(Axis|Angle)|A(cos|sin)|AngleBetween|AllowInventoryDrop|SubStringIndex|List2(CSV|Integer|Json|Float|String|Key|Vector|Rot|List(Strided)?)|DeleteSubList|List(Statistics|Sort|Randomize|(Insert|Find|Replace)List)|EdgeOfWorld|AdjustSoundVolume|Key2Name|TriggerSoundLimited|EjectFromLand|(CSV|ParseString)2List|OverMyLand|SameGroup|UnSit|Ground(Slope|Normal|Contour)|GroundRepel|(Set|Remove)VehicleFlags|SitOnLink|(AvatarOn)?(Link)?SitTarget|Script(Danger|Profiler)|Dialog|VolumeDetect|ResetOtherScript|RemoteLoadScriptPin|(Open|Close)RemoteDataChannel|SendRemoteData|RemoteDataReply|(Integer|String)ToBase64|XorBase64|Log(10)?|Base64To(String|Integer)|ParseStringKeepNulls|RezAtRoot|RequestSimulatorData|ForceMouselook|(Load|Release|(E|Une)scape)URL|ParcelMedia(CommandList|Query)|ModPow|MapDestination|(RemoveFrom|AddTo|Reset)Land(Pass|Ban)List|(Set|Clear)CameraParams|HTTP(Request|Response)|TextBox|DetectedTouch(UV|Face|Pos|(N|Bin)ormal|ST)|(MD5|SHA1|DumpList2)String|Request(Secure)?URL|Clear(Prim|Link)Media|(Link)?ParticleSystem|(Get|Request)(Username|DisplayName)|RegionSayTo|CastRay|GenerateKey|TransferLindenDollars|ManageEstateAccess|(Create|Delete)Character|ExecCharacterCmd|Evade|FleeFrom|NavigateTo|PatrolPoints|Pursue|UpdateCharacter|WanderWithin))\\b"};return{name:"LSL (Linden Scripting Language)",illegal:":",contains:[t,{className:"comment",variants:[e.COMMENT("//","$"),e.COMMENT("/\\*","\\*/")],relevance:0},n,{className:"section",variants:[{begin:"\\b(state|default)\\b"},{begin:"\\b(state_(entry|exit)|touch(_(start|end))?|(land_)?collision(_(start|end))?|timer|listen|(no_)?sensor|control|(not_)?at_(rot_)?target|money|email|experience_permissions(_denied)?|run_time_permissions|changed|attach|dataserver|moving_(start|end)|link_message|(on|object)_rez|remote_data|http_re(sponse|quest)|path_update|transaction_result)\\b"}]},i,r,{className:"type",begin:"\\b(integer|float|string|key|vector|quaternion|rotation|list)\\b"}]}}const xfn=["AASTriangle","AbelianGroup","Abort","AbortKernels","AbortProtect","AbortScheduledTask","Above","Abs","AbsArg","AbsArgPlot","Absolute","AbsoluteCorrelation","AbsoluteCorrelationFunction","AbsoluteCurrentValue","AbsoluteDashing","AbsoluteFileName","AbsoluteOptions","AbsolutePointSize","AbsoluteThickness","AbsoluteTime","AbsoluteTiming","AcceptanceThreshold","AccountingForm","Accumulate","Accuracy","AccuracyGoal","AcousticAbsorbingValue","AcousticImpedanceValue","AcousticNormalVelocityValue","AcousticPDEComponent","AcousticPressureCondition","AcousticRadiationValue","AcousticSoundHardValue","AcousticSoundSoftCondition","ActionDelay","ActionMenu","ActionMenuBox","ActionMenuBoxOptions","Activate","Active","ActiveClassification","ActiveClassificationObject","ActiveItem","ActivePrediction","ActivePredictionObject","ActiveStyle","AcyclicGraphQ","AddOnHelpPath","AddSides","AddTo","AddToSearchIndex","AddUsers","AdjacencyGraph","AdjacencyList","AdjacencyMatrix","AdjacentMeshCells","Adjugate","AdjustmentBox","AdjustmentBoxOptions","AdjustTimeSeriesForecast","AdministrativeDivisionData","AffineHalfSpace","AffineSpace","AffineStateSpaceModel","AffineTransform","After","AggregatedEntityClass","AggregationLayer","AircraftData","AirportData","AirPressureData","AirSoundAttenuation","AirTemperatureData","AiryAi","AiryAiPrime","AiryAiZero","AiryBi","AiryBiPrime","AiryBiZero","AlgebraicIntegerQ","AlgebraicNumber","AlgebraicNumberDenominator","AlgebraicNumberNorm","AlgebraicNumberPolynomial","AlgebraicNumberTrace","AlgebraicRules","AlgebraicRulesData","Algebraics","AlgebraicUnitQ","Alignment","AlignmentMarker","AlignmentPoint","All","AllowAdultContent","AllowChatServices","AllowedCloudExtraParameters","AllowedCloudParameterExtensions","AllowedDimensions","AllowedFrequencyRange","AllowedHeads","AllowGroupClose","AllowIncomplete","AllowInlineCells","AllowKernelInitialization","AllowLooseGrammar","AllowReverseGroupClose","AllowScriptLevelChange","AllowVersionUpdate","AllTrue","Alphabet","AlphabeticOrder","AlphabeticSort","AlphaChannel","AlternateImage","AlternatingFactorial","AlternatingGroup","AlternativeHypothesis","Alternatives","AltitudeMethod","AmbientLight","AmbiguityFunction","AmbiguityList","Analytic","AnatomyData","AnatomyForm","AnatomyPlot3D","AnatomySkinStyle","AnatomyStyling","AnchoredSearch","And","AndersonDarlingTest","AngerJ","AngleBisector","AngleBracket","AnglePath","AnglePath3D","AngleVector","AngularGauge","Animate","AnimatedImage","AnimationCycleOffset","AnimationCycleRepetitions","AnimationDirection","AnimationDisplayTime","AnimationRate","AnimationRepetitions","AnimationRunning","AnimationRunTime","AnimationTimeIndex","AnimationVideo","Animator","AnimatorBox","AnimatorBoxOptions","AnimatorElements","Annotate","Annotation","AnnotationDelete","AnnotationKeys","AnnotationRules","AnnotationValue","Annuity","AnnuityDue","Annulus","AnomalyDetection","AnomalyDetector","AnomalyDetectorFunction","Anonymous","Antialiasing","Antihermitian","AntihermitianMatrixQ","Antisymmetric","AntisymmetricMatrixQ","Antonyms","AnyOrder","AnySubset","AnyTrue","Apart","ApartSquareFree","APIFunction","Appearance","AppearanceElements","AppearanceRules","AppellF1","Append","AppendCheck","AppendLayer","AppendTo","Application","Apply","ApplyReaction","ApplySides","ApplyTo","ArcCos","ArcCosh","ArcCot","ArcCoth","ArcCsc","ArcCsch","ArcCurvature","ARCHProcess","ArcLength","ArcSec","ArcSech","ArcSin","ArcSinDistribution","ArcSinh","ArcTan","ArcTanh","Area","Arg","ArgMax","ArgMin","ArgumentCountQ","ArgumentsOptions","ARIMAProcess","ArithmeticGeometricMean","ARMAProcess","Around","AroundReplace","ARProcess","Array","ArrayComponents","ArrayDepth","ArrayFilter","ArrayFlatten","ArrayMesh","ArrayPad","ArrayPlot","ArrayPlot3D","ArrayQ","ArrayReduce","ArrayResample","ArrayReshape","ArrayRules","Arrays","Arrow","Arrow3DBox","ArrowBox","Arrowheads","ASATriangle","Ask","AskAppend","AskConfirm","AskDisplay","AskedQ","AskedValue","AskFunction","AskState","AskTemplateDisplay","AspectRatio","AspectRatioFixed","Assert","AssessmentFunction","AssessmentResultObject","AssociateTo","Association","AssociationFormat","AssociationMap","AssociationQ","AssociationThread","AssumeDeterministic","Assuming","Assumptions","AstroAngularSeparation","AstroBackground","AstroCenter","AstroDistance","AstroGraphics","AstroGridLines","AstroGridLinesStyle","AstronomicalData","AstroPosition","AstroProjection","AstroRange","AstroRangePadding","AstroReferenceFrame","AstroStyling","AstroZoomLevel","Asymptotic","AsymptoticDSolveValue","AsymptoticEqual","AsymptoticEquivalent","AsymptoticExpectation","AsymptoticGreater","AsymptoticGreaterEqual","AsymptoticIntegrate","AsymptoticLess","AsymptoticLessEqual","AsymptoticOutputTracker","AsymptoticProbability","AsymptoticProduct","AsymptoticRSolveValue","AsymptoticSolve","AsymptoticSum","Asynchronous","AsynchronousTaskObject","AsynchronousTasks","Atom","AtomCoordinates","AtomCount","AtomDiagramCoordinates","AtomLabels","AtomLabelStyle","AtomList","AtomQ","AttachCell","AttachedCell","AttentionLayer","Attributes","Audio","AudioAmplify","AudioAnnotate","AudioAnnotationLookup","AudioBlockMap","AudioCapture","AudioChannelAssignment","AudioChannelCombine","AudioChannelMix","AudioChannels","AudioChannelSeparate","AudioData","AudioDelay","AudioDelete","AudioDevice","AudioDistance","AudioEncoding","AudioFade","AudioFrequencyShift","AudioGenerator","AudioIdentify","AudioInputDevice","AudioInsert","AudioInstanceQ","AudioIntervals","AudioJoin","AudioLabel","AudioLength","AudioLocalMeasurements","AudioLooping","AudioLoudness","AudioMeasurements","AudioNormalize","AudioOutputDevice","AudioOverlay","AudioPad","AudioPan","AudioPartition","AudioPause","AudioPitchShift","AudioPlay","AudioPlot","AudioQ","AudioRecord","AudioReplace","AudioResample","AudioReverb","AudioReverse","AudioSampleRate","AudioSpectralMap","AudioSpectralTransformation","AudioSplit","AudioStop","AudioStream","AudioStreams","AudioTimeStretch","AudioTrackApply","AudioTrackSelection","AudioTrim","AudioType","AugmentedPolyhedron","AugmentedSymmetricPolynomial","Authenticate","Authentication","AuthenticationDialog","AutoAction","Autocomplete","AutocompletionFunction","AutoCopy","AutocorrelationTest","AutoDelete","AutoEvaluateEvents","AutoGeneratedPackage","AutoIndent","AutoIndentSpacings","AutoItalicWords","AutoloadPath","AutoMatch","Automatic","AutomaticImageSize","AutoMultiplicationSymbol","AutoNumberFormatting","AutoOpenNotebooks","AutoOpenPalettes","AutoOperatorRenderings","AutoQuoteCharacters","AutoRefreshed","AutoRemove","AutorunSequencing","AutoScaling","AutoScroll","AutoSpacing","AutoStyleOptions","AutoStyleWords","AutoSubmitting","Axes","AxesEdge","AxesLabel","AxesOrigin","AxesStyle","AxiomaticTheory","Axis","Axis3DBox","Axis3DBoxOptions","AxisBox","AxisBoxOptions","AxisLabel","AxisObject","AxisStyle","BabyMonsterGroupB","Back","BackFaceColor","BackFaceGlowColor","BackFaceOpacity","BackFaceSpecularColor","BackFaceSpecularExponent","BackFaceSurfaceAppearance","BackFaceTexture","Background","BackgroundAppearance","BackgroundTasksSettings","Backslash","Backsubstitution","Backward","Ball","Band","BandpassFilter","BandstopFilter","BarabasiAlbertGraphDistribution","BarChart","BarChart3D","BarcodeImage","BarcodeRecognize","BaringhausHenzeTest","BarLegend","BarlowProschanImportance","BarnesG","BarOrigin","BarSpacing","BartlettHannWindow","BartlettWindow","BaseDecode","BaseEncode","BaseForm","Baseline","BaselinePosition","BaseStyle","BasicRecurrentLayer","BatchNormalizationLayer","BatchSize","BatesDistribution","BattleLemarieWavelet","BayesianMaximization","BayesianMaximizationObject","BayesianMinimization","BayesianMinimizationObject","Because","BeckmannDistribution","Beep","Before","Begin","BeginDialogPacket","BeginPackage","BellB","BellY","Below","BenfordDistribution","BeniniDistribution","BenktanderGibratDistribution","BenktanderWeibullDistribution","BernoulliB","BernoulliDistribution","BernoulliGraphDistribution","BernoulliProcess","BernsteinBasis","BesagL","BesselFilterModel","BesselI","BesselJ","BesselJZero","BesselK","BesselY","BesselYZero","Beta","BetaBinomialDistribution","BetaDistribution","BetaNegativeBinomialDistribution","BetaPrimeDistribution","BetaRegularized","Between","BetweennessCentrality","Beveled","BeveledPolyhedron","BezierCurve","BezierCurve3DBox","BezierCurve3DBoxOptions","BezierCurveBox","BezierCurveBoxOptions","BezierFunction","BilateralFilter","BilateralLaplaceTransform","BilateralZTransform","Binarize","BinaryDeserialize","BinaryDistance","BinaryFormat","BinaryImageQ","BinaryRead","BinaryReadList","BinarySerialize","BinaryWrite","BinCounts","BinLists","BinnedVariogramList","Binomial","BinomialDistribution","BinomialPointProcess","BinomialProcess","BinormalDistribution","BiorthogonalSplineWavelet","BioSequence","BioSequenceBackTranslateList","BioSequenceComplement","BioSequenceInstances","BioSequenceModify","BioSequencePlot","BioSequenceQ","BioSequenceReverseComplement","BioSequenceTranscribe","BioSequenceTranslate","BipartiteGraphQ","BiquadraticFilterModel","BirnbaumImportance","BirnbaumSaundersDistribution","BitAnd","BitClear","BitGet","BitLength","BitNot","BitOr","BitRate","BitSet","BitShiftLeft","BitShiftRight","BitXor","BiweightLocation","BiweightMidvariance","Black","BlackmanHarrisWindow","BlackmanNuttallWindow","BlackmanWindow","Blank","BlankForm","BlankNullSequence","BlankSequence","Blend","Block","BlockchainAddressData","BlockchainBase","BlockchainBlockData","BlockchainContractValue","BlockchainData","BlockchainGet","BlockchainKeyEncode","BlockchainPut","BlockchainTokenData","BlockchainTransaction","BlockchainTransactionData","BlockchainTransactionSign","BlockchainTransactionSubmit","BlockDiagonalMatrix","BlockLowerTriangularMatrix","BlockMap","BlockRandom","BlockUpperTriangularMatrix","BlomqvistBeta","BlomqvistBetaTest","Blue","Blur","Blurring","BodePlot","BohmanWindow","Bold","Bond","BondCount","BondLabels","BondLabelStyle","BondList","BondQ","Bookmarks","Boole","BooleanConsecutiveFunction","BooleanConvert","BooleanCountingFunction","BooleanFunction","BooleanGraph","BooleanMaxterms","BooleanMinimize","BooleanMinterms","BooleanQ","BooleanRegion","Booleans","BooleanStrings","BooleanTable","BooleanVariables","BorderDimensions","BorelTannerDistribution","Bottom","BottomHatTransform","BoundaryDiscretizeGraphics","BoundaryDiscretizeRegion","BoundaryMesh","BoundaryMeshRegion","BoundaryMeshRegionQ","BoundaryStyle","BoundedRegionQ","BoundingRegion","Bounds","Box","BoxBaselineShift","BoxData","BoxDimensions","Boxed","Boxes","BoxForm","BoxFormFormatTypes","BoxFrame","BoxID","BoxMargins","BoxMatrix","BoxObject","BoxRatios","BoxRotation","BoxRotationPoint","BoxStyle","BoxWhiskerChart","Bra","BracketingBar","BraKet","BrayCurtisDistance","BreadthFirstScan","Break","BridgeData","BrightnessEqualize","BroadcastStationData","Brown","BrownForsytheTest","BrownianBridgeProcess","BrowserCategory","BSplineBasis","BSplineCurve","BSplineCurve3DBox","BSplineCurve3DBoxOptions","BSplineCurveBox","BSplineCurveBoxOptions","BSplineFunction","BSplineSurface","BSplineSurface3DBox","BSplineSurface3DBoxOptions","BubbleChart","BubbleChart3D","BubbleScale","BubbleSizes","BuckyballGraph","BuildCompiledComponent","BuildingData","BulletGauge","BusinessDayQ","ButterflyGraph","ButterworthFilterModel","Button","ButtonBar","ButtonBox","ButtonBoxOptions","ButtonCell","ButtonContents","ButtonData","ButtonEvaluator","ButtonExpandable","ButtonFrame","ButtonFunction","ButtonMargins","ButtonMinHeight","ButtonNote","ButtonNotebook","ButtonSource","ButtonStyle","ButtonStyleMenuListing","Byte","ByteArray","ByteArrayFormat","ByteArrayFormatQ","ByteArrayQ","ByteArrayToString","ByteCount","ByteOrdering","C","CachedValue","CacheGraphics","CachePersistence","CalendarConvert","CalendarData","CalendarType","Callout","CalloutMarker","CalloutStyle","CallPacket","CanberraDistance","Cancel","CancelButton","CandlestickChart","CanonicalGraph","CanonicalizePolygon","CanonicalizePolyhedron","CanonicalizeRegion","CanonicalName","CanonicalWarpingCorrespondence","CanonicalWarpingDistance","CantorMesh","CantorStaircase","Canvas","Cap","CapForm","CapitalDifferentialD","Capitalize","CapsuleShape","CaptureRunning","CaputoD","CardinalBSplineBasis","CarlemanLinearize","CarlsonRC","CarlsonRD","CarlsonRE","CarlsonRF","CarlsonRG","CarlsonRJ","CarlsonRK","CarlsonRM","CarmichaelLambda","CaseOrdering","Cases","CaseSensitive","Cashflow","Casoratian","Cast","Catalan","CatalanNumber","Catch","CategoricalDistribution","Catenate","CatenateLayer","CauchyDistribution","CauchyMatrix","CauchyPointProcess","CauchyWindow","CayleyGraph","CDF","CDFDeploy","CDFInformation","CDFWavelet","Ceiling","CelestialSystem","Cell","CellAutoOverwrite","CellBaseline","CellBoundingBox","CellBracketOptions","CellChangeTimes","CellContents","CellContext","CellDingbat","CellDingbatMargin","CellDynamicExpression","CellEditDuplicate","CellElementsBoundingBox","CellElementSpacings","CellEpilog","CellEvaluationDuplicate","CellEvaluationFunction","CellEvaluationLanguage","CellEventActions","CellFrame","CellFrameColor","CellFrameLabelMargins","CellFrameLabels","CellFrameMargins","CellFrameStyle","CellGroup","CellGroupData","CellGrouping","CellGroupingRules","CellHorizontalScrolling","CellID","CellInsertionPointCell","CellLabel","CellLabelAutoDelete","CellLabelMargins","CellLabelPositioning","CellLabelStyle","CellLabelTemplate","CellMargins","CellObject","CellOpen","CellPrint","CellProlog","Cells","CellSize","CellStyle","CellTags","CellTrayPosition","CellTrayWidgets","CellularAutomaton","CensoredDistribution","Censoring","Center","CenterArray","CenterDot","CenteredInterval","CentralFeature","CentralMoment","CentralMomentGeneratingFunction","Cepstrogram","CepstrogramArray","CepstrumArray","CForm","ChampernowneNumber","ChangeOptions","ChannelBase","ChannelBrokerAction","ChannelDatabin","ChannelHistoryLength","ChannelListen","ChannelListener","ChannelListeners","ChannelListenerWait","ChannelObject","ChannelPreSendFunction","ChannelReceiverFunction","ChannelSend","ChannelSubscribers","ChanVeseBinarize","Character","CharacterCounts","CharacterEncoding","CharacterEncodingsPath","CharacteristicFunction","CharacteristicPolynomial","CharacterName","CharacterNormalize","CharacterRange","Characters","ChartBaseStyle","ChartElementData","ChartElementDataFunction","ChartElementFunction","ChartElements","ChartLabels","ChartLayout","ChartLegends","ChartStyle","Chebyshev1FilterModel","Chebyshev2FilterModel","ChebyshevDistance","ChebyshevT","ChebyshevU","Check","CheckAbort","CheckAll","CheckArguments","Checkbox","CheckboxBar","CheckboxBox","CheckboxBoxOptions","ChemicalConvert","ChemicalData","ChemicalFormula","ChemicalInstance","ChemicalReaction","ChessboardDistance","ChiDistribution","ChineseRemainder","ChiSquareDistribution","ChoiceButtons","ChoiceDialog","CholeskyDecomposition","Chop","ChromaticityPlot","ChromaticityPlot3D","ChromaticPolynomial","Circle","CircleBox","CircleDot","CircleMinus","CirclePlus","CirclePoints","CircleThrough","CircleTimes","CirculantGraph","CircularArcThrough","CircularOrthogonalMatrixDistribution","CircularQuaternionMatrixDistribution","CircularRealMatrixDistribution","CircularSymplecticMatrixDistribution","CircularUnitaryMatrixDistribution","Circumsphere","CityData","ClassifierFunction","ClassifierInformation","ClassifierMeasurements","ClassifierMeasurementsObject","Classify","ClassPriors","Clear","ClearAll","ClearAttributes","ClearCookies","ClearPermissions","ClearSystemCache","ClebschGordan","ClickPane","ClickToCopy","ClickToCopyEnabled","Clip","ClipboardNotebook","ClipFill","ClippingStyle","ClipPlanes","ClipPlanesStyle","ClipRange","Clock","ClockGauge","ClockwiseContourIntegral","Close","Closed","CloseKernels","ClosenessCentrality","Closing","ClosingAutoSave","ClosingEvent","CloudAccountData","CloudBase","CloudConnect","CloudConnections","CloudDeploy","CloudDirectory","CloudDisconnect","CloudEvaluate","CloudExport","CloudExpression","CloudExpressions","CloudFunction","CloudGet","CloudImport","CloudLoggingData","CloudObject","CloudObjectInformation","CloudObjectInformationData","CloudObjectNameFormat","CloudObjects","CloudObjectURLType","CloudPublish","CloudPut","CloudRenderingMethod","CloudSave","CloudShare","CloudSubmit","CloudSymbol","CloudUnshare","CloudUserID","ClusterClassify","ClusterDissimilarityFunction","ClusteringComponents","ClusteringMeasurements","ClusteringTree","CMYKColor","Coarse","CodeAssistOptions","Coefficient","CoefficientArrays","CoefficientDomain","CoefficientList","CoefficientRules","CoifletWavelet","Collect","CollinearPoints","Colon","ColonForm","ColorBalance","ColorCombine","ColorConvert","ColorCoverage","ColorData","ColorDataFunction","ColorDetect","ColorDistance","ColorFunction","ColorFunctionBinning","ColorFunctionScaling","Colorize","ColorNegate","ColorOutput","ColorProfileData","ColorQ","ColorQuantize","ColorReplace","ColorRules","ColorSelectorSettings","ColorSeparate","ColorSetter","ColorSetterBox","ColorSetterBoxOptions","ColorSlider","ColorsNear","ColorSpace","ColorToneMapping","Column","ColumnAlignments","ColumnBackgrounds","ColumnForm","ColumnLines","ColumnsEqual","ColumnSpacings","ColumnWidths","CombinatorB","CombinatorC","CombinatorI","CombinatorK","CombinatorS","CombinatorW","CombinatorY","CombinedEntityClass","CombinerFunction","CometData","CommonDefaultFormatTypes","Commonest","CommonestFilter","CommonName","CommonUnits","CommunityBoundaryStyle","CommunityGraphPlot","CommunityLabels","CommunityRegionStyle","CompanyData","CompatibleUnitQ","CompilationOptions","CompilationTarget","Compile","Compiled","CompiledCodeFunction","CompiledComponent","CompiledExpressionDeclaration","CompiledFunction","CompiledLayer","CompilerCallback","CompilerEnvironment","CompilerEnvironmentAppend","CompilerEnvironmentAppendTo","CompilerEnvironmentObject","CompilerOptions","Complement","ComplementedEntityClass","CompleteGraph","CompleteGraphQ","CompleteIntegral","CompleteKaryTree","CompletionsListPacket","Complex","ComplexArrayPlot","ComplexContourPlot","Complexes","ComplexExpand","ComplexInfinity","ComplexityFunction","ComplexListPlot","ComplexPlot","ComplexPlot3D","ComplexRegionPlot","ComplexStreamPlot","ComplexVectorPlot","ComponentMeasurements","ComponentwiseContextMenu","Compose","ComposeList","ComposeSeries","CompositeQ","Composition","CompoundElement","CompoundExpression","CompoundPoissonDistribution","CompoundPoissonProcess","CompoundRenewalProcess","Compress","CompressedData","CompressionLevel","ComputeUncertainty","ConcaveHullMesh","Condition","ConditionalExpression","Conditioned","Cone","ConeBox","ConfidenceLevel","ConfidenceRange","ConfidenceTransform","ConfigurationPath","Confirm","ConfirmAssert","ConfirmBy","ConfirmMatch","ConfirmQuiet","ConformationMethod","ConformAudio","ConformImages","Congruent","ConicGradientFilling","ConicHullRegion","ConicHullRegion3DBox","ConicHullRegion3DBoxOptions","ConicHullRegionBox","ConicHullRegionBoxOptions","ConicOptimization","Conjugate","ConjugateTranspose","Conjunction","Connect","ConnectedComponents","ConnectedGraphComponents","ConnectedGraphQ","ConnectedMeshComponents","ConnectedMoleculeComponents","ConnectedMoleculeQ","ConnectionSettings","ConnectLibraryCallbackFunction","ConnectSystemModelComponents","ConnectSystemModelController","ConnesWindow","ConoverTest","ConservativeConvectionPDETerm","ConsoleMessage","Constant","ConstantArray","ConstantArrayLayer","ConstantImage","ConstantPlusLayer","ConstantRegionQ","Constants","ConstantTimesLayer","ConstellationData","ConstrainedMax","ConstrainedMin","Construct","Containing","ContainsAll","ContainsAny","ContainsExactly","ContainsNone","ContainsOnly","ContentDetectorFunction","ContentFieldOptions","ContentLocationFunction","ContentObject","ContentPadding","ContentsBoundingBox","ContentSelectable","ContentSize","Context","ContextMenu","Contexts","ContextToFileName","Continuation","Continue","ContinuedFraction","ContinuedFractionK","ContinuousAction","ContinuousMarkovProcess","ContinuousTask","ContinuousTimeModelQ","ContinuousWaveletData","ContinuousWaveletTransform","ContourDetect","ContourGraphics","ContourIntegral","ContourLabels","ContourLines","ContourPlot","ContourPlot3D","Contours","ContourShading","ContourSmoothing","ContourStyle","ContraharmonicMean","ContrastiveLossLayer","Control","ControlActive","ControlAlignment","ControlGroupContentsBox","ControllabilityGramian","ControllabilityMatrix","ControllableDecomposition","ControllableModelQ","ControllerDuration","ControllerInformation","ControllerInformationData","ControllerLinking","ControllerManipulate","ControllerMethod","ControllerPath","ControllerState","ControlPlacement","ControlsRendering","ControlType","ConvectionPDETerm","Convergents","ConversionOptions","ConversionRules","ConvertToPostScript","ConvertToPostScriptPacket","ConvexHullMesh","ConvexHullRegion","ConvexOptimization","ConvexPolygonQ","ConvexPolyhedronQ","ConvexRegionQ","ConvolutionLayer","Convolve","ConwayGroupCo1","ConwayGroupCo2","ConwayGroupCo3","CookieFunction","Cookies","CoordinateBoundingBox","CoordinateBoundingBoxArray","CoordinateBounds","CoordinateBoundsArray","CoordinateChartData","CoordinatesToolOptions","CoordinateTransform","CoordinateTransformData","CoplanarPoints","CoprimeQ","Coproduct","CopulaDistribution","Copyable","CopyDatabin","CopyDirectory","CopyFile","CopyFunction","CopyTag","CopyToClipboard","CoreNilpotentDecomposition","CornerFilter","CornerNeighbors","Correlation","CorrelationDistance","CorrelationFunction","CorrelationTest","Cos","Cosh","CoshIntegral","CosineDistance","CosineWindow","CosIntegral","Cot","Coth","CoulombF","CoulombG","CoulombH1","CoulombH2","Count","CountDistinct","CountDistinctBy","CounterAssignments","CounterBox","CounterBoxOptions","CounterClockwiseContourIntegral","CounterEvaluator","CounterFunction","CounterIncrements","CounterStyle","CounterStyleMenuListing","CountRoots","CountryData","Counts","CountsBy","Covariance","CovarianceEstimatorFunction","CovarianceFunction","CoxianDistribution","CoxIngersollRossProcess","CoxModel","CoxModelFit","CramerVonMisesTest","CreateArchive","CreateCellID","CreateChannel","CreateCloudExpression","CreateCompilerEnvironment","CreateDatabin","CreateDataStructure","CreateDataSystemModel","CreateDialog","CreateDirectory","CreateDocument","CreateFile","CreateIntermediateDirectories","CreateLicenseEntitlement","CreateManagedLibraryExpression","CreateNotebook","CreatePacletArchive","CreatePalette","CreatePermissionsGroup","CreateScheduledTask","CreateSearchIndex","CreateSystemModel","CreateTemporary","CreateTypeInstance","CreateUUID","CreateWindow","CriterionFunction","CriticalityFailureImportance","CriticalitySuccessImportance","CriticalSection","Cross","CrossEntropyLossLayer","CrossingCount","CrossingDetect","CrossingPolygon","CrossMatrix","Csc","Csch","CSGRegion","CSGRegionQ","CSGRegionTree","CTCLossLayer","Cube","CubeRoot","Cubics","Cuboid","CuboidBox","CuboidBoxOptions","Cumulant","CumulantGeneratingFunction","CumulativeFeatureImpactPlot","Cup","CupCap","Curl","CurlyDoubleQuote","CurlyQuote","CurrencyConvert","CurrentDate","CurrentImage","CurrentNotebookImage","CurrentScreenImage","CurrentValue","Curry","CurryApplied","CurvatureFlowFilter","CurveClosed","Cyan","CycleGraph","CycleIndexPolynomial","Cycles","CyclicGroup","Cyclotomic","Cylinder","CylinderBox","CylinderBoxOptions","CylindricalDecomposition","CylindricalDecompositionFunction","D","DagumDistribution","DamData","DamerauLevenshteinDistance","DampingFactor","Darker","Dashed","Dashing","DatabaseConnect","DatabaseDisconnect","DatabaseReference","Databin","DatabinAdd","DatabinRemove","Databins","DatabinSubmit","DatabinUpload","DataCompression","DataDistribution","DataRange","DataReversed","Dataset","DatasetDisplayPanel","DatasetTheme","DataStructure","DataStructureQ","Date","DateBounds","Dated","DateDelimiters","DateDifference","DatedUnit","DateFormat","DateFunction","DateGranularity","DateHistogram","DateInterval","DateList","DateListLogPlot","DateListPlot","DateListStepPlot","DateObject","DateObjectQ","DateOverlapsQ","DatePattern","DatePlus","DateRange","DateReduction","DateScale","DateSelect","DateString","DateTicksFormat","DateValue","DateWithinQ","DaubechiesWavelet","DavisDistribution","DawsonF","DayCount","DayCountConvention","DayHemisphere","DaylightQ","DayMatchQ","DayName","DayNightTerminator","DayPlus","DayRange","DayRound","DeBruijnGraph","DeBruijnSequence","Debug","DebugTag","Decapitalize","Decimal","DecimalForm","DeclareCompiledComponent","DeclareKnownSymbols","DeclarePackage","Decompose","DeconvolutionLayer","Decrement","Decrypt","DecryptFile","DedekindEta","DeepSpaceProbeData","Default","Default2DTool","Default3DTool","DefaultAttachedCellStyle","DefaultAxesStyle","DefaultBaseStyle","DefaultBoxStyle","DefaultButton","DefaultColor","DefaultControlPlacement","DefaultDockedCellStyle","DefaultDuplicateCellStyle","DefaultDuration","DefaultElement","DefaultFaceGridsStyle","DefaultFieldHintStyle","DefaultFont","DefaultFontProperties","DefaultFormatType","DefaultFrameStyle","DefaultFrameTicksStyle","DefaultGridLinesStyle","DefaultInlineFormatType","DefaultInputFormatType","DefaultLabelStyle","DefaultMenuStyle","DefaultNaturalLanguage","DefaultNewCellStyle","DefaultNewInlineCellStyle","DefaultNotebook","DefaultOptions","DefaultOutputFormatType","DefaultPrintPrecision","DefaultStyle","DefaultStyleDefinitions","DefaultTextFormatType","DefaultTextInlineFormatType","DefaultTicksStyle","DefaultTooltipStyle","DefaultValue","DefaultValues","Defer","DefineExternal","DefineInputStreamMethod","DefineOutputStreamMethod","DefineResourceFunction","Definition","Degree","DegreeCentrality","DegreeGraphDistribution","DegreeLexicographic","DegreeReverseLexicographic","DEigensystem","DEigenvalues","Deinitialization","Del","DelaunayMesh","Delayed","Deletable","Delete","DeleteAdjacentDuplicates","DeleteAnomalies","DeleteBorderComponents","DeleteCases","DeleteChannel","DeleteCloudExpression","DeleteContents","DeleteDirectory","DeleteDuplicates","DeleteDuplicatesBy","DeleteElements","DeleteFile","DeleteMissing","DeleteObject","DeletePermissionsKey","DeleteSearchIndex","DeleteSmallComponents","DeleteStopwords","DeleteWithContents","DeletionWarning","DelimitedArray","DelimitedSequence","Delimiter","DelimiterAutoMatching","DelimiterFlashTime","DelimiterMatching","Delimiters","DeliveryFunction","Dendrogram","Denominator","DensityGraphics","DensityHistogram","DensityPlot","DensityPlot3D","DependentVariables","Deploy","Deployed","Depth","DepthFirstScan","Derivative","DerivativeFilter","DerivativePDETerm","DerivedKey","DescriptorStateSpace","DesignMatrix","DestroyAfterEvaluation","Det","DeviceClose","DeviceConfigure","DeviceExecute","DeviceExecuteAsynchronous","DeviceObject","DeviceOpen","DeviceOpenQ","DeviceRead","DeviceReadBuffer","DeviceReadLatest","DeviceReadList","DeviceReadTimeSeries","Devices","DeviceStreams","DeviceWrite","DeviceWriteBuffer","DGaussianWavelet","DiacriticalPositioning","Diagonal","DiagonalizableMatrixQ","DiagonalMatrix","DiagonalMatrixQ","Dialog","DialogIndent","DialogInput","DialogLevel","DialogNotebook","DialogProlog","DialogReturn","DialogSymbols","Diamond","DiamondMatrix","DiceDissimilarity","DictionaryLookup","DictionaryWordQ","DifferenceDelta","DifferenceOrder","DifferenceQuotient","DifferenceRoot","DifferenceRootReduce","Differences","DifferentialD","DifferentialRoot","DifferentialRootReduce","DifferentiatorFilter","DiffusionPDETerm","DiggleGatesPointProcess","DiggleGrattonPointProcess","DigitalSignature","DigitBlock","DigitBlockMinimum","DigitCharacter","DigitCount","DigitQ","DihedralAngle","DihedralGroup","Dilation","DimensionalCombinations","DimensionalMeshComponents","DimensionReduce","DimensionReducerFunction","DimensionReduction","Dimensions","DiracComb","DiracDelta","DirectedEdge","DirectedEdges","DirectedGraph","DirectedGraphQ","DirectedInfinity","Direction","DirectionalLight","Directive","Directory","DirectoryName","DirectoryQ","DirectoryStack","DirichletBeta","DirichletCharacter","DirichletCondition","DirichletConvolve","DirichletDistribution","DirichletEta","DirichletL","DirichletLambda","DirichletTransform","DirichletWindow","DisableConsolePrintPacket","DisableFormatting","DiscreteAsymptotic","DiscreteChirpZTransform","DiscreteConvolve","DiscreteDelta","DiscreteHadamardTransform","DiscreteIndicator","DiscreteInputOutputModel","DiscreteLimit","DiscreteLQEstimatorGains","DiscreteLQRegulatorGains","DiscreteLyapunovSolve","DiscreteMarkovProcess","DiscreteMaxLimit","DiscreteMinLimit","DiscretePlot","DiscretePlot3D","DiscreteRatio","DiscreteRiccatiSolve","DiscreteShift","DiscreteTimeModelQ","DiscreteUniformDistribution","DiscreteVariables","DiscreteWaveletData","DiscreteWaveletPacketTransform","DiscreteWaveletTransform","DiscretizeGraphics","DiscretizeRegion","Discriminant","DisjointQ","Disjunction","Disk","DiskBox","DiskBoxOptions","DiskMatrix","DiskSegment","Dispatch","DispatchQ","DispersionEstimatorFunction","Display","DisplayAllSteps","DisplayEndPacket","DisplayForm","DisplayFunction","DisplayPacket","DisplayRules","DisplayString","DisplayTemporary","DisplayWith","DisplayWithRef","DisplayWithVariable","DistanceFunction","DistanceMatrix","DistanceTransform","Distribute","Distributed","DistributedContexts","DistributeDefinitions","DistributionChart","DistributionDomain","DistributionFitTest","DistributionParameterAssumptions","DistributionParameterQ","Dithering","Div","Divergence","Divide","DivideBy","Dividers","DivideSides","Divisible","Divisors","DivisorSigma","DivisorSum","DMSList","DMSString","Do","DockedCell","DockedCells","DocumentGenerator","DocumentGeneratorInformation","DocumentGeneratorInformationData","DocumentGenerators","DocumentNotebook","DocumentWeightingRules","Dodecahedron","DomainRegistrationInformation","DominantColors","DominatorTreeGraph","DominatorVertexList","DOSTextFormat","Dot","DotDashed","DotEqual","DotLayer","DotPlusLayer","Dotted","DoubleBracketingBar","DoubleContourIntegral","DoubleDownArrow","DoubleLeftArrow","DoubleLeftRightArrow","DoubleLeftTee","DoubleLongLeftArrow","DoubleLongLeftRightArrow","DoubleLongRightArrow","DoubleRightArrow","DoubleRightTee","DoubleUpArrow","DoubleUpDownArrow","DoubleVerticalBar","DoublyInfinite","Down","DownArrow","DownArrowBar","DownArrowUpArrow","DownLeftRightVector","DownLeftTeeVector","DownLeftVector","DownLeftVectorBar","DownRightTeeVector","DownRightVector","DownRightVectorBar","Downsample","DownTee","DownTeeArrow","DownValues","DownValuesFunction","DragAndDrop","DrawBackFaces","DrawEdges","DrawFrontFaces","DrawHighlighted","DrazinInverse","Drop","DropoutLayer","DropShadowing","DSolve","DSolveChangeVariables","DSolveValue","Dt","DualLinearProgramming","DualPlanarGraph","DualPolyhedron","DualSystemsModel","DumpGet","DumpSave","DuplicateFreeQ","Duration","Dynamic","DynamicBox","DynamicBoxOptions","DynamicEvaluationTimeout","DynamicGeoGraphics","DynamicImage","DynamicLocation","DynamicModule","DynamicModuleBox","DynamicModuleBoxOptions","DynamicModuleParent","DynamicModuleValues","DynamicName","DynamicNamespace","DynamicReference","DynamicSetting","DynamicUpdating","DynamicWrapper","DynamicWrapperBox","DynamicWrapperBoxOptions","E","EarthImpactData","EarthquakeData","EccentricityCentrality","Echo","EchoEvaluation","EchoFunction","EchoLabel","EchoTiming","EclipseType","EdgeAdd","EdgeBetweennessCentrality","EdgeCapacity","EdgeCapForm","EdgeChromaticNumber","EdgeColor","EdgeConnectivity","EdgeContract","EdgeCost","EdgeCount","EdgeCoverQ","EdgeCycleMatrix","EdgeDashing","EdgeDelete","EdgeDetect","EdgeForm","EdgeIndex","EdgeJoinForm","EdgeLabeling","EdgeLabels","EdgeLabelStyle","EdgeList","EdgeOpacity","EdgeQ","EdgeRenderingFunction","EdgeRules","EdgeShapeFunction","EdgeStyle","EdgeTaggedGraph","EdgeTaggedGraphQ","EdgeTags","EdgeThickness","EdgeTransitiveGraphQ","EdgeValueRange","EdgeValueSizes","EdgeWeight","EdgeWeightedGraphQ","Editable","EditButtonSettings","EditCellTagsSettings","EditDistance","EffectiveInterest","Eigensystem","Eigenvalues","EigenvectorCentrality","Eigenvectors","Element","ElementData","ElementwiseLayer","ElidedForms","Eliminate","EliminationOrder","Ellipsoid","EllipticE","EllipticExp","EllipticExpPrime","EllipticF","EllipticFilterModel","EllipticK","EllipticLog","EllipticNomeQ","EllipticPi","EllipticReducedHalfPeriods","EllipticTheta","EllipticThetaPrime","EmbedCode","EmbeddedHTML","EmbeddedService","EmbeddedSQLEntityClass","EmbeddedSQLExpression","EmbeddingLayer","EmbeddingObject","EmitSound","EmphasizeSyntaxErrors","EmpiricalDistribution","Empty","EmptyGraphQ","EmptyRegion","EmptySpaceF","EnableConsolePrintPacket","Enabled","Enclose","Encode","Encrypt","EncryptedObject","EncryptFile","End","EndAdd","EndDialogPacket","EndOfBuffer","EndOfFile","EndOfLine","EndOfString","EndPackage","EngineEnvironment","EngineeringForm","Enter","EnterExpressionPacket","EnterTextPacket","Entity","EntityClass","EntityClassList","EntityCopies","EntityFunction","EntityGroup","EntityInstance","EntityList","EntityPrefetch","EntityProperties","EntityProperty","EntityPropertyClass","EntityRegister","EntityStore","EntityStores","EntityTypeName","EntityUnregister","EntityValue","Entropy","EntropyFilter","Environment","Epilog","EpilogFunction","Equal","EqualColumns","EqualRows","EqualTilde","EqualTo","EquatedTo","Equilibrium","EquirippleFilterKernel","Equivalent","Erf","Erfc","Erfi","ErlangB","ErlangC","ErlangDistribution","Erosion","ErrorBox","ErrorBoxOptions","ErrorNorm","ErrorPacket","ErrorsDialogSettings","EscapeRadius","EstimatedBackground","EstimatedDistribution","EstimatedPointNormals","EstimatedPointProcess","EstimatedProcess","EstimatedVariogramModel","EstimatorGains","EstimatorRegulator","EuclideanDistance","EulerAngles","EulerCharacteristic","EulerE","EulerGamma","EulerianGraphQ","EulerMatrix","EulerPhi","Evaluatable","Evaluate","Evaluated","EvaluatePacket","EvaluateScheduledTask","EvaluationBox","EvaluationCell","EvaluationCompletionAction","EvaluationData","EvaluationElements","EvaluationEnvironment","EvaluationMode","EvaluationMonitor","EvaluationNotebook","EvaluationObject","EvaluationOrder","EvaluationPrivileges","EvaluationRateLimit","Evaluator","EvaluatorNames","EvenQ","EventData","EventEvaluator","EventHandler","EventHandlerTag","EventLabels","EventSeries","ExactBlackmanWindow","ExactNumberQ","ExactRootIsolation","ExampleData","Except","ExcludedContexts","ExcludedForms","ExcludedLines","ExcludedPhysicalQuantities","ExcludePods","Exclusions","ExclusionsStyle","Exists","Exit","ExitDialog","ExoplanetData","Exp","Expand","ExpandAll","ExpandDenominator","ExpandFileName","ExpandNumerator","Expectation","ExpectationE","ExpectedValue","ExpGammaDistribution","ExpIntegralE","ExpIntegralEi","ExpirationDate","Exponent","ExponentFunction","ExponentialDistribution","ExponentialFamily","ExponentialGeneratingFunction","ExponentialMovingAverage","ExponentialPowerDistribution","ExponentPosition","ExponentStep","Export","ExportAutoReplacements","ExportByteArray","ExportForm","ExportPacket","ExportString","Expression","ExpressionCell","ExpressionGraph","ExpressionPacket","ExpressionTree","ExpressionUUID","ExpToTrig","ExtendedEntityClass","ExtendedGCD","Extension","ExtentElementFunction","ExtentMarkers","ExtentSize","ExternalBundle","ExternalCall","ExternalDataCharacterEncoding","ExternalEvaluate","ExternalFunction","ExternalFunctionName","ExternalIdentifier","ExternalObject","ExternalOptions","ExternalSessionObject","ExternalSessions","ExternalStorageBase","ExternalStorageDownload","ExternalStorageGet","ExternalStorageObject","ExternalStoragePut","ExternalStorageUpload","ExternalTypeSignature","ExternalValue","Extract","ExtractArchive","ExtractLayer","ExtractPacletArchive","ExtremeValueDistribution","FaceAlign","FaceForm","FaceGrids","FaceGridsStyle","FaceRecognize","FacialFeatures","Factor","FactorComplete","Factorial","Factorial2","FactorialMoment","FactorialMomentGeneratingFunction","FactorialPower","FactorInteger","FactorList","FactorSquareFree","FactorSquareFreeList","FactorTerms","FactorTermsList","Fail","Failure","FailureAction","FailureDistribution","FailureQ","False","FareySequence","FARIMAProcess","FeatureDistance","FeatureExtract","FeatureExtraction","FeatureExtractor","FeatureExtractorFunction","FeatureImpactPlot","FeatureNames","FeatureNearest","FeatureSpacePlot","FeatureSpacePlot3D","FeatureTypes","FeatureValueDependencyPlot","FeatureValueImpactPlot","FEDisableConsolePrintPacket","FeedbackLinearize","FeedbackSector","FeedbackSectorStyle","FeedbackType","FEEnableConsolePrintPacket","FetalGrowthData","Fibonacci","Fibonorial","FieldCompletionFunction","FieldHint","FieldHintStyle","FieldMasked","FieldSize","File","FileBaseName","FileByteCount","FileConvert","FileDate","FileExistsQ","FileExtension","FileFormat","FileFormatProperties","FileFormatQ","FileHandler","FileHash","FileInformation","FileName","FileNameDepth","FileNameDialogSettings","FileNameDrop","FileNameForms","FileNameJoin","FileNames","FileNameSetter","FileNameSplit","FileNameTake","FileNameToFormatList","FilePrint","FileSize","FileSystemMap","FileSystemScan","FileSystemTree","FileTemplate","FileTemplateApply","FileType","FilledCurve","FilledCurveBox","FilledCurveBoxOptions","FilledTorus","FillForm","Filling","FillingStyle","FillingTransform","FilteredEntityClass","FilterRules","FinancialBond","FinancialData","FinancialDerivative","FinancialIndicator","Find","FindAnomalies","FindArgMax","FindArgMin","FindChannels","FindClique","FindClusters","FindCookies","FindCurvePath","FindCycle","FindDevices","FindDistribution","FindDistributionParameters","FindDivisions","FindEdgeColoring","FindEdgeCover","FindEdgeCut","FindEdgeIndependentPaths","FindEquationalProof","FindEulerianCycle","FindExternalEvaluators","FindFaces","FindFile","FindFit","FindFormula","FindFundamentalCycles","FindGeneratingFunction","FindGeoLocation","FindGeometricConjectures","FindGeometricTransform","FindGraphCommunities","FindGraphIsomorphism","FindGraphPartition","FindHamiltonianCycle","FindHamiltonianPath","FindHiddenMarkovStates","FindImageText","FindIndependentEdgeSet","FindIndependentVertexSet","FindInstance","FindIntegerNullVector","FindIsomers","FindIsomorphicSubgraph","FindKClan","FindKClique","FindKClub","FindKPlex","FindLibrary","FindLinearRecurrence","FindList","FindMatchingColor","FindMaximum","FindMaximumCut","FindMaximumFlow","FindMaxValue","FindMeshDefects","FindMinimum","FindMinimumCostFlow","FindMinimumCut","FindMinValue","FindMoleculeSubstructure","FindPath","FindPeaks","FindPermutation","FindPlanarColoring","FindPointProcessParameters","FindPostmanTour","FindProcessParameters","FindRegionTransform","FindRepeat","FindRoot","FindSequenceFunction","FindSettings","FindShortestPath","FindShortestTour","FindSpanningTree","FindSubgraphIsomorphism","FindSystemModelEquilibrium","FindTextualAnswer","FindThreshold","FindTransientRepeat","FindVertexColoring","FindVertexCover","FindVertexCut","FindVertexIndependentPaths","Fine","FinishDynamic","FiniteAbelianGroupCount","FiniteGroupCount","FiniteGroupData","First","FirstCase","FirstPassageTimeDistribution","FirstPosition","FischerGroupFi22","FischerGroupFi23","FischerGroupFi24Prime","FisherHypergeometricDistribution","FisherRatioTest","FisherZDistribution","Fit","FitAll","FitRegularization","FittedModel","FixedOrder","FixedPoint","FixedPointList","FlashSelection","Flat","FlatShading","Flatten","FlattenAt","FlattenLayer","FlatTopWindow","FlightData","FlipView","Floor","FlowPolynomial","Fold","FoldList","FoldPair","FoldPairList","FoldWhile","FoldWhileList","FollowRedirects","Font","FontColor","FontFamily","FontForm","FontName","FontOpacity","FontPostScriptName","FontProperties","FontReencoding","FontSize","FontSlant","FontSubstitutions","FontTracking","FontVariations","FontWeight","For","ForAll","ForAllType","ForceVersionInstall","Format","FormatRules","FormatType","FormatTypeAutoConvert","FormatValues","FormBox","FormBoxOptions","FormControl","FormFunction","FormLayoutFunction","FormObject","FormPage","FormProtectionMethod","FormTheme","FormulaData","FormulaLookup","FortranForm","Forward","ForwardBackward","ForwardCloudCredentials","Fourier","FourierCoefficient","FourierCosCoefficient","FourierCosSeries","FourierCosTransform","FourierDCT","FourierDCTFilter","FourierDCTMatrix","FourierDST","FourierDSTMatrix","FourierMatrix","FourierParameters","FourierSequenceTransform","FourierSeries","FourierSinCoefficient","FourierSinSeries","FourierSinTransform","FourierTransform","FourierTrigSeries","FoxH","FoxHReduce","FractionalBrownianMotionProcess","FractionalD","FractionalGaussianNoiseProcess","FractionalPart","FractionBox","FractionBoxOptions","FractionLine","Frame","FrameBox","FrameBoxOptions","Framed","FrameInset","FrameLabel","Frameless","FrameListVideo","FrameMargins","FrameRate","FrameStyle","FrameTicks","FrameTicksStyle","FRatioDistribution","FrechetDistribution","FreeQ","FrenetSerretSystem","FrequencySamplingFilterKernel","FresnelC","FresnelF","FresnelG","FresnelS","Friday","FrobeniusNumber","FrobeniusSolve","FromAbsoluteTime","FromCharacterCode","FromCoefficientRules","FromContinuedFraction","FromDate","FromDateString","FromDigits","FromDMS","FromEntity","FromJulianDate","FromLetterNumber","FromPolarCoordinates","FromRawPointer","FromRomanNumeral","FromSphericalCoordinates","FromUnixTime","Front","FrontEndDynamicExpression","FrontEndEventActions","FrontEndExecute","FrontEndObject","FrontEndResource","FrontEndResourceString","FrontEndStackSize","FrontEndToken","FrontEndTokenExecute","FrontEndValueCache","FrontEndVersion","FrontFaceColor","FrontFaceGlowColor","FrontFaceOpacity","FrontFaceSpecularColor","FrontFaceSpecularExponent","FrontFaceSurfaceAppearance","FrontFaceTexture","Full","FullAxes","FullDefinition","FullForm","FullGraphics","FullInformationOutputRegulator","FullOptions","FullRegion","FullSimplify","Function","FunctionAnalytic","FunctionBijective","FunctionCompile","FunctionCompileExport","FunctionCompileExportByteArray","FunctionCompileExportLibrary","FunctionCompileExportString","FunctionContinuous","FunctionConvexity","FunctionDeclaration","FunctionDiscontinuities","FunctionDomain","FunctionExpand","FunctionInjective","FunctionInterpolation","FunctionLayer","FunctionMeromorphic","FunctionMonotonicity","FunctionPeriod","FunctionPoles","FunctionRange","FunctionSign","FunctionSingularities","FunctionSpace","FunctionSurjective","FussellVeselyImportance","GaborFilter","GaborMatrix","GaborWavelet","GainMargins","GainPhaseMargins","GalaxyData","GalleryView","Gamma","GammaDistribution","GammaRegularized","GapPenalty","GARCHProcess","GatedRecurrentLayer","Gather","GatherBy","GaugeFaceElementFunction","GaugeFaceStyle","GaugeFrameElementFunction","GaugeFrameSize","GaugeFrameStyle","GaugeLabels","GaugeMarkers","GaugeStyle","GaussianFilter","GaussianIntegers","GaussianMatrix","GaussianOrthogonalMatrixDistribution","GaussianSymplecticMatrixDistribution","GaussianUnitaryMatrixDistribution","GaussianWindow","GCD","GegenbauerC","General","GeneralizedLinearModelFit","GenerateAsymmetricKeyPair","GenerateConditions","GeneratedAssetFormat","GeneratedAssetLocation","GeneratedCell","GeneratedCellStyles","GeneratedDocumentBinding","GenerateDerivedKey","GenerateDigitalSignature","GenerateDocument","GeneratedParameters","GeneratedQuantityMagnitudes","GenerateFileSignature","GenerateHTTPResponse","GenerateSecuredAuthenticationKey","GenerateSymmetricKey","GeneratingFunction","GeneratorDescription","GeneratorHistoryLength","GeneratorOutputType","Generic","GenericCylindricalDecomposition","GenomeData","GenomeLookup","GeoAntipode","GeoArea","GeoArraySize","GeoBackground","GeoBoundary","GeoBoundingBox","GeoBounds","GeoBoundsRegion","GeoBoundsRegionBoundary","GeoBubbleChart","GeoCenter","GeoCircle","GeoContourPlot","GeoDensityPlot","GeodesicClosing","GeodesicDilation","GeodesicErosion","GeodesicOpening","GeodesicPolyhedron","GeoDestination","GeodesyData","GeoDirection","GeoDisk","GeoDisplacement","GeoDistance","GeoDistanceList","GeoElevationData","GeoEntities","GeoGraphics","GeoGraphPlot","GeoGraphValuePlot","GeogravityModelData","GeoGridDirectionDifference","GeoGridLines","GeoGridLinesStyle","GeoGridPosition","GeoGridRange","GeoGridRangePadding","GeoGridUnitArea","GeoGridUnitDistance","GeoGridVector","GeoGroup","GeoHemisphere","GeoHemisphereBoundary","GeoHistogram","GeoIdentify","GeoImage","GeoLabels","GeoLength","GeoListPlot","GeoLocation","GeologicalPeriodData","GeomagneticModelData","GeoMarker","GeometricAssertion","GeometricBrownianMotionProcess","GeometricDistribution","GeometricMean","GeometricMeanFilter","GeometricOptimization","GeometricScene","GeometricStep","GeometricStylingRules","GeometricTest","GeometricTransformation","GeometricTransformation3DBox","GeometricTransformation3DBoxOptions","GeometricTransformationBox","GeometricTransformationBoxOptions","GeoModel","GeoNearest","GeoOrientationData","GeoPath","GeoPolygon","GeoPosition","GeoPositionENU","GeoPositionXYZ","GeoProjection","GeoProjectionData","GeoRange","GeoRangePadding","GeoRegionValuePlot","GeoResolution","GeoScaleBar","GeoServer","GeoSmoothHistogram","GeoStreamPlot","GeoStyling","GeoStylingImageFunction","GeoVariant","GeoVector","GeoVectorENU","GeoVectorPlot","GeoVectorXYZ","GeoVisibleRegion","GeoVisibleRegionBoundary","GeoWithinQ","GeoZoomLevel","GestureHandler","GestureHandlerTag","Get","GetContext","GetEnvironment","GetFileName","GetLinebreakInformationPacket","GibbsPointProcess","Glaisher","GlobalClusteringCoefficient","GlobalPreferences","GlobalSession","Glow","GoldenAngle","GoldenRatio","GompertzMakehamDistribution","GoochShading","GoodmanKruskalGamma","GoodmanKruskalGammaTest","Goto","GouraudShading","Grad","Gradient","GradientFilter","GradientFittedMesh","GradientOrientationFilter","GrammarApply","GrammarRules","GrammarToken","Graph","Graph3D","GraphAssortativity","GraphAutomorphismGroup","GraphCenter","GraphComplement","GraphData","GraphDensity","GraphDiameter","GraphDifference","GraphDisjointUnion","GraphDistance","GraphDistanceMatrix","GraphEmbedding","GraphHighlight","GraphHighlightStyle","GraphHub","Graphics","Graphics3D","Graphics3DBox","Graphics3DBoxOptions","GraphicsArray","GraphicsBaseline","GraphicsBox","GraphicsBoxOptions","GraphicsColor","GraphicsColumn","GraphicsComplex","GraphicsComplex3DBox","GraphicsComplex3DBoxOptions","GraphicsComplexBox","GraphicsComplexBoxOptions","GraphicsContents","GraphicsData","GraphicsGrid","GraphicsGridBox","GraphicsGroup","GraphicsGroup3DBox","GraphicsGroup3DBoxOptions","GraphicsGroupBox","GraphicsGroupBoxOptions","GraphicsGrouping","GraphicsHighlightColor","GraphicsRow","GraphicsSpacing","GraphicsStyle","GraphIntersection","GraphJoin","GraphLayerLabels","GraphLayers","GraphLayerStyle","GraphLayout","GraphLinkEfficiency","GraphPeriphery","GraphPlot","GraphPlot3D","GraphPower","GraphProduct","GraphPropertyDistribution","GraphQ","GraphRadius","GraphReciprocity","GraphRoot","GraphStyle","GraphSum","GraphTree","GraphUnion","Gray","GrayLevel","Greater","GreaterEqual","GreaterEqualLess","GreaterEqualThan","GreaterFullEqual","GreaterGreater","GreaterLess","GreaterSlantEqual","GreaterThan","GreaterTilde","GreekStyle","Green","GreenFunction","Grid","GridBaseline","GridBox","GridBoxAlignment","GridBoxBackground","GridBoxDividers","GridBoxFrame","GridBoxItemSize","GridBoxItemStyle","GridBoxOptions","GridBoxSpacings","GridCreationSettings","GridDefaultElement","GridElementStyleOptions","GridFrame","GridFrameMargins","GridGraph","GridLines","GridLinesStyle","GridVideo","GroebnerBasis","GroupActionBase","GroupBy","GroupCentralizer","GroupElementFromWord","GroupElementPosition","GroupElementQ","GroupElements","GroupElementToWord","GroupGenerators","Groupings","GroupMultiplicationTable","GroupOpenerColor","GroupOpenerInsideFrame","GroupOrbits","GroupOrder","GroupPageBreakWithin","GroupSetwiseStabilizer","GroupStabilizer","GroupStabilizerChain","GroupTogetherGrouping","GroupTogetherNestedGrouping","GrowCutComponents","Gudermannian","GuidedFilter","GumbelDistribution","HaarWavelet","HadamardMatrix","HalfLine","HalfNormalDistribution","HalfPlane","HalfSpace","HalftoneShading","HamiltonianGraphQ","HammingDistance","HammingWindow","HandlerFunctions","HandlerFunctionsKeys","HankelH1","HankelH2","HankelMatrix","HankelTransform","HannPoissonWindow","HannWindow","HaradaNortonGroupHN","HararyGraph","HardcorePointProcess","HarmonicMean","HarmonicMeanFilter","HarmonicNumber","Hash","HatchFilling","HatchShading","Haversine","HazardFunction","Head","HeadCompose","HeaderAlignment","HeaderBackground","HeaderDisplayFunction","HeaderLines","Headers","HeaderSize","HeaderStyle","Heads","HeatFluxValue","HeatInsulationValue","HeatOutflowValue","HeatRadiationValue","HeatSymmetryValue","HeatTemperatureCondition","HeatTransferPDEComponent","HeatTransferValue","HeavisideLambda","HeavisidePi","HeavisideTheta","HeldGroupHe","HeldPart","HelmholtzPDEComponent","HelpBrowserLookup","HelpBrowserNotebook","HelpBrowserSettings","HelpViewerSettings","Here","HermiteDecomposition","HermiteH","Hermitian","HermitianMatrixQ","HessenbergDecomposition","Hessian","HeunB","HeunBPrime","HeunC","HeunCPrime","HeunD","HeunDPrime","HeunG","HeunGPrime","HeunT","HeunTPrime","HexadecimalCharacter","Hexahedron","HexahedronBox","HexahedronBoxOptions","HiddenItems","HiddenMarkovProcess","HiddenSurface","Highlighted","HighlightGraph","HighlightImage","HighlightMesh","HighlightString","HighpassFilter","HigmanSimsGroupHS","HilbertCurve","HilbertFilter","HilbertMatrix","Histogram","Histogram3D","HistogramDistribution","HistogramList","HistogramPointDensity","HistogramTransform","HistogramTransformInterpolation","HistoricalPeriodData","HitMissTransform","HITSCentrality","HjorthDistribution","HodgeDual","HoeffdingD","HoeffdingDTest","Hold","HoldAll","HoldAllComplete","HoldComplete","HoldFirst","HoldForm","HoldPattern","HoldRest","HolidayCalendar","HomeDirectory","HomePage","Horizontal","HorizontalForm","HorizontalGauge","HorizontalScrollPosition","HornerForm","HostLookup","HotellingTSquareDistribution","HoytDistribution","HTMLSave","HTTPErrorResponse","HTTPRedirect","HTTPRequest","HTTPRequestData","HTTPResponse","Hue","HumanGrowthData","HumpDownHump","HumpEqual","HurwitzLerchPhi","HurwitzZeta","HyperbolicDistribution","HypercubeGraph","HyperexponentialDistribution","Hyperfactorial","Hypergeometric0F1","Hypergeometric0F1Regularized","Hypergeometric1F1","Hypergeometric1F1Regularized","Hypergeometric2F1","Hypergeometric2F1Regularized","HypergeometricDistribution","HypergeometricPFQ","HypergeometricPFQRegularized","HypergeometricU","Hyperlink","HyperlinkAction","HyperlinkCreationSettings","Hyperplane","Hyphenation","HyphenationOptions","HypoexponentialDistribution","HypothesisTestData","I","IconData","Iconize","IconizedObject","IconRules","Icosahedron","Identity","IdentityMatrix","If","IfCompiled","IgnoreCase","IgnoreDiacritics","IgnoreIsotopes","IgnorePunctuation","IgnoreSpellCheck","IgnoreStereochemistry","IgnoringInactive","Im","Image","Image3D","Image3DProjection","Image3DSlices","ImageAccumulate","ImageAdd","ImageAdjust","ImageAlign","ImageApply","ImageApplyIndexed","ImageAspectRatio","ImageAssemble","ImageAugmentationLayer","ImageBoundingBoxes","ImageCache","ImageCacheValid","ImageCapture","ImageCaptureFunction","ImageCases","ImageChannels","ImageClip","ImageCollage","ImageColorSpace","ImageCompose","ImageContainsQ","ImageContents","ImageConvolve","ImageCooccurrence","ImageCorners","ImageCorrelate","ImageCorrespondingPoints","ImageCrop","ImageData","ImageDeconvolve","ImageDemosaic","ImageDifference","ImageDimensions","ImageDisplacements","ImageDistance","ImageEditMode","ImageEffect","ImageExposureCombine","ImageFeatureTrack","ImageFileApply","ImageFileFilter","ImageFileScan","ImageFilter","ImageFocusCombine","ImageForestingComponents","ImageFormattingWidth","ImageForwardTransformation","ImageGraphics","ImageHistogram","ImageIdentify","ImageInstanceQ","ImageKeypoints","ImageLabels","ImageLegends","ImageLevels","ImageLines","ImageMargins","ImageMarker","ImageMarkers","ImageMeasurements","ImageMesh","ImageMultiply","ImageOffset","ImagePad","ImagePadding","ImagePartition","ImagePeriodogram","ImagePerspectiveTransformation","ImagePosition","ImagePreviewFunction","ImagePyramid","ImagePyramidApply","ImageQ","ImageRangeCache","ImageRecolor","ImageReflect","ImageRegion","ImageResize","ImageResolution","ImageRestyle","ImageRotate","ImageRotated","ImageSaliencyFilter","ImageScaled","ImageScan","ImageSize","ImageSizeAction","ImageSizeCache","ImageSizeMultipliers","ImageSizeRaw","ImageStitch","ImageSubtract","ImageTake","ImageTransformation","ImageTrim","ImageType","ImageValue","ImageValuePositions","ImageVectorscopePlot","ImageWaveformPlot","ImagingDevice","ImplicitD","ImplicitRegion","Implies","Import","ImportAutoReplacements","ImportByteArray","ImportedObject","ImportOptions","ImportString","ImprovementImportance","In","Inactivate","Inactive","InactiveStyle","IncidenceGraph","IncidenceList","IncidenceMatrix","IncludeAromaticBonds","IncludeConstantBasis","IncludedContexts","IncludeDefinitions","IncludeDirectories","IncludeFileExtension","IncludeGeneratorTasks","IncludeHydrogens","IncludeInflections","IncludeMetaInformation","IncludePods","IncludeQuantities","IncludeRelatedTables","IncludeSingularSolutions","IncludeSingularTerm","IncludeWindowTimes","Increment","IndefiniteMatrixQ","Indent","IndentingNewlineSpacings","IndentMaxFraction","IndependenceTest","IndependentEdgeSetQ","IndependentPhysicalQuantity","IndependentUnit","IndependentUnitDimension","IndependentVertexSetQ","Indeterminate","IndeterminateThreshold","IndexCreationOptions","Indexed","IndexEdgeTaggedGraph","IndexGraph","IndexTag","Inequality","InertEvaluate","InertExpression","InexactNumberQ","InexactNumbers","InfiniteFuture","InfiniteLine","InfiniteLineThrough","InfinitePast","InfinitePlane","Infinity","Infix","InflationAdjust","InflationMethod","Information","InformationData","InformationDataGrid","Inherited","InheritScope","InhomogeneousPoissonPointProcess","InhomogeneousPoissonProcess","InitialEvaluationHistory","Initialization","InitializationCell","InitializationCellEvaluation","InitializationCellWarning","InitializationObject","InitializationObjects","InitializationValue","Initialize","InitialSeeding","InlineCounterAssignments","InlineCounterIncrements","InlineRules","Inner","InnerPolygon","InnerPolyhedron","Inpaint","Input","InputAliases","InputAssumptions","InputAutoReplacements","InputField","InputFieldBox","InputFieldBoxOptions","InputForm","InputGrouping","InputNamePacket","InputNotebook","InputPacket","InputPorts","InputSettings","InputStream","InputString","InputStringPacket","InputToBoxFormPacket","Insert","InsertionFunction","InsertionPointObject","InsertLinebreaks","InsertResults","Inset","Inset3DBox","Inset3DBoxOptions","InsetBox","InsetBoxOptions","Insphere","Install","InstallService","InstanceNormalizationLayer","InString","Integer","IntegerDigits","IntegerExponent","IntegerLength","IntegerName","IntegerPart","IntegerPartitions","IntegerQ","IntegerReverse","Integers","IntegerString","Integral","Integrate","IntegrateChangeVariables","Interactive","InteractiveTradingChart","InterfaceSwitched","Interlaced","Interleaving","InternallyBalancedDecomposition","InterpolatingFunction","InterpolatingPolynomial","Interpolation","InterpolationOrder","InterpolationPoints","InterpolationPrecision","Interpretation","InterpretationBox","InterpretationBoxOptions","InterpretationFunction","Interpreter","InterpretTemplate","InterquartileRange","Interrupt","InterruptSettings","IntersectedEntityClass","IntersectingQ","Intersection","Interval","IntervalIntersection","IntervalMarkers","IntervalMarkersStyle","IntervalMemberQ","IntervalSlider","IntervalUnion","Into","Inverse","InverseBetaRegularized","InverseBilateralLaplaceTransform","InverseBilateralZTransform","InverseCDF","InverseChiSquareDistribution","InverseContinuousWaveletTransform","InverseDistanceTransform","InverseEllipticNomeQ","InverseErf","InverseErfc","InverseFourier","InverseFourierCosTransform","InverseFourierSequenceTransform","InverseFourierSinTransform","InverseFourierTransform","InverseFunction","InverseFunctions","InverseGammaDistribution","InverseGammaRegularized","InverseGaussianDistribution","InverseGudermannian","InverseHankelTransform","InverseHaversine","InverseImagePyramid","InverseJacobiCD","InverseJacobiCN","InverseJacobiCS","InverseJacobiDC","InverseJacobiDN","InverseJacobiDS","InverseJacobiNC","InverseJacobiND","InverseJacobiNS","InverseJacobiSC","InverseJacobiSD","InverseJacobiSN","InverseLaplaceTransform","InverseMellinTransform","InversePermutation","InverseRadon","InverseRadonTransform","InverseSeries","InverseShortTimeFourier","InverseSpectrogram","InverseSurvivalFunction","InverseTransformedRegion","InverseWaveletTransform","InverseWeierstrassP","InverseWishartMatrixDistribution","InverseZTransform","Invisible","InvisibleApplication","InvisibleTimes","IPAddress","IrreduciblePolynomialQ","IslandData","IsolatingInterval","IsomorphicGraphQ","IsomorphicSubgraphQ","IsotopeData","Italic","Item","ItemAspectRatio","ItemBox","ItemBoxOptions","ItemDisplayFunction","ItemSize","ItemStyle","ItoProcess","JaccardDissimilarity","JacobiAmplitude","Jacobian","JacobiCD","JacobiCN","JacobiCS","JacobiDC","JacobiDN","JacobiDS","JacobiEpsilon","JacobiNC","JacobiND","JacobiNS","JacobiP","JacobiSC","JacobiSD","JacobiSN","JacobiSymbol","JacobiZeta","JacobiZN","JankoGroupJ1","JankoGroupJ2","JankoGroupJ3","JankoGroupJ4","JarqueBeraALMTest","JohnsonDistribution","Join","JoinAcross","Joined","JoinedCurve","JoinedCurveBox","JoinedCurveBoxOptions","JoinForm","JordanDecomposition","JordanModelDecomposition","JulianDate","JuliaSetBoettcher","JuliaSetIterationCount","JuliaSetPlot","JuliaSetPoints","K","KagiChart","KaiserBesselWindow","KaiserWindow","KalmanEstimator","KalmanFilter","KarhunenLoeveDecomposition","KaryTree","KatzCentrality","KCoreComponents","KDistribution","KEdgeConnectedComponents","KEdgeConnectedGraphQ","KeepExistingVersion","KelvinBei","KelvinBer","KelvinKei","KelvinKer","KendallTau","KendallTauTest","KernelConfiguration","KernelExecute","KernelFunction","KernelMixtureDistribution","KernelObject","Kernels","Ket","Key","KeyCollisionFunction","KeyComplement","KeyDrop","KeyDropFrom","KeyExistsQ","KeyFreeQ","KeyIntersection","KeyMap","KeyMemberQ","KeypointStrength","Keys","KeySelect","KeySort","KeySortBy","KeyTake","KeyUnion","KeyValueMap","KeyValuePattern","Khinchin","KillProcess","KirchhoffGraph","KirchhoffMatrix","KleinInvariantJ","KnapsackSolve","KnightTourGraph","KnotData","KnownUnitQ","KochCurve","KolmogorovSmirnovTest","KroneckerDelta","KroneckerModelDecomposition","KroneckerProduct","KroneckerSymbol","KuiperTest","KumaraswamyDistribution","Kurtosis","KuwaharaFilter","KVertexConnectedComponents","KVertexConnectedGraphQ","LABColor","Label","Labeled","LabeledSlider","LabelingFunction","LabelingSize","LabelStyle","LabelVisibility","LaguerreL","LakeData","LambdaComponents","LambertW","LameC","LameCPrime","LameEigenvalueA","LameEigenvalueB","LameS","LameSPrime","LaminaData","LanczosWindow","LandauDistribution","Language","LanguageCategory","LanguageData","LanguageIdentify","LanguageOptions","LaplaceDistribution","LaplaceTransform","Laplacian","LaplacianFilter","LaplacianGaussianFilter","LaplacianPDETerm","Large","Larger","Last","Latitude","LatitudeLongitude","LatticeData","LatticeReduce","Launch","LaunchKernels","LayeredGraphPlot","LayeredGraphPlot3D","LayerSizeFunction","LayoutInformation","LCHColor","LCM","LeaderSize","LeafCount","LeapVariant","LeapYearQ","LearnDistribution","LearnedDistribution","LearningRate","LearningRateMultipliers","LeastSquares","LeastSquaresFilterKernel","Left","LeftArrow","LeftArrowBar","LeftArrowRightArrow","LeftDownTeeVector","LeftDownVector","LeftDownVectorBar","LeftRightArrow","LeftRightVector","LeftTee","LeftTeeArrow","LeftTeeVector","LeftTriangle","LeftTriangleBar","LeftTriangleEqual","LeftUpDownVector","LeftUpTeeVector","LeftUpVector","LeftUpVectorBar","LeftVector","LeftVectorBar","LegendAppearance","Legended","LegendFunction","LegendLabel","LegendLayout","LegendMargins","LegendMarkers","LegendMarkerSize","LegendreP","LegendreQ","LegendreType","Length","LengthWhile","LerchPhi","Less","LessEqual","LessEqualGreater","LessEqualThan","LessFullEqual","LessGreater","LessLess","LessSlantEqual","LessThan","LessTilde","LetterCharacter","LetterCounts","LetterNumber","LetterQ","Level","LeveneTest","LeviCivitaTensor","LevyDistribution","Lexicographic","LexicographicOrder","LexicographicSort","LibraryDataType","LibraryFunction","LibraryFunctionDeclaration","LibraryFunctionError","LibraryFunctionInformation","LibraryFunctionLoad","LibraryFunctionUnload","LibraryLoad","LibraryUnload","LicenseEntitlementObject","LicenseEntitlements","LicenseID","LicensingSettings","LiftingFilterData","LiftingWaveletTransform","LightBlue","LightBrown","LightCyan","Lighter","LightGray","LightGreen","Lighting","LightingAngle","LightMagenta","LightOrange","LightPink","LightPurple","LightRed","LightSources","LightYellow","Likelihood","Limit","LimitsPositioning","LimitsPositioningTokens","LindleyDistribution","Line","Line3DBox","Line3DBoxOptions","LinearFilter","LinearFractionalOptimization","LinearFractionalTransform","LinearGradientFilling","LinearGradientImage","LinearizingTransformationData","LinearLayer","LinearModelFit","LinearOffsetFunction","LinearOptimization","LinearProgramming","LinearRecurrence","LinearSolve","LinearSolveFunction","LineBox","LineBoxOptions","LineBreak","LinebreakAdjustments","LineBreakChart","LinebreakSemicolonWeighting","LineBreakWithin","LineColor","LineGraph","LineIndent","LineIndentMaxFraction","LineIntegralConvolutionPlot","LineIntegralConvolutionScale","LineLegend","LineOpacity","LineSpacing","LineWrapParts","LinkActivate","LinkClose","LinkConnect","LinkConnectedQ","LinkCreate","LinkError","LinkFlush","LinkFunction","LinkHost","LinkInterrupt","LinkLaunch","LinkMode","LinkObject","LinkOpen","LinkOptions","LinkPatterns","LinkProtocol","LinkRankCentrality","LinkRead","LinkReadHeld","LinkReadyQ","Links","LinkService","LinkWrite","LinkWriteHeld","LiouvilleLambda","List","Listable","ListAnimate","ListContourPlot","ListContourPlot3D","ListConvolve","ListCorrelate","ListCurvePathPlot","ListDeconvolve","ListDensityPlot","ListDensityPlot3D","Listen","ListFormat","ListFourierSequenceTransform","ListInterpolation","ListLineIntegralConvolutionPlot","ListLinePlot","ListLinePlot3D","ListLogLinearPlot","ListLogLogPlot","ListLogPlot","ListPicker","ListPickerBox","ListPickerBoxBackground","ListPickerBoxOptions","ListPlay","ListPlot","ListPlot3D","ListPointPlot3D","ListPolarPlot","ListQ","ListSliceContourPlot3D","ListSliceDensityPlot3D","ListSliceVectorPlot3D","ListStepPlot","ListStreamDensityPlot","ListStreamPlot","ListStreamPlot3D","ListSurfacePlot3D","ListVectorDensityPlot","ListVectorDisplacementPlot","ListVectorDisplacementPlot3D","ListVectorPlot","ListVectorPlot3D","ListZTransform","Literal","LiteralSearch","LiteralType","LoadCompiledComponent","LocalAdaptiveBinarize","LocalCache","LocalClusteringCoefficient","LocalEvaluate","LocalizeDefinitions","LocalizeVariables","LocalObject","LocalObjects","LocalResponseNormalizationLayer","LocalSubmit","LocalSymbol","LocalTime","LocalTimeZone","LocationEquivalenceTest","LocationTest","Locator","LocatorAutoCreate","LocatorBox","LocatorBoxOptions","LocatorCentering","LocatorPane","LocatorPaneBox","LocatorPaneBoxOptions","LocatorRegion","Locked","Log","Log10","Log2","LogBarnesG","LogGamma","LogGammaDistribution","LogicalExpand","LogIntegral","LogisticDistribution","LogisticSigmoid","LogitModelFit","LogLikelihood","LogLinearPlot","LogLogisticDistribution","LogLogPlot","LogMultinormalDistribution","LogNormalDistribution","LogPlot","LogRankTest","LogSeriesDistribution","LongEqual","Longest","LongestCommonSequence","LongestCommonSequencePositions","LongestCommonSubsequence","LongestCommonSubsequencePositions","LongestMatch","LongestOrderedSequence","LongForm","Longitude","LongLeftArrow","LongLeftRightArrow","LongRightArrow","LongShortTermMemoryLayer","Lookup","Loopback","LoopFreeGraphQ","Looping","LossFunction","LowerCaseQ","LowerLeftArrow","LowerRightArrow","LowerTriangularize","LowerTriangularMatrix","LowerTriangularMatrixQ","LowpassFilter","LQEstimatorGains","LQGRegulator","LQOutputRegulatorGains","LQRegulatorGains","LUBackSubstitution","LucasL","LuccioSamiComponents","LUDecomposition","LunarEclipse","LUVColor","LyapunovSolve","LyonsGroupLy","MachineID","MachineName","MachineNumberQ","MachinePrecision","MacintoshSystemPageSetup","Magenta","Magnification","Magnify","MailAddressValidation","MailExecute","MailFolder","MailItem","MailReceiverFunction","MailResponseFunction","MailSearch","MailServerConnect","MailServerConnection","MailSettings","MainSolve","MaintainDynamicCaches","Majority","MakeBoxes","MakeExpression","MakeRules","ManagedLibraryExpressionID","ManagedLibraryExpressionQ","MandelbrotSetBoettcher","MandelbrotSetDistance","MandelbrotSetIterationCount","MandelbrotSetMemberQ","MandelbrotSetPlot","MangoldtLambda","ManhattanDistance","Manipulate","Manipulator","MannedSpaceMissionData","MannWhitneyTest","MantissaExponent","Manual","Map","MapAll","MapApply","MapAt","MapIndexed","MAProcess","MapThread","MarchenkoPasturDistribution","MarcumQ","MardiaCombinedTest","MardiaKurtosisTest","MardiaSkewnessTest","MarginalDistribution","MarkovProcessProperties","Masking","MassConcentrationCondition","MassFluxValue","MassImpermeableBoundaryValue","MassOutflowValue","MassSymmetryValue","MassTransferValue","MassTransportPDEComponent","MatchingDissimilarity","MatchLocalNameQ","MatchLocalNames","MatchQ","Material","MaterialShading","MaternPointProcess","MathematicalFunctionData","MathematicaNotation","MathieuC","MathieuCharacteristicA","MathieuCharacteristicB","MathieuCharacteristicExponent","MathieuCPrime","MathieuGroupM11","MathieuGroupM12","MathieuGroupM22","MathieuGroupM23","MathieuGroupM24","MathieuS","MathieuSPrime","MathMLForm","MathMLText","Matrices","MatrixExp","MatrixForm","MatrixFunction","MatrixLog","MatrixNormalDistribution","MatrixPlot","MatrixPower","MatrixPropertyDistribution","MatrixQ","MatrixRank","MatrixTDistribution","Max","MaxBend","MaxCellMeasure","MaxColorDistance","MaxDate","MaxDetect","MaxDisplayedChildren","MaxDuration","MaxExtraBandwidths","MaxExtraConditions","MaxFeatureDisplacement","MaxFeatures","MaxFilter","MaximalBy","Maximize","MaxItems","MaxIterations","MaxLimit","MaxMemoryUsed","MaxMixtureKernels","MaxOverlapFraction","MaxPlotPoints","MaxPoints","MaxRecursion","MaxStableDistribution","MaxStepFraction","MaxSteps","MaxStepSize","MaxTrainingRounds","MaxValue","MaxwellDistribution","MaxWordGap","McLaughlinGroupMcL","Mean","MeanAbsoluteLossLayer","MeanAround","MeanClusteringCoefficient","MeanDegreeConnectivity","MeanDeviation","MeanFilter","MeanGraphDistance","MeanNeighborDegree","MeanPointDensity","MeanShift","MeanShiftFilter","MeanSquaredLossLayer","Median","MedianDeviation","MedianFilter","MedicalTestData","Medium","MeijerG","MeijerGReduce","MeixnerDistribution","MellinConvolve","MellinTransform","MemberQ","MemoryAvailable","MemoryConstrained","MemoryConstraint","MemoryInUse","MengerMesh","Menu","MenuAppearance","MenuCommandKey","MenuEvaluator","MenuItem","MenuList","MenuPacket","MenuSortingValue","MenuStyle","MenuView","Merge","MergeDifferences","MergingFunction","MersennePrimeExponent","MersennePrimeExponentQ","Mesh","MeshCellCentroid","MeshCellCount","MeshCellHighlight","MeshCellIndex","MeshCellLabel","MeshCellMarker","MeshCellMeasure","MeshCellQuality","MeshCells","MeshCellShapeFunction","MeshCellStyle","MeshConnectivityGraph","MeshCoordinates","MeshFunctions","MeshPrimitives","MeshQualityGoal","MeshRange","MeshRefinementFunction","MeshRegion","MeshRegionQ","MeshShading","MeshStyle","Message","MessageDialog","MessageList","MessageName","MessageObject","MessageOptions","MessagePacket","Messages","MessagesNotebook","MetaCharacters","MetaInformation","MeteorShowerData","Method","MethodOptions","MexicanHatWavelet","MeyerWavelet","Midpoint","MIMETypeToFormatList","Min","MinColorDistance","MinDate","MinDetect","MineralData","MinFilter","MinimalBy","MinimalPolynomial","MinimalStateSpaceModel","Minimize","MinimumTimeIncrement","MinIntervalSize","MinkowskiQuestionMark","MinLimit","MinMax","MinorPlanetData","Minors","MinPointSeparation","MinRecursion","MinSize","MinStableDistribution","Minus","MinusPlus","MinValue","Missing","MissingBehavior","MissingDataMethod","MissingDataRules","MissingQ","MissingString","MissingStyle","MissingValuePattern","MissingValueSynthesis","MittagLefflerE","MixedFractionParts","MixedGraphQ","MixedMagnitude","MixedRadix","MixedRadixQuantity","MixedUnit","MixtureDistribution","Mod","Modal","Mode","ModelPredictiveController","Modular","ModularInverse","ModularLambda","Module","Modulus","MoebiusMu","Molecule","MoleculeAlign","MoleculeContainsQ","MoleculeDraw","MoleculeEquivalentQ","MoleculeFreeQ","MoleculeGraph","MoleculeMatchQ","MoleculeMaximumCommonSubstructure","MoleculeModify","MoleculeName","MoleculePattern","MoleculePlot","MoleculePlot3D","MoleculeProperty","MoleculeQ","MoleculeRecognize","MoleculeSubstructureCount","MoleculeValue","Moment","MomentConvert","MomentEvaluate","MomentGeneratingFunction","MomentOfInertia","Monday","Monitor","MonomialList","MonomialOrder","MonsterGroupM","MoonPhase","MoonPosition","MorletWavelet","MorphologicalBinarize","MorphologicalBranchPoints","MorphologicalComponents","MorphologicalEulerNumber","MorphologicalGraph","MorphologicalPerimeter","MorphologicalTransform","MortalityData","Most","MountainData","MouseAnnotation","MouseAppearance","MouseAppearanceTag","MouseButtons","Mouseover","MousePointerNote","MousePosition","MovieData","MovingAverage","MovingMap","MovingMedian","MoyalDistribution","MultiaxisArrangement","Multicolumn","MultiedgeStyle","MultigraphQ","MultilaunchWarning","MultiLetterItalics","MultiLetterStyle","MultilineFunction","Multinomial","MultinomialDistribution","MultinormalDistribution","MultiplicativeOrder","Multiplicity","MultiplySides","MultiscriptBoxOptions","Multiselection","MultivariateHypergeometricDistribution","MultivariatePoissonDistribution","MultivariateTDistribution","N","NakagamiDistribution","NameQ","Names","NamespaceBox","NamespaceBoxOptions","Nand","NArgMax","NArgMin","NBernoulliB","NBodySimulation","NBodySimulationData","NCache","NCaputoD","NDEigensystem","NDEigenvalues","NDSolve","NDSolveValue","Nearest","NearestFunction","NearestMeshCells","NearestNeighborG","NearestNeighborGraph","NearestTo","NebulaData","NeedlemanWunschSimilarity","Needs","Negative","NegativeBinomialDistribution","NegativeDefiniteMatrixQ","NegativeIntegers","NegativelyOrientedPoints","NegativeMultinomialDistribution","NegativeRationals","NegativeReals","NegativeSemidefiniteMatrixQ","NeighborhoodData","NeighborhoodGraph","Nest","NestedGreaterGreater","NestedLessLess","NestedScriptRules","NestGraph","NestList","NestTree","NestWhile","NestWhileList","NetAppend","NetArray","NetArrayLayer","NetBidirectionalOperator","NetChain","NetDecoder","NetDelete","NetDrop","NetEncoder","NetEvaluationMode","NetExternalObject","NetExtract","NetFlatten","NetFoldOperator","NetGANOperator","NetGraph","NetInformation","NetInitialize","NetInsert","NetInsertSharedArrays","NetJoin","NetMapOperator","NetMapThreadOperator","NetMeasurements","NetModel","NetNestOperator","NetPairEmbeddingOperator","NetPort","NetPortGradient","NetPrepend","NetRename","NetReplace","NetReplacePart","NetSharedArray","NetStateObject","NetTake","NetTrain","NetTrainResultsObject","NetUnfold","NetworkPacketCapture","NetworkPacketRecording","NetworkPacketRecordingDuring","NetworkPacketTrace","NeumannValue","NevilleThetaC","NevilleThetaD","NevilleThetaN","NevilleThetaS","NewPrimitiveStyle","NExpectation","Next","NextCell","NextDate","NextPrime","NextScheduledTaskTime","NeymanScottPointProcess","NFractionalD","NHoldAll","NHoldFirst","NHoldRest","NicholsGridLines","NicholsPlot","NightHemisphere","NIntegrate","NMaximize","NMaxValue","NMinimize","NMinValue","NominalScale","NominalVariables","NonAssociative","NoncentralBetaDistribution","NoncentralChiSquareDistribution","NoncentralFRatioDistribution","NoncentralStudentTDistribution","NonCommutativeMultiply","NonConstants","NondimensionalizationTransform","None","NoneTrue","NonlinearModelFit","NonlinearStateSpaceModel","NonlocalMeansFilter","NonNegative","NonNegativeIntegers","NonNegativeRationals","NonNegativeReals","NonPositive","NonPositiveIntegers","NonPositiveRationals","NonPositiveReals","Nor","NorlundB","Norm","Normal","NormalDistribution","NormalGrouping","NormalizationLayer","Normalize","Normalized","NormalizedSquaredEuclideanDistance","NormalMatrixQ","NormalsFunction","NormFunction","Not","NotCongruent","NotCupCap","NotDoubleVerticalBar","Notebook","NotebookApply","NotebookAutoSave","NotebookBrowseDirectory","NotebookClose","NotebookConvertSettings","NotebookCreate","NotebookDefault","NotebookDelete","NotebookDirectory","NotebookDynamicExpression","NotebookEvaluate","NotebookEventActions","NotebookFileName","NotebookFind","NotebookGet","NotebookImport","NotebookInformation","NotebookInterfaceObject","NotebookLocate","NotebookObject","NotebookOpen","NotebookPath","NotebookPrint","NotebookPut","NotebookRead","Notebooks","NotebookSave","NotebookSelection","NotebooksMenu","NotebookTemplate","NotebookWrite","NotElement","NotEqualTilde","NotExists","NotGreater","NotGreaterEqual","NotGreaterFullEqual","NotGreaterGreater","NotGreaterLess","NotGreaterSlantEqual","NotGreaterTilde","Nothing","NotHumpDownHump","NotHumpEqual","NotificationFunction","NotLeftTriangle","NotLeftTriangleBar","NotLeftTriangleEqual","NotLess","NotLessEqual","NotLessFullEqual","NotLessGreater","NotLessLess","NotLessSlantEqual","NotLessTilde","NotNestedGreaterGreater","NotNestedLessLess","NotPrecedes","NotPrecedesEqual","NotPrecedesSlantEqual","NotPrecedesTilde","NotReverseElement","NotRightTriangle","NotRightTriangleBar","NotRightTriangleEqual","NotSquareSubset","NotSquareSubsetEqual","NotSquareSuperset","NotSquareSupersetEqual","NotSubset","NotSubsetEqual","NotSucceeds","NotSucceedsEqual","NotSucceedsSlantEqual","NotSucceedsTilde","NotSuperset","NotSupersetEqual","NotTilde","NotTildeEqual","NotTildeFullEqual","NotTildeTilde","NotVerticalBar","Now","NoWhitespace","NProbability","NProduct","NProductFactors","NRoots","NSolve","NSolveValues","NSum","NSumTerms","NuclearExplosionData","NuclearReactorData","Null","NullRecords","NullSpace","NullWords","Number","NumberCompose","NumberDecompose","NumberDigit","NumberExpand","NumberFieldClassNumber","NumberFieldDiscriminant","NumberFieldFundamentalUnits","NumberFieldIntegralBasis","NumberFieldNormRepresentatives","NumberFieldRegulator","NumberFieldRootsOfUnity","NumberFieldSignature","NumberForm","NumberFormat","NumberLinePlot","NumberMarks","NumberMultiplier","NumberPadding","NumberPoint","NumberQ","NumberSeparator","NumberSigns","NumberString","Numerator","NumeratorDenominator","NumericalOrder","NumericalSort","NumericArray","NumericArrayQ","NumericArrayType","NumericFunction","NumericQ","NuttallWindow","NValues","NyquistGridLines","NyquistPlot","O","ObjectExistsQ","ObservabilityGramian","ObservabilityMatrix","ObservableDecomposition","ObservableModelQ","OceanData","Octahedron","OddQ","Off","Offset","OLEData","On","ONanGroupON","Once","OneIdentity","Opacity","OpacityFunction","OpacityFunctionScaling","Open","OpenAppend","Opener","OpenerBox","OpenerBoxOptions","OpenerView","OpenFunctionInspectorPacket","Opening","OpenRead","OpenSpecialOptions","OpenTemporary","OpenWrite","Operate","OperatingSystem","OperatorApplied","OptimumFlowData","Optional","OptionalElement","OptionInspectorSettings","OptionQ","Options","OptionsPacket","OptionsPattern","OptionValue","OptionValueBox","OptionValueBoxOptions","Or","Orange","Order","OrderDistribution","OrderedQ","Ordering","OrderingBy","OrderingLayer","Orderless","OrderlessPatternSequence","OrdinalScale","OrnsteinUhlenbeckProcess","Orthogonalize","OrthogonalMatrixQ","Out","Outer","OuterPolygon","OuterPolyhedron","OutputAutoOverwrite","OutputControllabilityMatrix","OutputControllableModelQ","OutputForm","OutputFormData","OutputGrouping","OutputMathEditExpression","OutputNamePacket","OutputPorts","OutputResponse","OutputSizeLimit","OutputStream","Over","OverBar","OverDot","Overflow","OverHat","Overlaps","Overlay","OverlayBox","OverlayBoxOptions","OverlayVideo","Overscript","OverscriptBox","OverscriptBoxOptions","OverTilde","OverVector","OverwriteTarget","OwenT","OwnValues","Package","PackingMethod","PackPaclet","PacletDataRebuild","PacletDirectoryAdd","PacletDirectoryLoad","PacletDirectoryRemove","PacletDirectoryUnload","PacletDisable","PacletEnable","PacletFind","PacletFindRemote","PacletInformation","PacletInstall","PacletInstallSubmit","PacletNewerQ","PacletObject","PacletObjectQ","PacletSite","PacletSiteObject","PacletSiteRegister","PacletSites","PacletSiteUnregister","PacletSiteUpdate","PacletSymbol","PacletUninstall","PacletUpdate","PaddedForm","Padding","PaddingLayer","PaddingSize","PadeApproximant","PadLeft","PadRight","PageBreakAbove","PageBreakBelow","PageBreakWithin","PageFooterLines","PageFooters","PageHeaderLines","PageHeaders","PageHeight","PageRankCentrality","PageTheme","PageWidth","Pagination","PairCorrelationG","PairedBarChart","PairedHistogram","PairedSmoothHistogram","PairedTTest","PairedZTest","PaletteNotebook","PalettePath","PalettesMenuSettings","PalindromeQ","Pane","PaneBox","PaneBoxOptions","Panel","PanelBox","PanelBoxOptions","Paneled","PaneSelector","PaneSelectorBox","PaneSelectorBoxOptions","PaperWidth","ParabolicCylinderD","ParagraphIndent","ParagraphSpacing","ParallelArray","ParallelAxisPlot","ParallelCombine","ParallelDo","Parallelepiped","ParallelEvaluate","Parallelization","Parallelize","ParallelKernels","ParallelMap","ParallelNeeds","Parallelogram","ParallelProduct","ParallelSubmit","ParallelSum","ParallelTable","ParallelTry","Parameter","ParameterEstimator","ParameterMixtureDistribution","ParameterVariables","ParametricConvexOptimization","ParametricFunction","ParametricNDSolve","ParametricNDSolveValue","ParametricPlot","ParametricPlot3D","ParametricRampLayer","ParametricRegion","ParentBox","ParentCell","ParentConnect","ParentDirectory","ParentEdgeLabel","ParentEdgeLabelFunction","ParentEdgeLabelStyle","ParentEdgeShapeFunction","ParentEdgeStyle","ParentEdgeStyleFunction","ParentForm","Parenthesize","ParentList","ParentNotebook","ParetoDistribution","ParetoPickandsDistribution","ParkData","Part","PartBehavior","PartialCorrelationFunction","PartialD","ParticleAcceleratorData","ParticleData","Partition","PartitionGranularity","PartitionsP","PartitionsQ","PartLayer","PartOfSpeech","PartProtection","ParzenWindow","PascalDistribution","PassEventsDown","PassEventsUp","Paste","PasteAutoQuoteCharacters","PasteBoxFormInlineCells","PasteButton","Path","PathGraph","PathGraphQ","Pattern","PatternFilling","PatternReaction","PatternSequence","PatternTest","PauliMatrix","PaulWavelet","Pause","PausedTime","PDF","PeakDetect","PeanoCurve","PearsonChiSquareTest","PearsonCorrelationTest","PearsonDistribution","PenttinenPointProcess","PercentForm","PerfectNumber","PerfectNumberQ","PerformanceGoal","Perimeter","PeriodicBoundaryCondition","PeriodicInterpolation","Periodogram","PeriodogramArray","Permanent","Permissions","PermissionsGroup","PermissionsGroupMemberQ","PermissionsGroups","PermissionsKey","PermissionsKeys","PermutationCycles","PermutationCyclesQ","PermutationGroup","PermutationLength","PermutationList","PermutationListQ","PermutationMatrix","PermutationMax","PermutationMin","PermutationOrder","PermutationPower","PermutationProduct","PermutationReplace","Permutations","PermutationSupport","Permute","PeronaMalikFilter","Perpendicular","PerpendicularBisector","PersistenceLocation","PersistenceTime","PersistentObject","PersistentObjects","PersistentSymbol","PersistentValue","PersonData","PERTDistribution","PetersenGraph","PhaseMargins","PhaseRange","PhongShading","PhysicalSystemData","Pi","Pick","PickedElements","PickMode","PIDData","PIDDerivativeFilter","PIDFeedforward","PIDTune","Piecewise","PiecewiseExpand","PieChart","PieChart3D","PillaiTrace","PillaiTraceTest","PingTime","Pink","PitchRecognize","Pivoting","PixelConstrained","PixelValue","PixelValuePositions","Placed","Placeholder","PlaceholderLayer","PlaceholderReplace","Plain","PlanarAngle","PlanarFaceList","PlanarGraph","PlanarGraphQ","PlanckRadiationLaw","PlaneCurveData","PlanetaryMoonData","PlanetData","PlantData","Play","PlaybackSettings","PlayRange","Plot","Plot3D","Plot3Matrix","PlotDivision","PlotJoined","PlotLabel","PlotLabels","PlotLayout","PlotLegends","PlotMarkers","PlotPoints","PlotRange","PlotRangeClipping","PlotRangeClipPlanesStyle","PlotRangePadding","PlotRegion","PlotStyle","PlotTheme","Pluralize","Plus","PlusMinus","Pochhammer","PodStates","PodWidth","Point","Point3DBox","Point3DBoxOptions","PointBox","PointBoxOptions","PointCountDistribution","PointDensity","PointDensityFunction","PointFigureChart","PointLegend","PointLight","PointProcessEstimator","PointProcessFitTest","PointProcessParameterAssumptions","PointProcessParameterQ","PointSize","PointStatisticFunction","PointValuePlot","PoissonConsulDistribution","PoissonDistribution","PoissonPDEComponent","PoissonPointProcess","PoissonProcess","PoissonWindow","PolarAxes","PolarAxesOrigin","PolarGridLines","PolarPlot","PolarTicks","PoleZeroMarkers","PolyaAeppliDistribution","PolyGamma","Polygon","Polygon3DBox","Polygon3DBoxOptions","PolygonalNumber","PolygonAngle","PolygonBox","PolygonBoxOptions","PolygonCoordinates","PolygonDecomposition","PolygonHoleScale","PolygonIntersections","PolygonScale","Polyhedron","PolyhedronAngle","PolyhedronBox","PolyhedronBoxOptions","PolyhedronCoordinates","PolyhedronData","PolyhedronDecomposition","PolyhedronGenus","PolyLog","PolynomialExpressionQ","PolynomialExtendedGCD","PolynomialForm","PolynomialGCD","PolynomialLCM","PolynomialMod","PolynomialQ","PolynomialQuotient","PolynomialQuotientRemainder","PolynomialReduce","PolynomialRemainder","Polynomials","PolynomialSumOfSquaresList","PoolingLayer","PopupMenu","PopupMenuBox","PopupMenuBoxOptions","PopupView","PopupWindow","Position","PositionIndex","PositionLargest","PositionSmallest","Positive","PositiveDefiniteMatrixQ","PositiveIntegers","PositivelyOrientedPoints","PositiveRationals","PositiveReals","PositiveSemidefiniteMatrixQ","PossibleZeroQ","Postfix","PostScript","Power","PowerDistribution","PowerExpand","PowerMod","PowerModList","PowerRange","PowerSpectralDensity","PowersRepresentations","PowerSymmetricPolynomial","Precedence","PrecedenceForm","Precedes","PrecedesEqual","PrecedesSlantEqual","PrecedesTilde","Precision","PrecisionGoal","PreDecrement","Predict","PredictionRoot","PredictorFunction","PredictorInformation","PredictorMeasurements","PredictorMeasurementsObject","PreemptProtect","PreferencesPath","PreferencesSettings","Prefix","PreIncrement","Prepend","PrependLayer","PrependTo","PreprocessingRules","PreserveColor","PreserveImageOptions","Previous","PreviousCell","PreviousDate","PriceGraphDistribution","PrimaryPlaceholder","Prime","PrimeNu","PrimeOmega","PrimePi","PrimePowerQ","PrimeQ","Primes","PrimeZetaP","PrimitivePolynomialQ","PrimitiveRoot","PrimitiveRootList","PrincipalComponents","PrincipalValue","Print","PrintableASCIIQ","PrintAction","PrintForm","PrintingCopies","PrintingOptions","PrintingPageRange","PrintingStartingPageNumber","PrintingStyleEnvironment","Printout3D","Printout3DPreviewer","PrintPrecision","PrintTemporary","Prism","PrismBox","PrismBoxOptions","PrivateCellOptions","PrivateEvaluationOptions","PrivateFontOptions","PrivateFrontEndOptions","PrivateKey","PrivateNotebookOptions","PrivatePaths","Probability","ProbabilityDistribution","ProbabilityPlot","ProbabilityPr","ProbabilityScalePlot","ProbitModelFit","ProcessConnection","ProcessDirectory","ProcessEnvironment","Processes","ProcessEstimator","ProcessInformation","ProcessObject","ProcessParameterAssumptions","ProcessParameterQ","ProcessStateDomain","ProcessStatus","ProcessTimeDomain","Product","ProductDistribution","ProductLog","ProgressIndicator","ProgressIndicatorBox","ProgressIndicatorBoxOptions","ProgressReporting","Projection","Prolog","PromptForm","ProofObject","PropagateAborts","Properties","Property","PropertyList","PropertyValue","Proportion","Proportional","Protect","Protected","ProteinData","Pruning","PseudoInverse","PsychrometricPropertyData","PublicKey","PublisherID","PulsarData","PunctuationCharacter","Purple","Put","PutAppend","Pyramid","PyramidBox","PyramidBoxOptions","QBinomial","QFactorial","QGamma","QHypergeometricPFQ","QnDispersion","QPochhammer","QPolyGamma","QRDecomposition","QuadraticIrrationalQ","QuadraticOptimization","Quantile","QuantilePlot","Quantity","QuantityArray","QuantityDistribution","QuantityForm","QuantityMagnitude","QuantityQ","QuantityUnit","QuantityVariable","QuantityVariableCanonicalUnit","QuantityVariableDimensions","QuantityVariableIdentifier","QuantityVariablePhysicalQuantity","Quartics","QuartileDeviation","Quartiles","QuartileSkewness","Query","QuestionGenerator","QuestionInterface","QuestionObject","QuestionSelector","QueueingNetworkProcess","QueueingProcess","QueueProperties","Quiet","QuietEcho","Quit","Quotient","QuotientRemainder","RadialAxisPlot","RadialGradientFilling","RadialGradientImage","RadialityCentrality","RadicalBox","RadicalBoxOptions","RadioButton","RadioButtonBar","RadioButtonBox","RadioButtonBoxOptions","Radon","RadonTransform","RamanujanTau","RamanujanTauL","RamanujanTauTheta","RamanujanTauZ","Ramp","Random","RandomArrayLayer","RandomChoice","RandomColor","RandomComplex","RandomDate","RandomEntity","RandomFunction","RandomGeneratorState","RandomGeoPosition","RandomGraph","RandomImage","RandomInstance","RandomInteger","RandomPermutation","RandomPoint","RandomPointConfiguration","RandomPolygon","RandomPolyhedron","RandomPrime","RandomReal","RandomSample","RandomSeed","RandomSeeding","RandomTime","RandomTree","RandomVariate","RandomWalkProcess","RandomWord","Range","RangeFilter","RangeSpecification","RankedMax","RankedMin","RarerProbability","Raster","Raster3D","Raster3DBox","Raster3DBoxOptions","RasterArray","RasterBox","RasterBoxOptions","Rasterize","RasterSize","Rational","RationalExpressionQ","RationalFunctions","Rationalize","Rationals","Ratios","RawArray","RawBoxes","RawData","RawMedium","RayleighDistribution","Re","ReactionBalance","ReactionBalancedQ","ReactionPDETerm","Read","ReadByteArray","ReadLine","ReadList","ReadProtected","ReadString","Real","RealAbs","RealBlockDiagonalForm","RealDigits","RealExponent","Reals","RealSign","Reap","RebuildPacletData","RecalibrationFunction","RecognitionPrior","RecognitionThreshold","ReconstructionMesh","Record","RecordLists","RecordSeparators","Rectangle","RectangleBox","RectangleBoxOptions","RectangleChart","RectangleChart3D","RectangularRepeatingElement","RecurrenceFilter","RecurrenceTable","RecurringDigitsForm","Red","Reduce","RefBox","ReferenceLineStyle","ReferenceMarkers","ReferenceMarkerStyle","Refine","ReflectionMatrix","ReflectionTransform","Refresh","RefreshRate","Region","RegionBinarize","RegionBoundary","RegionBoundaryStyle","RegionBounds","RegionCentroid","RegionCongruent","RegionConvert","RegionDifference","RegionDilation","RegionDimension","RegionDisjoint","RegionDistance","RegionDistanceFunction","RegionEmbeddingDimension","RegionEqual","RegionErosion","RegionFillingStyle","RegionFit","RegionFunction","RegionImage","RegionIntersection","RegionMeasure","RegionMember","RegionMemberFunction","RegionMoment","RegionNearest","RegionNearestFunction","RegionPlot","RegionPlot3D","RegionProduct","RegionQ","RegionResize","RegionSimilar","RegionSize","RegionSymmetricDifference","RegionUnion","RegionWithin","RegisterExternalEvaluator","RegularExpression","Regularization","RegularlySampledQ","RegularPolygon","ReIm","ReImLabels","ReImPlot","ReImStyle","Reinstall","RelationalDatabase","RelationGraph","Release","ReleaseHold","ReliabilityDistribution","ReliefImage","ReliefPlot","RemoteAuthorizationCaching","RemoteBatchJobAbort","RemoteBatchJobObject","RemoteBatchJobs","RemoteBatchMapSubmit","RemoteBatchSubmissionEnvironment","RemoteBatchSubmit","RemoteConnect","RemoteConnectionObject","RemoteEvaluate","RemoteFile","RemoteInputFiles","RemoteKernelObject","RemoteProviderSettings","RemoteRun","RemoteRunProcess","RemovalConditions","Remove","RemoveAlphaChannel","RemoveAsynchronousTask","RemoveAudioStream","RemoveBackground","RemoveChannelListener","RemoveChannelSubscribers","Removed","RemoveDiacritics","RemoveInputStreamMethod","RemoveOutputStreamMethod","RemoveProperty","RemoveScheduledTask","RemoveUsers","RemoveVideoStream","RenameDirectory","RenameFile","RenderAll","RenderingOptions","RenewalProcess","RenkoChart","RepairMesh","Repeated","RepeatedNull","RepeatedString","RepeatedTiming","RepeatingElement","Replace","ReplaceAll","ReplaceAt","ReplaceHeldPart","ReplaceImageValue","ReplaceList","ReplacePart","ReplacePixelValue","ReplaceRepeated","ReplicateLayer","RequiredPhysicalQuantities","Resampling","ResamplingAlgorithmData","ResamplingMethod","Rescale","RescalingTransform","ResetDirectory","ResetScheduledTask","ReshapeLayer","Residue","ResidueSum","ResizeLayer","Resolve","ResolveContextAliases","ResourceAcquire","ResourceData","ResourceFunction","ResourceObject","ResourceRegister","ResourceRemove","ResourceSearch","ResourceSubmissionObject","ResourceSubmit","ResourceSystemBase","ResourceSystemPath","ResourceUpdate","ResourceVersion","ResponseForm","Rest","RestartInterval","Restricted","Resultant","ResumePacket","Return","ReturnCreatesNewCell","ReturnEntersInput","ReturnExpressionPacket","ReturnInputFormPacket","ReturnPacket","ReturnReceiptFunction","ReturnTextPacket","Reverse","ReverseApplied","ReverseBiorthogonalSplineWavelet","ReverseElement","ReverseEquilibrium","ReverseGraph","ReverseSort","ReverseSortBy","ReverseUpEquilibrium","RevolutionAxis","RevolutionPlot3D","RGBColor","RiccatiSolve","RiceDistribution","RidgeFilter","RiemannR","RiemannSiegelTheta","RiemannSiegelZ","RiemannXi","Riffle","Right","RightArrow","RightArrowBar","RightArrowLeftArrow","RightComposition","RightCosetRepresentative","RightDownTeeVector","RightDownVector","RightDownVectorBar","RightTee","RightTeeArrow","RightTeeVector","RightTriangle","RightTriangleBar","RightTriangleEqual","RightUpDownVector","RightUpTeeVector","RightUpVector","RightUpVectorBar","RightVector","RightVectorBar","RipleyK","RipleyRassonRegion","RiskAchievementImportance","RiskReductionImportance","RobustConvexOptimization","RogersTanimotoDissimilarity","RollPitchYawAngles","RollPitchYawMatrix","RomanNumeral","Root","RootApproximant","RootIntervals","RootLocusPlot","RootMeanSquare","RootOfUnityQ","RootReduce","Roots","RootSum","RootTree","Rotate","RotateLabel","RotateLeft","RotateRight","RotationAction","RotationBox","RotationBoxOptions","RotationMatrix","RotationTransform","Round","RoundImplies","RoundingRadius","Row","RowAlignments","RowBackgrounds","RowBox","RowHeights","RowLines","RowMinHeight","RowReduce","RowsEqual","RowSpacings","RSolve","RSolveValue","RudinShapiro","RudvalisGroupRu","Rule","RuleCondition","RuleDelayed","RuleForm","RulePlot","RulerUnits","RulesTree","Run","RunProcess","RunScheduledTask","RunThrough","RuntimeAttributes","RuntimeOptions","RussellRaoDissimilarity","SameAs","SameQ","SameTest","SameTestProperties","SampledEntityClass","SampleDepth","SampledSoundFunction","SampledSoundList","SampleRate","SamplingPeriod","SARIMAProcess","SARMAProcess","SASTriangle","SatelliteData","SatisfiabilityCount","SatisfiabilityInstances","SatisfiableQ","Saturday","Save","Saveable","SaveAutoDelete","SaveConnection","SaveDefinitions","SavitzkyGolayMatrix","SawtoothWave","Scale","Scaled","ScaleDivisions","ScaledMousePosition","ScaleOrigin","ScalePadding","ScaleRanges","ScaleRangeStyle","ScalingFunctions","ScalingMatrix","ScalingTransform","Scan","ScheduledTask","ScheduledTaskActiveQ","ScheduledTaskInformation","ScheduledTaskInformationData","ScheduledTaskObject","ScheduledTasks","SchurDecomposition","ScientificForm","ScientificNotationThreshold","ScorerGi","ScorerGiPrime","ScorerHi","ScorerHiPrime","ScreenRectangle","ScreenStyleEnvironment","ScriptBaselineShifts","ScriptForm","ScriptLevel","ScriptMinSize","ScriptRules","ScriptSizeMultipliers","Scrollbars","ScrollingOptions","ScrollPosition","SearchAdjustment","SearchIndexObject","SearchIndices","SearchQueryString","SearchResultObject","Sec","Sech","SechDistribution","SecondOrderConeOptimization","SectionGrouping","SectorChart","SectorChart3D","SectorOrigin","SectorSpacing","SecuredAuthenticationKey","SecuredAuthenticationKeys","SecurityCertificate","SeedRandom","Select","Selectable","SelectComponents","SelectedCells","SelectedNotebook","SelectFirst","Selection","SelectionAnimate","SelectionCell","SelectionCellCreateCell","SelectionCellDefaultStyle","SelectionCellParentStyle","SelectionCreateCell","SelectionDebuggerTag","SelectionEvaluate","SelectionEvaluateCreateCell","SelectionMove","SelectionPlaceholder","SelectWithContents","SelfLoops","SelfLoopStyle","SemanticImport","SemanticImportString","SemanticInterpretation","SemialgebraicComponentInstances","SemidefiniteOptimization","SendMail","SendMessage","Sequence","SequenceAlignment","SequenceAttentionLayer","SequenceCases","SequenceCount","SequenceFold","SequenceFoldList","SequenceForm","SequenceHold","SequenceIndicesLayer","SequenceLastLayer","SequenceMostLayer","SequencePosition","SequencePredict","SequencePredictorFunction","SequenceReplace","SequenceRestLayer","SequenceReverseLayer","SequenceSplit","Series","SeriesCoefficient","SeriesData","SeriesTermGoal","ServiceConnect","ServiceDisconnect","ServiceExecute","ServiceObject","ServiceRequest","ServiceResponse","ServiceSubmit","SessionSubmit","SessionTime","Set","SetAccuracy","SetAlphaChannel","SetAttributes","Setbacks","SetCloudDirectory","SetCookies","SetDelayed","SetDirectory","SetEnvironment","SetFileDate","SetFileFormatProperties","SetOptions","SetOptionsPacket","SetPermissions","SetPrecision","SetProperty","SetSecuredAuthenticationKey","SetSelectedNotebook","SetSharedFunction","SetSharedVariable","SetStreamPosition","SetSystemModel","SetSystemOptions","Setter","SetterBar","SetterBox","SetterBoxOptions","Setting","SetUsers","Shading","Shallow","ShannonWavelet","ShapiroWilkTest","Share","SharingList","Sharpen","ShearingMatrix","ShearingTransform","ShellRegion","ShenCastanMatrix","ShiftedGompertzDistribution","ShiftRegisterSequence","Short","ShortDownArrow","Shortest","ShortestMatch","ShortestPathFunction","ShortLeftArrow","ShortRightArrow","ShortTimeFourier","ShortTimeFourierData","ShortUpArrow","Show","ShowAutoConvert","ShowAutoSpellCheck","ShowAutoStyles","ShowCellBracket","ShowCellLabel","ShowCellTags","ShowClosedCellArea","ShowCodeAssist","ShowContents","ShowControls","ShowCursorTracker","ShowGroupOpenCloseIcon","ShowGroupOpener","ShowInvisibleCharacters","ShowPageBreaks","ShowPredictiveInterface","ShowSelection","ShowShortBoxForm","ShowSpecialCharacters","ShowStringCharacters","ShowSyntaxStyles","ShrinkingDelay","ShrinkWrapBoundingBox","SiderealTime","SiegelTheta","SiegelTukeyTest","SierpinskiCurve","SierpinskiMesh","Sign","Signature","SignedRankTest","SignedRegionDistance","SignificanceLevel","SignPadding","SignTest","SimilarityRules","SimpleGraph","SimpleGraphQ","SimplePolygonQ","SimplePolyhedronQ","Simplex","Simplify","Sin","Sinc","SinghMaddalaDistribution","SingleEvaluation","SingleLetterItalics","SingleLetterStyle","SingularValueDecomposition","SingularValueList","SingularValuePlot","SingularValues","Sinh","SinhIntegral","SinIntegral","SixJSymbol","Skeleton","SkeletonTransform","SkellamDistribution","Skewness","SkewNormalDistribution","SkinStyle","Skip","SliceContourPlot3D","SliceDensityPlot3D","SliceDistribution","SliceVectorPlot3D","Slider","Slider2D","Slider2DBox","Slider2DBoxOptions","SliderBox","SliderBoxOptions","SlideShowVideo","SlideView","Slot","SlotSequence","Small","SmallCircle","Smaller","SmithDecomposition","SmithDelayCompensator","SmithWatermanSimilarity","SmoothDensityHistogram","SmoothHistogram","SmoothHistogram3D","SmoothKernelDistribution","SmoothPointDensity","SnDispersion","Snippet","SnippetsVideo","SnubPolyhedron","SocialMediaData","Socket","SocketConnect","SocketListen","SocketListener","SocketObject","SocketOpen","SocketReadMessage","SocketReadyQ","Sockets","SocketWaitAll","SocketWaitNext","SoftmaxLayer","SokalSneathDissimilarity","SolarEclipse","SolarSystemFeatureData","SolarTime","SolidAngle","SolidBoundaryLoadValue","SolidData","SolidDisplacementCondition","SolidFixedCondition","SolidMechanicsPDEComponent","SolidMechanicsStrain","SolidMechanicsStress","SolidRegionQ","Solve","SolveAlways","SolveDelayed","SolveValues","Sort","SortBy","SortedBy","SortedEntityClass","Sound","SoundAndGraphics","SoundNote","SoundVolume","SourceLink","SourcePDETerm","Sow","Space","SpaceCurveData","SpaceForm","Spacer","Spacings","Span","SpanAdjustments","SpanCharacterRounding","SpanFromAbove","SpanFromBoth","SpanFromLeft","SpanLineThickness","SpanMaxSize","SpanMinSize","SpanningCharacters","SpanSymmetric","SparseArray","SparseArrayQ","SpatialBinnedPointData","SpatialBoundaryCorrection","SpatialEstimate","SpatialEstimatorFunction","SpatialGraphDistribution","SpatialJ","SpatialMedian","SpatialNoiseLevel","SpatialObservationRegionQ","SpatialPointData","SpatialPointSelect","SpatialRandomnessTest","SpatialTransformationLayer","SpatialTrendFunction","Speak","SpeakerMatchQ","SpearmanRankTest","SpearmanRho","SpeciesData","SpecificityGoal","SpectralLineData","Spectrogram","SpectrogramArray","Specularity","SpeechCases","SpeechInterpreter","SpeechRecognize","SpeechSynthesize","SpellingCorrection","SpellingCorrectionList","SpellingDictionaries","SpellingDictionariesPath","SpellingOptions","Sphere","SphereBox","SphereBoxOptions","SpherePoints","SphericalBesselJ","SphericalBesselY","SphericalHankelH1","SphericalHankelH2","SphericalHarmonicY","SphericalPlot3D","SphericalRegion","SphericalShell","SpheroidalEigenvalue","SpheroidalJoiningFactor","SpheroidalPS","SpheroidalPSPrime","SpheroidalQS","SpheroidalQSPrime","SpheroidalRadialFactor","SpheroidalS1","SpheroidalS1Prime","SpheroidalS2","SpheroidalS2Prime","Splice","SplicedDistribution","SplineClosed","SplineDegree","SplineKnots","SplineWeights","Split","SplitBy","SpokenString","SpotLight","Sqrt","SqrtBox","SqrtBoxOptions","Square","SquaredEuclideanDistance","SquareFreeQ","SquareIntersection","SquareMatrixQ","SquareRepeatingElement","SquaresR","SquareSubset","SquareSubsetEqual","SquareSuperset","SquareSupersetEqual","SquareUnion","SquareWave","SSSTriangle","StabilityMargins","StabilityMarginsStyle","StableDistribution","Stack","StackBegin","StackComplete","StackedDateListPlot","StackedListPlot","StackInhibit","StadiumShape","StandardAtmosphereData","StandardDeviation","StandardDeviationFilter","StandardForm","Standardize","Standardized","StandardOceanData","StandbyDistribution","Star","StarClusterData","StarData","StarGraph","StartAsynchronousTask","StartExternalSession","StartingStepSize","StartOfLine","StartOfString","StartProcess","StartScheduledTask","StartupSound","StartWebSession","StateDimensions","StateFeedbackGains","StateOutputEstimator","StateResponse","StateSpaceModel","StateSpaceRealization","StateSpaceTransform","StateTransformationLinearize","StationaryDistribution","StationaryWaveletPacketTransform","StationaryWaveletTransform","StatusArea","StatusCentrality","StepMonitor","StereochemistryElements","StieltjesGamma","StippleShading","StirlingS1","StirlingS2","StopAsynchronousTask","StoppingPowerData","StopScheduledTask","StrataVariables","StratonovichProcess","StraussHardcorePointProcess","StraussPointProcess","StreamColorFunction","StreamColorFunctionScaling","StreamDensityPlot","StreamMarkers","StreamPlot","StreamPlot3D","StreamPoints","StreamPosition","Streams","StreamScale","StreamStyle","StrictInequalities","String","StringBreak","StringByteCount","StringCases","StringContainsQ","StringCount","StringDelete","StringDrop","StringEndsQ","StringExpression","StringExtract","StringForm","StringFormat","StringFormatQ","StringFreeQ","StringInsert","StringJoin","StringLength","StringMatchQ","StringPadLeft","StringPadRight","StringPart","StringPartition","StringPosition","StringQ","StringRepeat","StringReplace","StringReplaceList","StringReplacePart","StringReverse","StringRiffle","StringRotateLeft","StringRotateRight","StringSkeleton","StringSplit","StringStartsQ","StringTake","StringTakeDrop","StringTemplate","StringToByteArray","StringToStream","StringTrim","StripBoxes","StripOnInput","StripStyleOnPaste","StripWrapperBoxes","StrokeForm","Struckthrough","StructuralImportance","StructuredArray","StructuredArrayHeadQ","StructuredSelection","StruveH","StruveL","Stub","StudentTDistribution","Style","StyleBox","StyleBoxAutoDelete","StyleData","StyleDefinitions","StyleForm","StyleHints","StyleKeyMapping","StyleMenuListing","StyleNameDialogSettings","StyleNames","StylePrint","StyleSheetPath","Subdivide","Subfactorial","Subgraph","SubMinus","SubPlus","SubresultantPolynomialRemainders","SubresultantPolynomials","Subresultants","Subscript","SubscriptBox","SubscriptBoxOptions","Subscripted","Subsequences","Subset","SubsetCases","SubsetCount","SubsetEqual","SubsetMap","SubsetPosition","SubsetQ","SubsetReplace","Subsets","SubStar","SubstitutionSystem","Subsuperscript","SubsuperscriptBox","SubsuperscriptBoxOptions","SubtitleEncoding","SubtitleTrackSelection","Subtract","SubtractFrom","SubtractSides","SubValues","Succeeds","SucceedsEqual","SucceedsSlantEqual","SucceedsTilde","Success","SuchThat","Sum","SumConvergence","SummationLayer","Sunday","SunPosition","Sunrise","Sunset","SuperDagger","SuperMinus","SupernovaData","SuperPlus","Superscript","SuperscriptBox","SuperscriptBoxOptions","Superset","SupersetEqual","SuperStar","Surd","SurdForm","SurfaceAppearance","SurfaceArea","SurfaceColor","SurfaceData","SurfaceGraphics","SurvivalDistribution","SurvivalFunction","SurvivalModel","SurvivalModelFit","SuspendPacket","SuzukiDistribution","SuzukiGroupSuz","SwatchLegend","Switch","Symbol","SymbolName","SymletWavelet","Symmetric","SymmetricDifference","SymmetricGroup","SymmetricKey","SymmetricMatrixQ","SymmetricPolynomial","SymmetricReduction","Symmetrize","SymmetrizedArray","SymmetrizedArrayRules","SymmetrizedDependentComponents","SymmetrizedIndependentComponents","SymmetrizedReplacePart","SynchronousInitialization","SynchronousUpdating","Synonyms","Syntax","SyntaxForm","SyntaxInformation","SyntaxLength","SyntaxPacket","SyntaxQ","SynthesizeMissingValues","SystemCredential","SystemCredentialData","SystemCredentialKey","SystemCredentialKeys","SystemCredentialStoreObject","SystemDialogInput","SystemException","SystemGet","SystemHelpPath","SystemInformation","SystemInformationData","SystemInstall","SystemModel","SystemModeler","SystemModelExamples","SystemModelLinearize","SystemModelMeasurements","SystemModelParametricSimulate","SystemModelPlot","SystemModelProgressReporting","SystemModelReliability","SystemModels","SystemModelSimulate","SystemModelSimulateSensitivity","SystemModelSimulationData","SystemOpen","SystemOptions","SystemProcessData","SystemProcesses","SystemsConnectionsModel","SystemsModelControllerData","SystemsModelDelay","SystemsModelDelayApproximate","SystemsModelDelete","SystemsModelDimensions","SystemsModelExtract","SystemsModelFeedbackConnect","SystemsModelLabels","SystemsModelLinearity","SystemsModelMerge","SystemsModelOrder","SystemsModelParallelConnect","SystemsModelSeriesConnect","SystemsModelStateFeedbackConnect","SystemsModelVectorRelativeOrders","SystemStub","SystemTest","Tab","TabFilling","Table","TableAlignments","TableDepth","TableDirections","TableForm","TableHeadings","TableSpacing","TableView","TableViewBox","TableViewBoxAlignment","TableViewBoxBackground","TableViewBoxHeaders","TableViewBoxItemSize","TableViewBoxItemStyle","TableViewBoxOptions","TabSpacings","TabView","TabViewBox","TabViewBoxOptions","TagBox","TagBoxNote","TagBoxOptions","TaggingRules","TagSet","TagSetDelayed","TagStyle","TagUnset","Take","TakeDrop","TakeLargest","TakeLargestBy","TakeList","TakeSmallest","TakeSmallestBy","TakeWhile","Tally","Tan","Tanh","TargetDevice","TargetFunctions","TargetSystem","TargetUnits","TaskAbort","TaskExecute","TaskObject","TaskRemove","TaskResume","Tasks","TaskSuspend","TaskWait","TautologyQ","TelegraphProcess","TemplateApply","TemplateArgBox","TemplateBox","TemplateBoxOptions","TemplateEvaluate","TemplateExpression","TemplateIf","TemplateObject","TemplateSequence","TemplateSlot","TemplateSlotSequence","TemplateUnevaluated","TemplateVerbatim","TemplateWith","TemporalData","TemporalRegularity","Temporary","TemporaryVariable","TensorContract","TensorDimensions","TensorExpand","TensorProduct","TensorQ","TensorRank","TensorReduce","TensorSymmetry","TensorTranspose","TensorWedge","TerminatedEvaluation","TernaryListPlot","TernaryPlotCorners","TestID","TestReport","TestReportObject","TestResultObject","Tetrahedron","TetrahedronBox","TetrahedronBoxOptions","TeXForm","TeXSave","Text","Text3DBox","Text3DBoxOptions","TextAlignment","TextBand","TextBoundingBox","TextBox","TextCases","TextCell","TextClipboardType","TextContents","TextData","TextElement","TextForm","TextGrid","TextJustification","TextLine","TextPacket","TextParagraph","TextPosition","TextRecognize","TextSearch","TextSearchReport","TextSentences","TextString","TextStructure","TextStyle","TextTranslation","Texture","TextureCoordinateFunction","TextureCoordinateScaling","TextWords","Therefore","ThermodynamicData","ThermometerGauge","Thick","Thickness","Thin","Thinning","ThisLink","ThomasPointProcess","ThompsonGroupTh","Thread","Threaded","ThreadingLayer","ThreeJSymbol","Threshold","Through","Throw","ThueMorse","Thumbnail","Thursday","TickDirection","TickLabelOrientation","TickLabelPositioning","TickLabels","TickLengths","TickPositions","Ticks","TicksStyle","TideData","Tilde","TildeEqual","TildeFullEqual","TildeTilde","TimeConstrained","TimeConstraint","TimeDirection","TimeFormat","TimeGoal","TimelinePlot","TimeObject","TimeObjectQ","TimeRemaining","Times","TimesBy","TimeSeries","TimeSeriesAggregate","TimeSeriesForecast","TimeSeriesInsert","TimeSeriesInvertibility","TimeSeriesMap","TimeSeriesMapThread","TimeSeriesModel","TimeSeriesModelFit","TimeSeriesResample","TimeSeriesRescale","TimeSeriesShift","TimeSeriesThread","TimeSeriesWindow","TimeSystem","TimeSystemConvert","TimeUsed","TimeValue","TimeWarpingCorrespondence","TimeWarpingDistance","TimeZone","TimeZoneConvert","TimeZoneOffset","Timing","Tiny","TitleGrouping","TitsGroupT","ToBoxes","ToCharacterCode","ToColor","ToContinuousTimeModel","ToDate","Today","ToDiscreteTimeModel","ToEntity","ToeplitzMatrix","ToExpression","ToFileName","Together","Toggle","ToggleFalse","Toggler","TogglerBar","TogglerBox","TogglerBoxOptions","ToHeldExpression","ToInvertibleTimeSeries","TokenWords","Tolerance","ToLowerCase","Tomorrow","ToNumberField","TooBig","Tooltip","TooltipBox","TooltipBoxOptions","TooltipDelay","TooltipStyle","ToonShading","Top","TopHatTransform","ToPolarCoordinates","TopologicalSort","ToRadicals","ToRawPointer","ToRules","Torus","TorusGraph","ToSphericalCoordinates","ToString","Total","TotalHeight","TotalLayer","TotalVariationFilter","TotalWidth","TouchPosition","TouchscreenAutoZoom","TouchscreenControlPlacement","ToUpperCase","TourVideo","Tr","Trace","TraceAbove","TraceAction","TraceBackward","TraceDepth","TraceDialog","TraceForward","TraceInternal","TraceLevel","TraceOff","TraceOn","TraceOriginal","TracePrint","TraceScan","TrackCellChangeTimes","TrackedSymbols","TrackingFunction","TracyWidomDistribution","TradingChart","TraditionalForm","TraditionalFunctionNotation","TraditionalNotation","TraditionalOrder","TrainImageContentDetector","TrainingProgressCheckpointing","TrainingProgressFunction","TrainingProgressMeasurements","TrainingProgressReporting","TrainingStoppingCriterion","TrainingUpdateSchedule","TrainTextContentDetector","TransferFunctionCancel","TransferFunctionExpand","TransferFunctionFactor","TransferFunctionModel","TransferFunctionPoles","TransferFunctionTransform","TransferFunctionZeros","TransformationClass","TransformationFunction","TransformationFunctions","TransformationMatrix","TransformedDistribution","TransformedField","TransformedProcess","TransformedRegion","TransitionDirection","TransitionDuration","TransitionEffect","TransitiveClosureGraph","TransitiveReductionGraph","Translate","TranslationOptions","TranslationTransform","Transliterate","Transparent","TransparentColor","Transpose","TransposeLayer","TrapEnterKey","TrapSelection","TravelDirections","TravelDirectionsData","TravelDistance","TravelDistanceList","TravelMethod","TravelTime","Tree","TreeCases","TreeChildren","TreeCount","TreeData","TreeDelete","TreeDepth","TreeElementCoordinates","TreeElementLabel","TreeElementLabelFunction","TreeElementLabelStyle","TreeElementShape","TreeElementShapeFunction","TreeElementSize","TreeElementSizeFunction","TreeElementStyle","TreeElementStyleFunction","TreeExpression","TreeExtract","TreeFold","TreeForm","TreeGraph","TreeGraphQ","TreeInsert","TreeLayout","TreeLeafCount","TreeLeafQ","TreeLeaves","TreeLevel","TreeMap","TreeMapAt","TreeOutline","TreePlot","TreePosition","TreeQ","TreeReplacePart","TreeRules","TreeScan","TreeSelect","TreeSize","TreeTraversalOrder","TrendStyle","Triangle","TriangleCenter","TriangleConstruct","TriangleMeasurement","TriangleWave","TriangularDistribution","TriangulateMesh","Trig","TrigExpand","TrigFactor","TrigFactorList","Trigger","TrigReduce","TrigToExp","TrimmedMean","TrimmedVariance","TropicalStormData","True","TrueQ","TruncatedDistribution","TruncatedPolyhedron","TsallisQExponentialDistribution","TsallisQGaussianDistribution","TTest","Tube","TubeBezierCurveBox","TubeBezierCurveBoxOptions","TubeBox","TubeBoxOptions","TubeBSplineCurveBox","TubeBSplineCurveBoxOptions","Tuesday","TukeyLambdaDistribution","TukeyWindow","TunnelData","Tuples","TuranGraph","TuringMachine","TuttePolynomial","TwoWayRule","Typed","TypeDeclaration","TypeEvaluate","TypeHint","TypeOf","TypeSpecifier","UnateQ","Uncompress","UnconstrainedParameters","Undefined","UnderBar","Underflow","Underlined","Underoverscript","UnderoverscriptBox","UnderoverscriptBoxOptions","Underscript","UnderscriptBox","UnderscriptBoxOptions","UnderseaFeatureData","UndirectedEdge","UndirectedGraph","UndirectedGraphQ","UndoOptions","UndoTrackedVariables","Unequal","UnequalTo","Unevaluated","UniformDistribution","UniformGraphDistribution","UniformPolyhedron","UniformSumDistribution","Uninstall","Union","UnionedEntityClass","UnionPlus","Unique","UniqueElements","UnitaryMatrixQ","UnitBox","UnitConvert","UnitDimensions","Unitize","UnitRootTest","UnitSimplify","UnitStep","UnitSystem","UnitTriangle","UnitVector","UnitVectorLayer","UnityDimensions","UniverseModelData","UniversityData","UnixTime","UnlabeledTree","UnmanageObject","Unprotect","UnregisterExternalEvaluator","UnsameQ","UnsavedVariables","Unset","UnsetShared","Until","UntrackedVariables","Up","UpArrow","UpArrowBar","UpArrowDownArrow","Update","UpdateDynamicObjects","UpdateDynamicObjectsSynchronous","UpdateInterval","UpdatePacletSites","UpdateSearchIndex","UpDownArrow","UpEquilibrium","UpperCaseQ","UpperLeftArrow","UpperRightArrow","UpperTriangularize","UpperTriangularMatrix","UpperTriangularMatrixQ","Upsample","UpSet","UpSetDelayed","UpTee","UpTeeArrow","UpTo","UpValues","URL","URLBuild","URLDecode","URLDispatcher","URLDownload","URLDownloadSubmit","URLEncode","URLExecute","URLExpand","URLFetch","URLFetchAsynchronous","URLParse","URLQueryDecode","URLQueryEncode","URLRead","URLResponseTime","URLSave","URLSaveAsynchronous","URLShorten","URLSubmit","UseEmbeddedLibrary","UseGraphicsRange","UserDefinedWavelet","Using","UsingFrontEnd","UtilityFunction","V2Get","ValenceErrorHandling","ValenceFilling","ValidationLength","ValidationSet","ValueBox","ValueBoxOptions","ValueDimensions","ValueForm","ValuePreprocessingFunction","ValueQ","Values","ValuesData","VandermondeMatrix","Variables","Variance","VarianceEquivalenceTest","VarianceEstimatorFunction","VarianceGammaDistribution","VarianceGammaPointProcess","VarianceTest","VariogramFunction","VariogramModel","VectorAngle","VectorAround","VectorAspectRatio","VectorColorFunction","VectorColorFunctionScaling","VectorDensityPlot","VectorDisplacementPlot","VectorDisplacementPlot3D","VectorGlyphData","VectorGreater","VectorGreaterEqual","VectorLess","VectorLessEqual","VectorMarkers","VectorPlot","VectorPlot3D","VectorPoints","VectorQ","VectorRange","Vectors","VectorScale","VectorScaling","VectorSizes","VectorStyle","Vee","Verbatim","Verbose","VerificationTest","VerifyConvergence","VerifyDerivedKey","VerifyDigitalSignature","VerifyFileSignature","VerifyInterpretation","VerifySecurityCertificates","VerifySolutions","VerifyTestAssumptions","VersionedPreferences","VertexAdd","VertexCapacity","VertexChromaticNumber","VertexColors","VertexComponent","VertexConnectivity","VertexContract","VertexCoordinateRules","VertexCoordinates","VertexCorrelationSimilarity","VertexCosineSimilarity","VertexCount","VertexCoverQ","VertexDataCoordinates","VertexDegree","VertexDelete","VertexDiceSimilarity","VertexEccentricity","VertexInComponent","VertexInComponentGraph","VertexInDegree","VertexIndex","VertexJaccardSimilarity","VertexLabeling","VertexLabels","VertexLabelStyle","VertexList","VertexNormals","VertexOutComponent","VertexOutComponentGraph","VertexOutDegree","VertexQ","VertexRenderingFunction","VertexReplace","VertexShape","VertexShapeFunction","VertexSize","VertexStyle","VertexTextureCoordinates","VertexTransitiveGraphQ","VertexWeight","VertexWeightedGraphQ","Vertical","VerticalBar","VerticalForm","VerticalGauge","VerticalSeparator","VerticalSlider","VerticalTilde","Video","VideoCapture","VideoCombine","VideoDelete","VideoEncoding","VideoExtractFrames","VideoFrameList","VideoFrameMap","VideoGenerator","VideoInsert","VideoIntervals","VideoJoin","VideoMap","VideoMapList","VideoMapTimeSeries","VideoPadding","VideoPause","VideoPlay","VideoQ","VideoRecord","VideoReplace","VideoScreenCapture","VideoSplit","VideoStop","VideoStream","VideoStreams","VideoTimeStretch","VideoTrackSelection","VideoTranscode","VideoTransparency","VideoTrim","ViewAngle","ViewCenter","ViewMatrix","ViewPoint","ViewPointSelectorSettings","ViewPort","ViewProjection","ViewRange","ViewVector","ViewVertical","VirtualGroupData","Visible","VisibleCell","VoiceStyleData","VoigtDistribution","VolcanoData","Volume","VonMisesDistribution","VoronoiMesh","WaitAll","WaitAsynchronousTask","WaitNext","WaitUntil","WakebyDistribution","WalleniusHypergeometricDistribution","WaringYuleDistribution","WarpingCorrespondence","WarpingDistance","WatershedComponents","WatsonUSquareTest","WattsStrogatzGraphDistribution","WaveletBestBasis","WaveletFilterCoefficients","WaveletImagePlot","WaveletListPlot","WaveletMapIndexed","WaveletMatrixPlot","WaveletPhi","WaveletPsi","WaveletScale","WaveletScalogram","WaveletThreshold","WavePDEComponent","WeaklyConnectedComponents","WeaklyConnectedGraphComponents","WeaklyConnectedGraphQ","WeakStationarity","WeatherData","WeatherForecastData","WebAudioSearch","WebColumn","WebElementObject","WeberE","WebExecute","WebImage","WebImageSearch","WebItem","WebPageMetaInformation","WebRow","WebSearch","WebSessionObject","WebSessions","WebWindowObject","Wedge","Wednesday","WeibullDistribution","WeierstrassE1","WeierstrassE2","WeierstrassE3","WeierstrassEta1","WeierstrassEta2","WeierstrassEta3","WeierstrassHalfPeriods","WeierstrassHalfPeriodW1","WeierstrassHalfPeriodW2","WeierstrassHalfPeriodW3","WeierstrassInvariantG2","WeierstrassInvariantG3","WeierstrassInvariants","WeierstrassP","WeierstrassPPrime","WeierstrassSigma","WeierstrassZeta","WeightedAdjacencyGraph","WeightedAdjacencyMatrix","WeightedData","WeightedGraphQ","Weights","WelchWindow","WheelGraph","WhenEvent","Which","While","White","WhiteNoiseProcess","WhitePoint","Whitespace","WhitespaceCharacter","WhittakerM","WhittakerW","WholeCellGroupOpener","WienerFilter","WienerProcess","WignerD","WignerSemicircleDistribution","WikidataData","WikidataSearch","WikipediaData","WikipediaSearch","WilksW","WilksWTest","WindDirectionData","WindingCount","WindingPolygon","WindowClickSelect","WindowElements","WindowFloating","WindowFrame","WindowFrameElements","WindowMargins","WindowMovable","WindowOpacity","WindowPersistentStyles","WindowSelected","WindowSize","WindowStatusArea","WindowTitle","WindowToolbars","WindowWidth","WindSpeedData","WindVectorData","WinsorizedMean","WinsorizedVariance","WishartMatrixDistribution","With","WithCleanup","WithLock","WolframAlpha","WolframAlphaDate","WolframAlphaQuantity","WolframAlphaResult","WolframCloudSettings","WolframLanguageData","Word","WordBoundary","WordCharacter","WordCloud","WordCount","WordCounts","WordData","WordDefinition","WordFrequency","WordFrequencyData","WordList","WordOrientation","WordSearch","WordSelectionFunction","WordSeparators","WordSpacings","WordStem","WordTranslation","WorkingPrecision","WrapAround","Write","WriteLine","WriteString","Wronskian","XMLElement","XMLObject","XMLTemplate","Xnor","Xor","XYZColor","Yellow","Yesterday","YuleDissimilarity","ZernikeR","ZeroSymmetric","ZeroTest","ZeroWidthTimes","Zeta","ZetaZero","ZIPCodeData","ZipfDistribution","ZoomCenter","ZoomFactor","ZTest","ZTransform","$Aborted","$ActivationGroupID","$ActivationKey","$ActivationUserRegistered","$AddOnsDirectory","$AllowDataUpdates","$AllowExternalChannelFunctions","$AllowInternet","$AssertFunction","$Assumptions","$AsynchronousTask","$AudioDecoders","$AudioEncoders","$AudioInputDevices","$AudioOutputDevices","$BaseDirectory","$BasePacletsDirectory","$BatchInput","$BatchOutput","$BlockchainBase","$BoxForms","$ByteOrdering","$CacheBaseDirectory","$Canceled","$ChannelBase","$CharacterEncoding","$CharacterEncodings","$CloudAccountName","$CloudBase","$CloudConnected","$CloudConnection","$CloudCreditsAvailable","$CloudEvaluation","$CloudExpressionBase","$CloudObjectNameFormat","$CloudObjectURLType","$CloudRootDirectory","$CloudSymbolBase","$CloudUserID","$CloudUserUUID","$CloudVersion","$CloudVersionNumber","$CloudWolframEngineVersionNumber","$CommandLine","$CompilationTarget","$CompilerEnvironment","$ConditionHold","$ConfiguredKernels","$Context","$ContextAliases","$ContextPath","$ControlActiveSetting","$Cookies","$CookieStore","$CreationDate","$CryptographicEllipticCurveNames","$CurrentLink","$CurrentTask","$CurrentWebSession","$DataStructures","$DateStringFormat","$DefaultAudioInputDevice","$DefaultAudioOutputDevice","$DefaultFont","$DefaultFrontEnd","$DefaultImagingDevice","$DefaultKernels","$DefaultLocalBase","$DefaultLocalKernel","$DefaultMailbox","$DefaultNetworkInterface","$DefaultPath","$DefaultProxyRules","$DefaultRemoteBatchSubmissionEnvironment","$DefaultRemoteKernel","$DefaultSystemCredentialStore","$Display","$DisplayFunction","$DistributedContexts","$DynamicEvaluation","$Echo","$EmbedCodeEnvironments","$EmbeddableServices","$EntityStores","$Epilog","$EvaluationCloudBase","$EvaluationCloudObject","$EvaluationEnvironment","$ExportFormats","$ExternalIdentifierTypes","$ExternalStorageBase","$Failed","$FinancialDataSource","$FontFamilies","$FormatType","$FrontEnd","$FrontEndSession","$GeneratedAssetLocation","$GeoEntityTypes","$GeoLocation","$GeoLocationCity","$GeoLocationCountry","$GeoLocationPrecision","$GeoLocationSource","$HistoryLength","$HomeDirectory","$HTMLExportRules","$HTTPCookies","$HTTPRequest","$IgnoreEOF","$ImageFormattingWidth","$ImageResolution","$ImagingDevice","$ImagingDevices","$ImportFormats","$IncomingMailSettings","$InitialDirectory","$Initialization","$InitializationContexts","$Input","$InputFileName","$InputStreamMethods","$Inspector","$InstallationDate","$InstallationDirectory","$InterfaceEnvironment","$InterpreterTypes","$IterationLimit","$KernelCount","$KernelID","$Language","$LaunchDirectory","$LibraryPath","$LicenseExpirationDate","$LicenseID","$LicenseProcesses","$LicenseServer","$LicenseSubprocesses","$LicenseType","$Line","$Linked","$LinkSupported","$LoadedFiles","$LocalBase","$LocalSymbolBase","$MachineAddresses","$MachineDomain","$MachineDomains","$MachineEpsilon","$MachineID","$MachineName","$MachinePrecision","$MachineType","$MaxDisplayedChildren","$MaxExtraPrecision","$MaxLicenseProcesses","$MaxLicenseSubprocesses","$MaxMachineNumber","$MaxNumber","$MaxPiecewiseCases","$MaxPrecision","$MaxRootDegree","$MessageGroups","$MessageList","$MessagePrePrint","$Messages","$MinMachineNumber","$MinNumber","$MinorReleaseNumber","$MinPrecision","$MobilePhone","$ModuleNumber","$NetworkConnected","$NetworkInterfaces","$NetworkLicense","$NewMessage","$NewSymbol","$NotebookInlineStorageLimit","$Notebooks","$NoValue","$NumberMarks","$Off","$OperatingSystem","$Output","$OutputForms","$OutputSizeLimit","$OutputStreamMethods","$Packages","$ParentLink","$ParentProcessID","$PasswordFile","$PatchLevelID","$Path","$PathnameSeparator","$PerformanceGoal","$Permissions","$PermissionsGroupBase","$PersistenceBase","$PersistencePath","$PipeSupported","$PlotTheme","$Post","$Pre","$PreferencesDirectory","$PreInitialization","$PrePrint","$PreRead","$PrintForms","$PrintLiteral","$Printout3DPreviewer","$ProcessID","$ProcessorCount","$ProcessorType","$ProductInformation","$ProgramName","$ProgressReporting","$PublisherID","$RandomGeneratorState","$RandomState","$RecursionLimit","$RegisteredDeviceClasses","$RegisteredUserName","$ReleaseNumber","$RequesterAddress","$RequesterCloudUserID","$RequesterCloudUserUUID","$RequesterWolframID","$RequesterWolframUUID","$ResourceSystemBase","$ResourceSystemPath","$RootDirectory","$ScheduledTask","$ScriptCommandLine","$ScriptInputString","$SecuredAuthenticationKeyTokens","$ServiceCreditsAvailable","$Services","$SessionID","$SetParentLink","$SharedFunctions","$SharedVariables","$SoundDisplay","$SoundDisplayFunction","$SourceLink","$SSHAuthentication","$SubtitleDecoders","$SubtitleEncoders","$SummaryBoxDataSizeLimit","$SuppressInputFormHeads","$SynchronousEvaluation","$SyntaxHandler","$System","$SystemCharacterEncoding","$SystemCredentialStore","$SystemID","$SystemMemory","$SystemShell","$SystemTimeZone","$SystemWordLength","$TargetSystems","$TemplatePath","$TemporaryDirectory","$TemporaryPrefix","$TestFileName","$TextStyle","$TimedOut","$TimeUnit","$TimeZone","$TimeZoneEntity","$TopDirectory","$TraceOff","$TraceOn","$TracePattern","$TracePostAction","$TracePreAction","$UnitSystem","$Urgent","$UserAddOnsDirectory","$UserAgentLanguages","$UserAgentMachine","$UserAgentName","$UserAgentOperatingSystem","$UserAgentString","$UserAgentVersion","$UserBaseDirectory","$UserBasePacletsDirectory","$UserDocumentsDirectory","$Username","$UserName","$UserURLBase","$Version","$VersionNumber","$VideoDecoders","$VideoEncoders","$VoiceStyles","$WolframDocumentsDirectory","$WolframID","$WolframUUID"];function Ofn(e){const t=e.regex,n=/([2-9]|[1-2]\d|[3][0-5])\^\^/,r=/(\w*\.\w+|\w+\.\w*|\w+)/,i=/(\d*\.\d+|\d+\.\d*|\d+)/,o=t.either(t.concat(n,r),i),a=/``[+-]?(\d*\.\d+|\d+\.\d*|\d+)/,s=/`([+-]?(\d*\.\d+|\d+\.\d*|\d+))?/,l=t.either(a,s),c=/\*\^[+-]?\d+/,u={className:"number",relevance:0,begin:t.concat(o,t.optional(l),t.optional(c))},d=/[a-zA-Z$][a-zA-Z0-9$]*/,f=new Set(xfn),h={variants:[{className:"builtin-symbol",begin:d,"on:begin":(E,w)=>{f.has(E[0])||w.ignoreMatch()}},{className:"symbol",relevance:0,begin:d}]},m={className:"named-character",begin:/\\\[[$a-zA-Z][$a-zA-Z0-9]+\]/},g={className:"operator",relevance:0,begin:/[+\-*/,;.:@~=><&|_`'^?!%]+/},v={className:"pattern",relevance:0,begin:/([a-zA-Z$][a-zA-Z0-9$]*)?_+([a-zA-Z$][a-zA-Z0-9$]*)?/},y={className:"slot",relevance:0,begin:/#[a-zA-Z$][a-zA-Z0-9$]*|#+[0-9]?/},b={className:"brace",relevance:0,begin:/[[\](){}]/},_={className:"message-name",relevance:0,begin:t.concat("::",d)};return{name:"Mathematica",aliases:["mma","wl"],classNameAliases:{brace:"punctuation",pattern:"type",slot:"type",symbol:"variable","named-character":"variable","builtin-symbol":"built_in","message-name":"string"},contains:[e.COMMENT(/\(\*/,/\*\)/,{contains:["self"]}),v,y,_,h,m,e.QUOTE_STRING_MODE,u,g,b]}}function Rfn(e){const t="('|\\.')+",n={relevance:0,contains:[{begin:t}]};return{name:"Matlab",keywords:{keyword:"arguments break case catch classdef continue else elseif end enumeration events for function global if methods otherwise parfor persistent properties return spmd switch try while",built_in:"sin sind sinh asin asind asinh cos cosd cosh acos acosd acosh tan tand tanh atan atand atan2 atanh sec secd sech asec asecd asech csc cscd csch acsc acscd acsch cot cotd coth acot acotd acoth hypot exp expm1 log log1p log10 log2 pow2 realpow reallog realsqrt sqrt nthroot nextpow2 abs angle complex conj imag real unwrap isreal cplxpair fix floor ceil round mod rem sign airy besselj bessely besselh besseli besselk beta betainc betaln ellipj ellipke erf erfc erfcx erfinv expint gamma gammainc gammaln psi legendre cross dot factor isprime primes gcd lcm rat rats perms nchoosek factorial cart2sph cart2pol pol2cart sph2cart hsv2rgb rgb2hsv zeros ones eye repmat rand randn linspace logspace freqspace meshgrid accumarray size length ndims numel disp isempty isequal isequalwithequalnans cat reshape diag blkdiag tril triu fliplr flipud flipdim rot90 find sub2ind ind2sub bsxfun ndgrid permute ipermute shiftdim circshift squeeze isscalar isvector ans eps realmax realmin pi i|0 inf nan isnan isinf isfinite j|0 why compan gallery hadamard hankel hilb invhilb magic pascal rosser toeplitz vander wilkinson max min nanmax nanmin mean nanmean type table readtable writetable sortrows sort figure plot plot3 scatter scatter3 cellfun legend intersect ismember procrustes hold num2cell "},illegal:'(//|"|#|/\\*|\\s+/\\w+)',contains:[{className:"function",beginKeywords:"function",end:"$",contains:[e.UNDERSCORE_TITLE_MODE,{className:"params",variants:[{begin:"\\(",end:"\\)"},{begin:"\\[",end:"\\]"}]}]},{className:"built_in",begin:/true|false/,relevance:0,starts:n},{begin:"[a-zA-Z][a-zA-Z_0-9]*"+t,relevance:0},{className:"number",begin:e.C_NUMBER_RE,relevance:0,starts:n},{className:"string",begin:"'",end:"'",contains:[{begin:"''"}]},{begin:/\]|\}|\)/,relevance:0,starts:n},{className:"string",begin:'"',end:'"',contains:[{begin:'""'}],starts:n},e.COMMENT("^\\s*%\\{\\s*$","^\\s*%\\}\\s*$"),e.COMMENT("%","$")]}}function Ifn(e){return{name:"Maxima",keywords:{$pattern:"[A-Za-z_%][0-9A-Za-z_%]*",keyword:"if then else elseif for thru do while unless step in and or not",literal:"true false unknown inf minf ind und %e %i %pi %phi %gamma",built_in:" abasep abs absint absolute_real_time acos acosh acot acoth acsc acsch activate addcol add_edge add_edges addmatrices addrow add_vertex add_vertices adjacency_matrix adjoin adjoint af agd airy airy_ai airy_bi airy_dai airy_dbi algsys alg_type alias allroots alphacharp alphanumericp amortization %and annuity_fv annuity_pv antid antidiff AntiDifference append appendfile apply apply1 apply2 applyb1 apropos args arit_amortization arithmetic arithsum array arrayapply arrayinfo arraymake arraysetapply ascii asec asech asin asinh askinteger asksign assoc assoc_legendre_p assoc_legendre_q assume assume_external_byte_order asympa at atan atan2 atanh atensimp atom atvalue augcoefmatrix augmented_lagrangian_method av average_degree backtrace bars barsplot barsplot_description base64 base64_decode bashindices batch batchload bc2 bdvac belln benefit_cost bern bernpoly bernstein_approx bernstein_expand bernstein_poly bessel bessel_i bessel_j bessel_k bessel_simplify bessel_y beta beta_incomplete beta_incomplete_generalized beta_incomplete_regularized bezout bfallroots bffac bf_find_root bf_fmin_cobyla bfhzeta bfloat bfloatp bfpsi bfpsi0 bfzeta biconnected_components bimetric binomial bipartition block blockmatrixp bode_gain bode_phase bothcoef box boxplot boxplot_description break bug_report build_info|10 buildq build_sample burn cabs canform canten cardinality carg cartan cartesian_product catch cauchy_matrix cbffac cdf_bernoulli cdf_beta cdf_binomial cdf_cauchy cdf_chi2 cdf_continuous_uniform cdf_discrete_uniform cdf_exp cdf_f cdf_gamma cdf_general_finite_discrete cdf_geometric cdf_gumbel cdf_hypergeometric cdf_laplace cdf_logistic cdf_lognormal cdf_negative_binomial cdf_noncentral_chi2 cdf_noncentral_student_t cdf_normal cdf_pareto cdf_poisson cdf_rank_sum cdf_rayleigh cdf_signed_rank cdf_student_t cdf_weibull cdisplay ceiling central_moment cequal cequalignore cf cfdisrep cfexpand cgeodesic cgreaterp cgreaterpignore changename changevar chaosgame charat charfun charfun2 charlist charp charpoly chdir chebyshev_t chebyshev_u checkdiv check_overlaps chinese cholesky christof chromatic_index chromatic_number cint circulant_graph clear_edge_weight clear_rules clear_vertex_label clebsch_gordan clebsch_graph clessp clesspignore close closefile cmetric coeff coefmatrix cograd col collapse collectterms columnop columnspace columnswap columnvector combination combine comp2pui compare compfile compile compile_file complement_graph complete_bipartite_graph complete_graph complex_number_p components compose_functions concan concat conjugate conmetderiv connected_components connect_vertices cons constant constantp constituent constvalue cont2part content continuous_freq contortion contour_plot contract contract_edge contragrad contrib_ode convert coord copy copy_file copy_graph copylist copymatrix cor cos cosh cot coth cov cov1 covdiff covect covers crc24sum create_graph create_list csc csch csetup cspline ctaylor ct_coordsys ctransform ctranspose cube_graph cuboctahedron_graph cunlisp cv cycle_digraph cycle_graph cylindrical days360 dblint deactivate declare declare_constvalue declare_dimensions declare_fundamental_dimensions declare_fundamental_units declare_qty declare_translated declare_unit_conversion declare_units declare_weights decsym defcon define define_alt_display define_variable defint defmatch defrule defstruct deftaylor degree_sequence del delete deleten delta demo demoivre denom depends derivdegree derivlist describe desolve determinant dfloat dgauss_a dgauss_b dgeev dgemm dgeqrf dgesv dgesvd diag diagmatrix diag_matrix diagmatrixp diameter diff digitcharp dimacs_export dimacs_import dimension dimensionless dimensions dimensions_as_list direct directory discrete_freq disjoin disjointp disolate disp dispcon dispform dispfun dispJordan display disprule dispterms distrib divide divisors divsum dkummer_m dkummer_u dlange dodecahedron_graph dotproduct dotsimp dpart draw draw2d draw3d drawdf draw_file draw_graph dscalar echelon edge_coloring edge_connectivity edges eigens_by_jacobi eigenvalues eigenvectors eighth einstein eivals eivects elapsed_real_time elapsed_run_time ele2comp ele2polynome ele2pui elem elementp elevation_grid elim elim_allbut eliminate eliminate_using ellipse elliptic_e elliptic_ec elliptic_eu elliptic_f elliptic_kc elliptic_pi ematrix empty_graph emptyp endcons entermatrix entertensor entier equal equalp equiv_classes erf erfc erf_generalized erfi errcatch error errormsg errors euler ev eval_string evenp every evolution evolution2d evundiff example exp expand expandwrt expandwrt_factored expint expintegral_chi expintegral_ci expintegral_e expintegral_e1 expintegral_ei expintegral_e_simplify expintegral_li expintegral_shi expintegral_si explicit explose exponentialize express expt exsec extdiff extract_linear_equations extremal_subset ezgcd %f f90 facsum factcomb factor factorfacsum factorial factorout factorsum facts fast_central_elements fast_linsolve fasttimes featurep fernfale fft fib fibtophi fifth filename_merge file_search file_type fillarray findde find_root find_root_abs find_root_error find_root_rel first fix flatten flength float floatnump floor flower_snark flush flush1deriv flushd flushnd flush_output fmin_cobyla forget fortran fourcos fourexpand fourier fourier_elim fourint fourintcos fourintsin foursimp foursin fourth fposition frame_bracket freeof freshline fresnel_c fresnel_s from_adjacency_matrix frucht_graph full_listify fullmap fullmapl fullratsimp fullratsubst fullsetify funcsolve fundamental_dimensions fundamental_units fundef funmake funp fv g0 g1 gamma gamma_greek gamma_incomplete gamma_incomplete_generalized gamma_incomplete_regularized gauss gauss_a gauss_b gaussprob gcd gcdex gcdivide gcfac gcfactor gd generalized_lambert_w genfact gen_laguerre genmatrix gensym geo_amortization geo_annuity_fv geo_annuity_pv geomap geometric geometric_mean geosum get getcurrentdirectory get_edge_weight getenv get_lu_factors get_output_stream_string get_pixel get_plot_option get_tex_environment get_tex_environment_default get_vertex_label gfactor gfactorsum ggf girth global_variances gn gnuplot_close gnuplot_replot gnuplot_reset gnuplot_restart gnuplot_start go Gosper GosperSum gr2d gr3d gradef gramschmidt graph6_decode graph6_encode graph6_export graph6_import graph_center graph_charpoly graph_eigenvalues graph_flow graph_order graph_periphery graph_product graph_size graph_union great_rhombicosidodecahedron_graph great_rhombicuboctahedron_graph grid_graph grind grobner_basis grotzch_graph hamilton_cycle hamilton_path hankel hankel_1 hankel_2 harmonic harmonic_mean hav heawood_graph hermite hessian hgfred hilbertmap hilbert_matrix hipow histogram histogram_description hodge horner hypergeometric i0 i1 %ibes ic1 ic2 ic_convert ichr1 ichr2 icosahedron_graph icosidodecahedron_graph icurvature ident identfor identity idiff idim idummy ieqn %if ifactors iframes ifs igcdex igeodesic_coords ilt image imagpart imetric implicit implicit_derivative implicit_plot indexed_tensor indices induced_subgraph inferencep inference_result infix info_display init_atensor init_ctensor in_neighbors innerproduct inpart inprod inrt integerp integer_partitions integrate intersect intersection intervalp intopois intosum invariant1 invariant2 inverse_fft inverse_jacobi_cd inverse_jacobi_cn inverse_jacobi_cs inverse_jacobi_dc inverse_jacobi_dn inverse_jacobi_ds inverse_jacobi_nc inverse_jacobi_nd inverse_jacobi_ns inverse_jacobi_sc inverse_jacobi_sd inverse_jacobi_sn invert invert_by_adjoint invert_by_lu inv_mod irr is is_biconnected is_bipartite is_connected is_digraph is_edge_in_graph is_graph is_graph_or_digraph ishow is_isomorphic isolate isomorphism is_planar isqrt isreal_p is_sconnected is_tree is_vertex_in_graph items_inference %j j0 j1 jacobi jacobian jacobi_cd jacobi_cn jacobi_cs jacobi_dc jacobi_dn jacobi_ds jacobi_nc jacobi_nd jacobi_ns jacobi_p jacobi_sc jacobi_sd jacobi_sn JF jn join jordan julia julia_set julia_sin %k kdels kdelta kill killcontext kostka kron_delta kronecker_product kummer_m kummer_u kurtosis kurtosis_bernoulli kurtosis_beta kurtosis_binomial kurtosis_chi2 kurtosis_continuous_uniform kurtosis_discrete_uniform kurtosis_exp kurtosis_f kurtosis_gamma kurtosis_general_finite_discrete kurtosis_geometric kurtosis_gumbel kurtosis_hypergeometric kurtosis_laplace kurtosis_logistic kurtosis_lognormal kurtosis_negative_binomial kurtosis_noncentral_chi2 kurtosis_noncentral_student_t kurtosis_normal kurtosis_pareto kurtosis_poisson kurtosis_rayleigh kurtosis_student_t kurtosis_weibull label labels lagrange laguerre lambda lambert_w laplace laplacian_matrix last lbfgs lc2kdt lcharp lc_l lcm lc_u ldefint ldisp ldisplay legendre_p legendre_q leinstein length let letrules letsimp levi_civita lfreeof lgtreillis lhs li liediff limit Lindstedt linear linearinterpol linear_program linear_regression line_graph linsolve listarray list_correlations listify list_matrix_entries list_nc_monomials listoftens listofvars listp lmax lmin load loadfile local locate_matrix_entry log logcontract log_gamma lopow lorentz_gauge lowercasep lpart lratsubst lreduce lriemann lsquares_estimates lsquares_estimates_approximate lsquares_estimates_exact lsquares_mse lsquares_residual_mse lsquares_residuals lsum ltreillis lu_backsub lucas lu_factor %m macroexpand macroexpand1 make_array makebox makefact makegamma make_graph make_level_picture makelist makeOrders make_poly_continent make_poly_country make_polygon make_random_state make_rgb_picture makeset make_string_input_stream make_string_output_stream make_transform mandelbrot mandelbrot_set map mapatom maplist matchdeclare matchfix mat_cond mat_fullunblocker mat_function mathml_display mat_norm matrix matrixmap matrixp matrix_size mattrace mat_trace mat_unblocker max max_clique max_degree max_flow maximize_lp max_independent_set max_matching maybe md5sum mean mean_bernoulli mean_beta mean_binomial mean_chi2 mean_continuous_uniform mean_deviation mean_discrete_uniform mean_exp mean_f mean_gamma mean_general_finite_discrete mean_geometric mean_gumbel mean_hypergeometric mean_laplace mean_logistic mean_lognormal mean_negative_binomial mean_noncentral_chi2 mean_noncentral_student_t mean_normal mean_pareto mean_poisson mean_rayleigh mean_student_t mean_weibull median median_deviation member mesh metricexpandall mgf1_sha1 min min_degree min_edge_cut minfactorial minimalPoly minimize_lp minimum_spanning_tree minor minpack_lsquares minpack_solve min_vertex_cover min_vertex_cut mkdir mnewton mod mode_declare mode_identity ModeMatrix moebius mon2schur mono monomial_dimensions multibernstein_poly multi_display_for_texinfo multi_elem multinomial multinomial_coeff multi_orbit multiplot_mode multi_pui multsym multthru mycielski_graph nary natural_unit nc_degree ncexpt ncharpoly negative_picture neighbors new newcontext newdet new_graph newline newton new_variable next_prime nicedummies niceindices ninth nofix nonarray noncentral_moment nonmetricity nonnegintegerp nonscalarp nonzeroandfreeof notequal nounify nptetrad npv nroots nterms ntermst nthroot nullity nullspace num numbered_boundaries numberp number_to_octets num_distinct_partitions numerval numfactor num_partitions nusum nzeta nzetai nzetar octets_to_number octets_to_oid odd_girth oddp ode2 ode_check odelin oid_to_octets op opena opena_binary openr openr_binary openw openw_binary operatorp opsubst optimize %or orbit orbits ordergreat ordergreatp orderless orderlessp orthogonal_complement orthopoly_recur orthopoly_weight outermap out_neighbors outofpois pade parabolic_cylinder_d parametric parametric_surface parg parGosper parse_string parse_timedate part part2cont partfrac partition partition_set partpol path_digraph path_graph pathname_directory pathname_name pathname_type pdf_bernoulli pdf_beta pdf_binomial pdf_cauchy pdf_chi2 pdf_continuous_uniform pdf_discrete_uniform pdf_exp pdf_f pdf_gamma pdf_general_finite_discrete pdf_geometric pdf_gumbel pdf_hypergeometric pdf_laplace pdf_logistic pdf_lognormal pdf_negative_binomial pdf_noncentral_chi2 pdf_noncentral_student_t pdf_normal pdf_pareto pdf_poisson pdf_rank_sum pdf_rayleigh pdf_signed_rank pdf_student_t pdf_weibull pearson_skewness permanent permut permutation permutations petersen_graph petrov pickapart picture_equalp picturep piechart piechart_description planar_embedding playback plog plot2d plot3d plotdf ploteq plsquares pochhammer points poisdiff poisexpt poisint poismap poisplus poissimp poissubst poistimes poistrim polar polarform polartorect polar_to_xy poly_add poly_buchberger poly_buchberger_criterion poly_colon_ideal poly_content polydecomp poly_depends_p poly_elimination_ideal poly_exact_divide poly_expand poly_expt poly_gcd polygon poly_grobner poly_grobner_equal poly_grobner_member poly_grobner_subsetp poly_ideal_intersection poly_ideal_polysaturation poly_ideal_polysaturation1 poly_ideal_saturation poly_ideal_saturation1 poly_lcm poly_minimization polymod poly_multiply polynome2ele polynomialp poly_normal_form poly_normalize poly_normalize_list poly_polysaturation_extension poly_primitive_part poly_pseudo_divide poly_reduced_grobner poly_reduction poly_saturation_extension poly_s_polynomial poly_subtract polytocompanion pop postfix potential power_mod powerseries powerset prefix prev_prime primep primes principal_components print printf printfile print_graph printpois printprops prodrac product properties propvars psi psubst ptriangularize pui pui2comp pui2ele pui2polynome pui_direct puireduc push put pv qput qrange qty quad_control quad_qag quad_qagi quad_qagp quad_qags quad_qawc quad_qawf quad_qawo quad_qaws quadrilateral quantile quantile_bernoulli quantile_beta quantile_binomial quantile_cauchy quantile_chi2 quantile_continuous_uniform quantile_discrete_uniform quantile_exp quantile_f quantile_gamma quantile_general_finite_discrete quantile_geometric quantile_gumbel quantile_hypergeometric quantile_laplace quantile_logistic quantile_lognormal quantile_negative_binomial quantile_noncentral_chi2 quantile_noncentral_student_t quantile_normal quantile_pareto quantile_poisson quantile_rayleigh quantile_student_t quantile_weibull quartile_skewness quit qunit quotient racah_v racah_w radcan radius random random_bernoulli random_beta random_binomial random_bipartite_graph random_cauchy random_chi2 random_continuous_uniform random_digraph random_discrete_uniform random_exp random_f random_gamma random_general_finite_discrete random_geometric random_graph random_graph1 random_gumbel random_hypergeometric random_laplace random_logistic random_lognormal random_negative_binomial random_network random_noncentral_chi2 random_noncentral_student_t random_normal random_pareto random_permutation random_poisson random_rayleigh random_regular_graph random_student_t random_tournament random_tree random_weibull range rank rat ratcoef ratdenom ratdiff ratdisrep ratexpand ratinterpol rational rationalize ratnumer ratnump ratp ratsimp ratsubst ratvars ratweight read read_array read_binary_array read_binary_list read_binary_matrix readbyte readchar read_hashed_array readline read_list read_matrix read_nested_list readonly read_xpm real_imagpart_to_conjugate realpart realroots rearray rectangle rectform rectform_log_if_constant recttopolar rediff reduce_consts reduce_order region region_boundaries region_boundaries_plus rem remainder remarray rembox remcomps remcon remcoord remfun remfunction remlet remove remove_constvalue remove_dimensions remove_edge remove_fundamental_dimensions remove_fundamental_units remove_plot_option remove_vertex rempart remrule remsym remvalue rename rename_file reset reset_displays residue resolvante resolvante_alternee1 resolvante_bipartite resolvante_diedrale resolvante_klein resolvante_klein3 resolvante_produit_sym resolvante_unitaire resolvante_vierer rest resultant return reveal reverse revert revert2 rgb2level rhs ricci riemann rinvariant risch rk rmdir rncombine romberg room rootscontract round row rowop rowswap rreduce run_testsuite %s save saving scalarp scaled_bessel_i scaled_bessel_i0 scaled_bessel_i1 scalefactors scanmap scatterplot scatterplot_description scene schur2comp sconcat scopy scsimp scurvature sdowncase sec sech second sequal sequalignore set_alt_display setdifference set_draw_defaults set_edge_weight setelmx setequalp setify setp set_partitions set_plot_option set_prompt set_random_state set_tex_environment set_tex_environment_default setunits setup_autoload set_up_dot_simplifications set_vertex_label seventh sexplode sf sha1sum sha256sum shortest_path shortest_weighted_path show showcomps showratvars sierpinskiale sierpinskimap sign signum similaritytransform simp_inequality simplify_sum simplode simpmetderiv simtran sin sinh sinsert sinvertcase sixth skewness skewness_bernoulli skewness_beta skewness_binomial skewness_chi2 skewness_continuous_uniform skewness_discrete_uniform skewness_exp skewness_f skewness_gamma skewness_general_finite_discrete skewness_geometric skewness_gumbel skewness_hypergeometric skewness_laplace skewness_logistic skewness_lognormal skewness_negative_binomial skewness_noncentral_chi2 skewness_noncentral_student_t skewness_normal skewness_pareto skewness_poisson skewness_rayleigh skewness_student_t skewness_weibull slength smake small_rhombicosidodecahedron_graph small_rhombicuboctahedron_graph smax smin smismatch snowmap snub_cube_graph snub_dodecahedron_graph solve solve_rec solve_rec_rat some somrac sort sparse6_decode sparse6_encode sparse6_export sparse6_import specint spherical spherical_bessel_j spherical_bessel_y spherical_hankel1 spherical_hankel2 spherical_harmonic spherical_to_xyz splice split sposition sprint sqfr sqrt sqrtdenest sremove sremovefirst sreverse ssearch ssort sstatus ssubst ssubstfirst staircase standardize standardize_inverse_trig starplot starplot_description status std std1 std_bernoulli std_beta std_binomial std_chi2 std_continuous_uniform std_discrete_uniform std_exp std_f std_gamma std_general_finite_discrete std_geometric std_gumbel std_hypergeometric std_laplace std_logistic std_lognormal std_negative_binomial std_noncentral_chi2 std_noncentral_student_t std_normal std_pareto std_poisson std_rayleigh std_student_t std_weibull stemplot stirling stirling1 stirling2 strim striml strimr string stringout stringp strong_components struve_h struve_l sublis sublist sublist_indices submatrix subsample subset subsetp subst substinpart subst_parallel substpart substring subvar subvarp sum sumcontract summand_to_rec supcase supcontext symbolp symmdifference symmetricp system take_channel take_inference tan tanh taylor taylorinfo taylorp taylor_simplifier taytorat tcl_output tcontract tellrat tellsimp tellsimpafter tentex tenth test_mean test_means_difference test_normality test_proportion test_proportions_difference test_rank_sum test_sign test_signed_rank test_variance test_variance_ratio tex tex1 tex_display texput %th third throw time timedate timer timer_info tldefint tlimit todd_coxeter toeplitz tokens to_lisp topological_sort to_poly to_poly_solve totaldisrep totalfourier totient tpartpol trace tracematrix trace_options transform_sample translate translate_file transpose treefale tree_reduce treillis treinat triangle triangularize trigexpand trigrat trigreduce trigsimp trunc truncate truncated_cube_graph truncated_dodecahedron_graph truncated_icosahedron_graph truncated_tetrahedron_graph tr_warnings_get tube tutte_graph ueivects uforget ultraspherical underlying_graph undiff union unique uniteigenvectors unitp units unit_step unitvector unorder unsum untellrat untimer untrace uppercasep uricci uriemann uvect vandermonde_matrix var var1 var_bernoulli var_beta var_binomial var_chi2 var_continuous_uniform var_discrete_uniform var_exp var_f var_gamma var_general_finite_discrete var_geometric var_gumbel var_hypergeometric var_laplace var_logistic var_lognormal var_negative_binomial var_noncentral_chi2 var_noncentral_student_t var_normal var_pareto var_poisson var_rayleigh var_student_t var_weibull vector vectorpotential vectorsimp verbify vers vertex_coloring vertex_connectivity vertex_degree vertex_distance vertex_eccentricity vertex_in_degree vertex_out_degree vertices vertices_to_cycle vertices_to_path %w weyl wheel_graph wiener_index wigner_3j wigner_6j wigner_9j with_stdout write_binary_data writebyte write_data writefile wronskian xreduce xthru %y Zeilberger zeroequiv zerofor zeromatrix zeromatrixp zeta zgeev zheev zlange zn_add_table zn_carmichael_lambda zn_characteristic_factors zn_determinant zn_factor_generators zn_invert_by_lu zn_log zn_mult_table absboxchar activecontexts adapt_depth additive adim aform algebraic algepsilon algexact aliases allbut all_dotsimp_denoms allocation allsym alphabetic animation antisymmetric arrays askexp assume_pos assume_pos_pred assumescalar asymbol atomgrad atrig1 axes axis_3d axis_bottom axis_left axis_right axis_top azimuth background background_color backsubst berlefact bernstein_explicit besselexpand beta_args_sum_to_integer beta_expand bftorat bftrunc bindtest border boundaries_array box boxchar breakup %c capping cauchysum cbrange cbtics center cflength cframe_flag cnonmet_flag color color_bar color_bar_tics colorbox columns commutative complex cone context contexts contour contour_levels cosnpiflag ctaypov ctaypt ctayswitch ctayvar ct_coords ctorsion_flag ctrgsimp cube current_let_rule_package cylinder data_file_name debugmode decreasing default_let_rule_package delay dependencies derivabbrev derivsubst detout diagmetric diff dim dimensions dispflag display2d|10 display_format_internal distribute_over doallmxops domain domxexpt domxmxops domxnctimes dontfactor doscmxops doscmxplus dot0nscsimp dot0simp dot1simp dotassoc dotconstrules dotdistrib dotexptsimp dotident dotscrules draw_graph_program draw_realpart edge_color edge_coloring edge_partition edge_type edge_width %edispflag elevation %emode endphi endtheta engineering_format_floats enhanced3d %enumer epsilon_lp erfflag erf_representation errormsg error_size error_syms error_type %e_to_numlog eval even evenfun evflag evfun ev_point expandwrt_denom expintexpand expintrep expon expop exptdispflag exptisolate exptsubst facexpand facsum_combine factlim factorflag factorial_expand factors_only fb feature features file_name file_output_append file_search_demo file_search_lisp file_search_maxima|10 file_search_tests file_search_usage file_type_lisp file_type_maxima|10 fill_color fill_density filled_func fixed_vertices flipflag float2bf font font_size fortindent fortspaces fpprec fpprintprec functions gamma_expand gammalim gdet genindex gensumnum GGFCFMAX GGFINFINITY globalsolve gnuplot_command gnuplot_curve_styles gnuplot_curve_titles gnuplot_default_term_command gnuplot_dumb_term_command gnuplot_file_args gnuplot_file_name gnuplot_out_file gnuplot_pdf_term_command gnuplot_pm3d gnuplot_png_term_command gnuplot_postamble gnuplot_preamble gnuplot_ps_term_command gnuplot_svg_term_command gnuplot_term gnuplot_view_args Gosper_in_Zeilberger gradefs grid grid2d grind halfangles head_angle head_both head_length head_type height hypergeometric_representation %iargs ibase icc1 icc2 icounter idummyx ieqnprint ifb ifc1 ifc2 ifg ifgi ifr iframe_bracket_form ifri igeowedge_flag ikt1 ikt2 imaginary inchar increasing infeval infinity inflag infolists inm inmc1 inmc2 intanalysis integer integervalued integrate_use_rootsof integration_constant integration_constant_counter interpolate_color intfaclim ip_grid ip_grid_in irrational isolate_wrt_times iterations itr julia_parameter %k1 %k2 keepfloat key key_pos kinvariant kt label label_alignment label_orientation labels lassociative lbfgs_ncorrections lbfgs_nfeval_max leftjust legend letrat let_rule_packages lfg lg lhospitallim limsubst linear linear_solver linechar linel|10 linenum line_type linewidth line_width linsolve_params linsolvewarn lispdisp listarith listconstvars listdummyvars lmxchar load_pathname loadprint logabs logarc logcb logconcoeffp logexpand lognegint logsimp logx logx_secondary logy logy_secondary logz lriem m1pbranch macroexpansion macros mainvar manual_demo maperror mapprint matrix_element_add matrix_element_mult matrix_element_transpose maxapplydepth maxapplyheight maxima_tempdir|10 maxima_userdir|10 maxnegex MAX_ORD maxposex maxpsifracdenom maxpsifracnum maxpsinegint maxpsiposint maxtayorder mesh_lines_color method mod_big_prime mode_check_errorp mode_checkp mode_check_warnp mod_test mod_threshold modular_linear_solver modulus multiplicative multiplicities myoptions nary negdistrib negsumdispflag newline newtonepsilon newtonmaxiter nextlayerfactor niceindicespref nm nmc noeval nolabels nonegative_lp noninteger nonscalar noun noundisp nouns np npi nticks ntrig numer numer_pbranch obase odd oddfun opacity opproperties opsubst optimprefix optionset orientation origin orthopoly_returns_intervals outative outchar packagefile palette partswitch pdf_file pfeformat phiresolution %piargs piece pivot_count_sx pivot_max_sx plot_format plot_options plot_realpart png_file pochhammer_max_index points pointsize point_size points_joined point_type poislim poisson poly_coefficient_ring poly_elimination_order polyfactor poly_grobner_algorithm poly_grobner_debug poly_monomial_order poly_primary_elimination_order poly_return_term_list poly_secondary_elimination_order poly_top_reduction_only posfun position powerdisp pred prederror primep_number_of_tests product_use_gamma program programmode promote_float_to_bigfloat prompt proportional_axes props psexpand ps_file radexpand radius radsubstflag rassociative ratalgdenom ratchristof ratdenomdivide rateinstein ratepsilon ratfac rational ratmx ratprint ratriemann ratsimpexpons ratvarswitch ratweights ratweyl ratwtlvl real realonly redraw refcheck resolution restart resultant ric riem rmxchar %rnum_list rombergabs rombergit rombergmin rombergtol rootsconmode rootsepsilon run_viewer same_xy same_xyz savedef savefactors scalar scalarmatrixp scale scale_lp setcheck setcheckbreak setval show_edge_color show_edges show_edge_type show_edge_width show_id show_label showtime show_vertex_color show_vertex_size show_vertex_type show_vertices show_weight simp simplified_output simplify_products simpproduct simpsum sinnpiflag solvedecomposes solveexplicit solvefactors solvenullwarn solveradcan solvetrigwarn space sparse sphere spring_embedding_depth sqrtdispflag stardisp startphi starttheta stats_numer stringdisp structures style sublis_apply_lambda subnumsimp sumexpand sumsplitfact surface surface_hide svg_file symmetric tab taylordepth taylor_logexpand taylor_order_coefficients taylor_truncate_polynomials tensorkill terminal testsuite_files thetaresolution timer_devalue title tlimswitch tr track transcompile transform transform_xy translate_fast_arrays transparent transrun tr_array_as_ref tr_bound_function_applyp tr_file_tty_messagesp tr_float_can_branch_complex tr_function_call_default trigexpandplus trigexpandtimes triginverses trigsign trivial_solutions tr_numer tr_optimize_max_loop tr_semicompile tr_state_vars tr_warn_bad_function_calls tr_warn_fexpr tr_warn_meval tr_warn_mode tr_warn_undeclared tr_warn_undefined_variable tstep ttyoff tube_extremes ufg ug %unitexpand unit_vectors uric uriem use_fast_arrays user_preamble usersetunits values vect_cross verbose vertex_color vertex_coloring vertex_partition vertex_size vertex_type view warnings weyl width windowname windowtitle wired_surface wireframe xaxis xaxis_color xaxis_secondary xaxis_type xaxis_width xlabel xlabel_secondary xlength xrange xrange_secondary xtics xtics_axis xtics_rotate xtics_rotate_secondary xtics_secondary xtics_secondary_axis xu_grid x_voxel xy_file xyplane xy_scale yaxis yaxis_color yaxis_secondary yaxis_type yaxis_width ylabel ylabel_secondary ylength yrange yrange_secondary ytics ytics_axis ytics_rotate ytics_rotate_secondary ytics_secondary ytics_secondary_axis yv_grid y_voxel yx_ratio zaxis zaxis_color zaxis_type zaxis_width zeroa zerob zerobern zeta%pi zlabel zlabel_rotate zlength zmin zn_primroot_limit zn_primroot_pretest",symbol:"_ __ %|0 %%|0"},contains:[{className:"comment",begin:"/\\*",end:"\\*/",contains:["self"]},e.QUOTE_STRING_MODE,{className:"number",relevance:0,variants:[{begin:"\\b(\\d+|\\d+\\.|\\.\\d+|\\d+\\.\\d+)[Ee][-+]?\\d+\\b"},{begin:"\\b(\\d+|\\d+\\.|\\.\\d+|\\d+\\.\\d+)[Bb][-+]?\\d+\\b",relevance:10},{begin:"\\b(\\.\\d+|\\d+\\.\\d+)\\b"},{begin:"\\b(\\d+|0[0-9A-Za-z]+)\\.?\\b"}]}],illegal:/@/}}function Afn(e){return{name:"MEL",keywords:"int float string vector matrix if else switch case default while do for in break continue global proc return about abs addAttr addAttributeEditorNodeHelp addDynamic addNewShelfTab addPP addPanelCategory addPrefixToName advanceToNextDrivenKey affectedNet affects aimConstraint air alias aliasAttr align alignCtx alignCurve alignSurface allViewFit ambientLight angle angleBetween animCone animCurveEditor animDisplay animView annotate appendStringArray applicationName applyAttrPreset applyTake arcLenDimContext arcLengthDimension arclen arrayMapper art3dPaintCtx artAttrCtx artAttrPaintVertexCtx artAttrSkinPaintCtx artAttrTool artBuildPaintMenu artFluidAttrCtx artPuttyCtx artSelectCtx artSetPaintCtx artUserPaintCtx assignCommand assignInputDevice assignViewportFactories attachCurve attachDeviceAttr attachSurface attrColorSliderGrp attrCompatibility attrControlGrp attrEnumOptionMenu attrEnumOptionMenuGrp attrFieldGrp attrFieldSliderGrp attrNavigationControlGrp attrPresetEditWin attributeExists attributeInfo attributeMenu attributeQuery autoKeyframe autoPlace bakeClip bakeFluidShading bakePartialHistory bakeResults bakeSimulation basename basenameEx batchRender bessel bevel bevelPlus binMembership bindSkin blend2 blendShape blendShapeEditor blendShapePanel blendTwoAttr blindDataType boneLattice boundary boxDollyCtx boxZoomCtx bufferCurve buildBookmarkMenu buildKeyframeMenu button buttonManip CBG cacheFile cacheFileCombine cacheFileMerge cacheFileTrack camera cameraView canCreateManip canvas capitalizeString catch catchQuiet ceil changeSubdivComponentDisplayLevel changeSubdivRegion channelBox character characterMap characterOutlineEditor characterize chdir checkBox checkBoxGrp checkDefaultRenderGlobals choice circle circularFillet clamp clear clearCache clip clipEditor clipEditorCurrentTimeCtx clipSchedule clipSchedulerOutliner clipTrimBefore closeCurve closeSurface cluster cmdFileOutput cmdScrollFieldExecuter cmdScrollFieldReporter cmdShell coarsenSubdivSelectionList collision color colorAtPoint colorEditor colorIndex colorIndexSliderGrp colorSliderButtonGrp colorSliderGrp columnLayout commandEcho commandLine commandPort compactHairSystem componentEditor compositingInterop computePolysetVolume condition cone confirmDialog connectAttr connectControl connectDynamic connectJoint connectionInfo constrain constrainValue constructionHistory container containsMultibyte contextInfo control convertFromOldLayers convertIffToPsd convertLightmap convertSolidTx convertTessellation convertUnit copyArray copyFlexor copyKey copySkinWeights cos cpButton cpCache cpClothSet cpCollision cpConstraint cpConvClothToMesh cpForces cpGetSolverAttr cpPanel cpProperty cpRigidCollisionFilter cpSeam cpSetEdit cpSetSolverAttr cpSolver cpSolverTypes cpTool cpUpdateClothUVs createDisplayLayer createDrawCtx createEditor createLayeredPsdFile createMotionField createNewShelf createNode createRenderLayer createSubdivRegion cross crossProduct ctxAbort ctxCompletion ctxEditMode ctxTraverse currentCtx currentTime currentTimeCtx currentUnit curve curveAddPtCtx curveCVCtx curveEPCtx curveEditorCtx curveIntersect curveMoveEPCtx curveOnSurface curveSketchCtx cutKey cycleCheck cylinder dagPose date defaultLightListCheckBox defaultNavigation defineDataServer defineVirtualDevice deformer deg_to_rad delete deleteAttr deleteShadingGroupsAndMaterials deleteShelfTab deleteUI deleteUnusedBrushes delrandstr detachCurve detachDeviceAttr detachSurface deviceEditor devicePanel dgInfo dgdirty dgeval dgtimer dimWhen directKeyCtx directionalLight dirmap dirname disable disconnectAttr disconnectJoint diskCache displacementToPoly displayAffected displayColor displayCull displayLevelOfDetail displayPref displayRGBColor displaySmoothness displayStats displayString displaySurface distanceDimContext distanceDimension doBlur dolly dollyCtx dopeSheetEditor dot dotProduct doubleProfileBirailSurface drag dragAttrContext draggerContext dropoffLocator duplicate duplicateCurve duplicateSurface dynCache dynControl dynExport dynExpression dynGlobals dynPaintEditor dynParticleCtx dynPref dynRelEdPanel dynRelEditor dynamicLoad editAttrLimits editDisplayLayerGlobals editDisplayLayerMembers editRenderLayerAdjustment editRenderLayerGlobals editRenderLayerMembers editor editorTemplate effector emit emitter enableDevice encodeString endString endsWith env equivalent equivalentTol erf error eval evalDeferred evalEcho event exactWorldBoundingBox exclusiveLightCheckBox exec executeForEachObject exists exp expression expressionEditorListen extendCurve extendSurface extrude fcheck fclose feof fflush fgetline fgetword file fileBrowserDialog fileDialog fileExtension fileInfo filetest filletCurve filter filterCurve filterExpand filterStudioImport findAllIntersections findAnimCurves findKeyframe findMenuItem findRelatedSkinCluster finder firstParentOf fitBspline flexor floatEq floatField floatFieldGrp floatScrollBar floatSlider floatSlider2 floatSliderButtonGrp floatSliderGrp floor flow fluidCacheInfo fluidEmitter fluidVoxelInfo flushUndo fmod fontDialog fopen formLayout format fprint frameLayout fread freeFormFillet frewind fromNativePath fwrite gamma gauss geometryConstraint getApplicationVersionAsFloat getAttr getClassification getDefaultBrush getFileList getFluidAttr getInputDeviceRange getMayaPanelTypes getModifiers getPanel getParticleAttr getPluginResource getenv getpid glRender glRenderEditor globalStitch gmatch goal gotoBindPose grabColor gradientControl gradientControlNoAttr graphDollyCtx graphSelectContext graphTrackCtx gravity grid gridLayout group groupObjectsByName HfAddAttractorToAS HfAssignAS HfBuildEqualMap HfBuildFurFiles HfBuildFurImages HfCancelAFR HfConnectASToHF HfCreateAttractor HfDeleteAS HfEditAS HfPerformCreateAS HfRemoveAttractorFromAS HfSelectAttached HfSelectAttractors HfUnAssignAS hardenPointCurve hardware hardwareRenderPanel headsUpDisplay headsUpMessage help helpLine hermite hide hilite hitTest hotBox hotkey hotkeyCheck hsv_to_rgb hudButton hudSlider hudSliderButton hwReflectionMap hwRender hwRenderLoad hyperGraph hyperPanel hyperShade hypot iconTextButton iconTextCheckBox iconTextRadioButton iconTextRadioCollection iconTextScrollList iconTextStaticLabel ikHandle ikHandleCtx ikHandleDisplayScale ikSolver ikSplineHandleCtx ikSystem ikSystemInfo ikfkDisplayMethod illustratorCurves image imfPlugins inheritTransform insertJoint insertJointCtx insertKeyCtx insertKnotCurve insertKnotSurface instance instanceable instancer intField intFieldGrp intScrollBar intSlider intSliderGrp interToUI internalVar intersect iprEngine isAnimCurve isConnected isDirty isParentOf isSameObject isTrue isValidObjectName isValidString isValidUiName isolateSelect itemFilter itemFilterAttr itemFilterRender itemFilterType joint jointCluster jointCtx jointDisplayScale jointLattice keyTangent keyframe keyframeOutliner keyframeRegionCurrentTimeCtx keyframeRegionDirectKeyCtx keyframeRegionDollyCtx keyframeRegionInsertKeyCtx keyframeRegionMoveKeyCtx keyframeRegionScaleKeyCtx keyframeRegionSelectKeyCtx keyframeRegionSetKeyCtx keyframeRegionTrackCtx keyframeStats lassoContext lattice latticeDeformKeyCtx launch launchImageEditor layerButton layeredShaderPort layeredTexturePort layout layoutDialog lightList lightListEditor lightListPanel lightlink lineIntersection linearPrecision linstep listAnimatable listAttr listCameras listConnections listDeviceAttachments listHistory listInputDeviceAxes listInputDeviceButtons listInputDevices listMenuAnnotation listNodeTypes listPanelCategories listRelatives listSets listTransforms listUnselected listerEditor loadFluid loadNewShelf loadPlugin loadPluginLanguageResources loadPrefObjects localizedPanelLabel lockNode loft log longNameOf lookThru ls lsThroughFilter lsType lsUI Mayatomr mag makeIdentity makeLive makePaintable makeRoll makeSingleSurface makeTubeOn makebot manipMoveContext manipMoveLimitsCtx manipOptions manipRotateContext manipRotateLimitsCtx manipScaleContext manipScaleLimitsCtx marker match max memory menu menuBarLayout menuEditor menuItem menuItemToShelf menuSet menuSetPref messageLine min minimizeApp mirrorJoint modelCurrentTimeCtx modelEditor modelPanel mouse movIn movOut move moveIKtoFK moveKeyCtx moveVertexAlongDirection multiProfileBirailSurface mute nParticle nameCommand nameField namespace namespaceInfo newPanelItems newton nodeCast nodeIconButton nodeOutliner nodePreset nodeType noise nonLinear normalConstraint normalize nurbsBoolean nurbsCopyUVSet nurbsCube nurbsEditUV nurbsPlane nurbsSelect nurbsSquare nurbsToPoly nurbsToPolygonsPref nurbsToSubdiv nurbsToSubdivPref nurbsUVSet nurbsViewDirectionVector objExists objectCenter objectLayer objectType objectTypeUI obsoleteProc oceanNurbsPreviewPlane offsetCurve offsetCurveOnSurface offsetSurface openGLExtension openMayaPref optionMenu optionMenuGrp optionVar orbit orbitCtx orientConstraint outlinerEditor outlinerPanel overrideModifier paintEffectsDisplay pairBlend palettePort paneLayout panel panelConfiguration panelHistory paramDimContext paramDimension paramLocator parent parentConstraint particle particleExists particleInstancer particleRenderInfo partition pasteKey pathAnimation pause pclose percent performanceOptions pfxstrokes pickWalk picture pixelMove planarSrf plane play playbackOptions playblast plugAttr plugNode pluginInfo pluginResourceUtil pointConstraint pointCurveConstraint pointLight pointMatrixMult pointOnCurve pointOnSurface pointPosition poleVectorConstraint polyAppend polyAppendFacetCtx polyAppendVertex polyAutoProjection polyAverageNormal polyAverageVertex polyBevel polyBlendColor polyBlindData polyBoolOp polyBridgeEdge polyCacheMonitor polyCheck polyChipOff polyClipboard polyCloseBorder polyCollapseEdge polyCollapseFacet polyColorBlindData polyColorDel polyColorPerVertex polyColorSet polyCompare polyCone polyCopyUV polyCrease polyCreaseCtx polyCreateFacet polyCreateFacetCtx polyCube polyCut polyCutCtx polyCylinder polyCylindricalProjection polyDelEdge polyDelFacet polyDelVertex polyDuplicateAndConnect polyDuplicateEdge polyEditUV polyEditUVShell polyEvaluate polyExtrudeEdge polyExtrudeFacet polyExtrudeVertex polyFlipEdge polyFlipUV polyForceUV polyGeoSampler polyHelix polyInfo polyInstallAction polyLayoutUV polyListComponentConversion polyMapCut polyMapDel polyMapSew polyMapSewMove polyMergeEdge polyMergeEdgeCtx polyMergeFacet polyMergeFacetCtx polyMergeUV polyMergeVertex polyMirrorFace polyMoveEdge polyMoveFacet polyMoveFacetUV polyMoveUV polyMoveVertex polyNormal polyNormalPerVertex polyNormalizeUV polyOptUvs polyOptions polyOutput polyPipe polyPlanarProjection polyPlane polyPlatonicSolid polyPoke polyPrimitive polyPrism polyProjection polyPyramid polyQuad polyQueryBlindData polyReduce polySelect polySelectConstraint polySelectConstraintMonitor polySelectCtx polySelectEditCtx polySeparate polySetToFaceNormal polySewEdge polyShortestPathCtx polySmooth polySoftEdge polySphere polySphericalProjection polySplit polySplitCtx polySplitEdge polySplitRing polySplitVertex polyStraightenUVBorder polySubdivideEdge polySubdivideFacet polyToSubdiv polyTorus polyTransfer polyTriangulate polyUVSet polyUnite polyWedgeFace popen popupMenu pose pow preloadRefEd print progressBar progressWindow projFileViewer projectCurve projectTangent projectionContext projectionManip promptDialog propModCtx propMove psdChannelOutliner psdEditTextureFile psdExport psdTextureFile putenv pwd python querySubdiv quit rad_to_deg radial radioButton radioButtonGrp radioCollection radioMenuItemCollection rampColorPort rand randomizeFollicles randstate rangeControl readTake rebuildCurve rebuildSurface recordAttr recordDevice redo reference referenceEdit referenceQuery refineSubdivSelectionList refresh refreshAE registerPluginResource rehash reloadImage removeJoint removeMultiInstance removePanelCategory rename renameAttr renameSelectionList renameUI render renderGlobalsNode renderInfo renderLayerButton renderLayerParent renderLayerPostProcess renderLayerUnparent renderManip renderPartition renderQualityNode renderSettings renderThumbnailUpdate renderWindowEditor renderWindowSelectContext renderer reorder reorderDeformers requires reroot resampleFluid resetAE resetPfxToPolyCamera resetTool resolutionNode retarget reverseCurve reverseSurface revolve rgb_to_hsv rigidBody rigidSolver roll rollCtx rootOf rot rotate rotationInterpolation roundConstantRadius rowColumnLayout rowLayout runTimeCommand runup sampleImage saveAllShelves saveAttrPreset saveFluid saveImage saveInitialState saveMenu savePrefObjects savePrefs saveShelf saveToolSettings scale scaleBrushBrightness scaleComponents scaleConstraint scaleKey scaleKeyCtx sceneEditor sceneUIReplacement scmh scriptCtx scriptEditorInfo scriptJob scriptNode scriptTable scriptToShelf scriptedPanel scriptedPanelType scrollField scrollLayout sculpt searchPathArray seed selLoadSettings select selectContext selectCurveCV selectKey selectKeyCtx selectKeyframeRegionCtx selectMode selectPref selectPriority selectType selectedNodes selectionConnection separator setAttr setAttrEnumResource setAttrMapping setAttrNiceNameResource setConstraintRestPosition setDefaultShadingGroup setDrivenKeyframe setDynamic setEditCtx setEditor setFluidAttr setFocus setInfinity setInputDeviceMapping setKeyCtx setKeyPath setKeyframe setKeyframeBlendshapeTargetWts setMenuMode setNodeNiceNameResource setNodeTypeFlag setParent setParticleAttr setPfxToPolyCamera setPluginResource setProject setStampDensity setStartupMessage setState setToolTo setUITemplate setXformManip sets shadingConnection shadingGeometryRelCtx shadingLightRelCtx shadingNetworkCompare shadingNode shapeCompare shelfButton shelfLayout shelfTabLayout shellField shortNameOf showHelp showHidden showManipCtx showSelectionInTitle showShadingGroupAttrEditor showWindow sign simplify sin singleProfileBirailSurface size sizeBytes skinCluster skinPercent smoothCurve smoothTangentSurface smoothstep snap2to2 snapKey snapMode snapTogetherCtx snapshot soft softMod softModCtx sort sound soundControl source spaceLocator sphere sphrand spotLight spotLightPreviewPort spreadSheetEditor spring sqrt squareSurface srtContext stackTrace startString startsWith stitchAndExplodeShell stitchSurface stitchSurfacePoints strcmp stringArrayCatenate stringArrayContains stringArrayCount stringArrayInsertAtIndex stringArrayIntersector stringArrayRemove stringArrayRemoveAtIndex stringArrayRemoveDuplicates stringArrayRemoveExact stringArrayToString stringToStringArray strip stripPrefixFromName stroke subdAutoProjection subdCleanTopology subdCollapse subdDuplicateAndConnect subdEditUV subdListComponentConversion subdMapCut subdMapSewMove subdMatchTopology subdMirror subdToBlind subdToPoly subdTransferUVsToCache subdiv subdivCrease subdivDisplaySmoothness substitute substituteAllString substituteGeometry substring surface surfaceSampler surfaceShaderList swatchDisplayPort switchTable symbolButton symbolCheckBox sysFile system tabLayout tan tangentConstraint texLatticeDeformContext texManipContext texMoveContext texMoveUVShellContext texRotateContext texScaleContext texSelectContext texSelectShortestPathCtx texSmudgeUVContext texWinToolCtx text textCurves textField textFieldButtonGrp textFieldGrp textManip textScrollList textToShelf textureDisplacePlane textureHairColor texturePlacementContext textureWindow threadCount threePointArcCtx timeControl timePort timerX toNativePath toggle toggleAxis toggleWindowVisibility tokenize tokenizeList tolerance tolower toolButton toolCollection toolDropped toolHasOptions toolPropertyWindow torus toupper trace track trackCtx transferAttributes transformCompare transformLimits translator trim trunc truncateFluidCache truncateHairCache tumble tumbleCtx turbulence twoPointArcCtx uiRes uiTemplate unassignInputDevice undo undoInfo ungroup uniform unit unloadPlugin untangleUV untitledFileName untrim upAxis updateAE userCtx uvLink uvSnapshot validateShelfName vectorize view2dToolCtx viewCamera viewClipPlane viewFit viewHeadOn viewLookAt viewManip viewPlace viewSet visor volumeAxis vortex waitCursor warning webBrowser webBrowserPrefs whatIs window windowPref wire wireContext workspace wrinkle wrinkleContext writeTake xbmLangPathList xform",illegal:"</",contains:[e.C_NUMBER_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{className:"string",begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE]},{begin:/[$%@](\^\w\b|#\w+|[^\s\w{]|\{\w+\}|\w+)/},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]}}function Nfn(e){const t={keyword:"module use_module import_module include_module end_module initialise mutable initialize finalize finalise interface implementation pred mode func type inst solver any_pred any_func is semidet det nondet multi erroneous failure cc_nondet cc_multi typeclass instance where pragma promise external trace atomic or_else require_complete_switch require_det require_semidet require_multi require_nondet require_cc_multi require_cc_nondet require_erroneous require_failure",meta:"inline no_inline type_spec source_file fact_table obsolete memo loop_check minimal_model terminates does_not_terminate check_termination promise_equivalent_clauses foreign_proc foreign_decl foreign_code foreign_type foreign_import_module foreign_export_enum foreign_export foreign_enum may_call_mercury will_not_call_mercury thread_safe not_thread_safe maybe_thread_safe promise_pure promise_semipure tabled_for_io local untrailed trailed attach_to_io_state can_pass_as_mercury_type stable will_not_throw_exception may_modify_trail will_not_modify_trail may_duplicate may_not_duplicate affects_liveness does_not_affect_liveness doesnt_affect_liveness no_sharing unknown_sharing sharing",built_in:"some all not if then else true fail false try catch catch_any semidet_true semidet_false semidet_fail impure_true impure semipure"},n=e.COMMENT("%","$"),r={className:"number",begin:"0'.\\|0[box][0-9a-fA-F]*"},i=e.inherit(e.APOS_STRING_MODE,{relevance:0}),o=e.inherit(e.QUOTE_STRING_MODE,{relevance:0}),a={className:"subst",begin:"\\\\[abfnrtv]\\|\\\\x[0-9a-fA-F]*\\\\\\|%[-+# *.0-9]*[dioxXucsfeEgGp]",relevance:0};return o.contains=o.contains.slice(),o.contains.push(a),{name:"Mercury",aliases:["m","moo"],keywords:t,contains:[{className:"built_in",variants:[{begin:"<=>"},{begin:"<=",relevance:0},{begin:"=>",relevance:0},{begin:"/\\\\"},{begin:"\\\\/"}]},{className:"built_in",variants:[{begin:":-\\|-->"},{begin:"=",relevance:0}]},n,e.C_BLOCK_COMMENT_MODE,r,e.NUMBER_MODE,i,o,{begin:/:-/},{begin:/\.$/}]}}function Mfn(e){return{name:"MIPS Assembly",case_insensitive:!0,aliases:["mips"],keywords:{$pattern:"\\.?"+e.IDENT_RE,meta:".2byte .4byte .align .ascii .asciz .balign .byte .code .data .else .end .endif .endm .endr .equ .err .exitm .extern .global .hword .if .ifdef .ifndef .include .irp .long .macro .rept .req .section .set .skip .space .text .word .ltorg ",built_in:"$0 $1 $2 $3 $4 $5 $6 $7 $8 $9 $10 $11 $12 $13 $14 $15 $16 $17 $18 $19 $20 $21 $22 $23 $24 $25 $26 $27 $28 $29 $30 $31 zero at v0 v1 a0 a1 a2 a3 a4 a5 a6 a7 t0 t1 t2 t3 t4 t5 t6 t7 t8 t9 s0 s1 s2 s3 s4 s5 s6 s7 s8 k0 k1 gp sp fp ra $f0 $f1 $f2 $f2 $f4 $f5 $f6 $f7 $f8 $f9 $f10 $f11 $f12 $f13 $f14 $f15 $f16 $f17 $f18 $f19 $f20 $f21 $f22 $f23 $f24 $f25 $f26 $f27 $f28 $f29 $f30 $f31 Context Random EntryLo0 EntryLo1 Context PageMask Wired EntryHi HWREna BadVAddr Count Compare SR IntCtl SRSCtl SRSMap Cause EPC PRId EBase Config Config1 Config2 Config3 LLAddr Debug DEPC DESAVE CacheErr ECC ErrorEPC TagLo DataLo TagHi DataHi WatchLo WatchHi PerfCtl PerfCnt "},contains:[{className:"keyword",begin:"\\b(addi?u?|andi?|b(al)?|beql?|bgez(al)?l?|bgtzl?|blezl?|bltz(al)?l?|bnel?|cl[oz]|divu?|ext|ins|j(al)?|jalr(\\.hb)?|jr(\\.hb)?|lbu?|lhu?|ll|lui|lw[lr]?|maddu?|mfhi|mflo|movn|movz|move|msubu?|mthi|mtlo|mul|multu?|nop|nor|ori?|rotrv?|sb|sc|se[bh]|sh|sllv?|slti?u?|srav?|srlv?|subu?|sw[lr]?|xori?|wsbh|abs\\.[sd]|add\\.[sd]|alnv.ps|bc1[ft]l?|c\\.(s?f|un|u?eq|[ou]lt|[ou]le|ngle?|seq|l[et]|ng[et])\\.[sd]|(ceil|floor|round|trunc)\\.[lw]\\.[sd]|cfc1|cvt\\.d\\.[lsw]|cvt\\.l\\.[dsw]|cvt\\.ps\\.s|cvt\\.s\\.[dlw]|cvt\\.s\\.p[lu]|cvt\\.w\\.[dls]|div\\.[ds]|ldx?c1|luxc1|lwx?c1|madd\\.[sd]|mfc1|mov[fntz]?\\.[ds]|msub\\.[sd]|mth?c1|mul\\.[ds]|neg\\.[ds]|nmadd\\.[ds]|nmsub\\.[ds]|p[lu][lu]\\.ps|recip\\.fmt|r?sqrt\\.[ds]|sdx?c1|sub\\.[ds]|suxc1|swx?c1|break|cache|d?eret|[de]i|ehb|mfc0|mtc0|pause|prefx?|rdhwr|rdpgpr|sdbbp|ssnop|synci?|syscall|teqi?|tgei?u?|tlb(p|r|w[ir])|tlti?u?|tnei?|wait|wrpgpr)",end:"\\s"},e.COMMENT("[;#](?!\\s*$)","$"),e.C_BLOCK_COMMENT_MODE,e.QUOTE_STRING_MODE,{className:"string",begin:"'",end:"[^\\\\]'",relevance:0},{className:"title",begin:"\\|",end:"\\|",illegal:"\\n",relevance:0},{className:"number",variants:[{begin:"0x[0-9a-f]+"},{begin:"\\b-?\\d+"}],relevance:0},{className:"symbol",variants:[{begin:"^\\s*[a-z_\\.\\$][a-z0-9_\\.\\$]+:"},{begin:"^\\s*[0-9]+:"},{begin:"[0-9]+[bf]"}],relevance:0}],illegal:/\//}}function kfn(e){return{name:"Mizar",keywords:"environ vocabularies notations constructors definitions registrations theorems schemes requirements begin end definition registration cluster existence pred func defpred deffunc theorem proof let take assume then thus hence ex for st holds consider reconsider such that and in provided of as from be being by means equals implies iff redefine define now not or attr is mode suppose per cases set thesis contradiction scheme reserve struct correctness compatibility coherence symmetry assymetry reflexivity irreflexivity connectedness uniqueness commutativity idempotence involutiveness projectivity",contains:[e.COMMENT("::","$")]}}function Pfn(e){return{name:"Mojolicious",subLanguage:"xml",contains:[{className:"meta",begin:"^__(END|DATA)__$"},{begin:"^\\s*%{1,2}={0,2}",end:"$",subLanguage:"perl"},{begin:"<%{1,2}={0,2}",end:"={0,1}%>",subLanguage:"perl",excludeBegin:!0,excludeEnd:!0}]}}function Dfn(e){const t={className:"number",relevance:0,variants:[{begin:"[$][a-fA-F0-9]+"},e.NUMBER_MODE]},n={variants:[{match:[/(function|method)/,/\s+/,e.UNDERSCORE_IDENT_RE]}],scope:{1:"keyword",3:"title.function"}},r={variants:[{match:[/(class|interface|extends|implements)/,/\s+/,e.UNDERSCORE_IDENT_RE]}],scope:{1:"keyword",3:"title.class"}};return{name:"Monkey",case_insensitive:!0,keywords:{keyword:["public","private","property","continue","exit","extern","new","try","catch","eachin","not","abstract","final","select","case","default","const","local","global","field","end","if","then","else","elseif","endif","while","wend","repeat","until","forever","for","to","step","next","return","module","inline","throw","import","and","or","shl","shr","mod"],built_in:["DebugLog","DebugStop","Error","Print","ACos","ACosr","ASin","ASinr","ATan","ATan2","ATan2r","ATanr","Abs","Abs","Ceil","Clamp","Clamp","Cos","Cosr","Exp","Floor","Log","Max","Max","Min","Min","Pow","Sgn","Sgn","Sin","Sinr","Sqrt","Tan","Tanr","Seed","PI","HALFPI","TWOPI"],literal:["true","false","null"]},illegal:/\/\*/,contains:[e.COMMENT("#rem","#end"),e.COMMENT("'","$",{relevance:0}),n,r,{className:"variable.language",begin:/\b(self|super)\b/},{className:"meta",begin:/\s*#/,end:"$",keywords:{keyword:"if else elseif endif end then"}},{match:[/^\s*/,/strict\b/],scope:{2:"meta"}},{beginKeywords:"alias",end:"=",contains:[e.UNDERSCORE_TITLE_MODE]},e.QUOTE_STRING_MODE,t]}}function Lfn(e){const t={keyword:"if then not for in while do return else elseif break continue switch and or unless when class extends super local import export from using",literal:"true false nil",built_in:"_G _VERSION assert collectgarbage dofile error getfenv getmetatable ipairs load loadfile loadstring module next pairs pcall print rawequal rawget rawset require select setfenv setmetatable tonumber tostring type unpack xpcall coroutine debug io math os package string table"},n="[A-Za-z$_][0-9A-Za-z$_]*",r={className:"subst",begin:/#\{/,end:/\}/,keywords:t},i=[e.inherit(e.C_NUMBER_MODE,{starts:{end:"(\\s*/)?",relevance:0}}),{className:"string",variants:[{begin:/'/,end:/'/,contains:[e.BACKSLASH_ESCAPE]},{begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,r]}]},{className:"built_in",begin:"@__"+e.IDENT_RE},{begin:"@"+e.IDENT_RE},{begin:e.IDENT_RE+"\\\\"+e.IDENT_RE}];r.contains=i;const o=e.inherit(e.TITLE_MODE,{begin:n}),a="(\\(.*\\)\\s*)?\\B[-=]>",s={className:"params",begin:"\\([^\\(]",returnBegin:!0,contains:[{begin:/\(/,end:/\)/,keywords:t,contains:["self"].concat(i)}]};return{name:"MoonScript",aliases:["moon"],keywords:t,illegal:/\/\*/,contains:i.concat([e.COMMENT("--","$"),{className:"function",begin:"^\\s*"+n+"\\s*=\\s*"+a,end:"[-=]>",returnBegin:!0,contains:[o,s]},{begin:/[\(,:=]\s*/,relevance:0,contains:[{className:"function",begin:a,end:"[-=]>",returnBegin:!0,contains:[s]}]},{className:"class",beginKeywords:"class",end:"$",illegal:/[:="\[\]]/,contains:[{beginKeywords:"extends",endsWithParent:!0,illegal:/[:="\[\]]/,contains:[o]},o]},{className:"name",begin:n+":",end:":",returnBegin:!0,returnEnd:!0,relevance:0}])}}function $fn(e){return{name:"N1QL",case_insensitive:!0,contains:[{beginKeywords:"build create index delete drop explain infer|10 insert merge prepare select update upsert|10",end:/;/,keywords:{keyword:["all","alter","analyze","and","any","array","as","asc","begin","between","binary","boolean","break","bucket","build","by","call","case","cast","cluster","collate","collection","commit","connect","continue","correlate","cover","create","database","dataset","datastore","declare","decrement","delete","derived","desc","describe","distinct","do","drop","each","element","else","end","every","except","exclude","execute","exists","explain","fetch","first","flatten","for","force","from","function","grant","group","gsi","having","if","ignore","ilike","in","include","increment","index","infer","inline","inner","insert","intersect","into","is","join","key","keys","keyspace","known","last","left","let","letting","like","limit","lsm","map","mapping","matched","materialized","merge","minus","namespace","nest","not","number","object","offset","on","option","or","order","outer","over","parse","partition","password","path","pool","prepare","primary","private","privilege","procedure","public","raw","realm","reduce","rename","return","returning","revoke","right","role","rollback","satisfies","schema","select","self","semi","set","show","some","start","statistics","string","system","then","to","transaction","trigger","truncate","under","union","unique","unknown","unnest","unset","update","upsert","use","user","using","validate","value","valued","values","via","view","when","where","while","with","within","work","xor"],literal:["true","false","null","missing|5"],built_in:["array_agg","array_append","array_concat","array_contains","array_count","array_distinct","array_ifnull","array_length","array_max","array_min","array_position","array_prepend","array_put","array_range","array_remove","array_repeat","array_replace","array_reverse","array_sort","array_sum","avg","count","max","min","sum","greatest","least","ifmissing","ifmissingornull","ifnull","missingif","nullif","ifinf","ifnan","ifnanorinf","naninf","neginfif","posinfif","clock_millis","clock_str","date_add_millis","date_add_str","date_diff_millis","date_diff_str","date_part_millis","date_part_str","date_trunc_millis","date_trunc_str","duration_to_str","millis","str_to_millis","millis_to_str","millis_to_utc","millis_to_zone_name","now_millis","now_str","str_to_duration","str_to_utc","str_to_zone_name","decode_json","encode_json","encoded_size","poly_length","base64","base64_encode","base64_decode","meta","uuid","abs","acos","asin","atan","atan2","ceil","cos","degrees","e","exp","ln","log","floor","pi","power","radians","random","round","sign","sin","sqrt","tan","trunc","object_length","object_names","object_pairs","object_inner_pairs","object_values","object_inner_values","object_add","object_put","object_remove","object_unwrap","regexp_contains","regexp_like","regexp_position","regexp_replace","contains","initcap","length","lower","ltrim","position","repeat","replace","rtrim","split","substr","title","trim","upper","isarray","isatom","isboolean","isnumber","isobject","isstring","type","toarray","toatom","toboolean","tonumber","toobject","tostring"]},contains:[{className:"string",begin:"'",end:"'",contains:[e.BACKSLASH_ESCAPE]},{className:"string",begin:'"',end:'"',contains:[e.BACKSLASH_ESCAPE]},{className:"symbol",begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE]},e.C_NUMBER_MODE,e.C_BLOCK_COMMENT_MODE]},e.C_BLOCK_COMMENT_MODE]}}function Ffn(e){const t={match:[/^\s*(?=\S)/,/[^:]+/,/:\s*/,/$/],className:{2:"attribute",3:"punctuation"}},n={match:[/^\s*(?=\S)/,/[^:]*[^: ]/,/[ ]*:/,/[ ]/,/.*$/],className:{2:"attribute",3:"punctuation",5:"string"}},r={match:[/^\s*/,/>/,/[ ]/,/.*$/],className:{2:"punctuation",4:"string"}},i={variants:[{match:[/^\s*/,/-/,/[ ]/,/.*$/]},{match:[/^\s*/,/-$/]}],className:{2:"bullet",4:"string"}};return{name:"Nested Text",aliases:["nt"],contains:[e.inherit(e.HASH_COMMENT_MODE,{begin:/^\s*(?=#)/,excludeBegin:!0}),i,r,t,n]}}function Bfn(e){const t=e.regex,n={className:"variable",variants:[{begin:/\$\d+/},{begin:/\$\{\w+\}/},{begin:t.concat(/[$@]/,e.UNDERSCORE_IDENT_RE)}]},r={endsWithParent:!0,keywords:{$pattern:/[a-z_]{2,}|\/dev\/poll/,literal:["on","off","yes","no","true","false","none","blocked","debug","info","notice","warn","error","crit","select","break","last","permanent","redirect","kqueue","rtsig","epoll","poll","/dev/poll"]},relevance:0,illegal:"=>",contains:[e.HASH_COMMENT_MODE,{className:"string",contains:[e.BACKSLASH_ESCAPE,n],variants:[{begin:/"/,end:/"/},{begin:/'/,end:/'/}]},{begin:"([a-z]+):/",end:"\\s",endsWithParent:!0,excludeEnd:!0,contains:[n]},{className:"regexp",contains:[e.BACKSLASH_ESCAPE,n],variants:[{begin:"\\s\\^",end:"\\s|\\{|;",returnEnd:!0},{begin:"~\\*?\\s+",end:"\\s|\\{|;",returnEnd:!0},{begin:"\\*(\\.[a-z\\-]+)+"},{begin:"([a-z\\-]+\\.)+\\*"}]},{className:"number",begin:"\\b\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}(:\\d{1,5})?\\b"},{className:"number",begin:"\\b\\d+[kKmMgGdshdwy]?\\b",relevance:0},n]};return{name:"Nginx config",aliases:["nginxconf"],contains:[e.HASH_COMMENT_MODE,{beginKeywords:"upstream location",end:/;|\{/,contains:r.contains,keywords:{section:"upstream location"}},{className:"section",begin:t.concat(e.UNDERSCORE_IDENT_RE+t.lookahead(/\s+\{/)),relevance:0},{begin:t.lookahead(e.UNDERSCORE_IDENT_RE+"\\s"),end:";|\\{",contains:[{className:"attribute",begin:e.UNDERSCORE_IDENT_RE,starts:r}],relevance:0}],illegal:"[^\\s\\}\\{]"}}function jfn(e){return{name:"Nim",keywords:{keyword:["addr","and","as","asm","bind","block","break","case","cast","const","continue","converter","discard","distinct","div","do","elif","else","end","enum","except","export","finally","for","from","func","generic","guarded","if","import","in","include","interface","is","isnot","iterator","let","macro","method","mixin","mod","nil","not","notin","object","of","or","out","proc","ptr","raise","ref","return","shared","shl","shr","static","template","try","tuple","type","using","var","when","while","with","without","xor","yield"],literal:["true","false"],type:["int","int8","int16","int32","int64","uint","uint8","uint16","uint32","uint64","float","float32","float64","bool","char","string","cstring","pointer","expr","stmt","void","auto","any","range","array","openarray","varargs","seq","set","clong","culong","cchar","cschar","cshort","cint","csize","clonglong","cfloat","cdouble","clongdouble","cuchar","cushort","cuint","culonglong","cstringarray","semistatic"],built_in:["stdin","stdout","stderr","result"]},contains:[{className:"meta",begin:/\{\./,end:/\.\}/,relevance:10},{className:"string",begin:/[a-zA-Z]\w*"/,end:/"/,contains:[{begin:/""/}]},{className:"string",begin:/([a-zA-Z]\w*)?"""/,end:/"""/},e.QUOTE_STRING_MODE,{className:"type",begin:/\b[A-Z]\w+\b/,relevance:0},{className:"number",relevance:0,variants:[{begin:/\b(0[xX][0-9a-fA-F][_0-9a-fA-F]*)('?[iIuU](8|16|32|64))?/},{begin:/\b(0o[0-7][_0-7]*)('?[iIuUfF](8|16|32|64))?/},{begin:/\b(0(b|B)[01][_01]*)('?[iIuUfF](8|16|32|64))?/},{begin:/\b(\d[_\d]*)('?[iIuUfF](8|16|32|64))?/}]},e.HASH_COMMENT_MODE]}}function Hfn(e){const t={keyword:["rec","with","let","in","inherit","assert","if","else","then"],literal:["true","false","or","and","null"],built_in:["import","abort","baseNameOf","dirOf","isNull","builtins","map","removeAttrs","throw","toString","derivation"]},n={className:"subst",begin:/\$\{/,end:/\}/,keywords:t},r={className:"char.escape",begin:/''\$/},i={begin:/[a-zA-Z0-9-_]+(\s*=)/,returnBegin:!0,relevance:0,contains:[{className:"attr",begin:/\S+/,relevance:.2}]},o={className:"string",contains:[r,n],variants:[{begin:"''",end:"''"},{begin:'"',end:'"'}]},a=[e.NUMBER_MODE,e.HASH_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,o,i];return n.contains=a,{name:"Nix",aliases:["nixos"],keywords:t,contains:a}}function Ufn(e){return{name:"Node REPL",contains:[{className:"meta.prompt",starts:{end:/ |$/,starts:{end:"$",subLanguage:"javascript"}},variants:[{begin:/^>(?=[ ]|$)/},{begin:/^\.\.\.(?=[ ]|$)/}]}]}}function zfn(e){const t=e.regex,n=["ADMINTOOLS","APPDATA","CDBURN_AREA","CMDLINE","COMMONFILES32","COMMONFILES64","COMMONFILES","COOKIES","DESKTOP","DOCUMENTS","EXEDIR","EXEFILE","EXEPATH","FAVORITES","FONTS","HISTORY","HWNDPARENT","INSTDIR","INTERNET_CACHE","LANGUAGE","LOCALAPPDATA","MUSIC","NETHOOD","OUTDIR","PICTURES","PLUGINSDIR","PRINTHOOD","PROFILE","PROGRAMFILES32","PROGRAMFILES64","PROGRAMFILES","QUICKLAUNCH","RECENT","RESOURCES_LOCALIZED","RESOURCES","SENDTO","SMPROGRAMS","SMSTARTUP","STARTMENU","SYSDIR","TEMP","TEMPLATES","VIDEOS","WINDIR"],r=["ARCHIVE","FILE_ATTRIBUTE_ARCHIVE","FILE_ATTRIBUTE_NORMAL","FILE_ATTRIBUTE_OFFLINE","FILE_ATTRIBUTE_READONLY","FILE_ATTRIBUTE_SYSTEM","FILE_ATTRIBUTE_TEMPORARY","HKCR","HKCU","HKDD","HKEY_CLASSES_ROOT","HKEY_CURRENT_CONFIG","HKEY_CURRENT_USER","HKEY_DYN_DATA","HKEY_LOCAL_MACHINE","HKEY_PERFORMANCE_DATA","HKEY_USERS","HKLM","HKPD","HKU","IDABORT","IDCANCEL","IDIGNORE","IDNO","IDOK","IDRETRY","IDYES","MB_ABORTRETRYIGNORE","MB_DEFBUTTON1","MB_DEFBUTTON2","MB_DEFBUTTON3","MB_DEFBUTTON4","MB_ICONEXCLAMATION","MB_ICONINFORMATION","MB_ICONQUESTION","MB_ICONSTOP","MB_OK","MB_OKCANCEL","MB_RETRYCANCEL","MB_RIGHT","MB_RTLREADING","MB_SETFOREGROUND","MB_TOPMOST","MB_USERICON","MB_YESNO","NORMAL","OFFLINE","READONLY","SHCTX","SHELL_CONTEXT","SYSTEM|TEMPORARY"],i=["addincludedir","addplugindir","appendfile","assert","cd","define","delfile","echo","else","endif","error","execute","finalize","getdllversion","gettlbversion","if","ifdef","ifmacrodef","ifmacrondef","ifndef","include","insertmacro","macro","macroend","makensis","packhdr","searchparse","searchreplace","system","tempfile","undef","uninstfinalize","verbose","warning"],o={className:"variable.constant",begin:t.concat(/\$/,t.either(...n))},a={className:"variable",begin:/\$+\{[\!\w.:-]+\}/},s={className:"variable",begin:/\$+\w[\w\.]*/,illegal:/\(\)\{\}/},l={className:"variable",begin:/\$+\([\w^.:!-]+\)/},c={className:"params",begin:t.either(...r)},u={className:"keyword",begin:t.concat(/!/,t.either(...i))},d={className:"char.escape",begin:/\$(\\[nrt]|\$)/},f={className:"title.function",begin:/\w+::\w+/},h={className:"string",variants:[{begin:'"',end:'"'},{begin:"'",end:"'"},{begin:"`",end:"`"}],illegal:/\n/,contains:[d,o,a,s,l]},m=["Abort","AddBrandingImage","AddSize","AllowRootDirInstall","AllowSkipFiles","AutoCloseWindow","BGFont","BGGradient","BrandingText","BringToFront","Call","CallInstDLL","Caption","ChangeUI","CheckBitmap","ClearErrors","CompletedText","ComponentText","CopyFiles","CRCCheck","CreateDirectory","CreateFont","CreateShortCut","Delete","DeleteINISec","DeleteINIStr","DeleteRegKey","DeleteRegValue","DetailPrint","DetailsButtonText","DirText","DirVar","DirVerify","EnableWindow","EnumRegKey","EnumRegValue","Exch","Exec","ExecShell","ExecShellWait","ExecWait","ExpandEnvStrings","File","FileBufSize","FileClose","FileErrorText","FileOpen","FileRead","FileReadByte","FileReadUTF16LE","FileReadWord","FileWriteUTF16LE","FileSeek","FileWrite","FileWriteByte","FileWriteWord","FindClose","FindFirst","FindNext","FindWindow","FlushINI","GetCurInstType","GetCurrentAddress","GetDlgItem","GetDLLVersion","GetDLLVersionLocal","GetErrorLevel","GetFileTime","GetFileTimeLocal","GetFullPathName","GetFunctionAddress","GetInstDirError","GetKnownFolderPath","GetLabelAddress","GetTempFileName","GetWinVer","Goto","HideWindow","Icon","IfAbort","IfErrors","IfFileExists","IfRebootFlag","IfRtlLanguage","IfShellVarContextAll","IfSilent","InitPluginsDir","InstallButtonText","InstallColors","InstallDir","InstallDirRegKey","InstProgressFlags","InstType","InstTypeGetText","InstTypeSetText","Int64Cmp","Int64CmpU","Int64Fmt","IntCmp","IntCmpU","IntFmt","IntOp","IntPtrCmp","IntPtrCmpU","IntPtrOp","IsWindow","LangString","LicenseBkColor","LicenseData","LicenseForceSelection","LicenseLangString","LicenseText","LoadAndSetImage","LoadLanguageFile","LockWindow","LogSet","LogText","ManifestDPIAware","ManifestLongPathAware","ManifestMaxVersionTested","ManifestSupportedOS","MessageBox","MiscButtonText","Name|0","Nop","OutFile","Page","PageCallbacks","PEAddResource","PEDllCharacteristics","PERemoveResource","PESubsysVer","Pop","Push","Quit","ReadEnvStr","ReadINIStr","ReadRegDWORD","ReadRegStr","Reboot","RegDLL","Rename","RequestExecutionLevel","ReserveFile","Return","RMDir","SearchPath","SectionGetFlags","SectionGetInstTypes","SectionGetSize","SectionGetText","SectionIn","SectionSetFlags","SectionSetInstTypes","SectionSetSize","SectionSetText","SendMessage","SetAutoClose","SetBrandingImage","SetCompress","SetCompressor","SetCompressorDictSize","SetCtlColors","SetCurInstType","SetDatablockOptimize","SetDateSave","SetDetailsPrint","SetDetailsView","SetErrorLevel","SetErrors","SetFileAttributes","SetFont","SetOutPath","SetOverwrite","SetRebootFlag","SetRegView","SetShellVarContext","SetSilent","ShowInstDetails","ShowUninstDetails","ShowWindow","SilentInstall","SilentUnInstall","Sleep","SpaceTexts","StrCmp","StrCmpS","StrCpy","StrLen","SubCaption","Unicode","UninstallButtonText","UninstallCaption","UninstallIcon","UninstallSubCaption","UninstallText","UninstPage","UnRegDLL","Var","VIAddVersionKey","VIFileVersion","VIProductVersion","WindowIcon","WriteINIStr","WriteRegBin","WriteRegDWORD","WriteRegExpandStr","WriteRegMultiStr","WriteRegNone","WriteRegStr","WriteUninstaller","XPStyle"],g=["admin","all","auto","both","bottom","bzip2","colored","components","current","custom","directory","false","force","hide","highest","ifdiff","ifnewer","instfiles","lastused","leave","left","license","listonly","lzma","nevershow","none","normal","notset","off","on","open","print","right","show","silent","silentlog","smooth","textonly","top","true","try","un.components","un.custom","un.directory","un.instfiles","un.license","uninstConfirm","user","Win10","Win7","Win8","WinVista","zlib"],v={match:[/Function/,/\s+/,t.concat(/(\.)?/,e.IDENT_RE)],scope:{1:"keyword",3:"title.function"}},y={match:[/Var/,/\s+/,/(?:\/GLOBAL\s+)?/,/[A-Za-z][\w.]*/],scope:{1:"keyword",3:"params",4:"variable"}};return{name:"NSIS",case_insensitive:!0,keywords:{keyword:m,literal:g},contains:[e.HASH_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.COMMENT(";","$",{relevance:0}),y,v,{beginKeywords:"Function PageEx Section SectionGroup FunctionEnd SectionEnd"},h,u,a,s,l,c,f,e.NUMBER_MODE]}}function Vfn(e){return{name:"OCaml",aliases:["ml"],keywords:{$pattern:"[a-z_]\\w*!?",keyword:"and as assert asr begin class constraint do done downto else end exception external for fun function functor if in include inherit! inherit initializer land lazy let lor lsl lsr lxor match method!|10 method mod module mutable new object of open! open or private rec sig struct then to try type val! val virtual when while with parser value",built_in:"array bool bytes char exn|5 float int int32 int64 list lazy_t|5 nativeint|5 string unit in_channel out_channel ref",literal:"true false"},illegal:/\/\/|>>/,contains:[{className:"literal",begin:"\\[(\\|\\|)?\\]|\\(\\)",relevance:0},e.COMMENT("\\(\\*","\\*\\)",{contains:["self"]}),{className:"symbol",begin:"'[A-Za-z_](?!')[\\w']*"},{className:"type",begin:"`[A-Z][\\w']*"},{className:"type",begin:"\\b[A-Z][\\w']*",relevance:0},{begin:"[a-z_]\\w*'[\\w']*",relevance:0},e.inherit(e.APOS_STRING_MODE,{className:"string",relevance:0}),e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),{className:"number",begin:"\\b(0[xX][a-fA-F0-9_]+[Lln]?|0[oO][0-7_]+[Lln]?|0[bB][01_]+[Lln]?|[0-9][0-9_]*([Lln]|(\\.[0-9_]*)?([eE][-+]?[0-9_]+)?)?)",relevance:0},{begin:/->/}]}}function Gfn(e){const t={className:"keyword",begin:"\\$(f[asn]|t|vp[rtd]|children)"},n={className:"literal",begin:"false|true|PI|undef"},r={className:"number",begin:"\\b\\d+(\\.\\d+)?(e-?\\d+)?",relevance:0},i=e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),o={className:"meta",keywords:{keyword:"include use"},begin:"include|use <",end:">"},a={className:"params",begin:"\\(",end:"\\)",contains:["self",r,i,t,n]},s={begin:"[*!#%]",relevance:0},l={className:"function",beginKeywords:"module function",end:/=|\{/,contains:[a,e.UNDERSCORE_TITLE_MODE]};return{name:"OpenSCAD",aliases:["scad"],keywords:{keyword:"function module include use for intersection_for if else \\%",literal:"false true PI undef",built_in:"circle square polygon text sphere cube cylinder polyhedron translate rotate scale resize mirror multmatrix color offset hull minkowski union difference intersection abs sign sin cos tan acos asin atan atan2 floor round ceil ln log pow sqrt exp rands min max concat lookup str chr search version version_num norm cross parent_module echo import import_dxf dxf_linear_extrude linear_extrude rotate_extrude surface projection render children dxf_cross dxf_dim let assign"},contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,r,o,i,t,s,l]}}function Wfn(e){const t={$pattern:/\.?\w+/,keyword:"abstract add and array as asc aspect assembly async begin break block by case class concat const copy constructor continue create default delegate desc distinct div do downto dynamic each else empty end ensure enum equals event except exit extension external false final finalize finalizer finally flags for forward from function future global group has if implementation implements implies in index inherited inline interface into invariants is iterator join locked locking loop matching method mod module namespace nested new nil not notify nullable of old on operator or order out override parallel params partial pinned private procedure property protected public queryable raise read readonly record reintroduce remove repeat require result reverse sealed select self sequence set shl shr skip static step soft take then to true try tuple type union unit unsafe until uses using var virtual raises volatile where while with write xor yield await mapped deprecated stdcall cdecl pascal register safecall overload library platform reference packed strict published autoreleasepool selector strong weak unretained"},n=e.COMMENT(/\{/,/\}/,{relevance:0}),r=e.COMMENT("\\(\\*","\\*\\)",{relevance:10}),i={className:"string",begin:"'",end:"'",contains:[{begin:"''"}]},o={className:"string",begin:"(#\\d+)+"},a={beginKeywords:"function constructor destructor procedure method",end:"[:;]",keywords:"function constructor|10 destructor|10 procedure|10 method|10",contains:[e.inherit(e.TITLE_MODE,{scope:"title.function"}),{className:"params",begin:"\\(",end:"\\)",keywords:t,contains:[i,o]},n,r]},s={scope:"punctuation",match:/;/,relevance:0};return{name:"Oxygene",case_insensitive:!0,keywords:t,illegal:'("|\\$[G-Zg-z]|\\/\\*|</|=>|->)',contains:[n,r,e.C_LINE_COMMENT_MODE,i,o,e.NUMBER_MODE,a,s]}}function qfn(e){const t=e.COMMENT(/\{/,/\}/,{contains:["self"]});return{name:"Parser3",subLanguage:"xml",relevance:0,contains:[e.COMMENT("^#","$"),e.COMMENT(/\^rem\{/,/\}/,{relevance:10,contains:[t]}),{className:"meta",begin:"^@(?:BASE|USE|CLASS|OPTIONS)$",relevance:10},{className:"title",begin:"@[\\w\\-]+\\[[\\w^;\\-]*\\](?:\\[[\\w^;\\-]*\\])?(?:.*)$"},{className:"variable",begin:/\$\{?[\w\-.:]+\}?/},{className:"keyword",begin:/\^[\w\-.:]+/},{className:"number",begin:"\\^#[0-9a-fA-F]+"},e.C_NUMBER_MODE]}}function Yfn(e){const t={className:"variable",begin:/\$[\w\d#@][\w\d_]*/,relevance:0},n={className:"variable",begin:/<(?!\/)/,end:/>/};return{name:"Packet Filter config",aliases:["pf.conf"],keywords:{$pattern:/[a-z0-9_<>-]+/,built_in:"block match pass load anchor|5 antispoof|10 set table",keyword:"in out log quick on rdomain inet inet6 proto from port os to route allow-opts divert-packet divert-reply divert-to flags group icmp-type icmp6-type label once probability recieved-on rtable prio queue tos tag tagged user keep fragment for os drop af-to|10 binat-to|10 nat-to|10 rdr-to|10 bitmask least-stats random round-robin source-hash static-port dup-to reply-to route-to parent bandwidth default min max qlimit block-policy debug fingerprints hostid limit loginterface optimization reassemble ruleset-optimization basic none profile skip state-defaults state-policy timeout const counters persist no modulate synproxy state|5 floating if-bound no-sync pflow|10 sloppy source-track global rule max-src-nodes max-src-states max-src-conn max-src-conn-rate overload flush scrub|5 max-mss min-ttl no-df|10 random-id",literal:"all any no-route self urpf-failed egress|5 unknown"},contains:[e.HASH_COMMENT_MODE,e.NUMBER_MODE,e.QUOTE_STRING_MODE,t,n]}}function Kfn(e){const t=e.COMMENT("--","$"),n="[a-zA-Z_][a-zA-Z_0-9$]*",r="\\$([a-zA-Z_]?|[a-zA-Z_][a-zA-Z_0-9]*)\\$",i="<<\\s*"+n+"\\s*>>",o="ABORT ALTER ANALYZE BEGIN CALL CHECKPOINT|10 CLOSE CLUSTER COMMENT COMMIT COPY CREATE DEALLOCATE DECLARE DELETE DISCARD DO DROP END EXECUTE EXPLAIN FETCH GRANT IMPORT INSERT LISTEN LOAD LOCK MOVE NOTIFY PREPARE REASSIGN|10 REFRESH REINDEX RELEASE RESET REVOKE ROLLBACK SAVEPOINT SECURITY SELECT SET SHOW START TRUNCATE UNLISTEN|10 UPDATE VACUUM|10 VALUES AGGREGATE COLLATION CONVERSION|10 DATABASE DEFAULT PRIVILEGES DOMAIN TRIGGER EXTENSION FOREIGN WRAPPER|10 TABLE FUNCTION GROUP LANGUAGE LARGE OBJECT MATERIALIZED VIEW OPERATOR CLASS FAMILY POLICY PUBLICATION|10 ROLE RULE SCHEMA SEQUENCE SERVER STATISTICS SUBSCRIPTION SYSTEM TABLESPACE CONFIGURATION DICTIONARY PARSER TEMPLATE TYPE USER MAPPING PREPARED ACCESS METHOD CAST AS TRANSFORM TRANSACTION OWNED TO INTO SESSION AUTHORIZATION INDEX PROCEDURE ASSERTION ALL ANALYSE AND ANY ARRAY ASC ASYMMETRIC|10 BOTH CASE CHECK COLLATE COLUMN CONCURRENTLY|10 CONSTRAINT CROSS DEFERRABLE RANGE DESC DISTINCT ELSE EXCEPT FOR FREEZE|10 FROM FULL HAVING ILIKE IN INITIALLY INNER INTERSECT IS ISNULL JOIN LATERAL LEADING LIKE LIMIT NATURAL NOT NOTNULL NULL OFFSET ON ONLY OR ORDER OUTER OVERLAPS PLACING PRIMARY REFERENCES RETURNING SIMILAR SOME SYMMETRIC TABLESAMPLE THEN TRAILING UNION UNIQUE USING VARIADIC|10 VERBOSE WHEN WHERE WINDOW WITH BY RETURNS INOUT OUT SETOF|10 IF STRICT CURRENT CONTINUE OWNER LOCATION OVER PARTITION WITHIN BETWEEN ESCAPE EXTERNAL INVOKER DEFINER WORK RENAME VERSION CONNECTION CONNECT TABLES TEMP TEMPORARY FUNCTIONS SEQUENCES TYPES SCHEMAS OPTION CASCADE RESTRICT ADD ADMIN EXISTS VALID VALIDATE ENABLE DISABLE REPLICA|10 ALWAYS PASSING COLUMNS PATH REF VALUE OVERRIDING IMMUTABLE STABLE VOLATILE BEFORE AFTER EACH ROW PROCEDURAL ROUTINE NO HANDLER VALIDATOR OPTIONS STORAGE OIDS|10 WITHOUT INHERIT DEPENDS CALLED INPUT LEAKPROOF|10 COST ROWS NOWAIT SEARCH UNTIL ENCRYPTED|10 PASSWORD CONFLICT|10 INSTEAD INHERITS CHARACTERISTICS WRITE CURSOR ALSO STATEMENT SHARE EXCLUSIVE INLINE ISOLATION REPEATABLE READ COMMITTED SERIALIZABLE UNCOMMITTED LOCAL GLOBAL SQL PROCEDURES RECURSIVE SNAPSHOT ROLLUP CUBE TRUSTED|10 INCLUDE FOLLOWING PRECEDING UNBOUNDED RANGE GROUPS UNENCRYPTED|10 SYSID FORMAT DELIMITER HEADER QUOTE ENCODING FILTER OFF FORCE_QUOTE FORCE_NOT_NULL FORCE_NULL COSTS BUFFERS TIMING SUMMARY DISABLE_PAGE_SKIPPING RESTART CYCLE GENERATED IDENTITY DEFERRED IMMEDIATE LEVEL LOGGED UNLOGGED OF NOTHING NONE EXCLUDE ATTRIBUTE USAGE ROUTINES TRUE FALSE NAN INFINITY ",a="SUPERUSER NOSUPERUSER CREATEDB NOCREATEDB CREATEROLE NOCREATEROLE INHERIT NOINHERIT LOGIN NOLOGIN REPLICATION NOREPLICATION BYPASSRLS NOBYPASSRLS ",s="ALIAS BEGIN CONSTANT DECLARE END EXCEPTION RETURN PERFORM|10 RAISE GET DIAGNOSTICS STACKED|10 FOREACH LOOP ELSIF EXIT WHILE REVERSE SLICE DEBUG LOG INFO NOTICE WARNING ASSERT OPEN ",l="BIGINT INT8 BIGSERIAL SERIAL8 BIT VARYING VARBIT BOOLEAN BOOL BOX BYTEA CHARACTER CHAR VARCHAR CIDR CIRCLE DATE DOUBLE PRECISION FLOAT8 FLOAT INET INTEGER INT INT4 INTERVAL JSON JSONB LINE LSEG|10 MACADDR MACADDR8 MONEY NUMERIC DEC DECIMAL PATH POINT POLYGON REAL FLOAT4 SMALLINT INT2 SMALLSERIAL|10 SERIAL2|10 SERIAL|10 SERIAL4|10 TEXT TIME ZONE TIMETZ|10 TIMESTAMP TIMESTAMPTZ|10 TSQUERY|10 TSVECTOR|10 TXID_SNAPSHOT|10 UUID XML NATIONAL NCHAR INT4RANGE|10 INT8RANGE|10 NUMRANGE|10 TSRANGE|10 TSTZRANGE|10 DATERANGE|10 ANYELEMENT ANYARRAY ANYNONARRAY ANYENUM ANYRANGE CSTRING INTERNAL RECORD PG_DDL_COMMAND VOID UNKNOWN OPAQUE REFCURSOR NAME OID REGPROC|10 REGPROCEDURE|10 REGOPER|10 REGOPERATOR|10 REGCLASS|10 REGTYPE|10 REGROLE|10 REGNAMESPACE|10 REGCONFIG|10 REGDICTIONARY|10 ",c=l.trim().split(" ").map(function(m){return m.split("|")[0]}).join("|"),u="CURRENT_TIME CURRENT_TIMESTAMP CURRENT_USER CURRENT_CATALOG|10 CURRENT_DATE LOCALTIME LOCALTIMESTAMP CURRENT_ROLE|10 CURRENT_SCHEMA|10 SESSION_USER PUBLIC ",d="FOUND NEW OLD TG_NAME|10 TG_WHEN|10 TG_LEVEL|10 TG_OP|10 TG_RELID|10 TG_RELNAME|10 TG_TABLE_NAME|10 TG_TABLE_SCHEMA|10 TG_NARGS|10 TG_ARGV|10 TG_EVENT|10 TG_TAG|10 ROW_COUNT RESULT_OID|10 PG_CONTEXT|10 RETURNED_SQLSTATE COLUMN_NAME CONSTRAINT_NAME PG_DATATYPE_NAME|10 MESSAGE_TEXT TABLE_NAME SCHEMA_NAME PG_EXCEPTION_DETAIL|10 PG_EXCEPTION_HINT|10 PG_EXCEPTION_CONTEXT|10 ",f="SQLSTATE SQLERRM|10 SUCCESSFUL_COMPLETION WARNING DYNAMIC_RESULT_SETS_RETURNED IMPLICIT_ZERO_BIT_PADDING NULL_VALUE_ELIMINATED_IN_SET_FUNCTION PRIVILEGE_NOT_GRANTED PRIVILEGE_NOT_REVOKED STRING_DATA_RIGHT_TRUNCATION DEPRECATED_FEATURE NO_DATA NO_ADDITIONAL_DYNAMIC_RESULT_SETS_RETURNED SQL_STATEMENT_NOT_YET_COMPLETE CONNECTION_EXCEPTION CONNECTION_DOES_NOT_EXIST CONNECTION_FAILURE SQLCLIENT_UNABLE_TO_ESTABLISH_SQLCONNECTION SQLSERVER_REJECTED_ESTABLISHMENT_OF_SQLCONNECTION TRANSACTION_RESOLUTION_UNKNOWN PROTOCOL_VIOLATION TRIGGERED_ACTION_EXCEPTION FEATURE_NOT_SUPPORTED INVALID_TRANSACTION_INITIATION LOCATOR_EXCEPTION INVALID_LOCATOR_SPECIFICATION INVALID_GRANTOR INVALID_GRANT_OPERATION INVALID_ROLE_SPECIFICATION DIAGNOSTICS_EXCEPTION STACKED_DIAGNOSTICS_ACCESSED_WITHOUT_ACTIVE_HANDLER CASE_NOT_FOUND CARDINALITY_VIOLATION DATA_EXCEPTION ARRAY_SUBSCRIPT_ERROR CHARACTER_NOT_IN_REPERTOIRE DATETIME_FIELD_OVERFLOW DIVISION_BY_ZERO ERROR_IN_ASSIGNMENT ESCAPE_CHARACTER_CONFLICT INDICATOR_OVERFLOW INTERVAL_FIELD_OVERFLOW INVALID_ARGUMENT_FOR_LOGARITHM INVALID_ARGUMENT_FOR_NTILE_FUNCTION INVALID_ARGUMENT_FOR_NTH_VALUE_FUNCTION INVALID_ARGUMENT_FOR_POWER_FUNCTION INVALID_ARGUMENT_FOR_WIDTH_BUCKET_FUNCTION INVALID_CHARACTER_VALUE_FOR_CAST INVALID_DATETIME_FORMAT INVALID_ESCAPE_CHARACTER INVALID_ESCAPE_OCTET INVALID_ESCAPE_SEQUENCE NONSTANDARD_USE_OF_ESCAPE_CHARACTER INVALID_INDICATOR_PARAMETER_VALUE INVALID_PARAMETER_VALUE INVALID_REGULAR_EXPRESSION INVALID_ROW_COUNT_IN_LIMIT_CLAUSE INVALID_ROW_COUNT_IN_RESULT_OFFSET_CLAUSE INVALID_TABLESAMPLE_ARGUMENT INVALID_TABLESAMPLE_REPEAT INVALID_TIME_ZONE_DISPLACEMENT_VALUE INVALID_USE_OF_ESCAPE_CHARACTER MOST_SPECIFIC_TYPE_MISMATCH NULL_VALUE_NOT_ALLOWED NULL_VALUE_NO_INDICATOR_PARAMETER NUMERIC_VALUE_OUT_OF_RANGE SEQUENCE_GENERATOR_LIMIT_EXCEEDED STRING_DATA_LENGTH_MISMATCH STRING_DATA_RIGHT_TRUNCATION SUBSTRING_ERROR TRIM_ERROR UNTERMINATED_C_STRING ZERO_LENGTH_CHARACTER_STRING FLOATING_POINT_EXCEPTION INVALID_TEXT_REPRESENTATION INVALID_BINARY_REPRESENTATION BAD_COPY_FILE_FORMAT UNTRANSLATABLE_CHARACTER NOT_AN_XML_DOCUMENT INVALID_XML_DOCUMENT INVALID_XML_CONTENT INVALID_XML_COMMENT INVALID_XML_PROCESSING_INSTRUCTION INTEGRITY_CONSTRAINT_VIOLATION RESTRICT_VIOLATION NOT_NULL_VIOLATION FOREIGN_KEY_VIOLATION UNIQUE_VIOLATION CHECK_VIOLATION EXCLUSION_VIOLATION INVALID_CURSOR_STATE INVALID_TRANSACTION_STATE ACTIVE_SQL_TRANSACTION BRANCH_TRANSACTION_ALREADY_ACTIVE HELD_CURSOR_REQUIRES_SAME_ISOLATION_LEVEL INAPPROPRIATE_ACCESS_MODE_FOR_BRANCH_TRANSACTION INAPPROPRIATE_ISOLATION_LEVEL_FOR_BRANCH_TRANSACTION NO_ACTIVE_SQL_TRANSACTION_FOR_BRANCH_TRANSACTION READ_ONLY_SQL_TRANSACTION SCHEMA_AND_DATA_STATEMENT_MIXING_NOT_SUPPORTED NO_ACTIVE_SQL_TRANSACTION IN_FAILED_SQL_TRANSACTION IDLE_IN_TRANSACTION_SESSION_TIMEOUT INVALID_SQL_STATEMENT_NAME TRIGGERED_DATA_CHANGE_VIOLATION INVALID_AUTHORIZATION_SPECIFICATION INVALID_PASSWORD DEPENDENT_PRIVILEGE_DESCRIPTORS_STILL_EXIST DEPENDENT_OBJECTS_STILL_EXIST INVALID_TRANSACTION_TERMINATION SQL_ROUTINE_EXCEPTION FUNCTION_EXECUTED_NO_RETURN_STATEMENT MODIFYING_SQL_DATA_NOT_PERMITTED PROHIBITED_SQL_STATEMENT_ATTEMPTED READING_SQL_DATA_NOT_PERMITTED INVALID_CURSOR_NAME EXTERNAL_ROUTINE_EXCEPTION CONTAINING_SQL_NOT_PERMITTED MODIFYING_SQL_DATA_NOT_PERMITTED PROHIBITED_SQL_STATEMENT_ATTEMPTED READING_SQL_DATA_NOT_PERMITTED EXTERNAL_ROUTINE_INVOCATION_EXCEPTION INVALID_SQLSTATE_RETURNED NULL_VALUE_NOT_ALLOWED TRIGGER_PROTOCOL_VIOLATED SRF_PROTOCOL_VIOLATED EVENT_TRIGGER_PROTOCOL_VIOLATED SAVEPOINT_EXCEPTION INVALID_SAVEPOINT_SPECIFICATION INVALID_CATALOG_NAME INVALID_SCHEMA_NAME TRANSACTION_ROLLBACK TRANSACTION_INTEGRITY_CONSTRAINT_VIOLATION SERIALIZATION_FAILURE STATEMENT_COMPLETION_UNKNOWN DEADLOCK_DETECTED SYNTAX_ERROR_OR_ACCESS_RULE_VIOLATION SYNTAX_ERROR INSUFFICIENT_PRIVILEGE CANNOT_COERCE GROUPING_ERROR WINDOWING_ERROR INVALID_RECURSION INVALID_FOREIGN_KEY INVALID_NAME NAME_TOO_LONG RESERVED_NAME DATATYPE_MISMATCH INDETERMINATE_DATATYPE COLLATION_MISMATCH INDETERMINATE_COLLATION WRONG_OBJECT_TYPE GENERATED_ALWAYS UNDEFINED_COLUMN UNDEFINED_FUNCTION UNDEFINED_TABLE UNDEFINED_PARAMETER UNDEFINED_OBJECT DUPLICATE_COLUMN DUPLICATE_CURSOR DUPLICATE_DATABASE DUPLICATE_FUNCTION DUPLICATE_PREPARED_STATEMENT DUPLICATE_SCHEMA DUPLICATE_TABLE DUPLICATE_ALIAS DUPLICATE_OBJECT AMBIGUOUS_COLUMN AMBIGUOUS_FUNCTION AMBIGUOUS_PARAMETER AMBIGUOUS_ALIAS INVALID_COLUMN_REFERENCE INVALID_COLUMN_DEFINITION INVALID_CURSOR_DEFINITION INVALID_DATABASE_DEFINITION INVALID_FUNCTION_DEFINITION INVALID_PREPARED_STATEMENT_DEFINITION INVALID_SCHEMA_DEFINITION INVALID_TABLE_DEFINITION INVALID_OBJECT_DEFINITION WITH_CHECK_OPTION_VIOLATION INSUFFICIENT_RESOURCES DISK_FULL OUT_OF_MEMORY TOO_MANY_CONNECTIONS CONFIGURATION_LIMIT_EXCEEDED PROGRAM_LIMIT_EXCEEDED STATEMENT_TOO_COMPLEX TOO_MANY_COLUMNS TOO_MANY_ARGUMENTS OBJECT_NOT_IN_PREREQUISITE_STATE OBJECT_IN_USE CANT_CHANGE_RUNTIME_PARAM LOCK_NOT_AVAILABLE OPERATOR_INTERVENTION QUERY_CANCELED ADMIN_SHUTDOWN CRASH_SHUTDOWN CANNOT_CONNECT_NOW DATABASE_DROPPED SYSTEM_ERROR IO_ERROR UNDEFINED_FILE DUPLICATE_FILE SNAPSHOT_TOO_OLD CONFIG_FILE_ERROR LOCK_FILE_EXISTS FDW_ERROR FDW_COLUMN_NAME_NOT_FOUND FDW_DYNAMIC_PARAMETER_VALUE_NEEDED FDW_FUNCTION_SEQUENCE_ERROR FDW_INCONSISTENT_DESCRIPTOR_INFORMATION FDW_INVALID_ATTRIBUTE_VALUE FDW_INVALID_COLUMN_NAME FDW_INVALID_COLUMN_NUMBER FDW_INVALID_DATA_TYPE FDW_INVALID_DATA_TYPE_DESCRIPTORS FDW_INVALID_DESCRIPTOR_FIELD_IDENTIFIER FDW_INVALID_HANDLE FDW_INVALID_OPTION_INDEX FDW_INVALID_OPTION_NAME FDW_INVALID_STRING_LENGTH_OR_BUFFER_LENGTH FDW_INVALID_STRING_FORMAT FDW_INVALID_USE_OF_NULL_POINTER FDW_TOO_MANY_HANDLES FDW_OUT_OF_MEMORY FDW_NO_SCHEMAS FDW_OPTION_NAME_NOT_FOUND FDW_REPLY_HANDLE FDW_SCHEMA_NOT_FOUND FDW_TABLE_NOT_FOUND FDW_UNABLE_TO_CREATE_EXECUTION FDW_UNABLE_TO_CREATE_REPLY FDW_UNABLE_TO_ESTABLISH_CONNECTION PLPGSQL_ERROR RAISE_EXCEPTION NO_DATA_FOUND TOO_MANY_ROWS ASSERT_FAILURE INTERNAL_ERROR DATA_CORRUPTED INDEX_CORRUPTED ",h="ARRAY_AGG AVG BIT_AND BIT_OR BOOL_AND BOOL_OR COUNT EVERY JSON_AGG JSONB_AGG JSON_OBJECT_AGG JSONB_OBJECT_AGG MAX MIN MODE STRING_AGG SUM XMLAGG CORR COVAR_POP COVAR_SAMP REGR_AVGX REGR_AVGY REGR_COUNT REGR_INTERCEPT REGR_R2 REGR_SLOPE REGR_SXX REGR_SXY REGR_SYY STDDEV STDDEV_POP STDDEV_SAMP VARIANCE VAR_POP VAR_SAMP PERCENTILE_CONT PERCENTILE_DISC ROW_NUMBER RANK DENSE_RANK PERCENT_RANK CUME_DIST NTILE LAG LEAD FIRST_VALUE LAST_VALUE NTH_VALUE NUM_NONNULLS NUM_NULLS ABS CBRT CEIL CEILING DEGREES DIV EXP FLOOR LN LOG MOD PI POWER RADIANS ROUND SCALE SIGN SQRT TRUNC WIDTH_BUCKET RANDOM SETSEED ACOS ACOSD ASIN ASIND ATAN ATAND ATAN2 ATAN2D COS COSD COT COTD SIN SIND TAN TAND BIT_LENGTH CHAR_LENGTH CHARACTER_LENGTH LOWER OCTET_LENGTH OVERLAY POSITION SUBSTRING TREAT TRIM UPPER ASCII BTRIM CHR CONCAT CONCAT_WS CONVERT CONVERT_FROM CONVERT_TO DECODE ENCODE INITCAP LEFT LENGTH LPAD LTRIM MD5 PARSE_IDENT PG_CLIENT_ENCODING QUOTE_IDENT|10 QUOTE_LITERAL|10 QUOTE_NULLABLE|10 REGEXP_MATCH REGEXP_MATCHES REGEXP_REPLACE REGEXP_SPLIT_TO_ARRAY REGEXP_SPLIT_TO_TABLE REPEAT REPLACE REVERSE RIGHT RPAD RTRIM SPLIT_PART STRPOS SUBSTR TO_ASCII TO_HEX TRANSLATE OCTET_LENGTH GET_BIT GET_BYTE SET_BIT SET_BYTE TO_CHAR TO_DATE TO_NUMBER TO_TIMESTAMP AGE CLOCK_TIMESTAMP|10 DATE_PART DATE_TRUNC ISFINITE JUSTIFY_DAYS JUSTIFY_HOURS JUSTIFY_INTERVAL MAKE_DATE MAKE_INTERVAL|10 MAKE_TIME MAKE_TIMESTAMP|10 MAKE_TIMESTAMPTZ|10 NOW STATEMENT_TIMESTAMP|10 TIMEOFDAY TRANSACTION_TIMESTAMP|10 ENUM_FIRST ENUM_LAST ENUM_RANGE AREA CENTER DIAMETER HEIGHT ISCLOSED ISOPEN NPOINTS PCLOSE POPEN RADIUS WIDTH BOX BOUND_BOX CIRCLE LINE LSEG PATH POLYGON ABBREV BROADCAST HOST HOSTMASK MASKLEN NETMASK NETWORK SET_MASKLEN TEXT INET_SAME_FAMILY INET_MERGE MACADDR8_SET7BIT ARRAY_TO_TSVECTOR GET_CURRENT_TS_CONFIG NUMNODE PLAINTO_TSQUERY PHRASETO_TSQUERY WEBSEARCH_TO_TSQUERY QUERYTREE SETWEIGHT STRIP TO_TSQUERY TO_TSVECTOR JSON_TO_TSVECTOR JSONB_TO_TSVECTOR TS_DELETE TS_FILTER TS_HEADLINE TS_RANK TS_RANK_CD TS_REWRITE TSQUERY_PHRASE TSVECTOR_TO_ARRAY TSVECTOR_UPDATE_TRIGGER TSVECTOR_UPDATE_TRIGGER_COLUMN XMLCOMMENT XMLCONCAT XMLELEMENT XMLFOREST XMLPI XMLROOT XMLEXISTS XML_IS_WELL_FORMED XML_IS_WELL_FORMED_DOCUMENT XML_IS_WELL_FORMED_CONTENT XPATH XPATH_EXISTS XMLTABLE XMLNAMESPACES TABLE_TO_XML TABLE_TO_XMLSCHEMA TABLE_TO_XML_AND_XMLSCHEMA QUERY_TO_XML QUERY_TO_XMLSCHEMA QUERY_TO_XML_AND_XMLSCHEMA CURSOR_TO_XML CURSOR_TO_XMLSCHEMA SCHEMA_TO_XML SCHEMA_TO_XMLSCHEMA SCHEMA_TO_XML_AND_XMLSCHEMA DATABASE_TO_XML DATABASE_TO_XMLSCHEMA DATABASE_TO_XML_AND_XMLSCHEMA XMLATTRIBUTES TO_JSON TO_JSONB ARRAY_TO_JSON ROW_TO_JSON JSON_BUILD_ARRAY JSONB_BUILD_ARRAY JSON_BUILD_OBJECT JSONB_BUILD_OBJECT JSON_OBJECT JSONB_OBJECT JSON_ARRAY_LENGTH JSONB_ARRAY_LENGTH JSON_EACH JSONB_EACH JSON_EACH_TEXT JSONB_EACH_TEXT JSON_EXTRACT_PATH JSONB_EXTRACT_PATH JSON_OBJECT_KEYS JSONB_OBJECT_KEYS JSON_POPULATE_RECORD JSONB_POPULATE_RECORD JSON_POPULATE_RECORDSET JSONB_POPULATE_RECORDSET JSON_ARRAY_ELEMENTS JSONB_ARRAY_ELEMENTS JSON_ARRAY_ELEMENTS_TEXT JSONB_ARRAY_ELEMENTS_TEXT JSON_TYPEOF JSONB_TYPEOF JSON_TO_RECORD JSONB_TO_RECORD JSON_TO_RECORDSET JSONB_TO_RECORDSET JSON_STRIP_NULLS JSONB_STRIP_NULLS JSONB_SET JSONB_INSERT JSONB_PRETTY CURRVAL LASTVAL NEXTVAL SETVAL COALESCE NULLIF GREATEST LEAST ARRAY_APPEND ARRAY_CAT ARRAY_NDIMS ARRAY_DIMS ARRAY_FILL ARRAY_LENGTH ARRAY_LOWER ARRAY_POSITION ARRAY_POSITIONS ARRAY_PREPEND ARRAY_REMOVE ARRAY_REPLACE ARRAY_TO_STRING ARRAY_UPPER CARDINALITY STRING_TO_ARRAY UNNEST ISEMPTY LOWER_INC UPPER_INC LOWER_INF UPPER_INF RANGE_MERGE GENERATE_SERIES GENERATE_SUBSCRIPTS CURRENT_DATABASE CURRENT_QUERY CURRENT_SCHEMA|10 CURRENT_SCHEMAS|10 INET_CLIENT_ADDR INET_CLIENT_PORT INET_SERVER_ADDR INET_SERVER_PORT ROW_SECURITY_ACTIVE FORMAT_TYPE TO_REGCLASS TO_REGPROC TO_REGPROCEDURE TO_REGOPER TO_REGOPERATOR TO_REGTYPE TO_REGNAMESPACE TO_REGROLE COL_DESCRIPTION OBJ_DESCRIPTION SHOBJ_DESCRIPTION TXID_CURRENT TXID_CURRENT_IF_ASSIGNED TXID_CURRENT_SNAPSHOT TXID_SNAPSHOT_XIP TXID_SNAPSHOT_XMAX TXID_SNAPSHOT_XMIN TXID_VISIBLE_IN_SNAPSHOT TXID_STATUS CURRENT_SETTING SET_CONFIG BRIN_SUMMARIZE_NEW_VALUES BRIN_SUMMARIZE_RANGE BRIN_DESUMMARIZE_RANGE GIN_CLEAN_PENDING_LIST SUPPRESS_REDUNDANT_UPDATES_TRIGGER LO_FROM_BYTEA LO_PUT LO_GET LO_CREAT LO_CREATE LO_UNLINK LO_IMPORT LO_EXPORT LOREAD LOWRITE GROUPING CAST ".trim().split(" ").map(function(m){return m.split("|")[0]}).join("|");return{name:"PostgreSQL",aliases:["postgres","postgresql"],supersetOf:"sql",case_insensitive:!0,keywords:{keyword:o+s+a,built_in:u+d+f},illegal:/:==|\W\s*\(\*|(^|\s)\$[a-z]|\{\{|[a-z]:\s*$|\.\.\.|TO:|DO:/,contains:[{className:"keyword",variants:[{begin:/\bTEXT\s*SEARCH\b/},{begin:/\b(PRIMARY|FOREIGN|FOR(\s+NO)?)\s+KEY\b/},{begin:/\bPARALLEL\s+(UNSAFE|RESTRICTED|SAFE)\b/},{begin:/\bSTORAGE\s+(PLAIN|EXTERNAL|EXTENDED|MAIN)\b/},{begin:/\bMATCH\s+(FULL|PARTIAL|SIMPLE)\b/},{begin:/\bNULLS\s+(FIRST|LAST)\b/},{begin:/\bEVENT\s+TRIGGER\b/},{begin:/\b(MAPPING|OR)\s+REPLACE\b/},{begin:/\b(FROM|TO)\s+(PROGRAM|STDIN|STDOUT)\b/},{begin:/\b(SHARE|EXCLUSIVE)\s+MODE\b/},{begin:/\b(LEFT|RIGHT)\s+(OUTER\s+)?JOIN\b/},{begin:/\b(FETCH|MOVE)\s+(NEXT|PRIOR|FIRST|LAST|ABSOLUTE|RELATIVE|FORWARD|BACKWARD)\b/},{begin:/\bPRESERVE\s+ROWS\b/},{begin:/\bDISCARD\s+PLANS\b/},{begin:/\bREFERENCING\s+(OLD|NEW)\b/},{begin:/\bSKIP\s+LOCKED\b/},{begin:/\bGROUPING\s+SETS\b/},{begin:/\b(BINARY|INSENSITIVE|SCROLL|NO\s+SCROLL)\s+(CURSOR|FOR)\b/},{begin:/\b(WITH|WITHOUT)\s+HOLD\b/},{begin:/\bWITH\s+(CASCADED|LOCAL)\s+CHECK\s+OPTION\b/},{begin:/\bEXCLUDE\s+(TIES|NO\s+OTHERS)\b/},{begin:/\bFORMAT\s+(TEXT|XML|JSON|YAML)\b/},{begin:/\bSET\s+((SESSION|LOCAL)\s+)?NAMES\b/},{begin:/\bIS\s+(NOT\s+)?UNKNOWN\b/},{begin:/\bSECURITY\s+LABEL\b/},{begin:/\bSTANDALONE\s+(YES|NO|NO\s+VALUE)\b/},{begin:/\bWITH\s+(NO\s+)?DATA\b/},{begin:/\b(FOREIGN|SET)\s+DATA\b/},{begin:/\bSET\s+(CATALOG|CONSTRAINTS)\b/},{begin:/\b(WITH|FOR)\s+ORDINALITY\b/},{begin:/\bIS\s+(NOT\s+)?DOCUMENT\b/},{begin:/\bXML\s+OPTION\s+(DOCUMENT|CONTENT)\b/},{begin:/\b(STRIP|PRESERVE)\s+WHITESPACE\b/},{begin:/\bNO\s+(ACTION|MAXVALUE|MINVALUE)\b/},{begin:/\bPARTITION\s+BY\s+(RANGE|LIST|HASH)\b/},{begin:/\bAT\s+TIME\s+ZONE\b/},{begin:/\bGRANTED\s+BY\b/},{begin:/\bRETURN\s+(QUERY|NEXT)\b/},{begin:/\b(ATTACH|DETACH)\s+PARTITION\b/},{begin:/\bFORCE\s+ROW\s+LEVEL\s+SECURITY\b/},{begin:/\b(INCLUDING|EXCLUDING)\s+(COMMENTS|CONSTRAINTS|DEFAULTS|IDENTITY|INDEXES|STATISTICS|STORAGE|ALL)\b/},{begin:/\bAS\s+(ASSIGNMENT|IMPLICIT|PERMISSIVE|RESTRICTIVE|ENUM|RANGE)\b/}]},{begin:/\b(FORMAT|FAMILY|VERSION)\s*\(/},{begin:/\bINCLUDE\s*\(/,keywords:"INCLUDE"},{begin:/\bRANGE(?!\s*(BETWEEN|UNBOUNDED|CURRENT|[-0-9]+))/},{begin:/\b(VERSION|OWNER|TEMPLATE|TABLESPACE|CONNECTION\s+LIMIT|PROCEDURE|RESTRICT|JOIN|PARSER|COPY|START|END|COLLATION|INPUT|ANALYZE|STORAGE|LIKE|DEFAULT|DELIMITER|ENCODING|COLUMN|CONSTRAINT|TABLE|SCHEMA)\s*=/},{begin:/\b(PG_\w+?|HAS_[A-Z_]+_PRIVILEGE)\b/,relevance:10},{begin:/\bEXTRACT\s*\(/,end:/\bFROM\b/,returnEnd:!0,keywords:{type:"CENTURY DAY DECADE DOW DOY EPOCH HOUR ISODOW ISOYEAR MICROSECONDS MILLENNIUM MILLISECONDS MINUTE MONTH QUARTER SECOND TIMEZONE TIMEZONE_HOUR TIMEZONE_MINUTE WEEK YEAR"}},{begin:/\b(XMLELEMENT|XMLPI)\s*\(\s*NAME/,keywords:{keyword:"NAME"}},{begin:/\b(XMLPARSE|XMLSERIALIZE)\s*\(\s*(DOCUMENT|CONTENT)/,keywords:{keyword:"DOCUMENT CONTENT"}},{beginKeywords:"CACHE INCREMENT MAXVALUE MINVALUE",end:e.C_NUMBER_RE,returnEnd:!0,keywords:"BY CACHE INCREMENT MAXVALUE MINVALUE"},{className:"type",begin:/\b(WITH|WITHOUT)\s+TIME\s+ZONE\b/},{className:"type",begin:/\bINTERVAL\s+(YEAR|MONTH|DAY|HOUR|MINUTE|SECOND)(\s+TO\s+(MONTH|HOUR|MINUTE|SECOND))?\b/},{begin:/\bRETURNS\s+(LANGUAGE_HANDLER|TRIGGER|EVENT_TRIGGER|FDW_HANDLER|INDEX_AM_HANDLER|TSM_HANDLER)\b/,keywords:{keyword:"RETURNS",type:"LANGUAGE_HANDLER TRIGGER EVENT_TRIGGER FDW_HANDLER INDEX_AM_HANDLER TSM_HANDLER"}},{begin:"\\b("+h+")\\s*\\("},{begin:"\\.("+c+")\\b"},{begin:"\\b("+c+")\\s+PATH\\b",keywords:{keyword:"PATH",type:l.replace("PATH ","")}},{className:"type",begin:"\\b("+c+")\\b"},{className:"string",begin:"'",end:"'",contains:[{begin:"''"}]},{className:"string",begin:"(e|E|u&|U&)'",end:"'",contains:[{begin:"\\\\."}],relevance:10},e.END_SAME_AS_BEGIN({begin:r,end:r,contains:[{subLanguage:["pgsql","perl","python","tcl","r","lua","java","php","ruby","bash","scheme","xml","json"],endsWithParent:!0}]}),{begin:'"',end:'"',contains:[{begin:'""'}]},e.C_NUMBER_MODE,e.C_BLOCK_COMMENT_MODE,t,{className:"meta",variants:[{begin:"%(ROW)?TYPE",relevance:10},{begin:"\\$\\d+"},{begin:"^#\\w",end:"$"}]},{className:"symbol",begin:i,relevance:10}]}}function Qfn(e){const t={keyword:"actor addressof and as be break class compile_error compile_intrinsic consume continue delegate digestof do else elseif embed end error for fun if ifdef in interface is isnt lambda let match new not object or primitive recover repeat return struct then trait try type until use var where while with xor",meta:"iso val tag trn box ref",literal:"this false true"},n={className:"string",begin:'"""',end:'"""',relevance:10},r={className:"string",begin:'"',end:'"',contains:[e.BACKSLASH_ESCAPE]},i={className:"string",begin:"'",end:"'",contains:[e.BACKSLASH_ESCAPE],relevance:0},o={className:"type",begin:"\\b_?[A-Z][\\w]*",relevance:0},a={begin:e.IDENT_RE+"'",relevance:0};return{name:"Pony",keywords:t,contains:[o,n,r,i,a,{className:"number",begin:"(-?)(\\b0[xX][a-fA-F0-9]+|\\b0[bB][01]+|(\\b\\d+(_\\d+)?(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",relevance:0},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]}}function Xfn(e){const t=["string","char","byte","int","long","bool","decimal","single","double","DateTime","xml","array","hashtable","void"],n="Add|Clear|Close|Copy|Enter|Exit|Find|Format|Get|Hide|Join|Lock|Move|New|Open|Optimize|Pop|Push|Redo|Remove|Rename|Reset|Resize|Search|Select|Set|Show|Skip|Split|Step|Switch|Undo|Unlock|Watch|Backup|Checkpoint|Compare|Compress|Convert|ConvertFrom|ConvertTo|Dismount|Edit|Expand|Export|Group|Import|Initialize|Limit|Merge|Mount|Out|Publish|Restore|Save|Sync|Unpublish|Update|Approve|Assert|Build|Complete|Confirm|Deny|Deploy|Disable|Enable|Install|Invoke|Register|Request|Restart|Resume|Start|Stop|Submit|Suspend|Uninstall|Unregister|Wait|Debug|Measure|Ping|Repair|Resolve|Test|Trace|Connect|Disconnect|Read|Receive|Send|Write|Block|Grant|Protect|Revoke|Unblock|Unprotect|Use|ForEach|Sort|Tee|Where",r="-and|-as|-band|-bnot|-bor|-bxor|-casesensitive|-ccontains|-ceq|-cge|-cgt|-cle|-clike|-clt|-cmatch|-cne|-cnotcontains|-cnotlike|-cnotmatch|-contains|-creplace|-csplit|-eq|-exact|-f|-file|-ge|-gt|-icontains|-ieq|-ige|-igt|-ile|-ilike|-ilt|-imatch|-in|-ine|-inotcontains|-inotlike|-inotmatch|-ireplace|-is|-isnot|-isplit|-join|-le|-like|-lt|-match|-ne|-not|-notcontains|-notin|-notlike|-notmatch|-or|-regex|-replace|-shl|-shr|-split|-wildcard|-xor",i={$pattern:/-?[A-z\.\-]+\b/,keyword:"if else foreach return do while until elseif begin for trap data dynamicparam end break throw param continue finally in switch exit filter try process catch hidden static parameter",built_in:"ac asnp cat cd CFS chdir clc clear clhy cli clp cls clv cnsn compare copy cp cpi cpp curl cvpa dbp del diff dir dnsn ebp echo|0 epal epcsv epsn erase etsn exsn fc fhx fl ft fw gal gbp gc gcb gci gcm gcs gdr gerr ghy gi gin gjb gl gm gmo gp gps gpv group gsn gsnp gsv gtz gu gv gwmi h history icm iex ihy ii ipal ipcsv ipmo ipsn irm ise iwmi iwr kill lp ls man md measure mi mount move mp mv nal ndr ni nmo npssc nsn nv ogv oh popd ps pushd pwd r rbp rcjb rcsn rd rdr ren ri rjb rm rmdir rmo rni rnp rp rsn rsnp rujb rv rvpa rwmi sajb sal saps sasv sbp sc scb select set shcm si sl sleep sls sort sp spjb spps spsv start stz sujb sv swmi tee trcm type wget where wjb write"},o=/\w[\w\d]*((-)[\w\d]+)*/,a={begin:"`[\\s\\S]",relevance:0},s={className:"variable",variants:[{begin:/\$\B/},{className:"keyword",begin:/\$this/},{begin:/\$[\w\d][\w\d_:]*/}]},l={className:"literal",begin:/\$(null|true|false)\b/},c={className:"string",variants:[{begin:/"/,end:/"/},{begin:/@"/,end:/^"@/}],contains:[a,s,{className:"variable",begin:/\$[A-z]/,end:/[^A-z]/}]},u={className:"string",variants:[{begin:/'/,end:/'/},{begin:/@'/,end:/^'@/}]},d={className:"doctag",variants:[{begin:/\.(synopsis|description|example|inputs|outputs|notes|link|component|role|functionality)/},{begin:/\.(parameter|forwardhelptargetname|forwardhelpcategory|remotehelprunspace|externalhelp)\s+\S+/}]},f=e.inherit(e.COMMENT(null,null),{variants:[{begin:/#/,end:/$/},{begin:/<#/,end:/#>/}],contains:[d]}),h={className:"built_in",variants:[{begin:"(".concat(n,")+(-)[\\w\\d]+")}]},m={className:"class",beginKeywords:"class enum",end:/\s*[{]/,excludeEnd:!0,relevance:0,contains:[e.TITLE_MODE]},g={className:"function",begin:/function\s+/,end:/\s*\{|$/,excludeEnd:!0,returnBegin:!0,relevance:0,contains:[{begin:"function",relevance:0,className:"keyword"},{className:"title",begin:o,relevance:0},{begin:/\(/,end:/\)/,className:"params",relevance:0,contains:[s]}]},v={begin:/using\s/,end:/$/,returnBegin:!0,contains:[c,u,{className:"keyword",begin:/(using|assembly|command|module|namespace|type)/}]},y={variants:[{className:"operator",begin:"(".concat(r,")\\b")},{className:"literal",begin:/(-){1,2}[\w\d-]+/,relevance:0}]},b={className:"selector-tag",begin:/@\B/,relevance:0},_={className:"function",begin:/\[.*\]\s*[\w]+[ ]??\(/,end:/$/,returnBegin:!0,relevance:0,contains:[{className:"keyword",begin:"(".concat(i.keyword.toString().replace(/\s/g,"|"),")\\b"),endsParent:!0,relevance:0},e.inherit(e.TITLE_MODE,{endsParent:!0})]},E=[_,f,a,e.NUMBER_MODE,c,u,h,s,l,b],w={begin:/\[/,end:/\]/,excludeBegin:!0,excludeEnd:!0,relevance:0,contains:[].concat("self",E,{begin:"("+t.join("|")+")",className:"built_in",relevance:0},{className:"type",begin:/[\.\w\d]+/,relevance:0})};return _.contains.unshift(w),{name:"PowerShell",aliases:["pwsh","ps","ps1"],case_insensitive:!0,keywords:i,contains:E.concat(m,g,v,y,w)}}function Zfn(e){const t=e.regex,n=["displayHeight","displayWidth","mouseY","mouseX","mousePressed","pmouseX","pmouseY","key","keyCode","pixels","focused","frameCount","frameRate","height","width","size","createGraphics","beginDraw","createShape","loadShape","PShape","arc","ellipse","line","point","quad","rect","triangle","bezier","bezierDetail","bezierPoint","bezierTangent","curve","curveDetail","curvePoint","curveTangent","curveTightness","shape","shapeMode","beginContour","beginShape","bezierVertex","curveVertex","endContour","endShape","quadraticVertex","vertex","ellipseMode","noSmooth","rectMode","smooth","strokeCap","strokeJoin","strokeWeight","mouseClicked","mouseDragged","mouseMoved","mousePressed","mouseReleased","mouseWheel","keyPressed","keyPressedkeyReleased","keyTyped","print","println","save","saveFrame","day","hour","millis","minute","month","second","year","background","clear","colorMode","fill","noFill","noStroke","stroke","alpha","blue","brightness","color","green","hue","lerpColor","red","saturation","modelX","modelY","modelZ","screenX","screenY","screenZ","ambient","emissive","shininess","specular","add","createImage","beginCamera","camera","endCamera","frustum","ortho","perspective","printCamera","printProjection","cursor","frameRate","noCursor","exit","loop","noLoop","popStyle","pushStyle","redraw","binary","boolean","byte","char","float","hex","int","str","unbinary","unhex","join","match","matchAll","nf","nfc","nfp","nfs","split","splitTokens","trim","append","arrayCopy","concat","expand","reverse","shorten","sort","splice","subset","box","sphere","sphereDetail","createInput","createReader","loadBytes","loadJSONArray","loadJSONObject","loadStrings","loadTable","loadXML","open","parseXML","saveTable","selectFolder","selectInput","beginRaw","beginRecord","createOutput","createWriter","endRaw","endRecord","PrintWritersaveBytes","saveJSONArray","saveJSONObject","saveStream","saveStrings","saveXML","selectOutput","popMatrix","printMatrix","pushMatrix","resetMatrix","rotate","rotateX","rotateY","rotateZ","scale","shearX","shearY","translate","ambientLight","directionalLight","lightFalloff","lights","lightSpecular","noLights","normal","pointLight","spotLight","image","imageMode","loadImage","noTint","requestImage","tint","texture","textureMode","textureWrap","blend","copy","filter","get","loadPixels","set","updatePixels","blendMode","loadShader","PShaderresetShader","shader","createFont","loadFont","text","textFont","textAlign","textLeading","textMode","textSize","textWidth","textAscent","textDescent","abs","ceil","constrain","dist","exp","floor","lerp","log","mag","map","max","min","norm","pow","round","sq","sqrt","acos","asin","atan","atan2","cos","degrees","radians","sin","tan","noise","noiseDetail","noiseSeed","random","randomGaussian","randomSeed"],r=e.IDENT_RE,i={variants:[{match:t.concat(t.either(...n),t.lookahead(/\s*\(/)),className:"built_in"},{relevance:0,match:t.concat(/\b(?!for|if|while)/,r,t.lookahead(/\s*\(/)),className:"title.function"}]},o={match:[/new\s+/,r],className:{1:"keyword",2:"class.title"}},a={relevance:0,match:[/\./,r],className:{2:"property"}},s={variants:[{match:[/class/,/\s+/,r,/\s+/,/extends/,/\s+/,r]},{match:[/class/,/\s+/,r]}],className:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},l=["boolean","byte","char","color","double","float","int","long","short"],c=["BufferedReader","PVector","PFont","PImage","PGraphics","HashMap","String","Array","FloatDict","ArrayList","FloatList","IntDict","IntList","JSONArray","JSONObject","Object","StringDict","StringList","Table","TableRow","XML"];return{name:"Processing",aliases:["pde"],keywords:{keyword:["abstract","assert","break","case","catch","const","continue","default","else","enum","final","finally","for","if","import","instanceof","long","native","new","package","private","private","protected","protected","public","public","return","static","strictfp","switch","synchronized","throw","throws","transient","try","void","volatile","while"],literal:"P2D P3D HALF_PI PI QUARTER_PI TAU TWO_PI null true false",title:"setup draw",variable:"super this",built_in:[...n,...c],type:l},contains:[s,o,i,a,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.C_NUMBER_MODE]}}function Jfn(e){return{name:"Python profiler",contains:[e.C_NUMBER_MODE,{begin:"[a-zA-Z_][\\da-zA-Z_]+\\.[\\da-zA-Z_]{1,3}",end:":",excludeEnd:!0},{begin:"(ncalls|tottime|cumtime)",end:"$",keywords:"ncalls tottime|10 cumtime|10 filename",relevance:10},{begin:"function calls",end:"$",contains:[e.C_NUMBER_MODE],relevance:10},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{className:"string",begin:"\\(",end:"\\)$",excludeBegin:!0,excludeEnd:!0,relevance:0}]}}function epn(e){const t={begin:/[a-z][A-Za-z0-9_]*/,relevance:0},n={className:"symbol",variants:[{begin:/[A-Z][a-zA-Z0-9_]*/},{begin:/_[A-Za-z0-9_]*/}],relevance:0},r={begin:/\(/,end:/\)/,relevance:0},i={begin:/\[/,end:/\]/},o={className:"comment",begin:/%/,end:/$/,contains:[e.PHRASAL_WORDS_MODE]},a={className:"string",begin:/`/,end:/`/,contains:[e.BACKSLASH_ESCAPE]},s={className:"string",begin:/0'(\\'|.)/},l={className:"string",begin:/0'\\s/},c=[t,n,r,{begin:/:-/},i,o,e.C_BLOCK_COMMENT_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,a,s,l,e.C_NUMBER_MODE];return r.contains=c,i.contains=c,{name:"Prolog",contains:c.concat([{begin:/\.$/}])}}function tpn(e){const t="[ \\t\\f]*",n="[ \\t\\f]+",r=t+"[:=]"+t,i=n,o="("+r+"|"+i+")",a="([^\\\\:= \\t\\f\\n]|\\\\.)+",s={end:o,relevance:0,starts:{className:"string",end:/$/,relevance:0,contains:[{begin:"\\\\\\\\"},{begin:"\\\\\\n"}]}};return{name:".properties",disableAutodetect:!0,case_insensitive:!0,illegal:/\S/,contains:[e.COMMENT("^\\s*[!#]","$"),{returnBegin:!0,variants:[{begin:a+r},{begin:a+i}],contains:[{className:"attr",begin:a,endsParent:!0}],starts:s},{className:"attr",begin:a+t+"$"}]}}function npn(e){const t=["package","import","option","optional","required","repeated","group","oneof"],n=["double","float","int32","int64","uint32","uint64","sint32","sint64","fixed32","fixed64","sfixed32","sfixed64","bool","string","bytes"],r={match:[/(message|enum|service)\s+/,e.IDENT_RE],scope:{1:"keyword",2:"title.class"}};return{name:"Protocol Buffers",aliases:["proto"],keywords:{keyword:t,type:n,literal:["true","false"]},contains:[e.QUOTE_STRING_MODE,e.NUMBER_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,r,{className:"function",beginKeywords:"rpc",end:/[{;]/,excludeEnd:!0,keywords:"rpc returns"},{begin:/^\s*[A-Z_]+(?=\s*=[^\n]+;$)/}]}}function rpn(e){const t={keyword:"and case default else elsif false if in import enherits node or true undef unless main settings $string ",literal:"alias audit before loglevel noop require subscribe tag owner ensure group mode name|0 changes context force incl lens load_path onlyif provider returns root show_diff type_check en_address ip_address realname command environment hour monute month monthday special target weekday creates cwd ogoutput refresh refreshonly tries try_sleep umask backup checksum content ctime force ignore links mtime purge recurse recurselimit replace selinux_ignore_defaults selrange selrole seltype seluser source souirce_permissions sourceselect validate_cmd validate_replacement allowdupe attribute_membership auth_membership forcelocal gid ia_load_module members system host_aliases ip allowed_trunk_vlans description device_url duplex encapsulation etherchannel native_vlan speed principals allow_root auth_class auth_type authenticate_user k_of_n mechanisms rule session_owner shared options device fstype enable hasrestart directory present absent link atboot blockdevice device dump pass remounts poller_tag use message withpath adminfile allow_virtual allowcdrom category configfiles flavor install_options instance package_settings platform responsefile status uninstall_options vendor unless_system_user unless_uid binary control flags hasstatus manifest pattern restart running start stop allowdupe auths expiry gid groups home iterations key_membership keys managehome membership password password_max_age password_min_age profile_membership profiles project purge_ssh_keys role_membership roles salt shell uid baseurl cost descr enabled enablegroups exclude failovermethod gpgcheck gpgkey http_caching include includepkgs keepalive metadata_expire metalink mirrorlist priority protect proxy proxy_password proxy_username repo_gpgcheck s3_enabled skip_if_unavailable sslcacert sslclientcert sslclientkey sslverify mounted",built_in:"architecture augeasversion blockdevices boardmanufacturer boardproductname boardserialnumber cfkey dhcp_servers domain ec2_ ec2_userdata facterversion filesystems ldom fqdn gid hardwareisa hardwaremodel hostname id|0 interfaces ipaddress ipaddress_ ipaddress6 ipaddress6_ iphostnumber is_virtual kernel kernelmajversion kernelrelease kernelversion kernelrelease kernelversion lsbdistcodename lsbdistdescription lsbdistid lsbdistrelease lsbmajdistrelease lsbminordistrelease lsbrelease macaddress macaddress_ macosx_buildversion macosx_productname macosx_productversion macosx_productverson_major macosx_productversion_minor manufacturer memoryfree memorysize netmask metmask_ network_ operatingsystem operatingsystemmajrelease operatingsystemrelease osfamily partitions path physicalprocessorcount processor processorcount productname ps puppetversion rubysitedir rubyversion selinux selinux_config_mode selinux_config_policy selinux_current_mode selinux_current_mode selinux_enforced selinux_policyversion serialnumber sp_ sshdsakey sshecdsakey sshrsakey swapencrypted swapfree swapsize timezone type uniqueid uptime uptime_days uptime_hours uptime_seconds uuid virtual vlans xendomains zfs_version zonenae zones zpool_version"},n=e.COMMENT("#","$"),r="([A-Za-z_]|::)(\\w|::)*",i=e.inherit(e.TITLE_MODE,{begin:r}),o={className:"variable",begin:"\\$"+r},a={className:"string",contains:[e.BACKSLASH_ESCAPE,o],variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/}]};return{name:"Puppet",aliases:["pp"],contains:[n,o,a,{beginKeywords:"class",end:"\\{|;",illegal:/=/,contains:[i,n]},{beginKeywords:"define",end:/\{/,contains:[{className:"section",begin:e.IDENT_RE,endsParent:!0}]},{begin:e.IDENT_RE+"\\s+\\{",returnBegin:!0,end:/\S/,contains:[{className:"keyword",begin:e.IDENT_RE,relevance:.2},{begin:/\{/,end:/\}/,keywords:t,relevance:0,contains:[a,n,{begin:"[a-zA-Z_]+\\s*=>",returnBegin:!0,end:"=>",contains:[{className:"attr",begin:e.IDENT_RE}]},{className:"number",begin:"(\\b0[0-7_]+)|(\\b0x[0-9a-fA-F_]+)|(\\b[1-9][0-9_]*(\\.[0-9_]+)?)|[0_]\\b",relevance:0},o]}],relevance:0}]}}function ipn(e){const t={className:"string",begin:'(~)?"',end:'"',illegal:"\\n"},n={className:"symbol",begin:"#[a-zA-Z_]\\w*\\$?"};return{name:"PureBASIC",aliases:["pb","pbi"],keywords:"Align And Array As Break CallDebugger Case CompilerCase CompilerDefault CompilerElse CompilerElseIf CompilerEndIf CompilerEndSelect CompilerError CompilerIf CompilerSelect CompilerWarning Continue Data DataSection Debug DebugLevel Declare DeclareC DeclareCDLL DeclareDLL DeclareModule Default Define Dim DisableASM DisableDebugger DisableExplicit Else ElseIf EnableASM EnableDebugger EnableExplicit End EndDataSection EndDeclareModule EndEnumeration EndIf EndImport EndInterface EndMacro EndModule EndProcedure EndSelect EndStructure EndStructureUnion EndWith Enumeration EnumerationBinary Extends FakeReturn For ForEach ForEver Global Gosub Goto If Import ImportC IncludeBinary IncludeFile IncludePath Interface List Macro MacroExpandedCount Map Module NewList NewMap Next Not Or Procedure ProcedureC ProcedureCDLL ProcedureDLL ProcedureReturn Protected Prototype PrototypeC ReDim Read Repeat Restore Return Runtime Select Shared Static Step Structure StructureUnion Swap Threaded To UndefineMacro Until Until UnuseModule UseModule Wend While With XIncludeFile XOr",contains:[e.COMMENT(";","$",{relevance:0}),{className:"function",begin:"\\b(Procedure|Declare)(C|CDLL|DLL)?\\b",end:"\\(",excludeEnd:!0,returnBegin:!0,contains:[{className:"keyword",begin:"(Procedure|Declare)(C|CDLL|DLL)?",excludeEnd:!0},{className:"type",begin:"\\.\\w*"},e.UNDERSCORE_TITLE_MODE]},t,n]}}function opn(e){return{name:"Q",aliases:["k","kdb"],keywords:{$pattern:/(`?)[A-Za-z0-9_]+\b/,keyword:"do while select delete by update from",literal:"0b 1b",built_in:"neg not null string reciprocal floor ceiling signum mod xbar xlog and or each scan over prior mmu lsq inv md5 ltime gtime count first var dev med cov cor all any rand sums prds mins maxs fills deltas ratios avgs differ prev next rank reverse iasc idesc asc desc msum mcount mavg mdev xrank mmin mmax xprev rotate distinct group where flip type key til get value attr cut set upsert raze union inter except cross sv vs sublist enlist read0 read1 hopen hclose hdel hsym hcount peach system ltrim rtrim trim lower upper ssr view tables views cols xcols keys xkey xcol xasc xdesc fkeys meta lj aj aj0 ij pj asof uj ww wj wj1 fby xgroup ungroup ej save load rsave rload show csv parse eval min max avg wavg wsum sin cos tan sum",type:"`float `double int `timestamp `timespan `datetime `time `boolean `symbol `char `byte `short `long `real `month `date `minute `second `guid"},contains:[e.C_LINE_COMMENT_MODE,e.QUOTE_STRING_MODE,e.C_NUMBER_MODE]}}function apn(e){const t=e.regex,n={keyword:"in of on if for while finally var new function do return void else break catch instanceof with throw case default try this switch continue typeof delete let yield const export super debugger as async await import",literal:"true false null undefined NaN Infinity",built_in:"eval isFinite isNaN parseFloat parseInt decodeURI decodeURIComponent encodeURI encodeURIComponent escape unescape Object Function Boolean Error EvalError InternalError RangeError ReferenceError StopIteration SyntaxError TypeError URIError Number Math Date String RegExp Array Float32Array Float64Array Int16Array Int32Array Int8Array Uint16Array Uint32Array Uint8Array Uint8ClampedArray ArrayBuffer DataView JSON Intl arguments require module console window document Symbol Set Map WeakSet WeakMap Proxy Reflect Behavior bool color coordinate date double enumeration font geocircle georectangle geoshape int list matrix4x4 parent point quaternion real rect size string url variant vector2d vector3d vector4d Promise"},r="[a-zA-Z_][a-zA-Z0-9\\._]*",i={className:"keyword",begin:"\\bproperty\\b",starts:{className:"string",end:"(:|=|;|,|//|/\\*|$)",returnEnd:!0}},o={className:"keyword",begin:"\\bsignal\\b",starts:{className:"string",end:"(\\(|:|=|;|,|//|/\\*|$)",returnEnd:!0}},a={className:"attribute",begin:"\\bid\\s*:",starts:{className:"string",end:r,returnEnd:!1}},s={begin:r+"\\s*:",returnBegin:!0,contains:[{className:"attribute",begin:r,end:"\\s*:",excludeEnd:!0,relevance:0}],relevance:0},l={begin:t.concat(r,/\s*\{/),end:/\{/,returnBegin:!0,relevance:0,contains:[e.inherit(e.TITLE_MODE,{begin:r})]};return{name:"QML",aliases:["qt"],case_insensitive:!1,keywords:n,contains:[{className:"meta",begin:/^\s*['"]use (strict|asm)['"]/},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{className:"string",begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE,{className:"subst",begin:"\\$\\{",end:"\\}"}]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"number",variants:[{begin:"\\b(0[bB][01]+)"},{begin:"\\b(0[oO][0-7]+)"},{begin:e.C_NUMBER_RE}],relevance:0},{begin:"("+e.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.REGEXP_MODE,{begin:/</,end:/>\s*[);\]]/,relevance:0,subLanguage:"xml"}],relevance:0},o,i,{className:"function",beginKeywords:"function",end:/\{/,excludeEnd:!0,contains:[e.inherit(e.TITLE_MODE,{begin:/[A-Za-z$_][0-9A-Za-z$_]*/}),{className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]}],illegal:/\[|%/},{begin:"\\."+e.IDENT_RE,relevance:0},a,s,l],illegal:/#/}}function spn(e){return{name:"ReasonML",aliases:["re"],keywords:{$pattern:/[a-z_]\w*!?/,keyword:["and","as","asr","assert","begin","class","constraint","do","done","downto","else","end","esfun","exception","external","for","fun","function","functor","if","in","include","inherit","initializer","land","lazy","let","lor","lsl","lsr","lxor","mod","module","mutable","new","nonrec","object","of","open","or","pri","pub","rec","sig","struct","switch","then","to","try","type","val","virtual","when","while","with"],built_in:["array","bool","bytes","char","exn|5","float","int","int32","int64","list","lazy_t|5","nativeint|5","ref","string","unit"],literal:["true","false"]},illegal:/(:-|:=|\$\{|\+=)/,contains:[{scope:"literal",match:/\[(\|\|)?\]|\(\)/,relevance:0},e.C_LINE_COMMENT_MODE,e.COMMENT(/\/\*/,/\*\//,{illegal:/^(#,\/\/)/}),{scope:"symbol",match:/\'[A-Za-z_](?!\')[\w\']*/},{scope:"type",match:/`[A-Z][\w\']*/},{scope:"type",match:/\b[A-Z][\w\']*/,relevance:0},{match:/[a-z_]\w*\'[\w\']*/,relevance:0},{scope:"operator",match:/\s+(\|\||\+[\+\.]?|\*[\*\/\.]?|\/[\.]?|\.\.\.|\|>|&&|===?)\s+/,relevance:0},e.inherit(e.APOS_STRING_MODE,{scope:"string",relevance:0}),e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),{scope:"number",variants:[{match:/\b0[xX][a-fA-F0-9_]+[Lln]?/},{match:/\b0[oO][0-7_]+[Lln]?/},{match:/\b0[bB][01_]+[Lln]?/},{match:/\b[0-9][0-9_]*([Lln]|(\.[0-9_]*)?([eE][-+]?[0-9_]+)?)/}],relevance:0}]}}function lpn(e){return{name:"RenderMan RIB",keywords:"ArchiveRecord AreaLightSource Atmosphere Attribute AttributeBegin AttributeEnd Basis Begin Blobby Bound Clipping ClippingPlane Color ColorSamples ConcatTransform Cone CoordinateSystem CoordSysTransform CropWindow Curves Cylinder DepthOfField Detail DetailRange Disk Displacement Display End ErrorHandler Exposure Exterior Format FrameAspectRatio FrameBegin FrameEnd GeneralPolygon GeometricApproximation Geometry Hider Hyperboloid Identity Illuminate Imager Interior LightSource MakeCubeFaceEnvironment MakeLatLongEnvironment MakeShadow MakeTexture Matte MotionBegin MotionEnd NuPatch ObjectBegin ObjectEnd ObjectInstance Opacity Option Orientation Paraboloid Patch PatchMesh Perspective PixelFilter PixelSamples PixelVariance Points PointsGeneralPolygons PointsPolygons Polygon Procedural Projection Quantize ReadArchive RelativeDetail ReverseOrientation Rotate Scale ScreenWindow ShadingInterpolation ShadingRate Shutter Sides Skew SolidBegin SolidEnd Sphere SubdivisionMesh Surface TextureCoordinates Torus Transform TransformBegin TransformEnd TransformPoints Translate TrimCurve WorldBegin WorldEnd",illegal:"</",contains:[e.HASH_COMMENT_MODE,e.C_NUMBER_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]}}function cpn(e){const t="[a-zA-Z-_][^\\n{]+\\{",n={className:"attribute",begin:/[a-zA-Z-_]+/,end:/\s*:/,excludeEnd:!0,starts:{end:";",relevance:0,contains:[{className:"variable",begin:/\.[a-zA-Z-_]+/},{className:"keyword",begin:/\(optional\)/}]}};return{name:"Roboconf",aliases:["graph","instances"],case_insensitive:!0,keywords:"import",contains:[{begin:"^facet "+t,end:/\}/,keywords:"facet",contains:[n,e.HASH_COMMENT_MODE]},{begin:"^\\s*instance of "+t,end:/\}/,keywords:"name count channels instance-data instance-state instance of",illegal:/\S/,contains:["self",n,e.HASH_COMMENT_MODE]},{begin:"^"+t,end:/\}/,contains:[n,e.HASH_COMMENT_MODE]},e.HASH_COMMENT_MODE]}}function upn(e){const t="foreach do while for if from to step else on-error and or not in",n="global local beep delay put len typeof pick log time set find environment terminal error execute parse resolve toarray tobool toid toip toip6 tonum tostr totime",r="add remove enable disable set get print export edit find run debug error info warning",i="true false yes no nothing nil null",o="traffic-flow traffic-generator firewall scheduler aaa accounting address-list address align area bandwidth-server bfd bgp bridge client clock community config connection console customer default dhcp-client dhcp-server discovery dns e-mail ethernet filter firmware gps graphing group hardware health hotspot identity igmp-proxy incoming instance interface ip ipsec ipv6 irq l2tp-server lcd ldp logging mac-server mac-winbox mangle manual mirror mme mpls nat nd neighbor network note ntp ospf ospf-v3 ovpn-server page peer pim ping policy pool port ppp pppoe-client pptp-server prefix profile proposal proxy queue radius resource rip ripng route routing screen script security-profiles server service service-port settings shares smb sms sniffer snmp snooper socks sstp-server system tool tracking type upgrade upnp user-manager users user vlan secret vrrp watchdog web-access wireless pptp pppoe lan wan layer7-protocol lease simple raw",a={className:"variable",variants:[{begin:/\$[\w\d#@][\w\d_]*/},{begin:/\$\{(.*?)\}/}]},s={className:"string",begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,a,{className:"variable",begin:/\$\(/,end:/\)/,contains:[e.BACKSLASH_ESCAPE]}]},l={className:"string",begin:/'/,end:/'/};return{name:"MikroTik RouterOS script",aliases:["mikrotik"],case_insensitive:!0,keywords:{$pattern:/:?[\w-]+/,literal:i,keyword:t+" :"+t.split(" ").join(" :")+" :"+n.split(" ").join(" :")},contains:[{variants:[{begin:/\/\*/,end:/\*\//},{begin:/\/\//,end:/$/},{begin:/<\//,end:/>/}],illegal:/./},e.COMMENT("^#","$"),s,l,a,{begin:/[\w-]+=([^\s{}[\]()>]+)/,relevance:0,returnBegin:!0,contains:[{className:"attribute",begin:/[^=]+/},{begin:/=/,endsWithParent:!0,relevance:0,contains:[s,l,a,{className:"literal",begin:"\\b("+i.split(" ").join("|")+")\\b"},{begin:/("[^"]*"|[^\s{}[\]]+)/}]}]},{className:"number",begin:/\*[0-9a-fA-F]+/},{begin:"\\b("+r.split(" ").join("|")+")([\\s[(\\]|])",returnBegin:!0,contains:[{className:"built_in",begin:/\w+/}]},{className:"built_in",variants:[{begin:"(\\.\\./|/|\\s)(("+o.split(" ").join("|")+");?\\s)+"},{begin:/\.\./,relevance:0}]}]}}function dpn(e){const t=["abs","acos","ambient","area","asin","atan","atmosphere","attribute","calculatenormal","ceil","cellnoise","clamp","comp","concat","cos","degrees","depth","Deriv","diffuse","distance","Du","Dv","environment","exp","faceforward","filterstep","floor","format","fresnel","incident","length","lightsource","log","match","max","min","mod","noise","normalize","ntransform","opposite","option","phong","pnoise","pow","printf","ptlined","radians","random","reflect","refract","renderinfo","round","setcomp","setxcomp","setycomp","setzcomp","shadow","sign","sin","smoothstep","specular","specularbrdf","spline","sqrt","step","tan","texture","textureinfo","trace","transform","vtransform","xcomp","ycomp","zcomp"],n=["matrix","float","color","point","normal","vector"],r=["while","for","if","do","return","else","break","extern","continue"],i={match:[/(surface|displacement|light|volume|imager)/,/\s+/,e.IDENT_RE],scope:{1:"keyword",3:"title.class"}};return{name:"RenderMan RSL",keywords:{keyword:r,built_in:t,type:n},illegal:"</",contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,e.C_NUMBER_MODE,{className:"meta",begin:"#",end:"$"},i,{beginKeywords:"illuminate illuminance gather",end:"\\("}]}}function fpn(e){return{name:"Oracle Rules Language",keywords:{keyword:"BILL_PERIOD BILL_START BILL_STOP RS_EFFECTIVE_START RS_EFFECTIVE_STOP RS_JURIS_CODE RS_OPCO_CODE INTDADDATTRIBUTE|5 INTDADDVMSG|5 INTDBLOCKOP|5 INTDBLOCKOPNA|5 INTDCLOSE|5 INTDCOUNT|5 INTDCOUNTSTATUSCODE|5 INTDCREATEMASK|5 INTDCREATEDAYMASK|5 INTDCREATEFACTORMASK|5 INTDCREATEHANDLE|5 INTDCREATEOVERRIDEDAYMASK|5 INTDCREATEOVERRIDEMASK|5 INTDCREATESTATUSCODEMASK|5 INTDCREATETOUPERIOD|5 INTDDELETE|5 INTDDIPTEST|5 INTDEXPORT|5 INTDGETERRORCODE|5 INTDGETERRORMESSAGE|5 INTDISEQUAL|5 INTDJOIN|5 INTDLOAD|5 INTDLOADACTUALCUT|5 INTDLOADDATES|5 INTDLOADHIST|5 INTDLOADLIST|5 INTDLOADLISTDATES|5 INTDLOADLISTENERGY|5 INTDLOADLISTHIST|5 INTDLOADRELATEDCHANNEL|5 INTDLOADSP|5 INTDLOADSTAGING|5 INTDLOADUOM|5 INTDLOADUOMDATES|5 INTDLOADUOMHIST|5 INTDLOADVERSION|5 INTDOPEN|5 INTDREADFIRST|5 INTDREADNEXT|5 INTDRECCOUNT|5 INTDRELEASE|5 INTDREPLACE|5 INTDROLLAVG|5 INTDROLLPEAK|5 INTDSCALAROP|5 INTDSCALE|5 INTDSETATTRIBUTE|5 INTDSETDSTPARTICIPANT|5 INTDSETSTRING|5 INTDSETVALUE|5 INTDSETVALUESTATUS|5 INTDSHIFTSTARTTIME|5 INTDSMOOTH|5 INTDSORT|5 INTDSPIKETEST|5 INTDSUBSET|5 INTDTOU|5 INTDTOURELEASE|5 INTDTOUVALUE|5 INTDUPDATESTATS|5 INTDVALUE|5 STDEV INTDDELETEEX|5 INTDLOADEXACTUAL|5 INTDLOADEXCUT|5 INTDLOADEXDATES|5 INTDLOADEX|5 INTDLOADEXRELATEDCHANNEL|5 INTDSAVEEX|5 MVLOAD|5 MVLOADACCT|5 MVLOADACCTDATES|5 MVLOADACCTHIST|5 MVLOADDATES|5 MVLOADHIST|5 MVLOADLIST|5 MVLOADLISTDATES|5 MVLOADLISTHIST|5 IF FOR NEXT DONE SELECT END CALL ABORT CLEAR CHANNEL FACTOR LIST NUMBER OVERRIDE SET WEEK DISTRIBUTIONNODE ELSE WHEN THEN OTHERWISE IENUM CSV INCLUDE LEAVE RIDER SAVE DELETE NOVALUE SECTION WARN SAVE_UPDATE DETERMINANT LABEL REPORT REVENUE EACH IN FROM TOTAL CHARGE BLOCK AND OR CSV_FILE RATE_CODE AUXILIARY_DEMAND UIDACCOUNT RS BILL_PERIOD_SELECT HOURS_PER_MONTH INTD_ERROR_STOP SEASON_SCHEDULE_NAME ACCOUNTFACTOR ARRAYUPPERBOUND CALLSTOREDPROC GETADOCONNECTION GETCONNECT GETDATASOURCE GETQUALIFIER GETUSERID HASVALUE LISTCOUNT LISTOP LISTUPDATE LISTVALUE PRORATEFACTOR RSPRORATE SETBINPATH SETDBMONITOR WQ_OPEN BILLINGHOURS DATE DATEFROMFLOAT DATETIMEFROMSTRING DATETIMETOSTRING DATETOFLOAT DAY DAYDIFF DAYNAME DBDATETIME HOUR MINUTE MONTH MONTHDIFF MONTHHOURS MONTHNAME ROUNDDATE SAMEWEEKDAYLASTYEAR SECOND WEEKDAY WEEKDIFF YEAR YEARDAY YEARSTR COMPSUM HISTCOUNT HISTMAX HISTMIN HISTMINNZ HISTVALUE MAXNRANGE MAXRANGE MINRANGE COMPIKVA COMPKVA COMPKVARFROMKQKW COMPLF IDATTR FLAG LF2KW LF2KWH MAXKW POWERFACTOR READING2USAGE AVGSEASON MAXSEASON MONTHLYMERGE SEASONVALUE SUMSEASON ACCTREADDATES ACCTTABLELOAD CONFIGADD CONFIGGET CREATEOBJECT CREATEREPORT EMAILCLIENT EXPBLKMDMUSAGE EXPMDMUSAGE EXPORT_USAGE FACTORINEFFECT GETUSERSPECIFIEDSTOP INEFFECT ISHOLIDAY RUNRATE SAVE_PROFILE SETREPORTTITLE USEREXIT WATFORRUNRATE TO TABLE ACOS ASIN ATAN ATAN2 BITAND CEIL COS COSECANT COSH COTANGENT DIVQUOT DIVREM EXP FABS FLOOR FMOD FREPM FREXPN LOG LOG10 MAX MAXN MIN MINNZ MODF POW ROUND ROUND2VALUE ROUNDINT SECANT SIN SINH SQROOT TAN TANH FLOAT2STRING FLOAT2STRINGNC INSTR LEFT LEN LTRIM MID RIGHT RTRIM STRING STRINGNC TOLOWER TOUPPER TRIM NUMDAYS READ_DATE STAGING",built_in:"IDENTIFIER OPTIONS XML_ELEMENT XML_OP XML_ELEMENT_OF DOMDOCCREATE DOMDOCLOADFILE DOMDOCLOADXML DOMDOCSAVEFILE DOMDOCGETROOT DOMDOCADDPI DOMNODEGETNAME DOMNODEGETTYPE DOMNODEGETVALUE DOMNODEGETCHILDCT DOMNODEGETFIRSTCHILD DOMNODEGETSIBLING DOMNODECREATECHILDELEMENT DOMNODESETATTRIBUTE DOMNODEGETCHILDELEMENTCT DOMNODEGETFIRSTCHILDELEMENT DOMNODEGETSIBLINGELEMENT DOMNODEGETATTRIBUTECT DOMNODEGETATTRIBUTEI DOMNODEGETATTRIBUTEBYNAME DOMNODEGETBYNAME"},contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.C_NUMBER_MODE,{className:"literal",variants:[{begin:"#\\s+",relevance:0},{begin:"#[a-zA-Z .]+"}]}]}}function ppn(e){const t=e.regex,n=["do","if","then","else","end","until","while","abort","array","attrib","by","call","cards","cards4","catname","continue","datalines","datalines4","delete","delim","delimiter","display","dm","drop","endsas","error","file","filename","footnote","format","goto","in","infile","informat","input","keep","label","leave","length","libname","link","list","lostcard","merge","missing","modify","options","output","out","page","put","redirect","remove","rename","replace","retain","return","select","set","skip","startsas","stop","title","update","waitsas","where","window","x|0","systask","add","and","alter","as","cascade","check","create","delete","describe","distinct","drop","foreign","from","group","having","index","insert","into","in","key","like","message","modify","msgtype","not","null","on","or","order","primary","references","reset","restrict","select","set","table","unique","update","validate","view","where"],r=["abs","addr","airy","arcos","arsin","atan","attrc","attrn","band","betainv","blshift","bnot","bor","brshift","bxor","byte","cdf","ceil","cexist","cinv","close","cnonct","collate","compbl","compound","compress","cos","cosh","css","curobs","cv","daccdb","daccdbsl","daccsl","daccsyd","dacctab","dairy","date","datejul","datepart","datetime","day","dclose","depdb","depdbsl","depdbsl","depsl","depsl","depsyd","depsyd","deptab","deptab","dequote","dhms","dif","digamma","dim","dinfo","dnum","dopen","doptname","doptnum","dread","dropnote","dsname","erf","erfc","exist","exp","fappend","fclose","fcol","fdelete","fetch","fetchobs","fexist","fget","fileexist","filename","fileref","finfo","finv","fipname","fipnamel","fipstate","floor","fnonct","fnote","fopen","foptname","foptnum","fpoint","fpos","fput","fread","frewind","frlen","fsep","fuzz","fwrite","gaminv","gamma","getoption","getvarc","getvarn","hbound","hms","hosthelp","hour","ibessel","index","indexc","indexw","input","inputc","inputn","int","intck","intnx","intrr","irr","jbessel","juldate","kurtosis","lag","lbound","left","length","lgamma","libname","libref","log","log10","log2","logpdf","logpmf","logsdf","lowcase","max","mdy","mean","min","minute","mod","month","mopen","mort","n","netpv","nmiss","normal","note","npv","open","ordinal","pathname","pdf","peek","peekc","pmf","point","poisson","poke","probbeta","probbnml","probchi","probf","probgam","probhypr","probit","probnegb","probnorm","probt","put","putc","putn","qtr","quote","ranbin","rancau","ranexp","rangam","range","rank","rannor","ranpoi","rantbl","rantri","ranuni","repeat","resolve","reverse","rewind","right","round","saving","scan","sdf","second","sign","sin","sinh","skewness","soundex","spedis","sqrt","std","stderr","stfips","stname","stnamel","substr","sum","symget","sysget","sysmsg","sysprod","sysrc","system","tan","tanh","time","timepart","tinv","tnonct","today","translate","tranwrd","trigamma","trim","trimn","trunc","uniform","upcase","uss","var","varfmt","varinfmt","varlabel","varlen","varname","varnum","varray","varrayx","vartype","verify","vformat","vformatd","vformatdx","vformatn","vformatnx","vformatw","vformatwx","vformatx","vinarray","vinarrayx","vinformat","vinformatd","vinformatdx","vinformatn","vinformatnx","vinformatw","vinformatwx","vinformatx","vlabel","vlabelx","vlength","vlengthx","vname","vnamex","vtype","vtypex","weekday","year","yyq","zipfips","zipname","zipnamel","zipstate"],i=["bquote","nrbquote","cmpres","qcmpres","compstor","datatyp","display","do","else","end","eval","global","goto","if","index","input","keydef","label","left","length","let","local","lowcase","macro","mend","nrbquote","nrquote","nrstr","put","qcmpres","qleft","qlowcase","qscan","qsubstr","qsysfunc","qtrim","quote","qupcase","scan","str","substr","superq","syscall","sysevalf","sysexec","sysfunc","sysget","syslput","sysprod","sysrc","sysrput","then","to","trim","unquote","until","upcase","verify","while","window"];return{name:"SAS",case_insensitive:!0,keywords:{literal:["null","missing","_all_","_automatic_","_character_","_infile_","_n_","_name_","_null_","_numeric_","_user_","_webout_"],keyword:n},contains:[{className:"keyword",begin:/^\s*(proc [\w\d_]+|data|run|quit)[\s;]/},{className:"variable",begin:/&[a-zA-Z_&][a-zA-Z0-9_]*\.?/},{begin:[/^\s*/,/datalines;|cards;/,/(?:.*\n)+/,/^\s*;\s*$/],className:{2:"keyword",3:"string"}},{begin:[/%mend|%macro/,/\s+/,/[a-zA-Z_&][a-zA-Z0-9_]*/],className:{1:"built_in",3:"title.function"}},{className:"built_in",begin:"%"+t.either(...i)},{className:"title.function",begin:/%[a-zA-Z_][a-zA-Z_0-9]*/},{className:"meta",begin:t.either(...r)+"(?=\\()"},{className:"string",variants:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},e.COMMENT("\\*",";"),e.C_BLOCK_COMMENT_MODE]}}function hpn(e){const t=e.regex,n={className:"meta",begin:"@[A-Za-z]+"},r={className:"subst",variants:[{begin:"\\$[A-Za-z0-9_]+"},{begin:/\$\{/,end:/\}/}]},i={className:"string",variants:[{begin:'"""',end:'"""'},{begin:'"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE]},{begin:'[a-z]+"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE,r]},{className:"string",begin:'[a-z]+"""',end:'"""',contains:[r],relevance:10}]},o={className:"type",begin:"\\b[A-Z][A-Za-z0-9_]*",relevance:0},a={className:"title",begin:/[^0-9\n\t "'(),.`{}\[\]:;][^\n\t "'(),.`{}\[\]:;]+|[^0-9\n\t "'(),.`{}\[\]:;=]/,relevance:0},s={className:"class",beginKeywords:"class object trait type",end:/[:={\[\n;]/,excludeEnd:!0,contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{beginKeywords:"extends with",relevance:10},{begin:/\[/,end:/\]/,excludeBegin:!0,excludeEnd:!0,relevance:0,contains:[o,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,relevance:0,contains:[o,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},a]},l={className:"function",beginKeywords:"def",end:t.lookahead(/[:={\[(\n;]/),contains:[a]},c={begin:[/^\s*/,"extension",/\s+(?=[[(])/],beginScope:{2:"keyword"}},u={begin:[/^\s*/,/end/,/\s+/,/(extension\b)?/],beginScope:{2:"keyword",4:"keyword"}},d=[{match:/\.inline\b/},{begin:/\binline(?=\s)/,keywords:"inline"}],f={begin:[/\(\s*/,/using/,/\s+(?!\))/],beginScope:{2:"keyword"}};return{name:"Scala",keywords:{literal:"true false null",keyword:"type yield lazy override def with val var sealed abstract private trait object if then forSome for while do throw finally protected extends import final return else break new catch super class case package default try this match continue throws implicit export enum given transparent"},contains:[{begin:["//>",/\s+/,/using/,/\s+/,/\S+/],beginScope:{1:"comment",3:"keyword",5:"type"},end:/$/,contains:[{className:"string",begin:/\S+/}]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,i,o,l,s,e.C_NUMBER_MODE,c,u,...d,f,n]}}function mpn(e){const t="[^\\(\\)\\[\\]\\{\\}\",'`;#|\\\\\\s]+",n="(-|\\+)?\\d+([./]\\d+)?",r=n+"[+\\-]"+n+"i",i={$pattern:t,built_in:"case-lambda call/cc class define-class exit-handler field import inherit init-field interface let*-values let-values let/ec mixin opt-lambda override protect provide public rename require require-for-syntax syntax syntax-case syntax-error unit/sig unless when with-syntax and begin call-with-current-continuation call-with-input-file call-with-output-file case cond define define-syntax delay do dynamic-wind else for-each if lambda let let* let-syntax letrec letrec-syntax map or syntax-rules ' * + , ,@ - ... / ; < <= = => > >= ` abs acos angle append apply asin assoc assq assv atan boolean? caar cadr call-with-input-file call-with-output-file call-with-values car cdddar cddddr cdr ceiling char->integer char-alphabetic? char-ci<=? char-ci<? char-ci=? char-ci>=? char-ci>? char-downcase char-lower-case? char-numeric? char-ready? char-upcase char-upper-case? char-whitespace? char<=? char<? char=? char>=? char>? char? close-input-port close-output-port complex? cons cos current-input-port current-output-port denominator display eof-object? eq? equal? eqv? eval even? exact->inexact exact? exp expt floor force gcd imag-part inexact->exact inexact? input-port? integer->char integer? interaction-environment lcm length list list->string list->vector list-ref list-tail list? load log magnitude make-polar make-rectangular make-string make-vector max member memq memv min modulo negative? newline not null-environment null? number->string number? numerator odd? open-input-file open-output-file output-port? pair? peek-char port? positive? procedure? quasiquote quote quotient rational? rationalize read read-char real-part real? remainder reverse round scheme-report-environment set! set-car! set-cdr! sin sqrt string string->list string->number string->symbol string-append string-ci<=? string-ci<? string-ci=? string-ci>=? string-ci>? string-copy string-fill! string-length string-ref string-set! string<=? string<? string=? string>=? string>? string? substring symbol->string symbol? tan transcript-off transcript-on truncate values vector vector->list vector-fill! vector-length vector-ref vector-set! with-input-from-file with-output-to-file write write-char zero?"},o={className:"literal",begin:"(#t|#f|#\\\\"+t+"|#\\\\.)"},a={className:"number",variants:[{begin:n,relevance:0},{begin:r,relevance:0},{begin:"#b[0-1]+(/[0-1]+)?"},{begin:"#o[0-7]+(/[0-7]+)?"},{begin:"#x[0-9a-f]+(/[0-9a-f]+)?"}]},s=e.QUOTE_STRING_MODE,l=[e.COMMENT(";","$",{relevance:0}),e.COMMENT("#\\|","\\|#")],c={begin:t,relevance:0},u={className:"symbol",begin:"'"+t},d={endsWithParent:!0,relevance:0},f={variants:[{begin:/'/},{begin:"`"}],contains:[{begin:"\\(",end:"\\)",contains:["self",o,s,a,c,u]}]},h={className:"name",relevance:0,begin:t,keywords:i},m={variants:[{begin:"\\(",end:"\\)"},{begin:"\\[",end:"\\]"}],contains:[{begin:/lambda/,endsWithParent:!0,returnBegin:!0,contains:[h,{endsParent:!0,variants:[{begin:/\(/,end:/\)/},{begin:/\[/,end:/\]/}],contains:[c]}]},h,d]};return d.contains=[o,a,s,c,u,f,m].concat(l),{name:"Scheme",aliases:["scm"],illegal:/\S/,contains:[e.SHEBANG(),a,s,u,f,m].concat(l)}}function gpn(e){const t=[e.C_NUMBER_MODE,{className:"string",begin:`'|"`,end:`'|"`,contains:[e.BACKSLASH_ESCAPE,{begin:"''"}]}];return{name:"Scilab",aliases:["sci"],keywords:{$pattern:/%?\w+/,keyword:"abort break case clear catch continue do elseif else endfunction end for function global if pause return resume select try then while",literal:"%f %F %t %T %pi %eps %inf %nan %e %i %z %s",built_in:"abs and acos asin atan ceil cd chdir clearglobal cosh cos cumprod deff disp error exec execstr exists exp eye gettext floor fprintf fread fsolve imag isdef isempty isinfisnan isvector lasterror length load linspace list listfiles log10 log2 log max min msprintf mclose mopen ones or pathconvert poly printf prod pwd rand real round sinh sin size gsort sprintf sqrt strcat strcmps tring sum system tanh tan type typename warning zeros matrix"},illegal:'("|#|/\\*|\\s+/\\w+)',contains:[{className:"function",beginKeywords:"function",end:"$",contains:[e.UNDERSCORE_TITLE_MODE,{className:"params",begin:"\\(",end:"\\)"}]},{begin:"[a-zA-Z_][a-zA-Z_0-9]*[\\.']+",relevance:0},{begin:"\\[",end:"\\][\\.']*",relevance:0,contains:t},e.COMMENT("//","$")].concat(t)}}function vpn(e){const t=["add","and","cmp","cmpg","cmpl","const","div","double","float","goto","if","int","long","move","mul","neg","new","nop","not","or","rem","return","shl","shr","sput","sub","throw","ushr","xor"],n=["aget","aput","array","check","execute","fill","filled","goto/16","goto/32","iget","instance","invoke","iput","monitor","packed","sget","sparse"],r=["transient","constructor","abstract","final","synthetic","public","private","protected","static","bridge","system"];return{name:"Smali",contains:[{className:"string",begin:'"',end:'"',relevance:0},e.COMMENT("#","$",{relevance:0}),{className:"keyword",variants:[{begin:"\\s*\\.end\\s[a-zA-Z0-9]*"},{begin:"^[ ]*\\.[a-zA-Z]*",relevance:0},{begin:"\\s:[a-zA-Z_0-9]*",relevance:0},{begin:"\\s("+r.join("|")+")"}]},{className:"built_in",variants:[{begin:"\\s("+t.join("|")+")\\s"},{begin:"\\s("+t.join("|")+")((-|/)[a-zA-Z0-9]+)+\\s",relevance:10},{begin:"\\s("+n.join("|")+")((-|/)[a-zA-Z0-9]+)*\\s",relevance:10}]},{className:"class",begin:`L[^(;:
]*;`,relevance:0},{begin:"[vp][0-9]+"}]}}function bpn(e){const t="[a-z][a-zA-Z0-9_]*",n={className:"string",begin:"\\$.{1}"},r={className:"symbol",begin:"#"+e.UNDERSCORE_IDENT_RE};return{name:"Smalltalk",aliases:["st"],keywords:["self","super","nil","true","false","thisContext"],contains:[e.COMMENT('"','"'),e.APOS_STRING_MODE,{className:"type",begin:"\\b[A-Z][A-Za-z0-9_]*",relevance:0},{begin:t+":",relevance:0},e.C_NUMBER_MODE,r,n,{begin:"\\|[ ]*"+t+"([ ]+"+t+")*[ ]*\\|",returnBegin:!0,end:/\|/,illegal:/\S/,contains:[{begin:"(\\|[ ]*)?"+t}]},{begin:"#\\(",end:"\\)",contains:[e.APOS_STRING_MODE,n,e.C_NUMBER_MODE,r]}]}}function ypn(e){return{name:"SML (Standard ML)",aliases:["ml"],keywords:{$pattern:"[a-z_]\\w*!?",keyword:"abstype and andalso as case datatype do else end eqtype exception fn fun functor handle if in include infix infixr let local nonfix of op open orelse raise rec sharing sig signature struct structure then type val with withtype where while",built_in:"array bool char exn int list option order real ref string substring vector unit word",literal:"true false NONE SOME LESS EQUAL GREATER nil"},illegal:/\/\/|>>/,contains:[{className:"literal",begin:/\[(\|\|)?\]|\(\)/,relevance:0},e.COMMENT("\\(\\*","\\*\\)",{contains:["self"]}),{className:"symbol",begin:"'[A-Za-z_](?!')[\\w']*"},{className:"type",begin:"`[A-Z][\\w']*"},{className:"type",begin:"\\b[A-Z][\\w']*",relevance:0},{begin:"[a-z_]\\w*'[\\w']*"},e.inherit(e.APOS_STRING_MODE,{className:"string",relevance:0}),e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),{className:"number",begin:"\\b(0[xX][a-fA-F0-9_]+[Lln]?|0[oO][0-7_]+[Lln]?|0[bB][01_]+[Lln]?|[0-9][0-9_]*([Lln]|(\\.[0-9_]*)?([eE][-+]?[0-9_]+)?)?)",relevance:0},{begin:/[-=]>/}]}}function _pn(e){const t={className:"variable",begin:/\b_+[a-zA-Z]\w*/},n={className:"title",begin:/[a-zA-Z][a-zA-Z_0-9]*_fnc_[a-zA-Z_0-9]+/},r={className:"string",variants:[{begin:'"',end:'"',contains:[{begin:'""',relevance:0}]},{begin:"'",end:"'",contains:[{begin:"''",relevance:0}]}]},i=["break","breakWith","breakOut","breakTo","case","catch","continue","continueWith","default","do","else","exit","exitWith","for","forEach","from","if","local","private","switch","step","then","throw","to","try","waitUntil","while","with"],o=["blufor","civilian","configNull","controlNull","displayNull","diaryRecordNull","east","endl","false","grpNull","independent","lineBreak","locationNull","nil","objNull","opfor","pi","resistance","scriptNull","sideAmbientLife","sideEmpty","sideEnemy","sideFriendly","sideLogic","sideUnknown","taskNull","teamMemberNull","true","west"],a=["abs","accTime","acos","action","actionIDs","actionKeys","actionKeysEx","actionKeysImages","actionKeysNames","actionKeysNamesArray","actionName","actionParams","activateAddons","activatedAddons","activateKey","activeTitleEffectParams","add3DENConnection","add3DENEventHandler","add3DENLayer","addAction","addBackpack","addBackpackCargo","addBackpackCargoGlobal","addBackpackGlobal","addBinocularItem","addCamShake","addCuratorAddons","addCuratorCameraArea","addCuratorEditableObjects","addCuratorEditingArea","addCuratorPoints","addEditorObject","addEventHandler","addForce","addForceGeneratorRTD","addGoggles","addGroupIcon","addHandgunItem","addHeadgear","addItem","addItemCargo","addItemCargoGlobal","addItemPool","addItemToBackpack","addItemToUniform","addItemToVest","addLiveStats","addMagazine","addMagazineAmmoCargo","addMagazineCargo","addMagazineCargoGlobal","addMagazineGlobal","addMagazinePool","addMagazines","addMagazineTurret","addMenu","addMenuItem","addMissionEventHandler","addMPEventHandler","addMusicEventHandler","addonFiles","addOwnedMine","addPlayerScores","addPrimaryWeaponItem","addPublicVariableEventHandler","addRating","addResources","addScore","addScoreSide","addSecondaryWeaponItem","addSwitchableUnit","addTeamMember","addToRemainsCollector","addTorque","addUniform","addUserActionEventHandler","addVehicle","addVest","addWaypoint","addWeapon","addWeaponCargo","addWeaponCargoGlobal","addWeaponGlobal","addWeaponItem","addWeaponPool","addWeaponTurret","addWeaponWithAttachmentsCargo","addWeaponWithAttachmentsCargoGlobal","admin","agent","agents","AGLToASL","aimedAtTarget","aimPos","airDensityCurveRTD","airDensityRTD","airplaneThrottle","airportSide","AISFinishHeal","alive","all3DENEntities","allActiveTitleEffects","allAddonsInfo","allAirports","allControls","allCurators","allCutLayers","allDead","allDeadMen","allDiaryRecords","allDiarySubjects","allDisplays","allEnv3DSoundSources","allGroups","allLODs","allMapMarkers","allMines","allMissionObjects","allObjects","allow3DMode","allowCrewInImmobile","allowCuratorLogicIgnoreAreas","allowDamage","allowDammage","allowedService","allowFileOperations","allowFleeing","allowGetIn","allowService","allowSprint","allPlayers","allSimpleObjects","allSites","allTurrets","allUnits","allUnitsUAV","allUsers","allVariables","ambientTemperature","ammo","ammoOnPylon","and","animate","animateBay","animateDoor","animatePylon","animateSource","animationNames","animationPhase","animationSourcePhase","animationState","apertureParams","append","apply","armoryPoints","arrayIntersect","asin","ASLToAGL","ASLToATL","assert","assignAsCargo","assignAsCargoIndex","assignAsCommander","assignAsDriver","assignAsGunner","assignAsTurret","assignCurator","assignedCargo","assignedCommander","assignedDriver","assignedGroup","assignedGunner","assignedItems","assignedTarget","assignedTeam","assignedVehicle","assignedVehicleRole","assignedVehicles","assignItem","assignTeam","assignToAirport","atan","atan2","atg","ATLToASL","attachedObject","attachedObjects","attachedTo","attachObject","attachTo","attackEnabled","awake","backpack","backpackCargo","backpackContainer","backpackItems","backpackMagazines","backpackSpaceFor","behaviour","benchmark","bezierInterpolation","binocular","binocularItems","binocularMagazine","boundingBox","boundingBoxReal","boundingCenter","brakesDisabled","briefingName","buildingExit","buildingPos","buldozer_EnableRoadDiag","buldozer_IsEnabledRoadDiag","buldozer_LoadNewRoads","buldozer_reloadOperMap","buttonAction","buttonSetAction","cadetMode","calculatePath","calculatePlayerVisibilityByFriendly","call","callExtension","camCommand","camCommit","camCommitPrepared","camCommitted","camConstuctionSetParams","camCreate","camDestroy","cameraEffect","cameraEffectEnableHUD","cameraInterest","cameraOn","cameraView","campaignConfigFile","camPreload","camPreloaded","camPrepareBank","camPrepareDir","camPrepareDive","camPrepareFocus","camPrepareFov","camPrepareFovRange","camPreparePos","camPrepareRelPos","camPrepareTarget","camSetBank","camSetDir","camSetDive","camSetFocus","camSetFov","camSetFovRange","camSetPos","camSetRelPos","camSetTarget","camTarget","camUseNVG","canAdd","canAddItemToBackpack","canAddItemToUniform","canAddItemToVest","cancelSimpleTaskDestination","canDeployWeapon","canFire","canMove","canSlingLoad","canStand","canSuspend","canTriggerDynamicSimulation","canUnloadInCombat","canVehicleCargo","captive","captiveNum","cbChecked","cbSetChecked","ceil","channelEnabled","cheatsEnabled","checkAIFeature","checkVisibility","className","clear3DENAttribute","clear3DENInventory","clearAllItemsFromBackpack","clearBackpackCargo","clearBackpackCargoGlobal","clearForcesRTD","clearGroupIcons","clearItemCargo","clearItemCargoGlobal","clearItemPool","clearMagazineCargo","clearMagazineCargoGlobal","clearMagazinePool","clearOverlay","clearRadio","clearWeaponCargo","clearWeaponCargoGlobal","clearWeaponPool","clientOwner","closeDialog","closeDisplay","closeOverlay","collapseObjectTree","collect3DENHistory","collectiveRTD","collisionDisabledWith","combatBehaviour","combatMode","commandArtilleryFire","commandChat","commander","commandFire","commandFollow","commandFSM","commandGetOut","commandingMenu","commandMove","commandRadio","commandStop","commandSuppressiveFire","commandTarget","commandWatch","comment","commitOverlay","compatibleItems","compatibleMagazines","compile","compileFinal","compileScript","completedFSM","composeText","configClasses","configFile","configHierarchy","configName","configOf","configProperties","configSourceAddonList","configSourceMod","configSourceModList","confirmSensorTarget","connectTerminalToUAV","connectToServer","controlsGroupCtrl","conversationDisabled","copyFromClipboard","copyToClipboard","copyWaypoints","cos","count","countEnemy","countFriendly","countSide","countType","countUnknown","create3DENComposition","create3DENEntity","createAgent","createCenter","createDialog","createDiaryLink","createDiaryRecord","createDiarySubject","createDisplay","createGearDialog","createGroup","createGuardedPoint","createHashMap","createHashMapFromArray","createLocation","createMarker","createMarkerLocal","createMenu","createMine","createMissionDisplay","createMPCampaignDisplay","createSimpleObject","createSimpleTask","createSite","createSoundSource","createTask","createTeam","createTrigger","createUnit","createVehicle","createVehicleCrew","createVehicleLocal","crew","ctAddHeader","ctAddRow","ctClear","ctCurSel","ctData","ctFindHeaderRows","ctFindRowHeader","ctHeaderControls","ctHeaderCount","ctRemoveHeaders","ctRemoveRows","ctrlActivate","ctrlAddEventHandler","ctrlAngle","ctrlAnimateModel","ctrlAnimationPhaseModel","ctrlAt","ctrlAutoScrollDelay","ctrlAutoScrollRewind","ctrlAutoScrollSpeed","ctrlBackgroundColor","ctrlChecked","ctrlClassName","ctrlCommit","ctrlCommitted","ctrlCreate","ctrlDelete","ctrlEnable","ctrlEnabled","ctrlFade","ctrlFontHeight","ctrlForegroundColor","ctrlHTMLLoaded","ctrlIDC","ctrlIDD","ctrlMapAnimAdd","ctrlMapAnimClear","ctrlMapAnimCommit","ctrlMapAnimDone","ctrlMapCursor","ctrlMapMouseOver","ctrlMapPosition","ctrlMapScale","ctrlMapScreenToWorld","ctrlMapSetPosition","ctrlMapWorldToScreen","ctrlModel","ctrlModelDirAndUp","ctrlModelScale","ctrlMousePosition","ctrlParent","ctrlParentControlsGroup","ctrlPosition","ctrlRemoveAllEventHandlers","ctrlRemoveEventHandler","ctrlScale","ctrlScrollValues","ctrlSetActiveColor","ctrlSetAngle","ctrlSetAutoScrollDelay","ctrlSetAutoScrollRewind","ctrlSetAutoScrollSpeed","ctrlSetBackgroundColor","ctrlSetChecked","ctrlSetDisabledColor","ctrlSetEventHandler","ctrlSetFade","ctrlSetFocus","ctrlSetFont","ctrlSetFontH1","ctrlSetFontH1B","ctrlSetFontH2","ctrlSetFontH2B","ctrlSetFontH3","ctrlSetFontH3B","ctrlSetFontH4","ctrlSetFontH4B","ctrlSetFontH5","ctrlSetFontH5B","ctrlSetFontH6","ctrlSetFontH6B","ctrlSetFontHeight","ctrlSetFontHeightH1","ctrlSetFontHeightH2","ctrlSetFontHeightH3","ctrlSetFontHeightH4","ctrlSetFontHeightH5","ctrlSetFontHeightH6","ctrlSetFontHeightSecondary","ctrlSetFontP","ctrlSetFontPB","ctrlSetFontSecondary","ctrlSetForegroundColor","ctrlSetModel","ctrlSetModelDirAndUp","ctrlSetModelScale","ctrlSetMousePosition","ctrlSetPixelPrecision","ctrlSetPosition","ctrlSetPositionH","ctrlSetPositionW","ctrlSetPositionX","ctrlSetPositionY","ctrlSetScale","ctrlSetScrollValues","ctrlSetShadow","ctrlSetStructuredText","ctrlSetText","ctrlSetTextColor","ctrlSetTextColorSecondary","ctrlSetTextSecondary","ctrlSetTextSelection","ctrlSetTooltip","ctrlSetTooltipColorBox","ctrlSetTooltipColorShade","ctrlSetTooltipColorText","ctrlSetTooltipMaxWidth","ctrlSetURL","ctrlSetURLOverlayMode","ctrlShadow","ctrlShow","ctrlShown","ctrlStyle","ctrlText","ctrlTextColor","ctrlTextHeight","ctrlTextSecondary","ctrlTextSelection","ctrlTextWidth","ctrlTooltip","ctrlType","ctrlURL","ctrlURLOverlayMode","ctrlVisible","ctRowControls","ctRowCount","ctSetCurSel","ctSetData","ctSetHeaderTemplate","ctSetRowTemplate","ctSetValue","ctValue","curatorAddons","curatorCamera","curatorCameraArea","curatorCameraAreaCeiling","curatorCoef","curatorEditableObjects","curatorEditingArea","curatorEditingAreaType","curatorMouseOver","curatorPoints","curatorRegisteredObjects","curatorSelected","curatorWaypointCost","current3DENOperation","currentChannel","currentCommand","currentMagazine","currentMagazineDetail","currentMagazineDetailTurret","currentMagazineTurret","currentMuzzle","currentNamespace","currentPilot","currentTask","currentTasks","currentThrowable","currentVisionMode","currentWaypoint","currentWeapon","currentWeaponMode","currentWeaponTurret","currentZeroing","cursorObject","cursorTarget","customChat","customRadio","customWaypointPosition","cutFadeOut","cutObj","cutRsc","cutText","damage","date","dateToNumber","dayTime","deActivateKey","debriefingText","debugFSM","debugLog","decayGraphValues","deg","delete3DENEntities","deleteAt","deleteCenter","deleteCollection","deleteEditorObject","deleteGroup","deleteGroupWhenEmpty","deleteIdentity","deleteLocation","deleteMarker","deleteMarkerLocal","deleteRange","deleteResources","deleteSite","deleteStatus","deleteTeam","deleteVehicle","deleteVehicleCrew","deleteWaypoint","detach","detectedMines","diag_activeMissionFSMs","diag_activeScripts","diag_activeSQFScripts","diag_activeSQSScripts","diag_allMissionEventHandlers","diag_captureFrame","diag_captureFrameToFile","diag_captureSlowFrame","diag_codePerformance","diag_deltaTime","diag_drawmode","diag_dumpCalltraceToLog","diag_dumpScriptAssembly","diag_dumpTerrainSynth","diag_dynamicSimulationEnd","diag_enable","diag_enabled","diag_exportConfig","diag_exportTerrainSVG","diag_fps","diag_fpsmin","diag_frameno","diag_getTerrainSegmentOffset","diag_lightNewLoad","diag_list","diag_localized","diag_log","diag_logSlowFrame","diag_mergeConfigFile","diag_recordTurretLimits","diag_resetFSM","diag_resetshapes","diag_scope","diag_setLightNew","diag_stacktrace","diag_tickTime","diag_toggle","dialog","diarySubjectExists","didJIP","didJIPOwner","difficulty","difficultyEnabled","difficultyEnabledRTD","difficultyOption","direction","directionStabilizationEnabled","directSay","disableAI","disableBrakes","disableCollisionWith","disableConversation","disableDebriefingStats","disableMapIndicators","disableNVGEquipment","disableRemoteSensors","disableSerialization","disableTIEquipment","disableUAVConnectability","disableUserInput","displayAddEventHandler","displayChild","displayCtrl","displayParent","displayRemoveAllEventHandlers","displayRemoveEventHandler","displaySetEventHandler","displayUniqueName","displayUpdate","dissolveTeam","distance","distance2D","distanceSqr","distributionRegion","do3DENAction","doArtilleryFire","doFire","doFollow","doFSM","doGetOut","doMove","doorPhase","doStop","doSuppressiveFire","doTarget","doWatch","drawArrow","drawEllipse","drawIcon","drawIcon3D","drawLaser","drawLine","drawLine3D","drawLink","drawLocation","drawPolygon","drawRectangle","drawTriangle","driver","drop","dynamicSimulationDistance","dynamicSimulationDistanceCoef","dynamicSimulationEnabled","dynamicSimulationSystemEnabled","echo","edit3DENMissionAttributes","editObject","editorSetEventHandler","effectiveCommander","elevatePeriscope","emptyPositions","enableAI","enableAIFeature","enableAimPrecision","enableAttack","enableAudioFeature","enableAutoStartUpRTD","enableAutoTrimRTD","enableCamShake","enableCaustics","enableChannel","enableCollisionWith","enableCopilot","enableDebriefingStats","enableDiagLegend","enableDirectionStabilization","enableDynamicSimulation","enableDynamicSimulationSystem","enableEndDialog","enableEngineArtillery","enableEnvironment","enableFatigue","enableGunLights","enableInfoPanelComponent","enableIRLasers","enableMimics","enablePersonTurret","enableRadio","enableReload","enableRopeAttach","enableSatNormalOnDetail","enableSaving","enableSentences","enableSimulation","enableSimulationGlobal","enableStamina","enableStressDamage","enableTeamSwitch","enableTraffic","enableUAVConnectability","enableUAVWaypoints","enableVehicleCargo","enableVehicleSensor","enableWeaponDisassembly","endLoadingScreen","endMission","engineOn","enginesIsOnRTD","enginesPowerRTD","enginesRpmRTD","enginesTorqueRTD","entities","environmentEnabled","environmentVolume","equipmentDisabled","estimatedEndServerTime","estimatedTimeLeft","evalObjectArgument","everyBackpack","everyContainer","exec","execEditorScript","execFSM","execVM","exp","expectedDestination","exportJIPMessages","eyeDirection","eyePos","face","faction","fadeEnvironment","fadeMusic","fadeRadio","fadeSound","fadeSpeech","failMission","fileExists","fillWeaponsFromPool","find","findAny","findCover","findDisplay","findEditorObject","findEmptyPosition","findEmptyPositionReady","findIf","findNearestEnemy","finishMissionInit","finite","fire","fireAtTarget","firstBackpack","flag","flagAnimationPhase","flagOwner","flagSide","flagTexture","flatten","fleeing","floor","flyInHeight","flyInHeightASL","focusedCtrl","fog","fogForecast","fogParams","forceAddUniform","forceAtPositionRTD","forceCadetDifficulty","forcedMap","forceEnd","forceFlagTexture","forceFollowRoad","forceGeneratorRTD","forceMap","forceRespawn","forceSpeed","forceUnicode","forceWalk","forceWeaponFire","forceWeatherChange","forEachMember","forEachMemberAgent","forEachMemberTeam","forgetTarget","format","formation","formationDirection","formationLeader","formationMembers","formationPosition","formationTask","formatText","formLeader","freeExtension","freeLook","fromEditor","fuel","fullCrew","gearIDCAmmoCount","gearSlotAmmoCount","gearSlotData","gestureState","get","get3DENActionState","get3DENAttribute","get3DENCamera","get3DENConnections","get3DENEntity","get3DENEntityID","get3DENGrid","get3DENIconsVisible","get3DENLayerEntities","get3DENLinesVisible","get3DENMissionAttribute","get3DENMouseOver","get3DENSelected","getAimingCoef","getAllEnv3DSoundControllers","getAllEnvSoundControllers","getAllHitPointsDamage","getAllOwnedMines","getAllPylonsInfo","getAllSoundControllers","getAllUnitTraits","getAmmoCargo","getAnimAimPrecision","getAnimSpeedCoef","getArray","getArtilleryAmmo","getArtilleryComputerSettings","getArtilleryETA","getAssetDLCInfo","getAssignedCuratorLogic","getAssignedCuratorUnit","getAttackTarget","getAudioOptionVolumes","getBackpackCargo","getBleedingRemaining","getBurningValue","getCalculatePlayerVisibilityByFriendly","getCameraViewDirection","getCargoIndex","getCenterOfMass","getClientState","getClientStateNumber","getCompatiblePylonMagazines","getConnectedUAV","getConnectedUAVUnit","getContainerMaxLoad","getCorpse","getCruiseControl","getCursorObjectParams","getCustomAimCoef","getCustomSoundController","getCustomSoundControllerCount","getDammage","getDebriefingText","getDescription","getDir","getDirVisual","getDiverState","getDLCAssetsUsage","getDLCAssetsUsageByName","getDLCs","getDLCUsageTime","getEditorCamera","getEditorMode","getEditorObjectScope","getElevationOffset","getEngineTargetRPMRTD","getEnv3DSoundController","getEnvSoundController","getEventHandlerInfo","getFatigue","getFieldManualStartPage","getForcedFlagTexture","getForcedSpeed","getFriend","getFSMVariable","getFuelCargo","getGraphValues","getGroupIcon","getGroupIconParams","getGroupIcons","getHideFrom","getHit","getHitIndex","getHitPointDamage","getItemCargo","getLighting","getLightingAt","getLoadedModsInfo","getMagazineCargo","getMarkerColor","getMarkerPos","getMarkerSize","getMarkerType","getMass","getMissionConfig","getMissionConfigValue","getMissionDLCs","getMissionLayerEntities","getMissionLayers","getMissionPath","getModelInfo","getMousePosition","getMusicPlayedTime","getNumber","getObjectArgument","getObjectChildren","getObjectDLC","getObjectFOV","getObjectID","getObjectMaterials","getObjectProxy","getObjectScale","getObjectTextures","getObjectType","getObjectViewDistance","getOpticsMode","getOrDefault","getOrDefaultCall","getOxygenRemaining","getPersonUsedDLCs","getPilotCameraDirection","getPilotCameraPosition","getPilotCameraRotation","getPilotCameraTarget","getPiPViewDistance","getPlateNumber","getPlayerChannel","getPlayerID","getPlayerScores","getPlayerUID","getPlayerVoNVolume","getPos","getPosASL","getPosASLVisual","getPosASLW","getPosATL","getPosATLVisual","getPosVisual","getPosWorld","getPosWorldVisual","getPylonMagazines","getRelDir","getRelPos","getRemoteSensorsDisabled","getRepairCargo","getResolution","getRoadInfo","getRotorBrakeRTD","getSensorTargets","getSensorThreats","getShadowDistance","getShotParents","getSlingLoad","getSoundController","getSoundControllerResult","getSpeed","getStamina","getStatValue","getSteamFriendsServers","getSubtitleOptions","getSuppression","getTerrainGrid","getTerrainHeight","getTerrainHeightASL","getTerrainInfo","getText","getTextRaw","getTextureInfo","getTextWidth","getTiParameters","getTotalDLCUsageTime","getTrimOffsetRTD","getTurretLimits","getTurretOpticsMode","getUnitFreefallInfo","getUnitLoadout","getUnitTrait","getUnloadInCombat","getUserInfo","getUserMFDText","getUserMFDValue","getVariable","getVehicleCargo","getVehicleTiPars","getWeaponCargo","getWeaponSway","getWingsOrientationRTD","getWingsPositionRTD","getWPPos","glanceAt","globalChat","globalRadio","goggles","goto","group","groupChat","groupFromNetId","groupIconSelectable","groupIconsVisible","groupID","groupOwner","groupRadio","groups","groupSelectedUnits","groupSelectUnit","gunner","gusts","halt","handgunItems","handgunMagazine","handgunWeapon","handsHit","hashValue","hasInterface","hasPilotCamera","hasWeapon","hcAllGroups","hcGroupParams","hcLeader","hcRemoveAllGroups","hcRemoveGroup","hcSelected","hcSelectGroup","hcSetGroup","hcShowBar","hcShownBar","headgear","hideBody","hideObject","hideObjectGlobal","hideSelection","hint","hintC","hintCadet","hintSilent","hmd","hostMission","htmlLoad","HUDMovementLevels","humidity","image","importAllGroups","importance","in","inArea","inAreaArray","incapacitatedState","inflame","inflamed","infoPanel","infoPanelComponentEnabled","infoPanelComponents","infoPanels","inGameUISetEventHandler","inheritsFrom","initAmbientLife","inPolygon","inputAction","inputController","inputMouse","inRangeOfArtillery","insert","insertEditorObject","intersect","is3DEN","is3DENMultiplayer","is3DENPreview","isAbleToBreathe","isActionMenuVisible","isAgent","isAimPrecisionEnabled","isAllowedCrewInImmobile","isArray","isAutoHoverOn","isAutonomous","isAutoStartUpEnabledRTD","isAutotest","isAutoTrimOnRTD","isAwake","isBleeding","isBurning","isClass","isCollisionLightOn","isCopilotEnabled","isDamageAllowed","isDedicated","isDLCAvailable","isEngineOn","isEqualRef","isEqualTo","isEqualType","isEqualTypeAll","isEqualTypeAny","isEqualTypeArray","isEqualTypeParams","isFilePatchingEnabled","isFinal","isFlashlightOn","isFlatEmpty","isForcedWalk","isFormationLeader","isGameFocused","isGamePaused","isGroupDeletedWhenEmpty","isHidden","isInRemainsCollector","isInstructorFigureEnabled","isIRLaserOn","isKeyActive","isKindOf","isLaserOn","isLightOn","isLocalized","isManualFire","isMarkedForCollection","isMissionProfileNamespaceLoaded","isMultiplayer","isMultiplayerSolo","isNil","isNotEqualRef","isNotEqualTo","isNull","isNumber","isObjectHidden","isObjectRTD","isOnRoad","isPiPEnabled","isPlayer","isRealTime","isRemoteExecuted","isRemoteExecutedJIP","isSaving","isSensorTargetConfirmed","isServer","isShowing3DIcons","isSimpleObject","isSprintAllowed","isStaminaEnabled","isSteamMission","isSteamOverlayEnabled","isStreamFriendlyUIEnabled","isStressDamageEnabled","isText","isTouchingGround","isTurnedOut","isTutHintsEnabled","isUAVConnectable","isUAVConnected","isUIContext","isUniformAllowed","isVehicleCargo","isVehicleRadarOn","isVehicleSensorEnabled","isWalking","isWeaponDeployed","isWeaponRested","itemCargo","items","itemsWithMagazines","join","joinAs","joinAsSilent","joinSilent","joinString","kbAddDatabase","kbAddDatabaseTargets","kbAddTopic","kbHasTopic","kbReact","kbRemoveTopic","kbTell","kbWasSaid","keyImage","keyName","keys","knowsAbout","land","landAt","landResult","language","laserTarget","lbAdd","lbClear","lbColor","lbColorRight","lbCurSel","lbData","lbDelete","lbIsSelected","lbPicture","lbPictureRight","lbSelection","lbSetColor","lbSetColorRight","lbSetCurSel","lbSetData","lbSetPicture","lbSetPictureColor","lbSetPictureColorDisabled","lbSetPictureColorSelected","lbSetPictureRight","lbSetPictureRightColor","lbSetPictureRightColorDisabled","lbSetPictureRightColorSelected","lbSetSelectColor","lbSetSelectColorRight","lbSetSelected","lbSetText","lbSetTextRight","lbSetTooltip","lbSetValue","lbSize","lbSort","lbSortBy","lbSortByValue","lbText","lbTextRight","lbTooltip","lbValue","leader","leaderboardDeInit","leaderboardGetRows","leaderboardInit","leaderboardRequestRowsFriends","leaderboardRequestRowsGlobal","leaderboardRequestRowsGlobalAroundUser","leaderboardsRequestUploadScore","leaderboardsRequestUploadScoreKeepBest","leaderboardState","leaveVehicle","libraryCredits","libraryDisclaimers","lifeState","lightAttachObject","lightDetachObject","lightIsOn","lightnings","limitSpeed","linearConversion","lineIntersects","lineIntersectsObjs","lineIntersectsSurfaces","lineIntersectsWith","linkItem","list","listObjects","listRemoteTargets","listVehicleSensors","ln","lnbAddArray","lnbAddColumn","lnbAddRow","lnbClear","lnbColor","lnbColorRight","lnbCurSelRow","lnbData","lnbDeleteColumn","lnbDeleteRow","lnbGetColumnsPosition","lnbPicture","lnbPictureRight","lnbSetColor","lnbSetColorRight","lnbSetColumnsPos","lnbSetCurSelRow","lnbSetData","lnbSetPicture","lnbSetPictureColor","lnbSetPictureColorRight","lnbSetPictureColorSelected","lnbSetPictureColorSelectedRight","lnbSetPictureRight","lnbSetText","lnbSetTextRight","lnbSetTooltip","lnbSetValue","lnbSize","lnbSort","lnbSortBy","lnbSortByValue","lnbText","lnbTextRight","lnbValue","load","loadAbs","loadBackpack","loadConfig","loadFile","loadGame","loadIdentity","loadMagazine","loadOverlay","loadStatus","loadUniform","loadVest","localize","localNamespace","locationPosition","lock","lockCameraTo","lockCargo","lockDriver","locked","lockedCameraTo","lockedCargo","lockedDriver","lockedInventory","lockedTurret","lockIdentity","lockInventory","lockTurret","lockWp","log","logEntities","logNetwork","logNetworkTerminate","lookAt","lookAtPos","magazineCargo","magazines","magazinesAllTurrets","magazinesAmmo","magazinesAmmoCargo","magazinesAmmoFull","magazinesDetail","magazinesDetailBackpack","magazinesDetailUniform","magazinesDetailVest","magazinesTurret","magazineTurretAmmo","mapAnimAdd","mapAnimClear","mapAnimCommit","mapAnimDone","mapCenterOnCamera","mapGridPosition","markAsFinishedOnSteam","markerAlpha","markerBrush","markerChannel","markerColor","markerDir","markerPolyline","markerPos","markerShadow","markerShape","markerSize","markerText","markerType","matrixMultiply","matrixTranspose","max","maxLoad","members","menuAction","menuAdd","menuChecked","menuClear","menuCollapse","menuData","menuDelete","menuEnable","menuEnabled","menuExpand","menuHover","menuPicture","menuSetAction","menuSetCheck","menuSetData","menuSetPicture","menuSetShortcut","menuSetText","menuSetURL","menuSetValue","menuShortcut","menuShortcutText","menuSize","menuSort","menuText","menuURL","menuValue","merge","min","mineActive","mineDetectedBy","missileTarget","missileTargetPos","missionConfigFile","missionDifficulty","missionEnd","missionName","missionNameSource","missionNamespace","missionProfileNamespace","missionStart","missionVersion","mod","modelToWorld","modelToWorldVisual","modelToWorldVisualWorld","modelToWorldWorld","modParams","moonIntensity","moonPhase","morale","move","move3DENCamera","moveInAny","moveInCargo","moveInCommander","moveInDriver","moveInGunner","moveInTurret","moveObjectToEnd","moveOut","moveTime","moveTo","moveToCompleted","moveToFailed","musicVolume","name","namedProperties","nameSound","nearEntities","nearestBuilding","nearestLocation","nearestLocations","nearestLocationWithDubbing","nearestMines","nearestObject","nearestObjects","nearestTerrainObjects","nearObjects","nearObjectsReady","nearRoads","nearSupplies","nearTargets","needReload","needService","netId","netObjNull","newOverlay","nextMenuItemIndex","nextWeatherChange","nMenuItems","not","numberOfEnginesRTD","numberToDate","objectCurators","objectFromNetId","objectParent","objStatus","onBriefingGroup","onBriefingNotes","onBriefingPlan","onBriefingTeamSwitch","onCommandModeChanged","onDoubleClick","onEachFrame","onGroupIconClick","onGroupIconOverEnter","onGroupIconOverLeave","onHCGroupSelectionChanged","onMapSingleClick","onPlayerConnected","onPlayerDisconnected","onPreloadFinished","onPreloadStarted","onShowNewObject","onTeamSwitch","openCuratorInterface","openDLCPage","openGPS","openMap","openSteamApp","openYoutubeVideo","or","orderGetIn","overcast","overcastForecast","owner","param","params","parseNumber","parseSimpleArray","parseText","parsingNamespace","particlesQuality","periscopeElevation","pickWeaponPool","pitch","pixelGrid","pixelGridBase","pixelGridNoUIScale","pixelH","pixelW","playableSlotsNumber","playableUnits","playAction","playActionNow","player","playerRespawnTime","playerSide","playersNumber","playGesture","playMission","playMove","playMoveNow","playMusic","playScriptedMission","playSound","playSound3D","playSoundUI","pose","position","positionCameraToWorld","posScreenToWorld","posWorldToScreen","ppEffectAdjust","ppEffectCommit","ppEffectCommitted","ppEffectCreate","ppEffectDestroy","ppEffectEnable","ppEffectEnabled","ppEffectForceInNVG","precision","preloadCamera","preloadObject","preloadSound","preloadTitleObj","preloadTitleRsc","preprocessFile","preprocessFileLineNumbers","primaryWeapon","primaryWeaponItems","primaryWeaponMagazine","priority","processDiaryLink","productVersion","profileName","profileNamespace","profileNameSteam","progressLoadingScreen","progressPosition","progressSetPosition","publicVariable","publicVariableClient","publicVariableServer","pushBack","pushBackUnique","putWeaponPool","queryItemsPool","queryMagazinePool","queryWeaponPool","rad","radioChannelAdd","radioChannelCreate","radioChannelInfo","radioChannelRemove","radioChannelSetCallSign","radioChannelSetLabel","radioEnabled","radioVolume","rain","rainbow","rainParams","random","rank","rankId","rating","rectangular","regexFind","regexMatch","regexReplace","registeredTasks","registerTask","reload","reloadEnabled","remoteControl","remoteExec","remoteExecCall","remoteExecutedOwner","remove3DENConnection","remove3DENEventHandler","remove3DENLayer","removeAction","removeAll3DENEventHandlers","removeAllActions","removeAllAssignedItems","removeAllBinocularItems","removeAllContainers","removeAllCuratorAddons","removeAllCuratorCameraAreas","removeAllCuratorEditingAreas","removeAllEventHandlers","removeAllHandgunItems","removeAllItems","removeAllItemsWithMagazines","removeAllMissionEventHandlers","removeAllMPEventHandlers","removeAllMusicEventHandlers","removeAllOwnedMines","removeAllPrimaryWeaponItems","removeAllSecondaryWeaponItems","removeAllUserActionEventHandlers","removeAllWeapons","removeBackpack","removeBackpackGlobal","removeBinocularItem","removeCuratorAddons","removeCuratorCameraArea","removeCuratorEditableObjects","removeCuratorEditingArea","removeDiaryRecord","removeDiarySubject","removeDrawIcon","removeDrawLinks","removeEventHandler","removeFromRemainsCollector","removeGoggles","removeGroupIcon","removeHandgunItem","removeHeadgear","removeItem","removeItemFromBackpack","removeItemFromUniform","removeItemFromVest","removeItems","removeMagazine","removeMagazineGlobal","removeMagazines","removeMagazinesTurret","removeMagazineTurret","removeMenuItem","removeMissionEventHandler","removeMPEventHandler","removeMusicEventHandler","removeOwnedMine","removePrimaryWeaponItem","removeSecondaryWeaponItem","removeSimpleTask","removeSwitchableUnit","removeTeamMember","removeUniform","removeUserActionEventHandler","removeVest","removeWeapon","removeWeaponAttachmentCargo","removeWeaponCargo","removeWeaponGlobal","removeWeaponTurret","reportRemoteTarget","requiredVersion","resetCamShake","resetSubgroupDirection","resize","resources","respawnVehicle","restartEditorCamera","reveal","revealMine","reverse","reversedMouseY","roadAt","roadsConnectedTo","roleDescription","ropeAttachedObjects","ropeAttachedTo","ropeAttachEnabled","ropeAttachTo","ropeCreate","ropeCut","ropeDestroy","ropeDetach","ropeEndPosition","ropeLength","ropes","ropesAttachedTo","ropeSegments","ropeUnwind","ropeUnwound","rotorsForcesRTD","rotorsRpmRTD","round","runInitScript","safeZoneH","safeZoneW","safeZoneWAbs","safeZoneX","safeZoneXAbs","safeZoneY","save3DENInventory","saveGame","saveIdentity","saveJoysticks","saveMissionProfileNamespace","saveOverlay","saveProfileNamespace","saveStatus","saveVar","savingEnabled","say","say2D","say3D","scopeName","score","scoreSide","screenshot","screenToWorld","scriptDone","scriptName","scudState","secondaryWeapon","secondaryWeaponItems","secondaryWeaponMagazine","select","selectBestPlaces","selectDiarySubject","selectedEditorObjects","selectEditorObject","selectionNames","selectionPosition","selectionVectorDirAndUp","selectLeader","selectMax","selectMin","selectNoPlayer","selectPlayer","selectRandom","selectRandomWeighted","selectWeapon","selectWeaponTurret","sendAUMessage","sendSimpleCommand","sendTask","sendTaskResult","sendUDPMessage","sentencesEnabled","serverCommand","serverCommandAvailable","serverCommandExecutable","serverName","serverNamespace","serverTime","set","set3DENAttribute","set3DENAttributes","set3DENGrid","set3DENIconsVisible","set3DENLayer","set3DENLinesVisible","set3DENLogicType","set3DENMissionAttribute","set3DENMissionAttributes","set3DENModelsVisible","set3DENObjectType","set3DENSelected","setAccTime","setActualCollectiveRTD","setAirplaneThrottle","setAirportSide","setAmmo","setAmmoCargo","setAmmoOnPylon","setAnimSpeedCoef","setAperture","setApertureNew","setArmoryPoints","setAttributes","setAutonomous","setBehaviour","setBehaviourStrong","setBleedingRemaining","setBrakesRTD","setCameraInterest","setCamShakeDefParams","setCamShakeParams","setCamUseTi","setCaptive","setCenterOfMass","setCollisionLight","setCombatBehaviour","setCombatMode","setCompassOscillation","setConvoySeparation","setCruiseControl","setCuratorCameraAreaCeiling","setCuratorCoef","setCuratorEditingAreaType","setCuratorWaypointCost","setCurrentChannel","setCurrentTask","setCurrentWaypoint","setCustomAimCoef","SetCustomMissionData","setCustomSoundController","setCustomWeightRTD","setDamage","setDammage","setDate","setDebriefingText","setDefaultCamera","setDestination","setDetailMapBlendPars","setDiaryRecordText","setDiarySubjectPicture","setDir","setDirection","setDrawIcon","setDriveOnPath","setDropInterval","setDynamicSimulationDistance","setDynamicSimulationDistanceCoef","setEditorMode","setEditorObjectScope","setEffectCondition","setEffectiveCommander","setEngineRpmRTD","setFace","setFaceanimation","setFatigue","setFeatureType","setFlagAnimationPhase","setFlagOwner","setFlagSide","setFlagTexture","setFog","setForceGeneratorRTD","setFormation","setFormationTask","setFormDir","setFriend","setFromEditor","setFSMVariable","setFuel","setFuelCargo","setGroupIcon","setGroupIconParams","setGroupIconsSelectable","setGroupIconsVisible","setGroupid","setGroupIdGlobal","setGroupOwner","setGusts","setHideBehind","setHit","setHitIndex","setHitPointDamage","setHorizonParallaxCoef","setHUDMovementLevels","setHumidity","setIdentity","setImportance","setInfoPanel","setLeader","setLightAmbient","setLightAttenuation","setLightBrightness","setLightColor","setLightConePars","setLightDayLight","setLightFlareMaxDistance","setLightFlareSize","setLightIntensity","setLightIR","setLightnings","setLightUseFlare","setLightVolumeShape","setLocalWindParams","setMagazineTurretAmmo","setMarkerAlpha","setMarkerAlphaLocal","setMarkerBrush","setMarkerBrushLocal","setMarkerColor","setMarkerColorLocal","setMarkerDir","setMarkerDirLocal","setMarkerPolyline","setMarkerPolylineLocal","setMarkerPos","setMarkerPosLocal","setMarkerShadow","setMarkerShadowLocal","setMarkerShape","setMarkerShapeLocal","setMarkerSize","setMarkerSizeLocal","setMarkerText","setMarkerTextLocal","setMarkerType","setMarkerTypeLocal","setMass","setMaxLoad","setMimic","setMissileTarget","setMissileTargetPos","setMousePosition","setMusicEffect","setMusicEventHandler","setName","setNameSound","setObjectArguments","setObjectMaterial","setObjectMaterialGlobal","setObjectProxy","setObjectScale","setObjectTexture","setObjectTextureGlobal","setObjectViewDistance","setOpticsMode","setOvercast","setOwner","setOxygenRemaining","setParticleCircle","setParticleClass","setParticleFire","setParticleParams","setParticleRandom","setPilotCameraDirection","setPilotCameraRotation","setPilotCameraTarget","setPilotLight","setPiPEffect","setPiPViewDistance","setPitch","setPlateNumber","setPlayable","setPlayerRespawnTime","setPlayerVoNVolume","setPos","setPosASL","setPosASL2","setPosASLW","setPosATL","setPosition","setPosWorld","setPylonLoadout","setPylonsPriority","setRadioMsg","setRain","setRainbow","setRandomLip","setRank","setRectangular","setRepairCargo","setRotorBrakeRTD","setShadowDistance","setShotParents","setSide","setSimpleTaskAlwaysVisible","setSimpleTaskCustomData","setSimpleTaskDescription","setSimpleTaskDestination","setSimpleTaskTarget","setSimpleTaskType","setSimulWeatherLayers","setSize","setSkill","setSlingLoad","setSoundEffect","setSpeaker","setSpeech","setSpeedMode","setStamina","setStaminaScheme","setStatValue","setSuppression","setSystemOfUnits","setTargetAge","setTaskMarkerOffset","setTaskResult","setTaskState","setTerrainGrid","setTerrainHeight","setText","setTimeMultiplier","setTiParameter","setTitleEffect","setTowParent","setTrafficDensity","setTrafficDistance","setTrafficGap","setTrafficSpeed","setTriggerActivation","setTriggerArea","setTriggerInterval","setTriggerStatements","setTriggerText","setTriggerTimeout","setTriggerType","setTurretLimits","setTurretOpticsMode","setType","setUnconscious","setUnitAbility","setUnitCombatMode","setUnitFreefallHeight","setUnitLoadout","setUnitPos","setUnitPosWeak","setUnitRank","setUnitRecoilCoefficient","setUnitTrait","setUnloadInCombat","setUserActionText","setUserMFDText","setUserMFDValue","setVariable","setVectorDir","setVectorDirAndUp","setVectorUp","setVehicleAmmo","setVehicleAmmoDef","setVehicleArmor","setVehicleCargo","setVehicleId","setVehicleLock","setVehiclePosition","setVehicleRadar","setVehicleReceiveRemoteTargets","setVehicleReportOwnPosition","setVehicleReportRemoteTargets","setVehicleTiPars","setVehicleVarName","setVelocity","setVelocityModelSpace","setVelocityTransformation","setViewDistance","setVisibleIfTreeCollapsed","setWantedRPMRTD","setWaves","setWaypointBehaviour","setWaypointCombatMode","setWaypointCompletionRadius","setWaypointDescription","setWaypointForceBehaviour","setWaypointFormation","setWaypointHousePosition","setWaypointLoiterAltitude","setWaypointLoiterRadius","setWaypointLoiterType","setWaypointName","setWaypointPosition","setWaypointScript","setWaypointSpeed","setWaypointStatements","setWaypointTimeout","setWaypointType","setWaypointVisible","setWeaponReloadingTime","setWeaponZeroing","setWind","setWindDir","setWindForce","setWindStr","setWingForceScaleRTD","setWPPos","show3DIcons","showChat","showCinemaBorder","showCommandingMenu","showCompass","showCuratorCompass","showGps","showHUD","showLegend","showMap","shownArtilleryComputer","shownChat","shownCompass","shownCuratorCompass","showNewEditorObject","shownGps","shownHUD","shownMap","shownPad","shownRadio","shownScoretable","shownSubtitles","shownUAVFeed","shownWarrant","shownWatch","showPad","showRadio","showScoretable","showSubtitles","showUAVFeed","showWarrant","showWatch","showWaypoint","showWaypoints","side","sideChat","sideRadio","simpleTasks","simulationEnabled","simulCloudDensity","simulCloudOcclusion","simulInClouds","simulWeatherSync","sin","size","sizeOf","skill","skillFinal","skipTime","sleep","sliderPosition","sliderRange","sliderSetPosition","sliderSetRange","sliderSetSpeed","sliderSpeed","slingLoadAssistantShown","soldierMagazines","someAmmo","sort","soundVolume","spawn","speaker","speechVolume","speed","speedMode","splitString","sqrt","squadParams","stance","startLoadingScreen","stop","stopEngineRTD","stopped","str","sunOrMoon","supportInfo","suppressFor","surfaceIsWater","surfaceNormal","surfaceTexture","surfaceType","swimInDepth","switchableUnits","switchAction","switchCamera","switchGesture","switchLight","switchMove","synchronizedObjects","synchronizedTriggers","synchronizedWaypoints","synchronizeObjectsAdd","synchronizeObjectsRemove","synchronizeTrigger","synchronizeWaypoint","systemChat","systemOfUnits","systemTime","systemTimeUTC","tan","targetKnowledge","targets","targetsAggregate","targetsQuery","taskAlwaysVisible","taskChildren","taskCompleted","taskCustomData","taskDescription","taskDestination","taskHint","taskMarkerOffset","taskName","taskParent","taskResult","taskState","taskType","teamMember","teamName","teams","teamSwitch","teamSwitchEnabled","teamType","terminate","terrainIntersect","terrainIntersectASL","terrainIntersectAtASL","text","textLog","textLogFormat","tg","time","timeMultiplier","titleCut","titleFadeOut","titleObj","titleRsc","titleText","toArray","toFixed","toLower","toLowerANSI","toString","toUpper","toUpperANSI","triggerActivated","triggerActivation","triggerAmmo","triggerArea","triggerAttachedVehicle","triggerAttachObject","triggerAttachVehicle","triggerDynamicSimulation","triggerInterval","triggerStatements","triggerText","triggerTimeout","triggerTimeoutCurrent","triggerType","trim","turretLocal","turretOwner","turretUnit","tvAdd","tvClear","tvCollapse","tvCollapseAll","tvCount","tvCurSel","tvData","tvDelete","tvExpand","tvExpandAll","tvIsSelected","tvPicture","tvPictureRight","tvSelection","tvSetColor","tvSetCurSel","tvSetData","tvSetPicture","tvSetPictureColor","tvSetPictureColorDisabled","tvSetPictureColorSelected","tvSetPictureRight","tvSetPictureRightColor","tvSetPictureRightColorDisabled","tvSetPictureRightColorSelected","tvSetSelectColor","tvSetSelected","tvSetText","tvSetTooltip","tvSetValue","tvSort","tvSortAll","tvSortByValue","tvSortByValueAll","tvText","tvTooltip","tvValue","type","typeName","typeOf","UAVControl","uiNamespace","uiSleep","unassignCurator","unassignItem","unassignTeam","unassignVehicle","underwater","uniform","uniformContainer","uniformItems","uniformMagazines","uniqueUnitItems","unitAddons","unitAimPosition","unitAimPositionVisual","unitBackpack","unitCombatMode","unitIsUAV","unitPos","unitReady","unitRecoilCoefficient","units","unitsBelowHeight","unitTurret","unlinkItem","unlockAchievement","unregisterTask","updateDrawIcon","updateMenuItem","updateObjectTree","useAIOperMapObstructionTest","useAISteeringComponent","useAudioTimeForMoves","userInputDisabled","values","vectorAdd","vectorCos","vectorCrossProduct","vectorDiff","vectorDir","vectorDirVisual","vectorDistance","vectorDistanceSqr","vectorDotProduct","vectorFromTo","vectorLinearConversion","vectorMagnitude","vectorMagnitudeSqr","vectorModelToWorld","vectorModelToWorldVisual","vectorMultiply","vectorNormalized","vectorUp","vectorUpVisual","vectorWorldToModel","vectorWorldToModelVisual","vehicle","vehicleCargoEnabled","vehicleChat","vehicleMoveInfo","vehicleRadio","vehicleReceiveRemoteTargets","vehicleReportOwnPosition","vehicleReportRemoteTargets","vehicles","vehicleVarName","velocity","velocityModelSpace","verifySignature","vest","vestContainer","vestItems","vestMagazines","viewDistance","visibleCompass","visibleGps","visibleMap","visiblePosition","visiblePositionASL","visibleScoretable","visibleWatch","waves","waypointAttachedObject","waypointAttachedVehicle","waypointAttachObject","waypointAttachVehicle","waypointBehaviour","waypointCombatMode","waypointCompletionRadius","waypointDescription","waypointForceBehaviour","waypointFormation","waypointHousePosition","waypointLoiterAltitude","waypointLoiterRadius","waypointLoiterType","waypointName","waypointPosition","waypoints","waypointScript","waypointsEnabledUAV","waypointShow","waypointSpeed","waypointStatements","waypointTimeout","waypointTimeoutCurrent","waypointType","waypointVisible","weaponAccessories","weaponAccessoriesCargo","weaponCargo","weaponDirection","weaponInertia","weaponLowered","weaponReloadingTime","weapons","weaponsInfo","weaponsItems","weaponsItemsCargo","weaponState","weaponsTurret","weightRTD","WFSideText","wind","windDir","windRTD","windStr","wingsForcesRTD","worldName","worldSize","worldToModel","worldToModelVisual","worldToScreen"],s={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:"define undef ifdef ifndef else endif include if",contains:[{begin:/\\\n/,relevance:0},e.inherit(r,{className:"string"}),{begin:/<[^\n>]*>/,end:/$/,illegal:"\\n"},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]};return{name:"SQF",case_insensitive:!0,keywords:{keyword:i,built_in:a,literal:o},contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.NUMBER_MODE,t,n,r,s],illegal:[/\$[^a-fA-F0-9]/,/\w\$/,/\?/,/@/,/ \| /,/[a-zA-Z_]\./,/\:\=/,/\[\:/]}}function Spn(e){const t=e.regex,n=["functions","model","data","parameters","quantities","transformed","generated"],r=["for","in","if","else","while","break","continue","return"],i=["array","tuple","complex","int","real","vector","complex_vector","ordered","positive_ordered","simplex","unit_vector","row_vector","complex_row_vector","matrix","complex_matrix","cholesky_factor_corr|10","cholesky_factor_cov|10","corr_matrix|10","cov_matrix|10","void"],o=["abs","acos","acosh","add_diag","algebra_solver","algebra_solver_newton","append_array","append_col","append_row","asin","asinh","atan","atan2","atanh","bessel_first_kind","bessel_second_kind","binary_log_loss","block","cbrt","ceil","chol2inv","cholesky_decompose","choose","col","cols","columns_dot_product","columns_dot_self","complex_schur_decompose","complex_schur_decompose_t","complex_schur_decompose_u","conj","cos","cosh","cov_exp_quad","crossprod","csr_extract","csr_extract_u","csr_extract_v","csr_extract_w","csr_matrix_times_vector","csr_to_dense_matrix","cumulative_sum","dae","dae_tol","determinant","diag_matrix","diagonal","diag_post_multiply","diag_pre_multiply","digamma","dims","distance","dot_product","dot_self","eigendecompose","eigendecompose_sym","eigenvalues","eigenvalues_sym","eigenvectors","eigenvectors_sym","erf","erfc","exp","exp2","expm1","falling_factorial","fdim","fft","fft2","floor","fma","fmax","fmin","fmod","gamma_p","gamma_q","generalized_inverse","get_imag","get_real","head","hmm_hidden_state_prob","hmm_marginal","hypot","identity_matrix","inc_beta","integrate_1d","integrate_ode","integrate_ode_adams","integrate_ode_bdf","integrate_ode_rk45","int_step","inv","inv_cloglog","inv_erfc","inverse","inverse_spd","inv_fft","inv_fft2","inv_inc_beta","inv_logit","inv_Phi","inv_sqrt","inv_square","is_inf","is_nan","lambert_w0","lambert_wm1","lbeta","lchoose","ldexp","lgamma","linspaced_array","linspaced_int_array","linspaced_row_vector","linspaced_vector","lmgamma","lmultiply","log","log1m","log1m_exp","log1m_inv_logit","log1p","log1p_exp","log_determinant","log_diff_exp","log_falling_factorial","log_inv_logit","log_inv_logit_diff","logit","log_mix","log_modified_bessel_first_kind","log_rising_factorial","log_softmax","log_sum_exp","machine_precision","map_rect","matrix_exp","matrix_exp_multiply","matrix_power","max","mdivide_left_spd","mdivide_left_tri_low","mdivide_right_spd","mdivide_right_tri_low","mean","min","modified_bessel_first_kind","modified_bessel_second_kind","multiply_lower_tri_self_transpose","negative_infinity","norm","norm1","norm2","not_a_number","num_elements","ode_adams","ode_adams_tol","ode_adjoint_tol_ctl","ode_bdf","ode_bdf_tol","ode_ckrk","ode_ckrk_tol","ode_rk45","ode_rk45_tol","one_hot_array","one_hot_int_array","one_hot_row_vector","one_hot_vector","ones_array","ones_int_array","ones_row_vector","ones_vector","owens_t","Phi","Phi_approx","polar","positive_infinity","pow","print","prod","proj","qr","qr_Q","qr_R","qr_thin","qr_thin_Q","qr_thin_R","quad_form","quad_form_diag","quad_form_sym","quantile","rank","reduce_sum","reject","rep_array","rep_matrix","rep_row_vector","rep_vector","reverse","rising_factorial","round","row","rows","rows_dot_product","rows_dot_self","scale_matrix_exp_multiply","sd","segment","sin","singular_values","sinh","size","softmax","sort_asc","sort_desc","sort_indices_asc","sort_indices_desc","sqrt","square","squared_distance","step","sub_col","sub_row","sum","svd","svd_U","svd_V","symmetrize_from_lower_tri","tail","tan","tanh","target","tcrossprod","tgamma","to_array_1d","to_array_2d","to_complex","to_int","to_matrix","to_row_vector","to_vector","trace","trace_gen_quad_form","trace_quad_form","trigamma","trunc","uniform_simplex","variance","zeros_array","zeros_int_array","zeros_row_vector"],a=["bernoulli","bernoulli_logit","bernoulli_logit_glm","beta","beta_binomial","beta_proportion","binomial","binomial_logit","categorical","categorical_logit","categorical_logit_glm","cauchy","chi_square","dirichlet","discrete_range","double_exponential","exp_mod_normal","exponential","frechet","gamma","gaussian_dlm_obs","gumbel","hmm_latent","hypergeometric","inv_chi_square","inv_gamma","inv_wishart","inv_wishart_cholesky","lkj_corr","lkj_corr_cholesky","logistic","loglogistic","lognormal","multi_gp","multi_gp_cholesky","multinomial","multinomial_logit","multi_normal","multi_normal_cholesky","multi_normal_prec","multi_student_cholesky_t","multi_student_t","multi_student_t_cholesky","neg_binomial","neg_binomial_2","neg_binomial_2_log","neg_binomial_2_log_glm","normal","normal_id_glm","ordered_logistic","ordered_logistic_glm","ordered_probit","pareto","pareto_type_2","poisson","poisson_log","poisson_log_glm","rayleigh","scaled_inv_chi_square","skew_double_exponential","skew_normal","std_normal","std_normal_log","student_t","uniform","von_mises","weibull","wiener","wishart","wishart_cholesky"],s=e.COMMENT(/\/\*/,/\*\//,{relevance:0,contains:[{scope:"doctag",match:/@(return|param)/}]}),l={scope:"meta",begin:/#include\b/,end:/$/,contains:[{match:/[a-z][a-z-._]+/,scope:"string"},e.C_LINE_COMMENT_MODE]},c=["lower","upper","offset","multiplier"];return{name:"Stan",aliases:["stanfuncs"],keywords:{$pattern:e.IDENT_RE,title:n,type:i,keyword:r,built_in:o},contains:[e.C_LINE_COMMENT_MODE,l,e.HASH_COMMENT_MODE,s,{scope:"built_in",match:/\s(pi|e|sqrt2|log2|log10)(?=\()/,relevance:0},{match:t.concat(/[<,]\s*/,t.either(...c),/\s*=/),keywords:c},{scope:"keyword",match:/\btarget(?=\s*\+=)/},{match:[/~\s*/,t.either(...a),/(?:\(\))/,/\s*T(?=\s*\[)/],scope:{2:"built_in",4:"keyword"}},{scope:"built_in",keywords:a,begin:t.concat(/\w*/,t.either(...a),/(_lpdf|_lupdf|_lpmf|_cdf|_lcdf|_lccdf|_qf)(?=\s*[\(.*\)])/)},{begin:[/~/,/\s*/,t.concat(t.either(...a),/(?=\s*[\(.*\)])/)],scope:{3:"built_in"}},{begin:[/~/,/\s*\w+(?=\s*[\(.*\)])/,"(?!.*/\b("+t.either(...a)+")\b)"],scope:{2:"title.function"}},{scope:"title.function",begin:/\w*(_lpdf|_lupdf|_lpmf|_cdf|_lcdf|_lccdf|_qf)(?=\s*[\(.*\)])/},{scope:"number",match:t.concat(/(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)/,/(?:[eE][+-]?\d+(?:_\d+)*)?i?(?!\w)/),relevance:0},{scope:"string",begin:/"/,end:/"/}]}}function Epn(e){return{name:"Stata",aliases:["do","ado"],case_insensitive:!0,keywords:"if else in foreach for forv forva forval forvalu forvalue forvalues by bys bysort xi quietly qui capture about ac ac_7 acprplot acprplot_7 adjust ado adopath adoupdate alpha ameans an ano anov anova anova_estat anova_terms anovadef aorder ap app appe appen append arch arch_dr arch_estat arch_p archlm areg areg_p args arima arima_dr arima_estat arima_p as asmprobit asmprobit_estat asmprobit_lf asmprobit_mfx__dlg asmprobit_p ass asse asser assert avplot avplot_7 avplots avplots_7 bcskew0 bgodfrey bias binreg bip0_lf biplot bipp_lf bipr_lf bipr_p biprobit bitest bitesti bitowt blogit bmemsize boot bootsamp bootstrap bootstrap_8 boxco_l boxco_p boxcox boxcox_6 boxcox_p bprobit br break brier bro brow brows browse brr brrstat bs bs_7 bsampl_w bsample bsample_7 bsqreg bstat bstat_7 bstat_8 bstrap bstrap_7 bubble bubbleplot ca ca_estat ca_p cabiplot camat canon canon_8 canon_8_p canon_estat canon_p cap caprojection capt captu captur capture cat cc cchart cchart_7 cci cd censobs_table centile cf char chdir checkdlgfiles checkestimationsample checkhlpfiles checksum chelp ci cii cl class classutil clear cli clis clist clo clog clog_lf clog_p clogi clogi_sw clogit clogit_lf clogit_p clogitp clogl_sw cloglog clonevar clslistarray cluster cluster_measures cluster_stop cluster_tree cluster_tree_8 clustermat cmdlog cnr cnre cnreg cnreg_p cnreg_sw cnsreg codebook collaps4 collapse colormult_nb colormult_nw compare compress conf confi confir confirm conren cons const constr constra constrai constrain constraint continue contract copy copyright copysource cor corc corr corr2data corr_anti corr_kmo corr_smc corre correl correla correlat correlate corrgram cou coun count cox cox_p cox_sw coxbase coxhaz coxvar cprplot cprplot_7 crc cret cretu cretur creturn cross cs cscript cscript_log csi ct ct_is ctset ctst_5 ctst_st cttost cumsp cumsp_7 cumul cusum cusum_7 cutil d|0 datasig datasign datasigna datasignat datasignatu datasignatur datasignature datetof db dbeta de dec deco decod decode deff des desc descr descri describ describe destring dfbeta dfgls dfuller di di_g dir dirstats dis discard disp disp_res disp_s displ displa display distinct do doe doed doedi doedit dotplot dotplot_7 dprobit drawnorm drop ds ds_util dstdize duplicates durbina dwstat dydx e|0 ed edi edit egen eivreg emdef en enc enco encod encode eq erase ereg ereg_lf ereg_p ereg_sw ereghet ereghet_glf ereghet_glf_sh ereghet_gp ereghet_ilf ereghet_ilf_sh ereghet_ip eret eretu eretur ereturn err erro error esize est est_cfexist est_cfname est_clickable est_expand est_hold est_table est_unhold est_unholdok estat estat_default estat_summ estat_vce_only esti estimates etodow etof etomdy ex exi exit expand expandcl fac fact facto factor factor_estat factor_p factor_pca_rotated factor_rotate factormat fcast fcast_compute fcast_graph fdades fdadesc fdadescr fdadescri fdadescrib fdadescribe fdasav fdasave fdause fh_st file open file read file close file filefilter fillin find_hlp_file findfile findit findit_7 fit fl fli flis flist for5_0 forest forestplot form forma format fpredict frac_154 frac_adj frac_chk frac_cox frac_ddp frac_dis frac_dv frac_in frac_mun frac_pp frac_pq frac_pv frac_wgt frac_xo fracgen fracplot fracplot_7 fracpoly fracpred fron_ex fron_hn fron_p fron_tn fron_tn2 frontier ftodate ftoe ftomdy ftowdate funnel funnelplot g|0 gamhet_glf gamhet_gp gamhet_ilf gamhet_ip gamma gamma_d2 gamma_p gamma_sw gammahet gdi_hexagon gdi_spokes ge gen gene gener genera generat generate genrank genstd genvmean gettoken gl gladder gladder_7 glim_l01 glim_l02 glim_l03 glim_l04 glim_l05 glim_l06 glim_l07 glim_l08 glim_l09 glim_l10 glim_l11 glim_l12 glim_lf glim_mu glim_nw1 glim_nw2 glim_nw3 glim_p glim_v1 glim_v2 glim_v3 glim_v4 glim_v5 glim_v6 glim_v7 glm glm_6 glm_p glm_sw glmpred glo glob globa global glogit glogit_8 glogit_p gmeans gnbre_lf gnbreg gnbreg_5 gnbreg_p gomp_lf gompe_sw gomper_p gompertz gompertzhet gomphet_glf gomphet_glf_sh gomphet_gp gomphet_ilf gomphet_ilf_sh gomphet_ip gphdot gphpen gphprint gprefs gprobi_p gprobit gprobit_8 gr gr7 gr_copy gr_current gr_db gr_describe gr_dir gr_draw gr_draw_replay gr_drop gr_edit gr_editviewopts gr_example gr_example2 gr_export gr_print gr_qscheme gr_query gr_read gr_rename gr_replay gr_save gr_set gr_setscheme gr_table gr_undo gr_use graph graph7 grebar greigen greigen_7 greigen_8 grmeanby grmeanby_7 gs_fileinfo gs_filetype gs_graphinfo gs_stat gsort gwood h|0 hadimvo hareg hausman haver he heck_d2 heckma_p heckman heckp_lf heckpr_p heckprob hel help hereg hetpr_lf hetpr_p hetprob hettest hexdump hilite hist hist_7 histogram hlogit hlu hmeans hotel hotelling hprobit hreg hsearch icd9 icd9_ff icd9p iis impute imtest inbase include inf infi infil infile infix inp inpu input ins insheet insp inspe inspec inspect integ inten intreg intreg_7 intreg_p intrg2_ll intrg_ll intrg_ll2 ipolate iqreg ir irf irf_create irfm iri is_svy is_svysum isid istdize ivprob_1_lf ivprob_lf ivprobit ivprobit_p ivreg ivreg_footnote ivtob_1_lf ivtob_lf ivtobit ivtobit_p jackknife jacknife jknife jknife_6 jknife_8 jkstat joinby kalarma1 kap kap_3 kapmeier kappa kapwgt kdensity kdensity_7 keep ksm ksmirnov ktau kwallis l|0 la lab labbe labbeplot labe label labelbook ladder levels levelsof leverage lfit lfit_p li lincom line linktest lis list lloghet_glf lloghet_glf_sh lloghet_gp lloghet_ilf lloghet_ilf_sh lloghet_ip llogi_sw llogis_p llogist llogistic llogistichet lnorm_lf lnorm_sw lnorma_p lnormal lnormalhet lnormhet_glf lnormhet_glf_sh lnormhet_gp lnormhet_ilf lnormhet_ilf_sh lnormhet_ip lnskew0 loadingplot loc loca local log logi logis_lf logistic logistic_p logit logit_estat logit_p loglogs logrank loneway lookfor lookup lowess lowess_7 lpredict lrecomp lroc lroc_7 lrtest ls lsens lsens_7 lsens_x lstat ltable ltable_7 ltriang lv lvr2plot lvr2plot_7 m|0 ma mac macr macro makecns man manova manova_estat manova_p manovatest mantel mark markin markout marksample mat mat_capp mat_order mat_put_rr mat_rapp mata mata_clear mata_describe mata_drop mata_matdescribe mata_matsave mata_matuse mata_memory mata_mlib mata_mosave mata_rename mata_which matalabel matcproc matlist matname matr matri matrix matrix_input__dlg matstrik mcc mcci md0_ md1_ md1debug_ md2_ md2debug_ mds mds_estat mds_p mdsconfig mdslong mdsmat mdsshepard mdytoe mdytof me_derd mean means median memory memsize menl meqparse mer merg merge meta mfp mfx mhelp mhodds minbound mixed_ll mixed_ll_reparm mkassert mkdir mkmat mkspline ml ml_5 ml_adjs ml_bhhhs ml_c_d ml_check ml_clear ml_cnt ml_debug ml_defd ml_e0 ml_e0_bfgs ml_e0_cycle ml_e0_dfp ml_e0i ml_e1 ml_e1_bfgs ml_e1_bhhh ml_e1_cycle ml_e1_dfp ml_e2 ml_e2_cycle ml_ebfg0 ml_ebfr0 ml_ebfr1 ml_ebh0q ml_ebhh0 ml_ebhr0 ml_ebr0i ml_ecr0i ml_edfp0 ml_edfr0 ml_edfr1 ml_edr0i ml_eds ml_eer0i ml_egr0i ml_elf ml_elf_bfgs ml_elf_bhhh ml_elf_cycle ml_elf_dfp ml_elfi ml_elfs ml_enr0i ml_enrr0 ml_erdu0 ml_erdu0_bfgs ml_erdu0_bhhh ml_erdu0_bhhhq ml_erdu0_cycle ml_erdu0_dfp ml_erdu0_nrbfgs ml_exde ml_footnote ml_geqnr ml_grad0 ml_graph ml_hbhhh ml_hd0 ml_hold ml_init ml_inv ml_log ml_max ml_mlout ml_mlout_8 ml_model ml_nb0 ml_opt ml_p ml_plot ml_query ml_rdgrd ml_repor ml_s_e ml_score ml_searc ml_technique ml_unhold mleval mlf_ mlmatbysum mlmatsum mlog mlogi mlogit mlogit_footnote mlogit_p mlopts mlsum mlvecsum mnl0_ mor more mov move mprobit mprobit_lf mprobit_p mrdu0_ mrdu1_ mvdecode mvencode mvreg mvreg_estat n|0 nbreg nbreg_al nbreg_lf nbreg_p nbreg_sw nestreg net newey newey_7 newey_p news nl nl_7 nl_9 nl_9_p nl_p nl_p_7 nlcom nlcom_p nlexp2 nlexp2_7 nlexp2a nlexp2a_7 nlexp3 nlexp3_7 nlgom3 nlgom3_7 nlgom4 nlgom4_7 nlinit nllog3 nllog3_7 nllog4 nllog4_7 nlog_rd nlogit nlogit_p nlogitgen nlogittree nlpred no nobreak noi nois noisi noisil noisily note notes notes_dlg nptrend numlabel numlist odbc old_ver olo olog ologi ologi_sw ologit ologit_p ologitp on one onew onewa oneway op_colnm op_comp op_diff op_inv op_str opr opro oprob oprob_sw oprobi oprobi_p oprobit oprobitp opts_exclusive order orthog orthpoly ou out outf outfi outfil outfile outs outsh outshe outshee outsheet ovtest pac pac_7 palette parse parse_dissim pause pca pca_8 pca_display pca_estat pca_p pca_rotate pcamat pchart pchart_7 pchi pchi_7 pcorr pctile pentium pergram pergram_7 permute permute_8 personal peto_st pkcollapse pkcross pkequiv pkexamine pkexamine_7 pkshape pksumm pksumm_7 pl plo plot plugin pnorm pnorm_7 poisgof poiss_lf poiss_sw poisso_p poisson poisson_estat post postclose postfile postutil pperron pr prais prais_e prais_e2 prais_p predict predictnl preserve print pro prob probi probit probit_estat probit_p proc_time procoverlay procrustes procrustes_estat procrustes_p profiler prog progr progra program prop proportion prtest prtesti pwcorr pwd q\\s qby qbys qchi qchi_7 qladder qladder_7 qnorm qnorm_7 qqplot qqplot_7 qreg qreg_c qreg_p qreg_sw qu quadchk quantile quantile_7 que quer query range ranksum ratio rchart rchart_7 rcof recast reclink recode reg reg3 reg3_p regdw regr regre regre_p2 regres regres_p regress regress_estat regriv_p remap ren rena renam rename renpfix repeat replace report reshape restore ret retu retur return rm rmdir robvar roccomp roccomp_7 roccomp_8 rocf_lf rocfit rocfit_8 rocgold rocplot rocplot_7 roctab roctab_7 rolling rologit rologit_p rot rota rotat rotate rotatemat rreg rreg_p ru run runtest rvfplot rvfplot_7 rvpplot rvpplot_7 sa safesum sample sampsi sav save savedresults saveold sc sca scal scala scalar scatter scm_mine sco scob_lf scob_p scobi_sw scobit scor score scoreplot scoreplot_help scree screeplot screeplot_help sdtest sdtesti se search separate seperate serrbar serrbar_7 serset set set_defaults sfrancia sh she shel shell shewhart shewhart_7 signestimationsample signrank signtest simul simul_7 simulate simulate_8 sktest sleep slogit slogit_d2 slogit_p smooth snapspan so sor sort spearman spikeplot spikeplot_7 spikeplt spline_x split sqreg sqreg_p sret sretu sretur sreturn ssc st st_ct st_hc st_hcd st_hcd_sh st_is st_issys st_note st_promo st_set st_show st_smpl st_subid stack statsby statsby_8 stbase stci stci_7 stcox stcox_estat stcox_fr stcox_fr_ll stcox_p stcox_sw stcoxkm stcoxkm_7 stcstat stcurv stcurve stcurve_7 stdes stem stepwise stereg stfill stgen stir stjoin stmc stmh stphplot stphplot_7 stphtest stphtest_7 stptime strate strate_7 streg streg_sw streset sts sts_7 stset stsplit stsum sttocc sttoct stvary stweib su suest suest_8 sum summ summa summar summari summariz summarize sunflower sureg survcurv survsum svar svar_p svmat svy svy_disp svy_dreg svy_est svy_est_7 svy_estat svy_get svy_gnbreg_p svy_head svy_header svy_heckman_p svy_heckprob_p svy_intreg_p svy_ivreg_p svy_logistic_p svy_logit_p svy_mlogit_p svy_nbreg_p svy_ologit_p svy_oprobit_p svy_poisson_p svy_probit_p svy_regress_p svy_sub svy_sub_7 svy_x svy_x_7 svy_x_p svydes svydes_8 svygen svygnbreg svyheckman svyheckprob svyintreg svyintreg_7 svyintrg svyivreg svylc svylog_p svylogit svymarkout svymarkout_8 svymean svymlog svymlogit svynbreg svyolog svyologit svyoprob svyoprobit svyopts svypois svypois_7 svypoisson svyprobit svyprobt svyprop svyprop_7 svyratio svyreg svyreg_p svyregress svyset svyset_7 svyset_8 svytab svytab_7 svytest svytotal sw sw_8 swcnreg swcox swereg swilk swlogis swlogit swologit swoprbt swpois swprobit swqreg swtobit swweib symmetry symmi symplot symplot_7 syntax sysdescribe sysdir sysuse szroeter ta tab tab1 tab2 tab_or tabd tabdi tabdis tabdisp tabi table tabodds tabodds_7 tabstat tabu tabul tabula tabulat tabulate te tempfile tempname tempvar tes test testnl testparm teststd tetrachoric time_it timer tis tob tobi tobit tobit_p tobit_sw token tokeni tokeniz tokenize tostring total translate translator transmap treat_ll treatr_p treatreg trim trimfill trnb_cons trnb_mean trpoiss_d2 trunc_ll truncr_p truncreg tsappend tset tsfill tsline tsline_ex tsreport tsrevar tsrline tsset tssmooth tsunab ttest ttesti tut_chk tut_wait tutorial tw tware_st two twoway twoway__fpfit_serset twoway__function_gen twoway__histogram_gen twoway__ipoint_serset twoway__ipoints_serset twoway__kdensity_gen twoway__lfit_serset twoway__normgen_gen twoway__pci_serset twoway__qfit_serset twoway__scatteri_serset twoway__sunflower_gen twoway_ksm_serset ty typ type typeof u|0 unab unabbrev unabcmd update us use uselabel var var_mkcompanion var_p varbasic varfcast vargranger varirf varirf_add varirf_cgraph varirf_create varirf_ctable varirf_describe varirf_dir varirf_drop varirf_erase varirf_graph varirf_ograph varirf_rename varirf_set varirf_table varlist varlmar varnorm varsoc varstable varstable_w varstable_w2 varwle vce vec vec_fevd vec_mkphi vec_p vec_p_w vecirf_create veclmar veclmar_w vecnorm vecnorm_w vecrank vecstable verinst vers versi versio version view viewsource vif vwls wdatetof webdescribe webseek webuse weib1_lf weib2_lf weib_lf weib_lf0 weibhet_glf weibhet_glf_sh weibhet_glfa weibhet_glfa_sh weibhet_gp weibhet_ilf weibhet_ilf_sh weibhet_ilfa weibhet_ilfa_sh weibhet_ip weibu_sw weibul_p weibull weibull_c weibull_s weibullhet wh whelp whi which whil while wilc_st wilcoxon win wind windo window winexec wntestb wntestb_7 wntestq xchart xchart_7 xcorr xcorr_7 xi xi_6 xmlsav xmlsave xmluse xpose xsh xshe xshel xshell xt_iis xt_tis xtab_p xtabond xtbin_p xtclog xtcloglog xtcloglog_8 xtcloglog_d2 xtcloglog_pa_p xtcloglog_re_p xtcnt_p xtcorr xtdata xtdes xtfront_p xtfrontier xtgee xtgee_elink xtgee_estat xtgee_makeivar xtgee_p xtgee_plink xtgls xtgls_p xthaus xthausman xtht_p xthtaylor xtile xtint_p xtintreg xtintreg_8 xtintreg_d2 xtintreg_p xtivp_1 xtivp_2 xtivreg xtline xtline_ex xtlogit xtlogit_8 xtlogit_d2 xtlogit_fe_p xtlogit_pa_p xtlogit_re_p xtmixed xtmixed_estat xtmixed_p xtnb_fe xtnb_lf xtnbreg xtnbreg_pa_p xtnbreg_refe_p xtpcse xtpcse_p xtpois xtpoisson xtpoisson_d2 xtpoisson_pa_p xtpoisson_refe_p xtpred xtprobit xtprobit_8 xtprobit_d2 xtprobit_re_p xtps_fe xtps_lf xtps_ren xtps_ren_8 xtrar_p xtrc xtrc_p xtrchh xtrefe_p xtreg xtreg_be xtreg_fe xtreg_ml xtreg_pa_p xtreg_re xtregar xtrere_p xtset xtsf_ll xtsf_llti xtsum xttab xttest0 xttobit xttobit_8 xttobit_p xttrans yx yxview__barlike_draw yxview_area_draw yxview_bar_draw yxview_dot_draw yxview_dropline_draw yxview_function_draw yxview_iarrow_draw yxview_ilabels_draw yxview_normal_draw yxview_pcarrow_draw yxview_pcbarrow_draw yxview_pccapsym_draw yxview_pcscatter_draw yxview_pcspike_draw yxview_rarea_draw yxview_rbar_draw yxview_rbarm_draw yxview_rcap_draw yxview_rcapsym_draw yxview_rconnected_draw yxview_rline_draw yxview_rscatter_draw yxview_rspike_draw yxview_spike_draw yxview_sunflower_draw zap_s zinb zinb_llf zinb_plf zip zip_llf zip_p zip_plf zt_ct_5 zt_hc_5 zt_hcd_5 zt_is_5 zt_iss_5 zt_sho_5 zt_smp_5 ztbase_5 ztcox_5 ztdes_5 ztereg_5 ztfill_5 ztgen_5 ztir_5 ztjoin_5 ztnb ztnb_p ztp ztp_p zts_5 ztset_5 ztspli_5 ztsum_5 zttoct_5 ztvary_5 ztweib_5",contains:[{className:"symbol",begin:/`[a-zA-Z0-9_]+'/},{className:"variable",begin:/\$\{?[a-zA-Z0-9_]+\}?/,relevance:0},{className:"string",variants:[{begin:`\`"[^\r
]*?"'`},{begin:`"[^\r
"]*"`}]},{className:"built_in",variants:[{begin:"\\b(abs|acos|asin|atan|atan2|atanh|ceil|cloglog|comb|cos|digamma|exp|floor|invcloglog|invlogit|ln|lnfact|lnfactorial|lngamma|log|log10|max|min|mod|reldif|round|sign|sin|sqrt|sum|tan|tanh|trigamma|trunc|betaden|Binomial|binorm|binormal|chi2|chi2tail|dgammapda|dgammapdada|dgammapdadx|dgammapdx|dgammapdxdx|F|Fden|Ftail|gammaden|gammap|ibeta|invbinomial|invchi2|invchi2tail|invF|invFtail|invgammap|invibeta|invnchi2|invnFtail|invnibeta|invnorm|invnormal|invttail|nbetaden|nchi2|nFden|nFtail|nibeta|norm|normal|normalden|normd|npnchi2|tden|ttail|uniform|abbrev|char|index|indexnot|length|lower|ltrim|match|plural|proper|real|regexm|regexr|regexs|reverse|rtrim|string|strlen|strlower|strltrim|strmatch|strofreal|strpos|strproper|strreverse|strrtrim|strtrim|strupper|subinstr|subinword|substr|trim|upper|word|wordcount|_caller|autocode|byteorder|chop|clip|cond|e|epsdouble|epsfloat|group|inlist|inrange|irecode|matrix|maxbyte|maxdouble|maxfloat|maxint|maxlong|mi|minbyte|mindouble|minfloat|minint|minlong|missing|r|recode|replay|return|s|scalar|d|date|day|dow|doy|halfyear|mdy|month|quarter|week|year|d|daily|dofd|dofh|dofm|dofq|dofw|dofy|h|halfyearly|hofd|m|mofd|monthly|q|qofd|quarterly|tin|twithin|w|weekly|wofd|y|yearly|yh|ym|yofd|yq|yw|cholesky|colnumb|colsof|corr|det|diag|diag0cnt|el|get|hadamard|I|inv|invsym|issym|issymmetric|J|matmissing|matuniform|mreldif|nullmat|rownumb|rowsof|sweep|syminv|trace|vec|vecdiag)(?=\\()"}]},e.COMMENT("^[ ]*\\*.*$",!1),e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]}}function Cpn(e){return{name:"STEP Part 21",aliases:["p21","step","stp"],case_insensitive:!0,keywords:{$pattern:"[A-Z_][A-Z0-9_.]*",keyword:["HEADER","ENDSEC","DATA"]},contains:[{className:"meta",begin:"ISO-10303-21;",relevance:10},{className:"meta",begin:"END-ISO-10303-21;",relevance:10},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.COMMENT("/\\*\\*!","\\*/"),e.C_NUMBER_MODE,e.inherit(e.APOS_STRING_MODE,{illegal:null}),e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),{className:"string",begin:"'",end:"'"},{className:"symbol",variants:[{begin:"#",end:"\\d+",illegal:"\\W"}]}]}}const wpn=e=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:e.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:e.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z_][A-Za-z0-9_-]*/}}),Tpn=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","p","q","quote","samp","section","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],xpn=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"],Opn=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"],Rpn=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"],Ipn=["align-content","align-items","align-self","all","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-repeat","background-size","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-decoration-break","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","content","content-visibility","counter-increment","counter-reset","cue","cue-after","cue-before","cursor","direction","display","empty-cells","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-size","font-size-adjust","font-smoothing","font-stretch","font-style","font-synthesis","font-variant","font-variant-caps","font-variant-east-asian","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","gap","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","inline-size","isolation","justify-content","left","letter-spacing","line-break","line-height","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-wrap","overflow-x","overflow-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page-break-after","page-break-before","page-break-inside","pause","pause-after","pause-before","perspective","perspective-origin","pointer-events","position","quotes","resize","rest","rest-after","rest-before","right","row-gap","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","speak","speak-as","src","tab-size","table-layout","text-align","text-align-all","text-align-last","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-style","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-transform","text-underline-position","top","transform","transform-box","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","unicode-bidi","vertical-align","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","z-index"].reverse();function Apn(e){const t=wpn(e),n="and or not only",r={className:"variable",begin:"\\$"+e.IDENT_RE},i=["charset","css","debug","extend","font-face","for","import","include","keyframes","media","mixin","page","warn","while"],o="(?=[.\\s\\n[:,(])";return{name:"Stylus",aliases:["styl"],case_insensitive:!1,keywords:"if else for in",illegal:"("+["\\?","(\\bReturn\\b)","(\\bEnd\\b)","(\\bend\\b)","(\\bdef\\b)",";","#\\s","\\*\\s","===\\s","\\|","%"].join("|")+")",contains:[e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,t.HEXCOLOR,{begin:"\\.[a-zA-Z][a-zA-Z0-9_-]*"+o,className:"selector-class"},{begin:"#[a-zA-Z][a-zA-Z0-9_-]*"+o,className:"selector-id"},{begin:"\\b("+Tpn.join("|")+")"+o,className:"selector-tag"},{className:"selector-pseudo",begin:"&?:("+Opn.join("|")+")"+o},{className:"selector-pseudo",begin:"&?:(:)?("+Rpn.join("|")+")"+o},t.ATTRIBUTE_SELECTOR_MODE,{className:"keyword",begin:/@media/,starts:{end:/[{;}]/,keywords:{$pattern:/[a-z-]+/,keyword:n,attribute:xpn.join(" ")},contains:[t.CSS_NUMBER_MODE]}},{className:"keyword",begin:"@((-(o|moz|ms|webkit)-)?("+i.join("|")+"))\\b"},r,t.CSS_NUMBER_MODE,{className:"function",begin:"^[a-zA-Z][a-zA-Z0-9_-]*\\(.*\\)",illegal:"[\\n]",returnBegin:!0,contains:[{className:"title",begin:"\\b[a-zA-Z][a-zA-Z0-9_-]*"},{className:"params",begin:/\(/,end:/\)/,contains:[t.HEXCOLOR,r,e.APOS_STRING_MODE,t.CSS_NUMBER_MODE,e.QUOTE_STRING_MODE]}]},t.CSS_VARIABLE,{className:"attribute",begin:"\\b("+Ipn.join("|")+")\\b",starts:{end:/;|$/,contains:[t.HEXCOLOR,r,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,t.CSS_NUMBER_MODE,e.C_BLOCK_COMMENT_MODE,t.IMPORTANT,t.FUNCTION_DISPATCH],illegal:/\./,relevance:0}},t.FUNCTION_DISPATCH]}}function Npn(e){return{name:"SubUnit",case_insensitive:!0,contains:[{className:"string",begin:`\\[
(multipart)?`,end:`\\]
`},{className:"string",begin:"\\d{4}-\\d{2}-\\d{2}(\\s+)\\d{2}:\\d{2}:\\d{2}.\\d+Z"},{className:"string",begin:"(\\+|-)\\d+"},{className:"keyword",relevance:10,variants:[{begin:"^(test|testing|success|successful|failure|error|skip|xfail|uxsuccess)(:?)\\s+(test)?"},{begin:"^progress(:?)(\\s+)?(pop|push)?"},{begin:"^tags:"},{begin:"^time:"}]}]}}function Mpn(e){return{name:"Tagger Script",contains:[{className:"comment",begin:/\$noop\(/,end:/\)/,contains:[{begin:/\\[()]/},{begin:/\(/,end:/\)/,contains:[{begin:/\\[()]/},"self"]}],relevance:10},{className:"keyword",begin:/\$[_a-zA-Z0-9]+(?=\()/},{className:"variable",begin:/%[_a-zA-Z0-9:]+%/},{className:"symbol",begin:/\\[\\nt$%,()]/},{className:"symbol",begin:/\\u[a-fA-F0-9]{4}/}]}}function kpn(e){return{name:"Test Anything Protocol",case_insensitive:!0,contains:[e.HASH_COMMENT_MODE,{className:"meta",variants:[{begin:"^TAP version (\\d+)$"},{begin:"^1\\.\\.(\\d+)$"}]},{begin:/---$/,end:"\\.\\.\\.$",subLanguage:"yaml",relevance:0},{className:"number",begin:" (\\d+) "},{className:"symbol",variants:[{begin:"^ok"},{begin:"^not ok"}]}]}}function Ppn(e){const t=e.regex,n=/[a-zA-Z_][a-zA-Z0-9_]*/,r={className:"number",variants:[e.BINARY_NUMBER_MODE,e.C_NUMBER_MODE]};return{name:"Tcl",aliases:["tk"],keywords:["after","append","apply","array","auto_execok","auto_import","auto_load","auto_mkindex","auto_mkindex_old","auto_qualify","auto_reset","bgerror","binary","break","catch","cd","chan","clock","close","concat","continue","dde","dict","encoding","eof","error","eval","exec","exit","expr","fblocked","fconfigure","fcopy","file","fileevent","filename","flush","for","foreach","format","gets","glob","global","history","http","if","incr","info","interp","join","lappend|10","lassign|10","lindex|10","linsert|10","list","llength|10","load","lrange|10","lrepeat|10","lreplace|10","lreverse|10","lsearch|10","lset|10","lsort|10","mathfunc","mathop","memory","msgcat","namespace","open","package","parray","pid","pkg::create","pkg_mkIndex","platform","platform::shell","proc","puts","pwd","read","refchan","regexp","registry","regsub|10","rename","return","safe","scan","seek","set","socket","source","split","string","subst","switch","tcl_endOfWord","tcl_findLibrary","tcl_startOfNextWord","tcl_startOfPreviousWord","tcl_wordBreakAfter","tcl_wordBreakBefore","tcltest","tclvars","tell","time","tm","trace","unknown","unload","unset","update","uplevel","upvar","variable","vwait","while"],contains:[e.COMMENT(";[ \\t]*#","$"),e.COMMENT("^[ \\t]*#","$"),{beginKeywords:"proc",end:"[\\{]",excludeEnd:!0,contains:[{className:"title",begin:"[ \\t\\n\\r]+(::)?[a-zA-Z_]((::)?[a-zA-Z0-9_])*",end:"[ \\t\\n\\r]",endsWithParent:!0,excludeEnd:!0}]},{className:"variable",variants:[{begin:t.concat(/\$/,t.optional(/::/),n,"(::",n,")*")},{begin:"\\$\\{(::)?[a-zA-Z_]((::)?[a-zA-Z0-9_])*",end:"\\}",contains:[r]}]},{className:"string",contains:[e.BACKSLASH_ESCAPE],variants:[e.inherit(e.QUOTE_STRING_MODE,{illegal:null})]},r]}}function Dpn(e){const t=["bool","byte","i16","i32","i64","double","string","binary"];return{name:"Thrift",keywords:{keyword:["namespace","const","typedef","struct","enum","service","exception","void","oneway","set","list","map","required","optional"],type:t,literal:"true false"},contains:[e.QUOTE_STRING_MODE,e.NUMBER_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"class",beginKeywords:"struct enum service exception",end:/\{/,illegal:/\n/,contains:[e.inherit(e.TITLE_MODE,{starts:{endsWithParent:!0,excludeEnd:!0}})]},{begin:"\\b(set|list|map)\\s*<",keywords:{type:[...t,"set","list","map"]},end:">",contains:["self"]}]}}function Lpn(e){const t={className:"number",begin:"[1-9][0-9]*",relevance:0},n={className:"symbol",begin:":[^\\]]+"},r={className:"built_in",begin:"(AR|P|PAYLOAD|PR|R|SR|RSR|LBL|VR|UALM|MESSAGE|UTOOL|UFRAME|TIMER|TIMER_OVERFLOW|JOINT_MAX_SPEED|RESUME_PROG|DIAG_REC)\\[",end:"\\]",contains:["self",t,n]},i={className:"built_in",begin:"(AI|AO|DI|DO|F|RI|RO|UI|UO|GI|GO|SI|SO)\\[",end:"\\]",contains:["self",t,e.QUOTE_STRING_MODE,n]};return{name:"TP",keywords:{keyword:["ABORT","ACC","ADJUST","AND","AP_LD","BREAK","CALL","CNT","COL","CONDITION","CONFIG","DA","DB","DIV","DETECT","ELSE","END","ENDFOR","ERR_NUM","ERROR_PROG","FINE","FOR","GP","GUARD","INC","IF","JMP","LINEAR_MAX_SPEED","LOCK","MOD","MONITOR","OFFSET","Offset","OR","OVERRIDE","PAUSE","PREG","PTH","RT_LD","RUN","SELECT","SKIP","Skip","TA","TB","TO","TOOL_OFFSET","Tool_Offset","UF","UT","UFRAME_NUM","UTOOL_NUM","UNLOCK","WAIT","X","Y","Z","W","P","R","STRLEN","SUBSTR","FINDSTR","VOFFSET","PROG","ATTR","MN","POS"],literal:["ON","OFF","max_speed","LPOS","JPOS","ENABLE","DISABLE","START","STOP","RESET"]},contains:[r,i,{className:"keyword",begin:"/(PROG|ATTR|MN|POS|END)\\b"},{className:"keyword",begin:"(CALL|RUN|POINT_LOGIC|LBL)\\b"},{className:"keyword",begin:"\\b(ACC|CNT|Skip|Offset|PSPD|RT_LD|AP_LD|Tool_Offset)"},{className:"number",begin:"\\d+(sec|msec|mm/sec|cm/min|inch/min|deg/sec|mm|in|cm)?\\b",relevance:0},e.COMMENT("//","[;$]"),e.COMMENT("!","[;$]"),e.COMMENT("--eg:","$"),e.QUOTE_STRING_MODE,{className:"string",begin:"'",end:"'"},e.C_NUMBER_MODE,{className:"variable",begin:"\\$[A-Za-z0-9_]+"}]}}function $pn(e){const t=e.regex,n=["absolute_url","asset|0","asset_version","attribute","block","constant","controller|0","country_timezones","csrf_token","cycle","date","dump","expression","form|0","form_end","form_errors","form_help","form_label","form_rest","form_row","form_start","form_widget","html_classes","include","is_granted","logout_path","logout_url","max","min","parent","path|0","random","range","relative_path","render","render_esi","source","template_from_string","url|0"],r=["abs","abbr_class","abbr_method","batch","capitalize","column","convert_encoding","country_name","currency_name","currency_symbol","data_uri","date","date_modify","default","escape","file_excerpt","file_link","file_relative","filter","first","format","format_args","format_args_as_text","format_currency","format_date","format_datetime","format_file","format_file_from_text","format_number","format_time","html_to_markdown","humanize","inky_to_html","inline_css","join","json_encode","keys","language_name","last","length","locale_name","lower","map","markdown","markdown_to_html","merge","nl2br","number_format","raw","reduce","replace","reverse","round","slice","slug","sort","spaceless","split","striptags","timezone_name","title","trans","transchoice","trim","u|0","upper","url_encode","yaml_dump","yaml_encode"];let i=["apply","autoescape","block","cache","deprecated","do","embed","extends","filter","flush","for","form_theme","from","if","import","include","macro","sandbox","set","stopwatch","trans","trans_default_domain","transchoice","use","verbatim","with"];i=i.concat(i.map(m=>`end${m}`));const o={scope:"string",variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/}]},a={scope:"number",match:/\d+/},s={begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,contains:[o,a]},l={beginKeywords:n.join(" "),keywords:{name:n},relevance:0,contains:[s]},c={match:/\|(?=[A-Za-z_]+:?)/,beginScope:"punctuation",relevance:0,contains:[{match:/[A-Za-z_]+:?/,keywords:r}]},u=(m,{relevance:g})=>({beginScope:{1:"template-tag",3:"name"},relevance:g||2,endScope:"template-tag",begin:[/\{%/,/\s*/,t.either(...m)],end:/%\}/,keywords:"in",contains:[c,l,o,a]}),d=/[a-z_]+/,f=u(i,{relevance:2}),h=u([d],{relevance:1});return{name:"Twig",aliases:["craftcms"],case_insensitive:!0,subLanguage:"xml",contains:[e.COMMENT(/\{#/,/#\}/),f,h,{className:"template-variable",begin:/\{\{/,end:/\}\}/,contains:["self",c,l,o,a]}]}}function Fpn(e){return{name:"Vala",keywords:{keyword:"char uchar unichar int uint long ulong short ushort int8 int16 int32 int64 uint8 uint16 uint32 uint64 float double bool struct enum string void weak unowned owned async signal static abstract interface override virtual delegate if while do for foreach else switch case break default return try catch public private protected internal using new this get set const stdout stdin stderr var",built_in:"DBus GLib CCode Gee Object Gtk Posix",literal:"false true null"},contains:[{className:"class",beginKeywords:"class interface namespace",end:/\{/,excludeEnd:!0,illegal:"[^,:\\n\\s\\.]",contains:[e.UNDERSCORE_TITLE_MODE]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"string",begin:'"""',end:'"""',relevance:5},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.C_NUMBER_MODE,{className:"meta",begin:"^#",end:"$"}]}}function Bpn(e){const t=e.regex,n=["lcase","month","vartype","instrrev","ubound","setlocale","getobject","rgb","getref","string","weekdayname","rnd","dateadd","monthname","now","day","minute","isarray","cbool","round","formatcurrency","conversions","csng","timevalue","second","year","space","abs","clng","timeserial","fixs","len","asc","isempty","maths","dateserial","atn","timer","isobject","filter","weekday","datevalue","ccur","isdate","instr","datediff","formatdatetime","replace","isnull","right","sgn","array","snumeric","log","cdbl","hex","chr","lbound","msgbox","ucase","getlocale","cos","cdate","cbyte","rtrim","join","hour","oct","typename","trim","strcomp","int","createobject","loadpicture","tan","formatnumber","mid","split","cint","sin","datepart","ltrim","sqr","time","derived","eval","date","formatpercent","exp","inputbox","left","ascw","chrw","regexp","cstr","err"],r=["server","response","request","scriptengine","scriptenginebuildversion","scriptengineminorversion","scriptenginemajorversion"],i={begin:t.concat(t.either(...n),"\\s*\\("),relevance:0,keywords:{built_in:n}};return{name:"VBScript",aliases:["vbs"],case_insensitive:!0,keywords:{keyword:["call","class","const","dim","do","loop","erase","execute","executeglobal","exit","for","each","next","function","if","then","else","on","error","option","explicit","new","private","property","let","get","public","randomize","redim","rem","select","case","set","stop","sub","while","wend","with","end","to","elseif","is","or","xor","and","not","class_initialize","class_terminate","default","preserve","in","me","byval","byref","step","resume","goto"],built_in:r,literal:["true","false","null","nothing","empty"]},illegal:"//",contains:[i,e.inherit(e.QUOTE_STRING_MODE,{contains:[{begin:'""'}]}),e.COMMENT(/'/,/$/,{relevance:0}),e.C_NUMBER_MODE]}}function jpn(e){return{name:"VBScript in HTML",subLanguage:"xml",contains:[{begin:"<%",end:"%>",subLanguage:"vbscript"}]}}function Hpn(e){const t=e.regex,n={$pattern:/\$?[\w]+(\$[\w]+)*/,keyword:["accept_on","alias","always","always_comb","always_ff","always_latch","and","assert","assign","assume","automatic","before","begin","bind","bins","binsof","bit","break","buf|0","bufif0","bufif1","byte","case","casex","casez","cell","chandle","checker","class","clocking","cmos","config","const","constraint","context","continue","cover","covergroup","coverpoint","cross","deassign","default","defparam","design","disable","dist","do","edge","else","end","endcase","endchecker","endclass","endclocking","endconfig","endfunction","endgenerate","endgroup","endinterface","endmodule","endpackage","endprimitive","endprogram","endproperty","endspecify","endsequence","endtable","endtask","enum","event","eventually","expect","export","extends","extern","final","first_match","for","force","foreach","forever","fork","forkjoin","function","generate|5","genvar","global","highz0","highz1","if","iff","ifnone","ignore_bins","illegal_bins","implements","implies","import","incdir","include","initial","inout","input","inside","instance","int","integer","interconnect","interface","intersect","join","join_any","join_none","large","let","liblist","library","local","localparam","logic","longint","macromodule","matches","medium","modport","module","nand","negedge","nettype","new","nexttime","nmos","nor","noshowcancelled","not","notif0","notif1","or","output","package","packed","parameter","pmos","posedge","primitive","priority","program","property","protected","pull0","pull1","pulldown","pullup","pulsestyle_ondetect","pulsestyle_onevent","pure","rand","randc","randcase","randsequence","rcmos","real","realtime","ref","reg","reject_on","release","repeat","restrict","return","rnmos","rpmos","rtran","rtranif0","rtranif1","s_always","s_eventually","s_nexttime","s_until","s_until_with","scalared","sequence","shortint","shortreal","showcancelled","signed","small","soft","solve","specify","specparam","static","string","strong","strong0","strong1","struct","super","supply0","supply1","sync_accept_on","sync_reject_on","table","tagged","task","this","throughout","time","timeprecision","timeunit","tran","tranif0","tranif1","tri","tri0","tri1","triand","trior","trireg","type","typedef","union","unique","unique0","unsigned","until","until_with","untyped","use","uwire","var","vectored","virtual","void","wait","wait_order","wand","weak","weak0","weak1","while","wildcard","wire","with","within","wor","xnor","xor"],literal:["null"],built_in:["$finish","$stop","$exit","$fatal","$error","$warning","$info","$realtime","$time","$printtimescale","$bitstoreal","$bitstoshortreal","$itor","$signed","$cast","$bits","$stime","$timeformat","$realtobits","$shortrealtobits","$rtoi","$unsigned","$asserton","$assertkill","$assertpasson","$assertfailon","$assertnonvacuouson","$assertoff","$assertcontrol","$assertpassoff","$assertfailoff","$assertvacuousoff","$isunbounded","$sampled","$fell","$changed","$past_gclk","$fell_gclk","$changed_gclk","$rising_gclk","$steady_gclk","$coverage_control","$coverage_get","$coverage_save","$set_coverage_db_name","$rose","$stable","$past","$rose_gclk","$stable_gclk","$future_gclk","$falling_gclk","$changing_gclk","$display","$coverage_get_max","$coverage_merge","$get_coverage","$load_coverage_db","$typename","$unpacked_dimensions","$left","$low","$increment","$clog2","$ln","$log10","$exp","$sqrt","$pow","$floor","$ceil","$sin","$cos","$tan","$countbits","$onehot","$isunknown","$fatal","$warning","$dimensions","$right","$high","$size","$asin","$acos","$atan","$atan2","$hypot","$sinh","$cosh","$tanh","$asinh","$acosh","$atanh","$countones","$onehot0","$error","$info","$random","$dist_chi_square","$dist_erlang","$dist_exponential","$dist_normal","$dist_poisson","$dist_t","$dist_uniform","$q_initialize","$q_remove","$q_exam","$async$and$array","$async$nand$array","$async$or$array","$async$nor$array","$sync$and$array","$sync$nand$array","$sync$or$array","$sync$nor$array","$q_add","$q_full","$psprintf","$async$and$plane","$async$nand$plane","$async$or$plane","$async$nor$plane","$sync$and$plane","$sync$nand$plane","$sync$or$plane","$sync$nor$plane","$system","$display","$displayb","$displayh","$displayo","$strobe","$strobeb","$strobeh","$strobeo","$write","$readmemb","$readmemh","$writememh","$value$plusargs","$dumpvars","$dumpon","$dumplimit","$dumpports","$dumpportson","$dumpportslimit","$writeb","$writeh","$writeo","$monitor","$monitorb","$monitorh","$monitoro","$writememb","$dumpfile","$dumpoff","$dumpall","$dumpflush","$dumpportsoff","$dumpportsall","$dumpportsflush","$fclose","$fdisplay","$fdisplayb","$fdisplayh","$fdisplayo","$fstrobe","$fstrobeb","$fstrobeh","$fstrobeo","$swrite","$swriteb","$swriteh","$swriteo","$fscanf","$fread","$fseek","$fflush","$feof","$fopen","$fwrite","$fwriteb","$fwriteh","$fwriteo","$fmonitor","$fmonitorb","$fmonitorh","$fmonitoro","$sformat","$sformatf","$fgetc","$ungetc","$fgets","$sscanf","$rewind","$ftell","$ferror"]},r=["__FILE__","__LINE__"],i=["begin_keywords","celldefine","default_nettype","default_decay_time","default_trireg_strength","define","delay_mode_distributed","delay_mode_path","delay_mode_unit","delay_mode_zero","else","elsif","end_keywords","endcelldefine","endif","ifdef","ifndef","include","line","nounconnected_drive","pragma","resetall","timescale","unconnected_drive","undef","undefineall"];return{name:"Verilog",aliases:["v","sv","svh"],case_insensitive:!1,keywords:n,contains:[e.C_BLOCK_COMMENT_MODE,e.C_LINE_COMMENT_MODE,e.QUOTE_STRING_MODE,{scope:"number",contains:[e.BACKSLASH_ESCAPE],variants:[{begin:/\b((\d+'([bhodBHOD]))[0-9xzXZa-fA-F_]+)/},{begin:/\B(('([bhodBHOD]))[0-9xzXZa-fA-F_]+)/},{begin:/\b[0-9][0-9_]*/,relevance:0}]},{scope:"variable",variants:[{begin:"#\\((?!parameter).+\\)"},{begin:"\\.\\w+",relevance:0}]},{scope:"variable.constant",match:t.concat(/`/,t.either(...r))},{scope:"meta",begin:t.concat(/`/,t.either(...i)),end:/$|\/\/|\/\*/,returnEnd:!0,keywords:i}]}}function Upn(e){const t="\\d(_|\\d)*",n="[eE][-+]?"+t,r=t+"(\\."+t+")?("+n+")?",i="\\w+",o="\\b("+(t+"#"+i+"(\\."+i+")?#("+n+")?")+"|"+r+")";return{name:"VHDL",case_insensitive:!0,keywords:{keyword:["abs","access","after","alias","all","and","architecture","array","assert","assume","assume_guarantee","attribute","begin","block","body","buffer","bus","case","component","configuration","constant","context","cover","disconnect","downto","default","else","elsif","end","entity","exit","fairness","file","for","force","function","generate","generic","group","guarded","if","impure","in","inertial","inout","is","label","library","linkage","literal","loop","map","mod","nand","new","next","nor","not","null","of","on","open","or","others","out","package","parameter","port","postponed","procedure","process","property","protected","pure","range","record","register","reject","release","rem","report","restrict","restrict_guarantee","return","rol","ror","select","sequence","severity","shared","signal","sla","sll","sra","srl","strong","subtype","then","to","transport","type","unaffected","units","until","use","variable","view","vmode","vprop","vunit","wait","when","while","with","xnor","xor"],built_in:["boolean","bit","character","integer","time","delay_length","natural","positive","string","bit_vector","file_open_kind","file_open_status","std_logic","std_logic_vector","unsigned","signed","boolean_vector","integer_vector","std_ulogic","std_ulogic_vector","unresolved_unsigned","u_unsigned","unresolved_signed","u_signed","real_vector","time_vector"],literal:["false","true","note","warning","error","failure","line","text","side","width"]},illegal:/\{/,contains:[e.C_BLOCK_COMMENT_MODE,e.COMMENT("--","$"),e.QUOTE_STRING_MODE,{className:"number",begin:o,relevance:0},{className:"string",begin:"'(U|X|0|1|Z|W|L|H|-)'",contains:[e.BACKSLASH_ESCAPE]},{className:"symbol",begin:"'[A-Za-z](_?[A-Za-z0-9])*",contains:[e.BACKSLASH_ESCAPE]}]}}function zpn(e){return{name:"Vim Script",keywords:{$pattern:/[!#@\w]+/,keyword:"N|0 P|0 X|0 a|0 ab abc abo al am an|0 ar arga argd arge argdo argg argl argu as au aug aun b|0 bN ba bad bd be bel bf bl bm bn bo bp br brea breaka breakd breakl bro bufdo buffers bun bw c|0 cN cNf ca cabc caddb cad caddf cal cat cb cc ccl cd ce cex cf cfir cgetb cgete cg changes chd che checkt cl cla clo cm cmapc cme cn cnew cnf cno cnorea cnoreme co col colo com comc comp con conf cope cp cpf cq cr cs cst cu cuna cunme cw delm deb debugg delc delf dif diffg diffo diffp diffpu diffs diffthis dig di dl dell dj dli do doautoa dp dr ds dsp e|0 ea ec echoe echoh echom echon el elsei em en endfo endf endt endw ene ex exe exi exu f|0 files filet fin fina fini fir fix fo foldc foldd folddoc foldo for fu go gr grepa gu gv ha helpf helpg helpt hi hid his ia iabc if ij il im imapc ime ino inorea inoreme int is isp iu iuna iunme j|0 ju k|0 keepa kee keepj lN lNf l|0 lad laddb laddf la lan lat lb lc lch lcl lcs le lefta let lex lf lfir lgetb lgete lg lgr lgrepa lh ll lla lli lmak lm lmapc lne lnew lnf ln loadk lo loc lockv lol lope lp lpf lr ls lt lu lua luad luaf lv lvimgrepa lw m|0 ma mak map mapc marks mat me menut mes mk mks mksp mkv mkvie mod mz mzf nbc nb nbs new nm nmapc nme nn nnoreme noa no noh norea noreme norm nu nun nunme ol o|0 om omapc ome on ono onoreme opt ou ounme ow p|0 profd prof pro promptr pc ped pe perld po popu pp pre prev ps pt ptN ptf ptj ptl ptn ptp ptr pts pu pw py3 python3 py3d py3f py pyd pyf quita qa rec red redi redr redraws reg res ret retu rew ri rightb rub rubyd rubyf rund ru rv sN san sa sal sav sb sbN sba sbf sbl sbm sbn sbp sbr scrip scripte scs se setf setg setl sf sfir sh sim sig sil sl sla sm smap smapc sme sn sni sno snor snoreme sor so spelld spe spelli spellr spellu spellw sp spr sre st sta startg startr star stopi stj sts sun sunm sunme sus sv sw sy synti sync tN tabN tabc tabdo tabe tabf tabfir tabl tabm tabnew tabn tabo tabp tabr tabs tab ta tags tc tcld tclf te tf th tj tl tm tn to tp tr try ts tu u|0 undoj undol una unh unl unlo unm unme uns up ve verb vert vim vimgrepa vi viu vie vm vmapc vme vne vn vnoreme vs vu vunme windo w|0 wN wa wh wi winc winp wn wp wq wqa ws wu wv x|0 xa xmapc xm xme xn xnoreme xu xunme y|0 z|0 ~ Next Print append abbreviate abclear aboveleft all amenu anoremenu args argadd argdelete argedit argglobal arglocal argument ascii autocmd augroup aunmenu buffer bNext ball badd bdelete behave belowright bfirst blast bmodified bnext botright bprevious brewind break breakadd breakdel breaklist browse bunload bwipeout change cNext cNfile cabbrev cabclear caddbuffer caddexpr caddfile call catch cbuffer cclose center cexpr cfile cfirst cgetbuffer cgetexpr cgetfile chdir checkpath checktime clist clast close cmap cmapclear cmenu cnext cnewer cnfile cnoremap cnoreabbrev cnoremenu copy colder colorscheme command comclear compiler continue confirm copen cprevious cpfile cquit crewind cscope cstag cunmap cunabbrev cunmenu cwindow delete delmarks debug debuggreedy delcommand delfunction diffupdate diffget diffoff diffpatch diffput diffsplit digraphs display deletel djump dlist doautocmd doautoall deletep drop dsearch dsplit edit earlier echo echoerr echohl echomsg else elseif emenu endif endfor endfunction endtry endwhile enew execute exit exusage file filetype find finally finish first fixdel fold foldclose folddoopen folddoclosed foldopen function global goto grep grepadd gui gvim hardcopy help helpfind helpgrep helptags highlight hide history insert iabbrev iabclear ijump ilist imap imapclear imenu inoremap inoreabbrev inoremenu intro isearch isplit iunmap iunabbrev iunmenu join jumps keepalt keepmarks keepjumps lNext lNfile list laddexpr laddbuffer laddfile last language later lbuffer lcd lchdir lclose lcscope left leftabove lexpr lfile lfirst lgetbuffer lgetexpr lgetfile lgrep lgrepadd lhelpgrep llast llist lmake lmap lmapclear lnext lnewer lnfile lnoremap loadkeymap loadview lockmarks lockvar lolder lopen lprevious lpfile lrewind ltag lunmap luado luafile lvimgrep lvimgrepadd lwindow move mark make mapclear match menu menutranslate messages mkexrc mksession mkspell mkvimrc mkview mode mzscheme mzfile nbclose nbkey nbsart next nmap nmapclear nmenu nnoremap nnoremenu noautocmd noremap nohlsearch noreabbrev noremenu normal number nunmap nunmenu oldfiles open omap omapclear omenu only onoremap onoremenu options ounmap ounmenu ownsyntax print profdel profile promptfind promptrepl pclose pedit perl perldo pop popup ppop preserve previous psearch ptag ptNext ptfirst ptjump ptlast ptnext ptprevious ptrewind ptselect put pwd py3do py3file python pydo pyfile quit quitall qall read recover redo redir redraw redrawstatus registers resize retab return rewind right rightbelow ruby rubydo rubyfile rundo runtime rviminfo substitute sNext sandbox sargument sall saveas sbuffer sbNext sball sbfirst sblast sbmodified sbnext sbprevious sbrewind scriptnames scriptencoding scscope set setfiletype setglobal setlocal sfind sfirst shell simalt sign silent sleep slast smagic smapclear smenu snext sniff snomagic snoremap snoremenu sort source spelldump spellgood spellinfo spellrepall spellundo spellwrong split sprevious srewind stop stag startgreplace startreplace startinsert stopinsert stjump stselect sunhide sunmap sunmenu suspend sview swapname syntax syntime syncbind tNext tabNext tabclose tabedit tabfind tabfirst tablast tabmove tabnext tabonly tabprevious tabrewind tag tcl tcldo tclfile tearoff tfirst throw tjump tlast tmenu tnext topleft tprevious trewind tselect tunmenu undo undojoin undolist unabbreviate unhide unlet unlockvar unmap unmenu unsilent update vglobal version verbose vertical vimgrep vimgrepadd visual viusage view vmap vmapclear vmenu vnew vnoremap vnoremenu vsplit vunmap vunmenu write wNext wall while winsize wincmd winpos wnext wprevious wqall wsverb wundo wviminfo xit xall xmapclear xmap xmenu xnoremap xnoremenu xunmap xunmenu yank",built_in:"synIDtrans atan2 range matcharg did_filetype asin feedkeys xor argv complete_check add getwinposx getqflist getwinposy screencol clearmatches empty extend getcmdpos mzeval garbagecollect setreg ceil sqrt diff_hlID inputsecret get getfperm getpid filewritable shiftwidth max sinh isdirectory synID system inputrestore winline atan visualmode inputlist tabpagewinnr round getregtype mapcheck hasmapto histdel argidx findfile sha256 exists toupper getcmdline taglist string getmatches bufnr strftime winwidth bufexists strtrans tabpagebuflist setcmdpos remote_read printf setloclist getpos getline bufwinnr float2nr len getcmdtype diff_filler luaeval resolve libcallnr foldclosedend reverse filter has_key bufname str2float strlen setline getcharmod setbufvar index searchpos shellescape undofile foldclosed setqflist buflisted strchars str2nr virtcol floor remove undotree remote_expr winheight gettabwinvar reltime cursor tabpagenr finddir localtime acos getloclist search tanh matchend rename gettabvar strdisplaywidth type abs py3eval setwinvar tolower wildmenumode log10 spellsuggest bufloaded synconcealed nextnonblank server2client complete settabwinvar executable input wincol setmatches getftype hlID inputsave searchpair or screenrow line settabvar histadd deepcopy strpart remote_peek and eval getftime submatch screenchar winsaveview matchadd mkdir screenattr getfontname libcall reltimestr getfsize winnr invert pow getbufline byte2line soundfold repeat fnameescape tagfiles sin strwidth spellbadword trunc maparg log lispindent hostname setpos globpath remote_foreground getchar synIDattr fnamemodify cscope_connection stridx winbufnr indent min complete_add nr2char searchpairpos inputdialog values matchlist items hlexists strridx browsedir expand fmod pathshorten line2byte argc count getwinvar glob foldtextresult getreg foreground cosh matchdelete has char2nr simplify histget searchdecl iconv winrestcmd pumvisible writefile foldlevel haslocaldir keys cos matchstr foldtext histnr tan tempname getcwd byteidx getbufvar islocked escape eventhandler remote_send serverlist winrestview synstack pyeval prevnonblank readfile cindent filereadable changenr exp"},illegal:/;/,contains:[e.NUMBER_MODE,{className:"string",begin:"'",end:"'",illegal:"\\n"},{className:"string",begin:/"(\\"|\n\\|[^"\n])*"/},e.COMMENT('"',"$"),{className:"variable",begin:/[bwtglsav]:[\w\d_]+/},{begin:[/\b(?:function|function!)/,/\s+/,e.IDENT_RE],className:{1:"keyword",3:"title"},end:"$",relevance:0,contains:[{className:"params",begin:"\\(",end:"\\)"}]},{className:"symbol",begin:/<[\w-]+>/}]}}function Vpn(e){const t=e.regex,n=/[a-zA-Z]\w*/,r=["as","break","class","construct","continue","else","for","foreign","if","import","in","is","return","static","var","while"],i=["true","false","null"],o=["this","super"],a=["Bool","Class","Fiber","Fn","List","Map","Null","Num","Object","Range","Sequence","String","System"],s=["-","~",/\*/,"%",/\.\.\./,/\.\./,/\+/,"<<",">>",">=","<=","<",">",/\^/,/!=/,/!/,/\bis\b/,"==","&&","&",/\|\|/,/\|/,/\?:/,"="],l={relevance:0,match:t.concat(/\b(?!(if|while|for|else|super)\b)/,n,/(?=\s*[({])/),className:"title.function"},c={match:t.concat(t.either(t.concat(/\b(?!(if|while|for|else|super)\b)/,n),t.either(...s)),/(?=\s*\([^)]+\)\s*\{)/),className:"title.function",starts:{contains:[{begin:/\(/,end:/\)/,contains:[{relevance:0,scope:"params",match:n}]}]}},u={variants:[{match:[/class\s+/,n,/\s+is\s+/,n]},{match:[/class\s+/,n]}],scope:{2:"title.class",4:"title.class.inherited"},keywords:r},d={relevance:0,match:t.either(...s),className:"operator"},f={className:"string",begin:/"""/,end:/"""/},h={className:"property",begin:t.concat(/\./,t.lookahead(n)),end:n,excludeBegin:!0,relevance:0},m={relevance:0,match:t.concat(/\b_/,n),scope:"variable"},g={relevance:0,match:/\b[A-Z]+[a-z]+([A-Z]+[a-z]+)*/,scope:"title.class",keywords:{_:a}},v=e.C_NUMBER_MODE,y={match:[n,/\s*/,/=/,/\s*/,/\(/,n,/\)\s*\{/],scope:{1:"title.function",3:"operator",6:"params"}},b=e.COMMENT(/\/\*\*/,/\*\//,{contains:[{match:/@[a-z]+/,scope:"doctag"},"self"]}),_={scope:"subst",begin:/%\(/,end:/\)/,contains:[v,g,l,m,d]},E={scope:"string",begin:/"/,end:/"/,contains:[_,{scope:"char.escape",variants:[{match:/\\\\|\\["0%abefnrtv]/},{match:/\\x[0-9A-F]{2}/},{match:/\\u[0-9A-F]{4}/},{match:/\\U[0-9A-F]{8}/}]}]};_.contains.push(E);const w=[...r,...o,...i],S={relevance:0,match:t.concat("\\b(?!",w.join("|"),"\\b)",/[a-zA-Z_]\w*(?:[?!]|\b)/),className:"variable"};return{name:"Wren",keywords:{keyword:r,"variable.language":o,literal:i},contains:[{scope:"comment",variants:[{begin:[/#!?/,/[A-Za-z_]+(?=\()/],beginScope:{},keywords:{literal:i},contains:[],end:/\)/},{begin:[/#!?/,/[A-Za-z_]+/],beginScope:{},end:/$/}]},v,E,f,b,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,g,u,y,c,l,d,m,h,S]}}function Gpn(e){return{name:"Intel x86 Assembly",case_insensitive:!0,keywords:{$pattern:"[.%]?"+e.IDENT_RE,keyword:"lock rep repe repz repne repnz xaquire xrelease bnd nobnd aaa aad aam aas adc add and arpl bb0_reset bb1_reset bound bsf bsr bswap bt btc btr bts call cbw cdq cdqe clc cld cli clts cmc cmp cmpsb cmpsd cmpsq cmpsw cmpxchg cmpxchg486 cmpxchg8b cmpxchg16b cpuid cpu_read cpu_write cqo cwd cwde daa das dec div dmint emms enter equ f2xm1 fabs fadd faddp fbld fbstp fchs fclex fcmovb fcmovbe fcmove fcmovnb fcmovnbe fcmovne fcmovnu fcmovu fcom fcomi fcomip fcomp fcompp fcos fdecstp fdisi fdiv fdivp fdivr fdivrp femms feni ffree ffreep fiadd ficom ficomp fidiv fidivr fild fimul fincstp finit fist fistp fisttp fisub fisubr fld fld1 fldcw fldenv fldl2e fldl2t fldlg2 fldln2 fldpi fldz fmul fmulp fnclex fndisi fneni fninit fnop fnsave fnstcw fnstenv fnstsw fpatan fprem fprem1 fptan frndint frstor fsave fscale fsetpm fsin fsincos fsqrt fst fstcw fstenv fstp fstsw fsub fsubp fsubr fsubrp ftst fucom fucomi fucomip fucomp fucompp fxam fxch fxtract fyl2x fyl2xp1 hlt ibts icebp idiv imul in inc incbin insb insd insw int int01 int1 int03 int3 into invd invpcid invlpg invlpga iret iretd iretq iretw jcxz jecxz jrcxz jmp jmpe lahf lar lds lea leave les lfence lfs lgdt lgs lidt lldt lmsw loadall loadall286 lodsb lodsd lodsq lodsw loop loope loopne loopnz loopz lsl lss ltr mfence monitor mov movd movq movsb movsd movsq movsw movsx movsxd movzx mul mwait neg nop not or out outsb outsd outsw packssdw packsswb packuswb paddb paddd paddsb paddsiw paddsw paddusb paddusw paddw pand pandn pause paveb pavgusb pcmpeqb pcmpeqd pcmpeqw pcmpgtb pcmpgtd pcmpgtw pdistib pf2id pfacc pfadd pfcmpeq pfcmpge pfcmpgt pfmax pfmin pfmul pfrcp pfrcpit1 pfrcpit2 pfrsqit1 pfrsqrt pfsub pfsubr pi2fd pmachriw pmaddwd pmagw pmulhriw pmulhrwa pmulhrwc pmulhw pmullw pmvgezb pmvlzb pmvnzb pmvzb pop popa popad popaw popf popfd popfq popfw por prefetch prefetchw pslld psllq psllw psrad psraw psrld psrlq psrlw psubb psubd psubsb psubsiw psubsw psubusb psubusw psubw punpckhbw punpckhdq punpckhwd punpcklbw punpckldq punpcklwd push pusha pushad pushaw pushf pushfd pushfq pushfw pxor rcl rcr rdshr rdmsr rdpmc rdtsc rdtscp ret retf retn rol ror rdm rsdc rsldt rsm rsts sahf sal salc sar sbb scasb scasd scasq scasw sfence sgdt shl shld shr shrd sidt sldt skinit smi smint smintold smsw stc std sti stosb stosd stosq stosw str sub svdc svldt svts swapgs syscall sysenter sysexit sysret test ud0 ud1 ud2b ud2 ud2a umov verr verw fwait wbinvd wrshr wrmsr xadd xbts xchg xlatb xlat xor cmove cmovz cmovne cmovnz cmova cmovnbe cmovae cmovnb cmovb cmovnae cmovbe cmovna cmovg cmovnle cmovge cmovnl cmovl cmovnge cmovle cmovng cmovc cmovnc cmovo cmovno cmovs cmovns cmovp cmovpe cmovnp cmovpo je jz jne jnz ja jnbe jae jnb jb jnae jbe jna jg jnle jge jnl jl jnge jle jng jc jnc jo jno js jns jpo jnp jpe jp sete setz setne setnz seta setnbe setae setnb setnc setb setnae setcset setbe setna setg setnle setge setnl setl setnge setle setng sets setns seto setno setpe setp setpo setnp addps addss andnps andps cmpeqps cmpeqss cmpleps cmpless cmpltps cmpltss cmpneqps cmpneqss cmpnleps cmpnless cmpnltps cmpnltss cmpordps cmpordss cmpunordps cmpunordss cmpps cmpss comiss cvtpi2ps cvtps2pi cvtsi2ss cvtss2si cvttps2pi cvttss2si divps divss ldmxcsr maxps maxss minps minss movaps movhps movlhps movlps movhlps movmskps movntps movss movups mulps mulss orps rcpps rcpss rsqrtps rsqrtss shufps sqrtps sqrtss stmxcsr subps subss ucomiss unpckhps unpcklps xorps fxrstor fxrstor64 fxsave fxsave64 xgetbv xsetbv xsave xsave64 xsaveopt xsaveopt64 xrstor xrstor64 prefetchnta prefetcht0 prefetcht1 prefetcht2 maskmovq movntq pavgb pavgw pextrw pinsrw pmaxsw pmaxub pminsw pminub pmovmskb pmulhuw psadbw pshufw pf2iw pfnacc pfpnacc pi2fw pswapd maskmovdqu clflush movntdq movnti movntpd movdqa movdqu movdq2q movq2dq paddq pmuludq pshufd pshufhw pshuflw pslldq psrldq psubq punpckhqdq punpcklqdq addpd addsd andnpd andpd cmpeqpd cmpeqsd cmplepd cmplesd cmpltpd cmpltsd cmpneqpd cmpneqsd cmpnlepd cmpnlesd cmpnltpd cmpnltsd cmpordpd cmpordsd cmpunordpd cmpunordsd cmppd comisd cvtdq2pd cvtdq2ps cvtpd2dq cvtpd2pi cvtpd2ps cvtpi2pd cvtps2dq cvtps2pd cvtsd2si cvtsd2ss cvtsi2sd cvtss2sd cvttpd2pi cvttpd2dq cvttps2dq cvttsd2si divpd divsd maxpd maxsd minpd minsd movapd movhpd movlpd movmskpd movupd mulpd mulsd orpd shufpd sqrtpd sqrtsd subpd subsd ucomisd unpckhpd unpcklpd xorpd addsubpd addsubps haddpd haddps hsubpd hsubps lddqu movddup movshdup movsldup clgi stgi vmcall vmclear vmfunc vmlaunch vmload vmmcall vmptrld vmptrst vmread vmresume vmrun vmsave vmwrite vmxoff vmxon invept invvpid pabsb pabsw pabsd palignr phaddw phaddd phaddsw phsubw phsubd phsubsw pmaddubsw pmulhrsw pshufb psignb psignw psignd extrq insertq movntsd movntss lzcnt blendpd blendps blendvpd blendvps dppd dpps extractps insertps movntdqa mpsadbw packusdw pblendvb pblendw pcmpeqq pextrb pextrd pextrq phminposuw pinsrb pinsrd pinsrq pmaxsb pmaxsd pmaxud pmaxuw pminsb pminsd pminud pminuw pmovsxbw pmovsxbd pmovsxbq pmovsxwd pmovsxwq pmovsxdq pmovzxbw pmovzxbd pmovzxbq pmovzxwd pmovzxwq pmovzxdq pmuldq pmulld ptest roundpd roundps roundsd roundss crc32 pcmpestri pcmpestrm pcmpistri pcmpistrm pcmpgtq popcnt getsec pfrcpv pfrsqrtv movbe aesenc aesenclast aesdec aesdeclast aesimc aeskeygenassist vaesenc vaesenclast vaesdec vaesdeclast vaesimc vaeskeygenassist vaddpd vaddps vaddsd vaddss vaddsubpd vaddsubps vandpd vandps vandnpd vandnps vblendpd vblendps vblendvpd vblendvps vbroadcastss vbroadcastsd vbroadcastf128 vcmpeq_ospd vcmpeqpd vcmplt_ospd vcmpltpd vcmple_ospd vcmplepd vcmpunord_qpd vcmpunordpd vcmpneq_uqpd vcmpneqpd vcmpnlt_uspd vcmpnltpd vcmpnle_uspd vcmpnlepd vcmpord_qpd vcmpordpd vcmpeq_uqpd vcmpnge_uspd vcmpngepd vcmpngt_uspd vcmpngtpd vcmpfalse_oqpd vcmpfalsepd vcmpneq_oqpd vcmpge_ospd vcmpgepd vcmpgt_ospd vcmpgtpd vcmptrue_uqpd vcmptruepd vcmplt_oqpd vcmple_oqpd vcmpunord_spd vcmpneq_uspd vcmpnlt_uqpd vcmpnle_uqpd vcmpord_spd vcmpeq_uspd vcmpnge_uqpd vcmpngt_uqpd vcmpfalse_ospd vcmpneq_ospd vcmpge_oqpd vcmpgt_oqpd vcmptrue_uspd vcmppd vcmpeq_osps vcmpeqps vcmplt_osps vcmpltps vcmple_osps vcmpleps vcmpunord_qps vcmpunordps vcmpneq_uqps vcmpneqps vcmpnlt_usps vcmpnltps vcmpnle_usps vcmpnleps vcmpord_qps vcmpordps vcmpeq_uqps vcmpnge_usps vcmpngeps vcmpngt_usps vcmpngtps vcmpfalse_oqps vcmpfalseps vcmpneq_oqps vcmpge_osps vcmpgeps vcmpgt_osps vcmpgtps vcmptrue_uqps vcmptrueps vcmplt_oqps vcmple_oqps vcmpunord_sps vcmpneq_usps vcmpnlt_uqps vcmpnle_uqps vcmpord_sps vcmpeq_usps vcmpnge_uqps vcmpngt_uqps vcmpfalse_osps vcmpneq_osps vcmpge_oqps vcmpgt_oqps vcmptrue_usps vcmpps vcmpeq_ossd vcmpeqsd vcmplt_ossd vcmpltsd vcmple_ossd vcmplesd vcmpunord_qsd vcmpunordsd vcmpneq_uqsd vcmpneqsd vcmpnlt_ussd vcmpnltsd vcmpnle_ussd vcmpnlesd vcmpord_qsd vcmpordsd vcmpeq_uqsd vcmpnge_ussd vcmpngesd vcmpngt_ussd vcmpngtsd vcmpfalse_oqsd vcmpfalsesd vcmpneq_oqsd vcmpge_ossd vcmpgesd vcmpgt_ossd vcmpgtsd vcmptrue_uqsd vcmptruesd vcmplt_oqsd vcmple_oqsd vcmpunord_ssd vcmpneq_ussd vcmpnlt_uqsd vcmpnle_uqsd vcmpord_ssd vcmpeq_ussd vcmpnge_uqsd vcmpngt_uqsd vcmpfalse_ossd vcmpneq_ossd vcmpge_oqsd vcmpgt_oqsd vcmptrue_ussd vcmpsd vcmpeq_osss vcmpeqss vcmplt_osss vcmpltss vcmple_osss vcmpless vcmpunord_qss vcmpunordss vcmpneq_uqss vcmpneqss vcmpnlt_usss vcmpnltss vcmpnle_usss vcmpnless vcmpord_qss vcmpordss vcmpeq_uqss vcmpnge_usss vcmpngess vcmpngt_usss vcmpngtss vcmpfalse_oqss vcmpfalsess vcmpneq_oqss vcmpge_osss vcmpgess vcmpgt_osss vcmpgtss vcmptrue_uqss vcmptruess vcmplt_oqss vcmple_oqss vcmpunord_sss vcmpneq_usss vcmpnlt_uqss vcmpnle_uqss vcmpord_sss vcmpeq_usss vcmpnge_uqss vcmpngt_uqss vcmpfalse_osss vcmpneq_osss vcmpge_oqss vcmpgt_oqss vcmptrue_usss vcmpss vcomisd vcomiss vcvtdq2pd vcvtdq2ps vcvtpd2dq vcvtpd2ps vcvtps2dq vcvtps2pd vcvtsd2si vcvtsd2ss vcvtsi2sd vcvtsi2ss vcvtss2sd vcvtss2si vcvttpd2dq vcvttps2dq vcvttsd2si vcvttss2si vdivpd vdivps vdivsd vdivss vdppd vdpps vextractf128 vextractps vhaddpd vhaddps vhsubpd vhsubps vinsertf128 vinsertps vlddqu vldqqu vldmxcsr vmaskmovdqu vmaskmovps vmaskmovpd vmaxpd vmaxps vmaxsd vmaxss vminpd vminps vminsd vminss vmovapd vmovaps vmovd vmovq vmovddup vmovdqa vmovqqa vmovdqu vmovqqu vmovhlps vmovhpd vmovhps vmovlhps vmovlpd vmovlps vmovmskpd vmovmskps vmovntdq vmovntqq vmovntdqa vmovntpd vmovntps vmovsd vmovshdup vmovsldup vmovss vmovupd vmovups vmpsadbw vmulpd vmulps vmulsd vmulss vorpd vorps vpabsb vpabsw vpabsd vpacksswb vpackssdw vpackuswb vpackusdw vpaddb vpaddw vpaddd vpaddq vpaddsb vpaddsw vpaddusb vpaddusw vpalignr vpand vpandn vpavgb vpavgw vpblendvb vpblendw vpcmpestri vpcmpestrm vpcmpistri vpcmpistrm vpcmpeqb vpcmpeqw vpcmpeqd vpcmpeqq vpcmpgtb vpcmpgtw vpcmpgtd vpcmpgtq vpermilpd vpermilps vperm2f128 vpextrb vpextrw vpextrd vpextrq vphaddw vphaddd vphaddsw vphminposuw vphsubw vphsubd vphsubsw vpinsrb vpinsrw vpinsrd vpinsrq vpmaddwd vpmaddubsw vpmaxsb vpmaxsw vpmaxsd vpmaxub vpmaxuw vpmaxud vpminsb vpminsw vpminsd vpminub vpminuw vpminud vpmovmskb vpmovsxbw vpmovsxbd vpmovsxbq vpmovsxwd vpmovsxwq vpmovsxdq vpmovzxbw vpmovzxbd vpmovzxbq vpmovzxwd vpmovzxwq vpmovzxdq vpmulhuw vpmulhrsw vpmulhw vpmullw vpmulld vpmuludq vpmuldq vpor vpsadbw vpshufb vpshufd vpshufhw vpshuflw vpsignb vpsignw vpsignd vpslldq vpsrldq vpsllw vpslld vpsllq vpsraw vpsrad vpsrlw vpsrld vpsrlq vptest vpsubb vpsubw vpsubd vpsubq vpsubsb vpsubsw vpsubusb vpsubusw vpunpckhbw vpunpckhwd vpunpckhdq vpunpckhqdq vpunpcklbw vpunpcklwd vpunpckldq vpunpcklqdq vpxor vrcpps vrcpss vrsqrtps vrsqrtss vroundpd vroundps vroundsd vroundss vshufpd vshufps vsqrtpd vsqrtps vsqrtsd vsqrtss vstmxcsr vsubpd vsubps vsubsd vsubss vtestps vtestpd vucomisd vucomiss vunpckhpd vunpckhps vunpcklpd vunpcklps vxorpd vxorps vzeroall vzeroupper pclmullqlqdq pclmulhqlqdq pclmullqhqdq pclmulhqhqdq pclmulqdq vpclmullqlqdq vpclmulhqlqdq vpclmullqhqdq vpclmulhqhqdq vpclmulqdq vfmadd132ps vfmadd132pd vfmadd312ps vfmadd312pd vfmadd213ps vfmadd213pd vfmadd123ps vfmadd123pd vfmadd231ps vfmadd231pd vfmadd321ps vfmadd321pd vfmaddsub132ps vfmaddsub132pd vfmaddsub312ps vfmaddsub312pd vfmaddsub213ps vfmaddsub213pd vfmaddsub123ps vfmaddsub123pd vfmaddsub231ps vfmaddsub231pd vfmaddsub321ps vfmaddsub321pd vfmsub132ps vfmsub132pd vfmsub312ps vfmsub312pd vfmsub213ps vfmsub213pd vfmsub123ps vfmsub123pd vfmsub231ps vfmsub231pd vfmsub321ps vfmsub321pd vfmsubadd132ps vfmsubadd132pd vfmsubadd312ps vfmsubadd312pd vfmsubadd213ps vfmsubadd213pd vfmsubadd123ps vfmsubadd123pd vfmsubadd231ps vfmsubadd231pd vfmsubadd321ps vfmsubadd321pd vfnmadd132ps vfnmadd132pd vfnmadd312ps vfnmadd312pd vfnmadd213ps vfnmadd213pd vfnmadd123ps vfnmadd123pd vfnmadd231ps vfnmadd231pd vfnmadd321ps vfnmadd321pd vfnmsub132ps vfnmsub132pd vfnmsub312ps vfnmsub312pd vfnmsub213ps vfnmsub213pd vfnmsub123ps vfnmsub123pd vfnmsub231ps vfnmsub231pd vfnmsub321ps vfnmsub321pd vfmadd132ss vfmadd132sd vfmadd312ss vfmadd312sd vfmadd213ss vfmadd213sd vfmadd123ss vfmadd123sd vfmadd231ss vfmadd231sd vfmadd321ss vfmadd321sd vfmsub132ss vfmsub132sd vfmsub312ss vfmsub312sd vfmsub213ss vfmsub213sd vfmsub123ss vfmsub123sd vfmsub231ss vfmsub231sd vfmsub321ss vfmsub321sd vfnmadd132ss vfnmadd132sd vfnmadd312ss vfnmadd312sd vfnmadd213ss vfnmadd213sd vfnmadd123ss vfnmadd123sd vfnmadd231ss vfnmadd231sd vfnmadd321ss vfnmadd321sd vfnmsub132ss vfnmsub132sd vfnmsub312ss vfnmsub312sd vfnmsub213ss vfnmsub213sd vfnmsub123ss vfnmsub123sd vfnmsub231ss vfnmsub231sd vfnmsub321ss vfnmsub321sd rdfsbase rdgsbase rdrand wrfsbase wrgsbase vcvtph2ps vcvtps2ph adcx adox rdseed clac stac xstore xcryptecb xcryptcbc xcryptctr xcryptcfb xcryptofb montmul xsha1 xsha256 llwpcb slwpcb lwpval lwpins vfmaddpd vfmaddps vfmaddsd vfmaddss vfmaddsubpd vfmaddsubps vfmsubaddpd vfmsubaddps vfmsubpd vfmsubps vfmsubsd vfmsubss vfnmaddpd vfnmaddps vfnmaddsd vfnmaddss vfnmsubpd vfnmsubps vfnmsubsd vfnmsubss vfrczpd vfrczps vfrczsd vfrczss vpcmov vpcomb vpcomd vpcomq vpcomub vpcomud vpcomuq vpcomuw vpcomw vphaddbd vphaddbq vphaddbw vphadddq vphaddubd vphaddubq vphaddubw vphaddudq vphadduwd vphadduwq vphaddwd vphaddwq vphsubbw vphsubdq vphsubwd vpmacsdd vpmacsdqh vpmacsdql vpmacssdd vpmacssdqh vpmacssdql vpmacsswd vpmacssww vpmacswd vpmacsww vpmadcsswd vpmadcswd vpperm vprotb vprotd vprotq vprotw vpshab vpshad vpshaq vpshaw vpshlb vpshld vpshlq vpshlw vbroadcasti128 vpblendd vpbroadcastb vpbroadcastw vpbroadcastd vpbroadcastq vpermd vpermpd vpermps vpermq vperm2i128 vextracti128 vinserti128 vpmaskmovd vpmaskmovq vpsllvd vpsllvq vpsravd vpsrlvd vpsrlvq vgatherdpd vgatherqpd vgatherdps vgatherqps vpgatherdd vpgatherqd vpgatherdq vpgatherqq xabort xbegin xend xtest andn bextr blci blcic blsi blsic blcfill blsfill blcmsk blsmsk blsr blcs bzhi mulx pdep pext rorx sarx shlx shrx tzcnt tzmsk t1mskc valignd valignq vblendmpd vblendmps vbroadcastf32x4 vbroadcastf64x4 vbroadcasti32x4 vbroadcasti64x4 vcompresspd vcompressps vcvtpd2udq vcvtps2udq vcvtsd2usi vcvtss2usi vcvttpd2udq vcvttps2udq vcvttsd2usi vcvttss2usi vcvtudq2pd vcvtudq2ps vcvtusi2sd vcvtusi2ss vexpandpd vexpandps vextractf32x4 vextractf64x4 vextracti32x4 vextracti64x4 vfixupimmpd vfixupimmps vfixupimmsd vfixupimmss vgetexppd vgetexpps vgetexpsd vgetexpss vgetmantpd vgetmantps vgetmantsd vgetmantss vinsertf32x4 vinsertf64x4 vinserti32x4 vinserti64x4 vmovdqa32 vmovdqa64 vmovdqu32 vmovdqu64 vpabsq vpandd vpandnd vpandnq vpandq vpblendmd vpblendmq vpcmpltd vpcmpled vpcmpneqd vpcmpnltd vpcmpnled vpcmpd vpcmpltq vpcmpleq vpcmpneqq vpcmpnltq vpcmpnleq vpcmpq vpcmpequd vpcmpltud vpcmpleud vpcmpnequd vpcmpnltud vpcmpnleud vpcmpud vpcmpequq vpcmpltuq vpcmpleuq vpcmpnequq vpcmpnltuq vpcmpnleuq vpcmpuq vpcompressd vpcompressq vpermi2d vpermi2pd vpermi2ps vpermi2q vpermt2d vpermt2pd vpermt2ps vpermt2q vpexpandd vpexpandq vpmaxsq vpmaxuq vpminsq vpminuq vpmovdb vpmovdw vpmovqb vpmovqd vpmovqw vpmovsdb vpmovsdw vpmovsqb vpmovsqd vpmovsqw vpmovusdb vpmovusdw vpmovusqb vpmovusqd vpmovusqw vpord vporq vprold vprolq vprolvd vprolvq vprord vprorq vprorvd vprorvq vpscatterdd vpscatterdq vpscatterqd vpscatterqq vpsraq vpsravq vpternlogd vpternlogq vptestmd vptestmq vptestnmd vptestnmq vpxord vpxorq vrcp14pd vrcp14ps vrcp14sd vrcp14ss vrndscalepd vrndscaleps vrndscalesd vrndscaless vrsqrt14pd vrsqrt14ps vrsqrt14sd vrsqrt14ss vscalefpd vscalefps vscalefsd vscalefss vscatterdpd vscatterdps vscatterqpd vscatterqps vshuff32x4 vshuff64x2 vshufi32x4 vshufi64x2 kandnw kandw kmovw knotw kortestw korw kshiftlw kshiftrw kunpckbw kxnorw kxorw vpbroadcastmb2q vpbroadcastmw2d vpconflictd vpconflictq vplzcntd vplzcntq vexp2pd vexp2ps vrcp28pd vrcp28ps vrcp28sd vrcp28ss vrsqrt28pd vrsqrt28ps vrsqrt28sd vrsqrt28ss vgatherpf0dpd vgatherpf0dps vgatherpf0qpd vgatherpf0qps vgatherpf1dpd vgatherpf1dps vgatherpf1qpd vgatherpf1qps vscatterpf0dpd vscatterpf0dps vscatterpf0qpd vscatterpf0qps vscatterpf1dpd vscatterpf1dps vscatterpf1qpd vscatterpf1qps prefetchwt1 bndmk bndcl bndcu bndcn bndmov bndldx bndstx sha1rnds4 sha1nexte sha1msg1 sha1msg2 sha256rnds2 sha256msg1 sha256msg2 hint_nop0 hint_nop1 hint_nop2 hint_nop3 hint_nop4 hint_nop5 hint_nop6 hint_nop7 hint_nop8 hint_nop9 hint_nop10 hint_nop11 hint_nop12 hint_nop13 hint_nop14 hint_nop15 hint_nop16 hint_nop17 hint_nop18 hint_nop19 hint_nop20 hint_nop21 hint_nop22 hint_nop23 hint_nop24 hint_nop25 hint_nop26 hint_nop27 hint_nop28 hint_nop29 hint_nop30 hint_nop31 hint_nop32 hint_nop33 hint_nop34 hint_nop35 hint_nop36 hint_nop37 hint_nop38 hint_nop39 hint_nop40 hint_nop41 hint_nop42 hint_nop43 hint_nop44 hint_nop45 hint_nop46 hint_nop47 hint_nop48 hint_nop49 hint_nop50 hint_nop51 hint_nop52 hint_nop53 hint_nop54 hint_nop55 hint_nop56 hint_nop57 hint_nop58 hint_nop59 hint_nop60 hint_nop61 hint_nop62 hint_nop63",built_in:"ip eip rip al ah bl bh cl ch dl dh sil dil bpl spl r8b r9b r10b r11b r12b r13b r14b r15b ax bx cx dx si di bp sp r8w r9w r10w r11w r12w r13w r14w r15w eax ebx ecx edx esi edi ebp esp eip r8d r9d r10d r11d r12d r13d r14d r15d rax rbx rcx rdx rsi rdi rbp rsp r8 r9 r10 r11 r12 r13 r14 r15 cs ds es fs gs ss st st0 st1 st2 st3 st4 st5 st6 st7 mm0 mm1 mm2 mm3 mm4 mm5 mm6 mm7 xmm0 xmm1 xmm2 xmm3 xmm4 xmm5 xmm6 xmm7 xmm8 xmm9 xmm10 xmm11 xmm12 xmm13 xmm14 xmm15 xmm16 xmm17 xmm18 xmm19 xmm20 xmm21 xmm22 xmm23 xmm24 xmm25 xmm26 xmm27 xmm28 xmm29 xmm30 xmm31 ymm0 ymm1 ymm2 ymm3 ymm4 ymm5 ymm6 ymm7 ymm8 ymm9 ymm10 ymm11 ymm12 ymm13 ymm14 ymm15 ymm16 ymm17 ymm18 ymm19 ymm20 ymm21 ymm22 ymm23 ymm24 ymm25 ymm26 ymm27 ymm28 ymm29 ymm30 ymm31 zmm0 zmm1 zmm2 zmm3 zmm4 zmm5 zmm6 zmm7 zmm8 zmm9 zmm10 zmm11 zmm12 zmm13 zmm14 zmm15 zmm16 zmm17 zmm18 zmm19 zmm20 zmm21 zmm22 zmm23 zmm24 zmm25 zmm26 zmm27 zmm28 zmm29 zmm30 zmm31 k0 k1 k2 k3 k4 k5 k6 k7 bnd0 bnd1 bnd2 bnd3 cr0 cr1 cr2 cr3 cr4 cr8 dr0 dr1 dr2 dr3 dr8 tr3 tr4 tr5 tr6 tr7 r0 r1 r2 r3 r4 r5 r6 r7 r0b r1b r2b r3b r4b r5b r6b r7b r0w r1w r2w r3w r4w r5w r6w r7w r0d r1d r2d r3d r4d r5d r6d r7d r0h r1h r2h r3h r0l r1l r2l r3l r4l r5l r6l r7l r8l r9l r10l r11l r12l r13l r14l r15l db dw dd dq dt ddq do dy dz resb resw resd resq rest resdq reso resy resz incbin equ times byte word dword qword nosplit rel abs seg wrt strict near far a32 ptr",meta:"%define %xdefine %+ %undef %defstr %deftok %assign %strcat %strlen %substr %rotate %elif %else %endif %if %ifmacro %ifctx %ifidn %ifidni %ifid %ifnum %ifstr %iftoken %ifempty %ifenv %error %warning %fatal %rep %endrep %include %push %pop %repl %pathsearch %depend %use %arg %stacksize %local %line %comment %endcomment .nolist __FILE__ __LINE__ __SECT__ __BITS__ __OUTPUT_FORMAT__ __DATE__ __TIME__ __DATE_NUM__ __TIME_NUM__ __UTC_DATE__ __UTC_TIME__ __UTC_DATE_NUM__ __UTC_TIME_NUM__ __PASS__ struc endstruc istruc at iend align alignb sectalign daz nodaz up down zero default option assume public bits use16 use32 use64 default section segment absolute extern global common cpu float __utf16__ __utf16le__ __utf16be__ __utf32__ __utf32le__ __utf32be__ __float8__ __float16__ __float32__ __float64__ __float80m__ __float80e__ __float128l__ __float128h__ __Infinity__ __QNaN__ __SNaN__ Inf NaN QNaN SNaN float8 float16 float32 float64 float80m float80e float128l float128h __FLOAT_DAZ__ __FLOAT_ROUND__ __FLOAT__"},contains:[e.COMMENT(";","$",{relevance:0}),{className:"number",variants:[{begin:"\\b(?:([0-9][0-9_]*)?\\.[0-9_]*(?:[eE][+-]?[0-9_]+)?|(0[Xx])?[0-9][0-9_]*(\\.[0-9_]*)?(?:[pP](?:[+-]?[0-9_]+)?)?)\\b",relevance:0},{begin:"\\$[0-9][0-9A-Fa-f]*",relevance:0},{begin:"\\b(?:[0-9A-Fa-f][0-9A-Fa-f_]*[Hh]|[0-9][0-9_]*[DdTt]?|[0-7][0-7_]*[QqOo]|[0-1][0-1_]*[BbYy])\\b"},{begin:"\\b(?:0[Xx][0-9A-Fa-f_]+|0[DdTt][0-9_]+|0[QqOo][0-7_]+|0[BbYy][0-1_]+)\\b"}]},e.QUOTE_STRING_MODE,{className:"string",variants:[{begin:"'",end:"[^\\\\]'"},{begin:"`",end:"[^\\\\]`"}],relevance:0},{className:"symbol",variants:[{begin:"^\\s*[A-Za-z._?][A-Za-z0-9_$#@~.?]*(:|\\s+label)"},{begin:"^\\s*%%[A-Za-z0-9_$#@~.?]*:"}],relevance:0},{className:"subst",begin:"%[0-9]+",relevance:0},{className:"subst",begin:"%!S+",relevance:0},{className:"meta",begin:/^\s*\.[\w_-]+/}]}}function Wpn(e){const t=["if","then","else","do","while","until","for","loop","import","with","is","as","where","when","by","data","constant","integer","real","text","name","boolean","symbol","infix","prefix","postfix","block","tree"],n=["in","mod","rem","and","or","xor","not","abs","sign","floor","ceil","sqrt","sin","cos","tan","asin","acos","atan","exp","expm1","log","log2","log10","log1p","pi","at","text_length","text_range","text_find","text_replace","contains","page","slide","basic_slide","title_slide","title","subtitle","fade_in","fade_out","fade_at","clear_color","color","line_color","line_width","texture_wrap","texture_transform","texture","scale_?x","scale_?y","scale_?z?","translate_?x","translate_?y","translate_?z?","rotate_?x","rotate_?y","rotate_?z?","rectangle","circle","ellipse","sphere","path","line_to","move_to","quad_to","curve_to","theme","background","contents","locally","time","mouse_?x","mouse_?y","mouse_buttons"],r=["ObjectLoader","Animate","MovieCredits","Slides","Filters","Shading","Materials","LensFlare","Mapping","VLCAudioVideo","StereoDecoder","PointCloud","NetworkAccess","RemoteControl","RegExp","ChromaKey","Snowfall","NodeJS","Speech","Charts"],i={$pattern:/[a-zA-Z][a-zA-Z0-9_?]*/,keyword:t,literal:["true","false","nil"],built_in:n.concat(r)},o={className:"string",begin:'"',end:'"',illegal:"\\n"},a={className:"string",begin:"'",end:"'",illegal:"\\n"},s={className:"string",begin:"<<",end:">>"},l={className:"number",begin:"[0-9]+#[0-9A-Z_]+(\\.[0-9-A-Z_]+)?#?([Ee][+-]?[0-9]+)?"},c={beginKeywords:"import",end:"$",keywords:i,contains:[o]},u={className:"function",begin:/[a-z][^\n]*->/,returnBegin:!0,end:/->/,contains:[e.inherit(e.TITLE_MODE,{starts:{endsWithParent:!0,keywords:i}})]};return{name:"XL",aliases:["tao"],keywords:i,contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,o,a,s,u,c,l,e.NUMBER_MODE]}}function qpn(e){return{name:"XQuery",aliases:["xpath","xq","xqm"],case_insensitive:!1,illegal:/(proc)|(abstract)|(extends)|(until)|(#)/,keywords:{$pattern:/[a-zA-Z$][a-zA-Z0-9_:-]*/,keyword:["module","schema","namespace","boundary-space","preserve","no-preserve","strip","default","collation","base-uri","ordering","context","decimal-format","decimal-separator","copy-namespaces","empty-sequence","except","exponent-separator","external","grouping-separator","inherit","no-inherit","lax","minus-sign","per-mille","percent","schema-attribute","schema-element","strict","unordered","zero-digit","declare","import","option","function","validate","variable","for","at","in","let","where","order","group","by","return","if","then","else","tumbling","sliding","window","start","when","only","end","previous","next","stable","ascending","descending","allowing","empty","greatest","least","some","every","satisfies","switch","case","typeswitch","try","catch","and","or","to","union","intersect","instance","of","treat","as","castable","cast","map","array","delete","insert","into","replace","value","rename","copy","modify","update"],type:["item","document-node","node","attribute","document","element","comment","namespace","namespace-node","processing-instruction","text","construction","xs:anyAtomicType","xs:untypedAtomic","xs:duration","xs:time","xs:decimal","xs:float","xs:double","xs:gYearMonth","xs:gYear","xs:gMonthDay","xs:gMonth","xs:gDay","xs:boolean","xs:base64Binary","xs:hexBinary","xs:anyURI","xs:QName","xs:NOTATION","xs:dateTime","xs:dateTimeStamp","xs:date","xs:string","xs:normalizedString","xs:token","xs:language","xs:NMTOKEN","xs:Name","xs:NCName","xs:ID","xs:IDREF","xs:ENTITY","xs:integer","xs:nonPositiveInteger","xs:negativeInteger","xs:long","xs:int","xs:short","xs:byte","xs:nonNegativeInteger","xs:unisignedLong","xs:unsignedInt","xs:unsignedShort","xs:unsignedByte","xs:positiveInteger","xs:yearMonthDuration","xs:dayTimeDuration"],literal:["eq","ne","lt","le","gt","ge","is","self::","child::","descendant::","descendant-or-self::","attribute::","following::","following-sibling::","parent::","ancestor::","ancestor-or-self::","preceding::","preceding-sibling::","NaN"]},contains:[{className:"variable",begin:/[$][\w\-:]+/},{className:"built_in",variants:[{begin:/\barray:/,end:/(?:append|filter|flatten|fold-(?:left|right)|for-each(?:-pair)?|get|head|insert-before|join|put|remove|reverse|size|sort|subarray|tail)\b/},{begin:/\bmap:/,end:/(?:contains|entry|find|for-each|get|keys|merge|put|remove|size)\b/},{begin:/\bmath:/,end:/(?:a(?:cos|sin|tan[2]?)|cos|exp(?:10)?|log(?:10)?|pi|pow|sin|sqrt|tan)\b/},{begin:/\bop:/,end:/\(/,excludeEnd:!0},{begin:/\bfn:/,end:/\(/,excludeEnd:!0},{begin:/[^</$:'"-]\b(?:abs|accumulator-(?:after|before)|adjust-(?:date(?:Time)?|time)-to-timezone|analyze-string|apply|available-(?:environment-variables|system-properties)|avg|base-uri|boolean|ceiling|codepoints?-(?:equal|to-string)|collation-key|collection|compare|concat|contains(?:-token)?|copy-of|count|current(?:-)?(?:date(?:Time)?|time|group(?:ing-key)?|output-uri|merge-(?:group|key))?data|dateTime|days?-from-(?:date(?:Time)?|duration)|deep-equal|default-(?:collation|language)|distinct-values|document(?:-uri)?|doc(?:-available)?|element-(?:available|with-id)|empty|encode-for-uri|ends-with|environment-variable|error|escape-html-uri|exactly-one|exists|false|filter|floor|fold-(?:left|right)|for-each(?:-pair)?|format-(?:date(?:Time)?|time|integer|number)|function-(?:arity|available|lookup|name)|generate-id|has-children|head|hours-from-(?:dateTime|duration|time)|id(?:ref)?|implicit-timezone|in-scope-prefixes|index-of|innermost|insert-before|iri-to-uri|json-(?:doc|to-xml)|key|lang|last|load-xquery-module|local-name(?:-from-QName)?|(?:lower|upper)-case|matches|max|minutes-from-(?:dateTime|duration|time)|min|months?-from-(?:date(?:Time)?|duration)|name(?:space-uri-?(?:for-prefix|from-QName)?)?|nilled|node-name|normalize-(?:space|unicode)|not|number|one-or-more|outermost|parse-(?:ietf-date|json)|path|position|(?:prefix-from-)?QName|random-number-generator|regex-group|remove|replace|resolve-(?:QName|uri)|reverse|root|round(?:-half-to-even)?|seconds-from-(?:dateTime|duration|time)|snapshot|sort|starts-with|static-base-uri|stream-available|string-?(?:join|length|to-codepoints)?|subsequence|substring-?(?:after|before)?|sum|system-property|tail|timezone-from-(?:date(?:Time)?|time)|tokenize|trace|trans(?:form|late)|true|type-available|unordered|unparsed-(?:entity|text)?-?(?:public-id|uri|available|lines)?|uri-collection|xml-to-json|years?-from-(?:date(?:Time)?|duration)|zero-or-one)\b/},{begin:/\blocal:/,end:/\(/,excludeEnd:!0},{begin:/\bzip:/,end:/(?:zip-file|(?:xml|html|text|binary)-entry| (?:update-)?entries)\b/},{begin:/\b(?:util|db|functx|app|xdmp|xmldb):/,end:/\(/,excludeEnd:!0}]},{className:"string",variants:[{begin:/"/,end:/"/,contains:[{begin:/""/,relevance:0}]},{begin:/'/,end:/'/,contains:[{begin:/''/,relevance:0}]}]},{className:"number",begin:/(\b0[0-7_]+)|(\b0x[0-9a-fA-F_]+)|(\b[1-9][0-9_]*(\.[0-9_]+)?)|[0_]\b/,relevance:0},{className:"comment",begin:/\(:/,end:/:\)/,relevance:10,contains:[{className:"doctag",begin:/@\w+/}]},{className:"meta",begin:/%[\w\-:]+/},{className:"title",begin:/\bxquery version "[13]\.[01]"\s?(?:encoding ".+")?/,end:/;/},{beginKeywords:"element attribute comment document processing-instruction",end:/\{/,excludeEnd:!0},{begin:/<([\w._:-]+)(\s+\S*=('|").*('|"))?>/,end:/(\/[\w._:-]+>)/,subLanguage:"xml",contains:[{begin:/\{/,end:/\}/,subLanguage:"xquery"},"self"]}]}}function Ypn(e){const t={className:"string",contains:[e.BACKSLASH_ESCAPE],variants:[e.inherit(e.APOS_STRING_MODE,{illegal:null}),e.inherit(e.QUOTE_STRING_MODE,{illegal:null})]},n=e.UNDERSCORE_TITLE_MODE,r={variants:[e.BINARY_NUMBER_MODE,e.C_NUMBER_MODE]},i="namespace class interface use extends function return abstract final public protected private static deprecated throw try catch Exception echo empty isset instanceof unset let var new const self require if else elseif switch case default do while loop for continue break likely unlikely __LINE__ __FILE__ __DIR__ __FUNCTION__ __CLASS__ __TRAIT__ __METHOD__ __NAMESPACE__ array boolean float double integer object resource string char long unsigned bool int uint ulong uchar true false null undefined";return{name:"Zephir",aliases:["zep"],keywords:i,contains:[e.C_LINE_COMMENT_MODE,e.COMMENT(/\/\*/,/\*\//,{contains:[{className:"doctag",begin:/@[A-Za-z]+/}]}),{className:"string",begin:/<<<['"]?\w+['"]?$/,end:/^\w+;/,contains:[e.BACKSLASH_ESCAPE]},{begin:/(::|->)+[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*/},{className:"function",beginKeywords:"function fn",end:/[;{]/,excludeEnd:!0,illegal:/\$|\[|%/,contains:[n,{className:"params",begin:/\(/,end:/\)/,keywords:i,contains:["self",e.C_BLOCK_COMMENT_MODE,t,r]}]},{className:"class",beginKeywords:"class interface",end:/\{/,excludeEnd:!0,illegal:/[:($"]/,contains:[{beginKeywords:"extends implements"},n]},{beginKeywords:"namespace",end:/;/,illegal:/[.']/,contains:[n]},{beginKeywords:"use",end:/;/,contains:[n]},{begin:/=>/},t,r]}}function Kpn(e){const t=e.regex,n=e.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),r="decltype\\(auto\\)",i="[a-zA-Z_]\\w*::",o="(?!struct)("+r+"|"+t.optional(i)+"[a-zA-Z_]\\w*"+t.optional("<[^<>]+>")+")",a={className:"type",begin:"\\b[a-z\\d_]*_t\\b"},s={className:"string",variants:[{begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE]},{begin:"(u8?|U|L)?'(\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)|.)",end:"'",illegal:"."},e.END_SAME_AS_BEGIN({begin:/(?:u8?|U|L)?R"([^()\\ ]{0,16})\(/,end:/\)([^()\\ ]{0,16})"/})]},l={className:"number",variants:[{begin:"\\b(0b[01']+)"},{begin:"(-?)\\b([\\d']+(\\.[\\d']*)?|\\.[\\d']+)((ll|LL|l|L)(u|U)?|(u|U)(ll|LL|l|L)?|f|F|b|B)"},{begin:"(-?)(\\b0[xX][a-fA-F0-9']+|(\\b[\\d']+(\\.[\\d']*)?|\\.[\\d']+)([eE][-+]?[\\d']+)?)"}],relevance:0},c={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma _Pragma ifdef ifndef include"},contains:[{begin:/\\\n/,relevance:0},e.inherit(s,{className:"string"}),{className:"string",begin:/<.*?>/},n,e.C_BLOCK_COMMENT_MODE]},u={className:"title",begin:t.optional(i)+e.IDENT_RE,relevance:0},d=t.optional(i)+e.IDENT_RE+"\\s*\\(",f=["alignas","alignof","and","and_eq","asm","atomic_cancel","atomic_commit","atomic_noexcept","auto","bitand","bitor","break","case","catch","class","co_await","co_return","co_yield","compl","concept","const_cast|10","consteval","constexpr","constinit","continue","decltype","default","delete","do","dynamic_cast|10","else","enum","explicit","export","extern","false","final","for","friend","goto","if","import","inline","module","mutable","namespace","new","noexcept","not","not_eq","nullptr","operator","or","or_eq","override","private","protected","public","reflexpr","register","reinterpret_cast|10","requires","return","sizeof","static_assert","static_cast|10","struct","switch","synchronized","template","this","thread_local","throw","transaction_safe","transaction_safe_dynamic","true","try","typedef","typeid","typename","union","using","virtual","volatile","while","xor","xor_eq"],h=["bool","char","char16_t","char32_t","char8_t","double","float","int","long","short","void","wchar_t","unsigned","signed","const","static"],m=["any","auto_ptr","barrier","binary_semaphore","bitset","complex","condition_variable","condition_variable_any","counting_semaphore","deque","false_type","future","imaginary","initializer_list","istringstream","jthread","latch","lock_guard","multimap","multiset","mutex","optional","ostringstream","packaged_task","pair","promise","priority_queue","queue","recursive_mutex","recursive_timed_mutex","scoped_lock","set","shared_future","shared_lock","shared_mutex","shared_timed_mutex","shared_ptr","stack","string_view","stringstream","timed_mutex","thread","true_type","tuple","unique_lock","unique_ptr","unordered_map","unordered_multimap","unordered_multiset","unordered_set","variant","vector","weak_ptr","wstring","wstring_view"],g=["abort","abs","acos","apply","as_const","asin","atan","atan2","calloc","ceil","cerr","cin","clog","cos","cosh","cout","declval","endl","exchange","exit","exp","fabs","floor","fmod","forward","fprintf","fputs","free","frexp","fscanf","future","invoke","isalnum","isalpha","iscntrl","isdigit","isgraph","islower","isprint","ispunct","isspace","isupper","isxdigit","labs","launder","ldexp","log","log10","make_pair","make_shared","make_shared_for_overwrite","make_tuple","make_unique","malloc","memchr","memcmp","memcpy","memset","modf","move","pow","printf","putchar","puts","realloc","scanf","sin","sinh","snprintf","sprintf","sqrt","sscanf","std","stderr","stdin","stdout","strcat","strchr","strcmp","strcpy","strcspn","strlen","strncat","strncmp","strncpy","strpbrk","strrchr","strspn","strstr","swap","tan","tanh","terminate","to_underlying","tolower","toupper","vfprintf","visit","vprintf","vsprintf"],v={type:h,keyword:f,literal:["NULL","false","nullopt","nullptr","true"],built_in:["_Pragma"],_type_hints:m},y={className:"function.dispatch",relevance:0,keywords:{_hint:g},begin:t.concat(/\b/,/(?!decltype)/,/(?!if)/,/(?!for)/,/(?!switch)/,/(?!while)/,e.IDENT_RE,t.lookahead(/(<[^<>]+>|)\s*\(/))},b=[y,c,a,n,e.C_BLOCK_COMMENT_MODE,l,s],_={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:v,contains:b.concat([{begin:/\(/,end:/\)/,keywords:v,contains:b.concat(["self"]),relevance:0}]),relevance:0},E={className:"function",begin:"("+o+"[\\*&\\s]+)+"+d,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:v,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:r,keywords:v,relevance:0},{begin:d,returnBegin:!0,contains:[u],relevance:0},{begin:/::/,relevance:0},{begin:/:/,endsWithParent:!0,contains:[s,l]},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:v,relevance:0,contains:[n,e.C_BLOCK_COMMENT_MODE,s,l,a,{begin:/\(/,end:/\)/,keywords:v,relevance:0,contains:["self",n,e.C_BLOCK_COMMENT_MODE,s,l,a]}]},a,n,e.C_BLOCK_COMMENT_MODE,c]};return{name:"C++",aliases:["cc","c++","h++","hpp","hh","hxx","cxx"],keywords:v,illegal:"</",classNameAliases:{"function.dispatch":"built_in"},contains:[].concat(_,E,y,b,[c,{begin:"\\b(deque|list|queue|priority_queue|pair|stack|vector|map|set|bitset|multiset|multimap|unordered_map|unordered_set|unordered_multiset|unordered_multimap|array|tuple|optional|variant|function)\\s*<(?!<)",end:">",keywords:v,contains:["self",a]},{begin:e.IDENT_RE+"::",keywords:v},{match:[/\b(?:enum(?:\s+(?:class|struct))?|class|struct|union)/,/\s+/,/\w+/],className:{1:"keyword",3:"title.class"}}])}}function Qpn(e){const t={type:["boolean","byte","word","String"],built_in:["KeyboardController","MouseController","SoftwareSerial","EthernetServer","EthernetClient","LiquidCrystal","RobotControl","GSMVoiceCall","EthernetUDP","EsploraTFT","HttpClient","RobotMotor","WiFiClient","GSMScanner","FileSystem","Scheduler","GSMServer","YunClient","YunServer","IPAddress","GSMClient","GSMModem","Keyboard","Ethernet","Console","GSMBand","Esplora","Stepper","Process","WiFiUDP","GSM_SMS","Mailbox","USBHost","Firmata","PImage","Client","Server","GSMPIN","FileIO","Bridge","Serial","EEPROM","Stream","Mouse","Audio","Servo","File","Task","GPRS","WiFi","Wire","TFT","GSM","SPI","SD"],_hints:["setup","loop","runShellCommandAsynchronously","analogWriteResolution","retrieveCallingNumber","printFirmwareVersion","analogReadResolution","sendDigitalPortPair","noListenOnLocalhost","readJoystickButton","setFirmwareVersion","readJoystickSwitch","scrollDisplayRight","getVoiceCallStatus","scrollDisplayLeft","writeMicroseconds","delayMicroseconds","beginTransmission","getSignalStrength","runAsynchronously","getAsynchronously","listenOnLocalhost","getCurrentCarrier","readAccelerometer","messageAvailable","sendDigitalPorts","lineFollowConfig","countryNameWrite","runShellCommand","readStringUntil","rewindDirectory","readTemperature","setClockDivider","readLightSensor","endTransmission","analogReference","detachInterrupt","countryNameRead","attachInterrupt","encryptionType","readBytesUntil","robotNameWrite","readMicrophone","robotNameRead","cityNameWrite","userNameWrite","readJoystickY","readJoystickX","mouseReleased","openNextFile","scanNetworks","noInterrupts","digitalWrite","beginSpeaker","mousePressed","isActionDone","mouseDragged","displayLogos","noAutoscroll","addParameter","remoteNumber","getModifiers","keyboardRead","userNameRead","waitContinue","processInput","parseCommand","printVersion","readNetworks","writeMessage","blinkVersion","cityNameRead","readMessage","setDataMode","parsePacket","isListening","setBitOrder","beginPacket","isDirectory","motorsWrite","drawCompass","digitalRead","clearScreen","serialEvent","rightToLeft","setTextSize","leftToRight","requestFrom","keyReleased","compassRead","analogWrite","interrupts","WiFiServer","disconnect","playMelody","parseFloat","autoscroll","getPINUsed","setPINUsed","setTimeout","sendAnalog","readSlider","analogRead","beginWrite","createChar","motorsStop","keyPressed","tempoWrite","readButton","subnetMask","debugPrint","macAddress","writeGreen","randomSeed","attachGPRS","readString","sendString","remotePort","releaseAll","mouseMoved","background","getXChange","getYChange","answerCall","getResult","voiceCall","endPacket","constrain","getSocket","writeJSON","getButton","available","connected","findUntil","readBytes","exitValue","readGreen","writeBlue","startLoop","IPAddress","isPressed","sendSysex","pauseMode","gatewayIP","setCursor","getOemKey","tuneWrite","noDisplay","loadImage","switchPIN","onRequest","onReceive","changePIN","playFile","noBuffer","parseInt","overflow","checkPIN","knobRead","beginTFT","bitClear","updateIR","bitWrite","position","writeRGB","highByte","writeRed","setSpeed","readBlue","noStroke","remoteIP","transfer","shutdown","hangCall","beginSMS","endWrite","attached","maintain","noCursor","checkReg","checkPUK","shiftOut","isValid","shiftIn","pulseIn","connect","println","localIP","pinMode","getIMEI","display","noBlink","process","getBand","running","beginSD","drawBMP","lowByte","setBand","release","bitRead","prepare","pointTo","readRed","setMode","noFill","remove","listen","stroke","detach","attach","noTone","exists","buffer","height","bitSet","circle","config","cursor","random","IRread","setDNS","endSMS","getKey","micros","millis","begin","print","write","ready","flush","width","isPIN","blink","clear","press","mkdir","rmdir","close","point","yield","image","BSSID","click","delay","read","text","move","peek","beep","rect","line","open","seek","fill","size","turn","stop","home","find","step","tone","sqrt","RSSI","SSID","end","bit","tan","cos","sin","pow","map","abs","max","min","get","run","put"],literal:["DIGITAL_MESSAGE","FIRMATA_STRING","ANALOG_MESSAGE","REPORT_DIGITAL","REPORT_ANALOG","INPUT_PULLUP","SET_PIN_MODE","INTERNAL2V56","SYSTEM_RESET","LED_BUILTIN","INTERNAL1V1","SYSEX_START","INTERNAL","EXTERNAL","DEFAULT","OUTPUT","INPUT","HIGH","LOW"]},n=Kpn(e),r=n.keywords;return r.type=[...r.type,...t.type],r.literal=[...r.literal,...t.literal],r.built_in=[...r.built_in,...t.built_in],r._hints=t._hints,n.name="Arduino",n.aliases=["ino"],n.supersetOf="cpp",n}function Xpn(e){const t=e.regex,n={},r={begin:/\$\{/,end:/\}/,contains:["self",{begin:/:-/,contains:[n]}]};Object.assign(n,{className:"variable",variants:[{begin:t.concat(/\$[\w\d#@][\w\d_]*/,"(?![\\w\\d])(?![$])")},r]});const i={className:"subst",begin:/\$\(/,end:/\)/,contains:[e.BACKSLASH_ESCAPE]},o={begin:/<<-?\s*(?=\w+)/,starts:{contains:[e.END_SAME_AS_BEGIN({begin:/(\w+)/,end:/(\w+)/,className:"string"})]}},a={className:"string",begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,n,i]};i.contains.push(a);const s={match:/\\"/},l={className:"string",begin:/'/,end:/'/},c={match:/\\'/},u={begin:/\$?\(\(/,end:/\)\)/,contains:[{begin:/\d+#[0-9a-f]+/,className:"number"},e.NUMBER_MODE,n]},d=["fish","bash","zsh","sh","csh","ksh","tcsh","dash","scsh"],f=e.SHEBANG({binary:`(${d.join("|")})`,relevance:10}),h={className:"function",begin:/\w[\w\d_]*\s*\(\s*\)\s*\{/,returnBegin:!0,contains:[e.inherit(e.TITLE_MODE,{begin:/\w[\w\d_]*/})],relevance:0},m=["if","then","else","elif","fi","for","while","until","in","do","done","case","esac","function","select"],g=["true","false"],v={match:/(\/[a-z._-]+)+/},y=["break","cd","continue","eval","exec","exit","export","getopts","hash","pwd","readonly","return","shift","test","times","trap","umask","unset"],b=["alias","bind","builtin","caller","command","declare","echo","enable","help","let","local","logout","mapfile","printf","read","readarray","source","type","typeset","ulimit","unalias"],_=["autoload","bg","bindkey","bye","cap","chdir","clone","comparguments","compcall","compctl","compdescribe","compfiles","compgroups","compquote","comptags","comptry","compvalues","dirs","disable","disown","echotc","echoti","emulate","fc","fg","float","functions","getcap","getln","history","integer","jobs","kill","limit","log","noglob","popd","print","pushd","pushln","rehash","sched","setcap","setopt","stat","suspend","ttyctl","unfunction","unhash","unlimit","unsetopt","vared","wait","whence","where","which","zcompile","zformat","zftp","zle","zmodload","zparseopts","zprof","zpty","zregexparse","zsocket","zstyle","ztcp"],E=["chcon","chgrp","chown","chmod","cp","dd","df","dir","dircolors","ln","ls","mkdir","mkfifo","mknod","mktemp","mv","realpath","rm","rmdir","shred","sync","touch","truncate","vdir","b2sum","base32","base64","cat","cksum","comm","csplit","cut","expand","fmt","fold","head","join","md5sum","nl","numfmt","od","paste","ptx","pr","sha1sum","sha224sum","sha256sum","sha384sum","sha512sum","shuf","sort","split","sum","tac","tail","tr","tsort","unexpand","uniq","wc","arch","basename","chroot","date","dirname","du","echo","env","expr","factor","groups","hostid","id","link","logname","nice","nohup","nproc","pathchk","pinky","printenv","printf","pwd","readlink","runcon","seq","sleep","stat","stdbuf","stty","tee","test","timeout","tty","uname","unlink","uptime","users","who","whoami","yes"];return{name:"Bash",aliases:["sh"],keywords:{$pattern:/\b[a-z][a-z0-9._-]+\b/,keyword:m,literal:g,built_in:[...y,...b,"set","shopt",..._,...E]},contains:[f,e.SHEBANG(),h,u,e.HASH_COMMENT_MODE,o,v,a,s,l,c,n]}}function Zpn(e){const t=e.regex,n=e.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),r="decltype\\(auto\\)",i="[a-zA-Z_]\\w*::",o="("+r+"|"+t.optional(i)+"[a-zA-Z_]\\w*"+t.optional("<[^<>]+>")+")",a={className:"type",variants:[{begin:"\\b[a-z\\d_]*_t\\b"},{match:/\batomic_[a-z]{3,6}\b/}]},s={className:"string",variants:[{begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE]},{begin:"(u8?|U|L)?'(\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)|.)",end:"'",illegal:"."},e.END_SAME_AS_BEGIN({begin:/(?:u8?|U|L)?R"([^()\\ ]{0,16})\(/,end:/\)([^()\\ ]{0,16})"/})]},l={className:"number",variants:[{begin:"\\b(0b[01']+)"},{begin:"(-?)\\b([\\d']+(\\.[\\d']*)?|\\.[\\d']+)((ll|LL|l|L)(u|U)?|(u|U)(ll|LL|l|L)?|f|F|b|B)"},{begin:"(-?)(\\b0[xX][a-fA-F0-9']+|(\\b[\\d']+(\\.[\\d']*)?|\\.[\\d']+)([eE][-+]?[\\d']+)?)"}],relevance:0},c={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma _Pragma ifdef ifndef include"},contains:[{begin:/\\\n/,relevance:0},e.inherit(s,{className:"string"}),{className:"string",begin:/<.*?>/},n,e.C_BLOCK_COMMENT_MODE]},u={className:"title",begin:t.optional(i)+e.IDENT_RE,relevance:0},d=t.optional(i)+e.IDENT_RE+"\\s*\\(",f={keyword:["asm","auto","break","case","continue","default","do","else","enum","extern","for","fortran","goto","if","inline","register","restrict","return","sizeof","struct","switch","typedef","union","volatile","while","_Alignas","_Alignof","_Atomic","_Generic","_Noreturn","_Static_assert","_Thread_local","alignas","alignof","noreturn","static_assert","thread_local","_Pragma"],type:["float","double","signed","unsigned","int","short","long","char","void","_Bool","_Complex","_Imaginary","_Decimal32","_Decimal64","_Decimal128","const","static","complex","bool","imaginary"],literal:"true false NULL",built_in:"std string wstring cin cout cerr clog stdin stdout stderr stringstream istringstream ostringstream auto_ptr deque list queue stack vector map set pair bitset multiset multimap unordered_set unordered_map unordered_multiset unordered_multimap priority_queue make_pair array shared_ptr abort terminate abs acos asin atan2 atan calloc ceil cosh cos exit exp fabs floor fmod fprintf fputs free frexp fscanf future isalnum isalpha iscntrl isdigit isgraph islower isprint ispunct isspace isupper isxdigit tolower toupper labs ldexp log10 log malloc realloc memchr memcmp memcpy memset modf pow printf putchar puts scanf sinh sin snprintf sprintf sqrt sscanf strcat strchr strcmp strcpy strcspn strlen strncat strncmp strncpy strpbrk strrchr strspn strstr tanh tan vfprintf vprintf vsprintf endl initializer_list unique_ptr"},h=[c,a,n,e.C_BLOCK_COMMENT_MODE,l,s],m={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:f,contains:h.concat([{begin:/\(/,end:/\)/,keywords:f,contains:h.concat(["self"]),relevance:0}]),relevance:0},g={begin:"("+o+"[\\*&\\s]+)+"+d,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:f,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:r,keywords:f,relevance:0},{begin:d,returnBegin:!0,contains:[e.inherit(u,{className:"title.function"})],relevance:0},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:f,relevance:0,contains:[n,e.C_BLOCK_COMMENT_MODE,s,l,a,{begin:/\(/,end:/\)/,keywords:f,relevance:0,contains:["self",n,e.C_BLOCK_COMMENT_MODE,s,l,a]}]},a,n,e.C_BLOCK_COMMENT_MODE,c]};return{name:"C",aliases:["h"],keywords:f,disableAutodetect:!0,illegal:"</",contains:[].concat(m,g,h,[c,{begin:e.IDENT_RE+"::",keywords:f},{className:"class",beginKeywords:"enum class struct union",end:/[{;:<>=]/,contains:[{beginKeywords:"final class struct"},e.TITLE_MODE]}]),exports:{preprocessor:c,strings:s,keywords:f}}}function Jpn(e){const t=e.regex,n=e.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),r="decltype\\(auto\\)",i="[a-zA-Z_]\\w*::",o="(?!struct)("+r+"|"+t.optional(i)+"[a-zA-Z_]\\w*"+t.optional("<[^<>]+>")+")",a={className:"type",begin:"\\b[a-z\\d_]*_t\\b"},s={className:"string",variants:[{begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE]},{begin:"(u8?|U|L)?'(\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)|.)",end:"'",illegal:"."},e.END_SAME_AS_BEGIN({begin:/(?:u8?|U|L)?R"([^()\\ ]{0,16})\(/,end:/\)([^()\\ ]{0,16})"/})]},l={className:"number",variants:[{begin:"\\b(0b[01']+)"},{begin:"(-?)\\b([\\d']+(\\.[\\d']*)?|\\.[\\d']+)((ll|LL|l|L)(u|U)?|(u|U)(ll|LL|l|L)?|f|F|b|B)"},{begin:"(-?)(\\b0[xX][a-fA-F0-9']+|(\\b[\\d']+(\\.[\\d']*)?|\\.[\\d']+)([eE][-+]?[\\d']+)?)"}],relevance:0},c={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma _Pragma ifdef ifndef include"},contains:[{begin:/\\\n/,relevance:0},e.inherit(s,{className:"string"}),{className:"string",begin:/<.*?>/},n,e.C_BLOCK_COMMENT_MODE]},u={className:"title",begin:t.optional(i)+e.IDENT_RE,relevance:0},d=t.optional(i)+e.IDENT_RE+"\\s*\\(",f=["alignas","alignof","and","and_eq","asm","atomic_cancel","atomic_commit","atomic_noexcept","auto","bitand","bitor","break","case","catch","class","co_await","co_return","co_yield","compl","concept","const_cast|10","consteval","constexpr","constinit","continue","decltype","default","delete","do","dynamic_cast|10","else","enum","explicit","export","extern","false","final","for","friend","goto","if","import","inline","module","mutable","namespace","new","noexcept","not","not_eq","nullptr","operator","or","or_eq","override","private","protected","public","reflexpr","register","reinterpret_cast|10","requires","return","sizeof","static_assert","static_cast|10","struct","switch","synchronized","template","this","thread_local","throw","transaction_safe","transaction_safe_dynamic","true","try","typedef","typeid","typename","union","using","virtual","volatile","while","xor","xor_eq"],h=["bool","char","char16_t","char32_t","char8_t","double","float","int","long","short","void","wchar_t","unsigned","signed","const","static"],m=["any","auto_ptr","barrier","binary_semaphore","bitset","complex","condition_variable","condition_variable_any","counting_semaphore","deque","false_type","future","imaginary","initializer_list","istringstream","jthread","latch","lock_guard","multimap","multiset","mutex","optional","ostringstream","packaged_task","pair","promise","priority_queue","queue","recursive_mutex","recursive_timed_mutex","scoped_lock","set","shared_future","shared_lock","shared_mutex","shared_timed_mutex","shared_ptr","stack","string_view","stringstream","timed_mutex","thread","true_type","tuple","unique_lock","unique_ptr","unordered_map","unordered_multimap","unordered_multiset","unordered_set","variant","vector","weak_ptr","wstring","wstring_view"],g=["abort","abs","acos","apply","as_const","asin","atan","atan2","calloc","ceil","cerr","cin","clog","cos","cosh","cout","declval","endl","exchange","exit","exp","fabs","floor","fmod","forward","fprintf","fputs","free","frexp","fscanf","future","invoke","isalnum","isalpha","iscntrl","isdigit","isgraph","islower","isprint","ispunct","isspace","isupper","isxdigit","labs","launder","ldexp","log","log10","make_pair","make_shared","make_shared_for_overwrite","make_tuple","make_unique","malloc","memchr","memcmp","memcpy","memset","modf","move","pow","printf","putchar","puts","realloc","scanf","sin","sinh","snprintf","sprintf","sqrt","sscanf","std","stderr","stdin","stdout","strcat","strchr","strcmp","strcpy","strcspn","strlen","strncat","strncmp","strncpy","strpbrk","strrchr","strspn","strstr","swap","tan","tanh","terminate","to_underlying","tolower","toupper","vfprintf","visit","vprintf","vsprintf"],v={type:h,keyword:f,literal:["NULL","false","nullopt","nullptr","true"],built_in:["_Pragma"],_type_hints:m},y={className:"function.dispatch",relevance:0,keywords:{_hint:g},begin:t.concat(/\b/,/(?!decltype)/,/(?!if)/,/(?!for)/,/(?!switch)/,/(?!while)/,e.IDENT_RE,t.lookahead(/(<[^<>]+>|)\s*\(/))},b=[y,c,a,n,e.C_BLOCK_COMMENT_MODE,l,s],_={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:v,contains:b.concat([{begin:/\(/,end:/\)/,keywords:v,contains:b.concat(["self"]),relevance:0}]),relevance:0},E={className:"function",begin:"("+o+"[\\*&\\s]+)+"+d,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:v,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:r,keywords:v,relevance:0},{begin:d,returnBegin:!0,contains:[u],relevance:0},{begin:/::/,relevance:0},{begin:/:/,endsWithParent:!0,contains:[s,l]},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:v,relevance:0,contains:[n,e.C_BLOCK_COMMENT_MODE,s,l,a,{begin:/\(/,end:/\)/,keywords:v,relevance:0,contains:["self",n,e.C_BLOCK_COMMENT_MODE,s,l,a]}]},a,n,e.C_BLOCK_COMMENT_MODE,c]};return{name:"C++",aliases:["cc","c++","h++","hpp","hh","hxx","cxx"],keywords:v,illegal:"</",classNameAliases:{"function.dispatch":"built_in"},contains:[].concat(_,E,y,b,[c,{begin:"\\b(deque|list|queue|priority_queue|pair|stack|vector|map|set|bitset|multiset|multimap|unordered_map|unordered_set|unordered_multiset|unordered_multimap|array|tuple|optional|variant|function)\\s*<(?!<)",end:">",keywords:v,contains:["self",a]},{begin:e.IDENT_RE+"::",keywords:v},{match:[/\b(?:enum(?:\s+(?:class|struct))?|class|struct|union)/,/\s+/,/\w+/],className:{1:"keyword",3:"title.class"}}])}}function ehn(e){const t=["bool","byte","char","decimal","delegate","double","dynamic","enum","float","int","long","nint","nuint","object","sbyte","short","string","ulong","uint","ushort"],n=["public","private","protected","static","internal","protected","abstract","async","extern","override","unsafe","virtual","new","sealed","partial"],r=["default","false","null","true"],i=["abstract","as","base","break","case","catch","class","const","continue","do","else","event","explicit","extern","finally","fixed","for","foreach","goto","if","implicit","in","interface","internal","is","lock","namespace","new","operator","out","override","params","private","protected","public","readonly","record","ref","return","scoped","sealed","sizeof","stackalloc","static","struct","switch","this","throw","try","typeof","unchecked","unsafe","using","virtual","void","volatile","while"],o=["add","alias","and","ascending","async","await","by","descending","equals","from","get","global","group","init","into","join","let","nameof","not","notnull","on","or","orderby","partial","remove","select","set","unmanaged","value|0","var","when","where","with","yield"],a={keyword:i.concat(o),built_in:t,literal:r},s=e.inherit(e.TITLE_MODE,{begin:"[a-zA-Z](\\.?\\w)*"}),l={className:"number",variants:[{begin:"\\b(0b[01']+)"},{begin:"(-?)\\b([\\d']+(\\.[\\d']*)?|\\.[\\d']+)(u|U|l|L|ul|UL|f|F|b|B)"},{begin:"(-?)(\\b0[xX][a-fA-F0-9']+|(\\b[\\d']+(\\.[\\d']*)?|\\.[\\d']+)([eE][-+]?[\\d']+)?)"}],relevance:0},c={className:"string",begin:'@"',end:'"',contains:[{begin:'""'}]},u=e.inherit(c,{illegal:/\n/}),d={className:"subst",begin:/\{/,end:/\}/,keywords:a},f=e.inherit(d,{illegal:/\n/}),h={className:"string",begin:/\$"/,end:'"',illegal:/\n/,contains:[{begin:/\{\{/},{begin:/\}\}/},e.BACKSLASH_ESCAPE,f]},m={className:"string",begin:/\$@"/,end:'"',contains:[{begin:/\{\{/},{begin:/\}\}/},{begin:'""'},d]},g=e.inherit(m,{illegal:/\n/,contains:[{begin:/\{\{/},{begin:/\}\}/},{begin:'""'},f]});d.contains=[m,h,c,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,l,e.C_BLOCK_COMMENT_MODE],f.contains=[g,h,u,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,l,e.inherit(e.C_BLOCK_COMMENT_MODE,{illegal:/\n/})];const v={variants:[m,h,c,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},y={begin:"<",end:">",contains:[{beginKeywords:"in out"},s]},b=e.IDENT_RE+"(<"+e.IDENT_RE+"(\\s*,\\s*"+e.IDENT_RE+")*>)?(\\[\\])?",_={begin:"@"+e.IDENT_RE,relevance:0};return{name:"C#",aliases:["cs","c#"],keywords:a,illegal:/::/,contains:[e.COMMENT("///","$",{returnBegin:!0,contains:[{className:"doctag",variants:[{begin:"///",relevance:0},{begin:"<!--|-->"},{begin:"</?",end:">"}]}]}),e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"meta",begin:"#",end:"$",keywords:{keyword:"if else elif endif define undef warning error line region endregion pragma checksum"}},v,l,{beginKeywords:"class interface",relevance:0,end:/[{;=]/,illegal:/[^\s:,]/,contains:[{beginKeywords:"where class"},s,y,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{beginKeywords:"namespace",relevance:0,end:/[{;=]/,illegal:/[^\s:]/,contains:[s,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{beginKeywords:"record",relevance:0,end:/[{;=]/,illegal:/[^\s:]/,contains:[s,y,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{className:"meta",begin:"^\\s*\\[(?=[\\w])",excludeBegin:!0,end:"\\]",excludeEnd:!0,contains:[{className:"string",begin:/"/,end:/"/}]},{beginKeywords:"new return throw await else",relevance:0},{className:"function",begin:"("+b+"\\s+)+"+e.IDENT_RE+"\\s*(<[^=]+>\\s*)?\\(",returnBegin:!0,end:/\s*[{;=]/,excludeEnd:!0,keywords:a,contains:[{beginKeywords:n.join(" "),relevance:0},{begin:e.IDENT_RE+"\\s*(<[^=]+>\\s*)?\\(",returnBegin:!0,contains:[e.TITLE_MODE,y],relevance:0},{match:/\(\)/},{className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:a,relevance:0,contains:[v,l,e.C_BLOCK_COMMENT_MODE]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},_]}}const thn=e=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:e.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:e.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z_][A-Za-z0-9_-]*/}}),nhn=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","p","q","quote","samp","section","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],rhn=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"],ihn=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"],ohn=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"],ahn=["align-content","align-items","align-self","all","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-repeat","background-size","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-decoration-break","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","content","content-visibility","counter-increment","counter-reset","cue","cue-after","cue-before","cursor","direction","display","empty-cells","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-size","font-size-adjust","font-smoothing","font-stretch","font-style","font-synthesis","font-variant","font-variant-caps","font-variant-east-asian","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","gap","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","inline-size","isolation","justify-content","left","letter-spacing","line-break","line-height","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-wrap","overflow-x","overflow-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page-break-after","page-break-before","page-break-inside","pause","pause-after","pause-before","perspective","perspective-origin","pointer-events","position","quotes","resize","rest","rest-after","rest-before","right","row-gap","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","speak","speak-as","src","tab-size","table-layout","text-align","text-align-all","text-align-last","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-style","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-transform","text-underline-position","top","transform","transform-box","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","unicode-bidi","vertical-align","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","z-index"].reverse();function shn(e){const t=e.regex,n=thn(e),r={begin:/-(webkit|moz|ms|o)-(?=[a-z])/},i="and or not only",o=/@-?\w[\w]*(-\w+)*/,a="[a-zA-Z-][a-zA-Z0-9_-]*",s=[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE];return{name:"CSS",case_insensitive:!0,illegal:/[=|'\$]/,keywords:{keyframePosition:"from to"},classNameAliases:{keyframePosition:"selector-tag"},contains:[n.BLOCK_COMMENT,r,n.CSS_NUMBER_MODE,{className:"selector-id",begin:/#[A-Za-z0-9_-]+/,relevance:0},{className:"selector-class",begin:"\\."+a,relevance:0},n.ATTRIBUTE_SELECTOR_MODE,{className:"selector-pseudo",variants:[{begin:":("+ihn.join("|")+")"},{begin:":(:)?("+ohn.join("|")+")"}]},n.CSS_VARIABLE,{className:"attribute",begin:"\\b("+ahn.join("|")+")\\b"},{begin:/:/,end:/[;}{]/,contains:[n.BLOCK_COMMENT,n.HEXCOLOR,n.IMPORTANT,n.CSS_NUMBER_MODE,...s,{begin:/(url|data-uri)\(/,end:/\)/,relevance:0,keywords:{built_in:"url data-uri"},contains:[...s,{className:"string",begin:/[^)]/,endsWithParent:!0,excludeEnd:!0}]},n.FUNCTION_DISPATCH]},{begin:t.lookahead(/@/),end:"[{;]",relevance:0,illegal:/:/,contains:[{className:"keyword",begin:o},{begin:/\s/,endsWithParent:!0,excludeEnd:!0,relevance:0,keywords:{$pattern:/[a-z-]+/,keyword:i,attribute:rhn.join(" ")},contains:[{begin:/[a-z-]+(?=:)/,className:"attribute"},...s,n.CSS_NUMBER_MODE]}]},{className:"selector-tag",begin:"\\b("+nhn.join("|")+")\\b"}]}}function lhn(e){const t=e.regex;return{name:"Diff",aliases:["patch"],contains:[{className:"meta",relevance:10,match:t.either(/^@@ +-\d+,\d+ +\+\d+,\d+ +@@/,/^\*\*\* +\d+,\d+ +\*\*\*\*$/,/^--- +\d+,\d+ +----$/)},{className:"comment",variants:[{begin:t.either(/Index: /,/^index/,/={3,}/,/^-{3}/,/^\*{3} /,/^\+{3}/,/^diff --git/),end:/$/},{match:/^\*{15}$/}]},{className:"addition",begin:/^\+/,end:/$/},{className:"deletion",begin:/^-/,end:/$/},{className:"addition",begin:/^!/,end:/$/}]}}function chn(e){const t={keyword:["break","case","chan","const","continue","default","defer","else","fallthrough","for","func","go","goto","if","import","interface","map","package","range","return","select","struct","switch","type","var"],type:["bool","byte","complex64","complex128","error","float32","float64","int8","int16","int32","int64","string","uint8","uint16","uint32","uint64","int","uint","uintptr","rune"],literal:["true","false","iota","nil"],built_in:["append","cap","close","complex","copy","imag","len","make","new","panic","print","println","real","recover","delete"]};return{name:"Go",aliases:["golang"],keywords:t,illegal:"</",contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"string",variants:[e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,{begin:"`",end:"`"}]},{className:"number",variants:[{begin:e.C_NUMBER_RE+"[i]",relevance:1},e.C_NUMBER_MODE]},{begin:/:=/},{className:"function",beginKeywords:"func",end:"\\s*(\\{|$)",excludeEnd:!0,contains:[e.TITLE_MODE,{className:"params",begin:/\(/,end:/\)/,endsParent:!0,keywords:t,illegal:/["']/}]}]}}function uhn(e){const t=e.regex,n=/[_A-Za-z][_0-9A-Za-z]*/;return{name:"GraphQL",aliases:["gql"],case_insensitive:!0,disableAutodetect:!1,keywords:{keyword:["query","mutation","subscription","type","input","schema","directive","interface","union","scalar","fragment","enum","on"],literal:["true","false","null"]},contains:[e.HASH_COMMENT_MODE,e.QUOTE_STRING_MODE,e.NUMBER_MODE,{scope:"punctuation",match:/[.]{3}/,relevance:0},{scope:"punctuation",begin:/[\!\(\)\:\=\[\]\{\|\}]{1}/,relevance:0},{scope:"variable",begin:/\$/,end:/\W/,excludeEnd:!0,relevance:0},{scope:"meta",match:/@\w+/,excludeEnd:!0},{scope:"symbol",begin:t.concat(n,t.lookahead(/\s*:/)),relevance:0}],illegal:[/[;<']/,/BEGIN/]}}function dhn(e){const t=e.regex,n={className:"number",relevance:0,variants:[{begin:/([+-]+)?[\d]+_[\d_]+/},{begin:e.NUMBER_RE}]},r=e.COMMENT();r.variants=[{begin:/;/,end:/$/},{begin:/#/,end:/$/}];const i={className:"variable",variants:[{begin:/\$[\w\d"][\w\d_]*/},{begin:/\$\{(.*?)\}/}]},o={className:"literal",begin:/\bon|off|true|false|yes|no\b/},a={className:"string",contains:[e.BACKSLASH_ESCAPE],variants:[{begin:"'''",end:"'''",relevance:10},{begin:'"""',end:'"""',relevance:10},{begin:'"',end:'"'},{begin:"'",end:"'"}]},s={begin:/\[/,end:/\]/,contains:[r,o,i,a,n,"self"],relevance:0},l=/[A-Za-z0-9_-]+/,c=/"(\\"|[^"])*"/,u=/'[^']*'/,d=t.either(l,c,u),f=t.concat(d,"(\\s*\\.\\s*",d,")*",t.lookahead(/\s*=\s*[^#\s]/));return{name:"TOML, also INI",aliases:["toml"],case_insensitive:!0,illegal:/\S/,contains:[r,{className:"section",begin:/\[+/,end:/\]+/},{begin:f,className:"attr",starts:{end:/$/,contains:[r,s,o,i,a,n]}}]}}var kb="[0-9](_*[0-9])*",bI=`\\.(${kb})`,yI="[0-9a-fA-F](_*[0-9a-fA-F])*",Pfe={className:"number",variants:[{begin:`(\\b(${kb})((${bI})|\\.)?|(${bI}))[eE][+-]?(${kb})[fFdD]?\\b`},{begin:`\\b(${kb})((${bI})[fFdD]?\\b|\\.([fFdD]\\b)?)`},{begin:`(${bI})[fFdD]?\\b`},{begin:`\\b(${kb})[fFdD]\\b`},{begin:`\\b0[xX]((${yI})\\.?|(${yI})?\\.(${yI}))[pP][+-]?(${kb})[fFdD]?\\b`},{begin:"\\b(0|[1-9](_*[0-9])*)[lL]?\\b"},{begin:`\\b0[xX](${yI})[lL]?\\b`},{begin:"\\b0(_*[0-7])*[lL]?\\b"},{begin:"\\b0[bB][01](_*[01])*[lL]?\\b"}],relevance:0};function IPe(e,t,n){return n===-1?"":e.replace(t,r=>IPe(e,t,n-1))}function fhn(e){const t=e.regex,n="[À-ʸa-zA-Z_$][À-ʸa-zA-Z_$0-9]*",r=n+IPe("(?:<"+n+"~~~(?:\\s*,\\s*"+n+"~~~)*>)?",/~~~/g,2),i={keyword:["synchronized","abstract","private","var","static","if","const ","for","while","strictfp","finally","protected","import","native","final","void","enum","else","break","transient","catch","instanceof","volatile","case","assert","package","default","public","try","switch","continue","throws","protected","public","private","module","requires","exports","do","sealed","yield","permits"],literal:["false","true","null"],type:["char","boolean","long","float","int","byte","short","double"],built_in:["super","this"]},o={className:"meta",begin:"@"+n,contains:[{begin:/\(/,end:/\)/,contains:["self"]}]},a={className:"params",begin:/\(/,end:/\)/,keywords:i,relevance:0,contains:[e.C_BLOCK_COMMENT_MODE],endsParent:!0};return{name:"Java",aliases:["jsp"],keywords:i,illegal:/<\/|#/,contains:[e.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{begin:/\w+@/,relevance:0},{className:"doctag",begin:"@[A-Za-z]+"}]}),{begin:/import java\.[a-z]+\./,keywords:"import",relevance:2},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{begin:/"""/,end:/"""/,className:"string",contains:[e.BACKSLASH_ESCAPE]},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{match:[/\b(?:class|interface|enum|extends|implements|new)/,/\s+/,n],className:{1:"keyword",3:"title.class"}},{match:/non-sealed/,scope:"keyword"},{begin:[t.concat(/(?!else)/,n),/\s+/,n,/\s+/,/=(?!=)/],className:{1:"type",3:"variable",5:"operator"}},{begin:[/record/,/\s+/,n],className:{1:"keyword",3:"title.class"},contains:[a,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{beginKeywords:"new throw return else",relevance:0},{begin:["(?:"+r+"\\s+)",e.UNDERSCORE_IDENT_RE,/\s*(?=\()/],className:{2:"title.function"},keywords:i,contains:[{className:"params",begin:/\(/,end:/\)/,keywords:i,relevance:0,contains:[o,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,Pfe,e.C_BLOCK_COMMENT_MODE]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},Pfe,o]}}const Dfe="[A-Za-z$_][0-9A-Za-z$_]*",phn=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends"],hhn=["true","false","null","undefined","NaN","Infinity"],APe=["Object","Function","Boolean","Symbol","Math","Date","Number","BigInt","String","RegExp","Array","Float32Array","Float64Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Int32Array","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array","Set","Map","WeakSet","WeakMap","ArrayBuffer","SharedArrayBuffer","Atomics","DataView","JSON","Promise","Generator","GeneratorFunction","AsyncFunction","Reflect","Proxy","Intl","WebAssembly"],NPe=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],MPe=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],mhn=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","global"],ghn=[].concat(MPe,APe,NPe);function vhn(e){const t=e.regex,n=(A,{after:P})=>{const z="</"+A[0].slice(1);return A.input.indexOf(z,P)!==-1},r=Dfe,i={begin:"<>",end:"</>"},o=/<[A-Za-z0-9\\._:-]+\s*\/>/,a={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(A,P)=>{const z=A[0].length+A.index,L=A.input[z];if(L==="<"||L===","){P.ignoreMatch();return}L===">"&&(n(A,{after:z})||P.ignoreMatch());let V;const j=A.input.substring(z);if(V=j.match(/^\s*=/)){P.ignoreMatch();return}if((V=j.match(/^\s+extends\s+/))&&V.index===0){P.ignoreMatch();return}}},s={$pattern:Dfe,keyword:phn,literal:hhn,built_in:ghn,"variable.language":mhn},l="[0-9](_?[0-9])*",c=`\\.(${l})`,u="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",d={className:"number",variants:[{begin:`(\\b(${u})((${c})|\\.)?|(${c}))[eE][+-]?(${l})\\b`},{begin:`\\b(${u})\\b((${c})\\b|\\.)?|(${c})\\b`},{begin:"\\b(0|[1-9](_?[0-9])*)n\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*n?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*n?\\b"},{begin:"\\b0[0-7]+n?\\b"}],relevance:0},f={className:"subst",begin:"\\$\\{",end:"\\}",keywords:s,contains:[]},h={begin:"html`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,f],subLanguage:"xml"}},m={begin:"css`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,f],subLanguage:"css"}},g={begin:"gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,f],subLanguage:"graphql"}},v={className:"string",begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE,f]},y={className:"comment",variants:[e.COMMENT(/\/\*\*(?!\/)/,"\\*/",{relevance:0,contains:[{begin:"(?=@[A-Za-z]+)",relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"},{className:"type",begin:"\\{",end:"\\}",excludeEnd:!0,excludeBegin:!0,relevance:0},{className:"variable",begin:r+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),e.C_BLOCK_COMMENT_MODE,e.C_LINE_COMMENT_MODE]},b=[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,h,m,g,v,{match:/\$\d+/},d];f.contains=b.concat({begin:/\{/,end:/\}/,keywords:s,contains:["self"].concat(b)});const _=[].concat(y,f.contains),E=_.concat([{begin:/\(/,end:/\)/,keywords:s,contains:["self"].concat(_)}]),w={className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:s,contains:E},S={variants:[{match:[/class/,/\s+/,r,/\s+/,/extends/,/\s+/,t.concat(r,"(",t.concat(/\./,r),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,r],scope:{1:"keyword",3:"title.class"}}]},C={relevance:0,match:t.either(/\bJSON/,/\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/,/\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/,/\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/),className:"title.class",keywords:{_:[...APe,...NPe]}},T={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},x={variants:[{match:[/function/,/\s+/,r,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[w],illegal:/%/},O={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function N(A){return t.concat("(?!",A.join("|"),")")}const I={match:t.concat(/\b/,N([...MPe,"super","import"]),r,t.lookahead(/\(/)),className:"title.function",relevance:0},M={begin:t.concat(/\./,t.lookahead(t.concat(r,/(?![0-9A-Za-z$_(])/))),end:r,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},F={match:[/get|set/,/\s+/,r,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},w]},k="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+e.UNDERSCORE_IDENT_RE+")\\s*=>",B={match:[/const|var|let/,/\s+/,r,/\s*/,/=\s*/,/(async\s*)?/,t.lookahead(k)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[w]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:s,exports:{PARAMS_CONTAINS:E,CLASS_REFERENCE:C},illegal:/#(?![$_A-z])/,contains:[e.SHEBANG({label:"shebang",binary:"node",relevance:5}),T,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,h,m,g,v,y,{match:/\$\d+/},d,C,{className:"attr",begin:r+t.lookahead(":"),relevance:0},B,{begin:"("+e.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[y,e.REGEXP_MODE,{className:"function",begin:k,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:e.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:s,contains:E}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:i.begin,end:i.end},{match:o},{begin:a.begin,"on:begin":a.isTrulyOpeningTag,end:a.end}],subLanguage:"xml",contains:[{begin:a.begin,end:a.end,skip:!0,contains:["self"]}]}]},x,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+e.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[w,e.inherit(e.TITLE_MODE,{begin:r,className:"title.function"})]},{match:/\.\.\./,relevance:0},M,{match:"\\$"+r,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[w]},I,O,S,F,{match:/\$[(.]/}]}}function bhn(e){const t={className:"attr",begin:/"(\\.|[^\\"\r\n])*"(?=\s*:)/,relevance:1.01},n={match:/[{}[\],:]/,className:"punctuation",relevance:0},r=["true","false","null"],i={scope:"literal",beginKeywords:r.join(" ")};return{name:"JSON",keywords:{literal:r},contains:[t,n,e.QUOTE_STRING_MODE,i,e.C_NUMBER_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE],illegal:"\\S"}}var Pb="[0-9](_*[0-9])*",_I=`\\.(${Pb})`,SI="[0-9a-fA-F](_*[0-9a-fA-F])*",yhn={className:"number",variants:[{begin:`(\\b(${Pb})((${_I})|\\.)?|(${_I}))[eE][+-]?(${Pb})[fFdD]?\\b`},{begin:`\\b(${Pb})((${_I})[fFdD]?\\b|\\.([fFdD]\\b)?)`},{begin:`(${_I})[fFdD]?\\b`},{begin:`\\b(${Pb})[fFdD]\\b`},{begin:`\\b0[xX]((${SI})\\.?|(${SI})?\\.(${SI}))[pP][+-]?(${Pb})[fFdD]?\\b`},{begin:"\\b(0|[1-9](_*[0-9])*)[lL]?\\b"},{begin:`\\b0[xX](${SI})[lL]?\\b`},{begin:"\\b0(_*[0-7])*[lL]?\\b"},{begin:"\\b0[bB][01](_*[01])*[lL]?\\b"}],relevance:0};function _hn(e){const t={keyword:"abstract as val var vararg get set class object open private protected public noinline crossinline dynamic final enum if else do while for when throw try catch finally import package is in fun override companion reified inline lateinit init interface annotation data sealed internal infix operator out by constructor super tailrec where const inner suspend typealias external expect actual",built_in:"Byte Short Char Int Long Boolean Float Double Void Unit Nothing",literal:"true false null"},n={className:"keyword",begin:/\b(break|continue|return|this)\b/,starts:{contains:[{className:"symbol",begin:/@\w+/}]}},r={className:"symbol",begin:e.UNDERSCORE_IDENT_RE+"@"},i={className:"subst",begin:/\$\{/,end:/\}/,contains:[e.C_NUMBER_MODE]},o={className:"variable",begin:"\\$"+e.UNDERSCORE_IDENT_RE},a={className:"string",variants:[{begin:'"""',end:'"""(?=[^"])',contains:[o,i]},{begin:"'",end:"'",illegal:/\n/,contains:[e.BACKSLASH_ESCAPE]},{begin:'"',end:'"',illegal:/\n/,contains:[e.BACKSLASH_ESCAPE,o,i]}]};i.contains.push(a);const s={className:"meta",begin:"@(?:file|property|field|get|set|receiver|param|setparam|delegate)\\s*:(?:\\s*"+e.UNDERSCORE_IDENT_RE+")?"},l={className:"meta",begin:"@"+e.UNDERSCORE_IDENT_RE,contains:[{begin:/\(/,end:/\)/,contains:[e.inherit(a,{className:"string"}),"self"]}]},c=yhn,u=e.COMMENT("/\\*","\\*/",{contains:[e.C_BLOCK_COMMENT_MODE]}),d={variants:[{className:"type",begin:e.UNDERSCORE_IDENT_RE},{begin:/\(/,end:/\)/,contains:[]}]},f=d;return f.variants[1].contains=[d],d.variants[1].contains=[f],{name:"Kotlin",aliases:["kt","kts"],keywords:t,contains:[e.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"}]}),e.C_LINE_COMMENT_MODE,u,n,r,s,l,{className:"function",beginKeywords:"fun",end:"[(]|$",returnBegin:!0,excludeEnd:!0,keywords:t,relevance:5,contains:[{begin:e.UNDERSCORE_IDENT_RE+"\\s*\\(",returnBegin:!0,relevance:0,contains:[e.UNDERSCORE_TITLE_MODE]},{className:"type",begin:/</,end:/>/,keywords:"reified",relevance:0},{className:"params",begin:/\(/,end:/\)/,endsParent:!0,keywords:t,relevance:0,contains:[{begin:/:/,end:/[=,\/]/,endsWithParent:!0,contains:[d,e.C_LINE_COMMENT_MODE,u],relevance:0},e.C_LINE_COMMENT_MODE,u,s,l,a,e.C_NUMBER_MODE]},u]},{begin:[/class|interface|trait/,/\s+/,e.UNDERSCORE_IDENT_RE],beginScope:{3:"title.class"},keywords:"class interface trait",end:/[:\{(]|$/,excludeEnd:!0,illegal:"extends implements",contains:[{beginKeywords:"public protected internal private constructor"},e.UNDERSCORE_TITLE_MODE,{className:"type",begin:/</,end:/>/,excludeBegin:!0,excludeEnd:!0,relevance:0},{className:"type",begin:/[,:]\s*/,end:/[<\(,){\s]|$/,excludeBegin:!0,returnEnd:!0},s,l]},a,{className:"meta",begin:"^#!/usr/bin/env",end:"$",illegal:`
`},c]}}const Shn=e=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:e.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:e.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z_][A-Za-z0-9_-]*/}}),Ehn=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","p","q","quote","samp","section","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],Chn=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"],kPe=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"],PPe=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"],whn=["align-content","align-items","align-self","all","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-repeat","background-size","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-decoration-break","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","content","content-visibility","counter-increment","counter-reset","cue","cue-after","cue-before","cursor","direction","display","empty-cells","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-size","font-size-adjust","font-smoothing","font-stretch","font-style","font-synthesis","font-variant","font-variant-caps","font-variant-east-asian","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","gap","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","inline-size","isolation","justify-content","left","letter-spacing","line-break","line-height","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-wrap","overflow-x","overflow-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page-break-after","page-break-before","page-break-inside","pause","pause-after","pause-before","perspective","perspective-origin","pointer-events","position","quotes","resize","rest","rest-after","rest-before","right","row-gap","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","speak","speak-as","src","tab-size","table-layout","text-align","text-align-all","text-align-last","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-style","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-transform","text-underline-position","top","transform","transform-box","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","unicode-bidi","vertical-align","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","z-index"].reverse(),Thn=kPe.concat(PPe);function xhn(e){const t=Shn(e),n=Thn,r="and or not only",i="[\\w-]+",o="("+i+"|@\\{"+i+"\\})",a=[],s=[],l=function(_){return{className:"string",begin:"~?"+_+".*?"+_}},c=function(_,E,w){return{className:_,begin:E,relevance:w}},u={$pattern:/[a-z-]+/,keyword:r,attribute:Chn.join(" ")},d={begin:"\\(",end:"\\)",contains:s,keywords:u,relevance:0};s.push(e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,l("'"),l('"'),t.CSS_NUMBER_MODE,{begin:"(url|data-uri)\\(",starts:{className:"string",end:"[\\)\\n]",excludeEnd:!0}},t.HEXCOLOR,d,c("variable","@@?"+i,10),c("variable","@\\{"+i+"\\}"),c("built_in","~?`[^`]*?`"),{className:"attribute",begin:i+"\\s*:",end:":",returnBegin:!0,excludeEnd:!0},t.IMPORTANT,{beginKeywords:"and not"},t.FUNCTION_DISPATCH);const f=s.concat({begin:/\{/,end:/\}/,contains:a}),h={beginKeywords:"when",endsWithParent:!0,contains:[{beginKeywords:"and not"}].concat(s)},m={begin:o+"\\s*:",returnBegin:!0,end:/[;}]/,relevance:0,contains:[{begin:/-(webkit|moz|ms|o)-/},t.CSS_VARIABLE,{className:"attribute",begin:"\\b("+whn.join("|")+")\\b",end:/(?=:)/,starts:{endsWithParent:!0,illegal:"[<=$]",relevance:0,contains:s}}]},g={className:"keyword",begin:"@(import|media|charset|font-face|(-[a-z]+-)?keyframes|supports|document|namespace|page|viewport|host)\\b",starts:{end:"[;{}]",keywords:u,returnEnd:!0,contains:s,relevance:0}},v={className:"variable",variants:[{begin:"@"+i+"\\s*:",relevance:15},{begin:"@"+i}],starts:{end:"[;}]",returnEnd:!0,contains:f}},y={variants:[{begin:"[\\.#:&\\[>]",end:"[;{}]"},{begin:o,end:/\{/}],returnBegin:!0,returnEnd:!0,illegal:`[<='$"]`,relevance:0,contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,h,c("keyword","all\\b"),c("variable","@\\{"+i+"\\}"),{begin:"\\b("+Ehn.join("|")+")\\b",className:"selector-tag"},t.CSS_NUMBER_MODE,c("selector-tag",o,0),c("selector-id","#"+o),c("selector-class","\\."+o,0),c("selector-tag","&",0),t.ATTRIBUTE_SELECTOR_MODE,{className:"selector-pseudo",begin:":("+kPe.join("|")+")"},{className:"selector-pseudo",begin:":(:)?("+PPe.join("|")+")"},{begin:/\(/,end:/\)/,relevance:0,contains:f},{begin:"!important"},t.FUNCTION_DISPATCH]},b={begin:i+`:(:)?(${n.join("|")})`,returnBegin:!0,contains:[y]};return a.push(e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,g,v,b,m,y,h,t.FUNCTION_DISPATCH),{name:"Less",case_insensitive:!0,illegal:`[=>'/<($"]`,contains:a}}function Ohn(e){const t="\\[=*\\[",n="\\]=*\\]",r={begin:t,end:n,contains:["self"]},i=[e.COMMENT("--(?!"+t+")","$"),e.COMMENT("--"+t,n,{contains:[r],relevance:10})];return{name:"Lua",keywords:{$pattern:e.UNDERSCORE_IDENT_RE,literal:"true false nil",keyword:"and break do else elseif end for goto if in local not or repeat return then until while",built_in:"_G _ENV _VERSION __index __newindex __mode __call __metatable __tostring __len __gc __add __sub __mul __div __mod __pow __concat __unm __eq __lt __le assert collectgarbage dofile error getfenv getmetatable ipairs load loadfile loadstring module next pairs pcall print rawequal rawget rawset require select setfenv setmetatable tonumber tostring type unpack xpcall arg self coroutine resume yield status wrap create running debug getupvalue debug sethook getmetatable gethook setmetatable setlocal traceback setfenv getinfo setupvalue getlocal getregistry getfenv io lines write close flush open output type read stderr stdin input stdout popen tmpfile math log max acos huge ldexp pi cos tanh pow deg tan cosh sinh random randomseed frexp ceil floor rad abs sqrt modf asin min mod fmod log10 atan2 exp sin atan os exit setlocale date getenv difftime remove time clock tmpname rename execute package preload loadlib loaded loaders cpath config path seeall string sub upper len gfind rep find match char dump gmatch reverse byte format gsub lower table setn insert getn foreachi maxn foreach concat sort remove"},contains:i.concat([{className:"function",beginKeywords:"function",end:"\\)",contains:[e.inherit(e.TITLE_MODE,{begin:"([_a-zA-Z]\\w*\\.)*([_a-zA-Z]\\w*:)?[_a-zA-Z]\\w*"}),{className:"params",begin:"\\(",endsWithParent:!0,contains:i}].concat(i)},e.C_NUMBER_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{className:"string",begin:t,end:n,contains:[r],relevance:5}])}}function Rhn(e){const t={className:"variable",variants:[{begin:"\\$\\("+e.UNDERSCORE_IDENT_RE+"\\)",contains:[e.BACKSLASH_ESCAPE]},{begin:/\$[@%<?\^\+\*]/}]},n={className:"string",begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,t]},r={className:"variable",begin:/\$\([\w-]+\s/,end:/\)/,keywords:{built_in:"subst patsubst strip findstring filter filter-out sort word wordlist firstword lastword dir notdir suffix basename addsuffix addprefix join wildcard realpath abspath error warning shell origin flavor foreach if or and call eval file value"},contains:[t]},i={begin:"^"+e.UNDERSCORE_IDENT_RE+"\\s*(?=[:+?]?=)"},o={className:"meta",begin:/^\.PHONY:/,end:/$/,keywords:{$pattern:/[\.\w]+/,keyword:".PHONY"}},a={className:"section",begin:/^[^\s]+:/,end:/$/,contains:[t]};return{name:"Makefile",aliases:["mk","mak","make"],keywords:{$pattern:/[\w-]+/,keyword:"define endef undefine ifdef ifndef ifeq ifneq else endif include -include sinclude override export unexport private vpath"},contains:[e.HASH_COMMENT_MODE,t,n,r,i,o,a]}}function Ihn(e){const t=e.regex,n={begin:/<\/?[A-Za-z_]/,end:">",subLanguage:"xml",relevance:0},r={begin:"^[-\\*]{3,}",end:"$"},i={className:"code",variants:[{begin:"(`{3,})[^`](.|\\n)*?\\1`*[ ]*"},{begin:"(~{3,})[^~](.|\\n)*?\\1~*[ ]*"},{begin:"```",end:"```+[ ]*$"},{begin:"~~~",end:"~~~+[ ]*$"},{begin:"`.+?`"},{begin:"(?=^( {4}|\\t))",contains:[{begin:"^( {4}|\\t)",end:"(\\n)$"}],relevance:0}]},o={className:"bullet",begin:"^[ ]*([*+-]|(\\d+\\.))(?=\\s+)",end:"\\s+",excludeEnd:!0},a={begin:/^\[[^\n]+\]:/,returnBegin:!0,contains:[{className:"symbol",begin:/\[/,end:/\]/,excludeBegin:!0,excludeEnd:!0},{className:"link",begin:/:\s*/,end:/$/,excludeBegin:!0}]},s=/[A-Za-z][A-Za-z0-9+.-]*/,l={variants:[{begin:/\[.+?\]\[.*?\]/,relevance:0},{begin:/\[.+?\]\(((data|javascript|mailto):|(?:http|ftp)s?:\/\/).*?\)/,relevance:2},{begin:t.concat(/\[.+?\]\(/,s,/:\/\/.*?\)/),relevance:2},{begin:/\[.+?\]\([./?&#].*?\)/,relevance:1},{begin:/\[.*?\]\(.*?\)/,relevance:0}],returnBegin:!0,contains:[{match:/\[(?=\])/},{className:"string",relevance:0,begin:"\\[",end:"\\]",excludeBegin:!0,returnEnd:!0},{className:"link",relevance:0,begin:"\\]\\(",end:"\\)",excludeBegin:!0,excludeEnd:!0},{className:"symbol",relevance:0,begin:"\\]\\[",end:"\\]",excludeBegin:!0,excludeEnd:!0}]},c={className:"strong",contains:[],variants:[{begin:/_{2}(?!\s)/,end:/_{2}/},{begin:/\*{2}(?!\s)/,end:/\*{2}/}]},u={className:"emphasis",contains:[],variants:[{begin:/\*(?![*\s])/,end:/\*/},{begin:/_(?![_\s])/,end:/_/,relevance:0}]},d=e.inherit(c,{contains:[]}),f=e.inherit(u,{contains:[]});c.contains.push(f),u.contains.push(d);let h=[n,l];return[c,u,d,f].forEach(m=>{m.contains=m.contains.concat(h)}),h=h.concat(c,u),{name:"Markdown",aliases:["md","mkdown","mkd"],contains:[{className:"section",variants:[{begin:"^#{1,6}",end:"$",contains:h},{begin:"(?=^.+?\\n[=-]{2,}$)",contains:[{begin:"^[=-]*$"},{begin:"^",end:"\\n",contains:h}]}]},n,o,c,u,{className:"quote",begin:"^>\\s+",contains:h,end:"$"},i,r,l,a]}}function Ahn(e){const t={className:"built_in",begin:"\\b(AV|CA|CF|CG|CI|CL|CM|CN|CT|MK|MP|MTK|MTL|NS|SCN|SK|UI|WK|XC)\\w+"},n=/[a-zA-Z@][a-zA-Z0-9_]*/,r={"variable.language":["this","super"],$pattern:n,keyword:["while","export","sizeof","typedef","const","struct","for","union","volatile","static","mutable","if","do","return","goto","enum","else","break","extern","asm","case","default","register","explicit","typename","switch","continue","inline","readonly","assign","readwrite","self","@synchronized","id","typeof","nonatomic","IBOutlet","IBAction","strong","weak","copy","in","out","inout","bycopy","byref","oneway","__strong","__weak","__block","__autoreleasing","@private","@protected","@public","@try","@property","@end","@throw","@catch","@finally","@autoreleasepool","@synthesize","@dynamic","@selector","@optional","@required","@encode","@package","@import","@defs","@compatibility_alias","__bridge","__bridge_transfer","__bridge_retained","__bridge_retain","__covariant","__contravariant","__kindof","_Nonnull","_Nullable","_Null_unspecified","__FUNCTION__","__PRETTY_FUNCTION__","__attribute__","getter","setter","retain","unsafe_unretained","nonnull","nullable","null_unspecified","null_resettable","class","instancetype","NS_DESIGNATED_INITIALIZER","NS_UNAVAILABLE","NS_REQUIRES_SUPER","NS_RETURNS_INNER_POINTER","NS_INLINE","NS_AVAILABLE","NS_DEPRECATED","NS_ENUM","NS_OPTIONS","NS_SWIFT_UNAVAILABLE","NS_ASSUME_NONNULL_BEGIN","NS_ASSUME_NONNULL_END","NS_REFINED_FOR_SWIFT","NS_SWIFT_NAME","NS_SWIFT_NOTHROW","NS_DURING","NS_HANDLER","NS_ENDHANDLER","NS_VALUERETURN","NS_VOIDRETURN"],literal:["false","true","FALSE","TRUE","nil","YES","NO","NULL"],built_in:["dispatch_once_t","dispatch_queue_t","dispatch_sync","dispatch_async","dispatch_once"],type:["int","float","char","unsigned","signed","short","long","double","wchar_t","unichar","void","bool","BOOL","id|0","_Bool"]},i={$pattern:n,keyword:["@interface","@class","@protocol","@implementation"]};return{name:"Objective-C",aliases:["mm","objc","obj-c","obj-c++","objective-c++"],keywords:r,illegal:"</",contains:[t,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.C_NUMBER_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,{className:"string",variants:[{begin:'@"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE]}]},{className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma ifdef ifndef include"},contains:[{begin:/\\\n/,relevance:0},e.inherit(e.QUOTE_STRING_MODE,{className:"string"}),{className:"string",begin:/<.*?>/,end:/$/,illegal:"\\n"},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{className:"class",begin:"("+i.keyword.join("|")+")\\b",end:/(\{|$)/,excludeEnd:!0,keywords:i,contains:[e.UNDERSCORE_TITLE_MODE]},{begin:"\\."+e.UNDERSCORE_IDENT_RE,relevance:0}]}}function Nhn(e){const t=e.regex,n=["abs","accept","alarm","and","atan2","bind","binmode","bless","break","caller","chdir","chmod","chomp","chop","chown","chr","chroot","close","closedir","connect","continue","cos","crypt","dbmclose","dbmopen","defined","delete","die","do","dump","each","else","elsif","endgrent","endhostent","endnetent","endprotoent","endpwent","endservent","eof","eval","exec","exists","exit","exp","fcntl","fileno","flock","for","foreach","fork","format","formline","getc","getgrent","getgrgid","getgrnam","gethostbyaddr","gethostbyname","gethostent","getlogin","getnetbyaddr","getnetbyname","getnetent","getpeername","getpgrp","getpriority","getprotobyname","getprotobynumber","getprotoent","getpwent","getpwnam","getpwuid","getservbyname","getservbyport","getservent","getsockname","getsockopt","given","glob","gmtime","goto","grep","gt","hex","if","index","int","ioctl","join","keys","kill","last","lc","lcfirst","length","link","listen","local","localtime","log","lstat","lt","ma","map","mkdir","msgctl","msgget","msgrcv","msgsnd","my","ne","next","no","not","oct","open","opendir","or","ord","our","pack","package","pipe","pop","pos","print","printf","prototype","push","q|0","qq","quotemeta","qw","qx","rand","read","readdir","readline","readlink","readpipe","recv","redo","ref","rename","require","reset","return","reverse","rewinddir","rindex","rmdir","say","scalar","seek","seekdir","select","semctl","semget","semop","send","setgrent","sethostent","setnetent","setpgrp","setpriority","setprotoent","setpwent","setservent","setsockopt","shift","shmctl","shmget","shmread","shmwrite","shutdown","sin","sleep","socket","socketpair","sort","splice","split","sprintf","sqrt","srand","stat","state","study","sub","substr","symlink","syscall","sysopen","sysread","sysseek","system","syswrite","tell","telldir","tie","tied","time","times","tr","truncate","uc","ucfirst","umask","undef","unless","unlink","unpack","unshift","untie","until","use","utime","values","vec","wait","waitpid","wantarray","warn","when","while","write","x|0","xor","y|0"],r=/[dualxmsipngr]{0,12}/,i={$pattern:/[\w.]+/,keyword:n.join(" ")},o={className:"subst",begin:"[$@]\\{",end:"\\}",keywords:i},a={begin:/->\{/,end:/\}/},s={variants:[{begin:/\$\d/},{begin:t.concat(/[$%@](\^\w\b|#\w+(::\w+)*|\{\w+\}|\w+(::\w*)*)/,"(?![A-Za-z])(?![@$%])")},{begin:/[$%@][^\s\w{]/,relevance:0}]},l=[e.BACKSLASH_ESCAPE,o,s],c=[/!/,/\//,/\|/,/\?/,/'/,/"/,/#/],u=(h,m,g="\\1")=>{const v=g==="\\1"?g:t.concat(g,m);return t.concat(t.concat("(?:",h,")"),m,/(?:\\.|[^\\\/])*?/,v,/(?:\\.|[^\\\/])*?/,g,r)},d=(h,m,g)=>t.concat(t.concat("(?:",h,")"),m,/(?:\\.|[^\\\/])*?/,g,r),f=[s,e.HASH_COMMENT_MODE,e.COMMENT(/^=\w/,/=cut/,{endsWithParent:!0}),a,{className:"string",contains:l,variants:[{begin:"q[qwxr]?\\s*\\(",end:"\\)",relevance:5},{begin:"q[qwxr]?\\s*\\[",end:"\\]",relevance:5},{begin:"q[qwxr]?\\s*\\{",end:"\\}",relevance:5},{begin:"q[qwxr]?\\s*\\|",end:"\\|",relevance:5},{begin:"q[qwxr]?\\s*<",end:">",relevance:5},{begin:"qw\\s+q",end:"q",relevance:5},{begin:"'",end:"'",contains:[e.BACKSLASH_ESCAPE]},{begin:'"',end:'"'},{begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE]},{begin:/\{\w+\}/,relevance:0},{begin:"-?\\w+\\s*=>",relevance:0}]},{className:"number",begin:"(\\b0[0-7_]+)|(\\b0x[0-9a-fA-F_]+)|(\\b[1-9][0-9_]*(\\.[0-9_]+)?)|[0_]\\b",relevance:0},{begin:"(\\/\\/|"+e.RE_STARTERS_RE+"|\\b(split|return|print|reverse|grep)\\b)\\s*",keywords:"split return print reverse grep",relevance:0,contains:[e.HASH_COMMENT_MODE,{className:"regexp",variants:[{begin:u("s|tr|y",t.either(...c,{capture:!0}))},{begin:u("s|tr|y","\\(","\\)")},{begin:u("s|tr|y","\\[","\\]")},{begin:u("s|tr|y","\\{","\\}")}],relevance:2},{className:"regexp",variants:[{begin:/(m|qr)\/\//,relevance:0},{begin:d("(?:m|qr)?",/\//,/\//)},{begin:d("m|qr",t.either(...c,{capture:!0}),/\1/)},{begin:d("m|qr",/\(/,/\)/)},{begin:d("m|qr",/\[/,/\]/)},{begin:d("m|qr",/\{/,/\}/)}]}]},{className:"function",beginKeywords:"sub",end:"(\\s*\\(.*?\\))?[;{]",excludeEnd:!0,relevance:5,contains:[e.TITLE_MODE]},{begin:"-\\w\\b",relevance:0},{begin:"^__DATA__$",end:"^__END__$",subLanguage:"mojolicious",contains:[{begin:"^@@.*",end:"$",className:"comment"}]}];return o.contains=f,a.contains=f,{name:"Perl",aliases:["pl","pm"],keywords:i,contains:f}}function Mhn(e){const t=e.regex,n=/(?![A-Za-z0-9])(?![$])/,r=t.concat(/[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*/,n),i=t.concat(/(\\?[A-Z][a-z0-9_\x7f-\xff]+|\\?[A-Z]+(?=[A-Z][a-z0-9_\x7f-\xff])){1,}/,n),o={scope:"variable",match:"\\$+"+r},a={scope:"meta",variants:[{begin:/<\?php/,relevance:10},{begin:/<\?=/},{begin:/<\?/,relevance:.1},{begin:/\?>/}]},s={scope:"subst",variants:[{begin:/\$\w+/},{begin:/\{\$/,end:/\}/}]},l=e.inherit(e.APOS_STRING_MODE,{illegal:null}),c=e.inherit(e.QUOTE_STRING_MODE,{illegal:null,contains:e.QUOTE_STRING_MODE.contains.concat(s)}),u={begin:/<<<[ \t]*(?:(\w+)|"(\w+)")\n/,end:/[ \t]*(\w+)\b/,contains:e.QUOTE_STRING_MODE.contains.concat(s),"on:begin":(I,M)=>{M.data._beginMatch=I[1]||I[2]},"on:end":(I,M)=>{M.data._beginMatch!==I[1]&&M.ignoreMatch()}},d=e.END_SAME_AS_BEGIN({begin:/<<<[ \t]*'(\w+)'\n/,end:/[ \t]*(\w+)\b/}),f=`[
]`,h={scope:"string",variants:[c,l,u,d]},m={scope:"number",variants:[{begin:"\\b0[bB][01]+(?:_[01]+)*\\b"},{begin:"\\b0[oO][0-7]+(?:_[0-7]+)*\\b"},{begin:"\\b0[xX][\\da-fA-F]+(?:_[\\da-fA-F]+)*\\b"},{begin:"(?:\\b\\d+(?:_\\d+)*(\\.(?:\\d+(?:_\\d+)*))?|\\B\\.\\d+)(?:[eE][+-]?\\d+)?"}],relevance:0},g=["false","null","true"],v=["__CLASS__","__DIR__","__FILE__","__FUNCTION__","__COMPILER_HALT_OFFSET__","__LINE__","__METHOD__","__NAMESPACE__","__TRAIT__","die","echo","exit","include","include_once","print","require","require_once","array","abstract","and","as","binary","bool","boolean","break","callable","case","catch","class","clone","const","continue","declare","default","do","double","else","elseif","empty","enddeclare","endfor","endforeach","endif","endswitch","endwhile","enum","eval","extends","final","finally","float","for","foreach","from","global","goto","if","implements","instanceof","insteadof","int","integer","interface","isset","iterable","list","match|0","mixed","new","never","object","or","private","protected","public","readonly","real","return","string","switch","throw","trait","try","unset","use","var","void","while","xor","yield"],y=["Error|0","AppendIterator","ArgumentCountError","ArithmeticError","ArrayIterator","ArrayObject","AssertionError","BadFunctionCallException","BadMethodCallException","CachingIterator","CallbackFilterIterator","CompileError","Countable","DirectoryIterator","DivisionByZeroError","DomainException","EmptyIterator","ErrorException","Exception","FilesystemIterator","FilterIterator","GlobIterator","InfiniteIterator","InvalidArgumentException","IteratorIterator","LengthException","LimitIterator","LogicException","MultipleIterator","NoRewindIterator","OutOfBoundsException","OutOfRangeException","OuterIterator","OverflowException","ParentIterator","ParseError","RangeException","RecursiveArrayIterator","RecursiveCachingIterator","RecursiveCallbackFilterIterator","RecursiveDirectoryIterator","RecursiveFilterIterator","RecursiveIterator","RecursiveIteratorIterator","RecursiveRegexIterator","RecursiveTreeIterator","RegexIterator","RuntimeException","SeekableIterator","SplDoublyLinkedList","SplFileInfo","SplFileObject","SplFixedArray","SplHeap","SplMaxHeap","SplMinHeap","SplObjectStorage","SplObserver","SplPriorityQueue","SplQueue","SplStack","SplSubject","SplTempFileObject","TypeError","UnderflowException","UnexpectedValueException","UnhandledMatchError","ArrayAccess","BackedEnum","Closure","Fiber","Generator","Iterator","IteratorAggregate","Serializable","Stringable","Throwable","Traversable","UnitEnum","WeakReference","WeakMap","Directory","__PHP_Incomplete_Class","parent","php_user_filter","self","static","stdClass"],b={keyword:v,literal:(I=>{const M=[];return I.forEach(F=>{M.push(F),F.toLowerCase()===F?M.push(F.toUpperCase()):M.push(F.toLowerCase())}),M})(g),built_in:y},_=I=>I.map(M=>M.replace(/\|\d+$/,"")),E={variants:[{match:[/new/,t.concat(f,"+"),t.concat("(?!",_(y).join("\\b|"),"\\b)"),i],scope:{1:"keyword",4:"title.class"}}]},w=t.concat(r,"\\b(?!\\()"),S={variants:[{match:[t.concat(/::/,t.lookahead(/(?!class\b)/)),w],scope:{2:"variable.constant"}},{match:[/::/,/class/],scope:{2:"variable.language"}},{match:[i,t.concat(/::/,t.lookahead(/(?!class\b)/)),w],scope:{1:"title.class",3:"variable.constant"}},{match:[i,t.concat("::",t.lookahead(/(?!class\b)/))],scope:{1:"title.class"}},{match:[i,/::/,/class/],scope:{1:"title.class",3:"variable.language"}}]},C={scope:"attr",match:t.concat(r,t.lookahead(":"),t.lookahead(/(?!::)/))},T={relevance:0,begin:/\(/,end:/\)/,keywords:b,contains:[C,o,S,e.C_BLOCK_COMMENT_MODE,h,m,E]},x={relevance:0,match:[/\b/,t.concat("(?!fn\\b|function\\b|",_(v).join("\\b|"),"|",_(y).join("\\b|"),"\\b)"),r,t.concat(f,"*"),t.lookahead(/(?=\()/)],scope:{3:"title.function.invoke"},contains:[T]};T.contains.push(x);const O=[C,S,e.C_BLOCK_COMMENT_MODE,h,m,E],N={begin:t.concat(/#\[\s*/,i),beginScope:"meta",end:/]/,endScope:"meta",keywords:{literal:g,keyword:["new","array"]},contains:[{begin:/\[/,end:/]/,keywords:{literal:g,keyword:["new","array"]},contains:["self",...O]},...O,{scope:"meta",match:i}]};return{case_insensitive:!1,keywords:b,contains:[N,e.HASH_COMMENT_MODE,e.COMMENT("//","$"),e.COMMENT("/\\*","\\*/",{contains:[{scope:"doctag",match:"@[A-Za-z]+"}]}),{match:/__halt_compiler\(\);/,keywords:"__halt_compiler",starts:{scope:"comment",end:e.MATCH_NOTHING_RE,contains:[{match:/\?>/,scope:"meta",endsParent:!0}]}},a,{scope:"variable.language",match:/\$this\b/},o,x,S,{match:[/const/,/\s/,r],scope:{1:"keyword",3:"variable.constant"}},E,{scope:"function",relevance:0,beginKeywords:"fn function",end:/[;{]/,excludeEnd:!0,illegal:"[$%\\[]",contains:[{beginKeywords:"use"},e.UNDERSCORE_TITLE_MODE,{begin:"=>",endsParent:!0},{scope:"params",begin:"\\(",end:"\\)",excludeBegin:!0,excludeEnd:!0,keywords:b,contains:["self",o,S,e.C_BLOCK_COMMENT_MODE,h,m]}]},{scope:"class",variants:[{beginKeywords:"enum",illegal:/[($"]/},{beginKeywords:"class interface trait",illegal:/[:($"]/}],relevance:0,end:/\{/,excludeEnd:!0,contains:[{beginKeywords:"extends implements"},e.UNDERSCORE_TITLE_MODE]},{beginKeywords:"namespace",relevance:0,end:";",illegal:/[.']/,contains:[e.inherit(e.UNDERSCORE_TITLE_MODE,{scope:"title.class"})]},{beginKeywords:"use",relevance:0,end:";",contains:[{match:/\b(as|const|function)\b/,scope:"keyword"},e.UNDERSCORE_TITLE_MODE]},h,m]}}function khn(e){return{name:"PHP template",subLanguage:"xml",contains:[{begin:/<\?(php|=)?/,end:/\?>/,subLanguage:"php",contains:[{begin:"/\\*",end:"\\*/",skip:!0},{begin:'b"',end:'"',skip:!0},{begin:"b'",end:"'",skip:!0},e.inherit(e.APOS_STRING_MODE,{illegal:null,className:null,contains:null,skip:!0}),e.inherit(e.QUOTE_STRING_MODE,{illegal:null,className:null,contains:null,skip:!0})]}]}}function Phn(e){return{name:"Plain text",aliases:["text","txt"],disableAutodetect:!0}}function Dhn(e){const t=e.regex,n=new RegExp("[\\p{XID_Start}_]\\p{XID_Continue}*","u"),r=["and","as","assert","async","await","break","case","class","continue","def","del","elif","else","except","finally","for","from","global","if","import","in","is","lambda","match","nonlocal|10","not","or","pass","raise","return","try","while","with","yield"],i={$pattern:/[A-Za-z]\w+|__\w+__/,keyword:r,built_in:["__import__","abs","all","any","ascii","bin","bool","breakpoint","bytearray","bytes","callable","chr","classmethod","compile","complex","delattr","dict","dir","divmod","enumerate","eval","exec","filter","float","format","frozenset","getattr","globals","hasattr","hash","help","hex","id","input","int","isinstance","issubclass","iter","len","list","locals","map","max","memoryview","min","next","object","oct","open","ord","pow","print","property","range","repr","reversed","round","set","setattr","slice","sorted","staticmethod","str","sum","super","tuple","type","vars","zip"],literal:["__debug__","Ellipsis","False","None","NotImplemented","True"],type:["Any","Callable","Coroutine","Dict","List","Literal","Generic","Optional","Sequence","Set","Tuple","Type","Union"]},o={className:"meta",begin:/^(>>>|\.\.\.) /},a={className:"subst",begin:/\{/,end:/\}/,keywords:i,illegal:/#/},s={begin:/\{\{/,relevance:0},l={className:"string",contains:[e.BACKSLASH_ESCAPE],variants:[{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?'''/,end:/'''/,contains:[e.BACKSLASH_ESCAPE,o],relevance:10},{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?"""/,end:/"""/,contains:[e.BACKSLASH_ESCAPE,o],relevance:10},{begin:/([fF][rR]|[rR][fF]|[fF])'''/,end:/'''/,contains:[e.BACKSLASH_ESCAPE,o,s,a]},{begin:/([fF][rR]|[rR][fF]|[fF])"""/,end:/"""/,contains:[e.BACKSLASH_ESCAPE,o,s,a]},{begin:/([uU]|[rR])'/,end:/'/,relevance:10},{begin:/([uU]|[rR])"/,end:/"/,relevance:10},{begin:/([bB]|[bB][rR]|[rR][bB])'/,end:/'/},{begin:/([bB]|[bB][rR]|[rR][bB])"/,end:/"/},{begin:/([fF][rR]|[rR][fF]|[fF])'/,end:/'/,contains:[e.BACKSLASH_ESCAPE,s,a]},{begin:/([fF][rR]|[rR][fF]|[fF])"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,s,a]},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},c="[0-9](_?[0-9])*",u=`(\\b(${c}))?\\.(${c})|\\b(${c})\\.`,d=`\\b|${r.join("|")}`,f={className:"number",relevance:0,variants:[{begin:`(\\b(${c})|(${u}))[eE][+-]?(${c})[jJ]?(?=${d})`},{begin:`(${u})[jJ]?`},{begin:`\\b([1-9](_?[0-9])*|0+(_?0)*)[lLjJ]?(?=${d})`},{begin:`\\b0[bB](_?[01])+[lL]?(?=${d})`},{begin:`\\b0[oO](_?[0-7])+[lL]?(?=${d})`},{begin:`\\b0[xX](_?[0-9a-fA-F])+[lL]?(?=${d})`},{begin:`\\b(${c})[jJ](?=${d})`}]},h={className:"comment",begin:t.lookahead(/# type:/),end:/$/,keywords:i,contains:[{begin:/# type:/},{begin:/#/,end:/\b\B/,endsWithParent:!0}]},m={className:"params",variants:[{className:"",begin:/\(\s*\)/,skip:!0},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:i,contains:["self",o,f,l,e.HASH_COMMENT_MODE]}]};return a.contains=[l,f,o],{name:"Python",aliases:["py","gyp","ipython"],unicodeRegex:!0,keywords:i,illegal:/(<\/|\?)|=>/,contains:[o,f,{begin:/\bself\b/},{beginKeywords:"if",relevance:0},l,h,e.HASH_COMMENT_MODE,{match:[/\bdef/,/\s+/,n],scope:{1:"keyword",3:"title.function"},contains:[m]},{variants:[{match:[/\bclass/,/\s+/,n,/\s*/,/\(\s*/,n,/\s*\)/]},{match:[/\bclass/,/\s+/,n]}],scope:{1:"keyword",3:"title.class",6:"title.class.inherited"}},{className:"meta",begin:/^[\t ]*@/,end:/(?=#)|$/,contains:[f,m,l]}]}}function Lhn(e){return{aliases:["pycon"],contains:[{className:"meta.prompt",starts:{end:/ |$/,starts:{end:"$",subLanguage:"python"}},variants:[{begin:/^>>>(?=[ ]|$)/},{begin:/^\.\.\.(?=[ ]|$)/}]}]}}function $hn(e){const t=e.regex,n=/(?:(?:[a-zA-Z]|\.[._a-zA-Z])[._a-zA-Z0-9]*)|\.(?!\d)/,r=t.either(/0[xX][0-9a-fA-F]+\.[0-9a-fA-F]*[pP][+-]?\d+i?/,/0[xX][0-9a-fA-F]+(?:[pP][+-]?\d+)?[Li]?/,/(?:\d+(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+)?[Li]?/),i=/[=!<>:]=|\|\||&&|:::?|<-|<<-|->>|->|\|>|[-+*\/?!$&|:<=>@^~]|\*\*/,o=t.either(/[()]/,/[{}]/,/\[\[/,/[[\]]/,/\\/,/,/);return{name:"R",keywords:{$pattern:n,keyword:"function if in break next repeat else for while",literal:"NULL NA TRUE FALSE Inf NaN NA_integer_|10 NA_real_|10 NA_character_|10 NA_complex_|10",built_in:"LETTERS letters month.abb month.name pi T F abs acos acosh all any anyNA Arg as.call as.character as.complex as.double as.environment as.integer as.logical as.null.default as.numeric as.raw asin asinh atan atanh attr attributes baseenv browser c call ceiling class Conj cos cosh cospi cummax cummin cumprod cumsum digamma dim dimnames emptyenv exp expression floor forceAndCall gamma gc.time globalenv Im interactive invisible is.array is.atomic is.call is.character is.complex is.double is.environment is.expression is.finite is.function is.infinite is.integer is.language is.list is.logical is.matrix is.na is.name is.nan is.null is.numeric is.object is.pairlist is.raw is.recursive is.single is.symbol lazyLoadDBfetch length lgamma list log max min missing Mod names nargs nzchar oldClass on.exit pos.to.env proc.time prod quote range Re rep retracemem return round seq_along seq_len seq.int sign signif sin sinh sinpi sqrt standardGeneric substitute sum switch tan tanh tanpi tracemem trigamma trunc unclass untracemem UseMethod xtfrm"},contains:[e.COMMENT(/#'/,/$/,{contains:[{scope:"doctag",match:/@examples/,starts:{end:t.lookahead(t.either(/\n^#'\s*(?=@[a-zA-Z]+)/,/\n^(?!#')/)),endsParent:!0}},{scope:"doctag",begin:"@param",end:/$/,contains:[{scope:"variable",variants:[{match:n},{match:/`(?:\\.|[^`\\])+`/}],endsParent:!0}]},{scope:"doctag",match:/@[a-zA-Z]+/},{scope:"keyword",match:/\\[a-zA-Z]+/}]}),e.HASH_COMMENT_MODE,{scope:"string",contains:[e.BACKSLASH_ESCAPE],variants:[e.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\(/,end:/\)(-*)"/}),e.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\{/,end:/\}(-*)"/}),e.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\[/,end:/\](-*)"/}),e.END_SAME_AS_BEGIN({begin:/[rR]'(-*)\(/,end:/\)(-*)'/}),e.END_SAME_AS_BEGIN({begin:/[rR]'(-*)\{/,end:/\}(-*)'/}),e.END_SAME_AS_BEGIN({begin:/[rR]'(-*)\[/,end:/\](-*)'/}),{begin:'"',end:'"',relevance:0},{begin:"'",end:"'",relevance:0}]},{relevance:0,variants:[{scope:{1:"operator",2:"number"},match:[i,r]},{scope:{1:"operator",2:"number"},match:[/%[^%]*%/,r]},{scope:{1:"punctuation",2:"number"},match:[o,r]},{scope:{2:"number"},match:[/[^a-zA-Z0-9._]|^/,r]}]},{scope:{3:"operator"},match:[n,/\s+/,/<-/,/\s+/]},{scope:"operator",relevance:0,variants:[{match:i},{match:/%[^%]*%/}]},{scope:"punctuation",relevance:0,match:o},{begin:"`",end:"`",contains:[{begin:/\\./}]}]}}function Fhn(e){const t=e.regex,n="([a-zA-Z_]\\w*[!?=]?|[-+~]@|<<|>>|=~|===?|<=>|[<>]=?|\\*\\*|[-/+%^&*~`|]|\\[\\]=?)",r=t.either(/\b([A-Z]+[a-z0-9]+)+/,/\b([A-Z]+[a-z0-9]+)+[A-Z]+/),i=t.concat(r,/(::\w+)*/),o={"variable.constant":["__FILE__","__LINE__","__ENCODING__"],"variable.language":["self","super"],keyword:["alias","and","begin","BEGIN","break","case","class","defined","do","else","elsif","end","END","ensure","for","if","in","module","next","not","or","redo","require","rescue","retry","return","then","undef","unless","until","when","while","yield","include","extend","prepend","public","private","protected","raise","throw"],built_in:["proc","lambda","attr_accessor","attr_reader","attr_writer","define_method","private_constant","module_function"],literal:["true","false","nil"]},a={className:"doctag",begin:"@[A-Za-z]+"},s={begin:"#<",end:">"},l=[e.COMMENT("#","$",{contains:[a]}),e.COMMENT("^=begin","^=end",{contains:[a],relevance:10}),e.COMMENT("^__END__",e.MATCH_NOTHING_RE)],c={className:"subst",begin:/#\{/,end:/\}/,keywords:o},u={className:"string",contains:[e.BACKSLASH_ESCAPE,c],variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/},{begin:/`/,end:/`/},{begin:/%[qQwWx]?\(/,end:/\)/},{begin:/%[qQwWx]?\[/,end:/\]/},{begin:/%[qQwWx]?\{/,end:/\}/},{begin:/%[qQwWx]?</,end:/>/},{begin:/%[qQwWx]?\//,end:/\//},{begin:/%[qQwWx]?%/,end:/%/},{begin:/%[qQwWx]?-/,end:/-/},{begin:/%[qQwWx]?\|/,end:/\|/},{begin:/\B\?(\\\d{1,3})/},{begin:/\B\?(\\x[A-Fa-f0-9]{1,2})/},{begin:/\B\?(\\u\{?[A-Fa-f0-9]{1,6}\}?)/},{begin:/\B\?(\\M-\\C-|\\M-\\c|\\c\\M-|\\M-|\\C-\\M-)[\x20-\x7e]/},{begin:/\B\?\\(c|C-)[\x20-\x7e]/},{begin:/\B\?\\?\S/},{begin:t.concat(/<<[-~]?'?/,t.lookahead(/(\w+)(?=\W)[^\n]*\n(?:[^\n]*\n)*?\s*\1\b/)),contains:[e.END_SAME_AS_BEGIN({begin:/(\w+)/,end:/(\w+)/,contains:[e.BACKSLASH_ESCAPE,c]})]}]},d="[1-9](_?[0-9])*|0",f="[0-9](_?[0-9])*",h={className:"number",relevance:0,variants:[{begin:`\\b(${d})(\\.(${f}))?([eE][+-]?(${f})|r)?i?\\b`},{begin:"\\b0[dD][0-9](_?[0-9])*r?i?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*r?i?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*r?i?\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*r?i?\\b"},{begin:"\\b0(_?[0-7])+r?i?\\b"}]},m={variants:[{match:/\(\)/},{className:"params",begin:/\(/,end:/(?=\))/,excludeBegin:!0,endsParent:!0,keywords:o}]},g=[u,{variants:[{match:[/class\s+/,i,/\s+<\s+/,i]},{match:[/\b(class|module)\s+/,i]}],scope:{2:"title.class",4:"title.class.inherited"},keywords:o},{match:[/(include|extend)\s+/,i],scope:{2:"title.class"},keywords:o},{relevance:0,match:[i,/\.new[. (]/],scope:{1:"title.class"}},{relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"},{relevance:0,match:r,scope:"title.class"},{match:[/def/,/\s+/,n],scope:{1:"keyword",3:"title.function"},contains:[m]},{begin:e.IDENT_RE+"::"},{className:"symbol",begin:e.UNDERSCORE_IDENT_RE+"(!|\\?)?:",relevance:0},{className:"symbol",begin:":(?!\\s)",contains:[u,{begin:n}],relevance:0},h,{className:"variable",begin:"(\\$\\W)|((\\$|@@?)(\\w+))(?=[^@$?])(?![A-Za-z])(?![@$?'])"},{className:"params",begin:/\|/,end:/\|/,excludeBegin:!0,excludeEnd:!0,relevance:0,keywords:o},{begin:"("+e.RE_STARTERS_RE+"|unless)\\s*",keywords:"unless",contains:[{className:"regexp",contains:[e.BACKSLASH_ESCAPE,c],illegal:/\n/,variants:[{begin:"/",end:"/[a-z]*"},{begin:/%r\{/,end:/\}[a-z]*/},{begin:"%r\\(",end:"\\)[a-z]*"},{begin:"%r!",end:"![a-z]*"},{begin:"%r\\[",end:"\\][a-z]*"}]}].concat(s,l),relevance:0}].concat(s,l);c.contains=g,m.contains=g;const v=[{begin:/^\s*=>/,starts:{end:"$",contains:g}},{className:"meta.prompt",begin:"^([>?]>|[\\w#]+\\(\\w+\\):\\d+:\\d+[>*]|(\\w+-)?\\d+\\.\\d+\\.\\d+(p\\d+)?[^\\d][^>]+>)(?=[ ])",starts:{end:"$",keywords:o,contains:g}}];return l.unshift(s),{name:"Ruby",aliases:["rb","gemspec","podspec","thor","irb"],keywords:o,illegal:/\/\*/,contains:[e.SHEBANG({binary:"ruby"})].concat(v).concat(l).concat(g)}}function Bhn(e){const t=e.regex,n={className:"title.function.invoke",relevance:0,begin:t.concat(/\b/,/(?!let|for|while|if|else|match\b)/,e.IDENT_RE,t.lookahead(/\s*\(/))},r="([ui](8|16|32|64|128|size)|f(32|64))?",i=["abstract","as","async","await","become","box","break","const","continue","crate","do","dyn","else","enum","extern","false","final","fn","for","if","impl","in","let","loop","macro","match","mod","move","mut","override","priv","pub","ref","return","self","Self","static","struct","super","trait","true","try","type","typeof","unsafe","unsized","use","virtual","where","while","yield"],o=["true","false","Some","None","Ok","Err"],a=["drop ","Copy","Send","Sized","Sync","Drop","Fn","FnMut","FnOnce","ToOwned","Clone","Debug","PartialEq","PartialOrd","Eq","Ord","AsRef","AsMut","Into","From","Default","Iterator","Extend","IntoIterator","DoubleEndedIterator","ExactSizeIterator","SliceConcatExt","ToString","assert!","assert_eq!","bitflags!","bytes!","cfg!","col!","concat!","concat_idents!","debug_assert!","debug_assert_eq!","env!","eprintln!","panic!","file!","format!","format_args!","include_bytes!","include_str!","line!","local_data_key!","module_path!","option_env!","print!","println!","select!","stringify!","try!","unimplemented!","unreachable!","vec!","write!","writeln!","macro_rules!","assert_ne!","debug_assert_ne!"],s=["i8","i16","i32","i64","i128","isize","u8","u16","u32","u64","u128","usize","f32","f64","str","char","bool","Box","Option","Result","String","Vec"];return{name:"Rust",aliases:["rs"],keywords:{$pattern:e.IDENT_RE+"!?",type:s,keyword:i,literal:o,built_in:a},illegal:"</",contains:[e.C_LINE_COMMENT_MODE,e.COMMENT("/\\*","\\*/",{contains:["self"]}),e.inherit(e.QUOTE_STRING_MODE,{begin:/b?"/,illegal:null}),{className:"string",variants:[{begin:/b?r(#*)"(.|\n)*?"\1(?!#)/},{begin:/b?'\\?(x\w{2}|u\w{4}|U\w{8}|.)'/}]},{className:"symbol",begin:/'[a-zA-Z_][a-zA-Z0-9_]*/},{className:"number",variants:[{begin:"\\b0b([01_]+)"+r},{begin:"\\b0o([0-7_]+)"+r},{begin:"\\b0x([A-Fa-f0-9_]+)"+r},{begin:"\\b(\\d[\\d_]*(\\.[0-9_]+)?([eE][+-]?[0-9_]+)?)"+r}],relevance:0},{begin:[/fn/,/\s+/,e.UNDERSCORE_IDENT_RE],className:{1:"keyword",3:"title.function"}},{className:"meta",begin:"#!?\\[",end:"\\]",contains:[{className:"string",begin:/"/,end:/"/}]},{begin:[/let/,/\s+/,/(?:mut\s+)?/,e.UNDERSCORE_IDENT_RE],className:{1:"keyword",3:"keyword",4:"variable"}},{begin:[/for/,/\s+/,e.UNDERSCORE_IDENT_RE,/\s+/,/in/],className:{1:"keyword",3:"variable",5:"keyword"}},{begin:[/type/,/\s+/,e.UNDERSCORE_IDENT_RE],className:{1:"keyword",3:"title.class"}},{begin:[/(?:trait|enum|struct|union|impl|for)/,/\s+/,e.UNDERSCORE_IDENT_RE],className:{1:"keyword",3:"title.class"}},{begin:e.IDENT_RE+"::",keywords:{keyword:"Self",built_in:a,type:s}},{className:"punctuation",begin:"->"},n]}}const jhn=e=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:e.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:e.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z_][A-Za-z0-9_-]*/}}),Hhn=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","p","q","quote","samp","section","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],Uhn=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"],zhn=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"],Vhn=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"],Ghn=["align-content","align-items","align-self","all","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-repeat","background-size","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-decoration-break","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","content","content-visibility","counter-increment","counter-reset","cue","cue-after","cue-before","cursor","direction","display","empty-cells","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-size","font-size-adjust","font-smoothing","font-stretch","font-style","font-synthesis","font-variant","font-variant-caps","font-variant-east-asian","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","gap","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","inline-size","isolation","justify-content","left","letter-spacing","line-break","line-height","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-wrap","overflow-x","overflow-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page-break-after","page-break-before","page-break-inside","pause","pause-after","pause-before","perspective","perspective-origin","pointer-events","position","quotes","resize","rest","rest-after","rest-before","right","row-gap","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","speak","speak-as","src","tab-size","table-layout","text-align","text-align-all","text-align-last","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-style","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-transform","text-underline-position","top","transform","transform-box","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","unicode-bidi","vertical-align","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","z-index"].reverse();function Whn(e){const t=jhn(e),n=Vhn,r=zhn,i="@[a-z-]+",o="and or not only",a={className:"variable",begin:"(\\$[a-zA-Z-][a-zA-Z0-9_-]*)\\b",relevance:0};return{name:"SCSS",case_insensitive:!0,illegal:"[=/|']",contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,t.CSS_NUMBER_MODE,{className:"selector-id",begin:"#[A-Za-z0-9_-]+",relevance:0},{className:"selector-class",begin:"\\.[A-Za-z0-9_-]+",relevance:0},t.ATTRIBUTE_SELECTOR_MODE,{className:"selector-tag",begin:"\\b("+Hhn.join("|")+")\\b",relevance:0},{className:"selector-pseudo",begin:":("+r.join("|")+")"},{className:"selector-pseudo",begin:":(:)?("+n.join("|")+")"},a,{begin:/\(/,end:/\)/,contains:[t.CSS_NUMBER_MODE]},t.CSS_VARIABLE,{className:"attribute",begin:"\\b("+Ghn.join("|")+")\\b"},{begin:"\\b(whitespace|wait|w-resize|visible|vertical-text|vertical-ideographic|uppercase|upper-roman|upper-alpha|underline|transparent|top|thin|thick|text|text-top|text-bottom|tb-rl|table-header-group|table-footer-group|sw-resize|super|strict|static|square|solid|small-caps|separate|se-resize|scroll|s-resize|rtl|row-resize|ridge|right|repeat|repeat-y|repeat-x|relative|progress|pointer|overline|outside|outset|oblique|nowrap|not-allowed|normal|none|nw-resize|no-repeat|no-drop|newspaper|ne-resize|n-resize|move|middle|medium|ltr|lr-tb|lowercase|lower-roman|lower-alpha|loose|list-item|line|line-through|line-edge|lighter|left|keep-all|justify|italic|inter-word|inter-ideograph|inside|inset|inline|inline-block|inherit|inactive|ideograph-space|ideograph-parenthesis|ideograph-numeric|ideograph-alpha|horizontal|hidden|help|hand|groove|fixed|ellipsis|e-resize|double|dotted|distribute|distribute-space|distribute-letter|distribute-all-lines|disc|disabled|default|decimal|dashed|crosshair|collapse|col-resize|circle|char|center|capitalize|break-word|break-all|bottom|both|bolder|bold|block|bidi-override|below|baseline|auto|always|all-scroll|absolute|table|table-cell)\\b"},{begin:/:/,end:/[;}{]/,relevance:0,contains:[t.BLOCK_COMMENT,a,t.HEXCOLOR,t.CSS_NUMBER_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,t.IMPORTANT,t.FUNCTION_DISPATCH]},{begin:"@(page|font-face)",keywords:{$pattern:i,keyword:"@page @font-face"}},{begin:"@",end:"[{;]",returnBegin:!0,keywords:{$pattern:/[a-z-]+/,keyword:o,attribute:Uhn.join(" ")},contains:[{begin:i,className:"keyword"},{begin:/[a-z-]+(?=:)/,className:"attribute"},a,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,t.HEXCOLOR,t.CSS_NUMBER_MODE]},t.FUNCTION_DISPATCH]}}function qhn(e){return{name:"Shell Session",aliases:["console","shellsession"],contains:[{className:"meta.prompt",begin:/^\s{0,3}[/~\w\d[\]()@-]*[>%$#][ ]?/,starts:{end:/[^\\](?=\s*$)/,subLanguage:"bash"}}]}}function Yhn(e){const t=e.regex,n=e.COMMENT("--","$"),r={className:"string",variants:[{begin:/'/,end:/'/,contains:[{begin:/''/}]}]},i={begin:/"/,end:/"/,contains:[{begin:/""/}]},o=["true","false","unknown"],a=["double precision","large object","with timezone","without timezone"],s=["bigint","binary","blob","boolean","char","character","clob","date","dec","decfloat","decimal","float","int","integer","interval","nchar","nclob","national","numeric","real","row","smallint","time","timestamp","varchar","varying","varbinary"],l=["add","asc","collation","desc","final","first","last","view"],c=["abs","acos","all","allocate","alter","and","any","are","array","array_agg","array_max_cardinality","as","asensitive","asin","asymmetric","at","atan","atomic","authorization","avg","begin","begin_frame","begin_partition","between","bigint","binary","blob","boolean","both","by","call","called","cardinality","cascaded","case","cast","ceil","ceiling","char","char_length","character","character_length","check","classifier","clob","close","coalesce","collate","collect","column","commit","condition","connect","constraint","contains","convert","copy","corr","corresponding","cos","cosh","count","covar_pop","covar_samp","create","cross","cube","cume_dist","current","current_catalog","current_date","current_default_transform_group","current_path","current_role","current_row","current_schema","current_time","current_timestamp","current_path","current_role","current_transform_group_for_type","current_user","cursor","cycle","date","day","deallocate","dec","decimal","decfloat","declare","default","define","delete","dense_rank","deref","describe","deterministic","disconnect","distinct","double","drop","dynamic","each","element","else","empty","end","end_frame","end_partition","end-exec","equals","escape","every","except","exec","execute","exists","exp","external","extract","false","fetch","filter","first_value","float","floor","for","foreign","frame_row","free","from","full","function","fusion","get","global","grant","group","grouping","groups","having","hold","hour","identity","in","indicator","initial","inner","inout","insensitive","insert","int","integer","intersect","intersection","interval","into","is","join","json_array","json_arrayagg","json_exists","json_object","json_objectagg","json_query","json_table","json_table_primitive","json_value","lag","language","large","last_value","lateral","lead","leading","left","like","like_regex","listagg","ln","local","localtime","localtimestamp","log","log10","lower","match","match_number","match_recognize","matches","max","member","merge","method","min","minute","mod","modifies","module","month","multiset","national","natural","nchar","nclob","new","no","none","normalize","not","nth_value","ntile","null","nullif","numeric","octet_length","occurrences_regex","of","offset","old","omit","on","one","only","open","or","order","out","outer","over","overlaps","overlay","parameter","partition","pattern","per","percent","percent_rank","percentile_cont","percentile_disc","period","portion","position","position_regex","power","precedes","precision","prepare","primary","procedure","ptf","range","rank","reads","real","recursive","ref","references","referencing","regr_avgx","regr_avgy","regr_count","regr_intercept","regr_r2","regr_slope","regr_sxx","regr_sxy","regr_syy","release","result","return","returns","revoke","right","rollback","rollup","row","row_number","rows","running","savepoint","scope","scroll","search","second","seek","select","sensitive","session_user","set","show","similar","sin","sinh","skip","smallint","some","specific","specifictype","sql","sqlexception","sqlstate","sqlwarning","sqrt","start","static","stddev_pop","stddev_samp","submultiset","subset","substring","substring_regex","succeeds","sum","symmetric","system","system_time","system_user","table","tablesample","tan","tanh","then","time","timestamp","timezone_hour","timezone_minute","to","trailing","translate","translate_regex","translation","treat","trigger","trim","trim_array","true","truncate","uescape","union","unique","unknown","unnest","update","upper","user","using","value","values","value_of","var_pop","var_samp","varbinary","varchar","varying","versioning","when","whenever","where","width_bucket","window","with","within","without","year"],u=["abs","acos","array_agg","asin","atan","avg","cast","ceil","ceiling","coalesce","corr","cos","cosh","count","covar_pop","covar_samp","cume_dist","dense_rank","deref","element","exp","extract","first_value","floor","json_array","json_arrayagg","json_exists","json_object","json_objectagg","json_query","json_table","json_table_primitive","json_value","lag","last_value","lead","listagg","ln","log","log10","lower","max","min","mod","nth_value","ntile","nullif","percent_rank","percentile_cont","percentile_disc","position","position_regex","power","rank","regr_avgx","regr_avgy","regr_count","regr_intercept","regr_r2","regr_slope","regr_sxx","regr_sxy","regr_syy","row_number","sin","sinh","sqrt","stddev_pop","stddev_samp","substring","substring_regex","sum","tan","tanh","translate","translate_regex","treat","trim","trim_array","unnest","upper","value_of","var_pop","var_samp","width_bucket"],d=["current_catalog","current_date","current_default_transform_group","current_path","current_role","current_schema","current_transform_group_for_type","current_user","session_user","system_time","system_user","current_time","localtime","current_timestamp","localtimestamp"],f=["create table","insert into","primary key","foreign key","not null","alter table","add constraint","grouping sets","on overflow","character set","respect nulls","ignore nulls","nulls first","nulls last","depth first","breadth first"],h=u,m=[...c,...l].filter(_=>!u.includes(_)),g={className:"variable",begin:/@[a-z0-9][a-z0-9_]*/},v={className:"operator",begin:/[-+*/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?/,relevance:0},y={begin:t.concat(/\b/,t.either(...h),/\s*\(/),relevance:0,keywords:{built_in:h}};function b(_,{exceptions:E,when:w}={}){const S=w;return E=E||[],_.map(C=>C.match(/\|\d+$/)||E.includes(C)?C:S(C)?`${C}|0`:C)}return{name:"SQL",case_insensitive:!0,illegal:/[{}]|<\//,keywords:{$pattern:/\b[\w\.]+/,keyword:b(m,{when:_=>_.length<3}),literal:o,type:s,built_in:d},contains:[{begin:t.either(...f),relevance:0,keywords:{$pattern:/[\w\.]+/,keyword:m.concat(f),literal:o,type:s}},{className:"type",begin:t.either(...a)},y,g,r,i,e.C_NUMBER_MODE,e.C_BLOCK_COMMENT_MODE,n,v]}}function DPe(e){return e?typeof e=="string"?e:e.source:null}function EI(e){return ki("(?=",e,")")}function ki(...e){return e.map(t=>DPe(t)).join("")}function Khn(e){const t=e[e.length-1];return typeof t=="object"&&t.constructor===Object?(e.splice(e.length-1,1),t):{}}function yl(...e){return"("+(Khn(e).capture?"":"?:")+e.map(t=>DPe(t)).join("|")+")"}const TX=e=>ki(/\b/,e,/\w$/.test(e)?/\b/:/\B/),Qhn=["Protocol","Type"].map(TX),Lfe=["init","self"].map(TX),Xhn=["Any","Self"],$6=["actor","any","associatedtype","async","await",/as\?/,/as!/,"as","borrowing","break","case","catch","class","consume","consuming","continue","convenience","copy","default","defer","deinit","didSet","distributed","do","dynamic","each","else","enum","extension","fallthrough",/fileprivate\(set\)/,"fileprivate","final","for","func","get","guard","if","import","indirect","infix",/init\?/,/init!/,"inout",/internal\(set\)/,"internal","in","is","isolated","nonisolated","lazy","let","macro","mutating","nonmutating",/open\(set\)/,"open","operator","optional","override","postfix","precedencegroup","prefix",/private\(set\)/,"private","protocol",/public\(set\)/,"public","repeat","required","rethrows","return","set","some","static","struct","subscript","super","switch","throws","throw",/try\?/,/try!/,"try","typealias",/unowned\(safe\)/,/unowned\(unsafe\)/,"unowned","var","weak","where","while","willSet"],$fe=["false","nil","true"],Zhn=["assignment","associativity","higherThan","left","lowerThan","none","right"],Jhn=["#colorLiteral","#column","#dsohandle","#else","#elseif","#endif","#error","#file","#fileID","#fileLiteral","#filePath","#function","#if","#imageLiteral","#keyPath","#line","#selector","#sourceLocation","#warning"],Ffe=["abs","all","any","assert","assertionFailure","debugPrint","dump","fatalError","getVaList","isKnownUniquelyReferenced","max","min","numericCast","pointwiseMax","pointwiseMin","precondition","preconditionFailure","print","readLine","repeatElement","sequence","stride","swap","swift_unboxFromSwiftValueWithType","transcode","type","unsafeBitCast","unsafeDowncast","withExtendedLifetime","withUnsafeMutablePointer","withUnsafePointer","withVaList","withoutActuallyEscaping","zip"],LPe=yl(/[/=\-+!*%<>&|^~?]/,/[\u00A1-\u00A7]/,/[\u00A9\u00AB]/,/[\u00AC\u00AE]/,/[\u00B0\u00B1]/,/[\u00B6\u00BB\u00BF\u00D7\u00F7]/,/[\u2016-\u2017]/,/[\u2020-\u2027]/,/[\u2030-\u203E]/,/[\u2041-\u2053]/,/[\u2055-\u205E]/,/[\u2190-\u23FF]/,/[\u2500-\u2775]/,/[\u2794-\u2BFF]/,/[\u2E00-\u2E7F]/,/[\u3001-\u3003]/,/[\u3008-\u3020]/,/[\u3030]/),$Pe=yl(LPe,/[\u0300-\u036F]/,/[\u1DC0-\u1DFF]/,/[\u20D0-\u20FF]/,/[\uFE00-\uFE0F]/,/[\uFE20-\uFE2F]/),F6=ki(LPe,$Pe,"*"),FPe=yl(/[a-zA-Z_]/,/[\u00A8\u00AA\u00AD\u00AF\u00B2-\u00B5\u00B7-\u00BA]/,/[\u00BC-\u00BE\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF]/,/[\u0100-\u02FF\u0370-\u167F\u1681-\u180D\u180F-\u1DBF]/,/[\u1E00-\u1FFF]/,/[\u200B-\u200D\u202A-\u202E\u203F-\u2040\u2054\u2060-\u206F]/,/[\u2070-\u20CF\u2100-\u218F\u2460-\u24FF\u2776-\u2793]/,/[\u2C00-\u2DFF\u2E80-\u2FFF]/,/[\u3004-\u3007\u3021-\u302F\u3031-\u303F\u3040-\uD7FF]/,/[\uF900-\uFD3D\uFD40-\uFDCF\uFDF0-\uFE1F\uFE30-\uFE44]/,/[\uFE47-\uFEFE\uFF00-\uFFFD]/),y4=yl(FPe,/\d/,/[\u0300-\u036F\u1DC0-\u1DFF\u20D0-\u20FF\uFE20-\uFE2F]/),Cp=ki(FPe,y4,"*"),B6=ki(/[A-Z]/,y4,"*"),emn=["attached","autoclosure",ki(/convention\(/,yl("swift","block","c"),/\)/),"discardableResult","dynamicCallable","dynamicMemberLookup","escaping","freestanding","frozen","GKInspectable","IBAction","IBDesignable","IBInspectable","IBOutlet","IBSegueAction","inlinable","main","nonobjc","NSApplicationMain","NSCopying","NSManaged",ki(/objc\(/,Cp,/\)/),"objc","objcMembers","propertyWrapper","requires_stored_property_inits","resultBuilder","Sendable","testable","UIApplicationMain","unchecked","unknown","usableFromInline","warn_unqualified_access"],tmn=["iOS","iOSApplicationExtension","macOS","macOSApplicationExtension","macCatalyst","macCatalystApplicationExtension","watchOS","watchOSApplicationExtension","tvOS","tvOSApplicationExtension","swift"];function nmn(e){const t={match:/\s+/,relevance:0},n=e.COMMENT("/\\*","\\*/",{contains:["self"]}),r=[e.C_LINE_COMMENT_MODE,n],i={match:[/\./,yl(...Qhn,...Lfe)],className:{2:"keyword"}},o={match:ki(/\./,yl(...$6)),relevance:0},a=$6.filter(le=>typeof le=="string").concat(["_|0"]),s=$6.filter(le=>typeof le!="string").concat(Xhn).map(TX),l={variants:[{className:"keyword",match:yl(...s,...Lfe)}]},c={$pattern:yl(/\b\w+/,/#\w+/),keyword:a.concat(Jhn),literal:$fe},u=[i,o,l],d={match:ki(/\./,yl(...Ffe)),relevance:0},f={className:"built_in",match:ki(/\b/,yl(...Ffe),/(?=\()/)},h=[d,f],m={match:/->/,relevance:0},g={className:"operator",relevance:0,variants:[{match:F6},{match:`\\.(\\.|${$Pe})+`}]},v=[m,g],y="([0-9]_*)+",b="([0-9a-fA-F]_*)+",_={className:"number",relevance:0,variants:[{match:`\\b(${y})(\\.(${y}))?([eE][+-]?(${y}))?\\b`},{match:`\\b0x(${b})(\\.(${b}))?([pP][+-]?(${y}))?\\b`},{match:/\b0o([0-7]_*)+\b/},{match:/\b0b([01]_*)+\b/}]},E=(le="")=>({className:"subst",variants:[{match:ki(/\\/,le,/[0\\tnr"']/)},{match:ki(/\\/,le,/u\{[0-9a-fA-F]{1,8}\}/)}]}),w=(le="")=>({className:"subst",match:ki(/\\/,le,/[\t ]*(?:[\r\n]|\r\n)/)}),S=(le="")=>({className:"subst",label:"interpol",begin:ki(/\\/,le,/\(/),end:/\)/}),C=(le="")=>({begin:ki(le,/"""/),end:ki(/"""/,le),contains:[E(le),w(le),S(le)]}),T=(le="")=>({begin:ki(le,/"/),end:ki(/"/,le),contains:[E(le),S(le)]}),x={className:"string",variants:[C(),C("#"),C("##"),C("###"),T(),T("#"),T("##"),T("###")]},O=[e.BACKSLASH_ESCAPE,{begin:/\[/,end:/\]/,relevance:0,contains:[e.BACKSLASH_ESCAPE]}],N={begin:/\/[^\s](?=[^/\n]*\/)/,end:/\//,contains:O},I=le=>{const ve=ki(le,/\//),ne=ki(/\//,le);return{begin:ve,end:ne,contains:[...O,{scope:"comment",begin:`#(?!.*${ne})`,end:/$/}]}},M={scope:"regexp",variants:[I("###"),I("##"),I("#"),N]},F={match:ki(/`/,Cp,/`/)},k={className:"variable",match:/\$\d+/},B={className:"variable",match:`\\$${y4}+`},A=[F,k,B],P={match:/(@|#(un)?)available/,scope:"keyword",starts:{contains:[{begin:/\(/,end:/\)/,keywords:tmn,contains:[...v,_,x]}]}},z={scope:"keyword",match:ki(/@/,yl(...emn))},L={scope:"meta",match:ki(/@/,Cp)},V=[P,z,L],j={match:EI(/\b[A-Z]/),relevance:0,contains:[{className:"type",match:ki(/(AV|CA|CF|CG|CI|CL|CM|CN|CT|MK|MP|MTK|MTL|NS|SCN|SK|UI|WK|XC)/,y4,"+")},{className:"type",match:B6,relevance:0},{match:/[?!]+/,relevance:0},{match:/\.\.\./,relevance:0},{match:ki(/\s+&\s+/,EI(B6)),relevance:0}]},U={begin:/</,end:/>/,keywords:c,contains:[...r,...u,...V,m,j]};j.contains.push(U);const J={match:ki(Cp,/\s*:/),keywords:"_|0",relevance:0},te={begin:/\(/,end:/\)/,relevance:0,keywords:c,contains:["self",J,...r,M,...u,...h,...v,_,x,...A,...V,j]},ae={begin:/</,end:/>/,keywords:"repeat each",contains:[...r,j]},K={begin:yl(EI(ki(Cp,/\s*:/)),EI(ki(Cp,/\s+/,Cp,/\s*:/))),end:/:/,relevance:0,contains:[{className:"keyword",match:/\b_\b/},{className:"params",match:Cp}]},Q={begin:/\(/,end:/\)/,keywords:c,contains:[K,...r,...u,...v,_,x,...V,j,te],endsParent:!0,illegal:/["']/},oe={match:[/(func|macro)/,/\s+/,yl(F.match,Cp,F6)],className:{1:"keyword",3:"title.function"},contains:[ae,Q,t],illegal:[/\[/,/%/]},ge={match:[/\b(?:subscript|init[?!]?)/,/\s*(?=[<(])/],className:{1:"keyword"},contains:[ae,Q,t],illegal:/\[|%/},fe={match:[/operator/,/\s+/,F6],className:{1:"keyword",3:"title"}},ue={begin:[/precedencegroup/,/\s+/,B6],className:{1:"keyword",3:"title"},contains:[j],keywords:[...Zhn,...$fe],end:/}/};for(const le of x.variants){const ve=le.contains.find(pe=>pe.label==="interpol");ve.keywords=c;const ne=[...u,...h,...v,_,x,...A];ve.contains=[...ne,{begin:/\(/,end:/\)/,contains:["self",...ne]}]}return{name:"Swift",keywords:c,contains:[...r,oe,ge,{beginKeywords:"struct protocol class extension enum actor",end:"\\{",excludeEnd:!0,keywords:c,contains:[e.inherit(e.TITLE_MODE,{className:"title.class",begin:/[A-Za-z$_][\u00C0-\u02B80-9A-Za-z$_]*/}),...u]},fe,ue,{beginKeywords:"import",end:/$/,contains:[...r],relevance:0},M,...u,...h,...v,_,x,...A,...V,j,te]}}const _4="[A-Za-z$_][0-9A-Za-z$_]*",BPe=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends"],jPe=["true","false","null","undefined","NaN","Infinity"],HPe=["Object","Function","Boolean","Symbol","Math","Date","Number","BigInt","String","RegExp","Array","Float32Array","Float64Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Int32Array","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array","Set","Map","WeakSet","WeakMap","ArrayBuffer","SharedArrayBuffer","Atomics","DataView","JSON","Promise","Generator","GeneratorFunction","AsyncFunction","Reflect","Proxy","Intl","WebAssembly"],UPe=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],zPe=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],VPe=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","global"],GPe=[].concat(zPe,HPe,UPe);function rmn(e){const t=e.regex,n=(A,{after:P})=>{const z="</"+A[0].slice(1);return A.input.indexOf(z,P)!==-1},r=_4,i={begin:"<>",end:"</>"},o=/<[A-Za-z0-9\\._:-]+\s*\/>/,a={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(A,P)=>{const z=A[0].length+A.index,L=A.input[z];if(L==="<"||L===","){P.ignoreMatch();return}L===">"&&(n(A,{after:z})||P.ignoreMatch());let V;const j=A.input.substring(z);if(V=j.match(/^\s*=/)){P.ignoreMatch();return}if((V=j.match(/^\s+extends\s+/))&&V.index===0){P.ignoreMatch();return}}},s={$pattern:_4,keyword:BPe,literal:jPe,built_in:GPe,"variable.language":VPe},l="[0-9](_?[0-9])*",c=`\\.(${l})`,u="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",d={className:"number",variants:[{begin:`(\\b(${u})((${c})|\\.)?|(${c}))[eE][+-]?(${l})\\b`},{begin:`\\b(${u})\\b((${c})\\b|\\.)?|(${c})\\b`},{begin:"\\b(0|[1-9](_?[0-9])*)n\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*n?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*n?\\b"},{begin:"\\b0[0-7]+n?\\b"}],relevance:0},f={className:"subst",begin:"\\$\\{",end:"\\}",keywords:s,contains:[]},h={begin:"html`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,f],subLanguage:"xml"}},m={begin:"css`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,f],subLanguage:"css"}},g={begin:"gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,f],subLanguage:"graphql"}},v={className:"string",begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE,f]},y={className:"comment",variants:[e.COMMENT(/\/\*\*(?!\/)/,"\\*/",{relevance:0,contains:[{begin:"(?=@[A-Za-z]+)",relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"},{className:"type",begin:"\\{",end:"\\}",excludeEnd:!0,excludeBegin:!0,relevance:0},{className:"variable",begin:r+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),e.C_BLOCK_COMMENT_MODE,e.C_LINE_COMMENT_MODE]},b=[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,h,m,g,v,{match:/\$\d+/},d];f.contains=b.concat({begin:/\{/,end:/\}/,keywords:s,contains:["self"].concat(b)});const _=[].concat(y,f.contains),E=_.concat([{begin:/\(/,end:/\)/,keywords:s,contains:["self"].concat(_)}]),w={className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:s,contains:E},S={variants:[{match:[/class/,/\s+/,r,/\s+/,/extends/,/\s+/,t.concat(r,"(",t.concat(/\./,r),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,r],scope:{1:"keyword",3:"title.class"}}]},C={relevance:0,match:t.either(/\bJSON/,/\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/,/\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/,/\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/),className:"title.class",keywords:{_:[...HPe,...UPe]}},T={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},x={variants:[{match:[/function/,/\s+/,r,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[w],illegal:/%/},O={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function N(A){return t.concat("(?!",A.join("|"),")")}const I={match:t.concat(/\b/,N([...zPe,"super","import"]),r,t.lookahead(/\(/)),className:"title.function",relevance:0},M={begin:t.concat(/\./,t.lookahead(t.concat(r,/(?![0-9A-Za-z$_(])/))),end:r,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},F={match:[/get|set/,/\s+/,r,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},w]},k="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+e.UNDERSCORE_IDENT_RE+")\\s*=>",B={match:[/const|var|let/,/\s+/,r,/\s*/,/=\s*/,/(async\s*)?/,t.lookahead(k)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[w]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:s,exports:{PARAMS_CONTAINS:E,CLASS_REFERENCE:C},illegal:/#(?![$_A-z])/,contains:[e.SHEBANG({label:"shebang",binary:"node",relevance:5}),T,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,h,m,g,v,y,{match:/\$\d+/},d,C,{className:"attr",begin:r+t.lookahead(":"),relevance:0},B,{begin:"("+e.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[y,e.REGEXP_MODE,{className:"function",begin:k,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:e.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:s,contains:E}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:i.begin,end:i.end},{match:o},{begin:a.begin,"on:begin":a.isTrulyOpeningTag,end:a.end}],subLanguage:"xml",contains:[{begin:a.begin,end:a.end,skip:!0,contains:["self"]}]}]},x,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+e.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[w,e.inherit(e.TITLE_MODE,{begin:r,className:"title.function"})]},{match:/\.\.\./,relevance:0},M,{match:"\\$"+r,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[w]},I,O,S,F,{match:/\$[(.]/}]}}function imn(e){const t=rmn(e),n=_4,r=["any","void","number","boolean","string","object","never","symbol","bigint","unknown"],i={beginKeywords:"namespace",end:/\{/,excludeEnd:!0,contains:[t.exports.CLASS_REFERENCE]},o={beginKeywords:"interface",end:/\{/,excludeEnd:!0,keywords:{keyword:"interface extends",built_in:r},contains:[t.exports.CLASS_REFERENCE]},a={className:"meta",relevance:10,begin:/^\s*['"]use strict['"]/},s=["type","namespace","interface","public","private","protected","implements","declare","abstract","readonly","enum","override"],l={$pattern:_4,keyword:BPe.concat(s),literal:jPe,built_in:GPe.concat(r),"variable.language":VPe},c={className:"meta",begin:"@"+n},u=(f,h,m)=>{const g=f.contains.findIndex(v=>v.label===h);if(g===-1)throw new Error("can not find mode to replace");f.contains.splice(g,1,m)};Object.assign(t.keywords,l),t.exports.PARAMS_CONTAINS.push(c),t.contains=t.contains.concat([c,i,o]),u(t,"shebang",e.SHEBANG()),u(t,"use_strict",a);const d=t.contains.find(f=>f.label==="func.def");return d.relevance=0,Object.assign(t,{name:"TypeScript",aliases:["ts","tsx","mts","cts"]}),t}function omn(e){const t=e.regex,n={className:"string",begin:/"(""|[^/n])"C\b/},r={className:"string",begin:/"/,end:/"/,illegal:/\n/,contains:[{begin:/""/}]},i=/\d{1,2}\/\d{1,2}\/\d{4}/,o=/\d{4}-\d{1,2}-\d{1,2}/,a=/(\d|1[012])(:\d+){0,2} *(AM|PM)/,s=/\d{1,2}(:\d{1,2}){1,2}/,l={className:"literal",variants:[{begin:t.concat(/# */,t.either(o,i),/ *#/)},{begin:t.concat(/# */,s,/ *#/)},{begin:t.concat(/# */,a,/ *#/)},{begin:t.concat(/# */,t.either(o,i),/ +/,t.either(a,s),/ *#/)}]},c={className:"number",relevance:0,variants:[{begin:/\b\d[\d_]*((\.[\d_]+(E[+-]?[\d_]+)?)|(E[+-]?[\d_]+))[RFD@!#]?/},{begin:/\b\d[\d_]*((U?[SIL])|[%&])?/},{begin:/&H[\dA-F_]+((U?[SIL])|[%&])?/},{begin:/&O[0-7_]+((U?[SIL])|[%&])?/},{begin:/&B[01_]+((U?[SIL])|[%&])?/}]},u={className:"label",begin:/^\w+:/},d=e.COMMENT(/'''/,/$/,{contains:[{className:"doctag",begin:/<\/?/,end:/>/}]}),f=e.COMMENT(null,/$/,{variants:[{begin:/'/},{begin:/([\t ]|^)REM(?=\s)/}]});return{name:"Visual Basic .NET",aliases:["vb"],case_insensitive:!0,classNameAliases:{label:"symbol"},keywords:{keyword:"addhandler alias aggregate ansi as async assembly auto binary by byref byval call case catch class compare const continue custom declare default delegate dim distinct do each equals else elseif end enum erase error event exit explicit finally for friend from function get global goto group handles if implements imports in inherits interface into iterator join key let lib loop me mid module mustinherit mustoverride mybase myclass namespace narrowing new next notinheritable notoverridable of off on operator option optional order overloads overridable overrides paramarray partial preserve private property protected public raiseevent readonly redim removehandler resume return select set shadows shared skip static step stop structure strict sub synclock take text then throw to try unicode until using when where while widening with withevents writeonly yield",built_in:"addressof and andalso await directcast gettype getxmlnamespace is isfalse isnot istrue like mod nameof new not or orelse trycast typeof xor cbool cbyte cchar cdate cdbl cdec cint clng cobj csbyte cshort csng cstr cuint culng cushort",type:"boolean byte char date decimal double integer long object sbyte short single string uinteger ulong ushort",literal:"true false nothing"},illegal:"//|\\{|\\}|endif|gosub|variant|wend|^\\$ ",contains:[n,r,l,c,u,d,f,{className:"meta",begin:/[\t ]*#(const|disable|else|elseif|enable|end|externalsource|if|region)\b/,end:/$/,keywords:{keyword:"const disable else elseif enable end externalsource if region then"},contains:[f]}]}}function amn(e){e.regex;const t=e.COMMENT(/\(;/,/;\)/);t.contains.push("self");const n=e.COMMENT(/;;/,/$/),r=["anyfunc","block","br","br_if","br_table","call","call_indirect","data","drop","elem","else","end","export","func","global.get","global.set","local.get","local.set","local.tee","get_global","get_local","global","if","import","local","loop","memory","memory.grow","memory.size","module","mut","nop","offset","param","result","return","select","set_global","set_local","start","table","tee_local","then","type","unreachable"],i={begin:[/(?:func|call|call_indirect)/,/\s+/,/\$[^\s)]+/],className:{1:"keyword",3:"title.function"}},o={className:"variable",begin:/\$[\w_]+/},a={match:/(\((?!;)|\))+/,className:"punctuation",relevance:0},s={className:"number",relevance:0,match:/[+-]?\b(?:\d(?:_?\d)*(?:\.\d(?:_?\d)*)?(?:[eE][+-]?\d(?:_?\d)*)?|0x[\da-fA-F](?:_?[\da-fA-F])*(?:\.[\da-fA-F](?:_?[\da-fA-D])*)?(?:[pP][+-]?\d(?:_?\d)*)?)\b|\binf\b|\bnan(?::0x[\da-fA-F](?:_?[\da-fA-D])*)?\b/},l={match:/(i32|i64|f32|f64)(?!\.)/,className:"type"},c={className:"keyword",match:/\b(f32|f64|i32|i64)(?:\.(?:abs|add|and|ceil|clz|const|convert_[su]\/i(?:32|64)|copysign|ctz|demote\/f64|div(?:_[su])?|eqz?|extend_[su]\/i32|floor|ge(?:_[su])?|gt(?:_[su])?|le(?:_[su])?|load(?:(?:8|16|32)_[su])?|lt(?:_[su])?|max|min|mul|nearest|neg?|or|popcnt|promote\/f32|reinterpret\/[fi](?:32|64)|rem_[su]|rot[lr]|shl|shr_[su]|store(?:8|16|32)?|sqrt|sub|trunc(?:_[su]\/f(?:32|64))?|wrap\/i64|xor))\b/};return{name:"WebAssembly",keywords:{$pattern:/[\w.]+/,keyword:r},contains:[n,t,{match:[/(?:offset|align)/,/\s*/,/=/],className:{1:"keyword",3:"operator"}},o,a,i,e.QUOTE_STRING_MODE,l,c,s]}}function smn(e){const t=e.regex,n=t.concat(/[\p{L}_]/u,t.optional(/[\p{L}0-9_.-]*:/u),/[\p{L}0-9_.-]*/u),r=/[\p{L}0-9._:-]+/u,i={className:"symbol",begin:/&[a-z]+;|&#[0-9]+;|&#x[a-f0-9]+;/},o={begin:/\s/,contains:[{className:"keyword",begin:/#?[a-z_][a-z1-9_-]+/,illegal:/\n/}]},a=e.inherit(o,{begin:/\(/,end:/\)/}),s=e.inherit(e.APOS_STRING_MODE,{className:"string"}),l=e.inherit(e.QUOTE_STRING_MODE,{className:"string"}),c={endsWithParent:!0,illegal:/</,relevance:0,contains:[{className:"attr",begin:r,relevance:0},{begin:/=\s*/,relevance:0,contains:[{className:"string",endsParent:!0,variants:[{begin:/"/,end:/"/,contains:[i]},{begin:/'/,end:/'/,contains:[i]},{begin:/[^\s"'=<>`]+/}]}]}]};return{name:"HTML, XML",aliases:["html","xhtml","rss","atom","xjb","xsd","xsl","plist","wsf","svg"],case_insensitive:!0,unicodeRegex:!0,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,relevance:10,contains:[o,l,s,a,{begin:/\[/,end:/\]/,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,contains:[o,a,l,s]}]}]},e.COMMENT(/<!--/,/-->/,{relevance:10}),{begin:/<!\[CDATA\[/,end:/\]\]>/,relevance:10},i,{className:"meta",end:/\?>/,variants:[{begin:/<\?xml/,relevance:10,contains:[l]},{begin:/<\?[a-z][a-z0-9]+/}]},{className:"tag",begin:/<style(?=\s|>)/,end:/>/,keywords:{name:"style"},contains:[c],starts:{end:/<\/style>/,returnEnd:!0,subLanguage:["css","xml"]}},{className:"tag",begin:/<script(?=\s|>)/,end:/>/,keywords:{name:"script"},contains:[c],starts:{end:/<\/script>/,returnEnd:!0,subLanguage:["javascript","handlebars","xml"]}},{className:"tag",begin:/<>|<\/>/},{className:"tag",begin:t.concat(/</,t.lookahead(t.concat(n,t.either(/\/>/,/>/,/\s/)))),end:/\/?>/,contains:[{className:"name",begin:n,relevance:0,starts:c}]},{className:"tag",begin:t.concat(/<\//,t.lookahead(t.concat(n,/>/))),contains:[{className:"name",begin:n,relevance:0},{begin:/>/,relevance:0,endsParent:!0}]}]}}function lmn(e){const t="true false yes no null",n="[\\w#;/?:@&=+$,.~*'()[\\]]+",r={className:"attr",variants:[{begin:"\\w[\\w :\\/.-]*:(?=[ ]|$)"},{begin:'"\\w[\\w :\\/.-]*":(?=[ ]|$)'},{begin:"'\\w[\\w :\\/.-]*':(?=[ ]|$)"}]},i={className:"template-variable",variants:[{begin:/\{\{/,end:/\}\}/},{begin:/%\{/,end:/\}/}]},o={className:"string",relevance:0,variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/},{begin:/\S+/}],contains:[e.BACKSLASH_ESCAPE,i]},a=e.inherit(o,{variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/},{begin:/[^\s,{}[\]]+/}]}),s={className:"number",begin:"\\b[0-9]{4}(-[0-9][0-9]){0,2}([Tt \\t][0-9][0-9]?(:[0-9][0-9]){2})?(\\.[0-9]*)?([ \\t])*(Z|[-+][0-9][0-9]?(:[0-9][0-9])?)?\\b"},l={end:",",endsWithParent:!0,excludeEnd:!0,keywords:t,relevance:0},c={begin:/\{/,end:/\}/,contains:[l],illegal:"\\n",relevance:0},u={begin:"\\[",end:"\\]",contains:[l],illegal:"\\n",relevance:0},d=[r,{className:"meta",begin:"^---\\s*$",relevance:10},{className:"string",begin:"[\\|>]([1-9]?[+-])?[ ]*\\n( +)[^ ][^\\n]*\\n(\\2[^\\n]+\\n?)*"},{begin:"<%[%=-]?",end:"[%-]?%>",subLanguage:"ruby",excludeBegin:!0,excludeEnd:!0,relevance:0},{className:"type",begin:"!\\w+!"+n},{className:"type",begin:"!<"+n+">"},{className:"type",begin:"!"+n},{className:"type",begin:"!!"+n},{className:"meta",begin:"&"+e.UNDERSCORE_IDENT_RE+"$"},{className:"meta",begin:"\\*"+e.UNDERSCORE_IDENT_RE+"$"},{className:"bullet",begin:"-(?=[ ]|$)",relevance:0},e.HASH_COMMENT_MODE,{beginKeywords:t,keywords:{literal:t}},s,{className:"number",begin:e.C_NUMBER_RE+"\\b",relevance:0},c,u,o],f=[...d];return f.pop(),f.push(a),l.contains=f,{name:"YAML",case_insensitive:!0,aliases:["yml"],contains:d}}const cmn={arduino:Qpn,bash:Xpn,c:Zpn,cpp:Jpn,csharp:ehn,css:shn,diff:lhn,go:chn,graphql:uhn,ini:dhn,java:fhn,javascript:vhn,json:bhn,kotlin:_hn,less:xhn,lua:Ohn,makefile:Rhn,markdown:Ihn,objectivec:Ahn,perl:Nhn,php:Mhn,"php-template":khn,plaintext:Phn,python:Dhn,"python-repl":Lhn,r:$hn,ruby:Fhn,rust:Bhn,scss:Whn,shell:qhn,sql:Yhn,swift:nmn,typescript:imn,vbnet:omn,wasm:amn,xml:smn,yaml:lmn},umn={...cmn,"1c":Dun,abnf:Lun,accesslog:$un,actionscript:Fun,ada:Bun,angelscript:jun,apache:Hun,applescript:Uun,arcade:zun,armasm:Vun,asciidoc:Gun,aspectj:Wun,autohotkey:qun,autoit:Yun,avrasm:Kun,awk:Qun,axapta:Xun,basic:Zun,bnf:Jun,brainfuck:edn,cal:tdn,capnproto:ndn,ceylon:rdn,clean:idn,clojure:odn,"clojure-repl":adn,cmake:sdn,coffeescript:hdn,coq:mdn,cos:gdn,crmsh:vdn,crystal:bdn,csp:ydn,d:_dn,dart:Sdn,delphi:Edn,django:Cdn,dns:wdn,dockerfile:Tdn,dos:xdn,dsconfig:Odn,dts:Rdn,dust:Idn,ebnf:Adn,elixir:Ndn,elm:Mdn,erb:kdn,erlang:Pdn,"erlang-repl":Ddn,excel:Ldn,fix:$dn,flix:Fdn,fortran:Bdn,fsharp:Udn,gams:zdn,gauss:Vdn,gcode:Gdn,gherkin:Wdn,glsl:qdn,gml:Ydn,golo:Kdn,gradle:Qdn,groovy:Xdn,haml:Zdn,handlebars:Jdn,haskell:efn,haxe:tfn,hsp:nfn,http:rfn,hy:ifn,inform7:ofn,irpf90:afn,isbl:sfn,"jboss-cli":lfn,julia:cfn,"julia-repl":ufn,lasso:dfn,latex:ffn,ldif:pfn,leaf:hfn,lisp:mfn,livecodeserver:gfn,livescript:Cfn,llvm:wfn,lsl:Tfn,mathematica:Ofn,matlab:Rfn,maxima:Ifn,mel:Afn,mercury:Nfn,mipsasm:Mfn,mizar:kfn,mojolicious:Pfn,monkey:Dfn,moonscript:Lfn,n1ql:$fn,nestedtext:Ffn,nginx:Bfn,nim:jfn,nix:Hfn,"node-repl":Ufn,nsis:zfn,ocaml:Vfn,openscad:Gfn,oxygene:Wfn,parser3:qfn,pf:Yfn,pgsql:Kfn,pony:Qfn,powershell:Xfn,processing:Zfn,profile:Jfn,prolog:epn,properties:tpn,protobuf:npn,puppet:rpn,purebasic:ipn,q:opn,qml:apn,reasonml:spn,rib:lpn,roboconf:cpn,routeros:upn,rsl:dpn,ruleslanguage:fpn,sas:ppn,scala:hpn,scheme:mpn,scilab:gpn,smali:vpn,smalltalk:bpn,sml:ypn,sqf:_pn,stan:Spn,stata:Epn,step21:Cpn,stylus:Apn,subunit:Npn,taggerscript:Mpn,tap:kpn,tcl:Ppn,thrift:Dpn,tp:Lpn,twig:$pn,vala:Fpn,vbscript:Bpn,"vbscript-html":jpn,verilog:Hpn,vhdl:Upn,vim:zpn,wren:Vpn,x86asm:Gpn,xl:Wpn,xquery:qpn,zephir:Ypn};function WPe(e){return e instanceof Map?e.clear=e.delete=e.set=function(){throw new Error("map is read-only")}:e instanceof Set&&(e.add=e.clear=e.delete=function(){throw new Error("set is read-only")}),Object.freeze(e),Object.getOwnPropertyNames(e).forEach(t=>{const n=e[t],r=typeof n;(r==="object"||r==="function")&&!Object.isFrozen(n)&&WPe(n)}),e}class Bfe{constructor(t){t.data===void 0&&(t.data={}),this.data=t.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}}function qPe(e){return e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;")}function Um(e,...t){const n=Object.create(null);for(const r in e)n[r]=e[r];return t.forEach(function(r){for(const i in r)n[i]=r[i]}),n}const dmn="</span>",jfe=e=>!!e.scope,fmn=(e,{prefix:t})=>{if(e.startsWith("language:"))return e.replace("language:","language-");if(e.includes(".")){const n=e.split(".");return[`${t}${n.shift()}`,...n.map((r,i)=>`${r}${"_".repeat(i+1)}`)].join(" ")}return`${t}${e}`};class pmn{constructor(t,n){this.buffer="",this.classPrefix=n.classPrefix,t.walk(this)}addText(t){this.buffer+=qPe(t)}openNode(t){if(!jfe(t))return;const n=fmn(t.scope,{prefix:this.classPrefix});this.span(n)}closeNode(t){jfe(t)&&(this.buffer+=dmn)}value(){return this.buffer}span(t){this.buffer+=`<span class="${t}">`}}const Hfe=(e={})=>{const t={children:[]};return Object.assign(t,e),t};class xX{constructor(){this.rootNode=Hfe(),this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(t){this.top.children.push(t)}openNode(t){const n=Hfe({scope:t});this.add(n),this.stack.push(n)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(t){return this.constructor._walk(t,this.rootNode)}static _walk(t,n){return typeof n=="string"?t.addText(n):n.children&&(t.openNode(n),n.children.forEach(r=>this._walk(t,r)),t.closeNode(n)),t}static _collapse(t){typeof t!="string"&&t.children&&(t.children.every(n=>typeof n=="string")?t.children=[t.children.join("")]:t.children.forEach(n=>{xX._collapse(n)}))}}class hmn extends xX{constructor(t){super(),this.options=t}addText(t){t!==""&&this.add(t)}startScope(t){this.openNode(t)}endScope(){this.closeNode()}__addSublanguage(t,n){const r=t.root;n&&(r.scope=`language:${n}`),this.add(r)}toHTML(){return new pmn(this,this.options).value()}finalize(){return this.closeAllNodes(),!0}}function bx(e){return e?typeof e=="string"?e:e.source:null}function YPe(e){return F0("(?=",e,")")}function mmn(e){return F0("(?:",e,")*")}function gmn(e){return F0("(?:",e,")?")}function F0(...e){return e.map(t=>bx(t)).join("")}function vmn(e){const t=e[e.length-1];return typeof t=="object"&&t.constructor===Object?(e.splice(e.length-1,1),t):{}}function OX(...e){return"("+(vmn(e).capture?"":"?:")+e.map(t=>bx(t)).join("|")+")"}function KPe(e){return new RegExp(e.toString()+"|").exec("").length-1}function bmn(e,t){const n=e&&e.exec(t);return n&&n.index===0}const ymn=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function RX(e,{joinWith:t}){let n=0;return e.map(r=>{n+=1;const i=n;let o=bx(r),a="";for(;o.length>0;){const s=ymn.exec(o);if(!s){a+=o;break}a+=o.substring(0,s.index),o=o.substring(s.index+s[0].length),s[0][0]==="\\"&&s[1]?a+="\\"+String(Number(s[1])+i):(a+=s[0],s[0]==="("&&n++)}return a}).map(r=>`(${r})`).join(t)}const _mn=/\b\B/,QPe="[a-zA-Z]\\w*",IX="[a-zA-Z_]\\w*",XPe="\\b\\d+(\\.\\d+)?",ZPe="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",JPe="\\b(0b[01]+)",Smn="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",Emn=(e={})=>{const t=/^#![ ]*\//;return e.binary&&(e.begin=F0(t,/.*\b/,e.binary,/\b.*/)),Um({scope:"meta",begin:t,end:/$/,relevance:0,"on:begin":(n,r)=>{n.index!==0&&r.ignoreMatch()}},e)},yx={begin:"\\\\[\\s\\S]",relevance:0},Cmn={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[yx]},wmn={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[yx]},Tmn={begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/},h9=function(e,t,n={}){const r=Um({scope:"comment",begin:e,end:t,contains:[]},n);r.contains.push({scope:"doctag",begin:"[ ]*(?=(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):)",end:/(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):/,excludeBegin:!0,relevance:0});const i=OX("I","a","is","so","us","to","at","if","in","it","on",/[A-Za-z]+['](d|ve|re|ll|t|s|n)/,/[A-Za-z]+[-][a-z]+/,/[A-Za-z][a-z]{2,}/);return r.contains.push({begin:F0(/[ ]+/,"(",i,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),r},xmn=h9("//","$"),Omn=h9("/\\*","\\*/"),Rmn=h9("#","$"),Imn={scope:"number",begin:XPe,relevance:0},Amn={scope:"number",begin:ZPe,relevance:0},Nmn={scope:"number",begin:JPe,relevance:0},Mmn={scope:"regexp",begin:/\/(?=[^/\n]*\/)/,end:/\/[gimuy]*/,contains:[yx,{begin:/\[/,end:/\]/,relevance:0,contains:[yx]}]},kmn={scope:"title",begin:QPe,relevance:0},Pmn={scope:"title",begin:IX,relevance:0},Dmn={begin:"\\.\\s*"+IX,relevance:0},Lmn=function(e){return Object.assign(e,{"on:begin":(t,n)=>{n.data._beginMatch=t[1]},"on:end":(t,n)=>{n.data._beginMatch!==t[1]&&n.ignoreMatch()}})};var CI=Object.freeze({__proto__:null,APOS_STRING_MODE:Cmn,BACKSLASH_ESCAPE:yx,BINARY_NUMBER_MODE:Nmn,BINARY_NUMBER_RE:JPe,COMMENT:h9,C_BLOCK_COMMENT_MODE:Omn,C_LINE_COMMENT_MODE:xmn,C_NUMBER_MODE:Amn,C_NUMBER_RE:ZPe,END_SAME_AS_BEGIN:Lmn,HASH_COMMENT_MODE:Rmn,IDENT_RE:QPe,MATCH_NOTHING_RE:_mn,METHOD_GUARD:Dmn,NUMBER_MODE:Imn,NUMBER_RE:XPe,PHRASAL_WORDS_MODE:Tmn,QUOTE_STRING_MODE:wmn,REGEXP_MODE:Mmn,RE_STARTERS_RE:Smn,SHEBANG:Emn,TITLE_MODE:kmn,UNDERSCORE_IDENT_RE:IX,UNDERSCORE_TITLE_MODE:Pmn});function $mn(e,t){e.input[e.index-1]==="."&&t.ignoreMatch()}function Fmn(e,t){e.className!==void 0&&(e.scope=e.className,delete e.className)}function Bmn(e,t){t&&e.beginKeywords&&(e.begin="\\b("+e.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",e.__beforeBegin=$mn,e.keywords=e.keywords||e.beginKeywords,delete e.beginKeywords,e.relevance===void 0&&(e.relevance=0))}function jmn(e,t){Array.isArray(e.illegal)&&(e.illegal=OX(...e.illegal))}function Hmn(e,t){if(e.match){if(e.begin||e.end)throw new Error("begin & end are not supported with match");e.begin=e.match,delete e.match}}function Umn(e,t){e.relevance===void 0&&(e.relevance=1)}const zmn=(e,t)=>{if(!e.beforeMatch)return;if(e.starts)throw new Error("beforeMatch cannot be used with starts");const n=Object.assign({},e);Object.keys(e).forEach(r=>{delete e[r]}),e.keywords=n.keywords,e.begin=F0(n.beforeMatch,YPe(n.begin)),e.starts={relevance:0,contains:[Object.assign(n,{endsParent:!0})]},e.relevance=0,delete n.beforeMatch},Vmn=["of","and","for","in","not","or","if","then","parent","list","value"],Gmn="keyword";function e5e(e,t,n=Gmn){const r=Object.create(null);return typeof e=="string"?i(n,e.split(" ")):Array.isArray(e)?i(n,e):Object.keys(e).forEach(function(o){Object.assign(r,e5e(e[o],t,o))}),r;function i(o,a){t&&(a=a.map(s=>s.toLowerCase())),a.forEach(function(s){const l=s.split("|");r[l[0]]=[o,Wmn(l[0],l[1])]})}}function Wmn(e,t){return t?Number(t):qmn(e)?0:1}function qmn(e){return Vmn.includes(e.toLowerCase())}const Ufe={},Tv=e=>{console.error(e)},zfe=(e,...t)=>{console.log(`WARN: ${e}`,...t)},yb=(e,t)=>{Ufe[`${e}/${t}`]||(console.log(`Deprecated as of ${e}. ${t}`),Ufe[`${e}/${t}`]=!0)},S4=new Error;function t5e(e,t,{key:n}){let r=0;const i=e[n],o={},a={};for(let s=1;s<=t.length;s++)a[s+r]=i[s],o[s+r]=!0,r+=KPe(t[s-1]);e[n]=a,e[n]._emit=o,e[n]._multi=!0}function Ymn(e){if(Array.isArray(e.begin)){if(e.skip||e.excludeBegin||e.returnBegin)throw Tv("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),S4;if(typeof e.beginScope!="object"||e.beginScope===null)throw Tv("beginScope must be object"),S4;t5e(e,e.begin,{key:"beginScope"}),e.begin=RX(e.begin,{joinWith:""})}}function Kmn(e){if(Array.isArray(e.end)){if(e.skip||e.excludeEnd||e.returnEnd)throw Tv("skip, excludeEnd, returnEnd not compatible with endScope: {}"),S4;if(typeof e.endScope!="object"||e.endScope===null)throw Tv("endScope must be object"),S4;t5e(e,e.end,{key:"endScope"}),e.end=RX(e.end,{joinWith:""})}}function Qmn(e){e.scope&&typeof e.scope=="object"&&e.scope!==null&&(e.beginScope=e.scope,delete e.scope)}function Xmn(e){Qmn(e),typeof e.beginScope=="string"&&(e.beginScope={_wrap:e.beginScope}),typeof e.endScope=="string"&&(e.endScope={_wrap:e.endScope}),Ymn(e),Kmn(e)}function Zmn(e){function t(a,s){return new RegExp(bx(a),"m"+(e.case_insensitive?"i":"")+(e.unicodeRegex?"u":"")+(s?"g":""))}class n{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(s,l){l.position=this.position++,this.matchIndexes[this.matchAt]=l,this.regexes.push([l,s]),this.matchAt+=KPe(s)+1}compile(){this.regexes.length===0&&(this.exec=()=>null);const s=this.regexes.map(l=>l[1]);this.matcherRe=t(RX(s,{joinWith:"|"}),!0),this.lastIndex=0}exec(s){this.matcherRe.lastIndex=this.lastIndex;const l=this.matcherRe.exec(s);if(!l)return null;const c=l.findIndex((d,f)=>f>0&&d!==void 0),u=this.matchIndexes[c];return l.splice(0,c),Object.assign(l,u)}}class r{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(s){if(this.multiRegexes[s])return this.multiRegexes[s];const l=new n;return this.rules.slice(s).forEach(([c,u])=>l.addRule(c,u)),l.compile(),this.multiRegexes[s]=l,l}resumingScanAtSamePosition(){return this.regexIndex!==0}considerAll(){this.regexIndex=0}addRule(s,l){this.rules.push([s,l]),l.type==="begin"&&this.count++}exec(s){const l=this.getMatcher(this.regexIndex);l.lastIndex=this.lastIndex;let c=l.exec(s);if(this.resumingScanAtSamePosition()&&!(c&&c.index===this.lastIndex)){const u=this.getMatcher(0);u.lastIndex=this.lastIndex+1,c=u.exec(s)}return c&&(this.regexIndex+=c.position+1,this.regexIndex===this.count&&this.considerAll()),c}}function i(a){const s=new r;return a.contains.forEach(l=>s.addRule(l.begin,{rule:l,type:"begin"})),a.terminatorEnd&&s.addRule(a.terminatorEnd,{type:"end"}),a.illegal&&s.addRule(a.illegal,{type:"illegal"}),s}function o(a,s){const l=a;if(a.isCompiled)return l;[Fmn,Hmn,Xmn,zmn].forEach(u=>u(a,s)),e.compilerExtensions.forEach(u=>u(a,s)),a.__beforeBegin=null,[Bmn,jmn,Umn].forEach(u=>u(a,s)),a.isCompiled=!0;let c=null;return typeof a.keywords=="object"&&a.keywords.$pattern&&(a.keywords=Object.assign({},a.keywords),c=a.keywords.$pattern,delete a.keywords.$pattern),c=c||/\w+/,a.keywords&&(a.keywords=e5e(a.keywords,e.case_insensitive)),l.keywordPatternRe=t(c,!0),s&&(a.begin||(a.begin=/\B|\b/),l.beginRe=t(l.begin),!a.end&&!a.endsWithParent&&(a.end=/\B|\b/),a.end&&(l.endRe=t(l.end)),l.terminatorEnd=bx(l.end)||"",a.endsWithParent&&s.terminatorEnd&&(l.terminatorEnd+=(a.end?"|":"")+s.terminatorEnd)),a.illegal&&(l.illegalRe=t(a.illegal)),a.contains||(a.contains=[]),a.contains=[].concat(...a.contains.map(function(u){return Jmn(u==="self"?a:u)})),a.contains.forEach(function(u){o(u,l)}),a.starts&&o(a.starts,s),l.matcher=i(l),l}if(e.compilerExtensions||(e.compilerExtensions=[]),e.contains&&e.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return e.classNameAliases=Um(e.classNameAliases||{}),o(e)}function n5e(e){return e?e.endsWithParent||n5e(e.starts):!1}function Jmn(e){return e.variants&&!e.cachedVariants&&(e.cachedVariants=e.variants.map(function(t){return Um(e,{variants:null},t)})),e.cachedVariants?e.cachedVariants:n5e(e)?Um(e,{starts:e.starts?Um(e.starts):null}):Object.isFrozen(e)?Um(e):e}var egn="11.9.0";class tgn extends Error{constructor(t,n){super(t),this.name="HTMLInjectionError",this.html=n}}const j6=qPe,Vfe=Um,Gfe=Symbol("nomatch"),ngn=7,r5e=function(e){const t=Object.create(null),n=Object.create(null),r=[];let i=!0;const o="Could not find the language '{}', did you forget to load/include a language module?",a={disableAutodetect:!0,name:"Plain text",contains:[]};let s={ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",cssSelector:"pre code",languages:null,__emitter:hmn};function l(A){return s.noHighlightRe.test(A)}function c(A){let P=A.className+" ";P+=A.parentNode?A.parentNode.className:"";const z=s.languageDetectRe.exec(P);if(z){const L=x(z[1]);return L||(zfe(o.replace("{}",z[1])),zfe("Falling back to no-highlight mode for this block.",A)),L?z[1]:"no-highlight"}return P.split(/\s+/).find(L=>l(L)||x(L))}function u(A,P,z){let L="",V="";typeof P=="object"?(L=A,z=P.ignoreIllegals,V=P.language):(yb("10.7.0","highlight(lang, code, ...args) has been deprecated."),yb("10.7.0",`Please use highlight(code, options) instead.
https://github.com/highlightjs/highlight.js/issues/2277`),V=A,L=P),z===void 0&&(z=!0);const j={code:L,language:V};k("before:highlight",j);const U=j.result?j.result:d(j.language,j.code,z);return U.code=j.code,k("after:highlight",U),U}function d(A,P,z,L){const V=Object.create(null);function j(D,G){return D.keywords[G]}function U(){if(!Se.keywords){ye.addText(he);return}let D=0;Se.keywordPatternRe.lastIndex=0;let G=Se.keywordPatternRe.exec(he),ie="";for(;G;){ie+=he.substring(D,G.index);const me=pe.case_insensitive?G[0].toLowerCase():G[0],se=j(Se,me);if(se){const[Be,Ve]=se;if(ye.addText(ie),ie="",V[me]=(V[me]||0)+1,V[me]<=ngn&&(_e+=Ve),Be.startsWith("_"))ie+=G[0];else{const re=pe.classNameAliases[Be]||Be;ae(G[0],re)}}else ie+=G[0];D=Se.keywordPatternRe.lastIndex,G=Se.keywordPatternRe.exec(he)}ie+=he.substring(D),ye.addText(ie)}function J(){if(he==="")return;let D=null;if(typeof Se.subLanguage=="string"){if(!t[Se.subLanguage]){ye.addText(he);return}D=d(Se.subLanguage,he,!0,Ce[Se.subLanguage]),Ce[Se.subLanguage]=D._top}else D=h(he,Se.subLanguage.length?Se.subLanguage:null);Se.relevance>0&&(_e+=D.relevance),ye.__addSublanguage(D._emitter,D.language)}function te(){Se.subLanguage!=null?J():U(),he=""}function ae(D,G){D!==""&&(ye.startScope(G),ye.addText(D),ye.endScope())}function K(D,G){let ie=1;const me=G.length-1;for(;ie<=me;){if(!D._emit[ie]){ie++;continue}const se=pe.classNameAliases[D[ie]]||D[ie],Be=G[ie];se?ae(Be,se):(he=Be,U(),he=""),ie++}}function Q(D,G){return D.scope&&typeof D.scope=="string"&&ye.openNode(pe.classNameAliases[D.scope]||D.scope),D.beginScope&&(D.beginScope._wrap?(ae(he,pe.classNameAliases[D.beginScope._wrap]||D.beginScope._wrap),he=""):D.beginScope._multi&&(K(D.beginScope,G),he="")),Se=Object.create(D,{parent:{value:Se}}),Se}function oe(D,G,ie){let me=bmn(D.endRe,ie);if(me){if(D["on:end"]){const se=new Bfe(D);D["on:end"](G,se),se.isMatchIgnored&&(me=!1)}if(me){for(;D.endsParent&&D.parent;)D=D.parent;return D}}if(D.endsWithParent)return oe(D.parent,G,ie)}function ge(D){return Se.matcher.regexIndex===0?(he+=D[0],1):(Y=!0,0)}function fe(D){const G=D[0],ie=D.rule,me=new Bfe(ie),se=[ie.__beforeBegin,ie["on:begin"]];for(const Be of se)if(Be&&(Be(D,me),me.isMatchIgnored))return ge(G);return ie.skip?he+=G:(ie.excludeBegin&&(he+=G),te(),!ie.returnBegin&&!ie.excludeBegin&&(he=G)),Q(ie,D),ie.returnBegin?0:G.length}function ue(D){const G=D[0],ie=P.substring(D.index),me=oe(Se,D,ie);if(!me)return Gfe;const se=Se;Se.endScope&&Se.endScope._wrap?(te(),ae(G,Se.endScope._wrap)):Se.endScope&&Se.endScope._multi?(te(),K(Se.endScope,D)):se.skip?he+=G:(se.returnEnd||se.excludeEnd||(he+=G),te(),se.excludeEnd&&(he=G));do Se.scope&&ye.closeNode(),!Se.skip&&!Se.subLanguage&&(_e+=Se.relevance),Se=Se.parent;while(Se!==me.parent);return me.starts&&Q(me.starts,D),se.returnEnd?0:G.length}function le(){const D=[];for(let G=Se;G!==pe;G=G.parent)G.scope&&D.unshift(G.scope);D.forEach(G=>ye.openNode(G))}let ve={};function ne(D,G){const ie=G&&G[0];if(he+=D,ie==null)return te(),0;if(ve.type==="begin"&&G.type==="end"&&ve.index===G.index&&ie===""){if(he+=P.slice(G.index,G.index+1),!i){const me=new Error(`0 width match regex (${A})`);throw me.languageName=A,me.badRule=ve.rule,me}return 1}if(ve=G,G.type==="begin")return fe(G);if(G.type==="illegal"&&!z){const me=new Error('Illegal lexeme "'+ie+'" for mode "'+(Se.scope||"<unnamed>")+'"');throw me.mode=Se,me}else if(G.type==="end"){const me=ue(G);if(me!==Gfe)return me}if(G.type==="illegal"&&ie==="")return 1;if(De>1e5&&De>G.index*3)throw new Error("potential infinite loop, way more iterations than matches");return he+=ie,ie.length}const pe=x(A);if(!pe)throw Tv(o.replace("{}",A)),new Error('Unknown language: "'+A+'"');const be=Zmn(pe);let Re="",Se=L||be;const Ce={},ye=new s.__emitter(s);le();let he="",_e=0,Oe=0,De=0,Y=!1;try{if(pe.__emitTokens)pe.__emitTokens(P,ye);else{for(Se.matcher.considerAll();;){De++,Y?Y=!1:Se.matcher.considerAll(),Se.matcher.lastIndex=Oe;const D=Se.matcher.exec(P);if(!D)break;const G=P.substring(Oe,D.index),ie=ne(G,D);Oe=D.index+ie}ne(P.substring(Oe))}return ye.finalize(),Re=ye.toHTML(),{language:A,value:Re,relevance:_e,illegal:!1,_emitter:ye,_top:Se}}catch(D){if(D.message&&D.message.includes("Illegal"))return{language:A,value:j6(P),illegal:!0,relevance:0,_illegalBy:{message:D.message,index:Oe,context:P.slice(Oe-100,Oe+100),mode:D.mode,resultSoFar:Re},_emitter:ye};if(i)return{language:A,value:j6(P),illegal:!1,relevance:0,errorRaised:D,_emitter:ye,_top:Se};throw D}}function f(A){const P={value:j6(A),illegal:!1,relevance:0,_top:a,_emitter:new s.__emitter(s)};return P._emitter.addText(A),P}function h(A,P){P=P||s.languages||Object.keys(t);const z=f(A),L=P.filter(x).filter(N).map(te=>d(te,A,!1));L.unshift(z);const V=L.sort((te,ae)=>{if(te.relevance!==ae.relevance)return ae.relevance-te.relevance;if(te.language&&ae.language){if(x(te.language).supersetOf===ae.language)return 1;if(x(ae.language).supersetOf===te.language)return-1}return 0}),[j,U]=V,J=j;return J.secondBest=U,J}function m(A,P,z){const L=P&&n[P]||z;A.classList.add("hljs"),A.classList.add(`language-${L}`)}function g(A){let P=null;const z=c(A);if(l(z))return;if(k("before:highlightElement",{el:A,language:z}),A.dataset.highlighted){console.log("Element previously highlighted. To highlight again, first unset `dataset.highlighted`.",A);return}if(A.children.length>0&&(s.ignoreUnescapedHTML||(console.warn("One of your code blocks includes unescaped HTML. This is a potentially serious security risk."),console.warn("https://github.com/highlightjs/highlight.js/wiki/security"),console.warn("The element with unescaped HTML:"),console.warn(A)),s.throwUnescapedHTML))throw new tgn("One of your code blocks includes unescaped HTML.",A.innerHTML);P=A;const L=P.textContent,V=z?u(L,{language:z,ignoreIllegals:!0}):h(L);A.innerHTML=V.value,A.dataset.highlighted="yes",m(A,z,V.language),A.result={language:V.language,re:V.relevance,relevance:V.relevance},V.secondBest&&(A.secondBest={language:V.secondBest.language,relevance:V.secondBest.relevance}),k("after:highlightElement",{el:A,result:V,text:L})}function v(A){s=Vfe(s,A)}const y=()=>{E(),yb("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")};function b(){E(),yb("10.6.0","initHighlightingOnLoad() deprecated. Use highlightAll() now.")}let _=!1;function E(){if(document.readyState==="loading"){_=!0;return}document.querySelectorAll(s.cssSelector).forEach(g)}function w(){_&&E()}typeof window<"u"&&window.addEventListener&&window.addEventListener("DOMContentLoaded",w,!1);function S(A,P){let z=null;try{z=P(e)}catch(L){if(Tv("Language definition for '{}' could not be registered.".replace("{}",A)),i)Tv(L);else throw L;z=a}z.name||(z.name=A),t[A]=z,z.rawDefinition=P.bind(null,e),z.aliases&&O(z.aliases,{languageName:A})}function C(A){delete t[A];for(const P of Object.keys(n))n[P]===A&&delete n[P]}function T(){return Object.keys(t)}function x(A){return A=(A||"").toLowerCase(),t[A]||t[n[A]]}function O(A,{languageName:P}){typeof A=="string"&&(A=[A]),A.forEach(z=>{n[z.toLowerCase()]=P})}function N(A){const P=x(A);return P&&!P.disableAutodetect}function I(A){A["before:highlightBlock"]&&!A["before:highlightElement"]&&(A["before:highlightElement"]=P=>{A["before:highlightBlock"](Object.assign({block:P.el},P))}),A["after:highlightBlock"]&&!A["after:highlightElement"]&&(A["after:highlightElement"]=P=>{A["after:highlightBlock"](Object.assign({block:P.el},P))})}function M(A){I(A),r.push(A)}function F(A){const P=r.indexOf(A);P!==-1&&r.splice(P,1)}function k(A,P){const z=A;r.forEach(function(L){L[z]&&L[z](P)})}function B(A){return yb("10.7.0","highlightBlock will be removed entirely in v12.0"),yb("10.7.0","Please use highlightElement now."),g(A)}Object.assign(e,{highlight:u,highlightAuto:h,highlightAll:E,highlightElement:g,highlightBlock:B,configure:v,initHighlighting:y,initHighlightingOnLoad:b,registerLanguage:S,unregisterLanguage:C,listLanguages:T,getLanguage:x,registerAliases:O,autoDetection:N,inherit:Vfe,addPlugin:M,removePlugin:F}),e.debugMode=function(){i=!1},e.safeMode=function(){i=!0},e.versionString=egn,e.regex={concat:F0,lookahead:YPe,either:OX,optional:gmn,anyNumberOfTimes:mmn};for(const A in CI)typeof CI[A]=="object"&&WPe(CI[A]);return Object.assign(e,CI),e},X_=r5e({});X_.newInstance=()=>r5e({});var rgn=X_;X_.HighlightJS=X_;X_.default=X_;const ign=uX(rgn),Wfe={},ogn="hljs-";function agn(e){const t=ign.newInstance();return e&&o(e),{highlight:n,highlightAuto:r,listLanguages:i,register:o,registerAlias:a,registered:s};function n(l,c,u){const d=u||Wfe,f=typeof d.prefix=="string"?d.prefix:ogn;if(!t.getLanguage(l))throw new Error("Unknown language: `"+l+"` is not registered");t.configure({__emitter:sgn,classPrefix:f});const h=t.highlight(c,{ignoreIllegals:!0,language:l});if(h.errorRaised)throw new Error("Could not highlight with `Highlight.js`",{cause:h.errorRaised});const m=h._emitter.root,g=m.data;return g.language=h.language,g.relevance=h.relevance,m}function r(l,c){const u=(c||Wfe).subset||i();let d=-1,f=0,h;for(;++d<u.length;){const m=u[d];if(!t.getLanguage(m))continue;const g=n(m,l,c);g.data&&g.data.relevance!==void 0&&g.data.relevance>f&&(f=g.data.relevance,h=g)}return h||{type:"root",children:[],data:{language:void 0,relevance:f}}}function i(){return t.listLanguages()}function o(l,c){if(typeof l=="string")t.registerLanguage(l,c);else{let u;for(u in l)Object.hasOwn(l,u)&&t.registerLanguage(u,l[u])}}function a(l,c){if(typeof l=="string")t.registerAliases(typeof c=="string"?c:[...c],{languageName:l});else{let u;for(u in l)if(Object.hasOwn(l,u)){const d=l[u];t.registerAliases(typeof d=="string"?d:[...d],{languageName:u})}}}function s(l){return!!t.getLanguage(l)}}class sgn{constructor(t){this.options=t,this.root={type:"root",children:[],data:{language:void 0,relevance:0}},this.stack=[this.root]}addText(t){if(t==="")return;const n=this.stack[this.stack.length-1],r=n.children[n.children.length-1];r&&r.type==="text"?r.value+=t:n.children.push({type:"text",value:t})}startScope(t){this.openNode(String(t))}endScope(){this.closeNode()}__addSublanguage(t,n){const r=this.stack[this.stack.length-1],i=t.root.children;n?r.children.push({type:"element",tagName:"span",properties:{className:[n]},children:i}):r.children.push(...i)}openNode(t){const n=this,r=t.split(".").map(function(a,s){return s?a+"_".repeat(s):n.options.classPrefix+a}),i=this.stack[this.stack.length-1],o={type:"element",tagName:"span",properties:{className:r},children:[]};i.children.push(o),this.stack.push(o)}closeNode(){this.stack.pop()}finalize(){}toHTML(){return""}}const lgn=/!\[(.+|:?)]\((\S+)(?:(?:\s+)["'](\S+)["'])?\)/,qfe=new $i("aie-video-plugin"),sC="video_action",cgn=Eo.create({name:"video",group:"block",addAttributes(){return{src:{default:null,parseHTML:e=>{const t=e.getAttribute("src");if(t)return t;const n=e.querySelector("source");return n?n.getAttribute("src"):null},renderHTML:e=>({src:e.src})},poster:{default:null,parseHTML:e=>e.getAttribute("poster"),renderHTML:e=>({poster:e.poster})},width:{default:350,parseHTML:e=>`${e.getAttribute("width")??""}`},controls:{default:!0,parseHTML:e=>`${e.getAttribute("controls")??"true"}`}}},parseHTML(){return[{tag:"video",getAttrs:e=>({src:e.getAttribute("src"),poster:e.getAttribute("poster")})}]},renderHTML({HTMLAttributes:e}){return["video",{controls:"true",...e,src:null},["source",{src:e.src}]]},addCommands(){return{setVideo:e=>({commands:t})=>t.insertContent(`<video controls="true" style="width: 100%" src="${e}" />`),toggleVideo:()=>({commands:e})=>e.toggleNode(this.name,"paragraph"),uploadVideo:e=>()=>{const t=typeof this.options.uploadHeaders=="object"?this.options.uploadHeaders:typeof this.options.uploadHeaders=="function"?this.options.uploadHeaders():{};if(this.options.uploaderEvent&&this.options.uploaderEvent.onUploadBefore&&this.options.uploaderEvent.onUploadBefore(e,this.options.uploadUrl,t)===!1)return!1;const n=u9(),{state:{tr:r},view:i,schema:o}=this.editor;r.selection.empty||r.deleteSelection(),i.dispatch(r.setMeta(sC,{type:"add",id:n,pos:r.selection.from}));const a=this.options.uploader||pX(this.options.uploadUrl),s=this.options.uploadFormName||"video";return a(e,this.options.uploadUrl,t,s).then(l=>{var c;if((c=this.options.uploaderEvent)!=null&&c.onSuccess){const u=this.options.uploaderEvent.onSuccess(e,l);if(typeof u=="boolean"&&!u)return;typeof u=="object"&&(l=u)}if(l.errorCode===0&&l.data&&l.data.src){let u=qfe.getState(this.editor.state).find(void 0,void 0,d=>d.id==n);i.dispatch(i.state.tr.insert(u[0].from,o.nodes.video.create({src:l.data.src,poster:l.data.poster,width:l.data.width||350,controls:l.data.controls||"true"})).setMeta(sC,{type:"remove",id:n}))}else i.dispatch(r.setMeta(sC,{type:"remove",id:n})),this.options.uploaderEvent&&this.options.uploaderEvent.onFailed&&this.options.uploaderEvent.onFailed(e,l)}).catch(l=>{const{state:{tr:c},view:u}=this.editor;u.dispatch(c.setMeta(sC,{type:"remove",id:n})),this.options.uploaderEvent&&this.options.uploaderEvent.onError&&this.options.uploaderEvent.onError(e,l)}),!0}}},addNodeView(){return e=>{const t=document.createElement("div");if(!this.editor.isEditable)return{dom:t};const{src:n,width:r,align:i}=e.node.attrs;return t.classList.add(`align-${i}`),t.innerHTML=`
<div class="aie-resize-wrapper">
<div class="aie-resize">
<div class="aie-resize-btn-top-left" data-position="left" draggable="true"></div>
<div class="aie-resize-btn-top-right" data-position="right" draggable="true"></div>
<div class="aie-resize-btn-bottom-left" data-position="left" draggable="true"></div>
<div class="aie-resize-btn-bottom-right" data-position="right" draggable="true"></div>
</div>
<video controls="controls" width="${r}" class="resize-obj">
<source src="${n}">
</video>
</div>
`,Q4e(t,this.editor.view.dom,o=>this.editor.commands.updateAttributes("video",o)),{dom:t}}},addInputRules(){return[eX({find:lgn,type:this.type,getAttributes:e=>{const[,,t]=e;return{src:t}}})]},addProseMirrorPlugins(){const e=this.editor;return[new Ei({key:qfe,state:{init:()=>Ci.empty,apply:(t,n)=>{const r=t.getMeta(sC);return n=n.map(t.mapping,t.doc),r&&r.type==="add"?n=n.add(t.doc,[K4e(r)]):r&&r.type==="remove"&&(n=n.remove(n.find(void 0,void 0,i=>i.id==r.id))),n}},props:{decorations(t){return this.getState(t)},handleDOMEvents:{drop(t,n){if(!(n.dataTransfer&&n.dataTransfer.files&&n.dataTransfer.files.length))return!1;const r=Array.from(n.dataTransfer.files).filter(l=>/video/i.test(l.type));if(r.length===0)return!1;n.preventDefault();const{state:{tr:i,doc:o},dispatch:a}=t,s=t.posAtCoords({left:n.clientX,top:n.clientY});return a(i.setSelection(er.create(o,s.pos)).scrollIntoView()),r.forEach(l=>{e.commands.uploadVideo(l)}),!0}}}})]}}),ugn=Eo.create({name:"iframe",group:"block",atom:!0,addOptions(){return{allowFullscreen:!0,HTMLAttributes:{class:"iframe-wrapper"}}},addAttributes(){return{src:{default:null},width:{default:"100%"},frameborder:{default:0},allowfullscreen:{default:this.options.allowFullscreen,parseHTML:()=>this.options.allowFullscreen}}},parseHTML(){return[{tag:"iframe"}]},renderHTML({HTMLAttributes:e}){return["div",this.options.HTMLAttributes,["iframe",e]]},addCommands(){return{setIframe:e=>({tr:t,dispatch:n})=>{const{selection:r}=t,i=this.type.create(e);return n&&t.replaceRangeWith(r.from,r.to,i),!0}}}});class dgn{constructor({editor:t,element:n,view:r,tippyOptions:i={},updateDelay:o=250,updateAtMouseUp:a=!1,shouldShow:s}){nn(this,"editor"),nn(this,"element"),nn(this,"view"),nn(this,"preventHide",!1),nn(this,"tippy"),nn(this,"tippyOptions"),nn(this,"updateDelay"),nn(this,"updateDebounceTimer"),nn(this,"updateInMouseUp",!1),nn(this,"shouldShow",({view:l,state:c,from:u,to:d})=>{const{doc:f,selection:h}=c,{empty:m}=h,g=!f.textBetween(u,d).length&&QQ(c.selection),v=this.element.contains(document.activeElement);return!(!(l.hasFocus()||v)||m||g||!this.editor.isEditable)}),nn(this,"mousedownHandler",()=>{this.preventHide=!0}),nn(this,"mouseupHandler",()=>{setTimeout(()=>{const{view:l}=this.editor,{state:c}=l,u=c.selection.from!==c.selection.to;if(this.updateDelay>0&&u){this.handleDebouncedUpdate(l);return}this.updateHandler(l,!0,!0)})}),nn(this,"dragstartHandler",()=>{this.hide()}),nn(this,"focusHandler",()=>{setTimeout(()=>this.update(this.editor.view))}),nn(this,"blurHandler",({event:l})=>{var c;if(this.preventHide){this.preventHide=!1;return}l!=null&&l.relatedTarget&&(c=this.element.parentNode)!=null&&c.contains(l.relatedTarget)||this.hide()}),nn(this,"tippyBlurHandler",l=>{this.blurHandler({event:l})}),nn(this,"handleDebouncedUpdate",(l,c)=>{const u=!(c!=null&&c.selection.eq(l.state.selection)),d=!(c!=null&&c.doc.eq(l.state.doc));!u&&!d||(this.updateDebounceTimer&&clearTimeout(this.updateDebounceTimer),this.updateDebounceTimer=window.setTimeout(()=>{this.updateHandler(l,u,d,c)},this.updateDelay))}),nn(this,"updateHandler",(l,c,u,d)=>{var f,h,m;const{state:g,composing:v}=l,{selection:y}=g;if(v||!c&&!u)return;this.createTooltip();const{ranges:b}=y,_=Math.min(...b.map(w=>w.$from.pos)),E=Math.max(...b.map(w=>w.$to.pos));if(!((f=this.shouldShow)!=null&&f.call(this,{editor:this.editor,view:l,state:g,oldState:d,from:_,to:E}))){this.hide();return}(m=this.tippy)==null||m.setProps({getReferenceClientRect:((h=this.tippyOptions)==null?void 0:h.getReferenceClientRect)||(()=>{if(u4e(g.selection)){let w=l.nodeDOM(_);const S=w.dataset.nodeViewWrapper?w:w.querySelector("[data-node-view-wrapper]");if(S&&(w=S.firstChild),w)return w.getBoundingClientRect()}return sx(l,_,E)})}),this.show()}),this.editor=t,this.element=n,this.view=r,this.updateDelay=o,this.updateInMouseUp=a,s&&(this.shouldShow=s),this.element.addEventListener("mousedown",this.mousedownHandler,{capture:!0}),this.updateInMouseUp&&this.view.dom.addEventListener("mouseup",this.mouseupHandler),this.view.dom.addEventListener("dragstart",this.dragstartHandler),this.editor.on("focus",this.focusHandler),this.editor.on("blur",this.blurHandler),this.tippyOptions=i,this.element.remove(),this.element.style.visibility="visible"}createTooltip(){const{element:t}=this.editor.options,n=!!t.parentElement;this.tippy||!n||(this.tippy=zo(t,{duration:0,getReferenceClientRect:null,content:this.element,interactive:!0,trigger:"manual",placement:"top",hideOnClick:"toggle",...this.tippyOptions}),this.tippy.popper.firstChild&&this.tippy.popper.firstChild.addEventListener("blur",this.tippyBlurHandler))}update(t,n){var r;const{state:i}=t;if(this.updateInMouseUp){if(i.selection.empty){this.hide();return}const{from:l,to:c,head:u}=i.selection,d=l==1&&c==i.doc.content.size-1,f=u==1,h=u==i.doc.content.size-1;if(!d&&!f&&!h){const m=!(n!=null&&n.selection.eq(t.state.selection));(r=this.tippy)!=null&&r.state.isVisible&&m&&this.hide();return}}const o=i.selection.from!==i.selection.to;if(this.updateDelay>0&&o){this.handleDebouncedUpdate(t,n);return}const a=!(n!=null&&n.selection.eq(t.state.selection)),s=!(n!=null&&n.doc.eq(t.state.doc));this.updateHandler(t,a,s,n)}show(){var t;(t=this.tippy)==null||t.show()}hide(){var t;(t=this.tippy)==null||t.hide()}destroy(){var t,n;(t=this.tippy)!=null&&t.popper.firstChild&&this.tippy.popper.firstChild.removeEventListener("blur",this.tippyBlurHandler),(n=this.tippy)==null||n.destroy(),this.element.removeEventListener("mousedown",this.mousedownHandler,{capture:!0}),this.updateInMouseUp&&this.view.dom.removeEventListener("mouseup",this.mouseupHandler),this.view.dom.removeEventListener("dragstart",this.dragstartHandler),this.editor.off("focus",this.focusHandler),this.editor.off("blur",this.blurHandler)}}const fgn=e=>new Ei({key:typeof e.pluginKey=="string"?new $i(e.pluginKey):e.pluginKey,view:t=>new dgn({view:t,...e})});class m9 extends HTMLElement{constructor(){super(),nn(this,"editor"),nn(this,"items",[]),nn(this,"tippyInstance"),nn(this,"activeOnClick",!0)}isActive(t){var n;return(n=this.editor)==null?void 0:n.isActive(t)}connectedCallback(){var t;this.innerHTML=`
<div class="aie-bubble-menu">
${this.items.map(n=>`<div class="aie-bubble-menu-item ${this.isActive(n.id)?"active":""}" id="${n.id}">${n.icon}</div>`).join("")}
</div>
`;for(let n of this.items)n.holder=(t=n.onInit)==null?void 0:t.call(n,this.editor.aiEditor,this.tippyInstance,this);this.querySelector("div").addEventListener("click",n=>{this.items.forEach(r=>{const i=n.target.closest(`#${r.id}`);i&&(this.onItemClick(r),this.activeOnClick&&(i.classList.contains("active")?i.classList.remove("active"):i.classList.add("active")))})}),this.querySelectorAll(".aie-bubble-menu-item").forEach((n,r)=>{const i=this.items[r].title;i&&zo(n,{appendTo:this.closest(".aie-container"),content:Pr(i),theme:"aietip",arrow:!0})})}set instance(t){this.tippyInstance=t}initItemsByOptions(t,n){if(n&&n.length>0)for(let r of n){const i=typeof r=="string"?t.getItem(r):r;i&&this.items.push(i)}else this.items=t.getAllItem()}onCreate(t,n){this.editor=t.editor}onItemClick(t){var n;(n=t.onClick)==null||n.call(t,this.editor.aiEditor,this.tippyInstance,this,t.holder)}onTransaction(t){}onEditableChange(t){}}const pgn={id:"edit",title:"edit-link",icon:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M6.41421 15.89L16.5563 5.74786L15.1421 4.33365L5 14.4758V15.89H6.41421ZM7.24264 17.89H3V13.6474L14.435 2.21233C14.8256 1.8218 15.4587 1.8218 15.8492 2.21233L18.6777 5.04075C19.0682 5.43128 19.0682 6.06444 18.6777 6.45497L7.24264 17.89ZM3 19.89H21V21.89H3V19.89Z"></path></svg>',onInit:(e,t,n)=>{const r=new cX;r.setContent(`
<div style="width: 250px">${Pr("link-address")} </div>
<div style="width: 250px">
<input type="text" id="href" style="width: 250px">
</div>
<div style="margin-top: 10px">${Pr("link-open-type")}</div>
<div>
<select id="target" style="width: 250px">
<option value="">${Pr("default")}</option>
<option value="_blank">${Pr("link-open-blank")}</option>
</select>
</div>
`),r.onConfirmClick(i=>{const o=i.popper.querySelector("#href").value;if(o.trim()===""){e.innerEditor.chain().focus().extendMarkRange("link").unsetLink().run();return}let a=i.popper.querySelector("#target").value;a.trim()===""&&(a=null),e.innerEditor.chain().focus().extendMarkRange("link").setLink({href:o,target:a,rel:null}).run()}),r.onShow(i=>{const o=e.innerEditor.getAttributes("link");o&&o.href&&(i.popper.querySelector("#href").value=o.href),o&&o.target&&(i.popper.querySelector("#target").value=o.target)}),r.setTrigger(n.querySelector("#edit"),"right")}},hgn={id:"unlink",title:"unlink",icon:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M17 17H22V19H19V22H17V17ZM7 7H2V5H5V2H7V7ZM18.364 15.5355L16.9497 14.1213L18.364 12.7071C20.3166 10.7545 20.3166 7.58866 18.364 5.63604C16.4113 3.68342 13.2455 3.68342 11.2929 5.63604L9.87868 7.05025L8.46447 5.63604L9.87868 4.22183C12.6123 1.48816 17.0445 1.48816 19.7782 4.22183C22.5118 6.9555 22.5118 11.3877 19.7782 14.1213L18.364 15.5355ZM15.5355 18.364L14.1213 19.7782C11.3877 22.5118 6.9555 22.5118 4.22183 19.7782C1.48816 17.0445 1.48816 12.6123 4.22183 9.87868L5.63604 8.46447L7.05025 9.87868L5.63604 11.2929C3.68342 13.2455 3.68342 16.4113 5.63604 18.364C7.58866 20.3166 10.7545 20.3166 12.7071 18.364L14.1213 16.9497L15.5355 18.364ZM14.8284 7.75736L16.2426 9.17157L9.17157 16.2426L7.75736 14.8284L14.8284 7.75736Z"></path></svg>',onClick:e=>{e.innerEditor.chain().focus().unsetLink().run()}},mgn={id:"visit",title:"visit-link",icon:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M10 6V8H5V19H16V14H18V20C18 20.5523 17.5523 21 17 21H4C3.44772 21 3 20.5523 3 20V7C3 6.44772 3.44772 6 4 6H10ZM21 3V11H19L18.9999 6.413L11.2071 14.2071L9.79289 12.7929L17.5849 5H13V3H21Z"></path></svg>',onClick:e=>{window.open(e.innerEditor.getAttributes("link").href,"_blank")}};class AX{constructor(t){nn(this,"record",{});for(let n of t)this.push(n)}push(t){this.record[t.id.toLowerCase()]=t}getItem(t){return this.record[t.toLowerCase()]}getAllItem(){return Object.values(this.record)}}const ggn=new AX([pgn,hgn,mgn]);class vgn extends m9{constructor(){super()}onCreate(t,n){var r;super.onCreate(t,n),this.initItemsByOptions(ggn,(r=n==null?void 0:n.link)==null?void 0:r.bubbleMenuItems),this.activeOnClick=!1}}const bgn={id:"AlignLeft",title:"align-left",icon:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M3 4H21V6H3V4ZM3 19H17V21H3V19ZM3 14H21V16H3V14ZM3 9H17V11H3V9Z"></path></svg>',onClick:e=>{const t=e.innerEditor.getAttributes("image");t.align="left",e.innerEditor.chain().setImage(t).run()}},ygn={id:"AlignCenter",title:"align-center",icon:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M3 4H21V6H3V4ZM5 19H19V21H5V19ZM3 14H21V16H3V14ZM5 9H19V11H5V9Z"></path></svg>',onClick:({innerEditor:e})=>{const t=e.getAttributes("image");t.align="center",e.chain().setImage(t).run()}},_gn={id:"AlignRight",title:"align-right",icon:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M3 4H21V6H3V4ZM7 19H21V21H7V19ZM3 14H21V16H3V14ZM7 9H21V11H7V9Z"></path></svg>',onClick:({innerEditor:e})=>{const t=e.getAttributes("image");t.align="right",e.chain().setImage(t).run()}},Sgn={id:"Resize",title:"resize",icon:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M3 21C2.44772 21 2 20.5523 2 20V4C2 3.44772 2.44772 3 3 3H21C21.5523 3 22 3.44772 22 4V20C22 20.5523 21.5523 21 21 21H3ZM15 10H4V19H15V10ZM20 10H17V19H20V10ZM20 5H4V8H20V5Z"></path></svg>',onClick:({innerEditor:e})=>{const t=e.getAttributes("image"),{width:n}=t;n==="100%"?t.width="50%":n==="50%"?t.width="75%":t.width="100%",e.chain().setImage(t).run()}},Egn={id:"delete",title:"delete",icon:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M7 4V2H17V4H22V6H20V21C20 21.5523 19.5523 22 19 22H5C4.44772 22 4 21.5523 4 21V6H2V4H7ZM6 6V20H18V6H6ZM9 9H11V17H9V9ZM13 9H15V17H13V9Z"></path></svg>',onClick:({innerEditor:e})=>{e.commands.deleteSelection()}},Cgn=new AX([bgn,ygn,_gn,Sgn,Egn]);class wgn extends m9{constructor(){super()}onCreate(t,n){var r;super.onCreate(t,n),this.initItemsByOptions(Cgn,(r=n==null?void 0:n.image)==null?void 0:r.bubbleMenuItems),this.activeOnClick=!1}}class Tgn extends m9{constructor(){super(),this.items=[{id:"insert-column-left",title:"insert-column-left",icon:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0z"></path><path d="M20 3C20.5523 3 21 3.44772 21 4V20C21 20.5523 20.5523 21 20 21H14C13.4477 21 13 20.5523 13 20V4C13 3.44772 13.4477 3 14 3H20ZM19 5H15V19H19V5ZM6 7C8.76142 7 11 9.23858 11 12C11 14.7614 8.76142 17 6 17C3.23858 17 1 14.7614 1 12C1 9.23858 3.23858 7 6 7ZM7 9H5V10.999L3 11V13L5 12.999V15H7V12.999L9 13V11L7 10.999V9Z"></path></svg>',onClick:({innerEditor:t})=>{t==null||t.chain().focus().addColumnBefore().run()}},{id:"insert-column-right",title:"insert-column-right",icon:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0z"></path><path d="M10 3C10.5523 3 11 3.44772 11 4V20C11 20.5523 10.5523 21 10 21H4C3.44772 21 3 20.5523 3 20V4C3 3.44772 3.44772 3 4 3H10ZM9 5H5V19H9V5ZM18 7C20.7614 7 23 9.23858 23 12C23 14.7614 20.7614 17 18 17C15.2386 17 13 14.7614 13 12C13 9.23858 15.2386 7 18 7ZM19 9H17V10.999L15 11V13L17 12.999V15H19V12.999L21 13V11L19 10.999V9Z"></path></svg>',onClick:({innerEditor:t})=>{t==null||t.chain().focus().addColumnAfter().run()}},{id:"insert-row-top",title:"insert-row-top",icon:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0z"></path><path d="M20 13C20.5523 13 21 13.4477 21 14V20C21 20.5523 20.5523 21 20 21H4C3.44772 21 3 20.5523 3 20V14C3 13.4477 3.44772 13 4 13H20ZM19 15H5V19H19V15ZM12 1C14.7614 1 17 3.23858 17 6C17 8.76142 14.7614 11 12 11C9.23858 11 7 8.76142 7 6C7 3.23858 9.23858 1 12 1ZM13 3H11V4.999L9 5V7L11 6.999V9H13V6.999L15 7V5L13 4.999V3Z"></path></svg>',onClick:({innerEditor:t})=>{t==null||t.chain().focus().addRowBefore().run()}},{id:"insert-row-bottom",title:"insert-row-bottom",icon:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0z"></path><path d="M12 13C14.7614 13 17 15.2386 17 18C17 20.7614 14.7614 23 12 23C9.23858 23 7 20.7614 7 18C7 15.2386 9.23858 13 12 13ZM13 15H11V16.999L9 17V19L11 18.999V21H13V18.999L15 19V17L13 16.999V15ZM20 3C20.5523 3 21 3.44772 21 4V10C21 10.5523 20.5523 11 20 11H4C3.44772 11 3 10.5523 3 10V4C3 3.44772 3.44772 3 4 3H20ZM5 5V9H19V5H5Z"></path></svg>',onClick:({innerEditor:t})=>{t==null||t.chain().focus().addRowAfter().run()}},{id:"delete-column",title:"delete-column",icon:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0z"></path><path d="M12 3C12.5523 3 13 3.44772 13 4L12.9998 11.9998C13.8355 11.372 14.8743 11 16 11C18.7614 11 21 13.2386 21 16C21 18.7614 18.7614 21 16 21C14.9681 21 14.0092 20.6874 13.2129 20.1518L13 20C13 20.5523 12.5523 21 12 21H6C5.44772 21 5 20.5523 5 20V4C5 3.44772 5.44772 3 6 3H12ZM11 5H7V19H11V5ZM19 15H13V17H19V15Z"></path></svg>',onClick:({innerEditor:t})=>{t==null||t.chain().focus().deleteColumn().run()}},{id:"delete-row",title:"delete-row",icon:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0z"></path><path d="M20 5C20.5523 5 21 5.44772 21 6V12C21 12.5523 20.5523 13 20 13C20.628 13.8355 21 14.8743 21 16C21 18.7614 18.7614 21 16 21C13.2386 21 11 18.7614 11 16C11 14.8743 11.372 13.8355 11.9998 12.9998L4 13C3.44772 13 3 12.5523 3 12V6C3 5.44772 3.44772 5 4 5H20ZM13 15V17H19V15H13ZM19 7H5V11H19V7Z"></path></svg>',onClick:({innerEditor:t})=>{t==null||t.chain().focus().deleteRow().run()}},{id:"merge-cells-horizontal",title:"merge-cells-horizontal",icon:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0z"></path><path d="M20 3C20.5523 3 21 3.44772 21 4V20C21 20.5523 20.5523 21 20 21H4C3.44772 21 3 20.5523 3 20V4C3 3.44772 3.44772 3 4 3H20ZM11 5H5V10.999H7V9L10 12L7 15V13H5V19H11V17H13V19H19V13H17V15L14 12L17 9V10.999H19V5H13V7H11V5ZM13 13V15H11V13H13ZM13 9V11H11V9H13Z"></path></svg>',onClick:({innerEditor:t})=>{t==null||t.chain().focus().mergeCells().run()}},{id:"merge-cells-vertical",title:"merge-cells-vertical",icon:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0z"></path><path d="M21 20C21 20.5523 20.5523 21 20 21H4C3.44772 21 3 20.5523 3 20V4C3 3.44772 3.44772 3 4 3H20C20.5523 3 21 3.44772 21 4V20ZM19 11V5H13.001V7H15L12 10L9 7H11V5H5V11H7V13H5V19H11V17H9L12 14L15 17H13.001V19H19V13H17V11H19ZM11 13H9V11H11V13ZM15 13H13V11H15V13Z"></path></svg>',onClick:({innerEditor:t})=>{t==null||t.chain().focus().mergeCells().run()}},{id:"split-cells-horizontal",title:"split-cells-horizontal",icon:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0z"></path><path d="M20 3C20.5523 3 21 3.44772 21 4V20C21 20.5523 20.5523 21 20 21H4C3.44772 21 3 20.5523 3 20V4C3 3.44772 3.44772 3 4 3H20ZM11 5H5V19H11V15H13V19H19V5H13V9H11V5ZM15 9L18 12L15 15V13H9V15L6 12L9 9V11H15V9Z"></path></svg>',onClick:({innerEditor:t})=>{t==null||t.chain().focus().splitCell().run()}},{id:"split-cells-vertical",title:"split-cells-vertical",icon:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0z"></path><path d="M20 3C20.5523 3 21 3.44772 21 4V20C21 20.5523 20.5523 21 20 21H4C3.44772 21 3 20.5523 3 20V4C3 3.44772 3.44772 3 4 3H20ZM19 5H5V10.999L9 11V13H5V19H19V13H15V11L19 10.999V5ZM12 6L15 9H13V15H15L12 18L9 15H11V9H9L12 6Z"></path></svg>',onClick:({innerEditor:t})=>{t==null||t.chain().focus().splitCell().run()}},{id:"delete",title:"delete-table",icon:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M7 4V2H17V4H22V6H20V21C20 21.5523 19.5523 22 19 22H5C4.44772 22 4 21.5523 4 21V6H2V4H7ZM6 6V20H18V6H6ZM9 9H11V17H9V9ZM13 9H15V17H13V9Z"></path></svg>',onClick:({innerEditor:t})=>{t==null||t.chain().focus().deleteTable().run()}}]}onCreate(t,n){super.onCreate(t,n),this.activeOnClick=!1}connectedCallback(){super.connectedCallback(),this.checkSelectionAndShow(this.editor)}onTransaction(t){this.checkSelectionAndShow(t.editor)}checkSelectionAndShow(t){const{state:{selection:n},view:r}=t;if(n instanceof Ti)if(this.isAllTableSelected(n))this.showItems(["delete"]);else if(this.isOneCellSelected(n)){const i=["insert-column-left","insert-column-right","delete-column","insert-row-top","insert-row-bottom","delete-row"];if(t.can().splitCell()){const o=r.nodeDOM(n.$anchorCell.pos),a=o.getAttribute("colspan"),s=o.getAttribute("rowspan");a&&Number(a)>1?i.push("split-cells-horizontal"):s&&Number(s)>1&&i.push("split-cells-vertical")}this.showItems(i)}else this.isColumnSelected(n,r)?this.showItems(["insert-column-left","insert-column-right","delete-column","merge-cells-vertical"]):this.isRowSelected(n,r)?this.showItems(["insert-row-top","insert-row-bottom","delete-row","merge-cells-horizontal"]):this.showItems(["merge-cells-horizontal"]);else this.showItems(["insert-column-left","insert-column-right","delete-column","insert-row-top","insert-row-bottom","delete-row"])}showItems(t){this.querySelectorAll(".aie-bubble-menu-item").forEach(n=>{n.style.display="none"}),t.forEach(n=>{const r=this.querySelector(`#${n}`);r&&(r.style.display="")})}isAllTableSelected(t){const n=Ro.get(t.$anchorCell.node(-1)),r=n.cellsInRect({top:0,left:0,right:n.width,bottom:n.height});return t.ranges.length==r.length}isOneCellSelected(t){return t.ranges.length==1}isColumnSelected(t,n){let r=-1;for(let i of t.ranges)if(r==-1)r=n.coordsAtPos(i.$from.pos).left;else if(r!=n.coordsAtPos(i.$from.pos).left)return!1;return!0}isRowSelected(t,n){let r=-1;for(let i of t.ranges)if(r==-1)r=n.coordsAtPos(i.$from.pos).bottom;else if(r!=n.coordsAtPos(i.$from.pos).bottom)return!1;return!0}}const E4={check:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0z"></path><path d="M10.0007 15.1709L19.1931 5.97852L20.6073 7.39273L10.0007 17.9993L3.63672 11.6354L5.05093 10.2212L10.0007 15.1709Z"></path></svg>',refresh:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M5.46257 4.43262C7.21556 2.91688 9.5007 2 12 2C17.5228 2 22 6.47715 22 12C22 14.1361 21.3302 16.1158 20.1892 17.7406L17 12H20C20 7.58172 16.4183 4 12 4C9.84982 4 7.89777 4.84827 6.46023 6.22842L5.46257 4.43262ZM18.5374 19.5674C16.7844 21.0831 14.4993 22 12 22C6.47715 22 2 17.5228 2 12C2 9.86386 2.66979 7.88416 3.8108 6.25944L7 12H4C4 16.4183 7.58172 20 12 20C14.1502 20 16.1022 19.1517 17.5398 17.7716L18.5374 19.5674Z" fill="currentColor"></path></svg>',aiPanelStart:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M16.1716 10.9999L10.8076 5.63589L12.2218 4.22168L20 11.9999L12.2218 19.778L10.8076 18.3638L16.1716 12.9999H4V10.9999H16.1716Z"></path></svg>',aiPanelStop:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M6 7V17C6 17.5523 6.44772 18 7 18H17C17.5523 18 18 17.5523 18 17V7C18 6.44772 17.5523 6 17 6H7C6.44772 6 6 6.44772 6 7Z"></path></svg>'};class i5e{constructor(t,n){nn(this,"delay"),nn(this,"appending",!1),nn(this,"isFinished",!1),nn(this,"textarea"),nn(this,"textQueue",[]),this.delay=t,this.textarea=n}appendText(t){this.textQueue.push(t),this.processQueue()}finished(){this.isFinished=!0}processQueue(){if(this.appending||this.textQueue.length===0)return;if(this.isFinished){this.textarea.value+=this.textQueue.join(""),this.textarea.style.height=`${this.textarea.scrollHeight}px`,this.textarea.scrollTop=this.textarea.scrollHeight;return}const t=this.textQueue.shift();this.appending=!0;let n=0;const r=setInterval(()=>{n<t.length?(this.textarea.value+=t[n],this.textarea.style.height=`${this.textarea.scrollHeight}px`,this.textarea.scrollTop=this.textarea.scrollHeight,n++):(clearInterval(r),this.appending=!1,this.processQueue())},this.delay)}}const o5e=e=>{const{view:t,state:n}=e,{head:r,from:i,to:o}=n.selection;if(i==1&&o==n.doc.content.size-1){const a=sx(t,i,o),s=t.dom.closest(".aie-container").getBoundingClientRect(),l=a.bottom>s.bottom?s.bottom:a.bottom;let c=a.height>s.height?s.height/2:a.height;const u=a.top<s.top?s.top:a.top;let d=a.left;if(a.width==0){const f=t.dom.getBoundingClientRect();d=f.left+f.right/2,c-=50}return{...a,top:u,left:d,height:c,bottom:l}}else{const a=sx(t,r,r);return{...a,height:a.height-10}}},xgn=[{prompt:`<content>{content}</content>
请帮我优化一下这段内容,并直接返回优化后的结果。
注意:你应该先判断一下这句话是中文还是英文,如果是中文,请给我返回中文的内容,如果是英文,请给我返回英文内容,只需要返回内容即可,不需要告知我是中文还是英文。`,icon:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M15.1986 9.94447C14.7649 9.5337 14.4859 8.98613 14.4085 8.39384L14.0056 5.31138L11.275 6.79724C10.7503 7.08274 10.1433 7.17888 9.55608 7.06948L6.49998 6.50015L7.06931 9.55625C7.17871 10.1435 7.08257 10.7505 6.79707 11.2751L5.31121 14.0057L8.39367 14.4086C8.98596 14.4861 9.53353 14.7651 9.94431 15.1987L12.0821 17.4557L13.4178 14.6486C13.6745 14.1092 14.109 13.6747 14.6484 13.418L17.4555 12.0823L15.1986 9.94447ZM15.2238 15.5079L13.0111 20.1581C12.8687 20.4573 12.5107 20.5844 12.2115 20.442C12.1448 20.4103 12.0845 20.3665 12.0337 20.3129L8.49229 16.5741C8.39749 16.474 8.27113 16.4096 8.13445 16.3918L3.02816 15.7243C2.69958 15.6814 2.46804 15.3802 2.51099 15.0516C2.52056 14.9784 2.54359 14.9075 2.5789 14.8426L5.04031 10.3192C5.1062 10.1981 5.12839 10.058 5.10314 9.92253L4.16 4.85991C4.09931 4.53414 4.3142 4.22086 4.63997 4.16017C4.7126 4.14664 4.78711 4.14664 4.85974 4.16017L9.92237 5.10331C10.0579 5.12855 10.198 5.10637 10.319 5.04048L14.8424 2.57907C15.1335 2.42068 15.4979 2.52825 15.6562 2.81931C15.6916 2.88421 15.7146 2.95507 15.7241 3.02833L16.3916 8.13462C16.4095 8.2713 16.4739 8.39766 16.5739 8.49245L20.3127 12.0338C20.5533 12.2617 20.5636 12.6415 20.3357 12.8821C20.2849 12.9357 20.2246 12.9795 20.1579 13.0112L15.5078 15.224C15.3833 15.2832 15.283 15.3835 15.2238 15.5079ZM16.0206 17.435L17.4348 16.0208L21.6775 20.2634L20.2633 21.6776L16.0206 17.435Z"></path></svg>',title:"improve-writing"},{prompt:`<content>{content}</content>
请帮我检查一下这段内容,是否有拼写错误或者语法上的错误。
注意:你应该先判断一下这句话是中文还是英文,如果是中文,请给我返回中文的内容,如果是英文,请给我返回英文内容,只需要返回内容即可,不需要告知我是中文还是英文。`,icon:' <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M12 19C12.8284 19 13.5 19.6716 13.5 20.5C13.5 21.3284 12.8284 22 12 22C11.1716 22 10.5 21.3284 10.5 20.5C10.5 19.6716 11.1716 19 12 19ZM6.5 19C7.32843 19 8 19.6716 8 20.5C8 21.3284 7.32843 22 6.5 22C5.67157 22 5 21.3284 5 20.5C5 19.6716 5.67157 19 6.5 19ZM17.5 19C18.3284 19 19 19.6716 19 20.5C19 21.3284 18.3284 22 17.5 22C16.6716 22 16 21.3284 16 20.5C16 19.6716 16.6716 19 17.5 19ZM13 2V4H19V6L17.0322 6.0006C16.2423 8.3666 14.9984 10.5065 13.4107 12.302C14.9544 13.6737 16.7616 14.7204 18.7379 15.3443L18.2017 17.2736C15.8917 16.5557 13.787 15.3326 12.0005 13.7257C10.214 15.332 8.10914 16.5553 5.79891 17.2734L5.26257 15.3442C7.2385 14.7203 9.04543 13.6737 10.5904 12.3021C9.46307 11.0285 8.50916 9.58052 7.76789 8.00128L10.0074 8.00137C10.5706 9.03952 11.2401 10.0037 11.9998 10.8772C13.2283 9.46508 14.2205 7.81616 14.9095 6.00101L5 6V4H11V2H13Z"></path></svg>',title:"check-spelling-and-grammar"},{prompt:`<content>{content}</content>
这句话的内容较长,帮我简化一下这个内容,并直接返回简化后的内容结果。
注意:你应该先判断一下这句话是中文还是英文,如果是中文,请给我返回中文的内容,如果是英文,请给我返回英文内容,只需要返回内容即可,不需要告知我是中文还是英文。`,icon:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M21 6.75736L19 8.75736V4H10V9H5V20H19V17.2426L21 15.2426V21.0082C21 21.556 20.5551 22 20.0066 22H3.9934C3.44476 22 3 21.5501 3 20.9932V8L9.00319 2H19.9978C20.5513 2 21 2.45531 21 2.9918V6.75736ZM21.7782 8.80761L23.1924 10.2218L15.4142 18L13.9979 17.9979L14 16.5858L21.7782 8.80761Z"></path></svg>',title:"make-shorter"},{prompt:`<content>{content}</content>
这句话的内容较简短,帮我简单的优化和丰富一下内容,并直接返回优化后的结果。注意:优化的内容不能超过原来内容的 2 倍。
注意:你应该先判断一下这句话是中文还是英文,如果是中文,请给我返回中文的内容,如果是英文,请给我返回英文内容,只需要返回内容即可,不需要告知我是中文还是英文。`,icon:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M20 2C20.5523 2 21 2.44772 21 3V6.757L19 8.757V4H5V20H19V17.242L21 15.242V21C21 21.5523 20.5523 22 20 22H4C3.44772 22 3 21.5523 3 21V3C3 2.44772 3.44772 2 4 2H20ZM21.7782 8.80761L23.1924 10.2218L15.4142 18L13.9979 17.9979L14 16.5858L21.7782 8.80761ZM13 12V14H8V12H13ZM16 8V10H8V8H16Z"></path></svg>',title:"make-longer"},"<hr/>",{prompt:`<content>{content}</content>
请帮我翻译以上内容,在翻译之前,想先判断一下这个内容是不是中文,如果是中文,则翻译问英文,如果是其他语言,则需要翻译为中文,注意,你只需要返回翻译的结果,不需要对此进行任何解释,不需要除了翻译结果以外的其他任何内容。`,icon:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M5 15V17C5 18.0544 5.81588 18.9182 6.85074 18.9945L7 19H10V21H7C4.79086 21 3 19.2091 3 17V15H5ZM18 10L22.4 21H20.245L19.044 18H14.954L13.755 21H11.601L16 10H18ZM17 12.8852L15.753 16H18.245L17 12.8852ZM8 2V4H12V11H8V14H6V11H2V4H6V2H8ZM17 3C19.2091 3 21 4.79086 21 7V9H19V7C19 5.89543 18.1046 5 17 5H14V3H17ZM6 6H4V9H6V6ZM10 6H8V9H10V6Z"></path></svg>',title:"translate"},{prompt:`<content>{content}</content>
请帮我总结以上内容,并直接返回总结的结果
注意:你应该先判断一下这句话是中文还是英文,如果是中文,请给我返回中文的内容,如果是英文,请给我返回英文内容,只需要返回内容即可,不需要告知我是中文还是英文。`,icon:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M18 3C19.6569 3 21 4.34315 21 6C21 7.65685 19.6569 9 18 9H15C13.6941 9 12.5831 8.16562 12.171 7.0009L11 7C9.9 7 9 7.9 9 9L9.0009 9.17102C10.1656 9.58312 11 10.6941 11 12C11 13.3059 10.1656 14.4169 9.0009 14.829L9 15C9 16.1 9.9 17 11 17L12.1707 17.0001C12.5825 15.8349 13.6937 15 15 15H18C19.6569 15 21 16.3431 21 18C21 19.6569 19.6569 21 18 21H15C13.6941 21 12.5831 20.1656 12.171 19.0009L11 19C8.79 19 7 17.21 7 15H5C3.34315 15 2 13.6569 2 12C2 10.3431 3.34315 9 5 9H7C7 6.79086 8.79086 5 11 5L12.1707 5.00009C12.5825 3.83485 13.6937 3 15 3H18ZM18 17H15C14.4477 17 14 17.4477 14 18C14 18.5523 14.4477 19 15 19H18C18.5523 19 19 18.5523 19 18C19 17.4477 18.5523 17 18 17ZM8 11H5C4.44772 11 4 11.4477 4 12C4 12.5523 4.44772 13 5 13H8C8.55228 13 9 12.5523 9 12C9 11.4477 8.55228 11 8 11ZM18 5H15C14.4477 5 14 5.44772 14 6C14 6.55228 14.4477 7 15 7H18C18.5523 7 19 6.55228 19 6C19 5.44772 18.5523 5 18 5Z"></path></svg>',title:"summarize"}],Yfe=(e,t,n)=>{var r,i;if(e.aiClient)e.aiClient.stop();else{const o=t.querySelector("textarea");o.value="";const{selection:a,doc:s}=e.editor.state,l=s.textBetween(a.from,a.to),c=e.editor.aiEditor.options,u=Sg.get((r=c.ai)==null?void 0:r.bubblePanelModel);if(u){const d=new i5e(30,o);u.chat(l,n,{onStart(f){e.aiClient=f,t.querySelector(".aie-ai-panel-actions").style.display="none",t.querySelector(".loader").style.display="block",t.querySelector(".aie-ai-panel-body-content").style.display="block",t.querySelector("#go").innerHTML=E4.aiPanelStop},onStop(){e.aiClient=void 0,t.querySelector("#go").innerHTML=E4.aiPanelStart,t.querySelector(".aie-ai-panel-footer").style.display="block",t.querySelector(".loader").style.display="none",t.querySelector(".aie-ai-panel-actions").style.display="none",d.finished()},onMessage(f){d.appendText(f.content)}})}else console.error('AI model name config error. can not get AI model by name: "'+((i=c.ai)==null?void 0:i.bubblePanelModel)+'", please check config "options.ai.bubblePanelModel"')}},Ogn=(e,t)=>{const n=document.createElement("div");return n.classList.add("aie-ai-panel"),n.innerHTML=`
<div class="aie-ai-panel-body">
<div class="aie-ai-panel-body-content" style="display: none"><div class="loader">${E4.refresh}</div><textarea readonly></textarea></div>
<div class="aie-ai-panel-body-input"><input id="prompt" placeholder="${Pr("placeholder-tell-ai-what-to-do-next")}" type="text" />
<button type="button" id="go" style="width: 30px;height: 30px">${E4.aiPanelStart}</button></div>
<div class="aie-ai-panel-body-tips"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M9 17C9 17 16 18 19 21H20C20.5523 21 21 20.5523 21 20V13.937C21.8626 13.715 22.5 12.9319 22.5 12C22.5 11.0681 21.8626 10.285 21 10.063V4C21 3.44772 20.5523 3 20 3H19C16 6 9 7 9 7H5C3.89543 7 3 7.89543 3 9V15C3 16.1046 3.89543 17 5 17H6L7 22H9V17ZM11 8.6612C11.6833 8.5146 12.5275 8.31193 13.4393 8.04373C15.1175 7.55014 17.25 6.77262 19 5.57458V18.4254C17.25 17.2274 15.1175 16.4499 13.4393 15.9563C12.5275 15.6881 11.6833 15.4854 11 15.3388V8.6612ZM5 9H9V15H5V9Z" fill="currentColor"></path></svg>
${Pr("tip-you-can-enter-text-above-or-select-the-operation-below")}</div>
</div>
<div class="aie-ai-panel-footer" style="display: none">
<div class="aie-ai-panel-footer-tips">${Pr("you-can-do-the-following")}</div>
<p id="insert"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M2 18H12V20H2V18ZM2 11H22V13H2V11ZM2 4H22V6H2V4ZM18 18V15H20V18H23V20H20V23H18V20H15V18H18Z" fill="currentColor"></path></svg>
${Pr("ai-append")}</p>
<p id="replace"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M10.071 4.92902L11.4852 6.34323L6.82834 11.0001L16.0002 11.0002L16.0002 13.0002L6.82839 13.0001L11.4852 17.6569L10.071 19.0712L2.99994 12.0001L10.071 4.92902ZM18.0001 19V5.00003H20.0001V19H18.0001Z" fill="currentColor"></path></svg>
${Pr("ai-replace")}</p>
<hr/>
<p id="hide"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M17 6H22V8H20V21C20 21.5523 19.5523 22 19 22H5C4.44772 22 4 21.5523 4 21V8H2V6H7V3C7 2.44772 7.44772 2 8 2H16C16.5523 2 17 2.44772 17 3V6ZM18 8H6V20H18V8ZM9 4V6H15V4H9Z" fill="currentColor"></path></svg>
${Pr("ai-cancel")}</p>
</div>
<!--aie-ai-panel-actions-->
<div class="aie-ai-panel-footer aie-ai-panel-actions" >
<div class="aie-ai-panel-footer-tips">${Pr("you-can-do-the-following")}</div>
${t.map(r=>typeof r=="string"?r:`<p data-prompt="${r.prompt}">${r.icon} ${Pr(r.title)} </p>`).join("")}
</div>
`,n.querySelector("#replace").addEventListener("click",()=>{var r,i;const o=n.querySelector("textarea");if(o.value){const{state:{selection:a,tr:s},view:{dispatch:l},schema:c}=e.editor,u=c.text(o.value);l(s.replaceRangeWith(a.from,a.to,u)),(r=e.aiPanelInstance)==null||r.hide(),(i=e.tippyInstance)==null||i.show()}}),n.querySelector("#insert").addEventListener("click",()=>{var r,i;const o=n.querySelector("textarea");if(o.value){const{state:{selection:a,tr:s},view:{dispatch:l}}=e.editor;l(s.insertText(o.value,a.to)),(r=e.aiPanelInstance)==null||r.hide(),(i=e.tippyInstance)==null||i.show()}}),n.querySelector("#hide").addEventListener("click",()=>{var r,i;(r=e.aiPanelInstance)==null||r.hide(),(i=e.tippyInstance)==null||i.show()}),n.querySelector("#go").addEventListener("click",()=>{const r=n.querySelector("#prompt").value;Yfe(e,n,r)}),n.querySelectorAll(".aie-ai-panel-actions p").forEach(r=>{const i=r.getAttribute("data-prompt");r.addEventListener("click",()=>{Yfe(e,n,i)})}),n.addEventListener("click",r=>{var i,o;r.target===n&&((i=e.aiPanelInstance)==null||i.hide(),(o=e.tippyInstance)==null||o.show())}),n},Rgn={id:"ai",title:"ai",icon:`<div style="display: flex;height: 20px">
<div style="width: 18px;height: 18px;display: inline-block" >
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="rgba(100,205,138,1)"><path d="M13.5 2C13.5 2.44425 13.3069 2.84339 13 3.11805V5H18C19.6569 5 21 6.34315 21 8V18C21 19.6569 19.6569 21 18 21H6C4.34315 21 3 19.6569 3 18V8C3 6.34315 4.34315 5 6 5H11V3.11805C10.6931 2.84339 10.5 2.44425 10.5 2C10.5 1.17157 11.1716 0.5 12 0.5C12.8284 0.5 13.5 1.17157 13.5 2ZM6 7C5.44772 7 5 7.44772 5 8V18C5 18.5523 5.44772 19 6 19H18C18.5523 19 19 18.5523 19 18V8C19 7.44772 18.5523 7 18 7H13H11H6ZM2 10H0V16H2V10ZM22 10H24V16H22V10ZM9 14.5C9.82843 14.5 10.5 13.8284 10.5 13C10.5 12.1716 9.82843 11.5 9 11.5C8.17157 11.5 7.5 12.1716 7.5 13C7.5 13.8284 8.17157 14.5 9 14.5ZM15 14.5C15.8284 14.5 16.5 13.8284 16.5 13C16.5 12.1716 15.8284 11.5 15 11.5C14.1716 11.5 13.5 12.1716 13.5 13C13.5 13.8284 14.1716 14.5 15 14.5Z"></path></svg>
</div>
<div style="width: 18px;height: 18px;display: inline-block" >
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0z"></path><path d="M12 14L8 10H16L12 14Z"></path></svg>
</div>
</div>
`,onInit:({innerEditor:e},t,n)=>{var r;const i={editor:e,tippyInstance:t},o=((r=e.aiEditor.options.ai)==null?void 0:r.bubblePanelMenus)||xgn;return i.aiPanelInstance=zo(n.querySelector("#ai"),{content:Ogn(i,o),appendTo:e.view.dom.closest(".aie-container"),trigger:"click",interactive:!0,arrow:!1,placement:"bottom",getReferenceClientRect:()=>o5e(e),onShow:a=>{window.setTimeout(()=>{var s;return(s=a.popper.querySelector("#prompt"))==null?void 0:s.focus()},0)}}),i},onClick:(e,t,n,r)=>{var i;(i=r.tippyInstance)==null||i.hide()}},Ign={id:"bold",title:"bold",icon:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M8 11H12.5C13.8807 11 15 9.88071 15 8.5C15 7.11929 13.8807 6 12.5 6H8V11ZM18 15.5C18 17.9853 15.9853 20 13.5 20H6V4H12.5C14.9853 4 17 6.01472 17 8.5C17 9.70431 16.5269 10.7981 15.7564 11.6058C17.0979 12.3847 18 13.837 18 15.5ZM8 13V18H13.5C14.8807 18 16 16.8807 16 15.5C16 14.1193 14.8807 13 13.5 13H8Z"></path></svg>',onClick:({innerEditor:e})=>{e.chain().toggleBold().run()}},Agn={id:"underline",title:"underline",icon:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M8 3V12C8 14.2091 9.79086 16 12 16C14.2091 16 16 14.2091 16 12V3H18V12C18 15.3137 15.3137 18 12 18C8.68629 18 6 15.3137 6 12V3H8ZM4 20H20V22H4V20Z"></path></svg>',onClick:({innerEditor:e})=>{e.chain().toggleUnderline().run()}},Ngn={id:"code",title:"code",icon:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M23 11.9998L15.9289 19.0708L14.5147 17.6566L20.1716 11.9998L14.5147 6.34292L15.9289 4.92871L23 11.9998ZM3.82843 11.9998L9.48528 17.6566L8.07107 19.0708L1 11.9998L8.07107 4.92871L9.48528 6.34292L3.82843 11.9998Z"></path></svg>',onClick:({innerEditor:e})=>{e.chain().toggleCode().run()}},Mgn={id:"strike",title:"strike",icon:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M17.1538 14C17.3846 14.5161 17.5 15.0893 17.5 15.7196C17.5 17.0625 16.9762 18.1116 15.9286 18.867C14.8809 19.6223 13.4335 20 11.5862 20C9.94674 20 8.32335 19.6185 6.71592 18.8555V16.6009C8.23538 17.4783 9.7908 17.917 11.3822 17.917C13.9333 17.917 15.2128 17.1846 15.2208 15.7196C15.2208 15.0939 15.0049 14.5598 14.5731 14.1173C14.5339 14.0772 14.4939 14.0381 14.4531 14H3V12H21V14H17.1538ZM13.076 11H7.62908C7.4566 10.8433 7.29616 10.6692 7.14776 10.4778C6.71592 9.92084 6.5 9.24559 6.5 8.45207C6.5 7.21602 6.96583 6.165 7.89749 5.299C8.82916 4.43299 10.2706 4 12.2219 4C13.6934 4 15.1009 4.32808 16.4444 4.98426V7.13591C15.2448 6.44921 13.9293 6.10587 12.4978 6.10587C10.0187 6.10587 8.77917 6.88793 8.77917 8.45207C8.77917 8.87172 8.99709 9.23796 9.43293 9.55079C9.86878 9.86362 10.4066 10.1135 11.0463 10.3004C11.6665 10.4816 12.3431 10.7148 13.076 11H13.076Z"></path></svg>',onClick:({innerEditor:e})=>{e.chain().toggleStrike().run()}},kgn={id:"italic",title:"italic",icon:' <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M15 20H7V18H9.92661L12.0425 6H9V4H17V6H14.0734L11.9575 18H15V20Z"></path></svg>',onClick:({innerEditor:e})=>{e.chain().toggleItalic().run()}},Pgn=[{title:"英语"},{title:"中文"},{title:"日语"},{title:"法语"},{title:"德语"},{title:"葡萄牙语"},{title:"西班牙语"}],Dgn=(e,t,n)=>{var r,i,o,a;if(e.aiClient)e.aiClient.stop();else{const{selection:s,doc:l}=e.editor.state,c=l.textBetween(s.from,s.to);let u=((a=(o=(i=(r=e.editor)==null?void 0:r.aiEditor.options.ai)==null?void 0:i.translate)==null?void 0:o.prompt)==null?void 0:a.call(o,t,c))||`你是一个${t}翻译专家,精通多个国家的语言,请帮我把以下 <content> 标签里内容翻译为: ${t},并返回翻译后结果。您需要翻译的内容是:
<content>${c}</content>`;const d=Sg.get("auto");if(d){const f=new i5e(30,n);d.chat("",u,{onStart(h){e.aiClient=h},onStop(){e.aiClient=void 0,f.finished()},onMessage(h){f.appendText(h.content)}})}else console.error("AI model name config error.")}},Lgn=e=>{const t=document.createElement("div");return t.classList.add("aie-translate-result-panel"),t.innerHTML=`
<textarea rows="5" readonly></textarea>
<div>
<button type="button" id="cancel"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M17 6H22V8H20V21C20 21.5523 19.5523 22 19 22H5C4.44772 22 4 21.5523 4 21V8H2V6H7V3C7 2.44772 7.44772 2 8 2H16C16.5523 2 17 2.44772 17 3V6ZM18 8H6V20H18V8ZM9 4V6H15V4H9Z" fill="currentColor"></path></svg>
${Pr("ai-cancel")}</button>
<button type="button" id="append"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M2 18H12V20H2V18ZM2 11H22V13H2V11ZM2 4H22V6H2V4ZM18 18V15H20V18H23V20H20V23H18V20H15V18H18Z" fill="currentColor"></path></svg>
${Pr("ai-append")}</button>
<button type="button" id="replace"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M10.071 4.92902L11.4852 6.34323L6.82834 11.0001L16.0002 11.0002L16.0002 13.0002L6.82839 13.0001L11.4852 17.6569L10.071 19.0712L2.99994 12.0001L10.071 4.92902ZM18.0001 19V5.00003H20.0001V19H18.0001Z" fill="currentColor"></path></svg>
${Pr("ai-replace")}</button>
</div>
`,t.querySelector("#cancel").addEventListener("click",()=>{var n,r;(n=e.translateResultInstance)==null||n.hide(),(r=e.tippyInstance)==null||r.show()}),t.querySelector("#append").addEventListener("click",()=>{var n,r,i;(n=e.translateResultInstance)==null||n.hide();const{state:{selection:o,doc:a}}=e.editor;(r=e.editor)==null||r.commands.setTextSelection(er.create(a,o.to)),(i=e.editor)==null||i.insertMarkdown(t.querySelector("textarea").value)}),t.querySelector("#replace").addEventListener("click",()=>{var n,r;(n=e.translateResultInstance)==null||n.hide(),(r=e.editor)==null||r.insertMarkdown(t.querySelector("textarea").value)}),t},$gn=(e,t)=>{const n=document.createElement("div");n.classList.add("aie-translate-panel"),n.innerHTML=`
<div class="aie-translate-panel-body">
${t.map(i=>typeof i=="string"?`<p data-lang="${i}">${Pr(i)} </p>`:`<p data-lang="${i.language||i.title}">${Pr(i.title)} </p>`).join("")}
</div>
`;const r=e.editor.view.dom.closest(".aie-container");return e.translateResultInstance=zo(n,{content:Lgn(e),appendTo:r,placement:"bottom",interactive:!0,trigger:"click",arrow:!1,getReferenceClientRect(){return r.getBoundingClientRect()},offset:[0,-r.getBoundingClientRect().height+100],onTrigger:(i,o)=>{var a;const s=o.target&&o.target.getAttribute("data-lang");if(!s){i.disable();return}const l=i.popper.querySelector("textarea");l.value="",(a=e.translatePanelInstance)==null||a.hide(),Dgn(e,s,l)},onUntrigger:i=>{i.enable()}}),n},Fgn={id:"translate",title:"translate",icon:`<div style="display: flex;height: 20px">
<div style="width: 18px;height: 18px;display: inline-block" >
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M5 15V17C5 18.0544 5.81588 18.9182 6.85074 18.9945L7 19H10V21H7C4.79086 21 3 19.2091 3 17V15H5ZM18 10L22.4 21H20.245L19.044 18H14.954L13.755 21H11.601L16 10H18ZM17 12.8852L15.753 16H18.245L17 12.8852ZM8 2V4H12V11H8V14H6V11H2V4H6V2H8ZM17 3C19.2091 3 21 4.79086 21 7V9H19V7C19 5.89543 18.1046 5 17 5H14V3H17ZM6 6H4V9H6V6ZM10 6H8V9H10V6Z"></path></svg>
</div>
<div style="width: 18px;height: 18px;display: inline-block" >
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0z"></path><path d="M12 14L8 10H16L12 14Z"></path></svg>
</div>
</div>
`,onInit:({innerEditor:e},t,n)=>{var r,i;const o={editor:e,tippyInstance:t},a=((i=(r=e.aiEditor.options.ai)==null?void 0:r.translate)==null?void 0:i.translateMenuItems)||Pgn;return o.translatePanelInstance=zo(n.querySelector("#translate"),{content:$gn(o,a),appendTo:e.view.dom.closest(".aie-container"),placement:"bottom",trigger:"click",interactive:!0,arrow:!1}),o}},Bgn=new AX([Rgn,Ign,kgn,Agn,Mgn,Fgn,Ngn]),jgn=(e,t)=>{if(!e||e.length===0)return e;let n=0;for(;n<e.length;)t(e[n],n,e)?e.splice(n,1):++n;return e};class Hgn extends m9{constructor(){super()}onCreate(t,n){var r,i,o,a;if(super.onCreate(t,n),this.initItemsByOptions(Bgn,(r=n==null?void 0:n.textSelectionBubbleMenu)==null?void 0:r.items),((i=n.ai)==null?void 0:i.bubblePanelEnable)===!1)jgn(this.items,s=>s.id==="ai");else if((o=n.ai)!=null&&o.bubblePanelIcon){for(let s of this.items)if(s.id==="ai"){s.icon=(a=n.ai)==null?void 0:a.bubblePanelIcon;break}}}}yr("aie-bubble-link",vgn);yr("aie-bubble-image",wgn);yr("aie-bubble-table",Tgn);yr("aie-bubble-text",Hgn);function g9(e,t){return gi.create({name:e,addOptions(){return{...t}},addProseMirrorPlugins(){return this.options.element?[fgn({pluginKey:this.options.pluginKey,editor:this.editor,element:this.options.element,tippyOptions:this.options.tippyOptions,updateDelay:this.options.updateDelay,shouldShow:this.options.shouldShow,updateAtMouseUp:this.options.updateAtMouseUp})]:[]}})}const Ugn=e=>{var t;const n=((t=e.options.textSelectionBubbleMenu)==null?void 0:t.elementTagName)||"aie-bubble-text",r=document.createElement(n);return e.eventComponents.push(r),g9("textSelectionBubble",{pluginKey:"textSelectionBubble",element:r,updateDelay:0,updateAtMouseUp:!0,tippyOptions:{appendTo:e.container,arrow:!1,placement:"bottom",getReferenceClientRect:()=>o5e(e.innerEditor),onCreate(i){r.instance=i}},shouldShow:({editor:i})=>{if(!i.isEditable)return!1;const{state:{selection:o}}=i;return!o.empty&&r9(i.state.doc,{from:o.from,to:o.to}).trim().length>0&&!i.isActive("link")&&!i.isActive("image")&&!(o instanceof Ti)}})},zgn=e=>{const t=document.createElement("aie-bubble-link");return e.eventComponents.push(t),g9("linkBubble",{pluginKey:"linkBubble",element:t,tippyOptions:{appendTo:e.container,placement:"bottom",arrow:!1,onCreate(n){t.instance=n}},shouldShow:({editor:n})=>n.isEditable&&n.isActive("link")})},Vgn=e=>{const t=document.createElement("aie-bubble-image");return e.eventComponents.push(t),g9("imageBubble",{pluginKey:"imageBubble",element:t,tippyOptions:{appendTo:e.container,placement:"top-start",arrow:!1,getReferenceClientRect:()=>{const{ranges:n}=e.innerEditor.state.selection,r=Math.min(...n.map(c=>c.$from.pos)),i=Math.max(...n.map(c=>c.$to.pos)),{view:o}=e.innerEditor,a=o.nodeDOM(r).querySelector("img"),s=sx(o,r,i),l=a.getBoundingClientRect();return{...s,left:l.left+l.width*.5-100}},onCreate(n){t.instance=n}},shouldShow:({editor:n})=>n.isEditable&&n.isActive("image")})},Ggn=e=>{const t=document.createElement("aie-bubble-table");return e.eventComponents.push(t),g9("tableBubble",{pluginKey:"tableBubble",element:t,tippyOptions:{placement:"top",appendTo:e.container,arrow:!1,getReferenceClientRect:()=>{const n=e.innerEditor.state.selection,{ranges:r}=n,i=Math.min(...r.map(d=>d.$from.pos)),o=Math.max(...r.map(d=>d.$to.pos)),{view:a,state:s}=e.innerEditor,l=sx(a,i,o),c=s.selection.$from.posAtIndex(0,1),u=a.coordsAtPos(c);return{...l,top:u.top}}},shouldShow:({editor:n})=>{const{state:{selection:r}}=n;return n.isEditable&&n.isActive("table")&&r instanceof Ti}})},Wgn=e=>{var t,n;const r=[];return e.options.editable===!1||(((t=e==null?void 0:e.options.textSelectionBubbleMenu)==null?void 0:t.enable)!==!1&&r.push(Ugn(e)),r.push(zgn(e)),((n=e.options.image)==null?void 0:n.bubbleMenuEnable)!==!1&&r.push(Vgn(e)),r.push(Ggn(e))),r},qgn=gi.create({name:"placeholder",addOptions(){return{emptyEditorClass:"is-editor-empty",emptyNodeClass:"is-empty",placeholder:"Write something …",showOnlyWhenEditable:!0,showOnlyCurrent:!0,includeChildren:!1}},addProseMirrorPlugins(){return[new Ei({key:new $i("placeholder"),props:{decorations:({doc:e,selection:t})=>{const n=this.editor.isEditable||!this.options.showOnlyWhenEditable,{anchor:r}=t,i=[];if(!n)return null;const o=this.editor.isEmpty;return e.descendants((a,s)=>{const l=r>=s&&r<=s+a.nodeSize,c=!a.isLeaf&&a9(a);if((l||!this.options.showOnlyCurrent)&&c){const u=[this.options.emptyNodeClass];o&&u.push(this.options.emptyEditorClass);const d=ta.node(s,s+a.nodeSize,{class:u.join(" "),"data-placeholder":typeof this.options.placeholder=="function"?this.options.placeholder({editor:this.editor,node:a,pos:s,hasAnchor:l}):this.options.placeholder});i.push(d)}return this.options.includeChildren}),Ci.create(e,i)}}})]}});function Ygn(e){var t;const{char:n,allowSpaces:r,allowedPrefixes:i,startOfLine:o,$position:a}=e,s=prn(n),l=new RegExp(`\\s${s}$`),c=o?"^":"",u=r?new RegExp(`${c}${s}.*?(?=\\s${s}|$)`,"gm"):new RegExp(`${c}(?:^)?${s}[^\\s${s}]*`,"gm"),d=((t=a.nodeBefore)===null||t===void 0?void 0:t.isText)&&a.nodeBefore.text;if(!d)return null;const f=a.pos-d.length,h=Array.from(d.matchAll(u)).pop();if(!h||h.input===void 0||h.index===void 0)return null;const m=h.input.slice(Math.max(0,h.index-1),h.index),g=new RegExp(`^[${i==null?void 0:i.join("")}\0]?$`).test(m);if(i!==null&&!g)return null;const v=f+h.index;let y=v+h[0].length;return r&&l.test(d.slice(y-1,y+1))&&(h[0]+=" ",y+=1),v<a.pos&&y>=a.pos?{range:{from:v,to:y},query:h[0].slice(n.length),text:h[0]}:null}const Kgn=new $i("suggestion");function a5e({pluginKey:e=Kgn,editor:t,char:n="@",allowSpaces:r=!1,allowedPrefixes:i=[" "],startOfLine:o=!1,decorationTag:a="span",decorationClass:s="suggestion",command:l=()=>null,items:c=()=>[],render:u=()=>({}),allow:d=()=>!0,findSuggestionMatch:f=Ygn}){let h;const m=u==null?void 0:u(),g=new Ei({key:e,view(){return{update:async(v,y)=>{var b,_,E,w,S,C,T;const x=(b=this.key)===null||b===void 0?void 0:b.getState(y),O=(_=this.key)===null||_===void 0?void 0:_.getState(v.state),N=x.active&&O.active&&x.range.from!==O.range.from,I=!x.active&&O.active,M=x.active&&!O.active,F=!I&&!M&&x.query!==O.query,k=I||N&&F,B=F||N,A=M||N&&F;if(!k&&!B&&!A)return;const P=A&&!k?x:O,z=v.dom.querySelector(`[data-decoration-id="${P.decorationId}"]`);h={editor:t,range:P.range,query:P.query,text:P.text,items:[],command:L=>l({editor:t,range:P.range,props:L}),decorationNode:z,clientRect:z?()=>{var L;const{decorationId:V}=(L=this.key)===null||L===void 0?void 0:L.getState(t.state),j=v.dom.querySelector(`[data-decoration-id="${V}"]`);return(j==null?void 0:j.getBoundingClientRect())||null}:null},k&&((E=m==null?void 0:m.onBeforeStart)===null||E===void 0||E.call(m,h)),B&&((w=m==null?void 0:m.onBeforeUpdate)===null||w===void 0||w.call(m,h)),(B||k)&&(h.items=await c({editor:t,query:P.query})),A&&((S=m==null?void 0:m.onExit)===null||S===void 0||S.call(m,h)),B&&((C=m==null?void 0:m.onUpdate)===null||C===void 0||C.call(m,h)),k&&((T=m==null?void 0:m.onStart)===null||T===void 0||T.call(m,h))},destroy:()=>{var v;h&&((v=m==null?void 0:m.onExit)===null||v===void 0||v.call(m,h))}}},state:{init(){return{active:!1,range:{from:0,to:0},query:null,text:null,composing:!1}},apply(v,y,b,_){const{isEditable:E}=t,{composing:w}=t.view,{selection:S}=v,{empty:C,from:T}=S,x={...y};if(x.composing=w,E&&(C||t.view.composing)){(T<y.range.from||T>y.range.to)&&!w&&!y.composing&&(x.active=!1);const O=f({char:n,allowSpaces:r,allowedPrefixes:i,startOfLine:o,$position:S.$from}),N=`id_${Math.floor(Math.random()*4294967295)}`;O&&d({editor:t,state:_,range:O.range,isActive:y.active})?(x.active=!0,x.decorationId=y.decorationId?y.decorationId:N,x.range=O.range,x.query=O.query,x.text=O.text):x.active=!1}else x.active=!1;return x.active||(x.decorationId=null,x.range={from:0,to:0},x.query=null,x.text=null),x}},props:{handleKeyDown(v,y){var b;const{active:_,range:E}=g.getState(v.state);return _&&((b=m==null?void 0:m.onKeyDown)===null||b===void 0?void 0:b.call(m,{view:v,event:y,range:E}))||!1},decorations(v){const{active:y,range:b,decorationId:_}=g.getState(v);return y?Ci.create(v.doc,[ta.inline(b.from,b.to,{nodeName:a,class:s,"data-decoration-id":_})]):null}}});return g}const Qgn=new $i("mention"),Xgn=Eo.create({name:"mention",priority:101,addOptions(){return{HTMLAttributes:{},renderText({options:e,node:t}){var n;return`${e.suggestion.char}${(n=t.attrs.label)!==null&&n!==void 0?n:t.attrs.id}`},deleteTriggerWithBackspace:!1,renderHTML({options:e,node:t}){var n;return["span",zr(this.HTMLAttributes,e.HTMLAttributes),`${e.suggestion.char}${(n=t.attrs.label)!==null&&n!==void 0?n:t.attrs.id}`]},suggestion:{char:"@",pluginKey:Qgn,command:({editor:e,range:t,props:n})=>{var r,i,o;const a=e.view.state.selection.$to.nodeAfter;!((r=a==null?void 0:a.text)===null||r===void 0)&&r.startsWith(" ")&&(t.to+=1),e.chain().focus().insertContentAt(t,[{type:this.name,attrs:n},{type:"text",text:" "}]).run(),(o=(i=e.view.dom.ownerDocument.defaultView)===null||i===void 0?void 0:i.getSelection())===null||o===void 0||o.collapseToEnd()},allow:({state:e,range:t})=>{const n=e.doc.resolve(t.from),r=e.schema.nodes[this.name];return!!n.parent.type.contentMatch.matchType(r)}}}},group:"inline",inline:!0,selectable:!1,atom:!0,addAttributes(){return{id:{default:null,parseHTML:e=>e.getAttribute("data-id"),renderHTML:e=>e.id?{"data-id":e.id}:{}},label:{default:null,parseHTML:e=>e.getAttribute("data-label"),renderHTML:e=>e.label?{"data-label":e.label}:{}}}},parseHTML(){return[{tag:`span[data-type="${this.name}"]`}]},renderHTML({node:e,HTMLAttributes:t}){if(this.options.renderLabel!==void 0)return console.warn("renderLabel is deprecated use renderText and renderHTML instead"),["span",zr({"data-type":this.name},this.options.HTMLAttributes,t),this.options.renderLabel({options:this.options,node:e})];const n={...this.options};n.HTMLAttributes=zr({"data-type":this.name},this.options.HTMLAttributes,t);const r=this.options.renderHTML({options:n,node:e});return typeof r=="string"?["span",zr({"data-type":this.name},this.options.HTMLAttributes,t),r]:r},renderText({node:e}){return this.options.renderLabel!==void 0?(console.warn("renderLabel is deprecated use renderText and renderHTML instead"),this.options.renderLabel({options:this.options,node:e})):this.options.renderText({options:this.options,node:e})},addKeyboardShortcuts(){return{Backspace:()=>this.editor.commands.command(({tr:e,state:t})=>{let n=!1;const{selection:r}=t,{empty:i,anchor:o}=r;return i?(t.doc.nodesBetween(o-1,o,(a,s)=>{if(a.type.name===this.name)return n=!0,e.insertText(this.options.deleteTriggerWithBackspace?"":this.options.suggestion.char||"",s,s+a.nodeSize),!1}),n):!1})}},addProseMirrorPlugins(){return[a5e({editor:this.editor,...this.options.suggestion})]}}),Zgn=e=>Xgn.configure({HTMLAttributes:{class:"mention"},suggestion:{items:({query:t})=>e(t),render:()=>{let t,n,r=0,i;const o=()=>{t.innerHTML=`
<div class="items">
${i.items.map((a,s)=>`<button type="button" class="item ${s===r?"item-selected":""}" data-index="${s}"> @${a.name?a.name:a}</button>`).join("")}
</div>
`,t.addEventListener("click",a=>{const s=a.target.closest(".item");if(s){const l=Number(s.getAttribute("data-index")),c=i.items[l];c&&c.id?i.command(c):i.command({id:c})}})};return{onStart:a=>{t=document.createElement("div"),t.classList.add("suggestion"),i=a,a.clientRect&&(o(),n=zo("body",{getReferenceClientRect:a.clientRect,appendTo:()=>a.editor.view.dom.closest(".aie-container"),content:t,showOnCreate:!0,interactive:!0,allowHTML:!0,trigger:"manual",placement:"bottom-start",arrow:!1}))},onUpdate(a){i=a,a.clientRect&&(o(),n[0].setProps({getReferenceClientRect:a.clientRect}))},onKeyDown(a){if(a.event.key==="Escape")return n[0].hide(),!0;if(a.event.key==="ArrowUp")return r=(r+i.items.length-1)%i.items.length,o(),!0;if(a.event.key==="ArrowDown")return r=(r+1)%i.items.length,o(),!0;if(a.event.key==="Enter"){const s=i.items[r];return s&&s.id?i.command(s):i.command({id:s}),!0}return!1},onExit(){n[0].destroy(),t.remove()}}}}}),Jgn=[{icon:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M21 19V21H19V19H21ZM17 19V21H15V19H17ZM13 19V21H11V19H13ZM9 19V21H7V19H9ZM5 19V21H3V19H5ZM21 15V17H19V15H21ZM5 15V17H3V15H5ZM5 11V13H3V11H5ZM16 3C18.6874 3 20.8817 5.12366 20.9954 7.78322L21 8V13H19V8C19 6.40893 17.7447 5.09681 16.1756 5.00512L16 5H11V3H16ZM5 7V9H3V7H5ZM5 3V5H3V3H5ZM9 3V5H7V3H9Z" fill="currentColor"></path></svg>',name:"AI 续写",prompt:"请帮我继续扩展一些这段话的内容",model:"auto"},{icon:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M15 5.25C16.7949 5.25 18.25 3.79493 18.25 2H19.75C19.75 3.79493 21.2051 5.25 23 5.25V6.75C21.2051 6.75 19.75 8.20507 19.75 10H18.25C18.25 8.20507 16.7949 6.75 15 6.75V5.25ZM4 7C4 5.89543 4.89543 5 6 5H13V3H6C3.79086 3 2 4.79086 2 7V17C2 19.2091 3.79086 21 6 21H18C20.2091 21 22 19.2091 22 17V12H20V17C20 18.1046 19.1046 19 18 19H6C4.89543 19 4 18.1046 4 17V7Z" fill="currentColor"></path></svg>',name:"AI 提问",prompt:"",model:"auto"},{icon:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M5 15V17C5 18.0544 5.81588 18.9182 6.85074 18.9945L7 19H10V21H7C4.79086 21 3 19.2091 3 17V15H5ZM18 10L22.4 21H20.245L19.044 18H14.954L13.755 21H11.601L16 10H18ZM17 12.8852L15.753 16H18.245L17 12.8852ZM8 2V4H12V11H8V14H6V11H2V4H6V2H8ZM17 3C19.2091 3 21 4.79086 21 7V9H19V7C19 5.89543 18.1046 5 17 5H14V3H17ZM6 6H4V9H6V6ZM10 6H8V9H10V6Z" fill="currentColor"></path></svg>',name:"AI 翻译",prompt:"请帮我翻译以上内容,在翻译之前,想先判断一下这个内容是不是中文,如果是中文,则翻译问英文,如果是其他语言,则需要翻译为中文,注意,你只需要返回翻译的结果,不需要对此进行任何解释,不需要除了翻译结果以外的其他任何内容。",model:"auto"},{icon:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M20 3C20.5523 3 21 3.44772 21 4V5.757L19 7.757V5H5V13.1L9 9.1005L13.328 13.429L11.9132 14.8422L9 11.9289L5 15.928V19H15.533L16.2414 19.0012L17.57 17.671L18.8995 19H19V16.242L21 14.242V20C21 20.5523 20.5523 21 20 21H4C3.45 21 3 20.55 3 20V4C3 3.44772 3.44772 3 4 3H20ZM21.7782 7.80761L23.1924 9.22183L15.4142 17L13.9979 16.9979L14 15.5858L21.7782 7.80761ZM15.5 7C16.3284 7 17 7.67157 17 8.5C17 9.32843 16.3284 10 15.5 10C14.6716 10 14 9.32843 14 8.5C14 7.67157 14.6716 7 15.5 7Z" fill="currentColor"></path></svg>',name:"AI 生图",prompt:"请根据以上的内容,生成一张图片,并把图片返回给我",model:"auto"}],e1n=gi.create({name:"aiCommand",addOptions(){return{suggestion:{char:"/",command:({editor:e,range:t,props:n})=>{if(e.chain().focus().deleteRange(t).run(),n&&n.aiItem){let r=n.aiItem;const i=e.state.selection.$head.parent.textContent;let o=r.model;const a=Sg.get(r.model);a?a==null||a.chat(i,r.prompt,new t4(e)):console.error("Ai model config error. can not find the type:"+o+" at command menu")}else switch(n.index){case 0:e.chain().setParagraph().run();return;case 1:e.chain().setHeading({level:1}).run();return;case 2:e.chain().setHeading({level:2}).run();return;case 3:e.chain().setHeading({level:3}).run();return;case 4:e.chain().toggleContainer("warning").run();return;case 5:e.chain().toggleBlockquote().run();return;case 6:e.chain().toggleBulletList().run();return;case 7:e.chain().toggleOrderedList().run();return;case 8:e.chain().setTextAlign("left").run();return;case 9:e.chain().setTextAlign("center").run();return;case 10:e.chain().toggleTaskList().run();return;case 11:e.chain().toggleCodeBlock().run();return}},render:()=>{let e,t,n=0,r;const i=()=>{e.innerHTML=`
<div class="ai-command-container">
<div class="ai-command-container-header">
<div class="ai-command-container-header-item item ${n===0?"active":""}" data-index="0">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M13 6V21H11V6H5V4H19V6H13Z" fill="currentColor"></path></svg>
</div>
<div class="ai-command-container-header-item item ${n===1?"active":""}" data-index="1">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M13 20H11V13H4V20H2V4H4V11H11V4H13V20ZM21.0005 8V20H19.0005L19 10.204L17 10.74V8.67L19.5005 8H21.0005Z" fill="currentColor"></path></svg>
</div>
<div class="ai-command-container-header-item item ${n===2?"active":""}" data-index="2">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M4 4V11H11V4H13V20H11V13H4V20H2V4H4ZM18.5 8C20.5711 8 22.25 9.67893 22.25 11.75C22.25 12.6074 21.9623 13.3976 21.4781 14.0292L21.3302 14.2102L18.0343 18H22V20H15L14.9993 18.444L19.8207 12.8981C20.0881 12.5908 20.25 12.1893 20.25 11.75C20.25 10.7835 19.4665 10 18.5 10C17.5818 10 16.8288 10.7071 16.7558 11.6065L16.75 11.75H14.75C14.75 9.67893 16.4289 8 18.5 8Z" fill="currentColor"></path></svg>
</div>
<div class="ai-command-container-header-item item ${n===3?"active":""}" data-index="3">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M22 8L21.9984 10L19.4934 12.883C21.0823 13.3184 22.25 14.7728 22.25 16.5C22.25 18.5711 20.5711 20.25 18.5 20.25C16.674 20.25 15.1528 18.9449 14.8184 17.2166L16.7821 16.8352C16.9384 17.6413 17.6481 18.25 18.5 18.25C19.4665 18.25 20.25 17.4665 20.25 16.5C20.25 15.5335 19.4665 14.75 18.5 14.75C18.214 14.75 17.944 14.8186 17.7056 14.9403L16.3992 13.3932L19.3484 10H15V8H22ZM4 4V11H11V4H13V20H11V13H4V20H2V4H4Z" fill="currentColor"></path></svg>
</div>
<div class="ai-command-container-header-item item ${n===4?"active":""}" data-index="4">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0z"></path><path d="M21 3C21.5523 3 22 3.44772 22 4V20C22 20.5523 21.5523 21 21 21H3C2.44772 21 2 20.5523 2 20V4C2 3.44772 2.44772 3 3 3H21ZM20 5H4V19H20V5ZM18 15V17H6V15H18Z"></path></svg>
</div>
<div class="ai-command-container-header-item item ${n===5?"active":""}" data-index="5">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M4.58341 17.3211C3.55316 16.2274 3 15 3 13.0103C3 9.51086 5.45651 6.37366 9.03059 4.82318L9.92328 6.20079C6.58804 8.00539 5.93618 10.346 5.67564 11.822C6.21263 11.5443 6.91558 11.4466 7.60471 11.5105C9.40908 11.6778 10.8312 13.159 10.8312 15C10.8312 16.933 9.26416 18.5 7.33116 18.5C6.2581 18.5 5.23196 18.0095 4.58341 17.3211ZM14.5834 17.3211C13.5532 16.2274 13 15 13 13.0103C13 9.51086 15.4565 6.37366 19.0306 4.82318L19.9233 6.20079C16.588 8.00539 15.9362 10.346 15.6756 11.822C16.2126 11.5443 16.9156 11.4466 17.6047 11.5105C19.4091 11.6778 20.8312 13.159 20.8312 15C20.8312 16.933 19.2642 18.5 17.3312 18.5C16.2581 18.5 15.232 18.0095 14.5834 17.3211Z" fill="currentColor"></path></svg>
</div>
<div class="ai-command-container-header-item item ${n===6?"active":""}" data-index="6">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M8 4H21V6H8V4ZM3 3.5H6V6.5H3V3.5ZM3 10.5H6V13.5H3V10.5ZM3 17.5H6V20.5H3V17.5ZM8 11H21V13H8V11ZM8 18H21V20H8V18Z" fill="currentColor"></path></svg>
</div>
<div class="ai-command-container-header-item item ${n===7?"active":""}" data-index="7">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M8 4H21V6H8V4ZM5 3V6H6V7H3V6H4V4H3V3H5ZM3 14V11.5H5V11H3V10H6V12.5H4V13H6V14H3ZM5 19.5H3V18.5H5V18H3V17H6V21H3V20H5V19.5ZM8 11H21V13H8V11ZM8 18H21V20H8V18Z" fill="currentColor"></path></svg>
</div>
<div class="ai-command-container-header-item item ${n===8?"active":""}" data-index="8">
<div style="width:18px;height: 18px;"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M3 4H21V6H3V4ZM3 19H17V21H3V19ZM3 14H21V16H3V14ZM3 9H17V11H3V9Z"></path></svg></div>
</div>
<div class="ai-command-container-header-item item ${n===9?"active":""}" data-index="9">
<div style="width:18px;height: 18px;"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M3 4H21V6H3V4ZM5 19H19V21H5V19ZM3 14H21V16H3V14ZM5 9H19V11H5V9Z"></path></svg></div>
</div>
<div class="ai-command-container-header-item item ${n===10?"active":""}" data-index="10">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M4 3H20C20.5523 3 21 3.44772 21 4V20C21 20.5523 20.5523 21 20 21H4C3.44772 21 3 20.5523 3 20V4C3 3.44772 3.44772 3 4 3ZM5 5V19H19V5H5ZM11.0026 16L6.75999 11.7574L8.17421 10.3431L11.0026 13.1716L16.6595 7.51472L18.0737 8.92893L11.0026 16Z"></path></svg>
</div>
<div class="ai-command-container-header-item item ${n===11?"active":""}" data-index="11">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M3 3H21C21.5523 3 22 3.44772 22 4V20C22 20.5523 21.5523 21 21 21H3C2.44772 21 2 20.5523 2 20V4C2 3.44772 2.44772 3 3 3ZM4 5V19H20V5H4ZM20 12L16.4645 15.5355L15.0503 14.1213L17.1716 12L15.0503 9.87868L16.4645 8.46447L20 12ZM6.82843 12L8.94975 14.1213L7.53553 15.5355L4 12L7.53553 8.46447L8.94975 9.87868L6.82843 12ZM11.2443 17H9.11597L12.7557 7H14.884L11.2443 17Z"></path></svg>
</div>
</div>
<hr/>
${r.items.map((o,a)=>`<div class="ai-command-container-item item ${n===12+a?"active":""}" data-index="${12+a}">${o.icon} ${o.name}</div>`).join("")}
</div>
`,e.addEventListener("click",o=>{const a=o.target.closest(".item");if(a){const s=Number(a.getAttribute("data-index"));r.command({index:s,aiItem:s>11?r.items[s-12]:null})}})};return{onStart:o=>{e=document.createElement("div"),e.classList.add("suggestion"),r=o,o.clientRect&&(i(),t=zo("body",{getReferenceClientRect:o.clientRect,appendTo:()=>o.editor.view.dom.closest(".aie-container"),content:e,showOnCreate:!0,interactive:!0,allowHTML:!0,trigger:"manual",placement:"right-start",arrow:!1}))},onUpdate(o){r=o,o.clientRect&&t[0].setProps({getReferenceClientRect:o.clientRect})},onKeyDown(o){return o.event.key==="Escape"?(t[0].hide(),!0):o.event.key==="ArrowUp"?(n<6?n=11+r.items.length:n<=11?n-=6:(n-=1,n<0&&(n=11+r.items.length)),i(),!0):o.event.key==="ArrowDown"?(n<6?n+=6:n<11?n=12:(n+=1,n>11+r.items.length&&(n=0)),i(),!0):o.event.key==="ArrowLeft"?(n-=1,n<0&&(n=11+r.items.length),i(),!0):o.event.key==="ArrowRight"?(n+=1,n>11+r.items.length&&(n=0),i(),!0):o.event.key==="Enter"?(r.command({index:n,aiItem:n>11?r.items[n-12]:null}),!0):!1},onExit(){t[0].destroy(),e.remove()}}}}}},addProseMirrorPlugins(){return[a5e({editor:this.editor,...this.options.suggestion})]}}),t1n=gi.create({addProseMirrorPlugins(){const e=this.editor;return[new Ei({key:new $i("selection-marker"),props:{decorations(t){return t.selection.empty||e.isFocused?null:Ci.create(t.doc,[ta.inline(t.selection.from,t.selection.to,{class:"selection-marker"})])}}})]}});function n1n(e,t,n){function r(f){return f.trim().split(" ",2)[0]===t}function i(f,h,m,g,v){return f[h].nesting===1&&f[h].attrJoin("class",t),v.renderToken(f,h,m,g,v)}n=n||{};const o=3,a=n.marker||":",s=a.charCodeAt(0),l=a.length,c=n.validate||r,u=n.render||i;function d(f,h,m,g){let v,y=!1,b=f.bMarks[h]+f.tShift[h],_=f.eMarks[h];if(s!==f.src.charCodeAt(b))return!1;for(v=b+1;v<=_&&a[(v-b)%l]===f.src[v];v++);const E=Math.floor((v-b)/l);if(E<o)return!1;v-=(v-b)%l;const w=f.src.slice(b,v),S=f.src.slice(v,_);if(!c(S,w))return!1;if(g)return!0;let C=h;for(;C++,!(C>=m||(b=f.bMarks[C]+f.tShift[C],_=f.eMarks[C],b<_&&f.sCount[C]<f.blkIndent));)if(s===f.src.charCodeAt(b)&&!(f.sCount[C]-f.blkIndent>=4)){for(v=b+1;v<=_&&a[(v-b)%l]===f.src[v];v++);if(!(Math.floor((v-b)/l)<E)&&(v-=(v-b)%l,v=f.skipSpaces(v),!(v<_))){y=!0;break}}const T=f.parentType,x=f.lineMax;f.parentType="container",f.lineMax=C;const O=f.push("container_"+t+"_open","div",1);O.markup=w,O.block=!0,O.info=S,O.map=[h,C],f.md.block.tokenize(f,h+1,C);const N=f.push("container_"+t+"_close","div",-1);return N.markup=f.src.slice(b,v),N.block=!0,f.parentType=T,f.lineMax=x,f.line=C+(y?1:0),!0}e.block.ruler.before("fence","container_"+t,d,{alt:["paragraph","reference","blockquote","list"]}),e.renderer.rules["container_"+t+"_open"]=u,e.renderer.rules["container_"+t+"_close"]=u}const r1n=/^:::([a-z]+)?[\s\n]$/,i1n=Eo.create({name:"container",group:"block",content:"block+",defining:!0,addOptions(){return{classes:["info","warning","danger"],HTMLAttributes:{class:"container-wrapper"}}},addStorage(){return{markdown:{serialize(e,t){e.write("::: "+(t.attrs.containerClass||"")+`
`),e.renderContent(t),e.flushClose(1),e.write(":::"),e.closeBlock(t)},parse:{setup:e=>{this.options.classes.forEach(t=>{e.use(n1n,t)})}}}}},addAttributes(){return{containerClass:{default:null,parseHTML:e=>[...e.classList].find(t=>this.options.classes.includes(t)),renderHTML:e=>({class:e.containerClass})}}},parseHTML(){return[{tag:"div",getAttrs:e=>{const t=e,n=["container-wrapper"].concat(this.options.classes);return[...t.classList].find(r=>n.includes(r))?null:!1}}]},renderHTML({HTMLAttributes:e}){return["div",zr(this.options.HTMLAttributes,e),0]},addCommands(){return{setContainer:e=>({commands:t})=>t.wrapIn(this.name,{containerClass:e}),toggleContainer:e=>({commands:t})=>t.toggleWrap(this.name,{containerClass:e}),unsetContainer:()=>({commands:e})=>e.lift(this.name)}},addInputRules(){return[i0({find:r1n,type:this.type,getAttributes:e=>({containerClass:e[1]})})]}}),o1n=V4e.extend({addAttributes(){var e;return{...(e=this.parent)==null?void 0:e.call(this),id:{default:null}}}}),a1n=gi.create({name:"saveExt",addKeyboardShortcuts(){return{"Mod-s":({editor:e})=>this.options.onSave?this.options.onSave(e.aiEditor):!1}}}),s1n=Eo.create({name:"figure",content:"block+",group:"block",defining:!0,draggable:!0,selectable:!0,addOptions(){return{HTMLAttributes:{dir:"auto"}}},parseHTML(){return[{tag:"figure"}]},renderHTML({HTMLAttributes:e}){return["figure",zr(this.options.HTMLAttributes,e),0]}}),l1n=Eo.create({name:"figcaption",content:"inline*",group:"block",defining:!0,addOptions(){return{HTMLAttributes:{dir:"auto"}}},parseHTML(){return[{tag:"figcaption"}]},renderHTML({HTMLAttributes:e}){return["figcaption",zr(this.options.HTMLAttributes,e),0]}}),c1n=(e,t)=>{const n=new RegExp(`<${t}[^>]*>(.*?)</${t}>`,"gi");return e.replace(n,(r,i)=>i)},u1n=(e,t)=>{for(let n of t)e=c1n(e,n);return e},d1n=(e,t,n)=>{function r(c){const u=document.createDocumentFragment();for(;c.firstChild;){const d=c.removeChild(c.firstChild),f=i(d);f&&u.appendChild(f)}return u}function i(c){var u;if(c.nodeType===Node.ELEMENT_NODE){const d=c;if(t.includes(d.tagName.toLowerCase())){if(!((u=d.textContent)!=null&&u.trim()))return d;for(;d.attributes.length>0;)d.removeAttribute(d.attributes[0].name);return d.appendChild(r(d)),d}else return r(d)}else if(c.nodeType===Node.TEXT_NODE&&c.textContent&&c.textContent.trim().length>0)return c;return null}function o(c){const u=c.querySelectorAll("br");for(let d=0;d<u.length-1;d++){const f=u[d],h=u[d+1];if(f.nextSibling===h){let m=f.previousSibling;const g=[];for(;m&&m.nodeName!=="P";)g.unshift(m),m=m.previousSibling;const v=document.createElement("p");g.forEach(y=>v.appendChild(y)),f.replaceWith(v),h.remove(),d++}}}e=e.replace(/(\n)/gm," ");const a=new DOMParser().parseFromString(e,"text/html"),s=i(a.body),l=document.createElement("div");return s&&(l.appendChild(s),o(l)),l.innerHTML},f1n=e=>{var t;const n=e.documentElement.getAttributeNames();if(n&&n.length>0)for(let o of n){const a=e.documentElement.getAttribute(o);if(a!=null&&a.includes("microsoft")||a!=null&&a.includes("excel"))return!0}let r=e.getElementsByTagName("meta");for(let o of r){let a=o.getAttribute("name"),s=o.getAttribute("content");if(a&&a.toLowerCase()==="generator"&&(s!=null&&s.includes("Microsoft")||s!=null&&s.includes("LibreOffice")||s!=null&&s.includes("OpenOffice")))return!0}const i=(t=e.body.innerHTML)==null?void 0:t.trim();return!!(i!=null&&i.startsWith("<table")&&i!=null&&i.endsWith("</table>"))},p1n=e=>{const t=document.createElement("div");return t.innerHTML=e,t.querySelectorAll("p").forEach(n=>{(!n.textContent||n.textContent.trim()==="")&&n.remove()}),t.innerHTML},h1n=e=>{const t=new DOMParser().parseFromString(e,"text/html"),n=document.createDocumentFragment(),r=t.body.children;for(let o of r)o.hasAttribute("data-pm-slice")?o.childNodes.forEach(a=>{n.appendChild(a.cloneNode(!0))}):n.appendChild(o.cloneNode(!0));const i=document.createElement("div");return i.appendChild(n),i.innerHTML},m1n=gi.create({name:"pasteExt",priority:1e3,addProseMirrorPlugins(){return[new Ei({key:new $i("aie-paste"),props:{handlePaste:(e,t)=>{if(e.props.editable&&!e.props.editable(e.state)||!t.clipboardData)return!1;const n=t.clipboardData.getData("text/plain");let r=t.clipboardData.getData("text/html");if(!r&&n){const i=this.editor.parseMarkdown(n);if(i){const{state:{tr:o},dispatch:a}=e;return a(o.replaceSelection(new Rn(i,0,0)).scrollIntoView()),!0}}else if(r){r=h1n(r);const{options:i}=this.editor.aiEditor;if(i.htmlPasteConfig){if(i.htmlPasteConfig.pasteAsText)r=d1n(r,["p","br"]);else if(i.htmlPasteConfig.pasteClean){r=u1n(r,["a","span","strong","b","em","i","u"]);const o=new DOMParser().parseFromString(r,"text/html").documentElement.querySelector("body");o&&(o==null||o.querySelectorAll("*").forEach(a=>{a.removeAttribute("style")}),r=o==null?void 0:o.innerHTML)}if(i.htmlPasteConfig.removeEmptyParagraphs!==!1&&(r=p1n(r)),i.htmlPasteConfig.pasteProcessor&&(r=i.htmlPasteConfig.pasteProcessor(r)),r)return this.editor.commands.insertContent(r),!0}else if(n&&r){const o=new DOMParser().parseFromString(r,"text/html"),a=o.querySelector("table");if(a&&f1n(o))return this.editor.commands.insertContent(a.outerHTML,{parseOptions:{preserveWhitespace:!1}}),!0}}}}})]}}),g1n=gi.create({name:"className",addOptions(){return{types:["heading","paragraph","container","codeBlock","blockquote","bulletList","orderedList","listItem","taskList","taskItem","image","video","table","iframe"]}},addGlobalAttributes(){return[{types:this.options.types,attributes:{class:{defaultValue:"",parseHTML:e=>e.getAttribute("class"),renderHTML:e=>e.class?{class:e.class}:{}}}}]},addCommands(){return{setClassName:(e,t)=>({chain:n})=>!e||!this.options.types.includes(e)?!1:n().updateAttributes(e,{class:t}).run()}},onTransaction({editor:e,transaction:t}){t.steps.length>0&&t.steps.forEach(n=>{if(n instanceof Sa){let r=!1;if(n.getMap().forEach((i,o,a,s)=>{s==a+2&&(r=!0)}),r){const i=n.slice.content.lastChild;i&&!i.textContent&&e.commands.updateAttributes(i.type,{...i.attrs,class:""})}}})}}),v1n=(e,t)=>{var n,r,i,o,a,s,l,c,u,d,f,h,m,g,v,y,b,_,E,w,S,C,T,x,O,N,I,M,F;const k=[Isn.configure({codeBlock:!1,heading:!1})];return k.push(Asn,Nsn,Msn,o1n,Lsn.configure({uploadUrl:(n=t.attachment)==null?void 0:n.uploadUrl,uploadHeaders:(r=t.attachment)==null?void 0:r.uploadHeaders,uploadFormName:(i=t.attachment)==null?void 0:i.uploadFormName,uploader:((o=t.attachment)==null?void 0:o.uploader)||t.uploader,uploaderEvent:(a=t.attachment)==null?void 0:a.uploaderEvent}),$sn,t1n,jsn.configure({multicolor:!0}),Hsn,Usn,zsn,Vsn.configure({types:["heading","paragraph"]}),Gsn,Ksn.configure({allowBase64:typeof((s=t.image)==null?void 0:s.allowBase64)>"u"?!0:(l=t.image)==null?void 0:l.allowBase64,defaultSize:((c=t.image)==null?void 0:c.defaultSize)||350,uploadUrl:(u=t.image)==null?void 0:u.uploadUrl,uploadHeaders:(d=t.image)==null?void 0:d.uploadHeaders,uploadFormName:(f=t.image)==null?void 0:f.uploadFormName,uploader:((h=t.image)==null?void 0:h.uploader)||t.uploader,uploaderEvent:(m=t.image)==null?void 0:m.uploaderEvent}),Zln.configure({resizable:!0,lastColumnResizable:!0,allowTableNodeSelection:!0}),Jln,ecn,tcn,typeof t.textCounter=="function"?ufe.configure({textCounter:t.textCounter}):ufe,Tcn.configure({openOnClick:!1,autolink:typeof((g=t.link)==null?void 0:g.autolink)>"u"?!0:(v=t.link)==null?void 0:v.autolink,HTMLAttributes:{ref:(y=t==null?void 0:t.link)==null?void 0:y.rel,class:(b=t==null?void 0:t.link)==null?void 0:b.class}}),xcn,Ocn,Rcn,Acn.configure({nested:!0}),Pun.configure({lowlight:agn(umn),defaultLanguage:"auto",languageClassPrefix:"language-",languages:((_=t.codeBlock)==null?void 0:_.languages)||OPe,codeExplainAi:((w=(E=t.ai)==null?void 0:E.codeBlock)==null?void 0:w.codeExplain)||{model:"auto",prompt:((S=t.codeBlock)==null?void 0:S.codeExplainPrompt)||"帮我对这个代码进行解释,返回代码的解释内容,注意,不需要对代码的注释进行解释"},codeCommentsAi:((T=(C=t.ai)==null?void 0:C.codeBlock)==null?void 0:T.codeComments)||{model:"auto",prompt:((x=t.codeBlock)==null?void 0:x.codeCommentsPrompt)||"帮我对这个代码添加一些注释,并返回添加注释的代码,只返回代码"}}),cgn.configure({uploadUrl:(O=t.video)==null?void 0:O.uploadUrl,uploadHeaders:(N=t.video)==null?void 0:N.uploadHeaders,uploadFormName:(I=t.video)==null?void 0:I.uploadFormName,uploader:((M=t.video)==null?void 0:M.uploader)||t.uploader,uploaderEvent:(F=t.video)==null?void 0:F.uploaderEvent}),ugn,s1n,l1n,a1n.configure({onSave:t.onSave}),m1n,g1n,i1n,...Wgn(e)),t.placeholder&&k.push(qgn.configure({placeholder:t.placeholder})),k.push(e1n.configure({suggestion:{items:B=>{var A;return((A=t.ai)==null?void 0:A.commands)||Jgn}}})),t.onMentionQuery&&k.push(Zgn(t.onMentionQuery)),k},b1n={default:"默认",delete:"删除",confirm:"确定",cancel:"取消",resize:"调整大小",undo:"撤销",redo:"重做",brush:"格式刷",container:"高亮块",eraser:"清除格式",heading:"正文/标题","font-family":"字体","font-size":"字号",bold:"加粗",italic:"斜体",underline:"下划线",strike:"删除线",link:"链接","source-code":"源代码",code:"行内代码",subscript:"下标",superscript:"上标",hr:"分割线",todo:"任务列表",emoji:"表情",highlight:"高亮","font-color":"字体颜色",align:"对齐","line-height":"行高","bullet-list":"无序列表","ordered-list":"有序列表","indent-decrease":"减少缩进","indent-increase":"增加缩进",break:"强制换行",image:"图片",video:"视频",attachment:"附件",quote:"引用","code-block":"代码块",table:"表格",printer:"打印",fullscreen:"全屏",ai:"人工智能","menu-group":"菜单组",paragraph:"正文",h1:"标题 1",h2:"标题 2",h3:"标题 3",h4:"标题 4",h5:"标题 5",h6:"标题 6",standardColors:"标准色",historyColors:"最近使用",insertTable:"插入表格",row:"行",column:"列","align-left":"居左对齐","align-right":"居右对齐","align-center":"居中对齐","align-justify":"两端对齐","insert-column-left":"左侧插入列","insert-column-right":"右侧插入列","insert-row-top":"上方插入行","insert-row-bottom":"下方插入行","delete-column":"删除当前列","delete-row":"删除当前行","merge-cells-horizontal":"合并单元格","merge-cells-vertical":"合并单元格","split-cells-horizontal":"解除合并单元格","split-cells-vertical":"解除合并单元格","delete-table":"删除表格","edit-link":"编辑链接",unlink:"取消链接","visit-link":"访问链接","link-address":"链接地址","link-open-type":"打开方式","link-open-blank":"新窗口","default-font-size":"字号","default-font-family":"默认字体","codeblock-ai-auto-comment":"自动注释","codeblock-ai-code-explain":"代码解释","placeholder-tell-ai-what-to-do-next":"告诉 AI 下一步应该如何?比如:帮我翻译成英语","tip-you-can-enter-text-above-or-select-the-operation-below":"提示:您可以在上面输入文字或者选择下方的操作","you-can-do-the-following":"您可以进行以下操作:","improve-writing":"改进写作","check-spelling-and-grammar":"检查拼写和语法","make-shorter":"简化内容","make-longer":"丰富内容",translate:"翻译",summarize:"总结","ai-append":"追加","ai-replace":"替换","ai-cancel":"舍弃","ai-continuation":"AI 续写","ai-optimization":"AI 优化","ai-proofreading":"AI 校对","ai-translation":"AI 翻译"},y1n={default:"Default",delete:"Delete",confirm:"Confirm",cancel:"Cancel",resize:"Resize",undo:"Undo",redo:"Redo",brush:"Format Painter",container:"Highlight container",eraser:"clear format",heading:"Paragraph/Heading","font-family":"Font Family","font-size":"Font Size",bold:"Bold",italic:"Italics",underline:"Underline",strike:"Strikethrough",link:"Link","source-code":"Source code",code:"Inline code",subscript:"Subscript",superscript:"Superscript",hr:"Dividing line",todo:"Task list",emoji:"Emoji expression",highlight:"Highlight","font-color":"Font color",align:"Alignment","line-height":"Line height","bullet-list":"Unordered list","ordered-list":"Ordered list","indent-decrease":"Decrease indent","indent-increase":"Increase indent",break:"Force line break",image:"Image",video:"video",attachment:"Attachment",quote:"Quote","code-block":"Code block",table:"Table",printer:"Print",fullscreen:"Full screen",ai:"AI","menu-group":"Menu Group",paragraph:"Paragraph",h1:"H1",h2:"H2",h3:"H3",h4:"H4",h5:"H5",h6:"H6",standardColors:"Standard colors",historyColors:"Recently used colors",insertTable:"Insert Table",row:"Row",column:"Column","align-left":"Align left","align-right":"Align right","align-center":"Align center","align-justify":"Align justify","insert-column-left":"Insert column left","insert-column-right":"Insert column right","insert-row-top":"Insert row top","insert-row-bottom":"Insert row bottom","delete-column":"Delete column","delete-row":"Delete row","merge-cells-horizontal":"Merge cells","merge-cells-vertical":"Merge cells","split-cells-horizontal":"Split cells","split-cells-vertical":"Split cells","delete-table":"Delete table","edit-link":"Edit link",unlink:"Unlink","visit-link":"Visit link","link-address":"Link address","link-open-type":"Open type","link-open-blank":"Blank","default-font-size":"Size","default-font-family":"Default font","codeblock-ai-auto-comment":"auto comment","codeblock-ai-code-explain":"code explain","placeholder-tell-ai-what-to-do-next":"Tell AI what to do next? e.g., help me translate into English","tip-you-can-enter-text-above-or-select-the-operation-below":"Tip: You can enter text above or select the operation below","you-can-do-the-following":"You can do the following:","improve-writing":"Improve your writing","check-spelling-and-grammar":"Check spelling and grammar","make-shorter":"Make shorter","make-longer":"Make longer",translate:"Translate",summarize:"Summarize","ai-append":"Append","ai-replace":"Replace","ai-cancel":"Cancel","ai-continuation":"Continuation","ai-optimization":"Optimization","ai-proofreading":"Proofreading","ai-translation":"Translation"},_1n={default:"Standard",delete:"Löschen",confirm:"Bestätigen",cancel:"Abbrechen",resize:"Größe ändern",undo:"Rückgängig",redo:"Wiederholen",brush:"Format übertragen",container:"Auswahl hervorheben",eraser:"Format löschen",heading:"Absatz/Überschrift","font-family":"Schriftart","font-size":"Schriftgröße",bold:"Fett",italic:"Kursiv",underline:"Unterstrichen",strike:"Durchgestrichen",link:"Link","source-code":"Quellcode",code:"Inline-Code",subscript:"Tiefgestellt",superscript:"Hochgestellt",hr:"Trennlinie",todo:"Aufgabenliste",emoji:"Emojis",highlight:"Hervorheben","font-color":"Schriftfarbe",align:"Ausrichtung","line-height":"Zeilenhöhe","bullet-list":"Aufzählungsliste","ordered-list":"Nummerierte Liste","indent-decrease":"Einzug verkleinern","indent-increase":"Einzug vergrößern",break:"Zeilenumbruch erzwingen",image:"Bild",video:"Video",attachment:"Anhang",quote:"Zitat","code-block":"Codeblock",table:"Tabelle",printer:"Drucken",fullscreen:"Vollbild",ai:"KI","menu-group":"Menügruppe",paragraph:"Absatz",h1:"Überschrift 1",h2:"Überschrift 2",h3:"Überschrift 3",h4:"Überschrift 4",h5:"Überschrift 5",h6:"Überschrift 6",standardColors:"Standardfarben",historyColors:"Zuletzt verwendete Farben",insertTable:"Tabelle einfügen",row:"Zeile",column:"Spalte","align-left":"Linksbündig","align-right":"Rechtsbündig","align-center":"Zentriert","align-justify":"Blocksatz","insert-column-left":"Spalte links einfügen","insert-column-right":"Spalte rechts einfügen","insert-row-top":"Zeile oben einfügen","insert-row-bottom":"Zeile unten einfügen","delete-column":"Spalte löschen","delete-row":"Zeile löschen","merge-cells-horizontal":"Zellen horizontal verbinden","merge-cells-vertical":"Zellen vertikal verbinden","split-cells-horizontal":"Zellen horizontal teilen","split-cells-vertical":"Zellen vertikal teilen","delete-table":"Tabelle löschen","edit-link":"Link bearbeiten",unlink:"Link entfernen","visit-link":"Link besuchen","link-address":"Link-Adresse","link-open-type":"Link öffnen in...","link-open-blank":"Neues Fenster","default-font-size":"Schriftgröße","default-font-family":"Standardschriftart","codeblock-ai-auto-comment":"Automatischer Kommentar","codeblock-ai-code-explain":"Code-Erklärung","placeholder-tell-ai-what-to-do-next":"Sagen Sie der KI, was als Nächstes zu tun ist, z.B. helfen Sie mir, ins Englische zu übersetzen","tip-you-can-enter-text-above-or-select-the-operation-below":"Tipp: Sie können oben Text eingeben oder die untenstehende Operation auswählen","you-can-do-the-following":"Sie können Folgendes tun:","improve-writing":"Schreiben verbessern","check-spelling-and-grammar":"Rechtschreibung und Grammatik prüfen","make-shorter":"Kürzen","make-longer":"Verlängern",translate:"Übersetzen",summarize:"Zusammenfassen","ai-append":"Anhängen","ai-replace":"Ersetzen","ai-cancel":"Abbrechen","ai-continuation":"Vorschläge für Fortsetzung","ai-optimization":"Optimierung","ai-proofreading":"Korrekturlesen","ai-translation":"Übersetzung"},S1n={default:"Padrão",delete:"Excluir",confirm:"Confirmar",cancel:"Cancelar",resize:"Redimensionar",undo:"Desfazer",redo:"Refazer",brush:"Pincel",container:"Destacar seleção",eraser:"Apagar formatação",heading:"Cabeçalho","font-family":"Fonte","font-size":"Tamanho da fonte",bold:"Negrito",italic:"Itálico",underline:"Sublinhado",strike:"Tachado",link:"Link","source-code":"Código-fonte",code:"Código em linha",subscript:"Subscrito",superscript:"Sobrescrito",hr:"Linha horizontal",todo:"Lista de tarefas",emoji:"Emoji",highlight:"Destacar","font-color":"Cor da fonte",align:"Alinhamento","line-height":"Altura da linha","bullet-list":"Lista com marcadores","ordered-list":"Lista numerada","indent-decrease":"Diminuir recuo","indent-increase":"Aumentar recuo",break:"Quebra de linha",image:"Imagem",video:"Vídeo",attachment:"Anexo",quote:"Citação","code-block":"Bloco de código",table:"Tabela",printer:"Imprimir",fullscreen:"Tela cheia",ai:"IA","menu-group":"Grupo de menu",paragraph:"Parágrafo",h1:"Cabeçalho 1",h2:"Cabeçalho 2",h3:"Cabeçalho 3",h4:"Cabeçalho 4",h5:"Cabeçalho 5",h6:"Cabeçalho 6",standardColors:"Cores padrão",historyColors:"Cores recentes",insertTable:"Inserir tabela",row:"Linha",column:"Coluna","align-left":"Alinhar à esquerda","align-right":"Alinhar à direita","align-center":"Centralizar","align-justify":"Justificar","insert-column-left":"Inserir coluna à esquerda","insert-column-right":"Inserir coluna à direita","insert-row-top":"Inserir linha acima","insert-row-bottom":"Inserir linha abaixo","delete-column":"Excluir coluna","delete-row":"Excluir linha","merge-cells-horizontal":"Mesclar células horizontalmente","merge-cells-vertical":"Mesclar células verticalmente","split-cells-horizontal":"Dividir células horizontalmente","split-cells-vertical":"Dividir células verticalmente","delete-table":"Excluir tabela","edit-link":"Editar link",unlink:"Remover link","visit-link":"Visitar link","link-address":"Endereço do link","link-open-type":"Abrir link em...","link-open-blank":"Nova janela","default-font-size":"Tamanho padrão da fonte","default-font-family":"Fonte padrão","codeblock-ai-auto-comment":"Comentário automático","codeblock-ai-code-explain":"Explicação do código","placeholder-tell-ai-what-to-do-next":"Diga à IA o que fazer a seguir, por exemplo, ajude-me a traduzir para o inglês","tip-you-can-enter-text-above-or-select-the-operation-below":"Dica: Você pode digitar o texto acima ou selecionar a operação abaixo","you-can-do-the-following":"Você pode fazer o seguinte:","improve-writing":"Melhorar escrita","check-spelling-and-grammar":"Verificar ortografia e gramática","make-shorter":"Encurtar","make-longer":"Alongar",translate:"Traduzir",summarize:"Resumir","ai-append":"Anexar","ai-replace":"Substituir","ai-cancel":"Cancelar","ai-continuation":"Sugestões de continuação","ai-optimization":"Otimização","ai-proofreading":"Revisão","ai-translation":"Tradução"},E1n={default:"Predeterminado",delete:"Eliminar",confirm:"Confirmar",cancel:"Cancelar",resize:"Redimensionar",undo:"Deshacer",redo:"Rehacer",brush:"Pincel de formato",container:"Bloque resaltado",eraser:"Borrar formato",heading:"Texto/Título","font-family":"Fuente","font-size":"Tamaño de fuente",bold:"Negrita",italic:"Cursiva",underline:"Subrayado",strike:"Tachado",link:"Enlace","source-code":"Código fuente",code:"Código en línea",subscript:"Subíndice",superscript:"Superíndice",hr:"Línea divisoria",todo:"Lista de tareas",emoji:"Emoji",highlight:"Resaltar","font-color":"Color de fuente",align:"Alinear","line-height":"Altura de línea","bullet-list":"Lista desordenada","ordered-list":"Lista ordenada","indent-decrease":"Disminuir sangría","indent-increase":"Aumentar sangría",break:"Salto de línea",image:"Imagen",video:"Video",attachment:"Adjunto",quote:"Cita","code-block":"Bloque de código",table:"Tabla",printer:"Imprimir",fullscreen:"Pantalla completa",ai:"Inteligencia artificial","menu-group":"Grupo de menú",paragraph:"Párrafo",h1:"Encabezado 1",h2:"Encabezado 2",h3:"Encabezado 3",h4:"Encabezado 4",h5:"Encabezado 5",h6:"Encabezado 6",standardColors:"Colores estándar",historyColors:"Usado recientemente",insertTable:"Insertar tabla",row:"Fila",column:"Columna","align-left":"Alinear a la izquierda","align-right":"Alinear a la derecha","align-center":"Alinear al centro","align-justify":"Justificar","insert-column-left":"Insertar columna a la izquierda","insert-column-right":"Insertar columna a la derecha","insert-row-top":"Insertar fila arriba","insert-row-bottom":"Insertar fila abajo","delete-column":"Eliminar columna","delete-row":"Eliminar fila","merge-cells-horizontal":"Combinar celdas horizontalmente","merge-cells-vertical":"Combinar celdas verticalmente","split-cells-horizontal":"Dividir celdas horizontalmente","split-cells-vertical":"Dividir celdas verticalmente","delete-table":"Eliminar tabla","edit-link":"Editar enlace",unlink:"Eliminar enlace","visit-link":"Visitar enlace","link-address":"Dirección del enlace","link-open-type":"Tipo de apertura","link-open-blank":"Nueva ventana","default-font-size":"Tamaño de fuente predeterminado","default-font-family":"Fuente predeterminada","codeblock-ai-auto-comment":"Comentario automático","codeblock-ai-code-explain":"Explicación del código","placeholder-tell-ai-what-to-do-next":"Dile a la IA qué hacer a continuación. Ejemplo: Traducir al inglés","tip-you-can-enter-text-above-or-select-the-operation-below":"Sugerencia: Puedes ingresar el texto arriba o seleccionar una operación abajo","you-can-do-the-following":"Puedes hacer lo siguiente:","improve-writing":"Mejorar escritura","check-spelling-and-grammar":"Revisar ortografía y gramática","make-shorter":"Hacer más corto","make-longer":"Hacer más largo",translate:"Traducir",summarize:"Resumir","ai-append":"Añadir","ai-replace":"Reemplazar","ai-cancel":"Cancelar","ai-continuation":"Continuación con IA","ai-optimization":"Optimización con IA","ai-proofreading":"Corrección con IA","ai-translation":"Traducción con IA"},C1n={default:"डिफ़ॉल्ट",delete:"हटाएं",confirm:"पुष्टि करें",cancel:"रद्द करें",resize:"आकार बदलें",undo:"पूर्ववत करें",redo:"फिर से करें",brush:"फॉर्मेट ब्रश",container:"हाइलाइट ब्लॉक",eraser:"फॉर्मेट साफ़ करें",heading:"पाठ/शीर्षक","font-family":"फ़ॉन्ट","font-size":"फ़ॉन्ट आकार",bold:"बोल्ड",italic:"इटैलिक",underline:"रेखांकन",strike:"स्ट्राइकथ्रू",link:"लिंक","source-code":"स्रोत कोड",code:"इनलाइन कोड",subscript:"सबस्क्रिप्ट",superscript:"सुपरस्क्रिप्ट",hr:"विभाजक रेखा",todo:"कार्य सूची",emoji:"इमोजी",highlight:"हाइलाइट","font-color":"फ़ॉन्ट रंग",align:"संरेखित करें","line-height":"लाइन हाइट","bullet-list":"बिना क्रम वाली सूची","ordered-list":"क्रमबद्ध सूची","indent-decrease":"इंडेंट घटाएं","indent-increase":"इंडेंट बढ़ाएं",break:"लाइन ब्रेक",image:"चित्र",video:"वीडियो",attachment:"अनुलग्नक",quote:"उद्धरण","code-block":"कोड ब्लॉक",table:"तालिका",printer:"प्रिंट करें",fullscreen:"पूर्ण स्क्रीन",ai:"कृत्रिम बुद्धिमत्ता","menu-group":"मेनू समूह",paragraph:"पैराग्राफ",h1:"शीर्षक 1",h2:"शीर्षक 2",h3:"शीर्षक 3",h4:"शीर्षक 4",h5:"शीर्षक 5",h6:"शीर्षक 6",standardColors:"मानक रंग",historyColors:"हालिया रंग",insertTable:"तालिका सम्मिलित करें",row:"पंक्ति",column:"स्तंभ","align-left":"बाएं संरेखित","align-right":"दाएं संरेखित","align-center":"केंद्र संरेखित","align-justify":"दोनों तरफ संरेखित","insert-column-left":"बाईं ओर स्तंभ जोड़ें","insert-column-right":"दाईं ओर स्तंभ जोड़ें","insert-row-top":"ऊपर पंक्ति जोड़ें","insert-row-bottom":"नीचे पंक्ति जोड़ें","delete-column":"स्तंभ हटाएं","delete-row":"पंक्ति हटाएं","merge-cells-horizontal":"सेलों को क्षैतिज मिलाएं","merge-cells-vertical":"सेलों को लंबवत मिलाएं","split-cells-horizontal":"सेलों को क्षैतिज विभाजित करें","split-cells-vertical":"सेलों को लंबवत विभाजित करें","delete-table":"तालिका हटाएं","edit-link":"लिंक संपादित करें",unlink:"लिंक हटाएं","visit-link":"लिंक पर जाएं","link-address":"लिंक पता","link-open-type":"लिंक खोलने का प्रकार","link-open-blank":"नई विंडो","default-font-size":"डिफ़ॉल्ट फ़ॉन्ट आकार","default-font-family":"डिफ़ॉल्ट फ़ॉन्ट","codeblock-ai-auto-comment":"स्वचालित टिप्पणी","codeblock-ai-code-explain":"कोड व्याख्या","placeholder-tell-ai-what-to-do-next":"AI को बताएं कि अगला कदम क्या होना चाहिए? उदाहरण: कृपया इसे अंग्रेजी में अनुवाद करें","tip-you-can-enter-text-above-or-select-the-operation-below":"सुझाव: आप ऊपर टेक्स्ट दर्ज कर सकते हैं या नीचे दिए गए ऑपरेशन का चयन कर सकते हैं","you-can-do-the-following":"आप निम्नलिखित कर सकते हैं:","improve-writing":"लेखन सुधारें","check-spelling-and-grammar":"वर्तनी और व्याकरण जांचें","make-shorter":"छोटा करें","make-longer":"लंबा करें",translate:"अनुवाद करें",summarize:"सारांश","ai-append":"जोड़ें","ai-replace":"बदलें","ai-cancel":"रद्द करें","ai-continuation":"AI जारी रखें","ai-optimization":"AI अनुकूलन","ai-proofreading":"AI प्रूफरीडिंग","ai-translation":"AI अनुवाद"},w1n={default:"Default",delete:"Hapus",confirm:"Konfirmasi",cancel:"Batal",resize:"Ubah ukuran",undo:"Batalkan",redo:"Ulangi",brush:"Kuas format",container:"Blok sorot",eraser:"Hapus format",heading:"Teks/Judul","font-family":"Font","font-size":"Ukuran font",bold:"Tebal",italic:"Miring",underline:"Garis bawah",strike:"Garis coret",link:"Tautan","source-code":"Kode sumber",code:"Kode dalam baris",subscript:"Subskrip",superscript:"Superskrip",hr:"Garis pemisah",todo:"Daftar tugas",emoji:"Emoji",highlight:"Sorot","font-color":"Warna font",align:"Rata","line-height":"Tinggi baris","bullet-list":"Daftar tak berurut","ordered-list":"Daftar berurut","indent-decrease":"Kurangi inden","indent-increase":"Tambah inden",break:"Pecah baris",image:"Gambar",video:"Video",attachment:"Lampiran",quote:"Kutipan","code-block":"Blok kode",table:"Tabel",printer:"Cetak",fullscreen:"Layar penuh",ai:"Kecerdasan buatan","menu-group":"Grup menu",paragraph:"Teks",h1:"Judul 1",h2:"Judul 2",h3:"Judul 3",h4:"Judul 4",h5:"Judul 5",h6:"Judul 6",standardColors:"Warna standar",historyColors:"Warna terbaru",insertTable:"Sisipkan tabel",row:"Baris",column:"Kolom","align-left":"Rata kiri","align-right":"Rata kanan","align-center":"Rata tengah","align-justify":"Rata kedua sisi","insert-column-left":"Sisipkan kolom di kiri","insert-column-right":"Sisipkan kolom di kanan","insert-row-top":"Sisipkan baris di atas","insert-row-bottom":"Sisipkan baris di bawah","delete-column":"Hapus kolom","delete-row":"Hapus baris","merge-cells-horizontal":"Gabungkan sel horizontal","merge-cells-vertical":"Gabungkan sel vertikal","split-cells-horizontal":"Pisahkan sel horizontal","split-cells-vertical":"Pisahkan sel vertikal","delete-table":"Hapus tabel","edit-link":"Edit tautan",unlink:"Hapus tautan","visit-link":"Kunjungi tautan","link-address":"Alamat tautan","link-open-type":"Jenis pembukaan tautan","link-open-blank":"Jendela baru","default-font-size":"Ukuran font","default-font-family":"Font default","codeblock-ai-auto-comment":"Komentar otomatis","codeblock-ai-code-explain":"Penjelasan kode","placeholder-tell-ai-what-to-do-next":"Beritahu AI langkah berikutnya? Contoh: Bantu saya terjemahkan ke bahasa Inggris","tip-you-can-enter-text-above-or-select-the-operation-below":"Tip: Anda bisa memasukkan teks di atas atau memilih operasi di bawah","you-can-do-the-following":"Anda dapat melakukan hal-hal berikut:","improve-writing":"Tingkatkan tulisan","check-spelling-and-grammar":"Periksa ejaan dan tata bahasa","make-shorter":"Buat lebih singkat","make-longer":"Buat lebih panjang",translate:"Terjemahkan",summarize:"Ringkas","ai-append":"Tambahkan","ai-replace":"Ganti","ai-cancel":"Batalkan","ai-continuation":"AI Lanjutkan","ai-optimization":"AI Optimasi","ai-proofreading":"AI Koreksi","ai-translation":"AI Terjemahan"},T1n={default:"デフォルト",delete:"削除",confirm:"確認",cancel:"キャンセル",resize:"サイズ調整",undo:"元に戻す",redo:"やり直す",brush:"フォーマットブラシ",container:"ハイライトブロック",eraser:"フォーマットクリア",heading:"テキスト/見出し","font-family":"フォント","font-size":"フォントサイズ",bold:"太字",italic:"斜体",underline:"下線",strike:"取り消し線",link:"リンク","source-code":"ソースコード",code:"インラインコード",subscript:"下付き文字",superscript:"上付き文字",hr:"区切り線",todo:"タスクリスト",emoji:"絵文字",highlight:"ハイライト","font-color":"フォントカラー",align:"配置","line-height":"行の高さ","bullet-list":"箇条書きリスト","ordered-list":"番号付きリスト","indent-decrease":"インデントを減らす","indent-increase":"インデントを増やす",break:"改行",image:"画像",video:"ビデオ",attachment:"添付ファイル",quote:"引用","code-block":"コードブロック",table:"テーブル",printer:"印刷",fullscreen:"全画面",ai:"AI","menu-group":"メニューグループ",paragraph:"段落",h1:"見出し 1",h2:"見出し 2",h3:"見出し 3",h4:"見出し 4",h5:"見出し 5",h6:"見出し 6",standardColors:"標準色",historyColors:"最近使用した色",insertTable:"テーブル挿入",row:"行",column:"列","align-left":"左揃え","align-right":"右揃え","align-center":"中央揃え","align-justify":"両端揃え","insert-column-left":"左に列を挿入","insert-column-right":"右に列を挿入","insert-row-top":"上に行を挿入","insert-row-bottom":"下に行を挿入","delete-column":"列を削除","delete-row":"行を削除","merge-cells-horizontal":"セルを横に結合","merge-cells-vertical":"セルを縦に結合","split-cells-horizontal":"セルを横に分割","split-cells-vertical":"セルを縦に分割","delete-table":"テーブルを削除","edit-link":"リンク編集",unlink:"リンク解除","visit-link":"リンクを訪問","link-address":"リンクアドレス","link-open-type":"開き方","link-open-blank":"新しいウィンドウで開く","default-font-size":"デフォルトフォントサイズ","default-font-family":"デフォルトフォント","codeblock-ai-auto-comment":"自動コメント","codeblock-ai-code-explain":"コードの説明","placeholder-tell-ai-what-to-do-next":"次にAIに何をさせるか教えてください。例英語に翻訳して","tip-you-can-enter-text-above-or-select-the-operation-below":"ヒント:上にテキストを入力するか、下の操作を選択できます","you-can-do-the-following":"次の操作ができます:","improve-writing":"文章を改善","check-spelling-and-grammar":"スペルと文法のチェック","make-shorter":"短くする","make-longer":"長くする",translate:"翻訳",summarize:"要約","ai-append":"追加","ai-replace":"置換","ai-cancel":"キャンセル","ai-continuation":"AI継続","ai-optimization":"AI最適化","ai-proofreading":"AI校正","ai-translation":"AI翻訳"},x1n={default:"기본값",delete:"삭제",confirm:"확인",cancel:"취소",resize:"크기 조정",undo:"실행 취소",redo:"다시 실행",brush:"형식 브러시",container:"강조 블록",eraser:"서식 지우기",heading:"본문/제목","font-family":"글꼴","font-size":"글꼴 크기",bold:"굵게",italic:"기울임꼴",underline:"밑줄",strike:"취소선",link:"링크","source-code":"소스 코드",code:"인라인 코드",subscript:"아래 첨자",superscript:"위 첨자",hr:"구분선",todo:"할 일 목록",emoji:"이모지",highlight:"강조","font-color":"글꼴 색상",align:"정렬","line-height":"줄 간격","bullet-list":"글머리 기호 목록","ordered-list":"번호 목록","indent-decrease":"들여쓰기 줄이기","indent-increase":"들여쓰기 늘리기",break:"줄바꿈",image:"이미지",video:"비디오",attachment:"첨부 파일",quote:"인용","code-block":"코드 블록",table:"테이블",printer:"인쇄",fullscreen:"전체 화면",ai:"AI","menu-group":"메뉴 그룹",paragraph:"본문",h1:"제목 1",h2:"제목 2",h3:"제목 3",h4:"제목 4",h5:"제목 5",h6:"제목 6",standardColors:"표준 색상",historyColors:"최근 사용 색상",insertTable:"테이블 삽입",row:"행",column:"열","align-left":"왼쪽 정렬","align-right":"오른쪽 정렬","align-center":"가운데 정렬","align-justify":"양쪽 맞춤","insert-column-left":"왼쪽에 열 삽입","insert-column-right":"오른쪽에 열 삽입","insert-row-top":"위쪽에 행 삽입","insert-row-bottom":"아래쪽에 행 삽입","delete-column":"열 삭제","delete-row":"행 삭제","merge-cells-horizontal":"셀 병합","merge-cells-vertical":"셀 세로 병합","split-cells-horizontal":"셀 가로 분할","split-cells-vertical":"셀 세로 분할","delete-table":"테이블 삭제","edit-link":"링크 편집",unlink:"링크 해제","visit-link":"링크 방문","link-address":"링크 주소","link-open-type":"열기 유형","link-open-blank":"새 창","default-font-size":"기본 글꼴 크기","default-font-family":"기본 글꼴","codeblock-ai-auto-comment":"자동 주석","codeblock-ai-code-explain":"코드 설명","placeholder-tell-ai-what-to-do-next":"AI에게 다음 작업을 지시하세요. 예: 영어로 번역해 주세요","tip-you-can-enter-text-above-or-select-the-operation-below":"팁: 위에 텍스트를 입력하거나 아래 작업을 선택할 수 있습니다","you-can-do-the-following":"다음 작업을 수행할 수 있습니다:","improve-writing":"글쓰기 개선","check-spelling-and-grammar":"철자 및 문법 검사","make-shorter":"짧게 만들기","make-longer":"길게 만들기",translate:"번역",summarize:"요약","ai-append":"추가","ai-replace":"대체","ai-cancel":"취소","ai-continuation":"AI 계속","ai-optimization":"AI 최적화","ai-proofreading":"AI 교정","ai-translation":"AI 번역"},O1n={default:"ค่าเริ่มต้น",delete:"ลบ",confirm:"ยืนยัน",cancel:"ยกเลิก",resize:"ปรับขนาด",undo:"เลิกทำ",redo:"ทำซ้ำ",brush:"แปรงรูปแบบ",container:"บล็อกไฮไลท์",eraser:"ล้างรูปแบบ",heading:"ข้อความ/หัวข้อ","font-family":"แบบอักษร","font-size":"ขนาดตัวอักษร",bold:"ตัวหนา",italic:"ตัวเอียง",underline:"ขีดเส้นใต้",strike:"ขีดฆ่า",link:"ลิงก์","source-code":"โค้ดต้นฉบับ",code:"โค้ดในบรรทัด",subscript:"ตัวห้อย",superscript:"ตัวยก",hr:"เส้นแบ่ง",todo:"รายการสิ่งที่ต้องทำ",emoji:"อีโมจิ",highlight:"ไฮไลท์","font-color":"สีตัวอักษร",align:"จัดแนว","line-height":"ความสูงบรรทัด","bullet-list":"รายการจุด","ordered-list":"รายการลำดับ","indent-decrease":"ลดการเยื้อง","indent-increase":"เพิ่มการเยื้อง",break:"ขึ้นบรรทัดใหม่",image:"รูปภาพ",video:"วิดีโอ",attachment:"ไฟล์แนบ",quote:"อ้างอิง","code-block":"บล็อกโค้ด",table:"ตาราง",printer:"พิมพ์",fullscreen:"เต็มจอ",ai:"ปัญญาประดิษฐ์","menu-group":"กลุ่มเมนู",paragraph:"ข้อความ",h1:"หัวข้อ 1",h2:"หัวข้อ 2",h3:"หัวข้อ 3",h4:"หัวข้อ 4",h5:"หัวข้อ 5",h6:"หัวข้อ 6",standardColors:"สีมาตรฐาน",historyColors:"ใช้ล่าสุด",insertTable:"แทรกตาราง",row:"แถว",column:"คอลัมน์","align-left":"จัดชิดซ้าย","align-right":"จัดชิดขวา","align-center":"จัดกึ่งกลาง","align-justify":"จัดเต็มหน้า","insert-column-left":"แทรกคอลัมน์ด้านซ้าย","insert-column-right":"แทรกคอลัมน์ด้านขวา","insert-row-top":"แทรกแถวด้านบน","insert-row-bottom":"แทรกแถวด้านล่าง","delete-column":"ลบคอลัมน์","delete-row":"ลบแถว","merge-cells-horizontal":"ผสานเซลล์ตามแนวนอน","merge-cells-vertical":"ผสานเซลล์ตามแนวตั้ง","split-cells-horizontal":"แยกเซลล์แนวนอน","split-cells-vertical":"แยกเซลล์แนวตั้ง","delete-table":"ลบตาราง","edit-link":"แก้ไขลิงก์",unlink:"ยกเลิกการเชื่อมโยง","visit-link":"เยี่ยมชมลิงก์","link-address":"ที่อยู่ลิงก์","link-open-type":"วิธีการเปิด","link-open-blank":"หน้าต่างใหม่","default-font-size":"ขนาดตัวอักษร","default-font-family":"แบบอักษรเริ่มต้น","codeblock-ai-auto-comment":"คอมเมนต์อัตโนมัติ","codeblock-ai-code-explain":"อธิบายโค้ด","placeholder-tell-ai-what-to-do-next":"บอก AI ว่าต้องทำอะไรต่อไป เช่น ช่วยแปลเป็นภาษาอังกฤษ","tip-you-can-enter-text-above-or-select-the-operation-below":"เคล็ดลับ: คุณสามารถป้อนข้อความข้างบนหรือเลือกการดำเนินการด้านล่าง","you-can-do-the-following":"คุณสามารถทำสิ่งต่อไปนี้:","improve-writing":"ปรับปรุงการเขียน","check-spelling-and-grammar":"ตรวจสอบการสะกดและไวยากรณ์","make-shorter":"ทำให้สั้นลง","make-longer":"ทำให้ยาวขึ้น",translate:"แปล",summarize:"สรุป","ai-append":"เพิ่ม","ai-replace":"แทนที่","ai-cancel":"ยกเลิก","ai-continuation":"AI เขียนต่อ","ai-optimization":"AI ปรับแต่ง","ai-proofreading":"AI พิสูจน์อักษร","ai-translation":"AI แปล"},R1n={default:"Mặc định",delete:"Xóa",confirm:"Xác nhận",cancel:"Hủy",resize:"Điều chỉnh kích thước",undo:"Hoàn tác",redo:"Làm lại",brush:"Chổi định dạng",container:"Khối nổi bật",eraser:"Xóa định dạng",heading:"Nội dung/Đầu đề","font-family":"Phông chữ","font-size":"Cỡ chữ",bold:"In đậm",italic:"In nghiêng",underline:"Gạch chân",strike:"Gạch ngang",link:"Liên kết","source-code":"Mã nguồn",code:"Mã trong dòng",subscript:"Chỉ số dưới",superscript:"Chỉ số trên",hr:"Đường phân cách",todo:"Danh sách công việc",emoji:"Biểu tượng cảm xúc",highlight:"Đánh dấu","font-color":"Màu chữ",align:"Căn chỉnh","line-height":"Chiều cao dòng","bullet-list":"Danh sách dấu chấm","ordered-list":"Danh sách có thứ tự","indent-decrease":"Giảm thụt lề","indent-increase":"Tăng thụt lề",break:"Xuống dòng",image:"Hình ảnh",video:"Video",attachment:"Tệp đính kèm",quote:"Trích dẫn","code-block":"Khối mã",table:"Bảng",printer:"In",fullscreen:"Toàn màn hình",ai:"Trí tuệ nhân tạo","menu-group":"Nhóm menu",paragraph:"Nội dung",h1:"Tiêu đề 1",h2:"Tiêu đề 2",h3:"Tiêu đề 3",h4:"Tiêu đề 4",h5:"Tiêu đề 5",h6:"Tiêu đề 6",standardColors:"Màu tiêu chuẩn",historyColors:"Màu đã dùng gần đây",insertTable:"Chèn bảng",row:"Hàng",column:"Cột","align-left":"Căn trái","align-right":"Căn phải","align-center":"Căn giữa","align-justify":"Căn đều","insert-column-left":"Chèn cột bên trái","insert-column-right":"Chèn cột bên phải","insert-row-top":"Chèn hàng phía trên","insert-row-bottom":"Chèn hàng phía dưới","delete-column":"Xóa cột hiện tại","delete-row":"Xóa hàng hiện tại","merge-cells-horizontal":"Gộp ô ngang","merge-cells-vertical":"Gộp ô dọc","split-cells-horizontal":"Tách ô ngang","split-cells-vertical":"Tách ô dọc","delete-table":"Xóa bảng","edit-link":"Chỉnh sửa liên kết",unlink:"Hủy liên kết","visit-link":"Truy cập liên kết","link-address":"Địa chỉ liên kết","link-open-type":"Cách mở liên kết","link-open-blank":"Cửa sổ mới","default-font-size":"Cỡ chữ","default-font-family":"Phông chữ mặc định","codeblock-ai-auto-comment":"Nhận xét tự động","codeblock-ai-code-explain":"Giải thích mã","placeholder-tell-ai-what-to-do-next":"Nói với AI bước tiếp theo là gì? Ví dụ: Giúp tôi dịch sang tiếng Anh","tip-you-can-enter-text-above-or-select-the-operation-below":"Mẹo: Bạn có thể nhập văn bản phía trên hoặc chọn thao tác bên dưới","you-can-do-the-following":"Bạn có thể thực hiện các thao tác sau:","improve-writing":"Cải thiện bài viết","check-spelling-and-grammar":"Kiểm tra chính tả và ngữ pháp","make-shorter":"Rút gọn","make-longer":"Mở rộng nội dung",translate:"Dịch",summarize:"Tóm tắt","ai-append":"Thêm vào","ai-replace":"Thay thế","ai-cancel":"Hủy","ai-continuation":"AI Viết tiếp","ai-optimization":"AI Tối ưu hóa","ai-proofreading":"AI Hiệu đính","ai-translation":"AI Dịch"},Kfe={};function I1n(e){let t=Kfe[e];if(t)return t;t=Kfe[e]=[];for(let n=0;n<128;n++){const r=String.fromCharCode(n);t.push(r)}for(let n=0;n<e.length;n++){const r=e.charCodeAt(n);t[r]="%"+("0"+r.toString(16).toUpperCase()).slice(-2)}return t}function Z_(e,t){typeof t!="string"&&(t=Z_.defaultChars);const n=I1n(t);return e.replace(/(%[a-f0-9]{2})+/gi,function(r){let i="";for(let o=0,a=r.length;o<a;o+=3){const s=parseInt(r.slice(o+1,o+3),16);if(s<128){i+=n[s];continue}if((s&224)===192&&o+3<a){const l=parseInt(r.slice(o+4,o+6),16);if((l&192)===128){const c=s<<6&1984|l&63;c<128?i+="<22><>":i+=String.fromCharCode(c),o+=3;continue}}if((s&240)===224&&o+6<a){const l=parseInt(r.slice(o+4,o+6),16),c=parseInt(r.slice(o+7,o+9),16);if((l&192)===128&&(c&192)===128){const u=s<<12&61440|l<<6&4032|c&63;u<2048||u>=55296&&u<=57343?i+="<22><><EFBFBD>":i+=String.fromCharCode(u),o+=6;continue}}if((s&248)===240&&o+9<a){const l=parseInt(r.slice(o+4,o+6),16),c=parseInt(r.slice(o+7,o+9),16),u=parseInt(r.slice(o+10,o+12),16);if((l&192)===128&&(c&192)===128&&(u&192)===128){let d=s<<18&1835008|l<<12&258048|c<<6&4032|u&63;d<65536||d>1114111?i+="<22><><EFBFBD><EFBFBD>":(d-=65536,i+=String.fromCharCode(55296+(d>>10),56320+(d&1023))),o+=9;continue}}i+="<22>"}return i})}Z_.defaultChars=";/?:@&=+$,#";Z_.componentChars="";const Qfe={};function A1n(e){let t=Qfe[e];if(t)return t;t=Qfe[e]=[];for(let n=0;n<128;n++){const r=String.fromCharCode(n);/^[0-9a-z]$/i.test(r)?t.push(r):t.push("%"+("0"+n.toString(16).toUpperCase()).slice(-2))}for(let n=0;n<e.length;n++)t[e.charCodeAt(n)]=e[n];return t}function hO(e,t,n){typeof t!="string"&&(n=t,t=hO.defaultChars),typeof n>"u"&&(n=!0);const r=A1n(t);let i="";for(let o=0,a=e.length;o<a;o++){const s=e.charCodeAt(o);if(n&&s===37&&o+2<a&&/^[0-9a-f]{2}$/i.test(e.slice(o+1,o+3))){i+=e.slice(o,o+3),o+=2;continue}if(s<128){i+=r[s];continue}if(s>=55296&&s<=57343){if(s>=55296&&s<=56319&&o+1<a){const l=e.charCodeAt(o+1);if(l>=56320&&l<=57343){i+=encodeURIComponent(e[o]+e[o+1]),o++;continue}}i+="%EF%BF%BD";continue}i+=encodeURIComponent(e[o])}return i}hO.defaultChars=";/?:@&=+$,-_.!~*'()#";hO.componentChars="-_.!~*'()";function NX(e){let t="";return t+=e.protocol||"",t+=e.slashes?"//":"",t+=e.auth?e.auth+"@":"",e.hostname&&e.hostname.indexOf(":")!==-1?t+="["+e.hostname+"]":t+=e.hostname||"",t+=e.port?":"+e.port:"",t+=e.pathname||"",t+=e.search||"",t+=e.hash||"",t}function C4(){this.protocol=null,this.slashes=null,this.auth=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.pathname=null}const N1n=/^([a-z0-9.+-]+:)/i,M1n=/:[0-9]*$/,k1n=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,P1n=["<",">",'"',"`"," ","\r",`
`," "],D1n=["{","}","|","\\","^","`"].concat(P1n),L1n=["'"].concat(D1n),Xfe=["%","/","?",";","#"].concat(L1n),Zfe=["/","?","#"],$1n=255,Jfe=/^[+a-z0-9A-Z_-]{0,63}$/,F1n=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,epe={javascript:!0,"javascript:":!0},tpe={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};function MX(e,t){if(e&&e instanceof C4)return e;const n=new C4;return n.parse(e,t),n}C4.prototype.parse=function(e,t){let n,r,i,o=e;if(o=o.trim(),!t&&e.split("#").length===1){const c=k1n.exec(o);if(c)return this.pathname=c[1],c[2]&&(this.search=c[2]),this}let a=N1n.exec(o);if(a&&(a=a[0],n=a.toLowerCase(),this.protocol=a,o=o.substr(a.length)),(t||a||o.match(/^\/\/[^@\/]+@[^@\/]+/))&&(i=o.substr(0,2)==="//",i&&!(a&&epe[a])&&(o=o.substr(2),this.slashes=!0)),!epe[a]&&(i||a&&!tpe[a])){let c=-1;for(let m=0;m<Zfe.length;m++)r=o.indexOf(Zfe[m]),r!==-1&&(c===-1||r<c)&&(c=r);let u,d;c===-1?d=o.lastIndexOf("@"):d=o.lastIndexOf("@",c),d!==-1&&(u=o.slice(0,d),o=o.slice(d+1),this.auth=u),c=-1;for(let m=0;m<Xfe.length;m++)r=o.indexOf(Xfe[m]),r!==-1&&(c===-1||r<c)&&(c=r);c===-1&&(c=o.length),o[c-1]===":"&&c--;const f=o.slice(0,c);o=o.slice(c),this.parseHost(f),this.hostname=this.hostname||"";const h=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!h){const m=this.hostname.split(/\./);for(let g=0,v=m.length;g<v;g++){const y=m[g];if(y&&!y.match(Jfe)){let b="";for(let _=0,E=y.length;_<E;_++)y.charCodeAt(_)>127?b+="x":b+=y[_];if(!b.match(Jfe)){const _=m.slice(0,g),E=m.slice(g+1),w=y.match(F1n);w&&(_.push(w[1]),E.unshift(w[2])),E.length&&(o=E.join(".")+o),this.hostname=_.join(".");break}}}}this.hostname.length>$1n&&(this.hostname=""),h&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}const s=o.indexOf("#");s!==-1&&(this.hash=o.substr(s),o=o.slice(0,s));const l=o.indexOf("?");return l!==-1&&(this.search=o.substr(l),o=o.slice(0,l)),o&&(this.pathname=o),tpe[n]&&this.hostname&&!this.pathname&&(this.pathname=""),this};C4.prototype.parseHost=function(e){let t=M1n.exec(e);t&&(t=t[0],t!==":"&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)};const B1n=Object.freeze(Object.defineProperty({__proto__:null,decode:Z_,encode:hO,format:NX,parse:MX},Symbol.toStringTag,{value:"Module"})),s5e=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,l5e=/[\0-\x1F\x7F-\x9F]/,j1n=/[\xAD\u0600-\u0605\u061C\u06DD\u070F\u0890\u0891\u08E2\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804[\uDCBD\uDCCD]|\uD80D[\uDC30-\uDC3F]|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/,kX=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\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]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDEAD\uDF55-\uDF59\uDF86-\uDF89]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5A\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDEB9\uDF3C-\uDF3E]|\uD806[\uDC3B\uDD44-\uDD46\uDDE2\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2\uDF00-\uDF09]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8\uDF43-\uDF4F\uDFFF]|\uD809[\uDC70-\uDC74]|\uD80B[\uDFF1\uDFF2]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A\uDFE2]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/,c5e=/[\$\+<->\^`\|~\xA2-\xA6\xA8\xA9\xAC\xAE-\xB1\xB4\xB8\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0384\u0385\u03F6\u0482\u058D-\u058F\u0606-\u0608\u060B\u060E\u060F\u06DE\u06E9\u06FD\u06FE\u07F6\u07FE\u07FF\u0888\u09F2\u09F3\u09FA\u09FB\u0AF1\u0B70\u0BF3-\u0BFA\u0C7F\u0D4F\u0D79\u0E3F\u0F01-\u0F03\u0F13\u0F15-\u0F17\u0F1A-\u0F1F\u0F34\u0F36\u0F38\u0FBE-\u0FC5\u0FC7-\u0FCC\u0FCE\u0FCF\u0FD5-\u0FD8\u109E\u109F\u1390-\u1399\u166D\u17DB\u1940\u19DE-\u19FF\u1B61-\u1B6A\u1B74-\u1B7C\u1FBD\u1FBF-\u1FC1\u1FCD-\u1FCF\u1FDD-\u1FDF\u1FED-\u1FEF\u1FFD\u1FFE\u2044\u2052\u207A-\u207C\u208A-\u208C\u20A0-\u20C0\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F\u218A\u218B\u2190-\u2307\u230C-\u2328\u232B-\u2426\u2440-\u244A\u249C-\u24E9\u2500-\u2767\u2794-\u27C4\u27C7-\u27E5\u27F0-\u2982\u2999-\u29D7\u29DC-\u29FB\u29FE-\u2B73\u2B76-\u2B95\u2B97-\u2BFF\u2CE5-\u2CEA\u2E50\u2E51\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFF\u3004\u3012\u3013\u3020\u3036\u3037\u303E\u303F\u309B\u309C\u3190\u3191\u3196-\u319F\u31C0-\u31E3\u31EF\u3200-\u321E\u322A-\u3247\u3250\u3260-\u327F\u328A-\u32B0\u32C0-\u33FF\u4DC0-\u4DFF\uA490-\uA4C6\uA700-\uA716\uA720\uA721\uA789\uA78A\uA828-\uA82B\uA836-\uA839\uAA77-\uAA79\uAB5B\uAB6A\uAB6B\uFB29\uFBB2-\uFBC2\uFD40-\uFD4F\uFDCF\uFDFC-\uFDFF\uFE62\uFE64-\uFE66\uFE69\uFF04\uFF0B\uFF1C-\uFF1E\uFF3E\uFF40\uFF5C\uFF5E\uFFE0-\uFFE6\uFFE8-\uFFEE\uFFFC\uFFFD]|\uD800[\uDD37-\uDD3F\uDD79-\uDD89\uDD8C-\uDD8E\uDD90-\uDD9C\uDDA0\uDDD0-\uDDFC]|\uD802[\uDC77\uDC78\uDEC8]|\uD805\uDF3F|\uD807[\uDFD5-\uDFF1]|\uD81A[\uDF3C-\uDF3F\uDF45]|\uD82F\uDC9C|\uD833[\uDF50-\uDFC3]|\uD834[\uDC00-\uDCF5\uDD00-\uDD26\uDD29-\uDD64\uDD6A-\uDD6C\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDDEA\uDE00-\uDE41\uDE45\uDF00-\uDF56]|\uD835[\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85\uDE86]|\uD838[\uDD4F\uDEFF]|\uD83B[\uDCAC\uDCB0\uDD2E\uDEF0\uDEF1]|\uD83C[\uDC00-\uDC2B\uDC30-\uDC93\uDCA0-\uDCAE\uDCB1-\uDCBF\uDCC1-\uDCCF\uDCD1-\uDCF5\uDD0D-\uDDAD\uDDE6-\uDE02\uDE10-\uDE3B\uDE40-\uDE48\uDE50\uDE51\uDE60-\uDE65\uDF00-\uDFFF]|\uD83D[\uDC00-\uDED7\uDEDC-\uDEEC\uDEF0-\uDEFC\uDF00-\uDF76\uDF7B-\uDFD9\uDFE0-\uDFEB\uDFF0]|\uD83E[\uDC00-\uDC0B\uDC10-\uDC47\uDC50-\uDC59\uDC60-\uDC87\uDC90-\uDCAD\uDCB0\uDCB1\uDD00-\uDE53\uDE60-\uDE6D\uDE70-\uDE7C\uDE80-\uDE88\uDE90-\uDEBD\uDEBF-\uDEC5\uDECE-\uDEDB\uDEE0-\uDEE8\uDEF0-\uDEF8\uDF00-\uDF92\uDF94-\uDFCA]/,u5e=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/,H1n=Object.freeze(Object.defineProperty({__proto__:null,Any:s5e,Cc:l5e,Cf:j1n,P:kX,S:c5e,Z:u5e},Symbol.toStringTag,{value:"Module"})),U1n=new Uint16Array('ᵁ<Õıʊҝջאٵ۞ޢߖࠏ੊ઑඡ๭༉༦჊ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ὾↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms„‹•˜¦³¹ÈÏlig耻Æ䃆P耻&䀦cute耻Á䃁reve;䄂Āiyx}rc耻Â䃂;䐐r;쀀𝔄rave耻À䃀pha;䎑acr;䄀d;橓Āgp¡on;䄄f;쀀𝔸plyFunction;恡ing耻Å䃅Ācs¾Ãr;쀀𝒜ign;扔ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或Ŷöø;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀𝔅pf;쀀𝔹eve;䋘còēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻©䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻Ç䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷òſi;䎧rcleȀDMPTLJNjǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀𝒞pĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀𝔇Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀𝔻ƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲ΂ϏϢϸontourIntegraìȹoɴ͹\0\0ͻ»͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔eåˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀𝒟rok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻Ð䃐cute耻É䃉ƀaiyӒӗӜron;䄚rc耻Ê䃊;䐭ot;䄖r;쀀𝔈rave耻È䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀𝔼silon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՗՚r;愰m;橳a;䎗ml耻Ë䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲ׌y;䐤r;쀀𝔉lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀𝔽All;戀riertrf;愱cò׋؀JTabcdfgorstר׬ׯ׺؀ؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d׷׸䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇܎ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lieóϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻Ï䃏ʀcfosuެ޷޼߂ߐĀiyޱ޵rc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\0ߌr;쀀𝒥rcy;䐈kcy;䐄΀HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶߻dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦րJTaceflmostࠥࠩࠬࡐࡣ঳সে্਷ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗ࡜ࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४Ānrࢃ࢏gleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpw৔ਖਛgȀLRlr৞৷ਂਐeftĀAR৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼੝੠੷੼અઋ઎p;椅y;䐜Ādl੥੯iumSpace;恟lintrf;愳r;쀀𝔐nusPlus;戓pf;쀀𝕄cò੶;䎜ҀJacefostuણધભીଔଙඑ඗ඞcy;䐊cute;䅃ƀaey઴હાron;䅇dil;䅅;䐝ƀgswે૰଎ativeƀMTV૓૟૨ediumSpace;怋hiĀcn૘ë૙eryThiî૙tedĀGL૸ଆreaterGreateòٳessLesóੈLine;䀊r;쀀𝔑ȀBnptଢନଷ଺reak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪୼஡௫ఄ౞಄ದ೘ൡඅ櫬Āou୛୤ngruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊ஛ement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater΀;EFGLSTஶஷ஽௉௓௘௥扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲௽ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ೒拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨೹setĀ;E೰ೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂ෉෕ෛ෠෧෼ขภยา฿ไlig;䅒cute耻Ó䃓Āiy෎ීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲ෶cr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬื฼de耻Õ䃕es;樷ml耻Ö䃖erĀBP๋๠Āar๓r;怾acĀek๚๜;揞et;掴arenthesis;揜Ҁacfhilors๿ງຊຏຒດຝະ໼rtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ໠໤檻cedesȀ;EST່້໏໚扺qual;檯lantEqual;扼ilde;找me;怳Ādp໩໮uct;戏ortionĀ;aȥ໹l;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀𝔔pf;愚cr;쀀𝒬؀BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁࿫࿳ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL࿜࿝࿡憒ar;懥eftArrow;懄eiling;按oǵ࿹\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»࿝pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄ቉ቕ቞ቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHc቎ቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗Āeiቻ኉Dzኀ\0ኇefore;戴a;䎘Ācn኎ኘkSpace;쀀Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0᏿ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\0጖y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻፿on;䅲f;쀀𝕌ЀADETadps᎕ᎸᏄϨrrowƀ;BDᅐᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidtè૙a;䎖r;愨pf;愤cr;쀀𝒵௡ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ\0ᚕ᚛ᚹ\0ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚΀;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒΀;Eaeiop዁ᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;e዁ᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;e዁ᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsuᛱᜰ᜼ᝃᝈ᝸᝽០៦ᠹᡐᜍ᤽᥈ᥰot;櫭Ācrᛶ᜞kȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e᜚᜛戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;t፜᜷brk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓ᝛ᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯ᝱ᝳ;䎲;愶een;扬r;쀀𝔟g΀costuvwឍឝឳេ៕៛៞ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀako៭ᠦᠵĀcn៲ᠣkƀlst៺֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘᠝斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈؀DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬ᣿ᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教΀;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ᣷᣹᣻᣽;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ᤟;敛;敘;攘;攔΀;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģ᥂bar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;e᜚᜜lƀ;bhᥨᥩᥫ䁜;槅sub;柈Ŭᥴ᥾lĀ;e᥹᥺怢t»᥺pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭍᭒\0᯽\0ᰌƀcpr᦭ᦲ᧝ute;䄇̀;abcdsᦿᧀᧄ᧊᧕᧙戩nd;橄rcup;橉Āau᧏᧒p;橋p;橇ot;橀;쀀∩Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r΀;Ecefms᩟᩠ᩢᩫ᪤᪪᪮旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖᪚᪟»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇᫔᫺\0ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ᫙\0\0᫢aĀ;t᫞᫟䀬;䁀ƀ;fl᫨᫩᫫戁îeĀmx᫱᫶ent»᫩eóɍǧ᫾\0ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯΀delprvw᭠᭬᭷ᮂᮬᯔ᯹arrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;p᭿ᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰸᰻᰿ᱝᱩᱵᲊᲞᲬᲷ᳻᳿ᴍᵻᶑᶫᶻ᷆᷍rò΁ar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂͸᳖᳜᳠mƀ;oș᳊᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄ὎὚ĀDoḆᴴoôᲉĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\0\0ỻíՈantĀglἂἆtr»ṝess»Ṻƀaeiἒ἖Ἒls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0g;耀ffig;耀ffl;쀀𝔣lig;耀filig;쀀fjƀaltῙ῜ῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀𝕗ĀakֿῷĀ;vῼ拔;櫙artint;樍Āao⁕Ācsα‰‸⁅⁈\0⁐β•‥‧\0耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0耻¾䂾;慗;慜5;慘ƶ⁌\0;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₟₥₰₴⃰⃵⃺⃿℃ℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕ₝ute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽⃉ƀ;qsؾٌ⃄lanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚ;檒;檥;檤ȀEaes;扩pĀ;p℣檊rox»Ā;q檈Ā;qim;拧pf;쀀𝕘Āci⅃r;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqr׮ĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0↎proø₞r;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\0⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢␧␭␱␵␻ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀஀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝➋⟀⠁⠒ƀart⑷⑺⑼rò৆òΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonó྘quigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❶❼➅➇ròࢨorneòarĀ;d྘➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;efभ᠛旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛òðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐௏쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop඄⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roø඄urĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻 ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓΀;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨í஘istĀ;s஠டr;쀀𝔫ȀEest௅⩦⩹⩼ƀ;qs஼⩭௡ƀ;qs஼௅⩴lanô௢ií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚΀AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs఻⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs఻⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast୻⭕⭚⭟lleì୻l;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖ΀chimpqu⮽⯍⯙⬄୸⯤⯯Ȁ;cerല⯆ഷ⯉uå൅;쀀𝓃ortɭ⬅\0\0⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭å೸åഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñ೗Ā;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬Āet;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀⃒ƀAan⳰⳴ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⵈⵠⵥ⵲ⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;c᪞ⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācr⵩⵭ir;榿;쀀𝔬ͯ⵹\0\0⵼\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕ⶘ⶥⶨrò᪀Āir⶝ⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔ⷗ǒr;榷rp;榹΀;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ⹞\0⹽\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ⹧⹲຅脀¶;l⹭⹮䂶leìЃɩ⹸\0\0⹻m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳⻴ᤈ⻹⻽⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp໬⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t໻⾴ï໻rel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⿚⋢⿟⿥⿫⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei⿾々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔઀ABHabcdefhilmnoprstux぀けさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤΀cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstw࿜ガクシスゼゾダッデナp;極Ā;f࿠ゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes㄂㄄;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ì࿲âヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘㇤㇮rrowĀ;t࿜ㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowó࿪arpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓rò࿪aòՑ;怏oustĀ;a㈞㈟掱che»㈟mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦΀Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ëĀ;oਸ਼਴t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜iäᑤaraì⹯耻­䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;q኱ኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓pĀ;sᆴ㑵;쀀⊔uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫ਩war;椪lig耻ß䃟௡㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄rë๟ƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproø዁im»ኬsðኞĀas㚺㚮ð዁rn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈ΀adempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xô᝷headĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜΀eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;h㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊;쀀⫋setneqĀ;q㦏㦒쀀⊋;쀀⫌Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roð໻tré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚΀cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜ៟tré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌'.split("").map(e=>e.charCodeAt(0))),z1n=new Uint16Array("Ȁaglq \x1Bɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map(e=>e.charCodeAt(0)));var H6;const V1n=new Map([[0,65533],[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]]),G1n=(H6=String.fromCodePoint)!==null&&H6!==void 0?H6:function(e){let t="";return e>65535&&(e-=65536,t+=String.fromCharCode(e>>>10&1023|55296),e=56320|e&1023),t+=String.fromCharCode(e),t};function W1n(e){var t;return e>=55296&&e<=57343||e>1114111?65533:(t=V1n.get(e))!==null&&t!==void 0?t:e}var Ba;(function(e){e[e.NUM=35]="NUM",e[e.SEMI=59]="SEMI",e[e.EQUALS=61]="EQUALS",e[e.ZERO=48]="ZERO",e[e.NINE=57]="NINE",e[e.LOWER_A=97]="LOWER_A",e[e.LOWER_F=102]="LOWER_F",e[e.LOWER_X=120]="LOWER_X",e[e.LOWER_Z=122]="LOWER_Z",e[e.UPPER_A=65]="UPPER_A",e[e.UPPER_F=70]="UPPER_F",e[e.UPPER_Z=90]="UPPER_Z"})(Ba||(Ba={}));const q1n=32;var zm;(function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.BRANCH_LENGTH=16256]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"})(zm||(zm={}));function bV(e){return e>=Ba.ZERO&&e<=Ba.NINE}function Y1n(e){return e>=Ba.UPPER_A&&e<=Ba.UPPER_F||e>=Ba.LOWER_A&&e<=Ba.LOWER_F}function K1n(e){return e>=Ba.UPPER_A&&e<=Ba.UPPER_Z||e>=Ba.LOWER_A&&e<=Ba.LOWER_Z||bV(e)}function Q1n(e){return e===Ba.EQUALS||K1n(e)}var Pa;(function(e){e[e.EntityStart=0]="EntityStart",e[e.NumericStart=1]="NumericStart",e[e.NumericDecimal=2]="NumericDecimal",e[e.NumericHex=3]="NumericHex",e[e.NamedEntity=4]="NamedEntity"})(Pa||(Pa={}));var Sm;(function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"})(Sm||(Sm={}));class X1n{constructor(t,n,r){this.decodeTree=t,this.emitCodePoint=n,this.errors=r,this.state=Pa.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=Sm.Strict}startEntity(t){this.decodeMode=t,this.state=Pa.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(t,n){switch(this.state){case Pa.EntityStart:return t.charCodeAt(n)===Ba.NUM?(this.state=Pa.NumericStart,this.consumed+=1,this.stateNumericStart(t,n+1)):(this.state=Pa.NamedEntity,this.stateNamedEntity(t,n));case Pa.NumericStart:return this.stateNumericStart(t,n);case Pa.NumericDecimal:return this.stateNumericDecimal(t,n);case Pa.NumericHex:return this.stateNumericHex(t,n);case Pa.NamedEntity:return this.stateNamedEntity(t,n)}}stateNumericStart(t,n){return n>=t.length?-1:(t.charCodeAt(n)|q1n)===Ba.LOWER_X?(this.state=Pa.NumericHex,this.consumed+=1,this.stateNumericHex(t,n+1)):(this.state=Pa.NumericDecimal,this.stateNumericDecimal(t,n))}addToNumericResult(t,n,r,i){if(n!==r){const o=r-n;this.result=this.result*Math.pow(i,o)+parseInt(t.substr(n,o),i),this.consumed+=o}}stateNumericHex(t,n){const r=n;for(;n<t.length;){const i=t.charCodeAt(n);if(bV(i)||Y1n(i))n+=1;else return this.addToNumericResult(t,r,n,16),this.emitNumericEntity(i,3)}return this.addToNumericResult(t,r,n,16),-1}stateNumericDecimal(t,n){const r=n;for(;n<t.length;){const i=t.charCodeAt(n);if(bV(i))n+=1;else return this.addToNumericResult(t,r,n,10),this.emitNumericEntity(i,2)}return this.addToNumericResult(t,r,n,10),-1}emitNumericEntity(t,n){var r;if(this.consumed<=n)return(r=this.errors)===null||r===void 0||r.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(t===Ba.SEMI)this.consumed+=1;else if(this.decodeMode===Sm.Strict)return 0;return this.emitCodePoint(W1n(this.result),this.consumed),this.errors&&(t!==Ba.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(t,n){const{decodeTree:r}=this;let i=r[this.treeIndex],o=(i&zm.VALUE_LENGTH)>>14;for(;n<t.length;n++,this.excess++){const a=t.charCodeAt(n);if(this.treeIndex=Z1n(r,i,this.treeIndex+Math.max(1,o),a),this.treeIndex<0)return this.result===0||this.decodeMode===Sm.Attribute&&(o===0||Q1n(a))?0:this.emitNotTerminatedNamedEntity();if(i=r[this.treeIndex],o=(i&zm.VALUE_LENGTH)>>14,o!==0){if(a===Ba.SEMI)return this.emitNamedEntityData(this.treeIndex,o,this.consumed+this.excess);this.decodeMode!==Sm.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var t;const{result:n,decodeTree:r}=this,i=(r[n]&zm.VALUE_LENGTH)>>14;return this.emitNamedEntityData(n,i,this.consumed),(t=this.errors)===null||t===void 0||t.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(t,n,r){const{decodeTree:i}=this;return this.emitCodePoint(n===1?i[t]&~zm.VALUE_LENGTH:i[t+1],r),n===3&&this.emitCodePoint(i[t+2],r),r}end(){var t;switch(this.state){case Pa.NamedEntity:return this.result!==0&&(this.decodeMode!==Sm.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case Pa.NumericDecimal:return this.emitNumericEntity(0,2);case Pa.NumericHex:return this.emitNumericEntity(0,3);case Pa.NumericStart:return(t=this.errors)===null||t===void 0||t.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case Pa.EntityStart:return 0}}}function d5e(e){let t="";const n=new X1n(e,r=>t+=G1n(r));return function(r,i){let o=0,a=0;for(;(a=r.indexOf("&",a))>=0;){t+=r.slice(o,a),n.startEntity(i);const l=n.write(r,a+1);if(l<0){o=a+n.end();break}o=a+l,a=l===0?o+1:o}const s=t+r.slice(o);return t="",s}}function Z1n(e,t,n,r){const i=(t&zm.BRANCH_LENGTH)>>7,o=t&zm.JUMP_TABLE;if(i===0)return o!==0&&r===o?n:-1;if(o){const l=r-o;return l<0||l>=i?-1:e[n+l]-1}let a=n,s=a+i-1;for(;a<=s;){const l=a+s>>>1,c=e[l];if(c<r)a=l+1;else if(c>r)s=l-1;else return e[l+i]}return-1}const J1n=d5e(U1n);d5e(z1n);function f5e(e,t=Sm.Legacy){return J1n(e,t)}function evn(e){return Object.prototype.toString.call(e)}function PX(e){return evn(e)==="[object String]"}const tvn=Object.prototype.hasOwnProperty;function nvn(e,t){return tvn.call(e,t)}function v9(e){return Array.prototype.slice.call(arguments,1).forEach(function(t){if(t){if(typeof t!="object")throw new TypeError(t+"must be object");Object.keys(t).forEach(function(n){e[n]=t[n]})}}),e}function p5e(e,t,n){return[].concat(e.slice(0,t),n,e.slice(t+1))}function DX(e){return!(e>=55296&&e<=57343||e>=64976&&e<=65007||(e&65535)===65535||(e&65535)===65534||e>=0&&e<=8||e===11||e>=14&&e<=31||e>=127&&e<=159||e>1114111)}function w4(e){if(e>65535){e-=65536;const t=55296+(e>>10),n=56320+(e&1023);return String.fromCharCode(t,n)}return String.fromCharCode(e)}const h5e=/\\([!"#$%&'()*+,\-./:;<=>?@[\\\]^_`{|}~])/g,rvn=/&([a-z#][a-z0-9]{1,31});/gi,ivn=new RegExp(h5e.source+"|"+rvn.source,"gi"),ovn=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))$/i;function avn(e,t){if(t.charCodeAt(0)===35&&ovn.test(t)){const r=t[1].toLowerCase()==="x"?parseInt(t.slice(2),16):parseInt(t.slice(1),10);return DX(r)?w4(r):e}const n=f5e(e);return n!==e?n:e}function svn(e){return e.indexOf("\\")<0?e:e.replace(h5e,"$1")}function J_(e){return e.indexOf("\\")<0&&e.indexOf("&")<0?e:e.replace(ivn,function(t,n,r){return n||avn(t,r)})}const lvn=/[&<>"]/,cvn=/[&<>"]/g,uvn={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;"};function dvn(e){return uvn[e]}function Eg(e){return lvn.test(e)?e.replace(cvn,dvn):e}const fvn=/[.?*+^$[\]\\(){}|-]/g;function pvn(e){return e.replace(fvn,"\\$&")}function Qi(e){switch(e){case 9:case 32:return!0}return!1}function _x(e){if(e>=8192&&e<=8202)return!0;switch(e){case 9:case 10:case 11:case 12:case 13:case 32:case 160:case 5760:case 8239:case 8287:case 12288:return!0}return!1}function Sx(e){return kX.test(e)||c5e.test(e)}function Ex(e){switch(e){case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 124:case 125:case 126:return!0;default:return!1}}function b9(e){return e=e.trim().replace(/\s+/g," "),"ẞ".toLowerCase()==="Ṿ"&&(e=e.replace(/ẞ/g,"ß")),e.toLowerCase().toUpperCase()}const hvn={mdurl:B1n,ucmicro:H1n},mvn=Object.freeze(Object.defineProperty({__proto__:null,arrayReplaceAt:p5e,assign:v9,escapeHtml:Eg,escapeRE:pvn,fromCodePoint:w4,has:nvn,isMdAsciiPunct:Ex,isPunctChar:Sx,isSpace:Qi,isString:PX,isValidEntityCode:DX,isWhiteSpace:_x,lib:hvn,normalizeReference:b9,unescapeAll:J_,unescapeMd:svn},Symbol.toStringTag,{value:"Module"}));function gvn(e,t,n){let r,i,o,a;const s=e.posMax,l=e.pos;for(e.pos=t+1,r=1;e.pos<s;){if(o=e.src.charCodeAt(e.pos),o===93&&(r--,r===0)){i=!0;break}if(a=e.pos,e.md.inline.skipToken(e),o===91){if(a===e.pos-1)r++;else if(n)return e.pos=l,-1}}let c=-1;return i&&(c=e.pos),e.pos=l,c}function vvn(e,t,n){let r,i=t;const o={ok:!1,pos:0,str:""};if(e.charCodeAt(i)===60){for(i++;i<n;){if(r=e.charCodeAt(i),r===10||r===60)return o;if(r===62)return o.pos=i+1,o.str=J_(e.slice(t+1,i)),o.ok=!0,o;if(r===92&&i+1<n){i+=2;continue}i++}return o}let a=0;for(;i<n&&(r=e.charCodeAt(i),!(r===32||r<32||r===127));){if(r===92&&i+1<n){if(e.charCodeAt(i+1)===32)break;i+=2;continue}if(r===40&&(a++,a>32))return o;if(r===41){if(a===0)break;a--}i++}return t===i||a!==0||(o.str=J_(e.slice(t,i)),o.pos=i,o.ok=!0),o}function bvn(e,t,n,r){let i,o=t;const a={ok:!1,can_continue:!1,pos:0,str:"",marker:0};if(r)a.str=r.str,a.marker=r.marker;else{if(o>=n)return a;let s=e.charCodeAt(o);if(s!==34&&s!==39&&s!==40)return a;t++,o++,s===40&&(s=41),a.marker=s}for(;o<n;){if(i=e.charCodeAt(o),i===a.marker)return a.pos=o+1,a.str+=J_(e.slice(t,o)),a.ok=!0,a;if(i===40&&a.marker===41)return a;i===92&&o+1<n&&o++,o++}return a.can_continue=!0,a.str+=J_(e.slice(t,o)),a}const yvn=Object.freeze(Object.defineProperty({__proto__:null,parseLinkDestination:vvn,parseLinkLabel:gvn,parseLinkTitle:bvn},Symbol.toStringTag,{value:"Module"})),Zf={};Zf.code_inline=function(e,t,n,r,i){const o=e[t];return"<code"+i.renderAttrs(o)+">"+Eg(o.content)+"</code>"};Zf.code_block=function(e,t,n,r,i){const o=e[t];return"<pre"+i.renderAttrs(o)+"><code>"+Eg(e[t].content)+`</code></pre>
`};Zf.fence=function(e,t,n,r,i){const o=e[t],a=o.info?J_(o.info).trim():"";let s="",l="";if(a){const u=a.split(/(\s+)/g);s=u[0],l=u.slice(2).join("")}let c;if(n.highlight?c=n.highlight(o.content,s,l)||Eg(o.content):c=Eg(o.content),c.indexOf("<pre")===0)return c+`
`;if(a){const u=o.attrIndex("class"),d=o.attrs?o.attrs.slice():[];u<0?d.push(["class",n.langPrefix+s]):(d[u]=d[u].slice(),d[u][1]+=" "+n.langPrefix+s);const f={attrs:d};return`<pre><code${i.renderAttrs(f)}>${c}</code></pre>
`}return`<pre><code${i.renderAttrs(o)}>${c}</code></pre>
`};Zf.image=function(e,t,n,r,i){const o=e[t];return o.attrs[o.attrIndex("alt")][1]=i.renderInlineAsText(o.children,n,r),i.renderToken(e,t,n)};Zf.hardbreak=function(e,t,n){return n.xhtmlOut?`<br />
`:`<br>
`};Zf.softbreak=function(e,t,n){return n.breaks?n.xhtmlOut?`<br />
`:`<br>
`:`
`};Zf.text=function(e,t){return Eg(e[t].content)};Zf.html_block=function(e,t){return e[t].content};Zf.html_inline=function(e,t){return e[t].content};function lE(){this.rules=v9({},Zf)}lE.prototype.renderAttrs=function(e){let t,n,r;if(!e.attrs)return"";for(r="",t=0,n=e.attrs.length;t<n;t++)r+=" "+Eg(e.attrs[t][0])+'="'+Eg(e.attrs[t][1])+'"';return r};lE.prototype.renderToken=function(e,t,n){const r=e[t];let i="";if(r.hidden)return"";r.block&&r.nesting!==-1&&t&&e[t-1].hidden&&(i+=`
`),i+=(r.nesting===-1?"</":"<")+r.tag,i+=this.renderAttrs(r),r.nesting===0&&n.xhtmlOut&&(i+=" /");let o=!1;if(r.block&&(o=!0,r.nesting===1&&t+1<e.length)){const a=e[t+1];(a.type==="inline"||a.hidden||a.nesting===-1&&a.tag===r.tag)&&(o=!1)}return i+=o?`>
`:">",i};lE.prototype.renderInline=function(e,t,n){let r="";const i=this.rules;for(let o=0,a=e.length;o<a;o++){const s=e[o].type;typeof i[s]<"u"?r+=i[s](e,o,t,n,this):r+=this.renderToken(e,o,t)}return r};lE.prototype.renderInlineAsText=function(e,t,n){let r="";for(let i=0,o=e.length;i<o;i++)switch(e[i].type){case"text":r+=e[i].content;break;case"image":r+=this.renderInlineAsText(e[i].children,t,n);break;case"html_inline":case"html_block":r+=e[i].content;break;case"softbreak":case"hardbreak":r+=`
`;break}return r};lE.prototype.render=function(e,t,n){let r="";const i=this.rules;for(let o=0,a=e.length;o<a;o++){const s=e[o].type;s==="inline"?r+=this.renderInline(e[o].children,t,n):typeof i[s]<"u"?r+=i[s](e,o,t,n,this):r+=this.renderToken(e,o,t,n)}return r};function Dl(){this.__rules__=[],this.__cache__=null}Dl.prototype.__find__=function(e){for(let t=0;t<this.__rules__.length;t++)if(this.__rules__[t].name===e)return t;return-1};Dl.prototype.__compile__=function(){const e=this,t=[""];e.__rules__.forEach(function(n){n.enabled&&n.alt.forEach(function(r){t.indexOf(r)<0&&t.push(r)})}),e.__cache__={},t.forEach(function(n){e.__cache__[n]=[],e.__rules__.forEach(function(r){r.enabled&&(n&&r.alt.indexOf(n)<0||e.__cache__[n].push(r.fn))})})};Dl.prototype.at=function(e,t,n){const r=this.__find__(e),i=n||{};if(r===-1)throw new Error("Parser rule not found: "+e);this.__rules__[r].fn=t,this.__rules__[r].alt=i.alt||[],this.__cache__=null};Dl.prototype.before=function(e,t,n,r){const i=this.__find__(e),o=r||{};if(i===-1)throw new Error("Parser rule not found: "+e);this.__rules__.splice(i,0,{name:t,enabled:!0,fn:n,alt:o.alt||[]}),this.__cache__=null};Dl.prototype.after=function(e,t,n,r){const i=this.__find__(e),o=r||{};if(i===-1)throw new Error("Parser rule not found: "+e);this.__rules__.splice(i+1,0,{name:t,enabled:!0,fn:n,alt:o.alt||[]}),this.__cache__=null};Dl.prototype.push=function(e,t,n){const r=n||{};this.__rules__.push({name:e,enabled:!0,fn:t,alt:r.alt||[]}),this.__cache__=null};Dl.prototype.enable=function(e,t){Array.isArray(e)||(e=[e]);const n=[];return e.forEach(function(r){const i=this.__find__(r);if(i<0){if(t)return;throw new Error("Rules manager: invalid rule name "+r)}this.__rules__[i].enabled=!0,n.push(r)},this),this.__cache__=null,n};Dl.prototype.enableOnly=function(e,t){Array.isArray(e)||(e=[e]),this.__rules__.forEach(function(n){n.enabled=!1}),this.enable(e,t)};Dl.prototype.disable=function(e,t){Array.isArray(e)||(e=[e]);const n=[];return e.forEach(function(r){const i=this.__find__(r);if(i<0){if(t)return;throw new Error("Rules manager: invalid rule name "+r)}this.__rules__[i].enabled=!1,n.push(r)},this),this.__cache__=null,n};Dl.prototype.getRules=function(e){return this.__cache__===null&&this.__compile__(),this.__cache__[e]||[]};function Vd(e,t,n){this.type=e,this.tag=t,this.attrs=null,this.map=null,this.nesting=n,this.level=0,this.children=null,this.content="",this.markup="",this.info="",this.meta=null,this.block=!1,this.hidden=!1}Vd.prototype.attrIndex=function(e){if(!this.attrs)return-1;const t=this.attrs;for(let n=0,r=t.length;n<r;n++)if(t[n][0]===e)return n;return-1};Vd.prototype.attrPush=function(e){this.attrs?this.attrs.push(e):this.attrs=[e]};Vd.prototype.attrSet=function(e,t){const n=this.attrIndex(e),r=[e,t];n<0?this.attrPush(r):this.attrs[n]=r};Vd.prototype.attrGet=function(e){const t=this.attrIndex(e);let n=null;return t>=0&&(n=this.attrs[t][1]),n};Vd.prototype.attrJoin=function(e,t){const n=this.attrIndex(e);n<0?this.attrPush([e,t]):this.attrs[n][1]=this.attrs[n][1]+" "+t};function m5e(e,t,n){this.src=e,this.env=n,this.tokens=[],this.inlineMode=!1,this.md=t}m5e.prototype.Token=Vd;const _vn=/\r\n?|\n/g,Svn=/\0/g;function Evn(e){let t;t=e.src.replace(_vn,`
`),t=t.replace(Svn,"<22>"),e.src=t}function Cvn(e){let t;e.inlineMode?(t=new e.Token("inline","",0),t.content=e.src,t.map=[0,1],t.children=[],e.tokens.push(t)):e.md.block.parse(e.src,e.md,e.env,e.tokens)}function wvn(e){const t=e.tokens;for(let n=0,r=t.length;n<r;n++){const i=t[n];i.type==="inline"&&e.md.inline.parse(i.content,e.md,e.env,i.children)}}function Tvn(e){return/^<a[>\s]/i.test(e)}function xvn(e){return/^<\/a\s*>/i.test(e)}function Ovn(e){const t=e.tokens;if(e.md.options.linkify)for(let n=0,r=t.length;n<r;n++){if(t[n].type!=="inline"||!e.md.linkify.pretest(t[n].content))continue;let i=t[n].children,o=0;for(let a=i.length-1;a>=0;a--){const s=i[a];if(s.type==="link_close"){for(a--;i[a].level!==s.level&&i[a].type!=="link_open";)a--;continue}if(s.type==="html_inline"&&(Tvn(s.content)&&o>0&&o--,xvn(s.content)&&o++),!(o>0)&&s.type==="text"&&e.md.linkify.test(s.content)){const l=s.content;let c=e.md.linkify.match(l);const u=[];let d=s.level,f=0;c.length>0&&c[0].index===0&&a>0&&i[a-1].type==="text_special"&&(c=c.slice(1));for(let h=0;h<c.length;h++){const m=c[h].url,g=e.md.normalizeLink(m);if(!e.md.validateLink(g))continue;let v=c[h].text;c[h].schema?c[h].schema==="mailto:"&&!/^mailto:/i.test(v)?v=e.md.normalizeLinkText("mailto:"+v).replace(/^mailto:/,""):v=e.md.normalizeLinkText(v):v=e.md.normalizeLinkText("http://"+v).replace(/^http:\/\//,"");const y=c[h].index;if(y>f){const w=new e.Token("text","",0);w.content=l.slice(f,y),w.level=d,u.push(w)}const b=new e.Token("link_open","a",1);b.attrs=[["href",g]],b.level=d++,b.markup="linkify",b.info="auto",u.push(b);const _=new e.Token("text","",0);_.content=v,_.level=d,u.push(_);const E=new e.Token("link_close","a",-1);E.level=--d,E.markup="linkify",E.info="auto",u.push(E),f=c[h].lastIndex}if(f<l.length){const h=new e.Token("text","",0);h.content=l.slice(f),h.level=d,u.push(h)}t[n].children=i=p5e(i,a,u)}}}}const g5e=/\+-|\.\.|\?\?\?\?|!!!!|,,|--/,Rvn=/\((c|tm|r)\)/i,Ivn=/\((c|tm|r)\)/ig,Avn={c:"©",r:"®",tm:"™"};function Nvn(e,t){return Avn[t.toLowerCase()]}function Mvn(e){let t=0;for(let n=e.length-1;n>=0;n--){const r=e[n];r.type==="text"&&!t&&(r.content=r.content.replace(Ivn,Nvn)),r.type==="link_open"&&r.info==="auto"&&t--,r.type==="link_close"&&r.info==="auto"&&t++}}function kvn(e){let t=0;for(let n=e.length-1;n>=0;n--){const r=e[n];r.type==="text"&&!t&&g5e.test(r.content)&&(r.content=r.content.replace(/\+-/g,"±").replace(/\.{2,}/g,"…").replace(/([?!])…/g,"$1..").replace(/([?!]){4,}/g,"$1$1$1").replace(/,{2,}/g,",").replace(/(^|[^-])---(?=[^-]|$)/mg,"$1—").replace(/(^|\s)--(?=\s|$)/mg,"$1").replace(/(^|[^-\s])--(?=[^-\s]|$)/mg,"$1")),r.type==="link_open"&&r.info==="auto"&&t--,r.type==="link_close"&&r.info==="auto"&&t++}}function Pvn(e){let t;if(e.md.options.typographer)for(t=e.tokens.length-1;t>=0;t--)e.tokens[t].type==="inline"&&(Rvn.test(e.tokens[t].content)&&Mvn(e.tokens[t].children),g5e.test(e.tokens[t].content)&&kvn(e.tokens[t].children))}const Dvn=/['"]/,npe=/['"]/g,rpe="";function wI(e,t,n){return e.slice(0,t)+n+e.slice(t+1)}function Lvn(e,t){let n;const r=[];for(let i=0;i<e.length;i++){const o=e[i],a=e[i].level;for(n=r.length-1;n>=0&&!(r[n].level<=a);n--);if(r.length=n+1,o.type!=="text")continue;let s=o.content,l=0,c=s.length;e:for(;l<c;){npe.lastIndex=l;const u=npe.exec(s);if(!u)break;let d=!0,f=!0;l=u.index+1;const h=u[0]==="'";let m=32;if(u.index-1>=0)m=s.charCodeAt(u.index-1);else for(n=i-1;n>=0&&!(e[n].type==="softbreak"||e[n].type==="hardbreak");n--)if(e[n].content){m=e[n].content.charCodeAt(e[n].content.length-1);break}let g=32;if(l<c)g=s.charCodeAt(l);else for(n=i+1;n<e.length&&!(e[n].type==="softbreak"||e[n].type==="hardbreak");n++)if(e[n].content){g=e[n].content.charCodeAt(0);break}const v=Ex(m)||Sx(String.fromCharCode(m)),y=Ex(g)||Sx(String.fromCharCode(g)),b=_x(m),_=_x(g);if(_?d=!1:y&&(b||v||(d=!1)),b?f=!1:v&&(_||y||(f=!1)),g===34&&u[0]==='"'&&m>=48&&m<=57&&(f=d=!1),d&&f&&(d=v,f=y),!d&&!f){h&&(o.content=wI(o.content,u.index,rpe));continue}if(f)for(n=r.length-1;n>=0;n--){let E=r[n];if(r[n].level<a)break;if(E.single===h&&r[n].level===a){E=r[n];let w,S;h?(w=t.md.options.quotes[2],S=t.md.options.quotes[3]):(w=t.md.options.quotes[0],S=t.md.options.quotes[1]),o.content=wI(o.content,u.index,S),e[E.token].content=wI(e[E.token].content,E.pos,w),l+=S.length-1,E.token===i&&(l+=w.length-1),s=o.content,c=s.length,r.length=n;continue e}}d?r.push({token:i,pos:u.index,single:h,level:a}):f&&h&&(o.content=wI(o.content,u.index,rpe))}}}function $vn(e){if(e.md.options.typographer)for(let t=e.tokens.length-1;t>=0;t--)e.tokens[t].type!=="inline"||!Dvn.test(e.tokens[t].content)||Lvn(e.tokens[t].children,e)}function Fvn(e){let t,n;const r=e.tokens,i=r.length;for(let o=0;o<i;o++){if(r[o].type!=="inline")continue;const a=r[o].children,s=a.length;for(t=0;t<s;t++)a[t].type==="text_special"&&(a[t].type="text");for(t=n=0;t<s;t++)a[t].type==="text"&&t+1<s&&a[t+1].type==="text"?a[t+1].content=a[t].content+a[t+1].content:(t!==n&&(a[n]=a[t]),n++);t!==n&&(a.length=n)}}const U6=[["normalize",Evn],["block",Cvn],["inline",wvn],["linkify",Ovn],["replacements",Pvn],["smartquotes",$vn],["text_join",Fvn]];function LX(){this.ruler=new Dl;for(let e=0;e<U6.length;e++)this.ruler.push(U6[e][0],U6[e][1])}LX.prototype.process=function(e){const t=this.ruler.getRules("");for(let n=0,r=t.length;n<r;n++)t[n](e)};LX.prototype.State=m5e;function Jf(e,t,n,r){this.src=e,this.md=t,this.env=n,this.tokens=r,this.bMarks=[],this.eMarks=[],this.tShift=[],this.sCount=[],this.bsCount=[],this.blkIndent=0,this.line=0,this.lineMax=0,this.tight=!1,this.ddIndent=-1,this.listIndent=-1,this.parentType="root",this.level=0;const i=this.src;for(let o=0,a=0,s=0,l=0,c=i.length,u=!1;a<c;a++){const d=i.charCodeAt(a);if(!u)if(Qi(d)){s++,d===9?l+=4-l%4:l++;continue}else u=!0;(d===10||a===c-1)&&(d!==10&&a++,this.bMarks.push(o),this.eMarks.push(a),this.tShift.push(s),this.sCount.push(l),this.bsCount.push(0),u=!1,s=0,l=0,o=a+1)}this.bMarks.push(i.length),this.eMarks.push(i.length),this.tShift.push(0),this.sCount.push(0),this.bsCount.push(0),this.lineMax=this.bMarks.length-1}Jf.prototype.push=function(e,t,n){const r=new Vd(e,t,n);return r.block=!0,n<0&&this.level--,r.level=this.level,n>0&&this.level++,this.tokens.push(r),r};Jf.prototype.isEmpty=function(e){return this.bMarks[e]+this.tShift[e]>=this.eMarks[e]};Jf.prototype.skipEmptyLines=function(e){for(let t=this.lineMax;e<t&&!(this.bMarks[e]+this.tShift[e]<this.eMarks[e]);e++);return e};Jf.prototype.skipSpaces=function(e){for(let t=this.src.length;e<t;e++){const n=this.src.charCodeAt(e);if(!Qi(n))break}return e};Jf.prototype.skipSpacesBack=function(e,t){if(e<=t)return e;for(;e>t;)if(!Qi(this.src.charCodeAt(--e)))return e+1;return e};Jf.prototype.skipChars=function(e,t){for(let n=this.src.length;e<n&&this.src.charCodeAt(e)===t;e++);return e};Jf.prototype.skipCharsBack=function(e,t,n){if(e<=n)return e;for(;e>n;)if(t!==this.src.charCodeAt(--e))return e+1;return e};Jf.prototype.getLines=function(e,t,n,r){if(e>=t)return"";const i=new Array(t-e);for(let o=0,a=e;a<t;a++,o++){let s=0;const l=this.bMarks[a];let c=l,u;for(a+1<t||r?u=this.eMarks[a]+1:u=this.eMarks[a];c<u&&s<n;){const d=this.src.charCodeAt(c);if(Qi(d))d===9?s+=4-(s+this.bsCount[a])%4:s++;else if(c-l<this.tShift[a])s++;else break;c++}s>n?i[o]=new Array(s-n+1).join(" ")+this.src.slice(c,u):i[o]=this.src.slice(c,u)}return i.join("")};Jf.prototype.Token=Vd;const Bvn=65536;function z6(e,t){const n=e.bMarks[t]+e.tShift[t],r=e.eMarks[t];return e.src.slice(n,r)}function ipe(e){const t=[],n=e.length;let r=0,i=e.charCodeAt(r),o=!1,a=0,s="";for(;r<n;)i===124&&(o?(s+=e.substring(a,r-1),a=r):(t.push(s+e.substring(a,r)),s="",a=r+1)),o=i===92,r++,i=e.charCodeAt(r);return t.push(s+e.substring(a)),t}function jvn(e,t,n,r){if(t+2>n)return!1;let i=t+1;if(e.sCount[i]<e.blkIndent||e.sCount[i]-e.blkIndent>=4)return!1;let o=e.bMarks[i]+e.tShift[i];if(o>=e.eMarks[i])return!1;const a=e.src.charCodeAt(o++);if(a!==124&&a!==45&&a!==58||o>=e.eMarks[i])return!1;const s=e.src.charCodeAt(o++);if(s!==124&&s!==45&&s!==58&&!Qi(s)||a===45&&Qi(s))return!1;for(;o<e.eMarks[i];){const E=e.src.charCodeAt(o);if(E!==124&&E!==45&&E!==58&&!Qi(E))return!1;o++}let l=z6(e,t+1),c=l.split("|");const u=[];for(let E=0;E<c.length;E++){const w=c[E].trim();if(!w){if(E===0||E===c.length-1)continue;return!1}if(!/^:?-+:?$/.test(w))return!1;w.charCodeAt(w.length-1)===58?u.push(w.charCodeAt(0)===58?"center":"right"):w.charCodeAt(0)===58?u.push("left"):u.push("")}if(l=z6(e,t).trim(),l.indexOf("|")===-1||e.sCount[t]-e.blkIndent>=4)return!1;c=ipe(l),c.length&&c[0]===""&&c.shift(),c.length&&c[c.length-1]===""&&c.pop();const d=c.length;if(d===0||d!==u.length)return!1;if(r)return!0;const f=e.parentType;e.parentType="table";const h=e.md.block.ruler.getRules("blockquote"),m=e.push("table_open","table",1),g=[t,0];m.map=g;const v=e.push("thead_open","thead",1);v.map=[t,t+1];const y=e.push("tr_open","tr",1);y.map=[t,t+1];for(let E=0;E<c.length;E++){const w=e.push("th_open","th",1);u[E]&&(w.attrs=[["style","text-align:"+u[E]]]);const S=e.push("inline","",0);S.content=c[E].trim(),S.children=[],e.push("th_close","th",-1)}e.push("tr_close","tr",-1),e.push("thead_close","thead",-1);let b,_=0;for(i=t+2;i<n&&!(e.sCount[i]<e.blkIndent);i++){let E=!1;for(let S=0,C=h.length;S<C;S++)if(h[S](e,i,n,!0)){E=!0;break}if(E||(l=z6(e,i).trim(),!l)||e.sCount[i]-e.blkIndent>=4||(c=ipe(l),c.length&&c[0]===""&&c.shift(),c.length&&c[c.length-1]===""&&c.pop(),_+=d-c.length,_>Bvn))break;if(i===t+2){const S=e.push("tbody_open","tbody",1);S.map=b=[t+2,0]}const w=e.push("tr_open","tr",1);w.map=[i,i+1];for(let S=0;S<d;S++){const C=e.push("td_open","td",1);u[S]&&(C.attrs=[["style","text-align:"+u[S]]]);const T=e.push("inline","",0);T.content=c[S]?c[S].trim():"",T.children=[],e.push("td_close","td",-1)}e.push("tr_close","tr",-1)}return b&&(e.push("tbody_close","tbody",-1),b[1]=i),e.push("table_close","table",-1),g[1]=i,e.parentType=f,e.line=i,!0}function Hvn(e,t,n){if(e.sCount[t]-e.blkIndent<4)return!1;let r=t+1,i=r;for(;r<n;){if(e.isEmpty(r)){r++;continue}if(e.sCount[r]-e.blkIndent>=4){r++,i=r;continue}break}e.line=i;const o=e.push("code_block","code",0);return o.content=e.getLines(t,i,4+e.blkIndent,!1)+`
`,o.map=[t,e.line],!0}function Uvn(e,t,n,r){let i=e.bMarks[t]+e.tShift[t],o=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4||i+3>o)return!1;const a=e.src.charCodeAt(i);if(a!==126&&a!==96)return!1;let s=i;i=e.skipChars(i,a);let l=i-s;if(l<3)return!1;const c=e.src.slice(s,i),u=e.src.slice(i,o);if(a===96&&u.indexOf(String.fromCharCode(a))>=0)return!1;if(r)return!0;let d=t,f=!1;for(;d++,!(d>=n||(i=s=e.bMarks[d]+e.tShift[d],o=e.eMarks[d],i<o&&e.sCount[d]<e.blkIndent));)if(e.src.charCodeAt(i)===a&&!(e.sCount[d]-e.blkIndent>=4)&&(i=e.skipChars(i,a),!(i-s<l)&&(i=e.skipSpaces(i),!(i<o)))){f=!0;break}l=e.sCount[t],e.line=d+(f?1:0);const h=e.push("fence","code",0);return h.info=u,h.content=e.getLines(t+1,d,l,!0),h.markup=c,h.map=[t,e.line],!0}function zvn(e,t,n,r){let i=e.bMarks[t]+e.tShift[t],o=e.eMarks[t];const a=e.lineMax;if(e.sCount[t]-e.blkIndent>=4||e.src.charCodeAt(i)!==62)return!1;if(r)return!0;const s=[],l=[],c=[],u=[],d=e.md.block.ruler.getRules("blockquote"),f=e.parentType;e.parentType="blockquote";let h=!1,m;for(m=t;m<n;m++){const _=e.sCount[m]<e.blkIndent;if(i=e.bMarks[m]+e.tShift[m],o=e.eMarks[m],i>=o)break;if(e.src.charCodeAt(i++)===62&&!_){let w=e.sCount[m]+1,S,C;e.src.charCodeAt(i)===32?(i++,w++,C=!1,S=!0):e.src.charCodeAt(i)===9?(S=!0,(e.bsCount[m]+w)%4===3?(i++,w++,C=!1):C=!0):S=!1;let T=w;for(s.push(e.bMarks[m]),e.bMarks[m]=i;i<o;){const x=e.src.charCodeAt(i);if(Qi(x))x===9?T+=4-(T+e.bsCount[m]+(C?1:0))%4:T++;else break;i++}h=i>=o,l.push(e.bsCount[m]),e.bsCount[m]=e.sCount[m]+1+(S?1:0),c.push(e.sCount[m]),e.sCount[m]=T-w,u.push(e.tShift[m]),e.tShift[m]=i-e.bMarks[m];continue}if(h)break;let E=!1;for(let w=0,S=d.length;w<S;w++)if(d[w](e,m,n,!0)){E=!0;break}if(E){e.lineMax=m,e.blkIndent!==0&&(s.push(e.bMarks[m]),l.push(e.bsCount[m]),u.push(e.tShift[m]),c.push(e.sCount[m]),e.sCount[m]-=e.blkIndent);break}s.push(e.bMarks[m]),l.push(e.bsCount[m]),u.push(e.tShift[m]),c.push(e.sCount[m]),e.sCount[m]=-1}const g=e.blkIndent;e.blkIndent=0;const v=e.push("blockquote_open","blockquote",1);v.markup=">";const y=[t,0];v.map=y,e.md.block.tokenize(e,t,m);const b=e.push("blockquote_close","blockquote",-1);b.markup=">",e.lineMax=a,e.parentType=f,y[1]=e.line;for(let _=0;_<u.length;_++)e.bMarks[_+t]=s[_],e.tShift[_+t]=u[_],e.sCount[_+t]=c[_],e.bsCount[_+t]=l[_];return e.blkIndent=g,!0}function Vvn(e,t,n,r){const i=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;let o=e.bMarks[t]+e.tShift[t];const a=e.src.charCodeAt(o++);if(a!==42&&a!==45&&a!==95)return!1;let s=1;for(;o<i;){const c=e.src.charCodeAt(o++);if(c!==a&&!Qi(c))return!1;c===a&&s++}if(s<3)return!1;if(r)return!0;e.line=t+1;const l=e.push("hr","hr",0);return l.map=[t,e.line],l.markup=Array(s+1).join(String.fromCharCode(a)),!0}function ope(e,t){const n=e.eMarks[t];let r=e.bMarks[t]+e.tShift[t];const i=e.src.charCodeAt(r++);if(i!==42&&i!==45&&i!==43)return-1;if(r<n){const o=e.src.charCodeAt(r);if(!Qi(o))return-1}return r}function ape(e,t){const n=e.bMarks[t]+e.tShift[t],r=e.eMarks[t];let i=n;if(i+1>=r)return-1;let o=e.src.charCodeAt(i++);if(o<48||o>57)return-1;for(;;){if(i>=r)return-1;if(o=e.src.charCodeAt(i++),o>=48&&o<=57){if(i-n>=10)return-1;continue}if(o===41||o===46)break;return-1}return i<r&&(o=e.src.charCodeAt(i),!Qi(o))?-1:i}function Gvn(e,t){const n=e.level+2;for(let r=t+2,i=e.tokens.length-2;r<i;r++)e.tokens[r].level===n&&e.tokens[r].type==="paragraph_open"&&(e.tokens[r+2].hidden=!0,e.tokens[r].hidden=!0,r+=2)}function Wvn(e,t,n,r){let i,o,a,s,l=t,c=!0;if(e.sCount[l]-e.blkIndent>=4||e.listIndent>=0&&e.sCount[l]-e.listIndent>=4&&e.sCount[l]<e.blkIndent)return!1;let u=!1;r&&e.parentType==="paragraph"&&e.sCount[l]>=e.blkIndent&&(u=!0);let d,f,h;if((h=ape(e,l))>=0){if(d=!0,a=e.bMarks[l]+e.tShift[l],f=Number(e.src.slice(a,h-1)),u&&f!==1)return!1}else if((h=ope(e,l))>=0)d=!1;else return!1;if(u&&e.skipSpaces(h)>=e.eMarks[l])return!1;if(r)return!0;const m=e.src.charCodeAt(h-1),g=e.tokens.length;d?(s=e.push("ordered_list_open","ol",1),f!==1&&(s.attrs=[["start",f]])):s=e.push("bullet_list_open","ul",1);const v=[l,0];s.map=v,s.markup=String.fromCharCode(m);let y=!1;const b=e.md.block.ruler.getRules("list"),_=e.parentType;for(e.parentType="list";l<n;){o=h,i=e.eMarks[l];const E=e.sCount[l]+h-(e.bMarks[l]+e.tShift[l]);let w=E;for(;o<i;){const k=e.src.charCodeAt(o);if(k===9)w+=4-(w+e.bsCount[l])%4;else if(k===32)w++;else break;o++}const S=o;let C;S>=i?C=1:C=w-E,C>4&&(C=1);const T=E+C;s=e.push("list_item_open","li",1),s.markup=String.fromCharCode(m);const x=[l,0];s.map=x,d&&(s.info=e.src.slice(a,h-1));const O=e.tight,N=e.tShift[l],I=e.sCount[l],M=e.listIndent;if(e.listIndent=e.blkIndent,e.blkIndent=T,e.tight=!0,e.tShift[l]=S-e.bMarks[l],e.sCount[l]=w,S>=i&&e.isEmpty(l+1)?e.line=Math.min(e.line+2,n):e.md.block.tokenize(e,l,n,!0),(!e.tight||y)&&(c=!1),y=e.line-l>1&&e.isEmpty(e.line-1),e.blkIndent=e.listIndent,e.listIndent=M,e.tShift[l]=N,e.sCount[l]=I,e.tight=O,s=e.push("list_item_close","li",-1),s.markup=String.fromCharCode(m),l=e.line,x[1]=l,l>=n||e.sCount[l]<e.blkIndent||e.sCount[l]-e.blkIndent>=4)break;let F=!1;for(let k=0,B=b.length;k<B;k++)if(b[k](e,l,n,!0)){F=!0;break}if(F)break;if(d){if(h=ape(e,l),h<0)break;a=e.bMarks[l]+e.tShift[l]}else if(h=ope(e,l),h<0)break;if(m!==e.src.charCodeAt(h-1))break}return d?s=e.push("ordered_list_close","ol",-1):s=e.push("bullet_list_close","ul",-1),s.markup=String.fromCharCode(m),v[1]=l,e.line=l,e.parentType=_,c&&Gvn(e,g),!0}function qvn(e,t,n,r){let i=e.bMarks[t]+e.tShift[t],o=e.eMarks[t],a=t+1;if(e.sCount[t]-e.blkIndent>=4||e.src.charCodeAt(i)!==91)return!1;function s(b){const _=e.lineMax;if(b>=_||e.isEmpty(b))return null;let E=!1;if(e.sCount[b]-e.blkIndent>3&&(E=!0),e.sCount[b]<0&&(E=!0),!E){const C=e.md.block.ruler.getRules("reference"),T=e.parentType;e.parentType="reference";let x=!1;for(let O=0,N=C.length;O<N;O++)if(C[O](e,b,_,!0)){x=!0;break}if(e.parentType=T,x)return null}const w=e.bMarks[b]+e.tShift[b],S=e.eMarks[b];return e.src.slice(w,S+1)}let l=e.src.slice(i,o+1);o=l.length;let c=-1;for(i=1;i<o;i++){const b=l.charCodeAt(i);if(b===91)return!1;if(b===93){c=i;break}else if(b===10){const _=s(a);_!==null&&(l+=_,o=l.length,a++)}else if(b===92&&(i++,i<o&&l.charCodeAt(i)===10)){const _=s(a);_!==null&&(l+=_,o=l.length,a++)}}if(c<0||l.charCodeAt(c+1)!==58)return!1;for(i=c+2;i<o;i++){const b=l.charCodeAt(i);if(b===10){const _=s(a);_!==null&&(l+=_,o=l.length,a++)}else if(!Qi(b))break}const u=e.md.helpers.parseLinkDestination(l,i,o);if(!u.ok)return!1;const d=e.md.normalizeLink(u.str);if(!e.md.validateLink(d))return!1;i=u.pos;const f=i,h=a,m=i;for(;i<o;i++){const b=l.charCodeAt(i);if(b===10){const _=s(a);_!==null&&(l+=_,o=l.length,a++)}else if(!Qi(b))break}let g=e.md.helpers.parseLinkTitle(l,i,o);for(;g.can_continue;){const b=s(a);if(b===null)break;l+=b,i=o,o=l.length,a++,g=e.md.helpers.parseLinkTitle(l,i,o,g)}let v;for(i<o&&m!==i&&g.ok?(v=g.str,i=g.pos):(v="",i=f,a=h);i<o;){const b=l.charCodeAt(i);if(!Qi(b))break;i++}if(i<o&&l.charCodeAt(i)!==10&&v)for(v="",i=f,a=h;i<o;){const b=l.charCodeAt(i);if(!Qi(b))break;i++}if(i<o&&l.charCodeAt(i)!==10)return!1;const y=b9(l.slice(1,c));return y?(r||(typeof e.env.references>"u"&&(e.env.references={}),typeof e.env.references[y]>"u"&&(e.env.references[y]={title:v,href:d}),e.line=a),!0):!1}const Yvn=["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"],Kvn="[a-zA-Z_:][a-zA-Z0-9:._-]*",Qvn="[^\"'=<>`\\x00-\\x20]+",Xvn="'[^']*'",Zvn='"[^"]*"',Jvn="(?:"+Qvn+"|"+Xvn+"|"+Zvn+")",e0n="(?:\\s+"+Kvn+"(?:\\s*=\\s*"+Jvn+")?)",v5e="<[A-Za-z][A-Za-z0-9\\-]*"+e0n+"*\\s*\\/?>",b5e="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",t0n="<!---?>|<!--(?:[^-]|-[^-]|--[^>])*-->",n0n="<[?][\\s\\S]*?[?]>",r0n="<![A-Za-z][^>]*>",i0n="<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",o0n=new RegExp("^(?:"+v5e+"|"+b5e+"|"+t0n+"|"+n0n+"|"+r0n+"|"+i0n+")"),a0n=new RegExp("^(?:"+v5e+"|"+b5e+")"),_b=[[/^<(script|pre|style|textarea)(?=(\s|>|$))/i,/<\/(script|pre|style|textarea)>/i,!0],[/^<!--/,/-->/,!0],[/^<\?/,/\?>/,!0],[/^<![A-Z]/,/>/,!0],[/^<!\[CDATA\[/,/\]\]>/,!0],[new RegExp("^</?("+Yvn.join("|")+")(?=(\\s|/?>|$))","i"),/^$/,!0],[new RegExp(a0n.source+"\\s*$"),/^$/,!1]];function s0n(e,t,n,r){let i=e.bMarks[t]+e.tShift[t],o=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4||!e.md.options.html||e.src.charCodeAt(i)!==60)return!1;let a=e.src.slice(i,o),s=0;for(;s<_b.length&&!_b[s][0].test(a);s++);if(s===_b.length)return!1;if(r)return _b[s][2];let l=t+1;if(!_b[s][1].test(a)){for(;l<n&&!(e.sCount[l]<e.blkIndent);l++)if(i=e.bMarks[l]+e.tShift[l],o=e.eMarks[l],a=e.src.slice(i,o),_b[s][1].test(a)){a.length!==0&&l++;break}}e.line=l;const c=e.push("html_block","",0);return c.map=[t,l],c.content=e.getLines(t,l,e.blkIndent,!0),!0}function l0n(e,t,n,r){let i=e.bMarks[t]+e.tShift[t],o=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;let a=e.src.charCodeAt(i);if(a!==35||i>=o)return!1;let s=1;for(a=e.src.charCodeAt(++i);a===35&&i<o&&s<=6;)s++,a=e.src.charCodeAt(++i);if(s>6||i<o&&!Qi(a))return!1;if(r)return!0;o=e.skipSpacesBack(o,i);const l=e.skipCharsBack(o,35,i);l>i&&Qi(e.src.charCodeAt(l-1))&&(o=l),e.line=t+1;const c=e.push("heading_open","h"+String(s),1);c.markup="########".slice(0,s),c.map=[t,e.line];const u=e.push("inline","",0);u.content=e.src.slice(i,o).trim(),u.map=[t,e.line],u.children=[];const d=e.push("heading_close","h"+String(s),-1);return d.markup="########".slice(0,s),!0}function c0n(e,t,n){const r=e.md.block.ruler.getRules("paragraph");if(e.sCount[t]-e.blkIndent>=4)return!1;const i=e.parentType;e.parentType="paragraph";let o=0,a,s=t+1;for(;s<n&&!e.isEmpty(s);s++){if(e.sCount[s]-e.blkIndent>3)continue;if(e.sCount[s]>=e.blkIndent){let h=e.bMarks[s]+e.tShift[s];const m=e.eMarks[s];if(h<m&&(a=e.src.charCodeAt(h),(a===45||a===61)&&(h=e.skipChars(h,a),h=e.skipSpaces(h),h>=m))){o=a===61?1:2;break}}if(e.sCount[s]<0)continue;let f=!1;for(let h=0,m=r.length;h<m;h++)if(r[h](e,s,n,!0)){f=!0;break}if(f)break}if(!o)return!1;const l=e.getLines(t,s,e.blkIndent,!1).trim();e.line=s+1;const c=e.push("heading_open","h"+String(o),1);c.markup=String.fromCharCode(a),c.map=[t,e.line];const u=e.push("inline","",0);u.content=l,u.map=[t,e.line-1],u.children=[];const d=e.push("heading_close","h"+String(o),-1);return d.markup=String.fromCharCode(a),e.parentType=i,!0}function u0n(e,t,n){const r=e.md.block.ruler.getRules("paragraph"),i=e.parentType;let o=t+1;for(e.parentType="paragraph";o<n&&!e.isEmpty(o);o++){if(e.sCount[o]-e.blkIndent>3||e.sCount[o]<0)continue;let c=!1;for(let u=0,d=r.length;u<d;u++)if(r[u](e,o,n,!0)){c=!0;break}if(c)break}const a=e.getLines(t,o,e.blkIndent,!1).trim();e.line=o;const s=e.push("paragraph_open","p",1);s.map=[t,e.line];const l=e.push("inline","",0);return l.content=a,l.map=[t,e.line],l.children=[],e.push("paragraph_close","p",-1),e.parentType=i,!0}const TI=[["table",jvn,["paragraph","reference"]],["code",Hvn],["fence",Uvn,["paragraph","reference","blockquote","list"]],["blockquote",zvn,["paragraph","reference","blockquote","list"]],["hr",Vvn,["paragraph","reference","blockquote","list"]],["list",Wvn,["paragraph","reference","blockquote"]],["reference",qvn],["html_block",s0n,["paragraph","reference","blockquote"]],["heading",l0n,["paragraph","reference","blockquote"]],["lheading",c0n],["paragraph",u0n]];function y9(){this.ruler=new Dl;for(let e=0;e<TI.length;e++)this.ruler.push(TI[e][0],TI[e][1],{alt:(TI[e][2]||[]).slice()})}y9.prototype.tokenize=function(e,t,n){const r=this.ruler.getRules(""),i=r.length,o=e.md.options.maxNesting;let a=t,s=!1;for(;a<n&&(e.line=a=e.skipEmptyLines(a),!(a>=n||e.sCount[a]<e.blkIndent));){if(e.level>=o){e.line=n;break}const l=e.line;let c=!1;for(let u=0;u<i;u++)if(c=r[u](e,a,n,!1),c){if(l>=e.line)throw new Error("block rule didn't increment state.line");break}if(!c)throw new Error("none of the block rules matched");e.tight=!s,e.isEmpty(e.line-1)&&(s=!0),a=e.line,a<n&&e.isEmpty(a)&&(s=!0,a++,e.line=a)}};y9.prototype.parse=function(e,t,n,r){if(!e)return;const i=new this.State(e,t,n,r);this.tokenize(i,i.line,i.lineMax)};y9.prototype.State=Jf;function mO(e,t,n,r){this.src=e,this.env=n,this.md=t,this.tokens=r,this.tokens_meta=Array(r.length),this.pos=0,this.posMax=this.src.length,this.level=0,this.pending="",this.pendingLevel=0,this.cache={},this.delimiters=[],this._prev_delimiters=[],this.backticks={},this.backticksScanned=!1,this.linkLevel=0}mO.prototype.pushPending=function(){const e=new Vd("text","",0);return e.content=this.pending,e.level=this.pendingLevel,this.tokens.push(e),this.pending="",e};mO.prototype.push=function(e,t,n){this.pending&&this.pushPending();const r=new Vd(e,t,n);let i=null;return n<0&&(this.level--,this.delimiters=this._prev_delimiters.pop()),r.level=this.level,n>0&&(this.level++,this._prev_delimiters.push(this.delimiters),this.delimiters=[],i={delimiters:this.delimiters}),this.pendingLevel=this.level,this.tokens.push(r),this.tokens_meta.push(i),r};mO.prototype.scanDelims=function(e,t){const n=this.posMax,r=this.src.charCodeAt(e),i=e>0?this.src.charCodeAt(e-1):32;let o=e;for(;o<n&&this.src.charCodeAt(o)===r;)o++;const a=o-e,s=o<n?this.src.charCodeAt(o):32,l=Ex(i)||Sx(String.fromCharCode(i)),c=Ex(s)||Sx(String.fromCharCode(s)),u=_x(i),d=_x(s),f=!d&&(!c||u||l),h=!u&&(!l||d||c);return{can_open:f&&(t||!h||l),can_close:h&&(t||!f||c),length:a}};mO.prototype.Token=Vd;function d0n(e){switch(e){case 10:case 33:case 35:case 36:case 37:case 38:case 42:case 43:case 45:case 58:case 60:case 61:case 62:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 125:case 126:return!0;default:return!1}}function f0n(e,t){let n=e.pos;for(;n<e.posMax&&!d0n(e.src.charCodeAt(n));)n++;return n===e.pos?!1:(t||(e.pending+=e.src.slice(e.pos,n)),e.pos=n,!0)}const p0n=/(?:^|[^a-z0-9.+-])([a-z][a-z0-9.+-]*)$/i;function h0n(e,t){if(!e.md.options.linkify||e.linkLevel>0)return!1;const n=e.pos,r=e.posMax;if(n+3>r||e.src.charCodeAt(n)!==58||e.src.charCodeAt(n+1)!==47||e.src.charCodeAt(n+2)!==47)return!1;const i=e.pending.match(p0n);if(!i)return!1;const o=i[1],a=e.md.linkify.matchAtStart(e.src.slice(n-o.length));if(!a)return!1;let s=a.url;if(s.length<=o.length)return!1;s=s.replace(/\*+$/,"");const l=e.md.normalizeLink(s);if(!e.md.validateLink(l))return!1;if(!t){e.pending=e.pending.slice(0,-o.length);const c=e.push("link_open","a",1);c.attrs=[["href",l]],c.markup="linkify",c.info="auto";const u=e.push("text","",0);u.content=e.md.normalizeLinkText(s);const d=e.push("link_close","a",-1);d.markup="linkify",d.info="auto"}return e.pos+=s.length-o.length,!0}function m0n(e,t){let n=e.pos;if(e.src.charCodeAt(n)!==10)return!1;const r=e.pending.length-1,i=e.posMax;if(!t)if(r>=0&&e.pending.charCodeAt(r)===32)if(r>=1&&e.pending.charCodeAt(r-1)===32){let o=r-1;for(;o>=1&&e.pending.charCodeAt(o-1)===32;)o--;e.pending=e.pending.slice(0,o),e.push("hardbreak","br",0)}else e.pending=e.pending.slice(0,-1),e.push("softbreak","br",0);else e.push("softbreak","br",0);for(n++;n<i&&Qi(e.src.charCodeAt(n));)n++;return e.pos=n,!0}const $X=[];for(let e=0;e<256;e++)$X.push(0);"\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-".split("").forEach(function(e){$X[e.charCodeAt(0)]=1});function g0n(e,t){let n=e.pos;const r=e.posMax;if(e.src.charCodeAt(n)!==92||(n++,n>=r))return!1;let i=e.src.charCodeAt(n);if(i===10){for(t||e.push("hardbreak","br",0),n++;n<r&&(i=e.src.charCodeAt(n),!!Qi(i));)n++;return e.pos=n,!0}let o=e.src[n];if(i>=55296&&i<=56319&&n+1<r){const s=e.src.charCodeAt(n+1);s>=56320&&s<=57343&&(o+=e.src[n+1],n++)}const a="\\"+o;if(!t){const s=e.push("text_special","",0);i<256&&$X[i]!==0?s.content=o:s.content=a,s.markup=a,s.info="escape"}return e.pos=n+1,!0}function v0n(e,t){let n=e.pos;if(e.src.charCodeAt(n)!==96)return!1;const r=n;n++;const i=e.posMax;for(;n<i&&e.src.charCodeAt(n)===96;)n++;const o=e.src.slice(r,n),a=o.length;if(e.backticksScanned&&(e.backticks[a]||0)<=r)return t||(e.pending+=o),e.pos+=a,!0;let s=n,l;for(;(l=e.src.indexOf("`",s))!==-1;){for(s=l+1;s<i&&e.src.charCodeAt(s)===96;)s++;const c=s-l;if(c===a){if(!t){const u=e.push("code_inline","code",0);u.markup=o,u.content=e.src.slice(n,l).replace(/\n/g," ").replace(/^ (.+) $/,"$1")}return e.pos=s,!0}e.backticks[c]=l}return e.backticksScanned=!0,t||(e.pending+=o),e.pos+=a,!0}function b0n(e,t){const n=e.pos,r=e.src.charCodeAt(n);if(t||r!==126)return!1;const i=e.scanDelims(e.pos,!0);let o=i.length;const a=String.fromCharCode(r);if(o<2)return!1;let s;o%2&&(s=e.push("text","",0),s.content=a,o--);for(let l=0;l<o;l+=2)s=e.push("text","",0),s.content=a+a,e.delimiters.push({marker:r,length:0,token:e.tokens.length-1,end:-1,open:i.can_open,close:i.can_close});return e.pos+=i.length,!0}function spe(e,t){let n;const r=[],i=t.length;for(let o=0;o<i;o++){const a=t[o];if(a.marker!==126||a.end===-1)continue;const s=t[a.end];n=e.tokens[a.token],n.type="s_open",n.tag="s",n.nesting=1,n.markup="~~",n.content="",n=e.tokens[s.token],n.type="s_close",n.tag="s",n.nesting=-1,n.markup="~~",n.content="",e.tokens[s.token-1].type==="text"&&e.tokens[s.token-1].content==="~"&&r.push(s.token-1)}for(;r.length;){const o=r.pop();let a=o+1;for(;a<e.tokens.length&&e.tokens[a].type==="s_close";)a++;a--,o!==a&&(n=e.tokens[a],e.tokens[a]=e.tokens[o],e.tokens[o]=n)}}function y0n(e){const t=e.tokens_meta,n=e.tokens_meta.length;spe(e,e.delimiters);for(let r=0;r<n;r++)t[r]&&t[r].delimiters&&spe(e,t[r].delimiters)}const y5e={tokenize:b0n,postProcess:y0n};function _0n(e,t){const n=e.pos,r=e.src.charCodeAt(n);if(t||r!==95&&r!==42)return!1;const i=e.scanDelims(e.pos,r===42);for(let o=0;o<i.length;o++){const a=e.push("text","",0);a.content=String.fromCharCode(r),e.delimiters.push({marker:r,length:i.length,token:e.tokens.length-1,end:-1,open:i.can_open,close:i.can_close})}return e.pos+=i.length,!0}function lpe(e,t){const n=t.length;for(let r=n-1;r>=0;r--){const i=t[r];if(i.marker!==95&&i.marker!==42||i.end===-1)continue;const o=t[i.end],a=r>0&&t[r-1].end===i.end+1&&t[r-1].marker===i.marker&&t[r-1].token===i.token-1&&t[i.end+1].token===o.token+1,s=String.fromCharCode(i.marker),l=e.tokens[i.token];l.type=a?"strong_open":"em_open",l.tag=a?"strong":"em",l.nesting=1,l.markup=a?s+s:s,l.content="";const c=e.tokens[o.token];c.type=a?"strong_close":"em_close",c.tag=a?"strong":"em",c.nesting=-1,c.markup=a?s+s:s,c.content="",a&&(e.tokens[t[r-1].token].content="",e.tokens[t[i.end+1].token].content="",r--)}}function S0n(e){const t=e.tokens_meta,n=e.tokens_meta.length;lpe(e,e.delimiters);for(let r=0;r<n;r++)t[r]&&t[r].delimiters&&lpe(e,t[r].delimiters)}const _5e={tokenize:_0n,postProcess:S0n};function E0n(e,t){let n,r,i,o,a="",s="",l=e.pos,c=!0;if(e.src.charCodeAt(e.pos)!==91)return!1;const u=e.pos,d=e.posMax,f=e.pos+1,h=e.md.helpers.parseLinkLabel(e,e.pos,!0);if(h<0)return!1;let m=h+1;if(m<d&&e.src.charCodeAt(m)===40){for(c=!1,m++;m<d&&(n=e.src.charCodeAt(m),!(!Qi(n)&&n!==10));m++);if(m>=d)return!1;if(l=m,i=e.md.helpers.parseLinkDestination(e.src,m,e.posMax),i.ok){for(a=e.md.normalizeLink(i.str),e.md.validateLink(a)?m=i.pos:a="",l=m;m<d&&(n=e.src.charCodeAt(m),!(!Qi(n)&&n!==10));m++);if(i=e.md.helpers.parseLinkTitle(e.src,m,e.posMax),m<d&&l!==m&&i.ok)for(s=i.str,m=i.pos;m<d&&(n=e.src.charCodeAt(m),!(!Qi(n)&&n!==10));m++);}(m>=d||e.src.charCodeAt(m)!==41)&&(c=!0),m++}if(c){if(typeof e.env.references>"u")return!1;if(m<d&&e.src.charCodeAt(m)===91?(l=m+1,m=e.md.helpers.parseLinkLabel(e,m),m>=0?r=e.src.slice(l,m++):m=h+1):m=h+1,r||(r=e.src.slice(f,h)),o=e.env.references[b9(r)],!o)return e.pos=u,!1;a=o.href,s=o.title}if(!t){e.pos=f,e.posMax=h;const g=e.push("link_open","a",1),v=[["href",a]];g.attrs=v,s&&v.push(["title",s]),e.linkLevel++,e.md.inline.tokenize(e),e.linkLevel--,e.push("link_close","a",-1)}return e.pos=m,e.posMax=d,!0}function C0n(e,t){let n,r,i,o,a,s,l,c,u="";const d=e.pos,f=e.posMax;if(e.src.charCodeAt(e.pos)!==33||e.src.charCodeAt(e.pos+1)!==91)return!1;const h=e.pos+2,m=e.md.helpers.parseLinkLabel(e,e.pos+1,!1);if(m<0)return!1;if(o=m+1,o<f&&e.src.charCodeAt(o)===40){for(o++;o<f&&(n=e.src.charCodeAt(o),!(!Qi(n)&&n!==10));o++);if(o>=f)return!1;for(c=o,s=e.md.helpers.parseLinkDestination(e.src,o,e.posMax),s.ok&&(u=e.md.normalizeLink(s.str),e.md.validateLink(u)?o=s.pos:u=""),c=o;o<f&&(n=e.src.charCodeAt(o),!(!Qi(n)&&n!==10));o++);if(s=e.md.helpers.parseLinkTitle(e.src,o,e.posMax),o<f&&c!==o&&s.ok)for(l=s.str,o=s.pos;o<f&&(n=e.src.charCodeAt(o),!(!Qi(n)&&n!==10));o++);else l="";if(o>=f||e.src.charCodeAt(o)!==41)return e.pos=d,!1;o++}else{if(typeof e.env.references>"u")return!1;if(o<f&&e.src.charCodeAt(o)===91?(c=o+1,o=e.md.helpers.parseLinkLabel(e,o),o>=0?i=e.src.slice(c,o++):o=m+1):o=m+1,i||(i=e.src.slice(h,m)),a=e.env.references[b9(i)],!a)return e.pos=d,!1;u=a.href,l=a.title}if(!t){r=e.src.slice(h,m);const g=[];e.md.inline.parse(r,e.md,e.env,g);const v=e.push("image","img",0),y=[["src",u],["alt",""]];v.attrs=y,v.children=g,v.content=r,l&&y.push(["title",l])}return e.pos=o,e.posMax=f,!0}const w0n=/^([a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*)$/,T0n=/^([a-zA-Z][a-zA-Z0-9+.-]{1,31}):([^<>\x00-\x20]*)$/;function x0n(e,t){let n=e.pos;if(e.src.charCodeAt(n)!==60)return!1;const r=e.pos,i=e.posMax;for(;;){if(++n>=i)return!1;const a=e.src.charCodeAt(n);if(a===60)return!1;if(a===62)break}const o=e.src.slice(r+1,n);if(T0n.test(o)){const a=e.md.normalizeLink(o);if(!e.md.validateLink(a))return!1;if(!t){const s=e.push("link_open","a",1);s.attrs=[["href",a]],s.markup="autolink",s.info="auto";const l=e.push("text","",0);l.content=e.md.normalizeLinkText(o);const c=e.push("link_close","a",-1);c.markup="autolink",c.info="auto"}return e.pos+=o.length+2,!0}if(w0n.test(o)){const a=e.md.normalizeLink("mailto:"+o);if(!e.md.validateLink(a))return!1;if(!t){const s=e.push("link_open","a",1);s.attrs=[["href",a]],s.markup="autolink",s.info="auto";const l=e.push("text","",0);l.content=e.md.normalizeLinkText(o);const c=e.push("link_close","a",-1);c.markup="autolink",c.info="auto"}return e.pos+=o.length+2,!0}return!1}function O0n(e){return/^<a[>\s]/i.test(e)}function R0n(e){return/^<\/a\s*>/i.test(e)}function I0n(e){const t=e|32;return t>=97&&t<=122}function A0n(e,t){if(!e.md.options.html)return!1;const n=e.posMax,r=e.pos;if(e.src.charCodeAt(r)!==60||r+2>=n)return!1;const i=e.src.charCodeAt(r+1);if(i!==33&&i!==63&&i!==47&&!I0n(i))return!1;const o=e.src.slice(r).match(o0n);if(!o)return!1;if(!t){const a=e.push("html_inline","",0);a.content=o[0],O0n(a.content)&&e.linkLevel++,R0n(a.content)&&e.linkLevel--}return e.pos+=o[0].length,!0}const N0n=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,M0n=/^&([a-z][a-z0-9]{1,31});/i;function k0n(e,t){const n=e.pos,r=e.posMax;if(e.src.charCodeAt(n)!==38||n+1>=r)return!1;if(e.src.charCodeAt(n+1)===35){const i=e.src.slice(n).match(N0n);if(i){if(!t){const o=i[1][0].toLowerCase()==="x"?parseInt(i[1].slice(1),16):parseInt(i[1],10),a=e.push("text_special","",0);a.content=DX(o)?w4(o):w4(65533),a.markup=i[0],a.info="entity"}return e.pos+=i[0].length,!0}}else{const i=e.src.slice(n).match(M0n);if(i){const o=f5e(i[0]);if(o!==i[0]){if(!t){const a=e.push("text_special","",0);a.content=o,a.markup=i[0],a.info="entity"}return e.pos+=i[0].length,!0}}}return!1}function cpe(e){const t={},n=e.length;if(!n)return;let r=0,i=-2;const o=[];for(let a=0;a<n;a++){const s=e[a];if(o.push(0),(e[r].marker!==s.marker||i!==s.token-1)&&(r=a),i=s.token,s.length=s.length||0,!s.close)continue;t.hasOwnProperty(s.marker)||(t[s.marker]=[-1,-1,-1,-1,-1,-1]);const l=t[s.marker][(s.open?3:0)+s.length%3];let c=r-o[r]-1,u=c;for(;c>l;c-=o[c]+1){const d=e[c];if(d.marker===s.marker&&d.open&&d.end<0){let f=!1;if((d.close||s.open)&&(d.length+s.length)%3===0&&(d.length%3!==0||s.length%3!==0)&&(f=!0),!f){const h=c>0&&!e[c-1].open?o[c-1]+1:0;o[a]=a-c+h,o[c]=h,s.open=!1,d.end=a,d.close=!1,u=-1,i=-2;break}}}u!==-1&&(t[s.marker][(s.open?3:0)+(s.length||0)%3]=u)}}function P0n(e){const t=e.tokens_meta,n=e.tokens_meta.length;cpe(e.delimiters);for(let r=0;r<n;r++)t[r]&&t[r].delimiters&&cpe(t[r].delimiters)}function D0n(e){let t,n,r=0;const i=e.tokens,o=e.tokens.length;for(t=n=0;t<o;t++)i[t].nesting<0&&r--,i[t].level=r,i[t].nesting>0&&r++,i[t].type==="text"&&t+1<o&&i[t+1].type==="text"?i[t+1].content=i[t].content+i[t+1].content:(t!==n&&(i[n]=i[t]),n++);t!==n&&(i.length=n)}const V6=[["text",f0n],["linkify",h0n],["newline",m0n],["escape",g0n],["backticks",v0n],["strikethrough",y5e.tokenize],["emphasis",_5e.tokenize],["link",E0n],["image",C0n],["autolink",x0n],["html_inline",A0n],["entity",k0n]],G6=[["balance_pairs",P0n],["strikethrough",y5e.postProcess],["emphasis",_5e.postProcess],["fragments_join",D0n]];function gO(){this.ruler=new Dl;for(let e=0;e<V6.length;e++)this.ruler.push(V6[e][0],V6[e][1]);this.ruler2=new Dl;for(let e=0;e<G6.length;e++)this.ruler2.push(G6[e][0],G6[e][1])}gO.prototype.skipToken=function(e){const t=e.pos,n=this.ruler.getRules(""),r=n.length,i=e.md.options.maxNesting,o=e.cache;if(typeof o[t]<"u"){e.pos=o[t];return}let a=!1;if(e.level<i){for(let s=0;s<r;s++)if(e.level++,a=n[s](e,!0),e.level--,a){if(t>=e.pos)throw new Error("inline rule didn't increment state.pos");break}}else e.pos=e.posMax;a||e.pos++,o[t]=e.pos};gO.prototype.tokenize=function(e){const t=this.ruler.getRules(""),n=t.length,r=e.posMax,i=e.md.options.maxNesting;for(;e.pos<r;){const o=e.pos;let a=!1;if(e.level<i){for(let s=0;s<n;s++)if(a=t[s](e,!1),a){if(o>=e.pos)throw new Error("inline rule didn't increment state.pos");break}}if(a){if(e.pos>=r)break;continue}e.pending+=e.src[e.pos++]}e.pending&&e.pushPending()};gO.prototype.parse=function(e,t,n,r){const i=new this.State(e,t,n,r);this.tokenize(i);const o=this.ruler2.getRules(""),a=o.length;for(let s=0;s<a;s++)o[s](i)};gO.prototype.State=mO;function L0n(e){const t={};e=e||{},t.src_Any=s5e.source,t.src_Cc=l5e.source,t.src_Z=u5e.source,t.src_P=kX.source,t.src_ZPCc=[t.src_Z,t.src_P,t.src_Cc].join("|"),t.src_ZCc=[t.src_Z,t.src_Cc].join("|");const n="[><]";return t.src_pseudo_letter="(?:(?!"+n+"|"+t.src_ZPCc+")"+t.src_Any+")",t.src_ip4="(?:(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)",t.src_auth="(?:(?:(?!"+t.src_ZCc+"|[@/\\[\\]()]).)+@)?",t.src_port="(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?",t.src_host_terminator="(?=$|"+n+"|"+t.src_ZPCc+")(?!"+(e["---"]?"-(?!--)|":"-|")+"_|:\\d|\\.-|\\.(?!$|"+t.src_ZPCc+"))",t.src_path="(?:[/?#](?:(?!"+t.src_ZCc+"|"+n+`|[()[\\]{}.,"'?!\\-;]).|\\[(?:(?!`+t.src_ZCc+"|\\]).)*\\]|\\((?:(?!"+t.src_ZCc+"|[)]).)*\\)|\\{(?:(?!"+t.src_ZCc+'|[}]).)*\\}|\\"(?:(?!'+t.src_ZCc+`|["]).)+\\"|\\'(?:(?!`+t.src_ZCc+"|[']).)+\\'|\\'(?="+t.src_pseudo_letter+"|[-])|\\.{2,}[a-zA-Z0-9%/&]|\\.(?!"+t.src_ZCc+"|[.]|$)|"+(e["---"]?"\\-(?!--(?:[^-]|$))(?:-*)|":"\\-+|")+",(?!"+t.src_ZCc+"|$)|;(?!"+t.src_ZCc+"|$)|\\!+(?!"+t.src_ZCc+"|[!]|$)|\\?(?!"+t.src_ZCc+"|[?]|$))+|\\/)?",t.src_email_name='[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]*',t.src_xn="xn--[a-z0-9\\-]{1,59}",t.src_domain_root="(?:"+t.src_xn+"|"+t.src_pseudo_letter+"{1,63})",t.src_domain="(?:"+t.src_xn+"|(?:"+t.src_pseudo_letter+")|(?:"+t.src_pseudo_letter+"(?:-|"+t.src_pseudo_letter+"){0,61}"+t.src_pseudo_letter+"))",t.src_host="(?:(?:(?:(?:"+t.src_domain+")\\.)*"+t.src_domain+"))",t.tpl_host_fuzzy="(?:"+t.src_ip4+"|(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%)))",t.tpl_host_no_ip_fuzzy="(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%))",t.src_host_strict=t.src_host+t.src_host_terminator,t.tpl_host_fuzzy_strict=t.tpl_host_fuzzy+t.src_host_terminator,t.src_host_port_strict=t.src_host+t.src_port+t.src_host_terminator,t.tpl_host_port_fuzzy_strict=t.tpl_host_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_port_no_ip_fuzzy_strict=t.tpl_host_no_ip_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_fuzzy_test="localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:"+t.src_ZPCc+"|>|$))",t.tpl_email_fuzzy="(^|"+n+'|"|\\(|'+t.src_ZCc+")("+t.src_email_name+"@"+t.tpl_host_fuzzy_strict+")",t.tpl_link_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`|]|"+t.src_ZPCc+"))((?![$+<=>^`|])"+t.tpl_host_port_fuzzy_strict+t.src_path+")",t.tpl_link_no_ip_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`|]|"+t.src_ZPCc+"))((?![$+<=>^`|])"+t.tpl_host_port_no_ip_fuzzy_strict+t.src_path+")",t}function yV(e){return Array.prototype.slice.call(arguments,1).forEach(function(t){t&&Object.keys(t).forEach(function(n){e[n]=t[n]})}),e}function _9(e){return Object.prototype.toString.call(e)}function $0n(e){return _9(e)==="[object String]"}function F0n(e){return _9(e)==="[object Object]"}function B0n(e){return _9(e)==="[object RegExp]"}function upe(e){return _9(e)==="[object Function]"}function j0n(e){return e.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}const S5e={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};function H0n(e){return Object.keys(e||{}).reduce(function(t,n){return t||S5e.hasOwnProperty(n)},!1)}const U0n={"http:":{validate:function(e,t,n){const r=e.slice(t);return n.re.http||(n.re.http=new RegExp("^\\/\\/"+n.re.src_auth+n.re.src_host_port_strict+n.re.src_path,"i")),n.re.http.test(r)?r.match(n.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(e,t,n){const r=e.slice(t);return n.re.no_http||(n.re.no_http=new RegExp("^"+n.re.src_auth+"(?:localhost|(?:(?:"+n.re.src_domain+")\\.)+"+n.re.src_domain_root+")"+n.re.src_port+n.re.src_host_terminator+n.re.src_path,"i")),n.re.no_http.test(r)?t>=3&&e[t-3]===":"||t>=3&&e[t-3]==="/"?0:r.match(n.re.no_http)[0].length:0}},"mailto:":{validate:function(e,t,n){const r=e.slice(t);return n.re.mailto||(n.re.mailto=new RegExp("^"+n.re.src_email_name+"@"+n.re.src_host_strict,"i")),n.re.mailto.test(r)?r.match(n.re.mailto)[0].length:0}}},z0n="a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]",V0n="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");function G0n(e){e.__index__=-1,e.__text_cache__=""}function W0n(e){return function(t,n){const r=t.slice(n);return e.test(r)?r.match(e)[0].length:0}}function dpe(){return function(e,t){t.normalize(e)}}function T4(e){const t=e.re=L0n(e.__opts__),n=e.__tlds__.slice();e.onCompile(),e.__tlds_replaced__||n.push(z0n),n.push(t.src_xn),t.src_tlds=n.join("|");function r(s){return s.replace("%TLDS%",t.src_tlds)}t.email_fuzzy=RegExp(r(t.tpl_email_fuzzy),"i"),t.link_fuzzy=RegExp(r(t.tpl_link_fuzzy),"i"),t.link_no_ip_fuzzy=RegExp(r(t.tpl_link_no_ip_fuzzy),"i"),t.host_fuzzy_test=RegExp(r(t.tpl_host_fuzzy_test),"i");const i=[];e.__compiled__={};function o(s,l){throw new Error('(LinkifyIt) Invalid schema "'+s+'": '+l)}Object.keys(e.__schemas__).forEach(function(s){const l=e.__schemas__[s];if(l===null)return;const c={validate:null,link:null};if(e.__compiled__[s]=c,F0n(l)){B0n(l.validate)?c.validate=W0n(l.validate):upe(l.validate)?c.validate=l.validate:o(s,l),upe(l.normalize)?c.normalize=l.normalize:l.normalize?o(s,l):c.normalize=dpe();return}if($0n(l)){i.push(s);return}o(s,l)}),i.forEach(function(s){e.__compiled__[e.__schemas__[s]]&&(e.__compiled__[s].validate=e.__compiled__[e.__schemas__[s]].validate,e.__compiled__[s].normalize=e.__compiled__[e.__schemas__[s]].normalize)}),e.__compiled__[""]={validate:null,normalize:dpe()};const a=Object.keys(e.__compiled__).filter(function(s){return s.length>0&&e.__compiled__[s]}).map(j0n).join("|");e.re.schema_test=RegExp("(^|(?!_)(?:[><]|"+t.src_ZPCc+"))("+a+")","i"),e.re.schema_search=RegExp("(^|(?!_)(?:[><]|"+t.src_ZPCc+"))("+a+")","ig"),e.re.schema_at_start=RegExp("^"+e.re.schema_search.source,"i"),e.re.pretest=RegExp("("+e.re.schema_test.source+")|("+e.re.host_fuzzy_test.source+")|@","i"),G0n(e)}function q0n(e,t){const n=e.__index__,r=e.__last_index__,i=e.__text_cache__.slice(n,r);this.schema=e.__schema__.toLowerCase(),this.index=n+t,this.lastIndex=r+t,this.raw=i,this.text=i,this.url=i}function _V(e,t){const n=new q0n(e,t);return e.__compiled__[n.schema].normalize(n,e),n}function Tc(e,t){if(!(this instanceof Tc))return new Tc(e,t);t||H0n(e)&&(t=e,e={}),this.__opts__=yV({},S5e,t),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=yV({},U0n,e),this.__compiled__={},this.__tlds__=V0n,this.__tlds_replaced__=!1,this.re={},T4(this)}Tc.prototype.add=function(e,t){return this.__schemas__[e]=t,T4(this),this};Tc.prototype.set=function(e){return this.__opts__=yV(this.__opts__,e),this};Tc.prototype.test=function(e){if(this.__text_cache__=e,this.__index__=-1,!e.length)return!1;let t,n,r,i,o,a,s,l,c;if(this.re.schema_test.test(e)){for(s=this.re.schema_search,s.lastIndex=0;(t=s.exec(e))!==null;)if(i=this.testSchemaAt(e,t[2],s.lastIndex),i){this.__schema__=t[2],this.__index__=t.index+t[1].length,this.__last_index__=t.index+t[0].length+i;break}}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&(l=e.search(this.re.host_fuzzy_test),l>=0&&(this.__index__<0||l<this.__index__)&&(n=e.match(this.__opts__.fuzzyIP?this.re.link_fuzzy:this.re.link_no_ip_fuzzy))!==null&&(o=n.index+n[1].length,(this.__index__<0||o<this.__index__)&&(this.__schema__="",this.__index__=o,this.__last_index__=n.index+n[0].length))),this.__opts__.fuzzyEmail&&this.__compiled__["mailto:"]&&(c=e.indexOf("@"),c>=0&&(r=e.match(this.re.email_fuzzy))!==null&&(o=r.index+r[1].length,a=r.index+r[0].length,(this.__index__<0||o<this.__index__||o===this.__index__&&a>this.__last_index__)&&(this.__schema__="mailto:",this.__index__=o,this.__last_index__=a))),this.__index__>=0};Tc.prototype.pretest=function(e){return this.re.pretest.test(e)};Tc.prototype.testSchemaAt=function(e,t,n){return this.__compiled__[t.toLowerCase()]?this.__compiled__[t.toLowerCase()].validate(e,n,this):0};Tc.prototype.match=function(e){const t=[];let n=0;this.__index__>=0&&this.__text_cache__===e&&(t.push(_V(this,n)),n=this.__last_index__);let r=n?e.slice(n):e;for(;this.test(r);)t.push(_V(this,n)),r=r.slice(this.__last_index__),n+=this.__last_index__;return t.length?t:null};Tc.prototype.matchAtStart=function(e){if(this.__text_cache__=e,this.__index__=-1,!e.length)return null;const t=this.re.schema_at_start.exec(e);if(!t)return null;const n=this.testSchemaAt(e,t[2],t[0].length);return n?(this.__schema__=t[2],this.__index__=t.index+t[1].length,this.__last_index__=t.index+t[0].length+n,_V(this,0)):null};Tc.prototype.tlds=function(e,t){return e=Array.isArray(e)?e:[e],t?(this.__tlds__=this.__tlds__.concat(e).sort().filter(function(n,r,i){return n!==i[r-1]}).reverse(),T4(this),this):(this.__tlds__=e.slice(),this.__tlds_replaced__=!0,T4(this),this)};Tc.prototype.normalize=function(e){e.schema||(e.url="http://"+e.url),e.schema==="mailto:"&&!/^mailto:/i.test(e.url)&&(e.url="mailto:"+e.url)};Tc.prototype.onCompile=function(){};const Dy=2147483647,Of=36,FX=1,Cx=26,Y0n=38,K0n=700,E5e=72,C5e=128,w5e="-",Q0n=/^xn--/,X0n=/[^\0-\x7F]/,Z0n=/[\x2E\u3002\uFF0E\uFF61]/g,J0n={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},W6=Of-FX,Rf=Math.floor,q6=String.fromCharCode;function hm(e){throw new RangeError(J0n[e])}function ebn(e,t){const n=[];let r=e.length;for(;r--;)n[r]=t(e[r]);return n}function T5e(e,t){const n=e.split("@");let r="";n.length>1&&(r=n[0]+"@",e=n[1]),e=e.replace(Z0n,".");const i=e.split("."),o=ebn(i,t).join(".");return r+o}function x5e(e){const t=[];let n=0;const r=e.length;for(;n<r;){const i=e.charCodeAt(n++);if(i>=55296&&i<=56319&&n<r){const o=e.charCodeAt(n++);(o&64512)==56320?t.push(((i&1023)<<10)+(o&1023)+65536):(t.push(i),n--)}else t.push(i)}return t}const tbn=e=>String.fromCodePoint(...e),nbn=function(e){return e>=48&&e<58?26+(e-48):e>=65&&e<91?e-65:e>=97&&e<123?e-97:Of},fpe=function(e,t){return e+22+75*(e<26)-((t!=0)<<5)},O5e=function(e,t,n){let r=0;for(e=n?Rf(e/K0n):e>>1,e+=Rf(e/t);e>W6*Cx>>1;r+=Of)e=Rf(e/W6);return Rf(r+(W6+1)*e/(e+Y0n))},R5e=function(e){const t=[],n=e.length;let r=0,i=C5e,o=E5e,a=e.lastIndexOf(w5e);a<0&&(a=0);for(let s=0;s<a;++s)e.charCodeAt(s)>=128&&hm("not-basic"),t.push(e.charCodeAt(s));for(let s=a>0?a+1:0;s<n;){const l=r;for(let u=1,d=Of;;d+=Of){s>=n&&hm("invalid-input");const f=nbn(e.charCodeAt(s++));f>=Of&&hm("invalid-input"),f>Rf((Dy-r)/u)&&hm("overflow"),r+=f*u;const h=d<=o?FX:d>=o+Cx?Cx:d-o;if(f<h)break;const m=Of-h;u>Rf(Dy/m)&&hm("overflow"),u*=m}const c=t.length+1;o=O5e(r-l,c,l==0),Rf(r/c)>Dy-i&&hm("overflow"),i+=Rf(r/c),r%=c,t.splice(r++,0,i)}return String.fromCodePoint(...t)},I5e=function(e){const t=[];e=x5e(e);const n=e.length;let r=C5e,i=0,o=E5e;for(const l of e)l<128&&t.push(q6(l));const a=t.length;let s=a;for(a&&t.push(w5e);s<n;){let l=Dy;for(const u of e)u>=r&&u<l&&(l=u);const c=s+1;l-r>Rf((Dy-i)/c)&&hm("overflow"),i+=(l-r)*c,r=l;for(const u of e)if(u<r&&++i>Dy&&hm("overflow"),u===r){let d=i;for(let f=Of;;f+=Of){const h=f<=o?FX:f>=o+Cx?Cx:f-o;if(d<h)break;const m=d-h,g=Of-h;t.push(q6(fpe(h+m%g,0))),d=Rf(m/g)}t.push(q6(fpe(d,0))),o=O5e(i,c,s===a),i=0,++s}++i,++r}return t.join("")},rbn=function(e){return T5e(e,function(t){return Q0n.test(t)?R5e(t.slice(4).toLowerCase()):t})},ibn=function(e){return T5e(e,function(t){return X0n.test(t)?"xn--"+I5e(t):t})},A5e={version:"2.3.1",ucs2:{decode:x5e,encode:tbn},decode:R5e,encode:I5e,toASCII:ibn,toUnicode:rbn},obn={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:100},components:{core:{},block:{},inline:{}}},abn={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline","text_join"]},block:{rules:["paragraph"]},inline:{rules:["text"],rules2:["balance_pairs","fragments_join"]}}},sbn={options:{html:!0,xhtmlOut:!0,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline","text_join"]},block:{rules:["blockquote","code","fence","heading","hr","html_block","lheading","list","reference","paragraph"]},inline:{rules:["autolink","backticks","emphasis","entity","escape","html_inline","image","link","newline","text"],rules2:["balance_pairs","emphasis","fragments_join"]}}},lbn={default:obn,zero:abn,commonmark:sbn},cbn=/^(vbscript|javascript|file|data):/,ubn=/^data:image\/(gif|png|jpeg|webp);/;function dbn(e){const t=e.trim().toLowerCase();return cbn.test(t)?ubn.test(t):!0}const N5e=["http:","https:","mailto:"];function fbn(e){const t=MX(e,!0);if(t.hostname&&(!t.protocol||N5e.indexOf(t.protocol)>=0))try{t.hostname=A5e.toASCII(t.hostname)}catch{}return hO(NX(t))}function pbn(e){const t=MX(e,!0);if(t.hostname&&(!t.protocol||N5e.indexOf(t.protocol)>=0))try{t.hostname=A5e.toUnicode(t.hostname)}catch{}return Z_(NX(t),Z_.defaultChars+"%")}function Cu(e,t){if(!(this instanceof Cu))return new Cu(e,t);t||PX(e)||(t=e||{},e="default"),this.inline=new gO,this.block=new y9,this.core=new LX,this.renderer=new lE,this.linkify=new Tc,this.validateLink=dbn,this.normalizeLink=fbn,this.normalizeLinkText=pbn,this.utils=mvn,this.helpers=v9({},yvn),this.options={},this.configure(e),t&&this.set(t)}Cu.prototype.set=function(e){return v9(this.options,e),this};Cu.prototype.configure=function(e){const t=this;if(PX(e)){const n=e;if(e=lbn[n],!e)throw new Error('Wrong `markdown-it` preset "'+n+'", check name')}if(!e)throw new Error("Wrong `markdown-it` preset, can't be empty");return e.options&&t.set(e.options),e.components&&Object.keys(e.components).forEach(function(n){e.components[n].rules&&t[n].ruler.enableOnly(e.components[n].rules),e.components[n].rules2&&t[n].ruler2.enableOnly(e.components[n].rules2)}),this};Cu.prototype.enable=function(e,t){let n=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach(function(i){n=n.concat(this[i].ruler.enable(e,!0))},this),n=n.concat(this.inline.ruler2.enable(e,!0));const r=e.filter(function(i){return n.indexOf(i)<0});if(r.length&&!t)throw new Error("MarkdownIt. Failed to enable unknown rule(s): "+r);return this};Cu.prototype.disable=function(e,t){let n=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach(function(i){n=n.concat(this[i].ruler.disable(e,!0))},this),n=n.concat(this.inline.ruler2.disable(e,!0));const r=e.filter(function(i){return n.indexOf(i)<0});if(r.length&&!t)throw new Error("MarkdownIt. Failed to disable unknown rule(s): "+r);return this};Cu.prototype.use=function(e){const t=[this].concat(Array.prototype.slice.call(arguments,1));return e.apply(e,t),this};Cu.prototype.parse=function(e,t){if(typeof e!="string")throw new Error("Input data should be a String");const n=new this.core.State(e,this,t);return this.core.process(n),n.tokens};Cu.prototype.render=function(e,t){return t=t||{},this.renderer.render(this.parse(e,t),this.options,t)};Cu.prototype.parseInline=function(e,t){const n=new this.core.State(e,this,t);return n.inlineMode=!0,this.core.process(n),n.tokens};Cu.prototype.renderInline=function(e,t){return t=t||{},this.renderer.render(this.parseInline(e,t),this.options,t)};function hbn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)n.hasOwnProperty(r)&&(e[r]=n[r])}return e}function SV(e,t){return Array(t+1).join(e)}function mbn(e){return e.replace(/^\n*/,"")}function gbn(e){for(var t=e.length;t>0&&e[t-1]===`
`;)t--;return e.substring(0,t)}var vbn=["ADDRESS","ARTICLE","ASIDE","AUDIO","BLOCKQUOTE","BODY","CANVAS","CENTER","DD","DIR","DIV","DL","DT","FIELDSET","FIGCAPTION","FIGURE","FOOTER","FORM","FRAMESET","H1","H2","H3","H4","H5","H6","HEADER","HGROUP","HR","HTML","ISINDEX","LI","MAIN","MENU","NAV","NOFRAMES","NOSCRIPT","OL","OUTPUT","P","PRE","SECTION","TABLE","TBODY","TD","TFOOT","TH","THEAD","TR","UL"];function BX(e){return jX(e,vbn)}var M5e=["AREA","BASE","BR","COL","COMMAND","EMBED","HR","IMG","INPUT","KEYGEN","LINK","META","PARAM","SOURCE","TRACK","WBR"];function k5e(e){return jX(e,M5e)}function bbn(e){return D5e(e,M5e)}var P5e=["A","TABLE","THEAD","TBODY","TFOOT","TH","TD","IFRAME","SCRIPT","AUDIO","VIDEO"];function ybn(e){return jX(e,P5e)}function _bn(e){return D5e(e,P5e)}function jX(e,t){return t.indexOf(e.nodeName)>=0}function D5e(e,t){return e.getElementsByTagName&&t.some(function(n){return e.getElementsByTagName(n).length})}var $s={};$s.paragraph={filter:"p",replacement:function(e){return`
`+e+`
`}};$s.lineBreak={filter:"br",replacement:function(e,t,n){return n.br+`
`}};$s.heading={filter:["h1","h2","h3","h4","h5","h6"],replacement:function(e,t,n){var r=Number(t.nodeName.charAt(1));if(n.headingStyle==="setext"&&r<3){var i=SV(r===1?"=":"-",e.length);return`
`+e+`
`+i+`
`}else return`
`+SV("#",r)+" "+e+`
`}};$s.blockquote={filter:"blockquote",replacement:function(e){return e=e.replace(/^\n+|\n+$/g,""),e=e.replace(/^/gm,"> "),`
`+e+`
`}};$s.list={filter:["ul","ol"],replacement:function(e,t){var n=t.parentNode;return n.nodeName==="LI"&&n.lastElementChild===t?`
`+e:`
`+e+`
`}};$s.listItem={filter:"li",replacement:function(e,t,n){e=e.replace(/^\n+/,"").replace(/\n+$/,`
`).replace(/\n/gm,`
`);var r=n.bulletListMarker+" ",i=t.parentNode;if(i.nodeName==="OL"){var o=i.getAttribute("start"),a=Array.prototype.indexOf.call(i.children,t);r=(o?Number(o)+a:a+1)+". "}return r+e+(t.nextSibling&&!/\n$/.test(e)?`
`:"")}};$s.indentedCodeBlock={filter:function(e,t){return t.codeBlockStyle==="indented"&&e.nodeName==="PRE"&&e.firstChild&&e.firstChild.nodeName==="CODE"},replacement:function(e,t,n){return`
`+t.firstChild.textContent.replace(/\n/g,`
`)+`
`}};$s.fencedCodeBlock={filter:function(e,t){return t.codeBlockStyle==="fenced"&&e.nodeName==="PRE"&&e.firstChild&&e.firstChild.nodeName==="CODE"},replacement:function(e,t,n){for(var r=t.firstChild.getAttribute("class")||"",i=(r.match(/language-(\S+)/)||[null,""])[1],o=t.firstChild.textContent,a=n.fence.charAt(0),s=3,l=new RegExp("^"+a+"{3,}","gm"),c;c=l.exec(o);)c[0].length>=s&&(s=c[0].length+1);var u=SV(a,s);return`
`+u+i+`
`+o.replace(/\n$/,"")+`
`+u+`
`}};$s.horizontalRule={filter:"hr",replacement:function(e,t,n){return`
`+n.hr+`
`}};$s.inlineLink={filter:function(e,t){return t.linkStyle==="inlined"&&e.nodeName==="A"&&e.getAttribute("href")},replacement:function(e,t){var n=t.getAttribute("href");n&&(n=n.replace(/([()])/g,"\\$1"));var r=x4(t.getAttribute("title"));return r&&(r=' "'+r.replace(/"/g,'\\"')+'"'),"["+e+"]("+n+r+")"}};$s.referenceLink={filter:function(e,t){return t.linkStyle==="referenced"&&e.nodeName==="A"&&e.getAttribute("href")},replacement:function(e,t,n){var r=t.getAttribute("href"),i=x4(t.getAttribute("title"));i&&(i=' "'+i+'"');var o,a;switch(n.linkReferenceStyle){case"collapsed":o="["+e+"][]",a="["+e+"]: "+r+i;break;case"shortcut":o="["+e+"]",a="["+e+"]: "+r+i;break;default:var s=this.references.length+1;o="["+e+"]["+s+"]",a="["+s+"]: "+r+i}return this.references.push(a),o},references:[],append:function(e){var t="";return this.references.length&&(t=`
`+this.references.join(`
`)+`
`,this.references=[]),t}};$s.emphasis={filter:["em","i"],replacement:function(e,t,n){return e.trim()?n.emDelimiter+e+n.emDelimiter:""}};$s.strong={filter:["strong","b"],replacement:function(e,t,n){return e.trim()?n.strongDelimiter+e+n.strongDelimiter:""}};$s.code={filter:function(e){var t=e.previousSibling||e.nextSibling,n=e.parentNode.nodeName==="PRE"&&!t;return e.nodeName==="CODE"&&!n},replacement:function(e){if(!e)return"";e=e.replace(/\r?\n|\r/g," ");for(var t=/^`|^ .*?[^ ].* $|`$/.test(e)?" ":"",n="`",r=e.match(/`+/gm)||[];r.indexOf(n)!==-1;)n=n+"`";return n+t+e+t+n}};$s.image={filter:"img",replacement:function(e,t){var n=x4(t.getAttribute("alt")),r=t.getAttribute("src")||"",i=x4(t.getAttribute("title")),o=i?' "'+i+'"':"";return r?"!["+n+"]("+r+o+")":""}};function x4(e){return e?e.replace(/(\n+\s*)+/g,`
`):""}function L5e(e){this.options=e,this._keep=[],this._remove=[],this.blankRule={replacement:e.blankReplacement},this.keepReplacement=e.keepReplacement,this.defaultRule={replacement:e.defaultReplacement},this.array=[];for(var t in e.rules)this.array.push(e.rules[t])}L5e.prototype={add:function(e,t){this.array.unshift(t)},keep:function(e){this._keep.unshift({filter:e,replacement:this.keepReplacement})},remove:function(e){this._remove.unshift({filter:e,replacement:function(){return""}})},forNode:function(e){if(e.isBlank)return this.blankRule;var t;return(t=Y6(this.array,e,this.options))||(t=Y6(this._keep,e,this.options))||(t=Y6(this._remove,e,this.options))?t:this.defaultRule},forEach:function(e){for(var t=0;t<this.array.length;t++)e(this.array[t],t)}};function Y6(e,t,n){for(var r=0;r<e.length;r++){var i=e[r];if(Sbn(i,t,n))return i}}function Sbn(e,t,n){var r=e.filter;if(typeof r=="string"){if(r===t.nodeName.toLowerCase())return!0}else if(Array.isArray(r)){if(r.indexOf(t.nodeName.toLowerCase())>-1)return!0}else if(typeof r=="function"){if(r.call(e,t,n))return!0}else throw new TypeError("`filter` needs to be a string, array, or function")}function Ebn(e){var t=e.element,n=e.isBlock,r=e.isVoid,i=e.isPre||function(d){return d.nodeName==="PRE"};if(!(!t.firstChild||i(t))){for(var o=null,a=!1,s=null,l=ppe(s,t,i);l!==t;){if(l.nodeType===3||l.nodeType===4){var c=l.data.replace(/[ \r\n\t]+/g," ");if((!o||/ $/.test(o.data))&&!a&&c[0]===" "&&(c=c.substr(1)),!c){l=K6(l);continue}l.data=c,o=l}else if(l.nodeType===1)n(l)||l.nodeName==="BR"?(o&&(o.data=o.data.replace(/ $/,"")),o=null,a=!1):r(l)||i(l)?(o=null,a=!0):o&&(a=!1);else{l=K6(l);continue}var u=ppe(s,l,i);s=l,l=u}o&&(o.data=o.data.replace(/ $/,""),o.data||K6(o))}}function K6(e){var t=e.nextSibling||e.parentNode;return e.parentNode.removeChild(e),t}function ppe(e,t,n){return e&&e.parentNode===t||n(t)?t.nextSibling||t.parentNode:t.firstChild||t.nextSibling||t.parentNode}var HX=typeof window<"u"?window:{};function Cbn(){var e=HX.DOMParser,t=!1;try{new e().parseFromString("","text/html")&&(t=!0)}catch{}return t}function wbn(){var e=function(){};return Tbn()?e.prototype.parseFromString=function(t){var n=new window.ActiveXObject("htmlfile");return n.designMode="on",n.open(),n.write(t),n.close(),n}:e.prototype.parseFromString=function(t){var n=document.implementation.createHTMLDocument("");return n.open(),n.write(t),n.close(),n},e}function Tbn(){var e=!1;try{document.implementation.createHTMLDocument("").open()}catch{HX.ActiveXObject&&(e=!0)}return e}var xbn=Cbn()?HX.DOMParser:wbn();function Obn(e,t){var n;if(typeof e=="string"){var r=Rbn().parseFromString('<x-turndown id="turndown-root">'+e+"</x-turndown>","text/html");n=r.getElementById("turndown-root")}else n=e.cloneNode(!0);return Ebn({element:n,isBlock:BX,isVoid:k5e,isPre:t.preformattedCode?Ibn:null}),n}var Q6;function Rbn(){return Q6=Q6||new xbn,Q6}function Ibn(e){return e.nodeName==="PRE"||e.nodeName==="CODE"}function Abn(e,t){return e.isBlock=BX(e),e.isCode=e.nodeName==="CODE"||e.parentNode.isCode,e.isBlank=Nbn(e),e.flankingWhitespace=Mbn(e,t),e}function Nbn(e){return!k5e(e)&&!ybn(e)&&/^\s*$/i.test(e.textContent)&&!bbn(e)&&!_bn(e)}function Mbn(e,t){if(e.isBlock||t.preformattedCode&&e.isCode)return{leading:"",trailing:""};var n=kbn(e.textContent);return n.leadingAscii&&hpe("left",e,t)&&(n.leading=n.leadingNonAscii),n.trailingAscii&&hpe("right",e,t)&&(n.trailing=n.trailingNonAscii),{leading:n.leading,trailing:n.trailing}}function kbn(e){var t=e.match(/^(([ \t\r\n]*)(\s*))(?:(?=\S)[\s\S]*\S)?((\s*?)([ \t\r\n]*))$/);return{leading:t[1],leadingAscii:t[2],leadingNonAscii:t[3],trailing:t[4],trailingNonAscii:t[5],trailingAscii:t[6]}}function hpe(e,t,n){var r,i,o;return e==="left"?(r=t.previousSibling,i=/ $/):(r=t.nextSibling,i=/^ /),r&&(r.nodeType===3?o=i.test(r.nodeValue):n.preformattedCode&&r.nodeName==="CODE"?o=!1:r.nodeType===1&&!BX(r)&&(o=i.test(r.textContent))),o}var Pbn=Array.prototype.reduce,Dbn=[[/\\/g,"\\\\"],[/\*/g,"\\*"],[/^-/g,"\\-"],[/^\+ /g,"\\+ "],[/^(=+)/g,"\\$1"],[/^(#{1,6}) /g,"\\$1 "],[/`/g,"\\`"],[/^~~~/g,"\\~~~"],[/\[/g,"\\["],[/\]/g,"\\]"],[/^>/g,"\\>"],[/_/g,"\\_"],[/^(\d+)\. /g,"$1\\. "]];function O4(e){if(!(this instanceof O4))return new O4(e);var t={rules:$s,headingStyle:"setext",hr:"* * *",bulletListMarker:"*",codeBlockStyle:"indented",fence:"```",emDelimiter:"_",strongDelimiter:"**",linkStyle:"inlined",linkReferenceStyle:"full",br:" ",preformattedCode:!1,blankReplacement:function(n,r){return r.isBlock?`
`:""},keepReplacement:function(n,r){return r.isBlock?`
`+r.outerHTML+`
`:r.outerHTML},defaultReplacement:function(n,r){return r.isBlock?`
`+n+`
`:n}};this.options=hbn({},t,e),this.rules=new L5e(this.options)}O4.prototype={turndown:function(e){if(!Fbn(e))throw new TypeError(e+" is not a string, or an element/document/fragment node.");if(e==="")return"";var t=$5e.call(this,new Obn(e,this.options));return Lbn.call(this,t)},use:function(e){if(Array.isArray(e))for(var t=0;t<e.length;t++)this.use(e[t]);else if(typeof e=="function")e(this);else throw new TypeError("plugin must be a Function or an Array of Functions");return this},addRule:function(e,t){return this.rules.add(e,t),this},keep:function(e){return this.rules.keep(e),this},remove:function(e){return this.rules.remove(e),this},escape:function(e){return Dbn.reduce(function(t,n){return t.replace(n[0],n[1])},e)}};function $5e(e){var t=this;return Pbn.call(e.childNodes,function(n,r){r=new Abn(r,t.options);var i="";return r.nodeType===3?i=r.isCode?r.nodeValue:t.escape(r.nodeValue):r.nodeType===1&&(i=$bn.call(t,r)),F5e(n,i)},"")}function Lbn(e){var t=this;return this.rules.forEach(function(n){typeof n.append=="function"&&(e=F5e(e,n.append(t.options)))}),e.replace(/^[\t\r\n]+/,"").replace(/[\t\r\n\s]+$/,"")}function $bn(e){var t=this.rules.forNode(e),n=$5e.call(this,e),r=e.flankingWhitespace;return(r.leading||r.trailing)&&(n=n.trim()),r.leading+t.replacement(n,e,this.options)+r.trailing}function F5e(e,t){var n=gbn(e),r=mbn(t),i=Math.max(e.length-n.length,t.length-r.length),o=`
`.substring(0,i);return n+o+r}function Fbn(e){return e!=null&&(typeof e=="string"||e.nodeType&&(e.nodeType===1||e.nodeType===9||e.nodeType===11))}const Bbn=Cu({html:!0,linkify:!0,typographer:!0}),B5e=new O4({headingStyle:"atx",hr:"---",bulletListMarker:"-",codeBlockStyle:"fenced",fence:"```",emDelimiter:"_",strongDelimiter:"**",linkStyle:"inlined",linkReferenceStyle:"full",preformattedCode:!1});B5e.keep(e=>!(e&&e.nodeName==="DIV"));const R4=e=>{if(!e)return e;const t=Bbn.render(e).trim();if(!t)return e;const n=new DOMParser().parseFromString(t,"text/html");let r="";for(let i=0;i<n.body.children.length;i++){const o=n.body.children[i];i==0&&o.tagName==="P"?r+=o.innerHTML:r+=o.querySelector("img")?o.innerHTML:o.outerHTML}return r},jbn=e=>e&&B5e.turndown(e);yr("aie-header",H4e);yr("aie-footer",U4e);const Hbn={theme:"light",lang:"zh",contentRetentionKey:"ai-editor-content",editable:!0,draggable:!0,placeholder:"",toolbarSize:"small"};class Ubn extends frn{constructor(t,n={}){super(n),nn(this,"aiEditor"),this.aiEditor=t}parseHtml(t){function n(r){return new window.DOMParser().parseFromString(`<body>${r}</body>`,"text/html").body}return Ay.fromSchema(this.schema).parse(n(t),{}).content}parseMarkdown(t){const n=R4(t);return this.parseHtml(n)}insertMarkdown(t){this.commands.insertContent(R4(t))}}class zbn{constructor(t){nn(this,"customLayout",!1),nn(this,"innerEditor"),nn(this,"container"),nn(this,"header"),nn(this,"mainEl"),nn(this,"footer"),nn(this,"options"),nn(this,"eventComponents",[]),this.options={...Hbn,...t},this.initI18nAndInnerEditor()}initI18nAndInnerEditor(){const t=this.options.i18n||{},n={de:{translation:{..._1n,...t.de}},en:{translation:{...y1n,...t.en}},pt:{translation:{...S1n,...t.pt}},zh:{translation:{...b1n,...t.zh}},es:{translation:{...E1n,...t.es}},hi:{translation:{...C1n,...t.hi}},id:{translation:{...w1n,...t.id}},ja:{translation:{...T1n,...t.ja}},ko:{translation:{...x1n,...t.ko}},th:{translation:{...O1n,...t.th}},vi:{translation:{...R1n,...t.vi}}};for(let r of Object.keys(t))r!="de"&&r!="en"&&r!="pt"&&r!="zh"&&(n[r]={translation:{...t[r]}});ss.init({lng:this.options.lang,resources:n},(r,i)=>{this.initInnerEditor()})}initInnerEditor(){const t=typeof this.options.element=="string"?document.querySelector(this.options.element):this.options.element;t.classList.add(`aie-theme-${this.options.theme}`),this.container=t.querySelector(".aie-container"),this.container?this.customLayout=!0:(this.container=document.createElement("div"),this.container.classList.add("aie-container")),t.appendChild(this.container),this.mainEl=document.createElement("div"),this.mainEl.style.flexGrow="1",this.mainEl.style.overflow="auto",this.header=new H4e,this.eventComponents.push(this.header),this.footer=new U4e,this.footer.initDraggable(this.options.draggable),this.eventComponents.push(this.footer);let n=this.options.content;if(n&&this.options.contentIsMarkdown&&(n=R4(n)),this.options.contentRetention&&this.options.contentRetentionKey){const r=localStorage.getItem(this.options.contentRetentionKey);if(r)try{n=JSON.parse(r)}catch(i){console.error(i,"Can not parse the cache content from localStorage.")}}this.innerEditor=new Ubn(this,{element:this.mainEl,content:n,editable:this.options.editable,extensions:this.getExtensions(),onCreate:r=>this.onCreate(r),onTransaction:r=>this.onTransaction(r),onFocus:()=>{var r,i;return(i=(r=this.options)==null?void 0:r.onFocus)==null?void 0:i.call(r,this)},onBlur:()=>{var r,i;return(i=(r=this.options)==null?void 0:r.onBlur)==null?void 0:i.call(r,this)},onDestroy:()=>{var r,i;return(i=(r=this.options)==null?void 0:r.onDestroy)==null?void 0:i.call(r,this)},editorProps:{attributes:{class:"aie-content"}}})}getExtensions(){let t=v1n(this,this.options);if(this.options.onCreateBefore){const n=this.options.onCreateBefore(this,t);n&&(t=n)}return t}onCreate(t){this.innerEditor.view.dom.style.height="calc(100% - 20px)",this.eventComponents.forEach(n=>{n.onCreate&&n.onCreate(t,this.options)}),(this.container.querySelector(".aie-container-header")||this.container).appendChild(this.header),(this.container.querySelector(".aie-container-main")||this.container).appendChild(this.mainEl),(this.container.querySelector(".aie-container-footer")||this.container).appendChild(this.footer),this.options.ai&&Sg.init(this.innerEditor,this.options.ai),this.options.onCreated&&this.options.onCreated(this)}onTransaction(t){var n,r;if(this.eventComponents.forEach(i=>{i.onTransaction&&i.onTransaction(t)}),!t.transaction.getMeta("ignoreChanged")&&((r=(n=this.options).onTransaction)==null||r.call(n,this,t.transaction),t.transaction.docChanged&&this.options.onChange&&this.options.onChange(this),t.transaction.docChanged&&this.options.contentRetention&&this.options.contentRetentionKey)){const i=t.editor.getHTML();if(i==="<p></p>"||i==="")localStorage.removeItem(this.options.contentRetentionKey);else{const o=t.editor.getJSON();localStorage.setItem(this.options.contentRetentionKey,JSON.stringify(o))}}}getHtml(){return this.innerEditor.getHTML()}getJson(){return this.innerEditor.getJSON()}getText(){return this.innerEditor.getText()}getSelectedText(){const t=this.innerEditor.state.selection;return t.empty?"":r9(this.innerEditor.state.doc,{from:t.from,to:t.to})}getMarkdown(){return jbn(this.getHtml())}getOptions(){return this.options}getAttributes(t){return this.innerEditor.getAttributes(t)}setAttributes(t,n){this.innerEditor.commands.updateAttributes(t,n)}isActive(t,n){return typeof t=="object"||!n?this.innerEditor.isActive(t):this.innerEditor.isActive(t,n)}commands(){return this.innerEditor.commands}commandsChain(){return this.innerEditor.chain()}getOutline(){const t=this.innerEditor.state.doc,n=[];return t.descendants((r,i)=>{if(r.type.name==="heading"){const o=`aie-heading-${n.length+1}`;if(r.attrs.id!==o){const{state:{tr:s},view:{dispatch:l}}=this.innerEditor;l(s.setNodeMarkup(i,void 0,{...r.attrs,id:o}).setMeta("ignoreChanged",!0))}let a="";r.descendants(s=>{s.text&&(a+=s.text)}),n.push({id:o,text:a,level:r.attrs.level,pos:i,size:r.nodeSize})}}),n}focus(){return this.innerEditor.commands.focus(),this}focusPos(t){return this.innerEditor.commands.focus(t),this}focusStart(){return this.innerEditor.commands.focus("start"),this}focusEnd(){return this.innerEditor.commands.focus("end"),this}isFocused(){return this.innerEditor.isFocused}blur(){return this.innerEditor.commands.blur(),this}insert(t){return this.innerEditor.commands.insertContent(t),this}insertMarkdown(t){return this.innerEditor.insertMarkdown(t),this}setEditable(t){return this.options.editable=t,this.innerEditor.setEditable(t,!0),this.eventComponents.forEach(n=>{n.onEditableChange(t)}),this}setContent(t){return this.focus().clear().insert(t),this}setMarkdownContent(t){const n=R4(t);return this.setContent(n)}clear(){return this.innerEditor.commands.clearContent(!0),this}isEmpty(){return this.innerEditor.isEmpty}changeLang(t){return this.destroy(),this.options.lang=t,ss.changeLanguage(t),this.initInnerEditor(),this}removeRetention(){return this.options.contentRetentionKey&&localStorage.removeItem(this.options.contentRetentionKey),this}destroy(){var t,n;(n=(t=this.options).onDestroy)==null||n.call(t,this),this.innerEditor.destroy(),this.eventComponents=[],this.customLayout?(this.header.remove(),this.mainEl.remove(),this.footer.remove()):this.container.remove()}isDestroyed(){return this.innerEditor.isDestroyed}}const Vbn=({placeholder:e,defaultValue:t,value:n,style:r,toolbarKeys:i,onChange:o,...a})=>{const{isDarkMode:s}=BG(),l=p.useRef(null),c=p.useRef(null);return p.useEffect(()=>{if(l.current){if(!c.current){const u=new zbn({element:l.current,theme:s?"dark":"light",placeholder:e,content:t,toolbarKeys:i,image:{uploadUrl:tw(),uploadFormName:"file",uploadHeaders:{Authorization:"Bearer "+localStorage.getItem(Jm)},uploader:(d,f,h,m)=>{console.log("uploader:",d,f,h,m);const g=En(new Date).format("YYYYMMDDHHmmss")+"_"+d.name,v=new FormData;return v.append("file",d),v.append("file_name",g),v.append("file_type",d.type),v.append("is_avatar","false"),v.append("kb_type",M8),v.append("category_uid",""),v.append("kb_uid",""),v.append("client",wr),new Promise((y,b)=>{fetch(f,{method:"POST",headers:{Accept:"application/json",...h},body:v}).then(_=>_.json()).then(_=>{if(console.log("upload data:",_),_.code===200){Wt.destroy(),Wt.success(`${g} 上传成功`);const E={errorCode:0,data:{src:_.data.fileUrl,alt:g}};y(E)}else Wt.destroy(),Wt.error(`${g} 上传失败`)}).catch(_=>{b(_)})})}},video:{uploadUrl:tw(),uploadFormName:"file",uploadHeaders:{Authorization:"Bearer "+localStorage.getItem(Jm)},uploader:(d,f,h,m)=>{console.log("uploader:",d,f,h,m);const g=En(new Date).format("YYYYMMDDHHmmss")+"_"+d.name,v=new FormData;return v.append("file",d),v.append("file_name",g),v.append("file_type",d.type),v.append("is_avatar","false"),v.append("kb_type",M8),v.append("category_uid",""),v.append("kb_uid",""),v.append("client",wr),new Promise((y,b)=>{fetch(f,{method:"POST",headers:{Accept:"application/json",...h},body:v}).then(_=>_.json()).then(_=>{if(console.log("upload data:",_),_.code===200){Wt.destroy(),Wt.success(`${g} 上传成功`);const E={errorCode:0,data:{src:_.data.fileUrl,poster:"https://www.weiyuai.cn/avatars/video_poster.png"}};y(E)}else Wt.destroy(),Wt.error(`${g} 上传失败`)}).catch(_=>{b(_)})})}},attachment:{uploadUrl:tw(),uploadFormName:"file",uploadHeaders:{Authorization:"Bearer "+localStorage.getItem(Jm)},uploader:(d,f,h,m)=>{console.log("uploader:",d,f,h,m);const g=En(new Date).format("YYYYMMDDHHmmss")+"_"+d.name,v=new FormData;return v.append("file",d),v.append("file_name",g),v.append("file_type",d.type),v.append("is_avatar","false"),v.append("kb_type",M8),v.append("category_uid",""),v.append("kb_uid",""),v.append("client",wr),new Promise((y,b)=>{fetch(f,{method:"POST",headers:{Accept:"application/json",...h},body:v}).then(_=>_.json()).then(_=>{if(console.log("upload data:",_),_.code===200){Wt.destroy(),Wt.success(`${g} 上传成功`);const E={errorCode:0,data:{href:_.data.fileUrl,fileName:g}};y(E)}else Wt.destroy(),Wt.error(`${g} 上传失败`)}).catch(_=>{b(_)})})}},onChange:d=>{typeof o=="function"&&o(d.getHtml(),d.getMarkdown())}});c.current=u}return()=>{c.current&&(c.current.destroy(),c.current=null)}}},[]),p.useEffect(()=>{c.current&&n!==c.current.getHtml()&&c.current.setContent(n||"")},[n]),H.jsx(H.Fragment,{children:H.jsx("div",{ref:l,...a,style:{height:"100%",...r}})})},{Header:Gbn,Content:Wbn}=uo,qbn=Po(uo)`
height: 100vh;
`,Ybn=Po(Gbn)`
padding: 0 24px;
display: flex;
background: #fff;
justify-content: space-between;
align-items: center;
box-shadow: 0 1px 4px rgba(0, 21, 41, 0.08);
z-index: 100;
`,Kbn=Po(Wbn)`
height: calc(100vh - 64px);
padding: 24px;
overflow: auto;
`,Qbn=()=>{const e=Si(),{articleUid:t}=$Y(),n=Aa(),{currentKbase:r,fetchKbaseDetail:i}=Lg(),{currentArticle:o,fetchArticle:a,saving:s}=aO(),[l,c]=ce.useState(""),[u,d]=ce.useState(!0),[f,h]=ce.useState(!1);console.log("articleUid:",t);const m=async y=>{try{await i(y)}finally{d(!1)}},g=async()=>{if(t){d(!0);try{await a(t),c((o==null?void 0:o.contentMarkdown)||"")}finally{d(!1)}}};ce.useEffect(()=>{g(),o!=null&&o.kbUid&&m(o==null?void 0:o.kbUid)},[o==null?void 0:o.uid,r==null?void 0:r.uid]);const v=async()=>{if(!o)return;const y={...o,contentHtml:l,contentMarkdown:l},b=await IQ(y);console.log("updateArticle response:",b.data,y),b.data.code===200?Wt.success("保存成功"):Wt.error(b.data.message)};return u||!o?H.jsx("div",{style:{textAlign:"center",padding:"50px"},children:H.jsx(Ac,{size:"large"})}):H.jsxs(qbn,{children:[H.jsxs(Ybn,{children:[H.jsxs(Xi,{children:[H.jsx($n,{icon:H.jsx(Pxe,{}),onClick:async()=>{await v(),n(`/kbase/${r==null?void 0:r.uid}`)},children:"返回"}),H.jsx("span",{style:{fontSize:16},children:o==null?void 0:o.title})]}),H.jsxs(Xi,{children:[H.jsx($n,{icon:H.jsx(RS,{}),onClick:async()=>{await v(),n(`/article/${o==null?void 0:o.uid}`)},children:"预览"}),H.jsx($n,{icon:H.jsx(fY,{}),onClick:()=>h(!0),children:"设置"}),H.jsx($n,{type:"primary",icon:H.jsx(Kgt,{}),loading:s,onClick:v,children:"保存"})]})]}),H.jsx(Kbn,{children:H.jsx(Vbn,{placeholder:e.formatMessage({id:"agent.settings.unknown.answer.placeholder",defaultMessage:"请输入未知问题固定回复"}),value:l,toolbarKeys:oGe(),style:{height:"100%",width:"100%"},onChange:y=>{c(y)}})}),f&&H.jsx(dZt,{article:o,visible:f,onClose:()=>h(!1)})]})},UX=function(e){if(e==null)return eyn;if(typeof e=="string")return Jbn(e);if(typeof e=="object")return Array.isArray(e)?Xbn(e):Zbn(e);if(typeof e=="function")return S9(e);throw new Error("Expected function, string, or object as test")};function Xbn(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=UX(e[n]);return S9(r);function r(...i){let o=-1;for(;++o<t.length;)if(t[o].call(this,...i))return!0;return!1}}function Zbn(e){return S9(t);function t(n){let r;for(r in e)if(n[r]!==e[r])return!1;return!0}}function Jbn(e){return S9(t);function t(n){return n&&n.type===e}}function S9(e){return t;function t(n,...r){return!!(n&&typeof n=="object"&&"type"in n&&e.call(this,n,...r))}}function eyn(){return!0}const tyn=!0,mpe=!1,nyn="skip",j5e=function(e,t,n,r){typeof t=="function"&&typeof n!="function"&&(r=n,n=t,t=null);const i=UX(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 f=typeof u.tagName=="string"?u.tagName:typeof u.name=="string"?u.name:void 0;Object.defineProperty(d,"name",{value:"node ("+(s.type+(f?"<"+f+">":""))+")"})}return d;function d(){let f=[],h,m,g;if((!t||i(s,l,c[c.length-1]||null))&&(f=ryn(n(s,c)),f[0]===mpe))return f;if(s.children&&f[0]!==nyn)for(m=(r?s.children.length:-1)+o,g=c.concat(s);m>-1&&m<s.children.length;){if(h=a(s.children[m],m,g)(),h[0]===mpe)return h;m=typeof h[1]=="number"?h[1]:m+o}return f}}};function ryn(e){return Array.isArray(e)?e:typeof e=="number"?[tyn,e]:[e]}const zX=function(e,t,n,r){typeof t=="function"&&typeof n!="function"&&(r=n,n=t,t=null),j5e(e,t,i,r);function i(o,a){const s=a[a.length-1];return n(o,s?s.children.indexOf(o):null,s)}},VX={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}}},hf={}.hasOwnProperty,X6={root:{children:gpe},doctype:oyn,comment:ayn,element:{tagName:U5e,properties:syn,children:gpe},text:{value:uyn},"*":{data:vpe,position:vpe}};function iyn(e,t){let n={type:"root",children:[]};if(e&&typeof e=="object"&&e.type){const r=H5e(Object.assign({},VX,t||{}),e,[]);r&&(Array.isArray(r)?r.length===1?n=r[0]:n.children=r:n=r)}return n}function H5e(e,t,n){const r=t&&t.type,i={type:t.type};let o;if(hf.call(X6,r)){let a=X6[r];if(typeof a=="function"&&(a=a(e,t)),a){const s=Object.assign({},a,X6["*"]);let l;o=!0;for(l in s)if(hf.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 gpe(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=H5e(e,t[o],r);a&&(Array.isArray(a)?i.push(...a):i.push(a))}n.type==="element"&&r.pop()}return i}function oyn(e){return e.allowDoctypes?{name:lyn}:void 0}function ayn(e){return e.allowComments?{value:cyn}:void 0}function syn(e,t,n,r){const i=U5e(e,n.tagName,n,r),o=e.attributes||{},a=e.required||{},s=t||{},l=Object.assign({},bpe(o["*"]),bpe(i&&hf.call(o,i)?o[i]:[])),c={};let u;for(u in s)if(hf.call(s,u)){let d=s[u],f;if(hf.call(l,u))f=l[u];else if(pyn(u)&&hf.call(l,"data*"))f=l["data*"];else continue;d=Array.isArray(d)?dyn(e,d,u,f):z5e(e,d,u,f),d!=null&&(c[u]=d)}if(i&&hf.call(a,i))for(u in a[i])hf.call(c,u)||(c[u]=a[i][u]);return c}function lyn(){return"html"}function U5e(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&&hf.call(e.ancestors,i)){for(;++o<e.ancestors[i].length;)if(r.includes(e.ancestors[i][o]))return i;return!1}return i}function cyn(e,t){const n=typeof t=="string"?t:"",r=n.indexOf("-->");return r<0?n:n.slice(0,r)}function uyn(e,t){return typeof t=="string"?t:""}function vpe(e,t){return t}function dyn(e,t,n,r){let i=-1;const o=[];for(;++i<t.length;){const a=z5e(e,t[i],n,r);a!=null&&o.push(a)}return o}function z5e(e,t,n,r){if((typeof t=="boolean"||typeof t=="number"||typeof t=="string")&&fyn(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 fyn(e,t,n){const r=String(t),i=r.indexOf(":"),o=r.indexOf("?"),a=r.indexOf("#"),s=r.indexOf("/"),l=e.protocols&&hf.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 bpe(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 pyn(e){return e.length>4&&e.slice(0,4).toLowerCase()==="data"}var Gd={};const hyn=[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];Gd.REPLACEMENT_CHARACTER="<22>";Gd.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};Gd.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]};Gd.isSurrogate=function(e){return e>=55296&&e<=57343};Gd.isSurrogatePair=function(e){return e>=56320&&e<=57343};Gd.getSurrogatePairCodePoint=function(e,t){return(e-55296)*1024+9216+t};Gd.isControlCodePoint=function(e){return e!==32&&e!==10&&e!==13&&e!==9&&e!==12&&e>=1&&e<=31||e>=127&&e<=159};Gd.isUndefinedCodePoint=function(e){return e>=64976&&e<=65007||hyn.indexOf(e)>-1};var GX={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 Db=Gd,Z6=GX,l1=Db.CODE_POINTS,myn=65536;let gyn=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=myn}_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(Db.isSurrogatePair(n))return this.pos++,this._addGap(),Db.getSurrogatePairCodePoint(t,n)}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,l1.EOF;return this._err(Z6.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,l1.EOF;let t=this.html.charCodeAt(this.pos);return this.skipNextNewLine&&t===l1.LINE_FEED?(this.skipNextNewLine=!1,this._addGap(),this.advance()):t===l1.CARRIAGE_RETURN?(this.skipNextNewLine=!0,l1.LINE_FEED):(this.skipNextNewLine=!1,Db.isSurrogate(t)&&(t=this._processSurrogate(t)),t>31&&t<127||t===l1.LINE_FEED||t===l1.CARRIAGE_RETURN||t>159&&t<64976||this._checkForProblematicCharacters(t),t)}_checkForProblematicCharacters(t){Db.isControlCodePoint(t)?this._err(Z6.controlCharacterInInputStream):Db.isUndefinedCodePoint(t)&&this._err(Z6.noncharacterInInputStream)}retreat(){this.pos===this.lastGapPos&&(this.lastGapPos=this.gapStack.pop(),this.pos--),this.pos--}};var vyn=gyn,byn=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 yyn=vyn,Mi=Gd,K1=byn,Kt=GX,Xe=Mi.CODE_POINTS,c1=Mi.CODE_POINT_SEQUENCES,_yn={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},V5e=1,G5e=2,W5e=4,Syn=V5e|G5e|W5e,jr="DATA_STATE",Lb="RCDATA_STATE",zC="RAWTEXT_STATE",wp="SCRIPT_DATA_STATE",q5e="PLAINTEXT_STATE",ype="TAG_OPEN_STATE",_pe="END_TAG_OPEN_STATE",J6="TAG_NAME_STATE",Spe="RCDATA_LESS_THAN_SIGN_STATE",Epe="RCDATA_END_TAG_OPEN_STATE",Cpe="RCDATA_END_TAG_NAME_STATE",wpe="RAWTEXT_LESS_THAN_SIGN_STATE",Tpe="RAWTEXT_END_TAG_OPEN_STATE",xpe="RAWTEXT_END_TAG_NAME_STATE",Ope="SCRIPT_DATA_LESS_THAN_SIGN_STATE",Rpe="SCRIPT_DATA_END_TAG_OPEN_STATE",Ipe="SCRIPT_DATA_END_TAG_NAME_STATE",Ape="SCRIPT_DATA_ESCAPE_START_STATE",Npe="SCRIPT_DATA_ESCAPE_START_DASH_STATE",Lu="SCRIPT_DATA_ESCAPED_STATE",Mpe="SCRIPT_DATA_ESCAPED_DASH_STATE",e7="SCRIPT_DATA_ESCAPED_DASH_DASH_STATE",xI="SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN_STATE",kpe="SCRIPT_DATA_ESCAPED_END_TAG_OPEN_STATE",Ppe="SCRIPT_DATA_ESCAPED_END_TAG_NAME_STATE",Dpe="SCRIPT_DATA_DOUBLE_ESCAPE_START_STATE",dp="SCRIPT_DATA_DOUBLE_ESCAPED_STATE",Lpe="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_STATE",$pe="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH_STATE",OI="SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN_STATE",Fpe="SCRIPT_DATA_DOUBLE_ESCAPE_END_STATE",Xd="BEFORE_ATTRIBUTE_NAME_STATE",RI="ATTRIBUTE_NAME_STATE",t7="AFTER_ATTRIBUTE_NAME_STATE",n7="BEFORE_ATTRIBUTE_VALUE_STATE",II="ATTRIBUTE_VALUE_DOUBLE_QUOTED_STATE",AI="ATTRIBUTE_VALUE_SINGLE_QUOTED_STATE",NI="ATTRIBUTE_VALUE_UNQUOTED_STATE",r7="AFTER_ATTRIBUTE_VALUE_QUOTED_STATE",Uh="SELF_CLOSING_START_TAG_STATE",lC="BOGUS_COMMENT_STATE",Bpe="MARKUP_DECLARATION_OPEN_STATE",jpe="COMMENT_START_STATE",Hpe="COMMENT_START_DASH_STATE",zh="COMMENT_STATE",Upe="COMMENT_LESS_THAN_SIGN_STATE",zpe="COMMENT_LESS_THAN_SIGN_BANG_STATE",Vpe="COMMENT_LESS_THAN_SIGN_BANG_DASH_STATE",Gpe="COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH_STATE",MI="COMMENT_END_DASH_STATE",kI="COMMENT_END_STATE",Wpe="COMMENT_END_BANG_STATE",qpe="DOCTYPE_STATE",PI="BEFORE_DOCTYPE_NAME_STATE",DI="DOCTYPE_NAME_STATE",Ype="AFTER_DOCTYPE_NAME_STATE",Kpe="AFTER_DOCTYPE_PUBLIC_KEYWORD_STATE",Qpe="BEFORE_DOCTYPE_PUBLIC_IDENTIFIER_STATE",i7="DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED_STATE",o7="DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED_STATE",a7="AFTER_DOCTYPE_PUBLIC_IDENTIFIER_STATE",Xpe="BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS_STATE",Zpe="AFTER_DOCTYPE_SYSTEM_KEYWORD_STATE",Jpe="BEFORE_DOCTYPE_SYSTEM_IDENTIFIER_STATE",cC="DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED_STATE",uC="DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED_STATE",s7="AFTER_DOCTYPE_SYSTEM_IDENTIFIER_STATE",fp="BOGUS_DOCTYPE_STATE",LI="CDATA_SECTION_STATE",ehe="CDATA_SECTION_BRACKET_STATE",the="CDATA_SECTION_END_STATE",Sb="CHARACTER_REFERENCE_STATE",nhe="NAMED_CHARACTER_REFERENCE_STATE",rhe="AMBIGUOS_AMPERSAND_STATE",ihe="NUMERIC_CHARACTER_REFERENCE_STATE",ohe="HEXADEMICAL_CHARACTER_REFERENCE_START_STATE",ahe="DECIMAL_CHARACTER_REFERENCE_START_STATE",she="HEXADEMICAL_CHARACTER_REFERENCE_STATE",lhe="DECIMAL_CHARACTER_REFERENCE_STATE",dC="NUMERIC_CHARACTER_REFERENCE_END_STATE";function eo(e){return e===Xe.SPACE||e===Xe.LINE_FEED||e===Xe.TABULATION||e===Xe.FORM_FEED}function kw(e){return e>=Xe.DIGIT_0&&e<=Xe.DIGIT_9}function Uu(e){return e>=Xe.LATIN_CAPITAL_A&&e<=Xe.LATIN_CAPITAL_Z}function y1(e){return e>=Xe.LATIN_SMALL_A&&e<=Xe.LATIN_SMALL_Z}function om(e){return y1(e)||Uu(e)}function l7(e){return om(e)||kw(e)}function Y5e(e){return e>=Xe.LATIN_CAPITAL_A&&e<=Xe.LATIN_CAPITAL_F}function K5e(e){return e>=Xe.LATIN_SMALL_A&&e<=Xe.LATIN_SMALL_F}function Eyn(e){return kw(e)||Y5e(e)||K5e(e)}function vN(e){return e+32}function Lo(e){return e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode(e>>>10&1023|55296)+String.fromCharCode(56320|e&1023))}function Vh(e){return String.fromCharCode(vN(e))}function che(e,t){const n=K1[++e];let r=++e,i=r+n-1;for(;r<=i;){const o=r+i>>>1,a=K1[o];if(a<t)r=o+1;else if(a>t)i=o-1;else return K1[o+n]}return-1}let Nu=class ll{constructor(){this.preprocessor=new yyn,this.tokenQueue=[],this.allowCDATA=!1,this.state=jr,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:ll.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===Xe.EOF){o=!1;break}if(c=t[s],l!==c&&(r||l!==vN(c))){o=!1;break}}if(!o)for(;i--;)this._unconsume();return o}_isTempBufferEqualToScriptString(){if(this.tempBuff.length!==c1.SCRIPT_STRING.length)return!1;for(let t=0;t<this.tempBuff.length;t++)if(this.tempBuff[t]!==c1.SCRIPT_STRING[t])return!1;return!0}_createStartTagToken(){this.currentToken={type:ll.START_TAG_TOKEN,tagName:"",selfClosing:!1,ackSelfClosing:!1,attrs:[]}}_createEndTagToken(){this.currentToken={type:ll.END_TAG_TOKEN,tagName:"",selfClosing:!1,attrs:[]}}_createCommentToken(){this.currentToken={type:ll.COMMENT_TOKEN,data:""}}_createDoctypeToken(t){this.currentToken={type:ll.DOCTYPE_TOKEN,name:t,forceQuirks:!1,publicId:null,systemId:null}}_createCharacterToken(t,n){this.currentCharacterToken={type:t,chars:n}}_createEOFToken(){this.currentToken={type:ll.EOF_TOKEN}}_createAttr(t){this.currentAttr={name:t,value:""}}_leaveAttrName(t){ll.getTokenAttr(this.currentToken,this.currentAttr.name)===null?this.currentToken.attrs.push(this.currentAttr):this._err(Kt.duplicateAttribute),this.state=t}_leaveAttrValue(t){this.state=t}_emitCurrentToken(){this._emitCurrentCharacterToken();const t=this.currentToken;this.currentToken=null,t.type===ll.START_TAG_TOKEN?this.lastStartTagName=t.tagName:t.type===ll.END_TAG_TOKEN&&(t.attrs.length>0&&this._err(Kt.endTagWithAttributes),t.selfClosing&&this._err(Kt.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=ll.CHARACTER_TOKEN;eo(t)?n=ll.WHITESPACE_CHARACTER_TOKEN:t===Xe.NULL&&(n=ll.NULL_CHARACTER_TOKEN),this._appendCharToCurrentCharacterToken(n,Lo(t))}_emitSeveralCodePoints(t){for(let n=0;n<t.length;n++)this._emitCodePoint(t[n])}_emitChars(t){this._appendCharToCurrentCharacterToken(ll.CHARACTER_TOKEN,t)}_matchNamedCharacterReference(t){let n=null,r=1,i=che(0,t);for(this.tempBuff.push(t);i>-1;){const o=K1[i],a=o<Syn;a&&o&V5e&&(n=o&G5e?[K1[++i],K1[++i]]:[K1[++i]],r=0);const l=this._consume();if(this.tempBuff.push(l),r++,l===Xe.EOF)break;a?i=o&W5e?che(i,l):-1:i=l===o?++i:-1}for(;r--;)this.tempBuff.pop(),this._unconsume();return n}_isCharacterReferenceInAttribute(){return this.returnState===II||this.returnState===AI||this.returnState===NI}_isCharacterReferenceAttributeQuirk(t){if(!t&&this._isCharacterReferenceInAttribute()){const n=this._consume();return this._unconsume(),n===Xe.EQUALS_SIGN||l7(n)}return!1}_flushCodePointsConsumedAsCharacterReference(){if(this._isCharacterReferenceInAttribute())for(let t=0;t<this.tempBuff.length;t++)this.currentAttr.value+=Lo(this.tempBuff[t]);else this._emitSeveralCodePoints(this.tempBuff);this.tempBuff=[]}[jr](t){this.preprocessor.dropParsedChunk(),t===Xe.LESS_THAN_SIGN?this.state=ype:t===Xe.AMPERSAND?(this.returnState=jr,this.state=Sb):t===Xe.NULL?(this._err(Kt.unexpectedNullCharacter),this._emitCodePoint(t)):t===Xe.EOF?this._emitEOFToken():this._emitCodePoint(t)}[Lb](t){this.preprocessor.dropParsedChunk(),t===Xe.AMPERSAND?(this.returnState=Lb,this.state=Sb):t===Xe.LESS_THAN_SIGN?this.state=Spe:t===Xe.NULL?(this._err(Kt.unexpectedNullCharacter),this._emitChars(Mi.REPLACEMENT_CHARACTER)):t===Xe.EOF?this._emitEOFToken():this._emitCodePoint(t)}[zC](t){this.preprocessor.dropParsedChunk(),t===Xe.LESS_THAN_SIGN?this.state=wpe:t===Xe.NULL?(this._err(Kt.unexpectedNullCharacter),this._emitChars(Mi.REPLACEMENT_CHARACTER)):t===Xe.EOF?this._emitEOFToken():this._emitCodePoint(t)}[wp](t){this.preprocessor.dropParsedChunk(),t===Xe.LESS_THAN_SIGN?this.state=Ope:t===Xe.NULL?(this._err(Kt.unexpectedNullCharacter),this._emitChars(Mi.REPLACEMENT_CHARACTER)):t===Xe.EOF?this._emitEOFToken():this._emitCodePoint(t)}[q5e](t){this.preprocessor.dropParsedChunk(),t===Xe.NULL?(this._err(Kt.unexpectedNullCharacter),this._emitChars(Mi.REPLACEMENT_CHARACTER)):t===Xe.EOF?this._emitEOFToken():this._emitCodePoint(t)}[ype](t){t===Xe.EXCLAMATION_MARK?this.state=Bpe:t===Xe.SOLIDUS?this.state=_pe:om(t)?(this._createStartTagToken(),this._reconsumeInState(J6)):t===Xe.QUESTION_MARK?(this._err(Kt.unexpectedQuestionMarkInsteadOfTagName),this._createCommentToken(),this._reconsumeInState(lC)):t===Xe.EOF?(this._err(Kt.eofBeforeTagName),this._emitChars("<"),this._emitEOFToken()):(this._err(Kt.invalidFirstCharacterOfTagName),this._emitChars("<"),this._reconsumeInState(jr))}[_pe](t){om(t)?(this._createEndTagToken(),this._reconsumeInState(J6)):t===Xe.GREATER_THAN_SIGN?(this._err(Kt.missingEndTagName),this.state=jr):t===Xe.EOF?(this._err(Kt.eofBeforeTagName),this._emitChars("</"),this._emitEOFToken()):(this._err(Kt.invalidFirstCharacterOfTagName),this._createCommentToken(),this._reconsumeInState(lC))}[J6](t){eo(t)?this.state=Xd:t===Xe.SOLIDUS?this.state=Uh:t===Xe.GREATER_THAN_SIGN?(this.state=jr,this._emitCurrentToken()):Uu(t)?this.currentToken.tagName+=Vh(t):t===Xe.NULL?(this._err(Kt.unexpectedNullCharacter),this.currentToken.tagName+=Mi.REPLACEMENT_CHARACTER):t===Xe.EOF?(this._err(Kt.eofInTag),this._emitEOFToken()):this.currentToken.tagName+=Lo(t)}[Spe](t){t===Xe.SOLIDUS?(this.tempBuff=[],this.state=Epe):(this._emitChars("<"),this._reconsumeInState(Lb))}[Epe](t){om(t)?(this._createEndTagToken(),this._reconsumeInState(Cpe)):(this._emitChars("</"),this._reconsumeInState(Lb))}[Cpe](t){if(Uu(t))this.currentToken.tagName+=Vh(t),this.tempBuff.push(t);else if(y1(t))this.currentToken.tagName+=Lo(t),this.tempBuff.push(t);else{if(this.lastStartTagName===this.currentToken.tagName){if(eo(t)){this.state=Xd;return}if(t===Xe.SOLIDUS){this.state=Uh;return}if(t===Xe.GREATER_THAN_SIGN){this.state=jr,this._emitCurrentToken();return}}this._emitChars("</"),this._emitSeveralCodePoints(this.tempBuff),this._reconsumeInState(Lb)}}[wpe](t){t===Xe.SOLIDUS?(this.tempBuff=[],this.state=Tpe):(this._emitChars("<"),this._reconsumeInState(zC))}[Tpe](t){om(t)?(this._createEndTagToken(),this._reconsumeInState(xpe)):(this._emitChars("</"),this._reconsumeInState(zC))}[xpe](t){if(Uu(t))this.currentToken.tagName+=Vh(t),this.tempBuff.push(t);else if(y1(t))this.currentToken.tagName+=Lo(t),this.tempBuff.push(t);else{if(this.lastStartTagName===this.currentToken.tagName){if(eo(t)){this.state=Xd;return}if(t===Xe.SOLIDUS){this.state=Uh;return}if(t===Xe.GREATER_THAN_SIGN){this._emitCurrentToken(),this.state=jr;return}}this._emitChars("</"),this._emitSeveralCodePoints(this.tempBuff),this._reconsumeInState(zC)}}[Ope](t){t===Xe.SOLIDUS?(this.tempBuff=[],this.state=Rpe):t===Xe.EXCLAMATION_MARK?(this.state=Ape,this._emitChars("<!")):(this._emitChars("<"),this._reconsumeInState(wp))}[Rpe](t){om(t)?(this._createEndTagToken(),this._reconsumeInState(Ipe)):(this._emitChars("</"),this._reconsumeInState(wp))}[Ipe](t){if(Uu(t))this.currentToken.tagName+=Vh(t),this.tempBuff.push(t);else if(y1(t))this.currentToken.tagName+=Lo(t),this.tempBuff.push(t);else{if(this.lastStartTagName===this.currentToken.tagName){if(eo(t)){this.state=Xd;return}else if(t===Xe.SOLIDUS){this.state=Uh;return}else if(t===Xe.GREATER_THAN_SIGN){this._emitCurrentToken(),this.state=jr;return}}this._emitChars("</"),this._emitSeveralCodePoints(this.tempBuff),this._reconsumeInState(wp)}}[Ape](t){t===Xe.HYPHEN_MINUS?(this.state=Npe,this._emitChars("-")):this._reconsumeInState(wp)}[Npe](t){t===Xe.HYPHEN_MINUS?(this.state=e7,this._emitChars("-")):this._reconsumeInState(wp)}[Lu](t){t===Xe.HYPHEN_MINUS?(this.state=Mpe,this._emitChars("-")):t===Xe.LESS_THAN_SIGN?this.state=xI:t===Xe.NULL?(this._err(Kt.unexpectedNullCharacter),this._emitChars(Mi.REPLACEMENT_CHARACTER)):t===Xe.EOF?(this._err(Kt.eofInScriptHtmlCommentLikeText),this._emitEOFToken()):this._emitCodePoint(t)}[Mpe](t){t===Xe.HYPHEN_MINUS?(this.state=e7,this._emitChars("-")):t===Xe.LESS_THAN_SIGN?this.state=xI:t===Xe.NULL?(this._err(Kt.unexpectedNullCharacter),this.state=Lu,this._emitChars(Mi.REPLACEMENT_CHARACTER)):t===Xe.EOF?(this._err(Kt.eofInScriptHtmlCommentLikeText),this._emitEOFToken()):(this.state=Lu,this._emitCodePoint(t))}[e7](t){t===Xe.HYPHEN_MINUS?this._emitChars("-"):t===Xe.LESS_THAN_SIGN?this.state=xI:t===Xe.GREATER_THAN_SIGN?(this.state=wp,this._emitChars(">")):t===Xe.NULL?(this._err(Kt.unexpectedNullCharacter),this.state=Lu,this._emitChars(Mi.REPLACEMENT_CHARACTER)):t===Xe.EOF?(this._err(Kt.eofInScriptHtmlCommentLikeText),this._emitEOFToken()):(this.state=Lu,this._emitCodePoint(t))}[xI](t){t===Xe.SOLIDUS?(this.tempBuff=[],this.state=kpe):om(t)?(this.tempBuff=[],this._emitChars("<"),this._reconsumeInState(Dpe)):(this._emitChars("<"),this._reconsumeInState(Lu))}[kpe](t){om(t)?(this._createEndTagToken(),this._reconsumeInState(Ppe)):(this._emitChars("</"),this._reconsumeInState(Lu))}[Ppe](t){if(Uu(t))this.currentToken.tagName+=Vh(t),this.tempBuff.push(t);else if(y1(t))this.currentToken.tagName+=Lo(t),this.tempBuff.push(t);else{if(this.lastStartTagName===this.currentToken.tagName){if(eo(t)){this.state=Xd;return}if(t===Xe.SOLIDUS){this.state=Uh;return}if(t===Xe.GREATER_THAN_SIGN){this._emitCurrentToken(),this.state=jr;return}}this._emitChars("</"),this._emitSeveralCodePoints(this.tempBuff),this._reconsumeInState(Lu)}}[Dpe](t){eo(t)||t===Xe.SOLIDUS||t===Xe.GREATER_THAN_SIGN?(this.state=this._isTempBufferEqualToScriptString()?dp:Lu,this._emitCodePoint(t)):Uu(t)?(this.tempBuff.push(vN(t)),this._emitCodePoint(t)):y1(t)?(this.tempBuff.push(t),this._emitCodePoint(t)):this._reconsumeInState(Lu)}[dp](t){t===Xe.HYPHEN_MINUS?(this.state=Lpe,this._emitChars("-")):t===Xe.LESS_THAN_SIGN?(this.state=OI,this._emitChars("<")):t===Xe.NULL?(this._err(Kt.unexpectedNullCharacter),this._emitChars(Mi.REPLACEMENT_CHARACTER)):t===Xe.EOF?(this._err(Kt.eofInScriptHtmlCommentLikeText),this._emitEOFToken()):this._emitCodePoint(t)}[Lpe](t){t===Xe.HYPHEN_MINUS?(this.state=$pe,this._emitChars("-")):t===Xe.LESS_THAN_SIGN?(this.state=OI,this._emitChars("<")):t===Xe.NULL?(this._err(Kt.unexpectedNullCharacter),this.state=dp,this._emitChars(Mi.REPLACEMENT_CHARACTER)):t===Xe.EOF?(this._err(Kt.eofInScriptHtmlCommentLikeText),this._emitEOFToken()):(this.state=dp,this._emitCodePoint(t))}[$pe](t){t===Xe.HYPHEN_MINUS?this._emitChars("-"):t===Xe.LESS_THAN_SIGN?(this.state=OI,this._emitChars("<")):t===Xe.GREATER_THAN_SIGN?(this.state=wp,this._emitChars(">")):t===Xe.NULL?(this._err(Kt.unexpectedNullCharacter),this.state=dp,this._emitChars(Mi.REPLACEMENT_CHARACTER)):t===Xe.EOF?(this._err(Kt.eofInScriptHtmlCommentLikeText),this._emitEOFToken()):(this.state=dp,this._emitCodePoint(t))}[OI](t){t===Xe.SOLIDUS?(this.tempBuff=[],this.state=Fpe,this._emitChars("/")):this._reconsumeInState(dp)}[Fpe](t){eo(t)||t===Xe.SOLIDUS||t===Xe.GREATER_THAN_SIGN?(this.state=this._isTempBufferEqualToScriptString()?Lu:dp,this._emitCodePoint(t)):Uu(t)?(this.tempBuff.push(vN(t)),this._emitCodePoint(t)):y1(t)?(this.tempBuff.push(t),this._emitCodePoint(t)):this._reconsumeInState(dp)}[Xd](t){eo(t)||(t===Xe.SOLIDUS||t===Xe.GREATER_THAN_SIGN||t===Xe.EOF?this._reconsumeInState(t7):t===Xe.EQUALS_SIGN?(this._err(Kt.unexpectedEqualsSignBeforeAttributeName),this._createAttr("="),this.state=RI):(this._createAttr(""),this._reconsumeInState(RI)))}[RI](t){eo(t)||t===Xe.SOLIDUS||t===Xe.GREATER_THAN_SIGN||t===Xe.EOF?(this._leaveAttrName(t7),this._unconsume()):t===Xe.EQUALS_SIGN?this._leaveAttrName(n7):Uu(t)?this.currentAttr.name+=Vh(t):t===Xe.QUOTATION_MARK||t===Xe.APOSTROPHE||t===Xe.LESS_THAN_SIGN?(this._err(Kt.unexpectedCharacterInAttributeName),this.currentAttr.name+=Lo(t)):t===Xe.NULL?(this._err(Kt.unexpectedNullCharacter),this.currentAttr.name+=Mi.REPLACEMENT_CHARACTER):this.currentAttr.name+=Lo(t)}[t7](t){eo(t)||(t===Xe.SOLIDUS?this.state=Uh:t===Xe.EQUALS_SIGN?this.state=n7:t===Xe.GREATER_THAN_SIGN?(this.state=jr,this._emitCurrentToken()):t===Xe.EOF?(this._err(Kt.eofInTag),this._emitEOFToken()):(this._createAttr(""),this._reconsumeInState(RI)))}[n7](t){eo(t)||(t===Xe.QUOTATION_MARK?this.state=II:t===Xe.APOSTROPHE?this.state=AI:t===Xe.GREATER_THAN_SIGN?(this._err(Kt.missingAttributeValue),this.state=jr,this._emitCurrentToken()):this._reconsumeInState(NI))}[II](t){t===Xe.QUOTATION_MARK?this.state=r7:t===Xe.AMPERSAND?(this.returnState=II,this.state=Sb):t===Xe.NULL?(this._err(Kt.unexpectedNullCharacter),this.currentAttr.value+=Mi.REPLACEMENT_CHARACTER):t===Xe.EOF?(this._err(Kt.eofInTag),this._emitEOFToken()):this.currentAttr.value+=Lo(t)}[AI](t){t===Xe.APOSTROPHE?this.state=r7:t===Xe.AMPERSAND?(this.returnState=AI,this.state=Sb):t===Xe.NULL?(this._err(Kt.unexpectedNullCharacter),this.currentAttr.value+=Mi.REPLACEMENT_CHARACTER):t===Xe.EOF?(this._err(Kt.eofInTag),this._emitEOFToken()):this.currentAttr.value+=Lo(t)}[NI](t){eo(t)?this._leaveAttrValue(Xd):t===Xe.AMPERSAND?(this.returnState=NI,this.state=Sb):t===Xe.GREATER_THAN_SIGN?(this._leaveAttrValue(jr),this._emitCurrentToken()):t===Xe.NULL?(this._err(Kt.unexpectedNullCharacter),this.currentAttr.value+=Mi.REPLACEMENT_CHARACTER):t===Xe.QUOTATION_MARK||t===Xe.APOSTROPHE||t===Xe.LESS_THAN_SIGN||t===Xe.EQUALS_SIGN||t===Xe.GRAVE_ACCENT?(this._err(Kt.unexpectedCharacterInUnquotedAttributeValue),this.currentAttr.value+=Lo(t)):t===Xe.EOF?(this._err(Kt.eofInTag),this._emitEOFToken()):this.currentAttr.value+=Lo(t)}[r7](t){eo(t)?this._leaveAttrValue(Xd):t===Xe.SOLIDUS?this._leaveAttrValue(Uh):t===Xe.GREATER_THAN_SIGN?(this._leaveAttrValue(jr),this._emitCurrentToken()):t===Xe.EOF?(this._err(Kt.eofInTag),this._emitEOFToken()):(this._err(Kt.missingWhitespaceBetweenAttributes),this._reconsumeInState(Xd))}[Uh](t){t===Xe.GREATER_THAN_SIGN?(this.currentToken.selfClosing=!0,this.state=jr,this._emitCurrentToken()):t===Xe.EOF?(this._err(Kt.eofInTag),this._emitEOFToken()):(this._err(Kt.unexpectedSolidusInTag),this._reconsumeInState(Xd))}[lC](t){t===Xe.GREATER_THAN_SIGN?(this.state=jr,this._emitCurrentToken()):t===Xe.EOF?(this._emitCurrentToken(),this._emitEOFToken()):t===Xe.NULL?(this._err(Kt.unexpectedNullCharacter),this.currentToken.data+=Mi.REPLACEMENT_CHARACTER):this.currentToken.data+=Lo(t)}[Bpe](t){this._consumeSequenceIfMatch(c1.DASH_DASH_STRING,t,!0)?(this._createCommentToken(),this.state=jpe):this._consumeSequenceIfMatch(c1.DOCTYPE_STRING,t,!1)?this.state=qpe:this._consumeSequenceIfMatch(c1.CDATA_START_STRING,t,!0)?this.allowCDATA?this.state=LI:(this._err(Kt.cdataInHtmlContent),this._createCommentToken(),this.currentToken.data="[CDATA[",this.state=lC):this._ensureHibernation()||(this._err(Kt.incorrectlyOpenedComment),this._createCommentToken(),this._reconsumeInState(lC))}[jpe](t){t===Xe.HYPHEN_MINUS?this.state=Hpe:t===Xe.GREATER_THAN_SIGN?(this._err(Kt.abruptClosingOfEmptyComment),this.state=jr,this._emitCurrentToken()):this._reconsumeInState(zh)}[Hpe](t){t===Xe.HYPHEN_MINUS?this.state=kI:t===Xe.GREATER_THAN_SIGN?(this._err(Kt.abruptClosingOfEmptyComment),this.state=jr,this._emitCurrentToken()):t===Xe.EOF?(this._err(Kt.eofInComment),this._emitCurrentToken(),this._emitEOFToken()):(this.currentToken.data+="-",this._reconsumeInState(zh))}[zh](t){t===Xe.HYPHEN_MINUS?this.state=MI:t===Xe.LESS_THAN_SIGN?(this.currentToken.data+="<",this.state=Upe):t===Xe.NULL?(this._err(Kt.unexpectedNullCharacter),this.currentToken.data+=Mi.REPLACEMENT_CHARACTER):t===Xe.EOF?(this._err(Kt.eofInComment),this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.data+=Lo(t)}[Upe](t){t===Xe.EXCLAMATION_MARK?(this.currentToken.data+="!",this.state=zpe):t===Xe.LESS_THAN_SIGN?this.currentToken.data+="!":this._reconsumeInState(zh)}[zpe](t){t===Xe.HYPHEN_MINUS?this.state=Vpe:this._reconsumeInState(zh)}[Vpe](t){t===Xe.HYPHEN_MINUS?this.state=Gpe:this._reconsumeInState(MI)}[Gpe](t){t!==Xe.GREATER_THAN_SIGN&&t!==Xe.EOF&&this._err(Kt.nestedComment),this._reconsumeInState(kI)}[MI](t){t===Xe.HYPHEN_MINUS?this.state=kI:t===Xe.EOF?(this._err(Kt.eofInComment),this._emitCurrentToken(),this._emitEOFToken()):(this.currentToken.data+="-",this._reconsumeInState(zh))}[kI](t){t===Xe.GREATER_THAN_SIGN?(this.state=jr,this._emitCurrentToken()):t===Xe.EXCLAMATION_MARK?this.state=Wpe:t===Xe.HYPHEN_MINUS?this.currentToken.data+="-":t===Xe.EOF?(this._err(Kt.eofInComment),this._emitCurrentToken(),this._emitEOFToken()):(this.currentToken.data+="--",this._reconsumeInState(zh))}[Wpe](t){t===Xe.HYPHEN_MINUS?(this.currentToken.data+="--!",this.state=MI):t===Xe.GREATER_THAN_SIGN?(this._err(Kt.incorrectlyClosedComment),this.state=jr,this._emitCurrentToken()):t===Xe.EOF?(this._err(Kt.eofInComment),this._emitCurrentToken(),this._emitEOFToken()):(this.currentToken.data+="--!",this._reconsumeInState(zh))}[qpe](t){eo(t)?this.state=PI:t===Xe.GREATER_THAN_SIGN?this._reconsumeInState(PI):t===Xe.EOF?(this._err(Kt.eofInDoctype),this._createDoctypeToken(null),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(Kt.missingWhitespaceBeforeDoctypeName),this._reconsumeInState(PI))}[PI](t){eo(t)||(Uu(t)?(this._createDoctypeToken(Vh(t)),this.state=DI):t===Xe.NULL?(this._err(Kt.unexpectedNullCharacter),this._createDoctypeToken(Mi.REPLACEMENT_CHARACTER),this.state=DI):t===Xe.GREATER_THAN_SIGN?(this._err(Kt.missingDoctypeName),this._createDoctypeToken(null),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=jr):t===Xe.EOF?(this._err(Kt.eofInDoctype),this._createDoctypeToken(null),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._createDoctypeToken(Lo(t)),this.state=DI))}[DI](t){eo(t)?this.state=Ype:t===Xe.GREATER_THAN_SIGN?(this.state=jr,this._emitCurrentToken()):Uu(t)?this.currentToken.name+=Vh(t):t===Xe.NULL?(this._err(Kt.unexpectedNullCharacter),this.currentToken.name+=Mi.REPLACEMENT_CHARACTER):t===Xe.EOF?(this._err(Kt.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.name+=Lo(t)}[Ype](t){eo(t)||(t===Xe.GREATER_THAN_SIGN?(this.state=jr,this._emitCurrentToken()):t===Xe.EOF?(this._err(Kt.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this._consumeSequenceIfMatch(c1.PUBLIC_STRING,t,!1)?this.state=Kpe:this._consumeSequenceIfMatch(c1.SYSTEM_STRING,t,!1)?this.state=Zpe:this._ensureHibernation()||(this._err(Kt.invalidCharacterSequenceAfterDoctypeName),this.currentToken.forceQuirks=!0,this._reconsumeInState(fp)))}[Kpe](t){eo(t)?this.state=Qpe:t===Xe.QUOTATION_MARK?(this._err(Kt.missingWhitespaceAfterDoctypePublicKeyword),this.currentToken.publicId="",this.state=i7):t===Xe.APOSTROPHE?(this._err(Kt.missingWhitespaceAfterDoctypePublicKeyword),this.currentToken.publicId="",this.state=o7):t===Xe.GREATER_THAN_SIGN?(this._err(Kt.missingDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this.state=jr,this._emitCurrentToken()):t===Xe.EOF?(this._err(Kt.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(Kt.missingQuoteBeforeDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(fp))}[Qpe](t){eo(t)||(t===Xe.QUOTATION_MARK?(this.currentToken.publicId="",this.state=i7):t===Xe.APOSTROPHE?(this.currentToken.publicId="",this.state=o7):t===Xe.GREATER_THAN_SIGN?(this._err(Kt.missingDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this.state=jr,this._emitCurrentToken()):t===Xe.EOF?(this._err(Kt.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(Kt.missingQuoteBeforeDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(fp)))}[i7](t){t===Xe.QUOTATION_MARK?this.state=a7:t===Xe.NULL?(this._err(Kt.unexpectedNullCharacter),this.currentToken.publicId+=Mi.REPLACEMENT_CHARACTER):t===Xe.GREATER_THAN_SIGN?(this._err(Kt.abruptDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=jr):t===Xe.EOF?(this._err(Kt.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.publicId+=Lo(t)}[o7](t){t===Xe.APOSTROPHE?this.state=a7:t===Xe.NULL?(this._err(Kt.unexpectedNullCharacter),this.currentToken.publicId+=Mi.REPLACEMENT_CHARACTER):t===Xe.GREATER_THAN_SIGN?(this._err(Kt.abruptDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=jr):t===Xe.EOF?(this._err(Kt.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.publicId+=Lo(t)}[a7](t){eo(t)?this.state=Xpe:t===Xe.GREATER_THAN_SIGN?(this.state=jr,this._emitCurrentToken()):t===Xe.QUOTATION_MARK?(this._err(Kt.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),this.currentToken.systemId="",this.state=cC):t===Xe.APOSTROPHE?(this._err(Kt.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),this.currentToken.systemId="",this.state=uC):t===Xe.EOF?(this._err(Kt.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(Kt.missingQuoteBeforeDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(fp))}[Xpe](t){eo(t)||(t===Xe.GREATER_THAN_SIGN?(this._emitCurrentToken(),this.state=jr):t===Xe.QUOTATION_MARK?(this.currentToken.systemId="",this.state=cC):t===Xe.APOSTROPHE?(this.currentToken.systemId="",this.state=uC):t===Xe.EOF?(this._err(Kt.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(Kt.missingQuoteBeforeDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(fp)))}[Zpe](t){eo(t)?this.state=Jpe:t===Xe.QUOTATION_MARK?(this._err(Kt.missingWhitespaceAfterDoctypeSystemKeyword),this.currentToken.systemId="",this.state=cC):t===Xe.APOSTROPHE?(this._err(Kt.missingWhitespaceAfterDoctypeSystemKeyword),this.currentToken.systemId="",this.state=uC):t===Xe.GREATER_THAN_SIGN?(this._err(Kt.missingDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this.state=jr,this._emitCurrentToken()):t===Xe.EOF?(this._err(Kt.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(Kt.missingQuoteBeforeDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(fp))}[Jpe](t){eo(t)||(t===Xe.QUOTATION_MARK?(this.currentToken.systemId="",this.state=cC):t===Xe.APOSTROPHE?(this.currentToken.systemId="",this.state=uC):t===Xe.GREATER_THAN_SIGN?(this._err(Kt.missingDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this.state=jr,this._emitCurrentToken()):t===Xe.EOF?(this._err(Kt.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(Kt.missingQuoteBeforeDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(fp)))}[cC](t){t===Xe.QUOTATION_MARK?this.state=s7:t===Xe.NULL?(this._err(Kt.unexpectedNullCharacter),this.currentToken.systemId+=Mi.REPLACEMENT_CHARACTER):t===Xe.GREATER_THAN_SIGN?(this._err(Kt.abruptDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=jr):t===Xe.EOF?(this._err(Kt.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.systemId+=Lo(t)}[uC](t){t===Xe.APOSTROPHE?this.state=s7:t===Xe.NULL?(this._err(Kt.unexpectedNullCharacter),this.currentToken.systemId+=Mi.REPLACEMENT_CHARACTER):t===Xe.GREATER_THAN_SIGN?(this._err(Kt.abruptDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=jr):t===Xe.EOF?(this._err(Kt.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.systemId+=Lo(t)}[s7](t){eo(t)||(t===Xe.GREATER_THAN_SIGN?(this._emitCurrentToken(),this.state=jr):t===Xe.EOF?(this._err(Kt.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(Kt.unexpectedCharacterAfterDoctypeSystemIdentifier),this._reconsumeInState(fp)))}[fp](t){t===Xe.GREATER_THAN_SIGN?(this._emitCurrentToken(),this.state=jr):t===Xe.NULL?this._err(Kt.unexpectedNullCharacter):t===Xe.EOF&&(this._emitCurrentToken(),this._emitEOFToken())}[LI](t){t===Xe.RIGHT_SQUARE_BRACKET?this.state=ehe:t===Xe.EOF?(this._err(Kt.eofInCdata),this._emitEOFToken()):this._emitCodePoint(t)}[ehe](t){t===Xe.RIGHT_SQUARE_BRACKET?this.state=the:(this._emitChars("]"),this._reconsumeInState(LI))}[the](t){t===Xe.GREATER_THAN_SIGN?this.state=jr:t===Xe.RIGHT_SQUARE_BRACKET?this._emitChars("]"):(this._emitChars("]]"),this._reconsumeInState(LI))}[Sb](t){this.tempBuff=[Xe.AMPERSAND],t===Xe.NUMBER_SIGN?(this.tempBuff.push(t),this.state=ihe):l7(t)?this._reconsumeInState(nhe):(this._flushCodePointsConsumedAsCharacterReference(),this._reconsumeInState(this.returnState))}[nhe](t){const n=this._matchNamedCharacterReference(t);if(this._ensureHibernation())this.tempBuff=[Xe.AMPERSAND];else if(n){const r=this.tempBuff[this.tempBuff.length-1]===Xe.SEMICOLON;this._isCharacterReferenceAttributeQuirk(r)||(r||this._errOnNextCodePoint(Kt.missingSemicolonAfterCharacterReference),this.tempBuff=n),this._flushCodePointsConsumedAsCharacterReference(),this.state=this.returnState}else this._flushCodePointsConsumedAsCharacterReference(),this.state=rhe}[rhe](t){l7(t)?this._isCharacterReferenceInAttribute()?this.currentAttr.value+=Lo(t):this._emitCodePoint(t):(t===Xe.SEMICOLON&&this._err(Kt.unknownNamedCharacterReference),this._reconsumeInState(this.returnState))}[ihe](t){this.charRefCode=0,t===Xe.LATIN_SMALL_X||t===Xe.LATIN_CAPITAL_X?(this.tempBuff.push(t),this.state=ohe):this._reconsumeInState(ahe)}[ohe](t){Eyn(t)?this._reconsumeInState(she):(this._err(Kt.absenceOfDigitsInNumericCharacterReference),this._flushCodePointsConsumedAsCharacterReference(),this._reconsumeInState(this.returnState))}[ahe](t){kw(t)?this._reconsumeInState(lhe):(this._err(Kt.absenceOfDigitsInNumericCharacterReference),this._flushCodePointsConsumedAsCharacterReference(),this._reconsumeInState(this.returnState))}[she](t){Y5e(t)?this.charRefCode=this.charRefCode*16+t-55:K5e(t)?this.charRefCode=this.charRefCode*16+t-87:kw(t)?this.charRefCode=this.charRefCode*16+t-48:t===Xe.SEMICOLON?this.state=dC:(this._err(Kt.missingSemicolonAfterCharacterReference),this._reconsumeInState(dC))}[lhe](t){kw(t)?this.charRefCode=this.charRefCode*10+t-48:t===Xe.SEMICOLON?this.state=dC:(this._err(Kt.missingSemicolonAfterCharacterReference),this._reconsumeInState(dC))}[dC](){if(this.charRefCode===Xe.NULL)this._err(Kt.nullCharacterReference),this.charRefCode=Xe.REPLACEMENT_CHARACTER;else if(this.charRefCode>1114111)this._err(Kt.characterReferenceOutsideUnicodeRange),this.charRefCode=Xe.REPLACEMENT_CHARACTER;else if(Mi.isSurrogate(this.charRefCode))this._err(Kt.surrogateCharacterReference),this.charRefCode=Xe.REPLACEMENT_CHARACTER;else if(Mi.isUndefinedCodePoint(this.charRefCode))this._err(Kt.noncharacterCharacterReference);else if(Mi.isControlCodePoint(this.charRefCode)||this.charRefCode===Xe.CARRIAGE_RETURN){this._err(Kt.controlCharacterReference);const t=_yn[this.charRefCode];t&&(this.charRefCode=t)}this.tempBuff=[this.charRefCode],this._flushCodePointsConsumedAsCharacterReference(),this._reconsumeInState(this.returnState)}};Nu.CHARACTER_TOKEN="CHARACTER_TOKEN";Nu.NULL_CHARACTER_TOKEN="NULL_CHARACTER_TOKEN";Nu.WHITESPACE_CHARACTER_TOKEN="WHITESPACE_CHARACTER_TOKEN";Nu.START_TAG_TOKEN="START_TAG_TOKEN";Nu.END_TAG_TOKEN="END_TAG_TOKEN";Nu.COMMENT_TOKEN="COMMENT_TOKEN";Nu.DOCTYPE_TOKEN="DOCTYPE_TOKEN";Nu.EOF_TOKEN="EOF_TOKEN";Nu.HIBERNATION_TOKEN="HIBERNATION_TOKEN";Nu.MODE={DATA:jr,RCDATA:Lb,RAWTEXT:zC,SCRIPT_DATA:wp,PLAINTEXT:q5e};Nu.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 E9=Nu,Wd={};const c7=Wd.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/"};Wd.ATTRS={TYPE:"type",ACTION:"action",ENCODING:"encoding",PROMPT:"prompt",NAME:"name",COLOR:"color",FACE:"face",SIZE:"size"};Wd.DOCUMENT_MODE={NO_QUIRKS:"no-quirks",QUIRKS:"quirks",LIMITED_QUIRKS:"limited-quirks"};const vn=Wd.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"};Wd.SPECIAL_ELEMENTS={[c7.HTML]:{[vn.ADDRESS]:!0,[vn.APPLET]:!0,[vn.AREA]:!0,[vn.ARTICLE]:!0,[vn.ASIDE]:!0,[vn.BASE]:!0,[vn.BASEFONT]:!0,[vn.BGSOUND]:!0,[vn.BLOCKQUOTE]:!0,[vn.BODY]:!0,[vn.BR]:!0,[vn.BUTTON]:!0,[vn.CAPTION]:!0,[vn.CENTER]:!0,[vn.COL]:!0,[vn.COLGROUP]:!0,[vn.DD]:!0,[vn.DETAILS]:!0,[vn.DIR]:!0,[vn.DIV]:!0,[vn.DL]:!0,[vn.DT]:!0,[vn.EMBED]:!0,[vn.FIELDSET]:!0,[vn.FIGCAPTION]:!0,[vn.FIGURE]:!0,[vn.FOOTER]:!0,[vn.FORM]:!0,[vn.FRAME]:!0,[vn.FRAMESET]:!0,[vn.H1]:!0,[vn.H2]:!0,[vn.H3]:!0,[vn.H4]:!0,[vn.H5]:!0,[vn.H6]:!0,[vn.HEAD]:!0,[vn.HEADER]:!0,[vn.HGROUP]:!0,[vn.HR]:!0,[vn.HTML]:!0,[vn.IFRAME]:!0,[vn.IMG]:!0,[vn.INPUT]:!0,[vn.LI]:!0,[vn.LINK]:!0,[vn.LISTING]:!0,[vn.MAIN]:!0,[vn.MARQUEE]:!0,[vn.MENU]:!0,[vn.META]:!0,[vn.NAV]:!0,[vn.NOEMBED]:!0,[vn.NOFRAMES]:!0,[vn.NOSCRIPT]:!0,[vn.OBJECT]:!0,[vn.OL]:!0,[vn.P]:!0,[vn.PARAM]:!0,[vn.PLAINTEXT]:!0,[vn.PRE]:!0,[vn.SCRIPT]:!0,[vn.SECTION]:!0,[vn.SELECT]:!0,[vn.SOURCE]:!0,[vn.STYLE]:!0,[vn.SUMMARY]:!0,[vn.TABLE]:!0,[vn.TBODY]:!0,[vn.TD]:!0,[vn.TEMPLATE]:!0,[vn.TEXTAREA]:!0,[vn.TFOOT]:!0,[vn.TH]:!0,[vn.THEAD]:!0,[vn.TITLE]:!0,[vn.TR]:!0,[vn.TRACK]:!0,[vn.UL]:!0,[vn.WBR]:!0,[vn.XMP]:!0},[c7.MATHML]:{[vn.MI]:!0,[vn.MO]:!0,[vn.MN]:!0,[vn.MS]:!0,[vn.MTEXT]:!0,[vn.ANNOTATION_XML]:!0},[c7.SVG]:{[vn.TITLE]:!0,[vn.FOREIGN_OBJECT]:!0,[vn.DESC]:!0}};const Q5e=Wd,Sn=Q5e.TAG_NAMES,Pi=Q5e.NAMESPACES;function uhe(e){switch(e.length){case 1:return e===Sn.P;case 2:return e===Sn.RB||e===Sn.RP||e===Sn.RT||e===Sn.DD||e===Sn.DT||e===Sn.LI;case 3:return e===Sn.RTC;case 6:return e===Sn.OPTION;case 8:return e===Sn.OPTGROUP}return!1}function Cyn(e){switch(e.length){case 1:return e===Sn.P;case 2:return e===Sn.RB||e===Sn.RP||e===Sn.RT||e===Sn.DD||e===Sn.DT||e===Sn.LI||e===Sn.TD||e===Sn.TH||e===Sn.TR;case 3:return e===Sn.RTC;case 5:return e===Sn.TBODY||e===Sn.TFOOT||e===Sn.THEAD;case 6:return e===Sn.OPTION;case 7:return e===Sn.CAPTION;case 8:return e===Sn.OPTGROUP||e===Sn.COLGROUP}return!1}function $I(e,t){switch(e.length){case 2:if(e===Sn.TD||e===Sn.TH)return t===Pi.HTML;if(e===Sn.MI||e===Sn.MO||e===Sn.MN||e===Sn.MS)return t===Pi.MATHML;break;case 4:if(e===Sn.HTML)return t===Pi.HTML;if(e===Sn.DESC)return t===Pi.SVG;break;case 5:if(e===Sn.TABLE)return t===Pi.HTML;if(e===Sn.MTEXT)return t===Pi.MATHML;if(e===Sn.TITLE)return t===Pi.SVG;break;case 6:return(e===Sn.APPLET||e===Sn.OBJECT)&&t===Pi.HTML;case 7:return(e===Sn.CAPTION||e===Sn.MARQUEE)&&t===Pi.HTML;case 8:return e===Sn.TEMPLATE&&t===Pi.HTML;case 13:return e===Sn.FOREIGN_OBJECT&&t===Pi.SVG;case 14:return e===Sn.ANNOTATION_XML&&t===Pi.MATHML}return!1}let wyn=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===Sn.TEMPLATE&&this.treeAdapter.getNamespaceURI(this.current)===Pi.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===Pi.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===Sn.H1||t===Sn.H2||t===Sn.H3||t===Sn.H4||t===Sn.H5||t===Sn.H6&&n===Pi.HTML)break}}popUntilTableCellPopped(){for(;this.stackTop>-1;){const t=this.currentTagName,n=this.treeAdapter.getNamespaceURI(this.current);if(this.pop(),t===Sn.TD||t===Sn.TH&&n===Pi.HTML)break}}popAllUpToHtmlElement(){this.stackTop=0,this._updateCurrentElement()}clearBackToTableContext(){for(;this.currentTagName!==Sn.TABLE&&this.currentTagName!==Sn.TEMPLATE&&this.currentTagName!==Sn.HTML||this.treeAdapter.getNamespaceURI(this.current)!==Pi.HTML;)this.pop()}clearBackToTableBodyContext(){for(;this.currentTagName!==Sn.TBODY&&this.currentTagName!==Sn.TFOOT&&this.currentTagName!==Sn.THEAD&&this.currentTagName!==Sn.TEMPLATE&&this.currentTagName!==Sn.HTML||this.treeAdapter.getNamespaceURI(this.current)!==Pi.HTML;)this.pop()}clearBackToTableRowContext(){for(;this.currentTagName!==Sn.TR&&this.currentTagName!==Sn.TEMPLATE&&this.currentTagName!==Sn.HTML||this.treeAdapter.getNamespaceURI(this.current)!==Pi.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)===Sn.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===Sn.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===Pi.HTML)return!0;if($I(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===Sn.H1||n===Sn.H2||n===Sn.H3||n===Sn.H4||n===Sn.H5||n===Sn.H6)&&r===Pi.HTML)return!0;if($I(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===Pi.HTML)return!0;if((r===Sn.UL||r===Sn.OL)&&i===Pi.HTML||$I(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===Pi.HTML)return!0;if(r===Sn.BUTTON&&i===Pi.HTML||$I(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])===Pi.HTML){if(r===t)return!0;if(r===Sn.TABLE||r===Sn.TEMPLATE||r===Sn.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])===Pi.HTML){if(n===Sn.TBODY||n===Sn.THEAD||n===Sn.TFOOT)return!0;if(n===Sn.TABLE||n===Sn.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])===Pi.HTML){if(r===t)return!0;if(r!==Sn.OPTION&&r!==Sn.OPTGROUP)return!1}}return!0}generateImpliedEndTags(){for(;uhe(this.currentTagName);)this.pop()}generateImpliedEndTagsThoroughly(){for(;Cyn(this.currentTagName);)this.pop()}generateImpliedEndTagsWithExclusion(t){for(;uhe(this.currentTagName)&&this.currentTagName!==t;)this.pop()}};var Tyn=wyn;const FI=3;let WX=class am{constructor(t){this.length=0,this.entries=[],this.treeAdapter=t,this.bookmark=null}_getNoahArkConditionCandidates(t){const n=[];if(this.length>=FI){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===am.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<FI?[]: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<FI)return}for(let s=r-1;s>=FI-1;s--)this.entries.splice(n[s].idx,1),this.length--}}insertMarker(){this.entries.push({type:am.MARKER_ENTRY}),this.length++}pushElement(t,n){this._ensureNoahArkCondition(t),this.entries.push({type:am.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:am.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===am.MARKER_ENTRY)break}}getElementEntryInScopeWithTagName(t){for(let n=this.length-1;n>=0;n--){const r=this.entries[n];if(r.type===am.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===am.ELEMENT_ENTRY&&r.element===t)return r}return null}};WX.MARKER_ENTRY="MARKER_ENTRY";WX.ELEMENT_ENTRY="ELEMENT_ENTRY";var xyn=WX;let X5e=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")}};X5e.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 kh=X5e;const Oyn=kh;let Ryn=class extends Oyn{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 Z5e=Ryn;const dhe=kh,u7=E9,Iyn=Z5e;let Ayn=class extends dhe{constructor(t){super(t),this.tokenizer=t,this.posTracker=dhe.install(t.preprocessor,Iyn),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===u7.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(u7.MODE).forEach(i=>{const o=u7.MODE[i];r[o]=function(a){t.ctLoc=t._getCurrentLocation(),n[o].call(this,a)}}),r}};var J5e=Ayn;const Nyn=kh;let Myn=class extends Nyn{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 kyn=Myn;const d7=kh,fhe=E9,Pyn=J5e,Dyn=kyn,Lyn=Wd,f7=Lyn.TAG_NAMES;let $yn=class extends d7{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===fhe.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=d7.install(this.tokenizer,Pyn);t.posTracker=o.posTracker,d7.install(this.openElements,Dyn,{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===fhe.END_TAG_TOKEN&&(r.tagName===f7.HTML||r.tagName===f7.BODY&&this.openElements.hasInScope(f7.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:f}=r.location;this.treeAdapter.updateNodeSourceCodeLocation(l,{endLine:u,endCol:d,endOffset:f})}else this.treeAdapter.setNodeSourceCodeLocation(l,r.location)}}}};var Fyn=$yn;const Byn=kh;let jyn=class extends Byn{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 qX=jyn;const Hyn=qX,Uyn=Z5e,zyn=kh;let Vyn=class extends Hyn{constructor(t,n){super(t,n),this.posTracker=zyn.install(t,Uyn),this.lastErrOffset=-1}_reportError(t){this.lastErrOffset!==this.posTracker.offset&&(this.lastErrOffset=this.posTracker.offset,super._reportError(t))}};var Gyn=Vyn;const Wyn=qX,qyn=Gyn,Yyn=kh;let Kyn=class extends Wyn{constructor(t,n){super(t,n);const r=Yyn.install(t.preprocessor,qyn,n);this.posTracker=r.posTracker}};var Qyn=Kyn;const Xyn=qX,Zyn=Qyn,Jyn=J5e,phe=kh;let e_n=class extends Xyn{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),phe.install(this.tokenizer,Zyn,t.opts),phe.install(this.tokenizer,Jyn)},_processInputToken(r){t.ctLoc=r.location,n._processInputToken.call(this,r)},_err(r,i){t.locBeforeToken=i&&i.beforeToken,t._reportError(r)}}}};var t_n=e_n,ii={};const{DOCUMENT_MODE:n_n}=Wd;ii.createDocument=function(){return{nodeName:"#document",mode:n_n.NO_QUIRKS,childNodes:[]}};ii.createDocumentFragment=function(){return{nodeName:"#document-fragment",childNodes:[]}};ii.createElement=function(e,t,n){return{nodeName:e,tagName:e,attrs:n,namespaceURI:t,childNodes:[],parentNode:null}};ii.createCommentNode=function(e){return{nodeName:"#comment",data:e,parentNode:null}};const eDe=function(e){return{nodeName:"#text",value:e,parentNode:null}},tDe=ii.appendChild=function(e,t){e.childNodes.push(t),t.parentNode=e},r_n=ii.insertBefore=function(e,t,n){const r=e.childNodes.indexOf(n);e.childNodes.splice(r,0,t),t.parentNode=e};ii.setTemplateContent=function(e,t){e.content=t};ii.getTemplateContent=function(e){return e.content};ii.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):tDe(e,{nodeName:"#documentType",name:t,publicId:n,systemId:r})};ii.setDocumentMode=function(e,t){e.mode=t};ii.getDocumentMode=function(e){return e.mode};ii.detachNode=function(e){if(e.parentNode){const t=e.parentNode.childNodes.indexOf(e);e.parentNode.childNodes.splice(t,1),e.parentNode=null}};ii.insertText=function(e,t){if(e.childNodes.length){const n=e.childNodes[e.childNodes.length-1];if(n.nodeName==="#text"){n.value+=t;return}}tDe(e,eDe(t))};ii.insertTextBefore=function(e,t,n){const r=e.childNodes[e.childNodes.indexOf(n)-1];r&&r.nodeName==="#text"?r.value+=t:r_n(e,eDe(t),n)};ii.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])};ii.getFirstChild=function(e){return e.childNodes[0]};ii.getChildNodes=function(e){return e.childNodes};ii.getParentNode=function(e){return e.parentNode};ii.getAttrList=function(e){return e.attrs};ii.getTagName=function(e){return e.tagName};ii.getNamespaceURI=function(e){return e.namespaceURI};ii.getTextNodeContent=function(e){return e.value};ii.getCommentNodeContent=function(e){return e.data};ii.getDocumentTypeNodeName=function(e){return e.name};ii.getDocumentTypeNodePublicId=function(e){return e.publicId};ii.getDocumentTypeNodeSystemId=function(e){return e.systemId};ii.isTextNode=function(e){return e.nodeName==="#text"};ii.isCommentNode=function(e){return e.nodeName==="#comment"};ii.isDocumentTypeNode=function(e){return e.nodeName==="#documentType"};ii.isElementNode=function(e){return!!e.tagName};ii.setNodeSourceCodeLocation=function(e,t){e.sourceCodeLocation=t};ii.getNodeSourceCodeLocation=function(e){return e.sourceCodeLocation};ii.updateNodeSourceCodeLocation=function(e,t){e.sourceCodeLocation=Object.assign(e.sourceCodeLocation,t)};var i_n=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))},C9={};const{DOCUMENT_MODE:Eb}=Wd,nDe="html",o_n="about:legacy-compat",a_n="http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd",rDe=["+//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//"],s_n=rDe.concat(["-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"]),l_n=["-//w3o//dtd w3 html strict 3.0//en//","-/w3c/dtd html 4.0 transitional/en","html"],iDe=["-//w3c//dtd xhtml 1.0 frameset//","-//w3c//dtd xhtml 1.0 transitional//"],c_n=iDe.concat(["-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"]);function hhe(e){const t=e.indexOf('"')!==-1?"'":'"';return t+e+t}function mhe(e,t){for(let n=0;n<t.length;n++)if(e.indexOf(t[n])===0)return!0;return!1}C9.isConforming=function(e){return e.name===nDe&&e.publicId===null&&(e.systemId===null||e.systemId===o_n)};C9.getDocumentMode=function(e){if(e.name!==nDe)return Eb.QUIRKS;const t=e.systemId;if(t&&t.toLowerCase()===a_n)return Eb.QUIRKS;let n=e.publicId;if(n!==null){if(n=n.toLowerCase(),l_n.indexOf(n)>-1)return Eb.QUIRKS;let r=t===null?s_n:rDe;if(mhe(n,r))return Eb.QUIRKS;if(r=t===null?iDe:c_n,mhe(n,r))return Eb.LIMITED_QUIRKS}return Eb.NO_QUIRKS};C9.serializeContent=function(e,t,n){let r="!DOCTYPE ";return e&&(r+=e),t?r+=" PUBLIC "+hhe(t):n&&(r+=" SYSTEM"),n!==null&&(r+=" "+hhe(n)),r};var jg={};const p7=E9,YX=Wd,ar=YX.TAG_NAMES,Xa=YX.NAMESPACES,bN=YX.ATTRS,ghe={TEXT_HTML:"text/html",APPLICATION_XML:"application/xhtml+xml"},u_n="definitionurl",d_n="definitionURL",f_n={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"},p_n={"xlink:actuate":{prefix:"xlink",name:"actuate",namespace:Xa.XLINK},"xlink:arcrole":{prefix:"xlink",name:"arcrole",namespace:Xa.XLINK},"xlink:href":{prefix:"xlink",name:"href",namespace:Xa.XLINK},"xlink:role":{prefix:"xlink",name:"role",namespace:Xa.XLINK},"xlink:show":{prefix:"xlink",name:"show",namespace:Xa.XLINK},"xlink:title":{prefix:"xlink",name:"title",namespace:Xa.XLINK},"xlink:type":{prefix:"xlink",name:"type",namespace:Xa.XLINK},"xml:base":{prefix:"xml",name:"base",namespace:Xa.XML},"xml:lang":{prefix:"xml",name:"lang",namespace:Xa.XML},"xml:space":{prefix:"xml",name:"space",namespace:Xa.XML},xmlns:{prefix:"",name:"xmlns",namespace:Xa.XMLNS},"xmlns:xlink":{prefix:"xmlns",name:"xlink",namespace:Xa.XMLNS}},h_n=jg.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"},m_n={[ar.B]:!0,[ar.BIG]:!0,[ar.BLOCKQUOTE]:!0,[ar.BODY]:!0,[ar.BR]:!0,[ar.CENTER]:!0,[ar.CODE]:!0,[ar.DD]:!0,[ar.DIV]:!0,[ar.DL]:!0,[ar.DT]:!0,[ar.EM]:!0,[ar.EMBED]:!0,[ar.H1]:!0,[ar.H2]:!0,[ar.H3]:!0,[ar.H4]:!0,[ar.H5]:!0,[ar.H6]:!0,[ar.HEAD]:!0,[ar.HR]:!0,[ar.I]:!0,[ar.IMG]:!0,[ar.LI]:!0,[ar.LISTING]:!0,[ar.MENU]:!0,[ar.META]:!0,[ar.NOBR]:!0,[ar.OL]:!0,[ar.P]:!0,[ar.PRE]:!0,[ar.RUBY]:!0,[ar.S]:!0,[ar.SMALL]:!0,[ar.SPAN]:!0,[ar.STRONG]:!0,[ar.STRIKE]:!0,[ar.SUB]:!0,[ar.SUP]:!0,[ar.TABLE]:!0,[ar.TT]:!0,[ar.U]:!0,[ar.UL]:!0,[ar.VAR]:!0};jg.causesExit=function(e){const t=e.tagName;return t===ar.FONT&&(p7.getTokenAttr(e,bN.COLOR)!==null||p7.getTokenAttr(e,bN.SIZE)!==null||p7.getTokenAttr(e,bN.FACE)!==null)?!0:m_n[t]};jg.adjustTokenMathMLAttrs=function(e){for(let t=0;t<e.attrs.length;t++)if(e.attrs[t].name===u_n){e.attrs[t].name=d_n;break}};jg.adjustTokenSVGAttrs=function(e){for(let t=0;t<e.attrs.length;t++){const n=f_n[e.attrs[t].name];n&&(e.attrs[t].name=n)}};jg.adjustTokenXMLAttrs=function(e){for(let t=0;t<e.attrs.length;t++){const n=p_n[e.attrs[t].name];n&&(e.attrs[t].prefix=n.prefix,e.attrs[t].name=n.name,e.attrs[t].namespace=n.namespace)}};jg.adjustTokenSVGTagName=function(e){const t=h_n[e.tagName];t&&(e.tagName=t)};function g_n(e,t){return t===Xa.MATHML&&(e===ar.MI||e===ar.MO||e===ar.MN||e===ar.MS||e===ar.MTEXT)}function v_n(e,t,n){if(t===Xa.MATHML&&e===ar.ANNOTATION_XML){for(let r=0;r<n.length;r++)if(n[r].name===bN.ENCODING){const i=n[r].value.toLowerCase();return i===ghe.TEXT_HTML||i===ghe.APPLICATION_XML}}return t===Xa.SVG&&(e===ar.FOREIGN_OBJECT||e===ar.DESC||e===ar.TITLE)}jg.isIntegrationPoint=function(e,t,n,r){return!!((!r||r===Xa.HTML)&&v_n(e,t,n)||(!r||r===Xa.MATHML)&&g_n(e,t))};const tt=E9,b_n=Tyn,vhe=xyn,y_n=Fyn,__n=t_n,bhe=kh,S_n=ii,E_n=i_n,yhe=C9,vf=jg,ns=GX,C_n=Gd,B0=Wd,Ee=B0.TAG_NAMES,Vn=B0.NAMESPACES,oDe=B0.ATTRS,w_n={scriptingEnabled:!0,sourceCodeLocationInfo:!1,onParseError:null,treeAdapter:S_n},aDe="hidden",T_n=8,x_n=3,sDe="INITIAL_MODE",KX="BEFORE_HTML_MODE",w9="BEFORE_HEAD_MODE",cE="IN_HEAD_MODE",lDe="IN_HEAD_NO_SCRIPT_MODE",T9="AFTER_HEAD_MODE",Df="IN_BODY_MODE",I4="TEXT_MODE",Ts="IN_TABLE_MODE",cDe="IN_TABLE_TEXT_MODE",x9="IN_CAPTION_MODE",vO="IN_COLUMN_GROUP_MODE",du="IN_TABLE_BODY_MODE",mh="IN_ROW_MODE",O9="IN_CELL_MODE",QX="IN_SELECT_MODE",XX="IN_SELECT_IN_TABLE_MODE",A4="IN_TEMPLATE_MODE",ZX="AFTER_BODY_MODE",R9="IN_FRAMESET_MODE",uDe="AFTER_FRAMESET_MODE",dDe="AFTER_AFTER_BODY_MODE",fDe="AFTER_AFTER_FRAMESET_MODE",O_n={[Ee.TR]:mh,[Ee.TBODY]:du,[Ee.THEAD]:du,[Ee.TFOOT]:du,[Ee.CAPTION]:x9,[Ee.COLGROUP]:vO,[Ee.TABLE]:Ts,[Ee.BODY]:Df,[Ee.FRAMESET]:R9},R_n={[Ee.CAPTION]:Ts,[Ee.COLGROUP]:Ts,[Ee.TBODY]:Ts,[Ee.TFOOT]:Ts,[Ee.THEAD]:Ts,[Ee.COL]:vO,[Ee.TR]:du,[Ee.TD]:mh,[Ee.TH]:mh},_he={[sDe]:{[tt.CHARACTER_TOKEN]:pC,[tt.NULL_CHARACTER_TOKEN]:pC,[tt.WHITESPACE_CHARACTER_TOKEN]:Gr,[tt.COMMENT_TOKEN]:va,[tt.DOCTYPE_TOKEN]:F_n,[tt.START_TAG_TOKEN]:pC,[tt.END_TAG_TOKEN]:pC,[tt.EOF_TOKEN]:pC},[KX]:{[tt.CHARACTER_TOKEN]:Pw,[tt.NULL_CHARACTER_TOKEN]:Pw,[tt.WHITESPACE_CHARACTER_TOKEN]:Gr,[tt.COMMENT_TOKEN]:va,[tt.DOCTYPE_TOKEN]:Gr,[tt.START_TAG_TOKEN]:B_n,[tt.END_TAG_TOKEN]:j_n,[tt.EOF_TOKEN]:Pw},[w9]:{[tt.CHARACTER_TOKEN]:Dw,[tt.NULL_CHARACTER_TOKEN]:Dw,[tt.WHITESPACE_CHARACTER_TOKEN]:Gr,[tt.COMMENT_TOKEN]:va,[tt.DOCTYPE_TOKEN]:BI,[tt.START_TAG_TOKEN]:H_n,[tt.END_TAG_TOKEN]:U_n,[tt.EOF_TOKEN]:Dw},[cE]:{[tt.CHARACTER_TOKEN]:Lw,[tt.NULL_CHARACTER_TOKEN]:Lw,[tt.WHITESPACE_CHARACTER_TOKEN]:cl,[tt.COMMENT_TOKEN]:va,[tt.DOCTYPE_TOKEN]:BI,[tt.START_TAG_TOKEN]:Fa,[tt.END_TAG_TOKEN]:j0,[tt.EOF_TOKEN]:Lw},[lDe]:{[tt.CHARACTER_TOKEN]:$w,[tt.NULL_CHARACTER_TOKEN]:$w,[tt.WHITESPACE_CHARACTER_TOKEN]:cl,[tt.COMMENT_TOKEN]:va,[tt.DOCTYPE_TOKEN]:BI,[tt.START_TAG_TOKEN]:z_n,[tt.END_TAG_TOKEN]:V_n,[tt.EOF_TOKEN]:$w},[T9]:{[tt.CHARACTER_TOKEN]:Fw,[tt.NULL_CHARACTER_TOKEN]:Fw,[tt.WHITESPACE_CHARACTER_TOKEN]:cl,[tt.COMMENT_TOKEN]:va,[tt.DOCTYPE_TOKEN]:BI,[tt.START_TAG_TOKEN]:G_n,[tt.END_TAG_TOKEN]:W_n,[tt.EOF_TOKEN]:Fw},[Df]:{[tt.CHARACTER_TOKEN]:jI,[tt.NULL_CHARACTER_TOKEN]:Gr,[tt.WHITESPACE_CHARACTER_TOKEN]:u1,[tt.COMMENT_TOKEN]:va,[tt.DOCTYPE_TOKEN]:Gr,[tt.START_TAG_TOKEN]:Bl,[tt.END_TAG_TOKEN]:JX,[tt.EOF_TOKEN]:hp},[I4]:{[tt.CHARACTER_TOKEN]:cl,[tt.NULL_CHARACTER_TOKEN]:cl,[tt.WHITESPACE_CHARACTER_TOKEN]:cl,[tt.COMMENT_TOKEN]:Gr,[tt.DOCTYPE_TOKEN]:Gr,[tt.START_TAG_TOKEN]:Gr,[tt.END_TAG_TOKEN]:CSn,[tt.EOF_TOKEN]:wSn},[Ts]:{[tt.CHARACTER_TOKEN]:mp,[tt.NULL_CHARACTER_TOKEN]:mp,[tt.WHITESPACE_CHARACTER_TOKEN]:mp,[tt.COMMENT_TOKEN]:va,[tt.DOCTYPE_TOKEN]:Gr,[tt.START_TAG_TOKEN]:eZ,[tt.END_TAG_TOKEN]:tZ,[tt.EOF_TOKEN]:hp},[cDe]:{[tt.CHARACTER_TOKEN]:PSn,[tt.NULL_CHARACTER_TOKEN]:Gr,[tt.WHITESPACE_CHARACTER_TOKEN]:kSn,[tt.COMMENT_TOKEN]:hC,[tt.DOCTYPE_TOKEN]:hC,[tt.START_TAG_TOKEN]:hC,[tt.END_TAG_TOKEN]:hC,[tt.EOF_TOKEN]:hC},[x9]:{[tt.CHARACTER_TOKEN]:jI,[tt.NULL_CHARACTER_TOKEN]:Gr,[tt.WHITESPACE_CHARACTER_TOKEN]:u1,[tt.COMMENT_TOKEN]:va,[tt.DOCTYPE_TOKEN]:Gr,[tt.START_TAG_TOKEN]:DSn,[tt.END_TAG_TOKEN]:LSn,[tt.EOF_TOKEN]:hp},[vO]:{[tt.CHARACTER_TOKEN]:N4,[tt.NULL_CHARACTER_TOKEN]:N4,[tt.WHITESPACE_CHARACTER_TOKEN]:cl,[tt.COMMENT_TOKEN]:va,[tt.DOCTYPE_TOKEN]:Gr,[tt.START_TAG_TOKEN]:$Sn,[tt.END_TAG_TOKEN]:FSn,[tt.EOF_TOKEN]:hp},[du]:{[tt.CHARACTER_TOKEN]:mp,[tt.NULL_CHARACTER_TOKEN]:mp,[tt.WHITESPACE_CHARACTER_TOKEN]:mp,[tt.COMMENT_TOKEN]:va,[tt.DOCTYPE_TOKEN]:Gr,[tt.START_TAG_TOKEN]:BSn,[tt.END_TAG_TOKEN]:jSn,[tt.EOF_TOKEN]:hp},[mh]:{[tt.CHARACTER_TOKEN]:mp,[tt.NULL_CHARACTER_TOKEN]:mp,[tt.WHITESPACE_CHARACTER_TOKEN]:mp,[tt.COMMENT_TOKEN]:va,[tt.DOCTYPE_TOKEN]:Gr,[tt.START_TAG_TOKEN]:HSn,[tt.END_TAG_TOKEN]:USn,[tt.EOF_TOKEN]:hp},[O9]:{[tt.CHARACTER_TOKEN]:jI,[tt.NULL_CHARACTER_TOKEN]:Gr,[tt.WHITESPACE_CHARACTER_TOKEN]:u1,[tt.COMMENT_TOKEN]:va,[tt.DOCTYPE_TOKEN]:Gr,[tt.START_TAG_TOKEN]:zSn,[tt.END_TAG_TOKEN]:VSn,[tt.EOF_TOKEN]:hp},[QX]:{[tt.CHARACTER_TOKEN]:cl,[tt.NULL_CHARACTER_TOKEN]:Gr,[tt.WHITESPACE_CHARACTER_TOKEN]:cl,[tt.COMMENT_TOKEN]:va,[tt.DOCTYPE_TOKEN]:Gr,[tt.START_TAG_TOKEN]:pDe,[tt.END_TAG_TOKEN]:hDe,[tt.EOF_TOKEN]:hp},[XX]:{[tt.CHARACTER_TOKEN]:cl,[tt.NULL_CHARACTER_TOKEN]:Gr,[tt.WHITESPACE_CHARACTER_TOKEN]:cl,[tt.COMMENT_TOKEN]:va,[tt.DOCTYPE_TOKEN]:Gr,[tt.START_TAG_TOKEN]:GSn,[tt.END_TAG_TOKEN]:WSn,[tt.EOF_TOKEN]:hp},[A4]:{[tt.CHARACTER_TOKEN]:jI,[tt.NULL_CHARACTER_TOKEN]:Gr,[tt.WHITESPACE_CHARACTER_TOKEN]:u1,[tt.COMMENT_TOKEN]:va,[tt.DOCTYPE_TOKEN]:Gr,[tt.START_TAG_TOKEN]:qSn,[tt.END_TAG_TOKEN]:YSn,[tt.EOF_TOKEN]:mDe},[ZX]:{[tt.CHARACTER_TOKEN]:M4,[tt.NULL_CHARACTER_TOKEN]:M4,[tt.WHITESPACE_CHARACTER_TOKEN]:u1,[tt.COMMENT_TOKEN]:$_n,[tt.DOCTYPE_TOKEN]:Gr,[tt.START_TAG_TOKEN]:KSn,[tt.END_TAG_TOKEN]:QSn,[tt.EOF_TOKEN]:fC},[R9]:{[tt.CHARACTER_TOKEN]:Gr,[tt.NULL_CHARACTER_TOKEN]:Gr,[tt.WHITESPACE_CHARACTER_TOKEN]:cl,[tt.COMMENT_TOKEN]:va,[tt.DOCTYPE_TOKEN]:Gr,[tt.START_TAG_TOKEN]:XSn,[tt.END_TAG_TOKEN]:ZSn,[tt.EOF_TOKEN]:fC},[uDe]:{[tt.CHARACTER_TOKEN]:Gr,[tt.NULL_CHARACTER_TOKEN]:Gr,[tt.WHITESPACE_CHARACTER_TOKEN]:cl,[tt.COMMENT_TOKEN]:va,[tt.DOCTYPE_TOKEN]:Gr,[tt.START_TAG_TOKEN]:JSn,[tt.END_TAG_TOKEN]:eEn,[tt.EOF_TOKEN]:fC},[dDe]:{[tt.CHARACTER_TOKEN]:yN,[tt.NULL_CHARACTER_TOKEN]:yN,[tt.WHITESPACE_CHARACTER_TOKEN]:u1,[tt.COMMENT_TOKEN]:She,[tt.DOCTYPE_TOKEN]:Gr,[tt.START_TAG_TOKEN]:tEn,[tt.END_TAG_TOKEN]:yN,[tt.EOF_TOKEN]:fC},[fDe]:{[tt.CHARACTER_TOKEN]:Gr,[tt.NULL_CHARACTER_TOKEN]:Gr,[tt.WHITESPACE_CHARACTER_TOKEN]:u1,[tt.COMMENT_TOKEN]:She,[tt.DOCTYPE_TOKEN]:Gr,[tt.START_TAG_TOKEN]:nEn,[tt.END_TAG_TOKEN]:Gr,[tt.EOF_TOKEN]:fC}};let I_n=class{constructor(t){this.options=E_n(w_n,t),this.treeAdapter=this.options.treeAdapter,this.pendingScript=null,this.options.sourceCodeLocationInfo&&bhe.install(this,y_n),this.options.onParseError&&bhe.install(this,__n,{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(Ee.TEMPLATE,Vn.HTML,[]));const r=this.treeAdapter.createElement("documentmock",Vn.HTML,[]);this._bootstrap(r,n),this.treeAdapter.getTagName(n)===Ee.TEMPLATE&&this._pushTmplInsertionMode(A4),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 tt(this.options),this.stopped=!1,this.insertionMode=sDe,this.originalInsertionMode="",this.document=t,this.fragmentContext=n,this.headElement=null,this.formElement=null,this.openElements=new b_n(this.document,this.treeAdapter),this.activeFormattingElements=new vhe(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===tt.HIBERNATION_TOKEN)break;if(this.skipNextNewLine&&(this.skipNextNewLine=!1,n.type===tt.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)!==Vn.HTML&&!this._isIntegrationPoint(t)}_switchToTextParsing(t,n){this._insertElement(t,Vn.HTML),this.tokenizer.state=n,this.originalInsertionMode=this.insertionMode,this.insertionMode=I4}switchToPlaintextParsing(){this.insertionMode=I4,this.originalInsertionMode=Df,this.tokenizer.state=tt.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)===Ee.FORM){this.formElement=t;break}t=this.treeAdapter.getParentNode(t)}while(t)}_initTokenizerForFragmentParsing(){if(this.treeAdapter.getNamespaceURI(this.fragmentContext)===Vn.HTML){const t=this.treeAdapter.getTagName(this.fragmentContext);t===Ee.TITLE||t===Ee.TEXTAREA?this.tokenizer.state=tt.MODE.RCDATA:t===Ee.STYLE||t===Ee.XMP||t===Ee.IFRAME||t===Ee.NOEMBED||t===Ee.NOFRAMES||t===Ee.NOSCRIPT?this.tokenizer.state=tt.MODE.RAWTEXT:t===Ee.SCRIPT?this.tokenizer.state=tt.MODE.SCRIPT_DATA:t===Ee.PLAINTEXT&&(this.tokenizer.state=tt.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,Vn.HTML,[]);this._attachElementToTree(n),this.openElements.push(n)}_insertTemplate(t){const n=this.treeAdapter.createElement(t.tagName,Vn.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(Ee.HTML,Vn.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===Vn.HTML||this.treeAdapter.getTagName(n)===Ee.ANNOTATION_XML&&r===Vn.MATHML&&t.type===tt.START_TAG_TOKEN&&t.tagName===Ee.SVG)return!1;const i=t.type===tt.CHARACTER_TOKEN||t.type===tt.NULL_CHARACTER_TOKEN||t.type===tt.WHITESPACE_CHARACTER_TOKEN;return(t.type===tt.START_TAG_TOKEN&&t.tagName!==Ee.MGLYPH&&t.tagName!==Ee.MALIGNMARK||i)&&this._isIntegrationPoint(n,Vn.MATHML)||(t.type===tt.START_TAG_TOKEN||i)&&this._isIntegrationPoint(n,Vn.HTML)?!1:t.type!==tt.EOF_TOKEN}_processToken(t){_he[this.insertionMode][t.type](this,t)}_processTokenInBodyMode(t){_he[Df][t.type](this,t)}_processTokenInForeignContent(t){t.type===tt.CHARACTER_TOKEN?iEn(this,t):t.type===tt.NULL_CHARACTER_TOKEN?rEn(this,t):t.type===tt.WHITESPACE_CHARACTER_TOKEN?cl(this,t):t.type===tt.COMMENT_TOKEN?va(this,t):t.type===tt.START_TAG_TOKEN?oEn(this,t):t.type===tt.END_TAG_TOKEN&&aEn(this,t)}_processInputToken(t){this._shouldProcessTokenInForeignContent(t)?this._processTokenInForeignContent(t):this._processToken(t),t.type===tt.START_TAG_TOKEN&&t.selfClosing&&!t.ackSelfClosing&&this._err(ns.nonVoidHtmlElementStartTagWithTrailingSolidus)}_isIntegrationPoint(t,n){const r=this.treeAdapter.getTagName(t),i=this.treeAdapter.getNamespaceURI(t),o=this.treeAdapter.getAttrList(t);return vf.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===vhe.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=mh}_closePElement(){this.openElements.generateImpliedEndTagsWithExclusion(Ee.P),this.openElements.popUntilTagNamePopped(Ee.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=O_n[i];if(o){this.insertionMode=o;break}else if(!n&&(i===Ee.TD||i===Ee.TH)){this.insertionMode=O9;break}else if(!n&&i===Ee.HEAD){this.insertionMode=cE;break}else if(i===Ee.SELECT){this._resetInsertionModeForSelect(t);break}else if(i===Ee.TEMPLATE){this.insertionMode=this.currentTmplInsertionMode;break}else if(i===Ee.HTML){this.insertionMode=this.headElement?T9:w9;break}else if(n){this.insertionMode=Df;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===Ee.TEMPLATE)break;if(i===Ee.TABLE){this.insertionMode=XX;return}}this.insertionMode=QX}_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===Ee.TABLE||n===Ee.TBODY||n===Ee.TFOOT||n===Ee.THEAD||n===Ee.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===Ee.TEMPLATE&&o===Vn.HTML){t.parent=this.treeAdapter.getTemplateContent(r);break}else if(i===Ee.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 B0.SPECIAL_ELEMENTS[r][n]}};var A_n=I_n;function N_n(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):zu(e,t),n}function M_n(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 k_n(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>=x_n;!s||l?(l&&e.activeFormattingElements.removeEntry(s),e.openElements.remove(a)):(a=P_n(e,s),r===t&&(e.activeFormattingElements.bookmark=s),e.treeAdapter.detachNode(r),e.treeAdapter.appendChild(a,r),r=a)}return r}function P_n(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 D_n(e,t,n){if(e._isElementCausesFosterParenting(t))e._fosterParentElement(n);else{const r=e.treeAdapter.getTagName(t),i=e.treeAdapter.getNamespaceURI(t);r===Ee.TEMPLATE&&i===Vn.HTML&&(t=e.treeAdapter.getTemplateContent(t)),e.treeAdapter.appendChild(t,n)}}function L_n(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 mm(e,t){let n;for(let r=0;r<T_n&&(n=N_n(e,t),!!n);r++){const i=M_n(e,n);if(!i)break;e.activeFormattingElements.bookmark=n;const o=k_n(e,i,n.element),a=e.openElements.getCommonAncestor(n.element);e.treeAdapter.detachNode(o),D_n(e,a,o),L_n(e,i,n)}}function Gr(){}function BI(e){e._err(ns.misplacedDoctype)}function va(e,t){e._appendCommentNode(t,e.openElements.currentTmplContent||e.openElements.current)}function $_n(e,t){e._appendCommentNode(t,e.openElements.items[0])}function She(e,t){e._appendCommentNode(t,e.document)}function cl(e,t){e._insertCharacters(t)}function fC(e){e.stopped=!0}function F_n(e,t){e._setDocumentType(t);const n=t.forceQuirks?B0.DOCUMENT_MODE.QUIRKS:yhe.getDocumentMode(t);yhe.isConforming(t)||e._err(ns.nonConformingDoctype),e.treeAdapter.setDocumentMode(e.document,n),e.insertionMode=KX}function pC(e,t){e._err(ns.missingDoctype,{beforeToken:!0}),e.treeAdapter.setDocumentMode(e.document,B0.DOCUMENT_MODE.QUIRKS),e.insertionMode=KX,e._processToken(t)}function B_n(e,t){t.tagName===Ee.HTML?(e._insertElement(t,Vn.HTML),e.insertionMode=w9):Pw(e,t)}function j_n(e,t){const n=t.tagName;(n===Ee.HTML||n===Ee.HEAD||n===Ee.BODY||n===Ee.BR)&&Pw(e,t)}function Pw(e,t){e._insertFakeRootElement(),e.insertionMode=w9,e._processToken(t)}function H_n(e,t){const n=t.tagName;n===Ee.HTML?Bl(e,t):n===Ee.HEAD?(e._insertElement(t,Vn.HTML),e.headElement=e.openElements.current,e.insertionMode=cE):Dw(e,t)}function U_n(e,t){const n=t.tagName;n===Ee.HEAD||n===Ee.BODY||n===Ee.HTML||n===Ee.BR?Dw(e,t):e._err(ns.endTagWithoutMatchingOpenElement)}function Dw(e,t){e._insertFakeElement(Ee.HEAD),e.headElement=e.openElements.current,e.insertionMode=cE,e._processToken(t)}function Fa(e,t){const n=t.tagName;n===Ee.HTML?Bl(e,t):n===Ee.BASE||n===Ee.BASEFONT||n===Ee.BGSOUND||n===Ee.LINK||n===Ee.META?(e._appendElement(t,Vn.HTML),t.ackSelfClosing=!0):n===Ee.TITLE?e._switchToTextParsing(t,tt.MODE.RCDATA):n===Ee.NOSCRIPT?e.options.scriptingEnabled?e._switchToTextParsing(t,tt.MODE.RAWTEXT):(e._insertElement(t,Vn.HTML),e.insertionMode=lDe):n===Ee.NOFRAMES||n===Ee.STYLE?e._switchToTextParsing(t,tt.MODE.RAWTEXT):n===Ee.SCRIPT?e._switchToTextParsing(t,tt.MODE.SCRIPT_DATA):n===Ee.TEMPLATE?(e._insertTemplate(t,Vn.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1,e.insertionMode=A4,e._pushTmplInsertionMode(A4)):n===Ee.HEAD?e._err(ns.misplacedStartTagForHeadElement):Lw(e,t)}function j0(e,t){const n=t.tagName;n===Ee.HEAD?(e.openElements.pop(),e.insertionMode=T9):n===Ee.BODY||n===Ee.BR||n===Ee.HTML?Lw(e,t):n===Ee.TEMPLATE&&e.openElements.tmplCount>0?(e.openElements.generateImpliedEndTagsThoroughly(),e.openElements.currentTagName!==Ee.TEMPLATE&&e._err(ns.closingOfElementWithOpenChildElements),e.openElements.popUntilTagNamePopped(Ee.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e._popTmplInsertionMode(),e._resetInsertionMode()):e._err(ns.endTagWithoutMatchingOpenElement)}function Lw(e,t){e.openElements.pop(),e.insertionMode=T9,e._processToken(t)}function z_n(e,t){const n=t.tagName;n===Ee.HTML?Bl(e,t):n===Ee.BASEFONT||n===Ee.BGSOUND||n===Ee.HEAD||n===Ee.LINK||n===Ee.META||n===Ee.NOFRAMES||n===Ee.STYLE?Fa(e,t):n===Ee.NOSCRIPT?e._err(ns.nestedNoscriptInHead):$w(e,t)}function V_n(e,t){const n=t.tagName;n===Ee.NOSCRIPT?(e.openElements.pop(),e.insertionMode=cE):n===Ee.BR?$w(e,t):e._err(ns.endTagWithoutMatchingOpenElement)}function $w(e,t){const n=t.type===tt.EOF_TOKEN?ns.openElementsLeftAfterEof:ns.disallowedContentInNoscriptInHead;e._err(n),e.openElements.pop(),e.insertionMode=cE,e._processToken(t)}function G_n(e,t){const n=t.tagName;n===Ee.HTML?Bl(e,t):n===Ee.BODY?(e._insertElement(t,Vn.HTML),e.framesetOk=!1,e.insertionMode=Df):n===Ee.FRAMESET?(e._insertElement(t,Vn.HTML),e.insertionMode=R9):n===Ee.BASE||n===Ee.BASEFONT||n===Ee.BGSOUND||n===Ee.LINK||n===Ee.META||n===Ee.NOFRAMES||n===Ee.SCRIPT||n===Ee.STYLE||n===Ee.TEMPLATE||n===Ee.TITLE?(e._err(ns.abandonedHeadElementChild),e.openElements.push(e.headElement),Fa(e,t),e.openElements.remove(e.headElement)):n===Ee.HEAD?e._err(ns.misplacedStartTagForHeadElement):Fw(e,t)}function W_n(e,t){const n=t.tagName;n===Ee.BODY||n===Ee.HTML||n===Ee.BR?Fw(e,t):n===Ee.TEMPLATE?j0(e,t):e._err(ns.endTagWithoutMatchingOpenElement)}function Fw(e,t){e._insertFakeElement(Ee.BODY),e.insertionMode=Df,e._processToken(t)}function u1(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t)}function jI(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t),e.framesetOk=!1}function q_n(e,t){e.openElements.tmplCount===0&&e.treeAdapter.adoptAttributes(e.openElements.items[0],t.attrs)}function Y_n(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e.openElements.tmplCount===0&&(e.framesetOk=!1,e.treeAdapter.adoptAttributes(n,t.attrs))}function K_n(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();e.framesetOk&&n&&(e.treeAdapter.detachNode(n),e.openElements.popAllUpToHtmlElement(),e._insertElement(t,Vn.HTML),e.insertionMode=R9)}function pp(e,t){e.openElements.hasInButtonScope(Ee.P)&&e._closePElement(),e._insertElement(t,Vn.HTML)}function Q_n(e,t){e.openElements.hasInButtonScope(Ee.P)&&e._closePElement();const n=e.openElements.currentTagName;(n===Ee.H1||n===Ee.H2||n===Ee.H3||n===Ee.H4||n===Ee.H5||n===Ee.H6)&&e.openElements.pop(),e._insertElement(t,Vn.HTML)}function Ehe(e,t){e.openElements.hasInButtonScope(Ee.P)&&e._closePElement(),e._insertElement(t,Vn.HTML),e.skipNextNewLine=!0,e.framesetOk=!1}function X_n(e,t){const n=e.openElements.tmplCount>0;(!e.formElement||n)&&(e.openElements.hasInButtonScope(Ee.P)&&e._closePElement(),e._insertElement(t,Vn.HTML),n||(e.formElement=e.openElements.current))}function Z_n(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===Ee.LI&&o===Ee.LI?a=Ee.LI:(n===Ee.DD||n===Ee.DT)&&(o===Ee.DD||o===Ee.DT)&&(a=o),a){e.openElements.generateImpliedEndTagsWithExclusion(a),e.openElements.popUntilTagNamePopped(a);break}if(o!==Ee.ADDRESS&&o!==Ee.DIV&&o!==Ee.P&&e._isSpecialElement(i))break}e.openElements.hasInButtonScope(Ee.P)&&e._closePElement(),e._insertElement(t,Vn.HTML)}function J_n(e,t){e.openElements.hasInButtonScope(Ee.P)&&e._closePElement(),e._insertElement(t,Vn.HTML),e.tokenizer.state=tt.MODE.PLAINTEXT}function eSn(e,t){e.openElements.hasInScope(Ee.BUTTON)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(Ee.BUTTON)),e._reconstructActiveFormattingElements(),e._insertElement(t,Vn.HTML),e.framesetOk=!1}function tSn(e,t){const n=e.activeFormattingElements.getElementEntryInScopeWithTagName(Ee.A);n&&(mm(e,t),e.openElements.remove(n.element),e.activeFormattingElements.removeEntry(n)),e._reconstructActiveFormattingElements(),e._insertElement(t,Vn.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function Cb(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,Vn.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function nSn(e,t){e._reconstructActiveFormattingElements(),e.openElements.hasInScope(Ee.NOBR)&&(mm(e,t),e._reconstructActiveFormattingElements()),e._insertElement(t,Vn.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function Che(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,Vn.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1}function rSn(e,t){e.treeAdapter.getDocumentMode(e.document)!==B0.DOCUMENT_MODE.QUIRKS&&e.openElements.hasInButtonScope(Ee.P)&&e._closePElement(),e._insertElement(t,Vn.HTML),e.framesetOk=!1,e.insertionMode=Ts}function $b(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,Vn.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function iSn(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,Vn.HTML);const n=tt.getTokenAttr(t,oDe.TYPE);(!n||n.toLowerCase()!==aDe)&&(e.framesetOk=!1),t.ackSelfClosing=!0}function whe(e,t){e._appendElement(t,Vn.HTML),t.ackSelfClosing=!0}function oSn(e,t){e.openElements.hasInButtonScope(Ee.P)&&e._closePElement(),e._appendElement(t,Vn.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function aSn(e,t){t.tagName=Ee.IMG,$b(e,t)}function sSn(e,t){e._insertElement(t,Vn.HTML),e.skipNextNewLine=!0,e.tokenizer.state=tt.MODE.RCDATA,e.originalInsertionMode=e.insertionMode,e.framesetOk=!1,e.insertionMode=I4}function lSn(e,t){e.openElements.hasInButtonScope(Ee.P)&&e._closePElement(),e._reconstructActiveFormattingElements(),e.framesetOk=!1,e._switchToTextParsing(t,tt.MODE.RAWTEXT)}function cSn(e,t){e.framesetOk=!1,e._switchToTextParsing(t,tt.MODE.RAWTEXT)}function The(e,t){e._switchToTextParsing(t,tt.MODE.RAWTEXT)}function uSn(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,Vn.HTML),e.framesetOk=!1,e.insertionMode===Ts||e.insertionMode===x9||e.insertionMode===du||e.insertionMode===mh||e.insertionMode===O9?e.insertionMode=XX:e.insertionMode=QX}function xhe(e,t){e.openElements.currentTagName===Ee.OPTION&&e.openElements.pop(),e._reconstructActiveFormattingElements(),e._insertElement(t,Vn.HTML)}function Ohe(e,t){e.openElements.hasInScope(Ee.RUBY)&&e.openElements.generateImpliedEndTags(),e._insertElement(t,Vn.HTML)}function dSn(e,t){e.openElements.hasInScope(Ee.RUBY)&&e.openElements.generateImpliedEndTagsWithExclusion(Ee.RTC),e._insertElement(t,Vn.HTML)}function fSn(e,t){e.openElements.hasInButtonScope(Ee.P)&&e._closePElement(),e._insertElement(t,Vn.HTML)}function pSn(e,t){e._reconstructActiveFormattingElements(),vf.adjustTokenMathMLAttrs(t),vf.adjustTokenXMLAttrs(t),t.selfClosing?e._appendElement(t,Vn.MATHML):e._insertElement(t,Vn.MATHML),t.ackSelfClosing=!0}function hSn(e,t){e._reconstructActiveFormattingElements(),vf.adjustTokenSVGAttrs(t),vf.adjustTokenXMLAttrs(t),t.selfClosing?e._appendElement(t,Vn.SVG):e._insertElement(t,Vn.SVG),t.ackSelfClosing=!0}function jc(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,Vn.HTML)}function Bl(e,t){const n=t.tagName;switch(n.length){case 1:n===Ee.I||n===Ee.S||n===Ee.B||n===Ee.U?Cb(e,t):n===Ee.P?pp(e,t):n===Ee.A?tSn(e,t):jc(e,t);break;case 2:n===Ee.DL||n===Ee.OL||n===Ee.UL?pp(e,t):n===Ee.H1||n===Ee.H2||n===Ee.H3||n===Ee.H4||n===Ee.H5||n===Ee.H6?Q_n(e,t):n===Ee.LI||n===Ee.DD||n===Ee.DT?Z_n(e,t):n===Ee.EM||n===Ee.TT?Cb(e,t):n===Ee.BR?$b(e,t):n===Ee.HR?oSn(e,t):n===Ee.RB?Ohe(e,t):n===Ee.RT||n===Ee.RP?dSn(e,t):n!==Ee.TH&&n!==Ee.TD&&n!==Ee.TR&&jc(e,t);break;case 3:n===Ee.DIV||n===Ee.DIR||n===Ee.NAV?pp(e,t):n===Ee.PRE?Ehe(e,t):n===Ee.BIG?Cb(e,t):n===Ee.IMG||n===Ee.WBR?$b(e,t):n===Ee.XMP?lSn(e,t):n===Ee.SVG?hSn(e,t):n===Ee.RTC?Ohe(e,t):n!==Ee.COL&&jc(e,t);break;case 4:n===Ee.HTML?q_n(e,t):n===Ee.BASE||n===Ee.LINK||n===Ee.META?Fa(e,t):n===Ee.BODY?Y_n(e,t):n===Ee.MAIN||n===Ee.MENU?pp(e,t):n===Ee.FORM?X_n(e,t):n===Ee.CODE||n===Ee.FONT?Cb(e,t):n===Ee.NOBR?nSn(e,t):n===Ee.AREA?$b(e,t):n===Ee.MATH?pSn(e,t):n===Ee.MENU?fSn(e,t):n!==Ee.HEAD&&jc(e,t);break;case 5:n===Ee.STYLE||n===Ee.TITLE?Fa(e,t):n===Ee.ASIDE?pp(e,t):n===Ee.SMALL?Cb(e,t):n===Ee.TABLE?rSn(e,t):n===Ee.EMBED?$b(e,t):n===Ee.INPUT?iSn(e,t):n===Ee.PARAM||n===Ee.TRACK?whe(e,t):n===Ee.IMAGE?aSn(e,t):n!==Ee.FRAME&&n!==Ee.TBODY&&n!==Ee.TFOOT&&n!==Ee.THEAD&&jc(e,t);break;case 6:n===Ee.SCRIPT?Fa(e,t):n===Ee.CENTER||n===Ee.FIGURE||n===Ee.FOOTER||n===Ee.HEADER||n===Ee.HGROUP||n===Ee.DIALOG?pp(e,t):n===Ee.BUTTON?eSn(e,t):n===Ee.STRIKE||n===Ee.STRONG?Cb(e,t):n===Ee.APPLET||n===Ee.OBJECT?Che(e,t):n===Ee.KEYGEN?$b(e,t):n===Ee.SOURCE?whe(e,t):n===Ee.IFRAME?cSn(e,t):n===Ee.SELECT?uSn(e,t):n===Ee.OPTION?xhe(e,t):jc(e,t);break;case 7:n===Ee.BGSOUND?Fa(e,t):n===Ee.DETAILS||n===Ee.ADDRESS||n===Ee.ARTICLE||n===Ee.SECTION||n===Ee.SUMMARY?pp(e,t):n===Ee.LISTING?Ehe(e,t):n===Ee.MARQUEE?Che(e,t):n===Ee.NOEMBED?The(e,t):n!==Ee.CAPTION&&jc(e,t);break;case 8:n===Ee.BASEFONT?Fa(e,t):n===Ee.FRAMESET?K_n(e,t):n===Ee.FIELDSET?pp(e,t):n===Ee.TEXTAREA?sSn(e,t):n===Ee.TEMPLATE?Fa(e,t):n===Ee.NOSCRIPT?e.options.scriptingEnabled?The(e,t):jc(e,t):n===Ee.OPTGROUP?xhe(e,t):n!==Ee.COLGROUP&&jc(e,t);break;case 9:n===Ee.PLAINTEXT?J_n(e,t):jc(e,t);break;case 10:n===Ee.BLOCKQUOTE||n===Ee.FIGCAPTION?pp(e,t):jc(e,t);break;default:jc(e,t)}}function mSn(e){e.openElements.hasInScope(Ee.BODY)&&(e.insertionMode=ZX)}function gSn(e,t){e.openElements.hasInScope(Ee.BODY)&&(e.insertionMode=ZX,e._processToken(t))}function Gh(e,t){const n=t.tagName;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n))}function vSn(e){const t=e.openElements.tmplCount>0,n=e.formElement;t||(e.formElement=null),(n||t)&&e.openElements.hasInScope(Ee.FORM)&&(e.openElements.generateImpliedEndTags(),t?e.openElements.popUntilTagNamePopped(Ee.FORM):e.openElements.remove(n))}function bSn(e){e.openElements.hasInButtonScope(Ee.P)||e._insertFakeElement(Ee.P),e._closePElement()}function ySn(e){e.openElements.hasInListItemScope(Ee.LI)&&(e.openElements.generateImpliedEndTagsWithExclusion(Ee.LI),e.openElements.popUntilTagNamePopped(Ee.LI))}function _Sn(e,t){const n=t.tagName;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTagsWithExclusion(n),e.openElements.popUntilTagNamePopped(n))}function SSn(e){e.openElements.hasNumberedHeaderInScope()&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilNumberedHeaderPopped())}function Rhe(e,t){const n=t.tagName;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker())}function ESn(e){e._reconstructActiveFormattingElements(),e._insertFakeElement(Ee.BR),e.openElements.pop(),e.framesetOk=!1}function zu(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 JX(e,t){const n=t.tagName;switch(n.length){case 1:n===Ee.A||n===Ee.B||n===Ee.I||n===Ee.S||n===Ee.U?mm(e,t):n===Ee.P?bSn(e):zu(e,t);break;case 2:n===Ee.DL||n===Ee.UL||n===Ee.OL?Gh(e,t):n===Ee.LI?ySn(e):n===Ee.DD||n===Ee.DT?_Sn(e,t):n===Ee.H1||n===Ee.H2||n===Ee.H3||n===Ee.H4||n===Ee.H5||n===Ee.H6?SSn(e):n===Ee.BR?ESn(e):n===Ee.EM||n===Ee.TT?mm(e,t):zu(e,t);break;case 3:n===Ee.BIG?mm(e,t):n===Ee.DIR||n===Ee.DIV||n===Ee.NAV||n===Ee.PRE?Gh(e,t):zu(e,t);break;case 4:n===Ee.BODY?mSn(e):n===Ee.HTML?gSn(e,t):n===Ee.FORM?vSn(e):n===Ee.CODE||n===Ee.FONT||n===Ee.NOBR?mm(e,t):n===Ee.MAIN||n===Ee.MENU?Gh(e,t):zu(e,t);break;case 5:n===Ee.ASIDE?Gh(e,t):n===Ee.SMALL?mm(e,t):zu(e,t);break;case 6:n===Ee.CENTER||n===Ee.FIGURE||n===Ee.FOOTER||n===Ee.HEADER||n===Ee.HGROUP||n===Ee.DIALOG?Gh(e,t):n===Ee.APPLET||n===Ee.OBJECT?Rhe(e,t):n===Ee.STRIKE||n===Ee.STRONG?mm(e,t):zu(e,t);break;case 7:n===Ee.ADDRESS||n===Ee.ARTICLE||n===Ee.DETAILS||n===Ee.SECTION||n===Ee.SUMMARY||n===Ee.LISTING?Gh(e,t):n===Ee.MARQUEE?Rhe(e,t):zu(e,t);break;case 8:n===Ee.FIELDSET?Gh(e,t):n===Ee.TEMPLATE?j0(e,t):zu(e,t);break;case 10:n===Ee.BLOCKQUOTE||n===Ee.FIGCAPTION?Gh(e,t):zu(e,t);break;default:zu(e,t)}}function hp(e,t){e.tmplInsertionModeStackTop>-1?mDe(e,t):e.stopped=!0}function CSn(e,t){t.tagName===Ee.SCRIPT&&(e.pendingScript=e.openElements.current),e.openElements.pop(),e.insertionMode=e.originalInsertionMode}function wSn(e,t){e._err(ns.eofInElementThatCanContainOnlyText),e.openElements.pop(),e.insertionMode=e.originalInsertionMode,e._processToken(t)}function mp(e,t){const n=e.openElements.currentTagName;n===Ee.TABLE||n===Ee.TBODY||n===Ee.TFOOT||n===Ee.THEAD||n===Ee.TR?(e.pendingCharacterTokens=[],e.hasNonWhitespacePendingCharacterToken=!1,e.originalInsertionMode=e.insertionMode,e.insertionMode=cDe,e._processToken(t)):qc(e,t)}function TSn(e,t){e.openElements.clearBackToTableContext(),e.activeFormattingElements.insertMarker(),e._insertElement(t,Vn.HTML),e.insertionMode=x9}function xSn(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,Vn.HTML),e.insertionMode=vO}function OSn(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(Ee.COLGROUP),e.insertionMode=vO,e._processToken(t)}function RSn(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,Vn.HTML),e.insertionMode=du}function ISn(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(Ee.TBODY),e.insertionMode=du,e._processToken(t)}function ASn(e,t){e.openElements.hasInTableScope(Ee.TABLE)&&(e.openElements.popUntilTagNamePopped(Ee.TABLE),e._resetInsertionMode(),e._processToken(t))}function NSn(e,t){const n=tt.getTokenAttr(t,oDe.TYPE);n&&n.toLowerCase()===aDe?e._appendElement(t,Vn.HTML):qc(e,t),t.ackSelfClosing=!0}function MSn(e,t){!e.formElement&&e.openElements.tmplCount===0&&(e._insertElement(t,Vn.HTML),e.formElement=e.openElements.current,e.openElements.pop())}function eZ(e,t){const n=t.tagName;switch(n.length){case 2:n===Ee.TD||n===Ee.TH||n===Ee.TR?ISn(e,t):qc(e,t);break;case 3:n===Ee.COL?OSn(e,t):qc(e,t);break;case 4:n===Ee.FORM?MSn(e,t):qc(e,t);break;case 5:n===Ee.TABLE?ASn(e,t):n===Ee.STYLE?Fa(e,t):n===Ee.TBODY||n===Ee.TFOOT||n===Ee.THEAD?RSn(e,t):n===Ee.INPUT?NSn(e,t):qc(e,t);break;case 6:n===Ee.SCRIPT?Fa(e,t):qc(e,t);break;case 7:n===Ee.CAPTION?TSn(e,t):qc(e,t);break;case 8:n===Ee.COLGROUP?xSn(e,t):n===Ee.TEMPLATE?Fa(e,t):qc(e,t);break;default:qc(e,t)}}function tZ(e,t){const n=t.tagName;n===Ee.TABLE?e.openElements.hasInTableScope(Ee.TABLE)&&(e.openElements.popUntilTagNamePopped(Ee.TABLE),e._resetInsertionMode()):n===Ee.TEMPLATE?j0(e,t):n!==Ee.BODY&&n!==Ee.CAPTION&&n!==Ee.COL&&n!==Ee.COLGROUP&&n!==Ee.HTML&&n!==Ee.TBODY&&n!==Ee.TD&&n!==Ee.TFOOT&&n!==Ee.TH&&n!==Ee.THEAD&&n!==Ee.TR&&qc(e,t)}function qc(e,t){const n=e.fosterParentingEnabled;e.fosterParentingEnabled=!0,e._processTokenInBodyMode(t),e.fosterParentingEnabled=n}function kSn(e,t){e.pendingCharacterTokens.push(t)}function PSn(e,t){e.pendingCharacterTokens.push(t),e.hasNonWhitespacePendingCharacterToken=!0}function hC(e,t){let n=0;if(e.hasNonWhitespacePendingCharacterToken)for(;n<e.pendingCharacterTokens.length;n++)qc(e,e.pendingCharacterTokens[n]);else for(;n<e.pendingCharacterTokens.length;n++)e._insertCharacters(e.pendingCharacterTokens[n]);e.insertionMode=e.originalInsertionMode,e._processToken(t)}function DSn(e,t){const n=t.tagName;n===Ee.CAPTION||n===Ee.COL||n===Ee.COLGROUP||n===Ee.TBODY||n===Ee.TD||n===Ee.TFOOT||n===Ee.TH||n===Ee.THEAD||n===Ee.TR?e.openElements.hasInTableScope(Ee.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(Ee.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=Ts,e._processToken(t)):Bl(e,t)}function LSn(e,t){const n=t.tagName;n===Ee.CAPTION||n===Ee.TABLE?e.openElements.hasInTableScope(Ee.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(Ee.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=Ts,n===Ee.TABLE&&e._processToken(t)):n!==Ee.BODY&&n!==Ee.COL&&n!==Ee.COLGROUP&&n!==Ee.HTML&&n!==Ee.TBODY&&n!==Ee.TD&&n!==Ee.TFOOT&&n!==Ee.TH&&n!==Ee.THEAD&&n!==Ee.TR&&JX(e,t)}function $Sn(e,t){const n=t.tagName;n===Ee.HTML?Bl(e,t):n===Ee.COL?(e._appendElement(t,Vn.HTML),t.ackSelfClosing=!0):n===Ee.TEMPLATE?Fa(e,t):N4(e,t)}function FSn(e,t){const n=t.tagName;n===Ee.COLGROUP?e.openElements.currentTagName===Ee.COLGROUP&&(e.openElements.pop(),e.insertionMode=Ts):n===Ee.TEMPLATE?j0(e,t):n!==Ee.COL&&N4(e,t)}function N4(e,t){e.openElements.currentTagName===Ee.COLGROUP&&(e.openElements.pop(),e.insertionMode=Ts,e._processToken(t))}function BSn(e,t){const n=t.tagName;n===Ee.TR?(e.openElements.clearBackToTableBodyContext(),e._insertElement(t,Vn.HTML),e.insertionMode=mh):n===Ee.TH||n===Ee.TD?(e.openElements.clearBackToTableBodyContext(),e._insertFakeElement(Ee.TR),e.insertionMode=mh,e._processToken(t)):n===Ee.CAPTION||n===Ee.COL||n===Ee.COLGROUP||n===Ee.TBODY||n===Ee.TFOOT||n===Ee.THEAD?e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=Ts,e._processToken(t)):eZ(e,t)}function jSn(e,t){const n=t.tagName;n===Ee.TBODY||n===Ee.TFOOT||n===Ee.THEAD?e.openElements.hasInTableScope(n)&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=Ts):n===Ee.TABLE?e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=Ts,e._processToken(t)):(n!==Ee.BODY&&n!==Ee.CAPTION&&n!==Ee.COL&&n!==Ee.COLGROUP||n!==Ee.HTML&&n!==Ee.TD&&n!==Ee.TH&&n!==Ee.TR)&&tZ(e,t)}function HSn(e,t){const n=t.tagName;n===Ee.TH||n===Ee.TD?(e.openElements.clearBackToTableRowContext(),e._insertElement(t,Vn.HTML),e.insertionMode=O9,e.activeFormattingElements.insertMarker()):n===Ee.CAPTION||n===Ee.COL||n===Ee.COLGROUP||n===Ee.TBODY||n===Ee.TFOOT||n===Ee.THEAD||n===Ee.TR?e.openElements.hasInTableScope(Ee.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=du,e._processToken(t)):eZ(e,t)}function USn(e,t){const n=t.tagName;n===Ee.TR?e.openElements.hasInTableScope(Ee.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=du):n===Ee.TABLE?e.openElements.hasInTableScope(Ee.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=du,e._processToken(t)):n===Ee.TBODY||n===Ee.TFOOT||n===Ee.THEAD?(e.openElements.hasInTableScope(n)||e.openElements.hasInTableScope(Ee.TR))&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=du,e._processToken(t)):(n!==Ee.BODY&&n!==Ee.CAPTION&&n!==Ee.COL&&n!==Ee.COLGROUP||n!==Ee.HTML&&n!==Ee.TD&&n!==Ee.TH)&&tZ(e,t)}function zSn(e,t){const n=t.tagName;n===Ee.CAPTION||n===Ee.COL||n===Ee.COLGROUP||n===Ee.TBODY||n===Ee.TD||n===Ee.TFOOT||n===Ee.TH||n===Ee.THEAD||n===Ee.TR?(e.openElements.hasInTableScope(Ee.TD)||e.openElements.hasInTableScope(Ee.TH))&&(e._closeTableCell(),e._processToken(t)):Bl(e,t)}function VSn(e,t){const n=t.tagName;n===Ee.TD||n===Ee.TH?e.openElements.hasInTableScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=mh):n===Ee.TABLE||n===Ee.TBODY||n===Ee.TFOOT||n===Ee.THEAD||n===Ee.TR?e.openElements.hasInTableScope(n)&&(e._closeTableCell(),e._processToken(t)):n!==Ee.BODY&&n!==Ee.CAPTION&&n!==Ee.COL&&n!==Ee.COLGROUP&&n!==Ee.HTML&&JX(e,t)}function pDe(e,t){const n=t.tagName;n===Ee.HTML?Bl(e,t):n===Ee.OPTION?(e.openElements.currentTagName===Ee.OPTION&&e.openElements.pop(),e._insertElement(t,Vn.HTML)):n===Ee.OPTGROUP?(e.openElements.currentTagName===Ee.OPTION&&e.openElements.pop(),e.openElements.currentTagName===Ee.OPTGROUP&&e.openElements.pop(),e._insertElement(t,Vn.HTML)):n===Ee.INPUT||n===Ee.KEYGEN||n===Ee.TEXTAREA||n===Ee.SELECT?e.openElements.hasInSelectScope(Ee.SELECT)&&(e.openElements.popUntilTagNamePopped(Ee.SELECT),e._resetInsertionMode(),n!==Ee.SELECT&&e._processToken(t)):(n===Ee.SCRIPT||n===Ee.TEMPLATE)&&Fa(e,t)}function hDe(e,t){const n=t.tagName;if(n===Ee.OPTGROUP){const r=e.openElements.items[e.openElements.stackTop-1],i=r&&e.treeAdapter.getTagName(r);e.openElements.currentTagName===Ee.OPTION&&i===Ee.OPTGROUP&&e.openElements.pop(),e.openElements.currentTagName===Ee.OPTGROUP&&e.openElements.pop()}else n===Ee.OPTION?e.openElements.currentTagName===Ee.OPTION&&e.openElements.pop():n===Ee.SELECT&&e.openElements.hasInSelectScope(Ee.SELECT)?(e.openElements.popUntilTagNamePopped(Ee.SELECT),e._resetInsertionMode()):n===Ee.TEMPLATE&&j0(e,t)}function GSn(e,t){const n=t.tagName;n===Ee.CAPTION||n===Ee.TABLE||n===Ee.TBODY||n===Ee.TFOOT||n===Ee.THEAD||n===Ee.TR||n===Ee.TD||n===Ee.TH?(e.openElements.popUntilTagNamePopped(Ee.SELECT),e._resetInsertionMode(),e._processToken(t)):pDe(e,t)}function WSn(e,t){const n=t.tagName;n===Ee.CAPTION||n===Ee.TABLE||n===Ee.TBODY||n===Ee.TFOOT||n===Ee.THEAD||n===Ee.TR||n===Ee.TD||n===Ee.TH?e.openElements.hasInTableScope(n)&&(e.openElements.popUntilTagNamePopped(Ee.SELECT),e._resetInsertionMode(),e._processToken(t)):hDe(e,t)}function qSn(e,t){const n=t.tagName;if(n===Ee.BASE||n===Ee.BASEFONT||n===Ee.BGSOUND||n===Ee.LINK||n===Ee.META||n===Ee.NOFRAMES||n===Ee.SCRIPT||n===Ee.STYLE||n===Ee.TEMPLATE||n===Ee.TITLE)Fa(e,t);else{const r=R_n[n]||Df;e._popTmplInsertionMode(),e._pushTmplInsertionMode(r),e.insertionMode=r,e._processToken(t)}}function YSn(e,t){t.tagName===Ee.TEMPLATE&&j0(e,t)}function mDe(e,t){e.openElements.tmplCount>0?(e.openElements.popUntilTagNamePopped(Ee.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e._popTmplInsertionMode(),e._resetInsertionMode(),e._processToken(t)):e.stopped=!0}function KSn(e,t){t.tagName===Ee.HTML?Bl(e,t):M4(e,t)}function QSn(e,t){t.tagName===Ee.HTML?e.fragmentContext||(e.insertionMode=dDe):M4(e,t)}function M4(e,t){e.insertionMode=Df,e._processToken(t)}function XSn(e,t){const n=t.tagName;n===Ee.HTML?Bl(e,t):n===Ee.FRAMESET?e._insertElement(t,Vn.HTML):n===Ee.FRAME?(e._appendElement(t,Vn.HTML),t.ackSelfClosing=!0):n===Ee.NOFRAMES&&Fa(e,t)}function ZSn(e,t){t.tagName===Ee.FRAMESET&&!e.openElements.isRootHtmlElementCurrent()&&(e.openElements.pop(),!e.fragmentContext&&e.openElements.currentTagName!==Ee.FRAMESET&&(e.insertionMode=uDe))}function JSn(e,t){const n=t.tagName;n===Ee.HTML?Bl(e,t):n===Ee.NOFRAMES&&Fa(e,t)}function eEn(e,t){t.tagName===Ee.HTML&&(e.insertionMode=fDe)}function tEn(e,t){t.tagName===Ee.HTML?Bl(e,t):yN(e,t)}function yN(e,t){e.insertionMode=Df,e._processToken(t)}function nEn(e,t){const n=t.tagName;n===Ee.HTML?Bl(e,t):n===Ee.NOFRAMES&&Fa(e,t)}function rEn(e,t){t.chars=C_n.REPLACEMENT_CHARACTER,e._insertCharacters(t)}function iEn(e,t){e._insertCharacters(t),e.framesetOk=!1}function oEn(e,t){if(vf.causesExit(t)&&!e.fragmentContext){for(;e.treeAdapter.getNamespaceURI(e.openElements.current)!==Vn.HTML&&!e._isIntegrationPoint(e.openElements.current);)e.openElements.pop();e._processToken(t)}else{const n=e._getAdjustedCurrentElement(),r=e.treeAdapter.getNamespaceURI(n);r===Vn.MATHML?vf.adjustTokenMathMLAttrs(t):r===Vn.SVG&&(vf.adjustTokenSVGTagName(t),vf.adjustTokenSVGAttrs(t)),vf.adjustTokenXMLAttrs(t),t.selfClosing?e._appendElement(t,r):e._insertElement(t,r),t.ackSelfClosing=!0}}function aEn(e,t){for(let n=e.openElements.stackTop;n>0;n--){const r=e.openElements.items[n];if(e.treeAdapter.getNamespaceURI(r)===Vn.HTML){e._processToken(t);break}if(e.treeAdapter.getTagName(r).toLowerCase()===t.tagName){e.openElements.popUntilElementPopped(r);break}}}const sEn=di(A_n),bO=gDe("start"),I9=gDe("end");function lEn(e){return{start:bO(e),end:I9(e)}}function gDe(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 yO{constructor(t,n,r){this.property=t,this.normal=n,r&&(this.space=r)}}yO.prototype.property={};yO.prototype.normal={};yO.prototype.space=null;function vDe(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 yO(n,r,t)}function Tx(e){return e.toLowerCase()}class Mu{constructor(t,n){this.property=t,this.attribute=n}}Mu.prototype.space=null;Mu.prototype.boolean=!1;Mu.prototype.booleanish=!1;Mu.prototype.overloadedBoolean=!1;Mu.prototype.number=!1;Mu.prototype.commaSeparated=!1;Mu.prototype.spaceSeparated=!1;Mu.prototype.commaOrSpaceSeparated=!1;Mu.prototype.mustUseProperty=!1;Mu.prototype.defined=!1;let cEn=0;const Rr=H0(),sa=H0(),bDe=H0(),gn=H0(),Wi=H0(),Ly=H0(),ec=H0();function H0(){return 2**++cEn}const EV=Object.freeze(Object.defineProperty({__proto__:null,boolean:Rr,booleanish:sa,commaOrSpaceSeparated:ec,commaSeparated:Ly,number:gn,overloadedBoolean:bDe,spaceSeparated:Wi},Symbol.toStringTag,{value:"Module"})),h7=Object.keys(EV);class nZ extends Mu{constructor(t,n,r,i){let o=-1;if(super(t,n),Ihe(this,"space",i),typeof r=="number")for(;++o<h7.length;){const a=h7[o];Ihe(this,h7[o],(r&EV[a])===EV[a])}}}nZ.prototype.defined=!0;function Ihe(e,t,n){n&&(e[t]=n)}const uEn={}.hasOwnProperty;function uE(e){const t={},n={};let r;for(r in e.properties)if(uEn.call(e.properties,r)){const i=e.properties[r],o=new nZ(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(o.mustUseProperty=!0),t[r]=o,n[Tx(r)]=r,n[Tx(o.attribute)]=r}return new yO(t,n,e.space)}const yDe=uE({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}}),_De=uE({space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()},properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function SDe(e,t){return t in e?e[t]:t}function EDe(e,t){return SDe(e,t.toLowerCase())}const CDe=uE({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:EDe,properties:{xmlns:null,xmlnsXLink:null}}),wDe=uE({transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()},properties:{ariaActiveDescendant:null,ariaAtomic:sa,ariaAutoComplete:null,ariaBusy:sa,ariaChecked:sa,ariaColCount:gn,ariaColIndex:gn,ariaColSpan:gn,ariaControls:Wi,ariaCurrent:null,ariaDescribedBy:Wi,ariaDetails:null,ariaDisabled:sa,ariaDropEffect:Wi,ariaErrorMessage:null,ariaExpanded:sa,ariaFlowTo:Wi,ariaGrabbed:sa,ariaHasPopup:null,ariaHidden:sa,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Wi,ariaLevel:gn,ariaLive:null,ariaModal:sa,ariaMultiLine:sa,ariaMultiSelectable:sa,ariaOrientation:null,ariaOwns:Wi,ariaPlaceholder:null,ariaPosInSet:gn,ariaPressed:sa,ariaReadOnly:sa,ariaRelevant:null,ariaRequired:sa,ariaRoleDescription:Wi,ariaRowCount:gn,ariaRowIndex:gn,ariaRowSpan:gn,ariaSelected:sa,ariaSetSize:gn,ariaSort:null,ariaValueMax:gn,ariaValueMin:gn,ariaValueNow:gn,ariaValueText:null,role:null}}),dEn=uE({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:EDe,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Ly,acceptCharset:Wi,accessKey:Wi,action:null,allow:null,allowFullScreen:Rr,allowPaymentRequest:Rr,allowUserMedia:Rr,alt:null,as:null,async:Rr,autoCapitalize:null,autoComplete:Wi,autoFocus:Rr,autoPlay:Rr,blocking:Wi,capture:null,charSet:null,checked:Rr,cite:null,className:Wi,cols:gn,colSpan:null,content:null,contentEditable:sa,controls:Rr,controlsList:Wi,coords:gn|Ly,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Rr,defer:Rr,dir:null,dirName:null,disabled:Rr,download:bDe,draggable:sa,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Rr,formTarget:null,headers:Wi,height:gn,hidden:Rr,high:gn,href:null,hrefLang:null,htmlFor:Wi,httpEquiv:Wi,id:null,imageSizes:null,imageSrcSet:null,inert:Rr,inputMode:null,integrity:null,is:null,isMap:Rr,itemId:null,itemProp:Wi,itemRef:Wi,itemScope:Rr,itemType:Wi,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Rr,low:gn,manifest:null,max:null,maxLength:gn,media:null,method:null,min:null,minLength:gn,multiple:Rr,muted:Rr,name:null,nonce:null,noModule:Rr,noValidate:Rr,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:Rr,optimum:gn,pattern:null,ping:Wi,placeholder:null,playsInline:Rr,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Rr,referrerPolicy:null,rel:Wi,required:Rr,reversed:Rr,rows:gn,rowSpan:gn,sandbox:Wi,scope:null,scoped:Rr,seamless:Rr,selected:Rr,shadowRootClonable:Rr,shadowRootDelegatesFocus:Rr,shadowRootMode:null,shape:null,size:gn,sizes:null,slot:null,span:gn,spellCheck:sa,src:null,srcDoc:null,srcLang:null,srcSet:null,start:gn,step:null,style:null,tabIndex:gn,target:null,title:null,translate:null,type:null,typeMustMatch:Rr,useMap:null,value:sa,width:gn,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Wi,axis:null,background:null,bgColor:null,border:gn,borderColor:null,bottomMargin:gn,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Rr,declare:Rr,event:null,face:null,frame:null,frameBorder:null,hSpace:gn,leftMargin:gn,link:null,longDesc:null,lowSrc:null,marginHeight:gn,marginWidth:gn,noResize:Rr,noHref:Rr,noShade:Rr,noWrap:Rr,object:null,profile:null,prompt:null,rev:null,rightMargin:gn,rules:null,scheme:null,scrolling:sa,standby:null,summary:null,text:null,topMargin:gn,valueType:null,version:null,vAlign:null,vLink:null,vSpace:gn,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Rr,disableRemotePlayback:Rr,prefix:null,property:null,results:gn,security:null,unselectable:null}}),fEn=uE({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:SDe,properties:{about:ec,accentHeight:gn,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:gn,amplitude:gn,arabicForm:null,ascent:gn,attributeName:null,attributeType:null,azimuth:gn,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:gn,by:null,calcMode:null,capHeight:gn,className:Wi,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:gn,diffuseConstant:gn,direction:null,display:null,dur:null,divisor:gn,dominantBaseline:null,download:Rr,dx:null,dy:null,edgeMode:null,editable:null,elevation:gn,enableBackground:null,end:null,event:null,exponent:gn,externalResourcesRequired:null,fill:null,fillOpacity:gn,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:Ly,g2:Ly,glyphName:Ly,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:gn,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:gn,horizOriginX:gn,horizOriginY:gn,id:null,ideographic:gn,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:gn,k:gn,k1:gn,k2:gn,k3:gn,k4:gn,kernelMatrix:ec,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:gn,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:gn,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:gn,overlineThickness:gn,paintOrder:null,panose1:null,path:null,pathLength:gn,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Wi,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:gn,pointsAtY:gn,pointsAtZ:gn,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:ec,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:ec,rev:ec,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:ec,requiredFeatures:ec,requiredFonts:ec,requiredFormats:ec,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:gn,specularExponent:gn,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:gn,strikethroughThickness:gn,string:null,stroke:null,strokeDashArray:ec,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:gn,strokeOpacity:gn,strokeWidth:null,style:null,surfaceScale:gn,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:ec,tabIndex:gn,tableValues:null,target:null,targetX:gn,targetY:gn,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:ec,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:gn,underlineThickness:gn,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:gn,values:null,vAlphabetic:gn,vMathematical:gn,vectorEffect:null,vHanging:gn,vIdeographic:gn,version:null,vertAdvY:gn,vertOriginX:gn,vertOriginY:gn,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:gn,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),pEn=/^data[-\w.:]+$/i,Ahe=/-[a-z]/g,hEn=/[A-Z]/g;function A9(e,t){const n=Tx(t);let r=t,i=Mu;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&pEn.test(t)){if(t.charAt(4)==="-"){const o=t.slice(5).replace(Ahe,gEn);r="data"+o.charAt(0).toUpperCase()+o.slice(1)}else{const o=t.slice(4);if(!Ahe.test(o)){let a=o.replace(hEn,mEn);a.charAt(0)!=="-"&&(a="-"+a),t="data"+a}}i=nZ}return new i(r,t)}function mEn(e){return"-"+e.toLowerCase()}function gEn(e){return e.charAt(1).toUpperCase()}const _O=vDe([_De,yDe,CDe,wDe,dEn],"html"),dE=vDe([_De,yDe,CDe,wDe,fEn],"svg"),Nhe=/[#.]/g;function vEn(e,t){const n=e||"",r={};let i=0,o,a;for(;i<n.length;){Nhe.lastIndex=i;const s=Nhe.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 Mhe(e){const t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function TDe(e){return e.join(" ").trim()}function khe(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 xDe(e,t){const n=t||{};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const bEn=new Set(["menu","submit","reset","button"]),CV={}.hasOwnProperty;function ODe(e,t,n){const r=n&&EEn(n);return function(o,a,...s){let l=-1,c;if(o==null)c={type:"root",children:[]},s.unshift(a);else if(c=vEn(o,t),c.tagName=c.tagName.toLowerCase(),r&&CV.call(r,c.tagName)&&(c.tagName=r[c.tagName]),yEn(a,c.tagName)){let u;for(u in a)CV.call(a,u)&&_En(e,c.properties,u,a[u])}else s.unshift(a);for(;++l<s.length;)wV(c.children,s[l]);return c.type==="element"&&c.tagName==="template"&&(c.content={type:"root",children:c.children},c.children=[]),c}}function yEn(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"?bEn.has(e.type.toLowerCase()):!("value"in e)}function _En(e,t,n,r){const i=A9(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=Mhe(r):i.commaSeparated?a=khe(r):i.commaOrSpaceSeparated?a=Mhe(khe(r).join(" ")):a=Phe(i,i.property,r):Array.isArray(r)?a=r.concat():a=i.property==="style"?SEn(r):String(r);if(Array.isArray(a)){const s=[];for(;++o<a.length;)s[o]=Phe(i,i.property,a[o]);a=s}i.property==="className"&&Array.isArray(t.className)&&(a=t.className.concat(a)),t[i.property]=a}}function wV(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;)wV(e,t[n]);else if(typeof t=="object"&&"type"in t)t.type==="root"?wV(e,t.children):e.push(t);else throw new Error("Expected node, nodes, or string, got `"+t+"`")}function Phe(e,t,n){if(typeof n=="string"){if(e.number&&n&&!Number.isNaN(Number(n)))return Number(n);if((e.boolean||e.overloadedBoolean)&&(n===""||Tx(n)===Tx(t)))return!0}return n}function SEn(e){const t=[];let n;for(n in e)CV.call(e,n)&&t.push([n,e[n]].join(": "));return t.join("; ")}function EEn(e){const t={};let n=-1;for(;++n<e.length;)t[e[n].toLowerCase()]=e[n];return t}const CEn=ODe(_O,"div"),wEn=["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"],TEn=ODe(dE,"g",wEn);function xEn(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 xx={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/"},RDe={}.hasOwnProperty,OEn=Object.prototype;function REn(e,t){const n=t||{};let r,i;return NEn(n)?(i=n,r={}):(i=n.file||void 0,r=n),rZ({schema:r.space==="svg"?dE:_O,file:i,verbose:r.verbose,location:!1},e)}function rZ(e,t){let n;switch(t.nodeName){case"#comment":{const r=t;return n={type:"comment",value:r.data},_N(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:IDe(e,t.childNodes),data:{quirksMode:i}},e.file&&e.location){const o=String(e.file),a=xEn(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"},_N(e,r,n),n}case"#text":{const r=t;return n={type:"text",value:r.value},_N(e,r,n),n}default:return n=IEn(e,t),n}}function IDe(e,t){let n=-1;const r=[];for(;++n<t.length;)r[n]=rZ(e,t[n]);return r}function IEn(e,t){const n=e.schema;e.schema=t.namespaceURI===xx.svg?dE:_O;let r=-1;const i={};for(;++r<t.attrs.length;){const s=t.attrs[r],l=(s.prefix?s.prefix+":":"")+s.name;RDe.call(OEn,l)||(i[l]=s.value)}const a=(e.schema.space==="svg"?TEn:CEn)(t.tagName,i,IDe(e,t.childNodes));if(_N(e,t,a),a.tagName==="template"){const s=t,l=s.sourceCodeLocation,c=l&&l.startTag&&cy(l.startTag),u=l&&l.endTag&&cy(l.endTag),d=rZ(e,s.content);c&&u&&e.file&&(d.position={start:c.end,end:u.start}),a.content=d}return e.schema=n,a}function _N(e,t,n){if("sourceCodeLocation"in t&&t.sourceCodeLocation&&e.file){const r=AEn(e,n,t.sourceCodeLocation);r&&(e.location=!0,n.position=r)}}function AEn(e,t,n){const r=cy(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)RDe.call(n.attrs,a)&&(o[A9(e.schema,a).property]=cy(n.attrs[a]));t.data={position:{opening:cy(n.startTag),closing:n.endTag?cy(n.endTag):null,properties:o}}}}return r}function cy(e){const t=Dhe({line:e.startLine,column:e.startCol,offset:e.startOffset}),n=Dhe({line:e.endLine,column:e.endCol,offset:e.endOffset});return t||n?{start:t,end:n}:void 0}function Dhe(e){return e.line&&e.column?e:void 0}function NEn(e){return"messages"in e}const Lhe={}.hasOwnProperty;function iZ(e,t){const n=t||{};function r(i,...o){let a=r.invalid;const s=r.handlers;if(i&&Lhe.call(i,e)){const l=String(i[e]);a=Lhe.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 MEn={}.hasOwnProperty,ADe=iZ("type",{handlers:{root:PEn,element:BEn,text:$En,comment:FEn,doctype:LEn}});function kEn(e,t){return ADe(e,_O)}function PEn(e,t){const n={nodeName:"#document",mode:(e.data||{}).quirksMode?"quirks":"no-quirks",childNodes:[]};return n.childNodes=oZ(e.children,n,t),fE(e,n),n}function DEn(e,t){const n={nodeName:"#document-fragment",childNodes:[]};return n.childNodes=oZ(e.children,n,t),fE(e,n),n}function LEn(e){const t={nodeName:"#documentType",name:"html",publicId:"",systemId:"",parentNode:void 0};return fE(e,t),t}function $En(e){const t={nodeName:"#text",value:e.value,parentNode:void 0};return fE(e,t),t}function FEn(e){const t={nodeName:"#comment",data:e.value,parentNode:void 0};return fE(e,t),t}function BEn(e,t){const n=t;let r=n;e.type==="element"&&e.tagName.toLowerCase()==="svg"&&n.space==="html"&&(r=dE);const i=[];let o;if(e.properties){for(o in e.properties)if(o!=="children"&&MEn.call(e.properties,o)){const s=jEn(r,o,e.properties[o]);s&&i.push(s)}}const a={nodeName:e.tagName,tagName:e.tagName,attrs:i,namespaceURI:xx[r.space],childNodes:[],parentNode:void 0};return a.childNodes=oZ(e.children,a,r),fE(e,a),e.tagName==="template"&&e.content&&(a.content=DEn(e.content,r)),a}function jEn(e,t,n){const r=A9(e,t);if(n==null||n===!1||typeof n=="number"&&Number.isNaN(n)||!n&&r.boolean)return;Array.isArray(n)&&(n=r.commaSeparated?xDe(n):TDe(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=xx[r.space]}return i}function oZ(e,t,n){let r=-1;const i=[];if(e)for(;++r<e.length;){const o=ADe(e[r],n);o.parentNode=t,i.push(o)}return i}function fE(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 NDe=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","isindex","keygen","link","menuitem","meta","nextid","param","source","track","wbr"],HEn="IN_TEMPLATE_MODE",UEn="DATA_STATE",zEn="CHARACTER_TOKEN",VEn="START_TAG_TOKEN",GEn="END_TAG_TOKEN",WEn="COMMENT_TOKEN",qEn="DOCTYPE_TOKEN",YEn={sourceCodeLocationInfo:!0,scriptingEnabled:!1},MDe=function(e,t,n){let r=-1;const i=new sEn(YEn),o=iZ("type",{handlers:{root:g,element:v,text:y,comment:_,doctype:b,raw:E},unknown:ZEn});let a,s,l,c,u;if(eCn(t)&&(n=t,t=void 0),n&&n.passThrough)for(;++r<n.passThrough.length;)o.handlers[n.passThrough[r]]=w;const d=REn(JEn(e)?h():f(),t);if(a&&zX(d,"comment",(C,T,x)=>{const O=C;if(O.value.stitch&&x!==null&&T!==null)return x.children[T]=O.value.stitch,T}),e.type!=="root"&&d.type==="root"&&d.children.length===1)return d.children[0];return d;function f(){const C={nodeName:"template",tagName:"template",attrs:[],namespaceURI:xx.html,childNodes:[]},T={nodeName:"documentmock",tagName:"documentmock",attrs:[],namespaceURI:xx.html,childNodes:[]},x={nodeName:"#document-fragment",childNodes:[]};if(i._bootstrap(T,C),i._pushTmplInsertionMode(HEn),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),S(),i._adoptNodes(T.childNodes[0],x),x}function h(){const C=i.treeAdapter.createDocument();if(i._bootstrap(C,void 0),s=i.tokenizer,!s)throw new Error("Expected `tokenizer`");return l=s.preprocessor,u=s.__mixins[0],c=u.posTracker,o(e),S(),C}function m(C){let T=-1;if(C)for(;++T<C.length;)o(C[T])}function g(C){m(C.children)}function v(C){S(),i._processInputToken(KEn(C)),m(C.children),NDe.includes(C.tagName)||(S(),i._processInputToken(XEn(C)))}function y(C){S(),i._processInputToken({type:zEn,chars:C.value,location:uy(C)})}function b(C){S(),i._processInputToken({type:qEn,name:"html",forceQuirks:!1,publicId:"",systemId:"",location:uy(C)})}function _(C){S(),i._processInputToken({type:WEn,data:C.value,location:uy(C)})}function E(C){const T=bO(C),x=T.line||1,O=T.column||1,N=T.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=-O+1,c.droppedBufferSize=N,c.offset=0,c.col=1,c.line=x,u.currentAttrLocation=void 0,u.ctLoc=uy(C),s.write(C.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 w(C){a=!0;let T;"children"in C?T={...C,children:MDe({type:"root",children:C.children},t,n).children}:T={...C},_({type:"comment",value:{stitch:T}})}function S(){if(!s)throw new Error("Expected `tokenizer`");if(!c)throw new Error("Expected `posTracker`");const C=s.currentCharacterToken;C&&(C.location.endLine=c.line,C.location.endCol=c.col+1,C.location.endOffset=c.offset+1,i._processInputToken(C)),s.tokenQueue=[],s.state=UEn,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 KEn(e){const t=Object.assign(uy(e));return t.startTag=Object.assign({},t),{type:VEn,tagName:e.tagName,selfClosing:!1,attrs:QEn(e),location:t}}function QEn(e){return kEn({tagName:e.tagName,type:"element",properties:e.properties,children:[]}).attrs}function XEn(e){const t=Object.assign(uy(e));return t.startTag=Object.assign({},t),{type:GEn,tagName:e.tagName,attrs:[],location:t}}function ZEn(e){throw new Error("Cannot compile `"+e.type+"` node")}function JEn(e){const t=e.type==="root"?e.children[0]:e;return!!(t&&(t.type==="doctype"||t.type==="element"&&t.tagName==="html"))}function uy(e){const t=bO(e),n=I9(e);return{startLine:t.line,startCol:t.column,startOffset:t.offset,endLine:n.line,endCol:n.column,endOffset:n.offset}}function eCn(e){return!!(e&&!("message"in e&&"messages"in e))}function tCn(e={}){return(t,n)=>MDe(t,n,e)}function nCn(e=VX){return t=>iyn(t,e)}const rCn=/["&'<>`]/g,iCn=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,oCn=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,aCn=/[|\\{}()[\]^$+*?.]/g,$he=new WeakMap;function sCn(e,t){if(e=e.replace(t.subset?lCn(t.subset):rCn,r),t.subset||t.escapeOnly)return e;return e.replace(iCn,n).replace(oCn,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 lCn(e){let t=$he.get(e);return t||(t=cCn(e),$he.set(e,t)),t}function cCn(e){const t=[];let n=-1;for(;++n<e.length;)t.push(e[n].replace(aCn,"\\$&"));return new RegExp("(?:"+t.join("|")+")","g")}const uCn=/[\dA-Fa-f]/;function dCn(e,t,n){const r="&#x"+e.toString(16).toUpperCase();return n&&t&&!uCn.test(String.fromCharCode(t))?r:r+";"}const fCn=/\d/;function pCn(e,t,n){const r="&#"+String(e);return n&&t&&!fCn.test(String.fromCharCode(t))?r:r+";"}const hCn=["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"],m7={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:"€"},mCn=["cent","copy","divide","gt","lt","not","para","times"],kDe={}.hasOwnProperty,TV={};let HI;for(HI in m7)kDe.call(m7,HI)&&(TV[m7[HI]]=HI);const gCn=/[^\dA-Za-z]/;function vCn(e,t,n,r){const i=String.fromCharCode(e);if(kDe.call(TV,i)){const o=TV[i],a="&"+o;return n&&hCn.includes(o)&&!mCn.includes(o)&&(!r||t&&t!==61&&gCn.test(String.fromCharCode(t)))?a:a+";"}return""}function bCn(e,t,n){let r=dCn(e,t,n.omitOptionalSemicolons),i;if((n.useNamedReferences||n.useShortestReferences)&&(i=vCn(e,t,n.omitOptionalSemicolons,n.attribute)),(n.useShortestReferences||!i)&&n.useShortestReferences){const o=pCn(e,t,n.omitOptionalSemicolons);o.length<r.length&&(r=o)}return i&&(!n.useShortestReferences||i.length<r.length)?i:r}function $y(e,t){return sCn(e,Object.assign({format:bCn},t))}function yCn(e,t,n,r){return r.settings.bogusComments?"<?"+$y(e.value,Object.assign({},r.settings.characterReferences,{subset:[">"]}))+">":"<!--"+e.value.replace(/^>|^->|<!--|-->|--!>|<!-$/g,i)+"-->";function i(o){return $y(o,Object.assign({},r.settings.characterReferences,{subset:["<",">"]}))}}function _Cn(e,t,n,r){return"<!"+(r.settings.upperDoctype?"DOCTYPE":"doctype")+(r.settings.tightDoctype?"":" ")+"html>"}function k4(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 aZ(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 ha=DDe(1),PDe=DDe(-1);function DDe(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&&aZ(s);)a+=e,s=o[a];return s}}const SCn={}.hasOwnProperty;function LDe(e){return t;function t(n,r,i){return SCn.call(e,n.tagName)&&e[n.tagName](n,r,i)}}const sZ=LDe({html:ECn,head:g7,body:CCn,p:wCn,li:TCn,dt:xCn,dd:OCn,rt:Fhe,rp:Fhe,optgroup:RCn,option:ICn,menuitem:ACn,colgroup:g7,caption:g7,thead:NCn,tbody:MCn,tfoot:kCn,tr:PCn,td:Bhe,th:Bhe});function g7(e,t,n){const r=ha(n,t,!0);return!r||r.type!=="comment"&&!(r.type==="text"&&aZ(r.value.charAt(0)))}function ECn(e,t,n){const r=ha(n,t);return!r||r.type!=="comment"}function CCn(e,t,n){const r=ha(n,t);return!r||r.type!=="comment"}function wCn(e,t,n){const r=ha(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 TCn(e,t,n){const r=ha(n,t);return!r||r.type==="element"&&r.tagName==="li"}function xCn(e,t,n){const r=ha(n,t);return r&&r.type==="element"&&(r.tagName==="dt"||r.tagName==="dd")}function OCn(e,t,n){const r=ha(n,t);return!r||r.type==="element"&&(r.tagName==="dt"||r.tagName==="dd")}function Fhe(e,t,n){const r=ha(n,t);return!r||r.type==="element"&&(r.tagName==="rp"||r.tagName==="rt")}function RCn(e,t,n){const r=ha(n,t);return!r||r.type==="element"&&r.tagName==="optgroup"}function ICn(e,t,n){const r=ha(n,t);return!r||r.type==="element"&&(r.tagName==="option"||r.tagName==="optgroup")}function ACn(e,t,n){const r=ha(n,t);return!r||r.type==="element"&&(r.tagName==="menuitem"||r.tagName==="hr"||r.tagName==="menu")}function NCn(e,t,n){const r=ha(n,t);return r&&r.type==="element"&&(r.tagName==="tbody"||r.tagName==="tfoot")}function MCn(e,t,n){const r=ha(n,t);return!r||r.type==="element"&&(r.tagName==="tbody"||r.tagName==="tfoot")}function kCn(e,t,n){return!ha(n,t)}function PCn(e,t,n){const r=ha(n,t);return!r||r.type==="element"&&r.tagName==="tr"}function Bhe(e,t,n){const r=ha(n,t);return!r||r.type==="element"&&(r.tagName==="td"||r.tagName==="th")}const DCn=LDe({html:LCn,head:$Cn,body:FCn,colgroup:BCn,tbody:jCn});function LCn(e){const t=ha(e,-1);return!t||t.type!=="comment"}function $Cn(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 FCn(e){const t=ha(e,-1,!0);return!t||t.type!=="comment"&&!(t.type==="text"&&aZ(t.value.charAt(0)))&&!(t.type==="element"&&(t.tagName==="meta"||t.tagName==="link"||t.tagName==="script"||t.tagName==="style"||t.tagName==="template"))}function BCn(e,t,n){const r=PDe(n,t),i=ha(e,-1,!0);return n&&r&&r.type==="element"&&r.tagName==="colgroup"&&sZ(r,n.children.indexOf(r),n)?!1:i&&i.type==="element"&&i.tagName==="col"}function jCn(e,t,n){const r=PDe(n,t),i=ha(e,-1);return n&&r&&r.type==="element"&&(r.tagName==="thead"||r.tagName==="tbody")&&sZ(r,n.children.indexOf(r),n)?!1:i&&i.type==="element"&&i.tagName==="tr"}const UI={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 HCn(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=dE);const c=UCn(r,e.properties),u=r.all(i.space==="html"&&e.tagName==="template"?e.content:e);return r.schema=i,u&&(a=!1),(c||!o||!DCn(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||!sZ(e,t,n))&&s.push("</"+e.tagName+">"),s.join("")}function UCn(e,t){const n=[];let r=-1,i;if(t){for(i in t)if(t[i]!==void 0&&t[i]!==null){const o=zCn(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 zCn(e,t,n){const r=A9(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=$y(r.attribute,Object.assign({},e.settings.characterReferences,{subset:UI.name[i][o]}));return n===!0||(n=Array.isArray(n)?(r.commaSeparated?xDe:TDe)(n,{padLeft:!e.settings.tightCommaSeparatedLists}):String(n),e.settings.collapseEmptyAttributes&&!n)?l:(e.settings.preferUnquoted&&(s=$y(n,Object.assign({},e.settings.characterReferences,{subset:UI.unquoted[i][o],attribute:!0}))),s!==n&&(e.settings.quoteSmart&&k4(n,a)>k4(n,e.alternative)&&(a=e.alternative),s=a+$y(n,Object.assign({},e.settings.characterReferences,{subset:(a==="'"?UI.single:UI.double)[i][o],attribute:!0}))+a),l+(s&&"="+s))}function $De(e,t,n,r){return n&&n.type==="element"&&(n.tagName==="script"||n.tagName==="style")?e.value:$y(e.value,Object.assign({},r.settings.characterReferences,{subset:["<","&"]}))}function VCn(e,t,n,r){return r.settings.allowDangerousHtml?e.value:$De(e,t,n,r)}function GCn(e,t,n,r){return r.all(e)}const WCn=iZ("type",{invalid:qCn,unknown:YCn,handlers:{comment:yCn,doctype:_Cn,element:HCn,raw:VCn,root:GCn,text:$De}});function qCn(e){throw new Error("Expected node, not `"+e+"`")}function YCn(e){throw new Error("Cannot compile unknown node `"+e.type+"`")}function KCn(e,t){const n=t||{},r=n.quote||'"',i=r==='"'?"'":'"';if(r!=='"'&&r!=="'")throw new Error("Invalid quote `"+r+"`, expected `'` or `\"`");return{one:QCn,all:XCn,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||NDe,characterReferences:n.characterReferences||n.entities||{},closeSelfClosing:n.closeSelfClosing||!1,closeEmptyElements:n.closeEmptyElements||!1},schema:n.space==="svg"?dE:_O,quote:r,alternative:i}.one(Array.isArray(e)?{type:"root",children:e}:e,void 0,void 0)}function QCn(e,t,n){return WCn(e,t,n,this)}function XCn(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 ZCn(e){const t=this.data("settings"),n=Object.assign({},t,e);Object.assign(this,{Compiler:r});function r(i){return KCn(i,n)}}const JCn={};function ewn(e,t){const n=JCn,r=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,i=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return FDe(e,r,i)}function FDe(e,t,n){if(twn(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 jhe(e.children,t,n)}return Array.isArray(e)?jhe(e,t,n):""}function jhe(e,t,n){const r=[];let i=-1;for(;++i<e.length;)r[i]=FDe(e[i],t,n);return r.join("")}function twn(e){return!!(e&&typeof e=="object")}function bc(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 Jc(e,t){return e.length>0?(bc(e,e.length,0,t),e):t}const Hhe={}.hasOwnProperty;function BDe(e){const t={};let n=-1;for(;++n<e.length;)nwn(t,e[n]);return t}function nwn(e,t){let n;for(n in t){const i=(Hhe.call(e,n)?e[n]:void 0)||(e[n]={}),o=t[n];let a;if(o)for(a in o){Hhe.call(i,a)||(i[a]=[]);const s=o[a];rwn(i[a],Array.isArray(s)?s:s?[s]:[])}}}function rwn(e,t){let n=-1;const r=[];for(;++n<t.length;)(t[n].add==="after"?e:r).push(t[n]);bc(e,0,0,r)}const iwn=/[!-\/:-@\[-`\{-~\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]/,Ys=Hg(/[A-Za-z]/),Rs=Hg(/[\dA-Za-z]/),own=Hg(/[#-'*+\--9=?A-Z^-~]/);function P4(e){return e!==null&&(e<32||e===127)}const xV=Hg(/\d/),awn=Hg(/[\dA-Fa-f]/),swn=Hg(/[!-/:-@[-`{-~]/);function dr(e){return e!==null&&e<-2}function Ui(e){return e!==null&&(e<0||e===32)}function Ur(e){return e===-2||e===-1||e===32}const N9=Hg(iwn),s0=Hg(/\s/);function Hg(e){return t;function t(n){return n!==null&&e.test(String.fromCharCode(n))}}function ni(e,t,n,r){const i=r?r-1:Number.POSITIVE_INFINITY;let o=0;return a;function a(l){return Ur(l)?(e.enter(n),s(l)):t(l)}function s(l){return Ur(l)&&o++<i?(e.consume(l),s):(e.exit(n),t(l))}}const lwn={tokenize:cwn};function cwn(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"),ni(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 dr(s)?(e.consume(s),e.exit("chunkText"),o):(e.consume(s),a)}}const uwn={tokenize:dwn},Uhe={tokenize:fwn};function dwn(e){const t=this,n=[];let r=0,i,o,a;return s;function s(_){if(r<n.length){const E=n[r];return t.containerState=E[1],e.attempt(E[0].continuation,l,c)(_)}return c(_)}function l(_){if(r++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,i&&b();const E=t.events.length;let w=E,S;for(;w--;)if(t.events[w][0]==="exit"&&t.events[w][1].type==="chunkFlow"){S=t.events[w][1].end;break}y(r);let C=E;for(;C<t.events.length;)t.events[C][1].end=Object.assign({},S),C++;return bc(t.events,w+1,0,t.events.slice(E)),t.events.length=C,c(_)}return s(_)}function c(_){if(r===n.length){if(!i)return f(_);if(i.currentConstruct&&i.currentConstruct.concrete)return m(_);t.interrupt=!!(i.currentConstruct&&!i._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(Uhe,u,d)(_)}function u(_){return i&&b(),y(r),f(_)}function d(_){return t.parser.lazy[t.now().line]=r!==n.length,a=t.now().offset,m(_)}function f(_){return t.containerState={},e.attempt(Uhe,h,m)(_)}function h(_){return r++,n.push([t.currentConstruct,t.containerState]),f(_)}function m(_){if(_===null){i&&b(),y(0),e.consume(_);return}return i=i||t.parser.flow(t.now()),e.enter("chunkFlow",{contentType:"flow",previous:o,_tokenizer:i}),g(_)}function g(_){if(_===null){v(e.exit("chunkFlow"),!0),y(0),e.consume(_);return}return dr(_)?(e.consume(_),v(e.exit("chunkFlow")),r=0,t.interrupt=void 0,s):(e.consume(_),g)}function v(_,E){const w=t.sliceStream(_);if(E&&w.push(null),_.previous=o,o&&(o.next=_),o=_,i.defineSkip(_.start),i.write(w),t.parser.lazy[_.start.line]){let S=i.events.length;for(;S--;)if(i.events[S][1].start.offset<a&&(!i.events[S][1].end||i.events[S][1].end.offset>a))return;const C=t.events.length;let T=C,x,O;for(;T--;)if(t.events[T][0]==="exit"&&t.events[T][1].type==="chunkFlow"){if(x){O=t.events[T][1].end;break}x=!0}for(y(r),S=C;S<t.events.length;)t.events[S][1].end=Object.assign({},O),S++;bc(t.events,T+1,0,t.events.slice(C)),t.events.length=S}}function y(_){let E=n.length;for(;E-- >_;){const w=n[E];t.containerState=w[1],w[0].exit.call(t,e)}n.length=_}function b(){i.write([null]),o=void 0,i=void 0,t.containerState._closeFlow=void 0}}function fwn(e,t,n){return ni(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function D4(e){if(e===null||Ui(e)||s0(e))return 1;if(N9(e))return 2}function M9(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 OV={name:"attention",tokenize:hwn,resolveAll:pwn};function pwn(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),f=Object.assign({},e[n][1].start);zhe(d,-l),zhe(f,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:f},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=Jc(c,[["enter",e[r][1],t],["exit",e[r][1],t]])),c=Jc(c,[["enter",i,t],["enter",a,t],["exit",a,t],["enter",o,t]]),c=Jc(c,M9(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),c=Jc(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=Jc(c,[["enter",e[n][1],t],["exit",e[n][1],t]])):u=0,bc(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 hwn(e,t){const n=this.parser.constructs.attentionMarkers.null,r=this.previous,i=D4(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=D4(l),d=!u||u===2&&i||n.includes(l),f=!i||i===2&&u||n.includes(r);return c._open=!!(o===42?d:d&&(i||!f)),c._close=!!(o===42?f:f&&(u||!d)),t(l)}}function zhe(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const mwn={name:"autolink",tokenize:gwn};function gwn(e,t,n){let r=0;return i;function i(h){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(h),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),o}function o(h){return Ys(h)?(e.consume(h),a):c(h)}function a(h){return h===43||h===45||h===46||Rs(h)?(r=1,s(h)):c(h)}function s(h){return h===58?(e.consume(h),r=0,l):(h===43||h===45||h===46||Rs(h))&&r++<32?(e.consume(h),s):(r=0,c(h))}function l(h){return h===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(h),e.exit("autolinkMarker"),e.exit("autolink"),t):h===null||h===32||h===60||P4(h)?n(h):(e.consume(h),l)}function c(h){return h===64?(e.consume(h),u):own(h)?(e.consume(h),c):n(h)}function u(h){return Rs(h)?d(h):n(h)}function d(h){return h===46?(e.consume(h),r=0,u):h===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(h),e.exit("autolinkMarker"),e.exit("autolink"),t):f(h)}function f(h){if((h===45||Rs(h))&&r++<63){const m=h===45?f:d;return e.consume(h),m}return n(h)}}const SO={tokenize:vwn,partial:!0};function vwn(e,t,n){return r;function r(o){return Ur(o)?ni(e,i,"linePrefix")(o):i(o)}function i(o){return o===null||dr(o)?t(o):n(o)}}const jDe={name:"blockQuote",tokenize:bwn,continuation:{tokenize:ywn},exit:_wn};function bwn(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 Ur(a)?(e.enter("blockQuotePrefixWhitespace"),e.consume(a),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(a))}}function ywn(e,t,n){const r=this;return i;function i(a){return Ur(a)?ni(e,o,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(a):o(a)}function o(a){return e.attempt(jDe,t,n)(a)}}function _wn(e){e.exit("blockQuote")}const HDe={name:"characterEscape",tokenize:Swn};function Swn(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 swn(o)?(e.enter("characterEscapeValue"),e.consume(o),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(o)}}const Vhe=document.createElement("i");function lZ(e){const t="&"+e+";";Vhe.innerHTML=t;const n=Vhe.textContent;return n.charCodeAt(n.length-1)===59&&e!=="semi"||n===t?!1:n}const UDe={name:"characterReference",tokenize:Ewn};function Ewn(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=Rs,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=awn,u):(e.enter("characterReferenceValue"),o=7,a=xV,u(d))}function u(d){if(d===59&&i){const f=e.exit("characterReferenceValue");return a===Rs&&!lZ(r.sliceSerialize(f))?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 Ghe={tokenize:wwn,partial:!0},Whe={name:"codeFenced",tokenize:Cwn,concrete:!0};function Cwn(e,t,n){const r=this,i={tokenize:w,partial:!0};let o=0,a=0,s;return l;function l(S){return c(S)}function c(S){const C=r.events[r.events.length-1];return o=C&&C[1].type==="linePrefix"?C[2].sliceSerialize(C[1],!0).length:0,s=S,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),u(S)}function u(S){return S===s?(a++,e.consume(S),u):a<3?n(S):(e.exit("codeFencedFenceSequence"),Ur(S)?ni(e,d,"whitespace")(S):d(S))}function d(S){return S===null||dr(S)?(e.exit("codeFencedFence"),r.interrupt?t(S):e.check(Ghe,g,E)(S)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),f(S))}function f(S){return S===null||dr(S)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),d(S)):Ur(S)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),ni(e,h,"whitespace")(S)):S===96&&S===s?n(S):(e.consume(S),f)}function h(S){return S===null||dr(S)?d(S):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),m(S))}function m(S){return S===null||dr(S)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),d(S)):S===96&&S===s?n(S):(e.consume(S),m)}function g(S){return e.attempt(i,E,v)(S)}function v(S){return e.enter("lineEnding"),e.consume(S),e.exit("lineEnding"),y}function y(S){return o>0&&Ur(S)?ni(e,b,"linePrefix",o+1)(S):b(S)}function b(S){return S===null||dr(S)?e.check(Ghe,g,E)(S):(e.enter("codeFlowValue"),_(S))}function _(S){return S===null||dr(S)?(e.exit("codeFlowValue"),b(S)):(e.consume(S),_)}function E(S){return e.exit("codeFenced"),t(S)}function w(S,C,T){let x=0;return O;function O(k){return S.enter("lineEnding"),S.consume(k),S.exit("lineEnding"),N}function N(k){return S.enter("codeFencedFence"),Ur(k)?ni(S,I,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(k):I(k)}function I(k){return k===s?(S.enter("codeFencedFenceSequence"),M(k)):T(k)}function M(k){return k===s?(x++,S.consume(k),M):x>=a?(S.exit("codeFencedFenceSequence"),Ur(k)?ni(S,F,"whitespace")(k):F(k)):T(k)}function F(k){return k===null||dr(k)?(S.exit("codeFencedFence"),C(k)):T(k)}}}function wwn(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 v7={name:"codeIndented",tokenize:xwn},Twn={tokenize:Own,partial:!0};function xwn(e,t,n){const r=this;return i;function i(c){return e.enter("codeIndented"),ni(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):dr(c)?e.attempt(Twn,a,l)(c):(e.enter("codeFlowValue"),s(c))}function s(c){return c===null||dr(c)?(e.exit("codeFlowValue"),a(c)):(e.consume(c),s)}function l(c){return e.exit("codeIndented"),t(c)}}function Own(e,t,n){const r=this;return i;function i(a){return r.parser.lazy[r.now().line]?n(a):dr(a)?(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),i):ni(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):dr(a)?i(a):n(a)}}const Rwn={name:"codeText",tokenize:Nwn,resolve:Iwn,previous:Awn};function Iwn(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 Awn(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function Nwn(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)):dr(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||dr(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 zDe(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,Mwn(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),bc(e,i,n-i+1,s))}}return!c}function Mwn(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,f=-1,h=n,m=0,g=0;const v=[g];for(;h;){for(;e[++i][1]!==h;);o.push(i),h._tokenizer||(u=r.sliceStream(h),h.next||u.push(null),d&&a.defineSkip(h.start),h._isInFirstContentOfListItem&&(a._gfmTasklistFirstContentOfListItem=!0),a.write(u),h._isInFirstContentOfListItem&&(a._gfmTasklistFirstContentOfListItem=void 0)),d=h,h=h.next}for(h=n;++f<s.length;)s[f][0]==="exit"&&s[f-1][0]==="enter"&&s[f][1].type===s[f-1][1].type&&s[f][1].start.line!==s[f][1].end.line&&(g=f+1,v.push(g),h._tokenizer=void 0,h.previous=void 0,h=h.next);for(a.events=[],h?(h._tokenizer=void 0,h.previous=void 0):v.pop(),f=v.length;f--;){const y=s.slice(v[f],v[f+1]),b=o.pop();l.unshift([b,b+y.length-1]),bc(e,b,2,y)}for(f=-1;++f<l.length;)c[m+l[f][0]]=m+l[f][1],m+=l[f][1]-l[f][0]-1;return c}const kwn={tokenize:Lwn,resolve:Dwn},Pwn={tokenize:$wn,partial:!0};function Dwn(e){return zDe(e),e}function Lwn(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):dr(s)?e.check(Pwn,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 $wn(e,t,n){const r=this;return i;function i(a){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),ni(e,o,"linePrefix")}function o(a){if(a===null||dr(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 VDe(e,t,n,r,i,o,a,s,l){const c=l||Number.POSITIVE_INFINITY;let u=0;return d;function d(y){return y===60?(e.enter(r),e.enter(i),e.enter(o),e.consume(y),e.exit(o),f):y===null||y===32||y===41||P4(y)?n(y):(e.enter(r),e.enter(a),e.enter(s),e.enter("chunkString",{contentType:"string"}),g(y))}function f(y){return y===62?(e.enter(o),e.consume(y),e.exit(o),e.exit(i),e.exit(r),t):(e.enter(s),e.enter("chunkString",{contentType:"string"}),h(y))}function h(y){return y===62?(e.exit("chunkString"),e.exit(s),f(y)):y===null||y===60||dr(y)?n(y):(e.consume(y),y===92?m:h)}function m(y){return y===60||y===62||y===92?(e.consume(y),h):h(y)}function g(y){return!u&&(y===null||y===41||Ui(y))?(e.exit("chunkString"),e.exit(s),e.exit(a),e.exit(r),t(y)):u<c&&y===40?(e.consume(y),u++,g):y===41?(e.consume(y),u--,g):y===null||y===32||y===40||P4(y)?n(y):(e.consume(y),y===92?v:g)}function v(y){return y===40||y===41||y===92?(e.consume(y),g):g(y)}}function GDe(e,t,n,r,i,o){const a=this;let s=0,l;return c;function c(h){return e.enter(r),e.enter(i),e.consume(h),e.exit(i),e.enter(o),u}function u(h){return s>999||h===null||h===91||h===93&&!l||h===94&&!s&&"_hiddenFootnoteSupport"in a.parser.constructs?n(h):h===93?(e.exit(o),e.enter(i),e.consume(h),e.exit(i),e.exit(r),t):dr(h)?(e.enter("lineEnding"),e.consume(h),e.exit("lineEnding"),u):(e.enter("chunkString",{contentType:"string"}),d(h))}function d(h){return h===null||h===91||h===93||dr(h)||s++>999?(e.exit("chunkString"),u(h)):(e.consume(h),l||(l=!Ur(h)),h===92?f:d)}function f(h){return h===91||h===92||h===93?(e.consume(h),s++,d):d(h)}}function WDe(e,t,n,r,i,o){let a;return s;function s(f){return f===34||f===39||f===40?(e.enter(r),e.enter(i),e.consume(f),e.exit(i),a=f===40?41:f,l):n(f)}function l(f){return f===a?(e.enter(i),e.consume(f),e.exit(i),e.exit(r),t):(e.enter(o),c(f))}function c(f){return f===a?(e.exit(o),l(a)):f===null?n(f):dr(f)?(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),ni(e,c,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),u(f))}function u(f){return f===a||f===null||dr(f)?(e.exit("chunkString"),c(f)):(e.consume(f),f===92?d:u)}function d(f){return f===a||f===92?(e.consume(f),u):u(f)}}function Bw(e,t){let n;return r;function r(i){return dr(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),n=!0,r):Ur(i)?ni(e,r,n?"linePrefix":"lineSuffix")(i):t(i)}}function yd(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Fwn={name:"definition",tokenize:jwn},Bwn={tokenize:Hwn,partial:!0};function jwn(e,t,n){const r=this;let i;return o;function o(h){return e.enter("definition"),a(h)}function a(h){return GDe.call(r,e,s,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(h)}function s(h){return i=yd(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),h===58?(e.enter("definitionMarker"),e.consume(h),e.exit("definitionMarker"),l):n(h)}function l(h){return Ui(h)?Bw(e,c)(h):c(h)}function c(h){return VDe(e,u,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(h)}function u(h){return e.attempt(Bwn,d,d)(h)}function d(h){return Ur(h)?ni(e,f,"whitespace")(h):f(h)}function f(h){return h===null||dr(h)?(e.exit("definition"),r.parser.defined.push(i),t(h)):n(h)}}function Hwn(e,t,n){return r;function r(s){return Ui(s)?Bw(e,i)(s):n(s)}function i(s){return WDe(e,o,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(s)}function o(s){return Ur(s)?ni(e,a,"whitespace")(s):a(s)}function a(s){return s===null||dr(s)?t(s):n(s)}}const Uwn={name:"hardBreakEscape",tokenize:zwn};function zwn(e,t,n){return r;function r(o){return e.enter("hardBreakEscape"),e.consume(o),i}function i(o){return dr(o)?(e.exit("hardBreakEscape"),t(o)):n(o)}}const Vwn={name:"headingAtx",tokenize:Wwn,resolve:Gwn};function Gwn(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"},bc(e,r,n-r+1,[["enter",i,t],["enter",o,t],["exit",o,t],["exit",i,t]])),e}function Wwn(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||Ui(u)?(e.exit("atxHeadingSequence"),s(u)):n(u)}function s(u){return u===35?(e.enter("atxHeadingSequence"),l(u)):u===null||dr(u)?(e.exit("atxHeading"),t(u)):Ur(u)?ni(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||Ui(u)?(e.exit("atxHeadingText"),s(u)):(e.consume(u),c)}}const qwn=["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"],qhe=["pre","script","style","textarea"],Ywn={name:"htmlFlow",tokenize:Zwn,resolveTo:Xwn,concrete:!0},Kwn={tokenize:eTn,partial:!0},Qwn={tokenize:Jwn,partial:!0};function Xwn(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 Zwn(e,t,n){const r=this;let i,o,a,s,l;return c;function c(U){return u(U)}function u(U){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(U),d}function d(U){return U===33?(e.consume(U),f):U===47?(e.consume(U),o=!0,g):U===63?(e.consume(U),i=3,r.interrupt?t:L):Ys(U)?(e.consume(U),a=String.fromCharCode(U),v):n(U)}function f(U){return U===45?(e.consume(U),i=2,h):U===91?(e.consume(U),i=5,s=0,m):Ys(U)?(e.consume(U),i=4,r.interrupt?t:L):n(U)}function h(U){return U===45?(e.consume(U),r.interrupt?t:L):n(U)}function m(U){const J="CDATA[";return U===J.charCodeAt(s++)?(e.consume(U),s===J.length?r.interrupt?t:I:m):n(U)}function g(U){return Ys(U)?(e.consume(U),a=String.fromCharCode(U),v):n(U)}function v(U){if(U===null||U===47||U===62||Ui(U)){const J=U===47,te=a.toLowerCase();return!J&&!o&&qhe.includes(te)?(i=1,r.interrupt?t(U):I(U)):qwn.includes(a.toLowerCase())?(i=6,J?(e.consume(U),y):r.interrupt?t(U):I(U)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(U):o?b(U):_(U))}return U===45||Rs(U)?(e.consume(U),a+=String.fromCharCode(U),v):n(U)}function y(U){return U===62?(e.consume(U),r.interrupt?t:I):n(U)}function b(U){return Ur(U)?(e.consume(U),b):O(U)}function _(U){return U===47?(e.consume(U),O):U===58||U===95||Ys(U)?(e.consume(U),E):Ur(U)?(e.consume(U),_):O(U)}function E(U){return U===45||U===46||U===58||U===95||Rs(U)?(e.consume(U),E):w(U)}function w(U){return U===61?(e.consume(U),S):Ur(U)?(e.consume(U),w):_(U)}function S(U){return U===null||U===60||U===61||U===62||U===96?n(U):U===34||U===39?(e.consume(U),l=U,C):Ur(U)?(e.consume(U),S):T(U)}function C(U){return U===l?(e.consume(U),l=null,x):U===null||dr(U)?n(U):(e.consume(U),C)}function T(U){return U===null||U===34||U===39||U===47||U===60||U===61||U===62||U===96||Ui(U)?w(U):(e.consume(U),T)}function x(U){return U===47||U===62||Ur(U)?_(U):n(U)}function O(U){return U===62?(e.consume(U),N):n(U)}function N(U){return U===null||dr(U)?I(U):Ur(U)?(e.consume(U),N):n(U)}function I(U){return U===45&&i===2?(e.consume(U),B):U===60&&i===1?(e.consume(U),A):U===62&&i===4?(e.consume(U),V):U===63&&i===3?(e.consume(U),L):U===93&&i===5?(e.consume(U),z):dr(U)&&(i===6||i===7)?(e.exit("htmlFlowData"),e.check(Kwn,j,M)(U)):U===null||dr(U)?(e.exit("htmlFlowData"),M(U)):(e.consume(U),I)}function M(U){return e.check(Qwn,F,j)(U)}function F(U){return e.enter("lineEnding"),e.consume(U),e.exit("lineEnding"),k}function k(U){return U===null||dr(U)?M(U):(e.enter("htmlFlowData"),I(U))}function B(U){return U===45?(e.consume(U),L):I(U)}function A(U){return U===47?(e.consume(U),a="",P):I(U)}function P(U){if(U===62){const J=a.toLowerCase();return qhe.includes(J)?(e.consume(U),V):I(U)}return Ys(U)&&a.length<8?(e.consume(U),a+=String.fromCharCode(U),P):I(U)}function z(U){return U===93?(e.consume(U),L):I(U)}function L(U){return U===62?(e.consume(U),V):U===45&&i===2?(e.consume(U),L):I(U)}function V(U){return U===null||dr(U)?(e.exit("htmlFlowData"),j(U)):(e.consume(U),V)}function j(U){return e.exit("htmlFlow"),t(U)}}function Jwn(e,t,n){const r=this;return i;function i(a){return dr(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 eTn(e,t,n){return r;function r(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt(SO,t,n)}}const tTn={name:"htmlText",tokenize:nTn};function nTn(e,t,n){const r=this;let i,o,a;return s;function s(L){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(L),l}function l(L){return L===33?(e.consume(L),c):L===47?(e.consume(L),w):L===63?(e.consume(L),_):Ys(L)?(e.consume(L),T):n(L)}function c(L){return L===45?(e.consume(L),u):L===91?(e.consume(L),o=0,m):Ys(L)?(e.consume(L),b):n(L)}function u(L){return L===45?(e.consume(L),h):n(L)}function d(L){return L===null?n(L):L===45?(e.consume(L),f):dr(L)?(a=d,A(L)):(e.consume(L),d)}function f(L){return L===45?(e.consume(L),h):d(L)}function h(L){return L===62?B(L):L===45?f(L):d(L)}function m(L){const V="CDATA[";return L===V.charCodeAt(o++)?(e.consume(L),o===V.length?g:m):n(L)}function g(L){return L===null?n(L):L===93?(e.consume(L),v):dr(L)?(a=g,A(L)):(e.consume(L),g)}function v(L){return L===93?(e.consume(L),y):g(L)}function y(L){return L===62?B(L):L===93?(e.consume(L),y):g(L)}function b(L){return L===null||L===62?B(L):dr(L)?(a=b,A(L)):(e.consume(L),b)}function _(L){return L===null?n(L):L===63?(e.consume(L),E):dr(L)?(a=_,A(L)):(e.consume(L),_)}function E(L){return L===62?B(L):_(L)}function w(L){return Ys(L)?(e.consume(L),S):n(L)}function S(L){return L===45||Rs(L)?(e.consume(L),S):C(L)}function C(L){return dr(L)?(a=C,A(L)):Ur(L)?(e.consume(L),C):B(L)}function T(L){return L===45||Rs(L)?(e.consume(L),T):L===47||L===62||Ui(L)?x(L):n(L)}function x(L){return L===47?(e.consume(L),B):L===58||L===95||Ys(L)?(e.consume(L),O):dr(L)?(a=x,A(L)):Ur(L)?(e.consume(L),x):B(L)}function O(L){return L===45||L===46||L===58||L===95||Rs(L)?(e.consume(L),O):N(L)}function N(L){return L===61?(e.consume(L),I):dr(L)?(a=N,A(L)):Ur(L)?(e.consume(L),N):x(L)}function I(L){return L===null||L===60||L===61||L===62||L===96?n(L):L===34||L===39?(e.consume(L),i=L,M):dr(L)?(a=I,A(L)):Ur(L)?(e.consume(L),I):(e.consume(L),F)}function M(L){return L===i?(e.consume(L),i=void 0,k):L===null?n(L):dr(L)?(a=M,A(L)):(e.consume(L),M)}function F(L){return L===null||L===34||L===39||L===60||L===61||L===96?n(L):L===47||L===62||Ui(L)?x(L):(e.consume(L),F)}function k(L){return L===47||L===62||Ui(L)?x(L):n(L)}function B(L){return L===62?(e.consume(L),e.exit("htmlTextData"),e.exit("htmlText"),t):n(L)}function A(L){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(L),e.exit("lineEnding"),P}function P(L){return Ur(L)?ni(e,z,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(L):z(L)}function z(L){return e.enter("htmlTextData"),a(L)}}const cZ={name:"labelEnd",tokenize:lTn,resolveTo:sTn,resolveAll:aTn},rTn={tokenize:cTn},iTn={tokenize:uTn},oTn={tokenize:dTn};function aTn(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 sTn(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=Jc(s,e.slice(o+1,o+r+3)),s=Jc(s,[["enter",u,t]]),s=Jc(s,M9(t.parser.constructs.insideSpan.null,e.slice(o+r+4,a-3),t)),s=Jc(s,[["exit",u,t],e[a-2],e[a-1],["exit",c,t]]),s=Jc(s,e.slice(a+1)),s=Jc(s,[["exit",l,t]]),bc(e,o,e.length,s),e}function lTn(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(f){return o?o._inactive?d(f):(a=r.parser.defined.includes(yd(r.sliceSerialize({start:o.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(f),e.exit("labelMarker"),e.exit("labelEnd"),l):n(f)}function l(f){return f===40?e.attempt(rTn,u,a?u:d)(f):f===91?e.attempt(iTn,u,a?c:d)(f):a?u(f):d(f)}function c(f){return e.attempt(oTn,u,d)(f)}function u(f){return t(f)}function d(f){return o._balanced=!0,n(f)}}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 Ui(d)?Bw(e,o)(d):o(d)}function o(d){return d===41?u(d):VDe(e,a,s,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(d)}function a(d){return Ui(d)?Bw(e,l)(d):u(d)}function s(d){return n(d)}function l(d){return d===34||d===39||d===40?WDe(e,c,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(d):u(d)}function c(d){return Ui(d)?Bw(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 uTn(e,t,n){const r=this;return i;function i(s){return GDe.call(r,e,o,a,"reference","referenceMarker","referenceString")(s)}function o(s){return r.parser.defined.includes(yd(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(s):n(s)}function a(s){return n(s)}}function dTn(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 fTn={name:"labelStartImage",tokenize:pTn,resolveAll:cZ.resolveAll};function pTn(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 hTn={name:"labelStartLink",tokenize:mTn,resolveAll:cZ.resolveAll};function mTn(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 b7={name:"lineEnding",tokenize:gTn};function gTn(e,t){return n;function n(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),ni(e,t,"linePrefix")}}const SN={name:"thematicBreak",tokenize:vTn};function vTn(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||dr(c))?(e.exit("thematicBreak"),t(c)):n(c)}function l(c){return c===i?(e.consume(c),r++,l):(e.exit("thematicBreakSequence"),Ur(c)?ni(e,s,"whitespace")(c):s(c))}}const ul={name:"list",tokenize:_Tn,continuation:{tokenize:STn},exit:CTn},bTn={tokenize:wTn,partial:!0},yTn={tokenize:ETn,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(h){const m=r.containerState.type||(h===42||h===43||h===45?"listUnordered":"listOrdered");if(m==="listUnordered"?!r.containerState.marker||h===r.containerState.marker:xV(h)){if(r.containerState.type||(r.containerState.type=m,e.enter(m,{_container:!0})),m==="listUnordered")return e.enter("listItemPrefix"),h===42||h===45?e.check(SN,n,c)(h):c(h);if(!r.interrupt||h===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),l(h)}return n(h)}function l(h){return xV(h)&&++a<10?(e.consume(h),l):(!r.interrupt||a<2)&&(r.containerState.marker?h===r.containerState.marker:h===41||h===46)?(e.exit("listItemValue"),c(h)):n(h)}function c(h){return e.enter("listItemMarker"),e.consume(h),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||h,e.check(SO,r.interrupt?n:u,e.attempt(bTn,f,d))}function u(h){return r.containerState.initialBlankLine=!0,o++,f(h)}function d(h){return Ur(h)?(e.enter("listItemPrefixWhitespace"),e.consume(h),e.exit("listItemPrefixWhitespace"),f):n(h)}function f(h){return r.containerState.size=o+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(h)}}function STn(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(SO,i,o);function i(s){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,ni(e,t,"listItemIndent",r.containerState.size+1)(s)}function o(s){return r.containerState.furtherBlankLines||!Ur(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(yTn,t,a)(s))}function a(s){return r.containerState._closeFlow=!0,r.interrupt=void 0,ni(e,e.attempt(ul,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(s)}}function ETn(e,t,n){const r=this;return ni(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 CTn(e){e.exit(this.containerState.type)}function wTn(e,t,n){const r=this;return ni(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!Ur(o)&&a&&a[1].type==="listItemPrefixWhitespace"?t(o):n(o)}}const Yhe={name:"setextUnderline",tokenize:xTn,resolveTo:TTn};function TTn(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 xTn(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"),Ur(c)?ni(e,l,"lineSuffix")(c):l(c))}function l(c){return c===null||dr(c)?(e.exit("setextHeadingLine"),t(c)):n(c)}}const OTn={tokenize:RTn};function RTn(e){const t=this,n=e.attempt(SO,r,e.attempt(this.parser.constructs.flowInitial,i,ni(e,e.attempt(this.parser.constructs.flow,i,e.attempt(kwn,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 ITn={resolveAll:YDe()},ATn=qDe("string"),NTn=qDe("text");function qDe(e){return{tokenize:t,resolveAll:YDe(e==="text"?MTn: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 f=-1;if(d)for(;++f<d.length;){const h=d[f];if(!h.previous||h.previous.call(r,r.previous))return!0}return!1}}}function YDe(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 MTn(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 kTn(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:_,exit:E,attempt:C(w),check:C(S),interrupt:C(S,{interrupt:!0})},c={previous:null,code:null,containerState:{},events:[],parser:e,sliceStream:h,sliceSerialize:f,now:m,defineSkip:g,write:d};let u=t.tokenize.call(c,l);return t.resolveAll&&o.push(t),c;function d(N){return a=Jc(a,N),v(),a[a.length-1]!==null?[]:(T(t,0),c.events=M9(o,c.events,c),c.events)}function f(N,I){return DTn(h(N),I)}function h(N){return PTn(a,N)}function m(){const{line:N,column:I,offset:M,_index:F,_bufferIndex:k}=r;return{line:N,column:I,offset:M,_index:F,_bufferIndex:k}}function g(N){i[N.line]=N.column,O()}function v(){let N;for(;r._index<a.length;){const I=a[r._index];if(typeof I=="string")for(N=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===N&&r._bufferIndex<I.length;)y(I.charCodeAt(r._bufferIndex));else y(I)}}function y(N){u=u(N)}function b(N){dr(N)?(r.line++,r.column=1,r.offset+=N===-3?2:1,O()):N!==-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=N}function _(N,I){const M=I||{};return M.type=N,M.start=m(),c.events.push(["enter",M,c]),s.push(M),M}function E(N){const I=s.pop();return I.end=m(),c.events.push(["exit",I,c]),I}function w(N,I){T(N,I.from)}function S(N,I){I.restore()}function C(N,I){return M;function M(F,k,B){let A,P,z,L;return Array.isArray(F)?j(F):"tokenize"in F?j([F]):V(F);function V(ae){return K;function K(Q){const oe=Q!==null&&ae[Q],ge=Q!==null&&ae.null,fe=[...Array.isArray(oe)?oe:oe?[oe]:[],...Array.isArray(ge)?ge:ge?[ge]:[]];return j(fe)(Q)}}function j(ae){return A=ae,P=0,ae.length===0?B:U(ae[P])}function U(ae){return K;function K(Q){return L=x(),z=ae,ae.partial||(c.currentConstruct=ae),ae.name&&c.parser.constructs.disable.null.includes(ae.name)?te():ae.tokenize.call(I?Object.assign(Object.create(c),I):c,l,J,te)(Q)}}function J(ae){return N(z,L),k}function te(ae){return L.restore(),++P<A.length?U(A[P]):B}}}function T(N,I){N.resolveAll&&!o.includes(N)&&o.push(N),N.resolve&&bc(c.events,I,c.events.length-I,N.resolve(c.events.slice(I),c)),N.resolveTo&&(c.events=N.resolveTo(c.events,c))}function x(){const N=m(),I=c.previous,M=c.currentConstruct,F=c.events.length,k=Array.from(s);return{restore:B,from:F};function B(){r=N,c.previous=I,c.currentConstruct=M,c.events.length=F,s=k,O()}}function O(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}function PTn(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 DTn(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 LTn={42:ul,43:ul,45:ul,48:ul,49:ul,50:ul,51:ul,52:ul,53:ul,54:ul,55:ul,56:ul,57:ul,62:jDe},$Tn={91:Fwn},FTn={[-2]:v7,[-1]:v7,32:v7},BTn={35:Vwn,42:SN,45:[Yhe,SN],60:Ywn,61:Yhe,95:SN,96:Whe,126:Whe},jTn={38:UDe,92:HDe},HTn={[-5]:b7,[-4]:b7,[-3]:b7,33:fTn,38:UDe,42:OV,60:[mwn,tTn],91:hTn,92:[Uwn,HDe],93:cZ,95:OV,96:Rwn},UTn={null:[OV,ITn]},zTn={null:[42,95]},VTn={null:[]},GTn=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:zTn,contentInitial:$Tn,disable:VTn,document:LTn,flow:BTn,flowInitial:FTn,insideSpan:UTn,string:jTn,text:HTn},Symbol.toStringTag,{value:"Module"}));function WTn(e){const n=BDe([GTn,...(e||{}).extensions||[]]),r={defined:[],lazy:{},constructs:n,content:i(lwn),document:i(uwn),flow:i(OTn),string:i(ATn),text:i(NTn)};return r;function i(o){return a;function a(s){return kTn(r,o,s)}}}const Khe=/[\0\t\n\r]/g;function qTn(){let e=1,t="",n=!0,r;return i;function i(o,a,s){const l=[];let c,u,d,f,h;for(o=t+o.toString(a),d=0,t="",n&&(o.charCodeAt(0)===65279&&d++,n=void 0);d<o.length;){if(Khe.lastIndex=d,c=Khe.exec(o),f=c&&c.index!==void 0?c.index:o.length,h=o.charCodeAt(f),!c){t=o.slice(d);break}if(h===10&&d===f&&r)l.push(-3),r=void 0;else switch(r&&(l.push(-5),r=void 0),d<f&&(l.push(o.slice(d,f)),e+=f-d),h){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=f+1}return s&&(r&&l.push(-5),t&&l.push(t),l.push(null)),l}}function YTn(e){for(;!zDe(e););return e}function KDe(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 KTn=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function QDe(e){return e.replace(KTn,QTn)}function QTn(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){const i=n.charCodeAt(1),o=i===120||i===88;return KDe(n.slice(o?2:1),o?16:10)}return lZ(n)||e}function jw(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?Qhe(e.position):"start"in e||"end"in e?Qhe(e):"line"in e||"column"in e?RV(e):""}function RV(e){return Xhe(e&&e.line)+":"+Xhe(e&&e.column)}function Qhe(e){return RV(e&&e.start)+"-"+RV(e&&e.end)}function Xhe(e){return e&&typeof e=="number"?e:1}const XDe={}.hasOwnProperty,XTn=function(e,t,n){return typeof t!="string"&&(n=t,t=void 0),ZTn(n)(YTn(WTn(n).document().write(qTn()(e,t,!0))))};function ZTn(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:s(Ce),autolinkProtocol:N,autolinkEmail:N,atxHeading:s(pe),blockQuote:s(fe),characterEscape:N,characterReference:N,codeFenced:s(ue),codeFencedFenceInfo:l,codeFencedFenceMeta:l,codeIndented:s(ue,l),codeText:s(le,l),codeTextData:N,data:N,codeFlowValue:N,definition:s(ve),definitionDestinationString:l,definitionLabelString:l,definitionTitleString:l,emphasis:s(ne),hardBreakEscape:s(be),hardBreakTrailing:s(be),htmlFlow:s(Re,l),htmlFlowData:N,htmlText:s(Re,l),htmlTextData:N,image:s(Se),label:l,link:s(Ce),listItem:s(he),listItemValue:m,listOrdered:s(ye,h),listUnordered:s(ye),paragraph:s(_e),reference:te,referenceString:l,resourceDestinationString:l,resourceTitleString:l,setextHeading:s(pe),strong:s(Oe),thematicBreak:s(Y)},exit:{atxHeading:u(),atxHeadingSequence:C,autolink:u(),autolinkEmail:ge,autolinkProtocol:oe,blockQuote:u(),characterEscapeValue:I,characterReferenceMarkerHexadecimal:K,characterReferenceMarkerNumeric:K,characterReferenceValue:Q,codeFenced:u(b),codeFencedFence:y,codeFencedFenceInfo:g,codeFencedFenceMeta:v,codeFlowValue:I,codeIndented:u(_),codeText:u(A),codeTextData:I,data:I,definition:u(),definitionDestinationString:S,definitionLabelString:E,definitionTitleString:w,emphasis:u(),hardBreakEscape:u(F),hardBreakTrailing:u(F),htmlFlow:u(k),htmlFlowData:I,htmlText:u(B),htmlTextData:I,image:u(z),label:V,labelText:L,lineEnding:M,link:u(P),listItem:u(),listOrdered:u(),listUnordered:u(),paragraph:u(),referenceString:ae,resourceDestinationString:j,resourceTitleString:U,resource:J,setextHeading:u(O),setextHeadingLineSequence:x,setextHeadingText:T,strong:u(),thematicBreak:u()}};ZDe(t,(e||{}).mdastExtensions||[]);const n={};return r;function r(D){let G={type:"root",children:[]};const ie={stack:[G],tokenStack:[],config:t,enter:c,exit:d,buffer:l,resume:f,setData:o,getData:a},me=[];let se=-1;for(;++se<D.length;)if(D[se][1].type==="listOrdered"||D[se][1].type==="listUnordered")if(D[se][0]==="enter")me.push(se);else{const Be=me.pop();se=i(D,Be,se)}for(se=-1;++se<D.length;){const Be=t[D[se][0]];XDe.call(Be,D[se][1].type)&&Be[D[se][1].type].call(Object.assign({sliceSerialize:D[se][2].sliceSerialize},ie),D[se][1])}if(ie.tokenStack.length>0){const Be=ie.tokenStack[ie.tokenStack.length-1];(Be[1]||Zhe).call(ie,void 0,Be[0])}for(G.position={start:Wh(D.length>0?D[0][1].start:{line:1,column:1,offset:0}),end:Wh(D.length>0?D[D.length-2][1].end:{line:1,column:1,offset:0})},se=-1;++se<t.transforms.length;)G=t.transforms[se](G)||G;return G}function i(D,G,ie){let me=G-1,se=-1,Be=!1,Ve,re,Me,je;for(;++me<=ie;){const ke=D[me];if(ke[1].type==="listUnordered"||ke[1].type==="listOrdered"||ke[1].type==="blockQuote"?(ke[0]==="enter"?se++:se--,je=void 0):ke[1].type==="lineEndingBlank"?ke[0]==="enter"&&(Ve&&!je&&!se&&!Me&&(Me=me),je=void 0):ke[1].type==="linePrefix"||ke[1].type==="listItemValue"||ke[1].type==="listItemMarker"||ke[1].type==="listItemPrefix"||ke[1].type==="listItemPrefixWhitespace"||(je=void 0),!se&&ke[0]==="enter"&&ke[1].type==="listItemPrefix"||se===-1&&ke[0]==="exit"&&(ke[1].type==="listUnordered"||ke[1].type==="listOrdered")){if(Ve){let Ge=me;for(re=void 0;Ge--;){const Ue=D[Ge];if(Ue[1].type==="lineEnding"||Ue[1].type==="lineEndingBlank"){if(Ue[0]==="exit")continue;re&&(D[re][1].type="lineEndingBlank",Be=!0),Ue[1].type="lineEnding",re=Ge}else if(!(Ue[1].type==="linePrefix"||Ue[1].type==="blockQuotePrefix"||Ue[1].type==="blockQuotePrefixWhitespace"||Ue[1].type==="blockQuoteMarker"||Ue[1].type==="listItemIndent"))break}Me&&(!re||Me<re)&&(Ve._spread=!0),Ve.end=Object.assign({},re?D[re][1].start:ke[1].end),D.splice(re||me,0,["exit",Ve,ke[2]]),me++,ie++}ke[1].type==="listItemPrefix"&&(Ve={type:"listItem",_spread:!1,start:Object.assign({},ke[1].start),end:void 0},D.splice(me,0,["enter",Ve,ke[2]]),me++,ie++,Me=void 0,je=!0)}}return D[G][1]._spread=Be,ie}function o(D,G){n[D]=G}function a(D){return n[D]}function s(D,G){return ie;function ie(me){c.call(this,D(me),me),G&&G.call(this,me)}}function l(){this.stack.push({type:"fragment",children:[]})}function c(D,G,ie){return this.stack[this.stack.length-1].children.push(D),this.stack.push(D),this.tokenStack.push([G,ie]),D.position={start:Wh(G.start)},D}function u(D){return G;function G(ie){D&&D.call(this,ie),d.call(this,ie)}}function d(D,G){const ie=this.stack.pop(),me=this.tokenStack.pop();if(me)me[0].type!==D.type&&(G?G.call(this,D,me[0]):(me[1]||Zhe).call(this,D,me[0]));else throw new Error("Cannot close `"+D.type+"` ("+jw({start:D.start,end:D.end})+"): its not open");return ie.position.end=Wh(D.end),ie}function f(){return ewn(this.stack.pop())}function h(){o("expectingFirstListItemValue",!0)}function m(D){if(a("expectingFirstListItemValue")){const G=this.stack[this.stack.length-2];G.start=Number.parseInt(this.sliceSerialize(D),10),o("expectingFirstListItemValue")}}function g(){const D=this.resume(),G=this.stack[this.stack.length-1];G.lang=D}function v(){const D=this.resume(),G=this.stack[this.stack.length-1];G.meta=D}function y(){a("flowCodeInside")||(this.buffer(),o("flowCodeInside",!0))}function b(){const D=this.resume(),G=this.stack[this.stack.length-1];G.value=D.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),o("flowCodeInside")}function _(){const D=this.resume(),G=this.stack[this.stack.length-1];G.value=D.replace(/(\r?\n|\r)$/g,"")}function E(D){const G=this.resume(),ie=this.stack[this.stack.length-1];ie.label=G,ie.identifier=yd(this.sliceSerialize(D)).toLowerCase()}function w(){const D=this.resume(),G=this.stack[this.stack.length-1];G.title=D}function S(){const D=this.resume(),G=this.stack[this.stack.length-1];G.url=D}function C(D){const G=this.stack[this.stack.length-1];if(!G.depth){const ie=this.sliceSerialize(D).length;G.depth=ie}}function T(){o("setextHeadingSlurpLineEnding",!0)}function x(D){const G=this.stack[this.stack.length-1];G.depth=this.sliceSerialize(D).charCodeAt(0)===61?1:2}function O(){o("setextHeadingSlurpLineEnding")}function N(D){const G=this.stack[this.stack.length-1];let ie=G.children[G.children.length-1];(!ie||ie.type!=="text")&&(ie=De(),ie.position={start:Wh(D.start)},G.children.push(ie)),this.stack.push(ie)}function I(D){const G=this.stack.pop();G.value+=this.sliceSerialize(D),G.position.end=Wh(D.end)}function M(D){const G=this.stack[this.stack.length-1];if(a("atHardBreak")){const ie=G.children[G.children.length-1];ie.position.end=Wh(D.end),o("atHardBreak");return}!a("setextHeadingSlurpLineEnding")&&t.canContainEols.includes(G.type)&&(N.call(this,D),I.call(this,D))}function F(){o("atHardBreak",!0)}function k(){const D=this.resume(),G=this.stack[this.stack.length-1];G.value=D}function B(){const D=this.resume(),G=this.stack[this.stack.length-1];G.value=D}function A(){const D=this.resume(),G=this.stack[this.stack.length-1];G.value=D}function P(){const D=this.stack[this.stack.length-1];if(a("inReference")){const G=a("referenceType")||"shortcut";D.type+="Reference",D.referenceType=G,delete D.url,delete D.title}else delete D.identifier,delete D.label;o("referenceType")}function z(){const D=this.stack[this.stack.length-1];if(a("inReference")){const G=a("referenceType")||"shortcut";D.type+="Reference",D.referenceType=G,delete D.url,delete D.title}else delete D.identifier,delete D.label;o("referenceType")}function L(D){const G=this.sliceSerialize(D),ie=this.stack[this.stack.length-2];ie.label=QDe(G),ie.identifier=yd(G).toLowerCase()}function V(){const D=this.stack[this.stack.length-1],G=this.resume(),ie=this.stack[this.stack.length-1];if(o("inReference",!0),ie.type==="link"){const me=D.children;ie.children=me}else ie.alt=G}function j(){const D=this.resume(),G=this.stack[this.stack.length-1];G.url=D}function U(){const D=this.resume(),G=this.stack[this.stack.length-1];G.title=D}function J(){o("inReference")}function te(){o("referenceType","collapsed")}function ae(D){const G=this.resume(),ie=this.stack[this.stack.length-1];ie.label=G,ie.identifier=yd(this.sliceSerialize(D)).toLowerCase(),o("referenceType","full")}function K(D){o("characterReferenceType",D.type)}function Q(D){const G=this.sliceSerialize(D),ie=a("characterReferenceType");let me;ie?(me=KDe(G,ie==="characterReferenceMarkerNumeric"?10:16),o("characterReferenceType")):me=lZ(G);const se=this.stack.pop();se.value+=me,se.position.end=Wh(D.end)}function oe(D){I.call(this,D);const G=this.stack[this.stack.length-1];G.url=this.sliceSerialize(D)}function ge(D){I.call(this,D);const G=this.stack[this.stack.length-1];G.url="mailto:"+this.sliceSerialize(D)}function fe(){return{type:"blockquote",children:[]}}function ue(){return{type:"code",lang:null,meta:null,value:""}}function le(){return{type:"inlineCode",value:""}}function ve(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function ne(){return{type:"emphasis",children:[]}}function pe(){return{type:"heading",depth:void 0,children:[]}}function be(){return{type:"break"}}function Re(){return{type:"html",value:""}}function Se(){return{type:"image",title:null,url:"",alt:null}}function Ce(){return{type:"link",title:null,url:"",children:[]}}function ye(D){return{type:"list",ordered:D.type==="listOrdered",start:null,spread:D._spread,children:[]}}function he(D){return{type:"listItem",spread:D._spread,checked:null,children:[]}}function _e(){return{type:"paragraph",children:[]}}function Oe(){return{type:"strong",children:[]}}function De(){return{type:"text",value:""}}function Y(){return{type:"thematicBreak"}}}function Wh(e){return{line:e.line,column:e.column,offset:e.offset}}function ZDe(e,t){let n=-1;for(;++n<t.length;){const r=t[n];Array.isArray(r)?ZDe(e,r):JTn(e,r)}}function JTn(e,t){let n;for(n in t)if(XDe.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 Zhe(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+jw({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+jw({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+jw({start:t.start,end:t.end})+") is still open")}function exn(e){Object.assign(this,{Parser:n=>{const r=this.data("settings");return XTn(n,Object.assign({},r,e,{extensions:this.data("micromarkExtensions")||[],mdastExtensions:this.data("fromMarkdownExtensions")||[]}))}})}function txn(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 nxn(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:`
`}]}function rxn(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 ixn(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function oxn(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function pE(e){const t=[];let n=-1,r=0,i=0;for(;++n<e.length;){const o=e.charCodeAt(n);let a="";if(o===37&&Rs(e.charCodeAt(n+1))&&Rs(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 JDe(e,t){const n=String(t.identifier).toUpperCase(),r=pE(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 axn(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},JDe(e,{type:"footnoteReference",identifier:i,position:t.position})}function sxn(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 lxn(e,t){if(e.dangerous){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}return null}function e3e(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 cxn(e,t){const n=e.definition(t.identifier);if(!n)return e3e(e,t);const r={src:pE(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 uxn(e,t){const n={src:pE(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 dxn(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 fxn(e,t){const n=e.definition(t.identifier);if(!n)return e3e(e,t);const r={href:pE(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 pxn(e,t){const n={href:pE(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 hxn(e,t,n){const r=e.all(t),i=n?mxn(n):t3e(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 mxn(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=t3e(n[r])}return t}function t3e(e){const t=e.spread;return t??e.children.length>1}function gxn(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 vxn(e,t){const n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function bxn(e,t){const n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)}function yxn(e,t){const n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function _xn(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=bO(t.children[1]),l=I9(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 Sxn(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],f={},h=a?a[l]:void 0;h&&(f.align=h);let m={type:"element",tagName:o,properties:f,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 Exn(e,t){const n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}const Jhe=9,eme=32;function Cxn(e){const t=String(e),n=/\r?\n|\r/g;let r=n.exec(t),i=0;const o=[];for(;r;)o.push(tme(t.slice(i,r.index),i>0,!0),r[0]),i=r.index+r[0].length,r=n.exec(t);return o.push(tme(t.slice(i),i>0,!1)),o.join("")}function tme(e,t,n){let r=0,i=e.length;if(t){let o=e.codePointAt(r);for(;o===Jhe||o===eme;)r++,o=e.codePointAt(r)}if(n){let o=e.codePointAt(i-1);for(;o===Jhe||o===eme;)i--,o=e.codePointAt(i-1)}return i>r?e.slice(r,i):""}function wxn(e,t){const n={type:"text",value:Cxn(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function Txn(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}const xxn={blockquote:txn,break:nxn,code:rxn,delete:ixn,emphasis:oxn,footnoteReference:JDe,footnote:axn,heading:sxn,html:lxn,imageReference:cxn,image:uxn,inlineCode:dxn,linkReference:fxn,link:pxn,listItem:hxn,list:gxn,paragraph:vxn,root:bxn,strong:yxn,table:_xn,tableCell:Exn,tableRow:Sxn,text:wxn,thematicBreak:Txn,toml:zI,yaml:zI,definition:zI,footnoteDefinition:zI};function zI(){return null}function Oxn(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 nme={}.hasOwnProperty;function Rxn(e){const t=Object.create(null);if(!e||!e.type)throw new Error("mdast-util-definitions expected node");return zX(e,"definition",r=>{const i=rme(r.identifier);i&&!nme.call(t,i)&&(t[i]=r)}),n;function n(r){const i=rme(r);return i&&nme.call(t,i)?t[i]:null}}function rme(e){return String(e||"").toUpperCase()}const L4={}.hasOwnProperty;function Ixn(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={...xxn,...n.handlers},a.definition=Rxn(e),a.footnoteById=i,a.footnoteOrder=[],a.footnoteCounts={},a.patch=Axn,a.applyData=Nxn,a.one=s,a.all=l,a.wrap=kxn,a.augment=o,zX(e,"footnoteDefinition",c=>{const u=String(c.identifier).toUpperCase();L4.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};Oxn(d)||(u.position={start:bO(d),end:I9(d)})}return u}function a(c,u,d,f){return Array.isArray(d)&&(f=d,d={}),o(c,{type:"element",tagName:u,properties:d||{},children:f||[]})}function s(c,u){return n3e(a,c,u)}function l(c){return uZ(a,c)}}function Axn(e,t){e.position&&(t.position=lEn(e))}function Nxn(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 n3e(e,t,n){const r=t&&t.type;if(!r)throw new Error("Expected node, got `"+t+"`");return L4.call(e.handlers,r)?e.handlers[r](e,t,n):e.passThrough&&e.passThrough.includes(r)?"children"in t?{...t,children:uZ(e,t)}:t:e.unknownHandler?e.unknownHandler(e,t,n):Mxn(e,t)}function uZ(e,t){const n=[];if("children"in t){const r=t.children;let i=-1;for(;++i<r.length;){const o=n3e(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 Mxn(e,t){const n=t.data||{},r="value"in t&&!(L4.call(n,"hProperties")||L4.call(n,"hChildren"))?{type:"text",value:t.value}:{type:"element",tagName:"div",properties:{},children:uZ(e,t)};return e.patch(t,r),e.applyData(t,r)}function kxn(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 Pxn(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=pE(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 r3e(e,t){const n=Ixn(e,t),r=n.one(e,null),i=Pxn(n);return i&&r.children.push({type:"text",value:`
`},i),Array.isArray(r)?{type:"root",children:r}:r}const Dxn=function(e,t){return e&&"run"in e?Lxn(e,t):$xn(e||t)};function Lxn(e,t){return(n,r,i)=>{e.run(r3e(n,t),r,o=>{i(o)})}}function $xn(e){return t=>r3e(t,e)}function ime(e){if(e)throw e}/*!
* Determine if an object is a Buffer
*
* @author Feross Aboukhadijeh <https://feross.org>
* @license MIT
*/var Fxn=function(t){return t!=null&&t.constructor!=null&&typeof t.constructor.isBuffer=="function"&&t.constructor.isBuffer(t)};const i3e=di(Fxn);var EN=Object.prototype.hasOwnProperty,o3e=Object.prototype.toString,ome=Object.defineProperty,ame=Object.getOwnPropertyDescriptor,sme=function(t){return typeof Array.isArray=="function"?Array.isArray(t):o3e.call(t)==="[object Array]"},lme=function(t){if(!t||o3e.call(t)!=="[object Object]")return!1;var n=EN.call(t,"constructor"),r=t.constructor&&t.constructor.prototype&&EN.call(t.constructor.prototype,"isPrototypeOf");if(t.constructor&&!n&&!r)return!1;var i;for(i in t);return typeof i>"u"||EN.call(t,i)},cme=function(t,n){ome&&n.name==="__proto__"?ome(t,n.name,{enumerable:!0,configurable:!0,value:n.newValue,writable:!0}):t[n.name]=n.newValue},ume=function(t,n){if(n==="__proto__")if(EN.call(t,n)){if(ame)return ame(t,n).value}else return;return t[n]},Bxn=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=ume(s,n),i=ume(t,n),s!==i&&(u&&i&&(lme(i)||(o=sme(i)))?(o?(o=!1,a=r&&sme(r)?r:[]):a=r&&lme(r)?r:{},cme(s,{name:n,newValue:e(u,a,i)})):typeof i<"u"&&cme(s,{name:n,newValue:i}));return s};const dme=di(Bxn);function IV(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 jxn(){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?Hxn(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 Hxn(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 ku 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=jw(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}}ku.prototype.file="";ku.prototype.name="";ku.prototype.reason="";ku.prototype.message="";ku.prototype.stack="";ku.prototype.fatal=null;ku.prototype.column=null;ku.prototype.line=null;ku.prototype.source=null;ku.prototype.ruleId=null;ku.prototype.position=null;const af={basename:Uxn,dirname:zxn,extname:Vxn,join:Gxn,sep:"/"};function Uxn(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');EO(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 zxn(e){if(EO(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 Vxn(e){EO(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 Gxn(...e){let t=-1,n;for(;++t<e.length;)EO(e[t]),e[t]&&(n=n===void 0?e[t]:n+"/"+e[t]);return n===void 0?".":Wxn(n)}function Wxn(e){EO(e);const t=e.charCodeAt(0)===47;let n=qxn(e,!t);return n.length===0&&!t&&(n="."),n.length>0&&e.charCodeAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function qxn(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 EO(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const Yxn={cwd:Kxn};function Kxn(){return"/"}function AV(e){return e!==null&&typeof e=="object"&&e.href&&e.origin}function Qxn(e){if(typeof e=="string")e=new URL(e);else if(!AV(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 Xxn(e)}function Xxn(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 y7=["history","path","basename","stem","extname","dirname"];class Zxn{constructor(t){let n;t?typeof t=="string"||Jxn(t)?n={value:t}:AV(t)?n={path:t}:n=t:n={},this.data={},this.messages=[],this.history=[],this.cwd=Yxn.cwd(),this.value,this.stored,this.result,this.map;let r=-1;for(;++r<y7.length;){const o=y7[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)y7.includes(i)||(this[i]=n[i])}get path(){return this.history[this.history.length-1]}set path(t){AV(t)&&(t=Qxn(t)),S7(t,"path"),this.path!==t&&this.history.push(t)}get dirname(){return typeof this.path=="string"?af.dirname(this.path):void 0}set dirname(t){fme(this.basename,"dirname"),this.path=af.join(t||"",this.basename)}get basename(){return typeof this.path=="string"?af.basename(this.path):void 0}set basename(t){S7(t,"basename"),_7(t,"basename"),this.path=af.join(this.dirname||"",t)}get extname(){return typeof this.path=="string"?af.extname(this.path):void 0}set extname(t){if(_7(t,"extname"),fme(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=af.join(this.dirname,this.stem+(t||""))}get stem(){return typeof this.path=="string"?af.basename(this.path,this.extname):void 0}set stem(t){S7(t,"stem"),_7(t,"stem"),this.path=af.join(this.dirname||"",t+(this.extname||""))}toString(t){return(this.value||"").toString(t||void 0)}message(t,n,r){const i=new ku(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 _7(e,t){if(e&&e.includes(af.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+af.sep+"`")}function S7(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function fme(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function Jxn(e){return i3e(e)}const e2n=s3e().freeze(),a3e={}.hasOwnProperty;function s3e(){const e=jxn(),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=f,o.process=h,o.processSync=m,o;function o(){const g=s3e();let v=-1;for(;++v<t.length;)g.use(...t[v]);return g.data(dme(!0,{},n)),g}function a(g,v){return typeof g=="string"?arguments.length===2?(w7("data",r),n[g]=v,o):a3e.call(n,g)&&n[g]||null:g?(w7("data",r),n=g,o):n}function s(){if(r)return o;for(;++i<t.length;){const[g,...v]=t[i];if(v[0]===!1)continue;v[0]===!0&&(v[0]=void 0);const y=g.call(o,...v);typeof y=="function"&&e.use(y)}return r=!0,i=Number.POSITIVE_INFINITY,o}function l(g,...v){let y;if(w7("use",r),g!=null)if(typeof g=="function")w(g,...v);else if(typeof g=="object")Array.isArray(g)?E(g):_(g);else throw new TypeError("Expected usable value, not `"+g+"`");return y&&(n.settings=Object.assign(n.settings||{},y)),o;function b(S){if(typeof S=="function")w(S);else if(typeof S=="object")if(Array.isArray(S)){const[C,...T]=S;w(C,...T)}else _(S);else throw new TypeError("Expected usable value, not `"+S+"`")}function _(S){E(S.plugins),S.settings&&(y=Object.assign(y||{},S.settings))}function E(S){let C=-1;if(S!=null)if(Array.isArray(S))for(;++C<S.length;){const T=S[C];b(T)}else throw new TypeError("Expected a list of plugins, not `"+S+"`")}function w(S,C){let T=-1,x;for(;++T<t.length;)if(t[T][0]===S){x=t[T];break}x?(IV(x[1])&&IV(C)&&(C=dme(!0,x[1],C)),x[1]=C):t.push([...arguments])}}function c(g){o.freeze();const v=mC(g),y=o.Parser;return E7("parse",y),pme(y,"parse")?new y(String(v),v).parse():y(String(v),v)}function u(g,v){o.freeze();const y=mC(v),b=o.Compiler;return C7("stringify",b),hme(g),pme(b,"compile")?new b(g,y).compile():b(g,y)}function d(g,v,y){if(hme(g),o.freeze(),!y&&typeof v=="function"&&(y=v,v=void 0),!y)return new Promise(b);b(null,y);function b(_,E){e.run(g,mC(v),w);function w(S,C,T){C=C||g,S?E(S):_?_(C):y(null,C,T)}}}function f(g,v){let y,b;return o.run(g,v,_),mme("runSync","run",b),y;function _(E,w){ime(E),y=w,b=!0}}function h(g,v){if(o.freeze(),E7("process",o.Parser),C7("process",o.Compiler),!v)return new Promise(y);y(null,v);function y(b,_){const E=mC(g);o.run(o.parse(E),E,(S,C,T)=>{if(S||!C||!T)w(S);else{const x=o.stringify(C,T);x==null||(r2n(x)?T.value=x:T.result=x),w(S,T)}});function w(S,C){S||!C?_(S):b?b(C):v(null,C)}}}function m(g){let v;o.freeze(),E7("processSync",o.Parser),C7("processSync",o.Compiler);const y=mC(g);return o.process(y,b),mme("processSync","process",v),y;function b(_){v=!0,ime(_)}}}function pme(e,t){return typeof e=="function"&&e.prototype&&(t2n(e.prototype)||t in e.prototype)}function t2n(e){let t;for(t in e)if(a3e.call(e,t))return!0;return!1}function E7(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `Parser`")}function C7(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `Compiler`")}function w7(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 hme(e){if(!IV(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function mme(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function mC(e){return n2n(e)?e:new Zxn(e)}function n2n(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function r2n(e){return typeof e=="string"||i3e(e)}const i2n=JSON.stringify(VX);function o2n({sanitize:e,plugins:t,remarkRehype:n={}}){let r=e2n().use(exn);t==null||t.forEach(({remark:o})=>{o&&(r=o(r))}),r=r.use(Dxn,{allowDangerousHtml:!0,...n}).use(tCn);let i=JSON.parse(i2n);return i.attributes["*"].push("className"),typeof e=="function"&&(i=e(i)),r=r.use(nCn,i),t==null||t.forEach(({rehype:o})=>{o&&(r=o(r))}),r.use(ZCn)}const a2n=({value:e,sanitize:t,plugins:n,remarkRehype:r})=>{var i;const o=p.useRef(null),a=p.useMemo(()=>{try{return o2n({sanitize:t,plugins:n,remarkRehype:r}).processSync(e)}catch(s){console.error(s)}},[e,t,n,r]);return p.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]),ce.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:""}})},s2n={tokenize:p2n,partial:!0},l3e={tokenize:h2n,partial:!0},c3e={tokenize:m2n,partial:!0},u3e={tokenize:g2n,partial:!0},l2n={tokenize:v2n,partial:!0},d3e={tokenize:d2n,previous:p3e},f3e={tokenize:f2n,previous:h3e},Ph={tokenize:u2n,previous:m3e},ep={},c2n={text:ep};let d1=48;for(;d1<123;)ep[d1]=Ph,d1++,d1===58?d1=65:d1===91&&(d1=97);ep[43]=Ph;ep[45]=Ph;ep[46]=Ph;ep[95]=Ph;ep[72]=[Ph,f3e];ep[104]=[Ph,f3e];ep[87]=[Ph,d3e];ep[119]=[Ph,d3e];function u2n(e,t,n){const r=this;let i,o;return a;function a(d){return!NV(d)||!m3e.call(r,r.previous)||dZ(r.events)?n(d):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),s(d))}function s(d){return NV(d)?(e.consume(d),s):d===64?(e.consume(d),l):n(d)}function l(d){return d===46?e.check(l2n,u,c)(d):d===45||d===95||Rs(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&&Ys(r.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(d)):n(d)}}function d2n(e,t,n){const r=this;return i;function i(a){return a!==87&&a!==119||!p3e.call(r,r.previous)||dZ(r.events)?n(a):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(s2n,e.attempt(l3e,e.attempt(c3e,o),n),n)(a))}function o(a){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(a)}}function f2n(e,t,n){const r=this;let i="",o=!1;return a;function a(d){return(d===72||d===104)&&h3e.call(r,r.previous)&&!dZ(r.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),i+=String.fromCodePoint(d),e.consume(d),s):n(d)}function s(d){if(Ys(d)&&i.length<5)return i+=String.fromCodePoint(d),e.consume(d),s;if(d===58){const f=i.toLowerCase();if(f==="http"||f==="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||P4(d)||Ui(d)||s0(d)||N9(d)?n(d):e.attempt(l3e,e.attempt(c3e,u),n)(d)}function u(d){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(d)}}function p2n(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 h2n(e,t,n){let r,i,o;return a;function a(c){return c===46||c===95?e.check(u3e,l,s)(c):c===null||Ui(c)||s0(c)||c!==45&&N9(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 m2n(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(u3e,t,o)(a):a===null||Ui(a)||s0(a)?t(a):(e.consume(a),i)}function o(a){return a===41&&r++,e.consume(a),i}}function g2n(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||Ui(s)||s0(s)?t(s):n(s)}function i(s){return s===null||s===40||s===91||Ui(s)||s0(s)?t(s):r(s)}function o(s){return Ys(s)?a(s):n(s)}function a(s){return s===59?(e.consume(s),r):Ys(s)?(e.consume(s),a):n(s)}}function v2n(e,t,n){return r;function r(o){return e.consume(o),i}function i(o){return Rs(o)?n(o):t(o)}}function p3e(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||Ui(e)}function h3e(e){return!Ys(e)}function m3e(e){return!(e===47||NV(e))}function NV(e){return e===43||e===45||e===46||e===95||Rs(e)}function dZ(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 b2n={tokenize:x2n,partial:!0};function y2n(){return{document:{91:{tokenize:C2n,continuation:{tokenize:w2n},exit:T2n}},text:{91:{tokenize:E2n},93:{add:"after",tokenize:_2n,resolveTo:S2n}}}}function _2n(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=yd(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 S2n(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 E2n(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||Ui(d))return n(d);if(d===93){e.exit("chunkString");const f=e.exit("gfmFootnoteCallString");return i.includes(yd(r.sliceSerialize(f)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(d),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(d)}return Ui(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 C2n(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||Ui(m))return n(m);if(m===93){e.exit("chunkString");const g=e.exit("gfmFootnoteDefinitionLabelString");return o=yd(r.sliceSerialize(g)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(m),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),f}return Ui(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 f(m){return m===58?(e.enter("definitionMarker"),e.consume(m),e.exit("definitionMarker"),i.includes(o)||i.push(o),ni(e,h,"gfmFootnoteDefinitionWhitespace")):n(m)}function h(m){return t(m)}}function w2n(e,t,n){return e.check(SO,t,e.attempt(b2n,t,n))}function T2n(e){e.exit("gfmFootnoteDefinition")}function x2n(e,t,n){const r=this;return ni(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 O2n(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)},f=[["enter",u,s],["enter",a[c][1],s],["exit",a[c][1],s],["enter",d,s]],h=s.parser.constructs.insideSpan.null;h&&bc(f,f.length,0,M9(h,a.slice(c+1,l),s)),bc(f,f.length,0,[["exit",d,s],["enter",a[l][1],s],["exit",a[l][1],s],["exit",u,s]]),bc(a,c-1,l-c+3,f),l=c+f.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 f;function f(m){return c===126&&u[u.length-1][1].type!=="characterEscape"?l(m):(a.enter("strikethroughSequenceTemporary"),h(m))}function h(m){const g=D4(c);if(m===126)return d>1?l(m):(a.consume(m),d++,h);if(d<2&&!n)return l(m);const v=a.exit("strikethroughSequenceTemporary"),y=D4(m);return v._open=!y||y===2&&!!g,v._close=!g||g===2&&!!y,s(m)}}}class R2n{constructor(){this.map=[]}add(t,n,r){I2n(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 I2n(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 A2n(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 N2n={flow:{null:{tokenize:M2n,resolveAll:k2n}}};function M2n(e,t,n){const r=this;let i=0,o=0,a;return s;function s(O){let N=r.events.length-1;for(;N>-1;){const F=r.events[N][1].type;if(F==="lineEnding"||F==="linePrefix")N--;else break}const I=N>-1?r.events[N][1].type:null,M=I==="tableHead"||I==="tableRow"?S:l;return M===S&&r.parser.lazy[r.now().line]?n(O):M(O)}function l(O){return e.enter("tableHead"),e.enter("tableRow"),c(O)}function c(O){return O===124||(a=!0,o+=1),u(O)}function u(O){return O===null?n(O):dr(O)?o>1?(o=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(O),e.exit("lineEnding"),h):n(O):Ur(O)?ni(e,u,"whitespace")(O):(o+=1,a&&(a=!1,i+=1),O===124?(e.enter("tableCellDivider"),e.consume(O),e.exit("tableCellDivider"),a=!0,u):(e.enter("data"),d(O)))}function d(O){return O===null||O===124||Ui(O)?(e.exit("data"),u(O)):(e.consume(O),O===92?f:d)}function f(O){return O===92||O===124?(e.consume(O),d):d(O)}function h(O){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(O):(e.enter("tableDelimiterRow"),a=!1,Ur(O)?ni(e,m,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(O):m(O))}function m(O){return O===45||O===58?v(O):O===124?(a=!0,e.enter("tableCellDivider"),e.consume(O),e.exit("tableCellDivider"),g):w(O)}function g(O){return Ur(O)?ni(e,v,"whitespace")(O):v(O)}function v(O){return O===58?(o+=1,a=!0,e.enter("tableDelimiterMarker"),e.consume(O),e.exit("tableDelimiterMarker"),y):O===45?(o+=1,y(O)):O===null||dr(O)?E(O):w(O)}function y(O){return O===45?(e.enter("tableDelimiterFiller"),b(O)):w(O)}function b(O){return O===45?(e.consume(O),b):O===58?(a=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(O),e.exit("tableDelimiterMarker"),_):(e.exit("tableDelimiterFiller"),_(O))}function _(O){return Ur(O)?ni(e,E,"whitespace")(O):E(O)}function E(O){return O===124?m(O):O===null||dr(O)?!a||i!==o?w(O):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(O)):w(O)}function w(O){return n(O)}function S(O){return e.enter("tableRow"),C(O)}function C(O){return O===124?(e.enter("tableCellDivider"),e.consume(O),e.exit("tableCellDivider"),C):O===null||dr(O)?(e.exit("tableRow"),t(O)):Ur(O)?ni(e,C,"whitespace")(O):(e.enter("data"),T(O))}function T(O){return O===null||O===124||Ui(O)?(e.exit("data"),C(O)):(e.consume(O),O===92?x:T)}function x(O){return O===92||O===124?(e.consume(O),T):T(O)}}function k2n(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 f=new R2n;for(;++n<e.length;){const h=e[n],m=h[1];h[0]==="enter"?m.type==="tableHead"?(s=!1,l!==0&&(gme(f,t,l,c,u),u=void 0,l=0),c={type:"table",start:Object.assign({},m.start),end:Object.assign({},m.end)},f.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)},f.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=VI(f,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=VI(f,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=VI(f,t,o,i,n,d)):a[1]!==0&&(d=VI(f,t,a,i,n,d)),i=0):i&&(m.type==="data"||m.type==="tableDelimiterMarker"||m.type==="tableDelimiterFiller")&&(a[3]=n)}for(l!==0&&gme(f,t,l,c,u),f.consume(t.events),n=-1;++n<t.events.length;){const h=t.events[n];h[0]==="enter"&&h[1].type==="table"&&(h[1]._align=A2n(t.events,n))}return e}function VI(e,t,n,r,i,o){const a=r===1?"tableHeader":r===2?"tableDelimiter":"tableData",s="tableContent";n[0]!==0&&(o.end=Object.assign({},Fb(t.events,n[0])),e.add(n[0],0,[["exit",o,t]]));const l=Fb(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=Fb(t.events,n[2]),u=Fb(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 f=t.events[n[2]],h=t.events[n[3]];if(f[1].end=Object.assign({},h[1].end),f[1].type="chunkText",f[1].contentType="text",n[3]>n[2]+1){const m=n[2]+1,g=n[3]-n[2]-1;e.add(m,g,[])}}e.add(n[3]+1,0,[["exit",d,t]])}return i!==void 0&&(o.end=Object.assign({},Fb(t.events,i)),e.add(i,0,[["exit",o,t]]),o=void 0),o}function gme(e,t,n,r,i){const o=[],a=Fb(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 Fb(e,t){const n=e[t],r=n[0]==="enter"?"start":"end";return n[1][r]}const P2n={tokenize:L2n},D2n={text:{91:P2n}};function L2n(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 Ui(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 dr(l)?t(l):Ur(l)?e.check({tokenize:$2n},t,n)(l):n(l)}}function $2n(e,t,n){return ni(e,r,"whitespace");function r(i){return i===null?n(i):t(i)}}function F2n(e){return BDe([c2n,y2n(),O2n(e),N2n,D2n])}function B2n(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}const j2n={}.hasOwnProperty,H2n=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=UX(i.ignore||[]),s=U2n(o);let l=-1;for(;++l<s.length;)j5e(e,"text",c);return e;function c(d,f){let h=-1,m;for(;++h<f.length;){const g=f[h];if(a(g,m?m.children.indexOf(g):void 0,m))return;m=g}if(m)return u(d,f)}function u(d,f){const h=f[f.length-1],m=s[l][0],g=s[l][1];let v=0;const y=h.children.indexOf(d);let b=!1,_=[];m.lastIndex=0;let E=m.exec(d.value);for(;E;){const w=E.index,S={index:E.index,input:E.input,stack:[...f,d]};let C=g(...E,S);if(typeof C=="string"&&(C=C.length>0?{type:"text",value:C}:void 0),C!==!1&&(v!==w&&_.push({type:"text",value:d.value.slice(v,w)}),Array.isArray(C)?_.push(...C):C&&_.push(C),v=w+E[0].length,b=!0),!m.global)break;E=m.exec(d.value)}return b?(v<d.value.length&&_.push({type:"text",value:d.value.slice(v)}),h.children.splice(y,1,..._)):_=[d],y+_.length}};function U2n(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([vme(e[n][0]),bme(e[n][1])])}else{let n;for(n in e)j2n.call(e,n)&&t.push([vme(n),bme(e[n])])}return t}function vme(e){return typeof e=="string"?new RegExp(B2n(e),"g"):e}function bme(e){return typeof e=="function"?e:()=>e}const T7="phrasing",x7=["autolink","link","image","label"],z2n={transforms:[Q2n],enter:{literalAutolink:G2n,literalAutolinkEmail:O7,literalAutolinkHttp:O7,literalAutolinkWww:O7},exit:{literalAutolink:K2n,literalAutolinkEmail:Y2n,literalAutolinkHttp:W2n,literalAutolinkWww:q2n}},V2n={unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:T7,notInConstruct:x7},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:T7,notInConstruct:x7},{character:":",before:"[ps]",after:"\\/",inConstruct:T7,notInConstruct:x7}]};function G2n(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function O7(e){this.config.enter.autolinkProtocol.call(this,e)}function W2n(e){this.config.exit.autolinkProtocol.call(this,e)}function q2n(e){this.config.exit.data.call(this,e);const t=this.stack[this.stack.length-1];t.url="http://"+this.sliceSerialize(e)}function Y2n(e){this.config.exit.autolinkEmail.call(this,e)}function K2n(e){this.exit(e)}function Q2n(e){H2n(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,X2n],[/([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/g,Z2n]],{ignore:["link","linkReference"]})}function X2n(e,t,n,r,i){let o="";if(!g3e(i)||(/^w/i.test(t)&&(n=t+n,t="",o="http://"),!J2n(n)))return!1;const a=eOn(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 Z2n(e,t,n,r){return!g3e(r,!0)||/[-\d_]$/.test(n)?!1:{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function J2n(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 eOn(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=k4(e,"(");let o=k4(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 g3e(e,t){const n=e.input.charCodeAt(e.index-1);return(e.index===0||s0(n)||N9(n))&&(!t||n!==47)}function v3e(e){return e.label||!e.identifier?e.label||"":QDe(e.identifier)}function tOn(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(nOn(l,i[s+1],e,t)))}return r.pop(),a.join("")}function nOn(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 rOn=/\r?\n|\r/g;function iOn(e,t){const n=[];let r=0,i=0,o;for(;o=rOn.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 b3e(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 oOn(e,t){return yme(e,t.inConstruct,!0)&&!yme(e,t.notInConstruct,!1)}function yme(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 y3e(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(!oOn(e.stack,u))continue;const d=b3e(u);let f;for(;f=d.exec(r);){const h="before"in u||!!u.atBreak,m="after"in u,g=f.index+(h?f[1].length:0);i.includes(g)?(a[g].before&&!h&&(a[g].before=!1),a[g].after&&!m&&(a[g].after=!1)):(i.push(g),a[g]={before:h,after:m})}}i.sort(aOn);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(_me(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(_me(r.slice(l,c),n.after)),o.join("")}function aOn(e,t){return e-t}function _me(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 k9(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),f=d[d.length-1];return i+=d.length-1,o=d.length===1?o+f.length:1+f.length+r,u}}_3e.peek=vOn;function sOn(){return{enter:{gfmFootnoteDefinition:cOn,gfmFootnoteDefinitionLabelString:uOn,gfmFootnoteCall:pOn,gfmFootnoteCallString:hOn},exit:{gfmFootnoteDefinition:fOn,gfmFootnoteDefinitionLabelString:dOn,gfmFootnoteCall:gOn,gfmFootnoteCallString:mOn}}}function lOn(){return{unsafe:[{character:"[",inConstruct:["phrasing","label","reference"]}],handlers:{footnoteDefinition:bOn,footnoteReference:_3e}}}function cOn(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function uOn(){this.buffer()}function dOn(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=yd(this.sliceSerialize(e)).toLowerCase()}function fOn(e){this.exit(e)}function pOn(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function hOn(){this.buffer()}function mOn(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=yd(this.sliceSerialize(e)).toLowerCase()}function gOn(e){this.exit(e)}function _3e(e,t,n,r){const i=k9(r);let o=i.move("[^");const a=n.enter("footnoteReference"),s=n.enter("reference");return o+=i.move(y3e(n,v3e(e),{...i.current(),before:o,after:"]"})),s(),a(),o+=i.move("]"),o}function vOn(){return"["}function bOn(e,t,n,r){const i=k9(r);let o=i.move("[^");const a=n.enter("footnoteDefinition"),s=n.enter("label");return o+=i.move(y3e(n,v3e(e),{...i.current(),before:o,after:"]"})),s(),o+=i.move("]:"+(e.children&&e.children.length>0?" ":"")),i.shift(4),o+=i.move(iOn(tOn(e,n,i.current()),yOn)),a(),o}function yOn(e,t,n){return t===0?e:(n?"":" ")+e}function S3e(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 _On=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];E3e.peek=TOn;const SOn={canContainEols:["delete"],enter:{strikethrough:COn},exit:{strikethrough:wOn}},EOn={unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:_On}],handlers:{delete:E3e}};function COn(e){this.enter({type:"delete",children:[]},e)}function wOn(e){this.exit(e)}function E3e(e,t,n,r){const i=k9(r),o=n.enter("strikethrough");let a=i.move("~~");return a+=S3e(e,n,{...i.current(),before:a,after:"~"}),a+=i.move("~~"),o(),a}function TOn(){return"~"}C3e.peek=xOn;function C3e(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=b3e(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 xOn(){return"`"}function OOn(e){return e.length}function ROn(e,t){const n=t||{},r=(n.align||[]).concat(),i=n.stringLength||OOn,o=[],a=[],s=[],l=[];let c=0,u=-1;for(;++u<e.length;){const g=[],v=[];let y=-1;for(e[u].length>c&&(c=e[u].length);++y<e[u].length;){const b=IOn(e[u][y]);if(n.alignDelimiters!==!1){const _=i(b);v[y]=_,(l[y]===void 0||_>l[y])&&(l[y]=_)}g.push(b)}a[u]=g,s[u]=v}let d=-1;if(typeof r=="object"&&"length"in r)for(;++d<c;)o[d]=Sme(r[d]);else{const g=Sme(r);for(;++d<c;)o[d]=g}d=-1;const f=[],h=[];for(;++d<c;){const g=o[d];let v="",y="";g===99?(v=":",y=":"):g===108?v=":":g===114&&(y=":");let b=n.alignDelimiters===!1?1:Math.max(1,l[d]-v.length-y.length);const _=v+"-".repeat(b)+y;n.alignDelimiters!==!1&&(b=v.length+b+y.length,b>l[d]&&(l[d]=b),h[d]=b),f[d]=_}a.splice(1,0,f),s.splice(1,0,h),u=-1;const m=[];for(;++u<a.length;){const g=a[u],v=s[u];d=-1;const y=[];for(;++d<c;){const b=g[d]||"";let _="",E="";if(n.alignDelimiters!==!1){const w=l[d]-(v[d]||0),S=o[d];S===114?_=" ".repeat(w):S===99?w%2?(_=" ".repeat(w/2+.5),E=" ".repeat(w/2-.5)):(_=" ".repeat(w/2),E=_):E=" ".repeat(w)}n.delimiterStart!==!1&&!d&&y.push("|"),n.padding!==!1&&!(n.alignDelimiters===!1&&b==="")&&(n.delimiterStart!==!1||d)&&y.push(" "),n.alignDelimiters!==!1&&y.push(_),y.push(b),n.alignDelimiters!==!1&&y.push(E),n.padding!==!1&&y.push(" "),(n.delimiterEnd!==!1||d!==c-1)&&y.push("|")}m.push(n.delimiterEnd===!1?y.join("").replace(/ +$/,""):y.join(""))}return m.join(`
`)}function IOn(e){return e==null?"":String(e)}function Sme(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 AOn={enter:{table:NOn,tableData:Eme,tableHeader:Eme,tableRow:kOn},exit:{codeText:POn,table:MOn,tableData:R7,tableHeader:R7,tableRow:R7}};function NOn(e){const t=e._align;this.enter({type:"table",align:t.map(n=>n==="none"?null:n),children:[]},e),this.setData("inTable",!0)}function MOn(e){this.exit(e),this.setData("inTable")}function kOn(e){this.enter({type:"tableRow",children:[]},e)}function R7(e){this.exit(e)}function Eme(e){this.enter({type:"tableCell",children:[]},e)}function POn(e){let t=this.resume();this.getData("inTable")&&(t=t.replace(/\\([\\|])/g,DOn));const n=this.stack[this.stack.length-1];n.value=t,this.exit(e)}function DOn(e,t){return t==="|"?t:e}function LOn(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:f}};function a(h,m,g,v){return c(u(h,g,v),h.align)}function s(h,m,g,v){const y=d(h,g,v),b=c([y]);return b.slice(0,b.indexOf(`
`))}function l(h,m,g,v){const y=g.enter("tableCell"),b=g.enter("phrasing"),_=S3e(h,g,{...v,before:o,after:o});return b(),y(),_}function c(h,m){return ROn(h,{align:m,alignDelimiters:r,padding:n,stringLength:i})}function u(h,m,g){const v=h.children;let y=-1;const b=[],_=m.enter("table");for(;++y<v.length;)b[y]=d(v[y],m,g);return _(),b}function d(h,m,g){const v=h.children;let y=-1;const b=[],_=m.enter("tableRow");for(;++y<v.length;)b[y]=l(v[y],h,m,g);return _(),b}function f(h,m,g){let v=C3e(h,m,g);return g.stack.includes("tableCell")&&(v=v.replace(/\|/g,"\\$&")),v}}function $On(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 FOn(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 BOn(e,t,n,r){const i=FOn(n);let o=n.bulletCurrent||$On(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,f,h){return f?(h?"":" ".repeat(a))+d:(h?o:o+" ".repeat(a-o.length))+d}}const jOn={exit:{taskListCheckValueChecked:Cme,taskListCheckValueUnchecked:Cme,paragraph:UOn}},HOn={unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:zOn}};function Cme(e){const t=this.stack[this.stack.length-2];t.checked=e.type==="taskListCheckValueChecked"}function UOn(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 zOn(e,t,n,r){const i=e.children[0],o=typeof e.checked=="boolean"&&i&&i.type==="paragraph",a="["+(e.checked?"x":" ")+"] ",s=k9(r);o&&s.move(a);let l=BOn(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 VOn(){return[z2n,sOn(),SOn,AOn,jOn]}function GOn(e){return{extensions:[V2n,lOn(),EOn,LOn(e),HOn]}}function WOn(e={}){const t=this.data();n("micromarkExtensions",F2n(e)),n("fromMarkdownExtensions",VOn()),n("toMarkdownExtensions",GOn(e));function n(r,i){(t[r]?t[r]:t[r]=[]).push(i)}}const I7={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>'},qOn="Strikethrough",YOn="text",KOn="Table",QOn="Heading",XOn="Task list",ZOn="todo",JOn={strike:qOn,strikeText:YOn,table:KOn,tableHeading:QOn,task:XOn,taskText:ZOn};function eRn({locale:e,...t}={}){const n={...JOn,...e};return{remark:r=>r.use(WOn,t),actions:[{title:n.strike,icon:I7.Strikethrough,cheatsheet:`~~${n.strikeText}~~`,handler:{type:"action",click({wrapText:r,editor:i}){r("~~"),i.focus()}}},{title:n.task,icon:I7.CheckCorrect,cheatsheet:`- [ ] ${n.taskText}`,handler:{type:"action",click({replaceLines:r,editor:i}){r(o=>"- [ ] "+o),i.focus()}}},{title:n.table,icon:I7.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 tRn({init:e}={}){let t;return{viewerEffect({markdownBody:n}){(async()=>{const r=n.querySelectorAll("pre>code");r.length!==0&&(t||(t=await aW(()=>import("./index-CD1PYs5S.js"),[]).then(i=>i.default),e&&await e(t)),r.forEach(i=>{t.highlightElement(i)}))})()}}}const nRn={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>'},rRn="Entity relationship diagram",iRn="Flow chart",oRn="Gantt chart",aRn="Mermaid diagrams",sRn="Mindmaps",lRn="Pie chart",cRn="Sequence diagram",uRn="State diagram",dRn="Timeline",fRn="User journey diagram",pRn={class:"Class diagram",er:rRn,flowchart:iRn,gantt:oRn,mermaid:aRn,mindmap:sRn,pie:lRn,sequence:cRn,state:uRn,timeline:dRn,uj:fRn};function hRn({locale:e,...t}={}){const n={...pRn,...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 aW(()=>import("./mermaid.core-C7TFLWOq.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(f=>{d.innerHTML=f.svg}).catch(f=>{})}))})()},actions:[{title:n.mermaid,icon:nRn.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}}]}}function Ox(e){"@babel/helpers - typeof";return Ox=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},Ox(e)}function wme(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 MV(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?wme(Object(n),!0).forEach(function(r){_1(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):wme(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function _1(e,t,n){return t=mRn(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function mRn(e){var t=gRn(e,"string");return Ox(t)=="symbol"?t:String(t)}function gRn(e,t){if(Ox(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Ox(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var vRn=function(t){var n=t.componentCls,r=t.colorBgContainer,i=t.fontSize,o=t.fontSizeSM,a=t.padding,s=t.paddingXS,l=t.marginSM,c=t.marginXXS,u=t.controlHeight,d=t.lineHeightSM,f=t.colorText,h=t.colorTextSecondary,m=t.colorTextTertiary,g=t.motionDurationSlow;return _1({},n,MV(MV({},gr(t)),{},_1(_1(_1(_1(_1({position:"relative",backgroundColor:r},"".concat(n,"-inner"),{display:"flex",paddingBlock:a}),"".concat(n,"-avatar"),{position:"relative",flexShrink:0,marginInlineEnd:l,cursor:"pointer",img:{width:u,height:u,borderRadius:"50%"}}),"".concat(n,"-content"),{position:"relative",flex:"auto",minWidth:0,wordWrap:"break-word","&-author":{display:"flex",flexWrap:"wrap",justifyContent:"flex-start",marginBottom:c,"& > a, & > span":{paddingInlineEnd:s,fontSize:o,lineHeight:d},"&-name":{color:h,fontSize:i,transition:"color ".concat(g),"> *":{color:h,"&:hover":{color:h}}},"&-time":{color:m,whiteSpace:"nowrap",cursor:"auto"}},"&-detail p":{whiteSpace:"pre-wrap",marginBlock:0}}),"".concat(n,"-actions"),{marginTop:l,marginBottom:0,paddingInlineStart:0,"> li":{display:"inline-block",color:h,"> span":{marginInlineEnd:l,color:h,fontSize:o,cursor:"pointer",transition:"color ".concat(g),userSelect:"none","&:hover":{color:f}}}}),"".concat(n,"-nested"),{marginInlineStart:44})))};function bRn(e){var t=Es.useToken(),n=t.theme,r=t.token,i=t.hashId,o=p.useContext(Ln.ConfigContext),a=o.iconPrefixCls;return[d_({theme:n,token:r,hashId:i,path:["compatible","Comment",e,a]},function(){var s=MV({componentCls:".".concat(e)},r);return[vRn(s)]}),i]}function Rx(e){"@babel/helpers - typeof";return Rx=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},Rx(e)}var yRn=["actions","author","avatar","children","className","content","prefixCls","datetime"];function kV(){return kV=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},kV.apply(this,arguments)}function _Rn(e,t,n){return t=SRn(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function SRn(e){var t=ERn(e,"string");return Rx(t)=="symbol"?t:String(t)}function ERn(e,t){if(Rx(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Rx(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function CRn(e,t){return ORn(e)||xRn(e,t)||TRn(e,t)||wRn()}function wRn(){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 TRn(e,t){if(e){if(typeof e=="string")return Tme(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 Tme(e,t)}}function Tme(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 xRn(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)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 ORn(e){if(Array.isArray(e))return e}function RRn(e,t){if(e==null)return{};var n=IRn(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 IRn(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}var ARn=Ln.ConfigContext,NRn=function(t){var n=t.actions,r=t.author,i=t.avatar,o=t.children,a=t.className,s=t.content,l=t.prefixCls,c=t.datetime,u=RRn(t,yRn),d=p.useContext(ARn),f=d.getPrefixCls,h=d.direction,m=function(O,N){return p.createElement("div",{className:Te("".concat(O,"-nested"))},N)},g=f("comment",l),v=bRn(g),y=CRn(v,2),b=y[0],_=y[1],E=i?p.createElement("div",{className:"".concat(g,"-avatar")},typeof i=="string"?p.createElement("img",{src:i,alt:"comment-avatar"}):i):null,w=n&&n.length?p.createElement("ul",{className:"".concat(g,"-actions")},n.map(function(x,O){return p.createElement("li",{key:"action-".concat(O)},x)})):null,S=(r||c)&&p.createElement("div",{className:"".concat(g,"-content-author")},r&&p.createElement("span",{className:"".concat(g,"-content-author-name")},r),c&&p.createElement("span",{className:"".concat(g,"-content-author-time")},c)),C=p.createElement("div",{className:"".concat(g,"-content")},S,p.createElement("div",{className:"".concat(g,"-content-detail")},s),w),T=Te(g,_Rn({},"".concat(g,"-rtl"),h==="rtl"),a,_);return b(p.createElement("div",kV({},u,{className:T}),p.createElement("div",{className:"".concat(g,"-inner")},E,C),o?m(g,o):null))};async function MRn(e){return $r("/api/v1/comment/query/org",{method:"GET",params:{...e,client:wr}})}async function kRn(e){return $r("/api/v1/comment/create",{method:"POST",data:{...e,client:wr}})}async function PRn(e){return $r("/api/v1/comment/delete",{method:"POST",data:{...e,client:wr}})}const{TextArea:DRn}=Ki,LRn=Po.div`
.ant-comment-content-detail {
margin-bottom: 12px;
}
.ant-list-item {
padding: 12px 0;
}
.comment-actions {
color: #1890ff;
cursor: pointer;
&:hover {
color: #40a9ff;
}
}
`,$Rn=({articleUid:e})=>{var _;const[t,n]=ce.useState([]),[r,i]=ce.useState(!1),[o,a]=ce.useState(!1),[s,l]=ce.useState(""),[c,u]=ce.useState(null),[d,f]=ce.useState(new Set),h=$l(E=>E.currentOrg),m=async()=>{a(!0);try{const E={pageNumber:0,pageSize:100,articleUid:e,orgUid:h==null?void 0:h.uid},w=await MRn(E);if(console.log(w),w.data.code===200&&w.data.data.content){const S=w.data.data.content.sort((C,T)=>En(T.updatedAt).valueOf()-En(C.updatedAt).valueOf());n(S)}}catch(E){console.error("获取评论失败:",E),Ho.error("获取评论失败")}finally{a(!1)}};ce.useEffect(()=>{m()},[e]);const g=async()=>{var E;if(s.trim()){i(!0);try{const w={type:b6e,content:s,articleUid:e,orgUid:h==null?void 0:h.uid};c&&(w.replyToUid=c.uid,w.replyToContent=c.content,w.replyToUser=(E=c.user)==null?void 0:E.nickname);const S=await kRn(w);S.data.code===200?(Ho.success("评论成功"),l(""),u(null),await m()):Ho.error(S.data.message)}catch(w){console.error("提交评论失败:",w),Ho.error("提交评论失败")}finally{i(!1)}}},v=E=>{u(E);const w=document.querySelector(".comment-textarea");w&&w.focus()},y=async E=>{try{const w=await PRn({uid:E});w.data.code===200?(Ho.success("删除成功"),await m()):Ho.error(w.data.message)}catch(w){console.error("删除评论失败:",w),Ho.error("删除评论失败")}},b=E=>{f(w=>{const S=new Set(w);return S.has(E)?S.delete(E):S.add(E),S})};return H.jsxs(LRn,{children:[H.jsxs(li,{children:[H.jsx(li.Item,{children:H.jsx(DRn,{className:"comment-textarea",rows:4,value:s,onChange:E=>l(E.target.value),placeholder:c?`回复 ${(_=c.user)==null?void 0:_.nickname}: `:"写下你的评论..."})}),H.jsx(li.Item,{children:H.jsxs(Xi,{children:[H.jsx($n,{htmlType:"submit",loading:r,onClick:g,type:"primary",children:c?"回复":"评论"}),c&&H.jsx($n,{onClick:()=>u(null),children:"取消回复"})]})})]}),H.jsx(mxe,{loading:o,dataSource:t,itemLayout:"horizontal",locale:{emptyText:"暂无评论"},renderItem:E=>{var w,S,C;return H.jsx(NRn,{author:(w=E.user)==null?void 0:w.nickname,avatar:H.jsx(xh,{icon:H.jsx(cD,{}),src:(S=E.user)==null?void 0:S.avatar}),content:H.jsxs("div",{children:[E.replyToUser&&H.jsxs("span",{style:{color:"#1890ff",marginRight:8},children:["回复 ",E.replyToUser,":"]}),E.content]}),datetime:H.jsx(Ia,{title:En(E.updatedAt).format("YYYY-MM-DD HH:mm:ss"),children:H.jsx("span",{children:En(E.updatedAt).fromNow()})}),actions:[H.jsxs("span",{className:"comment-actions",onClick:()=>b(E.uid),children:[d.has(E.uid)?H.jsx(ogt,{}):H.jsx(lgt,{}),H.jsx("span",{style:{marginLeft:4},children:d.has(E.uid)?"已赞":"点赞"})]},"like"),H.jsx("span",{className:"comment-actions",onClick:()=>v(E),children:"回复"},"reply"),((C=E.user)==null?void 0:C.uid)===(h==null?void 0:h.uid)&&H.jsx(aD,{title:"确定要删除这条评论吗?",onConfirm:()=>y(E.uid),okText:"确定",cancelText:"取消",children:H.jsxs("span",{className:"comment-actions",children:[H.jsx(C2,{})," 删除"]})},"delete")]})}})]})},{Header:FRn,Content:BRn}=uo,jRn=Po(uo)`
min-height: 100vh;
height: auto;
`,HRn=Po(FRn)`
padding: 0 24px;
display: flex;
background: #fff;
justify-content: space-between;
align-items: center;
box-shadow: 0 1px 4px rgba(0, 21, 41, 0.08);
z-index: 100;
position: fixed;
width: 100%;
height: 64px;
.left-section {
display: flex;
align-items: center;
max-width: 50%;
.title {
font-size: 16px;
margin-left: 12px;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
}
.right-section {
display: flex;
align-items: center;
gap: 8px;
margin-right: 100px;
.ant-btn {
display: flex;
align-items: center;
justify-content: center;
}
}
`,URn=Po(BRn)`
margin-top: 64px;
padding: 24px;
min-height: calc(100vh - 64px);
`,zRn=Po.div`
max-width: 900px;
margin: 0 auto;
`,VRn=Po(J5)`
margin-top: 24px;
margin-bottom: 24px;
.ant-card-head {
border-bottom: none;
}
`,GRn=[eRn(),tRn(),hRn()],WRn=()=>{const{articleUid:e}=$Y(),t=Aa(),{currentArticle:n,fetchArticle:r}=aO(),{currentKbase:i,fetchKbaseDetail:o}=Lg(),[a,s]=ce.useState(!1),[l,c]=ce.useState(!1),u=async v=>{try{await o(v)}finally{}},d=async()=>{if(e)try{await r(e)}finally{}};ce.useEffect(()=>{d(),n!=null&&n.kbUid&&u(n==null?void 0:n.kbUid)},[n==null?void 0:n.uid,i==null?void 0:i.uid]);const f=()=>{t(`/article/${e}/edit`)},h=()=>{Wt.info("分享功能开发中")},m=()=>{s(!a),Wt.success(a?"已取消收藏":"已收藏")},g=()=>{c(!l)};return H.jsxs(jRn,{children:[H.jsxs(HRn,{children:[H.jsxs("div",{className:"left-section",children:[H.jsx($n,{icon:H.jsx(Pxe,{}),onClick:()=>t(`/kbase/${i==null?void 0:i.uid}`),children:"返回"}),H.jsx("span",{className:"title",children:n==null?void 0:n.title})]}),H.jsxs("div",{className:"right-section",children:[ud&&H.jsxs(H.Fragment,{children:[H.jsx($n,{type:"text",icon:a?H.jsx(lD,{}):H.jsx(pY,{}),onClick:m}),H.jsx($n,{icon:H.jsx(e1t,{}),onClick:h,children:"分享"})]}),H.jsx($n,{icon:H.jsx(ek,{}),onClick:g,children:"评论"}),H.jsx($n,{type:"primary",icon:H.jsx(LT,{}),onClick:f,children:"编辑"})]})]}),H.jsx(URn,{children:H.jsxs(zRn,{children:[H.jsx(a2n,{value:(n==null?void 0:n.contentHtml)||"",plugins:GRn}),l&&H.jsx(VRn,{title:H.jsxs(Xi,{children:[H.jsx(ek,{}),H.jsx("span",{children:"评论"})]}),bordered:!1,children:e&&H.jsx($Rn,{articleUid:e})})]})})]})},{Option:gC}=vu,qRn=Po($n)`
padding: 0 4px;
height: 24px;
line-height: 24px;
`,YRn=Po.div`
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 16px;
`,KRn=({kbaseUid:e})=>{const[t,n]=ce.useState(!0),[r,i]=ce.useState([]),[o,a]=ce.useState(!1),[s]=li.useForm();ce.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),Ho.success("邀请已发送"),a(!1),s.resetFields()}catch(d){console.error("Invite member failed:",d),Ho.error("邀请失败")}},c=[{title:"成员",dataIndex:"name",key:"name",render:(u,d)=>H.jsxs(Xi,{children:[H.jsx(cD,{}),u,H.jsxs("span",{style:{color:"#999"},children:["(",d.email,")"]})]})},{title:"角色",dataIndex:"role",key:"role",render:u=>H.jsx(PS,{color:u==="admin"?"blue":"default",children:u==="admin"?"管理员":"成员"})},{title:"操作",key:"action",render:u=>H.jsxs(Xi,{size:"small",children:[H.jsxs(vu,{defaultValue:u.role,style:{width:100},disabled:u.role==="admin",children:[H.jsx(gC,{value:"admin",children:"管理员"}),H.jsx(gC,{value:"member",children:"成员"}),H.jsx(gC,{value:"readonly",children:"只读"})]}),H.jsx(qRn,{type:"link",icon:H.jsx(C2,{}),danger:!0,disabled:u.role==="admin",children:"移除"})]})}];return H.jsxs("div",{children:[H.jsxs(YRn,{children:[H.jsxs("span",{children:["共 ",r.length," 名成员"]}),H.jsx($n,{type:"primary",icon:H.jsx(g2,{}),onClick:()=>a(!0),children:"邀请成员"})]}),H.jsx(Hd,{columns:c,dataSource:r,loading:t,rowKey:"id",pagination:!1}),H.jsx(Wo,{title:"邀请成员",open:o,onCancel:()=>a(!1),onOk:()=>s.submit(),children:H.jsxs(li,{form:s,layout:"vertical",onFinish:l,children:[H.jsx(li.Item,{name:"email",label:"邮箱地址",rules:[{required:!0,message:"请输入邮箱地址"},{type:"email",message:"请输入有效的邮箱地址"}],children:H.jsx(Ki,{prefix:H.jsx(pgt,{}),placeholder:"请输入邮箱地址"})}),H.jsx(li.Item,{name:"role",label:"角色",initialValue:"member",rules:[{required:!0,message:"请选择角色"}],children:H.jsxs(vu,{children:[H.jsx(gC,{value:"member",children:"成员"}),H.jsx(gC,{value:"readonly",children:"只读"})]})}),H.jsx(li.Item,{name:"message",label:"邀请消息",children:H.jsx(Ki.TextArea,{placeholder:"可选:添加一条邀请消息",rows:3})})]})})]})},A7=Po($n)`
padding: 0 4px;
height: 24px;
line-height: 24px;
`,QRn=()=>{const[e,t]=ce.useState(!0),[n,r]=ce.useState([]),[i,o]=ce.useState({}),[a,s]=ce.useState({current:1,pageSize:10,total:0}),l=Aa(),c=$l(y=>y.currentOrg),{setCurrentArticle:u}=aO(),{currentKbase:d}=Lg(),f=async()=>{try{const y={pageNumber:0,pageSize:100,type:d==null?void 0:d.type,kbUid:d==null?void 0:d.uid,orgUid:c==null?void 0:c.uid},b=await AQ(y);if(b.data.code===200&&b.data.data.content){const _=b.data.data.content.reduce((E,w)=>(E[w.uid]=w,E),{});o(_)}}catch(y){console.error("获取分类列表失败:",y)}},h=async(y=1,b=10)=>{t(!0);try{const _={pageNumber:y-1,pageSize:b,kbUid:d==null?void 0:d.uid,orgUid:c==null?void 0:c.uid},E=await sZt(_);if(E.data.code===200){const{content:w,totalElements:S}=E.data.data;r(w),s({current:y,pageSize:b,total:S})}else Wt.error(E.data.message)}catch(_){console.error("获取文章列表失败:",_),Wt.error("获取文章列表失败")}finally{t(!1)}},m=async y=>{try{t(!0);const _=await NMe({uid:y});_.data.code===200?(Wt.success("删除成功"),await h(a.current,a.pageSize)):Wt.error(_.data.message)}catch(b){console.error("删除文章失败:",b),Wt.error("删除文章失败")}finally{t(!1)}};ce.useEffect(()=>{f(),h(a.current,a.pageSize)},[d==null?void 0:d.uid,c==null?void 0:c.uid]);const g=y=>{h(y.current,y.pageSize)},v=[{title:"标题",dataIndex:"title",key:"title",render:(y,b)=>H.jsxs(Xi,{children:[H.jsx(UTe,{}),H.jsx("a",{onClick:()=>{u(b),l(`/article/${b==null?void 0:b.uid}`)},children:y}),b.type==="markdown"&&H.jsx(PS,{color:"blue",children:"Markdown"})]})},{title:"分类",dataIndex:"categoryUid",key:"category",render:y=>{const b=i[y];return b?H.jsxs(Xi,{children:[H.jsx(kxe,{}),H.jsx("span",{children:b.name})]}):H.jsx("span",{style:{color:"rgba(0, 0, 0, 0.25)"},children:"未分类"})}},{title:"更新时间",dataIndex:"updatedAt",key:"updatedAt",render:y=>En(y).format("YYYY-MM-DD HH:mm:ss")},{title:"操作",key:"action",render:(y,b)=>H.jsxs(Xi,{size:"small",children:[H.jsx(A7,{type:"link",icon:H.jsx(RS,{}),onClick:()=>{u(b),l(`/article/${b==null?void 0:b.uid}`)},children:"预览"}),H.jsx(A7,{type:"link",icon:H.jsx(LT,{}),onClick:()=>{u(b),l(`/article/${b==null?void 0:b.uid}/edit`)},children:"编辑"}),H.jsx(aD,{title:"确定要删除这篇文章吗?",onConfirm:()=>m(b.uid),okText:"确定",cancelText:"取消",children:H.jsx(A7,{type:"link",icon:H.jsx(C2,{}),danger:!0,children:"删除"})})]})}];return H.jsx(Hd,{columns:v,dataSource:n,loading:e,rowKey:"uid",pagination:{...a,showSizeChanger:!0,showQuickJumper:!0,showTotal:y=>`共 ${y} 条`},onChange:g})},XRn=({open:e,onCancel:t})=>{const n=Aa(),r=$l(v=>v.currentOrg),{currentKbase:i}=Lg(),{setCurrentArticle:o}=aO(),[a,s]=ce.useState([]),[l,c]=ce.useState(!1),[u,d]=ce.useState(!1),f=ce.useRef(),h=async()=>{if(r!=null&&r.uid){d(!0);try{const v={pageNumber:0,pageSize:100,type:i==null?void 0:i.type,kbUid:i==null?void 0:i.uid,orgUid:r==null?void 0:r.uid},y=await AQ(v);console.log("queryCategoriesByOrg response:",y.data),y.data.code===200&&y.data.data.content&&s(y.data.data.content)}catch(v){console.error("获取分类列表失败:",v),Ho.error("获取分类列表失败")}finally{d(!1)}}};ce.useEffect(()=>{e&&h()},[e,r==null?void 0:r.uid]);const m=async v=>{try{const y={title:v.title,summary:v.summary,type:i==null?void 0:i.type,kbUid:i==null?void 0:i.uid,orgUid:r==null?void 0:r.uid,categoryUid:v.categoryUid},b=await cZt(y);return b.data.code===200?(Ho.success("文章创建成功"),o(b.data.data),n(`/article/${b.data.data.uid}/edit`),!0):(Ho.error(b.data.message),!1)}catch{return Ho.error("创建文章失败"),!1}},g=v=>{var y;s(b=>[...b,v]),(y=f.current)==null||y.setFieldValue("categoryUid",v.uid),c(!1)};return H.jsxs(H.Fragment,{children:[H.jsxs(eIe,{title:"新建文档",width:500,open:e,onFinish:m,onOpenChange:v=>!v&&t(),modalProps:{destroyOnClose:!0},formRef:f,children:[H.jsx(ci,{name:"title",label:"文档标题",placeholder:"请输入文档标题",rules:[{required:!0,message:"请输入文档标题"},{max:100,message:"标题最多100个字符"}],fieldProps:{autoFocus:!0}}),H.jsx(XS,{name:"summary",label:"概要",placeholder:"请输入文章概要"}),H.jsxs(Xi,{direction:"vertical",style:{width:"100%"},children:[H.jsx(G2,{name:"categoryUid",label:"所属分类",placeholder:"请选择分类",options:a.map(v=>({label:v.name,value:v.uid})),fieldProps:{showSearch:!0,allowClear:!0,loading:u,notFoundContent:u?"加载中...":"暂无分类"}}),H.jsx($n,{type:"dashed",icon:H.jsx(g2,{}),onClick:()=>c(!0),style:{width:"100%"},children:"创建新分类"})]})]}),H.jsx(MMe,{open:l,onCancel:()=>c(!1),onSuccess:g})]})},ZRn=Po.div`
margin-bottom: 24px;
padding: 16px 24px;
border-radius: 2px;
box-shadow: 0 1px 4px rgba(0, 21, 41, 0.08);
`,JRn=Po($q)`
margin-bottom: 16px;
cursor: pointer;
`,eIn=Po.div`
display: flex;
align-items: center;
justify-content: space-between;
margin-bottom: 16px;
h1 {
margin: 0;
font-size: 20px;
line-height: 32px;
}
`,tIn=Po.div`
color: rgba(0, 0, 0, 0.45);
`,nIn=()=>{const{kbaseUid:e}=$Y(),{currentKbase:t,fetchKbaseDetail:n,deleteKbase:r,toggleStarKbase:i}=Lg(),[o,a]=ce.useState(!0),[s,l]=ce.useState("documents"),[c,u]=ce.useState(!1),[d,f]=ce.useState(!1),h=Aa(),{translateString:m}=kc(),g=async()=>{if(e)try{await n(e)}finally{a(!1)}};if(ce.useEffect(()=>{g()},[e,n]),o||!t)return H.jsx("div",{style:{textAlign:"center",padding:"50px"},children:H.jsx(Ac,{size:"large"})});const v={items:[{key:"edit",icon:H.jsx(LT,{}),label:"编辑知识库",onClick:()=>{f(!0)}},{type:"divider"},{key:"delete",icon:H.jsx(C2,{}),label:"删除知识库",danger:!0,onClick:()=>{Wo.confirm({title:"删除知识库",content:"确定删除该知识库吗?",onOk:()=>{r(e||""),h("/")}})}}]},y=[{key:"documents",label:"文档",children:H.jsx(QRn,{})},...ud?[{key:"members",label:"成员",children:H.jsx(KRn,{kbaseUid:e||""})}]:[]],b=()=>{u(!0)};return H.jsxs("div",{children:[H.jsxs(ZRn,{children:[H.jsx(JRn,{items:[{title:"所有知识库",onClick:_=>{_.preventDefault(),h("/")}},{title:H.jsx(H.Fragment,{children:m(t==null?void 0:t.name)})}]}),H.jsxs(eIn,{children:[H.jsxs(Xi,{size:"middle",align:"center",children:[H.jsx("h1",{children:m(t==null?void 0:t.name)}),ud&&H.jsx($n,{type:"text",icon:t!=null&&t.favorite?H.jsx(lD,{}):H.jsx(pY,{}),onClick:()=>i(t==null?void 0:t.uid)}),(t==null?void 0:t.type)===eg&&H.jsx(PS,{color:"blue",children:"私有"}),H.jsx($n,{type:"primary",icon:H.jsx(LT,{}),onClick:b,children:"新建文档"})]}),H.jsxs(Xi,{children:[ud&&H.jsx($n,{icon:H.jsx(s1t,{}),children:"邀请成员"}),H.jsx(rD,{menu:v,placement:"bottomRight",children:H.jsx($n,{icon:H.jsx(xgt,{})})})]})]}),H.jsx(tIn,{children:m(t==null?void 0:t.description)})]}),H.jsx(TS,{activeKey:s,style:{paddingLeft:"24px",paddingRight:"24px"},onChange:l,items:y,size:"large"}),c&&H.jsx(XRn,{open:c,onCancel:()=>u(!1)}),d&&H.jsx(UNe,{visible:d,isEdit:!0,kbase:t,onCancel:()=>f(!1),onOk:()=>{f(!1),g()}})]})};function rIn({children:e}){const{isLoggedIn:t}=p.useContext(as),n=$S();return t?e:H.jsx(LEt,{to:"/auth/login",replace:!0,state:{from:n}})}const xme=[{path:"/",element:H.jsx(H.Fragment,{children:H.jsx(rIn,{children:H.jsx(aXt,{})})}),children:[{path:"",element:H.jsx(Ez,{})},{path:"kbase",element:H.jsx(Ez,{})},{path:"kbase/:kbaseUid",element:H.jsx(nIn,{})},{path:"article/:articleUid",element:H.jsx(WRn,{})},{path:"article/:articleUid/edit",element:H.jsx(Qbn,{})},{path:"/setting",element:H.jsx(oNe,{}),children:[{path:"/setting",element:H.jsx(zce,{})},{path:"/setting/profile",element:H.jsx(zce,{})},{path:"/setting/agentProfile",element:H.jsx(TXt,{})},{path:"/setting/memberProfile",element:H.jsx(vXt,{})},{path:"/setting/basic",element:H.jsx(fXt,{})},{path:"/setting/certification",element:H.jsx(CXt,{})},{path:"/setting/qrcode",element:H.jsx(pXt,{})},{path:"/setting/shortcut",element:H.jsx(hXt,{})}]}]},{path:"/auth",element:H.jsx(sXt,{}),children:[{path:"/auth",element:H.jsx(iz,{isModel:!1})},{path:"/auth/login",element:H.jsx(iz,{isModel:!1})},{path:"/auth/register",element:H.jsx(lWt,{})},{path:"/auth/server",element:H.jsx(CAe,{})}]},{path:"/anonymous",element:H.jsx(rZt,{}),children:[{path:"/anonymous",element:H.jsx(Cz,{})},{path:"/anonymous/home",element:H.jsx(Cz,{})},{path:"/anonymous/setting",element:H.jsx(aZt,{})}]},{path:"*",element:H.jsx(mXt,{})}];let PV;Ha?PV=VEt(xme,{future:{v7_normalizeFormMethod:!0,v7_relativeSplatPath:!0,v7_partialHydration:!0,v7_fetcherPersist:!0,v7_skipActionErrorRevalidation:!0}}):PV=zEt(xme,{basename:"/notebase",future:{v7_normalizeFormMethod:!0,v7_relativeSplatPath:!0,v7_partialHydration:!0,v7_fetcherPersist:!0,v7_skipActionErrorRevalidation:!0}});const iIn=PV;var oIn=typeof Element<"u",aIn=typeof Map=="function",sIn=typeof Set=="function",lIn=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function CN(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(!CN(e[r],t[r]))return!1;return!0}var o;if(aIn&&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(!CN(r.value[1],t.get(r.value[0])))return!1;return!0}if(sIn&&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(lIn&&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(oIn&&e instanceof Element)return!1;for(r=n;r--!==0;)if(!((i[r]==="_owner"||i[r]==="__v"||i[r]==="__o")&&e.$$typeof)&&!CN(e[i[r]],t[i[r]]))return!1;return!0}return e!==e&&t!==t}var cIn=function(t,n){try{return CN(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 uIn=di(cIn);var dIn=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}},fIn=dIn;const Ome=di(fIn);var w3e=(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))(w3e||{}),N7={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"]}},Rme=Object.values(w3e),fZ={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"},pIn=Object.entries(fZ).reduce((e,[t,n])=>(e[n]=t,e),{}),sd="data-rh",Fy={DEFAULT_TITLE:"defaultTitle",DEFER:"defer",ENCODE_SPECIAL_CHARACTERS:"encodeSpecialCharacters",ON_CHANGE_CLIENT_STATE:"onChangeClientState",TITLE_TEMPLATE:"titleTemplate",PRIORITIZE_SEO_TAGS:"prioritizeSeoTags"},By=(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},hIn=e=>{let t=By(e,"title");const n=By(e,Fy.TITLE_TEMPLATE);if(Array.isArray(t)&&(t=t.join("")),n&&t)return n.replace(/%s/g,()=>t);const r=By(e,Fy.DEFAULT_TITLE);return t||r||void 0},mIn=e=>By(e,Fy.ON_CHANGE_CLIENT_STATE)||(()=>{}),M7=(e,t)=>t.filter(n=>typeof n[e]<"u").map(n=>n[e]).reduce((n,r)=>({...n,...r}),{}),gIn=(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},[]),vIn=e=>console&&typeof console.warn=="function"&&console.warn(e),vC=(e,t,n)=>{const r={};return n.filter(i=>Array.isArray(i[e])?!0:(typeof i[e]<"u"&&vIn(`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 f=0;f<u.length;f+=1){const h=u[f],m=h.toLowerCase();t.indexOf(m)!==-1&&!(c==="rel"&&l[c].toLowerCase()==="canonical")&&!(m==="rel"&&l[m].toLowerCase()==="stylesheet")&&(c=m),t.indexOf(h)!==-1&&(h==="innerHTML"||h==="cssText"||h==="itemprop")&&(c=h)}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()},bIn=(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},yIn=e=>({baseTag:gIn(["href"],e),bodyAttributes:M7("bodyAttributes",e),defer:By(e,Fy.DEFER),encode:By(e,Fy.ENCODE_SPECIAL_CHARACTERS),htmlAttributes:M7("htmlAttributes",e),linkTags:vC("link",["rel","href"],e),metaTags:vC("meta",["name","charset","http-equiv","property","itemprop"],e),noscriptTags:vC("noscript",["innerHTML"],e),onChangeClientState:mIn(e),scriptTags:vC("script",["src","innerHTML"],e),styleTags:vC("style",["cssText"],e),title:hIn(e),titleAttributes:M7("titleAttributes",e),prioritizeSeoTags:bIn(e,Fy.PRIORITIZE_SEO_TAGS)}),T3e=e=>Array.isArray(e)?e.join(""):e,_In=(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},k7=(e,t)=>Array.isArray(e)?e.reduce((n,r)=>(_In(r,t)?n.priority.push(r):n.default.push(r),n),{priority:[],default:[]}):{default:e,priority:[]},Ime=(e,t)=>({...e,[t]:void 0}),SIn=["noscript","script","style"],DV=(e,t=!0)=>t===!1?String(e):String(e).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;"),x3e=e=>Object.keys(e).reduce((t,n)=>{const r=typeof e[n]<"u"?`${n}="${e[n]}"`:`${n}`;return t?`${t} ${r}`:r},""),EIn=(e,t,n,r)=>{const i=x3e(n),o=T3e(t);return i?`<${e} ${sd}="true" ${i}>${DV(o,r)}</${e}>`:`<${e} ${sd}="true">${DV(o,r)}</${e}>`},CIn=(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}="${DV(o[u],n)}"`;return c?`${c} ${d}`:d},""),s=o.innerHTML||o.cssText||"",l=SIn.indexOf(e)===-1;return`${r}<${e} ${sd}="true" ${a}${l?"/>":`>${s}</${e}>`}`},""),O3e=(e,t={})=>Object.keys(e).reduce((n,r)=>{const i=fZ[r];return n[i||r]=e[r],n},t),wIn=(e,t,n)=>{const r={key:t,[sd]:!0},i=O3e(n,r);return[ce.createElement("title",i,t)]},wN=(e,t)=>t.map((n,r)=>{const i={key:r,[sd]:!0};return Object.keys(n).forEach(o=>{const s=fZ[o]||o;if(s==="innerHTML"||s==="cssText"){const l=n.innerHTML||n.cssText;i.dangerouslySetInnerHTML={__html:l}}else i[s]=n[o]}),ce.createElement(e,i)}),zc=(e,t,n=!0)=>{switch(e){case"title":return{toComponent:()=>wIn(e,t.title,t.titleAttributes),toString:()=>EIn(e,t.title,t.titleAttributes,n)};case"bodyAttributes":case"htmlAttributes":return{toComponent:()=>O3e(t),toString:()=>x3e(t)};default:return{toComponent:()=>wN(e,t),toString:()=>CIn(e,t,n)}}},TIn=({metaTags:e,linkTags:t,scriptTags:n,encode:r})=>{const i=k7(e,N7.meta),o=k7(t,N7.link),a=k7(n,N7.script);return{priorityMethods:{toComponent:()=>[...wN("meta",i.priority),...wN("link",o.priority),...wN("script",a.priority)],toString:()=>`${zc("meta",i.priority,r)} ${zc("link",o.priority,r)} ${zc("script",a.priority,r)}`},metaTags:i.default,linkTags:o.default,scriptTags:a.default}},xIn=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:f}=e,h={toComponent:()=>{},toString:()=>""};return c&&({priorityMethods:h,linkTags:u,metaTags:d,scriptTags:f}=TIn(e)),{priority:h,base:zc("base",t,r),bodyAttributes:zc("bodyAttributes",n,r),htmlAttributes:zc("htmlAttributes",i,r),link:zc("link",u,r),meta:zc("meta",d,r),noscript:zc("noscript",o,r),script:zc("script",f,r),style:zc("style",a,r),title:zc("title",{title:s,titleAttributes:l},r)}},LV=xIn,GI=[],R3e=!!(typeof window<"u"&&window.document&&window.document.createElement),$V=class{constructor(e,t){ai(this,"instances",[]);ai(this,"canUseDOM",R3e);ai(this,"context");ai(this,"value",{setHelmet:e=>{this.context.helmet=e},helmetInstances:{get:()=>this.canUseDOM?GI:this.instances,add:e=>{(this.canUseDOM?GI:this.instances).push(e)},remove:e=>{const t=(this.canUseDOM?GI:this.instances).indexOf(e);(this.canUseDOM?GI:this.instances).splice(t,1)}}});this.context=e,this.canUseDOM=t||!1,t||(e.helmet=LV({baseTag:[],bodyAttributes:{},encodeSpecialCharacters:!0,htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}}))}},OIn={},I3e=ce.createContext(OIn),ev,A3e=(ev=class extends p.Component{constructor(n){super(n);ai(this,"helmetData");this.helmetData=new $V(this.props.context||{},ev.canUseDOM)}render(){return ce.createElement(I3e.Provider,{value:this.helmetData.value},this.props.children)}},ai(ev,"canUseDOM",R3e),ev),wb=(e,t)=>{const n=document.head||document.querySelector("head"),r=n.querySelectorAll(`${e}[${sd}]`),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(sd,"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}},FV=(e,t)=>{const n=document.getElementsByTagName(e)[0];if(!n)return;const r=n.getAttribute(sd),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(sd):n.getAttribute(sd)!==a.join(",")&&n.setAttribute(sd,a.join(","))},RIn=(e,t)=>{typeof e<"u"&&document.title!==e&&(document.title=T3e(e)),FV("title",t)},Ame=(e,t)=>{const{baseTag:n,bodyAttributes:r,htmlAttributes:i,linkTags:o,metaTags:a,noscriptTags:s,onChangeClientState:l,scriptTags:c,styleTags:u,title:d,titleAttributes:f}=e;FV("body",r),FV("html",i),RIn(d,f);const h={baseTag:wb("base",n),linkTags:wb("link",o),metaTags:wb("meta",a),noscriptTags:wb("noscript",s),scriptTags:wb("script",c),styleTags:wb("style",u)},m={},g={};Object.keys(h).forEach(v=>{const{newTags:y,oldTags:b}=h[v];y.length&&(m[v]=y),b.length&&(g[v]=h[v].oldTags)}),t&&t(),l(e,m,g)},bC=null,IIn=e=>{bC&&cancelAnimationFrame(bC),e.defer?bC=requestAnimationFrame(()=>{Ame(e,()=>{bC=null})}):(Ame(e),bC=null)},AIn=IIn,Nme=class extends p.Component{constructor(){super(...arguments);ai(this,"rendered",!1)}shouldComponentUpdate(t){return!HKt(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=yIn(t.get().map(o=>{const a={...o.props};return delete a.context,a}));A3e.canUseDOM?AIn(i):LV&&(r=LV(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}},P7,NIn=(P7=class extends p.Component{shouldComponentUpdate(e){return!uIn(Ime(this.props,"helmetData"),Ime(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 Ome(Rme.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 ${Rme.join(", ")} are allowed. Helmet does not support rendering <${e.type}> elements. Refer to our API for more information.`),Ome(!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 ce.Children.forEach(e,r=>{if(!r||!r.props)return;const{children:i,...o}=r.props,a=Object.keys(o).reduce((l,c)=>(l[pIn[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 $V)){const i=r;r=new $V(i.context,!0),delete n.helmetData}return r?ce.createElement(Nme,{...n,context:r.value}):ce.createElement(I3e.Consumer,null,i=>ce.createElement(Nme,{...n,context:i}))}},ai(P7,"defaultProps",{defer:!0,encodeSpecialCharacters:!0,prioritizeSeoTags:!1}),P7);const MIn={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:"暂无客服在线"},kIn={"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":"设置","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.personal":"个人模式","menu.mode.agent":"客服模式","menu.agent.offline.warning":"请在离线前结束所有正在進行中的会话","menu.mode.personal.coming":"即将推出...","menu.dashboard.notebase":"知识库"},PIn={"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":"查看文档"},DIn={"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":"隐私政策"},LIn={"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":"请输入正确的服务器地址"},$In={"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错误"},FIn={"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":"表单验证通过"},BIn={"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":"拉黑成功"},jIn={"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":"转接请求已发送,等待对方响应"},HIn={"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","i18n.kb.notebase.name":"知识库","i18n.kb.notebase.description":"知识库默认描述","i18n.kb.notebase.create":"创建知识库","i18n.kb.notebase.edit":"编辑知识库","i18n.kb.notebase.delete":"删除知识库","i18n.kb.notebase.list":"知识库列表"},UIn={"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":"快捷回复","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":"请检查表单"},zIn={"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":"密码修改成功!"},VIn={"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":"个人模式"},GIn={"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":"加载更多..."},WIn={"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":"暂无工单"},qIn={"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":"开始聊天"},YIn={"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":"加载成员失败"},KIn={"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":"请至少选择一个机器人"},QIn={"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":"选择大模型知识库"},XIn={"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":"取消"},N3e={"welcome.modal.title":"No Organization Found","welcome.modal.description":"You need to create or join an organization","welcome.modal.join":"Join Organization (Coming Soon)","welcome.modal.create":"Create Organization","welcome.modal.input.placeholder":"Please enter organization name","welcome.message.org.required":"Please create or join an organization","welcome.message.create.success":"Organization created successfully","welcome.message.create.failed":"Failed to create organization","welcome.message.verify.email":"Please verify your email first","welcome.message.verify.mobile":"Please verify your mobile number first","welcome.message.org.name.required":"Please enter organization name","welcome.message.org.creating":"Creating organization, please wait...","welcome.verify.modal.title":"Account Verification","welcome.verify.modal.description":"Your email and mobile number have not been verified. For account security, we recommend completing verification as soon as possible.","welcome.verify.now":"Verify Now","welcome.verify.later":"Verify Later"},ZIn={...DIn,...LIn,...$In,...FIn,...BIn,...jIn,...HIn,...kIn,...UIn,...PIn,...zIn,...VIn,...GIn,...WIn,...MIn,...qIn,...YIn,...KIn,...QIn,...XIn,...N3e},JIn={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:"无客服在线"},eAn={"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":"知識庫"},tAn={"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":"返回首頁"},nAn={"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":"隱私政策"},rAn={"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":"請輸入正確的服務器地址"},iAn={"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錯誤"},oAn={"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":"表單驗證通過"},aAn={"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":"拉黑成功"},sAn={"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":"數據加載失敗"},lAn={"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","i18n.kb.notebase.name":"知識庫","i18n.kb.notebase.description":"知識庫預設描述","i18n.kb.notebase.create":"創建知識庫","i18n.kb.notebase.edit":"編輯知識庫","i18n.kb.notebase.delete":"刪除知識庫","i18n.kb.notebase.list":"知識庫列表"},cAn={"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":"圖片保存失敗"},uAn={"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":"密碼修改成功!"},dAn={"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":"個人模式"},fAn={"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":"加載更多..."},pAn={"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":"暫無工單"},hAn={"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":"開始聊天"},mAn={"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":"加載成員失敗"},gAn={"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":"刪除"},vAn={"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":"选择大模型知识库"},bAn={"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":"取消"},yAn={"welcome.modal.title":"未發現所在組織","welcome.modal.description":"您需要創建或加入已有組織","welcome.modal.join":"加入已有組織(即將上線)","welcome.modal.create":"創建組織","welcome.modal.input.placeholder":"請輸入組織名稱","welcome.message.org.required":"請創建或加入組織","welcome.message.create.success":"創建組織成功","welcome.message.create.failed":"創建組織失敗","welcome.message.verify.email":"請先驗證郵箱","welcome.message.verify.mobile":"請先驗證手機號","welcome.message.org.name.required":"請輸入組織名稱","welcome.message.org.creating":"創建組織中,請稍後...","welcome.verify.modal.title":"賬號驗證提示","welcome.verify.modal.description":"您的郵箱和手機號尚未驗證,為保障賬號安全,建議您儘快完成驗證。","welcome.verify.now":"立即驗證","welcome.verify.later":"稍後驗證"},_An={...nAn,...rAn,...iAn,...oAn,...aAn,...sAn,...lAn,...eAn,...cAn,...tAn,...uAn,...dAn,...fAn,...pAn,...JIn,...hAn,...mAn,...gAn,...vAn,...bAn,...yAn},SAn={"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"},EAn={"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"},CAn={"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"},wAn={"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"},TAn={"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"},xAn={"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!"},OAn={"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"},RAn={"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"},IAn={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"},AAn={"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"},NAn={"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","i18n.kb.notebase.name":"Notebase","i18n.kb.notebase.description":"Notebase Description","i18n.kb.notebase.create":"Create Notebase","i18n.kb.notebase.edit":"Edit Notebase","i18n.kb.notebase.delete":"Delete Notebase","i18n.kb.notebase.list":"Notebase List"},MAn={"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"},kAn={"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..."},PAn={"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"},DAn={"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"},LAn={"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"},$An={"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"},FAn={"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"},BAn={"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"},jAn={"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"},HAn={...SAn,...EAn,...CAn,...wAn,...TAn,...xAn,...OAn,...RAn,...IAn,...AAn,...NAn,...MAn,...kAn,...PAn,...DAn,...LAn,...$An,...FAn,...BAn,...jAn,...N3e},UAn={"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"},M3e={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"},Ko={tablet:"tablet",mobile:"mobile",desktop:"desktop",tv:"tv"},Bs={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"},sm={EdgeHTML:"EdgeHTML",Blink:"Blink",Trident:"Trident",Presto:"Presto",Gecko:"Gecko",WebKit:"WebKit"};class tn{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=tn.getVersionPrecision(t),o=tn.getVersionPrecision(n);let a=Math.max(i,o),s=0;const l=tn.map([t,n],c=>{const u=a-tn.getVersionPrecision(c),d=c+new Array(u+1).join(".0");return tn.map(d.split("."),f=>new Array(20-f.length).join("0")+f).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 UAn[t]}static getBrowserTypeByAlias(t){return M3e[t]||""}}const Bi=/version\/(\d+(\.?_?\d+)+)/i,zAn=[{test:[/googlebot/i],describe(e){const t={name:"Googlebot"},n=tn.getFirstMatch(/googlebot\/(\d+(\.\d+))/i,e)||tn.getFirstMatch(Bi,e);return n&&(t.version=n),t}},{test:[/opera/i],describe(e){const t={name:"Opera"},n=tn.getFirstMatch(Bi,e)||tn.getFirstMatch(/(?:opera)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/opr\/|opios/i],describe(e){const t={name:"Opera"},n=tn.getFirstMatch(/(?:opr|opios)[\s/](\S+)/i,e)||tn.getFirstMatch(Bi,e);return n&&(t.version=n),t}},{test:[/SamsungBrowser/i],describe(e){const t={name:"Samsung Internet for Android"},n=tn.getFirstMatch(Bi,e)||tn.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=tn.getFirstMatch(Bi,e)||tn.getFirstMatch(/(?:whale)[\s/](\d+(?:\.\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/MZBrowser/i],describe(e){const t={name:"MZ Browser"},n=tn.getFirstMatch(/(?:MZBrowser)[\s/](\d+(?:\.\d+)+)/i,e)||tn.getFirstMatch(Bi,e);return n&&(t.version=n),t}},{test:[/focus/i],describe(e){const t={name:"Focus"},n=tn.getFirstMatch(/(?:focus)[\s/](\d+(?:\.\d+)+)/i,e)||tn.getFirstMatch(Bi,e);return n&&(t.version=n),t}},{test:[/swing/i],describe(e){const t={name:"Swing"},n=tn.getFirstMatch(/(?:swing)[\s/](\d+(?:\.\d+)+)/i,e)||tn.getFirstMatch(Bi,e);return n&&(t.version=n),t}},{test:[/coast/i],describe(e){const t={name:"Opera Coast"},n=tn.getFirstMatch(Bi,e)||tn.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=tn.getFirstMatch(/(?:opt)[\s/](\d+(\.?_?\d+)+)/i,e)||tn.getFirstMatch(Bi,e);return n&&(t.version=n),t}},{test:[/yabrowser/i],describe(e){const t={name:"Yandex Browser"},n=tn.getFirstMatch(/(?:yabrowser)[\s/](\d+(\.?_?\d+)+)/i,e)||tn.getFirstMatch(Bi,e);return n&&(t.version=n),t}},{test:[/ucbrowser/i],describe(e){const t={name:"UC Browser"},n=tn.getFirstMatch(Bi,e)||tn.getFirstMatch(/(?:ucbrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/Maxthon|mxios/i],describe(e){const t={name:"Maxthon"},n=tn.getFirstMatch(Bi,e)||tn.getFirstMatch(/(?:Maxthon|mxios)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/epiphany/i],describe(e){const t={name:"Epiphany"},n=tn.getFirstMatch(Bi,e)||tn.getFirstMatch(/(?:epiphany)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/puffin/i],describe(e){const t={name:"Puffin"},n=tn.getFirstMatch(Bi,e)||tn.getFirstMatch(/(?:puffin)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/sleipnir/i],describe(e){const t={name:"Sleipnir"},n=tn.getFirstMatch(Bi,e)||tn.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=tn.getFirstMatch(Bi,e)||tn.getFirstMatch(/(?:k-meleon)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/micromessenger/i],describe(e){const t={name:"WeChat"},n=tn.getFirstMatch(/(?:micromessenger)[\s/](\d+(\.?_?\d+)+)/i,e)||tn.getFirstMatch(Bi,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=tn.getFirstMatch(/(?:qqbrowserlite|qqbrowser)[/](\d+(\.?_?\d+)+)/i,e)||tn.getFirstMatch(Bi,e);return n&&(t.version=n),t}},{test:[/msie|trident/i],describe(e){const t={name:"Internet Explorer"},n=tn.getFirstMatch(/(?:msie |rv:)(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/\sedg\//i],describe(e){const t={name:"Microsoft Edge"},n=tn.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=tn.getSecondMatch(/edg([ea]|ios)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/vivaldi/i],describe(e){const t={name:"Vivaldi"},n=tn.getFirstMatch(/vivaldi\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/seamonkey/i],describe(e){const t={name:"SeaMonkey"},n=tn.getFirstMatch(/seamonkey\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/sailfish/i],describe(e){const t={name:"Sailfish"},n=tn.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=tn.getFirstMatch(/silk\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/phantom/i],describe(e){const t={name:"PhantomJS"},n=tn.getFirstMatch(/phantomjs\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/slimerjs/i],describe(e){const t={name:"SlimerJS"},n=tn.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=tn.getFirstMatch(Bi,e)||tn.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=tn.getFirstMatch(Bi,e)||tn.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=tn.getFirstMatch(/dolfin\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/tizen/i],describe(e){const t={name:"Tizen"},n=tn.getFirstMatch(/(?:tizen\s?)?browser\/(\d+(\.?_?\d+)+)/i,e)||tn.getFirstMatch(Bi,e);return n&&(t.version=n),t}},{test:[/qupzilla/i],describe(e){const t={name:"QupZilla"},n=tn.getFirstMatch(/(?:qupzilla)[\s/](\d+(\.?_?\d+)+)/i,e)||tn.getFirstMatch(Bi,e);return n&&(t.version=n),t}},{test:[/firefox|iceweasel|fxios/i],describe(e){const t={name:"Firefox"},n=tn.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=tn.getFirstMatch(/(?:electron)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/MiuiBrowser/i],describe(e){const t={name:"Miui"},n=tn.getFirstMatch(/(?:MiuiBrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/chromium/i],describe(e){const t={name:"Chromium"},n=tn.getFirstMatch(/(?:chromium)[\s/](\d+(\.?_?\d+)+)/i,e)||tn.getFirstMatch(Bi,e);return n&&(t.version=n),t}},{test:[/chrome|crios|crmo/i],describe(e){const t={name:"Chrome"},n=tn.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=tn.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=tn.getFirstMatch(Bi,e);return n&&(t.version=n),t}},{test:[/playstation 4/i],describe(e){const t={name:"PlayStation 4"},n=tn.getFirstMatch(Bi,e);return n&&(t.version=n),t}},{test:[/safari|applewebkit/i],describe(e){const t={name:"Safari"},n=tn.getFirstMatch(Bi,e);return n&&(t.version=n),t}},{test:[/.*/i],describe(e){const t=/^(.*)\/(.*) /,n=/^(.*)\/(.*)[ \t]\((.*)/,i=e.search("\\(")!==-1?n:t;return{name:tn.getFirstMatch(i,e),version:tn.getSecondMatch(i,e)}}}],VAn=[{test:[/Roku\/DVP/],describe(e){const t=tn.getFirstMatch(/Roku\/DVP-(\d+\.\d+)/i,e);return{name:Bs.Roku,version:t}}},{test:[/windows phone/i],describe(e){const t=tn.getFirstMatch(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i,e);return{name:Bs.WindowsPhone,version:t}}},{test:[/windows /i],describe(e){const t=tn.getFirstMatch(/Windows ((NT|XP)( \d\d?.\d)?)/i,e),n=tn.getWindowsVersionName(t);return{name:Bs.Windows,version:t,versionName:n}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe(e){const t={name:Bs.iOS},n=tn.getSecondMatch(/(Version\/)(\d[\d.]+)/,e);return n&&(t.version=n),t}},{test:[/macintosh/i],describe(e){const t=tn.getFirstMatch(/mac os x (\d+(\.?_?\d+)+)/i,e).replace(/[_\s]/g,"."),n=tn.getMacOSVersionName(t),r={name:Bs.MacOS,version:t};return n&&(r.versionName=n),r}},{test:[/(ipod|iphone|ipad)/i],describe(e){const t=tn.getFirstMatch(/os (\d+([_\s]\d+)*) like mac os x/i,e).replace(/[_\s]/g,".");return{name:Bs.iOS,version:t}}},{test(e){const t=!e.test(/like android/i),n=e.test(/android/i);return t&&n},describe(e){const t=tn.getFirstMatch(/android[\s/-](\d+(\.\d+)*)/i,e),n=tn.getAndroidVersionName(t),r={name:Bs.Android,version:t};return n&&(r.versionName=n),r}},{test:[/(web|hpw)[o0]s/i],describe(e){const t=tn.getFirstMatch(/(?:web|hpw)[o0]s\/(\d+(\.\d+)*)/i,e),n={name:Bs.WebOS};return t&&t.length&&(n.version=t),n}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe(e){const t=tn.getFirstMatch(/rim\stablet\sos\s(\d+(\.\d+)*)/i,e)||tn.getFirstMatch(/blackberry\d+\/(\d+([_\s]\d+)*)/i,e)||tn.getFirstMatch(/\bbb(\d+)/i,e);return{name:Bs.BlackBerry,version:t}}},{test:[/bada/i],describe(e){const t=tn.getFirstMatch(/bada\/(\d+(\.\d+)*)/i,e);return{name:Bs.Bada,version:t}}},{test:[/tizen/i],describe(e){const t=tn.getFirstMatch(/tizen[/\s](\d+(\.\d+)*)/i,e);return{name:Bs.Tizen,version:t}}},{test:[/linux/i],describe(){return{name:Bs.Linux}}},{test:[/CrOS/],describe(){return{name:Bs.ChromeOS}}},{test:[/PlayStation 4/],describe(e){const t=tn.getFirstMatch(/PlayStation 4[/\s](\d+(\.\d+)*)/i,e);return{name:Bs.PlayStation4,version:t}}}],GAn=[{test:[/googlebot/i],describe(){return{type:"bot",vendor:"Google"}}},{test:[/huawei/i],describe(e){const t=tn.getFirstMatch(/(can-l01)/i,e)&&"Nova",n={type:Ko.mobile,vendor:"Huawei"};return t&&(n.model=t),n}},{test:[/nexus\s*(?:7|8|9|10).*/i],describe(){return{type:Ko.tablet,vendor:"Nexus"}}},{test:[/ipad/i],describe(){return{type:Ko.tablet,vendor:"Apple",model:"iPad"}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe(){return{type:Ko.tablet,vendor:"Apple",model:"iPad"}}},{test:[/kftt build/i],describe(){return{type:Ko.tablet,vendor:"Amazon",model:"Kindle Fire HD 7"}}},{test:[/silk/i],describe(){return{type:Ko.tablet,vendor:"Amazon"}}},{test:[/tablet(?! pc)/i],describe(){return{type:Ko.tablet}}},{test(e){const t=e.test(/ipod|iphone/i),n=e.test(/like (ipod|iphone)/i);return t&&!n},describe(e){const t=tn.getFirstMatch(/(ipod|iphone)/i,e);return{type:Ko.mobile,vendor:"Apple",model:t}}},{test:[/nexus\s*[0-6].*/i,/galaxy nexus/i],describe(){return{type:Ko.mobile,vendor:"Nexus"}}},{test:[/[^-]mobi/i],describe(){return{type:Ko.mobile}}},{test(e){return e.getBrowserName(!0)==="blackberry"},describe(){return{type:Ko.mobile,vendor:"BlackBerry"}}},{test(e){return e.getBrowserName(!0)==="bada"},describe(){return{type:Ko.mobile}}},{test(e){return e.getBrowserName()==="windows phone"},describe(){return{type:Ko.mobile,vendor:"Microsoft"}}},{test(e){const t=Number(String(e.getOSVersion()).split(".")[0]);return e.getOSName(!0)==="android"&&t>=3},describe(){return{type:Ko.tablet}}},{test(e){return e.getOSName(!0)==="android"},describe(){return{type:Ko.mobile}}},{test(e){return e.getOSName(!0)==="macos"},describe(){return{type:Ko.desktop,vendor:"Apple"}}},{test(e){return e.getOSName(!0)==="windows"},describe(){return{type:Ko.desktop}}},{test(e){return e.getOSName(!0)==="linux"},describe(){return{type:Ko.desktop}}},{test(e){return e.getOSName(!0)==="playstation 4"},describe(){return{type:Ko.tv}}},{test(e){return e.getOSName(!0)==="roku"},describe(){return{type:Ko.tv}}}],WAn=[{test(e){return e.getBrowserName(!0)==="microsoft edge"},describe(e){if(/\sedg\//i.test(e))return{name:sm.Blink};const n=tn.getFirstMatch(/edge\/(\d+(\.?_?\d+)+)/i,e);return{name:sm.EdgeHTML,version:n}}},{test:[/trident/i],describe(e){const t={name:sm.Trident},n=tn.getFirstMatch(/trident\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test(e){return e.test(/presto/i)},describe(e){const t={name:sm.Presto},n=tn.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:sm.Gecko},n=tn.getFirstMatch(/gecko\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/(apple)?webkit\/537\.36/i],describe(){return{name:sm.Blink}}},{test:[/(apple)?webkit/i],describe(e){const t={name:sm.WebKit},n=tn.getFirstMatch(/webkit\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}}];class Mme{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=tn.find(zAn,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=tn.find(VAn,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=tn.find(GAn,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=tn.find(WAn,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 tn.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=tn.find(s,u=>this.isOS(u));if(l){const u=this.satisfies(n[l]);if(u!==void 0)return u}const c=tn.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=tn.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=tn.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(tn.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 qAn{static getParser(t,n=!1){if(typeof t!="string")throw new Error("UserAgent should be a string");return new Mme(t,n)}static parse(t){return new Mme(t).getResult()}static get BROWSER_MAP(){return M3e}static get ENGINE_MAP(){return sm}static get OS_MAP(){return Bs}static get PLATFORMS_MAP(){return Ko}}const{defaultAlgorithm:YAn,darkAlgorithm:KAn}=Es,QAn={"zh-cn":ZIn,"zh-tw":_An,en:HAn},XAn=()=>{const{isDarkMode:e,locale:t}=p.useContext(as),n=new SSt({defaultOptions:{queries:{refetchOnWindowFocus:!1}}}),[r,i]=p.useState(!1),o=()=>{const s=qAn.getParser(window.navigator.userAgent);console.log("browser:",s),Ha?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 t0e(),Ha)console.log("is electron");else{await e0e();const s=TP();console.log("Base URL:",s)}};return p.useEffect(()=>{$ye(),o(),a()},[]),H.jsx(Ln,{locale:t,theme:{algorithm:e?KAn:YAn},children:H.jsx(CSt,{client:n,children:H.jsx(A3e,{children:H.jsx(p.Suspense,{fallback:H.jsx("div",{children:"loading..."}),children:H.jsxs(XGt,{messages:QAn[t.locale],locale:t.locale,defaultLocale:"zh-cn",children:[r&&H.jsx(NIn,{children:H.jsx("link",{rel:"stylesheet",type:"text/css",href:K$e})}),H.jsxs(N5,{children:[H.jsx(L_t,{}),H.jsx(ZEt,{router:iIn})]})]})})})})})},ZAn=()=>H.jsx("div",{className:"App",children:H.jsx(J_t,{children:H.jsx(XAn,{})})});D7.createRoot(document.getElementById("root")).render(H.jsx(ZAn,{}));postMessage({payload:"removeLoading"},"*");export{Jae as $,VCe as A,O0 as B,TOt as C,bOt as D,xOt as E,OOt as F,jOe as G,xD as H,i2t as I,YY as J,UOe as K,BOe as L,ROe as M,rOt as N,J2t as O,yOt as P,ao as Q,uOt as R,dk as S,HS as T,Yae as U,k2 as V,iOt as W,AOe as X,s2t as Y,l2t as Z,aW as _,$l as a,c2t as a0,a2t as a1,p2t as a2,kOe as a3,b2t as a4,XTn as a5,qY as b,BS as c,RD as d,KY as e,_U as f,di as g,DOe as h,NOe as i,FOe as j,yU as k,jS as l,br as m,IOt as n,d2t as o,qWe as p,KWe as q,$r as r,Vj as s,Rxt as t,id as u,O2t as v,WY as w,YVe as x,jBt as y,WCe as z};