Files
weiyu/deploy/server/notebase/assets/index-BqabOYTA.js
2025-07-07 18:20:14 +08:00

1768 lines
5.2 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 I9e=Object.defineProperty;var bJ=e=>{throw TypeError(e)};var N9e=(e,t,n)=>t in e?I9e(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var ni=(e,t,n)=>N9e(e,typeof t!="symbol"?t+"":t,n),i9=(e,t,n)=>t.has(e)||bJ("Cannot "+n);var je=(e,t,n)=>(i9(e,t,"read from private field"),n?n.call(e):t.get(e)),$n=(e,t,n)=>t.has(e)?bJ("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),pn=(e,t,n,r)=>(i9(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),Rn=(e,t,n)=>(i9(e,t,"access private method"),n);var Xg=(e,t,n,r)=>({set _(i){pn(e,t,i,n)},get _(){return je(e,t,r)}});function Wk(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 Wn=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function oi(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function J_(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 n0e={exports:{}},qk={},r0e={exports:{}},Wr={};/**
* @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 PT=Symbol.for("react.element"),M9e=Symbol.for("react.portal"),k9e=Symbol.for("react.fragment"),P9e=Symbol.for("react.strict_mode"),D9e=Symbol.for("react.profiler"),L9e=Symbol.for("react.provider"),$9e=Symbol.for("react.context"),F9e=Symbol.for("react.forward_ref"),B9e=Symbol.for("react.suspense"),H9e=Symbol.for("react.memo"),j9e=Symbol.for("react.lazy"),yJ=Symbol.iterator;function U9e(e){return e===null||typeof e!="object"?null:(e=yJ&&e[yJ]||e["@@iterator"],typeof e=="function"?e:null)}var i0e={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},o0e=Object.assign,a0e={};function eS(e,t,n){this.props=e,this.context=t,this.refs=a0e,this.updater=n||i0e}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 s0e(){}s0e.prototype=eS.prototype;function FG(e,t,n){this.props=e,this.context=t,this.refs=a0e,this.updater=n||i0e}var BG=FG.prototype=new s0e;BG.constructor=FG;o0e(BG,eS.prototype);BG.isPureReactComponent=!0;var _J=Array.isArray,l0e=Object.prototype.hasOwnProperty,HG={current:null},c0e={key:!0,ref:!0,__self:!0,__source:!0};function u0e(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)l0e.call(t,r)&&!c0e.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:PT,type:e,key:o,ref:a,props:i,_owner:HG.current}}function z9e(e,t){return{$$typeof:PT,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function jG(e){return typeof e=="object"&&e!==null&&e.$$typeof===PT}function V9e(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var SJ=/\/+/g;function o9(e,t){return typeof e=="object"&&e!==null&&e.key!=null?V9e(""+e.key):t.toString(36)}function QA(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 PT:case M9e:a=!0}}if(a)return a=e,i=i(a),e=r===""?"."+o9(a,0):r,_J(i)?(n="",e!=null&&(n=e.replace(SJ,"$&/")+"/"),QA(i,t,n,"",function(c){return c})):i!=null&&(jG(i)&&(i=z9e(i,n+(!i.key||a&&a.key===i.key?"":(""+i.key).replace(SJ,"$&/")+"/")+e)),t.push(i)),1;if(a=0,r=r===""?".":r+":",_J(e))for(var s=0;s<e.length;s++){o=e[s];var l=r+o9(o,s);a+=QA(o,t,n,l,i)}else if(l=U9e(e),typeof l=="function")for(e=l.call(e),s=0;!(o=e.next()).done;)o=o.value,l=r+o9(o,s++),a+=QA(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 HO(e,t,n){if(e==null)return e;var r=[],i=0;return QA(e,r,"","",function(o){return t.call(n,o,i++)}),r}function G9e(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 al={current:null},XA={transition:null},W9e={ReactCurrentDispatcher:al,ReactCurrentBatchConfig:XA,ReactCurrentOwner:HG};function d0e(){throw Error("act(...) is not supported in production builds of React.")}Wr.Children={map:HO,forEach:function(e,t,n){HO(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return HO(e,function(){t++}),t},toArray:function(e){return HO(e,function(t){return t})||[]},only:function(e){if(!jG(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};Wr.Component=eS;Wr.Fragment=k9e;Wr.Profiler=D9e;Wr.PureComponent=FG;Wr.StrictMode=P9e;Wr.Suspense=B9e;Wr.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=W9e;Wr.act=d0e;Wr.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=o0e({},e.props),i=e.key,o=e.ref,a=e._owner;if(t!=null){if(t.ref!==void 0&&(o=t.ref,a=HG.current),t.key!==void 0&&(i=""+t.key),e.type&&e.type.defaultProps)var s=e.type.defaultProps;for(l in t)l0e.call(t,l)&&!c0e.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:PT,type:e.type,key:i,ref:o,props:r,_owner:a}};Wr.createContext=function(e){return e={$$typeof:$9e,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:L9e,_context:e},e.Consumer=e};Wr.createElement=u0e;Wr.createFactory=function(e){var t=u0e.bind(null,e);return t.type=e,t};Wr.createRef=function(){return{current:null}};Wr.forwardRef=function(e){return{$$typeof:F9e,render:e}};Wr.isValidElement=jG;Wr.lazy=function(e){return{$$typeof:j9e,_payload:{_status:-1,_result:e},_init:G9e}};Wr.memo=function(e,t){return{$$typeof:H9e,type:e,compare:t===void 0?null:t}};Wr.startTransition=function(e){var t=XA.transition;XA.transition={};try{e()}finally{XA.transition=t}};Wr.unstable_act=d0e;Wr.useCallback=function(e,t){return al.current.useCallback(e,t)};Wr.useContext=function(e){return al.current.useContext(e)};Wr.useDebugValue=function(){};Wr.useDeferredValue=function(e){return al.current.useDeferredValue(e)};Wr.useEffect=function(e,t){return al.current.useEffect(e,t)};Wr.useId=function(){return al.current.useId()};Wr.useImperativeHandle=function(e,t,n){return al.current.useImperativeHandle(e,t,n)};Wr.useInsertionEffect=function(e,t){return al.current.useInsertionEffect(e,t)};Wr.useLayoutEffect=function(e,t){return al.current.useLayoutEffect(e,t)};Wr.useMemo=function(e,t){return al.current.useMemo(e,t)};Wr.useReducer=function(e,t,n){return al.current.useReducer(e,t,n)};Wr.useRef=function(e){return al.current.useRef(e)};Wr.useState=function(e){return al.current.useState(e)};Wr.useSyncExternalStore=function(e,t,n){return al.current.useSyncExternalStore(e,t,n)};Wr.useTransition=function(){return al.current.useTransition()};Wr.version="18.3.1";r0e.exports=Wr;var h=r0e.exports;const pe=oi(h),DT=Wk({__proto__:null,default:pe},[h]);/**
* @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 q9e=h,Y9e=Symbol.for("react.element"),K9e=Symbol.for("react.fragment"),Q9e=Object.prototype.hasOwnProperty,X9e=q9e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Z9e={key:!0,ref:!0,__self:!0,__source:!0};function f0e(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)Q9e.call(t,r)&&!Z9e.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:Y9e,type:e,key:o,ref:a,props:i,_owner:X9e.current}}qk.Fragment=K9e;qk.jsx=f0e;qk.jsxs=f0e;n0e.exports=qk;var F=n0e.exports,CF={},p0e={exports:{}},Oc={},h0e={exports:{}},m0e={};/**
* @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(B,G){var L=B.length;B.push(G);e:for(;0<L;){var W=L-1>>>1,j=B[W];if(0<i(j,G))B[W]=G,B[L]=j,L=W;else break e}}function n(B){return B.length===0?null:B[0]}function r(B){if(B.length===0)return null;var G=B[0],L=B.pop();if(L!==G){B[0]=L;e:for(var W=0,j=B.length,H=j>>>1;W<H;){var X=2*(W+1)-1,Q=B[X],ue=X+1,ee=B[ue];if(0>i(Q,L))ue<j&&0>i(ee,Q)?(B[W]=ee,B[ue]=L,W=ue):(B[W]=Q,B[X]=L,W=X);else if(ue<j&&0>i(ee,L))B[W]=ee,B[ue]=L,W=ue;else break e}}return G}function i(B,G){var L=B.sortIndex-G.sortIndex;return L!==0?L:B.id-G.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,p=!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 _(B){for(var G=n(c);G!==null;){if(G.callback===null)r(c);else if(G.startTime<=B)r(c),G.sortIndex=G.expirationTime,t(l,G);else break;G=n(c)}}function S(B){if(g=!1,_(B),!m)if(n(l)!==null)m=!0,k(x);else{var G=n(c);G!==null&&P(S,G.startTime-B)}}function x(B,G){m=!1,g&&(g=!1,y(w),w=-1),p=!0;var L=f;try{for(_(G),d=n(l);d!==null&&(!(d.expirationTime>G)||B&&!A());){var W=d.callback;if(typeof W=="function"){d.callback=null,f=d.priorityLevel;var j=W(d.expirationTime<=G);G=e.unstable_now(),typeof j=="function"?d.callback=j:d===n(l)&&r(l),_(G)}else r(l);d=n(l)}if(d!==null)var H=!0;else{var X=n(c);X!==null&&P(S,X.startTime-G),H=!1}return H}finally{d=null,f=L,p=!1}}var E=!1,C=null,w=-1,O=5,T=-1;function A(){return!(e.unstable_now()-T<O)}function I(){if(C!==null){var B=e.unstable_now();T=B;var G=!0;try{G=C(!0,B)}finally{G?N():(E=!1,C=null)}}else E=!1}var N;if(typeof b=="function")N=function(){b(I)};else if(typeof MessageChannel<"u"){var D=new MessageChannel,M=D.port2;D.port1.onmessage=I,N=function(){M.postMessage(null)}}else N=function(){v(I,0)};function k(B){C=B,E||(E=!0,N())}function P(B,G){w=v(function(){B(e.unstable_now())},G)}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(B){B.callback=null},e.unstable_continueExecution=function(){m||p||(m=!0,k(x))},e.unstable_forceFrameRate=function(B){0>B||125<B?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):O=0<B?Math.floor(1e3/B):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_getFirstCallbackNode=function(){return n(l)},e.unstable_next=function(B){switch(f){case 1:case 2:case 3:var G=3;break;default:G=f}var L=f;f=G;try{return B()}finally{f=L}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(B,G){switch(B){case 1:case 2:case 3:case 4:case 5:break;default:B=3}var L=f;f=B;try{return G()}finally{f=L}},e.unstable_scheduleCallback=function(B,G,L){var W=e.unstable_now();switch(typeof L=="object"&&L!==null?(L=L.delay,L=typeof L=="number"&&0<L?W+L:W):L=W,B){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,B={id:u++,callback:G,priorityLevel:B,startTime:L,expirationTime:j,sortIndex:-1},L>W?(B.sortIndex=L,t(c,B),n(l)===null&&B===n(c)&&(g?(y(w),w=-1):g=!0,P(S,L-W))):(B.sortIndex=j,t(l,B),m||p||(m=!0,k(x))),B},e.unstable_shouldYield=A,e.unstable_wrapCallback=function(B){var G=f;return function(){var L=f;f=G;try{return B.apply(this,arguments)}finally{f=L}}}})(m0e);h0e.exports=m0e;var J9e=h0e.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 e6e=h,Sc=J9e;function dn(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 g0e=new Set,qx={};function sv(e,t){Gy(e,t),Gy(e+"Capture",t)}function Gy(e,t){for(qx[e]=t,e=0;e<t.length;e++)g0e.add(t[e])}var eh=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),xF=Object.prototype.hasOwnProperty,t6e=/^[: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]*$/,EJ={},CJ={};function n6e(e){return xF.call(CJ,e)?!0:xF.call(EJ,e)?!1:t6e.test(e)?CJ[e]=!0:(EJ[e]=!0,!1)}function r6e(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 i6e(e,t,n,r){if(t===null||typeof t>"u"||r6e(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 sl(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 ss={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){ss[e]=new sl(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];ss[t]=new sl(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){ss[e]=new sl(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){ss[e]=new sl(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){ss[e]=new sl(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){ss[e]=new sl(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){ss[e]=new sl(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){ss[e]=new sl(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){ss[e]=new sl(e,5,!1,e.toLowerCase(),null,!1,!1)});var UG=/[\-:]([a-z])/g;function zG(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(UG,zG);ss[t]=new sl(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(UG,zG);ss[t]=new sl(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(UG,zG);ss[t]=new sl(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){ss[e]=new sl(e,1,!1,e.toLowerCase(),null,!1,!1)});ss.xlinkHref=new sl("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){ss[e]=new sl(e,1,!1,e.toLowerCase(),null,!0,!0)});function VG(e,t,n,r){var i=ss.hasOwnProperty(t)?ss[t]:null;(i!==null?i.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(i6e(t,n,i,r)&&(n=null),r||i===null?n6e(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 mh=e6e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,jO=Symbol.for("react.element"),Hb=Symbol.for("react.portal"),jb=Symbol.for("react.fragment"),GG=Symbol.for("react.strict_mode"),wF=Symbol.for("react.profiler"),v0e=Symbol.for("react.provider"),b0e=Symbol.for("react.context"),WG=Symbol.for("react.forward_ref"),TF=Symbol.for("react.suspense"),OF=Symbol.for("react.suspense_list"),qG=Symbol.for("react.memo"),am=Symbol.for("react.lazy"),y0e=Symbol.for("react.offscreen"),xJ=Symbol.iterator;function gE(e){return e===null||typeof e!="object"?null:(e=xJ&&e[xJ]||e["@@iterator"],typeof e=="function"?e:null)}var Po=Object.assign,a9;function gC(e){if(a9===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);a9=t&&t[1]||""}return`
`+a9+e}var s9=!1;function l9(e,t){if(!e||s9)return"";s9=!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{s9=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?gC(e):""}function o6e(e){switch(e.tag){case 5:return gC(e.type);case 16:return gC("Lazy");case 13:return gC("Suspense");case 19:return gC("SuspenseList");case 0:case 2:case 15:return e=l9(e.type,!1),e;case 11:return e=l9(e.type.render,!1),e;case 1:return e=l9(e.type,!0),e;default:return""}}function RF(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 Hb:return"Portal";case wF:return"Profiler";case GG:return"StrictMode";case TF:return"Suspense";case OF:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case b0e:return(e.displayName||"Context")+".Consumer";case v0e:return(e._context.displayName||"Context")+".Provider";case WG:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case qG:return t=e.displayName||null,t!==null?t:RF(e.type)||"Memo";case am:t=e._payload,e=e._init;try{return RF(e(t))}catch{}}return null}function a6e(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 RF(t);case 8:return t===GG?"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 _0e(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function s6e(e){var t=_0e(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 UO(e){e._valueTracker||(e._valueTracker=s6e(e))}function S0e(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=_0e(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function ON(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 AF(e,t){var n=t.checked;return Po({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function wJ(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 E0e(e,t){t=t.checked,t!=null&&VG(e,"checked",t,!1)}function IF(e,t){E0e(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")?NF(e,t.type,n):t.hasOwnProperty("defaultValue")&&NF(e,t.type,ug(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function TJ(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 NF(e,t,n){(t!=="number"||ON(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var vC=Array.isArray;function ly(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 MF(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(dn(91));return Po({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function OJ(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(dn(92));if(vC(n)){if(1<n.length)throw Error(dn(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:ug(n)}}function C0e(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 RJ(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function x0e(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 kF(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?x0e(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var zO,w0e=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(zO=zO||document.createElement("div"),zO.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=zO.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Yx(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var GC={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},l6e=["Webkit","ms","Moz","O"];Object.keys(GC).forEach(function(e){l6e.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),GC[t]=GC[e]})});function T0e(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||GC.hasOwnProperty(e)&&GC[e]?(""+t).trim():t+"px"}function O0e(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=T0e(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var c6e=Po({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 PF(e,t){if(t){if(c6e[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(dn(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(dn(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(dn(61))}if(t.style!=null&&typeof t.style!="object")throw Error(dn(62))}}function DF(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 LF=null;function YG(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var $F=null,cy=null,uy=null;function AJ(e){if(e=FT(e)){if(typeof $F!="function")throw Error(dn(280));var t=e.stateNode;t&&(t=Zk(t),$F(e.stateNode,e.type,t))}}function R0e(e){cy?uy?uy.push(e):uy=[e]:cy=e}function A0e(){if(cy){var e=cy,t=uy;if(uy=cy=null,AJ(e),t)for(e=0;e<t.length;e++)AJ(t[e])}}function I0e(e,t){return e(t)}function N0e(){}var c9=!1;function M0e(e,t,n){if(c9)return e(t,n);c9=!0;try{return I0e(e,t,n)}finally{c9=!1,(cy!==null||uy!==null)&&(N0e(),A0e())}}function Kx(e,t){var n=e.stateNode;if(n===null)return null;var r=Zk(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(dn(231,t,typeof n));return n}var FF=!1;if(eh)try{var vE={};Object.defineProperty(vE,"passive",{get:function(){FF=!0}}),window.addEventListener("test",vE,vE),window.removeEventListener("test",vE,vE)}catch{FF=!1}function u6e(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 WC=!1,RN=null,AN=!1,BF=null,d6e={onError:function(e){WC=!0,RN=e}};function f6e(e,t,n,r,i,o,a,s,l){WC=!1,RN=null,u6e.apply(d6e,arguments)}function p6e(e,t,n,r,i,o,a,s,l){if(f6e.apply(this,arguments),WC){if(WC){var c=RN;WC=!1,RN=null}else throw Error(dn(198));AN||(AN=!0,BF=c)}}function lv(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function k0e(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 IJ(e){if(lv(e)!==e)throw Error(dn(188))}function h6e(e){var t=e.alternate;if(!t){if(t=lv(e),t===null)throw Error(dn(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 IJ(i),e;if(o===r)return IJ(i),t;o=o.sibling}throw Error(dn(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(dn(189))}}if(n.alternate!==r)throw Error(dn(190))}if(n.tag!==3)throw Error(dn(188));return n.stateNode.current===n?e:t}function P0e(e){return e=h6e(e),e!==null?D0e(e):null}function D0e(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=D0e(e);if(t!==null)return t;e=e.sibling}return null}var L0e=Sc.unstable_scheduleCallback,NJ=Sc.unstable_cancelCallback,m6e=Sc.unstable_shouldYield,g6e=Sc.unstable_requestPaint,na=Sc.unstable_now,v6e=Sc.unstable_getCurrentPriorityLevel,KG=Sc.unstable_ImmediatePriority,$0e=Sc.unstable_UserBlockingPriority,IN=Sc.unstable_NormalPriority,b6e=Sc.unstable_LowPriority,F0e=Sc.unstable_IdlePriority,Yk=null,Rf=null;function y6e(e){if(Rf&&typeof Rf.onCommitFiberRoot=="function")try{Rf.onCommitFiberRoot(Yk,e,void 0,(e.current.flags&128)===128)}catch{}}var ld=Math.clz32?Math.clz32:E6e,_6e=Math.log,S6e=Math.LN2;function E6e(e){return e>>>=0,e===0?32:31-(_6e(e)/S6e|0)|0}var VO=64,GO=4194304;function bC(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 NN(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=bC(s):(o&=a,o!==0&&(r=bC(o)))}else a=n&~i,a!==0?r=bC(a):o!==0&&(r=bC(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 C6e(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 x6e(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]=C6e(s,t)):l<=t&&(e.expiredLanes|=s),o&=~s}}function HF(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function B0e(){var e=VO;return VO<<=1,!(VO&4194240)&&(VO=64),e}function u9(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function LT(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 w6e(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 QG(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 H0e(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var j0e,XG,U0e,z0e,V0e,jF=!1,WO=[],Vm=null,Gm=null,Wm=null,Qx=new Map,Xx=new Map,hm=[],T6e="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 MJ(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":Qx.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Xx.delete(t.pointerId)}}function bE(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=FT(t),t!==null&&XG(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function O6e(e,t,n,r,i){switch(t){case"focusin":return Vm=bE(Vm,e,t,n,r,i),!0;case"dragenter":return Gm=bE(Gm,e,t,n,r,i),!0;case"mouseover":return Wm=bE(Wm,e,t,n,r,i),!0;case"pointerover":var o=i.pointerId;return Qx.set(o,bE(Qx.get(o)||null,e,t,n,r,i)),!0;case"gotpointercapture":return o=i.pointerId,Xx.set(o,bE(Xx.get(o)||null,e,t,n,r,i)),!0}return!1}function G0e(e){var t=A0(e.target);if(t!==null){var n=lv(t);if(n!==null){if(t=n.tag,t===13){if(t=k0e(n),t!==null){e.blockedOn=t,V0e(e.priority,function(){U0e(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 ZA(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=UF(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);LF=r,n.target.dispatchEvent(r),LF=null}else return t=FT(n),t!==null&&XG(t),e.blockedOn=n,!1;t.shift()}return!0}function kJ(e,t,n){ZA(e)&&n.delete(t)}function R6e(){jF=!1,Vm!==null&&ZA(Vm)&&(Vm=null),Gm!==null&&ZA(Gm)&&(Gm=null),Wm!==null&&ZA(Wm)&&(Wm=null),Qx.forEach(kJ),Xx.forEach(kJ)}function yE(e,t){e.blockedOn===t&&(e.blockedOn=null,jF||(jF=!0,Sc.unstable_scheduleCallback(Sc.unstable_NormalPriority,R6e)))}function Zx(e){function t(i){return yE(i,e)}if(0<WO.length){yE(WO[0],e);for(var n=1;n<WO.length;n++){var r=WO[n];r.blockedOn===e&&(r.blockedOn=null)}}for(Vm!==null&&yE(Vm,e),Gm!==null&&yE(Gm,e),Wm!==null&&yE(Wm,e),Qx.forEach(t),Xx.forEach(t),n=0;n<hm.length;n++)r=hm[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<hm.length&&(n=hm[0],n.blockedOn===null);)G0e(n),n.blockedOn===null&&hm.shift()}var dy=mh.ReactCurrentBatchConfig,MN=!0;function A6e(e,t,n,r){var i=wi,o=dy.transition;dy.transition=null;try{wi=1,ZG(e,t,n,r)}finally{wi=i,dy.transition=o}}function I6e(e,t,n,r){var i=wi,o=dy.transition;dy.transition=null;try{wi=4,ZG(e,t,n,r)}finally{wi=i,dy.transition=o}}function ZG(e,t,n,r){if(MN){var i=UF(e,t,n,r);if(i===null)_9(e,t,r,kN,n),MJ(e,r);else if(O6e(i,e,t,n,r))r.stopPropagation();else if(MJ(e,r),t&4&&-1<T6e.indexOf(e)){for(;i!==null;){var o=FT(i);if(o!==null&&j0e(o),o=UF(e,t,n,r),o===null&&_9(e,t,r,kN,n),o===i)break;i=o}i!==null&&r.stopPropagation()}else _9(e,t,r,null,n)}}var kN=null;function UF(e,t,n,r){if(kN=null,e=YG(r),e=A0(e),e!==null)if(t=lv(e),t===null)e=null;else if(n=t.tag,n===13){if(e=k0e(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 kN=e,null}function W0e(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(v6e()){case KG:return 1;case $0e:return 4;case IN:case b6e:return 16;case F0e:return 536870912;default:return 16}default:return 16}}var wm=null,JG=null,JA=null;function q0e(){if(JA)return JA;var e,t=JG,n=t.length,r,i="value"in wm?wm.value:wm.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 JA=i.slice(e,1<r?1-r:void 0)}function eI(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 qO(){return!0}function PJ(){return!1}function Rc(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)?qO:PJ,this.isPropagationStopped=PJ,this}return Po(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=qO)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=qO)},persist:function(){},isPersistent:qO}),t}var tS={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},eW=Rc(tS),$T=Po({},tS,{view:0,detail:0}),N6e=Rc($T),d9,f9,_E,Kk=Po({},$T,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:tW,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!==_E&&(_E&&e.type==="mousemove"?(d9=e.screenX-_E.screenX,f9=e.screenY-_E.screenY):f9=d9=0,_E=e),d9)},movementY:function(e){return"movementY"in e?e.movementY:f9}}),DJ=Rc(Kk),M6e=Po({},Kk,{dataTransfer:0}),k6e=Rc(M6e),P6e=Po({},$T,{relatedTarget:0}),p9=Rc(P6e),D6e=Po({},tS,{animationName:0,elapsedTime:0,pseudoElement:0}),L6e=Rc(D6e),$6e=Po({},tS,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),F6e=Rc($6e),B6e=Po({},tS,{data:0}),LJ=Rc(B6e),H6e={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},j6e={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"},U6e={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function z6e(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=U6e[e])?!!t[e]:!1}function tW(){return z6e}var V6e=Po({},$T,{key:function(e){if(e.key){var t=H6e[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=eI(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?j6e[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:tW,charCode:function(e){return e.type==="keypress"?eI(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?eI(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),G6e=Rc(V6e),W6e=Po({},Kk,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),$J=Rc(W6e),q6e=Po({},$T,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:tW}),Y6e=Rc(q6e),K6e=Po({},tS,{propertyName:0,elapsedTime:0,pseudoElement:0}),Q6e=Rc(K6e),X6e=Po({},Kk,{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}),Z6e=Rc(X6e),J6e=[9,13,27,32],nW=eh&&"CompositionEvent"in window,qC=null;eh&&"documentMode"in document&&(qC=document.documentMode);var eLe=eh&&"TextEvent"in window&&!qC,Y0e=eh&&(!nW||qC&&8<qC&&11>=qC),FJ=" ",BJ=!1;function K0e(e,t){switch(e){case"keyup":return J6e.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Q0e(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Ub=!1;function tLe(e,t){switch(e){case"compositionend":return Q0e(t);case"keypress":return t.which!==32?null:(BJ=!0,FJ);case"textInput":return e=t.data,e===FJ&&BJ?null:e;default:return null}}function nLe(e,t){if(Ub)return e==="compositionend"||!nW&&K0e(e,t)?(e=q0e(),JA=JG=wm=null,Ub=!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 Y0e&&t.locale!=="ko"?null:t.data;default:return null}}var rLe={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 HJ(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!rLe[e.type]:t==="textarea"}function X0e(e,t,n,r){R0e(r),t=PN(t,"onChange"),0<t.length&&(n=new eW("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var YC=null,Jx=null;function iLe(e){l1e(e,0)}function Qk(e){var t=Gb(e);if(S0e(t))return e}function oLe(e,t){if(e==="change")return t}var Z0e=!1;if(eh){var h9;if(eh){var m9="oninput"in document;if(!m9){var jJ=document.createElement("div");jJ.setAttribute("oninput","return;"),m9=typeof jJ.oninput=="function"}h9=m9}else h9=!1;Z0e=h9&&(!document.documentMode||9<document.documentMode)}function UJ(){YC&&(YC.detachEvent("onpropertychange",J0e),Jx=YC=null)}function J0e(e){if(e.propertyName==="value"&&Qk(Jx)){var t=[];X0e(t,Jx,e,YG(e)),M0e(iLe,t)}}function aLe(e,t,n){e==="focusin"?(UJ(),YC=t,Jx=n,YC.attachEvent("onpropertychange",J0e)):e==="focusout"&&UJ()}function sLe(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Qk(Jx)}function lLe(e,t){if(e==="click")return Qk(t)}function cLe(e,t){if(e==="input"||e==="change")return Qk(t)}function uLe(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var _d=typeof Object.is=="function"?Object.is:uLe;function ew(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(!xF.call(t,i)||!_d(e[i],t[i]))return!1}return!0}function zJ(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function VJ(e,t){var n=zJ(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=zJ(n)}}function e1e(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?e1e(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function t1e(){for(var e=window,t=ON();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=ON(e.document)}return t}function rW(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 dLe(e){var t=t1e(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&e1e(n.ownerDocument.documentElement,n)){if(r!==null&&rW(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=VJ(n,o);var a=VJ(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 fLe=eh&&"documentMode"in document&&11>=document.documentMode,zb=null,zF=null,KC=null,VF=!1;function GJ(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;VF||zb==null||zb!==ON(r)||(r=zb,"selectionStart"in r&&rW(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}),KC&&ew(KC,r)||(KC=r,r=PN(zF,"onSelect"),0<r.length&&(t=new eW("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=zb)))}function YO(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Vb={animationend:YO("Animation","AnimationEnd"),animationiteration:YO("Animation","AnimationIteration"),animationstart:YO("Animation","AnimationStart"),transitionend:YO("Transition","TransitionEnd")},g9={},n1e={};eh&&(n1e=document.createElement("div").style,"AnimationEvent"in window||(delete Vb.animationend.animation,delete Vb.animationiteration.animation,delete Vb.animationstart.animation),"TransitionEvent"in window||delete Vb.transitionend.transition);function Xk(e){if(g9[e])return g9[e];if(!Vb[e])return e;var t=Vb[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in n1e)return g9[e]=t[n];return e}var r1e=Xk("animationend"),i1e=Xk("animationiteration"),o1e=Xk("animationstart"),a1e=Xk("transitionend"),s1e=new Map,WJ="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 xg(e,t){s1e.set(e,t),sv(t,[e])}for(var v9=0;v9<WJ.length;v9++){var b9=WJ[v9],pLe=b9.toLowerCase(),hLe=b9[0].toUpperCase()+b9.slice(1);xg(pLe,"on"+hLe)}xg(r1e,"onAnimationEnd");xg(i1e,"onAnimationIteration");xg(o1e,"onAnimationStart");xg("dblclick","onDoubleClick");xg("focusin","onFocus");xg("focusout","onBlur");xg(a1e,"onTransitionEnd");Gy("onMouseEnter",["mouseout","mouseover"]);Gy("onMouseLeave",["mouseout","mouseover"]);Gy("onPointerEnter",["pointerout","pointerover"]);Gy("onPointerLeave",["pointerout","pointerover"]);sv("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));sv("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));sv("onBeforeInput",["compositionend","keypress","textInput","paste"]);sv("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));sv("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));sv("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var yC="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(" "),mLe=new Set("cancel close invalid load scroll toggle".split(" ").concat(yC));function qJ(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,p6e(r,t,void 0,e),e.currentTarget=null}function l1e(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;qJ(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;qJ(i,s,c),o=l}}}if(AN)throw e=BF,AN=!1,BF=null,e}function ro(e,t){var n=t[KF];n===void 0&&(n=t[KF]=new Set);var r=e+"__bubble";n.has(r)||(c1e(t,e,2,!1),n.add(r))}function y9(e,t,n){var r=0;t&&(r|=4),c1e(n,e,r,t)}var KO="_reactListening"+Math.random().toString(36).slice(2);function tw(e){if(!e[KO]){e[KO]=!0,g0e.forEach(function(n){n!=="selectionchange"&&(mLe.has(n)||y9(n,!1,e),y9(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[KO]||(t[KO]=!0,y9("selectionchange",!1,t))}}function c1e(e,t,n,r){switch(W0e(t)){case 1:var i=A6e;break;case 4:i=I6e;break;default:i=ZG}n=i.bind(null,t,n,e),i=void 0,!FF||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 _9(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=A0(s),a===null)return;if(l=a.tag,l===5||l===6){r=o=a;continue e}s=s.parentNode}}r=r.return}M0e(function(){var c=o,u=YG(n),d=[];e:{var f=s1e.get(e);if(f!==void 0){var p=eW,m=e;switch(e){case"keypress":if(eI(n)===0)break e;case"keydown":case"keyup":p=G6e;break;case"focusin":m="focus",p=p9;break;case"focusout":m="blur",p=p9;break;case"beforeblur":case"afterblur":p=p9;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":p=DJ;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":p=k6e;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":p=Y6e;break;case r1e:case i1e:case o1e:p=L6e;break;case a1e:p=Q6e;break;case"scroll":p=N6e;break;case"wheel":p=Z6e;break;case"copy":case"cut":case"paste":p=F6e;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":p=$J}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 S=_.stateNode;if(_.tag===5&&S!==null&&(_=S,y!==null&&(S=Kx(b,y),S!=null&&g.push(nw(b,S,_)))),v)break;b=b.return}0<g.length&&(f=new p(f,m,null,n,u),d.push({event:f,listeners:g}))}}if(!(t&7)){e:{if(f=e==="mouseover"||e==="pointerover",p=e==="mouseout"||e==="pointerout",f&&n!==LF&&(m=n.relatedTarget||n.fromElement)&&(A0(m)||m[th]))break e;if((p||f)&&(f=u.window===u?u:(f=u.ownerDocument)?f.defaultView||f.parentWindow:window,p?(m=n.relatedTarget||n.toElement,p=c,m=m?A0(m):null,m!==null&&(v=lv(m),m!==v||m.tag!==5&&m.tag!==6)&&(m=null)):(p=null,m=c),p!==m)){if(g=DJ,S="onMouseLeave",y="onMouseEnter",b="mouse",(e==="pointerout"||e==="pointerover")&&(g=$J,S="onPointerLeave",y="onPointerEnter",b="pointer"),v=p==null?f:Gb(p),_=m==null?f:Gb(m),f=new g(S,b+"leave",p,n,u),f.target=v,f.relatedTarget=_,S=null,A0(u)===c&&(g=new g(y,b+"enter",m,n,u),g.target=_,g.relatedTarget=v,S=g),v=S,p&&m)t:{for(g=p,y=m,b=0,_=g;_;_=Yv(_))b++;for(_=0,S=y;S;S=Yv(S))_++;for(;0<b-_;)g=Yv(g),b--;for(;0<_-b;)y=Yv(y),_--;for(;b--;){if(g===y||y!==null&&g===y.alternate)break t;g=Yv(g),y=Yv(y)}g=null}else g=null;p!==null&&YJ(d,f,p,g,!1),m!==null&&v!==null&&YJ(d,v,m,g,!0)}}e:{if(f=c?Gb(c):window,p=f.nodeName&&f.nodeName.toLowerCase(),p==="select"||p==="input"&&f.type==="file")var x=oLe;else if(HJ(f))if(Z0e)x=cLe;else{x=sLe;var E=aLe}else(p=f.nodeName)&&p.toLowerCase()==="input"&&(f.type==="checkbox"||f.type==="radio")&&(x=lLe);if(x&&(x=x(e,c))){X0e(d,x,n,u);break e}E&&E(e,f,c),e==="focusout"&&(E=f._wrapperState)&&E.controlled&&f.type==="number"&&NF(f,"number",f.value)}switch(E=c?Gb(c):window,e){case"focusin":(HJ(E)||E.contentEditable==="true")&&(zb=E,zF=c,KC=null);break;case"focusout":KC=zF=zb=null;break;case"mousedown":VF=!0;break;case"contextmenu":case"mouseup":case"dragend":VF=!1,GJ(d,n,u);break;case"selectionchange":if(fLe)break;case"keydown":case"keyup":GJ(d,n,u)}var C;if(nW)e:{switch(e){case"compositionstart":var w="onCompositionStart";break e;case"compositionend":w="onCompositionEnd";break e;case"compositionupdate":w="onCompositionUpdate";break e}w=void 0}else Ub?K0e(e,n)&&(w="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(w="onCompositionStart");w&&(Y0e&&n.locale!=="ko"&&(Ub||w!=="onCompositionStart"?w==="onCompositionEnd"&&Ub&&(C=q0e()):(wm=u,JG="value"in wm?wm.value:wm.textContent,Ub=!0)),E=PN(c,w),0<E.length&&(w=new LJ(w,e,null,n,u),d.push({event:w,listeners:E}),C?w.data=C:(C=Q0e(n),C!==null&&(w.data=C)))),(C=eLe?tLe(e,n):nLe(e,n))&&(c=PN(c,"onBeforeInput"),0<c.length&&(u=new LJ("onBeforeInput","beforeinput",null,n,u),d.push({event:u,listeners:c}),u.data=C))}l1e(d,t)})}function nw(e,t,n){return{instance:e,listener:t,currentTarget:n}}function PN(e,t){for(var n=t+"Capture",r=[];e!==null;){var i=e,o=i.stateNode;i.tag===5&&o!==null&&(i=o,o=Kx(e,n),o!=null&&r.unshift(nw(e,o,i)),o=Kx(e,t),o!=null&&r.push(nw(e,o,i))),e=e.return}return r}function Yv(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function YJ(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=Kx(n,o),l!=null&&a.unshift(nw(n,l,s))):i||(l=Kx(n,o),l!=null&&a.push(nw(n,l,s)))),n=n.return}a.length!==0&&e.push({event:t,listeners:a})}var gLe=/\r\n?/g,vLe=/\u0000|\uFFFD/g;function KJ(e){return(typeof e=="string"?e:""+e).replace(gLe,`
`).replace(vLe,"")}function QO(e,t,n){if(t=KJ(t),KJ(e)!==t&&n)throw Error(dn(425))}function DN(){}var GF=null,WF=null;function qF(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 YF=typeof setTimeout=="function"?setTimeout:void 0,bLe=typeof clearTimeout=="function"?clearTimeout:void 0,QJ=typeof Promise=="function"?Promise:void 0,yLe=typeof queueMicrotask=="function"?queueMicrotask:typeof QJ<"u"?function(e){return QJ.resolve(null).then(e).catch(_Le)}:YF;function _Le(e){setTimeout(function(){throw e})}function S9(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),Zx(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=i}while(n);Zx(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 XJ(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),gf="__reactFiber$"+nS,rw="__reactProps$"+nS,th="__reactContainer$"+nS,KF="__reactEvents$"+nS,SLe="__reactListeners$"+nS,ELe="__reactHandles$"+nS;function A0(e){var t=e[gf];if(t)return t;for(var n=e.parentNode;n;){if(t=n[th]||n[gf]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=XJ(e);e!==null;){if(n=e[gf])return n;e=XJ(e)}return t}e=n,n=e.parentNode}return null}function FT(e){return e=e[gf]||e[th],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Gb(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(dn(33))}function Zk(e){return e[rw]||null}var QF=[],Wb=-1;function wg(e){return{current:e}}function uo(e){0>Wb||(e.current=QF[Wb],QF[Wb]=null,Wb--)}function Xi(e,t){Wb++,QF[Wb]=e.current,e.current=t}var dg={},ks=wg(dg),Al=wg(!1),O1=dg;function Wy(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 Il(e){return e=e.childContextTypes,e!=null}function LN(){uo(Al),uo(ks)}function ZJ(e,t,n){if(ks.current!==dg)throw Error(dn(168));Xi(ks,t),Xi(Al,n)}function u1e(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(dn(108,a6e(e)||"Unknown",i));return Po({},n,r)}function $N(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||dg,O1=ks.current,Xi(ks,e),Xi(Al,Al.current),!0}function JJ(e,t,n){var r=e.stateNode;if(!r)throw Error(dn(169));n?(e=u1e(e,t,O1),r.__reactInternalMemoizedMergedChildContext=e,uo(Al),uo(ks),Xi(ks,e)):uo(Al),Xi(Al,n)}var Pp=null,Jk=!1,E9=!1;function d1e(e){Pp===null?Pp=[e]:Pp.push(e)}function CLe(e){Jk=!0,d1e(e)}function Tg(){if(!E9&&Pp!==null){E9=!0;var e=0,t=wi;try{var n=Pp;for(wi=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}Pp=null,Jk=!1}catch(i){throw Pp!==null&&(Pp=Pp.slice(e+1)),L0e(KG,Tg),i}finally{wi=t,E9=!1}}return null}var qb=[],Yb=0,FN=null,BN=0,Xc=[],Zc=0,R1=null,Bp=1,Hp="";function p0(e,t){qb[Yb++]=BN,qb[Yb++]=FN,FN=e,BN=t}function f1e(e,t,n){Xc[Zc++]=Bp,Xc[Zc++]=Hp,Xc[Zc++]=R1,R1=e;var r=Bp;e=Hp;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,Bp=1<<32-ld(t)+i|n<<i|r,Hp=o+e}else Bp=1<<o|n<<i|r,Hp=e}function iW(e){e.return!==null&&(p0(e,1),f1e(e,1,0))}function oW(e){for(;e===FN;)FN=qb[--Yb],qb[Yb]=null,BN=qb[--Yb],qb[Yb]=null;for(;e===R1;)R1=Xc[--Zc],Xc[Zc]=null,Hp=Xc[--Zc],Xc[Zc]=null,Bp=Xc[--Zc],Xc[Zc]=null}var bc=null,hc=null,Eo=!1,Zu=null;function p1e(e,t){var n=iu(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 eee(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,bc=e,hc=qm(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,bc=e,hc=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=R1!==null?{id:Bp,overflow:Hp}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=iu(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,bc=e,hc=null,!0):!1;default:return!1}}function XF(e){return(e.mode&1)!==0&&(e.flags&128)===0}function ZF(e){if(Eo){var t=hc;if(t){var n=t;if(!eee(e,t)){if(XF(e))throw Error(dn(418));t=qm(n.nextSibling);var r=bc;t&&eee(e,t)?p1e(r,n):(e.flags=e.flags&-4097|2,Eo=!1,bc=e)}}else{if(XF(e))throw Error(dn(418));e.flags=e.flags&-4097|2,Eo=!1,bc=e}}}function tee(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;bc=e}function XO(e){if(e!==bc)return!1;if(!Eo)return tee(e),Eo=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!qF(e.type,e.memoizedProps)),t&&(t=hc)){if(XF(e))throw h1e(),Error(dn(418));for(;t;)p1e(e,t),t=qm(t.nextSibling)}if(tee(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(dn(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){hc=qm(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}hc=null}}else hc=bc?qm(e.stateNode.nextSibling):null;return!0}function h1e(){for(var e=hc;e;)e=qm(e.nextSibling)}function qy(){hc=bc=null,Eo=!1}function aW(e){Zu===null?Zu=[e]:Zu.push(e)}var xLe=mh.ReactCurrentBatchConfig;function SE(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(dn(309));var r=n.stateNode}if(!r)throw Error(dn(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(dn(284));if(!n._owner)throw Error(dn(290,e))}return e}function ZO(e,t){throw e=Object.prototype.toString.call(t),Error(dn(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function nee(e){var t=e._init;return t(e._payload)}function m1e(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,_,S){return b===null||b.tag!==6?(b=A9(_,y.mode,S),b.return=y,b):(b=i(b,_),b.return=y,b)}function l(y,b,_,S){var x=_.type;return x===jb?u(y,b,_.props.children,S,_.key):b!==null&&(b.elementType===x||typeof x=="object"&&x!==null&&x.$$typeof===am&&nee(x)===b.type)?(S=i(b,_.props),S.ref=SE(y,b,_),S.return=y,S):(S=sI(_.type,_.key,_.props,null,y.mode,S),S.ref=SE(y,b,_),S.return=y,S)}function c(y,b,_,S){return b===null||b.tag!==4||b.stateNode.containerInfo!==_.containerInfo||b.stateNode.implementation!==_.implementation?(b=I9(_,y.mode,S),b.return=y,b):(b=i(b,_.children||[]),b.return=y,b)}function u(y,b,_,S,x){return b===null||b.tag!==7?(b=r1(_,y.mode,S,x),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=A9(""+b,y.mode,_),b.return=y,b;if(typeof b=="object"&&b!==null){switch(b.$$typeof){case jO:return _=sI(b.type,b.key,b.props,null,y.mode,_),_.ref=SE(y,null,b),_.return=y,_;case Hb:return b=I9(b,y.mode,_),b.return=y,b;case am:var S=b._init;return d(y,S(b._payload),_)}if(vC(b)||gE(b))return b=r1(b,y.mode,_,null),b.return=y,b;ZO(y,b)}return null}function f(y,b,_,S){var x=b!==null?b.key:null;if(typeof _=="string"&&_!==""||typeof _=="number")return x!==null?null:s(y,b,""+_,S);if(typeof _=="object"&&_!==null){switch(_.$$typeof){case jO:return _.key===x?l(y,b,_,S):null;case Hb:return _.key===x?c(y,b,_,S):null;case am:return x=_._init,f(y,b,x(_._payload),S)}if(vC(_)||gE(_))return x!==null?null:u(y,b,_,S,null);ZO(y,_)}return null}function p(y,b,_,S,x){if(typeof S=="string"&&S!==""||typeof S=="number")return y=y.get(_)||null,s(b,y,""+S,x);if(typeof S=="object"&&S!==null){switch(S.$$typeof){case jO:return y=y.get(S.key===null?_:S.key)||null,l(b,y,S,x);case Hb:return y=y.get(S.key===null?_:S.key)||null,c(b,y,S,x);case am:var E=S._init;return p(y,b,_,E(S._payload),x)}if(vC(S)||gE(S))return y=y.get(_)||null,u(b,y,S,x,null);ZO(b,S)}return null}function m(y,b,_,S){for(var x=null,E=null,C=b,w=b=0,O=null;C!==null&&w<_.length;w++){C.index>w?(O=C,C=null):O=C.sibling;var T=f(y,C,_[w],S);if(T===null){C===null&&(C=O);break}e&&C&&T.alternate===null&&t(y,C),b=o(T,b,w),E===null?x=T:E.sibling=T,E=T,C=O}if(w===_.length)return n(y,C),Eo&&p0(y,w),x;if(C===null){for(;w<_.length;w++)C=d(y,_[w],S),C!==null&&(b=o(C,b,w),E===null?x=C:E.sibling=C,E=C);return Eo&&p0(y,w),x}for(C=r(y,C);w<_.length;w++)O=p(C,y,w,_[w],S),O!==null&&(e&&O.alternate!==null&&C.delete(O.key===null?w:O.key),b=o(O,b,w),E===null?x=O:E.sibling=O,E=O);return e&&C.forEach(function(A){return t(y,A)}),Eo&&p0(y,w),x}function g(y,b,_,S){var x=gE(_);if(typeof x!="function")throw Error(dn(150));if(_=x.call(_),_==null)throw Error(dn(151));for(var E=x=null,C=b,w=b=0,O=null,T=_.next();C!==null&&!T.done;w++,T=_.next()){C.index>w?(O=C,C=null):O=C.sibling;var A=f(y,C,T.value,S);if(A===null){C===null&&(C=O);break}e&&C&&A.alternate===null&&t(y,C),b=o(A,b,w),E===null?x=A:E.sibling=A,E=A,C=O}if(T.done)return n(y,C),Eo&&p0(y,w),x;if(C===null){for(;!T.done;w++,T=_.next())T=d(y,T.value,S),T!==null&&(b=o(T,b,w),E===null?x=T:E.sibling=T,E=T);return Eo&&p0(y,w),x}for(C=r(y,C);!T.done;w++,T=_.next())T=p(C,y,w,T.value,S),T!==null&&(e&&T.alternate!==null&&C.delete(T.key===null?w:T.key),b=o(T,b,w),E===null?x=T:E.sibling=T,E=T);return e&&C.forEach(function(I){return t(y,I)}),Eo&&p0(y,w),x}function v(y,b,_,S){if(typeof _=="object"&&_!==null&&_.type===jb&&_.key===null&&(_=_.props.children),typeof _=="object"&&_!==null){switch(_.$$typeof){case jO:e:{for(var x=_.key,E=b;E!==null;){if(E.key===x){if(x=_.type,x===jb){if(E.tag===7){n(y,E.sibling),b=i(E,_.props.children),b.return=y,y=b;break e}}else if(E.elementType===x||typeof x=="object"&&x!==null&&x.$$typeof===am&&nee(x)===E.type){n(y,E.sibling),b=i(E,_.props),b.ref=SE(y,E,_),b.return=y,y=b;break e}n(y,E);break}else t(y,E);E=E.sibling}_.type===jb?(b=r1(_.props.children,y.mode,S,_.key),b.return=y,y=b):(S=sI(_.type,_.key,_.props,null,y.mode,S),S.ref=SE(y,b,_),S.return=y,y=S)}return a(y);case Hb:e:{for(E=_.key;b!==null;){if(b.key===E)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=I9(_,y.mode,S),b.return=y,y=b}return a(y);case am:return E=_._init,v(y,b,E(_._payload),S)}if(vC(_))return m(y,b,_,S);if(gE(_))return g(y,b,_,S);ZO(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=A9(_,y.mode,S),b.return=y,y=b),a(y)):n(y,b)}return v}var Yy=m1e(!0),g1e=m1e(!1),HN=wg(null),jN=null,Kb=null,sW=null;function lW(){sW=Kb=jN=null}function cW(e){var t=HN.current;uo(HN),e._currentValue=t}function JF(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 fy(e,t){jN=e,sW=Kb=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Ol=!0),e.firstContext=null)}function fu(e){var t=e._currentValue;if(sW!==e)if(e={context:e,memoizedValue:t,next:null},Kb===null){if(jN===null)throw Error(dn(308));Kb=e,jN.dependencies={lanes:0,firstContext:e}}else Kb=Kb.next=e;return t}var I0=null;function uW(e){I0===null?I0=[e]:I0.push(e)}function v1e(e,t,n,r){var i=t.interleaved;return i===null?(n.next=n,uW(t)):(n.next=i.next,i.next=n),t.interleaved=n,nh(e,r)}function nh(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 sm=!1;function dW(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function b1e(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 qp(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,ci&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,nh(e,n)}return i=r.interleaved,i===null?(t.next=t,uW(r)):(t.next=i.next,i.next=t),r.interleaved=t,nh(e,n)}function tI(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,QG(e,n)}}function ree(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 UN(e,t,n,r){var i=e.updateQueue;sm=!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,p=s.eventTime;if((r&f)===f){u!==null&&(u=u.next={eventTime:p,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var m=e,g=s;switch(f=t,p=n,g.tag){case 1:if(m=g.payload,typeof m=="function"){d=m.call(p,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(p,d,f):m,f==null)break e;d=Po({},d,f);break e;case 2:sm=!0}}s.callback!==null&&s.lane!==0&&(e.flags|=64,f=i.effects,f===null?i.effects=[s]:f.push(s))}else p={eventTime:p,lane:f,tag:s.tag,payload:s.payload,callback:s.callback,next:null},u===null?(c=u=p,l=d):u=u.next=p,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);I1|=a,e.lanes=a,e.memoizedState=d}}function iee(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(dn(191,i));i.call(r)}}}var BT={},Af=wg(BT),iw=wg(BT),ow=wg(BT);function N0(e){if(e===BT)throw Error(dn(174));return e}function fW(e,t){switch(Xi(ow,t),Xi(iw,e),Xi(Af,BT),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:kF(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=kF(t,e)}uo(Af),Xi(Af,t)}function Ky(){uo(Af),uo(iw),uo(ow)}function y1e(e){N0(ow.current);var t=N0(Af.current),n=kF(t,e.type);t!==n&&(Xi(iw,e),Xi(Af,n))}function pW(e){iw.current===e&&(uo(Af),uo(iw))}var Ao=wg(0);function zN(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 C9=[];function hW(){for(var e=0;e<C9.length;e++)C9[e]._workInProgressVersionPrimary=null;C9.length=0}var nI=mh.ReactCurrentDispatcher,x9=mh.ReactCurrentBatchConfig,A1=0,Mo=null,Ea=null,La=null,VN=!1,QC=!1,aw=0,wLe=0;function ms(){throw Error(dn(321))}function mW(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 gW(e,t,n,r,i,o){if(A1=o,Mo=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,nI.current=e===null||e.memoizedState===null?ALe:ILe,e=n(r,i),QC){o=0;do{if(QC=!1,aw=0,25<=o)throw Error(dn(301));o+=1,La=Ea=null,t.updateQueue=null,nI.current=NLe,e=n(r,i)}while(QC)}if(nI.current=GN,t=Ea!==null&&Ea.next!==null,A1=0,La=Ea=Mo=null,VN=!1,t)throw Error(dn(300));return e}function vW(){var e=aw!==0;return aw=0,e}function nf(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return La===null?Mo.memoizedState=La=e:La=La.next=e,La}function pu(){if(Ea===null){var e=Mo.alternate;e=e!==null?e.memoizedState:null}else e=Ea.next;var t=La===null?Mo.memoizedState:La.next;if(t!==null)La=t,Ea=e;else{if(e===null)throw Error(dn(310));Ea=e,e={memoizedState:Ea.memoizedState,baseState:Ea.baseState,baseQueue:Ea.baseQueue,queue:Ea.queue,next:null},La===null?Mo.memoizedState=La=e:La=La.next=e}return La}function sw(e,t){return typeof t=="function"?t(e):t}function w9(e){var t=pu(),n=t.queue;if(n===null)throw Error(dn(311));n.lastRenderedReducer=e;var r=Ea,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((A1&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,Mo.lanes|=u,I1|=u}c=c.next}while(c!==null&&c!==o);l===null?a=r:l.next=s,_d(r,t.memoizedState)||(Ol=!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,Mo.lanes|=o,I1|=o,i=i.next;while(i!==e)}else i===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function T9(e){var t=pu(),n=t.queue;if(n===null)throw Error(dn(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)||(Ol=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function _1e(){}function S1e(e,t){var n=Mo,r=pu(),i=t(),o=!_d(r.memoizedState,i);if(o&&(r.memoizedState=i,Ol=!0),r=r.queue,bW(x1e.bind(null,n,r,e),[e]),r.getSnapshot!==t||o||La!==null&&La.memoizedState.tag&1){if(n.flags|=2048,lw(9,C1e.bind(null,n,r,i,t),void 0,null),Ha===null)throw Error(dn(349));A1&30||E1e(n,t,i)}return i}function E1e(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=Mo.updateQueue,t===null?(t={lastEffect:null,stores:null},Mo.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function C1e(e,t,n,r){t.value=n,t.getSnapshot=r,w1e(t)&&T1e(e)}function x1e(e,t,n){return n(function(){w1e(t)&&T1e(e)})}function w1e(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!_d(e,n)}catch{return!0}}function T1e(e){var t=nh(e,1);t!==null&&cd(t,e,1,-1)}function oee(e){var t=nf();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:sw,lastRenderedState:e},t.queue=e,e=e.dispatch=RLe.bind(null,Mo,e),[t.memoizedState,e]}function lw(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=Mo.updateQueue,t===null?(t={lastEffect:null,stores:null},Mo.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 O1e(){return pu().memoizedState}function rI(e,t,n,r){var i=nf();Mo.flags|=e,i.memoizedState=lw(1|t,n,void 0,r===void 0?null:r)}function e5(e,t,n,r){var i=pu();r=r===void 0?null:r;var o=void 0;if(Ea!==null){var a=Ea.memoizedState;if(o=a.destroy,r!==null&&mW(r,a.deps)){i.memoizedState=lw(t,n,o,r);return}}Mo.flags|=e,i.memoizedState=lw(1|t,n,o,r)}function aee(e,t){return rI(8390656,8,e,t)}function bW(e,t){return e5(2048,8,e,t)}function R1e(e,t){return e5(4,2,e,t)}function A1e(e,t){return e5(4,4,e,t)}function I1e(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 N1e(e,t,n){return n=n!=null?n.concat([e]):null,e5(4,4,I1e.bind(null,t,e),n)}function yW(){}function M1e(e,t){var n=pu();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&mW(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function k1e(e,t){var n=pu();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&mW(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function P1e(e,t,n){return A1&21?(_d(n,t)||(n=B0e(),Mo.lanes|=n,I1|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,Ol=!0),e.memoizedState=n)}function TLe(e,t){var n=wi;wi=n!==0&&4>n?n:4,e(!0);var r=x9.transition;x9.transition={};try{e(!1),t()}finally{wi=n,x9.transition=r}}function D1e(){return pu().memoizedState}function OLe(e,t,n){var r=Qm(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},L1e(e))$1e(t,n);else if(n=v1e(e,t,n,r),n!==null){var i=el();cd(n,e,r,i),F1e(n,t,r)}}function RLe(e,t,n){var r=Qm(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(L1e(e))$1e(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,uW(t)):(i.next=l.next,l.next=i),t.interleaved=i;return}}catch{}finally{}n=v1e(e,t,i,r),n!==null&&(i=el(),cd(n,e,r,i),F1e(n,t,r))}}function L1e(e){var t=e.alternate;return e===Mo||t!==null&&t===Mo}function $1e(e,t){QC=VN=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function F1e(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,QG(e,n)}}var GN={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},ALe={readContext:fu,useCallback:function(e,t){return nf().memoizedState=[e,t===void 0?null:t],e},useContext:fu,useEffect:aee,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,rI(4194308,4,I1e.bind(null,t,e),n)},useLayoutEffect:function(e,t){return rI(4194308,4,e,t)},useInsertionEffect:function(e,t){return rI(4,2,e,t)},useMemo:function(e,t){var n=nf();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=nf();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=OLe.bind(null,Mo,e),[r.memoizedState,e]},useRef:function(e){var t=nf();return e={current:e},t.memoizedState=e},useState:oee,useDebugValue:yW,useDeferredValue:function(e){return nf().memoizedState=e},useTransition:function(){var e=oee(!1),t=e[0];return e=TLe.bind(null,e[1]),nf().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Mo,i=nf();if(Eo){if(n===void 0)throw Error(dn(407));n=n()}else{if(n=t(),Ha===null)throw Error(dn(349));A1&30||E1e(r,t,n)}i.memoizedState=n;var o={value:n,getSnapshot:t};return i.queue=o,aee(x1e.bind(null,r,o,e),[e]),r.flags|=2048,lw(9,C1e.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=nf(),t=Ha.identifierPrefix;if(Eo){var n=Hp,r=Bp;n=(r&~(1<<32-ld(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=aw++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=wLe++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},ILe={readContext:fu,useCallback:M1e,useContext:fu,useEffect:bW,useImperativeHandle:N1e,useInsertionEffect:R1e,useLayoutEffect:A1e,useMemo:k1e,useReducer:w9,useRef:O1e,useState:function(){return w9(sw)},useDebugValue:yW,useDeferredValue:function(e){var t=pu();return P1e(t,Ea.memoizedState,e)},useTransition:function(){var e=w9(sw)[0],t=pu().memoizedState;return[e,t]},useMutableSource:_1e,useSyncExternalStore:S1e,useId:D1e,unstable_isNewReconciler:!1},NLe={readContext:fu,useCallback:M1e,useContext:fu,useEffect:bW,useImperativeHandle:N1e,useInsertionEffect:R1e,useLayoutEffect:A1e,useMemo:k1e,useReducer:T9,useRef:O1e,useState:function(){return T9(sw)},useDebugValue:yW,useDeferredValue:function(e){var t=pu();return Ea===null?t.memoizedState=e:P1e(t,Ea.memoizedState,e)},useTransition:function(){var e=T9(sw)[0],t=pu().memoizedState;return[e,t]},useMutableSource:_1e,useSyncExternalStore:S1e,useId:D1e,unstable_isNewReconciler:!1};function Gu(e,t){if(e&&e.defaultProps){t=Po({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function eB(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:Po({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var t5={isMounted:function(e){return(e=e._reactInternals)?lv(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=el(),i=Qm(e),o=qp(r,i);o.payload=t,n!=null&&(o.callback=n),t=Ym(e,o,i),t!==null&&(cd(t,e,i,r),tI(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=el(),i=Qm(e),o=qp(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),tI(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=el(),r=Qm(e),i=qp(n,r);i.tag=2,t!=null&&(i.callback=t),t=Ym(e,i,r),t!==null&&(cd(t,e,r,n),tI(t,e,r))}};function see(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?!ew(n,r)||!ew(i,o):!0}function B1e(e,t,n){var r=!1,i=dg,o=t.contextType;return typeof o=="object"&&o!==null?o=fu(o):(i=Il(t)?O1:ks.current,r=t.contextTypes,o=(r=r!=null)?Wy(e,i):dg),t=new t(n,o),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=t5,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=o),t}function lee(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&&t5.enqueueReplaceState(t,t.state,null)}function tB(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs={},dW(e);var o=t.contextType;typeof o=="object"&&o!==null?i.context=fu(o):(o=Il(t)?O1:ks.current,i.context=Wy(e,o)),i.state=e.memoizedState,o=t.getDerivedStateFromProps,typeof o=="function"&&(eB(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&&t5.enqueueReplaceState(i,i.state,null),UN(e,n,i,r),i.state=e.memoizedState),typeof i.componentDidMount=="function"&&(e.flags|=4194308)}function Qy(e,t){try{var n="",r=t;do n+=o6e(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 O9(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function nB(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var MLe=typeof WeakMap=="function"?WeakMap:Map;function H1e(e,t,n){n=qp(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){qN||(qN=!0,fB=r),nB(e,t)},n}function j1e(e,t,n){n=qp(-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(){nB(e,t)}}var o=e.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(n.callback=function(){nB(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 cee(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new MLe;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=WLe.bind(null,e,t,n),t.then(e,e))}function uee(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 dee(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=qp(-1,1),t.tag=2,Ym(n,t,1))),n.lanes|=1),e)}var kLe=mh.ReactCurrentOwner,Ol=!1;function Ws(e,t,n,r){t.child=e===null?g1e(t,null,n,r):Yy(t,e.child,n,r)}function fee(e,t,n,r,i){n=n.render;var o=t.ref;return fy(t,i),r=gW(e,t,n,r,o,i),n=vW(),e!==null&&!Ol?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,rh(e,t,i)):(Eo&&n&&iW(t),t.flags|=1,Ws(e,t,r,i),t.child)}function pee(e,t,n,r,i){if(e===null){var o=n.type;return typeof o=="function"&&!OW(o)&&o.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=o,U1e(e,t,o,r,i)):(e=sI(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:ew,n(a,r)&&e.ref===t.ref)return rh(e,t,i)}return t.flags|=1,e=Xm(o,r),e.ref=t.ref,e.return=t,t.child=e}function U1e(e,t,n,r,i){if(e!==null){var o=e.memoizedProps;if(ew(o,r)&&e.ref===t.ref)if(Ol=!1,t.pendingProps=r=o,(e.lanes&i)!==0)e.flags&131072&&(Ol=!0);else return t.lanes=e.lanes,rh(e,t,i)}return rB(e,t,n,r,i)}function z1e(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},Xi(Xb,lc),lc|=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,Xi(Xb,lc),lc|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=o!==null?o.baseLanes:n,Xi(Xb,lc),lc|=r}else o!==null?(r=o.baseLanes|n,t.memoizedState=null):r=n,Xi(Xb,lc),lc|=r;return Ws(e,t,i,n),t.child}function V1e(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function rB(e,t,n,r,i){var o=Il(n)?O1:ks.current;return o=Wy(t,o),fy(t,i),n=gW(e,t,n,r,o,i),r=vW(),e!==null&&!Ol?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,rh(e,t,i)):(Eo&&r&&iW(t),t.flags|=1,Ws(e,t,n,i),t.child)}function hee(e,t,n,r,i){if(Il(n)){var o=!0;$N(t)}else o=!1;if(fy(t,i),t.stateNode===null)iI(e,t),B1e(t,n,r),tB(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=Il(n)?O1:ks.current,c=Wy(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)&&lee(t,a,r,c),sm=!1;var f=t.memoizedState;a.state=f,UN(t,r,a,i),l=t.memoizedState,s!==r||f!==l||Al.current||sm?(typeof u=="function"&&(eB(t,n,u,r),l=t.memoizedState),(s=sm||see(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,b1e(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=Il(n)?O1:ks.current,l=Wy(t,l));var p=n.getDerivedStateFromProps;(u=typeof p=="function"||typeof a.getSnapshotBeforeUpdate=="function")||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(s!==d||f!==l)&&lee(t,a,r,l),sm=!1,f=t.memoizedState,a.state=f,UN(t,r,a,i);var m=t.memoizedState;s!==d||f!==m||Al.current||sm?(typeof p=="function"&&(eB(t,n,p,r),m=t.memoizedState),(c=sm||see(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 iB(e,t,n,r,o,i)}function iB(e,t,n,r,i,o){V1e(e,t);var a=(t.flags&128)!==0;if(!r&&!a)return i&&JJ(t,n,!1),rh(e,t,o);r=t.stateNode,kLe.current=t;var s=a&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&a?(t.child=Yy(t,e.child,null,o),t.child=Yy(t,null,s,o)):Ws(e,t,s,o),t.memoizedState=r.state,i&&JJ(t,n,!0),t.child}function G1e(e){var t=e.stateNode;t.pendingContext?ZJ(e,t.pendingContext,t.pendingContext!==t.context):t.context&&ZJ(e,t.context,!1),fW(e,t.containerInfo)}function mee(e,t,n,r,i){return qy(),aW(i),t.flags|=256,Ws(e,t,n,r),t.child}var oB={dehydrated:null,treeContext:null,retryLane:0};function aB(e){return{baseLanes:e,cachePool:null,transitions:null}}function W1e(e,t,n){var r=t.pendingProps,i=Ao.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),Xi(Ao,i&1),e===null)return ZF(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=i5(a,r,0,null),e=r1(e,r,n,null),o.return=t,e.return=t,o.sibling=e,t.child=o,t.child.memoizedState=aB(n),t.memoizedState=oB,e):_W(t,a));if(i=e.memoizedState,i!==null&&(s=i.dehydrated,s!==null))return PLe(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=r1(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?aB(n):{baseLanes:a.baseLanes|n,cachePool:null,transitions:a.transitions},o.memoizedState=a,o.childLanes=e.childLanes&~n,t.memoizedState=oB,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 _W(e,t){return t=i5({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function JO(e,t,n,r){return r!==null&&aW(r),Yy(t,e.child,null,n),e=_W(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function PLe(e,t,n,r,i,o,a){if(n)return t.flags&256?(t.flags&=-257,r=O9(Error(dn(422))),JO(e,t,a,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(o=r.fallback,i=t.mode,r=i5({mode:"visible",children:r.children},i,0,null),o=r1(o,i,a,null),o.flags|=2,r.return=t,o.return=t,r.sibling=o,t.child=r,t.mode&1&&Yy(t,e.child,null,a),t.child.memoizedState=aB(a),t.memoizedState=oB,o);if(!(t.mode&1))return JO(e,t,a,null);if(i.data==="$!"){if(r=i.nextSibling&&i.nextSibling.dataset,r)var s=r.dgst;return r=s,o=Error(dn(419)),r=O9(o,r,void 0),JO(e,t,a,r)}if(s=(a&e.childLanes)!==0,Ol||s){if(r=Ha,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,nh(e,i),cd(r,e,i,-1))}return TW(),r=O9(Error(dn(421))),JO(e,t,a,r)}return i.data==="$?"?(t.flags|=128,t.child=e.child,t=qLe.bind(null,e),i._reactRetry=t,null):(e=o.treeContext,hc=qm(i.nextSibling),bc=t,Eo=!0,Zu=null,e!==null&&(Xc[Zc++]=Bp,Xc[Zc++]=Hp,Xc[Zc++]=R1,Bp=e.id,Hp=e.overflow,R1=t),t=_W(t,r.children),t.flags|=4096,t)}function gee(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),JF(e.return,t,n)}function R9(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 q1e(e,t,n){var r=t.pendingProps,i=r.revealOrder,o=r.tail;if(Ws(e,t,r.children,n),r=Ao.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&&gee(e,n,t);else if(e.tag===19)gee(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(Xi(Ao,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&&zN(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),R9(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&&zN(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}R9(t,!0,n,null,o);break;case"together":R9(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function iI(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function rh(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),I1|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(dn(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 DLe(e,t,n){switch(t.tag){case 3:G1e(t),qy();break;case 5:y1e(t);break;case 1:Il(t.type)&&$N(t);break;case 4:fW(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;Xi(HN,r._currentValue),r._currentValue=i;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(Xi(Ao,Ao.current&1),t.flags|=128,null):n&t.child.childLanes?W1e(e,t,n):(Xi(Ao,Ao.current&1),e=rh(e,t,n),e!==null?e.sibling:null);Xi(Ao,Ao.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return q1e(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),Xi(Ao,Ao.current),r)break;return null;case 22:case 23:return t.lanes=0,z1e(e,t,n)}return rh(e,t,n)}var Y1e,sB,K1e,Q1e;Y1e=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}};sB=function(){};K1e=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,N0(Af.current);var o=null;switch(n){case"input":i=AF(e,i),r=AF(e,r),o=[];break;case"select":i=Po({},i,{value:void 0}),r=Po({},r,{value:void 0}),o=[];break;case"textarea":i=MF(e,i),r=MF(e,r),o=[];break;default:typeof i.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=DN)}PF(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"&&(qx.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"&&(qx.hasOwnProperty(c)?(l!=null&&c==="onScroll"&&ro("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)}};Q1e=function(e,t,n,r){n!==r&&(t.flags|=4)};function EE(e,t){if(!Eo)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 LLe(e,t,n){var r=t.pendingProps;switch(oW(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 Il(t.type)&&LN(),gs(t),null;case 3:return r=t.stateNode,Ky(),uo(Al),uo(ks),hW(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(XO(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Zu!==null&&(mB(Zu),Zu=null))),sB(e,t),gs(t),null;case 5:pW(t);var i=N0(ow.current);if(n=t.type,e!==null&&t.stateNode!=null)K1e(e,t,n,r,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(dn(166));return gs(t),null}if(e=N0(Af.current),XO(t)){r=t.stateNode,n=t.type;var o=t.memoizedProps;switch(r[gf]=t,r[rw]=o,e=(t.mode&1)!==0,n){case"dialog":ro("cancel",r),ro("close",r);break;case"iframe":case"object":case"embed":ro("load",r);break;case"video":case"audio":for(i=0;i<yC.length;i++)ro(yC[i],r);break;case"source":ro("error",r);break;case"img":case"image":case"link":ro("error",r),ro("load",r);break;case"details":ro("toggle",r);break;case"input":wJ(r,o),ro("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!o.multiple},ro("invalid",r);break;case"textarea":OJ(r,o),ro("invalid",r)}PF(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&&QO(r.textContent,s,e),i=["children",s]):typeof s=="number"&&r.textContent!==""+s&&(o.suppressHydrationWarning!==!0&&QO(r.textContent,s,e),i=["children",""+s]):qx.hasOwnProperty(a)&&s!=null&&a==="onScroll"&&ro("scroll",r)}switch(n){case"input":UO(r),TJ(r,o,!0);break;case"textarea":UO(r),RJ(r);break;case"select":case"option":break;default:typeof o.onClick=="function"&&(r.onclick=DN)}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=x0e(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[gf]=t,e[rw]=r,Y1e(e,t,!1,!1),t.stateNode=e;e:{switch(a=DF(n,r),n){case"dialog":ro("cancel",e),ro("close",e),i=r;break;case"iframe":case"object":case"embed":ro("load",e),i=r;break;case"video":case"audio":for(i=0;i<yC.length;i++)ro(yC[i],e);i=r;break;case"source":ro("error",e),i=r;break;case"img":case"image":case"link":ro("error",e),ro("load",e),i=r;break;case"details":ro("toggle",e),i=r;break;case"input":wJ(e,r),i=AF(e,r),ro("invalid",e);break;case"option":i=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},i=Po({},r,{value:void 0}),ro("invalid",e);break;case"textarea":OJ(e,r),i=MF(e,r),ro("invalid",e);break;default:i=r}PF(n,i),s=i;for(o in s)if(s.hasOwnProperty(o)){var l=s[o];o==="style"?O0e(e,l):o==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,l!=null&&w0e(e,l)):o==="children"?typeof l=="string"?(n!=="textarea"||l!=="")&&Yx(e,l):typeof l=="number"&&Yx(e,""+l):o!=="suppressContentEditableWarning"&&o!=="suppressHydrationWarning"&&o!=="autoFocus"&&(qx.hasOwnProperty(o)?l!=null&&o==="onScroll"&&ro("scroll",e):l!=null&&VG(e,o,l,a))}switch(n){case"input":UO(e),TJ(e,r,!1);break;case"textarea":UO(e),RJ(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?ly(e,!!r.multiple,o,!1):r.defaultValue!=null&&ly(e,!!r.multiple,r.defaultValue,!0);break;default:typeof i.onClick=="function"&&(e.onclick=DN)}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)Q1e(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(dn(166));if(n=N0(ow.current),N0(Af.current),XO(t)){if(r=t.stateNode,n=t.memoizedProps,r[gf]=t,(o=r.nodeValue!==n)&&(e=bc,e!==null))switch(e.tag){case 3:QO(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&QO(r.nodeValue,n,(e.mode&1)!==0)}o&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[gf]=t,t.stateNode=r}return gs(t),null;case 13:if(uo(Ao),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(Eo&&hc!==null&&t.mode&1&&!(t.flags&128))h1e(),qy(),t.flags|=98560,o=!1;else if(o=XO(t),r!==null&&r.dehydrated!==null){if(e===null){if(!o)throw Error(dn(318));if(o=t.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(dn(317));o[gf]=t}else qy(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;gs(t),o=!1}else Zu!==null&&(mB(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||Ao.current&1?xa===0&&(xa=3):TW())),t.updateQueue!==null&&(t.flags|=4),gs(t),null);case 4:return Ky(),sB(e,t),e===null&&tw(t.stateNode.containerInfo),gs(t),null;case 10:return cW(t.type._context),gs(t),null;case 17:return Il(t.type)&&LN(),gs(t),null;case 19:if(uo(Ao),o=t.memoizedState,o===null)return gs(t),null;if(r=(t.flags&128)!==0,a=o.rendering,a===null)if(r)EE(o,!1);else{if(xa!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(a=zN(e),a!==null){for(t.flags|=128,EE(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 Xi(Ao,Ao.current&1|2),t.child}e=e.sibling}o.tail!==null&&na()>Xy&&(t.flags|=128,r=!0,EE(o,!1),t.lanes=4194304)}else{if(!r)if(e=zN(a),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),EE(o,!0),o.tail===null&&o.tailMode==="hidden"&&!a.alternate&&!Eo)return gs(t),null}else 2*na()-o.renderingStartTime>Xy&&n!==1073741824&&(t.flags|=128,r=!0,EE(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=na(),t.sibling=null,n=Ao.current,Xi(Ao,r?n&1|2:n&1),t):(gs(t),null);case 22:case 23:return wW(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?lc&1073741824&&(gs(t),t.subtreeFlags&6&&(t.flags|=8192)):gs(t),null;case 24:return null;case 25:return null}throw Error(dn(156,t.tag))}function $Le(e,t){switch(oW(t),t.tag){case 1:return Il(t.type)&&LN(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Ky(),uo(Al),uo(ks),hW(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return pW(t),null;case 13:if(uo(Ao),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(dn(340));qy()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return uo(Ao),null;case 4:return Ky(),null;case 10:return cW(t.type._context),null;case 22:case 23:return wW(),null;case 24:return null;default:return null}}var eR=!1,ws=!1,FLe=typeof WeakSet=="function"?WeakSet:Set,Hn=null;function Qb(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){zo(e,t,r)}else n.current=null}function lB(e,t,n){try{n()}catch(r){zo(e,t,r)}}var vee=!1;function BLe(e,t){if(GF=MN,e=t1e(),rW(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 p;d!==n||i!==0&&d.nodeType!==3||(s=a+i),d!==o||r!==0&&d.nodeType!==3||(l=a+r),d.nodeType===3&&(a+=d.nodeValue.length),(p=d.firstChild)!==null;)f=d,d=p;for(;;){if(d===e)break t;if(f===n&&++c===i&&(s=a),f===o&&++u===r&&(l=a),(p=d.nextSibling)!==null)break;d=f,f=d.parentNode}d=p}n=s===-1||l===-1?null:{start:s,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(WF={focusedElem:e,selectionRange:n},MN=!1,Hn=t;Hn!==null;)if(t=Hn,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Hn=e;else for(;Hn!==null;){t=Hn;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(dn(163))}}catch(S){zo(t,t.return,S)}if(e=t.sibling,e!==null){e.return=t.return,Hn=e;break}Hn=t.return}return m=vee,vee=!1,m}function XC(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&&lB(t,n,o)}i=i.next}while(i!==r)}}function n5(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 cB(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 X1e(e){var t=e.alternate;t!==null&&(e.alternate=null,X1e(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[gf],delete t[rw],delete t[KF],delete t[SLe],delete t[ELe])),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 Z1e(e){return e.tag===5||e.tag===3||e.tag===4}function bee(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Z1e(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 uB(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=DN));else if(r!==4&&(e=e.child,e!==null))for(uB(e,t,n),e=e.sibling;e!==null;)uB(e,t,n),e=e.sibling}function dB(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(dB(e,t,n),e=e.sibling;e!==null;)dB(e,t,n),e=e.sibling}var Za=null,Ku=!1;function Ph(e,t,n){for(n=n.child;n!==null;)J1e(e,t,n),n=n.sibling}function J1e(e,t,n){if(Rf&&typeof Rf.onCommitFiberUnmount=="function")try{Rf.onCommitFiberUnmount(Yk,n)}catch{}switch(n.tag){case 5:ws||Qb(n,t);case 6:var r=Za,i=Ku;Za=null,Ph(e,t,n),Za=r,Ku=i,Za!==null&&(Ku?(e=Za,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Za.removeChild(n.stateNode));break;case 18:Za!==null&&(Ku?(e=Za,n=n.stateNode,e.nodeType===8?S9(e.parentNode,n):e.nodeType===1&&S9(e,n),Zx(e)):S9(Za,n.stateNode));break;case 4:r=Za,i=Ku,Za=n.stateNode.containerInfo,Ku=!0,Ph(e,t,n),Za=r,Ku=i;break;case 0:case 11:case 14:case 15:if(!ws&&(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)&&lB(n,t,a),i=i.next}while(i!==r)}Ph(e,t,n);break;case 1:if(!ws&&(Qb(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){zo(n,t,s)}Ph(e,t,n);break;case 21:Ph(e,t,n);break;case 22:n.mode&1?(ws=(r=ws)||n.memoizedState!==null,Ph(e,t,n),ws=r):Ph(e,t,n);break;default:Ph(e,t,n)}}function yee(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new FLe),t.forEach(function(r){var i=YLe.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function Du(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:Za=s.stateNode,Ku=!1;break e;case 3:Za=s.stateNode.containerInfo,Ku=!0;break e;case 4:Za=s.stateNode.containerInfo,Ku=!0;break e}s=s.return}if(Za===null)throw Error(dn(160));J1e(o,a,i),Za=null,Ku=!1;var l=i.alternate;l!==null&&(l.return=null),i.return=null}catch(c){zo(i,t,c)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)eve(t,e),t=t.sibling}function eve(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Du(t,e),Kd(e),r&4){try{XC(3,e,e.return),n5(3,e)}catch(g){zo(e,e.return,g)}try{XC(5,e,e.return)}catch(g){zo(e,e.return,g)}}break;case 1:Du(t,e),Kd(e),r&512&&n!==null&&Qb(n,n.return);break;case 5:if(Du(t,e),Kd(e),r&512&&n!==null&&Qb(n,n.return),e.flags&32){var i=e.stateNode;try{Yx(i,"")}catch(g){zo(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&&E0e(i,o),DF(s,a);var c=DF(s,o);for(a=0;a<l.length;a+=2){var u=l[a],d=l[a+1];u==="style"?O0e(i,d):u==="dangerouslySetInnerHTML"?w0e(i,d):u==="children"?Yx(i,d):VG(i,u,d,c)}switch(s){case"input":IF(i,o);break;case"textarea":C0e(i,o);break;case"select":var f=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!o.multiple;var p=o.value;p!=null?ly(i,!!o.multiple,p,!1):f!==!!o.multiple&&(o.defaultValue!=null?ly(i,!!o.multiple,o.defaultValue,!0):ly(i,!!o.multiple,o.multiple?[]:"",!1))}i[rw]=o}catch(g){zo(e,e.return,g)}}break;case 6:if(Du(t,e),Kd(e),r&4){if(e.stateNode===null)throw Error(dn(162));i=e.stateNode,o=e.memoizedProps;try{i.nodeValue=o}catch(g){zo(e,e.return,g)}}break;case 3:if(Du(t,e),Kd(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{Zx(t.containerInfo)}catch(g){zo(e,e.return,g)}break;case 4:Du(t,e),Kd(e);break;case 13:Du(t,e),Kd(e),i=e.child,i.flags&8192&&(o=i.memoizedState!==null,i.stateNode.isHidden=o,!o||i.alternate!==null&&i.alternate.memoizedState!==null||(CW=na())),r&4&&yee(e);break;case 22:if(u=n!==null&&n.memoizedState!==null,e.mode&1?(ws=(c=ws)||u,Du(t,e),ws=c):Du(t,e),Kd(e),r&8192){if(c=e.memoizedState!==null,(e.stateNode.isHidden=c)&&!u&&e.mode&1)for(Hn=e,u=e.child;u!==null;){for(d=Hn=u;Hn!==null;){switch(f=Hn,p=f.child,f.tag){case 0:case 11:case 14:case 15:XC(4,f,f.return);break;case 1:Qb(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){zo(r,n,g)}}break;case 5:Qb(f,f.return);break;case 22:if(f.memoizedState!==null){See(d);continue}}p!==null?(p.return=f,Hn=p):See(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=T0e("display",a))}catch(g){zo(e,e.return,g)}}}else if(d.tag===6){if(u===null)try{d.stateNode.nodeValue=c?"":d.memoizedProps}catch(g){zo(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:Du(t,e),Kd(e),r&4&&yee(e);break;case 21:break;default:Du(t,e),Kd(e)}}function Kd(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(Z1e(n)){var r=n;break e}n=n.return}throw Error(dn(160))}switch(r.tag){case 5:var i=r.stateNode;r.flags&32&&(Yx(i,""),r.flags&=-33);var o=bee(e);dB(e,o,i);break;case 3:case 4:var a=r.stateNode.containerInfo,s=bee(e);uB(e,s,a);break;default:throw Error(dn(161))}}catch(l){zo(e,e.return,l)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function HLe(e,t,n){Hn=e,tve(e)}function tve(e,t,n){for(var r=(e.mode&1)!==0;Hn!==null;){var i=Hn,o=i.child;if(i.tag===22&&r){var a=i.memoizedState!==null||eR;if(!a){var s=i.alternate,l=s!==null&&s.memoizedState!==null||ws;s=eR;var c=ws;if(eR=a,(ws=l)&&!c)for(Hn=i;Hn!==null;)a=Hn,l=a.child,a.tag===22&&a.memoizedState!==null?Eee(i):l!==null?(l.return=a,Hn=l):Eee(i);for(;o!==null;)Hn=o,tve(o),o=o.sibling;Hn=i,eR=s,ws=c}_ee(e)}else i.subtreeFlags&8772&&o!==null?(o.return=i,Hn=o):_ee(e)}}function _ee(e){for(;Hn!==null;){var t=Hn;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:ws||n5(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!ws)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&&iee(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}iee(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&&Zx(d)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(dn(163))}ws||t.flags&512&&cB(t)}catch(f){zo(t,t.return,f)}}if(t===e){Hn=null;break}if(n=t.sibling,n!==null){n.return=t.return,Hn=n;break}Hn=t.return}}function See(e){for(;Hn!==null;){var t=Hn;if(t===e){Hn=null;break}var n=t.sibling;if(n!==null){n.return=t.return,Hn=n;break}Hn=t.return}}function Eee(e){for(;Hn!==null;){var t=Hn;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{n5(4,t)}catch(l){zo(t,n,l)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var i=t.return;try{r.componentDidMount()}catch(l){zo(t,i,l)}}var o=t.return;try{cB(t)}catch(l){zo(t,o,l)}break;case 5:var a=t.return;try{cB(t)}catch(l){zo(t,a,l)}}}catch(l){zo(t,t.return,l)}if(t===e){Hn=null;break}var s=t.sibling;if(s!==null){s.return=t.return,Hn=s;break}Hn=t.return}}var jLe=Math.ceil,WN=mh.ReactCurrentDispatcher,SW=mh.ReactCurrentOwner,au=mh.ReactCurrentBatchConfig,ci=0,Ha=null,ma=null,rs=0,lc=0,Xb=wg(0),xa=0,cw=null,I1=0,r5=0,EW=0,ZC=null,xl=null,CW=0,Xy=1/0,Tp=null,qN=!1,fB=null,Km=null,tR=!1,Tm=null,YN=0,JC=0,pB=null,oI=-1,aI=0;function el(){return ci&6?na():oI!==-1?oI:oI=na()}function Qm(e){return e.mode&1?ci&2&&rs!==0?rs&-rs:xLe.transition!==null?(aI===0&&(aI=B0e()),aI):(e=wi,e!==0||(e=window.event,e=e===void 0?16:W0e(e.type)),e):1}function cd(e,t,n,r){if(50<JC)throw JC=0,pB=null,Error(dn(185));LT(e,n,r),(!(ci&2)||e!==Ha)&&(e===Ha&&(!(ci&2)&&(r5|=n),xa===4&&mm(e,rs)),Nl(e,r),n===1&&ci===0&&!(t.mode&1)&&(Xy=na()+500,Jk&&Tg()))}function Nl(e,t){var n=e.callbackNode;x6e(e,t);var r=NN(e,e===Ha?rs:0);if(r===0)n!==null&&NJ(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&NJ(n),t===1)e.tag===0?CLe(Cee.bind(null,e)):d1e(Cee.bind(null,e)),yLe(function(){!(ci&6)&&Tg()}),n=null;else{switch(H0e(r)){case 1:n=KG;break;case 4:n=$0e;break;case 16:n=IN;break;case 536870912:n=F0e;break;default:n=IN}n=cve(n,nve.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function nve(e,t){if(oI=-1,aI=0,ci&6)throw Error(dn(327));var n=e.callbackNode;if(py()&&e.callbackNode!==n)return null;var r=NN(e,e===Ha?rs:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=KN(e,r);else{t=r;var i=ci;ci|=2;var o=ive();(Ha!==e||rs!==t)&&(Tp=null,Xy=na()+500,n1(e,t));do try{VLe();break}catch(s){rve(e,s)}while(!0);lW(),WN.current=o,ci=i,ma!==null?t=0:(Ha=null,rs=0,t=xa)}if(t!==0){if(t===2&&(i=HF(e),i!==0&&(r=i,t=hB(e,i))),t===1)throw n=cw,n1(e,0),mm(e,r),Nl(e,na()),n;if(t===6)mm(e,r);else{if(i=e.current.alternate,!(r&30)&&!ULe(i)&&(t=KN(e,r),t===2&&(o=HF(e),o!==0&&(r=o,t=hB(e,o))),t===1))throw n=cw,n1(e,0),mm(e,r),Nl(e,na()),n;switch(e.finishedWork=i,e.finishedLanes=r,t){case 0:case 1:throw Error(dn(345));case 2:h0(e,xl,Tp);break;case 3:if(mm(e,r),(r&130023424)===r&&(t=CW+500-na(),10<t)){if(NN(e,0)!==0)break;if(i=e.suspendedLanes,(i&r)!==r){el(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=YF(h0.bind(null,e,xl,Tp),t);break}h0(e,xl,Tp);break;case 4:if(mm(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=na()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*jLe(r/1960))-r,10<r){e.timeoutHandle=YF(h0.bind(null,e,xl,Tp),r);break}h0(e,xl,Tp);break;case 5:h0(e,xl,Tp);break;default:throw Error(dn(329))}}}return Nl(e,na()),e.callbackNode===n?nve.bind(null,e):null}function hB(e,t){var n=ZC;return e.current.memoizedState.isDehydrated&&(n1(e,t).flags|=256),e=KN(e,t),e!==2&&(t=xl,xl=n,t!==null&&mB(t)),e}function mB(e){xl===null?xl=e:xl.push.apply(xl,e)}function ULe(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 mm(e,t){for(t&=~EW,t&=~r5,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 Cee(e){if(ci&6)throw Error(dn(327));py();var t=NN(e,0);if(!(t&1))return Nl(e,na()),null;var n=KN(e,t);if(e.tag!==0&&n===2){var r=HF(e);r!==0&&(t=r,n=hB(e,r))}if(n===1)throw n=cw,n1(e,0),mm(e,t),Nl(e,na()),n;if(n===6)throw Error(dn(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,h0(e,xl,Tp),Nl(e,na()),null}function xW(e,t){var n=ci;ci|=1;try{return e(t)}finally{ci=n,ci===0&&(Xy=na()+500,Jk&&Tg())}}function N1(e){Tm!==null&&Tm.tag===0&&!(ci&6)&&py();var t=ci;ci|=1;var n=au.transition,r=wi;try{if(au.transition=null,wi=1,e)return e()}finally{wi=r,au.transition=n,ci=t,!(ci&6)&&Tg()}}function wW(){lc=Xb.current,uo(Xb)}function n1(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,bLe(n)),ma!==null)for(n=ma.return;n!==null;){var r=n;switch(oW(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&LN();break;case 3:Ky(),uo(Al),uo(ks),hW();break;case 5:pW(r);break;case 4:Ky();break;case 13:uo(Ao);break;case 19:uo(Ao);break;case 10:cW(r.type._context);break;case 22:case 23:wW()}n=n.return}if(Ha=e,ma=e=Xm(e.current,null),rs=lc=t,xa=0,cw=null,EW=r5=I1=0,xl=ZC=null,I0!==null){for(t=0;t<I0.length;t++)if(n=I0[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}I0=null}return e}function rve(e,t){do{var n=ma;try{if(lW(),nI.current=GN,VN){for(var r=Mo.memoizedState;r!==null;){var i=r.queue;i!==null&&(i.pending=null),r=r.next}VN=!1}if(A1=0,La=Ea=Mo=null,QC=!1,aw=0,SW.current=null,n===null||n.return===null){xa=1,cw=t,ma=null;break}e:{var o=e,a=n.return,s=n,l=t;if(t=rs,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 p=uee(a);if(p!==null){p.flags&=-257,dee(p,a,s,o,t),p.mode&1&&cee(o,c,t),t=p,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)){cee(o,c,t),TW();break e}l=Error(dn(426))}}else if(Eo&&s.mode&1){var v=uee(a);if(v!==null){!(v.flags&65536)&&(v.flags|=256),dee(v,a,s,o,t),aW(Qy(l,s));break e}}o=l=Qy(l,s),xa!==4&&(xa=2),ZC===null?ZC=[o]:ZC.push(o),o=a;do{switch(o.tag){case 3:o.flags|=65536,t&=-t,o.lanes|=t;var y=H1e(o,l,t);ree(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 S=j1e(o,s,t);ree(o,S);break e}}o=o.return}while(o!==null)}ave(n)}catch(x){t=x,ma===n&&n!==null&&(ma=n=n.return);continue}break}while(!0)}function ive(){var e=WN.current;return WN.current=GN,e===null?GN:e}function TW(){(xa===0||xa===3||xa===2)&&(xa=4),Ha===null||!(I1&268435455)&&!(r5&268435455)||mm(Ha,rs)}function KN(e,t){var n=ci;ci|=2;var r=ive();(Ha!==e||rs!==t)&&(Tp=null,n1(e,t));do try{zLe();break}catch(i){rve(e,i)}while(!0);if(lW(),ci=n,WN.current=r,ma!==null)throw Error(dn(261));return Ha=null,rs=0,xa}function zLe(){for(;ma!==null;)ove(ma)}function VLe(){for(;ma!==null&&!m6e();)ove(ma)}function ove(e){var t=lve(e.alternate,e,lc);e.memoizedProps=e.pendingProps,t===null?ave(e):ma=t,SW.current=null}function ave(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=$Le(n,t),n!==null){n.flags&=32767,ma=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{xa=6,ma=null;return}}else if(n=LLe(n,t,lc),n!==null){ma=n;return}if(t=t.sibling,t!==null){ma=t;return}ma=t=e}while(t!==null);xa===0&&(xa=5)}function h0(e,t,n){var r=wi,i=au.transition;try{au.transition=null,wi=1,GLe(e,t,n,r)}finally{au.transition=i,wi=r}return null}function GLe(e,t,n,r){do py();while(Tm!==null);if(ci&6)throw Error(dn(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(dn(177));e.callbackNode=null,e.callbackPriority=0;var o=n.lanes|n.childLanes;if(w6e(e,o),e===Ha&&(ma=Ha=null,rs=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||tR||(tR=!0,cve(IN,function(){return py(),null})),o=(n.flags&15990)!==0,n.subtreeFlags&15990||o){o=au.transition,au.transition=null;var a=wi;wi=1;var s=ci;ci|=4,SW.current=null,BLe(e,n),eve(n,e),dLe(WF),MN=!!GF,WF=GF=null,e.current=n,HLe(n),g6e(),ci=s,wi=a,au.transition=o}else e.current=n;if(tR&&(tR=!1,Tm=e,YN=i),o=e.pendingLanes,o===0&&(Km=null),y6e(n.stateNode),Nl(e,na()),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(qN)throw qN=!1,e=fB,fB=null,e;return YN&1&&e.tag!==0&&py(),o=e.pendingLanes,o&1?e===pB?JC++:(JC=0,pB=e):JC=0,Tg(),null}function py(){if(Tm!==null){var e=H0e(YN),t=au.transition,n=wi;try{if(au.transition=null,wi=16>e?16:e,Tm===null)var r=!1;else{if(e=Tm,Tm=null,YN=0,ci&6)throw Error(dn(331));var i=ci;for(ci|=4,Hn=e.current;Hn!==null;){var o=Hn,a=o.child;if(Hn.flags&16){var s=o.deletions;if(s!==null){for(var l=0;l<s.length;l++){var c=s[l];for(Hn=c;Hn!==null;){var u=Hn;switch(u.tag){case 0:case 11:case 15:XC(8,u,o)}var d=u.child;if(d!==null)d.return=u,Hn=d;else for(;Hn!==null;){u=Hn;var f=u.sibling,p=u.return;if(X1e(u),u===c){Hn=null;break}if(f!==null){f.return=p,Hn=f;break}Hn=p}}}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)}}Hn=o}}if(o.subtreeFlags&2064&&a!==null)a.return=o,Hn=a;else e:for(;Hn!==null;){if(o=Hn,o.flags&2048)switch(o.tag){case 0:case 11:case 15:XC(9,o,o.return)}var y=o.sibling;if(y!==null){y.return=o.return,Hn=y;break e}Hn=o.return}}var b=e.current;for(Hn=b;Hn!==null;){a=Hn;var _=a.child;if(a.subtreeFlags&2064&&_!==null)_.return=a,Hn=_;else e:for(a=b;Hn!==null;){if(s=Hn,s.flags&2048)try{switch(s.tag){case 0:case 11:case 15:n5(9,s)}}catch(x){zo(s,s.return,x)}if(s===a){Hn=null;break e}var S=s.sibling;if(S!==null){S.return=s.return,Hn=S;break e}Hn=s.return}}if(ci=i,Tg(),Rf&&typeof Rf.onPostCommitFiberRoot=="function")try{Rf.onPostCommitFiberRoot(Yk,e)}catch{}r=!0}return r}finally{wi=n,au.transition=t}}return!1}function xee(e,t,n){t=Qy(n,t),t=H1e(e,t,1),e=Ym(e,t,1),t=el(),e!==null&&(LT(e,1,t),Nl(e,t))}function zo(e,t,n){if(e.tag===3)xee(e,e,n);else for(;t!==null;){if(t.tag===3){xee(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=Qy(n,e),e=j1e(t,e,1),t=Ym(t,e,1),e=el(),t!==null&&(LT(t,1,e),Nl(t,e));break}}t=t.return}}function WLe(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=el(),e.pingedLanes|=e.suspendedLanes&n,Ha===e&&(rs&n)===n&&(xa===4||xa===3&&(rs&130023424)===rs&&500>na()-CW?n1(e,0):EW|=n),Nl(e,t)}function sve(e,t){t===0&&(e.mode&1?(t=GO,GO<<=1,!(GO&130023424)&&(GO=4194304)):t=1);var n=el();e=nh(e,t),e!==null&&(LT(e,t,n),Nl(e,n))}function qLe(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),sve(e,n)}function YLe(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(dn(314))}r!==null&&r.delete(t),sve(e,n)}var lve;lve=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Al.current)Ol=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Ol=!1,DLe(e,t,n);Ol=!!(e.flags&131072)}else Ol=!1,Eo&&t.flags&1048576&&f1e(t,BN,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;iI(e,t),e=t.pendingProps;var i=Wy(t,ks.current);fy(t,n),i=gW(null,t,r,e,i,n);var o=vW();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,Il(r)?(o=!0,$N(t)):o=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,dW(t),i.updater=t5,t.stateNode=i,i._reactInternals=t,tB(t,r,e,n),t=iB(null,t,r,!0,o,n)):(t.tag=0,Eo&&o&&iW(t),Ws(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(iI(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=QLe(r),e=Gu(r,e),i){case 0:t=rB(null,t,r,e,n);break e;case 1:t=hee(null,t,r,e,n);break e;case 11:t=fee(null,t,r,e,n);break e;case 14:t=pee(null,t,r,Gu(r.type,e),n);break e}throw Error(dn(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Gu(r,i),rB(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Gu(r,i),hee(e,t,r,i,n);case 3:e:{if(G1e(t),e===null)throw Error(dn(387));r=t.pendingProps,o=t.memoizedState,i=o.element,b1e(e,t),UN(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=Qy(Error(dn(423)),t),t=mee(e,t,r,n,i);break e}else if(r!==i){i=Qy(Error(dn(424)),t),t=mee(e,t,r,n,i);break e}else for(hc=qm(t.stateNode.containerInfo.firstChild),bc=t,Eo=!0,Zu=null,n=g1e(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(qy(),r===i){t=rh(e,t,n);break e}Ws(e,t,r,n)}t=t.child}return t;case 5:return y1e(t),e===null&&ZF(t),r=t.type,i=t.pendingProps,o=e!==null?e.memoizedProps:null,a=i.children,qF(r,i)?a=null:o!==null&&qF(r,o)&&(t.flags|=32),V1e(e,t),Ws(e,t,a,n),t.child;case 6:return e===null&&ZF(t),null;case 13:return W1e(e,t,n);case 4:return fW(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Yy(t,null,r,n):Ws(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Gu(r,i),fee(e,t,r,i,n);case 7:return Ws(e,t,t.pendingProps,n),t.child;case 8:return Ws(e,t,t.pendingProps.children,n),t.child;case 12:return Ws(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,Xi(HN,r._currentValue),r._currentValue=a,o!==null)if(_d(o.value,a)){if(o.children===i.children&&!Al.current){t=rh(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=qp(-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),JF(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(dn(341));a.lanes|=n,s=a.alternate,s!==null&&(s.lanes|=n),JF(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}Ws(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,fy(t,n),i=fu(i),r=r(i),t.flags|=1,Ws(e,t,r,n),t.child;case 14:return r=t.type,i=Gu(r,t.pendingProps),i=Gu(r.type,i),pee(e,t,r,i,n);case 15:return U1e(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Gu(r,i),iI(e,t),t.tag=1,Il(r)?(e=!0,$N(t)):e=!1,fy(t,n),B1e(t,r,i),tB(t,r,i,n),iB(null,t,r,!0,e,n);case 19:return q1e(e,t,n);case 22:return z1e(e,t,n)}throw Error(dn(156,t.tag))};function cve(e,t){return L0e(e,t)}function KLe(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 iu(e,t,n,r){return new KLe(e,t,n,r)}function OW(e){return e=e.prototype,!(!e||!e.isReactComponent)}function QLe(e){if(typeof e=="function")return OW(e)?1:0;if(e!=null){if(e=e.$$typeof,e===WG)return 11;if(e===qG)return 14}return 2}function Xm(e,t){var n=e.alternate;return n===null?(n=iu(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 sI(e,t,n,r,i,o){var a=2;if(r=e,typeof e=="function")OW(e)&&(a=1);else if(typeof e=="string")a=5;else e:switch(e){case jb:return r1(n.children,i,o,t);case GG:a=8,i|=8;break;case wF:return e=iu(12,n,t,i|2),e.elementType=wF,e.lanes=o,e;case TF:return e=iu(13,n,t,i),e.elementType=TF,e.lanes=o,e;case OF:return e=iu(19,n,t,i),e.elementType=OF,e.lanes=o,e;case y0e:return i5(n,i,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case v0e:a=10;break e;case b0e:a=9;break e;case WG:a=11;break e;case qG:a=14;break e;case am:a=16,r=null;break e}throw Error(dn(130,e==null?e:typeof e,""))}return t=iu(a,n,t,i),t.elementType=e,t.type=r,t.lanes=o,t}function r1(e,t,n,r){return e=iu(7,e,r,t),e.lanes=n,e}function i5(e,t,n,r){return e=iu(22,e,r,t),e.elementType=y0e,e.lanes=n,e.stateNode={isHidden:!1},e}function A9(e,t,n){return e=iu(6,e,null,t),e.lanes=n,e}function I9(e,t,n){return t=iu(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function XLe(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=u9(0),this.expirationTimes=u9(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=u9(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function RW(e,t,n,r,i,o,a,s,l){return e=new XLe(e,t,n,s,l),t===1?(t=1,o===!0&&(t|=8)):t=0,o=iu(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},dW(o),e}function ZLe(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Hb,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function uve(e){if(!e)return dg;e=e._reactInternals;e:{if(lv(e)!==e||e.tag!==1)throw Error(dn(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Il(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(dn(171))}if(e.tag===1){var n=e.type;if(Il(n))return u1e(e,n,t)}return t}function dve(e,t,n,r,i,o,a,s,l){return e=RW(n,r,!0,e,i,o,a,s,l),e.context=uve(null),n=e.current,r=el(),i=Qm(n),o=qp(r,i),o.callback=t??null,Ym(n,o,i),e.current.lanes=i,LT(e,i,r),Nl(e,r),e}function o5(e,t,n,r){var i=t.current,o=el(),a=Qm(i);return n=uve(n),t.context===null?t.context=n:t.pendingContext=n,t=qp(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),tI(e,i,a)),a}function QN(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 wee(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function AW(e,t){wee(e,t),(e=e.alternate)&&wee(e,t)}function JLe(){return null}var fve=typeof reportError=="function"?reportError:function(e){console.error(e)};function IW(e){this._internalRoot=e}a5.prototype.render=IW.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(dn(409));o5(e,t,null,null)};a5.prototype.unmount=IW.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;N1(function(){o5(null,e,null,null)}),t[th]=null}};function a5(e){this._internalRoot=e}a5.prototype.unstable_scheduleHydration=function(e){if(e){var t=z0e();e={blockedOn:null,target:e,priority:t};for(var n=0;n<hm.length&&t!==0&&t<hm[n].priority;n++);hm.splice(n,0,e),n===0&&G0e(e)}};function NW(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function s5(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function Tee(){}function e$e(e,t,n,r,i){if(i){if(typeof r=="function"){var o=r;r=function(){var c=QN(a);o.call(c)}}var a=dve(t,r,e,0,null,!1,!1,"",Tee);return e._reactRootContainer=a,e[th]=a.current,tw(e.nodeType===8?e.parentNode:e),N1(),a}for(;i=e.lastChild;)e.removeChild(i);if(typeof r=="function"){var s=r;r=function(){var c=QN(l);s.call(c)}}var l=RW(e,0,!1,null,null,!1,!1,"",Tee);return e._reactRootContainer=l,e[th]=l.current,tw(e.nodeType===8?e.parentNode:e),N1(function(){o5(t,l,n,r)}),l}function l5(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=QN(a);s.call(l)}}o5(t,a,e,i)}else a=e$e(n,t,e,i,r);return QN(a)}j0e=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=bC(t.pendingLanes);n!==0&&(QG(t,n|1),Nl(t,na()),!(ci&6)&&(Xy=na()+500,Tg()))}break;case 13:N1(function(){var r=nh(e,1);if(r!==null){var i=el();cd(r,e,1,i)}}),AW(e,1)}};XG=function(e){if(e.tag===13){var t=nh(e,134217728);if(t!==null){var n=el();cd(t,e,134217728,n)}AW(e,134217728)}};U0e=function(e){if(e.tag===13){var t=Qm(e),n=nh(e,t);if(n!==null){var r=el();cd(n,e,t,r)}AW(e,t)}};z0e=function(){return wi};V0e=function(e,t){var n=wi;try{return wi=e,t()}finally{wi=n}};$F=function(e,t,n){switch(t){case"input":if(IF(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=Zk(r);if(!i)throw Error(dn(90));S0e(r),IF(r,i)}}}break;case"textarea":C0e(e,n);break;case"select":t=n.value,t!=null&&ly(e,!!n.multiple,t,!1)}};I0e=xW;N0e=N1;var t$e={usingClientEntryPoint:!1,Events:[FT,Gb,Zk,R0e,A0e,xW]},CE={findFiberByHostInstance:A0,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},n$e={bundleType:CE.bundleType,version:CE.version,rendererPackageName:CE.rendererPackageName,rendererConfig:CE.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:mh.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=P0e(e),e===null?null:e.stateNode},findFiberByHostInstance:CE.findFiberByHostInstance||JLe,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 nR=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!nR.isDisabled&&nR.supportsFiber)try{Yk=nR.inject(n$e),Rf=nR}catch{}}Oc.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=t$e;Oc.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!NW(t))throw Error(dn(200));return ZLe(e,t,null,n)};Oc.createRoot=function(e,t){if(!NW(e))throw Error(dn(299));var n=!1,r="",i=fve;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(i=t.onRecoverableError)),t=RW(e,1,!1,null,null,n,!1,r,i),e[th]=t.current,tw(e.nodeType===8?e.parentNode:e),new IW(t)};Oc.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(dn(188)):(e=Object.keys(e).join(","),Error(dn(268,e)));return e=P0e(t),e=e===null?null:e.stateNode,e};Oc.flushSync=function(e){return N1(e)};Oc.hydrate=function(e,t,n){if(!s5(t))throw Error(dn(200));return l5(null,e,t,!0,n)};Oc.hydrateRoot=function(e,t,n){if(!NW(e))throw Error(dn(405));var r=n!=null&&n.hydratedSources||null,i=!1,o="",a=fve;if(n!=null&&(n.unstable_strictMode===!0&&(i=!0),n.identifierPrefix!==void 0&&(o=n.identifierPrefix),n.onRecoverableError!==void 0&&(a=n.onRecoverableError)),t=dve(t,null,e,1,n??null,i,!1,o,a),e[th]=t.current,tw(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 a5(t)};Oc.render=function(e,t,n){if(!s5(t))throw Error(dn(200));return l5(null,e,t,!1,n)};Oc.unmountComponentAtNode=function(e){if(!s5(e))throw Error(dn(40));return e._reactRootContainer?(N1(function(){l5(null,null,e,!1,function(){e._reactRootContainer=null,e[th]=null})}),!0):!1};Oc.unstable_batchedUpdates=xW;Oc.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!s5(n))throw Error(dn(200));if(e==null||e._reactInternals===void 0)throw Error(dn(38));return l5(e,t,n,!1,r)};Oc.version="18.3.1-next-f1338f8080-20240426";function pve(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(pve)}catch(e){console.error(e)}}pve(),p0e.exports=Oc;var Fl=p0e.exports;const uw=oi(Fl),hve=Wk({__proto__:null,default:uw},[Fl]);var Oee=Fl;CF.createRoot=Oee.createRoot,CF.hydrateRoot=Oee.hydrateRoot;const r$e={},Ree=e=>{let t;const n=new Set,r=(u,d)=>{const f=typeof u=="function"?u(t):u;if(!Object.is(f,t)){const p=t;t=d??(typeof f!="object"||f===null)?f:Object.assign({},t,f),n.forEach(m=>m(t,p))}},i=()=>t,l={setState:r,getState:i,getInitialState:()=>c,subscribe:u=>(n.add(u),()=>n.delete(u)),destroy:()=>{(r$e?"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},i$e=e=>e?Ree(e):Ree;var mve={exports:{}},gve={},vve={exports:{}},bve={};/**
* @license React
* use-sync-external-store-shim.production.js
*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var Zy=h;function o$e(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var a$e=typeof Object.is=="function"?Object.is:o$e,s$e=Zy.useState,l$e=Zy.useEffect,c$e=Zy.useLayoutEffect,u$e=Zy.useDebugValue;function d$e(e,t){var n=t(),r=s$e({inst:{value:n,getSnapshot:t}}),i=r[0].inst,o=r[1];return c$e(function(){i.value=n,i.getSnapshot=t,N9(i)&&o({inst:i})},[e,n,t]),l$e(function(){return N9(i)&&o({inst:i}),e(function(){N9(i)&&o({inst:i})})},[e]),u$e(n),n}function N9(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!a$e(e,n)}catch{return!0}}function f$e(e,t){return t()}var p$e=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?f$e:d$e;bve.useSyncExternalStore=Zy.useSyncExternalStore!==void 0?Zy.useSyncExternalStore:p$e;vve.exports=bve;var yve=vve.exports;/**
* @license React
* use-sync-external-store-shim/with-selector.production.js
*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var c5=h,h$e=yve;function m$e(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var g$e=typeof Object.is=="function"?Object.is:m$e,v$e=h$e.useSyncExternalStore,b$e=c5.useRef,y$e=c5.useEffect,_$e=c5.useMemo,S$e=c5.useDebugValue;gve.useSyncExternalStoreWithSelector=function(e,t,n,r,i){var o=b$e(null);if(o.current===null){var a={hasValue:!1,value:null};o.current=a}else a=o.current;o=_$e(function(){function l(p){if(!c){if(c=!0,u=p,p=r(p),i!==void 0&&a.hasValue){var m=a.value;if(i(m,p))return d=m}return d=p}if(m=d,g$e(u,p))return m;var g=r(p);return i!==void 0&&i(m,g)?(u=p,m):(u=p,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=v$e(e,o[0],o[1]);return y$e(function(){a.hasValue=!0,a.value=s},[s]),S$e(s),s};mve.exports=gve;var E$e=mve.exports;const C$e=oi(E$e),_ve={},{useDebugValue:x$e}=pe,{useSyncExternalStoreWithSelector:w$e}=C$e;let Aee=!1;const T$e=e=>e;function O$e(e,t=T$e,n){(_ve?"open":void 0)!=="production"&&n&&!Aee&&(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"),Aee=!0);const r=w$e(e.subscribe,e.getState,e.getServerState||e.getInitialState,t,n);return x$e(r),r}const Iee=e=>{(_ve?"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"?i$e(e):e,n=(r,i)=>O$e(t,r,i);return Object.assign(n,t),n},Ac=e=>e?Iee(e):Iee,lI={BASE_URL:"/notebase",DEV:!1,MODE:"open",PROD:!0,SSR:!1,VITE_CONFIG_ENV:"prod-open"},gB=new Map,rR=e=>{const t=gB.get(e);return t?Object.fromEntries(Object.entries(t.stores).map(([n,r])=>[n,r.getState()])):{}},R$e=(e,t,n)=>{if(e===void 0)return{type:"untracked",connection:t.connect(n)};const r=gB.get(n.name);if(r)return{type:"tracked",store:e,...r};const i={connection:t.connect(n),stores:{}};return gB.set(n.name,i),{type:"tracked",store:e,...i}},A$e=(e,t={})=>(n,r,i)=>{const{enabled:o,anonymousActionType:a,store:s,...l}=t;let c;try{c=(o??(lI?"open":void 0)!=="production")&&window.__REDUX_DEVTOOLS_EXTENSION__}catch{}if(!c)return(lI?"open":void 0)!=="production"&&o&&console.warn("[zustand devtools middleware] Please install/enable Redux devtools extension"),e(n,r,i);const{connection:u,...d}=R$e(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}`},{...rR(l.name),[s]:i.getState()}),b)};const p=(...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)=>{(lI?"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 M9(g.payload,y=>{if(y.type==="__setState"){if(s===void 0){p(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)&&p(b);return}i.dispatchFromDevtools&&typeof i.dispatch=="function"&&i.dispatch(y)});case"DISPATCH":switch(g.payload.type){case"RESET":return p(m),s===void 0?u==null?void 0:u.init(i.getState()):u==null?void 0:u.init(rR(l.name));case"COMMIT":if(s===void 0){u==null||u.init(i.getState());return}return u==null?void 0:u.init(rR(l.name));case"ROLLBACK":return M9(g.state,y=>{if(s===void 0){p(y),u==null||u.init(i.getState());return}p(y[s]),u==null||u.init(rR(l.name))});case"JUMP_TO_STATE":case"JUMP_TO_ACTION":return M9(g.state,y=>{if(s===void 0){p(y);return}JSON.stringify(i.getState())!==JSON.stringify(y[s])&&p(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;p(s===void 0?b:b[s]),u==null||u.send(null,y);return}case"PAUSE_RECORDING":return f=!f}return}}),m},Pd=A$e,M9=(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 I$e(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 dw=e=>t=>{try{const n=e(t);return n instanceof Promise?n:{then(r){return dw(r)(n)},catch(r){return this}}}catch(n){return{then(r){return this},catch(r){return dw(r)(n)}}}},N$e=(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=dw(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 p=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 dw(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?_:p),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||p},M$e=(e,t)=>(n,r,i)=>{let o={storage:I$e(()=>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 p;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 dw(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[S,x]=b;if(p=o.merge(x,(_=r())!=null?_:f),n(p,!0),S)return u()}).then(()=>{y==null||y(p,void 0),p=r(),a=!0,l.forEach(b=>b(p))}).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(),p||f},k$e=(e,t)=>"getStorage"in t||"serialize"in t||"deserialize"in t?((lI?"open":void 0)!=="production"&&console.warn("[DEPRECATED] `getStorage`, `serialize` and `deserialize` options are deprecated. Use `storage` option instead."),N$e(e,t)):M$e(e,t),Dd=k$e;var Sve=Symbol.for("immer-nothing"),Nee=Symbol.for("immer-draftable"),Ec=Symbol.for("immer-state");function ed(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var Jy=Object.getPrototypeOf;function e_(e){return!!e&&!!e[Ec]}function M1(e){var t;return e?Eve(e)||Array.isArray(e)||!!e[Nee]||!!((t=e.constructor)!=null&&t[Nee])||d5(e)||f5(e):!1}var P$e=Object.prototype.constructor.toString();function Eve(e){if(!e||typeof e!="object")return!1;const t=Jy(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)===P$e}function XN(e,t){u5(e)===0?Reflect.ownKeys(e).forEach(n=>{t(n,e[n],e)}):e.forEach((n,r)=>t(r,n,e))}function u5(e){const t=e[Ec];return t?t.type_:Array.isArray(e)?1:d5(e)?2:f5(e)?3:0}function vB(e,t){return u5(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function Cve(e,t,n){const r=u5(e);r===2?e.set(t,n):r===3?e.add(n):e[t]=n}function D$e(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}function d5(e){return e instanceof Map}function f5(e){return e instanceof Set}function m0(e){return e.copy_||e.base_}function bB(e,t){if(d5(e))return new Map(e);if(f5(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);const n=Eve(e);if(t===!0||t==="class_only"&&!n){const r=Object.getOwnPropertyDescriptors(e);delete r[Ec];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(Jy(e),r)}else{const r=Jy(e);if(r!==null&&n)return{...e};const i=Object.create(r);return Object.assign(i,e)}}function MW(e,t=!1){return p5(e)||e_(e)||!M1(e)||(u5(e)>1&&(e.set=e.add=e.clear=e.delete=L$e),Object.freeze(e),t&&Object.entries(e).forEach(([n,r])=>MW(r,!0))),e}function L$e(){ed(2)}function p5(e){return Object.isFrozen(e)}var $$e={};function k1(e){const t=$$e[e];return t||ed(0,e),t}var fw;function xve(){return fw}function F$e(e,t){return{drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function Mee(e,t){t&&(k1("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function yB(e){_B(e),e.drafts_.forEach(B$e),e.drafts_=null}function _B(e){e===fw&&(fw=e.parent_)}function kee(e){return fw=F$e(fw,e)}function B$e(e){const t=e[Ec];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function Pee(e,t){t.unfinalizedDrafts_=t.drafts_.length;const n=t.drafts_[0];return e!==void 0&&e!==n?(n[Ec].modified_&&(yB(t),ed(4)),M1(e)&&(e=ZN(t,e),t.parent_||JN(t,e)),t.patches_&&k1("Patches").generateReplacementPatches_(n[Ec].base_,e,t.patches_,t.inversePatches_)):e=ZN(t,n,[]),yB(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==Sve?e:void 0}function ZN(e,t,n){if(p5(t))return t;const r=t[Ec];if(!r)return XN(t,(i,o)=>Dee(e,r,t,i,o,n)),t;if(r.scope_!==e)return t;if(!r.modified_)return JN(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),XN(o,(s,l)=>Dee(e,r,i,s,l,n,a)),JN(e,i,!1),n&&e.patches_&&k1("Patches").generatePatches_(r,n,e.patches_,e.inversePatches_)}return r.copy_}function Dee(e,t,n,r,i,o,a){if(e_(i)){const s=o&&t&&t.type_!==3&&!vB(t.assigned_,r)?o.concat(r):void 0,l=ZN(e,i,s);if(Cve(n,r,l),e_(l))e.canAutoFreeze_=!1;else return}else a&&n.add(i);if(M1(i)&&!p5(i)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;ZN(e,i),(!t||!t.scope_.parent_)&&typeof r!="symbol"&&Object.prototype.propertyIsEnumerable.call(n,r)&&JN(e,i)}}function JN(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&MW(t,n)}function H$e(e,t){const n=Array.isArray(e),r={type_:n?1:0,scope_:t?t.scope_:xve(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let i=r,o=kW;n&&(i=[r],o=pw);const{revoke:a,proxy:s}=Proxy.revocable(i,o);return r.draft_=s,r.revoke_=a,s}var kW={get(e,t){if(t===Ec)return e;const n=m0(e);if(!vB(n,t))return j$e(e,n,t);const r=n[t];return e.finalized_||!M1(r)?r:r===k9(e.base_,t)?(P9(e),e.copy_[t]=EB(r,e)):r},has(e,t){return t in m0(e)},ownKeys(e){return Reflect.ownKeys(m0(e))},set(e,t,n){const r=wve(m0(e),t);if(r!=null&&r.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){const i=k9(m0(e),t),o=i==null?void 0:i[Ec];if(o&&o.base_===n)return e.copy_[t]=n,e.assigned_[t]=!1,!0;if(D$e(n,i)&&(n!==void 0||vB(e.base_,t)))return!0;P9(e),SB(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 k9(e.base_,t)!==void 0||t in e.base_?(e.assigned_[t]=!1,P9(e),SB(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const n=m0(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 Jy(e.base_)},setPrototypeOf(){ed(12)}},pw={};XN(kW,(e,t)=>{pw[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}});pw.deleteProperty=function(e,t){return pw.set.call(this,e,t,void 0)};pw.set=function(e,t,n){return kW.set.call(this,e[0],t,n,e[0])};function k9(e,t){const n=e[Ec];return(n?m0(n):e)[t]}function j$e(e,t,n){var i;const r=wve(t,n);return r?"value"in r?r.value:(i=r.get)==null?void 0:i.call(e.draft_):void 0}function wve(e,t){if(!(t in e))return;let n=Jy(e);for(;n;){const r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=Jy(n)}}function SB(e){e.modified_||(e.modified_=!0,e.parent_&&SB(e.parent_))}function P9(e){e.copy_||(e.copy_=bB(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var U$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(M1(t)){const o=kee(this),a=EB(t,void 0);let s=!0;try{i=n(a),s=!1}finally{s?yB(o):_B(o)}return Mee(o,r),Pee(i,o)}else if(!t||typeof t!="object"){if(i=n(t),i===void 0&&(i=t),i===Sve&&(i=void 0),this.autoFreeze_&&MW(i,!0),r){const o=[],a=[];k1("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){M1(e)||ed(8),e_(e)&&(e=z$e(e));const t=kee(this),n=EB(e,void 0);return n[Ec].isManual_=!0,_B(t),n}finishDraft(e,t){const n=e&&e[Ec];(!n||!n.isManual_)&&ed(9);const{scope_:r}=n;return Mee(r,t),Pee(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=k1("Patches").applyPatches_;return e_(e)?r(e,t):this.produce(e,i=>r(i,t))}};function EB(e,t){const n=d5(e)?k1("MapSet").proxyMap_(e,t):f5(e)?k1("MapSet").proxySet_(e,t):H$e(e,t);return(t?t.scope_:xve()).drafts_.push(n),n}function z$e(e){return e_(e)||ed(10,e),Tve(e)}function Tve(e){if(!M1(e)||p5(e))return e;const t=e[Ec];let n;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=bB(e,t.scope_.immer_.useStrictShallowCopy_)}else n=bB(e,!0);return XN(n,(r,i)=>{Cve(n,r,Tve(i))}),t&&(t.finalized_=!1),n}var Cc=new U$e,V$e=Cc.produce;Cc.produceWithPatches.bind(Cc);Cc.setAutoFreeze.bind(Cc);Cc.setUseStrictShallowCopy.bind(Cc);Cc.applyPatches.bind(Cc);Cc.createDraft.bind(Cc);Cc.finishDraft.bind(Cc);const G$e=e=>(t,n,r)=>(r.setState=(i,o,...a)=>{const s=typeof i=="function"?V$e(i):i;return t(s,o,...a)},e(r.setState,n,r)),Ld=G$e,W$e="dev",Ove="open",Lee="prod",q$e="quanjing",Y$e="COMMUNITY",Rve="prod-open";console.log("Current VITE_CONFIG_ENV:","prod-open");let Wo;switch(Rve){case"dev":Wo={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:W$e,CLIENT:"WEB",USER_PRIVACY_URL:"http://127.0.0.1:9003/privacy",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,SHOW_TRIAL_TIP:!1};break;case"prod-open":Wo={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:Ove,CLIENT:"WEB",USER_PRIVACY_URL:"http://127.0.0.1:9003/privacy",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,SHOW_TRIAL_TIP:!1};break;case"prod-quanjing":Wo={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:q$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,SHOW_TRIAL_TIP:!1};break;case"prod-web":Wo={API_URL:"https://api.weiyuai.cn",MQTT_URL:"wss://api.weiyuai.cn/websocket",HTML_URL:"https://www.weiyuai.cn",IS_DEBUG:!1,SERVER_MODE:Lee,CLIENT:"WEB",USER_PRIVACY_URL:"https://www.weiyuai.cn/privacy.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,SHOW_TRIAL_TIP:!1};break;default:Wo={API_URL:"https://api.weiyuai.cn",MQTT_URL:"wss://api.weiyuai.cn/websocket",HTML_URL:"https://www.weiyuai.cn",IS_DEBUG:!1,SERVER_MODE:Lee,CLIENT:"ELECTRON",USER_PRIVACY_URL:"https://www.weiyuai.cn/privacy.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,SHOW_TRIAL_TIP:!1}}console.log("config.API_BASE_URL: ",Rve,Wo);const ja=navigator.userAgent.toLowerCase().indexOf("electron")>-1,D9=Wo.API_URL,$ee=Wo.MQTT_URL;Wo.HTML_URL;const ud=Wo.IS_DEBUG,K$e=Wo.SERVER_MODE,Or=Wo.CLIENT,Q$e=Wo.USER_PRIVACY_URL,X$e=Wo.SHOW_SWITCH_SERVER,Z$e=Wo.SHOW_SCAN_LOGIN,J$e=Wo.LOGO_URL,e7e=Wo.LOGO_NAME;Wo.SHOW_CREATE_GROUP;Wo.SHOW_CREATE_LLM;Wo.SHOW_CONTACTS;Wo.SHOW_FAVORITE;Wo.SHOW_TRIAL_TIP;const hu="BYTEDESK",Fee="locale",Bee="mode",hy="team",P1="agent",e4="personal",Hee="i18n.",iR="i18n.new.message",Ave="ANONYMOUS",cc="bytedesk_login_credentials",jee="THEME_MODE_TYPE",Uee="THEME_NAME_TYPE",cI="PLAY_AUDIO",ex="NETWORK_STATUS_NOTIFICATION",tx="CONFIG_ENABLED_AGENT",uI="CONFIG_API_URL_AGENT",dI="CONFIG_WEBSOCKET_URL_AGENT",L9="CONFIG_HTML_URL_AGENT",t_="true",t7e="false",Zb="CONFIG_CUSTOM_ENABLED_AGENT",_C="CONFIG_CUSTOM_API_URL_AGENT",SC="CONFIG_CUSTOM_WEBSOCKET_URL_AGENT",Ive="CONFIG_PROPERTIES",n7e="SCREENSHOT_OK",r7e="EVENT_BUS_SERVER_ERROR_500",Zm="EVENT_BUS_TOKEN_INVALID",hw="EVENT_BUS_MQTT_MESSAGE",CB="EVENT_BUS_MQTT_CONNECTED",xB="EVENT_BUS_MQTT_OFFLINE",wB="EVENT_BUS_MQTT_CLOSE",TB="EVENT_BUS_MQTT_DISCONNECTED",OB="EVENT_BUS_MQTT_ERROR",RB="EVENT_BUS_MQTT_END",Nve="EVENT_BUS_MESSAGE_TYPE_STATUS",i7e="EVENT_BUS_MESSAGE_TYPE_TYPING",o7e="EVENT_BUS_MESSAGE_TYPE_PROCESSING",a7e="EVENT_BUS_MESSAGE_TYPE_STREAM",s7e="EVENT_BUS_MESSAGE_TYPE_PREVIEW",AB="EVENT_BUS_MESSAGE_TYPE_TRANSFER",IB="EVENT_BUS_MESSAGE_TYPE_TRANSFER_ACCEPT",NB="EVENT_BUS_MESSAGE_TYPE_TRANSFER_REJECT",l7e="EVENT_BUS_SCREEN_CAPTURE_IMAGE",c7e="AUTH_STORE",Jm="ACCESS_TOKEN",u7e="ORGANIZATION_STORE",d7e="MEMBER_STORE",f7e="MESSAGE_STORE",p7e="CONTACT_STORE",h7e="USER_STORE",m7e="SETTINGS_STORE",g7e="THREAD_STORE",v7e="DEVICE_STORE",b7e="AGENT_STORE",y7e="WORKGROUP_STORE",_7e="member",Mve="device",S7e="MOBILE_LOGIN",E7e="MOBILE_RESET",C7e="MOBILE_VERIFY",x7e="EMAIL_RESET",w7e="EMAIL_VERIFY",T7e="PENDING",O7e="SCANNED",R7e="CONFIRMED",A7e="EXPIRED",I7e="https://cdn.weiyuai.cn/agent/assets/sound/dingdong.wav",N7e="https://cdn.weiyuai.cn/agent/assets/css/scrollbar.css",M7e="https://www.weiyuai.cn/download.html",zee="AGENT",Vee="USER",Gee="AGENT",Wee="WORKGROUP",qee="QUEUING",Yee="CLOSED",Kee="SENDING",MB="SUCCESS",k7e="TRANSFER_ACCEPT",P7e="TRANSFER_REJECT",kB="CONTINUE",kve="SYSTEM",D7e="QUEUE",L7e="TEXT",$7e="IMAGE",F7e="FILE",B7e="AUDIO",H7e="VIDEO",PB="TYPING",DB="PROCESSING",mw="STREAM",Qee="PREVIEW",Xee="RECALL",LB="DELIVERED",$B="READ",j7e="FAQ_UP",U7e="FAQ_DOWN",z7e="ROBOT_UP",V7e="ROBOT_DOWN",G7e="RATE_SUBMIT",W7e="RATE_CANCEL",gw="AUTO_CLOSED",vw="AGENT_CLOSED",Zee="TRANSFER",Jee="TRANSFER_ACCEPT",ete="TRANSFER_REJECT",tte="AVAILABLE",$9="OFFLINE",nte="REST",q7e="org/group/",Y7e="HELPCENTER",eg="NOTEBASE",F9="FAQ",K7e="CHAT",FB="lastPath",Q7e="ROLE_SUPER",X7e="ROLE_ADMIN",Z7e="ROLE_MEMBER",J7e="ROLE_AGENT",eFe="ARTICLE",HT=Ac()(Pd(Dd(Ld((e,t)=>({accessToken:"",setAccessToken(n){localStorage.setItem(Jm,n),e({accessToken:n})},getAccessToken(){return t().accessToken},removeAccessToken(){localStorage.removeItem(Jm),e({accessToken:""})}})),{name:c7e}))),tFe=Ac()(Pd(Dd(Ld(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:m7e})));var cv={},Pve={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})(Pve);var wr=Pve.exports,h5={};Object.defineProperty(h5,"__esModule",{value:!0});h5.default=void 0;var nFe={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"};h5.default=nFe;var m5={},jT={},g5={},Dve={exports:{}},Lve={exports:{}},$ve={exports:{}},Fve={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})(Fve);var uv=Fve.exports,Bve={exports:{}};(function(e){var t=uv.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})(Bve);var rFe=Bve.exports;(function(e){var t=uv.default,n=rFe;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})($ve);var iFe=$ve.exports;(function(e){var t=iFe;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})(Lve);var Hve=Lve.exports;(function(e){var t=Hve;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})(Dve);var dv=Dve.exports,rS={};Object.defineProperty(rS,"__esModule",{value:!0});rS.commonLocale=void 0;rS.commonLocale={yearFormat:"YYYY",dayFormat:"D",cellMeridiemFormat:"A",monthBeforeYear:!0};var oFe=wr.default;Object.defineProperty(g5,"__esModule",{value:!0});g5.default=void 0;var rte=oFe(dv),aFe=rS,sFe=(0,rte.default)((0,rte.default)({},aFe.commonLocale),{},{locale:"en_US",today:"Today",now:"Now",backToToday:"Back to today",ok:"OK",clear:"Clear",week:"Week",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"});g5.default=sFe;var UT={};Object.defineProperty(UT,"__esModule",{value:!0});UT.default=void 0;const lFe={placeholder:"Select time",rangePlaceholder:["Start time","End time"]};UT.default=lFe;var jve=wr.default;Object.defineProperty(jT,"__esModule",{value:!0});jT.default=void 0;var cFe=jve(g5),uFe=jve(UT);const dFe={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"]},cFe.default),timePickerLocale:Object.assign({},uFe.default)};jT.default=dFe;var fFe=wr.default;Object.defineProperty(m5,"__esModule",{value:!0});m5.default=void 0;var pFe=fFe(jT);m5.default=pFe.default;var v5=wr.default;Object.defineProperty(cv,"__esModule",{value:!0});cv.default=void 0;var hFe=v5(h5),mFe=v5(m5),gFe=v5(jT),vFe=v5(UT);const ql="${label} is not a valid ${type}",bFe={locale:"en",Pagination:hFe.default,DatePicker:gFe.default,TimePicker:vFe.default,Calendar:mFe.default,global:{placeholder:"Please select",close:"Close"},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:ql,method:ql,array:ql,object:ql,number:ql,date:ql,boolean:ql,integer:ql,float:ql,regexp:ql,email:ql,url:ql,hex:ql},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"}};cv.default=bFe;var yFe=cv;const ite=oi(yFe);var b5={},y5={};Object.defineProperty(y5,"__esModule",{value:!0});y5.default=void 0;var _Fe={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:"页码"};y5.default=_Fe;var _5={},zT={},S5={},SFe=wr.default;Object.defineProperty(S5,"__esModule",{value:!0});S5.default=void 0;var ote=SFe(dv),EFe=rS,CFe=(0,ote.default)((0,ote.default)({},EFe.commonLocale),{},{locale:"zh_CN",today:"今天",now:"此刻",backToToday:"返回今天",ok:"确定",timeSelect:"选择时间",dateSelect:"选择日期",weekSelect:"选择周",clear:"清除",week:"周",month:"月",year:"年",previousMonth:"上个月 (翻页上键)",nextMonth:"下个月 (翻页下键)",monthSelect:"选择月份",yearSelect:"选择年份",decadeSelect:"选择年代",previousYear:"上一年 (Control键加左方向键)",nextYear:"下一年 (Control键加右方向键)",previousDecade:"上一年代",nextDecade:"下一年代",previousCentury:"上一世纪",nextCentury:"下一世纪",yearFormat:"YYYY年",cellDateFormat:"D",monthBeforeYear:!1});S5.default=CFe;var VT={};Object.defineProperty(VT,"__esModule",{value:!0});VT.default=void 0;const xFe={placeholder:"请选择时间",rangePlaceholder:["开始时间","结束时间"]};VT.default=xFe;var Uve=wr.default;Object.defineProperty(zT,"__esModule",{value:!0});zT.default=void 0;var wFe=Uve(S5),TFe=Uve(VT);const zve={lang:Object.assign({placeholder:"请选择日期",yearPlaceholder:"请选择年份",quarterPlaceholder:"请选择季度",monthPlaceholder:"请选择月份",weekPlaceholder:"请选择周",rangePlaceholder:["开始日期","结束日期"],rangeYearPlaceholder:["开始年份","结束年份"],rangeMonthPlaceholder:["开始月份","结束月份"],rangeQuarterPlaceholder:["开始季度","结束季度"],rangeWeekPlaceholder:["开始周","结束周"]},wFe.default),timePickerLocale:Object.assign({},TFe.default)};zve.lang.ok="确定";zT.default=zve;var OFe=wr.default;Object.defineProperty(_5,"__esModule",{value:!0});_5.default=void 0;var RFe=OFe(zT);_5.default=RFe.default;var E5=wr.default;Object.defineProperty(b5,"__esModule",{value:!0});b5.default=void 0;var AFe=E5(y5),IFe=E5(_5),NFe=E5(zT),MFe=E5(VT);const Yl="${label}不是一个有效的${type}",kFe={locale:"zh-cn",Pagination:AFe.default,DatePicker:NFe.default,TimePicker:MFe.default,Calendar:IFe.default,global:{placeholder:"请选择",close:"关闭"},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:Yl,method:Yl,array:Yl,object:Yl,number:Yl,date:Yl,boolean:Yl,integer:Yl,float:Yl,regexp:Yl,email:Yl,url:Yl,hex:Yl},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:"渐变色"}};b5.default=kFe;var PFe=b5;const oR=oi(PFe);var C5={},x5={};Object.defineProperty(x5,"__esModule",{value:!0});x5.default=void 0;var DFe={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:"頁碼"};x5.default=DFe;var w5={},GT={},T5={},LFe=wr.default;Object.defineProperty(T5,"__esModule",{value:!0});T5.default=void 0;var ate=LFe(dv),$Fe=rS,FFe=(0,ate.default)((0,ate.default)({},$Fe.commonLocale),{},{locale:"zh_TW",today:"今天",now:"此刻",backToToday:"返回今天",ok:"確定",timeSelect:"選擇時間",dateSelect:"選擇日期",weekSelect:"選擇周",clear:"清除",week:"週",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});T5.default=FFe;var WT={};Object.defineProperty(WT,"__esModule",{value:!0});WT.default=void 0;const BFe={placeholder:"請選擇時間"};WT.default=BFe;var Vve=wr.default;Object.defineProperty(GT,"__esModule",{value:!0});GT.default=void 0;var HFe=Vve(T5),jFe=Vve(WT);const Gve={lang:Object.assign({placeholder:"請選擇日期",yearPlaceholder:"請選擇年份",quarterPlaceholder:"請選擇季度",monthPlaceholder:"請選擇月份",weekPlaceholder:"請選擇周",rangePlaceholder:["開始日期","結束日期"],rangeYearPlaceholder:["開始年份","結束年份"],rangeMonthPlaceholder:["開始月份","結束月份"],rangeQuarterPlaceholder:["開始季度","結束季度"],rangeWeekPlaceholder:["開始周","結束周"]},HFe.default),timePickerLocale:Object.assign({},jFe.default)};Gve.lang.ok="確 定";GT.default=Gve;var UFe=wr.default;Object.defineProperty(w5,"__esModule",{value:!0});w5.default=void 0;var zFe=UFe(GT);w5.default=zFe.default;var O5=wr.default;Object.defineProperty(C5,"__esModule",{value:!0});C5.default=void 0;var VFe=O5(x5),GFe=O5(w5),WFe=O5(GT),qFe=O5(WT);const Kl="${label}不是一個有效的${type}",YFe={locale:"zh-tw",Pagination:VFe.default,DatePicker:WFe.default,TimePicker:qFe.default,Calendar:GFe.default,global:{placeholder:"請選擇",close:"關閉"},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:"展開",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:"漸變色"}};C5.default=YFe;var KFe=C5;const QFe=oi(KFe);function PW(){const e=localStorage.getItem(Uee)||"light",[t,n]=h.useState(e),r=localStorage.getItem(jee)||"system",[i,o]=h.useState(r);return h.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")}))},[]),h.useEffect(()=>{localStorage.setItem(jee,i),i==="light"?n("light"):i==="dark"?n("dark"):i==="system"&&(window.matchMedia("(prefers-color-scheme: dark)").matches?n("dark"):n("light"))},[i]),h.useEffect(()=>{localStorage.setItem(Uee,t)},[t]),{themeName:t,setThemeName:n,themeMode:i,setThemeMode:o,isDarkMode:t==="dark",isLightMode:t==="light"}}function Wve(e,t){return function(){return e.apply(t,arguments)}}const{toString:XFe}=Object.prototype,{getPrototypeOf:DW}=Object,{iterator:R5,toStringTag:qve}=Symbol,A5=(e=>t=>{const n=XFe.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),$d=e=>(e=e.toLowerCase(),t=>A5(t)===e),I5=e=>t=>typeof t===e,{isArray:iS}=Array,bw=I5("undefined");function ZFe(e){return e!==null&&!bw(e)&&e.constructor!==null&&!bw(e.constructor)&&Ml(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Yve=$d("ArrayBuffer");function JFe(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Yve(e.buffer),t}const eBe=I5("string"),Ml=I5("function"),Kve=I5("number"),N5=e=>e!==null&&typeof e=="object",tBe=e=>e===!0||e===!1,fI=e=>{if(A5(e)!=="object")return!1;const t=DW(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(qve in e)&&!(R5 in e)},nBe=$d("Date"),rBe=$d("File"),iBe=$d("Blob"),oBe=$d("FileList"),aBe=e=>N5(e)&&Ml(e.pipe),sBe=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Ml(e.append)&&((t=A5(e))==="formdata"||t==="object"&&Ml(e.toString)&&e.toString()==="[object FormData]"))},lBe=$d("URLSearchParams"),[cBe,uBe,dBe,fBe]=["ReadableStream","Request","Response","Headers"].map($d),pBe=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function qT(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 Qve(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 M0=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Xve=e=>!bw(e)&&e!==M0;function BB(){const{caseless:e}=Xve(this)&&this||{},t={},n=(r,i)=>{const o=e&&Qve(t,i)||i;fI(t[o])&&fI(r)?t[o]=BB(t[o],r):fI(r)?t[o]=BB({},r):iS(r)?t[o]=r.slice():t[o]=r};for(let r=0,i=arguments.length;r<i;r++)arguments[r]&&qT(arguments[r],n);return t}const hBe=(e,t,n,{allOwnKeys:r}={})=>(qT(t,(i,o)=>{n&&Ml(i)?e[o]=Wve(i,n):e[o]=i},{allOwnKeys:r}),e),mBe=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),gBe=(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)},vBe=(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&&DW(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},bBe=(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},yBe=e=>{if(!e)return null;if(iS(e))return e;let t=e.length;if(!Kve(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},_Be=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&DW(Uint8Array)),SBe=(e,t)=>{const r=(e&&e[R5]).call(e);let i;for(;(i=r.next())&&!i.done;){const o=i.value;t.call(e,o[0],o[1])}},EBe=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},CBe=$d("HTMLFormElement"),xBe=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,i){return r.toUpperCase()+i}),ste=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),wBe=$d("RegExp"),Zve=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};qT(n,(i,o)=>{let a;(a=t(i,o,e))!==!1&&(r[o]=a||i)}),Object.defineProperties(e,r)},TBe=e=>{Zve(e,(t,n)=>{if(Ml(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(Ml(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+"'")})}})},OBe=(e,t)=>{const n={},r=i=>{i.forEach(o=>{n[o]=!0})};return iS(e)?r(e):r(String(e).split(t)),n},RBe=()=>{},ABe=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function IBe(e){return!!(e&&Ml(e.append)&&e[qve]==="FormData"&&e[R5])}const NBe=e=>{const t=new Array(10),n=(r,i)=>{if(N5(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[i]=r;const o=iS(r)?[]:{};return qT(r,(a,s)=>{const l=n(a,i+1);!bw(l)&&(o[s]=l)}),t[i]=void 0,o}}return r};return n(e,0)},MBe=$d("AsyncFunction"),kBe=e=>e&&(N5(e)||Ml(e))&&Ml(e.then)&&Ml(e.catch),Jve=((e,t)=>e?setImmediate:t?((n,r)=>(M0.addEventListener("message",({source:i,data:o})=>{i===M0&&o===n&&r.length&&r.shift()()},!1),i=>{r.push(i),M0.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",Ml(M0.postMessage)),PBe=typeof queueMicrotask<"u"?queueMicrotask.bind(M0):typeof process<"u"&&process.nextTick||Jve,DBe=e=>e!=null&&Ml(e[R5]),jt={isArray:iS,isArrayBuffer:Yve,isBuffer:ZFe,isFormData:sBe,isArrayBufferView:JFe,isString:eBe,isNumber:Kve,isBoolean:tBe,isObject:N5,isPlainObject:fI,isReadableStream:cBe,isRequest:uBe,isResponse:dBe,isHeaders:fBe,isUndefined:bw,isDate:nBe,isFile:rBe,isBlob:iBe,isRegExp:wBe,isFunction:Ml,isStream:aBe,isURLSearchParams:lBe,isTypedArray:_Be,isFileList:oBe,forEach:qT,merge:BB,extend:hBe,trim:pBe,stripBOM:mBe,inherits:gBe,toFlatObject:vBe,kindOf:A5,kindOfTest:$d,endsWith:bBe,toArray:yBe,forEachEntry:SBe,matchAll:EBe,isHTMLForm:CBe,hasOwnProperty:ste,hasOwnProp:ste,reduceDescriptors:Zve,freezeMethods:TBe,toObjectSet:OBe,toCamelCase:xBe,noop:RBe,toFiniteNumber:ABe,findKey:Qve,global:M0,isContextDefined:Xve,isSpecCompliantForm:IBe,toJSONObject:NBe,isAsyncFn:MBe,isThenable:kBe,setImmediate:Jve,asap:PBe,isIterable:DBe};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)}jt.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:jt.toJSONObject(this.config),code:this.code,status:this.status}}});const ebe=Ir.prototype,tbe={};["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=>{tbe[e]={value:e}});Object.defineProperties(Ir,tbe);Object.defineProperty(ebe,"isAxiosError",{value:!0});Ir.from=(e,t,n,r,i,o)=>{const a=Object.create(ebe);return jt.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 LBe=null;function HB(e){return jt.isPlainObject(e)||jt.isArray(e)}function nbe(e){return jt.endsWith(e,"[]")?e.slice(0,-2):e}function lte(e,t,n){return e?e.concat(t).map(function(i,o){return i=nbe(i),!n&&o?"["+i+"]":i}).join(n?".":""):t}function $Be(e){return jt.isArray(e)&&!e.some(HB)}const FBe=jt.toFlatObject(jt,{},null,function(t){return/^is[A-Z]/.test(t)});function M5(e,t,n){if(!jt.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=jt.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(g,v){return!jt.isUndefined(v[g])});const r=n.metaTokens,i=n.visitor||u,o=n.dots,a=n.indexes,l=(n.Blob||typeof Blob<"u"&&Blob)&&jt.isSpecCompliantForm(t);if(!jt.isFunction(i))throw new TypeError("visitor must be a function");function c(m){if(m===null)return"";if(jt.isDate(m))return m.toISOString();if(jt.isBoolean(m))return m.toString();if(!l&&jt.isBlob(m))throw new Ir("Blob is not supported. Use a Buffer instead.");return jt.isArrayBuffer(m)||jt.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(jt.endsWith(g,"{}"))g=r?g:g.slice(0,-2),m=JSON.stringify(m);else if(jt.isArray(m)&&$Be(m)||(jt.isFileList(m)||jt.endsWith(g,"[]"))&&(y=jt.toArray(m)))return g=nbe(g),y.forEach(function(_,S){!(jt.isUndefined(_)||_===null)&&t.append(a===!0?lte([g],S,o):a===null?g:g+"[]",c(_))}),!1}return HB(m)?!0:(t.append(lte(v,g,o),c(m)),!1)}const d=[],f=Object.assign(FBe,{defaultVisitor:u,convertValue:c,isVisitable:HB});function p(m,g){if(!jt.isUndefined(m)){if(d.indexOf(m)!==-1)throw Error("Circular reference detected in "+g.join("."));d.push(m),jt.forEach(m,function(y,b){(!(jt.isUndefined(y)||y===null)&&i.call(t,y,jt.isString(b)?b.trim():b,g,f))===!0&&p(y,g?g.concat(b):[b])}),d.pop()}}if(!jt.isObject(e))throw new TypeError("data must be an object");return p(e),t}function cte(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function LW(e,t){this._pairs=[],e&&M5(e,this,t)}const rbe=LW.prototype;rbe.append=function(t,n){this._pairs.push([t,n])};rbe.toString=function(t){const n=t?function(r){return t.call(this,r,cte)}:cte;return this._pairs.map(function(i){return n(i[0])+"="+n(i[1])},"").join("&")};function BBe(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function ibe(e,t,n){if(!t)return e;const r=n&&n.encode||BBe;jt.isFunction(n)&&(n={serialize:n});const i=n&&n.serialize;let o;if(i?o=i(t,n):o=jt.isURLSearchParams(t)?t.toString():new LW(t,n).toString(r),o){const a=e.indexOf("#");a!==-1&&(e=e.slice(0,a)),e+=(e.indexOf("?")===-1?"?":"&")+o}return e}class ute{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){jt.forEach(this.handlers,function(r){r!==null&&t(r)})}}const obe={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},HBe=typeof URLSearchParams<"u"?URLSearchParams:LW,jBe=typeof FormData<"u"?FormData:null,UBe=typeof Blob<"u"?Blob:null,zBe={isBrowser:!0,classes:{URLSearchParams:HBe,FormData:jBe,Blob:UBe},protocols:["http","https","file","blob","url","data"]},$W=typeof window<"u"&&typeof document<"u",jB=typeof navigator=="object"&&navigator||void 0,VBe=$W&&(!jB||["ReactNative","NativeScript","NS"].indexOf(jB.product)<0),GBe=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",WBe=$W&&window.location.href||"http://localhost",qBe=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:$W,hasStandardBrowserEnv:VBe,hasStandardBrowserWebWorkerEnv:GBe,navigator:jB,origin:WBe},Symbol.toStringTag,{value:"Module"})),Os={...qBe,...zBe};function YBe(e,t){return M5(e,new Os.classes.URLSearchParams,Object.assign({visitor:function(n,r,i,o){return Os.isNode&&jt.isBuffer(n)?(this.append(r,n.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)}},t))}function KBe(e){return jt.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function QBe(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 abe(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&&jt.isArray(i)?i.length:a,l?(jt.hasOwnProp(i,a)?i[a]=[i[a],r]:i[a]=r,!s):((!i[a]||!jt.isObject(i[a]))&&(i[a]=[]),t(n,r,i[a],o)&&jt.isArray(i[a])&&(i[a]=QBe(i[a])),!s)}if(jt.isFormData(e)&&jt.isFunction(e.entries)){const n={};return jt.forEachEntry(e,(r,i)=>{t(KBe(r),i,n,0)}),n}return null}function XBe(e,t,n){if(jt.isString(e))try{return(t||JSON.parse)(e),jt.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const YT={transitional:obe,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",i=r.indexOf("application/json")>-1,o=jt.isObject(t);if(o&&jt.isHTMLForm(t)&&(t=new FormData(t)),jt.isFormData(t))return i?JSON.stringify(abe(t)):t;if(jt.isArrayBuffer(t)||jt.isBuffer(t)||jt.isStream(t)||jt.isFile(t)||jt.isBlob(t)||jt.isReadableStream(t))return t;if(jt.isArrayBufferView(t))return t.buffer;if(jt.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 YBe(t,this.formSerializer).toString();if((s=jt.isFileList(t))||r.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return M5(s?{"files[]":t}:t,l&&new l,this.formSerializer)}}return o||i?(n.setContentType("application/json",!1),XBe(t)):t}],transformResponse:[function(t){const n=this.transitional||YT.transitional,r=n&&n.forcedJSONParsing,i=this.responseType==="json";if(jt.isResponse(t)||jt.isReadableStream(t))return t;if(t&&jt.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:Os.classes.FormData,Blob:Os.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};jt.forEach(["delete","get","head","post","put","patch"],e=>{YT.headers[e]={}});const ZBe=jt.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"]),JBe=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]&&ZBe[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},dte=Symbol("internals");function xE(e){return e&&String(e).trim().toLowerCase()}function pI(e){return e===!1||e==null?e:jt.isArray(e)?e.map(pI):String(e)}function eHe(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 tHe=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function B9(e,t,n,r,i){if(jt.isFunction(r))return r.call(this,t,n);if(i&&(t=n),!!jt.isString(t)){if(jt.isString(r))return t.indexOf(r)!==-1;if(jt.isRegExp(r))return r.test(t)}}function nHe(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function rHe(e,t){const n=jt.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})})}let kl=class{constructor(t){t&&this.set(t)}set(t,n,r){const i=this;function o(s,l,c){const u=xE(l);if(!u)throw new Error("header name must be a non-empty string");const d=jt.findKey(i,u);(!d||i[d]===void 0||c===!0||c===void 0&&i[d]!==!1)&&(i[d||l]=pI(s))}const a=(s,l)=>jt.forEach(s,(c,u)=>o(c,u,l));if(jt.isPlainObject(t)||t instanceof this.constructor)a(t,n);else if(jt.isString(t)&&(t=t.trim())&&!tHe(t))a(JBe(t),n);else if(jt.isObject(t)&&jt.isIterable(t)){let s={},l,c;for(const u of t){if(!jt.isArray(u))throw TypeError("Object iterator must return a key-value pair");s[c=u[0]]=(l=s[c])?jt.isArray(l)?[...l,u[1]]:[l,u[1]]:u[1]}a(s,n)}else t!=null&&o(n,t,r);return this}get(t,n){if(t=xE(t),t){const r=jt.findKey(this,t);if(r){const i=this[r];if(!n)return i;if(n===!0)return eHe(i);if(jt.isFunction(n))return n.call(this,i,r);if(jt.isRegExp(n))return n.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=xE(t),t){const r=jt.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||B9(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let i=!1;function o(a){if(a=xE(a),a){const s=jt.findKey(r,a);s&&(!n||B9(r,r[s],s,n))&&(delete r[s],i=!0)}}return jt.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||B9(this,this[o],o,t,!0))&&(delete this[o],i=!0)}return i}normalize(t){const n=this,r={};return jt.forEach(this,(i,o)=>{const a=jt.findKey(r,o);if(a){n[a]=pI(i),delete n[o];return}const s=t?nHe(o):String(o).trim();s!==o&&delete n[o],n[s]=pI(i),r[s]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return jt.forEach(this,(r,i)=>{r!=null&&r!==!1&&(n[i]=t&&jt.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(`
`)}getSetCookie(){return this.get("set-cookie")||[]}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[dte]=this[dte]={accessors:{}}).accessors,i=this.prototype;function o(a){const s=xE(a);r[s]||(rHe(i,a),r[s]=!0)}return jt.isArray(t)?t.forEach(o):o(t),this}};kl.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);jt.reduceDescriptors(kl.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});jt.freezeMethods(kl);function H9(e,t){const n=this||YT,r=t||n,i=kl.from(r.headers);let o=r.data;return jt.forEach(e,function(s){o=s.call(n,o,i.normalize(),t?t.status:void 0)}),i.normalize(),o}function sbe(e){return!!(e&&e.__CANCEL__)}function oS(e,t,n){Ir.call(this,e??"canceled",Ir.ERR_CANCELED,t,n),this.name="CanceledError"}jt.inherits(oS,Ir,{__CANCEL__:!0});function lbe(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 iHe(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function oHe(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 p=u&&c-u;return p?Math.round(f*1e3/p):void 0}}function aHe(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 t4=(e,t,n=3)=>{let r=0;const i=oHe(50,250);return aHe(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)},fte=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},pte=e=>(...t)=>jt.asap(()=>e(...t)),sHe=Os.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,Os.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(Os.origin),Os.navigator&&/(msie|trident)/i.test(Os.navigator.userAgent)):()=>!0,lHe=Os.hasStandardBrowserEnv?{write(e,t,n,r,i,o){const a=[e+"="+encodeURIComponent(t)];jt.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),jt.isString(r)&&a.push("path="+r),jt.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 cHe(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function uHe(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function cbe(e,t,n){let r=!cHe(t);return e&&(r||n==!1)?uHe(e,t):t}const hte=e=>e instanceof kl?{...e}:e;function D1(e,t){t=t||{};const n={};function r(c,u,d,f){return jt.isPlainObject(c)&&jt.isPlainObject(u)?jt.merge.call({caseless:f},c,u):jt.isPlainObject(u)?jt.merge({},u):jt.isArray(u)?u.slice():u}function i(c,u,d,f){if(jt.isUndefined(u)){if(!jt.isUndefined(c))return r(void 0,c,d,f)}else return r(c,u,d,f)}function o(c,u){if(!jt.isUndefined(u))return r(void 0,u)}function a(c,u){if(jt.isUndefined(u)){if(!jt.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(hte(c),hte(u),d,!0)};return jt.forEach(Object.keys(Object.assign({},e,t)),function(u){const d=l[u]||i,f=d(e[u],t[u],u);jt.isUndefined(f)&&d!==s||(n[u]=f)}),n}const ube=e=>{const t=D1({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:i,xsrfCookieName:o,headers:a,auth:s}=t;t.headers=a=kl.from(a),t.url=ibe(cbe(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),s&&a.set("Authorization","Basic "+btoa((s.username||"")+":"+(s.password?unescape(encodeURIComponent(s.password)):"")));let l;if(jt.isFormData(n)){if(Os.hasStandardBrowserEnv||Os.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(Os.hasStandardBrowserEnv&&(r&&jt.isFunction(r)&&(r=r(t)),r||r!==!1&&sHe(t.url))){const c=i&&o&&lHe.read(o);c&&a.set(i,c)}return t},dHe=typeof XMLHttpRequest<"u",fHe=dHe&&function(e){return new Promise(function(n,r){const i=ube(e);let o=i.data;const a=kl.from(i.headers).normalize();let{responseType:s,onUploadProgress:l,onDownloadProgress:c}=i,u,d,f,p,m;function g(){p&&p(),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 _=kl.from("getAllResponseHeaders"in v&&v.getAllResponseHeaders()),x={data:!s||s==="text"||s==="json"?v.responseText:v.response,status:v.status,statusText:v.statusText,headers:_,config:e,request:v};lbe(function(C){n(C),g()},function(C){r(C),g()},x),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 S=i.timeout?"timeout of "+i.timeout+"ms exceeded":"timeout exceeded";const x=i.transitional||obe;i.timeoutErrorMessage&&(S=i.timeoutErrorMessage),r(new Ir(S,x.clarifyTimeoutError?Ir.ETIMEDOUT:Ir.ECONNABORTED,e,v)),v=null},o===void 0&&a.setContentType(null),"setRequestHeader"in v&&jt.forEach(a.toJSON(),function(S,x){v.setRequestHeader(x,S)}),jt.isUndefined(i.withCredentials)||(v.withCredentials=!!i.withCredentials),s&&s!=="json"&&(v.responseType=i.responseType),c&&([f,m]=t4(c,!0),v.addEventListener("progress",f)),l&&v.upload&&([d,p]=t4(l),v.upload.addEventListener("progress",d),v.upload.addEventListener("loadend",p)),(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=iHe(i.url);if(b&&Os.protocols.indexOf(b)===-1){r(new Ir("Unsupported protocol "+b+":",Ir.ERR_BAD_REQUEST,e));return}v.send(o||null)})},pHe=(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=()=>jt.asap(s),l}},hHe=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},mHe=async function*(e,t){for await(const n of gHe(e))yield*hHe(n,t)},gHe=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()}},mte=(e,t,n,r)=>{const i=mHe(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})},k5=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",dbe=k5&&typeof ReadableStream=="function",vHe=k5&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),fbe=(e,...t)=>{try{return!!e(...t)}catch{return!1}},bHe=dbe&&fbe(()=>{let e=!1;const t=new Request(Os.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),gte=64*1024,UB=dbe&&fbe(()=>jt.isReadableStream(new Response("").body)),n4={stream:UB&&(e=>e.body)};k5&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!n4[t]&&(n4[t]=jt.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 yHe=async e=>{if(e==null)return 0;if(jt.isBlob(e))return e.size;if(jt.isSpecCompliantForm(e))return(await new Request(Os.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(jt.isArrayBufferView(e)||jt.isArrayBuffer(e))return e.byteLength;if(jt.isURLSearchParams(e)&&(e=e+""),jt.isString(e))return(await vHe(e)).byteLength},_He=async(e,t)=>{const n=jt.toFiniteNumber(e.getContentLength());return n??yHe(t)},SHe=k5&&(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}=ube(e);c=c?(c+"").toLowerCase():"text";let p=pHe([i,o&&o.toAbortSignal()],a),m;const g=p&&p.unsubscribe&&(()=>{p.unsubscribe()});let v;try{if(l&&bHe&&n!=="get"&&n!=="head"&&(v=await _He(u,r))!==0){let x=new Request(t,{method:"POST",body:r,duplex:"half"}),E;if(jt.isFormData(r)&&(E=x.headers.get("content-type"))&&u.setContentType(E),x.body){const[C,w]=fte(v,t4(pte(l)));r=mte(x.body,gte,C,w)}}jt.isString(d)||(d=d?"include":"omit");const y="credentials"in Request.prototype;m=new Request(t,{...f,signal:p,method:n.toUpperCase(),headers:u.normalize().toJSON(),body:r,duplex:"half",credentials:y?d:void 0});let b=await fetch(m,f);const _=UB&&(c==="stream"||c==="response");if(UB&&(s||_&&g)){const x={};["status","statusText","headers"].forEach(O=>{x[O]=b[O]});const E=jt.toFiniteNumber(b.headers.get("content-length")),[C,w]=s&&fte(E,t4(pte(s),!0))||[];b=new Response(mte(b.body,gte,C,()=>{w&&w(),g&&g()}),x)}c=c||"text";let S=await n4[jt.findKey(n4,c)||"text"](b,e);return!_&&g&&g(),await new Promise((x,E)=>{lbe(x,E,{data:S,headers:kl.from(b.headers),status:b.status,statusText:b.statusText,config:e,request:m})})}catch(y){throw g&&g(),y&&y.name==="TypeError"&&/Load failed|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)}}),zB={http:LBe,xhr:fHe,fetch:SHe};jt.forEach(zB,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const vte=e=>`- ${e}`,EHe=e=>jt.isFunction(e)||e===null||e===!1,pbe={getAdapter:e=>{e=jt.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,!EHe(n)&&(r=zB[(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(vte).join(`
`):" "+vte(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:zB};function j9(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new oS(null,e)}function bte(e){return j9(e),e.headers=kl.from(e.headers),e.data=H9.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),pbe.getAdapter(e.adapter||YT.adapter)(e).then(function(r){return j9(e),r.data=H9.call(e,e.transformResponse,r),r.headers=kl.from(r.headers),r},function(r){return sbe(r)||(j9(e),r&&r.response&&(r.response.data=H9.call(e,e.transformResponse,r.response),r.response.headers=kl.from(r.response.headers))),Promise.reject(r)})}const hbe="1.10.0",P5={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{P5[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const yte={};P5.transitional=function(t,n,r){function i(o,a){return"[Axios v"+hbe+"] 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&&!yte[a]&&(yte[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}};P5.spelling=function(t){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${t}`),!0)};function CHe(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 hI={assertOptions:CHe,validators:P5},Qd=hI.validators;let i1=class{constructor(t){this.defaults=t||{},this.interceptors={request:new ute,response:new ute}}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=D1(this.defaults,n);const{transitional:r,paramsSerializer:i,headers:o}=n;r!==void 0&&hI.assertOptions(r,{silentJSONParsing:Qd.transitional(Qd.boolean),forcedJSONParsing:Qd.transitional(Qd.boolean),clarifyTimeoutError:Qd.transitional(Qd.boolean)},!1),i!=null&&(jt.isFunction(i)?n.paramsSerializer={serialize:i}:hI.assertOptions(i,{encode:Qd.function,serialize:Qd.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),hI.assertOptions(n,{baseUrl:Qd.spelling("baseURL"),withXsrfToken:Qd.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let a=o&&jt.merge(o.common,o[n.method]);o&&jt.forEach(["delete","get","head","post","put","patch","common"],m=>{delete o[m]}),n.headers=kl.concat(a,o);const s=[];let l=!0;this.interceptors.request.forEach(function(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=[bte.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 p=n;for(d=0;d<f;){const m=s[d++],g=s[d++];try{p=m(p)}catch(v){g.call(this,v);break}}try{u=bte.call(this,p)}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=D1(this.defaults,t);const n=cbe(t.baseURL,t.url,t.allowAbsoluteUrls);return ibe(n,t.params,t.paramsSerializer)}};jt.forEach(["delete","get","head","options"],function(t){i1.prototype[t]=function(n,r){return this.request(D1(r||{},{method:t,url:n,data:(r||{}).data}))}});jt.forEach(["post","put","patch"],function(t){function n(r){return function(o,a,s){return this.request(D1(s||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:o,data:a}))}}i1.prototype[t]=n(),i1.prototype[t+"Form"]=n(!0)});let xHe=class mbe{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 mbe(function(i){t=i}),cancel:t}}};function wHe(e){return function(n){return e.apply(null,n)}}function THe(e){return jt.isObject(e)&&e.isAxiosError===!0}const VB={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(VB).forEach(([e,t])=>{VB[t]=e});function gbe(e){const t=new i1(e),n=Wve(i1.prototype.request,t);return jt.extend(n,i1.prototype,t,{allOwnKeys:!0}),jt.extend(n,t,null,{allOwnKeys:!0}),n.create=function(i){return gbe(D1(e,i))},n}const qo=gbe(YT);qo.Axios=i1;qo.CanceledError=oS;qo.CancelToken=xHe;qo.isCancel=sbe;qo.VERSION=hbe;qo.toFormData=M5;qo.AxiosError=Ir;qo.Cancel=qo.CanceledError;qo.all=function(t){return Promise.all(t)};qo.spread=wHe;qo.isAxiosError=THe;qo.mergeConfig=D1;qo.AxiosHeaders=kl;qo.formToJSON=e=>abe(jt.isHTMLForm(e)?new FormData(e):e);qo.getAdapter=pbe.getAdapter;qo.HttpStatusCode=VB;qo.default=qo;const{Axios:XMn,AxiosError:ZMn,CanceledError:JMn,isCancel:ekn,CancelToken:tkn,VERSION:nkn,all:rkn,Cancel:ikn,isAxiosError:okn,spread:akn,toFormData:skn,AxiosHeaders:lkn,HttpStatusCode:ckn,formToJSON:ukn,getAdapter:dkn,mergeConfig:fkn}=qo;function OHe(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 _r=OHe();async function RHe(){return Br("/config/bytedesk/properties",{method:"GET",params:{client:Or}})}var vbe={exports:{}};function AHe(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 U9={exports:{}};const IHe={},NHe=Object.freeze(Object.defineProperty({__proto__:null,default:IHe},Symbol.toStringTag,{value:"Module"})),MHe=J_(NHe);var _te;function ei(){return _te||(_te=1,function(e,t){(function(n,r){e.exports=r()})(Wn,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 Wn<"u"&&Wn.crypto&&(o=Wn.crypto),!o&&typeof AHe=="function")try{o=MHe}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 S;return b.prototype=_,S=new b,b.prototype=null,S}}(),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||p).stringify(this)},concat:function(b){var _=this.words,S=b.words,x=this.sigBytes,E=b.sigBytes;if(this.clamp(),x%4)for(var C=0;C<E;C++){var w=S[C>>>2]>>>24-C%4*8&255;_[x+C>>>2]|=w<<24-(x+C)%4*8}else for(var O=0;O<E;O+=4)_[x+O>>>2]=S[O>>>2];return this.sigBytes+=E,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 _=[],S=0;S<b;S+=4)_.push(a());return new d.init(_,b)}}),f=l.enc={},p=f.Hex={stringify:function(b){for(var _=b.words,S=b.sigBytes,x=[],E=0;E<S;E++){var C=_[E>>>2]>>>24-E%4*8&255;x.push((C>>>4).toString(16)),x.push((C&15).toString(16))}return x.join("")},parse:function(b){for(var _=b.length,S=[],x=0;x<_;x+=2)S[x>>>3]|=parseInt(b.substr(x,2),16)<<24-x%8*4;return new d.init(S,_/2)}},m=f.Latin1={stringify:function(b){for(var _=b.words,S=b.sigBytes,x=[],E=0;E<S;E++){var C=_[E>>>2]>>>24-E%4*8&255;x.push(String.fromCharCode(C))}return x.join("")},parse:function(b){for(var _=b.length,S=[],x=0;x<_;x++)S[x>>>2]|=(b.charCodeAt(x)&255)<<24-x%4*8;return new d.init(S,_)}},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 _,S=this._data,x=S.words,E=S.sigBytes,C=this.blockSize,w=C*4,O=E/w;b?O=r.ceil(O):O=r.max((O|0)-this._minBufferSize,0);var T=O*C,A=r.min(T*4,E);if(T){for(var I=0;I<T;I+=C)this._doProcessBlock(x,I);_=x.splice(0,T),S.sigBytes-=A}return new d.init(_,A)},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(_,S){return new b.init(S).finalize(_)}},_createHmacHelper:function(b){return function(_,S){return new y.HMAC.init(b,S).finalize(_)}}});var y=l.algo={};return l}(Math);return n})}(U9)),U9.exports}var z9={exports:{}},Ste;function D5(){return Ste||(Ste=1,function(e,t){(function(n,r){e.exports=r(ei())})(Wn,function(n){return function(r){var i=n,o=i.lib,a=o.Base,s=o.WordArray,l=i.x64={};l.Word=a.extend({init:function(c,u){this.high=c,this.low=u}}),l.WordArray=a.extend({init:function(c,u){c=this.words=c||[],u!=r?this.sigBytes=u:this.sigBytes=c.length*8},toX32:function(){for(var c=this.words,u=c.length,d=[],f=0;f<u;f++){var p=c[f];d.push(p.high),d.push(p.low)}return s.create(d,this.sigBytes)},clone:function(){for(var c=a.clone.call(this),u=c.words=this.words.slice(0),d=u.length,f=0;f<d;f++)u[f]=u[f].clone();return c}})}(),n})}(z9)),z9.exports}var V9={exports:{}},Ete;function kHe(){return Ete||(Ete=1,function(e,t){(function(n,r){e.exports=r(ei())})(Wn,function(n){return function(){if(typeof ArrayBuffer=="function"){var r=n,i=r.lib,o=i.WordArray,a=o.init,s=o.init=function(l){if(l instanceof ArrayBuffer&&(l=new Uint8Array(l)),(l instanceof Int8Array||typeof Uint8ClampedArray<"u"&&l instanceof Uint8ClampedArray||l instanceof Int16Array||l instanceof Uint16Array||l instanceof Int32Array||l instanceof Uint32Array||l instanceof Float32Array||l instanceof Float64Array)&&(l=new Uint8Array(l.buffer,l.byteOffset,l.byteLength)),l instanceof Uint8Array){for(var c=l.byteLength,u=[],d=0;d<c;d++)u[d>>>2]|=l[d]<<24-d%4*8;a.call(this,u,c)}else a.apply(this,arguments)};s.prototype=o}}(),n.lib.WordArray})}(V9)),V9.exports}var G9={exports:{}},Cte;function PHe(){return Cte||(Cte=1,function(e,t){(function(n,r){e.exports=r(ei())})(Wn,function(n){return function(){var r=n,i=r.lib,o=i.WordArray,a=r.enc;a.Utf16=a.Utf16BE={stringify:function(l){for(var c=l.words,u=l.sigBytes,d=[],f=0;f<u;f+=2){var p=c[f>>>2]>>>16-f%4*8&65535;d.push(String.fromCharCode(p))}return d.join("")},parse:function(l){for(var c=l.length,u=[],d=0;d<c;d++)u[d>>>1]|=l.charCodeAt(d)<<16-d%2*16;return o.create(u,c*2)}},a.Utf16LE={stringify:function(l){for(var c=l.words,u=l.sigBytes,d=[],f=0;f<u;f+=2){var p=s(c[f>>>2]>>>16-f%4*8&65535);d.push(String.fromCharCode(p))}return d.join("")},parse:function(l){for(var c=l.length,u=[],d=0;d<c;d++)u[d>>>1]|=s(l.charCodeAt(d)<<16-d%2*16);return o.create(u,c*2)}};function s(l){return l<<8&4278255360|l>>>8&16711935}}(),n.enc.Utf16})}(G9)),G9.exports}var W9={exports:{}},xte;function fv(){return xte||(xte=1,function(e,t){(function(n,r){e.exports=r(ei())})(Wn,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=[],p=0;p<u;p+=3)for(var m=c[p>>>2]>>>24-p%4*8&255,g=c[p+1>>>2]>>>24-(p+1)%4*8&255,v=c[p+2>>>2]>>>24-(p+2)%4*8&255,y=m<<16|g<<8|v,b=0;b<4&&p+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 p=u.charAt(64);if(p){var m=l.indexOf(p);m!==-1&&(c=m)}return s(l,c,d)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="};function s(l,c,u){for(var d=[],f=0,p=0;p<c;p++)if(p%4){var m=u[l.charCodeAt(p-1)]<<p%4*2,g=u[l.charCodeAt(p)]>>>6-p%4*2,v=m|g;d[f>>>2]|=v<<24-f%4*8,f++}return o.create(d,f)}}(),n.enc.Base64})}(W9)),W9.exports}var q9={exports:{}},wte;function DHe(){return wte||(wte=1,function(e,t){(function(n,r){e.exports=r(ei())})(Wn,function(n){return function(){var r=n,i=r.lib,o=i.WordArray,a=r.enc;a.Base64url={stringify:function(l,c){c===void 0&&(c=!0);var u=l.words,d=l.sigBytes,f=c?this._safe_map:this._map;l.clamp();for(var p=[],m=0;m<d;m+=3)for(var g=u[m>>>2]>>>24-m%4*8&255,v=u[m+1>>>2]>>>24-(m+1)%4*8&255,y=u[m+2>>>2]>>>24-(m+2)%4*8&255,b=g<<16|v<<8|y,_=0;_<4&&m+_*.75<d;_++)p.push(f.charAt(b>>>6*(3-_)&63));var S=f.charAt(64);if(S)for(;p.length%4;)p.push(S);return p.join("")},parse:function(l,c){c===void 0&&(c=!0);var u=l.length,d=c?this._safe_map:this._map,f=this._reverseMap;if(!f){f=this._reverseMap=[];for(var p=0;p<d.length;p++)f[d.charCodeAt(p)]=p}var m=d.charAt(64);if(m){var g=l.indexOf(m);g!==-1&&(u=g)}return s(l,u,f)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",_safe_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"};function s(l,c,u){for(var d=[],f=0,p=0;p<c;p++)if(p%4){var m=u[l.charCodeAt(p-1)]<<p%4*2,g=u[l.charCodeAt(p)]>>>6-p%4*2,v=m|g;d[f>>>2]|=v<<24-f%4*8,f++}return o.create(d,f)}}(),n.enc.Base64url})}(q9)),q9.exports}var Y9={exports:{}},Tte;function pv(){return Tte||(Tte=1,function(e,t){(function(n,r){e.exports=r(ei())})(Wn,function(n){return function(r){var i=n,o=i.lib,a=o.WordArray,s=o.Hasher,l=i.algo,c=[];(function(){for(var g=0;g<64;g++)c[g]=r.abs(r.sin(g+1))*4294967296|0})();var u=l.MD5=s.extend({_doReset:function(){this._hash=new a.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(g,v){for(var y=0;y<16;y++){var b=v+y,_=g[b];g[b]=(_<<8|_>>>24)&16711935|(_<<24|_>>>8)&4278255360}var S=this._hash.words,x=g[v+0],E=g[v+1],C=g[v+2],w=g[v+3],O=g[v+4],T=g[v+5],A=g[v+6],I=g[v+7],N=g[v+8],D=g[v+9],M=g[v+10],k=g[v+11],P=g[v+12],B=g[v+13],G=g[v+14],L=g[v+15],W=S[0],j=S[1],H=S[2],X=S[3];W=d(W,j,H,X,x,7,c[0]),X=d(X,W,j,H,E,12,c[1]),H=d(H,X,W,j,C,17,c[2]),j=d(j,H,X,W,w,22,c[3]),W=d(W,j,H,X,O,7,c[4]),X=d(X,W,j,H,T,12,c[5]),H=d(H,X,W,j,A,17,c[6]),j=d(j,H,X,W,I,22,c[7]),W=d(W,j,H,X,N,7,c[8]),X=d(X,W,j,H,D,12,c[9]),H=d(H,X,W,j,M,17,c[10]),j=d(j,H,X,W,k,22,c[11]),W=d(W,j,H,X,P,7,c[12]),X=d(X,W,j,H,B,12,c[13]),H=d(H,X,W,j,G,17,c[14]),j=d(j,H,X,W,L,22,c[15]),W=f(W,j,H,X,E,5,c[16]),X=f(X,W,j,H,A,9,c[17]),H=f(H,X,W,j,k,14,c[18]),j=f(j,H,X,W,x,20,c[19]),W=f(W,j,H,X,T,5,c[20]),X=f(X,W,j,H,M,9,c[21]),H=f(H,X,W,j,L,14,c[22]),j=f(j,H,X,W,O,20,c[23]),W=f(W,j,H,X,D,5,c[24]),X=f(X,W,j,H,G,9,c[25]),H=f(H,X,W,j,w,14,c[26]),j=f(j,H,X,W,N,20,c[27]),W=f(W,j,H,X,B,5,c[28]),X=f(X,W,j,H,C,9,c[29]),H=f(H,X,W,j,I,14,c[30]),j=f(j,H,X,W,P,20,c[31]),W=p(W,j,H,X,T,4,c[32]),X=p(X,W,j,H,N,11,c[33]),H=p(H,X,W,j,k,16,c[34]),j=p(j,H,X,W,G,23,c[35]),W=p(W,j,H,X,E,4,c[36]),X=p(X,W,j,H,O,11,c[37]),H=p(H,X,W,j,I,16,c[38]),j=p(j,H,X,W,M,23,c[39]),W=p(W,j,H,X,B,4,c[40]),X=p(X,W,j,H,x,11,c[41]),H=p(H,X,W,j,w,16,c[42]),j=p(j,H,X,W,A,23,c[43]),W=p(W,j,H,X,D,4,c[44]),X=p(X,W,j,H,P,11,c[45]),H=p(H,X,W,j,L,16,c[46]),j=p(j,H,X,W,C,23,c[47]),W=m(W,j,H,X,x,6,c[48]),X=m(X,W,j,H,I,10,c[49]),H=m(H,X,W,j,G,15,c[50]),j=m(j,H,X,W,T,21,c[51]),W=m(W,j,H,X,P,6,c[52]),X=m(X,W,j,H,w,10,c[53]),H=m(H,X,W,j,M,15,c[54]),j=m(j,H,X,W,E,21,c[55]),W=m(W,j,H,X,N,6,c[56]),X=m(X,W,j,H,L,10,c[57]),H=m(H,X,W,j,A,15,c[58]),j=m(j,H,X,W,B,21,c[59]),W=m(W,j,H,X,O,6,c[60]),X=m(X,W,j,H,k,10,c[61]),H=m(H,X,W,j,C,15,c[62]),j=m(j,H,X,W,D,21,c[63]),S[0]=S[0]+W|0,S[1]=S[1]+j|0,S[2]=S[2]+H|0,S[3]=S[3]+X|0},_doFinalize:function(){var g=this._data,v=g.words,y=this._nDataBytes*8,b=g.sigBytes*8;v[b>>>5]|=128<<24-b%32;var _=r.floor(y/4294967296),S=y;v[(b+64>>>9<<4)+15]=(_<<8|_>>>24)&16711935|(_<<24|_>>>8)&4278255360,v[(b+64>>>9<<4)+14]=(S<<8|S>>>24)&16711935|(S<<24|S>>>8)&4278255360,g.sigBytes=(v.length+1)*4,this._process();for(var x=this._hash,E=x.words,C=0;C<4;C++){var w=E[C];E[C]=(w<<8|w>>>24)&16711935|(w<<24|w>>>8)&4278255360}return x},clone:function(){var g=s.clone.call(this);return g._hash=this._hash.clone(),g}});function d(g,v,y,b,_,S,x){var E=g+(v&y|~v&b)+_+x;return(E<<S|E>>>32-S)+v}function f(g,v,y,b,_,S,x){var E=g+(v&b|y&~b)+_+x;return(E<<S|E>>>32-S)+v}function p(g,v,y,b,_,S,x){var E=g+(v^y^b)+_+x;return(E<<S|E>>>32-S)+v}function m(g,v,y,b,_,S,x){var E=g+(y^(v|~b))+_+x;return(E<<S|E>>>32-S)+v}i.MD5=s._createHelper(u),i.HmacMD5=s._createHmacHelper(u)}(Math),n.MD5})}(Y9)),Y9.exports}var K9={exports:{}},Ote;function bbe(){return Ote||(Ote=1,function(e,t){(function(n,r){e.exports=r(ei())})(Wn,function(n){return function(){var r=n,i=r.lib,o=i.WordArray,a=i.Hasher,s=r.algo,l=[],c=s.SHA1=a.extend({_doReset:function(){this._hash=new o.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(u,d){for(var f=this._hash.words,p=f[0],m=f[1],g=f[2],v=f[3],y=f[4],b=0;b<80;b++){if(b<16)l[b]=u[d+b]|0;else{var _=l[b-3]^l[b-8]^l[b-14]^l[b-16];l[b]=_<<1|_>>>31}var S=(p<<5|p>>>27)+y+l[b];b<20?S+=(m&g|~m&v)+1518500249:b<40?S+=(m^g^v)+1859775393:b<60?S+=(m&g|m&v|g&v)-1894007588:S+=(m^g^v)-899497514,y=v,v=g,g=m<<30|m>>>2,m=p,p=S}f[0]=f[0]+p|0,f[1]=f[1]+m|0,f[2]=f[2]+g|0,f[3]=f[3]+v|0,f[4]=f[4]+y|0},_doFinalize:function(){var u=this._data,d=u.words,f=this._nDataBytes*8,p=u.sigBytes*8;return d[p>>>5]|=128<<24-p%32,d[(p+64>>>9<<4)+14]=Math.floor(f/4294967296),d[(p+64>>>9<<4)+15]=f,u.sigBytes=d.length*4,this._process(),this._hash},clone:function(){var u=a.clone.call(this);return u._hash=this._hash.clone(),u}});r.SHA1=a._createHelper(c),r.HmacSHA1=a._createHmacHelper(c)}(),n.SHA1})}(K9)),K9.exports}var Q9={exports:{}},Rte;function FW(){return Rte||(Rte=1,function(e,t){(function(n,r){e.exports=r(ei())})(Wn,function(n){return function(r){var i=n,o=i.lib,a=o.WordArray,s=o.Hasher,l=i.algo,c=[],u=[];(function(){function p(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;)p(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(p,m){for(var g=this._hash.words,v=g[0],y=g[1],b=g[2],_=g[3],S=g[4],x=g[5],E=g[6],C=g[7],w=0;w<64;w++){if(w<16)d[w]=p[m+w]|0;else{var O=d[w-15],T=(O<<25|O>>>7)^(O<<14|O>>>18)^O>>>3,A=d[w-2],I=(A<<15|A>>>17)^(A<<13|A>>>19)^A>>>10;d[w]=T+d[w-7]+I+d[w-16]}var N=S&x^~S&E,D=v&y^v&b^y&b,M=(v<<30|v>>>2)^(v<<19|v>>>13)^(v<<10|v>>>22),k=(S<<26|S>>>6)^(S<<21|S>>>11)^(S<<7|S>>>25),P=C+k+N+u[w]+d[w],B=M+D;C=E,E=x,x=S,S=_+P|0,_=b,b=y,y=v,v=P+B|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]+S|0,g[5]=g[5]+x|0,g[6]=g[6]+E|0,g[7]=g[7]+C|0},_doFinalize:function(){var p=this._data,m=p.words,g=this._nDataBytes*8,v=p.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,p.sigBytes=m.length*4,this._process(),this._hash},clone:function(){var p=s.clone.call(this);return p._hash=this._hash.clone(),p}});i.SHA256=s._createHelper(f),i.HmacSHA256=s._createHmacHelper(f)}(Math),n.SHA256})}(Q9)),Q9.exports}var X9={exports:{}},Ate;function LHe(){return Ate||(Ate=1,function(e,t){(function(n,r,i){e.exports=r(ei(),FW())})(Wn,function(n){return function(){var r=n,i=r.lib,o=i.WordArray,a=r.algo,s=a.SHA256,l=a.SHA224=s.extend({_doReset:function(){this._hash=new o.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var c=s._doFinalize.call(this);return c.sigBytes-=4,c}});r.SHA224=s._createHelper(l),r.HmacSHA224=s._createHmacHelper(l)}(),n.SHA224})}(X9)),X9.exports}var Z9={exports:{}},Ite;function ybe(){return Ite||(Ite=1,function(e,t){(function(n,r,i){e.exports=r(ei(),D5())})(Wn,function(n){return function(){var r=n,i=r.lib,o=i.Hasher,a=r.x64,s=a.Word,l=a.WordArray,c=r.algo;function u(){return s.create.apply(s,arguments)}var d=[u(1116352408,3609767458),u(1899447441,602891725),u(3049323471,3964484399),u(3921009573,2173295548),u(961987163,4081628472),u(1508970993,3053834265),u(2453635748,2937671579),u(2870763221,3664609560),u(3624381080,2734883394),u(310598401,1164996542),u(607225278,1323610764),u(1426881987,3590304994),u(1925078388,4068182383),u(2162078206,991336113),u(2614888103,633803317),u(3248222580,3479774868),u(3835390401,2666613458),u(4022224774,944711139),u(264347078,2341262773),u(604807628,2007800933),u(770255983,1495990901),u(1249150122,1856431235),u(1555081692,3175218132),u(1996064986,2198950837),u(2554220882,3999719339),u(2821834349,766784016),u(2952996808,2566594879),u(3210313671,3203337956),u(3336571891,1034457026),u(3584528711,2466948901),u(113926993,3758326383),u(338241895,168717936),u(666307205,1188179964),u(773529912,1546045734),u(1294757372,1522805485),u(1396182291,2643833823),u(1695183700,2343527390),u(1986661051,1014477480),u(2177026350,1206759142),u(2456956037,344077627),u(2730485921,1290863460),u(2820302411,3158454273),u(3259730800,3505952657),u(3345764771,106217008),u(3516065817,3606008344),u(3600352804,1432725776),u(4094571909,1467031594),u(275423344,851169720),u(430227734,3100823752),u(506948616,1363258195),u(659060556,3750685593),u(883997877,3785050280),u(958139571,3318307427),u(1322822218,3812723403),u(1537002063,2003034995),u(1747873779,3602036899),u(1955562222,1575990012),u(2024104815,1125592928),u(2227730452,2716904306),u(2361852424,442776044),u(2428436474,593698344),u(2756734187,3733110249),u(3204031479,2999351573),u(3329325298,3815920427),u(3391569614,3928383900),u(3515267271,566280711),u(3940187606,3454069534),u(4118630271,4000239992),u(116418474,1914138554),u(174292421,2731055270),u(289380356,3203993006),u(460393269,320620315),u(685471733,587496836),u(852142971,1086792851),u(1017036298,365543100),u(1126000580,2618297676),u(1288033470,3409855158),u(1501505948,4234509866),u(1607167915,987167468),u(1816402316,1246189591)],f=[];(function(){for(var m=0;m<80;m++)f[m]=u()})();var p=c.SHA512=o.extend({_doReset:function(){this._hash=new l.init([new s.init(1779033703,4089235720),new s.init(3144134277,2227873595),new s.init(1013904242,4271175723),new s.init(2773480762,1595750129),new s.init(1359893119,2917565137),new s.init(2600822924,725511199),new s.init(528734635,4215389547),new s.init(1541459225,327033209)])},_doProcessBlock:function(m,g){for(var v=this._hash.words,y=v[0],b=v[1],_=v[2],S=v[3],x=v[4],E=v[5],C=v[6],w=v[7],O=y.high,T=y.low,A=b.high,I=b.low,N=_.high,D=_.low,M=S.high,k=S.low,P=x.high,B=x.low,G=E.high,L=E.low,W=C.high,j=C.low,H=w.high,X=w.low,Q=O,ue=T,ee=A,K=I,se=N,le=D,oe=M,ne=k,he=P,me=B,ce=G,re=L,ve=W,be=j,xe=H,we=X,de=0;de<80;de++){var Ee,Ne,Te=f[de];if(de<16)Ne=Te.high=m[g+de*2]|0,Ee=Te.low=m[g+de*2+1]|0;else{var Ve=f[de-15],q=Ve.high,U=Ve.low,Y=(q>>>1|U<<31)^(q>>>8|U<<24)^q>>>7,ae=(U>>>1|q<<31)^(U>>>8|q<<24)^(U>>>7|q<<25),ye=f[de-2],fe=ye.high,Ae=ye.low,We=(fe>>>19|Ae<<13)^(fe<<3|Ae>>>29)^fe>>>6,ie=(Ae>>>19|fe<<13)^(Ae<<3|fe>>>29)^(Ae>>>6|fe<<26),Be=f[de-7],Fe=Be.high,Pe=Be.low,Ke=f[de-16],tt=Ke.high,Ge=Ke.low;Ee=ae+Pe,Ne=Y+Fe+(Ee>>>0<ae>>>0?1:0),Ee=Ee+ie,Ne=Ne+We+(Ee>>>0<ie>>>0?1:0),Ee=Ee+Ge,Ne=Ne+tt+(Ee>>>0<Ge>>>0?1:0),Te.high=Ne,Te.low=Ee}var Nt=he&ce^~he&ve,lt=me&re^~me&be,st=Q&ee^Q&se^ee&se,It=ue&K^ue&le^K&le,ct=(Q>>>28|ue<<4)^(Q<<30|ue>>>2)^(Q<<25|ue>>>7),Pt=(ue>>>28|Q<<4)^(ue<<30|Q>>>2)^(ue<<25|Q>>>7),Rt=(he>>>14|me<<18)^(he>>>18|me<<14)^(he<<23|me>>>9),Tt=(me>>>14|he<<18)^(me>>>18|he<<14)^(me<<23|he>>>9),Me=d[de],Ue=Me.high,$e=Me.low,Le=we+Tt,He=xe+Rt+(Le>>>0<we>>>0?1:0),Le=Le+lt,He=He+Nt+(Le>>>0<lt>>>0?1:0),Le=Le+$e,He=He+Ue+(Le>>>0<$e>>>0?1:0),Le=Le+Ee,He=He+Ne+(Le>>>0<Ee>>>0?1:0),it=Pt+It,ft=ct+st+(it>>>0<Pt>>>0?1:0);xe=ve,we=be,ve=ce,be=re,ce=he,re=me,me=ne+Le|0,he=oe+He+(me>>>0<ne>>>0?1:0)|0,oe=se,ne=le,se=ee,le=K,ee=Q,K=ue,ue=Le+it|0,Q=He+ft+(ue>>>0<Le>>>0?1:0)|0}T=y.low=T+ue,y.high=O+Q+(T>>>0<ue>>>0?1:0),I=b.low=I+K,b.high=A+ee+(I>>>0<K>>>0?1:0),D=_.low=D+le,_.high=N+se+(D>>>0<le>>>0?1:0),k=S.low=k+ne,S.high=M+oe+(k>>>0<ne>>>0?1:0),B=x.low=B+me,x.high=P+he+(B>>>0<me>>>0?1:0),L=E.low=L+re,E.high=G+ce+(L>>>0<re>>>0?1:0),j=C.low=j+be,C.high=W+ve+(j>>>0<be>>>0?1:0),X=w.low=X+we,w.high=H+xe+(X>>>0<we>>>0?1:0)},_doFinalize:function(){var m=this._data,g=m.words,v=this._nDataBytes*8,y=m.sigBytes*8;g[y>>>5]|=128<<24-y%32,g[(y+128>>>10<<5)+30]=Math.floor(v/4294967296),g[(y+128>>>10<<5)+31]=v,m.sigBytes=g.length*4,this._process();var b=this._hash.toX32();return b},clone:function(){var m=o.clone.call(this);return m._hash=this._hash.clone(),m},blockSize:1024/32});r.SHA512=o._createHelper(p),r.HmacSHA512=o._createHmacHelper(p)}(),n.SHA512})}(Z9)),Z9.exports}var J9={exports:{}},Nte;function $He(){return Nte||(Nte=1,function(e,t){(function(n,r,i){e.exports=r(ei(),D5(),ybe())})(Wn,function(n){return function(){var r=n,i=r.x64,o=i.Word,a=i.WordArray,s=r.algo,l=s.SHA512,c=s.SHA384=l.extend({_doReset:function(){this._hash=new a.init([new o.init(3418070365,3238371032),new o.init(1654270250,914150663),new o.init(2438529370,812702999),new o.init(355462360,4144912697),new o.init(1731405415,4290775857),new o.init(2394180231,1750603025),new o.init(3675008525,1694076839),new o.init(1203062813,3204075428)])},_doFinalize:function(){var u=l._doFinalize.call(this);return u.sigBytes-=16,u}});r.SHA384=l._createHelper(c),r.HmacSHA384=l._createHmacHelper(c)}(),n.SHA384})}(J9)),J9.exports}var e6={exports:{}},Mte;function FHe(){return Mte||(Mte=1,function(e,t){(function(n,r,i){e.exports=r(ei(),D5())})(Wn,function(n){return function(r){var i=n,o=i.lib,a=o.WordArray,s=o.Hasher,l=i.x64,c=l.Word,u=i.algo,d=[],f=[],p=[];(function(){for(var v=1,y=0,b=0;b<24;b++){d[v+5*y]=(b+1)*(b+2)/2%64;var _=y%5,S=(2*v+3*y)%5;v=_,y=S}for(var v=0;v<5;v++)for(var y=0;y<5;y++)f[v+5*y]=y+(2*v+3*y)%5*5;for(var x=1,E=0;E<24;E++){for(var C=0,w=0,O=0;O<7;O++){if(x&1){var T=(1<<O)-1;T<32?w^=1<<T:C^=1<<T-32}x&128?x=x<<1^113:x<<=1}p[E]=c.create(C,w)}})();var m=[];(function(){for(var v=0;v<25;v++)m[v]=c.create()})();var g=u.SHA3=s.extend({cfg:s.cfg.extend({outputLength:512}),_doReset:function(){for(var v=this._state=[],y=0;y<25;y++)v[y]=new c.init;this.blockSize=(1600-2*this.cfg.outputLength)/32},_doProcessBlock:function(v,y){for(var b=this._state,_=this.blockSize/2,S=0;S<_;S++){var x=v[y+2*S],E=v[y+2*S+1];x=(x<<8|x>>>24)&16711935|(x<<24|x>>>8)&4278255360,E=(E<<8|E>>>24)&16711935|(E<<24|E>>>8)&4278255360;var C=b[S];C.high^=E,C.low^=x}for(var w=0;w<24;w++){for(var O=0;O<5;O++){for(var T=0,A=0,I=0;I<5;I++){var C=b[O+5*I];T^=C.high,A^=C.low}var N=m[O];N.high=T,N.low=A}for(var O=0;O<5;O++)for(var D=m[(O+4)%5],M=m[(O+1)%5],k=M.high,P=M.low,T=D.high^(k<<1|P>>>31),A=D.low^(P<<1|k>>>31),I=0;I<5;I++){var C=b[O+5*I];C.high^=T,C.low^=A}for(var B=1;B<25;B++){var T,A,C=b[B],G=C.high,L=C.low,W=d[B];W<32?(T=G<<W|L>>>32-W,A=L<<W|G>>>32-W):(T=L<<W-32|G>>>64-W,A=G<<W-32|L>>>64-W);var j=m[f[B]];j.high=T,j.low=A}var H=m[0],X=b[0];H.high=X.high,H.low=X.low;for(var O=0;O<5;O++)for(var I=0;I<5;I++){var B=O+5*I,C=b[B],Q=m[B],ue=m[(O+1)%5+5*I],ee=m[(O+2)%5+5*I];C.high=Q.high^~ue.high&ee.high,C.low=Q.low^~ue.low&ee.low}var C=b[0],K=p[w];C.high^=K.high,C.low^=K.low}},_doFinalize:function(){var v=this._data,y=v.words;this._nDataBytes*8;var b=v.sigBytes*8,_=this.blockSize*32;y[b>>>5]|=1<<24-b%32,y[(r.ceil((b+1)/_)*_>>>5)-1]|=128,v.sigBytes=y.length*4,this._process();for(var S=this._state,x=this.cfg.outputLength/8,E=x/8,C=[],w=0;w<E;w++){var O=S[w],T=O.high,A=O.low;T=(T<<8|T>>>24)&16711935|(T<<24|T>>>8)&4278255360,A=(A<<8|A>>>24)&16711935|(A<<24|A>>>8)&4278255360,C.push(A),C.push(T)}return new a.init(C,x)},clone:function(){for(var v=s.clone.call(this),y=v._state=this._state.slice(0),b=0;b<25;b++)y[b]=y[b].clone();return v}});i.SHA3=s._createHelper(g),i.HmacSHA3=s._createHmacHelper(g)}(Math),n.SHA3})}(e6)),e6.exports}var t6={exports:{}},kte;function BHe(){return kte||(kte=1,function(e,t){(function(n,r){e.exports=r(ei())})(Wn,function(n){/** @preserve
(c) 2012 by Cédric Mesnil. All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
- Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
- Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/return function(r){var i=n,o=i.lib,a=o.WordArray,s=o.Hasher,l=i.algo,c=a.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),u=a.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),d=a.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),f=a.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),p=a.create([0,1518500249,1859775393,2400959708,2840853838]),m=a.create([1352829926,1548603684,1836072691,2053994217,0]),g=l.RIPEMD160=s.extend({_doReset:function(){this._hash=a.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(E,C){for(var w=0;w<16;w++){var O=C+w,T=E[O];E[O]=(T<<8|T>>>24)&16711935|(T<<24|T>>>8)&4278255360}var A=this._hash.words,I=p.words,N=m.words,D=c.words,M=u.words,k=d.words,P=f.words,B,G,L,W,j,H,X,Q,ue,ee;H=B=A[0],X=G=A[1],Q=L=A[2],ue=W=A[3],ee=j=A[4];for(var K,w=0;w<80;w+=1)K=B+E[C+D[w]]|0,w<16?K+=v(G,L,W)+I[0]:w<32?K+=y(G,L,W)+I[1]:w<48?K+=b(G,L,W)+I[2]:w<64?K+=_(G,L,W)+I[3]:K+=S(G,L,W)+I[4],K=K|0,K=x(K,k[w]),K=K+j|0,B=j,j=W,W=x(L,10),L=G,G=K,K=H+E[C+M[w]]|0,w<16?K+=S(X,Q,ue)+N[0]:w<32?K+=_(X,Q,ue)+N[1]:w<48?K+=b(X,Q,ue)+N[2]:w<64?K+=y(X,Q,ue)+N[3]:K+=v(X,Q,ue)+N[4],K=K|0,K=x(K,P[w]),K=K+ee|0,H=ee,ee=ue,ue=x(Q,10),Q=X,X=K;K=A[1]+L+ue|0,A[1]=A[2]+W+ee|0,A[2]=A[3]+j+H|0,A[3]=A[4]+B+X|0,A[4]=A[0]+G+Q|0,A[0]=K},_doFinalize:function(){var E=this._data,C=E.words,w=this._nDataBytes*8,O=E.sigBytes*8;C[O>>>5]|=128<<24-O%32,C[(O+64>>>9<<4)+14]=(w<<8|w>>>24)&16711935|(w<<24|w>>>8)&4278255360,E.sigBytes=(C.length+1)*4,this._process();for(var T=this._hash,A=T.words,I=0;I<5;I++){var N=A[I];A[I]=(N<<8|N>>>24)&16711935|(N<<24|N>>>8)&4278255360}return T},clone:function(){var E=s.clone.call(this);return E._hash=this._hash.clone(),E}});function v(E,C,w){return E^C^w}function y(E,C,w){return E&C|~E&w}function b(E,C,w){return(E|~C)^w}function _(E,C,w){return E&w|C&~w}function S(E,C,w){return E^(C|~w)}function x(E,C){return E<<C|E>>>32-C}i.RIPEMD160=s._createHelper(g),i.HmacRIPEMD160=s._createHmacHelper(g)}(),n.RIPEMD160})}(t6)),t6.exports}var n6={exports:{}},Pte;function BW(){return Pte||(Pte=1,function(e,t){(function(n,r){e.exports=r(ei())})(Wn,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 p=this._oKey=u.clone(),m=this._iKey=u.clone(),g=p.words,v=m.words,y=0;y<d;y++)g[y]^=1549556828,v[y]^=909522486;p.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}})})()})}(n6)),n6.exports}var r6={exports:{}},Dte;function HHe(){return Dte||(Dte=1,function(e,t){(function(n,r,i){e.exports=r(ei(),FW(),BW())})(Wn,function(n){return function(){var r=n,i=r.lib,o=i.Base,a=i.WordArray,s=r.algo,l=s.SHA256,c=s.HMAC,u=s.PBKDF2=o.extend({cfg:o.extend({keySize:128/32,hasher:l,iterations:25e4}),init:function(d){this.cfg=this.cfg.extend(d)},compute:function(d,f){for(var p=this.cfg,m=c.create(p.hasher,d),g=a.create(),v=a.create([1]),y=g.words,b=v.words,_=p.keySize,S=p.iterations;y.length<_;){var x=m.update(f).finalize(v);m.reset();for(var E=x.words,C=E.length,w=x,O=1;O<S;O++){w=m.finalize(w),m.reset();for(var T=w.words,A=0;A<C;A++)E[A]^=T[A]}g.concat(x),b[0]++}return g.sigBytes=_*4,g}});r.PBKDF2=function(d,f,p){return u.create(p).compute(d,f)}}(),n.PBKDF2})}(r6)),r6.exports}var i6={exports:{}},Lte;function Og(){return Lte||(Lte=1,function(e,t){(function(n,r,i){e.exports=r(ei(),bbe(),BW())})(Wn,function(n){return function(){var r=n,i=r.lib,o=i.Base,a=i.WordArray,s=r.algo,l=s.MD5,c=s.EvpKDF=o.extend({cfg:o.extend({keySize:128/32,hasher:l,iterations:1}),init:function(u){this.cfg=this.cfg.extend(u)},compute:function(u,d){for(var f,p=this.cfg,m=p.hasher.create(),g=a.create(),v=g.words,y=p.keySize,b=p.iterations;v.length<y;){f&&m.update(f),f=m.update(u).finalize(d),m.reset();for(var _=1;_<b;_++)f=m.finalize(f),m.reset();g.concat(f)}return g.sigBytes=y*4,g}});r.EvpKDF=function(u,d,f){return c.create(f).compute(u,d)}}(),n.EvpKDF})}(i6)),i6.exports}var o6={exports:{}},$te;function Wa(){return $te||($te=1,function(e,t){(function(n,r,i){e.exports=r(ei(),Og())})(Wn,function(n){n.lib.Cipher||function(r){var i=n,o=i.lib,a=o.Base,s=o.WordArray,l=o.BufferedBlockAlgorithm,c=i.enc;c.Utf8;var u=c.Base64,d=i.algo,f=d.EvpKDF,p=o.Cipher=l.extend({cfg:a.extend(),createEncryptor:function(T,A){return this.create(this._ENC_XFORM_MODE,T,A)},createDecryptor:function(T,A){return this.create(this._DEC_XFORM_MODE,T,A)},init:function(T,A,I){this.cfg=this.cfg.extend(I),this._xformMode=T,this._key=A,this.reset()},reset:function(){l.reset.call(this),this._doReset()},process:function(T){return this._append(T),this._process()},finalize:function(T){T&&this._append(T);var A=this._doFinalize();return A},keySize:128/32,ivSize:128/32,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function T(A){return typeof A=="string"?O:E}return function(A){return{encrypt:function(I,N,D){return T(N).encrypt(A,I,N,D)},decrypt:function(I,N,D){return T(N).decrypt(A,I,N,D)}}}}()});o.StreamCipher=p.extend({_doFinalize:function(){var T=this._process(!0);return T},blockSize:1});var m=i.mode={},g=o.BlockCipherMode=a.extend({createEncryptor:function(T,A){return this.Encryptor.create(T,A)},createDecryptor:function(T,A){return this.Decryptor.create(T,A)},init:function(T,A){this._cipher=T,this._iv=A}}),v=m.CBC=function(){var T=g.extend();T.Encryptor=T.extend({processBlock:function(I,N){var D=this._cipher,M=D.blockSize;A.call(this,I,N,M),D.encryptBlock(I,N),this._prevBlock=I.slice(N,N+M)}}),T.Decryptor=T.extend({processBlock:function(I,N){var D=this._cipher,M=D.blockSize,k=I.slice(N,N+M);D.decryptBlock(I,N),A.call(this,I,N,M),this._prevBlock=k}});function A(I,N,D){var M,k=this._iv;k?(M=k,this._iv=r):M=this._prevBlock;for(var P=0;P<D;P++)I[N+P]^=M[P]}return T}(),y=i.pad={},b=y.Pkcs7={pad:function(T,A){for(var I=A*4,N=I-T.sigBytes%I,D=N<<24|N<<16|N<<8|N,M=[],k=0;k<N;k+=4)M.push(D);var P=s.create(M,N);T.concat(P)},unpad:function(T){var A=T.words[T.sigBytes-1>>>2]&255;T.sigBytes-=A}};o.BlockCipher=p.extend({cfg:p.cfg.extend({mode:v,padding:b}),reset:function(){var T;p.reset.call(this);var A=this.cfg,I=A.iv,N=A.mode;this._xformMode==this._ENC_XFORM_MODE?T=N.createEncryptor:(T=N.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==T?this._mode.init(this,I&&I.words):(this._mode=T.call(N,this,I&&I.words),this._mode.__creator=T)},_doProcessBlock:function(T,A){this._mode.processBlock(T,A)},_doFinalize:function(){var T,A=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(A.pad(this._data,this.blockSize),T=this._process(!0)):(T=this._process(!0),A.unpad(T)),T},blockSize:128/32});var _=o.CipherParams=a.extend({init:function(T){this.mixIn(T)},toString:function(T){return(T||this.formatter).stringify(this)}}),S=i.format={},x=S.OpenSSL={stringify:function(T){var A,I=T.ciphertext,N=T.salt;return N?A=s.create([1398893684,1701076831]).concat(N).concat(I):A=I,A.toString(u)},parse:function(T){var A,I=u.parse(T),N=I.words;return N[0]==1398893684&&N[1]==1701076831&&(A=s.create(N.slice(2,4)),N.splice(0,4),I.sigBytes-=16),_.create({ciphertext:I,salt:A})}},E=o.SerializableCipher=a.extend({cfg:a.extend({format:x}),encrypt:function(T,A,I,N){N=this.cfg.extend(N);var D=T.createEncryptor(I,N),M=D.finalize(A),k=D.cfg;return _.create({ciphertext:M,key:I,iv:k.iv,algorithm:T,mode:k.mode,padding:k.padding,blockSize:T.blockSize,formatter:N.format})},decrypt:function(T,A,I,N){N=this.cfg.extend(N),A=this._parse(A,N.format);var D=T.createDecryptor(I,N).finalize(A.ciphertext);return D},_parse:function(T,A){return typeof T=="string"?A.parse(T,this):T}}),C=i.kdf={},w=C.OpenSSL={execute:function(T,A,I,N,D){if(N||(N=s.random(64/8)),D)var M=f.create({keySize:A+I,hasher:D}).compute(T,N);else var M=f.create({keySize:A+I}).compute(T,N);var k=s.create(M.words.slice(A),I*4);return M.sigBytes=A*4,_.create({key:M,iv:k,salt:N})}},O=o.PasswordBasedCipher=E.extend({cfg:E.cfg.extend({kdf:w}),encrypt:function(T,A,I,N){N=this.cfg.extend(N);var D=N.kdf.execute(I,T.keySize,T.ivSize,N.salt,N.hasher);N.iv=D.iv;var M=E.encrypt.call(this,T,A,D.key,N);return M.mixIn(D),M},decrypt:function(T,A,I,N){N=this.cfg.extend(N),A=this._parse(A,N.format);var D=N.kdf.execute(I,T.keySize,T.ivSize,A.salt,N.hasher);N.iv=D.iv;var M=E.decrypt.call(this,T,A,D.key,N);return M}})}()})}(o6)),o6.exports}var a6={exports:{}},Fte;function jHe(){return Fte||(Fte=1,function(e,t){(function(n,r,i){e.exports=r(ei(),Wa())})(Wn,function(n){return n.mode.CFB=function(){var r=n.lib.BlockCipherMode.extend();r.Encryptor=r.extend({processBlock:function(o,a){var s=this._cipher,l=s.blockSize;i.call(this,o,a,l,s),this._prevBlock=o.slice(a,a+l)}}),r.Decryptor=r.extend({processBlock:function(o,a){var s=this._cipher,l=s.blockSize,c=o.slice(a,a+l);i.call(this,o,a,l,s),this._prevBlock=c}});function i(o,a,s,l){var c,u=this._iv;u?(c=u.slice(0),this._iv=void 0):c=this._prevBlock,l.encryptBlock(c,0);for(var d=0;d<s;d++)o[a+d]^=c[d]}return r}(),n.mode.CFB})}(a6)),a6.exports}var s6={exports:{}},Bte;function UHe(){return Bte||(Bte=1,function(e,t){(function(n,r,i){e.exports=r(ei(),Wa())})(Wn,function(n){return n.mode.CTR=function(){var r=n.lib.BlockCipherMode.extend(),i=r.Encryptor=r.extend({processBlock:function(o,a){var s=this._cipher,l=s.blockSize,c=this._iv,u=this._counter;c&&(u=this._counter=c.slice(0),this._iv=void 0);var d=u.slice(0);s.encryptBlock(d,0),u[l-1]=u[l-1]+1|0;for(var f=0;f<l;f++)o[a+f]^=d[f]}});return r.Decryptor=i,r}(),n.mode.CTR})}(s6)),s6.exports}var l6={exports:{}},Hte;function zHe(){return Hte||(Hte=1,function(e,t){(function(n,r,i){e.exports=r(ei(),Wa())})(Wn,function(n){/** @preserve
* Counter block mode compatible with Dr Brian Gladman fileenc.c
* derived from CryptoJS.mode.CTR
* Jan Hruby jhruby.web@gmail.com
*/return n.mode.CTRGladman=function(){var r=n.lib.BlockCipherMode.extend();function i(s){if((s>>24&255)===255){var l=s>>16&255,c=s>>8&255,u=s&255;l===255?(l=0,c===255?(c=0,u===255?u=0:++u):++c):++l,s=0,s+=l<<16,s+=c<<8,s+=u}else s+=1<<24;return s}function o(s){return(s[0]=i(s[0]))===0&&(s[1]=i(s[1])),s}var a=r.Encryptor=r.extend({processBlock:function(s,l){var c=this._cipher,u=c.blockSize,d=this._iv,f=this._counter;d&&(f=this._counter=d.slice(0),this._iv=void 0),o(f);var p=f.slice(0);c.encryptBlock(p,0);for(var m=0;m<u;m++)s[l+m]^=p[m]}});return r.Decryptor=a,r}(),n.mode.CTRGladman})}(l6)),l6.exports}var c6={exports:{}},jte;function VHe(){return jte||(jte=1,function(e,t){(function(n,r,i){e.exports=r(ei(),Wa())})(Wn,function(n){return n.mode.OFB=function(){var r=n.lib.BlockCipherMode.extend(),i=r.Encryptor=r.extend({processBlock:function(o,a){var s=this._cipher,l=s.blockSize,c=this._iv,u=this._keystream;c&&(u=this._keystream=c.slice(0),this._iv=void 0),s.encryptBlock(u,0);for(var d=0;d<l;d++)o[a+d]^=u[d]}});return r.Decryptor=i,r}(),n.mode.OFB})}(c6)),c6.exports}var u6={exports:{}},Ute;function GHe(){return Ute||(Ute=1,function(e,t){(function(n,r,i){e.exports=r(ei(),Wa())})(Wn,function(n){return n.mode.ECB=function(){var r=n.lib.BlockCipherMode.extend();return r.Encryptor=r.extend({processBlock:function(i,o){this._cipher.encryptBlock(i,o)}}),r.Decryptor=r.extend({processBlock:function(i,o){this._cipher.decryptBlock(i,o)}}),r}(),n.mode.ECB})}(u6)),u6.exports}var d6={exports:{}},zte;function WHe(){return zte||(zte=1,function(e,t){(function(n,r,i){e.exports=r(ei(),Wa())})(Wn,function(n){return n.pad.AnsiX923={pad:function(r,i){var o=r.sigBytes,a=i*4,s=a-o%a,l=o+s-1;r.clamp(),r.words[l>>>2]|=s<<24-l%4*8,r.sigBytes+=s},unpad:function(r){var i=r.words[r.sigBytes-1>>>2]&255;r.sigBytes-=i}},n.pad.Ansix923})}(d6)),d6.exports}var f6={exports:{}},Vte;function qHe(){return Vte||(Vte=1,function(e,t){(function(n,r,i){e.exports=r(ei(),Wa())})(Wn,function(n){return n.pad.Iso10126={pad:function(r,i){var o=i*4,a=o-r.sigBytes%o;r.concat(n.lib.WordArray.random(a-1)).concat(n.lib.WordArray.create([a<<24],1))},unpad:function(r){var i=r.words[r.sigBytes-1>>>2]&255;r.sigBytes-=i}},n.pad.Iso10126})}(f6)),f6.exports}var p6={exports:{}},Gte;function YHe(){return Gte||(Gte=1,function(e,t){(function(n,r,i){e.exports=r(ei(),Wa())})(Wn,function(n){return n.pad.Iso97971={pad:function(r,i){r.concat(n.lib.WordArray.create([2147483648],1)),n.pad.ZeroPadding.pad(r,i)},unpad:function(r){n.pad.ZeroPadding.unpad(r),r.sigBytes--}},n.pad.Iso97971})}(p6)),p6.exports}var h6={exports:{}},Wte;function KHe(){return Wte||(Wte=1,function(e,t){(function(n,r,i){e.exports=r(ei(),Wa())})(Wn,function(n){return n.pad.ZeroPadding={pad:function(r,i){var o=i*4;r.clamp(),r.sigBytes+=o-(r.sigBytes%o||o)},unpad:function(r){for(var i=r.words,o=r.sigBytes-1,o=r.sigBytes-1;o>=0;o--)if(i[o>>>2]>>>24-o%4*8&255){r.sigBytes=o+1;break}}},n.pad.ZeroPadding})}(h6)),h6.exports}var m6={exports:{}},qte;function QHe(){return qte||(qte=1,function(e,t){(function(n,r,i){e.exports=r(ei(),Wa())})(Wn,function(n){return n.pad.NoPadding={pad:function(){},unpad:function(){}},n.pad.NoPadding})}(m6)),m6.exports}var g6={exports:{}},Yte;function XHe(){return Yte||(Yte=1,function(e,t){(function(n,r,i){e.exports=r(ei(),Wa())})(Wn,function(n){return function(r){var i=n,o=i.lib,a=o.CipherParams,s=i.enc,l=s.Hex,c=i.format;c.Hex={stringify:function(u){return u.ciphertext.toString(l)},parse:function(u){var d=l.parse(u);return a.create({ciphertext:d})}}}(),n.format.Hex})}(g6)),g6.exports}var v6={exports:{}},Kte;function ZHe(){return Kte||(Kte=1,function(e,t){(function(n,r,i){e.exports=r(ei(),fv(),pv(),Og(),Wa())})(Wn,function(n){return function(){var r=n,i=r.lib,o=i.BlockCipher,a=r.algo,s=[],l=[],c=[],u=[],d=[],f=[],p=[],m=[],g=[],v=[];(function(){for(var _=[],S=0;S<256;S++)S<128?_[S]=S<<1:_[S]=S<<1^283;for(var x=0,E=0,S=0;S<256;S++){var C=E^E<<1^E<<2^E<<3^E<<4;C=C>>>8^C&255^99,s[x]=C,l[C]=x;var w=_[x],O=_[w],T=_[O],A=_[C]*257^C*16843008;c[x]=A<<24|A>>>8,u[x]=A<<16|A>>>16,d[x]=A<<8|A>>>24,f[x]=A;var A=T*16843009^O*65537^w*257^x*16843008;p[C]=A<<24|A>>>8,m[C]=A<<16|A>>>16,g[C]=A<<8|A>>>24,v[C]=A,x?(x=w^_[_[_[T^w]]],E^=_[_[E]]):x=E=1}})();var y=[0,1,2,4,8,16,32,64,128,27,54],b=a.AES=o.extend({_doReset:function(){var _;if(!(this._nRounds&&this._keyPriorReset===this._key)){for(var S=this._keyPriorReset=this._key,x=S.words,E=S.sigBytes/4,C=this._nRounds=E+6,w=(C+1)*4,O=this._keySchedule=[],T=0;T<w;T++)T<E?O[T]=x[T]:(_=O[T-1],T%E?E>6&&T%E==4&&(_=s[_>>>24]<<24|s[_>>>16&255]<<16|s[_>>>8&255]<<8|s[_&255]):(_=_<<8|_>>>24,_=s[_>>>24]<<24|s[_>>>16&255]<<16|s[_>>>8&255]<<8|s[_&255],_^=y[T/E|0]<<24),O[T]=O[T-E]^_);for(var A=this._invKeySchedule=[],I=0;I<w;I++){var T=w-I;if(I%4)var _=O[T];else var _=O[T-4];I<4||T<=4?A[I]=_:A[I]=p[s[_>>>24]]^m[s[_>>>16&255]]^g[s[_>>>8&255]]^v[s[_&255]]}}},encryptBlock:function(_,S){this._doCryptBlock(_,S,this._keySchedule,c,u,d,f,s)},decryptBlock:function(_,S){var x=_[S+1];_[S+1]=_[S+3],_[S+3]=x,this._doCryptBlock(_,S,this._invKeySchedule,p,m,g,v,l);var x=_[S+1];_[S+1]=_[S+3],_[S+3]=x},_doCryptBlock:function(_,S,x,E,C,w,O,T){for(var A=this._nRounds,I=_[S]^x[0],N=_[S+1]^x[1],D=_[S+2]^x[2],M=_[S+3]^x[3],k=4,P=1;P<A;P++){var B=E[I>>>24]^C[N>>>16&255]^w[D>>>8&255]^O[M&255]^x[k++],G=E[N>>>24]^C[D>>>16&255]^w[M>>>8&255]^O[I&255]^x[k++],L=E[D>>>24]^C[M>>>16&255]^w[I>>>8&255]^O[N&255]^x[k++],W=E[M>>>24]^C[I>>>16&255]^w[N>>>8&255]^O[D&255]^x[k++];I=B,N=G,D=L,M=W}var B=(T[I>>>24]<<24|T[N>>>16&255]<<16|T[D>>>8&255]<<8|T[M&255])^x[k++],G=(T[N>>>24]<<24|T[D>>>16&255]<<16|T[M>>>8&255]<<8|T[I&255])^x[k++],L=(T[D>>>24]<<24|T[M>>>16&255]<<16|T[I>>>8&255]<<8|T[N&255])^x[k++],W=(T[M>>>24]<<24|T[I>>>16&255]<<16|T[N>>>8&255]<<8|T[D&255])^x[k++];_[S]=B,_[S+1]=G,_[S+2]=L,_[S+3]=W},keySize:256/32});r.AES=o._createHelper(b)}(),n.AES})}(v6)),v6.exports}var b6={exports:{}},Qte;function JHe(){return Qte||(Qte=1,function(e,t){(function(n,r,i){e.exports=r(ei(),fv(),pv(),Og(),Wa())})(Wn,function(n){return function(){var r=n,i=r.lib,o=i.WordArray,a=i.BlockCipher,s=r.algo,l=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],c=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],u=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],d=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}],f=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],p=s.DES=a.extend({_doReset:function(){for(var y=this._key,b=y.words,_=[],S=0;S<56;S++){var x=l[S]-1;_[S]=b[x>>>5]>>>31-x%32&1}for(var E=this._subKeys=[],C=0;C<16;C++){for(var w=E[C]=[],O=u[C],S=0;S<24;S++)w[S/6|0]|=_[(c[S]-1+O)%28]<<31-S%6,w[4+(S/6|0)]|=_[28+(c[S+24]-1+O)%28]<<31-S%6;w[0]=w[0]<<1|w[0]>>>31;for(var S=1;S<7;S++)w[S]=w[S]>>>(S-1)*4+3;w[7]=w[7]<<5|w[7]>>>27}for(var T=this._invSubKeys=[],S=0;S<16;S++)T[S]=E[15-S]},encryptBlock:function(y,b){this._doCryptBlock(y,b,this._subKeys)},decryptBlock:function(y,b){this._doCryptBlock(y,b,this._invSubKeys)},_doCryptBlock:function(y,b,_){this._lBlock=y[b],this._rBlock=y[b+1],m.call(this,4,252645135),m.call(this,16,65535),g.call(this,2,858993459),g.call(this,8,16711935),m.call(this,1,1431655765);for(var S=0;S<16;S++){for(var x=_[S],E=this._lBlock,C=this._rBlock,w=0,O=0;O<8;O++)w|=d[O][((C^x[O])&f[O])>>>0];this._lBlock=C,this._rBlock=E^w}var T=this._lBlock;this._lBlock=this._rBlock,this._rBlock=T,m.call(this,1,1431655765),g.call(this,8,16711935),g.call(this,2,858993459),m.call(this,16,65535),m.call(this,4,252645135),y[b]=this._lBlock,y[b+1]=this._rBlock},keySize:64/32,ivSize:64/32,blockSize:64/32});function m(y,b){var _=(this._lBlock>>>y^this._rBlock)&b;this._rBlock^=_,this._lBlock^=_<<y}function g(y,b){var _=(this._rBlock>>>y^this._lBlock)&b;this._lBlock^=_,this._rBlock^=_<<y}r.DES=a._createHelper(p);var v=s.TripleDES=a.extend({_doReset:function(){var y=this._key,b=y.words;if(b.length!==2&&b.length!==4&&b.length<6)throw new Error("Invalid key length - 3DES requires the key length to be 64, 128, 192 or >192.");var _=b.slice(0,2),S=b.length<4?b.slice(0,2):b.slice(2,4),x=b.length<6?b.slice(0,2):b.slice(4,6);this._des1=p.createEncryptor(o.create(_)),this._des2=p.createEncryptor(o.create(S)),this._des3=p.createEncryptor(o.create(x))},encryptBlock:function(y,b){this._des1.encryptBlock(y,b),this._des2.decryptBlock(y,b),this._des3.encryptBlock(y,b)},decryptBlock:function(y,b){this._des3.decryptBlock(y,b),this._des2.encryptBlock(y,b),this._des1.decryptBlock(y,b)},keySize:192/32,ivSize:64/32,blockSize:64/32});r.TripleDES=a._createHelper(v)}(),n.TripleDES})}(b6)),b6.exports}var y6={exports:{}},Xte;function eje(){return Xte||(Xte=1,function(e,t){(function(n,r,i){e.exports=r(ei(),fv(),pv(),Og(),Wa())})(Wn,function(n){return function(){var r=n,i=r.lib,o=i.StreamCipher,a=r.algo,s=a.RC4=o.extend({_doReset:function(){for(var u=this._key,d=u.words,f=u.sigBytes,p=this._S=[],m=0;m<256;m++)p[m]=m;for(var m=0,g=0;m<256;m++){var v=m%f,y=d[v>>>2]>>>24-v%4*8&255;g=(g+p[m]+y)%256;var b=p[m];p[m]=p[g],p[g]=b}this._i=this._j=0},_doProcessBlock:function(u,d){u[d]^=l.call(this)},keySize:256/32,ivSize:0});function l(){for(var u=this._S,d=this._i,f=this._j,p=0,m=0;m<4;m++){d=(d+1)%256,f=(f+u[d])%256;var g=u[d];u[d]=u[f],u[f]=g,p|=u[(u[d]+u[f])%256]<<24-m*8}return this._i=d,this._j=f,p}r.RC4=o._createHelper(s);var c=a.RC4Drop=s.extend({cfg:s.cfg.extend({drop:192}),_doReset:function(){s._doReset.call(this);for(var u=this.cfg.drop;u>0;u--)l.call(this)}});r.RC4Drop=o._createHelper(c)}(),n.RC4})}(y6)),y6.exports}var _6={exports:{}},Zte;function tje(){return Zte||(Zte=1,function(e,t){(function(n,r,i){e.exports=r(ei(),fv(),pv(),Og(),Wa())})(Wn,function(n){return function(){var r=n,i=r.lib,o=i.StreamCipher,a=r.algo,s=[],l=[],c=[],u=a.Rabbit=o.extend({_doReset:function(){for(var f=this._key.words,p=this.cfg.iv,m=0;m<4;m++)f[m]=(f[m]<<8|f[m]>>>24)&16711935|(f[m]<<24|f[m]>>>8)&4278255360;var g=this._X=[f[0],f[3]<<16|f[2]>>>16,f[1],f[0]<<16|f[3]>>>16,f[2],f[1]<<16|f[0]>>>16,f[3],f[2]<<16|f[1]>>>16],v=this._C=[f[2]<<16|f[2]>>>16,f[0]&4294901760|f[1]&65535,f[3]<<16|f[3]>>>16,f[1]&4294901760|f[2]&65535,f[0]<<16|f[0]>>>16,f[2]&4294901760|f[3]&65535,f[1]<<16|f[1]>>>16,f[3]&4294901760|f[0]&65535];this._b=0;for(var m=0;m<4;m++)d.call(this);for(var m=0;m<8;m++)v[m]^=g[m+4&7];if(p){var y=p.words,b=y[0],_=y[1],S=(b<<8|b>>>24)&16711935|(b<<24|b>>>8)&4278255360,x=(_<<8|_>>>24)&16711935|(_<<24|_>>>8)&4278255360,E=S>>>16|x&4294901760,C=x<<16|S&65535;v[0]^=S,v[1]^=E,v[2]^=x,v[3]^=C,v[4]^=S,v[5]^=E,v[6]^=x,v[7]^=C;for(var m=0;m<4;m++)d.call(this)}},_doProcessBlock:function(f,p){var m=this._X;d.call(this),s[0]=m[0]^m[5]>>>16^m[3]<<16,s[1]=m[2]^m[7]>>>16^m[5]<<16,s[2]=m[4]^m[1]>>>16^m[7]<<16,s[3]=m[6]^m[3]>>>16^m[1]<<16;for(var g=0;g<4;g++)s[g]=(s[g]<<8|s[g]>>>24)&16711935|(s[g]<<24|s[g]>>>8)&4278255360,f[p+g]^=s[g]},blockSize:128/32,ivSize:64/32});function d(){for(var f=this._X,p=this._C,m=0;m<8;m++)l[m]=p[m];p[0]=p[0]+1295307597+this._b|0,p[1]=p[1]+3545052371+(p[0]>>>0<l[0]>>>0?1:0)|0,p[2]=p[2]+886263092+(p[1]>>>0<l[1]>>>0?1:0)|0,p[3]=p[3]+1295307597+(p[2]>>>0<l[2]>>>0?1:0)|0,p[4]=p[4]+3545052371+(p[3]>>>0<l[3]>>>0?1:0)|0,p[5]=p[5]+886263092+(p[4]>>>0<l[4]>>>0?1:0)|0,p[6]=p[6]+1295307597+(p[5]>>>0<l[5]>>>0?1:0)|0,p[7]=p[7]+3545052371+(p[6]>>>0<l[6]>>>0?1:0)|0,this._b=p[7]>>>0<l[7]>>>0?1:0;for(var m=0;m<8;m++){var g=f[m]+p[m],v=g&65535,y=g>>>16,b=((v*v>>>17)+v*y>>>15)+y*y,_=((g&4294901760)*g|0)+((g&65535)*g|0);c[m]=b^_}f[0]=c[0]+(c[7]<<16|c[7]>>>16)+(c[6]<<16|c[6]>>>16)|0,f[1]=c[1]+(c[0]<<8|c[0]>>>24)+c[7]|0,f[2]=c[2]+(c[1]<<16|c[1]>>>16)+(c[0]<<16|c[0]>>>16)|0,f[3]=c[3]+(c[2]<<8|c[2]>>>24)+c[1]|0,f[4]=c[4]+(c[3]<<16|c[3]>>>16)+(c[2]<<16|c[2]>>>16)|0,f[5]=c[5]+(c[4]<<8|c[4]>>>24)+c[3]|0,f[6]=c[6]+(c[5]<<16|c[5]>>>16)+(c[4]<<16|c[4]>>>16)|0,f[7]=c[7]+(c[6]<<8|c[6]>>>24)+c[5]|0}r.Rabbit=o._createHelper(u)}(),n.Rabbit})}(_6)),_6.exports}var S6={exports:{}},Jte;function nje(){return Jte||(Jte=1,function(e,t){(function(n,r,i){e.exports=r(ei(),fv(),pv(),Og(),Wa())})(Wn,function(n){return function(){var r=n,i=r.lib,o=i.StreamCipher,a=r.algo,s=[],l=[],c=[],u=a.RabbitLegacy=o.extend({_doReset:function(){var f=this._key.words,p=this.cfg.iv,m=this._X=[f[0],f[3]<<16|f[2]>>>16,f[1],f[0]<<16|f[3]>>>16,f[2],f[1]<<16|f[0]>>>16,f[3],f[2]<<16|f[1]>>>16],g=this._C=[f[2]<<16|f[2]>>>16,f[0]&4294901760|f[1]&65535,f[3]<<16|f[3]>>>16,f[1]&4294901760|f[2]&65535,f[0]<<16|f[0]>>>16,f[2]&4294901760|f[3]&65535,f[1]<<16|f[1]>>>16,f[3]&4294901760|f[0]&65535];this._b=0;for(var v=0;v<4;v++)d.call(this);for(var v=0;v<8;v++)g[v]^=m[v+4&7];if(p){var y=p.words,b=y[0],_=y[1],S=(b<<8|b>>>24)&16711935|(b<<24|b>>>8)&4278255360,x=(_<<8|_>>>24)&16711935|(_<<24|_>>>8)&4278255360,E=S>>>16|x&4294901760,C=x<<16|S&65535;g[0]^=S,g[1]^=E,g[2]^=x,g[3]^=C,g[4]^=S,g[5]^=E,g[6]^=x,g[7]^=C;for(var v=0;v<4;v++)d.call(this)}},_doProcessBlock:function(f,p){var m=this._X;d.call(this),s[0]=m[0]^m[5]>>>16^m[3]<<16,s[1]=m[2]^m[7]>>>16^m[5]<<16,s[2]=m[4]^m[1]>>>16^m[7]<<16,s[3]=m[6]^m[3]>>>16^m[1]<<16;for(var g=0;g<4;g++)s[g]=(s[g]<<8|s[g]>>>24)&16711935|(s[g]<<24|s[g]>>>8)&4278255360,f[p+g]^=s[g]},blockSize:128/32,ivSize:64/32});function d(){for(var f=this._X,p=this._C,m=0;m<8;m++)l[m]=p[m];p[0]=p[0]+1295307597+this._b|0,p[1]=p[1]+3545052371+(p[0]>>>0<l[0]>>>0?1:0)|0,p[2]=p[2]+886263092+(p[1]>>>0<l[1]>>>0?1:0)|0,p[3]=p[3]+1295307597+(p[2]>>>0<l[2]>>>0?1:0)|0,p[4]=p[4]+3545052371+(p[3]>>>0<l[3]>>>0?1:0)|0,p[5]=p[5]+886263092+(p[4]>>>0<l[4]>>>0?1:0)|0,p[6]=p[6]+1295307597+(p[5]>>>0<l[5]>>>0?1:0)|0,p[7]=p[7]+3545052371+(p[6]>>>0<l[6]>>>0?1:0)|0,this._b=p[7]>>>0<l[7]>>>0?1:0;for(var m=0;m<8;m++){var g=f[m]+p[m],v=g&65535,y=g>>>16,b=((v*v>>>17)+v*y>>>15)+y*y,_=((g&4294901760)*g|0)+((g&65535)*g|0);c[m]=b^_}f[0]=c[0]+(c[7]<<16|c[7]>>>16)+(c[6]<<16|c[6]>>>16)|0,f[1]=c[1]+(c[0]<<8|c[0]>>>24)+c[7]|0,f[2]=c[2]+(c[1]<<16|c[1]>>>16)+(c[0]<<16|c[0]>>>16)|0,f[3]=c[3]+(c[2]<<8|c[2]>>>24)+c[1]|0,f[4]=c[4]+(c[3]<<16|c[3]>>>16)+(c[2]<<16|c[2]>>>16)|0,f[5]=c[5]+(c[4]<<8|c[4]>>>24)+c[3]|0,f[6]=c[6]+(c[5]<<16|c[5]>>>16)+(c[4]<<16|c[4]>>>16)|0,f[7]=c[7]+(c[6]<<8|c[6]>>>24)+c[5]|0}r.RabbitLegacy=o._createHelper(u)}(),n.RabbitLegacy})}(S6)),S6.exports}var E6={exports:{}},ene;function rje(){return ene||(ene=1,function(e,t){(function(n,r,i){e.exports=r(ei(),fv(),pv(),Og(),Wa())})(Wn,function(n){return function(){var r=n,i=r.lib,o=i.BlockCipher,a=r.algo;const s=16,l=[608135816,2242054355,320440878,57701188,2752067618,698298832,137296536,3964562569,1160258022,953160567,3193202383,887688300,3232508343,3380367581,1065670069,3041331479,2450970073,2306472731],c=[[3509652390,2564797868,805139163,3491422135,3101798381,1780907670,3128725573,4046225305,614570311,3012652279,134345442,2240740374,1667834072,1901547113,2757295779,4103290238,227898511,1921955416,1904987480,2182433518,2069144605,3260701109,2620446009,720527379,3318853667,677414384,3393288472,3101374703,2390351024,1614419982,1822297739,2954791486,3608508353,3174124327,2024746970,1432378464,3864339955,2857741204,1464375394,1676153920,1439316330,715854006,3033291828,289532110,2706671279,2087905683,3018724369,1668267050,732546397,1947742710,3462151702,2609353502,2950085171,1814351708,2050118529,680887927,999245976,1800124847,3300911131,1713906067,1641548236,4213287313,1216130144,1575780402,4018429277,3917837745,3693486850,3949271944,596196993,3549867205,258830323,2213823033,772490370,2760122372,1774776394,2652871518,566650946,4142492826,1728879713,2882767088,1783734482,3629395816,2517608232,2874225571,1861159788,326777828,3124490320,2130389656,2716951837,967770486,1724537150,2185432712,2364442137,1164943284,2105845187,998989502,3765401048,2244026483,1075463327,1455516326,1322494562,910128902,469688178,1117454909,936433444,3490320968,3675253459,1240580251,122909385,2157517691,634681816,4142456567,3825094682,3061402683,2540495037,79693498,3249098678,1084186820,1583128258,426386531,1761308591,1047286709,322548459,995290223,1845252383,2603652396,3431023940,2942221577,3202600964,3727903485,1712269319,422464435,3234572375,1170764815,3523960633,3117677531,1434042557,442511882,3600875718,1076654713,1738483198,4213154764,2393238008,3677496056,1014306527,4251020053,793779912,2902807211,842905082,4246964064,1395751752,1040244610,2656851899,3396308128,445077038,3742853595,3577915638,679411651,2892444358,2354009459,1767581616,3150600392,3791627101,3102740896,284835224,4246832056,1258075500,768725851,2589189241,3069724005,3532540348,1274779536,3789419226,2764799539,1660621633,3471099624,4011903706,913787905,3497959166,737222580,2514213453,2928710040,3937242737,1804850592,3499020752,2949064160,2386320175,2390070455,2415321851,4061277028,2290661394,2416832540,1336762016,1754252060,3520065937,3014181293,791618072,3188594551,3933548030,2332172193,3852520463,3043980520,413987798,3465142937,3030929376,4245938359,2093235073,3534596313,375366246,2157278981,2479649556,555357303,3870105701,2008414854,3344188149,4221384143,3956125452,2067696032,3594591187,2921233993,2428461,544322398,577241275,1471733935,610547355,4027169054,1432588573,1507829418,2025931657,3646575487,545086370,48609733,2200306550,1653985193,298326376,1316178497,3007786442,2064951626,458293330,2589141269,3591329599,3164325604,727753846,2179363840,146436021,1461446943,4069977195,705550613,3059967265,3887724982,4281599278,3313849956,1404054877,2845806497,146425753,1854211946],[1266315497,3048417604,3681880366,3289982499,290971e4,1235738493,2632868024,2414719590,3970600049,1771706367,1449415276,3266420449,422970021,1963543593,2690192192,3826793022,1062508698,1531092325,1804592342,2583117782,2714934279,4024971509,1294809318,4028980673,1289560198,2221992742,1669523910,35572830,157838143,1052438473,1016535060,1802137761,1753167236,1386275462,3080475397,2857371447,1040679964,2145300060,2390574316,1461121720,2956646967,4031777805,4028374788,33600511,2920084762,1018524850,629373528,3691585981,3515945977,2091462646,2486323059,586499841,988145025,935516892,3367335476,2599673255,2839830854,265290510,3972581182,2759138881,3795373465,1005194799,847297441,406762289,1314163512,1332590856,1866599683,4127851711,750260880,613907577,1450815602,3165620655,3734664991,3650291728,3012275730,3704569646,1427272223,778793252,1343938022,2676280711,2052605720,1946737175,3164576444,3914038668,3967478842,3682934266,1661551462,3294938066,4011595847,840292616,3712170807,616741398,312560963,711312465,1351876610,322626781,1910503582,271666773,2175563734,1594956187,70604529,3617834859,1007753275,1495573769,4069517037,2549218298,2663038764,504708206,2263041392,3941167025,2249088522,1514023603,1998579484,1312622330,694541497,2582060303,2151582166,1382467621,776784248,2618340202,3323268794,2497899128,2784771155,503983604,4076293799,907881277,423175695,432175456,1378068232,4145222326,3954048622,3938656102,3820766613,2793130115,2977904593,26017576,3274890735,3194772133,1700274565,1756076034,4006520079,3677328699,720338349,1533947780,354530856,688349552,3973924725,1637815568,332179504,3949051286,53804574,2852348879,3044236432,1282449977,3583942155,3416972820,4006381244,1617046695,2628476075,3002303598,1686838959,431878346,2686675385,1700445008,1080580658,1009431731,832498133,3223435511,2605976345,2271191193,2516031870,1648197032,4164389018,2548247927,300782431,375919233,238389289,3353747414,2531188641,2019080857,1475708069,455242339,2609103871,448939670,3451063019,1395535956,2413381860,1841049896,1491858159,885456874,4264095073,4001119347,1565136089,3898914787,1108368660,540939232,1173283510,2745871338,3681308437,4207628240,3343053890,4016749493,1699691293,1103962373,3625875870,2256883143,3830138730,1031889488,3479347698,1535977030,4236805024,3251091107,2132092099,1774941330,1199868427,1452454533,157007616,2904115357,342012276,595725824,1480756522,206960106,497939518,591360097,863170706,2375253569,3596610801,1814182875,2094937945,3421402208,1082520231,3463918190,2785509508,435703966,3908032597,1641649973,2842273706,3305899714,1510255612,2148256476,2655287854,3276092548,4258621189,236887753,3681803219,274041037,1734335097,3815195456,3317970021,1899903192,1026095262,4050517792,356393447,2410691914,3873677099,3682840055],[3913112168,2491498743,4132185628,2489919796,1091903735,1979897079,3170134830,3567386728,3557303409,857797738,1136121015,1342202287,507115054,2535736646,337727348,3213592640,1301675037,2528481711,1895095763,1721773893,3216771564,62756741,2142006736,835421444,2531993523,1442658625,3659876326,2882144922,676362277,1392781812,170690266,3921047035,1759253602,3611846912,1745797284,664899054,1329594018,3901205900,3045908486,2062866102,2865634940,3543621612,3464012697,1080764994,553557557,3656615353,3996768171,991055499,499776247,1265440854,648242737,3940784050,980351604,3713745714,1749149687,3396870395,4211799374,3640570775,1161844396,3125318951,1431517754,545492359,4268468663,3499529547,1437099964,2702547544,3433638243,2581715763,2787789398,1060185593,1593081372,2418618748,4260947970,69676912,2159744348,86519011,2512459080,3838209314,1220612927,3339683548,133810670,1090789135,1078426020,1569222167,845107691,3583754449,4072456591,1091646820,628848692,1613405280,3757631651,526609435,236106946,48312990,2942717905,3402727701,1797494240,859738849,992217954,4005476642,2243076622,3870952857,3732016268,765654824,3490871365,2511836413,1685915746,3888969200,1414112111,2273134842,3281911079,4080962846,172450625,2569994100,980381355,4109958455,2819808352,2716589560,2568741196,3681446669,3329971472,1835478071,660984891,3704678404,4045999559,3422617507,3040415634,1762651403,1719377915,3470491036,2693910283,3642056355,3138596744,1364962596,2073328063,1983633131,926494387,3423689081,2150032023,4096667949,1749200295,3328846651,309677260,2016342300,1779581495,3079819751,111262694,1274766160,443224088,298511866,1025883608,3806446537,1145181785,168956806,3641502830,3584813610,1689216846,3666258015,3200248200,1692713982,2646376535,4042768518,1618508792,1610833997,3523052358,4130873264,2001055236,3610705100,2202168115,4028541809,2961195399,1006657119,2006996926,3186142756,1430667929,3210227297,1314452623,4074634658,4101304120,2273951170,1399257539,3367210612,3027628629,1190975929,2062231137,2333990788,2221543033,2438960610,1181637006,548689776,2362791313,3372408396,3104550113,3145860560,296247880,1970579870,3078560182,3769228297,1714227617,3291629107,3898220290,166772364,1251581989,493813264,448347421,195405023,2709975567,677966185,3703036547,1463355134,2715995803,1338867538,1343315457,2802222074,2684532164,233230375,2599980071,2000651841,3277868038,1638401717,4028070440,3237316320,6314154,819756386,300326615,590932579,1405279636,3267499572,3150704214,2428286686,3959192993,3461946742,1862657033,1266418056,963775037,2089974820,2263052895,1917689273,448879540,3550394620,3981727096,150775221,3627908307,1303187396,508620638,2975983352,2726630617,1817252668,1876281319,1457606340,908771278,3720792119,3617206836,2455994898,1729034894,1080033504],[976866871,3556439503,2881648439,1522871579,1555064734,1336096578,3548522304,2579274686,3574697629,3205460757,3593280638,3338716283,3079412587,564236357,2993598910,1781952180,1464380207,3163844217,3332601554,1699332808,1393555694,1183702653,3581086237,1288719814,691649499,2847557200,2895455976,3193889540,2717570544,1781354906,1676643554,2592534050,3230253752,1126444790,2770207658,2633158820,2210423226,2615765581,2414155088,3127139286,673620729,2805611233,1269405062,4015350505,3341807571,4149409754,1057255273,2012875353,2162469141,2276492801,2601117357,993977747,3918593370,2654263191,753973209,36408145,2530585658,25011837,3520020182,2088578344,530523599,2918365339,1524020338,1518925132,3760827505,3759777254,1202760957,3985898139,3906192525,674977740,4174734889,2031300136,2019492241,3983892565,4153806404,3822280332,352677332,2297720250,60907813,90501309,3286998549,1016092578,2535922412,2839152426,457141659,509813237,4120667899,652014361,1966332200,2975202805,55981186,2327461051,676427537,3255491064,2882294119,3433927263,1307055953,942726286,933058658,2468411793,3933900994,4215176142,1361170020,2001714738,2830558078,3274259782,1222529897,1679025792,2729314320,3714953764,1770335741,151462246,3013232138,1682292957,1483529935,471910574,1539241949,458788160,3436315007,1807016891,3718408830,978976581,1043663428,3165965781,1927990952,4200891579,2372276910,3208408903,3533431907,1412390302,2931980059,4132332400,1947078029,3881505623,4168226417,2941484381,1077988104,1320477388,886195818,18198404,3786409e3,2509781533,112762804,3463356488,1866414978,891333506,18488651,661792760,1628790961,3885187036,3141171499,876946877,2693282273,1372485963,791857591,2686433993,3759982718,3167212022,3472953795,2716379847,445679433,3561995674,3504004811,3574258232,54117162,3331405415,2381918588,3769707343,4154350007,1140177722,4074052095,668550556,3214352940,367459370,261225585,2610173221,4209349473,3468074219,3265815641,314222801,3066103646,3808782860,282218597,3406013506,3773591054,379116347,1285071038,846784868,2669647154,3771962079,3550491691,2305946142,453669953,1268987020,3317592352,3279303384,3744833421,2610507566,3859509063,266596637,3847019092,517658769,3462560207,3443424879,370717030,4247526661,2224018117,4143653529,4112773975,2788324899,2477274417,1456262402,2901442914,1517677493,1846949527,2295493580,3734397586,2176403920,1280348187,1908823572,3871786941,846861322,1172426758,3287448474,3383383037,1655181056,3139813346,901632758,1897031941,2986607138,3066810236,3447102507,1393639104,373351379,950779232,625454576,3124240540,4148612726,2007998917,544563296,2244738638,2330496472,2058025392,1291430526,424198748,50039436,29584100,3605783033,2429876329,2791104160,1057563949,3255363231,3075367218,3463963227,1469046755,985887462]];var u={pbox:[],sbox:[]};function d(v,y){let b=y>>24&255,_=y>>16&255,S=y>>8&255,x=y&255,E=v.sbox[0][b]+v.sbox[1][_];return E=E^v.sbox[2][S],E=E+v.sbox[3][x],E}function f(v,y,b){let _=y,S=b,x;for(let E=0;E<s;++E)_=_^v.pbox[E],S=d(v,_)^S,x=_,_=S,S=x;return x=_,_=S,S=x,S=S^v.pbox[s],_=_^v.pbox[s+1],{left:_,right:S}}function p(v,y,b){let _=y,S=b,x;for(let E=s+1;E>1;--E)_=_^v.pbox[E],S=d(v,_)^S,x=_,_=S,S=x;return x=_,_=S,S=x,S=S^v.pbox[1],_=_^v.pbox[0],{left:_,right:S}}function m(v,y,b){for(let C=0;C<4;C++){v.sbox[C]=[];for(let w=0;w<256;w++)v.sbox[C][w]=c[C][w]}let _=0;for(let C=0;C<s+2;C++)v.pbox[C]=l[C]^y[_],_++,_>=b&&(_=0);let S=0,x=0,E=0;for(let C=0;C<s+2;C+=2)E=f(v,S,x),S=E.left,x=E.right,v.pbox[C]=S,v.pbox[C+1]=x;for(let C=0;C<4;C++)for(let w=0;w<256;w+=2)E=f(v,S,x),S=E.left,x=E.right,v.sbox[C][w]=S,v.sbox[C][w+1]=x;return!0}var g=a.Blowfish=o.extend({_doReset:function(){if(this._keyPriorReset!==this._key){var v=this._keyPriorReset=this._key,y=v.words,b=v.sigBytes/4;m(u,y,b)}},encryptBlock:function(v,y){var b=f(u,v[y],v[y+1]);v[y]=b.left,v[y+1]=b.right},decryptBlock:function(v,y){var b=p(u,v[y],v[y+1]);v[y]=b.left,v[y+1]=b.right},blockSize:64/32,keySize:128/32,ivSize:64/32});r.Blowfish=o._createHelper(g)}(),n.Blowfish})}(E6)),E6.exports}(function(e,t){(function(n,r,i){e.exports=r(ei(),D5(),kHe(),PHe(),fv(),DHe(),pv(),bbe(),FW(),LHe(),ybe(),$He(),FHe(),BHe(),BW(),HHe(),Og(),Wa(),jHe(),UHe(),zHe(),VHe(),GHe(),WHe(),qHe(),YHe(),KHe(),QHe(),XHe(),ZHe(),JHe(),eje(),tje(),nje(),rje())})(Wn,function(n){return n})})(vbe);var ije=vbe.exports;const wE=oi(ije);function _be(e){try{if(!e||e.length<20)return e;try{const n=wE.AES.decrypt(e,wE.enc.Utf8.parse("bytedesk_license"),{mode:wE.mode.ECB,padding:wE.pad.Pkcs7});return wE.enc.Utf8.stringify(n)}catch(t){return console.error("CryptoJS解密失败:",t),e}}catch(t){return console.error("解密失败:",t),e}}function Sbe(e){try{return typeof window<"u"&&typeof atob<"u"?decodeURIComponent(escape(atob(e))):typeof Buffer<"u"?Buffer.from(e,"base64").toString("utf8"):atob(e)}catch(t){throw console.error("Base64 解码失败:",t),new Error("Base64 解码失败")}}function oje(e){try{const t=_be(e),r=Sbe(t).split(":");if(r.length<2)throw new Error("许可证格式无效");const i=r[0],o=r[1];if(!/^\d{4}-\d{2}-\d{2}$/.test(o))throw new Error("解密后的字符串不是有效的日期格式");const a=i==="p"?"paid":"free";let s="COMMUNITY";if(r.length>=3&&r[2]){const f=r[2].toUpperCase();["COMMUNITY","ENTERPRISE","PLATFORM"].includes(f)&&(s=f)}let l=[];r.length>=4&&r[3]&&(l=r[3].split(",").filter(f=>f.trim()!==""));let c=[];r.length>=5&&r[4]&&(c=r[4].split(",").filter(f=>f.trim()!==""));let u="";r.length>=6&&r[5]&&(u=r[5]);let d="";return r.length>=7&&r[6]&&(d=r[6]),{userType:a,expiryDate:o,isValid:!sje(e),edition:s,serverIps:l,serverDomains:c,name:u,description:d}}catch(t){return console.error("解密许可证失败:",t),{userType:"free",expiryDate:"",isValid:!1,edition:"COMMUNITY",serverIps:[],serverDomains:[],name:"",description:""}}}function aje(e){try{const t=_be(e),n=Sbe(t);if(n.includes(":")){const r=n.split(":");if(r.length>=2&&/^\d{4}-\d{2}-\d{2}$/.test(r[1]))return r[1]}if(/^\d{4}-\d{2}-\d{2}$/.test(n))return n;throw new Error("解密后的字符串不是有效的日期格式")}catch(t){return console.error("解密失败:",t),""}}function sje(e){const t=aje(e);if(!t)return!0;const n=new Date(t),r=new Date;return r.setHours(0,0,0,0),n.setHours(0,0,0,0),r>n}async function Ebe(){try{const t=(await qo.get("/notebase/config.json")).data;if(t.enabled)console.log("config enabled: ",t),localStorage.setItem(tx,t_),localStorage.setItem(uI,t.apiUrl),localStorage.setItem(dI,t.websocketUrl),localStorage.setItem(L9,t.htmlUrl);else if(K$e===Ove){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(tx,t_),localStorage.setItem(uI,r),localStorage.setItem(dI,i),localStorage.setItem(L9,r)}else console.log("config disabled"),localStorage.setItem(tx,t7e),localStorage.removeItem(uI),localStorage.removeItem(dI),localStorage.removeItem(L9)}catch(e){console.log("loadConfig error: ",e)}}function L5(){const e=localStorage.getItem(Zb);if(console.log("custom_enabled: ",e),e===t_){const n=localStorage.getItem(_C);return n===null?D9:n}if(localStorage.getItem(tx)===t_){const n=localStorage.getItem(uI);return n===null?D9:n}return D9}function nx(){return L5()+"/api/v1/upload/file"}function lje(){const e=localStorage.getItem(Zb);if(console.log("custom_enabled: ",e),e===t_){const r=localStorage.getItem(SC);return r===null?$ee:r}const t=localStorage.getItem(tx),n=localStorage.getItem(dI);return t===t_?n:$ee}async function Cbe(){const e=await RHe();return e.data.code===200?(localStorage.setItem(Ive,JSON.stringify(e.data.data)),e.data.data):null}function cje(){const e=localStorage.getItem(Ive);if(e){const t=JSON.parse(e);return oje(t==null?void 0:t.appkey).edition}return null}function uje(){return cje()===Y$e}const Br=qo.create({timeout:2e4,baseURL:L5(),paramsSerializer:{indexes:null}});Br.interceptors.request.use(e=>{e.baseURL=L5();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(dje):e},e=>(console.debug("request error",e),e.response.status===403&&_r.emit(Zm,"403"),e.response.status===401&&_r.emit(Zm,"401"),Promise.reject(e)));Br.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"),_r.emit(Zm,"400");break;case 401:console.log("axios interception error 401"),_r.emit(Zm,"401");break;case 403:console.log("axios interception error 403"),_r.emit(Zm,"403");break;case 500:console.log("axios interception error 500"),_r.emit(r7e,"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 C6={data:null,status:601,statusText:Ave,headers:{},config:{headers:void 0},request:null},dje={message:"匿名用户,无需访问服务器接口",name:Ave,code:"601",config:C6.config,request:C6.request,response:C6,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 fje(e){return Br("/api/v1/agent/query",{method:"GET",params:{orgUid:e,client:Or}})}async function pje(e){return Br("/api/v1/agent/update",{method:"POST",data:{...e,client:Or}})}async function hje(e){return Br("/api/v1/agent/update/status",{method:"POST",data:{...e,client:Or}})}const hv=Ac()(Pd(Dd(Ld((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:b7e}))),mje=Ac()(Pd(Dd(Ld(e=>({devices:[],currentDevice:{uid:""},myDevice:{uid:""},addDevice(t){console.log("addDevice",t)},setCurrentDevice:t=>{e({currentDevice:t})},setMyDevice(t){e({myDevice:t})},resetDeviceInfo(){}})),{name:v7e}))),Ra=Ac()(Pd(Dd(Ld((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:h7e}))),gje=()=>{n_("https://www.weiyuai.cn/docs/zh-CN/")},n_=e=>{ja?window.electronAPI.openUrl(e):window.open(e,"_blank")},vje=async()=>{if(ja){const e=await window.electronAPI.getSystemInfo();console.log("systemInfo:",e)}else return console.log("not electron"),{platform:"web"}},xbe=async()=>ja?await window.electronAPI.getIpAddress():(console.log("not electron"),[]),bje=async()=>{if(ja){const e=await window.electronAPI.isWindowActive();return console.log("isWindowActive:",e),e}return null},yje=(e,t)=>{ja&&window.electronAPI.showElectronNotification(e,t)},_je=e=>{ja?window.electronAPI.setThemeMode(e):console.log("not electron")},GB=()=>{ja&&window.electronAPI.loginSuccess()},Sje=()=>{ja&&window.electronAPI.logoutSuccess()};//! moment.js
//! version : 2.30.1
//! authors : Tim Wood, Iskren Chernev, Moment.js contributors
//! license : MIT
//! momentjs.com
var wbe;function ln(){return wbe.apply(null,arguments)}function Eje(e){wbe=e}function Sd(e){return e instanceof Array||Object.prototype.toString.call(e)==="[object Array]"}function o1(e){return e!=null&&Object.prototype.toString.call(e)==="[object Object]"}function mi(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function HW(e){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(e).length===0;var t;for(t in e)if(mi(e,t))return!1;return!0}function bl(e){return e===void 0}function ih(e){return typeof e=="number"||Object.prototype.toString.call(e)==="[object Number]"}function KT(e){return e instanceof Date||Object.prototype.toString.call(e)==="[object Date]"}function Tbe(e,t){var n=[],r,i=e.length;for(r=0;r<i;++r)n.push(t(e[r],r));return n}function Om(e,t){for(var n in t)mi(t,n)&&(e[n]=t[n]);return mi(t,"toString")&&(e.toString=t.toString),mi(t,"valueOf")&&(e.valueOf=t.valueOf),e}function Vf(e,t,n,r){return Kbe(e,t,n,r,!0).utc()}function Cje(){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 Mr(e){return e._pf==null&&(e._pf=Cje()),e._pf}var WB;Array.prototype.some?WB=Array.prototype.some:WB=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 jW(e){var t=null,n=!1,r=e._d&&!isNaN(e._d.getTime());if(r&&(t=Mr(e),n=WB.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 $5(e){var t=Vf(NaN);return e!=null?Om(Mr(t),e):Mr(t).userInvalidated=!0,t}var tne=ln.momentProperties=[],x6=!1;function UW(e,t){var n,r,i,o=tne.length;if(bl(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),bl(t._i)||(e._i=t._i),bl(t._f)||(e._f=t._f),bl(t._l)||(e._l=t._l),bl(t._strict)||(e._strict=t._strict),bl(t._tzm)||(e._tzm=t._tzm),bl(t._isUTC)||(e._isUTC=t._isUTC),bl(t._offset)||(e._offset=t._offset),bl(t._pf)||(e._pf=Mr(t)),bl(t._locale)||(e._locale=t._locale),o>0)for(n=0;n<o;n++)r=tne[n],i=t[r],bl(i)||(e[r]=i);return e}function QT(e){UW(this,e),this._d=new Date(e._d!=null?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),x6===!1&&(x6=!0,ln.updateOffset(this),x6=!1)}function Ed(e){return e instanceof QT||e!=null&&e._isAMomentObject!=null}function Obe(e){ln.suppressDeprecationWarnings===!1&&typeof console<"u"&&console.warn&&console.warn("Deprecation warning: "+e)}function xu(e,t){var n=!0;return Om(function(){if(ln.deprecationHandler!=null&&ln.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])mi(arguments[0],a)&&(i+=a+": "+arguments[0][a]+", ");i=i.slice(0,-2)}else i=arguments[o];r.push(i)}Obe(e+`
Arguments: `+Array.prototype.slice.call(r).join("")+`
`+new Error().stack),n=!1}return t.apply(this,arguments)},t)}var nne={};function Rbe(e,t){ln.deprecationHandler!=null&&ln.deprecationHandler(e,t),nne[e]||(Obe(t),nne[e]=!0)}ln.suppressDeprecationWarnings=!1;ln.deprecationHandler=null;function Gf(e){return typeof Function<"u"&&e instanceof Function||Object.prototype.toString.call(e)==="[object Function]"}function xje(e){var t,n;for(n in e)mi(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 qB(e,t){var n=Om({},e),r;for(r in t)mi(t,r)&&(o1(e[r])&&o1(t[r])?(n[r]={},Om(n[r],e[r]),Om(n[r],t[r])):t[r]!=null?n[r]=t[r]:delete n[r]);for(r in e)mi(e,r)&&!mi(t,r)&&o1(e[r])&&(n[r]=Om({},n[r]));return n}function zW(e){e!=null&&this.set(e)}var YB;Object.keys?YB=Object.keys:YB=function(e){var t,n=[];for(t in e)mi(e,t)&&n.push(t);return n};var wje={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function Tje(e,t,n){var r=this._calendar[e]||this._calendar.sameElse;return Gf(r)?r.call(t,n):r}function Pf(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 VW=/(\[[^\[]*\])|(\\)?([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,aR=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,w6={},my={};function sr(e,t,n,r){var i=r;typeof r=="string"&&(i=function(){return this[r]()}),e&&(my[e]=i),t&&(my[t[0]]=function(){return Pf(i.apply(this,arguments),t[1],t[2])}),n&&(my[n]=function(){return this.localeData().ordinal(i.apply(this,arguments),e)})}function Oje(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function Rje(e){var t=e.match(VW),n,r;for(n=0,r=t.length;n<r;n++)my[t[n]]?t[n]=my[t[n]]:t[n]=Oje(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 mI(e,t){return e.isValid()?(t=Abe(t,e.localeData()),w6[t]=w6[t]||Rje(t),w6[t](e)):e.localeData().invalidDate()}function Abe(e,t){var n=5;function r(i){return t.longDateFormat(i)||i}for(aR.lastIndex=0;n>=0&&aR.test(e);)e=e.replace(aR,r),aR.lastIndex=0,n-=1;return e}var Aje={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 Ije(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.match(VW).map(function(r){return r==="MMMM"||r==="MM"||r==="DD"||r==="dddd"?r.slice(1):r}).join(""),this._longDateFormat[e])}var Nje="Invalid date";function Mje(){return this._invalidDate}var kje="%d",Pje=/\d{1,2}/;function Dje(e){return this._ordinal.replace("%d",e)}var Lje={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 $je(e,t,n,r){var i=this._relativeTime[n];return Gf(i)?i(e,t,n,r):i.replace(/%d/i,e)}function Fje(e,t){var n=this._relativeTime[e>0?"future":"past"];return Gf(n)?n(t):n.replace(/%s/i,t)}var rne={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 wu(e){return typeof e=="string"?rne[e]||rne[e.toLowerCase()]:void 0}function GW(e){var t={},n,r;for(r in e)mi(e,r)&&(n=wu(r),n&&(t[n]=e[r]));return t}var Bje={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 Hje(e){var t=[],n;for(n in e)mi(e,n)&&t.push({unit:n,priority:Bje[n]});return t.sort(function(r,i){return r.priority-i.priority}),t}var Ibe=/\d/,Ic=/\d\d/,Nbe=/\d{3}/,WW=/\d{4}/,F5=/[+-]?\d{6}/,ho=/\d\d?/,Mbe=/\d\d\d\d?/,kbe=/\d\d\d\d\d\d?/,B5=/\d{1,3}/,qW=/\d{1,4}/,H5=/[+-]?\d{1,6}/,aS=/\d+/,j5=/[+-]?\d+/,jje=/Z|[+-]\d\d:?\d\d/gi,U5=/Z|[+-]\d\d(?::?\d\d)?/gi,Uje=/[+-]?\d+(\.\d{1,3})?/,XT=/[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,sS=/^[1-9]\d?/,YW=/^([1-9]\d|\d)/,r4;r4={};function Bn(e,t,n){r4[e]=Gf(t)?t:function(r,i){return r&&n?n:t}}function zje(e,t){return mi(r4,e)?r4[e](t._strict,t._locale):new RegExp(Vje(e))}function Vje(e){return Yp(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(t,n,r,i,o){return n||r||i||o}))}function Yp(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function Jc(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function Yr(e){var t=+e,n=0;return t!==0&&isFinite(t)&&(n=Jc(t)),n}var KB={};function Fi(e,t){var n,r=t,i;for(typeof e=="string"&&(e=[e]),ih(t)&&(r=function(o,a){a[t]=Yr(o)}),i=e.length,n=0;n<i;n++)KB[e[n]]=r}function ZT(e,t){Fi(e,function(n,r,i,o){i._w=i._w||{},t(n,i._w,i,o)})}function Gje(e,t,n){t!=null&&mi(KB,e)&&KB[e](t,n._a,n,e)}function z5(e){return e%4===0&&e%100!==0||e%400===0}var Ms=0,jp=1,vf=2,wa=3,id=4,Up=5,k0=6,Wje=7,qje=8;sr("Y",0,0,function(){var e=this.year();return e<=9999?Pf(e,4):"+"+e});sr(0,["YY",2],0,function(){return this.year()%100});sr(0,["YYYY",4],0,"year");sr(0,["YYYYY",5],0,"year");sr(0,["YYYYYY",6,!0],0,"year");Bn("Y",j5);Bn("YY",ho,Ic);Bn("YYYY",qW,WW);Bn("YYYYY",H5,F5);Bn("YYYYYY",H5,F5);Fi(["YYYYY","YYYYYY"],Ms);Fi("YYYY",function(e,t){t[Ms]=e.length===2?ln.parseTwoDigitYear(e):Yr(e)});Fi("YY",function(e,t){t[Ms]=ln.parseTwoDigitYear(e)});Fi("Y",function(e,t){t[Ms]=parseInt(e,10)});function rx(e){return z5(e)?366:365}ln.parseTwoDigitYear=function(e){return Yr(e)+(Yr(e)>68?1900:2e3)};var Pbe=lS("FullYear",!0);function Yje(){return z5(this.year())}function lS(e,t){return function(n){return n!=null?(Dbe(this,e,n),ln.updateOffset(this,t),this):yw(this,e)}}function yw(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 Dbe(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&&!z5(o)?28:s,i?r.setUTCFullYear(o,a,s):r.setFullYear(o,a,s)}}function Kje(e){return e=wu(e),Gf(this[e])?this[e]():this}function Qje(e,t){if(typeof e=="object"){e=GW(e);var n=Hje(e),r,i=n.length;for(r=0;r<i;r++)this[n[r].unit](e[n[r].unit])}else if(e=wu(e),Gf(this[e]))return this[e](t);return this}function Xje(e,t){return(e%t+t)%t}var ea;Array.prototype.indexOf?ea=Array.prototype.indexOf:ea=function(e){var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return-1};function KW(e,t){if(isNaN(e)||isNaN(t))return NaN;var n=Xje(t,12);return e+=(t-n)/12,n===1?z5(e)?29:28:31-n%7%2}sr("M",["MM",2],"Mo",function(){return this.month()+1});sr("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)});sr("MMMM",0,0,function(e){return this.localeData().months(this,e)});Bn("M",ho,sS);Bn("MM",ho,Ic);Bn("MMM",function(e,t){return t.monthsShortRegex(e)});Bn("MMMM",function(e,t){return t.monthsRegex(e)});Fi(["M","MM"],function(e,t){t[jp]=Yr(e)-1});Fi(["MMM","MMMM"],function(e,t,n,r){var i=n._locale.monthsParse(e,r,n._strict);i!=null?t[jp]=i:Mr(n).invalidMonth=e});var Zje="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),Lbe="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),$be=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,Jje=XT,eUe=XT;function tUe(e,t){return e?Sd(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||$be).test(t)?"format":"standalone"][e.month()]:Sd(this._months)?this._months:this._months.standalone}function nUe(e,t){return e?Sd(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[$be.test(t)?"format":"standalone"][e.month()]:Sd(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function rUe(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=ea.call(this._shortMonthsParse,a),i!==-1?i:null):(i=ea.call(this._longMonthsParse,a),i!==-1?i:null):t==="MMM"?(i=ea.call(this._shortMonthsParse,a),i!==-1?i:(i=ea.call(this._longMonthsParse,a),i!==-1?i:null)):(i=ea.call(this._longMonthsParse,a),i!==-1?i:(i=ea.call(this._shortMonthsParse,a),i!==-1?i:null))}function iUe(e,t,n){var r,i,o;if(this._monthsParseExact)return rUe.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 Fbe(e,t){if(!e.isValid())return e;if(typeof t=="string"){if(/^\d+$/.test(t))t=Yr(t);else if(t=e.localeData().monthsParse(t),!ih(t))return e}var n=t,r=e.date();return r=r<29?r:Math.min(r,KW(e.year(),n)),e._isUTC?e._d.setUTCMonth(n,r):e._d.setMonth(n,r),e}function Bbe(e){return e!=null?(Fbe(this,e),ln.updateOffset(this,!0),this):yw(this,"Month")}function oUe(){return KW(this.year(),this.month())}function aUe(e){return this._monthsParseExact?(mi(this,"_monthsRegex")||Hbe.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(mi(this,"_monthsShortRegex")||(this._monthsShortRegex=Jje),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)}function sUe(e){return this._monthsParseExact?(mi(this,"_monthsRegex")||Hbe.call(this),e?this._monthsStrictRegex:this._monthsRegex):(mi(this,"_monthsRegex")||(this._monthsRegex=eUe),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)}function Hbe(){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=Yp(this.monthsShort(o,"")),s=Yp(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 lUe(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 _w(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 i4(e,t,n){var r=7+t-n,i=(7+_w(e,0,r).getUTCDay()-t)%7;return-i+r-1}function jbe(e,t,n,r,i){var o=(7+n-r)%7,a=i4(e,r,i),s=1+7*(t-1)+o+a,l,c;return s<=0?(l=e-1,c=rx(l)+s):s>rx(e)?(l=e+1,c=s-rx(e)):(l=e,c=s),{year:l,dayOfYear:c}}function Sw(e,t,n){var r=i4(e.year(),t,n),i=Math.floor((e.dayOfYear()-r-1)/7)+1,o,a;return i<1?(a=e.year()-1,o=i+Kp(a,t,n)):i>Kp(e.year(),t,n)?(o=i-Kp(e.year(),t,n),a=e.year()+1):(a=e.year(),o=i),{week:o,year:a}}function Kp(e,t,n){var r=i4(e,t,n),i=i4(e+1,t,n);return(rx(e)-r+i)/7}sr("w",["ww",2],"wo","week");sr("W",["WW",2],"Wo","isoWeek");Bn("w",ho,sS);Bn("ww",ho,Ic);Bn("W",ho,sS);Bn("WW",ho,Ic);ZT(["w","ww","W","WW"],function(e,t,n,r){t[r.substr(0,1)]=Yr(e)});function cUe(e){return Sw(e,this._week.dow,this._week.doy).week}var uUe={dow:0,doy:6};function dUe(){return this._week.dow}function fUe(){return this._week.doy}function pUe(e){var t=this.localeData().week(this);return e==null?t:this.add((e-t)*7,"d")}function hUe(e){var t=Sw(this,1,4).week;return e==null?t:this.add((e-t)*7,"d")}sr("d",0,"do","day");sr("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)});sr("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)});sr("dddd",0,0,function(e){return this.localeData().weekdays(this,e)});sr("e",0,0,"weekday");sr("E",0,0,"isoWeekday");Bn("d",ho);Bn("e",ho);Bn("E",ho);Bn("dd",function(e,t){return t.weekdaysMinRegex(e)});Bn("ddd",function(e,t){return t.weekdaysShortRegex(e)});Bn("dddd",function(e,t){return t.weekdaysRegex(e)});ZT(["dd","ddd","dddd"],function(e,t,n,r){var i=n._locale.weekdaysParse(e,r,n._strict);i!=null?t.d=i:Mr(n).invalidWeekday=e});ZT(["d","e","E"],function(e,t,n,r){t[r]=Yr(e)});function mUe(e,t){return typeof e!="string"?e:isNaN(e)?(e=t.weekdaysParse(e),typeof e=="number"?e:null):parseInt(e,10)}function gUe(e,t){return typeof e=="string"?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function QW(e,t){return e.slice(t,7).concat(e.slice(0,t))}var vUe="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Ube="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),bUe="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),yUe=XT,_Ue=XT,SUe=XT;function EUe(e,t){var n=Sd(this._weekdays)?this._weekdays:this._weekdays[e&&e!==!0&&this._weekdays.isFormat.test(t)?"format":"standalone"];return e===!0?QW(n,this._week.dow):e?n[e.day()]:n}function CUe(e){return e===!0?QW(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function xUe(e){return e===!0?QW(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function wUe(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=ea.call(this._weekdaysParse,a),i!==-1?i:null):t==="ddd"?(i=ea.call(this._shortWeekdaysParse,a),i!==-1?i:null):(i=ea.call(this._minWeekdaysParse,a),i!==-1?i:null):t==="dddd"?(i=ea.call(this._weekdaysParse,a),i!==-1||(i=ea.call(this._shortWeekdaysParse,a),i!==-1)?i:(i=ea.call(this._minWeekdaysParse,a),i!==-1?i:null)):t==="ddd"?(i=ea.call(this._shortWeekdaysParse,a),i!==-1||(i=ea.call(this._weekdaysParse,a),i!==-1)?i:(i=ea.call(this._minWeekdaysParse,a),i!==-1?i:null)):(i=ea.call(this._minWeekdaysParse,a),i!==-1||(i=ea.call(this._weekdaysParse,a),i!==-1)?i:(i=ea.call(this._shortWeekdaysParse,a),i!==-1?i:null))}function TUe(e,t,n){var r,i,o;if(this._weekdaysParseExact)return wUe.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 OUe(e){if(!this.isValid())return e!=null?this:NaN;var t=yw(this,"Day");return e!=null?(e=mUe(e,this.localeData()),this.add(e-t,"d")):t}function RUe(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 AUe(e){if(!this.isValid())return e!=null?this:NaN;if(e!=null){var t=gUe(e,this.localeData());return this.day(this.day()%7?t:t-7)}else return this.day()||7}function IUe(e){return this._weekdaysParseExact?(mi(this,"_weekdaysRegex")||XW.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(mi(this,"_weekdaysRegex")||(this._weekdaysRegex=yUe),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function NUe(e){return this._weekdaysParseExact?(mi(this,"_weekdaysRegex")||XW.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(mi(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=_Ue),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function MUe(e){return this._weekdaysParseExact?(mi(this,"_weekdaysRegex")||XW.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(mi(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=SUe),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function XW(){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=Yp(this.weekdaysMin(a,"")),l=Yp(this.weekdaysShort(a,"")),c=Yp(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 ZW(){return this.hours()%12||12}function kUe(){return this.hours()||24}sr("H",["HH",2],0,"hour");sr("h",["hh",2],0,ZW);sr("k",["kk",2],0,kUe);sr("hmm",0,0,function(){return""+ZW.apply(this)+Pf(this.minutes(),2)});sr("hmmss",0,0,function(){return""+ZW.apply(this)+Pf(this.minutes(),2)+Pf(this.seconds(),2)});sr("Hmm",0,0,function(){return""+this.hours()+Pf(this.minutes(),2)});sr("Hmmss",0,0,function(){return""+this.hours()+Pf(this.minutes(),2)+Pf(this.seconds(),2)});function zbe(e,t){sr(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}zbe("a",!0);zbe("A",!1);function Vbe(e,t){return t._meridiemParse}Bn("a",Vbe);Bn("A",Vbe);Bn("H",ho,YW);Bn("h",ho,sS);Bn("k",ho,sS);Bn("HH",ho,Ic);Bn("hh",ho,Ic);Bn("kk",ho,Ic);Bn("hmm",Mbe);Bn("hmmss",kbe);Bn("Hmm",Mbe);Bn("Hmmss",kbe);Fi(["H","HH"],wa);Fi(["k","kk"],function(e,t,n){var r=Yr(e);t[wa]=r===24?0:r});Fi(["a","A"],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e});Fi(["h","hh"],function(e,t,n){t[wa]=Yr(e),Mr(n).bigHour=!0});Fi("hmm",function(e,t,n){var r=e.length-2;t[wa]=Yr(e.substr(0,r)),t[id]=Yr(e.substr(r)),Mr(n).bigHour=!0});Fi("hmmss",function(e,t,n){var r=e.length-4,i=e.length-2;t[wa]=Yr(e.substr(0,r)),t[id]=Yr(e.substr(r,2)),t[Up]=Yr(e.substr(i)),Mr(n).bigHour=!0});Fi("Hmm",function(e,t,n){var r=e.length-2;t[wa]=Yr(e.substr(0,r)),t[id]=Yr(e.substr(r))});Fi("Hmmss",function(e,t,n){var r=e.length-4,i=e.length-2;t[wa]=Yr(e.substr(0,r)),t[id]=Yr(e.substr(r,2)),t[Up]=Yr(e.substr(i))});function PUe(e){return(e+"").toLowerCase().charAt(0)==="p"}var DUe=/[ap]\.?m?\.?/i,LUe=lS("Hours",!0);function $Ue(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"}var Gbe={calendar:wje,longDateFormat:Aje,invalidDate:Nje,ordinal:kje,dayOfMonthOrdinalParse:Pje,relativeTime:Lje,months:Zje,monthsShort:Lbe,week:uUe,weekdays:vUe,weekdaysMin:bUe,weekdaysShort:Ube,meridiemParse:DUe},bo={},TE={},Ew;function FUe(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 ine(e){return e&&e.toLowerCase().replace("_","-")}function BUe(e){for(var t=0,n,r,i,o;t<e.length;){for(o=ine(e[t]).split("-"),n=o.length,r=ine(e[t+1]),r=r?r.split("-"):null;n>0;){if(i=V5(o.slice(0,n).join("-")),i)return i;if(r&&r.length>=n&&FUe(o,r)>=n-1)break;n--}t++}return Ew}function HUe(e){return!!(e&&e.match("^[^/\\\\]*$"))}function V5(e){var t=null,n;if(bo[e]===void 0&&typeof module<"u"&&module&&module.exports&&HUe(e))try{t=Ew._abbr,n=require,n("./locale/"+e),tg(t)}catch{bo[e]=null}return bo[e]}function tg(e,t){var n;return e&&(bl(t)?n=gh(e):n=JW(e,t),n?Ew=n:typeof console<"u"&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),Ew._abbr}function JW(e,t){if(t!==null){var n,r=Gbe;if(t.abbr=e,bo[e]!=null)Rbe("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=bo[e]._config;else if(t.parentLocale!=null)if(bo[t.parentLocale]!=null)r=bo[t.parentLocale]._config;else if(n=V5(t.parentLocale),n!=null)r=n._config;else return TE[t.parentLocale]||(TE[t.parentLocale]=[]),TE[t.parentLocale].push({name:e,config:t}),null;return bo[e]=new zW(qB(r,t)),TE[e]&&TE[e].forEach(function(i){JW(i.name,i.config)}),tg(e),bo[e]}else return delete bo[e],null}function jUe(e,t){if(t!=null){var n,r,i=Gbe;bo[e]!=null&&bo[e].parentLocale!=null?bo[e].set(qB(bo[e]._config,t)):(r=V5(e),r!=null&&(i=r._config),t=qB(i,t),r==null&&(t.abbr=e),n=new zW(t),n.parentLocale=bo[e],bo[e]=n),tg(e)}else bo[e]!=null&&(bo[e].parentLocale!=null?(bo[e]=bo[e].parentLocale,e===tg()&&tg(e)):bo[e]!=null&&delete bo[e]);return bo[e]}function gh(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return Ew;if(!Sd(e)){if(t=V5(e),t)return t;e=[e]}return BUe(e)}function UUe(){return YB(bo)}function eq(e){var t,n=e._a;return n&&Mr(e).overflow===-2&&(t=n[jp]<0||n[jp]>11?jp:n[vf]<1||n[vf]>KW(n[Ms],n[jp])?vf:n[wa]<0||n[wa]>24||n[wa]===24&&(n[id]!==0||n[Up]!==0||n[k0]!==0)?wa:n[id]<0||n[id]>59?id:n[Up]<0||n[Up]>59?Up:n[k0]<0||n[k0]>999?k0:-1,Mr(e)._overflowDayOfYear&&(t<Ms||t>vf)&&(t=vf),Mr(e)._overflowWeeks&&t===-1&&(t=Wje),Mr(e)._overflowWeekday&&t===-1&&(t=qje),Mr(e).overflow=t),e}var zUe=/^\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)?)?$/,VUe=/^\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)?)?$/,GUe=/Z|[+-]\d\d(?::?\d\d)?/,sR=[["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]],T6=[["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/]],WUe=/^\/?Date\((-?\d+)/i,qUe=/^(?:(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}))$/,YUe={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 Wbe(e){var t,n,r=e._i,i=zUe.exec(r)||VUe.exec(r),o,a,s,l,c=sR.length,u=T6.length;if(i){for(Mr(e).iso=!0,t=0,n=c;t<n;t++)if(sR[t][1].exec(i[1])){a=sR[t][0],o=sR[t][2]!==!1;break}if(a==null){e._isValid=!1;return}if(i[3]){for(t=0,n=u;t<n;t++)if(T6[t][1].exec(i[3])){s=(i[2]||" ")+T6[t][0];break}if(s==null){e._isValid=!1;return}}if(!o&&s!=null){e._isValid=!1;return}if(i[4])if(GUe.exec(i[4]))l="Z";else{e._isValid=!1;return}e._f=a+(s||"")+(l||""),nq(e)}else e._isValid=!1}function KUe(e,t,n,r,i,o){var a=[QUe(e),Lbe.indexOf(t),parseInt(n,10),parseInt(r,10),parseInt(i,10)];return o&&a.push(parseInt(o,10)),a}function QUe(e){var t=parseInt(e,10);return t<=49?2e3+t:t<=999?1900+t:t}function XUe(e){return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function ZUe(e,t,n){if(e){var r=Ube.indexOf(e),i=new Date(t[0],t[1],t[2]).getDay();if(r!==i)return Mr(n).weekdayMismatch=!0,n._isValid=!1,!1}return!0}function JUe(e,t,n){if(e)return YUe[e];if(t)return 0;var r=parseInt(n,10),i=r%100,o=(r-i)/100;return o*60+i}function qbe(e){var t=qUe.exec(XUe(e._i)),n;if(t){if(n=KUe(t[4],t[3],t[2],t[5],t[6],t[7]),!ZUe(t[1],n,e))return;e._a=n,e._tzm=JUe(t[8],t[9],t[10]),e._d=_w.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),Mr(e).rfc2822=!0}else e._isValid=!1}function eze(e){var t=WUe.exec(e._i);if(t!==null){e._d=new Date(+t[1]);return}if(Wbe(e),e._isValid===!1)delete e._isValid;else return;if(qbe(e),e._isValid===!1)delete e._isValid;else return;e._strict?e._isValid=!1:ln.createFromInputFallback(e)}ln.createFromInputFallback=xu("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 Ob(e,t,n){return e??t??n}function tze(e){var t=new Date(ln.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}function tq(e){var t,n,r=[],i,o,a;if(!e._d){for(i=tze(e),e._w&&e._a[vf]==null&&e._a[jp]==null&&nze(e),e._dayOfYear!=null&&(a=Ob(e._a[Ms],i[Ms]),(e._dayOfYear>rx(a)||e._dayOfYear===0)&&(Mr(e)._overflowDayOfYear=!0),n=_w(a,0,e._dayOfYear),e._a[jp]=n.getUTCMonth(),e._a[vf]=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[wa]===24&&e._a[id]===0&&e._a[Up]===0&&e._a[k0]===0&&(e._nextDay=!0,e._a[wa]=0),e._d=(e._useUTC?_w:lUe).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[wa]=24),e._w&&typeof e._w.d<"u"&&e._w.d!==o&&(Mr(e).weekdayMismatch=!0)}}function nze(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=Ob(t.GG,e._a[Ms],Sw(fo(),1,4).year),r=Ob(t.W,1),i=Ob(t.E,1),(i<1||i>7)&&(l=!0)):(o=e._locale._week.dow,a=e._locale._week.doy,c=Sw(fo(),o,a),n=Ob(t.gg,e._a[Ms],c.year),r=Ob(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>Kp(n,o,a)?Mr(e)._overflowWeeks=!0:l!=null?Mr(e)._overflowWeekday=!0:(s=jbe(n,r,i,o,a),e._a[Ms]=s.year,e._dayOfYear=s.dayOfYear)}ln.ISO_8601=function(){};ln.RFC_2822=function(){};function nq(e){if(e._f===ln.ISO_8601){Wbe(e);return}if(e._f===ln.RFC_2822){qbe(e);return}e._a=[],Mr(e).empty=!0;var t=""+e._i,n,r,i,o,a,s=t.length,l=0,c,u;for(i=Abe(e._f,e._locale).match(VW)||[],u=i.length,n=0;n<u;n++)o=i[n],r=(t.match(zje(o,e))||[])[0],r&&(a=t.substr(0,t.indexOf(r)),a.length>0&&Mr(e).unusedInput.push(a),t=t.slice(t.indexOf(r)+r.length),l+=r.length),my[o]?(r?Mr(e).empty=!1:Mr(e).unusedTokens.push(o),Gje(o,r,e)):e._strict&&!r&&Mr(e).unusedTokens.push(o);Mr(e).charsLeftOver=s-l,t.length>0&&Mr(e).unusedInput.push(t),e._a[wa]<=12&&Mr(e).bigHour===!0&&e._a[wa]>0&&(Mr(e).bigHour=void 0),Mr(e).parsedDateParts=e._a.slice(0),Mr(e).meridiem=e._meridiem,e._a[wa]=rze(e._locale,e._a[wa],e._meridiem),c=Mr(e).era,c!==null&&(e._a[Ms]=e._locale.erasConvertYear(c,e._a[Ms])),tq(e),eq(e)}function rze(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 ize(e){var t,n,r,i,o,a,s=!1,l=e._f.length;if(l===0){Mr(e).invalidFormat=!0,e._d=new Date(NaN);return}for(i=0;i<l;i++)o=0,a=!1,t=UW({},e),e._useUTC!=null&&(t._useUTC=e._useUTC),t._f=e._f[i],nq(t),jW(t)&&(a=!0),o+=Mr(t).charsLeftOver,o+=Mr(t).unusedTokens.length*10,Mr(t).score=o,s?o<r&&(r=o,n=t):(r==null||o<r||a)&&(r=o,n=t,a&&(s=!0));Om(e,n||t)}function oze(e){if(!e._d){var t=GW(e._i),n=t.day===void 0?t.date:t.day;e._a=Tbe([t.year,t.month,n,t.hour,t.minute,t.second,t.millisecond],function(r){return r&&parseInt(r,10)}),tq(e)}}function aze(e){var t=new QT(eq(Ybe(e)));return t._nextDay&&(t.add(1,"d"),t._nextDay=void 0),t}function Ybe(e){var t=e._i,n=e._f;return e._locale=e._locale||gh(e._l),t===null||n===void 0&&t===""?$5({nullInput:!0}):(typeof t=="string"&&(e._i=t=e._locale.preparse(t)),Ed(t)?new QT(eq(t)):(KT(t)?e._d=t:Sd(n)?ize(e):n?nq(e):sze(e),jW(e)||(e._d=null),e))}function sze(e){var t=e._i;bl(t)?e._d=new Date(ln.now()):KT(t)?e._d=new Date(t.valueOf()):typeof t=="string"?eze(e):Sd(t)?(e._a=Tbe(t.slice(0),function(n){return parseInt(n,10)}),tq(e)):o1(t)?oze(e):ih(t)?e._d=new Date(t):ln.createFromInputFallback(e)}function Kbe(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),(o1(e)&&HW(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,aze(o)}function fo(e,t,n,r){return Kbe(e,t,n,r,!1)}var lze=xu("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=fo.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:$5()}),cze=xu("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=fo.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:$5()});function Qbe(e,t){var n,r;if(t.length===1&&Sd(t[0])&&(t=t[0]),!t.length)return fo();for(n=t[0],r=1;r<t.length;++r)(!t[r].isValid()||t[r][e](n))&&(n=t[r]);return n}function uze(){var e=[].slice.call(arguments,0);return Qbe("isBefore",e)}function dze(){var e=[].slice.call(arguments,0);return Qbe("isAfter",e)}var fze=function(){return Date.now?Date.now():+new Date},OE=["year","quarter","month","week","day","hour","minute","second","millisecond"];function pze(e){var t,n=!1,r,i=OE.length;for(t in e)if(mi(e,t)&&!(ea.call(OE,t)!==-1&&(e[t]==null||!isNaN(e[t]))))return!1;for(r=0;r<i;++r)if(e[OE[r]]){if(n)return!1;parseFloat(e[OE[r]])!==Yr(e[OE[r]])&&(n=!0)}return!0}function hze(){return this._isValid}function mze(){return Fd(NaN)}function G5(e){var t=GW(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=pze(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=gh(),this._bubble()}function gI(e){return e instanceof G5}function QB(e){return e<0?Math.round(-1*e)*-1:Math.round(e)}function gze(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++)Yr(e[a])!==Yr(t[a])&&o++;return o+i}function Xbe(e,t){sr(e,0,0,function(){var n=this.utcOffset(),r="+";return n<0&&(n=-n,r="-"),r+Pf(~~(n/60),2)+t+Pf(~~n%60,2)})}Xbe("Z",":");Xbe("ZZ","");Bn("Z",U5);Bn("ZZ",U5);Fi(["Z","ZZ"],function(e,t,n){n._useUTC=!0,n._tzm=rq(U5,e)});var vze=/([\+\-]|\d\d)/gi;function rq(e,t){var n=(t||"").match(e),r,i,o;return n===null?null:(r=n[n.length-1]||[],i=(r+"").match(vze)||["-",0,0],o=+(i[1]*60)+Yr(i[2]),o===0?0:i[0]==="+"?o:-o)}function iq(e,t){var n,r;return t._isUTC?(n=t.clone(),r=(Ed(e)||KT(e)?e.valueOf():fo(e).valueOf())-n.valueOf(),n._d.setTime(n._d.valueOf()+r),ln.updateOffset(n,!1),n):fo(e).local()}function XB(e){return-Math.round(e._d.getTimezoneOffset())}ln.updateOffset=function(){};function bze(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=rq(U5,e),e===null)return this}else Math.abs(e)<16&&!n&&(e=e*60);return!this._isUTC&&t&&(i=XB(this)),this._offset=e,this._isUTC=!0,i!=null&&this.add(i,"m"),r!==e&&(!t||this._changeInProgress?eye(this,Fd(e-r,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,ln.updateOffset(this,!0),this._changeInProgress=null)),this}else return this._isUTC?r:XB(this)}function yze(e,t){return e!=null?(typeof e!="string"&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}function _ze(e){return this.utcOffset(0,e)}function Sze(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(XB(this),"m")),this}function Eze(){if(this._tzm!=null)this.utcOffset(this._tzm,!1,!0);else if(typeof this._i=="string"){var e=rq(jje,this._i);e!=null?this.utcOffset(e):this.utcOffset(0,!0)}return this}function Cze(e){return this.isValid()?(e=e?fo(e).utcOffset():0,(this.utcOffset()-e)%60===0):!1}function xze(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function wze(){if(!bl(this._isDSTShifted))return this._isDSTShifted;var e={},t;return UW(e,this),e=Ybe(e),e._a?(t=e._isUTC?Vf(e._a):fo(e._a),this._isDSTShifted=this.isValid()&&gze(e._a,t.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function Tze(){return this.isValid()?!this._isUTC:!1}function Oze(){return this.isValid()?this._isUTC:!1}function Zbe(){return this.isValid()?this._isUTC&&this._offset===0:!1}var Rze=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Aze=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Fd(e,t){var n=e,r=null,i,o,a;return gI(e)?n={ms:e._milliseconds,d:e._days,M:e._months}:ih(e)||!isNaN(+e)?(n={},t?n[t]=+e:n.milliseconds=+e):(r=Rze.exec(e))?(i=r[1]==="-"?-1:1,n={y:0,d:Yr(r[vf])*i,h:Yr(r[wa])*i,m:Yr(r[id])*i,s:Yr(r[Up])*i,ms:Yr(QB(r[k0]*1e3))*i}):(r=Aze.exec(e))?(i=r[1]==="-"?-1:1,n={y:Zg(r[2],i),M:Zg(r[3],i),w:Zg(r[4],i),d:Zg(r[5],i),h:Zg(r[6],i),m:Zg(r[7],i),s:Zg(r[8],i)}):n==null?n={}:typeof n=="object"&&("from"in n||"to"in n)&&(a=Ize(fo(n.from),fo(n.to)),n={},n.ms=a.milliseconds,n.M=a.months),o=new G5(n),gI(e)&&mi(e,"_locale")&&(o._locale=e._locale),gI(e)&&mi(e,"_isValid")&&(o._isValid=e._isValid),o}Fd.fn=G5.prototype;Fd.invalid=mze;function Zg(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function one(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 Ize(e,t){var n;return e.isValid()&&t.isValid()?(t=iq(t,e),e.isBefore(t)?n=one(e,t):(n=one(t,e),n.milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}function Jbe(e,t){return function(n,r){var i,o;return r!==null&&!isNaN(+r)&&(Rbe(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=Fd(n,r),eye(this,i,e),this}}function eye(e,t,n,r){var i=t._milliseconds,o=QB(t._days),a=QB(t._months);e.isValid()&&(r=r??!0,a&&Fbe(e,yw(e,"Month")+a*n),o&&Dbe(e,"Date",yw(e,"Date")+o*n),i&&e._d.setTime(e._d.valueOf()+i*n),r&&ln.updateOffset(e,o||a))}var Nze=Jbe(1,"add"),Mze=Jbe(-1,"subtract");function tye(e){return typeof e=="string"||e instanceof String}function kze(e){return Ed(e)||KT(e)||tye(e)||ih(e)||Dze(e)||Pze(e)||e===null||e===void 0}function Pze(e){var t=o1(e)&&!HW(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||mi(e,o);return t&&n}function Dze(e){var t=Sd(e),n=!1;return t&&(n=e.filter(function(r){return!ih(r)&&tye(e)}).length===0),t&&n}function Lze(e){var t=o1(e)&&!HW(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||mi(e,o);return t&&n}function $ze(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 Fze(e,t){arguments.length===1&&(arguments[0]?kze(arguments[0])?(e=arguments[0],t=void 0):Lze(arguments[0])&&(t=arguments[0],e=void 0):(e=void 0,t=void 0));var n=e||fo(),r=iq(n,this).startOf("day"),i=ln.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,fo(n)))}function Bze(){return new QT(this)}function Hze(e,t){var n=Ed(e)?e:fo(e);return this.isValid()&&n.isValid()?(t=wu(t)||"millisecond",t==="millisecond"?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(t).valueOf()):!1}function jze(e,t){var n=Ed(e)?e:fo(e);return this.isValid()&&n.isValid()?(t=wu(t)||"millisecond",t==="millisecond"?this.valueOf()<n.valueOf():this.clone().endOf(t).valueOf()<n.valueOf()):!1}function Uze(e,t,n,r){var i=Ed(e)?e:fo(e),o=Ed(t)?t:fo(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 zze(e,t){var n=Ed(e)?e:fo(e),r;return this.isValid()&&n.isValid()?(t=wu(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 Vze(e,t){return this.isSame(e,t)||this.isAfter(e,t)}function Gze(e,t){return this.isSame(e,t)||this.isBefore(e,t)}function Wze(e,t,n){var r,i,o;if(!this.isValid())return NaN;if(r=iq(e,this),!r.isValid())return NaN;switch(i=(r.utcOffset()-this.utcOffset())*6e4,t=wu(t),t){case"year":o=vI(this,r)/12;break;case"month":o=vI(this,r);break;case"quarter":o=vI(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:Jc(o)}function vI(e,t){if(e.date()<t.date())return-vI(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}ln.defaultFormat="YYYY-MM-DDTHH:mm:ssZ";ln.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";function qze(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function Yze(e){if(!this.isValid())return null;var t=e!==!0,n=t?this.clone().utc():this;return n.year()<0||n.year()>9999?mI(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",mI(n,"Z")):mI(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function Kze(){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 Qze(e){e||(e=this.isUtc()?ln.defaultFormatUtc:ln.defaultFormat);var t=mI(this,e);return this.localeData().postformat(t)}function Xze(e,t){return this.isValid()&&(Ed(e)&&e.isValid()||fo(e).isValid())?Fd({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function Zze(e){return this.from(fo(),e)}function Jze(e,t){return this.isValid()&&(Ed(e)&&e.isValid()||fo(e).isValid())?Fd({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function eVe(e){return this.to(fo(),e)}function nye(e){var t;return e===void 0?this._locale._abbr:(t=gh(e),t!=null&&(this._locale=t),this)}var rye=xu("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 iye(){return this._locale}var o4=1e3,gy=60*o4,a4=60*gy,oye=(365*400+97)*24*a4;function vy(e,t){return(e%t+t)%t}function aye(e,t,n){return e<100&&e>=0?new Date(e+400,t,n)-oye:new Date(e,t,n).valueOf()}function sye(e,t,n){return e<100&&e>=0?Date.UTC(e+400,t,n)-oye:Date.UTC(e,t,n)}function tVe(e){var t,n;if(e=wu(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(n=this._isUTC?sye:aye,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-=vy(t+(this._isUTC?0:this.utcOffset()*gy),a4);break;case"minute":t=this._d.valueOf(),t-=vy(t,gy);break;case"second":t=this._d.valueOf(),t-=vy(t,o4);break}return this._d.setTime(t),ln.updateOffset(this,!0),this}function nVe(e){var t,n;if(e=wu(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(n=this._isUTC?sye:aye,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+=a4-vy(t+(this._isUTC?0:this.utcOffset()*gy),a4)-1;break;case"minute":t=this._d.valueOf(),t+=gy-vy(t,gy)-1;break;case"second":t=this._d.valueOf(),t+=o4-vy(t,o4)-1;break}return this._d.setTime(t),ln.updateOffset(this,!0),this}function rVe(){return this._d.valueOf()-(this._offset||0)*6e4}function iVe(){return Math.floor(this.valueOf()/1e3)}function oVe(){return new Date(this.valueOf())}function aVe(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function sVe(){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 lVe(){return this.isValid()?this.toISOString():null}function cVe(){return jW(this)}function uVe(){return Om({},Mr(this))}function dVe(){return Mr(this).overflow}function fVe(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}sr("N",0,0,"eraAbbr");sr("NN",0,0,"eraAbbr");sr("NNN",0,0,"eraAbbr");sr("NNNN",0,0,"eraName");sr("NNNNN",0,0,"eraNarrow");sr("y",["y",1],"yo","eraYear");sr("y",["yy",2],0,"eraYear");sr("y",["yyy",3],0,"eraYear");sr("y",["yyyy",4],0,"eraYear");Bn("N",oq);Bn("NN",oq);Bn("NNN",oq);Bn("NNNN",CVe);Bn("NNNNN",xVe);Fi(["N","NN","NNN","NNNN","NNNNN"],function(e,t,n,r){var i=n._locale.erasParse(e,r,n._strict);i?Mr(n).era=i:Mr(n).invalidEra=e});Bn("y",aS);Bn("yy",aS);Bn("yyy",aS);Bn("yyyy",aS);Bn("yo",wVe);Fi(["y","yy","yyy","yyyy"],Ms);Fi(["yo"],function(e,t,n,r){var i;n._locale._eraYearOrdinalRegex&&(i=e.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?t[Ms]=n._locale.eraYearOrdinalParse(e,i):t[Ms]=parseInt(e,10)});function pVe(e,t){var n,r,i,o=this._eras||gh("en")._eras;for(n=0,r=o.length;n<r;++n){switch(typeof o[n].since){case"string":i=ln(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=ln(o[n].until).startOf("day").valueOf(),o[n].until=i.valueOf();break}}return o}function hVe(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 mVe(e,t){var n=e.since<=e.until?1:-1;return t===void 0?ln(e.since).year():ln(e.since).year()+(t-e.offset)*n}function gVe(){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 vVe(){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 bVe(){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 yVe(){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()-ln(i[e].since).year())*n+i[e].offset;return this.year()}function _Ve(e){return mi(this,"_erasNameRegex")||aq.call(this),e?this._erasNameRegex:this._erasRegex}function SVe(e){return mi(this,"_erasAbbrRegex")||aq.call(this),e?this._erasAbbrRegex:this._erasRegex}function EVe(e){return mi(this,"_erasNarrowRegex")||aq.call(this),e?this._erasNarrowRegex:this._erasRegex}function oq(e,t){return t.erasAbbrRegex(e)}function CVe(e,t){return t.erasNameRegex(e)}function xVe(e,t){return t.erasNarrowRegex(e)}function wVe(e,t){return t._eraYearOrdinalRegex||aS}function aq(){var e=[],t=[],n=[],r=[],i,o,a,s,l,c=this.eras();for(i=0,o=c.length;i<o;++i)a=Yp(c[i].name),s=Yp(c[i].abbr),l=Yp(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")}sr(0,["gg",2],0,function(){return this.weekYear()%100});sr(0,["GG",2],0,function(){return this.isoWeekYear()%100});function W5(e,t){sr(0,[e,e.length],0,t)}W5("gggg","weekYear");W5("ggggg","weekYear");W5("GGGG","isoWeekYear");W5("GGGGG","isoWeekYear");Bn("G",j5);Bn("g",j5);Bn("GG",ho,Ic);Bn("gg",ho,Ic);Bn("GGGG",qW,WW);Bn("gggg",qW,WW);Bn("GGGGG",H5,F5);Bn("ggggg",H5,F5);ZT(["gggg","ggggg","GGGG","GGGGG"],function(e,t,n,r){t[r.substr(0,2)]=Yr(e)});ZT(["gg","GG"],function(e,t,n,r){t[r]=ln.parseTwoDigitYear(e)});function TVe(e){return lye.call(this,e,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy)}function OVe(e){return lye.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)}function RVe(){return Kp(this.year(),1,4)}function AVe(){return Kp(this.isoWeekYear(),1,4)}function IVe(){var e=this.localeData()._week;return Kp(this.year(),e.dow,e.doy)}function NVe(){var e=this.localeData()._week;return Kp(this.weekYear(),e.dow,e.doy)}function lye(e,t,n,r,i){var o;return e==null?Sw(this,r,i).year:(o=Kp(e,r,i),t>o&&(t=o),MVe.call(this,e,t,n,r,i))}function MVe(e,t,n,r,i){var o=jbe(e,t,n,r,i),a=_w(o.year,0,o.dayOfYear);return this.year(a.getUTCFullYear()),this.month(a.getUTCMonth()),this.date(a.getUTCDate()),this}sr("Q",0,"Qo","quarter");Bn("Q",Ibe);Fi("Q",function(e,t){t[jp]=(Yr(e)-1)*3});function kVe(e){return e==null?Math.ceil((this.month()+1)/3):this.month((e-1)*3+this.month()%3)}sr("D",["DD",2],"Do","date");Bn("D",ho,sS);Bn("DD",ho,Ic);Bn("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient});Fi(["D","DD"],vf);Fi("Do",function(e,t){t[vf]=Yr(e.match(ho)[0])});var cye=lS("Date",!0);sr("DDD",["DDDD",3],"DDDo","dayOfYear");Bn("DDD",B5);Bn("DDDD",Nbe);Fi(["DDD","DDDD"],function(e,t,n){n._dayOfYear=Yr(e)});function PVe(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return e==null?t:this.add(e-t,"d")}sr("m",["mm",2],0,"minute");Bn("m",ho,YW);Bn("mm",ho,Ic);Fi(["m","mm"],id);var DVe=lS("Minutes",!1);sr("s",["ss",2],0,"second");Bn("s",ho,YW);Bn("ss",ho,Ic);Fi(["s","ss"],Up);var LVe=lS("Seconds",!1);sr("S",0,0,function(){return~~(this.millisecond()/100)});sr(0,["SS",2],0,function(){return~~(this.millisecond()/10)});sr(0,["SSS",3],0,"millisecond");sr(0,["SSSS",4],0,function(){return this.millisecond()*10});sr(0,["SSSSS",5],0,function(){return this.millisecond()*100});sr(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3});sr(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4});sr(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5});sr(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6});Bn("S",B5,Ibe);Bn("SS",B5,Ic);Bn("SSS",B5,Nbe);var Rm,uye;for(Rm="SSSS";Rm.length<=9;Rm+="S")Bn(Rm,aS);function $Ve(e,t){t[k0]=Yr(("0."+e)*1e3)}for(Rm="S";Rm.length<=9;Rm+="S")Fi(Rm,$Ve);uye=lS("Milliseconds",!1);sr("z",0,0,"zoneAbbr");sr("zz",0,0,"zoneName");function FVe(){return this._isUTC?"UTC":""}function BVe(){return this._isUTC?"Coordinated Universal Time":""}var hn=QT.prototype;hn.add=Nze;hn.calendar=Fze;hn.clone=Bze;hn.diff=Wze;hn.endOf=nVe;hn.format=Qze;hn.from=Xze;hn.fromNow=Zze;hn.to=Jze;hn.toNow=eVe;hn.get=Kje;hn.invalidAt=dVe;hn.isAfter=Hze;hn.isBefore=jze;hn.isBetween=Uze;hn.isSame=zze;hn.isSameOrAfter=Vze;hn.isSameOrBefore=Gze;hn.isValid=cVe;hn.lang=rye;hn.locale=nye;hn.localeData=iye;hn.max=cze;hn.min=lze;hn.parsingFlags=uVe;hn.set=Qje;hn.startOf=tVe;hn.subtract=Mze;hn.toArray=aVe;hn.toObject=sVe;hn.toDate=oVe;hn.toISOString=Yze;hn.inspect=Kze;typeof Symbol<"u"&&Symbol.for!=null&&(hn[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"});hn.toJSON=lVe;hn.toString=qze;hn.unix=iVe;hn.valueOf=rVe;hn.creationData=fVe;hn.eraName=gVe;hn.eraNarrow=vVe;hn.eraAbbr=bVe;hn.eraYear=yVe;hn.year=Pbe;hn.isLeapYear=Yje;hn.weekYear=TVe;hn.isoWeekYear=OVe;hn.quarter=hn.quarters=kVe;hn.month=Bbe;hn.daysInMonth=oUe;hn.week=hn.weeks=pUe;hn.isoWeek=hn.isoWeeks=hUe;hn.weeksInYear=IVe;hn.weeksInWeekYear=NVe;hn.isoWeeksInYear=RVe;hn.isoWeeksInISOWeekYear=AVe;hn.date=cye;hn.day=hn.days=OUe;hn.weekday=RUe;hn.isoWeekday=AUe;hn.dayOfYear=PVe;hn.hour=hn.hours=LUe;hn.minute=hn.minutes=DVe;hn.second=hn.seconds=LVe;hn.millisecond=hn.milliseconds=uye;hn.utcOffset=bze;hn.utc=_ze;hn.local=Sze;hn.parseZone=Eze;hn.hasAlignedHourOffset=Cze;hn.isDST=xze;hn.isLocal=Tze;hn.isUtcOffset=Oze;hn.isUtc=Zbe;hn.isUTC=Zbe;hn.zoneAbbr=FVe;hn.zoneName=BVe;hn.dates=xu("dates accessor is deprecated. Use date instead.",cye);hn.months=xu("months accessor is deprecated. Use month instead",Bbe);hn.years=xu("years accessor is deprecated. Use year instead",Pbe);hn.zone=xu("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",yze);hn.isDSTShifted=xu("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",wze);function HVe(e){return fo(e*1e3)}function jVe(){return fo.apply(null,arguments).parseZone()}function dye(e){return e}var vi=zW.prototype;vi.calendar=Tje;vi.longDateFormat=Ije;vi.invalidDate=Mje;vi.ordinal=Dje;vi.preparse=dye;vi.postformat=dye;vi.relativeTime=$je;vi.pastFuture=Fje;vi.set=xje;vi.eras=pVe;vi.erasParse=hVe;vi.erasConvertYear=mVe;vi.erasAbbrRegex=SVe;vi.erasNameRegex=_Ve;vi.erasNarrowRegex=EVe;vi.months=tUe;vi.monthsShort=nUe;vi.monthsParse=iUe;vi.monthsRegex=sUe;vi.monthsShortRegex=aUe;vi.week=cUe;vi.firstDayOfYear=fUe;vi.firstDayOfWeek=dUe;vi.weekdays=EUe;vi.weekdaysMin=xUe;vi.weekdaysShort=CUe;vi.weekdaysParse=TUe;vi.weekdaysRegex=IUe;vi.weekdaysShortRegex=NUe;vi.weekdaysMinRegex=MUe;vi.isPM=PUe;vi.meridiem=$Ue;function s4(e,t,n,r){var i=gh(),o=Vf().set(r,t);return i[n](o,e)}function fye(e,t,n){if(ih(e)&&(t=e,e=void 0),e=e||"",t!=null)return s4(e,t,n,"month");var r,i=[];for(r=0;r<12;r++)i[r]=s4(e,r,n,"month");return i}function sq(e,t,n,r){typeof e=="boolean"?(ih(t)&&(n=t,t=void 0),t=t||""):(t=e,n=t,e=!1,ih(t)&&(n=t,t=void 0),t=t||"");var i=gh(),o=e?i._week.dow:0,a,s=[];if(n!=null)return s4(t,(n+o)%7,r,"day");for(a=0;a<7;a++)s[a]=s4(t,(a+o)%7,r,"day");return s}function UVe(e,t){return fye(e,t,"months")}function zVe(e,t){return fye(e,t,"monthsShort")}function VVe(e,t,n){return sq(e,t,n,"weekdays")}function GVe(e,t,n){return sq(e,t,n,"weekdaysShort")}function WVe(e,t,n){return sq(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=Yr(e%100/10)===1?"th":t===1?"st":t===2?"nd":t===3?"rd":"th";return e+n}});ln.lang=xu("moment.lang is deprecated. Use moment.locale instead.",tg);ln.langData=xu("moment.langData is deprecated. Use moment.localeData instead.",gh);var op=Math.abs;function qVe(){var e=this._data;return this._milliseconds=op(this._milliseconds),this._days=op(this._days),this._months=op(this._months),e.milliseconds=op(e.milliseconds),e.seconds=op(e.seconds),e.minutes=op(e.minutes),e.hours=op(e.hours),e.months=op(e.months),e.years=op(e.years),this}function pye(e,t,n,r){var i=Fd(t,n);return e._milliseconds+=r*i._milliseconds,e._days+=r*i._days,e._months+=r*i._months,e._bubble()}function YVe(e,t){return pye(this,e,t,1)}function KVe(e,t){return pye(this,e,t,-1)}function ane(e){return e<0?Math.floor(e):Math.ceil(e)}function QVe(){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+=ane(ZB(n)+t)*864e5,t=0,n=0),r.milliseconds=e%1e3,i=Jc(e/1e3),r.seconds=i%60,o=Jc(i/60),r.minutes=o%60,a=Jc(o/60),r.hours=a%24,t+=Jc(a/24),l=Jc(hye(t)),n+=l,t-=ane(ZB(l)),s=Jc(n/12),n%=12,r.days=t,r.months=n,r.years=s,this}function hye(e){return e*4800/146097}function ZB(e){return e*146097/4800}function XVe(e){if(!this.isValid())return NaN;var t,n,r=this._milliseconds;if(e=wu(e),e==="month"||e==="quarter"||e==="year")switch(t=this._days+r/864e5,n=this._months+hye(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(t=this._days+Math.round(ZB(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 vh(e){return function(){return this.as(e)}}var mye=vh("ms"),ZVe=vh("s"),JVe=vh("m"),eGe=vh("h"),tGe=vh("d"),nGe=vh("w"),rGe=vh("M"),iGe=vh("Q"),oGe=vh("y"),aGe=mye;function sGe(){return Fd(this)}function lGe(e){return e=wu(e),this.isValid()?this[e+"s"]():NaN}function mv(e){return function(){return this.isValid()?this._data[e]:NaN}}var cGe=mv("milliseconds"),uGe=mv("seconds"),dGe=mv("minutes"),fGe=mv("hours"),pGe=mv("days"),hGe=mv("months"),mGe=mv("years");function gGe(){return Jc(this.days()/7)}var Op=Math.round,Jb={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function vGe(e,t,n,r,i){return i.relativeTime(t||1,!!n,e,r)}function bGe(e,t,n,r){var i=Fd(e).abs(),o=Op(i.as("s")),a=Op(i.as("m")),s=Op(i.as("h")),l=Op(i.as("d")),c=Op(i.as("M")),u=Op(i.as("w")),d=Op(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,vGe.apply(null,f)}function yGe(e){return e===void 0?Op:typeof e=="function"?(Op=e,!0):!1}function _Ge(e,t){return Jb[e]===void 0?!1:t===void 0?Jb[e]:(Jb[e]=t,e==="s"&&(Jb.ss=t-1),!0)}function SGe(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=bGe(this,!n,r,i),n&&(o=i.pastFuture(+this,o)),i.postformat(o)}var O6=Math.abs;function Kv(e){return(e>0)-(e<0)||+e}function q5(){if(!this.isValid())return this.localeData().invalidDate();var e=O6(this._milliseconds)/1e3,t=O6(this._days),n=O6(this._months),r,i,o,a,s=this.asSeconds(),l,c,u,d;return s?(r=Jc(e/60),i=Jc(r/60),e%=60,r%=60,o=Jc(n/12),n%=12,a=e?e.toFixed(3).replace(/\.?0+$/,""):"",l=s<0?"-":"",c=Kv(this._months)!==Kv(s)?"-":"",u=Kv(this._days)!==Kv(s)?"-":"",d=Kv(this._milliseconds)!==Kv(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 ai=G5.prototype;ai.isValid=hze;ai.abs=qVe;ai.add=YVe;ai.subtract=KVe;ai.as=XVe;ai.asMilliseconds=mye;ai.asSeconds=ZVe;ai.asMinutes=JVe;ai.asHours=eGe;ai.asDays=tGe;ai.asWeeks=nGe;ai.asMonths=rGe;ai.asQuarters=iGe;ai.asYears=oGe;ai.valueOf=aGe;ai._bubble=QVe;ai.clone=sGe;ai.get=lGe;ai.milliseconds=cGe;ai.seconds=uGe;ai.minutes=dGe;ai.hours=fGe;ai.days=pGe;ai.weeks=gGe;ai.months=hGe;ai.years=mGe;ai.humanize=SGe;ai.toISOString=q5;ai.toString=q5;ai.toJSON=q5;ai.locale=nye;ai.localeData=iye;ai.toIsoString=xu("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",q5);ai.lang=rye;sr("X",0,0,"unix");sr("x",0,0,"valueOf");Bn("x",j5);Bn("X",Uje);Fi("X",function(e,t,n){n._d=new Date(parseFloat(e)*1e3)});Fi("x",function(e,t,n){n._d=new Date(Yr(e))});//! moment.js
ln.version="2.30.1";Eje(fo);ln.fn=hn;ln.min=uze;ln.max=dze;ln.now=fze;ln.utc=Vf;ln.unix=HVe;ln.months=UVe;ln.isDate=KT;ln.locale=tg;ln.invalid=$5;ln.duration=Fd;ln.isMoment=Ed;ln.weekdays=VVe;ln.parseZone=jVe;ln.localeData=gh;ln.isDuration=gI;ln.monthsShort=zVe;ln.weekdaysMin=WVe;ln.defineLocale=JW;ln.updateLocale=jUe;ln.locales=UUe;ln.weekdaysShort=GVe;ln.normalizeUnits=wu;ln.relativeTimeRounding=yGe;ln.relativeTimeThreshold=_Ge;ln.calendarFormat=$ze;ln.prototype=hn;ln.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 lR;const EGe=new Uint8Array(16);function CGe(){if(!lR&&(lR=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!lR))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return lR(EGe)}const Xa=[];for(let e=0;e<256;++e)Xa.push((e+256).toString(16).slice(1));function xGe(e,t=0){return Xa[e[t+0]]+Xa[e[t+1]]+Xa[e[t+2]]+Xa[e[t+3]]+"-"+Xa[e[t+4]]+Xa[e[t+5]]+"-"+Xa[e[t+6]]+Xa[e[t+7]]+"-"+Xa[e[t+8]]+Xa[e[t+9]]+"-"+Xa[e[t+10]]+Xa[e[t+11]]+Xa[e[t+12]]+Xa[e[t+13]]+Xa[e[t+14]]+Xa[e[t+15]]}const wGe=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),sne={randomUUID:wGe};function TGe(e,t,n){if(sne.randomUUID&&!e)return sne.randomUUID();e=e||{};const r=e.random||(e.rng||CGe)();return r[6]=r[6]&15|64,r[8]=r[8]&63|128,xGe(r)}const OGe="1.5.0";function RGe(){return OGe}function AGe(){const e=localStorage.getItem(cI);(e===null||e==="true")&&new Audio(I7e).play()}function IGe(){return ln().format("YYYY-MM-DD HH:mm:ss")}function Y5(){return TGe().replace(/-/g,"")}function Qv(e){return e.endsWith("/")?e.slice(0,-1):e}function lne(e,t){return e.length>t?e.slice(0,t-3)+"...":e}function NGe(e){if(L7e===e||$7e===e||F7e===e||B7e===e||H7e===e)return!0}function MGe(e){return e===gw||e===vw}function kGe(e){return e===gw||e===vw}function PGe(e){return e.startsWith(q7e)}function gye(){console.log("%cWelcome to Bytedesk","font-family:Arial; color:#3370ff ; font-size:18px; font-weight:bold;","GitHubhttps://github.com/bytedesk/bytedesk")}function DGe(){return["undo","redo","brush","eraser","|","bold","italic","underline","strike","link","code","hr","todo","emoji","font-color","|","image","video","attachment","quote","code-block","table"]}var vye={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})()})(vye);var K5=vye.exports;const Ce=oi(K5);function Xe(){return Xe=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},Xe.apply(null,arguments)}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)}var LGe=Symbol.for("react.element"),$Ge=Symbol.for("react.transitional.element"),FGe=Symbol.for("react.fragment");function bye(e){return e&&qt(e)==="object"&&(e.$$typeof===LGe||e.$$typeof===$Ge)&&e.type===FGe}function Do(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[];return pe.Children.forEach(e,function(r){r==null&&!t.keepEmpty||(Array.isArray(r)?n=n.concat(Do(r)):bye(r)&&r.props?n=n.concat(Do(r.props.children,t)):n.push(r))}),n}var JB={},BGe=function(t){};function HGe(e,t){}function jGe(e,t){}function UGe(){JB={}}function yye(e,t,n){!t&&!JB[n]&&(e(!1,n),JB[n]=!0)}function Vr(e,t){yye(HGe,e,t)}function Cw(e,t){yye(jGe,e,t)}Vr.preMessage=BGe;Vr.resetWarned=UGe;Vr.noteOnce=Cw;function zGe(e,t){if(qt(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(qt(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function _ye(e){var t=zGe(e,"string");return qt(t)=="symbol"?t:t+""}function te(e,t,n){return(t=_ye(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function cne(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 z(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?cne(Object(n),!0).forEach(function(r){te(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):cne(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function xw(e){return e instanceof HTMLElement||e instanceof SVGElement}function JT(e){return e&&qt(e)==="object"&&xw(e.nativeElement)?e.nativeElement:xw(e)?e:null}function bI(e){var t=JT(e);if(t)return t;if(e instanceof pe.Component){var n;return(n=uw.findDOMNode)===null||n===void 0?void 0:n.call(uw,e)}return null}var Sye={exports:{}},Ri={};/**
* @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 lq=Symbol.for("react.element"),cq=Symbol.for("react.portal"),Q5=Symbol.for("react.fragment"),X5=Symbol.for("react.strict_mode"),Z5=Symbol.for("react.profiler"),J5=Symbol.for("react.provider"),eP=Symbol.for("react.context"),VGe=Symbol.for("react.server_context"),tP=Symbol.for("react.forward_ref"),nP=Symbol.for("react.suspense"),rP=Symbol.for("react.suspense_list"),iP=Symbol.for("react.memo"),oP=Symbol.for("react.lazy"),GGe=Symbol.for("react.offscreen"),Eye;Eye=Symbol.for("react.module.reference");function Tu(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case lq:switch(e=e.type,e){case Q5:case Z5:case X5:case nP:case rP:return e;default:switch(e=e&&e.$$typeof,e){case VGe:case eP:case tP:case oP:case iP:case J5:return e;default:return t}}case cq:return t}}}Ri.ContextConsumer=eP;Ri.ContextProvider=J5;Ri.Element=lq;Ri.ForwardRef=tP;Ri.Fragment=Q5;Ri.Lazy=oP;Ri.Memo=iP;Ri.Portal=cq;Ri.Profiler=Z5;Ri.StrictMode=X5;Ri.Suspense=nP;Ri.SuspenseList=rP;Ri.isAsyncMode=function(){return!1};Ri.isConcurrentMode=function(){return!1};Ri.isContextConsumer=function(e){return Tu(e)===eP};Ri.isContextProvider=function(e){return Tu(e)===J5};Ri.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===lq};Ri.isForwardRef=function(e){return Tu(e)===tP};Ri.isFragment=function(e){return Tu(e)===Q5};Ri.isLazy=function(e){return Tu(e)===oP};Ri.isMemo=function(e){return Tu(e)===iP};Ri.isPortal=function(e){return Tu(e)===cq};Ri.isProfiler=function(e){return Tu(e)===Z5};Ri.isStrictMode=function(e){return Tu(e)===X5};Ri.isSuspense=function(e){return Tu(e)===nP};Ri.isSuspenseList=function(e){return Tu(e)===rP};Ri.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Q5||e===Z5||e===X5||e===nP||e===rP||e===GGe||typeof e=="object"&&e!==null&&(e.$$typeof===oP||e.$$typeof===iP||e.$$typeof===J5||e.$$typeof===eP||e.$$typeof===tP||e.$$typeof===Eye||e.getModuleId!==void 0)};Ri.typeOf=Tu;Sye.exports=Ri;var R6=Sye.exports;function Df(e,t,n){var r=h.useRef({});return(!("value"in r.current)||n(r.current.condition,t))&&(r.current.value=e(),r.current.condition=t),r.current.value}var WGe=Number(h.version.split(".")[0]),ww=function(t,n){typeof t=="function"?t(n):qt(t)==="object"&&t&&"current"in t&&(t.current=n)},aa=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){ww(a,o)})}},Bd=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return Df(function(){return aa.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(uq(t)&&WGe>=19)return!0;var i=R6.isMemo(t)?t.type.type:t.type;return!(typeof i=="function"&&!((n=i.prototype)!==null&&n!==void 0&&n.render)&&i.$$typeof!==R6.ForwardRef||typeof t=="function"&&!((r=t.prototype)!==null&&r!==void 0&&r.render)&&t.$$typeof!==R6.ForwardRef)};function uq(e){return h.isValidElement(e)&&!bye(e)}var qGe=function(t){return uq(t)&&Cd(t)},Rg=function(t){if(t&&uq(t)){var n=t;return n.props.propertyIsEnumerable("ref")?n.props.ref:n.ref}return null},eH=h.createContext(null);function YGe(e){var t=e.children,n=e.onBatchResize,r=h.useRef(0),i=h.useRef([]),o=h.useContext(eH),a=h.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 h.createElement(eH.Provider,{value:a},t)}var Cye=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}()}(),tH=typeof window<"u"&&typeof document<"u"&&window.document===document,l4=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")()}(),KGe=function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(l4):function(e){return setTimeout(function(){return e(Date.now())},1e3/60)}}(),QGe=2;function XGe(e,t){var n=!1,r=!1,i=0;function o(){n&&(n=!1,e()),r&&s()}function a(){KGe(o)}function s(){var l=Date.now();if(n){if(l-i<QGe)return;r=!0}else n=!0,r=!1,setTimeout(a,t);i=l}return s}var ZGe=20,JGe=["top","right","bottom","left","width","height","size","weight"],eWe=typeof MutationObserver<"u",tWe=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=XGe(this.refresh.bind(this),ZGe)}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(){!tH||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),eWe?(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(){!tH||!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=JGe.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}(),xye=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},r_=function(e){var t=e&&e.ownerDocument&&e.ownerDocument.defaultView;return t||l4},wye=aP(0,0,0,0);function c4(e){return parseFloat(e)||0}function une(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+c4(o)},0)}function nWe(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]=c4(a)}return n}function rWe(e){var t=e.getBBox();return aP(0,0,t.width,t.height)}function iWe(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return wye;var r=r_(e).getComputedStyle(e),i=nWe(r),o=i.left+i.right,a=i.top+i.bottom,s=c4(r.width),l=c4(r.height);if(r.boxSizing==="border-box"&&(Math.round(s+o)!==t&&(s-=une(r,"left","right")+o),Math.round(l+a)!==n&&(l-=une(r,"top","bottom")+a)),!aWe(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 aP(i.left,i.top,s,l)}var oWe=function(){return typeof SVGGraphicsElement<"u"?function(e){return e instanceof r_(e).SVGGraphicsElement}:function(e){return e instanceof r_(e).SVGElement&&typeof e.getBBox=="function"}}();function aWe(e){return e===r_(e).document.documentElement}function sWe(e){return tH?oWe(e)?rWe(e):iWe(e):wye}function lWe(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 xye(a,{x:t,y:n,width:r,height:i,top:n,right:t+r,bottom:i+n,left:t}),a}function aP(e,t,n,r){return{x:e,y:t,width:n,height:r}}var cWe=function(){function e(t){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=aP(0,0,0,0),this.target=t}return e.prototype.isActive=function(){var t=sWe(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}(),uWe=function(){function e(t,n){var r=lWe(n);xye(this,{target:t,contentRect:r})}return e}(),dWe=function(){function e(t,n,r){if(this.activeObservations_=[],this.observations_=new Cye,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 r_(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(t)||(n.set(t,new cWe(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 r_(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 uWe(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}(),Tye=typeof WeakMap<"u"?new WeakMap:new Cye,Oye=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=tWe.getInstance(),r=new dWe(t,n,this);Tye.set(this,r)}return e}();["observe","unobserve","disconnect"].forEach(function(e){Oye.prototype[e]=function(){var t;return(t=Tye.get(this))[e].apply(t,arguments)}});var fWe=function(){return typeof l4.ResizeObserver<"u"?l4.ResizeObserver:Oye}(),Am=new Map;function pWe(e){e.forEach(function(t){var n,r=t.target;(n=Am.get(r))===null||n===void 0||n.forEach(function(i){return i(r)})})}var Rye=new fWe(pWe);function hWe(e,t){Am.has(e)||(Am.set(e,new Set),Rye.observe(e)),Am.get(e).add(t)}function mWe(e,t){Am.has(e)&&(Am.get(e).delete(t),Am.get(e).size||(Rye.unobserve(e),Am.delete(e)))}function Qr(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function dne(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,_ye(r.key),r)}}function Xr(e,t,n){return t&&dne(e.prototype,t),n&&dne(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Tw(e,t){return Tw=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},Tw(e,t)}function Fs(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&&Tw(e,t)}function L1(e){return L1=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},L1(e)}function sP(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(sP=function(){return!!e})()}function sn(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Aye(e,t){if(t&&(qt(t)=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return sn(e)}function ll(e){var t=sP();return function(){var n,r=L1(e);if(t){var i=L1(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return Aye(this,n)}}var gWe=function(e){Fs(n,e);var t=ll(n);function n(){return Qr(this,n),t.apply(this,arguments)}return Xr(n,[{key:"render",value:function(){return this.props.children}}]),n}(h.Component);function vWe(e,t){var n=e.children,r=e.disabled,i=h.useRef(null),o=h.useRef(null),a=h.useContext(eH),s=typeof n=="function",l=s?n(i):n,c=h.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),u=!s&&h.isValidElement(l)&&Cd(l),d=u?Rg(l):null,f=Bd(d,i),p=function(){var y;return bI(i.current)||(i.current&&qt(i.current)==="object"?bI((y=i.current)===null||y===void 0?void 0:y.nativeElement):null)||bI(o.current)};h.useImperativeHandle(t,function(){return p()});var m=h.useRef(e);m.current=e;var g=h.useCallback(function(v){var y=m.current,b=y.onResize,_=y.data,S=v.getBoundingClientRect(),x=S.width,E=S.height,C=v.offsetWidth,w=v.offsetHeight,O=Math.floor(x),T=Math.floor(E);if(c.current.width!==O||c.current.height!==T||c.current.offsetWidth!==C||c.current.offsetHeight!==w){var A={width:O,height:T,offsetWidth:C,offsetHeight:w};c.current=A;var I=C===Math.round(x)?x:C,N=w===Math.round(E)?E:w,D=z(z({},A),{},{offsetWidth:I,offsetHeight:N});a==null||a(D,v,_),b&&Promise.resolve().then(function(){b(D,v)})}},[]);return h.useEffect(function(){var v=p();return v&&!r&&hWe(v,g),function(){return mWe(v,g)}},[i.current,r]),h.createElement(gWe,{ref:o},u?h.cloneElement(l,{ref:f}):l)}var bWe=h.forwardRef(vWe),yWe="rc-observer-key";function _We(e,t){var n=e.children,r=typeof n=="function"?[n]:Do(n);return r.map(function(i,o){var a=(i==null?void 0:i.key)||"".concat(yWe,"-").concat(o);return h.createElement(bWe,Xe({},e,{key:a,ref:o===0?t:void 0}),i)})}var Oa=h.forwardRef(_We);Oa.Collection=YGe;function nH(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 SWe(e){if(Array.isArray(e))return nH(e)}function Iye(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function lP(e,t){if(e){if(typeof e=="string")return nH(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)?nH(e,t):void 0}}function EWe(){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 rt(e){return SWe(e)||Iye(e)||lP(e)||EWe()}var Nye=function(t){return+setTimeout(t,16)},Mye=function(t){return clearTimeout(t)};typeof window<"u"&&"requestAnimationFrame"in window&&(Nye=function(t){return window.requestAnimationFrame(t)},Mye=function(t){return window.cancelAnimationFrame(t)});var fne=0,dq=new Map;function kye(e){dq.delete(e)}var tr=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;fne+=1;var r=fne;function i(o){if(o===0)kye(r),t();else{var a=Nye(function(){i(o-1)});dq.set(r,a)}}return i(n),r};tr.cancel=function(e){var t=dq.get(e);return kye(e),Mye(t)};function Pye(e){if(Array.isArray(e))return e}function CWe(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 Dye(){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 Re(e,t){return Pye(e)||CWe(e,t)||lP(e,t)||Dye()}function Ow(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 Aa(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function rH(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 pne="data-rc-order",hne="data-rc-priority",xWe="rc-util-key",iH=new Map;function Lye(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.mark;return t?t.startsWith("data-")?t:"data-".concat(t):xWe}function cP(e){if(e.attachTo)return e.attachTo;var t=document.querySelector("head");return t||document.body}function wWe(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function fq(e){return Array.from((iH.get(e)||e).children).filter(function(t){return t.tagName==="STYLE"})}function $ye(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!Aa())return null;var n=t.csp,r=t.prepend,i=t.priority,o=i===void 0?0:i,a=wWe(r),s=a==="prependQueue",l=document.createElement("style");l.setAttribute(pne,a),s&&o&&l.setAttribute(hne,"".concat(o)),n!=null&&n.nonce&&(l.nonce=n==null?void 0:n.nonce),l.innerHTML=e;var c=cP(t),u=c.firstChild;if(r){if(s){var d=(t.styles||fq(c)).filter(function(f){if(!["prepend","prependQueue"].includes(f.getAttribute(pne)))return!1;var p=Number(f.getAttribute(hne)||0);return o>=p});if(d.length)return c.insertBefore(l,d[d.length-1].nextSibling),l}c.insertBefore(l,u)}else c.appendChild(l);return l}function Fye(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=cP(t);return(t.styles||fq(n)).find(function(r){return r.getAttribute(Lye(t))===e})}function i_(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=Fye(e,t);if(n){var r=cP(t);r.removeChild(n)}}function TWe(e,t){var n=iH.get(e);if(!n||!rH(document,n)){var r=$ye("",t),i=r.parentNode;iH.set(e,i),e.removeChild(r)}}function If(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=cP(n),i=fq(r),o=z(z({},n),{},{styles:i});TWe(r,o);var a=Fye(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=$ye(e,o);return u.setAttribute(Lye(o),t),u}function OWe(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function kt(e,t){if(e==null)return{};var n,r,i=OWe(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function Bl(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(Vr(!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&&qt(o)==="object"&&qt(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 RWe="%";function oH(e){return e.join(RWe)}var AWe=function(){function e(t){Qr(this,e),te(this,"instanceId",void 0),te(this,"cache",new Map),this.instanceId=t}return Xr(e,[{key:"get",value:function(n){return this.opGet(oH(n))}},{key:"opGet",value:function(n){return this.cache.get(n)||null}},{key:"update",value:function(n,r){return this.opUpdate(oH(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}(),IWe=["children"],o_="data-token-hash",dd="data-css-hash",Im="__cssinjs_instance__";function pq(){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[Im]=i[Im]||e,i[Im]===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[Im]===e){var a;(a=i.parentNode)===null||a===void 0||a.removeChild(i)}}else r[o]=!0})}return new AWe(e)}var fg=h.createContext({hashPriority:"low",cache:pq(),defaultCache:!0}),NWe=function(t){var n=t.children,r=kt(t,IWe),i=h.useContext(fg),o=Df(function(){var a=z({},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||pq(),a.defaultCache=!s&&i.defaultCache,a},[i,r],function(a,s){return!Bl(a[0],s[0],!0)||!Bl(a[1],s[1],!0)});return h.createElement(fg.Provider,{value:o},n)},Bye=Xr(function e(){Qr(this,e)}),Hye="CALC_UNIT",MWe=new RegExp(Hye,"g");function A6(e){return typeof e=="number"?"".concat(e).concat(Hye):e}var kWe=function(e){Fs(n,e);var t=ll(n);function n(r,i){var o;Qr(this,n),o=t.call(this),te(sn(o),"result",""),te(sn(o),"unitlessCssVar",void 0),te(sn(o),"lowPriority",void 0);var a=qt(r);return o.unitlessCssVar=i,r instanceof n?o.result="(".concat(r.result,")"):a==="number"?o.result=A6(r):a==="string"&&(o.result=r),o}return Xr(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(A6(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(A6(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(MWe,l?"px":""),typeof this.lowPriority<"u"?"calc(".concat(this.result,")"):this.result}}]),n}(Bye),PWe=function(e){Fs(n,e);var t=ll(n);function n(r){var i;return Qr(this,n),i=t.call(this),te(sn(i),"result",0),r instanceof n?i.result=r.result:typeof r=="number"&&(i.result=r),i}return Xr(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}(Bye),DWe=function(t,n){var r=t==="css"?kWe:PWe;return function(i){return new r(i,n)}};function LWe(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 hq=function(){function e(){Qr(this,e),te(this,"cache",void 0),te(this,"keys",void 0),te(this,"cacheCallTimes",void 0),this.cache=new Map,this.keys=[],this.cacheCallTimes=0}return Xr(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=Re(c,2),f=d[1];return i.internalGet(u)[1]<f?[u,i.internalGet(u)[1]]:c},[this.keys[0],this.cacheCallTimes]),a=Re(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!LWe(r,n)}),this.deleteByPath(this.cache,n)}}]),e}();te(hq,"MAX_CACHE_SIZE",20);te(hq,"MAX_CACHE_OFFSET",5);var mne=0,mq=function(){function e(t){Qr(this,e),te(this,"derivatives",void 0),te(this,"id",void 0),this.derivatives=Array.isArray(t)?t:[t],this.id=mne,t.length===0&&(t.length>0,void 0),mne+=1}return Xr(e,[{key:"getDerivativeToken",value:function(n){return this.derivatives.reduce(function(r,i){return i(n,r)},void 0)}}]),e}(),I6=new hq;function a_(e){var t=Array.isArray(e)?e:[e];return I6.has(t)||I6.set(t,new mq(t)),I6.get(t)}var $We=new WeakMap,N6={};function FWe(e,t){for(var n=$We,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(N6)||n.set(N6,e()),n.get(N6)}var gne=new WeakMap;function ix(e){var t=gne.get(e)||"";return t||(Object.keys(e).forEach(function(n){var r=e[n];t+=n,r instanceof mq?t+=r.id:r&&qt(r)==="object"?t+=ix(r):t+=r}),t=Ow(t),gne.set(e,t)),t}function vne(e,t){return Ow("".concat(t,"_").concat(ix(e)))}var s_="random-".concat(Date.now(),"-").concat(Math.random()).replace(/\./g,""),jye="_bAmBoO_";function Uye(e,t,n){if(Aa()){var r,i;If(e,s_);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(jye);return(i=o.parentNode)===null||i===void 0||i.removeChild(o),i_(s_),a}return!1}var M6=void 0;function BWe(){return M6===void 0&&(M6=Uye(":where(.".concat(s_,') { content: "').concat(jye,'"!important; }'),function(e){e.className=s_})),M6}var k6=void 0;function HWe(){return k6===void 0&&(k6=Uye(".".concat(s_," { inset-block: 93px !important; }"),function(e){e.className=s_},function(e){return getComputedStyle(e).bottom==="93px"})),k6}var aH=Aa();function Ie(e){return typeof e=="number"?"".concat(e,"px"):e}function Rw(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=z(z({},i),{},(r={},te(r,o_,t),te(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 ox=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()},jWe=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=Re(i,2),a=o[0],s=o[1];return"".concat(a,":").concat(s,";")}).join(""),"}"):""},zye=function(t,n,r){var i={},o={};return Object.entries(t).forEach(function(a){var s,l,c=Re(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,p=ox(u,r==null?void 0:r.prefix);i[p]=typeof d=="number"&&!(r!=null&&(f=r.unitless)!==null&&f!==void 0&&f[u])?"".concat(d,"px"):String(d),o[u]="var(".concat(p,")")}}),[o,jWe(i,n,{scope:r==null?void 0:r.scope})]},bne=Aa()?h.useLayoutEffect:h.useEffect,er=function(t,n){var r=h.useRef(!0);bne(function(){return t(r.current)},n),bne(function(){return r.current=!1,function(){r.current=!0}},[])},a1=function(t,n){er(function(r){if(!r)return t()},n)},UWe=z({},DT),yne=UWe.useInsertionEffect,zWe=function(t,n,r){h.useMemo(t,r),er(function(){return n(!0)},r)},VWe=yne?function(e,t,n){return yne(function(){return e(),t()},n)}:zWe,GWe=z({},DT),WWe=GWe.useInsertionEffect,qWe=function(t){var n=[],r=!1;function i(o){r||n.push(o)}return h.useEffect(function(){return r=!1,function(){r=!0,n.length&&n.forEach(function(o){return o()})}},t),i},YWe=function(){return function(t){t()}},KWe=typeof WWe<"u"?qWe:YWe;function gq(e,t,n,r,i){var o=h.useContext(fg),a=o.cache,s=[e].concat(rt(t)),l=oH(s),c=KWe([l]),u=function(m){a.opUpdate(l,function(g){var v=g||[void 0,void 0],y=Re(v,2),b=y[0],_=b===void 0?0:b,S=y[1],x=S,E=x||n(),C=[_,E];return m?m(C):C})};h.useMemo(function(){u()},[l]);var d=a.opGet(l),f=d[1];return VWe(function(){i==null||i(f)},function(p){return u(function(m){var g=Re(m,2),v=g[0],y=g[1];return p&&v===0&&(i==null||i(f)),[v+1,y]}),function(){a.opUpdate(l,function(m){var g=m||[],v=Re(g,2),y=v[0],b=y===void 0?0:y,_=v[1],S=b-1;return S===0?(c(function(){(p||!a.opGet(l))&&(r==null||r(_,!1))}),null):[b-1,_]})}},[l]),f}var QWe={},XWe="css",E0=new Map;function ZWe(e){E0.set(e,(E0.get(e)||0)+1)}function JWe(e,t){if(typeof document<"u"){var n=document.querySelectorAll("style[".concat(o_,'="').concat(e,'"]'));n.forEach(function(r){if(r[Im]===t){var i;(i=r.parentNode)===null||i===void 0||i.removeChild(r)}})}}var eqe=0;function tqe(e,t){E0.set(e,(E0.get(e)||0)-1);var n=Array.from(E0.keys()),r=n.filter(function(i){var o=E0.get(i)||0;return o<=0});n.length-r.length>eqe&&r.forEach(function(i){JWe(i,t),E0.delete(i)})}var vq=function(t,n,r,i){var o=r.getDerivativeToken(t),a=z(z({},o),n);return i&&(a=i(a)),a},Vye="token";function bq(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=h.useContext(fg),i=r.cache.instanceId,o=r.container,a=n.salt,s=a===void 0?"":a,l=n.override,c=l===void 0?QWe:l,u=n.formatToken,d=n.getComputedToken,f=n.cssVar,p=FWe(function(){return Object.assign.apply(Object,[{}].concat(rt(t)))},t),m=ix(p),g=ix(c),v=f?ix(f):"",y=gq(Vye,[s,e.id,m,g,v],function(){var b,_=d?d(p,c,e):vq(p,c,e,u),S=z({},_),x="";if(f){var E=zye(_,f.key,{prefix:f.prefix,ignore:f.ignore,unitless:f.unitless,preserve:f.preserve}),C=Re(E,2);_=C[0],x=C[1]}var w=vne(_,s);_._tokenKey=w,S._tokenKey=vne(S,s);var O=(b=f==null?void 0:f.key)!==null&&b!==void 0?b:w;_._themeKey=O,ZWe(O);var T="".concat(XWe,"-").concat(Ow(w));return _._hashId=T,[_,T,S,x,(f==null?void 0:f.key)||""]},function(b){tqe(b[0]._themeKey,i)},function(b){var _=Re(b,4),S=_[0],x=_[3];if(f&&x){var E=If(x,Ow("css-variables-".concat(S._themeKey)),{mark:dd,prepend:"queue",attachTo:o,priority:-999});E[Im]=i,E.setAttribute(o_,S._themeKey)}});return y}var nqe=function(t,n,r){var i=Re(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)},p=Rw(a,s,u,f,c);return[d,u,p]},Gye={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},Wye="comm",qye="rule",Yye="decl",rqe="@import",iqe="@namespace",oqe="@keyframes",aqe="@layer",Kye=Math.abs,yq=String.fromCharCode;function Qye(e){return e.trim()}function yI(e,t,n){return e.replace(t,n)}function sqe(e,t,n){return e.indexOf(t,n)}function by(e,t){return e.charCodeAt(t)|0}function l_(e,t,n){return e.slice(t,n)}function lf(e){return e.length}function lqe(e){return e.length}function cR(e,t){return t.push(e),e}var uP=1,c_=1,Xye=0,mu=0,pa=0,cS="";function _q(e,t,n,r,i,o,a,s){return{value:e,root:t,parent:n,type:r,props:i,children:o,line:uP,column:c_,length:a,return:"",siblings:s}}function cqe(){return pa}function uqe(){return pa=mu>0?by(cS,--mu):0,c_--,pa===10&&(c_=1,uP--),pa}function fd(){return pa=mu<Xye?by(cS,mu++):0,c_++,pa===10&&(c_=1,uP++),pa}function Nm(){return by(cS,mu)}function _I(){return mu}function dP(e,t){return l_(cS,e,t)}function Aw(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 dqe(e){return uP=c_=1,Xye=lf(cS=e),mu=0,[]}function fqe(e){return cS="",e}function P6(e){return Qye(dP(mu-1,sH(e===91?e+2:e===40?e+1:e)))}function pqe(e){for(;(pa=Nm())&&pa<33;)fd();return Aw(e)>2||Aw(pa)>3?"":" "}function hqe(e,t){for(;--t&&fd()&&!(pa<48||pa>102||pa>57&&pa<65||pa>70&&pa<97););return dP(e,_I()+(t<6&&Nm()==32&&fd()==32))}function sH(e){for(;fd();)switch(pa){case e:return mu;case 34:case 39:e!==34&&e!==39&&sH(pa);break;case 40:e===41&&sH(e);break;case 92:fd();break}return mu}function mqe(e,t){for(;fd()&&e+pa!==57;)if(e+pa===84&&Nm()===47)break;return"/*"+dP(t,mu-1)+"*"+yq(e===47?e:fd())}function gqe(e){for(;!Aw(Nm());)fd();return dP(e,mu)}function vqe(e){return fqe(SI("",null,null,null,[""],e=dqe(e),0,[0],e))}function SI(e,t,n,r,i,o,a,s,l){for(var c=0,u=0,d=a,f=0,p=0,m=0,g=1,v=1,y=1,b=0,_="",S=i,x=o,E=r,C=_;v;)switch(m=b,b=fd()){case 40:if(m!=108&&by(C,d-1)==58){sqe(C+=yI(P6(b),"&","&\f"),"&\f",Kye(c?s[c-1]:0))!=-1&&(y=-1);break}case 34:case 39:case 91:C+=P6(b);break;case 9:case 10:case 13:case 32:C+=pqe(m);break;case 92:C+=hqe(_I()-1,7);continue;case 47:switch(Nm()){case 42:case 47:cR(bqe(mqe(fd(),_I()),t,n,l),l),(Aw(m||1)==5||Aw(Nm()||1)==5)&&lf(C)&&l_(C,-1,void 0)!==" "&&(C+=" ");break;default:C+="/"}break;case 123*g:s[c++]=lf(C)*y;case 125*g:case 59:case 0:switch(b){case 0:case 125:v=0;case 59+u:y==-1&&(C=yI(C,/\f/g,"")),p>0&&(lf(C)-d||g===0&&m===47)&&cR(p>32?Sne(C+";",r,n,d-1,l):Sne(yI(C," ","")+";",r,n,d-2,l),l);break;case 59:C+=";";default:if(cR(E=_ne(C,t,n,c,u,i,s,_,S=[],x=[],d,o),o),b===123)if(u===0)SI(C,t,E,E,S,o,d,s,x);else{switch(f){case 99:if(by(C,3)===110)break;case 108:if(by(C,2)===97)break;default:u=0;case 100:case 109:case 115:}u?SI(e,E,E,r&&cR(_ne(e,E,E,0,0,i,s,_,i,S=[],d,x),x),i,x,d,s,r?S:x):SI(C,E,E,E,[""],x,0,s,x)}}c=u=p=0,g=y=1,_=C="",d=a;break;case 58:d=1+lf(C),p=m;default:if(g<1){if(b==123)--g;else if(b==125&&g++==0&&uqe()==125)continue}switch(C+=yq(b),b*g){case 38:y=u>0?1:(C+="\f",-1);break;case 44:s[c++]=(lf(C)-1)*y,y=1;break;case 64:Nm()===45&&(C+=P6(fd())),f=Nm(),u=d=lf(_=C+=gqe(_I())),b++;break;case 45:m===45&&lf(C)==2&&(g=0)}}return o}function _ne(e,t,n,r,i,o,a,s,l,c,u,d){for(var f=i-1,p=i===0?o:[""],m=lqe(p),g=0,v=0,y=0;g<r;++g)for(var b=0,_=l_(e,f+1,f=Kye(v=a[g])),S=e;b<m;++b)(S=Qye(v>0?p[b]+" "+_:yI(_,/&\f/g,p[b])))&&(l[y++]=S);return _q(e,t,n,i===0?qye:s,l,c,u,d)}function bqe(e,t,n,r){return _q(e,t,n,Wye,yq(cqe()),l_(e,2,-2),0,r)}function Sne(e,t,n,r,i){return _q(e,t,n,Yye,l_(e,0,r),l_(e,r+1,-1),r,i)}function lH(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function yqe(e,t,n,r){switch(e.type){case aqe:if(e.children.length)break;case rqe:case iqe:case Yye:return e.return=e.return||e.value;case Wye:return"";case oqe:return e.return=e.value+"{"+lH(e.children,r)+"}";case qye:if(!lf(e.value=e.props.join(",")))return""}return lf(n=lH(e.children,r))?e.return=e.value+"{"+n+"}":""}function P0(e,t){var n=t.path,r=t.parentSelectors;Vr(!1,"[Ant Design CSS-in-JS] ".concat(n?"Error in ".concat(n,": "):"").concat(e).concat(r.length?" Selector: ".concat(r.join(" | ")):""))}function _qe(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 Sqe(e){return e.parentSelectors.reduce(function(t,n){return t?n.includes("&")?n.replace(/&/g,t):"".concat(t," ").concat(n):n},"")}var Eqe=function(t,n,r){var i=Sqe(r),o=i.match(/:not\([^)]*\)/g)||[];o.length>0&&o.some(_qe)&&P0("Concat ':not' selector not support in legacy browsers.",r)},Cqe=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":P0("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]&&P0("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")&&P0("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&&P0("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}},xqe=function(t,n,r){(typeof n=="string"&&/NaN/g.test(n)||Number.isNaN(n))&&P0("Unexpected 'NaN' in property '".concat(t,": ").concat(n,"'."),r)},wqe=function(t,n,r){r.parentSelectors.some(function(i){var o=i.split(",");return o.some(function(a){return a.split("&").length>2})})&&P0("Should not use more than one `&` in a selector.",r)},ax="data-ant-cssinjs-cache-path",Zye="_FILE_STYLE__";function Tqe(e){return Object.keys(e).map(function(t){var n=e[t];return"".concat(t,":").concat(n)}).join(";")}var s1,Jye=!0;function Oqe(){if(!s1&&(s1={},Aa())){var e=document.createElement("div");e.className=ax,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=Re(o,2),s=a[0],l=a[1];s1[s]=l});var n=document.querySelector("style[".concat(ax,"]"));if(n){var r;Jye=!1,(r=n.parentNode)===null||r===void 0||r.removeChild(n)}document.body.removeChild(e)}}function Rqe(e){return Oqe(),!!s1[e]}function Aqe(e){var t=s1[e],n=null;if(t&&Aa())if(Jye)n=Zye;else{var r=document.querySelector("style[".concat(dd,'="').concat(s1[e],'"]'));r?n=r.innerHTML:delete s1[e]}return[n,t]}var Iqe="_skip_check_",e_e="_multi_value_";function EI(e){var t=lH(vqe(e),yqe);return t.replace(/\{%%%\:[^;];}/g,";")}function Nqe(e){return qt(e)==="object"&&e&&(Iqe in e||e_e in e)}function Ene(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(rt(l.slice(1))).join(" ")});return o.join(",")}var Mqe=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="",p={};function m(y){var b=y.getName(s);if(!p[b]){var _=e(y.style,n,{root:!1,parentSelectors:a}),S=Re(_,1),x=S[0];p[b]="@keyframes ".concat(y.getName(s)).concat(x)}}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(S,x){var E;return(x==null||(E=x.visit)===null||E===void 0?void 0:E.call(x,S))||S},b);Object.keys(_).forEach(function(S){var x=_[S];if(qt(x)==="object"&&x&&(S!=="animationName"||!x._keyframe)&&!Nqe(x)){var E=!1,C=S.trim(),w=!1;(i||o)&&s?C.startsWith("@")?E=!0:C==="&"?C=Ene("",s,c):C=Ene(S,s,c):i&&!s&&(C==="&"||C==="")&&(C="",w=!0);var O=e(x,n,{root:w,injectHash:E,parentSelectors:[].concat(rt(a),[C])}),T=Re(O,2),A=T[0],I=T[1];p=z(z({},p),I),f+="".concat(C).concat(A)}else{let M=function(k,P){var B=k.replace(/[A-Z]/g,function(L){return"-".concat(L.toLowerCase())}),G=P;!Gye[k]&&typeof G=="number"&&G!==0&&(G="".concat(G,"px")),k==="animationName"&&P!==null&&P!==void 0&&P._keyframe&&(m(P),G=P.getName(s)),f+="".concat(B,":").concat(G,";")};var N,D=(N=x==null?void 0:x.value)!==null&&N!==void 0?N:x;qt(x)==="object"&&x!==null&&x!==void 0&&x[e_e]&&Array.isArray(D)?D.forEach(function(k){M(S,k)}):M(S,D)}})}}),i?l&&(f&&(f="@layer ".concat(l.name," {").concat(f,"}")),l.dependencies&&(p["@layer ".concat(l.name)]=l.dependencies.map(function(y){return"@layer ".concat(y,", ").concat(l.name,";")}).join(`
`))):f="{".concat(f,"}"),[f,p]};function t_e(e,t){return Ow("".concat(e.join("%")).concat(t))}function kqe(){return null}var n_e="style";function u_(e,t){var n=e.token,r=e.path,i=e.hashId,o=e.layer,a=e.nonce,s=e.clientOnly,l=e.order,c=l===void 0?0:l,u=h.useContext(fg),d=u.autoClear;u.mock;var f=u.defaultCache,p=u.hashPriority,m=u.container,g=u.ssrInline,v=u.transformers,y=u.linters,b=u.cache,_=u.layer,S=n._tokenKey,x=[S];_&&x.push("layer"),x.push.apply(x,rt(r));var E=aH,C=gq(n_e,x,function(){var I=x.join("|");if(Rqe(I)){var N=Aqe(I),D=Re(N,2),M=D[0],k=D[1];if(M)return[M,S,k,{},s,c]}var P=t(),B=Mqe(P,{hashId:i,hashPriority:p,layer:_?o:void 0,path:r.join("-"),transformers:v,linters:y}),G=Re(B,2),L=G[0],W=G[1],j=EI(L),H=t_e(x,j);return[j,S,H,W,s,c]},function(I,N){var D=Re(I,3),M=D[2];(N||d)&&aH&&i_(M,{mark:dd})},function(I){var N=Re(I,4),D=N[0];N[1];var M=N[2],k=N[3];if(E&&D!==Zye){var P={mark:dd,prepend:_?!1:"queue",attachTo:m,priority:c},B=typeof a=="function"?a():a;B&&(P.csp={nonce:B});var G=[],L=[];Object.keys(k).forEach(function(j){j.startsWith("@layer")?G.push(j):L.push(j)}),G.forEach(function(j){If(EI(k[j]),"_layer-".concat(j),z(z({},P),{},{prepend:!0}))});var W=If(D,M,P);W[Im]=b.instanceId,W.setAttribute(o_,S),L.forEach(function(j){If(EI(k[j]),"_effect-".concat(j),P)})}}),w=Re(C,3),O=w[0],T=w[1],A=w[2];return function(I){var N;if(!g||E||!f)N=h.createElement(kqe,null);else{var D;N=h.createElement("style",Xe({},(D={},te(D,o_,T),te(D,dd,A),D),{dangerouslySetInnerHTML:{__html:O}}))}return h.createElement(h.Fragment,null,N,I)}}var Pqe=function(t,n,r){var i=Re(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 p=o,m={"data-rc-order":"prependQueue","data-rc-priority":"".concat(u)};return p=Rw(o,a,s,m,f),l&&Object.keys(l).forEach(function(g){if(!n[g]){n[g]=!0;var v=EI(l[g]),y=Rw(v,a,"_effect-".concat(g),m,f);g.startsWith("@layer")?p=y+p:p+=y}}),[u,s,p]},r_e="cssVar",i_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=h.useContext(fg),d=u.cache.instanceId,f=u.container,p=s._tokenKey,m=[].concat(rt(t.path),[r,c,p]),g=gq(r_e,m,function(){var v=n(),y=zye(v,r,{prefix:i,unitless:o,ignore:a,scope:c}),b=Re(y,2),_=b[0],S=b[1],x=t_e(m,S);return[_,S,x,r]},function(v){var y=Re(v,3),b=y[2];aH&&i_(b,{mark:dd})},function(v){var y=Re(v,3),b=y[1],_=y[2];if(b){var S=If(b,_,{mark:dd,prepend:"queue",attachTo:f,priority:-999});S[Im]=d,S.setAttribute(o_,r)}});return g},Dqe=function(t,n,r){var i=Re(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=Rw(o,s,a,d,c);return[u,a,f]},RE,Lqe=(RE={},te(RE,n_e,Pqe),te(RE,Vye,nqe),te(RE,r_e,Dqe),RE);function $qe(e){return e!==null}function Fqe(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 p=f.replace(s,"").replace(/%/g,"|"),m=f.split("%"),g=Re(m,1),v=g[0],y=Lqe[v],b=y(e.cache.get(f)[1],c,{plain:i});if(!b)return null;var _=Re(b,3),S=_[0],x=_[1],E=_[2];return f.startsWith("style")&&(u[p]=x),[S,E]}).filter($qe).sort(function(f,p){var m=Re(f,1),g=m[0],v=Re(p,1),y=v[0];return g-y}).forEach(function(f){var p=Re(f,2),m=p[1];d+=m}),d+=Rw(".".concat(ax,'{content:"').concat(Tqe(u),'";}'),void 0,void 0,te({},ax,ax),i),d}var fr=function(){function e(t,n){Qr(this,e),te(this,"name",void 0),te(this,"style",void 0),te(this,"_keyframe",!0),this.name=t,this.style=n}return Xr(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 Bqe(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 Xv(e){return e.notSplit=!0,e}var Hqe={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:Xv(["borderTop","borderBottom"]),borderBlockStart:Xv(["borderTop"]),borderBlockEnd:Xv(["borderBottom"]),borderInline:Xv(["borderLeft","borderRight"]),borderInlineStart:Xv(["borderLeft"]),borderInlineEnd:Xv(["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 uR(e,t){var n=e;return t&&(n="".concat(n," !important")),{_skip_check_:!0,value:n}}var jqe={visit:function(t){var n={};return Object.keys(t).forEach(function(r){var i=t[r],o=Hqe[r];if(o&&(typeof i=="number"||typeof i=="string")){var a=Bqe(i),s=Re(a,2),l=s[0],c=s[1];o.length&&o.notSplit?o.forEach(function(u){n[u]=uR(i,c)}):o.length===1?n[o[0]]=uR(l[0],c):o.length===2?o.forEach(function(u,d){var f;n[u]=uR((f=l[d])!==null&&f!==void 0?f:l[0],c)}):o.length===4?o.forEach(function(u,d){var f,p;n[u]=uR((f=(p=l[d])!==null&&p!==void 0?p:l[d-2])!==null&&f!==void 0?f:l[0],c)}):n[r]=i}else n[r]=i}),n}},D6=/url\([^)]+\)|var\([^)]+\)|(\d*\.?\d+)px/g;function Uqe(e,t){var n=Math.pow(10,t+1),r=Math.floor(e*n);return Math.round(r/10)*10/n}var zqe=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 p=parseFloat(f);if(p<=1)return d;var m=Uqe(p/r,o);return"".concat(m,"rem")},c=function(d){var f=z({},d);return Object.entries(d).forEach(function(p){var m=Re(p,2),g=m[0],v=m[1];if(typeof v=="string"&&v.includes("px")){var y=v.replace(D6,l);f[g]=y}!Gye[g]&&typeof v=="number"&&v!==0&&(f[g]="".concat(v,"px").replace(D6,l));var b=g.trim();if(b.startsWith("@")&&b.includes("px")&&s){var _=g.replace(D6,l);f[_]=f[g],delete f[g]}}),f};return{visit:c}},Vqe={supportModernCSS:function(){return BWe()&&HWe()}};const Gqe=Object.freeze(Object.defineProperty({__proto__:null,Keyframes:fr,NaNLinter:xqe,StyleContext:fg,StyleProvider:NWe,Theme:mq,_experimental:Vqe,createCache:pq,createTheme:a_,extractStyle:Fqe,genCalc:DWe,getComputedToken:vq,legacyLogicalPropertiesTransformer:jqe,legacyNotSelectorLinter:Eqe,logicalPropertiesLinter:Cqe,parentSelectorLinter:wqe,px2remTransformer:zqe,token2CSSVar:ox,unit:Ie,useCSSVarRegister:i_e,useCacheToken:bq,useStyleRegister:u_},Symbol.toStringTag,{value:"Module"}));var fP=h.createContext({});function o_e(e){return Pye(e)||Iye(e)||lP(e)||Dye()}function No(e,t){for(var n=e,r=0;r<t.length;r+=1){if(n==null)return;n=n[t[r]]}return n}function a_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=rt(e):s=z({},e),r&&n===void 0&&a.length===1?delete s[o][a[0]]:s[o]=a_e(s[o],a,n,r),s}function ta(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return t.length&&r&&n===void 0&&!No(e,t.slice(0,-1))?e:a_e(e,t,n,r)}function Wqe(e){return qt(e)==="object"&&e!==null&&Object.getPrototypeOf(e)===Object.prototype}function Cne(e){return Array.isArray(e)?[]:{}}var qqe=typeof Reflect>"u"?Object.keys:Reflect.ownKeys;function D0(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=Cne(t[0]);return t.forEach(function(i){function o(a,s){var l=new Set(s),c=No(i,a),u=Array.isArray(c);if(u||Wqe(c)){if(!l.has(c)){l.add(c);var d=No(r,a);u?r=ta(r,a,[]):(!d||qt(d)!=="object")&&(r=ta(r,a,Cne(c))),qqe(c).forEach(function(f){o([].concat(rt(a),[f]),l)})}}else r=ta(r,a,c)}o([])}),r}function Yqe(){}const Kqe=h.createContext({}),Wf=()=>{const e=()=>{};return e.deprecated=Yqe,e},s_e=h.createContext(void 0);var l_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"},c_e={yearFormat:"YYYY",dayFormat:"D",cellMeridiemFormat:"A",monthBeforeYear:!0},Qqe=z(z({},c_e),{},{locale:"en_US",today:"Today",now:"Now",backToToday:"Back to today",ok:"OK",clear:"Clear",week:"Week",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 u_e={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},u4={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"]},Qqe),timePickerLocale:Object.assign({},u_e)},Ql="${label} is not a valid ${type}",gu={locale:"en",Pagination:l_e,DatePicker:u4,TimePicker:u_e,Calendar:u4,global:{placeholder:"Please select",close:"Close"},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:Ql,method:Ql,array:Ql,object:Ql,number:Ql,date:Ql,boolean:Ql,integer:Ql,float:Ql,regexp:Ql,email:Ql,url:Ql,hex:Ql},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 CI=Object.assign({},gu.Modal),xI=[];const xne=()=>xI.reduce((e,t)=>Object.assign(Object.assign({},e),t),gu.Modal);function Xqe(e){if(e){const t=Object.assign({},e);return xI.push(t),CI=xne(),()=>{xI=xI.filter(n=>n!==t),CI=xne()}}CI=Object.assign({},gu.Modal)}function d_e(){return CI}const Sq=h.createContext(void 0),Ma=(e,t)=>{const n=h.useContext(Sq),r=h.useMemo(()=>{var o;const a=t||gu[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=h.useMemo(()=>{const o=n==null?void 0:n.locale;return n!=null&&n.exist&&!o?gu.locale:o},[n]);return[r,i]},Zqe="internalMark",Jqe=e=>{const{locale:t={},children:n,_ANT_MARK__:r}=e;h.useEffect(()=>Xqe(t==null?void 0:t.Modal),[t]);const i=h.useMemo(()=>Object.assign(Object.assign({},t),{exist:!0}),[t]);return h.createElement(Sq.Provider,{value:i},n)},Eq={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"},d_=Object.assign(Object.assign({},Eq),{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}),Pa=Math.round;function L6(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 wne=(e,t,n)=>n===0?e:e/100;function AE(e,t){const n=t||255;return e>n?n:e<0?0:e}class or{constructor(t){te(this,"isValid",!0),te(this,"r",0),te(this,"g",0),te(this,"b",0),te(this,"a",1),te(this,"_h",void 0),te(this,"_s",void 0),te(this,"_l",void 0),te(this,"_v",void 0),te(this,"_max",void 0),te(this,"_min",void 0),te(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 or)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=AE(t.r),this.g=AE(t.g),this.b=AE(t.b),this.a=typeof t.a=="number"?AE(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=Pa(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:Pa(o("r")),g:Pa(o("g")),b:Pa(o("b")),a:Pa(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=>Pa((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=Pa(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=Pa(this.getSaturation()*100),r=Pa(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]=AE(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=Pa(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=Pa((o+d)*255),this.g=Pa((a+d)*255),this.b=Pa((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=Pa(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=Pa(r*(1-n)*255),u=Pa(r*(1-n*l)*255),d=Pa(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=L6(t,wne);this.fromHsv({h:n[0],s:n[1],v:n[2],a:n[3]})}fromHslString(t){const n=L6(t,wne);this.fromHsl({h:n[0],s:n[1],l:n[2],a:n[3]})}fromRgbString(t){const n=L6(t,(r,i)=>i.includes("%")?Pa(r/100*255):r);this.r=n[0],this.g=n[1],this.b=n[2],this.a=n[3]}}const eYe=Object.freeze(Object.defineProperty({__proto__:null,FastColor:or},Symbol.toStringTag,{value:"Module"}));var dR=2,Tne=.16,tYe=.05,nYe=.05,rYe=.15,f_e=5,p_e=4,iYe=[{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 One(e,t,n){var r;return Math.round(e.h)>=60&&Math.round(e.h)<=240?r=n?Math.round(e.h)-dR*t:Math.round(e.h)+dR*t:r=n?Math.round(e.h)+dR*t:Math.round(e.h)-dR*t,r<0?r+=360:r>=360&&(r-=360),r}function Rne(e,t,n){if(e.h===0&&e.s===0)return e.s;var r;return n?r=e.s-Tne*t:t===p_e?r=e.s+Tne:r=e.s+tYe*t,r>1&&(r=1),n&&t===f_e&&r>.1&&(r=.1),r<.06&&(r=.06),Math.round(r*100)/100}function Ane(e,t,n){var r;return n?r=e.v+nYe*t:r=e.v-rYe*t,r=Math.max(0,Math.min(1,r)),Math.round(r*100)/100}function pg(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[],r=new or(e),i=r.toHsv(),o=f_e;o>0;o-=1){var a=new or({h:One(i,o,!0),s:Rne(i,o,!0),v:Ane(i,o,!0)});n.push(a)}n.push(r);for(var s=1;s<=p_e;s+=1){var l=new or({h:One(i,s),s:Rne(i,s),v:Ane(i,s)});n.push(l)}return t.theme==="dark"?iYe.map(function(c){var u=c.index,d=c.amount;return new or(t.backgroundColor||"#141414").mix(n[u],d).toHexString()}):n.map(function(c){return c.toHexString()})}var l1={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"},d4=["#fff1f0","#ffccc7","#ffa39e","#ff7875","#ff4d4f","#f5222d","#cf1322","#a8071a","#820014","#5c0011"];d4.primary=d4[5];var f4=["#fff2e8","#ffd8bf","#ffbb96","#ff9c6e","#ff7a45","#fa541c","#d4380d","#ad2102","#871400","#610b00"];f4.primary=f4[5];var p4=["#fff7e6","#ffe7ba","#ffd591","#ffc069","#ffa940","#fa8c16","#d46b08","#ad4e00","#873800","#612500"];p4.primary=p4[5];var Iw=["#fffbe6","#fff1b8","#ffe58f","#ffd666","#ffc53d","#faad14","#d48806","#ad6800","#874d00","#613400"];Iw.primary=Iw[5];var h4=["#feffe6","#ffffb8","#fffb8f","#fff566","#ffec3d","#fadb14","#d4b106","#ad8b00","#876800","#614700"];h4.primary=h4[5];var m4=["#fcffe6","#f4ffb8","#eaff8f","#d3f261","#bae637","#a0d911","#7cb305","#5b8c00","#3f6600","#254000"];m4.primary=m4[5];var g4=["#f6ffed","#d9f7be","#b7eb8f","#95de64","#73d13d","#52c41a","#389e0d","#237804","#135200","#092b00"];g4.primary=g4[5];var v4=["#e6fffb","#b5f5ec","#87e8de","#5cdbd3","#36cfc9","#13c2c2","#08979c","#006d75","#00474f","#002329"];v4.primary=v4[5];var $1=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];$1.primary=$1[5];var b4=["#f0f5ff","#d6e4ff","#adc6ff","#85a5ff","#597ef7","#2f54eb","#1d39c4","#10239e","#061178","#030852"];b4.primary=b4[5];var y4=["#f9f0ff","#efdbff","#d3adf7","#b37feb","#9254de","#722ed1","#531dab","#391085","#22075e","#120338"];y4.primary=y4[5];var _4=["#fff0f6","#ffd6e7","#ffadd2","#ff85c0","#f759ab","#eb2f96","#c41d7f","#9e1068","#780650","#520339"];_4.primary=_4[5];var Nw=["#a6a6a6","#999999","#8c8c8c","#808080","#737373","#666666","#404040","#1a1a1a","#000000","#000000"];Nw.primary=Nw[5];var oYe=Nw,wI={red:d4,volcano:f4,orange:p4,gold:Iw,yellow:h4,lime:m4,green:g4,cyan:v4,blue:$1,geekblue:b4,purple:y4,magenta:_4,grey:Nw},S4=["#2a1215","#431418","#58181c","#791a1f","#a61d24","#d32029","#e84749","#f37370","#f89f9a","#fac8c3"];S4.primary=S4[5];var E4=["#2b1611","#441d12","#592716","#7c3118","#aa3e19","#d84a1b","#e87040","#f3956a","#f8b692","#fad4bc"];E4.primary=E4[5];var C4=["#2b1d11","#442a11","#593815","#7c4a15","#aa6215","#d87a16","#e89a3c","#f3b765","#f8cf8d","#fae3b7"];C4.primary=C4[5];var x4=["#2b2111","#443111","#594214","#7c5914","#aa7714","#d89614","#e8b339","#f3cc62","#f8df8b","#faedb5"];x4.primary=x4[5];var w4=["#2b2611","#443b11","#595014","#7c6e14","#aa9514","#d8bd14","#e8d639","#f3ea62","#f8f48b","#fafab5"];w4.primary=w4[5];var T4=["#1f2611","#2e3c10","#3e4f13","#536d13","#6f9412","#8bbb11","#a9d134","#c9e75d","#e4f88b","#f0fab5"];T4.primary=T4[5];var O4=["#162312","#1d3712","#274916","#306317","#3c8618","#49aa19","#6abe39","#8fd460","#b2e58b","#d5f2bb"];O4.primary=O4[5];var R4=["#112123","#113536","#144848","#146262","#138585","#13a8a8","#33bcb7","#58d1c9","#84e2d8","#b2f1e8"];R4.primary=R4[5];var A4=["#111a2c","#112545","#15325b","#15417e","#1554ad","#1668dc","#3c89e8","#65a9f3","#8dc5f8","#b7dcfa"];A4.primary=A4[5];var I4=["#131629","#161d40","#1c2755","#203175","#263ea0","#2b4acb","#5273e0","#7f9ef3","#a8c1f8","#d2e0fa"];I4.primary=I4[5];var N4=["#1a1325","#24163a","#301c4d","#3e2069","#51258f","#642ab5","#854eca","#ab7ae0","#cda8f0","#ebd7fa"];N4.primary=N4[5];var M4=["#291321","#40162f","#551c3b","#75204f","#a02669","#cb2b83","#e0529c","#f37fb7","#f8a8cc","#fad2e3"];M4.primary=M4[5];var k4=["#151515","#1f1f1f","#2d2d2d","#393939","#494949","#5a5a5a","#6a6a6a","#7b7b7b","#888888","#969696"];k4.primary=k4[5];var aYe={red:S4,volcano:E4,orange:C4,gold:x4,yellow:w4,lime:T4,green:O4,cyan:R4,blue:A4,geekblue:I4,purple:N4,magenta:M4,grey:k4};const sYe=Object.freeze(Object.defineProperty({__proto__:null,blue:$1,blueDark:A4,cyan:v4,cyanDark:R4,geekblue:b4,geekblueDark:I4,generate:pg,gold:Iw,goldDark:x4,gray:oYe,green:g4,greenDark:O4,grey:Nw,greyDark:k4,lime:m4,limeDark:T4,magenta:_4,magentaDark:M4,orange:p4,orangeDark:C4,presetDarkPalettes:aYe,presetPalettes:wI,presetPrimaryColors:l1,purple:y4,purpleDark:N4,red:d4,redDark:S4,volcano:f4,volcanoDark:E4,yellow:h4,yellowDark:w4},Symbol.toStringTag,{value:"Module"}));function h_e(e,{generateColorPalettes:t,generateNeutralColorPalettes:n}){const{colorSuccess:r,colorWarning:i,colorError:o,colorInfo:a,colorPrimary:s,colorBgBase:l,colorTextBase:c}=e,u=t(s),d=t(r),f=t(i),p=t(o),m=t(a),g=n(l,c),v=e.colorLink||e.colorInfo,y=t(v),b=new or(p[1]).mix(new or(p[3]),50).toHexString();return Object.assign(Object.assign({},g),{colorPrimaryBg:u[1],colorPrimaryBgHover:u[2],colorPrimaryBorder:u[3],colorPrimaryBorderHover:u[4],colorPrimaryHover:u[5],colorPrimary:u[6],colorPrimaryActive:u[7],colorPrimaryTextHover:u[8],colorPrimaryText:u[9],colorPrimaryTextActive:u[10],colorSuccessBg:d[1],colorSuccessBgHover:d[2],colorSuccessBorder:d[3],colorSuccessBorderHover:d[4],colorSuccessHover:d[4],colorSuccess:d[6],colorSuccessActive:d[7],colorSuccessTextHover:d[8],colorSuccessText:d[9],colorSuccessTextActive:d[10],colorErrorBg:p[1],colorErrorBgHover:p[2],colorErrorBgFilledHover:b,colorErrorBgActive:p[3],colorErrorBorder:p[3],colorErrorBorderHover:p[4],colorErrorHover:p[5],colorError:p[6],colorErrorActive:p[7],colorErrorTextHover:p[8],colorErrorText:p[9],colorErrorTextActive:p[10],colorWarningBg:f[1],colorWarningBgHover:f[2],colorWarningBorder:f[3],colorWarningBorderHover:f[4],colorWarningHover:f[4],colorWarning:f[6],colorWarningActive:f[7],colorWarningTextHover:f[8],colorWarningText:f[9],colorWarningTextActive:f[10],colorInfoBg:m[1],colorInfoBgHover:m[2],colorInfoBorder:m[3],colorInfoBorderHover:m[4],colorInfoHover:m[4],colorInfo:m[6],colorInfoActive:m[7],colorInfoTextHover:m[8],colorInfoText:m[9],colorInfoTextActive:m[10],colorLinkHover:y[4],colorLink:y[6],colorLinkActive:y[7],colorBgMask:new or("#000").setA(.45).toRgbString(),colorWhite:"#fff"})}const lYe=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 cYe(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},lYe(r))}const m_e=e=>{const{controlHeight:t}=e;return{controlHeightSM:t*.75,controlHeightXS:t*.5,controlHeightLG:t*1.25}};function TI(e){return(e+8)/e}function uYe(e){const t=Array.from({length:10}).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:TI(n)}))}const g_e=e=>{const t=uYe(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 dYe(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 Lc=(e,t)=>new or(e).setA(t).toRgbString(),IE=(e,t)=>new or(e).darken(t).toHexString(),fYe=e=>{const t=pg(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]}},pYe=(e,t)=>{const n=e||"#fff",r=t||"#000";return{colorBgBase:n,colorTextBase:r,colorText:Lc(r,.88),colorTextSecondary:Lc(r,.65),colorTextTertiary:Lc(r,.45),colorTextQuaternary:Lc(r,.25),colorFill:Lc(r,.15),colorFillSecondary:Lc(r,.06),colorFillTertiary:Lc(r,.04),colorFillQuaternary:Lc(r,.02),colorBgSolid:Lc(r,1),colorBgSolidHover:Lc(r,.75),colorBgSolidActive:Lc(r,.95),colorBgLayout:IE(n,4),colorBgContainer:IE(n,0),colorBgElevated:IE(n,0),colorBgSpotlight:Lc(r,.85),colorBgBlur:"transparent",colorBorder:IE(n,15),colorBorderSecondary:IE(n,6)}};function pP(e){l1.pink=l1.magenta,wI.pink=wI.magenta;const t=Object.keys(Eq).map(n=>{const r=e[n]===l1[n]?wI[n]:pg(e[n]);return Array.from({length:10},()=>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),h_e(e,{generateColorPalettes:fYe,generateNeutralColorPalettes:pYe})),g_e(e.fontSize)),dYe(e)),m_e(e)),cYe(e))}const Cq=a_(pP),Mw={token:d_,override:{override:d_},hashed:!0},xq=pe.createContext(Mw),kw="ant",hP="anticon",hYe=["outlined","borderless","filled","underlined"],mYe=(e,t)=>t||(e?`${kw}-${e}`:kw),cn=h.createContext({getPrefixCls:mYe,iconPrefixCls:hP}),{Consumer:pkn}=cn,Ine={};function Vi(e){const t=h.useContext(cn),{getPrefixCls:n,direction:r,getPopupContainer:i}=t,o=t[e];return Object.assign(Object.assign({classNames:Ine,styles:Ine},o),{getPrefixCls:n,direction:r,getPopupContainer:i})}const gYe=`-ant-${Date.now()}-${Math.random()}`;function vYe(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 or(a),c=pg(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 or(t.primaryColor),s=pg(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 or(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 bYe(e,t){const n=vYe(e,t);Aa()&&If(n,`${gYe}-dynamic-theme`)}const Yo=h.createContext(!1),wq=({children:e,disabled:t})=>{const n=h.useContext(Yo);return h.createElement(Yo.Provider,{value:t??n},e)},F1=h.createContext(void 0),yYe=({children:e,size:t})=>{const n=h.useContext(F1);return h.createElement(F1.Provider,{value:t||n},e)};function _Ye(){const e=h.useContext(Yo),t=h.useContext(F1);return{componentDisabled:e,componentSize:t}}var v_e=Xr(function e(){Qr(this,e)}),b_e="CALC_UNIT",SYe=new RegExp(b_e,"g");function $6(e){return typeof e=="number"?"".concat(e).concat(b_e):e}var EYe=function(e){Fs(n,e);var t=ll(n);function n(r,i){var o;Qr(this,n),o=t.call(this),te(sn(o),"result",""),te(sn(o),"unitlessCssVar",void 0),te(sn(o),"lowPriority",void 0);var a=qt(r);return o.unitlessCssVar=i,r instanceof n?o.result="(".concat(r.result,")"):a==="number"?o.result=$6(r):a==="string"&&(o.result=r),o}return Xr(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($6(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($6(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(SYe,l?"px":""),typeof this.lowPriority<"u"?"calc(".concat(this.result,")"):this.result}}]),n}(v_e),CYe=function(e){Fs(n,e);var t=ll(n);function n(r){var i;return Qr(this,n),i=t.call(this),te(sn(i),"result",0),r instanceof n?i.result=r.result:typeof r=="number"&&(i.result=r),i}return Xr(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}(v_e),y_e=function(t,n){var r=t==="css"?EYe:CYe;return function(i){return new r(i,n)}},Nne=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 qn(e){var t=h.useRef();t.current=e;var n=h.useCallback(function(){for(var r,i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return(r=t.current)===null||r===void 0?void 0:r.call.apply(r,[t].concat(o))},[]);return n}function B1(e){var t=h.useRef(!1),n=h.useState(e),r=Re(n,2),i=r[0],o=r[1];h.useEffect(function(){return t.current=!1,function(){t.current=!0}},[]);function a(s,l){l&&t.current||o(s)}return[i,a]}function F6(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=B1(function(){return F6(i)?i:F6(r)?typeof r=="function"?r():r:typeof e=="function"?e():e}),l=Re(s,2),c=l[0],u=l[1],d=i!==void 0?i:c,f=a?a(d):d,p=qn(o),m=B1([d]),g=Re(m,2),v=g[0],y=g[1];a1(function(){var _=v[0];c!==_&&p(c,_)},[v]),a1(function(){F6(i)||u(i)},[i]);var b=qn(function(_,S){u(_,S),y([d],S)});return[f,b]}function Mne(e,t,n,r){var i=z({},t[e]);if(r!=null&&r.deprecatedTokens){var o=r.deprecatedTokens;o.forEach(function(s){var l=Re(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=z(z({},n),i);return Object.keys(a).forEach(function(s){a[s]===t[s]&&delete a[s]}),a}var __e=typeof CSSINJS_STATISTIC<"u",cH=!0;function Un(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(!__e)return Object.assign.apply(Object,[{}].concat(t));cH=!1;var r={};return t.forEach(function(i){if(qt(i)==="object"){var o=Object.keys(i);o.forEach(function(a){Object.defineProperty(r,a,{configurable:!0,enumerable:!0,get:function(){return i[a]}})})}}),cH=!0,r}var uH={};function xYe(){}var S_e=function(t){var n,r=t,i=xYe;return __e&&typeof Proxy<"u"&&(n=new Set,r=new Proxy(t,{get:function(a,s){if(cH){var l;(l=n)===null||l===void 0||l.add(s)}return a[s]}}),i=function(a,s){var l;uH[a]={global:Array.from(n),component:z(z({},(l=uH[a])===null||l===void 0?void 0:l.component),s)}}),{token:r,keys:n,flush:i}};function kne(e,t,n){if(typeof n=="function"){var r;return n(Un(t,(r=t[e])!==null&&r!==void 0?r:{}))}return n??{}}function wYe(e){return e==="js"?{max:Math.max,min:Math.min}:{max:function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return"max(".concat(r.map(function(o){return Ie(o)}).join(","),")")},min:function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return"min(".concat(r.map(function(o){return Ie(o)}).join(","),")")}}}var TYe=1e3*60*10,OYe=function(){function e(){Qr(this,e),te(this,"map",new Map),te(this,"objectIDMap",new WeakMap),te(this,"nextID",0),te(this,"lastAccessBeat",new Map),te(this,"accessBeat",0)}return Xr(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&&qt(o)==="object"?"obj_".concat(r.getObjectID(o)):"".concat(qt(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>TYe&&(n.map.delete(o),n.lastAccessBeat.delete(o))}),this.accessBeat=0}}}]),e}(),Pne=new OYe;function RYe(e,t){return pe.useMemo(function(){var n=Pne.get(t);if(n)return n;var r=e();return Pne.set(t,r),r},t)}var AYe=function(){return{}};function E_e(e){var t=e.useCSP,n=t===void 0?AYe:t,r=e.useToken,i=e.usePrefix,o=e.getResetStyles,a=e.getCommonStyle,s=e.getCompUnitless;function l(f,p,m,g){var v=Array.isArray(f)?f[0]:f;function y(w){return"".concat(String(v)).concat(w.slice(0,1).toUpperCase()).concat(w.slice(1))}var b=(g==null?void 0:g.unitless)||{},_=typeof s=="function"?s(f):{},S=z(z({},_),{},te({},y("zIndexPopup"),!0));Object.keys(b).forEach(function(w){S[y(w)]=b[w]});var x=z(z({},g),{},{unitless:S,prefixToken:y}),E=u(f,p,m,x),C=c(v,m,x);return function(w){var O=arguments.length>1&&arguments[1]!==void 0?arguments[1]:w,T=E(w,O),A=Re(T,2),I=A[1],N=C(O),D=Re(N,2),M=D[0],k=D[1];return[M,I,k]}}function c(f,p,m){var g=m.unitless,v=m.injectStyle,y=v===void 0?!0:v,b=m.prefixToken,_=m.ignore,S=function(C){var w=C.rootCls,O=C.cssVar,T=O===void 0?{}:O,A=r(),I=A.realToken;return i_e({path:[f],prefix:T.prefix,key:T.key,unitless:g,ignore:_,token:I,scope:w},function(){var N=kne(f,I,p),D=Mne(f,I,N,{deprecatedTokens:m==null?void 0:m.deprecatedTokens});return Object.keys(N).forEach(function(M){D[b(M)]=D[M],delete D[M]}),D}),null},x=function(C){var w=r(),O=w.cssVar;return[function(T){return y&&O?pe.createElement(pe.Fragment,null,pe.createElement(S,{rootCls:C,cssVar:O,component:f}),T):T},O==null?void 0:O.key]};return x}function u(f,p,m){var g=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},v=Array.isArray(f)?f:[f,f],y=Re(v,1),b=y[0],_=v.join("-"),S=e.layer||{name:"antd"};return function(x){var E=arguments.length>1&&arguments[1]!==void 0?arguments[1]:x,C=r(),w=C.theme,O=C.realToken,T=C.hashId,A=C.token,I=C.cssVar,N=i(),D=N.rootPrefixCls,M=N.iconPrefixCls,k=n(),P=I?"css":"js",B=RYe(function(){var X=new Set;return I&&Object.keys(g.unitless||{}).forEach(function(Q){X.add(ox(Q,I.prefix)),X.add(ox(Q,Nne(b,I.prefix)))}),y_e(P,X)},[P,b,I==null?void 0:I.prefix]),G=wYe(P),L=G.max,W=G.min,j={theme:w,token:A,hashId:T,nonce:function(){return k.nonce},clientOnly:g.clientOnly,layer:S,order:g.order||-999};typeof o=="function"&&u_(z(z({},j),{},{clientOnly:!1,path:["Shared",D]}),function(){return o(A,{prefix:{rootPrefixCls:D,iconPrefixCls:M},csp:k})});var H=u_(z(z({},j),{},{path:[_,x,M]}),function(){if(g.injectStyle===!1)return[];var X=S_e(A),Q=X.token,ue=X.flush,ee=kne(b,O,m),K=".".concat(x),se=Mne(b,O,ee,{deprecatedTokens:g.deprecatedTokens});I&&ee&&qt(ee)==="object"&&Object.keys(ee).forEach(function(he){ee[he]="var(".concat(ox(he,Nne(b,I.prefix)),")")});var le=Un(Q,{componentCls:K,prefixCls:x,iconCls:".".concat(M),antCls:".".concat(D),calc:B,max:L,min:W},I?ee:se),oe=p(le,{hashId:T,prefixCls:x,rootPrefixCls:D,iconPrefixCls:M});ue(b,se);var ne=typeof a=="function"?a(le,x,E,g.resetFont):null;return[g.resetStyle===!1?null:ne,oe]});return[H,T]}}function d(f,p,m){var g=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},v=u(f,p,m,z({resetStyle:!1,order:-998},g)),y=function(_){var S=_.prefixCls,x=_.rootCls,E=x===void 0?S:x;return v(S,E),null};return y}return{genStyleHooks:l,genSubStyleComponent:d,genComponentStyleHook:u}}const IYe=Object.freeze(Object.defineProperty({__proto__:null,genCalc:y_e,genStyleUtils:E_e,mergeToken:Un,statistic:uH,statisticToken:S_e},Symbol.toStringTag,{value:"Module"})),hg=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"],oh="5.26.2";function B6(e){return e>=0&&e<=255}function EC(e,t){const{r:n,g:r,b:i,a:o}=new or(e).toRgb();if(o<1)return e;const{r:a,g:s,b:l}=new or(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(B6(u)&&B6(d)&&B6(f))return new or({r:u,g:d,b:f,a:Math.round(c*100)/100}).toRgbString()}return new or({r:n,g:r,b:i,a:1}).toRgbString()}var NYe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);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 Tq(e){const{override:t}=e,n=NYe(e,["override"]),r=Object.assign({},t);Object.keys(d_).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:EC(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:EC(i.colorErrorBg,i.colorBgContainer),colorWarningOutline:EC(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:EC(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 or("rgba(0, 0, 0, 0.16)").toRgbString()},
0 3px 6px 0 ${new or("rgba(0, 0, 0, 0.12)").toRgbString()},
0 5px 12px 4px ${new or("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 Dne=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);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 C_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},MYe={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},kYe={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},x_e=(e,t,n)=>{const r=n.getDerivativeToken(e),{override:i}=t,o=Dne(t,["override"]);let a=Object.assign(Object.assign({},r),{override:i});return a=Tq(a),o&&Object.entries(o).forEach(([s,l])=>{const{theme:c}=l,u=Dne(l,["theme"]);let d=u;c&&(d=x_e(Object.assign(Object.assign({},a),u),{override:u},c)),a[s]=d}),a};function Ko(){const{token:e,hashed:t,theme:n,override:r,cssVar:i}=pe.useContext(xq),o=`${oh}-${t||""}`,a=n||Cq,[s,l,c]=bq(a,[d_,e],{salt:o,override:r,getComputedToken:x_e,formatToken:Tq,cssVar:i&&{prefix:i.prefix,key:i.key,unitless:C_e,ignore:MYe,preserve:kYe}});return[a,c,t?l:"",s,i]}const Hl={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},mr=(e,t=!1)=>({boxSizing:"border-box",margin:0,padding:0,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,listStyle:"none",fontFamily:t?"inherit":e.fontFamily}),gv=()=>({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"}}),xd=()=>({"&::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"}}}),DYe=(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})}},wd=(e,t)=>({outline:`${Ie(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`,outlineOffset:t??1,transition:"outline-offset 0s, outline 0s"}),tl=(e,t)=>({"&:focus-visible":Object.assign({},wd(e,t))}),w_e=e=>({[`.${e}`]:Object.assign(Object.assign({},gv()),{[`.${e} .${e}-icon`]:{display:"block"}})}),Oq=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"},tl(e)),{"&:focus, &:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive}}),{genStyleHooks:ir,genComponentStyleHook:T_e,genSubStyleComponent:uS}=E_e({usePrefix:()=>{const{getPrefixCls:e,iconPrefixCls:t}=h.useContext(cn);return{rootPrefixCls:e(),iconPrefixCls:t}},useToken:()=>{const[e,t,n,r,i]=Ko();return{theme:e,realToken:t,hashId:n,token:r,cssVar:i}},useCSP:()=>{const{csp:e}=h.useContext(cn);return e??{}},getResetStyles:(e,t)=>{var n;const r=PYe(e);return[r,{"&":r},w_e((n=t==null?void 0:t.prefix.iconPrefixCls)!==null&&n!==void 0?n:hP)]},getCommonStyle:DYe,getCompUnitless:()=>C_e});function mP(e,t){return hg.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 LYe=(e,t)=>{const[n,r]=Ko();return u_({token:r,hashId:"",path:["ant-design-icons",e],nonce:()=>t==null?void 0:t.nonce,layer:{name:"antd"}},()=>[w_e(e)])},$Ye=Object.assign({},DT),{useId:Lne}=$Ye,FYe=()=>"",BYe=typeof Lne>"u"?FYe:Lne;function HYe(e,t,n){var r;Wf();const i=e||{},o=i.inherit===!1||!t?Object.assign(Object.assign({},Mw),{hashed:(r=t==null?void 0:t.hashed)!==null&&r!==void 0?r:Mw.hashed,cssVar:t==null?void 0:t.cssVar}):t,a=BYe();return Df(()=>{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!Bl(c,d,!0)}))}var jYe=["children"],O_e=h.createContext({});function R_e(e){var t=e.children,n=kt(e,jYe);return h.createElement(O_e.Provider,{value:n},t)}var UYe=function(e){Fs(n,e);var t=ll(n);function n(){return Qr(this,n),t.apply(this,arguments)}return Xr(n,[{key:"render",value:function(){return this.props.children}}]),n}(h.Component);function zYe(e){var t=h.useReducer(function(s){return s+1},0),n=Re(t,2),r=n[1],i=h.useRef(e),o=qn(function(){return i.current}),a=qn(function(s){i.current=typeof s=="function"?s(i.current):s,r()});return[o,a]}var Vh="none",fR="appear",pR="enter",hR="leave",$ne="none",Qu="prepare",ey="start",ty="active",Rq="end",A_e="prepared";function Fne(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 VYe(e,t){var n={animationend:Fne("Animation","AnimationEnd"),transitionend:Fne("Transition","TransitionEnd")};return e&&("AnimationEvent"in t||delete n.animationend.animation,"TransitionEvent"in t||delete n.transitionend.transition),n}var GYe=VYe(Aa(),typeof window<"u"?window:{}),I_e={};if(Aa()){var WYe=document.createElement("div");I_e=WYe.style}var mR={};function N_e(e){if(mR[e])return mR[e];var t=GYe[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 I_e)return mR[e]=t[o],mR[e]}return""}var M_e=N_e("animationend"),k_e=N_e("transitionend"),P_e=!!(M_e&&k_e),Bne=M_e||"animationend",Hne=k_e||"transitionend";function jne(e,t){if(!e)return null;if(qt(e)==="object"){var n=t.replace(/-\w/g,function(r){return r[1].toUpperCase()});return e[n]}return"".concat(e,"-").concat(t)}const qYe=function(e){var t=h.useRef();function n(i){i&&(i.removeEventListener(Hne,e),i.removeEventListener(Bne,e))}function r(i){t.current&&t.current!==i&&n(t.current),i&&i!==t.current&&(i.addEventListener(Hne,e),i.addEventListener(Bne,e),t.current=i)}return h.useEffect(function(){return function(){n(t.current)}},[]),[r,n]};var D_e=Aa()?h.useLayoutEffect:h.useEffect;const YYe=function(){var e=h.useRef(null);function t(){tr.cancel(e.current)}function n(r){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;t();var o=tr(function(){i<=1?r({isCanceled:function(){return o!==e.current}}):n(r,i-1)});e.current=o}return h.useEffect(function(){return function(){t()}},[]),[n,t]};var KYe=[Qu,ey,ty,Rq],QYe=[Qu,A_e],L_e=!1,XYe=!0;function $_e(e){return e===ty||e===Rq}const ZYe=function(e,t,n){var r=B1($ne),i=Re(r,2),o=i[0],a=i[1],s=YYe(),l=Re(s,2),c=l[0],u=l[1];function d(){a(Qu,!0)}var f=t?QYe:KYe;return D_e(function(){if(o!==$ne&&o!==Rq){var p=f.indexOf(o),m=f[p+1],g=n(o);g===L_e?a(m,!0):m&&c(function(v){function y(){v.isCanceled()||a(m,!0)}g===!0?y():Promise.resolve(g).then(y)})}},[e,o]),h.useEffect(function(){return function(){u()}},[]),[d,o]};function JYe(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,p=r.onEnterPrepare,m=r.onLeavePrepare,g=r.onAppearStart,v=r.onEnterStart,y=r.onLeaveStart,b=r.onAppearActive,_=r.onEnterActive,S=r.onLeaveActive,x=r.onAppearEnd,E=r.onEnterEnd,C=r.onLeaveEnd,w=r.onVisibleChanged,O=B1(),T=Re(O,2),A=T[0],I=T[1],N=zYe(Vh),D=Re(N,2),M=D[0],k=D[1],P=B1(null),B=Re(P,2),G=B[0],L=B[1],W=M(),j=h.useRef(!1),H=h.useRef(null);function X(){return n()}var Q=h.useRef(!1);function ue(){k(Vh),L(null,!0)}var ee=qn(function(de){var Ee=M();if(Ee!==Vh){var Ne=X();if(!(de&&!de.deadline&&de.target!==Ne)){var Te=Q.current,Ve;Ee===fR&&Te?Ve=x==null?void 0:x(Ne,de):Ee===pR&&Te?Ve=E==null?void 0:E(Ne,de):Ee===hR&&Te&&(Ve=C==null?void 0:C(Ne,de)),Te&&Ve!==!1&&ue()}}}),K=qYe(ee),se=Re(K,1),le=se[0],oe=function(Ee){switch(Ee){case fR:return te(te(te({},Qu,f),ey,g),ty,b);case pR:return te(te(te({},Qu,p),ey,v),ty,_);case hR:return te(te(te({},Qu,m),ey,y),ty,S);default:return{}}},ne=h.useMemo(function(){return oe(W)},[W]),he=ZYe(W,!e,function(de){if(de===Qu){var Ee=ne[Qu];return Ee?Ee(X()):L_e}if(re in ne){var Ne;L(((Ne=ne[re])===null||Ne===void 0?void 0:Ne.call(ne,X(),null))||null)}return re===ty&&W!==Vh&&(le(X()),u>0&&(clearTimeout(H.current),H.current=setTimeout(function(){ee({deadline:!0})},u))),re===A_e&&ue(),XYe}),me=Re(he,2),ce=me[0],re=me[1],ve=$_e(re);Q.current=ve;var be=h.useRef(null);D_e(function(){if(!(j.current&&be.current===t)){I(t);var de=j.current;j.current=!0;var Ee;!de&&t&&s&&(Ee=fR),de&&t&&o&&(Ee=pR),(de&&!t&&c||!de&&d&&!t&&c)&&(Ee=hR);var Ne=oe(Ee);Ee&&(e||Ne[Qu])?(k(Ee),ce()):k(Vh),be.current=t}},[t]),h.useEffect(function(){(W===fR&&!s||W===pR&&!o||W===hR&&!c)&&k(Vh)},[s,o,c]),h.useEffect(function(){return function(){j.current=!1,clearTimeout(H.current)}},[]);var xe=h.useRef(!1);h.useEffect(function(){A&&(xe.current=!0),A!==void 0&&W===Vh&&((xe.current||A)&&(w==null||w(A)),xe.current=!0)},[A,W]);var we=G;return ne[Qu]&&re===ey&&(we=z({transition:"none"},we)),[W,re,we,A??t]}function eKe(e){var t=e;qt(e)==="object"&&(t=e.transitionSupport);function n(i,o){return!!(i.motionName&&t&&o!==!1)}var r=h.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,p=i.leavedClassName,m=i.eventProps,g=h.useContext(O_e),v=g.motion,y=n(i,v),b=h.useRef(),_=h.useRef();function S(){try{return b.current instanceof HTMLElement?b.current:bI(_.current)}catch{return null}}var x=JYe(y,s,S,i),E=Re(x,4),C=E[0],w=E[1],O=E[2],T=E[3],A=h.useRef(T);T&&(A.current=!0);var I=h.useCallback(function(B){b.current=B,ww(o,B)},[o]),N,D=z(z({},m),{},{visible:s});if(!d)N=null;else if(C===Vh)T?N=d(z({},D),I):!c&&A.current&&p?N=d(z(z({},D),{},{className:p}),I):u||!c&&!p?N=d(z(z({},D),{},{style:{display:"none"}}),I):N=null;else{var M;w===Qu?M="prepare":$_e(w)?M="active":w===ey&&(M="start");var k=jne(f,"".concat(C,"-").concat(M));N=d(z(z({},D),{},{className:Ce(jne(f,C),te(te({},k,k&&M),f,typeof f=="string")),style:O}),I)}if(h.isValidElement(N)&&Cd(N)){var P=Rg(N);P||(N=h.cloneElement(N,{ref:I}))}return h.createElement(UYe,{ref:_},N)});return r.displayName="CSSMotion",r}const ia=eKe(P_e);var dH="add",fH="keep",pH="remove",H6="removed";function tKe(e){var t;return e&&qt(e)==="object"&&"key"in e?t=e:t={key:e},z(z({},t),{},{key:String(t.key)})}function hH(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return e.map(tKe)}function nKe(){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=hH(e),a=hH(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(p){return z(z({},p),{},{status:dH})})),r=d),n.push(z(z({},f),{},{status:fH})),r+=1,u=!0;break}}u||n.push(z(z({},c),{},{status:pH}))}),r<i&&(n=n.concat(a.slice(r).map(function(c){return z(z({},c),{},{status:dH})})));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!==pH}),n.forEach(function(u){u.key===c&&(u.status=fH)})}),n}var rKe=["component","children","onVisibleChanged","onAllRemoved"],iKe=["status"],oKe=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function aKe(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ia,n=function(r){Fs(o,r);var i=ll(o);function o(){var a;Qr(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)),te(sn(a),"state",{keyEntities:[]}),te(sn(a),"removeKey",function(u){a.setState(function(d){var f=d.keyEntities.map(function(p){return p.key!==u?p:z(z({},p),{},{status:H6})});return{keyEntities:f}},function(){var d=a.state.keyEntities,f=d.filter(function(p){var m=p.status;return m!==H6}).length;f===0&&a.props.onAllRemoved&&a.props.onAllRemoved()})}),a}return Xr(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 p=kt(c,rKe),m=u||h.Fragment,g={};return oKe.forEach(function(v){g[v]=p[v],delete p[v]}),delete p.keys,h.createElement(m,p,l.map(function(v,y){var b=v.status,_=kt(v,iKe),S=b===dH||b===fH;return h.createElement(t,Xe({},g,{key:_.key,visible:S,eventProps:_,onVisibleChanged:function(E){f==null||f(E,{key:_.key}),E||s.removeKey(_.key)}}),function(x,E){return d(z(z({},x),{},{index:y}),E)})}))}}],[{key:"getDerivedStateFromProps",value:function(s,l){var c=s.keys,u=l.keyEntities,d=hH(c),f=nKe(u,d);return{keyEntities:f.filter(function(p){var m=u.find(function(g){var v=g.key;return p.key===v});return!(m&&m.status===H6&&p.status===pH)})}}}]),o}(h.Component);return te(n,"defaultProps",{component:"div"}),n}const gP=aKe(P_e),sKe=Object.freeze(Object.defineProperty({__proto__:null,CSSMotionList:gP,Provider:R_e,default:ia},Symbol.toStringTag,{value:"Module"})),Une=h.createContext(!0);function lKe(e){const t=h.useContext(Une),{children:n}=e,[,r]=Ko(),{motion:i}=r,o=h.useRef(!1);return o.current||(o.current=t!==i),o.current?h.createElement(Une.Provider,{value:i},h.createElement(R_e,{motion:i},n)):n}const cKe=()=>null;var uKe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);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 dKe=["getTargetContainer","getPopupContainer","renderEmpty","input","pagination","form","select","button"];let P4,F_e,B_e,H_e;function OI(){return P4||kw}function fKe(){return F_e||hP}function pKe(e){return Object.keys(e).some(t=>t.endsWith("Color"))}const hKe=e=>{const{prefixCls:t,iconPrefixCls:n,theme:r,holderRender:i}=e;t!==void 0&&(P4=t),n!==void 0&&(F_e=n),"holderRender"in e&&(H_e=i),r&&(pKe(r)?bYe(OI(),r):B_e=r)},j_e=()=>({getPrefixCls:(e,t)=>t||(e?`${OI()}-${e}`:OI()),getIconPrefixCls:fKe,getRootPrefixCls:()=>P4||OI(),getTheme:()=>B_e,holderRender:H_e}),mKe=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:p,popupMatchSelectWidth:m,popupOverflow:g,legacyLocale:v,parentContext:y,iconPrefixCls:b,theme:_,componentDisabled:S,segmented:x,statistic:E,spin:C,calendar:w,carousel:O,cascader:T,collapse:A,typography:I,checkbox:N,descriptions:D,divider:M,drawer:k,skeleton:P,steps:B,image:G,layout:L,list:W,mentions:j,modal:H,progress:X,result:Q,slider:ue,breadcrumb:ee,menu:K,pagination:se,input:le,textArea:oe,empty:ne,badge:he,radio:me,rate:ce,switch:re,transfer:ve,avatar:be,message:xe,tag:we,table:de,card:Ee,tabs:Ne,timeline:Te,timePicker:Ve,upload:q,notification:U,tree:Y,colorPicker:ae,datePicker:ye,rangePicker:fe,flex:Ae,wave:We,dropdown:ie,warning:Be,tour:Fe,tooltip:Pe,popover:Ke,popconfirm:tt,floatButtonGroup:Ge,variant:Nt,inputNumber:lt,treeSelect:st}=e,It=h.useCallback((Et,Dt)=>{const{prefixCls:St}=e;if(Dt)return Dt;const bt=St||y.getPrefixCls("");return Et?`${bt}-${Et}`:bt},[y.getPrefixCls,e.prefixCls]),ct=b||y.iconPrefixCls||hP,Pt=n||y.csp;LYe(ct,Pt);const Rt=HYe(_,y.theme,{prefixCls:It("")}),Tt={csp:Pt,autoInsertSpaceInButton:r,alert:i,anchor:o,locale:s||v,direction:c,space:u,splitter:d,virtual:f,popupMatchSelectWidth:m??p,popupOverflow:g,getPrefixCls:It,iconPrefixCls:ct,theme:Rt,segmented:x,statistic:E,spin:C,calendar:w,carousel:O,cascader:T,collapse:A,typography:I,checkbox:N,descriptions:D,divider:M,drawer:k,skeleton:P,steps:B,image:G,input:le,textArea:oe,layout:L,list:W,mentions:j,modal:H,progress:X,result:Q,slider:ue,breadcrumb:ee,menu:K,pagination:se,empty:ne,badge:he,radio:me,rate:ce,switch:re,transfer:ve,avatar:be,message:xe,tag:we,table:de,card:Ee,tabs:Ne,timeline:Te,timePicker:Ve,upload:q,notification:U,tree:Y,colorPicker:ae,datePicker:ye,rangePicker:fe,flex:Ae,wave:We,dropdown:ie,warning:Be,tour:Fe,tooltip:Pe,popover:Ke,popconfirm:tt,floatButtonGroup:Ge,variant:Nt,inputNumber:lt,treeSelect:st},Me=Object.assign({},y);Object.keys(Tt).forEach(Et=>{Tt[Et]!==void 0&&(Me[Et]=Tt[Et])}),dKe.forEach(Et=>{const Dt=e[Et];Dt&&(Me[Et]=Dt)}),typeof r<"u"&&(Me.button=Object.assign({autoInsertSpace:r},Me.button));const Ue=Df(()=>Me,Me,(Et,Dt)=>{const St=Object.keys(Et),bt=Object.keys(Dt);return St.length!==bt.length||St.some(xt=>Et[xt]!==Dt[xt])}),{layer:$e}=h.useContext(fg),Le=h.useMemo(()=>({prefixCls:ct,csp:Pt,layer:$e?"antd":void 0}),[ct,Pt,$e]);let He=h.createElement(h.Fragment,null,h.createElement(cKe,{dropdownMatchSelectWidth:p}),t);const it=h.useMemo(()=>{var Et,Dt,St,bt;return D0(((Et=gu.Form)===null||Et===void 0?void 0:Et.defaultValidateMessages)||{},((St=(Dt=Ue.locale)===null||Dt===void 0?void 0:Dt.Form)===null||St===void 0?void 0:St.defaultValidateMessages)||{},((bt=Ue.form)===null||bt===void 0?void 0:bt.validateMessages)||{},(a==null?void 0:a.validateMessages)||{})},[Ue,a==null?void 0:a.validateMessages]);Object.keys(it).length>0&&(He=h.createElement(s_e.Provider,{value:it},He)),s&&(He=h.createElement(Jqe,{locale:s,_ANT_MARK__:Zqe},He)),He=h.createElement(fP.Provider,{value:Le},He),l&&(He=h.createElement(yYe,{size:l},He)),He=h.createElement(lKe,null,He);const ft=h.useMemo(()=>{const Et=Rt||{},{algorithm:Dt,token:St,components:bt,cssVar:xt}=Et,ht=uKe(Et,["algorithm","token","components","cssVar"]),Vt=Dt&&(!Array.isArray(Dt)||Dt.length>0)?a_(Dt):Cq,at={};Object.entries(bt||{}).forEach(([Gt,$t])=>{const zt=Object.assign({},$t);"algorithm"in zt&&(zt.algorithm===!0?zt.theme=Vt:(Array.isArray(zt.algorithm)||typeof zt.algorithm=="function")&&(zt.theme=a_(zt.algorithm)),delete zt.algorithm),at[Gt]=zt});const wt=Object.assign(Object.assign({},d_),St);return Object.assign(Object.assign({},ht),{theme:Vt,token:wt,components:at,override:Object.assign({override:wt},at),cssVar:xt})},[Rt]);return _&&(He=h.createElement(xq.Provider,{value:ft},He)),Ue.warning&&(He=h.createElement(Kqe.Provider,{value:Ue.warning},He)),S!==void 0&&(He=h.createElement(wq,{disabled:S},He)),h.createElement(cn.Provider,{value:Ue},He)},Ln=e=>{const t=h.useContext(cn),n=h.useContext(Sq);return h.createElement(mKe,Object.assign({parentContext:t,legacyLocale:n},e))};Ln.ConfigContext=cn;Ln.SizeContext=F1;Ln.config=hKe;Ln.useConfig=_Ye;Object.defineProperty(Ln,"SizeContext",{get:()=>F1});var gKe={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 U_e(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}function vKe(e){return U_e(e)instanceof ShadowRoot}function D4(e){return vKe(e)?U_e(e):null}function bKe(e){return e.replace(/-(.)/g,function(t,n){return n.toUpperCase()})}function mH(e,t){Vr(e,"[@ant-design/icons] ".concat(t))}function zne(e){return qt(e)==="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(qt(e.icon)==="object"||typeof e.icon=="function")}function Vne(){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[bKe(n)]=r}return t},{})}function gH(e,t,n){return n?pe.createElement(e.tag,z(z({key:t},Vne(e.attrs)),n),(e.children||[]).map(function(r,i){return gH(r,"".concat(t,"-").concat(e.tag,"-").concat(i))})):pe.createElement(e.tag,z({key:t},Vne(e.attrs)),(e.children||[]).map(function(r,i){return gH(r,"".concat(t,"-").concat(e.tag,"-").concat(i))}))}function z_e(e){return pg(e)[0]}function V_e(e){return e?Array.isArray(e)?e:[e]:[]}var yKe={width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",focusable:"false"},_Ke=`
.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);
}
}
`,G_e=function(t){var n=h.useContext(fP),r=n.csp,i=n.prefixCls,o=n.layer,a=_Ke;i&&(a=a.replace(/anticon/g,i)),o&&(a="@layer ".concat(o,` {
`).concat(a,`
}`)),h.useEffect(function(){var s=t.current,l=D4(s);If(a,"@ant-design-icons",{prepend:!o,csp:r,attachTo:l})},[])},SKe=["icon","className","onClick","style","primaryColor","secondaryColor"],sx={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function EKe(e){var t=e.primaryColor,n=e.secondaryColor;sx.primaryColor=t,sx.secondaryColor=n||z_e(t),sx.calculated=!!n}function CKe(){return z({},sx)}var dS=function(t){var n=t.icon,r=t.className,i=t.onClick,o=t.style,a=t.primaryColor,s=t.secondaryColor,l=kt(t,SKe),c=h.useRef(),u=sx;if(a&&(u={primaryColor:a,secondaryColor:s||z_e(a)}),G_e(c),mH(zne(n),"icon should be icon definiton, but got ".concat(n)),!zne(n))return null;var d=n;return d&&typeof d.icon=="function"&&(d=z(z({},d),{},{icon:d.icon(u.primaryColor,u.secondaryColor)})),gH(d.icon,"svg-".concat(d.name),z(z({className:r,onClick:i,style:o,"data-icon":d.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},l),{},{ref:c}))};dS.displayName="IconReact";dS.getTwoToneColors=CKe;dS.setTwoToneColors=EKe;function W_e(e){var t=V_e(e),n=Re(t,2),r=n[0],i=n[1];return dS.setTwoToneColors({primaryColor:r,secondaryColor:i})}function xKe(){var e=dS.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}var wKe=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];W_e($1.primary);var Mn=h.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=kt(e,wKe),u=h.useContext(fP),d=u.prefixCls,f=d===void 0?"anticon":d,p=u.rootClassName,m=Ce(p,f,te(te({},"".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=V_e(l),b=Re(y,2),_=b[0],S=b[1];return h.createElement("span",Xe({role:"img","aria-label":r.name},c,{ref:t,tabIndex:g,onClick:s,className:m}),h.createElement(dS,{icon:r,primaryColor:_,secondaryColor:S,style:v}))});Mn.displayName="AntdIcon";Mn.getTwoToneColor=xKe;Mn.setTwoToneColor=W_e;var TKe=function(t,n){return h.createElement(Mn,Xe({},t,{ref:n,icon:gKe}))},vv=h.forwardRef(TKe),OKe={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"},RKe=function(t,n){return h.createElement(Mn,Xe({},t,{ref:n,icon:OKe}))},qf=h.forwardRef(RKe),AKe={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"},IKe=function(t,n){return h.createElement(Mn,Xe({},t,{ref:n,icon:AKe}))},Yf=h.forwardRef(IKe),NKe={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"},MKe=function(t,n){return h.createElement(Mn,Xe({},t,{ref:n,icon:NKe}))},Ag=h.forwardRef(MKe),kKe={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 h.createElement(Mn,Xe({},t,{ref:n,icon:kKe}))},vP=h.forwardRef(PKe),DKe=`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`,LKe=`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`,$Ke="".concat(DKe," ").concat(LKe).split(/[\s\n]+/),FKe="aria-",BKe="data-";function Gne(e,t){return e.indexOf(t)===0}function Oi(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=z({},t);var r={};return Object.keys(e).forEach(function(i){(n.aria&&(i==="role"||Gne(i,FKe))||n.data&&Gne(i,BKe)||n.attr&&$Ke.includes(i))&&(r[i]=e[i])}),r}function q_e(e){return e&&pe.isValidElement(e)&&e.type===pe.Fragment}const Aq=(e,t,n)=>pe.isValidElement(e)?pe.cloneElement(e,typeof n=="function"?n(e.props||{}):n):t;function wo(e,t){return Aq(e,e,t)}const gR=(e,t,n,r,i)=>({background:e,border:`${Ie(r.lineWidth)} ${r.lineType} ${t}`,[`${i}-icon`]:{color:n}}),HKe=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:p,defaultPadding:m}=e;return{[t]:Object.assign(Object.assign({},mr(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:p,[`${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}}},jKe=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:p}=e;return{[t]:{"&-success":gR(i,r,n,e,t),"&-info":gR(p,f,d,e,t),"&-warning":gR(s,a,o,e,t),"&-error":Object.assign(Object.assign({},gR(u,c,l,e,t)),{[`${t}-description > pre`]:{margin:0,padding:0}})}}},UKe=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:Ie(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}}}}},zKe=e=>({withDescriptionIconSize:e.fontSizeHeading3,defaultPadding:`${e.paddingContentVerticalSM}px 12px`,withDescriptionPadding:`${e.paddingMD}px ${e.paddingContentHorizontalLG}px`}),VKe=ir("Alert",e=>[HKe(e),jKe(e),UKe(e)],zKe);var Wne=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);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 GKe={success:vv,info:vP,error:qf,warning:Ag},WKe=e=>{const{icon:t,prefixCls:n,type:r}=e,i=GKe[r]||null;return t?Aq(t,h.createElement("span",{className:`${n}-icon`},t),()=>({className:Ce(`${n}-icon`,t.props.className)})):h.createElement(i,{className:`${n}-icon`})},qKe=e=>{const{isClosable:t,prefixCls:n,closeIcon:r,handleClose:i,ariaProps:o}=e,a=r===!0||r===void 0?h.createElement(Yf,null):r;return t?h.createElement("button",Object.assign({type:"button",onClick:i,className:`${n}-close-icon`,tabIndex:0},o),a):null},Y_e=h.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:p,closable:m,closeText:g,closeIcon:v,action:y,id:b}=e,_=Wne(e,["description","prefixCls","message","banner","className","rootClassName","style","onMouseEnter","onMouseLeave","onClick","afterClose","showIcon","closable","closeText","closeIcon","action","id"]),[S,x]=h.useState(!1),E=h.useRef(null);h.useImperativeHandle(t,()=>({nativeElement:E.current}));const{getPrefixCls:C,direction:w,closable:O,closeIcon:T,className:A,style:I}=Vi("alert"),N=C("alert",r),[D,M,k]=VKe(N),P=Q=>{var ue;x(!0),(ue=e.onClose)===null||ue===void 0||ue.call(e,Q)},B=h.useMemo(()=>e.type!==void 0?e.type:o?"warning":"info",[e.type,o]),G=h.useMemo(()=>typeof m=="object"&&m.closeIcon||g?!0:typeof m=="boolean"?m:v!==!1&&v!==null&&v!==void 0?!0:!!O,[g,v,m,O]),L=o&&p===void 0?!0:p,W=Ce(N,`${N}-${B}`,{[`${N}-with-description`]:!!n,[`${N}-no-icon`]:!L,[`${N}-banner`]:!!o,[`${N}-rtl`]:w==="rtl"},A,a,s,k,M),j=Oi(_,{aria:!0,data:!0}),H=h.useMemo(()=>typeof m=="object"&&m.closeIcon?m.closeIcon:g||(v!==void 0?v:typeof O=="object"&&O.closeIcon?O.closeIcon:T),[v,m,g,T]),X=h.useMemo(()=>{const Q=m??O;if(typeof Q=="object"){const{closeIcon:ue}=Q;return Wne(Q,["closeIcon"])}return{}},[m,O]);return D(h.createElement(ia,{visible:!S,motionName:`${N}-motion`,motionAppear:!1,motionEnter:!1,onLeaveStart:Q=>({maxHeight:Q.offsetHeight}),onLeaveEnd:f},({className:Q,style:ue},ee)=>h.createElement("div",Object.assign({id:b,ref:aa(E,ee),"data-show":!S,className:Ce(W,Q),style:Object.assign(Object.assign(Object.assign({},I),l),ue),onMouseEnter:c,onMouseLeave:u,onClick:d,role:"alert"},j),L?h.createElement(WKe,{description:n,icon:e.icon,prefixCls:N,type:B}):null,h.createElement("div",{className:`${N}-content`},i?h.createElement("div",{className:`${N}-message`},i):null,n?h.createElement("div",{className:`${N}-description`},n):null),y?h.createElement("div",{className:`${N}-action`},y):null,h.createElement(qKe,{isClosable:G,prefixCls:N,closeIcon:H,handleClose:P,ariaProps:X}))))});function YKe(e,t,n){return t=L1(t),Aye(e,sP()?Reflect.construct(t,n||[],L1(e).constructor):t.apply(e,n))}let KKe=function(e){function t(){var n;return Qr(this,t),n=YKe(this,t,arguments),n.state={error:void 0,info:{componentStack:""}},n}return Fs(t,e),Xr(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?h.createElement(Y_e,{id:o,type:"error",message:u,description:h.createElement("pre",{style:{fontSize:"0.9em",overflowX:"auto"}},d)}):a}}])}(h.Component);const K_e=Y_e;K_e.ErrorBoundary=KKe;const qne=e=>typeof e=="object"&&e!=null&&e.nodeType===1,Yne=(e,t)=>(!t||e!=="hidden")&&e!=="visible"&&e!=="clip",vR=(e,t)=>{if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){const n=getComputedStyle(e,null);return Yne(n.overflowY,t)||Yne(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},bR=(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,QKe=e=>{const t=e.parentElement;return t??(e.getRootNode().host||null)},Kne=(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:k=>k!==c;if(!qne(e))throw new TypeError("Invalid target");const f=document.scrollingElement||document.documentElement,p=[];let m=e;for(;qne(m)&&d(m);){if(m=QKe(m),m===f){p.push(m);break}m!=null&&m===document.body&&vR(m)&&!vR(document.documentElement)||m!=null&&vR(m,u)&&p.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:S,top:x,right:E,bottom:C,left:w}=e.getBoundingClientRect(),{top:O,right:T,bottom:A,left:I}=(k=>{const P=window.getComputedStyle(k);return{top:parseFloat(P.scrollMarginTop)||0,right:parseFloat(P.scrollMarginRight)||0,bottom:parseFloat(P.scrollMarginBottom)||0,left:parseFloat(P.scrollMarginLeft)||0}})(e);let N=s==="start"||s==="nearest"?x-O:s==="end"?C+A:x+_/2-O+A,D=l==="center"?w+S/2-I+T:l==="end"?E+T:w-I;const M=[];for(let k=0;k<p.length;k++){const P=p[k],{height:B,width:G,top:L,right:W,bottom:j,left:H}=P.getBoundingClientRect();if(a==="if-needed"&&x>=0&&w>=0&&C<=v&&E<=g&&(P===f&&!vR(P)||x>=L&&C<=j&&w>=H&&E<=W))return M;const X=getComputedStyle(P),Q=parseInt(X.borderLeftWidth,10),ue=parseInt(X.borderTopWidth,10),ee=parseInt(X.borderRightWidth,10),K=parseInt(X.borderBottomWidth,10);let se=0,le=0;const oe="offsetWidth"in P?P.offsetWidth-P.clientWidth-Q-ee:0,ne="offsetHeight"in P?P.offsetHeight-P.clientHeight-ue-K:0,he="offsetWidth"in P?P.offsetWidth===0?0:G/P.offsetWidth:0,me="offsetHeight"in P?P.offsetHeight===0?0:B/P.offsetHeight:0;if(f===P)se=s==="start"?N:s==="end"?N-v:s==="nearest"?bR(b,b+v,v,ue,K,b+N,b+N+_,_):N-v/2,le=l==="start"?D:l==="center"?D-g/2:l==="end"?D-g:bR(y,y+g,g,Q,ee,y+D,y+D+S,S),se=Math.max(0,se+b),le=Math.max(0,le+y);else{se=s==="start"?N-L-ue:s==="end"?N-j+K+ne:s==="nearest"?bR(L,j,B,ue,K+ne,N,N+_,_):N-(L+B/2)+ne/2,le=l==="start"?D-H-Q:l==="center"?D-(H+G/2)+oe/2:l==="end"?D-W+ee+oe:bR(H,W,G,Q,ee+oe,D,D+S,S);const{scrollLeft:ce,scrollTop:re}=P;se=me===0?0:Math.max(0,Math.min(re+se/me,P.scrollHeight-B/me+ne)),le=he===0?0:Math.max(0,Math.min(ce+le/he,P.scrollWidth-G/he+oe)),N+=re-se,D+=ce-le}M.push({el:P,top:se,left:le})}return M},XKe=e=>e===!1?{block:"end",inline:"nearest"}:(t=>t===Object(t)&&Object.keys(t).length!==0)(e)?e:{block:"start",inline:"nearest"};function ZKe(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(Kne(e,t));const r=typeof t=="boolean"||t==null?void 0:t.behavior;for(const{el:i,top:o,left:a}of Kne(e,XKe(t))){const s=o-n.top+n.bottom,l=a-n.left+n.right;i.scroll({top:s,left:l,behavior:r})}}function vH(e){return e!=null&&e===e.window}const JKe=e=>{var t,n;if(typeof window>"u")return 0;let r=0;return vH(e)?r=e.pageYOffset:e instanceof Document?r=e.documentElement.scrollTop:(e instanceof HTMLElement||e)&&(r=e.scrollTop),e&&!vH(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 eQe(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 tQe(e,t={}){const{getContainer:n=()=>window,callback:r,duration:i=450}=t,o=n(),a=JKe(o),s=Date.now(),l=()=>{const u=Date.now()-s,d=eQe(u>i?i:u,a,e,i);vH(o)?o.scrollTo(window.pageXOffset,d):o instanceof Document||o.constructor.name==="HTMLDocument"?o.documentElement.scrollTop=d:o.scrollTop=d,u<i?tr(l):typeof r=="function"&&r()};tr(l)}const gi=e=>{const[,,,,t]=Ko();return t?`${e}-css-var`:""};var Ut={BACKSPACE:8,TAB:9,ENTER:13,SHIFT:16,CTRL:17,ALT:18,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,DELETE:46,N:78,P:80,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,SEMICOLON:186,EQUALS:187,WIN_KEY:224},Q_e=h.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,p=e.closeIcon,m=p===void 0?"x":p,g=e.props,v=e.onClick,y=e.onNoticeClose,b=e.times,_=e.hovering,S=h.useState(!1),x=Re(S,2),E=x[0],C=x[1],w=h.useState(0),O=Re(w,2),T=O[0],A=O[1],I=h.useState(0),N=Re(I,2),D=N[0],M=N[1],k=_||E,P=a>0&&s,B=function(){y(u)},G=function(Q){(Q.key==="Enter"||Q.code==="Enter"||Q.keyCode===Ut.ENTER)&&B()};h.useEffect(function(){if(!k&&a>0){var X=Date.now()-D,Q=setTimeout(function(){B()},a*1e3-D);return function(){c&&clearTimeout(Q),M(Date.now()-X)}}},[a,k,b]),h.useEffect(function(){if(!k&&P&&(c||D===0)){var X=performance.now(),Q,ue=function ee(){cancelAnimationFrame(Q),Q=requestAnimationFrame(function(K){var se=K+D-X,le=Math.min(se/(a*1e3),1);A(le*100),le<1&&ee()})};return ue(),function(){c&&cancelAnimationFrame(Q)}}},[a,D,k,P,b]);var L=h.useMemo(function(){return qt(f)==="object"&&f!==null?f:f?{closeIcon:m}:{}},[f,m]),W=Oi(L,!0),j=100-(!T||T<0?0:T>100?100:T),H="".concat(n,"-notice");return h.createElement("div",Xe({},g,{ref:t,className:Ce(H,i,te({},"".concat(H,"-closable"),f)),style:r,onMouseEnter:function(Q){var ue;C(!0),g==null||(ue=g.onMouseEnter)===null||ue===void 0||ue.call(g,Q)},onMouseLeave:function(Q){var ue;C(!1),g==null||(ue=g.onMouseLeave)===null||ue===void 0||ue.call(g,Q)},onClick:v}),h.createElement("div",{className:"".concat(H,"-content")},d),f&&h.createElement("a",Xe({tabIndex:0,className:"".concat(H,"-close"),onKeyDown:G,"aria-label":"Close"},W,{onClick:function(Q){Q.preventDefault(),Q.stopPropagation(),B()}}),L.closeIcon),P&&h.createElement("progress",{className:"".concat(H,"-progress"),max:"100",value:j},j+"%"))}),X_e=pe.createContext({}),Z_e=function(t){var n=t.children,r=t.classNames;return pe.createElement(X_e.Provider,{value:{classNames:r}},n)},Qne=8,Xne=3,Zne=16,nQe=function(t){var n={offset:Qne,threshold:Xne,gap:Zne};if(t&&qt(t)==="object"){var r,i,o;n.offset=(r=t.offset)!==null&&r!==void 0?r:Qne,n.threshold=(i=t.threshold)!==null&&i!==void 0?i:Xne,n.gap=(o=t.gap)!==null&&o!==void 0?o:Zne}return[!!t,n]},rQe=["className","style","classNames","styles"],iQe=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=h.useContext(X_e),f=d.classNames,p=h.useRef({}),m=h.useState(null),g=Re(m,2),v=g[0],y=g[1],b=h.useState([]),_=Re(b,2),S=_[0],x=_[1],E=n.map(function(k){return{config:k,key:String(k.key)}}),C=nQe(u),w=Re(C,2),O=w[0],T=w[1],A=T.offset,I=T.threshold,N=T.gap,D=O&&(S.length>0||E.length<=I),M=typeof s=="function"?s(r):s;return h.useEffect(function(){O&&S.length>1&&x(function(k){return k.filter(function(P){return E.some(function(B){var G=B.key;return P===G})})})},[S,E,O]),h.useEffect(function(){var k;if(O&&p.current[(k=E[E.length-1])===null||k===void 0?void 0:k.key]){var P;y(p.current[(P=E[E.length-1])===null||P===void 0?void 0:P.key])}},[E,O]),pe.createElement(gP,Xe({key:r,className:Ce(i,"".concat(i,"-").concat(r),f==null?void 0:f.list,o,te(te({},"".concat(i,"-stack"),!!O),"".concat(i,"-stack-expanded"),D)),style:a,keys:E,motionAppear:!0},M,{onAllRemoved:function(){l(r)}}),function(k,P){var B=k.config,G=k.className,L=k.style,W=k.index,j=B,H=j.key,X=j.times,Q=String(H),ue=B,ee=ue.className,K=ue.style,se=ue.classNames,le=ue.styles,oe=kt(ue,rQe),ne=E.findIndex(function(Te){return Te.key===Q}),he={};if(O){var me=E.length-1-(ne>-1?ne:W-1),ce=r==="top"||r==="bottom"?"-50%":"0";if(me>0){var re,ve,be;he.height=D?(re=p.current[Q])===null||re===void 0?void 0:re.offsetHeight:v==null?void 0:v.offsetHeight;for(var xe=0,we=0;we<me;we++){var de;xe+=((de=p.current[E[E.length-1-we].key])===null||de===void 0?void 0:de.offsetHeight)+N}var Ee=(D?xe:me*A)*(r.startsWith("top")?1:-1),Ne=!D&&v!==null&&v!==void 0&&v.offsetWidth&&(ve=p.current[Q])!==null&&ve!==void 0&&ve.offsetWidth?((v==null?void 0:v.offsetWidth)-A*2*(me<3?me:3))/((be=p.current[Q])===null||be===void 0?void 0:be.offsetWidth):1;he.transform="translate3d(".concat(ce,", ").concat(Ee,"px, 0) scaleX(").concat(Ne,")")}else he.transform="translate3d(".concat(ce,", 0, 0)")}return pe.createElement("div",{ref:P,className:Ce("".concat(i,"-notice-wrapper"),G,se==null?void 0:se.wrapper),style:z(z(z({},L),he),le==null?void 0:le.wrapper),onMouseEnter:function(){return x(function(Ve){return Ve.includes(Q)?Ve:[].concat(rt(Ve),[Q])})},onMouseLeave:function(){return x(function(Ve){return Ve.filter(function(q){return q!==Q})})}},pe.createElement(Q_e,Xe({},oe,{ref:function(Ve){ne>-1?p.current[Q]=Ve:delete p.current[Q]},prefixCls:i,classNames:se,styles:le,className:Ce(ee,f==null?void 0:f.notice),style:K,times:X,key:H,eventKey:H,onNoticeClose:c,hovering:O&&S.length>0})))})},oQe=h.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=h.useState([]),p=Re(f,2),m=p[0],g=p[1],v=function(O){var T,A=m.find(function(I){return I.key===O});A==null||(T=A.onClose)===null||T===void 0||T.call(A),g(function(I){return I.filter(function(N){return N.key!==O})})};h.useImperativeHandle(t,function(){return{open:function(O){g(function(T){var A=rt(T),I=A.findIndex(function(M){return M.key===O.key}),N=z({},O);if(I>=0){var D;N.times=(((D=T[I])===null||D===void 0?void 0:D.times)||0)+1,A[I]=N}else N.times=0,A.push(N);return a>0&&A.length>a&&(A=A.slice(-a)),A})},close:function(O){v(O)},destroy:function(){g([])}}});var y=h.useState({}),b=Re(y,2),_=b[0],S=b[1];h.useEffect(function(){var w={};m.forEach(function(O){var T=O.placement,A=T===void 0?"topRight":T;A&&(w[A]=w[A]||[],w[A].push(O))}),Object.keys(_).forEach(function(O){w[O]=w[O]||[]}),S(w)},[m]);var x=function(O){S(function(T){var A=z({},T),I=A[O]||[];return I.length||delete A[O],A})},E=h.useRef(!1);if(h.useEffect(function(){Object.keys(_).length>0?E.current=!0:E.current&&(c==null||c(),E.current=!1)},[_]),!i)return null;var C=Object.keys(_);return Fl.createPortal(h.createElement(h.Fragment,null,C.map(function(w){var O=_[w],T=h.createElement(iQe,{key:w,configList:O,placement:w,prefixCls:r,className:s==null?void 0:s(w),style:l==null?void 0:l(w),motion:o,onNoticeClose:v,onAllNoticeRemoved:x,stack:u});return d?d(T,{prefixCls:r,key:w}):T})),i)}),aQe=["getContainer","motion","prefixCls","maxCount","className","style","onAllRemoved","stack","renderNotifications"],sQe=function(){return document.body},Jne=0;function lQe(){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 J_e(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.getContainer,n=t===void 0?sQe: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=kt(e,aQe),f=h.useState(),p=Re(f,2),m=p[0],g=p[1],v=h.useRef(),y=h.createElement(oQe,{container:m,ref:v,prefixCls:i,motion:r,maxCount:o,className:a,style:s,onAllRemoved:l,stack:c,renderNotifications:u}),b=h.useState([]),_=Re(b,2),S=_[0],x=_[1],E=qn(function(w){var O=lQe(d,w);(O.key===null||O.key===void 0)&&(O.key="rc-notification-".concat(Jne),Jne+=1),x(function(T){return[].concat(rt(T),[{type:"open",config:O}])})}),C=h.useMemo(function(){return{open:E,close:function(O){x(function(T){return[].concat(rt(T),[{type:"close",key:O}])})},destroy:function(){x(function(O){return[].concat(rt(O),[{type:"destroy"}])})}}},[]);return h.useEffect(function(){g(n())}),h.useEffect(function(){if(v.current&&S.length){S.forEach(function(T){switch(T.type){case"open":v.current.open(T.config);break;case"close":v.current.close(T.key);break;case"destroy":v.current.destroy();break}});var w,O;x(function(T){return(w!==T||!O)&&(w=T,O=T.filter(function(A){return!S.includes(A)})),O})}},[S]),[C,y]}var cQe={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"},uQe=function(t,n){return h.createElement(Mn,Xe({},t,{ref:n,icon:cQe}))},Td=h.forwardRef(uQe);const e2=pe.createContext(void 0),Gh=100,dQe=10,Iq=Gh*dQe,eSe={Modal:Gh,Drawer:Gh,Popover:Gh,Popconfirm:Gh,Tooltip:Gh,Tour:Gh,FloatButton:Gh},fQe={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1};function pQe(e){return e in eSe}const Ou=(e,t)=>{const[,n]=Ko(),r=pe.useContext(e2),i=pQe(e);let o;if(t!==void 0)o=[t,t];else{let a=r??0;i?a+=(r?0:n.zIndexPopupBase)+eSe[e]:a+=fQe[e],o=[r===void 0?t:a,a]}return o},hQe=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:p,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:p,transform:"translateY(0)",opacity:1}}),S=new fr("MessageMoveOut",{"0%":{maxHeight:e.height,padding:p,opacity:1},"100%":{maxHeight:0,padding:0,opacity:0}}),x={padding:p,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({},mr(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:S,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({},x)}},{[`${t}-notice-pure-panel`]:Object.assign(Object.assign({},x),{padding:0,textAlign:"start"})}]},mQe=e=>({zIndexPopup:e.zIndexPopupBase+Iq+10,contentBg:e.colorBgElevated,contentPadding:`${(e.controlHeightLG-e.fontSize*e.lineHeight)/2}px ${e.paddingSM}px`}),tSe=ir("Message",e=>{const t=Un(e,{height:150});return[hQe(t)]},mQe);var gQe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);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 vQe={info:h.createElement(vP,null),success:h.createElement(vv,null),error:h.createElement(qf,null),warning:h.createElement(Ag,null),loading:h.createElement(Td,null)},nSe=({prefixCls:e,type:t,icon:n,children:r})=>h.createElement("div",{className:Ce(`${e}-custom-content`,`${e}-${t}`)},n||vQe[t],h.createElement("span",null,r)),bQe=e=>{const{prefixCls:t,className:n,type:r,icon:i,content:o}=e,a=gQe(e,["prefixCls","className","type","icon","content"]),{getPrefixCls:s}=h.useContext(cn),l=t||s("message"),c=gi(l),[u,d,f]=tSe(l,c);return u(h.createElement(Q_e,Object.assign({},a,{prefixCls:l,className:Ce(n,d,`${l}-notice-pure-panel`,f,c),eventKey:"pure",duration:null,content:h.createElement(nSe,{prefixCls:l,type:r,icon:i},o)})))};function yQe(e,t){return{motionName:t??`${e}-move-up`}}function Nq(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 _Qe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);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 SQe=8,EQe=3,CQe=({children:e,prefixCls:t})=>{const n=gi(t),[r,i,o]=tSe(t,n);return r(h.createElement(Z_e,{classNames:{list:Ce(i,o,n)}},e))},xQe=(e,{prefixCls:t,key:n})=>h.createElement(CQe,{prefixCls:t,key:n},e),wQe=h.forwardRef((e,t)=>{const{top:n,prefixCls:r,getContainer:i,maxCount:o,duration:a=EQe,rtl:s,transitionName:l,onAllRemoved:c}=e,{getPrefixCls:u,getPopupContainer:d,message:f,direction:p}=h.useContext(cn),m=r||u("message"),g=()=>({left:"50%",transform:"translateX(-50%)",top:n??SQe}),v=()=>Ce({[`${m}-rtl`]:s??p==="rtl"}),y=()=>yQe(m,l),b=h.createElement("span",{className:`${m}-close-x`},h.createElement(Yf,{className:`${m}-close-icon`})),[_,S]=J_e({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:xQe});return h.useImperativeHandle(t,()=>Object.assign(Object.assign({},_),{prefixCls:m,message:f})),S});let ere=0;function rSe(e){const t=h.useRef(null);return Wf(),[h.useMemo(()=>{const r=l=>{var c;(c=t.current)===null||c===void 0||c.close(l)},i=l=>{if(!t.current){const E=()=>{};return E.then=()=>{},E}const{open:c,prefixCls:u,message:d}=t.current,f=`${u}-notice`,{content:p,icon:m,type:g,key:v,className:y,style:b,onClose:_}=l,S=_Qe(l,["content","icon","type","key","className","style","onClose"]);let x=v;return x==null&&(ere+=1,x=`antd-message-${ere}`),Nq(E=>(c(Object.assign(Object.assign({},S),{key:x,content:h.createElement(nSe,{prefixCls:u,type:g,icon:m},p),placement:"top",className:Ce(g&&`${f}-${g}`,y,d==null?void 0:d.className),style:Object.assign(Object.assign({},d==null?void 0:d.style),b),onClose:()=>{_==null||_(),E()}})),()=>{r(x)}))},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 p;u&&typeof u=="object"&&"content"in u?p=u:p={content:u};let m,g;typeof d=="function"?g=d:(m=d,g=f);const v=Object.assign(Object.assign({onClose:g,duration:m},p),{type:l});return i(v)};a[l]=c}),a},[]),h.createElement(wQe,Object.assign({key:"message-holder"},e,{ref:t}))]}function iSe(e){return rSe(e)}function TQe(){const[e,t]=h.useState([]),n=h.useCallback(r=>(t(i=>[].concat(rt(i),[r])),()=>{t(i=>i.filter(o=>o!==r))}),[]);return[e,n]}function oSe(e,t){this.v=e,this.k=t}function ys(e,t,n,r){var i=Object.defineProperty;try{i({},"",{})}catch{i=0}ys=function(a,s,l,c){if(s)i?i(a,s,{value:l,enumerable:!c,configurable:!c,writable:!c}):a[s]=l;else{var u=function(f,p){ys(a,f,function(m){return this._invoke(f,p,m)})};u("next",0),u("throw",1),u("return",2)}},ys(e,t,n,r)}function Mq(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var e,t,n=typeof Symbol=="function"?Symbol:{},r=n.iterator||"@@iterator",i=n.toStringTag||"@@toStringTag";function o(p,m,g,v){var y=m&&m.prototype instanceof s?m:s,b=Object.create(y.prototype);return ys(b,"_invoke",function(_,S,x){var E,C,w,O=0,T=x||[],A=!1,I={p:0,n:0,v:e,a:N,f:N.bind(e,4),d:function(M,k){return E=M,C=0,w=e,I.n=k,a}};function N(D,M){for(C=D,w=M,t=0;!A&&O&&!k&&t<T.length;t++){var k,P=T[t],B=I.p,G=P[2];D>3?(k=G===M)&&(w=P[(C=P[4])?5:(C=3,3)],P[4]=P[5]=e):P[0]<=B&&((k=D<2&&B<P[1])?(C=0,I.v=M,I.n=P[1]):B<G&&(k=D<3||P[0]>M||M>G)&&(P[4]=D,P[5]=M,I.n=G,C=0))}if(k||D>1)return a;throw A=!0,M}return function(D,M,k){if(O>1)throw TypeError("Generator is already running");for(A&&M===1&&N(M,k),C=M,w=k;(t=C<2?e:w)||!A;){E||(C?C<3?(C>1&&(I.n=-1),N(C,w)):I.n=w:I.v=w);try{if(O=2,E){if(C||(D="next"),t=E[D]){if(!(t=t.call(E,w)))throw TypeError("iterator result is not an object");if(!t.done)return t;w=t.value,C<2&&(C=0)}else C===1&&(t=E.return)&&t.call(E),C<2&&(w=TypeError("The iterator does not provide a '"+D+"' method"),C=1);E=e}else if((t=(A=I.n<0)?w:_.call(S,I))!==a)break}catch(P){E=e,C=1,w=P}finally{O=1}}return{value:t,done:A}}}(p,g,v),!0),b}var a={};function s(){}function l(){}function c(){}t=Object.getPrototypeOf;var u=[][r]?t(t([][r]())):(ys(t={},r,function(){return this}),t),d=c.prototype=s.prototype=Object.create(u);function f(p){return Object.setPrototypeOf?Object.setPrototypeOf(p,c):(p.__proto__=c,ys(p,i,"GeneratorFunction")),p.prototype=Object.create(d),p}return l.prototype=c,ys(d,"constructor",c),ys(c,"constructor",l),l.displayName="GeneratorFunction",ys(c,i,"GeneratorFunction"),ys(d),ys(d,i,"Generator"),ys(d,r,function(){return this}),ys(d,"toString",function(){return"[object Generator]"}),(Mq=function(){return{w:o,m:f}})()}function L4(e,t){function n(i,o,a,s){try{var l=e[i](o),c=l.value;return c instanceof oSe?t.resolve(c.v).then(function(u){n("next",u,a,s)},function(u){n("throw",u,a,s)}):t.resolve(c).then(function(u){l.value=u,a(l)},function(u){return n("throw",u,a,s)})}catch(u){s(u)}}var r;this.next||(ys(L4.prototype),ys(L4.prototype,typeof Symbol=="function"&&Symbol.asyncIterator||"@asyncIterator",function(){return this})),ys(this,"_invoke",function(i,o,a){function s(){return new t(function(l,c){n(i,a,l,c)})}return r=r?r.then(s,s):s()},!0)}function aSe(e,t,n,r,i){return new L4(Mq().w(e,t,n,r),i||Promise)}function OQe(e,t,n,r,i){var o=aSe(e,t,n,r,i);return o.next().then(function(a){return a.done?a.value:o.next()})}function RQe(e){var t=Object(e),n=[];for(var r in t)n.unshift(r);return function i(){for(;n.length;)if((r=n.pop())in t)return i.value=r,i.done=!1,i;return i.done=!0,i}}function tre(e){if(e!=null){var t=e[typeof Symbol=="function"&&Symbol.iterator||"@@iterator"],n=0;if(t)return t.call(e);if(typeof e.next=="function")return e;if(!isNaN(e.length))return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}}throw new TypeError(qt(e)+" is not iterable")}function rr(){var e=Mq(),t=e.m(rr),n=(Object.getPrototypeOf?Object.getPrototypeOf(t):t.__proto__).constructor;function r(a){var s=typeof a=="function"&&a.constructor;return!!s&&(s===n||(s.displayName||s.name)==="GeneratorFunction")}var i={throw:1,return:2,break:3,continue:3};function o(a){var s,l;return function(c){s||(s={stop:function(){return l(c.a,2)},catch:function(){return c.v},abrupt:function(d,f){return l(c.a,i[d],f)},delegateYield:function(d,f,p){return s.resultName=f,l(c.d,tre(d),p)},finish:function(d){return l(c.f,d)}},l=function(d,f,p){c.p=s.prev,c.n=s.next;try{return d(f,p)}finally{s.next=c.n}}),s.resultName&&(s[s.resultName]=c.v,s.resultName=void 0),s.sent=c.v,s.next=c.n;try{return a.call(this,s)}finally{c.p=s.prev,c.n=s.next}}}return(rr=function(){return{wrap:function(l,c,u,d){return e.w(o(l),c,u,d&&d.reverse())},isGeneratorFunction:r,mark:e.m,awrap:function(l,c){return new oSe(l,c)},AsyncIterator:L4,async:function(l,c,u,d,f){return(r(c)?aSe:OQe)(o(l),c,u,d,f)},keys:RQe,values:tre}})()}function nre(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 Ui(e){return function(){var t=this,n=arguments;return new Promise(function(r,i){var o=e.apply(t,n);function a(l){nre(o,r,i,a,s,"next",l)}function s(l){nre(o,r,i,a,s,"throw",l)}a(void 0)})}}var t2=z({},hve),AQe=t2.version,j6=t2.render,IQe=t2.unmountComponentAtNode,bP;try{var NQe=Number((AQe||"").split(".")[0]);NQe>=18&&(bP=t2.createRoot)}catch{}function rre(e){var t=t2.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;t&&qt(t)==="object"&&(t.usingClientEntryPoint=e)}var $4="__rc_react_root__";function MQe(e,t){rre(!0);var n=t[$4]||bP(t);rre(!1),n.render(e),t[$4]=n}function kQe(e,t){j6==null||j6(e,t)}function PQe(e,t){if(bP){MQe(e,t);return}kQe(e,t)}function DQe(e){return bH.apply(this,arguments)}function bH(){return bH=Ui(rr().mark(function e(t){return rr().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",Promise.resolve().then(function(){var i;(i=t[$4])===null||i===void 0||i.unmount(),delete t[$4]}));case 1:case"end":return r.stop()}},e)})),bH.apply(this,arguments)}function LQe(e){IQe(e)}function $Qe(e){return yH.apply(this,arguments)}function yH(){return yH=Ui(rr().mark(function e(t){return rr().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:if(bP===void 0){r.next=2;break}return r.abrupt("return",DQe(t));case 2:LQe(t);case 3:case"end":return r.stop()}},e)})),yH.apply(this,arguments)}const FQe=(e,t)=>(PQe(e,t),()=>$Qe(t));let BQe=FQe;function kq(e){return BQe}const U6=()=>({height:0,opacity:0}),ire=e=>{const{scrollHeight:t}=e;return{height:t,opacity:1}},HQe=e=>({height:e?e.offsetHeight:0}),z6=(e,t)=>(t==null?void 0:t.deadline)===!0||t.propertyName==="height",f_=(e=kw)=>({motionName:`${e}-motion-collapse`,onAppearStart:U6,onEnterStart:U6,onAppearActive:ire,onEnterActive:ire,onLeaveStart:HQe,onLeaveActive:U6,onAppearEnd:z6,onEnterEnd:z6,onLeaveEnd:z6,motionDeadline:500}),Va=(e,t,n)=>n!==void 0?n:`${e}-${t}`;function ur(e,t){var n=Object.assign({},e);return Array.isArray(t)&&t.forEach(function(r){delete n[r]}),n}const fS=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},jQe=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(",")}}}}},UQe=T_e("Wave",e=>[jQe(e)]),yP=`${kw}-wave-target`;function V6(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 zQe(e){const{borderTopColor:t,borderColor:n,backgroundColor:r}=getComputedStyle(e);return V6(t)?t:V6(n)?n:V6(r)?r:null}function G6(e){return Number.isNaN(e)?0:e}const VQe=e=>{const{className:t,target:n,component:r,registerUnmount:i}=e,o=h.useRef(null),a=h.useRef(null);h.useEffect(()=>{a.current=i()},[]);const[s,l]=h.useState(null),[c,u]=h.useState([]),[d,f]=h.useState(0),[p,m]=h.useState(0),[g,v]=h.useState(0),[y,b]=h.useState(0),[_,S]=h.useState(!1),x={left:d,top:p,width:g,height:y,borderRadius:c.map(w=>`${w}px`).join(" ")};s&&(x["--wave-color"]=s);function E(){const w=getComputedStyle(n);l(zQe(n));const O=w.position==="static",{borderLeftWidth:T,borderTopWidth:A}=w;f(O?n.offsetLeft:G6(-parseFloat(T))),m(O?n.offsetTop:G6(-parseFloat(A))),v(n.offsetWidth),b(n.offsetHeight);const{borderTopLeftRadius:I,borderTopRightRadius:N,borderBottomLeftRadius:D,borderBottomRightRadius:M}=w;u([I,N,M,D].map(k=>G6(parseFloat(k))))}if(h.useEffect(()=>{if(n){const w=tr(()=>{E(),S(!0)});let O;return typeof ResizeObserver<"u"&&(O=new ResizeObserver(E),O.observe(n)),()=>{tr.cancel(w),O==null||O.disconnect()}}},[]),!_)return null;const C=(r==="Checkbox"||r==="Radio")&&(n==null?void 0:n.classList.contains(yP));return h.createElement(ia,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:(w,O)=>{var T,A;if(O.deadline||O.propertyName==="opacity"){const I=(T=o.current)===null||T===void 0?void 0:T.parentElement;(A=a.current)===null||A===void 0||A.call(a).then(()=>{I==null||I.remove()})}return!1}},({className:w},O)=>h.createElement("div",{ref:aa(o,O),className:Ce(t,w,{"wave-quick":C}),style:x}))},GQe=(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=kq();let a=null;function s(){return a}a=o(h.createElement(VQe,Object.assign({},t,{target:e,registerUnmount:s})),i)},WQe=(e,t,n)=>{const{wave:r}=h.useContext(cn),[,i,o]=Ko(),a=qn(c=>{const u=e.current;if(r!=null&&r.disabled||!u)return;const d=u.querySelector(`.${yP}`)||u,{showEffect:f}=r||{};(f||GQe)(d,{className:t,token:i,component:n,event:c,hashId:o})}),s=h.useRef(null);return c=>{tr.cancel(s.current),s.current=tr(()=>{a(c)})}},n2=e=>{const{children:t,disabled:n,component:r}=e,{getPrefixCls:i}=h.useContext(cn),o=h.useRef(null),a=i("wave"),[,s]=UQe(a),l=WQe(o,Ce(a,s),r);if(pe.useEffect(()=>{const u=o.current;if(!u||u.nodeType!==1||n)return;const d=f=>{!fS(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]),!pe.isValidElement(t))return t??null;const c=Cd(t)?aa(Rg(t),o):o;return wo(t,{ref:c})},mo=e=>{const t=pe.useContext(F1);return pe.useMemo(()=>e?typeof e=="string"?e??t:typeof e=="function"?e(t):t:t,[e,t])},qQe=e=>{const{componentCls:t}=e;return{[t]:{"&-block":{display:"flex",width:"100%"},"&-vertical":{flexDirection:"column"}}}},YQe=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"}}}},KQe=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}}}},sSe=ir("Space",e=>{const t=Un(e,{spaceGapSmallSize:e.paddingXS,spaceGapMiddleSize:e.padding,spaceGapLargeSize:e.paddingLG});return[YQe(t),KQe(t),qQe(t)]},()=>({}),{resetStyle:!1});var lSe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);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 _P=h.createContext(null),Ru=(e,t)=>{const n=h.useContext(_P),r=h.useMemo(()=>{if(!n)return"";const{compactDirection:i,isFirstItem:o,isLastItem:a}=n,s=i==="vertical"?"-vertical-":"-";return Ce(`${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}},QQe=e=>{const{children:t}=e;return h.createElement(_P.Provider,{value:null},t)},XQe=e=>{const{children:t}=e,n=lSe(e,["children"]);return h.createElement(_P.Provider,{value:h.useMemo(()=>n,[n])},t)},ZQe=e=>{const{getPrefixCls:t,direction:n}=h.useContext(cn),{size:r,direction:i,block:o,prefixCls:a,className:s,rootClassName:l,children:c}=e,u=lSe(e,["size","direction","block","prefixCls","className","rootClassName","children"]),d=mo(_=>r??_),f=t("space-compact",a),[p,m]=sSe(f),g=Ce(f,m,{[`${f}-rtl`]:n==="rtl",[`${f}-block`]:o,[`${f}-vertical`]:i==="vertical"},s,l),v=h.useContext(_P),y=Do(c),b=h.useMemo(()=>y.map((_,S)=>{const x=(_==null?void 0:_.key)||`${f}-item-${S}`;return h.createElement(XQe,{key:x,compactSize:d,compactDirection:i,isFirstItem:S===0&&(!v||(v==null?void 0:v.isFirstItem)),isLastItem:S===y.length-1&&(!v||(v==null?void 0:v.isLastItem))},_)}),[r,y,v]);return y.length===0?null:p(h.createElement("div",Object.assign({className:g},u),b))};var JQe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);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 cSe=h.createContext(void 0),eXe=e=>{const{getPrefixCls:t,direction:n}=h.useContext(cn),{prefixCls:r,size:i,className:o}=e,a=JQe(e,["prefixCls","size","className"]),s=t("btn-group",r),[,,l]=Ko(),c=h.useMemo(()=>{switch(i){case"large":return"lg";case"small":return"sm";default:return""}},[i]),u=Ce(s,{[`${s}-${c}`]:c,[`${s}-rtl`]:n==="rtl"},o,l);return h.createElement(cSe.Provider,{value:i},h.createElement("div",Object.assign({},a,{className:u})))},ore=/^[\u4E00-\u9FA5]{2}$/,_H=ore.test.bind(ore);function Pq(e){return e==="danger"?{danger:!0}:{type:e}}function are(e){return typeof e=="string"}function W6(e){return e==="text"||e==="link"}function tXe(e,t){if(e==null)return;const n=t?" ":"";return typeof e!="string"&&typeof e!="number"&&are(e.type)&&_H(e.props.children)?wo(e,{children:e.props.children.split("").join(n)}):are(e)?_H(e)?pe.createElement("span",null,e.split("").join(n)):pe.createElement("span",null,e):q_e(e)?pe.createElement("span",null,e):e}function nXe(e,t){let n=!1;const r=[];return pe.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}),pe.Children.map(r,i=>tXe(i,t))}["default","primary","danger"].concat(rt(hg));const SH=h.forwardRef((e,t)=>{const{className:n,style:r,children:i,prefixCls:o}=e,a=Ce(`${o}-icon`,n);return pe.createElement("span",{ref:t,className:a,style:r},i)}),sre=h.forwardRef((e,t)=>{const{prefixCls:n,className:r,style:i,iconClassName:o}=e,a=Ce(`${n}-loading-icon`,r);return pe.createElement(SH,{prefixCls:n,className:a,style:i,ref:t},pe.createElement(Td,{className:o}))}),q6=()=>({width:0,opacity:0,transform:"scale(0)"}),Y6=e=>({width:e.scrollWidth,opacity:1,transform:"scale(1)"}),rXe=e=>{const{prefixCls:t,loading:n,existIcon:r,className:i,style:o,mount:a}=e,s=!!n;return r?pe.createElement(sre,{prefixCls:t,className:i,style:o}):pe.createElement(ia,{visible:s,motionName:`${t}-loading-icon-motion`,motionAppear:!a,motionEnter:!a,motionLeave:!a,removeOnLeave:!0,onAppearStart:q6,onAppearActive:Y6,onEnterStart:q6,onEnterActive:Y6,onLeaveStart:Y6,onLeaveActive:q6},({className:l,style:c},u)=>{const d=Object.assign(Object.assign({},o),c);return pe.createElement(sre,{prefixCls:t,className:Ce(i,l),style:d,ref:u})})},lre=(e,t)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}}),iXe=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}},lre(`${t}-primary`,i),lre(`${t}-danger`,o)]}};var oXe=["b"],aXe=["v"],K6=function(t){return Math.round(Number(t||0))},sXe=function(t){if(t instanceof or)return t;if(t&&qt(t)==="object"&&"h"in t&&"b"in t){var n=t,r=n.b,i=kt(n,oXe);return z(z({},i),{},{v:r})}return typeof t=="string"&&/hsb/.test(t)?t.replace(/hsb/,"hsv"):t},Od=function(e){Fs(n,e);var t=ll(n);function n(r){return Qr(this,n),t.call(this,sXe(r))}return Xr(n,[{key:"toHsbString",value:function(){var i=this.toHsb(),o=K6(i.s*100),a=K6(i.b*100),s=K6(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=kt(i,aXe);return z(z({},a),{},{b:o,a:this.a})}}]),n}(or),lXe="rc-color-picker",yy=function(t){return t instanceof Od?t:new Od(t)},cXe=yy("#1677ff"),uSe=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,p=d/2,m=f/2,g=(n.x+p)/l,v=1-(n.y+m)/c,y=o.toHsb(),b=g,_=(n.x+p)/l*360;if(a)switch(a){case"hue":return yy(z(z({},y),{},{h:_<=0?0:_}));case"alpha":return yy(z(z({},y),{},{a:b<=0?0:b}))}return yy({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}}},Dq=function(t){var n=t.color,r=t.prefixCls,i=t.className,o=t.style,a=t.onClick,s="".concat(r,"-color-block");return pe.createElement("div",{className:Ce(s,i),style:o,onClick:a},pe.createElement("div",{className:"".concat(s,"-inner"),style:{background:n}}))};function uXe(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 fSe(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=h.useState({x:0,y:0}),u=Re(c,2),d=u[0],f=u[1],p=h.useRef(null),m=h.useRef(null);h.useEffect(function(){f(a())},[s]),h.useEffect(function(){return function(){document.removeEventListener("mousemove",p.current),document.removeEventListener("mouseup",m.current),document.removeEventListener("touchmove",p.current),document.removeEventListener("touchend",m.current),p.current=null,m.current=null}},[]);var g=function(S){var x=uXe(S),E=x.pageX,C=x.pageY,w=n.current.getBoundingClientRect(),O=w.x,T=w.y,A=w.width,I=w.height,N=t.current.getBoundingClientRect(),D=N.width,M=N.height,k=D/2,P=M/2,B=Math.max(0,Math.min(E-O,A))-k,G=Math.max(0,Math.min(C-T,I))-P,L={x:B,y:r==="x"?d.y:G};if(D===0&&M===0||D!==M)return!1;i==null||i(L)},v=function(S){S.preventDefault(),g(S)},y=function(S){S.preventDefault(),document.removeEventListener("mousemove",p.current),document.removeEventListener("mouseup",m.current),document.removeEventListener("touchmove",p.current),document.removeEventListener("touchend",m.current),p.current=null,m.current=null,o==null||o()},b=function(S){document.removeEventListener("mousemove",p.current),document.removeEventListener("mouseup",m.current),!l&&(g(S),document.addEventListener("mousemove",v),document.addEventListener("mouseup",y),document.addEventListener("touchmove",v),document.addEventListener("touchend",y),p.current=v,m.current=y)};return[d,b]}var pSe=function(t){var n=t.size,r=n===void 0?"default":n,i=t.color,o=t.prefixCls;return pe.createElement("div",{className:Ce("".concat(o,"-handler"),te({},"".concat(o,"-handler-sm"),r==="small")),style:{backgroundColor:i}})},hSe=function(t){var n=t.children,r=t.style,i=t.prefixCls;return pe.createElement("div",{className:"".concat(i,"-palette"),style:z({position:"relative"},r)},n)},mSe=h.forwardRef(function(e,t){var n=e.children,r=e.x,i=e.y;return pe.createElement("div",{ref:t,style:{position:"absolute",left:"".concat(r,"%"),top:"".concat(i,"%"),zIndex:1,transform:"translate(-50%, -50%)"}},n)}),dXe=function(t){var n=t.color,r=t.onChange,i=t.prefixCls,o=t.onChangeComplete,a=t.disabled,s=h.useRef(),l=h.useRef(),c=h.useRef(n),u=qn(function(g){var v=uSe({offset:g,targetRef:l,containerRef:s,color:n});c.current=v,r(v)}),d=fSe({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=Re(d,2),p=f[0],m=f[1];return pe.createElement("div",{ref:s,className:"".concat(i,"-select"),onMouseDown:m,onTouchStart:m},pe.createElement(hSe,{prefixCls:i},pe.createElement(mSe,{x:p.x,y:p.y,ref:l},pe.createElement(pSe,{color:n.toRgbString(),prefixCls:i})),pe.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))"}})))},fXe=function(t,n){var r=Pn(t,{value:n}),i=Re(r,2),o=i[0],a=i[1],s=h.useMemo(function(){return yy(o)},[o]);return[s,a]},pXe=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=h.useMemo(function(){return n.map(function(c,u){var d=yy(c);return a==="alpha"&&u===n.length-1&&(d=new Od(d.setA(1))),d.toRgbString()}).join(",")},[n,a]);return pe.createElement("div",{className:"".concat(s,"-gradient"),style:{position:"absolute",inset:0,background:"linear-gradient(".concat(o,", ").concat(l,")")}},r)},hXe=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=h.useRef(),u=h.useRef(),d=h.useRef(s),f=function(x){return l==="hue"?x.getHue():x.a*100},p=qn(function(S){var x=uSe({offset:S,targetRef:u,containerRef:c,color:s,type:l});d.current=x,o(f(x))}),m=fSe({color:s,targetRef:u,containerRef:c,calculate:function(){return dSe(s,l)},onDragChange:p,onDragChangeComplete:function(){a(f(d.current))},direction:"x",disabledDrag:i}),g=Re(m,2),v=g[0],y=g[1],b=pe.useMemo(function(){if(l==="hue"){var S=s.toHsb();S.s=1,S.b=1,S.a=1;var x=new Od(S);return x}return s},[s,l]),_=pe.useMemo(function(){return r.map(function(S){return"".concat(S.color," ").concat(S.percent,"%")})},[r]);return pe.createElement("div",{ref:c,className:Ce("".concat(n,"-slider"),"".concat(n,"-slider-").concat(l)),onMouseDown:y,onTouchStart:y},pe.createElement(hSe,{prefixCls:n},pe.createElement(mSe,{x:v.x,y:v.y,ref:u},pe.createElement(pSe,{size:"small",color:b.toHexString(),prefixCls:n})),pe.createElement(pXe,{colors:_,type:l,prefixCls:n})))};function mXe(e){return h.useMemo(function(){var t=e||{},n=t.slider;return[n||hXe]},[e])}var gXe=[{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}],vXe=h.forwardRef(function(e,t){var n=e.value,r=e.defaultValue,i=e.prefixCls,o=i===void 0?lXe: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,p=e.disabled,m=p===void 0?!1:p,g=e.components,v=mXe(g),y=Re(v,1),b=y[0],_=fXe(r||cXe,n),S=Re(_,2),x=S[0],E=S[1],C=h.useMemo(function(){return x.setA(1).toRgbString()},[x]),w=function(G,L){n||E(G),a==null||a(G,L)},O=function(G){return new Od(x.setHue(G))},T=function(G){return new Od(x.setA(G/100))},A=function(G){w(O(G),{type:"hue",value:G})},I=function(G){w(T(G),{type:"alpha",value:G})},N=function(G){s&&s(O(G))},D=function(G){s&&s(T(G))},M=Ce("".concat(o,"-panel"),l,te({},"".concat(o,"-panel-disabled"),m)),k={prefixCls:o,disabled:m,color:x},P=pe.createElement(pe.Fragment,null,pe.createElement(dXe,Xe({onChange:w},k,{onChangeComplete:s})),pe.createElement("div",{className:"".concat(o,"-slider-container")},pe.createElement("div",{className:Ce("".concat(o,"-slider-group"),te({},"".concat(o,"-slider-group-disabled-alpha"),f))},pe.createElement(b,Xe({},k,{type:"hue",colors:gXe,min:0,max:359,value:x.getHue(),onChange:A,onChangeComplete:N})),!f&&pe.createElement(b,Xe({},k,{type:"alpha",colors:[{percent:0,color:"rgba(255, 0, 4, 0)"},{percent:100,color:C}],min:0,max:100,value:x.a*100,onChange:I,onChangeComplete:D}))),pe.createElement(Dq,{color:x.toRgbString(),prefixCls:o})));return pe.createElement("div",{className:M,style:c,ref:t},typeof u=="function"?u(P):P)});const CC=(e,t)=>(e==null?void 0:e.replace(/[^\w/]/g,"").slice(0,t?8:6))||"",bXe=(e,t)=>e?CC(e,t):"";let mc=function(){function e(t){Qr(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(({color:i,percent:o})=>({color:new e(i),percent:o})),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 Xr(e,[{key:"toHsb",value:function(){return this.metaColor.toHsb()}},{key:"toHsbString",value:function(){return this.metaColor.toHsbString()}},{key:"toHex",value:function(){return bXe(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 yXe={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"},_Xe=function(t,n){return h.createElement(Mn,Xe({},t,{ref:n,icon:yXe}))},Rd=h.forwardRef(_Xe),gSe=pe.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=pe.useState(s||r),f=Re(d,2),p=f[0],m=f[1];return pe.useEffect(function(){(r||s)&&m(!0)},[r,s]),p?pe.createElement("div",{ref:t,className:Ce("".concat(n,"-content"),te(te({},"".concat(n,"-content-active"),s),"".concat(n,"-content-inactive"),!s),i),style:o,role:l},pe.createElement("div",{className:Ce("".concat(n,"-content-box"),c==null?void 0:c.body),style:u==null?void 0:u.body},a)):null});gSe.displayName="PanelContent";var SXe=["showArrow","headerClass","isActive","onItemClick","forceRender","className","classNames","styles","prefixCls","collapsible","accordion","panelKey","extra","header","expandIcon","openMotion","destroyInactivePanel","children"],vSe=pe.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,p=e.prefixCls,m=e.collapsible,g=e.accordion,v=e.panelKey,y=e.extra,b=e.header,_=e.expandIcon,S=e.openMotion,x=e.destroyInactivePanel,E=e.children,C=kt(e,SXe),w=m==="disabled",O=y!=null&&typeof y!="boolean",T=te(te(te({onClick:function(){a==null||a(v)},onKeyDown:function(P){(P.key==="Enter"||P.keyCode===Ut.ENTER||P.which===Ut.ENTER)&&(a==null||a(v))},role:g?"tab":"button"},"aria-expanded",o),"aria-disabled",w),"tabIndex",w?-1:0),A=typeof _=="function"?_(e):pe.createElement("i",{className:"arrow"}),I=A&&pe.createElement("div",Xe({className:"".concat(p,"-expand-icon")},["header","icon"].includes(m)?T:{}),A),N=Ce("".concat(p,"-item"),te(te({},"".concat(p,"-item-active"),o),"".concat(p,"-item-disabled"),w),l),D=Ce(i,"".concat(p,"-header"),te({},"".concat(p,"-collapsible-").concat(m),!!m),u.header),M=z({className:D,style:f.header},["header","icon"].includes(m)?{}:T);return pe.createElement("div",Xe({},C,{ref:t,className:N}),pe.createElement("div",M,r&&I,pe.createElement("span",Xe({className:"".concat(p,"-header-text")},m==="header"?T:{}),b),O&&pe.createElement("div",{className:"".concat(p,"-extra")},y)),pe.createElement(ia,Xe({visible:o,leavedClassName:"".concat(p,"-content-hidden")},S,{forceRender:s,removeOnLeave:x}),function(k,P){var B=k.className,G=k.style;return pe.createElement(gSe,{ref:P,prefixCls:p,className:B,classNames:u,style:G,styles:f,isActive:o,forceRender:s,role:g?"tabpanel":void 0},E)}))}),EXe=["children","label","key","collapsible","onItemClick","destroyInactivePanel"],CXe=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 p=d.children,m=d.label,g=d.key,v=d.collapsible,y=d.onItemClick,b=d.destroyInactivePanel,_=kt(d,EXe),S=String(g??f),x=v??o,E=b??a,C=function(T){x!=="disabled"&&(s(T),y==null||y(T))},w=!1;return i?w=l[0]===S:w=l.indexOf(S)>-1,pe.createElement(vSe,Xe({},_,{prefixCls:r,key:S,panelKey:S,isActive:w,accordion:i,openMotion:c,expandIcon:u,header:m,collapsible:x,onItemClick:C,destroyInactivePanel:E}),p)})},xXe=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),p=t.props,m=p.header,g=p.headerClass,v=p.destroyInactivePanel,y=p.collapsible,b=p.onItemClick,_=!1;o?_=c[0]===f:_=c.indexOf(f)>-1;var S=y??a,x=function(w){S!=="disabled"&&(l(w),b==null||b(w))},E={key:f,panelKey:f,header:m,headerClass:g,isActive:_,prefixCls:i,destroyInactivePanel:v??s,openMotion:u,accordion:o,children:t.props.children,onItemClick:x,expandIcon:d,collapsible:S};return typeof t.type=="string"?t:(Object.keys(E).forEach(function(C){typeof E[C]>"u"&&delete E[C]}),pe.cloneElement(t,E))};function wXe(e,t,n){return Array.isArray(e)?CXe(e,n):Do(t).map(function(r,i){return xXe(r,i,n)})}function TXe(e){var t=e;if(!Array.isArray(t)){var n=qt(t);t=n==="number"||n==="string"?[t]:[]}return t.map(function(r){return String(r)})}var OXe=pe.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,p=e.activeKey,m=e.defaultActiveKey,g=e.onChange,v=e.items,y=Ce(r,l),b=Pn([],{value:p,onChange:function(O){return g==null?void 0:g(O)},defaultValue:m,postState:TXe}),_=Re(b,2),S=_[0],x=_[1],E=function(O){return x(function(){if(s)return S[0]===O?[]:[O];var T=S.indexOf(O),A=T>-1;return A?S.filter(function(I){return I!==O}):[].concat(rt(S),[O])})};Vr(!c,"[rc-collapse] `children` will be removed in next major version. Please use `items` instead.");var C=wXe(v,c,{prefixCls:r,accordion:s,openMotion:d,expandIcon:f,collapsible:u,destroyInactivePanel:o,onItemClick:E,activeKey:S});return pe.createElement("div",Xe({ref:t,className:y,style:a,role:s?"tablist":void 0},Oi(e,{aria:!0,data:!0})),C)});const Lq=Object.assign(OXe,{Panel:vSe});Lq.Panel;const RXe=h.forwardRef((e,t)=>{const{getPrefixCls:n}=h.useContext(cn),{prefixCls:r,className:i,showArrow:o=!0}=e,a=n("collapse",r),s=Ce({[`${a}-no-arrow`]:!o},i);return h.createElement(Lq.Panel,Object.assign({ref:t},e,{prefixCls:a,className:s}))}),r2=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"}),IXe=e=>({animationDuration:e,animationFillMode:"both"}),SP=(e,t,n,r,i=!1)=>{const o=i?"&":"";return{[`
${o}${e}-enter,
${o}${e}-appear
`]:Object.assign(Object.assign({},AXe(r)),{animationPlayState:"paused"}),[`${o}${e}-leave`]:Object.assign(Object.assign({},IXe(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"}}},NXe=new fr("antFadeIn",{"0%":{opacity:0},"100%":{opacity:1}}),MXe=new fr("antFadeOut",{"0%":{opacity:1},"100%":{opacity:0}}),$q=(e,t=!1)=>{const{antCls:n}=e,r=`${n}-fade`,i=t?"&":"";return[SP(r,NXe,MXe,e.motionDurationMid,t),{[`
${i}${r}-enter,
${i}${r}-appear
`]:{opacity:0,animationTimingFunction:"linear"},[`${i}${r}-leave`]:{animationTimingFunction:"linear"}}]},kXe=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}}),PXe=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}}),DXe=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}}),LXe=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}}),$Xe=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}}),FXe=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}}),BXe=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}}),HXe=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}}),jXe={"move-up":{inKeyframes:BXe,outKeyframes:HXe},"move-down":{inKeyframes:kXe,outKeyframes:PXe},"move-left":{inKeyframes:DXe,outKeyframes:LXe},"move-right":{inKeyframes:$Xe,outKeyframes:FXe}},p_=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:i,outKeyframes:o}=jXe[t];return[SP(r,i,o,e.motionDurationMid),{[`
${r}-enter,
${r}-appear
`]:{opacity:0,animationTimingFunction:e.motionEaseOutCirc},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},EP=new fr("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),CP=new fr("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),xP=new fr("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),wP=new fr("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),UXe=new fr("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),zXe=new fr("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),VXe=new fr("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),GXe=new fr("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),WXe={"slide-up":{inKeyframes:EP,outKeyframes:CP},"slide-down":{inKeyframes:xP,outKeyframes:wP},"slide-left":{inKeyframes:UXe,outKeyframes:zXe},"slide-right":{inKeyframes:VXe,outKeyframes:GXe}},Lf=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:i,outKeyframes:o}=WXe[t];return[SP(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}}]},Fq=new fr("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),qXe=new fr("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),cre=new fr("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),ure=new fr("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),YXe=new fr("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),KXe=new fr("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),QXe=new fr("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),XXe=new fr("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),ZXe=new fr("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),JXe=new fr("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}}),eZe=new fr("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),tZe=new fr("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}}),nZe={zoom:{inKeyframes:Fq,outKeyframes:qXe},"zoom-big":{inKeyframes:cre,outKeyframes:ure},"zoom-big-fast":{inKeyframes:cre,outKeyframes:ure},"zoom-left":{inKeyframes:QXe,outKeyframes:XXe},"zoom-right":{inKeyframes:ZXe,outKeyframes:JXe},"zoom-up":{inKeyframes:YXe,outKeyframes:KXe},"zoom-down":{inKeyframes:eZe,outKeyframes:tZe}},pS=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:i,outKeyframes:o}=nZe[t];return[SP(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}}]},rZe=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:p,colorTextDisabled:m,fontSizeLG:g,lineHeight:v,lineHeightLG:y,marginSM:b,paddingSM:_,paddingLG:S,paddingXS:x,motionDurationSlow:E,fontSizeIcon:C,contentPadding:w,fontHeight:O,fontHeightLG:T}=e,A=`${Ie(c)} ${u} ${d}`;return{[t]:Object.assign(Object.assign({},mr(e)),{backgroundColor:i,border:A,borderRadius:l,"&-rtl":{direction:"rtl"},[`& > ${t}-item`]:{borderBottom:A,"&:first-child":{[`
&,
& > ${t}-header`]:{borderRadius:`${Ie(l)} ${Ie(l)} 0 0`}},"&:last-child":{[`
&,
& > ${t}-header`]:{borderRadius:`0 0 ${Ie(l)} ${Ie(l)}`}},[`> ${t}-header`]:Object.assign(Object.assign({position:"relative",display:"flex",flexWrap:"nowrap",alignItems:"flex-start",padding:o,color:p,lineHeight:v,cursor:"pointer",transition:`all ${E}, visibility 0s`},tl(e)),{[`> ${t}-header-text`]:{flex:"auto"},[`${t}-expand-icon`]:{height:O,display:"flex",alignItems:"center",paddingInlineEnd:b},[`${t}-arrow`]:Object.assign(Object.assign({},gv()),{fontSize:C,transition:`transform ${E}`,svg:{transition:`transform ${E}`}}),[`${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:A,[`& > ${t}-content-box`]:{padding:w},"&-hidden":{display:"none"}},"&-small":{[`> ${t}-item`]:{[`> ${t}-header`]:{padding:a,paddingInlineStart:x,[`> ${t}-expand-icon`]:{marginInlineStart:e.calc(_).sub(x).equal()}},[`> ${t}-content > ${t}-content-box`]:{padding:_}}},"&-large":{[`> ${t}-item`]:{fontSize:g,lineHeight:y,[`> ${t}-header`]:{padding:s,paddingInlineStart:r,[`> ${t}-expand-icon`]:{height:T,marginInlineStart:e.calc(S).sub(r).equal()}},[`> ${t}-content > ${t}-content-box`]:{padding:S}}},[`${t}-item:last-child`]:{borderBottom:0,[`> ${t}-content`]:{borderRadius:`0 0 ${Ie(l)} ${Ie(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}}}}})}},iZe=e=>{const{componentCls:t}=e,n=`> ${t}-item > ${t}-header ${t}-arrow`;return{[`${t}-rtl`]:{[n]:{transform:"rotate(180deg)"}}}},oZe=e=>{const{componentCls:t,headerBg:n,borderlessContentPadding:r,borderlessContentBg:i,colorBorder:o}=e;return{[`${t}-borderless`]:{backgroundColor:n,border:0,[`> ${t}-item`]:{borderBottom:`1px solid ${o}`},[`
> ${t}-item:last-child,
> ${t}-item:last-child ${t}-header
`]:{borderRadius:0},[`> ${t}-item:last-child`]:{borderBottom:0},[`> ${t}-item > ${t}-content`]:{backgroundColor:i,borderTop:0},[`> ${t}-item > ${t}-content > ${t}-content-box`]:{padding:r}}}},aZe=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}}}}}},sZe=e=>({headerPadding:`${e.paddingSM}px ${e.padding}px`,headerBg:e.colorFillAlter,contentPadding:`${e.padding}px 16px`,contentBg:e.colorBgContainer,borderlessContentPadding:`${e.paddingXXS}px 16px ${e.padding}px`,borderlessContentBg:"transparent"}),lZe=ir("Collapse",e=>{const t=Un(e,{collapseHeaderPaddingSM:`${Ie(e.paddingXS)} ${Ie(e.paddingSM)}`,collapseHeaderPaddingLG:`${Ie(e.padding)} ${Ie(e.paddingLG)}`,collapsePanelBorderRadius:e.borderRadiusLG});return[rZe(t),oZe(t),aZe(t),iZe(t),r2(t)]},sZe),cZe=h.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r,expandIcon:i,className:o,style:a}=Vi("collapse"),{prefixCls:s,className:l,rootClassName:c,style:u,bordered:d=!0,ghost:f,size:p,expandIconPosition:m="start",children:g,destroyInactivePanel:v,destroyOnHidden:y,expandIcon:b}=e,_=mo(M=>{var k;return(k=p??M)!==null&&k!==void 0?k:"middle"}),S=n("collapse",s),x=n(),[E,C,w]=lZe(S),O=h.useMemo(()=>m==="left"?"start":m==="right"?"end":m,[m]),T=b??i,A=h.useCallback((M={})=>{const k=typeof T=="function"?T(M):h.createElement(Rd,{rotate:M.isActive?r==="rtl"?-90:90:void 0,"aria-label":M.isActive?"expanded":"collapsed"});return wo(k,()=>{var P;return{className:Ce((P=k==null?void 0:k.props)===null||P===void 0?void 0:P.className,`${S}-arrow`)}})},[T,S]),I=Ce(`${S}-icon-position-${O}`,{[`${S}-borderless`]:!d,[`${S}-rtl`]:r==="rtl",[`${S}-ghost`]:!!f,[`${S}-${_}`]:_!=="middle"},o,l,c,C,w),N=Object.assign(Object.assign({},f_(x)),{motionAppear:!1,leavedClassName:`${S}-content-hidden`}),D=h.useMemo(()=>g?Do(g).map((M,k)=>{var P,B;const G=M.props;if(G!=null&&G.disabled){const L=(P=M.key)!==null&&P!==void 0?P:String(k),W=Object.assign(Object.assign({},ur(M.props,["disabled"])),{key:L,collapsible:(B=G.collapsible)!==null&&B!==void 0?B:"disabled"});return wo(M,W)}return M}):null,[g]);return E(h.createElement(Lq,Object.assign({ref:t,openMotion:N},ur(e,["rootClassName"]),{expandIcon:A,prefixCls:S,className:I,style:Object.assign(Object.assign({},a),u),destroyInactivePanel:y??v}),D))}),uZe=Object.assign(cZe,{Panel:RXe}),Ps=e=>e instanceof mc?e:new mc(e),RI=e=>Math.round(Number(e||0)),Bq=e=>RI(e.toHsb().a*100),AI=(e,t)=>{const n=e.toRgb();if(!n.r&&!n.g&&!n.b){const r=e.toHsb();return r.a=1,Ps(r)}return n.a=1,Ps(n)},bSe=(e,t)=>{const n=[{percent:0,color:e[0].color}].concat(rt(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""},Q6=e=>e.map(t=>(t.colors=t.colors.map(Ps),t)),ySe=(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},dre=(e,t)=>{var n;return`panel-${(n=e.key)!==null&&n!==void 0?n:t}`},dZe=({prefixCls:e,presets:t,value:n,onChange:r})=>{const[i]=Ma("ColorPicker"),[,o]=Ko(),[a]=Pn(Q6(t),{value:Q6(t),postState:Q6}),s=`${e}-presets`,l=h.useMemo(()=>a.reduce((d,f,p)=>{const{defaultOpen:m=!0}=f;return m&&d.push(dre(f,p)),d},[]),[a]),c=d=>{r==null||r(d)},u=a.map((d,f)=>{var p;return{key:dre(d,f),label:pe.createElement("div",{className:`${s}-label`},d==null?void 0:d.label),children:pe.createElement("div",{className:`${s}-items`},Array.isArray(d==null?void 0:d.colors)&&((p=d.colors)===null||p===void 0?void 0:p.length)>0?d.colors.map((m,g)=>pe.createElement(Dq,{key:`preset-${g}-${m.toHexString()}`,color:Ps(m).toRgbString(),prefixCls:e,className:Ce(`${s}-color`,{[`${s}-color-checked`]:m.toHexString()===(n==null?void 0:n.toHexString()),[`${s}-color-bright`]:ySe(m,o.colorBgElevated)}),onClick:()=>c(m)})):pe.createElement("span",{className:`${s}-empty`},i.presetEmpty))}});return pe.createElement("div",{className:s},pe.createElement(uZe,{defaultActiveKey:l,ghost:!0,items:u}))},_Se=e=>{const{paddingInline:t,onlyIconSize:n}=e;return Un(e,{buttonPaddingHorizontal:t,buttonPaddingVertical:0,buttonIconOnlyFontSize:n})},SSe=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:TI(s),d=(o=e.contentLineHeightSM)!==null&&o!==void 0?o:TI(l),f=(a=e.contentLineHeightLG)!==null&&a!==void 0?a:TI(c),p=ySe(new mc(e.colorBgSolid),"#fff")?"#000":"#fff",m=hg.reduce((g,v)=>Object.assign(Object.assign({},g),{[`${v}ShadowColor`]:`0 ${Ie(e.controlOutlineWidth)} 0 ${EC(e[`${v}1`],e.colorBgContainer)}`}),{});return Object.assign(Object.assign({},m),{fontWeight:400,defaultShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlTmpOutline}`,primaryShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlOutline}`,dangerShadow:`0 ${e.controlOutlineWidth}px 0 ${e.colorErrorOutline}`,primaryColor:e.colorTextLightSolid,dangerColor:e.colorTextLightSolid,borderColorDisabled:e.colorBorder,defaultGhostColor:e.colorBgContainer,ghostBg:"transparent",defaultGhostBorderColor:e.colorBgContainer,paddingInline:e.paddingContentHorizontal-e.lineWidth,paddingInlineLG:e.paddingContentHorizontal-e.lineWidth,paddingInlineSM:8-e.lineWidth,onlyIconSize:"inherit",onlyIconSizeSM:"inherit",onlyIconSizeLG:"inherit",groupBorderColor:e.colorPrimaryHover,linkHoverBg:"transparent",textTextColor:e.colorText,textTextHoverColor:e.colorText,textTextActiveColor:e.colorText,textHoverBg:e.colorFillTertiary,defaultColor:e.colorText,defaultBg:e.colorBgContainer,defaultBorderColor:e.colorBorder,defaultBorderColorDisabled:e.colorBorder,defaultHoverBg:e.colorBgContainer,defaultHoverColor:e.colorPrimaryHover,defaultHoverBorderColor:e.colorPrimaryHover,defaultActiveBg:e.colorBgContainer,defaultActiveColor:e.colorPrimaryActive,defaultActiveBorderColor:e.colorPrimaryActive,solidTextColor:p,contentFontSize:s,contentFontSizeSM:l,contentFontSizeLG:c,contentLineHeight:u,contentLineHeightSM:d,contentLineHeightLG: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)})},fZe=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:`${Ie(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`]:gv(),"> a":{color:"currentColor"},"&:not(:disabled)":tl(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()}}}}}},ESe=(e,t,n)=>({[`&:not(:disabled):not(${e}-disabled)`]:{"&:hover":t,"&:active":n}}),pZe=e=>({minWidth:e.controlHeight,paddingInlineStart:0,paddingInlineEnd:0,borderRadius:"50%"}),hZe=e=>({borderRadius:e.controlHeight,paddingInlineStart:e.calc(e.controlHeight).div(2).equal(),paddingInlineEnd:e.calc(e.controlHeight).div(2).equal()}),mZe=e=>({cursor:"not-allowed",borderColor:e.borderColorDisabled,color:e.colorTextDisabled,background:e.colorBgContainerDisabled,boxShadow:"none"}),TP=(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"},ESe(e,Object.assign({background:t},a),Object.assign({background:t},s))),{"&:disabled":{cursor:"not-allowed",color:i||void 0,borderColor:o||void 0}})}),gZe=e=>({[`&:disabled, &${e.componentCls}-disabled`]:Object.assign({},mZe(e))}),vZe=e=>({[`&:disabled, &${e.componentCls}-disabled`]:{cursor:"not-allowed",color:e.colorTextDisabled}}),OP=(e,t,n,r)=>{const o=r&&["link","text"].includes(r)?vZe:gZe;return Object.assign(Object.assign({},o(e)),ESe(e.componentCls,t,n))},RP=(e,t,n,r,i)=>({[`&${e.componentCls}-variant-solid`]:Object.assign({color:t,background:n},OP(e,r,i))}),AP=(e,t,n,r,i)=>({[`&${e.componentCls}-variant-outlined, &${e.componentCls}-variant-dashed`]:Object.assign({borderColor:t,background:n},OP(e,r,i))}),IP=e=>({[`&${e.componentCls}-variant-dashed`]:{borderStyle:"dashed"}}),NP=(e,t,n,r)=>({[`&${e.componentCls}-variant-filled`]:Object.assign({boxShadow:"none",background:t},OP(e,n,r))}),$f=(e,t,n,r,i)=>({[`&${e.componentCls}-variant-${n}`]:Object.assign({color:t,boxShadow:"none"},OP(e,r,i,n))}),bZe=e=>{const{componentCls:t}=e;return hg.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`];return Object.assign(Object.assign({},n),{[`&${t}-color-${r}`]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:i,boxShadow:e[`${r}ShadowColor`]},RP(e,e.colorTextLightSolid,i,{background:a},{background:c})),AP(e,i,e.colorBgContainer,{color:a,borderColor:a,background:e.colorBgContainer},{color:c,borderColor:c,background:e.colorBgContainer})),IP(e)),NP(e,o,{background:s},{background:l})),$f(e,i,"link",{color:a},{color:c})),$f(e,i,"text",{color:a,background:o},{color:c,background:l}))})},{})},yZe=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.defaultColor,boxShadow:e.defaultShadow},RP(e,e.solidTextColor,e.colorBgSolid,{color:e.solidTextColor,background:e.colorBgSolidHover},{color:e.solidTextColor,background:e.colorBgSolidActive})),IP(e)),NP(e,e.colorFillTertiary,{background:e.colorFillSecondary},{background:e.colorFill})),TP(e.componentCls,e.ghostBg,e.defaultGhostColor,e.defaultGhostBorderColor,e.colorTextDisabled,e.colorBorder)),$f(e,e.textTextColor,"link",{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),_Ze=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorPrimary,boxShadow:e.primaryShadow},AP(e,e.colorPrimary,e.colorBgContainer,{color:e.colorPrimaryTextHover,borderColor:e.colorPrimaryHover,background:e.colorBgContainer},{color:e.colorPrimaryTextActive,borderColor:e.colorPrimaryActive,background:e.colorBgContainer})),IP(e)),NP(e,e.colorPrimaryBg,{background:e.colorPrimaryBgHover},{background:e.colorPrimaryBorder})),$f(e,e.colorPrimaryText,"text",{color:e.colorPrimaryTextHover,background:e.colorPrimaryBg},{color:e.colorPrimaryTextActive,background:e.colorPrimaryBorder})),$f(e,e.colorPrimaryText,"link",{color:e.colorPrimaryTextHover,background:e.linkHoverBg},{color:e.colorPrimaryTextActive})),TP(e.componentCls,e.ghostBg,e.colorPrimary,e.colorPrimary,e.colorTextDisabled,e.colorBorder,{color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),SZe=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorError,boxShadow:e.dangerShadow},RP(e,e.dangerColor,e.colorError,{background:e.colorErrorHover},{background:e.colorErrorActive})),AP(e,e.colorError,e.colorBgContainer,{color:e.colorErrorHover,borderColor:e.colorErrorBorderHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),IP(e)),NP(e,e.colorErrorBg,{background:e.colorErrorBgFilledHover},{background:e.colorErrorBgActive})),$f(e,e.colorError,"text",{color:e.colorErrorHover,background:e.colorErrorBg},{color:e.colorErrorHover,background:e.colorErrorBgActive})),$f(e,e.colorError,"link",{color:e.colorErrorHover},{color:e.colorErrorActive})),TP(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder,{color:e.colorErrorHover,borderColor:e.colorErrorHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),EZe=e=>Object.assign(Object.assign({},$f(e,e.colorLink,"link",{color:e.colorLinkHover},{color:e.colorLinkActive})),TP(e.componentCls,e.ghostBg,e.colorInfo,e.colorInfo,e.colorTextDisabled,e.colorBorder,{color:e.colorInfoHover,borderColor:e.colorInfoHover},{color:e.colorInfoActive,borderColor:e.colorInfoActive})),CZe=e=>{const{componentCls:t}=e;return Object.assign({[`${t}-color-default`]:yZe(e),[`${t}-color-primary`]:_Ze(e),[`${t}-color-dangerous`]:SZe(e),[`${t}-color-link`]:EZe(e)},bZe(e))},xZe=e=>Object.assign(Object.assign(Object.assign(Object.assign({},AP(e,e.defaultBorderColor,e.defaultBg,{color:e.defaultHoverColor,borderColor:e.defaultHoverBorderColor,background:e.defaultHoverBg},{color:e.defaultActiveColor,borderColor:e.defaultActiveBorderColor,background:e.defaultActiveBg})),$f(e,e.textTextColor,"text",{color:e.textTextHoverColor,background:e.textHoverBg},{color:e.textTextActiveColor,background:e.colorBgTextActive})),RP(e,e.primaryColor,e.colorPrimary,{background:e.colorPrimaryHover,color:e.primaryColor},{background:e.colorPrimaryActive,color:e.primaryColor})),$f(e,e.colorLink,"link",{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),Hq=(e,t="")=>{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:`${Ie(l)} ${Ie(a)}`,borderRadius:o,[`&${n}-icon-only`]:{width:r,[s]:{fontSize:c}}}},{[`${n}${n}-circle${t}`]:pZe(e)},{[`${n}${n}-round${t}`]:hZe(e)}]},wZe=e=>{const t=Un(e,{fontSize:e.contentFontSize});return Hq(t,e.componentCls)},TZe=e=>{const t=Un(e,{controlHeight:e.controlHeightSM,fontSize:e.contentFontSizeSM,padding:e.paddingXS,buttonPaddingHorizontal:e.paddingInlineSM,buttonPaddingVertical:0,borderRadius:e.borderRadiusSM,buttonIconOnlyFontSize:e.onlyIconSizeSM});return Hq(t,`${e.componentCls}-sm`)},OZe=e=>{const t=Un(e,{controlHeight:e.controlHeightLG,fontSize:e.contentFontSizeLG,buttonPaddingHorizontal:e.paddingInlineLG,buttonPaddingVertical:0,borderRadius:e.borderRadiusLG,buttonIconOnlyFontSize:e.onlyIconSizeLG});return Hq(t,`${e.componentCls}-lg`)},RZe=e=>{const{componentCls:t}=e;return{[t]:{[`&${t}-block`]:{width:"100%"}}}},AZe=ir("Button",e=>{const t=_Se(e);return[fZe(t),wZe(t),TZe(t),OZe(t),RZe(t),CZe(t),xZe(t),iXe(t)]},SSe,{unitless:{fontWeight:!0,contentLineHeight:!0,contentLineHeightSM:!0,contentLineHeightLG:!0}});function IZe(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 NZe(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 bv(e,t={focus:!0}){const{componentCls:n}=e,r=`${n}-compact`;return{[r]:Object.assign(Object.assign({},IZe(e,r,t)),NZe(n,r,t))}}function MZe(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 kZe(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 PZe(e){const t=`${e.componentCls}-compact-vertical`;return{[t]:Object.assign(Object.assign({},MZe(e,t)),kZe(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))},LZe=uS(["Button","compact"],e=>{const t=_Se(e);return[bv(t),PZe(t),DZe(t)]},SSe);var $Ze=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);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 FZe(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 BZe={default:["default","outlined"],primary:["primary","solid"],dashed:["default","dashed"],link:["link","link"],text:["default","text"]},HZe=pe.forwardRef((e,t)=>{var n,r;const{loading:i=!1,prefixCls:o,color:a,variant:s,type:l,danger:c=!1,shape:u="default",size:d,styles:f,disabled:p,className:m,rootClassName:g,children:v,icon:y,iconPosition:b="start",ghost:_=!1,block:S=!1,htmlType:x="button",classNames:E,style:C={},autoInsertSpace:w,autoFocus:O}=e,T=$Ze(e,["loading","prefixCls","color","variant","type","danger","shape","size","styles","disabled","className","rootClassName","children","icon","iconPosition","ghost","block","htmlType","classNames","style","autoInsertSpace","autoFocus"]),A=l||"default",{button:I}=pe.useContext(cn),[N,D]=h.useMemo(()=>{if(a&&s)return[a,s];if(l||c){const Fe=BZe[A]||[];return c?["danger",Fe[1]]:Fe}return I!=null&&I.color&&(I!=null&&I.variant)?[I.color,I.variant]:["default","outlined"]},[l,a,s,c,I==null?void 0:I.variant,I==null?void 0:I.color]),k=N==="danger"?"dangerous":N,{getPrefixCls:P,direction:B,autoInsertSpace:G,className:L,style:W,classNames:j,styles:H}=Vi("button"),X=(n=w??G)!==null&&n!==void 0?n:!0,Q=P("btn",o),[ue,ee,K]=AZe(Q),se=h.useContext(Yo),le=p??se,oe=h.useContext(cSe),ne=h.useMemo(()=>FZe(i),[i]),[he,me]=h.useState(ne.loading),[ce,re]=h.useState(!1),ve=h.useRef(null),be=Bd(t,ve),xe=h.Children.count(v)===1&&!y&&!W6(D),we=h.useRef(!0);pe.useEffect(()=>(we.current=!1,()=>{we.current=!0}),[]),h.useLayoutEffect(()=>{let Fe=null;ne.delay>0?Fe=setTimeout(()=>{Fe=null,me(!0)},ne.delay):me(ne.loading);function Pe(){Fe&&(clearTimeout(Fe),Fe=null)}return Pe},[ne.delay,ne.loading]),h.useEffect(()=>{if(!ve.current||!X)return;const Fe=ve.current.textContent||"";xe&&_H(Fe)?ce||re(!0):ce&&re(!1)}),h.useEffect(()=>{O&&ve.current&&ve.current.focus()},[]);const de=pe.useCallback(Fe=>{var Pe;if(he||le){Fe.preventDefault();return}(Pe=e.onClick)===null||Pe===void 0||Pe.call(e,("href"in e,Fe))},[e.onClick,he,le]),{compactSize:Ee,compactItemClassnames:Ne}=Ru(Q,B),Te={large:"lg",small:"sm",middle:void 0},Ve=mo(Fe=>{var Pe,Ke;return(Ke=(Pe=d??Ee)!==null&&Pe!==void 0?Pe:oe)!==null&&Ke!==void 0?Ke:Fe}),q=Ve&&(r=Te[Ve])!==null&&r!==void 0?r:"",U=he?"loading":y,Y=ur(T,["navigate"]),ae=Ce(Q,ee,K,{[`${Q}-${u}`]:u!=="default"&&u,[`${Q}-${A}`]:A,[`${Q}-dangerous`]:c,[`${Q}-color-${k}`]:k,[`${Q}-variant-${D}`]:D,[`${Q}-${q}`]:q,[`${Q}-icon-only`]:!v&&v!==0&&!!U,[`${Q}-background-ghost`]:_&&!W6(D),[`${Q}-loading`]:he,[`${Q}-two-chinese-chars`]:ce&&X&&!he,[`${Q}-block`]:S,[`${Q}-rtl`]:B==="rtl",[`${Q}-icon-end`]:b==="end"},Ne,m,g,L),ye=Object.assign(Object.assign({},W),C),fe=Ce(E==null?void 0:E.icon,j.icon),Ae=Object.assign(Object.assign({},(f==null?void 0:f.icon)||{}),H.icon||{}),We=y&&!he?pe.createElement(SH,{prefixCls:Q,className:fe,style:Ae},y):i&&typeof i=="object"&&i.icon?pe.createElement(SH,{prefixCls:Q,className:fe,style:Ae},i.icon):pe.createElement(rXe,{existIcon:!!y,prefixCls:Q,loading:he,mount:we.current}),ie=v||v===0?nXe(v,xe&&X):null;if(Y.href!==void 0)return ue(pe.createElement("a",Object.assign({},Y,{className:Ce(ae,{[`${Q}-disabled`]:le}),href:le?void 0:Y.href,style:ye,onClick:de,ref:be,tabIndex:le?-1:0}),We,ie));let Be=pe.createElement("button",Object.assign({},T,{type:x,className:ae,style:ye,onClick:de,disabled:le,ref:be}),We,ie,Ne&&pe.createElement(LZe,{prefixCls:Q}));return W6(D)||(Be=pe.createElement(n2,{component:"Button",disabled:he},Be)),ue(Be)}),Dn=HZe;Dn.Group=eXe;Dn.__ANT_BUTTON=!0;function X6(e){return!!(e!=null&&e.then)}const jq=e=>{const{type:t,children:n,prefixCls:r,buttonProps:i,close:o,autoFocus:a,emitEvent:s,isSilent:l,quitOnNullishReturnValue:c,actionFn:u}=e,d=h.useRef(!1),f=h.useRef(null),[p,m]=B1(!1),g=(...b)=>{o==null||o.apply(void 0,b)};h.useEffect(()=>{let b=null;return a&&(b=setTimeout(()=>{var _;(_=f.current)===null||_===void 0||_.focus({preventScroll:!0})})),()=>{b&&clearTimeout(b)}},[]);const v=b=>{X6(b)&&(m(!0),b.then((..._)=>{m(!1,!0),g.apply(void 0,_),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&&!X6(_)){d.current=!1,g(b);return}}else if(u.length)_=u(o),d.current=!1;else if(_=u(),!X6(_)){g();return}v(_)};return h.createElement(Dn,Object.assign({},Pq(t),{onClick:y,loading:p,prefixCls:r},i,{ref:f}),n)},i2=pe.createContext({}),{Provider:CSe}=i2,fre=()=>{const{autoFocusButton:e,cancelButtonProps:t,cancelTextLocale:n,isSilent:r,mergedOkCancel:i,rootPrefixCls:o,close:a,onCancel:s,onConfirm:l}=h.useContext(i2);return i?pe.createElement(jq,{isSilent:r,actionFn:s,close:(...c)=>{a==null||a.apply(void 0,c),l==null||l(!1)},autoFocus:e==="cancel",buttonProps:t,prefixCls:`${o}-btn`},n):null},pre=()=>{const{autoFocusButton:e,close:t,isSilent:n,okButtonProps:r,rootPrefixCls:i,okTextLocale:o,okType:a,onConfirm:s,onOk:l}=h.useContext(i2);return pe.createElement(jq,{isSilent:n,type:a||"primary",actionFn:l,close:(...c)=>{t==null||t.apply(void 0,c),s==null||s(!0)},autoFocus:e==="ok",buttonProps:r,prefixCls:`${i}-btn`},o)};var xSe=h.createContext(null),hre=[];function jZe(e,t){var n=h.useState(function(){if(!Aa())return null;var m=document.createElement("div");return m}),r=Re(n,1),i=r[0],o=h.useRef(!1),a=h.useContext(xSe),s=h.useState(hre),l=Re(s,2),c=l[0],u=l[1],d=a||(o.current?void 0:function(m){u(function(g){var v=[m].concat(rt(g));return v})});function f(){i.parentElement||document.body.appendChild(i),o.current=!0}function p(){var m;(m=i.parentElement)===null||m===void 0||m.removeChild(i),o.current=!1}return er(function(){return e?a?a(f):f():p(),p},[e]),er(function(){c.length&&(c.forEach(function(m){return m()}),u(hre))},[c]),[i,d]}var Z6;function wSe(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,";"):"";If(`
#`.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,p=e&&o&&!isNaN(o)?o:n.offsetHeight-n.clientHeight;return document.body.removeChild(n),i_(t),{width:f,height:p}}function mre(e){return typeof document>"u"?0:(Z6===void 0&&(Z6=wSe()),Z6.width)}function EH(e){return typeof document>"u"||!e||!(e instanceof Element)?{width:0,height:0}:wSe(e)}function UZe(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}var zZe="rc-util-locker-".concat(Date.now()),gre=0;function VZe(e){var t=!!e,n=h.useState(function(){return gre+=1,"".concat(zZe,"_").concat(gre)}),r=Re(n,1),i=r[0];er(function(){if(t){var o=EH(document.body).width,a=UZe();If(`
html body {
overflow-y: hidden;
`.concat(a?"width: calc(100% - ".concat(o,"px);"):"",`
}`),i)}else i_(i);return function(){i_(i)}},[t,i])}var GZe=!1;function WZe(e){return GZe}var vre=function(t){return t===!1?!1:!Aa()||!t?null:typeof t=="string"?document.querySelector(t):typeof t=="function"?t():t},o2=h.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=h.useState(n),c=Re(l,2),u=c[0],d=c[1],f=u||n;h.useEffect(function(){(a||n)&&d(n)},[n,a]);var p=h.useState(function(){return vre(i)}),m=Re(p,2),g=m[0],v=m[1];h.useEffect(function(){var A=vre(i);v(A??null)});var y=jZe(f&&!g),b=Re(y,2),_=b[0],S=b[1],x=g??_;VZe(r&&n&&Aa()&&(x===_||x===document.body));var E=null;if(s&&Cd(s)&&t){var C=s;E=C.ref}var w=Bd(E,t);if(!f||!Aa()||g===void 0)return null;var O=x===!1||WZe(),T=s;return t&&(T=h.cloneElement(s,{ref:w})),h.createElement(xSe.Provider,{value:S},O?T:Fl.createPortal(T,x))}),TSe=h.createContext({});function qZe(){var e=z({},DT);return e.useId}var bre=0,yre=qZe();const a2=yre?function(t){var n=yre();return t||n}:function(t){var n=h.useState("ssr-id"),r=Re(n,2),i=r[0],o=r[1];return h.useEffect(function(){var a=bre;bre+=1,o("rc_unique_".concat(a))},[]),t||i};function _re(e,t,n){var r=t;return!r&&n&&(r="".concat(e,"-").concat(n)),r}function Sre(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 YZe(e){var t=e.getBoundingClientRect(),n={left:t.left,top:t.top},r=e.ownerDocument,i=r.defaultView||r.parentWindow;return n.left+=Sre(i),n.top+=Sre(i,!0),n}const KZe=h.memo(function(e){var t=e.children;return t},function(e,t){var n=t.shouldUpdate;return!n});var QZe={width:0,height:0,overflow:"hidden",outline:"none"},XZe={outline:"none"},OSe=pe.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,p=e.bodyProps,m=e.modalRender,g=e.onMouseDown,v=e.onMouseUp,y=e.holderRef,b=e.visible,_=e.forceRender,S=e.width,x=e.height,E=e.classNames,C=e.styles,w=pe.useContext(TSe),O=w.panel,T=Bd(y,O),A=h.useRef(),I=h.useRef();pe.useImperativeHandle(t,function(){return{focus:function(){var j;(j=A.current)===null||j===void 0||j.focus({preventScroll:!0})},changeActive:function(j){var H=document,X=H.activeElement;j&&X===I.current?A.current.focus({preventScroll:!0}):!j&&X===A.current&&I.current.focus({preventScroll:!0})}}});var N={};S!==void 0&&(N.width=S),x!==void 0&&(N.height=x);var D=s?pe.createElement("div",{className:Ce("".concat(n,"-footer"),E==null?void 0:E.footer),style:z({},C==null?void 0:C.footer)},s):null,M=o?pe.createElement("div",{className:Ce("".concat(n,"-header"),E==null?void 0:E.header),style:z({},C==null?void 0:C.header)},pe.createElement("div",{className:"".concat(n,"-title"),id:a},o)):null,k=h.useMemo(function(){return qt(l)==="object"&&l!==null?l:l?{closeIcon:c??pe.createElement("span",{className:"".concat(n,"-close-x")})}:{}},[l,c,n]),P=Oi(k,!0),B=qt(l)==="object"&&l.disabled,G=l?pe.createElement("button",Xe({type:"button",onClick:u,"aria-label":"Close"},P,{className:"".concat(n,"-close"),disabled:B}),k.closeIcon):null,L=pe.createElement("div",{className:Ce("".concat(n,"-content"),E==null?void 0:E.content),style:C==null?void 0:C.content},G,M,pe.createElement("div",Xe({className:Ce("".concat(n,"-body"),E==null?void 0:E.body),style:z(z({},f),C==null?void 0:C.body)},p),d),D);return pe.createElement("div",{key:"dialog-element",role:"dialog","aria-labelledby":o?a:null,"aria-modal":"true",ref:T,style:z(z({},i),N),className:Ce(n,r),onMouseDown:g,onMouseUp:v},pe.createElement("div",{ref:A,tabIndex:0,style:XZe},pe.createElement(KZe,{shouldUpdate:b||_},m?m(L):L)),pe.createElement("div",{tabIndex:0,ref:I,style:QZe}))}),RSe=h.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,p=h.useRef(),m=h.useState(),g=Re(m,2),v=g[0],y=g[1],b={};v&&(b.transformOrigin=v);function _(){var S=YZe(p.current);y(f&&(f.x||f.y)?"".concat(f.x-S.left,"px ").concat(f.y-S.top,"px"):"")}return h.createElement(ia,{visible:a,onVisibleChanged:d,onAppearPrepare:_,onEnterPrepare:_,forceRender:s,motionName:c,removeOnLeave:l,ref:p},function(S,x){var E=S.className,C=S.style;return h.createElement(OSe,Xe({},e,{ref:t,title:r,ariaId:u,prefixCls:n,holderRef:x,style:z(z(z({},C),i),b),className:Ce(o,E)}))})});RSe.displayName="Content";var ZZe=function(t){var n=t.prefixCls,r=t.style,i=t.visible,o=t.maskProps,a=t.motionName,s=t.className;return h.createElement(ia,{key:"mask",visible:i,motionName:a,leavedClassName:"".concat(n,"-mask-hidden")},function(l,c){var u=l.className,d=l.style;return h.createElement("div",Xe({ref:c,style:z(z({},d),r),className:Ce("".concat(n,"-mask"),u,s)},o))})},JZe=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,p=t.wrapProps,m=t.onClose,g=t.afterOpenChange,v=t.afterClose,y=t.transitionName,b=t.animation,_=t.closable,S=_===void 0?!0:_,x=t.mask,E=x===void 0?!0:x,C=t.maskTransitionName,w=t.maskAnimation,O=t.maskClosable,T=O===void 0?!0:O,A=t.maskStyle,I=t.maskProps,N=t.rootClassName,D=t.classNames,M=t.styles,k=h.useRef(),P=h.useRef(),B=h.useRef(),G=h.useState(a),L=Re(G,2),W=L[0],j=L[1],H=a2();function X(){rH(P.current,document.activeElement)||(k.current=document.activeElement)}function Q(){if(!rH(P.current,document.activeElement)){var ce;(ce=B.current)===null||ce===void 0||ce.focus()}}function ue(ce){if(ce)Q();else{if(j(!1),E&&k.current&&u){try{k.current.focus({preventScroll:!0})}catch{}k.current=null}W&&(v==null||v())}g==null||g(ce)}function ee(ce){m==null||m(ce)}var K=h.useRef(!1),se=h.useRef(),le=function(){clearTimeout(se.current),K.current=!0},oe=function(){se.current=setTimeout(function(){K.current=!1})},ne=null;T&&(ne=function(re){K.current?K.current=!1:P.current===re.target&&ee(re)});function he(ce){if(l&&ce.keyCode===Ut.ESC){ce.stopPropagation(),ee(ce);return}a&&ce.keyCode===Ut.TAB&&B.current.changeActive(!ce.shiftKey)}h.useEffect(function(){a&&(j(!0),X())},[a]),h.useEffect(function(){return function(){clearTimeout(se.current)}},[]);var me=z(z(z({zIndex:i},d),M==null?void 0:M.wrapper),{},{display:W?null:"none"});return h.createElement("div",Xe({className:Ce("".concat(r,"-root"),N)},Oi(t,{data:!0})),h.createElement(ZZe,{prefixCls:r,visible:E&&a,motionName:_re(r,C,w),style:z(z({zIndex:i},A),M==null?void 0:M.mask),maskProps:I,className:D==null?void 0:D.mask}),h.createElement("div",Xe({tabIndex:-1,onKeyDown:he,className:Ce("".concat(r,"-wrap"),f,D==null?void 0:D.wrapper),ref:P,onClick:ne,style:me},p),h.createElement(RSe,Xe({},t,{onMouseDown:le,onMouseUp:oe,ref:B,closable:S,ariaId:H,prefixCls:r,visible:a&&W,onClose:ee,onVisibleChanged:ue,motionName:_re(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=h.useState(n),u=Re(c,2),d=u[0],f=u[1],p=h.useMemo(function(){return{panel:l}},[l]);return h.useEffect(function(){n&&f(!0)},[n]),!i&&a&&!d?null:h.createElement(TSe.Provider,{value:p},h.createElement(o2,{open:n||i||d,autoDestroy:!1,getContainer:r,autoLock:n||d},h.createElement(JZe,Xe({},t,{destroyOnClose:a,afterClose:function(){s==null||s(),f(!1)}}))))};Uq.displayName="Dialog";var L0="RC_FORM_INTERNAL_HOOKS",Ni=function(){Vr(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")},mg=h.createContext({getFieldValue:Ni,getFieldsValue:Ni,getFieldError:Ni,getFieldWarning:Ni,getFieldsError:Ni,isFieldsTouched:Ni,isFieldTouched:Ni,isFieldValidating:Ni,isFieldsValidating:Ni,resetFields:Ni,setFields:Ni,setFieldValue:Ni,setFieldsValue:Ni,validateFields:Ni,submit:Ni,getInternalHooks:function(){return Ni(),{dispatch:Ni,initEntityValue:Ni,registerField:Ni,useSubscribe:Ni,setInitialValues:Ni,destroyForm:Ni,setCallbacks:Ni,registerWatch:Ni,getFields:Ni,setValidateMessages:Ni,setPreserve:Ni,getInitialValue:Ni}}}),Pw=h.createContext(null);function CH(e){return e==null?[]:Array.isArray(e)?e:[e]}function eJe(e){return e&&!!e._init}function xH(){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 wH=xH();function tJe(e){try{return Function.toString.call(e).indexOf("[native code]")!==-1}catch{return typeof e=="function"}}function nJe(e,t,n){if(sP())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,t);var i=new(e.bind.apply(e,r));return n&&Tw(i,n.prototype),i}function TH(e){var t=typeof Map=="function"?new Map:void 0;return TH=function(r){if(r===null||!tJe(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 nJe(r,arguments,L1(this).constructor)}return i.prototype=Object.create(r.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),Tw(i,r)},TH(e)}var rJe=/%[sdj%]/g,iJe=function(){};function OH(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 gc(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(rJe,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 oJe(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"}function Ia(e,t){return!!(e==null||t==="array"&&Array.isArray(e)&&!e.length||oJe(t)&&typeof e=="string"&&!e)}function aJe(e,t,n){var r=[],i=0,o=e.length;function a(s){r.push.apply(r,rt(s||[])),i++,i===o&&n(r)}e.forEach(function(s){t(s,a)})}function Ere(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 sJe(e){var t=[];return Object.keys(e).forEach(function(n){t.push.apply(t,rt(e[n]||[]))}),t}var Cre=function(e){Fs(n,e);var t=ll(n);function n(r,i){var o;return Qr(this,n),o=t.call(this,"Async Validation Error"),te(sn(o),"errors",void 0),te(sn(o),"fields",void 0),o.errors=r,o.fields=i,o}return Xr(n)}(TH(Error));function lJe(e,t,n,r,i){if(t.first){var o=new Promise(function(f,p){var m=function(y){return r(y),y.length?p(new Cre(y,OH(y))):f(i)},g=sJe(e);Ere(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,p){var m=function(v){if(u.push.apply(u,v),c++,c===l)return r(u),u.length?p(new Cre(u,OH(u))):f(i)};s.length||(r(u),f(i)),s.forEach(function(g){var v=e[g];a.indexOf(g)!==-1?Ere(v,n,m):aJe(v,n,m)})});return d.catch(function(f){return f}),d}function cJe(e){return!!(e&&e.message!==void 0)}function uJe(e,t){for(var n=e,r=0;r<t.length;r++){if(n==null)return n;n=n[t[r]]}return n}function xre(e,t){return function(n){var r;return e.fullFields?r=uJe(t,e.fullFields):r=t[n.field||e.fullField],cJe(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 wre(e,t){if(t){for(var n in t)if(t.hasOwnProperty(n)){var r=t[n];qt(r)==="object"&&qt(e[n])==="object"?e[n]=z(z({},e[n]),r):e[n]=r}}return e}var Zv="enum",dJe=function(t,n,r,i,o){t[Zv]=Array.isArray(t[Zv])?t[Zv]:[],t[Zv].indexOf(n)===-1&&i.push(gc(o.messages[Zv],t.fullField,t[Zv].join(", ")))},fJe=function(t,n,r,i,o){if(t.pattern){if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(n)||i.push(gc(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(gc(o.messages.pattern.mismatch,t.fullField,n,t.pattern))}}},pJe=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",p=typeof n=="string",m=Array.isArray(n);if(f?d="number":p?d="string":m&&(d="array"),!d)return!1;m&&(u=n.length),p&&(u=n.replace(c,"_").length),a?u!==t.len&&i.push(gc(o.messages[d].len,t.fullField,t.len)):s&&!l&&u<t.min?i.push(gc(o.messages[d].min,t.fullField,t.min)):l&&!s&&u>t.max?i.push(gc(o.messages[d].max,t.fullField,t.max)):s&&l&&(u<t.min||u>t.max)&&i.push(gc(o.messages[d].range,t.fullField,t.min,t.max))},ASe=function(t,n,r,i,o,a){t.required&&(!r.hasOwnProperty(t.field)||Ia(n,a||t.type))&&i.push(gc(o.messages.required,t.fullField))},yR;const hJe=function(){if(yR)return yR;var e="[a-fA-F\\d:]",t=function(E){return E&&E.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(E){return E&&E.exact?s:new RegExp("(?:".concat(t(E)).concat(n).concat(t(E),")|(?:").concat(t(E)).concat(a).concat(t(E),")"),"g")};u.v4=function(x){return x&&x.exact?l:new RegExp("".concat(t(x)).concat(n).concat(t(x)),"g")},u.v6=function(x){return x&&x.exact?c:new RegExp("".concat(t(x)).concat(a).concat(t(x)),"g")};var d="(?:(?:[a-z]+:)?//)",f="(?:\\S+(?::\\S*)?@)?",p=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"]*)?',S="(?:".concat(d,"|www\\.)").concat(f,"(?:localhost|").concat(p,"|").concat(m,"|").concat(g).concat(v).concat(y,")").concat(b).concat(_);return yR=new RegExp("(?:^".concat(S,"$)"),"i"),yR};var Tre={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},xC={integer:function(t){return xC.number(t)&&parseInt(t,10)===t},float:function(t){return xC.number(t)&&!xC.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 qt(t)==="object"&&!xC.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(Tre.email)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(hJe())},hex:function(t){return typeof t=="string"&&!!t.match(Tre.hex)}},mJe=function(t,n,r,i,o){if(t.required&&n===void 0){ASe(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?xC[s](n)||i.push(gc(o.messages.types[s],t.fullField,t.type)):s&&qt(n)!==t.type&&i.push(gc(o.messages.types[s],t.fullField,t.type))},gJe=function(t,n,r,i,o){(/^\s+$/.test(n)||n==="")&&i.push(gc(o.messages.whitespace,t.fullField))};const Kr={required:ASe,whitespace:gJe,type:mJe,range:pJe,enum:dJe,pattern:fJe};var vJe=function(t,n,r,i,o){var a=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(Ia(n)&&!t.required)return r();Kr.required(t,n,i,a,o)}r(a)},bJe=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();Kr.required(t,n,i,a,o,"array"),n!=null&&(Kr.type(t,n,i,a,o),Kr.range(t,n,i,a,o))}r(a)},yJe=function(t,n,r,i,o){var a=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(Ia(n)&&!t.required)return r();Kr.required(t,n,i,a,o),n!==void 0&&Kr.type(t,n,i,a,o)}r(a)},_Je=function(t,n,r,i,o){var a=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(Ia(n,"date")&&!t.required)return r();if(Kr.required(t,n,i,a,o),!Ia(n,"date")){var l;n instanceof Date?l=n:l=new Date(n),Kr.type(t,l,i,a,o),l&&Kr.range(t,l.getTime(),i,a,o)}}r(a)},SJe="enum",EJe=function(t,n,r,i,o){var a=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(Ia(n)&&!t.required)return r();Kr.required(t,n,i,a,o),n!==void 0&&Kr[SJe](t,n,i,a,o)}r(a)},CJe=function(t,n,r,i,o){var a=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(Ia(n)&&!t.required)return r();Kr.required(t,n,i,a,o),n!==void 0&&(Kr.type(t,n,i,a,o),Kr.range(t,n,i,a,o))}r(a)},xJe=function(t,n,r,i,o){var a=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(Ia(n)&&!t.required)return r();Kr.required(t,n,i,a,o),n!==void 0&&(Kr.type(t,n,i,a,o),Kr.range(t,n,i,a,o))}r(a)},wJe=function(t,n,r,i,o){var a=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(Ia(n)&&!t.required)return r();Kr.required(t,n,i,a,o),n!==void 0&&Kr.type(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(n===""&&(n=void 0),Ia(n)&&!t.required)return r();Kr.required(t,n,i,a,o),n!==void 0&&(Kr.type(t,n,i,a,o),Kr.range(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(Ia(n)&&!t.required)return r();Kr.required(t,n,i,a,o),n!==void 0&&Kr.type(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(Ia(n,"string")&&!t.required)return r();Kr.required(t,n,i,a,o),Ia(n,"string")||Kr.pattern(t,n,i,a,o)}r(a)},AJe=function(t,n,r,i,o){var a=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(Ia(n)&&!t.required)return r();Kr.required(t,n,i,a,o),Ia(n)||Kr.type(t,n,i,a,o)}r(a)},IJe=function(t,n,r,i,o){var a=[],s=Array.isArray(n)?"array":qt(n);Kr.required(t,n,i,a,o,s),r(a)},NJe=function(t,n,r,i,o){var a=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(Ia(n,"string")&&!t.required)return r();Kr.required(t,n,i,a,o,"string"),Ia(n,"string")||(Kr.type(t,n,i,a,o),Kr.range(t,n,i,a,o),Kr.pattern(t,n,i,a,o),t.whitespace===!0&&Kr.whitespace(t,n,i,a,o))}r(a)},J6=function(t,n,r,i,o){var a=t.type,s=[],l=t.required||!t.required&&i.hasOwnProperty(t.field);if(l){if(Ia(n,a)&&!t.required)return r();Kr.required(t,n,i,s,o,a),Ia(n,a)||Kr.type(t,n,i,s,o)}r(s)};const lx={string:NJe,method:wJe,number:TJe,boolean:yJe,regexp:AJe,integer:xJe,float:CJe,array:bJe,object:OJe,enum:EJe,pattern:RJe,date:_Je,url:J6,hex:J6,email:J6,required:IJe,any:vJe};var s2=function(){function e(t){Qr(this,e),te(this,"rules",null),te(this,"_messages",wH),this.define(t)}return Xr(e,[{key:"define",value:function(n){var r=this;if(!n)throw new Error("Cannot configure a schema with no rules");if(qt(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=wre(xH(),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 S;g=(S=g).concat.apply(S,rt(_))}else g.push(_)}for(var b=0;b<m.length;b++)y(m[b]);g.length?(v=OH(g),l(g,v)):l(null,a)}if(s.messages){var u=this.messages();u===wH&&(u=xH()),wre(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=z({},a)),v=a[m]=b.transform(v),v!=null&&(b.type=b.type||(Array.isArray(v)?"array":qt(v)))),typeof b=="function"?b={validator:b}:b=z({},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 p={};return lJe(d,s,function(m,g){var v=m.rule,y=(v.type==="object"||v.type==="array")&&(qt(v.fields)==="object"||qt(v.defaultField)==="object");y=y&&(v.required||!v.required&&m.value),v.field=m.field;function b(C,w){return z(z({},w),{},{fullField:"".concat(v.fullField,".").concat(C),fullFields:v.fullFields?[].concat(rt(v.fullFields),[C]):[C]})}function _(){var C=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],w=Array.isArray(C)?C:[C];!s.suppressWarning&&w.length&&e.warning("async-validator:",w),w.length&&v.message!==void 0&&(w=[].concat(v.message));var O=w.map(xre(v,a));if(s.first&&O.length)return p[v.field]=1,g(O);if(!y)g(O);else{if(v.required&&!m.value)return v.message!==void 0?O=[].concat(v.message).map(xre(v,a)):s.error&&(O=[s.error(v,gc(s.messages.required,v.field))]),g(O);var T={};v.defaultField&&Object.keys(m.value).map(function(N){T[N]=v.defaultField}),T=z(z({},T),m.rule.fields);var A={};Object.keys(T).forEach(function(N){var D=T[N],M=Array.isArray(D)?D:[D];A[N]=M.map(b.bind(null,N))});var I=new e(A);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(N){var D=[];O&&O.length&&D.push.apply(D,rt(O)),N&&N.length&&D.push.apply(D,rt(N)),g(D.length?D:null)})}}var S;if(v.asyncValidator)S=v.asyncValidator(v,m.value,_,m.source,s);else if(v.validator){try{S=v.validator(v,m.value,_,m.source,s)}catch(C){var x,E;(x=(E=console).error)===null||x===void 0||x.call(E,C),s.suppressValidatorError||setTimeout(function(){throw C},0),_(C.message)}S===!0?_():S===!1?_(typeof v.message=="function"?v.message(v.fullField||v.field):v.message||"".concat(v.fullField||v.field," fails")):S instanceof Array?_(S):S instanceof Error&&_(S.message)}S&&S.then&&S.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&&!lx.hasOwnProperty(n.type))throw new Error(gc("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"?lx.required:lx[this.getType(n)]||void 0}}]),e}();te(s2,"register",function(t,n){if(typeof n!="function")throw new Error("Cannot register a validator by type, validator is not a function");lx[t]=n});te(s2,"warning",iJe);te(s2,"messages",wH);te(s2,"validators",lx);var Xl="'${name}' is not a valid ${type}",ISe={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:Xl,method:Xl,array:Xl,object:Xl,number:Xl,date:Xl,boolean:Xl,integer:Xl,float:Xl,regexp:Xl,email:Xl,url:Xl,hex:Xl},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}"}},Ore=s2;function MJe(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 Rre="CODE_LOGIC_ERROR";function RH(e,t,n,r,i){return AH.apply(this,arguments)}function AH(){return AH=Ui(rr().mark(function e(t,n,r,i,o){var a,s,l,c,u,d,f,p,m;return rr().wrap(function(v){for(;;)switch(v.prev=v.next){case 0:return a=z({},r),delete a.ruleIndex,Ore.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(Rre)}}),l=null,a&&a.type==="array"&&a.defaultField&&(l=a.defaultField,delete a.defaultField),c=new Ore(te({},t,[a])),u=D0(ISe,i.validateMessages),c.messages(u),d=[],v.prev=10,v.next=13,Promise.resolve(c.validate(te({},t,n),z({},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,S=_===Rre?u.default:_;return h.isValidElement(S)?h.cloneElement(S,{key:"error_".concat(b)}):S}));case 18:if(!(!d.length&&l)){v.next=23;break}return v.next=21,Promise.all(n.map(function(y,b){return RH("".concat(t,".").concat(b),y,l,i,o)}));case 21:return f=v.sent,v.abrupt("return",f.reduce(function(y,b){return[].concat(rt(y),rt(b))},[]));case 23:return p=z(z({},r),{},{name:t,enum:(r.enum||[]).join(", ")},o),m=d.map(function(y){return typeof y=="string"?MJe(y,p):y}),v.abrupt("return",m);case 26:case"end":return v.stop()}},e,null,[[10,15]])})),AH.apply(this,arguments)}function kJe(e,t,n,r,i,o){var a=e.join("."),s=n.map(function(u,d){var f=u.validator,p=z(z({},u),{},{ruleIndex:d});return f&&(p.validator=function(m,g,v){var y=!1,b=function(){for(var x=arguments.length,E=new Array(x),C=0;C<x;C++)E[C]=arguments[C];Promise.resolve().then(function(){Vr(!y,"Your validator function has already return a promise. `callback` will be ignored."),y||v.apply(void 0,E)})},_=f(m,g,b);y=_&&typeof _.then=="function"&&typeof _.catch=="function",Vr(y,"`callback` is deprecated. Please return a promise instead."),y&&_.then(function(){v()}).catch(function(S){v(S||" ")})}),p}).sort(function(u,d){var f=u.warningOnly,p=u.ruleIndex,m=d.warningOnly,g=d.ruleIndex;return!!f==!!m?p-g:f?1:-1}),l;if(i===!0)l=new Promise(function(){var u=Ui(rr().mark(function d(f,p){var m,g,v;return rr().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,RH(a,t,g,r,o);case 5:if(v=b.sent,!v.length){b.next=9;break}return p([{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 RH(a,t,u,r,o).then(function(d){return{errors:d,rule:u}})});l=(i?DJe(c):PJe(c)).then(function(u){return Promise.reject(u)})}return l.catch(function(u){return u}),l}function PJe(e){return IH.apply(this,arguments)}function IH(){return IH=Ui(rr().mark(function e(t){return rr().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,rt(i));return a}));case 1:case"end":return r.stop()}},e)})),IH.apply(this,arguments)}function DJe(e){return NH.apply(this,arguments)}function NH(){return NH=Ui(rr().mark(function e(t){var n;return rr().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)})),NH.apply(this,arguments)}function Jo(e){return CH(e)}function Are(e,t){var n={};return t.forEach(function(r){var i=No(e,r);n=ta(n,r,i)}),n}function _y(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return e&&e.some(function(r){return NSe(t,r,n)})}function NSe(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 LJe(e,t){if(e===t)return!0;if(!e&&t||e&&!t||!e||!t||qt(e)!=="object"||qt(t)!=="object")return!1;var n=Object.keys(e),r=Object.keys(t),i=new Set([].concat(n,r));return rt(i).every(function(o){var a=e[o],s=t[o];return typeof a=="function"&&typeof s=="function"?!0:a===s})}function $Je(e){var t=arguments.length<=1?void 0:arguments[1];return t&&t.target&&qt(t.target)==="object"&&e in t.target?t.target[e]:t}function Ire(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(rt(e.slice(0,n)),[i],rt(e.slice(n,t)),rt(e.slice(t+1,r))):o<0?[].concat(rt(e.slice(0,t)),rt(e.slice(t+1,n+1)),[i],rt(e.slice(n+1,r))):e}var FJe=["name"],$c=[];function eL(e,t,n,r,i,o){return typeof e=="function"?e(t,n,"source"in o?{source:o.source}:{}):r!==i}var zq=function(e){Fs(n,e);var t=ll(n);function n(r){var i;if(Qr(this,n),i=t.call(this,r),te(sn(i),"state",{resetCount:0}),te(sn(i),"cancelRegisterFunc",null),te(sn(i),"mounted",!1),te(sn(i),"touched",!1),te(sn(i),"dirty",!1),te(sn(i),"validatePromise",void 0),te(sn(i),"prevValidating",void 0),te(sn(i),"errors",$c),te(sn(i),"warnings",$c),te(sn(i),"cancelRegister",function(){var l=i.props,c=l.preserve,u=l.isListField,d=l.name;i.cancelRegisterFunc&&i.cancelRegisterFunc(u,c,Jo(d)),i.cancelRegisterFunc=null}),te(sn(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(rt(f),rt(c)):[]}),te(sn(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})}),te(sn(i),"refresh",function(){i.mounted&&i.setState(function(l){var c=l.resetCount;return{resetCount:c+1}})}),te(sn(i),"metaCache",null),te(sn(i),"triggerMetaEvent",function(l){var c=i.props.onMetaChange;if(c){var u=z(z({},i.getMeta()),{},{destroy:l});Bl(i.metaCache,u)||c(u),i.metaCache=u}else i.metaCache=null}),te(sn(i),"onStoreChange",function(l,c,u){var d=i.props,f=d.shouldUpdate,p=d.dependencies,m=p===void 0?[]:p,g=d.onReset,v=u.store,y=i.getNamePath(),b=i.getValue(l),_=i.getValue(v),S=c&&_y(c,y);switch(u.type==="valueUpdate"&&u.source==="external"&&!Bl(b,_)&&(i.touched=!0,i.dirty=!0,i.validatePromise=null,i.errors=$c,i.warnings=$c,i.triggerMetaEvent()),u.type){case"reset":if(!c||S){i.touched=!1,i.dirty=!1,i.validatePromise=void 0,i.errors=$c,i.warnings=$c,i.triggerMetaEvent(),g==null||g(),i.refresh();return}break;case"remove":{if(f&&eL(f,l,v,b,_,u)){i.reRender();return}break}case"setField":{var x=u.data;if(S){"touched"in x&&(i.touched=x.touched),"validating"in x&&!("originRCField"in x)&&(i.validatePromise=x.validating?Promise.resolve([]):null),"errors"in x&&(i.errors=x.errors||$c),"warnings"in x&&(i.warnings=x.warnings||$c),i.dirty=!0,i.triggerMetaEvent(),i.reRender();return}else if("value"in x&&_y(c,y,!0)){i.reRender();return}if(f&&!y.length&&eL(f,l,v,b,_,u)){i.reRender();return}break}case"dependenciesUpdate":{var E=m.map(Jo);if(E.some(function(C){return _y(u.relatedFields,C)})){i.reRender();return}break}default:if(S||(!m.length||y.length||f)&&eL(f,l,v,b,_,u)){i.reRender();return}break}f===!0&&i.reRender()}),te(sn(i),"validateRules",function(l){var c=i.getNamePath(),u=i.getValue(),d=l||{},f=d.triggerName,p=d.validateOnly,m=p===void 0?!1:p,g=Promise.resolve().then(Ui(rr().mark(function v(){var y,b,_,S,x,E,C;return rr().wrap(function(O){for(;;)switch(O.prev=O.next){case 0:if(i.mounted){O.next=2;break}return O.abrupt("return",[]);case 2:if(y=i.props,b=y.validateFirst,_=b===void 0?!1:b,S=y.messageVariables,x=y.validateDebounce,E=i.getRules(),f&&(E=E.filter(function(T){return T}).filter(function(T){var A=T.validateTrigger;if(!A)return!0;var I=CH(A);return I.includes(f)})),!(x&&f)){O.next=10;break}return O.next=8,new Promise(function(T){setTimeout(T,x)});case 8:if(i.validatePromise===g){O.next=10;break}return O.abrupt("return",[]);case 10:return C=kJe(c,u,E,l,_,S),C.catch(function(T){return T}).then(function(){var T=arguments.length>0&&arguments[0]!==void 0?arguments[0]:$c;if(i.validatePromise===g){var A;i.validatePromise=null;var I=[],N=[];(A=T.forEach)===null||A===void 0||A.call(T,function(D){var M=D.rule.warningOnly,k=D.errors,P=k===void 0?$c:k;M?N.push.apply(N,rt(P)):I.push.apply(I,rt(P))}),i.errors=I,i.warnings=N,i.triggerMetaEvent(),i.reRender()}}),O.abrupt("return",C);case 13:case"end":return O.stop()}},v)})));return m||(i.validatePromise=g,i.dirty=!0,i.errors=$c,i.warnings=$c,i.triggerMetaEvent(),i.reRender()),g}),te(sn(i),"isFieldValidating",function(){return!!i.validatePromise}),te(sn(i),"isFieldTouched",function(){return i.touched}),te(sn(i),"isFieldDirty",function(){if(i.dirty||i.props.initialValue!==void 0)return!0;var l=i.props.fieldContext,c=l.getInternalHooks(L0),u=c.getInitialValue;return u(i.getNamePath())!==void 0}),te(sn(i),"getErrors",function(){return i.errors}),te(sn(i),"getWarnings",function(){return i.warnings}),te(sn(i),"isListField",function(){return i.props.isListField}),te(sn(i),"isList",function(){return i.props.isList}),te(sn(i),"isPreserve",function(){return i.props.preserve}),te(sn(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}),te(sn(i),"getOnlyChild",function(l){if(typeof l=="function"){var c=i.getMeta();return z(z({},i.getOnlyChild(l(i.getControlled(),c,i.props.fieldContext))),{},{isFunction:!0})}var u=Do(l);return u.length!==1||!h.isValidElement(u[0])?{child:u,isFunction:!1}:{child:u[0],isFunction:!1}}),te(sn(i),"getValue",function(l){var c=i.props.fieldContext.getFieldsValue,u=i.getNamePath();return No(l||c(!0),u)}),te(sn(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,p=c.getValueFromEvent,m=c.normalize,g=c.valuePropName,v=c.getValueProps,y=c.fieldContext,b=f!==void 0?f:y.validateTrigger,_=i.getNamePath(),S=y.getInternalHooks,x=y.getFieldsValue,E=S(L0),C=E.dispatch,w=i.getValue(),O=v||function(D){return te({},g,D)},T=l[d],A=u!==void 0?O(w):{},I=z(z({},l),A);I[d]=function(){i.touched=!0,i.dirty=!0,i.triggerMetaEvent();for(var D,M=arguments.length,k=new Array(M),P=0;P<M;P++)k[P]=arguments[P];p?D=p.apply(void 0,k):D=$Je.apply(void 0,[g].concat(k)),m&&(D=m(D,w,x(!0))),D!==w&&C({type:"updateValue",namePath:_,value:D}),T&&T.apply(void 0,k)};var N=CH(b||[]);return N.forEach(function(D){var M=I[D];I[D]=function(){M&&M.apply(void 0,arguments);var k=i.props.rules;k&&k.length&&C({type:"validateField",namePath:_,triggerName:D})}}),I}),r.fieldContext){var o=r.fieldContext.getInternalHooks,a=o(L0),s=a.initEntityValue;s(sn(i))}return i}return Xr(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(L0),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:h.isValidElement(s)?c=h.cloneElement(s,this.getControlled(s.props)):(Vr(!s,"`children` of Field is not validate ReactElement."),c=s),h.createElement(h.Fragment,{key:i},c)}}]),n}(h.Component);te(zq,"contextType",mg);te(zq,"defaultProps",{trigger:"onChange",valuePropName:"value"});function Vq(e){var t,n=e.name,r=kt(e,FJe),i=h.useContext(mg),o=h.useContext(Pw),a=n!==void 0?Jo(n):void 0,s=(t=r.isListField)!==null&&t!==void 0?t:!!o,l="keep";return s||(l="_".concat((a||[]).join("_"))),h.createElement(zq,Xe({key:l,name:a,isListField:s},r,{fieldContext:i}))}function MSe(e){var t=e.name,n=e.initialValue,r=e.children,i=e.rules,o=e.validateTrigger,a=e.isListField,s=h.useContext(mg),l=h.useContext(Pw),c=h.useRef({keys:[],id:0}),u=c.current,d=h.useMemo(function(){var g=Jo(s.prefixName)||[];return[].concat(rt(g),rt(Jo(t)))},[s.prefixName,t]),f=h.useMemo(function(){return z(z({},s),{},{prefixName:d})},[s,d]),p=h.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 Vr(!1,"Form.List only accepts function as children."),null;var m=function(v,y,b){var _=b.source;return _==="internal"?!1:v!==y};return h.createElement(Pw.Provider,{value:p},h.createElement(mg.Provider,{value:f},h.createElement(Vq,{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,S=s.getFieldValue,x=function(){var O=S(d||[]);return O||[]},E={add:function(O,T){var A=x();T>=0&&T<=A.length?(u.keys=[].concat(rt(u.keys.slice(0,T)),[u.id],rt(u.keys.slice(T))),_([].concat(rt(A.slice(0,T)),[O],rt(A.slice(T))))):(u.keys=[].concat(rt(u.keys),[u.id]),_([].concat(rt(A),[O]))),u.id+=1},remove:function(O){var T=x(),A=new Set(Array.isArray(O)?O:[O]);A.size<=0||(u.keys=u.keys.filter(function(I,N){return!A.has(N)}),_(T.filter(function(I,N){return!A.has(N)})))},move:function(O,T){if(O!==T){var A=x();O<0||O>=A.length||T<0||T>=A.length||(u.keys=Ire(u.keys,O,T),_(Ire(A,O,T)))}}},C=b||[];return Array.isArray(C)||(C=[]),r(C.map(function(w,O){var T=u.keys[O];return T===void 0&&(u.keys[O]=u.id,T=u.keys[O],u.id+=1),{name:O,key:T,isListField:!0}}),E,v)})))}function BJe(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 kSe="__@field_split__";function tL(e){return e.map(function(t){return"".concat(qt(t),":").concat(t)}).join(kSe)}var Jv=function(){function e(){Qr(this,e),te(this,"kvs",new Map)}return Xr(e,[{key:"set",value:function(n,r){this.kvs.set(tL(n),r)}},{key:"get",value:function(n){return this.kvs.get(tL(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(tL(n))}},{key:"map",value:function(n){return rt(this.kvs.entries()).map(function(r){var i=Re(r,2),o=i[0],a=i[1],s=o.split(kSe);return n({key:s.map(function(l){var c=l.match(/^([^:]*):(.*)$/),u=Re(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}(),HJe=["name"],jJe=Xr(function e(t){var n=this;Qr(this,e),te(this,"formHooked",!1),te(this,"forceRootUpdate",void 0),te(this,"subscribable",!0),te(this,"store",{}),te(this,"fieldEntities",[]),te(this,"initialValues",{}),te(this,"callbacks",{}),te(this,"validateMessages",null),te(this,"preserve",null),te(this,"lastValidatePromise",null),te(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}}),te(this,"getInternalHooks",function(r){return r===L0?(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}):(Vr(!1,"`getInternalHooks` is internal usage. Should not call directly."),null)}),te(this,"useSubscribe",function(r){n.subscribable=r}),te(this,"prevWithoutPreserves",null),te(this,"setInitialValues",function(r,i){if(n.initialValues=r||{},i){var o,a=D0(r,n.store);(o=n.prevWithoutPreserves)===null||o===void 0||o.map(function(s){var l=s.key;a=ta(a,l,No(r,l))}),n.prevWithoutPreserves=null,n.updateStore(a)}}),te(this,"destroyForm",function(r){if(r)n.updateStore({});else{var i=new Jv;n.getFieldEntities(!0).forEach(function(o){n.isMergedPreserve(o.isPreserve())||i.set(o.getNamePath(),!0)}),n.prevWithoutPreserves=i}}),te(this,"getInitialValue",function(r){var i=No(n.initialValues,r);return r.length?D0(i):i}),te(this,"setCallbacks",function(r){n.callbacks=r}),te(this,"setValidateMessages",function(r){n.validateMessages=r}),te(this,"setPreserve",function(r){n.preserve=r}),te(this,"watchList",[]),te(this,"registerWatch",function(r){return n.watchList.push(r),function(){n.watchList=n.watchList.filter(function(i){return i!==r})}}),te(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)})}}),te(this,"timeoutId",null),te(this,"warningUnhooked",function(){}),te(this,"updateStore",function(r){n.store=r}),te(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}),te(this,"getFieldsMap",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,i=new Jv;return n.getFieldEntities(r).forEach(function(o){var a=o.getNamePath();i.set(a,o)}),i}),te(this,"getFieldEntitiesForNamePathList",function(r){if(!r)return n.getFieldEntities(!0);var i=n.getFieldsMap(!0);return r.map(function(o){var a=Jo(o);return i.get(a)||{INVALIDATE_NAME_PATH:Jo(o)}})}),te(this,"getFieldsValue",function(r,i){n.warningUnhooked();var o,a,s;if(r===!0||Array.isArray(r)?(o=r,a=i):r&&qt(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,p="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(p);else{var v="getMeta"in u?u.getMeta():null;a(v)&&c.push(p)}}),Are(n.store,c.map(Jo))}),te(this,"getFieldValue",function(r){n.warningUnhooked();var i=Jo(r);return No(n.store,i)}),te(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:Jo(r[a]),errors:[],warnings:[]}})}),te(this,"getFieldError",function(r){n.warningUnhooked();var i=Jo(r),o=n.getFieldsError([i])[0];return o.errors}),te(this,"getFieldWarning",function(r){n.warningUnhooked();var i=Jo(r),o=n.getFieldsError([i])[0];return o.warnings}),te(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(Jo),c=!1):(l=null,c=a):(l=a.map(Jo),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 Jv;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(rt(b),[g])})})});var p=function(v){return v.some(d)},m=f.map(function(g){var v=g.value;return v});return c?m.every(p):m.some(p)}),te(this,"isFieldTouched",function(r){return n.warningUnhooked(),n.isFieldsTouched([r])}),te(this,"isFieldsValidating",function(r){n.warningUnhooked();var i=n.getFieldEntities();if(!r)return i.some(function(a){return a.isFieldValidating()});var o=r.map(Jo);return i.some(function(a){var s=a.getNamePath();return _y(o,s)&&a.isFieldValidating()})}),te(this,"isFieldValidating",function(r){return n.warningUnhooked(),n.isFieldsValidating([r])}),te(this,"resetWithFieldInitialValue",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},i=new Jv,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(),p=n.getInitialValue(f);if(p!==void 0)Vr(!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)Vr(!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(ta(n.store,f,rt(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,rt(rt(c).map(function(d){return d.entity})))}})):s=o,a(s)}),te(this,"resetFields",function(r){n.warningUnhooked();var i=n.store;if(!r){n.updateStore(D0(n.initialValues)),n.resetWithFieldInitialValue(),n.notifyObservers(i,null,{type:"reset"}),n.notifyWatch();return}var o=r.map(Jo);o.forEach(function(a){var s=n.getInitialValue(a);n.updateStore(ta(n.store,a,s))}),n.resetWithFieldInitialValue({namePathList:o}),n.notifyObservers(i,o,{type:"reset"}),n.notifyWatch(o)}),te(this,"setFields",function(r){n.warningUnhooked();var i=n.store,o=[];r.forEach(function(a){var s=a.name,l=kt(a,HJe),c=Jo(s);o.push(c),"value"in l&&n.updateStore(ta(n.store,c,l.value)),n.notifyObservers(i,[c],{type:"setField",data:a})}),n.notifyWatch(o)}),te(this,"getFields",function(){var r=n.getFieldEntities(!0),i=r.map(function(o){var a=o.getNamePath(),s=o.getMeta(),l=z(z({},s),{},{name:a,value:n.getFieldValue(a)});return Object.defineProperty(l,"originRCField",{value:!0}),l});return i}),te(this,"initEntityValue",function(r){var i=r.props.initialValue;if(i!==void 0){var o=r.getNamePath(),a=No(n.store,o);a===void 0&&n.updateStore(ta(n.store,o,i))}}),te(this,"isMergedPreserve",function(r){var i=r!==void 0?r:n.preserve;return i??!0}),te(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!NSe(d.getNamePath(),i)})){var u=n.store;n.updateStore(ta(u,i,c,!0)),n.notifyObservers(u,[i],{type:"remove"}),n.triggerDependenciesUpdate(u,i)}}n.notifyWatch([i])}}),te(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}}}),te(this,"notifyObservers",function(r,i,o){if(n.subscribable){var a=z(z({},o),{},{store:n.getFieldsValue(!0)});n.getFieldEntities().forEach(function(s){var l=s.onStoreChange;l(r,i,a)})}else n.forceRootUpdate()}),te(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(rt(o))}),o}),te(this,"updateValue",function(r,i){var o=Jo(r),a=n.store;n.updateStore(ta(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=Are(n.store,[o]);l(c,n.getFieldsValue())}n.triggerOnFieldsChange([o].concat(rt(s)))}),te(this,"setFieldsValue",function(r){n.warningUnhooked();var i=n.store;if(r){var o=D0(n.store,r);n.updateStore(o)}n.notifyObservers(i,null,{type:"valueUpdate",source:"external"}),n.notifyWatch()}),te(this,"setFieldValue",function(r,i){n.setFields([{name:r,value:i,errors:[],warnings:[]}])}),te(this,"getDependencyChildrenFields",function(r){var i=new Set,o=[],a=new Jv;n.getFieldEntities().forEach(function(l){var c=l.props.dependencies;(c||[]).forEach(function(u){var d=Jo(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}),te(this,"triggerOnFieldsChange",function(r,i){var o=n.callbacks.onFieldsChange;if(o){var a=n.getFields();if(i){var s=new Jv;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 _y(r,u)});l.length&&o(l,a)}}),te(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(Jo):[],c=[],u=String(Date.now()),d=new Set,f=a||{},p=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||_y(l,_,p)){var S=b.validateRules(z({validateMessages:z(z({},ISe),n.validateMessages)},a));c.push(S.then(function(){return{name:_,errors:[],warnings:[]}}).catch(function(x){var E,C=[],w=[];return(E=x.forEach)===null||E===void 0||E.call(x,function(O){var T=O.rule.warningOnly,A=O.errors;T?w.push.apply(w,rt(A)):C.push.apply(C,rt(A))}),C.length?Promise.reject({name:_,errors:C,warnings:w}):{name:_,errors:C,warnings:w}}))}}});var g=BJe(c);n.lastValidatePromise=g,g.catch(function(b){return b}).then(function(b){var _=b.map(function(S){var x=S.name;return x});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(S){return S&&S.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}),te(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 Gq(e){var t=h.useRef(),n=h.useState({}),r=Re(n,2),i=r[1];if(!t.current)if(e)t.current=e;else{var o=function(){i({})},a=new jJe(o);t.current=a.getForm()}return[t.current]}var MH=h.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),PSe=function(t){var n=t.validateMessages,r=t.onFormChange,i=t.onFormFinish,o=t.children,a=h.useContext(MH),s=h.useRef({});return h.createElement(MH.Provider,{value:z(z({},a),{},{validateMessages:z(z({},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=z(z({},s.current),{},te({},c,u))),a.registerForm(c,u)},unregisterForm:function(c){var u=z({},s.current);delete u[c],s.current=u,a.unregisterForm(c)}})},o)},UJe=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed","clearOnDestroy"],zJe=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,p=f===void 0?"onChange":f,m=t.onValuesChange,g=t.onFieldsChange,v=t.onFinish,y=t.onFinishFailed,b=t.clearOnDestroy,_=kt(t,UJe),S=h.useRef(null),x=h.useContext(MH),E=Gq(a),C=Re(E,1),w=C[0],O=w.getInternalHooks(L0),T=O.useSubscribe,A=O.setInitialValues,I=O.setCallbacks,N=O.setValidateMessages,D=O.setPreserve,M=O.destroyForm;h.useImperativeHandle(n,function(){return z(z({},w),{},{nativeElement:S.current})}),h.useEffect(function(){return x.registerForm(r,w),function(){x.unregisterForm(r)}},[x,w,r]),N(z(z({},x.validateMessages),d)),I({onValuesChange:m,onFieldsChange:function(X){if(x.triggerFormChange(r,X),g){for(var Q=arguments.length,ue=new Array(Q>1?Q-1:0),ee=1;ee<Q;ee++)ue[ee-1]=arguments[ee];g.apply(void 0,[X].concat(ue))}},onFinish:function(X){x.triggerFormFinish(r,X),v&&v(X)},onFinishFailed:y}),D(s);var k=h.useRef(null);A(i,!k.current),k.current||(k.current=!0),h.useEffect(function(){return function(){return M(b)}},[]);var P,B=typeof l=="function";if(B){var G=w.getFieldsValue(!0);P=l(G,w)}else P=l;T(!B);var L=h.useRef();h.useEffect(function(){LJe(L.current||[],o||[])||w.setFields(o||[]),L.current=o},[o,w]);var W=h.useMemo(function(){return z(z({},w),{},{validateTrigger:p})},[w,p]),j=h.createElement(Pw.Provider,{value:null},h.createElement(mg.Provider,{value:W},P));return u===!1?j:h.createElement(u,Xe({},_,{ref:S,onSubmit:function(X){X.preventDefault(),X.stopPropagation(),w.submit()},onReset:function(X){var Q;X.preventDefault(),w.resetFields(),(Q=_.onReset)===null||Q===void 0||Q.call(_,X)}}),j)};function Nre(e){try{return JSON.stringify(e)}catch{return Math.random()}}function DSe(){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=eJe(o)?{form:o}:o,s=a.form,l=h.useState(),c=Re(l,2),u=c[0],d=c[1],f=h.useMemo(function(){return Nre(u)},[u]),p=h.useRef(f);p.current=f;var m=h.useContext(mg),g=s||m,v=g&&g._init,y=Jo(r),b=h.useRef(y);return b.current=y,h.useEffect(function(){if(v){var _=g.getFieldsValue,S=g.getInternalHooks,x=S(L0),E=x.registerWatch,C=function(A,I){var N=a.preserve?I:A;return typeof r=="function"?r(N):No(N,b.current)},w=E(function(T,A){var I=C(T,A),N=Nre(I);p.current!==N&&(p.current=N,d(I))}),O=C(_(),_(!0));return u!==O&&d(O),w}},[v]),u}var VJe=h.forwardRef(zJe),hS=VJe;hS.FormProvider=PSe;hS.Field=Vq;hS.List=MSe;hS.useForm=Gq;hS.useWatch=DSe;const ah=h.createContext({labelAlign:"right",vertical:!1,itemRef:()=>{}}),LSe=h.createContext(null),$Se=e=>{const t=ur(e,["prefixCls"]);return h.createElement(PSe,Object.assign({},t))},Wq=h.createContext({prefixCls:""}),oa=h.createContext({}),GJe=({children:e,status:t,override:n})=>{const r=h.useContext(oa),i=h.useMemo(()=>{const o=Object.assign({},r);return n&&delete o.isFormItemInput,t&&(delete o.status,delete o.hasFeedback,delete o.feedbackIcon),o},[t,n,r]);return h.createElement(oa.Provider,{value:i},e)},FSe=h.createContext(void 0),Ad=e=>{const{space:t,form:n,children:r}=e;if(r==null)return null;let i=r;return n&&(i=pe.createElement(GJe,{override:!0,status:!0},i)),t&&(i=pe.createElement(QQe,null,i)),i};function Dw(...e){const t={};return e.forEach(n=>{n&&Object.keys(n).forEach(r=>{n[r]!==void 0&&(t[r]=n[r])})}),t}function h_(e){if(e)return{closable:e.closable,closeIcon:e.closeIcon}}function Mre(e){const{closable:t,closeIcon:n}=e||{};return pe.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])}const WJe={};function qq(e,t,n=WJe){const r=Mre(e),i=Mre(t),[o]=Ma("global",gu.global),a=typeof r!="boolean"?!!(r!=null&&r.disabled):!1,s=pe.useMemo(()=>Object.assign({closeIcon:pe.createElement(Yf,null)},n),[n]),l=pe.useMemo(()=>r===!1?!1:r?Dw(s,i,r):i===!1?!1:i?Dw(s,i):s.closable?s:!1,[r,i,s]);return pe.useMemo(()=>{if(l===!1)return[!1,null,a,{}];const{closeIconRender:c}=s,{closeIcon:u}=l;let d=u;const f=Oi(l,!0);return d!=null&&(c&&(d=c(u)),d=pe.isValidElement(d)?pe.cloneElement(d,Object.assign({"aria-label":o.close},f)):pe.createElement("span",Object.assign({"aria-label":o.close},f),d)),[!0,d,a,f]},[l,s])}var BSe=function(t){if(Aa()&&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},qJe=function(t,n){if(!BSe(t))return!1;var r=document.createElement("div"),i=r.style[t];return r.style[t]=n,r.style[t]!==i};function kH(e,t){return!Array.isArray(e)&&t!==void 0?qJe(e,t):BSe(e)}const YJe=()=>Aa()&&window.document.documentElement,MP=e=>{const{prefixCls:t,className:n,style:r,size:i,shape:o}=e,a=Ce({[`${t}-lg`]:i==="large",[`${t}-sm`]:i==="small"}),s=Ce({[`${t}-circle`]:o==="circle",[`${t}-square`]:o==="square",[`${t}-round`]:o==="round"}),l=h.useMemo(()=>typeof i=="number"?{width:i,height:i,lineHeight:`${i}px`}:{},[i]);return h.createElement("span",{className:Ce(t,a,s,n),style:Object.assign(Object.assign({},l),r)})},KJe=new fr("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),kP=e=>({height:e,lineHeight:Ie(e)}),Sy=e=>Object.assign({width:e},kP(e)),QJe=e=>({background:e.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:KJe,animationDuration:e.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),nL=(e,t)=>Object.assign({width:t(e).mul(5).equal(),minWidth:t(e).mul(5).equal()},kP(e)),XJe=e=>{const{skeletonAvatarCls:t,gradientFromColor:n,controlHeight:r,controlHeightLG:i,controlHeightSM:o}=e;return{[t]:Object.assign({display:"inline-block",verticalAlign:"top",background:n},Sy(r)),[`${t}${t}-circle`]:{borderRadius:"50%"},[`${t}${t}-lg`]:Object.assign({},Sy(i)),[`${t}${t}-sm`]:Object.assign({},Sy(o))}},ZJe=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))}},kre=e=>Object.assign({width:e},kP(e)),JJe=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},kre(o(n).mul(2).equal())),{[`${t}-path`]:{fill:"#bfbfbf"},[`${t}-svg`]:Object.assign(Object.assign({},kre(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%"}}},rL=(e,t,n)=>{const{skeletonButtonCls:r}=e;return{[`${n}${r}-circle`]:{width:t,minWidth:t,borderRadius:"50%"},[`${n}${r}-round`]:{borderRadius:t}}},iL=(e,t)=>Object.assign({width:t(e).mul(2).equal(),minWidth:t(e).mul(2).equal()},kP(e)),eet=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()},iL(r,s))},rL(e,r,n)),{[`${n}-lg`]:Object.assign({},iL(i,s))}),rL(e,i,`${n}-lg`)),{[`${n}-sm`]:Object.assign({},iL(o,s))}),rL(e,o,`${n}-sm`))},tet=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:p,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},Sy(l)),[`${n}-circle`]:{borderRadius:"50%"},[`${n}-lg`]:Object.assign({},Sy(c)),[`${n}-sm`]:Object.assign({},Sy(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:p,[`+ ${i}`]:{marginBlockStart:_}}},[`${t}${t}-element`]:Object.assign(Object.assign(Object.assign(Object.assign({display:"inline-block",width:"auto"},eet(e)),XJe(e)),ZJe(e)),JJe(e)),[`${t}${t}-block`]:{width:"100%",[o]:{width:"100%"},[a]:{width:"100%"}},[`${t}${t}-active`]:{[`
${r},
${i} > li,
${n},
${o},
${a},
${s}
`]:Object.assign({},QJe(e))}}},net=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}},mS=ir("Skeleton",e=>{const{componentCls:t,calc:n}=e,r=Un(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[tet(r)]},net,{deprecatedTokens:[["color","gradientFromColor"],["colorGradientEnd","gradientToColor"]]}),ret=e=>{const{prefixCls:t,className:n,rootClassName:r,active:i,shape:o="circle",size:a="default"}=e,{getPrefixCls:s}=h.useContext(cn),l=s("skeleton",t),[c,u,d]=mS(l),f=ur(e,["prefixCls","className"]),p=Ce(l,`${l}-element`,{[`${l}-active`]:i},n,r,u,d);return c(h.createElement("div",{className:p},h.createElement(MP,Object.assign({prefixCls:`${l}-avatar`,shape:o,size:a},f))))},iet=e=>{const{prefixCls:t,className:n,rootClassName:r,active:i,block:o=!1,size:a="default"}=e,{getPrefixCls:s}=h.useContext(cn),l=s("skeleton",t),[c,u,d]=mS(l),f=ur(e,["prefixCls"]),p=Ce(l,`${l}-element`,{[`${l}-active`]:i,[`${l}-block`]:o},n,r,u,d);return c(h.createElement("div",{className:p},h.createElement(MP,Object.assign({prefixCls:`${l}-button`,size:a},f))))},oet="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",aet=e=>{const{prefixCls:t,className:n,rootClassName:r,style:i,active:o}=e,{getPrefixCls:a}=h.useContext(cn),s=a("skeleton",t),[l,c,u]=mS(s),d=Ce(s,`${s}-element`,{[`${s}-active`]:o},n,r,c,u);return l(h.createElement("div",{className:d},h.createElement("div",{className:Ce(`${s}-image`,n),style:i},h.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:`${s}-image-svg`},h.createElement("title",null,"Image placeholder"),h.createElement("path",{d:oet,className:`${s}-image-path`})))))},set=e=>{const{prefixCls:t,className:n,rootClassName:r,active:i,block:o,size:a="default"}=e,{getPrefixCls:s}=h.useContext(cn),l=s("skeleton",t),[c,u,d]=mS(l),f=ur(e,["prefixCls"]),p=Ce(l,`${l}-element`,{[`${l}-active`]:i,[`${l}-block`]:o},n,r,u,d);return c(h.createElement("div",{className:p},h.createElement(MP,Object.assign({prefixCls:`${l}-input`,size:a},f))))},cet=e=>{const{prefixCls:t,className:n,rootClassName:r,style:i,active:o,children:a}=e,{getPrefixCls:s}=h.useContext(cn),l=s("skeleton",t),[c,u,d]=mS(l),f=Ce(l,`${l}-element`,{[`${l}-active`]:o},u,n,r,d);return c(h.createElement("div",{className:f},h.createElement("div",{className:Ce(`${l}-image`,n),style:i},a)))},uet=(e,t)=>{const{width:n,rows:r=2}=t;if(Array.isArray(n))return n[e];if(r-1===e)return n},det=e=>{const{prefixCls:t,className:n,style:r,rows:i=0}=e,o=Array.from({length:i}).map((a,s)=>h.createElement("li",{key:s,style:{width:uet(s,e)}}));return h.createElement("ul",{className:Ce(t,n),style:r},o)},fet=({prefixCls:e,className:t,width:n,style:r})=>h.createElement("h3",{className:Ce(e,t),style:Object.assign({width:n},r)});function oL(e){return e&&typeof e=="object"?e:{}}function pet(e,t){return e&&!t?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}function het(e,t){return!e&&t?{width:"38%"}:e&&t?{width:"50%"}:{}}function met(e,t){const n={};return(!e||!t)&&(n.width="61%"),!e&&t?n.rows=3:n.rows=2,n}const bh=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:p,className:m,style:g}=Vi("skeleton"),v=f("skeleton",t),[y,b,_]=mS(v);if(n||!("loading"in e)){const S=!!s,x=!!l,E=!!c;let C;if(S){const T=Object.assign(Object.assign({prefixCls:`${v}-avatar`},pet(x,E)),oL(s));C=h.createElement("div",{className:`${v}-header`},h.createElement(MP,Object.assign({},T)))}let w;if(x||E){let T;if(x){const I=Object.assign(Object.assign({prefixCls:`${v}-title`},het(S,E)),oL(l));T=h.createElement(fet,Object.assign({},I))}let A;if(E){const I=Object.assign(Object.assign({prefixCls:`${v}-paragraph`},met(S,x)),oL(c));A=h.createElement(det,Object.assign({},I))}w=h.createElement("div",{className:`${v}-content`},T,A)}const O=Ce(v,{[`${v}-with-avatar`]:S,[`${v}-active`]:u,[`${v}-rtl`]:p==="rtl",[`${v}-round`]:d},m,r,i,b,_);return y(h.createElement("div",{className:O,style:Object.assign(Object.assign({},g),o)},C,w))}return a??null};bh.Button=iet;bh.Avatar=ret;bh.Input=set;bh.Image=aet;bh.Node=cet;function Pre(){}const get=h.createContext({add:Pre,remove:Pre});function HSe(e){const t=h.useContext(get),n=h.useRef(null);return qn(i=>{if(i){const o=e?i.querySelector(e):i;t.add(o),n.current=o}else t.remove(n.current)})}const Dre=()=>{const{cancelButtonProps:e,cancelTextLocale:t,onCancel:n}=h.useContext(i2);return pe.createElement(Dn,Object.assign({onClick:n},e),t)},Lre=()=>{const{confirmLoading:e,okButtonProps:t,okType:n,okTextLocale:r,onOk:i}=h.useContext(i2);return pe.createElement(Dn,Object.assign({},Pq(n),{loading:e,onClick:i},t),r)};function jSe(e,t){return pe.createElement("span",{className:`${e}-close-x`},t||pe.createElement(Yf,{className:`${e}-close-icon`}))}const USe=e=>{const{okText:t,okType:n="primary",cancelText:r,confirmLoading:i,onOk:o,onCancel:a,okButtonProps:s,cancelButtonProps:l,footer:c}=e,[u]=Ma("Modal",d_e()),d=t||(u==null?void 0:u.okText),f=r||(u==null?void 0:u.cancelText),p={confirmLoading:i,okButtonProps:s,cancelButtonProps:l,okTextLocale:d,cancelTextLocale:f,okType:n,onOk:o,onCancel:a},m=pe.useMemo(()=>p,rt(Object.values(p)));let g;return typeof c=="function"||typeof c>"u"?(g=pe.createElement(pe.Fragment,null,pe.createElement(Dre,null),pe.createElement(Lre,null)),typeof c=="function"&&(g=c(g,{OkBtn:Lre,CancelBtn:Dre})),g=pe.createElement(CSe,{value:m},g)):g=c,pe.createElement(wq,{disabled:!1},g)},vet=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"}}}},bet=e=>{const{componentCls:t}=e;return{[t]:{position:"relative",maxWidth:"100%",minHeight:1}}},yet=(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},PH=(e,t)=>yet(e,t),_et=(e,t,n)=>({[`@media (min-width: ${Ie(t)})`]:Object.assign({},PH(e,n))}),Eet=()=>({}),Cet=()=>({}),xet=ir("Grid",vet,Eet),zSe=e=>({xs:e.screenXSMin,sm:e.screenSMMin,md:e.screenMDMin,lg:e.screenLGMin,xl:e.screenXLMin,xxl:e.screenXXLMin}),wet=ir("Grid",e=>{const t=Un(e,{gridColumns:24}),n=zSe(t);return delete n.xs,[bet(t),PH(t,""),PH(t,"-xs"),Object.keys(n).map(r=>_et(t,n[r],`-${r}`)).reduce((r,i)=>Object.assign(Object.assign({},r),i),{})]},Cet);function $re(e){return{position:e,inset:0}}const VSe=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({},$re("fixed")),{zIndex:e.zIndexPopupBase,height:"100%",backgroundColor:e.colorBgMask,pointerEvents:"none",[`${t}-hidden`]:{display:"none"}}),[`${t}-wrap`]:Object.assign(Object.assign({},$re("fixed")),{zIndex:e.zIndexPopupBase,overflow:"auto",outline:0,WebkitOverflowScrolling:"touch"})}},{[`${t}-root`]:$q(e)}]},Tet=e=>{const{componentCls:t}=e;return[{[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:"rtl"},[`${t}-centered`]:{textAlign:"center","&::before":{display:"inline-block",width:0,height:"100%",verticalAlign:"middle",content:'""'},[t]:{top:0,display:"inline-block",paddingBottom:0,textAlign:"start",verticalAlign:"middle"}},[`@media (max-width: ${e.screenSMMax}px)`]:{[t]:{maxWidth:"calc(100vw - 16px)",margin:`${Ie(e.marginXS)} auto`},[`${t}-centered`]:{[t]:{flex:1}}}}},{[t]:Object.assign(Object.assign({},mr(e)),{pointerEvents:"none",position:"relative",top:100,width:"auto",maxWidth:`calc(100vw - ${Ie(e.calc(e.margin).mul(2).equal())})`,margin:"0 auto",paddingBottom:e.paddingLG,[`${t}-title`]:{margin:0,color:e.titleColor,fontWeight:e.fontWeightStrong,fontSize:e.titleFontSize,lineHeight:e.titleLineHeight,wordWrap:"break-word"},[`${t}-content`]:{position:"relative",backgroundColor:e.contentBg,backgroundClip:"padding-box",border:0,borderRadius:e.borderRadiusLG,boxShadow:e.boxShadow,pointerEvents:"auto",padding:e.contentPadding},[`${t}-close`]:Object.assign({position:"absolute",top:e.calc(e.modalHeaderHeight).sub(e.modalCloseBtnSize).div(2).equal(),insetInlineEnd:e.calc(e.modalHeaderHeight).sub(e.modalCloseBtnSize).div(2).equal(),zIndex:e.calc(e.zIndexPopupBase).add(10).equal(),padding:0,color:e.modalCloseIconColor,fontWeight:e.fontWeightStrong,lineHeight:1,textDecoration:"none",background:"transparent",borderRadius:e.borderRadiusSM,width:e.modalCloseBtnSize,height:e.modalCloseBtnSize,border:0,outline:0,cursor:"pointer",transition:`color ${e.motionDurationMid}, background-color ${e.motionDurationMid}`,"&-x":{display:"flex",fontSize:e.fontSizeLG,fontStyle:"normal",lineHeight:Ie(e.modalCloseBtnSize),justifyContent:"center",textTransform:"none",textRendering:"auto"},"&:disabled":{pointerEvents:"none"},"&:hover":{color:e.modalCloseIconHoverColor,backgroundColor:e.colorBgTextHover,textDecoration:"none"},"&:active":{backgroundColor:e.colorBgTextActive}},tl(e)),[`${t}-header`]:{color:e.colorText,background:e.headerBg,borderRadius:`${Ie(e.borderRadiusLG)} ${Ie(e.borderRadiusLG)} 0 0`,marginBottom:e.headerMarginBottom,padding:e.headerPadding,borderBottom:e.headerBorderBottom},[`${t}-body`]:{fontSize:e.fontSize,lineHeight:e.lineHeight,wordWrap:"break-word",padding:e.bodyPadding,[`${t}-body-skeleton`]:{width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center",margin:`${Ie(e.margin)} auto`}},[`${t}-footer`]:{textAlign:"end",background:e.footerBg,marginTop:e.footerMarginTop,padding:e.footerPadding,borderTop:e.footerBorderTop,borderRadius:e.footerBorderRadius,[`> ${e.antCls}-btn + ${e.antCls}-btn`]:{marginInlineStart:e.marginXS}},[`${t}-open`]:{overflow:"hidden"}})},{[`${t}-pure-panel`]:{top:"auto",padding:0,display:"flex",flexDirection:"column",[`${t}-content,
${t}-body,
${t}-confirm-body-wrapper`]:{display:"flex",flexDirection:"column",flex:"auto"},[`${t}-confirm-body`]:{marginBottom:"auto"}}}]},Oet=e=>{const{componentCls:t}=e;return{[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:"rtl",[`${t}-confirm-body`]:{direction:"rtl"}}}}},Ret=e=>{const{componentCls:t}=e,n=zSe(e);delete n.xs;const r=Object.keys(n).map(i=>({[`@media (min-width: ${Ie(n[i])})`]:{width:`var(--${t.replace(".","")}-${i}-width)`}}));return{[`${t}-root`]:{[t]:[{width:`var(--${t.replace(".","")}-xs-width)`}].concat(rt(r))}}},GSe=e=>{const t=e.padding,n=e.fontSizeHeading5,r=e.lineHeightHeading5;return Un(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()})},WSe=e=>({footerBg:"transparent",headerBg:e.colorBgElevated,titleLineHeight:e.lineHeightHeading5,titleFontSize:e.fontSizeHeading5,contentBg:e.colorBgElevated,titleColor:e.colorTextHeading,contentPadding:e.wireframe?0:`${Ie(e.paddingMD)} ${Ie(e.paddingContentHorizontalLG)}`,headerPadding:e.wireframe?`${Ie(e.padding)} ${Ie(e.paddingLG)}`:0,headerBorderBottom:e.wireframe?`${Ie(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:"none",headerMarginBottom:e.wireframe?0:e.marginXS,bodyPadding:e.wireframe?e.paddingLG:0,footerPadding:e.wireframe?`${Ie(e.paddingXS)} ${Ie(e.padding)}`:0,footerBorderTop:e.wireframe?`${Ie(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:"none",footerBorderRadius:e.wireframe?`0 0 ${Ie(e.borderRadiusLG)} ${Ie(e.borderRadiusLG)}`:0,footerMarginTop:e.wireframe?0:e.marginSM,confirmBodyPadding:e.wireframe?`${Ie(e.padding*2)} ${Ie(e.padding*2)} ${Ie(e.paddingLG)}`:0,confirmIconMarginInlineEnd:e.wireframe?e.margin:e.marginSM,confirmBtnsMarginTop:e.wireframe?e.marginLG:e.marginSM}),qSe=ir("Modal",e=>{const t=GSe(e);return[Tet(t),Oet(t),VSe(t),pS(t,"zoom"),Ret(t)]},WSe,{unitless:{titleLineHeight:!0}});var Aet=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);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 DH;const Iet=e=>{DH={x:e.pageX,y:e.pageY},setTimeout(()=>{DH=null},100)};YJe()&&document.documentElement.addEventListener("click",Iet,!0);const YSe=e=>{const{prefixCls:t,className:n,rootClassName:r,open:i,wrapClassName:o,centered:a,getContainer:s,focusTriggerAfterClose:l=!0,style:c,visible:u,width:d=520,footer:f,classNames:p,styles:m,children:g,loading:v,confirmLoading:y,zIndex:b,mousePosition:_,onOk:S,onCancel:x,destroyOnHidden:E,destroyOnClose:C}=e,w=Aet(e,["prefixCls","className","rootClassName","open","wrapClassName","centered","getContainer","focusTriggerAfterClose","style","visible","width","footer","classNames","styles","children","loading","confirmLoading","zIndex","mousePosition","onOk","onCancel","destroyOnHidden","destroyOnClose"]),{getPopupContainer:O,getPrefixCls:T,direction:A,modal:I}=h.useContext(cn),N=he=>{y||x==null||x(he)},D=he=>{S==null||S(he)},M=T("modal",t),k=T(),P=gi(M),[B,G,L]=qSe(M,P),W=Ce(o,{[`${M}-centered`]:a??(I==null?void 0:I.centered),[`${M}-wrap-rtl`]:A==="rtl"}),j=f!==null&&!v?h.createElement(USe,Object.assign({},e,{onOk:D,onCancel:N})):null,[H,X,Q,ue]=qq(h_(e),h_(I),{closable:!0,closeIcon:h.createElement(Yf,{className:`${M}-close-icon`}),closeIconRender:he=>jSe(M,he)}),ee=HSe(`.${M}-content`),[K,se]=Ou("Modal",b),[le,oe]=h.useMemo(()=>d&&typeof d=="object"?[void 0,d]:[d,void 0],[d]),ne=h.useMemo(()=>{const he={};return oe&&Object.keys(oe).forEach(me=>{const ce=oe[me];ce!==void 0&&(he[`--${M}-${me}-width`]=typeof ce=="number"?`${ce}px`:ce)}),he},[oe]);return B(h.createElement(Ad,{form:!0,space:!0},h.createElement(e2.Provider,{value:se},h.createElement(Uq,Object.assign({width:le},w,{zIndex:K,getContainer:s===void 0?O:s,prefixCls:M,rootClassName:Ce(G,r,L,P),footer:j,visible:i??u,mousePosition:_??DH,onClose:N,closable:H&&Object.assign({disabled:Q,closeIcon:X},ue),closeIcon:X,focusTriggerAfterClose:l,transitionName:Va(k,"zoom",e.transitionName),maskTransitionName:Va(k,"fade",e.maskTransitionName),className:Ce(G,n,I==null?void 0:I.className),style:Object.assign(Object.assign(Object.assign({},I==null?void 0:I.style),c),ne),classNames:Object.assign(Object.assign(Object.assign({},I==null?void 0:I.classNames),p),{wrapper:Ce(W,p==null?void 0:p.wrapper)}),styles:Object.assign(Object.assign({},I==null?void 0:I.styles),m),panelRef:ee,destroyOnClose:E??C}),v?h.createElement(bh,{active:!0,title:!1,paragraph:{rows:4},className:`${M}-body-skeleton`}):g))))},Net=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({},xd()),[`&${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% - ${Ie(e.marginSM)})`},[`${e.iconCls} + ${u}-paragraph`]:{maxWidth:`calc(100% - ${Ie(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}}},Met=uS(["Modal","confirm"],e=>{const t=GSe(e);return[Net(t)]},WSe,{order:-1e3});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};function KSe(e){const{prefixCls:t,icon:n,okText:r,cancelText:i,confirmPrefixCls:o,type:a,okCancel:s,footer:l,locale:c}=e,u=ket(e,["prefixCls","icon","okText","cancelText","confirmPrefixCls","type","okCancel","footer","locale"]);let d=n;if(!n&&n!==null)switch(a){case"info":d=h.createElement(vP,null);break;case"success":d=h.createElement(vv,null);break;case"error":d=h.createElement(qf,null);break;default:d=h.createElement(Ag,null)}const f=s??a==="confirm",p=e.autoFocusButton===null?!1:e.autoFocusButton||"ok",[m]=Ma("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:p,cancelTextLocale:y,okTextLocale:v,mergedOkCancel:f},u),_=h.useMemo(()=>b,rt(Object.values(b))),S=h.createElement(h.Fragment,null,h.createElement(fre,null),h.createElement(pre,null)),x=e.title!==void 0&&e.title!==null,E=`${o}-body`;return h.createElement("div",{className:`${o}-body-wrapper`},h.createElement("div",{className:Ce(E,{[`${E}-has-title`]:x})},d,h.createElement("div",{className:`${o}-paragraph`},x&&h.createElement("span",{className:`${o}-title`},e.title),h.createElement("div",{className:`${o}-content`},e.content))),l===void 0||typeof l=="function"?h.createElement(CSe,{value:_},h.createElement("div",{className:`${o}-btns`},typeof l=="function"?l(S,{OkBtn:pre,CancelBtn:fre}):S)):l,h.createElement(Met,{prefixCls:t}))}const Pet=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`,p=e.width||416,m=e.style||{},g=e.mask===void 0?!0:e.mask,v=e.maskClosable===void 0?!1:e.maskClosable,y=Ce(f,`${f}-${e.type}`,{[`${f}-rtl`]:i==="rtl"},e.className),[,b]=Ko(),_=h.useMemo(()=>n!==void 0?n:b.zIndexPopupBase+Iq,[n,b]);return h.createElement(YSe,Object.assign({},e,{className:y,wrapClassName:Ce({[`${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:p,zIndex:_,closable:c}),h.createElement(KSe,Object.assign({},e,{confirmPrefixCls:f})))},QSe=e=>{const{rootPrefixCls:t,iconPrefixCls:n,direction:r,theme:i}=e;return h.createElement(Ln,{prefixCls:t,iconPrefixCls:n,direction:r,theme:i},h.createElement(Pet,Object.assign({},e)))},$0=[];let XSe="";function ZSe(){return XSe}const Det=e=>{var t,n;const{prefixCls:r,getContainer:i,direction:o}=e,a=d_e(),s=h.useContext(cn),l=ZSe()||s.getPrefixCls(),c=r||`${l}-modal`;let u=i;return u===!1&&(u=void 0),pe.createElement(QSe,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 l2(e){const t=j_e(),n=document.createDocumentFragment();let r=Object.assign(Object.assign({},e),{close:l,open:!0}),i,o;function a(...u){var d;if(u.some(m=>m==null?void 0:m.triggerCancel)){var p;(d=e.onCancel)===null||d===void 0||(p=d).call.apply(p,[e,()=>{}].concat(rt(u.slice(1))))}for(let m=0;m<$0.length;m++)if($0[m]===l){$0.splice(m,1);break}o()}function s(u){clearTimeout(i),i=setTimeout(()=>{const d=t.getPrefixCls(void 0,ZSe()),f=t.getIconPrefixCls(),p=t.getTheme(),m=pe.createElement(Det,Object.assign({},u));o=kq()(pe.createElement(Ln,{prefixCls:d,iconPrefixCls:f,theme:p},t.holderRender?t.holderRender(m):m),n)})}function l(...u){r=Object.assign(Object.assign({},r),{open:!1,afterClose:()=>{typeof e.afterClose=="function"&&e.afterClose(),a.apply(this,u)}}),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),$0.push(l),{destroy:l,update:c}}function JSe(e){return Object.assign(Object.assign({},e),{type:"warning"})}function eEe(e){return Object.assign(Object.assign({},e),{type:"info"})}function tEe(e){return Object.assign(Object.assign({},e),{type:"success"})}function nEe(e){return Object.assign(Object.assign({},e),{type:"error"})}function rEe(e){return Object.assign(Object.assign({},e),{type:"confirm"})}function Let({rootPrefixCls:e}){XSe=e}var $et=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const Fet=(e,t)=>{var n,{afterClose:r,config:i}=e,o=$et(e,["afterClose","config"]);const[a,s]=h.useState(!0),[l,c]=h.useState(i),{direction:u,getPrefixCls:d}=h.useContext(cn),f=d("modal"),p=d(),m=()=>{var b;r(),(b=l.afterClose)===null||b===void 0||b.call(l)},g=(...b)=>{var _;if(s(!1),b.some(E=>E==null?void 0:E.triggerCancel)){var x;(_=l.onCancel)===null||_===void 0||(x=_).call.apply(x,[l,()=>{}].concat(rt(b.slice(1))))}};h.useImperativeHandle(t,()=>({destroy:g,update:b=>{c(_=>{const S=typeof b=="function"?b(_):b;return Object.assign(Object.assign({},_),S)})}}));const v=(n=l.okCancel)!==null&&n!==void 0?n:l.type==="confirm",[y]=Ma("Modal",gu.Modal);return h.createElement(QSe,Object.assign({prefixCls:f,rootPrefixCls:p},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))},Bet=h.forwardRef(Fet);let Fre=0;const Het=h.memo(h.forwardRef((e,t)=>{const[n,r]=TQe();return h.useImperativeHandle(t,()=>({patchElement:r}),[]),h.createElement(h.Fragment,null,n)}));function iEe(){const e=h.useRef(null),[t,n]=h.useState([]);h.useEffect(()=>{t.length&&(rt(t).forEach(a=>{a()}),n([]))},[t]);const r=h.useCallback(o=>function(s){var l;Fre+=1;const c=h.createRef();let u;const d=new Promise(v=>{u=v});let f=!1,p;const m=h.createElement(Bet,{key:`modal-${Fre}`,config:o(s),ref:c,afterClose:()=>{p==null||p()},isSilent:()=>f,onConfirm:v=>{u(v)}});return p=(l=e.current)===null||l===void 0?void 0:l.patchElement(m),p&&$0.push(p),{destroy:()=>{function v(){var y;(y=c.current)===null||y===void 0||y.destroy()}c.current?v():n(y=>[].concat(rt(y),[v]))},update:v=>{function y(){var b;(b=c.current)===null||b===void 0||b.update(v)}c.current?y():n(b=>[].concat(rt(b),[y]))},then:v=>(f=!0,d.then(v))}},[]);return[h.useMemo(()=>({info:r(eEe),success:r(tEe),error:r(nEe),warning:r(JSe),confirm:r(rEe)}),[]),h.createElement(Het,{key:"modal-holder",ref:e})]}const jet=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}}}}},Uet=["top","topLeft","topRight","bottom","bottomLeft","bottomRight"],zet={topLeft:"left",topRight:"right",bottomLeft:"left",bottomRight:"right",top:"left",bottom:"left"},Vet=(e,t)=>{const{componentCls:n}=e;return{[`${n}-${t}`]:{[`&${n}-stack > ${n}-notice-wrapper`]:{[t.startsWith("top")?"top":"bottom"]:0,[zet[t]]:{value:0,_skip_check_:!0}}}}},Get=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)},Wet=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)},qet=e=>{const{componentCls:t}=e;return Object.assign({[`${t}-stack`]:{[`& > ${t}-notice-wrapper`]:Object.assign({transition:`transform ${e.motionDurationSlow}, backdrop-filter 0s`,willChange:"transform, opacity",position:"absolute"},Get(e))},[`${t}-stack:not(${t}-stack-expanded)`]:{[`& > ${t}-notice-wrapper`]:Object.assign({},Wet(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"}}}},Uet.map(n=>Vet(e,n)).reduce((n,r)=>Object.assign(Object.assign({},n),r),{}))},Yet=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:p,notificationMarginEdge:m,notificationProgressBg:g,notificationProgressHeight:v,fontSize:y,lineHeight:b,width:_,notificationIconSize:S,colorText:x}=e,E=`${n}-notice`;return{position:"relative",marginBottom:o,marginInlineStart:"auto",background:f,borderRadius:a,boxShadow:r,[E]:{padding:p,width:_,maxWidth:`calc(100vw - ${Ie(e.calc(m).mul(2).equal())})`,overflow:"hidden",lineHeight:b,wordWrap:"break-word"},[`${E}-message`]:{marginBottom:e.marginXS,color:d,fontSize:i,lineHeight:e.lineHeightLG},[`${E}-description`]:{fontSize:y,color:x},[`${E}-closable ${E}-message`]:{paddingInlineEnd:e.paddingLG},[`${E}-with-icon ${E}-message`]:{marginBottom:e.marginXS,marginInlineStart:e.calc(e.marginSM).add(S).equal(),fontSize:i},[`${E}-with-icon ${E}-description`]:{marginInlineStart:e.calc(e.marginSM).add(S).equal(),fontSize:y},[`${E}-icon`]:{position:"absolute",fontSize:S,lineHeight:1,[`&-success${t}`]:{color:s},[`&-info${t}`]:{color:l},[`&-warning${t}`]:{color:c},[`&-error${t}`]:{color:u}},[`${E}-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",background:"none",border:"none","&:hover":{color:e.colorIconHover,backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive}},tl(e)),[`${E}-progress`]:{position:"absolute",display:"block",appearance:"none",inlineSize:`calc(100% - ${Ie(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}},[`${E}-actions`]:{float:"right",marginTop:e.marginSM}}},Ket=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({},mr(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}-actions`]:{float:"left"}}})},{[t]:{[`${a}-wrapper`]:Object.assign({},Yet(e))}}]},Qet=e=>({zIndexPopup:e.zIndexPopupBase+Iq+50,width:384}),Xet=e=>{const t=e.paddingMD,n=e.paddingLG;return Un(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:`${Ie(e.paddingMD)} ${Ie(e.paddingContentHorizontalLG)}`,notificationMarginEdge:e.marginLG,animationMaxHeight:150,notificationStackLayer:3,notificationProgressHeight:2,notificationProgressBg:`linear-gradient(90deg, ${e.colorPrimaryBorderHover}, ${e.colorPrimary})`})},Zet=ir("Notification",e=>{const t=Xet(e);return[Ket(t),jet(t),qet(t)]},Qet);function oEe(e,t){return t===null||t===!1?null:t||h.createElement(Yf,{className:`${e}-close-icon`})}const Jet={success:vv,info:vP,error:qf,warning:Ag},ett=e=>{const{prefixCls:t,icon:n,type:r,message:i,description:o,actions:a,role:s="alert"}=e;let l=null;return n?l=h.createElement("span",{className:`${t}-icon`},n):r&&(l=h.createElement(Jet[r]||null,{className:Ce(`${t}-icon`,`${t}-icon-${r}`)})),h.createElement("div",{className:Ce({[`${t}-with-icon`]:l}),role:s},l,h.createElement("div",{className:`${t}-message`},i),h.createElement("div",{className:`${t}-description`},o),a&&h.createElement("div",{className:`${t}-actions`},a))};function ttt(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 ntt(e){return{motionName:`${e}-fade`}}function rtt(e,t,n){return typeof e<"u"?e:typeof(t==null?void 0:t.closeIcon)<"u"?t.closeIcon:n==null?void 0:n.closeIcon}var itt=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const Bre=24,ott=4.5,att="topRight",stt=({children:e,prefixCls:t})=>{const n=gi(t),[r,i,o]=Zet(t,n);return r(pe.createElement(Z_e,{classNames:{list:Ce(i,o,n)}},e))},ltt=(e,{prefixCls:t,key:n})=>pe.createElement(stt,{prefixCls:t,key:n},e),ctt=pe.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:p,getPopupContainer:m,notification:g,direction:v}=h.useContext(cn),[,y]=Ko(),b=i||p("notification"),_=w=>ttt(w,n??Bre,r??Bre),S=()=>Ce({[`${b}-rtl`]:s??v==="rtl"}),x=()=>ntt(b),[E,C]=J_e({prefixCls:b,style:_,className:S,motion:x,closable:!0,closeIcon:oEe(b),duration:u??ott,getContainer:()=>(o==null?void 0:o())||(m==null?void 0:m())||document.body,maxCount:a,pauseOnHover:d,showProgress:f,onAllRemoved:l,renderNotifications:ltt,stack:c===!1?!1:{threshold:typeof c=="object"?c==null?void 0:c.threshold:void 0,offset:8,gap:y.margin}});return pe.useImperativeHandle(t,()=>Object.assign(Object.assign({},E),{prefixCls:b,notification:g})),C});function utt(e){const t=pe.useRef(null);return Wf(),[pe.useMemo(()=>{const r=s=>{var l;if(!t.current)return;const{open:c,prefixCls:u,notification:d}=t.current,f=`${u}-notice`,{message:p,description:m,icon:g,type:v,btn:y,actions:b,className:_,style:S,role:x="alert",closeIcon:E,closable:C}=s,w=itt(s,["message","description","icon","type","btn","actions","className","style","role","closeIcon","closable"]),O=b??y,T=oEe(f,rtt(E,e,d));return c(Object.assign(Object.assign({placement:(l=e==null?void 0:e.placement)!==null&&l!==void 0?l:att},w),{content:pe.createElement(ett,{prefixCls:f,icon:g,type:v,message:p,description:m,actions:O,role:x}),className:Ce(v&&`${f}-${v}`,_,d==null?void 0:d.className),style:Object.assign(Object.assign({},d==null?void 0:d.style),S),closeIcon:T,closable:C??!!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},[]),pe.createElement(ctt,Object.assign({key:"notification-holder"},e,{ref:t}))]}function dtt(e){return utt(e)}const LH=pe.createContext({}),aEe=pe.createContext({message:{},notification:{},modal:{}}),ftt=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"}}}},ptt=()=>({}),htt=ir("App",ftt,ptt),mtt=e=>{const{prefixCls:t,children:n,className:r,rootClassName:i,message:o,notification:a,style:s,component:l="div"}=e,{direction:c,getPrefixCls:u}=h.useContext(cn),d=u("app",t),[f,p,m]=htt(d),g=Ce(p,d,r,i,m,{[`${d}-rtl`]:c==="rtl"}),v=h.useContext(LH),y=pe.useMemo(()=>({message:Object.assign(Object.assign({},v.message),o),notification:Object.assign(Object.assign({},v.notification),a)}),[o,a,v.message,v.notification]),[b,_]=iSe(y.message),[S,x]=dtt(y.notification),[E,C]=iEe(),w=pe.useMemo(()=>({message:b,notification:S,modal:E}),[b,S,E]);Wf()(!(m&&l===!1),"usage","When using cssVar, ensure `component` is assigned a valid React component string.");const O=l===!1?pe.Fragment:l,T={className:g,style:s};return f(pe.createElement(aEe.Provider,{value:w},pe.createElement(LH.Provider,{value:y},pe.createElement(O,Object.assign({},l===!1?void 0:T),C,_,x,n))))},gtt=()=>pe.useContext(aEe),PP=mtt;PP.useApp=gtt;function sEe(e){return t=>h.createElement(Ln,{theme:{token:{motion:!1,zIndexPopupBase:0}}},h.createElement(e,Object.assign({},t)))}const Ig=(e,t,n,r,i)=>sEe(a=>{const{prefixCls:s,style:l}=a,c=h.useRef(null),[u,d]=h.useState(0),[f,p]=h.useState(0),[m,g]=Pn(!1,{value:a.open}),{getPrefixCls:v}=h.useContext(cn),y=v(r||"select",s);h.useEffect(()=>{if(g(!0),typeof ResizeObserver<"u"){const S=new ResizeObserver(E=>{const C=E[0].target;d(C.offsetHeight+8),p(C.offsetWidth)}),x=setInterval(()=>{var E;const C=i?`.${i(y)}`:`.${y}-dropdown`,w=(E=c.current)===null||E===void 0?void 0:E.querySelector(C);w&&(clearInterval(x),S.observe(w))},10);return()=>{clearInterval(x),S.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 h.createElement("div",{ref:c,style:_},h.createElement(e,Object.assign({},b)))}),DP=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 LP=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 h.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:h.createElement("span",{className:Ce(n.split(/\s+/).map(function(c){return"".concat(c,"-icon")}))},o))},vtt=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=pe.useMemo(function(){if(qt(i)==="object")return i.clearIcon;if(o)return o},[i,o]),u=pe.useMemo(function(){return!!(!a&&i&&(r.length||s)&&!(l==="combobox"&&s===""))},[i,a,r.length,s,l]);return{allowClear:u,clearIcon:pe.createElement(LP,{className:"".concat(t,"-clear"),onMouseDown:n,customizeIcon:c},"×")}},lEe=h.createContext(null);function Yq(){return h.useContext(lEe)}function btt(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,t=h.useState(!1),n=Re(t,2),r=n[0],i=n[1],o=h.useRef(null),a=function(){window.clearTimeout(o.current)};h.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 cEe(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,t=h.useRef(null),n=h.useRef(null);h.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 ytt(e,t,n,r){var i=h.useRef(null);i.current={open:t,triggerOpen:n,customizedTrigger:r},h.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 _tt(e){return e&&![Ut.ESC,Ut.SHIFT,Ut.BACKSPACE,Ut.TAB,Ut.WIN_KEY,Ut.ALT,Ut.META,Ut.WIN_KEY_RIGHT,Ut.CTRL,Ut.SEMICOLON,Ut.EQUALS,Ut.CAPS_LOCK,Ut.CONTEXT_MENU,Ut.F1,Ut.F2,Ut.F3,Ut.F4,Ut.F5,Ut.F6,Ut.F7,Ut.F8,Ut.F9,Ut.F10,Ut.F11,Ut.F12].includes(e)}var Stt=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],eb=void 0;function Ett(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,p=e.display,m=e.order,g=e.component,v=g===void 0?"div":g,y=kt(e,Stt),b=a&&!p;function _(w){l(c,w)}h.useEffect(function(){return function(){_(null)}},[]);var S=o&&i!==eb?o(i,{index:m}):f,x;r||(x={opacity:b?0:1,height:b?0:eb,overflowY:b?"hidden":eb,order:a?m:eb,pointerEvents:b?"none":eb,position:b?"absolute":eb});var E={};b&&(E["aria-hidden"]=!0);var C=h.createElement(v,Xe({className:Ce(!r&&n,u),style:z(z({},x),d)},E,y,{ref:t}),S);return a&&(C=h.createElement(Oa,{onResize:function(O){var T=O.offsetWidth;_(T)},disabled:s},C)),C}var cx=h.forwardRef(Ett);cx.displayName="Item";function Ctt(e){if(typeof MessageChannel>"u")tr(e);else{var t=new MessageChannel;t.port1.onmessage=function(){return e()},t.port2.postMessage(void 0)}}function xtt(){var e=h.useRef(null),t=function(r){e.current||(e.current=[],Ctt(function(){Fl.unstable_batchedUpdates(function(){e.current.forEach(function(i){i()}),e.current=null})})),e.current.push(r)};return t}function NE(e,t){var n=h.useState(t),r=Re(n,2),i=r[0],o=r[1],a=qn(function(s){e(function(){o(s)})});return[i,a]}var F4=pe.createContext(null),wtt=["component"],Ttt=["className"],Ott=["className"],Rtt=function(t,n){var r=h.useContext(F4);if(!r){var i=t.component,o=i===void 0?"div":i,a=kt(t,wtt);return h.createElement(o,Xe({},a,{ref:n}))}var s=r.className,l=kt(r,Ttt),c=t.className,u=kt(t,Ott);return h.createElement(F4.Provider,{value:null},h.createElement(cx,Xe({ref:n,className:Ce(s,c)},l,u)))},uEe=h.forwardRef(Rtt);uEe.displayName="RawItem";var Att=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],dEe="responsive",fEe="invalidate";function Itt(e){return"+ ".concat(e.length," ...")}function Ntt(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,p=e.className,m=e.maxCount,g=e.renderRest,v=e.renderRawRest,y=e.suffix,b=e.component,_=b===void 0?"div":b,S=e.itemComponent,x=e.onVisibleChange,E=kt(e,Att),C=d==="full",w=xtt(),O=NE(w,null),T=Re(O,2),A=T[0],I=T[1],N=A||0,D=NE(w,new Map),M=Re(D,2),k=M[0],P=M[1],B=NE(w,0),G=Re(B,2),L=G[0],W=G[1],j=NE(w,0),H=Re(j,2),X=H[0],Q=H[1],ue=NE(w,0),ee=Re(ue,2),K=ee[0],se=ee[1],le=h.useState(null),oe=Re(le,2),ne=oe[0],he=oe[1],me=h.useState(null),ce=Re(me,2),re=ce[0],ve=ce[1],be=h.useMemo(function(){return re===null&&C?Number.MAX_SAFE_INTEGER:re||0},[re,A]),xe=h.useState(!1),we=Re(xe,2),de=we[0],Ee=we[1],Ne="".concat(r,"-item"),Te=Math.max(L,X),Ve=m===dEe,q=o.length&&Ve,U=m===fEe,Y=q||typeof m=="number"&&o.length>m,ae=h.useMemo(function(){var Rt=o;return q?A===null&&C?Rt=o:Rt=o.slice(0,Math.min(o.length,N/u)):typeof m=="number"&&(Rt=o.slice(0,m)),Rt},[o,u,A,m,q]),ye=h.useMemo(function(){return q?o.slice(be+1):o.slice(ae.length)},[o,ae,q,be]),fe=h.useCallback(function(Rt,Tt){var Me;return typeof l=="function"?l(Rt):(Me=l&&(Rt==null?void 0:Rt[l]))!==null&&Me!==void 0?Me:Tt},[l]),Ae=h.useCallback(a||function(Rt){return Rt},[a]);function We(Rt,Tt,Me){re===Rt&&(Tt===void 0||Tt===ne)||(ve(Rt),Me||(Ee(Rt<o.length-1),x==null||x(Rt)),Tt!==void 0&&he(Tt))}function ie(Rt,Tt){I(Tt.clientWidth)}function Be(Rt,Tt){P(function(Me){var Ue=new Map(Me);return Tt===null?Ue.delete(Rt):Ue.set(Rt,Tt),Ue})}function Fe(Rt,Tt){Q(Tt),W(X)}function Pe(Rt,Tt){se(Tt)}function Ke(Rt){return k.get(fe(ae[Rt],Rt))}er(function(){if(N&&typeof Te=="number"&&ae){var Rt=K,Tt=ae.length,Me=Tt-1;if(!Tt){We(0,null);return}for(var Ue=0;Ue<Tt;Ue+=1){var $e=Ke(Ue);if(C&&($e=$e||0),$e===void 0){We(Ue-1,void 0,!0);break}if(Rt+=$e,Me===0&&Rt<=N||Ue===Me-1&&Rt+Ke(Me)<=N){We(Me,null);break}else if(Rt+Te>N){We(Ue-1,Rt-$e-K+X);break}}y&&Ke(0)+K>N&&he(null)}},[N,k,X,K,fe,ae]);var tt=de&&!!ye.length,Ge={};ne!==null&&q&&(Ge={position:"absolute",left:ne,top:0});var Nt={prefixCls:Ne,responsive:q,component:S,invalidate:U},lt=s?function(Rt,Tt){var Me=fe(Rt,Tt);return h.createElement(F4.Provider,{key:Me,value:z(z({},Nt),{},{order:Tt,item:Rt,itemKey:Me,registerSize:Be,display:Tt<=be})},s(Rt,Tt))}:function(Rt,Tt){var Me=fe(Rt,Tt);return h.createElement(cx,Xe({},Nt,{order:Tt,key:Me,item:Rt,renderItem:Ae,itemKey:Me,registerSize:Be,display:Tt<=be}))},st={order:tt?be:Number.MAX_SAFE_INTEGER,className:"".concat(Ne,"-rest"),registerSize:Fe,display:tt},It=g||Itt,ct=v?h.createElement(F4.Provider,{value:z(z({},Nt),st)},v(ye)):h.createElement(cx,Xe({},Nt,st),typeof It=="function"?It(ye):It),Pt=h.createElement(_,Xe({className:Ce(!U&&r,p),style:f,ref:t},E),ae.map(lt),Y?ct:null,y&&h.createElement(cx,Xe({},Nt,{responsive:Ve,responsiveDisabled:!q,order:be,className:"".concat(Ne,"-suffix"),registerSize:Pe,display:!0,style:Ge}),y));return Ve?h.createElement(Oa,{onResize:ie,disabled:!q},Pt):Pt}var pd=h.forwardRef(Ntt);pd.displayName="Overflow";pd.Item=uEe;pd.RESPONSIVE=dEe;pd.INVALIDATE=fEe;function Mtt(e,t,n){var r=z(z({},e),t);return Object.keys(t).forEach(function(i){var o=t[i];typeof o=="function"&&(r[i]=function(){for(var a,s=arguments.length,l=new Array(s),c=0;c<s;c++)l[c]=arguments[c];return o.apply(void 0,l),(a=e[i])===null||a===void 0?void 0:a.call.apply(a,[e].concat(l))})}),r}var ktt=["prefixCls","id","inputElement","autoFocus","autoComplete","editable","activeDescendantId","value","open","attrs"],Ptt=function(t,n){var r=t.prefixCls,i=t.id,o=t.inputElement,a=t.autoFocus,s=t.autoComplete,l=t.editable,c=t.activeDescendantId,u=t.value,d=t.open,f=t.attrs,p=kt(t,ktt),m=o||h.createElement("input",null),g=m,v=g.ref,y=g.props;return"maxLength"in m.props,m=h.cloneElement(m,z(z(z({type:"search"},Mtt(p,y)),{},{id:i,ref:aa(n,v),autoComplete:s||"off",autoFocus:a,className:Ce("".concat(r,"-selection-search-input"),y==null?void 0:y.className),role:"combobox","aria-expanded":d||!1,"aria-haspopup":"listbox","aria-owns":"".concat(i,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(i,"_list"),"aria-activedescendant":d?c:void 0},f),{},{value:l?u:"",readOnly:!l,unselectable:l?null:"on",style:z(z({},y.style),{},{opacity:l?null:0})})),m},pEe=h.forwardRef(Ptt);function hEe(e){return Array.isArray(e)?e:e!==void 0?[e]:[]}var Dtt=typeof window<"u"&&window.document&&window.document.documentElement,Ltt=Dtt;function $tt(e){return e!=null}function Ftt(e){return!e&&e!==0}function Hre(e){return["string","number"].includes(qt(e))}function mEe(e){var t=void 0;return e&&(Hre(e.title)?t=e.title.toString():Hre(e.label)&&(t=e.label.toString())),t}function Btt(e,t){Ltt?h.useLayoutEffect(e,t):h.useEffect(e,t)}function Htt(e){var t;return(t=e.key)!==null&&t!==void 0?t:e.value}var jre=function(t){t.preventDefault(),t.stopPropagation()},jtt=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,p=t.autoFocus,m=t.autoComplete,g=t.activeDescendantId,v=t.tabIndex,y=t.removeIcon,b=t.maxTagCount,_=t.maxTagTextLength,S=t.maxTagPlaceholder,x=S===void 0?function(me){return"+ ".concat(me.length," ...")}:S,E=t.tagRender,C=t.onToggleOpen,w=t.onRemove,O=t.onInputChange,T=t.onInputPaste,A=t.onInputKeyDown,I=t.onInputMouseDown,N=t.onInputCompositionStart,D=t.onInputCompositionEnd,M=t.onInputBlur,k=h.useRef(null),P=h.useState(0),B=Re(P,2),G=B[0],L=B[1],W=h.useState(!1),j=Re(W,2),H=j[0],X=j[1],Q="".concat(r,"-selection"),ue=o||d==="multiple"&&s===!1||d==="tags"?a:"",ee=d==="tags"||d==="multiple"&&s===!1||f&&(o||H);Btt(function(){L(k.current.scrollWidth)},[ue]);var K=function(ce,re,ve,be,xe){return h.createElement("span",{title:mEe(ce),className:Ce("".concat(Q,"-item"),te({},"".concat(Q,"-item-disabled"),ve))},h.createElement("span",{className:"".concat(Q,"-item-content")},re),be&&h.createElement(LP,{className:"".concat(Q,"-item-remove"),onMouseDown:jre,onClick:xe,customizeIcon:y},"×"))},se=function(ce,re,ve,be,xe,we){var de=function(Ne){jre(Ne),C(!o)};return h.createElement("span",{onMouseDown:de},E({label:re,value:ce,disabled:ve,closable:be,onClose:xe,isMaxTag:!!we}))},le=function(ce){var re=ce.disabled,ve=ce.label,be=ce.value,xe=!u&&!re,we=ve;if(typeof _=="number"&&(typeof ve=="string"||typeof ve=="number")){var de=String(we);de.length>_&&(we="".concat(de.slice(0,_),"..."))}var Ee=function(Te){Te&&Te.stopPropagation(),w(ce)};return typeof E=="function"?se(be,we,re,xe,Ee):K(ce,we,re,xe,Ee)},oe=function(ce){if(!i.length)return null;var re=typeof x=="function"?x(ce):x;return typeof E=="function"?se(void 0,re,!1,!1,void 0,!0):K({title:re},re,!1)},ne=h.createElement("div",{className:"".concat(Q,"-search"),style:{width:G},onFocus:function(){X(!0)},onBlur:function(){X(!1)}},h.createElement(pEe,{ref:l,open:o,prefixCls:r,id:n,inputElement:null,disabled:u,autoFocus:p,autoComplete:m,editable:ee,activeDescendantId:g,value:ue,onKeyDown:A,onMouseDown:I,onChange:O,onPaste:T,onCompositionStart:N,onCompositionEnd:D,onBlur:M,tabIndex:v,attrs:Oi(t,!0)}),h.createElement("span",{ref:k,className:"".concat(Q,"-search-mirror"),"aria-hidden":!0},ue," ")),he=h.createElement(pd,{prefixCls:"".concat(Q,"-overflow"),data:i,renderItem:le,renderRest:oe,suffix:ne,itemKey:Htt,maxCount:b});return h.createElement("span",{className:"".concat(Q,"-wrap")},he,!i.length&&!ue&&h.createElement("span",{className:"".concat(Q,"-placeholder")},c))},Utt=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,p=t.placeholder,m=t.tabIndex,g=t.showSearch,v=t.searchValue,y=t.activeValue,b=t.maxLength,_=t.onInputKeyDown,S=t.onInputMouseDown,x=t.onInputChange,E=t.onInputPaste,C=t.onInputCompositionStart,w=t.onInputCompositionEnd,O=t.onInputBlur,T=t.title,A=h.useState(!1),I=Re(A,2),N=I[0],D=I[1],M=u==="combobox",k=M||g,P=f[0],B=v||"";M&&y&&!N&&(B=y),h.useEffect(function(){M&&D(!1)},[M,y]);var G=u!=="combobox"&&!d&&!g?!1:!!B,L=T===void 0?mEe(P):T,W=h.useMemo(function(){return P?null:h.createElement("span",{className:"".concat(r,"-selection-placeholder"),style:G?{visibility:"hidden"}:void 0},p)},[P,G,p,r]);return h.createElement("span",{className:"".concat(r,"-selection-wrap")},h.createElement("span",{className:"".concat(r,"-selection-search")},h.createElement(pEe,{ref:o,prefixCls:r,id:i,open:d,inputElement:n,disabled:a,autoFocus:s,autoComplete:l,editable:k,activeDescendantId:c,value:B,onKeyDown:_,onMouseDown:S,onChange:function(H){D(!0),x(H)},onPaste:E,onCompositionStart:C,onCompositionEnd:w,onBlur:O,tabIndex:m,attrs:Oi(t,!0),maxLength:M?b:void 0})),!M&&P?h.createElement("span",{className:"".concat(r,"-selection-item"),title:L,style:G?{visibility:"hidden"}:void 0},P.label):null,W)},ztt=function(t,n){var r=h.useRef(null),i=h.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,p=t.onSearch,m=t.onSearchSubmit,g=t.onToggleOpen,v=t.onInputKeyDown,y=t.onInputBlur,b=t.domRef;h.useImperativeHandle(n,function(){return{focus:function(L){r.current.focus(L)},blur:function(){r.current.blur()}}});var _=cEe(0),S=Re(_,2),x=S[0],E=S[1],C=function(L){var W=L.which,j=r.current instanceof HTMLTextAreaElement;!j&&a&&(W===Ut.UP||W===Ut.DOWN)&&L.preventDefault(),v&&v(L),W===Ut.ENTER&&s==="tags"&&!i.current&&!a&&(m==null||m(L.target.value)),!(j&&!a&&~[Ut.UP,Ut.DOWN,Ut.LEFT,Ut.RIGHT].indexOf(W))&&_tt(W)&&g(!0)},w=function(){E(!0)},O=h.useRef(null),T=function(L){p(L,!0,i.current)!==!1&&g(!0)},A=function(){i.current=!0},I=function(L){i.current=!1,s!=="combobox"&&T(L.target.value)},N=function(L){var W=L.target.value;if(c&&O.current&&/[\r\n]/.test(O.current)){var j=O.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");W=W.replace(j,O.current)}O.current=null,T(W)},D=function(L){var W=L.clipboardData,j=W==null?void 0:W.getData("text");O.current=j||""},M=function(L){var W=L.target;if(W!==r.current){var j=document.body.style.msTouchAction!==void 0;j?setTimeout(function(){r.current.focus()}):r.current.focus()}},k=function(L){var W=x();L.target!==r.current&&!W&&!(s==="combobox"&&u)&&L.preventDefault(),(s!=="combobox"&&(!l||!W)||!a)&&(a&&f!==!1&&p("",!0,!1),g())},P={inputRef:r,onInputKeyDown:C,onInputMouseDown:w,onInputChange:N,onInputPaste:D,onInputCompositionStart:A,onInputCompositionEnd:I,onInputBlur:y},B=s==="multiple"||s==="tags"?h.createElement(jtt,Xe({},t,P)):h.createElement(Utt,Xe({},t,P));return h.createElement("div",{ref:b,className:"".concat(o,"-selector"),onClick:M,onMouseDown:k},d&&h.createElement("div",{className:"".concat(o,"-prefix")},d),B)},Vtt=h.forwardRef(ztt);function Gtt(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=h.useRef();if(!n||!n.points)return null;var p={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)?p.top=d:v==="t"?p.top=0:p.bottom=0,y===_||!["l","r"].includes(y)?p.left=c:y==="l"?p.left=0:p.right=0}return h.createElement("div",{ref:f,className:Ce("".concat(t,"-arrow"),a),style:p},s)}function Wtt(e){var t=e.prefixCls,n=e.open,r=e.zIndex,i=e.mask,o=e.motion;return i?h.createElement(ia,Xe({},o,{motionAppear:!0,visible:n,removeOnLeave:!0}),function(a){var s=a.className;return h.createElement("div",{style:{zIndex:r},className:Ce("".concat(t,"-mask"),s)})}):null}var qtt=h.memo(function(e){var t=e.children;return t},function(e,t){return t.cache}),Ytt=h.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,p=e.arrow,m=e.arrowPos,g=e.align,v=e.motion,y=e.maskMotion,b=e.forceRender,_=e.getPopupContainer,S=e.autoDestroy,x=e.portal,E=e.zIndex,C=e.onMouseEnter,w=e.onMouseLeave,O=e.onPointerEnter,T=e.onPointerDownCapture,A=e.ready,I=e.offsetX,N=e.offsetY,D=e.offsetR,M=e.offsetB,k=e.onAlign,P=e.onPrepare,B=e.stretch,G=e.targetWidth,L=e.targetHeight,W=typeof n=="function"?n():n,j=l||c,H=(_==null?void 0:_.length)>0,X=h.useState(!_||!H),Q=Re(X,2),ue=Q[0],ee=Q[1];if(er(function(){!ue&&H&&a&&ee(!0)},[ue,H,a]),!ue)return null;var K="auto",se={left:"-1000vw",top:"-1000vh",right:K,bottom:K};if(A||!l){var le,oe=g.points,ne=g.dynamicInset||((le=g._experimental)===null||le===void 0?void 0:le.dynamicInset),he=ne&&oe[0][1]==="r",me=ne&&oe[0][0]==="b";he?(se.right=D,se.left=K):(se.left=I,se.right=K),me?(se.bottom=M,se.top=K):(se.top=N,se.bottom=K)}var ce={};return B&&(B.includes("height")&&L?ce.height=L:B.includes("minHeight")&&L&&(ce.minHeight=L),B.includes("width")&&G?ce.width=G:B.includes("minWidth")&&G&&(ce.minWidth=G)),l||(ce.pointerEvents="none"),h.createElement(x,{open:b||j,getContainer:_&&function(){return _(a)},autoDestroy:S},h.createElement(Wtt,{prefixCls:i,open:l,zIndex:E,mask:f,motion:y}),h.createElement(Oa,{onResize:k,disabled:!l},function(re){return h.createElement(ia,Xe({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:b,leavedClassName:"".concat(i,"-hidden")},v,{onAppearPrepare:P,onEnterPrepare:P,visible:l,onVisibleChanged:function(be){var xe;v==null||(xe=v.onVisibleChanged)===null||xe===void 0||xe.call(v,be),s(be)}}),function(ve,be){var xe=ve.className,we=ve.style,de=Ce(i,xe,r);return h.createElement("div",{ref:aa(re,t,be),className:de,style:z(z(z(z({"--arrow-x":"".concat(m.x||0,"px"),"--arrow-y":"".concat(m.y||0,"px")},se),ce),we),{},{boxSizing:"border-box",zIndex:E},o),onMouseEnter:C,onMouseLeave:w,onPointerEnter:O,onClick:d,onPointerDownCapture:T},p&&h.createElement(Gtt,{prefixCls:i,arrow:p,arrowPos:m,align:g}),h.createElement(qtt,{cache:!l&&!u},W))})}))}),Ktt=h.forwardRef(function(e,t){var n=e.children,r=e.getTriggerDOMNode,i=Cd(n),o=h.useCallback(function(s){ww(t,r?r(s):s)},[r]),a=Bd(o,Rg(n));return i?h.cloneElement(n,{ref:a}):n}),Ure=h.createContext(null);function zre(e){return e?Array.isArray(e)?e:[e]:[]}function Qtt(e,t,n,r){return h.useMemo(function(){var i=zre(n??t),o=zre(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 Xtt(){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 Ztt(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(Xtt((s=e[l])===null||s===void 0?void 0:s.points,i,r))return"".concat(t,"-placement-").concat(l)}return""}function Vre(e,t,n,r){return t||(n?{motionName:"".concat(e,"-").concat(n)}:r?{motionName:r}:null)}function c2(e){return e.ownerDocument.defaultView}function $H(e){for(var t=[],n=e==null?void 0:e.parentElement,r=["hidden","scroll","clip","auto"];n;){var i=c2(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 Lw(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;return Number.isNaN(e)?t:e}function ME(e){return Lw(parseFloat(e),0)}function Gre(e,t){var n=z({},e);return(t||[]).forEach(function(r){if(!(r instanceof HTMLBodyElement||r instanceof HTMLHtmlElement)){var i=c2(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,p=r.clientHeight,m=r.offsetWidth,g=r.clientWidth,v=ME(s),y=ME(l),b=ME(c),_=ME(u),S=Lw(Math.round(d.width/m*1e3)/1e3),x=Lw(Math.round(d.height/f*1e3)/1e3),E=(m-g-b-_)*S,C=(f-p-v-y)*x,w=v*x,O=y*x,T=b*S,A=_*S,I=0,N=0;if(o==="clip"){var D=ME(a);I=D*S,N=D*x}var M=d.x+T-I,k=d.y+w-N,P=M+d.width+2*I-T-A-E,B=k+d.height+2*N-w-O-C;n.left=Math.max(n.left,M),n.top=Math.max(n.top,k),n.right=Math.min(n.right,P),n.bottom=Math.min(n.bottom,B)}}),n}function Wre(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 qre(e,t){var n=t||[],r=Re(n,2),i=r[0],o=r[1];return[Wre(e.width,i),Wre(e.height,o)]}function Yre(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return[e[0],e[1]]}function tb(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 Dh(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 Jtt(e,t,n,r,i,o,a){var s=h.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:i[r]||{}}),l=Re(s,2),c=l[0],u=l[1],d=h.useRef(0),f=h.useMemo(function(){return t?$H(t):[]},[t]),p=h.useRef({}),m=function(){p.current={}};e||m();var g=qn(function(){if(t&&n&&e){let Yn=function(ds,la){var pi=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Ve,ba=j.x+ds,Yd=j.y+la,np=ba+me,Wg=Yd+he,kn=Math.max(ba,pi.left),pr=Math.max(Yd,pi.top),Zr=Math.min(np,pi.right),eo=Math.min(Wg,pi.bottom);return Math.max(0,(Zr-kn)*(eo-pr))},go=function(){at=j.y+Ue,wt=at+he,Gt=j.x+Me,$t=Gt+me};var b,_,S,x,E=t,C=E.ownerDocument,w=c2(E),O=w.getComputedStyle(E),T=O.position,A=E.style.left,I=E.style.top,N=E.style.right,D=E.style.bottom,M=E.style.overflow,k=z(z({},i[r]),o),P=C.createElement("div");(b=E.parentElement)===null||b===void 0||b.appendChild(P),P.style.left="".concat(E.offsetLeft,"px"),P.style.top="".concat(E.offsetTop,"px"),P.style.position=T,P.style.height="".concat(E.offsetHeight,"px"),P.style.width="".concat(E.offsetWidth,"px"),E.style.left="0",E.style.top="0",E.style.right="auto",E.style.bottom="auto",E.style.overflow="hidden";var B;if(Array.isArray(n))B={x:n[0],y:n[1],width:0,height:0};else{var G,L,W=n.getBoundingClientRect();W.x=(G=W.x)!==null&&G!==void 0?G:W.left,W.y=(L=W.y)!==null&&L!==void 0?L:W.top,B={x:W.x,y:W.y,width:W.width,height:W.height}}var j=E.getBoundingClientRect(),H=w.getComputedStyle(E),X=H.height,Q=H.width;j.x=(_=j.x)!==null&&_!==void 0?_:j.left,j.y=(S=j.y)!==null&&S!==void 0?S:j.top;var ue=C.documentElement,ee=ue.clientWidth,K=ue.clientHeight,se=ue.scrollWidth,le=ue.scrollHeight,oe=ue.scrollTop,ne=ue.scrollLeft,he=j.height,me=j.width,ce=B.height,re=B.width,ve={left:0,top:0,right:ee,bottom:K},be={left:-ne,top:-oe,right:se-ne,bottom:le-oe},xe=k.htmlRegion,we="visible",de="visibleFirst";xe!=="scroll"&&xe!==de&&(xe=we);var Ee=xe===de,Ne=Gre(be,f),Te=Gre(ve,f),Ve=xe===we?Te:Ne,q=Ee?Te:Ve;E.style.left="auto",E.style.top="auto",E.style.right="0",E.style.bottom="0";var U=E.getBoundingClientRect();E.style.left=A,E.style.top=I,E.style.right=N,E.style.bottom=D,E.style.overflow=M,(x=E.parentElement)===null||x===void 0||x.removeChild(P);var Y=Lw(Math.round(me/parseFloat(Q)*1e3)/1e3),ae=Lw(Math.round(he/parseFloat(X)*1e3)/1e3);if(Y===0||ae===0||xw(n)&&!fS(n))return;var ye=k.offset,fe=k.targetOffset,Ae=qre(j,ye),We=Re(Ae,2),ie=We[0],Be=We[1],Fe=qre(B,fe),Pe=Re(Fe,2),Ke=Pe[0],tt=Pe[1];B.x-=Ke,B.y-=tt;var Ge=k.points||[],Nt=Re(Ge,2),lt=Nt[0],st=Nt[1],It=Yre(st),ct=Yre(lt),Pt=tb(B,It),Rt=tb(j,ct),Tt=z({},k),Me=Pt.x-Rt.x+ie,Ue=Pt.y-Rt.y+Be,$e=Yn(Me,Ue),Le=Yn(Me,Ue,Te),He=tb(B,["t","l"]),it=tb(j,["t","l"]),ft=tb(B,["b","r"]),Et=tb(j,["b","r"]),Dt=k.overflow||{},St=Dt.adjustX,bt=Dt.adjustY,xt=Dt.shiftX,ht=Dt.shiftY,Vt=function(la){return typeof la=="boolean"?la:la>=0},at,wt,Gt,$t;go();var zt=Vt(bt),Ft=ct[0]===It[0];if(zt&&ct[0]==="t"&&(wt>q.bottom||p.current.bt)){var De=Ue;Ft?De-=he-ce:De=He.y-Et.y-Be;var Ct=Yn(Me,De),et=Yn(Me,De,Te);Ct>$e||Ct===$e&&(!Ee||et>=Le)?(p.current.bt=!0,Ue=De,Be=-Be,Tt.points=[Dh(ct,0),Dh(It,0)]):p.current.bt=!1}if(zt&&ct[0]==="b"&&(at<q.top||p.current.tb)){var Ot=Ue;Ft?Ot+=he-ce:Ot=ft.y-it.y-Be;var At=Yn(Me,Ot),_n=Yn(Me,Ot,Te);At>$e||At===$e&&(!Ee||_n>=Le)?(p.current.tb=!0,Ue=Ot,Be=-Be,Tt.points=[Dh(ct,0),Dh(It,0)]):p.current.tb=!1}var zn=Vt(St),R=ct[1]===It[1];if(zn&&ct[1]==="l"&&($t>q.right||p.current.rl)){var $=Me;R?$-=me-re:$=He.x-Et.x-ie;var J=Yn($,Ue),Oe=Yn($,Ue,Te);J>$e||J===$e&&(!Ee||Oe>=Le)?(p.current.rl=!0,Me=$,ie=-ie,Tt.points=[Dh(ct,1),Dh(It,1)]):p.current.rl=!1}if(zn&&ct[1]==="r"&&(Gt<q.left||p.current.lr)){var qe=Me;R?qe+=me-re:qe=ft.x-it.x-ie;var Qe=Yn(qe,Ue),Bt=Yn(qe,Ue,Te);Qe>$e||Qe===$e&&(!Ee||Bt>=Le)?(p.current.lr=!0,Me=qe,ie=-ie,Tt.points=[Dh(ct,1),Dh(It,1)]):p.current.lr=!1}go();var fn=xt===!0?0:xt;typeof fn=="number"&&(Gt<Te.left&&(Me-=Gt-Te.left-ie,B.x+re<Te.left+fn&&(Me+=B.x-Te.left+re-fn)),$t>Te.right&&(Me-=$t-Te.right-ie,B.x>Te.right-fn&&(Me+=B.x-Te.right+fn)));var gr=ht===!0?0:ht;typeof gr=="number"&&(at<Te.top&&(Ue-=at-Te.top-Be,B.y+ce<Te.top+gr&&(Ue+=B.y-Te.top+ce-gr)),wt>Te.bottom&&(Ue-=wt-Te.bottom-Be,B.y>Te.bottom-gr&&(Ue+=B.y-Te.bottom+gr)));var Jn=j.x+Me,Hr=Jn+me,bi=j.y+Ue,br=bi+he,wn=B.x,an=wn+re,yr=B.y,Cn=yr+ce,rn=Math.max(Jn,wn),Vn=Math.min(Hr,an),Er=(rn+Vn)/2,Lr=Er-Jn,Ii=Math.max(bi,yr),nr=Math.min(br,Cn),Wi=(Ii+nr)/2,mn=Wi-bi;a==null||a(t,Tt);var nn=U.right-j.x-(Me+j.width),In=U.bottom-j.y-(Ue+j.height);Y===1&&(Me=Math.round(Me),nn=Math.round(nn)),ae===1&&(Ue=Math.round(Ue),In=Math.round(In));var vr={ready:!0,offsetX:Me/Y,offsetY:Ue/ae,offsetR:nn/Y,offsetB:In/ae,arrowX:Lr/Y,arrowY:mn/ae,scaleX:Y,scaleY:ae,align:Tt};u(vr)}}),v=function(){d.current+=1;var _=d.current;Promise.resolve().then(function(){d.current===_&&g()})},y=function(){u(function(_){return z(z({},_),{},{ready:!1})})};return er(y,[r]),er(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 ent(e,t,n,r,i){er(function(){if(e&&t&&n){let d=function(){r(),i()};var o=t,a=n,s=$H(o),l=$H(a),c=c2(a),u=new Set([c].concat(rt(s),rt(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 tnt(e,t,n,r,i,o,a,s){var l=h.useRef(e);l.current=e;var c=h.useRef(!1);h.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)},p=c2(r);p.addEventListener("pointerdown",d,!0),p.addEventListener("mousedown",f,!0),p.addEventListener("contextmenu",f,!0);var m=D4(n);return m&&(m.addEventListener("mousedown",f,!0),m.addEventListener("contextmenu",f,!0)),function(){p.removeEventListener("pointerdown",d,!0),p.removeEventListener("mousedown",f,!0),p.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 nnt=["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 rnt(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:o2,t=h.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,p=n.onPopupVisibleChange,m=n.afterPopupVisibleChange,g=n.mouseEnterDelay,v=n.mouseLeaveDelay,y=v===void 0?.1:v,b=n.focusDelay,_=n.blurDelay,S=n.mask,x=n.maskClosable,E=x===void 0?!0:x,C=n.getPopupContainer,w=n.forceRender,O=n.autoDestroy,T=n.destroyPopupOnHide,A=n.popup,I=n.popupClassName,N=n.popupStyle,D=n.popupPlacement,M=n.builtinPlacements,k=M===void 0?{}:M,P=n.popupAlign,B=n.zIndex,G=n.stretch,L=n.getPopupClassNameFromAlign,W=n.fresh,j=n.alignPoint,H=n.onPopupClick,X=n.onPopupAlign,Q=n.arrow,ue=n.popupMotion,ee=n.maskMotion,K=n.popupTransitionName,se=n.popupAnimation,le=n.maskTransitionName,oe=n.maskAnimation,ne=n.className,he=n.getTriggerDOMNode,me=kt(n,nnt),ce=O||T||!1,re=h.useState(!1),ve=Re(re,2),be=ve[0],xe=ve[1];er(function(){xe(DP())},[]);var we=h.useRef({}),de=h.useContext(Ure),Ee=h.useMemo(function(){return{registerSubPopup:function(pr,Zr){we.current[pr]=Zr,de==null||de.registerSubPopup(pr,Zr)}}},[de]),Ne=a2(),Te=h.useState(null),Ve=Re(Te,2),q=Ve[0],U=Ve[1],Y=h.useRef(null),ae=qn(function(kn){Y.current=kn,xw(kn)&&q!==kn&&U(kn),de==null||de.registerSubPopup(Ne,kn)}),ye=h.useState(null),fe=Re(ye,2),Ae=fe[0],We=fe[1],ie=h.useRef(null),Be=qn(function(kn){xw(kn)&&Ae!==kn&&(We(kn),ie.current=kn)}),Fe=h.Children.only(a),Pe=(Fe==null?void 0:Fe.props)||{},Ke={},tt=qn(function(kn){var pr,Zr,eo=Ae;return(eo==null?void 0:eo.contains(kn))||((pr=D4(eo))===null||pr===void 0?void 0:pr.host)===kn||kn===eo||(q==null?void 0:q.contains(kn))||((Zr=D4(q))===null||Zr===void 0?void 0:Zr.host)===kn||kn===q||Object.values(we.current).some(function(to){return(to==null?void 0:to.contains(kn))||kn===to})}),Ge=Vre(o,ue,se,K),Nt=Vre(o,ee,oe,le),lt=h.useState(f||!1),st=Re(lt,2),It=st[0],ct=st[1],Pt=d??It,Rt=qn(function(kn){d===void 0&&ct(kn)});er(function(){ct(d||!1)},[d]);var Tt=h.useRef(Pt);Tt.current=Pt;var Me=h.useRef([]);Me.current=[];var Ue=qn(function(kn){var pr;Rt(kn),((pr=Me.current[Me.current.length-1])!==null&&pr!==void 0?pr:Pt)!==kn&&(Me.current.push(kn),p==null||p(kn))}),$e=h.useRef(),Le=function(){clearTimeout($e.current)},He=function(pr){var Zr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;Le(),Zr===0?Ue(pr):$e.current=setTimeout(function(){Ue(pr)},Zr*1e3)};h.useEffect(function(){return Le},[]);var it=h.useState(!1),ft=Re(it,2),Et=ft[0],Dt=ft[1];er(function(kn){(!kn||Pt)&&Dt(!0)},[Pt]);var St=h.useState(null),bt=Re(St,2),xt=bt[0],ht=bt[1],Vt=h.useState(null),at=Re(Vt,2),wt=at[0],Gt=at[1],$t=function(pr){Gt([pr.clientX,pr.clientY])},zt=Jtt(Pt,q,j&&wt!==null?wt:Ae,D,k,P,X),Ft=Re(zt,11),De=Ft[0],Ct=Ft[1],et=Ft[2],Ot=Ft[3],At=Ft[4],_n=Ft[5],zn=Ft[6],R=Ft[7],$=Ft[8],J=Ft[9],Oe=Ft[10],qe=Qtt(be,l,c,u),Qe=Re(qe,2),Bt=Qe[0],fn=Qe[1],gr=Bt.has("click"),Jn=fn.has("click")||fn.has("contextMenu"),Hr=qn(function(){Et||Oe()}),bi=function(){Tt.current&&j&&Jn&&He(!1)};ent(Pt,Ae,q,Hr,bi),er(function(){Hr()},[wt,D]),er(function(){Pt&&!(k!=null&&k[D])&&Hr()},[JSON.stringify(P)]);var br=h.useMemo(function(){var kn=Ztt(k,o,J,j);return Ce(kn,L==null?void 0:L(J))},[J,L,k,o,j]);h.useImperativeHandle(r,function(){return{nativeElement:ie.current,popupElement:Y.current,forceAlign:Hr}});var wn=h.useState(0),an=Re(wn,2),yr=an[0],Cn=an[1],rn=h.useState(0),Vn=Re(rn,2),Er=Vn[0],Lr=Vn[1],Ii=function(){if(G&&Ae){var pr=Ae.getBoundingClientRect();Cn(pr.width),Lr(pr.height)}},nr=function(){Ii(),Hr()},Wi=function(pr){Dt(!1),Oe(),m==null||m(pr)},mn=function(){return new Promise(function(pr){Ii(),ht(function(){return pr})})};er(function(){xt&&(Oe(),xt(),ht(null))},[xt]);function nn(kn,pr,Zr,eo){Ke[kn]=function(to){var Mh;eo==null||eo(to),He(pr,Zr);for(var rp=arguments.length,Wv=new Array(rp>1?rp-1:0),qg=1;qg<rp;qg++)Wv[qg-1]=arguments[qg];(Mh=Pe[kn])===null||Mh===void 0||Mh.call.apply(Mh,[Pe,to].concat(Wv))}}(gr||Jn)&&(Ke.onClick=function(kn){var pr;Tt.current&&Jn?He(!1):!Tt.current&&gr&&($t(kn),He(!0));for(var Zr=arguments.length,eo=new Array(Zr>1?Zr-1:0),to=1;to<Zr;to++)eo[to-1]=arguments[to];(pr=Pe.onClick)===null||pr===void 0||pr.call.apply(pr,[Pe,kn].concat(eo))});var In=tnt(Pt,Jn,Ae,q,S,E,tt,He),vr=Bt.has("hover"),Yn=fn.has("hover"),go,ds;vr&&(nn("onMouseEnter",!0,g,function(kn){$t(kn)}),nn("onPointerEnter",!0,g,function(kn){$t(kn)}),go=function(pr){(Pt||Et)&&q!==null&&q!==void 0&&q.contains(pr.target)&&He(!0,g)},j&&(Ke.onMouseMove=function(kn){var pr;(pr=Pe.onMouseMove)===null||pr===void 0||pr.call(Pe,kn)})),Yn&&(nn("onMouseLeave",!1,y),nn("onPointerLeave",!1,y),ds=function(){He(!1,y)}),Bt.has("focus")&&nn("onFocus",!0,b),fn.has("focus")&&nn("onBlur",!1,_),Bt.has("contextMenu")&&(Ke.onContextMenu=function(kn){var pr;Tt.current&&fn.has("contextMenu")?He(!1):($t(kn),He(!0)),kn.preventDefault();for(var Zr=arguments.length,eo=new Array(Zr>1?Zr-1:0),to=1;to<Zr;to++)eo[to-1]=arguments[to];(pr=Pe.onContextMenu)===null||pr===void 0||pr.call.apply(pr,[Pe,kn].concat(eo))}),ne&&(Ke.className=Ce(Pe.className,ne));var la=z(z({},Pe),Ke),pi={},ba=["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"];ba.forEach(function(kn){me[kn]&&(pi[kn]=function(){for(var pr,Zr=arguments.length,eo=new Array(Zr),to=0;to<Zr;to++)eo[to]=arguments[to];(pr=la[kn])===null||pr===void 0||pr.call.apply(pr,[la].concat(eo)),me[kn].apply(me,eo)})});var Yd=h.cloneElement(Fe,z(z({},la),pi)),np={x:_n,y:zn},Wg=Q?z({},Q!==!0?Q:{}):null;return h.createElement(h.Fragment,null,h.createElement(Oa,{disabled:!Pt,ref:Be,onResize:nr},h.createElement(Ktt,{getTriggerDOMNode:he},Yd)),h.createElement(Ure.Provider,{value:Ee},h.createElement(Ytt,{portal:e,ref:ae,prefixCls:o,popup:A,className:Ce(I,br),style:N,target:Ae,onMouseEnter:go,onMouseLeave:ds,onPointerEnter:go,zIndex:B,open:Pt,keepDom:Et,fresh:W,onClick:H,onPointerDownCapture:In,mask:S,motion:Ge,maskMotion:Nt,onVisibleChanged:Wi,onPrepare:mn,forceRender:w,autoDestroy:ce,getPopupContainer:C,align:J,arrow:Wg,arrowPos:np,ready:De,offsetX:Ct,offsetY:et,offsetR:Ot,offsetB:At,onAlign:Hr,stretch:G,targetWidth:yr/R,targetHeight:Er/$})))});return t}const u2=rnt(o2);var int=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],ont=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"}}},ant=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,p=t.placement,m=t.builtinPlacements,g=t.dropdownMatchSelectWidth,v=t.dropdownRender,y=t.dropdownAlign,b=t.getPopupContainer,_=t.empty,S=t.getTriggerDOMNode,x=t.onPopupVisibleChange,E=t.onPopupMouseEnter,C=kt(t,int),w="".concat(r,"-dropdown"),O=a;v&&(O=v(a));var T=h.useMemo(function(){return m||ont(g)},[m,g]),A=s?"".concat(w,"-").concat(s):l,I=typeof g=="number",N=h.useMemo(function(){return I?null:g===!1?"minWidth":"width"},[g,I]),D=c;I&&(D=z(z({},D),{},{width:g}));var M=h.useRef(null);return h.useImperativeHandle(n,function(){return{getPopupElement:function(){var P;return(P=M.current)===null||P===void 0?void 0:P.popupElement}}}),h.createElement(u2,Xe({},C,{showAction:x?["click"]:[],hideAction:x?["click"]:[],popupPlacement:p||(f==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:T,prefixCls:w,popupTransitionName:A,popup:h.createElement("div",{onMouseEnter:E},O),ref:M,stretch:N,popupAlign:y,popupVisible:i,getPopupContainer:b,popupClassName:Ce(u,te({},"".concat(w,"-empty"),_)),popupStyle:D,getTriggerDOMNode:S,onPopupVisibleChange:x}),o)},snt=h.forwardRef(ant);function Kre(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 FH(e){return typeof e<"u"&&!Number.isNaN(e)}function gEe(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 lnt(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.fieldNames,r=t.childrenAsData,i=[],o=gEe(n,!1),a=o.label,s=o.value,l=o.options,c=o.groupLabel;function u(d,f){Array.isArray(d)&&d.forEach(function(p){if(f||!(l in p)){var m=p[s];i.push({key:Kre(p,i.length),groupOption:f,data:p,label:p[a],value:m})}else{var g=p[c];g===void 0&&r&&(g=p.label),i.push({key:Kre(p,i.length),group:!0,data:p,label:g}),u(p[l],!0)}})}return u(e,!1),i}function BH(e){var t=z({},e);return"props"in t||Object.defineProperty(t,"props",{get:function(){return Vr(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),t}}),t}var cnt=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 p=l.split(d);return i=i||p.length>1,p.reduce(function(m,g){return[].concat(rt(m),rt(s(g,f)))},[]).filter(Boolean)},a=o(t,n);return i?typeof r<"u"?a.slice(0,r):a:null},Kq=h.createContext(null);function unt(e){var t=e.visible,n=e.values;if(!t)return null;var r=50;return h.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(qt(o))?o:a}).join(", ")),n.length>r?", ...":null)}var dnt=["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"],fnt=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"],HH=function(t){return t==="tags"||t==="multiple"},Qq=h.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,p=e.notFoundContent,m=p===void 0?"Not Found":p,g=e.onClear,v=e.mode,y=e.disabled,b=e.loading,_=e.getInputElement,S=e.getRawInputElement,x=e.open,E=e.defaultOpen,C=e.onDropdownVisibleChange,w=e.activeValue,O=e.onActiveValueChange,T=e.activeDescendantId,A=e.searchValue,I=e.autoClearSearchValue,N=e.onSearch,D=e.onSearchSplit,M=e.tokenSeparators,k=e.allowClear,P=e.prefix,B=e.suffixIcon,G=e.clearIcon,L=e.OptionList,W=e.animation,j=e.transitionName,H=e.dropdownStyle,X=e.dropdownClassName,Q=e.dropdownMatchSelectWidth,ue=e.dropdownRender,ee=e.dropdownAlign,K=e.placement,se=e.builtinPlacements,le=e.getPopupContainer,oe=e.showAction,ne=oe===void 0?[]:oe,he=e.onFocus,me=e.onBlur,ce=e.onKeyUp,re=e.onKeyDown,ve=e.onMouseDown,be=kt(e,dnt),xe=HH(v),we=(a!==void 0?a:xe)||v==="combobox",de=z({},be);fnt.forEach(function(wn){delete de[wn]}),c==null||c.forEach(function(wn){delete de[wn]});var Ee=h.useState(!1),Ne=Re(Ee,2),Te=Ne[0],Ve=Ne[1];h.useEffect(function(){Ve(DP())},[]);var q=h.useRef(null),U=h.useRef(null),Y=h.useRef(null),ae=h.useRef(null),ye=h.useRef(null),fe=h.useRef(!1),Ae=btt(),We=Re(Ae,3),ie=We[0],Be=We[1],Fe=We[2];h.useImperativeHandle(t,function(){var wn,an;return{focus:(wn=ae.current)===null||wn===void 0?void 0:wn.focus,blur:(an=ae.current)===null||an===void 0?void 0:an.blur,scrollTo:function(Cn){var rn;return(rn=ye.current)===null||rn===void 0?void 0:rn.scrollTo(Cn)},nativeElement:q.current||U.current}});var Pe=h.useMemo(function(){var wn;if(v!=="combobox")return A;var an=(wn=u[0])===null||wn===void 0?void 0:wn.value;return typeof an=="string"||typeof an=="number"?String(an):""},[A,v,u]),Ke=v==="combobox"&&typeof _=="function"&&_()||null,tt=typeof S=="function"&&S(),Ge=Bd(U,tt==null||(n=tt.props)===null||n===void 0?void 0:n.ref),Nt=h.useState(!1),lt=Re(Nt,2),st=lt[0],It=lt[1];er(function(){It(!0)},[]);var ct=Pn(!1,{defaultValue:E,value:x}),Pt=Re(ct,2),Rt=Pt[0],Tt=Pt[1],Me=st?Rt:!1,Ue=!m&&f;(y||Ue&&Me&&v==="combobox")&&(Me=!1);var $e=Ue?!1:Me,Le=h.useCallback(function(wn){var an=wn!==void 0?wn:!Me;y||(Tt(an),Me!==an&&(C==null||C(an)))},[y,Me,Tt,C]),He=h.useMemo(function(){return(M||[]).some(function(wn){return[`
`,`\r
`].includes(wn)})},[M]),it=h.useContext(Kq)||{},ft=it.maxCount,Et=it.rawValues,Dt=function(an,yr,Cn){if(!(xe&&FH(ft)&&(Et==null?void 0:Et.size)>=ft)){var rn=!0,Vn=an;O==null||O(null);var Er=cnt(an,M,FH(ft)?ft-Et.size:void 0),Lr=Cn?null:Er;return v!=="combobox"&&Lr&&(Vn="",D==null||D(Lr),Le(!1),rn=!1),N&&Pe!==Vn&&N(Vn,{source:yr?"typing":"effect"}),rn}},St=function(an){!an||!an.trim()||N(an,{source:"submit"})};h.useEffect(function(){!Me&&!xe&&v!=="combobox"&&Dt("",!1,!1)},[Me]),h.useEffect(function(){Rt&&y&&Tt(!1),y&&!fe.current&&Be(!1)},[y]);var bt=cEe(),xt=Re(bt,2),ht=xt[0],Vt=xt[1],at=h.useRef(!1),wt=function(an){var yr=ht(),Cn=an.key,rn=Cn==="Enter";if(rn&&(v!=="combobox"&&an.preventDefault(),Me||Le(!0)),Vt(!!Pe),Cn==="Backspace"&&!yr&&xe&&!Pe&&u.length){for(var Vn=rt(u),Er=null,Lr=Vn.length-1;Lr>=0;Lr-=1){var Ii=Vn[Lr];if(!Ii.disabled){Vn.splice(Lr,1),Er=Ii;break}}Er&&d(Vn,{type:"remove",values:[Er]})}for(var nr=arguments.length,Wi=new Array(nr>1?nr-1:0),mn=1;mn<nr;mn++)Wi[mn-1]=arguments[mn];if(Me&&(!rn||!at.current)){var nn;rn&&(at.current=!0),(nn=ye.current)===null||nn===void 0||nn.onKeyDown.apply(nn,[an].concat(Wi))}re==null||re.apply(void 0,[an].concat(Wi))},Gt=function(an){for(var yr=arguments.length,Cn=new Array(yr>1?yr-1:0),rn=1;rn<yr;rn++)Cn[rn-1]=arguments[rn];if(Me){var Vn;(Vn=ye.current)===null||Vn===void 0||Vn.onKeyUp.apply(Vn,[an].concat(Cn))}an.key==="Enter"&&(at.current=!1),ce==null||ce.apply(void 0,[an].concat(Cn))},$t=function(an){var yr=u.filter(function(Cn){return Cn!==an});d(yr,{type:"remove",values:[an]})},zt=function(){at.current=!1},Ft=h.useRef(!1),De=function(){Be(!0),y||(he&&!Ft.current&&he.apply(void 0,arguments),ne.includes("focus")&&Le(!0)),Ft.current=!0},Ct=function(){fe.current=!0,Be(!1,function(){Ft.current=!1,fe.current=!1,Le(!1)}),!y&&(Pe&&(v==="tags"?N(Pe,{source:"submit"}):v==="multiple"&&N("",{source:"blur"})),me&&me.apply(void 0,arguments))},et=[];h.useEffect(function(){return function(){et.forEach(function(wn){return clearTimeout(wn)}),et.splice(0,et.length)}},[]);var Ot=function(an){var yr,Cn=an.target,rn=(yr=Y.current)===null||yr===void 0?void 0:yr.getPopupElement();if(rn&&rn.contains(Cn)){var Vn=setTimeout(function(){var nr=et.indexOf(Vn);if(nr!==-1&&et.splice(nr,1),Fe(),!Te&&!rn.contains(document.activeElement)){var Wi;(Wi=ae.current)===null||Wi===void 0||Wi.focus()}});et.push(Vn)}for(var Er=arguments.length,Lr=new Array(Er>1?Er-1:0),Ii=1;Ii<Er;Ii++)Lr[Ii-1]=arguments[Ii];ve==null||ve.apply(void 0,[an].concat(Lr))},At=h.useState({}),_n=Re(At,2),zn=_n[1];function R(){zn({})}var $;tt&&($=function(an){Le(an)}),ytt(function(){var wn;return[q.current,(wn=Y.current)===null||wn===void 0?void 0:wn.getPopupElement()]},$e,Le,!!tt);var J=h.useMemo(function(){return z(z({},e),{},{notFoundContent:m,open:Me,triggerOpen:$e,id:r,showSearch:we,multiple:xe,toggleOpen:Le})},[e,m,$e,Me,r,we,xe,Le]),Oe=!!B||b,qe;Oe&&(qe=h.createElement(LP,{className:Ce("".concat(i,"-arrow"),te({},"".concat(i,"-arrow-loading"),b)),customizeIcon:B,customizeIconProps:{loading:b,searchValue:Pe,open:Me,focused:ie,showSearch:we}}));var Qe=function(){var an;g==null||g(),(an=ae.current)===null||an===void 0||an.focus(),d([],{type:"clear",values:u}),Dt("",!1,!1)},Bt=vtt(i,Qe,u,k,G,y,Pe,v),fn=Bt.allowClear,gr=Bt.clearIcon,Jn=h.createElement(L,{ref:ye}),Hr=Ce(i,o,te(te(te(te(te(te(te(te(te(te({},"".concat(i,"-focused"),ie),"".concat(i,"-multiple"),xe),"".concat(i,"-single"),!xe),"".concat(i,"-allow-clear"),k),"".concat(i,"-show-arrow"),Oe),"".concat(i,"-disabled"),y),"".concat(i,"-loading"),b),"".concat(i,"-open"),Me),"".concat(i,"-customize-input"),Ke),"".concat(i,"-show-search"),we)),bi=h.createElement(snt,{ref:Y,disabled:y,prefixCls:i,visible:$e,popupElement:Jn,animation:W,transitionName:j,dropdownStyle:H,dropdownClassName:X,direction:l,dropdownMatchSelectWidth:Q,dropdownRender:ue,dropdownAlign:ee,placement:K,builtinPlacements:se,getPopupContainer:le,empty:f,getTriggerDOMNode:function(an){return U.current||an},onPopupVisibleChange:$,onPopupMouseEnter:R},tt?h.cloneElement(tt,{ref:Ge}):h.createElement(Vtt,Xe({},e,{domRef:U,prefixCls:i,inputElement:Ke,ref:ae,id:r,prefix:P,showSearch:we,autoClearSearchValue:I,mode:v,activeDescendantId:T,tagRender:s,values:u,open:Me,onToggleOpen:Le,activeValue:w,searchValue:Pe,onSearch:Dt,onSearchSubmit:St,onRemove:$t,tokenWithEnter:He,onInputBlur:zt}))),br;return tt?br=bi:br=h.createElement("div",Xe({className:Hr},de,{ref:q,onMouseDown:Ot,onKeyDown:wt,onKeyUp:Gt,onFocus:De,onBlur:Ct}),h.createElement(unt,{visible:ie&&!Me,values:u}),bi,qe,fn&&gr),h.createElement(lEe.Provider,{value:J},br)}),Xq=function(){return null};Xq.isSelectOptGroup=!0;var Zq=function(){return null};Zq.isSelectOption=!0;var vEe=h.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=z(z({},f),{},te(te(te(te(te({transform:"translateY(".concat(r,"px)")},c?"marginRight":"marginLeft",-i),"position","absolute"),"left",0),"right",0),"top",0))),h.createElement("div",{style:d},h.createElement(Oa,{onResize:function(m){var g=m.offsetHeight;g&&s&&s()}},h.createElement("div",Xe({style:f,className:Ce(te({},"".concat(a,"-holder-inner"),a)),ref:t},l),o,u)))});vEe.displayName="Filler";function pnt(e){var t=e.children,n=e.setRef,r=h.useCallback(function(i){n(i)},[]);return h.cloneElement(t,{ref:r})}function hnt(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}),p=l(c);return h.createElement(pnt,{key:p,setRef:function(g){return o(c,g)}},f)})}function mnt(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]),p=l(a[d]);if(f!==p){c=d,u=u||f!==l(a[d+1]);break}}return c===null?null:{index:c,multiple:u}}function gnt(e,t,n){var r=h.useState(e),i=Re(r,2),o=i[0],a=i[1],s=h.useState(null),l=Re(s,2),c=l[0],u=l[1];return h.useEffect(function(){var d=mnt(o||[],e||[],t);(d==null?void 0:d.index)!==void 0&&u(e[d.index]),a(e)},[e]),[c]}var Qre=(typeof navigator>"u"?"undefined":qt(navigator))==="object"&&/Firefox/i.test(navigator.userAgent);const bEe=function(e,t,n,r){var i=h.useRef(!1),o=h.useRef(null);function a(){clearTimeout(o.current),i.current=!0,o.current=setTimeout(function(){i.current=!1},50)}var s=h.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 vnt(e,t,n,r,i,o,a){var s=h.useRef(0),l=h.useRef(null),c=h.useRef(null),u=h.useRef(!1),d=bEe(t,n,r,i);function f(b,_){if(tr.cancel(l.current),!d(!1,_)){var S=b;if(!S._virtualHandled)S._virtualHandled=!0;else return;s.current+=_,c.current=_,Qre||S.preventDefault(),l.current=tr(function(){var x=u.current?10:1;a(s.current*x,!1),s.current=0})}}function p(b,_){a(_,!0),Qre||b.preventDefault()}var m=h.useRef(null),g=h.useRef(null);function v(b){if(e){tr.cancel(g.current),g.current=tr(function(){m.current=null},2);var _=b.deltaX,S=b.deltaY,x=b.shiftKey,E=_,C=S;(m.current==="sx"||!m.current&&x&&S&&!_)&&(E=S,C=0,m.current="sx");var w=Math.abs(E),O=Math.abs(C);m.current===null&&(m.current=o&&w>O?"x":"y"),m.current==="y"?f(b,C):p(b,E)}}function y(b){e&&(u.current=b.detail===c.current)}return[v,y]}function bnt(e,t,n,r){var i=h.useMemo(function(){return[new Map,[]]},[e,n.id,r]),o=Re(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),p=a.get(d);if(f===void 0||p===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&&(p=g),f!==void 0&&p!==void 0)break}return{top:s[f-1]||0,bottom:s[p]}};return l}var ynt=function(){function e(){Qr(this,e),te(this,"maps",void 0),te(this,"id",0),te(this,"diffRecords",new Map),this.maps=Object.create(null)}return Xr(e,[{key:"set",value:function(n,r){this.diffRecords.set(n,this.maps[n]),this.maps[n]=r,this.id+=1}},{key:"get",value:function(n){return this.maps[n]}},{key:"resetRecord",value:function(){this.diffRecords.clear()}},{key:"getRecord",value:function(){return this.diffRecords}}]),e}();function Xre(e){var t=parseFloat(e);return isNaN(t)?0:t}function _nt(e,t,n){var r=h.useState(0),i=Re(r,2),o=i[0],a=i[1],s=h.useRef(new Map),l=h.useRef(new ynt),c=h.useRef(0);function u(){c.current+=1}function d(){var p=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;u();var m=function(){var y=!1;s.current.forEach(function(b,_){if(b&&b.offsetParent){var S=b.offsetHeight,x=getComputedStyle(b),E=x.marginTop,C=x.marginBottom,w=Xre(E),O=Xre(C),T=S+w+O;l.current.get(_)!==T&&(l.current.set(_,T),y=!0)}}),y&&a(function(b){return b+1})};if(p)m();else{c.current+=1;var g=c.current;Promise.resolve().then(function(){g===c.current&&m()})}}function f(p,m){var g=e(p);s.current.get(g),m?(s.current.set(g,m),d()):s.current.delete(g)}return h.useEffect(function(){return u},[]),[f,d,l.current,o]}var Zre=14/15;function Snt(e,t,n){var r=h.useRef(!1),i=h.useRef(0),o=h.useRef(0),a=h.useRef(null),s=h.useRef(null),l,c=function(p){if(r.current){var m=Math.ceil(p.touches[0].pageX),g=Math.ceil(p.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,p);_&&p.preventDefault(),clearInterval(s.current),_&&(s.current=setInterval(function(){b?v*=Zre:y*=Zre;var S=Math.floor(b?v:y);(!n(b,S,!0)||Math.abs(S)<=.1)&&clearInterval(s.current)},16))}},u=function(){r.current=!1,l()},d=function(p){l(),p.touches.length===1&&!r.current&&(r.current=!0,i.current=Math.ceil(p.touches[0].pageX),o.current=Math.ceil(p.touches[0].pageY),a.current=p.target,a.current.addEventListener("touchmove",c,{passive:!1}),a.current.addEventListener("touchend",u,{passive:!0}))};l=function(){a.current&&(a.current.removeEventListener("touchmove",c),a.current.removeEventListener("touchend",u))},er(function(){return e&&t.current.addEventListener("touchstart",d,{passive:!0}),function(){var f;(f=t.current)===null||f===void 0||f.removeEventListener("touchstart",d),l(),clearInterval(s.current)}},[e])}function Jre(e){return Math.floor(Math.pow(e,.5))}function jH(e,t){var n="touches"in e?e.touches[0]:e;return n[t?"pageX":"pageY"]-window[t?"scrollX":"scrollY"]}function Ent(e,t,n){h.useEffect(function(){var r=t.current;if(e&&r){var i=!1,o,a,s=function(){tr.cancel(o)},l=function f(){s(),o=tr(function(){n(a),f()})},c=function(p){if(!(p.target.draggable||p.button!==0)){var m=p;m._virtualHandled||(m._virtualHandled=!0,i=!0)}},u=function(){i=!1,s()},d=function(p){if(i){var m=jH(p,!1),g=r.getBoundingClientRect(),v=g.top,y=g.bottom;if(m<=v){var b=v-m;a=-Jre(b),l()}else if(m>=y){var _=m-y;a=Jre(_),l()}else s()}};return r.addEventListener("mousedown",c),r.ownerDocument.addEventListener("mouseup",u),r.ownerDocument.addEventListener("mousemove",d),function(){r.removeEventListener("mousedown",c),r.ownerDocument.removeEventListener("mouseup",u),r.ownerDocument.removeEventListener("mousemove",d),s()}}},[e])}var Cnt=10;function xnt(e,t,n,r,i,o,a,s){var l=h.useRef(),c=h.useState(null),u=Re(c,2),d=u[0],f=u[1];return er(function(){if(d&&d.times<Cnt){if(!e.current){f(function(G){return z({},G)});return}o();var p=d.targetAlign,m=d.originAlign,g=d.index,v=d.offset,y=e.current.clientHeight,b=!1,_=p,S=null;if(y){for(var x=p||m,E=0,C=0,w=0,O=Math.min(t.length-1,g),T=0;T<=O;T+=1){var A=i(t[T]);C=E;var I=n.get(A);w=C+(I===void 0?r:I),E=w}for(var N=x==="top"?v:y-v,D=O;D>=0;D-=1){var M=i(t[D]),k=n.get(M);if(k===void 0){b=!0;break}if(N-=k,N<=0)break}switch(x){case"top":S=C-v;break;case"bottom":S=w-y+v;break;default:{var P=e.current.scrollTop,B=P+y;C<P?_="top":w>B&&(_="bottom")}}S!==null&&a(S),S!==d.lastTop&&(b=!0)}b&&f(z(z({},d),{},{times:d.times+1,targetAlign:_,lastTop:S}))}},[d,e.current]),function(p){if(p==null){s();return}if(tr.cancel(l.current),typeof p=="number")a(p);else if(p&&qt(p)==="object"){var m,g=p.align;"index"in p?m=p.index:m=t.findIndex(function(b){return i(b)===p.key});var v=p.offset,y=v===void 0?0:v;f({times:0,index:m,offset:y,originAlign:g})}}}var eie=h.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,p=e.thumbStyle,m=e.showScrollBar,g=h.useState(!1),v=Re(g,2),y=v[0],b=v[1],_=h.useState(null),S=Re(_,2),x=S[0],E=S[1],C=h.useState(null),w=Re(C,2),O=w[0],T=w[1],A=!r,I=h.useRef(),N=h.useRef(),D=h.useState(m),M=Re(D,2),k=M[0],P=M[1],B=h.useRef(),G=function(){m===!0||m===!1||(clearTimeout(B.current),P(!0),B.current=setTimeout(function(){P(!1)},3e3))},L=o-d||0,W=d-u||0,j=h.useMemo(function(){if(i===0||L===0)return 0;var oe=i/L;return oe*W},[i,L,W]),H=function(ne){ne.stopPropagation(),ne.preventDefault()},X=h.useRef({top:j,dragging:y,pageY:x,startTop:O});X.current={top:j,dragging:y,pageY:x,startTop:O};var Q=function(ne){b(!0),E(jH(ne,c)),T(X.current.top),a(),ne.stopPropagation(),ne.preventDefault()};h.useEffect(function(){var oe=function(ce){ce.preventDefault()},ne=I.current,he=N.current;return ne.addEventListener("touchstart",oe,{passive:!1}),he.addEventListener("touchstart",Q,{passive:!1}),function(){ne.removeEventListener("touchstart",oe),he.removeEventListener("touchstart",Q)}},[]);var ue=h.useRef();ue.current=L;var ee=h.useRef();ee.current=W,h.useEffect(function(){if(y){var oe,ne=function(ce){var re=X.current,ve=re.dragging,be=re.pageY,xe=re.startTop;tr.cancel(oe);var we=I.current.getBoundingClientRect(),de=d/(c?we.width:we.height);if(ve){var Ee=(jH(ce,c)-be)*de,Ne=xe;!A&&c?Ne-=Ee:Ne+=Ee;var Te=ue.current,Ve=ee.current,q=Ve?Ne/Ve:0,U=Math.ceil(q*Te);U=Math.max(U,0),U=Math.min(U,Te),oe=tr(function(){l(U,c)})}},he=function(){b(!1),s()};return window.addEventListener("mousemove",ne,{passive:!0}),window.addEventListener("touchmove",ne,{passive:!0}),window.addEventListener("mouseup",he,{passive:!0}),window.addEventListener("touchend",he,{passive:!0}),function(){window.removeEventListener("mousemove",ne),window.removeEventListener("touchmove",ne),window.removeEventListener("mouseup",he),window.removeEventListener("touchend",he),tr.cancel(oe)}}},[y]),h.useEffect(function(){return G(),function(){clearTimeout(B.current)}},[i]),h.useImperativeHandle(t,function(){return{delayHidden:G}});var K="".concat(n,"-scrollbar"),se={position:"absolute",visibility:k?null:"hidden"},le={position:"absolute",borderRadius:99,background:"var(--rc-virtual-list-scrollbar-bg, rgba(0, 0, 0, 0.5))",cursor:"pointer",userSelect:"none"};return c?(Object.assign(se,{height:8,left:0,right:0,bottom:0}),Object.assign(le,te({height:"100%",width:u},A?"left":"right",j))):(Object.assign(se,te({width:8,top:0,bottom:0},A?"right":"left",0)),Object.assign(le,{width:"100%",height:u,top:j})),h.createElement("div",{ref:I,className:Ce(K,te(te(te({},"".concat(K,"-horizontal"),c),"".concat(K,"-vertical"),!c),"".concat(K,"-visible"),k)),style:z(z({},se),f),onMouseDown:H,onMouseMove:G},h.createElement("div",{ref:N,className:Ce("".concat(K,"-thumb"),te({},"".concat(K,"-thumb-moving"),y)),style:z(z({},le),p),onMouseDown:Q}))}),wnt=20;function tie(){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,wnt),Math.floor(n)}var Tnt=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles","showScrollBar"],Ont=[],Rnt={overflowY:"auto",overflowAnchor:"none"};function Ant(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,p=e.virtual,m=e.direction,g=e.scrollWidth,v=e.component,y=v===void 0?"div":v,b=e.onScroll,_=e.onVirtualScroll,S=e.onVisibleChange,x=e.innerProps,E=e.extraRender,C=e.styles,w=e.showScrollBar,O=w===void 0?"optional":w,T=kt(e,Tnt),A=h.useCallback(function(Ft){return typeof f=="function"?f(Ft):Ft==null?void 0:Ft[f]},[f]),I=_nt(A),N=Re(I,4),D=N[0],M=N[1],k=N[2],P=N[3],B=!!(p!==!1&&o&&a),G=h.useMemo(function(){return Object.values(k.maps).reduce(function(Ft,De){return Ft+De},0)},[k.id,k.maps]),L=B&&u&&(Math.max(a*u.length,G)>o||!!g),W=m==="rtl",j=Ce(r,te({},"".concat(r,"-rtl"),W),i),H=u||Ont,X=h.useRef(),Q=h.useRef(),ue=h.useRef(),ee=h.useState(0),K=Re(ee,2),se=K[0],le=K[1],oe=h.useState(0),ne=Re(oe,2),he=ne[0],me=ne[1],ce=h.useState(!1),re=Re(ce,2),ve=re[0],be=re[1],xe=function(){be(!0)},we=function(){be(!1)},de={getKey:A};function Ee(Ft){le(function(De){var Ct;typeof Ft=="function"?Ct=Ft(De):Ct=Ft;var et=It(Ct);return X.current.scrollTop=et,et})}var Ne=h.useRef({start:0,end:H.length}),Te=h.useRef(),Ve=gnt(H,A),q=Re(Ve,1),U=q[0];Te.current=U;var Y=h.useMemo(function(){if(!B)return{scrollHeight:void 0,start:0,end:H.length-1,offset:void 0};if(!L){var Ft;return{scrollHeight:((Ft=Q.current)===null||Ft===void 0?void 0:Ft.offsetHeight)||0,start:0,end:H.length-1,offset:void 0}}for(var De=0,Ct,et,Ot,At=H.length,_n=0;_n<At;_n+=1){var zn=H[_n],R=A(zn),$=k.get(R),J=De+($===void 0?a:$);J>=se&&Ct===void 0&&(Ct=_n,et=De),J>se+o&&Ot===void 0&&(Ot=_n),De=J}return Ct===void 0&&(Ct=0,et=0,Ot=Math.ceil(o/a)),Ot===void 0&&(Ot=H.length-1),Ot=Math.min(Ot+1,H.length-1),{scrollHeight:De,start:Ct,end:Ot,offset:et}},[L,B,se,H,P,o]),ae=Y.scrollHeight,ye=Y.start,fe=Y.end,Ae=Y.offset;Ne.current.start=ye,Ne.current.end=fe,h.useLayoutEffect(function(){var Ft=k.getRecord();if(Ft.size===1){var De=Array.from(Ft.keys())[0],Ct=Ft.get(De),et=H[ye];if(et&&Ct===void 0){var Ot=A(et);if(Ot===De){var At=k.get(De),_n=At-a;Ee(function(zn){return zn+_n})}}}k.resetRecord()},[ae]);var We=h.useState({width:0,height:o}),ie=Re(We,2),Be=ie[0],Fe=ie[1],Pe=function(De){Fe({width:De.offsetWidth,height:De.offsetHeight})},Ke=h.useRef(),tt=h.useRef(),Ge=h.useMemo(function(){return tie(Be.width,g)},[Be.width,g]),Nt=h.useMemo(function(){return tie(Be.height,ae)},[Be.height,ae]),lt=ae-o,st=h.useRef(lt);st.current=lt;function It(Ft){var De=Ft;return Number.isNaN(st.current)||(De=Math.min(De,st.current)),De=Math.max(De,0),De}var ct=se<=0,Pt=se>=lt,Rt=he<=0,Tt=he>=g,Me=bEe(ct,Pt,Rt,Tt),Ue=function(){return{x:W?-he:he,y:se}},$e=h.useRef(Ue()),Le=qn(function(Ft){if(_){var De=z(z({},Ue()),Ft);($e.current.x!==De.x||$e.current.y!==De.y)&&(_(De),$e.current=De)}});function He(Ft,De){var Ct=Ft;De?(Fl.flushSync(function(){me(Ct)}),Le()):Ee(Ct)}function it(Ft){var De=Ft.currentTarget.scrollTop;De!==se&&Ee(De),b==null||b(Ft),Le()}var ft=function(De){var Ct=De,et=g?g-Be.width:0;return Ct=Math.max(Ct,0),Ct=Math.min(Ct,et),Ct},Et=qn(function(Ft,De){De?(Fl.flushSync(function(){me(function(Ct){var et=Ct+(W?-Ft:Ft);return ft(et)})}),Le()):Ee(function(Ct){var et=Ct+Ft;return et})}),Dt=vnt(B,ct,Pt,Rt,Tt,!!g,Et),St=Re(Dt,2),bt=St[0],xt=St[1];Snt(B,X,function(Ft,De,Ct,et){var Ot=et;return Me(Ft,De,Ct)?!1:!Ot||!Ot._virtualHandled?(Ot&&(Ot._virtualHandled=!0),bt({preventDefault:function(){},deltaX:Ft?De:0,deltaY:Ft?0:De}),!0):!1}),Ent(L,X,function(Ft){Ee(function(De){return De+Ft})}),er(function(){function Ft(Ct){var et=ct&&Ct.detail<0,Ot=Pt&&Ct.detail>0;B&&!et&&!Ot&&Ct.preventDefault()}var De=X.current;return De.addEventListener("wheel",bt,{passive:!1}),De.addEventListener("DOMMouseScroll",xt,{passive:!0}),De.addEventListener("MozMousePixelScroll",Ft,{passive:!1}),function(){De.removeEventListener("wheel",bt),De.removeEventListener("DOMMouseScroll",xt),De.removeEventListener("MozMousePixelScroll",Ft)}},[B,ct,Pt]),er(function(){if(g){var Ft=ft(he);me(Ft),Le({x:Ft})}},[Be.width,g]);var ht=function(){var De,Ct;(De=Ke.current)===null||De===void 0||De.delayHidden(),(Ct=tt.current)===null||Ct===void 0||Ct.delayHidden()},Vt=xnt(X,H,k,a,A,function(){return M(!0)},Ee,ht);h.useImperativeHandle(t,function(){return{nativeElement:ue.current,getScrollInfo:Ue,scrollTo:function(De){function Ct(et){return et&&qt(et)==="object"&&("left"in et||"top"in et)}Ct(De)?(De.left!==void 0&&me(ft(De.left)),Vt(De.top)):Vt(De)}}}),er(function(){if(S){var Ft=H.slice(ye,fe+1);S(Ft,H)}},[ye,fe,H]);var at=bnt(H,A,k,a),wt=E==null?void 0:E({start:ye,end:fe,virtual:L,offsetX:he,offsetY:Ae,rtl:W,getSize:at}),Gt=hnt(H,ye,fe,g,he,D,d,de),$t=null;o&&($t=z(te({},l?"height":"maxHeight",o),Rnt),B&&($t.overflowY="hidden",g&&($t.overflowX="hidden"),ve&&($t.pointerEvents="none")));var zt={};return W&&(zt.dir="rtl"),h.createElement("div",Xe({ref:ue,style:z(z({},c),{},{position:"relative"}),className:j},zt,T),h.createElement(Oa,{onResize:Pe},h.createElement(y,{className:"".concat(r,"-holder"),style:$t,ref:X,onScroll:it,onMouseEnter:ht},h.createElement(vEe,{prefixCls:r,height:ae,offsetX:he,offsetY:Ae,scrollWidth:g,onInnerResize:M,ref:Q,innerProps:x,rtl:W,extra:wt},Gt))),L&&ae>o&&h.createElement(eie,{ref:Ke,prefixCls:r,scrollOffset:se,scrollRange:ae,rtl:W,onScroll:He,onStartMove:xe,onStopMove:we,spinSize:Nt,containerSize:Be.height,style:C==null?void 0:C.verticalScrollBar,thumbStyle:C==null?void 0:C.verticalScrollBarThumb,showScrollBar:O}),L&&g>Be.width&&h.createElement(eie,{ref:tt,prefixCls:r,scrollOffset:he,scrollRange:g,rtl:W,onScroll:He,onStartMove:xe,onStopMove:we,spinSize:Ge,containerSize:Be.width,horizontal:!0,style:C==null?void 0:C.horizontalScrollBar,thumbStyle:C==null?void 0:C.horizontalScrollBarThumb,showScrollBar:O}))}var $P=h.forwardRef(Ant);$P.displayName="List";function Int(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var Nnt=["disabled","title","children","style","className"];function nie(e){return typeof e=="string"||typeof e=="number"}var Mnt=function(t,n){var r=Yq(),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,p=h.useContext(Kq),m=p.maxCount,g=p.flattenOptions,v=p.onActiveValue,y=p.defaultActiveFirstOption,b=p.onSelect,_=p.menuItemSelectedIcon,S=p.rawValues,x=p.fieldNames,E=p.virtual,C=p.direction,w=p.listHeight,O=p.listItemHeight,T=p.optionRender,A="".concat(i,"-item"),I=Df(function(){return g},[a,g],function(oe,ne){return ne[0]&&oe[1]!==ne[1]}),N=h.useRef(null),D=h.useMemo(function(){return s&&FH(m)&&(S==null?void 0:S.size)>=m},[s,m,S==null?void 0:S.size]),M=function(ne){ne.preventDefault()},k=function(ne){var he;(he=N.current)===null||he===void 0||he.scrollTo(typeof ne=="number"?{index:ne}:ne)},P=h.useCallback(function(oe){return l==="combobox"?!1:S.has(oe)},[l,rt(S).toString(),S.size]),B=function(ne){for(var he=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,me=I.length,ce=0;ce<me;ce+=1){var re=(ne+ce*he+me)%me,ve=I[re]||{},be=ve.group,xe=ve.data;if(!be&&!(xe!=null&&xe.disabled)&&(P(xe.value)||!D))return re}return-1},G=h.useState(function(){return B(0)}),L=Re(G,2),W=L[0],j=L[1],H=function(ne){var he=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;j(ne);var me={source:he?"keyboard":"mouse"},ce=I[ne];if(!ce){v(null,-1,me);return}v(ce.value,ne,me)};h.useEffect(function(){H(y!==!1?B(0):-1)},[I.length,c]);var X=h.useCallback(function(oe){return l==="combobox"?String(oe).toLowerCase()===c.toLowerCase():S.has(oe)},[l,c,rt(S).toString(),S.size]);h.useEffect(function(){var oe=setTimeout(function(){if(!s&&a&&S.size===1){var he=Array.from(S)[0],me=I.findIndex(function(ce){var re=ce.data;return c?String(re.value).startsWith(c):re.value===he});me!==-1&&(H(me),k(me))}});if(a){var ne;(ne=N.current)===null||ne===void 0||ne.scrollTo(void 0)}return function(){return clearTimeout(oe)}},[a,c]);var Q=function(ne){ne!==void 0&&b(ne,{selected:!S.has(ne)}),s||u(!1)};if(h.useImperativeHandle(n,function(){return{onKeyDown:function(ne){var he=ne.which,me=ne.ctrlKey;switch(he){case Ut.N:case Ut.P:case Ut.UP:case Ut.DOWN:{var ce=0;if(he===Ut.UP?ce=-1:he===Ut.DOWN?ce=1:Int()&&me&&(he===Ut.N?ce=1:he===Ut.P&&(ce=-1)),ce!==0){var re=B(W+ce,ce);k(re),H(re,!0)}break}case Ut.TAB:case Ut.ENTER:{var ve,be=I[W];be&&!(be!=null&&(ve=be.data)!==null&&ve!==void 0&&ve.disabled)&&!D?Q(be.value):Q(void 0),a&&ne.preventDefault();break}case Ut.ESC:u(!1),a&&ne.stopPropagation()}},onKeyUp:function(){},scrollTo:function(ne){k(ne)}}}),I.length===0)return h.createElement("div",{role:"listbox",id:"".concat(o,"_list"),className:"".concat(A,"-empty"),onMouseDown:M},d);var ue=Object.keys(x).map(function(oe){return x[oe]}),ee=function(ne){return ne.label};function K(oe,ne){var he=oe.group;return{role:he?"presentation":"option",id:"".concat(o,"_list_").concat(ne)}}var se=function(ne){var he=I[ne];if(!he)return null;var me=he.data||{},ce=me.value,re=he.group,ve=Oi(me,!0),be=ee(he);return he?h.createElement("div",Xe({"aria-label":typeof be=="string"&&!re?be:null},ve,{key:ne},K(he,ne),{"aria-selected":X(ce)}),ce):null},le={role:"listbox",id:"".concat(o,"_list")};return h.createElement(h.Fragment,null,E&&h.createElement("div",Xe({},le,{style:{height:0,width:0,overflow:"hidden"}}),se(W-1),se(W),se(W+1)),h.createElement($P,{itemKey:"key",ref:N,data:I,height:w,itemHeight:O,fullHeight:!1,onMouseDown:M,onScroll:f,virtual:E,direction:C,innerProps:E?null:le},function(oe,ne){var he=oe.group,me=oe.groupOption,ce=oe.data,re=oe.label,ve=oe.value,be=ce.key;if(he){var xe,we=(xe=ce.title)!==null&&xe!==void 0?xe:nie(re)?re.toString():void 0;return h.createElement("div",{className:Ce(A,"".concat(A,"-group"),ce.className),title:we},re!==void 0?re:be)}var de=ce.disabled,Ee=ce.title;ce.children;var Ne=ce.style,Te=ce.className,Ve=kt(ce,Nnt),q=ur(Ve,ue),U=P(ve),Y=de||!U&&D,ae="".concat(A,"-option"),ye=Ce(A,ae,Te,te(te(te(te({},"".concat(ae,"-grouped"),me),"".concat(ae,"-active"),W===ne&&!Y),"".concat(ae,"-disabled"),Y),"".concat(ae,"-selected"),U)),fe=ee(oe),Ae=!_||typeof _=="function"||U,We=typeof fe=="number"?fe:fe||ve,ie=nie(We)?We.toString():void 0;return Ee!==void 0&&(ie=Ee),h.createElement("div",Xe({},Oi(q),E?{}:K(oe,ne),{"aria-selected":X(ve),className:ye,title:ie,onMouseMove:function(){W===ne||Y||H(ne)},onClick:function(){Y||Q(ve)},style:Ne}),h.createElement("div",{className:"".concat(ae,"-content")},typeof T=="function"?T(oe,{index:ne}):We),h.isValidElement(_)||U,Ae&&h.createElement(LP,{className:"".concat(A,"-option-state"),customizeIcon:_,customizeIconProps:{value:ve,disabled:Y,isSelected:U}},U?"✓":null))}))},knt=h.forwardRef(Mnt);const Pnt=function(e,t){var n=h.useRef({values:new Map,options:new Map}),r=h.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 z(z({},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=h.useCallback(function(o){return t.get(o)||n.current.options.get(o)},[t]);return[r,i]};function aL(e,t){return hEe(e).join("").toUpperCase().includes(t)}const Dnt=function(e,t,n,r,i){return h.useMemo(function(){if(!n||r===!1)return e;var o=t.options,a=t.label,s=t.value,l=[],c=typeof r=="function",u=n.toUpperCase(),d=c?r:function(p,m){return i?aL(m[i],u):m[o]?aL(m[a!=="children"?a:"label"],u):aL(m[s],u)},f=c?function(p){return BH(p)}:function(p){return p};return e.forEach(function(p){if(p[o]){var m=d(n,f(p));if(m)l.push(p);else{var g=p[o].filter(function(v){return d(n,f(v))});g.length&&l.push(z(z({},p),{},te({},o,g)))}return}d(n,f(p))&&l.push(p)}),l},[e,r,i,n,t])};var rie=0,Lnt=Aa();function $nt(){var e;return Lnt?(e=rie,rie+=1):e="TEST_OR_SSR",e}function Jq(e){var t=h.useState(),n=Re(t,2),r=n[0],i=n[1];return h.useEffect(function(){i("rc_select_".concat($nt()))},[]),e||r}var Fnt=["children","value"],Bnt=["children"];function Hnt(e){var t=e,n=t.key,r=t.props,i=r.children,o=r.value,a=kt(r,Fnt);return z({key:n,value:o!==void 0?o:n,children:i},a)}function yEe(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return Do(e).map(function(n,r){if(!h.isValidElement(n)||!n.type)return null;var i=n,o=i.type.isSelectOptGroup,a=i.key,s=i.props,l=s.children,c=kt(s,Bnt);return t||!o?Hnt(n):z(z({key:"__RC_SELECT_GRP__".concat(a===null?r:a,"__"),label:a},c),{},{options:yEe(l)})}).filter(function(n){return n})}var jnt=function(t,n,r,i,o){return h.useMemo(function(){var a=t,s=!t;s&&(a=yEe(n));var l=new Map,c=new Map,u=function(p,m,g){g&&typeof g=="string"&&p.set(m[g],m)},d=function f(p){for(var m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,g=0;g<p.length;g+=1){var v=p[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 iie(e){var t=h.useRef();t.current=e;var n=h.useCallback(function(){return t.current.apply(t,arguments)},[]);return n}var Unt=["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"],znt=["inputValue"];function Vnt(e){return!e||qt(e)!=="object"}var Gnt=h.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,p=e.onSelect,m=e.onDeselect,g=e.dropdownMatchSelectWidth,v=g===void 0?!0:g,y=e.filterOption,b=e.filterSort,_=e.optionFilterProp,S=e.optionLabelProp,x=e.options,E=e.optionRender,C=e.children,w=e.defaultActiveFirstOption,O=e.menuItemSelectedIcon,T=e.virtual,A=e.direction,I=e.listHeight,N=I===void 0?200:I,D=e.listItemHeight,M=D===void 0?20:D,k=e.labelRender,P=e.value,B=e.defaultValue,G=e.labelInValue,L=e.onChange,W=e.maxCount,j=kt(e,Unt),H=Jq(n),X=HH(r),Q=!!(!x&&C),ue=h.useMemo(function(){return y===void 0&&r==="combobox"?!1:y},[y,r]),ee=h.useMemo(function(){return gEe(s,Q)},[JSON.stringify(s),Q]),K=Pn("",{value:c!==void 0?c:l,postState:function(He){return He||""}}),se=Re(K,2),le=se[0],oe=se[1],ne=jnt(x,C,ee,_,S),he=ne.valueOptions,me=ne.labelOptions,ce=ne.options,re=h.useCallback(function(Le){var He=hEe(Le);return He.map(function(it){var ft,Et,Dt,St,bt;if(Vnt(it))ft=it;else{var xt;Dt=it.key,Et=it.label,ft=(xt=it.value)!==null&&xt!==void 0?xt:Dt}var ht=he.get(ft);if(ht){var Vt;Et===void 0&&(Et=ht==null?void 0:ht[S||ee.label]),Dt===void 0&&(Dt=(Vt=ht==null?void 0:ht.key)!==null&&Vt!==void 0?Vt:ft),St=ht==null?void 0:ht.disabled,bt=ht==null?void 0:ht.title}return{label:Et,value:ft,key:Dt,disabled:St,title:bt}})},[ee,S,he]),ve=Pn(B,{value:P}),be=Re(ve,2),xe=be[0],we=be[1],de=h.useMemo(function(){var Le,He=X&&xe===null?[]:xe,it=re(He);return r==="combobox"&&Ftt((Le=it[0])===null||Le===void 0?void 0:Le.value)?[]:it},[xe,re,r,X]),Ee=Pnt(de,he),Ne=Re(Ee,2),Te=Ne[0],Ve=Ne[1],q=h.useMemo(function(){if(!r&&Te.length===1){var Le=Te[0];if(Le.value===null&&(Le.label===null||Le.label===void 0))return[]}return Te.map(function(He){var it;return z(z({},He),{},{label:(it=typeof k=="function"?k(He):He.label)!==null&&it!==void 0?it:He.value})})},[r,Te,k]),U=h.useMemo(function(){return new Set(Te.map(function(Le){return Le.value}))},[Te]);h.useEffect(function(){if(r==="combobox"){var Le,He=(Le=Te[0])===null||Le===void 0?void 0:Le.value;oe($tt(He)?String(He):"")}},[Te]);var Y=iie(function(Le,He){var it=He??Le;return te(te({},ee.value,Le),ee.label,it)}),ae=h.useMemo(function(){if(r!=="tags")return ce;var Le=rt(ce),He=function(ft){return he.has(ft)};return rt(Te).sort(function(it,ft){return it.value<ft.value?-1:1}).forEach(function(it){var ft=it.value;He(ft)||Le.push(Y(ft,it.label))}),Le},[Y,ce,he,Te,r]),ye=Dnt(ae,ee,le,ue,_),fe=h.useMemo(function(){return r!=="tags"||!le||ye.some(function(Le){return Le[_||"value"]===le})||ye.some(function(Le){return Le[ee.value]===le})?ye:[Y(le)].concat(rt(ye))},[Y,_,r,ye,le,ee]),Ae=function Le(He){var it=rt(He).sort(function(ft,Et){return b(ft,Et,{searchValue:le})});return it.map(function(ft){return Array.isArray(ft.options)?z(z({},ft),{},{options:ft.options.length>0?Le(ft.options):ft.options}):ft})},We=h.useMemo(function(){return b?Ae(fe):fe},[fe,b,le]),ie=h.useMemo(function(){return lnt(We,{fieldNames:ee,childrenAsData:Q})},[We,ee,Q]),Be=function(He){var it=re(He);if(we(it),L&&(it.length!==Te.length||it.some(function(Dt,St){var bt;return((bt=Te[St])===null||bt===void 0?void 0:bt.value)!==(Dt==null?void 0:Dt.value)}))){var ft=G?it:it.map(function(Dt){return Dt.value}),Et=it.map(function(Dt){return BH(Ve(Dt.value))});L(X?ft:ft[0],X?Et:Et[0])}},Fe=h.useState(null),Pe=Re(Fe,2),Ke=Pe[0],tt=Pe[1],Ge=h.useState(0),Nt=Re(Ge,2),lt=Nt[0],st=Nt[1],It=w!==void 0?w:r!=="combobox",ct=h.useCallback(function(Le,He){var it=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},ft=it.source,Et=ft===void 0?"keyboard":ft;st(He),a&&r==="combobox"&&Le!==null&&Et==="keyboard"&&tt(String(Le))},[a,r]),Pt=function(He,it,ft){var Et=function(){var $t,zt=Ve(He);return[G?{label:zt==null?void 0:zt[ee.label],value:He,key:($t=zt==null?void 0:zt.key)!==null&&$t!==void 0?$t:He}:He,BH(zt)]};if(it&&p){var Dt=Et(),St=Re(Dt,2),bt=St[0],xt=St[1];p(bt,xt)}else if(!it&&m&&ft!=="clear"){var ht=Et(),Vt=Re(ht,2),at=Vt[0],wt=Vt[1];m(at,wt)}},Rt=iie(function(Le,He){var it,ft=X?He.selected:!0;ft?it=X?[].concat(rt(Te),[Le]):[Le]:it=Te.filter(function(Et){return Et.value!==Le}),Be(it),Pt(Le,ft),r==="combobox"?tt(""):(!HH||f)&&(oe(""),tt(""))}),Tt=function(He,it){Be(He);var ft=it.type,Et=it.values;(ft==="remove"||ft==="clear")&&Et.forEach(function(Dt){Pt(Dt.value,!1,ft)})},Me=function(He,it){if(oe(He),tt(null),it.source==="submit"){var ft=(He||"").trim();if(ft){var Et=Array.from(new Set([].concat(rt(U),[ft])));Be(Et),Pt(ft,!0),oe("")}return}it.source!=="blur"&&(r==="combobox"&&Be(He),u==null||u(He))},Ue=function(He){var it=He;r!=="tags"&&(it=He.map(function(Et){var Dt=me.get(Et);return Dt==null?void 0:Dt.value}).filter(function(Et){return Et!==void 0}));var ft=Array.from(new Set([].concat(rt(U),rt(it))));Be(ft),ft.forEach(function(Et){Pt(Et,!0)})},$e=h.useMemo(function(){var Le=T!==!1&&v!==!1;return z(z({},ne),{},{flattenOptions:ie,onActiveValue:ct,defaultActiveFirstOption:It,onSelect:Rt,menuItemSelectedIcon:O,rawValues:U,fieldNames:ee,virtual:Le,direction:A,listHeight:N,listItemHeight:M,childrenAsData:Q,maxCount:W,optionRender:E})},[W,ne,ie,ct,It,Rt,O,U,ee,T,v,A,N,M,Q,E]);return h.createElement(Kq.Provider,{value:$e},h.createElement(Qq,Xe({},j,{id:H,prefixCls:o,ref:t,omitDomProps:znt,mode:r,displayValues:q,onDisplayValuesChange:Tt,direction:A,searchValue:le,onSearch:Me,autoClearSearchValue:f,onSearchSplit:Ue,dropdownMatchSelectWidth:v,OptionList:knt,emptyOptions:!ie.length,activeValue:Ke,activeDescendantId:"".concat(H,"_list_").concat(lt)})))}),eY=Gnt;eY.Option=Zq;eY.OptGroup=Xq;function Id(e,t,n){return Ce({[`${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 yh=(e,t)=>t||e,Wnt=()=>{const[,e]=Ko(),[t]=Ma("Empty"),r=new or(e.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return h.createElement("svg",{style:r,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},h.createElement("title",null,(t==null?void 0:t.description)||"Empty"),h.createElement("g",{fill:"none",fillRule:"evenodd"},h.createElement("g",{transform:"translate(24 31.67)"},h.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),h.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"}),h.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)"}),h.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"}),h.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"})),h.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"}),h.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},h.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),h.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},qnt=()=>{const[,e]=Ko(),[t]=Ma("Empty"),{colorFill:n,colorFillTertiary:r,colorFillQuaternary:i,colorBgContainer:o}=e,{borderColor:a,shadowColor:s,contentColor:l}=h.useMemo(()=>({borderColor:new or(n).onBackground(o).toHexString(),shadowColor:new or(r).onBackground(o).toHexString(),contentColor:new or(i).onBackground(o).toHexString()}),[n,r,i,o]);return h.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},h.createElement("title",null,(t==null?void 0:t.description)||"Empty"),h.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},h.createElement("ellipse",{fill:s,cx:"32",cy:"33",rx:"32",ry:"7"}),h.createElement("g",{fillRule:"nonzero",stroke:a},h.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"}),h.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}}}}},Knt=ir("Empty",e=>{const{componentCls:t,controlHeightLG:n,calc:r}=e,i=Un(e,{emptyImgCls:`${t}-img`,emptyImgHeight:r(n).mul(2.5).equal(),emptyImgHeightMD:n,emptyImgHeightSM:r(n).mul(.875).equal()});return[Ynt(i)]});var Qnt=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const _Ee=h.createElement(Wnt,null),SEe=h.createElement(qnt,null),$p=e=>{const{className:t,rootClassName:n,prefixCls:r,image:i=_Ee,description:o,children:a,imageStyle:s,style:l,classNames:c,styles:u}=e,d=Qnt(e,["className","rootClassName","prefixCls","image","description","children","imageStyle","style","classNames","styles"]),{getPrefixCls:f,direction:p,className:m,style:g,classNames:v,styles:y}=Vi("empty"),b=f("empty",r),[_,S,x]=Knt(b),[E]=Ma("Empty"),C=typeof o<"u"?o:E==null?void 0:E.description,w=typeof C=="string"?C:"empty";let O=null;return typeof i=="string"?O=h.createElement("img",{alt:w,src:i}):O=i,_(h.createElement("div",Object.assign({className:Ce(S,x,b,m,{[`${b}-normal`]:i===SEe,[`${b}-rtl`]:p==="rtl"},t,n,v.root,c==null?void 0:c.root),style:Object.assign(Object.assign(Object.assign(Object.assign({},y.root),g),u==null?void 0:u.root),l)},d),h.createElement("div",{className:Ce(`${b}-image`,v.image,c==null?void 0:c.image),style:Object.assign(Object.assign(Object.assign({},s),y.image),u==null?void 0:u.image)},O),C&&h.createElement("div",{className:Ce(`${b}-description`,v.description,c==null?void 0:c.description),style:Object.assign(Object.assign({},y.description),u==null?void 0:u.description)},C),a&&h.createElement("div",{className:Ce(`${b}-footer`,v.footer,c==null?void 0:c.footer),style:Object.assign(Object.assign({},y.footer),u==null?void 0:u.footer)},a)))};$p.PRESENTED_IMAGE_DEFAULT=_Ee;$p.PRESENTED_IMAGE_SIMPLE=SEe;const gS=e=>{const{componentName:t}=e,{getPrefixCls:n}=h.useContext(cn),r=n("empty");switch(t){case"Table":case"List":return pe.createElement($p,{image:$p.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return pe.createElement($p,{image:$p.PRESENTED_IMAGE_SIMPLE,className:`${r}-small`});case"Table.filter":return null;default:return pe.createElement($p,null)}},Kf=(e,t,n=void 0)=>{var r,i;const{variant:o,[e]:a}=h.useContext(cn),s=h.useContext(FSe),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=hYe.includes(c);return[c,u]},Xnt=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 tY(e,t){return e||Xnt(t)}const oie=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"}},Znt=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({},mr(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:EP},[`
${i}${s}topLeft,
${o}${s}topLeft,
${i}${s}topRight,
${o}${s}topRight
`]:{animationName:xP},[`${a}${s}bottomLeft`]:{animationName:CP},[`
${a}${s}topLeft,
${a}${s}topRight
`]:{animationName:wP},"&-hidden":{display:"none"},[r]:Object.assign(Object.assign({},oie(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"},Hl),"&-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({},oie(e)),{color:e.colorTextDisabled})}),[`${l}:has(+ ${l})`]:{borderEndStartRadius:0,borderEndEndRadius:0,[`& + ${l}`]:{borderStartStartRadius:0,borderStartEndRadius:0}},"&-rtl":{direction:"rtl"}})},Lf(e,"slide-up"),Lf(e,"slide-down"),p_(e,"move-up"),p_(e,"move-down")]},EEe=e=>{const{multipleSelectItemHeight:t,paddingXXS:n,lineWidth:r,INTERNAL_FIXED_ITEM_MARGIN:i}=e,o=e.max(e.calc(n).sub(r).equal(),0),a=e.max(e.calc(o).sub(i).equal(),0);return{basePadding:o,containerPadding:a,itemHeight:Ie(t),itemLineHeight:Ie(e.calc(t).sub(e.calc(e.lineWidth).mul(2)).equal())}},Jnt=e=>{const{multipleSelectItemHeight:t,selectHeight:n,lineWidth:r}=e;return e.calc(n).sub(t).div(2).sub(r).equal()},CEe=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:"calc(100% - 4px)",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({},gv()),{display:"inline-flex",alignItems:"center",color:l,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${n}`]:{verticalAlign:"-0.2em"},"&:hover":{color:c}})}}}},ert=(e,t)=>{const{componentCls:n,INTERNAL_FIXED_ITEM_MARGIN:r}=e,i=`${n}-selection-overflow`,o=e.multipleSelectItemHeight,a=Jnt(e),s=t?`${n}-${t}`:"",l=EEe(e);return{[`${n}-multiple${s}`]:Object.assign(Object.assign({},CEe(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:`${Ie(r)} 0`,lineHeight:Ie(o),visibility:"hidden",content:'"\\a0"'}},[`${n}-selection-item`]:{height:l.itemHeight,lineHeight:Ie(l.itemLineHeight)},[`${n}-selection-wrap`]:{alignSelf:"flex-start","&:after":{lineHeight:Ie(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:Ie(o),transition:`all ${e.motionDurationSlow}`},"&-input":{width:"100%",minWidth:4.1},"&-mirror":{position:"absolute",top:0,insetInlineStart:0,insetInlineEnd:"auto",zIndex:999,whiteSpace:"pre",visibility:"hidden"}},[`${n}-selection-placeholder`]:{position:"absolute",top:"50%",insetInlineStart:e.calc(e.inputPaddingHorizontalBase).sub(l.basePadding).equal(),insetInlineEnd:e.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${e.motionDurationSlow}`}})}};function sL(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[ert(e,t),i]}const trt=e=>{const{componentCls:t}=e,n=Un(e,{selectHeight:e.controlHeightSM,multipleSelectItemHeight:e.multipleItemHeightSM,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS}),r=Un(e,{fontSize:e.fontSizeLG,selectHeight:e.controlHeightLG,multipleSelectItemHeight:e.multipleItemHeightLG,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius});return[sL(e),sL(n,"sm"),{[`${t}-multiple${t}-sm`]:{[`${t}-selection-placeholder`]:{insetInline:e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal()},[`${t}-selection-search`]:{marginInlineStart:2}}},sL(r,"lg")]};function lL(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({},mr(e,!0)),{display:"flex",borderRadius:i,flex:"1 1 auto",[`${n}-selection-wrap:after`]:{lineHeight:Ie(o)},[`${n}-selection-search`]:{position:"absolute",inset:0,width:"100%","&-input":{width:"100%",WebkitAppearance:"textfield"}},[`
${n}-selection-item,
${n}-selection-placeholder
`]:{display:"block",padding:0,lineHeight:Ie(o),transition:`all ${e.motionDurationSlow}, visibility 0s`,alignSelf:"center"},[`${n}-selection-placeholder`]:{transition:"none",pointerEvents:"none"},[["&:after",`${n}-selection-item:empty:after`,`${n}-selection-placeholder:empty:after`].join(",")]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}}),[`
&${n}-show-arrow ${n}-selection-item,
&${n}-show-arrow ${n}-selection-search,
&${n}-show-arrow ${n}-selection-placeholder
`]:{paddingInlineEnd:e.showArrowPaddingInlineEnd},[`&${n}-open ${n}-selection-item`]:{color:e.colorTextPlaceholder},[`&:not(${n}-customize-input)`]:{[`${n}-selector`]:{width:"100%",height:"100%",alignItems:"center",padding:`0 ${Ie(r)}`,[`${n}-selection-search-input`]:{height:o,fontSize:e.fontSize},"&:after":{lineHeight:Ie(o)}}},[`&${n}-customize-input`]:{[`${n}-selector`]:{"&:after":{display:"none"},[`${n}-selection-search`]:{position:"static",width:"100%"},[`${n}-selection-placeholder`]:{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:`0 ${Ie(r)}`,"&:after":{display:"none"}}}}}}}function nrt(e){const{componentCls:t}=e,n=e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal();return[lL(e),lL(Un(e,{controlHeight:e.controlHeightSM,borderRadius:e.borderRadiusSM}),"sm"),{[`${t}-single${t}-sm`]:{[`&:not(${t}-customize-input)`]:{[`${t}-selector`]:{padding:`0 ${Ie(n)}`},[`&${t}-show-arrow ${t}-selection-search`]:{insetInlineEnd:e.calc(n).add(e.calc(e.fontSize).mul(1.5)).equal()},[`
&${t}-show-arrow ${t}-selection-item,
&${t}-show-arrow ${t}-selection-placeholder
`]:{paddingInlineEnd:e.calc(e.fontSize).mul(1.5).equal()}}}},lL(Un(e,{controlHeight:e.singleItemHeightLG,fontSize:e.fontSizeLG,borderRadius:e.borderRadiusLG}),"lg")]}const rrt=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:p,colorBgContainer:m,colorFillSecondary:g,colorBgContainerDisabled:v,colorTextDisabled:y,colorPrimaryHover:b,colorPrimary:_,controlOutline:S}=e,x=s*2,E=r*2,C=Math.min(i-x,i-E),w=Math.min(o-x,o-E),O=Math.min(a-x,a-E);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(s/2),zIndexPopup:c+50,optionSelectedColor:u,optionSelectedFontWeight:d,optionSelectedBg:f,optionActiveBg:p,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:w,multipleItemHeightLG:O,multipleSelectorBgDisabled:v,multipleItemColorDisabled:y,multipleItemBorderColorDisabled:"transparent",showArrowPaddingInlineEnd:Math.ceil(e.fontSize*1.25),hoverBorderColor:b,activeBorderColor:_,activeOutlineColor:S,selectAffixPadding:s}},xEe=(e,t)=>{const{componentCls:n,antCls:r,controlOutlineWidth:i}=e;return{[`&:not(${n}-customize-input) ${n}-selector`]:{border:`${Ie(e.lineWidth)} ${e.lineType} ${t.borderColor}`,background:e.selectorBg},[`&:not(${n}-disabled):not(${n}-customize-input):not(${r}-pagination-size-changer)`]:{[`&:hover ${n}-selector`]:{borderColor:t.hoverBorderHover},[`${n}-focused& ${n}-selector`]:{borderColor:t.activeBorderColor,boxShadow:`0 0 0 ${Ie(i)} ${t.activeOutlineColor}`,outline:0},[`${n}-prefix`]:{color:t.color}}}},aie=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},xEe(e,t))}),irt=e=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign({},xEe(e,{borderColor:e.colorBorder,hoverBorderHover:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeOutlineColor:e.activeOutlineColor,color:e.colorText})),aie(e,{status:"error",borderColor:e.colorError,hoverBorderHover:e.colorErrorHover,activeBorderColor:e.colorError,activeOutlineColor:e.colorErrorOutline,color:e.colorError})),aie(e,{status:"warning",borderColor:e.colorWarning,hoverBorderHover:e.colorWarningHover,activeBorderColor:e.colorWarning,activeOutlineColor:e.colorWarningOutline,color:e.colorWarning})),{[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{background:e.colorBgContainerDisabled,color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.multipleItemBg,border:`${Ie(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}})}),wEe=(e,t)=>{const{componentCls:n,antCls:r}=e;return{[`&:not(${n}-customize-input) ${n}-selector`]:{background:t.bg,border:`${Ie(e.lineWidth)} ${e.lineType} transparent`,color:t.color},[`&:not(${n}-disabled):not(${n}-customize-input):not(${r}-pagination-size-changer)`]:{[`&:hover ${n}-selector`]:{background:t.hoverBg},[`${n}-focused& ${n}-selector`]:{background:e.selectorBg,borderColor:t.activeBorderColor,outline:0}}}},sie=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},wEe(e,t))}),ort=e=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign({},wEe(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor,color:e.colorText})),sie(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,color:e.colorError})),sie(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,color:e.colorWarning})),{[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{borderColor:e.colorBorder,background:e.colorBgContainerDisabled,color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.colorBgContainer,border:`${Ie(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}})}),art=e=>({"&-borderless":{[`${e.componentCls}-selector`]:{background:"transparent",border:`${Ie(e.lineWidth)} ${e.lineType} transparent`},[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.multipleItemBg,border:`${Ie(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`},[`&${e.componentCls}-status-error`]:{[`${e.componentCls}-prefix, ${e.componentCls}-selection-item`]:{color:e.colorError}},[`&${e.componentCls}-status-warning`]:{[`${e.componentCls}-prefix, ${e.componentCls}-selection-item`]:{color:e.colorWarning}}}}),TEe=(e,t)=>{const{componentCls:n,antCls:r}=e;return{[`&:not(${n}-customize-input) ${n}-selector`]:{borderWidth:`0 0 ${Ie(e.lineWidth)} 0`,borderStyle:`none none ${e.lineType} none`,borderColor:t.borderColor,background:e.selectorBg,borderRadius:0},[`&: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,outline:0},[`${n}-prefix`]:{color:t.color}}}},lie=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},TEe(e,t))}),srt=e=>({"&-underlined":Object.assign(Object.assign(Object.assign(Object.assign({},TEe(e,{borderColor:e.colorBorder,hoverBorderHover:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeOutlineColor:e.activeOutlineColor,color:e.colorText})),lie(e,{status:"error",borderColor:e.colorError,hoverBorderHover:e.colorErrorHover,activeBorderColor:e.colorError,activeOutlineColor:e.colorErrorOutline,color:e.colorError})),lie(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`]:{color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.multipleItemBg,border:`${Ie(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}})}),lrt=e=>({[e.componentCls]:Object.assign(Object.assign(Object.assign(Object.assign({},irt(e)),ort(e)),art(e)),srt(e))}),crt=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"}}}},urt=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",appearance:"none"}}}},drt=e=>{const{antCls:t,componentCls:n,inputPaddingHorizontalBase:r,iconCls:i}=e,o={[`${n}-clear`]:{opacity:1,background:e.colorBgBase,borderRadius:"50%"}};return{[n]:Object.assign(Object.assign({},mr(e)),{position:"relative",display:"inline-flex",cursor:"pointer",[`&:not(${n}-customize-input) ${n}-selector`]:Object.assign(Object.assign({},crt(e)),urt(e)),[`${n}-selection-item`]:Object.assign(Object.assign({flex:1,fontWeight:"normal",position:"relative",userSelect:"none"},Hl),{[`> ${t}-typography`]:{display:"inline"}}),[`${n}-selection-placeholder`]:Object.assign(Object.assign({},Hl),{flex:1,color:e.colorTextPlaceholder,pointerEvents:"none"}),[`${n}-arrow`]:Object.assign(Object.assign({},gv()),{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.colorIcon}},"@media(hover:none)":o,"&:hover":o}),[`${n}-status`]:{"&-error, &-warning, &-success, &-validating":{[`&${n}-has-feedback`]:{[`${n}-clear`]:{insetInlineEnd:e.calc(r).add(e.fontSize).add(e.paddingXS).equal()}}}}}},frt=e=>{const{componentCls:t}=e;return[{[t]:{[`&${t}-in-form-item`]:{width:"100%"}}},drt(e),nrt(e),trt(e),Znt(e),{[`${t}-rtl`]:{direction:"rtl"}},bv(e,{borderElCls:`${t}-selector`,focusElCls:`${t}-focused`})]},nY=ir("Select",(e,{rootPrefixCls:t})=>{const n=Un(e,{rootPrefixCls:t,inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(1).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[frt(n),lrt(n)]},rrt,{unitless:{optionLineHeight:!0,optionSelectedFontWeight:!0}});var prt={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"},hrt=function(t,n){return h.createElement(Mn,Xe({},t,{ref:n,icon:prt}))},Qp=h.forwardRef(hrt),mrt={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"},grt=function(t,n){return h.createElement(Mn,Xe({},t,{ref:n,icon:mrt}))},d2=h.forwardRef(grt),vrt={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"},brt=function(t,n){return h.createElement(Mn,Xe({},t,{ref:n,icon:vrt}))},FP=h.forwardRef(brt);function BP({suffixIcon:e,clearIcon:t,menuItemSelectedIcon:n,removeIcon:r,loading:i,multiple:o,hasFeedback:a,prefixCls:s,showSuffixIcon:l,feedbackIcon:c,showArrow:u,componentName:d}){const f=t??h.createElement(qf,null),p=y=>e===null&&!a&&!u?null:h.createElement(h.Fragment,null,l!==!1&&y,a&&c);let m=null;if(e!==void 0)m=p(e);else if(i)m=p(h.createElement(Td,{spin:!0}));else{const y=`${s}-suffix`;m=({open:b,showSearch:_})=>p(b&&_?h.createElement(FP,{className:y}):h.createElement(d2,{className:y}))}let g=null;n!==void 0?g=n:o?g=h.createElement(Qp,null):g=null;let v=null;return r!==void 0?v=r:v=h.createElement(Yf,null),{clearIcon:f,suffixIcon:m,itemIcon:g,removeIcon:v}}function rY(e,t){return t!==void 0?t:e!==null}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 OEe="SECRET_COMBOBOX_MODE_DO_NOT_USE",_rt=(e,t)=>{var n,r,i,o,a;const{prefixCls:s,bordered:l,className:c,rootClassName:u,getPopupContainer:d,popupClassName:f,dropdownClassName:p,listHeight:m=256,placement:g,listItemHeight:v,size:y,disabled:b,notFoundContent:_,status:S,builtinPlacements:x,dropdownMatchSelectWidth:E,popupMatchSelectWidth:C,direction:w,style:O,allowClear:T,variant:A,dropdownStyle:I,transitionName:N,tagRender:D,maxCount:M,prefix:k,dropdownRender:P,popupRender:B,onDropdownVisibleChange:G,onOpenChange:L,styles:W,classNames:j}=e,H=yrt(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","dropdownRender","popupRender","onDropdownVisibleChange","onOpenChange","styles","classNames"]),{getPopupContainer:X,getPrefixCls:Q,renderEmpty:ue,direction:ee,virtual:K,popupMatchSelectWidth:se,popupOverflow:le}=h.useContext(cn),{showSearch:oe,style:ne,styles:he,className:me,classNames:ce}=Vi("select"),[,re]=Ko(),ve=v??(re==null?void 0:re.controlHeight),be=Q("select",s),xe=Q(),we=w??ee,{compactSize:de,compactItemClassnames:Ee}=Ru(be,we),[Ne,Te]=Kf("select",A,l),Ve=gi(be),[q,U,Y]=nY(be,Ve),ae=h.useMemo(()=>{const{mode:ft}=e;if(ft!=="combobox")return ft===OEe?"combobox":ft},[e.mode]),ye=ae==="multiple"||ae==="tags",fe=rY(e.suffixIcon,e.showArrow),Ae=(n=C??E)!==null&&n!==void 0?n:se,We=((r=W==null?void 0:W.popup)===null||r===void 0?void 0:r.root)||((i=he.popup)===null||i===void 0?void 0:i.root)||I,ie=B||P,Be=L||G,{status:Fe,hasFeedback:Pe,isFormItemInput:Ke,feedbackIcon:tt}=h.useContext(oa),Ge=yh(Fe,S);let Nt;_!==void 0?Nt=_:ae==="combobox"?Nt=null:Nt=(ue==null?void 0:ue("Select"))||h.createElement(gS,{componentName:"Select"});const{suffixIcon:lt,itemIcon:st,removeIcon:It,clearIcon:ct}=BP(Object.assign(Object.assign({},H),{multiple:ye,hasFeedback:Pe,feedbackIcon:tt,showSuffixIcon:fe,prefixCls:be,componentName:"Select"})),Pt=T===!0?{clearIcon:ct}:T,Rt=ur(H,["suffixIcon","itemIcon"]),Tt=Ce(((o=j==null?void 0:j.popup)===null||o===void 0?void 0:o.root)||((a=ce==null?void 0:ce.popup)===null||a===void 0?void 0:a.root)||f||p,{[`${be}-dropdown-${we}`]:we==="rtl"},u,ce.root,j==null?void 0:j.root,Y,Ve,U),Me=mo(ft=>{var Et;return(Et=y??de)!==null&&Et!==void 0?Et:ft}),Ue=h.useContext(Yo),$e=b??Ue,Le=Ce({[`${be}-lg`]:Me==="large",[`${be}-sm`]:Me==="small",[`${be}-rtl`]:we==="rtl",[`${be}-${Ne}`]:Te,[`${be}-in-form-item`]:Ke},Id(be,Ge,Pe),Ee,me,c,ce.root,j==null?void 0:j.root,u,Y,Ve,U),He=h.useMemo(()=>g!==void 0?g:we==="rtl"?"bottomRight":"bottomLeft",[g,we]),[it]=Ou("SelectLike",We==null?void 0:We.zIndex);return q(h.createElement(eY,Object.assign({ref:t,virtual:K,showSearch:oe},Rt,{style:Object.assign(Object.assign(Object.assign(Object.assign({},he.root),W==null?void 0:W.root),ne),O),dropdownMatchSelectWidth:Ae,transitionName:Va(xe,"slide-up",N),builtinPlacements:tY(x,le),listHeight:m,listItemHeight:ve,mode:ae,prefixCls:be,placement:He,direction:we,prefix:k,suffixIcon:lt,menuItemSelectedIcon:st,removeIcon:It,allowClear:Pt,notFoundContent:Nt,className:Le,getPopupContainer:d||X,dropdownClassName:Tt,disabled:$e,dropdownStyle:Object.assign(Object.assign({},We),{zIndex:it}),maxCount:ye?M:void 0,tagRender:ye?D:void 0,dropdownRender:ie,onDropdownVisibleChange:Be})))},vu=h.forwardRef(_rt),Srt=Ig(vu,"dropdownAlign");vu.SECRET_COMBOBOX_MODE_DO_NOT_USE=OEe;vu.Option=Zq;vu.OptGroup=Xq;vu._InternalPanelDoNotUseOrYouWillBeFired=Srt;const REe=(e,t)=>{typeof(e==null?void 0:e.addEventListener)<"u"?e.addEventListener("change",t):typeof(e==null?void 0:e.addListener)<"u"&&e.addListener(t)},AEe=(e,t)=>{typeof(e==null?void 0:e.removeEventListener)<"u"?e.removeEventListener("change",t):typeof(e==null?void 0:e.removeListener)<"u"&&e.removeListener(t)},gg=["xxl","xl","lg","md","sm","xs"],Ert=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)`}),Crt=e=>{const t=e,n=[].concat(gg).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},xrt=()=>{const[,e]=Ko(),t=Ert(Crt(e));return pe.useMemo(()=>{const n=new Map;let r=-1,i={};return{responsiveMap:t,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()},register(){Object.entries(t).forEach(([o,a])=>{const s=({matches:c})=>{this.dispatch(Object.assign(Object.assign({},i),{[o]:c}))},l=window.matchMedia(a);REe(l,s),this.matchHandlers[a]={mql:l,listener:s},s(l)})},unregister(){Object.values(t).forEach(o=>{const a=this.matchHandlers[o];AEe(a==null?void 0:a.mql,a==null?void 0:a.listener)}),n.clear()}}},[e])};function iY(){const[,e]=h.useReducer(t=>t+1,0);return e}function f2(e=!0,t={}){const n=h.useRef(t),r=iY(),i=xrt();return er(()=>{const o=i.subscribe(a=>{n.current=a,e&&r()});return()=>i.unsubscribe(o)},[]),n.current}const UH=h.createContext({}),wrt=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:p,borderRadiusSM:m,lineWidth:g,lineType:v}=e,y=(b,_,S)=>({width:b,height:b,borderRadius:"50%",[`&${n}-square`]:{borderRadius:S},[`&${n}-icon`]:{fontSize:_,[`> ${r}`]:{margin:0}}});return{[n]:Object.assign(Object.assign(Object.assign(Object.assign({},mr(e)),{position:"relative",display:"inline-flex",justifyContent:"center",alignItems:"center",overflow:"hidden",color:o,whiteSpace:"nowrap",textAlign:"center",verticalAlign:"middle",background:i,border:`${Ie(g)} ${v} transparent`,"&-image":{background:"transparent"},[`${t}-image-img`]:{display:"block"}}),y(a,c,f)),{"&-lg":Object.assign({},y(s,u,p)),"&-sm":Object.assign({},y(l,d,m)),"> img":{display:"block",width:"100%",height:"100%",objectFit:"cover"}})}},Trt=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}}}},Ort=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}},IEe=ir("Avatar",e=>{const{colorTextLightSolid:t,colorTextPlaceholder:n}=e,r=Un(e,{avatarBg:n,avatarColor:t});return[wrt(r),Trt(r)]},Ort);var Rrt=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);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 NEe=h.forwardRef((e,t)=>{const{prefixCls:n,shape:r,size:i,src:o,srcSet:a,icon:s,className:l,rootClassName:c,style:u,alt:d,draggable:f,children:p,crossOrigin:m,gap:g=4,onError:v}=e,y=Rrt(e,["prefixCls","shape","size","src","srcSet","icon","className","rootClassName","style","alt","draggable","children","crossOrigin","gap","onError"]),[b,_]=h.useState(1),[S,x]=h.useState(!1),[E,C]=h.useState(!0),w=h.useRef(null),O=h.useRef(null),T=aa(t,w),{getPrefixCls:A,avatar:I}=h.useContext(cn),N=h.useContext(UH),D=()=>{if(!O.current||!w.current)return;const oe=O.current.offsetWidth,ne=w.current.offsetWidth;oe!==0&&ne!==0&&g*2<ne&&_(ne-g*2<oe?(ne-g*2)/oe:1)};h.useEffect(()=>{x(!0)},[]),h.useEffect(()=>{C(!0),_(1)},[o]),h.useEffect(D,[g]);const M=()=>{(v==null?void 0:v())!==!1&&C(!1)},k=mo(oe=>{var ne,he;return(he=(ne=i??(N==null?void 0:N.size))!==null&&ne!==void 0?ne:oe)!==null&&he!==void 0?he:"default"}),P=Object.keys(typeof k=="object"?k||{}:{}).some(oe=>["xs","sm","md","lg","xl","xxl"].includes(oe)),B=f2(P),G=h.useMemo(()=>{if(typeof k!="object")return{};const oe=gg.find(he=>B[he]),ne=k[oe];return ne?{width:ne,height:ne,fontSize:ne&&(s||p)?ne/2:18}:{}},[B,k]),L=A("avatar",n),W=gi(L),[j,H,X]=IEe(L,W),Q=Ce({[`${L}-lg`]:k==="large",[`${L}-sm`]:k==="small"}),ue=h.isValidElement(o),ee=r||(N==null?void 0:N.shape)||"circle",K=Ce(L,Q,I==null?void 0:I.className,`${L}-${ee}`,{[`${L}-image`]:ue||o&&E,[`${L}-icon`]:!!s},X,W,l,c,H),se=typeof k=="number"?{width:k,height:k,fontSize:s?k/2:18}:{};let le;if(typeof o=="string"&&E)le=h.createElement("img",{src:o,draggable:f,srcSet:a,onError:M,alt:d,crossOrigin:m});else if(ue)le=o;else if(s)le=s;else if(S||b!==1){const oe=`scale(${b})`,ne={msTransform:oe,WebkitTransform:oe,transform:oe};le=h.createElement(Oa,{onResize:D},h.createElement("span",{className:`${L}-string`,ref:O,style:Object.assign({},ne)},p))}else le=h.createElement("span",{className:`${L}-string`,style:{opacity:0},ref:O},p);return j(h.createElement("span",Object.assign({},y,{style:Object.assign(Object.assign(Object.assign(Object.assign({},se),G),I==null?void 0:I.style),u),className:K,ref:T}),le))}),m_=e=>e?typeof e=="function"?e():e:null;function oY(e){var t=e.children,n=e.prefixCls,r=e.id,i=e.overlayInnerStyle,o=e.bodyClassName,a=e.className,s=e.style;return h.createElement("div",{className:Ce("".concat(n,"-content"),a),style:s},h.createElement("div",{className:Ce("".concat(n,"-inner"),o),id:r,role:"tooltip",style:i},typeof t=="function"?t():t))}var nb={shiftX:64,adjustY:1},rb={adjustX:1,shiftY:!0},Fc=[0,0],Art={left:{points:["cr","cl"],overflow:rb,offset:[-4,0],targetOffset:Fc},right:{points:["cl","cr"],overflow:rb,offset:[4,0],targetOffset:Fc},top:{points:["bc","tc"],overflow:nb,offset:[0,-4],targetOffset:Fc},bottom:{points:["tc","bc"],overflow:nb,offset:[0,4],targetOffset:Fc},topLeft:{points:["bl","tl"],overflow:nb,offset:[0,-4],targetOffset:Fc},leftTop:{points:["tr","tl"],overflow:rb,offset:[-4,0],targetOffset:Fc},topRight:{points:["br","tr"],overflow:nb,offset:[0,-4],targetOffset:Fc},rightTop:{points:["tl","tr"],overflow:rb,offset:[4,0],targetOffset:Fc},bottomRight:{points:["tr","br"],overflow:nb,offset:[0,4],targetOffset:Fc},rightBottom:{points:["bl","br"],overflow:rb,offset:[4,0],targetOffset:Fc},bottomLeft:{points:["tl","bl"],overflow:nb,offset:[0,4],targetOffset:Fc},leftBottom:{points:["br","bl"],overflow:rb,offset:[-4,0],targetOffset:Fc}},Irt=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow","classNames","styles"],Nrt=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,p=t.children,m=t.onVisibleChange,g=t.afterVisibleChange,v=t.transitionName,y=t.animation,b=t.motion,_=t.placement,S=_===void 0?"right":_,x=t.align,E=x===void 0?{}:x,C=t.destroyTooltipOnHide,w=C===void 0?!1:C,O=t.defaultVisible,T=t.getTooltipContainer,A=t.overlayInnerStyle;t.arrowContent;var I=t.overlay,N=t.id,D=t.showArrow,M=D===void 0?!0:D,k=t.classNames,P=t.styles,B=kt(t,Irt),G=a2(N),L=h.useRef(null);h.useImperativeHandle(n,function(){return L.current});var W=z({},B);"visible"in t&&(W.popupVisible=t.visible);var j=function(){return h.createElement(oY,{key:"content",prefixCls:f,id:G,bodyClassName:k==null?void 0:k.body,overlayInnerStyle:z(z({},A),P==null?void 0:P.body)},I)},H=function(){var Q=h.Children.only(p),ue=(Q==null?void 0:Q.props)||{},ee=z(z({},ue),{},{"aria-describedby":I?G:null});return h.cloneElement(p,ee)};return h.createElement(u2,Xe({popupClassName:Ce(r,k==null?void 0:k.root),prefixCls:f,popup:j,action:o,builtinPlacements:Art,popupPlacement:S,ref:L,popupAlign:E,getPopupContainer:T,onPopupVisibleChange:m,afterPopupVisibleChange:g,popupTransitionName:v,popupAnimation:y,popupMotion:b,defaultPopupVisible:O,autoDestroy:w,mouseLeaveDelay:c,popupStyle:z(z({},u),P==null?void 0:P.root),mouseEnterDelay:s,arrow:M},W),H())};const Mrt=h.forwardRef(Nrt);function HP(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,p=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%)`,S=`path('M ${o} ${a} A ${r} ${r} 0 0 0 ${s} ${l} L ${c} ${u} A ${n} ${n} 0 0 1 ${d} ${f} L ${p} ${m} A ${r} ${r} 0 0 0 ${g} ${v} Z')`;return{arrowShadowWidth:y,arrowPath:S,arrowPolygon:_}}const MEe=(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 ${Ie(s)} 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:n,zIndex:0,background:"transparent"}}},kEe=8;function jP(e){const{contentRadius:t,limitVerticalRadius:n}=e,r=t>12?t+2:12;return{arrowOffsetHorizontal:r,arrowOffsetVertical:n?kEe:r}}function _R(e,t){return e?t:{}}function aY(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"},MEe(e,t,i)),{"&:before":{background:t}})]},_R(!!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% - ${Ie(a)})`,[`> ${r}-arrow`]:{right:{_skip_check_:!0,value:a}}}})),_R(!!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% - ${Ie(a)})`,[`> ${r}-arrow`]:{right:{_skip_check_:!0,value:a}}}})),_R(!!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}})),_R(!!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 krt(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 cie={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"]}},Prt={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"]}},Drt=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function PEe(e){const{arrowWidth:t,autoAdjustOverflow:n,arrowPointAtCenter:r,offset:i,borderRadius:o,visibleFirst:a}=e,s=t/2,l={};return Object.keys(cie).forEach(c=>{const u=r&&Prt[c]||cie[c],d=Object.assign(Object.assign({},u),{offset:[0,0],dynamicInset:!0});switch(l[c]=d,Drt.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=jP({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=krt(c,f,t,n),a&&(d.htmlRegion="visibleFirst")}),l}const Lrt=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:p}=e,m=t(a).add(p).add(f).equal(),g=t(a).mul(2).add(p).equal();return[{[n]:Object.assign(Object.assign(Object.assign(Object.assign({},mr(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:`${Ie(e.calc(u).div(2).equal())} ${Ie(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,kEe)}},[`${n}-content`]:{position:"relative"}}),mP(e,(v,{darkColor:y})=>({[`&${n}-${v}`]:{[`${n}-inner`]:{backgroundColor:y},[`${n}-arrow`]:{"--antd-arrow-background-color":y}}}))),{"&-rtl":{direction:"rtl"}})},aY(e,"var(--antd-arrow-background-color)"),{[`${n}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}}]},$rt=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+70},jP({contentRadius:e.borderRadius,limitVerticalRadius:!0})),HP(Un(e,{borderRadiusOuter:Math.min(e.borderRadiusOuter,4)}))),DEe=(e,t=!0)=>ir("Tooltip",r=>{const{borderRadius:i,colorTextLightSolid:o,colorBgSpotlight:a}=r,s=Un(r,{tooltipMaxWidth:250,tooltipColor:o,tooltipBorderRadius:i,tooltipBg:a});return[Lrt(s),pS(r,"zoom-big-fast")]},$rt,{resetStyle:!1,injectStyle:t})(e),Frt=hg.map(e=>`${e}-inverse`),Brt=["success","processing","error","default","warning"];function UP(e,t=!0){return t?[].concat(rt(Frt),rt(hg)).includes(e):hg.includes(e)}function Hrt(e){return Brt.includes(e)}function LEe(e,t){const n=UP(t),r=Ce({[`${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 jrt=e=>{const{prefixCls:t,className:n,placement:r="top",title:i,color:o,overlayInnerStyle:a}=e,{getPrefixCls:s}=h.useContext(cn),l=s("tooltip",t),[c,u,d]=DEe(l),f=LEe(l,o),p=f.arrowStyle,m=Object.assign(Object.assign({},a),f.overlayStyle),g=Ce(u,d,l,`${l}-pure`,`${l}-placement-${r}`,n,f.className);return c(h.createElement("div",{className:g,style:p},h.createElement("div",{className:`${l}-arrow`}),h.createElement(oY,Object.assign({},e,{className:u,prefixCls:l,overlayInnerStyle:m}),i)))};var Urt=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);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 zrt=h.forwardRef((e,t)=>{var n,r;const{prefixCls:i,openClassName:o,getTooltipContainer:a,color:s,overlayInnerStyle:l,children:c,afterOpenChange:u,afterVisibleChange:d,destroyTooltipOnHide:f,destroyOnHidden:p,arrow:m=!0,title:g,overlay:v,builtinPlacements:y,arrowPointAtCenter:b=!1,autoAdjustOverflow:_=!0,motion:S,getPopupContainer:x,placement:E="top",mouseEnterDelay:C=.1,mouseLeaveDelay:w=.1,overlayStyle:O,rootClassName:T,overlayClassName:A,styles:I,classNames:N}=e,D=Urt(e,["prefixCls","openClassName","getTooltipContainer","color","overlayInnerStyle","children","afterOpenChange","afterVisibleChange","destroyTooltipOnHide","destroyOnHidden","arrow","title","overlay","builtinPlacements","arrowPointAtCenter","autoAdjustOverflow","motion","getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay","overlayStyle","rootClassName","overlayClassName","styles","classNames"]),M=!!m,[,k]=Ko(),{getPopupContainer:P,getPrefixCls:B,direction:G,className:L,style:W,classNames:j,styles:H}=Vi("tooltip"),X=Wf(),Q=h.useRef(null),ue=()=>{var fe;(fe=Q.current)===null||fe===void 0||fe.forceAlign()};h.useImperativeHandle(t,()=>{var fe,Ae;return{forceAlign:ue,forcePopupAlign:()=>{X.deprecated(!1,"forcePopupAlign","forceAlign"),ue()},nativeElement:(fe=Q.current)===null||fe===void 0?void 0:fe.nativeElement,popupElement:(Ae=Q.current)===null||Ae===void 0?void 0:Ae.popupElement}});const[ee,K]=Pn(!1,{value:(n=e.open)!==null&&n!==void 0?n:e.visible,defaultValue:(r=e.defaultOpen)!==null&&r!==void 0?r:e.defaultVisible}),se=!g&&!v&&g!==0,le=fe=>{var Ae,We;K(se?!1:fe),se||((Ae=e.onOpenChange)===null||Ae===void 0||Ae.call(e,fe),(We=e.onVisibleChange)===null||We===void 0||We.call(e,fe))},oe=h.useMemo(()=>{var fe,Ae;let We=b;return typeof m=="object"&&(We=(Ae=(fe=m.pointAtCenter)!==null&&fe!==void 0?fe:m.arrowPointAtCenter)!==null&&Ae!==void 0?Ae:b),y||PEe({arrowPointAtCenter:We,autoAdjustOverflow:_,arrowWidth:M?k.sizePopupArrow:0,borderRadius:k.borderRadius,offset:k.marginXXS,visibleFirst:!0})},[b,m,y,k]),ne=h.useMemo(()=>g===0?g:v||g||"",[v,g]),he=h.createElement(Ad,{space:!0},typeof ne=="function"?ne():ne),me=B("tooltip",i),ce=B(),re=e["data-popover-inject"];let ve=ee;!("open"in e)&&!("visible"in e)&&se&&(ve=!1);const be=h.isValidElement(c)&&!q_e(c)?c:h.createElement("span",null,c),xe=be.props,we=!xe.className||typeof xe.className=="string"?Ce(xe.className,o||`${me}-open`):xe.className,[de,Ee,Ne]=DEe(me,!re),Te=LEe(me,s),Ve=Te.arrowStyle,q=Ce(A,{[`${me}-rtl`]:G==="rtl"},Te.className,T,Ee,Ne,L,j.root,N==null?void 0:N.root),U=Ce(j.body,N==null?void 0:N.body),[Y,ae]=Ou("Tooltip",D.zIndex),ye=h.createElement(Mrt,Object.assign({},D,{zIndex:Y,showArrow:M,placement:E,mouseEnterDelay:C,mouseLeaveDelay:w,prefixCls:me,classNames:{root:q,body:U},styles:{root:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Ve),H.root),W),O),I==null?void 0:I.root),body:Object.assign(Object.assign(Object.assign(Object.assign({},H.body),l),I==null?void 0:I.body),Te.overlayStyle)},getTooltipContainer:x||a||P,ref:Q,builtinPlacements:oe,overlay:he,visible:ve,onVisibleChange:le,afterVisibleChange:u??d,arrowContent:h.createElement("span",{className:`${me}-arrow-content`}),motion:{motionName:Va(ce,"zoom-big-fast",e.transitionName),motionDeadline:1e3},destroyTooltipOnHide:p??!!f}),ve?wo(be,{className:we}):be);return de(h.createElement(e2.Provider,{value:ae},ye))}),Na=zrt;Na._InternalPanelDoNotUseOrYouWillBeFired=jrt;const Vrt=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:p,innerContentPadding:m,titlePadding:g}=e;return[{[t]:Object.assign(Object.assign({},mr(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:p,padding:g},[`${t}-inner-content`]:{color:n,padding:m}})},aY(e,"var(--antd-arrow-background-color)"),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow,display:"inline-block",[`${t}-content`]:{display:"inline-block"}}}]},Grt=e=>{const{componentCls:t}=e;return{[t]:hg.map(n=>{const r=e[`${n}6`];return{[`&${t}-${n}`]:{"--antd-arrow-background-color":r,[`${t}-inner`]:{backgroundColor:r},[`${t}-arrow`]:{background:"transparent"}}}})}},Wrt=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,p=f/2,m=f/2-t,g=i;return Object.assign(Object.assign(Object.assign({titleMinWidth:177,zIndexPopup:a+30},HP(e)),jP({contentRadius:s,limitVerticalRadius:!0})),{innerPadding:o?0:12,titleMarginBottom:o?0:l,titlePadding:o?`${p}px ${g}px ${m}px`:0,titleBorderBottom:o?`${t}px ${c} ${u}`:"none",innerContentPadding:o?`${d}px ${g}px`:0})},$Ee=ir("Popover",e=>{const{colorBgElevated:t,colorText:n}=e,r=Un(e,{popoverBg:t,popoverColor:n});return[Vrt(r),Grt(r),pS(r,"zoom-big")]},Wrt,{resetStyle:!1,deprecatedTokens:[["width","titleMinWidth"],["minWidth","titleMinWidth"]]});var qrt=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);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 FEe=({title:e,content:t,prefixCls:n})=>!e&&!t?null:h.createElement(h.Fragment,null,e&&h.createElement("div",{className:`${n}-title`},e),t&&h.createElement("div",{className:`${n}-inner-content`},t)),Yrt=e=>{const{hashId:t,prefixCls:n,className:r,style:i,placement:o="top",title:a,content:s,children:l}=e,c=m_(a),u=m_(s),d=Ce(t,n,`${n}-pure`,`${n}-placement-${o}`,r);return h.createElement("div",{className:d,style:i},h.createElement("div",{className:`${n}-arrow`}),h.createElement(oY,Object.assign({},e,{className:t,prefixCls:n}),l||h.createElement(FEe,{prefixCls:n,title:c,content:u})))},BEe=e=>{const{prefixCls:t,className:n}=e,r=qrt(e,["prefixCls","className"]),{getPrefixCls:i}=h.useContext(cn),o=i("popover",t),[a,s,l]=$Ee(o);return a(h.createElement(Yrt,Object.assign({},r,{prefixCls:o,hashId:s,className:Ce(n,l)})))};var Krt=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const Qrt=h.forwardRef((e,t)=>{var n,r;const{prefixCls:i,title:o,content:a,overlayClassName:s,placement:l="top",trigger:c="hover",children:u,mouseEnterDelay:d=.1,mouseLeaveDelay:f=.1,onOpenChange:p,overlayStyle:m={},styles:g,classNames:v}=e,y=Krt(e,["prefixCls","title","content","overlayClassName","placement","trigger","children","mouseEnterDelay","mouseLeaveDelay","onOpenChange","overlayStyle","styles","classNames"]),{getPrefixCls:b,className:_,style:S,classNames:x,styles:E}=Vi("popover"),C=b("popover",i),[w,O,T]=$Ee(C),A=b(),I=Ce(s,O,T,_,x.root,v==null?void 0:v.root),N=Ce(x.body,v==null?void 0:v.body),[D,M]=Pn(!1,{value:(n=e.open)!==null&&n!==void 0?n:e.visible,defaultValue:(r=e.defaultOpen)!==null&&r!==void 0?r:e.defaultVisible}),k=(W,j)=>{M(W,!0),p==null||p(W,j)},P=W=>{W.keyCode===Ut.ESC&&k(!1,W)},B=W=>{k(W)},G=m_(o),L=m_(a);return w(h.createElement(Na,Object.assign({placement:l,trigger:c,mouseEnterDelay:d,mouseLeaveDelay:f},y,{prefixCls:C,classNames:{root:I,body:N},styles:{root:Object.assign(Object.assign(Object.assign(Object.assign({},E.root),S),m),g==null?void 0:g.root),body:Object.assign(Object.assign({},E.body),g==null?void 0:g.body)},ref:t,open:D,onOpenChange:B,overlay:G||L?h.createElement(FEe,{prefixCls:C,title:G,content:L}):null,transitionName:Va(A,"zoom-big",y.transitionName),"data-popover-inject":!0}),wo(u,{onKeyDown:W=>{var j,H;h.isValidElement(u)&&((H=u==null?void 0:(j=u.props).onKeyDown)===null||H===void 0||H.call(j,W)),P(W)}})))}),bu=Qrt;bu._InternalPanelDoNotUseOrYouWillBeFired=BEe;const uie=e=>{const{size:t,shape:n}=h.useContext(UH),r=h.useMemo(()=>({size:e.size||t,shape:e.shape||n}),[e.size,e.shape,t,n]);return h.createElement(UH.Provider,{value:r},e.children)},Xrt=e=>{var t,n,r,i;const{getPrefixCls:o,direction:a}=h.useContext(cn),{prefixCls:s,className:l,rootClassName:c,style:u,maxCount:d,maxStyle:f,size:p,shape:m,maxPopoverPlacement:g,maxPopoverTrigger:v,children:y,max:b}=e,_=o("avatar",s),S=`${_}-group`,x=gi(_),[E,C,w]=IEe(_,x),O=Ce(S,{[`${S}-rtl`]:a==="rtl"},w,x,l,c,C),T=Do(y).map((N,D)=>wo(N,{key:`avatar-key-${D}`})),A=(b==null?void 0:b.count)||d,I=T.length;if(A&&A<I){const N=T.slice(0,A),D=T.slice(A,I),M=(b==null?void 0:b.style)||f,k=((t=b==null?void 0:b.popover)===null||t===void 0?void 0:t.trigger)||v||"hover",P=((n=b==null?void 0:b.popover)===null||n===void 0?void 0:n.placement)||g||"top",B=Object.assign(Object.assign({content:D},b==null?void 0:b.popover),{classNames:{root:Ce(`${S}-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:P,trigger:k});return N.push(h.createElement(bu,Object.assign({key:"avatar-popover-key",destroyOnHidden:!0},B),h.createElement(NEe,{style:M},`+${I-A}`))),E(h.createElement(uie,{shape:m,size:p},h.createElement("div",{className:O,style:u},N)))}return E(h.createElement(uie,{shape:m,size:p},h.createElement("div",{className:O,style:u},T)))},_h=NEe;_h.Group=Xrt;const Zrt=new fr("antStatusProcessing",{"0%":{transform:"scale(0.8)",opacity:.5},"100%":{transform:"scale(2.4)",opacity:0}}),Jrt=new fr("antZoomBadgeIn",{"0%":{transform:"scale(0) translate(50%, -50%)",opacity:0},"100%":{transform:"scale(1) translate(50%, -50%)"}}),eit=new fr("antZoomBadgeOut",{"0%":{transform:"scale(1) translate(50%, -50%)"},"100%":{transform:"scale(0) translate(50%, -50%)",opacity:0}}),tit=new fr("antNoWrapperZoomBadgeIn",{"0%":{transform:"scale(0)",opacity:0},"100%":{transform:"scale(1)"}}),nit=new fr("antNoWrapperZoomBadgeOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0)",opacity:0}}),rit=new fr("antBadgeLoadingCircle",{"0%":{transformOrigin:"50%"},"100%":{transform:"translate(50%, -50%) rotate(360deg)",transformOrigin:"50%"}}),iit=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:p}=e,m=`${r}-scroll-number`,g=mP(e,(v,{darkColor:y})=>({[`&${t} ${t}-color-${v}`]:{background:y,[`&:not(${t}-count)`]:{color:y},"a:hover &":{background:y}}}));return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},mr(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:Ie(u),whiteSpace:"nowrap",textAlign:"center",background:e.badgeColor,borderRadius:p(u).div(2).equal(),boxShadow:`0 0 0 ${Ie(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:Ie(d),borderRadius:p(d).div(2).equal()},[`${t}-multiple-words`]:{padding:`0 ${Ie(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 ${Ie(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:rit,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:Zrt,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:Jrt,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack,animationFillMode:"both"},[`${t}-zoom-leave`]:{animationName:eit,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack,animationFillMode:"both"},[`&${t}-not-a-wrapper`]:{[`${t}-zoom-appear, ${t}-zoom-enter`]:{animationName:tit,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack},[`${t}-zoom-leave`]:{animationName:nit,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%)"}}})}},HEe=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 Un(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%)"})},jEe=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}},oit=ir("Badge",e=>{const t=HEe(e);return iit(t)},jEe),ait=e=>{const{antCls:t,badgeFontHeight:n,marginXS:r,badgeRibbonOffset:i,calc:o}=e,a=`${t}-ribbon`,s=`${t}-ribbon-wrapper`,l=mP(e,(c,{darkColor:u})=>({[`&${a}-color-${c}`]:{background:u,color:u}}));return{[s]:{position:"relative"},[a]:Object.assign(Object.assign(Object.assign(Object.assign({},mr(e)),{position:"absolute",top:r,padding:`0 ${Ie(e.paddingXS)}`,color:e.colorPrimary,lineHeight:Ie(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:`${Ie(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"}})}},sit=ir(["Badge","Ribbon"],e=>{const t=HEe(e);return ait(t)},jEe),lit=e=>{const{className:t,prefixCls:n,style:r,color:i,children:o,text:a,placement:s="end",rootClassName:l}=e,{getPrefixCls:c,direction:u}=h.useContext(cn),d=c("ribbon",n),f=`${d}-wrapper`,[p,m,g]=sit(d,f),v=UP(i,!1),y=Ce(d,`${d}-placement-${s}`,{[`${d}-rtl`]:u==="rtl",[`${d}-color-${i}`]:v},t),b={},_={};return i&&!v&&(b.background=i,_.color=i),p(h.createElement("div",{className:Ce(f,l,m,g)},o,h.createElement("div",{className:Ce(y,m),style:Object.assign(Object.assign({},b),r)},h.createElement("span",{className:`${d}-text`},a),h.createElement("div",{className:`${d}-corner`,style:_}))))},die=e=>{const{prefixCls:t,value:n,current:r,offset:i=0}=e;let o;return i&&(o={position:"absolute",top:`${i}00%`,left:0}),h.createElement("span",{style:o,className:Ce(`${t}-only-unit`,{current:r})},n)};function cit(e,t,n){let r=e,i=0;for(;(r+10)%10!==t;)r+=n,i+=n;return i}const uit=e=>{const{prefixCls:t,count:n,value:r}=e,i=Number(r),o=Math.abs(n),[a,s]=h.useState(i),[l,c]=h.useState(o),u=()=>{s(i),c(o)};h.useEffect(()=>{const p=setTimeout(u,1e3);return()=>clearTimeout(p)},[i]);let d,f;if(a===i||Number.isNaN(i)||Number.isNaN(a))d=[h.createElement(die,Object.assign({},e,{key:i,current:!0}))],f={transition:"none"};else{d=[];const p=i+10,m=[];for(let b=i;b<=p;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 S=b%10;return h.createElement(die,Object.assign({},e,{key:b,value:S,offset:g<0?_-v:_,current:_===v}))}),f={transform:`translateY(${-cit(a,i,g)}00%)`}}return h.createElement("span",{className:`${t}-only`,style:f,onTransitionEnd:u},d)};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 fit=h.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=dit(e,["prefixCls","count","className","motionClassName","style","title","show","component","children"]),{getPrefixCls:f}=h.useContext(cn),p=f("scroll-number",n),m=Object.assign(Object.assign({},d),{"data-show":l,style:a,className:Ce(p,i,o),title:s});let g=r;if(r&&Number(r)%1===0){const v=String(r).split("");g=h.createElement("bdi",null,v.map((y,b)=>h.createElement(uit,{prefixCls:p,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?wo(u,v=>({className:Ce(`${p}-custom-component`,v==null?void 0:v.className,o)})):h.createElement(c,Object.assign({},m,{ref:t}),g)});var pit=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);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 hit=h.forwardRef((e,t)=>{var n,r,i,o,a;const{prefixCls:s,scrollNumberPrefixCls:l,children:c,status:u,text:d,color:f,count:p=null,overflowCount:m=99,dot:g=!1,size:v="default",title:y,offset:b,style:_,className:S,rootClassName:x,classNames:E,styles:C,showZero:w=!1}=e,O=pit(e,["prefixCls","scrollNumberPrefixCls","children","status","text","color","count","overflowCount","dot","size","title","offset","style","className","rootClassName","classNames","styles","showZero"]),{getPrefixCls:T,direction:A,badge:I}=h.useContext(cn),N=T("badge",s),[D,M,k]=oit(N),P=p>m?`${m}+`:p,B=P==="0"||P===0,G=p===null||B&&!w,L=(u!=null||f!=null)&&G,W=u!=null||!B,j=g&&!B,H=j?"":P,X=h.useMemo(()=>(H==null||H===""||B&&!w)&&!j,[H,B,w,j]),Q=h.useRef(p);X||(Q.current=p);const ue=Q.current,ee=h.useRef(H);X||(ee.current=H);const K=ee.current,se=h.useRef(j);X||(se.current=j);const le=h.useMemo(()=>{if(!b)return Object.assign(Object.assign({},I==null?void 0:I.style),_);const be={marginTop:b[1]};return A==="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),_)},[A,b,_,I==null?void 0:I.style]),oe=y??(typeof ue=="string"||typeof ue=="number"?ue:void 0),ne=X||!d?null:h.createElement("span",{className:`${N}-status-text`},d),he=!ue||typeof ue!="object"?void 0:wo(ue,be=>({style:Object.assign(Object.assign({},le),be.style)})),me=UP(f,!1),ce=Ce(E==null?void 0:E.indicator,(n=I==null?void 0:I.classNames)===null||n===void 0?void 0:n.indicator,{[`${N}-status-dot`]:L,[`${N}-status-${u}`]:!!u,[`${N}-color-${f}`]:me}),re={};f&&!me&&(re.color=f,re.background=f);const ve=Ce(N,{[`${N}-status`]:L,[`${N}-not-a-wrapper`]:!c,[`${N}-rtl`]:A==="rtl"},S,x,I==null?void 0:I.className,(r=I==null?void 0:I.classNames)===null||r===void 0?void 0:r.root,E==null?void 0:E.root,M,k);if(!c&&L&&(d||W||!G)){const be=le.color;return D(h.createElement("span",Object.assign({},O,{className:ve,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),le)}),h.createElement("span",{className:ce,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),re)}),d&&h.createElement("span",{style:{color:be},className:`${N}-status-text`},d)))}return D(h.createElement("span",Object.assign({ref:t},O,{className:ve,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,h.createElement(ia,{visible:!X,motionName:`${N}-zoom`,motionAppear:!1,motionDeadline:1e3},({className:be})=>{var xe,we;const de=T("scroll-number",l),Ee=se.current,Ne=Ce(E==null?void 0:E.indicator,(xe=I==null?void 0:I.classNames)===null||xe===void 0?void 0:xe.indicator,{[`${N}-dot`]:Ee,[`${N}-count`]:!Ee,[`${N}-count-sm`]:v==="small",[`${N}-multiple-words`]:!Ee&&K&&K.toString().length>1,[`${N}-status-${u}`]:!!u,[`${N}-color-${f}`]:me});let Te=Object.assign(Object.assign(Object.assign({},C==null?void 0:C.indicator),(we=I==null?void 0:I.styles)===null||we===void 0?void 0:we.indicator),le);return f&&!me&&(Te=Te||{},Te.background=f),h.createElement(fit,{prefixCls:de,show:!X,motionClassName:be,className:Ne,count:K,title:oe,style:Te,key:"scrollNumber"},he)}),ne))}),_l=hit;_l.Ribbon=lit;var mit={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"},git=function(t,n){return h.createElement(Mn,Xe({},t,{ref:n,icon:mit}))},sh=h.forwardRef(git),vit=Ut.ESC,bit=Ut.TAB;function yit(e){var t=e.visible,n=e.triggerRef,r=e.onVisibleChange,i=e.autoFocus,o=e.overlayRef,a=h.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 vit:s();break;case bit:{var f=!1;a.current||(f=l()),f?d.preventDefault():s();break}}};h.useEffect(function(){return t?(window.addEventListener("keydown",c),i&&tr(l,3),function(){window.removeEventListener("keydown",c),a.current=!1}):function(){a.current=!1}},[t])}var _it=h.forwardRef(function(e,t){var n=e.overlay,r=e.arrow,i=e.prefixCls,o=h.useMemo(function(){var s;return typeof n=="function"?s=n():s=n,s},[n]),a=aa(t,Rg(o));return pe.createElement(pe.Fragment,null,r&&pe.createElement("div",{className:"".concat(i,"-arrow")}),pe.cloneElement(o,{ref:Cd(o)?a:void 0}))}),ib={adjustX:1,adjustY:1},ob=[0,0],Sit={topLeft:{points:["bl","tl"],overflow:ib,offset:[0,-4],targetOffset:ob},top:{points:["bc","tc"],overflow:ib,offset:[0,-4],targetOffset:ob},topRight:{points:["br","tr"],overflow:ib,offset:[0,-4],targetOffset:ob},bottomLeft:{points:["tl","bl"],overflow:ib,offset:[0,4],targetOffset:ob},bottom:{points:["tc","bc"],overflow:ib,offset:[0,4],targetOffset:ob},bottomRight:{points:["tr","br"],overflow:ib,offset:[0,4],targetOffset:ob}},Eit=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function Cit(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,p=f===void 0?Sit:f,m=e.getPopupContainer,g=e.showAction,v=e.hideAction,y=e.overlayClassName,b=e.overlayStyle,_=e.visible,S=e.trigger,x=S===void 0?["hover"]:S,E=e.autoFocus,C=e.overlay,w=e.children,O=e.onVisibleChange,T=kt(e,Eit),A=pe.useState(),I=Re(A,2),N=I[0],D=I[1],M="visible"in e?_:N,k=pe.useRef(null),P=pe.useRef(null),B=pe.useRef(null);pe.useImperativeHandle(t,function(){return k.current});var G=function(K){D(K),O==null||O(K)};yit({visible:M,triggerRef:B,onVisibleChange:G,autoFocus:E,overlayRef:P});var L=function(K){var se=e.onOverlayClick;D(!1),se&&se(K)},W=function(){return pe.createElement(_it,{ref:P,overlay:C,prefixCls:a,arrow:i})},j=function(){return typeof C=="function"?W:W()},H=function(){var K=e.minOverlayWidthMatchTrigger,se=e.alignPoint;return"minOverlayWidthMatchTrigger"in e?K:!se},X=function(){var K=e.openClassName;return K!==void 0?K:"".concat(a,"-open")},Q=pe.cloneElement(w,{className:Ce((n=w.props)===null||n===void 0?void 0:n.className,M&&X()),ref:Cd(w)?aa(B,Rg(w)):void 0}),ue=v;return!ue&&x.indexOf("contextMenu")!==-1&&(ue=["click"]),pe.createElement(u2,Xe({builtinPlacements:p},T,{prefixCls:a,ref:k,popupClassName:Ce(y,te({},"".concat(a,"-show-arrow"),i)),popupStyle:b,action:x,showAction:g,hideAction:ue,popupPlacement:d,popupAlign:c,popupTransitionName:s,popupAnimation:l,popupVisible:M,stretch:H()?"minWidth":"",popup:j(),onPopupVisibleChange:G,onPopupClick:L,getPopupContainer:m}),Q)}const UEe=pe.forwardRef(Cit),xit=e=>typeof e!="object"&&typeof e!="function"||e===null;var zEe=h.createContext(null);function VEe(e,t){return e===void 0?null:"".concat(e,"-").concat(t)}function GEe(e){var t=h.useContext(zEe);return VEe(t,e)}var wit=["children","locked"],Nd=h.createContext(null);function Tit(e,t){var n=z({},e);return Object.keys(t).forEach(function(r){var i=t[r];i!==void 0&&(n[r]=i)}),n}function $w(e){var t=e.children,n=e.locked,r=kt(e,wit),i=h.useContext(Nd),o=Df(function(){return Tit(i,r)},[i,r],function(a,s){return!n&&(a[0]!==s[0]||!Bl(a[1],s[1],!0))});return h.createElement(Nd.Provider,{value:o},t)}var Oit=[],WEe=h.createContext(null);function zP(){return h.useContext(WEe)}var qEe=h.createContext(Oit);function vS(e){var t=h.useContext(qEe);return h.useMemo(function(){return e!==void 0?[].concat(rt(t),[e]):t},[t,e])}var YEe=h.createContext(null),sY=h.createContext({});function fie(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(fS(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 Rit(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=rt(e.querySelectorAll("*")).filter(function(r){return fie(r,t)});return fie(e,t)&&n.unshift(e),n}var zH=Ut.LEFT,VH=Ut.RIGHT,GH=Ut.UP,II=Ut.DOWN,NI=Ut.ENTER,KEe=Ut.ESC,kE=Ut.HOME,PE=Ut.END,pie=[GH,II,zH,VH];function Ait(e,t,n,r){var i,o="prev",a="next",s="children",l="parent";if(e==="inline"&&r===NI)return{inlineTrigger:!0};var c=te(te({},GH,o),II,a),u=te(te(te(te({},zH,n?a:o),VH,n?o:a),II,s),NI,s),d=te(te(te(te(te(te({},GH,o),II,a),NI,s),KEe,l),zH,n?s:l),VH,n?l:s),f={inline:c,horizontal:u,vertical:d,inlineSub:c,horizontalSub:d,verticalSub:d},p=(i=f["".concat(e).concat(t?"":"Sub")])===null||i===void 0?void 0:i[r];switch(p){case o:return{offset:-1,sibling:!0};case a:return{offset:1,sibling:!0};case l:return{offset:-1,sibling:!1};case s:return{offset:1,sibling:!1};default:return null}}function Iit(e){for(var t=e;t;){if(t.getAttribute("data-menu-list"))return t;t=t.parentElement}return null}function Nit(e,t){for(var n=e||document.activeElement;n;){if(t.has(n))return n;n=n.parentElement}return null}function lY(e,t){var n=Rit(e,!0);return n.filter(function(r){return t.has(r)})}function hie(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;if(!e)return null;var i=lY(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 WH=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(VEe(n,a),"']"));s&&(r.add(s),o.set(s,a),i.set(a,s))}),{elements:r,key2element:i,element2key:o}};function Mit(e,t,n,r,i,o,a,s,l,c){var u=h.useRef(),d=h.useRef();d.current=t;var f=function(){tr.cancel(u.current)};return h.useEffect(function(){return function(){f()}},[]),function(p){var m=p.which;if([].concat(pie,[NI,KEe,kE,PE]).includes(m)){var g=o(),v=WH(g,r),y=v,b=y.elements,_=y.key2element,S=y.element2key,x=_.get(t),E=Nit(x,b),C=S.get(E),w=Ait(e,a(C,!0).length===1,n,m);if(!w&&m!==kE&&m!==PE)return;(pie.includes(m)||[kE,PE].includes(m))&&p.preventDefault();var O=function(P){if(P){var B=P,G=P.querySelector("a");G!=null&&G.getAttribute("href")&&(B=G);var L=S.get(P);s(L),f(),u.current=tr(function(){d.current===L&&B.focus()})}};if([kE,PE].includes(m)||w.sibling||!E){var T;!E||e==="inline"?T=i.current:T=Iit(E);var A,I=lY(T,b);m===kE?A=I[0]:m===PE?A=I[I.length-1]:A=hie(T,b,E,w.offset),O(A)}else if(w.inlineTrigger)l(C);else if(w.offset>0)l(C,!0),f(),u.current=tr(function(){v=WH(g,r);var k=E.getAttribute("aria-controls"),P=document.getElementById(k),B=hie(P,v.elements);O(B)},5);else if(w.offset<0){var N=a(C,!0),D=N[N.length-2],M=_.get(D);l(D,!1),O(M)}}c==null||c(p)}}function kit(e){Promise.resolve().then(e)}var cY="__RC_UTIL_PATH_SPLIT__",mie=function(t){return t.join(cY)},Pit=function(t){return t.split(cY)},qH="rc-menu-more";function Dit(){var e=h.useState({}),t=Re(e,2),n=t[1],r=h.useRef(new Map),i=h.useRef(new Map),o=h.useState([]),a=Re(o,2),s=a[0],l=a[1],c=h.useRef(0),u=h.useRef(!1),d=function(){u.current||n({})},f=h.useCallback(function(_,S){var x=mie(S);i.current.set(x,_),r.current.set(_,x),c.current+=1;var E=c.current;kit(function(){E===c.current&&d()})},[]),p=h.useCallback(function(_,S){var x=mie(S);i.current.delete(x),r.current.delete(_)},[]),m=h.useCallback(function(_){l(_)},[]),g=h.useCallback(function(_,S){var x=r.current.get(_)||"",E=Pit(x);return S&&s.includes(E[0])&&E.unshift(qH),E},[s]),v=h.useCallback(function(_,S){return _.filter(function(x){return x!==void 0}).some(function(x){var E=g(x,!0);return E.includes(S)})},[g]),y=function(){var S=rt(r.current.keys());return s.length&&S.push(qH),S},b=h.useCallback(function(_){var S="".concat(r.current.get(_)).concat(cY),x=new Set;return rt(i.current.keys()).forEach(function(E){E.startsWith(S)&&x.add(i.current.get(E))}),x},[]);return h.useEffect(function(){return function(){u.current=!0}},[]),{registerPath:f,unregisterPath:p,refreshOverflowKeys:m,isSubPathKey:v,getKeyPath:g,getKeys:y,getSubPathKeys:b}}function wC(e){var t=h.useRef(e);t.current=e;var n=h.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 Lit=Math.random().toFixed(5).toString().slice(2),gie=0;function $it(e){var t=Pn(e,{value:e}),n=Re(t,2),r=n[0],i=n[1];return h.useEffect(function(){gie+=1;var o="".concat(Lit,"-").concat(gie);i("rc-menu-uuid-".concat(o))},[]),r}function QEe(e,t,n,r){var i=h.useContext(Nd),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 XEe(e){var t=h.useContext(Nd),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 ZEe(e){var t=e.icon,n=e.props,r=e.children,i;return t===null||t===!1?null:(typeof t=="function"?i=h.createElement(t,z({},n)):typeof t!="boolean"&&(i=t),i||r||null)}var Fit=["item"];function B4(e){var t=e.item,n=kt(e,Fit);return Object.defineProperty(n,"item",{get:function(){return Vr(!1,"`info.item` is deprecated since we will move to function component that not provides React Node instance in future."),t}}),n}var Bit=["title","attribute","elementRef"],Hit=["style","className","eventKey","warnKey","disabled","itemIcon","children","role","onMouseEnter","onMouseLeave","onClick","onKeyDown","onFocus"],jit=["active"],Uit=function(e){Fs(n,e);var t=ll(n);function n(){return Qr(this,n),t.apply(this,arguments)}return Xr(n,[{key:"render",value:function(){var i=this.props,o=i.title,a=i.attribute,s=i.elementRef,l=kt(i,Bit),c=ur(l,["eventKey","popupClassName","popupOffset","onTitleClick"]);return Vr(!a,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),h.createElement(pd.Item,Xe({},a,{title:typeof o=="string"?o:void 0},c,{ref:s}))}}]),n}(h.Component),zit=h.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,p=e.onFocus,m=kt(e,Hit),g=GEe(i),v=h.useContext(Nd),y=v.prefixCls,b=v.onItemClick,_=v.disabled,S=v.overflowDisabled,x=v.itemIcon,E=v.selectedKeys,C=v.onActive,w=h.useContext(sY),O=w._internalRenderMenuItem,T="".concat(y,"-item"),A=h.useRef(),I=h.useRef(),N=_||o,D=Bd(t,I),M=vS(i),k=function(se){return{key:i,keyPath:rt(M).reverse(),item:A.current,domEvent:se}},P=a||x,B=QEe(i,N,c,u),G=B.active,L=kt(B,jit),W=E.includes(i),j=XEe(M.length),H=function(se){if(!N){var le=k(se);d==null||d(B4(le)),b(le)}},X=function(se){if(f==null||f(se),se.which===Ut.ENTER){var le=k(se);d==null||d(B4(le)),b(le)}},Q=function(se){C(i),p==null||p(se)},ue={};e.role==="option"&&(ue["aria-selected"]=W);var ee=h.createElement(Uit,Xe({ref:A,elementRef:D,role:l===null?"none":l||"menuitem",tabIndex:o?null:-1,"data-menu-id":S&&g?null:g},ur(m,["extra"]),L,ue,{component:"li","aria-disabled":o,style:z(z({},j),n),className:Ce(T,te(te(te({},"".concat(T,"-active"),G),"".concat(T,"-selected"),W),"".concat(T,"-disabled"),N),r),onClick:H,onKeyDown:X,onFocus:Q}),s,h.createElement(ZEe,{props:z(z({},e),{},{isSelected:W}),icon:P}));return O&&(ee=O(ee,e,{selected:W})),ee});function Vit(e,t){var n=e.eventKey,r=zP(),i=vS(n);return h.useEffect(function(){if(r)return r.registerPath(n,i),function(){r.unregisterPath(n,i)}},[i]),r?null:h.createElement(zit,Xe({},e,{ref:t}))}const p2=h.forwardRef(Vit);var Git=["className","children"],Wit=function(t,n){var r=t.className,i=t.children,o=kt(t,Git),a=h.useContext(Nd),s=a.prefixCls,l=a.mode,c=a.rtl;return h.createElement("ul",Xe({className:Ce(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)},uY=h.forwardRef(Wit);uY.displayName="SubMenuList";function dY(e,t){return Do(e).map(function(n,r){if(h.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(rt(t),[r]).join("-")));var c={key:s,eventKey:s};return h.cloneElement(n,c)}return n})}var Es={adjustX:1,adjustY:1},qit={topLeft:{points:["bl","tl"],overflow:Es},topRight:{points:["br","tr"],overflow:Es},bottomLeft:{points:["tl","bl"],overflow:Es},bottomRight:{points:["tr","br"],overflow:Es},leftTop:{points:["tr","tl"],overflow:Es},leftBottom:{points:["br","bl"],overflow:Es},rightTop:{points:["tl","tr"],overflow:Es},rightBottom:{points:["bl","br"],overflow:Es}},Yit={topLeft:{points:["bl","tl"],overflow:Es},topRight:{points:["br","tr"],overflow:Es},bottomLeft:{points:["tl","bl"],overflow:Es},bottomRight:{points:["tr","br"],overflow:Es},rightTop:{points:["tr","tl"],overflow:Es},rightBottom:{points:["br","bl"],overflow:Es},leftTop:{points:["tl","tr"],overflow:Es},leftBottom:{points:["bl","br"],overflow:Es}};function JEe(e,t,n){if(t)return t;if(n)return n[e]||n.other}var Kit={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"};function Qit(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=h.useContext(Nd),f=d.getPopupContainer,p=d.rtl,m=d.subMenuOpenDelay,g=d.subMenuCloseDelay,v=d.builtinPlacements,y=d.triggerSubMenuAction,b=d.forceSubMenuRender,_=d.rootClassName,S=d.motion,x=d.defaultMotions,E=h.useState(!1),C=Re(E,2),w=C[0],O=C[1],T=z(p?z({},Yit):z({},qit),v),A=Kit[c],I=JEe(c,S,x),N=h.useRef(I);c!=="inline"&&(N.current=I);var D=z(z({},N.current),{},{leavedClassName:"".concat(t,"-hidden"),removeOnLeave:!1,motionAppear:!0}),M=h.useRef();return h.useEffect(function(){return M.current=tr(function(){O(n)}),function(){tr.cancel(M.current)}},[n]),h.createElement(u2,{prefixCls:t,popupClassName:Ce("".concat(t,"-popup"),te({},"".concat(t,"-rtl"),p),a,_),stretch:c==="horizontal"?"minWidth":null,getPopupContainer:f,builtinPlacements:T,popupPlacement:A,popupVisible:w,popup:i,popupStyle:o,popupAlign:s&&{offset:s},action:l?[]:[y],mouseEnterDelay:m,mouseLeaveDelay:g,onPopupVisibleChange:u,forceRender:b,popupMotion:D,fresh:!0},r)}function Xit(e){var t=e.id,n=e.open,r=e.keyPath,i=e.children,o="inline",a=h.useContext(Nd),s=a.prefixCls,l=a.forceSubMenuRender,c=a.motion,u=a.defaultMotions,d=a.mode,f=h.useRef(!1);f.current=d===o;var p=h.useState(!f.current),m=Re(p,2),g=m[0],v=m[1],y=f.current?n:!1;h.useEffect(function(){f.current&&v(!1)},[d]);var b=z({},JEe(o,c,u));r.length>1&&(b.motionAppear=!1);var _=b.onVisibleChanged;return b.onVisibleChanged=function(S){return!f.current&&!S&&v(!0),_==null?void 0:_(S)},g?null:h.createElement($w,{mode:o,locked:!f.current},h.createElement(ia,Xe({visible:y},b,{forceRender:l,removeOnLeave:!1,leavedClassName:"".concat(s,"-hidden")}),function(S){var x=S.className,E=S.style;return h.createElement(uY,{id:t,className:x,style:E},i)}))}var Zit=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],Jit=["active"],eot=h.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,p=e.popupStyle,m=e.onClick,g=e.onMouseEnter,v=e.onMouseLeave,y=e.onTitleClick,b=e.onTitleMouseEnter,_=e.onTitleMouseLeave,S=kt(e,Zit),x=GEe(o),E=h.useContext(Nd),C=E.prefixCls,w=E.mode,O=E.openKeys,T=E.disabled,A=E.overflowDisabled,I=E.activeKey,N=E.selectedKeys,D=E.itemIcon,M=E.expandIcon,k=E.onItemClick,P=E.onOpenChange,B=E.onActive,G=h.useContext(sY),L=G._internalRenderSubMenuItem,W=h.useContext(YEe),j=W.isSubPathKey,H=vS(),X="".concat(C,"-submenu"),Q=T||a,ue=h.useRef(),ee=h.useRef(),K=c??D,se=u??M,le=O.includes(o),oe=!A&&le,ne=j(N,o),he=QEe(o,Q,b,_),me=he.active,ce=kt(he,Jit),re=h.useState(!1),ve=Re(re,2),be=ve[0],xe=ve[1],we=function(Fe){Q||xe(Fe)},de=function(Fe){we(!0),g==null||g({key:o,domEvent:Fe})},Ee=function(Fe){we(!1),v==null||v({key:o,domEvent:Fe})},Ne=h.useMemo(function(){return me||(w!=="inline"?be||j([I],o):!1)},[w,me,I,be,o,j]),Te=XEe(H.length),Ve=function(Fe){Q||(y==null||y({key:o,domEvent:Fe}),w==="inline"&&P(o,!le))},q=wC(function(Be){m==null||m(B4(Be)),k(Be)}),U=function(Fe){w!=="inline"&&P(o,Fe)},Y=function(){B(o)},ae=x&&"".concat(x,"-popup"),ye=h.useMemo(function(){return h.createElement(ZEe,{icon:w!=="horizontal"?se:void 0,props:z(z({},e),{},{isOpen:oe,isSubMenu:!0})},h.createElement("i",{className:"".concat(X,"-arrow")}))},[w,se,e,oe,X]),fe=h.createElement("div",Xe({role:"menuitem",style:Te,className:"".concat(X,"-title"),tabIndex:Q?null:-1,ref:ue,title:typeof i=="string"?i:null,"data-menu-id":A&&x?null:x,"aria-expanded":oe,"aria-haspopup":!0,"aria-controls":ae,"aria-disabled":Q,onClick:Ve,onFocus:Y},ce),i,ye),Ae=h.useRef(w);if(w!=="inline"&&H.length>1?Ae.current="vertical":Ae.current=w,!A){var We=Ae.current;fe=h.createElement(Qit,{mode:We,prefixCls:X,visible:!s&&oe&&w!=="inline",popupClassName:d,popupOffset:f,popupStyle:p,popup:h.createElement($w,{mode:We==="horizontal"?"vertical":We},h.createElement(uY,{id:ae,ref:ee},l)),disabled:Q,onVisibleChange:U},fe)}var ie=h.createElement(pd.Item,Xe({ref:t,role:"none"},S,{component:"li",style:n,className:Ce(X,"".concat(X,"-").concat(w),r,te(te(te(te({},"".concat(X,"-open"),oe),"".concat(X,"-active"),Ne),"".concat(X,"-selected"),ne),"".concat(X,"-disabled"),Q)),onMouseEnter:de,onMouseLeave:Ee}),fe,!A&&h.createElement(Xit,{id:ae,open:oe,keyPath:H},l));return L&&(ie=L(ie,e,{selected:ne,active:Ne,open:oe,disabled:Q})),h.createElement($w,{onItemClick:q,mode:w==="horizontal"?"vertical":w,itemIcon:K,expandIcon:se},ie)}),VP=h.forwardRef(function(e,t){var n=e.eventKey,r=e.children,i=vS(n),o=dY(r,i),a=zP();h.useEffect(function(){if(a)return a.registerPath(n,i),function(){a.unregisterPath(n,i)}},[i]);var s;return a?s=o:s=h.createElement(eot,Xe({ref:t},e),o),h.createElement(qEe.Provider,{value:i},s)});function fY(e){var t=e.className,n=e.style,r=h.useContext(Nd),i=r.prefixCls,o=zP();return o?null:h.createElement("li",{role:"separator",className:Ce("".concat(i,"-item-divider"),t),style:n})}var tot=["className","title","eventKey","children"],not=h.forwardRef(function(e,t){var n=e.className,r=e.title;e.eventKey;var i=e.children,o=kt(e,tot),a=h.useContext(Nd),s=a.prefixCls,l="".concat(s,"-item-group");return h.createElement("li",Xe({ref:t,role:"presentation"},o,{onClick:function(u){return u.stopPropagation()},className:Ce(l,n)}),h.createElement("div",{role:"presentation",className:"".concat(l,"-title"),title:typeof r=="string"?r:void 0},r),h.createElement("ul",{role:"group",className:"".concat(l,"-list")},i))}),pY=h.forwardRef(function(e,t){var n=e.eventKey,r=e.children,i=vS(n),o=dY(r,i),a=zP();return a?o:h.createElement(not,Xe({ref:t},ur(e,["warnKey"])),o)}),rot=["label","children","key","type","extra"];function YH(e,t,n){var r=t.item,i=t.group,o=t.submenu,a=t.divider;return(e||[]).map(function(s,l){if(s&&qt(s)==="object"){var c=s,u=c.label,d=c.children,f=c.key,p=c.type,m=c.extra,g=kt(c,rot),v=f??"tmp-".concat(l);return d||p==="group"?p==="group"?h.createElement(i,Xe({key:v},g,{title:u}),YH(d,t,n)):h.createElement(o,Xe({key:v},g,{title:u}),YH(d,t,n)):p==="divider"?h.createElement(a,Xe({key:v},g)):h.createElement(r,Xe({key:v},g,{extra:m}),u,(!!m||m===0)&&h.createElement("span",{className:"".concat(n,"-item-extra")},m))}return null}).filter(function(s){return s})}function vie(e,t,n,r,i){var o=e,a=z({divider:fY,item:p2,group:pY,submenu:VP},r);return t&&(o=YH(t,a,i)),dY(o,n)}var iot=["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"],Jg=[],oot=h.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,p=r.direction,m=r.id,g=r.mode,v=g===void 0?"vertical":g,y=r.inlineCollapsed,b=r.disabled,_=r.disabledOverflow,S=r.subMenuOpenDelay,x=S===void 0?.1:S,E=r.subMenuCloseDelay,C=E===void 0?.1:E,w=r.forceSubMenuRender,O=r.defaultOpenKeys,T=r.openKeys,A=r.activeKey,I=r.defaultActiveFirst,N=r.selectable,D=N===void 0?!0:N,M=r.multiple,k=M===void 0?!1:M,P=r.defaultSelectedKeys,B=r.selectedKeys,G=r.onSelect,L=r.onDeselect,W=r.inlineIndent,j=W===void 0?24:W,H=r.motion,X=r.defaultMotions,Q=r.triggerSubMenuAction,ue=Q===void 0?"hover":Q,ee=r.builtinPlacements,K=r.itemIcon,se=r.expandIcon,le=r.overflowedIndicator,oe=le===void 0?"...":le,ne=r.overflowedIndicatorPopupClassName,he=r.getPopupContainer,me=r.onClick,ce=r.onOpenChange,re=r.onKeyDown;r.openAnimation,r.openTransitionName;var ve=r._internalRenderMenuItem,be=r._internalRenderSubMenuItem,xe=r._internalComponents,we=kt(r,iot),de=h.useMemo(function(){return[vie(f,d,Jg,xe,o),vie(f,d,Jg,{},o)]},[f,d,xe]),Ee=Re(de,2),Ne=Ee[0],Te=Ee[1],Ve=h.useState(!1),q=Re(Ve,2),U=q[0],Y=q[1],ae=h.useRef(),ye=$it(m),fe=p==="rtl",Ae=Pn(O,{value:T,postState:function(wn){return wn||Jg}}),We=Re(Ae,2),ie=We[0],Be=We[1],Fe=function(wn){var an=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;function yr(){Be(wn),ce==null||ce(wn)}an?Fl.flushSync(yr):yr()},Pe=h.useState(ie),Ke=Re(Pe,2),tt=Ke[0],Ge=Ke[1],Nt=h.useRef(!1),lt=h.useMemo(function(){return(v==="inline"||v==="vertical")&&y?["vertical",y]:[v,!1]},[v,y]),st=Re(lt,2),It=st[0],ct=st[1],Pt=It==="inline",Rt=h.useState(It),Tt=Re(Rt,2),Me=Tt[0],Ue=Tt[1],$e=h.useState(ct),Le=Re($e,2),He=Le[0],it=Le[1];h.useEffect(function(){Ue(It),it(ct),Nt.current&&(Pt?Be(tt):Fe(Jg))},[It,ct]);var ft=h.useState(0),Et=Re(ft,2),Dt=Et[0],St=Et[1],bt=Dt>=Ne.length-1||Me!=="horizontal"||_;h.useEffect(function(){Pt&&Ge(ie)},[ie]),h.useEffect(function(){return Nt.current=!0,function(){Nt.current=!1}},[]);var xt=Dit(),ht=xt.registerPath,Vt=xt.unregisterPath,at=xt.refreshOverflowKeys,wt=xt.isSubPathKey,Gt=xt.getKeyPath,$t=xt.getKeys,zt=xt.getSubPathKeys,Ft=h.useMemo(function(){return{registerPath:ht,unregisterPath:Vt}},[ht,Vt]),De=h.useMemo(function(){return{isSubPathKey:wt}},[wt]);h.useEffect(function(){at(bt?Jg:Ne.slice(Dt+1).map(function(br){return br.key}))},[Dt,bt]);var Ct=Pn(A||I&&((n=Ne[0])===null||n===void 0?void 0:n.key),{value:A}),et=Re(Ct,2),Ot=et[0],At=et[1],_n=wC(function(br){At(br)}),zn=wC(function(){At(void 0)});h.useImperativeHandle(t,function(){return{list:ae.current,focus:function(wn){var an,yr=$t(),Cn=WH(yr,ye),rn=Cn.elements,Vn=Cn.key2element,Er=Cn.element2key,Lr=lY(ae.current,rn),Ii=Ot??(Lr[0]?Er.get(Lr[0]):(an=Ne.find(function(mn){return!mn.props.disabled}))===null||an===void 0?void 0:an.key),nr=Vn.get(Ii);if(Ii&&nr){var Wi;nr==null||(Wi=nr.focus)===null||Wi===void 0||Wi.call(nr,wn)}}}});var R=Pn(P||[],{value:B,postState:function(wn){return Array.isArray(wn)?wn:wn==null?Jg:[wn]}}),$=Re(R,2),J=$[0],Oe=$[1],qe=function(wn){if(D){var an=wn.key,yr=J.includes(an),Cn;k?yr?Cn=J.filter(function(Vn){return Vn!==an}):Cn=[].concat(rt(J),[an]):Cn=[an],Oe(Cn);var rn=z(z({},wn),{},{selectedKeys:Cn});yr?L==null||L(rn):G==null||G(rn)}!k&&ie.length&&Me!=="inline"&&Fe(Jg)},Qe=wC(function(br){me==null||me(B4(br)),qe(br)}),Bt=wC(function(br,wn){var an=ie.filter(function(Cn){return Cn!==br});if(wn)an.push(br);else if(Me!=="inline"){var yr=zt(br);an=an.filter(function(Cn){return!yr.has(Cn)})}Bl(ie,an,!0)||Fe(an,!0)}),fn=function(wn,an){var yr=an??!ie.includes(wn);Bt(wn,yr)},gr=Mit(Me,Ot,fe,ye,ae,$t,Gt,At,fn,re);h.useEffect(function(){Y(!0)},[]);var Jn=h.useMemo(function(){return{_internalRenderMenuItem:ve,_internalRenderSubMenuItem:be}},[ve,be]),Hr=Me!=="horizontal"||_?Ne:Ne.map(function(br,wn){return h.createElement($w,{key:br.key,overflowDisabled:wn>Dt},br)}),bi=h.createElement(pd,Xe({id:m,ref:ae,prefixCls:"".concat(o,"-overflow"),component:"ul",itemComponent:p2,className:Ce(o,"".concat(o,"-root"),"".concat(o,"-").concat(Me),l,te(te({},"".concat(o,"-inline-collapsed"),He),"".concat(o,"-rtl"),fe),a),dir:p,style:s,role:"menu",tabIndex:u,data:Hr,renderRawItem:function(wn){return wn},renderRawRest:function(wn){var an=wn.length,yr=an?Ne.slice(-an):null;return h.createElement(VP,{eventKey:qH,title:oe,disabled:bt,internalPopupClose:an===0,popupClassName:ne},yr)},maxCount:Me!=="horizontal"||_?pd.INVALIDATE:pd.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(wn){St(wn)},onKeyDown:gr},we));return h.createElement(sY.Provider,{value:Jn},h.createElement(zEe.Provider,{value:ye},h.createElement($w,{prefixCls:o,rootClassName:a,mode:Me,openKeys:ie,rtl:fe,disabled:b,motion:U?H:null,defaultMotions:U?X:null,activeKey:Ot,onActive:_n,onInactive:zn,selectedKeys:J,inlineIndent:j,subMenuOpenDelay:x,subMenuCloseDelay:C,forceSubMenuRender:w,builtinPlacements:ee,triggerSubMenuAction:ue,getPopupContainer:he,itemIcon:K,expandIcon:se,onItemClick:Qe,onOpenChange:Bt},h.createElement(YEe.Provider,{value:De},bi),h.createElement("div",{style:{display:"none"},"aria-hidden":!0},h.createElement(WEe.Provider,{value:Ft},Te)))))}),bS=oot;bS.Item=p2;bS.SubMenu=VP;bS.ItemGroup=pY;bS.Divider=fY;var aot={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"},sot=function(t,n){return h.createElement(Mn,Xe({},t,{ref:n,icon:aot}))},eCe=h.forwardRef(sot);const tCe=h.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}}),lot=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:Ie(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}}},nCe=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}},rCe=[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]],iCe=ir("Layout",e=>[lot(e)],nCe,{deprecatedTokens:rCe}),cot=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:p,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"}},[`&-zero-width ${t}-children`]:{overflow:"hidden"},[`${t}-trigger`]:{position:"fixed",bottom:0,zIndex:1,height:a,color:s,lineHeight:Ie(a),textAlign:"center",background:l,cursor:"pointer",transition:`all ${r}`},[`${t}-zero-width-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 ${Ie(f)} ${Ie(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:`${Ie(f)} 0 0 ${Ie(f)}`}},"&-light":{background:p,[`${t}-trigger`]:{color:m,background:g},[`${t}-zero-width-trigger`]:{color:m,background:g,border:`1px solid ${v}`,borderInlineStart:0}}}}},uot=ir(["Layout","Sider"],e=>[cot(e)],nCe,{deprecatedTokens:rCe});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 bie={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},fot=e=>!Number.isNaN(Number.parseFloat(e))&&isFinite(e),GP=h.createContext({}),pot=(()=>{let e=0;return(t="")=>(e+=1,`${t}${e}`)})(),oCe=h.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:p,breakpoint:m,onCollapse:g,onBreakpoint:v}=e,y=dot(e,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:b}=h.useContext(tCe),[_,S]=h.useState("collapsed"in e?e.collapsed:a),[x,E]=h.useState(!1);h.useEffect(()=>{"collapsed"in e&&S(e.collapsed)},[e.collapsed]);const C=(K,se)=>{"collapsed"in e||S(K),g==null||g(K,se)},{getPrefixCls:w,direction:O}=h.useContext(cn),T=w("layout-sider",n),[A,I,N]=uot(T),D=h.useRef(null);D.current=K=>{E(K.matches),v==null||v(K.matches),_!==K.matches&&C(K.matches,"responsive")},h.useEffect(()=>{function K(le){var oe;return(oe=D.current)===null||oe===void 0?void 0:oe.call(D,le)}let se;return typeof(window==null?void 0:window.matchMedia)<"u"&&m&&m in bie&&(se=window.matchMedia(`screen and (max-width: ${bie[m]})`),REe(se,K),K(se)),()=>{AEe(se,K)}},[m]),h.useEffect(()=>{const K=pot("ant-sider-");return b.addSider(K),()=>b.removeSider(K)},[]);const M=()=>{C(!_,"clickTrigger")},k=ur(y,["collapsed"]),P=_?f:d,B=fot(P)?`${P}px`:String(P),G=parseFloat(String(f||0))===0?h.createElement("span",{onClick:M,className:Ce(`${T}-zero-width-trigger`,`${T}-zero-width-trigger-${u?"right":"left"}`),style:p},i||h.createElement(eCe,null)):null,L=O==="rtl"==!u,H={expanded:L?h.createElement(Rd,null):h.createElement(sh,null),collapsed:L?h.createElement(sh,null):h.createElement(Rd,null)}[_?"collapsed":"expanded"],X=i!==null?G||h.createElement("div",{className:`${T}-trigger`,onClick:M,style:{width:B}},i||H):null,Q=Object.assign(Object.assign({},l),{flex:`0 0 ${B}`,maxWidth:B,minWidth:B,width:B}),ue=Ce(T,`${T}-${s}`,{[`${T}-collapsed`]:!!_,[`${T}-has-trigger`]:c&&i!==null&&!G,[`${T}-below`]:!!x,[`${T}-zero-width`]:parseFloat(B)===0},r,I,N),ee=h.useMemo(()=>({siderCollapsed:_}),[_]);return A(h.createElement(GP.Provider,{value:ee},h.createElement("aside",Object.assign({className:ue},k,{style:Q,ref:t}),h.createElement("div",{className:`${T}-children`},o),c||x&&G?X:null)))});var hot={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"},mot=function(t,n){return h.createElement(Mn,Xe({},t,{ref:n,icon:hot}))},hY=h.forwardRef(mot);const H4=h.createContext({prefixCls:"",firstLevel:!0,inlineCollapsed:!1});var got=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const aCe=e=>{const{prefixCls:t,className:n,dashed:r}=e,i=got(e,["prefixCls","className","dashed"]),{getPrefixCls:o}=h.useContext(cn),a=o("menu",t),s=Ce({[`${a}-item-divider-dashed`]:!!r},n);return h.createElement(fY,Object.assign({className:s},i))},sCe=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}=h.useContext(H4),p=_=>{const S=r==null?void 0:r[0],x=h.createElement("span",{className:Ce(`${l}-title-content`,{[`${l}-title-content-with-extra`]:!!s||s===0})},r);return(!i||h.isValidElement(r)&&r.type==="span")&&r&&_&&c&&typeof S=="string"?h.createElement("div",{className:`${l}-inline-collapsed-noicon`},S.charAt(0)):x},{siderCollapsed:m}=h.useContext(GP);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=Do(r).length;let b=h.createElement(p2,Object.assign({},ur(e,["title","icon","danger"]),{className:Ce({[`${l}-item-danger`]:a,[`${l}-item-only-child`]:(i?y+1:y)===1},n),title:typeof o=="string"?o:void 0}),wo(i,{className:Ce(h.isValidElement(i)?(t=i.props)===null||t===void 0?void 0:t.className:"",`${l}-item-icon`)}),p(f));return d||(b=h.createElement(Na,Object.assign({},v,{placement:u==="rtl"?"left":"right",classNames:{root:`${l}-inline-collapsed-tooltip`}}),b)),b};var vot=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);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 j4=h.createContext(null),lCe=h.forwardRef((e,t)=>{const{children:n}=e,r=vot(e,["children"]),i=h.useContext(j4),o=h.useMemo(()=>Object.assign(Object.assign({},i),r),[i,r.prefixCls,r.mode,r.selectable,r.rootClassName]),a=qGe(n),s=Bd(t,a?Rg(n):null);return h.createElement(j4.Provider,{value:o},h.createElement(Ad,{space:!0},a?h.cloneElement(n,{ref:s}):n))}),bot=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:`${Ie(o)} ${a} ${i}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${t}-item, ${t}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline: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"}}}},yot=({componentCls:e,menuArrowOffset:t,calc:n})=>({[`${e}-rtl`]:{direction:"rtl"},[`${e}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${e}-rtl${e}-vertical,
${e}-submenu-rtl ${e}-vertical`]:{[`${e}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(${Ie(n(t).mul(-1).equal())})`},"&::after":{transform:`rotate(45deg) translateY(${Ie(t)})`}}}}),yie=e=>Object.assign({},wd(e)),_ie=(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:p,motionEaseInOut:m,motionEaseOut:g,itemPaddingInline:v,motionDurationMid:y,itemHoverColor:b,lineType:_,colorSplit:S,itemDisabledColor:x,dangerItemColor:E,dangerItemHoverColor:C,dangerItemSelectedColor:w,dangerItemActiveBg:O,dangerItemSelectedBg:T,popupBg:A,itemHoverBg:I,itemActiveBg:N,menuSubMenuBg:D,horizontalItemSelectedColor:M,horizontalItemSelectedBg:k,horizontalItemBorderRadius:P,horizontalItemHoverBg:B}=e;return{[`${n}-${t}, ${n}-${t} > ${n}`]:{color:r,background:s,[`&${n}-root:focus-visible`]:Object.assign({},yie(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({},yie(e))},[`${n}-item-disabled, ${n}-submenu-disabled`]:{color:`${x} !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:N}},[`${n}-submenu-title`]:{"&:hover":{backgroundColor:I},"&:active":{backgroundColor:N}}},[`${n}-item-danger`]:{color:E,[`&${n}-item:hover`]:{[`&:not(${n}-item-selected):not(${n}-submenu-selected)`]:{color:C}},[`&${n}-item:active`]:{background:O}},[`${n}-item a`]:{"&, &:hover":{color:"inherit"}},[`${n}-item-selected`]:{color:i,[`&${n}-item-danger`]:{color:w},"a, a:hover":{color:"inherit"}},[`& ${n}-item-selected`]:{backgroundColor:c,[`&${n}-item-danger`]:{backgroundColor:T}},[`&${n}-submenu > ${n}`]:{backgroundColor:D},[`&${n}-popup > ${n}`]:{backgroundColor:A},[`&${n}-submenu-popup > ${n}`]:{backgroundColor:A},[`&${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:P,"&::after":{position:"absolute",insetInline:v,bottom:0,borderBottom:`${Ie(u)} solid transparent`,transition:`border-color ${p} ${m}`,content:'""'},"&:hover, &-active, &-open":{background:B,"&::after":{borderBottomWidth:u,borderBottomColor:M}},"&-selected":{color:M,backgroundColor:k,"&:hover":{backgroundColor:k},"&::after":{borderBottomWidth:u,borderBottomColor:M}}}}),[`&${n}-root`]:{[`&${n}-inline, &${n}-vertical`]:{borderInlineEnd:`${Ie(f)} ${_} ${S}`}},[`&${n}-inline`]:{[`${n}-sub${n}-inline`]:{background:l},[`${n}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${Ie(d)} solid ${i}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${y} ${g}`,`opacity ${y} ${g}`].join(","),content:'""'},[`&${n}-item-danger`]:{"&::after":{borderInlineEndColor:w}}},[`${n}-selected, ${n}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${y} ${m}`,`opacity ${y} ${m}`].join(",")}}}}}},Sie=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:Ie(n),paddingInline:c,overflow:"hidden",textOverflow:"ellipsis",marginInline:r,marginBlock:s,width:l},[`> ${t}-item,
> ${t}-submenu > ${t}-submenu-title`]:{height:n,lineHeight:Ie(n)},[`${t}-item-group-list ${t}-submenu-title,
${t}-submenu-title`]:{paddingInlineEnd:u}}},_ot=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:p,boxShadowSecondary:m,collapsedWidth:g,collapsedIconSize:v}=e,y={height:r,lineHeight:Ie(r),listStylePosition:"inside",listStyleType:"disc"};return[{[t]:{"&-inline, &-vertical":Object.assign({[`&${t}-root`]:{boxShadow:"none"}},Sie(e))},[`${t}-submenu-popup`]:{[`${t}-vertical`]:Object.assign(Object.assign({},Sie(e)),{boxShadow:m})}},{[`${t}-submenu-popup ${t}-vertical${t}-sub`]:{minWidth:o,maxHeight:`calc(100vh - ${Ie(e.calc(a).mul(2.5).equal())})`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${t}-inline`]:{width:"100%",[`&${t}-root`]:{[`${t}-item, ${t}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${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% - ${Ie(e.calc(v).div(2).equal())} - ${Ie(c)})`,textOverflow:"clip",[`
${t}-submenu-arrow,
${t}-submenu-expand-icon
`]:{opacity:0},[`${t}-item-icon, ${n}`]:{margin:0,fontSize:v,lineHeight:Ie(r),"+ span":{display:"inline-block",opacity:0}}},[`${t}-item-icon, ${n}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${t}-item-icon, ${n}`]:{display:"none"},"a, a:hover":{color:i}},[`${t}-item-group-title`]:Object.assign(Object.assign({},Hl),{paddingInline:p})}}]},Eie=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({},gv()),[`&${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"}}}},Cie=e=>{const{componentCls:t,motionDurationSlow:n,motionEaseInOut:r,borderRadius:i,menuArrowSize:o,menuArrowOffset:a}=e;return{[`${t}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:e.margin,width:o,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${n} ${r}, opacity ${n}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:e.calc(o).mul(.6).equal(),height:e.calc(o).mul(.15).equal(),backgroundColor:"currentcolor",borderRadius:i,transition:[`background ${n} ${r}`,`transform ${n} ${r}`,`top ${n} ${r}`,`color ${n} ${r}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(${Ie(e.calc(a).mul(-1).equal())})`},"&::after":{transform:`rotate(-45deg) translateY(${Ie(a)})`}}}}},Sot=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:p,menuArrowSize:m,menuArrowOffset:g,lineType:v,groupTitleLineHeight:y,groupTitleFontSize:b}=e;return[{"":{[n]:Object.assign(Object.assign({},xd()),{"&-hidden":{display:"none"}})},[`${n}-submenu-hidden`]:{display:"none"}},{[n]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},mr(e)),xd()),{marginBottom:0,paddingInlineStart:0,fontSize:r,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${i} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${n}-item`]:{flex:"none"}},[`${n}-item, ${n}-submenu, ${n}-submenu-title`]:{borderRadius:e.itemBorderRadius},[`${n}-item-group-title`]:{padding:`${Ie(s)} ${Ie(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"}}}),Eie(e)),{[`${n}-item-group`]:{[`${n}-item-group-list`]:{margin:0,padding:0,[`${n}-item, ${n}-submenu-title`]:{paddingInline:`${Ie(e.calc(r).mul(2).equal())} ${Ie(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},Eie(e)),Cie(e)),{[`${n}-item, ${n}-submenu > ${n}-submenu-title`]:{borderRadius:p},[`${n}-submenu-title::after`]:{transition:`transform ${i} ${a}`}})},"\n &-placement-leftTop,\n &-placement-bottomRight,\n ":{transformOrigin:"100% 0"},"\n &-placement-leftBottom,\n &-placement-topRight,\n ":{transformOrigin:"100% 100%"},"\n &-placement-rightBottom,\n &-placement-topLeft,\n ":{transformOrigin:"0 100%"},"\n &-placement-bottomLeft,\n &-placement-rightTop,\n ":{transformOrigin:"0 0"},"\n &-placement-leftTop,\n &-placement-leftBottom\n ":{paddingInlineEnd:e.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:e.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:e.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:e.paddingXS}}}),Cie(e)),{[`&-inline-collapsed ${n}-submenu-arrow,
&-inline ${n}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${Ie(g)})`},"&::after":{transform:`rotate(45deg) translateX(${Ie(e.calc(g).mul(-1).equal())})`}},[`${n}-submenu-open${n}-submenu-inline > ${n}-submenu-title > ${n}-submenu-arrow`]:{transform:`translateY(${Ie(e.calc(m).mul(.2).mul(-1).equal())})`,"&::after":{transform:`rotate(-45deg) translateX(${Ie(e.calc(g).mul(-1).equal())})`},"&::before":{transform:`rotate(45deg) translateX(${Ie(g)})`}}})},{[`${t}-layout-header`]:{[n]:{lineHeight:"inherit"}}}]},Eot=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:p,lineWidthBold:m,controlItemBgActive:g,colorBgTextHover:v,controlHeightLG:y,lineHeight:b,colorBgElevated:_,marginXXS:S,padding:x,fontSize:E,controlHeightSM:C,fontSizeLG:w,colorTextLightSolid:O,colorErrorHover:T}=e,A=(t=e.activeBarWidth)!==null&&t!==void 0?t:0,I=(n=e.activeBarBorderWidth)!==null&&n!==void 0?n:p,N=(r=e.itemMarginInline)!==null&&r!==void 0?r:e.marginXXS,D=new or(O).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:A,colorActiveBarHeight:m,activeBarHeight:m,colorActiveBarBorderSize:p,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:N,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:y,groupTitleLineHeight:b,collapsedWidth:y*2,popupBg:_,itemMarginBlock:S,itemPaddingInline:x,horizontalLineHeight:`${y*1.15}px`,iconSize:E,iconMarginInlineEnd:C-E,collapsedIconSize:w,groupTitleFontSize:E,darkItemDisabledColor:new or(O).setA(.25).toRgbString(),darkItemColor:D,darkDangerItemColor:o,darkItemBg:"#001529",darkPopupBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:O,darkItemSelectedBg:i,darkDangerItemSelectedBg:o,darkItemHoverBg:"transparent",darkGroupTitleColor:D,darkItemHoverColor:O,darkDangerItemHoverColor:T,darkDangerItemSelectedColor:O,darkDangerItemActiveBg:o,itemWidth:A?`calc(100% + ${I}px)`:`calc(100% - ${N*2}px)`}},Cot=(e,t=e,n=!0)=>ir("Menu",i=>{const{colorBgElevated:o,controlHeightLG:a,fontSize:s,darkItemColor:l,darkDangerItemColor:c,darkItemBg:u,darkSubMenuItemBg:d,darkItemSelectedColor:f,darkItemSelectedBg:p,darkDangerItemSelectedBg:m,darkItemHoverBg:g,darkGroupTitleColor:v,darkItemHoverColor:y,darkItemDisabledColor:b,darkDangerItemHoverColor:_,darkDangerItemSelectedColor:S,darkDangerItemActiveBg:x,popupBg:E,darkPopupBg:C}=i,w=i.calc(s).div(7).mul(5).equal(),O=Un(i,{menuArrowSize:w,menuHorizontalHeight:i.calc(a).mul(1.15).equal(),menuArrowOffset:i.calc(w).mul(.25).equal(),menuSubMenuBg:o,calc:i.calc,popupBg:E}),T=Un(O,{itemColor:l,itemHoverColor:y,groupTitleColor:v,itemSelectedColor:f,subMenuItemSelectedColor:f,itemBg:u,popupBg:C,subMenuItemBg:d,itemActiveBg:"transparent",itemSelectedBg:p,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:g,itemDisabledColor:b,dangerItemColor:c,dangerItemHoverColor:_,dangerItemSelectedColor:S,dangerItemActiveBg:x,dangerItemSelectedBg:m,menuSubMenuBg:d,horizontalItemSelectedColor:f,horizontalItemSelectedBg:p});return[Sot(O),bot(O),_ot(O),_ie(O,"light"),_ie(T,"dark"),yot(O),r2(O),Lf(O,"slide-up"),Lf(O,"slide-down"),pS(O,"zoom-big")]},Eot,{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),cCe=e=>{var t;const{popupClassName:n,icon:r,title:i,theme:o}=e,a=h.useContext(H4),{prefixCls:s,inlineCollapsed:l,theme:c}=a,u=vS();let d;if(!r)d=l&&!u.length&&i&&typeof i=="string"?h.createElement("div",{className:`${s}-inline-collapsed-noicon`},i.charAt(0)):h.createElement("span",{className:`${s}-title-content`},i);else{const m=h.isValidElement(i)&&i.type==="span";d=h.createElement(h.Fragment,null,wo(r,{className:Ce(h.isValidElement(r)?(t=r.props)===null||t===void 0?void 0:t.className:"",`${s}-item-icon`)}),m?i:h.createElement("span",{className:`${s}-title-content`},i))}const f=h.useMemo(()=>Object.assign(Object.assign({},a),{firstLevel:!1}),[a]),[p]=Ou("Menu");return h.createElement(H4.Provider,{value:f},h.createElement(VP,Object.assign({},ur(e,["icon"]),{title:d,popupClassName:Ce(s,n,`${s}-${o||c}`),popupStyle:Object.assign({zIndex:p},e.popupStyle)})))};var xot=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);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 cL(e){return e===null||e===!1}const wot={item:sCe,submenu:cCe,divider:aCe},Tot=h.forwardRef((e,t)=>{var n;const r=h.useContext(j4),i=r||{},{getPrefixCls:o,getPopupContainer:a,direction:s,menu:l}=h.useContext(cn),c=o(),{prefixCls:u,className:d,style:f,theme:p="light",expandIcon:m,_internalDisableMenuItemTitleTooltip:g,inlineCollapsed:v,siderCollapsed:y,rootClassName:b,mode:_,selectable:S,onClick:x,overflowedIndicatorPopupClassName:E}=e,C=xot(e,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),w=ur(C,["collapsedWidth"]);(n=i.validator)===null||n===void 0||n.call(i,{mode:_});const O=qn((...j)=>{var H;x==null||x.apply(void 0,j),(H=i.onClick)===null||H===void 0||H.call(i)}),T=i.mode||_,A=S??i.selectable,I=v??y,N={horizontal:{motionName:`${c}-slide-up`},inline:f_(c),other:{motionName:`${c}-zoom-big`}},D=o("menu",u||i.prefixCls),M=gi(D),[k,P,B]=Cot(D,M,!r),G=Ce(`${D}-${p}`,l==null?void 0:l.className,d),L=h.useMemo(()=>{var j,H;if(typeof m=="function"||cL(m))return m||null;if(typeof i.expandIcon=="function"||cL(i.expandIcon))return i.expandIcon||null;if(typeof(l==null?void 0:l.expandIcon)=="function"||cL(l==null?void 0:l.expandIcon))return(l==null?void 0:l.expandIcon)||null;const X=(j=m??(i==null?void 0:i.expandIcon))!==null&&j!==void 0?j:l==null?void 0:l.expandIcon;return wo(X,{className:Ce(`${D}-submenu-expand-icon`,h.isValidElement(X)?(H=X.props)===null||H===void 0?void 0:H.className:void 0)})},[m,i==null?void 0:i.expandIcon,l==null?void 0:l.expandIcon,D]),W=h.useMemo(()=>({prefixCls:D,inlineCollapsed:I||!1,direction:s,firstLevel:!0,theme:p,mode:T,disableMenuItemTitleTooltip:g}),[D,I,s,g,p]);return k(h.createElement(j4.Provider,{value:null},h.createElement(H4.Provider,{value:W},h.createElement(bS,Object.assign({getPopupContainer:a,overflowedIndicator:h.createElement(hY,null),overflowedIndicatorPopupClassName:Ce(D,`${D}-${p}`,E),mode:T,selectable:A,onClick:O},w,{inlineCollapsed:I,style:Object.assign(Object.assign({},l==null?void 0:l.style),f),className:G,prefixCls:D,direction:s,defaultMotions:N,expandIcon:L,ref:t,rootClassName:Ce(b,P,i.rootClassName,B,M),_internalComponents:wot})))))}),Hd=h.forwardRef((e,t)=>{const n=h.useRef(null),r=h.useContext(GP);return h.useImperativeHandle(t,()=>({menu:n.current,focus:i=>{var o;(o=n.current)===null||o===void 0||o.focus(i)}})),h.createElement(Tot,Object.assign({ref:n},e,r))});Hd.Item=sCe;Hd.SubMenu=cCe;Hd.Divider=aCe;Hd.ItemGroup=pY;const Oot=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}}}}}},Rot=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:p,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:p}},[`${t}-wrap`]:{position:"relative",[`${a}-btn > ${s}-down`]:{fontSize:p},[`${s}-down::before`]:{transition:`transform ${l}`}},[`${t}-wrap-open`]:{[`${s}-down::before`]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},[`&${a}-slide-down-enter${a}-slide-down-enter-active${t}-placement-bottomLeft,
&${a}-slide-down-appear${a}-slide-down-appear-active${t}-placement-bottomLeft,
&${a}-slide-down-enter${a}-slide-down-enter-active${t}-placement-bottom,
&${a}-slide-down-appear${a}-slide-down-appear-active${t}-placement-bottom,
&${a}-slide-down-enter${a}-slide-down-enter-active${t}-placement-bottomRight,
&${a}-slide-down-appear${a}-slide-down-appear-active${t}-placement-bottomRight`]:{animationName:EP},[`&${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:xP},[`&${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:CP},[`&${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:wP}}},aY(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({},mr(e)),{[n]:Object.assign(Object.assign({padding:d,listStyleType:"none",backgroundColor:g,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary},tl(e)),{"&:empty":{padding:0,boxShadow:"none"},[`${n}-item-group-title`]:{padding:`${Ie(c)} ${Ie(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:`${Ie(c)} ${Ie(m)}`,color:e.colorText,fontWeight:"normal",fontSize:u,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${l}`,borderRadius:e.borderRadiusSM,"&:hover, &-active":{backgroundColor:e.controlItemBgHover}},tl(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:`${Ie(e.marginXXS)} 0`,overflow:"hidden",lineHeight:0,backgroundColor:e.colorSplit},[`${t}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:e.paddingXS,[`${t}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:e.colorIcon,fontSize:p,fontStyle:"normal"}}}),[`${n}-item-group-list`]:{margin:`0 ${Ie(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}})})},[Lf(e,"slide-up"),Lf(e,"slide-down"),p_(e,"move-up"),p_(e,"move-down"),pS(e,"zoom-big")]]},Aot=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+50,paddingBlock:(e.controlHeight-e.fontSize*e.lineHeight)/2},jP({contentRadius:e.borderRadiusLG,limitVerticalRadius:!0})),HP(e)),Iot=ir("Dropdown",e=>{const{marginXXS:t,sizePopupArrow:n,paddingXXS:r,componentCls:i}=e,o=Un(e,{menuCls:`${i}-menu`,dropdownArrowDistance:e.calc(n).div(2).add(t).equal(),dropdownEdgeChildPadding:r});return[Rot(o),Oot(o)]},Aot,{resetStyle:!1}),h2=e=>{var t;const{menu:n,arrow:r,prefixCls:i,children:o,trigger:a,disabled:s,dropdownRender:l,popupRender:c,getPopupContainer:u,overlayClassName:d,rootClassName:f,overlayStyle:p,open:m,onOpenChange:g,visible:v,onVisibleChange:y,mouseEnterDelay:b=.15,mouseLeaveDelay:_=.1,autoAdjustOverflow:S=!0,placement:x="",overlay:E,transitionName:C,destroyOnHidden:w,destroyPopupOnHide:O}=e,{getPopupContainer:T,getPrefixCls:A,direction:I,dropdown:N}=h.useContext(cn),D=c||l;Wf();const M=h.useMemo(()=>{const ve=A();return C!==void 0?C:x.includes("top")?`${ve}-slide-down`:`${ve}-slide-up`},[A,x,C]),k=h.useMemo(()=>x?x.includes("Center")?x.slice(0,x.indexOf("Center")):x:I==="rtl"?"bottomRight":"bottomLeft",[x,I]),P=A("dropdown",i),B=gi(P),[G,L,W]=Iot(P,B),[,j]=Ko(),H=h.Children.only(xit(o)?h.createElement("span",null,o):o),X=wo(H,{className:Ce(`${P}-trigger`,{[`${P}-rtl`]:I==="rtl"},H.props.className),disabled:(t=H.props.disabled)!==null&&t!==void 0?t:s}),Q=s?[]:a,ue=!!(Q!=null&&Q.includes("contextMenu")),[ee,K]=Pn(!1,{value:m??v}),se=qn(ve=>{g==null||g(ve,{source:"trigger"}),y==null||y(ve),K(ve)}),le=Ce(d,f,L,W,B,N==null?void 0:N.className,{[`${P}-rtl`]:I==="rtl"}),oe=PEe({arrowPointAtCenter:typeof r=="object"&&r.pointAtCenter,autoAdjustOverflow:S,offset:j.marginXXS,arrowWidth:r?j.sizePopupArrow:0,borderRadius:j.borderRadius}),ne=h.useCallback(()=>{n!=null&&n.selectable&&(n!=null&&n.multiple)||(g==null||g(!1,{source:"menu"}),K(!1))},[n==null?void 0:n.selectable,n==null?void 0:n.multiple]),he=()=>{let ve;return n!=null&&n.items?ve=h.createElement(Hd,Object.assign({},n)):typeof E=="function"?ve=E():ve=E,D&&(ve=D(ve)),ve=h.Children.only(typeof ve=="string"?h.createElement("span",null,ve):ve),h.createElement(lCe,{prefixCls:`${P}-menu`,rootClassName:Ce(W,B),expandIcon:h.createElement("span",{className:`${P}-menu-submenu-arrow`},I==="rtl"?h.createElement(sh,{className:`${P}-menu-submenu-arrow-icon`}):h.createElement(Rd,{className:`${P}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:ne,validator:({mode:be})=>{}},ve)},[me,ce]=Ou("Dropdown",p==null?void 0:p.zIndex);let re=h.createElement(UEe,Object.assign({alignPoint:ue},ur(e,["rootClassName"]),{mouseEnterDelay:b,mouseLeaveDelay:_,visible:ee,builtinPlacements:oe,arrow:!!r,overlayClassName:le,prefixCls:P,getPopupContainer:u||T,transitionName:M,trigger:Q,overlay:he,placement:k,onVisibleChange:se,overlayStyle:Object.assign(Object.assign(Object.assign({},N==null?void 0:N.style),p),{zIndex:me}),autoDestroy:w??O}),X);return me&&(re=h.createElement(e2.Provider,{value:ce},re)),G(re)},Not=Ig(h2,"align",void 0,"dropdown",e=>e),Mot=e=>h.createElement(Not,Object.assign({},e),h.createElement("span",null));h2._InternalPanelDoNotUseOrYouWillBeFired=Mot;const WP=({children:e})=>{const{getPrefixCls:t}=h.useContext(cn),n=t("breadcrumb");return h.createElement("li",{className:`${n}-separator`,"aria-hidden":"true"},e===""?e:e||"/")};WP.__ANT_BREADCRUMB_SEPARATOR=!0;var kot=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);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 Pot(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 uCe(e,t,n,r){if(n==null)return null;const{className:i,onClick:o}=t,a=kot(t,["className","onClick"]),s=Object.assign(Object.assign({},Oi(a,{data:!0,aria:!0})),{onClick:o});return r!==void 0?h.createElement("a",Object.assign({},s,{className:Ce(`${e}-link`,i),href:r}),n):h.createElement("span",Object.assign({},s,{className:Ce(`${e}-link`,i)}),n)}function Dot(e,t){return(r,i,o,a,s)=>{if(t)return t(r,i,o,a);const l=Pot(r,i);return uCe(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 dCe=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:p}=f,m=KH(f,["items"]);d.menu=Object.assign(Object.assign({},m),{items:p==null?void 0:p.map((g,v)=>{var{key:y,title:b,label:_,path:S}=g,x=KH(g,["key","title","label","path"]);let E=_??b;return S&&(E=h.createElement("a",{href:`${s}${S}`},E)),Object.assign(Object.assign({},x),{key:y??v,label:E})})})}else o&&(d.overlay=o);return h.createElement(h2,Object.assign({placement:"bottom"},d),h.createElement("span",{className:`${t}-overlay-link`},u,h.createElement(d2,null)))}return u})(r);return c!=null?h.createElement(h.Fragment,null,h.createElement("li",null,c),n&&h.createElement(WP,null,n)):null},fCe=e=>{const{prefixCls:t,children:n,href:r}=e,i=KH(e,["prefixCls","children","href"]),{getPrefixCls:o}=h.useContext(cn),a=o("breadcrumb",t);return h.createElement(dCe,Object.assign({},i,{prefixCls:a}),uCe(a,i,n,r))};fCe.__ANT_BREADCRUMB_ITEM=!0;const Lot=e=>{const{componentCls:t,iconCls:n,calc:r}=e;return{[t]:Object.assign(Object.assign({},mr(e)),{color:e.itemColor,fontSize:e.fontSize,[n]:{fontSize:e.iconFontSize},ol:{display:"flex",flexWrap:"wrap",margin:0,padding:0,listStyle:"none"},a:Object.assign({color:e.linkColor,transition:`color ${e.motionDurationMid}`,padding:`0 ${Ie(e.paddingXXS)}`,borderRadius:e.borderRadiusSM,height:e.fontHeight,display:"inline-block",marginInline:r(e.marginXXS).mul(-1).equal(),"&:hover":{color:e.linkHoverColor,backgroundColor:e.colorBgTextHover}},tl(e)),"li:last-child":{color:e.lastItemColor},[`${t}-separator`]:{marginInline:e.separatorMargin,color:e.separatorColor},[`${t}-link`]:{[`
> ${n} + span,
> ${n} + a
`]:{marginInlineStart:e.marginXXS}},[`${t}-overlay-link`]:{borderRadius:e.borderRadiusSM,height:e.fontHeight,display:"inline-block",padding:`0 ${Ie(e.paddingXXS)}`,marginInline:r(e.marginXXS).mul(-1).equal(),[`> ${n}`]:{marginInlineStart:e.marginXXS,fontSize:e.fontSizeIcon},"&:hover":{color:e.linkHoverColor,backgroundColor:e.colorBgTextHover,a:{color:e.linkHoverColor}},a:{"&:hover":{backgroundColor:"transparent"}}},[`&${e.componentCls}-rtl`]:{direction:"rtl"}})}},$ot=e=>({itemColor:e.colorTextDescription,lastItemColor:e.colorText,iconFontSize:e.fontSize,linkColor:e.colorTextDescription,linkHoverColor:e.colorText,separatorColor:e.colorTextDescription,separatorMargin:e.marginXS}),Fot=ir("Breadcrumb",e=>{const t=Un(e,{});return Lot(t)},$ot);var xie=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);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 Bot(e){const{breadcrumbName:t,children:n}=e,r=xie(e,["breadcrumbName","children"]),i=Object.assign({title:t},r);return n&&(i.menu={items:n.map(o=>{var{breadcrumbName:a}=o,s=xie(o,["breadcrumbName"]);return Object.assign(Object.assign({},s),{title:a})})}),i}function Hot(e,t){return h.useMemo(()=>e||(t?t.map(Bot):null),[e,t])}var jot=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const Uot=(e,t)=>{if(t===void 0)return t;let n=(t||"").replace(/^\//,"");return Object.keys(e).forEach(r=>{n=n.replace(`:${r}`,e[r])}),n},mY=e=>{const{prefixCls:t,separator:n="/",style:r,className:i,rootClassName:o,routes:a,items:s,children:l,itemRender:c,params:u={}}=e,d=jot(e,["prefixCls","separator","style","className","rootClassName","routes","items","children","itemRender","params"]),{getPrefixCls:f,direction:p,breadcrumb:m}=h.useContext(cn);let g;const v=f("breadcrumb",t),[y,b,_]=Fot(v),S=Hot(s,a),x=Dot(v,c);if(S&&S.length>0){const w=[],O=s||a;g=S.map((T,A)=>{const{path:I,key:N,type:D,menu:M,overlay:k,onClick:P,className:B,separator:G,dropdownProps:L}=T,W=Uot(u,I);W!==void 0&&w.push(W);const j=N??A;if(D==="separator")return h.createElement(WP,{key:j},G);const H={},X=A===S.length-1;M?H.menu=M:k&&(H.overlay=k);let{href:Q}=T;return w.length&&W!==void 0&&(Q=`#/${w.join("/")}`),h.createElement(dCe,Object.assign({key:j},H,Oi(T,{data:!0,aria:!0}),{className:B,dropdownProps:L,href:Q,separator:X?"":n,onClick:P,prefixCls:v}),x(T,u,O,w,Q))})}else if(l){const w=Do(l).length;g=Do(l).map((O,T)=>{if(!O)return O;const A=T===w-1;return wo(O,{separator:A?"":n,key:T})})}const E=Ce(v,m==null?void 0:m.className,{[`${v}-rtl`]:p==="rtl"},i,o,b,_),C=Object.assign(Object.assign({},m==null?void 0:m.style),r);return y(h.createElement("nav",Object.assign({className:E,style:C},d),h.createElement("ol",null,g)))};mY.Item=fCe;mY.Separator=WP;var pCe={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(Wn,function(){var n=1e3,r=6e4,i=36e5,o="millisecond",a="second",s="minute",l="hour",c="day",u="week",d="month",f="quarter",p="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(D){var M=["th","st","nd","rd"],k=D%100;return"["+D+(M[(k-20)%10]||M[k]||M[0])+"]"}},_=function(D,M,k){var P=String(D);return!P||P.length>=M?D:""+Array(M+1-P.length).join(k)+D},S={s:_,z:function(D){var M=-D.utcOffset(),k=Math.abs(M),P=Math.floor(k/60),B=k%60;return(M<=0?"+":"-")+_(P,2,"0")+":"+_(B,2,"0")},m:function D(M,k){if(M.date()<k.date())return-D(k,M);var P=12*(k.year()-M.year())+(k.month()-M.month()),B=M.clone().add(P,d),G=k-B<0,L=M.clone().add(P+(G?-1:1),d);return+(-(P+(k-B)/(G?B-L:L-B))||0)},a:function(D){return D<0?Math.ceil(D)||0:Math.floor(D)},p:function(D){return{M:d,y:p,w:u,d:c,D:m,h:l,m:s,s:a,ms:o,Q:f}[D]||String(D||"").toLowerCase().replace(/s$/,"")},u:function(D){return D===void 0}},x="en",E={};E[x]=b;var C="$isDayjsObject",w=function(D){return D instanceof I||!(!D||!D[C])},O=function D(M,k,P){var B;if(!M)return x;if(typeof M=="string"){var G=M.toLowerCase();E[G]&&(B=G),k&&(E[G]=k,B=G);var L=M.split("-");if(!B&&L.length>1)return D(L[0])}else{var W=M.name;E[W]=M,B=W}return!P&&B&&(x=B),B||!P&&x},T=function(D,M){if(w(D))return D.clone();var k=typeof M=="object"?M:{};return k.date=D,k.args=arguments,new I(k)},A=S;A.l=O,A.i=w,A.w=function(D,M){return T(D,{locale:M.$L,utc:M.$u,x:M.$x,$offset:M.$offset})};var I=function(){function D(k){this.$L=O(k.locale,null,!0),this.parse(k),this.$x=this.$x||k.x||{},this[C]=!0}var M=D.prototype;return M.parse=function(k){this.$d=function(P){var B=P.date,G=P.utc;if(B===null)return new Date(NaN);if(A.u(B))return new Date;if(B instanceof Date)return new Date(B);if(typeof B=="string"&&!/Z$/i.test(B)){var L=B.match(v);if(L){var W=L[2]-1||0,j=(L[7]||"0").substring(0,3);return G?new Date(Date.UTC(L[1],W,L[3]||1,L[4]||0,L[5]||0,L[6]||0,j)):new Date(L[1],W,L[3]||1,L[4]||0,L[5]||0,L[6]||0,j)}}return new Date(B)}(k),this.init()},M.init=function(){var k=this.$d;this.$y=k.getFullYear(),this.$M=k.getMonth(),this.$D=k.getDate(),this.$W=k.getDay(),this.$H=k.getHours(),this.$m=k.getMinutes(),this.$s=k.getSeconds(),this.$ms=k.getMilliseconds()},M.$utils=function(){return A},M.isValid=function(){return this.$d.toString()!==g},M.isSame=function(k,P){var B=T(k);return this.startOf(P)<=B&&B<=this.endOf(P)},M.isAfter=function(k,P){return T(k)<this.startOf(P)},M.isBefore=function(k,P){return this.endOf(P)<T(k)},M.$g=function(k,P,B){return A.u(k)?this[P]:this.set(B,k)},M.unix=function(){return Math.floor(this.valueOf()/1e3)},M.valueOf=function(){return this.$d.getTime()},M.startOf=function(k,P){var B=this,G=!!A.u(P)||P,L=A.p(k),W=function(se,le){var oe=A.w(B.$u?Date.UTC(B.$y,le,se):new Date(B.$y,le,se),B);return G?oe:oe.endOf(c)},j=function(se,le){return A.w(B.toDate()[se].apply(B.toDate("s"),(G?[0,0,0,0]:[23,59,59,999]).slice(le)),B)},H=this.$W,X=this.$M,Q=this.$D,ue="set"+(this.$u?"UTC":"");switch(L){case p:return G?W(1,0):W(31,11);case d:return G?W(1,X):W(0,X+1);case u:var ee=this.$locale().weekStart||0,K=(H<ee?H+7:H)-ee;return W(G?Q-K:Q+(6-K),X);case c:case m:return j(ue+"Hours",0);case l:return j(ue+"Minutes",1);case s:return j(ue+"Seconds",2);case a:return j(ue+"Milliseconds",3);default:return this.clone()}},M.endOf=function(k){return this.startOf(k,!1)},M.$set=function(k,P){var B,G=A.p(k),L="set"+(this.$u?"UTC":""),W=(B={},B[c]=L+"Date",B[m]=L+"Date",B[d]=L+"Month",B[p]=L+"FullYear",B[l]=L+"Hours",B[s]=L+"Minutes",B[a]=L+"Seconds",B[o]=L+"Milliseconds",B)[G],j=G===c?this.$D+(P-this.$W):P;if(G===d||G===p){var H=this.clone().set(m,1);H.$d[W](j),H.init(),this.$d=H.set(m,Math.min(this.$D,H.daysInMonth())).$d}else W&&this.$d[W](j);return this.init(),this},M.set=function(k,P){return this.clone().$set(k,P)},M.get=function(k){return this[A.p(k)]()},M.add=function(k,P){var B,G=this;k=Number(k);var L=A.p(P),W=function(X){var Q=T(G);return A.w(Q.date(Q.date()+Math.round(X*k)),G)};if(L===d)return this.set(d,this.$M+k);if(L===p)return this.set(p,this.$y+k);if(L===c)return W(1);if(L===u)return W(7);var j=(B={},B[s]=r,B[l]=i,B[a]=n,B)[L]||1,H=this.$d.getTime()+k*j;return A.w(H,this)},M.subtract=function(k,P){return this.add(-1*k,P)},M.format=function(k){var P=this,B=this.$locale();if(!this.isValid())return B.invalidDate||g;var G=k||"YYYY-MM-DDTHH:mm:ssZ",L=A.z(this),W=this.$H,j=this.$m,H=this.$M,X=B.weekdays,Q=B.months,ue=B.meridiem,ee=function(le,oe,ne,he){return le&&(le[oe]||le(P,G))||ne[oe].slice(0,he)},K=function(le){return A.s(W%12||12,le,"0")},se=ue||function(le,oe,ne){var he=le<12?"AM":"PM";return ne?he.toLowerCase():he};return G.replace(y,function(le,oe){return oe||function(ne){switch(ne){case"YY":return String(P.$y).slice(-2);case"YYYY":return A.s(P.$y,4,"0");case"M":return H+1;case"MM":return A.s(H+1,2,"0");case"MMM":return ee(B.monthsShort,H,Q,3);case"MMMM":return ee(Q,H);case"D":return P.$D;case"DD":return A.s(P.$D,2,"0");case"d":return String(P.$W);case"dd":return ee(B.weekdaysMin,P.$W,X,2);case"ddd":return ee(B.weekdaysShort,P.$W,X,3);case"dddd":return X[P.$W];case"H":return String(W);case"HH":return A.s(W,2,"0");case"h":return K(1);case"hh":return K(2);case"a":return se(W,j,!0);case"A":return se(W,j,!1);case"m":return String(j);case"mm":return A.s(j,2,"0");case"s":return String(P.$s);case"ss":return A.s(P.$s,2,"0");case"SSS":return A.s(P.$ms,3,"0");case"Z":return L}return null}(le)||L.replace(":","")})},M.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},M.diff=function(k,P,B){var G,L=this,W=A.p(P),j=T(k),H=(j.utcOffset()-this.utcOffset())*r,X=this-j,Q=function(){return A.m(L,j)};switch(W){case p:G=Q()/12;break;case d:G=Q();break;case f:G=Q()/3;break;case u:G=(X-H)/6048e5;break;case c:G=(X-H)/864e5;break;case l:G=X/i;break;case s:G=X/r;break;case a:G=X/n;break;default:G=X}return B?G:A.a(G)},M.daysInMonth=function(){return this.endOf(d).$D},M.$locale=function(){return E[this.$L]},M.locale=function(k,P){if(!k)return this.$L;var B=this.clone(),G=O(k,P,!0);return G&&(B.$L=G),B},M.clone=function(){return A.w(this.$d,this)},M.toDate=function(){return new Date(this.valueOf())},M.toJSON=function(){return this.isValid()?this.toISOString():null},M.toISOString=function(){return this.$d.toISOString()},M.toString=function(){return this.$d.toUTCString()},D}(),N=I.prototype;return T.prototype=N,[["$ms",o],["$s",a],["$m",s],["$H",l],["$W",c],["$M",d],["$y",p],["$D",m]].forEach(function(D){N[D[1]]=function(M){return this.$g(M,D[0],D[1])}}),T.extend=function(D,M){return D.$i||(D(M,I,T),D.$i=!0),T},T.locale=O,T.isDayjs=w,T.unix=function(D){return T(1e3*D)},T.en=E[x],T.Ls=E,T.p={},T})})(pCe);var hCe=pCe.exports;const Sr=oi(hCe);var mCe={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(Wn,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")}}})})(mCe);var zot=mCe.exports;const gCe=oi(zot);var vCe={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(Wn,function(){return function(n,r,i){var o=r.prototype,a=function(d){return d&&(d.indexOf?d:d.s)},s=function(d,f,p,m,g){var v=d.name?d:d.$locale(),y=a(v[f]),b=a(v[p]),_=y||b.map(function(x){return x.slice(0,m)});if(!g)return _;var S=v.weekStart;return _.map(function(x,E){return _[(E+(S||0))%7]})},l=function(){return i.Ls[i.locale()]},c=function(d,f){return d.formats[f]||function(p){return p.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)}}})})(vCe);var Vot=vCe.exports;const bCe=oi(Vot);var yCe={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(Wn,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"),p=this.diff(f,n,!0);return p<0?a(this).startOf("week").week():Math.ceil(p)},s.weeks=function(l){return l===void 0&&(l=null),this.week(l)}}})})(yCe);var Got=yCe.exports;const gY=oi(Got);var _Ce={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(Wn,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}}})})(_Ce);var Wot=_Ce.exports;const qot=oi(Wot);var SCe={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(Wn,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)}}})})(SCe);var Yot=SCe.exports;const ECe=oi(Yot);var CCe={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(Wn,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))},p=function(v,y){var b,_=l.meridiem;if(_){for(var S=1;S<=24;S+=1)if(v.indexOf(_(S,0,y))>-1){b=S>12;break}}else b=v===(y?"pm":"PM");return b},m={A:[s,function(v){this.afternoon=p(v,!1)}],a:[s,function(v){this.afternoon=p(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(T,A,I){var N=I&&I.toUpperCase();return A||b[I]||n[I]||b[N].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(D,M,k){return M||k.slice(1)})})).match(r),S=_.length,x=0;x<S;x+=1){var E=_[x],C=m[E],w=C&&C[0],O=C&&C[1];_[x]=O?{regex:w,parser:O}:E.replace(/^\[|\]$/g,"")}return function(T){for(var A={},I=0,N=0;I<S;I+=1){var D=_[I];if(typeof D=="string")N+=D.length;else{var M=D.regex,k=D.parser,P=T.slice(N),B=M.exec(P)[0];k.call(A,B),T=T.replace(B,"")}}return function(G){var L=G.afternoon;if(L!==void 0){var W=G.hours;L?W<12&&(G.hours+=12):W===12&&(G.hours=0),delete G.afternoon}}(A),A}}return function(v,y,b){b.p.customParseFormat=!0,v&&v.parseTwoDigitYear&&(c=v.parseTwoDigitYear);var _=y.prototype,S=_.parse;_.parse=function(x){var E=x.date,C=x.utc,w=x.args;this.$u=C;var O=w[1];if(typeof O=="string"){var T=w[2]===!0,A=w[3]===!0,I=T||A,N=w[2];A&&(N=w[2]),l=this.$locale(),!T&&N&&(l=b.Ls[N]),this.$d=function(P,B,G,L){try{if(["x","X"].indexOf(B)>-1)return new Date((B==="X"?1e3:1)*P);var W=g(B)(P),j=W.year,H=W.month,X=W.day,Q=W.hours,ue=W.minutes,ee=W.seconds,K=W.milliseconds,se=W.zone,le=W.week,oe=new Date,ne=X||(j||H?1:oe.getDate()),he=j||oe.getFullYear(),me=0;j&&!H||(me=H>0?H-1:oe.getMonth());var ce,re=Q||0,ve=ue||0,be=ee||0,xe=K||0;return se?new Date(Date.UTC(he,me,ne,re,ve,be,xe+60*se.offset*1e3)):G?new Date(Date.UTC(he,me,ne,re,ve,be,xe)):(ce=new Date(he,me,ne,re,ve,be,xe),le&&(ce=L(ce).week(le).toDate()),ce)}catch{return new Date("")}}(E,O,C,b),this.init(),N&&N!==!0&&(this.$L=this.locale(N).$L),I&&E!=this.format(O)&&(this.$d=new Date("")),l={}}else if(O instanceof Array)for(var D=O.length,M=1;M<=D;M+=1){w[1]=O[M-1];var k=b.apply(this,w);if(k.isValid()){this.$d=k.$d,this.$L=k.$L,this.init();break}M===D&&(this.$d=new Date(""))}else S.call(this,x)}}})})(CCe);var Kot=CCe.exports;const xCe=oi(Kot);Sr.extend(xCe);Sr.extend(ECe);Sr.extend(gCe);Sr.extend(bCe);Sr.extend(gY);Sr.extend(qot);Sr.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 Qot={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"},e0=function(t){var n=Qot[t];return n||t.split("_")[0]},Xot={getNow:function(){var t=Sr();return typeof t.tz=="function"?t.tz():t},getFixedDate:function(t){return Sr(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 Sr().locale(e0(t)).localeData().firstDayOfWeek()},getWeekFirstDate:function(t,n){return n.locale(e0(t)).weekday(0)},getWeek:function(t,n){return n.locale(e0(t)).week()},getShortWeekDays:function(t){return Sr().locale(e0(t)).localeData().weekdaysMin()},getShortMonths:function(t){return Sr().locale(e0(t)).localeData().monthsShort()},format:function(t,n,r){return n.locale(e0(t)).format(r)},parse:function(t,n,r){for(var i=e0(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=Sr(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 p=Sr(s,a,!0).locale(i);if(p.isValid())return p}return null}}};function Zot(e,t){return e!==void 0?e:t?"bottomRight":"bottomLeft"}var jd=h.createContext(null),Jot={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 wCe(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?Jot:u,f=e.direction,p=e.visible,m=e.onClose,g=h.useContext(jd),v=g.prefixCls,y="".concat(v,"-dropdown"),b=Zot(c,f==="rtl");return h.createElement(u2,{showAction:[],hideAction:["click"],popupPlacement:b,builtinPlacements:d,prefixCls:y,popupTransitionName:o,popup:t,popupAlign:i,popupVisible:p,popupClassName:Ce(r,te(te({},"".concat(y,"-range"),l),"".concat(y,"-rtl"),f==="rtl")),popupStyle:n,stretch:"minWidth",getPopupContainer:a,onPopupVisibleChange:function(S){S||m()}},s)}function vY(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 yv(e){return e==null?[]:Array.isArray(e)?e:[e]}function ux(e,t,n){var r=rt(e);return r[t]=n,r}function qP(e,t){var n={},r=t||Object.keys(e);return r.forEach(function(i){e[i]!==void 0&&(n[i]=e[i])}),n}function TCe(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 OCe(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 RCe(e){return qP(e,["placement","builtinPlacements","popupAlign","getPopupContainer","transitionName","direction"])}function bY(e,t,n,r){var i=h.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=h.useCallback(function(a,s){return i(a,z(z({},s),{},{range:r}))},[i,r]);return o}function ACe(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],r=h.useState([!1,!1]),i=Re(r,2),o=i[0],a=i[1],s=function(u,d){a(function(f){return ux(f,d,u)})},l=h.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 ICe(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 eat(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,p=e.yearFormat,m=e.cellYearFormat,g=e.cellQuarterFormat,v=e.dayFormat,y=e.cellDateFormat,b=ICe(t,n,r,i,o);return z(z({},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:p||"YYYY",cellYearFormat:m||"YYYY",cellQuarterFormat:g||"[Q]Q",cellDateFormat:y||v||"D"})}function NCe(e,t){var n=t.showHour,r=t.showMinute,i=t.showSecond,o=t.showMillisecond,a=t.use12Hours;return pe.useMemo(function(){return eat(e,n,r,i,o,a)},[e,n,r,i,o,a])}function DE(e,t,n){return n??t.some(function(r){return e.includes(r)})}var tat=["showNow","showHour","showMinute","showSecond","showMillisecond","use12Hours","hourStep","minuteStep","secondStep","millisecondStep","hideDisabledOptions","defaultValue","disabledHours","disabledMinutes","disabledSeconds","disabledMilliseconds","disabledTime","changeOnScroll","defaultOpenValue"];function nat(e){var t=qP(e,tat),n=e.format,r=e.picker,i=null;return n&&(i=n,Array.isArray(i)&&(i=i[0]),i=qt(i)==="object"?i.format:i),r==="time"&&(t.format=i),[t,i]}function rat(e){return e&&typeof e=="string"}function MCe(e,t,n,r){return[e,t,n,r].some(function(i){return i!==void 0})}function kCe(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}),p=d?!0:!f;o=(l=o)!==null&&l!==void 0?l:p,a=(c=a)!==null&&c!==void 0?c:p,s=(u=s)!==null&&u!==void 0?u:p}return[o,a,s,i]}function PCe(e){var t=e.showTime,n=nat(e),r=Re(n,2),i=r[0],o=r[1],a=t&&qt(t)==="object"?t:{},s=z(z({defaultOpenValue:a.defaultOpenValue||a.defaultValue},i),a),l=s.showMillisecond,c=s.showHour,u=s.showMinute,d=s.showSecond,f=MCe(c,u,d,l),p=kCe(f,c,u,d,l),m=Re(p,3);return c=m[0],u=m[1],d=m[2],[s,z(z({},s),{},{showHour:c,showMinute:u,showSecond:d,showMillisecond:l}),s.format,o]}function DCe(e,t,n,r,i){var o=e==="time";if(e==="datetime"||o){for(var a=r,s=TCe(e,i,null),l=s,c=[t,n],u=0;u<c.length;u+=1){var d=yv(c[u])[0];if(rat(d)){l=d;break}}var f=a.showHour,p=a.showMinute,m=a.showSecond,g=a.showMillisecond,v=a.use12Hours,y=DE(l,["a","A","LT","LLL","LTS"],v),b=MCe(f,p,m,g);b||(f=DE(l,["H","h","k","LT","LLL"]),p=DE(l,["m","LT","LLL"]),m=DE(l,["s","LTS"]),g=DE(l,["SSS"]));var _=kCe(b,f,p,m,g),S=Re(_,3);f=S[0],p=S[1],m=S[2];var x=t||ICe(f,p,m,g,y);return z(z({},a),{},{format:x,showHour:f,showMinute:p,showSecond:m,showMillisecond:g,use12Hours:y})}return null}function iat(e,t,n){if(t===!1)return null;var r=t&&qt(t)==="object"?t:{};return r.clearIcon||n||h.createElement("span",{className:"".concat(e,"-clear-btn")})}var uL=7;function Ng(e,t,n){return!e&&!t||e===t?!0:!e||!t?!1:n()}function QH(e,t,n){return Ng(t,n,function(){var r=Math.floor(e.getYear(t)/10),i=Math.floor(e.getYear(n)/10);return r===i})}function H1(e,t,n){return Ng(t,n,function(){return e.getYear(t)===e.getYear(n)})}function wie(e,t){var n=Math.floor(e.getMonth(t)/3);return n+1}function oat(e,t,n){return Ng(t,n,function(){return H1(e,t,n)&&wie(e,t)===wie(e,n)})}function yY(e,t,n){return Ng(t,n,function(){return H1(e,t,n)&&e.getMonth(t)===e.getMonth(n)})}function _Y(e,t,n){return Ng(t,n,function(){return H1(e,t,n)&&yY(e,t,n)&&e.getDate(t)===e.getDate(n)})}function LCe(e,t,n){return Ng(t,n,function(){return e.getHour(t)===e.getHour(n)&&e.getMinute(t)===e.getMinute(n)&&e.getSecond(t)===e.getSecond(n)})}function $Ce(e,t,n){return Ng(t,n,function(){return _Y(e,t,n)&&LCe(e,t,n)&&e.getMillisecond(t)===e.getMillisecond(n)})}function TC(e,t,n,r){return Ng(n,r,function(){var i=e.locale.getWeekFirstDate(t,n),o=e.locale.getWeekFirstDate(t,r);return H1(e,i,o)&&e.locale.getWeek(t,n)===e.locale.getWeek(t,r)})}function As(e,t,n,r,i){switch(i){case"date":return _Y(e,n,r);case"week":return TC(e,t.locale,n,r);case"month":return yY(e,n,r);case"quarter":return oat(e,n,r);case"year":return H1(e,n,r);case"decade":return QH(e,n,r);case"time":return LCe(e,n,r);default:return $Ce(e,n,r)}}function YP(e,t,n,r){return!t||!n||!r?!1:e.isAfter(r,t)&&e.isAfter(n,r)}function SR(e,t,n,r,i){return As(e,t,n,r,i)?!0:e.isAfter(n,r)}function aat(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 Ta(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 U4(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 sat(e,t,n,r,i){var o=qn(function(a,s){return!!(n&&n(a,s)||r&&e.isAfter(r,a)&&!As(e,t,r,a,s.type)||i&&e.isAfter(a,i)&&!As(e,t,i,a,s.type))});return o}function lat(e,t,n){return h.useMemo(function(){var r=TCe(e,t,n),i=yv(r),o=i[0],a=qt(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 cat(e,t,n){return typeof e[0]=="function"||n?!0:t}function uat(e,t,n,r){var i=qn(function(o,a){var s=z({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,p=u.disabledSeconds,m=u.disabledMilliseconds,g=r.disabledHours,v=r.disabledMinutes,y=r.disabledSeconds,b=d||g,_=f||v,S=p||y,x=e.getHour(o),E=e.getMinute(o),C=e.getSecond(o),w=e.getMillisecond(o);if(b&&b().includes(x)||_&&_(x).includes(E)||S&&S(x,E).includes(C)||m&&m(x,E,C).includes(w))return!0}return!1});return i}function ER(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=h.useMemo(function(){var r=e&&yv(e);return t&&r&&(r[1]=r[1]||r[0]),r},[e,t]);return n}function FCe(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,p=f===void 0?!0:f,m=e.components,g=m===void 0?{}:m,v=e.inputRender,y=e.allowClear,b=e.clearIcon,_=e.needConfirm,S=e.multiple,x=e.format,E=e.inputReadOnly,C=e.disabledDate,w=e.minDate,O=e.maxDate,T=e.showTime,A=e.value,I=e.defaultValue,N=e.pickerValue,D=e.defaultPickerValue,M=ER(A),k=ER(I),P=ER(N),B=ER(D),G=o==="date"&&T?"datetime":o,L=G==="time"||G==="datetime",W=L||S,j=_??L,H=PCe(e),X=Re(H,4),Q=X[0],ue=X[1],ee=X[2],K=X[3],se=NCe(r,ue),le=h.useMemo(function(){return DCe(G,ee,K,Q,se)},[G,ee,K,Q,se]),oe=h.useMemo(function(){return z(z({},e),{},{prefixCls:s,locale:se,picker:o,styles:c,classNames:d,order:p,components:z({input:v},g),clearIcon:iat(s,y,b),showTime:le,value:M,defaultValue:k,pickerValue:P,defaultPickerValue:B},t==null?void 0:t())},[e]),ne=lat(G,se,x),he=Re(ne,2),me=he[0],ce=he[1],re=cat(me,E,S),ve=sat(n,r,C,w,O),be=uat(n,o,ve,le),xe=h.useMemo(function(){return z(z({},oe),{},{needConfirm:j,inputReadOnly:re,disabledDate:ve})},[oe,j,re,ve]);return[xe,G,W,me,ce,be]}function dat(e,t,n){var r=Pn(t,{value:e}),i=Re(r,2),o=i[0],a=i[1],s=pe.useRef(e),l=pe.useRef(),c=function(){tr.cancel(l.current)},u=qn(function(){a(s.current),n&&o!==s.current&&n(s.current)}),d=qn(function(f,p){c(),s.current=f,f||p?u():l.current=tr(u)});return pe.useEffect(function(){return c},[]),[o,d]}function BCe(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=dat(i,t||!1,r),a=Re(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 HCe(e){var t=h.useRef();return h.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 jCe(e,t){return h.useMemo(function(){return e||(t?(Vr(!1,"`ranges` is deprecated. Please use `presets` instead."),Object.entries(t).map(function(n){var r=Re(n,2),i=r[0],o=r[1];return{label:i,value:o}})):[])},[e,t])}function SY(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,r=h.useRef(t);r.current=t,a1(function(){if(e)r.current(e);else{var i=tr(function(){r.current(e)},n);return function(){tr.cancel(i)}}},[e])}function UCe(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=h.useState(0),i=Re(r,2),o=i[0],a=i[1],s=h.useState(!1),l=Re(s,2),c=l[0],u=l[1],d=h.useRef([]),f=h.useRef(null),p=h.useRef(null),m=function(S){f.current=S},g=function(S){return f.current===S},v=function(S){u(S)},y=function(S){return S&&(p.current=S),p.current},b=function(S){var x=d.current,E=new Set(x.filter(function(w){return S[w]||t[w]})),C=x[x.length-1]===0?1:0;return E.size>=2||e[C]?null:C};return SY(c||n,function(){c||(d.current=[],m(null))}),h.useEffect(function(){c&&d.current.push(o)},[c,o]),[c,v,y,o,a,b,d.current,m,g]}function fat(e,t,n,r,i,o){var a=n[n.length-1],s=function(c,u){var d=Re(e,2),f=d[0],p=d[1],m=z(z({},u),{},{from:OCe(e,n)});return a===1&&t[0]&&f&&!As(r,i,f,c,m.type)&&r.isAfter(f,c)||a===0&&t[1]&&p&&!As(r,i,p,c,m.type)&&r.isAfter(c,p)?!0:o==null?void 0:o(c,m)};return s}function OC(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 dL=[];function zCe(e,t,n,r,i,o,a,s){var l=arguments.length>8&&arguments[8]!==void 0?arguments[8]:dL,c=arguments.length>9&&arguments[9]!==void 0?arguments[9]:dL,u=arguments.length>10&&arguments[10]!==void 0?arguments[10]:dL,d=arguments.length>11?arguments[11]:void 0,f=arguments.length>12?arguments[12]:void 0,p=arguments.length>13?arguments[13]:void 0,m=a==="time",g=o||0,v=function(P){var B=e.getNow();return m&&(B=U4(e,B)),l[P]||n[P]||B},y=Re(c,2),b=y[0],_=y[1],S=Pn(function(){return v(0)},{value:b}),x=Re(S,2),E=x[0],C=x[1],w=Pn(function(){return v(1)},{value:_}),O=Re(w,2),T=O[0],A=O[1],I=h.useMemo(function(){var k=[E,T][g];return m?k:U4(e,k,u[g])},[m,E,T,g,e,u]),N=function(P){var B=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"panel",G=[C,A][g];G(P);var L=[E,T];L[g]=P,d&&(!As(e,t,E,L[0],a)||!As(e,t,T,L[1],a))&&d(L,{source:B,range:g===1?"end":"start",mode:r})},D=function(P,B){if(s){var G={date:"month",week:"month",month:"year",quarter:"year"},L=G[a];if(L&&!As(e,t,P,B,L))return OC(e,a,B,-1);if(a==="year"&&P){var W=Math.floor(e.getYear(P)/10),j=Math.floor(e.getYear(B)/10);if(W!==j)return OC(e,a,B,-1)}}return B},M=h.useRef(null);return er(function(){if(i&&!l[g]){var k=m?null:e.getNow();if(M.current!==null&&M.current!==g?k=[E,T][g^1]:n[g]?k=g===0?n[0]:D(n[0],n[1]):n[g^1]&&(k=n[g^1]),k){f&&e.isAfter(f,k)&&(k=f);var P=s?OC(e,a,k,1):k;p&&e.isAfter(P,p)&&(k=s?OC(e,a,p,-1):p),N(k,"reset")}}},[i,g,n[g]]),h.useEffect(function(){i?M.current=g:M.current=null},[i,g]),er(function(){i&&l&&l[g]&&N(l[g],"reset")},[i,g]),[I,N]}function VCe(e,t){var n=h.useRef(e),r=h.useState({}),i=Re(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 pat=[];function GCe(e,t,n){var r=function(a){return a.map(function(s){return Ta(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&&!$Ce(e,d,f)){c=u;break}}return[c<0,c!==0]};return[r,i]}function WCe(e,t){return rt(e).sort(function(n,r){return t.isAfter(n,r)?1:-1})}function hat(e){var t=VCe(e),n=Re(t,2),r=n[0],i=n[1],o=qn(function(){i(e)});return h.useEffect(function(){o()},[e]),[r,i]}function qCe(e,t,n,r,i,o,a,s,l){var c=Pn(o,{value:a}),u=Re(c,2),d=u[0],f=u[1],p=d||pat,m=hat(p),g=Re(m,2),v=g[0],y=g[1],b=GCe(e,t,n),_=Re(b,2),S=_[0],x=_[1],E=qn(function(w){var O=rt(w);if(r)for(var T=0;T<2;T+=1)O[T]=O[T]||null;else i&&(O=WCe(O.filter(function(k){return k}),e));var A=x(v(),O),I=Re(A,2),N=I[0],D=I[1];if(!N&&(y(O),s)){var M=S(O);s(O,M,{range:D?"end":"start"})}}),C=function(){l&&l(v())};return[p,f,v,E,C]}function YCe(e,t,n,r,i,o,a,s,l,c){var u=e.generateConfig,d=e.locale,f=e.picker,p=e.onChange,m=e.allowEmpty,g=e.order,v=o.some(function(N){return N})?!1:g,y=GCe(u,d,a),b=Re(y,2),_=b[0],S=b[1],x=VCe(t),E=Re(x,2),C=E[0],w=E[1],O=qn(function(){w(t)});h.useEffect(function(){O()},[t]);var T=qn(function(N){var D=N===null,M=rt(N||C());if(D)for(var k=Math.max(o.length,M.length),P=0;P<k;P+=1)o[P]||(M[P]=null);v&&M[0]&&M[1]&&(M=WCe(M,u)),i(M);var B=M,G=Re(B,2),L=G[0],W=G[1],j=!L,H=!W,X=m?(!j||m[0])&&(!H||m[1]):!0,Q=!g||j||H||As(u,d,L,W,f)||u.isAfter(W,L),ue=(o[0]||!L||!c(L,{activeIndex:0}))&&(o[1]||!W||!c(W,{from:L,activeIndex:1})),ee=D||X&&Q&&ue;if(ee){n(M);var K=S(M,t),se=Re(K,1),le=se[0];p&&!le&&p(D&&M.every(function(oe){return!oe})?null:M,_(M))}return ee}),A=qn(function(N,D){var M=ux(C(),N,r()[N]);w(M),D&&T()}),I=!s&&!l;return SY(!I,function(){I&&(T(),i(t),O())},2),[A,T]}function KCe(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 mat(e,t,n,r,i,o){var a=e;function s(d,f,p){var m=o[d](a),g=p.find(function(_){return _.value===m});if(!g||g.disabled){var v=p.filter(function(_){return!_.disabled}),y=rt(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 CR(){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:vY(l,o),value:l,disabled:c})}return a}function EY(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,p=r.hideDisabledOptions,m=r.disabledTime,g=r.disabledHours,v=r.disabledMinutes,y=r.disabledSeconds,b=h.useMemo(function(){return n||e.getNow()},[n,e]),_=h.useCallback(function(B){var G=(m==null?void 0:m(B))||{};return[G.disabledHours||g||CR,G.disabledMinutes||v||CR,G.disabledSeconds||y||CR,G.disabledMilliseconds||CR]},[m,g,v,y]),S=h.useMemo(function(){return _(b)},[b,_]),x=Re(S,4),E=x[0],C=x[1],w=x[2],O=x[3],T=h.useCallback(function(B,G,L,W){var j=xR(0,23,a,p,B()),H=i?j.map(function(ee){return z(z({},ee),{},{label:vY(ee.value%12||12,2)})}):j,X=function(K){return xR(0,59,l,p,G(K))},Q=function(K,se){return xR(0,59,u,p,L(K,se))},ue=function(K,se,le){return xR(0,999,f,p,W(K,se,le),3)};return[H,X,Q,ue]},[p,a,i,f,l,u]),A=h.useMemo(function(){return T(E,C,w,O)},[T,E,C,w,O]),I=Re(A,4),N=I[0],D=I[1],M=I[2],k=I[3],P=function(G,L){var W=function(){return N},j=D,H=M,X=k;if(L){var Q=_(L),ue=Re(Q,4),ee=ue[0],K=ue[1],se=ue[2],le=ue[3],oe=T(ee,K,se,le),ne=Re(oe,4),he=ne[0],me=ne[1],ce=ne[2],re=ne[3];W=function(){return he},j=me,H=ce,X=re}var ve=mat(G,W,j,H,X,e);return ve};return[P,N,D,M,k]}function gat(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=h.useContext(jd),p=f.prefixCls,m=f.locale,g=f.button,v=g===void 0?"button":g,y=u.getNow(),b=EY(u,o,y),_=Re(b,1),S=_[0],x=r==null?void 0:r(t),E=d(y,{type:t}),C=function(){if(!E){var D=S(y);s(D)}},w="".concat(p,"-now"),O="".concat(w,"-btn"),T=i&&h.createElement("li",{className:w},h.createElement("a",{className:Ce(O,E&&"".concat(O,"-disabled")),"aria-disabled":E,onClick:C},n==="date"?m.today:m.now)),A=c&&h.createElement("li",{className:"".concat(p,"-ok")},h.createElement(v,{disabled:l,onClick:a},m.ok)),I=(T||A)&&h.createElement("ul",{className:"".concat(p,"-ranges")},T,A);return!x&&!I?null:h.createElement("div",{className:"".concat(p,"-footer")},x&&h.createElement("div",{className:"".concat(p,"-footer-extra")},x),I)}function QCe(e,t,n){function r(i,o){var a=i.findIndex(function(l){return As(e,t,l,o,n)});if(a===-1)return[].concat(rt(i),[o]);var s=rt(i);return s.splice(a,1),s}return r}var _v=h.createContext(null);function KP(){return h.useContext(_v)}function yS(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,p=e.pickerValue,m=e.onSelect,g=e.prevIcon,v=e.nextIcon,y=e.superPrevIcon,b=e.superNextIcon,_=r.getNow(),S={now:_,values:f,pickerValue:p,prefixCls:n,disabledDate:o,minDate:a,maxDate:s,cellRender:l,hoverValue:c,hoverRangeValue:u,onHover:d,locale:i,generateConfig:r,onSelect:m,panelType:t,prevIcon:g,nextIcon:v,superPrevIcon:y,superNextIcon:b};return[S,_]}var ng=h.createContext({});function m2(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,p=e.disabledDate,m=KP(),g=m.prefixCls,v=m.panelType,y=m.now,b=m.disabledDate,_=m.cellRender,S=m.onHover,x=m.hoverValue,E=m.hoverRangeValue,C=m.generateConfig,w=m.values,O=m.locale,T=m.onSelect,A=p||b,I="".concat(g,"-cell"),N=h.useContext(ng),D=N.onCellDblClick,M=function(H){return w.some(function(X){return X&&As(C,O,H,X,v)})},k=[],P=0;P<t;P+=1){for(var B=[],G=void 0,L=function(){var H=P*n+W,X=i(r,H),Q=A==null?void 0:A(X,{type:v});W===0&&(G=X,o&&B.push(o(G)));var ue=!1,ee=!1,K=!1;if(f&&E){var se=Re(E,2),le=se[0],oe=se[1];ue=YP(C,le,oe,X),ee=As(C,O,X,le,v),K=As(C,O,X,oe,v)}var ne=s?Ta(X,{locale:O,format:s,generateConfig:C}):void 0,he=h.createElement("div",{className:"".concat(I,"-inner")},l(X));B.push(h.createElement("td",{key:W,title:ne,className:Ce(I,z(te(te(te(te(te(te({},"".concat(I,"-disabled"),Q),"".concat(I,"-hover"),(x||[]).some(function(me){return As(C,O,X,me,v)})),"".concat(I,"-in-range"),ue&&!ee&&!K),"".concat(I,"-range-start"),ee),"".concat(I,"-range-end"),K),"".concat(g,"-cell-selected"),!E&&v!=="week"&&M(X)),c(X))),onClick:function(){Q||T(X)},onDoubleClick:function(){!Q&&D&&D()},onMouseEnter:function(){Q||S==null||S(X)},onMouseLeave:function(){Q||S==null||S(null)}},_?_(X,{prefixCls:g,originNode:he,today:y,type:v,locale:O}):he))},W=0;W<n;W+=1)L();k.push(h.createElement("tr",{key:P,className:a==null?void 0:a(G)},B))}return h.createElement("div",{className:"".concat(g,"-body")},h.createElement("table",{className:"".concat(g,"-content")},u&&h.createElement("thead",null,h.createElement("tr",null,u)),h.createElement("tbody",null,k)))}var wR={visibility:"hidden"};function _S(e){var t=e.offset,n=e.superOffset,r=e.onChange,i=e.getStart,o=e.getEnd,a=e.children,s=KP(),l=s.prefixCls,c=s.prevIcon,u=c===void 0?"":c,d=s.nextIcon,f=d===void 0?"":d,p=s.superPrevIcon,m=p===void 0?"«":p,g=s.superNextIcon,v=g===void 0?"»":g,y=s.minDate,b=s.maxDate,_=s.generateConfig,S=s.locale,x=s.pickerValue,E=s.panelType,C="".concat(l,"-header"),w=h.useContext(ng),O=w.hidePrev,T=w.hideNext,A=w.hideHeader,I=h.useMemo(function(){if(!y||!t||!o)return!1;var j=o(t(-1,x));return!SR(_,S,j,y,E)},[y,t,x,o,_,S,E]),N=h.useMemo(function(){if(!y||!n||!o)return!1;var j=o(n(-1,x));return!SR(_,S,j,y,E)},[y,n,x,o,_,S,E]),D=h.useMemo(function(){if(!b||!t||!i)return!1;var j=i(t(1,x));return!SR(_,S,b,j,E)},[b,t,x,i,_,S,E]),M=h.useMemo(function(){if(!b||!n||!i)return!1;var j=i(n(1,x));return!SR(_,S,b,j,E)},[b,n,x,i,_,S,E]),k=function(H){t&&r(t(H,x))},P=function(H){n&&r(n(H,x))};if(A)return null;var B="".concat(C,"-prev-btn"),G="".concat(C,"-next-btn"),L="".concat(C,"-super-prev-btn"),W="".concat(C,"-super-next-btn");return h.createElement("div",{className:C},n&&h.createElement("button",{type:"button","aria-label":S.previousYear,onClick:function(){return P(-1)},tabIndex:-1,className:Ce(L,N&&"".concat(L,"-disabled")),disabled:N,style:O?wR:{}},m),t&&h.createElement("button",{type:"button","aria-label":S.previousMonth,onClick:function(){return k(-1)},tabIndex:-1,className:Ce(B,I&&"".concat(B,"-disabled")),disabled:I,style:O?wR:{}},u),h.createElement("div",{className:"".concat(C,"-view")},a),t&&h.createElement("button",{type:"button","aria-label":S.nextMonth,onClick:function(){return k(1)},tabIndex:-1,className:Ce(G,D&&"".concat(G,"-disabled")),disabled:D,style:T?wR:{}},f),n&&h.createElement("button",{type:"button","aria-label":S.nextYear,onClick:function(){return P(1)},tabIndex:-1,className:Ce(W,M&&"".concat(W,"-disabled")),disabled:M,style:T?wR:{}},v))}function QP(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,p=e.onHover,m=e.showWeek,g="".concat(t,"-").concat(r,"-panel"),v="".concat(t,"-cell"),y=u==="week",b=yS(e,u),_=Re(b,2),S=_[0],x=_[1],E=o.locale.getWeekFirstDay(i.locale),C=o.setDate(a,1),w=aat(i.locale,o,C),O=o.getMonth(a),T=m===void 0?y:m,A=T?function(j){var H=d==null?void 0:d(j,{type:"week"});return h.createElement("td",{key:"week",className:Ce(v,"".concat(v,"-week"),te({},"".concat(v,"-disabled"),H)),onClick:function(){H||f(j)},onMouseEnter:function(){H||p==null||p(j)},onMouseLeave:function(){H||p==null||p(null)}},h.createElement("div",{className:"".concat(v,"-inner")},o.locale.getWeek(i.locale,j)))}:null,I=[],N=i.shortWeekDays||(o.locale.getShortWeekDays?o.locale.getShortWeekDays(i.locale):[]);A&&I.push(h.createElement("th",{key:"empty"},h.createElement("span",{style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},i.week)));for(var D=0;D<uL;D+=1)I.push(h.createElement("th",{key:D},N[(D+E)%uL]));var M=function(H,X){return o.addDate(H,X)},k=function(H){return Ta(H,{locale:i,format:i.cellDateFormat,generateConfig:o})},P=function(H){var X=te(te({},"".concat(t,"-cell-in-view"),yY(o,H,a)),"".concat(t,"-cell-today"),_Y(o,H,x));return X},B=i.shortMonths||(o.locale.getShortMonths?o.locale.getShortMonths(i.locale):[]),G=h.createElement("button",{type:"button","aria-label":i.yearSelect,key:"year",onClick:function(){l("year",a)},tabIndex:-1,className:"".concat(t,"-year-btn")},Ta(a,{locale:i,format:i.yearFormat,generateConfig:o})),L=h.createElement("button",{type:"button","aria-label":i.monthSelect,key:"month",onClick:function(){l("month",a)},tabIndex:-1,className:"".concat(t,"-month-btn")},i.monthFormat?Ta(a,{locale:i,format:i.monthFormat,generateConfig:o}):B[O]),W=i.monthBeforeYear?[L,G]:[G,L];return h.createElement(_v.Provider,{value:S},h.createElement("div",{className:Ce(g,m&&"".concat(g,"-show-week"))},h.createElement(_S,{offset:function(H){return o.addMonth(a,H)},superOffset:function(H){return o.addYear(a,H)},onChange:s,getStart:function(H){return o.setDate(H,1)},getEnd:function(H){var X=o.setDate(H,1);return X=o.addMonth(X,1),o.addDate(X,-1)}},W),h.createElement(m2,Xe({titleFormat:i.fieldDateFormat},e,{colNum:uL,rowNum:6,baseDate:w,headerCells:I,getCellDate:M,getCellText:k,getCellClassName:P,prefixColumn:A,cellSelection:!y}))))}var vat=1/3;function bat(e,t){var n=h.useRef(!1),r=h.useRef(null),i=h.useRef(null),o=function(){return n.current},a=function(){tr.cancel(r.current),n.current=!1},s=h.useRef(),l=function(){var d=e.current;if(i.current=null,s.current=0,d){var f=d.querySelector('[data-value="'.concat(t,'"]')),p=d.querySelector("li"),m=function g(){a(),n.current=!0,s.current+=1;var v=d.scrollTop,y=p.offsetTop,b=f.offsetTop,_=b-y;if(b===0&&f!==p||!fS(d)){s.current<=5&&(r.current=tr(g));return}var S=v+(_-v)*vat,x=Math.abs(_-S);if(i.current!==null&&i.current<x){a();return}if(i.current=x,x<=1){d.scrollTop=_,a();return}d.scrollTop=S,r.current=tr(g)};f&&p&&m()}},c=qn(l);return[c,a,o]}var yat=300;function _at(e){return e.map(function(t){var n=t.value,r=t.label,i=t.disabled;return[n,r,i].join(",")}).join(";")}function LE(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=KP(),u=c.prefixCls,d=c.cellRender,f=c.now,p=c.locale,m="".concat(u,"-time-panel"),g="".concat(u,"-time-panel-cell"),v=h.useRef(null),y=h.useRef(),b=function(){clearTimeout(y.current)},_=bat(v,n??r),S=Re(_,3),x=S[0],E=S[1],C=S[2];er(function(){return x(),b(),function(){E(),b()}},[n,r,_at(t)]);var w=function(A){b();var I=A.target;!C()&&l&&(y.current=setTimeout(function(){var N=v.current,D=N.querySelector("li").offsetTop,M=Array.from(N.querySelectorAll("li")),k=M.map(function(W){return W.offsetTop-D}),P=k.map(function(W,j){return t[j].disabled?Number.MAX_SAFE_INTEGER:Math.abs(W-I.scrollTop)}),B=Math.min.apply(Math,rt(P)),G=P.findIndex(function(W){return W===B}),L=t[G];L&&!L.disabled&&o(L.value)},yat))},O="".concat(m,"-column");return h.createElement("ul",{className:O,ref:v,"data-type":i,onScroll:w},t.map(function(T){var A=T.label,I=T.value,N=T.disabled,D=h.createElement("div",{className:"".concat(g,"-inner")},A);return h.createElement("li",{key:I,className:Ce(g,te(te({},"".concat(g,"-selected"),n===I),"".concat(g,"-disabled"),N)),onClick:function(){N||o(I)},onDoubleClick:function(){!N&&s&&s()},onMouseEnter:function(){a(I)},onMouseLeave:function(){a(null)},"data-value":I},d?d(I,{prefixCls:u,originNode:D,today:f,type:"time",subType:i,locale:p}):D)}))}function Lh(e){return e<12}function Sat(e){var t=e.showHour,n=e.showMinute,r=e.showSecond,i=e.showMillisecond,o=e.use12Hours,a=e.changeOnScroll,s=KP(),l=s.prefixCls,c=s.values,u=s.generateConfig,d=s.locale,f=s.onSelect,p=s.onHover,m=p===void 0?function(){}:p,g=s.pickerValue,v=(c==null?void 0:c[0])||null,y=h.useContext(ng),b=y.onCellDblClick,_=EY(u,e,v),S=Re(_,5),x=S[0],E=S[1],C=S[2],w=S[3],O=S[4],T=function(Ke){var tt=v&&u[Ke](v),Ge=g&&u[Ke](g);return[tt,Ge]},A=T("getHour"),I=Re(A,2),N=I[0],D=I[1],M=T("getMinute"),k=Re(M,2),P=k[0],B=k[1],G=T("getSecond"),L=Re(G,2),W=L[0],j=L[1],H=T("getMillisecond"),X=Re(H,2),Q=X[0],ue=X[1],ee=N===null?null:Lh(N)?"am":"pm",K=h.useMemo(function(){return o?Lh(N)?E.filter(function(Pe){return Lh(Pe.value)}):E.filter(function(Pe){return!Lh(Pe.value)}):E},[N,E,o]),se=function(Ke,tt){var Ge,Nt=Ke.filter(function(lt){return!lt.disabled});return tt??(Nt==null||(Ge=Nt[0])===null||Ge===void 0?void 0:Ge.value)},le=se(E,N),oe=h.useMemo(function(){return C(le)},[C,le]),ne=se(oe,P),he=h.useMemo(function(){return w(le,ne)},[w,le,ne]),me=se(he,W),ce=h.useMemo(function(){return O(le,ne,me)},[O,le,ne,me]),re=se(ce,Q),ve=h.useMemo(function(){if(!o)return[];var Pe=u.getNow(),Ke=u.setHour(Pe,6),tt=u.setHour(Pe,18),Ge=function(lt,st){var It=d.cellMeridiemFormat;return It?Ta(lt,{generateConfig:u,locale:d,format:It}):st};return[{label:Ge(Ke,"AM"),value:"am",disabled:E.every(function(Nt){return Nt.disabled||!Lh(Nt.value)})},{label:Ge(tt,"PM"),value:"pm",disabled:E.every(function(Nt){return Nt.disabled||Lh(Nt.value)})}]},[E,o,u,d]),be=function(Ke){var tt=x(Ke);f(tt)},xe=h.useMemo(function(){var Pe=v||g||u.getNow(),Ke=function(Ge){return Ge!=null};return Ke(N)?(Pe=u.setHour(Pe,N),Pe=u.setMinute(Pe,P),Pe=u.setSecond(Pe,W),Pe=u.setMillisecond(Pe,Q)):Ke(D)?(Pe=u.setHour(Pe,D),Pe=u.setMinute(Pe,B),Pe=u.setSecond(Pe,j),Pe=u.setMillisecond(Pe,ue)):Ke(le)&&(Pe=u.setHour(Pe,le),Pe=u.setMinute(Pe,ne),Pe=u.setSecond(Pe,me),Pe=u.setMillisecond(Pe,re)),Pe},[v,g,N,P,W,Q,le,ne,me,re,D,B,j,ue,u]),we=function(Ke,tt){return Ke===null?null:u[tt](xe,Ke)},de=function(Ke){return we(Ke,"setHour")},Ee=function(Ke){return we(Ke,"setMinute")},Ne=function(Ke){return we(Ke,"setSecond")},Te=function(Ke){return we(Ke,"setMillisecond")},Ve=function(Ke){return Ke===null?null:Ke==="am"&&!Lh(N)?u.setHour(xe,N-12):Ke==="pm"&&Lh(N)?u.setHour(xe,N+12):xe},q=function(Ke){be(de(Ke))},U=function(Ke){be(Ee(Ke))},Y=function(Ke){be(Ne(Ke))},ae=function(Ke){be(Te(Ke))},ye=function(Ke){be(Ve(Ke))},fe=function(Ke){m(de(Ke))},Ae=function(Ke){m(Ee(Ke))},We=function(Ke){m(Ne(Ke))},ie=function(Ke){m(Te(Ke))},Be=function(Ke){m(Ve(Ke))},Fe={onDblClick:b,changeOnScroll:a};return h.createElement("div",{className:"".concat(l,"-content")},t&&h.createElement(LE,Xe({units:K,value:N,optionalValue:D,type:"hour",onChange:q,onHover:fe},Fe)),n&&h.createElement(LE,Xe({units:oe,value:P,optionalValue:B,type:"minute",onChange:U,onHover:Ae},Fe)),r&&h.createElement(LE,Xe({units:he,value:W,optionalValue:j,type:"second",onChange:Y,onHover:We},Fe)),i&&h.createElement(LE,Xe({units:ce,value:Q,optionalValue:ue,type:"millisecond",onChange:ae,onHover:ie},Fe)),o&&h.createElement(LE,Xe({units:ve,value:ee,type:"meridiem",onChange:ye,onHover:Be},Fe)))}function XCe(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=yS(e,"time"),u=Re(c,1),d=u[0];return h.createElement(_v.Provider,{value:d},h.createElement("div",{className:Ce(l)},h.createElement(_S,null,n?Ta(n,{locale:r,format:s,generateConfig:i}):" "),h.createElement(Sat,o)))}function Eat(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=EY(n,r),u=Re(c,1),d=u[0],f=function(v){return o?U4(n,v,o):U4(n,v,a)},p=function(v){s==null||s(v&&f(v))},m=function(v){var y=f(v);i(d(y,y))};return h.createElement("div",{className:l},h.createElement(QP,Xe({},e,{onSelect:m,onHover:p})),h.createElement(XCe,e))}function Cat(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=yS(e,"decade"),c=Re(l,1),u=c[0],d=function(E){var C=Math.floor(r.getYear(E)/100)*100;return r.setYear(E,C)},f=function(E){var C=d(E);return r.addYear(C,99)},p=d(i),m=f(i),g=r.addYear(p,-10),v=function(E,C){return r.addYear(E,C*10)},y=function(E){var C=n.cellYearFormat,w=Ta(E,{locale:n,format:C,generateConfig:r}),O=Ta(r.addYear(E,9),{locale:n,format:C,generateConfig:r});return"".concat(w,"-").concat(O)},b=function(E){return te({},"".concat(t,"-cell-in-view"),QH(r,E,p)||QH(r,E,m)||YP(r,p,m,E))},_=o?function(x,E){var C=r.setDate(x,1),w=r.setMonth(C,0),O=r.setYear(w,Math.floor(r.getYear(w)/10)*10),T=r.addYear(O,10),A=r.addDate(T,-1);return o(O,E)&&o(A,E)}:null,S="".concat(Ta(p,{locale:n,format:n.yearFormat,generateConfig:r}),"-").concat(Ta(m,{locale:n,format:n.yearFormat,generateConfig:r}));return h.createElement(_v.Provider,{value:u},h.createElement("div",{className:s},h.createElement(_S,{superOffset:function(E){return r.addYear(i,E*100)},onChange:a,getStart:d,getEnd:f},S),h.createElement(m2,Xe({},e,{disabledDate:_,colNum:3,rowNum:4,baseDate:g,getCellDate:v,getCellText:y,getCellClassName:b}))))}function xat(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=yS(e,"month"),u=Re(c,1),d=u[0],f=r.setMonth(i,0),p=n.shortMonths||(r.locale.getShortMonths?r.locale.getShortMonths(n.locale):[]),m=function(S,x){return r.addMonth(S,x)},g=function(S){var x=r.getMonth(S);return n.monthFormat?Ta(S,{locale:n,format:n.monthFormat,generateConfig:r}):p[x]},v=function(){return te({},"".concat(t,"-cell-in-view"),!0)},y=o?function(_,S){var x=r.setDate(_,1),E=r.setMonth(x,r.getMonth(x)+1),C=r.addDate(E,-1);return o(x,S)&&o(C,S)}:null,b=h.createElement("button",{type:"button",key:"year","aria-label":n.yearSelect,onClick:function(){s("year")},tabIndex:-1,className:"".concat(t,"-year-btn")},Ta(i,{locale:n,format:n.yearFormat,generateConfig:r}));return h.createElement(_v.Provider,{value:d},h.createElement("div",{className:l},h.createElement(_S,{superOffset:function(S){return r.addYear(i,S)},onChange:a,getStart:function(S){return r.setMonth(S,0)},getEnd:function(S){return r.setMonth(S,11)}},b),h.createElement(m2,Xe({},e,{disabledDate:y,titleFormat:n.fieldMonthFormat,colNum:3,rowNum:4,baseDate:f,getCellDate:m,getCellText:g,getCellClassName:v}))))}function wat(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=yS(e,"quarter"),c=Re(l,1),u=c[0],d=r.setMonth(i,0),f=function(y,b){return r.addMonth(y,b*3)},p=function(y){return Ta(y,{locale:n,format:n.cellQuarterFormat,generateConfig:r})},m=function(){return te({},"".concat(t,"-cell-in-view"),!0)},g=h.createElement("button",{type:"button",key:"year","aria-label":n.yearSelect,onClick:function(){a("year")},tabIndex:-1,className:"".concat(t,"-year-btn")},Ta(i,{locale:n,format:n.yearFormat,generateConfig:r}));return h.createElement(_v.Provider,{value:u},h.createElement("div",{className:s},h.createElement(_S,{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),h.createElement(m2,Xe({},e,{titleFormat:n.fieldQuarterFormat,colNum:4,rowNum:1,baseDate:d,getCellDate:f,getCellText:p,getCellClassName:m}))))}function Tat(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 p=Re(a,2),m=p[0],g=p[1],v=TC(n,s,m,d),y=TC(n,s,g,d);f["".concat(l,"-range-start")]=v,f["".concat(l,"-range-end")]=y,f["".concat(l,"-range-hover")]=!v&&!y&&YP(n,m,g,d)}return o&&(f["".concat(l,"-hover")]=o.some(function(b){return TC(n,s,d,b)})),Ce(l,te({},"".concat(l,"-selected"),!a&&TC(n,s,i,d)),f)};return h.createElement(QP,Xe({},e,{mode:"week",panelName:"week",rowClassName:c}))}function Oat(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=yS(e,"year"),u=Re(c,1),d=u[0],f=function(C){var w=Math.floor(r.getYear(C)/10)*10;return r.setYear(C,w)},p=function(C){var w=f(C);return r.addYear(w,9)},m=f(i),g=p(i),v=r.addYear(m,-1),y=function(C,w){return r.addYear(C,w)},b=function(C){return Ta(C,{locale:n,format:n.cellYearFormat,generateConfig:r})},_=function(C){return te({},"".concat(t,"-cell-in-view"),H1(r,C,m)||H1(r,C,g)||YP(r,m,g,C))},S=o?function(E,C){var w=r.setMonth(E,0),O=r.setDate(w,1),T=r.addYear(O,1),A=r.addDate(T,-1);return o(O,C)&&o(A,C)}:null,x=h.createElement("button",{type:"button",key:"decade","aria-label":n.decadeSelect,onClick:function(){s("decade")},tabIndex:-1,className:"".concat(t,"-decade-btn")},Ta(m,{locale:n,format:n.yearFormat,generateConfig:r}),"-",Ta(g,{locale:n,format:n.yearFormat,generateConfig:r}));return h.createElement(_v.Provider,{value:d},h.createElement("div",{className:l},h.createElement(_S,{superOffset:function(C){return r.addYear(i,C*10)},onChange:a,getStart:f,getEnd:p},x),h.createElement(m2,Xe({},e,{disabledDate:S,titleFormat:n.fieldYearFormat,colNum:3,rowNum:4,baseDate:v,getCellDate:y,getCellText:b,getCellClassName:_}))))}var Rat={date:QP,datetime:Eat,week:Tat,month:xat,quarter:wat,year:Oat,decade:Cat,time:XCe};function Aat(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,p=e.onSelect,m=e.defaultPickerValue,g=e.pickerValue,v=e.onPickerValueChange,y=e.mode,b=e.onPanelChange,_=e.picker,S=_===void 0?"date":_,x=e.showTime,E=e.hoverValue,C=e.hoverRangeValue,w=e.cellRender,O=e.dateRender,T=e.monthCellRender,A=e.components,I=A===void 0?{}:A,N=e.hideHeader,D=((n=h.useContext(jd))===null||n===void 0?void 0:n.prefixCls)||a||"rc-picker",M=h.useRef();h.useImperativeHandle(t,function(){return{nativeElement:M.current}});var k=PCe(e),P=Re(k,4),B=P[0],G=P[1],L=P[2],W=P[3],j=NCe(r,G),H=S==="date"&&x?"datetime":S,X=h.useMemo(function(){return DCe(H,L,W,B,j)},[H,L,W,B,j]),Q=i.getNow(),ue=Pn(S,{value:y,postState:function(Be){return Be||"date"}}),ee=Re(ue,2),K=ee[0],se=ee[1],le=K==="date"&&X?"datetime":K,oe=QCe(i,r,H),ne=Pn(u,{value:d}),he=Re(ne,2),me=he[0],ce=he[1],re=h.useMemo(function(){var ie=yv(me).filter(function(Be){return Be});return c?ie:ie.slice(0,1)},[me,c]),ve=qn(function(ie){ce(ie),f&&(ie===null||re.length!==ie.length||re.some(function(Be,Fe){return!As(i,r,Be,ie[Fe],H)}))&&(f==null||f(c?ie:ie[0]))}),be=qn(function(ie){if(p==null||p(ie),K===S){var Be=c?oe(re,ie):[ie];ve(Be)}}),xe=Pn(m||re[0]||Q,{value:g}),we=Re(xe,2),de=we[0],Ee=we[1];h.useEffect(function(){re[0]&&!g&&Ee(re[0])},[re[0]]);var Ne=function(Be,Fe){b==null||b(Be||g,Fe||K)},Te=function(Be){var Fe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;Ee(Be),v==null||v(Be),Fe&&Ne(Be)},Ve=function(Be,Fe){se(Be),Fe&&Te(Fe),Ne(Fe,Be)},q=function(Be){if(be(Be),Te(Be),K!==S){var Fe=["decade","year"],Pe=[].concat(Fe,["month"]),Ke={quarter:[].concat(Fe,["quarter"]),week:[].concat(rt(Pe),["week"]),date:[].concat(rt(Pe),["date"])},tt=Ke[S]||Pe,Ge=tt.indexOf(K),Nt=tt[Ge+1];Nt&&Ve(Nt,Be)}},U=h.useMemo(function(){var ie,Be;if(Array.isArray(C)){var Fe=Re(C,2);ie=Fe[0],Be=Fe[1]}else ie=C;return!ie&&!Be?null:(ie=ie||Be,Be=Be||ie,i.isAfter(ie,Be)?[Be,ie]:[ie,Be])},[C,i]),Y=bY(w,O,T),ae=I[le]||Rat[le]||QP,ye=h.useContext(ng),fe=h.useMemo(function(){return z(z({},ye),{},{hideHeader:N})},[ye,N]),Ae="".concat(D,"-panel"),We=qP(e,["showWeek","prevIcon","nextIcon","superPrevIcon","superNextIcon","disabledDate","minDate","maxDate","onHover"]);return h.createElement(ng.Provider,{value:fe},h.createElement("div",{ref:M,tabIndex:l,className:Ce(Ae,te({},"".concat(Ae,"-rtl"),o==="rtl"))},h.createElement(ae,Xe({},We,{showTime:X,prefixCls:D,locale:j,generateConfig:i,onModeChange:Ve,pickerValue:de,onPickerValueChange:function(Be){Te(Be,!0)},value:re[0],onSelect:q,values:re,cellRender:Y,hoverRangeValue:U,hoverValue:E}))))}var fL=h.memo(h.forwardRef(Aat));function Iat(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=h.useContext(jd),u=c.prefixCls,d=c.generateConfig,f=h.useCallback(function(b,_){return OC(d,t,b,_)},[d,t]),p=h.useMemo(function(){return f(r,1)},[r,f]),m=function(_){i(f(_,-1))},g={onCellDblClick:function(){o&&a()}},v=t==="time",y=z(z({},e),{},{hoverValue:null,hoverRangeValue:null,hideHeader:v});return s?y.hoverRangeValue=l:y.hoverValue=l,n?h.createElement("div",{className:"".concat(u,"-panels")},h.createElement(ng.Provider,{value:z(z({},g),{},{hideNext:!0})},h.createElement(fL,y)),h.createElement(ng.Provider,{value:z(z({},g),{},{hidePrev:!0})},h.createElement(fL,Xe({},y,{pickerValue:p,onPickerValueChange:m})))):h.createElement(ng.Provider,{value:z({},g)},h.createElement(fL,y))}function Tie(e){return typeof e=="function"?e():e}function Nat(e){var t=e.prefixCls,n=e.presets,r=e.onClick,i=e.onHover;return n.length?h.createElement("div",{className:"".concat(t,"-presets")},h.createElement("ul",null,n.map(function(o,a){var s=o.label,l=o.value;return h.createElement("li",{key:a,onClick:function(){r(Tie(l))},onMouseEnter:function(){i(Tie(l))},onMouseLeave:function(){i(null)}},s)}))):null}function ZCe(e){var t=e.panelRender,n=e.internalMode,r=e.picker,i=e.showNow,o=e.range,a=e.multiple,s=e.activeInfo,l=s===void 0?[0,0,0]:s,c=e.presets,u=e.onPresetHover,d=e.onPresetSubmit,f=e.onFocus,p=e.onBlur,m=e.onPanelMouseDown,g=e.direction,v=e.value,y=e.onSelect,b=e.isInvalid,_=e.defaultOpenValue,S=e.onOk,x=e.onSubmit,E=h.useContext(jd),C=E.prefixCls,w="".concat(C,"-panel"),O=g==="rtl",T=h.useRef(null),A=h.useRef(null),I=h.useState(0),N=Re(I,2),D=N[0],M=N[1],k=h.useState(0),P=Re(k,2),B=P[0],G=P[1],L=h.useState(0),W=Re(L,2),j=W[0],H=W[1],X=function(q){q.width&&M(q.width)},Q=Re(l,3),ue=Q[0],ee=Q[1],K=Q[2],se=h.useState(0),le=Re(se,2),oe=le[0],ne=le[1];h.useEffect(function(){ne(10)},[ue]),h.useEffect(function(){if(o&&A.current){var Ve,q=((Ve=T.current)===null||Ve===void 0?void 0:Ve.offsetWidth)||0,U=A.current.getBoundingClientRect();if(!U.height||U.right<0){ne(function(fe){return Math.max(0,fe-1)});return}var Y=(O?ee-q:ue)-U.left;if(H(Y),D&&D<K){var ae=O?U.right-(ee-q+D):ue+q-U.left-D,ye=Math.max(0,ae);G(ye)}else G(0)}},[oe,O,D,ue,ee,K,o]);function he(Ve){return Ve.filter(function(q){return q})}var me=h.useMemo(function(){return he(yv(v))},[v]),ce=r==="time"&&!me.length,re=h.useMemo(function(){return ce?he([_]):me},[ce,me,_]),ve=ce?_:me,be=h.useMemo(function(){return re.length?re.some(function(Ve){return b(Ve)}):!0},[re,b]),xe=function(){ce&&y(_),S(),x()},we=h.createElement("div",{className:"".concat(C,"-panel-layout")},h.createElement(Nat,{prefixCls:C,presets:c,onClick:d,onHover:u}),h.createElement("div",null,h.createElement(Iat,Xe({},e,{value:ve})),h.createElement(gat,Xe({},e,{showNow:a?!1:i,invalid:be,onSubmit:xe}))));t&&(we=t(we));var de="".concat(w,"-container"),Ee="marginLeft",Ne="marginRight",Te=h.createElement("div",{onMouseDown:m,tabIndex:-1,className:Ce(de,"".concat(C,"-").concat(n,"-panel-container")),style:te(te({},O?Ne:Ee,B),O?Ee:Ne,"auto"),onFocus:f,onBlur:p},we);return o&&(Te=h.createElement("div",{onMouseDown:m,ref:A,className:Ce("".concat(C,"-range-wrapper"),"".concat(C,"-").concat(r,"-range-wrapper"))},h.createElement("div",{ref:T,className:"".concat(C,"-range-arrow"),style:{left:j}}),h.createElement(Oa,{onResize:X},Te))),Te}function JCe(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,p=e.onInputChange,m=e.onInvalid,g=e.open,v=e.onOpenChange,y=e.onKeyDown,b=e.onChange,_=e.activeHelp,S=e.name,x=e.autoComplete,E=e.id,C=e.value,w=e.invalid,O=e.placeholder,T=e.disabled,A=e.activeIndex,I=e.allHelp,N=e.picker,D=function(j,H){var X=i.locale.parse(o.locale,j,[H]);return X&&i.isValidate(X)?X:null},M=n[0],k=h.useCallback(function(W){return Ta(W,{locale:o,format:M,generateConfig:i})},[o,i,M]),P=h.useMemo(function(){return C.map(k)},[C,k]),B=h.useMemo(function(){var W=N==="time"?8:10,j=typeof M=="function"?M(i.getNow()).length:M.length;return Math.max(W,j)+2},[M,N,i]),G=function(j){for(var H=0;H<n.length;H+=1){var X=n[H];if(typeof X=="string"){var Q=D(j,X);if(Q)return Q}}return!1},L=function(j){function H(ue){return j!==void 0?ue[j]:ue}var X=Oi(e,{aria:!0,data:!0}),Q=z(z({},X),{},{format:r,validateFormat:function(ee){return!!G(ee)},preserveInvalidOnBlur:a,readOnly:s,required:l,"aria-required":c,name:S,autoComplete:x,size:B,id:H(E),value:H(P)||"",invalid:H(w),placeholder:H(O),active:A===j,helped:I||_&&A===j,disabled:H(T),onFocus:function(ee){d(ee,j)},onBlur:function(ee){f(ee,j)},onSubmit:u,onChange:function(ee){p();var K=G(ee);if(K){m(!1,j),b(K,j);return}m(!!ee,j)},onHelp:function(){v(!0,{index:j})},onKeyDown:function(ee){var K=!1;if(y==null||y(ee,function(){K=!0}),!ee.defaultPrevented&&!K)switch(ee.key){case"Escape":v(!1,{index:j});break;case"Enter":g||v(!0);break}}},t==null?void 0:t({valueTexts:P}));return Object.keys(Q).forEach(function(ue){Q[ue]===void 0&&delete Q[ue]}),Q};return[L,k]}var Mat=["onMouseEnter","onMouseLeave"];function exe(e){return h.useMemo(function(){return qP(e,Mat)},[e])}var kat=["icon","type"],Pat=["onClear"];function XP(e){var t=e.icon,n=e.type,r=kt(e,kat),i=h.useContext(jd),o=i.prefixCls;return t?h.createElement("span",Xe({className:"".concat(o,"-").concat(n)},r),t):null}function XH(e){var t=e.onClear,n=kt(e,Pat);return h.createElement(XP,Xe({},n,{type:"clear",role:"button",onMouseDown:function(i){i.preventDefault()},onClick:function(i){i.stopPropagation(),t()}}))}var pL=["YYYY","MM","DD","HH","mm","ss","SSS"],Oie="顧",Dat=function(){function e(t){Qr(this,e),te(this,"format",void 0),te(this,"maskFormat",void 0),te(this,"cells",void 0),te(this,"maskCells",void 0),this.format=t;var n=pL.map(function(s){return"(".concat(s,")")}).join("|"),r=new RegExp(n,"g");this.maskFormat=t.replace(r,function(s){return Oie.repeat(s.length)});var i=new RegExp("(".concat(pL.join("|"),")")),o=(t.split(i)||[]).filter(function(s){return s}),a=0;this.cells=o.map(function(s){var l=pL.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 Xr(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!==Oie&&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 Lat(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 $at=["active","showActiveCls","suffixIcon","format","validateFormat","onChange","onInput","helped","onHelp","onSubmit","onKeyDown","preserveInvalidOnBlur","invalid","clearIcon"],ZH=h.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,p=e.preserveInvalidOnBlur,m=p===void 0?!1:p,g=e.invalid,v=e.clearIcon,y=kt(e,$at),b=e.value,_=e.onFocus,S=e.onBlur,x=e.onMouseUp,E=h.useContext(jd),C=E.prefixCls,w=E.input,O=w===void 0?"input":w,T="".concat(C,"-input"),A=h.useState(!1),I=Re(A,2),N=I[0],D=I[1],M=h.useState(b),k=Re(M,2),P=k[0],B=k[1],G=h.useState(""),L=Re(G,2),W=L[0],j=L[1],H=h.useState(null),X=Re(H,2),Q=X[0],ue=X[1],ee=h.useState(null),K=Re(ee,2),se=K[0],le=K[1],oe=P||"";h.useEffect(function(){B(b)},[b]);var ne=h.useRef(),he=h.useRef();h.useImperativeHandle(t,function(){return{nativeElement:ne.current,inputElement:he.current,focus:function(ie){he.current.focus(ie)},blur:function(){he.current.blur()}}});var me=h.useMemo(function(){return new Dat(a||"")},[a]),ce=h.useMemo(function(){return c?[0,0]:me.getSelection(Q)},[me,Q,c]),re=Re(ce,2),ve=re[0],be=re[1],xe=function(ie){ie&&ie!==a&&ie!==b&&u()},we=qn(function(We){s(We)&&l(We),B(We),xe(We)}),de=function(ie){if(!a){var Be=ie.target.value;xe(Be),B(Be),l(Be)}},Ee=function(ie){var Be=ie.clipboardData.getData("text");s(Be)&&we(Be)},Ne=h.useRef(!1),Te=function(){Ne.current=!0},Ve=function(ie){var Be=ie.target,Fe=Be.selectionStart,Pe=me.getMaskCellIndex(Fe);ue(Pe),le({}),x==null||x(ie),Ne.current=!1},q=function(ie){D(!0),ue(0),j(""),_(ie)},U=function(ie){S(ie)},Y=function(ie){D(!1),U(ie)};SY(n,function(){!n&&!m&&B(b)});var ae=function(ie){ie.key==="Enter"&&s(oe)&&d(),f==null||f(ie)},ye=function(ie){ae(ie);var Be=ie.key,Fe=null,Pe=null,Ke=be-ve,tt=a.slice(ve,be),Ge=function(It){ue(function(ct){var Pt=ct+It;return Pt=Math.max(Pt,0),Pt=Math.min(Pt,me.size()-1),Pt})},Nt=function(It){var ct=Lat(tt),Pt=Re(ct,3),Rt=Pt[0],Tt=Pt[1],Me=Pt[2],Ue=oe.slice(ve,be),$e=Number(Ue);if(isNaN($e))return String(Me||(It>0?Rt:Tt));var Le=$e+It,He=Tt-Rt+1;return String(Rt+(He+Le-Rt)%He)};switch(Be){case"Backspace":case"Delete":Fe="",Pe=tt;break;case"ArrowLeft":Fe="",Ge(-1);break;case"ArrowRight":Fe="",Ge(1);break;case"ArrowUp":Fe="",Pe=Nt(1);break;case"ArrowDown":Fe="",Pe=Nt(-1);break;default:isNaN(Number(Be))||(Fe=W+Be,Pe=Fe);break}if(Fe!==null&&(j(Fe),Fe.length>=Ke&&(Ge(1),j(""))),Pe!==null){var lt=oe.slice(0,ve)+vY(Pe,Ke)+oe.slice(be);we(lt.slice(0,a.length))}le({})},fe=h.useRef();er(function(){if(!(!N||!a||Ne.current)){if(!me.match(oe)){we(a);return}return he.current.setSelectionRange(ve,be),fe.current=tr(function(){he.current.setSelectionRange(ve,be)}),function(){tr.cancel(fe.current)}}},[me,a,N,oe,Q,ve,be,se,we]);var Ae=a?{onFocus:q,onBlur:Y,onKeyDown:ye,onMouseDown:Te,onMouseUp:Ve,onPaste:Ee}:{};return h.createElement("div",{ref:ne,className:Ce(T,te(te({},"".concat(T,"-active"),n&&i),"".concat(T,"-placeholder"),c))},h.createElement(O,Xe({ref:he,"aria-invalid":g,autoComplete:"off"},y,{onKeyDown:ae,onBlur:U},Ae,{value:oe,onChange:de})),h.createElement(XP,{type:"suffix",icon:o}),v)}),Fat=["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","onActiveInfo","placement","onMouseDown","required","aria-required","autoFocus","tabIndex"],Bat=["index"];function Hat(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,p=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.onActiveInfo;e.placement;var S=e.onMouseDown;e.required,e["aria-required"];var x=e.autoFocus,E=e.tabIndex,C=kt(e,Fat),w=b==="rtl",O=h.useContext(jd),T=O.prefixCls,A=h.useMemo(function(){if(typeof n=="string")return[n];var se=n||{};return[se.start,se.end]},[n]),I=h.useRef(),N=h.useRef(),D=h.useRef(),M=function(le){var oe;return(oe=[N,D][le])===null||oe===void 0?void 0:oe.current};h.useImperativeHandle(t,function(){return{nativeElement:I.current,focus:function(le){if(qt(le)==="object"){var oe,ne=le||{},he=ne.index,me=he===void 0?0:he,ce=kt(ne,Bat);(oe=M(me))===null||oe===void 0||oe.focus(ce)}else{var re;(re=M(le??0))===null||re===void 0||re.focus()}},blur:function(){var le,oe;(le=M(0))===null||le===void 0||le.blur(),(oe=M(1))===null||oe===void 0||oe.blur()}}});var k=exe(C),P=h.useMemo(function(){return Array.isArray(u)?u:[u,u]},[u]),B=JCe(z(z({},e),{},{id:A,placeholder:P})),G=Re(B,1),L=G[0],W=h.useState({position:"absolute",width:0}),j=Re(W,2),H=j[0],X=j[1],Q=qn(function(){var se=M(l);if(se){var le=se.nativeElement.getBoundingClientRect(),oe=I.current.getBoundingClientRect(),ne=le.left-oe.left;X(function(he){return z(z({},he),{},{width:le.width,left:ne})}),_([le.left,le.right,oe.width])}});h.useEffect(function(){Q()},[l]);var ue=i&&(g[0]&&!v[0]||g[1]&&!v[1]),ee=x&&!v[0],K=x&&!ee&&!v[1];return h.createElement(Oa,{onResize:Q},h.createElement("div",Xe({},k,{className:Ce(T,"".concat(T,"-range"),te(te(te(te({},"".concat(T,"-focused"),c),"".concat(T,"-disabled"),v.every(function(se){return se})),"".concat(T,"-invalid"),y.some(function(se){return se})),"".concat(T,"-rtl"),w),d),style:f,ref:I,onClick:p,onMouseDown:function(le){var oe=le.target;oe!==N.current.inputElement&&oe!==D.current.inputElement&&le.preventDefault(),S==null||S(le)}}),r&&h.createElement("div",{className:"".concat(T,"-prefix")},r),h.createElement(ZH,Xe({ref:N},L(0),{autoFocus:ee,tabIndex:E,"date-range":"start"})),h.createElement("div",{className:"".concat(T,"-range-separator")},s),h.createElement(ZH,Xe({ref:D},L(1),{autoFocus:K,tabIndex:E,"date-range":"end"})),h.createElement("div",{className:"".concat(T,"-active-bar"),style:H}),h.createElement(XP,{type:"suffix",icon:o}),ue&&h.createElement(XH,{icon:i,onClear:m})))}var jat=h.forwardRef(Hat);function Rie(e,t){var n=e??t;return Array.isArray(n)?n:[n,n]}function TR(e){return e===1?"end":"start"}function Uat(e,t){var n=FCe(e,function(){var mn=e.disabled,nn=e.allowEmpty,In=Rie(mn,!1),vr=Rie(nn,!1);return{disabled:In,allowEmpty:vr}}),r=Re(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,p=i.defaultValue,m=i.value,g=i.needConfirm,v=i.onKeyDown,y=i.disabled,b=i.allowEmpty,_=i.disabledDate,S=i.minDate,x=i.maxDate,E=i.defaultOpen,C=i.open,w=i.onOpenChange,O=i.locale,T=i.generateConfig,A=i.picker,I=i.showNow,N=i.showToday,D=i.showTime,M=i.mode,k=i.onPanelChange,P=i.onCalendarChange,B=i.onOk,G=i.defaultPickerValue,L=i.pickerValue,W=i.onPickerValueChange,j=i.inputReadOnly,H=i.suffixIcon,X=i.onFocus,Q=i.onBlur,ue=i.presets,ee=i.ranges,K=i.components,se=i.cellRender,le=i.dateRender,oe=i.monthCellRender,ne=i.onClick,he=HCe(t),me=BCe(C,E,y,w),ce=Re(me,2),re=ce[0],ve=ce[1],be=function(nn,In){(y.some(function(vr){return!vr})||!nn)&&ve(nn,In)},xe=qCe(T,O,s,!0,!1,p,m,P,B),we=Re(xe,5),de=we[0],Ee=we[1],Ne=we[2],Te=we[3],Ve=we[4],q=Ne(),U=UCe(y,b,re),Y=Re(U,9),ae=Y[0],ye=Y[1],fe=Y[2],Ae=Y[3],We=Y[4],ie=Y[5],Be=Y[6],Fe=Y[7],Pe=Y[8],Ke=function(nn,In){ye(!0),X==null||X(nn,{range:TR(In??Ae)})},tt=function(nn,In){ye(!1),Q==null||Q(nn,{range:TR(In??Ae)})},Ge=h.useMemo(function(){if(!D)return null;var mn=D.disabledTime,nn=mn?function(In){var vr=TR(Ae),Yn=OCe(q,Be,Ae);return mn(In,vr,{from:Yn})}:void 0;return z(z({},D),{},{disabledTime:nn})},[D,Ae,q,Be]),Nt=Pn([A,A],{value:M}),lt=Re(Nt,2),st=lt[0],It=lt[1],ct=st[Ae]||A,Pt=ct==="date"&&Ge?"datetime":ct,Rt=Pt===A&&Pt!=="time",Tt=KCe(A,ct,I,N,!0),Me=YCe(i,de,Ee,Ne,Te,y,s,ae,re,c),Ue=Re(Me,2),$e=Ue[0],Le=Ue[1],He=fat(q,y,Be,T,O,_),it=ACe(q,c,b),ft=Re(it,2),Et=ft[0],Dt=ft[1],St=zCe(T,O,q,st,re,Ae,o,Rt,G,L,Ge==null?void 0:Ge.defaultOpenValue,W,S,x),bt=Re(St,2),xt=bt[0],ht=bt[1],Vt=qn(function(mn,nn,In){var vr=ux(st,Ae,nn);if((vr[0]!==st[0]||vr[1]!==st[1])&&It(vr),k&&In!==!1){var Yn=rt(q);mn&&(Yn[Ae]=mn),k(Yn,vr)}}),at=function(nn,In){return ux(q,In,nn)},wt=function(nn,In){var vr=q;nn&&(vr=at(nn,Ae)),Fe(Ae);var Yn=ie(vr);Te(vr),$e(Ae,Yn===null),Yn===null?be(!1,{force:!0}):In||he.current.focus({index:Yn})},Gt=function(nn){var In,vr=nn.target.getRootNode();if(!he.current.nativeElement.contains((In=vr.activeElement)!==null&&In!==void 0?In:document.activeElement)){var Yn=y.findIndex(function(go){return!go});Yn>=0&&he.current.focus({index:Yn})}be(!0),ne==null||ne(nn)},$t=function(){Le(null),be(!1,{force:!0})},zt=h.useState(null),Ft=Re(zt,2),De=Ft[0],Ct=Ft[1],et=h.useState(null),Ot=Re(et,2),At=Ot[0],_n=Ot[1],zn=h.useMemo(function(){return At||q},[q,At]);h.useEffect(function(){re||_n(null)},[re]);var R=h.useState([0,0,0]),$=Re(R,2),J=$[0],Oe=$[1],qe=jCe(ue,ee),Qe=function(nn){_n(nn),Ct("preset")},Bt=function(nn){var In=Le(nn);In&&be(!1,{force:!0})},fn=function(nn){wt(nn)},gr=function(nn){_n(nn?at(nn,Ae):null),Ct("cell")},Jn=function(nn){be(!0),Ke(nn)},Hr=function(){fe("panel")},bi=function(nn){var In=ux(q,Ae,nn);Te(In),!g&&!a&&o===Pt&&wt(nn)},br=function(){be(!1)},wn=bY(se,le,oe,TR(Ae)),an=q[Ae]||null,yr=qn(function(mn){return c(mn,{activeIndex:Ae})}),Cn=h.useMemo(function(){var mn=Oi(i,!1),nn=ur(i,[].concat(rt(Object.keys(mn)),["onChange","onCalendarChange","style","className","onPanelChange","disabledTime"]));return nn},[i]),rn=h.createElement(ZCe,Xe({},Cn,{showNow:Tt,showTime:Ge,range:!0,multiplePanel:Rt,activeInfo:J,disabledDate:He,onFocus:Jn,onBlur:tt,onPanelMouseDown:Hr,picker:A,mode:ct,internalMode:Pt,onPanelChange:Vt,format:l,value:an,isInvalid:yr,onChange:null,onSelect:bi,pickerValue:xt,defaultOpenValue:yv(D==null?void 0:D.defaultOpenValue)[Ae],onPickerValueChange:ht,hoverValue:zn,onHover:gr,needConfirm:g,onSubmit:wt,onOk:Ve,presets:qe,onPresetHover:Qe,onPresetSubmit:Bt,onNow:fn,cellRender:wn})),Vn=function(nn,In){var vr=at(nn,In);Te(vr)},Er=function(){fe("input")},Lr=function(nn,In){var vr=Be.length,Yn=Be[vr-1];if(vr&&Yn!==In&&g&&!b[Yn]&&!Pe(Yn)&&q[Yn]){he.current.focus({index:Yn});return}fe("input"),be(!0,{inherit:!0}),Ae!==In&&re&&!g&&a&&wt(null,!0),We(In),Ke(nn,In)},Ii=function(nn,In){if(be(!1),!g&&fe()==="input"){var vr=ie(q);$e(Ae,vr===null)}tt(nn,In)},nr=function(nn,In){nn.key==="Tab"&&wt(null,!0),v==null||v(nn,In)},Wi=h.useMemo(function(){return{prefixCls:u,locale:O,generateConfig:T,button:K.button,input:K.input}},[u,O,T,K.button,K.input]);return er(function(){re&&Ae!==void 0&&Vt(null,A,!1)},[re,Ae,A]),er(function(){var mn=fe();!re&&mn==="input"&&(be(!1),wt(null,!0)),!re&&a&&!g&&mn==="panel"&&(be(!0),wt())},[re]),h.createElement(jd.Provider,{value:Wi},h.createElement(wCe,Xe({},RCe(i),{popupElement:rn,popupStyle:d.popup,popupClassName:f.popup,visible:re,onClose:br,range:!0}),h.createElement(jat,Xe({},i,{ref:he,suffixIcon:H,activeIndex:ae||re?Ae:null,activeHelp:!!At,allHelp:!!At&&De==="preset",focused:ae,onFocus:Lr,onBlur:Ii,onKeyDown:nr,onSubmit:wt,value:zn,maskFormat:l,onChange:Vn,onInputChange:Er,format:s,inputReadOnly:j,disabled:y,open:re,onOpenChange:be,onClick:Gt,onClear:$t,invalid:Et,onInvalid:Dt,onActiveInfo:Oe}))))}var zat=h.forwardRef(Uat);function Vat(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 p(v,y){return h.createElement("span",{className:Ce("".concat(d,"-item")),title:typeof v=="string"?v:null},h.createElement("span",{className:"".concat(d,"-item-content")},v),!s&&y&&h.createElement("span",{onMouseDown:function(_){_.preventDefault()},onClick:y,className:"".concat(d,"-item-remove")},o))}function m(v){var y=a(v),b=function(S){S&&S.stopPropagation(),r(v)};return p(y,b)}function g(v){var y="+ ".concat(v.length," ...");return p(y)}return h.createElement("div",{className:u},h.createElement(pd,{prefixCls:f,data:n,renderItem:m,renderRest:g,itemKey:function(y){return a(y)},maxCount:l}),!n.length&&h.createElement("span",{className:"".concat(t,"-selection-placeholder")},c))}var Gat=["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 Wat(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,p=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 S=e.disabled,x=e.invalid;e.inputReadOnly;var E=e.direction;e.onOpenChange;var C=e.onMouseDown;e.required,e["aria-required"];var w=e.autoFocus,O=e.tabIndex,T=e.removeIcon,A=kt(e,Gat),I=E==="rtl",N=h.useContext(jd),D=N.prefixCls,M=h.useRef(),k=h.useRef();h.useImperativeHandle(t,function(){return{nativeElement:M.current,focus:function(ee){var K;(K=k.current)===null||K===void 0||K.focus(ee)},blur:function(){var ee;(ee=k.current)===null||ee===void 0||ee.blur()}}});var P=exe(A),B=function(ee){v([ee])},G=function(ee){var K=g.filter(function(se){return se&&!As(l,s,se,ee,m)});v(K),n||y()},L=JCe(z(z({},e),{},{onChange:B}),function(ue){var ee=ue.valueTexts;return{value:ee[0]||"",active:a}}),W=Re(L,2),j=W[0],H=W[1],X=!!(i&&g.length&&!S),Q=b?h.createElement(h.Fragment,null,h.createElement(Vat,{prefixCls:D,value:g,onRemove:G,formatDate:H,maxTagCount:_,disabled:S,removeIcon:T,placeholder:c}),h.createElement("input",{className:"".concat(D,"-multiple-input"),value:g.map(H).join(","),ref:k,readOnly:!0,autoFocus:w,tabIndex:O}),h.createElement(XP,{type:"suffix",icon:o}),X&&h.createElement(XH,{icon:i,onClear:p})):h.createElement(ZH,Xe({ref:k},j(),{autoFocus:w,tabIndex:O,suffixIcon:o,clearIcon:X&&h.createElement(XH,{icon:i,onClear:p}),showActiveCls:!1}));return h.createElement("div",Xe({},P,{className:Ce(D,te(te(te(te(te({},"".concat(D,"-multiple"),b),"".concat(D,"-focused"),a),"".concat(D,"-disabled"),S),"".concat(D,"-invalid"),x),"".concat(D,"-rtl"),I),u),style:d,ref:M,onClick:f,onMouseDown:function(ee){var K,se=ee.target;se!==((K=k.current)===null||K===void 0?void 0:K.inputElement)&&ee.preventDefault(),C==null||C(ee)}}),r&&h.createElement("div",{className:"".concat(D,"-prefix")},r),Q)}var qat=h.forwardRef(Wat);function Yat(e,t){var n=FCe(e),r=Re(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,p=u.classNames,m=u.order,g=u.defaultValue,v=u.value,y=u.needConfirm,b=u.onChange,_=u.onKeyDown,S=u.disabled,x=u.disabledDate,E=u.minDate,C=u.maxDate,w=u.defaultOpen,O=u.open,T=u.onOpenChange,A=u.locale,I=u.generateConfig,N=u.picker,D=u.showNow,M=u.showToday,k=u.showTime,P=u.mode,B=u.onPanelChange,G=u.onCalendarChange,L=u.onOk,W=u.multiple,j=u.defaultPickerValue,H=u.pickerValue,X=u.onPickerValueChange,Q=u.inputReadOnly,ue=u.suffixIcon,ee=u.removeIcon,K=u.onFocus,se=u.onBlur,le=u.presets,oe=u.components,ne=u.cellRender,he=u.dateRender,me=u.monthCellRender,ce=u.onClick,re=HCe(t);function ve(Cn){return Cn===null?null:W?Cn:Cn[0]}var be=QCe(I,A,o),xe=BCe(O,w,[S],T),we=Re(xe,2),de=we[0],Ee=we[1],Ne=function(rn,Vn,Er){if(G){var Lr=z({},Er);delete Lr.range,G(ve(rn),ve(Vn),Lr)}},Te=function(rn){L==null||L(ve(rn))},Ve=qCe(I,A,s,!1,m,g,v,Ne,Te),q=Re(Ve,5),U=q[0],Y=q[1],ae=q[2],ye=q[3],fe=q[4],Ae=ae(),We=UCe([S]),ie=Re(We,4),Be=ie[0],Fe=ie[1],Pe=ie[2],Ke=ie[3],tt=function(rn){Fe(!0),K==null||K(rn,{})},Ge=function(rn){Fe(!1),se==null||se(rn,{})},Nt=Pn(N,{value:P}),lt=Re(Nt,2),st=lt[0],It=lt[1],ct=st==="date"&&k?"datetime":st,Pt=KCe(N,st,D,M),Rt=b&&function(Cn,rn){b(ve(Cn),ve(rn))},Tt=YCe(z(z({},i),{},{onChange:Rt}),U,Y,ae,ye,[],s,Be,de,c),Me=Re(Tt,2),Ue=Me[1],$e=ACe(Ae,c),Le=Re($e,2),He=Le[0],it=Le[1],ft=h.useMemo(function(){return He.some(function(Cn){return Cn})},[He]),Et=function(rn,Vn){if(X){var Er=z(z({},Vn),{},{mode:Vn.mode[0]});delete Er.range,X(rn[0],Er)}},Dt=zCe(I,A,Ae,[st],de,Ke,o,!1,j,H,yv(k==null?void 0:k.defaultOpenValue),Et,E,C),St=Re(Dt,2),bt=St[0],xt=St[1],ht=qn(function(Cn,rn,Vn){if(It(rn),B&&Vn!==!1){var Er=Cn||Ae[Ae.length-1];B(Er,rn)}}),Vt=function(){Ue(ae()),Ee(!1,{force:!0})},at=function(rn){!S&&!re.current.nativeElement.contains(document.activeElement)&&re.current.focus(),Ee(!0),ce==null||ce(rn)},wt=function(){Ue(null),Ee(!1,{force:!0})},Gt=h.useState(null),$t=Re(Gt,2),zt=$t[0],Ft=$t[1],De=h.useState(null),Ct=Re(De,2),et=Ct[0],Ot=Ct[1],At=h.useMemo(function(){var Cn=[et].concat(rt(Ae)).filter(function(rn){return rn});return W?Cn:Cn.slice(0,1)},[Ae,et,W]),_n=h.useMemo(function(){return!W&&et?[et]:Ae.filter(function(Cn){return Cn})},[Ae,et,W]);h.useEffect(function(){de||Ot(null)},[de]);var zn=jCe(le),R=function(rn){Ot(rn),Ft("preset")},$=function(rn){var Vn=W?be(ae(),rn):[rn],Er=Ue(Vn);Er&&!W&&Ee(!1,{force:!0})},J=function(rn){$(rn)},Oe=function(rn){Ot(rn),Ft("cell")},qe=function(rn){Ee(!0),tt(rn)},Qe=function(rn){if(Pe("panel"),!(W&&ct!==N)){var Vn=W?be(ae(),rn):[rn];ye(Vn),!y&&!a&&o===ct&&Vt()}},Bt=function(){Ee(!1)},fn=bY(ne,he,me),gr=h.useMemo(function(){var Cn=Oi(i,!1),rn=ur(i,[].concat(rt(Object.keys(Cn)),["onChange","onCalendarChange","style","className","onPanelChange"]));return z(z({},rn),{},{multiple:i.multiple})},[i]),Jn=h.createElement(ZCe,Xe({},gr,{showNow:Pt,showTime:k,disabledDate:x,onFocus:qe,onBlur:Ge,picker:N,mode:st,internalMode:ct,onPanelChange:ht,format:l,value:Ae,isInvalid:c,onChange:null,onSelect:Qe,pickerValue:bt,defaultOpenValue:k==null?void 0:k.defaultOpenValue,onPickerValueChange:xt,hoverValue:At,onHover:Oe,needConfirm:y,onSubmit:Vt,onOk:fe,presets:zn,onPresetHover:R,onPresetSubmit:$,onNow:J,cellRender:fn})),Hr=function(rn){ye(rn)},bi=function(){Pe("input")},br=function(rn){Pe("input"),Ee(!0,{inherit:!0}),tt(rn)},wn=function(rn){Ee(!1),Ge(rn)},an=function(rn,Vn){rn.key==="Tab"&&Vt(),_==null||_(rn,Vn)},yr=h.useMemo(function(){return{prefixCls:d,locale:A,generateConfig:I,button:oe.button,input:oe.input}},[d,A,I,oe.button,oe.input]);return er(function(){de&&Ke!==void 0&&ht(null,N,!1)},[de,Ke,N]),er(function(){var Cn=Pe();!de&&Cn==="input"&&(Ee(!1),Vt()),!de&&a&&!y&&Cn==="panel"&&Vt()},[de]),h.createElement(jd.Provider,{value:yr},h.createElement(wCe,Xe({},RCe(i),{popupElement:Jn,popupStyle:f.popup,popupClassName:p.popup,visible:de,onClose:Bt}),h.createElement(qat,Xe({},i,{ref:re,suffixIcon:ue,removeIcon:ee,activeHelp:!!et,allHelp:!!et&&zt==="preset",focused:Be,onFocus:br,onBlur:wn,onKeyDown:an,onSubmit:Vt,value:_n,maskFormat:l,onChange:Hr,onInputChange:bi,internalPicker:o,format:s,inputReadOnly:Q,disabled:S,open:de,onOpenChange:Ee,onClick:at,onClear:wt,invalid:ft,onInvalid:function(rn){it(rn,0)}}))))}var Kat=h.forwardRef(Yat);const txe=h.createContext(null),Qat=txe.Provider,nxe=h.createContext(null),Xat=nxe.Provider;var Zat=["prefixCls","className","style","checked","disabled","defaultChecked","type","title","onChange"],rxe=h.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,p=e.onChange,m=kt(e,Zat),g=h.useRef(null),v=h.useRef(null),y=Pn(c,{value:a}),b=Re(y,2),_=b[0],S=b[1];h.useImperativeHandle(t,function(){return{focus:function(w){var O;(O=g.current)===null||O===void 0||O.focus(w)},blur:function(){var w;(w=g.current)===null||w===void 0||w.blur()},input:g.current,nativeElement:v.current}});var x=Ce(r,i,te(te({},"".concat(r,"-checked"),_),"".concat(r,"-disabled"),s)),E=function(w){s||("checked"in e||S(w.target.checked),p==null||p({target:z(z({},e),{},{type:d,checked:w.target.checked}),stopPropagation:function(){w.stopPropagation()},preventDefault:function(){w.preventDefault()},nativeEvent:w.nativeEvent}))};return h.createElement("span",{className:x,title:f,style:o,ref:v},h.createElement("input",Xe({},m,{className:"".concat(r,"-input"),ref:g,onChange:E,disabled:s,checked:!!_,type:d})),h.createElement("span",{className:"".concat(r,"-inner")}))});function ixe(e){const t=pe.useRef(null),n=()=>{tr.cancel(t.current),t.current=null};return[()=>{n(),t.current=tr(()=>{t.current=null})},o=>{t.current&&(o.stopPropagation(),n()),e==null||e(o)}]}const Jat=e=>{const{componentCls:t,antCls:n}=e,r=`${t}-group`;return{[r]:Object.assign(Object.assign({},mr(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"}})}},est=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:p,dotColorDisabled:m,lineType:g,radioColor:v,radioBgColor:y,calc:b}=e,_=`${t}-inner`,x=b(i).sub(b(4).mul(2)),E=b(1).mul(i).equal({unit:!0});return{[`${t}-wrapper`]:Object.assign(Object.assign({},mr(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:`${Ie(u)} ${g} ${r}`,borderRadius:"50%",visibility:"hidden",opacity:0,content:'""'},[t]:Object.assign(Object.assign({},mr(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({},wd(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:E,height:E,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:E,transform:"scale(0)",opacity:0,transition:`all ${o} ${s}`,content:'""'},boxSizing:"border-box",position:"relative",insetBlockStart:0,insetInlineStart:0,display:"block",width:E,height:E,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(x).div(i).equal()})`}}}},[`span${t} + *`]:{paddingInlineStart:p,paddingInlineEnd:p}})}},tst=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:p,controlHeightSM:m,paddingXS:g,borderRadius:v,borderRadiusSM:y,borderRadiusLG:b,buttonCheckedBg:_,buttonSolidCheckedColor:S,colorTextDisabled:x,colorBgContainerDisabled:E,buttonCheckedBgDisabled:C,buttonCheckedColorDisabled:w,colorPrimary:O,colorPrimaryHover:T,colorPrimaryActive:A,buttonSolidCheckedBg:I,buttonSolidCheckedHoverBg:N,buttonSolidCheckedActiveBg:D,calc:M}=e;return{[`${r}-button-wrapper`]:{position:"relative",display:"inline-block",height:n,margin:0,paddingInline:c,paddingBlock:0,color:t,fontSize:u,lineHeight:Ie(M(n).sub(M(i).mul(2)).equal()),background:d,border:`${Ie(i)} ${o} ${a}`,borderBlockStartWidth:M(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:M(i).mul(-1).equal(),insetInlineStart:M(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:`${Ie(i)} ${o} ${a}`,borderStartStartRadius:v,borderEndStartRadius:v},"&:last-child":{borderStartEndRadius:v,borderEndEndRadius:v},"&:first-child:last-child":{borderRadius:v},[`${r}-group-large &`]:{height:p,fontSize:f,lineHeight:Ie(M(p).sub(M(i).mul(2)).equal()),"&:first-child":{borderStartStartRadius:b,borderEndStartRadius:b},"&:last-child":{borderStartEndRadius:b,borderEndEndRadius:b}},[`${r}-group-small &`]:{height:m,paddingInline:M(g).sub(i).equal(),paddingBlock:0,lineHeight:Ie(M(m).sub(M(i).mul(2)).equal()),"&:first-child":{borderStartStartRadius:y,borderEndStartRadius:y},"&:last-child":{borderStartEndRadius:y,borderEndEndRadius:y}},"&:hover":{position:"relative",color:O},"&:has(:focus-visible)":Object.assign({},wd(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:O,background:_,borderColor:O,"&::before":{backgroundColor:O},"&:first-child":{borderColor:O},"&:hover":{color:T,borderColor:T,"&::before":{backgroundColor:T}},"&:active":{color:A,borderColor:A,"&::before":{backgroundColor:A}}},[`${r}-group-solid &-checked:not(${r}-button-wrapper-disabled)`]:{color:S,background:I,borderColor:I,"&:hover":{color:S,background:N,borderColor:N},"&:active":{color:S,background:D,borderColor:D}},"&-disabled":{color:x,backgroundColor:E,borderColor:a,cursor:"not-allowed","&:first-child, &:hover":{color:x,backgroundColor:E,borderColor:a}},[`&-disabled${r}-button-wrapper-checked`]:{color:w,backgroundColor:C,borderColor:a,boxShadow:"none"},"&-block":{flex:1,textAlign:"center"}}}},nst=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:p,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:p,buttonBg:s,buttonCheckedBg:s,buttonColor:a,buttonCheckedBgDisabled:c,buttonCheckedColorDisabled:l,buttonPaddingInline:n-i,wrapperMarginInlineEnd:r,radioColor:t?d:m,radioBgColor:t?s:d}},oxe=ir("Radio",e=>{const{controlOutline:t,controlOutlineWidth:n}=e,r=`0 0 0 ${Ie(n)} ${t}`,o=Un(e,{radioFocusShadow:r,radioButtonFocusShadow:r});return[Jat(o),est(o),tst(o)]},nst,{unitless:{radioSize:!0,dotSize:!0}});var rst=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const ist=(e,t)=>{var n,r;const i=h.useContext(txe),o=h.useContext(nxe),{getPrefixCls:a,direction:s,radio:l}=h.useContext(cn),c=h.useRef(null),u=aa(t,c),{isFormItemInput:d}=h.useContext(oa),f=k=>{var P,B;(P=e.onChange)===null||P===void 0||P.call(e,k),(B=i==null?void 0:i.onChange)===null||B===void 0||B.call(i,k)},{prefixCls:p,className:m,rootClassName:g,children:v,style:y,title:b}=e,_=rst(e,["prefixCls","className","rootClassName","children","style","title"]),S=a("radio",p),x=((i==null?void 0:i.optionType)||o)==="button",E=x?`${S}-button`:S,C=gi(S),[w,O,T]=oxe(S,C),A=Object.assign({},_),I=h.useContext(Yo);i&&(A.name=i.name,A.onChange=f,A.checked=e.value===i.value,A.disabled=(n=A.disabled)!==null&&n!==void 0?n:i.disabled),A.disabled=(r=A.disabled)!==null&&r!==void 0?r:I;const N=Ce(`${E}-wrapper`,{[`${E}-wrapper-checked`]:A.checked,[`${E}-wrapper-disabled`]:A.disabled,[`${E}-wrapper-rtl`]:s==="rtl",[`${E}-wrapper-in-form-item`]:d,[`${E}-wrapper-block`]:!!(i!=null&&i.block)},l==null?void 0:l.className,m,g,O,T,C),[D,M]=ixe(A.onClick);return w(h.createElement(n2,{component:"Radio",disabled:A.disabled},h.createElement("label",{className:N,style:Object.assign(Object.assign({},l==null?void 0:l.style),y),onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,title:b,onClick:D},h.createElement(rxe,Object.assign({},A,{className:Ce(A.className,{[yP]:!x}),type:"radio",prefixCls:E,ref:u,onClick:M})),v!==void 0?h.createElement("span",{className:`${E}-label`},v):null)))},z4=h.forwardRef(ist),ost=h.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r}=h.useContext(cn),i=a2(),{prefixCls:o,className:a,rootClassName:s,options:l,buttonStyle:c="outline",disabled:u,children:d,size:f,style:p,id:m,optionType:g,name:v=i,defaultValue:y,value:b,block:_=!1,onChange:S,onMouseEnter:x,onMouseLeave:E,onFocus:C,onBlur:w}=e,[O,T]=Pn(y,{value:b}),A=h.useCallback(j=>{const H=O,X=j.target.value;"value"in e||T(X),X!==H&&(S==null||S(j))},[O,T,S]),I=n("radio",o),N=`${I}-group`,D=gi(I),[M,k,P]=oxe(I,D);let B=d;l&&l.length>0&&(B=l.map(j=>typeof j=="string"||typeof j=="number"?h.createElement(z4,{key:j.toString(),prefixCls:I,disabled:u,value:j,checked:O===j},j):h.createElement(z4,{key:`radio-group-value-options-${j.value}`,prefixCls:I,disabled:j.disabled||u,value:j.value,checked:O===j.value,title:j.title,style:j.style,className:j.className,id:j.id,required:j.required},j.label)));const G=mo(f),L=Ce(N,`${N}-${c}`,{[`${N}-${G}`]:G,[`${N}-rtl`]:r==="rtl",[`${N}-block`]:_},a,s,k,P,D),W=h.useMemo(()=>({onChange:A,value:O,disabled:u,name:v,optionType:g,block:_}),[A,O,u,v,g,_]);return M(h.createElement("div",Object.assign({},Oi(e,{aria:!0,data:!0}),{className:L,style:p,onMouseEnter:x,onMouseLeave:E,onFocus:C,onBlur:w,id:m,ref:t}),h.createElement(Qat,{value:W},B)))}),ast=h.memo(ost);var sst=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const lst=(e,t)=>{const{getPrefixCls:n}=h.useContext(cn),{prefixCls:r}=e,i=sst(e,["prefixCls"]),o=n("radio",r);return h.createElement(Xat,{value:"button"},h.createElement(z4,Object.assign({prefixCls:o},i,{type:"radio",ref:t})))},cst=h.forwardRef(lst),Qi=z4;Qi.Button=cst;Qi.Group=ast;Qi.__ANT_RADIO=!0;function Sv(e){return Un(e,{inputAffixPadding:e.paddingXXS})}const Ev=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:p,colorPrimary:m,controlOutlineWidth:g,controlOutline:v,colorErrorOutline:y,colorWarningOutline:b,colorBgContainer:_,inputFontSize:S,inputFontSizeLG:x,inputFontSizeSM:E}=e,C=S||n,w=E||C,O=x||s,T=Math.round((t-C*r)/2*10)/10-i,A=Math.round((o-w*r)/2*10)/10-i,I=Math.ceil((a-O*l)/2*10)/10-i;return{paddingBlock:Math.max(T,0),paddingBlockSM:Math.max(A,0),paddingBlockLG:Math.max(I,0),paddingInline:c-i,paddingInlineSM:u-i,paddingInlineLG:d-i,addonBg:f,activeBorderColor:m,hoverBorderColor:p,activeShadow:`0 0 0 ${g}px ${v}`,errorActiveShadow:`0 0 0 ${g}px ${y}`,warningActiveShadow:`0 0 0 ${g}px ${b}`,hoverBg:_,activeBg:_,inputFontSize:C,inputFontSizeLG:O,inputFontSizeSM:w}},ust=e=>({borderColor:e.hoverBorderColor,backgroundColor:e.hoverBg}),ZP=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({},ust(Un(e,{hoverBorderColor:e.colorBorder,hoverBg:e.colorBgContainerDisabled})))}),CY=(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}}),Aie=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},CY(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}}),[`&${e.componentCls}-status-${t.status}${e.componentCls}-disabled`]:{borderColor:t.borderColor}}),xY=(e,t)=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},CY(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},ZP(e))}),Aie(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError})),Aie(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning})),t)}),Iie=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{borderColor:t.addonBorderColor,color:t.addonColor}}}),axe=e=>({"&-outlined":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group`]:{"&-addon":{background:e.addonBg,border:`${Ie(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}}},Iie(e,{status:"error",addonBorderColor:e.colorError,addonColor:e.colorErrorText})),Iie(e,{status:"warning",addonBorderColor:e.colorWarning,addonColor:e.colorWarningText})),{[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group-addon`]:Object.assign({},ZP(e))}})}),wY=(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)}},sxe=(e,t)=>{var n;return{background:t.bg,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:"transparent","input&, & input, textarea&, & textarea":{color:(n=t==null?void 0:t.inputColor)!==null&&n!==void 0?n:"unset"},"&:hover":{background:t.hoverBg},"&:focus, &:focus-within":{outline:0,borderColor:t.activeBorderColor,backgroundColor:e.activeBg}}},Nie=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},sxe(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}})}),TY=(e,t)=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},sxe(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},ZP(e))}),Nie(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,inputColor:e.colorErrorText,affixColor:e.colorError})),Nie(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,inputColor:e.colorWarningText,affixColor:e.colorWarning})),t)}),Mie=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{background:t.addonBg,color:t.addonColor}}}),lxe=e=>({"&-filled":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group-addon`]:{background:e.colorFillTertiary,"&:last-child":{position:"static"}}},Mie(e,{status:"error",addonBg:e.colorErrorBg,addonColor:e.colorErrorText})),Mie(e,{status:"warning",addonBg:e.colorWarningBg,addonColor:e.colorWarningText})),{[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group`]:{"&-addon":{background:e.colorFillTertiary,color:e.colorTextDisabled},"&-addon:first-child":{borderInlineStart:`${Ie(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${Ie(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${Ie(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:last-child":{borderInlineEnd:`${Ie(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${Ie(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${Ie(e.lineWidth)} ${e.lineType} ${e.colorBorder}`}}}})}),cxe=(e,t)=>({background:e.colorBgContainer,borderWidth:`${Ie(e.lineWidth)} 0`,borderStyle:`${e.lineType} none`,borderColor:`transparent transparent ${t.borderColor} transparent`,borderRadius:0,"&:hover":{borderColor:`transparent transparent ${t.borderColor} transparent`,backgroundColor:e.hoverBg},"&:focus, &:focus-within":{borderColor:`transparent transparent ${t.borderColor} transparent`,outline:0,backgroundColor:e.activeBg}}),kie=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},cxe(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}}),[`&${e.componentCls}-status-${t.status}${e.componentCls}-disabled`]:{borderColor:`transparent transparent ${t.borderColor} transparent`}}),OY=(e,t)=>({"&-underlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},cxe(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow})),{[`&${e.componentCls}-disabled, &[disabled]`]:{color:e.colorTextDisabled,boxShadow:"none",cursor:"not-allowed","&:hover":{borderColor:`transparent transparent ${e.colorBorder} transparent`}},"input[disabled], textarea[disabled]":{cursor:"not-allowed"}}),kie(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError})),kie(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning})),t)}),RY=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),uxe=e=>{const{paddingBlockLG:t,lineHeightLG:n,borderRadiusLG:r,paddingInlineLG:i}=e;return{padding:`${Ie(t)} ${Ie(i)}`,fontSize:e.inputFontSizeLG,lineHeight:n,borderRadius:r}},AY=e=>({padding:`${Ie(e.paddingBlockSM)} ${Ie(e.paddingInlineSM)}`,fontSize:e.inputFontSizeSM,borderRadius:e.borderRadiusSM}),g2=e=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${Ie(e.paddingBlock)} ${Ie(e.paddingInline)}`,color:e.colorText,fontSize:e.inputFontSize,lineHeight:e.lineHeight,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`},RY(e.colorTextPlaceholder)),{"&-lg":Object.assign({},uxe(e)),"&-sm":Object.assign({},AY(e)),"&-rtl, &-textarea-rtl":{direction:"rtl"}}),dxe=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({},uxe(e)),[`&-sm ${t}, &-sm > ${t}-group-addon`]:Object.assign({},AY(e)),[`&-lg ${n}-select-single ${n}-select-selector`]:{height:e.controlHeightLG},[`&-sm ${n}-select-single ${n}-select-selector`]:{height:e.controlHeightSM},[`> ${t}`]:{display:"table-cell","&:not(:first-child):not(:last-child)":{borderRadius:0}},[`${t}-group`]:{"&-addon, &-wrap":{display:"table-cell",width:1,whiteSpace:"nowrap",verticalAlign:"middle","&:not(:first-child):not(:last-child)":{borderRadius:0}},"&-wrap > *":{display:"block !important"},"&-addon":{position:"relative",padding:`0 ${Ie(e.paddingInline)}`,color:e.colorText,fontWeight:"normal",fontSize:e.inputFontSize,textAlign:"center",borderRadius:e.borderRadius,transition:`all ${e.motionDurationSlow}`,lineHeight:1,[`${n}-select`]:{margin:`${Ie(e.calc(e.paddingBlock).add(1).mul(-1).equal())} ${Ie(e.calc(e.paddingInline).mul(-1).equal())}`,[`&${n}-select-single:not(${n}-select-customize-input):not(${n}-pagination-size-changer)`]:{[`${n}-select-selector`]:{backgroundColor:"inherit",border:`${Ie(e.lineWidth)} ${e.lineType} transparent`,boxShadow:"none"}}},[`${n}-cascader-picker`]:{margin:`-9px ${Ie(e.calc(e.paddingInline).mul(-1).equal())}`,backgroundColor:"transparent",[`${n}-cascader-input`]:{textAlign:"start",border:0,boxShadow:"none"}}}},[t]:{width:"100%",marginBottom:0,textAlign:"inherit","&:focus":{zIndex:1,borderInlineEndWidth:1},"&:hover":{zIndex:1,borderInlineEndWidth:1,[`${t}-search-with-button &`]:{zIndex:0}}},[`> ${t}:first-child, ${t}-group-addon:first-child`]:{borderStartEndRadius:0,borderEndEndRadius:0,[`${n}-select ${n}-select-selector`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}-affix-wrapper`]:{[`&:not(:first-child) ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0},[`&:not(:last-child) ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}:last-child, ${t}-group-addon:last-child`]:{borderStartStartRadius:0,borderEndStartRadius:0,[`${n}-select ${n}-select-selector`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`${t}-affix-wrapper`]:{"&:not(:last-child)":{borderStartEndRadius:0,borderEndEndRadius:0,[`${t}-search &`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius}},[`&:not(:first-child), ${t}-search &:not(:first-child)`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&${t}-group-compact`]:Object.assign(Object.assign({display:"block"},xd()),{[`${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}}}})}},dst=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(Object.assign({},mr(e)),g2(e)),xY(e)),TY(e)),wY(e)),OY(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':{appearance:"none"}})}},fst=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.colorIcon},"&:active":{color:e.colorText},"&-hidden":{visibility:"hidden"},"&-has-suffix":{margin:`0 ${Ie(e.inputAffixPadding)}`}}}},pst=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({},g2(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,direction:"ltr"},"&-show-count-has-suffix":{marginInlineEnd:e.paddingXXS},"&-prefix":{marginInlineEnd:n},"&-suffix":{marginInlineStart:n}}}),fst(e)),{[`${s}${t}-password-icon`]:{color:o,cursor:"pointer",transition:`all ${i}`,"&:hover":{color:a}}}),[`${t}-underlined`]:{borderRadius:0},[c]:{[`${s}${t}-password-icon`]:{color:o,cursor:"not-allowed","&:hover":{color:o}}}}},hst=e=>{const{componentCls:t,borderRadiusLG:n,borderRadiusSM:r}=e;return{[`${t}-group`]:Object.assign(Object.assign(Object.assign({},mr(e)),dxe(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}}},axe(e)),lxe(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}}})})}},mst=e=>{const{componentCls:t,antCls:n}=e,r=`${t}-search`;return{[r]:{[t]:{"&:hover, &:focus":{[`+ ${t}-group-addon ${r}-button:not(${n}-btn-color-primary):not(${n}-btn-variant-text)`]:{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-color-primary)`]:{color:e.colorTextDescription,"&:hover":{color:e.colorPrimaryHover},"&:active":{color:e.colorPrimaryActive},[`&${n}-btn-loading::before`]:{inset: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}}}}},gst=e=>{const{componentCls:t}=e;return{[`${t}-out-of-range`]:{[`&, & input, & textarea, ${t}-show-count-suffix, ${t}-data-count`]:{color:e.colorError}}}},fxe=ir(["Input","Shared"],e=>{const t=Un(e,Sv(e));return[dst(t),pst(t)]},Ev,{resetFont:!1}),pxe=ir(["Input","Component"],e=>{const t=Un(e,Sv(e));return[hst(t),mst(t),gst(t),bv(t)]},Ev,{resetFont:!1}),hL=(e,t)=>{const{componentCls:n,controlHeight:r}=e,i=t?`${n}-${t}`:"",o=EEe(e);return[{[`${n}-multiple${i}`]:{paddingBlock:o.containerPadding,paddingInlineStart:o.basePadding,minHeight:r,[`${n}-selection-item`]:{height:o.itemHeight,lineHeight:Ie(o.itemLineHeight)}}}]},vst=e=>{const{componentCls:t,calc:n,lineWidth:r}=e,i=Un(e,{fontHeight:e.fontSize,selectHeight:e.controlHeightSM,multipleSelectItemHeight:e.multipleItemHeightSM,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS,controlHeight:e.controlHeightSM}),o=Un(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[hL(i,"small"),hL(e),hL(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"}}},CEe(e)),{[`${t}-multiple-input`]:{width:0,height:0,border:0,visibility:"hidden",position:"absolute",zIndex:-1}})}]},bst=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:p,colorFillSecondary:m}=e;return{"&::before":{position:"absolute",top:"50%",insetInlineStart:0,insetInlineEnd:0,zIndex:1,height:r,transform:"translateY(-50%)",content:'""',pointerEvents:"none"},[n]:{position:"relative",zIndex:2,display:"inline-block",minWidth:r,height:r,lineHeight:Ie(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:`${Ie(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:p}},[`&-disabled${t}-today ${n}::before`]:{borderColor:f}}},yst=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:p,colorPrimary:m,colorTextHeading:g,colorSplit:v,pickerControlIconBorderWidth:y,colorIcon:b,textHeight:_,motionDurationMid:S,colorIconHover:x,fontWeightStrong:E,cellHeight:C,pickerCellPaddingVertical:w,colorTextDisabled:O,colorText:T,fontSize:A,motionDurationSlow:I,withoutTimeCellHeight:N,pickerQuarterPanelContentHeight:D,borderRadiusSM:M,colorTextLightSolid:k,cellHoverBg:P,timeColumnHeight:B,timeColumnWidth:G,timeCellHeight:L,controlItemBgActive:W,marginXXS:j,pickerDatePanelPaddingHorizontal:H,pickerControlIconMargin:X}=e,Q=e.calc(a).mul(7).add(e.calc(H).mul(2)).equal();return{[t]:{"&-panel":{display:"inline-flex",flexDirection:"column",textAlign:"center",background:u,borderRadius:p,outline:"none","&-focused":{borderColor:m},"&-rtl":{[`${t}-prev-icon,
${t}-super-prev-icon`]:{transform:"rotate(45deg)"},[`${t}-next-icon,
${t}-super-next-icon`]:{transform:"rotate(-135deg)"},[`${t}-time-panel`]:{[`${t}-content`]:{direction:"ltr","> *":{direction:"rtl"}}}}},"&-decade-panel,\n &-year-panel,\n &-quarter-panel,\n &-month-panel,\n &-week-panel,\n &-date-panel,\n &-time-panel":{display:"flex",flexDirection:"column",width:Q},"&-header":{display:"flex",padding:`0 ${Ie(l)}`,color:g,borderBottom:`${Ie(d)} ${f} ${v}`,"> *":{flex:"none"},button:{padding:0,color:b,lineHeight:Ie(_),background:"transparent",border:0,cursor:"pointer",transition:`color ${S}`,fontSize:"inherit",display:"inline-flex",alignItems:"center",justifyContent:"center","&:empty":{display:"none"}},"> button":{minWidth:"1.6em",fontSize:A,"&:hover":{color:x},"&:disabled":{opacity:.25,pointerEvents:"none"}},"&-view":{flex:"auto",fontWeight:E,lineHeight:Ie(_),"> button":{color:"inherit",fontWeight:"inherit",verticalAlign:"top","&: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",borderBlockStartWidth:y,borderInlineStartWidth:y,content:'""'}},"&-super-prev-icon,\n &-super-next-icon":{"&::after":{position:"absolute",top:X,insetInlineStart:X,display:"inline-block",width:o,height:o,border:"0 solid currentcolor",borderBlockStartWidth:y,borderInlineStartWidth:y,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(w).mul(2)).equal(),color:T,verticalAlign:"middle"}},"&-cell":Object.assign({padding:`${Ie(w)} 0`,color:O,cursor:"pointer","&-in-view":{color:T}},bst(e)),"&-decade-panel,\n &-year-panel,\n &-quarter-panel,\n &-month-panel":{[`${t}-content`]:{height:e.calc(N).mul(4).equal()},[r]:{padding:`0 ${Ie(l)}`}},"&-quarter-panel":{[`${t}-content`]:{height:D}},"&-decade-panel":{[r]:{padding:`0 ${Ie(e.calc(l).div(2).equal())}`},[`${t}-cell::before`]:{display:"none"}},"&-year-panel,\n &-quarter-panel,\n &-month-panel":{[`${t}-body`]:{padding:`0 ${Ie(l)}`},[r]:{width:i}},"&-date-panel":{[`${t}-body`]:{padding:`${Ie(l)} ${Ie(H)}`},[`${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 ${S}`},"&:first-child:before":{borderStartStartRadius:M,borderEndStartRadius:M},"&:last-child:before":{borderStartEndRadius:M,borderEndEndRadius:M}},"&:hover td:before":{background:P},"&-range-start td, &-range-end td, &-selected td, &-hover td":{[`&${n}`]:{"&:before":{background:m},[`&${t}-cell-week`]:{color:new or(k).setA(.5).toHexString()},[r]:{color:k}}},"&-range-hover td:before":{background:W}}},"&-week-panel, &-date-panel-show-week":{[`${t}-body`]:{padding:`${Ie(l)} ${Ie(s)}`},[`${t}-content th`]:{width:"auto"}},"&-datetime-panel":{display:"flex",[`${t}-time-panel`]:{borderInlineStart:`${Ie(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:B},"&-column":{flex:"1 0 auto",width:G,margin:`${Ie(c)} 0`,padding:0,overflowY:"hidden",textAlign:"start",listStyle:"none",transition:`background ${S}`,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% - ${Ie(L)})`,content:'""'},"&:not(:first-child)":{borderInlineStart:`${Ie(d)} ${f} ${v}`},"&-active":{background:new or(W).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(G).sub(e.calc(j).mul(2)).equal(),height:L,margin:0,paddingBlock:0,paddingInlineEnd:0,paddingInlineStart:e.calc(G).sub(L).div(2).equal(),color:T,lineHeight:Ie(L),borderRadius:M,cursor:"pointer",transition:`background ${S}`,"&:hover":{background:P}},"&-selected":{[`${t}-time-panel-cell-inner`]:{background:W}},"&-disabled":{[`${t}-time-panel-cell-inner`]:{color:O,background:"transparent",cursor:"not-allowed"}}}}}}}}},_st=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:`${Ie(r)} ${c} ${u}`,"&-extra":{padding:`0 ${Ie(i)}`,lineHeight:Ie(e.calc(n).sub(e.calc(r).mul(2)).equal()),textAlign:"start","&:not(:last-child)":{borderBottom:`${Ie(r)} ${c} ${u}`}}},[`${t}-panels + ${t}-footer ${t}-ranges`]:{justifyContent:"space-between"},[`${t}-ranges`]:{marginBlock:0,paddingInline:Ie(i),overflow:"hidden",textAlign:"start",listStyle:"none",display:"flex",justifyContent:"center",alignItems:"center","> li":{lineHeight:Ie(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"}}}}},Sst=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()}},Est=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 or(e.colorPrimary).lighten(35).toHexString(),cellRangeBorderColor:new or(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"}},Cst=e=>Object.assign(Object.assign(Object.assign(Object.assign({},Ev(e)),Est(e)),HP(e)),{presetsWidth:120,presetsMaxWidth:200,zIndexPopup:e.zIndexPopupBase+50}),xst=e=>{const{componentCls:t}=e;return{[t]:[Object.assign(Object.assign(Object.assign(Object.assign({},xY(e)),OY(e)),TY(e)),wY(e)),{"&-outlined":{[`&${t}-multiple ${t}-selection-item`]:{background:e.multipleItemBg,border:`${Ie(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}},"&-filled":{[`&${t}-multiple ${t}-selection-item`]:{background:e.colorBgContainer,border:`${Ie(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}},"&-borderless":{[`&${t}-multiple ${t}-selection-item`]:{background:e.multipleItemBg,border:`${Ie(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}},"&-underlined":{[`&${t}-multiple ${t}-selection-item`]:{background:e.multipleItemBg,border:`${Ie(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}}}]}},mL=(e,t)=>({padding:`${Ie(e)} ${Ie(t)}`}),wst=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}}}}},Tst=e=>{var t;const{componentCls:n,antCls:r,paddingInline:i,lineWidth:o,lineType:a,colorBorder:s,borderRadius:l,motionDurationMid:c,colorTextDisabled:u,colorTextPlaceholder:d,fontSizeLG:f,inputFontSizeLG:p,fontSizeSM:m,inputFontSizeSM:g,controlHeightSM:v,paddingInlineSM:y,paddingXS:b,marginXS:_,colorIcon:S,lineWidthBold:x,colorPrimary:E,motionDurationSlow:C,zIndexPopup:w,paddingXXS:O,sizePopupArrow:T,colorBgElevated:A,borderRadiusLG:I,boxShadowSecondary:N,borderRadiusSM:D,colorSplit:M,cellHoverBg:k,presetsWidth:P,presetsMaxWidth:B,boxShadowPopoverArrow:G,fontHeight:L,lineHeightLG:W}=e;return[{[n]:Object.assign(Object.assign(Object.assign({},mr(e)),mL(e.paddingBlock,e.paddingInline)),{position:"relative",display:"inline-flex",alignItems:"center",lineHeight:1,borderRadius:l,transition:`border ${c}, box-shadow ${c}, background ${c}`,[`${n}-prefix`]:{flex:"0 0 auto",marginInlineEnd:e.inputAffixPadding},[`${n}-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:(t=e.inputFontSize)!==null&&t!==void 0?t:e.fontSize,lineHeight:e.lineHeight,transition:`all ${c}`},RY(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({},mL(e.paddingBlockLG,e.paddingInlineLG)),{[`${n}-input > input`]:{fontSize:p??f,lineHeight:W}}),"&-small":Object.assign(Object.assign({},mL(e.paddingBlockSM,e.paddingInlineSM)),{[`${n}-input > input`]:{fontSize:g??m}}),[`${n}-suffix`]:{display:"flex",flex:"none",alignSelf:"center",marginInlineStart:e.calc(b).div(2).equal(),color:u,lineHeight:1,pointerEvents:"none",transition:`opacity ${c}, color ${c}`,"> *":{verticalAlign:"top","&:not(:last-child)":{marginInlineEnd:_}}},[`${n}-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:S}},"&:hover":{[`${n}-clear`]:{opacity:1},[`${n}-suffix:not(:last-child)`]:{opacity:0}},[`${n}-separator`]:{position:"relative",display:"inline-block",width:"1em",height:f,color:u,fontSize:f,verticalAlign:"top",cursor:"default",[`${n}-focused &`]:{color:S},[`${n}-range-separator &`]:{[`${n}-disabled &`]:{cursor:"not-allowed"}}},"&-range":{position:"relative",display:"inline-flex",[`${n}-active-bar`]:{bottom:e.calc(o).mul(-1).equal(),height:x,background:E,opacity:0,transition:`all ${C} ease-out`,pointerEvents:"none"},[`&${n}-focused`]:{[`${n}-active-bar`]:{opacity:1}},[`${n}-range-separator`]:{alignItems:"center",padding:`0 ${Ie(b)}`,lineHeight:1}},"&-range, &-multiple":{[`${n}-clear`]:{insetInlineEnd:i},[`&${n}-small`]:{[`${n}-clear`]:{insetInlineEnd:y}}},"&-dropdown":Object.assign(Object.assign(Object.assign({},mr(e)),yst(e)),{pointerEvents:"none",position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:w,[`&${n}-dropdown-hidden`]:{display:"none"},"&-rtl":{direction:"rtl"},[`&${n}-dropdown-placement-bottomLeft,
&${n}-dropdown-placement-bottomRight`]:{[`${n}-range-arrow`]:{top:0,display:"block",transform:"translateY(-100%)"}},[`&${n}-dropdown-placement-topLeft,
&${n}-dropdown-placement-topRight`]:{[`${n}-range-arrow`]:{bottom:0,display:"block",transform:"translateY(100%) rotate(180deg)"}},[`&${r}-slide-up-appear, &${r}-slide-up-enter`]:{[`${n}-range-arrow${n}-range-arrow`]:{transition:"none"}},[`&${r}-slide-up-enter${r}-slide-up-enter-active${n}-dropdown-placement-topLeft,
&${r}-slide-up-enter${r}-slide-up-enter-active${n}-dropdown-placement-topRight,
&${r}-slide-up-appear${r}-slide-up-appear-active${n}-dropdown-placement-topLeft,
&${r}-slide-up-appear${r}-slide-up-appear-active${n}-dropdown-placement-topRight`]:{animationName:xP},[`&${r}-slide-up-enter${r}-slide-up-enter-active${n}-dropdown-placement-bottomLeft,
&${r}-slide-up-enter${r}-slide-up-enter-active${n}-dropdown-placement-bottomRight,
&${r}-slide-up-appear${r}-slide-up-appear-active${n}-dropdown-placement-bottomLeft,
&${r}-slide-up-appear${r}-slide-up-appear-active${n}-dropdown-placement-bottomRight`]:{animationName:EP},[`&${r}-slide-up-leave ${n}-panel-container`]:{pointerEvents:"none"},[`&${r}-slide-up-leave${r}-slide-up-leave-active${n}-dropdown-placement-topLeft,
&${r}-slide-up-leave${r}-slide-up-leave-active${n}-dropdown-placement-topRight`]:{animationName:wP},[`&${r}-slide-up-leave${r}-slide-up-leave-active${n}-dropdown-placement-bottomLeft,
&${r}-slide-up-leave${r}-slide-up-leave-active${n}-dropdown-placement-bottomRight`]:{animationName:CP},[`${n}-panel > ${n}-time-panel`]:{paddingTop:O},[`${n}-range-wrapper`]:{display:"flex",position:"relative"},[`${n}-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 ${C} ease-out`},MEe(e,A,G)),{"&:before":{insetInlineStart:e.calc(i).mul(1.5).equal()}}),[`${n}-panel-container`]:{overflow:"hidden",verticalAlign:"top",background:A,borderRadius:I,boxShadow:N,transition:`margin ${C}`,display:"inline-block",pointerEvents:"auto",[`${n}-panel-layout`]:{display:"flex",flexWrap:"nowrap",alignItems:"stretch"},[`${n}-presets`]:{display:"flex",flexDirection:"column",minWidth:P,maxWidth:B,ul:{height:0,flex:"auto",listStyle:"none",overflow:"auto",margin:0,padding:b,borderInlineEnd:`${Ie(o)} ${a} ${M}`,li:Object.assign(Object.assign({},Hl),{borderRadius:D,paddingInline:b,paddingBlock:e.calc(v).sub(L).div(2).equal(),cursor:"pointer",transition:`all ${C}`,"+ li":{marginTop:_},"&:hover":{background:k}})}},[`${n}-panels`]:{display:"inline-flex",flexWrap:"nowrap","&:last-child":{[`${n}-panel`]:{borderWidth:0}}},[`${n}-panel`]:{verticalAlign:"top",background:"transparent",borderRadius:0,borderWidth:0,[`${n}-content, table`]:{textAlign:"center"},"&-focused":{borderColor:s}}}}),"&-dropdown-range":{padding:`${Ie(e.calc(T).mul(2).div(3).equal())} 0`,"&-hidden":{display:"none"}},"&-rtl":{direction:"rtl",[`${n}-separator`]:{transform:"scale(-1, 1)"},[`${n}-footer`]:{"&-extra":{direction:"rtl"}}}})},Lf(e,"slide-up"),Lf(e,"slide-down"),p_(e,"move-up"),p_(e,"move-down")]},hxe=ir("DatePicker",e=>{const t=Un(Sv(e),Sst(e),{inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(1).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[_st(t),Tst(t),xst(t),wst(t),vst(t),bv(e,{focusElCls:`${e.componentCls}-focused`})]},Cst);var Ost={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"},Rst=function(t,n){return h.createElement(Mn,Xe({},t,{ref:n,icon:Ost}))},v2=h.forwardRef(Rst);const JP=h.createContext(null);var Ast=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=h.useState(),d=Re(u,2),f=d[0],p=d[1],m=h.useRef(),g=pe.useCallback(function(y){return typeof s=="function"?s(y):typeof s=="number"?s:y},[s]);function v(){tr.cancel(m.current)}return h.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=tr(function(){var _=f&&y&&Object.keys(y).every(function(S){var x=y[S],E=f[S];return typeof x=="number"&&typeof E=="number"?Math.round(x)===Math.round(E):x===E});_||p(y)}),v},[JSON.stringify(n),r,i,c,g]),{style:f}},Pie={width:0,height:0,left:0,top:0};function Ist(e,t,n){return h.useMemo(function(){for(var r,i=new Map,o=t.get((r=e[0])===null||r===void 0?void 0:r.key)||Pie,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)||Pie}var d=i.get(l)||z({},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 Die(e,t){var n=h.useRef(e),r=h.useState({}),i=Re(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,Lie=.01,MI=20,$ie=Math.pow(.995,MI);function Mst(e,t){var n=h.useState(),r=Re(n,2),i=r[0],o=r[1],a=h.useState(0),s=Re(a,2),l=s[0],c=s[1],u=h.useState(0),d=Re(u,2),f=d[0],p=d[1],m=h.useState(),g=Re(m,2),v=g[0],y=g[1],b=h.useRef();function _(O){var T=O.touches[0],A=T.screenX,I=T.screenY;o({x:A,y:I}),window.clearInterval(b.current)}function S(O){if(i){var T=O.touches[0],A=T.screenX,I=T.screenY;o({x:A,y:I});var N=A-i.x,D=I-i.y;t(N,D);var M=Date.now();c(M),p(M-l),y({x:N,y:D})}}function x(){if(i&&(o(null),y(null),v)){var O=v.x/f,T=v.y/f,A=Math.abs(O),I=Math.abs(T);if(Math.max(A,I)<Nst)return;var N=O,D=T;b.current=window.setInterval(function(){if(Math.abs(N)<Lie&&Math.abs(D)<Lie){window.clearInterval(b.current);return}N*=$ie,D*=$ie,t(N*MI,D*MI)},MI)}}var E=h.useRef();function C(O){var T=O.deltaX,A=O.deltaY,I=0,N=Math.abs(T),D=Math.abs(A);N===D?I=E.current==="x"?T:A:N>D?(I=T,E.current="x"):(I=A,E.current="y"),t(-I,-I)&&O.preventDefault()}var w=h.useRef(null);w.current={onTouchStart:_,onTouchMove:S,onTouchEnd:x,onWheel:C},h.useEffect(function(){function O(N){w.current.onTouchStart(N)}function T(N){w.current.onTouchMove(N)}function A(N){w.current.onTouchEnd(N)}function I(N){w.current.onWheel(N)}return document.addEventListener("touchmove",T,{passive:!1}),document.addEventListener("touchend",A,{passive:!0}),e.current.addEventListener("touchstart",O,{passive:!0}),e.current.addEventListener("wheel",I,{passive:!1}),function(){document.removeEventListener("touchmove",T),document.removeEventListener("touchend",A)}},[])}function mxe(e){var t=h.useState(0),n=Re(t,2),r=n[0],i=n[1],o=h.useRef(0),a=h.useRef();return a.current=e,a1(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 kst(e){var t=h.useRef([]),n=h.useState({}),r=Re(n,2),i=r[1],o=h.useRef(typeof e=="function"?e():e),a=mxe(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 Fie={width:0,height:0,left:0,top:0,right:0};function Pst(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),h.useMemo(function(){if(!s.length)return[0,0];for(var p=s.length,m=p,g=0;g<p;g+=1){var v=e.get(s[g].key)||Fie;if(Math.floor(v[d]+v[u])>Math.floor(f+t)){m=g-1;break}}for(var y=0,b=p-1;b>=0;b-=1){var _=e.get(s[b].key)||Fie;if(_[d]<f){y=b+1;break}}return y>=m?[0,0]:[y,m]},[e,t,r,i,o,f,l,s.map(function(p){return p.key}).join("_"),c])}function Bie(e){var t;return e instanceof Map?(t={},e.forEach(function(n,r){t[r]=n})):t=e,JSON.stringify(t)}var Dst="TABS_DQ";function gxe(e){return String(e).replace(/"/g,Dst)}function IY(e,t,n,r){return!(!n||r||e===!1||e===void 0&&(t===!1||t===null))}var vxe=h.forwardRef(function(e,t){var n=e.prefixCls,r=e.editable,i=e.locale,o=e.style;return!r||r.showAdd===!1?null:h.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||"+")}),Hie=h.forwardRef(function(e,t){var n=e.position,r=e.prefixCls,i=e.extra;if(!i)return null;var o,a={};return qt(i)==="object"&&!h.isValidElement(i)?a=i:a.right=i,n==="right"&&(o=a.right),n==="left"&&(o=a.left),o?h.createElement("div",{className:"".concat(r,"-extra-content"),ref:t},o):null}),Lst=h.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,p=e.rtl,m=e.removeAriaLabel,g=e.onTabClick,v=e.getPopupContainer,y=e.popupClassName,b=h.useState(!1),_=Re(b,2),S=_[0],x=_[1],E=h.useState(null),C=Re(E,2),w=C[0],O=C[1],T=l.icon,A=T===void 0?"More":T,I="".concat(r,"-more-popup"),N="".concat(n,"-dropdown"),D=w!==null?"".concat(I,"-").concat(w):null,M=o==null?void 0:o.dropdownAriaLabel;function k(H,X){H.preventDefault(),H.stopPropagation(),d.onEdit("remove",{key:X,event:H})}var P=h.createElement(bS,{onClick:function(X){var Q=X.key,ue=X.domEvent;g(Q,ue),x(!1)},prefixCls:"".concat(N,"-menu"),id:I,tabIndex:-1,role:"listbox","aria-activedescendant":D,selectedKeys:[w],"aria-label":M!==void 0?M:"expanded dropdown"},i.map(function(H){var X=H.closable,Q=H.disabled,ue=H.closeIcon,ee=H.key,K=H.label,se=IY(X,ue,d,Q);return h.createElement(p2,{key:ee,id:"".concat(I,"-").concat(ee),role:"option","aria-controls":r&&"".concat(r,"-panel-").concat(ee),disabled:Q},h.createElement("span",null,K),se&&h.createElement("button",{type:"button","aria-label":m||"remove",tabIndex:0,className:"".concat(N,"-menu-item-remove"),onClick:function(oe){oe.stopPropagation(),k(oe,ee)}},ue||d.removeIcon||"×"))}));function B(H){for(var X=i.filter(function(se){return!se.disabled}),Q=X.findIndex(function(se){return se.key===w})||0,ue=X.length,ee=0;ee<ue;ee+=1){Q=(Q+H+ue)%ue;var K=X[Q];if(!K.disabled){O(K.key);return}}}function G(H){var X=H.which;if(!S){[Ut.DOWN,Ut.SPACE,Ut.ENTER].includes(X)&&(x(!0),H.preventDefault());return}switch(X){case Ut.UP:B(-1),H.preventDefault();break;case Ut.DOWN:B(1),H.preventDefault();break;case Ut.ESC:x(!1);break;case Ut.SPACE:case Ut.ENTER:w!==null&&g(w,H);break}}h.useEffect(function(){var H=document.getElementById(D);H&&H.scrollIntoView&&H.scrollIntoView(!1)},[w]),h.useEffect(function(){S||O(null)},[S]);var L=te({},p?"marginRight":"marginLeft",f);i.length||(L.visibility="hidden",L.order=1);var W=Ce(te({},"".concat(N,"-rtl"),p)),j=a?null:h.createElement(UEe,Xe({prefixCls:N,overlay:P,visible:i.length?S:!1,onVisibleChange:x,overlayClassName:Ce(W,y),mouseEnterDelay:.1,mouseLeaveDelay:.1,getPopupContainer:v},l),h.createElement("button",{type:"button",className:"".concat(n,"-nav-more"),style:L,"aria-haspopup":"listbox","aria-controls":I,id:"".concat(r,"-more"),"aria-expanded":S,onKeyDown:G},A));return h.createElement("div",{className:Ce("".concat(n,"-nav-operations"),u),style:c,ref:t},j,h.createElement(vxe,{prefixCls:n,locale:o,editable:d}))});const $st=h.memo(Lst,function(e,t){return t.tabMoving});var Fst=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,p=t.renderWrapper,m=t.removeAriaLabel,g=t.editable,v=t.onClick,y=t.onFocus,b=t.onBlur,_=t.onKeyDown,S=t.onMouseDown,x=t.onMouseUp,E=t.style,C=t.tabCount,w=t.currentPosition,O="".concat(n,"-tab"),T=IY(f,u,g,c);function A(k){c||v(k)}function I(k){k.preventDefault(),k.stopPropagation(),g.onEdit("remove",{key:s,event:k})}var N=h.useMemo(function(){return d&&typeof l=="string"?h.createElement("span",null,l):l},[l,d]),D=h.useRef(null);h.useEffect(function(){o&&D.current&&D.current.focus()},[o]);var M=h.createElement("div",{key:s,"data-node-key":gxe(s),className:Ce(O,te(te(te(te({},"".concat(O,"-with-remove"),T),"".concat(O,"-active"),i),"".concat(O,"-disabled"),c),"".concat(O,"-focus"),o)),style:E,onClick:A},h.createElement("div",{ref:D,role:"tab","aria-selected":i,id:r&&"".concat(r,"-tab-").concat(s),className:"".concat(O,"-btn"),"aria-controls":r&&"".concat(r,"-panel-").concat(s),"aria-disabled":c,tabIndex:c?null:i?0:-1,onClick:function(P){P.stopPropagation(),A(P)},onKeyDown:_,onMouseDown:S,onMouseUp:x,onFocus:y,onBlur:b},o&&h.createElement("div",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},"Tab ".concat(w," of ").concat(C)),d&&h.createElement("span",{className:"".concat(O,"-icon")},d),l&&N),T&&h.createElement("button",{type:"button",role:"tab","aria-label":m||"remove",tabIndex:i?0:-1,className:"".concat(O,"-remove"),onClick:function(P){P.stopPropagation(),I(P)}},u||g.removeIcon||"×"));return p?p(M):M},Bst=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]},ab=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]},OR=function(t,n){return t[n?0:1]},jie=h.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,p=e.children,m=e.onTabClick,g=e.onTabScroll,v=e.indicator,y=h.useContext(JP),b=y.prefixCls,_=y.tabs,S=h.useRef(null),x=h.useRef(null),E=h.useRef(null),C=h.useRef(null),w=h.useRef(null),O=h.useRef(null),T=h.useRef(null),A=d==="top"||d==="bottom",I=Die(0,function(Ct,et){A&&g&&g({direction:Ct>et?"left":"right"})}),N=Re(I,2),D=N[0],M=N[1],k=Die(0,function(Ct,et){!A&&g&&g({direction:Ct>et?"top":"bottom"})}),P=Re(k,2),B=P[0],G=P[1],L=h.useState([0,0]),W=Re(L,2),j=W[0],H=W[1],X=h.useState([0,0]),Q=Re(X,2),ue=Q[0],ee=Q[1],K=h.useState([0,0]),se=Re(K,2),le=se[0],oe=se[1],ne=h.useState([0,0]),he=Re(ne,2),me=he[0],ce=he[1],re=kst(new Map),ve=Re(re,2),be=ve[0],xe=ve[1],we=Ist(_,be,ue[0]),de=OR(j,A),Ee=OR(ue,A),Ne=OR(le,A),Te=OR(me,A),Ve=Math.floor(de)<Math.floor(Ee+Ne),q=Ve?de-Te:de-Ne,U="".concat(b,"-nav-operations-hidden"),Y=0,ae=0;A&&s?(Y=0,ae=Math.max(0,Ee-q)):(Y=Math.min(0,q-Ee),ae=0);function ye(Ct){return Ct<Y?Y:Ct>ae?ae:Ct}var fe=h.useRef(null),Ae=h.useState(),We=Re(Ae,2),ie=We[0],Be=We[1];function Fe(){Be(Date.now())}function Pe(){fe.current&&clearTimeout(fe.current)}Mst(C,function(Ct,et){function Ot(At,_n){At(function(zn){var R=ye(zn+_n);return R})}return Ve?(A?Ot(M,Ct):Ot(G,et),Pe(),Fe(),!0):!1}),h.useEffect(function(){return Pe(),ie&&(fe.current=setTimeout(function(){Be(0)},100)),Pe},[ie]);var Ke=Pst(we,q,A?D:B,Ee,Ne,Te,z(z({},e),{},{tabs:_})),tt=Re(Ke,2),Ge=tt[0],Nt=tt[1],lt=qn(function(){var Ct=arguments.length>0&&arguments[0]!==void 0?arguments[0]:a,et=we.get(Ct)||{width:0,height:0,left:0,right:0,top:0};if(A){var Ot=D;s?et.right<D?Ot=et.right:et.right+et.width>D+q&&(Ot=et.right+et.width-q):et.left<-D?Ot=-et.left:et.left+et.width>-D+q&&(Ot=-(et.left+et.width-q)),G(0),M(ye(Ot))}else{var At=B;et.top<-B?At=-et.top:et.top+et.height>-B+q&&(At=-(et.top+et.height-q)),M(0),G(ye(At))}}),st=h.useState(),It=Re(st,2),ct=It[0],Pt=It[1],Rt=h.useState(!1),Tt=Re(Rt,2),Me=Tt[0],Ue=Tt[1],$e=_.filter(function(Ct){return!Ct.disabled}).map(function(Ct){return Ct.key}),Le=function(et){var Ot=$e.indexOf(ct||a),At=$e.length,_n=(Ot+et+At)%At,zn=$e[_n];Pt(zn)},He=function(et){var Ot=et.code,At=s&&A,_n=$e[0],zn=$e[$e.length-1];switch(Ot){case"ArrowLeft":{A&&Le(At?1:-1);break}case"ArrowRight":{A&&Le(At?-1:1);break}case"ArrowUp":{et.preventDefault(),A||Le(-1);break}case"ArrowDown":{et.preventDefault(),A||Le(1);break}case"Home":{et.preventDefault(),Pt(_n);break}case"End":{et.preventDefault(),Pt(zn);break}case"Enter":case"Space":{et.preventDefault(),m(ct??a,et);break}case"Backspace":case"Delete":{var R=$e.indexOf(ct),$=_.find(function(Oe){return Oe.key===ct}),J=IY($==null?void 0:$.closable,$==null?void 0:$.closeIcon,c,$==null?void 0:$.disabled);J&&(et.preventDefault(),et.stopPropagation(),c.onEdit("remove",{key:ct,event:et}),R===$e.length-1?Le(-1):Le(1));break}}},it={};A?it[s?"marginRight":"marginLeft"]=f:it.marginTop=f;var ft=_.map(function(Ct,et){var Ot=Ct.key;return h.createElement(Fst,{id:i,prefixCls:b,key:Ot,tab:Ct,style:et===0?void 0:it,closable:Ct.closable,editable:c,active:Ot===a,focus:Ot===ct,renderWrapper:p,removeAriaLabel:u==null?void 0:u.removeAriaLabel,tabCount:$e.length,currentPosition:et+1,onClick:function(_n){m(Ot,_n)},onKeyDown:He,onFocus:function(){Me||Pt(Ot),lt(Ot),Fe(),C.current&&(s||(C.current.scrollLeft=0),C.current.scrollTop=0)},onBlur:function(){Pt(void 0)},onMouseDown:function(){Ue(!0)},onMouseUp:function(){Ue(!1)}})}),Et=function(){return xe(function(){var et,Ot=new Map,At=(et=w.current)===null||et===void 0?void 0:et.getBoundingClientRect();return _.forEach(function(_n){var zn,R=_n.key,$=(zn=w.current)===null||zn===void 0?void 0:zn.querySelector('[data-node-key="'.concat(gxe(R),'"]'));if($){var J=Bst($,At),Oe=Re(J,4),qe=Oe[0],Qe=Oe[1],Bt=Oe[2],fn=Oe[3];Ot.set(R,{width:qe,height:Qe,left:Bt,top:fn})}}),Ot})};h.useEffect(function(){Et()},[_.map(function(Ct){return Ct.key}).join("_")]);var Dt=mxe(function(){var Ct=ab(S),et=ab(x),Ot=ab(E);H([Ct[0]-et[0]-Ot[0],Ct[1]-et[1]-Ot[1]]);var At=ab(T);oe(At);var _n=ab(O);ce(_n);var zn=ab(w);ee([zn[0]-At[0],zn[1]-At[1]]),Et()}),St=_.slice(0,Ge),bt=_.slice(Nt+1),xt=[].concat(rt(St),rt(bt)),ht=we.get(a),Vt=Ast({activeTabOffset:ht,horizontal:A,indicator:v,rtl:s}),at=Vt.style;h.useEffect(function(){lt()},[a,Y,ae,Bie(ht),Bie(we),A]),h.useEffect(function(){Dt()},[s]);var wt=!!xt.length,Gt="".concat(b,"-nav-wrap"),$t,zt,Ft,De;return A?s?(zt=D>0,$t=D!==ae):($t=D<0,zt=D!==Y):(Ft=B<0,De=B!==Y),h.createElement(Oa,{onResize:Dt},h.createElement("div",{ref:Bd(t,S),role:"tablist","aria-orientation":A?"horizontal":"vertical",className:Ce("".concat(b,"-nav"),n),style:r,onKeyDown:function(){Fe()}},h.createElement(Hie,{ref:x,position:"left",extra:l,prefixCls:b}),h.createElement(Oa,{onResize:Dt},h.createElement("div",{className:Ce(Gt,te(te(te(te({},"".concat(Gt,"-ping-left"),$t),"".concat(Gt,"-ping-right"),zt),"".concat(Gt,"-ping-top"),Ft),"".concat(Gt,"-ping-bottom"),De)),ref:C},h.createElement(Oa,{onResize:Dt},h.createElement("div",{ref:w,className:"".concat(b,"-nav-list"),style:{transform:"translate(".concat(D,"px, ").concat(B,"px)"),transition:ie?"none":void 0}},ft,h.createElement(vxe,{ref:T,prefixCls:b,locale:u,editable:c,style:z(z({},ft.length===0?void 0:it),{},{visibility:wt?"hidden":null})}),h.createElement("div",{className:Ce("".concat(b,"-ink-bar"),te({},"".concat(b,"-ink-bar-animated"),o.inkBar)),style:at}))))),h.createElement($st,Xe({},e,{removeAriaLabel:u==null?void 0:u.removeAriaLabel,ref:O,prefixCls:b,tabs:xt,className:!wt&&U,tabMoving:!!ie})),h.createElement(Hie,{ref:E,position:"right",extra:l,prefixCls:b})))}),bxe=h.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 h.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:Ce(n,a&&"".concat(n,"-active"),r),ref:t},l)}),Hst=["renderTabBar"],jst=["label","key"],Ust=function(t){var n=t.renderTabBar,r=kt(t,Hst),i=h.useContext(JP),o=i.tabs;if(n){var a=z(z({},r),{},{panes:o.map(function(s){var l=s.label,c=s.key,u=kt(s,jst);return h.createElement(bxe,Xe({tab:l,key:c,tabKey:c},u))})});return n(a,jie)}return h.createElement(jie,r)},zst=["key","forceRender","style","className","destroyInactiveTabPane"],Vst=function(t){var n=t.id,r=t.activeKey,i=t.animated,o=t.tabPosition,a=t.destroyInactiveTabPane,s=h.useContext(JP),l=s.prefixCls,c=s.tabs,u=i.tabPane,d="".concat(l,"-tabpane");return h.createElement("div",{className:Ce("".concat(l,"-content-holder"))},h.createElement("div",{className:Ce("".concat(l,"-content"),"".concat(l,"-content-").concat(o),te({},"".concat(l,"-content-animated"),u))},c.map(function(f){var p=f.key,m=f.forceRender,g=f.style,v=f.className,y=f.destroyInactiveTabPane,b=kt(f,zst),_=p===r;return h.createElement(ia,Xe({key:p,visible:_,forceRender:m,removeOnLeave:!!(a||y),leavedClassName:"".concat(d,"-hidden")},i.tabPaneMotion),function(S,x){var E=S.style,C=S.className;return h.createElement(bxe,Xe({},b,{prefixCls:d,id:n,tabKey:p,animated:u,active:_,style:z(z({},g),E),className:Ce(v,C),ref:x}))})})))};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=z({inkBar:!0},qt(e)==="object"?e:{}),t.tabPaneMotion&&t.tabPane===void 0&&(t.tabPane=!0),!t.tabPaneMotion&&t.tabPane&&(t.tabPane=!1),t}var Wst=["id","prefixCls","className","items","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","more","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll","getPopupContainer","popupClassName","indicator"],Uie=0,qst=h.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,p=f===void 0?"top":f,m=e.tabBarGutter,g=e.tabBarStyle,v=e.tabBarExtraContent,y=e.locale,b=e.more,_=e.destroyInactiveTabPane,S=e.renderTabBar,x=e.onChange,E=e.onTabClick,C=e.onTabScroll,w=e.getPopupContainer,O=e.popupClassName,T=e.indicator,A=kt(e,Wst),I=h.useMemo(function(){return(a||[]).filter(function(me){return me&&qt(me)==="object"&&"key"in me})},[a]),N=s==="rtl",D=Gst(d),M=h.useState(!1),k=Re(M,2),P=k[0],B=k[1];h.useEffect(function(){B(DP())},[]);var G=Pn(function(){var me;return(me=I[0])===null||me===void 0?void 0:me.key},{value:l,defaultValue:c}),L=Re(G,2),W=L[0],j=L[1],H=h.useState(function(){return I.findIndex(function(me){return me.key===W})}),X=Re(H,2),Q=X[0],ue=X[1];h.useEffect(function(){var me=I.findIndex(function(re){return re.key===W});if(me===-1){var ce;me=Math.max(0,Math.min(Q,I.length-1)),j((ce=I[me])===null||ce===void 0?void 0:ce.key)}ue(me)},[I.map(function(me){return me.key}).join("_"),W,Q]);var ee=Pn(null,{value:n}),K=Re(ee,2),se=K[0],le=K[1];h.useEffect(function(){n||(le("rc-tabs-".concat(Uie)),Uie+=1)},[]);function oe(me,ce){E==null||E(me,ce);var re=me!==W;j(me),re&&(x==null||x(me))}var ne={id:se,activeKey:W,animated:D,tabPosition:p,rtl:N,mobile:P},he=z(z({},ne),{},{editable:u,locale:y,more:b,tabBarGutter:m,onTabClick:oe,onTabScroll:C,extra:v,style:g,panes:null,getPopupContainer:w,popupClassName:O,indicator:T});return h.createElement(JP.Provider,{value:{tabs:I,prefixCls:i}},h.createElement("div",Xe({ref:t,id:n,className:Ce(i,"".concat(i,"-").concat(p),te(te(te({},"".concat(i,"-mobile"),P),"".concat(i,"-editable"),u),"".concat(i,"-rtl"),N),o)},A),h.createElement(Ust,Xe({},he,{renderTabBar:S})),h.createElement(Vst,Xe({destroyInactiveTabPane:_},ne,{animated:D}))))});const Yst={motionAppear:!1,motionEnter:!0,motionLeave:!0};function Kst(e,t={inkBar:!0,tabPane:!1}){let 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 Qst=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);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 Xst(e){return e.filter(t=>t)}function Zst(e,t){if(e)return e.map(r=>{var i;const o=(i=r.destroyOnHidden)!==null&&i!==void 0?i:r.destroyInactiveTabPane;return Object.assign(Object.assign({},r),{destroyInactiveTabPane:o})});const n=Do(t).map(r=>{if(h.isValidElement(r)){const{key:i,props:o}=r,a=o||{},{tab:s}=a,l=Qst(a,["tab"]);return Object.assign(Object.assign({key:String(i)},l),{label:s})}return null});return Xst(n)}const Jst=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}`}}}}},[Lf(e,"slide-up"),Lf(e,"slide-down")]]},elt=e=>{const{componentCls:t,tabsCardPadding:n,cardBg:r,cardGutter:i,colorBorderSecondary:o,itemSelectedColor:a}=e;return{[`${t}-card`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{margin:0,padding:n,background:r,border:`${Ie(e.lineWidth)} ${e.lineType} ${o}`,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`},[`${t}-tab-active`]:{color:a,background:e.colorBgContainer},[`${t}-tab-focus:has(${t}-tab-btn:focus-visible)`]:wd(e,-3),[`& ${t}-tab${t}-tab-focus ${t}-tab-btn:focus-visible`]:{outline:"none"},[`${t}-ink-bar`]:{visibility:"hidden"}},[`&${t}-top, &${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginLeft:{_skip_check_:!0,value:Ie(i)}}}},[`&${t}-top`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`${Ie(e.borderRadiusLG)} ${Ie(e.borderRadiusLG)} 0 0`},[`${t}-tab-active`]:{borderBottomColor:e.colorBgContainer}}},[`&${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`0 0 ${Ie(e.borderRadiusLG)} ${Ie(e.borderRadiusLG)}`},[`${t}-tab-active`]:{borderTopColor:e.colorBgContainer}}},[`&${t}-left, &${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginTop:Ie(i)}}},[`&${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${Ie(e.borderRadiusLG)} 0 0 ${Ie(e.borderRadiusLG)}`}},[`${t}-tab-active`]:{borderRightColor:{_skip_check_:!0,value:e.colorBgContainer}}}},[`&${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${Ie(e.borderRadiusLG)} ${Ie(e.borderRadiusLG)} 0`}},[`${t}-tab-active`]:{borderLeftColor:{_skip_check_:!0,value:e.colorBgContainer}}}}}}},tlt=e=>{const{componentCls:t,itemHoverColor:n,dropdownEdgeChildVerticalPadding:r}=e;return{[`${t}-dropdown`]:Object.assign(Object.assign({},mr(e)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:e.zIndexPopup,display:"block","&-hidden":{display:"none"},[`${t}-dropdown-menu`]:{maxHeight:e.tabsDropdownHeight,margin:0,padding:`${Ie(r)} 0`,overflowX:"hidden",overflowY:"auto",textAlign:{_skip_check_:!0,value:"left"},listStyleType:"none",backgroundColor:e.colorBgContainer,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,"&-item":Object.assign(Object.assign({},Hl),{display:"flex",alignItems:"center",minWidth:e.tabsDropdownWidth,margin:0,padding:`${Ie(e.paddingXXS)} ${Ie(e.paddingSM)}`,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"> span":{flex:1,whiteSpace:"nowrap"},"&-remove":{flex:"none",marginLeft:{_skip_check_:!0,value:e.marginSM},color:e.colorIcon,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"}}})}})}},nlt=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:`${Ie(e.lineWidth)} ${e.lineType} ${r}`,content:"''"},[`${t}-ink-bar`]:{height:e.lineWidthBold,"&-animated":{transition:`width ${e.motionDurationSlow}, left ${e.motionDurationSlow},
right ${e.motionDurationSlow}`}},[`${t}-nav-wrap`]:{"&::before, &::after":{top:0,bottom:0,width:e.controlHeight},"&::before":{left:{_skip_check_:!0,value:0},boxShadow:e.boxShadowTabsOverflowLeft},"&::after":{right:{_skip_check_:!0,value:0},boxShadow:e.boxShadowTabsOverflowRight},[`&${t}-nav-wrap-ping-left::before`]:{opacity:1},[`&${t}-nav-wrap-ping-right::after`]:{opacity:1}}}},[`${t}-top`]:{[`> ${t}-nav,
> div > ${t}-nav`]:{"&::before":{bottom:0},[`${t}-ink-bar`]:{bottom:0}}},[`${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,marginTop:n,marginBottom:0,"&::before":{top:0},[`${t}-ink-bar`]:{top:0}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{order:0}},[`${t}-left, ${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{flexDirection:"column",minWidth: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:Ie(s(e.lineWidth).mul(-1).equal())},borderLeft:{_skip_check_:!0,value:`${Ie(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingLeft:{_skip_check_:!0,value:e.paddingLG}}}},[`${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,[`${t}-ink-bar`]:{left:{_skip_check_:!0,value:0}}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{order:0,marginRight:{_skip_check_:!0,value:s(e.lineWidth).mul(-1).equal()},borderRight:{_skip_check_:!0,value:`${Ie(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingRight:{_skip_check_:!0,value:e.paddingLG}}}}}},rlt=e=>{const{componentCls:t,cardPaddingSM:n,cardPaddingLG:r,cardHeightSM:i,cardHeightLG:o,horizontalItemPaddingSM:a,horizontalItemPaddingLG:s}=e;return{[t]:{"&-small":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:a,fontSize:e.titleFontSizeSM}}},"&-large":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:s,fontSize:e.titleFontSizeLG,lineHeight:e.lineHeightLG}}}},[`${t}-card`]:{[`&${t}-small`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:n},[`${t}-nav-add`]:{minWidth:i,minHeight:i}},[`&${t}-bottom`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`0 0 ${Ie(e.borderRadius)} ${Ie(e.borderRadius)}`}},[`&${t}-top`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`${Ie(e.borderRadius)} ${Ie(e.borderRadius)} 0 0`}},[`&${t}-right`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${Ie(e.borderRadius)} ${Ie(e.borderRadius)} 0`}}},[`&${t}-left`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${Ie(e.borderRadius)} 0 0 ${Ie(e.borderRadius)}`}}}},[`&${t}-large`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:r},[`${t}-nav-add`]:{minWidth:o,minHeight:o}}}}}},ilt=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.colorIcon,fontSize:e.fontSizeSM,background:"transparent",border:"none",outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"&:hover":{color:e.colorTextHeading}},tl(e)),"&:hover":{color:r},[`&${c}-active ${c}-btn`]:{color:s,textShadow:e.tabsActiveTextShadow},[`&${c}-focus ${c}-btn:focus-visible`]:wd(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}}}},olt=e=>{const{componentCls:t,tabsHorizontalItemMarginRTL:n,iconCls:r,cardGutter:i,calc:o}=e;return{[`${t}-rtl`]:{direction:"rtl",[`${t}-nav`]:{[`${t}-tab`]:{margin:{_skip_check_:!0,value:n},[`${t}-tab:last-of-type`]:{marginLeft:{_skip_check_:!0,value:0}},[r]:{marginRight:{_skip_check_:!0,value:0},marginLeft:{_skip_check_:!0,value:Ie(e.marginSM)}},[`${t}-tab-remove`]:{marginRight:{_skip_check_:!0,value:Ie(e.marginXS)},marginLeft:{_skip_check_:!0,value:Ie(o(e.marginXXS).mul(-1).equal())},[r]:{margin:0}}}},[`&${t}-left`]:{[`> ${t}-nav`]:{order:1},[`> ${t}-content-holder`]:{order:0}},[`&${t}-right`]:{[`> ${t}-nav`]:{order:0},[`> ${t}-content-holder`]:{order:1}},[`&${t}-card${t}-top, &${t}-card${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginRight:{_skip_check_:!0,value:i},marginLeft:{_skip_check_:!0,value:0}}}}},[`${t}-dropdown-rtl`]:{direction:"rtl"},[`${t}-menu-item`]:{[`${t}-dropdown-rtl`]:{textAlign:{_skip_check_:!0,value:"right"}}}}},alt=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({},mr(e)),{display:"flex",[`> ${t}-nav, > div > ${t}-nav`]:{position:"relative",display:"flex",flex:"none",alignItems:"center",[`${t}-nav-wrap`]:{position:"relative",display:"flex",flex:"auto",alignSelf:"stretch",overflow:"hidden",whiteSpace:"nowrap",transform:"translate(0)","&::before, &::after":{position:"absolute",zIndex:1,opacity:0,transition:`opacity ${e.motionDurationSlow}`,content:"''",pointerEvents:"none"}},[`${t}-nav-list`]:{position:"relative",display:"flex",transition:`opacity ${e.motionDurationSlow}`},[`${t}-nav-operations`]:{display:"flex",alignSelf:"stretch"},[`${t}-nav-operations-hidden`]:{position:"absolute",visibility:"hidden",pointerEvents:"none"},[`${t}-nav-more`]:{position:"relative",padding:n,background:"transparent",border:0,color:e.colorText,"&::after":{position:"absolute",right:{_skip_check_:!0,value:0},bottom:0,left:{_skip_check_:!0,value:0},height:e.calc(e.controlHeightLG).div(8).equal(),transform:"translateY(100%)",content:"''"}},[`${t}-nav-add`]:Object.assign({minWidth:r,minHeight:r,marginLeft:{_skip_check_:!0,value:i},background:"transparent",border:`${Ie(e.lineWidth)} ${e.lineType} ${s}`,borderRadius:`${Ie(e.borderRadiusLG)} ${Ie(e.borderRadiusLG)} 0 0`,outline:"none",cursor:"pointer",color:e.colorText,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`,"&:hover":{color:o},"&:active, &:focus:not(:focus-visible)":{color:a}},tl(e,-3))},[`${t}-extra-content`]:{flex:"none"},[`${t}-ink-bar`]:{position:"absolute",background:e.inkBarColor,pointerEvents:"none"}}),ilt(e)),{[`${t}-content`]:{position:"relative",width:"100%"},[`${t}-content-holder`]:{flex:"auto",minWidth:0,minHeight:0},[`${t}-tabpane`]:Object.assign(Object.assign({},tl(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"}}}}}},slt=e=>{const{cardHeight:t,cardHeightSM:n,cardHeightLG:r,controlHeight:i,controlHeightLG:o}=e,a=t||o,s=n||i,l=r||o+8;return{zIndexPopup:e.zIndexPopupBase+50,cardBg:e.colorFillAlter,cardHeight:a,cardHeightSM:s,cardHeightLG:l,cardPadding:`${(a-e.fontHeight)/2-e.lineWidth}px ${e.padding}px`,cardPaddingSM:`${(s-e.fontHeight)/2-e.lineWidth}px ${e.paddingXS}px`,cardPaddingLG:`${(l-e.fontHeightLG)/2-e.lineWidth}px ${e.padding}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}},llt=ir("Tabs",e=>{const t=Un(e,{tabsCardPadding:e.cardPadding,dropdownEdgeChildVerticalPadding:e.paddingXXS,tabsActiveTextShadow:"0 0 0.25px currentcolor",tabsDropdownHeight:200,tabsDropdownWidth:120,tabsHorizontalItemMargin:`0 0 0 ${Ie(e.horizontalItemGutter)}`,tabsHorizontalItemMarginRTL:`0 0 0 ${Ie(e.horizontalItemGutter)}`});return[rlt(t),olt(t),nlt(t),tlt(t),elt(t),alt(t),Jst(t)]},slt),clt=()=>null;var ult=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);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 SS=e=>{var t,n,r,i,o,a,s,l,c,u,d;const{type:f,className:p,rootClassName:m,size:g,onEdit:v,hideAdd:y,centered:b,addIcon:_,removeIcon:S,moreIcon:x,more:E,popupClassName:C,children:w,items:O,animated:T,style:A,indicatorSize:I,indicator:N,destroyInactiveTabPane:D,destroyOnHidden:M}=e,k=ult(e,["type","className","rootClassName","size","onEdit","hideAdd","centered","addIcon","removeIcon","moreIcon","more","popupClassName","children","items","animated","style","indicatorSize","indicator","destroyInactiveTabPane","destroyOnHidden"]),{prefixCls:P}=k,{direction:B,tabs:G,getPrefixCls:L,getPopupContainer:W}=h.useContext(cn),j=L("tabs",P),H=gi(j),[X,Q,ue]=llt(j,H);let ee;f==="editable-card"&&(ee={onEdit:(me,{key:ce,event:re})=>{v==null||v(me==="add"?re:ce,me)},removeIcon:(t=S??(G==null?void 0:G.removeIcon))!==null&&t!==void 0?t:h.createElement(Yf,null),addIcon:(_??(G==null?void 0:G.addIcon))||h.createElement(v2,null),showAdd:y!==!0});const K=L(),se=mo(g),le=Zst(O,w),oe=Kst(j,T),ne=Object.assign(Object.assign({},G==null?void 0:G.style),A),he={align:(n=N==null?void 0:N.align)!==null&&n!==void 0?n:(r=G==null?void 0:G.indicator)===null||r===void 0?void 0:r.align,size:(s=(o=(i=N==null?void 0:N.size)!==null&&i!==void 0?i:I)!==null&&o!==void 0?o:(a=G==null?void 0:G.indicator)===null||a===void 0?void 0:a.size)!==null&&s!==void 0?s:G==null?void 0:G.indicatorSize};return X(h.createElement(qst,Object.assign({direction:B,getPopupContainer:W},k,{items:le,className:Ce({[`${j}-${se}`]:se,[`${j}-card`]:["card","editable-card"].includes(f),[`${j}-editable-card`]:f==="editable-card",[`${j}-centered`]:b},G==null?void 0:G.className,p,m,Q,ue,H),popupClassName:Ce(C,Q,ue,H),style:ne,editable:ee,more:Object.assign({icon:(d=(u=(c=(l=G==null?void 0:G.more)===null||l===void 0?void 0:l.icon)!==null&&c!==void 0?c:G==null?void 0:G.moreIcon)!==null&&u!==void 0?u:x)!==null&&d!==void 0?d:h.createElement(hY,null),transitionName:`${K}-slide-up`},E),prefixCls:j,animated:oe,indicator:he,destroyInactiveTabPane:M??D})))};SS.TabPane=clt;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 yxe=e=>{var{prefixCls:t,className:n,hoverable:r=!0}=e,i=dlt(e,["prefixCls","className","hoverable"]);const{getPrefixCls:o}=h.useContext(cn),a=o("card",t),s=Ce(`${a}-grid`,n,{[`${a}-grid-hoverable`]:r});return h.createElement("div",Object.assign({},i,{className:s}))},flt=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 ${Ie(i)}`,color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.headerFontSize,background:e.headerBg,borderBottom:`${Ie(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`,borderRadius:`${Ie(e.borderRadiusLG)} ${Ie(e.borderRadiusLG)} 0 0`},xd()),{"&-wrapper":{width:"100%",display:"flex",alignItems:"center"},"&-title":Object.assign(Object.assign({display:"inline-block",flex:1},Hl),{[`
> ${n}-typography,
> ${n}-typography-edit-content
`]:{insetInlineStart:0,marginTop:0,marginBottom:0}}),[`${t}-tabs-top`]:{clear:"both",marginBottom:o,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,"&-bar":{borderBottom:`${Ie(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`}}})},plt=e=>{const{cardPaddingBase:t,colorBorderSecondary:n,cardShadow:r,lineWidth:i}=e;return{width:"33.33%",padding:t,border:0,borderRadius:0,boxShadow:`
${Ie(i)} 0 0 0 ${n},
0 ${Ie(i)} 0 0 ${n},
${Ie(i)} ${Ie(i)} 0 0 ${n},
${Ie(i)} 0 0 0 ${n} inset,
0 ${Ie(i)} 0 0 ${n} inset;
`,transition:`all ${e.motionDurationMid}`,"&-hoverable:hover":{position:"relative",zIndex:1,boxShadow:r}}},hlt=e=>{const{componentCls:t,iconCls:n,actionsLiMargin:r,cardActionsIconSize:i,colorBorderSecondary:o,actionsBg:a}=e;return Object.assign(Object.assign({margin:0,padding:0,listStyle:"none",background:a,borderTop:`${Ie(e.lineWidth)} ${e.lineType} ${o}`,display:"flex",borderRadius:`0 0 ${Ie(e.borderRadiusLG)} ${Ie(e.borderRadiusLG)}`},xd()),{"& > 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.colorIcon,lineHeight:Ie(e.fontHeight),transition:`color ${e.motionDurationMid}`,"&:hover":{color:e.colorPrimary}},[`> ${n}`]:{fontSize:i,lineHeight:Ie(e.calc(i).mul(e.lineHeight).equal())}},"&:not(:last-child)":{borderInlineEnd:`${Ie(e.lineWidth)} ${e.lineType} ${o}`}}})},mlt=e=>Object.assign(Object.assign({margin:`${Ie(e.calc(e.marginXXS).mul(-1).equal())} 0`,display:"flex"},xd()),{"&-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},Hl),"&-description":{color:e.colorTextDescription}}),glt=e=>{const{componentCls:t,colorFillAlter:n,headerPadding:r,bodyPadding:i}=e;return{[`${t}-head`]:{padding:`0 ${Ie(r)}`,background:n,"&-title":{fontSize:e.fontSize}},[`${t}-body`]:{padding:`${Ie(e.padding)} ${Ie(i)}`}}},vlt=e=>{const{componentCls:t}=e;return{overflow:"hidden",[`${t}-body`]:{userSelect:"none"}}},blt=e=>{const{componentCls:t,cardShadow:n,cardHeadPadding:r,colorBorderSecondary:i,boxShadowTertiary:o,bodyPadding:a,extraColor:s}=e;return{[t]:Object.assign(Object.assign({},mr(e)),{position:"relative",background:e.colorBgContainer,borderRadius:e.borderRadiusLG,[`&:not(${t}-bordered)`]:{boxShadow:o},[`${t}-head`]:flt(e),[`${t}-extra`]:{marginInlineStart:"auto",color:s,fontWeight:"normal",fontSize:e.fontSize},[`${t}-body`]:Object.assign({padding:a,borderRadius:`0 0 ${Ie(e.borderRadiusLG)} ${Ie(e.borderRadiusLG)}`},xd()),[`${t}-grid`]:plt(e),[`${t}-cover`]:{"> *":{display:"block",width:"100%",borderRadius:`${Ie(e.borderRadiusLG)} ${Ie(e.borderRadiusLG)} 0 0`}},[`${t}-actions`]:hlt(e),[`${t}-meta`]:mlt(e)}),[`${t}-bordered`]:{border:`${Ie(e.lineWidth)} ${e.lineType} ${i}`,[`${t}-cover`]:{marginTop:-1,marginInlineStart:-1,marginInlineEnd:-1}},[`${t}-hoverable`]:{cursor:"pointer",transition:`box-shadow ${e.motionDurationMid}, border-color ${e.motionDurationMid}`,"&:hover":{borderColor:"transparent",boxShadow:n}},[`${t}-contain-grid`]:{borderRadius:`${Ie(e.borderRadiusLG)} ${Ie(e.borderRadiusLG)} 0 0 `,[`${t}-body`]:{display:"flex",flexWrap:"wrap"},[`&:not(${t}-loading) ${t}-body`]:{marginBlockStart:e.calc(e.lineWidth).mul(-1).equal(),marginInlineStart:e.calc(e.lineWidth).mul(-1).equal(),padding:0}},[`${t}-contain-tabs`]:{[`> div${t}-head`]:{minHeight:0,[`${t}-head-title, ${t}-extra`]:{paddingTop:r}}},[`${t}-type-inner`]:glt(e),[`${t}-loading`]:vlt(e),[`${t}-rtl`]:{direction:"rtl"}}},ylt=e=>{const{componentCls:t,bodyPaddingSM:n,headerPaddingSM:r,headerHeightSM:i,headerFontSizeSM:o}=e;return{[`${t}-small`]:{[`> ${t}-head`]:{minHeight:i,padding:`0 ${Ie(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"}}}}},_lt=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}},Slt=ir("Card",e=>{const t=Un(e,{cardShadow:e.boxShadowCard,cardHeadPadding:e.padding,cardPaddingBase:e.paddingLG,cardActionsIconSize:e.fontSize});return[blt(t),ylt(t)]},_lt);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 Elt=e=>{const{actionClasses:t,actions:n=[],actionStyle:r}=e;return h.createElement("ul",{className:t,style:r},n.map((i,o)=>{const a=`action-${o}`;return h.createElement("li",{style:{width:`${100/n.length}%`},key:a},h.createElement("span",null,i))}))},Clt=h.forwardRef((e,t)=>{const{prefixCls:n,className:r,rootClassName:i,style:o,extra:a,headStyle:s={},bodyStyle:l={},title:c,loading:u,bordered:d,variant:f,size:p,type:m,cover:g,actions:v,tabList:y,children:b,activeTabKey:_,defaultActiveTabKey:S,tabBarExtraContent:x,hoverable:E,tabProps:C={},classNames:w,styles:O}=e,T=zie(e,["prefixCls","className","rootClassName","style","extra","headStyle","bodyStyle","title","loading","bordered","variant","size","type","cover","actions","tabList","children","activeTabKey","defaultActiveTabKey","tabBarExtraContent","hoverable","tabProps","classNames","styles"]),{getPrefixCls:A,direction:I,card:N}=h.useContext(cn),[D]=Kf("card",f,d),M=we=>{var de;(de=e.onTabChange)===null||de===void 0||de.call(e,we)},k=we=>{var de;return Ce((de=N==null?void 0:N.classNames)===null||de===void 0?void 0:de[we],w==null?void 0:w[we])},P=we=>{var de;return Object.assign(Object.assign({},(de=N==null?void 0:N.styles)===null||de===void 0?void 0:de[we]),O==null?void 0:O[we])},B=h.useMemo(()=>{let we=!1;return h.Children.forEach(b,de=>{(de==null?void 0:de.type)===yxe&&(we=!0)}),we},[b]),G=A("card",n),[L,W,j]=Slt(G),H=h.createElement(bh,{loading:!0,active:!0,paragraph:{rows:4},title:!1},b),X=_!==void 0,Q=Object.assign(Object.assign({},C),{[X?"activeKey":"defaultActiveKey"]:X?_:S,tabBarExtraContent:x});let ue;const ee=mo(p),K=!ee||ee==="default"?"large":ee,se=y?h.createElement(SS,Object.assign({size:K},Q,{className:`${G}-head-tabs`,onChange:M,items:y.map(we=>{var{tab:de}=we,Ee=zie(we,["tab"]);return Object.assign({label:de},Ee)})})):null;if(c||a||se){const we=Ce(`${G}-head`,k("header")),de=Ce(`${G}-head-title`,k("title")),Ee=Ce(`${G}-extra`,k("extra")),Ne=Object.assign(Object.assign({},s),P("header"));ue=h.createElement("div",{className:we,style:Ne},h.createElement("div",{className:`${G}-head-wrapper`},c&&h.createElement("div",{className:de,style:P("title")},c),a&&h.createElement("div",{className:Ee,style:P("extra")},a)),se)}const le=Ce(`${G}-cover`,k("cover")),oe=g?h.createElement("div",{className:le,style:P("cover")},g):null,ne=Ce(`${G}-body`,k("body")),he=Object.assign(Object.assign({},l),P("body")),me=h.createElement("div",{className:ne,style:he},u?H:b),ce=Ce(`${G}-actions`,k("actions")),re=v!=null&&v.length?h.createElement(Elt,{actionClasses:ce,actionStyle:P("actions"),actions:v}):null,ve=ur(T,["onTabChange"]),be=Ce(G,N==null?void 0:N.className,{[`${G}-loading`]:u,[`${G}-bordered`]:D!=="borderless",[`${G}-hoverable`]:E,[`${G}-contain-grid`]:B,[`${G}-contain-tabs`]:y==null?void 0:y.length,[`${G}-${ee}`]:ee,[`${G}-type-${m}`]:!!m,[`${G}-rtl`]:I==="rtl"},r,i,W,j),xe=Object.assign(Object.assign({},N==null?void 0:N.style),o);return L(h.createElement("div",Object.assign({ref:t},ve,{className:be,style:xe}),ue,oe,me,re))});var xlt=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);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 wlt=e=>{const{prefixCls:t,className:n,avatar:r,title:i,description:o}=e,a=xlt(e,["prefixCls","className","avatar","title","description"]),{getPrefixCls:s}=h.useContext(cn),l=s("card",t),c=Ce(`${l}-meta`,n),u=r?h.createElement("div",{className:`${l}-meta-avatar`},r):null,d=i?h.createElement("div",{className:`${l}-meta-title`},i):null,f=o?h.createElement("div",{className:`${l}-meta-description`},o):null,p=d||f?h.createElement("div",{className:`${l}-meta-detail`},d,f):null;return h.createElement("div",Object.assign({},a,{className:c}),u,p)},eD=Clt;eD.Grid=yxe;eD.Meta=wlt;function Tlt(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 p(){u&&clearTimeout(u)}function m(v){var y=v||{},b=y.upcomingOnly,_=b===void 0?!1:b;p(),d=!_}function g(){for(var v=arguments.length,y=new Array(v),b=0;b<v;b++)y[b]=arguments[b];var _=this,S=Date.now()-f;if(d)return;function x(){f=Date.now(),t.apply(_,y)}function E(){u=void 0}!s&&c&&!u&&x(),p(),c===void 0&&S>e?s?(f=Date.now(),o||(u=setTimeout(c?E:x,e))):x():o!==!0&&(u=setTimeout(c?E:x,c===void 0?e-S:e))}return g.cancel=m,g}function Olt(e,t,n){var r={},i=r.atBegin,o=i===void 0?!1:i;return Tlt(e,t,{debounceMode:o!==!1})}var ES=h.createContext({}),Ey="__rc_cascader_search_mark__",Rlt=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())})},Alt=function(t,n,r,i){return n.map(function(o){return o[i.label]}).join(" / ")},Ilt=function(t,n,r,i,o,a){var s=o.filter,l=s===void 0?Rlt:s,c=o.render,u=c===void 0?Alt:c,d=o.limit,f=d===void 0?50:d,p=o.sort;return h.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(!(!p&&f!==!1&&f>0&&m.length>=f)){var S=[].concat(rt(y),[_]),x=_[r.children],E=b||_.disabled;if((!x||x.length===0||a)&&l(t,S,{label:r.label})){var C;m.push(z(z({},_),{},(C={disabled:E},te(C,r.label,u(t,S,i,r)),te(C,Ey,S),te(C,r.children,void 0),C)))}x&&g(_[r.children],S,E)}})}return g(n,[]),p&&m.sort(function(v,y){return p(v[Ey],y[Ey],t,r)}),f!==!1&&f>0?m.slice(0,f):m},[t,n,r,i,u,a,l,p,f])},NY="__RC_CASCADER_SPLIT__",_xe="SHOW_PARENT",Sxe="SHOW_CHILD";function hd(e){return e.join(NY)}function g_(e){return e.map(hd)}function Nlt(e){return e.split(NY)}function Exe(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 RC(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 Mlt(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 Cxe(e,t){return e.map(function(n){var r;return(r=n[Ey])===null||r===void 0?void 0:r.map(function(i){return i[t.value]})})}function klt(e){return Array.isArray(e)&&Array.isArray(e[0])}function V4(e){return e?klt(e)?e:(e.length===0?[]:[e]).map(function(t){return Array.isArray(t)?t:[t]}):[]}function xxe(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===Sxe?!(l&&l.some(function(c){return c.key&&r.has(c.key)})):!(s&&!s.node.disabled&&r.has(s.key))})}function v_(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],p=(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=p!==-1?(u=i)===null||u===void 0?void 0:u[p]:null;o.push({value:(d=m==null?void 0:m[n.value])!==null&&d!==void 0?d:f,index:p,option:m}),i=m==null?void 0:m[n.children]},s=0;s<e.length;s+=1)a();return o}const Plt=function(e,t,n,r,i){return h.useMemo(function(){var o=i||function(a){var s=r?a.slice(-1):a,l=" / ";return s.every(function(c){return["string","number"].includes(qt(c))})?s.join(l):s.reduce(function(c,u,d){var f=h.isValidElement(u)?h.cloneElement(u,{key:d}):u;return d===0?[f]:[].concat(rt(c),[l,f])},[])};return e.map(function(a){var s,l=v_(a,t,n),c=o(l.map(function(d){var f,p=d.option,m=d.value;return(f=p==null?void 0:p[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 wxe(e,t){return h.useCallback(function(n){var r=[],i=[];return n.forEach(function(o){var a=v_(o,e,t);a.every(function(s){return s.option})?i.push(o):r.push(o)}),[i,r]},[e,t])}function wl(e,t){return e[t]}var Dlt=["children"];function Txe(e,t){return"".concat(e,"-").concat(t)}function Llt(e){return e&&e.type&&e.type.isTreeNode}function b2(e,t){return e??t}function b_(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 Oxe(e){function t(n){var r=Do(n);return r.map(function(i){if(!Llt(i))return Vr(!i,"Tree/TreeNode can only accept TreeNode as children."),null;var o=i.key,a=i.props,s=a.children,l=kt(a,Dlt),c=z({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=b_(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,p){for(var m=Txe(d?d.pos:"0",p),g=b2(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(rt(i),[o,a])),{title:v,key:g,parent:d,pos:m,children:null,data:f,isStart:[].concat(rt(d?d.isStart:[]),[p===0]),isEnd:[].concat(rt(d?d.isEnd:[]),[p===u.length-1])});return l.push(_),t===!0||s.has(g)?_.children=c(f[a]||[],_):_.children=[],_})}return c(e),l}function $lt(e,t,n){var r={};qt(n)==="object"?r=n:r={externalGetKey:n},r=r||{};var i=r,o=i.childrenPropName,a=i.externalGetKey,s=i.fieldNames,l=b_(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 b2(g[c],v)};function p(m,g,v,y){var b=m?m[d]:e,_=m?Txe(v.pos,g):"0",S=m?[].concat(rt(y),[m]):[];if(m){var x=f(m,_),E={node:m,index:g,pos:_,key:x,parentPos:v.node?v.pos:null,level:v.level+1,nodes:S};t(E)}b&&b.forEach(function(C,w){p(C,w,{node:m,pos:_,level:v?v.level+1:-1},S)})}p(null)}function y2(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),$lt(e,function(p){var m=p.node,g=p.index,v=p.pos,y=p.key,b=p.parentPos,_=p.level,S=p.nodes,x={node:m,nodes:S,index:g,key:y,pos:v,level:_},E=b2(y,v);u[v]=x,d[E]=x,x.parent=u[b],x.parent&&(x.parent.children=x.parent.children||[],x.parent.children.push(x)),r&&r(x,f)},{externalGetKey:c,childrenPropName:a,fieldNames:s}),i&&i(f),f}function dx(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=wl(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 fa(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,p=e.eventKey,m=z(z({},t),{},{expanded:n,selected:r,checked:i,loaded:o,loading:a,halfChecked:s,dragOver:l,dragOverGapTop:c,dragOverGapBottom:u,pos:d,active:f,key:p});return"props"in m||Object.defineProperty(m,"props",{get:function(){return Vr(!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 Flt=function(e,t){var n=h.useRef({options:[],info:{keyEntities:{},pathKeyEntities:{}}}),r=h.useCallback(function(){return n.current.options!==e&&(n.current.options=e,n.current.info=y2(e,{fieldNames:t,initWrapper:function(o){return z(z({},o),{},{pathKeyEntities:{}})},processEntity:function(o,a){var s=o.nodes.map(function(l){return l[t.value]}).join(NY);a.pathKeyEntities[s]=o,o.key=s}})),n.current.info.pathKeyEntities},[t,e]);return r};function Rxe(e,t){var n=h.useMemo(function(){return t||[]},[t]),r=Flt(n,e),i=h.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 Blt(e){return h.useMemo(function(){if(!e)return[!1,{}];var t={matchInputWidth:!0,limit:50};return e&&qt(e)==="object"&&(t=z(z({},t),e)),t.limit<=0&&(t.limit=!1),[!0,t]},[e])}function Axe(e,t){var n=new Set;return e.forEach(function(r){t.has(r)||n.add(r)}),n}function Hlt(e){var t=e||{},n=t.disabled,r=t.disableCheckbox,i=t.checkable;return!!(n||r)||i===!1}function jlt(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,p=d.node,m=d.children,g=m===void 0?[]:m;i.has(f)&&!r(p)&&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,p=d.node;if(!(r(p)||!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(Axe(o,i))}}function Ult(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 p=f.key,m=f.node,g=f.children,v=g===void 0?[]:g;!o.has(p)&&!a.has(p)&&!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 p=f.parent,m=f.node;if(!(i(m)||!f.parent||c.has(f.parent.key))){if(i(f.parent.node)){c.add(p.key);return}var g=!0,v=!1;(p.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(p.key),v&&a.add(p.key),c.add(p.key)}})}return{checkedKeys:Array.from(o),halfCheckedKeys:Array.from(Axe(a,o))}}function su(e,t,n,r){var i=[],o;r?o=r:o=Hlt;var a=new Set(e.filter(function(u){var d=!!wl(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,p=s.get(f);p||(p=new Set,s.set(f,p)),p.add(d),l=Math.max(l,f)}),Vr(!i.length,"Tree missing follow keys: ".concat(i.slice(0,100).map(function(u){return"'".concat(u,"'")}).join(", ")));var c;return t===!0?c=jlt(a,s,l,o):c=Ult(a,t.halfCheckedKeys,s,l,o),c}function Ixe(e,t,n,r,i,o,a,s){return function(l){if(!e)t(l);else{var c=hd(l),u=g_(n),d=g_(r),f=u.includes(c),p=i.some(function(E){return hd(E)===c}),m=n,g=i;if(p&&!f)g=i.filter(function(E){return hd(E)!==c});else{var v=f?u.filter(function(E){return E!==c}):[].concat(rt(u),[c]),y=o(),b;if(f){var _=su(v,{halfCheckedKeys:d},y);b=_.checkedKeys}else{var S=su(v,!0,y);b=S.checkedKeys}var x=xxe(b,o,s);m=a(x)}t([].concat(rt(g),rt(m)))}}}function Nxe(e,t,n,r,i){return h.useMemo(function(){var o=i(t),a=Re(o,2),s=a[0],l=a[1];if(!e||!t.length)return[s,[],l];var c=g_(s),u=n(),d=su(c,!0,u),f=d.checkedKeys,p=d.halfCheckedKeys;return[r(f),r(p),l]},[e,t,n,r,i])}var zlt=h.memo(function(e){var t=e.children;return t},function(e,t){return!t.open});function Vlt(e){var t,n=e.prefixCls,r=e.checked,i=e.halfChecked,o=e.disabled,a=e.onClick,s=e.disableCheckbox,l=h.useContext(ES),c=l.checkable,u=typeof c!="boolean"?c:null;return h.createElement("span",{className:Ce("".concat(n),(t={},te(t,"".concat(n,"-checked"),r),te(t,"".concat(n,"-indeterminate"),!r&&i),te(t,"".concat(n,"-disabled"),o||s),t)),onClick:a},u)}var Mxe="__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,p=e.disabled,m="".concat(t,"-menu"),g="".concat(t,"-menu-item"),v=h.useContext(ES),y=v.fieldNames,b=v.changeOnSelect,_=v.expandTrigger,S=v.expandIcon,x=v.loadingIcon,E=v.dropdownMenuColumnStyle,C=v.optionRender,w=_==="hover",O=function(I){return p||I},T=h.useMemo(function(){return r.map(function(A){var I,N=A.disabled,D=A.disableCheckbox,M=A[Ey],k=(I=A[Mxe])!==null&&I!==void 0?I:A[y.label],P=A[y.value],B=RC(A,y),G=M?M.map(function(X){return X[y.value]}):[].concat(rt(o),[P]),L=hd(G),W=d.includes(L),j=c.has(L),H=u.has(L);return{disabled:N,label:k,value:P,isLeaf:B,isLoading:W,checked:j,halfChecked:H,option:A,disableCheckbox:D,fullPath:G,fullPathKey:L}})},[r,c,y,u,d,o]);return h.createElement("ul",{className:m,role:"menu"},T.map(function(A){var I,N=A.disabled,D=A.label,M=A.value,k=A.isLeaf,P=A.isLoading,B=A.checked,G=A.halfChecked,L=A.option,W=A.fullPath,j=A.fullPathKey,H=A.disableCheckbox,X=function(){if(!O(N)){var K=rt(W);w&&k&&K.pop(),l(K)}},Q=function(){f(L)&&!O(N)&&s(W,k)},ue;return typeof L.title=="string"?ue=L.title:typeof D=="string"&&(ue=D),h.createElement("li",{key:j,className:Ce(g,(I={},te(I,"".concat(g,"-expand"),!k),te(I,"".concat(g,"-active"),i===M||i===j),te(I,"".concat(g,"-disabled"),O(N)),te(I,"".concat(g,"-loading"),P),I)),style:E,role:"menuitemcheckbox",title:ue,"aria-checked":B,"data-path-key":j,onClick:function(){X(),!H&&(!n||k)&&Q()},onDoubleClick:function(){b&&a(!1)},onMouseEnter:function(){w&&X()},onMouseDown:function(K){K.preventDefault()}},n&&h.createElement(Vlt,{prefixCls:"".concat(t,"-checkbox"),checked:B,halfChecked:G,disabled:O(N)||H,disableCheckbox:H,onClick:function(K){H||(K.stopPropagation(),Q())}}),h.createElement("div",{className:"".concat(g,"-content")},C?C(L):D),!P&&S&&!k&&h.createElement("div",{className:"".concat(g,"-expand-icon")},S),P&&x&&h.createElement("div",{className:"".concat(g,"-loading-icon")},x))}))}var Wlt=function(t,n){var r=h.useContext(ES),i=r.values,o=i[0],a=h.useState([]),s=Re(a,2),l=s[0],c=s[1];return h.useEffect(function(){t||c(o||[])},[n,o]),[l,c]};const qlt=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=h.useMemo(function(){for(var E=-1,C=t,w=[],O=[],T=r.length,A=Cxe(t,n),I=function(P){var B=C.findIndex(function(G,L){return(A[L]?hd(A[L]):G[n.value])===r[P]});if(B===-1)return 1;E=B,w.push(E),O.push(r[P]),C=C[E][n.children]},N=0;N<T&&C&&!I(N);N+=1);for(var D=t,M=0;M<w.length-1;M+=1)D=D[w[M]][n.children];return[O,E,D,A]},[r,n,t]),p=Re(f,4),m=p[0],g=p[1],v=p[2],y=p[3],b=function(C){i(C)},_=function(C){var w=v.length,O=g;O===-1&&C<0&&(O=w);for(var T=0;T<w;T+=1){O=(O+C+w)%w;var A=v[O];if(A&&!A.disabled){var I=m.slice(0,-1).concat(y[O]?hd(y[O]):A[n.value]);b(I);return}}},S=function(){if(m.length>1){var C=m.slice(0,-1);b(C)}else c(!1)},x=function(){var C,w=((C=v[g])===null||C===void 0?void 0:C[n.children])||[],O=w.find(function(A){return!A.disabled});if(O){var T=[].concat(rt(m),[O[n.value]]);b(T)}};h.useImperativeHandle(e,function(){return{onKeyDown:function(C){var w=C.which;switch(w){case Ut.UP:case Ut.DOWN:{var O=0;w===Ut.UP?O=-1:w===Ut.DOWN&&(O=1),O!==0&&_(O);break}case Ut.LEFT:{if(l)break;d?x():S();break}case Ut.RIGHT:{if(l)break;d?S():x();break}case Ut.BACKSPACE:{l||S();break}case Ut.ENTER:{if(m.length){var T=v[g],A=(T==null?void 0:T[Ey])||[];A.length?o(A.map(function(I){return I[n.value]}),A[A.length-1]):o(m,v[g])}break}case Ut.ESC:c(!1),u&&C.stopPropagation()}},onKeyUp:function(){}}})};var kxe=h.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,p=h.useRef(null),m=u==="rtl",g=h.useContext(ES),v=g.options,y=g.values,b=g.halfValues,_=g.fieldNames,S=g.changeOnSelect,x=g.onSelect,E=g.searchOptions,C=g.dropdownPrefixCls,w=g.loadData,O=g.expandTrigger,T=C||o,A=h.useState([]),I=Re(A,2),N=I[0],D=I[1],M=function(me){if(!(!w||s)){var ce=v_(me,v,_),re=ce.map(function(xe){var we=xe.option;return we}),ve=re[re.length-1];if(ve&&!RC(ve,_)){var be=hd(me);D(function(xe){return[].concat(rt(xe),[be])}),w(re)}}};h.useEffect(function(){N.length&&N.forEach(function(he){var me=Nlt(he),ce=v_(me,v,_,!0).map(function(ve){var be=ve.option;return be}),re=ce[ce.length-1];(!re||re[_.children]||RC(re,_))&&D(function(ve){return ve.filter(function(be){return be!==he})})})},[v,N,_]);var k=h.useMemo(function(){return new Set(g_(y))},[y]),P=h.useMemo(function(){return new Set(g_(b))},[b]),B=Wlt(a,d),G=Re(B,2),L=G[0],W=G[1],j=function(me){W(me),M(me)},H=function(me){if(f)return!1;var ce=me.disabled,re=RC(me,_);return!ce&&(re||S||a)},X=function(me,ce){var re=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;x(me),!a&&(ce||S&&(O==="hover"||re))&&l(!1)},Q=h.useMemo(function(){return s?E:v},[s,E,v]),ue=h.useMemo(function(){for(var he=[{options:Q}],me=Q,ce=Cxe(me,_),re=function(){var xe=L[ve],we=me.find(function(Ee,Ne){return(ce[Ne]?hd(ce[Ne]):Ee[_.value])===xe}),de=we==null?void 0:we[_.children];if(!(de!=null&&de.length))return 1;me=de,he.push({options:de})},ve=0;ve<L.length&&!re();ve+=1);return he},[Q,L,_]),ee=function(me,ce){H(ce)&&X(me,RC(ce,_),!0)};qlt(t,Q,_,L,j,ee,{direction:u,searchValue:s,toggleOpen:l,open:d}),h.useEffect(function(){if(!s)for(var he=0;he<L.length;he+=1){var me,ce=L.slice(0,he+1),re=hd(ce),ve=(me=p.current)===null||me===void 0?void 0:me.querySelector('li[data-path-key="'.concat(re.replace(/\\{0,2}"/g,'\\"'),'"]'));ve&&Mlt(ve)}},[L,s]);var K=!((n=ue[0])!==null&&n!==void 0&&(n=n.options)!==null&&n!==void 0&&n.length),se=[(r={},te(r,_.value,"__EMPTY__"),te(r,Mxe,c),te(r,"disabled",!0),r)],le=z(z({},e),{},{multiple:!K&&a,onSelect:X,onActive:j,onToggleOpen:l,checkedSet:k,halfCheckedSet:P,loadingKeys:N,isSelectable:H}),oe=K?[{options:se}]:ue,ne=oe.map(function(he,me){var ce=L.slice(0,me),re=L[me];return h.createElement(Glt,Xe({key:me},le,{prefixCls:T,options:he.options,prevValuePath:ce,activeValue:re}))});return h.createElement(zlt,{open:d},h.createElement("div",{className:Ce("".concat(T,"-menus"),(i={},te(i,"".concat(T,"-menu-empty"),K),te(i,"".concat(T,"-rtl"),m),i)),ref:p},ne))}),Ylt=h.forwardRef(function(e,t){var n=Yq();return h.createElement(kxe,Xe({},e,n,{ref:t}))});function Klt(){}function Pxe(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,p=n.onChange,m=n.showCheckedStrategy,g=n.loadData,v=n.expandTrigger,y=n.expandIcon,b=y===void 0?">":y,_=n.loadingIcon,S=n.direction,x=n.notFoundContent,E=x===void 0?"Not Found":x,C=n.disabled,w=!!l,O=Pn(c,{value:u,postState:V4}),T=Re(O,2),A=T[0],I=T[1],N=h.useMemo(function(){return Exe(d)},[JSON.stringify(d)]),D=Rxe(N,s),M=Re(D,3),k=M[0],P=M[1],B=M[2],G=wxe(k,N),L=Nxe(w,A,P,B,G),W=Re(L,3),j=W[0],H=W[1],X=W[2],Q=qn(function(oe){if(I(oe),p){var ne=V4(oe),he=ne.map(function(re){return v_(re,k,N).map(function(ve){return ve.option})}),me=w?ne:ne[0],ce=w?he:he[0];p(me,ce)}}),ue=Ixe(w,Q,j,H,X,P,B,m),ee=qn(function(oe){ue(oe)}),K=h.useMemo(function(){return{options:k,fieldNames:N,values:j,halfValues:H,changeOnSelect:f,onSelect:ee,checkable:l,searchOptions:[],dropdownPrefixCls:void 0,loadData:g,expandTrigger:v,expandIcon:b,loadingIcon:_,dropdownMenuColumnStyle:void 0}},[k,N,j,H,f,ee,l,g,v,b,_]),se="".concat(i,"-panel"),le=!k.length;return h.createElement(ES.Provider,{value:K},h.createElement("div",{className:Ce(se,(t={},te(t,"".concat(se,"-rtl"),S==="rtl"),te(t,"".concat(se,"-empty"),le),t),a),style:o},le?E:h.createElement(kxe,{prefixCls:i,searchValue:"",multiple:w,toggleOpen:Klt,open:!0,direction:S,disabled:C})))}var Qlt=["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","onOpenChange","expandIcon","loadingIcon","children","dropdownMatchSelectWidth","showCheckedStrategy","optionRender"],_2=h.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,p=f===void 0?!0:f,m=e.searchValue,g=e.onSearch,v=e.showSearch,y=e.expandTrigger,b=e.options,_=e.dropdownPrefixCls,S=e.loadData,x=e.popupVisible,E=e.open,C=e.popupClassName,w=e.dropdownClassName,O=e.dropdownMenuColumnStyle,T=e.dropdownStyle,A=e.popupPlacement,I=e.placement,N=e.onDropdownVisibleChange,D=e.onPopupVisibleChange,M=e.onOpenChange,k=e.expandIcon,P=k===void 0?">":k,B=e.loadingIcon,G=e.children,L=e.dropdownMatchSelectWidth,W=L===void 0?!1:L,j=e.showCheckedStrategy,H=j===void 0?_xe:j,X=e.optionRender,Q=kt(e,Qlt),ue=Jq(n),ee=!!d,K=Pn(a,{value:s,postState:V4}),se=Re(K,2),le=se[0],oe=se[1],ne=h.useMemo(function(){return Exe(o)},[JSON.stringify(o)]),he=Rxe(ne,b),me=Re(he,3),ce=me[0],re=me[1],ve=me[2],be=Pn("",{value:m,postState:function(Tt){return Tt||""}}),xe=Re(be,2),we=xe[0],de=xe[1],Ee=function(Tt,Me){de(Tt),Me.source!=="blur"&&g&&g(Tt)},Ne=Blt(v),Te=Re(Ne,2),Ve=Te[0],q=Te[1],U=Ilt(we,ce,ne,_||i,q,l||ee),Y=wxe(ce,ne),ae=Nxe(ee,le,re,ve,Y),ye=Re(ae,3),fe=ye[0],Ae=ye[1],We=ye[2],ie=h.useMemo(function(){var Rt=g_(fe),Tt=xxe(Rt,re,H);return[].concat(rt(We),rt(ve(Tt)))},[fe,re,ve,We,H]),Be=Plt(ie,ce,ne,ee,u),Fe=qn(function(Rt){if(oe(Rt),c){var Tt=V4(Rt),Me=Tt.map(function(Le){return v_(Le,ce,ne).map(function(He){return He.option})}),Ue=ee?Tt:Tt[0],$e=ee?Me:Me[0];c(Ue,$e)}}),Pe=Ixe(ee,Fe,fe,Ae,We,re,ve,H),Ke=qn(function(Rt){(!ee||p)&&de(""),Pe(Rt)}),tt=function(Tt,Me){if(Me.type==="clear"){Fe([]);return}var Ue=Me.values[0],$e=Ue.valueCells;Ke($e)},Ge=E!==void 0?E:x,Nt=w||C,lt=I||A,st=function(Tt){M==null||M(Tt),N==null||N(Tt),D==null||D(Tt)},It=h.useMemo(function(){return{options:ce,fieldNames:ne,values:fe,halfValues:Ae,changeOnSelect:l,onSelect:Ke,checkable:d,searchOptions:U,dropdownPrefixCls:_,loadData:S,expandTrigger:y,expandIcon:P,loadingIcon:B,dropdownMenuColumnStyle:O,optionRender:X}},[ce,ne,fe,Ae,l,Ke,d,U,_,S,y,P,B,O,X]),ct=!(we?U:ce).length,Pt=we&&q.matchInputWidth||ct?{}:{minWidth:"auto"};return h.createElement(ES.Provider,{value:It},h.createElement(Qq,Xe({},Q,{ref:t,id:ue,prefixCls:i,autoClearSearchValue:p,dropdownMatchSelectWidth:W,dropdownStyle:z(z({},Pt),T),displayValues:Be,onDisplayValuesChange:tt,mode:ee?"multiple":void 0,searchValue:we,onSearch:Ee,showSearch:Ve,OptionList:Ylt,emptyOptions:ct,open:Ge,dropdownClassName:Nt,placement:lt,onDropdownVisibleChange:st,getRawInputElement:function(){return G}})))});_2.SHOW_PARENT=_xe;_2.SHOW_CHILD=Sxe;_2.Panel=Pxe;function Dxe(e,t){const{getPrefixCls:n,direction:r,renderEmpty:i}=h.useContext(cn),o=t||r,a=n("select",e),s=n("cascader",e);return[a,s,o,i]}function Lxe(e,t){return h.useMemo(()=>t?h.createElement("span",{className:`${e}-checkbox-inner`}):!1,[t])}const $xe=(e,t,n)=>{let r=n;n||(r=t?h.createElement(sh,null):h.createElement(Rd,null));const i=h.createElement("span",{className:`${e}-menu-item-loading-icon`},h.createElement(Td,{spin:!0}));return h.useMemo(()=>[r,i],[r])},Xlt=e=>{const{checkboxCls:t}=e,n=`${t}-wrapper`;return[{[`${t}-group`]:Object.assign(Object.assign({},mr(e)),{display:"inline-flex",flexWrap:"wrap",columnGap:e.marginXS,[`> ${e.antCls}-row`]:{flex:1}}),[n]:Object.assign(Object.assign({},mr(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({},mr(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({},wd(e))},[`${t}-inner`]:{boxSizing:"border-box",display:"block",width:e.checkboxSize,height:e.checkboxSize,direction:"ltr",backgroundColor:e.colorBgContainer,border:`${Ie(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,borderCollapse:"separate",transition:`all ${e.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"25%",display:"table",width:e.calc(e.checkboxSize).div(14).mul(5).equal(),height:e.calc(e.checkboxSize).div(14).mul(8).equal(),border:`${Ie(e.lineWidthBold)} solid ${e.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${e.motionDurationFast} ${e.motionEaseInBack}, opacity ${e.motionDurationFast}`}},"& + span":{paddingInlineStart:e.paddingXS,paddingInlineEnd:e.paddingXS}})},{[`
${n}:not(${n}-disabled),
${t}:not(${t}-disabled)
`]:{[`&:hover ${t}-inner`]:{borderColor:e.colorPrimary}},[`${n}:not(${n}-disabled)`]:{[`&:hover ${t}-checked:not(${t}-disabled) ${t}-inner`]:{backgroundColor:e.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${t}-checked:not(${t}-disabled):after`]:{borderColor:e.colorPrimaryHover}}},{[`${t}-checked`]:{[`${t}-inner`]:{backgroundColor:e.colorPrimary,borderColor:e.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${e.motionDurationMid} ${e.motionEaseOutBack} ${e.motionDurationFast}`}}},[`
${n}-checked:not(${n}-disabled),
${t}-checked:not(${t}-disabled)
`]:{[`&:hover ${t}-inner`]:{backgroundColor:e.colorPrimaryHover,borderColor:"transparent"}}},{[t]:{"&-indeterminate":{"&":{[`${t}-inner`]:{backgroundColor:`${e.colorBgContainer}`,borderColor:`${e.colorBorder}`,"&: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}`,borderColor:`${e.colorPrimary}`}}}}},{[`${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 tD(e,t){const n=Un(t,{checkboxCls:`.${e}`,checkboxSize:t.controlInteractiveSize});return[Xlt(n)]}const Fxe=ir("Checkbox",(e,{prefixCls:t})=>[tD(t,e)]),Bxe=e=>{const{prefixCls:t,componentCls:n}=e,r=`${n}-menu-item`,i=`
&${r}-expand ${r}-expand-icon,
${r}-loading-icon
`;return[tD(`${t}-checkbox`,e),{[n]:{"&-checkbox":{top:0,marginInlineEnd:e.paddingXS,pointerEvents:"unset"},"&-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:`${Ie(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},"&-item":Object.assign(Object.assign({},Hl),{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.colorIcon,fontSize:e.fontSizeIcon},"&-keyword":{color:e.colorHighlight}})}}}]},Zlt=e=>{const{componentCls:t,antCls:n}=e;return[{[t]:{width:e.controlWidth}},{[`${t}-dropdown`]:[{[`&${n}-select-dropdown`]:{padding:0}},Bxe(e)]},{[`${t}-dropdown-rtl`]:{direction:"rtl"}},bv(e)]},Hxe=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}},jxe=ir("Cascader",e=>[Zlt(e)],Hxe),Jlt=e=>{const{componentCls:t}=e;return{[`${t}-panel`]:[Bxe(e),{display:"inline-flex",border:`${Ie(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}}]}},ect=T_e(["Cascader","Panel"],e=>Jlt(e),Hxe);function tct(e){const{prefixCls:t,className:n,multiple:r,rootClassName:i,notFoundContent:o,direction:a,expandIcon:s,disabled:l}=e,c=h.useContext(Yo),u=l??c,[d,f,p,m]=Dxe(t,a),g=gi(f),[v,y,b]=jxe(f,g);ect(f);const _=p==="rtl",[S,x]=$xe(d,_,s),E=o||(m==null?void 0:m("Cascader"))||h.createElement(gS,{componentName:"Cascader"}),C=Lxe(f,r);return v(h.createElement(Pxe,Object.assign({},e,{checkable:C,prefixCls:f,className:Ce(n,y,i,b,g),notFoundContent:E,direction:p,expandIcon:S,loadingIcon:x,disabled:u})))}var nct=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);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:rct,SHOW_PARENT:ict}=_2;function oct(e,t,n){const r=e.toLowerCase().split(t).reduce((a,s,l)=>l===0?[s]:[].concat(rt(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=h.createElement("span",{className:`${n}-menu-item-keyword`,key:`separator-${s}`},c)),i.push(c)}),i}const act=(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=oct(String(l),o,n)),i.push(l)}),i},CS=h.forwardRef((e,t)=>{var n,r,i,o;const{prefixCls:a,size:s,disabled:l,className:c,rootClassName:u,multiple:d,bordered:f=!0,transitionName:p,choiceTransitionName:m="",popupClassName:g,dropdownClassName:v,expandIcon:y,placement:b,showSearch:_,allowClear:S=!0,notFoundContent:x,direction:E,getPopupContainer:C,status:w,showArrow:O,builtinPlacements:T,style:A,variant:I,dropdownRender:N,onDropdownVisibleChange:D,dropdownMenuColumnStyle:M,popupRender:k,dropdownStyle:P,popupMenuColumnStyle:B,onOpenChange:G,styles:L,classNames:W}=e,j=nct(e,["prefixCls","size","disabled","className","rootClassName","multiple","bordered","transitionName","choiceTransitionName","popupClassName","dropdownClassName","expandIcon","placement","showSearch","allowClear","notFoundContent","direction","getPopupContainer","status","showArrow","builtinPlacements","style","variant","dropdownRender","onDropdownVisibleChange","dropdownMenuColumnStyle","popupRender","dropdownStyle","popupMenuColumnStyle","onOpenChange","styles","classNames"]),H=ur(j,["suffixIcon"]),{getPrefixCls:X,getPopupContainer:Q,className:ue,style:ee,classNames:K,styles:se}=Vi("cascader"),{popupOverflow:le}=h.useContext(cn),{status:oe,hasFeedback:ne,isFormItemInput:he,feedbackIcon:me}=h.useContext(oa),ce=yh(oe,w),[re,ve,be,xe]=Dxe(a,E),we=be==="rtl",de=X(),Ee=gi(re),[Ne,Te,Ve]=nY(re,Ee),q=gi(ve),[U]=jxe(ve,q),{compactSize:Y,compactItemClassnames:ae}=Ru(re,E),[ye,fe]=Kf("cascader",I,f),Ae=x||(xe==null?void 0:xe("Cascader"))||h.createElement(gS,{componentName:"Cascader"}),We=Ce(((n=W==null?void 0:W.popup)===null||n===void 0?void 0:n.root)||((r=K.popup)===null||r===void 0?void 0:r.root)||g||v,`${ve}-dropdown`,{[`${ve}-dropdown-rtl`]:be==="rtl"},u,Ee,K.root,W==null?void 0:W.root,q,Te,Ve),ie=k||N,Be=B||M,Fe=G||D,Pe=((i=L==null?void 0:L.popup)===null||i===void 0?void 0:i.root)||((o=se.popup)===null||o===void 0?void 0:o.root)||P,Ke=h.useMemo(()=>{if(!_)return _;let He={render:act};return typeof _=="object"&&(He=Object.assign(Object.assign({},He),_)),He},[_]),tt=mo(He=>{var it;return(it=s??Y)!==null&&it!==void 0?it:He}),Ge=h.useContext(Yo),Nt=l??Ge,[lt,st]=$xe(re,we,y),It=Lxe(ve,d),ct=rY(e.suffixIcon,O),{suffixIcon:Pt,removeIcon:Rt,clearIcon:Tt}=BP(Object.assign(Object.assign({},e),{hasFeedback:ne,feedbackIcon:me,showSuffixIcon:ct,multiple:d,prefixCls:re,componentName:"Cascader"})),Me=h.useMemo(()=>b!==void 0?b:we?"bottomRight":"bottomLeft",[b,we]),Ue=S===!0?{clearIcon:Tt}:S,[$e]=Ou("SelectLike",Pe==null?void 0:Pe.zIndex),Le=h.createElement(_2,Object.assign({prefixCls:re,className:Ce(!a&&ve,{[`${re}-lg`]:tt==="large",[`${re}-sm`]:tt==="small",[`${re}-rtl`]:we,[`${re}-${ye}`]:fe,[`${re}-in-form-item`]:he},Id(re,ce,ne),ae,ue,c,u,W==null?void 0:W.root,K.root,Ee,q,Te,Ve),disabled:Nt,style:Object.assign(Object.assign(Object.assign(Object.assign({},se.root),L==null?void 0:L.root),ee),A)},H,{builtinPlacements:tY(T,le),direction:be,placement:Me,notFoundContent:Ae,allowClear:Ue,showSearch:Ke,expandIcon:lt,suffixIcon:Pt,removeIcon:Rt,loadingIcon:st,checkable:It,dropdownClassName:We,dropdownPrefixCls:a||ve,dropdownStyle:Object.assign(Object.assign({},Pe),{zIndex:$e}),dropdownRender:ie,dropdownMenuColumnStyle:Be,onOpenChange:Fe,choiceTransitionName:Va(de,"",m),transitionName:Va(de,"slide-up",p),getPopupContainer:C||Q,ref:t}));return U(Ne(Le))}),sct=Ig(CS,"dropdownAlign",e=>ur(e,["visible"]));CS.SHOW_PARENT=ict;CS.SHOW_CHILD=rct;CS.Panel=tct;CS._InternalPanelDoNotUseOrYouWillBeFired=sct;const Uxe=pe.createContext(null);var lct=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);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 cct=(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,p=lct(e,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:m,direction:g,checkbox:v}=h.useContext(cn),y=h.useContext(Uxe),{isFormItemInput:b}=h.useContext(oa),_=h.useContext(Yo),S=(n=(y==null?void 0:y.disabled)||f)!==null&&n!==void 0?n:_,x=h.useRef(p.value),E=h.useRef(null),C=aa(t,E);h.useEffect(()=>{y==null||y.registerValue(p.value)},[]),h.useEffect(()=>{if(!d)return p.value!==x.current&&(y==null||y.cancelValue(x.current),y==null||y.registerValue(p.value),x.current=p.value),()=>y==null?void 0:y.cancelValue(p.value)},[p.value]),h.useEffect(()=>{var B;!((B=E.current)===null||B===void 0)&&B.input&&(E.current.input.indeterminate=s)},[s]);const w=m("checkbox",r),O=gi(w),[T,A,I]=Fxe(w,O),N=Object.assign({},p);y&&!d&&(N.onChange=(...B)=>{p.onChange&&p.onChange.apply(p,B),y.toggleOption&&y.toggleOption({label:a,value:p.value})},N.name=y.name,N.checked=y.value.includes(p.value));const D=Ce(`${w}-wrapper`,{[`${w}-rtl`]:g==="rtl",[`${w}-wrapper-checked`]:N.checked,[`${w}-wrapper-disabled`]:S,[`${w}-wrapper-in-form-item`]:b},v==null?void 0:v.className,i,o,I,O,A),M=Ce({[`${w}-indeterminate`]:s},yP,A),[k,P]=ixe(N.onClick);return T(h.createElement(n2,{component:"Checkbox",disabled:S},h.createElement("label",{className:D,style:Object.assign(Object.assign({},v==null?void 0:v.style),l),onMouseEnter:c,onMouseLeave:u,onClick:k},h.createElement(rxe,Object.assign({},N,{onClick:P,prefixCls:w,className:M,disabled:S,ref:C})),a!=null&&h.createElement("span",{className:`${w}-label`},a))))},zxe=h.forwardRef(cct);var uct=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);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 dct=h.forwardRef((e,t)=>{const{defaultValue:n,children:r,options:i=[],prefixCls:o,className:a,rootClassName:s,style:l,onChange:c}=e,u=uct(e,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:d,direction:f}=h.useContext(cn),[p,m]=h.useState(u.value||n||[]),[g,v]=h.useState([]);h.useEffect(()=>{"value"in u&&m(u.value||[])},[u.value]);const y=h.useMemo(()=>i.map(M=>typeof M=="string"||typeof M=="number"?{label:M,value:M}:M),[i]),b=M=>{v(k=>k.filter(P=>P!==M))},_=M=>{v(k=>[].concat(rt(k),[M]))},S=M=>{const k=p.indexOf(M.value),P=rt(p);k===-1?P.push(M.value):P.splice(k,1),"value"in u||m(P),c==null||c(P.filter(B=>g.includes(B)).sort((B,G)=>{const L=y.findIndex(j=>j.value===B),W=y.findIndex(j=>j.value===G);return L-W}))},x=d("checkbox",o),E=`${x}-group`,C=gi(x),[w,O,T]=Fxe(x,C),A=ur(u,["value","disabled"]),I=i.length?y.map(M=>h.createElement(zxe,{prefixCls:x,key:M.value.toString(),disabled:"disabled"in M?M.disabled:u.disabled,value:M.value,checked:p.includes(M.value),onChange:M.onChange,className:Ce(`${E}-item`,M.className),style:M.style,title:M.title,id:M.id,required:M.required},M.label)):r,N=h.useMemo(()=>({toggleOption:S,value:p,disabled:u.disabled,name:u.name,registerValue:_,cancelValue:b}),[S,p,u.disabled,u.name,_,b]),D=Ce(E,{[`${E}-rtl`]:f==="rtl"},a,s,T,C,O);return w(h.createElement("div",Object.assign({className:D,style:l},A,{ref:t}),h.createElement(Uxe.Provider,{value:N},I)))}),lh=zxe;lh.Group=dct;lh.__ANT_CHECKBOX=!0;const Vxe=h.createContext({});var fct=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);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 Vie(e){return typeof e=="number"?`${e} ${e} auto`:/^\d+(\.\d+)?(px|em|rem|%)$/.test(e)?`0 0 ${e}`:e}const pct=["xs","sm","md","lg","xl","xxl"],j1=h.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r}=h.useContext(cn),{gutter:i,wrap:o}=h.useContext(Vxe),{prefixCls:a,span:s,order:l,offset:c,push:u,pull:d,className:f,children:p,flex:m,style:g}=e,v=fct(e,["prefixCls","span","order","offset","push","pull","className","children","flex","style"]),y=n("col",a),[b,_,S]=wet(y),x={};let E={};pct.forEach(O=>{let T={};const A=e[O];typeof A=="number"?T.span=A:typeof A=="object"&&(T=A||{}),delete v[O],E=Object.assign(Object.assign({},E),{[`${y}-${O}-${T.span}`]:T.span!==void 0,[`${y}-${O}-order-${T.order}`]:T.order||T.order===0,[`${y}-${O}-offset-${T.offset}`]:T.offset||T.offset===0,[`${y}-${O}-push-${T.push}`]:T.push||T.push===0,[`${y}-${O}-pull-${T.pull}`]:T.pull||T.pull===0,[`${y}-rtl`]:r==="rtl"}),T.flex&&(E[`${y}-${O}-flex`]=!0,x[`--${y}-${O}-flex`]=Vie(T.flex))});const C=Ce(y,{[`${y}-${s}`]:s!==void 0,[`${y}-order-${l}`]:l,[`${y}-offset-${c}`]:c,[`${y}-push-${u}`]:u,[`${y}-pull-${d}`]:d},f,E,_,S),w={};if(i&&i[0]>0){const O=i[0]/2;w.paddingLeft=O,w.paddingRight=O}return m&&(w.flex=Vie(m),o===!1&&!w.minWidth&&(w.minWidth=0)),b(h.createElement("div",Object.assign({},v,{style:Object.assign(Object.assign(Object.assign({},w),g),x),className:C,ref:t}),p))});function hct(e,t){const n=[void 0,void 0],r=Array.isArray(e)?e:[e,void 0],i=t||{xs:!0,sm:!0,md:!0,lg:!0,xl:!0,xxl:!0};return r.forEach((o,a)=>{if(typeof o=="object"&&o!==null)for(let s=0;s<gg.length;s++){const l=gg[s];if(i[l]&&o[l]!==void 0){n[a]=o[l];break}}else n[a]=o}),n}var mct=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);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 Gie(e,t){const[n,r]=h.useState(typeof e=="string"?e:""),i=()=>{if(typeof e=="string"&&r(e),typeof e=="object")for(let o=0;o<gg.length;o++){const a=gg[o];if(!t||!t[a])continue;const s=e[a];if(s!==void 0){r(s);return}}};return h.useEffect(()=>{i()},[JSON.stringify(e),t]),n}const S2=h.forwardRef((e,t)=>{const{prefixCls:n,justify:r,align:i,className:o,style:a,children:s,gutter:l=0,wrap:c}=e,u=mct(e,["prefixCls","justify","align","className","style","children","gutter","wrap"]),{getPrefixCls:d,direction:f}=h.useContext(cn),p=f2(!0,null),m=Gie(i,p),g=Gie(r,p),v=d("row",n),[y,b,_]=xet(v),S=hct(l,p),x=Ce(v,{[`${v}-no-wrap`]:c===!1,[`${v}-${g}`]:g,[`${v}-${m}`]:m,[`${v}-rtl`]:f==="rtl"},o,b,_),E={},C=S[0]!=null&&S[0]>0?S[0]/-2:void 0;C&&(E.marginLeft=C,E.marginRight=C);const[w,O]=S;E.rowGap=O;const T=h.useMemo(()=>({gutter:[w,O],wrap:c}),[w,O,c]);return y(h.createElement(Vxe.Provider,{value:T},h.createElement("div",Object.assign({},u,{className:x,style:Object.assign(Object.assign({},E),a),ref:t}),s)))}),gct=e=>{const{componentCls:t}=e;return{[t]:{"&-horizontal":{[`&${t}`]:{"&-sm":{marginBlock:e.marginXS},"&-md":{marginBlock:e.margin}}}}}},vct=e=>{const{componentCls:t,sizePaddingEdgeHorizontal:n,colorSplit:r,lineWidth:i,textPaddingInline:o,orientationMargin:a,verticalMarginInline:s}=e;return{[t]:Object.assign(Object.assign({},mr(e)),{borderBlockStart:`${Ie(i)} solid ${r}`,"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",marginInline:s,marginBlock:0,verticalAlign:"middle",borderTop:0,borderInlineStart:`${Ie(i)} solid ${r}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${Ie(e.marginLG)} 0`},[`&-horizontal${t}-with-text`]:{display:"flex",alignItems:"center",margin:`${Ie(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:`${Ie(i)} solid transparent`,borderBlockStartColor:"inherit",borderBlockEnd:0,transform:"translateY(50%)",content:"''"}},[`&-horizontal${t}-with-text-start`]:{"&::before":{width:`calc(${a} * 100%)`},"&::after":{width:`calc(100% - ${a} * 100%)`}},[`&-horizontal${t}-with-text-end`]:{"&::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:`${Ie(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:`${Ie(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-start${t}-no-default-orientation-margin-start`]:{"&::before":{width:0},"&::after":{width:"100%"},[`${t}-inner-text`]:{paddingInlineStart:n}},[`&-horizontal${t}-with-text-end${t}-no-default-orientation-margin-end`]:{"&::before":{width:"100%"},"&::after":{width:0},[`${t}-inner-text`]:{paddingInlineEnd:n}}})}},bct=e=>({textPaddingInline:"1em",orientationMargin:.05,verticalMarginInline:e.marginXS}),yct=ir("Divider",e=>{const t=Un(e,{dividerHorizontalWithTextGutterMargin:e.margin,sizePaddingEdgeHorizontal:0});return[vct(t),gct(t)]},bct,{unitless:{orientationMargin:!0}});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 Sct={small:"sm",middle:"md"},Ect=e=>{const{getPrefixCls:t,direction:n,className:r,style:i}=Vi("divider"),{prefixCls:o,type:a="horizontal",orientation:s="center",orientationMargin:l,className:c,rootClassName:u,children:d,dashed:f,variant:p="solid",plain:m,style:g,size:v}=e,y=_ct(e,["prefixCls","type","orientation","orientationMargin","className","rootClassName","children","dashed","variant","plain","style","size"]),b=t("divider",o),[_,S,x]=yct(b),E=mo(v),C=Sct[E],w=!!d,O=h.useMemo(()=>s==="left"?n==="rtl"?"end":"start":s==="right"?n==="rtl"?"start":"end":s,[n,s]),T=O==="start"&&l!=null,A=O==="end"&&l!=null,I=Ce(b,r,S,x,`${b}-${a}`,{[`${b}-with-text`]:w,[`${b}-with-text-${O}`]:w,[`${b}-dashed`]:!!f,[`${b}-${p}`]:p!=="solid",[`${b}-plain`]:!!m,[`${b}-rtl`]:n==="rtl",[`${b}-no-default-orientation-margin-start`]:T,[`${b}-no-default-orientation-margin-end`]:A,[`${b}-${C}`]:!!C},c,u),N=h.useMemo(()=>typeof l=="number"?l:/^\d+$/.test(l)?Number(l):l,[l]),D={marginInlineStart:T?N:void 0,marginInlineEnd:A?N:void 0};return _(h.createElement("div",Object.assign({className:I,style:Object.assign(Object.assign({},i),g)},y,{role:"separator"}),d&&a!=="vertical"&&h.createElement("span",{className:`${b}-inner-text`,style:D},d)))};var Wie=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}},Xd=function(t){return t!==void 0?"".concat(t,"px"):void 0};function Cct(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=h.useRef(null),f=h.useState(r),p=Re(f,2),m=p[0],g=p[1],v=function(M){var k,P=i(M),B=(k=n.current)===null||k===void 0?void 0:k.querySelectorAll(".".concat(t,"-item"))[P];return(B==null?void 0:B.offsetParent)&&B},y=h.useState(null),b=Re(y,2),_=b[0],S=b[1],x=h.useState(null),E=Re(x,2),C=E[0],w=E[1];er(function(){if(m!==r){var D=v(m),M=v(r),k=Wie(D,u),P=Wie(M,u);g(r),S(k),w(P),D&&M?a():s()}},[r]);var O=h.useMemo(function(){if(u){var D;return Xd((D=_==null?void 0:_.top)!==null&&D!==void 0?D:0)}return Xd(l==="rtl"?-(_==null?void 0:_.right):_==null?void 0:_.left)},[u,l,_]),T=h.useMemo(function(){if(u){var D;return Xd((D=C==null?void 0:C.top)!==null&&D!==void 0?D:0)}return Xd(l==="rtl"?-(C==null?void 0:C.right):C==null?void 0:C.left)},[u,l,C]),A=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)"}},N=function(){S(null),w(null),s()};return!_||!C?null:h.createElement(ia,{visible:!0,motionName:o,motionAppear:!0,onAppearStart:A,onAppearActive:I,onVisibleChanged:N},function(D,M){var k=D.className,P=D.style,B=z(z({},P),{},{"--thumb-start-left":O,"--thumb-start-width":Xd(_==null?void 0:_.width),"--thumb-active-left":T,"--thumb-active-width":Xd(C==null?void 0:C.width),"--thumb-start-top":O,"--thumb-start-height":Xd(_==null?void 0:_.height),"--thumb-active-top":T,"--thumb-active-height":Xd(C==null?void 0:C.height)}),G={ref:aa(d,M),style:B,className:Ce("".concat(t,"-thumb"),k)};return h.createElement("div",G)})}var xct=["prefixCls","direction","vertical","options","disabled","defaultValue","value","name","onChange","className","motionName"];function wct(e){if(typeof e.title<"u")return e.title;if(qt(e.label)!=="object"){var t;return(t=e.label)===null||t===void 0?void 0:t.toString()}}function Tct(e){return e.map(function(t){if(qt(t)==="object"&&t!==null){var n=wct(t);return z(z({},t),{},{title:n})}return{label:t==null?void 0:t.toString(),title:t==null?void 0:t.toString(),value:t}})}var Oct=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,p=t.onKeyDown,m=t.onKeyUp,g=t.onMouseDown,v=function(b){i||u(b,l)};return h.createElement("label",{className:Ce(r,te({},"".concat(n,"-item-disabled"),i)),onMouseDown:g},h.createElement("input",{name:c,className:"".concat(n,"-item-input"),type:"radio",disabled:i,checked:o,onChange:v,onFocus:d,onBlur:f,onKeyDown:p,onKeyUp:m}),h.createElement("div",{className:"".concat(n,"-item-label"),title:s,"aria-selected":o},a))},Rct=h.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,p=e.name,m=e.onChange,g=e.className,v=g===void 0?"":g,y=e.motionName,b=y===void 0?"thumb-motion":y,_=kt(e,xct),S=h.useRef(null),x=h.useMemo(function(){return aa(S,t)},[S,t]),E=h.useMemo(function(){return Tct(c)},[c]),C=Pn((n=E[0])===null||n===void 0?void 0:n.value,{value:f,defaultValue:d}),w=Re(C,2),O=w[0],T=w[1],A=h.useState(!1),I=Re(A,2),N=I[0],D=I[1],M=function(ne,he){T(he),m==null||m(he)},k=ur(_,["children"]),P=h.useState(!1),B=Re(P,2),G=B[0],L=B[1],W=h.useState(!1),j=Re(W,2),H=j[0],X=j[1],Q=function(){X(!0)},ue=function(){X(!1)},ee=function(){L(!1)},K=function(ne){ne.key==="Tab"&&L(!0)},se=function(ne){var he=E.findIndex(function(ve){return ve.value===O}),me=E.length,ce=(he+ne+me)%me,re=E[ce];re&&(T(re.value),m==null||m(re.value))},le=function(ne){switch(ne.key){case"ArrowLeft":case"ArrowUp":se(-1);break;case"ArrowRight":case"ArrowDown":se(1);break}};return h.createElement("div",Xe({role:"radiogroup","aria-label":"segmented control",tabIndex:u?void 0:0},k,{className:Ce(o,(r={},te(r,"".concat(o,"-rtl"),a==="rtl"),te(r,"".concat(o,"-disabled"),u),te(r,"".concat(o,"-vertical"),s),r),v),ref:x}),h.createElement("div",{className:"".concat(o,"-group")},h.createElement(Cct,{vertical:s,prefixCls:o,value:O,containerRef:S,motionName:"".concat(o,"-").concat(b),direction:a,getValueIndex:function(ne){return E.findIndex(function(he){return he.value===ne})},onMotionStart:function(){D(!0)},onMotionEnd:function(){D(!1)}}),E.map(function(oe){var ne;return h.createElement(Oct,Xe({},oe,{name:p,key:oe.value,prefixCls:o,className:Ce(oe.className,"".concat(o,"-item"),(ne={},te(ne,"".concat(o,"-item-selected"),oe.value===O&&!N),te(ne,"".concat(o,"-item-focused"),H&&G&&oe.value===O),ne)),checked:oe.value===O,onChange:M,onFocus:Q,onBlur:ue,onKeyDown:le,onKeyUp:K,onMouseDown:ee,disabled:!!u||!!oe.disabled}))})))}),Act=Rct;function qie(e,t){return{[`${e}, ${e}:hover, ${e}:focus`]:{color:t.colorTextDisabled,cursor:"not-allowed"}}}function Yie(e){return{backgroundColor:e.itemSelectedBg,boxShadow:e.boxShadowTertiary}}const Ict=Object.assign({overflow:"hidden"},Hl),Nct=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({},mr(e)),{display:"inline-block",padding:e.trackPadding,color:e.itemColor,background:e.trackBg,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`}),tl(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 ${Ie(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({},Yie(e)),{color:e.itemSelectedColor}),"&-focused":Object.assign({},wd(e)),"&::after":{content:'""',position:"absolute",zIndex:-1,width:"100%",height:"100%",top:0,insetInlineStart:0,borderRadius:"inherit",opacity:0,transition:`opacity ${e.motionDurationMid}`,pointerEvents:"none"},[`&:hover:not(${t}-item-selected):not(${t}-item-disabled)`]:{color:e.itemHoverColor,"&::after":{opacity:1,backgroundColor:e.itemHoverBg}},[`&:active:not(${t}-item-selected):not(${t}-item-disabled)`]:{color:e.itemHoverColor,"&::after":{opacity:1,backgroundColor:e.itemActiveBg}},"&-label":Object.assign({minHeight:n,lineHeight:Ie(n),padding:`0 ${Ie(e.segmentedPaddingHorizontal)}`},Ict),"&-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({},Yie(e)),{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:0,height:"100%",padding:`${Ie(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:Ie(r),padding:`0 ${Ie(e.segmentedPaddingHorizontal)}`,fontSize:e.fontSizeLG},[`${t}-item, ${t}-thumb`]:{borderRadius:e.borderRadius}},[`&${t}-sm`]:{borderRadius:e.borderRadiusSM,[`${t}-item-label`]:{minHeight:i,lineHeight:Ie(i),padding:`0 ${Ie(e.segmentedPaddingHorizontalSM)}`},[`${t}-item, ${t}-thumb`]:{borderRadius:e.borderRadiusXS}}}),qie(`&-disabled ${t}-item`,e)),qie(`${t}-item-disabled`,e)),{[`${t}-thumb-motion-appear-active`]:{transition:`transform ${e.motionDurationSlow} ${e.motionEaseInOut}, width ${e.motionDurationSlow} ${e.motionEaseInOut}`,willChange:"transform, width"},[`&${t}-shape-round`]:{borderRadius:9999,[`${t}-item, ${t}-thumb`]:{borderRadius:9999}}})}},Mct=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}},kct=ir("Segmented",e=>{const{lineWidth:t,calc:n}=e,r=Un(e,{segmentedPaddingHorizontal:n(e.controlPaddingHorizontal).sub(t).equal(),segmentedPaddingHorizontalSM:n(e.controlPaddingHorizontalSM).sub(t).equal()});return[Nct(r)]},Mct);var Kie=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);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 Pct(e){return typeof e=="object"&&!!(e!=null&&e.icon)}const Dct=h.forwardRef((e,t)=>{const n=a2(),{prefixCls:r,className:i,rootClassName:o,block:a,options:s=[],size:l="middle",style:c,vertical:u,shape:d="default",name:f=n}=e,p=Kie(e,["prefixCls","className","rootClassName","block","options","size","style","vertical","shape","name"]),{getPrefixCls:m,direction:g,className:v,style:y}=Vi("segmented"),b=m("segmented",r),[_,S,x]=kct(b),E=mo(l),C=h.useMemo(()=>s.map(T=>{if(Pct(T)){const{icon:A,label:I}=T,N=Kie(T,["icon","label"]);return Object.assign(Object.assign({},N),{label:h.createElement(h.Fragment,null,h.createElement("span",{className:`${b}-item-icon`},A),I&&h.createElement("span",null,I))})}return T}),[s,b]),w=Ce(i,o,v,{[`${b}-block`]:a,[`${b}-sm`]:E==="small",[`${b}-lg`]:E==="large",[`${b}-vertical`]:u,[`${b}-shape-${d}`]:d==="round"},S,x),O=Object.assign(Object.assign({},y),c);return _(h.createElement(Act,Object.assign({},p,{name:f,className:w,style:O,options:C,ref:t,prefixCls:b,direction:g,vertical:u})))}),Gxe=Dct,Wxe=pe.createContext({}),qxe=pe.createContext({}),Yxe=({prefixCls:e,value:t,onChange:n})=>{const r=()=>{if(n&&t&&!t.cleared){const i=t.toHsb();i.a=0;const o=Ps(i);o.cleared=!0,n(o)}};return pe.createElement("div",{className:`${e}-clear`,onClick:r})},Kxe="hex",Qxe="rgb",Xxe="hsb";var Lct={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"},$ct=function(t,n){return h.createElement(Mn,Xe({},t,{ref:n,icon:Lct}))},Fct=h.forwardRef($ct);function JH(){return typeof BigInt=="function"}function Zxe(e){return!e&&e!==0&&!Number.isNaN(e)||!String(e).trim()}function c1(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 MY(e){var t=String(e);return!Number.isNaN(Number(t))&&t.includes("e")}function F0(e){var t=String(e);if(MY(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(".")&&kY(t)?t.length-t.indexOf(".")-1:0}function nD(e){var t=String(e);if(MY(e)){if(e>Number.MAX_SAFE_INTEGER)return String(JH()?BigInt(e).toString():Number.MAX_SAFE_INTEGER);if(e<Number.MIN_SAFE_INTEGER)return String(JH()?BigInt(e).toString():Number.MIN_SAFE_INTEGER);t=e.toFixed(F0(t))}return c1(t).fullStr}function kY(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 Bct=function(){function e(t){if(Qr(this,e),te(this,"origin",""),te(this,"negative",void 0),te(this,"integer",void 0),te(this,"decimal",void 0),te(this,"decimalLen",void 0),te(this,"empty",void 0),te(this,"nan",void 0),Zxe(t)){this.empty=!0;return}if(this.origin=String(t),t==="-"||Number.isNaN(t)){this.nan=!0;return}var n=t;if(MY(n)&&(n=Number(n)),n=typeof n=="string"?n:nD(n),kY(n)){var r=c1(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 Xr(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=c1(l),d=u.negativeStr,f=u.trimStr,p="".concat(d).concat(f.padStart(c+1,"0"));return new e("".concat(p.slice(0,-c),".").concat(p.slice(-c)))}},{key:"add",value:function(n){if(this.isInvalidate())return new e(n);var r=new e(n);return r.isInvalidate()?this:this.cal(r,function(i,o){return i+o},function(i){return i})}},{key:"multi",value:function(n){var r=new e(n);return this.isInvalidate()||r.isInvalidate()?new e(NaN):this.cal(r,function(i,o){return i*o},function(i){return i*2})}},{key:"isEmpty",value:function(){return this.empty}},{key:"isNaN",value:function(){return this.nan}},{key:"isInvalidate",value:function(){return this.isEmpty()||this.isNaN()}},{key:"equals",value:function(n){return this.toString()===(n==null?void 0:n.toString())}},{key:"lessEquals",value:function(n){return this.add(n.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.isNaN()?NaN:Number(this.toString())}},{key:"toString",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return n?this.isInvalidate()?"":c1("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr:this.origin}}]),e}(),Hct=function(){function e(t){if(Qr(this,e),te(this,"origin",""),te(this,"number",void 0),te(this,"empty",void 0),Zxe(t)){this.empty=!0;return}this.origin=String(t),this.number=Number(t)}return Xr(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(F0(this.number),F0(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(F0(this.number),F0(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()?"":nD(this.number):this.origin}}]),e}();function Vu(e){return JH()?new Bct(e):new Hct(e)}function kI(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(e==="")return"";var i=c1(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 kI(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 jct(e){return!!(e.addonBefore||e.addonAfter)}function Uct(e){return!!(e.prefix||e.suffix||e.allowClear)}function Qie(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 G4(e,t,n,r){if(n){var i=t;if(t.type==="click"){i=Qie(t,e,""),n(i);return}if(e.type!=="file"&&r!==void 0){i=Qie(t,e,r),n(i);return}n(i)}}function PY(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 DY=pe.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,p=e.style,m=e.disabled,g=e.readOnly,v=e.focused,y=e.triggerFocus,b=e.allowClear,_=e.value,S=e.handleReset,x=e.hidden,E=e.classes,C=e.classNames,w=e.dataAttrs,O=e.styles,T=e.components,A=e.onClear,I=a??o,N=(T==null?void 0:T.affixWrapper)||"span",D=(T==null?void 0:T.groupWrapper)||"span",M=(T==null?void 0:T.wrapper)||"span",k=(T==null?void 0:T.groupAddon)||"span",P=h.useRef(null),B=function(ce){var re;(re=P.current)!==null&&re!==void 0&&re.contains(ce.target)&&(y==null||y())},G=Uct(e),L=h.cloneElement(I,{value:_,className:Ce((n=I.props)===null||n===void 0?void 0:n.className,!G&&(C==null?void 0:C.variant))||null}),W=h.useRef(null);if(pe.useImperativeHandle(t,function(){return{nativeElement:W.current||P.current}}),G){var j=null;if(b){var H=!m&&!g&&_,X="".concat(s,"-clear-icon"),Q=qt(b)==="object"&&b!==null&&b!==void 0&&b.clearIcon?b.clearIcon:"✖";j=pe.createElement("button",{type:"button",tabIndex:-1,onClick:function(ce){S==null||S(ce),A==null||A()},onMouseDown:function(ce){return ce.preventDefault()},className:Ce(X,te(te({},"".concat(X,"-hidden"),!H),"".concat(X,"-has-suffix"),!!c))},Q)}var ue="".concat(s,"-affix-wrapper"),ee=Ce(ue,te(te(te(te(te({},"".concat(s,"-disabled"),m),"".concat(ue,"-disabled"),m),"".concat(ue,"-focused"),v),"".concat(ue,"-readonly"),g),"".concat(ue,"-input-with-clear-btn"),c&&b&&_),E==null?void 0:E.affixWrapper,C==null?void 0:C.affixWrapper,C==null?void 0:C.variant),K=(c||b)&&pe.createElement("span",{className:Ce("".concat(s,"-suffix"),C==null?void 0:C.suffix),style:O==null?void 0:O.suffix},j,c);L=pe.createElement(N,Xe({className:ee,style:O==null?void 0:O.affixWrapper,onClick:B},w==null?void 0:w.affixWrapper,{ref:P}),l&&pe.createElement("span",{className:Ce("".concat(s,"-prefix"),C==null?void 0:C.prefix),style:O==null?void 0:O.prefix},l),L,K)}if(jct(e)){var se="".concat(s,"-group"),le="".concat(se,"-addon"),oe="".concat(se,"-wrapper"),ne=Ce("".concat(s,"-wrapper"),se,E==null?void 0:E.wrapper,C==null?void 0:C.wrapper),he=Ce(oe,te({},"".concat(oe,"-disabled"),m),E==null?void 0:E.group,C==null?void 0:C.groupWrapper);L=pe.createElement(D,{className:he,ref:W},pe.createElement(M,{className:ne},u&&pe.createElement(k,{className:le},u),L,d&&pe.createElement(k,{className:le},d)))}return pe.cloneElement(L,{className:Ce((r=L.props)===null||r===void 0?void 0:r.className,f)||null,style:z(z({},(i=L.props)===null||i===void 0?void 0:i.style),p),hidden:x})}),zct=["show"];function Jxe(e,t){return h.useMemo(function(){var n={};t&&(n.show=qt(t)==="object"&&t.formatter?t.formatter:!!t),n=z(z({},n),e);var r=n,i=r.show,o=kt(r,zct);return z(z({},o),{},{show:!!i,showFormatter:typeof i=="function"?i:void 0,strategy:o.strategy||function(a){return a.length}})},[e,t])}var Vct=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","onKeyUp","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","count","type","classes","classNames","styles","onCompositionStart","onCompositionEnd"],Gct=h.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,p=e.className,m=e.maxLength,g=e.suffix,v=e.showCount,y=e.count,b=e.type,_=b===void 0?"text":b,S=e.classes,x=e.classNames,E=e.styles,C=e.onCompositionStart,w=e.onCompositionEnd,O=kt(e,Vct),T=h.useState(!1),A=Re(T,2),I=A[0],N=A[1],D=h.useRef(!1),M=h.useRef(!1),k=h.useRef(null),P=h.useRef(null),B=function(Te){k.current&&PY(k.current,Te)},G=Pn(e.defaultValue,{value:e.value}),L=Re(G,2),W=L[0],j=L[1],H=W==null?"":String(W),X=h.useState(null),Q=Re(X,2),ue=Q[0],ee=Q[1],K=Jxe(y,v),se=K.max||m,le=K.strategy(H),oe=!!se&&le>se;h.useImperativeHandle(t,function(){var Ne;return{focus:B,blur:function(){var Ve;(Ve=k.current)===null||Ve===void 0||Ve.blur()},setSelectionRange:function(Ve,q,U){var Y;(Y=k.current)===null||Y===void 0||Y.setSelectionRange(Ve,q,U)},select:function(){var Ve;(Ve=k.current)===null||Ve===void 0||Ve.select()},input:k.current,nativeElement:((Ne=P.current)===null||Ne===void 0?void 0:Ne.nativeElement)||k.current}}),h.useEffect(function(){M.current&&(M.current=!1),N(function(Ne){return Ne&&d?!1:Ne})},[d]);var ne=function(Te,Ve,q){var U=Ve;if(!D.current&&K.exceedFormatter&&K.max&&K.strategy(Ve)>K.max){if(U=K.exceedFormatter(Ve,{max:K.max}),Ve!==U){var Y,ae;ee([((Y=k.current)===null||Y===void 0?void 0:Y.selectionStart)||0,((ae=k.current)===null||ae===void 0?void 0:ae.selectionEnd)||0])}}else if(q.source==="compositionEnd")return;j(U),k.current&&G4(k.current,Te,r,U)};h.useEffect(function(){if(ue){var Ne;(Ne=k.current)===null||Ne===void 0||Ne.setSelectionRange.apply(Ne,rt(ue))}},[ue]);var he=function(Te){ne(Te,Te.target.value,{source:"change"})},me=function(Te){D.current=!1,ne(Te,Te.currentTarget.value,{source:"compositionEnd"}),w==null||w(Te)},ce=function(Te){a&&Te.key==="Enter"&&!M.current&&(M.current=!0,a(Te)),s==null||s(Te)},re=function(Te){Te.key==="Enter"&&(M.current=!1),l==null||l(Te)},ve=function(Te){N(!0),i==null||i(Te)},be=function(Te){M.current&&(M.current=!1),N(!1),o==null||o(Te)},xe=function(Te){j(""),B(),k.current&&G4(k.current,Te,r)},we=oe&&"".concat(u,"-out-of-range"),de=function(){var Te=ur(e,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","count","classes","htmlSize","styles","classNames","onClear"]);return pe.createElement("input",Xe({autoComplete:n},Te,{onChange:he,onFocus:ve,onBlur:be,onKeyDown:ce,onKeyUp:re,className:Ce(u,te({},"".concat(u,"-disabled"),d),x==null?void 0:x.input),style:E==null?void 0:E.input,ref:k,size:f,type:_,onCompositionStart:function(q){D.current=!0,C==null||C(q)},onCompositionEnd:me}))},Ee=function(){var Te=Number(se)>0;if(g||K.show){var Ve=K.showFormatter?K.showFormatter({value:H,count:le,maxLength:se}):"".concat(le).concat(Te?" / ".concat(se):"");return pe.createElement(pe.Fragment,null,K.show&&pe.createElement("span",{className:Ce("".concat(u,"-show-count-suffix"),te({},"".concat(u,"-show-count-has-suffix"),!!g),x==null?void 0:x.count),style:z({},E==null?void 0:E.count)},Ve),g)}return null};return pe.createElement(DY,Xe({},O,{prefixCls:u,className:Ce(p,we),handleReset:xe,value:H,focused:I,triggerFocus:B,suffix:Ee(),disabled:d,classes:S,classNames:x,styles:E,ref:P}),de())});function Wct(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 qct(e,t){var n=h.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(p){Vr(!1,"Something warning of cursor restore. Please fire issue about this: ".concat(p.message))}}return[r,i]}var Yct=function(){var t=h.useState(!1),n=Re(t,2),r=n[0],i=n[1];return er(function(){i(DP())},[]),r},Kct=200,Qct=600;function Xct(e){var t=e.prefixCls,n=e.upNode,r=e.downNode,i=e.upDisabled,o=e.downDisabled,a=e.onStep,s=h.useRef(),l=h.useRef([]),c=h.useRef();c.current=a;var u=function(){clearTimeout(s.current)},d=function(_,S){_.preventDefault(),u(),c.current(S);function x(){c.current(S),s.current=setTimeout(x,Kct)}s.current=setTimeout(x,Qct)};h.useEffect(function(){return function(){u(),l.current.forEach(function(b){return tr.cancel(b)})}},[]);var f=Yct();if(f)return null;var p="".concat(t,"-handler"),m=Ce(p,"".concat(p,"-up"),te({},"".concat(p,"-up-disabled"),i)),g=Ce(p,"".concat(p,"-down"),te({},"".concat(p,"-down-disabled"),o)),v=function(){return l.current.push(tr(u))},y={unselectable:"on",role:"button",onMouseUp:v,onMouseLeave:v};return h.createElement("div",{className:"".concat(p,"-wrap")},h.createElement("span",Xe({},y,{onMouseDown:function(_){d(_,!0)},"aria-label":"Increase Value","aria-disabled":i,className:m}),n||h.createElement("span",{unselectable:"on",className:"".concat(t,"-handler-up-inner")})),h.createElement("span",Xe({},y,{onMouseDown:function(_){d(_,!1)},"aria-label":"Decrease Value","aria-disabled":o,className:g}),r||h.createElement("span",{unselectable:"on",className:"".concat(t,"-handler-down-inner")})))}function Xie(e){var t=typeof e=="number"?nD(e):c1(e).fullStr,n=t.includes(".");return n?c1(t.replace(/(\d)\.(\d)/g,"$1$2.")).fullStr:e+"0"}const Zct=function(){var e=h.useRef(0),t=function(){tr.cancel(e.current)};return h.useEffect(function(){return t},[]),function(n){t(),e.current=tr(function(){n()})}};var Jct=["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"],eut=["disabled","style","prefixCls","value","prefix","suffix","addonBefore","addonAfter","className","classNames"],Zie=function(t,n){return t||n.isEmpty()?n.toString():n.toNumber()},Jie=function(t){var n=Vu(t);return n.isInvalidate()?null:n},tut=h.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,p=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 S=e.stringMode,x=e.parser,E=e.formatter,C=e.precision,w=e.decimalSeparator,O=e.onChange,T=e.onInput,A=e.onPressEnter,I=e.onStep,N=e.changeOnBlur,D=N===void 0?!0:N,M=e.domRef,k=kt(e,Jct),P="".concat(n,"-input"),B=h.useRef(null),G=h.useState(!1),L=Re(G,2),W=L[0],j=L[1],H=h.useRef(!1),X=h.useRef(!1),Q=h.useRef(!1),ue=h.useState(function(){return Vu(u??c)}),ee=Re(ue,2),K=ee[0],se=ee[1];function le(lt){u===void 0&&se(lt)}var oe=h.useCallback(function(lt,st){if(!st)return C>=0?C:Math.max(F0(lt),F0(l))},[C,l]),ne=h.useCallback(function(lt){var st=String(lt);if(x)return x(st);var It=st;return w&&(It=It.replace(w,".")),It.replace(/[^\w.-]+/g,"")},[x,w]),he=h.useRef(""),me=h.useCallback(function(lt,st){if(E)return E(lt,{userTyping:st,input:String(he.current)});var It=typeof lt=="number"?nD(lt):lt;if(!st){var ct=oe(It,st);if(kY(It)&&(w||ct>=0)){var Pt=w||".";It=kI(It,Pt,ct)}}return It},[E,oe,w]),ce=h.useState(function(){var lt=c??u;return K.isInvalidate()&&["string","number"].includes(qt(lt))?Number.isNaN(lt)?"":lt:me(K.toString(),!1)}),re=Re(ce,2),ve=re[0],be=re[1];he.current=ve;function xe(lt,st){be(me(lt.isInvalidate()?lt.toString(!1):lt.toString(!st),st))}var we=h.useMemo(function(){return Jie(a)},[a,C]),de=h.useMemo(function(){return Jie(o)},[o,C]),Ee=h.useMemo(function(){return!we||!K||K.isInvalidate()?!1:we.lessEquals(K)},[we,K]),Ne=h.useMemo(function(){return!de||!K||K.isInvalidate()?!1:K.lessEquals(de)},[de,K]),Te=qct(B.current,W),Ve=Re(Te,2),q=Ve[0],U=Ve[1],Y=function(st){return we&&!st.lessEquals(we)?we:de&&!de.lessEquals(st)?de:null},ae=function(st){return!Y(st)},ye=function(st,It){var ct=st,Pt=ae(ct)||ct.isEmpty();if(!ct.isEmpty()&&!It&&(ct=Y(ct)||ct,Pt=!0),!f&&!d&&Pt){var Rt=ct.toString(),Tt=oe(Rt,It);return Tt>=0&&(ct=Vu(kI(Rt,".",Tt)),ae(ct)||(ct=Vu(kI(Rt,".",Tt,!0)))),ct.equals(K)||(le(ct),O==null||O(ct.isEmpty()?null:Zie(S,ct)),u===void 0&&xe(ct,It)),ct}return K},fe=Zct(),Ae=function lt(st){if(q(),he.current=st,be(st),!X.current){var It=ne(st),ct=Vu(It);ct.isNaN()||ye(ct,!0)}T==null||T(st),fe(function(){var Pt=st;x||(Pt=st.replace(/。/g,".")),Pt!==st&&lt(Pt)})},We=function(){X.current=!0},ie=function(){X.current=!1,Ae(B.current.value)},Be=function(st){Ae(st.target.value)},Fe=function(st){var It;if(!(st&&Ee||!st&&Ne)){H.current=!1;var ct=Vu(Q.current?Xie(l):l);st||(ct=ct.negate());var Pt=(K||Vu(0)).add(ct.toString()),Rt=ye(Pt,!1);I==null||I(Zie(S,Rt),{offset:Q.current?Xie(l):l,type:st?"up":"down"}),(It=B.current)===null||It===void 0||It.focus()}},Pe=function(st){var It=Vu(ne(ve)),ct;It.isNaN()?ct=ye(K,st):ct=ye(It,st),u!==void 0?xe(K,!1):ct.isNaN()||xe(ct,!1)},Ke=function(){H.current=!0},tt=function(st){var It=st.key,ct=st.shiftKey;H.current=!0,Q.current=ct,It==="Enter"&&(X.current||(H.current=!1),Pe(!1),A==null||A(st)),g!==!1&&!X.current&&["Up","ArrowUp","Down","ArrowDown"].includes(It)&&(Fe(It==="Up"||It==="ArrowUp"),st.preventDefault())},Ge=function(){H.current=!1,Q.current=!1};h.useEffect(function(){if(y&&W){var lt=function(ct){Fe(ct.deltaY<0),ct.preventDefault()},st=B.current;if(st)return st.addEventListener("wheel",lt,{passive:!1}),function(){return st.removeEventListener("wheel",lt)}}});var Nt=function(){D&&Pe(!1),j(!1),H.current=!1};return a1(function(){K.isInvalidate()||xe(K,!1)},[C,E]),a1(function(){var lt=Vu(u);se(lt);var st=Vu(ne(ve));(!lt.equals(st)||!H.current||E)&&xe(lt,H.current)},[u]),a1(function(){E&&U()},[ve]),h.createElement("div",{ref:M,className:Ce(n,r,te(te(te(te(te({},"".concat(n,"-focused"),W),"".concat(n,"-disabled"),d),"".concat(n,"-readonly"),f),"".concat(n,"-not-a-number"),K.isNaN()),"".concat(n,"-out-of-range"),!K.isInvalidate()&&!ae(K))),style:i,onFocus:function(){j(!0)},onBlur:Nt,onKeyDown:tt,onKeyUp:Ge,onCompositionStart:We,onCompositionEnd:ie,onBeforeInput:Ke},_&&h.createElement(Xct,{prefixCls:n,upNode:p,downNode:m,upDisabled:Ee,downDisabled:Ne,onStep:Fe}),h.createElement("div",{className:"".concat(P,"-wrap")},h.createElement("input",Xe({autoComplete:"off",role:"spinbutton","aria-valuemin":o,"aria-valuemax":a,"aria-valuenow":K.isInvalidate()?null:K.toString(),step:l},k,{ref:aa(B,t),className:P,value:ve,onChange:Be,disabled:d,readOnly:f}))))}),nut=h.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,p=kt(e,eut),m=h.useRef(null),g=h.useRef(null),v=h.useRef(null),y=function(_){v.current&&PY(v.current,_)};return h.useImperativeHandle(t,function(){return Wct(v.current,{focus:y,nativeElement:m.current.nativeElement||g.current})}),h.createElement(DY,{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},h.createElement(tut,Xe({prefixCls:o,disabled:n,ref:v,domRef:g,className:f==null?void 0:f.input},p)))});const rut=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({},Ev(e)),{controlWidth:90,handleWidth:r,handleFontSize:e.fontSize/2,handleVisible:n,handleActiveBg:e.colorFillAlter,handleBg:e.colorBgContainer,filledHandleBg:new or(e.colorFillSecondary).onBackground(e.colorBgContainer).toHexString(),handleHoverColor:e.colorPrimary,handleBorderColor:e.colorBorder,handleOpacity:n===!0?1:0,handleVisibleWidth:n===!0?r:0})},eoe=({componentCls:e,borderRadiusSM:t,borderRadiusLG:n},r)=>{const i=r==="lg"?n:t;return{[`&-${r}`]:{[`${e}-handler-wrap`]:{borderStartEndRadius:i,borderEndEndRadius:i},[`${e}-handler-up`]:{borderStartEndRadius:i},[`${e}-handler-down`]:{borderEndEndRadius:i}}}},iut=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:p,colorIcon:m,motionDurationMid:g,handleHoverColor:v,handleOpacity:y,paddingInline:b,paddingBlock:_,handleBg:S,handleActiveBg:x,colorTextDisabled:E,borderRadiusSM:C,borderRadiusLG:w,controlWidth:O,handleBorderColor:T,filledHandleBg:A,lineHeightLG:I,calc:N}=e;return[{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},mr(e)),g2(e)),{display:"inline-block",width:O,margin:0,padding:0,borderRadius:i}),xY(e,{[`${t}-handler-wrap`]:{background:S,[`${t}-handler-down`]:{borderBlockStart:`${Ie(n)} ${r} ${T}`}}})),TY(e,{[`${t}-handler-wrap`]:{background:A,[`${t}-handler-down`]:{borderBlockStart:`${Ie(n)} ${r} ${T}`}},"&:focus-within":{[`${t}-handler-wrap`]:{background:S}}})),OY(e,{[`${t}-handler-wrap`]:{background:S,[`${t}-handler-down`]:{borderBlockStart:`${Ie(n)} ${r} ${T}`}}})),wY(e)),{"&-rtl":{direction:"rtl",[`${t}-input`]:{direction:"rtl"}},"&-lg":{padding:0,fontSize:a,lineHeight:I,borderRadius:w,[`input${t}-input`]:{height:N(s).sub(N(n).mul(2)).equal(),padding:`${Ie(f)} ${Ie(p)}`}},"&-sm":{padding:0,fontSize:o,borderRadius:C,[`input${t}-input`]:{height:N(l).sub(N(n).mul(2)).equal(),padding:`${Ie(d)} ${Ie(u)}`}},"&-out-of-range":{[`${t}-input-wrap`]:{input:{color:c}}},"&-group":Object.assign(Object.assign(Object.assign({},mr(e)),dxe(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:w,fontSize:e.fontSizeLG}},"&-sm":{[`${t}-group-addon`]:{borderRadius:C}}},axe(e)),lxe(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({},mr(e)),{width:"100%",padding:`${Ie(_)} ${Ie(b)}`,textAlign:"start",backgroundColor:"transparent",border:0,borderRadius:i,outline:0,transition:`all ${g} linear`,appearance:"textfield",fontSize:"inherit"}),RY(e.colorTextPlaceholder)),{'&[type="number"]::-webkit-inner-spin-button, &[type="number"]::-webkit-outer-spin-button':{margin:0,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:`${Ie(n)} ${r} ${T}`,transition:`all ${g} linear`,"&:active":{background:x},"&:hover":{height:"60%",[`
${t}-handler-up-inner,
${t}-handler-down-inner
`]:{color:v}},"&-up-inner, &-down-inner":Object.assign(Object.assign({},gv()),{color:m,transition:`all ${g} linear`,userSelect:"none"})},[`${t}-handler-up`]:{borderStartEndRadius:i},[`${t}-handler-down`]:{borderEndEndRadius:i}},eoe(e,"lg")),eoe(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:E}})}]},out=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:`${Ie(n)} 0`}},g2(e)),{position:"relative",display:"inline-flex",alignItems:"center",width:o,padding:0,paddingInlineStart:r,"&-lg":{borderRadius:a,paddingInlineStart:l,[`input${t}-input`]:{padding:`${Ie(u)} 0`}},"&-sm":{borderRadius:s,paddingInlineStart:c,[`input${t}-input`]:{padding:`${Ie(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()}})}},aut=ir("InputNumber",e=>{const t=Un(e,Sv(e));return[iut(t),out(t),bv(t)]},rut,{unitless:{handleOpacity:!0}});var sut=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);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 ewe=h.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r}=h.useContext(cn),i=h.useRef(null);h.useImperativeHandle(t,()=>i.current);const{className:o,rootClassName:a,size:s,disabled:l,prefixCls:c,addonBefore:u,addonAfter:d,prefix:f,suffix:p,bordered:m,readOnly:g,status:v,controls:y,variant:b}=e,_=sut(e,["className","rootClassName","size","disabled","prefixCls","addonBefore","addonAfter","prefix","suffix","bordered","readOnly","status","controls","variant"]),S=n("input-number",c),x=gi(S),[E,C,w]=aut(S,x),{compactSize:O,compactItemClassnames:T}=Ru(S,r);let A=h.createElement(Fct,{className:`${S}-handler-up-inner`}),I=h.createElement(d2,{className:`${S}-handler-down-inner`});const N=typeof y=="boolean"?y:void 0;typeof y=="object"&&(A=typeof y.upIcon>"u"?A:h.createElement("span",{className:`${S}-handler-up-inner`},y.upIcon),I=typeof y.downIcon>"u"?I:h.createElement("span",{className:`${S}-handler-down-inner`},y.downIcon));const{hasFeedback:D,status:M,isFormItemInput:k,feedbackIcon:P}=h.useContext(oa),B=yh(M,v),G=mo(K=>{var se;return(se=s??O)!==null&&se!==void 0?se:K}),L=h.useContext(Yo),W=l??L,[j,H]=Kf("inputNumber",b,m),X=D&&h.createElement(h.Fragment,null,P),Q=Ce({[`${S}-lg`]:G==="large",[`${S}-sm`]:G==="small",[`${S}-rtl`]:r==="rtl",[`${S}-in-form-item`]:k},C),ue=`${S}-group`,ee=h.createElement(nut,Object.assign({ref:i,disabled:W,className:Ce(w,x,o,a,T),upHandler:A,downHandler:I,prefixCls:S,readOnly:g,controls:N,prefix:f,suffix:X||p,addonBefore:u&&h.createElement(Ad,{form:!0,space:!0},u),addonAfter:d&&h.createElement(Ad,{form:!0,space:!0},d),classNames:{input:Q,variant:Ce({[`${S}-${j}`]:H},Id(S,B,D)),affixWrapper:Ce({[`${S}-affix-wrapper-sm`]:G==="small",[`${S}-affix-wrapper-lg`]:G==="large",[`${S}-affix-wrapper-rtl`]:r==="rtl",[`${S}-affix-wrapper-without-controls`]:y===!1||W},C),wrapper:Ce({[`${ue}-rtl`]:r==="rtl"},C),groupWrapper:Ce({[`${S}-group-wrapper-sm`]:G==="small",[`${S}-group-wrapper-lg`]:G==="large",[`${S}-group-wrapper-rtl`]:r==="rtl",[`${S}-group-wrapper-${j}`]:H},Id(`${S}-group-wrapper`,B,D),C)}},_));return E(ee)}),ch=ewe,lut=e=>h.createElement(Ln,{theme:{components:{InputNumber:{handleVisible:!0}}}},h.createElement(ewe,Object.assign({},e)));ch._InternalPanelDoNotUseOrYouWillBeFired=lut;const u1=({prefixCls:e,min:t=0,max:n=100,value:r,onChange:i,className:o,formatter:a})=>{const s=`${e}-steppers`,[l,c]=h.useState(0),u=Number.isNaN(r)?l:r;return pe.createElement(ch,{className:Ce(s,o),min:t,max:n,value:u,formatter:a,size:"small",onChange:d=>{c(d||0),i==null||i(d)}})},cut=({prefixCls:e,value:t,onChange:n})=>{const r=`${e}-alpha-input`,[i,o]=h.useState(()=>Ps(t||"#000")),a=t||i,s=l=>{const c=a.toHsb();c.a=(l||0)/100;const u=Ps(c);o(u),n==null||n(u)};return pe.createElement(u1,{value:Bq(a),prefixCls:e,formatter:l=>`${l}%`,className:r,onChange:s})},twe=e=>{let t;return typeof e=="object"&&(e!=null&&e.clearIcon)?t=e:e&&(t={clearIcon:pe.createElement(qf,null)}),t};function nwe(e,t){const n=h.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 h.useEffect(()=>(t&&r(),()=>n.current.forEach(i=>{i&&clearTimeout(i)})),[]),r}function uut(e){return!!(e.prefix||e.suffix||e.allowClear||e.showCount)}var dut=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);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 xS=h.forwardRef((e,t)=>{const{prefixCls:n,bordered:r=!0,status:i,size:o,disabled:a,onBlur:s,onFocus:l,suffix:c,allowClear:u,addonAfter:d,addonBefore:f,className:p,style:m,styles:g,rootClassName:v,onChange:y,classNames:b,variant:_}=e,S=dut(e,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames","variant"]),{getPrefixCls:x,direction:E,allowClear:C,autoComplete:w,className:O,style:T,classNames:A,styles:I}=Vi("input"),N=x("input",n),D=h.useRef(null),M=gi(N),[k,P,B]=fxe(N,v),[G]=pxe(N,M),{compactSize:L,compactItemClassnames:W}=Ru(N,E),j=mo(be=>{var xe;return(xe=o??L)!==null&&xe!==void 0?xe:be}),H=pe.useContext(Yo),X=a??H,{status:Q,hasFeedback:ue,feedbackIcon:ee}=h.useContext(oa),K=yh(Q,i),se=uut(e)||!!ue;h.useRef(se);const le=nwe(D,!0),oe=be=>{le(),s==null||s(be)},ne=be=>{le(),l==null||l(be)},he=be=>{le(),y==null||y(be)},me=(ue||c)&&pe.createElement(pe.Fragment,null,c,ue&&ee),ce=twe(u??C),[re,ve]=Kf("input",_,r);return k(G(pe.createElement(Gct,Object.assign({ref:aa(t,D),prefixCls:N,autoComplete:w},S,{disabled:X,onBlur:oe,onFocus:ne,style:Object.assign(Object.assign({},T),m),styles:Object.assign(Object.assign({},I),g),suffix:me,allowClear:ce,className:Ce(p,v,B,M,W,O),onChange:he,addonBefore:f&&pe.createElement(Ad,{form:!0,space:!0},f),addonAfter:d&&pe.createElement(Ad,{form:!0,space:!0},d),classNames:Object.assign(Object.assign(Object.assign({},b),A),{input:Ce({[`${N}-sm`]:j==="small",[`${N}-lg`]:j==="large",[`${N}-rtl`]:E==="rtl"},b==null?void 0:b.input,A.input,P),variant:Ce({[`${N}-${re}`]:ve},Id(N,K)),affixWrapper:Ce({[`${N}-affix-wrapper-sm`]:j==="small",[`${N}-affix-wrapper-lg`]:j==="large",[`${N}-affix-wrapper-rtl`]:E==="rtl"},P),wrapper:Ce({[`${N}-group-rtl`]:E==="rtl"},P),groupWrapper:Ce({[`${N}-group-wrapper-sm`]:j==="small",[`${N}-group-wrapper-lg`]:j==="large",[`${N}-group-wrapper-rtl`]:E==="rtl",[`${N}-group-wrapper-${re}`]:ve},Id(`${N}-group-wrapper`,K,ue),P)})}))))}),fut=/(^#[\da-f]{6}$)|(^#[\da-f]{8}$)/i,put=e=>fut.test(`#${e}`),hut=({prefixCls:e,value:t,onChange:n})=>{const r=`${e}-hex-input`,[i,o]=h.useState(()=>t?CC(t.toHexString()):void 0);h.useEffect(()=>{t&&o(CC(t.toHexString()))},[t]);const a=s=>{const l=s.target.value;o(CC(l)),put(CC(l,!0))&&(n==null||n(Ps(l)))};return pe.createElement(xS,{className:r,value:i,prefix:"#",onChange:a,size:"small"})},mut=({prefixCls:e,value:t,onChange:n})=>{const r=`${e}-hsb-input`,[i,o]=h.useState(()=>Ps(t||"#000")),a=t||i,s=(l,c)=>{const u=a.toHsb();u[c]=c==="h"?l:(l||0)/100;const d=Ps(u);o(d),n==null||n(d)};return pe.createElement("div",{className:r},pe.createElement(u1,{max:360,min:0,value:Number(a.toHsb().h),prefixCls:e,className:r,formatter:l=>RI(l||0).toString(),onChange:l=>s(Number(l),"h")}),pe.createElement(u1,{max:100,min:0,value:Number(a.toHsb().s)*100,prefixCls:e,className:r,formatter:l=>`${RI(l||0)}%`,onChange:l=>s(Number(l),"s")}),pe.createElement(u1,{max:100,min:0,value:Number(a.toHsb().b)*100,prefixCls:e,className:r,formatter:l=>`${RI(l||0)}%`,onChange:l=>s(Number(l),"b")}))},gut=({prefixCls:e,value:t,onChange:n})=>{const r=`${e}-rgb-input`,[i,o]=h.useState(()=>Ps(t||"#000")),a=t||i,s=(l,c)=>{const u=a.toRgb();u[c]=l||0;const d=Ps(u);o(d),n==null||n(d)};return pe.createElement("div",{className:r},pe.createElement(u1,{max:255,min:0,value:Number(a.toRgb().r),prefixCls:e,className:r,onChange:l=>s(Number(l),"r")}),pe.createElement(u1,{max:255,min:0,value:Number(a.toRgb().g),prefixCls:e,className:r,onChange:l=>s(Number(l),"g")}),pe.createElement(u1,{max:255,min:0,value:Number(a.toRgb().b),prefixCls:e,className:r,onChange:l=>s(Number(l),"b")}))},vut=[Kxe,Xxe,Qxe].map(e=>({value:e,label:e.toUpperCase()})),but=e=>{const{prefixCls:t,format:n,value:r,disabledAlpha:i,onFormatChange:o,onChange:a,disabledFormat:s}=e,[l,c]=Pn(Kxe,{value:n,onChange:o}),u=`${t}-input`,d=p=>{c(p)},f=h.useMemo(()=>{const p={value:r,prefixCls:t,onChange:a};switch(l){case Xxe:return pe.createElement(mut,Object.assign({},p));case Qxe:return pe.createElement(gut,Object.assign({},p));default:return pe.createElement(hut,Object.assign({},p))}},[l,t,r,a]);return pe.createElement("div",{className:`${u}-container`},!s&&pe.createElement(vu,{value:l,variant:"borderless",getPopupContainer:p=>p,popupMatchSelectWidth:68,placement:"bottomRight",onChange:d,className:`${t}-format-select`,size:"small",options:vut}),pe.createElement("div",{className:u},f),!i&&pe.createElement(cut,{prefixCls:t,value:r,onChange:a}))};function ej(e,t,n){return(e-t)/(n-t)}function LY(e,t,n,r){var i=ej(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 C0(e,t){return Array.isArray(e)?e[t]:e}var Cv=h.createContext({min:0,max:0,direction:"ltr",step:1,includedStart:0,includedEnd:0,tabIndex:0,keyboard:!0,styles:{},classNames:{}}),rwe=h.createContext({}),yut=["prefixCls","value","valueIndex","onStartMove","onDelete","style","render","dragging","draggingDelete","onOffsetChange","onChangeComplete","onFocus","onMouseEnter"],toe=h.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,p=e.onFocus,m=e.onMouseEnter,g=kt(e,yut),v=h.useContext(Cv),y=v.min,b=v.max,_=v.direction,S=v.disabled,x=v.keyboard,E=v.range,C=v.tabIndex,w=v.ariaLabelForHandle,O=v.ariaLabelledByForHandle,T=v.ariaRequired,A=v.ariaValueTextFormatterForHandle,I=v.styles,N=v.classNames,D="".concat(n,"-handle"),M=function(Q){S||o(Q,i)},k=function(Q){p==null||p(Q,i)},P=function(Q){m(Q,i)},B=function(Q){if(!S&&x){var ue=null;switch(Q.which||Q.keyCode){case Ut.LEFT:ue=_==="ltr"||_==="btt"?-1:1;break;case Ut.RIGHT:ue=_==="ltr"||_==="btt"?1:-1;break;case Ut.UP:ue=_!=="ttb"?1:-1;break;case Ut.DOWN:ue=_!=="ttb"?-1:1;break;case Ut.HOME:ue="min";break;case Ut.END:ue="max";break;case Ut.PAGE_UP:ue=2;break;case Ut.PAGE_DOWN:ue=-2;break;case Ut.BACKSPACE:case Ut.DELETE:a(i);break}ue!==null&&(Q.preventDefault(),d(ue,i))}},G=function(Q){switch(Q.which||Q.keyCode){case Ut.LEFT:case Ut.RIGHT:case Ut.UP:case Ut.DOWN:case Ut.HOME:case Ut.END:case Ut.PAGE_UP:case Ut.PAGE_DOWN:f==null||f();break}},L=LY(_,r,y,b),W={};if(i!==null){var j;W={tabIndex:S?null:C0(C,i),role:"slider","aria-valuemin":y,"aria-valuemax":b,"aria-valuenow":r,"aria-disabled":S,"aria-label":C0(w,i),"aria-labelledby":C0(O,i),"aria-required":C0(T,i),"aria-valuetext":(j=C0(A,i))===null||j===void 0?void 0:j(r),"aria-orientation":_==="ltr"||_==="rtl"?"horizontal":"vertical",onMouseDown:M,onTouchStart:M,onFocus:k,onMouseEnter:P,onKeyDown:B,onKeyUp:G}}var H=h.createElement("div",Xe({ref:t,className:Ce(D,te(te(te({},"".concat(D,"-").concat(i+1),i!==null&&E),"".concat(D,"-dragging"),c),"".concat(D,"-dragging-delete"),u),N.handle),style:z(z(z({},L),s),I.handle)},W,g));return l&&(H=l(H,{index:i,prefixCls:n,value:r,dragging:c,draggingDelete:u})),H}),_ut=["prefixCls","style","onStartMove","onOffsetChange","values","handleRender","activeHandleRender","draggingIndex","draggingDelete","onFocus"],Sut=h.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=kt(e,_ut),p=h.useRef({}),m=h.useState(!1),g=Re(m,2),v=g[0],y=g[1],b=h.useState(-1),_=Re(b,2),S=_[0],x=_[1],E=function(A){x(A),y(!0)},C=function(A,I){E(I),d==null||d(A)},w=function(A,I){E(I)};h.useImperativeHandle(t,function(){return{focus:function(A){var I;(I=p.current[A])===null||I===void 0||I.focus()},hideHelp:function(){Fl.flushSync(function(){y(!1)})}}});var O=z({prefixCls:n,onStartMove:i,onOffsetChange:o,render:s,onFocus:C,onMouseEnter:w},f);return h.createElement(h.Fragment,null,a.map(function(T,A){var I=c===A;return h.createElement(toe,Xe({ref:function(D){D?p.current[A]=D:delete p.current[A]},dragging:I,draggingDelete:I&&u,style:C0(r,A),key:A,value:T,valueIndex:A},O))}),l&&v&&h.createElement(toe,Xe({key:"a11y"},O,{value:a[S],valueIndex:null,dragging:c!==-1,draggingDelete:u,render:l,style:{pointerEvents:"none"},tabIndex:null,"aria-hidden":!0})))}),Eut=function(t){var n=t.prefixCls,r=t.style,i=t.children,o=t.value,a=t.onClick,s=h.useContext(Cv),l=s.min,c=s.max,u=s.direction,d=s.includedStart,f=s.includedEnd,p=s.included,m="".concat(n,"-text"),g=LY(u,o,l,c);return h.createElement("span",{className:Ce(m,te({},"".concat(m,"-active"),p&&d<=o&&o<=f)),style:z(z({},g),r),onMouseDown:function(y){y.stopPropagation()},onClick:function(){a(o)}},i)},Cut=function(t){var n=t.prefixCls,r=t.marks,i=t.onClick,o="".concat(n,"-mark");return r.length?h.createElement("div",{className:o},r.map(function(a){var s=a.value,l=a.style,c=a.label;return h.createElement(Eut,{key:s,prefixCls:o,style:l,value:s,onClick:i},c)})):null},xut=function(t){var n=t.prefixCls,r=t.value,i=t.style,o=t.activeStyle,a=h.useContext(Cv),s=a.min,l=a.max,c=a.direction,u=a.included,d=a.includedStart,f=a.includedEnd,p="".concat(n,"-dot"),m=u&&d<=r&&r<=f,g=z(z({},LY(c,r,s,l)),typeof i=="function"?i(r):i);return m&&(g=z(z({},g),typeof o=="function"?o(r):o)),h.createElement("span",{className:Ce(p,te({},"".concat(p,"-active"),m)),style:g})},wut=function(t){var n=t.prefixCls,r=t.marks,i=t.dots,o=t.style,a=t.activeStyle,s=h.useContext(Cv),l=s.min,c=s.max,u=s.step,d=h.useMemo(function(){var f=new Set;if(r.forEach(function(m){f.add(m.value)}),i&&u!==null)for(var p=l;p<=c;)f.add(p),p+=u;return Array.from(f)},[l,c,u,i,r]);return h.createElement("div",{className:"".concat(n,"-step")},d.map(function(f){return h.createElement(xut,{prefixCls:n,key:f,value:f,style:o,activeStyle:a})}))},noe=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=h.useContext(Cv),u=c.direction,d=c.min,f=c.max,p=c.disabled,m=c.range,g=c.classNames,v="".concat(n,"-track"),y=ej(i,d,f),b=ej(o,d,f),_=function(C){!p&&s&&s(C,-1)},S={};switch(u){case"rtl":S.right="".concat(y*100,"%"),S.width="".concat(b*100-y*100,"%");break;case"btt":S.bottom="".concat(y*100,"%"),S.height="".concat(b*100-y*100,"%");break;case"ttb":S.top="".concat(y*100,"%"),S.height="".concat(b*100-y*100,"%");break;default:S.left="".concat(y*100,"%"),S.width="".concat(b*100-y*100,"%")}var x=l||Ce(v,te(te({},"".concat(v,"-").concat(a+1),a!==null&&m),"".concat(n,"-track-draggable"),s),g.track);return h.createElement("div",{className:x,style:z(z({},S),r),onMouseDown:_,onTouchStart:_})},Tut=function(t){var n=t.prefixCls,r=t.style,i=t.values,o=t.startPoint,a=t.onStartMove,s=h.useContext(Cv),l=s.included,c=s.range,u=s.min,d=s.styles,f=s.classNames,p=h.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=p!=null&&p.length&&(f.tracks||d.tracks)?h.createElement(noe,{index:null,prefixCls:n,start:p[0].start,end:p[p.length-1].end,replaceCls:Ce(f.tracks,"".concat(n,"-tracks")),style:d.tracks}):null;return h.createElement(h.Fragment,null,m,p.map(function(g,v){var y=g.start,b=g.end;return h.createElement(noe,{index:v,prefixCls:n,style:z(z({},C0(r,v)),d.track),start:y,end:b,key:v,onStartMove:a})}))},Out=130;function roe(e){var t="targetTouches"in e?e.targetTouches[0]:e;return{pageX:t.pageX,pageY:t.pageY}}function Rut(e,t,n,r,i,o,a,s,l,c,u){var d=h.useState(null),f=Re(d,2),p=f[0],m=f[1],g=h.useState(-1),v=Re(g,2),y=v[0],b=v[1],_=h.useState(!1),S=Re(_,2),x=S[0],E=S[1],C=h.useState(n),w=Re(C,2),O=w[0],T=w[1],A=h.useState(n),I=Re(A,2),N=I[0],D=I[1],M=h.useRef(null),k=h.useRef(null),P=h.useRef(null),B=h.useContext(rwe),G=B.onDragStart,L=B.onDragChange;er(function(){y===-1&&T(n)},[n,y]),h.useEffect(function(){return function(){document.removeEventListener("mousemove",M.current),document.removeEventListener("mouseup",k.current),P.current&&(P.current.removeEventListener("touchmove",M.current),P.current.removeEventListener("touchend",k.current))}},[]);var W=function(ue,ee,K){ee!==void 0&&m(ee),T(ue);var se=ue;K&&(se=ue.filter(function(le,oe){return oe!==y})),a(se),L&&L({rawValues:ue,deleteIndex:K?y:-1,draggingIndex:y,draggingValue:ee})},j=qn(function(Q,ue,ee){if(Q===-1){var K=N[0],se=N[N.length-1],le=r-K,oe=i-se,ne=ue*(i-r);ne=Math.max(ne,le),ne=Math.min(ne,oe);var he=o(K+ne);ne=he-K;var me=N.map(function(be){return be+ne});W(me)}else{var ce=(i-r)*ue,re=rt(O);re[Q]=N[Q];var ve=l(re,ce,Q,"dist");W(ve.values,ve.value,ee)}}),H=function(ue,ee,K){ue.stopPropagation();var se=K||n,le=se[ee];b(ee),m(le),D(se),T(se),E(!1);var oe=roe(ue),ne=oe.pageX,he=oe.pageY,me=!1;G&&G({rawValues:se,draggingIndex:ee,draggingValue:le});var ce=function(be){be.preventDefault();var xe=roe(be),we=xe.pageX,de=xe.pageY,Ee=we-ne,Ne=de-he,Te=e.current.getBoundingClientRect(),Ve=Te.width,q=Te.height,U,Y;switch(t){case"btt":U=-Ne/q,Y=Ee;break;case"ttb":U=Ne/q,Y=Ee;break;case"rtl":U=-Ee/Ve,Y=Ne;break;default:U=Ee/Ve,Y=Ne}me=c?Math.abs(Y)>Out&&u<O.length:!1,E(me),j(ee,U,me)},re=function ve(be){be.preventDefault(),document.removeEventListener("mouseup",ve),document.removeEventListener("mousemove",ce),P.current&&(P.current.removeEventListener("touchmove",M.current),P.current.removeEventListener("touchend",k.current)),M.current=null,k.current=null,P.current=null,s(me),b(-1),E(!1)};document.addEventListener("mouseup",re),document.addEventListener("mousemove",ce),ue.currentTarget.addEventListener("touchend",re),ue.currentTarget.addEventListener("touchmove",ce),M.current=ce,k.current=re,P.current=ue.currentTarget},X=h.useMemo(function(){var Q=rt(n).sort(function(le,oe){return le-oe}),ue=rt(O).sort(function(le,oe){return le-oe}),ee={};ue.forEach(function(le){ee[le]=(ee[le]||0)+1}),Q.forEach(function(le){ee[le]=(ee[le]||0)-1});var K=c?1:0,se=Object.values(ee).reduce(function(le,oe){return le+Math.abs(oe)},0);return se<=K?O:n},[n,O,c]);return[y,p,x,X,H]}function Aut(e,t,n,r,i,o){var a=h.useCallback(function(p){return Math.max(e,Math.min(t,p))},[e,t]),s=h.useCallback(function(p){if(n!==null){var m=e+Math.round((a(p)-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=h.useCallback(function(p){var m=a(p),g=r.map(function(b){return b.value});n!==null&&g.push(s(p)),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 p(m,g,v){var y=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"unit";if(typeof g=="number"){var b,_=m[v],S=_+g,x=[];r.forEach(function(T){x.push(T.value)}),x.push(e,t),x.push(s(_));var E=g>0?1:-1;y==="unit"?x.push(s(_+E*n)):x.push(s(S)),x=x.filter(function(T){return T!==null}).filter(function(T){return g<0?T<=_:T>=_}),y==="unit"&&(x=x.filter(function(T){return T!==_}));var C=y==="unit"?_:S;b=x[0];var w=Math.abs(b-C);if(x.forEach(function(T){var A=Math.abs(T-C);A<w&&(b=T,w=A)}),b===void 0)return g<0?e:t;if(y==="dist")return b;if(Math.abs(g)>1){var O=rt(m);return O[v]=b,p(O,g-E,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],S=c(b,g,v,y);if(b[v]=S,i===!1){var x=o||0;v>0&&b[v-1]!==_&&(b[v]=Math.max(b[v],b[v-1]+x)),v<b.length-1&&b[v+1]!==_&&(b[v]=Math.min(b[v],b[v+1]-x))}else if(typeof o=="number"||o===null){for(var E=v+1;E<b.length;E+=1)for(var C=!0;d(b[E]-b[E-1])&&C;){var w=u(b,1,E);b[E]=w.value,C=w.changed}for(var O=v;O>0;O-=1)for(var T=!0;d(b[O]-b[O-1])&&T;){var A=u(b,-1,O-1);b[O-1]=A.value,T=A.changed}for(var I=b.length-1;I>0;I-=1)for(var N=!0;d(b[I]-b[I-1])&&N;){var D=u(b,-1,I-1);b[I-1]=D.value,N=D.changed}for(var M=0;M<b.length-1;M+=1)for(var k=!0;d(b[M+1]-b[M])&&k;){var P=u(b,1,M+1);b[M+1]=P.value,k=P.changed}}return{value:b[v],values:b}};return[l,f]}function Iut(e){return h.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 Nut=h.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,p=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,S=e.step,x=S===void 0?1:S,E=e.value,C=e.defaultValue,w=e.range,O=e.count,T=e.onChange,A=e.onBeforeChange,I=e.onAfterChange,N=e.onChangeComplete,D=e.allowCross,M=D===void 0?!0:D,k=e.pushable,P=k===void 0?!1:k,B=e.reverse,G=e.vertical,L=e.included,W=L===void 0?!0:L,j=e.startPoint,H=e.trackStyle,X=e.handleStyle,Q=e.railStyle,ue=e.dotStyle,ee=e.activeDotStyle,K=e.marks,se=e.dots,le=e.handleRender,oe=e.activeHandleRender,ne=e.track,he=e.tabIndex,me=he===void 0?0:he,ce=e.ariaLabelForHandle,re=e.ariaLabelledByForHandle,ve=e.ariaRequired,be=e.ariaValueTextFormatterForHandle,xe=h.useRef(null),we=h.useRef(null),de=h.useMemo(function(){return G?B?"ttb":"btt":B?"rtl":"ltr"},[B,G]),Ee=Iut(w),Ne=Re(Ee,5),Te=Ne[0],Ve=Ne[1],q=Ne[2],U=Ne[3],Y=Ne[4],ae=h.useMemo(function(){return isFinite(y)?y:0},[y]),ye=h.useMemo(function(){return isFinite(_)?_:100},[_]),fe=h.useMemo(function(){return x!==null&&x<=0?1:x},[x]),Ae=h.useMemo(function(){return typeof P=="boolean"?P?fe:!1:P>=0?P:!1},[P,fe]),We=h.useMemo(function(){return Object.keys(K||{}).map(function(Ct){var et=K[Ct],Ot={value:Number(Ct)};return et&&qt(et)==="object"&&!h.isValidElement(et)&&("label"in et||"style"in et)?(Ot.style=et.style,Ot.label=et.label):Ot.label=et,Ot}).filter(function(Ct){var et=Ct.label;return et||typeof et=="number"}).sort(function(Ct,et){return Ct.value-et.value})},[K]),ie=Aut(ae,ye,fe,We,M,Ae),Be=Re(ie,2),Fe=Be[0],Pe=Be[1],Ke=Pn(C,{value:E}),tt=Re(Ke,2),Ge=tt[0],Nt=tt[1],lt=h.useMemo(function(){var Ct=Ge==null?[]:Array.isArray(Ge)?Ge:[Ge],et=Re(Ct,1),Ot=et[0],At=Ot===void 0?ae:Ot,_n=Ge===null?[]:[At];if(Te){if(_n=rt(Ct),O||Ge===void 0){var zn=O>=0?O+1:2;for(_n=_n.slice(0,zn);_n.length<zn;){var R;_n.push((R=_n[_n.length-1])!==null&&R!==void 0?R:ae)}}_n.sort(function($,J){return $-J})}return _n.forEach(function($,J){_n[J]=Fe($)}),_n},[Ge,Te,ae,O,Fe]),st=function(et){return Te?et:et[0]},It=qn(function(Ct){var et=rt(Ct).sort(function(Ot,At){return Ot-At});T&&!Bl(et,lt,!0)&&T(st(et)),Nt(et)}),ct=qn(function(Ct){Ct&&xe.current.hideHelp();var et=st(lt);I==null||I(et),Vr(!I,"[rc-slider] `onAfterChange` is deprecated. Please use `onChangeComplete` instead."),N==null||N(et)}),Pt=function(et){if(!(u||!Ve||lt.length<=U)){var Ot=rt(lt);Ot.splice(et,1),A==null||A(st(Ot)),It(Ot);var At=Math.max(0,et-1);xe.current.hideHelp(),xe.current.focus(At)}},Rt=Rut(we,de,lt,ae,ye,Fe,It,ct,Pe,Ve,U),Tt=Re(Rt,5),Me=Tt[0],Ue=Tt[1],$e=Tt[2],Le=Tt[3],He=Tt[4],it=function(et,Ot){if(!u){var At=rt(lt),_n=0,zn=0,R=ye-ae;lt.forEach(function(Qe,Bt){var fn=Math.abs(et-Qe);fn<=R&&(R=fn,_n=Bt),Qe<et&&(zn=Bt)});var $=_n;Ve&&R!==0&&(!Y||lt.length<Y)?(At.splice(zn+1,0,et),$=zn+1):At[_n]=et,Te&&!lt.length&&O===void 0&&At.push(et);var J=st(At);if(A==null||A(J),It(At),Ot){var Oe,qe;(Oe=document.activeElement)===null||Oe===void 0||(qe=Oe.blur)===null||qe===void 0||qe.call(Oe),xe.current.focus($),He(Ot,$,At)}else I==null||I(J),Vr(!I,"[rc-slider] `onAfterChange` is deprecated. Please use `onChangeComplete` instead."),N==null||N(J)}},ft=function(et){et.preventDefault();var Ot=we.current.getBoundingClientRect(),At=Ot.width,_n=Ot.height,zn=Ot.left,R=Ot.top,$=Ot.bottom,J=Ot.right,Oe=et.clientX,qe=et.clientY,Qe;switch(de){case"btt":Qe=($-qe)/_n;break;case"ttb":Qe=(qe-R)/_n;break;case"rtl":Qe=(J-Oe)/At;break;default:Qe=(Oe-zn)/At}var Bt=ae+Qe*(ye-ae);it(Fe(Bt),et)},Et=h.useState(null),Dt=Re(Et,2),St=Dt[0],bt=Dt[1],xt=function(et,Ot){if(!u){var At=Pe(lt,et,Ot);A==null||A(st(lt)),It(At.values),bt(At.value)}};h.useEffect(function(){if(St!==null){var Ct=lt.indexOf(St);Ct>=0&&xe.current.focus(Ct)}bt(null)},[St]);var ht=h.useMemo(function(){return q&&fe===null?!1:q},[q,fe]),Vt=qn(function(Ct,et){He(Ct,et),A==null||A(st(lt))}),at=Me!==-1;h.useEffect(function(){if(!at){var Ct=lt.lastIndexOf(Ue);xe.current.focus(Ct)}},[at]);var wt=h.useMemo(function(){return rt(Le).sort(function(Ct,et){return Ct-et})},[Le]),Gt=h.useMemo(function(){return Te?[wt[0],wt[wt.length-1]]:[ae,wt[0]]},[wt,Te,ae]),$t=Re(Gt,2),zt=$t[0],Ft=$t[1];h.useImperativeHandle(t,function(){return{focus:function(){xe.current.focus(0)},blur:function(){var et,Ot=document,At=Ot.activeElement;(et=we.current)!==null&&et!==void 0&&et.contains(At)&&(At==null||At.blur())}}}),h.useEffect(function(){p&&xe.current.focus(0)},[]);var De=h.useMemo(function(){return{min:ae,max:ye,direction:de,disabled:u,keyboard:f,step:fe,included:W,includedStart:zt,includedEnd:Ft,range:Te,tabIndex:me,ariaLabelForHandle:ce,ariaLabelledByForHandle:re,ariaRequired:ve,ariaValueTextFormatterForHandle:be,styles:s||{},classNames:a||{}}},[ae,ye,de,u,f,fe,W,zt,Ft,Te,me,ce,re,ve,be,s,a]);return h.createElement(Cv.Provider,{value:De},h.createElement("div",{ref:we,className:Ce(r,i,te(te(te(te({},"".concat(r,"-disabled"),u),"".concat(r,"-vertical"),G),"".concat(r,"-horizontal"),!G),"".concat(r,"-with-marks"),We.length)),style:o,onMouseDown:ft,id:l},h.createElement("div",{className:Ce("".concat(r,"-rail"),a==null?void 0:a.rail),style:z(z({},Q),s==null?void 0:s.rail)}),ne!==!1&&h.createElement(Tut,{prefixCls:r,style:H,values:lt,startPoint:j,onStartMove:ht?Vt:void 0}),h.createElement(wut,{prefixCls:r,marks:We,dots:se,style:ue,activeStyle:ee}),h.createElement(Sut,{ref:xe,prefixCls:r,style:X,values:Le,draggingIndex:Me,draggingDelete:$e,onStartMove:Vt,onOffsetChange:xt,onFocus:m,onBlur:g,handleRender:le,activeHandleRender:oe,onChangeComplete:ct,onDelete:Ve?Pt:void 0}),h.createElement(Cut,{prefixCls:r,marks:We,onClick:it})))});const iwe=h.createContext({}),ioe=h.forwardRef((e,t)=>{const{open:n,draggingDelete:r,value:i}=e,o=h.useRef(null),a=n&&!r,s=h.useRef(null);function l(){tr.cancel(s.current),s.current=null}function c(){s.current=tr(()=>{var u;(u=o.current)===null||u===void 0||u.forceAlign(),s.current=null})}return h.useEffect(()=>(a?c():l(),l),[a,e.title,i]),h.createElement(Na,Object.assign({ref:aa(o,t)},e,{open:a}))}),Mut=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:p,handleLineWidth:m,handleLineWidthHover:g,motionDurationMid:v}=e;return{[t]:Object.assign(Object.assign({},mr(e)),{position:"relative",height:r,margin:`${Ie(a)} ${Ie(o)}`,padding:0,cursor:"pointer",touchAction:"none","&-vertical":{margin:`${Ie(o)} ${Ie(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 ${Ie(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 ${Ie(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 ${Ie(g)} ${f}`,outline:`6px solid ${p}`,width:d,height:d,insetInlineStart:e.calc(u).sub(d).div(2).equal(),insetBlockStart:e.calc(u).sub(d).div(2).equal()}}},[`&-lock ${t}-handle`]:{"&::before, &::after":{transition:"none"}},[`${t}-mark`]:{position:"absolute",fontSize:e.fontSize},[`${t}-mark-text`]:{position:"absolute",display:"inline-block",color:e.colorTextDescription,textAlign:"center",wordBreak:"keep-all",cursor:"pointer",userSelect:"none","&-active":{color:e.colorText}},[`${t}-step`]:{position:"absolute",background:"transparent",pointerEvents:"none"},[`${t}-dot`]:{position:"absolute",width:i,height:i,backgroundColor:e.colorBgElevated,border:`${Ie(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 ${Ie(m)} ${l}`,insetInlineStart:0,insetBlockStart:0},[`
${t}-mark-text,
${t}-dot
`]:{cursor:"not-allowed !important"}},[`&-tooltip ${n}-tooltip-inner`]:{minWidth:"unset"}})}},owe=(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",p=s(r).mul(3).sub(i).div(2).equal(),m=s(i).sub(r).div(2).equal(),g=t?{borderWidth:`${Ie(m)} 0`,transform:`translateY(${Ie(s(m).mul(-1).equal())})`}:{borderWidth:`0 ${Ie(m)}`,transform:`translateX(${Ie(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]:p},[`${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()}}},kut=e=>{const{componentCls:t,marginPartWithMark:n}=e;return{[`${t}-horizontal`]:Object.assign(Object.assign({},owe(e,!0)),{[`&${t}-with-marks`]:{marginBottom:n}})}},Put=e=>{const{componentCls:t}=e;return{[`${t}-vertical`]:Object.assign(Object.assign({},owe(e,!1)),{height:"100%"})}},Dut=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 or(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 or(e.colorTextDisabled).onBackground(e.colorBgContainer).toHexString(),dotBorderColor:e.colorBorderSecondary,dotActiveBorderColor:e.colorPrimaryBorder,trackBgDisabled:e.colorBgContainerDisabled}},Lut=ir("Slider",e=>{const t=Un(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[Mut(t),kut(t),Put(t)]},Dut);function vL(){const[e,t]=h.useState(!1),n=h.useRef(null),r=()=>{tr.cancel(n.current)},i=o=>{r(),o?t(o):n.current=tr(()=>{t(o)})};return h.useEffect(()=>r,[]),[e,i]}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};function Fut(e,t){return e||e===null?e:t||t===null?t:n=>typeof n=="number"?n.toString():""}const awe=pe.forwardRef((e,t)=>{const{prefixCls:n,range:r,className:i,rootClassName:o,style:a,disabled:s,tooltipPrefixCls:l,tipFormatter:c,tooltipVisible:u,getTooltipPopupContainer:d,tooltipPlacement:f,tooltip:p={},onChangeComplete:m,classNames:g,styles:v}=e,y=$ut(e,["prefixCls","range","className","rootClassName","style","disabled","tooltipPrefixCls","tipFormatter","tooltipVisible","getTooltipPopupContainer","tooltipPlacement","tooltip","onChangeComplete","classNames","styles"]),{vertical:b}=e,{getPrefixCls:_,direction:S,className:x,style:E,classNames:C,styles:w,getPopupContainer:O}=Vi("slider"),T=pe.useContext(Yo),A=s??T,{handleRender:I,direction:N}=pe.useContext(iwe),M=(N||S)==="rtl",[k,P]=vL(),[B,G]=vL(),L=Object.assign({},p),{open:W,placement:j,getPopupContainer:H,prefixCls:X,formatter:Q}=L,ue=W??u,ee=(k||B)&&ue!==!1,K=Fut(Q,c),[se,le]=vL(),oe=Te=>{m==null||m(Te),le(!1)},ne=(Te,Ve)=>Te||(Ve?M?"left":"right":"top"),he=_("slider",n),[me,ce,re]=Lut(he),ve=Ce(i,x,C.root,g==null?void 0:g.root,o,{[`${he}-rtl`]:M,[`${he}-lock`]:se},ce,re);M&&!y.vertical&&(y.reverse=!y.reverse),pe.useEffect(()=>{const Te=()=>{tr(()=>{G(!1)},1)};return document.addEventListener("mouseup",Te),()=>{document.removeEventListener("mouseup",Te)}},[]);const be=r&&!ue,xe=I||((Te,Ve)=>{const{index:q}=Ve,U=Te.props;function Y(Ae,We,ie){var Be,Fe,Pe,Ke;ie&&((Fe=(Be=y)[Ae])===null||Fe===void 0||Fe.call(Be,We)),(Ke=(Pe=U)[Ae])===null||Ke===void 0||Ke.call(Pe,We)}const ae=Object.assign(Object.assign({},U),{onMouseEnter:Ae=>{P(!0),Y("onMouseEnter",Ae)},onMouseLeave:Ae=>{P(!1),Y("onMouseLeave",Ae)},onMouseDown:Ae=>{G(!0),le(!0),Y("onMouseDown",Ae)},onFocus:Ae=>{var We;G(!0),(We=y.onFocus)===null||We===void 0||We.call(y,Ae),Y("onFocus",Ae,!0)},onBlur:Ae=>{var We;G(!1),(We=y.onBlur)===null||We===void 0||We.call(y,Ae),Y("onBlur",Ae,!0)}}),ye=pe.cloneElement(Te,ae),fe=(!!ue||ee)&&K!==null;return be?ye:pe.createElement(ioe,Object.assign({},L,{prefixCls:_("tooltip",X??l),title:K?K(Ve.value):"",value:Ve.value,open:fe,placement:ne(j??f,b),key:q,classNames:{root:`${he}-tooltip`},getPopupContainer:H||d||O}),ye)}),we=be?(Te,Ve)=>{const q=pe.cloneElement(Te,{style:Object.assign(Object.assign({},Te.props.style),{visibility:"hidden"})});return pe.createElement(ioe,Object.assign({},L,{prefixCls:_("tooltip",X??l),title:K?K(Ve.value):"",open:K!==null&&ee,placement:ne(j??f,b),key:"tooltip",classNames:{root:`${he}-tooltip`},getPopupContainer:H||d||O,draggingDelete:Ve.draggingDelete}),q)}:void 0,de=Object.assign(Object.assign(Object.assign(Object.assign({},w.root),E),v==null?void 0:v.root),a),Ee=Object.assign(Object.assign({},w.tracks),v==null?void 0:v.tracks),Ne=Ce(C.tracks,g==null?void 0:g.tracks);return me(pe.createElement(Nut,Object.assign({},y,{classNames:Object.assign({handle:Ce(C.handle,g==null?void 0:g.handle),rail:Ce(C.rail,g==null?void 0:g.rail),track:Ce(C.track,g==null?void 0:g.track)},Ne?{tracks:Ne}:{}),styles:Object.assign({handle:Object.assign(Object.assign({},w.handle),v==null?void 0:v.handle),rail:Object.assign(Object.assign({},w.rail),v==null?void 0:v.rail),track:Object.assign(Object.assign({},w.track),v==null?void 0:v.track)},Object.keys(Ee).length?{tracks:Ee}:{}),step:y.step,range:r,className:ve,style:de,disabled:A,ref:t,prefixCls:he,handleRender:xe,activeHandleRender:we,onChangeComplete:oe})))});var But=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);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 swe=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=But(e,["prefixCls","colors","type","color","range","className","activeIndex","onActive","onDragStart","onDragChange","onKeyDelete"]),p=Object.assign(Object.assign({},f),{track:!1}),m=h.useMemo(()=>`linear-gradient(90deg, ${n.map(E=>`${E.color} ${E.percent}%`).join(", ")})`,[n]),g=h.useMemo(()=>!i||!r?null:r==="alpha"?i.toRgbString():`hsl(${i.toHsb().h}, 100%, 50%)`,[i,r]),v=qn(c),y=qn(u),b=h.useMemo(()=>({onDragStart:v,onDragChange:y}),[]),_=qn((x,E)=>{const{onFocus:C,style:w,className:O,onKeyDown:T}=x.props,A=Object.assign({},w);return r==="gradient"&&(A.background=bSe(n,E.value)),h.cloneElement(x,{onFocus:I=>{l==null||l(E.index),C==null||C(I)},style:A,className:Ce(O,{[`${t}-slider-handle-active`]:s===E.index}),onKeyDown:I=>{(I.key==="Delete"||I.key==="Backspace")&&d&&d(E.index),T==null||T(I)}})}),S=h.useMemo(()=>({direction:"ltr",handleRender:_}),[]);return h.createElement(iwe.Provider,{value:S},h.createElement(rwe.Provider,{value:b},h.createElement(awe,Object.assign({},p,{className:Ce(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`}}))))},Hut=e=>{const{value:t,onChange:n,onChangeComplete:r}=e,i=a=>n(a[0]),o=a=>r(a[0]);return h.createElement(swe,Object.assign({},e,{value:[t],onChange:i,onChangeComplete:o}))};function ooe(e){return rt(e).sort((t,n)=>t.percent-n.percent)}const jut=e=>{const{prefixCls:t,mode:n,onChange:r,onChangeComplete:i,onActive:o,activeIndex:a,onGradientDragging:s,colors:l}=e,c=n==="gradient",u=h.useMemo(()=>l.map(y=>({percent:y.percent,color:y.color.toRgbString()})),[l]),d=h.useMemo(()=>u.map(y=>y.percent),[u]),f=h.useRef(u),p=({rawValues:y,draggingIndex:b,draggingValue:_})=>{if(y.length>u.length){const S=bSe(u,_),x=rt(u);x.splice(b,0,{percent:_,color:S}),f.current=x}else f.current=u;s(!0),r(new mc(ooe(f.current)),!0)},m=({deleteIndex:y,draggingIndex:b,draggingValue:_})=>{let S=rt(f.current);y!==-1?S.splice(y,1):(S[b]=Object.assign(Object.assign({},S[b]),{percent:_}),S=ooe(S)),r(new mc(S),!0)},g=y=>{const b=rt(u);b.splice(y,1);const _=new mc(b);r(_),i(_)},v=y=>{i(new mc(u)),a>=y.length&&o(y.length-1),s(!1)};return c?h.createElement(swe,{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:p,onDragChange:m,onKeyDelete:g}):null},Uut=h.memo(jut);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 Vut={slider:Hut},aoe=()=>{const e=h.useContext(Wxe),{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,p=zut(e,["mode","onModeChange","modeOptions","prefixCls","allowClear","value","disabledAlpha","onChange","onClear","onChangeComplete","activeIndex","gradientDragging"]),m=pe.useMemo(()=>a.cleared?[{percent:0,color:new mc("")},{percent:100,color:new mc("")}]:a.getColors(),[a]),g=!a.isGradient(),[v,y]=pe.useState(a);er(()=>{var D;g||y((D=m[d])===null||D===void 0?void 0:D.color)},[f,d]);const b=pe.useMemo(()=>{var D;return g?a:f?v:(D=m[d])===null||D===void 0?void 0:D.color},[a,d,g,v,f]),[_,S]=pe.useState(b),[x,E]=pe.useState(0),C=_!=null&&_.equals(b)?b:_;er(()=>{S(b)},[x,b==null?void 0:b.toHexString()]);const w=(D,M)=>{let k=Ps(D);if(a.cleared){const B=k.toRgb();if(!B.r&&!B.g&&!B.b&&M){const{type:G,value:L=0}=M;k=new mc({h:G==="hue"?L:0,s:1,b:1,a:G==="alpha"?L/100:1})}else k=AI(k)}if(t==="single")return k;const P=rt(m);return P[d]=Object.assign(Object.assign({},P[d]),{color:k}),new mc(P)},O=(D,M,k)=>{const P=w(D,k);S(P.isGradient()?P.getColors()[d].color:P),l(P,M)},T=(D,M)=>{u(w(D,M)),E(k=>k+1)},A=D=>{l(w(D))};let I=null;const N=r.length>1;return(o||N)&&(I=pe.createElement("div",{className:`${i}-operation`},N&&pe.createElement(Gxe,{size:"small",options:r,value:t,onChange:n}),pe.createElement(Yxe,Object.assign({prefixCls:i,value:a,onChange:D=>{l(D),c==null||c()}},p)))),pe.createElement(pe.Fragment,null,I,pe.createElement(Uut,Object.assign({},e,{colors:m})),pe.createElement(vXe,{prefixCls:i,value:C==null?void 0:C.toHsb(),disabledAlpha:s,onChange:(D,M)=>{O(D,!0,M)},onChangeComplete:(D,M)=>{T(D,M)},components:Vut}),pe.createElement(but,Object.assign({value:b,onChange:A,prefixCls:i,disabledAlpha:s},p)))},soe=()=>{const{prefixCls:e,value:t,presets:n,onChange:r}=h.useContext(qxe);return Array.isArray(n)?pe.createElement(dZe,{value:t,presets:n,prefixCls:e,onChange:r}):null},Gut=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:p,onActive:m,format:g,onFormatChange:v,gradientDragging:y,onGradientDragging:b,disabledFormat:_}=e,S=`${t}-inner`,x=pe.useMemo(()=>({prefixCls:t,value:i,onChange:o,onClear:a,allowClear:s,disabledAlpha:l,mode:c,onModeChange:u,modeOptions:d,onChangeComplete:f,activeIndex:p,onActive:m,format:g,onFormatChange:v,gradientDragging:y,onGradientDragging:b,disabledFormat:_}),[t,i,o,a,s,l,c,u,d,f,p,m,g,v,y,b,_]),E=pe.useMemo(()=>({prefixCls:t,value:i,presets:n,onChange:o}),[t,i,n,o]),C=pe.createElement("div",{className:`${S}-content`},pe.createElement(aoe,null),Array.isArray(n)&&pe.createElement(Ect,null),pe.createElement(soe,null));return pe.createElement(Wxe.Provider,{value:x},pe.createElement(qxe.Provider,{value:E},pe.createElement("div",{className:S},typeof r=="function"?r(C,{components:{Picker:aoe,Presets:soe}}):C)))};var Wut=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);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 qut=h.forwardRef((e,t)=>{const{color:n,prefixCls:r,open:i,disabled:o,format:a,className:s,showText:l,activeIndex:c}=e,u=Wut(e,["color","prefixCls","open","disabled","format","className","showText","activeIndex"]),d=`${r}-trigger`,f=`${d}-text`,p=`${f}-cell`,[m]=Ma("ColorPicker"),g=pe.useMemo(()=>{if(!l)return"";if(typeof l=="function")return l(n);if(n.cleared)return m.transparent;if(n.isGradient())return n.getColors().map((_,S)=>{const x=c!==-1&&c!==S;return pe.createElement("span",{key:S,className:Ce(p,x&&`${p}-inactive`)},_.color.toRgbString()," ",_.percent,"%")});const y=n.toHexString().toUpperCase(),b=Bq(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=h.useMemo(()=>n.cleared?pe.createElement(Yxe,{prefixCls:r}):pe.createElement(Dq,{prefixCls:r,color:n.toCssString()}),[n,r]);return pe.createElement("div",Object.assign({ref:t,className:Ce(d,s,{[`${d}-active`]:i,[`${d}-disabled`]:o})},Oi(u)),v,l&&pe.createElement("div",{className:f},g))});function Yut(e,t,n){const[r]=Ma("ColorPicker"),[i,o]=Pn(e,{value:t}),[a,s]=h.useState("single"),[l,c]=h.useMemo(()=>{const g=(Array.isArray(n)?n:[n]).filter(_=>_);g.length||g.push("single");const v=new Set(g),y=[],b=(_,S)=>{v.has(_)&&y.push({label:S,value:_})};return b("single",r.singleColor),b("gradient",r.gradientColor),[y,v]},[n]),[u,d]=h.useState(null),f=qn(g=>{d(g),o(g)}),p=h.useMemo(()=>{const g=Ps(i||"");return g.equals(u)?u:g},[i,u]),m=h.useMemo(()=>{var g;return c.has(a)?a:(g=l[0])===null||g===void 0?void 0:g.value},[c,a,l]);return h.useEffect(()=>{s(p.isGradient()?"gradient":"single")},[p]),[p,f,m,s,l]}const lwe=(e,t)=>({backgroundImage:`conic-gradient(${t} 25%, transparent 25% 50%, ${t} 50% 75%, transparent 75% 100%)`,backgroundSize:`${e} ${e}`}),loe=(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"},lwe("50%",e.colorFillSecondary)),{[`${n}-color-block-inner`]:{width:"100%",height:"100%",boxShadow:`inset 0 0 0 ${Ie(o)} ${a}`,borderRadius:"inherit"}})}},Kut=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:p,lineWidth:m}=e;return{[`${t}-input-container`]:{display:"flex",[`${t}-steppers${n}-input-number`]:{fontSize:r,lineHeight:i,[`${n}-input-number-input`]:{paddingInlineStart:s,paddingInlineEnd:0},[`${n}-input-number-handler-wrap`]:{width:p}},[`${t}-steppers${t}-alpha-input`]:{flex:`0 0 ${Ie(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:Ie(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 ${Ie(d)}`,[`${n}-input`]:{fontSize:r,textTransform:"uppercase",lineHeight:Ie(e.calc(l).sub(e.calc(m).mul(2)).equal())},[`${n}-input-prefix`]:{color:f}}}}}},Qut=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:`${Ie(l)} solid ${a}`,position:"relative",borderRadius:"50%",cursor:"pointer",boxShadow:`${i}, 0 0 0 1px ${s}`}}},Xut=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:p,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:p},[`${n}-collapse-item > ${n}-collapse-content > ${n}-collapse-content-box`]:{padding:`${Ie(m)} 0`},"&-label":{fontSize:a,color:s,lineHeight:l},"&-items":{display:"flex",flexWrap:"wrap",gap:e.calc(p).mul(1.5).equal(),[`${t}-presets-color`]:{position:"relative",cursor:"pointer",width:o,height:o,"&::before":{content:'""',pointerEvents:"none",width:e.calc(o).add(e.calc(c).mul(4)).equal(),height:e.calc(o).add(e.calc(c).mul(4)).equal(),position:"absolute",top:e.calc(c).mul(-2).equal(),insetInlineStart:e.calc(c).mul(-2).equal(),borderRadius:u,border:`${Ie(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:`${Ie(e.lineWidthBold)} solid ${e.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${e.motionDurationFast} ${e.motionEaseInBack}, opacity ${e.motionDurationFast}`},[`&${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}}}},Zut=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`]:[lwe(Ie(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:`${Ie(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}}}},tj=(e,t,n)=>({borderInlineEndWidth:e.lineWidth,borderColor:t,boxShadow:`0 0 0 ${Ie(e.controlOutlineWidth)} ${n}`,outline:0}),Jut=e=>{const{componentCls:t}=e;return{"&-rtl":{[`${t}-presets-color`]:{"&::after":{direction:"ltr"}},[`${t}-clear`]:{"&::after":{direction:"ltr"}}}}},coe=(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:`${Ie(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}})}},edt=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({},tj(e,n,a))},[`&${t}-status-warning`]:{borderColor:r,"&:hover":{borderColor:o},[`&${t}-trigger-active`]:Object.assign({},tj(e,r,s))}}},tdt=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:Ie(o)}}}},ndt=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:p,controlHeightSM:m,colorBgTextActive:g,colorPickerPresetColorSize:v,colorPickerPreviewSize:y,lineWidth:b,colorBorder:_,paddingXXS:S,fontSize:x,colorPrimaryHover:E,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:`${Ie(f)} 0 ${Ie(d)}`}},[`${n}-panel`]:Object.assign({},Qut(e))},Zut(e)),loe(e,y)),Kut(e)),Xut(e)),coe(e,v,{marginInlineStart:"auto"})),{[`${n}-operation`]:{display:"flex",justifyContent:"space-between",marginBottom:d}}),"&-trigger":Object.assign(Object.assign(Object.assign(Object.assign({minWidth:p,minHeight:p,borderRadius:u,border:`${Ie(b)} solid ${_}`,cursor:"pointer",display:"inline-flex",alignItems:"flex-start",justifyContent:"center",transition:`all ${o}`,background:a,padding:e.calc(S).sub(b).equal(),[`${n}-trigger-text`]:{marginInlineStart:d,marginInlineEnd:e.calc(d).sub(e.calc(S).sub(b)).equal(),fontSize:x,color:l,alignSelf:"center","&-cell":{"&:not(:last-child):after":{content:'", "'},"&-inactive":{color:s}}},"&:hover":{borderColor:E},[`&${n}-trigger-active`]:Object.assign({},tj(e,i,C)),"&-disabled":{color:s,background:c,cursor:"not-allowed","&:hover":{borderColor:g},[`${n}-trigger-text`]:{color:s}}},coe(e,m)),loe(e,m)),edt(e)),tdt(e))},Jut(e))},bv(e,{focusElCls:`${n}-trigger-active`})]},rdt=ir("ColorPicker",e=>{const{colorTextQuaternary:t,marginSM:n}=e,r=8,i=Un(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[ndt(i)]});var idt=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);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 $Y=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:p=!0,panelRender:m,showText:g,style:v,className:y,size:b,rootClassName:_,prefixCls:S,styles:x,disabledAlpha:E=!1,onFormatChange:C,onChange:w,onClear:O,onOpenChange:T,onChangeComplete:A,getPopupContainer:I,autoAdjustOverflow:N=!0,destroyTooltipOnHide:D,destroyOnHidden:M,disabledFormat:k}=e,P=idt(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","destroyOnHidden","disabledFormat"]),{getPrefixCls:B,direction:G,colorPicker:L}=h.useContext(cn),W=h.useContext(Yo),j=d??W,[H,X]=Pn(!1,{value:u,postState:Pe=>!j&&Pe,onChange:T}),[Q,ue]=Pn(i,{value:i,defaultValue:o,onChange:C}),ee=B("color-picker",S),[K,se,le,oe,ne]=Yut(r,n,t),he=h.useMemo(()=>Bq(K)<100,[K]),[me,ce]=pe.useState(null),re=Pe=>{if(A){let Ke=Ps(Pe);E&&he&&(Ke=AI(Pe)),A(Ke)}},ve=(Pe,Ke)=>{let tt=Ps(Pe);E&&he&&(tt=AI(tt)),se(tt),ce(null),w&&w(tt,tt.toCssString()),Ke||re(tt)},[be,xe]=pe.useState(0),[we,de]=pe.useState(!1),Ee=Pe=>{if(oe(Pe),Pe==="single"&&K.isGradient())xe(0),ve(new mc(K.getColors()[0].color)),ce(K);else if(Pe==="gradient"&&!K.isGradient()){const Ke=he?AI(K):K;ve(new mc(me||[{percent:0,color:Ke},{percent:100,color:Ke}]))}},{status:Ne}=pe.useContext(oa),{compactSize:Te,compactItemClassnames:Ve}=Ru(ee,G),q=mo(Pe=>{var Ke;return(Ke=b??Te)!==null&&Ke!==void 0?Ke:Pe}),U=gi(ee),[Y,ae,ye]=rdt(ee,U),fe={[`${ee}-rtl`]:G},Ae=Ce(_,ye,U,fe),We=Ce(Id(ee,Ne),{[`${ee}-sm`]:q==="small",[`${ee}-lg`]:q==="large"},Ve,L==null?void 0:L.className,Ae,y,ae),ie=Ce(ee,Ae),Be={open:H,trigger:c,placement:f,arrow:p,rootClassName:_,getPopupContainer:I,autoAdjustOverflow:N,destroyOnHidden:M??!!D},Fe=Object.assign(Object.assign({},L==null?void 0:L.style),v);return Y(pe.createElement(bu,Object.assign({style:x==null?void 0:x.popup,styles:{body:x==null?void 0:x.popupOverlayInner},onOpenChange:Pe=>{(!Pe||!j)&&X(Pe)},content:pe.createElement(Ad,{form:!0},pe.createElement(Gut,{mode:le,onModeChange:Ee,modeOptions:ne,prefixCls:ee,value:K,allowClear:a,disabled:j,disabledAlpha:E,presets:s,panelRender:m,format:Q,onFormatChange:ue,onChange:ve,onChangeComplete:re,onClear:O,activeIndex:be,onActive:xe,gradientDragging:we,onGradientDragging:de,disabledFormat:k})),classNames:{root:ie}},Be),l||pe.createElement(qut,Object.assign({activeIndex:H?be:-1,open:H,className:We,style:Fe,prefixCls:ee,disabled:j,showText:g,format:Q},P,{color:K}))))},odt=Ig($Y,void 0,e=>Object.assign(Object.assign({},e),{placement:"bottom",autoAdjustOverflow:!1}),"color-picker",e=>e);$Y._InternalPanelDoNotUseOrYouWillBeFired=odt;var adt={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"},sdt=function(t,n){return h.createElement(Mn,Xe({},t,{ref:n,icon:adt}))},cwe=h.forwardRef(sdt),ldt={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"},cdt=function(t,n){return h.createElement(Mn,Xe({},t,{ref:n,icon:ldt}))},uwe=h.forwardRef(cdt),udt={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"},ddt=function(t,n){return h.createElement(Mn,Xe({},t,{ref:n,icon:udt}))},fdt=h.forwardRef(ddt);function pdt(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 hdt(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 dwe(e,t){const{allowClear:n=!0}=e,{clearIcon:r,removeIcon:i}=BP(Object.assign(Object.assign({},e),{prefixCls:t,componentName:"DatePicker"}));return[h.useMemo(()=>n===!1?!1:Object.assign({clearIcon:r},n===!0?{}:n),[n,r]),i]}const[mdt,gdt]=["week","WeekPicker"],[vdt,bdt]=["month","MonthPicker"],[ydt,_dt]=["year","YearPicker"],[Sdt,Edt]=["quarter","QuarterPicker"],[nj,uoe]=["time","TimePicker"],Cdt=e=>h.createElement(Dn,Object.assign({size:"small",type:"primary"},e));function fwe(e){return h.useMemo(()=>Object.assign({button:Cdt},e),[e])}function pwe(e,...t){const n=e||{};return t.reduce((r,i)=>(Object.keys(i||{}).forEach(o=>{const a=n[o],s=i[o];if(a&&typeof a=="object")if(s&&typeof s=="object")r[o]=pwe(a,r[o],s);else{const{_default:l}=a;r[o]=r[o]||{},r[o][l]=Ce(r[o][l],s)}else r[o]=Ce(r[o],s)}),r),{})}function xdt(e,...t){return h.useMemo(()=>pwe.apply(void 0,[e].concat(t)),[t])}function wdt(...e){return h.useMemo(()=>e.reduce((t,n={})=>(Object.keys(n).forEach(r=>{t[r]=Object.assign(Object.assign({},t[r]),n[r])}),t),{}),[e])}function rj(e,t){const n=Object.assign({},e);return Object.keys(t).forEach(r=>{if(r!=="_default"){const i=t[r],o=n[r]||{};n[r]=i?rj(o,i):o}}),n}function Tdt(e,t,n){const r=xdt.apply(void 0,[n].concat(rt(e))),i=wdt.apply(void 0,rt(t));return h.useMemo(()=>[rj(r,n),rj(i,n)],[r,i])}const hwe=(e,t,n,r,i)=>{const{classNames:o,styles:a}=Vi(e),[s,l]=Tdt([o,t],[a,n],{popup:{_default:"root"}});return h.useMemo(()=>{var c,u;const d=Object.assign(Object.assign({},s),{popup:Object.assign(Object.assign({},s.popup),{root:Ce((c=s.popup)===null||c===void 0?void 0:c.root,r)})}),f=Object.assign(Object.assign({},l),{popup:Object.assign(Object.assign({},l.popup),{root:Object.assign(Object.assign({},(u=l.popup)===null||u===void 0?void 0:u.root),i)})});return[d,f]},[s,l,r,i])};var Odt=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);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 Rdt=e=>h.forwardRef((n,r)=>{var i;const{prefixCls:o,getPopupContainer:a,components:s,className:l,style:c,placement:u,size:d,disabled:f,bordered:p=!0,placeholder:m,popupStyle:g,popupClassName:v,dropdownClassName:y,status:b,rootClassName:_,variant:S,picker:x,styles:E,classNames:C}=n,w=Odt(n,["prefixCls","getPopupContainer","components","className","style","placement","size","disabled","bordered","placeholder","popupStyle","popupClassName","dropdownClassName","status","rootClassName","variant","picker","styles","classNames"]),O=x===nj?"timePicker":"datePicker",T=h.useRef(null),{getPrefixCls:A,direction:I,getPopupContainer:N,rangePicker:D}=h.useContext(cn),M=A("picker",o),{compactSize:k,compactItemClassnames:P}=Ru(M,I),B=A(),[G,L]=Kf("rangePicker",S,p),W=gi(M),[j,H,X]=hxe(M,W),[Q,ue]=hwe(O,C,E,v||y,g),[ee]=dwe(n,M),K=fwe(s),se=mo(we=>{var de;return(de=d??k)!==null&&de!==void 0?de:we}),le=h.useContext(Yo),oe=f??le,ne=h.useContext(oa),{hasFeedback:he,status:me,feedbackIcon:ce}=ne,re=h.createElement(h.Fragment,null,x===nj?h.createElement(uwe,null):h.createElement(cwe,null),he&&ce);h.useImperativeHandle(r,()=>T.current);const[ve]=Ma("Calendar",u4),be=Object.assign(Object.assign({},ve),n.locale),[xe]=Ou("DatePicker",(i=ue.popup.root)===null||i===void 0?void 0:i.zIndex);return j(h.createElement(Ad,{space:!0},h.createElement(zat,Object.assign({separator:h.createElement("span",{"aria-label":"to",className:`${M}-separator`},h.createElement(fdt,null)),disabled:oe,ref:T,placement:u,placeholder:hdt(be,x,m),suffixIcon:re,prevIcon:h.createElement("span",{className:`${M}-prev-icon`}),nextIcon:h.createElement("span",{className:`${M}-next-icon`}),superPrevIcon:h.createElement("span",{className:`${M}-super-prev-icon`}),superNextIcon:h.createElement("span",{className:`${M}-super-next-icon`}),transitionName:`${B}-slide-up`,picker:x},w,{className:Ce({[`${M}-${se}`]:se,[`${M}-${G}`]:L},Id(M,yh(me,b),he),H,P,l,D==null?void 0:D.className,X,W,_,Q.root),style:Object.assign(Object.assign(Object.assign({},D==null?void 0:D.style),c),ue.root),locale:be.lang,prefixCls:M,getPopupContainer:a||N,generateConfig:e,components:K,direction:I,classNames:{popup:Ce(H,X,W,_,Q.popup.root)},styles:{popup:Object.assign(Object.assign({},ue.popup.root),{zIndex:xe})},allowClear:ee}))))});var Adt=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);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 Idt=e=>{const t=(l,c)=>{const u=c===uoe?"timePicker":"datePicker";return h.forwardRef((f,p)=>{var m;const{prefixCls:g,getPopupContainer:v,components:y,style:b,className:_,rootClassName:S,size:x,bordered:E,placement:C,placeholder:w,popupStyle:O,popupClassName:T,dropdownClassName:A,disabled:I,status:N,variant:D,onCalendarChange:M,styles:k,classNames:P}=f,B=Adt(f,["prefixCls","getPopupContainer","components","style","className","rootClassName","size","bordered","placement","placeholder","popupStyle","popupClassName","dropdownClassName","disabled","status","variant","onCalendarChange","styles","classNames"]),{getPrefixCls:G,direction:L,getPopupContainer:W,[u]:j}=h.useContext(cn),H=G("picker",g),{compactSize:X,compactItemClassnames:Q}=Ru(H,L),ue=h.useRef(null),[ee,K]=Kf("datePicker",D,E),se=gi(H),[le,oe,ne]=hxe(H,se);h.useImperativeHandle(p,()=>ue.current);const he={showToday:!0},me=l||f.picker,ce=G(),{onSelect:re,multiple:ve}=B,be=re&&l==="time"&&!ve,xe=(Fe,Pe,Ke)=>{M==null||M(Fe,Pe,Ke),be&&re(Fe)},[we,de]=hwe(u,P,k,T||A,O),[Ee,Ne]=dwe(f,H),Te=fwe(y),Ve=mo(Fe=>{var Pe;return(Pe=x??X)!==null&&Pe!==void 0?Pe:Fe}),q=h.useContext(Yo),U=I??q,Y=h.useContext(oa),{hasFeedback:ae,status:ye,feedbackIcon:fe}=Y,Ae=h.createElement(h.Fragment,null,me==="time"?h.createElement(uwe,null):h.createElement(cwe,null),ae&&fe),[We]=Ma("DatePicker",u4),ie=Object.assign(Object.assign({},We),f.locale),[Be]=Ou("DatePicker",(m=de.popup.root)===null||m===void 0?void 0:m.zIndex);return le(h.createElement(Ad,{space:!0},h.createElement(Kat,Object.assign({ref:ue,placeholder:pdt(ie,me,w),suffixIcon:Ae,placement:C,prevIcon:h.createElement("span",{className:`${H}-prev-icon`}),nextIcon:h.createElement("span",{className:`${H}-next-icon`}),superPrevIcon:h.createElement("span",{className:`${H}-super-prev-icon`}),superNextIcon:h.createElement("span",{className:`${H}-super-next-icon`}),transitionName:`${ce}-slide-up`,picker:l,onCalendarChange:xe},he,B,{locale:ie.lang,className:Ce({[`${H}-${Ve}`]:Ve,[`${H}-${ee}`]:K},Id(H,yh(ye,N),ae),oe,Q,j==null?void 0:j.className,_,ne,se,S,we.root),style:Object.assign(Object.assign(Object.assign({},j==null?void 0:j.style),b),de.root),prefixCls:H,getPopupContainer:v||W,generateConfig:e,components:Te,direction:L,disabled:U,classNames:{popup:Ce(oe,ne,se,S,we.popup.root)},styles:{popup:Object.assign(Object.assign({},de.popup.root),{zIndex:Be})},allowClear:Ee,removeIcon:Ne}))))})},n=t(),r=t(mdt,gdt),i=t(vdt,bdt),o=t(ydt,_dt),a=t(Sdt,Edt),s=t(nj,uoe);return{DatePicker:n,WeekPicker:r,MonthPicker:i,YearPicker:o,TimePicker:s,QuarterPicker:a}},mwe=e=>{const{DatePicker:t,WeekPicker:n,MonthPicker:r,YearPicker:i,TimePicker:o,QuarterPicker:a}=Idt(e),s=Rdt(e),l=t;return l.WeekPicker=n,l.MonthPicker=r,l.YearPicker=i,l.RangePicker=s,l.TimePicker=o,l.QuarterPicker=a,l},yu=mwe(Xot),Ndt=Ig(yu,"popupAlign",void 0,"picker");yu._InternalPanelDoNotUseOrYouWillBeFired=Ndt;const Mdt=Ig(yu.RangePicker,"popupAlign",void 0,"picker");yu._InternalRangePanelDoNotUseOrYouWillBeFired=Mdt;yu.generatePicker=mwe;var doe=h.createContext(null),gwe=h.createContext({}),kdt=["prefixCls","className","containerRef"],Pdt=function(t){var n=t.prefixCls,r=t.className,i=t.containerRef,o=kt(t,kdt),a=h.useContext(gwe),s=a.panel,l=Bd(s,i);return h.createElement("div",Xe({className:Ce("".concat(n,"-content"),r),role:"dialog",ref:l},Oi(t,{aria:!0}),{"aria-modal":"true"},o))};function foe(e){return typeof e=="string"&&String(Number(e))===e?(Vr(!1,"Invalid value type of `width` or `height` which should be number type instead."),Number(e)):e}var poe={width:0,height:0,overflow:"hidden",outline:"none",position:"absolute"};function Ddt(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,p=e.classNames,m=e.rootClassName,g=e.rootStyle,v=e.zIndex,y=e.className,b=e.id,_=e.style,S=e.motion,x=e.width,E=e.height,C=e.children,w=e.mask,O=e.maskClosable,T=e.maskMotion,A=e.maskClassName,I=e.maskStyle,N=e.afterOpenChange,D=e.onClose,M=e.onMouseEnter,k=e.onMouseOver,P=e.onMouseLeave,B=e.onClick,G=e.onKeyDown,L=e.onKeyUp,W=e.styles,j=e.drawerRender,H=h.useRef(),X=h.useRef(),Q=h.useRef();h.useImperativeHandle(t,function(){return H.current});var ue=function(Ee){var Ne=Ee.keyCode,Te=Ee.shiftKey;switch(Ne){case Ut.TAB:{if(Ne===Ut.TAB){if(!Te&&document.activeElement===Q.current){var Ve;(Ve=X.current)===null||Ve===void 0||Ve.focus({preventScroll:!0})}else if(Te&&document.activeElement===X.current){var q;(q=Q.current)===null||q===void 0||q.focus({preventScroll:!0})}}break}case Ut.ESC:{D&&f&&(Ee.stopPropagation(),D(Ee));break}}};h.useEffect(function(){if(a&&d){var de;(de=H.current)===null||de===void 0||de.focus({preventScroll:!0})}},[a]);var ee=h.useState(!1),K=Re(ee,2),se=K[0],le=K[1],oe=h.useContext(doe),ne;typeof c=="boolean"?ne=c?{}:{distance:0}:ne=c||{};var he=(n=(r=(i=ne)===null||i===void 0?void 0:i.distance)!==null&&r!==void 0?r:oe==null?void 0:oe.pushDistance)!==null&&n!==void 0?n:180,me=h.useMemo(function(){return{pushDistance:he,push:function(){le(!0)},pull:function(){le(!1)}}},[he]);h.useEffect(function(){if(a){var de;oe==null||(de=oe.push)===null||de===void 0||de.call(oe)}else{var Ee;oe==null||(Ee=oe.pull)===null||Ee===void 0||Ee.call(oe)}},[a]),h.useEffect(function(){return function(){var de;oe==null||(de=oe.pull)===null||de===void 0||de.call(oe)}},[]);var ce=h.createElement(ia,Xe({key:"mask"},T,{visible:w&&a}),function(de,Ee){var Ne=de.className,Te=de.style;return h.createElement("div",{className:Ce("".concat(o,"-mask"),Ne,p==null?void 0:p.mask,A),style:z(z(z({},Te),I),W==null?void 0:W.mask),onClick:O&&a?D:void 0,ref:Ee})}),re=typeof S=="function"?S(s):S,ve={};if(se&&he)switch(s){case"top":ve.transform="translateY(".concat(he,"px)");break;case"bottom":ve.transform="translateY(".concat(-he,"px)");break;case"left":ve.transform="translateX(".concat(he,"px)");break;default:ve.transform="translateX(".concat(-he,"px)");break}s==="left"||s==="right"?ve.width=foe(x):ve.height=foe(E);var be={onMouseEnter:M,onMouseOver:k,onMouseLeave:P,onClick:B,onKeyDown:G,onKeyUp:L},xe=h.createElement(ia,Xe({key:"panel"},re,{visible:a,forceRender:u,onVisibleChanged:function(Ee){N==null||N(Ee)},removeOnLeave:!1,leavedClassName:"".concat(o,"-content-wrapper-hidden")}),function(de,Ee){var Ne=de.className,Te=de.style,Ve=h.createElement(Pdt,Xe({id:b,containerRef:Ee,prefixCls:o,className:Ce(y,p==null?void 0:p.content),style:z(z({},_),W==null?void 0:W.content)},Oi(e,{aria:!0}),be),C);return h.createElement("div",Xe({className:Ce("".concat(o,"-content-wrapper"),p==null?void 0:p.wrapper,Ne),style:z(z(z({},ve),Te),W==null?void 0:W.wrapper)},Oi(e,{data:!0})),j?j(Ve):Ve)}),we=z({},g);return v&&(we.zIndex=v),h.createElement(doe.Provider,{value:me},h.createElement("div",{className:Ce(o,"".concat(o,"-").concat(s),m,te(te({},"".concat(o,"-open"),a),"".concat(o,"-inline"),l)),style:we,tabIndex:-1,ref:H,onKeyDown:ue},ce,h.createElement("div",{tabIndex:0,ref:X,style:poe,"aria-hidden":"true","data-sentinel":"start"}),xe,h.createElement("div",{tabIndex:0,ref:Q,style:poe,"aria-hidden":"true","data-sentinel":"end"})))}var Ldt=h.forwardRef(Ddt),$dt=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,p=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,S=t.afterOpenChange,x=t.destroyOnClose,E=t.onMouseEnter,C=t.onMouseOver,w=t.onMouseLeave,O=t.onClick,T=t.onKeyDown,A=t.onKeyUp,I=t.panelRef,N=h.useState(!1),D=Re(N,2),M=D[0],k=D[1],P=h.useState(!1),B=Re(P,2),G=B[0],L=B[1];er(function(){L(!0)},[]);var W=G?r:!1,j=h.useRef(),H=h.useRef();er(function(){W&&(H.current=document.activeElement)},[W]);var X=function(se){var le;if(k(se),S==null||S(se),!se&&H.current&&!((le=j.current)!==null&&le!==void 0&&le.contains(H.current))){var oe;(oe=H.current)===null||oe===void 0||oe.focus({preventScroll:!0})}},Q=h.useMemo(function(){return{panel:I}},[I]);if(!_&&!M&&!W&&x)return null;var ue={onMouseEnter:E,onMouseOver:C,onMouseLeave:w,onClick:O,onKeyDown:T,onKeyUp:A},ee=z(z({},t),{},{open:W,prefixCls:o,placement:s,autoFocus:c,keyboard:d,width:p,mask:g,maskClosable:y,inline:b===!1,afterOpenChange:X,ref:j},ue);return h.createElement(gwe.Provider,{value:Q},h.createElement(o2,{open:W||_||M,autoDestroy:!1,getContainer:b,autoLock:g&&(W||M)},h.createElement(Ldt,ee)))};const vwe=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:p,styles:m}=e,g=Vi("drawer"),v=h.useCallback(x=>h.createElement("button",{type:"button",onClick:l,className:`${r}-close`},x),[l]),[y,b]=qq(h_(e),h_(g),{closable:!0,closeIconRender:v}),_=h.useMemo(()=>{var x,E;return!i&&!y?null:h.createElement("div",{style:Object.assign(Object.assign(Object.assign({},(x=g.styles)===null||x===void 0?void 0:x.header),c),m==null?void 0:m.header),className:Ce(`${r}-header`,{[`${r}-header-close-only`]:y&&!i&&!a},(E=g.classNames)===null||E===void 0?void 0:E.header,p==null?void 0:p.header)},h.createElement("div",{className:`${r}-header-title`},b,i&&h.createElement("div",{className:`${r}-title`},i)),a&&h.createElement("div",{className:`${r}-extra`},a))},[y,b,a,c,r,i]),S=h.useMemo(()=>{var x,E;if(!o)return null;const C=`${r}-footer`;return h.createElement("div",{className:Ce(C,(x=g.classNames)===null||x===void 0?void 0:x.footer,p==null?void 0:p.footer),style:Object.assign(Object.assign(Object.assign({},(E=g.styles)===null||E===void 0?void 0:E.footer),d),m==null?void 0:m.footer)},o)},[o,d,r]);return h.createElement(h.Fragment,null,_,h.createElement("div",{className:Ce(`${r}-body`,p==null?void 0:p.body,(t=g.classNames)===null||t===void 0?void 0:t.body),style:Object.assign(Object.assign(Object.assign({},(n=g.styles)===null||n===void 0?void 0:n.body),u),m==null?void 0:m.body)},s?h.createElement(bh,{active:!0,title:!1,paragraph:{rows:5},className:`${r}-body-skeleton`}):f),S)},Fdt=e=>{const t="100%";return{left:`translateX(-${t})`,right:`translateX(${t})`,top:`translateY(-${t})`,bottom:`translateY(${t})`}[e]},bwe=(e,t)=>({"&-enter, &-appear":Object.assign(Object.assign({},e),{"&-active":t}),"&-leave":Object.assign(Object.assign({},t),{"&-active":e})}),ywe=(e,t)=>Object.assign({"&-enter, &-appear, &-leave":{"&-start":{transition:"none"},"&-active":{transition:`all ${t}`}}},bwe({opacity:e},{opacity:1})),Bdt=(e,t)=>[ywe(.7,t),bwe({transform:Fdt(e)},{transform:"none"})],Hdt=e=>{const{componentCls:t,motionDurationSlow:n}=e;return{[t]:{[`${t}-mask-motion`]:ywe(0,n),[`${t}-panel-motion`]:["left","right","top","bottom"].reduce((r,i)=>Object.assign(Object.assign({},r),{[`&-${i}`]:Bdt(i,n)}),{})}}},jdt=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:p,lineType:m,colorSplit:g,marginXS:v,colorIcon:y,colorIconHover:b,colorBgTextHover:_,colorBgTextActive:S,colorText:x,fontWeightStrong:E,footerPaddingBlock:C,footerPaddingInline:w,calc:O}=e,T=`${n}-content-wrapper`;return{[n]:{position:"fixed",inset:0,zIndex:r,pointerEvents:"none",color:x,"&-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"},[T]:{position:"absolute",zIndex:r,maxWidth:"100vw",transition:`all ${a}`,"&-hidden":{display:"none"}},[`&-left > ${T}`]:{top:0,bottom:0,left:{_skip_check_:!0,value:0},boxShadow:e.boxShadowDrawerLeft},[`&-right > ${T}`]:{top:0,right:{_skip_check_:!0,value:0},bottom:0,boxShadow:e.boxShadowDrawerRight},[`&-top > ${T}`]:{top:0,insetInline:0,boxShadow:e.boxShadowDrawerUp},[`&-bottom > ${T}`]:{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:`${Ie(c)} ${Ie(u)}`,fontSize:d,lineHeight:f,borderBottom:`${Ie(p)} ${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:O(d).add(l).equal(),height:O(d).add(l).equal(),borderRadius:t,justifyContent:"center",alignItems:"center",marginInlineEnd:v,color:y,fontWeight:E,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:S}},tl(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:`${Ie(C)} ${Ie(w)}`,borderTop:`${Ie(p)} ${m} ${g}`},"&-rtl":{direction:"rtl"}}}},Udt=e=>({zIndexPopup:e.zIndexPopupBase,footerPaddingBlock:e.paddingXS,footerPaddingInline:e.padding}),_we=ir("Drawer",e=>{const t=Un(e,{});return[jdt(t),Hdt(t)]},Udt);var Swe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);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 zdt={distance:180},FY=e=>{const{rootClassName:t,width:n,height:r,size:i="default",mask:o=!0,push:a=zdt,open:s,afterOpenChange:l,onClose:c,prefixCls:u,getContainer:d,style:f,className:p,visible:m,afterVisibleChange:g,maskStyle:v,drawerStyle:y,contentWrapperStyle:b,destroyOnClose:_,destroyOnHidden:S}=e,x=Swe(e,["rootClassName","width","height","size","mask","push","open","afterOpenChange","onClose","prefixCls","getContainer","style","className","visible","afterVisibleChange","maskStyle","drawerStyle","contentWrapperStyle","destroyOnClose","destroyOnHidden"]),{getPopupContainer:E,getPrefixCls:C,direction:w,className:O,style:T,classNames:A,styles:I}=Vi("drawer"),N=C("drawer",u),[D,M,k]=_we(N),P=d===void 0&&E?()=>E(document.body):d,B=Ce({"no-mask":!o,[`${N}-rtl`]:w==="rtl"},t,M,k),G=h.useMemo(()=>n??(i==="large"?736:378),[n,i]),L=h.useMemo(()=>r??(i==="large"?736:378),[r,i]),W={motionName:Va(N,"mask-motion"),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500},j=K=>({motionName:Va(N,`panel-motion-${K}`),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500}),H=HSe(),[X,Q]=Ou("Drawer",x.zIndex),{classNames:ue={},styles:ee={}}=x;return D(h.createElement(Ad,{form:!0,space:!0},h.createElement(e2.Provider,{value:Q},h.createElement($dt,Object.assign({prefixCls:N,onClose:c,maskMotion:W,motion:j},x,{classNames:{mask:Ce(ue.mask,A.mask),content:Ce(ue.content,A.content),wrapper:Ce(ue.wrapper,A.wrapper)},styles:{mask:Object.assign(Object.assign(Object.assign({},ee.mask),v),I.mask),content:Object.assign(Object.assign(Object.assign({},ee.content),y),I.content),wrapper:Object.assign(Object.assign(Object.assign({},ee.wrapper),b),I.wrapper)},open:s??m,mask:o,push:a,width:G,height:L,style:Object.assign(Object.assign({},T),f),className:Ce(O,p),rootClassName:B,getContainer:P,afterOpenChange:l??g,panelRef:H,zIndex:X,destroyOnClose:S??_}),h.createElement(vwe,Object.assign({prefixCls:N},x,{onClose:c}))))))},Vdt=e=>{const{prefixCls:t,style:n,className:r,placement:i="right"}=e,o=Swe(e,["prefixCls","style","className","placement"]),{getPrefixCls:a}=h.useContext(cn),s=a("drawer",t),[l,c,u]=_we(s),d=Ce(s,`${s}-pure`,`${s}-${i}`,c,u,r);return l(h.createElement("div",{className:d,style:n},h.createElement(vwe,Object.assign({prefixCls:s},o))))};FY._InternalPanelDoNotUseOrYouWillBeFired=Vdt;function hoe(e){return["small","middle","large"].includes(e)}function moe(e){return e?typeof e=="number"&&!Number.isNaN(e):!1}const Ewe=pe.createContext({latestIndex:0}),Gdt=Ewe.Provider,Wdt=({className:e,index:t,children:n,split:r,style:i})=>{const{latestIndex:o}=h.useContext(Ewe);return n==null?null:h.createElement(h.Fragment,null,h.createElement("div",{className:e,style:i},n),t<o&&r&&h.createElement("span",{className:`${e}-split`},r))};var qdt=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);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=h.forwardRef((e,t)=>{var n;const{getPrefixCls:r,direction:i,size:o,className:a,style:s,classNames:l,styles:c}=Vi("space"),{size:u=o??"small",align:d,className:f,rootClassName:p,children:m,direction:g="horizontal",prefixCls:v,split:y,style:b,wrap:_=!1,classNames:S,styles:x}=e,E=qdt(e,["size","align","className","rootClassName","children","direction","prefixCls","split","style","wrap","classNames","styles"]),[C,w]=Array.isArray(u)?u:[u,u],O=hoe(w),T=hoe(C),A=moe(w),I=moe(C),N=Do(m,{keepEmpty:!0}),D=d===void 0&&g==="horizontal"?"center":d,M=r("space",v),[k,P,B]=sSe(M),G=Ce(M,a,P,`${M}-${g}`,{[`${M}-rtl`]:i==="rtl",[`${M}-align-${D}`]:D,[`${M}-gap-row-${w}`]:O,[`${M}-gap-col-${C}`]:T},f,p,B),L=Ce(`${M}-item`,(n=S==null?void 0:S.item)!==null&&n!==void 0?n:l.item);let W=0;const j=N.map((Q,ue)=>{var ee;Q!=null&&(W=ue);const K=(Q==null?void 0:Q.key)||`${L}-${ue}`;return h.createElement(Wdt,{className:L,key:K,index:ue,split:y,style:(ee=x==null?void 0:x.item)!==null&&ee!==void 0?ee:c.item},Q)}),H=h.useMemo(()=>({latestIndex:W}),[W]);if(N.length===0)return null;const X={};return _&&(X.flexWrap="wrap"),!T&&I&&(X.columnGap=C),!O&&A&&(X.rowGap=w),k(h.createElement("div",Object.assign({ref:t,className:G,style:Object.assign(Object.assign(Object.assign({},X),s),b)},E),h.createElement(Gdt,{value:H},j)))}),Ji=Ydt;Ji.Compact=ZQe;var Kdt=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);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 Cwe=e=>{const{getPopupContainer:t,getPrefixCls:n,direction:r}=h.useContext(cn),{prefixCls:i,type:o="default",danger:a,disabled:s,loading:l,onClick:c,htmlType:u,children:d,className:f,menu:p,arrow:m,autoFocus:g,overlay:v,trigger:y,align:b,open:_,onOpenChange:S,placement:x,getPopupContainer:E,href:C,icon:w=h.createElement(hY,null),title:O,buttonsRender:T=oe=>oe,mouseEnterDelay:A,mouseLeaveDelay:I,overlayClassName:N,overlayStyle:D,destroyOnHidden:M,destroyPopupOnHide:k,dropdownRender:P,popupRender:B}=e,G=Kdt(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","destroyOnHidden","destroyPopupOnHide","dropdownRender","popupRender"]),L=n("dropdown",i),W=`${L}-button`,H={menu:p,arrow:m,autoFocus:g,align:b,disabled:s,trigger:s?[]:y,onOpenChange:S,getPopupContainer:E||t,mouseEnterDelay:A,mouseLeaveDelay:I,overlayClassName:N,overlayStyle:D,destroyOnHidden:M,popupRender:B||P},{compactSize:X,compactItemClassnames:Q}=Ru(L,r),ue=Ce(W,Q,f);"destroyPopupOnHide"in e&&(H.destroyPopupOnHide=k),"overlay"in e&&(H.overlay=v),"open"in e&&(H.open=_),"placement"in e?H.placement=x:H.placement=r==="rtl"?"bottomLeft":"bottomRight";const ee=h.createElement(Dn,{type:o,danger:a,disabled:s,loading:l,onClick:c,htmlType:u,href:C,title:O},d),K=h.createElement(Dn,{type:o,danger:a,icon:w}),[se,le]=T([ee,K]);return h.createElement(Ji.Compact,Object.assign({className:ue,size:X,block:!0},G),se,h.createElement(h2,Object.assign({},H),le))};Cwe.__ANT_BUTTON=!0;const rD=h2;rD.Button=Cwe;function Qdt(e){return e==null?null:typeof e=="object"&&!h.isValidElement(e)?e:{title:e}}var Xdt={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"},Zdt=function(t,n){return h.createElement(Mn,Xe({},t,{ref:n,icon:Xdt}))},xwe=h.forwardRef(Zdt);function W4(e){const[t,n]=h.useState(e);return h.useEffect(()=>{const r=setTimeout(()=>{n(e)},e.length?0:10);return()=>{clearTimeout(r)}},[e]),t}const Jdt=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)"}}}}},eft=e=>({legend:{display:"block",width:"100%",marginBottom:e.marginLG,padding:0,color:e.colorTextDescription,fontSize:e.fontSizeLG,lineHeight:"inherit",border:0,borderBottom:`${Ie(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},'input[type="search"]':{boxSizing:"border-box"},'input[type="radio"], input[type="checkbox"]':{lineHeight:"normal"},'input[type="file"]':{display:"block"},'input[type="range"]':{display:"block",width:"100%"},"select[multiple], select[size]":{height:"auto"},"input[type='file']:focus,\n input[type='radio']:focus,\n input[type='checkbox']:focus":{outline:0,boxShadow:`0 0 0 ${Ie(e.controlOutlineWidth)} ${e.controlOutline}`},output:{display:"block",paddingTop:15,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight}}),goe=(e,t)=>{const{formItemCls:n}=e;return{[n]:{[`${n}-label > label`]:{height:t},[`${n}-control-input`]:{minHeight:t}}}},tft=e=>{const{componentCls:t}=e;return{[e.componentCls]:Object.assign(Object.assign(Object.assign({},mr(e)),eft(e)),{[`${t}-text`]:{display:"inline-block",paddingInlineEnd:e.paddingSM},"&-small":Object.assign({},goe(e,e.controlHeightSM)),"&-large":Object.assign({},goe(e,e.controlHeightLG))})}},nft=e=>{const{formItemCls:t,iconCls:n,rootPrefixCls:r,antCls:i,labelRequiredMarkColor:o,labelColor:a,labelFontSize:s,labelHeight:l,labelColonMarginInlineStart:c,labelColonMarginInlineEnd:u,itemMarginBottom:d}=e;return{[t]:Object.assign(Object.assign({},mr(e)),{marginBottom:d,verticalAlign:"top","&-with-help":{transition:"none"},[`&-hidden,
&-hidden${i}-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":{verticalAlign:"middle",textWrap:"balance"}},"> label":{position:"relative",display:"inline-flex",alignItems:"center",maxWidth:"100%",height:l,color:a,fontSize:s,[`> ${n}`]:{fontSize:e.fontSize,verticalAlign:"top"},[`&${t}-required`]:{"&::before":{display:"inline-block",marginInlineEnd:e.marginXXS,color:o,fontSize:e.fontSize,fontFamily:"SimSun, sans-serif",lineHeight:1,content:'"*"'},[`&${t}-required-mark-hidden, &${t}-required-mark-optional`]:{"&::before":{display:"none"}}},[`${t}-optional`]:{display:"inline-block",marginInlineStart:e.marginXXS,color:e.colorTextDescription,[`&${t}-required-mark-hidden`]:{display:"none"}},[`${t}-tooltip`]:{color:e.colorTextDescription,cursor:"help",writingMode:"horizontal-tb",marginInlineStart:e.marginXXS},"&::after":{content:'":"',position:"relative",marginBlock:0,marginInlineStart:c,marginInlineEnd:u},[`&${t}-no-colon::after`]:{content:'"\\a0"'}}},[`${t}-control`]:{"--ant-display":"flex",flexDirection:"column",flexGrow:1,[`&:first-child:not([class^="'${r}-col-'"]):not([class*="' ${r}-col-'"])`]:{width:"100%"},"&-input":{position:"relative",display:"flex",alignItems:"center",minHeight:e.controlHeight,"&-content":{flex:"auto",maxWidth:"100%",[`&:has(> ${i}-switch:only-child, > ${i}-rate:only-child)`]:{display:"flex",alignItems:"center"}}}},[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:Fq,animationDuration:e.motionDurationMid,animationTimingFunction:e.motionEaseOutBack,pointerEvents:"none","&-success":{color:e.colorSuccess},"&-error":{color:e.colorError},"&-warning":{color:e.colorWarning},"&-validating":{color:e.colorPrimary}}})}},voe=(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"}}}}},rft=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"}}}),wwe=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%"}}}}}},ift=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: ${Ie(e.screenXSMax)})`]:[wwe(e),{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-xs-24${n}-label`]:td(e)}}}],[`@media (max-width: ${Ie(e.screenSMMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-sm-24${n}-label`]:td(e)}}},[`@media (max-width: ${Ie(e.screenMDMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-md-24${n}-label`]:td(e)}}},[`@media (max-width: ${Ie(e.screenLGMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-lg-24${n}-label`]:td(e)}}}}},oft=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: ${Ie(e.screenXSMax)})`]:[wwe(e),{[t]:{[`${n}-col-xs-24${t}-label`]:td(e)}}],[`@media (max-width: ${Ie(e.screenSMMax)})`]:{[t]:{[`${n}-col-sm-24${t}-label`]:td(e)}},[`@media (max-width: ${Ie(e.screenMDMax)})`]:{[t]:{[`${n}-col-md-24${t}-label`]:td(e)}},[`@media (max-width: ${Ie(e.screenLGMax)})`]:{[t]:{[`${n}-col-lg-24${t}-label`]:td(e)}}}},aft=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}),Twe=(e,t)=>Un(e,{formItemCls:`${e.componentCls}-item`,rootPrefixCls:t}),BY=ir("Form",(e,{rootPrefixCls:t})=>{const n=Twe(e,t);return[tft(n),nft(n),Jdt(n),voe(n,n.componentCls),voe(n,n.formItemCls),rft(n),ift(n),oft(n),r2(n),Fq]},aft,{order:-1e3}),boe=[];function bL(e,t,n,r=0){return{key:typeof e=="string"?e:`${t}-${r}`,error:e,errorStatus:n}}const Owe=({help:e,helpStatus:t,errors:n=boe,warnings:r=boe,className:i,fieldId:o,onVisibleChanged:a})=>{const{prefixCls:s}=h.useContext(Wq),l=`${s}-item-explain`,c=gi(s),[u,d,f]=BY(s,c),p=h.useMemo(()=>f_(s),[s]),m=W4(n),g=W4(r),v=h.useMemo(()=>e!=null?[bL(e,"help",t)]:[].concat(rt(m.map((_,S)=>bL(_,"error","error",S))),rt(g.map((_,S)=>bL(_,"warning","warning",S)))),[e,t,m,g]),y=h.useMemo(()=>{const _={};return v.forEach(({key:S})=>{_[S]=(_[S]||0)+1}),v.map((S,x)=>Object.assign(Object.assign({},S),{key:_[S.key]>1?`${S.key}-fallback-${x}`:S.key}))},[v]),b={};return o&&(b.id=`${o}_help`),u(h.createElement(ia,{motionDeadline:p.motionDeadline,motionName:`${s}-show-help`,visible:!!y.length,onVisibleChanged:a},_=>{const{className:S,style:x}=_;return h.createElement("div",Object.assign({},b,{className:Ce(l,S,f,c,i,d),style:x}),h.createElement(gP,Object.assign({keys:y},f_(s),{motionName:`${s}-show-help-item`,component:!1}),E=>{const{key:C,error:w,errorStatus:O,className:T,style:A}=E;return h.createElement("div",{key:C,className:Ce(T,{[`${l}-${O}`]:O}),style:A},w)}))}))},sft=["parentNode"],lft="form_item";function fx(e){return e===void 0||e===!1?[]:Array.isArray(e)?e:[e]}function Rwe(e,t){if(!e.length)return;const n=e.join("_");return t?`${t}_${n}`:sft.includes(n)?`${lft}_${n}`:n}function Awe(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}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};function yoe(e){return fx(e).join("_")}function _oe(e,t){const n=t.getFieldInstance(e),r=JT(n);if(r)return r;const i=Rwe(fx(e),t.__INTERNAL__.name);if(i)return document.getElementById(i)}function Iwe(e){const[t]=Gq(),n=h.useRef({}),r=h.useMemo(()=>e??Object.assign(Object.assign({},t),{__INTERNAL__:{itemRef:i=>o=>{const a=yoe(i);o?n.current[a]=o:delete n.current[a]}},scrollToField:(i,o={})=>{const{focus:a}=o,s=cft(o,["focus"]),l=_oe(i,r);l&&(ZKe(l,Object.assign({scrollMode:"if-needed",block:"nearest"},s)),a&&r.focusField(i))},focusField:i=>{var o,a;const s=r.getFieldInstance(i);typeof(s==null?void 0:s.focus)=="function"?s.focus():(a=(o=_oe(i,r))===null||o===void 0?void 0:o.focus)===null||a===void 0||a.call(o)},getFieldInstance:i=>{const o=yoe(i);return n.current[o]}}),[e,t]);return[r]}var uft=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);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 dft=(e,t)=>{const n=h.useContext(Yo),{getPrefixCls:r,direction:i,requiredMark:o,colon:a,scrollToFirstError:s,className:l,style:c}=Vi("form"),{prefixCls:u,className:d,rootClassName:f,size:p,disabled:m=n,form:g,colon:v,labelAlign:y,labelWrap:b,labelCol:_,wrapperCol:S,hideRequiredMark:x,layout:E="horizontal",scrollToFirstError:C,requiredMark:w,onFinishFailed:O,name:T,style:A,feedbackIcons:I,variant:N}=e,D=uft(e,["prefixCls","className","rootClassName","size","disabled","form","colon","labelAlign","labelWrap","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","requiredMark","onFinishFailed","name","style","feedbackIcons","variant"]),M=mo(p),k=h.useContext(s_e),P=h.useMemo(()=>w!==void 0?w:x?!1:o!==void 0?o:!0,[x,w,o]),B=v??a,G=r("form",u),L=gi(G),[W,j,H]=BY(G,L),X=Ce(G,`${G}-${E}`,{[`${G}-hide-required-mark`]:P===!1,[`${G}-rtl`]:i==="rtl",[`${G}-${M}`]:M},H,L,j,l,d,f),[Q]=Iwe(g),{__INTERNAL__:ue}=Q;ue.name=T;const ee=h.useMemo(()=>({name:T,labelAlign:y,labelCol:_,labelWrap:b,wrapperCol:S,vertical:E==="vertical",colon:B,requiredMark:P,itemRef:ue.itemRef,form:Q,feedbackIcons:I}),[T,y,_,S,E,B,P,Q,I]),K=h.useRef(null);h.useImperativeHandle(t,()=>{var oe;return Object.assign(Object.assign({},Q),{nativeElement:(oe=K.current)===null||oe===void 0?void 0:oe.nativeElement})});const se=(oe,ne)=>{if(oe){let he={block:"nearest"};typeof oe=="object"&&(he=Object.assign(Object.assign({},he),oe)),Q.scrollToField(ne,he)}},le=oe=>{if(O==null||O(oe),oe.errorFields.length){const ne=oe.errorFields[0].name;if(C!==void 0){se(C,ne);return}s!==void 0&&se(s,ne)}};return W(h.createElement(FSe.Provider,{value:N},h.createElement(wq,{disabled:m},h.createElement(F1.Provider,{value:M},h.createElement($Se,{validateMessages:k},h.createElement(ah.Provider,{value:ee},h.createElement(hS,Object.assign({id:T},D,{name:T,onFinishFailed:le,form:Q,ref:K,style:Object.assign(Object.assign({},c),A),className:X}))))))))},fft=h.forwardRef(dft);function pft(e){if(typeof e=="function")return e;const t=Do(e);return t.length<=1?t[0]:t}const Nwe=()=>{const{status:e,errors:t=[],warnings:n=[]}=h.useContext(oa);return{status:e,errors:t,warnings:n}};Nwe.Context=oa;function hft(e){const[t,n]=h.useState(e),r=h.useRef(null),i=h.useRef([]),o=h.useRef(!1);h.useEffect(()=>(o.current=!1,()=>{o.current=!0,tr.cancel(r.current),r.current=null}),[]);function a(s){o.current||(r.current===null&&(i.current=[],r.current=tr(()=>{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 mft(){const{itemRef:e}=h.useContext(ah),t=h.useRef({});function n(r,i){const o=i&&typeof i=="object"&&Rg(i),a=r.join("_");return(t.current.name!==a||t.current.originRef!==o)&&(t.current.name=a,t.current.originRef=o,t.current.ref=aa(e(r),o)),t.current.ref}return n}const gft=e=>{const{formItemCls:t}=e;return{"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)":{[`${t}-control`]:{display:"flex"}}}},vft=uS(["Form","item-item"],(e,{rootPrefixCls:t})=>{const n=Twe(e,t);return[gft(n)]});var bft=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const yft=24,_ft=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:p,label:m}=e,g=`${t}-item`,v=h.useContext(ah),y=h.useMemo(()=>{let D=Object.assign({},i||v.wrapperCol||{});return m===null&&!r&&!i&&v.labelCol&&[void 0,"xs","sm","md","lg","xl","xxl"].forEach(k=>{const P=k?[k]:[],B=No(v.labelCol,P),G=typeof B=="object"?B:{},L=No(D,P),W=typeof L=="object"?L:{};"span"in G&&!("offset"in W)&&G.span<yft&&(D=ta(D,[].concat(P,["offset"]),G.span))}),D},[i,v]),b=Ce(`${g}-control`,y.className),_=h.useMemo(()=>{const{labelCol:D,wrapperCol:M}=v;return bft(v,["labelCol","wrapperCol"])},[v]),S=h.useRef(null),[x,E]=h.useState(0);er(()=>{c&&S.current?E(S.current.clientHeight):E(0)},[c]);const C=h.createElement("div",{className:`${g}-control-input`},h.createElement("div",{className:`${g}-control-input-content`},o)),w=h.useMemo(()=>({prefixCls:t,status:n}),[t,n]),O=f!==null||a.length||s.length?h.createElement(Wq.Provider,{value:w},h.createElement(Owe,{fieldId:d,errors:a,warnings:s,help:u,helpStatus:n,className:`${g}-explain-connected`,onVisibleChanged:p})):null,T={};d&&(T.id=`${d}_extra`);const A=c?h.createElement("div",Object.assign({},T,{className:`${g}-extra`,ref:S}),c):null,I=O||A?h.createElement("div",{className:`${g}-additional`,style:f?{minHeight:f+x}:{}},O,A):null,N=l&&l.mark==="pro_table_render"&&l.render?l.render(e,{input:C,errorList:O,extra:A}):h.createElement(h.Fragment,null,C,I);return h.createElement(ah.Provider,{value:_},h.createElement(j1,Object.assign({},y,{className:b}),N),h.createElement(vft,{prefixCls:t}))};var Sft={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"},Eft=function(t,n){return h.createElement(Mn,Xe({},t,{ref:n,icon:Sft}))},Cft=h.forwardRef(Eft),xft=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);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=({prefixCls:e,label:t,htmlFor:n,labelCol:r,labelAlign:i,colon:o,required:a,requiredMark:s,tooltip:l,vertical:c})=>{var u;const[d]=Ma("Form"),{labelAlign:f,labelCol:p,labelWrap:m,colon:g}=h.useContext(ah);if(!t)return null;const v=r||p||{},y=i||f,b=`${e}-item-label`,_=Ce(b,y==="left"&&`${b}-left`,v.className,{[`${b}-wrap`]:!!m});let S=t;const x=o===!0||g!==!1&&o!==!1;x&&!c&&typeof t=="string"&&t.trim()&&(S=t.replace(/[:|]\s*$/,""));const C=Qdt(l);if(C){const{icon:N=h.createElement(Cft,null)}=C,D=xft(C,["icon"]),M=h.createElement(Na,Object.assign({},D),h.cloneElement(N,{className:`${e}-item-tooltip`,title:"",onClick:k=>{k.preventDefault()},tabIndex:null}));S=h.createElement(h.Fragment,null,S,M)}const w=s==="optional",O=typeof s=="function",T=s===!1;O?S=s(S,{required:!!a}):w&&!a&&(S=h.createElement(h.Fragment,null,S,h.createElement("span",{className:`${e}-item-optional`,title:""},(d==null?void 0:d.optional)||((u=gu.Form)===null||u===void 0?void 0:u.optional))));let A;T?A="hidden":(w||O)&&(A="optional");const I=Ce({[`${e}-item-required`]:a,[`${e}-item-required-mark-${A}`]:A,[`${e}-item-no-colon`]:!x});return h.createElement(j1,Object.assign({},v,{className:_}),h.createElement("label",{htmlFor:n,className:I,title:typeof t=="string"?t:""},S))},Tft={success:vv,warning:Ag,error:qf,validating:Td};function Mwe({children:e,errors:t,warnings:n,hasFeedback:r,validateStatus:i,prefixCls:o,meta:a,noStyle:s}){const l=`${o}-item`,{feedbackIcons:c}=h.useContext(ah),u=Awe(t,n,a,null,!!r,i),{isFormItemInput:d,status:f,hasFeedback:p,feedbackIcon:m}=h.useContext(oa),g=h.useMemo(()=>{var v;let y;if(r){const _=r!==!0&&r.icons||c,S=u&&((v=_==null?void 0:_({status:u,errors:t,warnings:n}))===null||v===void 0?void 0:v[u]),x=u&&Tft[u];y=S!==!1&&x?h.createElement("span",{className:Ce(`${l}-feedback-icon`,`${l}-feedback-icon-${u}`)},S||h.createElement(x,null)):null}const b={status:u||"",errors:t,warnings:n,hasFeedback:!!r,feedbackIcon:y,isFormItemInput:!0};return s&&(b.status=(u??f)||"",b.isFormItemInput=d,b.hasFeedback=!!(r??p),b.feedbackIcon=r!==void 0?b.feedbackIcon:m),b},[u,r,s,d,f]);return h.createElement(oa.Provider,{value:g},e)}var Oft=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};function Rft(e){const{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:p,required:m,isRequired:g,onSubItemMetaChange:v,layout:y}=e,b=Oft(e,["prefixCls","className","rootClassName","style","help","errors","warnings","validateStatus","meta","hasFeedback","hidden","children","fieldId","required","isRequired","onSubItemMetaChange","layout"]),_=`${t}-item`,{requiredMark:S,vertical:x}=h.useContext(ah),E=x||y==="vertical",C=h.useRef(null),w=W4(a),O=W4(s),T=o!=null,A=!!(T||a.length||s.length),I=!!C.current&&fS(C.current),[N,D]=h.useState(null);er(()=>{if(A&&C.current){const G=getComputedStyle(C.current);D(parseInt(G.marginBottom,10))}},[A,I]);const M=G=>{G||D(null)},P=((G=!1)=>{const L=G?w:c.errors,W=G?O:c.warnings;return Awe(L,W,c,"",!!u,l)})(),B=Ce(_,n,r,{[`${_}-with-help`]:T||w.length||O.length,[`${_}-has-feedback`]:P&&u,[`${_}-has-success`]:P==="success",[`${_}-has-warning`]:P==="warning",[`${_}-has-error`]:P==="error",[`${_}-is-validating`]:P==="validating",[`${_}-hidden`]:d,[`${_}-${y}`]:y});return h.createElement("div",{className:B,style:i,ref:C},h.createElement(S2,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"])),h.createElement(wft,Object.assign({htmlFor:p},e,{requiredMark:S,required:m??g,prefixCls:t,vertical:E})),h.createElement(_ft,Object.assign({},e,c,{errors:w,warnings:O,prefixCls:t,status:P,help:o,marginBottom:N,onErrorVisibleChanged:M}),h.createElement(LSe.Provider,{value:v},h.createElement(Mwe,{prefixCls:t,meta:c,errors:c.errors,warnings:c.warnings,hasFeedback:u,validateStatus:P},f)))),!!N&&h.createElement("div",{className:`${_}-margin-offset`,style:{marginBottom:-N}}))}const Aft="__SPLIT__";function Ift(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 Nft=h.memo(({children:e})=>e,(e,t)=>Ift(e.control,t.control)&&e.update===t.update&&e.childProps.length===t.childProps.length&&e.childProps.every((n,r)=>n===t.childProps[r]));function Soe(){return{errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}}function Mft(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:p,hidden:m,help:g,layout:v}=e,{getPrefixCls:y}=h.useContext(cn),{name:b}=h.useContext(ah),_=pft(l),S=typeof _=="function",x=h.useContext(LSe),{validateTrigger:E}=h.useContext(mg),C=p!==void 0?p:E,w=t!=null,O=y("form",o),T=gi(O),[A,I,N]=BY(O,T);Wf();const D=h.useContext(Pw),M=h.useRef(null),[k,P]=hft({}),[B,G]=B1(()=>Soe()),L=ee=>{const K=D==null?void 0:D.getKey(ee.name);if(G(ee.destroy?Soe():ee,!0),n&&g!==!1&&x){let se=ee.name;if(ee.destroy)se=M.current||se;else if(K!==void 0){const[le,oe]=K;se=[le].concat(rt(oe)),M.current=se}x(ee,se)}},W=(ee,K)=>{P(se=>{const le=Object.assign({},se),ne=[].concat(rt(ee.name.slice(0,-1)),rt(K)).join(Aft);return ee.destroy?delete le[ne]:le[ne]=ee,le})},[j,H]=h.useMemo(()=>{const ee=rt(B.errors),K=rt(B.warnings);return Object.values(k).forEach(se=>{ee.push.apply(ee,rt(se.errors||[])),K.push.apply(K,rt(se.warnings||[]))}),[ee,K]},[k,B.errors,B.warnings]),X=mft();function Q(ee,K,se){return n&&!m?h.createElement(Mwe,{prefixCls:O,hasFeedback:e.hasFeedback,validateStatus:e.validateStatus,meta:B,errors:j,warnings:H,noStyle:!0},ee):h.createElement(Rft,Object.assign({key:"row"},e,{className:Ce(r,N,T,I),prefixCls:O,fieldId:K,isRequired:se,errors:j,warnings:H,meta:B,onSubItemMetaChange:W,layout:v}),ee)}if(!w&&!S&&!i)return A(Q(_));let ue={};return typeof u=="string"?ue.label=u:t&&(ue.label=String(t)),d&&(ue=Object.assign(Object.assign({},ue),d)),A(h.createElement(Vq,Object.assign({},e,{messageVariables:ue,trigger:f,validateTrigger:C,onMetaChange:L}),(ee,K,se)=>{const le=fx(t).length&&K?K.name:[],oe=Rwe(le,b),ne=c!==void 0?c:!!(s!=null&&s.some(ce=>{if(ce&&typeof ce=="object"&&ce.required&&!ce.warningOnly)return!0;if(typeof ce=="function"){const re=ce(se);return(re==null?void 0:re.required)&&!(re!=null&&re.warningOnly)}return!1})),he=Object.assign({},ee);let me=null;if(Array.isArray(_)&&w)me=_;else if(!(S&&(!(a||i)||w))){if(!(i&&!S&&!w))if(h.isValidElement(_)){const ce=Object.assign(Object.assign({},_.props),he);if(ce.id||(ce.id=oe),g||j.length>0||H.length>0||e.extra){const be=[];(g||j.length>0)&&be.push(`${oe}_help`),e.extra&&be.push(`${oe}_extra`),ce["aria-describedby"]=be.join(" ")}j.length>0&&(ce["aria-invalid"]="true"),ne&&(ce["aria-required"]="true"),Cd(_)&&(ce.ref=X(le,_)),new Set([].concat(rt(fx(f)),rt(fx(C)))).forEach(be=>{ce[be]=(...xe)=>{var we,de,Ee,Ne,Te;(Ee=he[be])===null||Ee===void 0||(we=Ee).call.apply(we,[he].concat(xe)),(Te=(Ne=_.props)[be])===null||Te===void 0||(de=Te).call.apply(de,[Ne].concat(xe))}});const ve=[ce["aria-required"],ce["aria-invalid"],ce["aria-describedby"]];me=h.createElement(Nft,{control:he,update:_,childProps:ve},wo(_,ce))}else S&&(a||i)&&!w?me=_(se):me=_}return Q(me,oe,ne)}))}const kwe=Mft;kwe.useStatus=Nwe;var kft=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);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 Pft=e=>{var{prefixCls:t,children:n}=e,r=kft(e,["prefixCls","children"]);const{getPrefixCls:i}=h.useContext(cn),o=i("form",t),a=h.useMemo(()=>({prefixCls:o,status:"error"}),[o]);return h.createElement(MSe,Object.assign({},r),(s,l,c)=>h.createElement(Wq.Provider,{value:a},n(s.map(u=>Object.assign(Object.assign({},u),{fieldKey:u.key})),l,{errors:c.errors,warnings:c.warnings})))};function Dft(){const{form:e}=h.useContext(ah);return e}const ui=fft;ui.Item=kwe;ui.List=Pft;ui.ErrorList=Owe;ui.useForm=Iwe;ui.useFormInstance=Dft;ui.useWatch=DSe;ui.Provider=$Se;ui.create=()=>{};var Lft={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"},$ft=function(t,n){return h.createElement(Mn,Xe({},t,{ref:n,icon:Lft}))},wS=h.forwardRef($ft);function Pwe(){var e=document.documentElement.clientWidth,t=window.innerHeight||document.documentElement.clientHeight;return{width:e,height:t}}function Fft(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 Mm(e,t,n,r){var i=uw.unstable_batchedUpdates?function(a){uw.unstable_batchedUpdates(n,a)}:n;return e!=null&&e.addEventListener&&e.addEventListener(t,i,r),{remove:function(){e!=null&&e.removeEventListener&&e.removeEventListener(t,i,r)}}}var E2=h.createContext(null),Bft=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,p=t.count,m=t.scale,g=t.minScale,v=t.maxScale,y=t.closeIcon,b=t.onActive,_=t.onClose,S=t.onZoomIn,x=t.onZoomOut,E=t.onRotateRight,C=t.onRotateLeft,w=t.onFlipX,O=t.onFlipY,T=t.onReset,A=t.toolbarRender,I=t.zIndex,N=t.image,D=h.useContext(E2),M=s.rotateLeft,k=s.rotateRight,P=s.zoomIn,B=s.zoomOut,G=s.close,L=s.left,W=s.right,j=s.flipX,H=s.flipY,X="".concat(o,"-operations-operation");h.useEffect(function(){var re=function(be){be.keyCode===Ut.ESC&&_()};return n&&window.addEventListener("keydown",re),function(){window.removeEventListener("keydown",re)}},[n]);var Q=function(ve,be){ve.preventDefault(),ve.stopPropagation(),b(be)},ue=h.useCallback(function(re){var ve=re.type,be=re.disabled,xe=re.onClick,we=re.icon;return h.createElement("div",{key:ve,className:Ce(X,"".concat(o,"-operations-operation-").concat(ve),te({},"".concat(o,"-operations-operation-disabled"),!!be)),onClick:xe},we)},[X,o]),ee=c?ue({icon:L,onClick:function(ve){return Q(ve,-1)},type:"prev",disabled:d===0}):void 0,K=c?ue({icon:W,onClick:function(ve){return Q(ve,1)},type:"next",disabled:d===p-1}):void 0,se=ue({icon:H,onClick:O,type:"flipY"}),le=ue({icon:j,onClick:w,type:"flipX"}),oe=ue({icon:M,onClick:C,type:"rotateLeft"}),ne=ue({icon:k,onClick:E,type:"rotateRight"}),he=ue({icon:B,onClick:x,type:"zoomOut",disabled:m<=g}),me=ue({icon:P,onClick:S,type:"zoomIn",disabled:m===v}),ce=h.createElement("div",{className:"".concat(o,"-operations")},se,le,oe,ne,he,me);return h.createElement(ia,{visible:n,motionName:r},function(re){var ve=re.className,be=re.style;return h.createElement(o2,{open:!0,getContainer:i??document.body},h.createElement("div",{className:Ce("".concat(o,"-operations-wrapper"),ve,a),style:z(z({},be),{},{zIndex:I})},y===null?null:h.createElement("button",{className:"".concat(o,"-close"),onClick:_},y||G),c&&h.createElement(h.Fragment,null,h.createElement("div",{className:Ce("".concat(o,"-switch-left"),te({},"".concat(o,"-switch-left-disabled"),d===0)),onClick:function(we){return Q(we,-1)}},L),h.createElement("div",{className:Ce("".concat(o,"-switch-right"),te({},"".concat(o,"-switch-right-disabled"),d===p-1)),onClick:function(we){return Q(we,1)}},W)),h.createElement("div",{className:"".concat(o,"-footer")},u&&h.createElement("div",{className:"".concat(o,"-progress")},l?l(d+1,p):h.createElement("bdi",null,"".concat(d+1," / ").concat(p))),A?A(ce,z(z({icons:{prevIcon:ee,nextIcon:K,flipYIcon:se,flipXIcon:le,rotateLeftIcon:oe,rotateRightIcon:ne,zoomOutIcon:he,zoomInIcon:me},actions:{onActive:b,onFlipY:O,onFlipX:w,onRotateLeft:C,onRotateRight:E,onZoomOut:x,onZoomIn:S,onReset:T,onClose:_},transform:f},D?{current:d,total:p}:{}),{},{image:N})):ce)))})},RR={x:0,y:0,rotate:0,scale:1,flipX:!1,flipY:!1};function Hft(e,t,n,r){var i=h.useRef(null),o=h.useRef([]),a=h.useState(RR),s=Re(a,2),l=s[0],c=s[1],u=function(m){c(RR),Bl(RR,l)||r==null||r({transform:RR,action:m})},d=function(m,g){i.current===null&&(o.current=[],i.current=tr(function(){c(function(v){var y=v;return o.current.forEach(function(b){y=z(z({},y),b)}),i.current=null,r==null||r({transform:y,action:g}),y})})),o.current.push(z(z({},l),m))},f=function(m,g,v,y,b){var _=e.current,S=_.width,x=_.height,E=_.offsetWidth,C=_.offsetHeight,w=_.offsetLeft,O=_.offsetTop,T=m,A=l.scale*m;A>n?(A=n,T=n/l.scale):A<t&&(A=b?A:t,T=A/l.scale);var I=v??innerWidth/2,N=y??innerHeight/2,D=T-1,M=D*S*.5,k=D*x*.5,P=D*(I-l.x-w),B=D*(N-l.y-O),G=l.x-(P-M),L=l.y-(B-k);if(m<1&&A===1){var W=E*A,j=C*A,H=Pwe(),X=H.width,Q=H.height;W<=X&&j<=Q&&(G=0,L=0)}d({x:G,y:L,scale:A},g)};return{transform:l,resetTransform:u,updateTransform:d,dispatchZoomChange:f}}function Eoe(e,t,n,r){var i=t+n,o=(n-r)/2;if(n>r){if(t>0)return te({},e,o);if(t<0&&i<r)return te({},e,-o)}else if(t<0||i>r)return te({},e,t<0?o:-o);return{}}function Dwe(e,t,n,r){var i=Pwe(),o=i.width,a=i.height,s=null;return e<=o&&t<=a?s={x:0,y:0}:(e>o||t>a)&&(s=z(z({},Eoe("x",n,e,o)),Eoe("y",r,t,a))),s}var ny=1,jft=1;function Uft(e,t,n,r,i,o,a){var s=i.rotate,l=i.scale,c=i.x,u=i.y,d=h.useState(!1),f=Re(d,2),p=f[0],m=f[1],g=h.useRef({diffX:0,diffY:0,transformX:0,transformY:0}),v=function(x){!t||x.button!==0||(x.preventDefault(),x.stopPropagation(),g.current={diffX:x.pageX-c,diffY:x.pageY-u,transformX:c,transformY:u},m(!0))},y=function(x){n&&p&&o({x:x.pageX-g.current.diffX,y:x.pageY-g.current.diffY},"move")},b=function(){if(n&&p){m(!1);var x=g.current,E=x.transformX,C=x.transformY,w=c!==E&&u!==C;if(!w)return;var O=e.current.offsetWidth*l,T=e.current.offsetHeight*l,A=e.current.getBoundingClientRect(),I=A.left,N=A.top,D=s%180!==0,M=Dwe(D?T:O,D?O:T,I,N);M&&o(z({},M),"dragRebound")}},_=function(x){if(!(!n||x.deltaY==0)){var E=Math.abs(x.deltaY/100),C=Math.min(E,jft),w=ny+C*r;x.deltaY>0&&(w=ny/w),a(w,"wheel",x.clientX,x.clientY)}};return h.useEffect(function(){var S,x,E,C;if(t){E=Mm(window,"mouseup",b,!1),C=Mm(window,"mousemove",y,!1);try{window.top!==window.self&&(S=Mm(window.top,"mouseup",b,!1),x=Mm(window.top,"mousemove",y,!1))}catch{}}return function(){var w,O,T,A;(w=E)===null||w===void 0||w.remove(),(O=C)===null||O===void 0||O.remove(),(T=S)===null||T===void 0||T.remove(),(A=x)===null||A===void 0||A.remove()}},[n,p,c,u,s,t]),{isMoving:p,onMouseDown:v,onMouseMove:y,onMouseUp:b,onWheel:_}}function zft(e){return new Promise(function(t){if(!e){t(!1);return}var n=document.createElement("img");n.onerror=function(){return t(!1)},n.onload=function(){return t(!0)},n.src=e})}function Lwe(e){var t=e.src,n=e.isCustomPlaceholder,r=e.fallback,i=h.useState(n?"loading":"normal"),o=Re(i,2),a=o[0],s=o[1],l=h.useRef(!1),c=a==="error";h.useEffect(function(){var p=!0;return zft(t).then(function(m){!m&&p&&s("error")}),function(){p=!1}},[t]),h.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 q4(e,t){var n=e.x-t.x,r=e.y-t.y;return Math.hypot(n,r)}function Vft(e,t,n,r){var i=q4(e,n),o=q4(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 Gft(e,t,n,r,i,o,a){var s=i.rotate,l=i.scale,c=i.x,u=i.y,d=h.useState(!1),f=Re(d,2),p=f[0],m=f[1],g=h.useRef({point1:{x:0,y:0},point2:{x:0,y:0},eventType:"none"}),v=function(x){g.current=z(z({},g.current),x)},y=function(x){if(t){x.stopPropagation(),m(!0);var E=x.touches,C=E===void 0?[]:E;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(x){var E=x.touches,C=E===void 0?[]:E,w=g.current,O=w.point1,T=w.point2,A=w.eventType;if(C.length>1&&A==="touchZoom"){var I={x:C[0].clientX,y:C[0].clientY},N={x:C[1].clientX,y:C[1].clientY},D=Vft(O,T,I,N),M=Re(D,2),k=M[0],P=M[1],B=q4(I,N)/q4(O,T);a(B,"touchZoom",k,P,!0),v({point1:I,point2:N,eventType:"touchZoom"})}else A==="move"&&(o({x:C[0].clientX-O.x,y:C[0].clientY-O.y},"move"),v({eventType:"move"}))},_=function(){if(n){if(p&&m(!1),v({eventType:"none"}),r>l)return o({x:0,y:0,scale:r},"touchZoom");var x=e.current.offsetWidth*l,E=e.current.offsetHeight*l,C=e.current.getBoundingClientRect(),w=C.left,O=C.top,T=s%180!==0,A=Dwe(T?E:x,T?x:E,w,O);A&&o(z({},A),"dragRebound")}};return h.useEffect(function(){var S;return n&&t&&(S=Mm(window,"touchmove",function(x){return x.preventDefault()},{passive:!1})),function(){var x;(x=S)===null||x===void 0||x.remove()}},[n,t]),{isTouching:p,onTouchStart:y,onTouchMove:b,onTouchEnd:_}}var Wft=["fallback","src","imgRef"],qft=["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"],Yft=function(t){var n=t.fallback,r=t.src,i=t.imgRef,o=kt(t,Wft),a=Lwe({src:r,fallback:n}),s=Re(a,2),l=s[0],c=s[1];return pe.createElement("img",Xe({ref:function(d){i.current=d,l(d)}},o,c))},$we=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,p=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,S=t.countRender,x=t.scaleStep,E=x===void 0?.5:x,C=t.minScale,w=C===void 0?1:C,O=t.maxScale,T=O===void 0?50:O,A=t.transitionName,I=A===void 0?"zoom":A,N=t.maskTransitionName,D=N===void 0?"fade":N,M=t.imageRender,k=t.imgCommonProps,P=t.toolbarRender,B=t.onTransform,G=t.onChange,L=kt(t,qft),W=h.useRef(),j=h.useContext(E2),H=j&&_>1,X=j&&_>=1,Q=h.useState(!0),ue=Re(Q,2),ee=ue[0],K=ue[1],se=Hft(W,w,T,B),le=se.transform,oe=se.resetTransform,ne=se.updateTransform,he=se.dispatchZoomChange,me=Uft(W,l,u,E,le,ne,he),ce=me.isMoving,re=me.onMouseDown,ve=me.onWheel,be=Gft(W,l,u,w,le,ne,he),xe=be.isTouching,we=be.onTouchStart,de=be.onTouchMove,Ee=be.onTouchEnd,Ne=le.rotate,Te=le.scale,Ve=Ce(te({},"".concat(n,"-moving"),ce));h.useEffect(function(){ee||K(!0)},[ee]);var q=function(){oe("close")},U=function(){he(ny+E,"zoomIn")},Y=function(){he(ny/(ny+E),"zoomOut")},ae=function(){ne({rotate:Ne+90},"rotateRight")},ye=function(){ne({rotate:Ne-90},"rotateLeft")},fe=function(){ne({flipX:!le.flipX},"flipX")},Ae=function(){ne({flipY:!le.flipY},"flipY")},We=function(){oe("reset")},ie=function(Ge){var Nt=y+Ge;!Number.isInteger(Nt)||Nt<0||Nt>_-1||(K(!1),oe(Ge<0?"prev":"next"),G==null||G(Nt,y))},Be=function(Ge){!u||!H||(Ge.keyCode===Ut.LEFT?ie(-1):Ge.keyCode===Ut.RIGHT&&ie(1))},Fe=function(Ge){u&&(Te!==1?ne({x:0,y:0,scale:1},"doubleClick"):he(ny+E,"doubleClick",Ge.clientX,Ge.clientY))};h.useEffect(function(){var tt=Mm(window,"keydown",Be,!1);return function(){tt.remove()}},[u,H,y]);var Pe=pe.createElement(Yft,Xe({},k,{width:t.width,height:t.height,imgRef:W,className:"".concat(n,"-img"),alt:i,style:{transform:"translate3d(".concat(le.x,"px, ").concat(le.y,"px, 0) scale3d(").concat(le.flipX?"-":"").concat(Te,", ").concat(le.flipY?"-":"").concat(Te,", 1) rotate(").concat(Ne,"deg)"),transitionDuration:(!ee||xe)&&"0s"},fallback:a,src:r,onWheel:ve,onMouseDown:re,onDoubleClick:Fe,onTouchStart:we,onTouchMove:de,onTouchEnd:Ee,onTouchCancel:Ee})),Ke=z({url:r,alt:i},o);return pe.createElement(pe.Fragment,null,pe.createElement(Uq,Xe({transitionName:I,maskTransitionName:D,closable:!1,keyboard:!0,prefixCls:n,onClose:c,visible:u,classNames:{wrapper:Ve},rootClassName:p,getContainer:g},L,{afterClose:q}),pe.createElement("div",{className:"".concat(n,"-img-wrapper")},M?M(Pe,z({transform:le,image:Ke},j?{current:y}:{})):Pe)),pe.createElement(Bft,{visible:u,transform:le,maskTransitionName:D,closeIcon:m,getContainer:g,prefixCls:n,rootClassName:p,icons:f,countRender:S,showSwitch:H,showProgress:X,current:y,count:_,scale:Te,minScale:w,maxScale:T,toolbarRender:P,onActive:ie,onZoomIn:U,onZoomOut:Y,onRotateRight:ae,onRotateLeft:ye,onFlipX:fe,onFlipY:Ae,onClose:c,onReset:We,zIndex:L.zIndex!==void 0?L.zIndex+1:void 0,image:Ke}))},ij=["crossOrigin","decoding","draggable","loading","referrerPolicy","sizes","srcSet","useMap","alt"];function Kft(e){var t=h.useState({}),n=Re(t,2),r=n[0],i=n[1],o=h.useCallback(function(s,l){return i(function(c){return z(z({},c),{},te({},s,l))}),function(){i(function(c){var u=z({},c);return delete u[s],u})}},[]),a=h.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(rt(ij)).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 Qft=["visible","onVisibleChange","getContainer","current","movable","minScale","maxScale","countRender","closeIcon","onChange","onTransform","toolbarRender","imageRender"],Xft=["src"],Zft=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=qt(c)==="object"?c:{},f=d.visible,p=d.onVisibleChange,m=d.getContainer,g=d.current,v=d.movable,y=d.minScale,b=d.maxScale,_=d.countRender,S=d.closeIcon,x=d.onChange,E=d.onTransform,C=d.toolbarRender,w=d.imageRender,O=kt(d,Qft),T=Kft(l),A=Re(T,3),I=A[0],N=A[1],D=A[2],M=Pn(0,{value:g}),k=Re(M,2),P=k[0],B=k[1],G=h.useState(!1),L=Re(G,2),W=L[0],j=L[1],H=((n=I[P])===null||n===void 0?void 0:n.data)||{},X=H.src,Q=kt(H,Xft),ue=Pn(!!f,{value:f,onChange:function(xe,we){p==null||p(xe,we,P)}}),ee=Re(ue,2),K=ee[0],se=ee[1],le=h.useState(null),oe=Re(le,2),ne=oe[0],he=oe[1],me=h.useCallback(function(be,xe,we,de){var Ee=D?I.findIndex(function(Ne){return Ne.data.src===xe}):I.findIndex(function(Ne){return Ne.id===be});B(Ee<0?0:Ee),se(!0),he({x:we,y:de}),j(!0)},[I,D]);h.useEffect(function(){K?W||B(0):j(!1)},[K]);var ce=function(xe,we){B(xe),x==null||x(xe,we)},re=function(){se(!1),he(null)},ve=h.useMemo(function(){return{register:N,onPreview:me}},[N,me]);return h.createElement(E2.Provider,{value:ve},o,h.createElement($we,Xe({"aria-hidden":!K,movable:v,visible:K,prefixCls:i,closeIcon:S,onClose:re,mousePosition:ne,imgCommonProps:Q,src:X,fallback:u,icons:s,minScale:y,maxScale:b,getContainer:m,current:P,count:I.length,countRender:_,onTransform:E,toolbarRender:C,imageRender:w,onChange:ce},O)))},Coe=0;function Jft(e,t){var n=h.useState(function(){return Coe+=1,String(Coe)}),r=Re(n,1),i=r[0],o=h.useContext(E2),a={data:t,canPreview:e};return h.useEffect(function(){if(o)return o.register(i,a)},[]),h.useEffect(function(){o&&o.register(i,a)},[e,t]),i}var ept=["src","alt","onPreviewClose","prefixCls","previewPrefixCls","placeholder","fallback","width","height","style","preview","className","onClick","onError","wrapperClassName","wrapperStyle","rootClassName"],tpt=["src","visible","onVisibleChange","getContainer","mask","maskClassName","movable","icons","scaleStep","minScale","maxScale","imageRender","toolbarRender"],HY=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,p=t.style,m=t.preview,g=m===void 0?!0:m,v=t.className,y=t.onClick,b=t.onError,_=t.wrapperClassName,S=t.wrapperStyle,x=t.rootClassName,E=kt(t,ept),C=c&&c!==!0,w=qt(g)==="object"?g:{},O=w.src,T=w.visible,A=T===void 0?void 0:T,I=w.onVisibleChange,N=I===void 0?i:I,D=w.getContainer,M=D===void 0?void 0:D,k=w.mask,P=w.maskClassName,B=w.movable,G=w.icons,L=w.scaleStep,W=w.minScale,j=w.maxScale,H=w.imageRender,X=w.toolbarRender,Q=kt(w,tpt),ue=O??n,ee=Pn(!!A,{value:A,onChange:N}),K=Re(ee,2),se=K[0],le=K[1],oe=Lwe({src:n,isCustomPlaceholder:C,fallback:u}),ne=Re(oe,3),he=ne[0],me=ne[1],ce=ne[2],re=h.useState(null),ve=Re(re,2),be=ve[0],xe=ve[1],we=h.useContext(E2),de=!!g,Ee=function(){le(!1),xe(null)},Ne=Ce(a,_,x,te({},"".concat(a,"-error"),ce==="error")),Te=h.useMemo(function(){var Y={};return ij.forEach(function(ae){t[ae]!==void 0&&(Y[ae]=t[ae])}),Y},ij.map(function(Y){return t[Y]})),Ve=h.useMemo(function(){return z(z({},Te),{},{src:ue})},[ue,Te]),q=Jft(de,Ve),U=function(ae){var ye=Fft(ae.target),fe=ye.left,Ae=ye.top;we?we.onPreview(q,ue,fe,Ae):(xe({x:fe,y:Ae}),le(!0)),y==null||y(ae)};return h.createElement(h.Fragment,null,h.createElement("div",Xe({},E,{className:Ne,onClick:de?U:y,style:z({width:d,height:f},S)}),h.createElement("img",Xe({},Te,{className:Ce("".concat(a,"-img"),te({},"".concat(a,"-img-placeholder"),c===!0),v),style:z({height:f},p),ref:he},me,{width:d,height:f,onError:b})),ce==="loading"&&h.createElement("div",{"aria-hidden":"true",className:"".concat(a,"-placeholder")},c),k&&de&&h.createElement("div",{className:Ce("".concat(a,"-mask"),P),style:{display:(p==null?void 0:p.display)==="none"?"none":void 0}},k)),!we&&de&&h.createElement($we,Xe({"aria-hidden":!se,visible:se,prefixCls:l,onClose:Ee,mousePosition:be,src:ue,alt:r,imageInfo:{width:d,height:f},fallback:u,getContainer:M,icons:G,movable:B,scaleStep:L,minScale:W,maxScale:j,rootClassName:x,imageRender:H,imgCommonProps:Te,toolbarRender:X},Q)))};HY.PreviewGroup=Zft;var npt={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"},rpt=function(t,n){return h.createElement(Mn,Xe({},t,{ref:n,icon:npt}))},ipt=h.forwardRef(rpt),opt={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"},apt=function(t,n){return h.createElement(Mn,Xe({},t,{ref:n,icon:opt}))},spt=h.forwardRef(apt),lpt={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"},cpt=function(t,n){return h.createElement(Mn,Xe({},t,{ref:n,icon:lpt}))},xoe=h.forwardRef(cpt),upt={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"},dpt=function(t,n){return h.createElement(Mn,Xe({},t,{ref:n,icon:upt}))},fpt=h.forwardRef(dpt),ppt={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"},hpt=function(t,n){return h.createElement(Mn,Xe({},t,{ref:n,icon:ppt}))},mpt=h.forwardRef(hpt);const oj=e=>({position:e||"absolute",inset:0}),gpt=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 or("#000").setA(.5).toRgbString(),cursor:"pointer",opacity:0,transition:`opacity ${n}`,[`.${o}-mask-info`]:Object.assign(Object.assign({},Hl),{padding:`0 ${Ie(r)}`,[t]:{marginInlineEnd:i,svg:{verticalAlign:"baseline"}}})}},vpt=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 or(n).setA(.1),p=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:p.toRgbString()},[`& > ${u}`]:{fontSize:e.previewOperationSize}},[`${t}-operations`]:{display:"flex",alignItems:"center",padding:`0 ${Ie(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}}}}},bpt=e=>{const{modalMaskBg:t,iconCls:n,previewOperationColorDisabled:r,previewCls:i,zIndexPopup:o,motionDurationSlow:a}=e,s=new or(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}}},ypt=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({},oj()),{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({},oj()),{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()},"&":[vpt(e),bpt(e)]}]},_pt=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({},gpt(e)),[`${t}-mask:hover`]:{opacity:1},[`${t}-placeholder`]:Object.assign({},oj())}}},Spt=e=>{const{previewCls:t}=e;return{[`${t}-root`]:pS(e,"zoom"),"&":$q(e,!0)}},Ept=e=>({zIndexPopup:e.zIndexPopupBase+80,previewOperationColor:new or(e.colorTextLightSolid).setA(.65).toRgbString(),previewOperationHoverColor:new or(e.colorTextLightSolid).setA(.85).toRgbString(),previewOperationColorDisabled:new or(e.colorTextLightSolid).setA(.25).toRgbString(),previewOperationSize:e.fontSizeIcon*1.5}),Fwe=ir("Image",e=>{const t=`${e.componentCls}-preview`,n=Un(e,{previewCls:t,modalMaskBg:new or("#000").setA(.45).toRgbString(),imagePreviewSwitchSize:e.controlHeightLG});return[_pt(n),ypt(n),VSe(Un(n,{componentCls:t})),Spt(n)]},Ept);var Cpt=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const Bwe={rotateLeft:h.createElement(ipt,null),rotateRight:h.createElement(spt,null),zoomIn:h.createElement(fpt,null),zoomOut:h.createElement(mpt,null),close:h.createElement(Yf,null),left:h.createElement(sh,null),right:h.createElement(Rd,null),flipX:h.createElement(xoe,null),flipY:h.createElement(xoe,{rotate:90})},xpt=e=>{var{previewPrefixCls:t,preview:n}=e,r=Cpt(e,["previewPrefixCls","preview"]);const{getPrefixCls:i,direction:o}=h.useContext(cn),a=i("image",t),s=`${a}-preview`,l=i(),c=gi(a),[u,d,f]=Fwe(a,c),[p]=Ou("ImagePreview",typeof n=="object"?n.zIndex:void 0),m=h.useMemo(()=>Object.assign(Object.assign({},Bwe),{left:o==="rtl"?h.createElement(Rd,null):h.createElement(sh,null),right:o==="rtl"?h.createElement(sh,null):h.createElement(Rd,null)}),[o]),g=h.useMemo(()=>{var v;if(n===!1)return n;const y=typeof n=="object"?n:{},b=Ce(d,f,c,(v=y.rootClassName)!==null&&v!==void 0?v:"");return Object.assign(Object.assign({},y),{transitionName:Va(l,"zoom",y.transitionName),maskTransitionName:Va(l,"fade",y.maskTransitionName),rootClassName:b,zIndex:p})},[n]);return u(h.createElement(HY.PreviewGroup,Object.assign({preview:g,previewPrefixCls:s,icons:m},r)))};var woe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);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 Hwe=e=>{const{prefixCls:t,preview:n,className:r,rootClassName:i,style:o}=e,a=woe(e,["prefixCls","preview","className","rootClassName","style"]),{getPrefixCls:s,getPopupContainer:l,className:c,style:u,preview:d}=Vi("image"),[f]=Ma("Image"),p=s("image",t),m=s(),g=gi(p),[v,y,b]=Fwe(p,g),_=Ce(i,y,b,g),S=Ce(r,y,c),[x]=Ou("ImagePreview",typeof n=="object"?n.zIndex:void 0),E=h.useMemo(()=>{if(n===!1)return n;const w=typeof n=="object"?n:{},{getContainer:O,closeIcon:T,rootClassName:A,destroyOnClose:I,destroyOnHidden:N}=w,D=woe(w,["getContainer","closeIcon","rootClassName","destroyOnClose","destroyOnHidden"]);return Object.assign(Object.assign({mask:h.createElement("div",{className:`${p}-mask-info`},h.createElement(wS,null),f==null?void 0:f.preview),icons:Bwe},D),{destroyOnClose:N??I,rootClassName:Ce(_,A),getContainer:O??l,transitionName:Va(m,"zoom",w.transitionName),maskTransitionName:Va(m,"fade",w.maskTransitionName),zIndex:x,closeIcon:T??(d==null?void 0:d.closeIcon)})},[n,f,d==null?void 0:d.closeIcon]),C=Object.assign(Object.assign({},u),o);return v(h.createElement(HY,Object.assign({prefixCls:p,preview:E,rootClassName:_,className:S,style:C},a)))};Hwe.PreviewGroup=xpt;const wpt=e=>{const{getPrefixCls:t,direction:n}=h.useContext(cn),{prefixCls:r,className:i}=e,o=t("input-group",r),a=t("input"),[s,l,c]=pxe(a),u=Ce(o,c,{[`${o}-lg`]:e.size==="large",[`${o}-sm`]:e.size==="small",[`${o}-compact`]:e.compact,[`${o}-rtl`]:n==="rtl"},l,i),d=h.useContext(oa),f=h.useMemo(()=>Object.assign(Object.assign({},d),{isFormItemInput:!1}),[d]);return s(h.createElement("span",{className:u,style:e.style,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,onFocus:e.onFocus,onBlur:e.onBlur},h.createElement(oa.Provider,{value:f},e.children)))},Tpt=e=>{const{componentCls:t,paddingXS:n}=e;return{[t]:{display:"inline-flex",alignItems:"center",flexWrap:"nowrap",columnGap:n,[`${t}-input-wrapper`]:{position:"relative",[`${t}-mask-icon`]:{position:"absolute",zIndex:"1",top:"50%",right:"50%",transform:"translate(50%, -50%)",pointerEvents:"none"},[`${t}-mask-input`]:{color:"transparent",caretColor:"var(--ant-color-text)"},[`${t}-mask-input[type=number]::-webkit-inner-spin-button`]:{"-webkit-appearance":"none",margin:0},[`${t}-mask-input[type=number]`]:{"-moz-appearance":"textfield"}},"&-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}}}},Opt=ir(["Input","OTP"],e=>{const t=Un(e,Sv(e));return[Tpt(t)]},Ev);var Rpt=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const Apt=h.forwardRef((e,t)=>{const{className:n,value:r,onChange:i,onActiveChange:o,index:a,mask:s}=e,l=Rpt(e,["className","value","onChange","onActiveChange","index","mask"]),{getPrefixCls:c}=h.useContext(cn),u=c("otp"),d=typeof s=="string"?s:r,f=h.useRef(null);h.useImperativeHandle(t,()=>f.current);const p=y=>{i(a,y.target.value)},m=()=>{tr(()=>{var y;const b=(y=f.current)===null||y===void 0?void 0:y.input;document.activeElement===b&&b&&b.select()})},g=y=>{const{key:b,ctrlKey:_,metaKey:S}=y;b==="ArrowLeft"?o(a-1):b==="ArrowRight"?o(a+1):b==="z"&&(_||S)&&y.preventDefault(),m()},v=y=>{y.key==="Backspace"&&!r&&o(a-1),m()};return h.createElement("span",{className:`${u}-input-wrapper`,role:"presentation"},s&&r!==""&&r!==void 0&&h.createElement("span",{className:`${u}-mask-icon`,"aria-hidden":"true"},d),h.createElement(xS,Object.assign({"aria-label":`OTP Input ${a+1}`,type:s===!0?"password":"text"},l,{ref:f,value:r,onInput:p,onFocus:m,onKeyDown:g,onKeyUp:v,onMouseDown:m,onMouseUp:m,className:Ce(n,{[`${u}-mask-input`]:s})})))});var Ipt=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);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 Npt=e=>{const{index:t,prefixCls:n,separator:r}=e,i=typeof r=="function"?r(t):r;return i?h.createElement("span",{className:`${n}-separator`},i):null},Mpt=h.forwardRef((e,t)=>{const{prefixCls:n,length:r=6,size:i,defaultValue:o,value:a,onChange:s,formatter:l,separator:c,variant:u,disabled:d,status:f,autoFocus:p,mask:m,type:g,onInput:v,inputMode:y}=e,b=Ipt(e,["prefixCls","length","size","defaultValue","value","onChange","formatter","separator","variant","disabled","status","autoFocus","mask","type","onInput","inputMode"]),{getPrefixCls:_,direction:S}=h.useContext(cn),x=_("otp",n),E=Oi(b,{aria:!0,data:!0,attr:!0}),[C,w,O]=Opt(x),T=mo(X=>i??X),A=h.useContext(oa),I=yh(A.status,f),N=h.useMemo(()=>Object.assign(Object.assign({},A),{status:I,hasFeedback:!1,feedbackIcon:null}),[A,I]),D=h.useRef(null),M=h.useRef({});h.useImperativeHandle(t,()=>({focus:()=>{var X;(X=M.current[0])===null||X===void 0||X.focus()},blur:()=>{var X;for(let Q=0;Q<r;Q+=1)(X=M.current[Q])===null||X===void 0||X.blur()},nativeElement:D.current}));const k=X=>l?l(X):X,[P,B]=h.useState(()=>AR(k(o||"")));h.useEffect(()=>{a!==void 0&&B(AR(a))},[a]);const G=qn(X=>{B(X),v&&v(X),s&&X.length===r&&X.every(Q=>Q)&&X.some((Q,ue)=>P[ue]!==Q)&&s(X.join(""))}),L=qn((X,Q)=>{let ue=rt(P);for(let K=0;K<X;K+=1)ue[K]||(ue[K]="");Q.length<=1?ue[X]=Q:ue=ue.slice(0,X).concat(AR(Q)),ue=ue.slice(0,r);for(let K=ue.length-1;K>=0&&!ue[K];K-=1)ue.pop();const ee=k(ue.map(K=>K||" ").join(""));return ue=AR(ee).map((K,se)=>K===" "&&!ue[se]?ue[se]:K),ue}),W=(X,Q)=>{var ue;const ee=L(X,Q),K=Math.min(X+Q.length,r-1);K!==X&&ee[X]!==void 0&&((ue=M.current[K])===null||ue===void 0||ue.focus()),G(ee)},j=X=>{var Q;(Q=M.current[X])===null||Q===void 0||Q.focus()},H={variant:u,disabled:d,status:I,mask:m,type:g,inputMode:y};return C(h.createElement("div",Object.assign({},E,{ref:D,className:Ce(x,{[`${x}-sm`]:T==="small",[`${x}-lg`]:T==="large",[`${x}-rtl`]:S==="rtl"},O,w),role:"group"}),h.createElement(oa.Provider,{value:N},Array.from({length:r}).map((X,Q)=>{const ue=`otp-${Q}`,ee=P[Q]||"";return h.createElement(h.Fragment,{key:ue},h.createElement(Apt,Object.assign({ref:K=>{M.current[Q]=K},index:Q,size:T,htmlSize:1,className:`${x}-input`,onChange:W,value:ee,onActiveChange:j,autoFocus:Q===0&&p},H)),Q<r-1&&h.createElement(Npt,{separator:c,index:Q,prefixCls:x}))}))))});var kpt={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"},Ppt=function(t,n){return h.createElement(Mn,Xe({},t,{ref:n,icon:kpt}))},jwe=h.forwardRef(Ppt),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 Lpt=e=>e?h.createElement(wS,null):h.createElement(jwe,null),$pt={click:"onClick",hover:"onMouseOver"},Fpt=h.forwardRef((e,t)=>{const{disabled:n,action:r="click",visibilityToggle:i=!0,iconRender:o=Lpt}=e,a=h.useContext(Yo),s=n??a,l=typeof i=="object"&&i.visible!==void 0,[c,u]=h.useState(()=>l?i.visible:!1),d=h.useRef(null);h.useEffect(()=>{l&&u(i.visible)},[l,i]);const f=nwe(d),p=()=>{var T;if(s)return;c&&f();const A=!c;u(A),typeof i=="object"&&((T=i.onVisibleChange)===null||T===void 0||T.call(i,A))},m=T=>{const A=$pt[r]||"",I=o(c),N={[A]:p,className:`${T}-icon`,key:"passwordIcon",onMouseDown:D=>{D.preventDefault()},onMouseUp:D=>{D.preventDefault()}};return h.cloneElement(h.isValidElement(I)?I:h.createElement("span",null,I),N)},{className:g,prefixCls:v,inputPrefixCls:y,size:b}=e,_=Dpt(e,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:S}=h.useContext(cn),x=S("input",y),E=S("input-password",v),C=i&&m(E),w=Ce(E,g,{[`${E}-${b}`]:!!b}),O=Object.assign(Object.assign({},ur(_,["suffix","iconRender","visibilityToggle"])),{type:c?"text":"password",className:w,prefixCls:x,suffix:C});return b&&(O.size=b),h.createElement(xS,Object.assign({ref:aa(t,d)},O))});var Bpt=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const Hpt=h.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:p,onCompositionEnd:m,variant:g,onPressEnter:v}=e,y=Bpt(e,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd","variant","onPressEnter"]),{getPrefixCls:b,direction:_}=h.useContext(cn),S=h.useRef(!1),x=b("input-search",n),E=b("input",r),{compactSize:C}=Ru(x,_),w=mo(H=>{var X;return(X=o??C)!==null&&X!==void 0?X:H}),O=h.useRef(null),T=H=>{H!=null&&H.target&&H.type==="click"&&d&&d(H.target.value,H,{source:"clear"}),f==null||f(H)},A=H=>{var X;document.activeElement===((X=O.current)===null||X===void 0?void 0:X.input)&&H.preventDefault()},I=H=>{var X,Q;d&&d((Q=(X=O.current)===null||X===void 0?void 0:X.input)===null||Q===void 0?void 0:Q.value,H,{source:"input"})},N=H=>{S.current||c||(v==null||v(H),I(H))},D=typeof s=="boolean"?h.createElement(FP,null):null,M=`${x}-button`;let k;const P=s||{},B=P.type&&P.type.__ANT_BUTTON===!0;B||P.type==="button"?k=wo(P,Object.assign({onMouseDown:A,onClick:H=>{var X,Q;(Q=(X=P==null?void 0:P.props)===null||X===void 0?void 0:X.onClick)===null||Q===void 0||Q.call(X,H),I(H)},key:"enterButton"},B?{className:M,size:w}:{})):k=h.createElement(Dn,{className:M,color:s?"primary":"default",size:w,disabled:u,key:"enterButton",onMouseDown:A,onClick:I,loading:c,icon:D,variant:g==="borderless"||g==="filled"||g==="underlined"?"text":s?"solid":void 0},s),l&&(k=[k,wo(l,{key:"addonAfter"})]);const G=Ce(x,{[`${x}-rtl`]:_==="rtl",[`${x}-${w}`]:!!w,[`${x}-with-button`]:!!s},i),L=H=>{S.current=!0,p==null||p(H)},W=H=>{S.current=!1,m==null||m(H)},j=Object.assign(Object.assign({},y),{className:G,prefixCls:E,type:"search",size:w,variant:g,onPressEnter:N,onCompositionStart:L,onCompositionEnd:W,addonAfter:k,suffix:a,onChange:T,disabled:u});return h.createElement(xS,Object.assign({ref:aa(O,t)},j))});var jpt=`
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;
`,Upt=["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"],yL={},Zl;function zpt(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&&yL[n])return yL[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=Upt.map(function(c){return"".concat(c,":").concat(r.getPropertyValue(c))}).join(";"),l={sizingStyle:s,paddingSize:o,borderSize:a,boxSizing:i};return t&&n&&(yL[n]=l),l}function Vpt(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;Zl||(Zl=document.createElement("textarea"),Zl.setAttribute("tab-index","-1"),Zl.setAttribute("aria-hidden","true"),Zl.setAttribute("name","hiddenTextarea"),document.body.appendChild(Zl)),e.getAttribute("wrap")?Zl.setAttribute("wrap",e.getAttribute("wrap")):Zl.removeAttribute("wrap");var i=zpt(e,t),o=i.paddingSize,a=i.borderSize,s=i.boxSizing,l=i.sizingStyle;Zl.setAttribute("style","".concat(l,";").concat(jpt)),Zl.value=e.value||e.placeholder||"";var c=void 0,u=void 0,d,f=Zl.scrollHeight;if(s==="border-box"?f+=a:s==="content-box"&&(f-=o),n!==null||r!==null){Zl.value=" ";var p=Zl.scrollHeight-o;n!==null&&(c=p*n,s==="border-box"&&(c=c+o+a),f=Math.max(c,f)),r!==null&&(u=p*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 Gpt=["prefixCls","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],_L=0,SL=1,EL=2,Wpt=h.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=kt(n,Gpt),p=Pn(i,{value:o,postState:function(X){return X??""}}),m=Re(p,2),g=m[0],v=m[1],y=function(X){v(X.target.value),d==null||d(X)},b=h.useRef();h.useImperativeHandle(t,function(){return{textArea:b.current}});var _=h.useMemo(function(){return a&&qt(a)==="object"?[a.minRows,a.maxRows]:[]},[a]),S=Re(_,2),x=S[0],E=S[1],C=!!a,w=function(){try{if(document.activeElement===b.current){var X=b.current,Q=X.selectionStart,ue=X.selectionEnd,ee=X.scrollTop;b.current.setSelectionRange(Q,ue),b.current.scrollTop=ee}}catch{}},O=h.useState(EL),T=Re(O,2),A=T[0],I=T[1],N=h.useState(),D=Re(N,2),M=D[0],k=D[1],P=function(){I(_L)};er(function(){C&&P()},[o,x,E,C]),er(function(){if(A===_L)I(SL);else if(A===SL){var H=Vpt(b.current,!1,x,E);I(EL),k(H)}else w()},[A]);var B=h.useRef(),G=function(){tr.cancel(B.current)},L=function(X){A===EL&&(s==null||s(X),a&&(G(),B.current=tr(function(){P()})))};h.useEffect(function(){return G},[]);var W=C?M:null,j=z(z({},c),W);return(A===_L||A===SL)&&(j.overflowY="hidden",j.overflowX="hidden"),h.createElement(Oa,{onResize:L,disabled:!(a||s)},h.createElement("textarea",Xe({},f,{ref:b,style:j,className:Ce(r,l,te({},"".concat(r,"-disabled"),u)),disabled:u,value:g,onChange:y})))}),qpt=["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"],Ypt=pe.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,p=e.prefixCls,m=p===void 0?"rc-textarea":p,g=e.showCount,v=e.count,y=e.className,b=e.style,_=e.disabled,S=e.hidden,x=e.classNames,E=e.styles,C=e.onResize,w=e.onClear,O=e.onPressEnter,T=e.readOnly,A=e.autoSize,I=e.onKeyDown,N=kt(e,qpt),D=Pn(r,{value:i,defaultValue:r}),M=Re(D,2),k=M[0],P=M[1],B=k==null?"":String(k),G=pe.useState(!1),L=Re(G,2),W=L[0],j=L[1],H=pe.useRef(!1),X=pe.useState(null),Q=Re(X,2),ue=Q[0],ee=Q[1],K=h.useRef(null),se=h.useRef(null),le=function(){var ie;return(ie=se.current)===null||ie===void 0?void 0:ie.textArea},oe=function(){le().focus()};h.useImperativeHandle(t,function(){var We;return{resizableTextArea:se.current,focus:oe,blur:function(){le().blur()},nativeElement:((We=K.current)===null||We===void 0?void 0:We.nativeElement)||le()}}),h.useEffect(function(){j(function(We){return!_&&We})},[_]);var ne=pe.useState(null),he=Re(ne,2),me=he[0],ce=he[1];pe.useEffect(function(){if(me){var We;(We=le()).setSelectionRange.apply(We,rt(me))}},[me]);var re=Jxe(v,g),ve=(n=re.max)!==null&&n!==void 0?n:c,be=Number(ve)>0,xe=re.strategy(B),we=!!ve&&xe>ve,de=function(ie,Be){var Fe=Be;!H.current&&re.exceedFormatter&&re.max&&re.strategy(Be)>re.max&&(Fe=re.exceedFormatter(Be,{max:re.max}),Be!==Fe&&ce([le().selectionStart||0,le().selectionEnd||0])),P(Fe),G4(ie.currentTarget,ie,s,Fe)},Ee=function(ie){H.current=!0,u==null||u(ie)},Ne=function(ie){H.current=!1,de(ie,ie.currentTarget.value),d==null||d(ie)},Te=function(ie){de(ie,ie.target.value)},Ve=function(ie){ie.key==="Enter"&&O&&O(ie),I==null||I(ie)},q=function(ie){j(!0),o==null||o(ie)},U=function(ie){j(!1),a==null||a(ie)},Y=function(ie){P(""),oe(),G4(le(),ie,s)},ae=f,ye;re.show&&(re.showFormatter?ye=re.showFormatter({value:B,count:xe,maxLength:ve}):ye="".concat(xe).concat(be?" / ".concat(ve):""),ae=pe.createElement(pe.Fragment,null,ae,pe.createElement("span",{className:Ce("".concat(m,"-data-count"),x==null?void 0:x.count),style:E==null?void 0:E.count},ye)));var fe=function(ie){var Be;C==null||C(ie),(Be=le())!==null&&Be!==void 0&&Be.style.height&&ee(!0)},Ae=!A&&!g&&!l;return pe.createElement(DY,{ref:K,value:B,allowClear:l,handleReset:Y,suffix:ae,prefixCls:m,classNames:z(z({},x),{},{affixWrapper:Ce(x==null?void 0:x.affixWrapper,te(te({},"".concat(m,"-show-count"),g),"".concat(m,"-textarea-allow-clear"),l))}),disabled:_,focused:W,className:Ce(y,we&&"".concat(m,"-out-of-range")),style:z(z({},b),ue&&!Ae?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof ye=="string"?ye:void 0}},hidden:S,readOnly:T,onClear:w},pe.createElement(Wpt,Xe({},N,{autoSize:A,maxLength:c,onKeyDown:Ve,onChange:Te,onFocus:q,onBlur:U,onCompositionStart:Ee,onCompositionEnd:Ne,className:Ce(x==null?void 0:x.textarea),style:z(z({},E==null?void 0:E.textarea),{},{resize:b==null?void 0:b.resize}),disabled:_,prefixCls:m,onResize:fe,ref:se,readOnly:T})))});const Kpt=e=>{const{componentCls:t,paddingLG:n}=e,r=`${t}-textarea`;return{[`textarea${t}`]:{maxWidth:"100%",height:"auto",minHeight:e.controlHeight,lineHeight:e.lineHeight,verticalAlign:"bottom",transition:`all ${e.motionDurationSlow}`,resize:"vertical",[`&${t}-mouse-active`]:{transition:`all ${e.motionDurationSlow}, height 0s, width 0s`}},[`${t}-textarea-affix-wrapper-resize-dirty`]:{width:"auto"},[r]:{position:"relative","&-show-count":{[`${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",minHeight:e.calc(e.controlHeight).sub(e.calc(e.lineWidth).mul(2)).equal(),"&: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-rtl`]:{[`${t}-suffix`]:{[`${t}-data-count`]:{direction:"ltr",insetInlineStart:0}}},[`&-affix-wrapper${t}-affix-wrapper-sm`]:{[`${t}-suffix`]:{[`${t}-clear-icon`]:{insetInlineEnd:e.paddingInlineSM}}}}}},Qpt=ir(["Input","TextArea"],e=>{const t=Un(e,Sv(e));return[Kpt(t)]},Ev,{resetFont:!1});var Xpt=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);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 Uwe=h.forwardRef((e,t)=>{var n;const{prefixCls:r,bordered:i=!0,size:o,disabled:a,status:s,allowClear:l,classNames:c,rootClassName:u,className:d,style:f,styles:p,variant:m,showCount:g,onMouseDown:v,onResize:y}=e,b=Xpt(e,["prefixCls","bordered","size","disabled","status","allowClear","classNames","rootClassName","className","style","styles","variant","showCount","onMouseDown","onResize"]),{getPrefixCls:_,direction:S,allowClear:x,autoComplete:E,className:C,style:w,classNames:O,styles:T}=Vi("textArea"),A=h.useContext(Yo),I=a??A,{status:N,hasFeedback:D,feedbackIcon:M}=h.useContext(oa),k=yh(N,s),P=h.useRef(null);h.useImperativeHandle(t,()=>{var re;return{resizableTextArea:(re=P.current)===null||re===void 0?void 0:re.resizableTextArea,focus:ve=>{var be,xe;PY((xe=(be=P.current)===null||be===void 0?void 0:be.resizableTextArea)===null||xe===void 0?void 0:xe.textArea,ve)},blur:()=>{var ve;return(ve=P.current)===null||ve===void 0?void 0:ve.blur()}}});const B=_("input",r),G=gi(B),[L,W,j]=fxe(B,u),[H]=Qpt(B,G),{compactSize:X,compactItemClassnames:Q}=Ru(B,S),ue=mo(re=>{var ve;return(ve=o??X)!==null&&ve!==void 0?ve:re}),[ee,K]=Kf("textArea",m,i),se=twe(l??x),[le,oe]=h.useState(!1),[ne,he]=h.useState(!1),me=re=>{oe(!0),v==null||v(re);const ve=()=>{oe(!1),document.removeEventListener("mouseup",ve)};document.addEventListener("mouseup",ve)},ce=re=>{var ve,be;if(y==null||y(re),le&&typeof getComputedStyle=="function"){const xe=(be=(ve=P.current)===null||ve===void 0?void 0:ve.nativeElement)===null||be===void 0?void 0:be.querySelector("textarea");xe&&getComputedStyle(xe).resize==="both"&&he(!0)}};return L(H(h.createElement(Ypt,Object.assign({autoComplete:E},b,{style:Object.assign(Object.assign({},w),f),styles:Object.assign(Object.assign({},T),p),disabled:I,allowClear:se,className:Ce(j,G,d,u,Q,C,ne&&`${B}-textarea-affix-wrapper-resize-dirty`),classNames:Object.assign(Object.assign(Object.assign({},c),O),{textarea:Ce({[`${B}-sm`]:ue==="small",[`${B}-lg`]:ue==="large"},W,c==null?void 0:c.textarea,O.textarea,le&&`${B}-mouse-active`),variant:Ce({[`${B}-${ee}`]:K},Id(B,k)),affixWrapper:Ce(`${B}-textarea-affix-wrapper`,{[`${B}-affix-wrapper-rtl`]:S==="rtl",[`${B}-affix-wrapper-sm`]:ue==="small",[`${B}-affix-wrapper-lg`]:ue==="large",[`${B}-textarea-show-count`]:g||((n=e.count)===null||n===void 0?void 0:n.show)},W)}),prefixCls:B,suffix:D&&h.createElement("span",{className:`${B}-textarea-suffix`},M),showCount:g,ref:P,onResize:ce,onMouseDown:me}))))}),Co=xS;Co.Group=wpt;Co.Search=Hpt;Co.TextArea=Uwe;Co.Password=Fpt;Co.OTP=Mpt;function Zpt(e,t,n){return typeof n=="boolean"?n:e.length?!0:Do(t).some(i=>i.type===oCe)}var zwe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);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({suffixCls:e,tagName:t,displayName:n}){return r=>h.forwardRef((o,a)=>h.createElement(r,Object.assign({ref:a,suffixCls:e,tagName:t},o)))}const jY=h.forwardRef((e,t)=>{const{prefixCls:n,suffixCls:r,className:i,tagName:o}=e,a=zwe(e,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:s}=h.useContext(cn),l=s("layout",n),[c,u,d]=iCe(l),f=r?`${l}-${r}`:l;return c(h.createElement(o,Object.assign({className:Ce(n||f,i,u,d),ref:t},a)))}),Jpt=h.forwardRef((e,t)=>{const{direction:n}=h.useContext(cn),[r,i]=h.useState([]),{prefixCls:o,className:a,rootClassName:s,children:l,hasSider:c,tagName:u,style:d}=e,f=zwe(e,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),p=ur(f,["suffixCls"]),{getPrefixCls:m,className:g,style:v}=Vi("layout"),y=m("layout",o),b=Zpt(r,l,c),[_,S,x]=iCe(y),E=Ce(y,{[`${y}-has-sider`]:b,[`${y}-rtl`]:n==="rtl"},g,a,s,S,x),C=h.useMemo(()=>({siderHook:{addSider:w=>{i(O=>[].concat(rt(O),[w]))},removeSider:w=>{i(O=>O.filter(T=>T!==w))}}}),[]);return _(h.createElement(tCe.Provider,{value:C},h.createElement(u,Object.assign({ref:t,className:E,style:Object.assign(Object.assign({},v),d)},p),l)))}),eht=iD({tagName:"div",displayName:"Layout"})(Jpt),Y4=iD({suffixCls:"header",tagName:"header",displayName:"Header"})(jY),tht=iD({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(jY),nht=iD({suffixCls:"content",tagName:"main",displayName:"Content"})(jY),po=eht;po.Header=Y4;po.Footer=tht;po.Content=nht;po.Sider=oCe;po._InternalSiderContext=GP;var rht={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"},iht=function(t,n){return h.createElement(Mn,Xe({},t,{ref:n,icon:rht}))},Toe=h.forwardRef(iht),oht={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"},aht=function(t,n){return h.createElement(Mn,Xe({},t,{ref:n,icon:oht}))},Ooe=h.forwardRef(aht),Vwe={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:"页码"},sht=[10,20,50,100],lht=function(t){var n=t.pageSizeOptions,r=n===void 0?sht: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,p=t.sizeChangerRender,m=pe.useState(""),g=Re(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)},S=function(N){y(N.target.value)},x=function(N){s||v===""||(y(""),!(N.relatedTarget&&(N.relatedTarget.className.indexOf("".concat(c,"-item-link"))>=0||N.relatedTarget.className.indexOf("".concat(c,"-item"))>=0))&&(l==null||l(b())))},E=function(N){v!==""&&(N.keyCode===Ut.ENTER||N.type==="click")&&(y(""),l==null||l(b()))},C=function(){return r.some(function(N){return N.toString()===a.toString()})?r:r.concat([a]).sort(function(N,D){var M=Number.isNaN(Number(N))?0:Number(N),k=Number.isNaN(Number(D))?0:Number(D);return M-k})},w="".concat(c,"-options");if(!f&&!l)return null;var O=null,T=null,A=null;return f&&p&&(O=p({disabled:u,size:a,onSizeChange:function(N){o==null||o(Number(N))},"aria-label":i.page_size,className:"".concat(w,"-size-changer"),options:C().map(function(I){return{label:_(I),value:I}})})),l&&(s&&(A=typeof s=="boolean"?pe.createElement("button",{type:"button",onClick:E,onKeyUp:E,disabled:u,className:"".concat(w,"-quick-jumper-button")},i.jump_to_confirm):pe.createElement("span",{onClick:E,onKeyUp:E},s)),T=pe.createElement("div",{className:"".concat(w,"-quick-jumper")},i.jump_to,pe.createElement("input",{disabled:u,type:"text",value:v,onChange:S,onKeyUp:E,onBlur:x,"aria-label":i.page}),i.page,A)),pe.createElement("li",{className:w},O,T)},$E=function(t){var n=t.rootPrefixCls,r=t.page,i=t.active,o=t.className,a=t.showTitle,s=t.onClick,l=t.onKeyPress,c=t.itemRender,u="".concat(n,"-item"),d=Ce(u,"".concat(u,"-").concat(r),te(te({},"".concat(u,"-active"),i),"".concat(u,"-disabled"),!r),o),f=function(){s(r)},p=function(v){l(v,s,r)},m=c(r,"page",pe.createElement("a",{rel:"nofollow"},r));return m?pe.createElement("li",{title:a?String(r):null,className:d,onClick:f,onKeyDown:p,tabIndex:0},m):null},cht=function(t,n,r){return r};function Roe(){}function Aoe(e){var t=Number(e);return typeof t=="number"&&!Number.isNaN(t)&&isFinite(t)&&Math.floor(t)===t}function t0(e,t,n){var r=typeof e>"u"?t:e;return Math.floor((n-1)/r)+1}var uht=function(t){var n=t.prefixCls,r=n===void 0?"rc-pagination":n,i=t.selectPrefixCls,o=i===void 0?"rc-select":i,a=t.className,s=t.current,l=t.defaultCurrent,c=l===void 0?1:l,u=t.total,d=u===void 0?0:u,f=t.pageSize,p=t.defaultPageSize,m=p===void 0?10:p,g=t.onChange,v=g===void 0?Roe:g,y=t.hideOnSinglePage,b=t.align,_=t.showPrevNextJumpers,S=_===void 0?!0:_,x=t.showQuickJumper,E=t.showLessItems,C=t.showTitle,w=C===void 0?!0:C,O=t.onShowSizeChange,T=O===void 0?Roe:O,A=t.locale,I=A===void 0?Vwe:A,N=t.style,D=t.totalBoundaryShowSizeChanger,M=D===void 0?50:D,k=t.disabled,P=t.simple,B=t.showTotal,G=t.showSizeChanger,L=G===void 0?d>M:G,W=t.sizeChangerRender,j=t.pageSizeOptions,H=t.itemRender,X=H===void 0?cht:H,Q=t.jumpPrevIcon,ue=t.jumpNextIcon,ee=t.prevIcon,K=t.nextIcon,se=pe.useRef(null),le=Pn(10,{value:f,defaultValue:m}),oe=Re(le,2),ne=oe[0],he=oe[1],me=Pn(1,{value:s,defaultValue:c,postState:function($){return Math.max(1,Math.min($,t0(void 0,ne,d)))}}),ce=Re(me,2),re=ce[0],ve=ce[1],be=pe.useState(re),xe=Re(be,2),we=xe[0],de=xe[1];h.useEffect(function(){de(re)},[re]);var Ee=Math.max(1,re-(E?3:5)),Ne=Math.min(t0(void 0,ne,d),re+(E?3:5));function Te(R,$){var J=R||pe.createElement("button",{type:"button","aria-label":$,className:"".concat(r,"-item-link")});return typeof R=="function"&&(J=pe.createElement(R,z({},t))),J}function Ve(R){var $=R.target.value,J=t0(void 0,ne,d),Oe;return $===""?Oe=$:Number.isNaN(Number($))?Oe=we:$>=J?Oe=J:Oe=Number($),Oe}function q(R){return Aoe(R)&&R!==re&&Aoe(d)&&d>0}var U=d>ne?x:!1;function Y(R){(R.keyCode===Ut.UP||R.keyCode===Ut.DOWN)&&R.preventDefault()}function ae(R){var $=Ve(R);switch($!==we&&de($),R.keyCode){case Ut.ENTER:Ae($);break;case Ut.UP:Ae($-1);break;case Ut.DOWN:Ae($+1);break}}function ye(R){Ae(Ve(R))}function fe(R){var $=t0(R,ne,d),J=re>$&&$!==0?$:re;he(R),de(J),T==null||T(re,R),ve(J),v==null||v(J,R)}function Ae(R){if(q(R)&&!k){var $=t0(void 0,ne,d),J=R;return R>$?J=$:R<1&&(J=1),J!==we&&de(J),ve(J),v==null||v(J,ne),J}return re}var We=re>1,ie=re<t0(void 0,ne,d);function Be(){We&&Ae(re-1)}function Fe(){ie&&Ae(re+1)}function Pe(){Ae(Ee)}function Ke(){Ae(Ne)}function tt(R,$){if(R.key==="Enter"||R.charCode===Ut.ENTER||R.keyCode===Ut.ENTER){for(var J=arguments.length,Oe=new Array(J>2?J-2:0),qe=2;qe<J;qe++)Oe[qe-2]=arguments[qe];$.apply(void 0,Oe)}}function Ge(R){tt(R,Be)}function Nt(R){tt(R,Fe)}function lt(R){tt(R,Pe)}function st(R){tt(R,Ke)}function It(R){var $=X(R,"prev",Te(ee,"prev page"));return pe.isValidElement($)?pe.cloneElement($,{disabled:!We}):$}function ct(R){var $=X(R,"next",Te(K,"next page"));return pe.isValidElement($)?pe.cloneElement($,{disabled:!ie}):$}function Pt(R){(R.type==="click"||R.keyCode===Ut.ENTER)&&Ae(we)}var Rt=null,Tt=Oi(t,{aria:!0,data:!0}),Me=B&&pe.createElement("li",{className:"".concat(r,"-total-text")},B(d,[d===0?0:(re-1)*ne+1,re*ne>d?d:re*ne])),Ue=null,$e=t0(void 0,ne,d);if(y&&d<=ne)return null;var Le=[],He={rootPrefixCls:r,onClick:Ae,onKeyPress:tt,showTitle:w,itemRender:X,page:-1},it=re-1>0?re-1:0,ft=re+1<$e?re+1:$e,Et=x&&x.goButton,Dt=qt(P)==="object"?P.readOnly:!P,St=Et,bt=null;P&&(Et&&(typeof Et=="boolean"?St=pe.createElement("button",{type:"button",onClick:Pt,onKeyUp:Pt},I.jump_to_confirm):St=pe.createElement("span",{onClick:Pt,onKeyUp:Pt},Et),St=pe.createElement("li",{title:w?"".concat(I.jump_to).concat(re,"/").concat($e):null,className:"".concat(r,"-simple-pager")},St)),bt=pe.createElement("li",{title:w?"".concat(re,"/").concat($e):null,className:"".concat(r,"-simple-pager")},Dt?we:pe.createElement("input",{type:"text","aria-label":I.jump_to,value:we,disabled:k,onKeyDown:Y,onKeyUp:ae,onChange:ae,onBlur:ye,size:3}),pe.createElement("span",{className:"".concat(r,"-slash")},"/"),$e));var xt=E?1:2;if($e<=3+xt*2){$e||Le.push(pe.createElement($E,Xe({},He,{key:"noPager",page:1,className:"".concat(r,"-item-disabled")})));for(var ht=1;ht<=$e;ht+=1)Le.push(pe.createElement($E,Xe({},He,{key:ht,page:ht,active:re===ht})))}else{var Vt=E?I.prev_3:I.prev_5,at=E?I.next_3:I.next_5,wt=X(Ee,"jump-prev",Te(Q,"prev page")),Gt=X(Ne,"jump-next",Te(ue,"next page"));S&&(Rt=wt?pe.createElement("li",{title:w?Vt:null,key:"prev",onClick:Pe,tabIndex:0,onKeyDown:lt,className:Ce("".concat(r,"-jump-prev"),te({},"".concat(r,"-jump-prev-custom-icon"),!!Q))},wt):null,Ue=Gt?pe.createElement("li",{title:w?at:null,key:"next",onClick:Ke,tabIndex:0,onKeyDown:st,className:Ce("".concat(r,"-jump-next"),te({},"".concat(r,"-jump-next-custom-icon"),!!ue))},Gt):null);var $t=Math.max(1,re-xt),zt=Math.min(re+xt,$e);re-1<=xt&&(zt=1+xt*2),$e-re<=xt&&($t=$e-xt*2);for(var Ft=$t;Ft<=zt;Ft+=1)Le.push(pe.createElement($E,Xe({},He,{key:Ft,page:Ft,active:re===Ft})));if(re-1>=xt*2&&re!==3&&(Le[0]=pe.cloneElement(Le[0],{className:Ce("".concat(r,"-item-after-jump-prev"),Le[0].props.className)}),Le.unshift(Rt)),$e-re>=xt*2&&re!==$e-2){var De=Le[Le.length-1];Le[Le.length-1]=pe.cloneElement(De,{className:Ce("".concat(r,"-item-before-jump-next"),De.props.className)}),Le.push(Ue)}$t!==1&&Le.unshift(pe.createElement($E,Xe({},He,{key:1,page:1}))),zt!==$e&&Le.push(pe.createElement($E,Xe({},He,{key:$e,page:$e})))}var Ct=It(it);if(Ct){var et=!We||!$e;Ct=pe.createElement("li",{title:w?I.prev_page:null,onClick:Be,tabIndex:et?null:0,onKeyDown:Ge,className:Ce("".concat(r,"-prev"),te({},"".concat(r,"-disabled"),et)),"aria-disabled":et},Ct)}var Ot=ct(ft);if(Ot){var At,_n;P?(At=!ie,_n=We?0:null):(At=!ie||!$e,_n=At?null:0),Ot=pe.createElement("li",{title:w?I.next_page:null,onClick:Fe,tabIndex:_n,onKeyDown:Nt,className:Ce("".concat(r,"-next"),te({},"".concat(r,"-disabled"),At)),"aria-disabled":At},Ot)}var zn=Ce(r,a,te(te(te(te(te({},"".concat(r,"-start"),b==="start"),"".concat(r,"-center"),b==="center"),"".concat(r,"-end"),b==="end"),"".concat(r,"-simple"),P),"".concat(r,"-disabled"),k));return pe.createElement("ul",Xe({className:zn,style:N,ref:se},Tt),Me,Ct,P?bt:Le,Ot,pe.createElement(lht,{locale:I,rootPrefixCls:r,disabled:k,selectPrefixCls:o,changeSize:fe,pageSize:ne,pageSizeOptions:j,quickGo:U?Ae:null,goButton:St,showSizeChanger:L,sizeChangerRender:W}))};const dht=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",backgroundColor:"transparent","&: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"}}}}}},fht=e=>{const{componentCls:t}=e;return{[`&${t}-mini ${t}-total-text, &${t}-mini ${t}-simple-pager`]:{height:e.itemSizeSM,lineHeight:Ie(e.itemSizeSM)},[`&${t}-mini ${t}-item`]:{minWidth:e.itemSizeSM,height:e.itemSizeSM,margin:0,lineHeight:Ie(e.calc(e.itemSizeSM).sub(2).equal())},[`&${t}-mini ${t}-prev, &${t}-mini ${t}-next`]:{minWidth:e.itemSizeSM,height:e.itemSizeSM,margin:0,lineHeight:Ie(e.itemSizeSM)},[`&${t}-mini:not(${t}-disabled)`]:{[`${t}-prev, ${t}-next`]:{[`&:hover ${t}-item-link`]:{backgroundColor:e.colorBgTextHover},[`&:active ${t}-item-link`]:{backgroundColor:e.colorBgTextActive},[`&${t}-disabled:hover ${t}-item-link`]:{backgroundColor:"transparent"}}},[`
&${t}-mini ${t}-prev ${t}-item-link,
&${t}-mini ${t}-next ${t}-item-link
`]:{backgroundColor:"transparent",borderColor:"transparent","&::after":{height:e.itemSizeSM,lineHeight:Ie(e.itemSizeSM)}},[`&${t}-mini ${t}-jump-prev, &${t}-mini ${t}-jump-next`]:{height:e.itemSizeSM,marginInlineEnd:0,lineHeight:Ie(e.itemSizeSM)},[`&${t}-mini ${t}-options`]:{marginInlineStart:e.paginationMiniOptionsMarginInlineStart,"&-size-changer":{top:e.miniOptionsSizeChangerTop},"&-quick-jumper":{height:e.itemSizeSM,lineHeight:Ie(e.itemSizeSM),input:Object.assign(Object.assign({},AY(e)),{width:e.paginationMiniQuickJumperInputWidth,height:e.controlHeightSM})}}}},pht=e=>{const{componentCls:t}=e;return{[`
&${t}-simple ${t}-prev,
&${t}-simple ${t}-next
`]:{height:e.itemSizeSM,lineHeight:Ie(e.itemSizeSM),verticalAlign:"top",[`${t}-item-link`]:{height:e.itemSizeSM,backgroundColor:"transparent",border:0,"&:hover":{backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive},"&::after":{height:e.itemSizeSM,lineHeight:Ie(e.itemSizeSM)}}},[`&${t}-simple ${t}-simple-pager`]:{display:"inline-block",height:e.itemSizeSM,marginInlineEnd:e.marginXS,input:{boxSizing:"border-box",height:"100%",padding:`0 ${Ie(e.paginationItemPaddingInline)}`,textAlign:"center",backgroundColor:e.itemInputBg,border:`${Ie(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadius,outline:"none",transition:`border-color ${e.motionDurationMid}`,color:"inherit","&:hover":{borderColor:e.colorPrimary},"&:focus":{borderColor:e.colorPrimaryHover,boxShadow:`${Ie(e.inputOutlineOffset)} 0 ${Ie(e.controlOutlineWidth)} ${e.controlOutline}`},"&[disabled]":{color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,cursor:"not-allowed"}}}}},hht=e=>{const{componentCls:t}=e;return{[`${t}-jump-prev, ${t}-jump-next`]:{outline:0,[`${t}-item-container`]:{position:"relative",[`${t}-item-link-icon`]:{color:e.colorPrimary,fontSize:e.fontSizeSM,opacity:0,transition:`all ${e.motionDurationMid}`,"&-svg":{top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,margin:"auto"}},[`${t}-item-ellipsis`]:{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,display:"block",margin:"auto",color:e.colorTextDisabled,letterSpacing:e.paginationEllipsisLetterSpacing,textAlign:"center",textIndent:e.paginationEllipsisTextIndent,opacity:1,transition:`all ${e.motionDurationMid}`}},"&:hover":{[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0}}},[`
${t}-prev,
${t}-jump-prev,
${t}-jump-next
`]:{marginInlineEnd:e.marginXS},[`
${t}-prev,
${t}-next,
${t}-jump-prev,
${t}-jump-next
`]:{display:"inline-block",minWidth:e.itemSize,height:e.itemSize,color:e.colorText,fontFamily:e.fontFamily,lineHeight:Ie(e.itemSize),textAlign:"center",verticalAlign:"middle",listStyle:"none",borderRadius:e.borderRadius,cursor:"pointer",transition:`all ${e.motionDurationMid}`},[`${t}-prev, ${t}-next`]:{outline:0,button:{color:e.colorText,cursor:"pointer",userSelect:"none"},[`${t}-item-link`]:{display:"block",width:"100%",height:"100%",padding:0,fontSize:e.fontSizeSM,textAlign:"center",backgroundColor:"transparent",border:`${Ie(e.lineWidth)} ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:"none",transition:`all ${e.motionDurationMid}`},[`&:hover ${t}-item-link`]:{backgroundColor:e.colorBgTextHover},[`&:active ${t}-item-link`]:{backgroundColor:e.colorBgTextActive},[`&${t}-disabled:hover`]:{[`${t}-item-link`]:{backgroundColor:"transparent"}}},[`${t}-slash`]:{marginInlineEnd:e.paginationSlashMarginInlineEnd,marginInlineStart:e.paginationSlashMarginInlineStart},[`${t}-options`]:{display:"inline-block",marginInlineStart:e.margin,verticalAlign:"middle","&-size-changer":{display:"inline-block",width:"auto"},"&-quick-jumper":{display:"inline-block",height:e.controlHeight,marginInlineStart:e.marginXS,lineHeight:Ie(e.controlHeight),verticalAlign:"top",input:Object.assign(Object.assign(Object.assign({},g2(e)),CY(e,{borderColor:e.colorBorder,hoverBorderColor:e.colorPrimaryHover,activeBorderColor:e.colorPrimary,activeShadow:e.activeShadow})),{"&[disabled]":Object.assign({},ZP(e)),width:e.calc(e.controlHeightLG).mul(1.25).equal(),height:e.controlHeight,boxSizing:"border-box",margin:0,marginInlineStart:e.marginXS,marginInlineEnd:e.marginXS})}}}},mht=e=>{const{componentCls:t}=e;return{[`${t}-item`]:{display:"inline-block",minWidth:e.itemSize,height:e.itemSize,marginInlineEnd:e.marginXS,fontFamily:e.fontFamily,lineHeight:Ie(e.calc(e.itemSize).sub(2).equal()),textAlign:"center",verticalAlign:"middle",listStyle:"none",backgroundColor:e.itemBg,border:`${Ie(e.lineWidth)} ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:0,cursor:"pointer",userSelect:"none",a:{display:"block",padding:`0 ${Ie(e.paginationItemPaddingInline)}`,color:e.colorText,"&:hover":{textDecoration:"none"}},[`&:not(${t}-item-active)`]:{"&:hover":{transition:`all ${e.motionDurationMid}`,backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive}},"&-active":{fontWeight:e.fontWeightStrong,backgroundColor:e.itemActiveBg,borderColor:e.colorPrimary,a:{color:e.colorPrimary},"&:hover":{borderColor:e.colorPrimaryHover},"&:hover a":{color:e.colorPrimaryHover}}}}},ght=e=>{const{componentCls:t}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},mr(e)),{display:"flex","&-start":{justifyContent:"start"},"&-center":{justifyContent:"center"},"&-end":{justifyContent:"end"},"ul, ol":{margin:0,padding:0,listStyle:"none"},"&::after":{display:"block",clear:"both",height:0,overflow:"hidden",visibility:"hidden",content:'""'},[`${t}-total-text`]:{display:"inline-block",height:e.itemSize,marginInlineEnd:e.marginXS,lineHeight:Ie(e.calc(e.itemSize).sub(2).equal()),verticalAlign:"middle"}}),mht(e)),hht(e)),pht(e)),fht(e)),dht(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"}}},vht=e=>{const{componentCls:t}=e;return{[`${t}:not(${t}-disabled)`]:{[`${t}-item`]:Object.assign({},tl(e)),[`${t}-jump-prev, ${t}-jump-next`]:{"&:focus-visible":Object.assign({[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0}},wd(e))},[`${t}-prev, ${t}-next`]:{[`&:focus-visible ${t}-item-link`]:Object.assign({},wd(e))}}}},Gwe=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},Ev(e)),Wwe=e=>Un(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"},Sv(e)),bht=ir("Pagination",e=>{const t=Wwe(e);return[ght(t),vht(t)]},Gwe),yht=e=>{const{componentCls:t}=e;return{[`${t}${t}-bordered${t}-disabled:not(${t}-mini)`]:{"&, &:hover":{[`${t}-item-link`]:{borderColor:e.colorBorder}},"&:focus-visible":{[`${t}-item-link`]:{borderColor:e.colorBorder}},[`${t}-item, ${t}-item-link`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,[`&:hover:not(${t}-item-active)`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,a:{color:e.colorTextDisabled}},[`&${t}-item-active`]:{backgroundColor:e.itemActiveBgDisabled}},[`${t}-prev, ${t}-next`]:{"&:hover button":{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,color:e.colorTextDisabled},[`${t}-item-link`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder}}},[`${t}${t}-bordered:not(${t}-mini)`]:{[`${t}-prev, ${t}-next`]:{"&:hover button":{borderColor:e.colorPrimaryHover,backgroundColor:e.itemBg},[`${t}-item-link`]:{backgroundColor:e.itemLinkBg,borderColor:e.colorBorder},[`&:hover ${t}-item-link`]:{borderColor:e.colorPrimary,backgroundColor:e.itemBg,color:e.colorPrimary},[`&${t}-disabled`]:{[`${t}-item-link`]:{borderColor:e.colorBorder,color:e.colorTextDisabled}}},[`${t}-item`]:{backgroundColor:e.itemBg,border:`${Ie(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,[`&:hover:not(${t}-item-active)`]:{borderColor:e.colorPrimary,backgroundColor:e.itemBg,a:{color:e.colorPrimary}},"&-active":{borderColor:e.colorPrimary}}}}},_ht=uS(["Pagination","bordered"],e=>{const t=Wwe(e);return[yht(t)]},Gwe);function Ioe(e){return h.useMemo(()=>typeof e=="boolean"?[e,{}]:e&&typeof e=="object"?[!0,e]:[void 0,void 0],[e])}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 qwe=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,p=Sht(e,["align","prefixCls","selectPrefixCls","className","rootClassName","style","size","locale","responsive","showSizeChanger","selectComponentClass","pageSizeOptions"]),{xs:m}=f2(c),[,g]=Ko(),{getPrefixCls:v,direction:y,showSizeChanger:b,className:_,style:S}=Vi("pagination"),x=v("pagination",n),[E,C,w]=bht(x),O=mo(s),T=O==="small"||!!(m&&!O&&c),[A]=Ma("Pagination",l_e),I=Object.assign(Object.assign({},A),l),[N,D]=Ioe(u),[M,k]=Ioe(b),P=N??M,B=D??k,G=d||vu,L=h.useMemo(()=>f?f.map(ue=>Number(ue)):void 0,[f]),W=ue=>{var ee;const{disabled:K,size:se,onSizeChange:le,"aria-label":oe,className:ne,options:he}=ue,{className:me,onChange:ce}=B||{},re=(ee=he.find(ve=>String(ve.value)===String(se)))===null||ee===void 0?void 0:ee.value;return h.createElement(G,Object.assign({disabled:K,showSearch:!0,popupMatchSelectWidth:!1,getPopupContainer:ve=>ve.parentNode,"aria-label":oe,options:he},B,{value:re,onChange:(ve,be)=>{le==null||le(ve),ce==null||ce(ve,be)},size:T?"small":"middle",className:Ce(ne,me)}))},j=h.useMemo(()=>{const ue=h.createElement("span",{className:`${x}-item-ellipsis`},"•••"),ee=h.createElement("button",{className:`${x}-item-link`,type:"button",tabIndex:-1},y==="rtl"?h.createElement(Rd,null):h.createElement(sh,null)),K=h.createElement("button",{className:`${x}-item-link`,type:"button",tabIndex:-1},y==="rtl"?h.createElement(sh,null):h.createElement(Rd,null)),se=h.createElement("a",{className:`${x}-item-link`},h.createElement("div",{className:`${x}-item-container`},y==="rtl"?h.createElement(Ooe,{className:`${x}-item-link-icon`}):h.createElement(Toe,{className:`${x}-item-link-icon`}),ue)),le=h.createElement("a",{className:`${x}-item-link`},h.createElement("div",{className:`${x}-item-container`},y==="rtl"?h.createElement(Toe,{className:`${x}-item-link-icon`}):h.createElement(Ooe,{className:`${x}-item-link-icon`}),ue));return{prevIcon:ee,nextIcon:K,jumpPrevIcon:se,jumpNextIcon:le}},[y,x]),H=v("select",r),X=Ce({[`${x}-${t}`]:!!t,[`${x}-mini`]:T,[`${x}-rtl`]:y==="rtl",[`${x}-bordered`]:g.wireframe},_,i,o,C,w),Q=Object.assign(Object.assign({},S),a);return E(h.createElement(h.Fragment,null,g.wireframe&&h.createElement(_ht,{prefixCls:x}),h.createElement(uht,Object.assign({},j,p,{style:Q,prefixCls:x,selectPrefixCls:H,className:X,locale:I,pageSizeOptions:L,showSizeChanger:P,sizeChangerRender:W}))))},K4=100,Ywe=K4/5,Kwe=K4/2-Ywe/2,CL=Kwe*2*Math.PI,Noe=50,Moe=e=>{const{dotClassName:t,style:n,hasCircleCls:r}=e;return h.createElement("circle",{className:Ce(`${t}-circle`,{[`${t}-circle-bg`]:r}),r:Kwe,cx:Noe,cy:Noe,strokeWidth:Ywe,style:n})},Eht=({percent:e,prefixCls:t})=>{const n=`${t}-dot`,r=`${n}-holder`,i=`${r}-hidden`,[o,a]=h.useState(!1);er(()=>{e!==0&&a(!0)},[e!==0]);const s=Math.max(Math.min(e,100),0);if(!o)return null;const l={strokeDashoffset:`${CL/4}`,strokeDasharray:`${CL*s/100} ${CL*(100-s)/100}`};return h.createElement("span",{className:Ce(r,`${n}-progress`,s<=0&&i)},h.createElement("svg",{viewBox:`0 0 ${K4} ${K4}`,role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":s},h.createElement(Moe,{dotClassName:n,hasCircleCls:!0}),h.createElement(Moe,{dotClassName:n,style:l})))};function Cht(e){const{prefixCls:t,percent:n=0}=e,r=`${t}-dot`,i=`${r}-holder`,o=`${i}-hidden`;return h.createElement(h.Fragment,null,h.createElement("span",{className:Ce(i,n>0&&o)},h.createElement("span",{className:Ce(r,`${t}-dot-spin`)},[1,2,3,4].map(a=>h.createElement("i",{className:`${t}-dot-item`,key:a})))),h.createElement(Eht,{prefixCls:t,percent:n}))}function xht(e){const{prefixCls:t,indicator:n,percent:r}=e,i=`${t}-dot`;return n&&h.isValidElement(n)?wo(n,{className:Ce(n.props.className,i),percent:r}):h.createElement(Cht,{prefixCls:t,percent:r})}const wht=new fr("antSpinMove",{to:{opacity:1}}),Tht=new fr("antRotate",{to:{transform:"rotate(405deg)"}}),Oht=e=>{const{componentCls:t,calc:n}=e;return{[t]:Object.assign(Object.assign({},mr(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",inset:0},[`${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:wht,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:Tht,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"}})}},Rht=e=>{const{controlHeightLG:t,controlHeight:n}=e;return{contentHeight:400,dotSize:t/2,dotSizeSM:t*.35,dotSizeLG:n}},Aht=ir("Spin",e=>{const t=Un(e,{spinDotDefault:e.colorTextDescription});return[Oht(t)]},Rht),Iht=200,koe=[[30,.05],[70,.03],[96,.01]];function Nht(e,t){const[n,r]=h.useState(0),i=h.useRef(null),o=t==="auto";return h.useEffect(()=>(o&&e&&(r(0),i.current=setInterval(()=>{r(a=>{const s=100-a;for(let l=0;l<koe.length;l+=1){const[c,u]=koe[l];if(a<=c)return a+s*u}return a})},Iht)),()=>{clearInterval(i.current)}),[o,e]),o?n:t}var Mht=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);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 Qwe;function kht(e,t){return!!e&&!!t&&!Number.isNaN(Number(t))}const Nc=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:p,percent:m}=e,g=Mht(e,["prefixCls","spinning","delay","className","rootClassName","size","tip","wrapperClassName","style","children","fullscreen","indicator","percent"]),{getPrefixCls:v,direction:y,className:b,style:_,indicator:S}=Vi("spin"),x=v("spin",n),[E,C,w]=Aht(x),[O,T]=h.useState(()=>r&&!kht(r,i)),A=Nht(O,m);h.useEffect(()=>{if(r){const B=Olt(i,()=>{T(!0)});return B(),()=>{var G;(G=B==null?void 0:B.cancel)===null||G===void 0||G.call(B)}}T(!1)},[i,r]);const I=h.useMemo(()=>typeof d<"u"&&!f,[d,f]),N=Ce(x,b,{[`${x}-sm`]:s==="small",[`${x}-lg`]:s==="large",[`${x}-spinning`]:O,[`${x}-show-text`]:!!l,[`${x}-rtl`]:y==="rtl"},o,!f&&a,C,w),D=Ce(`${x}-container`,{[`${x}-blur`]:O}),M=(t=p??S)!==null&&t!==void 0?t:Qwe,k=Object.assign(Object.assign({},_),u),P=h.createElement("div",Object.assign({},g,{style:k,className:N,"aria-live":"polite","aria-busy":O}),h.createElement(xht,{prefixCls:x,indicator:M,percent:A}),l&&(I||f)?h.createElement("div",{className:`${x}-text`},l):null);return E(I?h.createElement("div",Object.assign({},g,{className:Ce(`${x}-nested-loading`,c,C,w)}),O&&h.createElement("div",{key:"loading"},P),h.createElement("div",{className:D,key:"container"},d)):f?h.createElement("div",{className:Ce(`${x}-fullscreen`,{[`${x}-fullscreen-show`]:O},a,C,w)},P):P)};Nc.setDefaultIndicator=e=>{Qwe=e};const UY=pe.createContext({});UY.Consumer;var Xwe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);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 Pht=e=>{var{prefixCls:t,className:n,avatar:r,title:i,description:o}=e,a=Xwe(e,["prefixCls","className","avatar","title","description"]);const{getPrefixCls:s}=h.useContext(cn),l=s("list",t),c=Ce(`${l}-item-meta`,n),u=pe.createElement("div",{className:`${l}-item-meta-content`},i&&pe.createElement("h4",{className:`${l}-item-meta-title`},i),o&&pe.createElement("div",{className:`${l}-item-meta-description`},o));return pe.createElement("div",Object.assign({},a,{className:c}),r&&pe.createElement("div",{className:`${l}-item-meta-avatar`},r),(i||o)&&u)},Dht=pe.forwardRef((e,t)=>{const{prefixCls:n,children:r,actions:i,extra:o,styles:a,className:s,classNames:l,colStyle:c}=e,u=Xwe(e,["prefixCls","children","actions","extra","styles","className","classNames","colStyle"]),{grid:d,itemLayout:f}=h.useContext(UY),{getPrefixCls:p,list:m}=h.useContext(cn),g=C=>{var w,O;return Ce((O=(w=m==null?void 0:m.item)===null||w===void 0?void 0:w.classNames)===null||O===void 0?void 0:O[C],l==null?void 0:l[C])},v=C=>{var w,O;return Object.assign(Object.assign({},(O=(w=m==null?void 0:m.item)===null||w===void 0?void 0:w.styles)===null||O===void 0?void 0:O[C]),a==null?void 0:a[C])},y=()=>{let C=!1;return h.Children.forEach(r,w=>{typeof w=="string"&&(C=!0)}),C&&h.Children.count(r)>1},b=()=>f==="vertical"?!!o:!y(),_=p("list",n),S=i&&i.length>0&&pe.createElement("ul",{className:Ce(`${_}-item-action`,g("actions")),key:"actions",style:v("actions")},i.map((C,w)=>pe.createElement("li",{key:`${_}-item-action-${w}`},C,w!==i.length-1&&pe.createElement("em",{className:`${_}-item-action-split`})))),x=d?"div":"li",E=pe.createElement(x,Object.assign({},u,d?{}:{ref:t},{className:Ce(`${_}-item`,{[`${_}-item-no-flex`]:!b()},s)}),f==="vertical"&&o?[pe.createElement("div",{className:`${_}-item-main`,key:"content"},r,S),pe.createElement("div",{className:Ce(`${_}-item-extra`,g("extra")),key:"extra",style:v("extra")},o)]:[r,S,wo(o,{key:"extra"})]);return d?pe.createElement(j1,{ref:t,flex:1,style:c},E):E}),Zwe=Dht;Zwe.Meta=Pht;const Lht=e=>{const{listBorderedCls:t,componentCls:n,paddingLG:r,margin:i,itemPaddingSM:o,itemPaddingLG:a,marginLG:s,borderRadiusLG:l}=e;return{[t]:{border:`${Ie(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:l,[`${n}-header,${n}-footer,${n}-item`]:{paddingInline:r},[`${n}-pagination`]:{margin:`${Ie(i)} ${Ie(s)}`}},[`${t}${n}-sm`]:{[`${n}-item,${n}-header,${n}-footer`]:{padding:o}},[`${t}${n}-lg`]:{[`${n}-item,${n}-header,${n}-footer`]:{padding:a}}}},$ht=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 ${Ie(a)}`}}}}}},Fht=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:p,colorText:m,colorTextDescription:g,motionDurationSlow:v,lineWidth:y,headerBg:b,footerBg:_,emptyTextPadding:S,metaMarginBottom:x,avatarMarginRight:E,titleMarginBottom:C,descriptionFontSize:w}=e;return{[t]:Object.assign(Object.assign({},mr(e)),{position:"relative","--rc-virtual-list-scrollbar-bg":e.colorSplit,"*":{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:E},[`${t}-item-meta-content`]:{flex:"1 0",width:0,color:m},[`${t}-item-meta-title`]:{margin:`0 0 ${Ie(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:w,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 ${Ie(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:`${Ie(s)} 0`,color:g,fontSize:e.fontSizeSM,textAlign:"center"},[`${t}-empty-text`]:{padding:S,color:e.colorTextDisabled,fontSize:e.fontSize,textAlign:"center"},[`${t}-item-no-flex`]:{display:"block"}}),[`${t}-grid ${n}-col > ${t}-item`]:{display:"block",maxWidth:"100%",marginBlockEnd:p,paddingBlock:0,borderBlockEnd:"none"},[`${t}-vertical ${t}-item`]:{alignItems:"initial",[`${t}-item-main`]:{display:"block",flex:1},[`${t}-item-extra`]:{marginInlineStart:a},[`${t}-item-meta`]:{marginBlockEnd:x,[`${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 ${Ie(s)}`,"&:first-child":{paddingInlineStart:0}}}},[`${t}-split ${t}-item`]:{borderBlockEnd:`${Ie(e.lineWidth)} ${e.lineType} ${e.colorSplit}`,"&:last-child":{borderBlockEnd:"none"}},[`${t}-split ${t}-header`]:{borderBlockEnd:`${Ie(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},[`${t}-split${t}-empty ${t}-footer`]:{borderTop:`${Ie(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:`${Ie(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"}}}}},Bht=e=>({contentWidth:220,itemPadding:`${Ie(e.paddingContentVertical)} 0`,itemPaddingSM:`${Ie(e.paddingContentVerticalSM)} ${Ie(e.paddingContentHorizontal)}`,itemPaddingLG:`${Ie(e.paddingContentVerticalLG)} ${Ie(e.paddingContentHorizontalLG)}`,headerBg:"transparent",footerBg:"transparent",emptyTextPadding:e.padding,metaMarginBottom:e.padding,avatarMarginRight:e.padding,titleMarginBottom:e.paddingSM,descriptionFontSize:e.fontSize}),Hht=ir("List",e=>{const t=Un(e,{listBorderedCls:`${e.componentCls}-bordered`,minHeight:e.controlHeightLG});return[Fht(t),Lht(t),$ht(t)]},Bht);var jht=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);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 Uht(e,t){const{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:p=[],size:m,header:g,footer:v,loading:y=!1,rowKey:b,renderItem:_,locale:S}=e,x=jht(e,["pagination","prefixCls","bordered","split","className","rootClassName","style","children","itemLayout","loadMore","grid","dataSource","size","header","footer","loading","rowKey","renderItem","locale"]),E=n&&typeof n=="object"?n:{},[C,w]=h.useState(E.defaultCurrent||1),[O,T]=h.useState(E.defaultPageSize||10),{getPrefixCls:A,direction:I,className:N,style:D}=Vi("list"),{renderEmpty:M}=h.useContext(cn),k={current:1,total:0,position:"bottom"},P=Ee=>(Ne,Te)=>{var Ve;w(Ne),T(Te),n&&((Ve=n==null?void 0:n[Ee])===null||Ve===void 0||Ve.call(n,Ne,Te))},B=P("onChange"),G=P("onShowSizeChange"),L=(Ee,Ne)=>{if(!_)return null;let Te;return typeof b=="function"?Te=b(Ee):b?Te=Ee[b]:Te=Ee.key,Te||(Te=`list-item-${Ne}`),h.createElement(h.Fragment,{key:Te},_(Ee,Ne))},W=!!(d||n||v),j=A("list",r),[H,X,Q]=Hht(j);let ue=y;typeof ue=="boolean"&&(ue={spinning:ue});const ee=!!(ue!=null&&ue.spinning),K=mo(m);let se="";switch(K){case"large":se="lg";break;case"small":se="sm";break}const le=Ce(j,{[`${j}-vertical`]:u==="vertical",[`${j}-${se}`]:se,[`${j}-split`]:o,[`${j}-bordered`]:i,[`${j}-loading`]:ee,[`${j}-grid`]:!!f,[`${j}-something-after-last-item`]:W,[`${j}-rtl`]:I==="rtl"},N,a,s,X,Q),oe=Dw(k,{total:p.length,current:C,pageSize:O},n||{}),ne=Math.ceil(oe.total/oe.pageSize);oe.current=Math.min(oe.current,ne);const he=n&&h.createElement("div",{className:Ce(`${j}-pagination`)},h.createElement(qwe,Object.assign({align:"end"},oe,{onChange:B,onShowSizeChange:G})));let me=rt(p);n&&p.length>(oe.current-1)*oe.pageSize&&(me=rt(p).splice((oe.current-1)*oe.pageSize,oe.pageSize));const ce=Object.keys(f||{}).some(Ee=>["xs","sm","md","lg","xl","xxl"].includes(Ee)),re=f2(ce),ve=h.useMemo(()=>{for(let Ee=0;Ee<gg.length;Ee+=1){const Ne=gg[Ee];if(re[Ne])return Ne}},[re]),be=h.useMemo(()=>{if(!f)return;const Ee=ve&&f[ve]?f[ve]:f.column;if(Ee)return{width:`${100/Ee}%`,maxWidth:`${100/Ee}%`}},[JSON.stringify(f),ve]);let xe=ee&&h.createElement("div",{style:{minHeight:53}});if(me.length>0){const Ee=me.map(L);xe=f?h.createElement(S2,{gutter:f.gutter},h.Children.map(Ee,Ne=>h.createElement("div",{key:Ne==null?void 0:Ne.key,style:be},Ne))):h.createElement("ul",{className:`${j}-items`},Ee)}else!c&&!ee&&(xe=h.createElement("div",{className:`${j}-empty-text`},(S==null?void 0:S.emptyText)||(M==null?void 0:M("List"))||h.createElement(gS,{componentName:"List"})));const we=oe.position,de=h.useMemo(()=>({grid:f,itemLayout:u}),[JSON.stringify(f),u]);return H(h.createElement(UY.Provider,{value:de},h.createElement("div",Object.assign({ref:t,style:Object.assign(Object.assign({},D),l),className:le},x),(we==="top"||we==="both")&&he,g&&h.createElement("div",{className:`${j}-header`},g),h.createElement(Nc,Object.assign({},ue),xe,c),v&&h.createElement("div",{className:`${j}-footer`},v),d||(we==="bottom"||we==="both")&&he)))}const zht=h.forwardRef(Uht),Jwe=zht;Jwe.Item=Zwe;const Vht=(e,t=!1)=>t&&e==null?[]:Array.isArray(e)?e:[e];let qc=null,B0=e=>e(),Fw=[],Bw={};function Poe(){const{getContainer:e,duration:t,rtl:n,maxCount:r,top:i}=Bw,o=(e==null?void 0:e())||document.body;return{getContainer:()=>o,duration:t,rtl:n,maxCount:r,top:i}}const Ght=pe.forwardRef((e,t)=>{const{messageConfig:n,sync:r}=e,{getPrefixCls:i}=h.useContext(cn),o=Bw.prefixCls||i("message"),a=h.useContext(LH),[s,l]=rSe(Object.assign(Object.assign(Object.assign({},n),{prefixCls:o}),a.message));return pe.useImperativeHandle(t,()=>{const c=Object.assign({},s);return Object.keys(c).forEach(u=>{c[u]=(...d)=>(r(),s[u].apply(s,d))}),{instance:c,sync:r}}),l}),Wht=pe.forwardRef((e,t)=>{const[n,r]=pe.useState(Poe),i=()=>{r(Poe)};pe.useEffect(i,[]);const o=j_e(),a=o.getRootPrefixCls(),s=o.getIconPrefixCls(),l=o.getTheme(),c=pe.createElement(Ght,{ref:t,sync:i,messageConfig:n});return pe.createElement(Ln,{prefixCls:a,iconPrefixCls:s,theme:l},o.holderRender?o.holderRender(c):c)});function oD(){if(!qc){const e=document.createDocumentFragment(),t={fragment:e};qc=t,B0(()=>{kq()(pe.createElement(Wht,{ref:r=>{const{instance:i,sync:o}=r||{};Promise.resolve().then(()=>{!t.instance&&i&&(t.instance=i,t.sync=o,oD())})}}),e)});return}qc.instance&&(Fw.forEach(e=>{const{type:t,skipped:n}=e;if(!n)switch(t){case"open":{B0(()=>{const r=qc.instance.open(Object.assign(Object.assign({},Bw),e.config));r==null||r.then(e.resolve),e.setCloseFn(r)});break}case"destroy":B0(()=>{qc==null||qc.instance.destroy(e.key)});break;default:B0(()=>{var r;const i=(r=qc.instance)[t].apply(r,rt(e.args));i==null||i.then(e.resolve),e.setCloseFn(i)})}}),Fw=[])}function qht(e){Bw=Object.assign(Object.assign({},Bw),e),B0(()=>{var t;(t=qc==null?void 0:qc.sync)===null||t===void 0||t.call(qc)})}function Yht(e){const t=Nq(n=>{let r;const i={type:"open",config:e,resolve:n,setCloseFn:o=>{r=o}};return Fw.push(i),()=>{r?B0(()=>{r()}):i.skipped=!0}});return oD(),t}function Kht(e,t){const n=Nq(r=>{let i;const o={type:e,args:t,resolve:r,setCloseFn:a=>{i=a}};return Fw.push(o),()=>{i?B0(()=>{i()}):o.skipped=!0}});return oD(),n}const Qht=e=>{Fw.push({type:"destroy",key:e}),oD()},Xht=["success","info","warning","error","loading"],Zht={open:Yht,destroy:Qht,config:qht,useMessage:iSe,_InternalPanelDoNotUseOrYouWillBeFired:bQe},Vo=Zht;Xht.forEach(e=>{Vo[e]=(...t)=>Kht(e,t)});var Jht=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);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 emt=e=>{const{prefixCls:t,className:n,closeIcon:r,closable:i,type:o,title:a,children:s,footer:l}=e,c=Jht(e,["prefixCls","className","closeIcon","closable","type","title","children","footer"]),{getPrefixCls:u}=h.useContext(cn),d=u(),f=t||u("modal"),p=gi(d),[m,g,v]=qSe(f,p),y=`${f}-confirm`;let b={};return o?b={closable:i??!1,title:"",footer:"",children:h.createElement(KSe,Object.assign({},e,{prefixCls:f,confirmPrefixCls:y,rootPrefixCls:d,content:s}))}:b={closable:i??!0,title:a,footer:l!==null&&h.createElement(USe,Object.assign({},e)),children:s},m(h.createElement(OSe,Object.assign({prefixCls:f,className:Ce(g,`${f}-pure-panel`,o&&y,o&&`${y}-${o}`,n,v,p)},c,{closeIcon:jSe(f,r),closable:i},b)))},tmt=sEe(emt);function eTe(e){return l2(JSe(e))}const Qo=YSe;Qo.useModal=iEe;Qo.info=function(t){return l2(eEe(t))};Qo.success=function(t){return l2(tEe(t))};Qo.error=function(t){return l2(nEe(t))};Qo.warning=eTe;Qo.warn=eTe;Qo.confirm=function(t){return l2(rEe(t))};Qo.destroyAll=function(){for(;$0.length;){const t=$0.pop();t&&t()}};Qo.config=Let;Qo._InternalPanelDoNotUseOrYouWillBeFired=tmt;const nmt=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}}}}},rmt=e=>{const{zIndexPopupBase:t}=e;return{zIndexPopup:t+60}},tTe=ir("Popconfirm",e=>nmt(e),rmt,{resetStyle:!1});var imt=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);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 nTe=e=>{const{prefixCls:t,okButtonProps:n,cancelButtonProps:r,title:i,description:o,cancelText:a,okText:s,okType:l="primary",icon:c=h.createElement(Ag,null),showCancel:u=!0,close:d,onConfirm:f,onCancel:p,onPopupClick:m}=e,{getPrefixCls:g}=h.useContext(cn),[v]=Ma("Popconfirm",gu.Popconfirm),y=m_(i),b=m_(o);return h.createElement("div",{className:`${t}-inner-content`,onClick:m},h.createElement("div",{className:`${t}-message`},c&&h.createElement("span",{className:`${t}-message-icon`},c),h.createElement("div",{className:`${t}-message-text`},y&&h.createElement("div",{className:`${t}-title`},y),b&&h.createElement("div",{className:`${t}-description`},b))),h.createElement("div",{className:`${t}-buttons`},u&&h.createElement(Dn,Object.assign({onClick:p,size:"small"},r),a||(v==null?void 0:v.cancelText)),h.createElement(jq,{buttonProps:Object.assign(Object.assign({size:"small"},Pq(l)),n),actionFn:f,close:d,prefixCls:g("btn"),quitOnNullishReturnValue:!0,emitEvent:!0},s||(v==null?void 0:v.okText))))},omt=e=>{const{prefixCls:t,placement:n,className:r,style:i}=e,o=imt(e,["prefixCls","placement","className","style"]),{getPrefixCls:a}=h.useContext(cn),s=a("popconfirm",t),[l]=tTe(s);return l(h.createElement(BEe,{placement:n,className:Ce(s,r),style:i,content:h.createElement(nTe,Object.assign({prefixCls:s},o))}))};var amt=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);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 smt=h.forwardRef((e,t)=>{var n,r;const{prefixCls:i,placement:o="top",trigger:a="click",okType:s="primary",icon:l=h.createElement(Ag,null),children:c,overlayClassName:u,onOpenChange:d,onVisibleChange:f,overlayStyle:p,styles:m,classNames:g}=e,v=amt(e,["prefixCls","placement","trigger","okType","icon","children","overlayClassName","onOpenChange","onVisibleChange","overlayStyle","styles","classNames"]),{getPrefixCls:y,className:b,style:_,classNames:S,styles:x}=Vi("popconfirm"),[E,C]=Pn(!1,{value:(n=e.open)!==null&&n!==void 0?n:e.visible,defaultValue:(r=e.defaultOpen)!==null&&r!==void 0?r:e.defaultVisible}),w=(P,B)=>{C(P,!0),f==null||f(P),d==null||d(P,B)},O=P=>{w(!1,P)},T=P=>{var B;return(B=e.onConfirm)===null||B===void 0?void 0:B.call(void 0,P)},A=P=>{var B;w(!1,P),(B=e.onCancel)===null||B===void 0||B.call(void 0,P)},I=(P,B)=>{const{disabled:G=!1}=e;G||w(P,B)},N=y("popconfirm",i),D=Ce(N,b,u,S.root,g==null?void 0:g.root),M=Ce(S.body,g==null?void 0:g.body),[k]=tTe(N);return k(h.createElement(bu,Object.assign({},ur(v,["title"]),{trigger:a,placement:o,onOpenChange:I,open:E,ref:t,classNames:{root:D,body:M},styles:{root:Object.assign(Object.assign(Object.assign(Object.assign({},x.root),_),p),m==null?void 0:m.root),body:Object.assign(Object.assign({},x.body),m==null?void 0:m.body)},content:h.createElement(nTe,Object.assign({okType:s,icon:l},e,{prefixCls:N,close:O,onConfirm:T,onCancel:A})),"data-popover-inject":!0}),c))}),aD=smt;aD._InternalPanelDoNotUseOrYouWillBeFired=omt;var lmt={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},cmt=function(){var t=h.useRef([]),n=h.useRef(null);return h.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},Doe=0,umt=Aa();function dmt(){var e;return umt?(e=Doe,Doe+=1):e="TEST_OR_SSR",e}const fmt=function(e){var t=h.useState(),n=Re(t,2),r=n[0],i=n[1];return h.useEffect(function(){i("rc_progress_".concat(dmt()))},[]),e||r};var Loe=function(t){var n=t.bg,r=t.children;return h.createElement("div",{style:{width:"100%",height:"100%",background:n}},r)};function $oe(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 pmt=h.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&&qt(r)==="object",p=f?"#FFF":void 0,m=u/2,g=h.createElement("circle",{className:"".concat(n,"-circle-path"),r:o,cx:m,cy:m,stroke:p,strokeLinecap:l,strokeWidth:c,opacity:s===0?0:1,style:a,ref:t});if(!f)return g;var v="".concat(i,"-conic"),y=d?"".concat(180+d/2,"deg"):"0deg",b=$oe(r,(360-d)/360),_=$oe(r,1),S="conic-gradient(from ".concat(y,", ").concat(b.join(", "),")"),x="linear-gradient(to ".concat(d?"bottom":"top",", ").concat(_.join(", "),")");return h.createElement(h.Fragment,null,h.createElement("mask",{id:v},g),h.createElement("foreignObject",{x:0,y:0,width:u,height:u,mask:"url(#".concat(v,")")},h.createElement(Loe,{bg:x},h.createElement(Loe,{bg:S}))))}),AC=100,xL=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),p=a===0?0:{bottom:0,top:180,left:90,right:-90}[s],m=(100-i)/100*n;c==="round"&&i!==100&&(m+=u/2,m>=n&&(m=n-.01));var g=AC/2;return{stroke:typeof l=="string"?l:void 0,strokeDasharray:"".concat(n,"px ").concat(t),strokeDashoffset:m+d,transform:"rotate(".concat(o+f+p,"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}},hmt=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function Foe(e){var t=e??[];return Array.isArray(t)?t:[t]}var mmt=function(t){var n=z(z({},lmt),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,p=n.style,m=n.className,g=n.strokeColor,v=n.percent,y=kt(n,hmt),b=AC/2,_=fmt(r),S="".concat(_,"-gradient"),x=b-a/2,E=Math.PI*2*x,C=c>0?90+c/2:-90,w=E*((360-c)/360),O=qt(o)==="object"?o:{count:o,gap:2},T=O.count,A=O.gap,I=Foe(v),N=Foe(g),D=N.find(function(W){return W&&qt(W)==="object"}),M=D&&qt(D)==="object",k=M?"butt":f,P=xL(E,w,0,100,C,c,u,d,k,a),B=cmt(),G=function(){var j=0;return I.map(function(H,X){var Q=N[X]||N[N.length-1],ue=xL(E,w,j,H,C,c,u,Q,k,a);return j+=H,h.createElement(pmt,{key:X,color:Q,ptg:H,radius:x,prefixCls:i,gradientId:S,style:ue,strokeLinecap:k,strokeWidth:a,gapDegree:c,ref:function(K){B[X]=K},size:AC})}).reverse()},L=function(){var j=Math.round(T*(I[0]/100)),H=100/T,X=0;return new Array(T).fill(null).map(function(Q,ue){var ee=ue<=j-1?N[0]:d,K=ee&&qt(ee)==="object"?"url(#".concat(S,")"):void 0,se=xL(E,w,X,H,C,c,u,ee,"butt",a,A);return X+=(w-se.strokeDashoffset+A)*100/w,h.createElement("circle",{key:ue,className:"".concat(i,"-circle-path"),r:x,cx:b,cy:b,stroke:K,strokeWidth:a,opacity:1,style:se,ref:function(oe){B[ue]=oe}})})};return h.createElement("svg",Xe({className:Ce("".concat(i,"-circle"),m),viewBox:"0 0 ".concat(AC," ").concat(AC),style:p,id:r,role:"presentation"},y),!T&&h.createElement("circle",{className:"".concat(i,"-circle-trail"),r:x,cx:b,cy:b,stroke:d,strokeLinecap:k,strokeWidth:s||a,style:P}),T?L():G())};function rg(e){return!e||e<0?0:e>100?100:e}function Q4({success:e,successPercent:t}){let n=t;return e&&"progress"in e&&(n=e.progress),e&&"percent"in e&&(n=e.percent),n}const gmt=({percent:e,success:t,successPercent:n})=>{const r=rg(Q4({success:t,successPercent:n}));return[r,rg(rg(e)-r)]},vmt=({success:e={},strokeColor:t})=>{const{strokeColor:n}=e;return[n||l1.green,t||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]},bmt=3,ymt=e=>bmt/e*100,_mt=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,p]=sD(u,"circle");let{strokeWidth:m}=e;m===void 0&&(m=Math.max(ymt(f),6));const g={width:f,height:p,fontSize:f*.15+6},v=h.useMemo(()=>{if(o||o===0)return o;if(s==="dashboard")return 75},[o,s]),y=gmt(e),b=i||s==="dashboard"&&"bottom"||void 0,_=Object.prototype.toString.call(e.strokeColor)==="[object Object]",S=vmt({success:c,strokeColor:e.strokeColor}),x=Ce(`${t}-inner`,{[`${t}-circle-gradient`]:_}),E=h.createElement(mmt,{steps:d,percent:d?y[1]:y,strokeWidth:m,trailWidth:m,strokeColor:d?S[1]:S,strokeLinecap:r,trailColor:n,prefixCls:t,gapDegree:v,gapPosition:b}),C=f<=20,w=h.createElement("div",{className:x,style:g},E,!C&&l);return C?h.createElement(Na,{title:l},w):w},X4="--progress-line-stroke-color",rTe="--progress-percent",Boe=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}})},Smt=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:Object.assign(Object.assign({},mr(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(${X4})`]},height:"100%",width:`calc(1 / var(${rTe}) * 100%)`,display:"block"},[`&${t}-bg-inner`]:{minWidth:"max-content","&::after":{content:"none"},[`${t}-text-inner`]:{color:e.colorWhite,[`&${t}-text-bright`]:{color:"rgba(0, 0, 0, 0.45)"}}}},[`${t}-success-bg`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,backgroundColor:e.colorSuccess},[`${t}-text`]:{display:"inline-block",marginInlineStart:e.marginXS,color:e.colorText,lineHeight:1,width:"2em",whiteSpace:"nowrap",textAlign:"start",verticalAlign:"middle",wordBreak:"normal",[n]:{fontSize:e.fontSize},[`&${t}-text-outer`]:{width:"max-content"},[`&${t}-text-outer${t}-text-start`]:{width:"max-content",marginInlineStart:0,marginInlineEnd:e.marginXS}},[`${t}-text-inner`]:{display:"flex",justifyContent:"center",alignItems:"center",width:"100%",height:"100%",marginInlineStart:0,padding:`0 ${Ie(e.paddingXXS)}`,[`&${t}-text-start`]:{justifyContent:"start"},[`&${t}-text-end`]:{justifyContent:"end"}},[`&${t}-status-active`]:{[`${t}-bg::before`]:{position:"absolute",inset:0,backgroundColor:e.colorBgContainer,borderRadius:e.lineBorderRadius,opacity:0,animationName:Boe(),animationDuration:e.progressActiveMotionDuration,animationTimingFunction:e.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${t}-rtl${t}-status-active`]:{[`${t}-bg::before`]:{animationName:Boe(!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}}})}},Emt=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"}}}},Cmt=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}}}}}},xmt=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:{[`${t}-small&-line, ${t}-small&-line ${t}-text ${n}`]:{fontSize:e.fontSizeSM}}}},wmt=e=>({circleTextColor:e.colorText,defaultColor:e.colorInfo,remainingColor:e.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em",circleIconFontSize:`${e.fontSize/e.fontSizeSM}em`}),Tmt=ir("Progress",e=>{const t=e.calc(e.marginXXS).div(2).equal(),n=Un(e,{progressStepMarginInlineEnd:t,progressStepMinWidth:t,progressActiveMotionDuration:"2.4s"});return[Smt(n),Emt(n),Cmt(n),xmt(n)]},wmt);var Omt=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);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 Rmt=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(({key:n,value:r})=>`${r} ${n}%`).join(", ")},Amt=(e,t)=>{const{from:n=l1.blue,to:r=l1.blue,direction:i=t==="rtl"?"to left":"to right"}=e,o=Omt(e,["from","to","direction"]);if(Object.keys(o).length!==0){const s=Rmt(o),l=`linear-gradient(${i}, ${s})`;return{background:l,[X4]:l}}const a=`linear-gradient(${i}, ${n}, ${r})`;return{background:a,[X4]:a}},Imt=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:p}=u,m=a&&typeof a!="string"?Amt(a,n):{[X4]: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},S=Object.assign(Object.assign({width:`${rg(r)}%`,height:b,borderRadius:g},m),{[rTe]:rg(r)/100}),x=Q4(e),E={width:`${rg(x)}%`,height:b,borderRadius:g,backgroundColor:d==null?void 0:d.strokeColor},C={width:y<0?"100%":y},w=h.createElement("div",{className:`${t}-inner`,style:_},h.createElement("div",{className:Ce(`${t}-bg`,`${t}-bg-${p}`),style:S},p==="inner"&&l),x!==void 0&&h.createElement("div",{className:`${t}-success-bg`,style:E})),O=p==="outer"&&f==="start",T=p==="outer"&&f==="end";return p==="outer"&&f==="center"?h.createElement("div",{className:`${t}-layout-bottom`},w,l):h.createElement("div",{className:`${t}-outer`,style:C},O&&l,w,T&&l)},Nmt=e=>{const{size:t,steps:n,rounding:r=Math.round,percent:i=0,strokeWidth:o=8,strokeColor:a,trailColor:s=null,prefixCls:l,children:c}=e,u=r(n*(i/100)),f=t??[t==="small"?2:14,o],[p,m]=sD(f,"step",{steps:n,strokeWidth:o}),g=p/n,v=Array.from({length:n});for(let y=0;y<n;y++){const b=Array.isArray(a)?a[y]:a;v[y]=h.createElement("div",{key:y,className:Ce(`${l}-steps-item`,{[`${l}-steps-item-active`]:y<=u-1}),style:{backgroundColor:y<=u-1?b:s,width:g,height:m}})}return h.createElement("div",{className:`${l}-steps-outer`},v,c)};var Mmt=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);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 kmt=["normal","exception","active","success"],iTe=h.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:p,percentPosition:m={}}=e,g=Mmt(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,S=h.useMemo(()=>{if(b){const G=typeof b=="string"?b:Object.values(b)[0];return new or(G).isLight()}return!1},[a]),x=h.useMemo(()=>{var G,L;const W=Q4(e);return parseInt(W!==void 0?(G=W??0)===null||G===void 0?void 0:G.toString():(L=s??0)===null||L===void 0?void 0:L.toString(),10)},[s,e.success,e.successPercent]),E=h.useMemo(()=>!kmt.includes(d)&&x>=100?"success":d||"normal",[d,x]),{getPrefixCls:C,direction:w,progress:O}=h.useContext(cn),T=C("progress",n),[A,I,N]=Tmt(T),D=u==="line",M=D&&!o,k=h.useMemo(()=>{if(!c)return null;const G=Q4(e);let L;const W=f||(H=>`${H}%`),j=D&&S&&y==="inner";return y==="inner"||f||E!=="exception"&&E!=="success"?L=W(rg(s),rg(G)):E==="exception"?L=D?h.createElement(qf,null):h.createElement(Yf,null):E==="success"&&(L=D?h.createElement(vv,null):h.createElement(Qp,null)),h.createElement("span",{className:Ce(`${T}-text`,{[`${T}-text-bright`]:j,[`${T}-text-${v}`]:M,[`${T}-text-${y}`]:M}),title:typeof L=="string"?L:void 0},L)},[c,s,x,E,u,T,f]);let P;u==="line"?P=o?h.createElement(Nmt,Object.assign({},e,{strokeColor:_,prefixCls:T,steps:typeof o=="object"?o.count:o}),k):h.createElement(Imt,Object.assign({},e,{strokeColor:b,prefixCls:T,direction:w,percentPosition:{align:v,type:y}}),k):(u==="circle"||u==="dashboard")&&(P=h.createElement(_mt,Object.assign({},e,{strokeColor:b,prefixCls:T,progressStatus:E}),k));const B=Ce(T,`${T}-status-${E}`,{[`${T}-${u==="dashboard"&&"circle"||u}`]:u!=="line",[`${T}-inline-circle`]:u==="circle"&&sD(l,"circle")[0]<=20,[`${T}-line`]:M,[`${T}-line-align-${v}`]:M,[`${T}-line-position-${y}`]:M,[`${T}-steps`]:o,[`${T}-show-info`]:c,[`${T}-${l}`]:typeof l=="string",[`${T}-rtl`]:w==="rtl"},O==null?void 0:O.className,r,i,I,N);return A(h.createElement("div",Object.assign({ref:t,style:Object.assign(Object.assign({},O==null?void 0:O.style),p),className:B,role:"progressbar","aria-valuenow":x,"aria-valuemin":0,"aria-valuemax":100},ur(g,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])),P))});function yf(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=lP(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 TS,C2;function Cl(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 ap(e,t){return(e>>>t&1)!=0}function Jl(e){if(!e)throw new Error("Assertion error")}var _f=function(){function e(t,n){Qr(this,e),te(this,"modeBits",void 0),te(this,"numBitsCharCount",void 0),this.modeBits=t,this.numBitsCharCount=n}return Xr(e,[{key:"numCharCountBits",value:function(n){return this.numBitsCharCount[Math.floor((n+7)/17)]}}]),e}();TS=_f;te(_f,"NUMERIC",new TS(1,[10,12,14]));te(_f,"ALPHANUMERIC",new TS(2,[9,11,13]));te(_f,"BYTE",new TS(4,[8,16,16]));te(_f,"KANJI",new TS(8,[8,10,12]));te(_f,"ECI",new TS(7,[0,0,0]));var ou=Xr(function e(t,n){Qr(this,e),te(this,"ordinal",void 0),te(this,"formatBits",void 0),this.ordinal=t,this.formatBits=n});C2=ou;te(ou,"LOW",new C2(0,1));te(ou,"MEDIUM",new C2(1,0));te(ou,"QUARTILE",new C2(2,3));te(ou,"HIGH",new C2(3,2));var d1=function(){function e(t,n,r){if(Qr(this,e),te(this,"mode",void 0),te(this,"numChars",void 0),te(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 Xr(e,[{key:"getData",value:function(){return this.bitData.slice()}}],[{key:"makeBytes",value:function(n){var r=[],i=yf(n),o;try{for(i.s();!(o=i.n()).done;){var a=o.value;Cl(a,8,r)}}catch(s){i.e(s)}finally{i.f()}return new e(_f.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);Cl(parseInt(n.substring(i,i+o),10),o*3+1,r),i+=o}return new e(_f.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)),Cl(o,11,r)}return i<n.length&&Cl(e.ALPHANUMERIC_CHARSET.indexOf(n.charAt(i)),6,r),new e(_f.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)Cl(n,8,r);else if(n<16384)Cl(2,2,r),Cl(n,14,r);else if(n<1e6)Cl(6,3,r),Cl(n,21,r);else throw new RangeError("ECI assignment value out of range");return new e(_f.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=yf(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}();te(d1,"NUMERIC_REGEX",/^[0-9]*$/);te(d1,"ALPHANUMERIC_REGEX",/^[A-Z0-9 $%*+.\/:-]*$/);te(d1,"ALPHANUMERIC_CHARSET","0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:");var Sh=function(){function e(t,n,r,i){Qr(this,e),te(this,"size",void 0),te(this,"mask",void 0),te(this,"modules",[]),te(this,"isFunction",[]),te(this,"version",void 0),te(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)}Jl(0<=o&&o<=7),this.mask=o,this.applyMask(o),this.drawFormatBits(o),this.isFunction=[]}return Xr(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;Jl(a>>>15==0);for(var s=0;s<=5;s++)this.setFunctionModule(8,s,ap(a,s));this.setFunctionModule(8,7,ap(a,6)),this.setFunctionModule(8,8,ap(a,7)),this.setFunctionModule(7,8,ap(a,8));for(var l=9;l<15;l++)this.setFunctionModule(14-l,8,ap(a,l));for(var c=0;c<8;c++)this.setFunctionModule(this.size-1-c,8,ap(a,c));for(var u=8;u<15;u++)this.setFunctionModule(8,this.size-15+u,ap(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;Jl(i>>>18==0);for(var o=0;o<18;o++){var a=ap(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,p=0;f<o;f++){var m=n.slice(p,p+c-a+(f<l?0:1));p+=m.length;var g=e.reedSolomonComputeRemainder(m,d);f<l&&m.push(0),u.push(m.concat(g))}for(var v=[],y=function(S){u.forEach(function(x,E){(S!=c-a||E>=l)&&v.push(x[S])})},b=0;b<u[0].length;b++)y(b);return Jl(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]=ap(n[r>>>3],7-(r&7)),r++)}}Jl(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 p=0;p<this.size-1;p++)for(var m=0;m<this.size-1;m++){var g=this.modules[p][m];g==this.modules[p][m+1]&&g==this.modules[p+1][m]&&g==this.modules[p+1][m+1]&&(n+=e.PENALTY_N2)}var v=0,y=yf(this.modules),b;try{for(y.s();!(b=y.n()).done;){var _=b.value;v=_.reduce(function(E,C){return E+(C?1:0)},v)}}catch(E){y.e(E)}finally{y.f()}var S=this.size*this.size,x=Math.ceil(Math.abs(v*20-S*10)/S)-1;return Jl(0<=x&&x<=9),n+=x*e.PENALTY_N4,Jl(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];Jl(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=d1.makeSegments(n);return e.encodeSegments(i,r)}},{key:"encodeBinary",value:function(n,r){var i=d1.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=d1.getTotalBits(n,l);if(d<=u){c=d;break}if(l>=o)throw new RangeError("Data too long")}for(var f=r,p=0,m=[ou.MEDIUM,ou.QUARTILE,ou.HIGH];p<m.length;p++){var g=m[p];s&&c<=e.getNumDataCodewords(l,g)*8&&(f=g)}var v=[],y=yf(n),b;try{for(y.s();!(b=y.n()).done;){var _=b.value;Cl(_.mode.modeBits,4,v),Cl(_.numChars,_.mode.numCharCountBits(l),v);var S=yf(_.getData()),x;try{for(S.s();!(x=S.n()).done;){var E=x.value;v.push(E)}}catch(T){S.e(T)}finally{S.f()}}}catch(T){y.e(T)}finally{y.f()}Jl(v.length==c);var C=e.getNumDataCodewords(l,f)*8;Jl(v.length<=C),Cl(0,Math.min(4,C-v.length),v),Cl(0,(8-v.length%8)%8,v),Jl(v.length%8==0);for(var w=236;v.length<C;w^=253)Cl(w,8,v);for(var O=[];O.length*8<v.length;)O.push(0);return v.forEach(function(T,A){return O[A>>>3]|=T<<7-(A&7)}),new e(l,f,O,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 Jl(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=yf(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 Jl(i>>>8==0),i}}]),e}();te(Sh,"MIN_VERSION",1);te(Sh,"MAX_VERSION",40);te(Sh,"PENALTY_N1",3);te(Sh,"PENALTY_N2",3);te(Sh,"PENALTY_N3",40);te(Sh,"PENALTY_N4",10);te(Sh,"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]]);te(Sh,"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 Pmt={L:ou.LOW,M:ou.MEDIUM,Q:ou.QUARTILE,H:ou.HIGH},oTe=128,aTe="L",sTe="#FFFFFF",lTe="#000000",cTe=!1,uTe=1,Dmt=4,Lmt=0,$mt=.1;function dTe(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 fTe(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 Fmt(e,t,n,r){if(r==null)return null;var i=e.length+n*2,o=Math.floor(t*$mt),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 p=Math.floor(c),m=Math.floor(u),g=Math.ceil(s+c-p),v=Math.ceil(l+u-m);f={x:p,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 Bmt(e,t){return t!=null?Math.floor(t):e?Dmt:Lmt}var Hmt=function(){try{new Path2D().addPath(new Path2D)}catch{return!1}return!0}();function pTe(e){var t=e.value,n=e.level,r=e.minVersion,i=e.includeMargin,o=e.marginSize,a=e.imageSettings,s=e.size,l=h.useMemo(function(){var m=d1.makeSegments(t);return Sh.encodeSegments(m,Pmt[n],r)},[t,n,r]),c=h.useMemo(function(){var m=l.getModules(),g=Bmt(i,o),v=m.length+g*2,y=Fmt(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,p=c.calculatedImageSettings;return{qrcode:l,margin:d,cells:u,numCells:f,calculatedImageSettings:p}}var jmt=["value","size","level","bgColor","fgColor","includeMargin","minVersion","marginSize","style","imageSettings"],hTe=pe.forwardRef(function(t,n){var r=t.value,i=t.size,o=i===void 0?oTe:i,a=t.level,s=a===void 0?aTe:a,l=t.bgColor,c=l===void 0?sTe:l,u=t.fgColor,d=u===void 0?lTe:u,f=t.includeMargin,p=f===void 0?cTe:f,m=t.minVersion,g=m===void 0?uTe:m,v=t.marginSize,y=t.style,b=t.imageSettings,_=kt(t,jmt),S=b==null?void 0:b.src,x=h.useRef(null),E=h.useRef(null),C=h.useCallback(function(B){x.current=B,typeof n=="function"?n(B):n&&(n.current=B)},[n]),w=h.useState(!1),O=Re(w,2),T=O[1],A=pTe({value:r,level:s,minVersion:g,includeMargin:p,marginSize:v,imageSettings:b,size:o}),I=A.margin,N=A.cells,D=A.numCells,M=A.calculatedImageSettings;h.useEffect(function(){if(x.current!=null){var B=x.current,G=B.getContext("2d");if(!G)return;var L=N,W=E.current,j=M!=null&&W!==null&&W.complete&&W.naturalHeight!==0&&W.naturalWidth!==0;j&&M.excavation!=null&&(L=fTe(N,M.excavation));var H=window.devicePixelRatio||1;B.height=B.width=o*H;var X=o/D*H;G.scale(X,X),G.fillStyle=c,G.fillRect(0,0,D,D),G.fillStyle=d,Hmt?G.fill(new Path2D(dTe(L,I))):N.forEach(function(Q,ue){Q.forEach(function(ee,K){ee&&G.fillRect(K+I,ue+I,1,1)})}),M&&(G.globalAlpha=M.opacity),j&&G.drawImage(W,M.x+I,M.y+I,M.w,M.h)}}),h.useEffect(function(){T(!1)},[S]);var k=z({height:o,width:o},y),P=null;return S!=null&&(P=pe.createElement("img",{src:S,key:S,style:{display:"none"},onLoad:function(){T(!0)},ref:E,crossOrigin:M==null?void 0:M.crossOrigin})),pe.createElement(pe.Fragment,null,pe.createElement("canvas",Xe({style:k,height:o,width:o,ref:C,role:"img"},_)),P)});hTe.displayName="QRCodeCanvas";var Umt=["value","size","level","bgColor","fgColor","includeMargin","minVersion","title","marginSize","imageSettings"],mTe=pe.forwardRef(function(t,n){var r=t.value,i=t.size,o=i===void 0?oTe:i,a=t.level,s=a===void 0?aTe:a,l=t.bgColor,c=l===void 0?sTe:l,u=t.fgColor,d=u===void 0?lTe:u,f=t.includeMargin,p=f===void 0?cTe:f,m=t.minVersion,g=m===void 0?uTe:m,v=t.title,y=t.marginSize,b=t.imageSettings,_=kt(t,Umt),S=pTe({value:r,level:s,minVersion:g,includeMargin:p,marginSize:y,imageSettings:b,size:o}),x=S.margin,E=S.cells,C=S.numCells,w=S.calculatedImageSettings,O=E,T=null;b!=null&&w!=null&&(w.excavation!=null&&(O=fTe(E,w.excavation)),T=pe.createElement("image",{href:b.src,height:w.h,width:w.w,x:w.x+x,y:w.y+x,preserveAspectRatio:"none",opacity:w.opacity,crossOrigin:w.crossOrigin}));var A=dTe(O,x);return pe.createElement("svg",Xe({height:o,width:o,viewBox:"0 0 ".concat(C," ").concat(C),ref:n,role:"img"},_),!!v&&pe.createElement("title",null,v),pe.createElement("path",{fill:c,d:"M0,0 h".concat(C,"v").concat(C,"H0z"),shapeRendering:"crispEdges"}),pe.createElement("path",{fill:d,d:A,shapeRendering:"crispEdges"}),T)});mTe.displayName="QRCodeSVG";var zmt={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"},Vmt=function(t,n){return h.createElement(Mn,Xe({},t,{ref:n,icon:zmt}))},Gmt=h.forwardRef(Vmt),Wmt={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"},qmt=function(t,n){return h.createElement(Mn,Xe({},t,{ref:n,icon:Wmt}))},Ymt=h.forwardRef(qmt),Kmt={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"},Qmt=function(t,n){return h.createElement(Mn,Xe({},t,{ref:n,icon:Kmt}))},Xmt=h.forwardRef(Qmt),Zmt={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"},Jmt=function(t,n){return h.createElement(Mn,Xe({},t,{ref:n,icon:Zmt}))},egt=h.forwardRef(Jmt),tgt={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"},ngt=function(t,n){return h.createElement(Mn,Xe({},t,{ref:n,icon:tgt}))},rgt=h.forwardRef(ngt),igt={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"},ogt=function(t,n){return h.createElement(Mn,Xe({},t,{ref:n,icon:igt}))},agt=h.forwardRef(ogt),sgt={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"},lgt=function(t,n){return h.createElement(Mn,Xe({},t,{ref:n,icon:sgt}))},cgt=h.forwardRef(lgt),ugt={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"},dgt=function(t,n){return h.createElement(Mn,Xe({},t,{ref:n,icon:ugt}))},x2=h.forwardRef(dgt),fgt={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"},pgt=function(t,n){return h.createElement(Mn,Xe({},t,{ref:n,icon:fgt}))},hgt=h.forwardRef(pgt),mgt={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"},ggt=function(t,n){return h.createElement(Mn,Xe({},t,{ref:n,icon:mgt}))},Hw=h.forwardRef(ggt),vgt={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"},bgt=function(t,n){return h.createElement(Mn,Xe({},t,{ref:n,icon:vgt}))},ygt=h.forwardRef(bgt),_gt={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"},Sgt=function(t,n){return h.createElement(Mn,Xe({},t,{ref:n,icon:_gt}))},gTe=h.forwardRef(Sgt),Egt={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"},Cgt=function(t,n){return h.createElement(Mn,Xe({},t,{ref:n,icon:Egt}))},xgt=h.forwardRef(Cgt),wgt={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"},Tgt=function(t,n){return h.createElement(Mn,Xe({},t,{ref:n,icon:wgt}))},Ogt=h.forwardRef(Tgt),Rgt={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"},Agt=function(t,n){return h.createElement(Mn,Xe({},t,{ref:n,icon:Rgt}))},Igt=h.forwardRef(Agt),Ngt={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"},Mgt=function(t,n){return h.createElement(Mn,Xe({},t,{ref:n,icon:Ngt}))},vTe=h.forwardRef(Mgt),kgt={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"},Pgt=function(t,n){return h.createElement(Mn,Xe({},t,{ref:n,icon:kgt}))},Dgt=h.forwardRef(Pgt),Lgt={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"},$gt=function(t,n){return h.createElement(Mn,Xe({},t,{ref:n,icon:Lgt}))},Fgt=h.forwardRef($gt),Bgt={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"},Hgt=function(t,n){return h.createElement(Mn,Xe({},t,{ref:n,icon:Bgt}))},jgt=h.forwardRef(Hgt),Ugt={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"},zgt=function(t,n){return h.createElement(Mn,Xe({},t,{ref:n,icon:Ugt}))},Vgt=h.forwardRef(zgt),Ggt={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"},Wgt=function(t,n){return h.createElement(Mn,Xe({},t,{ref:n,icon:Ggt}))},qgt=h.forwardRef(Wgt),Ygt={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"},Kgt=function(t,n){return h.createElement(Mn,Xe({},t,{ref:n,icon:Ygt}))},xv=h.forwardRef(Kgt),Qgt={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"},Xgt=function(t,n){return h.createElement(Mn,Xe({},t,{ref:n,icon:Qgt}))},Zgt=h.forwardRef(Xgt),Jgt={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"},e0t=function(t,n){return h.createElement(Mn,Xe({},t,{ref:n,icon:Jgt}))},t0t=h.forwardRef(e0t),n0t={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"},r0t=function(t,n){return h.createElement(Mn,Xe({},t,{ref:n,icon:n0t}))},Z4=h.forwardRef(r0t),i0t={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"},o0t=function(t,n){return h.createElement(Mn,Xe({},t,{ref:n,icon:i0t}))},a0t=h.forwardRef(o0t),s0t={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"},l0t=function(t,n){return h.createElement(Mn,Xe({},t,{ref:n,icon:s0t}))},w2=h.forwardRef(l0t),c0t={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"},u0t=function(t,n){return h.createElement(Mn,Xe({},t,{ref:n,icon:c0t}))},d0t=h.forwardRef(u0t),f0t={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"},p0t=function(t,n){return h.createElement(Mn,Xe({},t,{ref:n,icon:f0t}))},h0t=h.forwardRef(p0t),m0t={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"},g0t=function(t,n){return h.createElement(Mn,Xe({},t,{ref:n,icon:m0t}))},v0t=h.forwardRef(g0t),b0t={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"},y0t=function(t,n){return h.createElement(Mn,Xe({},t,{ref:n,icon:b0t}))},_0t=h.forwardRef(y0t),S0t={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"},E0t=function(t,n){return h.createElement(Mn,Xe({},t,{ref:n,icon:S0t}))},C0t=h.forwardRef(E0t),x0t={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"},w0t=function(t,n){return h.createElement(Mn,Xe({},t,{ref:n,icon:x0t}))},T0t=h.forwardRef(w0t),O0t={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"},R0t=function(t,n){return h.createElement(Mn,Xe({},t,{ref:n,icon:O0t}))},A0t=h.forwardRef(R0t),I0t={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"},N0t=function(t,n){return h.createElement(Mn,Xe({},t,{ref:n,icon:I0t}))},bTe=h.forwardRef(N0t),M0t={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"},k0t=function(t,n){return h.createElement(Mn,Xe({},t,{ref:n,icon:M0t}))},P0t=h.forwardRef(k0t),D0t={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"},L0t=function(t,n){return h.createElement(Mn,Xe({},t,{ref:n,icon:D0t}))},zY=h.forwardRef(L0t),$0t={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"},F0t=function(t,n){return h.createElement(Mn,Xe({},t,{ref:n,icon:$0t}))},B0t=h.forwardRef(F0t),H0t={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"},j0t=function(t,n){return h.createElement(Mn,Xe({},t,{ref:n,icon:H0t}))},lD=h.forwardRef(j0t),U0t={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"},z0t=function(t,n){return h.createElement(Mn,Xe({},t,{ref:n,icon:U0t}))},VY=h.forwardRef(z0t),V0t={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"},G0t=function(t,n){return h.createElement(Mn,Xe({},t,{ref:n,icon:V0t}))},W0t=h.forwardRef(G0t),q0t={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"},Y0t=function(t,n){return h.createElement(Mn,Xe({},t,{ref:n,icon:q0t}))},GY=h.forwardRef(Y0t),K0t={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"},Q0t=function(t,n){return h.createElement(Mn,Xe({},t,{ref:n,icon:K0t}))},cD=h.forwardRef(Q0t),X0t={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"},Z0t=function(t,n){return h.createElement(Mn,Xe({},t,{ref:n,icon:X0t}))},J0t=h.forwardRef(Z0t),e1t=["className","component","viewBox","spin","rotate","tabIndex","onClick","children"],yTe=h.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=kt(e,e1t),d=h.useRef(),f=Bd(d,t);mH(!!(r||c),"Should have `component` prop or `children`."),G_e(d);var p=h.useContext(fP),m=p.prefixCls,g=m===void 0?"anticon":m,v=p.rootClassName,y=Ce(v,g,te({},"".concat(g,"-spin"),!!o&&!!r),n),b=Ce(te({},"".concat(g,"-spin"),!!o)),_=a?{msTransform:"rotate(".concat(a,"deg)"),transform:"rotate(".concat(a,"deg)")}:void 0,S=z(z({},yKe),{},{className:b,style:_,viewBox:i});i||delete S.viewBox;var x=function(){return r?h.createElement(r,S,c):c?(mH(!!i||h.Children.count(c)===1&&h.isValidElement(c)&&h.Children.only(c).type==="use","Make sure that you provide correct `viewBox` prop (default `0 0 1024 1024`) to the icon."),h.createElement("svg",Xe({},S,{viewBox:i}),c)):null},E=s;return E===void 0&&l&&(E=-1),h.createElement("span",Xe({role:"img"},u,{ref:f,tabIndex:E,onClick:l,className:y}),x())});yTe.displayName="AntdIcon";var t1t=["type","children"],_Te=new Set;function n1t(e){return!!(typeof e=="string"&&e.length&&!_Te.has(e))}function J4(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=e[t];if(n1t(n)){var r=document.createElement("script");r.setAttribute("src",n),r.setAttribute("data-namespace",n),e.length>t+1&&(r.onload=function(){J4(e,t+1)},r.onerror=function(){J4(e,t+1)}),_Te.add(n),document.body.appendChild(r)}}function STe(){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)?J4(t.reverse()):J4([t]));var i=h.forwardRef(function(o,a){var s=o.type,l=o.children,c=kt(o,t1t),u=null;return o.type&&(u=h.createElement("use",{xlinkHref:"#".concat(s)})),l&&(u=l),h.createElement(yTe,Xe({},r,c,{ref:a}),u)});return i.displayName="Iconfont",i}const r1t=pe.createElement(Nc,null);function i1t({prefixCls:e,locale:t,onRefresh:n,statusRender:r,status:i}){const o=pe.createElement(pe.Fragment,null,pe.createElement("p",{className:`${e}-expired`},t==null?void 0:t.expired),n&&pe.createElement(Dn,{type:"link",icon:pe.createElement(T0t,null),onClick:n},t==null?void 0:t.refresh)),a=pe.createElement("p",{className:`${e}-scanned`},t==null?void 0:t.scanned),s={expired:o,loading:r1t,scanned:a};return(r??(u=>s[u.status]))({status:i,locale:t,onRefresh:n})}const o1t=e=>{const{componentCls:t,lineWidth:n,lineType:r,colorSplit:i}=e;return{[t]:Object.assign(Object.assign({},mr(e)),{display:"flex",justifyContent:"center",alignItems:"center",padding:e.paddingSM,backgroundColor:e.colorWhite,borderRadius:e.borderRadiusLG,border:`${Ie(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}}},a1t=e=>({QRCodeMaskBackgroundColor:new or(e.colorBgContainer).setA(.96).toRgbString()}),s1t=ir("QRCode",e=>{const t=Un(e,{QRCodeTextColor:e.colorText});return o1t(t)},a1t);var l1t=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);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 ETe=e=>{var t,n,r,i;const[,o]=Ko(),{value:a,type:s="canvas",icon:l="",size:c=160,iconSize:u,color:d=o.colorText,errorLevel:f="M",status:p="active",bordered:m=!0,onRefresh:g,style:v,className:y,rootClassName:b,prefixCls:_,bgColor:S="transparent",statusRender:x}=e,E=l1t(e,["value","type","icon","size","iconSize","color","errorLevel","status","bordered","onRefresh","style","className","rootClassName","prefixCls","bgColor","statusRender"]),{getPrefixCls:C}=h.useContext(cn),w=C("qrcode",_),[O,T,A]=s1t(w),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"},N=Oi(E,!0),D=ur(E,Object.keys(N)),M=Object.assign({value:a,size:c,level:f,bgColor:S,fgColor:d,style:{width:v==null?void 0:v.width,height:v==null?void 0:v.height},imageSettings:l?I:void 0},N),[k]=Ma("QRCode");if(!a)return null;const P=Ce(w,y,b,T,A,{[`${w}-borderless`]:!m}),B=Object.assign(Object.assign({backgroundColor:S},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 O(pe.createElement("div",Object.assign({},D,{className:P,style:B}),p!=="active"&&pe.createElement("div",{className:`${w}-mask`},pe.createElement(i1t,{prefixCls:w,locale:k,status:p,onRefresh:g,statusRender:x})),s==="canvas"?pe.createElement(hTe,Object.assign({},M)):pe.createElement(mTe,Object.assign({},M))))};function c1t(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,p=function(x){d(x,a)},m=function(x){f(x,a)},g=function(x){x.keyCode===Ut.ENTER&&f(x,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,_=pe.createElement("li",{className:Ce(Array.from(y)),ref:t},pe.createElement("div",{onClick:n?null:m,onKeyDown:n?null:g,onMouseMove:n?null:p,role:"radio","aria-checked":l>a?"true":"false","aria-posinset":a+1,"aria-setsize":s,tabIndex:n?-1:0},pe.createElement("div",{className:"".concat(r,"-first")},b),pe.createElement("div",{className:"".concat(r,"-second")},b)));return o&&(_=o(_,e)),_}const u1t=pe.forwardRef(c1t);function d1t(){var e=h.useRef({});function t(r){return e.current[r]}function n(r){return function(i){e.current[r]=i}}return[t,n]}function f1t(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 p1t(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 h1t(e){var t=p1t(e),n=e.ownerDocument,r=n.defaultView||n.parentWindow;return t.left+=f1t(r),t.left}var m1t=["prefixCls","className","defaultValue","value","count","allowHalf","allowClear","keyboard","character","characterRender","disabled","direction","tabIndex","autoFocus","onHoverChange","onChange","onFocus","onBlur","onKeyDown","onMouseLeave"];function g1t(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,p=e.keyboard,m=p===void 0?!0:p,g=e.character,v=g===void 0?"★":g,y=e.characterRender,b=e.disabled,_=e.direction,S=_===void 0?"ltr":_,x=e.tabIndex,E=x===void 0?0:x,C=e.autoFocus,w=e.onHoverChange,O=e.onChange,T=e.onFocus,A=e.onBlur,I=e.onKeyDown,N=e.onMouseLeave,D=kt(e,m1t),M=d1t(),k=Re(M,2),P=k[0],B=k[1],G=pe.useRef(null),L=function(){if(!b){var Y;(Y=G.current)===null||Y===void 0||Y.focus()}};pe.useImperativeHandle(t,function(){return{focus:L,blur:function(){if(!b){var Y;(Y=G.current)===null||Y===void 0||Y.blur()}}}});var W=Pn(o||0,{value:a}),j=Re(W,2),H=j[0],X=j[1],Q=Pn(null),ue=Re(Q,2),ee=ue[0],K=ue[1],se=function(Y,ae){var ye=S==="rtl",fe=Y+1;if(u){var Ae=P(Y),We=h1t(Ae),ie=Ae.clientWidth;(ye&&ae-We>ie/2||!ye&&ae-We<ie/2)&&(fe-=.5)}return fe},le=function(Y){X(Y),O==null||O(Y)},oe=pe.useState(!1),ne=Re(oe,2),he=ne[0],me=ne[1],ce=function(){me(!0),T==null||T()},re=function(){me(!1),A==null||A()},ve=pe.useState(null),be=Re(ve,2),xe=be[0],we=be[1],de=function(Y,ae){var ye=se(ae,Y.pageX);ye!==ee&&(we(ye),K(null)),w==null||w(ye)},Ee=function(Y){b||(we(null),K(null),w==null||w(void 0)),Y&&(N==null||N(Y))},Ne=function(Y,ae){var ye=se(ae,Y.pageX),fe=!1;f&&(fe=ye===H),Ee(),le(fe?0:ye),K(fe?ye:null)},Te=function(Y){var ae=Y.keyCode,ye=S==="rtl",fe=u?.5:1;m&&(ae===Ut.RIGHT&&H<l&&!ye?(le(H+fe),Y.preventDefault()):ae===Ut.LEFT&&H>0&&!ye||ae===Ut.RIGHT&&H>0&&ye?(le(H-fe),Y.preventDefault()):ae===Ut.LEFT&&H<l&&ye&&(le(H+fe),Y.preventDefault())),I==null||I(Y)};pe.useEffect(function(){C&&!b&&L()},[]);var Ve=new Array(l).fill(0).map(function(U,Y){return pe.createElement(u1t,{ref:B(Y),index:Y,count:l,disabled:b,prefixCls:"".concat(r,"-star"),allowHalf:u,value:xe===null?H:xe,onClick:Ne,onHover:de,key:U||Y,character:v,characterRender:y,focused:he})}),q=Ce(r,i,te(te({},"".concat(r,"-disabled"),b),"".concat(r,"-rtl"),S==="rtl"));return pe.createElement("ul",Xe({className:q,onMouseLeave:Ee,tabIndex:b?-1:E,onFocus:b?null:ce,onBlur:b?null:re,onKeyDown:b?null:Te,ref:G},Oi(D,{aria:!0,data:!0,attr:!0})),Ve)}const v1t=pe.forwardRef(g1t),b1t=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:`${Ie(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"}}}},y1t=e=>({[`&-rtl${e.componentCls}`]:{direction:"rtl"}}),_1t=e=>{const{componentCls:t}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},mr(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)"}}}),b1t(e)),y1t(e))}},S1t=e=>({starColor:e.yellow6,starSize:e.controlHeightLG*.5,starHoverScale:"scale(1.1)",starBg:e.colorFillContent}),E1t=ir("Rate",e=>{const t=Un(e,{});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 Hoe=h.forwardRef((e,t)=>{const{prefixCls:n,className:r,rootClassName:i,style:o,tooltips:a,character:s=h.createElement(lD,null),disabled:l}=e,c=C1t(e,["prefixCls","className","rootClassName","style","tooltips","character","disabled"]),u=(x,{index:E})=>a?h.createElement(Na,{title:a[E]},x):x,{getPrefixCls:d,direction:f,rate:p}=h.useContext(cn),m=d("rate",n),[g,v,y]=E1t(m),b=Object.assign(Object.assign({},p==null?void 0:p.style),o),_=h.useContext(Yo),S=l??_;return g(h.createElement(v1t,Object.assign({ref:t,character:s,characterRender:u,disabled:S},c,{className:Ce(r,i,v,y,p==null?void 0:p.className),style:b,prefixCls:m,direction:f})))}),x1t=()=>h.createElement("svg",{width:"252",height:"294"},h.createElement("title",null,"No Found"),h.createElement("defs",null,h.createElement("path",{d:"M0 .387h251.772v251.772H0z"})),h.createElement("g",{fill:"none",fillRule:"evenodd"},h.createElement("g",{transform:"translate(0 .012)"},h.createElement("mask",{fill:"#fff"}),h.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)"})),h.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"}),h.createElement("path",{d:"M36.975 134.297l10.482 5.943M48.373 146.508l-12.648 10.788",stroke:"#FFF",strokeWidth:"2"}),h.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"}),h.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"}),h.createElement("path",{d:"M179.26 141.75l12.64 7.167M193.006 156.477l-15.255 13.011",stroke:"#FFF",strokeWidth:"2"}),h.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"}),h.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"}),h.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"}),h.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"}),h.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"}),h.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"}),h.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"}),h.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"}),h.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"}),h.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"}),h.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"}),h.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"}),h.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"}),h.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"}),h.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"}),h.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"}),h.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"}),h.createElement("path",{d:"M107.275 222.1s2.773-1.11 6.102-3.884",stroke:"#648BD8",strokeLinecap:"round",strokeLinejoin:"round"}),h.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"}),h.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"}),h.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"}),h.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"}),h.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"}),h.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"}),h.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"}),h.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"}),h.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"}),h.createElement("path",{stroke:"#DB836E",strokeWidth:"1.118",strokeLinecap:"round",strokeLinejoin:"round",d:"M110.13 74.84l-.896 1.61-.298 4.357h-2.228"}),h.createElement("path",{d:"M110.846 74.481s1.79-.716 2.506.537",stroke:"#5C2552",strokeWidth:"1.118",strokeLinecap:"round",strokeLinejoin:"round"}),h.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"}),h.createElement("path",{d:"M103.287 72.93s1.83 1.113 4.137.954",stroke:"#5C2552",strokeWidth:"1.118",strokeLinecap:"round",strokeLinejoin:"round"}),h.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"}),h.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"}),h.createElement("path",{d:"M129.405 122.865s-5.272 7.403-9.422 10.768",stroke:"#E4EBF7",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),h.createElement("path",{d:"M119.306 107.329s.452 4.366-2.127 32.062",stroke:"#E4EBF7",strokeWidth:"1.101",strokeLinecap:"round",strokeLinejoin:"round"}),h.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"}),h.createElement("path",{d:"M150.29 151.232h-19.863v-33.707h20.784v32.786a.92.92 0 0 1-.92.92",fill:"#F4D19D"}),h.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"}),h.createElement("path",{fill:"#CC9B6E",d:"M123.689 128.447H99.25v-.519h24.169l7.183-10.26.424.298z"}),h.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"}),h.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"}),h.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"}),h.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"}),h.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"}),h.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"}),h.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"}),h.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"}),h.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"}),h.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"}),h.createElement("path",{d:"M88.979 89.48s7.776 5.384 16.6 2.842",stroke:"#E4EBF7",strokeWidth:"1.101",strokeLinecap:"round",strokeLinejoin:"round"}))),w1t=()=>h.createElement("svg",{width:"254",height:"294"},h.createElement("title",null,"Server Error"),h.createElement("defs",null,h.createElement("path",{d:"M0 .335h253.49v253.49H0z"}),h.createElement("path",{d:"M0 293.665h253.49V.401H0z"})),h.createElement("g",{fill:"none",fillRule:"evenodd"},h.createElement("g",{transform:"translate(0 .067)"},h.createElement("mask",{fill:"#fff"}),h.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)"})),h.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"}),h.createElement("path",{d:"M37.19 135.59l10.553 5.983M48.665 147.884l-12.734 10.861",stroke:"#FFF",strokeWidth:"2"}),h.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"}),h.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"}),h.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"}),h.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"}),h.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"}),h.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"}),h.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"}),h.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"}),h.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"}),h.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"}),h.createElement("path",{stroke:"#DB836E",strokeWidth:"1.063",strokeLinecap:"round",strokeLinejoin:"round",d:"M99.206 73.644l-.9 1.62-.3 4.38h-2.24"}),h.createElement("path",{d:"M99.926 73.284s1.8-.72 2.52.54",stroke:"#5C2552",strokeWidth:"1.117",strokeLinecap:"round",strokeLinejoin:"round"}),h.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"}),h.createElement("path",{d:"M92.326 71.724s1.84 1.12 4.16.96",stroke:"#5C2552",strokeWidth:"1.117",strokeLinecap:"round",strokeLinejoin:"round"}),h.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"}),h.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"}),h.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"}),h.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"}),h.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"}),h.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"}),h.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"}),h.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"}),h.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"}),h.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"}),h.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"}),h.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"}),h.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"}),h.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"}),h.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"}),h.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"}),h.createElement("path",{d:"M96.973 219.373s2.882-1.153 6.34-4.034",stroke:"#648BD8",strokeWidth:"1.032",strokeLinecap:"round",strokeLinejoin:"round"}),h.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"}),h.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"}),h.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"}),h.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"}),h.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"}),h.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"}),h.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"}),h.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"}),h.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"}),h.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"}),h.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"}),h.createElement("path",{d:"M109.278 112.533s3.38-3.613 7.575-4.662",stroke:"#E4EBF7",strokeWidth:"1.085",strokeLinecap:"round",strokeLinejoin:"round"}),h.createElement("path",{d:"M107.375 123.006s9.697-2.745 11.445-.88",stroke:"#E59788",strokeWidth:".774",strokeLinecap:"round",strokeLinejoin:"round"}),h.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"}),h.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"}),h.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"}),h.createElement("mask",{fill:"#fff"}),h.createElement("path",{fill:"#A3B4C6",mask:"url(#d)",d:"M154.098 190.096h70.513v-84.617h-70.513z"}),h.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)"}),h.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)"}),h.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)"}),h.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)"}),h.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)"}),h.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)"}),h.createElement("path",{d:"M177.259 207.217v11.52M201.05 207.217v11.52",stroke:"#A3B4C6",strokeWidth:"1.124",strokeLinecap:"round",strokeLinejoin:"round",mask:"url(#d)"}),h.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)"}),h.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)"}),h.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)"}))),T1t=e=>{const{componentCls:t,lineHeightHeading3:n,iconCls:r,padding:i,paddingXL:o,paddingXS:a,paddingLG:s,marginXS:l,lineHeight:c}=e;return{[t]:{padding:`${Ie(e.calc(s).mul(2).equal())} ${Ie(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:`${Ie(s)} ${Ie(e.calc(i).mul(2.5).equal())}`,backgroundColor:e.colorFillAlter},[`${t} ${t}-extra`]:{margin:e.extraMargin,textAlign:"center","& > *":{marginInlineEnd:a,"&:last-child":{marginInlineEnd:0}}}}},O1t=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}}},R1t=e=>[T1t(e),O1t(e)],A1t=e=>R1t(e),I1t=e=>({titleFontSize:e.fontSizeHeading3,subtitleFontSize:e.fontSize,iconFontSize:e.fontSizeHeading3*3,extraMargin:`${e.paddingLG}px 0 0 0`}),N1t=ir("Result",e=>{const t=e.colorInfo,n=e.colorError,r=e.colorSuccess,i=e.colorWarning,o=Un(e,{resultInfoIconColor:t,resultErrorIconColor:n,resultSuccessIconColor:r,resultWarningIconColor:i,imageWidth:250,imageHeight:295});return[A1t(o)]},I1t),M1t=()=>h.createElement("svg",{width:"251",height:"294"},h.createElement("title",null,"Unauthorized"),h.createElement("g",{fill:"none",fillRule:"evenodd"},h.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"}),h.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"}),h.createElement("path",{d:"M38.652 136.36l10.425 5.91M49.989 148.505l-12.58 10.73",stroke:"#FFF",strokeWidth:"2"}),h.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"}),h.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"}),h.createElement("path",{d:"M180.17 143.772l12.572 7.129M193.841 158.42L178.67 171.36",stroke:"#FFF",strokeWidth:"2"}),h.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"}),h.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"}),h.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"}),h.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"}),h.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"}),h.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"}),h.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"}),h.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"}),h.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"}),h.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"}),h.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"}),h.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"}),h.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"}),h.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"}),h.createElement("path",{d:"M78.18 94.656s.911 7.41-4.914 13.078",stroke:"#E4EBF7",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),h.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"}),h.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"}),h.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"}),h.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"}),h.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"}),h.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"}),h.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"}),h.createElement("path",{d:"M91.132 86.786s5.269 4.957 12.679 2.327",stroke:"#DB836E",strokeWidth:"1.145",strokeLinecap:"round",strokeLinejoin:"round"}),h.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"}),h.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"}),h.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"}),h.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"}),h.createElement("path",{d:"M66.508 86.763s-1.598 8.83-6.697 14.078",stroke:"#E4EBF7",strokeWidth:"1.114",strokeLinecap:"round",strokeLinejoin:"round"}),h.createElement("path",{d:"M128.31 87.934s3.013 4.121 4.06 11.785",stroke:"#E4EBF7",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),h.createElement("path",{d:"M64.09 84.816s-6.03 9.912-13.607 9.903",stroke:"#DB836E",strokeWidth:".795",strokeLinecap:"round",strokeLinejoin:"round"}),h.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"}),h.createElement("path",{d:"M130.532 85.488s4.588 5.757 11.619 6.214",stroke:"#DB836E",strokeWidth:".75",strokeLinecap:"round",strokeLinejoin:"round"}),h.createElement("path",{d:"M121.708 105.73s-.393 8.564-1.34 13.612",stroke:"#E4EBF7",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),h.createElement("path",{d:"M115.784 161.512s-3.57-1.488-2.678-7.14",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),h.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"}),h.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"}),h.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"}),h.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"}),h.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"}),h.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"}),h.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"}),h.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"}),h.createElement("path",{d:"M108.459 220.905s2.759-1.104 6.07-3.863",stroke:"#648BD8",strokeLinecap:"round",strokeLinejoin:"round"}),h.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"}),h.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"}),h.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"}),h.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"}),h.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"}))),k1t={success:vv,error:qf,info:Ag,warning:J0t},T2={404:x1t,500:w1t,403:M1t},P1t=Object.keys(T2),D1t=({prefixCls:e,icon:t,status:n})=>{const r=Ce(`${e}-icon`);if(P1t.includes(`${n}`)){const o=T2[n];return h.createElement("div",{className:`${r} ${e}-image`},h.createElement(o,null))}const i=h.createElement(k1t[n]);return t===null||t===!1?null:h.createElement("div",{className:r},t||i)},L1t=({prefixCls:e,extra:t})=>t?h.createElement("div",{className:`${e}-extra`},t):null,O2=({prefixCls:e,className:t,rootClassName:n,subTitle:r,title:i,style:o,children:a,status:s="info",icon:l,extra:c})=>{const{getPrefixCls:u,direction:d,result:f}=h.useContext(cn),p=u("result",e),[m,g,v]=N1t(p),y=Ce(p,`${p}-${s}`,t,f==null?void 0:f.className,n,{[`${p}-rtl`]:d==="rtl"},g,v),b=Object.assign(Object.assign({},f==null?void 0:f.style),o);return m(h.createElement("div",{className:y,style:b},h.createElement(D1t,{prefixCls:p,status:s,icon:l}),h.createElement("div",{className:`${p}-title`},i),r&&h.createElement("div",{className:`${p}-subtitle`},r),h.createElement(L1t,{prefixCls:p,extra:c}),a&&h.createElement("div",{className:`${p}-content`},a)))};O2.PRESENTED_IMAGE_403=T2[403];O2.PRESENTED_IMAGE_404=T2[404];O2.PRESENTED_IMAGE_500=T2[500];var $1t=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],CTe=h.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,p=e.onChange,m=e.onKeyDown,g=kt(e,$1t),v=Pn(!1,{value:a,defaultValue:s}),y=Re(v,2),b=y[0],_=y[1];function S(w,O){var T=b;return l||(T=w,_(T),p==null||p(T,O)),T}function x(w){w.which===Ut.LEFT?S(!1,w):w.which===Ut.RIGHT&&S(!0,w),m==null||m(w)}function E(w){var O=S(!b,w);f==null||f(O,w)}var C=Ce(i,o,(n={},te(n,"".concat(i,"-checked"),b),te(n,"".concat(i,"-disabled"),l),n));return h.createElement("button",Xe({},g,{type:"button",role:"switch","aria-checked":b,disabled:l,className:C,ref:t,onKeyDown:x,onClick:E}),c,h.createElement("span",{className:"".concat(i,"-inner")},h.createElement("span",{className:"".concat(i,"-inner-checked")},u),h.createElement("span",{className:"".concat(i,"-inner-unchecked")},d)))});CTe.displayName="Switch";const F1t=e=>{const{componentCls:t,trackHeightSM:n,trackPadding:r,trackMinWidthSM:i,innerMinMarginSM:o,innerMaxMarginSM:a,handleSizeSM:s,calc:l}=e,c=`${t}-inner`,u=Ie(l(s).add(l(r).mul(2)).equal()),d=Ie(l(a).mul(2).equal());return{[t]:{[`&${t}-small`]:{minWidth:i,height:n,lineHeight:Ie(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% - ${Ie(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()}}}}}}},B1t=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}}}},H1t=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% - ${Ie(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}}}}},j1t=e=>{const{componentCls:t,trackHeight:n,trackPadding:r,innerMinMargin:i,innerMaxMargin:o,handleSize:a,calc:s}=e,l=`${t}-inner`,c=Ie(s(a).add(s(r).mul(2)).equal()),u=Ie(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()}}}}}},U1t=e=>{const{componentCls:t,trackHeight:n,trackMinWidth:r}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},mr(e)),{position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:r,height:n,lineHeight:Ie(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}}),tl(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"}})}},z1t=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 or("#00230b").setA(.2).toRgbString()}`,innerMinMargin:l/2,innerMaxMargin:l+s+s*2,innerMinMarginSM:c/2,innerMaxMarginSM:c+s+s*2}},V1t=ir("Switch",e=>{const t=Un(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[U1t(t),j1t(t),H1t(t),B1t(t),F1t(t)]},z1t);var G1t=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);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 W1t=h.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:p}=e,m=G1t(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:_}=h.useContext(cn),S=h.useContext(Yo),x=(i??S)||o,E=y("switch",n),C=h.createElement("div",{className:`${E}-handle`},o&&h.createElement(Td,{className:`${E}-loading-icon`})),[w,O,T]=V1t(E),A=mo(r),I=Ce(_==null?void 0:_.className,{[`${E}-small`]:A==="small",[`${E}-loading`]:o,[`${E}-rtl`]:b==="rtl"},a,s,O,T),N=Object.assign(Object.assign({},_==null?void 0:_.style),l),D=(...M)=>{v(M[0]),p==null||p.apply(void 0,M)};return w(h.createElement(n2,{component:"Switch"},h.createElement(CTe,Object.assign({},m,{checked:g,onChange:D,prefixCls:E,className:I,style:N,disabled:x,ref:t,loadingIcon:C}))))}),eM=W1t;eM.__ANT_SWITCH=!0;var Rp={},R2="rc-table-internal-hook";function WY(e){var t=h.createContext(void 0),n=function(i){var o=i.value,a=i.children,s=h.useRef(o);s.current=o;var l=h.useState(function(){return{getValue:function(){return s.current},listeners:new Set}}),c=Re(l,1),u=c[0];return er(function(){Fl.unstable_batchedUpdates(function(){u.listeners.forEach(function(d){d(o)})})},[o]),h.createElement(t.Provider,{value:u},a)};return{Context:t,Provider:n,defaultValue:e}}function ls(e,t){var n=qn(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(p){f[p]=d[p]}),f}),r=h.useContext(e==null?void 0:e.Context),i=r||{},o=i.listeners,a=i.getValue,s=h.useRef();s.current=n(r?a():e==null?void 0:e.defaultValue);var l=h.useState({}),c=Re(l,2),u=c[1];return er(function(){if(!r)return;function d(f){var p=n(f);Bl(s.current,p,!0)||u({})}return o.add(d),function(){o.delete(d)}},[r]),s.current}function q1t(){var e=h.createContext(null);function t(){return h.useContext(e)}function n(i,o){var a=Cd(i),s=function(c,u){var d=a?{ref:u}:{},f=h.useRef(0),p=h.useRef(c),m=t();return m!==null?h.createElement(i,Xe({},c,d)):((!o||o(p.current,c))&&(f.current+=1),p.current=c,h.createElement(e.Provider,{value:f.current},h.createElement(i,Xe({},c,d))))};return a?h.forwardRef(s):s}function r(i,o){var a=Cd(i),s=function(c,u){var d=a?{ref:u}:{};return t(),h.createElement(i,Xe({},c,d))};return a?h.memo(h.forwardRef(s),o):h.memo(s,o)}return{makeImmutable:n,responseImmutable:r,useImmutableMark:t}}var qY=q1t(),xTe=qY.makeImmutable,OS=qY.responseImmutable,Y1t=qY.useImmutableMark,cl=WY(),wTe=h.createContext({renderWithProps:!1}),K1t="RC_TABLE_KEY";function Q1t(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||Q1t(a).join("-")||K1t;n[s];)s="".concat(s,"_next");n[s]=!0,t.push(s)}),t}function aj(e){return e!=null}function X1t(e){return typeof e=="number"&&!Number.isNaN(e)}function Z1t(e){return e&&qt(e)==="object"&&!Array.isArray(e)&&!h.isValidElement(e)}function J1t(e,t,n,r,i,o){var a=h.useContext(wTe),s=Y1t(),l=Df(function(){if(aj(r))return[r];var c=t==null||t===""?[]:Array.isArray(t)?t:[t],u=No(e,c),d=u,f=void 0;if(i){var p=i(u,e,n);Z1t(p)?(d=p.children,f=p.props,a.renderWithProps=!0):d=p}return[d,f]},[s,e,r,t,i,n],function(c,u){if(o){var d=Re(c,2),f=d[1],p=Re(u,2),m=p[1];return o(m,f)}return a.renderWithProps?!0:!Bl(c,u,!0)});return l}function evt(e,t,n,r){var i=e+t-1;return e<=r&&i>=n}function tvt(e,t){return ls(cl,function(n){var r=evt(e,t||1,n.hoverStartRow,n.hoverEndRow);return[r,n.onHover]})}var nvt=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():h.isValidElement(i)&&typeof i.props.children=="string"&&(o=i.props.children)),o};function rvt(e){var t,n,r,i,o,a,s,l,c=e.component,u=e.children,d=e.ellipsis,f=e.scope,p=e.prefixCls,m=e.className,g=e.align,v=e.record,y=e.render,b=e.dataIndex,_=e.renderIndex,S=e.shouldCellUpdate,x=e.index,E=e.rowType,C=e.colSpan,w=e.rowSpan,O=e.fixLeft,T=e.fixRight,A=e.firstFixLeft,I=e.lastFixLeft,N=e.firstFixRight,D=e.lastFixRight,M=e.appendNode,k=e.additionalProps,P=k===void 0?{}:k,B=e.isSticky,G="".concat(p,"-cell"),L=ls(cl,["supportSticky","allColumnsFixedLeft","rowHoverable"]),W=L.supportSticky,j=L.allColumnsFixedLeft,H=L.rowHoverable,X=J1t(v,b,_,u,y,S),Q=Re(X,2),ue=Q[0],ee=Q[1],K={},se=typeof O=="number"&&W,le=typeof T=="number"&&W;se&&(K.position="sticky",K.left=O),le&&(K.position="sticky",K.right=T);var oe=(t=(n=(r=ee==null?void 0:ee.colSpan)!==null&&r!==void 0?r:P.colSpan)!==null&&n!==void 0?n:C)!==null&&t!==void 0?t:1,ne=(i=(o=(a=ee==null?void 0:ee.rowSpan)!==null&&a!==void 0?a:P.rowSpan)!==null&&o!==void 0?o:w)!==null&&i!==void 0?i:1,he=tvt(x,ne),me=Re(he,2),ce=me[0],re=me[1],ve=qn(function(Te){var Ve;v&&re(x,x+ne-1),P==null||(Ve=P.onMouseEnter)===null||Ve===void 0||Ve.call(P,Te)}),be=qn(function(Te){var Ve;v&&re(-1,-1),P==null||(Ve=P.onMouseLeave)===null||Ve===void 0||Ve.call(P,Te)});if(oe===0||ne===0)return null;var xe=(s=P.title)!==null&&s!==void 0?s:nvt({rowType:E,ellipsis:d,children:ue}),we=Ce(G,m,(l={},te(te(te(te(te(te(te(te(te(te(l,"".concat(G,"-fix-left"),se&&W),"".concat(G,"-fix-left-first"),A&&W),"".concat(G,"-fix-left-last"),I&&W),"".concat(G,"-fix-left-all"),I&&j&&W),"".concat(G,"-fix-right"),le&&W),"".concat(G,"-fix-right-first"),N&&W),"".concat(G,"-fix-right-last"),D&&W),"".concat(G,"-ellipsis"),d),"".concat(G,"-with-append"),M),"".concat(G,"-fix-sticky"),(se||le)&&B&&W),te(l,"".concat(G,"-row-hover"),!ee&&ce)),P.className,ee==null?void 0:ee.className),de={};g&&(de.textAlign=g);var Ee=z(z(z(z({},ee==null?void 0:ee.style),K),de),P.style),Ne=ue;return qt(Ne)==="object"&&!Array.isArray(Ne)&&!h.isValidElement(Ne)&&(Ne=null),d&&(I||N)&&(Ne=h.createElement("span",{className:"".concat(G,"-content")},Ne)),h.createElement(c,Xe({},ee,P,{className:we,style:Ee,title:xe,scope:f,onMouseEnter:H?ve:void 0,onMouseLeave:H?be:void 0,colSpan:oe!==1?oe:null,rowSpan:ne!==1?ne:null}),M,Ne)}const RS=h.memo(rvt);function YY(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,p=n[t+1],m=n[e-1],g=p&&!p.fixed||m&&!m.fixed||n.every(function(S){return S.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=p&&p.fixed==="right";d=!y&&g}}else if(s!==void 0){var b=p&&p.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 TTe=h.createContext({});function ivt(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=ls(cl,["prefixCls","direction"]),c=l.prefixCls,u=l.direction,d=h.useContext(TTe),f=d.scrollColumnIndex,p=d.stickyOffsets,m=d.flattenColumns,g=n+o-1,v=g+1===f?o+1:o,y=YY(n,n+v-1,m,p,u);return h.createElement(RS,Xe({className:t,index:n,component:"td",prefixCls:c,record:null,dataIndex:null,align:s,colSpan:v,rowSpan:a,render:function(){return r}},y))}var ovt=["children"];function avt(e){var t=e.children,n=kt(e,ovt);return h.createElement("tr",n,t)}function dD(e){var t=e.children;return t}dD.Row=avt;dD.Cell=ivt;function svt(e){var t=e.children,n=e.stickyOffsets,r=e.flattenColumns,i=ls(cl,"prefixCls"),o=r.length-1,a=r[o],s=h.useMemo(function(){return{stickyOffsets:n,flattenColumns:r,scrollColumnIndex:a!=null&&a.scrollbar?o:null}},[a,r,o,n]);return h.createElement(TTe.Provider,{value:s},h.createElement("tfoot",{className:"".concat(i,"-summary")},t))}const IR=OS(svt);var OTe=dD;function lvt(e){return null}function cvt(e){return null}function RTe(e,t,n,r,i,o,a){var s=o(t,a);e.push({record:t,indent:n,index:a,rowKey:s});var 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)RTe(e,t[r][c],n+1,r,i,o,c)}function ATe(e,t,n,r){var i=h.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];RTe(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,rowKey:r(l,c)}})},[e,t,n,r]);return i}function ITe(e,t,n,r){var i=ls(cl,["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,p=i.rowClassName,m=a==="nest",g=a==="row"&&(!u||u(e)),v=g||m,y=s&&s.has(t),b=l&&e&&e[l],_=qn(c),S=d==null?void 0:d(e,n),x=S==null?void 0:S.onClick,E=function(T){f&&v&&c(e,T);for(var A=arguments.length,I=new Array(A>1?A-1:0),N=1;N<A;N++)I[N-1]=arguments[N];x==null||x.apply(void 0,[T].concat(I))},C;typeof p=="string"?C=p:typeof p=="function"&&(C=p(e,n,r));var w=uD(o);return z(z({},i),{},{columnsKey:w,nestExpandable:m,expanded:y,hasNestChildren:b,record:e,onTriggerExpand:_,rowSupportExpand:g,expandable:v,rowProps:z(z({},S),{},{className:Ce(C,S==null?void 0:S.className),onClick:E})})}function NTe(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=e.stickyOffset,u=c===void 0?0:c,d=ls(cl,["scrollbarSize","fixHeader","fixColumn","componentWidth","horizonScroll"]),f=d.scrollbarSize,p=d.fixHeader,m=d.fixColumn,g=d.componentWidth,v=d.horizonScroll,y=n;return(l?v&&g:m)&&(y=h.createElement("div",{style:{width:g-u-(p&&!l?f:0),position:"sticky",left:u,overflow:"hidden"},className:"".concat(t,"-expanded-row-fixed")},y)),h.createElement(r,{className:o,style:{display:a?null:"none"}},h.createElement(RS,{component:i,prefixCls:t,colSpan:s},y))}function uvt(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 h.createElement("span",{className:Ce(a,"".concat(t,"-row-spaced"))});var s=function(c){r(n,c),c.stopPropagation()};return h.createElement("span",{className:Ce(a,te(te({},"".concat(t,"-row-expanded"),i),"".concat(t,"-row-collapsed"),!i)),onClick:s})}function dvt(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 MTe(e,t,n,r){return typeof e=="string"?e:typeof e=="function"?e(t,n,r):""}function kTe(e,t,n,r,i){var o,a=arguments.length>5&&arguments[5]!==void 0?arguments[5]:[],s=arguments.length>6&&arguments[6]!==void 0?arguments[6]:0,l=e.record,c=e.prefixCls,u=e.columnsKey,d=e.fixedInfoList,f=e.expandIconColumnIndex,p=e.nestExpandable,m=e.indentSize,g=e.expandIcon,v=e.expanded,y=e.hasNestChildren,b=e.onTriggerExpand,_=e.expandable,S=e.expandedKeys,x=u[n],E=d[n],C;n===(f||0)&&p&&(C=h.createElement(h.Fragment,null,h.createElement("span",{style:{paddingLeft:"".concat(m*r,"px")},className:"".concat(c,"-row-indent indent-level-").concat(r)}),g({prefixCls:c,expanded:v,expandable:y,record:l,onExpand:b})));var w=((o=t.onCell)===null||o===void 0?void 0:o.call(t,l,i))||{};if(s){var O=w.rowSpan,T=O===void 0?1:O;if(_&&T&&n<s){for(var A=T,I=i;I<i+T;I+=1){var N=a[I];S.has(N)&&(A+=1)}w.rowSpan=A}}return{key:x,fixedInfo:E,appendCellNode:C,additionalCellProps:w}}function fvt(e){var t=e.className,n=e.style,r=e.record,i=e.index,o=e.renderIndex,a=e.rowKey,s=e.rowKeys,l=e.indent,c=l===void 0?0:l,u=e.rowComponent,d=e.cellComponent,f=e.scopeCellComponent,p=e.expandedRowInfo,m=ITe(r,a,i,c),g=m.prefixCls,v=m.flattenColumns,y=m.expandedRowClassName,b=m.expandedRowRender,_=m.rowProps,S=m.expanded,x=m.rowSupportExpand,E=h.useRef(!1);E.current||(E.current=S);var C=MTe(y,r,i,c),w=h.createElement(u,Xe({},_,{"data-row-key":a,className:Ce(t,"".concat(g,"-row"),"".concat(g,"-row-level-").concat(c),_==null?void 0:_.className,te({},C,c>=1)),style:z(z({},n),_==null?void 0:_.style)}),v.map(function(A,I){var N=A.render,D=A.dataIndex,M=A.className,k=kTe(m,A,I,c,i,s,p==null?void 0:p.offset),P=k.key,B=k.fixedInfo,G=k.appendCellNode,L=k.additionalCellProps;return h.createElement(RS,Xe({className:M,ellipsis:A.ellipsis,align:A.align,scope:A.rowScope,component:A.rowScope?f:d,prefixCls:g,key:P,record:r,index:i,renderIndex:o,dataIndex:D,render:N,shouldCellUpdate:A.shouldCellUpdate},B,{appendNode:G,additionalProps:L}))})),O;if(x&&(E.current||S)){var T=b(r,i,c+1,S);O=h.createElement(NTe,{expanded:S,className:Ce("".concat(g,"-expanded-row"),"".concat(g,"-expanded-row-level-").concat(c+1),C),prefixCls:g,component:u,cellComponent:d,colSpan:p?p.colSpan:v.length,stickyOffset:p==null?void 0:p.sticky,isEmpty:!1},T)}return h.createElement(h.Fragment,null,w,O)}const pvt=OS(fvt);function hvt(e){var t=e.columnKey,n=e.onColumnResize,r=h.useRef();return er(function(){r.current&&n(t,r.current.offsetWidth)},[]),h.createElement(Oa,{data:t},h.createElement("td",{ref:r,style:{padding:0,border:0,height:0}},h.createElement("div",{style:{height:0,overflow:"hidden"}}," ")))}function mvt(e){var t=e.prefixCls,n=e.columnsKey,r=e.onColumnResize,i=h.useRef(null);return h.createElement("tr",{"aria-hidden":"true",className:"".concat(t,"-measure-row"),style:{height:0,fontSize:0},ref:i},h.createElement(Oa.Collection,{onBatchResize:function(a){fS(i.current)&&a.forEach(function(s){var l=s.data,c=s.size;r(l,c.offsetWidth)})}},n.map(function(o){return h.createElement(hvt,{key:o,columnKey:o,onColumnResize:r})})))}function gvt(e){var t=e.data,n=e.measureColumnWidth,r=ls(cl,["prefixCls","getComponent","onColumnResize","flattenColumns","getRowKey","expandedKeys","childrenColumnName","emptyNode","expandedRowOffset","fixedInfoList","colWidths"]),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=r.expandedRowOffset,p=f===void 0?0:f,m=r.colWidths,g=ATe(t,u,c,l),v=h.useMemo(function(){return g.map(function(O){return O.rowKey})},[g]),y=h.useRef({renderWithProps:!1}),b=h.useMemo(function(){for(var O=s.length-p,T=0,A=0;A<p;A+=1)T+=m[A]||0;return{offset:p,colSpan:O,sticky:T}},[s.length,p,m]),_=o(["body","wrapper"],"tbody"),S=o(["body","row"],"tr"),x=o(["body","cell"],"td"),E=o(["body","cell"],"th"),C;t.length?C=g.map(function(O,T){var A=O.record,I=O.indent,N=O.index,D=O.rowKey;return h.createElement(pvt,{key:D,rowKey:D,rowKeys:v,record:A,index:T,renderIndex:N,rowComponent:S,cellComponent:x,scopeCellComponent:E,indent:I,expandedRowInfo:b})}):C=h.createElement(NTe,{expanded:!0,className:"".concat(i,"-placeholder"),prefixCls:i,component:S,cellComponent:x,colSpan:s.length,isEmpty:!0},d);var w=uD(s);return h.createElement(wTe.Provider,{value:y.current},h.createElement(_,{className:"".concat(i,"-tbody")},n&&h.createElement(mvt,{prefixCls:i,columnsKey:w,onColumnResize:a}),C))}const vvt=OS(gvt);var bvt=["expandable"],px="RC_TABLE_INTERNAL_COL_DEFINE";function yvt(e){var t=e.expandable,n=kt(e,bvt),r;return"expandable"in e?r=z(z({},n),t):r=n,r.showExpandColumn===!1&&(r.expandIconColumnIndex=-1),r}var _vt=["columnType"];function PTe(e){for(var t=e.colWidths,n=e.columns,r=e.columCount,i=ls(cl,["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,p=void 0;if(d&&(f=d[px],o==="auto"&&(p=d.minWidth)),u||p||f||l){var m=f||{};m.columnType;var g=kt(m,_vt);a.unshift(h.createElement("col",Xe({key:c,style:{width:u,minWidth:p}},g))),l=!0}}return h.createElement("colgroup",null,a)}var Svt=["className","noData","columns","flattenColumns","colWidths","columCount","stickyOffsets","direction","fixHeader","stickyTopOffset","stickyBottomOffset","stickyClassName","onScroll","maxContentScroll","children"];function Evt(e,t){return h.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 Cvt=h.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,p=e.stickyClassName,m=e.onScroll,g=e.maxContentScroll,v=e.children,y=kt(e,Svt),b=ls(cl,["prefixCls","scrollbarSize","isSticky","getComponent"]),_=b.prefixCls,S=b.scrollbarSize,x=b.isSticky,E=b.getComponent,C=E(["header","table"],"table"),w=x&&!u?0:S,O=h.useRef(null),T=h.useCallback(function(B){ww(t,B),ww(O,B)},[]);h.useEffect(function(){function B(L){var W=L,j=W.currentTarget,H=W.deltaX;H&&(m({currentTarget:j,scrollLeft:j.scrollLeft+H}),L.preventDefault())}var G=O.current;return G==null||G.addEventListener("wheel",B,{passive:!1}),function(){G==null||G.removeEventListener("wheel",B)}},[]);var A=h.useMemo(function(){return o.every(function(B){return B.width})},[o]),I=o[o.length-1],N={fixed:I?I.fixed:null,scrollbar:!0,onHeaderCell:function(){return{className:"".concat(_,"-cell-scrollbar")}}},D=h.useMemo(function(){return w?[].concat(rt(i),[N]):i},[w,i]),M=h.useMemo(function(){return w?[].concat(rt(o),[N]):o},[w,o]),k=h.useMemo(function(){var B=l.right,G=l.left;return z(z({},l),{},{left:c==="rtl"?[].concat(rt(G.map(function(L){return L+w})),[0]):G,right:c==="rtl"?B:[].concat(rt(B.map(function(L){return L+w})),[0]),isSticky:x})},[w,l,x]),P=Evt(a,s);return h.createElement("div",{style:z({overflow:"hidden"},x?{top:d,bottom:f}:{}),ref:T,className:Ce(n,te({},p,!!p))},h.createElement(C,{style:{tableLayout:"fixed",visibility:r||P?null:"hidden"}},(!r||!g||A)&&h.createElement(PTe,{colWidths:P?[].concat(rt(P),[w]):[],columCount:s+1,columns:M}),v(z(z({},y),{},{stickyOffsets:k,columns:D,flattenColumns:M}))))});const joe=h.memo(Cvt);var xvt=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=ls(cl,["prefixCls","direction"]),u=c.prefixCls,d=c.direction,f;s&&(f=s(n.map(function(m){return m.column}),l));var p=uD(n.map(function(m){return m.column}));return h.createElement(o,f,n.map(function(m,g){var v=m.column,y=YY(m.colStart,m.colEnd,i,r,d),b;return v&&v.onHeaderCell&&(b=m.column.onHeaderCell(v)),h.createElement(RS,Xe({},m,{scope:v.title?m.colSpan>1?"colgroup":"col":null,ellipsis:v.ellipsis,align:v.align,component:a,prefixCls:u,key:p[g]},y,{additionalProps:b,rowType:"header"}))}))};function wvt(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},p=1,m=d.children;return m&&m.length>0&&(p=n(m,c,l+1).reduce(function(g,v){return g+v},0),f.hasSubColumns=!0),"colSpan"in d&&(p=d.colSpan),"rowSpan"in d&&(f.rowSpan=d.rowSpan),f.colSpan=p,f.colEnd=f.colStart+p-1,t[l].push(f),c+=p,p});return u}n(e,0);for(var r=t.length,i=function(s){t[s].forEach(function(l){!("rowSpan"in l)&&!l.hasSubColumns&&(l.rowSpan=r-s)})},o=0;o<r;o+=1)i(o);return t}var Tvt=function(t){var n=t.stickyOffsets,r=t.columns,i=t.flattenColumns,o=t.onHeaderRow,a=ls(cl,["prefixCls","getComponent"]),s=a.prefixCls,l=a.getComponent,c=h.useMemo(function(){return wvt(r)},[r]),u=l(["header","wrapper"],"thead"),d=l(["header","row"],"tr"),f=l(["header","cell"],"th");return h.createElement(u,{className:"".concat(s,"-thead")},c.map(function(p,m){var g=h.createElement(xvt,{key:m,flattenColumns:i,cells:p,stickyOffsets:n,rowComponent:d,cellComponent:f,onHeaderRow:o,index:m});return g}))};const Uoe=OS(Tvt);function zoe(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 Ovt(e,t,n){return h.useMemo(function(){if(t&&t>0){var r=0,i=0;e.forEach(function(f){var p=zoe(t,f.width);p?r+=p:i+=1});var o=Math.max(t,n),a=Math.max(o-r,i),s=i,l=a/i,c=0,u=e.map(function(f){var p=z({},f),m=zoe(t,p.width);if(m)p.width=m;else{var g=Math.floor(l);p.width=s===1?a:g,a-=g,s-=1}return c+=p.width,p});if(c<o){var d=o/c;a=o,u.forEach(function(f,p){var m=Math.floor(f.width*d);f.width=p===u.length-1?a:m,a-=m})}return[u,Math.max(c,o)]}return[e,t]},[e,t,n])}var Rvt=["children"],Avt=["fixed"];function KY(e){return Do(e).filter(function(t){return h.isValidElement(t)}).map(function(t){var n=t.key,r=t.props,i=r.children,o=kt(r,Rvt),a=z({key:n},o);return i&&(a.children=KY(i)),a})}function DTe(e){return e.filter(function(t){return t&&qt(t)==="object"&&!t.hidden}).map(function(t){var n=t.children;return n&&n.length>0?z(z({},t),{},{children:DTe(n)}):t})}function sj(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"key";return e.filter(function(n){return n&&qt(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(rt(n),rt(sj(l,s).map(function(c){return z({fixed:a},c)}))):[].concat(rt(n),[z(z({key:s},r),{},{fixed:a})])},[])}function Ivt(e){return e.map(function(t){var n=t.fixed,r=kt(t,Avt),i=n;return n==="left"?i="right":n==="right"&&(i="left"),z({fixed:i},r)})}function Nvt(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,p=e.expandedRowOffset,m=p===void 0?0:p,g=e.direction,v=e.expandRowByClick,y=e.columnWidth,b=e.fixed,_=e.scrollWidth,S=e.clientWidth,x=h.useMemo(function(){var D=r||KY(i)||[];return DTe(D.slice())},[r,i]),E=h.useMemo(function(){if(o){var D=x.slice();if(!D.includes(Rp)){var M=f||0;M>=0&&(M||b==="left"||!b)&&D.splice(M,0,Rp),b==="right"&&D.splice(x.length,0,Rp)}var k=D.indexOf(Rp);D=D.filter(function(L,W){return L!==Rp||W===k});var P=x[k],B;b?B=b:B=P?P.fixed:null;var G=te(te(te(te(te(te({},px,{className:"".concat(n,"-expand-icon-col"),columnType:"EXPAND_COLUMN"}),"title",s),"fixed",B),"className","".concat(n,"-row-expand-icon-cell")),"width",y),"render",function(W,j,H){var X=l(j,H),Q=a.has(X),ue=d?d(j):!0,ee=u({prefixCls:n,expanded:Q,expandable:ue,record:j,onExpand:c});return v?h.createElement("span",{onClick:function(se){return se.stopPropagation()}},ee):ee});return D.map(function(L,W){var j=L===Rp?G:L;return W<m?z(z({},j),{},{fixed:j.fixed||"left"}):j})}return x.filter(function(L){return L!==Rp})},[o,x,l,a,u,g,m]),C=h.useMemo(function(){var D=E;return t&&(D=t(D)),D.length||(D=[{render:function(){return null}}]),D},[t,E,g]),w=h.useMemo(function(){return g==="rtl"?Ivt(sj(C)):sj(C)},[C,g,_]),O=h.useMemo(function(){for(var D=-1,M=w.length-1;M>=0;M-=1){var k=w[M].fixed;if(k==="left"||k===!0){D=M;break}}if(D>=0)for(var P=0;P<=D;P+=1){var B=w[P].fixed;if(B!=="left"&&B!==!0)return!0}var G=w.findIndex(function(j){var H=j.fixed;return H==="right"});if(G>=0)for(var L=G;L<w.length;L+=1){var W=w[L].fixed;if(W!=="right")return!0}return!1},[w]),T=Ovt(w,_,S),A=Re(T,2),I=A[0],N=A[1];return[C,I,N,O]}function Mvt(e,t,n){var r=yvt(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||uvt,p=d||"children",m=h.useMemo(function(){return l?"row":e.expandable&&e.internalHooks===R2&&e.expandable.__PARENT_RENDER_ICON__||t.some(function(x){return x&&qt(x)==="object"&&x[p]})?"nest":!1},[!!l,t]),g=h.useState(function(){return a||(s?dvt(t,n,p):[])}),v=Re(g,2),y=v[0],b=v[1],_=h.useMemo(function(){return new Set(o||y||[])},[o,y]),S=h.useCallback(function(x){var E=n(x,t.indexOf(x)),C,w=_.has(E);w?(_.delete(E),C=rt(_)):C=[].concat(rt(_),[E]),b(C),c&&c(!w,x),u&&u(C)},[n,_,t,c,u]);return[r,m,_,f,p,S]}function kvt(e,t,n){var r=e.map(function(i,o){return YY(o,o,e,t,n)});return Df(function(){return r},[r],function(i,o){return!Bl(i,o)})}function Pvt(e){var t=h.useRef(e),n=h.useState({}),r=Re(n,2),i=r[1],o=h.useRef(null),a=h.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 h.useEffect(function(){return function(){o.current=null}},[]),[t.current,s]}function Dvt(e){var t=h.useRef(null),n=h.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 h.useEffect(function(){return r},[]),[i,o]}function Lvt(){var e=h.useState(-1),t=Re(e,2),n=t[0],r=t[1],i=h.useState(-1),o=Re(i,2),a=o[0],s=o[1],l=h.useCallback(function(c,u){r(c),s(u)},[]);return[n,a,l]}var Voe=Aa()?window:null;function $vt(e,t){var n=qt(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 Voe}:c,d=u()||Voe,f=!!e;return h.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 Fvt(e,t,n){var r=h.useMemo(function(){var i=t.length,o=function(c,u,d){for(var f=[],p=0,m=c;m!==u;m+=d)f.push(p),t[m].fixed&&(p+=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 Goe(e){var t=e.className,n=e.children;return h.createElement("div",{className:t},n)}function Woe(e){var t=JT(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 Bvt=function(t,n){var r,i,o=t.scrollBodyRef,a=t.onScroll,s=t.offsetScroll,l=t.container,c=t.direction,u=ls(cl,"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,p=d&&f*(f/d),m=h.useRef(),g=Pvt({scrollLeft:0,isHiddenScrollBar:!0}),v=Re(g,2),y=v[0],b=v[1],_=h.useRef({delta:0,x:0}),S=h.useState(!1),x=Re(S,2),E=x[0],C=x[1],w=h.useRef(null);h.useEffect(function(){return function(){tr.cancel(w.current)}},[]);var O=function(){C(!1)},T=function(M){M.persist(),_.current.delta=M.pageX-y.scrollLeft,_.current.x=0,C(!0),M.preventDefault()},A=function(M){var k,P=M||((k=window)===null||k===void 0?void 0:k.event),B=P.buttons;if(!E||B===0){E&&C(!1);return}var G=_.current.x+M.pageX-_.current.x-_.current.delta,L=c==="rtl";G=Math.max(L?p-f:0,Math.min(L?0:f-p,G));var W=!L||Math.abs(G)+Math.abs(p)<f;W&&(a({scrollLeft:G/f*(d+2)}),_.current.x=M.pageX)},I=function(){tr.cancel(w.current),w.current=tr(function(){if(o.current){var M=Woe(o.current).top,k=M+o.current.offsetHeight,P=l===window?document.documentElement.scrollTop+window.innerHeight:Woe(l).top+l.clientHeight;k-mre()<=P||M>=P-s?b(function(B){return z(z({},B),{},{isHiddenScrollBar:!0})}):b(function(B){return z(z({},B),{},{isHiddenScrollBar:!1})})}})},N=function(M){b(function(k){return z(z({},k),{},{scrollLeft:M/d*f||0})})};return h.useImperativeHandle(n,function(){return{setScrollLeft:N,checkScrollBarVisible:I}}),h.useEffect(function(){var D=Mm(document.body,"mouseup",O,!1),M=Mm(document.body,"mousemove",A,!1);return I(),function(){D.remove(),M.remove()}},[p,E]),h.useEffect(function(){if(o.current){for(var D=[],M=JT(o.current);M;)D.push(M),M=M.parentElement;return D.forEach(function(k){return k.addEventListener("scroll",I,!1)}),window.addEventListener("resize",I,!1),window.addEventListener("scroll",I,!1),l.addEventListener("scroll",I,!1),function(){D.forEach(function(k){return k.removeEventListener("scroll",I)}),window.removeEventListener("resize",I),window.removeEventListener("scroll",I),l.removeEventListener("scroll",I)}}},[l]),h.useEffect(function(){y.isHiddenScrollBar||b(function(D){var M=o.current;return M?z(z({},D),{},{scrollLeft:M.scrollLeft/M.scrollWidth*M.clientWidth}):D})},[y.isHiddenScrollBar]),d<=f||!p||y.isHiddenScrollBar?null:h.createElement("div",{style:{height:mre(),width:f,bottom:s},className:"".concat(u,"-sticky-scroll")},h.createElement("div",{onMouseDown:T,ref:m,className:Ce("".concat(u,"-sticky-scroll-bar"),te({},"".concat(u,"-sticky-scroll-bar-active"),E)),style:{width:"".concat(p,"px"),transform:"translate3d(".concat(y.scrollLeft,"px, 0, 0)")}}))};const Hvt=h.forwardRef(Bvt);var LTe="rc-table",jvt=[],Uvt={};function zvt(){return"No Data"}function Vvt(e,t){var n=z({rowKey:"key",prefixCls:LTe,emptyText:zvt},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,p=n.footer,m=n.summary,g=n.caption,v=n.id,y=n.showHeader,b=n.components,_=n.emptyText,S=n.onRow,x=n.onHeaderRow,E=n.onScroll,C=n.internalHooks,w=n.transformColumns,O=n.internalRefs,T=n.tailor,A=n.getContainerWidth,I=n.sticky,N=n.rowHoverable,D=N===void 0?!0:N,M=s||jvt,k=!!M.length,P=C===R2,B=h.useCallback(function(mn,nn){return No(b,mn)||nn},[b]),G=h.useMemo(function(){return typeof l=="function"?l:function(mn){var nn=mn&&mn[l];return nn}},[l]),L=B(["body"]),W=Lvt(),j=Re(W,3),H=j[0],X=j[1],Q=j[2],ue=Mvt(n,M,G),ee=Re(ue,6),K=ee[0],se=ee[1],le=ee[2],oe=ee[3],ne=ee[4],he=ee[5],me=c==null?void 0:c.x,ce=h.useState(0),re=Re(ce,2),ve=re[0],be=re[1],xe=Nvt(z(z(z({},n),K),{},{expandable:!!K.expandedRowRender,columnTitle:K.columnTitle,expandedKeys:le,getRowKey:G,onTriggerExpand:he,expandIcon:oe,expandIconColumnIndex:K.expandIconColumnIndex,direction:d,scrollWidth:P&&T&&typeof me=="number"?me:null,clientWidth:ve}),P?w:null),we=Re(xe,4),de=we[0],Ee=we[1],Ne=we[2],Te=we[3],Ve=Ne??me,q=h.useMemo(function(){return{columns:de,flattenColumns:Ee}},[de,Ee]),U=h.useRef(),Y=h.useRef(),ae=h.useRef(),ye=h.useRef();h.useImperativeHandle(t,function(){return{nativeElement:U.current,scrollTo:function(nn){var In;if(ae.current instanceof HTMLElement){var vr=nn.index,Yn=nn.top,go=nn.key;if(X1t(Yn)){var ds;(ds=ae.current)===null||ds===void 0||ds.scrollTo({top:Yn})}else{var la,pi=go??G(M[vr]);(la=ae.current.querySelector('[data-row-key="'.concat(pi,'"]')))===null||la===void 0||la.scrollIntoView()}}else(In=ae.current)!==null&&In!==void 0&&In.scrollTo&&ae.current.scrollTo(nn)}}});var fe=h.useRef(),Ae=h.useState(!1),We=Re(Ae,2),ie=We[0],Be=We[1],Fe=h.useState(!1),Pe=Re(Fe,2),Ke=Pe[0],tt=Pe[1],Ge=h.useState(new Map),Nt=Re(Ge,2),lt=Nt[0],st=Nt[1],It=uD(Ee),ct=It.map(function(mn){return lt.get(mn)}),Pt=h.useMemo(function(){return ct},[ct.join("_")]),Rt=Fvt(Pt,Ee,d),Tt=c&&aj(c.y),Me=c&&aj(Ve)||!!K.fixed,Ue=Me&&Ee.some(function(mn){var nn=mn.fixed;return nn}),$e=h.useRef(),Le=$vt(I,r),He=Le.isSticky,it=Le.offsetHeader,ft=Le.offsetSummary,Et=Le.offsetScroll,Dt=Le.stickyClassName,St=Le.container,bt=h.useMemo(function(){return m==null?void 0:m(M)},[m,M]),xt=(Tt||He)&&h.isValidElement(bt)&&bt.type===dD&&bt.props.fixed,ht,Vt,at;Tt&&(Vt={overflowY:k?"scroll":"auto",maxHeight:c.y}),Me&&(ht={overflowX:"auto"},Tt||(Vt={overflowY:"hidden"}),at={width:Ve===!0?"auto":Ve,minWidth:"100%"});var wt=h.useCallback(function(mn,nn){st(function(In){if(In.get(mn)!==nn){var vr=new Map(In);return vr.set(mn,nn),vr}return In})},[]),Gt=Dvt(),$t=Re(Gt,2),zt=$t[0],Ft=$t[1];function De(mn,nn){nn&&(typeof nn=="function"?nn(mn):nn.scrollLeft!==mn&&(nn.scrollLeft=mn,nn.scrollLeft!==mn&&setTimeout(function(){nn.scrollLeft=mn},0)))}var Ct=qn(function(mn){var nn=mn.currentTarget,In=mn.scrollLeft,vr=d==="rtl",Yn=typeof In=="number"?In:nn.scrollLeft,go=nn||Uvt;if(!Ft()||Ft()===go){var ds;zt(go),De(Yn,Y.current),De(Yn,ae.current),De(Yn,fe.current),De(Yn,(ds=$e.current)===null||ds===void 0?void 0:ds.setScrollLeft)}var la=nn||Y.current;if(la){var pi=P&&T&&typeof Ve=="number"?Ve:la.scrollWidth,ba=la.clientWidth;if(pi===ba){Be(!1),tt(!1);return}vr?(Be(-Yn<pi-ba),tt(-Yn>0)):(Be(Yn>0),tt(Yn<pi-ba))}}),et=qn(function(mn){Ct(mn),E==null||E(mn)}),Ot=function(){if(Me&&ae.current){var nn;Ct({currentTarget:JT(ae.current),scrollLeft:(nn=ae.current)===null||nn===void 0?void 0:nn.scrollLeft})}else Be(!1),tt(!1)},At=function(nn){var In,vr=nn.width;(In=$e.current)===null||In===void 0||In.checkScrollBarVisible();var Yn=U.current?U.current.offsetWidth:vr;P&&A&&U.current&&(Yn=A(U.current,Yn)||Yn),Yn!==ve&&(Ot(),be(Yn))},_n=h.useRef(!1);h.useEffect(function(){_n.current&&Ot()},[Me,s,de.length]),h.useEffect(function(){_n.current=!0},[]);var zn=h.useState(0),R=Re(zn,2),$=R[0],J=R[1],Oe=h.useState(!0),qe=Re(Oe,2),Qe=qe[0],Bt=qe[1];er(function(){(!T||!P)&&(ae.current instanceof Element?J(EH(ae.current).width):J(EH(ye.current).width)),Bt(kH("position","sticky"))},[]),h.useEffect(function(){P&&O&&(O.body.current=ae.current)});var fn=h.useCallback(function(mn){return h.createElement(h.Fragment,null,h.createElement(Uoe,mn),xt==="top"&&h.createElement(IR,mn,bt))},[xt,bt]),gr=h.useCallback(function(mn){return h.createElement(IR,mn,bt)},[bt]),Jn=B(["table"],"table"),Hr=h.useMemo(function(){return u||(Ue?Ve==="max-content"?"auto":"fixed":Tt||He||Ee.some(function(mn){var nn=mn.ellipsis;return nn})?"fixed":"auto")},[Tt,Ue,Ee,u,He]),bi,br={colWidths:Pt,columCount:Ee.length,stickyOffsets:Rt,onHeaderRow:x,fixHeader:Tt,scroll:c},wn=h.useMemo(function(){return k?null:typeof _=="function"?_():_},[k,_]),an=h.createElement(vvt,{data:M,measureColumnWidth:Tt||Me||He}),yr=h.createElement(PTe,{colWidths:Ee.map(function(mn){var nn=mn.width;return nn}),columns:Ee}),Cn=g!=null?h.createElement("caption",{className:"".concat(r,"-caption")},g):void 0,rn=Oi(n,{data:!0}),Vn=Oi(n,{aria:!0});if(Tt||He){var Er;typeof L=="function"?(Er=L(M,{scrollbarSize:$,ref:ae,onScroll:Ct}),br.colWidths=Ee.map(function(mn,nn){var In=mn.width,vr=nn===Ee.length-1?In-$:In;return typeof vr=="number"&&!Number.isNaN(vr)?vr:0})):Er=h.createElement("div",{style:z(z({},ht),Vt),onScroll:et,ref:ae,className:Ce("".concat(r,"-body"))},h.createElement(Jn,Xe({style:z(z({},at),{},{tableLayout:Hr})},Vn),Cn,yr,an,!xt&&bt&&h.createElement(IR,{stickyOffsets:Rt,flattenColumns:Ee},bt)));var Lr=z(z(z({noData:!M.length,maxContentScroll:Me&&Ve==="max-content"},br),q),{},{direction:d,stickyClassName:Dt,onScroll:Ct});bi=h.createElement(h.Fragment,null,y!==!1&&h.createElement(joe,Xe({},Lr,{stickyTopOffset:it,className:"".concat(r,"-header"),ref:Y}),fn),Er,xt&&xt!=="top"&&h.createElement(joe,Xe({},Lr,{stickyBottomOffset:ft,className:"".concat(r,"-summary"),ref:fe}),gr),He&&ae.current&&ae.current instanceof Element&&h.createElement(Hvt,{ref:$e,offsetScroll:Et,scrollBodyRef:ae,onScroll:Ct,container:St,direction:d}))}else bi=h.createElement("div",{style:z(z({},ht),Vt),className:Ce("".concat(r,"-content")),onScroll:Ct,ref:ae},h.createElement(Jn,Xe({style:z(z({},at),{},{tableLayout:Hr})},Vn),Cn,yr,y!==!1&&h.createElement(Uoe,Xe({},br,q)),an,bt&&h.createElement(IR,{stickyOffsets:Rt,flattenColumns:Ee},bt)));var Ii=h.createElement("div",Xe({className:Ce(r,i,te(te(te(te(te(te(te(te(te(te({},"".concat(r,"-rtl"),d==="rtl"),"".concat(r,"-ping-left"),ie),"".concat(r,"-ping-right"),Ke),"".concat(r,"-layout-fixed"),u==="fixed"),"".concat(r,"-fixed-header"),Tt),"".concat(r,"-fixed-column"),Ue),"".concat(r,"-fixed-column-gapped"),Ue&&Te),"".concat(r,"-scroll-horizontal"),Me),"".concat(r,"-has-fix-left"),Ee[0]&&Ee[0].fixed),"".concat(r,"-has-fix-right"),Ee[Ee.length-1]&&Ee[Ee.length-1].fixed==="right")),style:a,id:v,ref:U},rn),f&&h.createElement(Goe,{className:"".concat(r,"-title")},f(M)),h.createElement("div",{ref:ye,className:"".concat(r,"-container")},bi),p&&h.createElement(Goe,{className:"".concat(r,"-footer")},p(M)));Me&&(Ii=h.createElement(Oa,{onResize:At},Ii));var nr=kvt(Ee,Rt,d),Wi=h.useMemo(function(){return{scrollX:Ve,prefixCls:r,getComponent:B,scrollbarSize:$,direction:d,fixedInfoList:nr,isSticky:He,supportSticky:Qe,componentWidth:ve,fixHeader:Tt,fixColumn:Ue,horizonScroll:Me,tableLayout:Hr,rowClassName:o,expandedRowClassName:K.expandedRowClassName,expandIcon:oe,expandableType:se,expandRowByClick:K.expandRowByClick,expandedRowRender:K.expandedRowRender,expandedRowOffset:K.expandedRowOffset,onTriggerExpand:he,expandIconColumnIndex:K.expandIconColumnIndex,indentSize:K.indentSize,allColumnsFixedLeft:Ee.every(function(mn){return mn.fixed==="left"}),emptyNode:wn,columns:de,flattenColumns:Ee,onColumnResize:wt,colWidths:Pt,hoverStartRow:H,hoverEndRow:X,onHover:Q,rowExpandable:K.rowExpandable,onRow:S,getRowKey:G,expandedKeys:le,childrenColumnName:ne,rowHoverable:D}},[Ve,r,B,$,d,nr,He,Qe,ve,Tt,Ue,Me,Hr,o,K.expandedRowClassName,oe,se,K.expandRowByClick,K.expandedRowRender,K.expandedRowOffset,he,K.expandIconColumnIndex,K.indentSize,wn,de,Ee,wt,Pt,H,X,Q,K.rowExpandable,S,G,le,ne,D]);return h.createElement(cl.Provider,{value:Wi},Ii)}var Gvt=h.forwardRef(Vvt);function $Te(e){return xTe(Gvt,e)}var AS=$Te();AS.EXPAND_COLUMN=Rp;AS.INTERNAL_HOOKS=R2;AS.Column=lvt;AS.ColumnGroup=cvt;AS.Summary=OTe;var QY=WY(null),FTe=WY(null);function Wvt(e,t,n){var r=t||1;return n[e+r]-(n[e]||0)}function qvt(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,p=n.render,m=n.dataIndex,g=n.className,v=n.width,y=ls(FTe,["columnsOffset"]),b=y.columnsOffset,_=kTe(t,n,r,i,o),S=_.key,x=_.fixedInfo,E=_.appendCellNode,C=_.additionalCellProps,w=C.style,O=C.colSpan,T=O===void 0?1:O,A=C.rowSpan,I=A===void 0?1:A,N=r-1,D=Wvt(N,T,b),M=T>1?v-D:0,k=z(z(z({},w),c),{},{flex:"0 0 ".concat(D,"px"),width:"".concat(D,"px"),marginRight:M,pointerEvents:"auto"}),P=h.useMemo(function(){return d?I<=1:T===0||I===0||I>1},[I,T,d]);P?k.visibility="hidden":d&&(k.height=f==null?void 0:f(I));var B=P?function(){return null}:p,G={};return(I===0||T===0)&&(G.rowSpan=1,G.colSpan=1),h.createElement(RS,Xe({className:Ce(g,u),ellipsis:n.ellipsis,align:n.align,scope:n.rowScope,component:a,prefixCls:t.prefixCls,key:S,record:l,index:o,renderIndex:s,dataIndex:m,render:B,shouldCellUpdate:n.shouldCellUpdate},x,{appendNode:E,additionalProps:z(z({},C),{},{style:k},G)}))}var Yvt=["data","index","className","rowKey","style","extra","getHeight"],Kvt=h.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=kt(e,Yvt),u=n.record,d=n.indent,f=n.index,p=ls(cl,["prefixCls","flattenColumns","fixColumn","componentWidth","scrollX"]),m=p.scrollX,g=p.flattenColumns,v=p.prefixCls,y=p.fixColumn,b=p.componentWidth,_=ls(QY,["getComponent"]),S=_.getComponent,x=ITe(u,o,r,d),E=S(["body","row"],"div"),C=S(["body","cell"],"div"),w=x.rowSupportExpand,O=x.expanded,T=x.rowProps,A=x.expandedRowRender,I=x.expandedRowClassName,N;if(w&&O){var D=A(u,r,d+1,O),M=MTe(I,u,r,d),k={};y&&(k={style:te({},"--virtual-width","".concat(b,"px"))});var P="".concat(v,"-expanded-row-cell");N=h.createElement(E,{className:Ce("".concat(v,"-expanded-row"),"".concat(v,"-expanded-row-level-").concat(d+1),M)},h.createElement(RS,{component:C,prefixCls:v,className:Ce(P,te({},"".concat(P,"-fixed"),y)),additionalProps:k},D))}var B=z(z({},a),{},{width:m});s&&(B.position="absolute",B.pointerEvents="none");var G=h.createElement(E,Xe({},T,c,{"data-row-key":o,ref:w?null:t,className:Ce(i,"".concat(v,"-row"),T==null?void 0:T.className,te({},"".concat(v,"-row-extra"),s)),style:z(z({},B),T==null?void 0:T.style)}),g.map(function(L,W){return h.createElement(qvt,{key:W,component:C,rowInfo:x,column:L,colIndex:W,indent:d,index:r,renderIndex:f,record:u,inverse:s,getHeight:l})}));return w?h.createElement("div",{ref:t},G,N):G}),qoe=OS(Kvt),Qvt=h.forwardRef(function(e,t){var n=e.data,r=e.onScroll,i=ls(cl,["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,p=ls(QY),m=p.sticky,g=p.scrollY,v=p.listItemHeight,y=p.getComponent,b=p.onScroll,_=h.useRef(),S=ATe(n,u,l,s),x=h.useMemo(function(){var N=0;return o.map(function(D){var M=D.width,k=D.key;return N+=M,[k,M,N]})},[o]),E=h.useMemo(function(){return x.map(function(N){return N[2]})},[x]);h.useEffect(function(){x.forEach(function(N){var D=Re(N,2),M=D[0],k=D[1];a(M,k)})},[x]),h.useImperativeHandle(t,function(){var N,D={scrollTo:function(k){var P;(P=_.current)===null||P===void 0||P.scrollTo(k)},nativeElement:(N=_.current)===null||N===void 0?void 0:N.nativeElement};return Object.defineProperty(D,"scrollLeft",{get:function(){var k;return((k=_.current)===null||k===void 0?void 0:k.getScrollInfo().x)||0},set:function(k){var P;(P=_.current)===null||P===void 0||P.scrollTo({left:k})}}),D});var C=function(D,M){var k,P=(k=S[M])===null||k===void 0?void 0:k.record,B=D.onCell;if(B){var G,L=B(P,M);return(G=L==null?void 0:L.rowSpan)!==null&&G!==void 0?G:1}return 1},w=function(D){var M=D.start,k=D.end,P=D.getSize,B=D.offsetY;if(k<0)return null;for(var G=o.filter(function(oe){return C(oe,M)===0}),L=M,W=function(ne){if(G=G.filter(function(he){return C(he,ne)===0}),!G.length)return L=ne,1},j=M;j>=0&&!W(j);j-=1);for(var H=o.filter(function(oe){return C(oe,k)!==1}),X=k,Q=function(ne){if(H=H.filter(function(he){return C(he,ne)!==1}),!H.length)return X=Math.max(ne-1,k),1},ue=k;ue<S.length&&!Q(ue);ue+=1);for(var ee=[],K=function(ne){var he=S[ne];if(!he)return 1;o.some(function(me){return C(me,ne)>1})&&ee.push(ne)},se=L;se<=X;se+=1)K(se);var le=ee.map(function(oe){var ne=S[oe],he=s(ne.record,oe),me=function(ve){var be=oe+ve-1,xe=s(S[be].record,be),we=P(he,xe);return we.bottom-we.top},ce=P(he);return h.createElement(qoe,{key:oe,data:ne,rowKey:he,index:oe,style:{top:-B+ce.top},extra:!0,getHeight:me})});return le},O=h.useMemo(function(){return{columnsOffset:E}},[E]),T="".concat(c,"-tbody"),A=y(["body","wrapper"]),I={};return m&&(I.position="sticky",I.bottom=0,qt(m)==="object"&&m.offsetScroll&&(I.bottom=m.offsetScroll)),h.createElement(FTe.Provider,{value:O},h.createElement($P,{fullHeight:!1,ref:_,prefixCls:"".concat(T,"-virtual"),styles:{horizontalScrollBar:I},className:T,height:g,itemHeight:v||24,data:S,itemKey:function(D){return s(D.record)},component:A,scrollWidth:d,direction:f,onVirtualScroll:function(D){var M,k=D.x;r({currentTarget:(M=_.current)===null||M===void 0?void 0:M.nativeElement,scrollLeft:k})},onScroll:b,extraRender:w},function(N,D,M){var k=s(N.record,D);return h.createElement(qoe,{data:N,rowKey:k,index:D,style:M.style})}))}),Xvt=OS(Qvt),Zvt=function(t,n){var r=n.ref,i=n.onScroll;return h.createElement(Xvt,{ref:r,data:t,onScroll:i})};function Jvt(e,t){var n=e.data,r=e.columns,i=e.scroll,o=e.sticky,a=e.prefixCls,s=a===void 0?LTe:a,l=e.className,c=e.listItemHeight,u=e.components,d=e.onScroll,f=i||{},p=f.x,m=f.y;typeof p!="number"&&(p=1),typeof m!="number"&&(m=500);var g=qn(function(b,_){return No(u,b)||_}),v=qn(d),y=h.useMemo(function(){return{sticky:o,scrollY:m,listItemHeight:c,getComponent:g,onScroll:v}},[o,m,c,g,v]);return h.createElement(QY.Provider,{value:y},h.createElement(AS,Xe({},e,{className:Ce(l,"".concat(s,"-virtual")),scroll:z(z({},i),{},{x:p}),components:z(z({},u),{},{body:n!=null&&n.length?Zvt:void 0}),columns:r,internalHooks:R2,tailor:!0,ref:t})))}var ebt=h.forwardRef(Jvt);function BTe(e){return xTe(ebt,e)}BTe();const tbt=e=>null,nbt=e=>null;var XY=h.createContext(null),HTe=h.createContext({}),rbt=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(h.createElement("span",{key:l,className:Ce(a,te(te({},"".concat(a,"-start"),i[l]),"".concat(a,"-end"),o[l]))}));return h.createElement("span",{"aria-hidden":"true",className:"".concat(n,"-indent")},s)};const ibt=h.memo(rbt);var obt=["eventKey","className","style","dragOver","dragOverGapTop","dragOverGapBottom","isLeaf","isStart","isEnd","expanded","selected","checked","halfChecked","loading","domRef","active","data","onMouseMove","selectable"],Yoe="open",Koe="close",abt="---",jw=function(t){var n,r,i,o=t.eventKey,a=t.className,s=t.style,l=t.dragOver,c=t.dragOverGapTop,u=t.dragOverGapBottom,d=t.isLeaf,f=t.isStart,p=t.isEnd,m=t.expanded,g=t.selected,v=t.checked,y=t.halfChecked,b=t.loading,_=t.domRef,S=t.active,x=t.data,E=t.onMouseMove,C=t.selectable,w=kt(t,obt),O=pe.useContext(XY),T=pe.useContext(HTe),A=pe.useRef(null),I=pe.useState(!1),N=Re(I,2),D=N[0],M=N[1],k=!!(O.disabled||t.disabled||(n=T.nodeDisabled)!==null&&n!==void 0&&n.call(T,x)),P=pe.useMemo(function(){return!O.checkable||t.checkable===!1?!1:O.checkable},[O.checkable,t.checkable]),B=function(Ae){k||O.onNodeSelect(Ae,fa(t))},G=function(Ae){k||!P||t.disableCheckbox||O.onNodeCheck(Ae,fa(t),!v)},L=pe.useMemo(function(){return typeof C=="boolean"?C:O.selectable},[C,O.selectable]),W=function(Ae){O.onNodeClick(Ae,fa(t)),L?B(Ae):G(Ae)},j=function(Ae){O.onNodeDoubleClick(Ae,fa(t))},H=function(Ae){O.onNodeMouseEnter(Ae,fa(t))},X=function(Ae){O.onNodeMouseLeave(Ae,fa(t))},Q=function(Ae){O.onNodeContextMenu(Ae,fa(t))},ue=pe.useMemo(function(){return!!(O.draggable&&(!O.draggable.nodeDraggable||O.draggable.nodeDraggable(x)))},[O.draggable,x]),ee=function(Ae){Ae.stopPropagation(),M(!0),O.onNodeDragStart(Ae,t);try{Ae.dataTransfer.setData("text/plain","")}catch{}},K=function(Ae){Ae.preventDefault(),Ae.stopPropagation(),O.onNodeDragEnter(Ae,t)},se=function(Ae){Ae.preventDefault(),Ae.stopPropagation(),O.onNodeDragOver(Ae,t)},le=function(Ae){Ae.stopPropagation(),O.onNodeDragLeave(Ae,t)},oe=function(Ae){Ae.stopPropagation(),M(!1),O.onNodeDragEnd(Ae,t)},ne=function(Ae){Ae.preventDefault(),Ae.stopPropagation(),M(!1),O.onNodeDrop(Ae,t)},he=function(Ae){b||O.onNodeExpand(Ae,fa(t))},me=pe.useMemo(function(){var fe=wl(O.keyEntities,o)||{},Ae=fe.children;return!!(Ae||[]).length},[O.keyEntities,o]),ce=pe.useMemo(function(){return d===!1?!1:d||!O.loadData&&!me||O.loadData&&t.loaded&&!me},[d,O.loadData,me,t.loaded]);pe.useEffect(function(){b||typeof O.loadData=="function"&&m&&!ce&&!t.loaded&&O.onNodeLoad(fa(t))},[b,O.loadData,O.onNodeLoad,m,ce,t]);var re=pe.useMemo(function(){var fe;return(fe=O.draggable)!==null&&fe!==void 0&&fe.icon?pe.createElement("span",{className:"".concat(O.prefixCls,"-draggable-icon")},O.draggable.icon):null},[O.draggable]),ve=function(Ae){var We=t.switcherIcon||O.switcherIcon;return typeof We=="function"?We(z(z({},t),{},{isLeaf:Ae})):We},be=function(){if(ce){var Ae=ve(!0);return Ae!==!1?pe.createElement("span",{className:Ce("".concat(O.prefixCls,"-switcher"),"".concat(O.prefixCls,"-switcher-noop"))},Ae):null}var We=ve(!1);return We!==!1?pe.createElement("span",{onClick:he,className:Ce("".concat(O.prefixCls,"-switcher"),"".concat(O.prefixCls,"-switcher_").concat(m?Yoe:Koe))},We):null},xe=pe.useMemo(function(){if(!P)return null;var fe=typeof P!="boolean"?P:null;return pe.createElement("span",{className:Ce("".concat(O.prefixCls,"-checkbox"),te(te(te({},"".concat(O.prefixCls,"-checkbox-checked"),v),"".concat(O.prefixCls,"-checkbox-indeterminate"),!v&&y),"".concat(O.prefixCls,"-checkbox-disabled"),k||t.disableCheckbox)),onClick:G,role:"checkbox","aria-checked":y?"mixed":v,"aria-disabled":k||t.disableCheckbox,"aria-label":"Select ".concat(typeof t.title=="string"?t.title:"tree node")},fe)},[P,v,y,k,t.disableCheckbox,t.title]),we=pe.useMemo(function(){return ce?null:m?Yoe:Koe},[ce,m]),de=pe.useMemo(function(){return pe.createElement("span",{className:Ce("".concat(O.prefixCls,"-iconEle"),"".concat(O.prefixCls,"-icon__").concat(we||"docu"),te({},"".concat(O.prefixCls,"-icon_loading"),b))})},[O.prefixCls,we,b]),Ee=pe.useMemo(function(){var fe=!!O.draggable,Ae=!t.disabled&&fe&&O.dragOverNodeKey===o;return Ae?O.dropIndicatorRender({dropPosition:O.dropPosition,dropLevelOffset:O.dropLevelOffset,indent:O.indent,prefixCls:O.prefixCls,direction:O.direction}):null},[O.dropPosition,O.dropLevelOffset,O.indent,O.prefixCls,O.direction,O.draggable,O.dragOverNodeKey,O.dropIndicatorRender]),Ne=pe.useMemo(function(){var fe=t.title,Ae=fe===void 0?abt:fe,We="".concat(O.prefixCls,"-node-content-wrapper"),ie;if(O.showIcon){var Be=t.icon||O.icon;ie=Be?pe.createElement("span",{className:Ce("".concat(O.prefixCls,"-iconEle"),"".concat(O.prefixCls,"-icon__customize"))},typeof Be=="function"?Be(t):Be):de}else O.loadData&&b&&(ie=de);var Fe;return typeof Ae=="function"?Fe=Ae(x):O.titleRender?Fe=O.titleRender(x):Fe=Ae,pe.createElement("span",{ref:A,title:typeof Ae=="string"?Ae:"",className:Ce(We,"".concat(We,"-").concat(we||"normal"),te({},"".concat(O.prefixCls,"-node-selected"),!k&&(g||D))),onMouseEnter:H,onMouseLeave:X,onContextMenu:Q,onClick:W,onDoubleClick:j},ie,pe.createElement("span",{className:"".concat(O.prefixCls,"-title")},Fe),Ee)},[O.prefixCls,O.showIcon,t,O.icon,de,O.titleRender,x,we,H,X,Q,W,j]),Te=Oi(w,{aria:!0,data:!0}),Ve=wl(O.keyEntities,o)||{},q=Ve.level,U=p[p.length-1],Y=!k&&ue,ae=O.draggingNodeKey===o,ye=C!==void 0?{"aria-selected":!!C}:void 0;return pe.createElement("div",Xe({ref:_,role:"treeitem","aria-expanded":d?void 0:m,className:Ce(a,"".concat(O.prefixCls,"-treenode"),(i={},te(te(te(te(te(te(te(te(te(te(i,"".concat(O.prefixCls,"-treenode-disabled"),k),"".concat(O.prefixCls,"-treenode-switcher-").concat(m?"open":"close"),!d),"".concat(O.prefixCls,"-treenode-checkbox-checked"),v),"".concat(O.prefixCls,"-treenode-checkbox-indeterminate"),y),"".concat(O.prefixCls,"-treenode-selected"),g),"".concat(O.prefixCls,"-treenode-loading"),b),"".concat(O.prefixCls,"-treenode-active"),S),"".concat(O.prefixCls,"-treenode-leaf-last"),U),"".concat(O.prefixCls,"-treenode-draggable"),ue),"dragging",ae),te(te(te(te(te(te(te(i,"drop-target",O.dropTargetKey===o),"drop-container",O.dropContainerKey===o),"drag-over",!k&&l),"drag-over-gap-top",!k&&c),"drag-over-gap-bottom",!k&&u),"filter-node",(r=O.filterTreeNode)===null||r===void 0?void 0:r.call(O,fa(t))),"".concat(O.prefixCls,"-treenode-leaf"),ce))),style:s,draggable:Y,onDragStart:Y?ee:void 0,onDragEnter:ue?K:void 0,onDragOver:ue?se:void 0,onDragLeave:ue?le:void 0,onDrop:ue?ne:void 0,onDragEnd:ue?oe:void 0,onMouseMove:E},ye,Te),pe.createElement(ibt,{prefixCls:O.prefixCls,level:q,isStart:f,isEnd:p}),re,be(),xe,Ne)};jw.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 ZY(e){return e.split("-")}function sbt(e,t){var n=[],r=wl(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 lbt(e){if(e.parent){var t=ZY(e.pos);return Number(t[t.length-1])===e.parent.children.length-1}return!1}function cbt(e){var t=ZY(e.pos);return Number(t[t.length-1])===0}function Qoe(e,t,n,r,i,o,a,s,l,c){var u,d=e.clientX,f=e.clientY,p=e.target.getBoundingClientRect(),m=p.top,g=p.height,v=(c==="rtl"?-1:1)*(((i==null?void 0:i.x)||0)-d),y=(v-12)/r,b=l.filter(function(k){var P;return(P=s[k])===null||P===void 0||(P=P.children)===null||P===void 0?void 0:P.length}),_=wl(s,n.eventKey);if(f<m+g/2){var S=a.findIndex(function(k){return k.key===_.key}),x=S<=0?0:S-1,E=a[x].key;_=wl(s,E)}var C=_.key,w=_,O=_.key,T=0,A=0;if(!b.includes(C))for(var I=0;I<y&&lbt(_);I+=1)_=_.parent,A+=1;var N=t.data,D=_.node,M=!0;return cbt(_)&&_.level===0&&f<m+g/2&&o({dragNode:N,dropNode:D,dropPosition:-1})&&_.key===n.eventKey?T=-1:(w.children||[]).length&&b.includes(O)?o({dragNode:N,dropNode:D,dropPosition:0})?T=0:M=!1:A===0?y>-1.5?o({dragNode:N,dropNode:D,dropPosition:1})?T=1:M=!1:o({dragNode:N,dropNode:D,dropPosition:0})?T=0:o({dragNode:N,dropNode:D,dropPosition:1})?T=1:M=!1:o({dragNode:N,dropNode:D,dropPosition:1})?T=1:M=!1,{dropPosition:T,dropLevelOffset:A,dropTargetKey:_.key,dropTargetPos:_.pos,dragOverNodeKey:O,dropContainerKey:T===0?null:((u=_.parent)===null||u===void 0?void 0:u.key)||null,dropAllowed:M}}function Xoe(e,t){if(e){var n=t.multiple;return n?e.slice():e.length?[e[0]]:e}}function wL(e){if(!e)return null;var t;if(Array.isArray(e))t={checkedKeys:e,halfCheckedKeys:void 0};else if(qt(e)==="object")t={checkedKeys:e.checked||void 0,halfCheckedKeys:e.halfChecked||void 0};else return Vr(!1,"`checkedKeys` is not an array or an object"),null;return t}function lj(e,t){var n=new Set;function r(i){if(!n.has(i)){var o=wl(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)}),rt(n)}function ubt(e){const[t,n]=h.useState(null);return[h.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)),p=[];return d.forEach(m=>{f?(s.has(m)||p.push(m),s.add(m)):(s.delete(m),p.push(m))}),n(f?u:null),p},[t]),o=>{n(o)}]}const Wh={},cj="SELECT_ALL",uj="SELECT_INVERT",dj="SELECT_NONE",Zoe=[],jTe=(e,t)=>{let n=[];return(t||[]).forEach(r=>{n.push(r),r&&typeof r=="object"&&e in r&&(n=[].concat(rt(n),rt(jTe(e,r[e]))))}),n},dbt=(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:p,selections:m,fixed:g,renderCell:v,hideSelectAll:y,checkStrictly:b=!0}=t||{},{prefixCls:_,data:S,pageData:x,getRecordByKey:E,getRowKey:C,expandType:w,childrenColumnName:O,locale:T,getPopupContainer:A}=e,I=Wf(),[N,D]=ubt(oe=>oe),[M,k]=Pn(r||i||Zoe,{value:r}),P=h.useRef(new Map),B=h.useCallback(oe=>{if(n){const ne=new Map;oe.forEach(he=>{let me=E(he);!me&&P.current.has(he)&&(me=P.current.get(he)),ne.set(he,me)}),P.current=ne}},[E,n]);h.useEffect(()=>{B(M)},[M]);const G=h.useMemo(()=>jTe(O,x),[O,x]),{keyEntities:L}=h.useMemo(()=>{if(b)return{keyEntities:null};let oe=S;if(n){const ne=new Set(G.map((me,ce)=>C(me,ce))),he=Array.from(P.current).reduce((me,[ce,re])=>ne.has(ce)?me:me.concat(re),[]);oe=[].concat(rt(oe),rt(he))}return y2(oe,{externalGetKey:C,childrenPropName:O})},[S,C,b,O,n,G]),W=h.useMemo(()=>{const oe=new Map;return G.forEach((ne,he)=>{const me=C(ne,he),ce=(o?o(ne):null)||{};oe.set(me,ce)}),oe},[G,C,o]),j=h.useCallback(oe=>{const ne=C(oe);let he;return W.has(ne)?he=W.get(C(oe)):he=o?o(oe):void 0,!!(he!=null&&he.disabled)},[W,C]),[H,X]=h.useMemo(()=>{if(b)return[M||[],[]];const{checkedKeys:oe,halfCheckedKeys:ne}=su(M,!0,L,j);return[oe||[],ne]},[M,b,L,j]),Q=h.useMemo(()=>{const oe=p==="radio"?H.slice(0,1):H;return new Set(oe)},[H,p]),ue=h.useMemo(()=>p==="radio"?new Set:new Set(X),[X,p]);h.useEffect(()=>{t||k(Zoe)},[!!t]);const ee=h.useCallback((oe,ne)=>{let he,me;B(oe),n?(he=oe,me=oe.map(ce=>P.current.get(ce))):(he=[],me=[],oe.forEach(ce=>{const re=E(ce);re!==void 0&&(he.push(ce),me.push(re))})),k(he),a==null||a(he,me,{type:ne})},[k,E,a,n]),K=h.useCallback((oe,ne,he,me)=>{if(s){const ce=he.map(re=>E(re));s(E(oe),ne,ce,me)}ee(he,"single")},[s,E,ee]),se=h.useMemo(()=>!m||y?null:(m===!0?[cj,uj,dj]:m).map(ne=>ne===cj?{key:"all",text:T.selectionAll,onSelect(){ee(S.map((he,me)=>C(he,me)).filter(he=>{const me=W.get(he);return!(me!=null&&me.disabled)||Q.has(he)}),"all")}}:ne===uj?{key:"invert",text:T.selectInvert,onSelect(){const he=new Set(Q);x.forEach((ce,re)=>{const ve=C(ce,re),be=W.get(ve);be!=null&&be.disabled||(he.has(ve)?he.delete(ve):he.add(ve))});const me=Array.from(he);c&&(I.deprecated(!1,"onSelectInvert","onChange"),c(me)),ee(me,"invert")}}:ne===dj?{key:"none",text:T.selectNone,onSelect(){u==null||u(),ee(Array.from(Q).filter(he=>{const me=W.get(he);return me==null?void 0:me.disabled}),"none")}}:ne).map(ne=>Object.assign(Object.assign({},ne),{onSelect:(...he)=>{var me,ce;(ce=ne.onSelect)===null||ce===void 0||(me=ce).call.apply(me,[ne].concat(he)),D(null)}})),[m,Q,x,C,c,ee]);return[h.useCallback(oe=>{var ne;if(!t)return oe.filter(ye=>ye!==Wh);let he=rt(oe);const me=new Set(Q),ce=G.map(C).filter(ye=>!W.get(ye).disabled),re=ce.every(ye=>me.has(ye)),ve=ce.some(ye=>me.has(ye)),be=()=>{const ye=[];re?ce.forEach(Ae=>{me.delete(Ae),ye.push(Ae)}):ce.forEach(Ae=>{me.has(Ae)||(me.add(Ae),ye.push(Ae))});const fe=Array.from(me);l==null||l(!re,fe.map(Ae=>E(Ae)),ye.map(Ae=>E(Ae))),ee(fe,"all"),D(null)};let xe,we;if(p!=="radio"){let ye;if(se){const Be={getPopupContainer:A,items:se.map((Fe,Pe)=>{const{key:Ke,text:tt,onSelect:Ge}=Fe;return{key:Ke??Pe,onClick:()=>{Ge==null||Ge(ce)},label:tt}})};ye=h.createElement("div",{className:`${_}-selection-extra`},h.createElement(rD,{menu:Be,getPopupContainer:A},h.createElement("span",null,h.createElement(d2,null))))}const fe=G.map((Be,Fe)=>{const Pe=C(Be,Fe),Ke=W.get(Pe)||{};return Object.assign({checked:me.has(Pe)},Ke)}).filter(({disabled:Be})=>Be),Ae=!!fe.length&&fe.length===G.length,We=Ae&&fe.every(({checked:Be})=>Be),ie=Ae&&fe.some(({checked:Be})=>Be);we=h.createElement(lh,{checked:Ae?We:!!G.length&&re,indeterminate:Ae?!We&&ie:!re&&ve,onChange:be,disabled:G.length===0||Ae,"aria-label":ye?"Custom selection":"Select all",skipGroup:!0}),xe=!y&&h.createElement("div",{className:`${_}-selection`},we,ye)}let de;p==="radio"?de=(ye,fe,Ae)=>{const We=C(fe,Ae),ie=me.has(We),Be=W.get(We);return{node:h.createElement(Qi,Object.assign({},Be,{checked:ie,onClick:Fe=>{var Pe;Fe.stopPropagation(),(Pe=Be==null?void 0:Be.onClick)===null||Pe===void 0||Pe.call(Be,Fe)},onChange:Fe=>{var Pe;me.has(We)||K(We,!0,[We],Fe.nativeEvent),(Pe=Be==null?void 0:Be.onChange)===null||Pe===void 0||Pe.call(Be,Fe)}})),checked:ie}}:de=(ye,fe,Ae)=>{var We;const ie=C(fe,Ae),Be=me.has(ie),Fe=ue.has(ie),Pe=W.get(ie);let Ke;return w==="nest"?Ke=Fe:Ke=(We=Pe==null?void 0:Pe.indeterminate)!==null&&We!==void 0?We:Fe,{node:h.createElement(lh,Object.assign({},Pe,{indeterminate:Ke,checked:Be,skipGroup:!0,onClick:tt=>{var Ge;tt.stopPropagation(),(Ge=Pe==null?void 0:Pe.onClick)===null||Ge===void 0||Ge.call(Pe,tt)},onChange:tt=>{var Ge;const{nativeEvent:Nt}=tt,{shiftKey:lt}=Nt,st=ce.findIndex(ct=>ct===ie),It=H.some(ct=>ce.includes(ct));if(lt&&b&&It){const ct=N(st,ce,me),Pt=Array.from(me);d==null||d(!Be,Pt.map(Rt=>E(Rt)),ct.map(Rt=>E(Rt))),ee(Pt,"multiple")}else{const ct=H;if(b){const Pt=Be?Jd(ct,ie):bp(ct,ie);K(ie,!Be,Pt,Nt)}else{const Pt=su([].concat(rt(ct),[ie]),!0,L,j),{checkedKeys:Rt,halfCheckedKeys:Tt}=Pt;let Me=Rt;if(Be){const Ue=new Set(Rt);Ue.delete(ie),Me=su(Array.from(Ue),{halfCheckedKeys:Tt},L,j).checkedKeys}K(ie,!Be,Me,Nt)}}D(Be?null:st),(Ge=Pe==null?void 0:Pe.onChange)===null||Ge===void 0||Ge.call(Pe,tt)}})),checked:Be}};const Ee=(ye,fe,Ae)=>{const{node:We,checked:ie}=de(ye,fe,Ae);return v?v(ie,fe,Ae,We):We};if(!he.includes(Wh))if(he.findIndex(ye=>{var fe;return((fe=ye[px])===null||fe===void 0?void 0:fe.columnType)==="EXPAND_COLUMN"})===0){const[ye,...fe]=he;he=[ye,Wh].concat(rt(fe))}else he=[Wh].concat(rt(he));const Ne=he.indexOf(Wh);he=he.filter((ye,fe)=>ye!==Wh||fe===Ne);const Te=he[Ne-1],Ve=he[Ne+1];let q=g;q===void 0&&((Ve==null?void 0:Ve.fixed)!==void 0?q=Ve.fixed:(Te==null?void 0:Te.fixed)!==void 0&&(q=Te.fixed)),q&&Te&&((ne=Te[px])===null||ne===void 0?void 0:ne.columnType)==="EXPAND_COLUMN"&&Te.fixed===void 0&&(Te.fixed=q);const U=Ce(`${_}-selection-col`,{[`${_}-selection-col-with-dropdown`]:m&&p==="checkbox"}),Y=()=>t!=null&&t.columnTitle?typeof t.columnTitle=="function"?t.columnTitle(we):t.columnTitle:xe,ae={fixed:q,width:f,className:`${_}-selection-column`,title:Y(),render:Ee,onCell:t.onCell,align:t.align,[px]:{className:U}};return he.map(ye=>ye===Wh?ae:ye)},[C,G,t,H,Q,ue,f,se,w,W,d,K,j]),Q]};function fbt(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 pbt(e,t){return h.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)}}):fbt(r,n)})}function hbt(e){return t=>{const{prefixCls:n,onExpand:r,record:i,expanded:o,expandable:a}=t,s=`${n}-row-expand-icon`;return h.createElement("button",{type:"button",onClick:l=>{r(i,l),l.stopPropagation()},className:Ce(s,{[`${s}-spaced`]:!a,[`${s}-expanded`]:a&&o,[`${s}-collapsed`]:a&&!o}),"aria-label":o?e.collapse:e.expand,"aria-expanded":o})}}function mbt(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 vg=(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 IS(e,t){return t?`${t}-${e}`:`${e}`}const fD=(e,t)=>typeof e=="function"?e(t):e,gbt=(e,t)=>{const n=fD(e,t);return Object.prototype.toString.call(n)==="[object Object]"?"":n};function vbt(e){const t=h.useRef(e),n=iY();return[()=>t.current,r=>{t.current=r,n()}]}var bbt=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 pe.createElement("div",{style:o})};function UTe(e){if(e==null)throw new TypeError("Cannot destructure "+e)}function ybt(e,t){var n=h.useState(!1),r=Re(n,2),i=r[0],o=r[1];er(function(){if(i)return e(),function(){t()}},[i]),er(function(){return o(!0),function(){o(!1)}},[])}var _bt=["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"],Sbt=h.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=kt(e,_bt),f=h.useState(!0),p=Re(f,2),m=p[0],g=p[1],v=h.useContext(XY),y=v.prefixCls,b=o&&a!=="hide";er(function(){o&&b!==m&&g(b)},[o]);var _=function(){o&&s()},S=h.useRef(!1),x=function(){o&&!S.current&&(S.current=!0,l())};ybt(_,x);var E=function(w){b===w&&x()};return o?h.createElement(ia,Xe({ref:t,visible:m},i,{motionAppear:a==="show",onVisibleChanged:E}),function(C,w){var O=C.className,T=C.style;return h.createElement("div",{ref:w,className:Ce("".concat(y,"-treenode-motion"),O),style:T},o.map(function(A){var I=Object.assign({},(UTe(A.data),A.data)),N=A.title,D=A.key,M=A.isStart,k=A.isEnd;delete I.children;var P=dx(D,u);return h.createElement(jw,Xe({},I,P,{title:N,active:c,data:A.data,key:D,isStart:M,isEnd:k}))}))}):h.createElement(jw,Xe({domRef:t,className:n,style:r},d,{active:c}))});function Ebt(){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 Joe(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 Cbt=["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"],eae={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},xbt=function(){},U1="RC_TREE_MOTION_".concat(Math.random()),fj={key:U1},zTe={key:U1,level:0,index:0,pos:"0",node:fj,nodes:[fj]},tae={parent:null,children:[],pos:zTe.pos,data:fj,title:null,key:U1,isStart:[],isEnd:[]};function nae(e,t,n,r){return t===!1||!n?e:e.slice(0,Math.ceil(n/r)+1)}function rae(e){var t=e.key,n=e.pos;return b2(t,n)}function wbt(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 Tbt=h.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,p=e.dragOverNodeKey,m=e.dropPosition,g=e.motion,v=e.height,y=e.itemHeight,b=e.virtual,_=e.scrollWidth,S=e.focusable,x=e.activeItem,E=e.focused,C=e.tabIndex,w=e.onKeyDown,O=e.onFocus,T=e.onBlur,A=e.onActiveChange,I=e.onListChangeStart,N=e.onListChangeEnd,D=kt(e,Cbt),M=h.useRef(null),k=h.useRef(null);h.useImperativeHandle(t,function(){return{scrollTo:function(Ee){M.current.scrollTo(Ee)},getIndentWidth:function(){return k.current.offsetWidth}}});var P=h.useState(i),B=Re(P,2),G=B[0],L=B[1],W=h.useState(r),j=Re(W,2),H=j[0],X=j[1],Q=h.useState(r),ue=Re(Q,2),ee=ue[0],K=ue[1],se=h.useState([]),le=Re(se,2),oe=le[0],ne=le[1],he=h.useState(null),me=Re(he,2),ce=me[0],re=me[1],ve=h.useRef(r);ve.current=r;function be(){var de=ve.current;X(de),K(de),ne([]),re(null),N()}er(function(){L(i);var de=Ebt(G,i);if(de.key!==null)if(de.add){var Ee=H.findIndex(function(Y){var ae=Y.key;return ae===de.key}),Ne=nae(Joe(H,r,de.key),b,v,y),Te=H.slice();Te.splice(Ee+1,0,tae),K(Te),ne(Ne),re("show")}else{var Ve=r.findIndex(function(Y){var ae=Y.key;return ae===de.key}),q=nae(Joe(r,H,de.key),b,v,y),U=r.slice();U.splice(Ve+1,0,tae),K(U),ne(q),re("hide")}else H!==r&&(X(r),K(r))},[i,r]),h.useEffect(function(){f||be()},[f]);var xe=g?ee:r,we={expandedKeys:i,selectedKeys:o,loadedKeys:s,loadingKeys:l,checkedKeys:a,halfCheckedKeys:c,dragOverNodeKey:p,dropPosition:m,keyEntities:u};return h.createElement(h.Fragment,null,E&&x&&h.createElement("span",{style:eae,"aria-live":"assertive"},wbt(x)),h.createElement("div",null,h.createElement("input",{style:eae,disabled:S===!1||d,tabIndex:S!==!1?C:null,onKeyDown:w,onFocus:O,onBlur:T,value:"",onChange:xbt,"aria-label":"for screen reader"})),h.createElement("div",{className:"".concat(n,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},h.createElement("div",{className:"".concat(n,"-indent")},h.createElement("div",{ref:k,className:"".concat(n,"-indent-unit")}))),h.createElement($P,Xe({},D,{data:xe,itemKey:rae,height:v,fullHeight:!1,virtual:b,itemHeight:y,scrollWidth:_,prefixCls:"".concat(n,"-list"),ref:M,role:"tree",onVisibleChange:function(Ee){Ee.every(function(Ne){return rae(Ne)!==U1})&&be()}}),function(de){var Ee=de.pos,Ne=Object.assign({},(UTe(de.data),de.data)),Te=de.title,Ve=de.key,q=de.isStart,U=de.isEnd,Y=b2(Ve,Ee);delete Ne.key,delete Ne.children;var ae=dx(Y,we);return h.createElement(Sbt,Xe({},Ne,ae,{title:Te,active:!!x&&Ve===x.key,pos:Ee,data:de.data,isStart:q,isEnd:U,motion:g,motionNodes:Ve===U1?oe:null,motionType:ce,onMotionStart:I,onMotionEnd:be,treeNodeRequiredProps:we,onMouseMove:function(){A(null)}}))}))}),Obt=10,pD=function(e){Fs(n,e);var t=ll(n);function n(){var r;Qr(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)),te(sn(r),"destroyed",!1),te(sn(r),"delayedDragEnterLogic",void 0),te(sn(r),"loadingRetryTimes",{}),te(sn(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:b_()}),te(sn(r),"dragStartMousePosition",null),te(sn(r),"dragNodeProps",null),te(sn(r),"currentMouseOverDroppableNodeKey",null),te(sn(r),"listRef",h.createRef()),te(sn(r),"onNodeDragStart",function(s,l){var c=r.state,u=c.expandedKeys,d=c.keyEntities,f=r.props.onDragStart,p=l.eventKey;r.dragNodeProps=l,r.dragStartMousePosition={x:s.clientX,y:s.clientY};var m=Jd(u,p);r.setState({draggingNodeKey:p,dragChildrenKeys:sbt(p,d),indent:r.listRef.current.getIndentWidth()}),r.setExpandedKeys(m),window.addEventListener("dragend",r.onWindowDragEnd),f==null||f({event:s,node:fa(l)})}),te(sn(r),"onNodeDragEnter",function(s,l){var c=r.state,u=c.expandedKeys,d=c.keyEntities,f=c.dragChildrenKeys,p=c.flattenNodes,m=c.indent,g=r.props,v=g.onDragEnter,y=g.onExpand,b=g.allowDrop,_=g.direction,S=l.pos,x=l.eventKey;if(r.currentMouseOverDroppableNodeKey!==x&&(r.currentMouseOverDroppableNodeKey=x),!r.dragNodeProps){r.resetDragState();return}var E=Qoe(s,r.dragNodeProps,l,m,r.dragStartMousePosition,b,p,d,u,_),C=E.dropPosition,w=E.dropLevelOffset,O=E.dropTargetKey,T=E.dropContainerKey,A=E.dropTargetPos,I=E.dropAllowed,N=E.dragOverNodeKey;if(f.includes(O)||!I){r.resetDragState();return}if(r.delayedDragEnterLogic||(r.delayedDragEnterLogic={}),Object.keys(r.delayedDragEnterLogic).forEach(function(D){clearTimeout(r.delayedDragEnterLogic[D])}),r.dragNodeProps.eventKey!==l.eventKey&&(s.persist(),r.delayedDragEnterLogic[S]=window.setTimeout(function(){if(r.state.draggingNodeKey!==null){var D=rt(u),M=wl(d,l.eventKey);M&&(M.children||[]).length&&(D=bp(u,l.eventKey)),r.props.hasOwnProperty("expandedKeys")||r.setExpandedKeys(D),y==null||y(D,{node:fa(l),expanded:!0,nativeEvent:s.nativeEvent})}},800)),r.dragNodeProps.eventKey===O&&w===0){r.resetDragState();return}r.setState({dragOverNodeKey:N,dropPosition:C,dropLevelOffset:w,dropTargetKey:O,dropContainerKey:T,dropTargetPos:A,dropAllowed:I}),v==null||v({event:s,node:fa(l),expandedKeys:u})}),te(sn(r),"onNodeDragOver",function(s,l){var c=r.state,u=c.dragChildrenKeys,d=c.flattenNodes,f=c.keyEntities,p=c.expandedKeys,m=c.indent,g=r.props,v=g.onDragOver,y=g.allowDrop,b=g.direction;if(r.dragNodeProps){var _=Qoe(s,r.dragNodeProps,l,m,r.dragStartMousePosition,y,d,f,p,b),S=_.dropPosition,x=_.dropLevelOffset,E=_.dropTargetKey,C=_.dropContainerKey,w=_.dropTargetPos,O=_.dropAllowed,T=_.dragOverNodeKey;u.includes(E)||!O||(r.dragNodeProps.eventKey===E&&x===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():S===r.state.dropPosition&&x===r.state.dropLevelOffset&&E===r.state.dropTargetKey&&C===r.state.dropContainerKey&&w===r.state.dropTargetPos&&O===r.state.dropAllowed&&T===r.state.dragOverNodeKey||r.setState({dropPosition:S,dropLevelOffset:x,dropTargetKey:E,dropContainerKey:C,dropTargetPos:w,dropAllowed:O,dragOverNodeKey:T}),v==null||v({event:s,node:fa(l)}))}}),te(sn(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:fa(l)})}),te(sn(r),"onWindowDragEnd",function(s){r.onNodeDragEnd(s,null,!0),window.removeEventListener("dragend",r.onWindowDragEnd)}),te(sn(r),"onNodeDragEnd",function(s,l){var c=r.props.onDragEnd;r.setState({dragOverNodeKey:null}),r.cleanDragState(),c==null||c({event:s,node:fa(l)}),r.dragNodeProps=null,window.removeEventListener("dragend",r.onWindowDragEnd)}),te(sn(r),"onNodeDrop",function(s,l){var c,u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,d=r.state,f=d.dragChildrenKeys,p=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=z(z({},dx(m,r.getTreeNodeRequiredProps())),{},{active:((c=r.getActiveItem())===null||c===void 0?void 0:c.key)===m,data:wl(r.state.keyEntities,m).node}),_=f.includes(m);Vr(!_,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var S=ZY(g),x={event:s,node:fa(b),dragNode:r.dragNodeProps?fa(r.dragNodeProps):null,dragNodesKeys:[r.dragNodeProps.eventKey].concat(f),dropToGap:p!==0,dropPosition:p+Number(S[S.length-1])};u||y==null||y(x),r.dragNodeProps=null}}}),te(sn(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}),te(sn(r),"triggerExpandActionExpand",function(s,l){var c=r.state,u=c.expandedKeys,d=c.flattenNodes,f=l.expanded,p=l.key,m=l.isLeaf;if(!(m||s.shiftKey||s.metaKey||s.ctrlKey)){var g=d.filter(function(y){return y.key===p})[0],v=fa(z(z({},dx(p,r.getTreeNodeRequiredProps())),{},{data:g.data}));r.setExpandedKeys(f?Jd(u,p):bp(u,p)),r.onNodeExpand(s,v)}}),te(sn(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)}),te(sn(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)}),te(sn(r),"onNodeSelect",function(s,l){var c=r.state.selectedKeys,u=r.state,d=u.keyEntities,f=u.fieldNames,p=r.props,m=p.onSelect,g=p.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(S){var x=wl(d,S);return x?x.node:null}).filter(Boolean);r.setUncontrolledState({selectedKeys:c}),m==null||m(c,{event:"select",selected:b,node:l,selectedNodes:_,nativeEvent:s.nativeEvent})}),te(sn(r),"onNodeCheck",function(s,l,c){var u=r.state,d=u.keyEntities,f=u.checkedKeys,p=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 S=c?bp(f,y):Jd(f,y),x=Jd(p,y);b={checked:S,halfChecked:x},_.checkedNodes=S.map(function(A){return wl(d,A)}).filter(Boolean).map(function(A){return A.node}),r.setUncontrolledState({checkedKeys:S})}else{var E=su([].concat(rt(f),[y]),!0,d),C=E.checkedKeys,w=E.halfCheckedKeys;if(!c){var O=new Set(C);O.delete(y);var T=su(Array.from(O),{halfCheckedKeys:w},d);C=T.checkedKeys,w=T.halfCheckedKeys}b=C,_.checkedNodes=[],_.checkedNodesPositions=[],_.halfCheckedKeys=w,C.forEach(function(A){var I=wl(d,A);if(I){var N=I.node,D=I.pos;_.checkedNodes.push(N),_.checkedNodesPositions.push({node:N,pos:D})}}),r.setUncontrolledState({checkedKeys:C},!1,{halfCheckedKeys:w})}v==null||v(b,_)}),te(sn(r),"onNodeLoad",function(s){var l,c=s.key,u=r.state.keyEntities,d=wl(u,c);if(!(d!=null&&(l=d.children)!==null&&l!==void 0&&l.length)){var f=new Promise(function(p,m){r.setState(function(g){var v=g.loadedKeys,y=v===void 0?[]:v,b=g.loadingKeys,_=b===void 0?[]:b,S=r.props,x=S.loadData,E=S.onLoad;if(!x||y.includes(c)||_.includes(c))return null;var C=x(s);return C.then(function(){var w=r.state.loadedKeys,O=bp(w,c);E==null||E(O,{event:"load",node:s}),r.setUncontrolledState({loadedKeys:O}),r.setState(function(T){return{loadingKeys:Jd(T.loadingKeys,c)}}),p()}).catch(function(w){if(r.setState(function(T){return{loadingKeys:Jd(T.loadingKeys,c)}}),r.loadingRetryTimes[c]=(r.loadingRetryTimes[c]||0)+1,r.loadingRetryTimes[c]>=Obt){var O=r.state.loadedKeys;Vr(!1,"Retry for `loadData` many times but still failed. No more retry."),r.setUncontrolledState({loadedKeys:bp(O,c)}),p()}m(w)}),{loadingKeys:bp(_,c)}})});return f.catch(function(){}),f}}),te(sn(r),"onNodeMouseEnter",function(s,l){var c=r.props.onMouseEnter;c==null||c({event:s,node:l})}),te(sn(r),"onNodeMouseLeave",function(s,l){var c=r.props.onMouseLeave;c==null||c({event:s,node:l})}),te(sn(r),"onNodeContextMenu",function(s,l){var c=r.props.onRightClick;c&&(s.preventDefault(),c({event:s,node:l}))}),te(sn(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)}),te(sn(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)}),te(sn(r),"getTreeNodeRequiredProps",function(){var s=r.state,l=s.expandedKeys,c=s.selectedKeys,u=s.loadedKeys,d=s.loadingKeys,f=s.checkedKeys,p=s.halfCheckedKeys,m=s.dragOverNodeKey,g=s.dropPosition,v=s.keyEntities;return{expandedKeys:l||[],selectedKeys:c||[],loadedKeys:u||[],loadingKeys:d||[],checkedKeys:f||[],halfCheckedKeys:p||[],dragOverNodeKey:m,dropPosition:g,keyEntities:v}}),te(sn(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)}),te(sn(r),"onNodeExpand",function(s,l){var c=r.state.expandedKeys,u=r.state,d=u.listChanging,f=u.fieldNames,p=r.props,m=p.onExpand,g=p.loadData,v=l.expanded,y=l[f.key];if(!d){var b=c.includes(y),_=!v;if(Vr(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 S=r.onNodeLoad(l);S&&S.then(function(){var x=gL(r.state.treeData,c,f);r.setUncontrolledState({flattenNodes:x})}).catch(function(){var x=r.state.expandedKeys,E=Jd(x,y);r.setExpandedKeys(E)})}}}),te(sn(r),"onListChangeStart",function(){r.setUncontrolledState({listChanging:!0})}),te(sn(r),"onListChangeEnd",function(){setTimeout(function(){r.setUncontrolledState({listChanging:!1})})}),te(sn(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))}),te(sn(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}),te(sn(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 p=f.key;r.onActiveChange(p)}else r.onActiveChange(null)}),te(sn(r),"onKeyDown",function(s){var l=r.state,c=l.activeKey,u=l.expandedKeys,d=l.checkedKeys,f=l.fieldNames,p=r.props,m=p.onKeyDown,g=p.checkable,v=p.selectable;switch(s.which){case Ut.UP:{r.offsetActiveKey(-1),s.preventDefault();break}case Ut.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,S=fa(z(z({},dx(c,b)),{},{data:y.data,active:!0}));switch(s.which){case Ut.LEFT:{_&&u.includes(c)?r.onNodeExpand({},S):y.parent&&r.onActiveChange(y.parent.key),s.preventDefault();break}case Ut.RIGHT:{_&&!u.includes(c)?r.onNodeExpand({},S):y.children&&y.children.length&&r.onActiveChange(y.children[0].key),s.preventDefault();break}case Ut.ENTER:case Ut.SPACE:{g&&!S.disabled&&S.checkable!==!1&&!S.disableCheckbox?r.onNodeCheck({},S,!d.includes(c)):!g&&v&&!S.disabled&&S.selectable!==!1&&r.onNodeSelect({},S);break}}}m==null||m(s)}),te(sn(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(p){if(r.props.hasOwnProperty(p)){d=!1;return}u=!0,f[p]=s[p]}),u&&(!l||d)&&r.setState(z(z({},f),c))}}),te(sn(r),"scrollTo",function(s){r.listRef.current.scrollTo(s)}),r}return Xr(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,p=i.dropPosition,m=i.dragOverNodeKey,g=i.indent,v=this.props,y=v.prefixCls,b=v.className,_=v.style,S=v.showLine,x=v.focusable,E=v.tabIndex,C=E===void 0?0:E,w=v.selectable,O=v.showIcon,T=v.icon,A=v.switcherIcon,I=v.draggable,N=v.checkable,D=v.checkStrictly,M=v.disabled,k=v.motion,P=v.loadData,B=v.filterTreeNode,G=v.height,L=v.itemHeight,W=v.scrollWidth,j=v.virtual,H=v.titleRender,X=v.dropIndicatorRender,Q=v.onContextMenu,ue=v.onScroll,ee=v.direction,K=v.rootClassName,se=v.rootStyle,le=Oi(this.props,{aria:!0,data:!0}),oe;I&&(qt(I)==="object"?oe=I:typeof I=="function"?oe={nodeDraggable:I}:oe={});var ne={prefixCls:y,selectable:w,showIcon:O,icon:T,switcherIcon:A,draggable:oe,draggingNodeKey:l,checkable:N,checkStrictly:D,disabled:M,keyEntities:s,dropLevelOffset:u,dropContainerKey:d,dropTargetKey:f,dropPosition:p,dragOverNodeKey:m,indent:g,direction:ee,dropIndicatorRender:X,loadData:P,filterTreeNode:B,titleRender:H,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 h.createElement(XY.Provider,{value:ne},h.createElement("div",{className:Ce(y,b,K,te(te(te({},"".concat(y,"-show-line"),S),"".concat(y,"-focused"),o),"".concat(y,"-active-focused"),c!==null)),style:se},h.createElement(Tbt,Xe({ref:this.listRef,prefixCls:y,style:_,data:a,disabled:M,selectable:w,checkable:!!N,motion:k,dragging:l!==null,height:G,itemHeight:L,virtual:j,focusable:x,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:Q,onScroll:ue,scrollWidth:W},this.getTreeNodeRequiredProps(),le))))}}],[{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=b_(i.fieldNames),s.fieldNames=u),l("treeData")?c=i.treeData:l("children")&&(Vr(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),c=Oxe(i.children)),c){s.treeData=c;var d=y2(c,{fieldNames:u});s.keyEntities=z(te({},U1,zTe),d.keyEntities)}var f=s.keyEntities||o.keyEntities;if(l("expandedKeys")||a&&l("autoExpandParent"))s.expandedKeys=i.autoExpandParent||!a&&i.defaultExpandParent?lj(i.expandedKeys,f):i.expandedKeys;else if(!a&&i.defaultExpandAll){var p=z({},f);delete p[U1];var m=[];Object.keys(p).forEach(function(C){var w=p[C];w.children&&w.children.length&&m.push(w.key)}),s.expandedKeys=m}else!a&&i.defaultExpandedKeys&&(s.expandedKeys=i.autoExpandParent||i.defaultExpandParent?lj(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=Xoe(i.selectedKeys,i):!a&&i.defaultSelectedKeys&&(s.selectedKeys=Xoe(i.defaultSelectedKeys,i))),i.checkable){var v;if(l("checkedKeys")?v=wL(i.checkedKeys)||{}:!a&&i.defaultCheckedKeys?v=wL(i.defaultCheckedKeys)||{}:c&&(v=wL(i.checkedKeys)||{checkedKeys:o.checkedKeys,halfCheckedKeys:o.halfCheckedKeys}),v){var y=v,b=y.checkedKeys,_=b===void 0?[]:b,S=y.halfCheckedKeys,x=S===void 0?[]:S;if(!i.checkStrictly){var E=su(_,!0,f);_=E.checkedKeys,x=E.halfCheckedKeys}s.checkedKeys=_,s.halfCheckedKeys=x}}return l("loadedKeys")&&(s.loadedKeys=i.loadedKeys),s}}]),n}(h.Component);te(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:bbt,allowDrop:function(){return!0},expandAction:!1});te(pD,"TreeNode",jw);const Rbt=({treeCls:e,treeNodeCls:t,directoryNodeSelectedBg:n,directoryNodeSelectedColor:r,motionDurationMid:i,borderRadius:o,controlItemBgHover:a})=>({[`${e}${e}-directory ${t}`]:{[`${e}-node-content-wrapper`]:{position:"static",[`> *:not(${e}-drop-indicator)`]:{position:"relative"},"&:hover":{background:"transparent"},"&:before":{position:"absolute",inset:0,transition:`background-color ${i}`,content:'""',borderRadius:o},"&:hover:before":{background:a}},[`${e}-switcher, ${e}-checkbox, ${e}-draggable-icon`]:{zIndex:1},"&-selected":{[`${e}-switcher, ${e}-draggable-icon`]:{color:r},[`${e}-node-content-wrapper`]:{color:r,background:"transparent","&:before, &:hover:before":{background:n}}}}}),Abt=new fr("ant-tree-node-fx-do-not-use",{"0%":{opacity:0},"100%":{opacity:1}}),Ibt=(e,t)=>({[`.${e}-switcher-icon`]:{display:"inline-block",fontSize:10,verticalAlign:"baseline",svg:{transition:`transform ${t.motionDurationSlow}`}}}),Nbt=(e,t)=>({[`.${e}-drop-indicator`]:{position:"absolute",zIndex:1,height:2,backgroundColor:t.colorPrimary,borderRadius:1,pointerEvents:"none","&:after":{position:"absolute",top:-3,insetInlineStart:-6,width:8,height:8,backgroundColor:"transparent",border:`${Ie(t.lineWidthBold)} solid ${t.colorPrimary}`,borderRadius:"50%",content:'""'}}}),Mbt=(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({},mr(t)),{"--rc-virtual-list-scrollbar-bg":t.colorSplit,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({},wd(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:Abt,animationDuration:t.motionDurationSlow,animationPlayState:"running",animationFillMode:"forwards",content:'""',pointerEvents:"none",borderRadius:t.borderRadius}}},[r]:{display:"flex",alignItems:"flex-start",marginBottom:i,lineHeight:Ie(o),position:"relative","&:before":{content:'""',position:"absolute",zIndex:1,insetInlineStart:0,width:"100%",top:"100%",height:i},[`&-disabled ${n}-node-content-wrapper`]:{color:t.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"}},[`${n}-checkbox-disabled + ${n}-node-selected,&${r}-disabled${r}-selected ${n}-node-content-wrapper`]:{backgroundColor:u},[`${n}-checkbox-disabled`]:{pointerEvents:"unset"},[`&: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({},Ibt(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`},Nbt(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:`${Ie(t.calc(o).div(2).equal())} !important`}})}},VTe=(e,t,n=!0)=>{const r=`.${e}`,i=`${r}-treenode`,o=t.calc(t.paddingXS).div(2).equal(),a=Un(t,{treeCls:r,treeNodeCls:i,treeNodePadding:o});return[Mbt(e,a),n&&Rbt(a)].filter(Boolean)},GTe=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}},kbt=e=>{const{colorTextLightSolid:t,colorPrimary:n}=e;return Object.assign(Object.assign({},GTe(e)),{directoryNodeSelectedColor:t,directoryNodeSelectedBg:n})},Pbt=ir("Tree",(e,{prefixCls:t})=>[{[e.componentCls]:tD(`${t}-checkbox`,e)},VTe(t,e),r2(e)],kbt),iae=4;function Dbt(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+iae,[s]:0};switch(t){case-1:l.top=-3;break;case 1:l.bottom=-3;break;default:l.bottom=-3,l[a]=i+iae;break}return pe.createElement("div",{style:l,className:`${r}-drop-indicator`})}const WTe=e=>{const{prefixCls:t,switcherIcon:n,treeNodeProps:r,showLine:i,switcherLoadingIcon:o}=e,{isLeaf:a,expanded:s,loading:l}=r;if(l)return h.isValidElement(o)?o:h.createElement(Td,{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,p=`${t}-switcher-line-custom-icon`;return h.isValidElement(f)?wo(f,{className:Ce(f.props.className||"",p)}):f}return c?h.createElement(gTe,{className:`${t}-switcher-line-icon`}):h.createElement("span",{className:`${t}-switcher-leaf-line`})}const u=`${t}-switcher-icon`,d=typeof n=="function"?n(r):n;return h.isValidElement(d)?wo(d,{className:Ce(d.props.className||"",u)}):d!==void 0?d:i?s?h.createElement(a0t,{className:`${t}-switcher-line-icon`}):h.createElement(_0t,{className:`${t}-switcher-line-icon`}):h.createElement(Xmt,{className:u})},qTe=pe.forwardRef((e,t)=>{var n;const{getPrefixCls:r,direction:i,virtual:o,tree:a}=pe.useContext(cn),{prefixCls:s,className:l,showIcon:c=!1,showLine:u,switcherIcon:d,switcherLoadingIcon:f,blockNode:p=!1,children:m,checkable:g=!1,selectable:v=!0,draggable:y,motion:b,style:_}=e,S=r("tree",s),x=r(),E=b??Object.assign(Object.assign({},f_(x)),{motionAppear:!1}),C=Object.assign(Object.assign({},e),{checkable:g,selectable:v,showIcon:c,motion:E,blockNode:p,showLine:!!u,dropIndicatorRender:Dbt}),[w,O,T]=Pbt(S),[,A]=Ko(),I=A.paddingXS/2+(((n=A.Tree)===null||n===void 0?void 0:n.titleHeight)||A.controlHeightSM),N=pe.useMemo(()=>{if(!y)return!1;let M={};switch(typeof y){case"function":M.nodeDraggable=y;break;case"object":M=Object.assign({},y);break}return M.icon!==!1&&(M.icon=M.icon||pe.createElement(Fgt,null)),M},[y]),D=M=>pe.createElement(WTe,{prefixCls:S,switcherIcon:d,switcherLoadingIcon:f,treeNodeProps:M,showLine:u});return w(pe.createElement(pD,Object.assign({itemHeight:I,ref:t,virtual:o},C,{style:Object.assign(Object.assign({},a==null?void 0:a.style),_),prefixCls:S,className:Ce({[`${S}-icon-hide`]:!c,[`${S}-block-node`]:p,[`${S}-unselectable`]:!v,[`${S}-rtl`]:i==="rtl"},a==null?void 0:a.className,l,O,T),direction:i,checkable:g&&pe.createElement("span",{className:`${S}-checkbox-inner`}),selectable:v,switcherIcon:D,draggable:N}),m))}),oae=0,TL=1,aae=2;function JY(e,t,n){const{key:r,children:i}=n;function o(a){const s=a[r],l=a[i];t(s,a)!==!1&&JY(l||[],t,n)}e.forEach(o)}function Lbt({treeData:e,expandedKeys:t,startKey:n,endKey:r,fieldNames:i}){const o=[];let a=oae;if(n&&n===r)return[n];if(!n||!r)return[];function s(l){return l===n||l===r}return JY(e,l=>{if(a===aae)return!1;if(s(l)){if(o.push(l),a===oae)a=TL;else if(a===TL)return a=aae,!1}else a===TL&&o.push(l);return t.includes(l)},b_(i)),o}function OL(e,t,n){const r=rt(t),i=[];return JY(e,(o,a)=>{const s=r.indexOf(o);return s!==-1&&(i.push(a),r.splice(s,1)),!!r.length},b_(n)),i}var sae=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);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 $bt(e){const{isLeaf:t,expanded:n}=e;return t?h.createElement(gTe,null):n?h.createElement(Igt,null):h.createElement(vTe,null)}function lae({treeData:e,children:t}){return e||Oxe(t)}const Fbt=(e,t)=>{var{defaultExpandAll:n,defaultExpandParent:r,defaultExpandedKeys:i}=e,o=sae(e,["defaultExpandAll","defaultExpandParent","defaultExpandedKeys"]);const a=h.useRef(null),s=h.useRef(null),l=()=>{const{keyEntities:w}=y2(lae(o));let O;return n?O=Object.keys(w):r?O=lj(o.expandedKeys||i||[],w):O=o.expandedKeys||i||[],O},[c,u]=h.useState(o.selectedKeys||o.defaultSelectedKeys||[]),[d,f]=h.useState(()=>l());h.useEffect(()=>{"selectedKeys"in o&&u(o.selectedKeys)},[o.selectedKeys]),h.useEffect(()=>{"expandedKeys"in o&&f(o.expandedKeys)},[o.expandedKeys]);const p=(w,O)=>{var T;return"expandedKeys"in o||f(w),(T=o.onExpand)===null||T===void 0?void 0:T.call(o,w,O)},m=(w,O)=>{var T;const{multiple:A,fieldNames:I}=o,{node:N,nativeEvent:D}=O,{key:M=""}=N,k=lae(o),P=Object.assign(Object.assign({},O),{selected:!0}),B=(D==null?void 0:D.ctrlKey)||(D==null?void 0:D.metaKey),G=D==null?void 0:D.shiftKey;let L;A&&B?(L=w,a.current=M,s.current=L,P.selectedNodes=OL(k,L,I)):A&&G?(L=Array.from(new Set([].concat(rt(s.current||[]),rt(Lbt({treeData:k,expandedKeys:d,startKey:M,endKey:a.current,fieldNames:I}))))),P.selectedNodes=OL(k,L,I)):(L=[M],a.current=M,s.current=L,P.selectedNodes=OL(k,L,I)),(T=o.onSelect)===null||T===void 0||T.call(o,L,P),"selectedKeys"in o||u(L)},{getPrefixCls:g,direction:v}=h.useContext(cn),{prefixCls:y,className:b,showIcon:_=!0,expandAction:S="click"}=o,x=sae(o,["prefixCls","className","showIcon","expandAction"]),E=g("tree",y),C=Ce(`${E}-directory`,{[`${E}-directory-rtl`]:v==="rtl"},b);return h.createElement(qTe,Object.assign({icon:$bt,ref:t,blockNode:!0},x,{showIcon:_,expandAction:S,prefixCls:E,className:C,expandedKeys:d,selectedKeys:c,onSelect:m,onExpand:p}))},Bbt=h.forwardRef(Fbt),eK=qTe;eK.DirectoryTree=Bbt;eK.TreeNode=jw;const cae=e=>{const{value:t,filterSearch:n,tablePrefixCls:r,locale:i,onChange:o}=e;return n?h.createElement("div",{className:`${r}-filter-dropdown-search`},h.createElement(xS,{prefix:h.createElement(FP,null),placeholder:i.filterSearchPlaceholder,onChange:o,value:t,htmlSize:1,className:`${r}-filter-dropdown-search-input`})):null},Hbt=e=>{const{keyCode:t}=e;t===Ut.ENTER&&e.stopPropagation()},jbt=h.forwardRef((e,t)=>h.createElement("div",{className:e.className,onClick:n=>n.stopPropagation(),onKeyDown:Hbt,ref:t},e.children));function Cy(e){let t=[];return(e||[]).forEach(({value:n,children:r})=>{t.push(n),r&&(t=[].concat(rt(t),rt(Cy(r))))}),t}function Ubt(e){return e.some(({children:t})=>t)}function YTe(e,t){return typeof t=="string"||typeof t=="number"?t==null?void 0:t.toString().toLowerCase().includes(e.trim().toLowerCase()):!1}function KTe({filters:e,prefixCls:t,filteredKeys:n,filterMultiple:r,searchValue:i,filterSearch:o}){return e.map((a,s)=>{const l=String(a.value);if(a.children)return{key:l||s,label:a.text,popupClassName:`${t}-dropdown-submenu`,children:KTe({filters:a.children,prefixCls:t,filteredKeys:n,filterMultiple:r,searchValue:i,filterSearch:o})};const c=r?lh:Qi,u={key:a.value!==void 0?l:s,label:h.createElement(h.Fragment,null,h.createElement(c,{checked:n.includes(l)}),h.createElement("span",null,a.text))};return i.trim()?typeof o=="function"?o(i,a)?u:null:YTe(i,a.text)?u:null:u})}function RL(e){return e||[]}const zbt=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:p=!1,filterState:m,triggerFilter:g,locale:v,children:y,getPopupContainer:b,rootClassName:_}=e,{filterResetToDefaultFilteredValue:S,defaultFilteredValue:x,filterDropdownProps:E={},filterDropdownOpen:C,filterDropdownVisible:w,onFilterDropdownVisibleChange:O,onFilterDropdownOpenChange:T}=s,[A,I]=h.useState(!1),N=!!(m&&(!((t=m.filteredKeys)===null||t===void 0)&&t.length||m.forceFiltered)),D=de=>{var Ee;I(de),(Ee=E.onOpenChange)===null||Ee===void 0||Ee.call(E,de),T==null||T(de),O==null||O(de)},M=(i=(r=(n=E.open)!==null&&n!==void 0?n:C)!==null&&r!==void 0?r:w)!==null&&i!==void 0?i:A,k=m==null?void 0:m.filteredKeys,[P,B]=vbt(RL(k)),G=({selectedKeys:de})=>{B(de)},L=(de,{node:Ee,checked:Ne})=>{G(d?{selectedKeys:de}:{selectedKeys:Ne&&Ee.key?[Ee.key]:[]})};h.useEffect(()=>{A&&G({selectedKeys:RL(k)})},[k]);const[W,j]=h.useState([]),H=de=>{j(de)},[X,Q]=h.useState(""),ue=de=>{const{value:Ee}=de.target;Q(Ee)};h.useEffect(()=>{A||Q("")},[A]);const ee=de=>{const Ee=de!=null&&de.length?de:null;if(Ee===null&&(!m||!m.filteredKeys)||Bl(Ee,m==null?void 0:m.filteredKeys,!0))return null;g({column:s,key:c,filteredKeys:Ee})},K=()=>{D(!1),ee(P())},se=({confirm:de,closeDropdown:Ee}={confirm:!1,closeDropdown:!1})=>{de&&ee([]),Ee&&D(!1),Q(""),B(S?(x||[]).map(Ne=>String(Ne)):[])},le=({closeDropdown:de}={closeDropdown:!0})=>{de&&D(!1),ee(P())},oe=(de,Ee)=>{Ee.source==="trigger"&&(de&&k!==void 0&&B(RL(k)),D(de),!de&&!s.filterDropdown&&u&&K())},ne=Ce({[`${l}-menu-without-submenu`]:!Ubt(s.filters||[])}),he=de=>{if(de.target.checked){const Ee=Cy(s==null?void 0:s.filters).map(Ne=>String(Ne));B(Ee)}else B([])},me=({filters:de})=>(de||[]).map((Ee,Ne)=>{const Te=String(Ee.value),Ve={title:Ee.text,key:Ee.value!==void 0?Te:String(Ne)};return Ee.children&&(Ve.children=me({filters:Ee.children})),Ve}),ce=de=>{var Ee;return Object.assign(Object.assign({},de),{text:de.title,value:de.key,children:((Ee=de.children)===null||Ee===void 0?void 0:Ee.map(Ne=>ce(Ne)))||[]})};let re;const{direction:ve,renderEmpty:be}=h.useContext(cn);if(typeof s.filterDropdown=="function")re=s.filterDropdown({prefixCls:`${l}-custom`,setSelectedKeys:de=>G({selectedKeys:de}),selectedKeys:P(),confirm:le,clearFilters:se,filters:s.filters,visible:M,close:()=>{D(!1)}});else if(s.filterDropdown)re=s.filterDropdown;else{const de=P()||[],Ee=()=>{var Te,Ve;const q=(Te=be==null?void 0:be("Table.filter"))!==null&&Te!==void 0?Te:h.createElement($p,{image:$p.PRESENTED_IMAGE_SIMPLE,description:v.filterEmptyText,styles:{image:{height:24}},style:{margin:0,padding:"16px 0"}});if((s.filters||[]).length===0)return q;if(f==="tree")return h.createElement(h.Fragment,null,h.createElement(cae,{filterSearch:p,value:X,onChange:ue,tablePrefixCls:o,locale:v}),h.createElement("div",{className:`${o}-filter-dropdown-tree`},d?h.createElement(lh,{checked:de.length===Cy(s.filters).length,indeterminate:de.length>0&&de.length<Cy(s.filters).length,className:`${o}-filter-dropdown-checkall`,onChange:he},(Ve=v==null?void 0:v.filterCheckall)!==null&&Ve!==void 0?Ve:v==null?void 0:v.filterCheckAll):null,h.createElement(eK,{checkable:!0,selectable:!1,blockNode:!0,multiple:d,checkStrictly:!d,className:`${l}-menu`,onCheck:L,checkedKeys:de,selectedKeys:de,showIcon:!1,treeData:me({filters:s.filters}),autoExpandParent:!0,defaultExpandAll:!0,filterTreeNode:X.trim()?ae=>typeof p=="function"?p(X,ce(ae)):YTe(X,ae.title):void 0})));const U=KTe({filters:s.filters||[],filterSearch:p,prefixCls:a,filteredKeys:P(),filterMultiple:d,searchValue:X}),Y=U.every(ae=>ae===null);return h.createElement(h.Fragment,null,h.createElement(cae,{filterSearch:p,value:X,onChange:ue,tablePrefixCls:o,locale:v}),Y?q:h.createElement(Hd,{selectable:!0,multiple:d,prefixCls:`${l}-menu`,className:ne,onSelect:G,onDeselect:G,selectedKeys:de,getPopupContainer:b,openKeys:W,onOpenChange:H,items:U}))},Ne=()=>S?Bl((x||[]).map(Te=>String(Te)),de,!0):de.length===0;re=h.createElement(h.Fragment,null,Ee(),h.createElement("div",{className:`${a}-dropdown-btns`},h.createElement(Dn,{type:"link",size:"small",disabled:Ne(),onClick:()=>se()},v.filterReset),h.createElement(Dn,{type:"primary",size:"small",onClick:K},v.filterConfirm)))}s.filterDropdown&&(re=h.createElement(lCe,{selectable:void 0},re)),re=h.createElement(jbt,{className:`${a}-dropdown`},re);const we=Dw({trigger:["click"],placement:ve==="rtl"?"bottomLeft":"bottomRight",children:(()=>{let de;return typeof s.filterIcon=="function"?de=s.filterIcon(N):s.filterIcon?de=s.filterIcon:de=h.createElement(Ogt,null),h.createElement("span",{role:"button",tabIndex:-1,className:Ce(`${a}-trigger`,{active:N}),onClick:Ee=>{Ee.stopPropagation()}},de)})(),getPopupContainer:b},Object.assign(Object.assign({},E),{rootClassName:Ce(_,E.rootClassName),open:M,onOpenChange:oe,popupRender:()=>typeof(E==null?void 0:E.dropdownRender)=="function"?E.dropdownRender(re):re}));return h.createElement("div",{className:`${a}-column`},h.createElement("span",{className:`${o}-column-title`},y),h.createElement(rD,Object.assign({},we)))},pj=(e,t,n)=>{let r=[];return(e||[]).forEach((i,o)=>{var a;const s=IS(o,n),l=i.filterDropdown!==void 0;if(i.filters||l||"onFilter"in i)if("filteredValue"in i){let c=i.filteredValue;l||(c=(a=c==null?void 0:c.map(String))!==null&&a!==void 0?a:c),r.push({column:i,key:vg(i,s),filteredKeys:c,forceFiltered:i.filtered})}else r.push({column:i,key:vg(i,s),filteredKeys:t&&i.defaultFilteredValue?i.defaultFilteredValue:void 0,forceFiltered:i.filtered});"children"in i&&(r=[].concat(rt(r),rt(pj(i.children,t,s))))}),r};function QTe(e,t,n,r,i,o,a,s,l){return n.map((c,u)=>{const d=IS(u,s),{filterOnClose:f=!0,filterMultiple:p=!0,filterMode:m,filterSearch:g}=c;let v=c;if(v.filters||v.filterDropdown){const y=vg(v,d),b=r.find(({key:_})=>y===_);v=Object.assign(Object.assign({},v),{title:_=>h.createElement(zbt,{tablePrefixCls:e,prefixCls:`${e}-filter`,dropdownPrefixCls:t,column:v,columnKey:y,filterState:b,filterOnClose:f,filterMultiple:p,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:QTe(e,t,v.children,r,i,o,a,d,l)})),v})}const uae=e=>{const t={};return e.forEach(({key:n,filteredKeys:r,column:i})=>{const o=n,{filters:a,filterDropdown:s}=i;if(s)t[o]=r||null;else if(Array.isArray(r)){const l=Cy(a);t[o]=l.filter(c=>r.includes(String(c)))}else t[o]=null}),t},hj=(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=Cy(s),f=d.findIndex(m=>String(m)===String(u)),p=f!==-1?d[f]:u;return c[n]&&(c[n]=hj(c[n],t,n)),a(p,c)})):i},e),XTe=e=>e.flatMap(t=>"children"in t?[t].concat(rt(XTe(t.children||[]))):[t]),Vbt=e=>{const{prefixCls:t,dropdownPrefixCls:n,mergedColumns:r,onFilterChange:i,getPopupContainer:o,locale:a,rootClassName:s}=e;Wf();const l=h.useMemo(()=>XTe(r||[]),[r]),[c,u]=h.useState(()=>pj(l,!0)),d=h.useMemo(()=>{const g=pj(l,!1);if(g.length===0)return g;let v=!0;if(g.forEach(({filteredKeys:y})=>{y!==void 0&&(v=!1)}),v){const y=(l||[]).map((b,_)=>vg(b,IS(_)));return c.filter(({key:b})=>y.includes(b)).map(b=>{const _=l[y.findIndex(S=>S===b.key)];return Object.assign(Object.assign({},b),{column:Object.assign(Object.assign({},b.column),_),forceFiltered:_.filtered})})}return g},[l,c]),f=h.useMemo(()=>uae(d),[d]),p=g=>{const v=d.filter(({key:y})=>y!==g.key);v.push(g),u(v),i(uae(v),v)};return[g=>QTe(t,n,g,d,a,p,o,void 0,s),d,f]},Gbt=(e,t,n)=>{const r=h.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 Wbt=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);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 ZTe=10;function qbt(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 Ybt(e,t,n){const r=n&&typeof n=="object"?n:{},{total:i=0}=r,o=Wbt(r,["total"]),[a,s]=h.useState(()=>({current:"defaultCurrent"in o?o.defaultCurrent:1,pageSize:"defaultPageSize"in o?o.defaultPageSize:ZTe})),l=Dw(a,o,{total:i>0?i:e}),c=Math.ceil((i||e)/l.pageSize);l.current>c&&(l.current=c||1);const u=(f,p)=>{s({current:f??1,pageSize:p||l.pageSize})},d=(f,p)=>{var m;n&&((m=n.onChange)===null||m===void 0||m.call(n,f,p)),u(f,p),t(f,p||(l==null?void 0:l.pageSize))};return n===!1?[{},()=>{}]:[Object.assign(Object.assign({},l),{onChange:d}),u]}const PI="ascend",AL="descend",tM=e=>typeof e.sorter=="object"&&typeof e.sorter.multiple=="number"?e.sorter.multiple:!1,dae=e=>typeof e=="function"?e:e&&typeof e=="object"&&e.compare?e.compare:!1,Kbt=(e,t)=>t?e[e.indexOf(t)+1]:e[0],mj=(e,t,n)=>{let r=[];const i=(o,a)=>{r.push({column:o,key:vg(o,a),multiplePriority:tM(o),sortOrder:o.sortOrder})};return(e||[]).forEach((o,a)=>{const s=IS(a,n);o.children?("sortOrder"in o&&i(o,s),r=[].concat(rt(r),rt(mj(o.children,t,s)))):o.sorter&&("sortOrder"in o?i(o,s):t&&o.defaultSortOrder&&r.push({column:o,key:vg(o,s),multiplePriority:tM(o),sortOrder:o.defaultSortOrder}))}),r},JTe=(e,t,n,r,i,o,a,s)=>(t||[]).map((c,u)=>{const d=IS(u,s);let f=c;if(f.sorter){const p=f.sortDirections||i,m=f.showSorterTooltip===void 0?a:f.showSorterTooltip,g=vg(f,d),v=n.find(({key:O})=>O===g),y=v?v.sortOrder:null,b=Kbt(p,y);let _;if(c.sortIcon)_=c.sortIcon({sortOrder:y});else{const O=p.includes(PI)&&h.createElement(rgt,{className:Ce(`${e}-column-sorter-up`,{active:y===PI})}),T=p.includes(AL)&&h.createElement(egt,{className:Ce(`${e}-column-sorter-down`,{active:y===AL})});_=h.createElement("span",{className:Ce(`${e}-column-sorter`,{[`${e}-column-sorter-full`]:!!(O&&T)})},h.createElement("span",{className:`${e}-column-sorter-inner`,"aria-hidden":"true"},O,T))}const{cancelSort:S,triggerAsc:x,triggerDesc:E}=o||{};let C=S;b===AL?C=E:b===PI&&(C=x);const w=typeof m=="object"?Object.assign({title:C},m):{title:C};f=Object.assign(Object.assign({},f),{className:Ce(f.className,{[`${e}-column-sort`]:y}),title:O=>{const T=`${e}-column-sorters`,A=h.createElement("span",{className:`${e}-column-title`},fD(c.title,O)),I=h.createElement("div",{className:T},A,_);return m?typeof m!="boolean"&&(m==null?void 0:m.target)==="sorter-icon"?h.createElement("div",{className:`${T} ${e}-column-sorters-tooltip-target-sorter`},A,h.createElement(Na,Object.assign({},w),_)):h.createElement(Na,Object.assign({},w),I):I},onHeaderCell:O=>{var T;const A=((T=c.onHeaderCell)===null||T===void 0?void 0:T.call(c,O))||{},I=A.onClick,N=A.onKeyDown;A.onClick=k=>{r({column:c,key:g,sortOrder:b,multiplePriority:tM(c)}),I==null||I(k)},A.onKeyDown=k=>{k.keyCode===Ut.ENTER&&(r({column:c,key:g,sortOrder:b,multiplePriority:tM(c)}),N==null||N(k))};const D=gbt(c.title,{}),M=D==null?void 0:D.toString();return y&&(A["aria-sort"]=y==="ascend"?"ascending":"descending"),A["aria-label"]=M||"",A.className=Ce(A.className,`${e}-column-has-sorters`),A.tabIndex=0,c.ellipsis&&(A.title=(D??"").toString()),A}})}return"children"in f&&(f=Object.assign(Object.assign({},f),{children:JTe(e,f.children,n,r,i,o,a,d)})),f}),fae=e=>{const{column:t,sortOrder:n}=e;return{column:t,order:n,field:t.dataIndex,columnKey:t.key}},pae=e=>{const t=e.filter(({sortOrder:n})=>n).map(fae);if(t.length===0&&e.length){const n=e.length-1;return Object.assign(Object.assign({},fae(e[n])),{column:void 0,order:void 0,field:void 0,columnKey:void 0})}return t.length<=1?t[0]||{}:t},gj=(e,t,n)=>{const r=t.slice().sort((a,s)=>s.multiplePriority-a.multiplePriority),i=e.slice(),o=r.filter(({column:{sorter:a},sortOrder:s})=>dae(a)&&s);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=dae(u);if(f&&d){const p=f(a,s,d);if(p!==0)return d===PI?p:-p}}return 0}).map(a=>{const s=a[n];return s?Object.assign(Object.assign({},a),{[n]:gj(s,t,n)}):a}):i},Qbt=e=>{const{prefixCls:t,mergedColumns:n,sortDirections:r,tableLocale:i,showSorterTooltip:o,onSorterChange:a}=e,[s,l]=h.useState(()=>mj(n,!0)),c=(g,v)=>{const y=[];return g.forEach((b,_)=>{const S=IS(_,v);if(y.push(vg(b,S)),Array.isArray(b.children)){const x=c(b.children,S);y.push.apply(y,rt(x))}}),y},u=h.useMemo(()=>{let g=!0;const v=mj(n,!1);if(!v.length){const S=c(n);return s.filter(({key:x})=>S.includes(x))}const y=[];function b(S){g?y.push(S):y.push(Object.assign(Object.assign({},S),{sortOrder:null}))}let _=null;return v.forEach(S=>{_===null?(b(S),S.sortOrder&&(S.multiplePriority===!1?g=!1:_=!0)):(_&&S.multiplePriority!==!1||(g=!1),b(S))}),y},[n,s]),d=h.useMemo(()=>{var g,v;const y=u.map(({column:b,sortOrder:_})=>({column:b,order:_}));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(rt(u.filter(({key:y})=>y!==g.key)),[g]),l(v),a(pae(v),v)};return[g=>JTe(t,g,u,f,r,i,o),u,d,()=>pae(u)]},e2e=(e,t)=>e.map(r=>{const i=Object.assign({},r);return i.title=fD(r.title,t),"children"in i&&(i.children=e2e(i.children,t)),i}),Xbt=e=>[h.useCallback(n=>e2e(n,e),[e])],Zbt=$Te((e,t)=>{const{_renderTimes:n}=e,{_renderTimes:r}=t;return n!==r}),Jbt=BTe((e,t)=>{const{_renderTimes:n}=e,{_renderTimes:r}=t;return n!==r}),eyt=e=>{const{componentCls:t,lineWidth:n,lineType:r,tableBorderColor:i,tableHeaderBg:o,tablePaddingVertical:a,tablePaddingHorizontal:s,calc:l}=e,c=`${Ie(n)} ${r} ${i}`,u=(d,f,p)=>({[`&${t}-${d}`]:{[`> ${t}-container`]:{[`> ${t}-content, > ${t}-body`]:{"\n > table > tbody > tr > th,\n > table > tbody > tr > td\n ":{[`> ${t}-expanded-row-fixed`]:{margin:`${Ie(l(f).mul(-1).equal())}
${Ie(l(l(p).add(n)).mul(-1).equal())}`}}}}}});return{[`${t}-wrapper`]:{[`${t}${t}-bordered`]:Object.assign(Object.assign(Object.assign({[`> ${t}-title`]:{border:c,borderBottom:0},[`> ${t}-container`]:{borderInlineStart:c,borderTop:c,[`
> ${t}-content,
> ${t}-header,
> ${t}-body,
> ${t}-summary
`]:{"> table":{"\n > thead > tr > th,\n > thead > tr > td,\n > tbody > tr > th,\n > tbody > tr > td,\n > tfoot > tr > th,\n > tfoot > tr > td\n ":{borderInlineEnd:c},"> thead":{"> tr:not(:last-child) > th":{borderBottom:c},"> tr > th::before":{backgroundColor:"transparent !important"}},"\n > thead > tr,\n > tbody > tr,\n > tfoot > tr\n ":{[`> ${t}-cell-fix-right-first::after`]:{borderInlineEnd:c}},"\n > tbody > tr > th,\n > tbody > tr > td\n ":{[`> ${t}-expanded-row-fixed`]:{margin:`${Ie(l(a).mul(-1).equal())} ${Ie(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 ${Ie(n)} 0 ${Ie(n)} ${o}`}},[`${t}-bordered ${t}-cell-scrollbar`]:{borderInlineEnd:c}}}},tyt=e=>{const{componentCls:t}=e;return{[`${t}-wrapper`]:{[`${t}-cell-ellipsis`]:Object.assign(Object.assign({},Hl),{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"}})}}},nyt=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}}}}},ryt=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:p,paddingXXS:m,expandIconMarginTop:g,expandIconSize:v,expandIconHalfInner:y,expandIconScale:b,calc:_}=e,S=`${Ie(i)} ${a} ${s}`,x=_(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({},Oq(e)),{position:"relative",float:"left",width:v,height:v,color:"inherit",lineHeight:Ie(v),background:l,border:S,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:x,insetInlineStart:x,height:i},"&::after":{top:x,bottom:x,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:p}},[`${n}-descriptions-view`]:{display:"flex",table:{flex:"auto",width:"100%"}}},[`${t}-expanded-row-fixed`]:{position:"relative",margin:`${Ie(_(d).mul(-1).equal())} ${Ie(_(f).mul(-1).equal())}`,padding:`${Ie(d)} ${Ie(f)}`}}}},iyt=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:p,tablePaddingHorizontal:m,borderRadius:g,motionDurationSlow:v,colorIcon:y,colorPrimary:b,tableHeaderFilterActiveBg:_,colorTextDisabled:S,tableFilterDropdownBg:x,tableFilterDropdownHeight:E,controlItemBgHover:C,controlItemBgActive:w,boxShadowSecondary:O,filterDropdownMenuBg:T,calc:A}=e,I=`${n}-dropdown`,N=`${t}-filter-dropdown`,D=`${n}-tree`,M=`${Ie(c)} ${u} ${d}`;return[{[`${t}-wrapper`]:{[`${t}-filter-column`]:{display:"flex",justifyContent:"space-between"},[`${t}-filter-trigger`]:{position:"relative",display:"flex",alignItems:"center",marginBlock:A(a).mul(-1).equal(),marginInline:`${Ie(a)} ${Ie(A(m).div(2).mul(-1).equal())}`,padding:`0 ${Ie(a)}`,color:f,fontSize:p,borderRadius:g,cursor:"pointer",transition:`all ${v}`,"&:hover":{color:y,background:_},"&.active":{color:b}}}},{[`${n}-dropdown`]:{[N]:Object.assign(Object.assign({},mr(e)),{minWidth:i,backgroundColor:x,borderRadius:g,boxShadow:O,overflow:"hidden",[`${I}-menu`]:{maxHeight:E,overflowX:"hidden",border:0,boxShadow:"none",borderRadius:"unset",backgroundColor:T,"&:empty::after":{display:"block",padding:`${Ie(s)} 0`,color:S,fontSize:p,textAlign:"center",content:'"Not Found"'}},[`${N}-tree`]:{paddingBlock:`${Ie(s)} 0`,paddingInline:s,[D]:{padding:0},[`${D}-treenode ${D}-node-content-wrapper:hover`]:{backgroundColor:C},[`${D}-treenode-checkbox-checked ${D}-node-content-wrapper`]:{"&, &:hover":{backgroundColor:w}}},[`${N}-search`]:{padding:s,borderBottom:M,"&-input":{input:{minWidth:o},[r]:{color:S}}},[`${N}-checkall`]:{width:"100%",marginBottom:a,marginInlineStart:a},[`${N}-btns`]:{display:"flex",justifyContent:"space-between",padding:`${Ie(A(s).sub(c).equal())} ${Ie(s)}`,overflow:"hidden",borderTop:M}})}},{[`${n}-dropdown ${N}, ${N}-submenu`]:{[`${n}-checkbox-wrapper + span`]:{paddingInlineStart:s,color:l},"> ul":{maxHeight:"calc(100vh - 130px)",overflowX:"hidden",overflowY:"auto"}}}]},oyt=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"}}}}},ayt=e=>{const{componentCls:t,antCls:n,margin:r}=e;return{[`${t}-wrapper`]:{[`${t}-pagination${n}-pagination`]:{margin:`${Ie(r)} 0`},[`${t}-pagination`]:{display:"flex",flexWrap:"wrap",rowGap:e.paddingXS,"> *":{flex:"none"},"&-left":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-right":{justifyContent:"flex-end"}}}}},syt=e=>{const{componentCls:t,tableRadius:n}=e;return{[`${t}-wrapper`]:{[t]:{[`${t}-title, ${t}-header`]:{borderRadius:`${Ie(n)} ${Ie(n)} 0 0`},[`${t}-title + ${t}-container`]:{borderStartStartRadius:0,borderStartEndRadius:0,[`${t}-header, table`]:{borderRadius:0},"table > thead > tr:first-child":{"th:first-child, th:last-child, td:first-child, td:last-child":{borderRadius:0}}},"&-container":{borderStartStartRadius:n,borderStartEndRadius:n,"table > thead > tr:first-child":{"> *:first-child":{borderStartStartRadius:n},"> *:last-child":{borderStartEndRadius:n}}},"&-footer":{borderRadius:`0 0 ${Ie(n)} ${Ie(n)}`}}}}},lyt=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"}}}}},cyt=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:p,calc:m}=e;return{[`${t}-wrapper`]:{[`${t}-selection-col`]:{width:c,[`&${t}-selection-col-with-dropdown`]:{width:m(c).add(i).add(m(o).div(4)).equal()}},[`${t}-bordered ${t}-selection-col`]:{width:m(c).add(m(a).mul(2)).equal(),[`&${t}-selection-col-with-dropdown`]:{width:m(c).add(i).add(m(o).div(4)).add(m(a).mul(2)).equal()}},[`
table tr th${t}-selection-column,
table tr td${t}-selection-column,
${t}-selection-column
`]:{paddingInlineEnd:e.paddingXS,paddingInlineStart:e.paddingXS,textAlign:"center",[`${n}-radio-wrapper`]:{marginInlineEnd:0}},[`table tr th${t}-selection-column${t}-cell-fix-left`]:{zIndex:m(e.zIndexTableFixed).add(1).equal({unit:!1})},[`table tr th${t}-selection-column::after`]:{backgroundColor:"transparent !important"},[`${t}-selection`]:{position:"relative",display:"inline-flex",flexDirection:"column"},[`${t}-selection-extra`]:{position:"absolute",top:0,zIndex:1,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,marginInlineStart:"100%",paddingInlineStart:Ie(m(p).div(4).equal()),[r]:{color:s,fontSize:i,verticalAlign:"baseline","&:hover":{color:l}}},[`${t}-tbody`]:{[`${t}-row`]:{[`&${t}-row-selected`]:{[`> ${t}-cell`]:{background:u,"&-row-hover":{background:d}}},[`> ${t}-cell-row-hover`]:{background:f}}}}}},uyt=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:`${Ie(a)} ${Ie(s)}`},[`${t}-filter-trigger`]:{marginInlineEnd:Ie(r(s).div(2).mul(-1).equal())},[`${t}-expanded-row-fixed`]:{margin:`${Ie(r(a).mul(-1).equal())} ${Ie(r(s).mul(-1).equal())}`},[`${t}-tbody`]:{[`${t}-wrapper:only-child ${t}`]:{marginBlock:Ie(r(a).mul(-1).equal()),marginInline:`${Ie(r(n).sub(s).equal())} ${Ie(r(s).mul(-1).equal())}`}},[`${t}-selection-extra`]:{paddingInlineStart:Ie(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))}},dyt=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,minWidth:0},[`${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}}}},fyt=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=`${Ie(c)} ${u} ${d}`;return{[`${t}-wrapper`]:{[`${t}-sticky`]:{"&-holder":{position:"sticky",zIndex:s,background:e.colorBgContainer},"&-scroll":{position:"sticky",bottom:0,height:`${Ie(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 0s`,position:"absolute",bottom:0,"&:hover, &-active":{backgroundColor:i}}}}}}},hae=e=>{const{componentCls:t,lineWidth:n,tableBorderColor:r,calc:i}=e,o=`${Ie(n)} ${e.lineType} ${r}`;return{[`${t}-wrapper`]:{[`${t}-summary`]:{position:"relative",zIndex:e.zIndexTableFixed,background:e.tableBg,"> tr":{"> th, > td":{borderBottom:o}}},[`div${t}-summary`]:{boxShadow:`0 ${Ie(i(n).mul(-1).equal())} 0 ${r}`}}}},pyt=e=>{const{componentCls:t,motionDurationMid:n,lineWidth:r,lineType:i,tableBorderColor:o,calc:a}=e,s=`${Ie(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) - ${Ie(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}}}}}},hyt=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:p,tableHeaderBg:m,tableHeaderCellSplitColor:g,tableFooterTextColor:v,tableFooterBg:y,calc:b}=e,_=`${Ie(a)} ${s} ${l}`;return{[`${t}-wrapper`]:Object.assign(Object.assign({clear:"both",maxWidth:"100%","--rc-virtual-list-scrollbar-bg":e.tableScrollBg},xd()),{[t]:Object.assign(Object.assign({},mr(e)),{fontSize:c,background:u,borderRadius:`${Ie(d)} ${Ie(d)} 0 0`,scrollbarColor:`${e.tableScrollThumbBg} ${e.tableScrollBg}`}),table:{width:"100%",textAlign:"start",borderRadius:`${Ie(d)} ${Ie(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:`${Ie(r)} ${Ie(i)}`,overflowWrap:"break-word"},[`${t}-title`]:{padding:`${Ie(r)} ${Ie(i)}`},[`${t}-thead`]:{"\n > tr > th,\n > tr > td\n ":{position:"relative",color:f,fontWeight:n,textAlign:"start",background:m,borderBottom:_,transition:`background ${p} ease`,"&[colspan]:not([colspan='1'])":{textAlign:"center"},[`&:not(:last-child):not(${t}-selection-column):not(${t}-row-expand-icon-cell):not([colspan])::before`]:{position:"absolute",top:"50%",insetInlineEnd:0,width:1,height:"1.6em",backgroundColor:g,transform:"translateY(-50%)",transition:`background-color ${p}`,content:'""'}},"> tr:not(:last-child) > th[colspan]":{borderBottom:0}},[`${t}-tbody`]:{"> tr":{"> th, > td":{transition:`background ${p}, border-color ${p}`,borderBottom:_,[`
> ${t}-wrapper:only-child,
> ${t}-expanded-row-fixed > ${t}-wrapper:only-child
`]:{[t]:{marginBlock:Ie(b(r).mul(-1).equal()),marginInline:`${Ie(b(o).sub(i).equal())}
${Ie(b(i).mul(-1).equal())}`,[`${t}-tbody > tr:last-child > td`]:{borderBottomWidth:0,"&:first-child, &:last-child":{borderRadius:0}}}}},"> th":{position:"relative",color:f,fontWeight:n,textAlign:"start",background:m,borderBottom:_,transition:`background ${p} ease`}}},[`${t}-footer`]:{padding:`${Ie(r)} ${Ie(i)}`,color:v,background:y}})}},myt=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:p,colorTextPlaceholder:m,fontSize:g,fontSizeSM:v,lineHeight:y,lineWidth:b,colorIcon:_,colorIconHover:S,opacityLoading:x,controlInteractiveSize:E}=e,C=new or(i).onBackground(n).toHexString(),w=new or(o).onBackground(n).toHexString(),O=new or(t).onBackground(n).toHexString(),T=new or(_),A=new or(S),I=E/2-b,N=I*2+b*3;return{headerBg:O,headerColor:r,headerSortActiveBg:C,headerSortHoverBg:w,bodySortBg:O,rowHoverBg:O,rowSelectedBg:a,rowSelectedHoverBg:s,rowExpandedBg:t,cellPaddingBlock:l,cellPaddingInline:l,cellPaddingBlockMD:c,cellPaddingInlineMD:u,cellPaddingBlockSM:u,cellPaddingInlineSM:u,borderColor:d,headerBorderRadius:f,footerBg:O,footerColor:r,cellFontSize:g,cellFontSizeMD:g,cellFontSizeSM:g,headerSplitColor:d,fixedHeaderSortActiveBg:C,headerFilterHoverBg:o,filterDropdownMenuBg:n,filterDropdownBg:n,expandIconBg:n,selectionColumnWidth:p,stickyScrollBarBg:m,stickyScrollBarBorderRadius:100,expandIconMarginTop:(g*y-b*3)/2-Math.ceil((v*1.4-b*3)/2),headerIconColor:T.clone().setA(T.a*x).toRgbString(),headerIconHoverColor:A.clone().setA(A.a*x).toRgbString(),expandIconHalfInner:I,expandIconSize:N,expandIconScale:E/N}},mae=2,gyt=ir("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:p,cellPaddingBlock:m,cellPaddingInline:g,cellPaddingBlockMD:v,cellPaddingInlineMD:y,cellPaddingBlockSM:b,cellPaddingInlineSM:_,borderColor:S,footerBg:x,footerColor:E,headerBorderRadius:C,cellFontSize:w,cellFontSizeMD:O,cellFontSizeSM:T,headerSplitColor:A,fixedHeaderSortActiveBg:I,headerFilterHoverBg:N,filterDropdownBg:D,expandIconBg:M,selectionColumnWidth:k,stickyScrollBarBg:P,calc:B}=e,G=Un(e,{tableFontSize:w,tableBg:r,tableRadius:C,tablePaddingVertical:m,tablePaddingHorizontal:g,tablePaddingVerticalMiddle:v,tablePaddingHorizontalMiddle:y,tablePaddingVerticalSmall:b,tablePaddingHorizontalSmall:_,tableBorderColor:S,tableHeaderTextColor:a,tableHeaderBg:o,tableFooterTextColor:E,tableFooterBg:x,tableHeaderCellSplitColor:A,tableHeaderSortBg:s,tableHeaderSortHoverBg:l,tableBodySortBg:c,tableFixedHeaderSortActiveBg:I,tableHeaderFilterActiveBg:N,tableFilterDropdownBg:D,tableRowHoverBg:u,tableSelectedRowBg:d,tableSelectedRowHoverBg:f,zIndexTableFixed:mae,zIndexTableSticky:B(mae).add(1).equal({unit:!1}),tableFontSizeMiddle:O,tableFontSizeSmall:T,tableSelectionColumnWidth:k,tableExpandIconBg:M,tableExpandColumnWidth:B(i).add(B(e.padding).mul(2)).equal(),tableExpandedRowBg:p,tableFilterDropdownWidth:120,tableFilterDropdownHeight:264,tableFilterDropdownSearchWidth:140,tableScrollThumbSize:8,tableScrollThumbBg:P,tableScrollThumbBgHover:t,tableScrollBg:n});return[hyt(G),ayt(G),hae(G),dyt(G),iyt(G),eyt(G),syt(G),ryt(G),hae(G),nyt(G),cyt(G),oyt(G),fyt(G),tyt(G),uyt(G),lyt(G),pyt(G)]},myt,{unitless:{expandIconScale:!0}}),vyt=[],byt=(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:p,rowKey:m="key",rowClassName:g,columns:v,children:y,childrenColumnName:b,onChange:_,getPopupContainer:S,loading:x,expandIcon:E,expandable:C,expandedRowRender:w,expandIconColumnIndex:O,indentSize:T,scroll:A,sortDirections:I,locale:N,showSorterTooltip:D={target:"full-header"},virtual:M}=e;Wf();const k=h.useMemo(()=>v||KY(y),[v,y]),P=h.useMemo(()=>k.some(St=>St.responsive),[k]),B=f2(P),G=h.useMemo(()=>{const St=new Set(Object.keys(B).filter(bt=>B[bt]));return k.filter(bt=>!bt.responsive||bt.responsive.some(xt=>St.has(xt)))},[k,B]),L=ur(e,["className","style","columns"]),{locale:W=gu,direction:j,table:H,renderEmpty:X,getPrefixCls:Q,getPopupContainer:ue}=h.useContext(cn),ee=mo(l),K=Object.assign(Object.assign({},W.Table),N),se=d||vyt,le=Q("table",i),oe=Q("dropdown",u),[,ne]=Ko(),he=gi(le),[me,ce,re]=gyt(le,he),ve=Object.assign(Object.assign({childrenColumnName:b,expandIconColumnIndex:O},C),{expandIcon:(n=C==null?void 0:C.expandIcon)!==null&&n!==void 0?n:(r=H==null?void 0:H.expandable)===null||r===void 0?void 0:r.expandIcon}),{childrenColumnName:be="children"}=ve,xe=h.useMemo(()=>se.some(St=>St==null?void 0:St[be])?"nest":w||C!=null&&C.expandedRowRender?"row":null,[se]),we={body:h.useRef(null)},de=mbt(le),Ee=h.useRef(null),Ne=h.useRef(null);pbt(t,()=>Object.assign(Object.assign({},Ne.current),{nativeElement:Ee.current}));const Te=h.useMemo(()=>typeof m=="function"?m:St=>St==null?void 0:St[m],[m]),[Ve]=Gbt(se,be,Te),q={},U=(St,bt,xt=!1)=>{var ht,Vt,at,wt;const Gt=Object.assign(Object.assign({},q),St);xt&&((ht=q.resetPagination)===null||ht===void 0||ht.call(q),!((Vt=Gt.pagination)===null||Vt===void 0)&&Vt.current&&(Gt.pagination.current=1),f&&((at=f.onChange)===null||at===void 0||at.call(f,1,(wt=Gt.pagination)===null||wt===void 0?void 0:wt.pageSize))),A&&A.scrollToFirstRowOnChange!==!1&&we.body.current&&tQe(0,{getContainer:()=>we.body.current}),_==null||_(Gt.pagination,Gt.filters,Gt.sorter,{currentDataSource:hj(gj(se,Gt.sorterStates,be),Gt.filterStates,be),action:bt})},Y=(St,bt)=>{U({sorter:St,sorterStates:bt},"sort",!1)},[ae,ye,fe,Ae]=Qbt({prefixCls:le,mergedColumns:G,onSorterChange:Y,sortDirections:I||["ascend","descend"],tableLocale:K,showSorterTooltip:D}),We=h.useMemo(()=>gj(se,ye,be),[se,ye]);q.sorter=Ae(),q.sorterStates=ye;const ie=(St,bt)=>{U({filters:St,filterStates:bt},"filter",!0)},[Be,Fe,Pe]=Vbt({prefixCls:le,locale:K,dropdownPrefixCls:oe,mergedColumns:G,onFilterChange:ie,getPopupContainer:S||ue,rootClassName:Ce(a,he)}),Ke=hj(We,Fe,be);q.filters=Pe,q.filterStates=Fe;const tt=h.useMemo(()=>{const St={};return Object.keys(Pe).forEach(bt=>{Pe[bt]!==null&&(St[bt]=Pe[bt])}),Object.assign(Object.assign({},fe),{filters:St})},[fe,Pe]),[Ge]=Xbt(tt),Nt=(St,bt)=>{U({pagination:Object.assign(Object.assign({},q.pagination),{current:St,pageSize:bt})},"paginate")},[lt,st]=Ybt(Ke.length,Nt,f);q.pagination=f===!1?{}:qbt(lt,f),q.resetPagination=st;const It=h.useMemo(()=>{if(f===!1||!lt.pageSize)return Ke;const{current:St=1,total:bt,pageSize:xt=ZTe}=lt;return Ke.length<bt?Ke.length>xt?Ke.slice((St-1)*xt,St*xt):Ke:Ke.slice((St-1)*xt,St*xt)},[!!f,Ke,lt==null?void 0:lt.current,lt==null?void 0:lt.pageSize,lt==null?void 0:lt.total]),[ct,Pt]=dbt({prefixCls:le,data:Ke,pageData:It,getRowKey:Te,getRecordByKey:Ve,expandType:xe,childrenColumnName:be,locale:K,getPopupContainer:S||ue},p),Rt=(St,bt,xt)=>{let ht;return typeof g=="function"?ht=Ce(g(St,bt,xt)):ht=Ce(g),Ce({[`${le}-row-selected`]:Pt.has(Te(St,bt))},ht)};ve.__PARENT_RENDER_ICON__=ve.expandIcon,ve.expandIcon=ve.expandIcon||E||hbt(K),xe==="nest"&&ve.expandIconColumnIndex===void 0?ve.expandIconColumnIndex=p?1:0:ve.expandIconColumnIndex>0&&p&&(ve.expandIconColumnIndex-=1),typeof ve.indentSize!="number"&&(ve.indentSize=typeof T=="number"?T:15);const Tt=h.useCallback(St=>Ge(ct(Be(ae(St)))),[ae,Be,ct]);let Me,Ue;if(f!==!1&&(lt!=null&&lt.total)){let St;lt.size?St=lt.size:St=ee==="small"||ee==="middle"?"small":void 0;const bt=Vt=>h.createElement(qwe,Object.assign({},lt,{className:Ce(`${le}-pagination ${le}-pagination-${Vt}`,lt.className),size:St})),xt=j==="rtl"?"left":"right",{position:ht}=lt;if(ht!==null&&Array.isArray(ht)){const Vt=ht.find(Gt=>Gt.includes("top")),at=ht.find(Gt=>Gt.includes("bottom")),wt=ht.every(Gt=>`${Gt}`=="none");!Vt&&!at&&!wt&&(Ue=bt(xt)),Vt&&(Me=bt(Vt.toLowerCase().replace("top",""))),at&&(Ue=bt(at.toLowerCase().replace("bottom","")))}else Ue=bt(xt)}let $e;typeof x=="boolean"?$e={spinning:x}:typeof x=="object"&&($e=Object.assign({spinning:!0},x));const Le=Ce(re,he,`${le}-wrapper`,H==null?void 0:H.className,{[`${le}-wrapper-rtl`]:j==="rtl"},o,a,ce),He=Object.assign(Object.assign({},H==null?void 0:H.style),s),it=typeof(N==null?void 0:N.emptyText)<"u"?N.emptyText:(X==null?void 0:X("Table"))||h.createElement(gS,{componentName:"Table"}),ft=M?Jbt:Zbt,Et={},Dt=h.useMemo(()=>{const{fontSize:St,lineHeight:bt,lineWidth:xt,padding:ht,paddingXS:Vt,paddingSM:at}=ne,wt=Math.floor(St*bt);switch(ee){case"middle":return at*2+wt+xt;case"small":return Vt*2+wt+xt;default:return ht*2+wt+xt}},[ne,ee]);return M&&(Et.listItemHeight=Dt),me(h.createElement("div",{ref:Ee,className:Le,style:He},h.createElement(Nc,Object.assign({spinning:!1},$e),Me,h.createElement(ft,Object.assign({},Et,L,{ref:Ne,columns:G,direction:j,expandable:ve,prefixCls:le,className:Ce({[`${le}-middle`]:ee==="middle",[`${le}-small`]:ee==="small",[`${le}-bordered`]:c,[`${le}-empty`]:se.length===0},re,he,ce),data:It,rowKey:Te,rowClassName:Rt,emptyText:it,internalHooks:R2,internalRefs:we,transformColumns:Tt,getContainerWidth:de})),Ue)))},yyt=h.forwardRef(byt),_yt=(e,t)=>{const n=h.useRef(0);return n.current+=1,h.createElement(yyt,Object.assign({},e,{ref:t,_renderTimes:n.current}))},Ud=h.forwardRef(_yt);Ud.SELECTION_COLUMN=Wh;Ud.EXPAND_COLUMN=Rp;Ud.SELECTION_ALL=cj;Ud.SELECTION_INVERT=uj;Ud.SELECTION_NONE=dj;Ud.Column=tbt;Ud.ColumnGroup=nbt;Ud.Summary=OTe;const Syt=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({},mr(e)),{display:"inline-block",height:"auto",marginInlineEnd:e.marginXS,paddingInline:a,fontSize:e.tagFontSize,lineHeight:e.tagLineHeight,whiteSpace:"nowrap",background:e.defaultBg,border:`${Ie(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,opacity:1,transition:`all ${e.motionDurationMid}`,textAlign:"start",position:"relative",[`&${i}-rtl`]:{direction:"rtl"},"&, a, a:hover":{color:e.defaultColor},[`${i}-close-icon`]:{marginInlineStart:s,fontSize:e.tagIconSize,color:e.colorIcon,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}}},tK=e=>{const{lineWidth:t,fontSizeIcon:n,calc:r}=e,i=e.fontSizeSM;return Un(e,{tagFontSize:i,tagLineHeight:Ie(r(e.lineHeightSM).mul(i).equal()),tagIconSize:r(n).sub(r(t).mul(2)).equal(),tagPaddingHorizontal:8,tagBorderlessBg:e.defaultBg})},nK=e=>({defaultBg:new or(e.colorFillQuaternary).onBackground(e.colorBgContainer).toHexString(),defaultColor:e.colorText}),t2e=ir("Tag",e=>{const t=tK(e);return Syt(t)},nK);var Eyt=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);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 Cyt=h.forwardRef((e,t)=>{const{prefixCls:n,style:r,className:i,checked:o,onChange:a,onClick:s}=e,l=Eyt(e,["prefixCls","style","className","checked","onChange","onClick"]),{getPrefixCls:c,tag:u}=h.useContext(cn),d=y=>{a==null||a(!o),s==null||s(y)},f=c("tag",n),[p,m,g]=t2e(f),v=Ce(f,`${f}-checkable`,{[`${f}-checkable-checked`]:o},u==null?void 0:u.className,i,m,g);return p(h.createElement("span",Object.assign({},l,{ref:t,style:Object.assign(Object.assign({},r),u==null?void 0:u.style),className:v,onClick:d})))}),xyt=e=>mP(e,(t,{textColor:n,lightBorderColor:r,lightColor:i,darkColor:o})=>({[`${e.componentCls}${e.componentCls}-${t}`]:{color:n,background:i,borderColor:r,"&-inverse":{color:e.colorTextLightSolid,background:o,borderColor:o},[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}})),wyt=uS(["Tag","preset"],e=>{const t=tK(e);return xyt(t)},nK);function Tyt(e){return typeof e!="string"?e:e.charAt(0).toUpperCase()+e.slice(1)}const NR=(e,t,n)=>{const r=Tyt(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"}}}},Oyt=uS(["Tag","status"],e=>{const t=tK(e);return[NR(t,"success","Success"),NR(t,"processing","Info"),NR(t,"error","Error"),NR(t,"warning","Warning")]},nK);var Ryt=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);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 Ayt=h.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=Ryt(e,["prefixCls","className","rootClassName","style","children","icon","color","onClose","bordered","visible"]),{getPrefixCls:p,direction:m,tag:g}=h.useContext(cn),[v,y]=h.useState(!0),b=ur(f,["closeIcon","closable"]);h.useEffect(()=>{d!==void 0&&y(d)},[d]);const _=UP(l),S=Hrt(l),x=_||S,E=Object.assign(Object.assign({backgroundColor:l&&!x?l:void 0},g==null?void 0:g.style),o),C=p("tag",n),[w,O,T]=t2e(C),A=Ce(C,g==null?void 0:g.className,{[`${C}-${l}`]:x,[`${C}-has-color`]:l&&!x,[`${C}-hidden`]:!v,[`${C}-rtl`]:m==="rtl",[`${C}-borderless`]:!u},r,i,O,T),I=B=>{B.stopPropagation(),c==null||c(B),!B.defaultPrevented&&y(!1)},[,N]=qq(h_(e),h_(g),{closable:!1,closeIconRender:B=>{const G=h.createElement("span",{className:`${C}-close-icon`,onClick:I},B);return Aq(B,G,L=>({onClick:W=>{var j;(j=L==null?void 0:L.onClick)===null||j===void 0||j.call(L,W),I(W)},className:Ce(L==null?void 0:L.className,`${C}-close-icon`)}))}}),D=typeof f.onClick=="function"||a&&a.type==="a",M=s||null,k=M?h.createElement(h.Fragment,null,M,a&&h.createElement("span",null,a)):a,P=h.createElement("span",Object.assign({},b,{ref:t,className:A,style:E}),k,N,_&&h.createElement(wyt,{key:"preset",prefixCls:C}),S&&h.createElement(Oyt,{key:"status",prefixCls:C}));return w(D?h.createElement(n2,{component:"Tag"},P):P)}),zp=Ayt;zp.CheckableTag=Cyt;const Iyt=e=>{const t=e!=null&&e.algorithm?a_(e.algorithm):Cq,n=Object.assign(Object.assign({},d_),e==null?void 0:e.token);return vq(n,{override:e==null?void 0:e.token},t,Tq)};function Nyt(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 Myt=(e,t)=>{const n=t??pP(e),r=n.fontSizeSM,i=n.controlHeight-4;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},n),Nyt(t??e)),g_e(r)),{controlHeight:i}),m_e(Object.assign(Object.assign({},n),{controlHeight:i})))},Bc=(e,t)=>new or(e).setA(t).toRgbString(),sb=(e,t)=>new or(e).lighten(t).toHexString(),kyt=e=>{const t=pg(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]}},Pyt=(e,t)=>{const n=e||"#000",r=t||"#fff";return{colorBgBase:n,colorTextBase:r,colorText:Bc(r,.85),colorTextSecondary:Bc(r,.65),colorTextTertiary:Bc(r,.45),colorTextQuaternary:Bc(r,.25),colorFill:Bc(r,.18),colorFillSecondary:Bc(r,.12),colorFillTertiary:Bc(r,.08),colorFillQuaternary:Bc(r,.04),colorBgSolid:Bc(r,.95),colorBgSolidHover:Bc(r,1),colorBgSolidActive:Bc(r,.9),colorBgElevated:sb(n,12),colorBgContainer:sb(n,8),colorBgLayout:sb(n,0),colorBgSpotlight:sb(n,26),colorBgBlur:Bc(r,.04),colorBorder:sb(n,26),colorBorderSecondary:sb(n,19)}},Dyt=(e,t)=>{const n=Object.keys(Eq).map(o=>{const a=pg(e[o],{theme:"dark"});return Array.from({length:10},()=>1).reduce((s,l,c)=>(s[`${o}-${c+1}`]=a[c],s[`${o}${c+1}`]=a[c],s),{})}).reduce((o,a)=>(o=Object.assign(Object.assign({},o),a),o),{}),r=t??pP(e),i=h_e(e,{generateColorPalettes:kyt,generateNeutralColorPalettes:Pyt});return Object.assign(Object.assign(Object.assign(Object.assign({},r),n),i),{colorPrimaryBg:i.colorPrimaryBorder,colorPrimaryBgHover:i.colorPrimaryBorderHover})};function Lyt(){const[e,t,n]=Ko();return{theme:e,token:t,hashId:n}}const Cs={defaultSeed:Mw.token,useToken:Lyt,defaultAlgorithm:pP,darkAlgorithm:Dyt,compactAlgorithm:Myt,getDesignToken:Iyt,defaultConfig:Mw,_internalContext:xq};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{TimePicker:Fyt,RangePicker:Byt}=yu,Hyt=h.forwardRef((e,t)=>h.createElement(Byt,Object.assign({},e,{picker:"time",mode:void 0,ref:t}))),z1=h.forwardRef((e,t)=>{var{addon:n,renderExtraFooter:r,variant:i,bordered:o}=e,a=$yt(e,["addon","renderExtraFooter","variant","bordered"]);const[s]=Kf("timePicker",i,o),l=h.useMemo(()=>{if(r)return r;if(n)return n},[n,r]);return h.createElement(Fyt,Object.assign({},a,{mode:void 0,ref:t,renderExtraFooter:l,variant:s}))}),n2e=Ig(z1,"popupAlign",void 0,"picker");z1._InternalPanelDoNotUseOrYouWillBeFired=n2e;z1.RangePicker=Hyt;z1._InternalPanelDoNotUseOrYouWillBeFired=n2e;const jyt=function(e){var t=h.useRef({valueLabels:new Map});return h.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),z(z({},o),{},{label:l})});return t.current.valueLabels=r,[i]},[e])};var Uyt=function(t,n,r,i){return h.useMemo(function(){var o=function(p){return p.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=su(a,!0,i);c=d.checkedKeys,u=d.halfCheckedKeys}return[Array.from(new Set([].concat(rt(l),rt(c)))),u]},[t,n,r,i])},zyt=function(t){return Array.isArray(t)?t:t!==void 0?[t]:[]},Vyt=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"}},vj=function(t){return!t||t.disabled||t.disableCheckbox||t.checkable===!1},Gyt=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},gae=function(t){return t==null};const Wyt=function(e,t){return h.useMemo(function(){var n=y2(e,{fieldNames:t,initWrapper:function(i){return z(z({},i),{},{valueEntities:new Map})},processEntity:function(i,o){var a=i.node[t.value];o.valueEntities.set(a,i)}});return n},[e,t])};var rK=function(){return null},qyt=["children","value"];function r2e(e){return Do(e).map(function(t){if(!h.isValidElement(t)||!t.type)return null;var n=t,r=n.key,i=n.props,o=i.children,a=i.value,s=kt(i,qyt),l=z({key:r,value:a},s),c=r2e(o);return c.length&&(l.children=c),l}).filter(function(t){return t})}function bj(e){if(!e)return e;var t=z({},e);return"props"in t||Object.defineProperty(t,"props",{get:function(){return Vr(!1,"New `rc-tree-select` not support return node instance as argument anymore. Please consider to remove `props` access."),t}}),t}function Yyt(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(p,m){var g="".concat(d,"-").concat(m),v=p[o.value],y=n.includes(v),b=c(p[o.children]||[],g,y),_=h.createElement(rK,p,b.map(function(x){return x.node}));if(t===v&&(a=_),y){var S={pos:g,node:_,children:b};return f||s.push(S),S}return null}).filter(function(p){return p})}s||(s=[],c(r),s.sort(function(u,d){var f=u.node.props.value,p=d.node.props.value,m=n.indexOf(f),g=n.indexOf(p);return m-g}))}Object.defineProperty(e,"triggerNode",{get:function(){return Vr(!1,"`triggerNode` is deprecated. Please consider decoupling data with node."),l(),a}}),Object.defineProperty(e,"allCheckedNodes",{get:function(){return Vr(!1,"`allCheckedNodes` is deprecated. Please consider decoupling data with node."),l(),i?s:s.map(function(u){var d=u.node;return d})}})}var Kyt=function(t,n,r){var i=r.fieldNames,o=r.treeNodeFilterProp,a=r.filterTreeNode,s=i.children;return h.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(p,m){var g=m[s],v=f||l(n,bj(m)),y=u(g||[],v);return(v||y.length)&&p.push(z(z({},m),{},te({isLeaf:void 0},s,y))),p},[])};return c(t)},[t,n,s,o,a])};function vae(e){var t=h.useRef();t.current=e;var n=h.useCallback(function(){return t.current.apply(t,arguments)},[]);return n}function Qyt(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=z(z({},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 Xyt(e,t,n){return h.useMemo(function(){if(e){if(n){var r=z({id:"id",pId:"pId",rootPId:null},qt(n)==="object"?n:{});return Qyt(e,r)}return e}return r2e(t)},[t,n,e])}var i2e=h.createContext(null),o2e=h.createContext(null),Zyt={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},Jyt=function(t,n){var r=Yq(),i=r.prefixCls,o=r.multiple,a=r.searchValue,s=r.toggleOpen,l=r.open,c=r.notFoundContent,u=h.useContext(o2e),d=u.virtual,f=u.listHeight,p=u.listItemHeight,m=u.listItemScrollOffset,g=u.treeData,v=u.fieldNames,y=u.onSelect,b=u.dropdownMatchSelectWidth,_=u.treeExpandAction,S=u.treeTitleRender,x=u.onPopupScroll,E=u.leftMaxCount,C=u.leafCountOnly,w=u.valueEntities,O=h.useContext(i2e),T=O.checkable,A=O.checkedKeys,I=O.halfCheckedKeys,N=O.treeExpandedKeys,D=O.treeDefaultExpandAll,M=O.treeDefaultExpandedKeys,k=O.onTreeExpand,P=O.treeIcon,B=O.showTreeIcon,G=O.switcherIcon,L=O.treeLine,W=O.treeNodeFilterProp,j=O.loadData,H=O.treeLoadedKeys,X=O.treeMotion,Q=O.onTreeLoad,ue=O.keyEntities,ee=h.useRef(),K=Df(function(){return g},[l,g],function(tt,Ge){return Ge[0]&&tt[1]!==Ge[1]}),se=h.useMemo(function(){return T?{checked:A,halfChecked:I}:null},[T,A,I]);h.useEffect(function(){if(l&&!o&&A.length){var tt;(tt=ee.current)===null||tt===void 0||tt.scrollTo({key:A[0]})}},[l]);var le=function(Ge){Ge.preventDefault()},oe=function(Ge,Nt){var lt=Nt.node;T&&vj(lt)||(y(lt.key,{selected:!A.includes(lt.key)}),o||s(!1))},ne=h.useState(M),he=Re(ne,2),me=he[0],ce=he[1],re=h.useState(null),ve=Re(re,2),be=ve[0],xe=ve[1],we=h.useMemo(function(){return N?rt(N):a?be:me},[me,be,N,a]),de=function(Ge){ce(Ge),xe(Ge),k&&k(Ge)},Ee=String(a).toLowerCase(),Ne=function(Ge){return Ee?String(Ge[W]).toLowerCase().includes(Ee):!1};h.useEffect(function(){a&&xe(Gyt(g,v))},[a]);var Te=h.useState(function(){return new Map}),Ve=Re(Te,2),q=Ve[0],U=Ve[1];h.useEffect(function(){E&&U(new Map)},[E]);function Y(tt){var Ge=tt[v.value];if(!q.has(Ge)){var Nt=w.get(Ge),lt=(Nt.children||[]).length===0;if(lt)q.set(Ge,!1);else{var st=Nt.children.filter(function(ct){return!ct.node.disabled&&!ct.node.disableCheckbox&&!A.includes(ct.node[v.value])}),It=st.length;q.set(Ge,It>E)}}return q.get(Ge)}var ae=qn(function(tt){var Ge=tt[v.value];return A.includes(Ge)||E===null?!1:E<=0?!0:C&&E?Y(tt):!1}),ye=function tt(Ge){var Nt=yf(Ge),lt;try{for(Nt.s();!(lt=Nt.n()).done;){var st=lt.value;if(!(st.disabled||st.selectable===!1)){if(a){if(Ne(st))return st}else return st;if(st[v.children]){var It=tt(st[v.children]);if(It)return It}}}}catch(ct){Nt.e(ct)}finally{Nt.f()}return null},fe=h.useState(null),Ae=Re(fe,2),We=Ae[0],ie=Ae[1],Be=ue[We];h.useEffect(function(){if(l){var tt=null,Ge=function(){var lt=ye(K);return lt?lt[v.value]:null};!o&&A.length&&!a?tt=A[0]:tt=Ge(),ie(tt)}},[l,a]),h.useImperativeHandle(n,function(){var tt;return{scrollTo:(tt=ee.current)===null||tt===void 0?void 0:tt.scrollTo,onKeyDown:function(Nt){var lt,st=Nt.which;switch(st){case Ut.UP:case Ut.DOWN:case Ut.LEFT:case Ut.RIGHT:(lt=ee.current)===null||lt===void 0||lt.onKeyDown(Nt);break;case Ut.ENTER:{if(Be){var It=ae(Be.node),ct=(Be==null?void 0:Be.node)||{},Pt=ct.selectable,Rt=ct.value,Tt=ct.disabled;Pt!==!1&&!Tt&&!It&&oe(null,{node:{key:We},selected:!A.includes(Rt)})}break}case Ut.ESC:s(!1)}},onKeyUp:function(){}}});var Fe=Df(function(){return!a},[a,N||me],function(tt,Ge){var Nt=Re(tt,1),lt=Nt[0],st=Re(Ge,2),It=st[0],ct=st[1];return lt!==It&&!!(It||ct)}),Pe=Fe?j:null;if(K.length===0)return h.createElement("div",{role:"listbox",className:"".concat(i,"-empty"),onMouseDown:le},c);var Ke={fieldNames:v};return H&&(Ke.loadedKeys=H),we&&(Ke.expandedKeys=we),h.createElement("div",{onMouseDown:le},Be&&l&&h.createElement("span",{style:Zyt,"aria-live":"assertive"},Be.node.value),h.createElement(HTe.Provider,{value:{nodeDisabled:ae}},h.createElement(pD,Xe({ref:ee,focusable:!1,prefixCls:"".concat(i,"-tree"),treeData:K,height:f,itemHeight:p,itemScrollOffset:m,virtual:d!==!1&&b!==!1,multiple:o,icon:P,showIcon:B,switcherIcon:G,showLine:L,loadData:Pe,motion:X,activeKey:We,checkable:T,checkStrictly:!0,checkedKeys:se,selectedKeys:T?[]:A,defaultExpandAll:D,titleRender:S},Ke,{onActiveChange:ie,onSelect:oe,onCheck:oe,onExpand:de,onLoad:Q,filterTreeNode:Ne,expandAction:_,onScroll:x}))))},e_t=h.forwardRef(Jyt),iK="SHOW_ALL",oK="SHOW_PARENT",hD="SHOW_CHILD";function bae(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 vj(l)||i.has(l[r.value])})}):t===oK?e.filter(function(o){var a=n[o],s=a?a.parent:null;return!s||vj(s.node)||!i.has(s.key)}):e}var t_t=["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 n_t(e){return!e||qt(e)!=="object"}var r_t=h.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,p=e.autoClearSearchValue,m=p===void 0?!0:p,g=e.filterTreeNode,v=e.treeNodeFilterProp,y=v===void 0?"value":v,b=e.showCheckedStrategy,_=e.treeNodeLabelProp,S=e.multiple,x=e.treeCheckable,E=e.treeCheckStrictly,C=e.labelInValue,w=e.maxCount,O=e.fieldNames,T=e.treeDataSimpleMode,A=e.treeData,I=e.children,N=e.loadData,D=e.treeLoadedKeys,M=e.onTreeLoad,k=e.treeDefaultExpandAll,P=e.treeExpandedKeys,B=e.treeDefaultExpandedKeys,G=e.onTreeExpand,L=e.treeExpandAction,W=e.virtual,j=e.listHeight,H=j===void 0?200:j,X=e.listItemHeight,Q=X===void 0?20:X,ue=e.listItemScrollOffset,ee=ue===void 0?0:ue,K=e.onDropdownVisibleChange,se=e.dropdownMatchSelectWidth,le=se===void 0?!0:se,oe=e.treeLine,ne=e.treeIcon,he=e.showTreeIcon,me=e.switcherIcon,ce=e.treeMotion,re=e.treeTitleRender,ve=e.onPopupScroll,be=kt(e,t_t),xe=Jq(n),we=x&&!E,de=x||E,Ee=E||C,Ne=de||S,Te=Pn(a,{value:o}),Ve=Re(Te,2),q=Ve[0],U=Ve[1],Y=h.useMemo(function(){return x?b||hD:iK},[b,x]),ae=h.useMemo(function(){return Vyt(O)},[JSON.stringify(O)]),ye=Pn("",{value:u!==void 0?u:d,postState:function($t){return $t||""}}),fe=Re(ye,2),Ae=fe[0],We=fe[1],ie=function($t){We($t),f==null||f($t)},Be=Xyt(A,I,T),Fe=Wyt(Be,ae),Pe=Fe.keyEntities,Ke=Fe.valueEntities,tt=h.useCallback(function(Gt){var $t=[],zt=[];return Gt.forEach(function(Ft){Ke.has(Ft)?zt.push(Ft):$t.push(Ft)}),{missingRawValues:$t,existRawValues:zt}},[Ke]),Ge=Kyt(Be,Ae,{fieldNames:ae,treeNodeFilterProp:y,filterTreeNode:g}),Nt=h.useCallback(function(Gt){if(Gt){if(_)return Gt[_];for(var $t=ae._title,zt=0;zt<$t.length;zt+=1){var Ft=Gt[$t[zt]];if(Ft!==void 0)return Ft}}},[ae,_]),lt=h.useCallback(function(Gt){var $t=zyt(Gt);return $t.map(function(zt){return n_t(zt)?{value:zt}:zt})},[]),st=h.useCallback(function(Gt){var $t=lt(Gt);return $t.map(function(zt){var Ft=zt.label,De=zt.value,Ct=zt.halfChecked,et,Ot=Ke.get(De);if(Ot){var At;Ft=re?re(Ot.node):(At=Ft)!==null&&At!==void 0?At:Nt(Ot.node),et=Ot.node.disabled}else if(Ft===void 0){var _n=lt(q).find(function(zn){return zn.value===De});Ft=_n.label}return{label:Ft,value:De,halfChecked:Ct,disabled:et}})},[Ke,Nt,lt,q]),It=h.useMemo(function(){return lt(q===null?[]:q)},[lt,q]),ct=h.useMemo(function(){var Gt=[],$t=[];return It.forEach(function(zt){zt.halfChecked?$t.push(zt):Gt.push(zt)}),[Gt,$t]},[It]),Pt=Re(ct,2),Rt=Pt[0],Tt=Pt[1],Me=h.useMemo(function(){return Rt.map(function(Gt){return Gt.value})},[Rt]),Ue=Uyt(Rt,Tt,we,Pe),$e=Re(Ue,2),Le=$e[0],He=$e[1],it=h.useMemo(function(){var Gt=bae(Le,Y,Pe,ae),$t=Gt.map(function(Ct){var et,Ot;return(et=(Ot=Pe[Ct])===null||Ot===void 0||(Ot=Ot.node)===null||Ot===void 0?void 0:Ot[ae.value])!==null&&et!==void 0?et:Ct}),zt=$t.map(function(Ct){var et=Rt.find(function(At){return At.value===Ct}),Ot=C?et==null?void 0:et.label:re==null?void 0:re(et);return{value:Ct,label:Ot}}),Ft=st(zt),De=Ft[0];return!Ne&&De&&gae(De.value)&&gae(De.label)?[]:Ft.map(function(Ct){var et;return z(z({},Ct),{},{label:(et=Ct.label)!==null&&et!==void 0?et:Ct.value})})},[ae,Ne,Le,Rt,st,Y,Pe]),ft=jyt(it),Et=Re(ft,1),Dt=Et[0],St=h.useMemo(function(){return Ne&&(Y==="SHOW_CHILD"||E||!x)?w:null},[w,Ne,E,Y,x]),bt=vae(function(Gt,$t,zt){var Ft=bae(Gt,Y,Pe,ae);if(!(St&&Ft.length>St)){var De=st(Gt);if(U(De),m&&We(""),s){var Ct=Gt;we&&(Ct=Ft.map(function(qe){var Qe=Ke.get(qe);return Qe?Qe.node[ae.value]:qe}));var et=$t||{triggerValue:void 0,selected:void 0},Ot=et.triggerValue,At=et.selected,_n=Ct;if(E){var zn=Tt.filter(function(qe){return!Ct.includes(qe.value)});_n=[].concat(rt(_n),rt(zn))}var R=st(_n),$={preValue:Rt,triggerValue:Ot},J=!0;(E||zt==="selection"&&!At)&&(J=!1),Yyt($,Ot,Gt,Be,J,ae),de?$.checked=At:$.selected=At;var Oe=Ee?R:R.map(function(qe){return qe.value});s(Ne?Oe:Oe[0],Ee?null:R.map(function(qe){return qe.label}),$)}}}),xt=h.useCallback(function(Gt,$t){var zt,Ft=$t.selected,De=$t.source,Ct=Pe[Gt],et=Ct==null?void 0:Ct.node,Ot=(zt=et==null?void 0:et[ae.value])!==null&&zt!==void 0?zt:Gt;if(!Ne)bt([Ot],{selected:!0,triggerValue:Ot},"option");else{var At=Ft?[].concat(rt(Me),[Ot]):Le.filter(function(Qe){return Qe!==Ot});if(we){var _n=tt(At),zn=_n.missingRawValues,R=_n.existRawValues,$=R.map(function(Qe){return Ke.get(Qe).key}),J;if(Ft){var Oe=su($,!0,Pe);J=Oe.checkedKeys}else{var qe=su($,{halfCheckedKeys:He},Pe);J=qe.checkedKeys}At=[].concat(rt(zn),rt(J.map(function(Qe){return Pe[Qe].node[ae.value]})))}bt(At,{selected:Ft,triggerValue:Ot},De||"option")}Ft||!Ne?l==null||l(Ot,bj(et)):c==null||c(Ot,bj(et))},[tt,Ke,Pe,ae,Ne,Me,bt,we,l,c,Le,He,w]),ht=h.useCallback(function(Gt){if(K){var $t={};Object.defineProperty($t,"documentClickClose",{get:function(){return Vr(!1,"Second param of `onDropdownVisibleChange` has been removed."),!1}}),K(Gt,$t)}},[K]),Vt=vae(function(Gt,$t){var zt=Gt.map(function(Ft){return Ft.value});if($t.type==="clear"){bt(zt,{},"selection");return}$t.values.length&&xt($t.values[0].value,{selected:!1,source:"selection"})}),at=h.useMemo(function(){return{virtual:W,dropdownMatchSelectWidth:le,listHeight:H,listItemHeight:Q,listItemScrollOffset:ee,treeData:Ge,fieldNames:ae,onSelect:xt,treeExpandAction:L,treeTitleRender:re,onPopupScroll:ve,leftMaxCount:w===void 0?null:w-Dt.length,leafCountOnly:Y==="SHOW_CHILD"&&!E&&!!x,valueEntities:Ke}},[W,le,H,Q,ee,Ge,ae,xt,L,re,ve,w,Dt.length,Y,E,x,Ke]),wt=h.useMemo(function(){return{checkable:de,loadData:N,treeLoadedKeys:D,onTreeLoad:M,checkedKeys:Le,halfCheckedKeys:He,treeDefaultExpandAll:k,treeExpandedKeys:P,treeDefaultExpandedKeys:B,onTreeExpand:G,treeIcon:ne,treeMotion:ce,showTreeIcon:he,switcherIcon:me,treeLine:oe,treeNodeFilterProp:y,keyEntities:Pe}},[de,N,D,M,Le,He,k,P,B,G,ne,ce,he,me,oe,y,Pe]);return h.createElement(o2e.Provider,{value:at},h.createElement(i2e.Provider,{value:wt},h.createElement(Qq,Xe({ref:t},be,{id:xe,prefixCls:i,mode:Ne?"multiple":void 0,displayValues:Dt,onDisplayValuesChange:Vt,searchValue:Ae,onSearch:ie,OptionList:e_t,emptyOptions:!Be.length,onDropdownVisibleChange:ht,dropdownMatchSelectWidth:le}))))}),A2=r_t;A2.TreeNode=rK;A2.SHOW_ALL=iK;A2.SHOW_PARENT=oK;A2.SHOW_CHILD=hD;const i_t=e=>{const{componentCls:t,treePrefixCls:n,colorBgElevated:r}=e,i=`.${n}`;return[{[`${t}-dropdown`]:[{padding:`${Ie(e.paddingXS)} ${Ie(e.calc(e.paddingXS).div(2).equal())}`},VTe(n,Un(e,{colorBgContainer:r}),!1),{[i]:{borderRadius:0,[`${i}-list-holder-inner`]:{alignItems:"stretch",[`${i}-treenode`]:{[`${i}-node-content-wrapper`]:{flex:"auto"}}}}},tD(`${n}-checkbox`,e),{"&-rtl":{direction:"rtl",[`${i}-switcher${i}-switcher_close`]:{[`${i}-switcher-icon svg`]:{transform:"rotate(90deg)"}}}}]}]};function o_t(e,t,n){return ir("TreeSelect",r=>{const i=Un(r,{treePrefixCls:t});return[i_t(i)]},GTe)(e,n)}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=(e,t)=>{var n,r,i,o,a;const{prefixCls:s,size:l,disabled:c,bordered:u=!0,style:d,className:f,rootClassName:p,treeCheckable:m,multiple:g,listHeight:v=256,listItemHeight:y,placement:b,notFoundContent:_,switcherIcon:S,treeLine:x,getPopupContainer:E,popupClassName:C,dropdownClassName:w,treeIcon:O=!1,transitionName:T,choiceTransitionName:A="",status:I,treeExpandAction:N,builtinPlacements:D,dropdownMatchSelectWidth:M,popupMatchSelectWidth:k,allowClear:P,variant:B,dropdownStyle:G,dropdownRender:L,popupRender:W,onDropdownVisibleChange:j,onOpenChange:H,tagRender:X,maxCount:Q,showCheckedStrategy:ue,treeCheckStrictly:ee,styles:K,classNames:se}=e,le=a_t(e,["prefixCls","size","disabled","bordered","style","className","rootClassName","treeCheckable","multiple","listHeight","listItemHeight","placement","notFoundContent","switcherIcon","treeLine","getPopupContainer","popupClassName","dropdownClassName","treeIcon","transitionName","choiceTransitionName","status","treeExpandAction","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","allowClear","variant","dropdownStyle","dropdownRender","popupRender","onDropdownVisibleChange","onOpenChange","tagRender","maxCount","showCheckedStrategy","treeCheckStrictly","styles","classNames"]),{getPopupContainer:oe,getPrefixCls:ne,renderEmpty:he,direction:me,virtual:ce,popupMatchSelectWidth:re,popupOverflow:ve}=h.useContext(cn),{styles:be,classNames:xe}=Vi("treeSelect"),[,we]=Ko(),de=y??(we==null?void 0:we.controlHeightSM)+(we==null?void 0:we.paddingXXS),Ee=ne(),Ne=ne("select",s),Te=ne("select-tree",s),Ve=ne("tree-select",s),{compactSize:q,compactItemClassnames:U}=Ru(Ne,me),Y=gi(Ne),ae=gi(Ve),[ye,fe,Ae]=nY(Ne,Y),[We]=o_t(Ve,Te,ae),[ie,Be]=Kf("treeSelect",B,u),Fe=Ce(((n=se==null?void 0:se.popup)===null||n===void 0?void 0:n.root)||((r=xe==null?void 0:xe.popup)===null||r===void 0?void 0:r.root)||C||w,`${Ve}-dropdown`,{[`${Ve}-dropdown-rtl`]:me==="rtl"},p,xe.root,se==null?void 0:se.root,Ae,Y,ae,fe),Pe=((i=K==null?void 0:K.popup)===null||i===void 0?void 0:i.root)||((o=be==null?void 0:be.popup)===null||o===void 0?void 0:o.root)||G,Ke=W||L,tt=H||j,Ge=!!(m||g),Nt=h.useMemo(()=>{if(!(Q&&(ue==="SHOW_ALL"&&!ee||ue==="SHOW_PARENT")))return Q},[Q,ue,ee]),lt=rY(e.suffixIcon,e.showArrow),st=(a=k??M)!==null&&a!==void 0?a:re,{status:It,hasFeedback:ct,isFormItemInput:Pt,feedbackIcon:Rt}=h.useContext(oa),Tt=yh(It,I),{suffixIcon:Me,removeIcon:Ue,clearIcon:$e}=BP(Object.assign(Object.assign({},le),{multiple:Ge,showSuffixIcon:lt,hasFeedback:ct,feedbackIcon:Rt,prefixCls:Ne,componentName:"TreeSelect"})),Le=P===!0?{clearIcon:$e}:P;let He;_!==void 0?He=_:He=(he==null?void 0:he("Select"))||h.createElement(gS,{componentName:"Select"});const it=ur(le,["suffixIcon","removeIcon","clearIcon","itemIcon","switcherIcon","style"]),ft=h.useMemo(()=>b!==void 0?b:me==="rtl"?"bottomRight":"bottomLeft",[b,me]),Et=mo(at=>{var wt;return(wt=l??q)!==null&&wt!==void 0?wt:at}),Dt=h.useContext(Yo),St=c??Dt,bt=Ce(!s&&Ve,{[`${Ne}-lg`]:Et==="large",[`${Ne}-sm`]:Et==="small",[`${Ne}-rtl`]:me==="rtl",[`${Ne}-${ie}`]:Be,[`${Ne}-in-form-item`]:Pt},Id(Ne,Tt,ct),U,f,p,xe.root,se==null?void 0:se.root,Ae,Y,ae,fe),xt=at=>h.createElement(WTe,{prefixCls:Te,switcherIcon:S,treeNodeProps:at,showLine:x}),[ht]=Ou("SelectLike",Pe==null?void 0:Pe.zIndex),Vt=h.createElement(A2,Object.assign({virtual:ce,disabled:St},it,{dropdownMatchSelectWidth:st,builtinPlacements:tY(D,ve),ref:t,prefixCls:Ne,className:bt,style:Object.assign(Object.assign({},K==null?void 0:K.root),d),listHeight:v,listItemHeight:de,treeCheckable:m&&h.createElement("span",{className:`${Ne}-tree-checkbox-inner`}),treeLine:!!x,suffixIcon:Me,multiple:Ge,placement:ft,removeIcon:Ue,allowClear:Le,switcherIcon:xt,showTreeIcon:O,notFoundContent:He,getPopupContainer:E||oe,treeMotion:null,dropdownClassName:Fe,dropdownStyle:Object.assign(Object.assign({},Pe),{zIndex:ht}),dropdownRender:Ke,onDropdownVisibleChange:tt,choiceTransitionName:Va(Ee,"",A),transitionName:Va(Ee,"slide-up",T),treeExpandAction:N,tagRender:Ge?X:void 0,maxCount:Nt,showCheckedStrategy:ue,treeCheckStrictly:ee}));return ye(We(Vt))},l_t=h.forwardRef(s_t),wv=l_t,c_t=Ig(wv,"dropdownAlign",e=>ur(e,["visible"]));wv.TreeNode=rK;wv.SHOW_ALL=iK;wv.SHOW_PARENT=oK;wv.SHOW_CHILD=hD;wv._InternalPanelDoNotUseOrYouWillBeFired=c_t;const u_t=(e,t,n,r)=>{const{titleMarginBottom:i,fontWeightStrong:o}=r;return{marginBottom:i,color:n,fontWeight:o,fontSize:e,lineHeight:t}},d_t=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}
`]=u_t(e[`fontSizeHeading${r}`],e[`lineHeightHeading${r}`],e.colorTextHeading,e)}),n},f_t=e=>{const{componentCls:t}=e;return{"a&, a":Object.assign(Object.assign({},Oq(e)),{userSelect:"text",[`&[disabled], &${t}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed","&:active, &:hover":{color:e.colorTextDisabled},"&:active":{pointerEvents:"none"}}})}},p_t=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:Iw[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}}),h_t=e=>{const{componentCls:t,paddingSM:n}=e,r=n;return{"&-edit-content":{position:"relative","div&":{insetInlineStart:e.calc(e.paddingSM).mul(-1).equal(),marginTop:e.calc(r).mul(-1).equal(),marginBottom:`calc(1em - ${Ie(r)})`},[`${t}-edit-content-confirm`]:{position:"absolute",insetInlineEnd:e.calc(e.marginXS).add(2).equal(),insetBlockEnd:e.marginXS,color:e.colorIcon,fontWeight:"normal",fontSize:e.fontSize,fontStyle:"normal",pointerEvents:"none"},textarea:{margin:"0!important",MozTransition:"none",height:"1em"}}}},m_t=e=>({[`${e.componentCls}-copy-success`]:{"\n &,\n &:hover,\n &:focus":{color:e.colorSuccess}},[`${e.componentCls}-copy-icon-only`]:{marginInlineStart:0}}),g_t=()=>({"\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"}}),v_t=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.colorSuccessText},[`&${t}-warning`]:{color:e.colorWarningText},[`&${t}-danger`]:{color:e.colorErrorText,"a&:active, a&:focus":{color:e.colorErrorTextActive},"a&:hover":{color:e.colorErrorTextHover}},[`&${t}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed",userSelect:"none"},"\n div&,\n p\n ":{marginBottom:"1em"}},d_t(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}}}),p_t(e)),f_t(e)),{[`
${t}-expand,
${t}-collapse,
${t}-edit,
${t}-copy
`]:Object.assign(Object.assign({},Oq(e)),{marginInlineStart:e.marginXXS})}),h_t(e)),m_t(e)),g_t()),{"&-rtl":{direction:"rtl"}})}},b_t=()=>({titleMarginTop:"1.2em",titleMarginBottom:"0.5em"}),a2e=ir("Typography",e=>[v_t(e)],b_t),y_t=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:p=h.createElement(ygt,null)}=e,m=h.useRef(null),g=h.useRef(!1),v=h.useRef(null),[y,b]=h.useState(l);h.useEffect(()=>{b(l)},[l]),h.useEffect(()=>{var D;if(!((D=m.current)===null||D===void 0)&&D.resizableTextArea){const{textArea:M}=m.current.resizableTextArea;M.focus();const{length:k}=M.value;M.setSelectionRange(k,k)}},[]);const _=({target:D})=>{b(D.value.replace(/[\n\r]/g,""))},S=()=>{g.current=!0},x=()=>{g.current=!1},E=({keyCode:D})=>{g.current||(v.current=D)},C=()=>{c(y.trim())},w=({keyCode:D,ctrlKey:M,altKey:k,metaKey:P,shiftKey:B})=>{v.current!==D||g.current||M||k||P||B||(D===Ut.ENTER?(C(),d==null||d()):D===Ut.ESC&&u())},O=()=>{C()},[T,A,I]=a2e(t),N=Ce(t,`${t}-edit-content`,{[`${t}-rtl`]:o==="rtl",[`${t}-${f}`]:!!f},r,A,I);return T(h.createElement("div",{className:N,style:i},h.createElement(Uwe,{ref:m,maxLength:a,value:y,onChange:_,onKeyDown:E,onKeyUp:w,onCompositionStart:S,onCompositionEnd:x,onBlur:O,"aria-label":n,rows:1,autoSize:s}),p!==null?wo(p,{className:`${t}-edit-content-confirm`}):null))};var __t=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()}},S_t=__t,yae={"text/plain":"Text","text/html":"Url",default:"Text"},E_t="Copy to clipboard: #{key}, Enter";function C_t(e){var t=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return e.replace(/#{\s*key\s*}/g,t)}function x_t(e,t){var n,r,i,o,a,s,l=!1;t||(t={}),n=t.debug||!1;try{i=S_t(),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=yae[t.format]||yae.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=C_t("message"in t?t.message:E_t),window.prompt(r,e)}}finally{a&&(typeof a.removeRange=="function"?a.removeRange(o):a.removeAllRanges()),s&&document.body.removeChild(s),i()}return l}var w_t=x_t;const T_t=oi(w_t);var O_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,t||[])).next())})};const R_t=({copyConfig:e,children:t})=>{const[n,r]=h.useState(!1),[i,o]=h.useState(!1),a=h.useRef(null),s=()=>{a.current&&clearTimeout(a.current)},l={};e.format&&(l.format=e.format),h.useEffect(()=>s,[]);const c=qn(u=>O_t(void 0,void 0,void 0,function*(){var d;u==null||u.preventDefault(),u==null||u.stopPropagation(),o(!0);try{const f=typeof e.text=="function"?yield e.text():e.text;T_t(f||Vht(t,!0).join("")||"",l),o(!1),r(!0),s(),a.current=setTimeout(()=>{r(!1)},3e3),(d=e.onCopy)===null||d===void 0||d.call(e,u)}catch(f){throw o(!1),f}}));return{copied:n,copyLoading:i,onClick:c}};function IL(e,t){return h.useMemo(()=>{const n=!!e;return[n,Object.assign(Object.assign({},t),n&&typeof e=="object"?e:null)]},[e])}const A_t=e=>{const t=h.useRef(void 0);return h.useEffect(()=>{t.current=e}),t.current},I_t=(e,t,n)=>h.useMemo(()=>e===!0?{title:t??n}:h.isValidElement(e)?{title:e}:typeof e=="object"?Object.assign({title:t??n},e):{title:e},[e,t,n]);var N_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 s2e=h.forwardRef((e,t)=>{const{prefixCls:n,component:r="article",className:i,rootClassName:o,setContentRef:a,children:s,direction:l,style:c}=e,u=N_t(e,["prefixCls","component","className","rootClassName","setContentRef","children","direction","style"]),{getPrefixCls:d,direction:f,className:p,style:m}=Vi("typography"),g=l??f,v=a?aa(t,a):t,y=d("typography",n),[b,_,S]=a2e(y),x=Ce(y,p,{[`${y}-rtl`]:g==="rtl"},i,o,_,S),E=Object.assign(Object.assign({},m),c);return b(h.createElement(r,Object.assign({className:x,style:E,ref:v},u),s))});function _ae(e){return e===!1?[!1,!1]:Array.isArray(e)?e:[e]}function NL(e,t,n){return e===!0||e===void 0?t:e||n&&t}function M_t(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 aK=e=>["string","number"].includes(typeof e),k_t=({prefixCls:e,copied:t,locale:n,iconOnly:r,tooltips:i,icon:o,tabIndex:a,onCopy:s,loading:l})=>{const c=_ae(i),u=_ae(o),{copied:d,copy:f}=n??{},p=t?d:f,m=NL(c[t?1:0],p),g=typeof m=="string"?m:p;return h.createElement(Na,{title:m},h.createElement("button",{type:"button",className:Ce(`${e}-copy`,{[`${e}-copy-success`]:t,[`${e}-copy-icon-only`]:r}),onClick:s,"aria-label":g,tabIndex:a},t?NL(u[1],h.createElement(Qp,null),!0):NL(u[0],l?h.createElement(Td,null):h.createElement(agt,null),!0)))},MR=h.forwardRef(({style:e,children:t},n)=>{const r=h.useRef(null);return h.useImperativeHandle(n,()=>({isExceed:()=>{const i=r.current;return i.scrollHeight>i.clientHeight},getHeight:()=>r.current.clientHeight})),h.createElement("span",{"aria-hidden":!0,ref:r,style:Object.assign({position:"fixed",display:"block",left:0,top:0,pointerEvents:"none",backgroundColor:"rgba(255, 0, 0, 0.65)"},e)},t)}),P_t=e=>e.reduce((t,n)=>t+(aK(n)?String(n).length:1),0);function Sae(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=aK(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 ML=0,kL=1,PL=2,DL=3,Eae=4,kR={display:"-webkit-box",overflow:"hidden",WebkitBoxOrient:"vertical"};function D_t(e){const{enableMeasure:t,width:n,text:r,children:i,rows:o,expanded:a,miscDeps:s,onEllipsis:l}=e,c=h.useMemo(()=>Do(r),[r]),u=h.useMemo(()=>P_t(c),[r]),d=h.useMemo(()=>i(c,!1),[r]),[f,p]=h.useState(null),m=h.useRef(null),g=h.useRef(null),v=h.useRef(null),y=h.useRef(null),b=h.useRef(null),[_,S]=h.useState(!1),[x,E]=h.useState(ML),[C,w]=h.useState(0),[O,T]=h.useState(null);er(()=>{E(t&&n&&u?kL:ML)},[n,r,o,t,c]),er(()=>{var D,M,k,P;if(x===kL){E(PL);const B=g.current&&getComputedStyle(g.current).whiteSpace;T(B)}else if(x===PL){const B=!!(!((D=v.current)===null||D===void 0)&&D.isExceed());E(B?DL:Eae),p(B?[0,u]:null),S(B);const G=((M=v.current)===null||M===void 0?void 0:M.getHeight())||0,L=o===1?0:((k=y.current)===null||k===void 0?void 0:k.getHeight())||0,W=((P=b.current)===null||P===void 0?void 0:P.getHeight())||0,j=Math.max(G,L+W);w(j+1),l(B)}},[x]);const A=f?Math.ceil((f[0]+f[1])/2):0;er(()=>{var D;const[M,k]=f||[0,0];if(M!==k){const B=(((D=m.current)===null||D===void 0?void 0:D.getHeight())||0)>C;let G=A;k-M===1&&(G=B?M:k),p(B?[M,G]:[G,k])}},[f,A]);const I=h.useMemo(()=>{if(!t)return i(c,!1);if(x!==DL||!f||f[0]!==f[1]){const D=i(c,!1);return[Eae,ML].includes(x)?D:h.createElement("span",{style:Object.assign(Object.assign({},kR),{WebkitLineClamp:o})},D)}return i(a?c:Sae(c,f[0]),_)},[a,x,f,c].concat(rt(s))),N={width:n,margin:0,padding:0,whiteSpace:O==="nowrap"?"normal":"inherit"};return h.createElement(h.Fragment,null,I,x===PL&&h.createElement(h.Fragment,null,h.createElement(MR,{style:Object.assign(Object.assign(Object.assign({},N),kR),{WebkitLineClamp:o}),ref:v},d),h.createElement(MR,{style:Object.assign(Object.assign(Object.assign({},N),kR),{WebkitLineClamp:o-1}),ref:y},d),h.createElement(MR,{style:Object.assign(Object.assign(Object.assign({},N),kR),{WebkitLineClamp:1}),ref:b},i([],!0))),x===DL&&f&&f[0]!==f[1]&&h.createElement(MR,{style:Object.assign(Object.assign({},N),{top:400}),ref:m},i(Sae(c,A),!0)),x===kL&&h.createElement("span",{style:{whiteSpace:"inherit"},ref:g}))}const L_t=({enableEllipsis:e,isEllipsis:t,children:n,tooltipProps:r})=>!(r!=null&&r.title)||!e?n:h.createElement(Na,Object.assign({open:t?void 0:!1},r),n);var $_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};function F_t({mark:e,code:t,underline:n,delete:r,strong:i,keyboard:o,italic:a},s){let l=s;function c(u,d){d&&(l=h.createElement(u,{},l))}return c("strong",i),c("u",n),c("del",r),c("code",t),c("mark",e),c("kbd",o),c("i",a),l}const B_t="...",Cae=["delete","mark","code","underline","strong","keyboard","italic"],mD=h.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:p}=e,m=$_t(e,["prefixCls","className","style","type","disabled","children","ellipsis","editable","copyable","component","title"]),{getPrefixCls:g,direction:v}=h.useContext(cn),[y]=Ma("Text"),b=h.useRef(null),_=h.useRef(null),S=g("typography",r),x=ur(m,Cae),[E,C]=IL(u),[w,O]=Pn(!1,{value:C.editing}),{triggerType:T=["icon"]}=C,A=Fe=>{var Pe;Fe&&((Pe=C.onStart)===null||Pe===void 0||Pe.call(C)),O(Fe)},I=A_t(w);er(()=>{var Fe;!w&&I&&((Fe=_.current)===null||Fe===void 0||Fe.focus())},[w]);const N=Fe=>{Fe==null||Fe.preventDefault(),A(!0)},D=Fe=>{var Pe;(Pe=C.onChange)===null||Pe===void 0||Pe.call(C,Fe),A(!1)},M=()=>{var Fe;(Fe=C.onCancel)===null||Fe===void 0||Fe.call(C),A(!1)},[k,P]=IL(d),{copied:B,copyLoading:G,onClick:L}=R_t({copyConfig:P,children:l}),[W,j]=h.useState(!1),[H,X]=h.useState(!1),[Q,ue]=h.useState(!1),[ee,K]=h.useState(!1),[se,le]=h.useState(!0),[oe,ne]=IL(c,{expandable:!1,symbol:Fe=>Fe?y==null?void 0:y.collapse:y==null?void 0:y.expand}),[he,me]=Pn(ne.defaultExpanded||!1,{value:ne.expanded}),ce=oe&&(!he||ne.expandable==="collapsible"),{rows:re=1}=ne,ve=h.useMemo(()=>ce&&(ne.suffix!==void 0||ne.onEllipsis||ne.expandable||E||k),[ce,ne,E,k]);er(()=>{oe&&!ve&&(j(kH("webkitLineClamp")),X(kH("textOverflow")))},[ve,oe]);const[be,xe]=h.useState(ce),we=h.useMemo(()=>ve?!1:re===1?H:W,[ve,H,W]);er(()=>{xe(we&&ce)},[we,ce]);const de=ce&&(be?ee:Q),Ee=ce&&re===1&&be,Ne=ce&&re>1&&be,Te=(Fe,Pe)=>{var Ke;me(Pe.expanded),(Ke=ne.onExpand)===null||Ke===void 0||Ke.call(ne,Fe,Pe)},[Ve,q]=h.useState(0),U=({offsetWidth:Fe})=>{q(Fe)},Y=Fe=>{var Pe;ue(Fe),Q!==Fe&&((Pe=ne.onEllipsis)===null||Pe===void 0||Pe.call(ne,Fe))};h.useEffect(()=>{const Fe=b.current;if(oe&&be&&Fe){const Pe=M_t(Fe);ee!==Pe&&K(Pe)}},[oe,be,l,Ne,se,Ve]),h.useEffect(()=>{const Fe=b.current;if(typeof IntersectionObserver>"u"||!Fe||!be||!ce)return;const Pe=new IntersectionObserver(()=>{le(!!Fe.offsetParent)});return Pe.observe(Fe),()=>{Pe.disconnect()}},[be,ce]);const ae=I_t(ne.tooltip,C.text,l),ye=h.useMemo(()=>{if(!(!oe||be))return[C.text,l,p,ae.title].find(aK)},[oe,be,p,ae.title,de]);if(w)return h.createElement(y_t,{value:(n=C.text)!==null&&n!==void 0?n:typeof l=="string"?l:"",onSave:D,onCancel:M,onEnd:C.onEnd,prefixCls:S,className:i,style:o,direction:v,component:f,maxLength:C.maxLength,autoSize:C.autoSize,enterIcon:C.enterIcon});const fe=()=>{const{expandable:Fe,symbol:Pe}=ne;return Fe?h.createElement("button",{type:"button",key:"expand",className:`${S}-${he?"collapse":"expand"}`,onClick:Ke=>Te(Ke,{expanded:!he}),"aria-label":he?y.collapse:y==null?void 0:y.expand},typeof Pe=="function"?Pe(he):Pe):null},Ae=()=>{if(!E)return;const{icon:Fe,tooltip:Pe,tabIndex:Ke}=C,tt=Do(Pe)[0]||(y==null?void 0:y.edit),Ge=typeof tt=="string"?tt:"";return T.includes("icon")?h.createElement(Na,{key:"edit",title:Pe===!1?"":tt},h.createElement("button",{type:"button",ref:_,className:`${S}-edit`,onClick:N,"aria-label":Ge,tabIndex:Ke},Fe||h.createElement(Hw,{role:"button"}))):null},We=()=>k?h.createElement(k_t,Object.assign({key:"copy"},P,{prefixCls:S,copied:B,locale:y,onCopy:L,loading:G,iconOnly:l==null})):null,ie=Fe=>[Fe&&fe(),Ae(),We()],Be=Fe=>[Fe&&!he&&h.createElement("span",{"aria-hidden":!0,key:"ellipsis"},B_t),ne.suffix,ie(Fe)];return h.createElement(Oa,{onResize:U,disabled:!ce},Fe=>h.createElement(L_t,{tooltipProps:ae,enableEllipsis:ce,isEllipsis:de},h.createElement(s2e,Object.assign({className:Ce({[`${S}-${a}`]:a,[`${S}-disabled`]:s,[`${S}-ellipsis`]:oe,[`${S}-ellipsis-single-line`]:Ee,[`${S}-ellipsis-multiple-line`]:Ne},i),prefixCls:r,style:Object.assign(Object.assign({},o),{WebkitLineClamp:Ne?re:void 0}),component:f,ref:aa(Fe,b,t),direction:v,onClick:T.includes("text")?N:void 0,"aria-label":ye==null?void 0:ye.toString(),title:p},x),h.createElement(D_t,{enableMeasure:ce&&!be,text:l,rows:re,width:Ve,onEllipsis:Y,expanded:he,miscDeps:[B,he,G,E,k,y].concat(rt(Cae.map(Pe=>e[Pe])))},(Pe,Ke)=>F_t(e,h.createElement(h.Fragment,null,Pe.length>0&&Ke&&!he&&ye?h.createElement("span",{key:"show-content","aria-hidden":!0},Pe):Pe,Be(Ke)))))))});var H_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 j_t=h.forwardRef((e,t)=>{var{ellipsis:n,rel:r}=e,i=H_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,h.createElement(mD,Object.assign({},o,{ref:t,ellipsis:!!n,component:"a"}))}),U_t=h.forwardRef((e,t)=>h.createElement(mD,Object.assign({ref:t},e,{component:"div"})));var z_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 V_t=(e,t)=>{var{ellipsis:n}=e,r=z_t(e,["ellipsis"]);const i=h.useMemo(()=>n&&typeof n=="object"?ur(n,["expandable","rows"]):n,[n]);return h.createElement(mD,Object.assign({ref:t},r,{ellipsis:i,component:"span"}))},G_t=h.forwardRef(V_t);var W_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 q_t=[1,2,3,4,5],Y_t=h.forwardRef((e,t)=>{const{level:n=1}=e,r=W_t(e,["level"]),i=q_t.includes(n)?`h${n}`:"h1";return h.createElement(mD,Object.assign({ref:t},r,{component:i}))}),I2=s2e;I2.Text=G_t;I2.Link=j_t;I2.Title=Y_t;I2.Paragraph=U_t;const LL=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)?(Vr(!1,"Upload takes an invalidate 'accept' type '".concat(s,"'.Skip for check.")),!0):!1})}return!0};function K_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 xae(e){var t=e.responseText||e.response;if(!t)return t;try{return JSON.parse(t)}catch{return t}}function Q_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(K_t(e,t),xae(t)):e.onSuccess(xae(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 X_t=function(){var e=Ui(rr().mark(function t(n,r){var i,o,a,s,l,c,u,d;return rr().wrap(function(p){for(;;)switch(p.prev=p.next){case 0:c=function(){return c=Ui(rr().mark(function g(v){return rr().wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return b.abrupt("return",new Promise(function(_){v.file(function(S){r(S)?(v.fullPath&&!S.webkitRelativePath&&(Object.defineProperties(S,{webkitRelativePath:{writable:!0}}),S.webkitRelativePath=v.fullPath.replace(/^\//,""),Object.defineProperties(S,{webkitRelativePath:{writable:!1}})),_(S)):_(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=Ui(rr().mark(function g(v){var y,b,_,S,x;return rr().wrap(function(C){for(;;)switch(C.prev=C.next){case 0:y=v.createReader(),b=[];case 2:return C.next=5,new Promise(function(w){y.readEntries(w,function(){return w([])})});case 5:if(_=C.sent,S=_.length,S){C.next=9;break}return C.abrupt("break",12);case 9:for(x=0;x<S;x++)b.push(_[x]);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=Ui(rr().mark(function g(v,y){var b,_;return rr().wrap(function(x){for(;;)switch(x.prev=x.next){case 0:if(v){x.next=2;break}return x.abrupt("return");case 2:if(v.path=y||"",!v.isFile){x.next=10;break}return x.next=6,l(v);case 6:b=x.sent,b&&i.push(b),x.next=15;break;case 10:if(!v.isDirectory){x.next=15;break}return x.next=13,a(v);case 13:_=x.sent,o.push.apply(o,rt(_));case 15:case"end":return x.stop()}},g)}));return function(v,y){return m.apply(this,arguments)}}(),d=0;case 9:if(!(d<o.length)){p.next=15;break}return p.next=12,u(o[d]);case 12:d++,p.next=9;break;case 15:return p.abrupt("return",i);case 16:case"end":return p.stop()}},t)}));return function(n,r){return e.apply(this,arguments)}}(),Z_t=+new Date,J_t=0;function $L(){return"rc-upload-".concat(Z_t,"-").concat(++J_t)}var eSt=["component","prefixCls","className","classNames","disabled","id","name","style","styles","multiple","accept","capture","children","directory","openFileDialogOnClick","onMouseEnter","onMouseLeave","hasControlInside"],tSt=function(e){Fs(n,e);var t=ll(n);function n(){var r;Qr(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)),te(sn(r),"state",{uid:$L()}),te(sn(r),"reqs",{}),te(sn(r),"fileInput",void 0),te(sn(r),"_isMounted",void 0),te(sn(r),"onChange",function(s){var l=r.props,c=l.accept,u=l.directory,d=s.target.files,f=rt(d).filter(function(p){return!u||LL(p,c)});r.uploadFiles(f),r.reset()}),te(sn(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)}}),te(sn(r),"onKeyDown",function(s){s.key==="Enter"&&r.onClick(s)}),te(sn(r),"onDataTransferFiles",function(){var s=Ui(rr().mark(function l(c,u){var d,f,p,m,g,v,y;return rr().wrap(function(_){for(;;)switch(_.prev=_.next){case 0:if(d=r.props,f=d.multiple,p=d.accept,m=d.directory,g=rt(c.items||[]),v=rt(c.files||[]),(v.length>0||g.some(function(S){return S.kind==="file"}))&&(u==null||u()),!m){_.next=11;break}return _.next=7,X_t(Array.prototype.slice.call(g),function(S){return LL(S,r.props.accept)});case 7:v=_.sent,r.uploadFiles(v),_.next=14;break;case 11:y=rt(v).filter(function(S){return LL(S,p)}),f===!1&&(y=v.slice(0,1)),r.uploadFiles(y);case 14:case"end":return _.stop()}},l)}));return function(l,c){return s.apply(this,arguments)}}()),te(sn(r),"onFilePaste",function(){var s=Ui(rr().mark(function l(c){var u,d;return rr().wrap(function(p){for(;;)switch(p.prev=p.next){case 0:if(u=r.props.pastable,u){p.next=3;break}return p.abrupt("return");case 3:if(c.type!=="paste"){p.next=6;break}return d=c.clipboardData,p.abrupt("return",r.onDataTransferFiles(d,function(){c.preventDefault()}));case 6:case"end":return p.stop()}},l)}));return function(l){return s.apply(this,arguments)}}()),te(sn(r),"onFileDragOver",function(s){s.preventDefault()}),te(sn(r),"onFileDrop",function(){var s=Ui(rr().mark(function l(c){var u;return rr().wrap(function(f){for(;;)switch(f.prev=f.next){case 0:if(c.preventDefault(),c.type!=="drop"){f.next=4;break}return u=c.dataTransfer,f.abrupt("return",r.onDataTransferFiles(u));case 4:case"end":return f.stop()}},l)}));return function(l){return s.apply(this,arguments)}}()),te(sn(r),"uploadFiles",function(s){var l=rt(s),c=l.map(function(u){return u.uid=$L(),r.processFile(u,l)});Promise.all(c).then(function(u){var d=r.props.onBatchStart;d==null||d(u.map(function(f){var p=f.origin,m=f.parsedFile;return{file:p,parsedFile:m}})),u.filter(function(f){return f.parsedFile!==null}).forEach(function(f){r.post(f)})})}),te(sn(r),"processFile",function(){var s=Ui(rr().mark(function l(c,u){var d,f,p,m,g,v,y,b,_;return rr().wrap(function(x){for(;;)switch(x.prev=x.next){case 0:if(d=r.props.beforeUpload,f=c,!d){x.next=14;break}return x.prev=3,x.next=6,d(c,u);case 6:f=x.sent,x.next=12;break;case 9:x.prev=9,x.t0=x.catch(3),f=!1;case 12:if(f!==!1){x.next=14;break}return x.abrupt("return",{origin:c,parsedFile:null,action:null,data:null});case 14:if(p=r.props.action,typeof p!="function"){x.next=21;break}return x.next=18,p(c);case 18:m=x.sent,x.next=22;break;case 21:m=p;case 22:if(g=r.props.data,typeof g!="function"){x.next=29;break}return x.next=26,g(c);case 26:v=x.sent,x.next=30;break;case 29:v=g;case 30:return y=(qt(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,x.abrupt("return",{origin:c,data:v,parsedFile:_,action:m});case 35:case"end":return x.stop()}},l,null,[[3,9]])}));return function(l,c){return s.apply(this,arguments)}}()),te(sn(r),"saveFileInput",function(s){r.fileInput=s}),r}return Xr(n,[{key:"componentDidMount",value:function(){this._isMounted=!0;var i=this.props.pastable;i&&document.addEventListener("paste",this.onFilePaste)}},{key:"componentWillUnmount",value:function(){this._isMounted=!1,this.abort(),document.removeEventListener("paste",this.onFilePaste)}},{key:"componentDidUpdate",value:function(i){var o=this.props.pastable;o&&!i.pastable?document.addEventListener("paste",this.onFilePaste):!o&&i.pastable&&document.removeEventListener("paste",this.onFilePaste)}},{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,p=u.name,m=u.headers,g=u.withCredentials,v=u.method,y=s.uid,b=f||Q_t,_={action:l,filename:p,data:a,file:c,headers:m,withCredentials:g,method:v||"post",onProgress:function(x){var E=o.props.onProgress;E==null||E(x,c)},onSuccess:function(x,E){var C=o.props.onSuccess;C==null||C(x,c,E),delete o.reqs[y]},onError:function(x,E){var C=o.props.onError;C==null||C(x,E,c),delete o.reqs[y]}};d(s),this.reqs[y]=b(_)}}},{key:"reset",value:function(){this.setState({uid:$L()})}},{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,p=i.style,m=i.styles,g=m===void 0?{}:m,v=i.multiple,y=i.accept,b=i.capture,_=i.children,S=i.directory,x=i.openFileDialogOnClick,E=i.onMouseEnter,C=i.onMouseLeave,w=i.hasControlInside,O=kt(i,eSt),T=Ce(te(te(te({},a,!0),"".concat(a,"-disabled"),u),s,s)),A=S?{directory:"directory",webkitdirectory:"webkitdirectory"}:{},I=u?{}:{onClick:x?this.onClick:function(){},onKeyDown:x?this.onKeyDown:function(){},onMouseEnter:E,onMouseLeave:C,onDrop:this.onFileDrop,onDragOver:this.onFileDragOver,tabIndex:w?void 0:"0"};return pe.createElement(o,Xe({},I,{className:T,role:w?void 0:"button",style:p}),pe.createElement("input",Xe({},Oi(O,{aria:!0,data:!0}),{id:d,name:f,disabled:u,type:"file",ref:this.saveFileInput,onClick:function(D){return D.stopPropagation()},key:this.state.uid,style:z({display:"none"},g.input),className:c.input,accept:y},A,{multiple:v,onChange:this.onChange},b!=null?{capture:b}:{})),_)}}]),n}(h.Component);function FL(){}var yj=function(e){Fs(n,e);var t=ll(n);function n(){var r;Qr(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)),te(sn(r),"uploader",void 0),te(sn(r),"saveUploader",function(s){r.uploader=s}),r}return Xr(n,[{key:"abort",value:function(i){this.uploader.abort(i)}},{key:"render",value:function(){return pe.createElement(tSt,Xe({},this.props,{ref:this.saveUploader}))}}]),n}(h.Component);te(yj,"defaultProps",{component:"span",prefixCls:"rc-upload",data:{},headers:{},name:"file",multipart:!1,onStart:FL,onError:FL,onSuccess:FL,multiple:!1,beforeUpload:null,customRequest:null,withCredentials:!1,openFileDialogOnClick:!0,hasControlInside:!1});const nSt=e=>{const{componentCls:t,iconCls:n}=e;return{[`${t}-wrapper`]:{[`${t}-drag`]:{position:"relative",width:"100%",height:"100%",textAlign:"center",background:e.colorFillAlter,border:`${Ie(e.lineWidth)} dashed ${e.colorBorder}`,borderRadius:e.borderRadiusLG,cursor:"pointer",transition:`border-color ${e.motionDurationSlow}`,[t]:{padding:e.padding},[`${t}-btn`]:{display:"table",width:"100%",height:"100%",outline:"none",borderRadius:e.borderRadiusLG,"&:focus-visible":{outline:`${Ie(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`}},[`${t}-drag-container`]:{display:"table-cell",verticalAlign:"middle"},[`
&:not(${t}-disabled):hover,
&-hover:not(${t}-disabled)
`]:{borderColor:e.colorPrimaryHover},[`p${t}-drag-icon`]:{marginBottom:e.margin,[n]:{color:e.colorPrimary,fontSize:e.uploadThumbnailSize}},[`p${t}-text`]:{margin:`0 0 ${Ie(e.marginXXS)}`,color:e.colorTextHeading,fontSize:e.fontSizeLG},[`p${t}-hint`]:{color:e.colorTextDescription,fontSize:e.fontSize},[`&${t}-disabled`]:{[`p${t}-drag-icon ${n},
p${t}-text,
p${t}-hint
`]:{color:e.colorTextDisabled}}}}}},rSt=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({},xd()),{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({},Hl),{padding:`0 ${Ie(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.colorIcon,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:'""'}}})}}},iSt=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`]:$q(e)},n,r]},oSt=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:`${Ie(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusLG,"&:hover":{background:"transparent"},[`${s}-thumbnail`]:Object.assign(Object.assign({},Hl),{width:r,height:r,lineHeight:Ie(o(r).add(e.paddingSM).equal()),textAlign:"center",flex:"none",[n]:{fontSize:e.fontSizeHeading2,color:e.colorPrimary},img:{display:"block",width:"100%",height:"100%",overflow:"hidden"}}),[`${s}-progress`]:{bottom:i,width:`calc(100% - ${Ie(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='${$1[0]}']`]:{fill:e.colorErrorBg},[`svg path[fill='${$1.primary}']`]:{fill:e.colorError}}},[`${s}-uploading`]:{borderStyle:"dashed",[`${s}-name`]:{marginBottom:i}}},[`${a}${a}-picture-circle ${s}`]:{[`&, &::before, ${s}-thumbnail`]:{borderRadius:"50%"}}}}},aSt=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({},xd()),{display:"block",[`${t}${t}-select`]:{width:l,height:l,textAlign:"center",verticalAlign:"top",backgroundColor:e.colorFillAlter,border:`${Ie(e.lineWidth)} dashed ${e.colorBorder}`,borderRadius:e.borderRadiusLG,cursor:"pointer",transition:`border-color ${e.motionDurationSlow}`,[`> ${t}`]:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",textAlign:"center"},[`&:not(${t}-disabled):hover`]:{borderColor:e.colorPrimary}},[`${a}${a}-picture-card, ${a}${a}-picture-circle`]:{display:"flex",flexWrap:"wrap","@supports not (gap: 1px)":{"& > *":{marginBlockEnd:e.marginXS,marginInlineEnd:e.marginXS}},"@supports (gap: 1px)":{gap:e.marginXS},[`${a}-item-container`]:{display:"inline-block",width:l,height:l,verticalAlign:"top"},"&::after":{display:"none"},"&::before":{display:"none"},[s]:{height:"100%",margin:0,"&::before":{position:"absolute",zIndex:1,width:`calc(100% - ${Ie(o(e.paddingXS).mul(2).equal())})`,height:`calc(100% - ${Ie(o(e.paddingXS).mul(2).equal())})`,backgroundColor:e.colorBgMask,opacity:0,transition:`all ${e.motionDurationSlow}`,content:'" "'}},[`${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 ${Ie(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% - ${Ie(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% - ${Ie(o(e.paddingXS).mul(2).equal())})`,paddingInlineStart:0}}}),[`${t}-wrapper${t}-picture-circle-wrapper`]:{[`${t}${t}-select`]:{borderRadius:"50%"}}}},sSt=e=>{const{componentCls:t}=e;return{[`${t}-rtl`]:{direction:"rtl"}}},lSt=e=>{const{componentCls:t,colorTextDisabled:n}=e;return{[`${t}-wrapper`]:Object.assign(Object.assign({},mr(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"}})}},cSt=e=>({actionsColor:e.colorIcon}),uSt=ir("Upload",e=>{const{fontSizeHeading3:t,fontHeight:n,lineWidth:r,controlHeightLG:i,calc:o}=e,a=Un(e,{uploadThumbnailSize:o(t).mul(2).equal(),uploadProgressOffset:o(o(n).div(2)).add(r).equal(),uploadPicCardSize:o(i).mul(2.55).equal()});return[lSt(a),nSt(a),oSt(a),aSt(a),rSt(a),iSt(a),sSt(a),r2(a)]},cSt);function PR(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 DR(e,t){const n=rt(t),r=n.findIndex(({uid:i})=>i===e.uid);return r===-1?n.push(e):n[r]=e,n}function BL(e,t){const n=e.uid!==void 0?"uid":"name";return t.filter(r=>r[n]===e[n])[0]}function dSt(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 fSt=(e="")=>{const t=e.split("/"),r=t[t.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(r)||[""])[0]},l2e=e=>e.indexOf("image/")===0,pSt=e=>{if(e.type&&!e.thumbUrl)return l2e(e.type);const t=e.thumbUrl||e.url||"",n=fSt(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)},$h=200;function hSt(e){return new Promise(t=>{if(!e.type||!l2e(e.type)){t("");return}const n=document.createElement("canvas");n.width=$h,n.height=$h,n.style.cssText=`position: fixed; left: 0; top: 0; width: ${$h}px; height: ${$h}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=$h,l=$h,c=0,u=0;o>a?(l=a*($h/o),u=-(l-s)/2):(s=o*($h/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 mSt=h.forwardRef(({prefixCls:e,className:t,style:n,locale:r,listType:i,file:o,items:a,progress:s,iconRender:l,actionIconRender:c,itemRender:u,isImgUrl:d,showPreviewIcon:f,showRemoveIcon:p,showDownloadIcon:m,previewIcon:g,removeIcon:v,downloadIcon:y,extra:b,onPreview:_,onDownload:S,onClose:x},E)=>{var C,w;const{status:O}=o,[T,A]=h.useState(O);h.useEffect(()=>{O!=="removed"&&A(O)},[O]);const[I,N]=h.useState(!1);h.useEffect(()=>{const ne=setTimeout(()=>{N(!0)},300);return()=>{clearTimeout(ne)}},[]);const D=l(o);let M=h.createElement("div",{className:`${e}-icon`},D);if(i==="picture"||i==="picture-card"||i==="picture-circle")if(T==="uploading"||!o.thumbUrl&&!o.url){const ne=Ce(`${e}-list-item-thumbnail`,{[`${e}-list-item-file`]:T!=="uploading"});M=h.createElement("div",{className:ne},D)}else{const ne=d!=null&&d(o)?h.createElement("img",{src:o.thumbUrl||o.url,alt:o.name,className:`${e}-list-item-image`,crossOrigin:o.crossOrigin}):D,he=Ce(`${e}-list-item-thumbnail`,{[`${e}-list-item-file`]:d&&!d(o)});M=h.createElement("a",{className:he,onClick:me=>_(o,me),href:o.url||o.thumbUrl,target:"_blank",rel:"noopener noreferrer"},ne)}const k=Ce(`${e}-list-item`,`${e}-list-item-${T}`),P=typeof o.linkProps=="string"?JSON.parse(o.linkProps):o.linkProps,B=(typeof p=="function"?p(o):p)?c((typeof v=="function"?v(o):v)||h.createElement(x2,null),()=>x(o),e,r.removeFile,!0):null,G=(typeof m=="function"?m(o):m)&&T==="done"?c((typeof y=="function"?y(o):y)||h.createElement(hgt,null),()=>S(o),e,r.downloadFile):null,L=i!=="picture-card"&&i!=="picture-circle"&&h.createElement("span",{key:"download-delete",className:Ce(`${e}-list-item-actions`,{picture:i==="picture"})},G,B),W=typeof b=="function"?b(o):b,j=W&&h.createElement("span",{className:`${e}-list-item-extra`},W),H=Ce(`${e}-list-item-name`),X=o.url?h.createElement("a",Object.assign({key:"view",target:"_blank",rel:"noopener noreferrer",className:H,title:o.name},P,{href:o.url,onClick:ne=>_(o,ne)}),o.name,j):h.createElement("span",{key:"view",className:H,onClick:ne=>_(o,ne),title:o.name},o.name,j),Q=(typeof f=="function"?f(o):f)&&(o.url||o.thumbUrl)?h.createElement("a",{href:o.url||o.thumbUrl,target:"_blank",rel:"noopener noreferrer",onClick:ne=>_(o,ne),title:r.previewFile},typeof g=="function"?g(o):g||h.createElement(wS,null)):null,ue=(i==="picture-card"||i==="picture-circle")&&T!=="uploading"&&h.createElement("span",{className:`${e}-list-item-actions`},Q,T==="done"&&G,B),{getPrefixCls:ee}=h.useContext(cn),K=ee(),se=h.createElement("div",{className:k},M,X,L,ue,I&&h.createElement(ia,{motionName:`${K}-fade`,visible:T==="uploading",motionDeadline:2e3},({className:ne})=>{const he="percent"in o?h.createElement(iTe,Object.assign({type:"line",percent:o.percent,"aria-label":o["aria-label"],"aria-labelledby":o["aria-labelledby"]},s)):null;return h.createElement("div",{className:Ce(`${e}-list-item-progress`,ne)},he)})),le=o.response&&typeof o.response=="string"?o.response:((C=o.error)===null||C===void 0?void 0:C.statusText)||((w=o.error)===null||w===void 0?void 0:w.message)||r.uploadError,oe=T==="error"?h.createElement(Na,{title:le,getPopupContainer:ne=>ne.parentNode},se):se;return h.createElement("div",{className:Ce(`${e}-list-item-container`,t),style:n,ref:E},u?u(oe,o,a,{download:S.bind(null,o),preview:_.bind(null,o),remove:x.bind(null,o)}):oe)}),gSt=(e,t)=>{const{listType:n="text",previewFile:r=hSt,onPreview:i,onDownload:o,onRemove:a,locale:s,iconRender:l,isImageUrl:c=pSt,prefixCls:u,items:d=[],showPreviewIcon:f=!0,showRemoveIcon:p=!0,showDownloadIcon:m=!1,removeIcon:g,previewIcon:v,downloadIcon:y,extra:b,progress:_={size:[-1,2],showInfo:!1},appendAction:S,appendActionVisible:x=!0,itemRender:E,disabled:C}=e,w=iY(),[O,T]=h.useState(!1),A=["picture-card","picture-circle"].includes(n);h.useEffect(()=>{n.startsWith("picture")&&(d||[]).forEach(H=>{!(H.originFileObj instanceof File||H.originFileObj instanceof Blob)||H.thumbUrl!==void 0||(H.thumbUrl="",r==null||r(H.originFileObj).then(X=>{H.thumbUrl=X||"",w()}))})},[n,d,r]),h.useEffect(()=>{T(!0)},[]);const I=(H,X)=>{if(i)return X==null||X.preventDefault(),i(H)},N=H=>{typeof o=="function"?o(H):H.url&&window.open(H.url)},D=H=>{a==null||a(H)},M=H=>{if(l)return l(H,n);const X=H.status==="uploading";if(n.startsWith("picture")){const Q=n==="picture"?h.createElement(Td,null):s.uploading,ue=c!=null&&c(H)?h.createElement(v0t,null):h.createElement(xgt,null);return X?Q:ue}return X?h.createElement(Td,null):h.createElement(h0t,null)},k=(H,X,Q,ue,ee)=>{const K={type:"text",size:"small",title:ue,onClick:se=>{var le,oe;X(),h.isValidElement(H)&&((oe=(le=H.props).onClick)===null||oe===void 0||oe.call(le,se))},className:`${Q}-list-item-action`,disabled:ee?C:!1};return h.isValidElement(H)?h.createElement(Dn,Object.assign({},K,{icon:wo(H,Object.assign(Object.assign({},H.props),{onClick:()=>{}}))})):h.createElement(Dn,Object.assign({},K),h.createElement("span",null,H))};h.useImperativeHandle(t,()=>({handlePreview:I,handleDownload:N}));const{getPrefixCls:P}=h.useContext(cn),B=P("upload",u),G=P(),L=Ce(`${B}-list`,`${B}-list-${n}`),W=h.useMemo(()=>ur(f_(G),["onAppearEnd","onEnterEnd","onLeaveEnd"]),[G]),j=Object.assign(Object.assign({},A?{}:W),{motionDeadline:2e3,motionName:`${B}-${A?"animate-inline":"animate"}`,keys:rt(d.map(H=>({key:H.uid,file:H}))),motionAppear:O});return h.createElement("div",{className:L},h.createElement(gP,Object.assign({},j,{component:!1}),({key:H,file:X,className:Q,style:ue})=>h.createElement(mSt,{key:H,locale:s,prefixCls:B,className:Q,style:ue,file:X,items:d,progress:_,listType:n,isImgUrl:c,showPreviewIcon:f,showRemoveIcon:p,showDownloadIcon:m,removeIcon:g,previewIcon:v,downloadIcon:y,extra:b,iconRender:M,actionIconRender:k,itemRender:E,onPreview:I,onDownload:N,onClose:D})),S&&h.createElement(ia,Object.assign({},j,{visible:x,forceRender:!0}),({className:H,style:X})=>wo(S,Q=>({className:Ce(Q.className,H),style:Object.assign(Object.assign(Object.assign({},X),{pointerEvents:H?"none":void 0}),Q.style)}))))},vSt=h.forwardRef(gSt);var bSt=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 IC=`__LIST_IGNORE_${Date.now()}__`,ySt=(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:p,iconRender:m,isImageUrl:g,progress:v,prefixCls:y,className:b,type:_="select",children:S,style:x,itemRender:E,maxCount:C,data:w={},multiple:O=!1,hasControlInside:T=!0,action:A="",accept:I="",supportServerRender:N=!0,rootClassName:D}=e,M=h.useContext(Yo),k=f??M,[P,B]=Pn(r||[],{value:n,postState:ie=>ie??[]}),[G,L]=h.useState("drop"),W=h.useRef(null),j=h.useRef(null);h.useMemo(()=>{const ie=Date.now();(n||[]).forEach((Be,Fe)=>{!Be.uid&&!Object.isFrozen(Be)&&(Be.uid=`__AUTO__${ie}_${Fe}__`)})},[n]);const H=(ie,Be,Fe)=>{let Pe=rt(Be),Ke=!1;C===1?Pe=Pe.slice(-1):C&&(Ke=Pe.length>C,Pe=Pe.slice(0,C)),Fl.flushSync(()=>{B(Pe)});const tt={file:ie,fileList:Pe};Fe&&(tt.event=Fe),(!Ke||ie.status==="removed"||Pe.some(Ge=>Ge.uid===ie.uid))&&Fl.flushSync(()=>{c==null||c(tt)})},X=(ie,Be)=>bSt(void 0,void 0,void 0,function*(){const{beforeUpload:Fe,transformFile:Pe}=e;let Ke=ie;if(Fe){const tt=yield Fe(ie,Be);if(tt===!1)return!1;if(delete ie[IC],tt===IC)return Object.defineProperty(ie,IC,{value:!0,configurable:!0}),!1;typeof tt=="object"&&tt&&(Ke=tt)}return Pe&&(Ke=yield Pe(Ke)),Ke}),Q=ie=>{const Be=ie.filter(Ke=>!Ke.file[IC]);if(!Be.length)return;const Fe=Be.map(Ke=>PR(Ke.file));let Pe=rt(P);Fe.forEach(Ke=>{Pe=DR(Ke,Pe)}),Fe.forEach((Ke,tt)=>{let Ge=Ke;if(Be[tt].parsedFile)Ke.status="uploading";else{const{originFileObj:Nt}=Ke;let lt;try{lt=new File([Nt],Nt.name,{type:Nt.type})}catch{lt=new Blob([Nt],{type:Nt.type}),lt.name=Nt.name,lt.lastModifiedDate=new Date,lt.lastModified=new Date().getTime()}lt.uid=Ke.uid,Ge=lt}H(Ge,Pe)})},ue=(ie,Be,Fe)=>{try{typeof ie=="string"&&(ie=JSON.parse(ie))}catch{}if(!BL(Be,P))return;const Pe=PR(Be);Pe.status="done",Pe.percent=100,Pe.response=ie,Pe.xhr=Fe;const Ke=DR(Pe,P);H(Pe,Ke)},ee=(ie,Be)=>{if(!BL(Be,P))return;const Fe=PR(Be);Fe.status="uploading",Fe.percent=ie.percent;const Pe=DR(Fe,P);H(Fe,Pe,ie)},K=(ie,Be,Fe)=>{if(!BL(Fe,P))return;const Pe=PR(Fe);Pe.error=ie,Pe.response=Be,Pe.status="error";const Ke=DR(Pe,P);H(Pe,Ke)},se=ie=>{let Be;Promise.resolve(typeof i=="function"?i(ie):i).then(Fe=>{var Pe;if(Fe===!1)return;const Ke=dSt(ie,P);Ke&&(Be=Object.assign(Object.assign({},ie),{status:"removed"}),P==null||P.forEach(tt=>{const Ge=Be.uid!==void 0?"uid":"name";tt[Ge]===Be[Ge]&&!Object.isFrozen(tt)&&(tt.status="removed")}),(Pe=W.current)===null||Pe===void 0||Pe.abort(Be),H(Be,Ke))})},le=ie=>{L(ie.type),ie.type==="drop"&&(u==null||u(ie))};h.useImperativeHandle(t,()=>({onBatchStart:Q,onSuccess:ue,onProgress:ee,onError:K,fileList:P,upload:W.current,nativeElement:j.current}));const{getPrefixCls:oe,direction:ne,upload:he}=h.useContext(cn),me=oe("upload",y),ce=Object.assign(Object.assign({onBatchStart:Q,onError:K,onProgress:ee,onSuccess:ue},e),{data:w,multiple:O,action:A,accept:I,supportServerRender:N,prefixCls:me,disabled:k,beforeUpload:X,onChange:void 0,hasControlInside:T});delete ce.className,delete ce.style,(!S||k)&&delete ce.id;const re=`${me}-wrapper`,[ve,be,xe]=uSt(me,re),[we]=Ma("Upload",gu.Upload),{showRemoveIcon:de,showPreviewIcon:Ee,showDownloadIcon:Ne,removeIcon:Te,previewIcon:Ve,downloadIcon:q,extra:U}=typeof o=="boolean"?{}:o,Y=typeof de>"u"?!k:de,ae=(ie,Be)=>o?h.createElement(vSt,{prefixCls:me,listType:a,items:P,previewFile:d,onPreview:s,onDownload:l,onRemove:se,showRemoveIcon:Y,showPreviewIcon:Ee,showDownloadIcon:Ne,removeIcon:Te,previewIcon:Ve,downloadIcon:q,iconRender:m,extra:U,locale:Object.assign(Object.assign({},we),p),isImageUrl:g,progress:v,appendAction:ie,appendActionVisible:Be,itemRender:E,disabled:k}):ie,ye=Ce(re,b,D,be,xe,he==null?void 0:he.className,{[`${me}-rtl`]:ne==="rtl",[`${me}-picture-card-wrapper`]:a==="picture-card",[`${me}-picture-circle-wrapper`]:a==="picture-circle"}),fe=Object.assign(Object.assign({},he==null?void 0:he.style),x);if(_==="drag"){const ie=Ce(be,me,`${me}-drag`,{[`${me}-drag-uploading`]:P.some(Be=>Be.status==="uploading"),[`${me}-drag-hover`]:G==="dragover",[`${me}-disabled`]:k,[`${me}-rtl`]:ne==="rtl"});return ve(h.createElement("span",{className:ye,ref:j},h.createElement("div",{className:ie,style:fe,onDrop:le,onDragOver:le,onDragLeave:le},h.createElement(yj,Object.assign({},ce,{ref:W,className:`${me}-btn`}),h.createElement("div",{className:`${me}-drag-container`},S))),ae()))}const Ae=Ce(me,`${me}-select`,{[`${me}-disabled`]:k,[`${me}-hidden`]:!S}),We=h.createElement("div",{className:Ae,style:fe},h.createElement(yj,Object.assign({},ce,{ref:W})));return ve(a==="picture-card"||a==="picture-circle"?h.createElement("span",{className:ye,ref:j},ae(We,!!S)):h.createElement("span",{className:ye,ref:j},We,ae()))},c2e=h.forwardRef(ySt);var _St=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);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 SSt=h.forwardRef((e,t)=>{var{style:n,height:r,hasControlInside:i=!1}=e,o=_St(e,["style","height","hasControlInside"]);return h.createElement(c2e,Object.assign({ref:t,hasControlInside:i},o,{type:"drag",style:Object.assign(Object.assign({},n),{height:r})}))}),gD=c2e;gD.Dragger=SSt;gD.LIST_IGNORE=IC;let Wt;const ESt=()=>{const e=PP.useApp();return Wt=e.message,e.modal,e.notification,null};function sK(){console.debug("useUserInfo");const[e,t]=h.useState(""),{myDevice:n,setMyDevice:r}=mje(E=>({myDevice:E.myDevice,setMyDevice:E.setMyDevice})),{userInfo:i,deviceUid:o,setUserInfo:a,setDeviceUid:s}=Ra(E=>({userInfo:E.userInfo,deviceUid:E.deviceUid,setUserInfo:E.setUserInfo,setDeviceUid:E.setDeviceUid})),{agentInfo:l}=hv(E=>({agentInfo:E.agentInfo})),c=h.useRef(!1),[u,d]=h.useState(!1);h.useEffect(()=>{d(!1),i.userOrganizationRoles&&i.userOrganizationRoles.forEach(E=>{E.roles.forEach(C=>{C.name===Q7e&&d(!0)})})},[i.userOrganizationRoles]);const[f,p]=h.useState(!1);h.useEffect(()=>{p(!1),i.userOrganizationRoles&&i.userOrganizationRoles.forEach(E=>{E.roles.forEach(C=>{C.name===X7e&&p(!0)})})},[i.userOrganizationRoles]);const[m,g]=h.useState(!1);h.useEffect(()=>{g(!1),i.userOrganizationRoles&&i.userOrganizationRoles.forEach(E=>{E.roles.forEach(C=>{C.name===Z7e&&g(!0)})})},[i.userOrganizationRoles]);const[v,y]=h.useState(!1);h.useEffect(()=>{y(!1),i.userOrganizationRoles&&i.userOrganizationRoles.forEach(E=>{E.roles.forEach(C=>{C.name===J7e&&y(!0)})})},[i.userOrganizationRoles]);const b="",_=async()=>{const E=await xbe();console.log("ipAddress",e,E),E.length>0&&(t(E[0]),n.ip=E[0],r(n))},S=async()=>{c.current||(c.current=!0,c.current=!1)};return h.useEffect(()=>{v&&S()},[v]),h.useEffect(()=>{console.log("useUserInfo useEffect"),(o===void 0||o==="")&&s(Y5()),_()},[]),{userInfo:i,setUserInfo:a,agentInfo:l,handleUpdateAgentStatus:async E=>{const C={...l,status:E};Wt.loading("正在更新状态");const w=await hje(C);console.log("updateAgentStatus:",E,w.data),w.data.code===200?(Wt.destroy(),Wt.success("状态更新成功")):(Wt.destroy(),Wt.error("状态更新失败"))},avatar:b,hasRoleAgent:v,hasRoleSuper:u,hasRoleAdmin:f,hasRoleMember:m}}const cs=h.createContext({}),CSt=({children:e})=>{const[t,n]=h.useState(!1),[r,i]=h.useState(!1),o=HT(O=>O.accessToken),a=tFe(O=>O.settings),{userInfo:s,setUserInfo:l,agentInfo:c,handleUpdateAgentStatus:u,hasRoleAgent:d,hasRoleSuper:f,hasRoleAdmin:p,hasRoleMember:m}=sK(),g=h.useMemo(()=>!!o&&o.trim().length>0,[o]),{themeMode:v,setThemeMode:y,isDarkMode:b}=PW(),[_,S]=h.useState(oR),x=O=>{let T;O==="en"?T=ite:O==="zh-cn"?T=oR:O==="zh-tw"?T=QFe:T=oR,console.log("changeLocale localeValue:",T),S(T),localStorage.setItem(Fee,T.locale)},[E,C]=h.useState(hy),w=O=>{C(O),localStorage.setItem(Bee,O)};return h.useEffect(()=>{const O=localStorage.getItem(Fee);S(O==="en"?ite:oR);const T=localStorage.getItem(Bee);C(T===hy?hy:T===P1?P1:e4)},[]),F.jsx(cs.Provider,{value:{isCustomServer:t,setIsCustomServer:n,isLoggedIn:g,settings:a,isDarkMode:b,themeMode:v,setThemeMode:y,locale:_,changeLocale:x,mode:E,changeMode:w,isPingLoading:r,setPingLoading:i,userInfo:s,setUserInfo:l,agentInfo:c,handleUpdateAgentStatus:u,hasRoleAgent:d,hasRoleSuper:f,hasRoleAdmin:p,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 xSt(e,t){return typeof e=="function"?e(t):e}function wSt(e){return typeof e=="number"&&e>=0&&e!==1/0}function TSt(e,t){return Math.max(e+(t||0)-Date.now(),0)}function _j(e,t){return typeof e=="function"?e(t):e}function OSt(e,t){return typeof e=="function"?e(t):e}function wae(e,t){const{type:n="all",exact:r,fetchStatus:i,predicate:o,queryKey:a,stale:s}=e;if(a){if(r){if(t.queryHash!==lK(a,t.options))return!1}else if(!zw(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 Tae(e,t){const{exact:n,status:r,predicate:i,mutationKey:o}=e;if(o){if(!t.options.mutationKey)return!1;if(n){if(Uw(t.options.mutationKey)!==Uw(o))return!1}else if(!zw(t.options.mutationKey,o))return!1}return!(r&&t.state.status!==r||i&&!i(t))}function lK(e,t){return((t==null?void 0:t.queryKeyHashFn)||Uw)(e)}function Uw(e){return JSON.stringify(e,(t,n)=>Sj(n)?Object.keys(n).sort().reduce((r,i)=>(r[i]=n[i],r),{}):n)}function zw(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(n=>zw(e[n],t[n])):!1}function u2e(e,t){if(e===t)return e;const n=Oae(e)&&Oae(t);if(n||Sj(e)&&Sj(t)){const r=n?e:Object.keys(e),i=r.length,o=n?t:Object.keys(t),a=o.length,s=n?[]:{},l=new Set(r);let c=0;for(let u=0;u<a;u++){const d=n?u:o[u];(!n&&l.has(d)||n)&&e[d]===void 0&&t[d]===void 0?(s[d]=void 0,c++):(s[d]=u2e(e[d],t[d]),s[d]===e[d]&&e[d]!==void 0&&c++)}return i===a&&c===i?e:s}return t}function Oae(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Sj(e){if(!Rae(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!Rae(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function Rae(e){return Object.prototype.toString.call(e)==="[object Object]"}function RSt(e){return new Promise(t=>{setTimeout(t,e)})}function ASt(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?u2e(e,t):t}function ISt(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function NSt(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var cK=Symbol();function d2e(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===cK?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}var K0,_m,$y,Yge,MSt=(Yge=class extends vD{constructor(){super();$n(this,K0);$n(this,_m);$n(this,$y);pn(this,$y,t=>{if(!bD&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){je(this,_m)||this.setEventListener(je(this,$y))}onUnsubscribe(){var t;this.hasListeners()||((t=je(this,_m))==null||t.call(this),pn(this,_m,void 0))}setEventListener(t){var n;pn(this,$y,t),(n=je(this,_m))==null||n.call(this),pn(this,_m,t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(t){je(this,K0)!==t&&(pn(this,K0,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof je(this,K0)=="boolean"?je(this,K0):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},K0=new WeakMap,_m=new WeakMap,$y=new WeakMap,Yge),f2e=new MSt,Fy,Sm,By,Kge,kSt=(Kge=class extends vD{constructor(){super();$n(this,Fy,!0);$n(this,Sm);$n(this,By);pn(this,By,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(){je(this,Sm)||this.setEventListener(je(this,By))}onUnsubscribe(){var t;this.hasListeners()||((t=je(this,Sm))==null||t.call(this),pn(this,Sm,void 0))}setEventListener(t){var n;pn(this,By,t),(n=je(this,Sm))==null||n.call(this),pn(this,Sm,t(this.setOnline.bind(this)))}setOnline(t){je(this,Fy)!==t&&(pn(this,Fy,t),this.listeners.forEach(r=>{r(t)}))}isOnline(){return je(this,Fy)}},Fy=new WeakMap,Sm=new WeakMap,By=new WeakMap,Kge),nM=new kSt;function PSt(){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 p2e(e){return(e??"online")==="online"?nM.isOnline():!0}var h2e=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function HL(e){return e instanceof h2e}function m2e(e){let t=!1,n=0,r=!1,i;const o=PSt(),a=g=>{var v;r||(f(new h2e(g)),(v=e.abort)==null||v.call(e))},s=()=>{t=!0},l=()=>{t=!1},c=()=>f2e.isFocused()&&(e.networkMode==="always"||nM.isOnline())&&e.canRun(),u=()=>p2e(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))},p=()=>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 E;if(r)return;const b=e.retry??(bD?0:3),_=e.retryDelay??DSt,S=typeof _=="function"?_(n,y):_,x=b===!0||typeof b=="number"&&n<b||typeof b=="function"&&b(n,y);if(t||!x){f(y);return}n++,(E=e.onFail)==null||E.call(e,n,y),RSt(S).then(()=>c()?void 0:p()).then(()=>{t?f(y):m()})})};return{promise:o,cancel:a,continue:()=>(i==null||i(),o),cancelRetry:s,continueRetry:l,canStart:u,start:()=>(u()?m():p().then(m),o)}}var LSt=e=>setTimeout(e,0);function $St(){let e=[],t=0,n=s=>{s()},r=s=>{s()},i=LSt;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 Qs=$St(),Q0,Qge,g2e=(Qge=class{constructor(){$n(this,Q0)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),wSt(this.gcTime)&&pn(this,Q0,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(bD?1/0:5*60*1e3))}clearGcTimeout(){je(this,Q0)&&(clearTimeout(je(this,Q0)),pn(this,Q0,void 0))}},Q0=new WeakMap,Qge),Hy,X0,Wc,Z0,bs,MT,J0,qu,yp,Xge,FSt=(Xge=class extends g2e{constructor(t){super();$n(this,qu);$n(this,Hy);$n(this,X0);$n(this,Wc);$n(this,Z0);$n(this,bs);$n(this,MT);$n(this,J0);pn(this,J0,!1),pn(this,MT,t.defaultOptions),this.setOptions(t.options),this.observers=[],pn(this,Z0,t.client),pn(this,Wc,je(this,Z0).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,pn(this,Hy,HSt(this.options)),this.state=t.state??je(this,Hy),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=je(this,bs))==null?void 0:t.promise}setOptions(t){this.options={...je(this,MT),...t},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&je(this,Wc).remove(this)}setData(t,n){const r=ASt(this.state.data,t,this.options);return Rn(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){Rn(this,qu,yp).call(this,{type:"setState",state:t,setStateOptions:n})}cancel(t){var r,i;const n=(r=je(this,bs))==null?void 0:r.promise;return(i=je(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(je(this,Hy))}isActive(){return this.observers.some(t=>OSt(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===cK||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(t=>_j(t.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(t=0){return this.state.data===void 0?!0:t==="static"?!1:this.state.isInvalidated?!0:!TSt(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=this.observers.find(r=>r.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=je(this,bs))==null||n.continue()}onOnline(){var n;const t=this.observers.find(r=>r.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=je(this,bs))==null||n.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),je(this,Wc).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(je(this,bs)&&(je(this,J0)?je(this,bs).cancel({revert:!0}):je(this,bs).cancelRetry()),this.scheduleGc()),je(this,Wc).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||Rn(this,qu,yp).call(this,{type:"invalidate"})}fetch(t,n){var c,u,d;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(je(this,bs))return je(this,bs).continueRetry(),je(this,bs).promise}if(t&&this.setOptions(t),!this.options.queryFn){const f=this.observers.find(p=>p.options.queryFn);f&&this.setOptions(f.options)}const r=new AbortController,i=f=>{Object.defineProperty(f,"signal",{enumerable:!0,get:()=>(pn(this,J0,!0),r.signal)})},o=()=>{const f=d2e(this.options,n),m=(()=>{const g={client:je(this,Z0),queryKey:this.queryKey,meta:this.meta};return i(g),g})();return pn(this,J0,!1),this.options.persister?this.options.persister(f,m,this):f(m)},s=(()=>{const f={fetchOptions:n,options:this.options,queryKey:this.queryKey,client:je(this,Z0),state:this.state,fetchFn:o};return i(f),f})();(c=this.options.behavior)==null||c.onFetch(s,this),pn(this,X0,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((u=s.fetchOptions)==null?void 0:u.meta))&&Rn(this,qu,yp).call(this,{type:"fetch",meta:(d=s.fetchOptions)==null?void 0:d.meta});const l=f=>{var p,m,g,v;HL(f)&&f.silent||Rn(this,qu,yp).call(this,{type:"error",error:f}),HL(f)||((m=(p=je(this,Wc).config).onError)==null||m.call(p,f,this),(v=(g=je(this,Wc).config).onSettled)==null||v.call(g,this.state.data,f,this)),this.scheduleGc()};return pn(this,bs,m2e({initialPromise:n==null?void 0:n.initialPromise,fn:s.fetchFn,abort:r.abort.bind(r),onSuccess:f=>{var p,m,g,v;if(f===void 0){l(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(f)}catch(y){l(y);return}(m=(p=je(this,Wc).config).onSuccess)==null||m.call(p,f,this),(v=(g=je(this,Wc).config).onSettled)==null||v.call(g,f,this.state.error,this),this.scheduleGc()},onError:l,onFail:(f,p)=>{Rn(this,qu,yp).call(this,{type:"failed",failureCount:f,error:p})},onPause:()=>{Rn(this,qu,yp).call(this,{type:"pause"})},onContinue:()=>{Rn(this,qu,yp).call(this,{type:"continue"})},retry:s.options.retry,retryDelay:s.options.retryDelay,networkMode:s.options.networkMode,canRun:()=>!0})),je(this,bs).start()}},Hy=new WeakMap,X0=new WeakMap,Wc=new WeakMap,Z0=new WeakMap,bs=new WeakMap,MT=new WeakMap,J0=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,...BSt(r.data,this.options),fetchMeta:t.meta??null};case"success":return pn(this,X0,void 0),{...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 HL(i)&&i.revert&&je(this,X0)?{...je(this,X0),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),Qs.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),je(this,Wc).notify({query:this,type:"updated",action:t})})},Xge);function BSt(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:p2e(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function HSt(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 uf,Zge,jSt=(Zge=class extends vD{constructor(t={}){super();$n(this,uf);this.config=t,pn(this,uf,new Map)}build(t,n,r){const i=n.queryKey,o=n.queryHash??lK(i,n);let a=this.get(o);return a||(a=new FSt({client:t,queryKey:i,queryHash:o,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(i)}),this.add(a)),a}add(t){je(this,uf).has(t.queryHash)||(je(this,uf).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=je(this,uf).get(t.queryHash);n&&(t.destroy(),n===t&&je(this,uf).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){Qs.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return je(this,uf).get(t)}getAll(){return[...je(this,uf).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(r=>wae(n,r))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(r=>wae(t,r)):n}notify(t){Qs.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){Qs.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){Qs.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},uf=new WeakMap,Zge),df,zs,e1,ff,qh,Jge,USt=(Jge=class extends g2e{constructor(t){super();$n(this,ff);$n(this,df);$n(this,zs);$n(this,e1);this.mutationId=t.mutationId,pn(this,zs,t.mutationCache),pn(this,df,[]),this.state=t.state||zSt(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){je(this,df).includes(t)||(je(this,df).push(t),this.clearGcTimeout(),je(this,zs).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){pn(this,df,je(this,df).filter(n=>n!==t)),this.scheduleGc(),je(this,zs).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){je(this,df).length||(this.state.status==="pending"?this.scheduleGc():je(this,zs).remove(this))}continue(){var t;return((t=je(this,e1))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var o,a,s,l,c,u,d,f,p,m,g,v,y,b,_,S,x,E,C,w;const n=()=>{Rn(this,ff,qh).call(this,{type:"continue"})};pn(this,e1,m2e({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(O,T)=>{Rn(this,ff,qh).call(this,{type:"failed",failureCount:O,error:T})},onPause:()=>{Rn(this,ff,qh).call(this,{type:"pause"})},onContinue:n,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>je(this,zs).canRun(this)}));const r=this.state.status==="pending",i=!je(this,e1).canStart();try{if(r)n();else{Rn(this,ff,qh).call(this,{type:"pending",variables:t,isPaused:i}),await((a=(o=je(this,zs).config).onMutate)==null?void 0:a.call(o,t,this));const T=await((l=(s=this.options).onMutate)==null?void 0:l.call(s,t));T!==this.state.context&&Rn(this,ff,qh).call(this,{type:"pending",context:T,variables:t,isPaused:i})}const O=await je(this,e1).start();return await((u=(c=je(this,zs).config).onSuccess)==null?void 0:u.call(c,O,t,this.state.context,this)),await((f=(d=this.options).onSuccess)==null?void 0:f.call(d,O,t,this.state.context)),await((m=(p=je(this,zs).config).onSettled)==null?void 0:m.call(p,O,null,this.state.variables,this.state.context,this)),await((v=(g=this.options).onSettled)==null?void 0:v.call(g,O,null,t,this.state.context)),Rn(this,ff,qh).call(this,{type:"success",data:O}),O}catch(O){try{throw await((b=(y=je(this,zs).config).onError)==null?void 0:b.call(y,O,t,this.state.context,this)),await((S=(_=this.options).onError)==null?void 0:S.call(_,O,t,this.state.context)),await((E=(x=je(this,zs).config).onSettled)==null?void 0:E.call(x,void 0,O,this.state.variables,this.state.context,this)),await((w=(C=this.options).onSettled)==null?void 0:w.call(C,void 0,O,t,this.state.context)),O}finally{Rn(this,ff,qh).call(this,{type:"error",error:O})}}finally{je(this,zs).runNext(this)}}},df=new WeakMap,zs=new WeakMap,e1=new WeakMap,ff=new WeakSet,qh=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),Qs.batch(()=>{je(this,df).forEach(r=>{r.onMutationUpdate(t)}),je(this,zs).notify({mutation:this,type:"updated",action:t})})},Jge);function zSt(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Lp,Yu,kT,e0e,VSt=(e0e=class extends vD{constructor(t={}){super();$n(this,Lp);$n(this,Yu);$n(this,kT);this.config=t,pn(this,Lp,new Set),pn(this,Yu,new Map),pn(this,kT,0)}build(t,n,r){const i=new USt({mutationCache:this,mutationId:++Xg(this,kT)._,options:t.defaultMutationOptions(n),state:r});return this.add(i),i}add(t){je(this,Lp).add(t);const n=LR(t);if(typeof n=="string"){const r=je(this,Yu).get(n);r?r.push(t):je(this,Yu).set(n,[t])}this.notify({type:"added",mutation:t})}remove(t){if(je(this,Lp).delete(t)){const n=LR(t);if(typeof n=="string"){const r=je(this,Yu).get(n);if(r)if(r.length>1){const i=r.indexOf(t);i!==-1&&r.splice(i,1)}else r[0]===t&&je(this,Yu).delete(n)}}this.notify({type:"removed",mutation:t})}canRun(t){const n=LR(t);if(typeof n=="string"){const r=je(this,Yu).get(n),i=r==null?void 0:r.find(o=>o.state.status==="pending");return!i||i===t}else return!0}runNext(t){var r;const n=LR(t);if(typeof n=="string"){const i=(r=je(this,Yu).get(n))==null?void 0:r.find(o=>o!==t&&o.state.isPaused);return(i==null?void 0:i.continue())??Promise.resolve()}else return Promise.resolve()}clear(){Qs.batch(()=>{je(this,Lp).forEach(t=>{this.notify({type:"removed",mutation:t})}),je(this,Lp).clear(),je(this,Yu).clear()})}getAll(){return Array.from(je(this,Lp))}find(t){const n={exact:!0,...t};return this.getAll().find(r=>Tae(n,r))}findAll(t={}){return this.getAll().filter(n=>Tae(t,n))}notify(t){Qs.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return Qs.batch(()=>Promise.all(t.map(n=>n.continue().catch(Wu))))}},Lp=new WeakMap,Yu=new WeakMap,kT=new WeakMap,e0e);function LR(e){var t;return(t=e.options.scope)==null?void 0:t.id}function Aae(e){return{onFetch:(t,n)=>{var u,d,f,p,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=((p=t.state.data)==null?void 0:p.pages)||[],a=((m=t.state.data)==null?void 0:m.pageParams)||[];let s={pages:[],pageParams:[]},l=0;const c=async()=>{let g=!1;const v=_=>{Object.defineProperty(_,"signal",{enumerable:!0,get:()=>(t.signal.aborted?g=!0:t.signal.addEventListener("abort",()=>{g=!0}),t.signal)})},y=d2e(t.options,t.fetchOptions),b=async(_,S,x)=>{if(g)return Promise.reject();if(S==null&&_.pages.length)return Promise.resolve(_);const C=(()=>{const A={client:t.client,queryKey:t.queryKey,pageParam:S,direction:x?"backward":"forward",meta:t.options.meta};return v(A),A})(),w=await y(C),{maxPages:O}=t.options,T=x?NSt:ISt;return{pages:T(_.pages,w,O),pageParams:T(_.pageParams,S,O)}};if(i&&o.length){const _=i==="backward",S=_?GSt:Iae,x={pages:o,pageParams:a},E=S(r,x);s=await b(x,E,_)}else{const _=e??o.length;do{const S=l===0?a[0]??r.initialPageParam:Iae(r,s);if(l>0&&S==null)break;s=await b(s,S),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,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=c}}}function Iae(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 GSt(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 jo,Em,Cm,jy,Uy,xm,zy,Vy,t0e,WSt=(t0e=class{constructor(e={}){$n(this,jo);$n(this,Em);$n(this,Cm);$n(this,jy);$n(this,Uy);$n(this,xm);$n(this,zy);$n(this,Vy);pn(this,jo,e.queryCache||new jSt),pn(this,Em,e.mutationCache||new VSt),pn(this,Cm,e.defaultOptions||{}),pn(this,jy,new Map),pn(this,Uy,new Map),pn(this,xm,0)}mount(){Xg(this,xm)._++,je(this,xm)===1&&(pn(this,zy,f2e.subscribe(async e=>{e&&(await this.resumePausedMutations(),je(this,jo).onFocus())})),pn(this,Vy,nM.subscribe(async e=>{e&&(await this.resumePausedMutations(),je(this,jo).onOnline())})))}unmount(){var e,t;Xg(this,xm)._--,je(this,xm)===0&&((e=je(this,zy))==null||e.call(this),pn(this,zy,void 0),(t=je(this,Vy))==null||t.call(this),pn(this,Vy,void 0))}isFetching(e){return je(this,jo).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return je(this,Em).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=je(this,jo).get(t.queryHash))==null?void 0:n.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=je(this,jo).build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(_j(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return je(this,jo).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=je(this,jo).get(r.queryHash),o=i==null?void 0:i.state.data,a=xSt(t,o);if(a!==void 0)return je(this,jo).build(this,r).setData(a,{...n,manual:!0})}setQueriesData(e,t,n){return Qs.batch(()=>je(this,jo).findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=je(this,jo).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=je(this,jo);Qs.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=je(this,jo);return Qs.batch(()=>(n.findAll(e).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},r=Qs.batch(()=>je(this,jo).findAll(e).map(i=>i.cancel(n)));return Promise.all(r).then(Wu).catch(Wu)}invalidateQueries(e,t={}){return Qs.batch(()=>(je(this,jo).findAll(e).forEach(n=>{n.invalidate()}),(e==null?void 0:e.refetchType)==="none"?Promise.resolve():this.refetchQueries({...e,type:(e==null?void 0:e.refetchType)??(e==null?void 0:e.type)??"active"},t)))}refetchQueries(e,t={}){const n={...t,cancelRefetch:t.cancelRefetch??!0},r=Qs.batch(()=>je(this,jo).findAll(e).filter(i=>!i.isDisabled()&&!i.isStatic()).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=je(this,jo).build(this,t);return n.isStaleByTime(_j(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=Aae(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(Wu).catch(Wu)}ensureInfiniteQueryData(e){return e.behavior=Aae(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return nM.isOnline()?je(this,Em).resumePausedMutations():Promise.resolve()}getQueryCache(){return je(this,jo)}getMutationCache(){return je(this,Em)}getDefaultOptions(){return je(this,Cm)}setDefaultOptions(e){pn(this,Cm,e)}setQueryDefaults(e,t){je(this,jy).set(Uw(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...je(this,jy).values()],n={};return t.forEach(r=>{zw(e,r.queryKey)&&Object.assign(n,r.defaultOptions)}),n}setMutationDefaults(e,t){je(this,Uy).set(Uw(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...je(this,Uy).values()],n={};return t.forEach(r=>{zw(e,r.mutationKey)&&Object.assign(n,r.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...je(this,Cm).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=lK(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.queryFn===cK&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...je(this,Cm).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){je(this,jo).clear(),je(this,Em).clear()}},jo=new WeakMap,Em=new WeakMap,Cm=new WeakMap,jy=new WeakMap,Uy=new WeakMap,xm=new WeakMap,zy=new WeakMap,Vy=new WeakMap,t0e),qSt=h.createContext(void 0),YSt=({client:e,children:t})=>(h.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),F.jsx(qSt.Provider,{value:e,children:t}));/**
* @remix-run/router v1.23.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 _o(){return _o=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},_o.apply(this,arguments)}var ua;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(ua||(ua={}));const Nae="popstate";function KSt(e){e===void 0&&(e={});function t(r,i){let{pathname:o,search:a,hash:s}=r.location;return y_("",{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:bg(i)}return v2e(t,n,null,e)}function QSt(e){e===void 0&&(e={});function t(i,o){let{pathname:a="/",search:s="",hash:l=""}=Eh(i.location.hash.substr(1));return!a.startsWith("/")&&!a.startsWith(".")&&(a="/"+a),y_("",{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:bg(o))}function r(i,o){V1(i.pathname.charAt(0)==="/","relative pathnames are not supported in hash history.push("+JSON.stringify(o)+")")}return v2e(t,n,r,e)}function Ur(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function V1(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 Mae(e,t){return{usr:e.state,key:e.key,idx:t}}function y_(e,t,n,r){return n===void 0&&(n=null),_o({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Eh(t):t,{state:n,key:t&&t.key||r||XSt()})}function bg(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 Eh(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 v2e(e,t,n,r){r===void 0&&(r={});let{window:i=document.defaultView,v5Compat:o=!1}=r,a=i.history,s=ua.Pop,l=null,c=u();c==null&&(c=0,a.replaceState(_o({},a.state,{idx:c}),""));function u(){return(a.state||{idx:null}).idx}function d(){s=ua.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=ua.Push;let b=y_(g.location,v,y);n&&n(b,v),c=u()+1;let _=Mae(b,c),S=g.createHref(b);try{a.pushState(_,"",S)}catch(x){if(x instanceof DOMException&&x.name==="DataCloneError")throw x;i.location.assign(S)}o&&l&&l({action:s,location:g.location,delta:1})}function p(v,y){s=ua.Replace;let b=y_(g.location,v,y);n&&n(b,v),c=u();let _=Mae(b,c),S=g.createHref(b);a.replaceState(_,"",S),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:bg(v);return b=b.replace(/ $/,"%20"),Ur(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(Nae,d),l=v,()=>{i.removeEventListener(Nae,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:p,go(v){return a.go(v)}};return g}var Ci;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(Ci||(Ci={}));const ZSt=new Set(["lazy","caseSensitive","path","id","index","children"]);function JSt(e){return e.index===!0}function rM(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(Ur(i.index!==!0||!i.children,"Cannot specify children on an index route"),Ur(!r[s],'Found a route id collision on id "'+s+`". Route id's must be globally unique within Data Router usages`),JSt(i)){let l=_o({},i,t(i),{id:s});return r[s]=l,l}else{let l=_o({},i,t(i),{id:s,children:void 0});return r[s]=l,i.children&&(l.children=rM(i.children,t,a,r)),l}})}function x0(e,t,n){return n===void 0&&(n="/"),DI(e,t,n,!1)}function DI(e,t,n,r){let i=typeof t=="string"?Eh(t):t,o=NS(i.pathname||"/",n);if(o==null)return null;let a=b2e(e);tEt(a);let s=null;for(let l=0;s==null&&l<a.length;++l){let c=fEt(o);s=uEt(a[l],c,r)}return s}function eEt(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 b2e(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("/")&&(Ur(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=Xp([r,l.relativePath]),u=n.concat(l);o.children&&o.children.length>0&&(Ur(o.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+c+'".')),b2e(o.children,t,u,c)),!(o.path==null&&!o.index)&&t.push({path:c,score:lEt(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 y2e(o.path))i(o,a,l)}),t}function y2e(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=y2e(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 tEt(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:cEt(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const nEt=/^:[\w-]+$/,rEt=3,iEt=2,oEt=1,aEt=10,sEt=-2,kae=e=>e==="*";function lEt(e,t){let n=e.split("/"),r=n.length;return n.some(kae)&&(r+=sEt),t&&(r+=iEt),n.filter(i=>!kae(i)).reduce((i,o)=>i+(nEt.test(o)?rEt:o===""?oEt:aEt),r)}function cEt(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 uEt(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=Pae({path:l.relativePath,caseSensitive:l.caseSensitive,end:c},u),f=l.route;if(!d&&c&&n&&!r[r.length-1].route.index&&(d=Pae({path:l.relativePath,caseSensitive:l.caseSensitive,end:!1},u)),!d)return null;Object.assign(i,d.params),a.push({params:i,pathname:Xp([o,d.pathname]),pathnameBase:mEt(Xp([o,d.pathnameBase])),route:f}),d.pathnameBase!=="/"&&(o=Xp([o,d.pathnameBase]))}return a}function Pae(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=dEt(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:p}=u;if(f==="*"){let g=s[d]||"";a=o.slice(0,o.length-g.length).replace(/(.)\/+$/,"$1")}const m=s[d];return p&&!m?c[f]=void 0:c[f]=(m||"").replace(/%2F/g,"/"),c},{}),pathname:o,pathnameBase:a,pattern:e}}function dEt(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),V1(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 fEt(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return V1(!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 NS(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 pEt(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:i=""}=typeof e=="string"?Eh(e):e;return{pathname:n?n.startsWith("/")?n:hEt(n,t):t,search:gEt(r),hash:vEt(i)}}function hEt(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 jL(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 _2e(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function yD(e,t){let n=_2e(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=Eh(e):(i=_o({},e),Ur(!i.pathname||!i.pathname.includes("?"),jL("?","pathname","search",i)),Ur(!i.pathname||!i.pathname.includes("#"),jL("#","pathname","hash",i)),Ur(!i.search||!i.search.includes("#"),jL("#","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=pEt(i,s),c=a&&a!=="/"&&a.endsWith("/"),u=(o||a===".")&&n.endsWith("/");return!l.pathname.endsWith("/")&&(c||u)&&(l.pathname+="/"),l}const Xp=e=>e.join("/").replace(/\/\/+/g,"/"),mEt=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),gEt=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,vEt=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;class iM{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 Vw(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const S2e=["post","put","patch","delete"],bEt=new Set(S2e),yEt=["get",...S2e],_Et=new Set(yEt),SEt=new Set([301,302,303,307,308]),EEt=new Set([307,308]),UL={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},CEt={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},FE={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},uK=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,xEt=e=>({hasErrorBoundary:!!e.hasErrorBoundary}),E2e="remix-router-transitions";function C2e(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;Ur(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 $e=e.detectErrorBoundary;i=Le=>({hasErrorBoundary:$e(Le)})}else i=xEt;let o={},a=rM(e.routes,i,void 0,o),s,l=e.basename||"/",c=e.dataStrategy||REt,u=e.patchRoutesOnNavigation,d=_o({v7_fetcherPersist:!1,v7_normalizeFormMethod:!1,v7_partialHydration:!1,v7_prependBasename:!1,v7_relativeSplatPath:!1,v7_skipActionErrorRevalidation:!1},e.future),f=null,p=new Set,m=null,g=null,v=null,y=e.hydrationData!=null,b=x0(a,e.history.location,l),_=!1,S=null;if(b==null&&!u){let $e=Sl(404,{pathname:e.history.location.pathname}),{matches:Le,route:He}=Gae(a);b=Le,S={[He.id]:$e}}b&&!e.hydrationData&&Rt(b,a,e.history.location.pathname).active&&(b=null);let x;if(b)if(b.some($e=>$e.route.lazy))x=!1;else if(!b.some($e=>$e.route.loader))x=!0;else if(d.v7_partialHydration){let $e=e.hydrationData?e.hydrationData.loaderData:null,Le=e.hydrationData?e.hydrationData.errors:null;if(Le){let He=b.findIndex(it=>Le[it.route.id]!==void 0);x=b.slice(0,He+1).every(it=>!Cj(it.route,$e,Le))}else x=b.every(He=>!Cj(He.route,$e,Le))}else x=e.hydrationData!=null;else if(x=!1,b=[],d.v7_partialHydration){let $e=Rt(null,a,e.history.location.pathname);$e.active&&$e.matches&&(_=!0,b=$e.matches)}let E,C={historyAction:e.history.action,location:e.history.location,matches:b,initialized:x,navigation:UL,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||S,fetchers:new Map,blockers:new Map},w=ua.Pop,O=!1,T,A=!1,I=new Map,N=null,D=!1,M=!1,k=[],P=new Set,B=new Map,G=0,L=-1,W=new Map,j=new Set,H=new Map,X=new Map,Q=new Set,ue=new Map,ee=new Map,K;function se(){if(f=e.history.listen($e=>{let{action:Le,location:He,delta:it}=$e;if(K){K(),K=void 0;return}V1(ee.size===0||it!=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 ft=Ge({currentLocation:C.location,nextLocation:He,historyAction:Le});if(ft&&it!=null){let Et=new Promise(Dt=>{K=Dt});e.history.go(it*-1),tt(ft,{state:"blocked",location:He,proceed(){tt(ft,{state:"proceeding",proceed:void 0,reset:void 0,location:He}),Et.then(()=>e.history.go(it))},reset(){let Dt=new Map(C.blockers);Dt.set(ft,FE),ne({blockers:Dt})}});return}return re(Le,He)}),n){UEt(t,I);let $e=()=>zEt(t,I);t.addEventListener("pagehide",$e),N=()=>t.removeEventListener("pagehide",$e)}return C.initialized||re(ua.Pop,C.location,{initialHydration:!0}),E}function le(){f&&f(),N&&N(),p.clear(),T&&T.abort(),C.fetchers.forEach(($e,Le)=>fe(Le)),C.blockers.forEach(($e,Le)=>Ke(Le))}function oe($e){return p.add($e),()=>p.delete($e)}function ne($e,Le){Le===void 0&&(Le={}),C=_o({},C,$e);let He=[],it=[];d.v7_fetcherPersist&&C.fetchers.forEach((ft,Et)=>{ft.state==="idle"&&(Q.has(Et)?it.push(Et):He.push(Et))}),Q.forEach(ft=>{!C.fetchers.has(ft)&&!B.has(ft)&&it.push(ft)}),[...p].forEach(ft=>ft(C,{deletedFetchers:it,viewTransitionOpts:Le.viewTransitionOpts,flushSync:Le.flushSync===!0})),d.v7_fetcherPersist?(He.forEach(ft=>C.fetchers.delete(ft)),it.forEach(ft=>fe(ft))):it.forEach(ft=>Q.delete(ft))}function he($e,Le,He){var it,ft;let{flushSync:Et}=He===void 0?{}:He,Dt=C.actionData!=null&&C.navigation.formMethod!=null&&Xu(C.navigation.formMethod)&&C.navigation.state==="loading"&&((it=$e.state)==null?void 0:it._isRedirect)!==!0,St;Le.actionData?Object.keys(Le.actionData).length>0?St=Le.actionData:St=null:Dt?St=C.actionData:St=null;let bt=Le.loaderData?zae(C.loaderData,Le.loaderData,Le.matches||[],Le.errors):C.loaderData,xt=C.blockers;xt.size>0&&(xt=new Map(xt),xt.forEach((at,wt)=>xt.set(wt,FE)));let ht=O===!0||C.navigation.formMethod!=null&&Xu(C.navigation.formMethod)&&((ft=$e.state)==null?void 0:ft._isRedirect)!==!0;s&&(a=s,s=void 0),D||w===ua.Pop||(w===ua.Push?e.history.push($e,$e.state):w===ua.Replace&&e.history.replace($e,$e.state));let Vt;if(w===ua.Pop){let at=I.get(C.location.pathname);at&&at.has($e.pathname)?Vt={currentLocation:C.location,nextLocation:$e}:I.has($e.pathname)&&(Vt={currentLocation:$e,nextLocation:C.location})}else if(A){let at=I.get(C.location.pathname);at?at.add($e.pathname):(at=new Set([$e.pathname]),I.set(C.location.pathname,at)),Vt={currentLocation:C.location,nextLocation:$e}}ne(_o({},Le,{actionData:St,loaderData:bt,historyAction:w,location:$e,initialized:!0,navigation:UL,revalidation:"idle",restoreScrollPosition:Pt($e,Le.matches||C.matches),preventScrollReset:ht,blockers:xt}),{viewTransitionOpts:Vt,flushSync:Et===!0}),w=ua.Pop,O=!1,A=!1,D=!1,M=!1,k=[]}async function me($e,Le){if(typeof $e=="number"){e.history.go($e);return}let He=Ej(C.location,C.matches,l,d.v7_prependBasename,$e,d.v7_relativeSplatPath,Le==null?void 0:Le.fromRouteId,Le==null?void 0:Le.relative),{path:it,submission:ft,error:Et}=Dae(d.v7_normalizeFormMethod,!1,He,Le),Dt=C.location,St=y_(C.location,it,Le&&Le.state);St=_o({},St,e.history.encodeLocation(St));let bt=Le&&Le.replace!=null?Le.replace:void 0,xt=ua.Push;bt===!0?xt=ua.Replace:bt===!1||ft!=null&&Xu(ft.formMethod)&&ft.formAction===C.location.pathname+C.location.search&&(xt=ua.Replace);let ht=Le&&"preventScrollReset"in Le?Le.preventScrollReset===!0:void 0,Vt=(Le&&Le.flushSync)===!0,at=Ge({currentLocation:Dt,nextLocation:St,historyAction:xt});if(at){tt(at,{state:"blocked",location:St,proceed(){tt(at,{state:"proceeding",proceed:void 0,reset:void 0,location:St}),me($e,Le)},reset(){let wt=new Map(C.blockers);wt.set(at,FE),ne({blockers:wt})}});return}return await re(xt,St,{submission:ft,pendingError:Et,preventScrollReset:ht,replace:Le&&Le.replace,enableViewTransition:Le&&Le.viewTransition,flushSync:Vt})}function ce(){if(U(),ne({revalidation:"loading"}),C.navigation.state!=="submitting"){if(C.navigation.state==="idle"){re(C.historyAction,C.location,{startUninterruptedRevalidation:!0});return}re(w||C.historyAction,C.navigation.location,{overrideNavigation:C.navigation,enableViewTransition:A===!0})}}async function re($e,Le,He){T&&T.abort(),T=null,w=$e,D=(He&&He.startUninterruptedRevalidation)===!0,ct(C.location,C.matches),O=(He&&He.preventScrollReset)===!0,A=(He&&He.enableViewTransition)===!0;let it=s||a,ft=He&&He.overrideNavigation,Et=He!=null&&He.initialHydration&&C.matches&&C.matches.length>0&&!_?C.matches:x0(it,Le,l),Dt=(He&&He.flushSync)===!0;if(Et&&C.initialized&&!M&&PEt(C.location,Le)&&!(He&&He.submission&&Xu(He.submission.formMethod))){he(Le,{matches:Et},{flushSync:Dt});return}let St=Rt(Et,it,Le.pathname);if(St.active&&St.matches&&(Et=St.matches),!Et){let{error:Gt,notFoundMatches:$t,route:zt}=Nt(Le.pathname);he(Le,{matches:$t,loaderData:{},errors:{[zt.id]:Gt}},{flushSync:Dt});return}T=new AbortController;let bt=lb(e.history,Le,T.signal,He&&He.submission),xt;if(He&&He.pendingError)xt=[w0(Et).route.id,{type:Ci.error,error:He.pendingError}];else if(He&&He.submission&&Xu(He.submission.formMethod)){let Gt=await ve(bt,Le,He.submission,Et,St.active,{replace:He.replace,flushSync:Dt});if(Gt.shortCircuited)return;if(Gt.pendingActionResult){let[$t,zt]=Gt.pendingActionResult;if(uc(zt)&&Vw(zt.error)&&zt.error.status===404){T=null,he(Le,{matches:Gt.matches,loaderData:{},errors:{[$t]:zt.error}});return}}Et=Gt.matches||Et,xt=Gt.pendingActionResult,ft=zL(Le,He.submission),Dt=!1,St.active=!1,bt=lb(e.history,bt.url,bt.signal)}let{shortCircuited:ht,matches:Vt,loaderData:at,errors:wt}=await be(bt,Le,Et,St.active,ft,He&&He.submission,He&&He.fetcherSubmission,He&&He.replace,He&&He.initialHydration===!0,Dt,xt);ht||(T=null,he(Le,_o({matches:Vt||Et},Vae(xt),{loaderData:at,errors:wt})))}async function ve($e,Le,He,it,ft,Et){Et===void 0&&(Et={}),U();let Dt=HEt(Le,He);if(ne({navigation:Dt},{flushSync:Et.flushSync===!0}),ft){let xt=await Tt(it,Le.pathname,$e.signal);if(xt.type==="aborted")return{shortCircuited:!0};if(xt.type==="error"){let ht=w0(xt.partialMatches).route.id;return{matches:xt.partialMatches,pendingActionResult:[ht,{type:Ci.error,error:xt.error}]}}else if(xt.matches)it=xt.matches;else{let{notFoundMatches:ht,error:Vt,route:at}=Nt(Le.pathname);return{matches:ht,pendingActionResult:[at.id,{type:Ci.error,error:Vt}]}}}let St,bt=NC(it,Le);if(!bt.route.action&&!bt.route.lazy)St={type:Ci.error,error:Sl(405,{method:$e.method,pathname:Le.pathname,routeId:bt.route.id})};else if(St=(await Ve("action",C,$e,[bt],it,null))[bt.route.id],$e.signal.aborted)return{shortCircuited:!0};if(H0(St)){let xt;return Et&&Et.replace!=null?xt=Et.replace:xt=Hae(St.response.headers.get("Location"),new URL($e.url),l)===C.location.pathname+C.location.search,await Te($e,St,!0,{submission:He,replace:xt}),{shortCircuited:!0}}if(km(St))throw Sl(400,{type:"defer-action"});if(uc(St)){let xt=w0(it,bt.route.id);return(Et&&Et.replace)!==!0&&(w=ua.Push),{matches:it,pendingActionResult:[xt.route.id,St]}}return{matches:it,pendingActionResult:[bt.route.id,St]}}async function be($e,Le,He,it,ft,Et,Dt,St,bt,xt,ht){let Vt=ft||zL(Le,Et),at=Et||Dt||qae(Vt),wt=!D&&(!d.v7_partialHydration||!bt);if(it){if(wt){let J=xe(ht);ne(_o({navigation:Vt},J!==void 0?{actionData:J}:{}),{flushSync:xt})}let $=await Tt(He,Le.pathname,$e.signal);if($.type==="aborted")return{shortCircuited:!0};if($.type==="error"){let J=w0($.partialMatches).route.id;return{matches:$.partialMatches,loaderData:{},errors:{[J]:$.error}}}else if($.matches)He=$.matches;else{let{error:J,notFoundMatches:Oe,route:qe}=Nt(Le.pathname);return{matches:Oe,loaderData:{},errors:{[qe.id]:J}}}}let Gt=s||a,[$t,zt]=$ae(e.history,C,He,at,Le,d.v7_partialHydration&&bt===!0,d.v7_skipActionErrorRevalidation,M,k,P,Q,H,j,Gt,l,ht);if(lt($=>!(He&&He.some(J=>J.route.id===$))||$t&&$t.some(J=>J.route.id===$)),L=++G,$t.length===0&&zt.length===0){let $=Be();return he(Le,_o({matches:He,loaderData:{},errors:ht&&uc(ht[1])?{[ht[0]]:ht[1].error}:null},Vae(ht),$?{fetchers:new Map(C.fetchers)}:{}),{flushSync:xt}),{shortCircuited:!0}}if(wt){let $={};if(!it){$.navigation=Vt;let J=xe(ht);J!==void 0&&($.actionData=J)}zt.length>0&&($.fetchers=we(zt)),ne($,{flushSync:xt})}zt.forEach($=>{We($.key),$.controller&&B.set($.key,$.controller)});let Ft=()=>zt.forEach($=>We($.key));T&&T.signal.addEventListener("abort",Ft);let{loaderResults:De,fetcherResults:Ct}=await q(C,He,$t,zt,$e);if($e.signal.aborted)return{shortCircuited:!0};T&&T.signal.removeEventListener("abort",Ft),zt.forEach($=>B.delete($.key));let et=$R(De);if(et)return await Te($e,et.result,!0,{replace:St}),{shortCircuited:!0};if(et=$R(Ct),et)return j.add(et.key),await Te($e,et.result,!0,{replace:St}),{shortCircuited:!0};let{loaderData:Ot,errors:At}=Uae(C,He,De,ht,zt,Ct,ue);ue.forEach(($,J)=>{$.subscribe(Oe=>{(Oe||$.done)&&ue.delete(J)})}),d.v7_partialHydration&&bt&&C.errors&&(At=_o({},C.errors,At));let _n=Be(),zn=Fe(L),R=_n||zn||zt.length>0;return _o({matches:He,loaderData:Ot,errors:At},R?{fetchers:new Map(C.fetchers)}:{})}function xe($e){if($e&&!uc($e[1]))return{[$e[0]]:$e[1].data};if(C.actionData)return Object.keys(C.actionData).length===0?null:C.actionData}function we($e){return $e.forEach(Le=>{let He=C.fetchers.get(Le.key),it=BE(void 0,He?He.data:void 0);C.fetchers.set(Le.key,it)}),new Map(C.fetchers)}function de($e,Le,He,it){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.");We($e);let ft=(it&&it.flushSync)===!0,Et=s||a,Dt=Ej(C.location,C.matches,l,d.v7_prependBasename,He,d.v7_relativeSplatPath,Le,it==null?void 0:it.relative),St=x0(Et,Dt,l),bt=Rt(St,Et,Dt);if(bt.active&&bt.matches&&(St=bt.matches),!St){ae($e,Le,Sl(404,{pathname:Dt}),{flushSync:ft});return}let{path:xt,submission:ht,error:Vt}=Dae(d.v7_normalizeFormMethod,!0,Dt,it);if(Vt){ae($e,Le,Vt,{flushSync:ft});return}let at=NC(St,xt),wt=(it&&it.preventScrollReset)===!0;if(ht&&Xu(ht.formMethod)){Ee($e,Le,xt,at,St,bt.active,ft,wt,ht);return}H.set($e,{routeId:Le,path:xt}),Ne($e,Le,xt,at,St,bt.active,ft,wt,ht)}async function Ee($e,Le,He,it,ft,Et,Dt,St,bt){U(),H.delete($e);function xt(Qe){if(!Qe.route.action&&!Qe.route.lazy){let Bt=Sl(405,{method:bt.formMethod,pathname:He,routeId:Le});return ae($e,Le,Bt,{flushSync:Dt}),!0}return!1}if(!Et&&xt(it))return;let ht=C.fetchers.get($e);Y($e,jEt(bt,ht),{flushSync:Dt});let Vt=new AbortController,at=lb(e.history,He,Vt.signal,bt);if(Et){let Qe=await Tt(ft,new URL(at.url).pathname,at.signal,$e);if(Qe.type==="aborted")return;if(Qe.type==="error"){ae($e,Le,Qe.error,{flushSync:Dt});return}else if(Qe.matches){if(ft=Qe.matches,it=NC(ft,He),xt(it))return}else{ae($e,Le,Sl(404,{pathname:He}),{flushSync:Dt});return}}B.set($e,Vt);let wt=G,$t=(await Ve("action",C,at,[it],ft,$e))[it.route.id];if(at.signal.aborted){B.get($e)===Vt&&B.delete($e);return}if(d.v7_fetcherPersist&&Q.has($e)){if(H0($t)||uc($t)){Y($e,Yh(void 0));return}}else{if(H0($t))if(B.delete($e),L>wt){Y($e,Yh(void 0));return}else return j.add($e),Y($e,BE(bt)),Te(at,$t,!1,{fetcherSubmission:bt,preventScrollReset:St});if(uc($t)){ae($e,Le,$t.error);return}}if(km($t))throw Sl(400,{type:"defer-action"});let zt=C.navigation.location||C.location,Ft=lb(e.history,zt,Vt.signal),De=s||a,Ct=C.navigation.state!=="idle"?x0(De,C.navigation.location,l):C.matches;Ur(Ct,"Didn't find any matches after fetcher action");let et=++G;W.set($e,et);let Ot=BE(bt,$t.data);C.fetchers.set($e,Ot);let[At,_n]=$ae(e.history,C,Ct,bt,zt,!1,d.v7_skipActionErrorRevalidation,M,k,P,Q,H,j,De,l,[it.route.id,$t]);_n.filter(Qe=>Qe.key!==$e).forEach(Qe=>{let Bt=Qe.key,fn=C.fetchers.get(Bt),gr=BE(void 0,fn?fn.data:void 0);C.fetchers.set(Bt,gr),We(Bt),Qe.controller&&B.set(Bt,Qe.controller)}),ne({fetchers:new Map(C.fetchers)});let zn=()=>_n.forEach(Qe=>We(Qe.key));Vt.signal.addEventListener("abort",zn);let{loaderResults:R,fetcherResults:$}=await q(C,Ct,At,_n,Ft);if(Vt.signal.aborted)return;Vt.signal.removeEventListener("abort",zn),W.delete($e),B.delete($e),_n.forEach(Qe=>B.delete(Qe.key));let J=$R(R);if(J)return Te(Ft,J.result,!1,{preventScrollReset:St});if(J=$R($),J)return j.add(J.key),Te(Ft,J.result,!1,{preventScrollReset:St});let{loaderData:Oe,errors:qe}=Uae(C,Ct,R,void 0,_n,$,ue);if(C.fetchers.has($e)){let Qe=Yh($t.data);C.fetchers.set($e,Qe)}Fe(et),C.navigation.state==="loading"&&et>L?(Ur(w,"Expected pending action"),T&&T.abort(),he(C.navigation.location,{matches:Ct,loaderData:Oe,errors:qe,fetchers:new Map(C.fetchers)})):(ne({errors:qe,loaderData:zae(C.loaderData,Oe,Ct,qe),fetchers:new Map(C.fetchers)}),M=!1)}async function Ne($e,Le,He,it,ft,Et,Dt,St,bt){let xt=C.fetchers.get($e);Y($e,BE(bt,xt?xt.data:void 0),{flushSync:Dt});let ht=new AbortController,Vt=lb(e.history,He,ht.signal);if(Et){let $t=await Tt(ft,new URL(Vt.url).pathname,Vt.signal,$e);if($t.type==="aborted")return;if($t.type==="error"){ae($e,Le,$t.error,{flushSync:Dt});return}else if($t.matches)ft=$t.matches,it=NC(ft,He);else{ae($e,Le,Sl(404,{pathname:He}),{flushSync:Dt});return}}B.set($e,ht);let at=G,Gt=(await Ve("loader",C,Vt,[it],ft,$e))[it.route.id];if(km(Gt)&&(Gt=await dK(Gt,Vt.signal,!0)||Gt),B.get($e)===ht&&B.delete($e),!Vt.signal.aborted){if(Q.has($e)){Y($e,Yh(void 0));return}if(H0(Gt))if(L>at){Y($e,Yh(void 0));return}else{j.add($e),await Te(Vt,Gt,!1,{preventScrollReset:St});return}if(uc(Gt)){ae($e,Le,Gt.error);return}Ur(!km(Gt),"Unhandled fetcher deferred data"),Y($e,Yh(Gt.data))}}async function Te($e,Le,He,it){let{submission:ft,fetcherSubmission:Et,preventScrollReset:Dt,replace:St}=it===void 0?{}:it;Le.response.headers.has("X-Remix-Revalidate")&&(M=!0);let bt=Le.response.headers.get("Location");Ur(bt,"Expected a Location header on the redirect Response"),bt=Hae(bt,new URL($e.url),l);let xt=y_(C.location,bt,{_isRedirect:!0});if(n){let $t=!1;if(Le.response.headers.has("X-Remix-Reload-Document"))$t=!0;else if(uK.test(bt)){const zt=e.history.createURL(bt);$t=zt.origin!==t.location.origin||NS(zt.pathname,l)==null}if($t){St?t.location.replace(bt):t.location.assign(bt);return}}T=null;let ht=St===!0||Le.response.headers.has("X-Remix-Replace")?ua.Replace:ua.Push,{formMethod:Vt,formAction:at,formEncType:wt}=C.navigation;!ft&&!Et&&Vt&&at&&wt&&(ft=qae(C.navigation));let Gt=ft||Et;if(EEt.has(Le.response.status)&&Gt&&Xu(Gt.formMethod))await re(ht,xt,{submission:_o({},Gt,{formAction:bt}),preventScrollReset:Dt||O,enableViewTransition:He?A:void 0});else{let $t=zL(xt,ft);await re(ht,xt,{overrideNavigation:$t,fetcherSubmission:Et,preventScrollReset:Dt||O,enableViewTransition:He?A:void 0})}}async function Ve($e,Le,He,it,ft,Et){let Dt,St={};try{Dt=await AEt(c,$e,Le,He,it,ft,Et,o,i)}catch(bt){return it.forEach(xt=>{St[xt.route.id]={type:Ci.error,error:bt}}),St}for(let[bt,xt]of Object.entries(Dt))if(DEt(xt)){let ht=xt.result;St[bt]={type:Ci.redirect,response:MEt(ht,He,bt,ft,l,d.v7_relativeSplatPath)}}else St[bt]=await NEt(xt);return St}async function q($e,Le,He,it,ft){let Et=$e.matches,Dt=Ve("loader",$e,ft,He,Le,null),St=Promise.all(it.map(async ht=>{if(ht.matches&&ht.match&&ht.controller){let at=(await Ve("loader",$e,lb(e.history,ht.path,ht.controller.signal),[ht.match],ht.matches,ht.key))[ht.match.route.id];return{[ht.key]:at}}else return Promise.resolve({[ht.key]:{type:Ci.error,error:Sl(404,{pathname:ht.path})}})})),bt=await Dt,xt=(await St).reduce((ht,Vt)=>Object.assign(ht,Vt),{});return await Promise.all([FEt(Le,bt,ft.signal,Et,$e.loaderData),BEt(Le,xt,it)]),{loaderResults:bt,fetcherResults:xt}}function U(){M=!0,k.push(...lt()),H.forEach(($e,Le)=>{B.has(Le)&&P.add(Le),We(Le)})}function Y($e,Le,He){He===void 0&&(He={}),C.fetchers.set($e,Le),ne({fetchers:new Map(C.fetchers)},{flushSync:(He&&He.flushSync)===!0})}function ae($e,Le,He,it){it===void 0&&(it={});let ft=w0(C.matches,Le);fe($e),ne({errors:{[ft.route.id]:He},fetchers:new Map(C.fetchers)},{flushSync:(it&&it.flushSync)===!0})}function ye($e){return X.set($e,(X.get($e)||0)+1),Q.has($e)&&Q.delete($e),C.fetchers.get($e)||CEt}function fe($e){let Le=C.fetchers.get($e);B.has($e)&&!(Le&&Le.state==="loading"&&W.has($e))&&We($e),H.delete($e),W.delete($e),j.delete($e),d.v7_fetcherPersist&&Q.delete($e),P.delete($e),C.fetchers.delete($e)}function Ae($e){let Le=(X.get($e)||0)-1;Le<=0?(X.delete($e),Q.add($e),d.v7_fetcherPersist||fe($e)):X.set($e,Le),ne({fetchers:new Map(C.fetchers)})}function We($e){let Le=B.get($e);Le&&(Le.abort(),B.delete($e))}function ie($e){for(let Le of $e){let He=ye(Le),it=Yh(He.data);C.fetchers.set(Le,it)}}function Be(){let $e=[],Le=!1;for(let He of j){let it=C.fetchers.get(He);Ur(it,"Expected fetcher: "+He),it.state==="loading"&&(j.delete(He),$e.push(He),Le=!0)}return ie($e),Le}function Fe($e){let Le=[];for(let[He,it]of W)if(it<$e){let ft=C.fetchers.get(He);Ur(ft,"Expected fetcher: "+He),ft.state==="loading"&&(We(He),W.delete(He),Le.push(He))}return ie(Le),Le.length>0}function Pe($e,Le){let He=C.blockers.get($e)||FE;return ee.get($e)!==Le&&ee.set($e,Le),He}function Ke($e){C.blockers.delete($e),ee.delete($e)}function tt($e,Le){let He=C.blockers.get($e)||FE;Ur(He.state==="unblocked"&&Le.state==="blocked"||He.state==="blocked"&&Le.state==="blocked"||He.state==="blocked"&&Le.state==="proceeding"||He.state==="blocked"&&Le.state==="unblocked"||He.state==="proceeding"&&Le.state==="unblocked","Invalid blocker state transition: "+He.state+" -> "+Le.state);let it=new Map(C.blockers);it.set($e,Le),ne({blockers:it})}function Ge($e){let{currentLocation:Le,nextLocation:He,historyAction:it}=$e;if(ee.size===0)return;ee.size>1&&V1(!1,"A router only supports one blocker at a time");let ft=Array.from(ee.entries()),[Et,Dt]=ft[ft.length-1],St=C.blockers.get(Et);if(!(St&&St.state==="proceeding")&&Dt({currentLocation:Le,nextLocation:He,historyAction:it}))return Et}function Nt($e){let Le=Sl(404,{pathname:$e}),He=s||a,{matches:it,route:ft}=Gae(He);return lt(),{notFoundMatches:it,route:ft,error:Le}}function lt($e){let Le=[];return ue.forEach((He,it)=>{(!$e||$e(it))&&(He.cancel(),Le.push(it),ue.delete(it))}),Le}function st($e,Le,He){if(m=$e,v=Le,g=He||null,!y&&C.navigation===UL){y=!0;let it=Pt(C.location,C.matches);it!=null&&ne({restoreScrollPosition:it})}return()=>{m=null,v=null,g=null}}function It($e,Le){return g&&g($e,Le.map(it=>eEt(it,C.loaderData)))||$e.key}function ct($e,Le){if(m&&v){let He=It($e,Le);m[He]=v()}}function Pt($e,Le){if(m){let He=It($e,Le),it=m[He];if(typeof it=="number")return it}return null}function Rt($e,Le,He){if(u)if($e){if(Object.keys($e[0].params).length>0)return{active:!0,matches:DI(Le,He,l,!0)}}else return{active:!0,matches:DI(Le,He,l,!0)||[]};return{active:!1,matches:null}}async function Tt($e,Le,He,it){if(!u)return{type:"success",matches:$e};let ft=$e;for(;;){let Et=s==null,Dt=s||a,St=o;try{await u({signal:He,path:Le,matches:ft,fetcherKey:it,patch:(ht,Vt)=>{He.aborted||Bae(ht,Vt,Dt,St,i)}})}catch(ht){return{type:"error",error:ht,partialMatches:ft}}finally{Et&&!He.aborted&&(a=[...a])}if(He.aborted)return{type:"aborted"};let bt=x0(Dt,Le,l);if(bt)return{type:"success",matches:bt};let xt=DI(Dt,Le,l,!0);if(!xt||ft.length===xt.length&&ft.every((ht,Vt)=>ht.route.id===xt[Vt].route.id))return{type:"success",matches:null};ft=xt}}function Me($e){o={},s=rM($e,i,void 0,o)}function Ue($e,Le){let He=s==null;Bae($e,Le,s||a,o,i),He&&(a=[...a],ne({}))}return E={get basename(){return l},get future(){return d},get state(){return C},get routes(){return a},get window(){return t},initialize:se,subscribe:oe,enableScrollRestoration:st,navigate:me,fetch:de,revalidate:ce,createHref:$e=>e.history.createHref($e),encodeLocation:$e=>e.history.encodeLocation($e),getFetcher:ye,deleteFetcher:Ae,dispose:le,getBlocker:Pe,deleteBlocker:Ke,patchRoutes:Ue,_internalFetchControllers:B,_internalActiveDeferreds:ue,_internalSetRoutes:Me},E}function wEt(e){return e!=null&&("formData"in e&&e.formData!=null||"body"in e&&e.body!==void 0)}function Ej(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),NS(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=fK(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),p=f.getAll("index");f.delete("index"),p.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:Xp([n,u.pathname])),bg(u)}function Dae(e,t,n,r){if(!r||!wEt(r))return{path:n};if(r.formMethod&&!$Et(r.formMethod))return{path:n,error:Sl(405,{method:r.formMethod})};let i=()=>({path:n,error:Sl(400,{type:"invalid-body"})}),o=r.formMethod||"get",a=e?o.toUpperCase():o.toLowerCase(),s=T2e(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((p,m)=>{let[g,v]=m;return""+p+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()}}}Ur(typeof FormData=="function","FormData is not available in this environment");let l,c;if(r.formData)l=xj(r.formData),c=r.formData;else if(r.body instanceof FormData)l=xj(r.body),c=r.body;else if(r.body instanceof URLSearchParams)l=r.body,c=jae(l);else if(r.body==null)l=new URLSearchParams,c=new FormData;else try{l=new URLSearchParams(r.body),c=jae(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=Eh(n);return t&&d.search&&fK(d.search)&&l.append("index",""),d.search="?"+l,{path:bg(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 $ae(e,t,n,r,i,o,a,s,l,c,u,d,f,p,m,g){let v=g?uc(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&&uc(g[1])&&(_=Lae(n,g[0]));let S=g?g[1].statusCode:void 0,x=a&&S&&S>=400,E=_.filter((w,O)=>{let{route:T}=w;if(T.lazy)return!0;if(T.loader==null)return!1;if(o)return Cj(T,t.loaderData,t.errors);if(TEt(t.loaderData,t.matches[O],w)||l.some(N=>N===w.route.id))return!0;let A=t.matches[O],I=w;return Fae(w,_o({currentUrl:y,currentParams:A.params,nextUrl:b,nextParams:I.params},r,{actionResult:v,actionStatus:S,defaultShouldRevalidate:x?!1:s||y.pathname+y.search===b.pathname+b.search||y.search!==b.search||x2e(A,I)}))}),C=[];return d.forEach((w,O)=>{if(o||!n.some(D=>D.route.id===w.routeId)||u.has(O))return;let T=x0(p,w.path,m);if(!T){C.push({key:O,routeId:w.routeId,path:w.path,matches:null,match:null,controller:null});return}let A=t.fetchers.get(O),I=NC(T,w.path),N=!1;f.has(O)?N=!1:c.has(O)?(c.delete(O),N=!0):A&&A.state!=="idle"&&A.data===void 0?N=s:N=Fae(I,_o({currentUrl:y,currentParams:t.matches[t.matches.length-1].params,nextUrl:b,nextParams:n[n.length-1].params},r,{actionResult:v,actionStatus:S,defaultShouldRevalidate:x?!1:s})),N&&C.push({key:O,routeId:w.routeId,path:w.path,matches:T,match:I,controller:new AbortController})}),[E,C]}function Cj(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 x2e(e,t){let n=e.route.path;return e.pathname!==t.pathname||n!=null&&n.endsWith("*")&&e.params["*"]!==t.params["*"]}function Fae(e,t){if(e.route.shouldRevalidate){let n=e.route.shouldRevalidate(t);if(typeof n=="boolean")return n}return t.defaultShouldRevalidate}function Bae(e,t,n,r,i){var o;let a;if(e){let c=r[e];Ur(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=>w2e(c,u))),l=rM(s,i,[e||"_","patch",String(((o=a)==null?void 0:o.length)||"0")],r);a.push(...l)}function w2e(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=>w2e(n,o))}):!1}async function OEt(e,t,n){if(!e.lazy)return;let r=await e.lazy();if(!e.lazy)return;let i=n[e.id];Ur(i,"No route found in manifest");let o={};for(let a in r){let l=i[a]!==void 0&&a!=="hasErrorBoundary";V1(!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&&!ZSt.has(a)&&(o[a]=r[a])}Object.assign(i,o),Object.assign(i,_o({},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 AEt(e,t,n,r,i,o,a,s,l,c){let u=o.map(p=>p.route.lazy?OEt(p.route,l,s):void 0),d=o.map((p,m)=>{let g=u[m],v=i.some(b=>b.route.id===p.route.id);return _o({},p,{shouldLoad:v,resolve:async b=>(b&&r.method==="GET"&&(p.route.lazy||p.route.loader)&&(v=!0),v?IEt(t,r,p,g,b,c):Promise.resolve({type:Ci.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 IEt(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]:[]),p=(async()=>{try{return{type:"data",result:await(i?i(g=>f(g)):f())}}catch(m){return{type:"error",result:m}}})();return Promise.race([p,d])};try{let c=n.route[e];if(r)if(c){let u,[d]=await Promise.all([l(c).catch(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 Sl(405,{method:t.method,pathname:d,routeId:n.route.id})}else return{type:Ci.data,result:void 0};else if(c)a=await l(c);else{let u=new URL(t.url),d=u.pathname+u.search;throw Sl(404,{pathname:d})}Ur(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:Ci.error,result:c}}finally{s&&t.signal.removeEventListener("abort",s)}return a}async function NEt(e){let{result:t,type:n}=e;if(O2e(t)){let d;try{let f=t.headers.get("Content-Type");f&&/\bapplication\/json\b/.test(f)?t.body==null?d=null:d=await t.json():d=await t.text()}catch(f){return{type:Ci.error,error:f}}return n===Ci.error?{type:Ci.error,error:new iM(t.status,t.statusText,d),statusCode:t.status,headers:t.headers}:{type:Ci.data,data:d,statusCode:t.status,headers:t.headers}}if(n===Ci.error){if(Wae(t)){var r,i;if(t.data instanceof Error){var o,a;return{type:Ci.error,error:t.data,statusCode:(o=t.init)==null?void 0:o.status,headers:(a=t.init)!=null&&a.headers?new Headers(t.init.headers):void 0}}return{type:Ci.error,error:new iM(((r=t.init)==null?void 0:r.status)||500,void 0,t.data),statusCode:Vw(t)?t.status:void 0,headers:(i=t.init)!=null&&i.headers?new Headers(t.init.headers):void 0}}return{type:Ci.error,error:t,statusCode:Vw(t)?t.status:void 0}}if(LEt(t)){var s,l;return{type:Ci.deferred,deferredData:t,statusCode:(s=t.init)==null?void 0:s.status,headers:((l=t.init)==null?void 0:l.headers)&&new Headers(t.init.headers)}}if(Wae(t)){var c,u;return{type:Ci.data,data:t.data,statusCode:(c=t.init)==null?void 0:c.status,headers:(u=t.init)!=null&&u.headers?new Headers(t.init.headers):void 0}}return{type:Ci.data,data:t}}function MEt(e,t,n,r,i,o){let a=e.headers.get("Location");if(Ur(a,"Redirects returned/thrown from loaders/actions must have a Location header"),!uK.test(a)){let s=r.slice(0,r.findIndex(l=>l.route.id===n)+1);a=Ej(new URL(t.url),s,i,!0,a,o),e.headers.set("Location",a)}return e}function Hae(e,t,n){if(uK.test(e)){let r=e,i=r.startsWith("//")?new URL(t.protocol+r):new URL(r),o=NS(i.pathname,n)!=null;if(i.origin===t.origin&&o)return i.pathname+i.search+i.hash}return e}function lb(e,t,n,r){let i=e.createURL(T2e(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=xj(r.formData):o.body=r.formData}return new Request(i,o)}function xj(e){let t=new URLSearchParams;for(let[n,r]of e.entries())t.append(n,typeof r=="string"?r:r.name);return t}function jae(e){let t=new FormData;for(let[n,r]of e.entries())t.append(n,r);return t}function kEt(e,t,n,r,i){let o={},a=null,s,l=!1,c={},u=n&&uc(n[1])?n[1].error:void 0;return e.forEach(d=>{if(!(d.route.id in t))return;let f=d.route.id,p=t[f];if(Ur(!H0(p),"Cannot handle redirect results in processLoaderData"),uc(p)){let m=p.error;u!==void 0&&(m=u,u=void 0),a=a||{};{let g=w0(e,f);a[g.route.id]==null&&(a[g.route.id]=m)}o[f]=void 0,l||(l=!0,s=Vw(p.error)?p.error.status:500),p.headers&&(c[f]=p.headers)}else km(p)?(r.set(f,p.deferredData),o[f]=p.deferredData.data,p.statusCode!=null&&p.statusCode!==200&&!l&&(s=p.statusCode),p.headers&&(c[f]=p.headers)):(o[f]=p.data,p.statusCode&&p.statusCode!==200&&!l&&(s=p.statusCode),p.headers&&(c[f]=p.headers))}),u!==void 0&&n&&(a={[n[0]]:u},o[n[0]]=void 0),{loaderData:o,errors:a,statusCode:s||200,loaderHeaders:c}}function Uae(e,t,n,r,i,o,a){let{loaderData:s,errors:l}=kEt(t,n,r,a);return i.forEach(c=>{let{key:u,match:d,controller:f}=c,p=o[u];if(Ur(p,"Did not find corresponding fetcher result"),!(f&&f.signal.aborted))if(uc(p)){let m=w0(e.matches,d==null?void 0:d.route.id);l&&l[m.route.id]||(l=_o({},l,{[m.route.id]:p.error})),e.fetchers.delete(u)}else if(H0(p))Ur(!1,"Unhandled fetcher revalidation redirect");else if(km(p))Ur(!1,"Unhandled fetcher deferred data");else{let m=Yh(p.data);e.fetchers.set(u,m)}}),{loaderData:s,errors:l}}function zae(e,t,n,r){let i=_o({},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 Vae(e){return e?uc(e[1])?{actionData:{}}:{actionData:{[e[0]]:e[1].data}}:{}}function w0(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 Gae(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 Sl(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 iM(e||500,s,new Error(l),!0)}function $R(e){let t=Object.entries(e);for(let n=t.length-1;n>=0;n--){let[r,i]=t[n];if(H0(i))return{key:r,result:i}}}function T2e(e){let t=typeof e=="string"?Eh(e):e;return bg(_o({},t,{hash:""}))}function PEt(e,t){return e.pathname!==t.pathname||e.search!==t.search?!1:e.hash===""?t.hash!=="":e.hash===t.hash?!0:t.hash!==""}function DEt(e){return O2e(e.result)&&SEt.has(e.result.status)}function km(e){return e.type===Ci.deferred}function uc(e){return e.type===Ci.error}function H0(e){return(e&&e.type)===Ci.redirect}function Wae(e){return typeof e=="object"&&e!=null&&"type"in e&&"data"in e&&"init"in e&&e.type==="DataWithResponseInit"}function LEt(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 O2e(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.headers=="object"&&typeof e.body<"u"}function $Et(e){return _Et.has(e.toLowerCase())}function Xu(e){return bEt.has(e.toLowerCase())}async function FEt(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&&!x2e(u,c)&&(i&&i[c.route.id])!==void 0;km(l)&&d&&await dK(l,n,!1).then(f=>{f&&(t[s]=f)})}}async function BEt(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)&&km(s)&&(Ur(a,"Expected an AbortController for revalidating fetcher deferred result"),await dK(s,a.signal,!0).then(c=>{c&&(t[i]=c)}))}}async function dK(e,t,n){if(n===void 0&&(n=!1),!await e.deferredData.resolveData(t)){if(n)try{return{type:Ci.data,data:e.deferredData.unwrappedData}}catch(i){return{type:Ci.error,error:i}}return{type:Ci.data,data:e.deferredData.data}}}function fK(e){return new URLSearchParams(e).getAll("index").some(t=>t==="")}function NC(e,t){let n=typeof t=="string"?Eh(t).search:t.search;if(e[e.length-1].route.index&&fK(n||""))return e[e.length-1];let r=_2e(e);return r[r.length-1]}function qae(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 zL(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 HEt(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 BE(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 jEt(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 Yh(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 UEt(e,t){try{let n=e.sessionStorage.getItem(E2e);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 zEt(e,t){if(t.size>0){let n={};for(let[r,i]of t)n[r]=[...i];try{e.sessionStorage.setItem(E2e,JSON.stringify(n))}catch(r){V1(!1,"Failed to save applied view transitions in sessionStorage ("+r+").")}}}/**
* React Router v6.30.1
*
* Copyright (c) Remix Software Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE.md file in the root directory of this source tree.
*
* @license MIT
*/function oM(){return oM=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},oM.apply(this,arguments)}const SD=h.createContext(null),R2e=h.createContext(null),Mg=h.createContext(null),pK=h.createContext(null),Qf=h.createContext({outlet:null,matches:[],isDataRoute:!1}),A2e=h.createContext(null);function VEt(e,t){let{relative:n}=t===void 0?{}:t;MS()||Ur(!1);let{basename:r,navigator:i}=h.useContext(Mg),{hash:o,pathname:a,search:s}=N2e(e,{relative:n}),l=a;return r!=="/"&&(l=a==="/"?r:Xp([r,a])),i.createHref({pathname:l,search:s,hash:o})}function MS(){return h.useContext(pK)!=null}function kS(){return MS()||Ur(!1),h.useContext(pK).location}function I2e(e){h.useContext(Mg).static||h.useLayoutEffect(e)}function ka(){let{isDataRoute:e}=h.useContext(Qf);return e?iCt():GEt()}function GEt(){MS()||Ur(!1);let e=h.useContext(SD),{basename:t,future:n,navigator:r}=h.useContext(Mg),{matches:i}=h.useContext(Qf),{pathname:o}=kS(),a=JSON.stringify(yD(i,n.v7_relativeSplatPath)),s=h.useRef(!1);return I2e(()=>{s.current=!0}),h.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:Xp([t,d.pathname])),(u.replace?r.replace:r.push)(d,u.state,u)},[t,r,a,o,e])}const WEt=h.createContext(null);function qEt(e){let t=h.useContext(Qf).outlet;return t&&h.createElement(WEt.Provider,{value:e},t)}function hK(){let{matches:e}=h.useContext(Qf),t=e[e.length-1];return t?t.params:{}}function N2e(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=h.useContext(Mg),{matches:i}=h.useContext(Qf),{pathname:o}=kS(),a=JSON.stringify(yD(i,r.v7_relativeSplatPath));return h.useMemo(()=>_D(e,JSON.parse(a),o,n==="path"),[e,a,o,n])}function YEt(e,t,n,r){MS()||Ur(!1);let{navigator:i}=h.useContext(Mg),{matches:o}=h.useContext(Qf),a=o[o.length-1],s=a?a.params:{};a&&a.pathname;let l=a?a.pathnameBase:"/";a&&a.route;let c=kS(),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 p=x0(e,{pathname:f});return JEt(p&&p.map(g=>Object.assign({},g,{params:Object.assign({},s,g.params),pathname:Xp([l,i.encodeLocation?i.encodeLocation(g.pathname).pathname:g.pathname]),pathnameBase:g.pathnameBase==="/"?l:Xp([l,i.encodeLocation?i.encodeLocation(g.pathnameBase).pathname:g.pathnameBase])})),o,n,r)}function KEt(){let e=rCt(),t=Vw(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 h.createElement(h.Fragment,null,h.createElement("h2",null,"Unexpected Application Error!"),h.createElement("h3",{style:{fontStyle:"italic"}},t),n?h.createElement("pre",{style:i},n):null,null)}const QEt=h.createElement(KEt,null);class XEt extends h.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?h.createElement(Qf.Provider,{value:this.props.routeContext},h.createElement(A2e.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function ZEt(e){let{routeContext:t,match:n,children:r}=e,i=h.useContext(SD);return i&&i.static&&i.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=n.route.id),h.createElement(Qf.Provider,{value:t},r)}function JEt(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||Ur(!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:p}=n,m=d.route.loader&&f[d.route.id]===void 0&&(!p||p[d.route.id]===void 0);if(d.route.lazy||m){l=!0,c>=0?a=a.slice(0,c+1):a=[a[0]];break}}}return a.reduceRight((u,d,f)=>{let p,m=!1,g=null,v=null;n&&(p=s&&d.route.id?s[d.route.id]:void 0,g=d.route.errorElement||QEt,l&&(c<0&&f===0?(oCt("route-fallback"),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 p?_=g:m?_=v:d.route.Component?_=h.createElement(d.route.Component,null):d.route.element?_=d.route.element:_=u,h.createElement(ZEt,{match:d,routeContext:{outlet:u,matches:y,isDataRoute:n!=null},children:_})};return n&&(d.route.ErrorBoundary||d.route.errorElement||f===0)?h.createElement(XEt,{location:n.location,revalidation:n.revalidation,component:g,error:p,children:b(),routeContext:{outlet:null,matches:y,isDataRoute:!0}}):b()},null)}var M2e=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(M2e||{}),k2e=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}(k2e||{});function eCt(e){let t=h.useContext(SD);return t||Ur(!1),t}function tCt(e){let t=h.useContext(R2e);return t||Ur(!1),t}function nCt(e){let t=h.useContext(Qf);return t||Ur(!1),t}function P2e(e){let t=nCt(),n=t.matches[t.matches.length-1];return n.route.id||Ur(!1),n.route.id}function rCt(){var e;let t=h.useContext(A2e),n=tCt(k2e.UseRouteError),r=P2e();return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function iCt(){let{router:e}=eCt(M2e.UseNavigateStable),t=P2e(),n=h.useRef(!1);return I2e(()=>{n.current=!0}),h.useCallback(function(i,o){o===void 0&&(o={}),n.current&&(typeof i=="number"?e.navigate(i):e.navigate(i,oM({fromRouteId:t},o)))},[e,t])}const Yae={};function oCt(e,t,n){Yae[e]||(Yae[e]=!0)}function aCt(e,t){e==null||e.v7_startTransition,(e==null?void 0:e.v7_relativeSplatPath)===void 0&&(!t||t.v7_relativeSplatPath),t&&(t.v7_fetcherPersist,t.v7_normalizeFormMethod,t.v7_partialHydration,t.v7_skipActionErrorRevalidation)}function sCt(e){let{to:t,replace:n,state:r,relative:i}=e;MS()||Ur(!1);let{future:o,static:a}=h.useContext(Mg),{matches:s}=h.useContext(Qf),{pathname:l}=kS(),c=ka(),u=_D(t,yD(s,o.v7_relativeSplatPath),l,i==="path"),d=JSON.stringify(u);return h.useEffect(()=>c(JSON.parse(d),{replace:n,state:r,relative:i}),[c,d,i,n,r]),null}function ED(e){return qEt(e.context)}function lCt(e){let{basename:t="/",children:n=null,location:r,navigationType:i=ua.Pop,navigator:o,static:a=!1,future:s}=e;MS()&&Ur(!1);let l=t.replace(/^\/*/,"/"),c=h.useMemo(()=>({basename:l,navigator:o,static:a,future:oM({v7_relativeSplatPath:!1},s)}),[l,s,o,a]);typeof r=="string"&&(r=Eh(r));let{pathname:u="/",search:d="",hash:f="",state:p=null,key:m="default"}=r,g=h.useMemo(()=>{let v=NS(u,l);return v==null?null:{location:{pathname:v,search:d,hash:f,state:p,key:m},navigationType:i}},[l,u,d,f,p,m,i]);return g==null?null:h.createElement(Mg.Provider,{value:c},h.createElement(pK.Provider,{children:n,value:g}))}new Promise(()=>{});function D2e(e){let t={hasErrorBoundary:e.ErrorBoundary!=null||e.errorElement!=null};return e.Component&&Object.assign(t,{element:h.createElement(e.Component),Component:void 0}),e.HydrateFallback&&Object.assign(t,{hydrateFallbackElement:h.createElement(e.HydrateFallback),HydrateFallback:void 0}),e.ErrorBoundary&&Object.assign(t,{errorElement:h.createElement(e.ErrorBoundary),ErrorBoundary:void 0}),t}/**
* React Router DOM v6.30.1
*
* Copyright (c) Remix Software Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE.md file in the root directory of this source tree.
*
* @license MIT
*/function __(){return __=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},__.apply(this,arguments)}function cCt(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 uCt(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function dCt(e,t){return e.button===0&&(!t||t==="_self")&&!uCt(e)}const fCt=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],pCt="6";try{window.__reactRouterVersion=pCt}catch{}function hCt(e,t){return C2e({basename:t==null?void 0:t.basename,future:__({},t==null?void 0:t.future,{v7_prependBasename:!0}),history:KSt({window:t==null?void 0:t.window}),hydrationData:(t==null?void 0:t.hydrationData)||L2e(),routes:e,mapRouteProperties:D2e,dataStrategy:t==null?void 0:t.dataStrategy,patchRoutesOnNavigation:t==null?void 0:t.patchRoutesOnNavigation,window:t==null?void 0:t.window}).initialize()}function mCt(e,t){return C2e({basename:t==null?void 0:t.basename,future:__({},t==null?void 0:t.future,{v7_prependBasename:!0}),history:QSt({window:t==null?void 0:t.window}),hydrationData:(t==null?void 0:t.hydrationData)||L2e(),routes:e,mapRouteProperties:D2e,dataStrategy:t==null?void 0:t.dataStrategy,patchRoutesOnNavigation:t==null?void 0:t.patchRoutesOnNavigation,window:t==null?void 0:t.window}).initialize()}function L2e(){var e;let t=(e=window)==null?void 0:e.__staticRouterHydrationData;return t&&t.errors&&(t=__({},t,{errors:gCt(t.errors)})),t}function gCt(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 iM(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 vCt=h.createContext({isTransitioning:!1}),bCt=h.createContext(new Map),yCt="startTransition",Kae=DT[yCt],_Ct="flushSync",Qae=hve[_Ct];function SCt(e){Kae?Kae(e):e()}function HE(e){Qae?Qae(e):e()}class ECt{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 CCt(e){let{fallbackElement:t,router:n,future:r}=e,[i,o]=h.useState(n.state),[a,s]=h.useState(),[l,c]=h.useState({isTransitioning:!1}),[u,d]=h.useState(),[f,p]=h.useState(),[m,g]=h.useState(),v=h.useRef(new Map),{v7_startTransition:y}=r||{},b=h.useCallback(w=>{y?SCt(w):w()},[y]),_=h.useCallback((w,O)=>{let{deletedFetchers:T,flushSync:A,viewTransitionOpts:I}=O;w.fetchers.forEach((D,M)=>{D.data!==void 0&&v.current.set(M,D.data)}),T.forEach(D=>v.current.delete(D));let N=n.window==null||n.window.document==null||typeof n.window.document.startViewTransition!="function";if(!I||N){A?HE(()=>o(w)):b(()=>o(w));return}if(A){HE(()=>{f&&(u&&u.resolve(),f.skipTransition()),c({isTransitioning:!0,flushSync:!0,currentLocation:I.currentLocation,nextLocation:I.nextLocation})});let D=n.window.document.startViewTransition(()=>{HE(()=>o(w))});D.finished.finally(()=>{HE(()=>{d(void 0),p(void 0),s(void 0),c({isTransitioning:!1})})}),HE(()=>p(D));return}f?(u&&u.resolve(),f.skipTransition(),g({state:w,currentLocation:I.currentLocation,nextLocation:I.nextLocation})):(s(w),c({isTransitioning:!0,flushSync:!1,currentLocation:I.currentLocation,nextLocation:I.nextLocation}))},[n.window,f,u,v,b]);h.useLayoutEffect(()=>n.subscribe(_),[n,_]),h.useEffect(()=>{l.isTransitioning&&!l.flushSync&&d(new ECt)},[l]),h.useEffect(()=>{if(u&&a&&n.window){let w=a,O=u.promise,T=n.window.document.startViewTransition(async()=>{b(()=>o(w)),await O});T.finished.finally(()=>{d(void 0),p(void 0),s(void 0),c({isTransitioning:!1})}),p(T)}},[b,a,u,n.window]),h.useEffect(()=>{u&&a&&i.location.key===a.location.key&&u.resolve()},[u,f,i.location,a]),h.useEffect(()=>{!l.isTransitioning&&m&&(s(m.state),c({isTransitioning:!0,flushSync:!1,currentLocation:m.currentLocation,nextLocation:m.nextLocation}),g(void 0))},[l.isTransitioning,m]),h.useEffect(()=>{},[]);let S=h.useMemo(()=>({createHref:n.createHref,encodeLocation:n.encodeLocation,go:w=>n.navigate(w),push:(w,O,T)=>n.navigate(w,{state:O,preventScrollReset:T==null?void 0:T.preventScrollReset}),replace:(w,O,T)=>n.navigate(w,{replace:!0,state:O,preventScrollReset:T==null?void 0:T.preventScrollReset})}),[n]),x=n.basename||"/",E=h.useMemo(()=>({router:n,navigator:S,static:!1,basename:x}),[n,S,x]),C=h.useMemo(()=>({v7_relativeSplatPath:n.future.v7_relativeSplatPath}),[n.future.v7_relativeSplatPath]);return h.useEffect(()=>aCt(r,n.future),[r,n.future]),h.createElement(h.Fragment,null,h.createElement(SD.Provider,{value:E},h.createElement(R2e.Provider,{value:i},h.createElement(bCt.Provider,{value:v.current},h.createElement(vCt.Provider,{value:l},h.createElement(lCt,{basename:x,location:i.location,navigationType:i.historyAction,navigator:S,future:C},i.initialized||n.future.v7_partialHydration?h.createElement(xCt,{routes:n.routes,future:n.future,state:i}):t))))),null)}const xCt=h.memo(wCt);function wCt(e){let{routes:t,future:n,state:r}=e;return YEt(t,void 0,r,n)}const TCt=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",OCt=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,RCt=h.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=cCt(t,fCt),{basename:p}=h.useContext(Mg),m,g=!1;if(typeof c=="string"&&OCt.test(c)&&(m=c,TCt))try{let _=new URL(window.location.href),S=c.startsWith("//")?new URL(_.protocol+c):new URL(c),x=NS(S.pathname,p);S.origin===_.origin&&x!=null?c=x+S.search+S.hash:g=!0}catch{}let v=VEt(c,{relative:i}),y=ACt(c,{replace:a,state:s,target:l,preventScrollReset:u,relative:i,viewTransition:d});function b(_){r&&r(_),_.defaultPrevented||y(_)}return h.createElement("a",__({},f,{href:m||v,onClick:g||o?r:b,ref:n,target:l}))});var Xae;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(Xae||(Xae={}));var Zae;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(Zae||(Zae={}));function ACt(e,t){let{target:n,replace:r,state:i,preventScrollReset:o,relative:a,viewTransition:s}=t===void 0?{}:t,l=ka(),c=kS(),u=N2e(e,{relative:a});return h.useCallback(d=>{if(dCt(d,n)){d.preventDefault();let f=r!==void 0?r:bg(c)===bg(u);l(e,{replace:f,state:i,preventScrollReset:o,relative:a,viewTransition:s})}},[c,l,u,r,i,n,e,o,a,s])}var ICt=z(z({},c_e),{},{locale:"zh_CN",today:"今天",now:"此刻",backToToday:"返回今天",ok:"确定",timeSelect:"选择时间",dateSelect:"选择日期",weekSelect:"选择周",clear:"清除",week:"周",month:"月",year:"年",previousMonth:"上个月 (翻页上键)",nextMonth:"下个月 (翻页下键)",monthSelect:"选择月份",yearSelect:"选择年份",decadeSelect:"选择年代",previousYear:"上一年 (Control键加左方向键)",nextYear:"下一年 (Control键加右方向键)",previousDecade:"上一年代",nextDecade:"下一年代",previousCentury:"上一世纪",nextCentury:"下一世纪",yearFormat:"YYYY年",cellDateFormat:"D",monthBeforeYear:!1});const $2e={placeholder:"请选择时间",rangePlaceholder:["开始时间","结束时间"]},wj={lang:Object.assign({placeholder:"请选择日期",yearPlaceholder:"请选择年份",quarterPlaceholder:"请选择季度",monthPlaceholder:"请选择月份",weekPlaceholder:"请选择周",rangePlaceholder:["开始日期","结束日期"],rangeYearPlaceholder:["开始年份","结束年份"],rangeMonthPlaceholder:["开始月份","结束月份"],rangeQuarterPlaceholder:["开始季度","结束季度"],rangeWeekPlaceholder:["开始周","结束周"]},ICt),timePickerLocale:Object.assign({},$2e)};wj.lang.ok="确定";const ec="${label}不是一个有效的${type}",NCt={locale:"zh-cn",Pagination:Vwe,DatePicker:wj,TimePicker:$2e,Calendar:wj,global:{placeholder:"请选择",close:"关闭"},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:ec,method:ec,array:ec,object:ec,number:ec,date:ec,boolean:ec,integer:ec,float:ec,regexp:ec,email:ec,url:ec,hex:ec},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:"渐变色"}},F2e=0,B2e=1,H2e=2,Jae=3;var ese=Object.prototype.hasOwnProperty;function Tj(e,t){var n,r;if(e===t)return!0;if(e&&t&&(n=e.constructor)===t.constructor){if(n===Date)return e.getTime()===t.getTime();if(n===RegExp)return e.toString()===t.toString();if(n===Array){if((r=e.length)===t.length)for(;r--&&Tj(e[r],t[r]););return r===-1}if(!n||typeof e=="object"){r=0;for(n in e)if(ese.call(e,n)&&++r&&!ese.call(t,n)||!(n in t)||!Tj(e[n],t[n]))return!1;return Object.keys(t).length===r}}return e!==e&&t!==t}const Fp=new WeakMap,Pm=()=>{},Ts=Pm(),aM=Object,li=e=>e===Ts,nd=e=>typeof e=="function",uh=(e,t)=>({...e,...t}),j2e=e=>nd(e.then),VL={},FR={},mK="undefined",N2=typeof window!=mK,Oj=typeof document!=mK,MCt=N2&&"Deno"in window,kCt=()=>N2&&typeof window.requestAnimationFrame!=mK,U2e=(e,t)=>{const n=Fp.get(e);return[()=>!li(t)&&e.get(t)||VL,r=>{if(!li(t)){const i=e.get(t);t in FR||(FR[t]=i),n[5](t,uh(i,r),i||VL)}},n[6],()=>!li(t)&&t in FR?FR[t]:!li(t)&&e.get(t)||VL]};let Rj=!0;const PCt=()=>Rj,[Aj,Ij]=N2&&window.addEventListener?[window.addEventListener.bind(window),window.removeEventListener.bind(window)]:[Pm,Pm],DCt=()=>{const e=Oj&&document.visibilityState;return li(e)||e!=="hidden"},LCt=e=>(Oj&&document.addEventListener("visibilitychange",e),Aj("focus",e),()=>{Oj&&document.removeEventListener("visibilitychange",e),Ij("focus",e)}),$Ct=e=>{const t=()=>{Rj=!0,e()},n=()=>{Rj=!1};return Aj("online",t),Aj("offline",n),()=>{Ij("online",t),Ij("offline",n)}},FCt={isOnline:PCt,isVisible:DCt},BCt={initFocus:LCt,initReconnect:$Ct},tse=!pe.useId,Gw=!N2||MCt,HCt=e=>kCt()?window.requestAnimationFrame(e):setTimeout(e,1),LI=Gw?h.useEffect:h.useLayoutEffect,GL=typeof navigator<"u"&&navigator.connection,nse=!Gw&&GL&&(["slow-2g","2g"].includes(GL.effectiveType)||GL.saveData),BR=new WeakMap,WL=(e,t)=>aM.prototype.toString.call(e)===`[object ${t}]`;let jCt=0;const Nj=e=>{const t=typeof e,n=WL(e,"Date"),r=WL(e,"RegExp"),i=WL(e,"Object");let o,a;if(aM(e)===e&&!n&&!r){if(o=BR.get(e),o)return o;if(o=++jCt+"~",BR.set(e,o),Array.isArray(e)){for(o="@",a=0;a<e.length;a++)o+=Nj(e[a])+",";BR.set(e,o)}if(i){o="#";const s=aM.keys(e).sort();for(;!li(a=s.pop());)li(e[a])||(o+=a+":"+Nj(e[a])+",");BR.set(e,o)}}else o=n?e.toJSON():t=="symbol"?e.toString():t=="string"?JSON.stringify(e):""+e;return o},gK=e=>{if(nd(e))try{e=e()}catch{e=""}const t=e;return e=typeof e=="string"?e:(Array.isArray(e)?e.length:e)?Nj(e):"",[e,t]};let UCt=0;const Mj=()=>++UCt;async function z2e(...e){const[t,n,r,i]=e,o=uh({populateCache:!0,throwOnError:!0},typeof i=="boolean"?{revalidate:i}:i||{});let a=o.populateCache;const s=o.rollbackOnError;let l=o.optimisticData;const c=f=>typeof s=="function"?s(f):s!==!1,u=o.throwOnError;if(nd(n)){const f=n,p=[],m=t.keys();for(const g of m)!/^\$(inf|sub)\$/.test(g)&&f(t.get(g)._k)&&p.push(g);return Promise.all(p.map(d))}return d(n);async function d(f){const[p]=gK(f);if(!p)return;const[m,g]=U2e(t,p),[v,y,b,_]=Fp.get(t),S=()=>{const N=v[p];return(nd(o.revalidate)?o.revalidate(m().data,f):o.revalidate!==!1)&&(delete b[p],delete _[p],N&&N[0])?N[0](H2e).then(()=>m().data):m().data};if(e.length<3)return S();let x=r,E;const C=Mj();y[p]=[C,0];const w=!li(l),O=m(),T=O.data,A=O._c,I=li(A)?T:A;if(w&&(l=nd(l)?l(I,T):l,g({data:l,_c:I})),nd(x))try{x=x(I)}catch(N){E=N}if(x&&j2e(x))if(x=await x.catch(N=>{E=N}),C!==y[p][0]){if(E)throw E;return x}else E&&w&&c(E)&&(a=!0,g({data:I,_c:Ts}));if(a&&!E)if(nd(a)){const N=a(x,I);g({data:N,error:Ts,_c:Ts})}else g({data:x,error:Ts,_c:Ts});if(y[p][1]=Mj(),Promise.resolve(S()).then(()=>{g({_c:Ts})}),E){if(u)throw E;return}return x}}const rse=(e,t)=>{for(const n in e)e[n][0]&&e[n][0](t)},V2e=(e,t)=>{if(!Fp.has(e)){const n=uh(BCt,t),r=Object.create(null),i=z2e.bind(Ts,e);let o=Pm;const a=Object.create(null),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 p=a[u];if(p)for(const m of p)m(d,f)},c=()=>{if(!Fp.has(e)&&(Fp.set(e,[r,Object.create(null),Object.create(null),Object.create(null),i,l,s]),!Gw)){const u=n.initFocus(setTimeout.bind(Ts,rse.bind(Ts,r,F2e))),d=n.initReconnect(setTimeout.bind(Ts,rse.bind(Ts,r,B2e)));o=()=>{u&&u(),d&&d(),Fp.delete(e)}}};return c(),[e,i,c,o]}return[e,Fp.get(e)[4]]},zCt=(e,t,n,r,i)=>{const o=n.errorRetryCount,a=i.retryCount,s=~~((Math.random()+.5)*(1<<(a<8?a:8)))*n.errorRetryInterval;!li(o)&&a>o||setTimeout(r,s,i)},VCt=Tj,[vK,GCt]=V2e(new Map),G2e=uh({onLoadingSlow:Pm,onSuccess:Pm,onError:Pm,onErrorRetry:zCt,onDiscarded:Pm,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:nse?1e4:5e3,focusThrottleInterval:5*1e3,dedupingInterval:2*1e3,loadingTimeout:nse?5e3:3e3,compare:VCt,isPaused:()=>!1,cache:vK,mutate:GCt,fallback:{}},FCt),W2e=(e,t)=>{const n=uh(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=uh(i,a))}return n},kj=h.createContext({}),WCt=e=>{const{value:t}=e,n=h.useContext(kj),r=nd(t),i=h.useMemo(()=>r?t(n):t,[r,n,t]),o=h.useMemo(()=>r?i:W2e(n,i),[r,n,i]),a=i&&i.provider,s=h.useRef(Ts);a&&!s.current&&(s.current=V2e(a(o.cache||vK),i));const l=s.current;return l&&(o.cache=l[0],o.mutate=l[1]),LI(()=>{if(l)return l[2]&&l[2](),l[3]},[]),h.createElement(kj.Provider,uh(e,{value:o}))},qCt="$inf$",q2e=N2&&window.__SWR_DEVTOOLS_USE__,YCt=q2e?window.__SWR_DEVTOOLS_USE__:[],KCt=()=>{q2e&&(window.__SWR_DEVTOOLS_REACT__=pe)},QCt=e=>nd(e[1])?[e[0],e[1],e[2]||{}]:[e[0],null,(e[1]===null?e[2]:e[1])||{}],bK=()=>uh(G2e,h.useContext(kj)),XCt=e=>(t,n,r)=>e(t,n&&((...o)=>{const[a]=gK(t),[,,,s]=Fp.get(vK);if(a.startsWith(qCt))return n(...o);const l=s[a];return li(l)?n(...o):(delete s[a],l)}),r),ZCt=YCt.concat(XCt),JCt=e=>function(...n){const r=bK(),[i,o,a]=QCt(n),s=W2e(r,a);let l=e;const{use:c}=s,u=(c||[]).concat(ZCt);for(let d=u.length;d--;)l=u[d](l);return l(i,o||s.fetcher||null,s)},ext=(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())}};KCt();const qL=pe.use||(e=>{switch(e.status){case"pending":throw e;case"fulfilled":return e.value;case"rejected":throw e.reason;default:throw e.status="pending",e.then(t=>{e.status="fulfilled",e.value=t},t=>{e.status="rejected",e.reason=t}),e}}),YL={dedupe:!0},txt=(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,[p,m,g,v]=Fp.get(r),[y,b]=gK(e),_=h.useRef(!1),S=h.useRef(!1),x=h.useRef(y),E=h.useRef(t),C=h.useRef(n),w=()=>C.current,O=()=>w().isVisible()&&w().isOnline(),[T,A,I,N]=U2e(r,y),D=h.useRef({}).current,M=li(a)?li(n.fallback)?Ts:n.fallback[y]:a,k=(he,me)=>{for(const ce in D){const re=ce;if(re==="data"){if(!i(he[re],me[re])&&(!li(he[re])||!i(Q,me[re])))return!1}else if(me[re]!==he[re])return!1}return!0},P=h.useMemo(()=>{const he=!y||!t?!1:li(s)?w().isPaused()||o?!1:l!==!1:s,me=we=>{const de=uh(we);return delete de._k,he?{isValidating:!0,isLoading:!0,...de}:de},ce=T(),re=N(),ve=me(ce),be=ce===re?ve:me(re);let xe=ve;return[()=>{const we=me(T());return k(we,xe)?(xe.data=we.data,xe.isLoading=we.isLoading,xe.isValidating=we.isValidating,xe.error=we.error,xe):(xe=we,we)},()=>be]},[r,y]),B=yve.useSyncExternalStore(h.useCallback(he=>I(y,(me,ce)=>{k(ce,me)||he()}),[r,y]),P[0],P[1]),G=!_.current,L=p[y]&&p[y].length>0,W=B.data,j=li(W)?M&&j2e(M)?qL(M):M:W,H=B.error,X=h.useRef(j),Q=f?li(W)?li(X.current)?j:X.current:W:j,ue=L&&!li(H)?!1:G&&!li(s)?s:w().isPaused()?!1:o?li(j)?!1:l:li(j)||l,ee=!!(y&&t&&G&&ue),K=li(B.isValidating)?ee:B.isValidating,se=li(B.isLoading)?ee:B.isLoading,le=h.useCallback(async he=>{const me=E.current;if(!y||!me||S.current||w().isPaused())return!1;let ce,re,ve=!0;const be=he||{},xe=!g[y]||!be.dedupe,we=()=>tse?!S.current&&y===x.current&&_.current:y===x.current,de={isValidating:!1,isLoading:!1},Ee=()=>{A(de)},Ne=()=>{const Ve=g[y];Ve&&Ve[1]===re&&delete g[y]},Te={isValidating:!0};li(T().data)&&(Te.isLoading=!0);try{if(xe&&(A(Te),n.loadingTimeout&&li(T().data)&&setTimeout(()=>{ve&&we()&&w().onLoadingSlow(y,n)},n.loadingTimeout),g[y]=[me(b),Mj()]),[ce,re]=g[y],ce=await ce,xe&&setTimeout(Ne,n.dedupingInterval),!g[y]||g[y][1]!==re)return xe&&we()&&w().onDiscarded(y),!1;de.error=Ts;const Ve=m[y];if(!li(Ve)&&(re<=Ve[0]||re<=Ve[1]||Ve[1]===0))return Ee(),xe&&we()&&w().onDiscarded(y),!1;const q=T().data;de.data=i(q,ce)?q:ce,xe&&we()&&w().onSuccess(ce,y,n)}catch(Ve){Ne();const q=w(),{shouldRetryOnError:U}=q;q.isPaused()||(de.error=Ve,xe&&we()&&(q.onError(Ve,y,q),(U===!0||nd(U)&&U(Ve))&&(!w().revalidateOnFocus||!w().revalidateOnReconnect||O())&&q.onErrorRetry(Ve,y,q,Y=>{const ae=p[y];ae&&ae[0]&&ae[0](Jae,Y)},{retryCount:(be.retryCount||0)+1,dedupe:!0})))}return ve=!1,Ee(),!0},[y,r]),oe=h.useCallback((...he)=>z2e(r,x.current,...he),[]);if(LI(()=>{E.current=t,C.current=n,li(W)||(X.current=W)}),LI(()=>{if(!y)return;const he=le.bind(Ts,YL);let me=0;w().revalidateOnFocus&&(me=Date.now()+w().focusThrottleInterval);const re=ext(y,p,(ve,be={})=>{if(ve==F2e){const xe=Date.now();w().revalidateOnFocus&&xe>me&&O()&&(me=xe+w().focusThrottleInterval,he())}else if(ve==B2e)w().revalidateOnReconnect&&O()&&he();else{if(ve==H2e)return le();if(ve==Jae)return le(be)}});return S.current=!1,x.current=y,_.current=!0,A({_k:b}),ue&&(li(j)||Gw?he():HCt(he)),()=>{S.current=!0,re()}},[y]),LI(()=>{let he;function me(){const re=nd(c)?c(T().data):c;re&&he!==-1&&(he=setTimeout(ce,re))}function ce(){!T().error&&(u||w().isVisible())&&(d||w().isOnline())?le(YL).then(me):me()}return me(),()=>{he&&(clearTimeout(he),he=-1)}},[c,u,d,y]),h.useDebugValue(Q),o&&li(j)&&y){if(!tse&&Gw)throw new Error("Fallback data is required when using Suspense in SSR.");E.current=t,C.current=n,S.current=!1;const he=v[y];if(!li(he)){const me=oe(he);qL(me)}if(li(H)){const me=le(YL);li(Q)||(me.status="fulfilled",me.value=!0),qL(me)}else throw H}return{mutate:oe,get data(){return D.data=!0,Q},get error(){return D.error=!0,H},get isValidating(){return D.isValidating=!0,K},get isLoading(){return D.isLoading=!0,se}}},nxt=aM.defineProperty(WCt,"defaultValue",{value:G2e}),yK=JCt(txt),rxt={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:"غلق"}},ixt={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"}},oxt={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:"Hledat",reset:"Resetovat",submit:"Odeslat",collapsed:"Zvětšit",expand:"Zmenšit",inputPlaceholder:"Zadejte prosím",selectPlaceholder:"Vyberte prosím"},alert:{clear:"Vymazat",selected:"Vybráno",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:"Nefixováno",reset:"Resetovat",columnDisplay:"Zobrazení sloupců",columnSetting:"Nastavení",fullScreen:"Celá obrazovka",exitFullScreen:"Ukončit 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"}},switch:{open:"Otevřít",close:"Zavřít"}},axt={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"}},sxt={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"}},lxt={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"}},cxt={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"}},uxt={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:"نزدیک"}},dxt={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"}},fxt={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:"סגור"}},pxt={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"}},hxt={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"}},mxt={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"}},gxt={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:"閉じる"}},vxt={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:"가까 운"}},bxt={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:"Хаах"}},yxt={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"}},_xt={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"}},Sxt={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ć"}},Ext={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"}},Cxt={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"}},xxt={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:"По адресу:"}},wxt={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ť"}},Txt={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:"Затворите"}},Oxt={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"}},Rxt={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:"ปิด"}},Axt={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"}},Ixt={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:"Закрито"}},Nxt={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"}},Mxt={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"}},kxt={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:"关闭"}},Pxt={moneySymbol:"HK$",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:"關閉"}},Dxt={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 fi=function(t,n){return{getMessage:function(i,o){var a=No(n,i.replace(/\[(\d+)\]/g,".$1").split("."))||"";if(a)return a;var s=t.replace("_","-");if(s==="zh-CN")return o;var l=G1["zh-CN"];return l?l.getMessage(i,o):o},locale:t}},Lxt=fi("mn_MN",bxt),$xt=fi("ar_EG",rxt),xy=fi("zh_CN",kxt),Fxt=fi("en_US",lxt),Bxt=fi("en_GB",sxt),Hxt=fi("vi_VN",Mxt),jxt=fi("it_IT",mxt),Uxt=fi("ja_JP",gxt),zxt=fi("es_ES",cxt),Vxt=fi("ca_ES",ixt),Gxt=fi("ru_RU",xxt),Wxt=fi("sr_RS",Txt),qxt=fi("ms_MY",yxt),Yxt=fi("zh_TW",Dxt),Kxt=fi("zh_HK",Pxt),Qxt=fi("fr_FR",dxt),Xxt=fi("pt_BR",Ext),Zxt=fi("ko_KR",vxt),Jxt=fi("id_ID",hxt),ewt=fi("de_DE",axt),twt=fi("fa_IR",uxt),nwt=fi("tr_TR",Axt),rwt=fi("pl_PL",Sxt),iwt=fi("hr_",pxt),owt=fi("th_TH",Rxt),awt=fi("cs_cz",oxt),swt=fi("sk_SK",wxt),lwt=fi("he_IL",fxt),cwt=fi("uk_UA",Ixt),uwt=fi("uz_UZ",Nxt),dwt=fi("nl_NL",_xt),fwt=fi("ro_RO",Cxt),pwt=fi("sv_SE",Oxt),G1={"mn-MN":Lxt,"ar-EG":$xt,"zh-CN":xy,"en-US":Fxt,"en-GB":Bxt,"vi-VN":Hxt,"it-IT":jxt,"ja-JP":Uxt,"es-ES":zxt,"ca-ES":Vxt,"ru-RU":Gxt,"sr-RS":Wxt,"ms-MY":qxt,"zh-TW":Yxt,"zh-HK":Kxt,"fr-FR":Qxt,"pt-BR":Xxt,"ko-KR":Zxt,"id-ID":Jxt,"de-DE":ewt,"fa-IR":twt,"tr-TR":nwt,"pl-PL":rwt,"hr-HR":iwt,"th-TH":owt,"cs-CZ":awt,"sk-SK":swt,"he-IL":lwt,"uk-UA":cwt,"uz-UZ":uwt,"nl-NL":dwt,"ro-RO":fwt,"sv-SE":pwt},hwt=Object.keys(G1),Y2e=function(t){var n=(t||"zh-CN").toLocaleLowerCase();return hwt.find(function(r){var i=r.toLocaleLowerCase();return i.includes(n)})};function is(e,t){mwt(e)&&(e="100%");var n=gwt(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 HR(e){return Math.min(1,Math.max(0,e))}function mwt(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function gwt(e){return typeof e=="string"&&e.indexOf("%")!==-1}function K2e(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function jR(e){return e<=1?"".concat(Number(e)*100,"%"):e}function j0(e){return e.length===1?"0"+e:String(e)}function vwt(e,t,n){return{r:is(e,255)*255,g:is(t,255)*255,b:is(n,255)*255}}function ise(e,t,n){e=is(e,255),t=is(t,255),n=is(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 KL(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 bwt(e,t,n){var r,i,o;if(e=is(e,360),t=is(t,100),n=is(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=KL(s,a,e+1/3),i=KL(s,a,e),o=KL(s,a,e-1/3)}return{r:r*255,g:i*255,b:o*255}}function ose(e,t,n){e=is(e,255),t=is(t,255),n=is(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 ywt(e,t,n){e=is(e,360)*6,t=is(t,100),n=is(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 ase(e,t,n,r){var i=[j0(Math.round(e).toString(16)),j0(Math.round(t).toString(16)),j0(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 _wt(e,t,n,r,i){var o=[j0(Math.round(e).toString(16)),j0(Math.round(t).toString(16)),j0(Math.round(n).toString(16)),j0(Swt(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 Swt(e){return Math.round(parseFloat(e)*255).toString(16)}function sse(e){return tc(e)/255}function tc(e){return parseInt(e,16)}function Ewt(e){return{r:e>>16,g:(e&65280)>>8,b:e&255}}var Pj={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 Cwt(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=Twt(e)),typeof e=="object"&&(sp(e.r)&&sp(e.g)&&sp(e.b)?(t=vwt(e.r,e.g,e.b),a=!0,s=String(e.r).substr(-1)==="%"?"prgb":"rgb"):sp(e.h)&&sp(e.s)&&sp(e.v)?(r=jR(e.s),i=jR(e.v),t=ywt(e.h,r,i),a=!0,s="hsv"):sp(e.h)&&sp(e.s)&&sp(e.l)&&(r=jR(e.s),o=jR(e.l),t=bwt(e.h,r,o),a=!0,s="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(n=e.a)),n=K2e(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+%?",wwt="[-\\+]?\\d*\\.\\d+%?",Dm="(?:".concat(wwt,")|(?:").concat(xwt,")"),QL="[\\s|\\(]+(".concat(Dm,")[,|\\s]+(").concat(Dm,")[,|\\s]+(").concat(Dm,")\\s*\\)?"),XL="[\\s|\\(]+(".concat(Dm,")[,|\\s]+(").concat(Dm,")[,|\\s]+(").concat(Dm,")[,|\\s]+(").concat(Dm,")\\s*\\)?"),Fu={CSS_UNIT:new RegExp(Dm),rgb:new RegExp("rgb"+QL),rgba:new RegExp("rgba"+XL),hsl:new RegExp("hsl"+QL),hsla:new RegExp("hsla"+XL),hsv:new RegExp("hsv"+QL),hsva:new RegExp("hsva"+XL),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 Twt(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var t=!1;if(Pj[e])e=Pj[e],t=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var n=Fu.rgb.exec(e);return n?{r:n[1],g:n[2],b:n[3]}:(n=Fu.rgba.exec(e),n?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=Fu.hsl.exec(e),n?{h:n[1],s:n[2],l:n[3]}:(n=Fu.hsla.exec(e),n?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=Fu.hsv.exec(e),n?{h:n[1],s:n[2],v:n[3]}:(n=Fu.hsva.exec(e),n?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=Fu.hex8.exec(e),n?{r:tc(n[1]),g:tc(n[2]),b:tc(n[3]),a:sse(n[4]),format:t?"name":"hex8"}:(n=Fu.hex6.exec(e),n?{r:tc(n[1]),g:tc(n[2]),b:tc(n[3]),format:t?"name":"hex"}:(n=Fu.hex4.exec(e),n?{r:tc(n[1]+n[1]),g:tc(n[2]+n[2]),b:tc(n[3]+n[3]),a:sse(n[4]+n[4]),format:t?"name":"hex8"}:(n=Fu.hex3.exec(e),n?{r:tc(n[1]+n[1]),g:tc(n[2]+n[2]),b:tc(n[3]+n[3]),format:t?"name":"hex"}:!1)))))))))}function sp(e){return!!Fu.CSS_UNIT.exec(String(e))}var Owt=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=Ewt(t)),this.originalInput=t;var i=Cwt(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=K2e(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=ose(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=ose(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=ise(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=ise(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),ase(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),_wt(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(is(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(is(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="#"+ase(this.r,this.g,this.b,!1),n=0,r=Object.entries(Pj);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=HR(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=HR(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=HR(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=HR(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}(),ZL,Ww={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"},Q2e=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)},_K=a_(function(e){return e}),X2e={theme:_K,token:z(z({},Ww),Cs==null||(ZL=Cs.defaultAlgorithm)===null||ZL===void 0?void 0:ZL.call(Cs,Cs==null?void 0:Cs.defaultSeed)),hashId:"pro-".concat(Q2e(JSON.stringify(Ww)))},Rwt=function(){return X2e};const Awt=Object.freeze(Object.defineProperty({__proto__:null,defaultToken:Ww,emptyTheme:_K,hashCode:Q2e,token:X2e,useToken:Rwt},Symbol.toStringTag,{value:"Module"}));var nc=function(t,n){return new Owt(t).setAlpha(n).toRgbString()},Iwt=function(){return typeof Cs>"u"||!Cs?Awt:Cs},Ff=Iwt(),$I=Ff.useToken,JL=function(t){return{boxSizing:"border-box",margin:0,padding:0,color:t.colorText,fontSize:t.fontSize,lineHeight:t.lineHeight,listStyle:"none"}};function Gi(e,t){var n,r=h.useContext(md),i=r.token,o=i===void 0?{}:i,a=h.useContext(md),s=a.hashed,l=$I(),c=l.token,u=l.hashId,d=h.useContext(md);d.theme;var f=h.useContext(Ln.ConfigContext),p=f.getPrefixCls,m=f.csp;return o.layout||(o=z({},c)),o.proComponentsCls=(n=o.proComponentsCls)!==null&&n!==void 0?n:".".concat(p("pro")),o.antCls=".".concat(p()),{wrapSSR:u_({token:o,path:[e],nonce:m==null?void 0:m.nonce,layer:{name:"antd-pro",dependencies:["antd"]}},function(){return t(o)}),hashId:s?u:""}}var Nwt=function(t,n){var r,i,o,a,s,l=z({},t);return z(z({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:nc(n.colorTextBase,.04),colorTextAppListIconHover:n.colorTextBase},l),{},{header:z({colorBgHeader:nc(n.colorBgElevated,.6),colorBgScrollHeader:nc(n.colorBgElevated,.8),colorHeaderTitle:n.colorText,colorBgMenuItemHover:nc(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:nc(n.colorTextBase,.95),colorBgRightActionsItemHover:nc(n.colorTextBase,.03),colorTextRightActionsItem:n.colorTextTertiary,heightLayoutHeader:56,colorTextMenu:n.colorTextSecondary,colorTextMenuSecondary:n.colorTextTertiary,colorTextMenuTitle:n.colorText,colorTextMenuActive:n.colorText},l.header),sider:z({paddingInlineLayoutMenu:8,paddingBlockLayoutMenu:0,colorBgCollapsedButton:n.colorBgElevated,colorTextCollapsedButtonHover:n.colorTextSecondary,colorTextCollapsedButton:nc(n.colorTextBase,.25),colorMenuBackground:"transparent",colorMenuItemDivider:nc(n.colorTextBase,.06),colorBgMenuItemHover:nc(n.colorTextBase,.03),colorBgMenuItemSelected:nc(n.colorTextBase,.04),colorTextMenuItemHover:n.colorText,colorTextMenuSelected:nc(n.colorTextBase,.95),colorTextMenuActive:n.colorText,colorTextMenu:n.colorTextSecondary,colorTextMenuSecondary:n.colorTextTertiary,colorTextMenuTitle:n.colorText,colorTextSubMenuSelected:nc(n.colorTextBase,.95)},l.sider),pageContainer:z({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)})},Mwt=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)&&(qt(t[a])==="object"&&qt(r[s][a])==="object"&&t[a]!==void 0&&t[a]!==null&&!Array.isArray(t[a])&&!Array.isArray(r[s][a])?t[a]=z(z({},t[a]),r[s][a]):t[a]=r[s][a]);return t},kwt={exports:{}};(function(e,t){(function(n,r){e.exports=r(hCe)})(Wn,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})})(kwt);var Pwt=["locale","getPrefixCls"],Dwt=["locale","theme"],Lwt=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},wy=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"))},yg=pe.createContext({intl:z(z({},xy),{},{locale:"default"}),valueTypeMap:{},theme:_K,hashed:!0,dark:!1,token:Ww});yg.Consumer;var $wt=function(){var t=bK(),n=t.cache;return h.useEffect(function(){return function(){n.clear()}},[]),null},Fwt=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=h.useContext(Ln.ConfigContext),f=d.locale,p=d.getPrefixCls,m=kt(d,Pwt),g=(n=Ff.useToken)===null||n===void 0?void 0:n.call(Ff),v=h.useContext(yg),y=c?".".concat(c):".".concat(p(),"-pro"),b="."+p(),_="".concat(y),S=h.useMemo(function(){return Nwt(l||{},g.token||Ww)},[l,g.token]),x=h.useMemo(function(){var k,P=f==null?void 0:f.locale,B=Y2e(P),G=u??(P&&((k=v.intl)===null||k===void 0?void 0:k.locale)==="default"?G1[B]:v.intl||G1[B]);return z(z({},v),{},{dark:i??v.dark,token:Mwt(v.token,g.token,{proComponentsCls:y,antCls:b,themeId:g.theme.id,layout:S}),intl:G||xy})},[f==null?void 0:f.locale,v,i,g.token,g.theme.id,y,b,S,u]),E=z(z({},x.token||{}),{},{proComponentsCls:y}),C=bq(g.theme,[g.token,E??{}],{salt:_,override:E}),w=Re(C,2),O=w[0],T=w[1],A=h.useMemo(function(){return!(t.hashed===!1||v.hashed===!1)},[v.hashed,t.hashed]),I=h.useMemo(function(){return t.hashed===!1||v.hashed===!1||wy()===!1?"":g.hashId?g.hashId:T},[T,v.hashed,t.hashed]);h.useEffect(function(){Sr.locale((f==null?void 0:f.locale)||"zh-cn")},[f==null?void 0:f.locale]);var N=h.useMemo(function(){return z(z({},m.theme),{},{hashId:I,hashed:A&&wy()})},[m.theme,I,A,wy()]),D=h.useMemo(function(){return z(z({},x),{},{valueTypeMap:o||(x==null?void 0:x.valueTypeMap),token:O,theme:g.theme,hashed:A,hashId:I})},[x,o,O,g.theme,A,I]),M=h.useMemo(function(){return F.jsx(Ln,z(z({},m),{},{theme:N,children:F.jsx(yg.Provider,{value:D,children:F.jsxs(F.Fragment,{children:[s&&F.jsx($wt,{}),r]})})}))},[m,N,D,s,r]);return s?F.jsx(nxt,{value:{provider:function(){return new Map}},children:M}):M},CD=function(t){var n=t.needDeps,r=t.dark,i=t.token,o=h.useContext(yg),a=h.useContext(Ln.ConfigContext),s=a.locale,l=a.theme,c=kt(a,Dwt),u=n&&o.hashId!==void 0&&Object.keys(t).sort().join("-")==="children-needDeps";if(u)return F.jsx(F.Fragment,{children:t.children});var d=function(){var m=r??o.dark;return m&&!Array.isArray(l==null?void 0:l.algorithm)?[l==null?void 0:l.algorithm,Ff.darkAlgorithm].filter(Boolean):m&&Array.isArray(l==null?void 0:l.algorithm)?[].concat(rt((l==null?void 0:l.algorithm)||[]),[Ff.darkAlgorithm]).filter(Boolean):l==null?void 0:l.algorithm},f=z(z({},c),{},{locale:s||NCt,theme:Lwt(z(z({},l),{},{algorithm:d()}))});return F.jsx(Ln,z(z({},f),{},{children:F.jsx(Fwt,z(z({},t),{},{token:i}))}))};function Lo(){var e=h.useContext(Ln.ConfigContext),t=e.locale,n=h.useContext(yg),r=n.intl;return r&&r.locale!=="default"?r||xy:t!=null&&t.locale&&G1[Y2e(t.locale)]||xy}yg.displayName="ProProvider";var md=yg,Bwt=function(t){return te({},t.componentCls,{display:"flex",justifyContent:"space-between",paddingBlock:8,paddingInlineStart:8,paddingInlineEnd:8,borderBlockStart:"1px solid ".concat(t.colorSplit)})};function Hwt(e){return Gi("DropdownFooter",function(t){var n=z(z({},t),{},{componentCls:".".concat(e)});return[Bwt(n)]})}var jwt=function(t){var n=Lo(),r=t.onClear,i=t.onConfirm,o=t.disabled,a=t.footerRender,s=h.useContext(Ln.ConfigContext),l=s.getPrefixCls,c=l("pro-core-dropdown-footer"),u=Hwt(c),d=u.wrapSSR,f=u.hashId,p=[F.jsx(Dn,{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"),F.jsx(Dn,{"data-type":"confirm",type:"primary",size:"small",onClick:i,disabled:o,children:n.getMessage("form.lightFilter.confirm","确认")},"confirm")];if(a===!1||(a==null?void 0:a(i,r))===!1)return null;var m=(a==null?void 0:a(i,r))||p;return d(F.jsx("div",{className:Ce(c,f),onClick:function(v){return v.target.getAttribute("data-type")!=="confirm"&&v.stopPropagation()},children:m}))},Uwt=function(e){Fs(n,e);var t=ll(n);function n(){var r;Qr(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)),te(sn(r),"state",{hasError:!1,errorInfo:""}),r}return Xr(n,[{key:"componentDidCatch",value:function(i,o){console.log(i,o)}},{key:"render",value:function(){return this.state.hasError?F.jsx(O2,{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}(pe.Component),zwt=function(t){return te({},t.componentCls,te(te(te(te(te(te(te(te({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":te({paddingBlock:0,paddingInline:8,backgroundColor:t.colorBgTextHover},"&".concat(t.componentCls,"-allow-clear:hover:not(").concat(t.componentCls,"-disabled)"),te(te({},"".concat(t.componentCls,"-arrow"),{display:"none"}),"".concat(t.componentCls,"-close"),{display:"inline-flex"}))},"".concat(t.antCls,"-select"),te({},"".concat(t.antCls,"-select-clear"),{borderRadius:"50%"})),"".concat(t.antCls,"-picker"),te({},"".concat(t.antCls,"-picker-clear"),{borderRadius:"50%"})),"&-icon",te(te({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",te({color:t.colorTextPlaceholder,cursor:"not-allowed"},"".concat(t.componentCls,"-icon"),{color:t.colorTextPlaceholder})),"&-small",te(te(te({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 Vwt(e){return Gi("FieldLabel",function(t){var n=z(z({},t),{},{componentCls:".".concat(e)});return[zwt(n)]})}var Gwt=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,p=t.className,m=t.formatter,g=t.bordered,v=t.style,y=t.downIcon,b=t.allowClear,_=b===void 0?!0:b,S=t.valueMaxLength,x=S===void 0?41:S,E=(Ln==null||(r=Ln.useConfig)===null||r===void 0?void 0:r.call(Ln))||{componentSize:"middle"},C=E.componentSize,w=C,O=h.useContext(Ln.ConfigContext),T=O.getPrefixCls,A=T("pro-core-field-label"),I=Vwt(A),N=I.wrapSSR,D=I.hashId,M=Lo(),k=h.useRef(null),P=h.useRef(null);h.useImperativeHandle(n,function(){return{labelRef:P,clearRef:k}});var B=function(j){return j.every(function(H){return typeof H=="string"})?j.join(","):j.map(function(H,X){var Q=X===j.length-1?"":",";return typeof H=="string"?F.jsxs("span",{children:[H,Q]},X):F.jsxs("span",{style:{display:"flex"},children:[H,Q]},X)})},G=function(j){return m?m(j):Array.isArray(j)?B(j):j},L=function(j,H){if(H!=null&&H!==""&&(!Array.isArray(H)||H.length)){var X,Q,ue=j?F.jsxs("span",{onClick:function(){u==null||u()},className:"".concat(A,"-text"),children:[j,": "]}):"",ee=G(H);if(!d)return F.jsxs("span",{style:{display:"inline-flex",alignItems:"center"},children:[ue,G(H)]});var K=function(){var oe=Array.isArray(H)&&H.length>1,ne=M.getMessage("form.lightFilter.itemUnit","项");return typeof ee=="string"&&ee.length>x&&oe?"...".concat(H.length).concat(ne):""},se=K();return F.jsxs("span",{title:typeof ee=="string"?ee:void 0,style:{display:"inline-flex",alignItems:"center"},children:[ue,F.jsx("span",{style:{paddingInlineStart:4,display:"flex"},children:typeof ee=="string"?ee==null||(X=ee.toString())===null||X===void 0||(Q=X.slice)===null||Q===void 0?void 0:Q.call(X,0,x):ee}),se]})}return j||f};return N(F.jsxs("span",{className:Ce(A,D,"".concat(A,"-").concat((i=(o=t.size)!==null&&o!==void 0?o:w)!==null&&i!==void 0?i:"middle"),te(te(te(te({},"".concat(A,"-active"),(Array.isArray(l)?l.length>0:!!l)||l===0),"".concat(A,"-disabled"),c),"".concat(A,"-bordered"),g),"".concat(A,"-allow-clear"),_),p),style:v,ref:P,onClick:function(){var j;t==null||(j=t.onClick)===null||j===void 0||j.call(t)},children:[L(a,l),(l||l===0)&&_&&F.jsx(qf,{role:"button",title:M.getMessage("form.lightFilter.clear","清除"),className:Ce("".concat(A,"-icon"),D,"".concat(A,"-close")),onClick:function(j){c||s==null||s(),j.stopPropagation()},ref:k}),y!==!1?y??F.jsx(d2,{className:Ce("".concat(A,"-icon"),D,"".concat(A,"-arrow"))}):null]}))},Ch=pe.forwardRef(Gwt),tu=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},Wwt=/^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-([\da-z\-]+(?:\.[\da-z\-]+)*))?(?:\+[\da-z\-]+(?:\.[\da-z\-]+)*)?)?)?$/i,lse=function(t){return t==="*"||t==="x"||t==="X"},cse=function(t){var n=parseInt(t,10);return isNaN(n)?t:n},qwt=function(t,n){return qt(t)!==qt(n)?[String(t),String(n)]:[t,n]},Ywt=function(t,n){if(lse(t)||lse(n))return 0;var r=qwt(cse(t),cse(n)),i=Re(r,2),o=i[0],a=i[1];return o>a?1:o<a?-1:0},Kwt=function(t,n){for(var r=0;r<Math.max(t.length,n.length);r++){var i=Ywt(t[r]||"0",n[r]||"0");if(i!==0)return i}return 0},use=function(t){var n,r=t.match(Wwt);return r==null||(n=r.shift)===null||n===void 0||n.call(r),r},M2=function(t,n){var r=use(t),i=use(n),o=r.pop(),a=i.pop(),s=Kwt(r,i);return s!==0?s:o||a?o?-1:1:0},Z2e=function(){var t;return typeof process>"u"?oh:((t=process)===null||t===void 0||(t=t.env)===null||t===void 0?void 0:t.ANTD_VERSION)||oh},k2=function(t,n){var r=M2(Z2e(),"4.23.0")>-1?{open:t,onOpenChange:n}:{visible:t,onVisibleChange:n};return tu(r)},Qwt=function(t){return te(te(te({},"".concat(t.componentCls,"-label"),{cursor:"pointer"}),"".concat(t.componentCls,"-overlay"),{minWidth:"200px",marginBlockStart:"4px"}),"".concat(t.componentCls,"-content"),{paddingBlock:16,paddingInline:16})};function Xwt(e){return Gi("FilterDropdown",function(t){var n=z(z({},t),{},{componentCls:".".concat(e)});return[Qwt(n)]})}var Zwt=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=h.useContext(Ln.ConfigContext),p=f.getPrefixCls,m=p("pro-core-field-dropdown"),g=Xwt(m),v=g.wrapSSR,y=g.hashId,b=k2(o||c||!1,a||l),_=h.useRef(null);return v(F.jsx(bu,z(z({placement:d,trigger:["click"]},b),{},{overlayInnerStyle:{padding:0},content:F.jsxs("div",{ref:_,className:Ce("".concat(m,"-overlay"),te(te({},"".concat(m,"-overlay-").concat(d),d),"hashId",y)),children:[F.jsx(Ln,{getPopupContainer:function(){return _.current||document.body},children:F.jsx("div",{className:"".concat(m,"-content ").concat(y).trim(),children:n})}),i&&F.jsx(jwt,z({disabled:s,footerRender:u},i))]}),children:F.jsx("span",{className:"".concat(m,"-label ").concat(y).trim(),children:r})})))},Jwt=function(t){return te({},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 eTt(e){return Gi("LabelIconTip",function(t){var n=z(z({},t),{},{componentCls:".".concat(e)});return[Jwt(n)]})}var tTt=pe.memo(function(e){var t=e.label,n=e.tooltip,r=e.ellipsis,i=e.subTitle,o=h.useContext(Ln.ConfigContext),a=o.getPrefixCls,s=a("pro-core-label-tip"),l=eTt(s),c=l.wrapSSR,u=l.hashId;if(!n&&!i)return F.jsx(F.Fragment,{children:t});var d=typeof n=="string"||pe.isValidElement(n)?{title:n}:n,f=(d==null?void 0:d.icon)||F.jsx(jgt,{});return c(F.jsxs("div",{className:Ce(s,u),onMouseDown:function(m){return m.stopPropagation()},onMouseLeave:function(m){return m.stopPropagation()},onMouseMove:function(m){return m.stopPropagation()},children:[F.jsx("div",{className:Ce("".concat(s,"-title"),u,te({},"".concat(s,"-title-ellipsis"),r)),children:t}),i&&F.jsx("div",{className:"".concat(s,"-subtitle ").concat(u).trim(),children:i}),n&&F.jsx(Na,z(z({},d),{},{children:F.jsx("span",{className:"".concat(s,"-icon ").concat(u).trim(),children:f})}))]}))}),J2e=pe.createContext({}),eOe={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(Wn,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 p=this.quarter()-1;return f?this.month(3*p).startOf(n).startOf("day"):this.month(3*p+2).endOf(n).endOf("day")}return l.bind(this)(c,u)}}})})(eOe);var nTt=eOe.exports;const rTt=oi(nTt);var W1=function(t){return t==null};Sr.extend(rTt);var tOe={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 dse(e){return Object.prototype.toString.call(e)==="[object Object]"}function iTt(e){if(dse(e)===!1)return!1;var t=e.constructor;if(t===void 0)return!0;var n=t.prototype;return!(dse(n)===!1||n.hasOwnProperty("isPrototypeOf")===!1)}var Dj=function(t){return!!(t!=null&&t._isAMomentObject)},fse=function(t,n,r){if(!n)return t;if(Sr.isDayjs(t)||Dj(t)){if(n==="number")return t.valueOf();if(n==="string")return t.format(tOe[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},oTt=function e(t,n,r,i,o){var a={};return typeof window>"u"||qt(t)!=="object"||W1(t)||t instanceof Blob||Array.isArray(t)?t:(Object.keys(t).forEach(function(s){var l=o?[o,s].flat(1):[s],c=No(r,l)||"text",u="text",d;typeof c=="string"?u=c:(u=c.valueType,d=c.dateFormat);var f=t[s];if(!(W1(f)&&i)){if(iTt(f)&&!Array.isArray(f)&&!Sr.isDayjs(f)&&!Dj(f)){a[s]=e(f,n,r,i,l);return}if(Array.isArray(f)){a[s]=f.map(function(p,m){return Sr.isDayjs(p)||Dj(p)?fse(p,d||n,u):e(p,n,r,i,[s,"".concat(m)].flat(1))});return}a[s]=fse(f,d||n,u)}}),a)},pse=function(t,n){return typeof n=="function"?n(Sr(t)):Sr(t).format(n)},nOe=function(t,n){var r=Array.isArray(t)?t:[],i=Re(r,2),o=i[0],a=i[1],s,l;Array.isArray(n)?(s=n[0],l=n[1]):qt(n)==="object"&&n.type==="mask"?(s=n.format,l=n.format):(s=n,l=n);var c=o?pse(o,s):"",u=a?pse(a,l):"",d=c&&u?"".concat(c," ~ ").concat(u):"";return d};function q1(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 rOe(e){if(M2(Z2e(),"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=z({},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=h.useRef(null);return n.current=t,h.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(rt(o)))},[])};function aTt(e,t){var n=gd(e),r=h.useRef(),i=h.useCallback(function(){r.current&&(clearTimeout(r.current),r.current=null)},[]),o=h.useCallback(Ui(rr().mark(function a(){var s,l,c,u=arguments;return rr().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(p){r.current=setTimeout(Ui(rr().mark(function m(){return rr().wrap(function(v){for(;;)switch(v.prev=v.next){case 0:return v.t0=p,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 h.useEffect(function(){return i},[i]),{run:o,cancel:i}}var sTt=function(t){var n=h.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=h.useState(e),i=Re(r,2),o=i[0],a=i[1],s=sTt(e);return h.useEffect(function(){var l=setTimeout(function(){a(s.current)},t);return function(){return clearTimeout(l)}},n?[t].concat(rt(n)):void 0),o}function f1(e,t,n,r){if(e===t)return!0;if(e&&t&&qt(e)==="object"&&qt(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(!f1(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=yf(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=yf(e.entries()),u;try{for(c.s();!(u=c.n()).done;)if(o=u.value,!f1(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=yf(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 p=a[o];if(!(n!=null&&n.includes(p))&&!(p==="_owner"&&e.$$typeof)&&!f1(e[p],t[p],n,r))return!1}return!0}return e!==e&&t!==t}var cTt=function(t,n,r){return f1(t,n,r)};function iOe(e,t){var n=h.useRef();return cTt(e,n.current,t)||(n.current=e),n.current}function uTt(e,t,n){h.useEffect(e,iOe(t||[],n))}function yl(e,t){return pe.useMemo(e,iOe(t))}var dTt=typeof process<"u"&&process.versions!=null&&process.versions.node!=null,SK=function(){return typeof window<"u"&&typeof window.document<"u"&&typeof window.matchMedia<"u"&&!dTt};function fTt(e,t){var n=typeof e.pageName=="string"?e.title:t;h.useEffect(function(){SK()&&n&&(document.title=n)},[e.title,n])}var e$=0;function pTt(e){var t=h.useRef(null),n=h.useState(function(){return e.proFieldKey?e.proFieldKey.toString():(e$+=1,e$.toString())}),r=Re(n,1),i=r[0],o=h.useRef(i),a=function(){var u=Ui(rr().mark(function d(){var f,p,m,g;return rr().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([(p=e.request)===null||p===void 0?void 0:p.call(e,e.params,e),new Promise(function(b,_){var S;(S=t.current)===null||S===void 0||(S=S.signal)===null||S===void 0||S.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)}}();h.useEffect(function(){return function(){e$+=1}},[]);var s=yK([o.current,e.params],a,{revalidateOnFocus:!1,shouldRetryOnError:!1,revalidateOnReconnect:!1}),l=s.data,c=s.error;return[l||c]}var hTt=function(t){var n=h.useRef();return h.useEffect(function(){n.current=t}),n.current},mTt=function(t){var n=!1;return(typeof t=="string"&&t.startsWith("date")&&!t.endsWith("Range")||t==="select"||t==="time")&&(n=!0),n};function gTt(e){return/\w.(png|jpg|jpeg|svg|webp|gif|bmp)$/i.test(e)}var EK=function(t){if(!t||!t.startsWith("http"))return!1;try{var n=new URL(t);return!!n}catch{return!1}},oOe=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)&&(qt(t[a])==="object"&&qt(r[s][a])==="object"&&t[a]!==void 0&&t[a]!==null&&!Array.isArray(t[a])&&!Array.isArray(r[s][a])?t[a]=z(z({},t[a]),r[s][a]):t[a]=r[s][a]);return t},hse=0,mse=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:21;if(typeof window>"u"||!window.crypto)return(hse+=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},sM=function(){return typeof window>"u"?mse():window.crypto&&window.crypto.randomUUID&&typeof crypto.randomUUID=="function"?crypto.randomUUID():mse()};Sr.extend(xCe);var gse=function(t){return!!(t!=null&&t._isAMomentObject)},P2=function e(t,n){return W1(t)||Sr.isDayjs(t)||gse(t)?gse(t)?Sr(t):t:Array.isArray(t)?t.map(function(r){return e(r,n)}):typeof t=="number"?Sr(t):Sr(t,n)},vTt=["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","validateDebounce","addonBefore","addonAfter","addonWarpStyle"];function bTt(e){var t={};return vTt.forEach(function(n){e[n]!==void 0&&(t[n]=e[n])}),t}var yTt="valueType request plain renderFormItem render text formItemProps valueEnum",_Tt="fieldProps isDefaultDom groupProps contentRender submitterProps submitter";function aOe(e){var t="".concat(yTt," ").concat(_Tt).split(/[\s\n]+/),n={};return Object.keys(e||{}).forEach(function(r){t.includes(r)||(n[r]=e[r])}),n}function STt(e){var t=Object.prototype.toString.call(e).match(/^\[object (.*)\]$/)[1].toLowerCase();return t==="string"&&qt(e)==="object"?"object":e===null?"null":e===void 0?"undefined":t}var ETt=function(t){var n=t.color,r=t.children;return F.jsx(_l,{color:n,text:r})},xh=function(t){return STt(t)==="map"?t:new Map(Object.entries(t||{}))},CTt={Success:function(t){var n=t.children;return F.jsx(_l,{status:"success",text:n})},Error:function(t){var n=t.children;return F.jsx(_l,{status:"error",text:n})},Default:function(t){var n=t.children;return F.jsx(_l,{status:"default",text:n})},Processing:function(t){var n=t.children;return F.jsx(_l,{status:"processing",text:n})},Warning:function(t){var n=t.children;return F.jsx(_l,{status:"warning",text:n})},success:function(t){var n=t.children;return F.jsx(_l,{status:"success",text:n})},error:function(t){var n=t.children;return F.jsx(_l,{status:"error",text:n})},default:function(t){var n=t.children;return F.jsx(_l,{status:"default",text:n})},processing:function(t){var n=t.children;return F.jsx(_l,{status:"processing",text:n})},warning:function(t){var n=t.children;return F.jsx(_l,{status:"warning",text:n})}},PS=function e(t,n,r){if(Array.isArray(t))return F.jsx(Ji,{split:",",size:2,wrap:!0,children:t.map(function(c,u){return e(c,n,u)})},r);var i=xh(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 F.jsx(pe.Fragment,{children:(t==null?void 0:t.label)||t},r);var a=o.status,s=o.color,l=CTt[a||"Init"];return l?F.jsx(l,{children:o.text},r):s?F.jsx(ETt,{color:s,children:o.text},r):F.jsx(pe.Fragment,{children:o.text||o},r)},Lj={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 S=1;S<b.length;S++){const x=b[S];let E=S;for(;E!==0&&b[E-1]>x;)b[E]=b[E-1],E--;b[E]=x}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,_,S){b.length<S&&(S=b.length);const x=_===","?"":" ";let E=`"0":${x}${b[0]}`;for(let C=1;C<S;C++)E+=`${_}"${C}":${x}${b[C]}`;return E}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 S;if(n.call(b,_)&&(S=b[_],typeof S!="boolean"))throw new TypeError(`The "${_}" argument must be of type boolean`);return S===void 0?!0:S}function p(b,_){let S;if(n.call(b,_)){if(S=b[_],typeof S!="number")throw new TypeError(`The "${_}" argument must be of type number`);if(!Number.isInteger(S))throw new TypeError(`The "${_}" argument must be an integer`);if(S<1)throw new RangeError(`The "${_}" argument must be >= 1`)}return S===void 0?1/0:S}function m(b){return b===1?"1 item":`${b} items`}function g(b){const _=new Set;for(const S of b)(typeof S=="string"||typeof S=="number")&&_.add(String(S));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 S=>{let x=`Object can not safely be stringified. Received type ${typeof S}`;throw typeof S!="function"&&(x+=` (${S.toString()})`),new Error(x)}}}function y(b){b={...b};const _=v(b);_&&(b.bigint===void 0&&(b.bigint=!1),"circularValue"in b||(b.circularValue=Error));const S=u(b),x=f(b,"bigint"),E=d(b),C=typeof E=="function"?E:void 0,w=p(b,"maximumDepth"),O=p(b,"maximumBreadth");function T(M,k,P,B,G,L){let W=k[M];switch(typeof W=="object"&&W!==null&&typeof W.toJSON=="function"&&(W=W.toJSON(M)),W=B.call(k,M,W),typeof W){case"string":return o(W);case"object":{if(W===null)return"null";if(P.indexOf(W)!==-1)return S;let j="",H=",";const X=L;if(Array.isArray(W)){if(W.length===0)return"[]";if(w<P.length+1)return'"[Array]"';P.push(W),G!==""&&(L+=G,j+=`
${L}`,H=`,
${L}`);const le=Math.min(W.length,O);let oe=0;for(;oe<le-1;oe++){const he=T(String(oe),W,P,B,G,L);j+=he!==void 0?he:"null",j+=H}const ne=T(String(oe),W,P,B,G,L);if(j+=ne!==void 0?ne:"null",W.length-1>O){const he=W.length-O-1;j+=`${H}"... ${m(he)} not stringified"`}return G!==""&&(j+=`
${X}`),P.pop(),`[${j}]`}let Q=Object.keys(W);const ue=Q.length;if(ue===0)return"{}";if(w<P.length+1)return'"[Object]"';let ee="",K="";G!==""&&(L+=G,H=`,
${L}`,ee=" ");const se=Math.min(ue,O);E&&!l(W)&&(Q=a(Q,C)),P.push(W);for(let le=0;le<se;le++){const oe=Q[le],ne=T(oe,W,P,B,G,L);ne!==void 0&&(j+=`${K}${o(oe)}:${ee}${ne}`,K=H)}if(ue>O){const le=ue-O;j+=`${K}"...":${ee}"${m(le)} not stringified"`,K=H}return G!==""&&K.length>1&&(j=`
${L}${j}
${X}`),P.pop(),`{${j}}`}case"number":return isFinite(W)?String(W):_?_(W):"null";case"boolean":return W===!0?"true":"false";case"undefined":return;case"bigint":if(x)return String(W);default:return _?_(W):void 0}}function A(M,k,P,B,G,L){switch(typeof k=="object"&&k!==null&&typeof k.toJSON=="function"&&(k=k.toJSON(M)),typeof k){case"string":return o(k);case"object":{if(k===null)return"null";if(P.indexOf(k)!==-1)return S;const W=L;let j="",H=",";if(Array.isArray(k)){if(k.length===0)return"[]";if(w<P.length+1)return'"[Array]"';P.push(k),G!==""&&(L+=G,j+=`
${L}`,H=`,
${L}`);const ue=Math.min(k.length,O);let ee=0;for(;ee<ue-1;ee++){const se=A(String(ee),k[ee],P,B,G,L);j+=se!==void 0?se:"null",j+=H}const K=A(String(ee),k[ee],P,B,G,L);if(j+=K!==void 0?K:"null",k.length-1>O){const se=k.length-O-1;j+=`${H}"... ${m(se)} not stringified"`}return G!==""&&(j+=`
${W}`),P.pop(),`[${j}]`}P.push(k);let X="";G!==""&&(L+=G,H=`,
${L}`,X=" ");let Q="";for(const ue of B){const ee=A(ue,k[ue],P,B,G,L);ee!==void 0&&(j+=`${Q}${o(ue)}:${X}${ee}`,Q=H)}return G!==""&&Q.length>1&&(j=`
${L}${j}
${W}`),P.pop(),`{${j}}`}case"number":return isFinite(k)?String(k):_?_(k):"null";case"boolean":return k===!0?"true":"false";case"undefined":return;case"bigint":if(x)return String(k);default:return _?_(k):void 0}}function I(M,k,P,B,G){switch(typeof k){case"string":return o(k);case"object":{if(k===null)return"null";if(typeof k.toJSON=="function"){if(k=k.toJSON(M),typeof k!="object")return I(M,k,P,B,G);if(k===null)return"null"}if(P.indexOf(k)!==-1)return S;const L=G;if(Array.isArray(k)){if(k.length===0)return"[]";if(w<P.length+1)return'"[Array]"';P.push(k),G+=B;let ee=`
${G}`;const K=`,
${G}`,se=Math.min(k.length,O);let le=0;for(;le<se-1;le++){const ne=I(String(le),k[le],P,B,G);ee+=ne!==void 0?ne:"null",ee+=K}const oe=I(String(le),k[le],P,B,G);if(ee+=oe!==void 0?oe:"null",k.length-1>O){const ne=k.length-O-1;ee+=`${K}"... ${m(ne)} not stringified"`}return ee+=`
${L}`,P.pop(),`[${ee}]`}let W=Object.keys(k);const j=W.length;if(j===0)return"{}";if(w<P.length+1)return'"[Object]"';G+=B;const H=`,
${G}`;let X="",Q="",ue=Math.min(j,O);l(k)&&(X+=c(k,H,O),W=W.slice(k.length),ue-=k.length,Q=H),E&&(W=a(W,C)),P.push(k);for(let ee=0;ee<ue;ee++){const K=W[ee],se=I(K,k[K],P,B,G);se!==void 0&&(X+=`${Q}${o(K)}: ${se}`,Q=H)}if(j>O){const ee=j-O;X+=`${Q}"...": "${m(ee)} not stringified"`,Q=H}return Q!==""&&(X=`
${G}${X}
${L}`),P.pop(),`{${X}}`}case"number":return isFinite(k)?String(k):_?_(k):"null";case"boolean":return k===!0?"true":"false";case"undefined":return;case"bigint":if(x)return String(k);default:return _?_(k):void 0}}function N(M,k,P){switch(typeof k){case"string":return o(k);case"object":{if(k===null)return"null";if(typeof k.toJSON=="function"){if(k=k.toJSON(M),typeof k!="object")return N(M,k,P);if(k===null)return"null"}if(P.indexOf(k)!==-1)return S;let B="";const G=k.length!==void 0;if(G&&Array.isArray(k)){if(k.length===0)return"[]";if(w<P.length+1)return'"[Array]"';P.push(k);const X=Math.min(k.length,O);let Q=0;for(;Q<X-1;Q++){const ee=N(String(Q),k[Q],P);B+=ee!==void 0?ee:"null",B+=","}const ue=N(String(Q),k[Q],P);if(B+=ue!==void 0?ue:"null",k.length-1>O){const ee=k.length-O-1;B+=`,"... ${m(ee)} not stringified"`}return P.pop(),`[${B}]`}let L=Object.keys(k);const W=L.length;if(W===0)return"{}";if(w<P.length+1)return'"[Object]"';let j="",H=Math.min(W,O);G&&l(k)&&(B+=c(k,",",O),L=L.slice(k.length),H-=k.length,j=","),E&&(L=a(L,C)),P.push(k);for(let X=0;X<H;X++){const Q=L[X],ue=N(Q,k[Q],P);ue!==void 0&&(B+=`${j}${o(Q)}:${ue}`,j=",")}if(W>O){const X=W-O;B+=`${j}"...":"${m(X)} not stringified"`}return P.pop(),`{${B}}`}case"number":return isFinite(k)?String(k):_?_(k):"null";case"boolean":return k===!0?"true":"false";case"undefined":return;case"bigint":if(x)return String(k);default:return _?_(k):void 0}}function D(M,k,P){if(arguments.length>1){let B="";if(typeof P=="number"?B=" ".repeat(Math.min(P,10)):typeof P=="string"&&(B=P.slice(0,10)),k!=null){if(typeof k=="function")return T("",{"":M},[],k,B,"");if(Array.isArray(k))return A("",M,[],g(k),B,"")}if(B.length!==0)return I("",M,[],B,"")}return N("",M,[])}return D}})(Lj,Lj.exports);var xTt=Lj.exports;const wTt=oi(xTt),TTt=wTt.configure;var vse=TTt({bigint:!0,circularValue:"Magic circle!",deterministic:!1,maximumDepth:4});function OTt(){this.__data__=[],this.size=0}function xD(e,t){return e===t||e!==e&&t!==t}function wD(e,t){for(var n=e.length;n--;)if(xD(e[n][0],t))return n;return-1}var RTt=Array.prototype,ATt=RTt.splice;function ITt(e){var t=this.__data__,n=wD(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():ATt.call(t,n,1),--this.size,!0}function NTt(e){var t=this.__data__,n=wD(t,e);return n<0?void 0:t[n][1]}function MTt(e){return wD(this.__data__,e)>-1}function kTt(e,t){var n=this.__data__,r=wD(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function wh(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])}}wh.prototype.clear=OTt;wh.prototype.delete=ITt;wh.prototype.get=NTt;wh.prototype.has=MTt;wh.prototype.set=kTt;function PTt(){this.__data__=new wh,this.size=0}function DTt(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}function LTt(e){return this.__data__.get(e)}function $Tt(e){return this.__data__.has(e)}var sOe=typeof global=="object"&&global&&global.Object===Object&&global,FTt=typeof self=="object"&&self&&self.Object===Object&&self,DS=sOe||FTt||Function("return this")(),lM=DS.Symbol,lOe=Object.prototype,BTt=lOe.hasOwnProperty,HTt=lOe.toString,jE=lM?lM.toStringTag:void 0;function jTt(e){var t=BTt.call(e,jE),n=e[jE];try{e[jE]=void 0;var r=!0}catch{}var i=HTt.call(e);return r&&(t?e[jE]=n:delete e[jE]),i}var UTt=Object.prototype,zTt=UTt.toString;function VTt(e){return zTt.call(e)}var GTt="[object Null]",WTt="[object Undefined]",bse=lM?lM.toStringTag:void 0;function TD(e){return e==null?e===void 0?WTt:GTt:bse&&bse in Object(e)?jTt(e):VTt(e)}function Tv(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var qTt="[object AsyncFunction]",YTt="[object Function]",KTt="[object GeneratorFunction]",QTt="[object Proxy]";function CK(e){if(!Tv(e))return!1;var t=TD(e);return t==YTt||t==KTt||t==qTt||t==QTt}var t$=DS["__core-js_shared__"],yse=function(){var e=/[^.]+$/.exec(t$&&t$.keys&&t$.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function XTt(e){return!!yse&&yse in e}var ZTt=Function.prototype,JTt=ZTt.toString;function e2t(e){if(e!=null){try{return JTt.call(e)}catch{}try{return e+""}catch{}}return""}var t2t=/[\\^$.*+?()[\]{}|]/g,n2t=/^\[object .+?Constructor\]$/,r2t=Function.prototype,i2t=Object.prototype,o2t=r2t.toString,a2t=i2t.hasOwnProperty,s2t=RegExp("^"+o2t.call(a2t).replace(t2t,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function l2t(e){if(!Tv(e)||XTt(e))return!1;var t=CK(e)?s2t:n2t;return t.test(e2t(e))}function c2t(e,t){return e==null?void 0:e[t]}function xK(e,t){var n=c2t(e,t);return l2t(n)?n:void 0}var cOe=xK(DS,"Map"),qw=xK(Object,"create");function u2t(){this.__data__=qw?qw(null):{},this.size=0}function d2t(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var f2t="__lodash_hash_undefined__",p2t=Object.prototype,h2t=p2t.hasOwnProperty;function m2t(e){var t=this.__data__;if(qw){var n=t[e];return n===f2t?void 0:n}return h2t.call(t,e)?t[e]:void 0}var g2t=Object.prototype,v2t=g2t.hasOwnProperty;function b2t(e){var t=this.__data__;return qw?t[e]!==void 0:v2t.call(t,e)}var y2t="__lodash_hash_undefined__";function _2t(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=qw&&t===void 0?y2t:t,this}function Y1(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])}}Y1.prototype.clear=u2t;Y1.prototype.delete=d2t;Y1.prototype.get=m2t;Y1.prototype.has=b2t;Y1.prototype.set=_2t;function S2t(){this.size=0,this.__data__={hash:new Y1,map:new(cOe||wh),string:new Y1}}function E2t(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function OD(e,t){var n=e.__data__;return E2t(t)?n[typeof t=="string"?"string":"hash"]:n.map}function C2t(e){var t=OD(this,e).delete(e);return this.size-=t?1:0,t}function x2t(e){return OD(this,e).get(e)}function w2t(e){return OD(this,e).has(e)}function T2t(e,t){var n=OD(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}function LS(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])}}LS.prototype.clear=S2t;LS.prototype.delete=C2t;LS.prototype.get=x2t;LS.prototype.has=w2t;LS.prototype.set=T2t;var O2t=200;function R2t(e,t){var n=this.__data__;if(n instanceof wh){var r=n.__data__;if(!cOe||r.length<O2t-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new LS(r)}return n.set(e,t),this.size=n.size,this}function $S(e){var t=this.__data__=new wh(e);this.size=t.size}$S.prototype.clear=PTt;$S.prototype.delete=DTt;$S.prototype.get=LTt;$S.prototype.has=$Tt;$S.prototype.set=R2t;var cM=function(){try{var e=xK(Object,"defineProperty");return e({},"",{}),e}catch{}}();function wK(e,t,n){t=="__proto__"&&cM?cM(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function $j(e,t,n){(n!==void 0&&!xD(e[t],n)||n===void 0&&!(t in e))&&wK(e,t,n)}function A2t(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=A2t(),uOe=typeof exports=="object"&&exports&&!exports.nodeType&&exports,_se=uOe&&typeof module=="object"&&module&&!module.nodeType&&module,N2t=_se&&_se.exports===uOe,Sse=N2t?DS.Buffer:void 0,Ese=Sse?Sse.allocUnsafe:void 0;function M2t(e,t){if(t)return e.slice();var n=e.length,r=Ese?Ese(n):new e.constructor(n);return e.copy(r),r}var Cse=DS.Uint8Array;function k2t(e){var t=new e.constructor(e.byteLength);return new Cse(t).set(new Cse(e)),t}function P2t(e,t){var n=t?k2t(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function D2t(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}var xse=Object.create,L2t=function(){function e(){}return function(t){if(!Tv(t))return{};if(xse)return xse(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();function $2t(e,t){return function(n){return e(t(n))}}var dOe=$2t(Object.getPrototypeOf,Object),F2t=Object.prototype;function fOe(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||F2t;return e===n}function B2t(e){return typeof e.constructor=="function"&&!fOe(e)?L2t(dOe(e)):{}}function D2(e){return e!=null&&typeof e=="object"}var H2t="[object Arguments]";function wse(e){return D2(e)&&TD(e)==H2t}var pOe=Object.prototype,j2t=pOe.hasOwnProperty,U2t=pOe.propertyIsEnumerable,Fj=wse(function(){return arguments}())?wse:function(e){return D2(e)&&j2t.call(e,"callee")&&!U2t.call(e,"callee")},Bj=Array.isArray,z2t=9007199254740991;function hOe(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=z2t}function TK(e){return e!=null&&hOe(e.length)&&!CK(e)}function V2t(e){return D2(e)&&TK(e)}function G2t(){return!1}var mOe=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Tse=mOe&&typeof module=="object"&&module&&!module.nodeType&&module,W2t=Tse&&Tse.exports===mOe,Ose=W2t?DS.Buffer:void 0,q2t=Ose?Ose.isBuffer:void 0,gOe=q2t||G2t,Y2t="[object Object]",K2t=Function.prototype,Q2t=Object.prototype,vOe=K2t.toString,X2t=Q2t.hasOwnProperty,Z2t=vOe.call(Object);function J2t(e){if(!D2(e)||TD(e)!=Y2t)return!1;var t=dOe(e);if(t===null)return!0;var n=X2t.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&vOe.call(n)==Z2t}var eOt="[object Arguments]",tOt="[object Array]",nOt="[object Boolean]",rOt="[object Date]",iOt="[object Error]",oOt="[object Function]",aOt="[object Map]",sOt="[object Number]",lOt="[object Object]",cOt="[object RegExp]",uOt="[object Set]",dOt="[object String]",fOt="[object WeakMap]",pOt="[object ArrayBuffer]",hOt="[object DataView]",mOt="[object Float32Array]",gOt="[object Float64Array]",vOt="[object Int8Array]",bOt="[object Int16Array]",yOt="[object Int32Array]",_Ot="[object Uint8Array]",SOt="[object Uint8ClampedArray]",EOt="[object Uint16Array]",COt="[object Uint32Array]",ao={};ao[mOt]=ao[gOt]=ao[vOt]=ao[bOt]=ao[yOt]=ao[_Ot]=ao[SOt]=ao[EOt]=ao[COt]=!0;ao[eOt]=ao[tOt]=ao[pOt]=ao[nOt]=ao[hOt]=ao[rOt]=ao[iOt]=ao[oOt]=ao[aOt]=ao[sOt]=ao[lOt]=ao[cOt]=ao[uOt]=ao[dOt]=ao[fOt]=!1;function xOt(e){return D2(e)&&hOe(e.length)&&!!ao[TD(e)]}function wOt(e){return function(t){return e(t)}}var bOe=typeof exports=="object"&&exports&&!exports.nodeType&&exports,hx=bOe&&typeof module=="object"&&module&&!module.nodeType&&module,TOt=hx&&hx.exports===bOe,n$=TOt&&sOe.process,Rse=function(){try{var e=hx&&hx.require&&hx.require("util").types;return e||n$&&n$.binding&&n$.binding("util")}catch{}}(),Ase=Rse&&Rse.isTypedArray,yOe=Ase?wOt(Ase):xOt;function Hj(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}var OOt=Object.prototype,ROt=OOt.hasOwnProperty;function AOt(e,t,n){var r=e[t];(!(ROt.call(e,t)&&xD(r,n))||n===void 0&&!(t in e))&&wK(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?wK(n,s,l):AOt(n,s,l)}return n}function NOt(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}var MOt=9007199254740991,kOt=/^(?:0|[1-9]\d*)$/;function _Oe(e,t){var n=typeof e;return t=t??MOt,!!t&&(n=="number"||n!="symbol"&&kOt.test(e))&&e>-1&&e%1==0&&e<t}var POt=Object.prototype,DOt=POt.hasOwnProperty;function LOt(e,t){var n=Bj(e),r=!n&&Fj(e),i=!n&&!r&&gOe(e),o=!n&&!r&&!i&&yOe(e),a=n||r||i||o,s=a?NOt(e.length,String):[],l=s.length;for(var c in e)(t||DOt.call(e,c))&&!(a&&(c=="length"||i&&(c=="offset"||c=="parent")||o&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||_Oe(c,l)))&&s.push(c);return s}function $Ot(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var FOt=Object.prototype,BOt=FOt.hasOwnProperty;function HOt(e){if(!Tv(e))return $Ot(e);var t=fOe(e),n=[];for(var r in e)r=="constructor"&&(t||!BOt.call(e,r))||n.push(r);return n}function SOe(e){return TK(e)?LOt(e,!0):HOt(e)}function jOt(e){return IOt(e,SOe(e))}function UOt(e,t,n,r,i,o,a){var s=Hj(e,n),l=Hj(t,n),c=a.get(l);if(c){$j(e,n,c);return}var u=o?o(s,l,n+"",e,t,a):void 0,d=u===void 0;if(d){var f=Bj(l),p=!f&&gOe(l),m=!f&&!p&&yOe(l);u=l,f||p||m?Bj(s)?u=s:V2t(s)?u=D2t(s):p?(d=!1,u=M2t(l,!0)):m?(d=!1,u=P2t(l,!0)):u=[]:J2t(l)||Fj(l)?(u=s,Fj(s)?u=jOt(s):(!Tv(s)||CK(s))&&(u=B2t(l))):d=!1}d&&(a.set(l,u),i(u,l,r,o,a),a.delete(l)),$j(e,n,u)}function EOe(e,t,n,r,i){e!==t&&I2t(t,function(o,a){if(i||(i=new $S),Tv(o))UOt(e,t,a,n,EOe,r,i);else{var s=r?r(Hj(e,a),o,a+"",e,t,i):void 0;s===void 0&&(s=o),$j(e,a,s)}},SOe)}function COe(e){return e}function zOt(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 Ise=Math.max;function VOt(e,t,n){return t=Ise(t===void 0?e.length-1:t,0),function(){for(var r=arguments,i=-1,o=Ise(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),zOt(e,this,s)}}function GOt(e){return function(){return e}}var WOt=cM?function(e,t){return cM(e,"toString",{configurable:!0,enumerable:!1,value:GOt(t),writable:!0})}:COe,qOt=800,YOt=16,KOt=Date.now;function QOt(e){var t=0,n=0;return function(){var r=KOt(),i=YOt-(r-n);if(n=r,i>0){if(++t>=qOt)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var XOt=QOt(WOt);function ZOt(e,t){return XOt(VOt(e,t,COe),e+"")}function JOt(e,t,n){if(!Tv(n))return!1;var r=typeof t;return(r=="number"?TK(n)&&_Oe(t,n.length):r=="string"&&t in n)?xD(n[t],e):!1}function eRt(e){return ZOt(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&&JOt(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 tRt=eRt(function(e,t,n){EOe(e,t,n)});function nRt(e){return qt(e)!=="object"?!1:e===null?!0:!(pe.isValidElement(e)||e.constructor===RegExp||e instanceof Map||e instanceof Set||e instanceof HTMLElement||e instanceof Blob||e instanceof File||Array.isArray(e))}var rRt=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 W1(c)||(s[l]=c),s},{});if(Object.keys(i).length<1||typeof window>"u"||qt(t)!=="object"||W1(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 p=function _(S,x){return Array.isArray(S)&&S.forEach(function(E,C){if(E){var w=x==null?void 0:x[C];typeof E=="function"&&(x[C]=E(x,f,l)),qt(E)==="object"&&!Array.isArray(E)&&Object.keys(E).forEach(function(O){var T=w==null?void 0:w[O];if(typeof E[O]=="function"&&T){var A=E[O](w[O],f,l);w[O]=qt(A)==="object"?A[O]:A}else qt(E[O])==="object"&&Array.isArray(E[O])&&T&&_(E[O],T)}),qt(E)==="object"&&Array.isArray(E)&&w&&_(E,w)}}),f},m=c?[c,f].flat(1):[f].flat(1),g=l[f],v=No(i,m),y=function(){var S,x,E=!1;if(typeof v=="function"){x=v==null?void 0:v(g,f,l);var C=qt(x);C!=="object"&&C!=="undefined"?(S=f,E=!0):S=x}else S=p(v,g);if(Array.isArray(S)){d=ta(d,S,g);return}qt(S)==="object"&&!Array.isArray(o)?o=tRt(o,S):qt(S)==="object"&&Array.isArray(o)?d=z(z({},d),S):(S!==null||S!==void 0)&&(d=ta(d,[S],E?x:g))};if(v&&typeof v=="function"&&y(),!(typeof window>"u")){if(nRt(g)){var b=s(g,m);if(Object.keys(b).length<1)return;d=ta(d,[f],b);return}y()}}),r?d:l)};return o=Array.isArray(t)&&Array.isArray(o)?rt(a(t)):oOe({},a(t),o),o},xc=function(t){return t===void 0?{}:M2(oh,"5.13.0")<=0?{bordered:t}:{variant:t?void 0:"borderless"}};function cb(e){var t=typeof window>"u",n=h.useState(function(){return t?!1:window.matchMedia(e).matches}),r=Re(n,2),i=r[0],o=r[1];return h.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 lm={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)"}},iRt=function(){var t=void 0;if(typeof window>"u")return t;var n=Object.keys(lm).find(function(r){var i=lm[r].matchMedia;return!!window.matchMedia(i).matches});return t=n,t},oRt=function(){var t=cb(lm.md.matchMedia),n=cb(lm.lg.matchMedia),r=cb(lm.xxl.matchMedia),i=cb(lm.xl.matchMedia),o=cb(lm.sm.matchMedia),a=cb(lm.xs.matchMedia),s=h.useState(iRt()),l=Re(s,2),c=l[0],u=l[1];return h.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},mx=function(){return mx=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},mx.apply(this,arguments)};function aRt(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 sRt(e,t){var n;e===void 0&&(e={}),t===void 0&&(t={disabled:!1});var r=h.useState(),i=r[1],o=typeof window<"u"&&((n=window==null?void 0:window.location)===null||n===void 0?void 0:n.search),a=h.useMemo(function(){return t.disabled?{}:new URLSearchParams(o||{})},[t.disabled,o]),s=h.useMemo(function(){if(t.disabled)return{};if(typeof window>"u"||!window.URL)return{};var u=[];a.forEach(function(f,p){u.push({key:p,value:f})}),u=u.reduce(function(f,p){return(f[p.key]=f[p.key]||[]).push(p),f},{}),u=Object.keys(u).map(function(f){var p=u[f];return p.length===1?[f,p[0].value]:[f,p.map(function(m){var g=m.value;return g})]});var d=mx({},e);return u.forEach(function(f){var p=f[0],m=f[1];d[p]=cRt(p,m,{},e)}),d},[t.disabled,e,a]);function l(u){if(!(typeof window>"u"||!window.URL)){var d=aRt(u);window.location.search!==d.search&&window.history.replaceState({},"",d.toString()),a.toString()!==d.searchParams.toString()&&i({})}}h.useEffect(function(){t.disabled||typeof window>"u"||!window.URL||l(mx(mx({},e),s))},[t.disabled,s]);var c=function(u){l(u)};return h.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 lRt={true:!0,false:!1};function cRt(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"?lRt[o]:Array.isArray(i)?i.find(function(a){return a==o})||r[e]:o}var Ov=pe.createContext({}),uRt=["children","Wrapper"],dRt=["children","Wrapper"],xOe=h.createContext({grid:!1,colProps:void 0,rowProps:void 0}),fRt=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=kt(a,uRt);return n?F.jsx(S2,z(z(z({gutter:8},r),c),{},{children:s})):l?F.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=kt(a,dRt),u=h.useMemo(function(){var d=z(z({},i),c);return typeof d.span>"u"&&typeof d.xs>"u"&&(d.xs=24),d},[c]);return n?F.jsx(j1,z(z({},u),{},{children:s})):l?F.jsx(l,{children:s}):s}}},OK=function(t){var n=h.useMemo(function(){return qt(t)==="object"?t:{grid:t}},[t]),r=h.useContext(xOe),i=r.grid,o=r.colProps;return h.useMemo(function(){return fRt({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])])},pRt=["valueType","customLightMode","lightFilterLabelFormatter","valuePropName","ignoreWidth","defaultProps"],hRt=["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},mRt=["switch","radioButton","radio","rate"];function RD(e,t){e.displayName="ProFormComponent";var n=function(o){var a=z(z({},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,p=a.defaultProps,m=kt(a,pRt),g=z(z({},p),o),v=g.label,y=g.tooltip,b=g.placeholder,_=g.width,S=g.bordered,x=g.messageVariables,E=g.ignoreFormItem,C=g.transform,w=g.convertValue,O=g.readonly,T=g.allowClear;g.colSize;var A=g.getFormItemProps,I=g.getFieldProps;g.filedConfig;var N=g.cacheForSwr,D=g.proFieldProps,M=kt(g,hRt),k=s||M.valueType,P=h.useMemo(function(){return f||mRt.includes(k)},[f,k]),B=h.useState(),G=Re(B,2),L=G[1],W=h.useState(),j=Re(W,2),H=j[0],X=j[1],Q=pe.useContext(Ov),ue=yl(function(){return{formItemProps:A==null?void 0:A(),fieldProps:I==null?void 0:I()}},[I,A,M.dependenciesValues,H]),ee=yl(function(){var Ne=z(z(z(z({},E?tu({value:M.value}):{}),{},{placeholder:b,disabled:o.disabled},Q.fieldProps),ue.fieldProps),M.fieldProps);return Ne.style=tu(Ne==null?void 0:Ne.style),Ne},[E,M.value,M.fieldProps,b,o.disabled,Q.fieldProps,ue.fieldProps]),K=bTt(M),se=yl(function(){return z(z(z(z({},Q.formItemProps),K),ue.formItemProps),M.formItemProps)},[ue.formItemProps,Q.formItemProps,M.formItemProps,K]),le=yl(function(){return z(z({messageVariables:x},m),se)},[m,se,x]);Cw(!M.defaultValue,"请不要在 Form 中使用 defaultXXX。如果需要默认值请使用 initialValues 和 initialValue。");var oe=h.useContext(mg),ne=oe.prefixName,he=yl(function(){var Ne,Te=le==null?void 0:le.name;Array.isArray(Te)&&(Te=Te.join("_")),Array.isArray(ne)&&Te&&(Te="".concat(ne.join("."),".").concat(Te));var Ve=Te&&"form-".concat((Ne=Q.formKey)!==null&&Ne!==void 0?Ne:"","-field-").concat(Te);return Ve},[vse(le==null?void 0:le.name),ne,Q.formKey]),me=gd(function(){var Ne;A||I?X([]):M.renderFormItem&&L([]);for(var Te=arguments.length,Ve=new Array(Te),q=0;q<Te;q++)Ve[q]=arguments[q];ee==null||(Ne=ee.onChange)===null||Ne===void 0||Ne.call.apply(Ne,[ee].concat(Ve))}),ce=yl(function(){var Ne=z({width:_&&!Nse[_]?_:Q.grid?"100%":void 0},ee==null?void 0:ee.style);return P&&Reflect.deleteProperty(Ne,"width"),tu(Ne)},[vse(ee==null?void 0:ee.style),Q.grid,P,_]),re=yl(function(){var Ne=_&&Nse[_];return Ce(ee==null?void 0:ee.className,te({"pro-field":Ne},"pro-field-".concat(_),Ne&&!P))||void 0},[_,ee==null?void 0:ee.className,P]),ve=yl(function(){return tu(z(z({},Q.proFieldProps),{},{mode:M==null?void 0:M.mode,readonly:O,params:M.params,proFieldKey:he,cacheForSwr:N},D))},[Q.proFieldProps,M==null?void 0:M.mode,M.params,O,he,N,D]),be=yl(function(){return z(z({onChange:me,allowClear:T},ee),{},{style:ce,className:re})},[T,re,me,ee,ce]),xe=yl(function(){return F.jsx(e,z(z({},M),{},{fieldProps:be,proFieldProps:ve,ref:o==null?void 0:o.fieldRef}),o.proFormFieldKey||o.name)},[ve,be,M]),we=yl(function(){var Ne,Te,Ve,q;return F.jsx(PRe,z(z({label:v&&(D==null?void 0:D.light)!==!0?v:void 0,tooltip:(D==null?void 0:D.light)!==!0&&y,valuePropName:d},le),{},{ignoreFormItem:E,transform:C,dataFormat:ee==null?void 0:ee.format,valueType:k,messageVariables:z({label:v||""},le==null?void 0:le.messageVariables),convertValue:w,lightProps:tu(z(z(z({},ee),{},{valueType:k,bordered:S,allowClear:(Te=xe==null||(Ve=xe.props)===null||Ve===void 0?void 0:Ve.allowClear)!==null&&Te!==void 0?Te:T,light:D==null?void 0:D.light,label:v,customLightMode:l,labelFormatter:c,valuePropName:d,footerRender:xe==null||(q=xe.props)===null||q===void 0?void 0:q.footerRender},M.lightProps),le.lightProps)),children:xe}),o.proFormFieldKey||((Ne=le.name)===null||Ne===void 0?void 0:Ne.toString()))},[v,D==null?void 0:D.light,y,d,o.proFormFieldKey,le,E,C,ee,k,w,S,xe,T,l,c,M.lightProps]),de=OK(M),Ee=de.ColWrapper;return F.jsx(Ee,{children:we})},r=function(o){var a=o.dependencies;return a?F.jsx(kRe,{name:a,originDependencies:o==null?void 0:o.originDependencies,children:function(l){return F.jsx(n,z({dependenciesValues:l,dependencies:a},o))}}):F.jsx(n,z({dependencies:a},o))};return r}var gRt=["rules","name","phoneName","fieldProps","onTiming","captchaTextRender","captchaProps"],vRt=pe.forwardRef(function(e,t){var n=ui.useFormInstance(),r=h.useState(e.countDown||60),i=Re(r,2),o=i[0],a=i[1],s=h.useState(!1),l=Re(s,2),c=l[0],u=l[1],d=h.useState(),f=Re(d,2),p=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,w){return C?"".concat(w," 秒后重新获取"):"获取验证码"}:b,S=e.captchaProps,x=kt(e,gRt),E=function(){var C=Ui(rr().mark(function w(O){return rr().wrap(function(A){for(;;)switch(A.prev=A.next){case 0:return A.prev=0,m(!0),A.next=4,x.onGetCaptcha(O);case 4:m(!1),u(!0),A.next=13;break;case 8:A.prev=8,A.t0=A.catch(0),u(!1),m(!1),console.log(A.t0);case 13:case"end":return A.stop()}},w,null,[[0,8]])}));return function(O){return C.apply(this,arguments)}}();return h.useImperativeHandle(t,function(){return{startTiming:function(){return u(!0)},endTiming:function(){return u(!1)}}}),h.useEffect(function(){var C=0,w=e.countDown;return c&&(C=window.setInterval(function(){a(function(O){return O<=1?(u(!1),clearInterval(C),w||60):O-1})},1e3)),function(){return clearInterval(C)}},[c]),h.useEffect(function(){y&&y(o)},[o,y]),F.jsxs("div",{style:z(z({},v==null?void 0:v.style),{},{display:"flex",alignItems:"center"}),ref:t,children:[F.jsx(Co,z(z({},v),{},{style:z({flex:1,transition:"width .3s",marginRight:8},v==null?void 0:v.style)})),F.jsx(Dn,z(z({style:{display:"block"},disabled:c,loading:p},S),{},{onClick:Ui(rr().mark(function C(){var w;return rr().wrap(function(T){for(;;)switch(T.prev=T.next){case 0:if(T.prev=0,!g){T.next=9;break}return T.next=4,n.validateFields([g].flat(1));case 4:return w=n.getFieldValue([g].flat(1)),T.next=7,E(w);case 7:T.next=11;break;case 9:return T.next=11,E("");case 11:T.next=16;break;case 13:T.prev=13,T.t0=T.catch(0),console.log(T.t0);case 16:case"end":return T.stop()}},C,null,[[0,13]])})),children:_(c,o)}))]})}),L2=RD(vRt),bRt=["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"],Mse=function(t,n){return qt(n)!=="object"?t[n]||n:t[n==null?void 0:n.value]||n.label},yRt=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,p=t.bordered,m=t.options,g=t.onSearch,v=t.allowClear,y=t.labelInValue,b=t.fieldNames,_=t.lightLabel,S=t.labelTrigger,x=t.optionFilterProp,E=t.optionLabelProp,C=E===void 0?"":E,w=t.valueMaxLength,O=w===void 0?41:w,T=t.fetchDataOnSearch,A=T===void 0?!1:T,I=t.fetchData,N=kt(t,bRt),D=t.placeholder,M=D===void 0?r:D,k=b||{},P=k.label,B=P===void 0?"label":P,G=k.value,L=G===void 0?"value":G,W=h.useContext(Ln.ConfigContext),j=W.getPrefixCls,H=j("pro-field-select-light-select"),X=h.useState(!1),Q=Re(X,2),ue=Q[0],ee=Q[1],K=h.useState(""),se=Re(K,2),le=se[0],oe=se[1],ne=Gi("LightSelect",function(be){return te({},".".concat(H),te(te({},"".concat(be.antCls,"-select"),{position:"absolute",width:"153px",height:"28px",visibility:"hidden","&-selector":{height:28}}),"&.".concat(H,"-searchable"),te({},"".concat(be.antCls,"-select"),{width:"200px","&-selector":{height:28}})))}),he=ne.wrapSSR,me=ne.hashId,ce=h.useMemo(function(){var be={};return m==null||m.forEach(function(xe){var we=xe[C]||xe[B],de=xe[L];be[de]=we||de}),be},[B,m,L,C]),re=h.useMemo(function(){return Reflect.has(N,"open")?N==null?void 0:N.open:ue},[ue,N]),ve=Array.isArray(a)?a.map(function(be){return Mse(ce,be)}):Mse(ce,a);return he(F.jsxs("div",{className:Ce(H,me,te({},"".concat(H,"-searchable"),c),"".concat(H,"-container-").concat(N.placement||"bottomLeft"),f),style:d,onClick:function(xe){var we;if(!u){var de=_==null||(we=_.current)===null||we===void 0||(we=we.labelRef)===null||we===void 0||(we=we.current)===null||we===void 0?void 0:we.contains(xe.target);de&&ee(!ue)}},children:[F.jsx(vu,z(z(z({},N),{},{allowClear:v,value:a,mode:s,labelInValue:y,size:l,disabled:u,onChange:function(xe,we){o==null||o(xe,we),s!=="multiple"&&ee(!1)}},xc(p)),{},{showSearch:c,onSearch:c?function(be){A&&I&&I(be),g==null||g(be)}:void 0,style:d,dropdownRender:function(xe){return F.jsxs("div",{ref:n,children:[c&&F.jsx("div",{style:{margin:"4px 8px"},children:F.jsx(Co,{value:le,allowClear:!!v,onChange:function(de){oe(de.target.value),A&&I&&I(de.target.value),g==null||g(de.target.value)},onKeyDown:function(de){if(de.key==="Backspace"){de.stopPropagation();return}(de.key==="ArrowUp"||de.key==="ArrowDown")&&de.preventDefault()},style:{width:"100%"},prefix:F.jsx(FP,{})})}),xe]})},open:re,onDropdownVisibleChange:function(xe){var we;xe||oe(""),S||ee(xe),N==null||(we=N.onDropdownVisibleChange)===null||we===void 0||we.call(N,xe)},prefixCls:i,options:g||!le?m:m==null?void 0:m.filter(function(be){var xe,we;return x?Do(be[x]).join("").toLowerCase().includes(le):((xe=String(be[B]))===null||xe===void 0||(xe=xe.toLowerCase())===null||xe===void 0?void 0:xe.includes(le==null?void 0:le.toLowerCase()))||((we=be[L])===null||we===void 0||(we=we.toString())===null||we===void 0||(we=we.toLowerCase())===null||we===void 0?void 0:we.includes(le==null?void 0:le.toLowerCase()))})})),F.jsx(Ch,{ellipsis:!0,label:r,placeholder:M,disabled:u,bordered:p,allowClear:!!v,value:ve||(a==null?void 0:a.label)||a,onClear:function(){o==null||o(void 0,void 0)},ref:_,valueMaxLength:O})]}))};const _Rt=pe.forwardRef(yRt);var SRt=["optionItemRender","mode","onSearch","onFocus","onChange","autoClearSearchValue","searchOnFocus","resetAfterSelect","fetchDataOnSearch","optionFilterProp","optionLabelProp","className","disabled","options","fetchData","resetData","prefixCls","onClear","searchValue","showSearch","fieldNames","defaultSearchValue","preserveOriginalLabel"],ERt=["className","optionType"],CRt=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,p=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,S=t.className,x=t.disabled,E=t.options,C=t.fetchData,w=t.resetData,O=t.prefixCls,T=t.onClear,A=t.searchValue,I=t.showSearch,N=t.fieldNames,D=t.defaultSearchValue,M=t.preserveOriginalLabel,k=M===void 0?!1:M,P=kt(t,SRt),B=N||{},G=B.label,L=G===void 0?"label":G,W=B.value,j=W===void 0?"value":W,H=B.options,X=H===void 0?"options":H,Q=h.useState(A??D),ue=Re(Q,2),ee=ue[0],K=ue[1],se=h.useRef();h.useImperativeHandle(n,function(){return se.current}),h.useEffect(function(){if(P.autoFocus){var re;se==null||(re=se.current)===null||re===void 0||re.focus()}},[P.autoFocus]),h.useEffect(function(){K(A)},[A]);var le=h.useContext(Ln.ConfigContext),oe=le.getPrefixCls,ne=oe("pro-filed-search-select",O),he=Ce(ne,S,te({},"".concat(ne,"-disabled"),x)),me=function(ve,be){return Array.isArray(ve)&&Array.isArray(be)&&ve.length>0?ve.map(function(xe,we){var de=be==null?void 0:be[we],Ee=(de==null?void 0:de["data-item"])||{};return z(z(z({},Ee),xe),{},{label:k?Ee.label:xe.label})}):[]},ce=function re(ve){return ve.map(function(be,xe){var we,de=be,Ee=de.className,Ne=de.optionType,Te=kt(de,ERt),Ve=be[L],q=be[j],U=(we=be[X])!==null&&we!==void 0?we:[];return Ne==="optGroup"||be.options?z(z({label:Ve},Te),{},{data_title:Ve,title:Ve,key:q??"".concat(Ve==null?void 0:Ve.toString(),"-").concat(xe,"-").concat(sM()),children:re(U)}):z(z({title:Ve},Te),{},{data_title:Ve,value:q??xe,key:q??"".concat(Ve==null?void 0:Ve.toString(),"-").concat(xe,"-").concat(sM()),"data-item":be,className:"".concat(ne,"-option ").concat(Ee||"").trim(),label:(r==null?void 0:r(be))||Ve})})};return F.jsx(vu,z(z({ref:se,className:he,allowClear:!0,autoClearSearchValue:c,disabled:x,mode:i,showSearch:I,searchValue:ee,optionFilterProp:y,optionLabelProp:_,onClear:function(){T==null||T(),C(void 0),I&&K(void 0)}},P),{},{filterOption:P.filterOption==!1?!1:function(re,ve){var be,xe,we;return P.filterOption&&typeof P.filterOption=="function"?P.filterOption(re,z(z({},ve),{},{label:ve==null?void 0:ve.data_title})):!!(ve!=null&&(be=ve.data_title)!==null&&be!==void 0&&be.toString().toLowerCase().includes(re.toLowerCase())||ve!=null&&(xe=ve.label)!==null&&xe!==void 0&&xe.toString().toLowerCase().includes(re.toLowerCase())||ve!=null&&(we=ve.value)!==null&&we!==void 0&&we.toString().toLowerCase().includes(re.toLowerCase()))},onSearch:I?function(re){g&&C(re),o==null||o(re),K(re)}:void 0,onChange:function(ve,be){I&&c&&(C(void 0),o==null||o(""),K(void 0));for(var xe=arguments.length,we=new Array(xe>2?xe-2:0),de=2;de<xe;de++)we[de-2]=arguments[de];if(!t.labelInValue){s==null||s.apply(void 0,[ve,be].concat(we));return}if(i!=="multiple"&&!Array.isArray(be)){var Ee=be&&be["data-item"];if(!ve||!Ee){var Ne=ve&&z(z({},ve),{},{label:k&&(Ee==null?void 0:Ee.label)||ve.label});s==null||s.apply(void 0,[Ne,be].concat(we))}else s==null||s.apply(void 0,[z(z(z({},ve),Ee),{},{label:k?Ee.label:ve.label}),be].concat(we));return}var Te=me(ve,be);s==null||s.apply(void 0,[Te,be].concat(we)),p&&w()},onFocus:function(ve){d&&C(ee),a==null||a(ve)},options:ce(E||[])}))};const xRt=pe.forwardRef(CRt);var wRt=["value","text"],TRt=["mode","valueEnum","render","renderFormItem","request","fieldProps","plain","children","light","proFieldKey","params","label","bordered","id","lightLabel","labelTrigger"],ORt=function(t){for(var n=t.label,r=t.words,i=h.useContext(Ln.ConfigContext),o=i.getPrefixCls,a=o("pro-select-item-option-content-light"),s=o("pro-select-item-option-content"),l=Gi("Highlight",function(v){return te(te({},".".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 p=u.exec(d);if(!p){f.push(d);break}var m=p.index,g=p[0].length+m;f.push(d.slice(0,m),pe.createElement("span",{className:a},d.slice(m,g))),d=d.slice(g)}return c(pe.createElement.apply(pe,["div",{title:n,className:s}].concat(f)))};function jj(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(rt(e.children||[]),[e.options||[]]).find(function(o){return jj(o,t)});if(i)return!0}return!1}var RRt=function(t){var n=[],r=xh(t);return r.forEach(function(i,o){var a=r.get(o)||r.get("".concat(o));if(a){if(qt(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},FS=function(t){var n,r,i,o,a=t.cacheForSwr,s=t.fieldProps,l=h.useState(t.defaultKeyWords),c=Re(l,2),u=c[0],d=c[1],f=h.useState(function(){return t.proFieldKey?t.proFieldKey.toString():t.request?sM():"no-fetch"}),p=Re(f,1),m=p[0],g=h.useRef(m),v=gd(function(I){return RRt(xh(I)).map(function(N){var D=N.value,M=N.text,k=kt(N,wRt);return z({label:M,value:D,key:D},k)})}),y=yl(function(){if(s){var I=(s==null?void 0:s.options)||(s==null?void 0:s.treeData);if(I){var N=s.fieldNames||{},D=N.children,M=N.label,k=N.value,P=function B(G,L){if(G!=null&&G.length)for(var W=G.length,j=0;j<W;){var H=G[j++];(H[D]||H[M]||H[k])&&(H[L]=H[L==="children"?D:L==="label"?M:k],B(H[D],L))}};return D&&P(I,"children"),M&&P(I,"label"),k&&P(I,"value"),I}}},[s]),b=Pn(function(){return t.valueEnum?v(t.valueEnum):[]},{value:y}),_=Re(b,2),S=_[0],x=_[1];uTt(function(){var I,N;!t.valueEnum||(I=t.fieldProps)!==null&&I!==void 0&&I.options||(N=t.fieldProps)!==null&&N!==void 0&&N.treeData||x(v(t.valueEnum))},[t.valueEnum]);var E=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=yK(function(){return t.request?E:null},function(I){var N=Re(I,3),D=N[1],M=N[2];return t.request(z(z({},D),{},{keyWords:M}),t)},{revalidateIfStale:!a,revalidateOnReconnect:a,shouldRetryOnError:!1,revalidateOnFocus:!1}),w=C.data,O=C.mutate,T=C.isValidating,A=h.useMemo(function(){var I,N,D=S==null?void 0:S.map(function(M){if(typeof M=="string")return{label:M,value:M};if(M.children||M.options){var k=[].concat(rt(M.children||[]),rt(M.options||[])).filter(function(P){return jj(P,u)});return z(z({},M),{},{children:k,options:k})}return M});return((I=t.fieldProps)===null||I===void 0?void 0:I.filterOption)===!0||((N=t.fieldProps)===null||N===void 0?void 0:N.filterOption)===void 0?D==null?void 0:D.filter(function(M){return M?u?jj(M,u):!0:!1}):D},[S,u,(o=t.fieldProps)===null||o===void 0?void 0:o.filterOption]);return[T,t.request?w:A,function(I){d(I)},function(){d(void 0),O([],!1)}]},ARt=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,p=t.lightLabel,m=t.labelTrigger,g=kt(t,TRt),v=h.useRef(),y=Lo(),b=h.useRef(""),_=l.fieldNames;h.useEffect(function(){b.current=l==null?void 0:l.searchValue},[l==null?void 0:l.searchValue]);var S=FS(t),x=Re(S,4),E=x[0],C=x[1],w=x[2],O=x[3],T=(Ln==null||(r=Ln.useConfig)===null||r===void 0?void 0:r.call(Ln))||{componentSize:"middle"},A=T.componentSize;h.useImperativeHandle(n,function(){return z(z({},v.current||{}),{},{fetchData:function(G){return w(G)}})},[w]);var I=h.useMemo(function(){if(i==="read"){var B=_||{},G=B.label,L=G===void 0?"label":G,W=B.value,j=W===void 0?"value":W,H=B.options,X=H===void 0?"options":H,Q=new Map,ue=function ee(K){if(!(K!=null&&K.length))return Q;for(var se=K.length,le=0;le<se;){var oe=K[le++];Q.set(oe[j],oe[L]),ee(oe[X])}return Q};return ue(C)}},[_,i,C]);if(i==="read"){var N=F.jsx(F.Fragment,{children:PS(g.text,xh(o||I))});if(a){var D;return(D=a(N,z(z({mode:i},l),{},{options:C}),N))!==null&&D!==void 0?D:null}return N}if(i==="edit"||i==="update"){var M=function(){return c?F.jsx(_Rt,z(z({},xc(d)),{},{id:f,loading:E,ref:v,allowClear:!0,size:A,options:C,label:u,placeholder:y.getMessage("tableForm.selectPlaceholder","请选择"),lightLabel:p,labelTrigger:m,fetchData:w},l)):F.jsx(xRt,z(z(z({className:g.className,style:z({minWidth:100},g.style)},xc(d)),{},{id:f,loading:E,ref:v,allowClear:!0,defaultSearchValue:t.defaultKeyWords,notFoundContent:E?F.jsx(Nc,{size:"small"}):l==null?void 0:l.notFoundContent,fetchData:function(L){b.current=L??"",w(L)},resetData:O,preserveOriginalLabel:!0,optionItemRender:function(L){return typeof L.label=="string"&&b.current?F.jsx(ORt,{label:L.label,words:[b.current]}):L.label},placeholder:y.getMessage("tableForm.selectPlaceholder","请选择"),label:u},l),{},{options:C}),"SearchSelect")},k=M();if(s){var P;return(P=s(g.text,z(z({mode:i},l),{},{options:C,loading:E}),k))!==null&&P!==void 0?P:null}return k}return null};const IRt=pe.forwardRef(ARt);var NRt=["radioType","renderFormItem","mode","render","label","light"],MRt=function(t,n){var r;t.radioType;var i=t.renderFormItem,o=t.mode,a=t.render,s=t.label,l=t.light,c=kt(t,NRt),u=h.useContext(Ln.ConfigContext),d=u.getPrefixCls,f=d("pro-field-cascader"),p=FS(c),m=Re(p,3),g=m[0],v=m[1],y=m[2],b=Lo(),_=h.useRef(),S=h.useState(!1),x=Re(S,2),E=x[0],C=x[1];h.useImperativeHandle(n,function(){return z(z({},_.current||{}),{},{fetchData:function(L){return y(L)}})},[y]);var w=h.useMemo(function(){var G;if(o==="read"){var L=((G=c.fieldProps)===null||G===void 0?void 0:G.fieldNames)||{},W=L.value,j=W===void 0?"value":W,H=L.label,X=H===void 0?"label":H,Q=L.children,ue=Q===void 0?"children":Q,ee=new Map,K=function se(le){if(!(le!=null&&le.length))return ee;for(var oe=le.length,ne=0;ne<oe;){var he=le[ne++];ee.set(he[j],he[X]),se(he[ue])}return ee};return K(v)}},[o,v,(r=c.fieldProps)===null||r===void 0?void 0:r.fieldNames]);if(o==="read"){var O=F.jsx(F.Fragment,{children:PS(c.text,xh(c.valueEnum||w))});if(a){var T;return(T=a(c.text,z({mode:o},c.fieldProps),O))!==null&&T!==void 0?T:null}return O}if(o==="edit"){var A,I,N=F.jsx(CS,z(z(z({},xc(!l)),{},{ref:_,open:E,suffixIcon:g?F.jsx(Td,{}):void 0,placeholder:b.getMessage("tableForm.selectPlaceholder","请选择"),allowClear:((A=c.fieldProps)===null||A===void 0?void 0:A.allowClear)!==!1},c.fieldProps),{},{onDropdownVisibleChange:function(L){var W,j;c==null||(W=c.fieldProps)===null||W===void 0||(j=W.onDropdownVisibleChange)===null||j===void 0||j.call(W,L),C(L)},className:Ce((I=c.fieldProps)===null||I===void 0?void 0:I.className,f),options:v}));if(i){var D;N=(D=i(c.text,z(z({mode:o},c.fieldProps),{},{options:v,loading:g}),N))!==null&&D!==void 0?D:null}if(l){var M=c.fieldProps,k=M.disabled,P=M.value,B=!!P&&(P==null?void 0:P.length)!==0;return F.jsx(Ch,{label:s,disabled:k,bordered:c.bordered,value:B||E?N:null,style:B?{paddingInlineEnd:0}:void 0,allowClear:!1,downIcon:B||E?!1:void 0,onClick:function(){var L,W;C(!0),c==null||(L=c.fieldProps)===null||L===void 0||(W=L.onDropdownVisibleChange)===null||W===void 0||W.call(L,!0)}})}return N}return null};const kRt=pe.forwardRef(MRt);var PRt=["layout","renderFormItem","mode","render"],DRt=["fieldNames"],LRt=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=kt(t,PRt),d=h.useContext(Ln.ConfigContext),f=d.getPrefixCls,p=f("pro-field-checkbox"),m=(r=ui.Item)===null||r===void 0||(i=r.useStatus)===null||i===void 0?void 0:i.call(r),g=FS(u),v=Re(g,3),y=v[0],b=v[1],_=v[2],S=Gi("Checkbox",function(B){return te({},".".concat(p),{"&-error":{span:{color:B.colorError}},"&-warning":{span:{color:B.colorWarning}},"&-vertical":te(te(te({},"&".concat(B.antCls,"-checkbox-group"),{display:"inline-block"}),"".concat(B.antCls,"-checkbox-wrapper+").concat(B.antCls,"-checkbox-wrapper"),{"margin-inline-start":"0 !important"}),"".concat(B.antCls,"-checkbox-group-item"),{display:"flex",marginInlineEnd:0})})}),x=S.wrapSSR,E=S.hashId,C=$I==null?void 0:$I(),w=C.token,O=h.useRef();if(h.useImperativeHandle(n,function(){return z(z({},O.current||{}),{},{fetchData:function(G){return _(G)}})},[_]),y)return F.jsx(Nc,{size:"small"});if(l==="read"){var T=b!=null&&b.length?b==null?void 0:b.reduce(function(B,G){var L;return z(z({},B),{},te({},(L=G.value)!==null&&L!==void 0?L:"",G.label))},{}):void 0,A=PS(u.text,xh(u.valueEnum||T));if(c){var I;return(I=c(u.text,z({mode:l},u.fieldProps),F.jsx(F.Fragment,{children:A})))!==null&&I!==void 0?I:null}return F.jsx("div",{style:{display:"flex",flexWrap:"wrap",alignItems:"center",gap:w.marginSM},children:A})}if(l==="edit"){var N,D=u.fieldProps||{};D.fieldNames;var M=kt(D,DRt),k=x(F.jsx(lh.Group,z(z({},M),{},{className:Ce((N=u.fieldProps)===null||N===void 0?void 0:N.className,E,"".concat(p,"-").concat(a),te(te({},"".concat(p,"-error"),(m==null?void 0:m.status)==="error"),"".concat(p,"-warning"),(m==null?void 0:m.status)==="warning")),options:b})));if(s){var P;return(P=s(u.text,z(z({mode:l},u.fieldProps),{},{options:b,loading:y}),k))!==null&&P!==void 0?P:null}return k}return null};const $Rt=pe.forwardRef(LRt);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},BRt=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(),p=f.token;if(i==="read"){var m=F.jsx("pre",z(z({ref:n},u),{},{style:z({padding:16,overflow:"auto",fontSize:"85%",lineHeight:1.45,color:p.colorTextSecondary,fontFamily:p.fontFamilyCode,backgroundColor:"rgba(150, 150, 150, 0.1)",borderRadius:3,width:"min-content"},u.style),children:F.jsx("code",{children:d})}));return o?o(d,z(z({mode:i},u),{},{ref:n}),m):m}if(i==="edit"||i==="update"){u.value=d;var g=F.jsx(Co.TextArea,z(z({rows:5},u),{},{ref:n}));if(c&&(g=F.jsx(Co,z(z({},u),{},{ref:n}))),l){var v;return(v=l(d,z(z({mode:i},u),{},{ref:n}),g))!==null&&v!==void 0?v:null}return g}return null};const kse=pe.forwardRef(BRt);var nu={},$2={},HRt=typeof Wn=="object"&&Wn&&Wn.Object===Object&&Wn,wOe=HRt,jRt=wOe,URt=typeof self=="object"&&self&&self.Object===Object&&self,zRt=jRt||URt||Function("return this")(),zd=zRt,VRt=zd,GRt=VRt.Symbol,F2=GRt,Pse=F2,TOe=Object.prototype,WRt=TOe.hasOwnProperty,qRt=TOe.toString,UE=Pse?Pse.toStringTag:void 0;function YRt(e){var t=WRt.call(e,UE),n=e[UE];try{e[UE]=void 0;var r=!0}catch{}var i=qRt.call(e);return r&&(t?e[UE]=n:delete e[UE]),i}var KRt=YRt,QRt=Object.prototype,XRt=QRt.toString;function ZRt(e){return XRt.call(e)}var JRt=ZRt,Dse=F2,eAt=KRt,tAt=JRt,nAt="[object Null]",rAt="[object Undefined]",Lse=Dse?Dse.toStringTag:void 0;function iAt(e){return e==null?e===void 0?rAt:nAt:Lse&&Lse in Object(e)?eAt(e):tAt(e)}var Rv=iAt,oAt=Array.isArray,Mc=oAt;function aAt(e){return e!=null&&typeof e=="object"}var Xf=aAt,sAt=Rv,lAt=Mc,cAt=Xf,uAt="[object String]";function dAt(e){return typeof e=="string"||!lAt(e)&&cAt(e)&&sAt(e)==uAt}var fAt=dAt;function pAt(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 hAt=pAt,mAt=hAt,gAt=mAt(),OOe=gAt;function vAt(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}var bAt=vAt,yAt=Rv,_At=Xf,SAt="[object Arguments]";function EAt(e){return _At(e)&&yAt(e)==SAt}var CAt=EAt,$se=CAt,xAt=Xf,ROe=Object.prototype,wAt=ROe.hasOwnProperty,TAt=ROe.propertyIsEnumerable,OAt=$se(function(){return arguments}())?$se:function(e){return xAt(e)&&wAt.call(e,"callee")&&!TAt.call(e,"callee")},RK=OAt,uM={exports:{}};function RAt(){return!1}var AAt=RAt;uM.exports;(function(e,t){var n=zd,r=AAt,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})(uM,uM.exports);var AD=uM.exports,IAt=9007199254740991,NAt=/^(?:0|[1-9]\d*)$/;function MAt(e,t){var n=typeof e;return t=t??IAt,!!t&&(n=="number"||n!="symbol"&&NAt.test(e))&&e>-1&&e%1==0&&e<t}var AK=MAt,kAt=9007199254740991;function PAt(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=kAt}var IK=PAt,DAt=Rv,LAt=IK,$At=Xf,FAt="[object Arguments]",BAt="[object Array]",HAt="[object Boolean]",jAt="[object Date]",UAt="[object Error]",zAt="[object Function]",VAt="[object Map]",GAt="[object Number]",WAt="[object Object]",qAt="[object RegExp]",YAt="[object Set]",KAt="[object String]",QAt="[object WeakMap]",XAt="[object ArrayBuffer]",ZAt="[object DataView]",JAt="[object Float32Array]",eIt="[object Float64Array]",tIt="[object Int8Array]",nIt="[object Int16Array]",rIt="[object Int32Array]",iIt="[object Uint8Array]",oIt="[object Uint8ClampedArray]",aIt="[object Uint16Array]",sIt="[object Uint32Array]",so={};so[JAt]=so[eIt]=so[tIt]=so[nIt]=so[rIt]=so[iIt]=so[oIt]=so[aIt]=so[sIt]=!0;so[FAt]=so[BAt]=so[XAt]=so[HAt]=so[ZAt]=so[jAt]=so[UAt]=so[zAt]=so[VAt]=so[GAt]=so[WAt]=so[qAt]=so[YAt]=so[KAt]=so[QAt]=!1;function lIt(e){return $At(e)&&LAt(e.length)&&!!so[DAt(e)]}var cIt=lIt;function uIt(e){return function(t){return e(t)}}var NK=uIt,dM={exports:{}};dM.exports;(function(e,t){var n=wOe,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})(dM,dM.exports);var MK=dM.exports,dIt=cIt,fIt=NK,Fse=MK,Bse=Fse&&Fse.isTypedArray,pIt=Bse?fIt(Bse):dIt,kK=pIt,hIt=bAt,mIt=RK,gIt=Mc,vIt=AD,bIt=AK,yIt=kK,_It=Object.prototype,SIt=_It.hasOwnProperty;function EIt(e,t){var n=gIt(e),r=!n&&mIt(e),i=!n&&!r&&vIt(e),o=!n&&!r&&!i&&yIt(e),a=n||r||i||o,s=a?hIt(e.length,String):[],l=s.length;for(var c in e)(t||SIt.call(e,c))&&!(a&&(c=="length"||i&&(c=="offset"||c=="parent")||o&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||bIt(c,l)))&&s.push(c);return s}var AOe=EIt,CIt=Object.prototype;function xIt(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||CIt;return e===n}var PK=xIt;function wIt(e,t){return function(n){return e(t(n))}}var IOe=wIt,TIt=IOe,OIt=TIt(Object.keys,Object),RIt=OIt,AIt=PK,IIt=RIt,NIt=Object.prototype,MIt=NIt.hasOwnProperty;function kIt(e){if(!AIt(e))return IIt(e);var t=[];for(var n in Object(e))MIt.call(e,n)&&n!="constructor"&&t.push(n);return t}var PIt=kIt;function DIt(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Au=DIt,LIt=Rv,$It=Au,FIt="[object AsyncFunction]",BIt="[object Function]",HIt="[object GeneratorFunction]",jIt="[object Proxy]";function UIt(e){if(!$It(e))return!1;var t=LIt(e);return t==BIt||t==HIt||t==FIt||t==jIt}var DK=UIt,zIt=DK,VIt=IK;function GIt(e){return e!=null&&VIt(e.length)&&!zIt(e)}var BS=GIt,WIt=AOe,qIt=PIt,YIt=BS;function KIt(e){return YIt(e)?WIt(e):qIt(e)}var B2=KIt,QIt=OOe,XIt=B2;function ZIt(e,t){return e&&QIt(e,t,XIt)}var NOe=ZIt;function JIt(e){return e}var ID=JIt,eNt=ID;function tNt(e){return typeof e=="function"?e:eNt}var MOe=tNt,nNt=NOe,rNt=MOe;function iNt(e,t){return e&&nNt(e,rNt(t))}var LK=iNt,oNt=IOe,aNt=oNt(Object.getPrototypeOf,Object),$K=aNt,sNt=Rv,lNt=$K,cNt=Xf,uNt="[object Object]",dNt=Function.prototype,fNt=Object.prototype,kOe=dNt.toString,pNt=fNt.hasOwnProperty,hNt=kOe.call(Object);function mNt(e){if(!cNt(e)||sNt(e)!=uNt)return!1;var t=lNt(e);if(t===null)return!0;var n=pNt.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&kOe.call(n)==hNt}var POe=mNt;function gNt(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 DOe=gNt;function vNt(){this.__data__=[],this.size=0}var bNt=vNt;function yNt(e,t){return e===t||e!==e&&t!==t}var H2=yNt,_Nt=H2;function SNt(e,t){for(var n=e.length;n--;)if(_Nt(e[n][0],t))return n;return-1}var ND=SNt,ENt=ND,CNt=Array.prototype,xNt=CNt.splice;function wNt(e){var t=this.__data__,n=ENt(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():xNt.call(t,n,1),--this.size,!0}var TNt=wNt,ONt=ND;function RNt(e){var t=this.__data__,n=ONt(t,e);return n<0?void 0:t[n][1]}var ANt=RNt,INt=ND;function NNt(e){return INt(this.__data__,e)>-1}var MNt=NNt,kNt=ND;function PNt(e,t){var n=this.__data__,r=kNt(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}var DNt=PNt,LNt=bNt,$Nt=TNt,FNt=ANt,BNt=MNt,HNt=DNt;function HS(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])}}HS.prototype.clear=LNt;HS.prototype.delete=$Nt;HS.prototype.get=FNt;HS.prototype.has=BNt;HS.prototype.set=HNt;var MD=HS,jNt=MD;function UNt(){this.__data__=new jNt,this.size=0}var zNt=UNt;function VNt(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}var GNt=VNt;function WNt(e){return this.__data__.get(e)}var qNt=WNt;function YNt(e){return this.__data__.has(e)}var KNt=YNt,QNt=zd,XNt=QNt["__core-js_shared__"],ZNt=XNt,r$=ZNt,Hse=function(){var e=/[^.]+$/.exec(r$&&r$.keys&&r$.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function JNt(e){return!!Hse&&Hse in e}var e4t=JNt,t4t=Function.prototype,n4t=t4t.toString;function r4t(e){if(e!=null){try{return n4t.call(e)}catch{}try{return e+""}catch{}}return""}var LOe=r4t,i4t=DK,o4t=e4t,a4t=Au,s4t=LOe,l4t=/[\\^$.*+?()[\]{}|]/g,c4t=/^\[object .+?Constructor\]$/,u4t=Function.prototype,d4t=Object.prototype,f4t=u4t.toString,p4t=d4t.hasOwnProperty,h4t=RegExp("^"+f4t.call(p4t).replace(l4t,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function m4t(e){if(!a4t(e)||o4t(e))return!1;var t=i4t(e)?h4t:c4t;return t.test(s4t(e))}var g4t=m4t;function v4t(e,t){return e==null?void 0:e[t]}var b4t=v4t,y4t=g4t,_4t=b4t;function S4t(e,t){var n=_4t(e,t);return y4t(n)?n:void 0}var Av=S4t,E4t=Av,C4t=zd,x4t=E4t(C4t,"Map"),FK=x4t,w4t=Av,T4t=w4t(Object,"create"),kD=T4t,jse=kD;function O4t(){this.__data__=jse?jse(null):{},this.size=0}var R4t=O4t;function A4t(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var I4t=A4t,N4t=kD,M4t="__lodash_hash_undefined__",k4t=Object.prototype,P4t=k4t.hasOwnProperty;function D4t(e){var t=this.__data__;if(N4t){var n=t[e];return n===M4t?void 0:n}return P4t.call(t,e)?t[e]:void 0}var L4t=D4t,$4t=kD,F4t=Object.prototype,B4t=F4t.hasOwnProperty;function H4t(e){var t=this.__data__;return $4t?t[e]!==void 0:B4t.call(t,e)}var j4t=H4t,U4t=kD,z4t="__lodash_hash_undefined__";function V4t(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=U4t&&t===void 0?z4t:t,this}var G4t=V4t,W4t=R4t,q4t=I4t,Y4t=L4t,K4t=j4t,Q4t=G4t;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=W4t;jS.prototype.delete=q4t;jS.prototype.get=Y4t;jS.prototype.has=K4t;jS.prototype.set=Q4t;var X4t=jS,Use=X4t,Z4t=MD,J4t=FK;function eMt(){this.size=0,this.__data__={hash:new Use,map:new(J4t||Z4t),string:new Use}}var tMt=eMt;function nMt(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var rMt=nMt,iMt=rMt;function oMt(e,t){var n=e.__data__;return iMt(t)?n[typeof t=="string"?"string":"hash"]:n.map}var PD=oMt,aMt=PD;function sMt(e){var t=aMt(this,e).delete(e);return this.size-=t?1:0,t}var lMt=sMt,cMt=PD;function uMt(e){return cMt(this,e).get(e)}var dMt=uMt,fMt=PD;function pMt(e){return fMt(this,e).has(e)}var hMt=pMt,mMt=PD;function gMt(e,t){var n=mMt(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}var vMt=gMt,bMt=tMt,yMt=lMt,_Mt=dMt,SMt=hMt,EMt=vMt;function US(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])}}US.prototype.clear=bMt;US.prototype.delete=yMt;US.prototype.get=_Mt;US.prototype.has=SMt;US.prototype.set=EMt;var BK=US,CMt=MD,xMt=FK,wMt=BK,TMt=200;function OMt(e,t){var n=this.__data__;if(n instanceof CMt){var r=n.__data__;if(!xMt||r.length<TMt-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new wMt(r)}return n.set(e,t),this.size=n.size,this}var RMt=OMt,AMt=MD,IMt=zNt,NMt=GNt,MMt=qNt,kMt=KNt,PMt=RMt;function zS(e){var t=this.__data__=new AMt(e);this.size=t.size}zS.prototype.clear=IMt;zS.prototype.delete=NMt;zS.prototype.get=MMt;zS.prototype.has=kMt;zS.prototype.set=PMt;var DD=zS,DMt="__lodash_hash_undefined__";function LMt(e){return this.__data__.set(e,DMt),this}var $Mt=LMt;function FMt(e){return this.__data__.has(e)}var BMt=FMt,HMt=BK,jMt=$Mt,UMt=BMt;function fM(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new HMt;++t<n;)this.add(e[t])}fM.prototype.add=fM.prototype.push=jMt;fM.prototype.has=UMt;var zMt=fM;function VMt(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 GMt=VMt;function WMt(e,t){return e.has(t)}var qMt=WMt,YMt=zMt,KMt=GMt,QMt=qMt,XMt=1,ZMt=2;function JMt(e,t,n,r,i,o){var a=n&XMt,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,p=n&ZMt?new YMt: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(p){if(!KMt(t,function(y,b){if(!QMt(p,b)&&(m===y||i(m,y,n,r,o)))return p.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 $Oe=JMt,ekt=zd,tkt=ekt.Uint8Array,FOe=tkt;function nkt(e){var t=-1,n=Array(e.size);return e.forEach(function(r,i){n[++t]=[i,r]}),n}var rkt=nkt;function ikt(e){var t=-1,n=Array(e.size);return e.forEach(function(r){n[++t]=r}),n}var okt=ikt,zse=F2,Vse=FOe,akt=H2,skt=$Oe,lkt=rkt,ckt=okt,ukt=1,dkt=2,fkt="[object Boolean]",pkt="[object Date]",hkt="[object Error]",mkt="[object Map]",gkt="[object Number]",vkt="[object RegExp]",bkt="[object Set]",ykt="[object String]",_kt="[object Symbol]",Skt="[object ArrayBuffer]",Ekt="[object DataView]",Gse=zse?zse.prototype:void 0,i$=Gse?Gse.valueOf:void 0;function Ckt(e,t,n,r,i,o,a){switch(n){case Ekt:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case Skt:return!(e.byteLength!=t.byteLength||!o(new Vse(e),new Vse(t)));case fkt:case pkt:case gkt:return akt(+e,+t);case hkt:return e.name==t.name&&e.message==t.message;case vkt:case ykt:return e==t+"";case mkt:var s=lkt;case bkt:var l=r&ukt;if(s||(s=ckt),e.size!=t.size&&!l)return!1;var c=a.get(e);if(c)return c==t;r|=dkt,a.set(e,t);var u=skt(s(e),s(t),r,i,o,a);return a.delete(e),u;case _kt:if(i$)return i$.call(e)==i$.call(t)}return!1}var xkt=Ckt;function wkt(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}var BOe=wkt,Tkt=BOe,Okt=Mc;function Rkt(e,t,n){var r=t(e);return Okt(e)?r:Tkt(r,n(e))}var HOe=Rkt;function Akt(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 Ikt=Akt;function Nkt(){return[]}var jOe=Nkt,Mkt=Ikt,kkt=jOe,Pkt=Object.prototype,Dkt=Pkt.propertyIsEnumerable,Wse=Object.getOwnPropertySymbols,Lkt=Wse?function(e){return e==null?[]:(e=Object(e),Mkt(Wse(e),function(t){return Dkt.call(e,t)}))}:kkt,HK=Lkt,$kt=HOe,Fkt=HK,Bkt=B2;function Hkt(e){return $kt(e,Bkt,Fkt)}var UOe=Hkt,qse=UOe,jkt=1,Ukt=Object.prototype,zkt=Ukt.hasOwnProperty;function Vkt(e,t,n,r,i,o){var a=n&jkt,s=qse(e),l=s.length,c=qse(t),u=c.length;if(l!=u&&!a)return!1;for(var d=l;d--;){var f=s[d];if(!(a?f in t:zkt.call(t,f)))return!1}var p=o.get(e),m=o.get(t);if(p&&m)return p==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 S=e.constructor,x=t.constructor;S!=x&&"constructor"in e&&"constructor"in t&&!(typeof S=="function"&&S instanceof S&&typeof x=="function"&&x instanceof x)&&(g=!1)}return o.delete(e),o.delete(t),g}var Gkt=Vkt,Wkt=Av,qkt=zd,Ykt=Wkt(qkt,"DataView"),Kkt=Ykt,Qkt=Av,Xkt=zd,Zkt=Qkt(Xkt,"Promise"),Jkt=Zkt,e5t=Av,t5t=zd,n5t=e5t(t5t,"Set"),r5t=n5t,i5t=Av,o5t=zd,a5t=i5t(o5t,"WeakMap"),s5t=a5t,Uj=Kkt,zj=FK,Vj=Jkt,Gj=r5t,Wj=s5t,zOe=Rv,VS=LOe,Yse="[object Map]",l5t="[object Object]",Kse="[object Promise]",Qse="[object Set]",Xse="[object WeakMap]",Zse="[object DataView]",c5t=VS(Uj),u5t=VS(zj),d5t=VS(Vj),f5t=VS(Gj),p5t=VS(Wj),g0=zOe;(Uj&&g0(new Uj(new ArrayBuffer(1)))!=Zse||zj&&g0(new zj)!=Yse||Vj&&g0(Vj.resolve())!=Kse||Gj&&g0(new Gj)!=Qse||Wj&&g0(new Wj)!=Xse)&&(g0=function(e){var t=zOe(e),n=t==l5t?e.constructor:void 0,r=n?VS(n):"";if(r)switch(r){case c5t:return Zse;case u5t:return Yse;case d5t:return Kse;case f5t:return Qse;case p5t:return Xse}return t});var LD=g0,o$=DD,h5t=$Oe,m5t=xkt,g5t=Gkt,Jse=LD,ele=Mc,tle=AD,v5t=kK,b5t=1,nle="[object Arguments]",rle="[object Array]",UR="[object Object]",y5t=Object.prototype,ile=y5t.hasOwnProperty;function _5t(e,t,n,r,i,o){var a=ele(e),s=ele(t),l=a?rle:Jse(e),c=s?rle:Jse(t);l=l==nle?UR:l,c=c==nle?UR:c;var u=l==UR,d=c==UR,f=l==c;if(f&&tle(e)){if(!tle(t))return!1;a=!0,u=!1}if(f&&!u)return o||(o=new o$),a||v5t(e)?h5t(e,t,n,r,i,o):m5t(e,t,l,n,r,i,o);if(!(n&b5t)){var p=u&&ile.call(e,"__wrapped__"),m=d&&ile.call(t,"__wrapped__");if(p||m){var g=p?e.value():e,v=m?t.value():t;return o||(o=new o$),i(g,v,n,r,o)}}return f?(o||(o=new o$),g5t(e,t,n,r,i,o)):!1}var S5t=_5t,E5t=S5t,ole=Xf;function VOe(e,t,n,r,i){return e===t?!0:e==null||t==null||!ole(e)&&!ole(t)?e!==e&&t!==t:E5t(e,t,n,r,VOe,i)}var GOe=VOe,C5t=DD,x5t=GOe,w5t=1,T5t=2;function O5t(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 C5t;if(r)var f=r(c,u,l,e,t,d);if(!(f===void 0?x5t(u,c,w5t|T5t,r,d):f))return!1}}return!0}var R5t=O5t,A5t=Au;function I5t(e){return e===e&&!A5t(e)}var WOe=I5t,N5t=WOe,M5t=B2;function k5t(e){for(var t=M5t(e),n=t.length;n--;){var r=t[n],i=e[r];t[n]=[r,i,N5t(i)]}return t}var P5t=k5t;function D5t(e,t){return function(n){return n==null?!1:n[e]===t&&(t!==void 0||e in Object(n))}}var qOe=D5t,L5t=R5t,$5t=P5t,F5t=qOe;function B5t(e){var t=$5t(e);return t.length==1&&t[0][2]?F5t(t[0][0],t[0][1]):function(n){return n===e||L5t(n,e,t)}}var H5t=B5t,j5t=Rv,U5t=Xf,z5t="[object Symbol]";function V5t(e){return typeof e=="symbol"||U5t(e)&&j5t(e)==z5t}var $D=V5t,G5t=Mc,W5t=$D,q5t=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Y5t=/^\w*$/;function K5t(e,t){if(G5t(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||W5t(e)?!0:Y5t.test(e)||!q5t.test(e)||t!=null&&e in Object(t)}var jK=K5t,YOe=BK,Q5t="Expected a function";function UK(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(Q5t);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(UK.Cache||YOe),n}UK.Cache=YOe;var X5t=UK,Z5t=X5t,J5t=500;function ePt(e){var t=Z5t(e,function(r){return n.size===J5t&&n.clear(),r}),n=t.cache;return t}var tPt=ePt,nPt=tPt,rPt=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,iPt=/\\(\\)?/g,oPt=nPt(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(rPt,function(n,r,i,o){t.push(i?o.replace(iPt,"$1"):r||n)}),t}),aPt=oPt,ale=F2,sPt=DOe,lPt=Mc,cPt=$D,sle=ale?ale.prototype:void 0,lle=sle?sle.toString:void 0;function KOe(e){if(typeof e=="string")return e;if(lPt(e))return sPt(e,KOe)+"";if(cPt(e))return lle?lle.call(e):"";var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}var uPt=KOe,dPt=uPt;function fPt(e){return e==null?"":dPt(e)}var pPt=fPt,hPt=Mc,mPt=jK,gPt=aPt,vPt=pPt;function bPt(e,t){return hPt(e)?e:mPt(e,t)?[e]:gPt(vPt(e))}var QOe=bPt,yPt=$D;function _Pt(e){if(typeof e=="string"||yPt(e))return e;var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}var FD=_Pt,SPt=QOe,EPt=FD;function CPt(e,t){t=SPt(t,e);for(var n=0,r=t.length;e!=null&&n<r;)e=e[EPt(t[n++])];return n&&n==r?e:void 0}var XOe=CPt,xPt=XOe;function wPt(e,t,n){var r=e==null?void 0:xPt(e,t);return r===void 0?n:r}var TPt=wPt;function OPt(e,t){return e!=null&&t in Object(e)}var RPt=OPt,APt=QOe,IPt=RK,NPt=Mc,MPt=AK,kPt=IK,PPt=FD;function DPt(e,t,n){t=APt(t,e);for(var r=-1,i=t.length,o=!1;++r<i;){var a=PPt(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&&kPt(i)&&MPt(a,i)&&(NPt(e)||IPt(e)))}var LPt=DPt,$Pt=RPt,FPt=LPt;function BPt(e,t){return e!=null&&FPt(e,t,$Pt)}var HPt=BPt,jPt=GOe,UPt=TPt,zPt=HPt,VPt=jK,GPt=WOe,WPt=qOe,qPt=FD,YPt=1,KPt=2;function QPt(e,t){return VPt(e)&&GPt(t)?WPt(qPt(e),t):function(n){var r=UPt(n,e);return r===void 0&&r===t?zPt(n,e):jPt(t,r,YPt|KPt)}}var XPt=QPt;function ZPt(e){return function(t){return t==null?void 0:t[e]}}var JPt=ZPt,eDt=XOe;function tDt(e){return function(t){return eDt(t,e)}}var nDt=tDt,rDt=JPt,iDt=nDt,oDt=jK,aDt=FD;function sDt(e){return oDt(e)?rDt(aDt(e)):iDt(e)}var lDt=sDt,cDt=H5t,uDt=XPt,dDt=ID,fDt=Mc,pDt=lDt;function hDt(e){return typeof e=="function"?e:e==null?dDt:typeof e=="object"?fDt(e)?uDt(e[0],e[1]):cDt(e):pDt(e)}var mDt=hDt,gDt=BS;function vDt(e,t){return function(n,r){if(n==null)return n;if(!gDt(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 bDt=vDt,yDt=NOe,_Dt=bDt,SDt=_Dt(yDt),ZOe=SDt,EDt=ZOe,CDt=BS;function xDt(e,t){var n=-1,r=CDt(e)?Array(e.length):[];return EDt(e,function(i,o,a){r[++n]=t(i,o,a)}),r}var wDt=xDt,TDt=DOe,ODt=mDt,RDt=wDt,ADt=Mc;function IDt(e,t){var n=ADt(e)?TDt:RDt;return n(e,ODt(t))}var NDt=IDt;Object.defineProperty($2,"__esModule",{value:!0});$2.flattenNames=void 0;var MDt=fAt,kDt=BD(MDt),PDt=LK,DDt=BD(PDt),LDt=POe,$Dt=BD(LDt),FDt=NDt,BDt=BD(FDt);function BD(e){return e&&e.__esModule?e:{default:e}}var HDt=$2.flattenNames=function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],n=[];return(0,BDt.default)(t,function(r){Array.isArray(r)?e(r).map(function(i){return n.push(i)}):(0,$Dt.default)(r)?(0,DDt.default)(r,function(i,o){i===!0&&n.push(o),n.push(o+"-"+i)}):(0,kDt.default)(r)&&n.push(r)}),n};$2.default=HDt;var j2={};function jDt(e,t){for(var n=-1,r=e==null?0:e.length;++n<r&&t(e[n],n,e)!==!1;);return e}var JOe=jDt,UDt=Av,zDt=function(){try{var e=UDt(Object,"defineProperty");return e({},"",{}),e}catch{}}(),eRe=zDt,cle=eRe;function VDt(e,t,n){t=="__proto__"&&cle?cle(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}var zK=VDt,GDt=zK,WDt=H2,qDt=Object.prototype,YDt=qDt.hasOwnProperty;function KDt(e,t,n){var r=e[t];(!(YDt.call(e,t)&&WDt(r,n))||n===void 0&&!(t in e))&&GDt(e,t,n)}var tRe=KDt,QDt=tRe,XDt=zK;function ZDt(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?XDt(n,s,l):QDt(n,s,l)}return n}var U2=ZDt,JDt=U2,e3t=B2;function t3t(e,t){return e&&JDt(t,e3t(t),e)}var n3t=t3t;function r3t(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var i3t=r3t,o3t=Au,a3t=PK,s3t=i3t,l3t=Object.prototype,c3t=l3t.hasOwnProperty;function u3t(e){if(!o3t(e))return s3t(e);var t=a3t(e),n=[];for(var r in e)r=="constructor"&&(t||!c3t.call(e,r))||n.push(r);return n}var d3t=u3t,f3t=AOe,p3t=d3t,h3t=BS;function m3t(e){return h3t(e)?f3t(e,!0):p3t(e)}var z2=m3t,g3t=U2,v3t=z2;function b3t(e,t){return e&&g3t(t,v3t(t),e)}var y3t=b3t,pM={exports:{}};pM.exports;(function(e,t){var n=zd,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})(pM,pM.exports);var nRe=pM.exports;function _3t(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}var rRe=_3t,S3t=U2,E3t=HK;function C3t(e,t){return S3t(e,E3t(e),t)}var x3t=C3t,w3t=BOe,T3t=$K,O3t=HK,R3t=jOe,A3t=Object.getOwnPropertySymbols,I3t=A3t?function(e){for(var t=[];e;)w3t(t,O3t(e)),e=T3t(e);return t}:R3t,iRe=I3t,N3t=U2,M3t=iRe;function k3t(e,t){return N3t(e,M3t(e),t)}var P3t=k3t,D3t=HOe,L3t=iRe,$3t=z2;function F3t(e){return D3t(e,$3t,L3t)}var B3t=F3t,H3t=Object.prototype,j3t=H3t.hasOwnProperty;function U3t(e){var t=e.length,n=new e.constructor(t);return t&&typeof e[0]=="string"&&j3t.call(e,"index")&&(n.index=e.index,n.input=e.input),n}var z3t=U3t,ule=FOe;function V3t(e){var t=new e.constructor(e.byteLength);return new ule(t).set(new ule(e)),t}var VK=V3t,G3t=VK;function W3t(e,t){var n=t?G3t(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}var q3t=W3t,Y3t=/\w*$/;function K3t(e){var t=new e.constructor(e.source,Y3t.exec(e));return t.lastIndex=e.lastIndex,t}var Q3t=K3t,dle=F2,fle=dle?dle.prototype:void 0,ple=fle?fle.valueOf:void 0;function X3t(e){return ple?Object(ple.call(e)):{}}var Z3t=X3t,J3t=VK;function e8t(e,t){var n=t?J3t(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}var oRe=e8t,t8t=VK,n8t=q3t,r8t=Q3t,i8t=Z3t,o8t=oRe,a8t="[object Boolean]",s8t="[object Date]",l8t="[object Map]",c8t="[object Number]",u8t="[object RegExp]",d8t="[object Set]",f8t="[object String]",p8t="[object Symbol]",h8t="[object ArrayBuffer]",m8t="[object DataView]",g8t="[object Float32Array]",v8t="[object Float64Array]",b8t="[object Int8Array]",y8t="[object Int16Array]",_8t="[object Int32Array]",S8t="[object Uint8Array]",E8t="[object Uint8ClampedArray]",C8t="[object Uint16Array]",x8t="[object Uint32Array]";function w8t(e,t,n){var r=e.constructor;switch(t){case h8t:return t8t(e);case a8t:case s8t:return new r(+e);case m8t:return n8t(e,n);case g8t:case v8t:case b8t:case y8t:case _8t:case S8t:case E8t:case C8t:case x8t:return o8t(e,n);case l8t:return new r;case c8t:case f8t:return new r(e);case u8t:return r8t(e);case d8t:return new r;case p8t:return i8t(e)}}var T8t=w8t,O8t=Au,hle=Object.create,R8t=function(){function e(){}return function(t){if(!O8t(t))return{};if(hle)return hle(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}(),A8t=R8t,I8t=A8t,N8t=$K,M8t=PK;function k8t(e){return typeof e.constructor=="function"&&!M8t(e)?I8t(N8t(e)):{}}var aRe=k8t,P8t=LD,D8t=Xf,L8t="[object Map]";function $8t(e){return D8t(e)&&P8t(e)==L8t}var F8t=$8t,B8t=F8t,H8t=NK,mle=MK,gle=mle&&mle.isMap,j8t=gle?H8t(gle):B8t,U8t=j8t,z8t=LD,V8t=Xf,G8t="[object Set]";function W8t(e){return V8t(e)&&z8t(e)==G8t}var q8t=W8t,Y8t=q8t,K8t=NK,vle=MK,ble=vle&&vle.isSet,Q8t=ble?K8t(ble):Y8t,X8t=Q8t,Z8t=DD,J8t=JOe,e9t=tRe,t9t=n3t,n9t=y3t,r9t=nRe,i9t=rRe,o9t=x3t,a9t=P3t,s9t=UOe,l9t=B3t,c9t=LD,u9t=z3t,d9t=T8t,f9t=aRe,p9t=Mc,h9t=AD,m9t=U8t,g9t=Au,v9t=X8t,b9t=B2,y9t=z2,_9t=1,S9t=2,E9t=4,sRe="[object Arguments]",C9t="[object Array]",x9t="[object Boolean]",w9t="[object Date]",T9t="[object Error]",lRe="[object Function]",O9t="[object GeneratorFunction]",R9t="[object Map]",A9t="[object Number]",cRe="[object Object]",I9t="[object RegExp]",N9t="[object Set]",M9t="[object String]",k9t="[object Symbol]",P9t="[object WeakMap]",D9t="[object ArrayBuffer]",L9t="[object DataView]",$9t="[object Float32Array]",F9t="[object Float64Array]",B9t="[object Int8Array]",H9t="[object Int16Array]",j9t="[object Int32Array]",U9t="[object Uint8Array]",z9t="[object Uint8ClampedArray]",V9t="[object Uint16Array]",G9t="[object Uint32Array]",qi={};qi[sRe]=qi[C9t]=qi[D9t]=qi[L9t]=qi[x9t]=qi[w9t]=qi[$9t]=qi[F9t]=qi[B9t]=qi[H9t]=qi[j9t]=qi[R9t]=qi[A9t]=qi[cRe]=qi[I9t]=qi[N9t]=qi[M9t]=qi[k9t]=qi[U9t]=qi[z9t]=qi[V9t]=qi[G9t]=!0;qi[T9t]=qi[lRe]=qi[P9t]=!1;function FI(e,t,n,r,i,o){var a,s=t&_9t,l=t&S9t,c=t&E9t;if(n&&(a=i?n(e,r,i,o):n(e)),a!==void 0)return a;if(!g9t(e))return e;var u=p9t(e);if(u){if(a=u9t(e),!s)return i9t(e,a)}else{var d=c9t(e),f=d==lRe||d==O9t;if(h9t(e))return r9t(e,s);if(d==cRe||d==sRe||f&&!i){if(a=l||f?{}:f9t(e),!s)return l?a9t(e,n9t(a,e)):o9t(e,t9t(a,e))}else{if(!qi[d])return i?e:{};a=d9t(e,d,s)}}o||(o=new Z8t);var p=o.get(e);if(p)return p;o.set(e,a),v9t(e)?e.forEach(function(v){a.add(FI(v,t,n,v,e,o))}):m9t(e)&&e.forEach(function(v,y){a.set(y,FI(v,t,n,y,e,o))});var m=c?l?l9t:s9t:l?y9t:b9t,g=u?void 0:m(e);return J8t(g||e,function(v,y){g&&(y=v,v=e[y]),e9t(a,y,FI(v,t,n,y,e,o))}),a}var W9t=FI,q9t=W9t,Y9t=1,K9t=4;function Q9t(e){return q9t(e,Y9t|K9t)}var X9t=Q9t;Object.defineProperty(j2,"__esModule",{value:!0});j2.mergeClasses=void 0;var Z9t=LK,J9t=uRe(Z9t),e6t=X9t,t6t=uRe(e6t),n6t=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 uRe(e){return e&&e.__esModule?e:{default:e}}var r6t=j2.mergeClasses=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],r=t.default&&(0,t6t.default)(t.default)||{};return n.map(function(i){var o=t[i];return o&&(0,J9t.default)(o,function(a,s){r[s]||(r[s]={}),r[s]=n6t({},r[s],o[s])}),i}),r};j2.default=r6t;var V2={};Object.defineProperty(V2,"__esModule",{value:!0});V2.autoprefix=void 0;var i6t=LK,yle=a6t(i6t),o6t=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 a6t(e){return e&&e.__esModule?e:{default:e}}var s6t={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}}},l6t=V2.autoprefix=function(t){var n={};return(0,yle.default)(t,function(r,i){var o={};(0,yle.default)(r,function(a,s){var l=s6t[s];l?o=o6t({},o,l(a)):o[s]=a}),n[i]=o}),n};V2.default=l6t;var G2={};Object.defineProperty(G2,"__esModule",{value:!0});G2.hover=void 0;var c6t=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},u6t=h,a$=d6t(u6t);function d6t(e){return e&&e.__esModule?e:{default:e}}function f6t(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _le(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 p6t(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 h6t=G2.hover=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"span";return function(r){p6t(i,r);function i(){var o,a,s,l;f6t(this,i);for(var c=arguments.length,u=Array(c),d=0;d<c;d++)u[d]=arguments[d];return l=(a=(s=_le(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 a$.default.createElement(n,{onMouseOver:s.handleMouseOver,onMouseOut:s.handleMouseOut},a$.default.createElement(t,c6t({},s.props,s.state)))},a),_le(s,l)}return i}(a$.default.Component)};G2.default=h6t;var W2={};Object.defineProperty(W2,"__esModule",{value:!0});W2.active=void 0;var m6t=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},g6t=h,s$=v6t(g6t);function v6t(e){return e&&e.__esModule?e:{default:e}}function b6t(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Sle(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 y6t(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 _6t=W2.active=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"span";return function(r){y6t(i,r);function i(){var o,a,s,l;b6t(this,i);for(var c=arguments.length,u=Array(c),d=0;d<c;d++)u[d]=arguments[d];return l=(a=(s=Sle(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 s$.default.createElement(n,{onMouseDown:s.handleMouseDown,onMouseUp:s.handleMouseUp},s$.default.createElement(t,m6t({},s.props,s.state)))},a),Sle(s,l)}return i}(s$.default.Component)};W2.default=_6t;var GK={};Object.defineProperty(GK,"__esModule",{value:!0});var S6t=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};GK.default=S6t;Object.defineProperty(nu,"__esModule",{value:!0});nu.ReactCSS=nu.loop=nu.handleActive=nu.handleHover=nu.hover=void 0;var E6t=$2,C6t=GS(E6t),x6t=j2,w6t=GS(x6t),T6t=V2,O6t=GS(T6t),R6t=G2,dRe=GS(R6t),A6t=W2,I6t=GS(A6t),N6t=GK,M6t=GS(N6t);function GS(e){return e&&e.__esModule?e:{default:e}}nu.hover=dRe.default;nu.handleHover=dRe.default;nu.handleActive=I6t.default;nu.loop=M6t.default;var k6t=nu.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,C6t.default)(r),a=(0,w6t.default)(t,o);return(0,O6t.default)(a)},kg=nu.default=k6t,P6t=zK,D6t=H2;function L6t(e,t,n){(n!==void 0&&!D6t(e[t],n)||n===void 0&&!(t in e))&&P6t(e,t,n)}var fRe=L6t,$6t=BS,F6t=Xf;function B6t(e){return F6t(e)&&$6t(e)}var H6t=B6t;function j6t(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}var pRe=j6t,U6t=U2,z6t=z2;function V6t(e){return U6t(e,z6t(e))}var G6t=V6t,Ele=fRe,W6t=nRe,q6t=oRe,Y6t=rRe,K6t=aRe,Cle=RK,xle=Mc,Q6t=H6t,X6t=AD,Z6t=DK,J6t=Au,eLt=POe,tLt=kK,wle=pRe,nLt=G6t;function rLt(e,t,n,r,i,o,a){var s=wle(e,n),l=wle(t,n),c=a.get(l);if(c){Ele(e,n,c);return}var u=o?o(s,l,n+"",e,t,a):void 0,d=u===void 0;if(d){var f=xle(l),p=!f&&X6t(l),m=!f&&!p&&tLt(l);u=l,f||p||m?xle(s)?u=s:Q6t(s)?u=Y6t(s):p?(d=!1,u=W6t(l,!0)):m?(d=!1,u=q6t(l,!0)):u=[]:eLt(l)||Cle(l)?(u=s,Cle(s)?u=nLt(s):(!J6t(s)||Z6t(s))&&(u=K6t(l))):d=!1}d&&(a.set(l,u),i(u,l,r,o,a),a.delete(l)),Ele(e,n,u)}var iLt=rLt,oLt=DD,aLt=fRe,sLt=OOe,lLt=iLt,cLt=Au,uLt=z2,dLt=pRe;function hRe(e,t,n,r,i){e!==t&&sLt(t,function(o,a){if(i||(i=new oLt),cLt(o))lLt(e,t,a,n,hRe,r,i);else{var s=r?r(dLt(e,a),o,a+"",e,t,i):void 0;s===void 0&&(s=o),aLt(e,a,s)}},uLt)}var fLt=hRe;function pLt(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 hLt=pLt,mLt=hLt,Tle=Math.max;function gLt(e,t,n){return t=Tle(t===void 0?e.length-1:t,0),function(){for(var r=arguments,i=-1,o=Tle(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),mLt(e,this,s)}}var vLt=gLt;function bLt(e){return function(){return e}}var yLt=bLt,_Lt=yLt,Ole=eRe,SLt=ID,ELt=Ole?function(e,t){return Ole(e,"toString",{configurable:!0,enumerable:!1,value:_Lt(t),writable:!0})}:SLt,CLt=ELt,xLt=800,wLt=16,TLt=Date.now;function OLt(e){var t=0,n=0;return function(){var r=TLt(),i=wLt-(r-n);if(n=r,i>0){if(++t>=xLt)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var RLt=OLt,ALt=CLt,ILt=RLt,NLt=ILt(ALt),MLt=NLt,kLt=ID,PLt=vLt,DLt=MLt;function LLt(e,t){return DLt(PLt(e,t,kLt),e+"")}var $Lt=LLt,FLt=H2,BLt=BS,HLt=AK,jLt=Au;function ULt(e,t,n){if(!jLt(n))return!1;var r=typeof t;return(r=="number"?BLt(n)&&HLt(t,n.length):r=="string"&&t in n)?FLt(n[t],e):!1}var zLt=ULt,VLt=$Lt,GLt=zLt;function WLt(e){return VLt(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&&GLt(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 qLt=WLt,YLt=fLt,KLt=qLt,QLt=KLt(function(e,t,n){YLt(e,t,n)}),XLt=QLt;const ZLt=oi(XLt);var JLt=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 p;if(u<0?p=0:u>a?p=1:p=Math.round(u*100/a)/100,i!==p)return{h:n.h,s:n.s,l:n.l,a:p,source:"rgb"}}return null},l$={},e$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},t$t=function(t,n,r,i){var o="".concat(t,"-").concat(n,"-").concat(r).concat(i?"-server":"");if(l$[o])return l$[o];var a=e$t(t,n,r,i);return l$[o]=a,a};function Yw(e){"@babel/helpers - typeof";return Yw=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},Yw(e)}function Rle(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 zR(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Rle(Object(n),!0).forEach(function(r){n$t(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Rle(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function n$t(e,t,n){return t=r$t(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function r$t(e){var t=i$t(e,"string");return Yw(t)==="symbol"?t:String(t)}function i$t(e,t){if(Yw(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Yw(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var HD=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=kg({default:{grid:{borderRadius:a,boxShadow:s,absolute:"0px 0px 0px 0px",background:"url(".concat(t$t(n,r,i,o.canvas),") center left")}}});return h.isValidElement(l)?pe.cloneElement(l,zR(zR({},l.props),{},{style:zR(zR({},l.props.style),c.grid)})):pe.createElement("div",{style:c.grid})};HD.defaultProps={size:8,white:"transparent",grey:"rgba(0,0,0,.08)",renderers:{}};function S_(e){"@babel/helpers - typeof";return S_=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},S_(e)}function Ale(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 o$t(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Ale(Object(n),!0).forEach(function(r){a$t(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ale(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function a$t(e,t,n){return t=mRe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function s$t(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l$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,mRe(r.key),r)}}function c$t(e,t,n){return t&&l$t(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function mRe(e){var t=u$t(e,"string");return S_(t)==="symbol"?t:String(t)}function u$t(e,t){if(S_(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(S_(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function d$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&&qj(e,t)}function qj(e,t){return qj=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},qj(e,t)}function f$t(e){var t=m$t();return function(){var r=hM(e),i;if(t){var o=hM(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return p$t(this,i)}}function p$t(e,t){if(t&&(S_(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return h$t(e)}function h$t(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function m$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 hM(e){return hM=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},hM(e)}var g$t=function(e){d$t(n,e);var t=f$t(n);function n(){var r;s$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=JLt(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 c$t(n,[{key:"componentWillUnmount",value:function(){this.unbindEventListeners()}},{key:"render",value:function(){var i=this,o=this.props.rgb,a=kg({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:o$t({},this.props.style)},{vertical:this.props.direction==="vertical",overwrite:!0});return pe.createElement("div",{style:a.alpha},pe.createElement("div",{style:a.checkboard},pe.createElement(HD,{renderers:this.props.renderers})),pe.createElement("div",{style:a.gradient}),pe.createElement("div",{style:a.container,ref:function(l){return i.container=l},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},pe.createElement("div",{style:a.pointer},this.props.pointer?pe.createElement(this.props.pointer,this.props):pe.createElement("div",{style:a.slider}))))}}]),n}(h.PureComponent||h.Component),v$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 p;if(c<0)p=0;else if(c>o)p=359;else{var m=c*100/o;p=360*m/100}if(r.h!==p)return{h:p,s:r.s,l:r.l,a:r.a,source:"hsl"}}return null};function E_(e){"@babel/helpers - typeof";return E_=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},E_(e)}function b$t(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function y$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,S$t(r.key),r)}}function _$t(e,t,n){return t&&y$t(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function S$t(e){var t=E$t(e,"string");return E_(t)==="symbol"?t:String(t)}function E$t(e,t){if(E_(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(E_(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function C$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&&Yj(e,t)}function Yj(e,t){return Yj=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},Yj(e,t)}function x$t(e){var t=O$t();return function(){var r=mM(e),i;if(t){var o=mM(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return w$t(this,i)}}function w$t(e,t){if(t&&(E_(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return T$t(e)}function T$t(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function O$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 mM(e){return mM=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},mM(e)}var R$t=function(e){C$t(n,e);var t=x$t(n);function n(){var r;b$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=v$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 _$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=kg({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 pe.createElement("div",{style:s.hue},pe.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},pe.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%);
}
`),pe.createElement("div",{style:s.pointer},this.props.pointer?pe.createElement(this.props.pointer,this.props):pe.createElement("div",{style:s.slider}))))}}]),n}(h.PureComponent||h.Component),A$t=zd,I$t=function(){return A$t.Date.now()},N$t=I$t,M$t=/\s/;function k$t(e){for(var t=e.length;t--&&M$t.test(e.charAt(t)););return t}var P$t=k$t,D$t=P$t,L$t=/^\s+/;function $$t(e){return e&&e.slice(0,D$t(e)+1).replace(L$t,"")}var F$t=$$t,B$t=F$t,Ile=Au,H$t=$D,Nle=NaN,j$t=/^[-+]0x[0-9a-f]+$/i,U$t=/^0b[01]+$/i,z$t=/^0o[0-7]+$/i,V$t=parseInt;function G$t(e){if(typeof e=="number")return e;if(H$t(e))return Nle;if(Ile(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Ile(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=B$t(e);var n=U$t.test(e);return n||z$t.test(e)?V$t(e.slice(2),n?2:8):j$t.test(e)?Nle:+e}var W$t=G$t,q$t=Au,c$=N$t,Mle=W$t,Y$t="Expected a function",K$t=Math.max,Q$t=Math.min;function X$t(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(Y$t);t=Mle(t)||0,q$t(n)&&(u=!!n.leading,d="maxWait"in n,o=d?K$t(Mle(n.maxWait)||0,t):o,f="trailing"in n?!!n.trailing:f);function p(E){var C=r,w=i;return r=i=void 0,c=E,a=e.apply(w,C),a}function m(E){return c=E,s=setTimeout(y,t),u?p(E):a}function g(E){var C=E-l,w=E-c,O=t-C;return d?Q$t(O,o-w):O}function v(E){var C=E-l,w=E-c;return l===void 0||C>=t||C<0||d&&w>=o}function y(){var E=c$();if(v(E))return b(E);s=setTimeout(y,g(E))}function b(E){return s=void 0,f&&r?p(E):(r=i=void 0,a)}function _(){s!==void 0&&clearTimeout(s),c=0,r=l=i=s=void 0}function S(){return s===void 0?a:b(c$())}function x(){var E=c$(),C=v(E);if(r=arguments,i=this,l=E,C){if(s===void 0)return m(l);if(d)return clearTimeout(s),s=setTimeout(y,t),p(l)}return s===void 0&&(s=setTimeout(y,t)),a}return x.cancel=_,x.flush=S,x}var gRe=X$t;const Z$t=oi(gRe);var J$t=gRe,e7t=Au,t7t="Expected a function";function n7t(e,t,n){var r=!0,i=!0;if(typeof e!="function")throw new TypeError(t7t);return e7t(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),J$t(e,t,{leading:r,maxWait:t,trailing:i})}var r7t=n7t;const i7t=oi(r7t);var o7t=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 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 a7t(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s7t(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,c7t(r.key),r)}}function l7t(e,t,n){return t&&s7t(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function c7t(e){var t=u7t(e,"string");return C_(t)==="symbol"?t:String(t)}function u7t(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);if(C_(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function d7t(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&&Kj(e,t)}function Kj(e,t){return Kj=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},Kj(e,t)}function f7t(e){var t=m7t();return function(){var r=gM(e),i;if(t){var o=gM(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return p7t(this,i)}}function p7t(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 h7t(e)}function h7t(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function m7t(){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 gM(e){return gM=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},gM(e)}var g7t=function(e){d7t(n,e);var t=f7t(n);function n(r){var i;return a7t(this,n),i=t.call(this,r),i.handleChange=function(o){typeof i.props.onChange=="function"&&i.throttle(i.props.onChange,o7t(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=i7t(function(o,a,s){o(a,s)},50),i}return l7t(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=kg({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 pe.createElement("div",{style:d.color,ref:function(p){return i.container=p},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},pe.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));
}
`),pe.createElement("div",{style:d.white,className:"saturation-white"},pe.createElement("div",{style:d.black,className:"saturation-black"}),pe.createElement("div",{style:d.pointer},this.props.pointer?pe.createElement(this.props.pointer,this.props):pe.createElement("div",{style:d.circle}))))}}]),n}(h.PureComponent||h.Component),v7t=JOe,b7t=ZOe,y7t=MOe,_7t=Mc;function S7t(e,t){var n=_7t(e)?v7t:b7t;return n(e,y7t(t))}var E7t=S7t,C7t=E7t;const x7t=oi(C7t);function vM(e){"@babel/helpers - typeof";return vM=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},vM(e)}var w7t=/^\s+/,T7t=/\s+$/;function Zn(e,t){if(e=e||"",t=t||{},e instanceof Zn)return e;if(!(this instanceof Zn))return new Zn(e,t);var n=O7t(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}Zn.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=vRe(t),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var t=Ple(this._r,this._g,this._b);return{h:t.h*360,s:t.s,v:t.v,a:this._a}},toHsvString:function(){var t=Ple(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=kle(this._r,this._g,this._b);return{h:t.h*360,s:t.s,l:t.l,a:this._a}},toHslString:function(){var t=kle(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 Dle(this._r,this._g,this._b,t)},toHexString:function(t){return"#"+this.toHex(t)},toHex8:function(t){return N7t(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(So(this._r,255)*100)+"%",g:Math.round(So(this._g,255)*100)+"%",b:Math.round(So(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+Math.round(So(this._r,255)*100)+"%, "+Math.round(So(this._g,255)*100)+"%, "+Math.round(So(this._b,255)*100)+"%)":"rgba("+Math.round(So(this._r,255)*100)+"%, "+Math.round(So(this._g,255)*100)+"%, "+Math.round(So(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:z7t[Dle(this._r,this._g,this._b,!0)]||!1},toFilter:function(t){var n="#"+Lle(this._r,this._g,this._b,this._a),r=n,i=this._gradientType?"GradientType = 1, ":"";if(t){var o=Zn(t);r="#"+Lle(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 Zn(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(L7t,arguments)},darken:function(){return this._applyModification($7t,arguments)},desaturate:function(){return this._applyModification(M7t,arguments)},saturate:function(){return this._applyModification(k7t,arguments)},greyscale:function(){return this._applyModification(P7t,arguments)},spin:function(){return this._applyModification(F7t,arguments)},_applyCombination:function(t,n){return t.apply(null,[this].concat([].slice.call(n)))},analogous:function(){return this._applyCombination(j7t,arguments)},complement:function(){return this._applyCombination(B7t,arguments)},monochromatic:function(){return this._applyCombination(U7t,arguments)},splitcomplement:function(){return this._applyCombination(H7t,arguments)},triad:function(){return this._applyCombination($le,[3])},tetrad:function(){return this._applyCombination($le,[4])}};Zn.fromRatio=function(e,t){if(vM(e)=="object"){var n={};for(var r in e)e.hasOwnProperty(r)&&(r==="a"?n[r]=e[r]:n[r]=MC(e[r]));e=n}return Zn(e,t)};function O7t(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=q7t(e)),vM(e)=="object"&&(lp(e.r)&&lp(e.g)&&lp(e.b)?(t=R7t(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=MC(e.s),i=MC(e.v),t=I7t(e.h,r,i),a=!0,s="hsv"):lp(e.h)&&lp(e.s)&&lp(e.l)&&(r=MC(e.s),o=MC(e.l),t=A7t(e.h,r,o),a=!0,s="hsl"),e.hasOwnProperty("a")&&(n=e.a)),n=vRe(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 R7t(e,t,n){return{r:So(e,255)*255,g:So(t,255)*255,b:So(n,255)*255}}function kle(e,t,n){e=So(e,255),t=So(t,255),n=So(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 A7t(e,t,n){var r,i,o;e=So(e,360),t=So(t,100),n=So(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 Ple(e,t,n){e=So(e,255),t=So(t,255),n=So(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 I7t(e,t,n){e=So(e,360)*6,t=So(t,100),n=So(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 Dle(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 N7t(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(bRe(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 Lle(e,t,n,r){var i=[od(bRe(r)),od(Math.round(e).toString(16)),od(Math.round(t).toString(16)),od(Math.round(n).toString(16))];return i.join("")}Zn.equals=function(e,t){return!e||!t?!1:Zn(e).toRgbString()==Zn(t).toRgbString()};Zn.random=function(){return Zn.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})};function M7t(e,t){t=t===0?0:t||10;var n=Zn(e).toHsl();return n.s-=t/100,n.s=jD(n.s),Zn(n)}function k7t(e,t){t=t===0?0:t||10;var n=Zn(e).toHsl();return n.s+=t/100,n.s=jD(n.s),Zn(n)}function P7t(e){return Zn(e).desaturate(100)}function D7t(e,t){t=t===0?0:t||10;var n=Zn(e).toHsl();return n.l+=t/100,n.l=jD(n.l),Zn(n)}function L7t(e,t){t=t===0?0:t||10;var n=Zn(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)))),Zn(n)}function $7t(e,t){t=t===0?0:t||10;var n=Zn(e).toHsl();return n.l-=t/100,n.l=jD(n.l),Zn(n)}function F7t(e,t){var n=Zn(e).toHsl(),r=(n.h+t)%360;return n.h=r<0?360+r:r,Zn(n)}function B7t(e){var t=Zn(e).toHsl();return t.h=(t.h+180)%360,Zn(t)}function $le(e,t){if(isNaN(t)||t<=0)throw new Error("Argument to polyad must be a positive number");for(var n=Zn(e).toHsl(),r=[Zn(e)],i=360/t,o=1;o<t;o++)r.push(Zn({h:(n.h+o*i)%360,s:n.s,l:n.l}));return r}function H7t(e){var t=Zn(e).toHsl(),n=t.h;return[Zn(e),Zn({h:(n+72)%360,s:t.s,l:t.l}),Zn({h:(n+216)%360,s:t.s,l:t.l})]}function j7t(e,t,n){t=t||6,n=n||30;var r=Zn(e).toHsl(),i=360/n,o=[Zn(e)];for(r.h=(r.h-(i*t>>1)+720)%360;--t;)r.h=(r.h+i)%360,o.push(Zn(r));return o}function U7t(e,t){t=t||6;for(var n=Zn(e).toHsv(),r=n.h,i=n.s,o=n.v,a=[],s=1/t;t--;)a.push(Zn({h:r,s:i,v:o})),o=(o+s)%1;return a}Zn.mix=function(e,t,n){n=n===0?0:n||50;var r=Zn(e).toRgb(),i=Zn(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 Zn(a)};Zn.readability=function(e,t){var n=Zn(e),r=Zn(t);return(Math.max(n.getLuminance(),r.getLuminance())+.05)/(Math.min(n.getLuminance(),r.getLuminance())+.05)};Zn.isReadable=function(e,t,n){var r=Zn.readability(e,t),i,o;switch(o=!1,i=Y7t(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};Zn.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=Zn.readability(e,t[c]),o>i&&(i=o,r=Zn(t[c]));return Zn.isReadable(e,r,{level:s,size:l})||!a?r:(n.includeFallbackColors=!1,Zn.mostReadable(e,["#fff","#000"],n))};var Qj=Zn.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"},z7t=Zn.hexNames=V7t(Qj);function V7t(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}function vRe(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function So(e,t){G7t(e)&&(e="100%");var n=W7t(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 jD(e){return Math.min(1,Math.max(0,e))}function rc(e){return parseInt(e,16)}function G7t(e){return typeof e=="string"&&e.indexOf(".")!=-1&&parseFloat(e)===1}function W7t(e){return typeof e=="string"&&e.indexOf("%")!=-1}function od(e){return e.length==1?"0"+e:""+e}function MC(e){return e<=1&&(e=e*100+"%"),e}function bRe(e){return Math.round(parseFloat(e)*255).toString(16)}function Fle(e){return rc(e)/255}var Bu=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 lp(e){return!!Bu.CSS_UNIT.exec(e)}function q7t(e){e=e.replace(w7t,"").replace(T7t,"").toLowerCase();var t=!1;if(Qj[e])e=Qj[e],t=!0;else if(e=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var n;return(n=Bu.rgb.exec(e))?{r:n[1],g:n[2],b:n[3]}:(n=Bu.rgba.exec(e))?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=Bu.hsl.exec(e))?{h:n[1],s:n[2],l:n[3]}:(n=Bu.hsla.exec(e))?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=Bu.hsv.exec(e))?{h:n[1],s:n[2],v:n[3]}:(n=Bu.hsva.exec(e))?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=Bu.hex8.exec(e))?{r:rc(n[1]),g:rc(n[2]),b:rc(n[3]),a:Fle(n[4]),format:t?"name":"hex8"}:(n=Bu.hex6.exec(e))?{r:rc(n[1]),g:rc(n[2]),b:rc(n[3]),format:t?"name":"hex"}:(n=Bu.hex4.exec(e))?{r:rc(n[1]+""+n[1]),g:rc(n[2]+""+n[2]),b:rc(n[3]+""+n[3]),a:Fle(n[4]+""+n[4]),format:t?"name":"hex8"}:(n=Bu.hex3.exec(e))?{r:rc(n[1]+""+n[1]),g:rc(n[2]+""+n[2]),b:rc(n[3]+""+n[3]),format:t?"name":"hex"}:!1}function Y7t(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 Ble=function(t){var n=["r","g","b","a","h","s","l","v"],r=0,i=0;return x7t(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},VR=function(t,n){var r=t.hex?Zn(t.hex):Zn(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}},K7t=function(t){if(t==="transparent")return!0;var n=String(t).charAt(0)==="#"?1:0;return t.length!==4+n&&t.length<7+n&&Zn(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 Xj(){return Xj=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},Xj.apply(this,arguments)}function Hle(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 zE(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Hle(Object(n),!0).forEach(function(r){Q7t(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Hle(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Q7t(e,t,n){return t=yRe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function X7t(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function jle(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,yRe(r.key),r)}}function Z7t(e,t,n){return t&&jle(e.prototype,t),n&&jle(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function yRe(e){var t=J7t(e,"string");return x_(t)==="symbol"?t:String(t)}function J7t(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);if(x_(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function eFt(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Zj(e,t)}function Zj(e,t){return Zj=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},Zj(e,t)}function tFt(e){var t=iFt();return function(){var r=bM(e),i;if(t){var o=bM(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return nFt(this,i)}}function nFt(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 rFt(e)}function rFt(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function iFt(){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 bM(e){return bM=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},bM(e)}var oFt=function(t){var n=function(r){eFt(o,r);var i=tFt(o);function o(a){var s;return X7t(this,o),s=i.call(this),s.handleChange=function(l,c){var u=Ble(l);if(u){var d=VR(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=Ble(l);if(u){var d=VR(l,l.h||s.state.oldHue);s.props.onSwatchHover&&s.props.onSwatchHover(d,c)}},s.state=zE({},VR(a.color,0)),s.debounce=Z$t(function(l,c,u){l(c,u)},100),s}return Z7t(o,[{key:"render",value:function(){var s={};return this.props.onSwatchHover&&(s.onSwatchHover=this.handleSwatchHover),pe.createElement(t,Xj({},this.props,this.state,{onChange:this.handleChange},s))}}],[{key:"getDerivedStateFromProps",value:function(s,l){return zE({},VR(s.color,l.oldHue))}}]),o}(h.PureComponent||h.Component);return n.propTypes=zE({},t.propTypes),n.defaultProps=zE(zE({},t.defaultProps),{},{color:{h:250,s:.5,l:.2,a:1}}),n};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 aFt(e,t,n){return t=_Re(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function sFt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function lFt(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,_Re(r.key),r)}}function cFt(e,t,n){return t&&lFt(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function _Re(e){var t=uFt(e,"string");return w_(t)==="symbol"?t:String(t)}function uFt(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 dFt(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&&Jj(e,t)}function Jj(e,t){return Jj=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},Jj(e,t)}function fFt(e){var t=mFt();return function(){var r=yM(e),i;if(t){var o=yM(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return pFt(this,i)}}function pFt(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 hFt(e)}function hFt(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function mFt(){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 yM(e){return yM=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},yM(e)}var gFt=1,SRe=38,vFt=40,bFt=[SRe,vFt],yFt=function(t){return bFt.indexOf(t)>-1},_Ft=function(t){return Number(String(t).replace(/%/g,""))},SFt=1,VE=function(e){dFt(n,e);var t=fFt(n);function n(r){var i;return sFt(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=_Ft(o.target.value);if(!isNaN(a)&&yFt(o.keyCode)){var s=i.getArrowOffset(),l=o.keyCode===SRe?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(SFt++),i}return cFt(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 aFt({},this.props.label,i)}},{key:"getArrowOffset",value:function(){return this.props.arrowOffset||gFt}},{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=kg({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 pe.createElement("div",{style:o.wrap},pe.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?pe.createElement("label",{htmlFor:this.inputId,style:o.label,onMouseDown:this.handleMouseDown},this.props.label):null)}}]),n}(h.PureComponent||h.Component);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 eU(){return eU=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},eU.apply(this,arguments)}function EFt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function CFt(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,wFt(r.key),r)}}function xFt(e,t,n){return t&&CFt(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function wFt(e){var t=TFt(e,"string");return T_(t)==="symbol"?t:String(t)}function TFt(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 OFt(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&&tU(e,t)}function tU(e,t){return tU=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},tU(e,t)}function RFt(e){var t=NFt();return function(){var r=_M(e),i;if(t){var o=_M(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return AFt(this,i)}}function AFt(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 IFt(e)}function IFt(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function NFt(){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 _M(e){return _M=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},_M(e)}var MFt=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"span";return function(r){OFt(o,r);var i=RFt(o);function o(){var a;EFt(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 xFt(o,[{key:"render",value:function(){return pe.createElement(n,{onFocus:this.handleFocus,onBlur:this.handleBlur},pe.createElement(t,eU({},this.props,this.state)))}}]),o}(pe.Component)};function Kw(e){"@babel/helpers - typeof";return Kw=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},Kw(e)}function nU(){return nU=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},nU.apply(this,arguments)}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 zle(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){kFt(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 kFt(e,t,n){return t=PFt(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function PFt(e){var t=DFt(e,"string");return Kw(t)==="symbol"?t:String(t)}function DFt(e,t){if(Kw(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Kw(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var LFt=13,$Ft=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,p=n==="transparent",m=kg({default:{swatch:zle(zle({background:n,height:"100%",width:"100%",cursor:"pointer",position:"relative",outline:"none"},r),u?f:{})}}),g=function(S){return o(n,S)},v=function(S){return S.keyCode===LFt&&o(n,S)},y=function(S){return a(n,S)},b={};return a&&(b.onMouseOver=y),pe.createElement("div",nU({style:m.swatch,onClick:g,title:l,tabIndex:0,onKeyDown:v},b),c,p&&pe.createElement(HD,{borderRadius:m.swatch.borderRadius,boxShadow:"inset 0 0 0 1px rgba(0,0,0,0.1)"}))};const FFt=MFt($Ft);var BFt=function(t){var n=t.onChange,r=t.rgb,i=t.hsl,o=t.hex,a=t.disableAlpha,s=kg({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?K7t(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 pe.createElement("div",{style:s.fields,className:"flexbox-fix"},pe.createElement("div",{style:s.double},pe.createElement(VE,{style:{input:s.input,label:s.label},label:"hex",value:o==null?void 0:o.replace("#",""),onChange:l})),pe.createElement("div",{style:s.single},pe.createElement(VE,{style:{input:s.input,label:s.label},label:"r",value:r==null?void 0:r.r,onChange:l,dragLabel:"true",dragMax:"255"})),pe.createElement("div",{style:s.single},pe.createElement(VE,{style:{input:s.input,label:s.label},label:"g",value:r==null?void 0:r.g,onChange:l,dragLabel:"true",dragMax:"255"})),pe.createElement("div",{style:s.single},pe.createElement(VE,{style:{input:s.input,label:s.label},label:"b",value:r==null?void 0:r.b,onChange:l,dragLabel:"true",dragMax:"255"})),pe.createElement("div",{style:s.alpha},pe.createElement(VE,{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 Qw(e){"@babel/helpers - typeof";return Qw=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},Qw(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 Gle(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){HFt(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 HFt(e,t,n){return t=jFt(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function jFt(e){var t=UFt(e,"string");return Qw(t)==="symbol"?t:String(t)}function UFt(e,t){if(Qw(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Qw(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var zFt=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 pe.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 pe.createElement("div",{key:u,style:a.swatchWrap},pe.createElement(FFt,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 Xw(e){"@babel/helpers - typeof";return Xw=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},Xw(e)}function Wle(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 VFt(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Wle(Object(n),!0).forEach(function(r){GFt(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Wle(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function GFt(e,t,n){return t=WFt(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function WFt(e){var t=qFt(e,"string");return Xw(t)==="symbol"?t:String(t)}function qFt(e,t){if(Xw(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Xw(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var ERe=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,p=f===void 0?{}:f,m=t.className,g=m===void 0?"":m,v=kg(ZLt({default:VFt({picker:{width:n,padding:"10px 10px 0",boxSizing:"initial",background:"#fff",borderRadius:"4px",boxShadow:"0 0 0 1px rgba(0,0,0,.15), 0 8px 16px rgba(0,0,0,.15)"},saturation:{width:"100%",paddingBottom:"75%",position:"relative",overflow:"hidden"},Saturation:{radius:"3px",shadow:"inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)"},controls:{display:"flex"},sliders:{padding:"4px 0",flex:"1"},color:{width:"24px",height:"24px",position:"relative",marginTop:"4px",marginLeft:"4px",borderRadius:"3px"},activeColor:{absolute:"0px 0px 0px 0px",borderRadius:"2px",background:"rgba(".concat(r.r,",").concat(r.g,",").concat(r.b,",").concat(r.a,")"),boxShadow:"inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)"},hue:{position:"relative",height:"10px",overflow:"hidden"},Hue:{radius:"2px",shadow:"inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)"},alpha:{position:"relative",height:"10px",marginTop:"4px",overflow:"hidden"},Alpha:{radius:"2px",shadow:"inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)"}},p),disableAlpha:{color:{height:"10px"},hue:{height:"10px"},alpha:{display:"none"}}},p),{disableAlpha:c});return pe.createElement("div",{style:v.picker,className:"sketch-picker ".concat(g)},pe.createElement("div",{style:v.saturation},pe.createElement(g7t,{style:v.Saturation,hsl:a,hsv:o,onChange:s})),pe.createElement("div",{style:v.controls,className:"flexbox-fix"},pe.createElement("div",{style:v.sliders},pe.createElement("div",{style:v.hue},pe.createElement(R$t,{style:v.Hue,hsl:a,onChange:s})),pe.createElement("div",{style:v.alpha},pe.createElement(g$t,{style:v.Alpha,rgb:r,hsl:a,renderers:d,onChange:s}))),pe.createElement("div",{style:v.color},pe.createElement(HD,null),pe.createElement("div",{style:v.activeColor}))),pe.createElement(BFt,{rgb:r,hsl:a,hex:i,onChange:s,disableAlpha:c}),pe.createElement(zFt,{colors:u,onClick:s,onSwatchHover:l}))};ERe.defaultProps={disableAlpha:!1,width:200,styles:{},presetColors:["#D0021B","#F5A623","#F8E71C","#8B572A","#7ED321","#417505","#BD10E0","#9013FE","#4A90E2","#50E3C2","#B8E986","#000000","#4A4A4A","#9B9B9B","#FFFFFF"]};var YFt=oFt(ERe),KFt=["mode","popoverProps"],QFt=["#FF9D4E","#5BD8A6","#5B8FF9","#F7664E","#FF86B7","#2B9E9D","#9270CA","#6DC8EC","#667796","#F6BD16"],XFt=pe.forwardRef(function(e,t){var n=e.mode,r=e.popoverProps,i=kt(e,KFt),o=h.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=Re(u,2),f=d[0],p=d[1],m=Gi("ProFiledColorPicker"+f,function(){return te({},".".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(F.jsx("div",{className:"".concat(s," ").concat(v).trim(),style:{cursor:i.disabled?"not-allowed":"pointer",backgroundColor:i.disabled?c.colorBgContainerDisabled:c.colorBgContainer},children:F.jsx("div",{style:{backgroundColor:f,width:24,boxSizing:"border-box",height:24,borderRadius:c.borderRadius}})}));return h.useImperativeHandle(t,function(){}),n==="read"||i.disabled?y:F.jsx(bu,z(z({trigger:"click",placement:"right"},r),{},{content:F.jsx("div",{style:{margin:"-12px -16px"},children:F.jsx(YFt,z(z({},i),{},{presetColors:i.colors||i.presetColors||QFt,color:f,onChange:function(_){var S=_.hex,x=_.rgb,E=x.r,C=x.g,w=x.b,O=x.a;if(O&&O<1){p("rgba(".concat(E,", ").concat(C,", ").concat(w,", ").concat(O,")"));return}p(S)}}))}),children:y}))}),ZFt={label:"Recommended",colors:["#F5222D","#FA8C16","#FADB14","#8BBB11","#52C41A","#13A8A8","#1677FF","#2F54EB","#722ED1","#EB2F96","#F5222D4D","#FA8C164D","#FADB144D","#8BBB114D","#52C41A4D","#13A8A84D","#1677FF4D","#2F54EB4D","#722ED14D","#EB2F964D"]};function CRe(){return M2(oh,"5.5.0")>-1}function JFt(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return(typeof e>"u"||e===!1)&&CRe()?$Y:XFt}var eBt=function(t,n){var r=t.text,i=t.mode,o=t.render,a=t.renderFormItem,s=t.fieldProps,l=t.old,c=h.useContext(Ln.ConfigContext),u=c.getPrefixCls,d=pe.useMemo(function(){return JFt(l)},[l]),f=u("pro-field-color-picker"),p=h.useMemo(function(){return l?"":Ce(te({},f,CRe()))},[f,l]);if(i==="read"){var m=F.jsx(d,{value:r,mode:"read",ref:n,className:p,open:!1});return o?o(r,z({mode:i},s),m):m}if(i==="edit"||i==="update"){var g=z({display:"table-cell"},s.style),v=F.jsx(d,z(z({ref:n,presets:[ZFt]},s),{},{style:g,className:p}));return a?a(r,z(z({mode:i},s),{},{style:g}),v):v}return null};const tBt=pe.forwardRef(eBt);Sr.extend(gY);var nBt=function(t,n){return t?typeof n=="function"?n(Sr(t)):Sr(t).format((Array.isArray(n)?n[0]:n)||"YYYY-MM-DD"):"-"},rBt=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,p=t.picker,m=t.bordered,g=t.lightLabel,v=Lo(),y=h.useState(!1),b=Re(y,2),_=b[0],S=b[1];if(i==="read"){var x=nBt(r,f.format||o);return l?l(r,z({mode:i},f),F.jsx(F.Fragment,{children:x})):F.jsx(F.Fragment,{children:x})}if(i==="edit"||i==="update"){var E,C=f.disabled,w=f.value,O=f.placeholder,T=O===void 0?v.getMessage("tableForm.selectPlaceholder","请选择"):O,A=P2(w);return s?E=F.jsx(Ch,{label:a,onClick:function(){var N;f==null||(N=f.onOpenChange)===null||N===void 0||N.call(f,!0),S(!0)},style:A?{paddingInlineEnd:0}:void 0,disabled:C,value:A||_?F.jsx(yu,z(z(z({picker:p,showTime:d,format:o,ref:n},f),{},{value:A,onOpenChange:function(N){var D;S(N),f==null||(D=f.onOpenChange)===null||D===void 0||D.call(f,N)}},xc(!1)),{},{open:_})):void 0,allowClear:!1,downIcon:A||_?!1:void 0,bordered:m,ref:g}):E=F.jsx(yu,z(z(z({picker:p,showTime:d,format:o,placeholder:T},xc(u===void 0?!0:!u)),{},{ref:n},f),{},{value:A})),c?c(r,z({mode:i},f),E):E}return null};const ub=pe.forwardRef(rBt);var iBt=function(t,n){var r=t.text,i=t.mode,o=t.render,a=t.placeholder,s=t.renderFormItem,l=t.fieldProps,c=Lo(),u=a||c.getMessage("tableForm.inputPlaceholder","请输入"),d=h.useCallback(function(y){var b=y??void 0;return!l.stringMode&&typeof b=="string"&&(b=Number(b)),typeof b=="number"&&!W1(b)&&!W1(l.precision)&&(b=Number(b.toFixed(l.precision))),b},[l]);if(i==="read"){var f,p={};l!=null&&l.precision&&(p={minimumFractionDigits:Number(l.precision),maximumFractionDigits:Number(l.precision)});var m=new Intl.NumberFormat(void 0,z(z({},p),(l==null?void 0:l.intlProps)||{})).format(Number(r)),g=l!=null&&l.stringMode?F.jsx("span",{children:r}):F.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,z({mode:i},l),g):g}if(i==="edit"||i==="update"){var v=F.jsx(ch,z(z({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,z({mode:i},l),v):v}return null};const oBt=pe.forwardRef(iBt);var aBt=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,p=l.value,m=l.defaultValue,g=l.onChange,v=l.id,y=Lo(),b=Ff.useToken(),_=b.token,S=Pn(function(){return m},{value:p,onChange:g}),x=Re(S,2),E=x[0],C=x[1],w=h.useRef(E);if(i==="read"){var O=function(G){var L,W=new Intl.NumberFormat(void 0,z({minimumSignificantDigits:2},(l==null?void 0:l.intlProps)||{})).format(Number(G));return(l==null||(L=l.formatter)===null||L===void 0?void 0:L.call(l,W))||W},T=F.jsxs("span",{ref:n,children:[O(r[0])," ",u," ",O(r[1])]});return o?o(r,z({mode:i},l),T):T}if(i==="edit"||i==="update"){var A=function(){if(Array.isArray(w.current)){var G=Re(w.current,2),L=G[0],W=G[1];typeof L=="number"&&typeof W=="number"&&L>W?C([W,L]):L===void 0&&W===void 0&&C(void 0)}},I=function(G,L){var W=rt(E||[]);W[G]=L===null?void 0:L,w.current=W,C(W)},N=(l==null?void 0:l.placeholder)||a||[y.getMessage("tableForm.inputPlaceholder","请输入"),y.getMessage("tableForm.inputPlaceholder","请输入")],D=function(G){return Array.isArray(N)?N[G]:N},M=Ji.Compact||Co.Group,k=Ji.Compact?{}:{compact:!0},P=F.jsxs(M,z(z({},k),{},{onBlur:A,children:[F.jsx(ch,z(z({},l),{},{placeholder:D(0),id:v??"".concat(v,"-0"),style:{width:"calc((100% - ".concat(f,"px) / 2)")},value:E==null?void 0:E[0],defaultValue:m==null?void 0:m[0],onChange:function(G){return I(0,G)}})),F.jsx(Co,{style:{width:f,textAlign:"center",borderInlineStart:0,borderInlineEnd:0,pointerEvents:"none",backgroundColor:_==null?void 0:_.colorBgContainer},placeholder:u,disabled:!0}),F.jsx(ch,z(z({},l),{},{placeholder:D(1),id:v??"".concat(v,"-1"),style:{width:"calc((100% - ".concat(f,"px) / 2)"),borderInlineStart:0},value:E==null?void 0:E[1],defaultValue:m==null?void 0:m[1],onChange:function(G){return I(1,G)}}))]}));return s?s(r,z({mode:i},l),P):P}return null};const sBt=pe.forwardRef(aBt);var xRe={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(Wn,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,p){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,S=0;S<_;S+=1){var x=b[S];x.d&&(m=f?i(c).diff(d,x.d,!0):d.diff(c,x.d,!0));var E=(n.rounding||Math.round)(Math.abs(m));if(v=m>0,E<=x.r||!x.r){E<=1&&S>0&&(x=b[S-1]);var C=y[x.l];p&&(E=p(""+E)),g=typeof C=="string"?C.replace("%d",E):C(E,u,x.l,v);break}}if(u)return g;var w=v?y.future:y.past;return typeof w=="function"?w(g):w.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)}}})})(xRe);var lBt=xRe.exports;const cBt=oi(lBt);Sr.extend(cBt);var uBt=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=Lo();if(i==="read"){var d=F.jsx(Na,{title:Sr(r).format((c==null?void 0:c.format)||l||"YYYY-MM-DD HH:mm:ss"),children:Sr(r).fromNow()});return a?a(r,z({mode:i},c),F.jsx(F.Fragment,{children:d})):F.jsx(F.Fragment,{children:d})}if(i==="edit"||i==="update"){var f=u.getMessage("tableForm.selectPlaceholder","请选择"),p=P2(c.value),m=F.jsx(yu,z(z(z({ref:n,placeholder:f,showTime:!0},xc(o===void 0?!0:!o)),c),{},{value:p}));return s?s(r,z({mode:i},c),m):m}return null};const dBt=pe.forwardRef(uBt);var wRe=pe.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=Lo(),u=s||c.getMessage("tableForm.inputPlaceholder","请输入");if(r==="read"){var d=F.jsx(Hwe,z({ref:t,width:l||32,src:n},a));return i?i(n,z({mode:r},a),d):d}if(r==="edit"||r==="update"){var f=F.jsx(Co,z({ref:t,placeholder:u},a));return o?o(n,z({mode:r},a),f):f}return null}),fBt=function(t,n){var r=t.border,i=r===void 0?!1:r,o=t.children,a=h.useContext(Ln.ConfigContext),s=a.getPrefixCls,l=s("pro-field-index-column"),c=Gi("IndexColumn",function(){return te({},".".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(F.jsx("div",{ref:n,className:Ce(l,d,te(te({},"".concat(l,"-border"),i),"top-three",o>3)),children:o}))};const qle=pe.forwardRef(fBt);var pBt=["contentRender","numberFormatOptions","numberPopoverRender","open"],hBt=["text","mode","render","renderFormItem","fieldProps","proFieldKey","plain","valueEnum","placeholder","locale","customSymbol","numberFormatOptions","numberPopoverRender"],TRe=new Intl.NumberFormat("zh-Hans-CN",{currency:"CNY",style:"currency"}),mBt={style:"currency",currency:"USD"},gBt={style:"currency",currency:"RUB"},vBt={style:"currency",currency:"RSD"},bBt={style:"currency",currency:"MYR"},yBt={style:"currency",currency:"BRL"},_Bt={default:TRe,"zh-Hans-CN":{currency:"CNY",style:"currency"},"en-US":mBt,"ru-RU":gBt,"ms-MY":bBt,"sr-RS":vBt,"pt-BR":yBt},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",z(z({},_Bt[t||"zh-Hans-CN"]||TRe),{},{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),p=u||"",m=Re(p,1),g=m[0];return["+","-"].includes(g)?"".concat(o||"").concat(g).concat(f):"".concat(o||"").concat(f)}catch{return a}},u$=2,SBt=pe.forwardRef(function(e,t){var n=e.contentRender;e.numberFormatOptions,e.numberPopoverRender;var r=e.open,i=kt(e,pBt),o=Pn(function(){return i.defaultValue},{value:i.value,onChange:i.onChange}),a=Re(o,2),s=a[0],l=a[1],c=n==null?void 0:n(z(z({},i),{},{value:s})),u=k2(c?r:!1);return F.jsx(bu,z(z({placement:"topLeft"},u),{},{trigger:["focus","click"],content:c,getPopupContainer:function(f){return(f==null?void 0:f.parentElement)||document.body},children:F.jsx(ch,z(z({ref:t},i),{},{value:s,onChange:l}))}))}),EBt=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,p=t.numberFormatOptions,m=p===void 0?l==null?void 0:l.numberFormatOptions:p,g=t.numberPopoverRender,v=g===void 0?(l==null?void 0:l.numberPopoverRender)||!1:g,y=kt(t,hBt),b=(r=l==null?void 0:l.precision)!==null&&r!==void 0?r:u$,_=Lo();u&&G1[u]&&(_=G1[u]);var S=c||_.getMessage("tableForm.inputPlaceholder","请输入"),x=h.useMemo(function(){if(f)return f;if(!(y.moneySymbol===!1||l.moneySymbol===!1))return _.getMessage("moneySymbol","¥")},[f,l.moneySymbol,_,y.moneySymbol]),E=h.useCallback(function(O){var T=new RegExp("\\B(?=(\\d{".concat(3+Math.max(b-u$,0),"})+(?!\\d))"),"g"),A=String(O).split("."),I=Re(A,2),N=I[0],D=I[1],M=N.replace(T,","),k="";return D&&b>0&&(k=".".concat(D.slice(0,b===void 0?u$:b))),"".concat(M).concat(k)},[b]);if(o==="read"){var C=F.jsx("span",{ref:n,children:Yle(u||!1,i,b,m??l.numberFormatOptions,x)});return a?a(i,z({mode:o},l),C):C}if(o==="edit"||o==="update"){var w=F.jsx(SBt,z(z({contentRender:function(T){if(v===!1||!T.value)return null;var A=Yle(x||u||!1,"".concat(E(T.value)),b,z(z({},m),{},{notation:"compact"}),x);return typeof v=="function"?v==null?void 0:v(T,A):A},ref:n,precision:b,formatter:function(T){return T&&x?"".concat(x," ").concat(E(T)):T==null?void 0:T.toString()},parser:function(T){return x&&T?T.replace(new RegExp("\\".concat(x,"\\s?|(,*)"),"g"),""):T},placeholder:S},ur(l,["numberFormatOptions","precision","numberPopoverRender","customSymbol","moneySymbol","visible","open"])),{},{onBlur:l.onBlur?function(O){var T,A=O.target.value;x&&A&&(A=A.replace(new RegExp("\\".concat(x,"\\s?|(,*)"),"g"),"")),(T=l.onBlur)===null||T===void 0||T.call(l,A)}:void 0}));return s?s(i,z({mode:o},l),w):w}return null};const ORe=pe.forwardRef(EBt);var Kle=function(t){return t.map(function(n,r){var i;return pe.isValidElement(n)?pe.cloneElement(n,z(z({key:r},n==null?void 0:n.props),{},{style:z({},n==null||(i=n.props)===null||i===void 0?void 0:i.style)})):F.jsx(pe.Fragment,{children:n},r)})},CBt=function(t,n){var r=t.text,i=t.mode,o=t.render,a=t.fieldProps,s=h.useContext(Ln.ConfigContext),l=s.getPrefixCls,c=l("pro-field-option"),u=Ff.useToken(),d=u.token;if(h.useImperativeHandle(n,function(){return{}}),o){var f=o(r,z({mode:i},a),F.jsx(F.Fragment,{}));return!f||(f==null?void 0:f.length)<1||!Array.isArray(f)?null:F.jsx("div",{style:{display:"flex",gap:d.margin,alignItems:"center"},className:c,children:Kle(f)})}return!r||!Array.isArray(r)?pe.isValidElement(r)?r:null:F.jsx("div",{style:{display:"flex",gap:d.margin,alignItems:"center"},className:c,children:Kle(r)})};const xBt=pe.forwardRef(CBt);var wBt=["text","mode","render","renderFormItem","fieldProps","proFieldKey"],TBt=function(t,n){var r=t.text,i=t.mode,o=t.render,a=t.renderFormItem,s=t.fieldProps;t.proFieldKey;var l=kt(t,wBt),c=Lo(),u=Pn(function(){return l.open||l.visible||!1},{value:l.open||l.visible,onChange:l.onOpenChange||l.onVisible}),d=Re(u,2),f=d[0],p=d[1];if(i==="read"){var m=F.jsx(F.Fragment,{children:"-"});return r&&(m=F.jsxs(Ji,{children:[F.jsx("span",{ref:n,children:f?r:"********"}),F.jsx("a",{onClick:function(){return p(!f)},children:f?F.jsx(wS,{}):F.jsx(jwe,{})})]})),o?o(r,z({mode:i},s),m):m}if(i==="edit"||i==="update"){var g=F.jsx(Co.Password,z({placeholder:c.getMessage("tableForm.inputPlaceholder","请输入"),ref:n},s));return a?a(r,z({mode:i},s),g):g}return null};const OBt=pe.forwardRef(TBt);function RBt(e){return e===0?null:e>0?"+":"-"}function ABt(e){return e===0?"#595959":e>0?"#ff4d4f":"#52c41a"}function IBt(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 SM(e){return qt(e)==="symbol"||e instanceof Symbol?NaN:Number(e)}var NBt=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,p=t.fieldProps,m=t.placeholder,g=t.showSymbol,v=Lo(),y=m||v.getMessage("tableForm.inputPlaceholder","请输入"),b=h.useMemo(function(){return typeof r=="string"&&r.includes("%")?SM(r.replace("%","")):SM(r)},[r]),_=h.useMemo(function(){return typeof g=="function"?g==null?void 0:g(r):g},[g,r]);if(l==="read"){var S=u?{color:ABt(b)}:{},x=F.jsxs("span",{style:S,ref:n,children:[i&&F.jsx("span",{children:i}),_&&F.jsxs(h.Fragment,{children:[RBt(b)," "]}),IBt(Math.abs(b),o),s&&s]});return d?d(r,z(z({mode:l},p),{},{prefix:i,precision:o,showSymbol:_,suffix:s}),x):x}if(l==="edit"||l==="update"){var E=F.jsx(ch,z({ref:n,formatter:function(w){return w&&i?"".concat(i," ").concat(w).replace(/\B(?=(\d{3})+(?!\d)$)/g,","):w},parser:function(w){return w?w.replace(/.*\s|,/g,""):""},placeholder:y},p));return f?f(r,z({mode:l},p),E):E}return null};const RRe=pe.forwardRef(NBt);function MBt(e){return e===100?"success":e<0?"exception":e<100?"active":"normal"}var kBt=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=Lo(),d=c||u.getMessage("tableForm.inputPlaceholder","请输入"),f=h.useMemo(function(){return typeof r=="string"&&r.includes("%")?SM(r.replace("%","")):SM(r)},[r]);if(i==="read"){var p=F.jsx(iTe,z({ref:n,size:"small",style:{minWidth:100,maxWidth:320},percent:f,steps:a?10:void 0,status:MBt(f)},l));return o?o(f,z({mode:i},l),p):p}if(i==="edit"||i==="update"){var m=F.jsx(ch,z({ref:n,placeholder:d},l));return s?s(r,z({mode:i},l),m):m}return null};const ARe=pe.forwardRef(kBt);var PBt=["radioType","renderFormItem","mode","render"],DBt=function(t,n){var r,i,o=t.radioType,a=t.renderFormItem,s=t.mode,l=t.render,c=kt(t,PBt),u=h.useContext(Ln.ConfigContext),d=u.getPrefixCls,f=d("pro-field-radio"),p=FS(c),m=Re(p,3),g=m[0],v=m[1],y=m[2],b=h.useRef(),_=(r=ui.Item)===null||r===void 0||(i=r.useStatus)===null||i===void 0?void 0:i.call(r);h.useImperativeHandle(n,function(){return z(z({},b.current||{}),{},{fetchData:function(D){return y(D)}})},[y]);var S=Gi("FieldRadioRadio",function(N){return te(te(te({},".".concat(f,"-error"),{span:{color:N.colorError}}),".".concat(f,"-warning"),{span:{color:N.colorWarning}}),".".concat(f,"-vertical"),te({},"".concat(N.antCls,"-radio-wrapper"),{display:"flex",marginInlineEnd:0}))}),x=S.wrapSSR,E=S.hashId;if(g)return F.jsx(Nc,{size:"small"});if(s==="read"){var C=v!=null&&v.length?v==null?void 0:v.reduce(function(N,D){var M;return z(z({},N),{},te({},(M=D.value)!==null&&M!==void 0?M:"",D.label))},{}):void 0,w=F.jsx(F.Fragment,{children:PS(c.text,xh(c.valueEnum||C))});if(l){var O;return(O=l(c.text,z({mode:s},c.fieldProps),w))!==null&&O!==void 0?O:null}return w}if(s==="edit"){var T,A=x(F.jsx(Qi.Group,z(z({ref:b,optionType:o},c.fieldProps),{},{className:Ce((T=c.fieldProps)===null||T===void 0?void 0:T.className,te(te({},"".concat(f,"-error"),(_==null?void 0:_.status)==="error"),"".concat(f,"-warning"),(_==null?void 0:_.status)==="warning"),E,"".concat(f,"-").concat(c.fieldProps.layout||"horizontal")),options:v})));if(a){var I;return(I=a(c.text,z(z({mode:s},c.fieldProps),{},{options:v,loading:g}),A))!==null&&I!==void 0?I:null}return A}return null};const Qle=pe.forwardRef(DBt);var LBt=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,p=t.lightLabel,m=t.bordered,g=t.fieldProps,v=Lo(),y=Array.isArray(r)?r:[],b=Re(y,2),_=b[0],S=b[1],x=pe.useState(!1),E=Re(x,2),C=E[0],w=E[1],O=h.useCallback(function(k){if(typeof(g==null?void 0:g.format)=="function"){var P;return g==null||(P=g.format)===null||P===void 0?void 0:P.call(g,k)}return(g==null?void 0:g.format)||s||"YYYY-MM-DD"},[g,s]),T=_?Sr(_).format(O(Sr(_))):"",A=S?Sr(S).format(O(Sr(S))):"";if(i==="read"){var I=F.jsxs("div",{ref:n,style:{display:"flex",flexWrap:"wrap",gap:8,alignItems:"center"},children:[F.jsx("div",{children:T||"-"}),F.jsx("div",{children:A||"-"})]});return l?l(r,z({mode:i},g),F.jsx("span",{children:I})):I}if(i==="edit"||i==="update"){var N=P2(g.value),D;if(o){var M;D=F.jsx(Ch,{label:a,onClick:function(){var P;g==null||(P=g.onOpenChange)===null||P===void 0||P.call(g,!0),w(!0)},style:N?{paddingInlineEnd:0}:void 0,disabled:g.disabled,value:N||C?F.jsx(yu.RangePicker,z(z(z({picker:c,showTime:f,format:s},xc(!1)),g),{},{placeholder:(M=g.placeholder)!==null&&M!==void 0?M:[v.getMessage("tableForm.selectPlaceholder","请选择"),v.getMessage("tableForm.selectPlaceholder","请选择")],onClear:function(){var P;w(!1),g==null||(P=g.onClear)===null||P===void 0||P.call(g)},value:N,onOpenChange:function(P){var B;N&&w(P),g==null||(B=g.onOpenChange)===null||B===void 0||B.call(g,P)}})):null,allowClear:!1,bordered:m,ref:p,downIcon:N||C?!1:void 0})}else D=F.jsx(yu.RangePicker,z(z(z({ref:n,format:s,showTime:f,placeholder:[v.getMessage("tableForm.selectPlaceholder","请选择"),v.getMessage("tableForm.selectPlaceholder","请选择")]},xc(d===void 0?!0:!d)),g),{},{value:N}));return u?u(r,z({mode:i},g),D):D}return null};const db=pe.forwardRef(LBt);var $Bt=function(t,n){var r=t.text,i=t.mode,o=t.render,a=t.renderFormItem,s=t.fieldProps;if(i==="read"){var l=F.jsx(Hoe,z(z({allowHalf:!0,disabled:!0,ref:n},s),{},{value:r}));return o?o(r,z({mode:i},s),F.jsx(F.Fragment,{children:l})):l}if(i==="edit"||i==="update"){var c=F.jsx(Hoe,z({allowHalf:!0,ref:n},s));return a?a(r,z({mode:i},s),c):c}return null};const FBt=pe.forwardRef($Bt);function BBt(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 HBt=function(t,n){var r=t.text,i=t.mode,o=t.render,a=t.renderFormItem,s=t.fieldProps,l=t.placeholder,c=Lo(),u=l||c.getMessage("tableForm.inputPlaceholder","请输入");if(i==="read"){var d=BBt(Number(r)),f=F.jsx("span",{ref:n,children:d});return o?o(r,z({mode:i},s),f):f}if(i==="edit"||i==="update"){var p=F.jsx(ch,z({ref:n,min:0,style:{width:"100%"},placeholder:u},s));return a?a(r,z({mode:i},s),p):p}return null};const jBt=pe.forwardRef(HBt);var UBt=["mode","render","renderFormItem","fieldProps","emptyText"],zBt=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=kt(t,UBt),u=h.useRef(),d=FS(t),f=Re(d,3),p=f[0],m=f[1],g=f[2];if(h.useImperativeHandle(n,function(){return z(z({},u.current||{}),{},{fetchData:function(x){return g(x)}})},[g]),p)return F.jsx(Nc,{size:"small"});if(r==="read"){var v=m!=null&&m.length?m==null?void 0:m.reduce(function(S,x){var E;return z(z({},S),{},te({},(E=x.value)!==null&&E!==void 0?E:"",x.label))},{}):void 0,y=F.jsx(F.Fragment,{children:PS(c.text,xh(c.valueEnum||v))});if(i){var b;return(b=i(c.text,z({mode:r},a),F.jsx(F.Fragment,{children:y})))!==null&&b!==void 0?b:l}return y}if(r==="edit"||r==="update"){var _=F.jsx(Gxe,z(z({ref:u},ur(a||{},["allowClear"])),{},{options:m}));return o?o(c.text,z(z({mode:r},a),{},{options:m,loading:p}),_):_}return null};const VBt=pe.forwardRef(zBt);var GBt=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,z({mode:i},s),F.jsx(F.Fragment,{children:l})):F.jsx(F.Fragment,{children:l})}if(i==="edit"||i==="update"){var c=F.jsx(awe,z(z({ref:n},s),{},{style:z({minWidth:120},s==null?void 0:s.style)}));return a?a(r,z({mode:i},s),c):c}return null};const WBt=pe.forwardRef(GBt);var qBt=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=Lo(),d=h.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,z({mode:i},c),F.jsx(F.Fragment,{children:d})):d??"-";if(i==="edit"||i==="update"){var f,p=F.jsx(eM,z(z({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 F.jsx(Ch,{label:s,disabled:m,bordered:g,downIcon:!1,value:F.jsx("div",{style:{paddingLeft:8},children:p}),allowClear:!1})}return l?l(r,z({mode:i},c),p):p}return null};const YBt=pe.forwardRef(qBt);var KBt=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,p=f===void 0?"":f,m=u.suffix,g=m===void 0?"":m,v=Lo(),y=h.useRef();if(h.useImperativeHandle(n,function(){return y.current},[]),h.useEffect(function(){if(d){var E;(E=y.current)===null||E===void 0||E.focus()}},[d]),i==="read"){var b=F.jsxs(F.Fragment,{children:[p,r??c,g]});if(o){var _;return(_=o(r,z({mode:i},s),b))!==null&&_!==void 0?_:c}return b}if(i==="edit"||i==="update"){var S=v.getMessage("tableForm.inputPlaceholder","请输入"),x=F.jsx(Co,z({ref:y,placeholder:S,allowClear:!0},s));return a?a(r,z({mode:i},s),x):x}return null};const QBt=pe.forwardRef(KBt);var XBt=function(t,n){var r=t.text,i=t.fieldProps,o=h.useContext(Ln.ConfigContext),a=o.getPrefixCls,s=a("pro-field-readonly"),l="".concat(s,"-textarea"),c=Gi("TextArea",function(){return te({},".".concat(l),{display:"inline-block",lineHeight:"1.5715",maxWidth:"100%",whiteSpace:"pre-wrap"})}),u=c.wrapSSR,d=c.hashId;return u(F.jsx("span",z(z({ref:n,className:Ce(d,s,l)},ur(i,["autoSize","classNames","styles"])),{},{children:r??"-"})))};const ZBt=pe.forwardRef(XBt);var JBt=function(t,n){var r=t.text,i=t.mode,o=t.render,a=t.renderFormItem,s=t.fieldProps,l=Lo();if(i==="read"){var c=F.jsx(ZBt,z(z({},t),{},{ref:n}));return o?o(r,z({mode:i},ur(s,["showCount"])),c):c}if(i==="edit"||i==="update"){var u=F.jsx(Co.TextArea,z({ref:n,rows:3,onKeyPress:function(f){f.key==="Enter"&&f.stopPropagation()},placeholder:l.getMessage("tableForm.inputPlaceholder","请输入")},s));return a?a(r,z({mode:i},s),u):u}return null};const eHt=pe.forwardRef(JBt);var tHt=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,p=h.useState(!1),m=Re(p,2),g=m[0],v=m[1],y=Lo(),b=(d==null?void 0:d.format)||s||"HH:mm:ss",_=Sr.isDayjs(r)||typeof r=="number";if(i==="read"){var S=F.jsx("span",{ref:n,children:r?Sr(r,_?void 0:b).format(b):"-"});return l?l(r,z({mode:i},d),F.jsx("span",{children:S})):S}if(i==="edit"||i==="update"){var x,E=d.disabled,C=d.value,w=P2(C,b);if(o){var O;x=F.jsx(Ch,{onClick:function(){var A;d==null||(A=d.onOpenChange)===null||A===void 0||A.call(d,!0),v(!0)},style:w?{paddingInlineEnd:0}:void 0,label:a,disabled:E,value:w||g?F.jsx(z1,z(z(z({},xc(!1)),{},{format:s,ref:n},d),{},{placeholder:(O=d.placeholder)!==null&&O!==void 0?O:y.getMessage("tableForm.selectPlaceholder","请选择"),value:w,onOpenChange:function(A){var I;v(A),d==null||(I=d.onOpenChange)===null||I===void 0||I.call(d,A)},open:g})):null,downIcon:w||g?!1:void 0,allowClear:!1,ref:f})}else x=F.jsx(yu.TimePicker,z(z(z({ref:n,format:s},xc(u===void 0?!0:!u)),d),{},{value:w}));return c?c(r,z({mode:i},d),x):x}return null},nHt=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,p=Lo(),m=h.useState(!1),g=Re(m,2),v=g[0],y=g[1],b=(f==null?void 0:f.format)||l||"HH:mm:ss",_=Array.isArray(r)?r:[],S=Re(_,2),x=S[0],E=S[1],C=Sr.isDayjs(x)||typeof x=="number",w=Sr.isDayjs(E)||typeof E=="number",O=x?Sr(x,C?void 0:b).format(b):"",T=E?Sr(E,w?void 0:b).format(b):"";if(a==="read"){var A=F.jsxs("div",{ref:n,children:[F.jsx("div",{children:O||"-"}),F.jsx("div",{children:T||"-"})]});return c?c(r,z({mode:a},f),F.jsx("span",{children:A})):A}if(a==="edit"||a==="update"){var I=P2(f.value,b),N;if(i){var D=f.disabled,M=f.placeholder,k=M===void 0?[p.getMessage("tableForm.selectPlaceholder","请选择"),p.getMessage("tableForm.selectPlaceholder","请选择")]:M;N=F.jsx(Ch,{onClick:function(){var B;f==null||(B=f.onOpenChange)===null||B===void 0||B.call(f,!0),y(!0)},style:I?{paddingInlineEnd:0}:void 0,label:o,disabled:D,placeholder:k,value:I||v?F.jsx(z1.RangePicker,z(z(z({},xc(!1)),{},{format:l,ref:n},f),{},{placeholder:k,value:I,onOpenChange:function(B){var G;y(B),f==null||(G=f.onOpenChange)===null||G===void 0||G.call(f,B)},open:v})):null,downIcon:I||v?!1:void 0,allowClear:!1,ref:s})}else N=F.jsx(z1.RangePicker,z(z(z({ref:n,format:l},xc(d===void 0?!0:!d)),f),{},{value:I}));return u?u(r,z({mode:a},f),N):N}return null},rHt=pe.forwardRef(nHt);const iHt=pe.forwardRef(tHt);var oHt=["radioType","renderFormItem","mode","light","label","render"],aHt=["onSearch","onClear","onChange","onBlur","showSearch","autoClearSearchValue","treeData","fetchDataOnSearch","searchValue"],sHt=function(t,n){t.radioType;var r=t.renderFormItem,i=t.mode,o=t.light,a=t.label,s=t.render,l=kt(t,oHt),c=h.useContext(Ln.ConfigContext),u=c.getPrefixCls,d=u("pro-field-tree-select"),f=h.useRef(null),p=h.useState(!1),m=Re(p,2),g=m[0],v=m[1],y=l.fieldProps,b=y.onSearch,_=y.onClear,S=y.onChange,x=y.onBlur,E=y.showSearch,C=y.autoClearSearchValue;y.treeData;var w=y.fetchDataOnSearch,O=y.searchValue,T=kt(y,aHt),A=Lo(),I=FS(z(z({},l),{},{defaultKeyWords:O})),N=Re(I,3),D=N[0],M=N[1],k=N[2],P=Pn(void 0,{onChange:b,value:O}),B=Re(P,2),G=B[0],L=B[1];h.useImperativeHandle(n,function(){return z(z({},f.current||{}),{},{fetchData:function(me){return k(me)}})});var W=h.useMemo(function(){if(i==="read"){var he=(T==null?void 0:T.fieldNames)||{},me=he.value,ce=me===void 0?"value":me,re=he.label,ve=re===void 0?"label":re,be=he.children,xe=be===void 0?"children":be,we=new Map,de=function Ee(Ne){if(!(Ne!=null&&Ne.length))return we;for(var Te=Ne.length,Ve=0;Ve<Te;){var q=Ne[Ve++];we.set(q[ce],q[ve]),Ee(q[xe])}return we};return de(M)}},[T==null?void 0:T.fieldNames,i,M]),j=function(me,ce,re){E&&C&&(k(void 0),L(void 0)),S==null||S(me,ce,re)};if(i==="read"){var H=F.jsx(F.Fragment,{children:PS(l.text,xh(l.valueEnum||W))});if(s){var X;return(X=s(l.text,z(z({mode:i},T),{},{treeData:M}),H))!==null&&X!==void 0?X:null}return H}if(i==="edit"){var Q,ue=Array.isArray(T==null?void 0:T.value)?T==null||(Q=T.value)===null||Q===void 0?void 0:Q.length:0,ee=F.jsx(Nc,{spinning:D,children:F.jsx(wv,z(z({open:g,onDropdownVisibleChange:function(me){var ce;T==null||(ce=T.onDropdownVisibleChange)===null||ce===void 0||ce.call(T,me),v(me)},ref:f,popupMatchSelectWidth:!o,placeholder:A.getMessage("tableForm.selectPlaceholder","请选择"),tagRender:o?function(he){var me;if(ue<2)return F.jsx(F.Fragment,{children:he.label});var ce=T==null||(me=T.value)===null||me===void 0?void 0:me.findIndex(function(re){return re===he.value||re.value===he.value});return F.jsxs(F.Fragment,{children:[he.label," ",ce<ue-1?",":""]})}:void 0,bordered:!o},T),{},{treeData:M,showSearch:E,style:z({minWidth:60},T.style),allowClear:T.allowClear!==!1,searchValue:G,autoClearSearchValue:C,onClear:function(){_==null||_(),k(void 0),E&&L(void 0)},onChange:j,onSearch:function(me){w&&l!==null&&l!==void 0&&l.request&&k(me),L(me)},onBlur:function(me){L(void 0),k(void 0),x==null||x(me)},className:Ce(T==null?void 0:T.className,d)}))});if(r){var K;ee=(K=r(l.text,z(z({mode:i},T),{},{options:M,loading:D}),ee))!==null&&K!==void 0?K:null}if(o){var se,le=T.disabled,oe=T.placeholder,ne=!!T.value&&((se=T.value)===null||se===void 0?void 0:se.length)!==0;return F.jsx(Ch,{label:a,disabled:le,placeholder:oe,onClick:function(){var me;v(!0),T==null||(me=T.onDropdownVisibleChange)===null||me===void 0||me.call(T,!0)},bordered:l.bordered,value:ne||g?ee:null,style:ne?{paddingInlineEnd:0}:void 0,allowClear:!1,downIcon:!1})}return ee}return null};const lHt=pe.forwardRef(sHt);function fl(e){var t=h.useState(!1),n=Re(t,2),r=n[0],i=n[1],o=h.useRef(null),a=h.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),p=(d=o.current)===null||d===void 0||(d=d.clearRef)===null||d===void 0||(d=d.current)===null||d===void 0?void 0:d.contains(c.target);return f&&!p},[o]),s=function(u){a(u)&&i(!0)},l=function(){i(!1)};return e.isLight?F.jsx("div",{onMouseDown:s,onMouseUp:l,children:pe.cloneElement(e.children,{labelTrigger:r,lightLabel:o})}):F.jsx(F.Fragment,{children:e.children})}var IRe={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(Wn,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,p,m=a(this),g=(u=this.isoWeekYear(),d=this.$u,f=(d?o.utc:o)().year(u).startOf("year"),p=4-f.isoWeekday(),f.isoWeekday()>4&&(p+=7),f.add(p,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)}}})})(IRe);var cHt=IRe.exports;const uHt=oi(cHt);var NRe={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(Wn,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(p,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)}}})})(NRe);var dHt=NRe.exports;const fHt=oi(dHt);var pHt=["fieldProps"],hHt=["fieldProps"],mHt=["fieldProps"],gHt=["fieldProps"],vHt=["text","valueType","mode","onChange","renderFormItem","value","readonly","fieldProps"],bHt=["placeholder"];Sr.extend(bCe);Sr.extend(ECe);Sr.extend(uHt);Sr.extend(gY);Sr.extend(gCe);Sr.extend(fHt);var yHt=function(t,n,r){var i=aOe(r.fieldProps);return n.type==="progress"?F.jsx(ARe,z(z({},r),{},{text:t,fieldProps:z({status:n.status?n.status:void 0},i)})):n.type==="money"?F.jsx(ORe,z(z({locale:n.locale},r),{},{fieldProps:i,text:t,moneySymbol:n.moneySymbol})):n.type==="percent"?F.jsx(RRe,z(z({},r),{},{text:t,showSymbol:n.showSymbol,precision:n.precision,fieldProps:i,showColor:n.showColor})):n.type==="image"?F.jsx(wRe,z(z({},r),{},{text:t,width:n.width})):t},_Ht=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,z({mode:a},c),F.jsx(F.Fragment,{children:l})):F.jsx(F.Fragment,{children:l})}if(delete r.emptyText,qt(n)==="object")return yHt(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,z(z({text:t},r),{},{mode:a||"read"}),F.jsx(F.Fragment,{children:t}))}if(a==="update"||a==="edit"){var p;return(p=d.renderFormItem)===null||p===void 0?void 0:p.call(d,t,z({text:t},r),F.jsx(F.Fragment,{children:t}))}}if(n==="money")return F.jsx(ORe,z(z({},r),{},{text:t}));if(n==="date")return F.jsx(fl,{isLight:r.light,children:F.jsx(ub,z({text:t,format:"YYYY-MM-DD"},r))});if(n==="dateWeek")return F.jsx(fl,{isLight:r.light,children:F.jsx(ub,z({text:t,format:"YYYY-wo",picker:"week"},r))});if(n==="dateWeekRange"){var m=r.fieldProps,g=kt(r,pHt);return F.jsx(fl,{isLight:r.light,children:F.jsx(db,z({text:t,format:"YYYY-W",showTime:!0,fieldProps:z({picker:"week"},m)},g))})}if(n==="dateMonthRange"){var v=r.fieldProps,y=kt(r,hHt);return F.jsx(fl,{isLight:r.light,children:F.jsx(db,z({text:t,format:"YYYY-MM",showTime:!0,fieldProps:z({picker:"month"},v)},y))})}if(n==="dateQuarterRange"){var b=r.fieldProps,_=kt(r,mHt);return F.jsx(fl,{isLight:r.light,children:F.jsx(db,z({text:t,format:"YYYY-Q",showTime:!0,fieldProps:z({picker:"quarter"},b)},_))})}if(n==="dateYearRange"){var S=r.fieldProps,x=kt(r,gHt);return F.jsx(fl,{isLight:r.light,children:F.jsx(db,z({text:t,format:"YYYY",showTime:!0,fieldProps:z({picker:"year"},S)},x))})}return n==="dateMonth"?F.jsx(fl,{isLight:r.light,children:F.jsx(ub,z({text:t,format:"YYYY-MM",picker:"month"},r))}):n==="dateQuarter"?F.jsx(fl,{isLight:r.light,children:F.jsx(ub,z({text:t,format:"YYYY-[Q]Q",picker:"quarter"},r))}):n==="dateYear"?F.jsx(fl,{isLight:r.light,children:F.jsx(ub,z({text:t,format:"YYYY",picker:"year"},r))}):n==="dateRange"?F.jsx(db,z({text:t,format:"YYYY-MM-DD"},r)):n==="dateTime"?F.jsx(fl,{isLight:r.light,children:F.jsx(ub,z({text:t,format:"YYYY-MM-DD HH:mm:ss",showTime:!0},r))}):n==="dateTimeRange"?F.jsx(fl,{isLight:r.light,children:F.jsx(db,z({text:t,format:"YYYY-MM-DD HH:mm:ss",showTime:!0},r))}):n==="time"?F.jsx(fl,{isLight:r.light,children:F.jsx(iHt,z({text:t,format:"HH:mm:ss"},r))}):n==="timeRange"?F.jsx(fl,{isLight:r.light,children:F.jsx(rHt,z({text:t,format:"HH:mm:ss"},r))}):n==="fromNow"?F.jsx(dBt,z({text:t},r)):n==="index"?F.jsx(qle,{children:t+1}):n==="indexBorder"?F.jsx(qle,{border:!0,children:t+1}):n==="progress"?F.jsx(ARe,z(z({},r),{},{text:t})):n==="percent"?F.jsx(RRe,z({text:t},r)):n==="avatar"&&typeof t=="string"&&r.mode==="read"?F.jsx(_h,{src:t,size:22,shape:"circle"}):n==="code"?F.jsx(kse,z({text:t},r)):n==="jsonCode"?F.jsx(kse,z({text:t,language:"json"},r)):n==="textarea"?F.jsx(eHt,z({text:t},r)):n==="digit"?F.jsx(oBt,z({text:t},r)):n==="digitRange"?F.jsx(sBt,z({text:t},r)):n==="second"?F.jsx(jBt,z({text:t},r)):n==="select"||n==="text"&&(r.valueEnum||r.request)?F.jsx(fl,{isLight:r.light,children:F.jsx(IRt,z({text:t},r))}):n==="checkbox"?F.jsx($Rt,z({text:t},r)):n==="radio"?F.jsx(Qle,z({text:t},r)):n==="radioButton"?F.jsx(Qle,z({radioType:"button",text:t},r)):n==="rate"?F.jsx(FBt,z({text:t},r)):n==="slider"?F.jsx(WBt,z({text:t},r)):n==="switch"?F.jsx(YBt,z({text:t},r)):n==="option"?F.jsx(xBt,z({text:t},r)):n==="password"?F.jsx(OBt,z({text:t},r)):n==="image"?F.jsx(wRe,z({text:t},r)):n==="cascader"?F.jsx(kRt,z({text:t},r)):n==="treeSelect"?F.jsx(lHt,z({text:t},r)):n==="color"?F.jsx(tBt,z({text:t},r)):n==="segmented"?F.jsx(VBt,z({text:t},r)):F.jsx(QBt,z({text:t},r))},SHt=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,p=t.onChange,m=t.renderFormItem,g=t.value,v=t.readonly,y=t.fieldProps,b=kt(t,vHt),_=h.useContext(yg),S=gd(function(){for(var C,w=arguments.length,O=new Array(w),T=0;T<w;T++)O[T]=arguments[T];y==null||(C=y.onChange)===null||C===void 0||C.call.apply(C,[y].concat(O)),p==null||p.apply(void 0,O)}),x=yl(function(){return(g!==void 0||y)&&z(z({value:g},tu(y)),{},{onChange:S})},[g,y,S]),E=_Ht(f==="edit"?(r=(i=x==null?void 0:x.value)!==null&&i!==void 0?i:l)!==null&&r!==void 0?r:"":(o=l??(x==null?void 0:x.value))!==null&&o!==void 0?o:"",u||"text",tu(z(z({ref:n},b),{},{mode:v?"read":f,renderFormItem:m?function(C,w,O){w.placeholder;var T=kt(w,bHt),A=m(C,T,O);return pe.isValidElement(A)?pe.cloneElement(A,z(z({},x),A.props||{})):A}:void 0,placeholder:m?void 0:(a=b==null?void 0:b.placeholder)!==null&&a!==void 0?a:x==null?void 0:x.placeholder,fieldProps:aOe(tu(z(z({},x),{},{placeholder:m?void 0:(s=b==null?void 0:b.placeholder)!==null&&s!==void 0?s:x==null?void 0:x.placeholder})))})),_.valueTypeMap||{});return F.jsx(pe.Fragment,{children:E})},EHt=pe.forwardRef(SHt),WK=pe.createContext({mode:"edit"}),CHt=["fieldProps","children","labelCol","label","autoFocus","isDefaultDom","render","proFieldProps","renderFormItem","valueType","initialValue","onChange","valueEnum","params","name","dependenciesValues","cacheForSwr","valuePropName"],xHt=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,p=t.cacheForSwr,m=p===void 0?!1:p,g=t.valuePropName,v=g===void 0?"value":g,y=kt(t,CHt),b=h.useContext(WK),_=h.useMemo(function(){return f&&y.request?z(z({},d),f||{}):d},[f,d,y.request]),S=gd(function(){if(n!=null&&n.onChange){for(var C,w=arguments.length,O=new Array(w),T=0;T<w;T++)O[T]=arguments[T];n==null||(C=n.onChange)===null||C===void 0||C.call.apply(C,[n].concat(O));return}}),x=h.useMemo(function(){return z(z({autoFocus:i},n),{},{onChange:S})},[i,n,S]),E=h.useMemo(function(){if(r)return pe.isValidElement(r)?pe.cloneElement(r,z(z({},y),{},{onChange:function(){for(var w=arguments.length,O=new Array(w),T=0;T<w;T++)O[T]=arguments[T];if(n!=null&&n.onChange){var A;n==null||(A=n.onChange)===null||A===void 0||A.call.apply(A,[n].concat(O));return}c==null||c.apply(void 0,O)}},(r==null?void 0:r.props)||{})):F.jsx(F.Fragment,{children:r})},[r,n==null?void 0:n.onChange,c,y]);return E||F.jsx(EHt,z(z(z({text:n==null?void 0:n[v],render:o,renderFormItem:s,valueType:l||"text",cacheForSwr:m,fieldProps:x,valueEnum:q1(u)},a),y),{},{mode:(a==null?void 0:a.mode)||b.mode||"edit",params:_}))},Md=RD(h.memo(xHt,function(e,t){return f1(t,e,["onChange","onBlur"])})),wHt=["options","fieldProps","proFieldProps","valueEnum"],THt=pe.forwardRef(function(e,t){var n=e.options,r=e.fieldProps,i=e.proFieldProps,o=e.valueEnum,a=kt(e,wHt);return F.jsx(Md,z({ref:t,valueType:"checkbox",valueEnum:q1(o,void 0),fieldProps:z({options:n},r),lightProps:z({labelFormatter:function(){return F.jsx(Md,z({ref:t,valueType:"checkbox",mode:"read",valueEnum:q1(o,void 0),filedConfig:{customLightMode:!0},fieldProps:z({options:n},r),proFieldProps:i},a))}},a.lightProps),proFieldProps:i},a))}),OHt=pe.forwardRef(function(e,t){var n=e.fieldProps,r=e.children;return F.jsx(lh,z(z({ref:t},n),{},{children:r}))}),RHt=RD(OHt,{valuePropName:"checked"}),qK=RHt;qK.Group=THt;var AHt=["fieldProps","proFieldProps"],Xle="dateRange",MRe=pe.forwardRef(function(e,t){var n=e.fieldProps,r=e.proFieldProps,i=kt(e,AHt),o=h.useContext(Ov);return F.jsx(Md,z({ref:t,fieldProps:z({getPopupContainer:o.getPopupContainer},n),valueType:Xle,proFieldProps:r,filedConfig:{valueType:Xle,customLightMode:!0,lightFilterLabelFormatter:function(s){return nOe(s,(n==null?void 0:n.format)||"YYYY-MM-DD")}}},i))}),YK=pe.createContext({}),IHt=["name","originDependencies","children","ignoreFormListField"],kRe=function(t){var n=t.name,r=t.originDependencies,i=r===void 0?n:r,o=t.children,a=t.ignoreFormListField,s=kt(t,IHt),l=h.useContext(J2e),c=h.useContext(YK),u=h.useMemo(function(){return n.map(function(d){var f,p=[d];return!a&&c.name!==void 0&&(f=c.listName)!==null&&f!==void 0&&f.length&&p.unshift(c.listName),p.flat(1)})},[c.listName,c.name,a,n==null?void 0:n.toString()]);return F.jsx(ui.Item,z(z({},s),{},{noStyle:!0,shouldUpdate:function(f,p,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,p,m)}return u.some(function(v){return!f1(No(f,v),No(p,v))})},children:function(f){for(var p={},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)p=oOe({},p,_),No(_,v)&&(p=ta(p,b,No(_,v)));else{var S;_=(S=f.getFieldValue)===null||S===void 0?void 0:S.call(f,v),typeof _<"u"&&(p=ta(p,b,_))}}return o==null?void 0:o(p,z(z({},f),l))}}))};kRe.displayName="ProFormDependency";var NHt=["children","onChange","onBlur","ignoreFormItem","valuePropName"],MHt=["children","addonAfter","addonBefore","valuePropName","addonWarpStyle","convertValue","help"],kHt=["valueType","transform","dataFormat","ignoreFormItem","lightProps","children"],PHt=pe.createContext({}),DHt=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=kt(t,NHt),u=(i==null||(n=i.type)===null||n===void 0?void 0:n.displayName)!=="ProFormComponent",d=!pe.isValidElement(i),f=gd(function(){for(var b,_,S,x,E=arguments.length,C=new Array(E),w=0;w<E;w++)C[w]=arguments[w];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||(S=i.props)===null||S===void 0||(S=S.fieldProps)===null||S===void 0||(x=S.onChange)===null||x===void 0||x.call.apply(x,[S].concat(C))))}),p=gd(function(){var b,_,S,x;if(!u&&!d){for(var E=arguments.length,C=new Array(E),w=0;w<E;w++)C[w]=arguments[w];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||(S=i.props)===null||S===void 0||(S=S.fieldProps)===null||S===void 0||(x=S.onBlur)===null||x===void 0||x.call.apply(x,[S].concat(C))}}),m=yl(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=h.useMemo(function(){if(!u&&!d)return tu(z(z(te({id:c.id},l,g),m),{},{onBlur:p,onChange:f}))},[g,m,p,f,c.id,l]),y=h.useMemo(function(){if(!v&&pe.isValidElement(i))return function(){for(var b,_,S=arguments.length,x=new Array(S),E=0;E<S;E++)x[E]=arguments[E];o==null||o.apply(void 0,x),i==null||(b=i.props)===null||b===void 0||(_=b.onChange)===null||_===void 0||_.call.apply(_,[b].concat(x))}},[v,i,o]);return pe.isValidElement(i)?pe.cloneElement(i,tu(z(z(z({},c),{},te({},l,t[l]),i.props),{},{onChange:y,fieldProps:v,onBlur:u&&!d&&a}))):F.jsx(F.Fragment,{children:i})},Zle=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=kt(t,MHt),u=h.useMemo(function(){var d=function(p){var m,g=(m=s==null?void 0:s(p,c.name))!==null&&m!==void 0?m:p;return c.getValueProps?c.getValueProps(g):te({},o||"value",g)};return!s&&!c.getValueProps&&(d=void 0),!r&&!i?F.jsx(ui.Item,z(z({},c),{},{valuePropName:o,getValueProps:d,children:n})):F.jsx(ui.Item,z(z(z({},c),{},{help:typeof l!="function"?l:void 0,valuePropName:o,_internalItemRender:{mark:"pro_table_render",render:function(p,m){return F.jsxs(F.Fragment,{children:[F.jsxs("div",{style:z({display:"flex",alignItems:"center",flexWrap:"wrap"},a),children:[i?F.jsx("div",{style:{marginInlineEnd:8},children:i}):null,m.input,r?F.jsx("div",{style:{marginInlineStart:8},children:r}):null]}),typeof l=="function"?l({errors:p.errors,warnings:p.warnings}):m.errorList,m.extra]})}}},c),{},{getValueProps:d,children:n}))},[r,i,n,s==null?void 0:s.toString(),c]);return F.jsx(PHt.Provider,{value:{name:c.name,label:c.label},children:u})},PRe=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,p=t.lightProps;t.children;var m=kt(t,kHt),g=h.useContext(YK),v=h.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=pe.useContext(Ov),b=y.setFieldValueType,_=y.formItemProps;h.useEffect(function(){!b||!t.name||b([g.listName,t.name].flat(1).filter(function(O){return O!==void 0}),{valueType:c||"text",dateFormat:d,transform:u})},[g.listName,v,d,t.name,b,u,c]);var S=pe.isValidElement(t.children)&&mTt(c||t.children.props.valueType),x=h.useMemo(function(){return!!(!(p!=null&&p.light)||p!=null&&p.customLightMode||S)},[p==null?void 0:p.customLightMode,S,p==null?void 0:p.light]);if(typeof t.children=="function"){var E;return h.createElement(Zle,z(z({},m),{},{name:v,key:m.proFormFieldKey||((E=m.name)===null||E===void 0?void 0:E.toString())}),t.children)}var C=F.jsx(DHt,{valuePropName:t.valuePropName,children:t.children},m.proFormFieldKey||((r=m.name)===null||r===void 0?void 0:r.toString())),w=x?C:h.createElement(ujt,z(z({},p),{},{key:m.proFormFieldKey||((i=m.name)===null||i===void 0?void 0:i.toString()),size:l}),C);return f?F.jsx(F.Fragment,{children:w}):F.jsx(Zle,z(z(z({},_),m),{},{name:v,isListField:g.name!==void 0,children:w}),m.proFormFieldKey||((o=m.name)===null||o===void 0?void 0:o.toString()))},LHt=function(t){return te({},t.componentCls,{"&-title":{marginBlockEnd:t.marginXL,fontWeight:"bold"},"&-container":te({flexWrap:"wrap",maxWidth:"100%"},"> div".concat(t.antCls,"-space-item"),{maxWidth:"100%"}),"&-twoLine":te(te(te(te({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 $Ht(e){return Gi("ProFormGroup",function(t){var n=z(z({},t),{},{componentCls:".".concat(e)});return[LHt(n)]})}var DRe=pe.forwardRef(function(e,t){var n=pe.useContext(Ov),r=n.groupProps,i=z(z({},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,p=i.align,m=p===void 0?"start":p,g=i.direction,v=i.size,y=v===void 0?32:v,b=i.titleStyle,_=i.titleRender,S=i.spaceProps,x=i.extra,E=i.autoFocus,C=Pn(function(){return s||!1},{value:e.collapsed,onChange:e.onCollapse}),w=Re(C,2),O=w[0],T=w[1],A=h.useContext(Ln.ConfigContext),I=A.getPrefixCls,N=OK(e),D=N.ColWrapper,M=N.RowWrapper,k=I("pro-form-group"),P=$Ht(k),B=P.wrapSSR,G=P.hashId,L=a&&F.jsx(Rd,{style:{marginInlineEnd:8},rotate:O?void 0:90}),W=F.jsx(tTt,{label:L?F.jsxs("div",{children:[L,d]}):d,tooltip:f}),j=h.useCallback(function(K){var se=K.children;return F.jsx(Ji,z(z({},S),{},{className:Ce("".concat(k,"-container ").concat(G),S==null?void 0:S.className),size:y,align:m,direction:g,style:z({rowGap:0},S==null?void 0:S.style),children:se}))},[m,k,g,G,y,S]),H=_?_(W,e):W,X=h.useMemo(function(){var K=[],se=pe.Children.toArray(o).map(function(le,oe){var ne;return pe.isValidElement(le)&&le!==null&&le!==void 0&&(ne=le.props)!==null&&ne!==void 0&&ne.hidden?(K.push(le),null):oe===0&&pe.isValidElement(le)&&E?pe.cloneElement(le,z(z({},le.props),{},{autoFocus:E})):le});return[F.jsx(M,{Wrapper:j,children:se},"children"),K.length>0?F.jsx("div",{style:{display:"none"},children:K}):null]},[o,M,j,E]),Q=Re(X,2),ue=Q[0],ee=Q[1];return B(F.jsx(D,{children:F.jsxs("div",{className:Ce(k,G,te({},"".concat(k,"-twoLine"),c==="twoLine")),style:l,ref:t,children:[ee,(d||f||x)&&F.jsx("div",{className:"".concat(k,"-title ").concat(G).trim(),style:b,onClick:function(){T(!O)},children:x?F.jsxs("div",{style:{display:"flex",width:"100%",alignItems:"center",justifyContent:"space-between"},children:[H,F.jsx("span",{onClick:function(se){return se.stopPropagation()},children:x})]}):H}),F.jsx("div",{style:{display:a&&O?"none":void 0},children:ue})]})}))});DRe.displayName="ProForm-Group";var FHt=["fieldProps","options","radioType","layout","proFieldProps","valueEnum"],BHt=pe.forwardRef(function(e,t){var n=e.fieldProps,r=e.options,i=e.radioType,o=e.layout,a=e.proFieldProps,s=e.valueEnum,l=kt(e,FHt);return F.jsx(Md,z(z({valueType:i==="button"?"radioButton":"radio",ref:t,valueEnum:q1(s,void 0)},l),{},{fieldProps:z({options:r,layout:o},n),proFieldProps:a,filedConfig:{customLightMode:!0}}))}),HHt=pe.forwardRef(function(e,t){var n=e.fieldProps,r=e.children;return F.jsx(Qi,z(z({},n),{},{ref:t,children:r}))}),jHt=RD(HHt,{valuePropName:"checked",ignoreWidth:!0}),WS=jHt;WS.Group=BHt;WS.Button=Qi.Button;WS.displayName="ProFormComponent";var UHt=["children","trigger","onVisibleChange","onOpenChange","modalProps","onFinish","submitTimeout","title","width","visible","open"];function LRe(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,p=e.open,m=kt(e,UHt);Cw(!m.footer||!(s!=null&&s.footer),"ModalForm 是一个 ProForm 的特殊布局,如果想自定义按钮,请使用 submit.render 自定义。");var g=h.useContext(Ln.ConfigContext),v=h.useState([]),y=Re(v,2),b=y[1],_=h.useState(!1),S=Re(_,2),x=S[0],E=S[1],C=Pn(!!f,{value:p||f,onChange:a||o}),w=Re(C,2),O=w[0],T=w[1],A=h.useRef(null),I=h.useCallback(function(L){A.current===null&&L&&b([]),A.current=L},[]),N=h.useRef(),D=h.useCallback(function(){var L,W,j,H=(L=(W=m.form)!==null&&W!==void 0?W:(j=m.formRef)===null||j===void 0?void 0:j.current)!==null&&L!==void 0?L:N.current;H&&s!==null&&s!==void 0&&s.destroyOnClose&&H.resetFields()},[s==null?void 0:s.destroyOnClose,m.form,m.formRef]);h.useImperativeHandle(m.formRef,function(){return N.current},[N.current]),h.useEffect(function(){(p||f)&&(a==null||a(!0),o==null||o(!0))},[f,p]);var M=h.useMemo(function(){return i?pe.cloneElement(i,z(z({key:"trigger"},i.props),{},{onClick:function(){var L=Ui(rr().mark(function j(H){var X,Q;return rr().wrap(function(ee){for(;;)switch(ee.prev=ee.next){case 0:T(!O),(X=i.props)===null||X===void 0||(Q=X.onClick)===null||Q===void 0||Q.call(X,H);case 2:case"end":return ee.stop()}},j)}));function W(j){return L.apply(this,arguments)}return W}()})):null},[T,i,O]),k=h.useMemo(function(){var L,W,j,H,X,Q,ue;return m.submitter===!1?!1:D0({searchConfig:{submitText:(L=(W=s==null?void 0:s.okText)!==null&&W!==void 0?W:(j=g.locale)===null||j===void 0||(j=j.Modal)===null||j===void 0?void 0:j.okText)!==null&&L!==void 0?L:"确认",resetText:(H=(X=s==null?void 0:s.cancelText)!==null&&X!==void 0?X:(Q=g.locale)===null||Q===void 0||(Q=Q.Modal)===null||Q===void 0?void 0:Q.cancelText)!==null&&H!==void 0?H:"取消"},resetButtonProps:{preventDefault:!0,disabled:c?x:void 0,onClick:function(K){var se;T(!1),s==null||(se=s.onCancel)===null||se===void 0||se.call(s,K)}}},(ue=m.submitter)!==null&&ue!==void 0?ue:{})},[(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,T,x,c]),P=h.useCallback(function(L,W){return F.jsxs(F.Fragment,{children:[L,A.current&&W?F.jsx(pe.Fragment,{children:Fl.createPortal(W,A.current)},"submitter"):W]})},[]),B=h.useCallback(function(){var L=Ui(rr().mark(function W(j){var H,X,Q;return rr().wrap(function(ee){for(;;)switch(ee.prev=ee.next){case 0:return H=l==null?void 0:l(j),c&&H instanceof Promise&&(E(!0),X=setTimeout(function(){return E(!1)},c),H.finally(function(){clearTimeout(X),E(!1)})),ee.next=4,H;case 4:return Q=ee.sent,Q&&T(!1),ee.abrupt("return",Q);case 7:case"end":return ee.stop()}},W)}));return function(W){return L.apply(this,arguments)}}(),[l,T,c]),G=k2(O);return F.jsxs(F.Fragment,{children:[F.jsx(Qo,z(z(z({title:u,width:d||800},s),G),{},{onCancel:function(W){var j;c&&x||(T(!1),s==null||(j=s.onCancel)===null||j===void 0||j.call(s,W))},afterClose:function(){var W;D(),O&&T(!1),s==null||(W=s.afterClose)===null||W===void 0||W.call(s)},footer:m.submitter!==!1?F.jsx("div",{ref:I,style:{display:"flex",justifyContent:"flex-end"}}):null,children:F.jsx($Re,z(z({formComponentType:"ModalForm",layout:"vertical"},m),{},{onInit:function(W,j){var H;m.formRef&&(m.formRef.current=j),m==null||(H=m.onInit)===null||H===void 0||H.call(m,W,j),N.current=j},formRef:N,submitter:k,onFinish:function(){var L=Ui(rr().mark(function W(j){var H;return rr().wrap(function(Q){for(;;)switch(Q.prev=Q.next){case 0:return Q.next=2,B(j);case 2:return H=Q.sent,Q.abrupt("return",H);case 4:case"end":return Q.stop()}},W)}));return function(W){return L.apply(this,arguments)}}(),contentRender:P,children:r}))})),M]})}var zHt=["fieldProps","children","params","proFieldProps","mode","valueEnum","request","showSearch","options"],VHt=["fieldProps","children","params","proFieldProps","mode","valueEnum","request","options"],GHt=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=kt(t,zHt),p=h.useContext(Ov);return F.jsx(Md,z(z({valueEnum:q1(l),request:c,params:o,valueType:"select",filedConfig:{customLightMode:!0},fieldProps:z({options:d,mode:s,showSearch:u,getPopupContainer:p.getPopupContainer},r),ref:n,proFieldProps:a},f),{},{children:i}))},WHt=pe.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=kt(e,VHt),d=z({options:c,mode:a||"multiple",labelInValue:!0,showSearch:!0,suffixIcon:null,autoClearSearchValue:!0,optionLabelProp:"label"},n),f=h.useContext(Ov);return F.jsx(Md,z(z({valueEnum:q1(s),request:l,params:i,valueType:"select",filedConfig:{customLightMode:!0},fieldProps:z({getPopupContainer:f.getPopupContainer},d),ref:t,proFieldProps:o},u),{},{children:r}))}),qHt=pe.forwardRef(GHt),YHt=WHt,q2=qHt;q2.SearchSelect=YHt;q2.displayName="ProFormComponent";var KHt=function(t){var n=Lo(),r=ui.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,p=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(h.createElement(Dn,z(z({},ur(u??{},["preventDefault"])),{},{key:"rest",onClick:function(E){var C;u!=null&&u.preventDefault||m(),u==null||(C=u.onClick)===null||C===void 0||C.call(u,E)}}),b)),c!==!1&&_.push(h.createElement(Dn,z(z({type:"primary"},ur(c||{},["preventDefault"])),{},{key:"submit",onClick:function(E){var C;c!=null&&c.preventDefault||p(),c==null||(C=c.onClick)===null||C===void 0||C.call(c,E)}}),v));var S=o?o(z(z({},t),{},{form:r,submit:p,reset:m}),_):_;return S?Array.isArray(S)?(S==null?void 0:S.length)<1?null:(S==null?void 0:S.length)===1?S[0]:F.jsx("div",{style:{display:"flex",gap:f.marginXS,alignItems:"center"},children:S}):S:null},QHt=["fieldProps","unCheckedChildren","checkedChildren","proFieldProps"],rU=pe.forwardRef(function(e,t){var n=e.fieldProps,r=e.unCheckedChildren,i=e.checkedChildren,o=e.proFieldProps,a=kt(e,QHt);return F.jsx(Md,z({valueType:"switch",fieldProps:z({unCheckedChildren:r,checkedChildren:i},n),ref:t,valuePropName:"checked",proFieldProps:o,filedConfig:{valuePropName:"checked",ignoreWidth:!0,customLightMode:!0}},a))}),XHt=["fieldProps","proFieldProps"],ZHt=["fieldProps","proFieldProps"],EM="text",JHt=function(t){var n=t.fieldProps,r=t.proFieldProps,i=kt(t,XHt);return F.jsx(Md,z({valueType:EM,fieldProps:n,filedConfig:{valueType:EM},proFieldProps:r},i))},ejt=function(t){var n=Pn(t.open||!1,{value:t.open,onChange:t.onOpenChange}),r=Re(n,2),i=r[0],o=r[1];return F.jsx(ui.Item,{shouldUpdate:!0,noStyle:!0,children:function(s){var l,c=s.getFieldValue(t.name||[]);return F.jsx(bu,z(z({getPopupContainer:function(d){return d&&d.parentNode?d.parentNode:d},onOpenChange:function(d){return o(d)},content:F.jsxs("div",{style:{padding:"4px 0"},children:[(l=t.statusRender)===null||l===void 0?void 0:l.call(t,c),t.strengthText?F.jsx("div",{style:{marginTop:10},children:F.jsx("span",{children:t.strengthText})}):null]}),overlayStyle:{width:240},placement:"rightTop"},t.popoverProps),{},{open:i,children:t.children}))}})},tjt=function(t){var n=t.fieldProps,r=t.proFieldProps,i=kt(t,ZHt),o=h.useState(!1),a=Re(o,2),s=a[0],l=a[1];return n!=null&&n.statusRender&&i.name?F.jsx(ejt,{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:F.jsx("div",{children:F.jsx(Md,z({valueType:"password",fieldProps:z(z({},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:EM}},i))})}):F.jsx(Md,z({valueType:"password",fieldProps:n,proFieldProps:r,filedConfig:{valueType:EM}},i))},di=JHt;di.Password=tjt;di.displayName="ProFormComponent";var njt=["fieldProps","proFieldProps"],rjt=function(t,n){var r=t.fieldProps,i=t.proFieldProps,o=kt(t,njt);return F.jsx(Md,z({ref:n,valueType:"textarea",fieldProps:r,proFieldProps:i},o))};const qS=pe.forwardRef(rjt);var ijt=["children","contentRender","submitter","fieldProps","formItemProps","groupProps","transformKey","formRef","onInit","form","loading","formComponentType","extraUrlParams","syncToUrl","onUrlSearchChange","onReset","omitNil","isKeyPressSubmit","autoFocusFirstInput","grid","rowProps","colProps"],ojt=["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"],BI=function(t,n,r){return t===!0?n:q1(t,n,r)},Jle=function(t){return!t||Array.isArray(t)?t:[t]};function ajt(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,p=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,S=e.rowProps,x=e.colProps,E=kt(e,ijt),C=ui.useFormInstance(),w=(Ln==null||(t=Ln.useConfig)===null||t===void 0?void 0:t.call(Ln))||{componentSize:"middle"},O=w.componentSize,T=h.useRef(l||C),A=OK({grid:_,rowProps:S}),I=A.RowWrapper,N=gd(function(){return C}),D=h.useMemo(function(){return{getFieldsFormatValue:function(W){var j;return o((j=N())===null||j===void 0?void 0:j.getFieldsValue(W),v)},getFieldFormatValue:function(){var W,j=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],H=Jle(j);if(!H)throw new Error("nameList is require");var X=(W=N())===null||W===void 0?void 0:W.getFieldValue(H),Q=H?ta({},H,X):X,ue=rt(H);return ue.shift(),No(o(Q,v,ue),H)},getFieldFormatValueObject:function(W){var j,H=Jle(W),X=(j=N())===null||j===void 0?void 0:j.getFieldValue(H),Q=H?ta({},H,X):X;return o(Q,v,H)},validateFieldsReturnFormatValue:function(){var L=Ui(rr().mark(function j(H){var X,Q,ue;return rr().wrap(function(K){for(;;)switch(K.prev=K.next){case 0:if(!(!Array.isArray(H)&&H)){K.next=2;break}throw new Error("nameList must be array");case 2:return K.next=4,(X=N())===null||X===void 0?void 0:X.validateFields(H);case 4:return Q=K.sent,ue=o(Q,v),K.abrupt("return",ue||{});case 7:case"end":return K.stop()}},j)}));function W(j){return L.apply(this,arguments)}return W}()}},[v,o]),M=h.useMemo(function(){return pe.Children.toArray(n).map(function(L,W){return W===0&&pe.isValidElement(L)&&b?pe.cloneElement(L,z(z({},L.props),{},{autoFocus:b})):L})},[b,n]),k=h.useMemo(function(){return typeof i=="boolean"||!i?{}:i},[i]),P=h.useMemo(function(){if(i!==!1)return F.jsx(KHt,z(z({},k),{},{onReset:function(){var W,j,H=o((W=T.current)===null||W===void 0?void 0:W.getFieldsValue(),v);if(k==null||(j=k.onReset)===null||j===void 0||j.call(k,H),m==null||m(H),f){var X,Q=Object.keys(o((X=T.current)===null||X===void 0?void 0:X.getFieldsValue(),!1)).reduce(function(ue,ee){return z(z({},ue),{},te({},ee,H[ee]||void 0))},d);p(BI(f,Q||{},"set"))}},submitButtonProps:z({loading:c},k.submitButtonProps)}),"submitter")},[i,k,c,o,v,m,f,d,p]),B=h.useMemo(function(){var L=_?F.jsx(I,{children:M}):M;return r?r(L,P,T.current):L},[_,I,M,r,P]),G=hTt(e.initialValues);return h.useEffect(function(){if(!(f||!e.initialValues||!G||E.request)){var L=f1(e.initialValues,G);Cw(L,"initialValues 只在 form 初始化时生效,如果你需要异步加载推荐使用 request或者 initialValues ? <Form/> : null "),Cw(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]),h.useImperativeHandle(a,function(){return z(z({},T.current),D)},[D,T.current]),h.useEffect(function(){var L,W,j=o((L=T.current)===null||L===void 0||(W=L.getFieldsValue)===null||W===void 0?void 0:W.call(L,!0),v);s==null||s(j,z(z({},T.current),D))},[]),F.jsx(J2e.Provider,{value:z(z({},D),{},{formRef:T}),children:F.jsx(Ln,{componentSize:E.size||O,children:F.jsxs(xOe.Provider,{value:{grid:_,colProps:x},children:[E.component!==!1&&F.jsx("input",{type:"text",style:{display:"none"}}),B]})})})}var ece=0;function $Re(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,p=e.dateFormatter,m=p===void 0?"string":p,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,S=e.request,x=e.params,E=e.initialValues,C=e.formKey,w=C===void 0?ece:C;e.readonly;var O=e.onLoadingChange,T=e.loading,A=kt(e,ojt),I=h.useRef({}),N=Pn(!1,{onChange:O,value:T}),D=Re(N,2),M=D[0],k=D[1],P=sRt({},{disabled:!r}),B=Re(P,2),G=B[0],L=B[1],W=h.useRef(sM());h.useEffect(function(){ece+=0},[]);var j=pTt({request:S,params:x,proFieldKey:w}),H=Re(j,1),X=H[0],Q=h.useContext(Ln.ConfigContext),ue=Q.getPrefixCls,ee=ue("pro-form"),K=Gi("ProForm",function(de){return te({},".".concat(ee),te({},"> div:not(".concat(de.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}}}))}),se=K.wrapSSR,le=K.hashId,oe=h.useState(function(){return r?BI(r,G,"get"):{}}),ne=Re(oe,2),he=ne[0],me=ne[1],ce=h.useRef({}),re=h.useRef({}),ve=gd(function(de,Ee,Ne){return rRt(oTt(de,m,re.current,Ee,Ne),ce.current,Ee)});h.useEffect(function(){l||me({})},[l]);var be=gd(function(){return z(z({},G),n)});h.useEffect(function(){r&&L(BI(r,be(),"set"))},[n,be,r]);var xe=h.useMemo(function(){if(!(typeof window>"u")&&y&&["DrawerForm"].includes(y))return function(de){return de.parentNode||document.body}},[y]),we=gd(Ui(rr().mark(function de(){var Ee,Ne,Te,Ve,q,U,Y;return rr().wrap(function(ye){for(;;)switch(ye.prev=ye.next){case 0:if(A.onFinish){ye.next=2;break}return ye.abrupt("return");case 2:if(!M){ye.next=4;break}return ye.abrupt("return");case 4:return ye.prev=4,Te=I==null||(Ee=I.current)===null||Ee===void 0||(Ne=Ee.getFieldsFormatValue)===null||Ne===void 0?void 0:Ne.call(Ee),Ve=A.onFinish(Te),Ve instanceof Promise&&k(!0),ye.next=10,Ve;case 10:r&&(Y=Object.keys(I==null||(q=I.current)===null||q===void 0||(U=q.getFieldsFormatValue)===null||U===void 0?void 0:U.call(q,void 0,!1)).reduce(function(fe,Ae){var We;return z(z({},fe),{},te({},Ae,(We=Te[Ae])!==null&&We!==void 0?We:void 0))},n),Object.keys(G).forEach(function(fe){Y[fe]!==!1&&Y[fe]!==0&&!Y[fe]&&(Y[fe]=void 0)}),L(BI(r,Y,"set"))),k(!1),ye.next=18;break;case 14:ye.prev=14,ye.t0=ye.catch(4),console.log(ye.t0),k(!1);case 18:case"end":return ye.stop()}},de,null,[[4,14]])})));return h.useImperativeHandle(g,function(){return I.current},[!X]),!X&&e.request?F.jsx("div",{style:{paddingTop:50,paddingBottom:50,textAlign:"center"},children:F.jsx(Nc,{})}):se(F.jsx(WK.Provider,{value:{mode:e.readonly?"read":"edit"},children:F.jsx(CD,{needDeps:!0,children:F.jsx(Ov.Provider,{value:{formRef:I,fieldProps:c,proFieldProps:u,formItemProps:d,groupProps:f,formComponentType:y,getPopupContainer:xe,formKey:W.current,setFieldValueType:function(Ee,Ne){var Te=Ne.valueType,Ve=Te===void 0?"text":Te,q=Ne.dateFormat,U=Ne.transform;Array.isArray(Ee)&&(ce.current=ta(ce.current,Ee,U),re.current=ta(re.current,Ee,{valueType:Ve,dateFormat:q}))}},children:F.jsx(YK.Provider,{value:{},children:F.jsx(ui,z(z({onKeyPress:function(Ee){if(i&&Ee.key==="Enter"){var Ne;(Ne=I.current)===null||Ne===void 0||Ne.submit()}},autoComplete:"off",form:v},ur(A,["ref","labelWidth","autoFocusFirstInput"])),{},{ref:function(Ee){I.current&&(I.current.nativeElement=Ee==null?void 0:Ee.nativeElement)},initialValues:a?z(z(z({},E),X),he):z(z(z({},he),E),X),onValuesChange:function(Ee,Ne){var Te;A==null||(Te=A.onValuesChange)===null||Te===void 0||Te.call(A,ve(Ee,!!_),ve(Ne,!!_))},className:Ce(e.className,ee,le),onFinish:we,children:F.jsx(ajt,z(z({transformKey:ve,autoComplete:"off",loading:M,onUrlSearchChange:L},e),{},{formRef:I,initialValues:z(z({},E),X)}))}))})})})}))}var sjt=function(t){return te(te({},"".concat(t.componentCls,"-collapse-label"),{paddingInline:1,paddingBlock:1}),"".concat(t.componentCls,"-container"),te({},"".concat(t.antCls,"-form-item"),{marginBlockEnd:0}))};function ljt(e){return Gi("LightWrapper",function(t){var n=z(z({},t),{},{componentCls:".".concat(e)});return[sjt(n)]})}var cjt=["label","size","disabled","onChange","className","style","children","valuePropName","placeholder","labelFormatter","bordered","footerRender","allowClear","otherFieldProps","valueType","placement"],ujt=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,p=t.footerRender,m=t.allowClear,g=t.otherFieldProps,v=t.valueType,y=t.placement,b=kt(t,cjt),_=h.useContext(Ln.ConfigContext),S=_.getPrefixCls,x=S("pro-field-light-wrapper"),E=ljt(x),C=E.wrapSSR,w=E.hashId,O=h.useState(t[c]),T=Re(O,2),A=T[0],I=T[1],N=Pn(!1),D=Re(N,2),M=D[0],k=D[1],P=function(){for(var W,j=arguments.length,H=new Array(j),X=0;X<j;X++)H[X]=arguments[X];g==null||(W=g.onChange)===null||W===void 0||W.call.apply(W,[g].concat(H)),o==null||o.apply(void 0,H)},B=t[c],G=h.useMemo(function(){var L;return B&&(v!=null&&(L=v.toLowerCase())!==null&&L!==void 0&&L.endsWith("range")&&v!=="digitRange"&&!d?nOe(B,tOe[v]||"YYYY-MM-DD"):Array.isArray(B)?B.map(function(W){return qt(W)==="object"&&W.label&&W.value?W.label:W}):B)},[B,v,d]);return C(F.jsx(Zwt,{disabled:i,open:M,onOpenChange:k,placement:y,label:F.jsx(Ch,{ellipsis:!0,size:r,onClear:function(){P==null||P(),I(null)},bordered:f,style:s,className:a,label:n,placeholder:u,value:G,disabled:i,formatter:d,allowClear:m}),footer:{onClear:function(){return I(null)},onConfirm:function(){P==null||P(A),k(!1)}},footerRender:p,children:F.jsx("div",{className:Ce("".concat(x,"-container"),w,a),style:s,children:pe.cloneElement(l,z(z({},b),{},te(te({},c,A),"onChange",function(W){I(W!=null&&W.target?W.target.value:W)}),l.props))})}))};function Dr(e){return F.jsx($Re,z({layout:"vertical",contentRender:function(n,r){return F.jsxs(F.Fragment,{children:[n,r]})}},e))}Dr.Group=DRe;Dr.useForm=ui.useForm;Dr.Item=PRe;Dr.useWatch=ui.useWatch;Dr.ErrorList=ui.ErrorList;Dr.Provider=ui.Provider;Dr.useFormInstance=ui.useFormInstance;Dr.EditOrReadOnlyContext=WK;var djt=function(t){return te(te({},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)",te({},"".concat(t.componentCls,"-container"),{paddingInline:0,paddingBlockStart:32,paddingBlockEnd:24,backgroundRepeat:"no-repeat",backgroundPosition:"center 110px",backgroundSize:"100%"}))};function fjt(e){return Gi("LoginForm",function(t){var n=z(z({},t),{},{componentCls:".".concat(e)});return[djt(n)]})}var pjt=["logo","message","contentStyle","title","subTitle","actions","children","containerStyle","otherStyle"];function FRe(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=kt(e,pjt),f=Lo(),p=d.submitter===!1?!1:z(z({searchConfig:{submitText:f.getMessage("loginForm.submitText","登录")}},d.submitter),{},{submitButtonProps:z({size:"large",style:{width:"100%"}},(t=d.submitter)===null||t===void 0?void 0:t.submitButtonProps),render:function(E,C){var w,O=C.pop();if(typeof(d==null||(w=d.submitter)===null||w===void 0?void 0:w.render)=="function"){var T,A;return d==null||(T=d.submitter)===null||T===void 0||(A=T.render)===null||A===void 0?void 0:A.call(T,E,C)}return O}}),m=h.useContext(Ln.ConfigContext),g=m.getPrefixCls("pro-form-login"),v=fjt(g),y=v.wrapSSR,b=v.hashId,_=function(E){return"".concat(g,"-").concat(E," ").concat(b)},S=h.useMemo(function(){return n?typeof n=="string"?F.jsx("img",{src:n}):n:null},[n]);return y(F.jsxs("div",{className:Ce(_("container"),b),style:c,children:[F.jsxs("div",{className:"".concat(_("top")," ").concat(b).trim(),children:[o||S?F.jsxs("div",{className:"".concat(_("header")),children:[S?F.jsx("span",{className:_("logo"),children:S}):null,o?F.jsx("span",{className:_("title"),children:o}):null]}):null,a?F.jsx("div",{className:_("desc"),children:a}):null]}),F.jsxs("div",{className:_("main"),style:z({width:328},i),children:[F.jsxs(Dr,z(z({isKeyPressSubmit:!0},d),{},{submitter:p,children:[r,l]})),s?F.jsx("div",{className:_("main-other"),style:u,children:s}):null]})]}))}var tce=h.createContext({}),BRe={exports:{}};(function(e){var t=uv.default;function n(r,i){if(typeof WeakMap=="function")var o=new WeakMap,a=new WeakMap;return(e.exports=n=function(l,c){if(!c&&l&&l.__esModule)return l;var u,d,f={__proto__:null,default:l};if(l===null||t(l)!="object"&&typeof l!="function")return f;if(u=c?a:o){if(u.has(l))return u.get(l);u.set(l,f)}for(var p in l)p!=="default"&&{}.hasOwnProperty.call(l,p)&&((d=(u=Object.defineProperty)&&Object.getOwnPropertyDescriptor(l,p))&&(d.get||d.set)?u(f,p,d):f[p]=l[p]);return f},e.exports.__esModule=!0,e.exports.default=e.exports)(r,i)}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports})(BRe);var sa=BRe.exports,HRe={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})(HRe);var UD=HRe.exports,YS={},jRe={exports:{}},URe={exports:{}};(function(e){function t(n){if(Array.isArray(n))return n}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(URe);var zRe=URe.exports,VRe={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})(VRe);var hjt=VRe.exports,GRe={exports:{}},WRe={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})(WRe);var qRe=WRe.exports;(function(e){var t=qRe;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})(GRe);var KK=GRe.exports,YRe={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})(YRe);var KRe=YRe.exports;(function(e){var t=zRe,n=hjt,r=KK,i=KRe;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})(jRe);var QRe=jRe.exports,XRe={exports:{}},ZRe={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.indexOf(o)!==-1)continue;i[o]=n[o]}return i}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(ZRe);var mjt=ZRe.exports;(function(e){var t=mjt;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.indexOf(o)===-1&&{}.propertyIsEnumerable.call(r,o)&&(s[o]=r[o])}return s}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports})(XRe);var JRe=XRe.exports;const Y2=J_(sYe);var KS={};Object.defineProperty(KS,"__esModule",{value:!0});KS.default=void 0;var gjt=h,vjt=(0,gjt.createContext)({});KS.default=vjt;var K2={},Ds={},Iv={},zD={};Object.defineProperty(zD,"__esModule",{value:!0});zD.default=bjt;function bjt(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}var QK={};Object.defineProperty(QK,"__esModule",{value:!0});QK.default=yjt;function yjt(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 XK=wr.default;Object.defineProperty(Iv,"__esModule",{value:!0});Iv.clearContainerCache=Tjt;Iv.injectCSS=JK;Iv.removeCSS=xjt;Iv.updateCSS=Ojt;var nce=XK(dv),_jt=XK(zD),Sjt=XK(QK),rce="data-rc-order",ice="data-rc-priority",Ejt="rc-util-key",CM=new Map;function eAe(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.mark;return t?t.startsWith("data-")?t:"data-".concat(t):Ejt}function VD(e){if(e.attachTo)return e.attachTo;var t=document.querySelector("head");return t||document.body}function Cjt(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function ZK(e){return Array.from((CM.get(e)||e).children).filter(function(t){return t.tagName==="STYLE"})}function JK(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!(0,_jt.default)())return null;var n=t.csp,r=t.prepend,i=t.priority,o=i===void 0?0:i,a=Cjt(r),s=a==="prependQueue",l=document.createElement("style");l.setAttribute(rce,a),s&&o&&l.setAttribute(ice,"".concat(o)),n!=null&&n.nonce&&(l.nonce=n==null?void 0:n.nonce),l.innerHTML=e;var c=VD(t),u=c.firstChild;if(r){if(s){var d=(t.styles||ZK(c)).filter(function(f){if(!["prepend","prependQueue"].includes(f.getAttribute(rce)))return!1;var p=Number(f.getAttribute(ice)||0);return o>=p});if(d.length)return c.insertBefore(l,d[d.length-1].nextSibling),l}c.insertBefore(l,u)}else c.appendChild(l);return l}function tAe(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=VD(t);return(t.styles||ZK(n)).find(function(r){return r.getAttribute(eAe(t))===e})}function xjt(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=tAe(e,t);if(n){var r=VD(t);r.removeChild(n)}}function wjt(e,t){var n=CM.get(e);if(!n||!(0,Sjt.default)(document,n)){var r=JK("",t),i=r.parentNode;CM.set(e,i),e.removeChild(r)}}function Tjt(){CM.clear()}function Ojt(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=VD(n),i=ZK(r),o=(0,nce.default)((0,nce.default)({},n),{},{styles:i});wjt(r,o);var a=tAe(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=JK(e,o);return u.setAttribute(eAe(o),t),u}var GD={};Object.defineProperty(GD,"__esModule",{value:!0});GD.getShadowRoot=Rjt;GD.inShadow=rAe;function nAe(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}function rAe(e){return nAe(e)instanceof ShadowRoot}function Rjt(e){return rAe(e)?nAe(e):null}var zl={};Object.defineProperty(zl,"__esModule",{value:!0});zl.call=eQ;zl.default=void 0;zl.note=oAe;zl.noteOnce=sAe;zl.preMessage=void 0;zl.resetWarned=aAe;zl.warning=iAe;zl.warningOnce=Q2;var iU={},Ajt=zl.preMessage=function(t){};function iAe(e,t){}function oAe(e,t){}function aAe(){iU={}}function eQ(e,t,n){!t&&!iU[n]&&(e(!1,n),iU[n]=!0)}function Q2(e,t){eQ(iAe,e,t)}function sAe(e,t){eQ(oAe,e,t)}Q2.preMessage=Ajt;Q2.resetWarned=aAe;Q2.noteOnce=sAe;zl.default=Q2;var Ijt=sa.default,WD=wr.default;Object.defineProperty(Ds,"__esModule",{value:!0});Ds.generate=aU;Ds.getSecondaryColor=Bjt;Ds.iconStyles=void 0;Ds.isIconDefinition=Fjt;Ds.normalizeAttrs=oU;Ds.normalizeTwoToneColors=Hjt;Ds.useInsertStyles=Ds.svgBaseProps=void 0;Ds.warning=$jt;var d$=WD(dv),oce=WD(uv),Njt=Y2,Mjt=Iv,kjt=GD,Pjt=WD(zl),xM=Ijt(h),Djt=WD(KS);function Ljt(e){return e.replace(/-(.)/g,function(t,n){return n.toUpperCase()})}function $jt(e,t){(0,Pjt.default)(e,"[@ant-design/icons] ".concat(t))}function Fjt(e){return(0,oce.default)(e)==="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&((0,oce.default)(e.icon)==="object"||typeof e.icon=="function")}function oU(){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[Ljt(n)]=r}return t},{})}function aU(e,t,n){return n?xM.default.createElement(e.tag,(0,d$.default)((0,d$.default)({key:t},oU(e.attrs)),n),(e.children||[]).map(function(r,i){return aU(r,"".concat(t,"-").concat(e.tag,"-").concat(i))})):xM.default.createElement(e.tag,(0,d$.default)({key:t},oU(e.attrs)),(e.children||[]).map(function(r,i){return aU(r,"".concat(t,"-").concat(e.tag,"-").concat(i))}))}function Bjt(e){return(0,Njt.generate)(e)[0]}function Hjt(e){return e?Array.isArray(e)?e:[e]:[]}Ds.svgBaseProps={width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",focusable:"false"};var jjt=Ds.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);
}
}
`;Ds.useInsertStyles=function(t){var n=(0,xM.useContext)(Djt.default),r=n.csp,i=n.prefixCls,o=n.layer,a=jjt;i&&(a=a.replace(/anticon/g,i)),o&&(a="@layer ".concat(o,` {
`).concat(a,`
}`)),(0,xM.useEffect)(function(){var s=t.current,l=(0,kjt.getShadowRoot)(s);(0,Mjt.updateCSS)(a,"@ant-design-icons",{prepend:!o,csp:r,attachTo:l})},[])};var lAe=wr.default,Ujt=sa.default;Object.defineProperty(K2,"__esModule",{value:!0});K2.default=void 0;var zjt=lAe(JRe),kC=lAe(dv),Vjt=Ujt(h),v0=Ds,Gjt=["icon","className","onClick","style","primaryColor","secondaryColor"],gx={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function Wjt(e){var t=e.primaryColor,n=e.secondaryColor;gx.primaryColor=t,gx.secondaryColor=n||(0,v0.getSecondaryColor)(t),gx.calculated=!!n}function qjt(){return(0,kC.default)({},gx)}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,zjt.default)(t,Gjt),c=Vjt.useRef(),u=gx;if(a&&(u={primaryColor:a,secondaryColor:s||(0,v0.getSecondaryColor)(a)}),(0,v0.useInsertStyles)(c),(0,v0.warning)((0,v0.isIconDefinition)(n),"icon should be icon definiton, but got ".concat(n)),!(0,v0.isIconDefinition)(n))return null;var d=n;return d&&typeof d.icon=="function"&&(d=(0,kC.default)((0,kC.default)({},d),{},{icon:d.icon(u.primaryColor,u.secondaryColor)})),(0,v0.generate)(d.icon,"svg-".concat(d.name),(0,kC.default)((0,kC.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=qjt;qD.setTwoToneColors=Wjt;K2.default=qD;var YD={},cAe=wr.default;Object.defineProperty(YD,"__esModule",{value:!0});YD.getTwoToneColor=Xjt;YD.setTwoToneColor=Qjt;var Yjt=cAe(QRe),uAe=cAe(K2),Kjt=Ds;function Qjt(e){var t=(0,Kjt.normalizeTwoToneColors)(e),n=(0,Yjt.default)(t,2),r=n[0],i=n[1];return uAe.default.setTwoToneColors({primaryColor:r,secondaryColor:i})}function Xjt(){var e=uAe.default.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}var Nv=wr.default,Zjt=sa.default;Object.defineProperty(YS,"__esModule",{value:!0});YS.default=void 0;var Jjt=Nv(UD),eUt=Nv(QRe),ace=Nv(Hve),tUt=Nv(JRe),GR=Zjt(h),nUt=Nv(K5),rUt=Y2,iUt=Nv(KS),oUt=Nv(K2),tQ=YD,aUt=Ds,sUt=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];(0,tQ.setTwoToneColor)(rUt.blue.primary);var KD=GR.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,tUt.default)(e,sUt),u=GR.useContext(iUt.default),d=u.prefixCls,f=d===void 0?"anticon":d,p=u.rootClassName,m=(0,nUt.default)(p,f,(0,ace.default)((0,ace.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,aUt.normalizeTwoToneColors)(l),b=(0,eUt.default)(y,2),_=b[0],S=b[1];return GR.createElement("span",(0,Jjt.default)({role:"img","aria-label":r.name},c,{ref:t,tabIndex:g,onClick:s,className:m}),GR.createElement(oUt.default,{icon:r,primaryColor:_,secondaryColor:S,style:v}))});KD.displayName="AntdIcon";KD.getTwoToneColor=tQ.getTwoToneColor;KD.setTwoToneColor=tQ.setTwoToneColor;YS.default=KD;var lUt=["isLoading","pastDelay","timedOut","error","retry"],cUt=function(t){t.isLoading,t.pastDelay,t.timedOut,t.error,t.retry;var n=kt(t,lUt);return F.jsx("div",{style:{paddingBlockStart:100,textAlign:"center"},children:F.jsx(Nc,z({size:"large"},n))})},uUt=function(t){return te({},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 dUt(e){return Gi("ProLayoutFooter",function(t){var n=z(z({},t),{},{componentCls:".".concat(e)});return[uUt(n)]})}var fUt=function(t){var n=t.className,r=t.prefixCls,i=t.links,o=t.copyright,a=t.style,s=h.useContext(Ln.ConfigContext),l=s.getPrefixCls(r||"pro-global-footer"),c=dUt(l),u=c.wrapSSR,d=c.hashId;return(i==null||i===!1||Array.isArray(i)&&i.length===0)&&(o==null||o===!1)?null:u(F.jsxs("div",{className:Ce(l,d,n),style:a,children:[i&&F.jsx("div",{className:"".concat(l,"-list ").concat(d).trim(),children:i.map(function(f){return F.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&&F.jsx("div",{className:"".concat(l,"-copyright ").concat(d).trim(),children:o})]}))},pUt=po.Footer,hUt=function(t){var n=t.links,r=t.copyright,i=t.style,o=t.className,a=t.prefixCls;return F.jsx(pUt,{className:o,style:z({padding:0},i),children:F.jsx(fUt,{links:n,prefixCls:a,copyright:r===!1?null:F.jsxs(h.Fragment,{children:[F.jsx(cgt,{})," ",r]})})})},sce=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 QD(e){return e.map(function(t){var n=t.children||[],r=z({},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 z(z({},t),{},{children:QD(n)});delete r.children}return delete r.routes,r}).filter(function(t){return t})}var mUt=function(){return F.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 12 12",fill:"currentColor","aria-hidden":"true",children:F.jsx("path",{d:"M0 0h3v3H0V0zm4.5 0h3v3h-3V0zM9 0h3v3H9V0zM0 4.5h3v3H0v-3zm4.503 0h3v3h-3v-3zM9 4.5h3v3H9v-3zM0 9h3v3H0V9zm4.503 0h3v3h-3V9zM9 9h3v3H9V9z"})})},gUt=function e(t){var n=t.appList,r=t.baseClassName,i=t.hashId,o=t.itemClick;return F.jsx("div",{className:"".concat(r,"-content ").concat(i).trim(),children:F.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?F.jsxs("div",{className:"".concat(r,"-content-list-item-group ").concat(i).trim(),children:[F.jsx("div",{className:"".concat(r,"-content-list-item-group-title ").concat(i).trim(),children:a.title}),F.jsx(e,{hashId:i,itemClick:o,appList:a==null?void 0:a.children,baseClassName:r})]},s):F.jsx("li",{className:"".concat(r,"-content-list-item ").concat(i).trim(),onClick:function(u){u.stopPropagation(),o==null||o(a)},children:F.jsxs("a",{href:o?void 0:a.url,target:a.target,rel:"noreferrer",children:[nQ(a.icon),F.jsxs("div",{children:[F.jsx("div",{children:a.title}),a.desc?F.jsx("span",{children:a.desc}):null]})]})},s)})})})},vUt=function(t,n){if(t&&typeof t=="string"&&EK(t))return F.jsx("img",{src:t,alt:"logo"});if(typeof t=="function")return t();if(t&&typeof t=="string")return F.jsx("div",{id:"avatarLogo",children:t});if(!t&&n&&typeof n=="string"){var r=n.substring(0,1);return F.jsx("div",{id:"avatarLogo",children:r})}return t},bUt=function e(t){var n=t.appList,r=t.baseClassName,i=t.hashId,o=t.itemClick;return F.jsx("div",{className:"".concat(r,"-content ").concat(i).trim(),children:F.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?F.jsxs("div",{className:"".concat(r,"-content-list-item-group ").concat(i).trim(),children:[F.jsx("div",{className:"".concat(r,"-content-list-item-group-title ").concat(i).trim(),children:a.title}),F.jsx(e,{hashId:i,itemClick:o,appList:a==null?void 0:a.children,baseClassName:r})]},s):F.jsx("li",{className:"".concat(r,"-content-list-item ").concat(i).trim(),onClick:function(u){u.stopPropagation(),o==null||o(a)},children:F.jsxs("a",{href:o?"javascript:;":a.url,target:a.target,rel:"noreferrer",children:[vUt(a.icon,a.title),F.jsx("div",{children:F.jsx("div",{children:a.title})})]})},s)})})})},yUt=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":JL==null?void 0:JL(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"}}}}}}},_Ut=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"}}}}}}},SUt=function(t){var n,r,i,o,a;return te({},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":te({},"".concat(t.antCls,"-popover-arrow"),{display:"none"}),"&-simple":_Ut(t),"&-default":yUt(t)})};function EUt(e){return Gi("AppsLogoComponents",function(t){var n=z(z({},t),{},{componentCls:".".concat(e)});return[SUt(n)]})}var nQ=function(t){return typeof t=="string"?F.jsx("img",{width:"auto",height:22,src:t,alt:"logo"}):typeof t=="function"?t():t},rQ=function(t){var n,r=t.appList,i=t.appListRender,o=t.prefixCls,a=o===void 0?"ant-pro":o,s=t.onItemClick,l=pe.useRef(null),c=pe.useRef(null),u="".concat(a,"-layout-apps"),d=EUt(u),f=d.wrapSSR,p=d.hashId,m=h.useState(!1),g=Re(m,2),v=g[0],y=g[1],b=function(C){s==null||s(C,c)},_=h.useMemo(function(){var E=r==null?void 0:r.some(function(C){return!(C!=null&&C.desc)});return E?F.jsx(bUt,{hashId:p,appList:r,itemClick:s?b:void 0,baseClassName:"".concat(u,"-simple")}):F.jsx(gUt,{hashId:p,appList:r,itemClick:s?b:void 0,baseClassName:"".concat(u,"-default")})},[r,u,p]);if(!(t!=null&&(n=t.appList)!==null&&n!==void 0&&n.length))return null;var S=i?i(t==null?void 0:t.appList,_):_,x=k2(void 0,function(E){return y(E)});return f(F.jsxs(F.Fragment,{children:[F.jsx("div",{ref:l,onClick:function(C){C.stopPropagation(),C.preventDefault()}}),F.jsx(bu,z(z({placement:"bottomRight",trigger:["click"],zIndex:9999,arrow:!1},x),{},{overlayClassName:"".concat(u,"-popover ").concat(p).trim(),content:S,getPopupContainer:function(){return l.current||document.body},children:F.jsx("span",{ref:c,onClick:function(C){C.stopPropagation()},className:Ce("".concat(u,"-icon"),p,te({},"".concat(u,"-icon-active"),v)),children:F.jsx(mUt,{})})}))]}))};function CUt(){return F.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 12 12",fill:"currentColor","aria-hidden":"true",children:F.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 xUt=function(t){var n,r,i;return te({},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 wUt(e){return Gi("SiderMenuCollapsedIcon",function(t){var n=z(z({},t),{},{componentCls:".".concat(e)});return[xUt(n)]})}var TUt=["isMobile","collapsed"],OUt=function(t){var n=t.isMobile,r=t.collapsed,i=kt(t,TUt),o=wUt(t.className),a=o.wrapSSR,s=o.hashId;return n&&r?null:a(F.jsx("div",z(z({},i),{},{className:Ce(t.className,s,te(te({},"".concat(t.className,"-collapsed"),r),"".concat(t.className,"-is-mobile"),n)),children:F.jsx(CUt,{})})))},dAe={navTheme:"light",layout:"side",contentWidth:"Fluid",fixedHeader:!1,fixSiderbar:!0,iconfontUrl:"",colorPrimary:"#1677FF",splitMenus:!1},RUt=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 z(z(te({},"".concat(t.componentCls),te(te(te(te(te(te(te(te(te({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"),te({},"> ".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",te(te(te({},"".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"),te({},"".concat(t.antCls,"-menu-item-group-title"),{paddingInline:0}))),"&-item-title",te(te(te(te(te({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",te(te({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"),te({lineHeight:"16px",gap:0},"&".concat(t.componentCls,"-item-title-collapsed"),te(te({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",te({},"".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")?{}:te({},"".concat(t.antCls,"-menu-submenu").concat(t.antCls,"-menu-submenu-popup"),te({},"".concat(t.componentCls,"-item-title"),{alignItems:"flex-start"}))),{},te({},"".concat(t.antCls,"-menu-submenu-popup"),{backgroundColor:"rgba(255, 255, 255, 0.42)","-webkit-backdrop-filter":"blur(8px)",backdropFilter:"blur(8px)"}))};function AUt(e,t){return Gi("ProLayoutBaseMenu"+t,function(n){var r=z(z({},n),{},{componentCls:".".concat(e)});return[RUt(r,t||"inline")]})}var lce=function(t){var n=h.useState(t.collapsed),r=Re(n,2),i=r[0],o=r[1],a=h.useState(!1),s=Re(a,2),l=s[0],c=s[1];return h.useEffect(function(){c(!1),setTimeout(function(){o(t.collapsed)},400)},[t.collapsed]),t.disable?t.children:F.jsx(Na,{title:t.title,open:i&&t.collapsed?l:!1,placement:"right",onOpenChange:c,children:t.children})},fAe=STe({scriptUrl:dAe.iconfontUrl}),cce=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(EK(t)||gTt(t))return F.jsx("img",{width:16,src:t,alt:"icon",className:r},t);if(t.startsWith(n))return F.jsx(fAe,{type:t})}return t},uce=function(t){if(t&&typeof t=="string"){var n=t.substring(0,1).toUpperCase();return n}return null},IUt=Xr(function e(t){var n=this;Qr(this,e),te(this,"props",void 0),te(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)}),te(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,p=a.layout,m=(d==null?void 0:d.type)==="group"&&p!=="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 _,S,x,E,C,w=i===0||m&&i===1,O=cce(r.icon,f,"".concat(l,"-icon ").concat((_=n.props)===null||_===void 0?void 0:_.hashId)),T=u&&w?uce(v):null,A=F.jsxs("div",{className:Ce("".concat(l,"-item-title"),(S=n.props)===null||S===void 0?void 0:S.hashId,te(te(te(te({},"".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:w&&O?F.jsx("span",{className:"".concat(l,"-item-icon ").concat((x=n.props)===null||x===void 0?void 0:x.hashId).trim(),children:O}):T,F.jsx("span",{className:Ce("".concat(l,"-item-text"),(E=n.props)===null||E===void 0?void 0:E.hashId,te({},"".concat(l,"-item-text-has-icon"),b!=="group"&&w&&(O||T))),children:v})]}),I=s?s(z(z({},r),{},{isUrl:!1}),A,n.props):A;if(m&&i===0&&n.props.collapsed&&!d.collapsedShowGroupTitle)return n.getNavMenuItems(y,i+1,i);var N=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:N,className:Ce(te(te(te({},"".concat(l,"-group"),b==="group"),"".concat(l,"-submenu"),b!=="group"),"".concat(l,"-submenu-has-icon"),b!=="group"&&w&&O))},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)}}),te(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}),te(this,"getMenuItemPath",function(r,i,o){var a,s,l,c,u=n.conversionPath(r.path||"/"),d=n.props,f=d.location,p=f===void 0?{pathname:"/"}:f,m=d.isMobile,g=d.onCollapse,v=d.menuItemRender,y=d.iconPrefixes,b=n.getIntlName(r),_=n.props,S=_.baseClassName,x=_.menu,E=_.collapsed,C=(x==null?void 0:x.type)==="group",w=i===0||C&&i===1,O=w?cce(r.icon,y,"".concat(S,"-icon ").concat((a=n.props)===null||a===void 0?void 0:a.hashId)):null,T=E&&w?uce(b):null,A=F.jsxs("div",{className:Ce("".concat(S,"-item-title"),(s=n.props)===null||s===void 0?void 0:s.hashId,te(te(te({},"".concat(S,"-item-title-collapsed"),E),"".concat(S,"-item-title-collapsed-level-").concat(o),E),"".concat(S,"-item-collapsed-show-title"),(x==null?void 0:x.collapsedShowTitle)&&E)),children:[F.jsx("span",{className:"".concat(S,"-item-icon ").concat((l=n.props)===null||l===void 0?void 0:l.hashId).trim(),style:{display:T===null&&!O?"none":""},children:O||F.jsx("span",{className:"anticon",children:T})}),F.jsx("span",{className:Ce("".concat(S,"-item-text"),(c=n.props)===null||c===void 0?void 0:c.hashId,te({},"".concat(S,"-item-text-has-icon"),w&&(O||T))),children:b})]},u),I=EK(u);if(I){var N,D,M;A=F.jsxs("span",{onClick:function(){var B,G;(B=window)===null||B===void 0||(G=B.open)===null||G===void 0||G.call(B,u,"_blank")},className:Ce("".concat(S,"-item-title"),(N=n.props)===null||N===void 0?void 0:N.hashId,te(te(te(te({},"".concat(S,"-item-title-collapsed"),E),"".concat(S,"-item-title-collapsed-level-").concat(o),E),"".concat(S,"-item-link"),!0),"".concat(S,"-item-collapsed-show-title"),(x==null?void 0:x.collapsedShowTitle)&&E)),children:[F.jsx("span",{className:"".concat(S,"-item-icon ").concat((D=n.props)===null||D===void 0?void 0:D.hashId).trim(),style:{display:T===null&&!O?"none":""},children:O||F.jsx("span",{className:"anticon",children:T})}),F.jsx("span",{className:Ce("".concat(S,"-item-text"),(M=n.props)===null||M===void 0?void 0:M.hashId,te({},"".concat(S,"-item-text-has-icon"),w&&(O||T))),children:b})]},u)}if(v){var k=z(z({},r),{},{isUrl:I,itemPath:u,isMobile:m,replace:u===p.pathname,onClick:function(){return g&&g(!0)},children:void 0});return i===0?F.jsx(lce,{collapsed:E,title:b,disable:r.disabledTooltip,children:v(k,A,n.props)}):v(k,A,n.props)}return i===0?F.jsx(lce,{collapsed:E,title:b,disable:r.disabledTooltip,children:A}):A}),te(this,"conversionPath",function(r){return r&&r.indexOf("http")===0?r:"/".concat(r||"").replace(/\/+/g,"/")}),this.props=t}),NUt=function(t,n){var r=n.layout,i=n.collapsed,o={};return t&&!i&&["side","mix"].includes(r||"mix")&&(o={openKeys:t}),o},pAe=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,p=t.menuRenderType,m=t.openKeys,g=h.useContext(md),v=g.dark,y=g.token,b="".concat(s,"-base-menu-").concat(n),_=h.useRef([]),S=Pn(l==null?void 0:l.defaultOpenAll),x=Re(S,2),E=x[0],C=x[1],w=Pn(function(){return l!=null&&l.defaultOpenAll?sce(a)||[]:m===!1?!1:[]},{value:m===!1?void 0:m,onChange:i}),O=Re(w,2),T=O[0],A=O[1],I=Pn([],{value:d,onChange:f?function(j){f&&j&&f(j)}:void 0}),N=Re(I,2),D=N[0],M=N[1];h.useEffect(function(){l!=null&&l.defaultOpenAll||m===!1||c&&(A(c),M(c))},[c.join("-")]),h.useEffect(function(){u&&(fAe=STe({scriptUrl:u}))},[u]),h.useEffect(function(){if(c.join("-")!==(D||[]).join("-")&&M(c),!E&&m!==!1&&c.join("-")!==(T||[]).join("-")){var j=c;(l==null?void 0:l.autoClose)===!1&&(j=Array.from(new Set([].concat(rt(c),rt(T||[]))))),A(j)}else l!=null&&l.ignoreFlatMenu&&E?A(sce(a)):C(!1)},[c.join("-")]);var k=h.useMemo(function(){return NUt(T,t)},[T&&T.join(","),t.layout,t.collapsed]),P=AUt(b,n),B=P.wrapSSR,G=P.hashId,L=h.useMemo(function(){return new IUt(z(z({},t),{},{token:y,menuRenderType:p,baseClassName:b,hashId:G}))},[t,y,p,b,G]);if(l!=null&&l.loading)return F.jsx("div",{style:n!=null&&n.includes("inline")?{padding:24}:{marginBlockStart:16},children:F.jsx(bh,{active:!0,title:!1,paragraph:{rows:n!=null&&n.includes("inline")?6:1}})});t.openKeys===!1&&!t.handleOpenChange&&(_.current=c);var W=t.postMenuData?t.postMenuData(a):a;return W&&(W==null?void 0:W.length)<1?null:B(h.createElement(Hd,z(z({},k),{},{_internalDisableMenuItemTitleTooltip:!0,key:"Menu",mode:n,inlineIndent:16,defaultOpenKeys:_.current,theme:v?"dark":"light",selectedKeys:D,style:z({backgroundColor:"transparent",border:"none"},o),className:Ce(r,G,b,te(te({},"".concat(b,"-horizontal"),n==="horizontal"),"".concat(b,"-collapsed"),t.collapsed)),items:L.getNavMenuItems(W,0,0),onOpenChange:function(H){t.collapsed||A(H)}},t.menuProps)))};function MUt(e,t){var n=t.stylish,r=t.proLayoutCollapsedWidth;return Gi("ProLayoutSiderMenuStylish",function(i){var o=z(z({},i),{},{componentCls:".".concat(e),proLayoutCollapsedWidth:r});return n?[te({},"div".concat(i.proComponentsCls,"-layout"),te({},"".concat(o.componentCls),n==null?void 0:n(o)))]:[]})}var kUt=["title","render"],PUt=pe.memo(function(e){return F.jsx(F.Fragment,{children:e.children})}),DUt=po.Sider,dce=po._InternalSiderContext,LUt=dce===void 0?{Provider:PUt}:dce,iQ=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=nQ(r),l=F.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?F.jsx("a",{children:s},"title"):F.jsxs("a",{children:[s,l]},"title")},fce=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,p=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,S=t.collapsedButtonRender,x=t.prefixCls,E=t.avatarProps,C=t.rightContentRender,w=t.actionsRender,O=t.onOpenChange,T=t.stylish,A=t.logoStyle,I=h.useContext(md),N=I.hashId,D=h.useMemo(function(){return!(u||g==="mix")},[u,g]),M="".concat(x,"-sider"),k=64,P=MUt("".concat(M,".").concat(M,"-stylish"),{stylish:T,proLayoutCollapsedWidth:k}),B=Ce("".concat(M),N,te(te(te(te(te(te(te({},"".concat(M,"-fixed"),o),"".concat(M,"-fixed-mix"),g==="mix"&&!u&&o),"".concat(M,"-collapsed"),t.collapsed),"".concat(M,"-layout-").concat(g),g&&!u),"".concat(M,"-light"),l!=="dark"),"".concat(M,"-mix"),g==="mix"&&!u),"".concat(M,"-stylish"),!!T)),G=iQ(t),L=y&&y(t),W=h.useMemo(function(){return _!==!1&&h.createElement(pAe,z(z({},t),{},{key:"base-menu",mode:r&&!u?"vertical":"inline",handleOpenChange:O,style:{width:"100%"},className:"".concat(M,"-menu ").concat(N).trim()}))},[M,N,_,O,t]),j=(b||[]).map(function(ne,he){return{className:"".concat(M,"-link"),label:ne,key:he}}),H=h.useMemo(function(){return _?_(t,W):W},[_,W,t]),X=h.useMemo(function(){if(!E)return null;var ne=E.title,he=E.render,me=kt(E,kUt),ce=F.jsxs("div",{className:"".concat(M,"-actions-avatar"),children:[me!=null&&me.src||me!=null&&me.srcSet||me.icon||me.children?F.jsx(_h,z({size:28},me)):null,E.title&&!r&&F.jsx("span",{children:ne})]});return he?he(E,ce,t):ce},[E,M,r]),Q=h.useMemo(function(){return w?F.jsx(Ji,{align:"center",size:4,direction:r?"vertical":"horizontal",className:Ce(["".concat(M,"-actions-list"),r&&"".concat(M,"-actions-list-collapsed"),N]),children:[w==null?void 0:w(t)].flat(1).map(function(ne,he){return F.jsx("div",{className:"".concat(M,"-actions-list-item ").concat(N).trim(),children:ne},he)})}):null},[w,M,r]),ue=h.useMemo(function(){return F.jsx(rQ,{onItemClick:t.itemClick,appListRender:t.appListRender,appList:t.appList,prefixCls:t.prefixCls})},[t.appList,t.appListRender,t.prefixCls]),ee=h.useMemo(function(){if(S===!1)return null;var ne=F.jsx(OUt,{isMobile:u,collapsed:i,className:"".concat(M,"-collapsed-button"),onClick:function(){s==null||s(!i)}});return S?S(r,ne):ne},[S,u,i,M,r,s]),K=h.useMemo(function(){return!X&&!Q?null:F.jsxs("div",{className:Ce("".concat(M,"-actions"),N,r&&"".concat(M,"-actions-collapsed")),children:[X,Q]})},[Q,X,M,r,N]),se=h.useMemo(function(){var ne;return t!=null&&(ne=t.menu)!==null&&ne!==void 0&&ne.hideMenuWhenCollapsed&&r?"".concat(M,"-hide-menu-collapsed"):null},[M,r,t==null||(n=t.menu)===null||n===void 0?void 0:n.hideMenuWhenCollapsed]),le=a&&(a==null?void 0:a(t)),oe=F.jsxs(F.Fragment,{children:[G&&F.jsxs("div",{className:Ce([Ce("".concat(M,"-logo"),N,te({},"".concat(M,"-logo-collapsed"),r))]),onClick:D?d:void 0,id:"logo",style:A,children:[G,ue]}),L&&F.jsx("div",{className:Ce(["".concat(M,"-extra"),!G&&"".concat(M,"-extra-no-logo"),N]),children:L}),F.jsx("div",{style:{flex:1,overflowY:"auto",overflowX:"hidden"},children:H}),F.jsxs(LUt.Provider,{value:{},children:[b?F.jsx("div",{className:"".concat(M,"-links ").concat(N).trim(),children:F.jsx(Hd,{inlineIndent:16,className:"".concat(M,"-link-menu ").concat(N).trim(),selectedKeys:[],openKeys:[],theme:l,mode:"inline",items:j})}):null,D&&F.jsxs(F.Fragment,{children:[K,!Q&&C?F.jsx("div",{className:Ce("".concat(M,"-actions"),N,te({},"".concat(M,"-actions-collapsed"),r)),children:C==null?void 0:C(t)}):null]}),le&&F.jsx("div",{className:Ce(["".concat(M,"-footer"),N,te({},"".concat(M,"-footer-collapsed"),r)]),children:le})]})]});return P.wrapSSR(F.jsxs(F.Fragment,{children:[o&&!u&&!se&&F.jsx("div",{style:z({width:r?k:c,overflow:"hidden",flex:"0 0 ".concat(r?k:c,"px"),maxWidth:r?k:c,minWidth:r?k:c,transition:"all 0.2s ease 0s"},m)}),F.jsxs(DUt,{collapsible:!0,trigger:null,collapsed:r,breakpoint:p===!1?void 0:p,onCollapse:function(he){u||s==null||s(he)},collapsedWidth:k,style:m,theme:l,width:c,className:Ce(B,N,se),children:[se?F.jsx("div",{className:"".concat(M,"-hide-when-collapsed ").concat(N).trim(),style:{height:"100%",width:"100%",opacity:se?0:1},children:oe}):oe,ee]})]}))},$Ut=function(t){var n,r,i,o,a;return te({},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 Gi("ProLayoutRightContent",function(t){var n=z(z({},t),{},{componentCls:".".concat(e)});return[$Ut(n)]})}var BUt=["rightContentRender","avatarProps","actionsRender","headerContentRender"],HUt=["title","render"],hAe=function(t){var n=t.rightContentRender,r=t.avatarProps,i=t.actionsRender;t.headerContentRender;var o=kt(t,BUt),a=h.useContext(Ln.ConfigContext),s=a.getPrefixCls,l="".concat(s(),"-pro-global-header"),c=FUt(l),u=c.wrapSSR,d=c.hashId,f=h.useState("auto"),p=Re(f,2),m=p[0],g=p[1],v=h.useMemo(function(){if(!r)return null;var S=r.title,x=r.render,E=kt(r,HUt),C=[E!=null&&E.src||E!=null&&E.srcSet||E.icon||E.children?h.createElement(_h,z(z({},E),{},{size:28,key:"avatar"})):null,S?F.jsx("span",{style:{marginInlineStart:8},children:S},"name"):void 0];return x?x(r,F.jsx("div",{children:C}),o):F.jsx("div",{children:C})},[r]),y=i||v?function(S){var x=i&&(i==null?void 0:i(S));return!x&&!v?null:Array.isArray(x)?u(F.jsxs("div",{className:"".concat(l,"-header-actions ").concat(d).trim(),children:[x.filter(Boolean).map(function(E,C){var w=!1;if(pe.isValidElement(E)){var O;w=!!(E!=null&&(O=E.props)!==null&&O!==void 0&&O["aria-hidden"])}return F.jsx("div",{className:Ce("".concat(l,"-header-actions-item ").concat(d),te({},"".concat(l,"-header-actions-hover"),!w)),children:E},C)}),v&&F.jsx("span",{className:"".concat(l,"-header-actions-avatar ").concat(d).trim(),children:v})]})):u(F.jsxs("div",{className:"".concat(l,"-header-actions ").concat(d).trim(),children:[x,v&&F.jsx("span",{className:"".concat(l,"-header-actions-avatar ").concat(d).trim(),children:v})]}))}:void 0,b=aTt(function(){var S=Ui(rr().mark(function x(E){return rr().wrap(function(w){for(;;)switch(w.prev=w.next){case 0:g(E);case 1:case"end":return w.stop()}},x)}));return function(x){return S.apply(this,arguments)}}(),160),_=y||n;return F.jsx("div",{className:"".concat(l,"-right-content ").concat(d).trim(),style:{minWidth:m,height:"100%"},children:F.jsx("div",{style:{height:"100%"},children:F.jsx(Oa,{onResize:function(x){var E=x.width;b.run(E)},children:_?F.jsx("div",{style:{display:"flex",alignItems:"center",height:"100%",justifyContent:"flex-end"},children:_(z(z({},o),{},{rightContentSize:m}))}):null})})})},jUt=function(t){var n,r;return te({},t.componentCls,{position:"relative",width:"100%",height:"100%",backgroundColor:"transparent",".anticon":{color:"inherit"},"&-main":{display:"flex",height:"100%",paddingInlineStart:"16px","&-left":te({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 UUt(e){return Gi("ProLayoutTopNavHeader",function(t){var n=z(z({},t),{},{componentCls:".".concat(e)});return[jUt(n)]})}var mAe=function(t){var n,r,i,o,a,s,l,c=h.useRef(null),u=t.onMenuHeaderClick,d=t.contentWidth,f=t.rightContentRender,p=t.className,m=t.style,g=t.headerContentRender,v=t.layout,y=t.actionsRender,b=h.useContext(Ln.ConfigContext),_=b.getPrefixCls,S=h.useContext(md),x=S.dark,E="".concat(t.prefixCls||_("pro"),"-top-nav-header"),C=UUt(E),w=C.wrapSSR,O=C.hashId,T=void 0;t.menuHeaderRender!==void 0?T="menuHeaderRender":(v==="mix"||v==="top")&&(T="headerTitleRender");var A=iQ(z(z({},t),{},{collapsed:!1}),T),I=h.useContext(md),N=I.token,D=h.useMemo(function(){var M,k,P,B,G,L,W,j,H,X,Q,ue,ee,K=F.jsx(Ln,{theme:{hashed:wy(),components:{Layout:{headerBg:"transparent",bodyBg:"transparent"},Menu:z({},rOe({colorItemBg:((M=N.layout)===null||M===void 0||(M=M.header)===null||M===void 0?void 0:M.colorBgHeader)||"transparent",colorSubItemBg:((k=N.layout)===null||k===void 0||(k=k.header)===null||k===void 0?void 0:k.colorBgHeader)||"transparent",radiusItem:N.borderRadius,colorItemBgSelected:((P=N.layout)===null||P===void 0||(P=P.header)===null||P===void 0?void 0:P.colorBgMenuItemSelected)||(N==null?void 0:N.colorBgTextHover),itemHoverBg:((B=N.layout)===null||B===void 0||(B=B.header)===null||B===void 0?void 0:B.colorBgMenuItemHover)||(N==null?void 0:N.colorBgTextHover),colorItemBgSelectedHorizontal:((G=N.layout)===null||G===void 0||(G=G.header)===null||G===void 0?void 0:G.colorBgMenuItemSelected)||(N==null?void 0:N.colorBgTextHover),colorActiveBarWidth:0,colorActiveBarHeight:0,colorActiveBarBorderSize:0,colorItemText:((L=N.layout)===null||L===void 0||(L=L.header)===null||L===void 0?void 0:L.colorTextMenu)||(N==null?void 0:N.colorTextSecondary),colorItemTextHoverHorizontal:((W=N.layout)===null||W===void 0||(W=W.header)===null||W===void 0?void 0:W.colorTextMenuActive)||(N==null?void 0:N.colorText),colorItemTextSelectedHorizontal:((j=N.layout)===null||j===void 0||(j=j.header)===null||j===void 0?void 0:j.colorTextMenuSelected)||(N==null?void 0:N.colorTextBase),horizontalItemBorderRadius:4,colorItemTextHover:((H=N.layout)===null||H===void 0||(H=H.header)===null||H===void 0?void 0:H.colorTextMenuActive)||"rgba(0, 0, 0, 0.85)",horizontalItemHoverBg:((X=N.layout)===null||X===void 0||(X=X.header)===null||X===void 0?void 0:X.colorBgMenuItemHover)||"rgba(0, 0, 0, 0.04)",colorItemTextSelected:((Q=N.layout)===null||Q===void 0||(Q=Q.header)===null||Q===void 0?void 0:Q.colorTextMenuSelected)||"rgba(0, 0, 0, 1)",popupBg:N==null?void 0:N.colorBgElevated,subMenuItemBg:N==null?void 0:N.colorBgElevated,darkSubMenuItemBg:"transparent",darkPopupBg:N==null?void 0:N.colorBgElevated}))},token:{colorBgElevated:((ue=N.layout)===null||ue===void 0||(ue=ue.header)===null||ue===void 0?void 0:ue.colorBgHeader)||"transparent"}},children:F.jsx(pAe,z(z(z({theme:x?"dark":"light"},t),{},{className:"".concat(E,"-base-menu ").concat(O).trim()},t.menuProps),{},{style:z({width:"100%"},(ee=t.menuProps)===null||ee===void 0?void 0:ee.style),collapsed:!1,menuRenderType:"header",mode:"horizontal"}))});return g?g(t,K):K},[(n=N.layout)===null||n===void 0||(n=n.header)===null||n===void 0?void 0:n.colorBgHeader,(r=N.layout)===null||r===void 0||(r=r.header)===null||r===void 0?void 0:r.colorBgMenuItemSelected,(i=N.layout)===null||i===void 0||(i=i.header)===null||i===void 0?void 0:i.colorBgMenuItemHover,(o=N.layout)===null||o===void 0||(o=o.header)===null||o===void 0?void 0:o.colorTextMenu,(a=N.layout)===null||a===void 0||(a=a.header)===null||a===void 0?void 0:a.colorTextMenuActive,(s=N.layout)===null||s===void 0||(s=s.header)===null||s===void 0?void 0:s.colorTextMenuSelected,(l=N.layout)===null||l===void 0||(l=l.header)===null||l===void 0?void 0:l.colorBgMenuElevated,N.borderRadius,N==null?void 0:N.colorBgTextHover,N==null?void 0:N.colorTextSecondary,N==null?void 0:N.colorText,N==null?void 0:N.colorTextBase,N.colorBgElevated,x,t,E,O,g]);return w(F.jsx("div",{className:Ce(E,O,p,te({},"".concat(E,"-light"),!0)),style:m,children:F.jsxs("div",{ref:c,className:Ce("".concat(E,"-main"),O,te({},"".concat(E,"-wide"),d==="Fixed"&&v==="top")),children:[A&&F.jsxs("div",{className:Ce("".concat(E,"-main-left ").concat(O)),onClick:u,children:[F.jsx(rQ,z({},t)),F.jsx("div",{className:"".concat(E,"-logo ").concat(O).trim(),id:"logo",children:A},"logo")]}),F.jsx("div",{style:{flex:1},className:"".concat(E,"-menu ").concat(O).trim(),children:D}),(f||y||t.avatarProps)&&F.jsx(hAe,z(z({rightContentRender:f},t),{},{prefixCls:E}))]})}))},zUt=function(t){var n,r,i;return te({},t.componentCls,te(te(te(te({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 VUt(e){return Gi("ProLayoutGlobalHeader",function(t){var n=z(z({},t),{},{componentCls:".".concat(e)});return[zUt(n)]})}var GUt=function(t,n){return t===!1?null:t?t(n,null):n},WUt=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,p=t.splitMenus,m=t.menuData,g=t.prefixCls,v=h.useContext(Ln.ConfigContext),y=v.getPrefixCls,b=v.direction,_="".concat(g||y("pro"),"-global-header"),S=VUt(_),x=S.wrapSSR,E=S.hashId,C=Ce(c,_,E);if(d==="mix"&&!n&&p){var w=(m||[]).map(function(I){return z(z({},I),{},{children:void 0,routes:void 0})}),O=QD(w);return F.jsx(mAe,z(z({mode:"horizontal"},t),{},{splitMenus:!1,menuData:O}))}var T=Ce("".concat(_,"-logo"),E,te(te(te({},"".concat(_,"-logo-rtl"),b==="rtl"),"".concat(_,"-logo-mix"),d==="mix"),"".concat(_,"-logo-mobile"),n)),A=F.jsx("span",{className:T,children:F.jsx("a",{children:nQ(r)})},"logo");return x(F.jsxs("div",{className:C,style:z({},u),children:[n&&F.jsx("span",{className:"".concat(_,"-collapsed-button ").concat(E).trim(),onClick:function(){o==null||o(!i)},children:F.jsx(t0t,{})}),n&&GUt(s,A),d==="mix"&&!n&&F.jsxs(F.Fragment,{children:[F.jsx(rQ,z({},t)),F.jsx("div",{className:T,onClick:l,children:iQ(z(z({},t),{},{collapsed:!1}),"headerTitleRender")})]}),F.jsx("div",{style:{flex:1},children:f}),(a||t.actionsRender||t.avatarProps)&&F.jsx(hAe,z({rightContentRender:a},t))]}))},qUt=function(t){var n,r,i,o;return te({},"".concat(t.proComponentsCls,"-layout"),te({},"".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 YUt(e){return Gi("ProLayoutHeader",function(t){var n=z(z({},t),{},{componentCls:".".concat(e)});return[qUt(n)]})}function KUt(e,t){var n=t.stylish,r=t.proLayoutCollapsedWidth;return Gi("ProLayoutHeaderStylish",function(i){var o=z(z({},i),{},{componentCls:".".concat(e),proLayoutCollapsedWidth:r});return n?[te({},"div".concat(i.proComponentsCls,"-layout"),te({},"".concat(o.componentCls),n==null?void 0:n(o)))]:[]})}var pce=po.Header,QUt=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,p=t.headerRender,m=t.headerContentRender,g=h.useContext(md),v=g.token,y=h.useContext(Ln.ConfigContext),b=h.useState(!1),_=Re(b,2),S=_[0],x=_[1],E=a||f==="mix",C=h.useCallback(function(){var M=f==="top",k=QD(t.menuData||[]),P=F.jsx(WUt,z(z({onCollapse:d},t),{},{menuData:k,children:m&&m(t,null)}));return M&&!o&&(P=F.jsx(mAe,z(z({mode:"horizontal",onCollapse:d},t),{},{menuData:k}))),p&&typeof p=="function"?p(t,P):P},[m,p,o,f,d,t]);h.useEffect(function(){var M,k=(y==null||(M=y.getTargetContainer)===null||M===void 0?void 0:M.call(y))||document.body,P=function(){var G,L=k.scrollTop;return L>(((G=v.layout)===null||G===void 0||(G=G.header)===null||G===void 0?void 0:G.heightLayoutHeader)||56)&&!S?(x(!0),!0):(S&&x(!1),!1)};if(E&&!(typeof window>"u"))return k.addEventListener("scroll",P,{passive:!0}),function(){k.removeEventListener("scroll",P)}},[(n=v.layout)===null||n===void 0||(n=n.header)===null||n===void 0?void 0:n.heightLayoutHeader,E,S]);var w=f==="top",O="".concat(u,"-layout-header"),T=YUt(O),A=T.wrapSSR,I=T.hashId,N=KUt("".concat(O,".").concat(O,"-stylish"),{proLayoutCollapsedWidth:64,stylish:t.stylish}),D=Ce(s,I,O,te(te(te(te(te(te(te({},"".concat(O,"-fixed-header"),E),"".concat(O,"-fixed-header-scroll"),S),"".concat(O,"-mix"),f==="mix"),"".concat(O,"-fixed-header-action"),!c),"".concat(O,"-top-menu"),w),"".concat(O,"-header"),!0),"".concat(O,"-stylish"),!!t.stylish));return f==="side"&&!o?null:N.wrapSSR(A(F.jsx(F.Fragment,{children:F.jsxs(Ln,{theme:{hashed:wy(),components:{Layout:{headerBg:"transparent",bodyBg:"transparent"}}},children:[E&&F.jsx(pce,{style:z({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)}),F.jsx(pce,{className:D,style:l,children:C()})]})})))};const XUt={"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"},ZUt=z({},XUt),JUt={"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"},ezt=z({},JUt),tzt={"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":"설정 판넬은 개발 환경에서만 보여집니다. 직접 수동으로 변경바랍니다."},nzt=z({},tzt),rzt={"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":"配置栏只在开发环境用于预览,生产环境不会展现,请拷贝后手动修改配置文件"},izt=z({},rzt),ozt={"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":"配置欄只在開發環境用於預覽,生產環境不會展現,請拷貝後手動修改配置文件"},azt=z({},ozt);var hce={"zh-CN":izt,"zh-TW":azt,"en-US":ZUt,"it-IT":ezt,"ko-KR":nzt},szt=function(){if(!SK())return"zh-CN";var t=window.localStorage.getItem("umi_locale");return t||window.g_locale||navigator.language},lzt=function(){var t=szt();return hce[t]||hce["zh-CN"]},Pg={};Object.defineProperty(Pg,"__esModule",{value:!0});Pg.TokenData=void 0;Pg.parse=lQ;Pg.compile=pzt;var sU=Pg.match=mzt;Pg.pathToRegexp=bAe;Pg.stringify=bzt;const oQ="/",aQ=e=>e,gAe=/^[$_\p{ID_Start}]$/u,sQ=/^[$\u200c\u200d\p{ID_Continue}]$/u,wM="https://git.new/pathToRegexpError",czt={"{":"{","}":"}","(":"(",")":")","[":"[","]":"]","+":"+","?":"?","!":"!"};function uzt(e){return e.replace(/[{}()\[\]+?!:*]/g,"\\$&")}function cf(e){return e.replace(/[.+*?^${}()[\]|/\\]/g,"\\$&")}function*dzt(e){const t=[...e];let n=0;function r(){let i="";if(gAe.test(t[++n]))for(i+=t[n];sQ.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}: ${wM}`)}if(!i)throw new TypeError(`Missing parameter name at ${n}: ${wM}`);return i}for(;n<t.length;){const i=t[n],o=czt[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 fzt{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}: ${wM}`)}text(){let t="",n;for(;n=this.tryConsume("CHAR")||this.tryConsume("ESCAPED");)t+=n;return t}}class XD{constructor(t){this.tokens=t}}Pg.TokenData=XD;function lQ(e,t={}){const{encodePath:n=aQ}=t,r=new fzt(dzt(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 XD(o)}function pzt(e,t={}){const{encode:n=encodeURIComponent,delimiter:r=oQ}=t,i=e instanceof XD?e:lQ(e,t),o=vAe(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 vAe(e,t,n){const r=e.map(i=>hzt(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 hzt(e,t,n){if(e.type==="text")return()=>[e.value];if(e.type==="group"){const i=vAe(e.tokens,t,n);return o=>{const[a,...s]=i(o);return s.length?[""]:[a]}}const r=n||aQ;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 mzt(e,t={}){const{decode:n=decodeURIComponent,delimiter:r=oQ}=t,{regexp:i,keys:o}=bAe(e,t),a=o.map(s=>n===!1?aQ: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 p=o[f-1],m=a[f-1];d[p.name]=m(c[f])}return{path:u,params:d}}}function bAe(e,t={}){const{delimiter:n=oQ,end:r=!0,sensitive:i=!1,trailing:o=!0}=t,a=[],s=[],l=i?"":"i",u=(Array.isArray(e)?e:[e]).map(p=>p instanceof XD?p:lQ(p,t));for(const{tokens:p}of u)for(const m of HI(p,0,[])){const g=gzt(m,n,a);s.push(g)}let d=`^(?:${s.join("|")})`;return o&&(d+=`(?:${cf(n)}$)?`),d+=r?"$":`(?=${cf(n)}|$)`,{regexp:new RegExp(d,l),keys:a}}function*HI(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 HI(r.tokens,0,i))yield*HI(e,t+1,o)}else n.push(r);yield*HI(e,t+1,n)}function gzt(e,t,n){let r="",i="",o=!0;for(let a=0;a<e.length;a++){const s=e[a];if(s.type==="text"){r+=cf(s.value),i+=s.value,o||(o=s.value.includes(t));continue}if(s.type==="param"||s.type==="wildcard"){if(!o&&!i)throw new TypeError(`Missing text after "${s.name}": ${wM}`);s.type==="param"?r+=`(${vzt(t,o?"":i)}+)`:r+="([\\s\\S]+)",n.push(s),i="",o=!1;continue}}return r}function vzt(e,t){return t.length<2?e.length<2?`[^${cf(e+t)}]`:`(?:(?!${cf(e)})[^${cf(t)}])`:e.length<2?`(?:(?!${cf(t)})[^${cf(e)}])`:`(?:(?!${cf(t)}|${cf(e)})[\\s\\S])`}function bzt(e){return e.tokens.map(function t(n,r,i){if(n.type==="text")return uzt(n.value);if(n.type==="group")return`{${n.tokens.map(t).join("")}}`;const a=yzt(n.name)&&_zt(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 yzt(e){const[t,...n]=e;return gAe.test(t)?n.every(r=>sQ.test(r)):!1}function _zt(e){return(e==null?void 0:e.type)!=="text"?!0:!sQ.test(e.value[0])}var Szt=function(t,n,r){if(r){var i=rt(r.keys()).find(function(a){try{return a.startsWith("http")?!1:sU(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:sU(a)(t)}catch(s){return console.log("key",a,s),!1}});if(o)return n[o]}return{path:""}},mce=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=Szt(i,o,a);if(!f)return{title:d,id:"",pageName:d};var p=f.name;return u.locale!==!1&&f.locale&&s&&(p=s({id:f.locale||"",defaultMessage:f.name})),p?l?{title:"".concat(p," - ").concat(l),id:f.locale||"",pageName:p}:{title:p,id:f.locale||"",pageName:p}:{title:d,id:f.locale||"",pageName:d}},qs={};function lU(e){"@babel/helpers - typeof";return lU=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},lU(e)}Object.defineProperty(qs,"__esModule",{value:!0});var vx=qs.pathToRegexp=qs.tokensToRegexp=qs.regexpToFunction=qs.match=qs.tokensToFunction=qs.compile=qs.parse=void 0;function Ezt(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 cQ(e,t){t===void 0&&(t={});for(var n=Ezt(e),r=t.prefixes,i=r===void 0?"./":r,o="[^"+Rb(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 w=u(C);if(w!==void 0)return w;var O=n[l],T=O.type,A=O.index;throw new TypeError("Unexpected "+T+" at "+A+", expected "+C)},f=function(){for(var C="",w;w=u("CHAR")||u("ESCAPED_CHAR");)C+=w;return C};l<n.length;){var p=u("CHAR"),m=u("NAME"),g=u("PATTERN");if(m||g){var v=p||"";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=p||u("ESCAPED_CHAR");if(y){c+=y;continue}c&&(a.push(c),c="");var b=u("OPEN");if(b){var v=f(),_=u("NAME")||"",S=u("PATTERN")||"",x=f();d("CLOSE"),a.push({name:_||(S?s++:""),pattern:_&&!S?o:S,prefix:v,suffix:x,modifier:u("MODIFIER")||""});continue}d("END")}return a}qs.parse=cQ;function Czt(e,t){return yAe(cQ(e,t),t)}qs.compile=Czt;function yAe(e,t){t===void 0&&(t={});var n=uQ(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(lU(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,p=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(p)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(!p){var y=m?"an array":"a string";throw new TypeError('Expected "'+d.name+'" to be '+y)}}return c}}qs.tokensToFunction=yAe;function xzt(e,t){var n=[],r=dQ(e,n,t);return _Ae(r,n,t)}qs.match=xzt;function _Ae(e,t,n){n===void 0&&(n={});var r=n.decode,i=r===void 0?function(o){return o}:r;return function(o){var a=e.exec(o);if(!a)return!1;for(var s=a[0],l=a.index,c=Object.create(null),u=function(p){if(a[p]===void 0)return"continue";var m=t[p-1];m.modifier==="*"||m.modifier==="+"?c[m.name]=a[p].split(m.prefix+m.suffix).map(function(g){return i(g,m)}):c[m.name]=i(a[p],m)},d=1;d<a.length;d++)u(d);return{path:s,index:l,params:c}}}qs.regexpToFunction=_Ae;function Rb(e){return e.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1")}function uQ(e){return e&&e.sensitive?"":"i"}function wzt(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 Tzt(e,t,n){var r=e.map(function(i){return dQ(i,t,n).source});return new RegExp("(?:"+r.join("|")+")",uQ(n))}function Ozt(e,t,n){return SAe(cQ(e,n),t,n)}function SAe(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(E){return E}:c,d="["+Rb(n.endsWith||"")+"]|$",f="["+Rb(n.delimiter||"/#?")+"]",p=a?"^":"",m=0,g=e;m<g.length;m++){var v=g[m];if(typeof v=="string")p+=Rb(u(v));else{var y=Rb(u(v.prefix)),b=Rb(u(v.suffix));if(v.pattern)if(t&&t.push(v),y||b)if(v.modifier==="+"||v.modifier==="*"){var _=v.modifier==="*"?"?":"";p+="(?:"+y+"((?:"+v.pattern+")(?:"+b+y+"(?:"+v.pattern+"))*)"+b+")"+_}else p+="(?:"+y+"("+v.pattern+")"+b+")"+v.modifier;else p+="("+v.pattern+")"+v.modifier;else p+="(?:"+y+b+")"+v.modifier}}if(l)i||(p+=f+"?"),p+=n.endsWith?"(?="+d+")":"$";else{var S=e[e.length-1],x=typeof S=="string"?f.indexOf(S[S.length-1])>-1:S===void 0;i||(p+="(?:"+f+"(?="+d+"))?"),x||(p+="(?="+f+"|"+d+")")}return new RegExp(p,uQ(n))}qs.tokensToRegexp=SAe;function dQ(e,t,n){return e instanceof RegExp?wzt(e,t):Array.isArray(e)?Tzt(e,t,n):Ozt(e,t,n)}vx=qs.pathToRegexp=dQ;function Nf(e,t){return t>>>e|t<<32-e}function Rzt(e,t,n){return e&t^~e&n}function Azt(e,t,n){return e&t^e&n^t&n}function Izt(e){return Nf(2,e)^Nf(13,e)^Nf(22,e)}function Nzt(e){return Nf(6,e)^Nf(11,e)^Nf(25,e)}function Mzt(e){return Nf(7,e)^Nf(18,e)^e>>>3}function kzt(e){return Nf(17,e)^Nf(19,e)^e>>>10}function Pzt(e,t){return e[t&15]+=kzt(e[t+14&15])+e[t+9&15]+Mzt(e[t+1&15])}var Dzt=[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],Yi,Ss,_a,Lzt="0123456789abcdef";function gce(e,t){var n=(e&65535)+(t&65535),r=(e>>16)+(t>>16)+(n>>16);return r<<16|n&65535}function $zt(){Yi=new Array(8),Ss=new Array(2),_a=new Array(64),Ss[0]=Ss[1]=0,Yi[0]=1779033703,Yi[1]=3144134277,Yi[2]=1013904242,Yi[3]=2773480762,Yi[4]=1359893119,Yi[5]=2600822924,Yi[6]=528734635,Yi[7]=1541459225}function cU(){var e,t,n,r,i,o,a,s,l,c,u=new Array(16);e=Yi[0],t=Yi[1],n=Yi[2],r=Yi[3],i=Yi[4],o=Yi[5],a=Yi[6],s=Yi[7];for(var d=0;d<16;d++)u[d]=_a[(d<<2)+3]|_a[(d<<2)+2]<<8|_a[(d<<2)+1]<<16|_a[d<<2]<<24;for(var f=0;f<64;f++)l=s+Nzt(i)+Rzt(i,o,a)+Dzt[f],f<16?l+=u[f]:l+=Pzt(u,f),c=Izt(e)+Azt(e,t,n),s=a,a=o,o=i,i=gce(r,l),r=n,n=t,t=e,e=gce(l,c);Yi[0]+=e,Yi[1]+=t,Yi[2]+=n,Yi[3]+=r,Yi[4]+=i,Yi[5]+=o,Yi[6]+=a,Yi[7]+=s}function Fzt(e,t){var n,r,i=0;r=Ss[0]>>3&63;var o=t&63;for((Ss[0]+=t<<3)<t<<3&&Ss[1]++,Ss[1]+=t>>29,n=0;n+63<t;n+=64){for(var a=r;a<64;a++)_a[a]=e.charCodeAt(i++);cU(),r=0}for(var s=0;s<o;s++)_a[s]=e.charCodeAt(i++)}function Bzt(){var e=Ss[0]>>3&63;if(_a[e++]=128,e<=56)for(var t=e;t<56;t++)_a[t]=0;else{for(var n=e;n<64;n++)_a[n]=0;cU();for(var r=0;r<56;r++)_a[r]=0}_a[56]=Ss[1]>>>24&255,_a[57]=Ss[1]>>>16&255,_a[58]=Ss[1]>>>8&255,_a[59]=Ss[1]&255,_a[60]=Ss[0]>>>24&255,_a[61]=Ss[0]>>>16&255,_a[62]=Ss[0]>>>8&255,_a[63]=Ss[0]&255,cU()}function Hzt(){for(var e=new String,t=0;t<8;t++)for(var n=28;n>=0;n-=4)e+=Lzt.charAt(Yi[t]>>>n&15);return e}function jzt(e){return $zt(),Fzt(e,e.length),Bzt(),Hzt()}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)}var Uzt=["pro_layout_parentKeys","children","icon","flatMenu","indexRoute","routes"];function zzt(e,t){return Wzt(e)||Gzt(e,t)||fQ(e,t)||Vzt()}function Vzt(){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 Gzt(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 Wzt(e){if(Array.isArray(e))return e}function qzt(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=fQ(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 Yzt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Kzt(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 Qzt(e,t,n){return t&&Kzt(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Xzt(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&&Zw(e,t)}function Zzt(e){var t=EAe();return function(){var r=Jw(e),i;if(t){var o=Jw(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return Jzt(this,i)}}function Jzt(e,t){if(t&&(uU(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return eVt(e)}function eVt(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function dU(e){var t=typeof Map=="function"?new Map:void 0;return dU=function(r){if(r===null||!tVt(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 jI(r,arguments,Jw(this).constructor)}return i.prototype=Object.create(r.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),Zw(i,r)},dU(e)}function jI(e,t,n){return EAe()?jI=Reflect.construct.bind():jI=function(i,o,a){var s=[null];s.push.apply(s,o);var l=Function.bind.apply(i,s),c=new l;return a&&Zw(c,a.prototype),c},jI.apply(null,arguments)}function EAe(){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 tVt(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function Zw(e,t){return Zw=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},Zw(e,t)}function Jw(e){return Jw=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Jw(e)}function vce(e){return iVt(e)||rVt(e)||fQ(e)||nVt()}function nVt(){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 fQ(e,t){if(e){if(typeof e=="string")return fU(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 fU(e,t)}}function rVt(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function iVt(e){if(Array.isArray(e))return fU(e)}function fU(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 oVt(e,t){if(e==null)return{};var n=aVt(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 aVt(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 bce(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 Sa(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?bce(Object(n),!0).forEach(function(r){sVt(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):bce(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function sVt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var vc="routes";function X2(e){return e.split("?")[0].split("#")[0]}var pQ=function(t){if(!t.startsWith("http"))return!1;try{var n=new URL(t);return!!n}catch{return!1}},lVt=function(t){var n=t.path;if(!n||n==="/")try{return"/".concat(jzt(JSON.stringify(t)))}catch{}return n&&X2(n)},cVt=function(t,n){var r=t.name,i=t.locale;return"locale"in t&&i===!1||!r?!1:t.locale||"".concat(n,".").concat(r)},CAe=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("/")||pQ(t)?t:"/".concat(n,"/").concat(t).replace(/\/\//g,"/").replace(/\/\//g,"/")},uVt=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,p=i.hideChildren,m=p===void 0?t.hideChildren:p,g=i.flatMenu,v=g===void 0?t.flatMenu:g,y=o&&Object.keys(o).join(",")!=="redirect"?[Sa({path:s,menu:i},o)].concat(l||[]):l,b=Sa({},t);if(u&&(b.name=u),f&&(b.icon=f),y&&y.length){if(m)return delete b.children,b;var _=hQ(Sa(Sa({},n),{},{data:y}),t);if(v)return _;delete b[vc]}return b},p1=function(t){return Array.isArray(t)&&t.length>0};function hQ(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?p1(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=Sa(Sa({},a),{},{path:a.path||a.originPath});return!s.children&&s[vc]&&(s.children=s[vc],delete s[vc]),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[vc]||[],l=CAe(a.path,t?t.path:"/"),c=a.name,u=cVt(a,i||"menu"),d=u!==!1&&o!==!1&&r&&u?r({id:u,defaultMessage:c}):c,f=t.pro_layout_parentKeys,p=f===void 0?[]:f;t.children,t.icon,t.flatMenu,t.indexRoute,t.routes;var m=oVt(t,Uzt),g=new Set([].concat(vce(p),vce(a.parentKeys||[])));t.key&&g.add(t.key);var v=Sa(Sa(Sa({},m),{},{menu:void 0},a),{},{path:l,locale:u,key:a.key||lVt(Sa(Sa({},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,p1(s)){var y=hQ(Sa(Sa({},e),{},{data:s,parentName:u||""}),v);p1(y)&&(v.children=y)}return uVt(v,e)}).flat(1)}var dVt=function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return t.filter(function(n){return n&&(n.name||p1(n.children))&&!n.hideInMenu&&!n.redirect}).map(function(n){var r=Sa({},n),i=r.children||n[vc]||[];if(delete r[vc],p1(i)&&!r.hideChildrenInMenu&&i.some(function(a){return a&&!!a.name})){var o=e(i);if(o.length)return Sa(Sa({},r),{},{children:o})}return Sa({},n)}).filter(function(n){return n})},fVt=function(e){Xzt(n,e);var t=Zzt(n);function n(){return Yzt(this,n),t.apply(this,arguments)}return Qzt(n,[{key:"get",value:function(i){var o;try{var a=qzt(this.entries()),s;try{for(a.s();!(s=a.n()).done;){var l=zzt(s.value,2),c=l[0],u=l[1],d=X2(c);if(!pQ(c)&&vx(d,[]).test(i)){o=u;break}}}catch(f){a.e(f)}finally{a.f()}}catch{o=void 0}return o}}]),n}(dU(Map)),pVt=function(t){var n=new fVt,r=function i(o,a){o.forEach(function(s){var l=s.children||s[vc]||[];p1(l)&&i(l,s);var c=CAe(s.path,a?a.path:"/");n.set(X2(c),s)})};return r(t),n},hVt=function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return t.map(function(n){var r=n.children||n[vc];if(p1(r)){var i=e(r);if(i.length)return Sa({},n)}var o=Sa({},n);return delete o[vc],delete o.children,o}).filter(function(n){return n})},mVt=function(t,n,r,i){var o=hQ({data:t,formatMessage:r,locale:n}),a=i?hVt(o):dVt(o),s=pVt(o);return{breadcrumb:s,menuData:a}};function yce(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 GE(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?yce(Object(n),!0).forEach(function(r){gVt(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):yce(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function gVt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var vVt=function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],n={};return t.forEach(function(r){var i=GE({},r);if(!(!i||!i.key)){!i.children&&i[vc]&&(i.children=i[vc],delete i[vc]);var o=i.children||[];n[X2(i.path||i.key||"/")]=GE({},i),n[i.key||i.path||"/"]=GE({},i),o&&(n=GE(GE({},n),e(o)))}}),n},bVt=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&&!pQ(i)){var o=X2(i);try{if(r&&vx("".concat(o)).test(n)||vx("".concat(o),[]).test(n)||vx("".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})},yVt=function(t,n,r,i){var o=vVt(n),a=Object.keys(o),s=bVt(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)},_Vt=function(t){var n=h.useContext(md),r=n.hashId,i=t.style,o=t.prefixCls,a=t.children,s=t.hasPageContainer,l=s===void 0?0:s,c=Ce("".concat(o,"-content"),r,te(te({},"".concat(o,"-has-header"),t.hasHeader),"".concat(o,"-content-has-page-container"),l>0)),u=t.ErrorBoundary||Uwt;return t.ErrorBoundary===!1?F.jsx(po.Content,{className:c,style:i,children:a}):F.jsx(u,{children:F.jsx(po.Content,{className:c,style:i,children:a})})},SVt=function(){return F.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 200 200",children:[F.jsxs("defs",{children:[F.jsxs("linearGradient",{x1:"62.1023273%",y1:"0%",x2:"108.19718%",y2:"37.8635764%",id:"linearGradient-1",children:[F.jsx("stop",{stopColor:"#4285EB",offset:"0%"}),F.jsx("stop",{stopColor:"#2EC7FF",offset:"100%"})]}),F.jsxs("linearGradient",{x1:"69.644116%",y1:"0%",x2:"54.0428975%",y2:"108.456714%",id:"linearGradient-2",children:[F.jsx("stop",{stopColor:"#29CDFF",offset:"0%"}),F.jsx("stop",{stopColor:"#148EFF",offset:"37.8600687%"}),F.jsx("stop",{stopColor:"#0A60FF",offset:"100%"})]}),F.jsxs("linearGradient",{x1:"69.6908165%",y1:"-12.9743587%",x2:"16.7228981%",y2:"117.391248%",id:"linearGradient-3",children:[F.jsx("stop",{stopColor:"#FA816E",offset:"0%"}),F.jsx("stop",{stopColor:"#F74A5C",offset:"41.472606%"}),F.jsx("stop",{stopColor:"#F51D2C",offset:"100%"})]}),F.jsxs("linearGradient",{x1:"68.1279872%",y1:"-35.6905737%",x2:"30.4400914%",y2:"114.942679%",id:"linearGradient-4",children:[F.jsx("stop",{stopColor:"#FA8E7D",offset:"0%"}),F.jsx("stop",{stopColor:"#F74A5C",offset:"51.2635191%"}),F.jsx("stop",{stopColor:"#F51D2C",offset:"100%"})]})]}),F.jsx("g",{stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd",children:F.jsx("g",{transform:"translate(-20.000000, -20.000000)",children:F.jsx("g",{transform:"translate(20.000000, 20.000000)",children:F.jsxs("g",{children:[F.jsxs("g",{fillRule:"nonzero",children:[F.jsxs("g",{children:[F.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)"}),F.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)"})]}),F.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)"})]}),F.jsx("ellipse",{fill:"url(#linearGradient-4)",cx:"100.519339",cy:"100.436681",rx:"23.6001926",ry:"23.580786"})]})})})})]})},_ce=new fr("antBadgeLoadingCircle",{"0%":{display:"none",opacity:0,overflow:"hidden"},"80%":{overflow:"hidden"},"100%":{display:"unset",opacity:1}}),EVt=function(t){var n,r,i,o,a,s,l,c,u,d,f,p;return te({},"".concat(t.proComponentsCls,"-layout"),te(te(te({},"".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,te(te(te(te(te(te(te(te(te({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"),te(te({},"".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:_ce,animationDuration:".4s",animationTimingFunction:"ease",fontWeight:600,fontSize:16,lineHeight:"22px",verticalAlign:"middle"}},"&-collapsed":te({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:_ce,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(((p=t.layout)===null||p===void 0||(p=p.header)===null||p===void 0?void 0:p.heightLayoutHeader)||56,"px")}}))};function CVt(e,t){var n=t.proLayoutCollapsedWidth;return Gi("ProLayoutSiderMenu",function(r){var i=z(z({},r),{},{componentCls:".".concat(e),proLayoutCollapsedWidth:n});return[EVt(i)]})}var Sce=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=h.useContext(md),p=f.token;h.useEffect(function(){r===!0&&(a==null||a(!0))},[r]);var m=ur(t,["className","style"]),g=pe.useContext(Ln.ConfigContext),v=g.direction,y=CVt("".concat(u,"-sider"),{proLayoutCollapsedWidth:64}),b=y.wrapSSR,_=y.hashId,S=Ce("".concat(u,"-sider"),l,_);if(c)return null;var x=k2(!o,function(){return a==null?void 0:a(!0)});return b(r?F.jsx(FY,z(z({placement:v==="rtl"?"right":"left",className:Ce("".concat(u,"-drawer-sider"),l)},x),{},{style:z({padding:0,height:"100vh"},s),onClose:function(){a==null||a(!0)},maskClosable:!0,closable:!1,getContainer:d||!1,width:i,styles:{body:{height:"100vh",padding:0,display:"flex",flexDirection:"row",backgroundColor:(n=p.layout)===null||n===void 0||(n=n.sider)===null||n===void 0?void 0:n.colorMenuBackground}},children:F.jsx(fce,z(z({},m),{},{isMobile:!0,className:S,collapsed:r?!1:o,splitMenus:!1,originCollapsed:o}))})):F.jsx(fce,z(z({className:S,originCollapsed:o},m),{},{style:s})))},xVt=function(){var t;return typeof process>"u"?oh:((t=process)===null||t===void 0||(t=t.env)===null||t===void 0?void 0:t.ANTD_VERSION)||oh},wVt=function(t){var n,r,i,o,a,s,l,c,u,d,f,p,m,g,v,y,b,_,S,x,E,C,w,O,T,A,I,N,D,M,k,P;return(n=xVt())!==null&&n!==void 0&&n.startsWith("5")?{}:te(te(te({},t.componentCls,te(te({width:"100%",height:"100%"},"".concat(t.proComponentsCls,"-base-menu"),(E={color:(r=t.layout)===null||r===void 0||(r=r.sider)===null||r===void 0?void 0:r.colorTextMenu},te(te(te(te(te(te(te(te(te(te(E,"".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"),te(te({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"),te({},"".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"),te({},"".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"),te({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)"),te(te({},"".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"),te({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}),te(te(te(te(te(E,"".concat(t.antCls,"-menu-submenu-selected"),{color:(p=t.layout)===null||p===void 0||(p=p.sider)===null||p===void 0?void 0:p.colorTextMenuSelected}),"&".concat(t.antCls,"-menu:not(").concat(t.antCls,"-menu-inline) ").concat(t.antCls,"-menu-submenu-open"),{color:(m=t.layout)===null||m===void 0||(m=m.sider)===null||m===void 0?void 0:m.colorTextMenuSelected}),"&".concat(t.antCls,"-menu-vertical"),te({},"".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"),te(te(te(te({},"".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"),te({backgroundColor:(_=t.layout)===null||_===void 0||(_=_.header)===null||_===void 0?void 0:_.colorBgMenuItemSelected,borderRadius:t.borderRadius,transition:"none",color:"".concat((S=t.layout)===null||S===void 0||(S=S.header)===null||S===void 0?void 0:S.colorTextMenuSelected," !important")},"".concat(t.antCls,"-menu-submenu-arrow"),{color:"".concat((x=t.layout)===null||x===void 0||(x=x.header)===null||x===void 0?void 0:x.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"),te(te({},"&".concat(t.antCls,"-menu"),te({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"),te(te({},"".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"),te({color:(w=t.layout)===null||w===void 0||(w=w.header)===null||w===void 0?void 0:w.colorTextMenuActive,borderRadius:t.borderRadius,transition:"none",backgroundColor:(O=t.layout)===null||O===void 0||(O=O.header)===null||O===void 0?void 0:O.colorBgMenuItemSelected},"".concat(t.antCls,"-menu-submenu-arrow"),{color:(T=t.layout)===null||T===void 0||(T=T.header)===null||T===void 0?void 0:T.colorTextMenuActive})),"".concat(t.antCls,"-menu-item-selected"),{color:(A=t.layout)===null||A===void 0||(A=A.header)===null||A===void 0?void 0:A.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"),te(te(te(te({backgroundColor:"rgba(255, 255, 255, 0.42)","-webkit-backdrop-filter":"blur(8px)",backdropFilter:"blur(8px)"},"".concat(t.antCls,"-menu"),te({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:(N=t.layout)===null||N===void 0||(N=N.sider)===null||N===void 0?void 0:N.colorTextMenuSelected}),"".concat(t.antCls,"-menu-submenu-selected"),{color:(D=t.layout)===null||D===void 0||(D=D.sider)===null||D===void 0?void 0:D.colorTextMenuSelected}),"".concat(t.antCls,"-menu:not(").concat(t.antCls,"-menu-horizontal)"),te(te({},"".concat(t.antCls,"-menu-item-selected"),{backgroundColor:"rgba(0, 0, 0, 0.04)",borderRadius:t.borderRadius,color:(M=t.layout)===null||M===void 0||(M=M.sider)===null||M===void 0?void 0:M.colorTextMenuSelected}),"".concat(t.antCls,`-menu-item:hover,
`).concat(t.antCls,`-menu-item-active,
`).concat(t.antCls,"-menu-submenu-title:hover"),te({color:(k=t.layout)===null||k===void 0||(k=k.sider)===null||k===void 0?void 0:k.colorTextMenuActive,borderRadius:t.borderRadius},"".concat(t.antCls,"-menu-submenu-arrow"),{color:(P=t.layout)===null||P===void 0||(P=P.sider)===null||P===void 0?void 0:P.colorTextMenuActive}))))},TVt=function(t){var n,r,i,o;return te(te({},"".concat(t.antCls,"-layout"),{backgroundColor:"transparent !important"}),t.componentCls,te(te(te(te({},"& ".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 OVt(e){return Gi("ProLayout",function(t){var n=z(z({},t),{},{componentCls:".".concat(e)});return[TVt(n),wVt(n)]})}function RVt(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 AVt=function(){var t;return typeof process>"u"?oh:((t=process)===null||t===void 0||(t=t.env)===null||t===void 0?void 0:t.ANTD_VERSION)||oh},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?F.jsx("span",{children:a||o}):F.jsx("span",{onClick:s?function(){return location.href=s}:void 0,children:a||o})},NVt=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},MVt=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:sU(a.replace("?",""))(n)}catch(s){return console.log("path",a,s),!1}});o&&(r=t.get(o))}return r||{path:""}},kVt=function(t){var n=t.location,r=t.breadcrumbMap;return{location:n,breadcrumbMap:r}},PVt=function(t,n,r){var i=RVt(t==null?void 0:t.pathname),o=i.map(function(a){var s=MVt(n,a),l=NVt(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},DVt=function(t){var n=kVt(t),r=n.location,i=n.breadcrumbMap;return r&&r.pathname&&i?PVt(r,i,t):[]},LVt=function(t,n){var r=t.breadcrumbRender,i=t.itemRender,o=n.breadcrumbProps||{},a=o.minLength,s=a===void 0?2:a,l=DVt(t),c=function(f){for(var p=i||IVt,m=arguments.length,g=new Array(m>1?m-1:0),v=1;v<m;v++)g[v-1]=arguments[v];return p==null?void 0:p.apply(void 0,[z(z({},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),M2(AVt(),"5.3.0")>-1?{items:u,itemRender:c}:{routes:u,itemRender:c}};function $Vt(e){return rt(e).reduce(function(t,n){var r=Re(n,2),i=r[0],o=r[1];return t[i]=o,t},{})}var FVt=function e(t,n,r,i){var o=mVt(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:$Vt(s),breadcrumbMap:s,menuData:a}},BVt=function(t){var n=h.useState({}),r=Re(n,2),i=r[0],o=r[1];return h.useEffect(function(){o(tu({layout:qt(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"],jVt=["fixSiderbar","navTheme","layout"],Ece=0,UVt=function(t,n){var r;return t.headerRender===!1||t.pure?null:F.jsx(QUt,z(z({matchMenuKeys:n},t),{},{stylish:(r=t.stylish)===null||r===void 0?void 0:r.header}))},zVt=function(t){return t.footerRender===!1||t.pure?null:t.footerRender?t.footerRender(z({},t),F.jsx(hUt,{})):null},VVt=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,p=Re(f,1),m=p[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=QD(d||[]);if(v&&(v==null?void 0:v.length)<1&&(l||c))return null;if(i==="top"&&!o){var y;return F.jsx(Sce,z(z({matchMenuKeys:n},t),{},{hide:!0,stylish:(y=t.stylish)===null||y===void 0?void 0:y.sider}))}var b=F.jsx(Sce,z(z({matchMenuKeys:n},t),{},{menuData:v,stylish:(r=t.stylish)===null||r===void 0?void 0:r.sider}));return u?u(t,b):b},GVt=function(t,n){var r=n.pageTitleRender,i=mce(t);if(r===!1)return{title:n.title||"",id:"",pageName:""};if(r){var o=r(t,i.title,i);if(typeof o=="string")return mce(z(z({},i),{},{title:o}));Vr(typeof o=="string","pro-layout: renderPageTitle return value should be a string")}return i},WVt=function(t,n,r){return t?n?64:r:0},qVt=function(t){var n,r,i,o,a,s,l,c,u,d,f,p,m,g,v=t||{},y=v.children,b=v.onCollapse,_=v.location,S=_===void 0?{pathname:"/"}:_,x=v.contentStyle,E=v.route,C=v.defaultCollapsed,w=v.style,O=v.siderWidth,T=v.menu,A=v.siderMenuType,I=v.isChildrenLayout,N=v.menuDataRender,D=v.actionRef,M=v.bgLayoutImgList,k=v.formatMessage,P=v.loading,B=h.useMemo(function(){return O||(t.layout==="mix"?215:256)},[t.layout,O]),G=h.useContext(Ln.ConfigContext),L=(n=t.prefixCls)!==null&&n!==void 0?n:G.getPrefixCls("pro"),W=Pn(!1,{value:T==null?void 0:T.loading,onChange:T==null?void 0:T.onLoadingChange}),j=Re(W,2),H=j[0],X=j[1],Q=h.useState(function(){return Ece+=1,"pro-layout-".concat(Ece)}),ue=Re(Q,1),ee=ue[0],K=h.useCallback(function(at){var wt=at.id,Gt=at.defaultMessage,$t=kt(at,HVt);if(k)return k(z({id:wt,defaultMessage:Gt},$t));var zt=lzt();return zt[wt]?zt[wt]:Gt},[k]),se=yK([ee,T==null?void 0:T.params],function(){var at=Ui(rr().mark(function wt(Gt){var $t,zt,Ft,De;return rr().wrap(function(et){for(;;)switch(et.prev=et.next){case 0:return zt=Re(Gt,2),Ft=zt[1],X(!0),et.next=4,T==null||($t=T.request)===null||$t===void 0?void 0:$t.call(T,Ft||{},(E==null?void 0:E.children)||(E==null?void 0:E.routes)||[]);case 4:return De=et.sent,X(!1),et.abrupt("return",De);case 7:case"end":return et.stop()}},wt)}));return function(wt){return at.apply(this,arguments)}}(),{revalidateOnFocus:!1,shouldRetryOnError:!1,revalidateOnReconnect:!1}),le=se.data,oe=se.mutate,ne=se.isLoading;h.useEffect(function(){X(ne)},[ne]);var he=bK(),me=he.cache;h.useEffect(function(){return function(){me instanceof Map&&me.delete(ee)}},[]);var ce=h.useMemo(function(){return FVt(le||(E==null?void 0:E.children)||(E==null?void 0:E.routes)||[],T,K,N)},[K,T,N,le,E==null?void 0:E.children,E==null?void 0:E.routes]),re=ce||{},ve=re.breadcrumb,be=re.breadcrumbMap,xe=re.menuData,we=xe===void 0?[]:xe;D&&T!==null&&T!==void 0&&T.request&&(D.current={reload:function(){oe()}});var de=h.useMemo(function(){return yVt(S.pathname||"/",we||[])},[S.pathname,we]),Ee=h.useMemo(function(){return Array.from(new Set(de.map(function(at){return at.key||at.path||""})))},[de]),Ne=de[de.length-1]||{},Te=BVt(Ne),Ve=z(z({},t),Te),q=Ve.fixSiderbar;Ve.navTheme;var U=Ve.layout,Y=kt(Ve,jVt),ae=oRt(),ye=h.useMemo(function(){return(ae==="sm"||ae==="xs")&&!t.disableMobile},[ae,t.disableMobile]),fe=U!=="top"&&!ye,Ae=Pn(function(){return C!==void 0?C:!!(ye||ae==="md")},{value:t.collapsed,onChange:b}),We=Re(Ae,2),ie=We[0],Be=We[1],Fe=ur(z(z(z({prefixCls:L},t),{},{siderWidth:B},Te),{},{formatMessage:K,breadcrumb:ve,menu:z(z({},T),{},{type:A||(T==null?void 0:T.type),loading:H}),layout:U}),["className","style","breadcrumbRender"]),Pe=GVt(z(z({pathname:S.pathname},Fe),{},{breadcrumbMap:be}),t),Ke=LVt(z(z({},Fe),{},{breadcrumbRender:t.breadcrumbRender,breadcrumbMap:be}),t),tt=VVt(z(z({},Fe),{},{menuData:we,onCollapse:Be,isMobile:ye,collapsed:ie}),Ee),Ge=UVt(z(z({},Fe),{},{children:null,hasSiderMenu:!!tt,menuData:we,isMobile:ye,collapsed:ie,onCollapse:Be}),Ee),Nt=zVt(z({isMobile:ye,collapsed:ie},Fe)),lt=h.useContext(tce),st=lt.isChildrenLayout,It=I!==void 0?I:st,ct="".concat(L,"-layout"),Pt=OVt(ct),Rt=Pt.wrapSSR,Tt=Pt.hashId,Me=Ce(t.className,Tt,"ant-design-pro",ct,te(te(te(te(te({},"screen-".concat(ae),ae),"".concat(ct,"-top-menu"),U==="top"),"".concat(ct,"-is-children"),It),"".concat(ct,"-fix-siderbar"),q),"".concat(ct,"-").concat(U),U)),Ue=WVt(!!fe,ie,B),$e={position:"relative"};(It||x&&x.minHeight)&&($e.minHeight=0),h.useEffect(function(){var at;(at=t.onPageChange)===null||at===void 0||at.call(t,t.location)},[S.pathname,(r=S.pathname)===null||r===void 0?void 0:r.search]);var Le=h.useState(!1),He=Re(Le,2),it=He[0],ft=He[1],Et=h.useState(0),Dt=Re(Et,2),St=Dt[0],bt=Dt[1];fTt(Pe,t.title||!1);var xt=h.useContext(md),ht=xt.token,Vt=h.useMemo(function(){return M&&M.length>0?M==null?void 0:M.map(function(at,wt){return F.jsx("img",{src:at.src,style:z({position:"absolute"},at)},wt)}):null},[M]);return Rt(F.jsx(tce.Provider,{value:z(z({},Fe),{},{breadcrumb:Ke,menuData:we,isMobile:ye,collapsed:ie,hasPageContainer:St,setHasPageContainer:bt,isChildrenLayout:!0,title:Pe.pageName,hasSiderMenu:!!tt,hasHeader:!!Ge,siderWidth:Ue,hasFooter:!!Nt,hasFooterToolbar:it,setHasFooterToolbar:ft,pageTitleInfo:Pe,matchMenus:de,matchMenuKeys:Ee,currentMenu:Ne}),children:t.pure?F.jsx(F.Fragment,{children:y}):F.jsxs("div",{className:Me,children:[Vt||(i=ht.layout)!==null&&i!==void 0&&i.bgLayout?F.jsx("div",{className:Ce("".concat(ct,"-bg-list"),Tt),children:Vt}):null,F.jsxs(po,{style:z({minHeight:"100%",flexDirection:tt?"row":void 0},w),children:[F.jsx(Ln,{theme:{hashed:wy(),token:{controlHeightLG:((o=ht.layout)===null||o===void 0||(o=o.sider)===null||o===void 0?void 0:o.menuHeight)||(ht==null?void 0:ht.controlHeightLG)},components:{Menu:rOe({colorItemBg:((a=ht.layout)===null||a===void 0||(a=a.sider)===null||a===void 0?void 0:a.colorMenuBackground)||"transparent",colorSubItemBg:((s=ht.layout)===null||s===void 0||(s=s.sider)===null||s===void 0?void 0:s.colorMenuBackground)||"transparent",radiusItem:ht.borderRadius,colorItemBgSelected:((l=ht.layout)===null||l===void 0||(l=l.sider)===null||l===void 0?void 0:l.colorBgMenuItemSelected)||(ht==null?void 0:ht.colorBgTextHover),colorItemBgHover:((c=ht.layout)===null||c===void 0||(c=c.sider)===null||c===void 0?void 0:c.colorBgMenuItemHover)||(ht==null?void 0:ht.colorBgTextHover),colorItemBgActive:((u=ht.layout)===null||u===void 0||(u=u.sider)===null||u===void 0?void 0:u.colorBgMenuItemActive)||(ht==null?void 0:ht.colorBgTextActive),colorItemBgSelectedHorizontal:((d=ht.layout)===null||d===void 0||(d=d.sider)===null||d===void 0?void 0:d.colorBgMenuItemSelected)||(ht==null?void 0:ht.colorBgTextHover),colorActiveBarWidth:0,colorActiveBarHeight:0,colorActiveBarBorderSize:0,colorItemText:((f=ht.layout)===null||f===void 0||(f=f.sider)===null||f===void 0?void 0:f.colorTextMenu)||(ht==null?void 0:ht.colorTextSecondary),colorItemTextHover:((p=ht.layout)===null||p===void 0||(p=p.sider)===null||p===void 0?void 0:p.colorTextMenuItemHover)||"rgba(0, 0, 0, 0.85)",colorItemTextSelected:((m=ht.layout)===null||m===void 0||(m=m.sider)===null||m===void 0?void 0:m.colorTextMenuSelected)||"rgba(0, 0, 0, 1)",popupBg:ht==null?void 0:ht.colorBgElevated,subMenuItemBg:ht==null?void 0:ht.colorBgElevated,darkSubMenuItemBg:"transparent",darkPopupBg:ht==null?void 0:ht.colorBgElevated})}},children:tt}),F.jsxs("div",{style:$e,className:"".concat(ct,"-container ").concat(Tt).trim(),children:[Ge,F.jsx(_Vt,z(z({hasPageContainer:St,isChildrenLayout:It},Y),{},{hasHeader:!!Ge,prefixCls:ct,style:x,children:P?F.jsx(cUt,{}):y})),Nt,it&&F.jsx("div",{className:"".concat(ct,"-has-footer"),style:{height:64,marginBlockStart:(g=ht.layout)===null||g===void 0||(g=g.pageContainer)===null||g===void 0?void 0:g.paddingBlockPageContainerContent}})]})]})]})}))},xAe=function(t){var n=t.colorPrimary,r=t.navTheme!==void 0?{dark:t.navTheme==="realDark"}:{};return F.jsx(Ln,{theme:n?{token:{colorPrimary:n}}:void 0,children:F.jsx(CD,z(z({},r),{},{token:t.token,prefixCls:t.prefixCls,children:F.jsx(qVt,z(z({logo:F.jsx(SVt,{})},dAe),{},{location:SK()?window.location:void 0},t))}))})};async function YVt(){return Br("/kaptcha/api/v1/get",{method:"GET",params:{client:Or}})}async function KVt(e,t){return Br("/kaptcha/api/v1/check",{method:"POST",data:{captchaUid:e,captchaCode:t,client:Or}})}var pU=function(e,t){return pU=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])},pU(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");pU(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var Qn=function(){return Qn=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},Qn.apply(this,arguments)};function O_(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);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 Xs(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 Ys(e,t){var n=t&&t.cache?t.cache:tGt,r=t&&t.serializer?t.serializer:eGt,i=t&&t.strategy?t.strategy:ZVt;return i(e,{cache:n,serializer:r})}function QVt(e){return e==null||typeof e=="number"||typeof e=="boolean"}function XVt(e,t,n,r){var i=QVt(r)?r:n(r),o=t.get(i);return typeof o>"u"&&(o=e.call(this,r),t.set(i,o)),o}function wAe(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 TAe(e,t,n,r,i){return n.bind(t,e,r,i)}function ZVt(e,t){var n=e.length===1?XVt:wAe;return TAe(e,this,n,t.cache.create(),t.serializer)}function JVt(e,t){return TAe(e,this,wAe,t.cache.create(),t.serializer)}var eGt=function(){return JSON.stringify(arguments)};function mQ(){this.cache=Object.create(null)}mQ.prototype.get=function(e){return this.cache[e]};mQ.prototype.set=function(e,t){this.cache[e]=t};var tGt={create:function(){return new mQ}},Ks={variadic:JVt};function OAe(e,t,n){if(n===void 0&&(n=Error),!e)throw new n(t)}Ys(function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.NumberFormat).bind.apply(e,Xs([void 0],t,!1)))},{strategy:Ks.variadic});Ys(function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.DateTimeFormat).bind.apply(e,Xs([void 0],t,!1)))},{strategy:Ks.variadic});Ys(function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.PluralRules).bind.apply(e,Xs([void 0],t,!1)))},{strategy:Ks.variadic});Ys(function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.Locale).bind.apply(e,Xs([void 0],t,!1)))},{strategy:Ks.variadic});Ys(function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.ListFormat).bind.apply(e,Xs([void 0],t,!1)))},{strategy:Ks.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 lo;(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"})(lo||(lo={}));var R_;(function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime"})(R_||(R_={}));function Cce(e){return e.type===lo.literal}function nGt(e){return e.type===lo.argument}function RAe(e){return e.type===lo.number}function AAe(e){return e.type===lo.date}function IAe(e){return e.type===lo.time}function NAe(e){return e.type===lo.select}function MAe(e){return e.type===lo.plural}function rGt(e){return e.type===lo.pound}function kAe(e){return e.type===lo.tag}function PAe(e){return!!(e&&typeof e=="object"&&e.type===R_.number)}function hU(e){return!!(e&&typeof e=="object"&&e.type===R_.dateTime)}var DAe=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,iGt=/(?:[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 oGt(e){var t={};return e.replace(iGt,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 aGt=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function sGt(e){if(e.length===0)throw new Error("Number skeleton cannot be empty");for(var t=e.split(aGt).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 lGt(e){return e.replace(/^(.*?)-/,"")}var xce=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,LAe=/^(@+)?(\+|#+)?[rs]?$/g,cGt=/(\*)(0+)|(#+)(0+)|(0+)/g,$Ae=/^(0+)$/;function wce(e){var t={};return e[e.length-1]==="r"?t.roundingPriority="morePrecision":e[e.length-1]==="s"&&(t.roundingPriority="lessPrecision"),e.replace(LAe,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 FAe(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 uGt(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)),!$Ae.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}function Tce(e){var t={},n=FAe(e);return n||t}function dGt(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=lGt(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=Qn(Qn(Qn({},t),{notation:"scientific"}),i.options.reduce(function(l,c){return Qn(Qn({},l),Tce(c))},{}));continue;case"engineering":t=Qn(Qn(Qn({},t),{notation:"engineering"}),i.options.reduce(function(l,c){return Qn(Qn({},l),Tce(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(cGt,function(l,c,u,d,f,p){if(c)t.minimumIntegerDigits=u.length;else{if(d&&f)throw new Error("We currently do not support maximum integer digits");if(p)throw new Error("We currently do not support exact integer digits")}return""});continue}if($Ae.test(i.stem)){t.minimumIntegerDigits=i.stem.length;continue}if(xce.test(i.stem)){if(i.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");i.stem.replace(xce,function(l,c,u,d,f,p){return u==="*"?t.minimumFractionDigits=c.length:d&&d[0]==="#"?t.maximumFractionDigits=d.length:f&&p?(t.minimumFractionDigits=f.length,t.maximumFractionDigits=f.length+p.length):(t.minimumFractionDigits=c.length,t.maximumFractionDigits=c.length),""});var o=i.options[0];o==="w"?t=Qn(Qn({},t),{trailingZeroDisplay:"stripIfInteger"}):o&&(t=Qn(Qn({},t),wce(o)));continue}if(LAe.test(i.stem)){t=Qn(Qn({},t),wce(i.stem));continue}var a=FAe(i.stem);a&&(t=Qn(Qn({},t),a));var s=uGt(i.stem);s&&(t=Qn(Qn({},t),s))}return t}var WR={"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 fGt(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=pGt(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 pGt(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=WR[r||""]||WR[n||""]||WR["".concat(n,"-001")]||WR["001"];return i[0]}var f$,hGt=new RegExp("^".concat(DAe.source,"*")),mGt=new RegExp("".concat(DAe.source,"*$"));function ri(e,t){return{start:e,end:t}}var gGt=!!String.prototype.startsWith&&"_a".startsWith("a",1),vGt=!!String.fromCodePoint,bGt=!!Object.fromEntries,yGt=!!String.prototype.codePointAt,_Gt=!!String.prototype.trimStart,SGt=!!String.prototype.trimEnd,EGt=!!Number.isSafeInteger,CGt=EGt?Number.isSafeInteger:function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},mU=!0;try{var xGt=HAe("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");mU=((f$=xGt.exec("a"))===null||f$===void 0?void 0:f$[0])==="a"}catch{mU=!1}var Oce=gGt?function(t,n,r){return t.startsWith(n,r)}:function(t,n,r){return t.slice(r,r+n.length)===n},gU=vGt?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},Rce=bGt?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},BAe=yGt?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}},wGt=_Gt?function(t){return t.trimStart()}:function(t){return t.replace(hGt,"")},TGt=SGt?function(t){return t.trimEnd()}:function(t){return t.replace(mGt,"")};function HAe(e,t){return new RegExp(e,t)}var vU;if(mU){var Ace=HAe("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");vU=function(t,n){var r;Ace.lastIndex=n;var i=Ace.exec(t);return(r=i[1])!==null&&r!==void 0?r:""}}else vU=function(t,n){for(var r=[];;){var i=BAe(t,n);if(i===void 0||jAe(i)||IGt(i))break;r.push(i),n+=i>=65536?2:1}return gU.apply(void 0,r)};var OGt=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:lo.pound,location:ri(s,this.clonePosition())})}else if(o===60&&!this.ignoreTag&&this.peek()===47){if(r)break;return this.error(Jr.UNMATCHED_CLOSING_TAG,ri(this.clonePosition(),this.clonePosition()))}else if(o===60&&!this.ignoreTag&&bU(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:lo.literal,value:"<".concat(i,"/>"),location:ri(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()||!bU(this.char()))return this.error(Jr.INVALID_TAG,ri(s,this.clonePosition()));var l=this.clonePosition(),c=this.parseTagName();return i!==c?this.error(Jr.UNMATCHED_CLOSING_TAG,ri(l,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:lo.tag,value:i,children:a,location:ri(r,this.clonePosition())},err:null}:this.error(Jr.INVALID_TAG,ri(s,this.clonePosition())))}else return this.error(Jr.UNCLOSED_TAG,ri(r,this.clonePosition()))}else return this.error(Jr.INVALID_TAG,ri(r,this.clonePosition()))},e.prototype.parseTagName=function(){var t=this.offset();for(this.bump();!this.isEOF()&&AGt(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=ri(r,this.clonePosition());return{val:{type:lo.literal,value:i,location:l},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!RGt(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 gU.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(),gU(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,ri(r,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(Jr.EMPTY_ARGUMENT,ri(r,this.clonePosition()));var i=this.parseIdentifierIfPossible().value;if(!i)return this.error(Jr.MALFORMED_ARGUMENT,ri(r,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(Jr.EXPECT_ARGUMENT_CLOSING_BRACE,ri(r,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:lo.argument,value:i,location:ri(r,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(Jr.EXPECT_ARGUMENT_CLOSING_BRACE,ri(r,this.clonePosition())):this.parseArgumentOptions(t,n,i,r);default:return this.error(Jr.MALFORMED_ARGUMENT,ri(r,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var t=this.clonePosition(),n=this.offset(),r=vU(this.message,n),i=n+r.length;this.bumpTo(i);var o=this.clonePosition(),a=ri(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,ri(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=TGt(d.val);if(f.length===0)return this.error(Jr.EXPECT_ARGUMENT_STYLE,ri(this.clonePosition(),this.clonePosition()));var p=ri(u,this.clonePosition());c={style:f,styleLocation:p}}var m=this.tryParseArgumentClose(i);if(m.err)return m;var g=ri(i,this.clonePosition());if(c&&Oce(c==null?void 0:c.style,"::",0)){var v=wGt(c.style.slice(2));if(s==="number"){var d=this.parseNumberSkeletonFromString(v,c.styleLocation);return d.err?d:{val:{type:lo.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=fGt(v,this.locale));var f={type:R_.dateTime,pattern:y,location:c.styleLocation,parsedOptions:this.shouldParseSkeletons?oGt(y):{}},b=s==="date"?lo.date:lo.time;return{val:{type:b,value:r,location:g,style:f},err:null}}}return{val:{type:s==="number"?lo.number:s==="date"?lo.date:lo.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,ri(_,Qn({},_)));this.bumpSpace();var S=this.parseIdentifierIfPossible(),x=0;if(s!=="select"&&S.value==="offset"){if(!this.bumpIf(":"))return this.error(Jr.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,ri(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(),S=this.parseIdentifierIfPossible(),x=d.val}var E=this.tryParsePluralOrSelectOptions(t,s,n,S);if(E.err)return E;var m=this.tryParseArgumentClose(i);if(m.err)return m;var C=ri(i,this.clonePosition());return s==="select"?{val:{type:lo.select,value:r,options:Rce(E.val),location:C},err:null}:{val:{type:lo.plural,value:r,options:Rce(E.val),offset:x,pluralType:s==="plural"?"cardinal":"ordinal",location:C},err:null}}default:return this.error(Jr.INVALID_ARGUMENT_TYPE,ri(a,l))}},e.prototype.tryParseArgumentClose=function(t){return this.isEOF()||this.char()!==125?this.error(Jr.EXPECT_ARGUMENT_CLOSING_BRACE,ri(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,ri(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=sGt(t)}catch{return this.error(Jr.INVALID_NUMBER_SKELETON,n)}return{val:{type:R_.number,tokens:r,location:n,parsedOptions:this.shouldParseSkeletons?dGt(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=ri(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 p=this.clonePosition();if(!this.bumpIf("{"))return this.error(n==="select"?Jr.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:Jr.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,ri(this.clonePosition(),this.clonePosition()));var m=this.parseMessage(t+1,n,r);if(m.err)return m;var g=this.tryParseArgumentClose(p);if(g.err)return g;s.push([c,{value:m.val,location:ri(p,this.clonePosition())}]),l.add(c),this.bumpSpace(),o=this.parseIdentifierIfPossible(),c=o.value,u=o.location}return s.length===0?this.error(n==="select"?Jr.EXPECT_SELECT_ARGUMENT_SELECTOR:Jr.EXPECT_PLURAL_ARGUMENT_SELECTOR,ri(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!a?this.error(Jr.MISSING_OTHER_CLAUSE,ri(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=ri(i,this.clonePosition());return o?(a*=r,CGt(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=BAe(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(Oce(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()&&jAe(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 bU(e){return e>=97&&e<=122||e>=65&&e<=90}function RGt(e){return bU(e)||e===47}function AGt(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 jAe(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 yU(e){e.forEach(function(t){if(delete t.location,NAe(t)||MAe(t))for(var n in t.options)delete t.options[n].location,yU(t.options[n].value);else RAe(t)&&PAe(t.style)||(AAe(t)||IAe(t))&&hU(t.style)?delete t.style.location:kAe(t)&&yU(t.children)})}function NGt(e,t){t===void 0&&(t={}),t=Qn({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var n=new OGt(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||yU(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 Dg=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),Ice=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}(Dg),MGt=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}(Dg),kGt=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}(Dg),Vs;(function(e){e[e.literal=0]="literal",e[e.object=1]="object"})(Vs||(Vs={}));function PGt(e){return e.length<2?e:e.reduce(function(t,n){var r=t[t.length-1];return!r||r.type!==Vs.literal||n.type!==Vs.literal?t.push(n):r.value+=n.value,t},[])}function UAe(e){return typeof e=="function"}function UI(e,t,n,r,i,o,a){if(e.length===1&&Cce(e[0]))return[{type:Vs.literal,value:e[0].value}];for(var s=[],l=0,c=e;l<c.length;l++){var u=c[l];if(Cce(u)){s.push({type:Vs.literal,value:u.value});continue}if(rGt(u)){typeof o=="number"&&s.push({type:Vs.literal,value:n.getNumberFormat(t).format(o)});continue}var d=u.value;if(!(i&&d in i))throw new kGt(d,a);var f=i[d];if(nGt(u)){(!f||typeof f=="string"||typeof f=="number")&&(f=typeof f=="string"||typeof f=="number"?String(f):""),s.push({type:typeof f=="string"?Vs.literal:Vs.object,value:f});continue}if(AAe(u)){var p=typeof u.style=="string"?r.date[u.style]:hU(u.style)?u.style.parsedOptions:void 0;s.push({type:Vs.literal,value:n.getDateTimeFormat(t,p).format(f)});continue}if(IAe(u)){var p=typeof u.style=="string"?r.time[u.style]:hU(u.style)?u.style.parsedOptions:r.time.medium;s.push({type:Vs.literal,value:n.getDateTimeFormat(t,p).format(f)});continue}if(RAe(u)){var p=typeof u.style=="string"?r.number[u.style]:PAe(u.style)?u.style.parsedOptions:void 0;p&&p.scale&&(f=f*(p.scale||1)),s.push({type:Vs.literal,value:n.getNumberFormat(t,p).format(f)});continue}if(kAe(u)){var m=u.children,g=u.value,v=i[g];if(!UAe(v))throw new MGt(g,"function",a);var y=UI(m,t,n,r,i,o),b=v(y.map(function(x){return x.value}));Array.isArray(b)||(b=[b]),s.push.apply(s,b.map(function(x){return{type:typeof x=="string"?Vs.literal:Vs.object,value:x}}))}if(NAe(u)){var _=u.options[f]||u.options.other;if(!_)throw new Ice(u.value,f,Object.keys(u.options),a);s.push.apply(s,UI(_.value,t,n,r,i));continue}if(MAe(u)){var _=u.options["=".concat(f)];if(!_){if(!Intl.PluralRules)throw new Dg(`Intl.PluralRules is not available in this environment.
Try polyfilling it using "@formatjs/intl-pluralrules"
`,Bf.MISSING_INTL_API,a);var S=n.getPluralRules(t,{type:u.pluralType}).select(f-(u.offset||0));_=u.options[S]||u.options.other}if(!_)throw new Ice(u.value,f,Object.keys(u.options),a);s.push.apply(s,UI(_.value,t,n,r,i,f-(u.offset||0)));continue}}return PGt(s)}function DGt(e,t){return t?Qn(Qn(Qn({},e||{}),t||{}),Object.keys(e).reduce(function(n,r){return n[r]=Qn(Qn({},e[r]),t[r]||{}),n},{})):e}function LGt(e,t){return t?Object.keys(e).reduce(function(n,r){return n[r]=DGt(e[r],t[r]),n},Qn({},e)):e}function p$(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,n){e[t]=n}}}}}function $Gt(e){return e===void 0&&(e={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:Ys(function(){for(var t,n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return new((t=Intl.NumberFormat).bind.apply(t,Xs([void 0],n,!1)))},{cache:p$(e.number),strategy:Ks.variadic}),getDateTimeFormat:Ys(function(){for(var t,n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return new((t=Intl.DateTimeFormat).bind.apply(t,Xs([void 0],n,!1)))},{cache:p$(e.dateTime),strategy:Ks.variadic}),getPluralRules:Ys(function(){for(var t,n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return new((t=Intl.PluralRules).bind.apply(t,Xs([void 0],n,!1)))},{cache:p$(e.pluralRules),strategy:Ks.variadic})}}var zAe=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!==Vs.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 UI(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=O_(a,["formatters"]);this.ast=e.__parse(t,Qn(Qn({},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=LGt(e.formats,r),this.formatters=i&&i.formatters||$Gt(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=NGt,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}(),K1;(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"})(K1||(K1={}));var Z2=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,K1.UNSUPPORTED_FORMATTER,n,r)||this}return t}(Z2),BGt=function(e){Iu(t,e);function t(n,r){return e.call(this,K1.INVALID_CONFIG,n,r)||this}return t}(Z2),Nce=function(e){Iu(t,e);function t(n,r){return e.call(this,K1.MISSING_DATA,n,r)||this}return t}(Z2),Nu=function(e){Iu(t,e);function t(n,r,i){var o=e.call(this,K1.FORMAT_ERROR,"".concat(n,`
Locale: `).concat(r,`
`),i)||this;return o.locale=r,o}return t}(Z2),h$=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}(Nu),HGt=function(e){Iu(t,e);function t(n,r){var i=e.call(this,K1.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}(Z2);function Mv(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 jGt=function(e){},UGt=function(e){},VAe={formats:{},messages:{},timeZone:void 0,defaultLocale:"en",defaultFormats:{},fallbackOnEmptyString:!0,onError:jGt,onWarn:UGt};function GAe(){return{dateTime:{},number:{},message:{},relativeTime:{},pluralRules:{},list:{},displayNames:{}}}function n0(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,n){e[t]=n}}}}}function zGt(e){e===void 0&&(e=GAe());var t=Intl.RelativeTimeFormat,n=Intl.ListFormat,r=Intl.DisplayNames,i=Ys(function(){for(var s,l=[],c=0;c<arguments.length;c++)l[c]=arguments[c];return new((s=Intl.DateTimeFormat).bind.apply(s,Xs([void 0],l,!1)))},{cache:n0(e.dateTime),strategy:Ks.variadic}),o=Ys(function(){for(var s,l=[],c=0;c<arguments.length;c++)l[c]=arguments[c];return new((s=Intl.NumberFormat).bind.apply(s,Xs([void 0],l,!1)))},{cache:n0(e.number),strategy:Ks.variadic}),a=Ys(function(){for(var s,l=[],c=0;c<arguments.length;c++)l[c]=arguments[c];return new((s=Intl.PluralRules).bind.apply(s,Xs([void 0],l,!1)))},{cache:n0(e.pluralRules),strategy:Ks.variadic});return{getDateTimeFormat:i,getNumberFormat:o,getMessageFormat:Ys(function(s,l,c,u){return new zAe(s,l,c,Qn({formatters:{getNumberFormat:o,getDateTimeFormat:i,getPluralRules:a}},u||{}))},{cache:n0(e.message),strategy:Ks.variadic}),getRelativeTimeFormat:Ys(function(){for(var s=[],l=0;l<arguments.length;l++)s[l]=arguments[l];return new(t.bind.apply(t,Xs([void 0],s,!1)))},{cache:n0(e.relativeTime),strategy:Ks.variadic}),getPluralRules:a,getListFormat:Ys(function(){for(var s=[],l=0;l<arguments.length;l++)s[l]=arguments[l];return new(n.bind.apply(n,Xs([void 0],s,!1)))},{cache:n0(e.list),strategy:Ks.variadic}),getDisplayNames:Ys(function(){for(var s=[],l=0;l<arguments.length;l++)s[l]=arguments[l];return new(r.bind.apply(r,Xs([void 0],s,!1)))},{cache:n0(e.displayNames),strategy:Ks.variadic})}}function gQ(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 qR(e,t){return Object.keys(e).reduce(function(n,r){return n[r]=Qn({timeZone:t},e[r]),n},{})}function Mce(e,t){var n=Object.keys(Qn(Qn({},e),t));return n.reduce(function(r,i){return r[i]=Qn(Qn({},e[i]||{}),t[i]||{}),r},{})}function kce(e,t){if(!t)return e;var n=zAe.formats;return Qn(Qn(Qn({},n),e),{date:Mce(qR(n.date,t),qR(e.date||{},t)),time:Mce(qR(n.time,t),qR(e.time||{},t))})}var _U=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,p=e.defaultRichTextElements;n===void 0&&(n={id:""});var m=n.id,g=n.defaultMessage;OAe(!!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===lo.literal)return y[0].value;if(!r&&y&&typeof y=="string"&&!p)return y.replace(/'\{(.*?)\}'/gi,"{$1}");if(r=Qn(Qn({},p),r||{}),a=kce(a,f),c=kce(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 h$('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,Qn({formatters:t},i||{}));return b.format(r)}catch(_){d(new h$('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 h$('Error formatting the default message for: "'.concat(v,'", rendering message verbatim'),o,n,_))}return typeof y=="string"?y:typeof g=="string"?g:v},WAe=["formatMatcher","timeZone","hour12","weekday","era","year","month","day","hour","minute","second","timeZoneName","hourCycle","dateStyle","timeStyle","calendar","numberingSystem","fractionalSecondDigits"];function ZD(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=Qn(Qn({},s&&{timeZone:s}),l&&gQ(o,t,l,a)),u=Mv(r,WAe,c);return t==="time"&&!u.hour&&!u.minute&&!u.second&&!u.timeStyle&&!u.dateStyle&&(u=Qn(Qn({},u),{hour:"numeric",minute:"numeric"})),n(i,u)}function VGt(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 ZD(e,"date",t,a).format(s)}catch(l){e.onError(new Nu("Error formatting date.",e.locale,l))}return String(s)}function GGt(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 ZD(e,"time",t,a).format(s)}catch(l){e.onError(new Nu("Error formatting time.",e.locale,l))}return String(s)}function WGt(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=Mv(s,WAe,l?{timeZone:l}:{});try{return t(c,d).formatRange(i,o)}catch(f){u(new Nu("Error formatting date time range.",e.locale,f))}return String(i)}function qGt(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 ZD(e,"date",t,a).formatToParts(s)}catch(l){e.onError(new Nu("Error formatting date.",e.locale,l))}return[]}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 ZD(e,"time",t,a).formatToParts(s)}catch(l){e.onError(new Nu("Error formatting time.",e.locale,l))}return[]}var KGt=["style","type","fallback","languageDisplay"];function QGt(e,t,n,r){var i=e.locale,o=e.onError,a=Intl.DisplayNames;a||o(new Dg(`Intl.DisplayNames is not available in this environment.
Try polyfilling it using "@formatjs/intl-displaynames"
`,Bf.MISSING_INTL_API));var s=Mv(r,KGt);try{return t(i,s).of(n)}catch(l){o(new Nu("Error formatting display name.",i,l))}}var XGt=["type","style"],Pce=Date.now();function ZGt(e){return"".concat(Pce,"_").concat(e,"_").concat(Pce)}function JGt(e,t,n,r){r===void 0&&(r={});var i=qAe(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 qAe(e,t,n,r){var i=e.locale,o=e.onError;r===void 0&&(r={});var a=Intl.ListFormat;a||o(new Dg(`Intl.ListFormat is not available in this environment.
Try polyfilling it using "@formatjs/intl-listformat"
`,Bf.MISSING_INTL_API));var s=Mv(r,XGt);try{var l={},c=n.map(function(u,d){if(typeof u=="object"){var f=ZGt(d);return l[f]=u,f}return String(u)});return t(i,s).formatToParts(c).map(function(u){return u.type==="literal"?u:Qn(Qn({},u),{value:l[u.value]||u.value})})}catch(u){o(new Nu("Error formatting list.",i,u))}return n}var eWt=["type"];function tWt(e,t,n,r){var i=e.locale,o=e.onError;r===void 0&&(r={}),Intl.PluralRules||o(new Dg(`Intl.PluralRules is not available in this environment.
Try polyfilling it using "@formatjs/intl-pluralrules"
`,Bf.MISSING_INTL_API));var a=Mv(r,eWt);try{return t(i,a).select(n)}catch(s){o(new Nu("Error formatting plural.",i,s))}return"other"}var nWt=["numeric","style"];function rWt(e,t,n){var r=e.locale,i=e.formats,o=e.onError;n===void 0&&(n={});var a=n.format,s=!!a&&gQ(i,"relative",a,o)||{},l=Mv(n,nWt,s);return t(r,l)}function iWt(e,t,n,r,i){i===void 0&&(i={}),r||(r="second");var o=Intl.RelativeTimeFormat;o||e.onError(new Dg(`Intl.RelativeTimeFormat is not available in this environment.
Try polyfilling it using "@formatjs/intl-relativetimeformat"
`,Bf.MISSING_INTL_API));try{return rWt(e,t,i).format(n,r)}catch(a){e.onError(new Nu("Error formatting relative time.",e.locale,a))}return String(n)}var oWt=["style","currency","unit","unitDisplay","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","currencyDisplay","currencySign","notation","signDisplay","unit","unitDisplay","numberingSystem","trailingZeroDisplay","roundingPriority","roundingIncrement","roundingMode"];function YAe(e,t,n){var r=e.locale,i=e.formats,o=e.onError;n===void 0&&(n={});var a=n.format,s=a&&gQ(i,"number",a,o)||{},l=Mv(n,oWt,s);return t(r,l)}function aWt(e,t,n,r){r===void 0&&(r={});try{return YAe(e,t,r).format(n)}catch(i){e.onError(new Nu("Error formatting number.",e.locale,i))}return String(n)}function sWt(e,t,n,r){r===void 0&&(r={});try{return YAe(e,t,r).formatToParts(n)}catch(i){e.onError(new Nu("Error formatting number.",e.locale,i))}return[]}function lWt(e){var t=e?e[Object.keys(e)[0]]:void 0;return typeof t=="string"}function cWt(e){e.onWarn&&e.defaultRichTextElements&&lWt(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 uWt(e,t){var n=zGt(t),r=Qn(Qn({},VAe),e),i=r.locale,o=r.defaultLocale,a=r.onError;return i?!Intl.NumberFormat.supportedLocalesOf(i).length&&a?a(new Nce('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 Nce('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 BGt('"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"),cWt(r),Qn(Qn({},r),{formatters:n,formatNumber:aWt.bind(null,r,n.getNumberFormat),formatNumberToParts:sWt.bind(null,r,n.getNumberFormat),formatRelativeTime:iWt.bind(null,r,n.getRelativeTimeFormat),formatDate:VGt.bind(null,r,n.getDateTimeFormat),formatDateToParts:qGt.bind(null,r,n.getDateTimeFormat),formatTime:GGt.bind(null,r,n.getDateTimeFormat),formatDateTimeRange:WGt.bind(null,r,n.getDateTimeFormat),formatTimeToParts:YGt.bind(null,r,n.getDateTimeFormat),formatPlural:tWt.bind(null,r,n.getPluralRules),formatMessage:_U.bind(null,r,n),$t:_U.bind(null,r,n),formatList:JGt.bind(null,r,n.getListFormat),formatListToParts:qAe.bind(null,r,n.getListFormat),formatDisplayName:QGt.bind(null,r,n.getDisplayNames)})}function KAe(e){OAe(e,"[React Intl] Could not find required `intl` object. <IntlProvider> needs to exist in the component ancestry.")}var QAe=Qn(Qn({},VAe),{textComponent:h.Fragment});function dWt(e){return function(t){return e(h.Children.toArray(t))}}function SU(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 XAe={exports:{}},Ai={};/** @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 qa=typeof Symbol=="function"&&Symbol.for,vQ=qa?Symbol.for("react.element"):60103,bQ=qa?Symbol.for("react.portal"):60106,JD=qa?Symbol.for("react.fragment"):60107,e3=qa?Symbol.for("react.strict_mode"):60108,t3=qa?Symbol.for("react.profiler"):60114,n3=qa?Symbol.for("react.provider"):60109,r3=qa?Symbol.for("react.context"):60110,yQ=qa?Symbol.for("react.async_mode"):60111,i3=qa?Symbol.for("react.concurrent_mode"):60111,o3=qa?Symbol.for("react.forward_ref"):60112,a3=qa?Symbol.for("react.suspense"):60113,fWt=qa?Symbol.for("react.suspense_list"):60120,s3=qa?Symbol.for("react.memo"):60115,l3=qa?Symbol.for("react.lazy"):60116,pWt=qa?Symbol.for("react.block"):60121,hWt=qa?Symbol.for("react.fundamental"):60117,mWt=qa?Symbol.for("react.responder"):60118,gWt=qa?Symbol.for("react.scope"):60119;function kc(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case vQ:switch(e=e.type,e){case yQ:case i3:case JD:case t3:case e3:case a3:return e;default:switch(e=e&&e.$$typeof,e){case r3:case o3:case l3:case s3:case n3:return e;default:return t}}case bQ:return t}}}function ZAe(e){return kc(e)===i3}Ai.AsyncMode=yQ;Ai.ConcurrentMode=i3;Ai.ContextConsumer=r3;Ai.ContextProvider=n3;Ai.Element=vQ;Ai.ForwardRef=o3;Ai.Fragment=JD;Ai.Lazy=l3;Ai.Memo=s3;Ai.Portal=bQ;Ai.Profiler=t3;Ai.StrictMode=e3;Ai.Suspense=a3;Ai.isAsyncMode=function(e){return ZAe(e)||kc(e)===yQ};Ai.isConcurrentMode=ZAe;Ai.isContextConsumer=function(e){return kc(e)===r3};Ai.isContextProvider=function(e){return kc(e)===n3};Ai.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===vQ};Ai.isForwardRef=function(e){return kc(e)===o3};Ai.isFragment=function(e){return kc(e)===JD};Ai.isLazy=function(e){return kc(e)===l3};Ai.isMemo=function(e){return kc(e)===s3};Ai.isPortal=function(e){return kc(e)===bQ};Ai.isProfiler=function(e){return kc(e)===t3};Ai.isStrictMode=function(e){return kc(e)===e3};Ai.isSuspense=function(e){return kc(e)===a3};Ai.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===JD||e===i3||e===t3||e===e3||e===a3||e===fWt||typeof e=="object"&&e!==null&&(e.$$typeof===l3||e.$$typeof===s3||e.$$typeof===n3||e.$$typeof===r3||e.$$typeof===o3||e.$$typeof===hWt||e.$$typeof===mWt||e.$$typeof===gWt||e.$$typeof===pWt)};Ai.typeOf=kc;XAe.exports=Ai;var vWt=XAe.exports,JAe=vWt,bWt={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},yWt={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},eIe={};eIe[JAe.ForwardRef]=bWt;eIe[JAe.Memo]=yWt;var _Q=typeof window<"u"&&!window.__REACT_INTL_BYPASS_GLOBAL_CONTEXT__?window.__REACT_INTL_CONTEXT__||(window.__REACT_INTL_CONTEXT__=h.createContext(null)):h.createContext(null);_Q.Consumer;var _Wt=_Q.Provider,SWt=_Wt,EWt=_Q;function Si(){var e=h.useContext(EWt);return KAe(e),e}var EU;(function(e){e.formatDate="FormattedDate",e.formatTime="FormattedTime",e.formatNumber="FormattedNumber",e.formatList="FormattedList",e.formatDisplayName="FormattedDisplayName"})(EU||(EU={}));var CU;(function(e){e.formatDate="FormattedDateParts",e.formatTime="FormattedTimeParts",e.formatNumber="FormattedNumberParts",e.formatList="FormattedListParts"})(CU||(CU={}));function tIe(e){var t=function(n){var r=Si(),i=n.value,o=n.children,a=O_(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=CU[e],t}function J2(e){var t=function(n){var r=Si(),i=n.value,o=n.children,a=O_(n,["value","children"]),s=r[e](i,a);if(typeof o=="function")return o(s);var l=r.textComponent||h.Fragment;return h.createElement(l,null,s)};return t.displayName=EU[e],t}function nIe(e){return e&&Object.keys(e).reduce(function(t,n){var r=e[n];return t[n]=UAe(r)?dWt(r):r,t},{})}var Dce=function(e,t,n,r){for(var i=[],o=4;o<arguments.length;o++)i[o-4]=arguments[o];var a=nIe(r),s=_U.apply(void 0,Xs([e,t,n,a],i,!1));return Array.isArray(s)?h.Children.toArray(s):s},Lce=function(e,t){var n=e.defaultRichTextElements,r=O_(e,["defaultRichTextElements"]),i=nIe(n),o=uWt(Qn(Qn(Qn({},QAe),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 Qn(Qn({},o),{formatMessage:Dce.bind(null,a,o.formatters),$t:Dce.bind(null,a,o.formatters)})};function m$(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 CWt=function(e){Iu(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.cache=GAe(),n.state={cache:n.cache,intl:Lce(m$(n.props),n.cache),prevConfig:m$(n.props)},n}return t.getDerivedStateFromProps=function(n,r){var i=r.prevConfig,o=r.cache,a=m$(n);return SU(i,a)?null:{intl:Lce(a,o),prevConfig:a}},t.prototype.render=function(){return KAe(this.state.intl),h.createElement(SWt,{value:this.state.intl},this.props.children)},t.displayName="IntlProvider",t.defaultProps=QAe,t}(h.PureComponent);function xWt(e,t){var n=e.values,r=O_(e,["values"]),i=t.values,o=O_(t,["values"]);return SU(i,n)&&SU(r,o)}function rIe(e){var t=Si(),n=t.formatMessage,r=t.textComponent,i=r===void 0?h.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,p={id:o,description:a,defaultMessage:s},m=n(p,l,{ignoreTag:f});return typeof c=="function"?c(Array.isArray(m)?m:[m]):d?h.createElement(d,null,h.Children.toArray(m)):h.createElement(h.Fragment,null,m)}rIe.displayName="FormattedMessage";var ad=h.memo(rIe,xWt);ad.displayName="MemoizedFormattedMessage";J2("formatDate");J2("formatTime");J2("formatNumber");J2("formatList");J2("formatDisplayName");tIe("formatDate");tIe("formatTime");const QS=({onKaptchaChange:e,onKaptchaCheck:t})=>{const n=Si(),[r,i]=h.useState(),[o,a]=h.useState(),s=async()=>{const u=await YVt();u.data.code===200&&(i(u.data.data.captchaUid),a(u.data.data.captchaImage))},l=async(u,d)=>{const f=await KVt(u,d);console.log("checkCaptcha response",f),f.data.code===200?t&&t(!0):t&&t(!1)};h.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 F.jsx(F.Fragment,{children:o&&F.jsxs(F.Fragment,{children:[F.jsx(Co,{onChange:c,prefix:F.jsx(A0t,{}),placeholder:n.formatMessage({id:"captcha",defaultMessage:"captcha"}),style:{width:"65%",float:"left",height:40}}),F.jsx("img",{src:o,alt:"captcha",onClick:s})]})})},$ce=({loginType:e,onKaptchaChange:t,onKaptchaCheck:n,onRememberChange:r})=>{const i=Si(),[o,a]=h.useState(!1);return h.useEffect(()=>{if(o)return;const s=localStorage.getItem(cc);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]),F.jsx(F.Fragment,{children:e==="account"&&F.jsxs("div",{children:[F.jsx(di,{name:"username",fieldProps:{size:"large",prefix:F.jsx(cD,{className:"prefixIcon"}),onChange:()=>{a(!0)},onClear:()=>{console.log("onClear");const s=localStorage.getItem(cc);if(s)try{const l=JSON.parse(s),{username:c,...u}=l;console.log("username",c),console.log("rest",u),localStorage.setItem(cc,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:F.jsx(ad,{id:"pages.login.username.required",defaultMessage:"请输入邮箱!"})}]}),F.jsx(di.Password,{name:"password",fieldProps:{size:"large",prefix:F.jsx(xv,{className:"prefixIcon"})},placeholder:i.formatMessage({id:"pages.login.password.placeholder",defaultMessage:"密码"}),rules:[{required:!0,message:F.jsx(ad,{id:"pages.login.password.required",defaultMessage:"请输入密码!"})}]}),F.jsx(Dr.Item,{name:"captchaCode",rules:[{required:!0,message:i.formatMessage({id:"pages.login.captcha.required",defaultMessage:"请输入验证码!"})}],children:F.jsx(QS,{onKaptchaChange:t,onKaptchaCheck:n})})]})})};async function wWt(e){return Br("/auth/v1/login",{method:"POST",data:{...e,client:Or}})}async function SQ(e){return Br("/auth/v1/send/mobile",{method:"POST",data:{...e,client:Or}})}async function iIe(e){return Br("/auth/v1/send/email",{method:"POST",data:{...e,client:Or}})}async function TWt(e){return Br("/auth/v1/login/mobile",{method:"POST",data:{...e,client:Or}})}async function OWt(e,t){return Br("/auth/v1/vip/scan/query",{method:"GET",params:{deviceUid:e,forceRefresh:t,client:Or}})}async function RWt(e){return Br("/auth/v1/vip/scan/login",{method:"POST",data:{...e,client:Or}})}async function AWt(e){return Br("/api/v1/user/logout",{method:"POST",data:{client:Or}})}const IWt=({loginType:e,onKaptchaChange:t,onKaptchaCheck:n,onRememberChange:r})=>{const i=Si(),[o,a]=h.useState(""),[s,l]=h.useState(""),[c,u]=h.useState(!1),[d,f]=h.useState(!1);h.useEffect(()=>{if(d)return;const y=localStorage.getItem(cc);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 p=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 F.jsxs("div",{children:[F.jsx("span",{role:"img","aria-label":y.label,style:{marginRight:8},children:y.icon}),y.label," (+",b,")"]})};return F.jsx(F.Fragment,{children:e==="mobile"&&F.jsxs(F.Fragment,{children:[F.jsxs(S2,{gutter:16,children:[F.jsx(j1,{span:10,children:F.jsx(q2,{name:"country",options:g,fieldProps:{size:"large",placeholder:i.formatMessage({id:"pages.login.country.placeholder",defaultMessage:"选择国家/地区"}),optionLabelProp:"label",optionItemRender:v},initialValue:"86"})}),F.jsx(j1,{span:14,children:F.jsx(di,{fieldProps:{size:"large",prefix:F.jsx(w2,{className:"prefixIcon"}),onChange:()=>{f(!0)},onClear:()=>{console.log("onClear");const y=localStorage.getItem(cc);if(y)try{const b=JSON.parse(y),{mobile:_,...S}=b;console.log("saved:",_,b),localStorage.setItem(cc,JSON.stringify(S))}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:F.jsx(ad,{id:"pages.login.phoneNumber.required",defaultMessage:"请输入手机号!"})},{pattern:/^1\d{10}$/,message:F.jsx(ad,{id:"pages.login.phoneNumber.invalid",defaultMessage:"手机号格式错误!"})}]})})]}),F.jsx(Dr.Item,{name:"captchaCode",rules:[{required:!0,message:i.formatMessage({id:"pages.login.captcha.required",defaultMessage:"请输入验证码!"})}],children:F.jsx(QS,{onKaptchaChange:p,onKaptchaCheck:m})}),F.jsx(L2,{fieldProps:{size:"large",prefix:F.jsx(xv,{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:F.jsx(ad,{id:"pages.login.captcha.required",defaultMessage:"请输入验证码!"})}],onGetCaptcha:async y=>{if(console.log("mobile:",y),y&&y.length===11){const _=await SQ({mobile:y,type:S7e,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("手机号格式错误")}}),F.jsx(K_e,{message:F.jsx(ad,{id:"pages.login.auto.register",defaultMessage:"Mobile will auto register"}),type:"info"})]})})},NWt=({loginType:e})=>{const t=Si(),n=ka(),r=Ra(p=>p.setUserInfo),i=HT(p=>p.setAccessToken),{deviceUid:o,setDeviceUid:a}=Ra(p=>({deviceUid:p.deviceUid,setDeviceUid:p.setDeviceUid})),[s,l]=h.useState("login"),[c,u]=h.useState("loading"),d=async p=>{console.log("handleScanLogin values: ",p),Wt.loading(t.formatMessage({id:"logging",defaultMessage:"logging..."}));const m=await RWt({...p});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"),GB()):(Wt.destroy(),Wt.error(m.data.message))},f=async p=>{if(e!="scan")return;const m=await OWt(o,p);if(m.data.code===200){const g=m.data.data;if(console.log("handleScanQuery status: ",g.status),g.status===T7e)u("active"),l("deviceUid="+g.deviceUid+"&code="+g.content);else if(g.status===O7e)u("scanned");else if(g.status===A7e)u("expired");else if(g.status===R7e){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 h.useEffect(()=>{console.log("scan deviceUid:",o),(o===void 0||o==="")&&a(Y5()),f(!0);const p=setInterval(()=>{f(!1)},3e3);return()=>{clearInterval(p)}},[e,o]),F.jsx(F.Fragment,{children:e==="scan"&&F.jsx(F.Fragment,{children:F.jsx(ETe,{style:{margin:"auto"},value:s,status:c,onRefresh:()=>{console.log("onRefresh"),f(!0)}})})})},oIe=()=>{const{token:e}=Cs.useToken(),{isCustomServer:t,setIsCustomServer:n}=h.useContext(cs),[r]=Dr.useForm(),[i,o]=h.useState(!1),[a,s]=h.useState(""),[l,c]=h.useState(""),u=Si(),d=()=>{console.log("switch server"),n(m=>!m)};h.useEffect(()=>{a&&a.length>0&&(r.setFieldsValue({apiUrl:a}),console.log("apiUrl:",a))},[a]),h.useEffect(()=>{if(t){const m=localStorage.getItem(Zb);m==="true"&&(o(!0),r.setFieldsValue({isCustomServerEnabled:!0})),console.log("isCustomServer customEnabled:",m);const g=localStorage.getItem(_C);g&&r.setFieldsValue({apiUrl:Qv(g)});const v=localStorage.getItem(SC);v&&r.setFieldsValue({websocketUrl:Qv(v)})}},[t]);const f=m=>{if(console.log("handleCustomServerChange e:",m),o(m.target.checked),m.target.checked){const g=localStorage.getItem(_C);g&&r.setFieldsValue({apiUrl:Qv(g)});const v=localStorage.getItem(SC);v&&r.setFieldsValue({websocketUrl:Qv(v)}),console.log("initData apiUrl:",g,"websocketUrl:",v)}else localStorage.setItem(Zb,"false")},p=(m,g)=>(console.log("props:",m,g),F.jsxs("div",{style:{display:"flex",justifyContent:"center",gap:"8px"},children:[F.jsx(Dn,{icon:F.jsx(Ymt,{}),onClick:d,children:u.formatMessage({id:"server.button.back"})},"back"),F.jsx(Dn,{type:"primary",onClick:()=>{let v=m.form.getFieldValue("apiUrl");v=Qv(v.trim());let y=m.form.getFieldValue("websocketUrl");y=Qv(y.trim()),v&&v.trim().length>0&&y&&y.trim().length>0?(localStorage.setItem(_C,v),localStorage.setItem(SC,y),localStorage.setItem(Zb,"true"),Wt.success(u.formatMessage({id:"server.save.success"}))):Wt.error("请输入正确的服务器地址")},children:u.formatMessage({id:"server.button.save"})},"submit"),F.jsx(Dn,{onClick:()=>{var v;(v=m.form)==null||v.resetFields(),s(""),localStorage.setItem(Zb,"false"),localStorage.setItem(_C,""),localStorage.setItem(SC,""),Wt.success(u.formatMessage({id:"server.reset.success"}))},children:u.formatMessage({id:"server.button.reset"})},"reset"),F.jsx(Dn,{onClick:()=>{n_("https://www.weiyuai.cn/docs/zh-CN/docs/manual/agent/auth/login")},children:u.formatMessage({id:"server.button.help"})},"help")]}));return F.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:F.jsxs(Dr,{className:"ant-pro-form-server-main",form:r,submitter:{render:p},children:[F.jsx(qK,{name:"isCustomServerEnabled",fieldProps:{onChange:f},children:u.formatMessage({id:"server.custom.enable"})}),i&&F.jsxs(F.Fragment,{children:[F.jsx(di,{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)}}),F.jsx(di,{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)}})]})]})})},MWt=({isModel:e=!1})=>{const t=Si(),[n]=Dr.useForm(),r=ka(),{isLoggedIn:i}=h.useContext(cs),{token:o}=Cs.useToken(),[a,s]=h.useState("/notebase/logo.png"),[l,c]=h.useState(""),[u,d]=h.useState(""),f=localStorage.getItem(FB),[p]=h.useState(f||"/"),[m,g]=h.useState("account"),v=Ra(K=>K.setUserInfo),y=HT(K=>K.setAccessToken),{isCustomServer:b,setIsCustomServer:_}=h.useContext(cs),[S,x]=h.useState(!1),[E,C]=h.useState(),[w,O]=h.useState(Q$e),[T,A]=h.useState("https://www.weiyuai.cn/terms.html");h.useEffect(()=>{i&&!e&&r(p)},[i,r,e]);const I=K=>{console.log(`onPrivacyProtocolChange checked = ${K.target.checked}`),x(K.target.checked);const se=localStorage.getItem(cc);if(se)try{const{remember:le}=JSON.parse(se);le&&setTimeout(()=>{n.setFieldsValue({remember:le})},0)}catch(le){console.error("Failed to parse saved credentials:",le)}},N=()=>{n_(w)},D=()=>{n_(T)},[M,k]=h.useState(""),P=async(K,se)=>{k(K),n.setFieldValue("captchaCode",se)},B=async K=>{console.log("handleKaptchaCheck:",K)},G=async K=>{if(console.log("handleSubmit values: ",K,m),!S){Wt.error("请阅读并同意隐私协议");return}Wt.loading(t.formatMessage({id:"logging",defaultMessage:"logging..."}));const se=localStorage.getItem(cc);let le=!1;if(se)try{le=JSON.parse(se).remember}catch(ne){console.error("Failed to parse saved credentials:",ne)}localStorage.setItem(cc,JSON.stringify({username:K.username,remember:le}));const oe=await wWt({...K});console.log("LoginResult:",oe.data),oe.data.code===200?(Wt.destroy(),Wt.success(t.formatMessage({id:"pages.login.success",defaultMessage:"login success"})),le&&localStorage.setItem(cc,JSON.stringify({username:K.username,password:K.password,remember:!0})),v(oe.data.data.user),y(oe.data.data.accessToken),e||r(p),GB()):(Wt.destroy(),Wt.error(t.formatMessage({id:oe.data.message,defaultMessage:oe.data.message})))},L=K=>{n.setFieldsValue({mobile:K})},W=async K=>{if(!S){Wt.error(t.formatMessage({id:"login.privacy.required",defaultMessage:"请阅读并同意隐私协议"}));return}const se=localStorage.getItem(cc);let le={};if(se)try{le=JSON.parse(se)}catch(ne){console.error("Failed to parse saved credentials:",ne)}localStorage.setItem(cc,JSON.stringify({...le,mobile:K.mobile}));const oe=await TWt({...K});console.log("LoginMobileResult:",oe),oe.data.code===200?(Wt.destroy(),Wt.success(t.formatMessage({id:"pages.login.success",defaultMessage:"login success"})),v(oe.data.data.user),y(oe.data.data.accessToken),e||r("/"),GB()):(Wt.destroy(),Wt.error(t.formatMessage({id:oe.data.message,defaultMessage:oe.data.message})))},j=()=>{console.log("switch server"),_(K=>!K)},H=()=>{console.log("handleAnonymousLogin"),r("/anonymous")},X=()=>{if(ud)return{}},Q=(K,se)=>{n.setFieldsValue({username:K,remember:se});const le=localStorage.getItem(cc);if(le&&se)try{const{password:oe}=JSON.parse(le);oe&&n.setFieldsValue({password:oe})}catch(oe){console.error("Failed to parse saved credentials:",oe)}},ue=async()=>{var se,le,oe,ne,he,me,ce,re,ve;console.log("getConfig");const K=await Cbe();C(K),(se=K==null?void 0:K.custom)!=null&&se.enabled&&!uje()?((le=K==null?void 0:K.custom)!=null&&le.logo?s((oe=K==null?void 0:K.custom)==null?void 0:oe.logo):s("/notebase/logo.png"),(ne=K==null?void 0:K.custom)!=null&&ne.name?c((he=K==null?void 0:K.custom)==null?void 0:he.name):c(t.formatMessage({id:"app.title"})),(me=K==null?void 0:K.custom)!=null&&me.description?d((ce=K==null?void 0:K.custom)==null?void 0:ce.description):d(t.formatMessage({id:"slogan"})),(re=K==null?void 0:K.custom)!=null&&re.privacyPolicyUrl&&O(K.custom.privacyPolicyUrl),(ve=K==null?void 0:K.custom)!=null&&ve.termsOfServiceUrl&&A(K.custom.termsOfServiceUrl)):(s("/notebase/logo.png"),c(t.formatMessage({id:"app.title"})),d(t.formatMessage({id:"slogan"}))),Ebe()},ee=()=>{var se,le,oe;const K=[];return((se=E==null?void 0:E.custom)==null?void 0:se.loginUsernameEnable)!==!1&&K.push({key:"account",label:t.formatMessage({id:"pages.login.accountLogin.tab",defaultMessage:"账户密码登录"}),children:F.jsx($ce,{loginType:m,onKaptchaChange:P,onKaptchaCheck:B,onRememberChange:Q})}),((le=E==null?void 0:E.custom)==null?void 0:le.loginMobileEnable)!==!1&&K.push({key:"mobile",label:t.formatMessage({id:"pages.login.phoneLogin.tab",defaultMessage:"手机号登录"}),children:F.jsx(IWt,{loginType:m,onKaptchaChange:P,onKaptchaCheck:B,onRememberChange:L})}),((oe=E==null?void 0:E.custom)==null?void 0:oe.loginScanEnable)!==!1&&Z$e&&K.push({key:"scan",label:t.formatMessage({id:"pages.login.scanLogin.tab",defaultMessage:"扫码登录"}),children:F.jsx(NWt,{loginType:m})}),K.length===0&&K.push({key:"account",label:t.formatMessage({id:"pages.login.accountLogin.tab",defaultMessage:"账户密码登录"}),children:F.jsx($ce,{loginType:m,onKaptchaChange:P,onKaptchaCheck:B,onRememberChange:Q})}),K};return h.useEffect(()=>{gye(),ue()},[]),h.useEffect(()=>{if(E){const K=ee();if(K.length>0){const se=K[0].key;se&&se!==m&&g(se)}}},[E]),F.jsx(CD,{hashed:!1,children:F.jsxs("div",{style:{backgroundColor:o.colorBgContainer,textAlign:"center",height:"100%"},children:[!b&&F.jsxs(FRe,{form:n,contentStyle:{minWidth:400},logo:F.jsx("img",{alt:"logo",src:J$e}),title:e7e,initialValues:X(),onFinish:async K=>{if(console.log("login:",K),m==="account"){const se={username:K.username,password:K.password,captchaUid:M,captchaCode:K.captchaCode,platform:hu};await G(se)}else if(m==="mobile"){const se={mobile:K.mobile,code:K.code,captchaUid:M,captchaCode:K.captchaCode,platform:hu};await W(se)}else console.log("scan login type")},actions:ud&&F.jsxs(Ji,{children:[F.jsx(ad,{id:"pages.login.loginWith",defaultMessage:"其他登录方式"}),F.jsx(Dn,{type:"link",onClick:H,children:t.formatMessage({id:"pages.login.anonymousLogin",defaultMessage:"匿名登录"})})]}),children:[F.jsx(SS,{centered:!0,items:ee(),activeKey:m,onChange:K=>g(K)}),F.jsxs("div",{style:{marginBlockEnd:24,textAlign:"left",marginTop:10},children:[F.jsx(lh,{checked:S,onChange:I,children:F.jsxs("span",{children:[t.formatMessage({id:"login.privacy.agreement.prefix",defaultMessage:"同意"}),F.jsx(Dn,{size:"small",type:"link",onClick:N,style:{padding:0,height:"auto"},children:t.formatMessage({id:"login.privacy.agreement",defaultMessage:"《用户隐私协议》"})}),t.formatMessage({id:"login.privacy.agreement.and",defaultMessage:"和"}),F.jsx(Dn,{size:"small",type:"link",onClick:D,style:{padding:0,height:"auto"},children:t.formatMessage({id:"login.terms.agreement",defaultMessage:"《服务条款》"})})]})}),X$e&&F.jsx(Dn,{type:"link",style:{float:"right",marginBottom:24},onClick:j,children:t.formatMessage({id:"login.switch.server",defaultMessage:"切换服务器"})})]})]}),b&&F.jsx(oIe,{})]})})},xU=({isModel:e=!1})=>F.jsx(PP,{children:F.jsx(MWt,{isModel:e})}),kWt=()=>{ka();const{token:e}=Cs.useToken(),[t,n]=h.useState("phone");return nc(e.colorTextBase,.2),F.jsx(CD,{hashed:!1,children:F.jsx("div",{style:{backgroundColor:e.colorBgContainer,textAlign:"center",height:"100vh"},children:F.jsxs(FRe,{logo:"./logo.png",title:"微语",subTitle:"注册账号",children:[F.jsxs(F.Fragment,{children:[F.jsx(di,{name:"username",fieldProps:{size:"large",prefix:F.jsx(cD,{className:"prefixIcon"})},placeholder:"用户名",rules:[{required:!0,message:"请输入用户名!"}]}),F.jsx(di.Password,{name:"password",fieldProps:{size:"large",prefix:F.jsx(xv,{className:"prefixIcon"})},placeholder:"密码",rules:[{required:!0,message:"请输入密码!"}]})]}),F.jsxs("div",{style:{marginBlockEnd:24},children:[F.jsx(qK,{noStyle:!0,name:"autoLogin",children:"自动登录"}),F.jsx(RCt,{to:"/agent/auth/login",style:{float:"right"},children:"登录"})]})]})})})};function c3(){const[e,t]=h.useState(!0);return h.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 Pc(){const e=Si();return{translateString:r=>r==null?r:r&&r.startsWith(Hee)?e.formatMessage({id:r,defaultMessage:r}):r,translateStringTranct:r=>r==null?r:r!=null&&r.startsWith(Hee)?lne(e.formatMessage({id:r}),10):lne(r,10)}}function EQ(){const e=c3(),{translateString:t}=Pc(),[n,r]=h.useState(!1),[i,o]=h.useState(!1),a=async(l,c)=>{ja?await bje()?console.log("handleNewMessage isWindowActive"):yje(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 h.useEffect(()=>(ja||(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",()=>{})}),[]),h.useEffect(()=>{if(console.log("useNotification useEffect isNetworkOnline",e),e){const l=localStorage.getItem(ex);(l==null||l==="true")&&a(t("i18n.tip.title"),t("i18n.tip.network.disconnected"))}else{const l=localStorage.getItem(ex);(l==null||l==="true")&&a(t("i18n.tip.title"),t("i18n.tip.network.connected"))}},[e]),{isNotificationGranted:n,showWebNotification:s,showNotification:a}}const Vl=Ac()(Pd(Dd(Ld(e=>({orgTree:[],currentOrg:{uid:"",name:"",logo:"",description:""},setCurrentOrg(t){e({currentOrg:t})},deleteOrg:()=>e({currentOrg:{uid:"",name:"",logo:"",description:""}})})),{name:u7e})));var Vp={},aIe={exports:{}},sIe={exports:{}};(function(e){var t=qRe;function n(r){if(Array.isArray(r))return t(r)}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports})(sIe);var PWt=sIe.exports,lIe={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})(lIe);var cIe=lIe.exports,uIe={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})(uIe);var DWt=uIe.exports;(function(e){var t=PWt,n=cIe,r=KK,i=DWt;function o(a){return t(a)||n(a)||r(a)||i()}e.exports=o,e.exports.__esModule=!0,e.exports.default=e.exports})(aIe);var dIe=aIe.exports,u3={};Object.defineProperty(u3,"__esModule",{value:!0});u3.default=LWt;function LWt(e,t){var n=Object.assign({},e);return Array.isArray(t)&&t.forEach(function(r){delete n[r]}),n}var CQ={};const Lg=J_(Gqe);var d3={},$Wt=sa.default;Object.defineProperty(d3,"__esModule",{value:!0});d3.default=BWt;var FWt=$Wt(h);function BWt(e,t,n){var r=FWt.useRef({});return(!("value"in r.current)||n(r.current.condition,t))&&(r.current.value=e(),r.current.condition=t),r.current.value}var f3={},fIe={exports:{}};(function(e){var t=zRe,n=cIe,r=KK,i=KRe;function o(a){return t(a)||n(a)||r(a)||i()}e.exports=o,e.exports.__esModule=!0,e.exports.default=e.exports})(fIe);var HWt=fIe.exports,xQ={};Object.defineProperty(xQ,"__esModule",{value:!0});xQ.default=jWt;function jWt(e,t){for(var n=e,r=0;r<t.length;r+=1){if(n==null)return;n=n[t[r]]}return n}var eO=wr.default;Object.defineProperty(f3,"__esModule",{value:!0});f3.default=zI;f3.merge=WWt;var pIe=eO(uv),UWt=eO(dv),hIe=eO(dIe),zWt=eO(HWt),wU=eO(xQ);function mIe(e,t,n,r){if(!t.length)return n;var i=(0,zWt.default)(t),o=i[0],a=i.slice(1),s;return!e&&typeof o=="number"?s=[]:Array.isArray(e)?s=(0,hIe.default)(e):s=(0,UWt.default)({},e),r&&n===void 0&&a.length===1?delete s[o][a[0]]:s[o]=mIe(s[o],a,n,r),s}function zI(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return t.length&&r&&n===void 0&&!(0,wU.default)(e,t.slice(0,-1))?e:mIe(e,t,n,r)}function VWt(e){return(0,pIe.default)(e)==="object"&&e!==null&&Object.getPrototypeOf(e)===Object.prototype}function Fce(e){return Array.isArray(e)?[]:{}}var GWt=typeof Reflect>"u"?Object.keys:Reflect.ownKeys;function WWt(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=Fce(t[0]);return t.forEach(function(i){function o(a,s){var l=new Set(s),c=(0,wU.default)(i,a),u=Array.isArray(c);if(u||VWt(c)){if(!l.has(c)){l.add(c);var d=(0,wU.default)(r,a);u?r=zI(r,a,[]):(!d||(0,pIe.default)(d)!=="object")&&(r=zI(r,a,Fce(c))),GWt(c).forEach(function(f){o([].concat((0,hIe.default)(a),[f]),l)})}}else r=zI(r,a,c)}o([])}),r}var lu={},gIe=sa.default;Object.defineProperty(lu,"__esModule",{value:!0});lu.devUseWarning=lu.default=lu.WarningContext=void 0;lu.noop=wQ;lu.resetWarned=KWt;var qWt=gIe(h),YWt=gIe(zl);function wQ(){}function KWt(){(0,YWt.resetWarned)()}let QWt=wQ;const XWt=QWt;lu.WarningContext=qWt.createContext({});lu.devUseWarning=()=>{const e=()=>{};return e.deprecated=wQ,e};lu.default=XWt;var p3={};Object.defineProperty(p3,"__esModule",{value:!0});p3.default=void 0;var ZWt=h;p3.default=(0,ZWt.createContext)(void 0);var vIe={},h3={},JWt=wr.default;Object.defineProperty(h3,"__esModule",{value:!0});h3.changeConfirmLocale=eqt;h3.getConfirmLocale=tqt;var TQ=JWt(cv);let VI=Object.assign({},TQ.default.Modal),GI=[];const Bce=()=>GI.reduce((e,t)=>Object.assign(Object.assign({},e),t),TQ.default.Modal);function eqt(e){if(e){const t=Object.assign({},e);return GI.push(t),VI=Bce(),()=>{GI=GI.filter(n=>n!==t),VI=Bce()}}VI=Object.assign({},TQ.default.Modal)}function tqt(){return VI}var XS={};Object.defineProperty(XS,"__esModule",{value:!0});XS.default=void 0;var nqt=h;const rqt=(0,nqt.createContext)(void 0);XS.default=rqt;var m3={},bIe=wr.default,iqt=sa.default;Object.defineProperty(m3,"__esModule",{value:!0});m3.default=void 0;var g$=iqt(h),oqt=bIe(XS),Hce=bIe(cv);const aqt=(e,t)=>{const n=g$.useContext(oqt.default),r=g$.useMemo(()=>{var o;const a=t||Hce.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?Hce.default.locale:o},[n]);return[r,i]};m3.default=aqt;(function(e){"use client";var t=wr.default,n=sa.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(h),i=h3,o=t(XS),a=t(m3);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})(vIe);var g3={},Hf={};Object.defineProperty(Hf,"__esModule",{value:!0});Hf.defaultPresetColors=Hf.default=void 0;const sqt=Hf.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"},lqt=Object.assign(Object.assign({},sqt),{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});Hf.default=lqt;var v3={},OQ={},RQ={};const tO=J_(eYe);Object.defineProperty(RQ,"__esModule",{value:!0});RQ.default=cqt;var v$=tO;function cqt(e,{generateColorPalettes:t,generateNeutralColorPalettes:n}){const{colorSuccess:r,colorWarning:i,colorError:o,colorInfo:a,colorPrimary:s,colorBgBase:l,colorTextBase:c}=e,u=t(s),d=t(r),f=t(i),p=t(o),m=t(a),g=n(l,c),v=e.colorLink||e.colorInfo,y=t(v),b=new v$.FastColor(p[1]).mix(new v$.FastColor(p[3]),50).toHexString();return Object.assign(Object.assign({},g),{colorPrimaryBg:u[1],colorPrimaryBgHover:u[2],colorPrimaryBorder:u[3],colorPrimaryBorderHover:u[4],colorPrimaryHover:u[5],colorPrimary:u[6],colorPrimaryActive:u[7],colorPrimaryTextHover:u[8],colorPrimaryText:u[9],colorPrimaryTextActive:u[10],colorSuccessBg:d[1],colorSuccessBgHover:d[2],colorSuccessBorder:d[3],colorSuccessBorderHover:d[4],colorSuccessHover:d[4],colorSuccess:d[6],colorSuccessActive:d[7],colorSuccessTextHover:d[8],colorSuccessText:d[9],colorSuccessTextActive:d[10],colorErrorBg:p[1],colorErrorBgHover:p[2],colorErrorBgFilledHover:b,colorErrorBgActive:p[3],colorErrorBorder:p[3],colorErrorBorderHover:p[4],colorErrorHover:p[5],colorError:p[6],colorErrorActive:p[7],colorErrorTextHover:p[8],colorErrorText:p[9],colorErrorTextActive:p[10],colorWarningBg:f[1],colorWarningBgHover:f[2],colorWarningBorder:f[3],colorWarningBorderHover:f[4],colorWarningHover:f[4],colorWarning:f[6],colorWarningActive:f[7],colorWarningTextHover:f[8],colorWarningText:f[9],colorWarningTextActive:f[10],colorInfoBg:m[1],colorInfoBgHover:m[2],colorInfoBorder:m[3],colorInfoBorderHover:m[4],colorInfoHover:m[4],colorInfo:m[6],colorInfoActive:m[7],colorInfoTextHover:m[8],colorInfoText:m[9],colorInfoTextActive:m[10],colorLinkHover:y[4],colorLink:y[6],colorLinkActive:y[7],colorBgMask:new v$.FastColor("#000").setA(.45).toRgbString(),colorWhite:"#fff"})}var AQ={},b3={};Object.defineProperty(b3,"__esModule",{value:!0});b3.default=void 0;const uqt=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}};b3.default=uqt;var dqt=wr.default;Object.defineProperty(AQ,"__esModule",{value:!0});AQ.default=pqt;var fqt=dqt(b3);function pqt(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,fqt.default)(r))}var y3={};Object.defineProperty(y3,"__esModule",{value:!0});y3.default=void 0;const hqt=e=>{const{controlHeight:t}=e;return{controlHeightSM:t*.75,controlHeightXS:t*.5,controlHeightLG:t*1.25}};y3.default=hqt;var _3={},nO={};Object.defineProperty(nO,"__esModule",{value:!0});nO.default=mqt;nO.getLineHeight=yIe;function yIe(e){return(e+8)/e}function mqt(e){const t=Array.from({length:10}).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:yIe(n)}))}var gqt=wr.default;Object.defineProperty(_3,"__esModule",{value:!0});_3.default=void 0;var vqt=gqt(nO);const bqt=e=>{const t=(0,vqt.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]}};_3.default=bqt;var IQ={};Object.defineProperty(IQ,"__esModule",{value:!0});IQ.default=yqt;function yqt(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 A_={},I_={};Object.defineProperty(I_,"__esModule",{value:!0});I_.getSolidColor=I_.getAlphaColor=void 0;var _Ie=tO;const _qt=(e,t)=>new _Ie.FastColor(e).setA(t).toRgbString();I_.getAlphaColor=_qt;const Sqt=(e,t)=>new _Ie.FastColor(e).darken(t).toHexString();I_.getSolidColor=Sqt;Object.defineProperty(A_,"__esModule",{value:!0});A_.generateNeutralColorPalettes=A_.generateColorPalettes=void 0;var Eqt=Y2,Qa=I_;const Cqt=e=>{const t=(0,Eqt.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]}};A_.generateColorPalettes=Cqt;const xqt=(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)}};A_.generateNeutralColorPalettes=xqt;var rO=wr.default;Object.defineProperty(OQ,"__esModule",{value:!0});OQ.default=Nqt;var r0=Y2,wqt=Hf,Tqt=rO(RQ),Oqt=rO(AQ),Rqt=rO(y3),Aqt=rO(_3),Iqt=rO(IQ),jce=A_;function Nqt(e){r0.presetPrimaryColors.pink=r0.presetPrimaryColors.magenta,r0.presetPalettes.pink=r0.presetPalettes.magenta;const t=Object.keys(wqt.defaultPresetColors).map(n=>{const r=e[n]===r0.presetPrimaryColors[n]?r0.presetPalettes[n]:(0,r0.generate)(e[n]);return Array.from({length:10},()=>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,Tqt.default)(e,{generateColorPalettes:jce.generateColorPalettes,generateNeutralColorPalettes:jce.generateNeutralColorPalettes})),(0,Aqt.default)(e.fontSize)),(0,Iqt.default)(e)),(0,Rqt.default)(e)),(0,Oqt.default)(e))}var Mqt=wr.default;Object.defineProperty(v3,"__esModule",{value:!0});v3.default=void 0;var kqt=Lg,Pqt=Mqt(OQ);const Dqt=(0,kqt.createTheme)(Pqt.default);v3.default=Dqt;(function(e){var t=wr.default;Object.defineProperty(e,"__esModule",{value:!0}),e.defaultConfig=e.DesignTokenContext=void 0,Object.defineProperty(e,"defaultTheme",{enumerable:!0,get:function(){return i.default}});var n=t(h),r=t(Hf),i=t(v3);const o=e.defaultConfig={token:r.default,override:{override:r.default},hashed:!0};e.DesignTokenContext=n.default.createContext(o)})(g3);var Zs={},Lqt=sa.default;Object.defineProperty(Zs,"__esModule",{value:!0});Zs.defaultPrefixCls=Zs.defaultIconPrefixCls=Zs.Variants=Zs.ConfigContext=Zs.ConfigConsumer=void 0;Zs.useComponentConfig=Hqt;var SIe=Lqt(h);const Uce=Zs.defaultPrefixCls="ant",$qt=Zs.defaultIconPrefixCls="anticon";Zs.Variants=["outlined","borderless","filled","underlined"];const Fqt=(e,t)=>t||(e?`${Uce}-${e}`:Uce),EIe=Zs.ConfigContext=SIe.createContext({getPrefixCls:Fqt,iconPrefixCls:$qt}),{Consumer:Bqt}=EIe;Zs.ConfigConsumer=Bqt;const zce={};function Hqt(e){const t=SIe.useContext(EIe),{getPrefixCls:n,direction:r,getPopupContainer:i}=t,o=t[e];return Object.assign(Object.assign({classNames:zce,styles:zce},o),{getPrefixCls:n,direction:r,getPopupContainer:i})}var S3={},CIe=wr.default;Object.defineProperty(S3,"__esModule",{value:!0});S3.getStyle=xIe;S3.registerTheme=Vqt;var Vce=Y2,b$=tO,jqt=CIe(zD),Uqt=Iv;CIe(lu);const zqt=`-ant-${Date.now()}-${Math.random()}`;function xIe(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 b$.FastColor(a),c=(0,Vce.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 b$.FastColor(t.primaryColor),s=(0,Vce.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 b$.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 Vqt(e,t){const n=xIe(e,t);(0,jqt.default)()&&(0,Uqt.updateCSS)(n,`${zqt}-dynamic-theme`)}var Q1={},Gqt=sa.default;Object.defineProperty(Q1,"__esModule",{value:!0});Q1.default=Q1.DisabledContextProvider=void 0;var TU=Gqt(h);const OU=TU.createContext(!1),Wqt=({children:e,disabled:t})=>{const n=TU.useContext(OU);return TU.createElement(OU.Provider,{value:t??n},e)};Q1.DisabledContextProvider=Wqt;Q1.default=OU;var E3={},X1={},qqt=sa.default;Object.defineProperty(X1,"__esModule",{value:!0});X1.default=X1.SizeContextProvider=void 0;var RU=qqt(h);const AU=RU.createContext(void 0),Yqt=({children:e,size:t})=>{const n=RU.useContext(AU);return RU.createElement(AU.Provider,{value:t||n},e)};X1.SizeContextProvider=Yqt;X1.default=AU;var wIe=wr.default;Object.defineProperty(E3,"__esModule",{value:!0});E3.default=void 0;var Gce=h,Kqt=wIe(Q1),Qqt=wIe(X1);function Xqt(){const e=(0,Gce.useContext)(Kqt.default),t=(0,Gce.useContext)(Qqt.default);return{componentDisabled:e,componentSize:t}}E3.default=Xqt;var NQ={},C3={},TIe=wr.default;Object.defineProperty(C3,"__esModule",{value:!0});C3.default=void 0;var Wce=TIe(uv),Zqt=TIe(zl);function Jqt(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,Zqt.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,Wce.default)(o)==="object"&&(0,Wce.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)}C3.default=Jqt;var ZS={};const OIe=J_(IYe);var MQ={},x3={};Object.defineProperty(x3,"__esModule",{value:!0});x3.PresetColors=void 0;x3.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=x3})(MQ);var vd={},w3={},T3={};Object.defineProperty(T3,"__esModule",{value:!0});T3.default=void 0;T3.default="5.26.2";var eYt=wr.default;Object.defineProperty(w3,"__esModule",{value:!0});w3.default=void 0;var tYt=eYt(T3);w3.default=tYt.default;var kQ={},O3={};Object.defineProperty(O3,"__esModule",{value:!0});O3.default=void 0;var YR=tO;function y$(e){return e>=0&&e<=255}function nYt(e,t){const{r:n,g:r,b:i,a:o}=new YR.FastColor(e).toRgb();if(o<1)return e;const{r:a,g:s,b:l}=new YR.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 YR.FastColor({r:u,g:d,b:f,a:Math.round(c*100)/100}).toRgbString()}return new YR.FastColor({r:n,g:r,b:i,a:1}).toRgbString()}O3.default=nYt;var RIe=wr.default;Object.defineProperty(kQ,"__esModule",{value:!0});kQ.default=oYt;var _$=tO,rYt=RIe(Hf),KR=RIe(O3),iYt=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);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 oYt(e){const{override:t}=e,n=iYt(e,["override"]),r=Object.assign({},t);Object.keys(rYt.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,KR.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,KR.default)(i.colorErrorBg,i.colorBgContainer),colorWarningOutline:(0,KR.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,KR.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 _$.FastColor("rgba(0, 0, 0, 0.16)").toRgbString()},
0 3px 6px 0 ${new _$.FastColor("rgba(0, 0, 0, 0.12)").toRgbString()},
0 5px 12px 4px ${new _$.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 R3=wr.default;Object.defineProperty(vd,"__esModule",{value:!0});vd.default=pYt;vd.unitless=vd.ignore=vd.getComputedToken=void 0;var aYt=R3(h),sYt=Lg,lYt=R3(w3),qce=g3,cYt=R3(Hf),AIe=R3(kQ),Yce=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);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 uYt=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},dYt=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},fYt={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},PQ=(e,t,n)=>{const r=n.getDerivativeToken(e),{override:i}=t,o=Yce(t,["override"]);let a=Object.assign(Object.assign({},r),{override:i});return a=(0,AIe.default)(a),o&&Object.entries(o).forEach(([s,l])=>{const{theme:c}=l,u=Yce(l,["theme"]);let d=u;c&&(d=PQ(Object.assign(Object.assign({},a),u),{override:u},c)),a[s]=d}),a};vd.getComputedToken=PQ;function pYt(){const{token:e,hashed:t,theme:n,override:r,cssVar:i}=aYt.default.useContext(qce.DesignTokenContext),o=`${lYt.default}-${t||""}`,a=n||qce.defaultTheme,[s,l,c]=(0,sYt.useCacheToken)(a,[cYt.default,e],{salt:o,override:r,getComputedToken:PQ,formatToken:AIe.default,cssVar:i&&{prefix:i.prefix,key:i.key,unitless:uYt,ignore:dYt,preserve:fYt}});return[a,c,t?l:"",s,i]}var ig={},Ro={};Object.defineProperty(Ro,"__esModule",{value:!0});Ro.textEllipsis=Ro.resetIcon=Ro.resetComponent=Ro.operationUnit=Ro.genLinkStyle=Ro.genIconStyle=Ro.genFocusStyle=Ro.genFocusOutline=Ro.genCommonStyle=Ro.clearFix=void 0;var hYt=Lg;Ro.textEllipsis={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"};const mYt=(e,t=!1)=>({boxSizing:"border-box",margin:0,padding:0,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,listStyle:"none",fontFamily:t?"inherit":e.fontFamily});Ro.resetComponent=mYt;const IIe=()=>({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"}});Ro.resetIcon=IIe;const gYt=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}});Ro.clearFix=gYt;const vYt=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"}}});Ro.genLinkStyle=vYt;const bYt=(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})}};Ro.genCommonStyle=bYt;const NIe=(e,t)=>({outline:`${(0,hYt.unit)(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`,outlineOffset:t??1,transition:"outline-offset 0s, outline 0s"});Ro.genFocusOutline=NIe;const MIe=(e,t)=>({"&:focus-visible":Object.assign({},NIe(e,t))});Ro.genFocusStyle=MIe;const yYt=e=>({[`.${e}`]:Object.assign(Object.assign({},IIe()),{[`.${e} .${e}-icon`]:{display:"block"}})});Ro.genIconStyle=yYt;const _Yt=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"},MIe(e)),{"&:focus, &:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive}});Ro.operationUnit=_Yt;var SYt=sa.default;Object.defineProperty(ig,"__esModule",{value:!0});ig.genSubStyleComponent=ig.genStyleHooks=ig.genComponentStyleHook=void 0;var Kce=h,EYt=OIe,S$=Zs,E$=Ro,Qce=SYt(vd);const{genStyleHooks:CYt,genComponentStyleHook:xYt,genSubStyleComponent:wYt}=(0,EYt.genStyleUtils)({usePrefix:()=>{const{getPrefixCls:e,iconPrefixCls:t}=(0,Kce.useContext)(S$.ConfigContext);return{rootPrefixCls:e(),iconPrefixCls:t}},useToken:()=>{const[e,t,n,r,i]=(0,Qce.default)();return{theme:e,realToken:t,hashId:n,token:r,cssVar:i}},useCSP:()=>{const{csp:e}=(0,Kce.useContext)(S$.ConfigContext);return e??{}},getResetStyles:(e,t)=>{var n;const r=(0,E$.genLinkStyle)(e);return[r,{"&":r},(0,E$.genIconStyle)((n=t==null?void 0:t.prefix.iconPrefixCls)!==null&&n!==void 0?n:S$.defaultIconPrefixCls)]},getCommonStyle:E$.genCommonStyle,getCompUnitless:()=>Qce.unitless});ig.genSubStyleComponent=wYt;ig.genComponentStyleHook=xYt;ig.genStyleHooks=CYt;var DQ={};Object.defineProperty(DQ,"__esModule",{value:!0});DQ.default=OYt;var TYt=MQ;function OYt(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=wr.default;Object.defineProperty(A3,"__esModule",{value:!0});A3.default=void 0;var AYt=Lg,IYt=Ro,NYt=RYt(vd);const MYt=(e,t)=>{const[n,r]=(0,NYt.default)();return(0,AYt.useStyleRegister)({theme:n,token:r,hashId:"",path:["ant-design-icons",e],nonce:()=>t==null?void 0:t.nonce,layer:{name:"antd"}},()=>[(0,IYt.genIconStyle)(e)])};A3.default=MYt;(function(e){var t=wr.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=Lg,r=OIe,i=MQ,o=nO,a=t(vd),s=ig,l=t(DQ),c=t(A3),u=g3})(ZS);var I3={},kYt=sa.default;Object.defineProperty(I3,"__esModule",{value:!0});I3.default=void 0;var PYt=kYt(h);const DYt=Object.assign({},PYt),{useId:Xce}=DYt,LYt=()=>"",$Yt=typeof Xce>"u"?LYt:Xce;I3.default=$Yt;var LQ=wr.default;Object.defineProperty(NQ,"__esModule",{value:!0});NQ.default=UYt;var FYt=LQ(d3),BYt=LQ(C3),HYt=lu,Zce=ZS,jYt=LQ(I3);function UYt(e,t,n){var r;(0,HYt.devUseWarning)("ConfigProvider");const i=e||{},o=i.inherit===!1||!t?Object.assign(Object.assign({},Zce.defaultConfig),{hashed:(r=t==null?void 0:t.hashed)!==null&&r!==void 0?r:Zce.defaultConfig.hashed,cssVar:t==null?void 0:t.cssVar}):t,a=(0,jYt.default)();return(0,FYt.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,BYt.default)(c,d,!0)}))}var $Q={};const zYt=J_(sKe);var VYt=sa.default;Object.defineProperty($Q,"__esModule",{value:!0});$Q.default=qYt;var PC=VYt(h),GYt=zYt,WYt=ZS;const Jce=PC.createContext(!0);function qYt(e){const t=PC.useContext(Jce),{children:n}=e,[,r]=(0,WYt.useToken)(),{motion:i}=r,o=PC.useRef(!1);return o.current||(o.current=t!==i),o.current?PC.createElement(Jce.Provider,{value:i},PC.createElement(GYt.Provider,{motion:i},n)):n}var N3={},YYt=sa.default;Object.defineProperty(N3,"__esModule",{value:!0});N3.default=void 0;YYt(h);N3.default=()=>null;var kIe={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.useResetIconStyle}});var t=ZS})(kIe);(function(e){"use client";var t=wr.default,n=sa.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(h),i=Lg,o=t(KS),a=t(d3),s=f3,l=n(lu),c=t(p3),u=n(vIe),d=t(XS),f=t(cv),p=g3,m=t(Hf),g=Zs,v=S3,y=Q1,b=t(E3),_=t(NQ),S=t($Q),x=t(N3),E=n(X1),C=t(kIe),w=function(W,j){var H={};for(var X in W)Object.prototype.hasOwnProperty.call(W,X)&&j.indexOf(X)<0&&(H[X]=W[X]);if(W!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Q=0,X=Object.getOwnPropertySymbols(W);Q<X.length;Q++)j.indexOf(X[Q])<0&&Object.prototype.propertyIsEnumerable.call(W,X[Q])&&(H[X[Q]]=W[X[Q]]);return H};e.warnContext=null,e.configConsumerProps=["getTargetContainer","getPopupContainer","rootPrefixCls","getPrefixCls","renderEmpty","csp","autoInsertSpaceInButton","locale"];const O=["getTargetContainer","getPopupContainer","renderEmpty","input","pagination","form","select","button"];let T,A,I,N;function D(){return T||g.defaultPrefixCls}function M(){return A||g.defaultIconPrefixCls}function k(W){return Object.keys(W).some(j=>j.endsWith("Color"))}const P=W=>{const{prefixCls:j,iconPrefixCls:H,theme:X,holderRender:Q}=W;j!==void 0&&(T=j),H!==void 0&&(A=H),"holderRender"in W&&(N=Q),X&&(k(X)?(0,v.registerTheme)(D(),X):I=X)},B=()=>({getPrefixCls:(W,j)=>j||(W?`${D()}-${W}`:D()),getIconPrefixCls:M,getRootPrefixCls:()=>T||D(),getTheme:()=>I,holderRender:N});e.globalConfig=B;const G=W=>{const{children:j,csp:H,autoInsertSpaceInButton:X,alert:Q,anchor:ue,form:ee,locale:K,componentSize:se,direction:le,space:oe,splitter:ne,virtual:he,dropdownMatchSelectWidth:me,popupMatchSelectWidth:ce,popupOverflow:re,legacyLocale:ve,parentContext:be,iconPrefixCls:xe,theme:we,componentDisabled:de,segmented:Ee,statistic:Ne,spin:Te,calendar:Ve,carousel:q,cascader:U,collapse:Y,typography:ae,checkbox:ye,descriptions:fe,divider:Ae,drawer:We,skeleton:ie,steps:Be,image:Fe,layout:Pe,list:Ke,mentions:tt,modal:Ge,progress:Nt,result:lt,slider:st,breadcrumb:It,menu:ct,pagination:Pt,input:Rt,textArea:Tt,empty:Me,badge:Ue,radio:$e,rate:Le,switch:He,transfer:it,avatar:ft,message:Et,tag:Dt,table:St,card:bt,tabs:xt,timeline:ht,timePicker:Vt,upload:at,notification:wt,tree:Gt,colorPicker:$t,datePicker:zt,rangePicker:Ft,flex:De,wave:Ct,dropdown:et,warning:Ot,tour:At,tooltip:_n,popover:zn,popconfirm:R,floatButtonGroup:$,variant:J,inputNumber:Oe,treeSelect:qe}=W,Qe=r.useCallback((rn,Vn)=>{const{prefixCls:Er}=W;if(Vn)return Vn;const Lr=Er||be.getPrefixCls("");return rn?`${Lr}-${rn}`:Lr},[be.getPrefixCls,W.prefixCls]),Bt=xe||be.iconPrefixCls||g.defaultIconPrefixCls,fn=H||be.csp;(0,C.default)(Bt,fn);const gr=(0,_.default)(we,be.theme,{prefixCls:Qe("")}),Jn={csp:fn,autoInsertSpaceInButton:X,alert:Q,anchor:ue,locale:K||ve,direction:le,space:oe,splitter:ne,virtual:he,popupMatchSelectWidth:ce??me,popupOverflow:re,getPrefixCls:Qe,iconPrefixCls:Bt,theme:gr,segmented:Ee,statistic:Ne,spin:Te,calendar:Ve,carousel:q,cascader:U,collapse:Y,typography:ae,checkbox:ye,descriptions:fe,divider:Ae,drawer:We,skeleton:ie,steps:Be,image:Fe,input:Rt,textArea:Tt,layout:Pe,list:Ke,mentions:tt,modal:Ge,progress:Nt,result:lt,slider:st,breadcrumb:It,menu:ct,pagination:Pt,empty:Me,badge:Ue,radio:$e,rate:Le,switch:He,transfer:it,avatar:ft,message:Et,tag:Dt,table:St,card:bt,tabs:xt,timeline:ht,timePicker:Vt,upload:at,notification:wt,tree:Gt,colorPicker:$t,datePicker:zt,rangePicker:Ft,flex:De,wave:Ct,dropdown:et,warning:Ot,tour:At,tooltip:_n,popover:zn,popconfirm:R,floatButtonGroup:$,variant:J,inputNumber:Oe,treeSelect:qe},Hr=Object.assign({},be);Object.keys(Jn).forEach(rn=>{Jn[rn]!==void 0&&(Hr[rn]=Jn[rn])}),O.forEach(rn=>{const Vn=W[rn];Vn&&(Hr[rn]=Vn)}),typeof X<"u"&&(Hr.button=Object.assign({autoInsertSpace:X},Hr.button));const bi=(0,a.default)(()=>Hr,Hr,(rn,Vn)=>{const Er=Object.keys(rn),Lr=Object.keys(Vn);return Er.length!==Lr.length||Er.some(Ii=>rn[Ii]!==Vn[Ii])}),{layer:br}=r.useContext(i.StyleContext),wn=r.useMemo(()=>({prefixCls:Bt,csp:fn,layer:br?"antd":void 0}),[Bt,fn,br]);let an=r.createElement(r.Fragment,null,r.createElement(x.default,{dropdownMatchSelectWidth:me}),j);const yr=r.useMemo(()=>{var rn,Vn,Er,Lr;return(0,s.merge)(((rn=f.default.Form)===null||rn===void 0?void 0:rn.defaultValidateMessages)||{},((Er=(Vn=bi.locale)===null||Vn===void 0?void 0:Vn.Form)===null||Er===void 0?void 0:Er.defaultValidateMessages)||{},((Lr=bi.form)===null||Lr===void 0?void 0:Lr.validateMessages)||{},(ee==null?void 0:ee.validateMessages)||{})},[bi,ee==null?void 0:ee.validateMessages]);Object.keys(yr).length>0&&(an=r.createElement(c.default.Provider,{value:yr},an)),K&&(an=r.createElement(u.default,{locale:K,_ANT_MARK__:u.ANT_MARK},an)),(Bt||fn)&&(an=r.createElement(o.default.Provider,{value:wn},an)),se&&(an=r.createElement(E.SizeContextProvider,{size:se},an)),an=r.createElement(S.default,null,an);const Cn=r.useMemo(()=>{const rn=gr||{},{algorithm:Vn,token:Er,components:Lr,cssVar:Ii}=rn,nr=w(rn,["algorithm","token","components","cssVar"]),Wi=Vn&&(!Array.isArray(Vn)||Vn.length>0)?(0,i.createTheme)(Vn):p.defaultTheme,mn={};Object.entries(Lr||{}).forEach(([In,vr])=>{const Yn=Object.assign({},vr);"algorithm"in Yn&&(Yn.algorithm===!0?Yn.theme=Wi:(Array.isArray(Yn.algorithm)||typeof Yn.algorithm=="function")&&(Yn.theme=(0,i.createTheme)(Yn.algorithm)),delete Yn.algorithm),mn[In]=Yn});const nn=Object.assign(Object.assign({},m.default),Er);return Object.assign(Object.assign({},nr),{theme:Wi,token:nn,components:mn,override:Object.assign({override:nn},mn),cssVar:Ii})},[gr]);return we&&(an=r.createElement(p.DesignTokenContext.Provider,{value:Cn},an)),bi.warning&&(an=r.createElement(l.WarningContext.Provider,{value:bi.warning},an)),de!==void 0&&(an=r.createElement(y.DisabledContextProvider,{disabled:de},an)),r.createElement(g.ConfigContext.Provider,{value:bi},an)},L=W=>{const j=r.useContext(g.ConfigContext),H=r.useContext(d.default);return r.createElement(G,Object.assign({parentContext:j,legacyLocale:H},W))};L.ConfigContext=g.ConfigContext,L.SizeContext=E.default,L.config=P,L.useConfig=b.default,Object.defineProperty(L,"SizeContext",{get:()=>E.default}),e.default=L})(CQ);var iO={},KYt=sa.default;Object.defineProperty(iO,"__esModule",{value:!0});iO.LayoutContext=void 0;var QYt=KYt(h);iO.LayoutContext=QYt.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}});var FQ={},BQ={},HQ={},XYt=wr.default;Object.defineProperty(HQ,"__esModule",{value:!0});HQ.default=nKt;var ZYt=XYt(uv),JYt=Symbol.for("react.element"),eKt=Symbol.for("react.transitional.element"),tKt=Symbol.for("react.fragment");function nKt(e){return e&&(0,ZYt.default)(e)==="object"&&(e.$$typeof===JYt||e.$$typeof===eKt)&&e.type===tKt}var PIe=wr.default;Object.defineProperty(BQ,"__esModule",{value:!0});BQ.default=IU;var rKt=PIe(HQ),iKt=PIe(h);function IU(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[];return iKt.default.Children.forEach(e,function(r){r==null&&!t.keepEmpty||(Array.isArray(r)?n=n.concat(IU(r)):(0,rKt.default)(r)&&r.props?n=n.concat(IU(r.props.children,t)):n.push(r))}),n}var N_={},NU={exports:{}},M3={},jQ={};Object.defineProperty(jQ,"__esModule",{value:!0});var oKt={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"};jQ.default=oKt;var aKt=sa.default,UQ=wr.default;Object.defineProperty(M3,"__esModule",{value:!0});M3.default=void 0;var sKt=UQ(UD),DIe=aKt(h),lKt=UQ(jQ),cKt=UQ(YS),uKt=function(t,n){return DIe.createElement(cKt.default,(0,sKt.default)({},t,{ref:n,icon:lKt.default}))},dKt=DIe.forwardRef(uKt);M3.default=dKt;(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;const n=r(M3);function r(o){return o&&o.__esModule?o:{default:o}}const i=n;t.default=i,e.exports=i})(NU,NU.exports);var fKt=NU.exports,MU={exports:{}},k3={},zQ={};Object.defineProperty(zQ,"__esModule",{value:!0});var pKt={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"};zQ.default=pKt;var hKt=sa.default,VQ=wr.default;Object.defineProperty(k3,"__esModule",{value:!0});k3.default=void 0;var mKt=VQ(UD),LIe=hKt(h),gKt=VQ(zQ),vKt=VQ(YS),bKt=function(t,n){return LIe.createElement(vKt.default,(0,mKt.default)({},t,{ref:n,icon:gKt.default}))},yKt=LIe.forwardRef(bKt);k3.default=yKt;(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})(MU,MU.exports);var _Kt=MU.exports,kU={exports:{}},P3={},GQ={};Object.defineProperty(GQ,"__esModule",{value:!0});var SKt={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=SKt;var EKt=sa.default,WQ=wr.default;Object.defineProperty(P3,"__esModule",{value:!0});P3.default=void 0;var CKt=WQ(UD),$Ie=EKt(h),xKt=WQ(GQ),wKt=WQ(YS),TKt=function(t,n){return $Ie.createElement(wKt.default,(0,CKt.default)({},t,{ref:n,icon:xKt.default}))},OKt=$Ie.forwardRef(TKt);P3.default=OKt;(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})(kU,kU.exports);var RKt=kU.exports,M_={};Object.defineProperty(M_,"__esModule",{value:!0});M_.removeMediaQueryListener=M_.addMediaQueryListener=void 0;const AKt=(e,t)=>{typeof(e==null?void 0:e.addEventListener)<"u"?e.addEventListener("change",t):typeof(e==null?void 0:e.addListener)<"u"&&e.addListener(t)};M_.addMediaQueryListener=AKt;const IKt=(e,t)=>{typeof(e==null?void 0:e.removeEventListener)<"u"?e.removeEventListener("change",t):typeof(e==null?void 0:e.removeListener)<"u"&&e.removeListener(t)};M_.removeMediaQueryListener=IKt;var D3={},Zp={};Object.defineProperty(Zp,"__esModule",{value:!0});Zp.prepareComponentToken=Zp.default=Zp.DEPRECATED_TOKENS=void 0;var NKt=Lg,MKt=ZS;const kKt=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,NKt.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}}},FIe=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}};Zp.prepareComponentToken=FIe;const PKt=Zp.DEPRECATED_TOKENS=[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]];Zp.default=(0,MKt.genStyleHooks)("Layout",e=>[kKt(e)],FIe,{deprecatedTokens:PKt});Object.defineProperty(D3,"__esModule",{value:!0});D3.default=void 0;var WE=Lg,eue=Zp,DKt=ZS;const LKt=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:p,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"}},[`&-zero-width ${t}-children`]:{overflow:"hidden"},[`${t}-trigger`]:{position:"fixed",bottom:0,zIndex:1,height:a,color:s,lineHeight:(0,WE.unit)(a),textAlign:"center",background:l,cursor:"pointer",transition:`all ${r}`},[`${t}-zero-width-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,WE.unit)(f)} ${(0,WE.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,WE.unit)(f)} 0 0 ${(0,WE.unit)(f)}`}},"&-light":{background:p,[`${t}-trigger`]:{color:m,background:g},[`${t}-zero-width-trigger`]:{color:m,background:g,border:`1px solid ${v}`,borderInlineStart:0}}}}};D3.default=(0,DKt.genStyleHooks)(["Layout","Sider"],e=>[LKt(e)],eue.prepareComponentToken,{deprecatedTokens:eue.DEPRECATED_TOKENS});var JS=wr.default,$Kt=sa.default;Object.defineProperty(N_,"__esModule",{value:!0});N_.default=N_.SiderContext=void 0;var _p=$Kt(h),ic=_p,FKt=JS(fKt),tue=JS(_Kt),nue=JS(RKt),rue=JS(K5),BKt=JS(u3),iue=M_,HKt=CQ,jKt=iO,UKt=JS(D3),zKt=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);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 oue={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),GKt=N_.SiderContext=ic.createContext({}),WKt=(()=>{let e=0;return(t="")=>(e+=1,`${t}${e}`)})(),qKt=ic.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:p,breakpoint:m,onCollapse:g,onBreakpoint:v}=e,y=zKt(e,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:b}=(0,_p.useContext)(jKt.LayoutContext),[_,S]=(0,_p.useState)("collapsed"in e?e.collapsed:a),[x,E]=(0,_p.useState)(!1);(0,_p.useEffect)(()=>{"collapsed"in e&&S(e.collapsed)},[e.collapsed]);const C=(K,se)=>{"collapsed"in e||S(K),g==null||g(K,se)},{getPrefixCls:w,direction:O}=(0,_p.useContext)(HKt.ConfigContext),T=w("layout-sider",n),[A,I,N]=(0,UKt.default)(T),D=(0,_p.useRef)(null);D.current=K=>{E(K.matches),v==null||v(K.matches),_!==K.matches&&C(K.matches,"responsive")},(0,_p.useEffect)(()=>{function K(le){var oe;return(oe=D.current)===null||oe===void 0?void 0:oe.call(D,le)}let se;return typeof(window==null?void 0:window.matchMedia)<"u"&&m&&m in oue&&(se=window.matchMedia(`screen and (max-width: ${oue[m]})`),(0,iue.addMediaQueryListener)(se,K),K(se)),()=>{(0,iue.removeMediaQueryListener)(se,K)}},[m]),(0,_p.useEffect)(()=>{const K=WKt("ant-sider-");return b.addSider(K),()=>b.removeSider(K)},[]);const M=()=>{C(!_,"clickTrigger")},k=(0,BKt.default)(y,["collapsed"]),P=_?f:d,B=VKt(P)?`${P}px`:String(P),G=parseFloat(String(f||0))===0?ic.createElement("span",{onClick:M,className:(0,rue.default)(`${T}-zero-width-trigger`,`${T}-zero-width-trigger-${u?"right":"left"}`),style:p},i||ic.createElement(FKt.default,null)):null,L=O==="rtl"==!u,H={expanded:L?ic.createElement(nue.default,null):ic.createElement(tue.default,null),collapsed:L?ic.createElement(tue.default,null):ic.createElement(nue.default,null)}[_?"collapsed":"expanded"],X=i!==null?G||ic.createElement("div",{className:`${T}-trigger`,onClick:M,style:{width:B}},i||H):null,Q=Object.assign(Object.assign({},l),{flex:`0 0 ${B}`,maxWidth:B,minWidth:B,width:B}),ue=(0,rue.default)(T,`${T}-${s}`,{[`${T}-collapsed`]:!!_,[`${T}-has-trigger`]:c&&i!==null&&!G,[`${T}-below`]:!!x,[`${T}-zero-width`]:parseFloat(B)===0},r,I,N),ee=ic.useMemo(()=>({siderCollapsed:_}),[_]);return A(ic.createElement(GKt.Provider,{value:ee},ic.createElement("aside",Object.assign({className:ue},k,{style:Q,ref:t}),ic.createElement("div",{className:`${T}-children`},o),c||x&&G?X:null)))});N_.default=qKt;var BIe=wr.default;Object.defineProperty(FQ,"__esModule",{value:!0});FQ.default=QKt;var YKt=BIe(BQ),KKt=BIe(N_);function QKt(e,t,n){return typeof n=="boolean"?n:e.length?!0:(0,YKt.default)(t).some(i=>i.type===KKt.default)}var L3,$3,XKt=sa.default,oO=wr.default;Object.defineProperty(Vp,"__esModule",{value:!0});Vp.default=Vp.Header=$3=Vp.Footer=L3=Vp.Content=void 0;var ZKt=oO(dIe),Ju=XKt(h),HIe=oO(K5),JKt=oO(u3),jIe=CQ,eQt=Zs,tQt=iO,nQt=oO(FQ),UIe=oO(Zp),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};function F3({suffixCls:e,tagName:t,displayName:n}){return r=>Ju.forwardRef((o,a)=>Ju.createElement(r,Object.assign({ref:a,suffixCls:e,tagName:t},o)))}const qQ=Ju.forwardRef((e,t)=>{const{prefixCls:n,suffixCls:r,className:i,tagName:o}=e,a=zIe(e,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:s}=Ju.useContext(jIe.ConfigContext),l=s("layout",n),[c,u,d]=(0,UIe.default)(l),f=r?`${l}-${r}`:l;return c(Ju.createElement(o,Object.assign({className:(0,HIe.default)(n||f,i,u,d),ref:t},a)))}),rQt=Ju.forwardRef((e,t)=>{const{direction:n}=Ju.useContext(jIe.ConfigContext),[r,i]=Ju.useState([]),{prefixCls:o,className:a,rootClassName:s,children:l,hasSider:c,tagName:u,style:d}=e,f=zIe(e,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),p=(0,JKt.default)(f,["suffixCls"]),{getPrefixCls:m,className:g,style:v}=(0,eQt.useComponentConfig)("layout"),y=m("layout",o),b=(0,nQt.default)(r,l,c),[_,S,x]=(0,UIe.default)(y),E=(0,HIe.default)(y,{[`${y}-has-sider`]:b,[`${y}-rtl`]:n==="rtl"},g,a,s,S,x),C=Ju.useMemo(()=>({siderHook:{addSider:w=>{i(O=>[].concat((0,ZKt.default)(O),[w]))},removeSider:w=>{i(O=>O.filter(T=>T!==w))}}}),[]);return _(Ju.createElement(tQt.LayoutContext.Provider,{value:C},Ju.createElement(u,Object.assign({ref:t,className:E,style:Object.assign(Object.assign({},v),d)},p),l)))}),iQt=F3({tagName:"div",displayName:"Layout"})(rQt);Vp.Header=F3({suffixCls:"header",tagName:"header",displayName:"Header"})(qQ);$3=Vp.Footer=F3({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(qQ);L3=Vp.Content=F3({suffixCls:"content",tagName:"main",displayName:"Content"})(qQ);Vp.default=iQt;function aO(){const{isDarkMode:e}=PW(),{token:t}=Cs.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:oQt,Sider:aQt,Content:sQt}=po,VIe=()=>{const e=Si();h.useContext(cs);const t=ka(),{headerStyle:n,leftSiderStyle:r,leftSiderWidth:i,contentStyle:o}=aO(),[a,s]=h.useState([]);h.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 F.jsxs(po,{children:[F.jsx(aQt,{style:r,width:i,children:F.jsx(Hd,{mode:"inline",onClick:l,defaultSelectedKeys:["profile"],defaultOpenKeys:["setting"],items:a})}),F.jsxs(po,{children:[F.jsx(oQt,{style:n,children:e.formatMessage({id:"menu.dashboard.mine"})}),F.jsx(sQt,{style:o,children:F.jsx(ED,{})})]})]})},GIe=()=>{const e=ka(),{userInfo:t}=sK(),{translateString:n}=Pc(),{mode:r}=h.useContext(cs),[i,o]=h.useState(""),[a,s]=h.useState(""),[l,c]=h.useState(""),u=()=>{e("/setting")};return h.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]),F.jsx(F.Fragment,{children:F.jsx(bu,{title:i,content:a,placement:"rightBottom",children:F.jsx(F.Fragment,{children:F.jsx(_h,{style:{marginTop:60,cursor:"pointer"},size:40,src:l,onClick:u})})})})};var YQ=Object.defineProperty,lQt=Object.getOwnPropertyDescriptor,cQt=Object.getOwnPropertyNames,uQt=Object.prototype.hasOwnProperty,ul=(e,t)=>()=>(e&&(t=e(e=0)),t),on=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),eE=(e,t)=>{for(var n in t)YQ(e,n,{get:t[n],enumerable:!0})},dQt=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of cQt(t))!uQt.call(e,i)&&i!==n&&YQ(e,i,{get:()=>t[i],enumerable:!(r=lQt(t,i))||r.enumerable});return e},$i=e=>dQt(YQ({},"__esModule",{value:!0}),e),Xt=ul(()=>{}),hi={};eE(hi,{_debugEnd:()=>fz,_debugProcess:()=>dz,_events:()=>Oz,_eventsCount:()=>Rz,_exiting:()=>XU,_fatalExceptions:()=>lz,_getActiveHandles:()=>ZIe,_getActiveRequests:()=>XIe,_kill:()=>ez,_linkedBinding:()=>KIe,_maxListeners:()=>Tz,_preload_modules:()=>xz,_rawDebug:()=>YU,_startProfilerIdleNotifier:()=>pz,_stopProfilerIdleNotifier:()=>hz,_tickCallback:()=>uz,abort:()=>bz,addListener:()=>Az,allowedNodeEnvironmentFlags:()=>az,arch:()=>DU,argv:()=>FU,argv0:()=>Cz,assert:()=>JIe,binding:()=>zU,chdir:()=>WU,config:()=>ZU,cpuUsage:()=>DC,cwd:()=>GU,debugPort:()=>Ez,default:()=>QQ,dlopen:()=>QIe,domain:()=>QU,emit:()=>Pz,emitWarning:()=>UU,env:()=>$U,execArgv:()=>BU,execPath:()=>Sz,exit:()=>iz,features:()=>sz,hasUncaughtExceptionCaptureCallback:()=>eNe,hrtime:()=>WI,kill:()=>rz,listeners:()=>nNe,memoryUsage:()=>nz,moduleLoadList:()=>KU,nextTick:()=>qIe,off:()=>Nz,on:()=>Sp,once:()=>Iz,openStdin:()=>oz,pid:()=>yz,platform:()=>LU,ppid:()=>_z,prependListener:()=>Dz,prependOnceListener:()=>Lz,reallyExit:()=>JU,release:()=>qU,removeAllListeners:()=>kz,removeListener:()=>Mz,resourceUsage:()=>tz,setSourceMapsEnabled:()=>wz,setUncaughtExceptionCaptureCallback:()=>cz,stderr:()=>gz,stdin:()=>vz,stdout:()=>mz,title:()=>PU,umask:()=>VU,uptime:()=>tNe,version:()=>HU,versions:()=>jU});function KQ(e){throw new Error("Node.js process "+e+" is not supported by JSPM core outside of Node.js")}function fQt(){!h1||!U0||(h1=!1,U0.length?Sf=U0.concat(Sf):bx=-1,Sf.length&&WIe())}function WIe(){if(!h1){var e=setTimeout(fQt,0);h1=!0;for(var t=Sf.length;t;){for(U0=Sf,Sf=[];++bx<t;)U0&&U0[bx].run();bx=-1,t=Sf.length}U0=null,h1=!1,clearTimeout(e)}}function qIe(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];Sf.push(new YIe(e,t)),Sf.length===1&&!h1&&setTimeout(WIe,0)}function YIe(e,t){this.fun=e,this.array=t}function vs(){}function KIe(e){KQ("_linkedBinding")}function QIe(e){KQ("dlopen")}function XIe(){return[]}function ZIe(){return[]}function JIe(e,t){if(!e)throw new Error(t||"assertion error")}function eNe(){return!1}function tNe(){return Dp.now()/1e3}function WI(e){var t=Math.floor((Date.now()-Dp.now())*.001),n=Dp.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+=qI)),[r,i]}function Sp(){return QQ}function nNe(e){return[]}var Sf,h1,U0,bx,PU,DU,LU,$U,FU,BU,HU,jU,UU,zU,VU,GU,WU,qU,YU,KU,QU,XU,ZU,JU,ez,DC,tz,nz,rz,iz,oz,az,sz,lz,cz,uz,dz,fz,pz,hz,mz,gz,vz,bz,yz,_z,Sz,Ez,Cz,xz,wz,Dp,C$,qI,Tz,Oz,Rz,Az,Iz,Nz,Mz,kz,Pz,Dz,Lz,QQ,pQt=ul(()=>{Xt(),Jt(),Zt(),Sf=[],h1=!1,bx=-1,YIe.prototype.run=function(){this.fun.apply(null,this.array)},PU="browser",DU="x64",LU="browser",$U={PATH:"/usr/bin",LANG:navigator.language+".UTF-8",PWD:"/",HOME:"/home",TMP:"/tmp"},FU=["/usr/bin/node"],BU=[],HU="v16.8.0",jU={},UU=function(e,t){console.warn((t?t+": ":"")+e)},zU=function(e){KQ("binding")},VU=function(e){return 0},GU=function(){return"/"},WU=function(e){},qU={name:"node",sourceUrl:"",headersUrl:"",libUrl:""},YU=vs,KU=[],QU={},XU=!1,ZU={},JU=vs,ez=vs,DC=function(){return{}},tz=DC,nz=DC,rz=vs,iz=vs,oz=vs,az={},sz={inspector:!1,debug:!1,uv:!1,ipv6:!1,tls_alpn:!1,tls_sni:!1,tls_ocsp:!1,tls:!1,cached_builtins:!0},lz=vs,cz=vs,uz=vs,dz=vs,fz=vs,pz=vs,hz=vs,mz=void 0,gz=void 0,vz=void 0,bz=vs,yz=2,_z=1,Sz="/bin/usr/node",Ez=9229,Cz="node",xz=[],wz=vs,Dp={now:typeof performance<"u"?performance.now.bind(performance):void 0,timing:typeof performance<"u"?performance.timing:void 0},Dp.now===void 0&&(C$=Date.now(),Dp.timing&&Dp.timing.navigationStart&&(C$=Dp.timing.navigationStart),Dp.now=()=>Date.now()-C$),qI=1e9,WI.bigint=function(e){var t=WI(e);return typeof BigInt>"u"?t[0]*qI+t[1]:BigInt(t[0]*qI)+BigInt(t[1])},Tz=10,Oz={},Rz=0,Az=Sp,Iz=Sp,Nz=Sp,Mz=Sp,kz=Sp,Pz=vs,Dz=Sp,Lz=Sp,QQ={version:HU,versions:jU,arch:DU,platform:LU,release:qU,_rawDebug:YU,moduleLoadList:KU,binding:zU,_linkedBinding:KIe,_events:Oz,_eventsCount:Rz,_maxListeners:Tz,on:Sp,addListener:Az,once:Iz,off:Nz,removeListener:Mz,removeAllListeners:kz,emit:Pz,prependListener:Dz,prependOnceListener:Lz,listeners:nNe,domain:QU,_exiting:XU,config:ZU,dlopen:QIe,uptime:tNe,_getActiveRequests:XIe,_getActiveHandles:ZIe,reallyExit:JU,_kill:ez,cpuUsage:DC,resourceUsage:tz,memoryUsage:nz,kill:rz,exit:iz,openStdin:oz,allowedNodeEnvironmentFlags:az,assert:JIe,features:sz,_fatalExceptions:lz,setUncaughtExceptionCaptureCallback:cz,hasUncaughtExceptionCaptureCallback:eNe,emitWarning:UU,nextTick:qIe,_tickCallback:uz,_debugProcess:dz,_debugEnd:fz,_startProfilerIdleNotifier:pz,_stopProfilerIdleNotifier:hz,stdout:mz,stdin:vz,stderr:gz,abort:bz,umask:VU,chdir:WU,cwd:GU,env:$U,title:PU,argv:FU,execArgv:BU,pid:yz,ppid:_z,execPath:Sz,debugPort:Ez,hrtime:WI,argv0:Cz,_preload_modules:xz,setSourceMapsEnabled:wz}}),Zt=ul(()=>{pQt()}),Ya={};eE(Ya,{Buffer:()=>TM,INSPECT_MAX_BYTES:()=>rNe,default:()=>Ep,kMaxLength:()=>iNe});function hQt(){if($z)return Ab;$z=!0,Ab.byteLength=s,Ab.toByteArray=c,Ab.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(p){var m=p.length;if(m%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var g=p.indexOf("=");g===-1&&(g=m);var v=g===m?0:4-g%4;return[g,v]}function s(p){var m=a(p),g=m[0],v=m[1];return(g+v)*3/4-v}function l(p,m,g){return(m+g)*3/4-g}function c(p){var m,g=a(p),v=g[0],y=g[1],b=new n(l(p,v,y)),_=0,S=y>0?v-4:v,x;for(x=0;x<S;x+=4)m=t[p.charCodeAt(x)]<<18|t[p.charCodeAt(x+1)]<<12|t[p.charCodeAt(x+2)]<<6|t[p.charCodeAt(x+3)],b[_++]=m>>16&255,b[_++]=m>>8&255,b[_++]=m&255;return y===2&&(m=t[p.charCodeAt(x)]<<2|t[p.charCodeAt(x+1)]>>4,b[_++]=m&255),y===1&&(m=t[p.charCodeAt(x)]<<10|t[p.charCodeAt(x+1)]<<4|t[p.charCodeAt(x+2)]>>2,b[_++]=m>>8&255,b[_++]=m&255),b}function u(p){return e[p>>18&63]+e[p>>12&63]+e[p>>6&63]+e[p&63]}function d(p,m,g){for(var v,y=[],b=m;b<g;b+=3)v=(p[b]<<16&16711680)+(p[b+1]<<8&65280)+(p[b+2]&255),y.push(u(v));return y.join("")}function f(p){for(var m,g=p.length,v=g%3,y=[],b=16383,_=0,S=g-v;_<S;_+=b)y.push(d(p,_,_+b>S?S:_+b));return v===1?(m=p[g-1],y.push(e[m>>2]+e[m<<4&63]+"==")):v===2&&(m=(p[g-2]<<8)+p[g-1],y.push(e[m>>10]+e[m>>4&63]+e[m<<2&63]+"=")),y.join("")}return Ab}function mQt(){return Fz?LC:(Fz=!0,LC.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,p=e[t+d];for(d+=f,o=p&(1<<-u)-1,p>>=-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:(p?-1:1)*(1/0);a=a+Math.pow(2,r),o=o-c}return(p?-1:1)*a*Math.pow(2,o-r)},LC.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,p=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+p]=s&255,p+=m,s/=256,i-=8);for(a=a<<i|s,c+=i;c>0;e[n+p]=a&255,p+=m,a/=256,c-=8);e[n+p-m]|=g*128},LC)}function gQt(){if(Bz)return Kh;Bz=!0;let e=hQt(),t=mQt(),n=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;Kh.Buffer=a,Kh.SlowBuffer=y,Kh.INSPECT_MAX_BYTES=50;let r=2147483647;Kh.kMaxLength=r,a.TYPED_ARRAY_SUPPORT=i(),!a.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function i(){try{let q=new Uint8Array(1),U={foo:function(){return 42}};return Object.setPrototypeOf(U,Uint8Array.prototype),Object.setPrototypeOf(q,U),q.foo()===42}catch{return!1}}Object.defineProperty(a.prototype,"parent",{enumerable:!0,get:function(){if(a.isBuffer(this))return this.buffer}}),Object.defineProperty(a.prototype,"offset",{enumerable:!0,get:function(){if(a.isBuffer(this))return this.byteOffset}});function o(q){if(q>r)throw new RangeError('The value "'+q+'" is invalid for option "size"');let U=new Uint8Array(q);return Object.setPrototypeOf(U,a.prototype),U}function a(q,U,Y){if(typeof q=="number"){if(typeof U=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return u(q)}return s(q,U,Y)}a.poolSize=8192;function s(q,U,Y){if(typeof q=="string")return d(q,U);if(ArrayBuffer.isView(q))return p(q);if(q==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof q);if(de(q,ArrayBuffer)||q&&de(q.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(de(q,SharedArrayBuffer)||q&&de(q.buffer,SharedArrayBuffer)))return m(q,U,Y);if(typeof q=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');let ae=q.valueOf&&q.valueOf();if(ae!=null&&ae!==q)return a.from(ae,U,Y);let ye=g(q);if(ye)return ye;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof q[Symbol.toPrimitive]=="function")return a.from(q[Symbol.toPrimitive]("string"),U,Y);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof q)}a.from=function(q,U,Y){return s(q,U,Y)},Object.setPrototypeOf(a.prototype,Uint8Array.prototype),Object.setPrototypeOf(a,Uint8Array);function l(q){if(typeof q!="number")throw new TypeError('"size" argument must be of type number');if(q<0)throw new RangeError('The value "'+q+'" is invalid for option "size"')}function c(q,U,Y){return l(q),q<=0?o(q):U!==void 0?typeof Y=="string"?o(q).fill(U,Y):o(q).fill(U):o(q)}a.alloc=function(q,U,Y){return c(q,U,Y)};function u(q){return l(q),o(q<0?0:v(q)|0)}a.allocUnsafe=function(q){return u(q)},a.allocUnsafeSlow=function(q){return u(q)};function d(q,U){if((typeof U!="string"||U==="")&&(U="utf8"),!a.isEncoding(U))throw new TypeError("Unknown encoding: "+U);let Y=b(q,U)|0,ae=o(Y),ye=ae.write(q,U);return ye!==Y&&(ae=ae.slice(0,ye)),ae}function f(q){let U=q.length<0?0:v(q.length)|0,Y=o(U);for(let ae=0;ae<U;ae+=1)Y[ae]=q[ae]&255;return Y}function p(q){if(de(q,Uint8Array)){let U=new Uint8Array(q);return m(U.buffer,U.byteOffset,U.byteLength)}return f(q)}function m(q,U,Y){if(U<0||q.byteLength<U)throw new RangeError('"offset" is outside of buffer bounds');if(q.byteLength<U+(Y||0))throw new RangeError('"length" is outside of buffer bounds');let ae;return U===void 0&&Y===void 0?ae=new Uint8Array(q):Y===void 0?ae=new Uint8Array(q,U):ae=new Uint8Array(q,U,Y),Object.setPrototypeOf(ae,a.prototype),ae}function g(q){if(a.isBuffer(q)){let U=v(q.length)|0,Y=o(U);return Y.length===0||q.copy(Y,0,0,U),Y}if(q.length!==void 0)return typeof q.length!="number"||Ee(q.length)?o(0):f(q);if(q.type==="Buffer"&&Array.isArray(q.data))return f(q.data)}function v(q){if(q>=r)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+r.toString(16)+" bytes");return q|0}function y(q){return+q!=q&&(q=0),a.alloc(+q)}a.isBuffer=function(q){return q!=null&&q._isBuffer===!0&&q!==a.prototype},a.compare=function(q,U){if(de(q,Uint8Array)&&(q=a.from(q,q.offset,q.byteLength)),de(U,Uint8Array)&&(U=a.from(U,U.offset,U.byteLength)),!a.isBuffer(q)||!a.isBuffer(U))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(q===U)return 0;let Y=q.length,ae=U.length;for(let ye=0,fe=Math.min(Y,ae);ye<fe;++ye)if(q[ye]!==U[ye]){Y=q[ye],ae=U[ye];break}return Y<ae?-1:ae<Y?1:0},a.isEncoding=function(q){switch(String(q).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},a.concat=function(q,U){if(!Array.isArray(q))throw new TypeError('"list" argument must be an Array of Buffers');if(q.length===0)return a.alloc(0);let Y;if(U===void 0)for(U=0,Y=0;Y<q.length;++Y)U+=q[Y].length;let ae=a.allocUnsafe(U),ye=0;for(Y=0;Y<q.length;++Y){let fe=q[Y];if(de(fe,Uint8Array))ye+fe.length>ae.length?(a.isBuffer(fe)||(fe=a.from(fe)),fe.copy(ae,ye)):Uint8Array.prototype.set.call(ae,fe,ye);else if(a.isBuffer(fe))fe.copy(ae,ye);else throw new TypeError('"list" argument must be an Array of Buffers');ye+=fe.length}return ae};function b(q,U){if(a.isBuffer(q))return q.length;if(ArrayBuffer.isView(q)||de(q,ArrayBuffer))return q.byteLength;if(typeof q!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof q);let Y=q.length,ae=arguments.length>2&&arguments[2]===!0;if(!ae&&Y===0)return 0;let ye=!1;for(;;)switch(U){case"ascii":case"latin1":case"binary":return Y;case"utf8":case"utf-8":return re(q).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Y*2;case"hex":return Y>>>1;case"base64":return xe(q).length;default:if(ye)return ae?-1:re(q).length;U=(""+U).toLowerCase(),ye=!0}}a.byteLength=b;function _(q,U,Y){let ae=!1;if((U===void 0||U<0)&&(U=0),U>this.length||((Y===void 0||Y>this.length)&&(Y=this.length),Y<=0)||(Y>>>=0,U>>>=0,Y<=U))return"";for(q||(q="utf8");;)switch(q){case"hex":return B(this,U,Y);case"utf8":case"utf-8":return N(this,U,Y);case"ascii":return k(this,U,Y);case"latin1":case"binary":return P(this,U,Y);case"base64":return I(this,U,Y);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return G(this,U,Y);default:if(ae)throw new TypeError("Unknown encoding: "+q);q=(q+"").toLowerCase(),ae=!0}}a.prototype._isBuffer=!0;function S(q,U,Y){let ae=q[U];q[U]=q[Y],q[Y]=ae}a.prototype.swap16=function(){let q=this.length;if(q%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let U=0;U<q;U+=2)S(this,U,U+1);return this},a.prototype.swap32=function(){let q=this.length;if(q%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let U=0;U<q;U+=4)S(this,U,U+3),S(this,U+1,U+2);return this},a.prototype.swap64=function(){let q=this.length;if(q%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let U=0;U<q;U+=8)S(this,U,U+7),S(this,U+1,U+6),S(this,U+2,U+5),S(this,U+3,U+4);return this},a.prototype.toString=function(){let q=this.length;return q===0?"":arguments.length===0?N(this,0,q):_.apply(this,arguments)},a.prototype.toLocaleString=a.prototype.toString,a.prototype.equals=function(q){if(!a.isBuffer(q))throw new TypeError("Argument must be a Buffer");return this===q?!0:a.compare(this,q)===0},a.prototype.inspect=function(){let q="",U=Kh.INSPECT_MAX_BYTES;return q=this.toString("hex",0,U).replace(/(.{2})/g,"$1 ").trim(),this.length>U&&(q+=" ... "),"<Buffer "+q+">"},n&&(a.prototype[n]=a.prototype.inspect),a.prototype.compare=function(q,U,Y,ae,ye){if(de(q,Uint8Array)&&(q=a.from(q,q.offset,q.byteLength)),!a.isBuffer(q))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof q);if(U===void 0&&(U=0),Y===void 0&&(Y=q?q.length:0),ae===void 0&&(ae=0),ye===void 0&&(ye=this.length),U<0||Y>q.length||ae<0||ye>this.length)throw new RangeError("out of range index");if(ae>=ye&&U>=Y)return 0;if(ae>=ye)return-1;if(U>=Y)return 1;if(U>>>=0,Y>>>=0,ae>>>=0,ye>>>=0,this===q)return 0;let fe=ye-ae,Ae=Y-U,We=Math.min(fe,Ae),ie=this.slice(ae,ye),Be=q.slice(U,Y);for(let Fe=0;Fe<We;++Fe)if(ie[Fe]!==Be[Fe]){fe=ie[Fe],Ae=Be[Fe];break}return fe<Ae?-1:Ae<fe?1:0};function x(q,U,Y,ae,ye){if(q.length===0)return-1;if(typeof Y=="string"?(ae=Y,Y=0):Y>2147483647?Y=2147483647:Y<-2147483648&&(Y=-2147483648),Y=+Y,Ee(Y)&&(Y=ye?0:q.length-1),Y<0&&(Y=q.length+Y),Y>=q.length){if(ye)return-1;Y=q.length-1}else if(Y<0)if(ye)Y=0;else return-1;if(typeof U=="string"&&(U=a.from(U,ae)),a.isBuffer(U))return U.length===0?-1:E(q,U,Y,ae,ye);if(typeof U=="number")return U=U&255,typeof Uint8Array.prototype.indexOf=="function"?ye?Uint8Array.prototype.indexOf.call(q,U,Y):Uint8Array.prototype.lastIndexOf.call(q,U,Y):E(q,[U],Y,ae,ye);throw new TypeError("val must be string, number or Buffer")}function E(q,U,Y,ae,ye){let fe=1,Ae=q.length,We=U.length;if(ae!==void 0&&(ae=String(ae).toLowerCase(),ae==="ucs2"||ae==="ucs-2"||ae==="utf16le"||ae==="utf-16le")){if(q.length<2||U.length<2)return-1;fe=2,Ae/=2,We/=2,Y/=2}function ie(Fe,Pe){return fe===1?Fe[Pe]:Fe.readUInt16BE(Pe*fe)}let Be;if(ye){let Fe=-1;for(Be=Y;Be<Ae;Be++)if(ie(q,Be)===ie(U,Fe===-1?0:Be-Fe)){if(Fe===-1&&(Fe=Be),Be-Fe+1===We)return Fe*fe}else Fe!==-1&&(Be-=Be-Fe),Fe=-1}else for(Y+We>Ae&&(Y=Ae-We),Be=Y;Be>=0;Be--){let Fe=!0;for(let Pe=0;Pe<We;Pe++)if(ie(q,Be+Pe)!==ie(U,Pe)){Fe=!1;break}if(Fe)return Be}return-1}a.prototype.includes=function(q,U,Y){return this.indexOf(q,U,Y)!==-1},a.prototype.indexOf=function(q,U,Y){return x(this,q,U,Y,!0)},a.prototype.lastIndexOf=function(q,U,Y){return x(this,q,U,Y,!1)};function C(q,U,Y,ae){Y=Number(Y)||0;let ye=q.length-Y;ae?(ae=Number(ae),ae>ye&&(ae=ye)):ae=ye;let fe=U.length;ae>fe/2&&(ae=fe/2);let Ae;for(Ae=0;Ae<ae;++Ae){let We=parseInt(U.substr(Ae*2,2),16);if(Ee(We))return Ae;q[Y+Ae]=We}return Ae}function w(q,U,Y,ae){return we(re(U,q.length-Y),q,Y,ae)}function O(q,U,Y,ae){return we(ve(U),q,Y,ae)}function T(q,U,Y,ae){return we(xe(U),q,Y,ae)}function A(q,U,Y,ae){return we(be(U,q.length-Y),q,Y,ae)}a.prototype.write=function(q,U,Y,ae){if(U===void 0)ae="utf8",Y=this.length,U=0;else if(Y===void 0&&typeof U=="string")ae=U,Y=this.length,U=0;else if(isFinite(U))U=U>>>0,isFinite(Y)?(Y=Y>>>0,ae===void 0&&(ae="utf8")):(ae=Y,Y=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");let ye=this.length-U;if((Y===void 0||Y>ye)&&(Y=ye),q.length>0&&(Y<0||U<0)||U>this.length)throw new RangeError("Attempt to write outside buffer bounds");ae||(ae="utf8");let fe=!1;for(;;)switch(ae){case"hex":return C(this,q,U,Y);case"utf8":case"utf-8":return w(this,q,U,Y);case"ascii":case"latin1":case"binary":return O(this,q,U,Y);case"base64":return T(this,q,U,Y);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return A(this,q,U,Y);default:if(fe)throw new TypeError("Unknown encoding: "+ae);ae=(""+ae).toLowerCase(),fe=!0}},a.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function I(q,U,Y){return U===0&&Y===q.length?e.fromByteArray(q):e.fromByteArray(q.slice(U,Y))}function N(q,U,Y){Y=Math.min(q.length,Y);let ae=[],ye=U;for(;ye<Y;){let fe=q[ye],Ae=null,We=fe>239?4:fe>223?3:fe>191?2:1;if(ye+We<=Y){let ie,Be,Fe,Pe;switch(We){case 1:fe<128&&(Ae=fe);break;case 2:ie=q[ye+1],(ie&192)===128&&(Pe=(fe&31)<<6|ie&63,Pe>127&&(Ae=Pe));break;case 3:ie=q[ye+1],Be=q[ye+2],(ie&192)===128&&(Be&192)===128&&(Pe=(fe&15)<<12|(ie&63)<<6|Be&63,Pe>2047&&(Pe<55296||Pe>57343)&&(Ae=Pe));break;case 4:ie=q[ye+1],Be=q[ye+2],Fe=q[ye+3],(ie&192)===128&&(Be&192)===128&&(Fe&192)===128&&(Pe=(fe&15)<<18|(ie&63)<<12|(Be&63)<<6|Fe&63,Pe>65535&&Pe<1114112&&(Ae=Pe))}}Ae===null?(Ae=65533,We=1):Ae>65535&&(Ae-=65536,ae.push(Ae>>>10&1023|55296),Ae=56320|Ae&1023),ae.push(Ae),ye+=We}return M(ae)}let D=4096;function M(q){let U=q.length;if(U<=D)return String.fromCharCode.apply(String,q);let Y="",ae=0;for(;ae<U;)Y+=String.fromCharCode.apply(String,q.slice(ae,ae+=D));return Y}function k(q,U,Y){let ae="";Y=Math.min(q.length,Y);for(let ye=U;ye<Y;++ye)ae+=String.fromCharCode(q[ye]&127);return ae}function P(q,U,Y){let ae="";Y=Math.min(q.length,Y);for(let ye=U;ye<Y;++ye)ae+=String.fromCharCode(q[ye]);return ae}function B(q,U,Y){let ae=q.length;(!U||U<0)&&(U=0),(!Y||Y<0||Y>ae)&&(Y=ae);let ye="";for(let fe=U;fe<Y;++fe)ye+=Ne[q[fe]];return ye}function G(q,U,Y){let ae=q.slice(U,Y),ye="";for(let fe=0;fe<ae.length-1;fe+=2)ye+=String.fromCharCode(ae[fe]+ae[fe+1]*256);return ye}a.prototype.slice=function(q,U){let Y=this.length;q=~~q,U=U===void 0?Y:~~U,q<0?(q+=Y,q<0&&(q=0)):q>Y&&(q=Y),U<0?(U+=Y,U<0&&(U=0)):U>Y&&(U=Y),U<q&&(U=q);let ae=this.subarray(q,U);return Object.setPrototypeOf(ae,a.prototype),ae};function L(q,U,Y){if(q%1!==0||q<0)throw new RangeError("offset is not uint");if(q+U>Y)throw new RangeError("Trying to access beyond buffer length")}a.prototype.readUintLE=a.prototype.readUIntLE=function(q,U,Y){q=q>>>0,U=U>>>0,Y||L(q,U,this.length);let ae=this[q],ye=1,fe=0;for(;++fe<U&&(ye*=256);)ae+=this[q+fe]*ye;return ae},a.prototype.readUintBE=a.prototype.readUIntBE=function(q,U,Y){q=q>>>0,U=U>>>0,Y||L(q,U,this.length);let ae=this[q+--U],ye=1;for(;U>0&&(ye*=256);)ae+=this[q+--U]*ye;return ae},a.prototype.readUint8=a.prototype.readUInt8=function(q,U){return q=q>>>0,U||L(q,1,this.length),this[q]},a.prototype.readUint16LE=a.prototype.readUInt16LE=function(q,U){return q=q>>>0,U||L(q,2,this.length),this[q]|this[q+1]<<8},a.prototype.readUint16BE=a.prototype.readUInt16BE=function(q,U){return q=q>>>0,U||L(q,2,this.length),this[q]<<8|this[q+1]},a.prototype.readUint32LE=a.prototype.readUInt32LE=function(q,U){return q=q>>>0,U||L(q,4,this.length),(this[q]|this[q+1]<<8|this[q+2]<<16)+this[q+3]*16777216},a.prototype.readUint32BE=a.prototype.readUInt32BE=function(q,U){return q=q>>>0,U||L(q,4,this.length),this[q]*16777216+(this[q+1]<<16|this[q+2]<<8|this[q+3])},a.prototype.readBigUInt64LE=Te(function(q){q=q>>>0,ne(q,"offset");let U=this[q],Y=this[q+7];(U===void 0||Y===void 0)&&he(q,this.length-8);let ae=U+this[++q]*2**8+this[++q]*2**16+this[++q]*2**24,ye=this[++q]+this[++q]*2**8+this[++q]*2**16+Y*2**24;return BigInt(ae)+(BigInt(ye)<<BigInt(32))}),a.prototype.readBigUInt64BE=Te(function(q){q=q>>>0,ne(q,"offset");let U=this[q],Y=this[q+7];(U===void 0||Y===void 0)&&he(q,this.length-8);let ae=U*2**24+this[++q]*2**16+this[++q]*2**8+this[++q],ye=this[++q]*2**24+this[++q]*2**16+this[++q]*2**8+Y;return(BigInt(ae)<<BigInt(32))+BigInt(ye)}),a.prototype.readIntLE=function(q,U,Y){q=q>>>0,U=U>>>0,Y||L(q,U,this.length);let ae=this[q],ye=1,fe=0;for(;++fe<U&&(ye*=256);)ae+=this[q+fe]*ye;return ye*=128,ae>=ye&&(ae-=Math.pow(2,8*U)),ae},a.prototype.readIntBE=function(q,U,Y){q=q>>>0,U=U>>>0,Y||L(q,U,this.length);let ae=U,ye=1,fe=this[q+--ae];for(;ae>0&&(ye*=256);)fe+=this[q+--ae]*ye;return ye*=128,fe>=ye&&(fe-=Math.pow(2,8*U)),fe},a.prototype.readInt8=function(q,U){return q=q>>>0,U||L(q,1,this.length),this[q]&128?(255-this[q]+1)*-1:this[q]},a.prototype.readInt16LE=function(q,U){q=q>>>0,U||L(q,2,this.length);let Y=this[q]|this[q+1]<<8;return Y&32768?Y|4294901760:Y},a.prototype.readInt16BE=function(q,U){q=q>>>0,U||L(q,2,this.length);let Y=this[q+1]|this[q]<<8;return Y&32768?Y|4294901760:Y},a.prototype.readInt32LE=function(q,U){return q=q>>>0,U||L(q,4,this.length),this[q]|this[q+1]<<8|this[q+2]<<16|this[q+3]<<24},a.prototype.readInt32BE=function(q,U){return q=q>>>0,U||L(q,4,this.length),this[q]<<24|this[q+1]<<16|this[q+2]<<8|this[q+3]},a.prototype.readBigInt64LE=Te(function(q){q=q>>>0,ne(q,"offset");let U=this[q],Y=this[q+7];(U===void 0||Y===void 0)&&he(q,this.length-8);let ae=this[q+4]+this[q+5]*2**8+this[q+6]*2**16+(Y<<24);return(BigInt(ae)<<BigInt(32))+BigInt(U+this[++q]*2**8+this[++q]*2**16+this[++q]*2**24)}),a.prototype.readBigInt64BE=Te(function(q){q=q>>>0,ne(q,"offset");let U=this[q],Y=this[q+7];(U===void 0||Y===void 0)&&he(q,this.length-8);let ae=(U<<24)+this[++q]*2**16+this[++q]*2**8+this[++q];return(BigInt(ae)<<BigInt(32))+BigInt(this[++q]*2**24+this[++q]*2**16+this[++q]*2**8+Y)}),a.prototype.readFloatLE=function(q,U){return q=q>>>0,U||L(q,4,this.length),t.read(this,q,!0,23,4)},a.prototype.readFloatBE=function(q,U){return q=q>>>0,U||L(q,4,this.length),t.read(this,q,!1,23,4)},a.prototype.readDoubleLE=function(q,U){return q=q>>>0,U||L(q,8,this.length),t.read(this,q,!0,52,8)},a.prototype.readDoubleBE=function(q,U){return q=q>>>0,U||L(q,8,this.length),t.read(this,q,!1,52,8)};function W(q,U,Y,ae,ye,fe){if(!a.isBuffer(q))throw new TypeError('"buffer" argument must be a Buffer instance');if(U>ye||U<fe)throw new RangeError('"value" argument is out of bounds');if(Y+ae>q.length)throw new RangeError("Index out of range")}a.prototype.writeUintLE=a.prototype.writeUIntLE=function(q,U,Y,ae){if(q=+q,U=U>>>0,Y=Y>>>0,!ae){let Ae=Math.pow(2,8*Y)-1;W(this,q,U,Y,Ae,0)}let ye=1,fe=0;for(this[U]=q&255;++fe<Y&&(ye*=256);)this[U+fe]=q/ye&255;return U+Y},a.prototype.writeUintBE=a.prototype.writeUIntBE=function(q,U,Y,ae){if(q=+q,U=U>>>0,Y=Y>>>0,!ae){let Ae=Math.pow(2,8*Y)-1;W(this,q,U,Y,Ae,0)}let ye=Y-1,fe=1;for(this[U+ye]=q&255;--ye>=0&&(fe*=256);)this[U+ye]=q/fe&255;return U+Y},a.prototype.writeUint8=a.prototype.writeUInt8=function(q,U,Y){return q=+q,U=U>>>0,Y||W(this,q,U,1,255,0),this[U]=q&255,U+1},a.prototype.writeUint16LE=a.prototype.writeUInt16LE=function(q,U,Y){return q=+q,U=U>>>0,Y||W(this,q,U,2,65535,0),this[U]=q&255,this[U+1]=q>>>8,U+2},a.prototype.writeUint16BE=a.prototype.writeUInt16BE=function(q,U,Y){return q=+q,U=U>>>0,Y||W(this,q,U,2,65535,0),this[U]=q>>>8,this[U+1]=q&255,U+2},a.prototype.writeUint32LE=a.prototype.writeUInt32LE=function(q,U,Y){return q=+q,U=U>>>0,Y||W(this,q,U,4,4294967295,0),this[U+3]=q>>>24,this[U+2]=q>>>16,this[U+1]=q>>>8,this[U]=q&255,U+4},a.prototype.writeUint32BE=a.prototype.writeUInt32BE=function(q,U,Y){return q=+q,U=U>>>0,Y||W(this,q,U,4,4294967295,0),this[U]=q>>>24,this[U+1]=q>>>16,this[U+2]=q>>>8,this[U+3]=q&255,U+4};function j(q,U,Y,ae,ye){oe(U,ae,ye,q,Y,7);let fe=Number(U&BigInt(4294967295));q[Y++]=fe,fe=fe>>8,q[Y++]=fe,fe=fe>>8,q[Y++]=fe,fe=fe>>8,q[Y++]=fe;let Ae=Number(U>>BigInt(32)&BigInt(4294967295));return q[Y++]=Ae,Ae=Ae>>8,q[Y++]=Ae,Ae=Ae>>8,q[Y++]=Ae,Ae=Ae>>8,q[Y++]=Ae,Y}function H(q,U,Y,ae,ye){oe(U,ae,ye,q,Y,7);let fe=Number(U&BigInt(4294967295));q[Y+7]=fe,fe=fe>>8,q[Y+6]=fe,fe=fe>>8,q[Y+5]=fe,fe=fe>>8,q[Y+4]=fe;let Ae=Number(U>>BigInt(32)&BigInt(4294967295));return q[Y+3]=Ae,Ae=Ae>>8,q[Y+2]=Ae,Ae=Ae>>8,q[Y+1]=Ae,Ae=Ae>>8,q[Y]=Ae,Y+8}a.prototype.writeBigUInt64LE=Te(function(q,U=0){return j(this,q,U,BigInt(0),BigInt("0xffffffffffffffff"))}),a.prototype.writeBigUInt64BE=Te(function(q,U=0){return H(this,q,U,BigInt(0),BigInt("0xffffffffffffffff"))}),a.prototype.writeIntLE=function(q,U,Y,ae){if(q=+q,U=U>>>0,!ae){let We=Math.pow(2,8*Y-1);W(this,q,U,Y,We-1,-We)}let ye=0,fe=1,Ae=0;for(this[U]=q&255;++ye<Y&&(fe*=256);)q<0&&Ae===0&&this[U+ye-1]!==0&&(Ae=1),this[U+ye]=(q/fe>>0)-Ae&255;return U+Y},a.prototype.writeIntBE=function(q,U,Y,ae){if(q=+q,U=U>>>0,!ae){let We=Math.pow(2,8*Y-1);W(this,q,U,Y,We-1,-We)}let ye=Y-1,fe=1,Ae=0;for(this[U+ye]=q&255;--ye>=0&&(fe*=256);)q<0&&Ae===0&&this[U+ye+1]!==0&&(Ae=1),this[U+ye]=(q/fe>>0)-Ae&255;return U+Y},a.prototype.writeInt8=function(q,U,Y){return q=+q,U=U>>>0,Y||W(this,q,U,1,127,-128),q<0&&(q=255+q+1),this[U]=q&255,U+1},a.prototype.writeInt16LE=function(q,U,Y){return q=+q,U=U>>>0,Y||W(this,q,U,2,32767,-32768),this[U]=q&255,this[U+1]=q>>>8,U+2},a.prototype.writeInt16BE=function(q,U,Y){return q=+q,U=U>>>0,Y||W(this,q,U,2,32767,-32768),this[U]=q>>>8,this[U+1]=q&255,U+2},a.prototype.writeInt32LE=function(q,U,Y){return q=+q,U=U>>>0,Y||W(this,q,U,4,2147483647,-2147483648),this[U]=q&255,this[U+1]=q>>>8,this[U+2]=q>>>16,this[U+3]=q>>>24,U+4},a.prototype.writeInt32BE=function(q,U,Y){return q=+q,U=U>>>0,Y||W(this,q,U,4,2147483647,-2147483648),q<0&&(q=4294967295+q+1),this[U]=q>>>24,this[U+1]=q>>>16,this[U+2]=q>>>8,this[U+3]=q&255,U+4},a.prototype.writeBigInt64LE=Te(function(q,U=0){return j(this,q,U,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),a.prototype.writeBigInt64BE=Te(function(q,U=0){return H(this,q,U,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function X(q,U,Y,ae,ye,fe){if(Y+ae>q.length)throw new RangeError("Index out of range");if(Y<0)throw new RangeError("Index out of range")}function Q(q,U,Y,ae,ye){return U=+U,Y=Y>>>0,ye||X(q,U,Y,4),t.write(q,U,Y,ae,23,4),Y+4}a.prototype.writeFloatLE=function(q,U,Y){return Q(this,q,U,!0,Y)},a.prototype.writeFloatBE=function(q,U,Y){return Q(this,q,U,!1,Y)};function ue(q,U,Y,ae,ye){return U=+U,Y=Y>>>0,ye||X(q,U,Y,8),t.write(q,U,Y,ae,52,8),Y+8}a.prototype.writeDoubleLE=function(q,U,Y){return ue(this,q,U,!0,Y)},a.prototype.writeDoubleBE=function(q,U,Y){return ue(this,q,U,!1,Y)},a.prototype.copy=function(q,U,Y,ae){if(!a.isBuffer(q))throw new TypeError("argument should be a Buffer");if(Y||(Y=0),!ae&&ae!==0&&(ae=this.length),U>=q.length&&(U=q.length),U||(U=0),ae>0&&ae<Y&&(ae=Y),ae===Y||q.length===0||this.length===0)return 0;if(U<0)throw new RangeError("targetStart out of bounds");if(Y<0||Y>=this.length)throw new RangeError("Index out of range");if(ae<0)throw new RangeError("sourceEnd out of bounds");ae>this.length&&(ae=this.length),q.length-U<ae-Y&&(ae=q.length-U+Y);let ye=ae-Y;return this===q&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(U,Y,ae):Uint8Array.prototype.set.call(q,this.subarray(Y,ae),U),ye},a.prototype.fill=function(q,U,Y,ae){if(typeof q=="string"){if(typeof U=="string"?(ae=U,U=0,Y=this.length):typeof Y=="string"&&(ae=Y,Y=this.length),ae!==void 0&&typeof ae!="string")throw new TypeError("encoding must be a string");if(typeof ae=="string"&&!a.isEncoding(ae))throw new TypeError("Unknown encoding: "+ae);if(q.length===1){let fe=q.charCodeAt(0);(ae==="utf8"&&fe<128||ae==="latin1")&&(q=fe)}}else typeof q=="number"?q=q&255:typeof q=="boolean"&&(q=Number(q));if(U<0||this.length<U||this.length<Y)throw new RangeError("Out of range index");if(Y<=U)return this;U=U>>>0,Y=Y===void 0?this.length:Y>>>0,q||(q=0);let ye;if(typeof q=="number")for(ye=U;ye<Y;++ye)this[ye]=q;else{let fe=a.isBuffer(q)?q:a.from(q,ae),Ae=fe.length;if(Ae===0)throw new TypeError('The value "'+q+'" is invalid for argument "value"');for(ye=0;ye<Y-U;++ye)this[ye+U]=fe[ye%Ae]}return this};let ee={};function K(q,U,Y){ee[q]=class extends Y{constructor(){super(),Object.defineProperty(this,"message",{value:U.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${q}]`,this.stack,delete this.name}get code(){return q}set code(ae){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:ae,writable:!0})}toString(){return`${this.name} [${q}]: ${this.message}`}}}K("ERR_BUFFER_OUT_OF_BOUNDS",function(q){return q?`${q} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),K("ERR_INVALID_ARG_TYPE",function(q,U){return`The "${q}" argument must be of type number. Received type ${typeof U}`},TypeError),K("ERR_OUT_OF_RANGE",function(q,U,Y){let ae=`The value of "${q}" is out of range.`,ye=Y;return Number.isInteger(Y)&&Math.abs(Y)>2**32?ye=se(String(Y)):typeof Y=="bigint"&&(ye=String(Y),(Y>BigInt(2)**BigInt(32)||Y<-(BigInt(2)**BigInt(32)))&&(ye=se(ye)),ye+="n"),ae+=` It must be ${U}. Received ${ye}`,ae},RangeError);function se(q){let U="",Y=q.length,ae=q[0]==="-"?1:0;for(;Y>=ae+4;Y-=3)U=`_${q.slice(Y-3,Y)}${U}`;return`${q.slice(0,Y)}${U}`}function le(q,U,Y){ne(U,"offset"),(q[U]===void 0||q[U+Y]===void 0)&&he(U,q.length-(Y+1))}function oe(q,U,Y,ae,ye,fe){if(q>Y||q<U){let Ae=typeof U=="bigint"?"n":"",We;throw U===0||U===BigInt(0)?We=`>= 0${Ae} and < 2${Ae} ** ${(fe+1)*8}${Ae}`:We=`>= -(2${Ae} ** ${(fe+1)*8-1}${Ae}) and < 2 ** ${(fe+1)*8-1}${Ae}`,new ee.ERR_OUT_OF_RANGE("value",We,q)}le(ae,ye,fe)}function ne(q,U){if(typeof q!="number")throw new ee.ERR_INVALID_ARG_TYPE(U,"number",q)}function he(q,U,Y){throw Math.floor(q)!==q?(ne(q,Y),new ee.ERR_OUT_OF_RANGE("offset","an integer",q)):U<0?new ee.ERR_BUFFER_OUT_OF_BOUNDS:new ee.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${U}`,q)}let me=/[^+/0-9A-Za-z-_]/g;function ce(q){if(q=q.split("=")[0],q=q.trim().replace(me,""),q.length<2)return"";for(;q.length%4!==0;)q=q+"=";return q}function re(q,U){U=U||1/0;let Y,ae=q.length,ye=null,fe=[];for(let Ae=0;Ae<ae;++Ae){if(Y=q.charCodeAt(Ae),Y>55295&&Y<57344){if(!ye){if(Y>56319){(U-=3)>-1&&fe.push(239,191,189);continue}else if(Ae+1===ae){(U-=3)>-1&&fe.push(239,191,189);continue}ye=Y;continue}if(Y<56320){(U-=3)>-1&&fe.push(239,191,189),ye=Y;continue}Y=(ye-55296<<10|Y-56320)+65536}else ye&&(U-=3)>-1&&fe.push(239,191,189);if(ye=null,Y<128){if((U-=1)<0)break;fe.push(Y)}else if(Y<2048){if((U-=2)<0)break;fe.push(Y>>6|192,Y&63|128)}else if(Y<65536){if((U-=3)<0)break;fe.push(Y>>12|224,Y>>6&63|128,Y&63|128)}else if(Y<1114112){if((U-=4)<0)break;fe.push(Y>>18|240,Y>>12&63|128,Y>>6&63|128,Y&63|128)}else throw new Error("Invalid code point")}return fe}function ve(q){let U=[];for(let Y=0;Y<q.length;++Y)U.push(q.charCodeAt(Y)&255);return U}function be(q,U){let Y,ae,ye,fe=[];for(let Ae=0;Ae<q.length&&!((U-=2)<0);++Ae)Y=q.charCodeAt(Ae),ae=Y>>8,ye=Y%256,fe.push(ye),fe.push(ae);return fe}function xe(q){return e.toByteArray(ce(q))}function we(q,U,Y,ae){let ye;for(ye=0;ye<ae&&!(ye+Y>=U.length||ye>=q.length);++ye)U[ye+Y]=q[ye];return ye}function de(q,U){return q instanceof U||q!=null&&q.constructor!=null&&q.constructor.name!=null&&q.constructor.name===U.name}function Ee(q){return q!==q}let Ne=function(){let q="0123456789abcdef",U=new Array(256);for(let Y=0;Y<16;++Y){let ae=Y*16;for(let ye=0;ye<16;++ye)U[ae+ye]=q[Y]+q[ye]}return U}();function Te(q){return typeof BigInt>"u"?Ve:q}function Ve(){throw new Error("BigInt not supported")}return Kh}var Ab,$z,LC,Fz,Kh,Bz,Ep,TM,rNe,iNe,Ka=ul(()=>{Xt(),Jt(),Zt(),Ab={},$z=!1,LC={},Fz=!1,Kh={},Bz=!1,Ep=gQt(),Ep.Buffer,Ep.SlowBuffer,Ep.INSPECT_MAX_BYTES,Ep.kMaxLength,TM=Ep.Buffer,rNe=Ep.INSPECT_MAX_BYTES,iNe=Ep.kMaxLength}),Jt=ul(()=>{Ka()}),vQt=on(e=>{Xt(),Jt(),Zt(),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}),ko=on((e,t)=>{Xt(),Jt(),Zt();var n=class extends Error{constructor(r){if(!Array.isArray(r))throw new TypeError(`Expected input to be an Array, got ${typeof r}`);let i="";for(let o=0;o<r.length;o++)i+=` ${r[o].stack}
`;super(i),this.name="AggregateError",this.errors=r}};t.exports={AggregateError:n,ArrayIsArray(r){return Array.isArray(r)},ArrayPrototypeIncludes(r,i){return r.includes(i)},ArrayPrototypeIndexOf(r,i){return r.indexOf(i)},ArrayPrototypeJoin(r,i){return r.join(i)},ArrayPrototypeMap(r,i){return r.map(i)},ArrayPrototypePop(r,i){return r.pop(i)},ArrayPrototypePush(r,i){return r.push(i)},ArrayPrototypeSlice(r,i,o){return r.slice(i,o)},Error,FunctionPrototypeCall(r,i,...o){return r.call(i,...o)},FunctionPrototypeSymbolHasInstance(r,i){return Function.prototype[Symbol.hasInstance].call(r,i)},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(r,i){return Object.defineProperties(r,i)},ObjectDefineProperty(r,i,o){return Object.defineProperty(r,i,o)},ObjectGetOwnPropertyDescriptor(r,i){return Object.getOwnPropertyDescriptor(r,i)},ObjectKeys(r){return Object.keys(r)},ObjectSetPrototypeOf(r,i){return Object.setPrototypeOf(r,i)},Promise,PromisePrototypeCatch(r,i){return r.catch(i)},PromisePrototypeThen(r,i,o){return r.then(i,o)},PromiseReject(r){return Promise.reject(r)},PromiseResolve(r){return Promise.resolve(r)},ReflectApply:Reflect.apply,RegExpPrototypeTest(r,i){return r.test(i)},SafeSet:Set,String,StringPrototypeSlice(r,i,o){return r.slice(i,o)},StringPrototypeToLowerCase(r){return r.toLowerCase()},StringPrototypeToUpperCase(r){return r.toUpperCase()},StringPrototypeTrim(r){return r.trim()},Symbol,SymbolFor:Symbol.for,SymbolAsyncIterator:Symbol.asyncIterator,SymbolHasInstance:Symbol.hasInstance,SymbolIterator:Symbol.iterator,SymbolDispose:Symbol.dispose||Symbol("Symbol.dispose"),SymbolAsyncDispose:Symbol.asyncDispose||Symbol("Symbol.asyncDispose"),TypedArrayPrototypeSet(r,i,o){return r.set(i,o)},Boolean,Uint8Array}}),oNe=on((e,t)=>{Xt(),Jt(),Zt(),t.exports={format(n,...r){return n.replace(/%([sdifj])/g,function(...[i,o]){let a=r.shift();return o==="f"?a.toFixed(6):o==="j"?JSON.stringify(a):o==="s"&&typeof a=="object"?`${a.constructor!==Object?a.constructor.name:""} {}`.trim():a.toString()})},inspect(n){switch(typeof n){case"string":if(n.includes("'"))if(n.includes('"')){if(!n.includes("`")&&!n.includes("${"))return`\`${n}\``}else return`"${n}"`;return`'${n}'`;case"number":return isNaN(n)?"NaN":Object.is(n,-0)?String(n):n;case"bigint":return`${String(n)}n`;case"boolean":case"undefined":return String(n);case"object":return"{}"}}}}),dl=on((e,t)=>{Xt(),Jt(),Zt();var{format:n,inspect:r}=oNe(),{AggregateError:i}=ko(),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 _="",S=b.length,x=b[0]==="-"?1:0;for(;S>=x+4;S-=3)_=`_${b.slice(S-3,S)}${_}`;return`${b.slice(0,S)}${_}`}function p(b,_,S){if(typeof _=="function")return d(_.length<=S.length,`Code: ${b}; The provided arguments length (${S.length}) does not match the required ones (${_.length}).`),_(...S);let x=(_.match(/%[dfijoOs]/g)||[]).length;return d(x===S.length,`Code: ${b}; The provided arguments length (${S.length}) does not match the required ones (${x}).`),S.length===0?_:n(_,...S)}function m(b,_,S){S||(S=Error);class x extends S{constructor(...C){super(p(b,_,C))}toString(){return`${this.name} [${b}]: ${this.message}`}}Object.defineProperties(x.prototype,{name:{value:S.name,writable:!0,enumerable:!1,configurable:!0},toString:{value(){return`${this.name} [${b}]: ${this.message}`},writable:!0,enumerable:!1,configurable:!0}}),x.prototype.code=b,x.prototype[a]=!0,u[b]=x}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 S=new o([_,b],_.message);return S.code=_.code,S}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,_,S)=>{d(typeof b=="string","'name' must be a string"),Array.isArray(_)||(_=[_]);let x="The ";b.endsWith(" argument")?x+=`${b} `:x+=`"${b}" ${b.includes(".")?"property":"argument"} `,x+="must be ";let E=[],C=[],w=[];for(let T of _)d(typeof T=="string","All expected entries have to be of type string"),s.includes(T)?E.push(T.toLowerCase()):l.test(T)?C.push(T):(d(T!=="object",'The value "object" should be written as "Object"'),w.push(T));if(C.length>0){let T=E.indexOf("object");T!==-1&&(E.splice(E,T,1),C.push("Object"))}if(E.length>0){switch(E.length){case 1:x+=`of type ${E[0]}`;break;case 2:x+=`one of type ${E[0]} or ${E[1]}`;break;default:{let T=E.pop();x+=`one of type ${E.join(", ")}, or ${T}`}}(C.length>0||w.length>0)&&(x+=" or ")}if(C.length>0){switch(C.length){case 1:x+=`an instance of ${C[0]}`;break;case 2:x+=`an instance of ${C[0]} or ${C[1]}`;break;default:{let T=C.pop();x+=`an instance of ${C.join(", ")}, or ${T}`}}w.length>0&&(x+=" or ")}switch(w.length){case 0:break;case 1:w[0].toLowerCase()!==w[0]&&(x+="an "),x+=`${w[0]}`;break;case 2:x+=`one of ${w[0]} or ${w[1]}`;break;default:{let T=w.pop();x+=`one of ${w.join(", ")}, or ${T}`}}if(S==null)x+=`. Received ${S}`;else if(typeof S=="function"&&S.name)x+=`. Received function ${S.name}`;else if(typeof S=="object"){var O;if((O=S.constructor)!==null&&O!==void 0&&O.name)x+=`. Received an instance of ${S.constructor.name}`;else{let T=r(S,{depth:-1});x+=`. Received ${T}`}}else{let T=r(S,{colors:!1});T.length>25&&(T=`${T.slice(0,25)}...`),x+=`. Received type ${typeof S} (${T})`}return x},TypeError),m("ERR_INVALID_ARG_VALUE",(b,_,S="is invalid")=>{let x=r(_);return x.length>128&&(x=x.slice(0,128)+"..."),`The ${b.includes(".")?"property":"argument"} '${b}' ${S}. Received ${x}`},TypeError),m("ERR_INVALID_RETURN_VALUE",(b,_,S)=>{var x;let E=S!=null&&(x=S.constructor)!==null&&x!==void 0&&x.name?`instance of ${S.constructor.name}`:`type ${typeof S}`;return`Expected ${b} to be returned from the "${_}" function but got ${E}.`},TypeError),m("ERR_MISSING_ARGS",(...b)=>{d(b.length>0,"At least one arg needs to be specified");let _,S=b.length;switch(b=(Array.isArray(b)?b:[b]).map(x=>`"${x}"`).join(" or "),S){case 1:_+=`The ${b[0]} argument`;break;case 2:_+=`The ${b[0]} and ${b[1]} arguments`;break;default:{let x=b.pop();_+=`The ${b.join(", ")}, and ${x} arguments`}break}return`${_} must be specified`},TypeError),m("ERR_OUT_OF_RANGE",(b,_,S)=>{d(_,'Missing "range" argument');let x;if(Number.isInteger(S)&&Math.abs(S)>2**32)x=f(String(S));else if(typeof S=="bigint"){x=String(S);let E=BigInt(2)**BigInt(32);(S>E||S<-E)&&(x=f(x)),x+="n"}else x=r(S);return`The value of "${b}" is out of range. It must be ${_}. Received ${x}`},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}}),eT=on((e,t)=>{Xt(),Jt(),Zt();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});function ki(){ki.init.call(this)}function YI(e){if(typeof e!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function aNe(e){return e._maxListeners===void 0?ki.defaultMaxListeners:e._maxListeners}function aue(e,t,n,r){var i,o,a,s;if(YI(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=aNe(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 bQt(){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 sue(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},i=bQt.bind(r);return i.listener=n,r.wrapFn=i,i}function lue(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):sNe(i,i.length)}function cue(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 sNe(e,t){for(var n=new Array(t),r=0;r<t;++r)n[r]=e[r];return n}var uue,due,i0,x$,w$,T$,sc,fue=ul(()=>{Xt(),Jt(),Zt(),i0=typeof Reflect=="object"?Reflect:null,x$=i0&&typeof i0.apply=="function"?i0.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)},due=i0&&typeof i0.ownKeys=="function"?i0.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)},w$=Number.isNaN||function(e){return e!=e},uue=ki,ki.EventEmitter=ki,ki.prototype._events=void 0,ki.prototype._eventsCount=0,ki.prototype._maxListeners=void 0,T$=10,Object.defineProperty(ki,"defaultMaxListeners",{enumerable:!0,get:function(){return T$},set:function(e){if(typeof e!="number"||e<0||w$(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");T$=e}}),ki.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},ki.prototype.setMaxListeners=function(e){if(typeof e!="number"||e<0||w$(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},ki.prototype.getMaxListeners=function(){return aNe(this)},ki.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")x$(s,this,t);else{var l=s.length,c=sNe(s,l);for(n=0;n<l;++n)x$(c[n],this,t)}return!0},ki.prototype.addListener=function(e,t){return aue(this,e,t,!1)},ki.prototype.on=ki.prototype.addListener,ki.prototype.prependListener=function(e,t){return aue(this,e,t,!0)},ki.prototype.once=function(e,t){return YI(t),this.on(e,sue(this,e,t)),this},ki.prototype.prependOnceListener=function(e,t){return YI(t),this.prependListener(e,sue(this,e,t)),this},ki.prototype.removeListener=function(e,t){var n,r,i,o,a;if(YI(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},ki.prototype.off=ki.prototype.removeListener,ki.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},ki.prototype.listeners=function(e){return lue(this,e,!0)},ki.prototype.rawListeners=function(e){return lue(this,e,!1)},ki.listenerCount=function(e,t){return typeof e.listenerCount=="function"?e.listenerCount(t):cue.call(e,t)},ki.prototype.listenerCount=cue,ki.prototype.eventNames=function(){return this._eventsCount>0?due(this._events):[]},sc=uue,sc.EventEmitter,sc.defaultMaxListeners,sc.init,sc.listenerCount,sc.EventEmitter,sc.defaultMaxListeners,sc.init,sc.listenerCount}),$g={};eE($g,{EventEmitter:()=>lNe,default:()=>sc,defaultMaxListeners:()=>cNe,init:()=>uNe,listenerCount:()=>dNe,on:()=>fNe,once:()=>pNe});var lNe,cNe,uNe,dNe,fNe,pNe,kv=ul(()=>{Xt(),Jt(),Zt(),fue(),fue(),sc.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)})},sc.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:lNe,defaultMaxListeners:cNe,init:uNe,listenerCount:dNe,on:fNe,once:pNe}=sc}),Pl=on((e,t)=>{Xt(),Jt(),Zt();var n=(Ka(),$i(Ya)),{format:r,inspect:i}=oNe(),{codes:{ERR_INVALID_ARG_TYPE:o}}=dl(),{kResistStopPropagation:a,AggregateError:s,SymbolDispose:l}=ko(),c=globalThis.AbortSignal||eT().AbortSignal,u=globalThis.AbortController||eT().AbortController,d=Object.getPrototypeOf(async function(){}).constructor,f=globalThis.Blob||n.Blob,p=typeof f<"u"?function(v){return v instanceof f}:function(v){return!1},m=(v,y)=>{if(v!==void 0&&(v===null||typeof v!="object"||!("aborted"in v)))throw new o(y,"AbortSignal",v)},g=(v,y)=>{if(typeof v!="function")throw new o(y,"Function",v)};t.exports={AggregateError:s,kEmptyObject:Object.freeze({}),once(v){let y=!1;return function(...b){y||(y=!0,v.apply(this,b))}},createDeferredPromise:function(){let v,y;return{promise:new Promise((b,_)=>{v=b,y=_}),resolve:v,reject:y}},promisify(v){return new Promise((y,b)=>{v((_,...S)=>_?b(_):y(...S))})},debuglog(){return function(){}},format:r,inspect:i,types:{isAsyncFunction(v){return v instanceof d},isArrayBufferView(v){return ArrayBuffer.isView(v)}},isBlob:p,deprecate(v,y){return v},addAbortListener:(kv(),$i($g)).addAbortListener||function(v,y){if(v===void 0)throw new o("signal","AbortSignal",v);m(v,"signal"),g(y,"listener");let b;return v.aborted?queueMicrotask(()=>y()):(v.addEventListener("abort",y,{__proto__:null,once:!0,[a]:!0}),b=()=>{v.removeEventListener("abort",y)}),{__proto__:null,[l](){var _;(_=b)===null||_===void 0||_()}}},AbortSignalAny:c.any||function(v){if(v.length===1)return v[0];let y=new u,b=()=>y.abort();return v.forEach(_=>{m(_,"signals"),_.addEventListener("abort",b,{once:!0})}),y.signal.addEventListener("abort",()=>{v.forEach(_=>_.removeEventListener("abort",b))},{once:!0}),y.signal}},t.exports.promisify.custom=Symbol.for("nodejs.util.promisify.custom")}),sO=on((e,t)=>{Xt(),Jt(),Zt();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:p,StringPrototypeToUpperCase:m,StringPrototypeTrim:g}=ko(),{hideStackFrames:v,codes:{ERR_SOCKET_BAD_PORT:y,ERR_INVALID_ARG_TYPE:b,ERR_INVALID_ARG_VALUE:_,ERR_OUT_OF_RANGE:S,ERR_UNKNOWN_SIGNAL:x}}=dl(),{normalizeEncoding:E}=Pl(),{isAsyncFunction:C,isArrayBufferView:w}=Pl().types,O={};function T(de){return de===(de|0)}function A(de){return de===de>>>0}var I=/^[0-7]+$/,N="must be a 32-bit unsigned integer or an octal string";function D(de,Ee,Ne){if(typeof de>"u"&&(de=Ne),typeof de=="string"){if(f(I,de)===null)throw new _(Ee,de,N);de=u(de,8)}return P(de,Ee),de}var M=v((de,Ee,Ne=c,Te=l)=>{if(typeof de!="number")throw new b(Ee,"number",de);if(!a(de))throw new S(Ee,"an integer",de);if(de<Ne||de>Te)throw new S(Ee,`>= ${Ne} && <= ${Te}`,de)}),k=v((de,Ee,Ne=-2147483648,Te=2147483647)=>{if(typeof de!="number")throw new b(Ee,"number",de);if(!a(de))throw new S(Ee,"an integer",de);if(de<Ne||de>Te)throw new S(Ee,`>= ${Ne} && <= ${Te}`,de)}),P=v((de,Ee,Ne=!1)=>{if(typeof de!="number")throw new b(Ee,"number",de);if(!a(de))throw new S(Ee,"an integer",de);let Te=Ne?1:0,Ve=4294967295;if(de<Te||de>Ve)throw new S(Ee,`>= ${Te} && <= ${Ve}`,de)});function B(de,Ee){if(typeof de!="string")throw new b(Ee,"string",de)}function G(de,Ee,Ne=void 0,Te){if(typeof de!="number")throw new b(Ee,"number",de);if(Ne!=null&&de<Ne||Te!=null&&de>Te||(Ne!=null||Te!=null)&&s(de))throw new S(Ee,`${Ne!=null?`>= ${Ne}`:""}${Ne!=null&&Te!=null?" && ":""}${Te!=null?`<= ${Te}`:""}`,de)}var L=v((de,Ee,Ne)=>{if(!r(Ne,de)){let Te="must be one of: "+i(o(Ne,Ve=>typeof Ve=="string"?`'${Ve}'`:p(Ve)),", ");throw new _(Ee,de,Te)}});function W(de,Ee){if(typeof de!="boolean")throw new b(Ee,"boolean",de)}function j(de,Ee,Ne){return de==null||!d(de,Ee)?Ne:de[Ee]}var H=v((de,Ee,Ne=null)=>{let Te=j(Ne,"allowArray",!1),Ve=j(Ne,"allowFunction",!1);if(!j(Ne,"nullable",!1)&&de===null||!Te&&n(de)||typeof de!="object"&&(!Ve||typeof de!="function"))throw new b(Ee,"Object",de)}),X=v((de,Ee)=>{if(de!=null&&typeof de!="object"&&typeof de!="function")throw new b(Ee,"a dictionary",de)}),Q=v((de,Ee,Ne=0)=>{if(!n(de))throw new b(Ee,"Array",de);if(de.length<Ne){let Te=`must be longer than ${Ne}`;throw new _(Ee,de,Te)}});function ue(de,Ee){Q(de,Ee);for(let Ne=0;Ne<de.length;Ne++)B(de[Ne],`${Ee}[${Ne}]`)}function ee(de,Ee){Q(de,Ee);for(let Ne=0;Ne<de.length;Ne++)W(de[Ne],`${Ee}[${Ne}]`)}function K(de,Ee){Q(de,Ee);for(let Ne=0;Ne<de.length;Ne++){let Te=de[Ne],Ve=`${Ee}[${Ne}]`;if(Te==null)throw new b(Ve,"AbortSignal",Te);he(Te,Ve)}}function se(de,Ee="signal"){if(B(de,Ee),O[de]===void 0)throw O[m(de)]!==void 0?new x(de+" (signals must use all capital letters)"):new x(de)}var le=v((de,Ee="buffer")=>{if(!w(de))throw new b(Ee,["Buffer","TypedArray","DataView"],de)});function oe(de,Ee){let Ne=E(Ee),Te=de.length;if(Ne==="hex"&&Te%2!==0)throw new _("encoding",Ee,`is invalid for data of length ${Te}`)}function ne(de,Ee="Port",Ne=!0){if(typeof de!="number"&&typeof de!="string"||typeof de=="string"&&g(de).length===0||+de!==+de>>>0||de>65535||de===0&&!Ne)throw new y(Ee,de,Ne);return de|0}var he=v((de,Ee)=>{if(de!==void 0&&(de===null||typeof de!="object"||!("aborted"in de)))throw new b(Ee,"AbortSignal",de)}),me=v((de,Ee)=>{if(typeof de!="function")throw new b(Ee,"Function",de)}),ce=v((de,Ee)=>{if(typeof de!="function"||C(de))throw new b(Ee,"Function",de)}),re=v((de,Ee)=>{if(de!==void 0)throw new b(Ee,"undefined",de)});function ve(de,Ee,Ne){if(!r(Ne,de))throw new b(Ee,`('${i(Ne,"|")}')`,de)}var be=/^(?:<[^>]*>)(?:\s*;\s*[^;"\s]+(?:=(")?[^;"\s]*\1)?)*$/;function xe(de,Ee){if(typeof de>"u"||!f(be,de))throw new _(Ee,de,'must be an array or string of format "</styles.css>; rel=preload; as=style"')}function we(de){if(typeof de=="string")return xe(de,"hints"),de;if(n(de)){let Ee=de.length,Ne="";if(Ee===0)return Ne;for(let Te=0;Te<Ee;Te++){let Ve=de[Te];xe(Ve,"hints"),Ne+=Ve,Te!==Ee-1&&(Ne+=", ")}return Ne}throw new _("hints",de,'must be an array or string of format "</styles.css>; rel=preload; as=style"')}t.exports={isInt32:T,isUint32:A,parseFileMode:D,validateArray:Q,validateStringArray:ue,validateBooleanArray:ee,validateAbortSignalArray:K,validateBoolean:W,validateBuffer:le,validateDictionary:X,validateEncoding:oe,validateFunction:me,validateInt32:k,validateInteger:M,validateNumber:G,validateObject:H,validateOneOf:L,validatePlainFunction:ce,validatePort:ne,validateSignalName:se,validateString:B,validateUint32:P,validateUndefined:re,validateUnion:ve,validateAbortSignal:he,validateLinkHeaderValue:we}}),Pv=on((e,t)=>{Xt(),Jt(),Zt();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 p(){!u||!d||(u=!1,d.length?c=d.concat(c):f=-1,c.length&&m())}function m(){if(!u){var y=s(p);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}}),Th=on((e,t)=>{Xt(),Jt(),Zt();var{SymbolAsyncIterator:n,SymbolIterator:r,SymbolFor:i}=ko(),o=i("nodejs.stream.destroyed"),a=i("nodejs.stream.errored"),s=i("nodejs.stream.readable"),l=i("nodejs.stream.writable"),c=i("nodejs.stream.disturbed"),u=i("nodejs.webstream.isClosedPromise"),d=i("nodejs.webstream.controllerErrorFunction");function f(j,H=!1){var X;return!!(j&&typeof j.pipe=="function"&&typeof j.on=="function"&&(!H||typeof j.pause=="function"&&typeof j.resume=="function")&&(!j._writableState||((X=j._readableState)===null||X===void 0?void 0:X.readable)!==!1)&&(!j._writableState||j._readableState))}function p(j){var H;return!!(j&&typeof j.write=="function"&&typeof j.on=="function"&&(!j._readableState||((H=j._writableState)===null||H===void 0?void 0:H.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 S(j,H){return j==null?!1:H===!0?typeof j[n]=="function":H===!1?typeof j[r]=="function":typeof j[n]=="function"||typeof j[r]=="function"}function x(j){if(!g(j))return null;let H=j._writableState,X=j._readableState,Q=H||X;return!!(j.destroyed||j[o]||Q!=null&&Q.destroyed)}function E(j){if(!p(j))return null;if(j.writableEnded===!0)return!0;let H=j._writableState;return H!=null&&H.errored?!1:typeof(H==null?void 0:H.ended)!="boolean"?null:H.ended}function C(j,H){if(!p(j))return null;if(j.writableFinished===!0)return!0;let X=j._writableState;return X!=null&&X.errored?!1:typeof(X==null?void 0:X.finished)!="boolean"?null:!!(X.finished||H===!1&&X.ended===!0&&X.length===0)}function w(j){if(!f(j))return null;if(j.readableEnded===!0)return!0;let H=j._readableState;return!H||H.errored?!1:typeof(H==null?void 0:H.ended)!="boolean"?null:H.ended}function O(j,H){if(!f(j))return null;let X=j._readableState;return X!=null&&X.errored?!1:typeof(X==null?void 0:X.endEmitted)!="boolean"?null:!!(X.endEmitted||H===!1&&X.ended===!0&&X.length===0)}function T(j){return j&&j[s]!=null?j[s]:typeof(j==null?void 0:j.readable)!="boolean"?null:x(j)?!1:f(j)&&j.readable&&!O(j)}function A(j){return j&&j[l]!=null?j[l]:typeof(j==null?void 0:j.writable)!="boolean"?null:x(j)?!1:p(j)&&j.writable&&!E(j)}function I(j,H){return g(j)?x(j)?!0:!((H==null?void 0:H.readable)!==!1&&T(j)||(H==null?void 0:H.writable)!==!1&&A(j)):null}function N(j){var H,X;return g(j)?j.writableErrored?j.writableErrored:(H=(X=j._writableState)===null||X===void 0?void 0:X.errored)!==null&&H!==void 0?H:null:null}function D(j){var H,X;return g(j)?j.readableErrored?j.readableErrored:(H=(X=j._readableState)===null||X===void 0?void 0:X.errored)!==null&&H!==void 0?H:null:null}function M(j){if(!g(j))return null;if(typeof j.closed=="boolean")return j.closed;let H=j._writableState,X=j._readableState;return typeof(H==null?void 0:H.closed)=="boolean"||typeof(X==null?void 0:X.closed)=="boolean"?(H==null?void 0:H.closed)||(X==null?void 0:X.closed):typeof j._closed=="boolean"&&k(j)?j._closed:null}function k(j){return typeof j._closed=="boolean"&&typeof j._defaultKeepAlive=="boolean"&&typeof j._removedConnection=="boolean"&&typeof j._removedContLen=="boolean"}function P(j){return typeof j._sent100=="boolean"&&k(j)}function B(j){var H;return typeof j._consuming=="boolean"&&typeof j._dumped=="boolean"&&((H=j.req)===null||H===void 0?void 0:H.upgradeOrConnect)===void 0}function G(j){if(!g(j))return null;let H=j._writableState,X=j._readableState,Q=H||X;return!Q&&P(j)||!!(Q&&Q.autoDestroy&&Q.emitClose&&Q.closed===!1)}function L(j){var H;return!!(j&&((H=j[c])!==null&&H!==void 0?H:j.readableDidRead||j.readableAborted))}function W(j){var H,X,Q,ue,ee,K,se,le,oe,ne;return!!(j&&((H=(X=(Q=(ue=(ee=(K=j[a])!==null&&K!==void 0?K:j.readableErrored)!==null&&ee!==void 0?ee:j.writableErrored)!==null&&ue!==void 0?ue:(se=j._readableState)===null||se===void 0?void 0:se.errorEmitted)!==null&&Q!==void 0?Q:(le=j._writableState)===null||le===void 0?void 0:le.errorEmitted)!==null&&X!==void 0?X:(oe=j._readableState)===null||oe===void 0?void 0:oe.errored)!==null&&H!==void 0?H:!((ne=j._writableState)===null||ne===void 0)&&ne.errored))}t.exports={isDestroyed:x,kIsDestroyed:o,isDisturbed:L,kIsDisturbed:c,isErrored:W,kIsErrored:a,isReadable:T,kIsReadable:s,kIsClosedPromise:u,kControllerErrorFunction:d,kIsWritable:l,isClosed:M,isDuplexNodeStream:m,isFinished:I,isIterable:S,isReadableNodeStream:f,isReadableStream:v,isReadableEnded:w,isReadableFinished:O,isReadableErrored:D,isNodeStream:g,isWebStream:_,isWritable:A,isWritableNodeStream:p,isWritableStream:y,isWritableEnded:E,isWritableFinished:C,isWritableErrored:N,isServerRequest:B,isServerResponse:P,willEmitClose:G,isTransformStream:b}}),Fg=on((e,t)=>{Xt(),Jt(),Zt();var n=Pv(),{AbortError:r,codes:i}=dl(),{ERR_INVALID_ARG_TYPE:o,ERR_STREAM_PREMATURE_CLOSE:a}=i,{kEmptyObject:s,once:l}=Pl(),{validateAbortSignal:c,validateFunction:u,validateObject:d,validateBoolean:f}=sO(),{Promise:p,PromisePrototypeThen:m,SymbolDispose:g}=ko(),{isClosed:v,isReadable:y,isReadableNodeStream:b,isReadableStream:_,isReadableFinished:S,isReadableErrored:x,isWritable:E,isWritableNodeStream:C,isWritableStream:w,isWritableFinished:O,isWritableErrored:T,isNodeStream:A,willEmitClose:I,kIsClosedPromise:N}=Th(),D;function M(L){return L.setHeader&&typeof L.abort=="function"}var k=()=>{};function P(L,W,j){var H,X;if(arguments.length===2?(j=W,W=s):W==null?W=s:d(W,"options"),u(j,"callback"),c(W.signal,"options.signal"),j=l(j),_(L)||w(L))return B(L,W,j);if(!A(L))throw new o("stream",["ReadableStream","WritableStream","Stream"],L);let Q=(H=W.readable)!==null&&H!==void 0?H:b(L),ue=(X=W.writable)!==null&&X!==void 0?X:C(L),ee=L._writableState,K=L._readableState,se=()=>{L.writable||ne()},le=I(L)&&b(L)===Q&&C(L)===ue,oe=O(L,!1),ne=()=>{oe=!0,L.destroyed&&(le=!1),!(le&&(!L.readable||Q))&&(!Q||he)&&j.call(L)},he=S(L,!1),me=()=>{he=!0,L.destroyed&&(le=!1),!(le&&(!L.writable||ue))&&(!ue||oe)&&j.call(L)},ce=de=>{j.call(L,de)},re=v(L),ve=()=>{re=!0;let de=T(L)||x(L);if(de&&typeof de!="boolean")return j.call(L,de);if(Q&&!he&&b(L,!0)&&!S(L,!1))return j.call(L,new a);if(ue&&!oe&&!O(L,!1))return j.call(L,new a);j.call(L)},be=()=>{re=!0;let de=T(L)||x(L);if(de&&typeof de!="boolean")return j.call(L,de);j.call(L)},xe=()=>{L.req.on("finish",ne)};M(L)?(L.on("complete",ne),le||L.on("abort",ve),L.req?xe():L.on("request",xe)):ue&&!ee&&(L.on("end",se),L.on("close",se)),!le&&typeof L.aborted=="boolean"&&L.on("aborted",ve),L.on("end",me),L.on("finish",ne),W.error!==!1&&L.on("error",ce),L.on("close",ve),re?n.nextTick(ve):ee!=null&&ee.errorEmitted||K!=null&&K.errorEmitted?le||n.nextTick(be):(!Q&&(!le||y(L))&&(oe||E(L)===!1)||!ue&&(!le||E(L))&&(he||y(L)===!1)||K&&L.req&&L.aborted)&&n.nextTick(be);let we=()=>{j=k,L.removeListener("aborted",ve),L.removeListener("complete",ne),L.removeListener("abort",ve),L.removeListener("request",xe),L.req&&L.req.removeListener("finish",ne),L.removeListener("end",se),L.removeListener("close",se),L.removeListener("finish",ne),L.removeListener("end",me),L.removeListener("error",ce),L.removeListener("close",ve)};if(W.signal&&!re){let de=()=>{let Ee=j;we(),Ee.call(L,new r(void 0,{cause:W.signal.reason}))};if(W.signal.aborted)n.nextTick(de);else{D=D||Pl().addAbortListener;let Ee=D(W.signal,de),Ne=j;j=l((...Te)=>{Ee[g](),Ne.apply(L,Te)})}}return we}function B(L,W,j){let H=!1,X=k;if(W.signal)if(X=()=>{H=!0,j.call(L,new r(void 0,{cause:W.signal.reason}))},W.signal.aborted)n.nextTick(X);else{D=D||Pl().addAbortListener;let ue=D(W.signal,X),ee=j;j=l((...K)=>{ue[g](),ee.apply(L,K)})}let Q=(...ue)=>{H||n.nextTick(()=>j.apply(L,ue))};return m(L[N].promise,Q,Q),k}function G(L,W){var j;let H=!1;return W===null&&(W=s),(j=W)!==null&&j!==void 0&&j.cleanup&&(f(W.cleanup,"cleanup"),H=W.cleanup),new p((X,Q)=>{let ue=P(L,W,ee=>{H&&ue(),ee?Q(ee):X()})})}t.exports=P,t.exports.finished=G}),tE=on((e,t)=>{Xt(),Jt(),Zt();var n=Pv(),{aggregateTwoErrors:r,codes:{ERR_MULTIPLE_CALLBACK:i},AbortError:o}=dl(),{Symbol:a}=ko(),{kIsDestroyed:s,isDestroyed:l,isFinished:c,isServerRequest:u}=Th(),d=a("kDestroy"),f=a("kConstruct");function p(I,N,D){I&&(I.stack,N&&!N.errored&&(N.errored=I),D&&!D.errored&&(D.errored=I))}function m(I,N){let D=this._readableState,M=this._writableState,k=M||D;return M!=null&&M.destroyed||D!=null&&D.destroyed?(typeof N=="function"&&N(),this):(p(I,M,D),M&&(M.destroyed=!0),D&&(D.destroyed=!0),k.constructed?g(this,I,N):this.once(d,function(P){g(this,r(P,I),N)}),this)}function g(I,N,D){let M=!1;function k(P){if(M)return;M=!0;let B=I._readableState,G=I._writableState;p(P,G,B),G&&(G.closed=!0),B&&(B.closed=!0),typeof D=="function"&&D(P),P?n.nextTick(v,I,P):n.nextTick(y,I)}try{I._destroy(N||null,k)}catch(P){k(P)}}function v(I,N){b(I,N),y(I)}function y(I){let N=I._readableState,D=I._writableState;D&&(D.closeEmitted=!0),N&&(N.closeEmitted=!0),(D!=null&&D.emitClose||N!=null&&N.emitClose)&&I.emit("close")}function b(I,N){let D=I._readableState,M=I._writableState;M!=null&&M.errorEmitted||D!=null&&D.errorEmitted||(M&&(M.errorEmitted=!0),D&&(D.errorEmitted=!0),I.emit("error",N))}function _(){let I=this._readableState,N=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),N&&(N.constructed=!0,N.destroyed=!1,N.closed=!1,N.closeEmitted=!1,N.errored=null,N.errorEmitted=!1,N.finalCalled=!1,N.prefinished=!1,N.ended=N.writable===!1,N.ending=N.writable===!1,N.finished=N.writable===!1)}function S(I,N,D){let M=I._readableState,k=I._writableState;if(k!=null&&k.destroyed||M!=null&&M.destroyed)return this;M!=null&&M.autoDestroy||k!=null&&k.autoDestroy?I.destroy(N):N&&(N.stack,k&&!k.errored&&(k.errored=N),M&&!M.errored&&(M.errored=N),D?n.nextTick(b,I,N):b(I,N))}function x(I,N){if(typeof I._construct!="function")return;let D=I._readableState,M=I._writableState;D&&(D.constructed=!1),M&&(M.constructed=!1),I.once(f,N),!(I.listenerCount(f)>1)&&n.nextTick(E,I)}function E(I){let N=!1;function D(M){if(N){S(I,M??new i);return}N=!0;let k=I._readableState,P=I._writableState,B=P||k;k&&(k.constructed=!0),P&&(P.constructed=!0),B.destroyed?I.emit(d,M):M?S(I,M,!0):n.nextTick(C,I)}try{I._construct(M=>{n.nextTick(D,M)})}catch(M){n.nextTick(D,M)}}function C(I){I.emit(f)}function w(I){return(I==null?void 0:I.setHeader)&&typeof I.abort=="function"}function O(I){I.emit("close")}function T(I,N){I.emit("error",N),n.nextTick(O,I)}function A(I,N){!I||l(I)||(!N&&!c(I)&&(N=new o),u(I)?(I.socket=null,I.destroy(N)):w(I)?I.abort():w(I.req)?I.req.abort():typeof I.destroy=="function"?I.destroy(N):typeof I.close=="function"?I.close():N?n.nextTick(T,I,N):n.nextTick(O,I),I.destroyed||(I[s]=!0))}t.exports={construct:x,destroyer:A,destroy:m,undestroy:_,errorOrDestroy:S}}),XQ=on((e,t)=>{Xt(),Jt(),Zt();var{ArrayIsArray:n,ObjectSetPrototypeOf:r}=ko(),{EventEmitter:i}=(kv(),$i($g));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",p),c.on("close",m));let f=!1;function p(){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",p),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}}),B3=on((e,t)=>{Xt(),Jt(),Zt();var{SymbolDispose:n}=ko(),{AbortError:r,codes:i}=dl(),{isNodeStream:o,isWebStream:a,kControllerErrorFunction:s}=Th(),l=Fg(),{ERR_INVALID_ARG_TYPE:c}=i,u,d=(f,p)=>{if(typeof f!="object"||!("aborted"in f))throw new c(p,"AbortSignal",f)};t.exports.addAbortSignal=function(f,p){if(d(f,"signal"),!o(p)&&!a(p))throw new c("stream",["ReadableStream","WritableStream","Stream"],p);return t.exports.addAbortSignalNoValidate(f,p)},t.exports.addAbortSignalNoValidate=function(f,p){if(typeof f!="object"||!("aborted"in f))return p;let m=o(p)?()=>{p.destroy(new r(void 0,{cause:f.reason}))}:()=>{p[s](new r(void 0,{cause:f.reason}))};if(f.aborted)m();else{u=u||Pl().addAbortListener;let g=u(f,m);l(p,g[n])}return p}}),yQt=on((e,t)=>{Xt(),Jt(),Zt();var{StringPrototypeSlice:n,SymbolIterator:r,TypedArrayPrototypeSet:i,Uint8Array:o}=ko(),{Buffer:a}=(Ka(),$i(Ya)),{inspect:s}=Pl();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 p=d.data;if(l>p.length)i(c,p,u-l),l-=p.length;else{l===p.length?(i(c,p,u-l),++f,d.next?this.head=d.next:this.head=this.tail=null):(i(c,new o(p.buffer,p.byteOffset,l),u-l),this.head=d,d.data=p.slice(l));break}++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})}}}),H3=on((e,t)=>{Xt(),Jt(),Zt();var{MathFloor:n,NumberIsInteger:r}=ko(),{validateInteger:i}=sO(),{ERR_INVALID_ARG_VALUE:o}=dl().codes,a=16*1024,s=16;function l(f,p,m){return f.highWaterMark!=null?f.highWaterMark:p?f[m]:null}function c(f){return f?s:a}function u(f,p){i(p,"value",0),f?s=p:a=p}function d(f,p,m,g){let v=l(p,g,m);if(v!=null){if(!r(v)||v<0){let y=g?`options.${m}`:"options.highWaterMark";throw new o(y,v)}return n(v)}return c(f.objectMode)}t.exports={getHighWaterMark:d,getDefaultHighWaterMark:c,setDefaultHighWaterMark:u}}),_Qt=on((e,t)=>{Xt(),Jt(),Zt();var n=(Ka(),$i(Ya)),r=n.Buffer;function i(a,s){for(var l in a)s[l]=a[l]}r.from&&r.alloc&&r.allocUnsafe&&r.allocUnsafeSlow?t.exports=n:(i(n,e),e.Buffer=o);function o(a,s,l){return r(a,s,l)}o.prototype=Object.create(r.prototype),i(r,o),o.from=function(a,s,l){if(typeof a=="number")throw new TypeError("Argument must not be a number");return r(a,s,l)},o.alloc=function(a,s,l){if(typeof a!="number")throw new TypeError("Argument must be a number");var c=r(a);return s!==void 0?typeof l=="string"?c.fill(s,l):c.fill(s):c.fill(0),c},o.allocUnsafe=function(a){if(typeof a!="number")throw new TypeError("Argument must be a number");return r(a)},o.allocUnsafeSlow=function(a){if(typeof a!="number")throw new TypeError("Argument must be a number");return n.SlowBuffer(a)}}),SQt=on(e=>{Xt(),Jt(),Zt();var t=_Qt().Buffer,n=t.isEncoding||function(b){switch(b=""+b,b&&b.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}};function r(b){if(!b)return"utf8";for(var _;;)switch(b){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 b;default:if(_)return;b=(""+b).toLowerCase(),_=!0}}function i(b){var _=r(b);if(typeof _!="string"&&(t.isEncoding===n||!n(b)))throw new Error("Unknown encoding: "+b);return _||b}e.StringDecoder=o;function o(b){this.encoding=i(b);var _;switch(this.encoding){case"utf16le":this.text=f,this.end=p,_=4;break;case"utf8":this.fillLast=c,_=4;break;case"base64":this.text=m,this.end=g,_=3;break;default:this.write=v,this.end=y;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=t.allocUnsafe(_)}o.prototype.write=function(b){if(b.length===0)return"";var _,S;if(this.lastNeed){if(_=this.fillLast(b),_===void 0)return"";S=this.lastNeed,this.lastNeed=0}else S=0;return S<b.length?_?_+this.text(b,S):this.text(b,S):_||""},o.prototype.end=d,o.prototype.text=u,o.prototype.fillLast=function(b){if(this.lastNeed<=b.length)return b.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);b.copy(this.lastChar,this.lastTotal-this.lastNeed,0,b.length),this.lastNeed-=b.length};function a(b){return b<=127?0:b>>5===6?2:b>>4===14?3:b>>3===30?4:b>>6===2?-1:-2}function s(b,_,S){var x=_.length-1;if(x<S)return 0;var E=a(_[x]);return E>=0?(E>0&&(b.lastNeed=E-1),E):--x<S||E===-2?0:(E=a(_[x]),E>=0?(E>0&&(b.lastNeed=E-2),E):--x<S||E===-2?0:(E=a(_[x]),E>=0?(E>0&&(E===2?E=0:b.lastNeed=E-3),E):0))}function l(b,_,S){if((_[0]&192)!==128)return b.lastNeed=0,"<22>";if(b.lastNeed>1&&_.length>1){if((_[1]&192)!==128)return b.lastNeed=1,"<22>";if(b.lastNeed>2&&_.length>2&&(_[2]&192)!==128)return b.lastNeed=2,"<22>"}}function c(b){var _=this.lastTotal-this.lastNeed,S=l(this,b);if(S!==void 0)return S;if(this.lastNeed<=b.length)return b.copy(this.lastChar,_,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);b.copy(this.lastChar,_,0,b.length),this.lastNeed-=b.length}function u(b,_){var S=s(this,b,_);if(!this.lastNeed)return b.toString("utf8",_);this.lastTotal=S;var x=b.length-(S-this.lastNeed);return b.copy(this.lastChar,0,x),b.toString("utf8",_,x)}function d(b){var _=b&&b.length?this.write(b):"";return this.lastNeed?_+"<22>":_}function f(b,_){if((b.length-_)%2===0){var S=b.toString("utf16le",_);if(S){var x=S.charCodeAt(S.length-1);if(x>=55296&&x<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=b[b.length-2],this.lastChar[1]=b[b.length-1],S.slice(0,-1)}return S}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=b[b.length-1],b.toString("utf16le",_,b.length-1)}function p(b){var _=b&&b.length?this.write(b):"";if(this.lastNeed){var S=this.lastTotal-this.lastNeed;return _+this.lastChar.toString("utf16le",0,S)}return _}function m(b,_){var S=(b.length-_)%3;return S===0?b.toString("base64",_):(this.lastNeed=3-S,this.lastTotal=3,S===1?this.lastChar[0]=b[b.length-1]:(this.lastChar[0]=b[b.length-2],this.lastChar[1]=b[b.length-1]),b.toString("base64",_,b.length-S))}function g(b){var _=b&&b.length?this.write(b):"";return this.lastNeed?_+this.lastChar.toString("base64",0,3-this.lastNeed):_}function v(b){return b.toString(this.encoding)}function y(b){return b&&b.length?this.write(b):""}}),hNe=on((e,t)=>{Xt(),Jt(),Zt();var n=Pv(),{PromisePrototypeThen:r,SymbolAsyncIterator:i,SymbolIterator:o}=ko(),{Buffer:a}=(Ka(),$i(Ya)),{ERR_INVALID_ARG_TYPE:s,ERR_STREAM_NULL_VALUES:l}=dl().codes;function c(u,d,f){let p;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,p=d[i]();else if(d&&d[o])m=!1,p=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(_,S){r(y(_),()=>n.nextTick(S,_),x=>n.nextTick(S,x||_))};async function y(_){let S=_!=null,x=typeof p.throw=="function";if(S&&x){let{value:E,done:C}=await p.throw(_);if(await E,C)return}if(typeof p.return=="function"){let{value:E}=await p.return();await E}}async function b(){for(;;){try{let{value:_,done:S}=m?await p.next():p.next();if(S)g.push(null);else{let x=_&&typeof _.then=="function"?await _:_;if(x===null)throw v=!1,new l;if(g.push(x))continue;v=!1}}catch(_){g.destroy(_)}break}}return g}t.exports=c}),j3=on((e,t)=>{Xt(),Jt(),Zt();var n=Pv(),{ArrayPrototypeIndexOf:r,NumberIsInteger:i,NumberIsNaN:o,NumberParseInt:a,ObjectDefineProperties:s,ObjectKeys:l,ObjectSetPrototypeOf:c,Promise:u,SafeSet:d,SymbolAsyncDispose:f,SymbolAsyncIterator:p,Symbol:m}=ko();t.exports=Te,Te.ReadableState=Ne;var{EventEmitter:g}=(kv(),$i($g)),{Stream:v,prependListener:y}=XQ(),{Buffer:b}=(Ka(),$i(Ya)),{addAbortSignal:_}=B3(),S=Fg(),x=Pl().debuglog("stream",Me=>{x=Me}),E=yQt(),C=tE(),{getHighWaterMark:w,getDefaultHighWaterMark:O}=H3(),{aggregateTwoErrors:T,codes:{ERR_INVALID_ARG_TYPE:A,ERR_METHOD_NOT_IMPLEMENTED:I,ERR_OUT_OF_RANGE:N,ERR_STREAM_PUSH_AFTER_EOF:D,ERR_STREAM_UNSHIFT_AFTER_END_EVENT:M},AbortError:k}=dl(),{validateObject:P}=sO(),B=m("kPaused"),{StringDecoder:G}=SQt(),L=hNe();c(Te.prototype,v.prototype),c(Te,v);var W=()=>{},{errorOrDestroy:j}=C,H=1,X=2,Q=4,ue=8,ee=16,K=32,se=64,le=128,oe=256,ne=512,he=1024,me=2048,ce=4096,re=8192,ve=16384,be=32768,xe=65536,we=1<<17,de=1<<18;function Ee(Me){return{enumerable:!1,get(){return(this.state&Me)!==0},set(Ue){Ue?this.state|=Me:this.state&=~Me}}}s(Ne.prototype,{objectMode:Ee(H),ended:Ee(X),endEmitted:Ee(Q),reading:Ee(ue),constructed:Ee(ee),sync:Ee(K),needReadable:Ee(se),emittedReadable:Ee(le),readableListening:Ee(oe),resumeScheduled:Ee(ne),errorEmitted:Ee(he),emitClose:Ee(me),autoDestroy:Ee(ce),destroyed:Ee(re),closed:Ee(ve),closeEmitted:Ee(be),multiAwaitDrain:Ee(xe),readingMore:Ee(we),dataEmitted:Ee(de)});function Ne(Me,Ue,$e){typeof $e!="boolean"&&($e=Ue instanceof dh()),this.state=me|ce|ee|K,Me&&Me.objectMode&&(this.state|=H),$e&&Me&&Me.readableObjectMode&&(this.state|=H),this.highWaterMark=Me?w(this,Me,"readableHighWaterMark",$e):O(!1),this.buffer=new E,this.length=0,this.pipes=[],this.flowing=null,this[B]=null,Me&&Me.emitClose===!1&&(this.state&=~me),Me&&Me.autoDestroy===!1&&(this.state&=~ce),this.errored=null,this.defaultEncoding=Me&&Me.defaultEncoding||"utf8",this.awaitDrainWriters=null,this.decoder=null,this.encoding=null,Me&&Me.encoding&&(this.decoder=new G(Me.encoding),this.encoding=Me.encoding)}function Te(Me){if(!(this instanceof Te))return new Te(Me);let Ue=this instanceof dh();this._readableState=new Ne(Me,this,Ue),Me&&(typeof Me.read=="function"&&(this._read=Me.read),typeof Me.destroy=="function"&&(this._destroy=Me.destroy),typeof Me.construct=="function"&&(this._construct=Me.construct),Me.signal&&!Ue&&_(Me.signal,this)),v.call(this,Me),C.construct(this,()=>{this._readableState.needReadable&&We(this,this._readableState)})}Te.prototype.destroy=C.destroy,Te.prototype._undestroy=C.undestroy,Te.prototype._destroy=function(Me,Ue){Ue(Me)},Te.prototype[g.captureRejectionSymbol]=function(Me){this.destroy(Me)},Te.prototype[f]=function(){let Me;return this.destroyed||(Me=this.readableEnded?null:new k,this.destroy(Me)),new u((Ue,$e)=>S(this,Le=>Le&&Le!==Me?$e(Le):Ue(null)))},Te.prototype.push=function(Me,Ue){return Ve(this,Me,Ue,!1)},Te.prototype.unshift=function(Me,Ue){return Ve(this,Me,Ue,!0)};function Ve(Me,Ue,$e,Le){x("readableAddChunk",Ue);let He=Me._readableState,it;if(!(He.state&H)&&(typeof Ue=="string"?($e=$e||He.defaultEncoding,He.encoding!==$e&&(Le&&He.encoding?Ue=b.from(Ue,$e).toString(He.encoding):(Ue=b.from(Ue,$e),$e=""))):Ue instanceof b?$e="":v._isUint8Array(Ue)?(Ue=v._uint8ArrayToBuffer(Ue),$e=""):Ue!=null&&(it=new A("chunk",["string","Buffer","Uint8Array"],Ue))),it)j(Me,it);else if(Ue===null)He.state&=~ue,ye(Me,He);else if(He.state&H||Ue&&Ue.length>0)if(Le)if(He.state&Q)j(Me,new M);else{if(He.destroyed||He.errored)return!1;q(Me,He,Ue,!0)}else if(He.ended)j(Me,new D);else{if(He.destroyed||He.errored)return!1;He.state&=~ue,He.decoder&&!$e?(Ue=He.decoder.write(Ue),He.objectMode||Ue.length!==0?q(Me,He,Ue,!1):We(Me,He)):q(Me,He,Ue,!1)}else Le||(He.state&=~ue,We(Me,He));return!He.ended&&(He.length<He.highWaterMark||He.length===0)}function q(Me,Ue,$e,Le){Ue.flowing&&Ue.length===0&&!Ue.sync&&Me.listenerCount("data")>0?(Ue.state&xe?Ue.awaitDrainWriters.clear():Ue.awaitDrainWriters=null,Ue.dataEmitted=!0,Me.emit("data",$e)):(Ue.length+=Ue.objectMode?1:$e.length,Le?Ue.buffer.unshift($e):Ue.buffer.push($e),Ue.state&se&&fe(Me)),We(Me,Ue)}Te.prototype.isPaused=function(){let Me=this._readableState;return Me[B]===!0||Me.flowing===!1},Te.prototype.setEncoding=function(Me){let Ue=new G(Me);this._readableState.decoder=Ue,this._readableState.encoding=this._readableState.decoder.encoding;let $e=this._readableState.buffer,Le="";for(let He of $e)Le+=Ue.write(He);return $e.clear(),Le!==""&&$e.push(Le),this._readableState.length=Le.length,this};var U=1073741824;function Y(Me){if(Me>U)throw new N("size","<= 1GiB",Me);return Me--,Me|=Me>>>1,Me|=Me>>>2,Me|=Me>>>4,Me|=Me>>>8,Me|=Me>>>16,Me++,Me}function ae(Me,Ue){return Me<=0||Ue.length===0&&Ue.ended?0:Ue.state&H?1:o(Me)?Ue.flowing&&Ue.length?Ue.buffer.first().length:Ue.length:Me<=Ue.length?Me:Ue.ended?Ue.length:0}Te.prototype.read=function(Me){x("read",Me),Me===void 0?Me=NaN:i(Me)||(Me=a(Me,10));let Ue=this._readableState,$e=Me;if(Me>Ue.highWaterMark&&(Ue.highWaterMark=Y(Me)),Me!==0&&(Ue.state&=~le),Me===0&&Ue.needReadable&&((Ue.highWaterMark!==0?Ue.length>=Ue.highWaterMark:Ue.length>0)||Ue.ended))return x("read: emitReadable",Ue.length,Ue.ended),Ue.length===0&&Ue.ended?It(this):fe(this),null;if(Me=ae(Me,Ue),Me===0&&Ue.ended)return Ue.length===0&&It(this),null;let Le=(Ue.state&se)!==0;if(x("need readable",Le),(Ue.length===0||Ue.length-Me<Ue.highWaterMark)&&(Le=!0,x("length less than watermark",Le)),Ue.ended||Ue.reading||Ue.destroyed||Ue.errored||!Ue.constructed)Le=!1,x("reading, ended or constructing",Le);else if(Le){x("do read"),Ue.state|=ue|K,Ue.length===0&&(Ue.state|=se);try{this._read(Ue.highWaterMark)}catch(it){j(this,it)}Ue.state&=~K,Ue.reading||(Me=ae($e,Ue))}let He;return Me>0?He=st(Me,Ue):He=null,He===null?(Ue.needReadable=Ue.length<=Ue.highWaterMark,Me=0):(Ue.length-=Me,Ue.multiAwaitDrain?Ue.awaitDrainWriters.clear():Ue.awaitDrainWriters=null),Ue.length===0&&(Ue.ended||(Ue.needReadable=!0),$e!==Me&&Ue.ended&&It(this)),He!==null&&!Ue.errorEmitted&&!Ue.closeEmitted&&(Ue.dataEmitted=!0,this.emit("data",He)),He};function ye(Me,Ue){if(x("onEofChunk"),!Ue.ended){if(Ue.decoder){let $e=Ue.decoder.end();$e&&$e.length&&(Ue.buffer.push($e),Ue.length+=Ue.objectMode?1:$e.length)}Ue.ended=!0,Ue.sync?fe(Me):(Ue.needReadable=!1,Ue.emittedReadable=!0,Ae(Me))}}function fe(Me){let Ue=Me._readableState;x("emitReadable",Ue.needReadable,Ue.emittedReadable),Ue.needReadable=!1,Ue.emittedReadable||(x("emitReadable",Ue.flowing),Ue.emittedReadable=!0,n.nextTick(Ae,Me))}function Ae(Me){let Ue=Me._readableState;x("emitReadable_",Ue.destroyed,Ue.length,Ue.ended),!Ue.destroyed&&!Ue.errored&&(Ue.length||Ue.ended)&&(Me.emit("readable"),Ue.emittedReadable=!1),Ue.needReadable=!Ue.flowing&&!Ue.ended&&Ue.length<=Ue.highWaterMark,Ge(Me)}function We(Me,Ue){!Ue.readingMore&&Ue.constructed&&(Ue.readingMore=!0,n.nextTick(ie,Me,Ue))}function ie(Me,Ue){for(;!Ue.reading&&!Ue.ended&&(Ue.length<Ue.highWaterMark||Ue.flowing&&Ue.length===0);){let $e=Ue.length;if(x("maybeReadMore read 0"),Me.read(0),$e===Ue.length)break}Ue.readingMore=!1}Te.prototype._read=function(Me){throw new I("_read()")},Te.prototype.pipe=function(Me,Ue){let $e=this,Le=this._readableState;Le.pipes.length===1&&(Le.multiAwaitDrain||(Le.multiAwaitDrain=!0,Le.awaitDrainWriters=new d(Le.awaitDrainWriters?[Le.awaitDrainWriters]:[]))),Le.pipes.push(Me),x("pipe count=%d opts=%j",Le.pipes.length,Ue);let He=(!Ue||Ue.end!==!1)&&Me!==n.stdout&&Me!==n.stderr?ft:wt;Le.endEmitted?n.nextTick(He):$e.once("end",He),Me.on("unpipe",it);function it(Gt,$t){x("onunpipe"),Gt===$e&&$t&&$t.hasUnpiped===!1&&($t.hasUnpiped=!0,St())}function ft(){x("onend"),Me.end()}let Et,Dt=!1;function St(){x("cleanup"),Me.removeListener("close",Vt),Me.removeListener("finish",at),Et&&Me.removeListener("drain",Et),Me.removeListener("error",ht),Me.removeListener("unpipe",it),$e.removeListener("end",ft),$e.removeListener("end",wt),$e.removeListener("data",xt),Dt=!0,Et&&Le.awaitDrainWriters&&(!Me._writableState||Me._writableState.needDrain)&&Et()}function bt(){Dt||(Le.pipes.length===1&&Le.pipes[0]===Me?(x("false write response, pause",0),Le.awaitDrainWriters=Me,Le.multiAwaitDrain=!1):Le.pipes.length>1&&Le.pipes.includes(Me)&&(x("false write response, pause",Le.awaitDrainWriters.size),Le.awaitDrainWriters.add(Me)),$e.pause()),Et||(Et=Be($e,Me),Me.on("drain",Et))}$e.on("data",xt);function xt(Gt){x("ondata");let $t=Me.write(Gt);x("dest.write",$t),$t===!1&&bt()}function ht(Gt){if(x("onerror",Gt),wt(),Me.removeListener("error",ht),Me.listenerCount("error")===0){let $t=Me._writableState||Me._readableState;$t&&!$t.errorEmitted?j(Me,Gt):Me.emit("error",Gt)}}y(Me,"error",ht);function Vt(){Me.removeListener("finish",at),wt()}Me.once("close",Vt);function at(){x("onfinish"),Me.removeListener("close",Vt),wt()}Me.once("finish",at);function wt(){x("unpipe"),$e.unpipe(Me)}return Me.emit("pipe",$e),Me.writableNeedDrain===!0?bt():Le.flowing||(x("pipe resume"),$e.resume()),Me};function Be(Me,Ue){return function(){let $e=Me._readableState;$e.awaitDrainWriters===Ue?(x("pipeOnDrain",1),$e.awaitDrainWriters=null):$e.multiAwaitDrain&&(x("pipeOnDrain",$e.awaitDrainWriters.size),$e.awaitDrainWriters.delete(Ue)),(!$e.awaitDrainWriters||$e.awaitDrainWriters.size===0)&&Me.listenerCount("data")&&Me.resume()}}Te.prototype.unpipe=function(Me){let Ue=this._readableState,$e={hasUnpiped:!1};if(Ue.pipes.length===0)return this;if(!Me){let He=Ue.pipes;Ue.pipes=[],this.pause();for(let it=0;it<He.length;it++)He[it].emit("unpipe",this,{hasUnpiped:!1});return this}let Le=r(Ue.pipes,Me);return Le===-1?this:(Ue.pipes.splice(Le,1),Ue.pipes.length===0&&this.pause(),Me.emit("unpipe",this,$e),this)},Te.prototype.on=function(Me,Ue){let $e=v.prototype.on.call(this,Me,Ue),Le=this._readableState;return Me==="data"?(Le.readableListening=this.listenerCount("readable")>0,Le.flowing!==!1&&this.resume()):Me==="readable"&&!Le.endEmitted&&!Le.readableListening&&(Le.readableListening=Le.needReadable=!0,Le.flowing=!1,Le.emittedReadable=!1,x("on readable",Le.length,Le.reading),Le.length?fe(this):Le.reading||n.nextTick(Pe,this)),$e},Te.prototype.addListener=Te.prototype.on,Te.prototype.removeListener=function(Me,Ue){let $e=v.prototype.removeListener.call(this,Me,Ue);return Me==="readable"&&n.nextTick(Fe,this),$e},Te.prototype.off=Te.prototype.removeListener,Te.prototype.removeAllListeners=function(Me){let Ue=v.prototype.removeAllListeners.apply(this,arguments);return(Me==="readable"||Me===void 0)&&n.nextTick(Fe,this),Ue};function Fe(Me){let Ue=Me._readableState;Ue.readableListening=Me.listenerCount("readable")>0,Ue.resumeScheduled&&Ue[B]===!1?Ue.flowing=!0:Me.listenerCount("data")>0?Me.resume():Ue.readableListening||(Ue.flowing=null)}function Pe(Me){x("readable nexttick read 0"),Me.read(0)}Te.prototype.resume=function(){let Me=this._readableState;return Me.flowing||(x("resume"),Me.flowing=!Me.readableListening,Ke(this,Me)),Me[B]=!1,this};function Ke(Me,Ue){Ue.resumeScheduled||(Ue.resumeScheduled=!0,n.nextTick(tt,Me,Ue))}function tt(Me,Ue){x("resume",Ue.reading),Ue.reading||Me.read(0),Ue.resumeScheduled=!1,Me.emit("resume"),Ge(Me),Ue.flowing&&!Ue.reading&&Me.read(0)}Te.prototype.pause=function(){return x("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(x("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState[B]=!0,this};function Ge(Me){let Ue=Me._readableState;for(x("flow",Ue.flowing);Ue.flowing&&Me.read()!==null;);}Te.prototype.wrap=function(Me){let Ue=!1;Me.on("data",Le=>{!this.push(Le)&&Me.pause&&(Ue=!0,Me.pause())}),Me.on("end",()=>{this.push(null)}),Me.on("error",Le=>{j(this,Le)}),Me.on("close",()=>{this.destroy()}),Me.on("destroy",()=>{this.destroy()}),this._read=()=>{Ue&&Me.resume&&(Ue=!1,Me.resume())};let $e=l(Me);for(let Le=1;Le<$e.length;Le++){let He=$e[Le];this[He]===void 0&&typeof Me[He]=="function"&&(this[He]=Me[He].bind(Me))}return this},Te.prototype[p]=function(){return Nt(this)},Te.prototype.iterator=function(Me){return Me!==void 0&&P(Me,"options"),Nt(this,Me)};function Nt(Me,Ue){typeof Me.read!="function"&&(Me=Te.wrap(Me,{objectMode:!0}));let $e=lt(Me,Ue);return $e.stream=Me,$e}async function*lt(Me,Ue){let $e=W;function Le(ft){this===Me?($e(),$e=W):$e=ft}Me.on("readable",Le);let He,it=S(Me,{writable:!1},ft=>{He=ft?T(He,ft):null,$e(),$e=W});try{for(;;){let ft=Me.destroyed?null:Me.read();if(ft!==null)yield ft;else{if(He)throw He;if(He===null)return;await new u(Le)}}}catch(ft){throw He=T(He,ft),He}finally{(He||(Ue==null?void 0:Ue.destroyOnReturn)!==!1)&&(He===void 0||Me._readableState.autoDestroy)?C.destroyer(Me,null):(Me.off("readable",Le),it())}}s(Te.prototype,{readable:{__proto__:null,get(){let Me=this._readableState;return!!Me&&Me.readable!==!1&&!Me.destroyed&&!Me.errorEmitted&&!Me.endEmitted},set(Me){this._readableState&&(this._readableState.readable=!!Me)}},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(Me){this._readableState&&(this._readableState.flowing=Me)}},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(Me){this._readableState&&(this._readableState.destroyed=Me)}},readableEnded:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.endEmitted:!1}}}),s(Ne.prototype,{pipesCount:{__proto__:null,get(){return this.pipes.length}},paused:{__proto__:null,get(){return this[B]!==!1},set(Me){this[B]=!!Me}}}),Te._fromList=st;function st(Me,Ue){if(Ue.length===0)return null;let $e;return Ue.objectMode?$e=Ue.buffer.shift():!Me||Me>=Ue.length?(Ue.decoder?$e=Ue.buffer.join(""):Ue.buffer.length===1?$e=Ue.buffer.first():$e=Ue.buffer.concat(Ue.length),Ue.buffer.clear()):$e=Ue.buffer.consume(Me,Ue.decoder),$e}function It(Me){let Ue=Me._readableState;x("endReadable",Ue.endEmitted),Ue.endEmitted||(Ue.ended=!0,n.nextTick(ct,Ue,Me))}function ct(Me,Ue){if(x("endReadableNT",Me.endEmitted,Me.length),!Me.errored&&!Me.closeEmitted&&!Me.endEmitted&&Me.length===0){if(Me.endEmitted=!0,Ue.emit("end"),Ue.writable&&Ue.allowHalfOpen===!1)n.nextTick(Pt,Ue);else if(Me.autoDestroy){let $e=Ue._writableState;(!$e||$e.autoDestroy&&($e.finished||$e.writable===!1))&&Ue.destroy()}}}function Pt(Me){Me.writable&&!Me.writableEnded&&!Me.destroyed&&Me.end()}Te.from=function(Me,Ue){return L(Te,Me,Ue)};var Rt;function Tt(){return Rt===void 0&&(Rt={}),Rt}Te.fromWeb=function(Me,Ue){return Tt().newStreamReadableFromReadableStream(Me,Ue)},Te.toWeb=function(Me,Ue){return Tt().newReadableStreamFromStreamReadable(Me,Ue)},Te.wrap=function(Me,Ue){var $e,Le;return new Te({objectMode:($e=(Le=Me.readableObjectMode)!==null&&Le!==void 0?Le:Me.objectMode)!==null&&$e!==void 0?$e:!0,...Ue,destroy(He,it){C.destroyer(Me,He),it(He)}}).wrap(Me)}}),ZQ=on((e,t)=>{Xt(),Jt(),Zt();var n=Pv(),{ArrayPrototypeSlice:r,Error:i,FunctionPrototypeSymbolHasInstance:o,ObjectDefineProperty:a,ObjectDefineProperties:s,ObjectSetPrototypeOf:l,StringPrototypeToLowerCase:c,Symbol:u,SymbolHasInstance:d}=ko();t.exports=P,P.WritableState=M;var{EventEmitter:f}=(kv(),$i($g)),p=XQ().Stream,{Buffer:m}=(Ka(),$i(Ya)),g=tE(),{addAbortSignal:v}=B3(),{getHighWaterMark:y,getDefaultHighWaterMark:b}=H3(),{ERR_INVALID_ARG_TYPE:_,ERR_METHOD_NOT_IMPLEMENTED:S,ERR_MULTIPLE_CALLBACK:x,ERR_STREAM_CANNOT_PIPE:E,ERR_STREAM_DESTROYED:C,ERR_STREAM_ALREADY_FINISHED:w,ERR_STREAM_NULL_VALUES:O,ERR_STREAM_WRITE_AFTER_END:T,ERR_UNKNOWN_ENCODING:A}=dl().codes,{errorOrDestroy:I}=g;l(P.prototype,p.prototype),l(P,p);function N(){}var D=u("kOnFinished");function M(ce,re,ve){typeof ve!="boolean"&&(ve=re instanceof dh()),this.objectMode=!!(ce&&ce.objectMode),ve&&(this.objectMode=this.objectMode||!!(ce&&ce.writableObjectMode)),this.highWaterMark=ce?y(this,ce,"writableHighWaterMark",ve):b(!1),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;let be=!!(ce&&ce.decodeStrings===!1);this.decodeStrings=!be,this.defaultEncoding=ce&&ce.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=j.bind(void 0,re),this.writecb=null,this.writelen=0,this.afterWriteTickInfo=null,k(this),this.pendingcb=0,this.constructed=!0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!ce||ce.emitClose!==!1,this.autoDestroy=!ce||ce.autoDestroy!==!1,this.errored=null,this.closed=!1,this.closeEmitted=!1,this[D]=[]}function k(ce){ce.buffered=[],ce.bufferedIndex=0,ce.allBuffers=!0,ce.allNoop=!0}M.prototype.getBuffer=function(){return r(this.buffered,this.bufferedIndex)},a(M.prototype,"bufferedRequestCount",{__proto__:null,get(){return this.buffered.length-this.bufferedIndex}});function P(ce){let re=this instanceof dh();if(!re&&!o(P,this))return new P(ce);this._writableState=new M(ce,this,re),ce&&(typeof ce.write=="function"&&(this._write=ce.write),typeof ce.writev=="function"&&(this._writev=ce.writev),typeof ce.destroy=="function"&&(this._destroy=ce.destroy),typeof ce.final=="function"&&(this._final=ce.final),typeof ce.construct=="function"&&(this._construct=ce.construct),ce.signal&&v(ce.signal,this)),p.call(this,ce),g.construct(this,()=>{let ve=this._writableState;ve.writing||ue(this,ve),le(this,ve)})}a(P,d,{__proto__:null,value:function(ce){return o(this,ce)?!0:this!==P?!1:ce&&ce._writableState instanceof M}}),P.prototype.pipe=function(){I(this,new E)};function B(ce,re,ve,be){let xe=ce._writableState;if(typeof ve=="function")be=ve,ve=xe.defaultEncoding;else{if(!ve)ve=xe.defaultEncoding;else if(ve!=="buffer"&&!m.isEncoding(ve))throw new A(ve);typeof be!="function"&&(be=N)}if(re===null)throw new O;if(!xe.objectMode)if(typeof re=="string")xe.decodeStrings!==!1&&(re=m.from(re,ve),ve="buffer");else if(re instanceof m)ve="buffer";else if(p._isUint8Array(re))re=p._uint8ArrayToBuffer(re),ve="buffer";else throw new _("chunk",["string","Buffer","Uint8Array"],re);let we;return xe.ending?we=new T:xe.destroyed&&(we=new C("write")),we?(n.nextTick(be,we),I(ce,we,!0),we):(xe.pendingcb++,G(ce,xe,re,ve,be))}P.prototype.write=function(ce,re,ve){return B(this,ce,re,ve)===!0},P.prototype.cork=function(){this._writableState.corked++},P.prototype.uncork=function(){let ce=this._writableState;ce.corked&&(ce.corked--,ce.writing||ue(this,ce))},P.prototype.setDefaultEncoding=function(ce){if(typeof ce=="string"&&(ce=c(ce)),!m.isEncoding(ce))throw new A(ce);return this._writableState.defaultEncoding=ce,this};function G(ce,re,ve,be,xe){let we=re.objectMode?1:ve.length;re.length+=we;let de=re.length<re.highWaterMark;return de||(re.needDrain=!0),re.writing||re.corked||re.errored||!re.constructed?(re.buffered.push({chunk:ve,encoding:be,callback:xe}),re.allBuffers&&be!=="buffer"&&(re.allBuffers=!1),re.allNoop&&xe!==N&&(re.allNoop=!1)):(re.writelen=we,re.writecb=xe,re.writing=!0,re.sync=!0,ce._write(ve,be,re.onwrite),re.sync=!1),de&&!re.errored&&!re.destroyed}function L(ce,re,ve,be,xe,we,de){re.writelen=be,re.writecb=de,re.writing=!0,re.sync=!0,re.destroyed?re.onwrite(new C("write")):ve?ce._writev(xe,re.onwrite):ce._write(xe,we,re.onwrite),re.sync=!1}function W(ce,re,ve,be){--re.pendingcb,be(ve),Q(re),I(ce,ve)}function j(ce,re){let ve=ce._writableState,be=ve.sync,xe=ve.writecb;if(typeof xe!="function"){I(ce,new x);return}ve.writing=!1,ve.writecb=null,ve.length-=ve.writelen,ve.writelen=0,re?(re.stack,ve.errored||(ve.errored=re),ce._readableState&&!ce._readableState.errored&&(ce._readableState.errored=re),be?n.nextTick(W,ce,ve,re,xe):W(ce,ve,re,xe)):(ve.buffered.length>ve.bufferedIndex&&ue(ce,ve),be?ve.afterWriteTickInfo!==null&&ve.afterWriteTickInfo.cb===xe?ve.afterWriteTickInfo.count++:(ve.afterWriteTickInfo={count:1,cb:xe,stream:ce,state:ve},n.nextTick(H,ve.afterWriteTickInfo)):X(ce,ve,1,xe))}function H({stream:ce,state:re,count:ve,cb:be}){return re.afterWriteTickInfo=null,X(ce,re,ve,be)}function X(ce,re,ve,be){for(!re.ending&&!ce.destroyed&&re.length===0&&re.needDrain&&(re.needDrain=!1,ce.emit("drain"));ve-- >0;)re.pendingcb--,be();re.destroyed&&Q(re),le(ce,re)}function Q(ce){if(ce.writing)return;for(let xe=ce.bufferedIndex;xe<ce.buffered.length;++xe){var re;let{chunk:we,callback:de}=ce.buffered[xe],Ee=ce.objectMode?1:we.length;ce.length-=Ee,de((re=ce.errored)!==null&&re!==void 0?re:new C("write"))}let ve=ce[D].splice(0);for(let xe=0;xe<ve.length;xe++){var be;ve[xe]((be=ce.errored)!==null&&be!==void 0?be:new C("end"))}k(ce)}function ue(ce,re){if(re.corked||re.bufferProcessing||re.destroyed||!re.constructed)return;let{buffered:ve,bufferedIndex:be,objectMode:xe}=re,we=ve.length-be;if(!we)return;let de=be;if(re.bufferProcessing=!0,we>1&&ce._writev){re.pendingcb-=we-1;let Ee=re.allNoop?N:Te=>{for(let Ve=de;Ve<ve.length;++Ve)ve[Ve].callback(Te)},Ne=re.allNoop&&de===0?ve:r(ve,de);Ne.allBuffers=re.allBuffers,L(ce,re,!0,re.length,Ne,"",Ee),k(re)}else{do{let{chunk:Ee,encoding:Ne,callback:Te}=ve[de];ve[de++]=null;let Ve=xe?1:Ee.length;L(ce,re,!1,Ve,Ee,Ne,Te)}while(de<ve.length&&!re.writing);de===ve.length?k(re):de>256?(ve.splice(0,de),re.bufferedIndex=0):re.bufferedIndex=de}re.bufferProcessing=!1}P.prototype._write=function(ce,re,ve){if(this._writev)this._writev([{chunk:ce,encoding:re}],ve);else throw new S("_write()")},P.prototype._writev=null,P.prototype.end=function(ce,re,ve){let be=this._writableState;typeof ce=="function"?(ve=ce,ce=null,re=null):typeof re=="function"&&(ve=re,re=null);let xe;if(ce!=null){let we=B(this,ce,re);we instanceof i&&(xe=we)}return be.corked&&(be.corked=1,this.uncork()),xe||(!be.errored&&!be.ending?(be.ending=!0,le(this,be,!0),be.ended=!0):be.finished?xe=new w("end"):be.destroyed&&(xe=new C("end"))),typeof ve=="function"&&(xe||be.finished?n.nextTick(ve,xe):be[D].push(ve)),this};function ee(ce){return ce.ending&&!ce.destroyed&&ce.constructed&&ce.length===0&&!ce.errored&&ce.buffered.length===0&&!ce.finished&&!ce.writing&&!ce.errorEmitted&&!ce.closeEmitted}function K(ce,re){let ve=!1;function be(xe){if(ve){I(ce,xe??x());return}if(ve=!0,re.pendingcb--,xe){let we=re[D].splice(0);for(let de=0;de<we.length;de++)we[de](xe);I(ce,xe,re.sync)}else ee(re)&&(re.prefinished=!0,ce.emit("prefinish"),re.pendingcb++,n.nextTick(oe,ce,re))}re.sync=!0,re.pendingcb++;try{ce._final(be)}catch(xe){be(xe)}re.sync=!1}function se(ce,re){!re.prefinished&&!re.finalCalled&&(typeof ce._final=="function"&&!re.destroyed?(re.finalCalled=!0,K(ce,re)):(re.prefinished=!0,ce.emit("prefinish")))}function le(ce,re,ve){ee(re)&&(se(ce,re),re.pendingcb===0&&(ve?(re.pendingcb++,n.nextTick((be,xe)=>{ee(xe)?oe(be,xe):xe.pendingcb--},ce,re)):ee(re)&&(re.pendingcb++,oe(ce,re))))}function oe(ce,re){re.pendingcb--,re.finished=!0;let ve=re[D].splice(0);for(let be=0;be<ve.length;be++)ve[be]();if(ce.emit("finish"),re.autoDestroy){let be=ce._readableState;(!be||be.autoDestroy&&(be.endEmitted||be.readable===!1))&&ce.destroy()}}s(P.prototype,{closed:{__proto__:null,get(){return this._writableState?this._writableState.closed:!1}},destroyed:{__proto__:null,get(){return this._writableState?this._writableState.destroyed:!1},set(ce){this._writableState&&(this._writableState.destroyed=ce)}},writable:{__proto__:null,get(){let ce=this._writableState;return!!ce&&ce.writable!==!1&&!ce.destroyed&&!ce.errored&&!ce.ending&&!ce.ended},set(ce){this._writableState&&(this._writableState.writable=!!ce)}},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 ce=this._writableState;return ce?!ce.destroyed&&!ce.ending&&ce.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 ne=g.destroy;P.prototype.destroy=function(ce,re){let ve=this._writableState;return!ve.destroyed&&(ve.bufferedIndex<ve.buffered.length||ve[D].length)&&n.nextTick(Q,ve),ne.call(this,ce,re),this},P.prototype._undestroy=g.undestroy,P.prototype._destroy=function(ce,re){re(ce)},P.prototype[f.captureRejectionSymbol]=function(ce){this.destroy(ce)};var he;function me(){return he===void 0&&(he={}),he}P.fromWeb=function(ce,re){return me().newStreamWritableFromWritableStream(ce,re)},P.toWeb=function(ce){return me().newWritableStreamFromStreamWritable(ce)}}),EQt=on((e,t)=>{Xt(),Jt(),Zt();var n=Pv(),r=(Ka(),$i(Ya)),{isReadable:i,isWritable:o,isIterable:a,isNodeStream:s,isReadableNodeStream:l,isWritableNodeStream:c,isDuplexNodeStream:u,isReadableStream:d,isWritableStream:f}=Th(),p=Fg(),{AbortError:m,codes:{ERR_INVALID_ARG_TYPE:g,ERR_INVALID_RETURN_VALUE:v}}=dl(),{destroyer:y}=tE(),b=dh(),_=j3(),S=ZQ(),{createDeferredPromise:x}=Pl(),E=hNe(),C=globalThis.Blob||r.Blob,w=typeof C<"u"?function(D){return D instanceof C}:function(D){return!1},O=globalThis.AbortController||eT().AbortController,{FunctionPrototypeCall:T}=ko(),A=class extends b{constructor(D){super(D),(D==null?void 0:D.readable)===!1&&(this._readableState.readable=!1,this._readableState.ended=!0,this._readableState.endEmitted=!0),(D==null?void 0:D.writable)===!1&&(this._writableState.writable=!1,this._writableState.ending=!0,this._writableState.ended=!0,this._writableState.finished=!0)}};t.exports=function D(M,k){if(u(M))return M;if(l(M))return N({readable:M});if(c(M))return N({writable:M});if(s(M))return N({writable:!1,readable:!1});if(d(M))return N({readable:_.fromWeb(M)});if(f(M))return N({writable:S.fromWeb(M)});if(typeof M=="function"){let{value:B,write:G,final:L,destroy:W}=I(M);if(a(B))return E(A,B,{objectMode:!0,write:G,final:L,destroy:W});let j=B==null?void 0:B.then;if(typeof j=="function"){let H,X=T(j,B,Q=>{if(Q!=null)throw new v("nully","body",Q)},Q=>{y(H,Q)});return H=new A({objectMode:!0,readable:!1,write:G,final(Q){L(async()=>{try{await X,n.nextTick(Q,null)}catch(ue){n.nextTick(Q,ue)}})},destroy:W})}throw new v("Iterable, AsyncIterable or AsyncFunction",k,B)}if(w(M))return D(M.arrayBuffer());if(a(M))return E(A,M,{objectMode:!0,writable:!1});if(d(M==null?void 0:M.readable)&&f(M==null?void 0:M.writable))return A.fromWeb(M);if(typeof(M==null?void 0:M.writable)=="object"||typeof(M==null?void 0:M.readable)=="object"){let B=M!=null&&M.readable?l(M==null?void 0:M.readable)?M==null?void 0:M.readable:D(M.readable):void 0,G=M!=null&&M.writable?c(M==null?void 0:M.writable)?M==null?void 0:M.writable:D(M.writable):void 0;return N({readable:B,writable:G})}let P=M==null?void 0:M.then;if(typeof P=="function"){let B;return T(P,M,G=>{G!=null&&B.push(G),B.push(null)},G=>{y(B,G)}),B=new A({objectMode:!0,writable:!1,read(){}})}throw new g(k,["Blob","ReadableStream","WritableStream","Stream","Iterable","AsyncIterable","Function","{ readable, writable } pair","Promise"],M)};function I(D){let{promise:M,resolve:k}=x(),P=new O,B=P.signal;return{value:D(async function*(){for(;;){let G=M;M=null;let{chunk:L,done:W,cb:j}=await G;if(n.nextTick(j),W)return;if(B.aborted)throw new m(void 0,{cause:B.reason});({promise:M,resolve:k}=x()),yield L}}(),{signal:B}),write(G,L,W){let j=k;k=null,j({chunk:G,done:!1,cb:W})},final(G){let L=k;k=null,L({done:!0,cb:G})},destroy(G,L){P.abort(),L(G)}}}function N(D){let M=D.readable&&typeof D.readable.read!="function"?_.wrap(D.readable):D.readable,k=D.writable,P=!!i(M),B=!!o(k),G,L,W,j,H;function X(Q){let ue=j;j=null,ue?ue(Q):Q&&H.destroy(Q)}return H=new A({readableObjectMode:!!(M!=null&&M.readableObjectMode),writableObjectMode:!!(k!=null&&k.writableObjectMode),readable:P,writable:B}),B&&(p(k,Q=>{B=!1,Q&&y(M,Q),X(Q)}),H._write=function(Q,ue,ee){k.write(Q,ue)?ee():G=ee},H._final=function(Q){k.end(),L=Q},k.on("drain",function(){if(G){let Q=G;G=null,Q()}}),k.on("finish",function(){if(L){let Q=L;L=null,Q()}})),P&&(p(M,Q=>{P=!1,Q&&y(M,Q),X(Q)}),M.on("readable",function(){if(W){let Q=W;W=null,Q()}}),M.on("end",function(){H.push(null)}),H._read=function(){for(;;){let Q=M.read();if(Q===null){W=H._read;return}if(!H.push(Q))return}}),H._destroy=function(Q,ue){!Q&&j!==null&&(Q=new m),W=null,G=null,L=null,j===null?ue(Q):(j=ue,y(k,Q),y(M,Q))},H}}),dh=on((e,t)=>{Xt(),Jt(),Zt();var{ObjectDefineProperties:n,ObjectGetOwnPropertyDescriptor:r,ObjectKeys:i,ObjectSetPrototypeOf:o}=ko();t.exports=l;var a=j3(),s=ZQ();o(l.prototype,a.prototype),o(l,a);{let f=i(s.prototype);for(let p=0;p<f.length;p++){let m=f[p];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,p){return u().newStreamDuplexFromReadableWritablePair(f,p)},l.toWeb=function(f){return u().newReadableWritablePairFromDuplex(f)};var d;l.from=function(f){return d||(d=EQt()),d(f,"body")}}),mNe=on((e,t)=>{Xt(),Jt(),Zt();var{ObjectSetPrototypeOf:n,Symbol:r}=ko();t.exports=l;var{ERR_METHOD_NOT_IMPLEMENTED:i}=dl().codes,o=dh(),{getHighWaterMark:a}=H3();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,p)=>{if(f){d?d(f):this.destroy(f);return}p!=null&&this.push(p),this.push(null),d&&d()}):(this.push(null),d&&d())}function u(){this._final!==c&&c.call(this)}l.prototype._final=c,l.prototype._transform=function(d,f,p){throw new i("_transform()")},l.prototype._write=function(d,f,p){let m=this._readableState,g=this._writableState,v=m.length;this._transform(d,f,(y,b)=>{if(y){p(y);return}b!=null&&this.push(b),g.ended||v===m.length||m.length<m.highWaterMark?p():this[s]=p})},l.prototype._read=function(){if(this[s]){let d=this[s];this[s]=null,d()}}}),gNe=on((e,t)=>{Xt(),Jt(),Zt();var{ObjectSetPrototypeOf:n}=ko();t.exports=i;var r=mNe();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)}}),JQ=on((e,t)=>{Xt(),Jt(),Zt();var n=Pv(),{ArrayIsArray:r,Promise:i,SymbolAsyncIterator:o,SymbolDispose:a}=ko(),s=Fg(),{once:l}=Pl(),c=tE(),u=dh(),{aggregateTwoErrors:d,codes:{ERR_INVALID_ARG_TYPE:f,ERR_INVALID_RETURN_VALUE:p,ERR_MISSING_ARGS:m,ERR_STREAM_DESTROYED:g,ERR_STREAM_PREMATURE_CLOSE:v},AbortError:y}=dl(),{validateFunction:b,validateAbortSignal:_}=sO(),{isIterable:S,isReadable:x,isReadableNodeStream:E,isNodeStream:C,isTransformStream:w,isWebStream:O,isReadableStream:T,isReadableFinished:A}=Th(),I=globalThis.AbortController||eT().AbortController,N,D,M;function k(Q,ue,ee){let K=!1;Q.on("close",()=>{K=!0});let se=s(Q,{readable:ue,writable:ee},le=>{K=!le});return{destroy:le=>{K||(K=!0,c.destroyer(Q,le||new g("pipe")))},cleanup:se}}function P(Q){return b(Q[Q.length-1],"streams[stream.length - 1]"),Q.pop()}function B(Q){if(S(Q))return Q;if(E(Q))return G(Q);throw new f("val",["Readable","Iterable","AsyncIterable"],Q)}async function*G(Q){D||(D=j3()),yield*D.prototype[o].call(Q)}async function L(Q,ue,ee,{end:K}){let se,le=null,oe=me=>{if(me&&(se=me),le){let ce=le;le=null,ce()}},ne=()=>new i((me,ce)=>{se?ce(se):le=()=>{se?ce(se):me()}});ue.on("drain",oe);let he=s(ue,{readable:!1},oe);try{ue.writableNeedDrain&&await ne();for await(let me of Q)ue.write(me)||await ne();K&&(ue.end(),await ne()),ee()}catch(me){ee(se!==me?d(se,me):me)}finally{he(),ue.off("drain",oe)}}async function W(Q,ue,ee,{end:K}){w(ue)&&(ue=ue.writable);let se=ue.getWriter();try{for await(let le of Q)await se.ready,se.write(le).catch(()=>{});await se.ready,K&&await se.close(),ee()}catch(le){try{await se.abort(le),ee(le)}catch(oe){ee(oe)}}}function j(...Q){return H(Q,l(P(Q)))}function H(Q,ue,ee){if(Q.length===1&&r(Q[0])&&(Q=Q[0]),Q.length<2)throw new m("streams");let K=new I,se=K.signal,le=ee==null?void 0:ee.signal,oe=[];_(le,"options.signal");function ne(){xe(new y)}M=M||Pl().addAbortListener;let he;le&&(he=M(le,ne));let me,ce,re=[],ve=0;function be(Ne){xe(Ne,--ve===0)}function xe(Ne,Te){var Ve;if(Ne&&(!me||me.code==="ERR_STREAM_PREMATURE_CLOSE")&&(me=Ne),!(!me&&!Te)){for(;re.length;)re.shift()(me);(Ve=he)===null||Ve===void 0||Ve[a](),K.abort(),Te&&(me||oe.forEach(q=>q()),n.nextTick(ue,me,ce))}}let we;for(let Ne=0;Ne<Q.length;Ne++){let Te=Q[Ne],Ve=Ne<Q.length-1,q=Ne>0,U=Ve||(ee==null?void 0:ee.end)!==!1,Y=Ne===Q.length-1;if(C(Te)){let ae=function(ye){ye&&ye.name!=="AbortError"&&ye.code!=="ERR_STREAM_PREMATURE_CLOSE"&&be(ye)};if(U){let{destroy:ye,cleanup:fe}=k(Te,Ve,q);re.push(ye),x(Te)&&Y&&oe.push(fe)}Te.on("error",ae),x(Te)&&Y&&oe.push(()=>{Te.removeListener("error",ae)})}if(Ne===0)if(typeof Te=="function"){if(we=Te({signal:se}),!S(we))throw new p("Iterable, AsyncIterable or Stream","source",we)}else S(Te)||E(Te)||w(Te)?we=Te:we=u.from(Te);else if(typeof Te=="function"){if(w(we)){var de;we=B((de=we)===null||de===void 0?void 0:de.readable)}else we=B(we);if(we=Te(we,{signal:se}),Ve){if(!S(we,!0))throw new p("AsyncIterable",`transform[${Ne-1}]`,we)}else{var Ee;N||(N=gNe());let ae=new N({objectMode:!0}),ye=(Ee=we)===null||Ee===void 0?void 0:Ee.then;if(typeof ye=="function")ve++,ye.call(we,We=>{ce=We,We!=null&&ae.write(We),U&&ae.end(),n.nextTick(be)},We=>{ae.destroy(We),n.nextTick(be,We)});else if(S(we,!0))ve++,L(we,ae,be,{end:U});else if(T(we)||w(we)){let We=we.readable||we;ve++,L(We,ae,be,{end:U})}else throw new p("AsyncIterable or Promise","destination",we);we=ae;let{destroy:fe,cleanup:Ae}=k(we,!1,!0);re.push(fe),Y&&oe.push(Ae)}}else if(C(Te)){if(E(we)){ve+=2;let ae=X(we,Te,be,{end:U});x(Te)&&Y&&oe.push(ae)}else if(w(we)||T(we)){let ae=we.readable||we;ve++,L(ae,Te,be,{end:U})}else if(S(we))ve++,L(we,Te,be,{end:U});else throw new f("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],we);we=Te}else if(O(Te)){if(E(we))ve++,W(B(we),Te,be,{end:U});else if(T(we)||S(we))ve++,W(we,Te,be,{end:U});else if(w(we))ve++,W(we.readable,Te,be,{end:U});else throw new f("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],we);we=Te}else we=u.from(Te)}return(se!=null&&se.aborted||le!=null&&le.aborted)&&n.nextTick(ne),we}function X(Q,ue,ee,{end:K}){let se=!1;if(ue.on("close",()=>{se||ee(new v)}),Q.pipe(ue,{end:!1}),K){let le=function(){se=!0,ue.end()};A(Q)?n.nextTick(le):Q.once("end",le)}else ee();return s(Q,{readable:!0,writable:!1},le=>{let oe=Q._readableState;le&&le.code==="ERR_STREAM_PREMATURE_CLOSE"&&oe&&oe.ended&&!oe.errored&&!oe.errorEmitted?Q.once("end",ee).once("error",ee):ee(le)}),s(ue,{readable:!1,writable:!0},ee)}t.exports={pipelineImpl:H,pipeline:j}}),vNe=on((e,t)=>{Xt(),Jt(),Zt();var{pipeline:n}=JQ(),r=dh(),{destroyer:i}=tE(),{isNodeStream:o,isReadable:a,isWritable:s,isWebStream:l,isTransformStream:c,isWritableStream:u,isReadableStream:d}=Th(),{AbortError:f,codes:{ERR_INVALID_ARG_VALUE:p,ERR_MISSING_ARGS:m}}=dl(),g=Fg();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 p(`streams[${I}]`,y[I],"must be readable");if(I>0&&!(s(v[I])||u(v[I])||c(v[I])))throw new p(`streams[${I}]`,y[I],"must be writable")}let b,_,S,x,E;function C(I){let N=x;x=null,N?N(I):I?E.destroy(I):!A&&!T&&E.destroy()}let w=v[0],O=n(v,C),T=!!(s(w)||u(w)||c(w)),A=!!(a(O)||d(O)||c(O));if(E=new r({writableObjectMode:!!(w!=null&&w.writableObjectMode),readableObjectMode:!!(O!=null&&O.readableObjectMode),writable:T,readable:A}),T){if(o(w))E._write=function(N,D,M){w.write(N,D)?M():b=M},E._final=function(N){w.end(),_=N},w.on("drain",function(){if(b){let N=b;b=null,N()}});else if(l(w)){let N=(c(w)?w.writable:w).getWriter();E._write=async function(D,M,k){try{await N.ready,N.write(D).catch(()=>{}),k()}catch(P){k(P)}},E._final=async function(D){try{await N.ready,N.close().catch(()=>{}),_=D}catch(M){D(M)}}}let I=c(O)?O.readable:O;g(I,()=>{if(_){let N=_;_=null,N()}})}if(A){if(o(O))O.on("readable",function(){if(S){let I=S;S=null,I()}}),O.on("end",function(){E.push(null)}),E._read=function(){for(;;){let I=O.read();if(I===null){S=E._read;return}if(!E.push(I))return}};else if(l(O)){let I=(c(O)?O.readable:O).getReader();E._read=async function(){for(;;)try{let{value:N,done:D}=await I.read();if(!E.push(N))return;if(D){E.push(null);return}}catch{return}}}}return E._destroy=function(I,N){!I&&x!==null&&(I=new f),S=null,b=null,_=null,x===null?N(I):(x=N,o(O)&&i(O,I))},E}}),CQt=on((e,t)=>{Xt(),Jt(),Zt();var n=globalThis.AbortController||eT().AbortController,{codes:{ERR_INVALID_ARG_VALUE:r,ERR_INVALID_ARG_TYPE:i,ERR_MISSING_ARGS:o,ERR_OUT_OF_RANGE:a},AbortError:s}=dl(),{validateAbortSignal:l,validateInteger:c,validateObject:u}=sO(),d=ko().Symbol("kWeak"),f=ko().Symbol("kResistStopPropagation"),{finished:p}=Fg(),m=vNe(),{addAbortSignalNoValidate:g}=B3(),{isWritable:v,isNodeStream:y}=Th(),{deprecate:b}=Pl(),{ArrayPrototypePush:_,Boolean:S,MathFloor:x,Number:E,NumberIsNaN:C,Promise:w,PromiseReject:O,PromiseResolve:T,PromisePrototypeThen:A,Symbol:I}=ko(),N=I("kEmpty"),D=I("kEof");function M(le,oe){if(oe!=null&&u(oe,"options"),(oe==null?void 0:oe.signal)!=null&&l(oe.signal,"options.signal"),y(le)&&!v(le))throw new r("stream",le,"must be writable");let ne=m(this,le);return oe!=null&&oe.signal&&g(oe.signal,ne),ne}function k(le,oe){if(typeof le!="function")throw new i("fn",["Function","AsyncFunction"],le);oe!=null&&u(oe,"options"),(oe==null?void 0:oe.signal)!=null&&l(oe.signal,"options.signal");let ne=1;(oe==null?void 0:oe.concurrency)!=null&&(ne=x(oe.concurrency));let he=ne-1;return(oe==null?void 0:oe.highWaterMark)!=null&&(he=x(oe.highWaterMark)),c(ne,"options.concurrency",1),c(he,"options.highWaterMark",0),he+=ne,(async function*(){let me=Pl().AbortSignalAny([oe==null?void 0:oe.signal].filter(S)),ce=this,re=[],ve={signal:me},be,xe,we=!1,de=0;function Ee(){we=!0,Ne()}function Ne(){de-=1,Te()}function Te(){xe&&!we&&de<ne&&re.length<he&&(xe(),xe=null)}async function Ve(){try{for await(let q of ce){if(we)return;if(me.aborted)throw new s;try{if(q=le(q,ve),q===N)continue;q=T(q)}catch(U){q=O(U)}de+=1,A(q,Ne,Ee),re.push(q),be&&(be(),be=null),!we&&(re.length>=he||de>=ne)&&await new w(U=>{xe=U})}re.push(D)}catch(q){let U=O(q);A(U,Ne,Ee),re.push(U)}finally{we=!0,be&&(be(),be=null)}}Ve();try{for(;;){for(;re.length>0;){let q=await re[0];if(q===D)return;if(me.aborted)throw new s;q!==N&&(yield q),re.shift(),Te()}await new w(q=>{be=q})}}finally{we=!0,xe&&(xe(),xe=null)}}).call(this)}function P(le=void 0){return le!=null&&u(le,"options"),(le==null?void 0:le.signal)!=null&&l(le.signal,"options.signal"),(async function*(){let oe=0;for await(let he of this){var ne;if(le!=null&&(ne=le.signal)!==null&&ne!==void 0&&ne.aborted)throw new s({cause:le.signal.reason});yield[oe++,he]}}).call(this)}async function B(le,oe=void 0){for await(let ne of j.call(this,le,oe))return!0;return!1}async function G(le,oe=void 0){if(typeof le!="function")throw new i("fn",["Function","AsyncFunction"],le);return!await B.call(this,async(...ne)=>!await le(...ne),oe)}async function L(le,oe){for await(let ne of j.call(this,le,oe))return ne}async function W(le,oe){if(typeof le!="function")throw new i("fn",["Function","AsyncFunction"],le);async function ne(he,me){return await le(he,me),N}for await(let he of k.call(this,ne,oe));}function j(le,oe){if(typeof le!="function")throw new i("fn",["Function","AsyncFunction"],le);async function ne(he,me){return await le(he,me)?he:N}return k.call(this,ne,oe)}var H=class extends o{constructor(){super("reduce"),this.message="Reduce of an empty stream requires an initial value"}};async function X(le,oe,ne){var he;if(typeof le!="function")throw new i("reducer",["Function","AsyncFunction"],le);ne!=null&&u(ne,"options"),(ne==null?void 0:ne.signal)!=null&&l(ne.signal,"options.signal");let me=arguments.length>1;if(ne!=null&&(he=ne.signal)!==null&&he!==void 0&&he.aborted){let xe=new s(void 0,{cause:ne.signal.reason});throw this.once("error",()=>{}),await p(this.destroy(xe)),xe}let ce=new n,re=ce.signal;if(ne!=null&&ne.signal){let xe={once:!0,[d]:this,[f]:!0};ne.signal.addEventListener("abort",()=>ce.abort(),xe)}let ve=!1;try{for await(let xe of this){var be;if(ve=!0,ne!=null&&(be=ne.signal)!==null&&be!==void 0&&be.aborted)throw new s;me?oe=await le(oe,xe,{signal:re}):(oe=xe,me=!0)}if(!ve&&!me)throw new H}finally{ce.abort()}return oe}async function Q(le){le!=null&&u(le,"options"),(le==null?void 0:le.signal)!=null&&l(le.signal,"options.signal");let oe=[];for await(let he of this){var ne;if(le!=null&&(ne=le.signal)!==null&&ne!==void 0&&ne.aborted)throw new s(void 0,{cause:le.signal.reason});_(oe,he)}return oe}function ue(le,oe){let ne=k.call(this,le,oe);return(async function*(){for await(let he of ne)yield*he}).call(this)}function ee(le){if(le=E(le),C(le))return 0;if(le<0)throw new a("number",">= 0",le);return le}function K(le,oe=void 0){return oe!=null&&u(oe,"options"),(oe==null?void 0:oe.signal)!=null&&l(oe.signal,"options.signal"),le=ee(le),(async function*(){var ne;if(oe!=null&&(ne=oe.signal)!==null&&ne!==void 0&&ne.aborted)throw new s;for await(let me of this){var he;if(oe!=null&&(he=oe.signal)!==null&&he!==void 0&&he.aborted)throw new s;le--<=0&&(yield me)}}).call(this)}function se(le,oe=void 0){return oe!=null&&u(oe,"options"),(oe==null?void 0:oe.signal)!=null&&l(oe.signal,"options.signal"),le=ee(le),(async function*(){var ne;if(oe!=null&&(ne=oe.signal)!==null&&ne!==void 0&&ne.aborted)throw new s;for await(let me of this){var he;if(oe!=null&&(he=oe.signal)!==null&&he!==void 0&&he.aborted)throw new s;if(le-- >0&&(yield me),le<=0)return}}).call(this)}t.exports.streamReturningOperators={asIndexedPairs:b(P,"readable.asIndexedPairs will be removed in a future version."),drop:K,filter:j,flatMap:ue,map:k,take:se,compose:M},t.exports.promiseReturningOperators={every:G,forEach:W,reduce:X,toArray:Q,some:B,find:L}}),bNe=on((e,t)=>{Xt(),Jt(),Zt();var{ArrayPrototypePop:n,Promise:r}=ko(),{isIterable:i,isNodeStream:o,isWebStream:a}=Th(),{pipelineImpl:s}=JQ(),{finished:l}=Fg();yNe();function c(...u){return new r((d,f)=>{let p,m,g=u[u.length-1];if(g&&typeof g=="object"&&!o(g)&&!i(g)&&!a(g)){let v=n(u);p=v.signal,m=v.end}s(u,(v,y)=>{v?f(v):d(y)},{signal:p,end:m})})}t.exports={finished:l,pipeline:c}}),yNe=on((e,t)=>{Xt(),Jt(),Zt();var{Buffer:n}=(Ka(),$i(Ya)),{ObjectDefineProperty:r,ObjectKeys:i,ReflectApply:o}=ko(),{promisify:{custom:a}}=Pl(),{streamReturningOperators:s,promiseReturningOperators:l}=CQt(),{codes:{ERR_ILLEGAL_CONSTRUCTOR:c}}=dl(),u=vNe(),{setDefaultHighWaterMark:d,getDefaultHighWaterMark:f}=H3(),{pipeline:p}=JQ(),{destroyer:m}=tE(),g=Fg(),v=bNe(),y=Th(),b=t.exports=XQ().Stream;b.isDestroyed=y.isDestroyed,b.isDisturbed=y.isDisturbed,b.isErrored=y.isErrored,b.isReadable=y.isReadable,b.isWritable=y.isWritable,b.Readable=j3();for(let S of i(s)){let x=function(...C){if(new.target)throw c();return b.Readable.from(o(E,this,C))},E=s[S];r(x,"name",{__proto__:null,value:E.name}),r(x,"length",{__proto__:null,value:E.length}),r(b.Readable.prototype,S,{__proto__:null,value:x,enumerable:!1,configurable:!0,writable:!0})}for(let S of i(l)){let x=function(...C){if(new.target)throw c();return o(E,this,C)},E=l[S];r(x,"name",{__proto__:null,value:E.name}),r(x,"length",{__proto__:null,value:E.length}),r(b.Readable.prototype,S,{__proto__:null,value:x,enumerable:!1,configurable:!0,writable:!0})}b.Writable=ZQ(),b.Duplex=dh(),b.Transform=mNe(),b.PassThrough=gNe(),b.pipeline=p;var{addAbortSignal:_}=B3();b.addAbortSignal=_,b.finished=g,b.destroy=m,b.compose=u,b.setDefaultHighWaterMark=d,b.getDefaultHighWaterMark=f,r(b,"promises",{__proto__:null,configurable:!0,enumerable:!0,get(){return v}}),r(p,a,{__proto__:null,enumerable:!0,get(){return v.pipeline}}),r(g,a,{__proto__:null,enumerable:!0,get(){return v.finished}}),b.Stream=b,b._isUint8Array=function(S){return S instanceof Uint8Array},b._uint8ArrayToBuffer=function(S){return n.from(S.buffer,S.byteOffset,S.byteLength)}}),Dv=on((e,t)=>{Xt(),Jt(),Zt();var n=yNe(),r=bNe(),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}),xQt=on((e,t)=>{Xt(),Jt(),Zt(),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}}}),wQt=on((e,t)=>{Xt(),Jt(),Zt();var{Buffer:n}=(Ka(),$i(Ya)),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,p=c&&a||0,m=u[1];if(s===0&&l===this.length){if(!c)return this._bufs.length===1?this._bufs[0]:n.concat(this._bufs,this.length);for(let g=0;g<this._bufs.length;g++)this._bufs[g].copy(o,p),p+=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,p,m),p+=v;else{this._bufs[g].copy(o,p,m,m+f),p+=v;break}f-=v,m&&(m=0)}return o.length>p?o.slice(0,p):o},i.prototype.shallowSlice=function(o,a){if(o=o||0,a=typeof a!="number"?this.length:a,o<0&&(o+=this.length),a<0&&(a+=this.length),o===a)return this._new();let s=this._offset(o),l=this._offset(a),c=this._bufs.slice(s[0],l[0]+1);return l[1]===0?c.pop():c[c.length-1]=c[c.length-1].slice(0,l[1]),s[1]!==0&&(c[0]=c[0].slice(s[1])),this._new(c)},i.prototype.toString=function(o,a,s){return this.slice(a,s).toString(o)},i.prototype.consume=function(o){if(o=Math.trunc(o),Number.isNaN(o)||o<=0)return this;for(;this._bufs.length;)if(o>=this._bufs[0].length)o-=this._bufs[0].length,this.length-=this._bufs[0].length,this._bufs.shift();else{this._bufs[0]=this._bufs[0].slice(o),this.length-=o;break}return this},i.prototype.duplicate=function(){let o=this._new();for(let a=0;a<this._bufs.length;a++)o.append(this._bufs[a]);return o},i.prototype.append=function(o){if(o==null)return this;if(o.buffer)this._appendBuffer(n.from(o.buffer,o.byteOffset,o.byteLength));else if(Array.isArray(o))for(let a=0;a<o.length;a++)this.append(o[a]);else if(this._isBufferList(o))for(let a=0;a<o._bufs.length;a++)this.append(o._bufs[a]);else typeof o=="number"&&(o=o.toString()),this._appendBuffer(n.from(o));return this},i.prototype._appendBuffer=function(o){this._bufs.push(o),this.length+=o.length},i.prototype.indexOf=function(o,a,s){if(s===void 0&&typeof a=="string"&&(s=a,a=void 0),typeof o=="function"||Array.isArray(o))throw new TypeError('The "value" argument must be one of type string, Buffer, BufferList, or Uint8Array.');if(typeof o=="number"?o=n.from([o]):typeof o=="string"?o=n.from(o,s):this._isBufferList(o)?o=o.slice():Array.isArray(o.buffer)?o=n.from(o.buffer,o.byteOffset,o.byteLength):n.isBuffer(o)||(o=n.from(o)),a=Number(a||0),isNaN(a)&&(a=0),a<0&&(a=this.length+a),a<0&&(a=0),o.length===0)return a>this.length?this.length:a;let l=this._offset(a),c=l[0],u=l[1];for(;c<this._bufs.length;c++){let d=this._bufs[c];for(;u<d.length;)if(d.length-u>=o.length){let 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}),TQt=on((e,t)=>{Xt(),Jt(),Zt();var n=Dv().Duplex,r=xQt(),i=wQt();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}),OQt=on((e,t)=>{Xt(),Jt(),Zt();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}),_Ne=on((e,t)=>{Xt(),Jt(),Zt();var n=t.exports,{Buffer:r}=(Ka(),$i(Ya));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"}}),RQt=on((e,t)=>{Xt(),Jt(),Zt();var n=1e3,r=n*60,i=r*60,o=i*24,a=o*7,s=o*365.25;t.exports=function(f,p){p=p||{};var m=typeof f;if(m==="string"&&f.length>0)return l(f);if(m==="number"&&isFinite(f))return p.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 p=/^(-?(?:\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(p){var m=parseFloat(p[1]),g=(p[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 p=Math.abs(f);return p>=o?Math.round(f/o)+"d":p>=i?Math.round(f/i)+"h":p>=r?Math.round(f/r)+"m":p>=n?Math.round(f/n)+"s":f+"ms"}function u(f){var p=Math.abs(f);return p>=o?d(f,p,o,"day"):p>=i?d(f,p,i,"hour"):p>=r?d(f,p,r,"minute"):p>=n?d(f,p,n,"second"):f+" ms"}function d(f,p,m,g){var v=p>=m*1.5;return Math.round(f/m)+" "+g+(v?"s":"")}}),AQt=on((e,t)=>{Xt(),Jt(),Zt();function n(r){o.debug=o,o.default=o,o.coerce=d,o.disable=c,o.enable=s,o.enabled=u,o.humanize=RQt(),o.destroy=f,Object.keys(r).forEach(p=>{o[p]=r[p]}),o.names=[],o.skips=[],o.formatters={};function i(p){let m=0;for(let g=0;g<p.length;g++)m=(m<<5)-m+p.charCodeAt(g),m|=0;return o.colors[Math.abs(m)%o.colors.length]}o.selectColor=i;function o(p){let m,g=null,v,y;function b(..._){if(!b.enabled)return;let S=b,x=Number(new Date),E=x-(m||x);S.diff=E,S.prev=m,S.curr=x,m=x,_[0]=o.coerce(_[0]),typeof _[0]!="string"&&_.unshift("%O");let C=0;_[0]=_[0].replace(/%([a-zA-Z%])/g,(w,O)=>{if(w==="%%")return"%";C++;let T=o.formatters[O];if(typeof T=="function"){let A=_[C];w=T.call(S,A),_.splice(C,1),C--}return w}),o.formatArgs.call(S,_),(S.log||o.log).apply(S,_)}return b.namespace=p,b.useColors=o.useColors(),b.color=o.selectColor(p),b.extend=a,b.destroy=o.destroy,Object.defineProperty(b,"enabled",{enumerable:!0,configurable:!1,get:()=>g!==null?g:(v!==o.namespaces&&(v=o.namespaces,y=o.enabled(p)),y),set:_=>{g=_}}),typeof o.init=="function"&&o.init(b),b}function a(p,m){let g=o(this.namespace+(typeof m>"u"?":":m)+p);return g.log=this.log,g}function s(p){o.save(p),o.namespaces=p,o.names=[],o.skips=[];let m=(typeof p=="string"?p:"").trim().replace(" ",",").split(",").filter(Boolean);for(let g of m)g[0]==="-"?o.skips.push(g.slice(1)):o.names.push(g)}function l(p,m){let g=0,v=0,y=-1,b=0;for(;g<p.length;)if(v<m.length&&(m[v]===p[g]||m[v]==="*"))m[v]==="*"?(y=v,b=g,v++):(g++,v++);else if(y!==-1)v=y+1,b++,g=b;else return!1;for(;v<m.length&&m[v]==="*";)v++;return v===m.length}function c(){let p=[...o.names,...o.skips.map(m=>"-"+m)].join(",");return o.enable(""),p}function u(p){for(let m of o.skips)if(l(p,m))return!1;for(let m of o.names)if(l(p,m))return!0;return!1}function d(p){return p instanceof Error?p.stack||p.message:p}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}),fh=on((e,t)=>{Xt(),Jt(),Zt(),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(){if(typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs))return!0;if(typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let l;return 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&&(l=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(l[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 hi<"u"&&"env"in hi&&(l=hi.env.DEBUG),l}function a(){try{return localStorage}catch{}}t.exports=AQt()(e);var{formatters:s}=t.exports;s.j=function(l){try{return JSON.stringify(l)}catch(c){return"[UnexpectedJSONParseError]: "+c.message}}}),IQt=on((e,t)=>{Xt(),Jt(),Zt();var n=TQt(),{EventEmitter:r}=(kv(),$i($g)),i=OQt(),o=_Ne(),a=fh()("mqtt-packet:parser"),s=class Hz extends r{constructor(){super(),this.parser=this.constructor.parser}static parser(c){return this instanceof Hz?(this.settings=c||{},this._states=["_parseHeader","_parseLength","_parsePayload","_newPacket"],this._resetState(),this):new Hz().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,p={},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"));p.username=this._list.readUInt8(this._pos)&o.USERNAME_MASK,p.password=this._list.readUInt8(this._pos)&o.PASSWORD_MASK,p.will=this._list.readUInt8(this._pos)&o.WILL_FLAG_MASK;let 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(p.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),p.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(p.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(p.password){if(d=this._parseBuffer(),d===null)return this._emitError(new Error("Cannot parse password"));m.password=d}return this.settings=m,a("_parseConnect: complete"),m}_parseConnack(){a("_parseConnack");let c=this.packet;if(this._list.length<1)return null;let u=this._list.readUInt8(this._pos++);if(u>1)return this._emitError(new Error("Invalid connack flags, bits 7-1 must be set to 0"));if(c.sessionPresent=!!(u&o.SESSIONPRESENT_MASK),this.settings.protocolVersion===5)this._list.length>=2?c.reasonCode=this._list.readUInt8(this._pos++):c.reasonCode=0;else{if(this._list.length<2)return null;c.returnCode=this._list.readUInt8(this._pos++)}if(c.returnCode===-1||c.reasonCode===-1)return this._emitError(new Error("Cannot parse return code"));if(this.settings.protocolVersion===5){let d=this._parseProperties();Object.getOwnPropertyNames(d).length&&(c.properties=d)}a("_parseConnack: complete")}_parsePublish(){a("_parsePublish");let c=this.packet;if(c.topic=this._parseString(),c.topic===null)return this._emitError(new Error("Cannot parse topic"));if(!(c.qos>0&&!this._parseMessageId())){if(this.settings.protocolVersion===5){let u=this._parseProperties();Object.getOwnPropertyNames(u).length&&(c.properties=u)}c.payload=this._list.slice(this._pos,c.length),a("_parsePublish: payload from buffer list: %o",c.payload)}}_parseSubscribe(){a("_parseSubscribe");let c=this.packet,u,d,f,p,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,p=d>>o.SUBSCRIBE_OPTIONS_RH_SHIFT&o.SUBSCRIBE_OPTIONS_RH_MASK,p>2)return this._emitError(new Error("Invalid retain handling, must be <= 2"));v={topic:u,qos:f},this.settings.protocolVersion===5?(v.nl=g,v.rap=m,v.rh=p):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,p=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++),p+=f*(g&o.VARBYTEINT_MASK),f*=128,(g&o.VARBYTEINT_FIN_MASK)===0){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:p}:m=p:m=!1,a("_parseVarByteNum: result: %o",m),m}_parseByte(){let c;return this._pos<this._list.length&&(c=this._list.readUInt8(this._pos),this._pos++),a("_parseByte: result: %o",c),c}_parseByType(c){switch(a("_parseByType: type: %s",c),c){case"byte":return this._parseByte()!==0;case"int8":return this._parseByte();case"int16":return this._parseNum();case"int32":return this._parse4ByteNum();case"var":return this._parseVarByteNum();case"string":return this._parseString();case"pair":return this._parseStringPair();case"binary":return this._parseBuffer()}}_parseProperties(){a("_parseProperties");let c=this._parseVarByteNum(),u=this._pos+c,d={};for(;this._pos<u;){let f=this._parseByte();if(!f)return this._emitError(new Error("Cannot parse property code type")),!1;let p=o.propertiesCodes[f];if(!p)return this._emitError(new Error("Unknown property")),!1;if(p==="userProperties"){d[p]||(d[p]=Object.create(null));let m=this._parseByType(o.propertiesTypes[p]);if(d[p][m.name])if(Array.isArray(d[p][m.name]))d[p][m.name].push(m.value);else{let g=d[p][m.name];d[p][m.name]=[g],d[p][m.name].push(m.value)}else d[p][m.name]=m.value;continue}d[p]?Array.isArray(d[p])?d[p].push(this._parseByType(o.propertiesTypes[p])):(d[p]=[d[p]],d[p].push(this._parseByType(o.propertiesTypes[p]))):d[p]=this._parseByType(o.propertiesTypes[p])}return d}_newPacket(){return a("_newPacket"),this.packet&&(this._list.consume(this.packet.length),a("_newPacket: parser emit packet: packet.cmd: %s, packet.payload: %s, packet.length: %d",this.packet.cmd,this.packet.payload,this.packet.length),this.emit("packet",this.packet)),a("_newPacket: new packet"),this.packet=new i,this._pos=0,!0}_emitError(c){a("_emitError",c),this.error=c,this.emit("error",c)}};t.exports=s}),NQt=on((e,t)=>{Xt(),Jt(),Zt();var{Buffer:n}=(Ka(),$i(Ya)),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,p=n.allocUnsafe(4);do d=u%128|0,u=u/128|0,u>0&&(d=d|128),p.writeUInt8(d,f++);while(u>0&&f<4);return u>0&&(f=0),o?p.subarray(0,f):p.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}}),MQt=on((e,t)=>{Xt(),Jt(),Zt(),typeof hi>"u"||!hi.version||hi.version.indexOf("v0.")===0||hi.version.indexOf("v1.")===0&&hi.version.indexOf("v1.8.")!==0?t.exports={nextTick:n}:t.exports=hi;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 hi.nextTick(r);case 2:return hi.nextTick(function(){r.call(null,i)});case 3:return hi.nextTick(function(){r.call(null,i,o)});case 4:return hi.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 hi.nextTick(function(){r.apply(null,l)})}}}),SNe=on((e,t)=>{Xt(),Jt(),Zt();var n=_Ne(),{Buffer:r}=(Ka(),$i(Ya)),i=r.allocUnsafe(0),o=r.from([0]),a=NQt(),s=MQt().nextTick,l=fh()("mqtt-packet:writeToStream"),c=a.cache,u=a.generateNumber,d=a.generateCache,f=a.genBufVariableByteInt,p=a.generate4ByteBuffer,m=P,g=!0;function v(ee,K,se){switch(l("generate called"),K.cork&&(K.cork(),s(y,K)),g&&(g=!1,d()),l("generate: packet.cmd: %s",ee.cmd),ee.cmd){case"connect":return b(ee,K);case"connack":return _(ee,K,se);case"publish":return S(ee,K,se);case"puback":case"pubrec":case"pubrel":case"pubcomp":return x(ee,K,se);case"subscribe":return E(ee,K,se);case"suback":return C(ee,K,se);case"unsubscribe":return w(ee,K,se);case"unsuback":return O(ee,K,se);case"pingreq":case"pingresp":return T(ee,K);case"disconnect":return A(ee,K,se);case"auth":return I(ee,K,se);default:return K.destroy(new Error("Unknown command")),!1}}Object.defineProperty(v,"cacheNumbers",{get(){return m===P},set(ee){ee?((!c||Object.keys(c).length===0)&&(g=!0),m=P):(g=!1,m=B)}});function y(ee){ee.uncork()}function b(ee,K,se){let le=ee||{},oe=le.protocolId||"MQTT",ne=le.protocolVersion||4,he=le.will,me=le.clean,ce=le.keepalive||0,re=le.clientId||"",ve=le.username,be=le.password,xe=le.properties;me===void 0&&(me=!0);let we=0;if(typeof oe!="string"&&!r.isBuffer(oe))return K.destroy(new Error("Invalid protocolId")),!1;if(we+=oe.length+2,ne!==3&&ne!==4&&ne!==5)return K.destroy(new Error("Invalid protocol version")),!1;if(we+=1,(typeof re=="string"||r.isBuffer(re))&&(re||ne>=4)&&(re||me))we+=r.byteLength(re)+2;else{if(ne<4)return K.destroy(new Error("clientId must be supplied before 3.1.1")),!1;if(me*1===0)return K.destroy(new Error("clientId must be given if cleanSession set to 0")),!1}if(typeof ce!="number"||ce<0||ce>65535||ce%1!==0)return K.destroy(new Error("Invalid keepalive")),!1;we+=2,we+=1;let de,Ee;if(ne===5){if(de=W(K,xe),!de)return!1;we+=de.length}if(he){if(typeof he!="object")return K.destroy(new Error("Invalid will")),!1;if(!he.topic||typeof he.topic!="string")return K.destroy(new Error("Invalid will topic")),!1;if(we+=r.byteLength(he.topic)+2,we+=2,he.payload)if(he.payload.length>=0)typeof he.payload=="string"?we+=r.byteLength(he.payload):we+=he.payload.length;else return K.destroy(new Error("Invalid will payload")),!1;if(Ee={},ne===5){if(Ee=W(K,he.properties),!Ee)return!1;we+=Ee.length}}let Ne=!1;if(ve!=null)if(ue(ve))Ne=!0,we+=r.byteLength(ve)+2;else return K.destroy(new Error("Invalid username")),!1;if(be!=null){if(!Ne)return K.destroy(new Error("Username is required to use password")),!1;if(ue(be))we+=Q(be)+2;else return K.destroy(new Error("Invalid password")),!1}K.write(n.CONNECT_HEADER),D(K,we),L(K,oe),le.bridgeMode&&(ne+=128),K.write(ne===131?n.VERSION131:ne===132?n.VERSION132:ne===4?n.VERSION4:ne===5?n.VERSION5:n.VERSION3);let Te=0;return Te|=ve!=null?n.USERNAME_MASK:0,Te|=be!=null?n.PASSWORD_MASK:0,Te|=he&&he.retain?n.WILL_RETAIN_MASK:0,Te|=he&&he.qos?he.qos<<n.WILL_QOS_SHIFT:0,Te|=he?n.WILL_FLAG_MASK:0,Te|=me?n.CLEAN_SESSION_MASK:0,K.write(r.from([Te])),m(K,ce),ne===5&&de.write(),L(K,re),he&&(ne===5&&Ee.write(),M(K,he.topic),L(K,he.payload)),ve!=null&&L(K,ve),be!=null&&L(K,be),!0}function _(ee,K,se){let le=se?se.protocolVersion:4,oe=ee||{},ne=le===5?oe.reasonCode:oe.returnCode,he=oe.properties,me=2;if(typeof ne!="number")return K.destroy(new Error("Invalid return code")),!1;let ce=null;if(le===5){if(ce=W(K,he),!ce)return!1;me+=ce.length}return K.write(n.CONNACK_HEADER),D(K,me),K.write(oe.sessionPresent?n.SESSIONPRESENT_HEADER:o),K.write(r.from([ne])),ce==null||ce.write(),!0}function S(ee,K,se){l("publish: packet: %o",ee);let le=se?se.protocolVersion:4,oe=ee||{},ne=oe.qos||0,he=oe.retain?n.RETAIN_MASK:0,me=oe.topic,ce=oe.payload||i,re=oe.messageId,ve=oe.properties,be=0;if(typeof me=="string")be+=r.byteLength(me)+2;else if(r.isBuffer(me))be+=me.length+2;else return K.destroy(new Error("Invalid topic")),!1;if(r.isBuffer(ce)?be+=ce.length:be+=r.byteLength(ce),ne&&typeof re!="number")return K.destroy(new Error("Invalid messageId")),!1;ne&&(be+=2);let xe=null;if(le===5){if(xe=W(K,ve),!xe)return!1;be+=xe.length}return K.write(n.PUBLISH_HEADER[ne][oe.dup?1:0][he?1:0]),D(K,be),m(K,Q(me)),K.write(me),ne>0&&m(K,re),xe==null||xe.write(),l("publish: payload: %o",ce),K.write(ce)}function x(ee,K,se){let le=se?se.protocolVersion:4,oe=ee||{},ne=oe.cmd||"puback",he=oe.messageId,me=oe.dup&&ne==="pubrel"?n.DUP_MASK:0,ce=0,re=oe.reasonCode,ve=oe.properties,be=le===5?3:2;if(ne==="pubrel"&&(ce=1),typeof he!="number")return K.destroy(new Error("Invalid messageId")),!1;let xe=null;if(le===5&&typeof ve=="object"){if(xe=j(K,ve,se,be),!xe)return!1;be+=xe.length}return K.write(n.ACKS[ne][ce][me][0]),be===3&&(be+=re!==0?1:-1),D(K,be),m(K,he),le===5&&be!==2&&K.write(r.from([re])),xe!==null?xe.write():be===4&&K.write(r.from([0])),!0}function E(ee,K,se){l("subscribe: packet: ");let le=se?se.protocolVersion:4,oe=ee||{},ne=oe.dup?n.DUP_MASK:0,he=oe.messageId,me=oe.subscriptions,ce=oe.properties,re=0;if(typeof he!="number")return K.destroy(new Error("Invalid messageId")),!1;re+=2;let ve=null;if(le===5){if(ve=W(K,ce),!ve)return!1;re+=ve.length}if(typeof me=="object"&&me.length)for(let xe=0;xe<me.length;xe+=1){let we=me[xe].topic,de=me[xe].qos;if(typeof we!="string")return K.destroy(new Error("Invalid subscriptions - invalid topic")),!1;if(typeof de!="number")return K.destroy(new Error("Invalid subscriptions - invalid qos")),!1;if(le===5){if(typeof(me[xe].nl||!1)!="boolean")return K.destroy(new Error("Invalid subscriptions - invalid No Local")),!1;if(typeof(me[xe].rap||!1)!="boolean")return K.destroy(new Error("Invalid subscriptions - invalid Retain as Published")),!1;let Ee=me[xe].rh||0;if(typeof Ee!="number"||Ee>2)return K.destroy(new Error("Invalid subscriptions - invalid Retain Handling")),!1}re+=r.byteLength(we)+2+1}else return K.destroy(new Error("Invalid subscriptions")),!1;l("subscribe: writing to stream: %o",n.SUBSCRIBE_HEADER),K.write(n.SUBSCRIBE_HEADER[1][ne?1:0][0]),D(K,re),m(K,he),ve!==null&&ve.write();let be=!0;for(let xe of me){let we=xe.topic,de=xe.qos,Ee=+xe.nl,Ne=+xe.rap,Te=xe.rh,Ve;M(K,we),Ve=n.SUBSCRIBE_OPTIONS_QOS[de],le===5&&(Ve|=Ee?n.SUBSCRIBE_OPTIONS_NL:0,Ve|=Ne?n.SUBSCRIBE_OPTIONS_RAP:0,Ve|=Te?n.SUBSCRIBE_OPTIONS_RH[Te]:0),be=K.write(r.from([Ve]))}return be}function C(ee,K,se){let le=se?se.protocolVersion:4,oe=ee||{},ne=oe.messageId,he=oe.granted,me=oe.properties,ce=0;if(typeof ne!="number")return K.destroy(new Error("Invalid messageId")),!1;if(ce+=2,typeof he=="object"&&he.length)for(let ve=0;ve<he.length;ve+=1){if(typeof he[ve]!="number")return K.destroy(new Error("Invalid qos vector")),!1;ce+=1}else return K.destroy(new Error("Invalid qos vector")),!1;let re=null;if(le===5){if(re=j(K,me,se,ce),!re)return!1;ce+=re.length}return K.write(n.SUBACK_HEADER),D(K,ce),m(K,ne),re!==null&&re.write(),K.write(r.from(he))}function w(ee,K,se){let le=se?se.protocolVersion:4,oe=ee||{},ne=oe.messageId,he=oe.dup?n.DUP_MASK:0,me=oe.unsubscriptions,ce=oe.properties,re=0;if(typeof ne!="number")return K.destroy(new Error("Invalid messageId")),!1;if(re+=2,typeof me=="object"&&me.length)for(let xe=0;xe<me.length;xe+=1){if(typeof me[xe]!="string")return K.destroy(new Error("Invalid unsubscriptions")),!1;re+=r.byteLength(me[xe])+2}else return K.destroy(new Error("Invalid unsubscriptions")),!1;let ve=null;if(le===5){if(ve=W(K,ce),!ve)return!1;re+=ve.length}K.write(n.UNSUBSCRIBE_HEADER[1][he?1:0][0]),D(K,re),m(K,ne),ve!==null&&ve.write();let be=!0;for(let xe=0;xe<me.length;xe++)be=M(K,me[xe]);return be}function O(ee,K,se){let le=se?se.protocolVersion:4,oe=ee||{},ne=oe.messageId,he=oe.dup?n.DUP_MASK:0,me=oe.granted,ce=oe.properties,re=oe.cmd,ve=0,be=2;if(typeof ne!="number")return K.destroy(new Error("Invalid messageId")),!1;if(le===5)if(typeof me=="object"&&me.length)for(let we=0;we<me.length;we+=1){if(typeof me[we]!="number")return K.destroy(new Error("Invalid qos vector")),!1;be+=1}else return K.destroy(new Error("Invalid qos vector")),!1;let xe=null;if(le===5){if(xe=j(K,ce,se,be),!xe)return!1;be+=xe.length}return K.write(n.ACKS[re][ve][he][0]),D(K,be),m(K,ne),xe!==null&&xe.write(),le===5&&K.write(r.from(me)),!0}function T(ee,K,se){return K.write(n.EMPTY[ee.cmd])}function A(ee,K,se){let le=se?se.protocolVersion:4,oe=ee||{},ne=oe.reasonCode,he=oe.properties,me=le===5?1:0,ce=null;if(le===5){if(ce=j(K,he,se,me),!ce)return!1;me+=ce.length}return K.write(r.from([n.codes.disconnect<<4])),D(K,me),le===5&&K.write(r.from([ne])),ce!==null&&ce.write(),!0}function I(ee,K,se){let le=se?se.protocolVersion:4,oe=ee||{},ne=oe.reasonCode,he=oe.properties,me=le===5?1:0;le!==5&&K.destroy(new Error("Invalid mqtt version for auth packet"));let ce=j(K,he,se,me);return ce?(me+=ce.length,K.write(r.from([n.codes.auth<<4])),D(K,me),K.write(r.from([ne])),ce!==null&&ce.write(),!0):!1}var N={};function D(ee,K){if(K>n.VARBYTEINT_MAX)return ee.destroy(new Error(`Invalid variable byte integer: ${K}`)),!1;let se=N[K];return se||(se=f(K),K<16384&&(N[K]=se)),l("writeVarByteInt: writing to stream: %o",se),ee.write(se)}function M(ee,K){let se=r.byteLength(K);return m(ee,se),l("writeString: %s",K),ee.write(K,"utf8")}function k(ee,K,se){M(ee,K),M(ee,se)}function P(ee,K){return l("writeNumberCached: number: %d",K),l("writeNumberCached: %o",c[K]),ee.write(c[K])}function B(ee,K){let se=u(K);return l("writeNumberGenerated: %o",se),ee.write(se)}function G(ee,K){let se=p(K);return l("write4ByteNumber: %o",se),ee.write(se)}function L(ee,K){typeof K=="string"?M(ee,K):K?(m(ee,K.length),ee.write(K)):m(ee,0)}function W(ee,K){if(typeof K!="object"||K.length!=null)return{length:1,write(){X(ee,{},0)}};let se=0;function le(oe,ne){let he=n.propertiesTypes[oe],me=0;switch(he){case"byte":{if(typeof ne!="boolean")return ee.destroy(new Error(`Invalid ${oe}: ${ne}`)),!1;me+=2;break}case"int8":{if(typeof ne!="number"||ne<0||ne>255)return ee.destroy(new Error(`Invalid ${oe}: ${ne}`)),!1;me+=2;break}case"binary":{if(ne&&ne===null)return ee.destroy(new Error(`Invalid ${oe}: ${ne}`)),!1;me+=1+r.byteLength(ne)+2;break}case"int16":{if(typeof ne!="number"||ne<0||ne>65535)return ee.destroy(new Error(`Invalid ${oe}: ${ne}`)),!1;me+=3;break}case"int32":{if(typeof ne!="number"||ne<0||ne>4294967295)return ee.destroy(new Error(`Invalid ${oe}: ${ne}`)),!1;me+=5;break}case"var":{if(typeof ne!="number"||ne<0||ne>268435455)return ee.destroy(new Error(`Invalid ${oe}: ${ne}`)),!1;me+=1+r.byteLength(f(ne));break}case"string":{if(typeof ne!="string")return ee.destroy(new Error(`Invalid ${oe}: ${ne}`)),!1;me+=3+r.byteLength(ne.toString());break}case"pair":{if(typeof ne!="object")return ee.destroy(new Error(`Invalid ${oe}: ${ne}`)),!1;me+=Object.getOwnPropertyNames(ne).reduce((ce,re)=>{let ve=ne[re];return Array.isArray(ve)?ce+=ve.reduce((be,xe)=>(be+=3+r.byteLength(re.toString())+2+r.byteLength(xe.toString()),be),0):ce+=3+r.byteLength(re.toString())+2+r.byteLength(ne[re].toString()),ce},0);break}default:return ee.destroy(new Error(`Invalid property ${oe}: ${ne}`)),!1}return me}if(K)for(let oe in K){let ne=0,he=0,me=K[oe];if(me!==void 0){if(Array.isArray(me))for(let ce=0;ce<me.length;ce++){if(he=le(oe,me[ce]),!he)return!1;ne+=he}else{if(he=le(oe,me),!he)return!1;ne=he}if(!ne)return!1;se+=ne}}return{length:r.byteLength(f(se))+se,write(){X(ee,K,se)}}}function j(ee,K,se,le){let oe=["reasonString","userProperties"],ne=se&&se.properties&&se.properties.maximumPacketSize?se.properties.maximumPacketSize:0,he=W(ee,K);if(ne)for(;le+he.length>ne;){let me=oe.shift();if(me&&K[me])delete K[me],he=W(ee,K);else return!1}return he}function H(ee,K,se){switch(n.propertiesTypes[K]){case"byte":{ee.write(r.from([n.properties[K]])),ee.write(r.from([+se]));break}case"int8":{ee.write(r.from([n.properties[K]])),ee.write(r.from([se]));break}case"binary":{ee.write(r.from([n.properties[K]])),L(ee,se);break}case"int16":{ee.write(r.from([n.properties[K]])),m(ee,se);break}case"int32":{ee.write(r.from([n.properties[K]])),G(ee,se);break}case"var":{ee.write(r.from([n.properties[K]])),D(ee,se);break}case"string":{ee.write(r.from([n.properties[K]])),M(ee,se);break}case"pair":{Object.getOwnPropertyNames(se).forEach(le=>{let oe=se[le];Array.isArray(oe)?oe.forEach(ne=>{ee.write(r.from([n.properties[K]])),k(ee,le.toString(),ne.toString())}):(ee.write(r.from([n.properties[K]])),k(ee,le.toString(),oe.toString()))});break}default:return ee.destroy(new Error(`Invalid property ${K} value: ${se}`)),!1}}function X(ee,K,se){D(ee,se);for(let le in K)if(Object.prototype.hasOwnProperty.call(K,le)&&K[le]!=null){let oe=K[le];if(Array.isArray(oe))for(let ne=0;ne<oe.length;ne++)H(ee,le,oe[ne]);else H(ee,le,oe)}}function Q(ee){return ee?ee instanceof r?ee.length:r.byteLength(ee):0}function ue(ee){return typeof ee=="string"||ee instanceof r}t.exports=v}),kQt=on((e,t)=>{Xt(),Jt(),Zt();var n=SNe(),{EventEmitter:r}=(kv(),$i($g)),{Buffer:i}=(Ka(),$i(Ya));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}),PQt=on(e=>{Xt(),Jt(),Zt(),e.parser=IQt().parser,e.generate=kQt(),e.writeToStream=SNe()}),ENe=on(e=>{Xt(),Jt(),Zt(),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}),DQt=on((e,t)=>{Xt(),Jt(),Zt(),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);let a=new Map;if(a.set(Date,d=>new Date(d)),a.set(Map,(d,f)=>new Map(l(Array.from(d),f))),a.set(Set,(d,f)=>new Set(l(Array.from(d),f))),o.constructorHandlers)for(let d of o.constructorHandlers)a.set(d[0],d[1]);let s=null;return o.proto?u:c;function l(d,f){let p=Object.keys(d),m=new Array(p.length);for(let g=0;g<p.length;g++){let v=p[g],y=d[v];typeof y!="object"||y===null?m[v]=y:y.constructor!==Object&&(s=a.get(y.constructor))?m[v]=s(y,f):ArrayBuffer.isView(y)?m[v]=n(y):m[v]=f(y)}return m}function c(d){if(typeof d!="object"||d===null)return d;if(Array.isArray(d))return l(d,c);if(d.constructor!==Object&&(s=a.get(d.constructor)))return s(d,c);let f={};for(let p in d){if(Object.hasOwnProperty.call(d,p)===!1)continue;let m=d[p];typeof m!="object"||m===null?f[p]=m:m.constructor!==Object&&(s=a.get(m.constructor))?f[p]=s(m,c):ArrayBuffer.isView(m)?f[p]=n(m):f[p]=c(m)}return f}function u(d){if(typeof d!="object"||d===null)return d;if(Array.isArray(d))return l(d,u);if(d.constructor!==Object&&(s=a.get(d.constructor)))return s(d,u);let f={};for(let p in d){let m=d[p];typeof m!="object"||m===null?f[p]=m:m.constructor!==Object&&(s=a.get(m.constructor))?f[p]=s(m,u):ArrayBuffer.isView(m)?f[p]=n(m):f[p]=u(m)}return f}}function i(o){let a=[],s=[],l=new Map;if(l.set(Date,p=>new Date(p)),l.set(Map,(p,m)=>new Map(u(Array.from(p),m))),l.set(Set,(p,m)=>new Set(u(Array.from(p),m))),o.constructorHandlers)for(let p of o.constructorHandlers)l.set(p[0],p[1]);let c=null;return o.proto?f:d;function u(p,m){let g=Object.keys(p),v=new Array(g.length);for(let y=0;y<g.length;y++){let b=g[y],_=p[b];if(typeof _!="object"||_===null)v[b]=_;else if(_.constructor!==Object&&(c=l.get(_.constructor)))v[b]=c(_,m);else if(ArrayBuffer.isView(_))v[b]=n(_);else{let S=a.indexOf(_);S!==-1?v[b]=s[S]:v[b]=m(_)}}return v}function d(p){if(typeof p!="object"||p===null)return p;if(Array.isArray(p))return u(p,d);if(p.constructor!==Object&&(c=l.get(p.constructor)))return c(p,d);let m={};a.push(p),s.push(m);for(let g in p){if(Object.hasOwnProperty.call(p,g)===!1)continue;let v=p[g];if(typeof v!="object"||v===null)m[g]=v;else if(v.constructor!==Object&&(c=l.get(v.constructor)))m[g]=c(v,d);else if(ArrayBuffer.isView(v))m[g]=n(v);else{let y=a.indexOf(v);y!==-1?m[g]=s[y]:m[g]=d(v)}}return a.pop(),s.pop(),m}function f(p){if(typeof p!="object"||p===null)return p;if(Array.isArray(p))return u(p,f);if(p.constructor!==Object&&(c=l.get(p.constructor)))return c(p,f);let m={};a.push(p),s.push(m);for(let g in p){let v=p[g];if(typeof v!="object"||v===null)m[g]=v;else if(v.constructor!==Object&&(c=l.get(v.constructor)))m[g]=c(v,f);else if(ArrayBuffer.isView(v))m[g]=n(v);else{let y=a.indexOf(v);y!==-1?m[g]=s[y]:m[g]=f(v)}}return a.pop(),s.pop(),m}}}),LQt=on((e,t)=>{Xt(),Jt(),Zt(),t.exports=DQt()()}),$Qt=on(e=>{Xt(),Jt(),Zt(),Object.defineProperty(e,"__esModule",{value:!0}),e.validateTopic=t,e.validateTopics=n;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}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}}),CNe=on(e=>{Xt(),Jt(),Zt(),Object.defineProperty(e,"__esModule",{value:!0});var t=Dv(),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}),FQt=on(e=>{Xt(),Jt(),Zt(),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,p=>{if(p)return o&&o(p);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}),BQt=on((e,t)=>{t.exports={version:"5.13.1"}}),nE=on(e=>{Xt(),Jt(),Zt(),Object.defineProperty(e,"__esModule",{value:!0}),e.MQTTJS_VERSION=e.nextTick=e.ErrorWithSubackPacket=e.ErrorWithReasonCode=void 0,e.applyMixin=r;var t=class xNe extends Error{constructor(o,a){super(o),this.code=a,Object.setPrototypeOf(this,xNe.prototype),Object.getPrototypeOf(this).name="ErrorWithReasonCode"}};e.ErrorWithReasonCode=t;var n=class wNe extends Error{constructor(o,a){super(o),this.packet=a,Object.setPrototypeOf(this,wNe.prototype),Object.getPrototypeOf(this).name="ErrorWithSubackPacket"}};e.ErrorWithSubackPacket=n;function r(i,o,a=!1){var s;let l=[o];for(;;){let c=l[0],u=Object.getPrototypeOf(c);if(u!=null&&u.prototype)l.unshift(u);else break}for(let c of l)for(let u of Object.getOwnPropertyNames(c.prototype))(a||u!=="constructor")&&Object.defineProperty(i.prototype,u,(s=Object.getOwnPropertyDescriptor(c.prototype,u))!==null&&s!==void 0?s:Object.create(null))}e.nextTick=typeof(hi==null?void 0:hi.nextTick)=="function"?hi.nextTick:i=>{setTimeout(i,0)},e.MQTTJS_VERSION=BQt().version}),U3=on(e=>{Xt(),Jt(),Zt(),Object.defineProperty(e,"__esModule",{value:!0}),e.ReasonCodes=void 0;var t=nE();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 p=r.messageIdToTopic[o];p&&p.forEach(m=>{delete r._resubscribeTopics[m]})}}delete r.messageIdToTopic[o],r._invokeStoreProcessingQueue(),l(c,i);break}case"unsuback":{delete r.outgoing[o],r.messageIdProvider.deallocate(o),r._invokeStoreProcessingQueue(),l(null,i);break}default:r.emit("error",new Error("unrecognized packet type"))}r.disconnecting&&Object.keys(r.outgoing).length===0&&r.emit("outgoingEmpty")};e.default=n}),HQt=on(e=>{Xt(),Jt(),Zt(),Object.defineProperty(e,"__esModule",{value:!0});var t=nE(),n=U3(),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}),jQt=on(e=>{var p,m,g,v,y,b,_,S,x,E,C,w,O,T,A,I,N,D,M,k,P,B,G,L,W,j,H,X,Q,jz,ee,K,se,le,TNe,ne,he,me,Qh,Xh,Uz,KI,QI,io,zz,$C,Zh,Vz,Ve;Xt(),Jt(),Zt(),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 hi=="object"&&hi?hi:{},i=(q,U,Y,ae)=>{typeof r.emitWarning=="function"?r.emitWarning(q,U,Y,ae):console.error(`[${Y}] ${U}: ${q}`)},o=globalThis.AbortController,a=globalThis.AbortSignal;if(typeof o>"u"){a=class{constructor(){ni(this,"onabort");ni(this,"_onabort",[]);ni(this,"reason");ni(this,"aborted",!1)}addEventListener(Y,ae){this._onabort.push(ae)}},o=class{constructor(){ni(this,"signal",new a);U()}abort(Y){var ae,ye;if(!this.signal.aborted){this.signal.reason=Y,this.signal.aborted=!0;for(let fe of this.signal._onabort)fe(Y);(ye=(ae=this.signal).onabort)==null||ye.call(ae,Y)}}};let q=((p=r.env)==null?void 0:p.LRU_CACHE_IGNORE_AC_WARNING)!=="1",U=()=>{q&&(q=!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",U))}}var s=q=>!n.has(q),l=q=>q&&q===Math.floor(q)&&q>0&&isFinite(q),c=q=>l(q)?q<=Math.pow(2,8)?Uint8Array:q<=Math.pow(2,16)?Uint16Array:q<=Math.pow(2,32)?Uint32Array:q<=Number.MAX_SAFE_INTEGER?u:null:null,u=class extends Array{constructor(q){super(q),this.fill(0)}},d=(m=class{constructor(U,Y){ni(this,"heap");ni(this,"length");if(!je(m,g))throw new TypeError("instantiate Stack using Stack.create(n)");this.heap=new Y(U),this.length=0}static create(U){let Y=c(U);if(!Y)return[];pn(m,g,!0);let ae=new m(U,Y);return pn(m,g,!1),ae}push(U){this.heap[this.length++]=U}pop(){return this.heap[--this.length]}},g=new WeakMap,$n(m,g,!1),m),f=(Ve=class{constructor(U){$n(this,Q);$n(this,b);$n(this,_);$n(this,S);$n(this,x);$n(this,E);$n(this,C);ni(this,"ttl");ni(this,"ttlResolution");ni(this,"ttlAutopurge");ni(this,"updateAgeOnGet");ni(this,"updateAgeOnHas");ni(this,"allowStale");ni(this,"noDisposeOnSet");ni(this,"noUpdateTTL");ni(this,"maxEntrySize");ni(this,"sizeCalculation");ni(this,"noDeleteOnFetchRejection");ni(this,"noDeleteOnStaleGet");ni(this,"allowStaleOnFetchAbort");ni(this,"allowStaleOnFetchRejection");ni(this,"ignoreFetchAbort");$n(this,w);$n(this,O);$n(this,T);$n(this,A);$n(this,I);$n(this,N);$n(this,D);$n(this,M);$n(this,k);$n(this,P);$n(this,B);$n(this,G);$n(this,L);$n(this,W);$n(this,j);$n(this,H);$n(this,X);$n(this,ee,()=>{});$n(this,K,()=>{});$n(this,se,()=>{});$n(this,le,()=>!1);$n(this,ne,U=>{});$n(this,he,(U,Y,ae)=>{});$n(this,me,(U,Y,ae,ye)=>{if(ae||ye)throw new TypeError("cannot set size without setting maxSize or maxEntrySize on cache");return 0});ni(this,v,"LRUCache");let{max:Y=0,ttl:ae,ttlResolution:ye=1,ttlAutopurge:fe,updateAgeOnGet:Ae,updateAgeOnHas:We,allowStale:ie,dispose:Be,disposeAfter:Fe,noDisposeOnSet:Pe,noUpdateTTL:Ke,maxSize:tt=0,maxEntrySize:Ge=0,sizeCalculation:Nt,fetchMethod:lt,memoMethod:st,noDeleteOnFetchRejection:It,noDeleteOnStaleGet:ct,allowStaleOnFetchRejection:Pt,allowStaleOnFetchAbort:Rt,ignoreFetchAbort:Tt}=U;if(Y!==0&&!l(Y))throw new TypeError("max option must be a nonnegative integer");let Me=Y?c(Y):Array;if(!Me)throw new Error("invalid max value: "+Y);if(pn(this,b,Y),pn(this,_,tt),this.maxEntrySize=Ge||je(this,_),this.sizeCalculation=Nt,this.sizeCalculation){if(!je(this,_)&&!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(st!==void 0&&typeof st!="function")throw new TypeError("memoMethod must be a function if defined");if(pn(this,C,st),lt!==void 0&&typeof lt!="function")throw new TypeError("fetchMethod must be a function if specified");if(pn(this,E,lt),pn(this,H,!!lt),pn(this,T,new Map),pn(this,A,new Array(Y).fill(void 0)),pn(this,I,new Array(Y).fill(void 0)),pn(this,N,new Me(Y)),pn(this,D,new Me(Y)),pn(this,M,0),pn(this,k,0),pn(this,P,d.create(Y)),pn(this,w,0),pn(this,O,0),typeof Be=="function"&&pn(this,S,Be),typeof Fe=="function"?(pn(this,x,Fe),pn(this,B,[])):(pn(this,x,void 0),pn(this,B,void 0)),pn(this,j,!!je(this,S)),pn(this,X,!!je(this,x)),this.noDisposeOnSet=!!Pe,this.noUpdateTTL=!!Ke,this.noDeleteOnFetchRejection=!!It,this.allowStaleOnFetchRejection=!!Pt,this.allowStaleOnFetchAbort=!!Rt,this.ignoreFetchAbort=!!Tt,this.maxEntrySize!==0){if(je(this,_)!==0&&!l(je(this,_)))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");Rn(this,Q,TNe).call(this)}if(this.allowStale=!!ie,this.noDeleteOnStaleGet=!!ct,this.updateAgeOnGet=!!Ae,this.updateAgeOnHas=!!We,this.ttlResolution=l(ye)||ye===0?ye:1,this.ttlAutopurge=!!fe,this.ttl=ae||0,this.ttl){if(!l(this.ttl))throw new TypeError("ttl must be a positive integer if specified");Rn(this,Q,jz).call(this)}if(je(this,b)===0&&this.ttl===0&&je(this,_)===0)throw new TypeError("At least one of max, maxSize, or ttl is required");if(!this.ttlAutopurge&&!je(this,b)&&!je(this,_)){let Ue="LRU_CACHE_UNBOUNDED";s(Ue)&&(n.add(Ue),i("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.","UnboundedCacheWarning",Ue,Ve))}}static unsafeExposeInternals(U){return{starts:je(U,L),ttls:je(U,W),sizes:je(U,G),keyMap:je(U,T),keyList:je(U,A),valList:je(U,I),next:je(U,N),prev:je(U,D),get head(){return je(U,M)},get tail(){return je(U,k)},free:je(U,P),isBackgroundFetch:Y=>{var ae;return Rn(ae=U,Q,io).call(ae,Y)},backgroundFetch:(Y,ae,ye,fe)=>{var Ae;return Rn(Ae=U,Q,QI).call(Ae,Y,ae,ye,fe)},moveToTail:Y=>{var ae;return Rn(ae=U,Q,$C).call(ae,Y)},indexes:Y=>{var ae;return Rn(ae=U,Q,Qh).call(ae,Y)},rindexes:Y=>{var ae;return Rn(ae=U,Q,Xh).call(ae,Y)},isStale:Y=>{var ae;return je(ae=U,le).call(ae,Y)}}}get max(){return je(this,b)}get maxSize(){return je(this,_)}get calculatedSize(){return je(this,O)}get size(){return je(this,w)}get fetchMethod(){return je(this,E)}get memoMethod(){return je(this,C)}get dispose(){return je(this,S)}get disposeAfter(){return je(this,x)}getRemainingTTL(U){return je(this,T).has(U)?1/0:0}*entries(){for(let U of Rn(this,Q,Qh).call(this))je(this,I)[U]!==void 0&&je(this,A)[U]!==void 0&&!Rn(this,Q,io).call(this,je(this,I)[U])&&(yield[je(this,A)[U],je(this,I)[U]])}*rentries(){for(let U of Rn(this,Q,Xh).call(this))je(this,I)[U]!==void 0&&je(this,A)[U]!==void 0&&!Rn(this,Q,io).call(this,je(this,I)[U])&&(yield[je(this,A)[U],je(this,I)[U]])}*keys(){for(let U of Rn(this,Q,Qh).call(this)){let Y=je(this,A)[U];Y!==void 0&&!Rn(this,Q,io).call(this,je(this,I)[U])&&(yield Y)}}*rkeys(){for(let U of Rn(this,Q,Xh).call(this)){let Y=je(this,A)[U];Y!==void 0&&!Rn(this,Q,io).call(this,je(this,I)[U])&&(yield Y)}}*values(){for(let U of Rn(this,Q,Qh).call(this))je(this,I)[U]!==void 0&&!Rn(this,Q,io).call(this,je(this,I)[U])&&(yield je(this,I)[U])}*rvalues(){for(let U of Rn(this,Q,Xh).call(this))je(this,I)[U]!==void 0&&!Rn(this,Q,io).call(this,je(this,I)[U])&&(yield je(this,I)[U])}[(y=Symbol.iterator,v=Symbol.toStringTag,y)](){return this.entries()}find(U,Y={}){for(let ae of Rn(this,Q,Qh).call(this)){let ye=je(this,I)[ae],fe=Rn(this,Q,io).call(this,ye)?ye.__staleWhileFetching:ye;if(fe!==void 0&&U(fe,je(this,A)[ae],this))return this.get(je(this,A)[ae],Y)}}forEach(U,Y=this){for(let ae of Rn(this,Q,Qh).call(this)){let ye=je(this,I)[ae],fe=Rn(this,Q,io).call(this,ye)?ye.__staleWhileFetching:ye;fe!==void 0&&U.call(Y,fe,je(this,A)[ae],this)}}rforEach(U,Y=this){for(let ae of Rn(this,Q,Xh).call(this)){let ye=je(this,I)[ae],fe=Rn(this,Q,io).call(this,ye)?ye.__staleWhileFetching:ye;fe!==void 0&&U.call(Y,fe,je(this,A)[ae],this)}}purgeStale(){let U=!1;for(let Y of Rn(this,Q,Xh).call(this,{allowStale:!0}))je(this,le).call(this,Y)&&(Rn(this,Q,Zh).call(this,je(this,A)[Y],"expire"),U=!0);return U}info(U){let Y=je(this,T).get(U);if(Y===void 0)return;let ae=je(this,I)[Y],ye=Rn(this,Q,io).call(this,ae)?ae.__staleWhileFetching:ae;if(ye===void 0)return;let fe={value:ye};if(je(this,W)&&je(this,L)){let Ae=je(this,W)[Y],We=je(this,L)[Y];if(Ae&&We){let ie=Ae-(t.now()-We);fe.ttl=ie,fe.start=Date.now()}}return je(this,G)&&(fe.size=je(this,G)[Y]),fe}dump(){let U=[];for(let Y of Rn(this,Q,Qh).call(this,{allowStale:!0})){let ae=je(this,A)[Y],ye=je(this,I)[Y],fe=Rn(this,Q,io).call(this,ye)?ye.__staleWhileFetching:ye;if(fe===void 0||ae===void 0)continue;let Ae={value:fe};if(je(this,W)&&je(this,L)){Ae.ttl=je(this,W)[Y];let We=t.now()-je(this,L)[Y];Ae.start=Math.floor(Date.now()-We)}je(this,G)&&(Ae.size=je(this,G)[Y]),U.unshift([ae,Ae])}return U}load(U){this.clear();for(let[Y,ae]of U){if(ae.start){let ye=Date.now()-ae.start;ae.start=t.now()-ye}this.set(Y,ae.value,ae)}}set(U,Y,ae={}){var Ke,tt,Ge,Nt,lt;if(Y===void 0)return this.delete(U),this;let{ttl:ye=this.ttl,start:fe,noDisposeOnSet:Ae=this.noDisposeOnSet,sizeCalculation:We=this.sizeCalculation,status:ie}=ae,{noUpdateTTL:Be=this.noUpdateTTL}=ae,Fe=je(this,me).call(this,U,Y,ae.size||0,We);if(this.maxEntrySize&&Fe>this.maxEntrySize)return ie&&(ie.set="miss",ie.maxEntrySizeExceeded=!0),Rn(this,Q,Zh).call(this,U,"set"),this;let Pe=je(this,w)===0?void 0:je(this,T).get(U);if(Pe===void 0)Pe=je(this,w)===0?je(this,k):je(this,P).length!==0?je(this,P).pop():je(this,w)===je(this,b)?Rn(this,Q,KI).call(this,!1):je(this,w),je(this,A)[Pe]=U,je(this,I)[Pe]=Y,je(this,T).set(U,Pe),je(this,N)[je(this,k)]=Pe,je(this,D)[Pe]=je(this,k),pn(this,k,Pe),Xg(this,w)._++,je(this,he).call(this,Pe,Fe,ie),ie&&(ie.set="add"),Be=!1;else{Rn(this,Q,$C).call(this,Pe);let st=je(this,I)[Pe];if(Y!==st){if(je(this,H)&&Rn(this,Q,io).call(this,st)){st.__abortController.abort(new Error("replaced"));let{__staleWhileFetching:It}=st;It!==void 0&&!Ae&&(je(this,j)&&((Ke=je(this,S))==null||Ke.call(this,It,U,"set")),je(this,X)&&((tt=je(this,B))==null||tt.push([It,U,"set"])))}else Ae||(je(this,j)&&((Ge=je(this,S))==null||Ge.call(this,st,U,"set")),je(this,X)&&((Nt=je(this,B))==null||Nt.push([st,U,"set"])));if(je(this,ne).call(this,Pe),je(this,he).call(this,Pe,Fe,ie),je(this,I)[Pe]=Y,ie){ie.set="replace";let It=st&&Rn(this,Q,io).call(this,st)?st.__staleWhileFetching:st;It!==void 0&&(ie.oldValue=It)}}else ie&&(ie.set="update")}if(ye!==0&&!je(this,W)&&Rn(this,Q,jz).call(this),je(this,W)&&(Be||je(this,se).call(this,Pe,ye,fe),ie&&je(this,K).call(this,ie,Pe)),!Ae&&je(this,X)&&je(this,B)){let st=je(this,B),It;for(;It=st==null?void 0:st.shift();)(lt=je(this,x))==null||lt.call(this,...It)}return this}pop(){var U;try{for(;je(this,w);){let Y=je(this,I)[je(this,M)];if(Rn(this,Q,KI).call(this,!0),Rn(this,Q,io).call(this,Y)){if(Y.__staleWhileFetching)return Y.__staleWhileFetching}else if(Y!==void 0)return Y}}finally{if(je(this,X)&&je(this,B)){let Y=je(this,B),ae;for(;ae=Y==null?void 0:Y.shift();)(U=je(this,x))==null||U.call(this,...ae)}}}has(U,Y={}){let{updateAgeOnHas:ae=this.updateAgeOnHas,status:ye}=Y,fe=je(this,T).get(U);if(fe!==void 0){let Ae=je(this,I)[fe];if(Rn(this,Q,io).call(this,Ae)&&Ae.__staleWhileFetching===void 0)return!1;if(je(this,le).call(this,fe))ye&&(ye.has="stale",je(this,K).call(this,ye,fe));else return ae&&je(this,ee).call(this,fe),ye&&(ye.has="hit",je(this,K).call(this,ye,fe)),!0}else ye&&(ye.has="miss");return!1}peek(U,Y={}){let{allowStale:ae=this.allowStale}=Y,ye=je(this,T).get(U);if(ye===void 0||!ae&&je(this,le).call(this,ye))return;let fe=je(this,I)[ye];return Rn(this,Q,io).call(this,fe)?fe.__staleWhileFetching:fe}async fetch(U,Y={}){let{allowStale:ae=this.allowStale,updateAgeOnGet:ye=this.updateAgeOnGet,noDeleteOnStaleGet:fe=this.noDeleteOnStaleGet,ttl:Ae=this.ttl,noDisposeOnSet:We=this.noDisposeOnSet,size:ie=0,sizeCalculation:Be=this.sizeCalculation,noUpdateTTL:Fe=this.noUpdateTTL,noDeleteOnFetchRejection:Pe=this.noDeleteOnFetchRejection,allowStaleOnFetchRejection:Ke=this.allowStaleOnFetchRejection,ignoreFetchAbort:tt=this.ignoreFetchAbort,allowStaleOnFetchAbort:Ge=this.allowStaleOnFetchAbort,context:Nt,forceRefresh:lt=!1,status:st,signal:It}=Y;if(!je(this,H))return st&&(st.fetch="get"),this.get(U,{allowStale:ae,updateAgeOnGet:ye,noDeleteOnStaleGet:fe,status:st});let ct={allowStale:ae,updateAgeOnGet:ye,noDeleteOnStaleGet:fe,ttl:Ae,noDisposeOnSet:We,size:ie,sizeCalculation:Be,noUpdateTTL:Fe,noDeleteOnFetchRejection:Pe,allowStaleOnFetchRejection:Ke,allowStaleOnFetchAbort:Ge,ignoreFetchAbort:tt,status:st,signal:It},Pt=je(this,T).get(U);if(Pt===void 0){st&&(st.fetch="miss");let Rt=Rn(this,Q,QI).call(this,U,Pt,ct,Nt);return Rt.__returned=Rt}else{let Rt=je(this,I)[Pt];if(Rn(this,Q,io).call(this,Rt)){let $e=ae&&Rt.__staleWhileFetching!==void 0;return st&&(st.fetch="inflight",$e&&(st.returnedStale=!0)),$e?Rt.__staleWhileFetching:Rt.__returned=Rt}let Tt=je(this,le).call(this,Pt);if(!lt&&!Tt)return st&&(st.fetch="hit"),Rn(this,Q,$C).call(this,Pt),ye&&je(this,ee).call(this,Pt),st&&je(this,K).call(this,st,Pt),Rt;let Me=Rn(this,Q,QI).call(this,U,Pt,ct,Nt),Ue=Me.__staleWhileFetching!==void 0&&ae;return st&&(st.fetch=Tt?"stale":"refresh",Ue&&Tt&&(st.returnedStale=!0)),Ue?Me.__staleWhileFetching:Me.__returned=Me}}async forceFetch(U,Y={}){let ae=await this.fetch(U,Y);if(ae===void 0)throw new Error("fetch() returned undefined");return ae}memo(U,Y={}){let ae=je(this,C);if(!ae)throw new Error("no memoMethod provided to constructor");let{context:ye,forceRefresh:fe,...Ae}=Y,We=this.get(U,Ae);if(!fe&&We!==void 0)return We;let ie=ae(U,We,{options:Ae,context:ye});return this.set(U,ie,Ae),ie}get(U,Y={}){let{allowStale:ae=this.allowStale,updateAgeOnGet:ye=this.updateAgeOnGet,noDeleteOnStaleGet:fe=this.noDeleteOnStaleGet,status:Ae}=Y,We=je(this,T).get(U);if(We!==void 0){let ie=je(this,I)[We],Be=Rn(this,Q,io).call(this,ie);return Ae&&je(this,K).call(this,Ae,We),je(this,le).call(this,We)?(Ae&&(Ae.get="stale"),Be?(Ae&&ae&&ie.__staleWhileFetching!==void 0&&(Ae.returnedStale=!0),ae?ie.__staleWhileFetching:void 0):(fe||Rn(this,Q,Zh).call(this,U,"expire"),Ae&&ae&&(Ae.returnedStale=!0),ae?ie:void 0)):(Ae&&(Ae.get="hit"),Be?ie.__staleWhileFetching:(Rn(this,Q,$C).call(this,We),ye&&je(this,ee).call(this,We),ie))}else Ae&&(Ae.get="miss")}delete(U){return Rn(this,Q,Zh).call(this,U,"delete")}clear(){return Rn(this,Q,Vz).call(this,"delete")}},b=new WeakMap,_=new WeakMap,S=new WeakMap,x=new WeakMap,E=new WeakMap,C=new WeakMap,w=new WeakMap,O=new WeakMap,T=new WeakMap,A=new WeakMap,I=new WeakMap,N=new WeakMap,D=new WeakMap,M=new WeakMap,k=new WeakMap,P=new WeakMap,B=new WeakMap,G=new WeakMap,L=new WeakMap,W=new WeakMap,j=new WeakMap,H=new WeakMap,X=new WeakMap,Q=new WeakSet,jz=function(){let U=new u(je(this,b)),Y=new u(je(this,b));pn(this,W,U),pn(this,L,Y),pn(this,se,(fe,Ae,We=t.now())=>{if(Y[fe]=Ae!==0?We:0,U[fe]=Ae,Ae!==0&&this.ttlAutopurge){let ie=setTimeout(()=>{je(this,le).call(this,fe)&&Rn(this,Q,Zh).call(this,je(this,A)[fe],"expire")},Ae+1);ie.unref&&ie.unref()}}),pn(this,ee,fe=>{Y[fe]=U[fe]!==0?t.now():0}),pn(this,K,(fe,Ae)=>{if(U[Ae]){let We=U[Ae],ie=Y[Ae];if(!We||!ie)return;fe.ttl=We,fe.start=ie,fe.now=ae||ye();let Be=fe.now-ie;fe.remainingTTL=We-Be}});let ae=0,ye=()=>{let fe=t.now();if(this.ttlResolution>0){ae=fe;let Ae=setTimeout(()=>ae=0,this.ttlResolution);Ae.unref&&Ae.unref()}return fe};this.getRemainingTTL=fe=>{let Ae=je(this,T).get(fe);if(Ae===void 0)return 0;let We=U[Ae],ie=Y[Ae];if(!We||!ie)return 1/0;let Be=(ae||ye())-ie;return We-Be},pn(this,le,fe=>{let Ae=Y[fe],We=U[fe];return!!We&&!!Ae&&(ae||ye())-Ae>We})},ee=new WeakMap,K=new WeakMap,se=new WeakMap,le=new WeakMap,TNe=function(){let U=new u(je(this,b));pn(this,O,0),pn(this,G,U),pn(this,ne,Y=>{pn(this,O,je(this,O)-U[Y]),U[Y]=0}),pn(this,me,(Y,ae,ye,fe)=>{if(Rn(this,Q,io).call(this,ae))return 0;if(!l(ye))if(fe){if(typeof fe!="function")throw new TypeError("sizeCalculation must be a function");if(ye=fe(ae,Y),!l(ye))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 ye}),pn(this,he,(Y,ae,ye)=>{if(U[Y]=ae,je(this,_)){let fe=je(this,_)-U[Y];for(;je(this,O)>fe;)Rn(this,Q,KI).call(this,!0)}pn(this,O,je(this,O)+U[Y]),ye&&(ye.entrySize=ae,ye.totalCalculatedSize=je(this,O))})},ne=new WeakMap,he=new WeakMap,me=new WeakMap,Qh=function*({allowStale:U=this.allowStale}={}){if(je(this,w))for(let Y=je(this,k);!(!Rn(this,Q,Uz).call(this,Y)||((U||!je(this,le).call(this,Y))&&(yield Y),Y===je(this,M)));)Y=je(this,D)[Y]},Xh=function*({allowStale:U=this.allowStale}={}){if(je(this,w))for(let Y=je(this,M);!(!Rn(this,Q,Uz).call(this,Y)||((U||!je(this,le).call(this,Y))&&(yield Y),Y===je(this,k)));)Y=je(this,N)[Y]},Uz=function(U){return U!==void 0&&je(this,T).get(je(this,A)[U])===U},KI=function(U){var fe,Ae;let Y=je(this,M),ae=je(this,A)[Y],ye=je(this,I)[Y];return je(this,H)&&Rn(this,Q,io).call(this,ye)?ye.__abortController.abort(new Error("evicted")):(je(this,j)||je(this,X))&&(je(this,j)&&((fe=je(this,S))==null||fe.call(this,ye,ae,"evict")),je(this,X)&&((Ae=je(this,B))==null||Ae.push([ye,ae,"evict"]))),je(this,ne).call(this,Y),U&&(je(this,A)[Y]=void 0,je(this,I)[Y]=void 0,je(this,P).push(Y)),je(this,w)===1?(pn(this,M,pn(this,k,0)),je(this,P).length=0):pn(this,M,je(this,N)[Y]),je(this,T).delete(ae),Xg(this,w)._--,Y},QI=function(U,Y,ae,ye){let fe=Y===void 0?void 0:je(this,I)[Y];if(Rn(this,Q,io).call(this,fe))return fe;let Ae=new o,{signal:We}=ae;We==null||We.addEventListener("abort",()=>Ae.abort(We.reason),{signal:Ae.signal});let ie={signal:Ae.signal,options:ae,context:ye},Be=(Nt,lt=!1)=>{let{aborted:st}=Ae.signal,It=ae.ignoreFetchAbort&&Nt!==void 0;if(ae.status&&(st&&!lt?(ae.status.fetchAborted=!0,ae.status.fetchError=Ae.signal.reason,It&&(ae.status.fetchAbortIgnored=!0)):ae.status.fetchResolved=!0),st&&!It&&!lt)return Pe(Ae.signal.reason);let ct=tt;return je(this,I)[Y]===tt&&(Nt===void 0?ct.__staleWhileFetching?je(this,I)[Y]=ct.__staleWhileFetching:Rn(this,Q,Zh).call(this,U,"fetch"):(ae.status&&(ae.status.fetchUpdated=!0),this.set(U,Nt,ie.options))),Nt},Fe=Nt=>(ae.status&&(ae.status.fetchRejected=!0,ae.status.fetchError=Nt),Pe(Nt)),Pe=Nt=>{let{aborted:lt}=Ae.signal,st=lt&&ae.allowStaleOnFetchAbort,It=st||ae.allowStaleOnFetchRejection,ct=It||ae.noDeleteOnFetchRejection,Pt=tt;if(je(this,I)[Y]===tt&&(!ct||Pt.__staleWhileFetching===void 0?Rn(this,Q,Zh).call(this,U,"fetch"):st||(je(this,I)[Y]=Pt.__staleWhileFetching)),It)return ae.status&&Pt.__staleWhileFetching!==void 0&&(ae.status.returnedStale=!0),Pt.__staleWhileFetching;if(Pt.__returned===Pt)throw Nt},Ke=(Nt,lt)=>{var It;let st=(It=je(this,E))==null?void 0:It.call(this,U,fe,ie);st&&st instanceof Promise&&st.then(ct=>Nt(ct===void 0?void 0:ct),lt),Ae.signal.addEventListener("abort",()=>{(!ae.ignoreFetchAbort||ae.allowStaleOnFetchAbort)&&(Nt(void 0),ae.allowStaleOnFetchAbort&&(Nt=ct=>Be(ct,!0)))})};ae.status&&(ae.status.fetchDispatched=!0);let tt=new Promise(Ke).then(Be,Fe),Ge=Object.assign(tt,{__abortController:Ae,__staleWhileFetching:fe,__returned:void 0});return Y===void 0?(this.set(U,Ge,{...ie.options,status:void 0}),Y=je(this,T).get(U)):je(this,I)[Y]=Ge,Ge},io=function(U){if(!je(this,H))return!1;let Y=U;return!!Y&&Y instanceof Promise&&Y.hasOwnProperty("__staleWhileFetching")&&Y.__abortController instanceof o},zz=function(U,Y){je(this,D)[Y]=U,je(this,N)[U]=Y},$C=function(U){U!==je(this,k)&&(U===je(this,M)?pn(this,M,je(this,N)[U]):Rn(this,Q,zz).call(this,je(this,D)[U],je(this,N)[U]),Rn(this,Q,zz).call(this,je(this,k),U),pn(this,k,U))},Zh=function(U,Y){var ye,fe,Ae,We;let ae=!1;if(je(this,w)!==0){let ie=je(this,T).get(U);if(ie!==void 0)if(ae=!0,je(this,w)===1)Rn(this,Q,Vz).call(this,Y);else{je(this,ne).call(this,ie);let Be=je(this,I)[ie];if(Rn(this,Q,io).call(this,Be)?Be.__abortController.abort(new Error("deleted")):(je(this,j)||je(this,X))&&(je(this,j)&&((ye=je(this,S))==null||ye.call(this,Be,U,Y)),je(this,X)&&((fe=je(this,B))==null||fe.push([Be,U,Y]))),je(this,T).delete(U),je(this,A)[ie]=void 0,je(this,I)[ie]=void 0,ie===je(this,k))pn(this,k,je(this,D)[ie]);else if(ie===je(this,M))pn(this,M,je(this,N)[ie]);else{let Fe=je(this,D)[ie];je(this,N)[Fe]=je(this,N)[ie];let Pe=je(this,N)[ie];je(this,D)[Pe]=je(this,D)[ie]}Xg(this,w)._--,je(this,P).push(ie)}}if(je(this,X)&&((Ae=je(this,B))!=null&&Ae.length)){let ie=je(this,B),Be;for(;Be=ie==null?void 0:ie.shift();)(We=je(this,x))==null||We.call(this,...Be)}return ae},Vz=function(U){var Y,ae,ye;for(let fe of Rn(this,Q,Xh).call(this,{allowStale:!0})){let Ae=je(this,I)[fe];if(Rn(this,Q,io).call(this,Ae))Ae.__abortController.abort(new Error("deleted"));else{let We=je(this,A)[fe];je(this,j)&&((Y=je(this,S))==null||Y.call(this,Ae,We,U)),je(this,X)&&((ae=je(this,B))==null||ae.push([Ae,We,U]))}}if(je(this,T).clear(),je(this,I).fill(void 0),je(this,A).fill(void 0),je(this,W)&&je(this,L)&&(je(this,W).fill(0),je(this,L).fill(0)),je(this,G)&&je(this,G).fill(0),pn(this,M,0),pn(this,k,0),je(this,P).length=0,pn(this,O,0),pn(this,w,0),je(this,X)&&je(this,B)){let fe=je(this,B),Ae;for(;Ae=fe==null?void 0:fe.shift();)(ye=je(this,x))==null||ye.call(this,...Ae)}},Ve);e.LRUCache=f}),Oh=on(e=>{Xt(),Jt(),Zt(),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}),UQt=on(e=>{Xt(),Jt(),Zt(),Object.defineProperty(e,"t",{value:!0}),e.default=void 0;var t=Oh(),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}),zQt=on(e=>{Xt(),Jt(),Zt(),Object.defineProperty(e,"t",{value:!0}),e.default=void 0;var t=Oh(),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}),VQt=on(e=>{Xt(),Jt(),Zt(),Object.defineProperty(e,"t",{value:!0}),e.default=void 0;var t=Oh(),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}),eX=on(e=>{Xt(),Jt(),Zt(),Object.defineProperty(e,"t",{value:!0}),e.default=void 0;var t=Oh(),n=class extends t.Container{},r=n;e.default=r}),Rh=on(e=>{Xt(),Jt(),Zt(),Object.defineProperty(e,"t",{value:!0}),e.throwIteratorAccessError=t;function t(){throw new RangeError("Iterator access denied!")}}),ONe=on(e=>{Xt(),Jt(),Zt(),Object.defineProperty(e,"t",{value:!0}),e.RandomIterator=void 0;var t=Oh(),n=Rh(),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}),GQt=on(e=>{Xt(),Jt(),Zt(),Object.defineProperty(e,"t",{value:!0}),e.default=void 0;var t=r(eX()),n=ONe();function r(s){return s&&s.t?s:{default:s}}var i=class RNe extends n.RandomIterator{constructor(l,c,u){super(l,u),this.container=c}copy(){return new RNe(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}),WQt=on(e=>{Xt(),Jt(),Zt(),Object.defineProperty(e,"t",{value:!0}),e.default=void 0;var t=i(eX()),n=Oh(),r=Rh();function i(l){return l&&l.t?l:{default:l}}var o=class ANe 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 ANe(this.o,this.h,this.container,this.iteratorType)}},a=class extends t.default{constructor(l=[]){super(),this.h={},this.p=this._=this.h.L=this.h.B=this.h;let c=this;l.forEach(function(u){c.pushBack(u)})}V(l){let{L:c,B:u}=l;c.B=u,u.L=c,l===this.p&&(this.p=u),l===this._&&(this._=c),this.i-=1}G(l,c){let u=c.B,d={l,L:c,B:u};c.B=d,u.L=d,c===this.h&&(this.p=d),u===this.h&&(this._=d),this.i+=1}clear(){this.i=0,this.p=this._=this.h.L=this.h.B=this.h}begin(){return new o(this.p,this.h,this)}end(){return new o(this.h,this.h,this)}rBegin(){return new o(this._,this.h,this,1)}rEnd(){return new o(this.h,this.h,this,1)}front(){return this.p.l}back(){return this._.l}getElementByPos(l){if(l<0||l>this.i-1)throw new RangeError;let c=this.p;for(;l--;)c=c.B;return c.l}eraseElementByPos(l){if(l<0||l>this.i-1)throw new RangeError;let c=this.p;for(;l--;)c=c.B;return this.V(c),this.i}eraseElementByValue(l){let c=this.p;for(;c!==this.h;)c.l===l&&this.V(c),c=c.B;return this.i}eraseElementByIterator(l){let c=l.o;return c===this.h&&(0,r.throwIteratorAccessError)(),l=l.next(),this.V(c),l}pushBack(l){return this.G(l,this._),this.i}popBack(){if(this.i===0)return;let l=this._.l;return this.V(this._),l}pushFront(l){return this.G(l,this.h),this.i}popFront(){if(this.i===0)return;let l=this.p.l;return this.V(this.p),l}setElementByPos(l,c){if(l<0||l>this.i-1)throw new RangeError;let u=this.p;for(;l--;)u=u.B;u.l=c}insert(l,c,u=1){if(l<0||l>this.i)throw new RangeError;if(u<=0)return this.i;if(l===0)for(;u--;)this.pushFront(c);else if(l===this.i)for(;u--;)this.pushBack(c);else{let d=this.p;for(let p=1;p<l;++p)d=d.B;let 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}),qQt=on(e=>{Xt(),Jt(),Zt(),Object.defineProperty(e,"t",{value:!0}),e.default=void 0;var t=r(eX()),n=ONe();function r(s){return s&&s.t?s:{default:s}}var i=class INe extends n.RandomIterator{constructor(l,c,u){super(l,u),this.container=c}copy(){return new INe(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}),YQt=on(e=>{Xt(),Jt(),Zt(),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}),NNe=on(e=>{Xt(),Jt(),Zt(),Object.defineProperty(e,"t",{value:!0}),e.default=void 0;var t=YQt(),n=Oh(),r=Rh(),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 p=this.he(d);if(p){let{parentNode:m,grandParent:g,curNode:v}=p;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,p=this.v(f.u,a);if(p===0){f.l=s;return}else if(p<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}),MNe=on(e=>{Xt(),Jt(),Zt(),Object.defineProperty(e,"t",{value:!0}),e.default=void 0;var t=Oh(),n=Rh(),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}),KQt=on(e=>{Xt(),Jt(),Zt(),Object.defineProperty(e,"t",{value:!0}),e.default=void 0;var t=i(NNe()),n=i(MNe()),r=Rh();function i(l){return l&&l.t?l:{default:l}}var o=class kNe 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 kNe(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}),QQt=on(e=>{Xt(),Jt(),Zt(),Object.defineProperty(e,"t",{value:!0}),e.default=void 0;var t=i(NNe()),n=i(MNe()),r=Rh();function i(l){return l&&l.t?l:{default:l}}var o=class PNe 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 PNe(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}),DNe=on(e=>{Xt(),Jt(),Zt(),Object.defineProperty(e,"t",{value:!0}),e.default=t;function t(n){let r=typeof n;return r==="object"&&n!==null||r==="function"}}),LNe=on(e=>{Xt(),Jt(),Zt(),Object.defineProperty(e,"t",{value:!0}),e.HashContainerIterator=e.HashContainer=void 0;var t=Oh(),n=i(DNe()),r=Rh();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}),XQt=on(e=>{Xt(),Jt(),Zt(),Object.defineProperty(e,"t",{value:!0}),e.default=void 0;var t=LNe(),n=Rh(),r=class $Ne 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 $Ne(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}),ZQt=on(e=>{Xt(),Jt(),Zt(),Object.defineProperty(e,"t",{value:!0}),e.default=void 0;var t=LNe(),n=i(DNe()),r=Rh();function i(l){return l&&l.t?l:{default:l}}var o=class FNe 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 FNe(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}),JQt=on(e=>{Xt(),Jt(),Zt(),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(UQt()),n=d(zQt()),r=d(VQt()),i=d(GQt()),o=d(WQt()),a=d(qQt()),s=d(KQt()),l=d(QQt()),c=d(XQt()),u=d(ZQt());function d(f){return f&&f.t?f:{default:f}}}),eXt=on((e,t)=>{Xt(),Jt(),Zt();var n=JQt().OrderedSet,r=fh()("number-allocator:trace"),i=fh()("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}),BNe=on((e,t)=>{Xt(),Jt(),Zt();var n=eXt();t.exports.NumberAllocator=n}),tXt=on(e=>{Xt(),Jt(),Zt(),Object.defineProperty(e,"__esModule",{value:!0});var t=jQt(),n=BNe(),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}),nXt=on(e=>{Xt(),Jt(),Zt();var t=e&&e.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(e,"__esModule",{value:!0});var n=U3(),r=t(tXt()),i=nE(),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}),rXt=on(e=>{Xt(),Jt(),Zt(),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}),iXt=on(e=>{Xt(),Jt(),Zt();var t=e&&e.__importDefault||function(l){return l&&l.__esModule?l:{default:l}};Object.defineProperty(e,"__esModule",{value:!0});var n=t(FQt()),r=t(HQt()),i=t(nXt()),o=t(U3()),a=t(rXt()),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}),oXt=on(e=>{Xt(),Jt(),Zt();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((kv(),$i($g))),r=nE(),i=class{};e.TypedEventEmitter=i,(0,r.applyMixin)(i,n.default)}),z3=on(e=>{Xt(),Jt(),Zt(),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&&hi!=null&&hi.versions?!Object.prototype.hasOwnProperty.call(hi.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}),aXt=on((e,t)=>{Xt(),Jt(),Zt(),function(n,r){typeof e=="object"&&typeof t<"u"?r(e):typeof define=="function"&&define.amd?define(["exports"],r):(n=typeof globalThis<"u"?globalThis:n||self,r(n.fastUniqueNumbers={}))}(e,function(n){var r=function(p){return function(m){var g=p(m);return m.add(g),g}},i=function(p){return function(m,g){return p.set(m,g),g}},o=Number.MAX_SAFE_INTEGER===void 0?9007199254740991:Number.MAX_SAFE_INTEGER,a=536870912,s=a*2,l=function(p,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 p(g,y);if(g.size<a){for(;g.has(y);)y=Math.floor(Math.random()*s);return p(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 p(g,y)}},c=new WeakMap,u=i(c),d=l(u,c),f=r(d);n.addUniqueNumber=f,n.generateUniqueNumber=d})}),sXt=on((e,t)=>{Xt(),Jt(),Zt(),function(n,r){typeof e=="object"&&typeof t<"u"?r(e,aXt()):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,S=b.timerType;if(S==="interval"){var x=l.get(_);if(typeof x=="number"){var E=u.get(x);if(E===void 0||E.timerId!==_||E.timerType!==S)throw new Error("The timer is in an undefined state.")}else if(typeof x<"u")x();else throw new Error("The timer is in an undefined state.")}else if(S==="timeout"){var C=c.get(_);if(typeof C=="number"){var w=u.get(C);if(w===void 0||w.timerId!==_||w.timerType!==S)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 O=y.id,T=u.get(O);if(T===void 0)throw new Error("The timer is in an undefined state.");var A=T.timerId,I=T.timerType;u.delete(O),I==="interval"?l.delete(A):c.delete(A)}else{var N=y.error.message;throw new Error(N)}});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"}})},p=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:p,setInterval:m,setTimeout:g}};n.load=a})}),lXt=on((e,t)=>{Xt(),Jt(),Zt(),function(n,r){typeof e=="object"&&typeof t<"u"?r(e,sXt()):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 p=null;return function(){if(p!==null)return p;var m=new Blob([f],{type:"application/javascript; charset=utf-8"}),g=URL.createObjectURL(m);return p=d(g),setTimeout(function(){return URL.revokeObjectURL(g)}),p}},o=`(()=>{var e={472:(e,t,r)=>{var o,i;void 0===(i="function"==typeof(o=function(){"use strict";var e=new Map,t=new Map,r=function(t){var r=e.get(t);if(void 0===r)throw new Error('There is no interval scheduled with the given id "'.concat(t,'".'));clearTimeout(r),e.delete(t)},o=function(e){var r=t.get(e);if(void 0===r)throw new Error('There is no timeout scheduled with the given id "'.concat(e,'".'));clearTimeout(r),t.delete(e)},i=function(e,t){var r,o=performance.now();return{expected:o+(r=e-Math.max(0,o-t)),remainingDelay:r}},n=function e(t,r,o,i){var n=performance.now();n>o?postMessage({id:null,method:"call",params:{timerId:r,timerType:i}}):t.set(r,setTimeout(e,o-n,t,r,o,i))},a=function(t,r,o){var a=i(t,o),s=a.expected,d=a.remainingDelay;e.set(r,setTimeout(n,d,e,r,s,"interval"))},s=function(e,r,o){var a=i(e,o),s=a.expected,d=a.remainingDelay;t.set(r,setTimeout(n,d,t,r,s,"timeout"))};addEventListener("message",(function(e){var t=e.data;try{if("clear"===t.method){var i=t.id,n=t.params,d=n.timerId,c=n.timerType;if("interval"===c)r(d),postMessage({error:null,id:i});else{if("timeout"!==c)throw new Error('The given type "'.concat(c,'" is not supported'));o(d),postMessage({error:null,id:i})}}else{if("set"!==t.method)throw new Error('The given method "'.concat(t.method,'" is not supported'));var u=t.params,l=u.delay,p=u.now,m=u.timerId,v=u.timerType;if("interval"===v)a(l,m,p);else{if("timeout"!==v)throw new Error('The given type "'.concat(v,'" is not supported'));s(l,m,p)}}}catch(e){postMessage({error:{message:e.message},id:t.id,result:null})}}))})?o.call(t,r,t,e):o)||(e.exports=i)}},t={};function r(o){var i=t[o];if(void 0!==i)return i.exports;var n=t[o]={exports:{}};return e[o](n,n.exports,r),n.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var o in t)r.o(t,o)&&!r.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{"use strict";r(472)})()})();`,a=i(r.load,o),s=function(d){return a().clearInterval(d)},l=function(d){return a().clearTimeout(d)},c=function(){var d;return(d=a()).setInterval.apply(d,arguments)},u=function(){var d;return(d=a()).setTimeout.apply(d,arguments)};n.clearInterval=s,n.clearTimeout=l,n.setInterval=c,n.setTimeout=u})}),cXt=on(e=>{Xt(),Jt(),Zt();var t=e&&e.__createBinding||(Object.create?function(c,u,d,f){f===void 0&&(f=d);var p=Object.getOwnPropertyDescriptor(u,d);(!p||("get"in p?!u.__esModule:p.writable||p.configurable))&&(p={enumerable:!0,get:function(){return u[d]}}),Object.defineProperty(c,f,p)}: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(){var c=function(u){return c=Object.getOwnPropertyNames||function(d){var f=[];for(var p in d)Object.prototype.hasOwnProperty.call(d,p)&&(f[f.length]=p);return f},c(u)};return function(u){if(u&&u.__esModule)return u;var d={};if(u!=null)for(var f=c(u),p=0;p<f.length;p++)f[p]!=="default"&&t(d,u,f[p]);return n(d,u),d}}();Object.defineProperty(e,"__esModule",{value:!0});var i=r(z3()),o=lXt(),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}),HNe=on(e=>{Xt(),Jt(),Zt();var t=e&&e.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(e,"__esModule",{value:!0});var n=t(cXt()),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}),Gz=on(e=>{Xt(),Jt(),Zt();var t=e&&e.__createBinding||(Object.create?function(x,E,C,w){w===void 0&&(w=C);var O=Object.getOwnPropertyDescriptor(E,C);(!O||("get"in O?!E.__esModule:O.writable||O.configurable))&&(O={enumerable:!0,get:function(){return E[C]}}),Object.defineProperty(x,w,O)}:function(x,E,C,w){w===void 0&&(w=C),x[w]=E[C]}),n=e&&e.__setModuleDefault||(Object.create?function(x,E){Object.defineProperty(x,"default",{enumerable:!0,value:E})}:function(x,E){x.default=E}),r=e&&e.__importStar||function(){var x=function(E){return x=Object.getOwnPropertyNames||function(C){var w=[];for(var O in C)Object.prototype.hasOwnProperty.call(C,O)&&(w[w.length]=O);return w},x(E)};return function(E){if(E&&E.__esModule)return E;var C={};if(E!=null)for(var w=x(E),O=0;O<w.length;O++)w[O]!=="default"&&t(C,E,w[O]);return n(C,E),C}}(),i=e&&e.__importDefault||function(x){return x&&x.__esModule?x:{default:x}};Object.defineProperty(e,"__esModule",{value:!0});var o=i(vQt()),a=i(PQt()),s=i(ENe()),l=Dv(),c=i(LQt()),u=r($Qt()),d=i(fh()),f=i(CNe()),p=i(iXt()),m=nE(),g=oXt(),v=i(HNe()),y=r(z3()),b=globalThis.setImmediate||((...x)=>{let E=x.shift();(0,m.nextTick)(()=>{E(...x)})}),_={keepalive:60,reschedulePings:!0,protocolId:"MQTT",protocolVersion:4,reconnectPeriod:1e3,connectTimeout:30*1e3,clean:!0,resubscribe:!0,subscribeBatchSize:null,writeCache:!0,timerVariant:"auto"},S=class Wz extends g.TypedEventEmitter{static defaultId(){return`mqttjs_${Math.random().toString(16).substr(2,8)}`}constructor(E,C){super(),this.options=C||{};for(let w in _)typeof this.options[w]>"u"?this.options[w]=_[w]:this.options[w]=C[w];this.log=this.options.log||(0,d.default)("mqttjs:client"),this.noop=this._noop.bind(this),this.log("MqttClient :: version:",Wz.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:Wz.defaultId(),this.log("MqttClient :: clientId",this.options.clientId),this.options.customHandleAcks=C.protocolVersion===5&&C.customHandleAcks?C.customHandleAcks:(...w)=>{w[3](null,0)},this.options.writeCache||(a.default.writeToStream.cacheNumbers=!1),this.streamBuilder=E,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:w}=this,O=()=>{let T=w.shift();this.log("deliver :: entry %o",T);let A=null;if(!T){this._resubscribe();return}A=T.packet,this.log("deliver :: call _sendPacket for %o",A);let I=!0;A.messageId&&A.messageId!==0&&(this.messageIdProvider.register(A.messageId)||(I=!1)),I?this._sendPacket(A,N=>{T.cb&&T.cb(N),O()}):(this.log("messageId: %d has already used. The message is skipped and removed.",A.messageId),O())};this.log("connect :: sending queued packets"),O()}),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(E,C){C()}handleMessage(E,C){C()}_nextId(){return this.messageIdProvider.allocate()}getLastMessageId(){return this.messageIdProvider.getLastAllocated()}connect(){var E;let C=new l.Writable,w=a.default.parser(this.options),O=null,T=[];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),w.on("packet",M=>{this.log("parser :: on packet push to packets array."),T.push(M)});let A=()=>{this.log("work :: getting next packet in queue");let M=T.shift();if(M)this.log("work :: packet pulled from queue"),(0,p.default)(this,M,I);else{this.log("work :: no packets in queue");let k=O;O=null,this.log("work :: done flag is %s",!!k),k&&k()}},I=()=>{if(T.length)(0,m.nextTick)(A);else{let M=O;O=null,M()}};C._write=(M,k,P)=>{O=P,this.log("writable stream :: parsing buffer"),w.parse(M),A()};let N=M=>{this.log("streamErrorHandler :: error",M.message),M.code?(this.log("streamErrorHandler :: emitting error"),this.emit("error",M)):this.noop(M)};this.log("connect :: pipe stream to writable stream"),this.stream.pipe(C),this.stream.on("error",N),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 D={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&&(D.will=Object.assign(Object.assign({},this.options.will),{payload:(E=this.options.will)===null||E===void 0?void 0:E.payload})),this.topicAliasRecv&&(D.properties||(D.properties={}),this.topicAliasRecv&&(D.properties.topicAliasMaximum=this.topicAliasRecv.max)),this._writePacket(D),w.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 M=Object.assign({cmd:"auth",reasonCode:0},this.options.authPacket);this._writePacket(M)}}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(E,C,w,O){this.log("publish :: message `%s` to topic `%s`",C,E);let{options:T}=this;typeof w=="function"&&(O=w,w=null),w=w||{},w=Object.assign(Object.assign({},{qos:0,retain:!1,dup:!1}),w);let{qos:A,retain:I,dup:N,properties:D,cbStorePut:M}=w;if(this._checkDisconnecting(O))return this;let k=()=>{let P=0;if((A===1||A===2)&&(P=this._nextId(),P===null))return this.log("No messageId left"),!1;let B={cmd:"publish",topic:E,payload:C,qos:A,retain:I,messageId:P,dup:N};switch(T.protocolVersion===5&&(B.properties=D),this.log("publish :: qos",A),A){case 1:case 2:this.outgoing[B.messageId]={volatile:!1,cb:O||this.noop},this.log("MqttClient:publish: packet cmd: %s",B.cmd),this._sendPacket(B,void 0,M);break;default:this.log("MqttClient:publish: packet cmd: %s",B.cmd),this._sendPacket(B,O,M);break}return!0};return(this._storeProcessing||this._storeProcessingQueue.length>0||!k())&&this._storeProcessingQueue.push({invoke:k,cbStorePut:w.cbStorePut,callback:O}),this}publishAsync(E,C,w){return new Promise((O,T)=>{this.publish(E,C,w,(A,I)=>{A?T(A):O(I)})})}subscribe(E,C,w){let O=this.options.protocolVersion;typeof C=="function"&&(w=C),w=w||this.noop;let T=!1,A=[];typeof E=="string"?(E=[E],A=E):Array.isArray(E)?A=E:typeof E=="object"&&(T=E.resubscribe,delete E.resubscribe,A=Object.keys(E));let I=u.validateTopics(A);if(I!==null)return b(w,new Error(`Invalid topic ${I}`)),this;if(this._checkDisconnecting(w))return this.log("subscribe: discconecting true"),this;let N={qos:0};O===5&&(N.nl=!1,N.rap=!1,N.rh=0),C=Object.assign(Object.assign({},N),C);let D=C.properties,M=[],k=(G,L)=>{if(L=L||C,!Object.prototype.hasOwnProperty.call(this._resubscribeTopics,G)||this._resubscribeTopics[G].qos<L.qos||T){let W={topic:G,qos:L.qos};O===5&&(W.nl=L.nl,W.rap=L.rap,W.rh=L.rh,W.properties=D),this.log("subscribe: pushing topic `%s` and qos `%s` to subs list",W.topic,W.qos),M.push(W)}};if(Array.isArray(E)?E.forEach(G=>{this.log("subscribe: array topic %s",G),k(G)}):Object.keys(E).forEach(G=>{this.log("subscribe: object topic %s, %o",G,E[G]),k(G,E[G])}),!M.length)return w(null,[]),this;let P=(G,L)=>{let W={cmd:"subscribe",subscriptions:G,messageId:L};if(D&&(W.properties=D),this.options.resubscribe){this.log("subscribe :: resubscribe true");let H=[];G.forEach(X=>{if(this.options.reconnectPeriod>0){let Q={qos:X.qos};O===5&&(Q.nl=X.nl||!1,Q.rap=X.rap||!1,Q.rh=X.rh||0,Q.properties=X.properties),this._resubscribeTopics[X.topic]=Q,H.push(X.topic)}}),this.messageIdToTopic[W.messageId]=H}let j=new Promise((H,X)=>{this.outgoing[W.messageId]={volatile:!0,cb(Q,ue){if(!Q){let{granted:ee}=ue;for(let K=0;K<ee.length;K+=1)G[K].qos=ee[K]}Q?X(new m.ErrorWithSubackPacket(Q.message,ue)):H(ue)}}});return this.log("subscribe :: call _sendPacket"),this._sendPacket(W),j},B=()=>{var G;let L=(G=this.options.subscribeBatchSize)!==null&&G!==void 0?G:M.length,W=[];for(let j=0;j<M.length;j+=L){let H=M.slice(j,j+L),X=this._nextId();if(X===null)return this.log("No messageId left"),!1;W.push(P(H,X))}return Promise.all(W).then(j=>{w(null,M,j.at(-1))}).catch(j=>{w(j,M,j.packet)}),!0};return(this._storeProcessing||this._storeProcessingQueue.length>0||!B())&&this._storeProcessingQueue.push({invoke:B,callback:w}),this}subscribeAsync(E,C){return new Promise((w,O)=>{this.subscribe(E,C,(T,A)=>{T?O(T):w(A)})})}unsubscribe(E,C,w){typeof E=="string"&&(E=[E]),typeof C=="function"&&(w=C),w=w||this.noop;let O=u.validateTopics(E);if(O!==null)return b(w,new Error(`Invalid topic ${O}`)),this;if(this._checkDisconnecting(w))return this;let T=()=>{let A=this._nextId();if(A===null)return this.log("No messageId left"),!1;let I={cmd:"unsubscribe",messageId:A,unsubscriptions:[]};return typeof E=="string"?I.unsubscriptions=[E]:Array.isArray(E)&&(I.unsubscriptions=E),this.options.resubscribe&&I.unsubscriptions.forEach(N=>{delete this._resubscribeTopics[N]}),typeof C=="object"&&C.properties&&(I.properties=C.properties),this.outgoing[I.messageId]={volatile:!0,cb:w},this.log("unsubscribe: call _sendPacket"),this._sendPacket(I),!0};return(this._storeProcessing||this._storeProcessingQueue.length>0||!T())&&this._storeProcessingQueue.push({invoke:T,callback:w}),this}unsubscribeAsync(E,C){return new Promise((w,O)=>{this.unsubscribe(E,C,(T,A)=>{T?O(T):w(A)})})}end(E,C,w){this.log("end :: (%s)",this.options.clientId),(E==null||typeof E!="boolean")&&(w=w||C,C=E,E=!1),typeof C!="object"&&(w=w||C,C=null),this.log("end :: cb? %s",!!w),(!w||typeof w!="function")&&(w=this.noop);let O=()=>{this.log("end :: closeStores: closing incoming and outgoing stores"),this.disconnected=!0,this.incomingStore.close(A=>{this.outgoingStore.close(I=>{if(this.log("end :: closeStores: emitting end"),this.emit("end"),w){let N=A||I;this.log("end :: closeStores: invoking callback with args"),w(N)}})}),this._deferredReconnect?this._deferredReconnect():(this.options.reconnectPeriod===0||this.options.manualConnect)&&(this.disconnecting=!1)},T=()=>{this.log("end :: (%s) :: finish :: calling _cleanUp with force %s",this.options.clientId,E),this._cleanUp(E,()=>{this.log("end :: finish :: calling process.nextTick on closeStores"),(0,m.nextTick)(O)},C)};return this.disconnecting?(w(),this):(this._clearReconnect(),this.disconnecting=!0,!E&&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,T,10))):(this.log("end :: (%s) :: immediately calling finish",this.options.clientId),T()),this)}endAsync(E,C){return new Promise((w,O)=>{this.end(E,C,T=>{T?O(T):w()})})}removeOutgoingMessage(E){if(this.outgoing[E]){let{cb:C}=this.outgoing[E];this._removeOutgoingAndStoreMessage(E,()=>{C(new Error("Message removed"))})}return this}reconnect(E){this.log("client reconnect");let C=()=>{E?(this.options.incomingStore=E.incomingStore,this.options.outgoingStore=E.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(E=>{this.outgoing[E].volatile&&typeof this.outgoing[E].cb=="function"&&(this.outgoing[E].cb(new Error("Connection closed")),delete this.outgoing[E])}))}_flush(){this.outgoing&&(this.log("_flush: queue exists? %b",!!this.outgoing),Object.keys(this.outgoing).forEach(E=>{typeof this.outgoing[E].cb=="function"&&(this.outgoing[E].cb(new Error("Connection closed")),delete this.outgoing[E])}))}_removeTopicAliasAndRecoverTopicName(E){let C;E.properties&&(C=E.properties.topicAlias);let w=E.topic.toString();if(this.log("_removeTopicAliasAndRecoverTopicName :: alias %d, topic %o",C,w),w.length===0){if(typeof C>"u")return new Error("Unregistered Topic Alias");if(w=this.topicAliasSend.getTopicByAlias(C),typeof w>"u")return new Error("Unregistered Topic Alias");E.topic=w}C&&delete E.properties.topicAlias}_checkDisconnecting(E){return this.disconnecting&&(E&&E!==this.noop?E(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(E,C,w={}){if(C&&(this.log("_cleanUp :: done callback provided for on stream close"),this.stream.on("close",C)),this.log("_cleanUp :: forced? %s",E),E)this.options.reconnectPeriod===0&&this.options.clean&&this._flush(),this.log("_cleanUp :: (%s) :: destroying stream",this.options.clientId),this.stream.destroy();else{let O=Object.assign({cmd:"disconnect"},w);this.log("_cleanUp :: (%s) :: call _sendPacket with disconnect packet",this.options.clientId),this._sendPacket(O,()=>{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(E,C,w){this.log("storeAndSend :: store packet with cmd %s to outgoingStore",E.cmd);let O=E,T;if(O.cmd==="publish"&&(O=(0,c.default)(E),T=this._removeTopicAliasAndRecoverTopicName(O),T))return C&&C(T);this.outgoingStore.put(O,A=>{if(A)return C&&C(A);w(),this._writePacket(E,C)})}_applyTopicAlias(E){if(this.options.protocolVersion===5&&E.cmd==="publish"){let C;E.properties&&(C=E.properties.topicAlias);let w=E.topic.toString();if(this.topicAliasSend)if(C){if(w.length!==0&&(this.log("applyTopicAlias :: register topic: %s - alias: %d",w,C),!this.topicAliasSend.put(w,C)))return this.log("applyTopicAlias :: error out of range. topic: %s - alias: %d",w,C),new Error("Sending Topic Alias out of range")}else w.length!==0&&(this.options.autoAssignTopicAlias?(C=this.topicAliasSend.getAliasByTopic(w),C?(E.topic="",E.properties=Object.assign(Object.assign({},E.properties),{topicAlias:C}),this.log("applyTopicAlias :: auto assign(use) topic: %s - alias: %d",w,C)):(C=this.topicAliasSend.getLruAlias(),this.topicAliasSend.put(w,C),E.properties=Object.assign(Object.assign({},E.properties),{topicAlias:C}),this.log("applyTopicAlias :: auto assign topic: %s - alias: %d",w,C))):this.options.autoUseTopicAlias&&(C=this.topicAliasSend.getAliasByTopic(w),C&&(E.topic="",E.properties=Object.assign(Object.assign({},E.properties),{topicAlias:C}),this.log("applyTopicAlias :: auto use topic: %s - alias: %d",w,C))));else if(C)return this.log("applyTopicAlias :: error out of range. topic: %s - alias: %d",w,C),new Error("Sending Topic Alias out of range")}}_noop(E){this.log("noop ::",E)}_writePacket(E,C){this.log("_writePacket :: packet: %O",E),this.log("_writePacket :: emitting `packetsend`"),this.emit("packetsend",E),this.log("_writePacket :: writing to stream");let w=a.default.writeToStream(E,this.stream,this.options);this.log("_writePacket :: writeToStream result %s",w),!w&&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(E,C,w,O){this.log("_sendPacket :: (%s) :: start",this.options.clientId),w=w||this.noop,C=C||this.noop;let T=this._applyTopicAlias(E);if(T){C(T);return}if(!this.connected){if(E.cmd==="auth"){this._writePacket(E,C);return}this.log("_sendPacket :: client not connected. Storing packet offline."),this._storePacket(E,C,w);return}if(O){this._writePacket(E,C);return}switch(E.cmd){case"publish":break;case"pubrel":this._storeAndSend(E,C,w);return;default:this._writePacket(E,C);return}switch(E.qos){case 2:case 1:this._storeAndSend(E,C,w);break;case 0:default:this._writePacket(E,C);break}this.log("_sendPacket :: (%s) :: end",this.options.clientId)}_storePacket(E,C,w){this.log("_storePacket :: packet: %o",E),this.log("_storePacket :: cb? %s",!!C),w=w||this.noop;let O=E;if(O.cmd==="publish"){O=(0,c.default)(E);let A=this._removeTopicAliasAndRecoverTopicName(O);if(A)return C&&C(A)}let T=O.qos||0;T===0&&this.queueQoSZero||O.cmd!=="publish"?this.queue.push({packet:O,cb:C}):T>0?(C=this.outgoing[O.messageId]?this.outgoing[O.messageId].cb:null,this.outgoingStore.put(O,A=>{if(A)return C&&C(A);w()})):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(E=!1){this.keepaliveManager&&this.options.keepalive&&(E||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 E=Object.keys(this._resubscribeTopics);if(!this._firstConnection&&(this.options.clean||this.options.protocolVersion>=4&&!this.connackPacket.sessionPresent)&&E.length>0)if(this.options.resubscribe)if(this.options.protocolVersion===5){this.log("_resubscribe: protocolVersion 5");for(let C=0;C<E.length;C++){let w={};w[E[C]]=this._resubscribeTopics[E[C]],w.resubscribe=!0,this.subscribe(w,{properties:w[E[C]].properties})}}else this._resubscribeTopics.resubscribe=!0,this.subscribe(this._resubscribeTopics);else this._resubscribeTopics={};this._firstConnection=!1}_onConnect(E){if(this.disconnected){this.emit("connect",E);return}this.connackPacket=E,this.messageIdProvider.clear(),this._setupKeepaliveManager(),this.connected=!0;let C=()=>{let w=this.outgoingStore.createStream(),O=()=>{w.destroy(),w=null,this._flushStoreProcessingQueue(),T()},T=()=>{this._storeProcessing=!1,this._packetIdsDuringStoreProcessing={}};this.once("close",O),w.on("error",I=>{T(),this._flushStoreProcessingQueue(),this.removeListener("close",O),this.emit("error",I)});let A=()=>{if(!w)return;let I=w.read(1),N;if(!I){w.once("readable",A);return}if(this._storeProcessing=!0,this._packetIdsDuringStoreProcessing[I.messageId]){A();return}!this.disconnecting&&!this.reconnectTimer?(N=this.outgoing[I.messageId]?this.outgoing[I.messageId].cb:null,this.outgoing[I.messageId]={volatile:!1,cb(D,M){N&&N(D,M),A()}},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)):w.destroy&&w.destroy()};w.on("end",()=>{let I=!0;for(let N in this._packetIdsDuringStoreProcessing)if(!this._packetIdsDuringStoreProcessing[N]){I=!1;break}this.removeListener("close",O),I?(T(),this._invokeAllStoreProcessingQueue(),this.emit("connect",E)):C()}),A()};C()}_invokeStoreProcessingQueue(){if(!this._storeProcessing&&this._storeProcessingQueue.length>0){let E=this._storeProcessingQueue[0];if(E&&E.invoke())return this._storeProcessingQueue.shift(),!0}return!1}_invokeAllStoreProcessingQueue(){for(;this._invokeStoreProcessingQueue(););}_flushStoreProcessingQueue(){for(let E of this._storeProcessingQueue)E.cbStorePut&&E.cbStorePut(new Error("Connection closed")),E.callback&&E.callback(new Error("Connection closed"));this._storeProcessingQueue.splice(0)}_removeOutgoingAndStoreMessage(E,C){delete this.outgoing[E],this.outgoingStore.del({messageId:E},(w,O)=>{C(w,O),this.messageIdProvider.deallocate(E),this._invokeStoreProcessingQueue()})}};S.VERSION=m.MQTTJS_VERSION,e.default=S}),uXt=on(e=>{Xt(),Jt(),Zt(),Object.defineProperty(e,"__esModule",{value:!0});var t=BNe(),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 o0(e){throw new RangeError(UNe[e])}function pue(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(jNe,".")).split("."),t).join(".");return r+i}function hue(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 mue,gue,jNe,UNe,Lu,QR,O$,R$,A$,I$,Jh,dXt=ul(()=>{Xt(),Jt(),Zt(),mue=/^xn--/,gue=/[^\0-\x7E]/,jNe=/[\x2E\u3002\uFF0E\uFF61]/g,UNe={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},Lu=Math.floor,QR=String.fromCharCode,O$=function(e,t){return e+22+75*(e<26)-((t!=0)<<5)},R$=function(e,t,n){let r=0;for(e=n?Lu(e/700):e>>1,e+=Lu(e/t);e>455;r+=36)e=Lu(e/35);return Lu(r+36*e/(e+38))},A$=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&&o0("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&&o0("invalid-input");let p=(s=e.charCodeAt(l++))-48<10?s-22:s-65<26?s-65:s-97<26?s-97:36;(p>=36||p>Lu((2147483647-r)/d))&&o0("overflow"),r+=p*d;let m=f<=o?1:f>=o+26?26:f-o;if(p<m)break;let g=36-m;d>Lu(2147483647/g)&&o0("overflow"),d*=g}let u=t.length+1;o=R$(r-c,u,c==0),Lu(r/u)>2147483647-i&&o0("overflow"),i+=Lu(r/u),r%=u,t.splice(r++,0,i)}var s;return String.fromCodePoint(...t)},I$=function(e){let t=[],n=(e=hue(e)).length,r=128,i=0,o=72;for(let l of e)l<128&&t.push(QR(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>Lu((2147483647-i)/c)&&o0("overflow"),i+=(l-r)*c,r=l;for(let u of e)if(u<r&&++i>2147483647&&o0("overflow"),u==r){let d=i;for(let f=36;;f+=36){let p=f<=o?1:f>=o+26?26:f-o;if(d<p)break;let m=d-p,g=36-p;t.push(QR(O$(p+m%g,0))),d=Lu(m/g)}t.push(QR(O$(d,0))),o=R$(i,c,s==a),i=0,++s}++i,++r}return t.join("")},Jh={version:"2.1.0",ucs2:{decode:hue,encode:e=>String.fromCodePoint(...e)},decode:A$,encode:I$,toASCII:function(e){return pue(e,function(t){return gue.test(t)?"xn--"+I$(t):t})},toUnicode:function(e){return pue(e,function(t){return mue.test(t)?A$(t.slice(4).toLowerCase()):t})}},Jh.decode,Jh.encode,Jh.toASCII,Jh.toUnicode,Jh.ucs2,Jh.version});function fXt(e,t){return Object.prototype.hasOwnProperty.call(e,t)}var vue,fb,bue,ef,pXt=ul(()=>{Xt(),Jt(),Zt(),vue=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,p=e[l].replace(o,"%20"),m=p.indexOf(n);m>=0?(c=p.substr(0,m),u=p.substr(m+1)):(c=p,u=""),d=decodeURIComponent(c),f=decodeURIComponent(u),fXt(i,d)?Array.isArray(i[d])?i[d].push(f):i[d]=[i[d],f]:i[d]=f}return i},fb=function(e){switch(typeof e){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}},bue=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(fb(i))+n;return Array.isArray(e[i])?e[i].map(function(a){return o+encodeURIComponent(fb(a))}).join(t):o+encodeURIComponent(fb(e[i]))}).join(t):r?encodeURIComponent(fb(r))+n+encodeURIComponent(fb(e)):""},ef={},ef.decode=ef.parse=vue,ef.encode=ef.stringify=bue,ef.decode,ef.encode,ef.parse,ef.stringify});function qz(){throw new Error("setTimeout has not been defined")}function Yz(){throw new Error("clearTimeout has not been defined")}function zNe(e){if(Ap===setTimeout)return setTimeout(e,0);if((Ap===qz||!Ap)&&setTimeout)return Ap=setTimeout,setTimeout(e,0);try{return Ap(e,0)}catch{try{return Ap.call(null,e,0)}catch{return Ap.call(this||m1,e,0)}}}function hXt(){g1&&z0&&(g1=!1,z0.length?Ef=z0.concat(Ef):yx=-1,Ef.length&&VNe())}function VNe(){if(!g1){var e=zNe(hXt);g1=!0;for(var t=Ef.length;t;){for(z0=Ef,Ef=[];++yx<t;)z0&&z0[yx].run();yx=-1,t=Ef.length}z0=null,g1=!1,function(n){if(Ip===clearTimeout)return clearTimeout(n);if((Ip===Yz||!Ip)&&clearTimeout)return Ip=clearTimeout,clearTimeout(n);try{Ip(n)}catch{try{return Ip.call(null,n)}catch{return Ip.call(this||m1,n)}}}(e)}}function yue(e,t){(this||m1).fun=e,(this||m1).array=t}function cp(){}var _ue,Ap,Ip,m1,Fo,z0,Ef,g1,yx,Oo,mXt=ul(()=>{Xt(),Jt(),Zt(),m1=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global,Fo=_ue={},function(){try{Ap=typeof setTimeout=="function"?setTimeout:qz}catch{Ap=qz}try{Ip=typeof clearTimeout=="function"?clearTimeout:Yz}catch{Ip=Yz}}(),Ef=[],g1=!1,yx=-1,Fo.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];Ef.push(new yue(e,t)),Ef.length!==1||g1||zNe(VNe)},yue.prototype.run=function(){(this||m1).fun.apply(null,(this||m1).array)},Fo.title="browser",Fo.browser=!0,Fo.env={},Fo.argv=[],Fo.version="",Fo.versions={},Fo.on=cp,Fo.addListener=cp,Fo.once=cp,Fo.off=cp,Fo.removeListener=cp,Fo.removeAllListeners=cp,Fo.emit=cp,Fo.prependListener=cp,Fo.prependOnceListener=cp,Fo.listeners=function(e){return[]},Fo.binding=function(e){throw new Error("process.binding is not supported")},Fo.cwd=function(){return"/"},Fo.chdir=function(e){throw new Error("process.chdir is not supported")},Fo.umask=function(){return 0},Oo=_ue,Oo.addListener,Oo.argv,Oo.binding,Oo.browser,Oo.chdir,Oo.cwd,Oo.emit,Oo.env,Oo.listeners,Oo.nextTick,Oo.off,Oo.on,Oo.once,Oo.prependListener,Oo.prependOnceListener,Oo.removeAllListeners,Oo.removeListener,Oo.title,Oo.umask,Oo.version,Oo.versions});function gXt(){if(Kz)return XI;Kz=!0;var e=XI={},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||b0,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||b0,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 p(g,v)),s.length===1&&!l&&o(f)};function p(g,v){(this||b0).fun=g,(this||b0).array=v}p.prototype.run=function(){(this||b0).fun.apply(null,(this||b0).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},XI}var XI,Kz,b0,vo,GNe=ul(()=>{Xt(),Jt(),Zt(),XI={},Kz=!1,b0=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global,vo=gXt(),vo.platform="browser",vo.addListener,vo.argv,vo.binding,vo.browser,vo.chdir,vo.cwd,vo.emit,vo.env,vo.listeners,vo.nextTick,vo.off,vo.on,vo.once,vo.prependListener,vo.prependOnceListener,vo.removeAllListeners,vo.removeListener,vo.title,vo.umask,vo.version,vo.versions});function vXt(){if(Qz)return ZI;Qz=!0;var e=vo;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 p=s.lastIndexOf("/");if(p!==s.length-1){p===-1?(s="",l=0):(s=s.slice(0,p),l=s.length-1-s.lastIndexOf("/")),c=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,p=c<f?c:f,m=-1,g=0;g<=p;++g){if(g===p){if(f>p){if(a.charCodeAt(u+g)===47)return a.slice(u+g+1);if(g===0)return a.slice(u+g)}else c>p&&(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 p=o.charCodeAt(u);if(p===47){if(!c){s=u+1;break}}else f===-1&&(c=!1,f=u+1),d>=0&&(p===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,p=!0,m=o.length-1,g=0;m>=c;--m){if(s=o.charCodeAt(m),s===47){if(!p){d=m+1;break}continue}f===-1&&(p=!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,ZI=i,ZI}var ZI,Qz,Xz,bXt=ul(()=>{Xt(),Jt(),Zt(),GNe(),ZI={},Qz=!1,Xz=vXt()}),WNe={};eE(WNe,{URL:()=>u4e,Url:()=>o4e,default:()=>Mi,fileURLToPath:()=>qNe,format:()=>a4e,parse:()=>c4e,pathToFileURL:()=>YNe,resolve:()=>s4e,resolveObject:()=>l4e});function Uc(){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 qE(e,t,n){if(e&&Hu.isObject(e)&&e instanceof Uc)return e;var r=new Uc;return r.parse(e,t,n),r}function yXt(){if(Zz)return JI;Zz=!0;var e=Oo;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 p=s.lastIndexOf("/");if(p!==s.length-1){p===-1?(s="",l=0):(s=s.slice(0,p),l=s.length-1-s.lastIndexOf("/")),c=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,p=c<f?c:f,m=-1,g=0;g<=p;++g){if(g===p){if(f>p){if(a.charCodeAt(u+g)===47)return a.slice(u+g+1);if(g===0)return a.slice(u+g)}else c>p&&(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 p=o.charCodeAt(u);if(p===47){if(!c){s=u+1;break}}else f===-1&&(c=!1,f=u+1),d>=0&&(p===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,p=!0,m=o.length-1,g=0;m>=c;--m){if(s=o.charCodeAt(m),s===47){if(!p){d=m+1;break}continue}f===-1&&(p=!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,JI=i,JI}function _Xt(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?SXt(e):EXt(e)}function SXt(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(JNe,"\\"),n=decodeURIComponent(n),t!=="")return`\\\\${t}${n}`;{let r=n.codePointAt(1)|32,i=n[2];if(r<XNe||r>ZNe||i!==":")throw new Deno.errors.InvalidData("file url path must be absolute");return n.slice(1)}}function EXt(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 CXt(e){let t=Jz.resolve(e),n=e.charCodeAt(e.length-1);(n===QNe||OM&&n===KNe)&&t[t.length-1]!==Jz.sep&&(t+="/");let r=new URL("file://");return t.includes("%")&&(t=t.replace(e4e,"%25")),!OM&&t.includes("\\")&&(t=t.replace(t4e,"%5C")),t.includes(`
`)&&(t=t.replace(n4e,"%0A")),t.includes("\r")&&(t=t.replace(r4e,"%0D")),t.includes(" ")&&(t=t.replace(i4e,"%09")),r.pathname=t,r}function qNe(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 RM?xXt(e):wXt(e)}function xXt(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(m4e,"\\"),n=decodeURIComponent(n),t!=="")return`\\\\${t}${n}`;{let r=n.codePointAt(1)|32,i=n[2];if(r<p4e||r>h4e||i!==":")throw new Deno.errors.InvalidData("file url path must be absolute");return n.slice(1)}}function wXt(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 YNe(e){let t=Xz.resolve(e),n=e.charCodeAt(e.length-1);(n===f4e||RM&&n===d4e)&&t[t.length-1]!==Xz.sep&&(t+="/");let r=new URL("file://");return t.includes("%")&&(t=t.replace(g4e,"%25")),!RM&&t.includes("\\")&&(t=t.replace(v4e,"%5C")),t.includes(`
`)&&(t=t.replace(b4e,"%0A")),t.includes("\r")&&(t=t.replace(y4e,"%0D")),t.includes(" ")&&(t=t.replace(_4e,"%09")),r.pathname=t,r}var Mi,Sue,Hu,Eue,Cue,xue,wue,XR,N$,M$,k$,Tue,Oue,ZR,a0,JR,JI,Zz,Jz,Rue,KNe,QNe,XNe,ZNe,OM,JNe,e4e,t4e,n4e,r4e,i4e,Aue,o4e,a4e,s4e,l4e,c4e,u4e,d4e,f4e,p4e,h4e,RM,m4e,g4e,v4e,b4e,y4e,_4e,TXt=ul(()=>{Xt(),Jt(),Zt(),dXt(),pXt(),mXt(),bXt(),GNe(),Mi={},Sue=Jh,Hu={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}},Mi.parse=qE,Mi.resolve=function(e,t){return qE(e,!1,!0).resolve(t)},Mi.resolveObject=function(e,t){return e?qE(e,!1,!0).resolveObject(t):t},Mi.format=function(e){return Hu.isString(e)&&(e=qE(e)),e instanceof Uc?e.format():Uc.prototype.format.call(e)},Mi.Url=Uc,Eue=/^([a-z0-9.+-]+:)/i,Cue=/:[0-9]*$/,xue=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,wue=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r",`
`," "]),XR=["'"].concat(wue),N$=["%","/","?",";","#"].concat(XR),M$=["/","?","#"],k$=/^[+a-z0-9A-Z_-]{0,63}$/,Tue=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,Oue={javascript:!0,"javascript:":!0},ZR={javascript:!0,"javascript:":!0},a0={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},JR=ef,Uc.prototype.parse=function(e,t,n){if(!Hu.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=xue.exec(a);if(s)return this.path=a,this.href=a,this.pathname=s[1],s[2]?(this.search=s[2],this.query=t?JR.parse(this.search.substr(1)):this.search.substr(1)):t&&(this.search="",this.query={}),this}var l=Eue.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&&ZR[l]||(a=a.substr(2),this.slashes=!0)}if(!ZR[l]&&(u||l&&!a0[l])){for(var d,f,p=-1,m=0;m<M$.length;m++)(g=a.indexOf(M$[m]))!==-1&&(p===-1||g<p)&&(p=g);for((f=p===-1?a.lastIndexOf("@"):a.lastIndexOf("@",p))!==-1&&(d=a.slice(0,f),a=a.slice(f+1),this.auth=decodeURIComponent(d)),p=-1,m=0;m<N$.length;m++){var g;(g=a.indexOf(N$[m]))!==-1&&(p===-1||g<p)&&(p=g)}p===-1&&(p=a.length),this.host=a.slice(0,p),a=a.slice(p),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(k$)){for(var S="",x=0,E=_.length;x<E;x++)_.charCodeAt(x)>127?S+="x":S+=_[x];if(!S.match(k$)){var C=y.slice(0,m),w=y.slice(m+1),O=_.match(Tue);O&&(C.push(O[1]),w.unshift(O[2])),w.length&&(a="/"+w.join(".")+a),this.hostname=C.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),v||(this.hostname=Sue.toASCII(this.hostname));var T=this.port?":"+this.port:"",A=this.hostname||"";this.host=A+T,this.href+=this.host,v&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),a[0]!=="/"&&(a="/"+a))}if(!Oue[c])for(m=0,b=XR.length;m<b;m++){var I=XR[m];if(a.indexOf(I)!==-1){var N=encodeURIComponent(I);N===I&&(N=escape(I)),a=a.split(I).join(N)}}var D=a.indexOf("#");D!==-1&&(this.hash=a.substr(D),a=a.slice(0,D));var M=a.indexOf("?");if(M!==-1?(this.search=a.substr(M),this.query=a.substr(M+1),t&&(this.query=JR.parse(this.query)),a=a.slice(0,M)):t&&(this.search="",this.query={}),a&&(this.pathname=a),a0[c]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){T=this.pathname||"";var k=this.search||"";this.path=T+k}return this.href=this.format(),this},Uc.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&&Hu.isObject(this.query)&&Object.keys(this.query).length&&(o=JR.stringify(this.query));var a=this.search||o&&"?"+o||"";return t&&t.substr(-1)!==":"&&(t+=":"),this.slashes||(!t||a0[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},Uc.prototype.resolve=function(e){return this.resolveObject(qE(e,!1,!0)).format()},Uc.prototype.resolveObject=function(e){if(Hu.isString(e)){var t=new Uc;t.parse(e,!1,!0),e=t}for(var n=new Uc,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 a0[n.protocol]&&n.hostname&&!n.pathname&&(n.path=n.pathname="/"),n.href=n.format(),n}if(e.protocol&&e.protocol!==n.protocol){if(!a0[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||ZR[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 p=n.pathname||"",m=n.search||"";n.path=p+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("/")||[],S=(f=e.pathname&&e.pathname.split("/")||[],n.protocol&&!a0[n.protocol]);if(S&&(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(!Hu.isNullOrUndefined(e.search))return S&&(n.hostname=n.host=_.shift(),(O=!!(n.host&&n.host.indexOf("@")>0)&&n.host.split("@"))&&(n.auth=O.shift(),n.host=n.hostname=O.shift())),n.search=e.search,n.query=e.query,Hu.isNull(n.pathname)&&Hu.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 x=_.slice(-1)[0],E=(n.host||e.host||_.length>1)&&(x==="."||x==="..")||x==="",C=0,w=_.length;w>=0;w--)(x=_[w])==="."?_.splice(w,1):x===".."?(_.splice(w,1),C++):C&&(_.splice(w,1),C--);if(!y&&!b)for(;C--;C)_.unshift("..");!y||_[0]===""||_[0]&&_[0].charAt(0)==="/"||_.unshift(""),E&&_.join("/").substr(-1)!=="/"&&_.push("");var O,T=_[0]===""||_[0]&&_[0].charAt(0)==="/";return S&&(n.hostname=n.host=T?"":_.length?_.shift():"",(O=!!(n.host&&n.host.indexOf("@")>0)&&n.host.split("@"))&&(n.auth=O.shift(),n.host=n.hostname=O.shift())),(y=y||n.host&&_.length)&&!T&&_.unshift(""),_.length?n.pathname=_.join("/"):(n.pathname=null,n.path=null),Hu.isNull(n.pathname)&&Hu.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},Uc.prototype.parseHost=function(){var e=this.host,t=Cue.exec(e);t&&((t=t[0])!==":"&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)},Mi.Url,Mi.format,Mi.resolve,Mi.resolveObject,JI={},Zz=!1,Jz=yXt(),Rue=typeof Deno<"u"?Deno.build.os==="windows"?"win32":Deno.build.os:void 0,Mi.URL=typeof URL<"u"?URL:null,Mi.pathToFileURL=CXt,Mi.fileURLToPath=_Xt,Mi.Url,Mi.format,Mi.resolve,Mi.resolveObject,Mi.URL,KNe=92,QNe=47,XNe=97,ZNe=122,OM=Rue==="win32",JNe=/\//g,e4e=/%/g,t4e=/\\/g,n4e=/\n/g,r4e=/\r/g,i4e=/\t/g,Aue=typeof Deno<"u"?Deno.build.os==="windows"?"win32":Deno.build.os:void 0,Mi.URL=typeof URL<"u"?URL:null,Mi.pathToFileURL=YNe,Mi.fileURLToPath=qNe,o4e=Mi.Url,a4e=Mi.format,s4e=Mi.resolve,l4e=Mi.resolveObject,c4e=Mi.parse,u4e=Mi.URL,d4e=92,f4e=47,p4e=97,h4e=122,RM=Aue==="win32",m4e=/\//g,g4e=/%/g,v4e=/\\/g,b4e=/\n/g,y4e=/\r/g,_4e=/\t/g}),OXt=on((e,t)=>{Xt(),Jt(),Zt(),t.exports=function(){throw new Error("ws does not work in the browser. Browser clients must use the native WebSocket object")}}),tX=on(e=>{Xt(),Jt(),Zt(),Object.defineProperty(e,"__esModule",{value:!0}),e.BufferedDuplex=void 0,e.writev=r;var t=Dv(),n=(Ka(),$i(Ya));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)}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.readable&&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}),eA=on(e=>{Xt(),Jt(),Zt();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=(Ka(),$i(Ya)),r=t(OXt()),i=t(fh()),o=Dv(),a=t(z3()),s=tX(),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 p(y,b,_){l("createWebSocket"),l(`protocol: ${_.protocolId} ${_.protocolVersion}`);let S=_.protocolId==="MQIsdp"&&_.protocolVersion===3?"mqttv3.1":"mqtt";l(`creating new Websocket for url: ${b} and protocol: ${S}`);let x;return _.createWebsocket?x=_.createWebsocket(b,[S],_):x=new r.default(b,[S],_.wsOptions),x}function m(y,b){let _=b.protocolId==="MQIsdp"&&b.protocolVersion===3?"mqttv3.1":"mqtt",S=u(b,y),x;return b.createWebsocket?x=b.createWebsocket(S,[_],b):x=new WebSocket(S,[_]),x.binaryType="arraybuffer",x}var g=(y,b)=>{l("streamBuilder");let _=d(b);_.hostname=_.hostname||_.host||"localhost";let S=u(_,y),x=p(y,S,_),E=r.default.createWebSocketStream(x,_.wsOptions);return E.url=S,x.on("close",()=>{E.destroy()}),E};e.streamBuilder=g;var v=(y,b)=>{l("browserStreamBuilder");let _,S=f(b).browserBufferSize||1024*512,x=b.browserBufferTimeout||1e3,E=!b.objectMode,C=m(y,b),w=T(b,M,k);b.objectMode||(w._writev=s.writev.bind(w)),w.on("close",()=>{C.close()});let O=typeof C.addEventListener<"u";C.readyState===C.OPEN?(_=w,_.socket=C):(_=new s.BufferedDuplex(b,w,C),O?C.addEventListener("open",A):C.onopen=A),O?(C.addEventListener("close",I),C.addEventListener("error",N),C.addEventListener("message",D)):(C.onclose=I,C.onerror=N,C.onmessage=D);function T(P,B,G){let L=new o.Transform({objectMode:P.objectMode});return L._write=B,L._flush=G,L}function A(){l("WebSocket onOpen"),_ instanceof s.BufferedDuplex&&_.socketReady()}function I(P){l("WebSocket onClose",P),_.end(),_.destroy()}function N(P){l("WebSocket onError",P);let B=new Error("WebSocket error");B.event=P,_.destroy(B)}async function D(P){if(!w||w.destroyed||!w.readable)return;let{data:B}=P;B instanceof ArrayBuffer?B=n.Buffer.from(B):B instanceof Blob?B=n.Buffer.from(await new Response(B).arrayBuffer()):B=n.Buffer.from(B,"utf8"),w.push(B)}function M(P,B,G){if(C.bufferedAmount>S){setTimeout(M,x,P,B,G);return}E&&typeof P=="string"&&(P=n.Buffer.from(P,"utf8"));try{C.send(P)}catch(L){return G(L)}G()}function k(P){C.close(),P()}return _};e.browserStreamBuilder=v}),nX={};eE(nX,{Server:()=>yo,Socket:()=>yo,Stream:()=>yo,_createServerHandle:()=>yo,_normalizeArgs:()=>yo,_setSimultaneousAccepts:()=>yo,connect:()=>yo,createConnection:()=>yo,createServer:()=>yo,default:()=>S4e,isIP:()=>yo,isIPv4:()=>yo,isIPv6:()=>yo});function yo(){throw new Error("Node.js net module is not supported by JSPM core outside of Node.js")}var S4e,E4e=ul(()=>{Xt(),Jt(),Zt(),S4e={_createServerHandle:yo,_normalizeArgs:yo,_setSimultaneousAccepts:yo,connect:yo,createConnection:yo,createServer:yo,isIP:yo,isIPv4:yo,isIPv6:yo,Server:yo,Socket:yo,Stream:yo}}),C4e=on((e,t)=>{Xt(),Jt(),Zt(),t.exports={}}),Iue=on(e=>{Xt(),Jt(),Zt();var t=e&&e.__importDefault||function(s){return s&&s.__esModule?s:{default:s}};Object.defineProperty(e,"__esModule",{value:!0});var n=t((E4e(),$i(nX))),r=t(fh()),i=t(C4e()),o=(0,r.default)("mqttjs:tcp"),a=(s,l)=>{if(l.port=l.port||1883,l.hostname=l.hostname||l.host||"localhost",l.socksProxy)return(0,i.default)(l.hostname,l.port,l.socksProxy,{timeout:l.socksTimeout});let{port:c,path:u}=l,d=l.hostname;return o("port %d and host %s",c,d),n.default.createConnection({port:c,host:d,path:u})};e.default=a}),x4e={};eE(x4e,{default:()=>w4e});var w4e,RXt=ul(()=>{Xt(),Jt(),Zt(),w4e={}}),Nue=on(e=>{Xt(),Jt(),Zt();var t=e&&e.__rest||function(u,d){var f={};for(var p in u)Object.prototype.hasOwnProperty.call(u,p)&&d.indexOf(p)<0&&(f[p]=u[p]);if(u!=null&&typeof Object.getOwnPropertySymbols=="function")for(var m=0,p=Object.getOwnPropertySymbols(u);m<p.length;m++)d.indexOf(p[m])<0&&Object.prototype.propertyIsEnumerable.call(u,p[m])&&(f[p[m]]=u[p[m]]);return f},n=e&&e.__importDefault||function(u){return u&&u.__esModule?u:{default:u}};Object.defineProperty(e,"__esModule",{value:!0});var r=n((RXt(),$i(x4e))),i=n((E4e(),$i(nX))),o=n(fh()),a=n(C4e()),s=(0,o.default)("mqttjs:tls");function l(u){let{host:d,port:f,socksProxy:p}=u,m=t(u,["host","port","socksProxy"]);return r.default.connect(p?Object.assign(Object.assign({},m),{socket:(0,a.default)(d,f,p,{timeout:u.socksTimeout})}):u)}var c=(u,d)=>{d.port=d.port||8883,d.host=d.hostname||d.host||"localhost",i.default.isIP(d.host)===0&&(d.servername=d.host),d.rejectUnauthorized=d.rejectUnauthorized!==!1,delete d.path,s("port %d host %s rejectUnauthorized %b",d.port,d.host,d.rejectUnauthorized);let f=l(d);f.on("secureConnect",()=>{d.rejectUnauthorized&&!f.authorized?f.emit("error",new Error("TLS not authorized")):f.removeListener("error",p)});function p(m){d.rejectUnauthorized&&u.emit("error",m),f.end()}return f.on("error",p),f};e.default=c}),Mue=on(e=>{Xt(),Jt(),Zt(),Object.defineProperty(e,"__esModule",{value:!0});var t=(Ka(),$i(Ya)),n=Dv(),r=tX(),i,o,a;function s(){let f=new n.Transform;return f._write=(p,m,g)=>{i.send({data:p.buffer,success(){g()},fail(v){g(new Error(v))}})},f._flush=p=>{i.close({success(){p()}})},f}function l(f){f.hostname||(f.hostname="localhost"),f.path||(f.path="/"),f.wsOptions||(f.wsOptions={})}function c(f,p){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,p)),g}function u(){i.onOpen(()=>{a.socketReady()}),i.onMessage(f=>{let{data:p}=f;p instanceof ArrayBuffer?p=t.Buffer.from(p):p=t.Buffer.from(p,"utf8"),o.push(p)}),i.onClose(()=>{a.emit("close"),a.end(),a.destroy()}),i.onError(f=>{let p=new Error(f.errMsg);a.destroy(p)})}var d=(f,p)=>{if(p.hostname=p.hostname||p.host,!p.hostname)throw new Error("Could not determine host. Specify host manually.");let m=p.protocolId==="MQIsdp"&&p.protocolVersion===3?"mqttv3.1":"mqtt";l(p);let g=c(p,f);i=wx.connectSocket({url:g,protocols:[m]}),o=s(),a=new r.BufferedDuplex(p,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}),kue=on(e=>{Xt(),Jt(),Zt(),Object.defineProperty(e,"__esModule",{value:!0});var t=(Ka(),$i(Ya)),n=Dv(),r=tX(),i,o,a,s=!1;function l(){let p=new n.Transform;return p._write=(m,g,v)=>{i.sendSocketMessage({data:m.buffer,success(){v()},fail(){v(new Error)}})},p._flush=m=>{i.closeSocket({success(){m()}})},p}function c(p){p.hostname||(p.hostname="localhost"),p.path||(p.path="/"),p.wsOptions||(p.wsOptions={})}function u(p,m){let g=p.protocol==="alis"?"wss":"ws",v=`${g}://${p.hostname}${p.path}`;return p.port&&p.port!==80&&p.port!==443&&(v=`${g}://${p.hostname}:${p.port}${p.path}`),typeof p.transformWsUrl=="function"&&(v=p.transformWsUrl(v,p,m)),v}function d(){s||(s=!0,i.onSocketOpen(()=>{a.socketReady()}),i.onSocketMessage(p=>{if(typeof p.data=="string"){let m=t.Buffer.from(p.data,"base64");o.push(m)}else{let m=new FileReader;m.addEventListener("load",()=>{let g=m.result;g instanceof ArrayBuffer?g=t.Buffer.from(g):g=t.Buffer.from(g,"utf8"),o.push(g)}),m.readAsArrayBuffer(p.data)}}),i.onSocketClose(()=>{a.end(),a.destroy()}),i.onSocketError(p=>{a.destroy(p)}))}var f=(p,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,p);return i=m.my,i.connectSocket({url:v,protocols:g}),o=l(),a=new r.BufferedDuplex(m,o,i),d(),a};e.default=f}),AXt=on(e=>{Xt(),Jt(),Zt();var t=e&&e.__importDefault||function(d){return d&&d.__esModule?d:{default:d}};Object.defineProperty(e,"__esModule",{value:!0}),e.connectAsync=u;var n=t(fh()),r=t((TXt(),$i(WNe))),i=t(Gz()),o=t(z3());typeof(hi==null?void 0:hi.nextTick)!="function"&&(hi.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 p,m,g;if(a("connecting to an MQTT broker..."),typeof d=="object"&&!f&&(f=d,d=""),f=f||{},d&&typeof d=="string"){let b=r.default.parse(d,!0),_={};if(b.port!=null&&(_.port=Number(b.port)),_.host=b.hostname,_.query=b.query,_.auth=b.auth,_.protocol=b.protocol,_.path=b.path,f=Object.assign(Object.assign({},_),f),!f.protocol)throw new Error("Missing protocol");f.protocol=f.protocol.replace(/:$/,"")}if(f.unixSocket=f.unixSocket||((p=f.protocol)===null||p===void 0?void 0:p.includes("+unix")),f.unixSocket?f.protocol=f.protocol.replace("+unix",""):!(!((m=f.protocol)===null||m===void 0)&&m.startsWith("ws"))&&!(!((g=f.protocol)===null||g===void 0)&&g.startsWith("wx"))&&delete f.path,l(f),f.query&&typeof f.query.clientId=="string"&&(f.clientId=f.query.clientId),o.default||f.unixSocket?f.socksProxy=void 0:f.socksProxy===void 0&&typeof hi<"u"&&(f.socksProxy=hi.env.MQTTJS_SOCKS_PROXY),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=eA().streamBuilder,s.wss=eA().streamBuilder,s.mqtt=Iue().default,s.tcp=Iue().default,s.ssl=Nue().default,s.tls=s.ssl,s.mqtts=Nue().default):(s.ws=eA().browserStreamBuilder,s.wss=eA().browserStreamBuilder,s.wx=Mue().default,s.wxs=Mue().default,s.ali=kue().default,s.alis=kue().default)),!s[f.protocol]){let b=["mqtts","wss"].indexOf(f.protocol)!==-1;f.protocol=["mqtt","mqtts","ws","wss","wx","wxs","ali","alis"].filter((_,S)=>b&&S%2===0?!1:typeof s[_]=="function")[0]}if(f.clean===!1&&!f.clientId)throw new Error("Missing clientId for unclean clients");f.protocol&&(f.defaultProtocol=f.protocol);function v(b){return f.servers&&((!b._reconnectCount||b._reconnectCount===f.servers.length)&&(b._reconnectCount=0),f.host=f.servers[b._reconnectCount].host,f.port=f.servers[b._reconnectCount].port,f.protocol=f.servers[b._reconnectCount].protocol?f.servers[b._reconnectCount].protocol:f.defaultProtocol,f.hostname=f.host,b._reconnectCount++),a("calling streambuilder for",f.protocol),s[f.protocol](b,f)}let y=new i.default(v,f);return y.on("error",()=>{}),y}function u(d,f,p=!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(_)}};p===!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.default=c}),Pue=on(e=>{Xt(),Jt(),Zt();var t=e&&e.__createBinding||(Object.create?function(p,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(p,v,y)}:function(p,m,g,v){v===void 0&&(v=g),p[v]=m[g]}),n=e&&e.__setModuleDefault||(Object.create?function(p,m){Object.defineProperty(p,"default",{enumerable:!0,value:m})}:function(p,m){p.default=m}),r=e&&e.__importStar||function(){var p=function(m){return p=Object.getOwnPropertyNames||function(g){var v=[];for(var y in g)Object.prototype.hasOwnProperty.call(g,y)&&(v[v.length]=y);return v},p(m)};return function(m){if(m&&m.__esModule)return m;var g={};if(m!=null)for(var v=p(m),y=0;y<v.length;y++)v[y]!=="default"&&t(g,m,v[y]);return n(g,m),g}}(),i=e&&e.__exportStar||function(p,m){for(var g in p)g!=="default"&&!Object.prototype.hasOwnProperty.call(m,g)&&t(m,p,g)},o=e&&e.__importDefault||function(p){return p&&p.__esModule?p:{default:p}};Object.defineProperty(e,"__esModule",{value:!0}),e.ReasonCodes=e.KeepaliveManager=e.UniqueMessageIdProvider=e.DefaultMessageIdProvider=e.Store=e.MqttClient=e.connectAsync=e.connect=e.Client=void 0;var a=o(Gz());e.MqttClient=a.default;var s=o(ENe());e.DefaultMessageIdProvider=s.default;var l=o(uXt());e.UniqueMessageIdProvider=l.default;var c=o(CNe());e.Store=c.default;var u=r(AXt());e.connect=u.default,Object.defineProperty(e,"connectAsync",{enumerable:!0,get:function(){return u.connectAsync}});var d=o(HNe());e.KeepaliveManager=d.default,e.Client=a.default,i(Gz(),e),i(nE(),e);var f=U3();Object.defineProperty(e,"ReasonCodes",{enumerable:!0,get:function(){return f.ReasonCodes}})}),IXt=on(e=>{Xt(),Jt(),Zt();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(){var a=function(s){return a=Object.getOwnPropertyNames||function(l){var c=[];for(var u in l)Object.prototype.hasOwnProperty.call(l,u)&&(c[c.length]=u);return c},a(s)};return function(s){if(s&&s.__esModule)return s;var l={};if(s!=null)for(var c=a(s),u=0;u<c.length;u++)c[u]!=="default"&&t(l,s,c[u]);return n(l,s),l}}(),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(Pue());e.default=o,i(Pue(),e)});const NXt=IXt();/*! Bundled license information:
@jspm/core/nodelibs/browser/buffer.js:
(*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> *)
safe-buffer/index.js:
(*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> *)
*/var On={};(function(e){var t=typeof Object.defineProperties=="function"?Object.defineProperty:function(R,$,J){R!=Array.prototype&&R!=Object.prototype&&(R[$]=J.value)},n=(typeof window<"u"&&window===Wn||typeof Wn<"u"&&Wn!=null,Wn);function r(R,$){if($){var J=n;R=R.split(".");for(var Oe=0;Oe<R.length-1;Oe++){var qe=R[Oe];qe in J||(J[qe]={}),J=J[qe]}R=R[R.length-1],Oe=J[R],$=$(Oe),$!=Oe&&$!=null&&t(J,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(J){if(this instanceof R)throw new TypeError("Symbol is not a constructor");return new a("jscomp_symbol_"+(J||"")+"_"+$++,J)}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 J=0,Oe={next:function(){if(J<R.length){var qe=J++;return{value:$(qe,R[qe]),done:!1}}return Oe.next=function(){return{done:!0,value:void 0}},Oe.next()}};return Oe[Symbol.iterator]=function(){return Oe},Oe}r("Array.prototype.entries",function(R){return R||function(){return u(this,function($,J){return[$,J]})}});var d=Wn||self;function f(R,$,J){R=R.split("."),J=J||d,R[0]in J||typeof J.execScript>"u"||J.execScript("var "+R[0]);for(var Oe;R.length&&(Oe=R.shift());)R.length||$===void 0?J[Oe]&&J[Oe]!==Object.prototype[Oe]?J=J[Oe]:J=J[Oe]={}:J[Oe]=$}function p(R){var $=typeof R;if($=="object")if(R){if(R instanceof Array)return"array";if(R instanceof Object)return $;var J=Object.prototype.toString.call(R);if(J=="[object Window]")return"object";if(J=="[object Array]"||typeof R.length=="number"&&typeof R.splice<"u"&&typeof R.propertyIsEnumerable<"u"&&!R.propertyIsEnumerable("splice"))return"array";if(J=="[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,$,J){f(R,$,J)}function v(R,$){function J(){}J.prototype=$.prototype,R.prototype=new J,R.prototype.constructor=R}var y="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");function b(R,$){for(var J,Oe,qe=1;qe<arguments.length;qe++){Oe=arguments[qe];for(J in Oe)R[J]=Oe[J];for(var Qe=0;Qe<y.length;Qe++)J=y[Qe],Object.prototype.hasOwnProperty.call(Oe,J)&&(R[J]=Oe[J])}}var _=Array.prototype.forEach?function(R,$){Array.prototype.forEach.call(R,$,void 0)}:function(R,$){for(var J=R.length,Oe=typeof R=="string"?R.split(""):R,qe=0;qe<J;qe++)qe in Oe&&$.call(void 0,Oe[qe],qe,R)},S=Array.prototype.map?function(R,$){return Array.prototype.map.call(R,$,void 0)}:function(R,$){for(var J=R.length,Oe=Array(J),qe=typeof R=="string"?R.split(""):R,Qe=0;Qe<J;Qe++)Qe in qe&&(Oe[Qe]=$.call(void 0,qe[Qe],Qe,R));return Oe};function x(R,$,J){return 2>=arguments.length?Array.prototype.slice.call(R,$):Array.prototype.slice.call(R,$,J)}function E(R,$,J,Oe){var qe="Assertion failed";if(J){qe+=": "+J;var Qe=Oe}else R&&(qe+=": "+R,Qe=$);throw Error(qe,Qe||[])}function C(R,$,J){for(var Oe=[],qe=2;qe<arguments.length;++qe)Oe[qe-2]=arguments[qe];return R||E("",null,$,Oe),R}function w(R,$,J){for(var Oe=[],qe=2;qe<arguments.length;++qe)Oe[qe-2]=arguments[qe];typeof R!="string"&&E("Expected string but got %s: %s.",[p(R),R],$,Oe)}function O(R,$,J){for(var Oe=[],qe=2;qe<arguments.length;++qe)Oe[qe-2]=arguments[qe];Array.isArray(R)||E("Expected array but got %s: %s.",[p(R),R],$,Oe)}function T(R,$){for(var J=[],Oe=1;Oe<arguments.length;++Oe)J[Oe-1]=arguments[Oe];throw Error("Failure"+(R?": "+R:""),J)}function A(R,$,J,Oe){for(var qe=[],Qe=3;Qe<arguments.length;++Qe)qe[Qe-3]=arguments[Qe];R instanceof $||E("Expected instanceof %s but got %s.",[I($),I(R)],J,qe)}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 N(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 J=$[0];this.a[J.toString()]=new P(J,$[1])}this.arrClean=!0}}f("jspb.Map",N,void 0),N.prototype.g=function(){if(this.arrClean){if(this.b){var R=this.a,$;for($ in R)if(Object.prototype.hasOwnProperty.call(R,$)){var J=R[$].a;J&&J.g()}}}else{for(this.c.length=0,R=k(this),R.sort(),$=0;$<R.length;$++){var Oe=this.a[R[$]];(J=Oe.a)&&J.g(),this.c.push([Oe.key,Oe.value])}this.arrClean=!0}return this.c},N.prototype.toArray=N.prototype.g,N.prototype.Mc=function(R,$){for(var J=this.g(),Oe=[],qe=0;qe<J.length;qe++){var Qe=this.a[J[qe][0].toString()];M(this,Qe);var Bt=Qe.a;Bt?(C($),Oe.push([Qe.key,$(R,Bt)])):Oe.push([Qe.key,Qe.value])}return Oe},N.prototype.toObject=N.prototype.Mc,N.fromObject=function(R,$,J){$=new N([],$);for(var Oe=0;Oe<R.length;Oe++){var qe=R[Oe][0],Qe=J(R[Oe][1]);$.set(qe,Qe)}return $};function D(R){this.a=0,this.b=R}D.prototype.next=function(){return this.a<this.b.length?{done:!1,value:this.b[this.a++]}:{done:!0,value:void 0}},typeof Symbol<"u"&&(D.prototype[Symbol.iterator]=function(){return this}),N.prototype.Jb=function(){return k(this).length},N.prototype.getLength=N.prototype.Jb,N.prototype.clear=function(){this.a={},this.arrClean=!1},N.prototype.clear=N.prototype.clear,N.prototype.Cb=function(R){R=R.toString();var $=this.a.hasOwnProperty(R);return delete this.a[R],this.arrClean=!1,$},N.prototype.del=N.prototype.Cb,N.prototype.Eb=function(){var R=[],$=k(this);$.sort();for(var J=0;J<$.length;J++){var Oe=this.a[$[J]];R.push([Oe.key,Oe.value])}return R},N.prototype.getEntryList=N.prototype.Eb,N.prototype.entries=function(){var R=[],$=k(this);$.sort();for(var J=0;J<$.length;J++){var Oe=this.a[$[J]];R.push([Oe.key,M(this,Oe)])}return new D(R)},N.prototype.entries=N.prototype.entries,N.prototype.keys=function(){var R=[],$=k(this);$.sort();for(var J=0;J<$.length;J++)R.push(this.a[$[J]].key);return new D(R)},N.prototype.keys=N.prototype.keys,N.prototype.values=function(){var R=[],$=k(this);$.sort();for(var J=0;J<$.length;J++)R.push(M(this,this.a[$[J]]));return new D(R)},N.prototype.values=N.prototype.values,N.prototype.forEach=function(R,$){var J=k(this);J.sort();for(var Oe=0;Oe<J.length;Oe++){var qe=this.a[J[Oe]];R.call($,M(this,qe),qe.key,this)}},N.prototype.forEach=N.prototype.forEach,N.prototype.set=function(R,$){var J=new P(R);return this.b?(J.a=$,J.value=$.g()):J.value=$,this.a[R.toString()]=J,this.arrClean=!1,this},N.prototype.set=N.prototype.set;function M(R,$){return R.b?($.a||($.a=new R.b($.value)),$.a):$.value}N.prototype.get=function(R){if(R=this.a[R.toString()])return M(this,R)},N.prototype.get=N.prototype.get,N.prototype.has=function(R){return R.toString()in this.a},N.prototype.has=N.prototype.has,N.prototype.Jc=function(R,$,J,Oe,qe){var Qe=k(this);Qe.sort();for(var Bt=0;Bt<Qe.length;Bt++){var fn=this.a[Qe[Bt]];$.Va(R),J.call($,1,fn.key),this.b?Oe.call($,2,M(this,fn),qe):Oe.call($,2,fn.value),$.Ya()}},N.prototype.serializeBinary=N.prototype.Jc,N.deserializeBinary=function(R,$,J,Oe,qe,Qe,Bt){for(;$.oa()&&!$.bb();){var fn=$.c;fn==1?Qe=J.call($):fn==2&&(R.b?(C(qe),Bt||(Bt=new R.b),Oe.call($,Bt,qe)):Bt=Oe.call($))}C(Qe!=null),C(Bt!=null),R.set(Qe,Bt)};function k(R){R=R.a;var $=[],J;for(J in R)Object.prototype.hasOwnProperty.call(R,J)&&$.push(J);return $}function P(R,$){this.key=R,this.value=$,this.a=void 0}function B(R){if(8192>=R.length)return String.fromCharCode.apply(null,R);for(var $="",J=0;J<R.length;J+=8192)$+=String.fromCharCode.apply(null,x(R,J,J+8192));return $}var G={"\0":"\\0","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r"," ":"\\t","\v":"\\x0B",'"':'\\"',"\\":"\\\\","<":"\\u003C"},L={"'":"\\'"},W={},j=null;function H(R,$){$===void 0&&($=0),ue(),$=W[$];for(var J=[],Oe=0;Oe<R.length;Oe+=3){var qe=R[Oe],Qe=Oe+1<R.length,Bt=Qe?R[Oe+1]:0,fn=Oe+2<R.length,gr=fn?R[Oe+2]:0,Jn=qe>>2;qe=(qe&3)<<4|Bt>>4,Bt=(Bt&15)<<2|gr>>6,gr&=63,fn||(gr=64,Qe||(Bt=64)),J.push($[Jn],$[qe],$[Bt]||"",$[gr]||"")}return J.join("")}function X(R){var $=R.length,J=3*$/4;J%3?J=Math.floor(J):"=.".indexOf(R[$-1])!=-1&&(J="=.".indexOf(R[$-2])!=-1?J-2:J-1);var Oe=new Uint8Array(J),qe=0;return Q(R,function(Qe){Oe[qe++]=Qe}),Oe.subarray(0,qe)}function Q(R,$){function J(gr){for(;Oe<R.length;){var Jn=R.charAt(Oe++),Hr=j[Jn];if(Hr!=null)return Hr;if(!/^[\s\xa0]*$/.test(Jn))throw Error("Unknown base64 encoding at char: "+Jn)}return gr}ue();for(var Oe=0;;){var qe=J(-1),Qe=J(0),Bt=J(64),fn=J(64);if(fn===64&&qe===-1)break;$(qe<<2|Qe>>4),Bt!=64&&($(Qe<<4&240|Bt>>2),fn!=64&&$(Bt<<6&192|fn))}}function ue(){if(!j){j={};for(var R="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),$=["+/=","+/","-_=","-_.","-_"],J=0;5>J;J++){var Oe=R.concat($[J].split(""));W[J]=Oe;for(var qe=0;qe<Oe.length;qe++){var Qe=Oe[qe];j[Qe]===void 0&&(j[Qe]=qe)}}}}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 ee=0,K=0;f("jspb.utils.getSplit64Low",function(){return ee},void 0),f("jspb.utils.getSplit64High",function(){return K},void 0);function se(R){var $=R>>>0;R=Math.floor((R-$)/4294967296)>>>0,ee=$,K=R}f("jspb.utils.splitUint64",se,void 0);function le(R){var $=0>R;R=Math.abs(R);var J=R>>>0;R=Math.floor((R-J)/4294967296),R>>>=0,$&&(R=~R>>>0,J=(~J>>>0)+1,4294967295<J&&(J=0,R++,4294967295<R&&(R=0))),ee=J,K=R}f("jspb.utils.splitInt64",le,void 0);function oe(R){var $=0>R;R=2*Math.abs(R),se(R),R=ee;var J=K;$&&(R==0?J==0?J=R=4294967295:(J--,R=4294967295):R--),ee=R,K=J}f("jspb.utils.splitZigzag64",oe,void 0);function ne(R){var $=0>R?1:0;if(R=$?-R:R,R===0)0<1/R?ee=K=0:(K=0,ee=2147483648);else if(isNaN(R))K=0,ee=2147483647;else if(34028234663852886e22<R)K=0,ee=($<<31|2139095040)>>>0;else if(11754943508222875e-54>R)R=Math.round(R/Math.pow(2,-149)),K=0,ee=($<<31|R)>>>0;else{var J=Math.floor(Math.log(R)/Math.LN2);R*=Math.pow(2,-J),R=Math.round(8388608*R),16777216<=R&&++J,K=0,ee=($<<31|J+127<<23|R&8388607)>>>0}}f("jspb.utils.splitFloat32",ne,void 0);function he(R){var $=0>R?1:0;if(R=$?-R:R,R===0)K=0<1/R?0:2147483648,ee=0;else if(isNaN(R))K=2147483647,ee=4294967295;else if(17976931348623157e292<R)K=($<<31|2146435072)>>>0,ee=0;else if(22250738585072014e-324>R)R/=Math.pow(2,-1074),K=($<<31|R/4294967296)>>>0,ee=R>>>0;else{var J=R,Oe=0;if(2<=J)for(;2<=J&&1023>Oe;)Oe++,J/=2;else for(;1>J&&-1022<Oe;)J*=2,Oe--;R*=Math.pow(2,-Oe),K=($<<31|Oe+1023<<20|1048576*R&1048575)>>>0,ee=4503599627370496*R>>>0}}f("jspb.utils.splitFloat64",he,void 0);function me(R){var $=R.charCodeAt(4),J=R.charCodeAt(5),Oe=R.charCodeAt(6),qe=R.charCodeAt(7);ee=R.charCodeAt(0)+(R.charCodeAt(1)<<8)+(R.charCodeAt(2)<<16)+(R.charCodeAt(3)<<24)>>>0,K=$+(J<<8)+(Oe<<16)+(qe<<24)>>>0}f("jspb.utils.splitHash64",me,void 0);function ce(R,$){return 4294967296*$+(R>>>0)}f("jspb.utils.joinUint64",ce,void 0);function re(R,$){var J=$&2147483648;return J&&(R=~R+1>>>0,$=~$>>>0,R==0&&($=$+1>>>0)),R=ce(R,$),J?-R:R}f("jspb.utils.joinInt64",re,void 0);function ve(R,$,J){var Oe=$>>31;return J(R<<1^Oe,($<<1|R>>>31)^Oe)}f("jspb.utils.toZigzag64",ve,void 0);function be(R,$){return xe(R,$,re)}f("jspb.utils.joinZigzag64",be,void 0);function xe(R,$,J){var Oe=-(R&1);return J((R>>>1|$<<31)^Oe,$>>>1^Oe)}f("jspb.utils.fromZigzag64",xe,void 0);function we(R){var $=2*(R>>31)+1,J=R>>>23&255;return R&=8388607,J==255?R?NaN:1/0*$:J==0?$*Math.pow(2,-149)*R:$*Math.pow(2,J-150)*(R+Math.pow(2,23))}f("jspb.utils.joinFloat32",we,void 0);function de(R,$){var J=2*($>>31)+1,Oe=$>>>20&2047;return R=4294967296*($&1048575)+R,Oe==2047?R?NaN:1/0*J:Oe==0?J*Math.pow(2,-1074)*R:J*Math.pow(2,Oe-1075)*(R+4503599627370496)}f("jspb.utils.joinFloat64",de,void 0);function Ee(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",Ee,void 0),f("jspb.utils.DIGITS","0123456789abcdef".split(""),void 0);function Ne(R,$){function J(qe,Qe){return qe=qe?String(qe):"",Qe?"0000000".slice(qe.length)+qe:qe}if(2097151>=$)return""+ce(R,$);var Oe=(R>>>24|$<<8)>>>0&16777215;return $=$>>16&65535,R=(R&16777215)+6777216*Oe+6710656*$,Oe+=8147497*$,$*=2,1e7<=R&&(Oe+=Math.floor(R/1e7),R%=1e7),1e7<=Oe&&($+=Math.floor(Oe/1e7),Oe%=1e7),J($,0)+J(Oe,$)+J(R,1)}f("jspb.utils.joinUnsignedDecimalString",Ne,void 0);function Te(R,$){var J=$&2147483648;return J&&(R=~R+1>>>0,$=~$+(R==0?1:0)>>>0),R=Ne(R,$),J?"-"+R:R}f("jspb.utils.joinSignedDecimalString",Te,void 0);function Ve(R,$){me(R),R=ee;var J=K;return $?Te(R,J):Ne(R,J)}f("jspb.utils.hash64ToDecimalString",Ve,void 0),f("jspb.utils.hash64ArrayToDecimalStrings",function(R,$){for(var J=Array(R.length),Oe=0;Oe<R.length;Oe++)J[Oe]=Ve(R[Oe],$);return J},void 0);function q(R){function $(Bt,fn){for(var gr=0;8>gr&&(Bt!==1||0<fn);gr++)fn=Bt*qe[gr]+fn,qe[gr]=fn&255,fn>>>=8}function J(){for(var Bt=0;8>Bt;Bt++)qe[Bt]=~qe[Bt]&255}C(0<R.length);var Oe=!1;R[0]==="-"&&(Oe=!0,R=R.slice(1));for(var qe=[0,0,0,0,0,0,0,0],Qe=0;Qe<R.length;Qe++)$(10,R.charCodeAt(Qe)-48);return Oe&&(J(),$(1,1)),B(qe)}f("jspb.utils.decimalStringToHash64",q,void 0),f("jspb.utils.splitDecimalString",function(R){me(q(R))},void 0);function U(R){return String.fromCharCode(10>R?48+R:87+R)}function Y(R){return 97<=R?R-97+10:R-48}f("jspb.utils.hash64ToHexString",function(R){var $=Array(18);$[0]="0",$[1]="x";for(var J=0;8>J;J++){var Oe=R.charCodeAt(7-J);$[2*J+2]=U(Oe>>4),$[2*J+3]=U(Oe&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 $="",J=0;8>J;J++)$=String.fromCharCode(16*Y(R.charCodeAt(2*J+2))+Y(R.charCodeAt(2*J+3)))+$;return $},void 0),f("jspb.utils.hash64ToNumber",function(R,$){me(R),R=ee;var J=K;return $?re(R,J):ce(R,J)},void 0),f("jspb.utils.numberToHash64",function(R){return le(R),Ee(ee,K)},void 0),f("jspb.utils.countVarints",function(R,$,J){for(var Oe=0,qe=$;qe<J;qe++)Oe+=R[qe]>>7;return J-$-Oe},void 0),f("jspb.utils.countVarintFields",function(R,$,J,Oe){var qe=0;if(Oe*=8,128>Oe)for(;$<J&&R[$++]==Oe;)for(qe++;;){var Qe=R[$++];if(!(Qe&128))break}else for(;$<J;){for(Qe=Oe;128<Qe;){if(R[$]!=(Qe&127|128))return qe;$++,Qe>>=7}if(R[$++]!=Qe)break;for(qe++;Qe=R[$++],(Qe&128)!=0;);}return qe},void 0);function ae(R,$,J,Oe,qe){var Qe=0;if(128>Oe)for(;$<J&&R[$++]==Oe;)Qe++,$+=qe;else for(;$<J;){for(var Bt=Oe;128<Bt;){if(R[$++]!=(Bt&127|128))return Qe;Bt>>=7}if(R[$++]!=Bt)break;Qe++,$+=qe}return Qe}f("jspb.utils.countFixed32Fields",function(R,$,J,Oe){return ae(R,$,J,8*Oe+5,4)},void 0),f("jspb.utils.countFixed64Fields",function(R,$,J,Oe){return ae(R,$,J,8*Oe+1,8)},void 0),f("jspb.utils.countDelimitedFields",function(R,$,J,Oe){var qe=0;for(Oe=8*Oe+2;$<J;){for(var Qe=Oe;128<Qe;){if(R[$++]!=(Qe&127|128))return qe;Qe>>=7}if(R[$++]!=Qe)break;qe++;for(var Bt=0,fn=1;Qe=R[$++],Bt+=(Qe&127)*fn,fn*=128,(Qe&128)!=0;);$+=Bt}return qe},void 0),f("jspb.utils.debugBytesToTextFormat",function(R){var $='"';if(R){R=ye(R);for(var J=0;J<R.length;J++)$+="\\x",16>R[J]&&($+="0"),$+=R[J].toString(16)}return $+'"'},void 0),f("jspb.utils.debugScalarToTextFormat",function(R){if(typeof R=="string"){R=String(R);for(var $=['"'],J=0;J<R.length;J++){var Oe=R.charAt(J),qe=Oe.charCodeAt(0),Qe=J+1,Bt;(Bt=G[Oe])||(31<qe&&127>qe||(qe=Oe,qe in L?Oe=L[qe]:qe in G?Oe=L[qe]=G[qe]:(Bt=qe.charCodeAt(0),31<Bt&&127>Bt?Oe=qe:(256>Bt?(Oe="\\x",(16>Bt||256<Bt)&&(Oe+="0")):(Oe="\\u",4096>Bt&&(Oe+="0")),Oe+=Bt.toString(16).toUpperCase()),Oe=L[qe]=Oe)),Bt=Oe),$[Qe]=Bt}$.push('"'),R=$.join("")}else R=R.toString();return R},void 0),f("jspb.utils.stringToByteArray",function(R){for(var $=new Uint8Array(R.length),J=0;J<R.length;J++){var Oe=R.charCodeAt(J);if(255<Oe)throw Error("Conversion error: string contains codepoint outside of byte range");$[J]=Oe}return $},void 0);function ye(R){return R.constructor===Uint8Array?R:R.constructor===ArrayBuffer?new Uint8Array(R):R.constructor===Array?new Uint8Array(R):R.constructor===String?X(R):R instanceof Uint8Array?new Uint8Array(R.buffer,R.byteOffset,R.byteLength):(T("Type not convertible to Uint8Array."),new Uint8Array(0))}f("jspb.utils.byteSourceToUint8Array",ye,void 0);function fe(R,$,J){this.b=null,this.a=this.c=this.h=0,this.v=!1,R&&this.H(R,$,J)}f("jspb.BinaryDecoder",fe,void 0);var Ae=[];fe.getInstanceCacheLength=function(){return Ae.length};function We(R,$,J){if(Ae.length){var Oe=Ae.pop();return R&&Oe.H(R,$,J),Oe}return new fe(R,$,J)}fe.alloc=We,fe.prototype.Ca=function(){this.clear(),100>Ae.length&&Ae.push(this)},fe.prototype.free=fe.prototype.Ca,fe.prototype.clone=function(){return We(this.b,this.h,this.c-this.h)},fe.prototype.clone=fe.prototype.clone,fe.prototype.clear=function(){this.b=null,this.a=this.c=this.h=0,this.v=!1},fe.prototype.clear=fe.prototype.clear,fe.prototype.Y=function(){return this.b},fe.prototype.getBuffer=fe.prototype.Y,fe.prototype.H=function(R,$,J){this.b=ye(R),this.h=$!==void 0?$:0,this.c=J!==void 0?this.h+J:this.b.length,this.a=this.h},fe.prototype.setBlock=fe.prototype.H,fe.prototype.Db=function(){return this.c},fe.prototype.getEnd=fe.prototype.Db,fe.prototype.setEnd=function(R){this.c=R},fe.prototype.setEnd=fe.prototype.setEnd,fe.prototype.reset=function(){this.a=this.h},fe.prototype.reset=fe.prototype.reset,fe.prototype.B=function(){return this.a},fe.prototype.getCursor=fe.prototype.B,fe.prototype.Ma=function(R){this.a=R},fe.prototype.setCursor=fe.prototype.Ma,fe.prototype.advance=function(R){this.a+=R,C(this.a<=this.c)},fe.prototype.advance=fe.prototype.advance,fe.prototype.ya=function(){return this.a==this.c},fe.prototype.atEnd=fe.prototype.ya,fe.prototype.Qb=function(){return this.a>this.c},fe.prototype.pastEnd=fe.prototype.Qb,fe.prototype.getError=function(){return this.v||0>this.a||this.a>this.c},fe.prototype.getError=fe.prototype.getError,fe.prototype.w=function(R){for(var $=128,J=0,Oe=0,qe=0;4>qe&&128<=$;qe++)$=this.b[this.a++],J|=($&127)<<7*qe;if(128<=$&&($=this.b[this.a++],J|=($&127)<<28,Oe|=($&127)>>4),128<=$)for(qe=0;5>qe&&128<=$;qe++)$=this.b[this.a++],Oe|=($&127)<<7*qe+3;if(128>$)return R(J>>>0,Oe>>>0);T("Failed to read varint, encoding is invalid."),this.v=!0},fe.prototype.readSplitVarint64=fe.prototype.w,fe.prototype.ea=function(R){return this.w(function($,J){return xe($,J,R)})},fe.prototype.readSplitZigzagVarint64=fe.prototype.ea,fe.prototype.ta=function(R){var $=this.b,J=this.a;this.a+=8;for(var Oe=0,qe=0,Qe=J+7;Qe>=J;Qe--)Oe=Oe<<8|$[Qe],qe=qe<<8|$[Qe+4];return R(Oe,qe)},fe.prototype.readSplitFixed64=fe.prototype.ta,fe.prototype.kb=function(){for(;this.b[this.a]&128;)this.a++;this.a++},fe.prototype.skipVarint=fe.prototype.kb,fe.prototype.mb=function(R){for(;128<R;)this.a--,R>>>=7;this.a--},fe.prototype.unskipVarint=fe.prototype.mb,fe.prototype.o=function(){var R=this.b,$=R[this.a],J=$&127;return 128>$?(this.a+=1,C(this.a<=this.c),J):($=R[this.a+1],J|=($&127)<<7,128>$?(this.a+=2,C(this.a<=this.c),J):($=R[this.a+2],J|=($&127)<<14,128>$?(this.a+=3,C(this.a<=this.c),J):($=R[this.a+3],J|=($&127)<<21,128>$?(this.a+=4,C(this.a<=this.c),J):($=R[this.a+4],J|=($&15)<<28,128>$?(this.a+=5,C(this.a<=this.c),J>>>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),J)))))},fe.prototype.readUnsignedVarint32=fe.prototype.o,fe.prototype.da=function(){return~~this.o()},fe.prototype.readSignedVarint32=fe.prototype.da,fe.prototype.O=function(){return this.o().toString()},fe.prototype.Ea=function(){return this.da().toString()},fe.prototype.readSignedVarint32String=fe.prototype.Ea,fe.prototype.Ia=function(){var R=this.o();return R>>>1^-(R&1)},fe.prototype.readZigzagVarint32=fe.prototype.Ia,fe.prototype.Ga=function(){return this.w(ce)},fe.prototype.readUnsignedVarint64=fe.prototype.Ga,fe.prototype.Ha=function(){return this.w(Ne)},fe.prototype.readUnsignedVarint64String=fe.prototype.Ha,fe.prototype.sa=function(){return this.w(re)},fe.prototype.readSignedVarint64=fe.prototype.sa,fe.prototype.Fa=function(){return this.w(Te)},fe.prototype.readSignedVarint64String=fe.prototype.Fa,fe.prototype.Ja=function(){return this.w(be)},fe.prototype.readZigzagVarint64=fe.prototype.Ja,fe.prototype.fb=function(){return this.ea(Ee)},fe.prototype.readZigzagVarintHash64=fe.prototype.fb,fe.prototype.Ka=function(){return this.ea(Te)},fe.prototype.readZigzagVarint64String=fe.prototype.Ka,fe.prototype.Gc=function(){var R=this.b[this.a];return this.a+=1,C(this.a<=this.c),R},fe.prototype.readUint8=fe.prototype.Gc,fe.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},fe.prototype.readUint16=fe.prototype.Ec,fe.prototype.m=function(){var R=this.b[this.a],$=this.b[this.a+1],J=this.b[this.a+2],Oe=this.b[this.a+3];return this.a+=4,C(this.a<=this.c),(R<<0|$<<8|J<<16|Oe<<24)>>>0},fe.prototype.readUint32=fe.prototype.m,fe.prototype.ga=function(){var R=this.m(),$=this.m();return ce(R,$)},fe.prototype.readUint64=fe.prototype.ga,fe.prototype.ha=function(){var R=this.m(),$=this.m();return Ne(R,$)},fe.prototype.readUint64String=fe.prototype.ha,fe.prototype.Xb=function(){var R=this.b[this.a];return this.a+=1,C(this.a<=this.c),R<<24>>24},fe.prototype.readInt8=fe.prototype.Xb,fe.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},fe.prototype.readInt16=fe.prototype.Vb,fe.prototype.P=function(){var R=this.b[this.a],$=this.b[this.a+1],J=this.b[this.a+2],Oe=this.b[this.a+3];return this.a+=4,C(this.a<=this.c),R<<0|$<<8|J<<16|Oe<<24},fe.prototype.readInt32=fe.prototype.P,fe.prototype.ba=function(){var R=this.m(),$=this.m();return re(R,$)},fe.prototype.readInt64=fe.prototype.ba,fe.prototype.ca=function(){var R=this.m(),$=this.m();return Te(R,$)},fe.prototype.readInt64String=fe.prototype.ca,fe.prototype.aa=function(){var R=this.m();return we(R)},fe.prototype.readFloat=fe.prototype.aa,fe.prototype.Z=function(){var R=this.m(),$=this.m();return de(R,$)},fe.prototype.readDouble=fe.prototype.Z,fe.prototype.pa=function(){return!!this.b[this.a++]},fe.prototype.readBool=fe.prototype.pa,fe.prototype.ra=function(){return this.da()},fe.prototype.readEnum=fe.prototype.ra,fe.prototype.fa=function(R){var $=this.b,J=this.a;R=J+R;for(var Oe=[],qe="";J<R;){var Qe=$[J++];if(128>Qe)Oe.push(Qe);else{if(192>Qe)continue;if(224>Qe){var Bt=$[J++];Oe.push((Qe&31)<<6|Bt&63)}else if(240>Qe){Bt=$[J++];var fn=$[J++];Oe.push((Qe&15)<<12|(Bt&63)<<6|fn&63)}else if(248>Qe){Bt=$[J++],fn=$[J++];var gr=$[J++];Qe=(Qe&7)<<18|(Bt&63)<<12|(fn&63)<<6|gr&63,Qe-=65536,Oe.push((Qe>>10&1023)+55296,(Qe&1023)+56320)}}8192<=Oe.length&&(qe+=String.fromCharCode.apply(null,Oe),Oe.length=0)}return qe+=B(Oe),this.a=J,qe},fe.prototype.readString=fe.prototype.fa,fe.prototype.Dc=function(){var R=this.o();return this.fa(R)},fe.prototype.readStringWithLength=fe.prototype.Dc,fe.prototype.qa=function(R){if(0>R||this.a+R>this.b.length)return this.v=!0,T("Invalid byte length!"),new Uint8Array(0);var $=this.b.subarray(this.a,this.a+R);return this.a+=R,C(this.a<=this.c),$},fe.prototype.readBytes=fe.prototype.qa,fe.prototype.ia=function(){return this.w(Ee)},fe.prototype.readVarintHash64=fe.prototype.ia,fe.prototype.$=function(){var R=this.b,$=this.a,J=R[$],Oe=R[$+1],qe=R[$+2],Qe=R[$+3],Bt=R[$+4],fn=R[$+5],gr=R[$+6];return R=R[$+7],this.a+=8,String.fromCharCode(J,Oe,qe,Qe,Bt,fn,gr,R)},fe.prototype.readFixedHash64=fe.prototype.$;function ie(R,$,J){this.a=We(R,$,J),this.O=this.a.B(),this.b=this.c=-1,this.h=!1,this.v=null}f("jspb.BinaryReader",ie,void 0);var Be=[];ie.clearInstanceCache=function(){Be=[]},ie.getInstanceCacheLength=function(){return Be.length};function Fe(R,$,J){if(Be.length){var Oe=Be.pop();return R&&Oe.a.H(R,$,J),Oe}return new ie(R,$,J)}ie.alloc=Fe,ie.prototype.zb=Fe,ie.prototype.alloc=ie.prototype.zb,ie.prototype.Ca=function(){this.a.clear(),this.b=this.c=-1,this.h=!1,this.v=null,100>Be.length&&Be.push(this)},ie.prototype.free=ie.prototype.Ca,ie.prototype.Fb=function(){return this.O},ie.prototype.getFieldCursor=ie.prototype.Fb,ie.prototype.B=function(){return this.a.B()},ie.prototype.getCursor=ie.prototype.B,ie.prototype.Y=function(){return this.a.Y()},ie.prototype.getBuffer=ie.prototype.Y,ie.prototype.Hb=function(){return this.c},ie.prototype.getFieldNumber=ie.prototype.Hb,ie.prototype.Lb=function(){return this.b},ie.prototype.getWireType=ie.prototype.Lb,ie.prototype.Mb=function(){return this.b==2},ie.prototype.isDelimited=ie.prototype.Mb,ie.prototype.bb=function(){return this.b==4},ie.prototype.isEndGroup=ie.prototype.bb,ie.prototype.getError=function(){return this.h||this.a.getError()},ie.prototype.getError=ie.prototype.getError,ie.prototype.H=function(R,$,J){this.a.H(R,$,J),this.b=this.c=-1},ie.prototype.setBlock=ie.prototype.H,ie.prototype.reset=function(){this.a.reset(),this.b=this.c=-1},ie.prototype.reset=ie.prototype.reset,ie.prototype.advance=function(R){this.a.advance(R)},ie.prototype.advance=ie.prototype.advance,ie.prototype.oa=function(){if(this.a.ya())return!1;if(this.getError())return T("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?(T("Invalid wire type: %s (at position %s)",R,this.O),this.h=!0,!1):(this.c=$,this.b=R,!0)},ie.prototype.nextField=ie.prototype.oa,ie.prototype.Oa=function(){this.a.mb(this.c<<3|this.b)},ie.prototype.unskipHeader=ie.prototype.Oa,ie.prototype.Lc=function(){var R=this.c;for(this.Oa();this.oa()&&this.c==R;)this.C();this.a.ya()||this.Oa()},ie.prototype.skipMatchingFields=ie.prototype.Lc,ie.prototype.lb=function(){this.b!=0?(T("Invalid wire type for skipVarintField"),this.C()):this.a.kb()},ie.prototype.skipVarintField=ie.prototype.lb,ie.prototype.gb=function(){if(this.b!=2)T("Invalid wire type for skipDelimitedField"),this.C();else{var R=this.a.o();this.a.advance(R)}},ie.prototype.skipDelimitedField=ie.prototype.gb,ie.prototype.hb=function(){this.b!=5?(T("Invalid wire type for skipFixed32Field"),this.C()):this.a.advance(4)},ie.prototype.skipFixed32Field=ie.prototype.hb,ie.prototype.ib=function(){this.b!=1?(T("Invalid wire type for skipFixed64Field"),this.C()):this.a.advance(8)},ie.prototype.skipFixed64Field=ie.prototype.ib,ie.prototype.jb=function(){var R=this.c;do{if(!this.oa()){T("Unmatched start-group tag: stream EOF"),this.h=!0;break}if(this.b==4){this.c!=R&&(T("Unmatched end-group tag"),this.h=!0);break}this.C()}while(!0)},ie.prototype.skipGroup=ie.prototype.jb,ie.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:T("Invalid wire encoding for field.")}},ie.prototype.skipField=ie.prototype.C,ie.prototype.Hc=function(R,$){this.v===null&&(this.v={}),C(!this.v[R]),this.v[R]=$},ie.prototype.registerReadCallback=ie.prototype.Hc,ie.prototype.Ic=function(R){return C(this.v!==null),R=this.v[R],C(R),R(this)},ie.prototype.runReadCallback=ie.prototype.Ic,ie.prototype.Yb=function(R,$){C(this.b==2);var J=this.a.c,Oe=this.a.o();Oe=this.a.B()+Oe,this.a.setEnd(Oe),$(R,this),this.a.Ma(Oe),this.a.setEnd(J)},ie.prototype.readMessage=ie.prototype.Yb,ie.prototype.Ub=function(R,$,J){C(this.b==3),C(this.c==R),J($,this),this.h||this.b==4||(T("Group submessage did not end with an END_GROUP tag"),this.h=!0)},ie.prototype.readGroup=ie.prototype.Ub,ie.prototype.Gb=function(){C(this.b==2);var R=this.a.o(),$=this.a.B(),J=$+R;return R=We(this.a.Y(),$,R),this.a.Ma(J),R},ie.prototype.getFieldDecoder=ie.prototype.Gb,ie.prototype.P=function(){return C(this.b==0),this.a.da()},ie.prototype.readInt32=ie.prototype.P,ie.prototype.Wb=function(){return C(this.b==0),this.a.Ea()},ie.prototype.readInt32String=ie.prototype.Wb,ie.prototype.ba=function(){return C(this.b==0),this.a.sa()},ie.prototype.readInt64=ie.prototype.ba,ie.prototype.ca=function(){return C(this.b==0),this.a.Fa()},ie.prototype.readInt64String=ie.prototype.ca,ie.prototype.m=function(){return C(this.b==0),this.a.o()},ie.prototype.readUint32=ie.prototype.m,ie.prototype.Fc=function(){return C(this.b==0),this.a.O()},ie.prototype.readUint32String=ie.prototype.Fc,ie.prototype.ga=function(){return C(this.b==0),this.a.Ga()},ie.prototype.readUint64=ie.prototype.ga,ie.prototype.ha=function(){return C(this.b==0),this.a.Ha()},ie.prototype.readUint64String=ie.prototype.ha,ie.prototype.zc=function(){return C(this.b==0),this.a.Ia()},ie.prototype.readSint32=ie.prototype.zc,ie.prototype.Ac=function(){return C(this.b==0),this.a.Ja()},ie.prototype.readSint64=ie.prototype.Ac,ie.prototype.Bc=function(){return C(this.b==0),this.a.Ka()},ie.prototype.readSint64String=ie.prototype.Bc,ie.prototype.Rb=function(){return C(this.b==5),this.a.m()},ie.prototype.readFixed32=ie.prototype.Rb,ie.prototype.Sb=function(){return C(this.b==1),this.a.ga()},ie.prototype.readFixed64=ie.prototype.Sb,ie.prototype.Tb=function(){return C(this.b==1),this.a.ha()},ie.prototype.readFixed64String=ie.prototype.Tb,ie.prototype.vc=function(){return C(this.b==5),this.a.P()},ie.prototype.readSfixed32=ie.prototype.vc,ie.prototype.wc=function(){return C(this.b==5),this.a.P().toString()},ie.prototype.readSfixed32String=ie.prototype.wc,ie.prototype.xc=function(){return C(this.b==1),this.a.ba()},ie.prototype.readSfixed64=ie.prototype.xc,ie.prototype.yc=function(){return C(this.b==1),this.a.ca()},ie.prototype.readSfixed64String=ie.prototype.yc,ie.prototype.aa=function(){return C(this.b==5),this.a.aa()},ie.prototype.readFloat=ie.prototype.aa,ie.prototype.Z=function(){return C(this.b==1),this.a.Z()},ie.prototype.readDouble=ie.prototype.Z,ie.prototype.pa=function(){return C(this.b==0),!!this.a.o()},ie.prototype.readBool=ie.prototype.pa,ie.prototype.ra=function(){return C(this.b==0),this.a.sa()},ie.prototype.readEnum=ie.prototype.ra,ie.prototype.fa=function(){C(this.b==2);var R=this.a.o();return this.a.fa(R)},ie.prototype.readString=ie.prototype.fa,ie.prototype.qa=function(){C(this.b==2);var R=this.a.o();return this.a.qa(R)},ie.prototype.readBytes=ie.prototype.qa,ie.prototype.ia=function(){return C(this.b==0),this.a.ia()},ie.prototype.readVarintHash64=ie.prototype.ia,ie.prototype.Cc=function(){return C(this.b==0),this.a.fb()},ie.prototype.readSintHash64=ie.prototype.Cc,ie.prototype.w=function(R){return C(this.b==0),this.a.w(R)},ie.prototype.readSplitVarint64=ie.prototype.w,ie.prototype.ea=function(R){return C(this.b==0),this.a.w(function($,J){return xe($,J,R)})},ie.prototype.readSplitZigzagVarint64=ie.prototype.ea,ie.prototype.$=function(){return C(this.b==1),this.a.$()},ie.prototype.readFixedHash64=ie.prototype.$,ie.prototype.ta=function(R){return C(this.b==1),this.a.ta(R)},ie.prototype.readSplitFixed64=ie.prototype.ta;function Pe(R,$){C(R.b==2);var J=R.a.o();J=R.a.B()+J;for(var Oe=[];R.a.B()<J;)Oe.push($.call(R.a));return Oe}ie.prototype.gc=function(){return Pe(this,this.a.da)},ie.prototype.readPackedInt32=ie.prototype.gc,ie.prototype.hc=function(){return Pe(this,this.a.Ea)},ie.prototype.readPackedInt32String=ie.prototype.hc,ie.prototype.ic=function(){return Pe(this,this.a.sa)},ie.prototype.readPackedInt64=ie.prototype.ic,ie.prototype.jc=function(){return Pe(this,this.a.Fa)},ie.prototype.readPackedInt64String=ie.prototype.jc,ie.prototype.qc=function(){return Pe(this,this.a.o)},ie.prototype.readPackedUint32=ie.prototype.qc,ie.prototype.rc=function(){return Pe(this,this.a.O)},ie.prototype.readPackedUint32String=ie.prototype.rc,ie.prototype.sc=function(){return Pe(this,this.a.Ga)},ie.prototype.readPackedUint64=ie.prototype.sc,ie.prototype.tc=function(){return Pe(this,this.a.Ha)},ie.prototype.readPackedUint64String=ie.prototype.tc,ie.prototype.nc=function(){return Pe(this,this.a.Ia)},ie.prototype.readPackedSint32=ie.prototype.nc,ie.prototype.oc=function(){return Pe(this,this.a.Ja)},ie.prototype.readPackedSint64=ie.prototype.oc,ie.prototype.pc=function(){return Pe(this,this.a.Ka)},ie.prototype.readPackedSint64String=ie.prototype.pc,ie.prototype.bc=function(){return Pe(this,this.a.m)},ie.prototype.readPackedFixed32=ie.prototype.bc,ie.prototype.cc=function(){return Pe(this,this.a.ga)},ie.prototype.readPackedFixed64=ie.prototype.cc,ie.prototype.dc=function(){return Pe(this,this.a.ha)},ie.prototype.readPackedFixed64String=ie.prototype.dc,ie.prototype.kc=function(){return Pe(this,this.a.P)},ie.prototype.readPackedSfixed32=ie.prototype.kc,ie.prototype.lc=function(){return Pe(this,this.a.ba)},ie.prototype.readPackedSfixed64=ie.prototype.lc,ie.prototype.mc=function(){return Pe(this,this.a.ca)},ie.prototype.readPackedSfixed64String=ie.prototype.mc,ie.prototype.fc=function(){return Pe(this,this.a.aa)},ie.prototype.readPackedFloat=ie.prototype.fc,ie.prototype.$b=function(){return Pe(this,this.a.Z)},ie.prototype.readPackedDouble=ie.prototype.$b,ie.prototype.Zb=function(){return Pe(this,this.a.pa)},ie.prototype.readPackedBool=ie.prototype.Zb,ie.prototype.ac=function(){return Pe(this,this.a.ra)},ie.prototype.readPackedEnum=ie.prototype.ac,ie.prototype.uc=function(){return Pe(this,this.a.ia)},ie.prototype.readPackedVarintHash64=ie.prototype.uc,ie.prototype.ec=function(){return Pe(this,this.a.$)},ie.prototype.readPackedFixedHash64=ie.prototype.ec;function Ke(R,$,J,Oe,qe){this.ma=R,this.Ba=$,this.la=J,this.Na=Oe,this.na=qe}f("jspb.ExtensionFieldInfo",Ke,void 0);function tt(R,$,J,Oe,qe,Qe){this.Za=R,this.za=$,this.Aa=J,this.Wa=Oe,this.Ab=qe,this.Nb=Qe}f("jspb.ExtensionFieldBinaryInfo",tt,void 0),Ke.prototype.F=function(){return!!this.la},Ke.prototype.isMessageType=Ke.prototype.F;function Ge(){}f("jspb.Message",Ge,void 0),Ge.GENERATE_TO_OBJECT=!0,Ge.GENERATE_FROM_OBJECT=!0;var Nt=typeof Uint8Array=="function";Ge.prototype.Ib=function(){return this.b},Ge.prototype.getJsPbMessageId=Ge.prototype.Ib,Ge.initialize=function(R,$,J,Oe,qe,Qe){R.f=null,$||($=J?[J]:[]),R.b=J?String(J):void 0,R.D=J===0?-1:0,R.u=$;e:{if(J=R.u.length,$=-1,J&&($=J-1,J=R.u[$],!(J===null||typeof J!="object"||Array.isArray(J)||Nt&&J instanceof Uint8Array))){R.G=$-R.D,R.i=J;break e}-1<Oe?(R.G=Math.max(Oe,$+1-R.D),R.i=null):R.G=Number.MAX_VALUE}if(R.a={},qe)for(Oe=0;Oe<qe.length;Oe++)$=qe[Oe],$<R.G?($+=R.D,R.u[$]=R.u[$]||lt):(st(R),R.i[$]=R.i[$]||lt);if(Qe&&Qe.length)for(Oe=0;Oe<Qe.length;Oe++)ft(R,Qe[Oe])};var lt=Object.freeze?Object.freeze([]):[];function st(R){var $=R.G+R.D;R.u[$]||(R.i=R.u[$]={})}function It(R,$,J){for(var Oe=[],qe=0;qe<R.length;qe++)Oe[qe]=$.call(R[qe],J,R[qe]);return Oe}Ge.toObjectList=It,Ge.toObjectExtension=function(R,$,J,Oe,qe){for(var Qe in J){var Bt=J[Qe],fn=Oe.call(R,Bt);if(fn!=null){for(var gr in Bt.Ba)if(Bt.Ba.hasOwnProperty(gr))break;$[gr]=Bt.Na?Bt.na?It(fn,Bt.Na,qe):Bt.Na(qe,fn):fn}}},Ge.serializeBinaryExtensions=function(R,$,J,Oe){for(var qe in J){var Qe=J[qe],Bt=Qe.Za;if(!Qe.Aa)throw Error("Message extension present that was generated without binary serialization support");var fn=Oe.call(R,Bt);if(fn!=null)if(Bt.F())if(Qe.Wa)Qe.Aa.call($,Bt.ma,fn,Qe.Wa);else throw Error("Message extension present holding submessage without binary support enabled, and message is being serialized to binary format");else Qe.Aa.call($,Bt.ma,fn)}},Ge.readBinaryExtension=function(R,$,J,Oe,qe){var Qe=J[$.c];if(Qe){if(J=Qe.Za,!Qe.za)throw Error("Deserializing extension whose generated code does not support binary format");if(J.F()){var Bt=new J.la;Qe.za.call($,Bt,Qe.Ab)}else Bt=Qe.za.call($);J.na&&!Qe.Nb?($=Oe.call(R,J))?$.push(Bt):qe.call(R,J,[Bt]):qe.call(R,J,Bt)}else $.C()};function ct(R,$){if($<R.G){$+=R.D;var J=R.u[$];return J===lt?R.u[$]=[]:J}if(R.i)return J=R.i[$],J===lt?R.i[$]=[]:J}Ge.getField=ct,Ge.getRepeatedField=function(R,$){return ct(R,$)};function Pt(R,$){return R=ct(R,$),R==null?R:+R}Ge.getOptionalFloatingPointField=Pt;function Rt(R,$){return R=ct(R,$),R==null?R:!!R}Ge.getBooleanField=Rt,Ge.getRepeatedFloatingPointField=function(R,$){var J=ct(R,$);if(R.a||(R.a={}),!R.a[$]){for(var Oe=0;Oe<J.length;Oe++)J[Oe]=+J[Oe];R.a[$]=!0}return J},Ge.getRepeatedBooleanField=function(R,$){var J=ct(R,$);if(R.a||(R.a={}),!R.a[$]){for(var Oe=0;Oe<J.length;Oe++)J[Oe]=!!J[Oe];R.a[$]=!0}return J};function Tt(R){return R==null||typeof R=="string"?R:Nt&&R instanceof Uint8Array?H(R):(T("Cannot coerce to b64 string: "+p(R)),null)}Ge.bytesAsB64=Tt;function Me(R){return R==null||R instanceof Uint8Array?R:typeof R=="string"?X(R):(T("Cannot coerce to Uint8Array: "+p(R)),null)}Ge.bytesAsU8=Me,Ge.bytesListAsB64=function(R){return Ue(R),R.length&&typeof R[0]!="string"?S(R,Tt):R},Ge.bytesListAsU8=function(R){return Ue(R),!R.length||R[0]instanceof Uint8Array?R:S(R,Me)};function Ue(R){if(R&&1<R.length){var $=p(R[0]);_(R,function(J){p(J)!=$&&T("Inconsistent type in JSPB repeated field array. Got "+p(J)+" expected "+$)})}}function $e(R,$,J){return R=ct(R,$),R??J}Ge.getFieldWithDefault=$e,Ge.getBooleanFieldWithDefault=function(R,$,J){return R=Rt(R,$),R??J},Ge.getFloatingPointFieldWithDefault=function(R,$,J){return R=Pt(R,$),R??J},Ge.getFieldProto3=$e,Ge.getMapField=function(R,$,J,Oe){if(R.f||(R.f={}),$ in R.f)return R.f[$];var qe=ct(R,$);if(!qe){if(J)return;qe=[],Le(R,$,qe)}return R.f[$]=new N(qe,Oe)};function Le(R,$,J){return A(R,Ge),$<R.G?R.u[$+R.D]=J:(st(R),R.i[$]=J),R}Ge.setField=Le,Ge.setProto3IntField=function(R,$,J){return He(R,$,J,0)},Ge.setProto3FloatField=function(R,$,J){return He(R,$,J,0)},Ge.setProto3BooleanField=function(R,$,J){return He(R,$,J,!1)},Ge.setProto3StringField=function(R,$,J){return He(R,$,J,"")},Ge.setProto3BytesField=function(R,$,J){return He(R,$,J,"")},Ge.setProto3EnumField=function(R,$,J){return He(R,$,J,0)},Ge.setProto3StringIntField=function(R,$,J){return He(R,$,J,"0")};function He(R,$,J,Oe){return A(R,Ge),J!==Oe?Le(R,$,J):$<R.G?R.u[$+R.D]=null:(st(R),delete R.i[$]),R}Ge.addToRepeatedField=function(R,$,J,Oe){return A(R,Ge),$=ct(R,$),Oe!=null?$.splice(Oe,0,J):$.push(J),R};function it(R,$,J,Oe){return A(R,Ge),(J=ft(R,J))&&J!==$&&Oe!==void 0&&(R.f&&J in R.f&&(R.f[J]=void 0),Le(R,J,void 0)),Le(R,$,Oe)}Ge.setOneofField=it;function ft(R,$){for(var J,Oe,qe=0;qe<$.length;qe++){var Qe=$[qe],Bt=ct(R,Qe);Bt!=null&&(J=Qe,Oe=Bt,Le(R,Qe,void 0))}return J?(Le(R,J,Oe),J):0}Ge.computeOneofCase=ft,Ge.getWrapperField=function(R,$,J,Oe){if(R.f||(R.f={}),!R.f[J]){var qe=ct(R,J);(Oe||qe)&&(R.f[J]=new $(qe))}return R.f[J]},Ge.getRepeatedWrapperField=function(R,$,J){return Et(R,$,J),$=R.f[J],$==lt&&($=R.f[J]=[]),$};function Et(R,$,J){if(R.f||(R.f={}),!R.f[J]){for(var Oe=ct(R,J),qe=[],Qe=0;Qe<Oe.length;Qe++)qe[Qe]=new $(Oe[Qe]);R.f[J]=qe}}Ge.setWrapperField=function(R,$,J){A(R,Ge),R.f||(R.f={});var Oe=J&&J.g();return R.f[$]=J,Le(R,$,Oe)},Ge.setOneofWrapperField=function(R,$,J,Oe){A(R,Ge),R.f||(R.f={});var qe=Oe&&Oe.g();return R.f[$]=Oe,it(R,$,J,qe)},Ge.setRepeatedWrapperField=function(R,$,J){A(R,Ge),R.f||(R.f={}),J=J||[];for(var Oe=[],qe=0;qe<J.length;qe++)Oe[qe]=J[qe].g();return R.f[$]=J,Le(R,$,Oe)},Ge.addToRepeatedWrapperField=function(R,$,J,Oe,qe){Et(R,Oe,$);var Qe=R.f[$];return Qe||(Qe=R.f[$]=[]),J=J||new Oe,R=ct(R,$),qe!=null?(Qe.splice(qe,0,J),R.splice(qe,0,J.g())):(Qe.push(J),R.push(J.g())),J},Ge.toMap=function(R,$,J,Oe){for(var qe={},Qe=0;Qe<R.length;Qe++)qe[$.call(R[Qe])]=J?J.call(R[Qe],Oe,R[Qe]):R[Qe];return qe};function Dt(R){if(R.f)for(var $ in R.f){var J=R.f[$];if(Array.isArray(J))for(var Oe=0;Oe<J.length;Oe++)J[Oe]&&J[Oe].g();else J&&J.g()}}Ge.prototype.g=function(){return Dt(this),this.u},Ge.prototype.toArray=Ge.prototype.g,Ge.prototype.toString=function(){return Dt(this),this.u.toString()},Ge.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[$]=S(this.i[$]||[],function(J){return new R.la(J)})),this.f[$]}else if(R.F())return!this.f[$]&&this.i[$]&&(this.f[$]=new R.la(this.i[$])),this.f[$];return this.i[$]}},Ge.prototype.getExtension=Ge.prototype.getExtension,Ge.prototype.Kc=function(R,$){this.f||(this.f={}),st(this);var J=R.ma;return R.na?($=$||[],R.F()?(this.f[J]=$,this.i[J]=S($,function(Oe){return Oe.g()})):this.i[J]=$):R.F()?(this.f[J]=$,this.i[J]=$&&$.g()):this.i[J]=$,this},Ge.prototype.setExtension=Ge.prototype.Kc,Ge.difference=function(R,$){if(!(R instanceof $.constructor))throw Error("Messages have different types.");var J=R.g();$=$.g();var Oe=[],qe=0,Qe=J.length>$.length?J.length:$.length;for(R.b&&(Oe[0]=R.b,qe=1);qe<Qe;qe++)bt(J[qe],$[qe])||(Oe[qe]=$[qe]);return new R.constructor(Oe)},Ge.equals=function(R,$){return R==$||!(!R||!$)&&R instanceof $.constructor&&bt(R.g(),$.g())};function St(R,$){R=R||{},$=$||{};var J={},Oe;for(Oe in R)J[Oe]=0;for(Oe in $)J[Oe]=0;for(Oe in J)if(!bt(R[Oe],$[Oe]))return!1;return!0}Ge.compareExtensions=St;function bt(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(Nt&&R.constructor===Uint8Array){if(R.length!=$.length)return!1;for(var J=0;J<R.length;J++)if(R[J]!=$[J])return!1;return!0}if(R.constructor===Array){var Oe=void 0,qe=void 0,Qe=Math.max(R.length,$.length);for(J=0;J<Qe;J++){var Bt=R[J],fn=$[J];if(Bt&&Bt.constructor==Object&&(C(Oe===void 0),C(J===R.length-1),Oe=Bt,Bt=void 0),fn&&fn.constructor==Object&&(C(qe===void 0),C(J===$.length-1),qe=fn,fn=void 0),!bt(Bt,fn))return!1}return Oe||qe?(Oe=Oe||{},qe=qe||{},St(Oe,qe)):!0}if(R.constructor===Object)return St(R,$);throw Error("Invalid type in JSPB array")}Ge.compareFields=bt,Ge.prototype.Bb=function(){return xt(this)},Ge.prototype.cloneMessage=Ge.prototype.Bb,Ge.prototype.clone=function(){return xt(this)},Ge.prototype.clone=Ge.prototype.clone,Ge.clone=function(R){return xt(R)};function xt(R){return new R.constructor(ht(R.g()))}Ge.copyInto=function(R,$){A(R,Ge),A($,Ge),C(R.constructor==$.constructor,"Copy source and target message should have the same type."),R=xt(R);for(var J=$.g(),Oe=R.g(),qe=J.length=0;qe<Oe.length;qe++)J[qe]=Oe[qe];$.f=R.f,$.i=R.i};function ht(R){if(Array.isArray(R)){for(var $=Array(R.length),J=0;J<R.length;J++){var Oe=R[J];Oe!=null&&($[J]=typeof Oe=="object"?ht(C(Oe)):Oe)}return $}if(Nt&&R instanceof Uint8Array)return new Uint8Array(R);$={};for(J in R)Oe=R[J],Oe!=null&&($[J]=typeof Oe=="object"?ht(C(Oe)):Oe);return $}Ge.registerMessageType=function(R,$){$.we=R};var Vt={dump:function(R){return A(R,Ge,"jspb.Message instance expected"),C(R.getExtension,"Only unobfuscated and unoptimized compilation modes supported."),Vt.X(R)}};f("jspb.debug.dump",Vt.dump,void 0),Vt.X=function(R){var $=p(R);if($=="number"||$=="string"||$=="boolean"||$=="null"||$=="undefined"||typeof Uint8Array<"u"&&R instanceof Uint8Array)return R;if($=="array")return O(R),S(R,Vt.X);if(R instanceof N){var J={};R=R.entries();for(var Oe=R.next();!Oe.done;Oe=R.next())J[Oe.value[0]]=Vt.X(Oe.value[1]);return J}A(R,Ge,"Only messages expected: "+R),$=R.constructor;var qe={$name:$.name||$.displayName};for(fn in $.prototype){var Qe=/^get([A-Z]\w*)/.exec(fn);if(Qe&&fn!="getExtension"&&fn!="getJsPbMessageId"){var Bt="has"+Qe[1];(!R[Bt]||R[Bt]())&&(Bt=R[fn](),qe[Vt.$a(Qe[1])]=Vt.X(Bt))}}if(R.extensionObject_)return qe.$extensions="Recursive dumping of extensions not supported in compiled code. Switch to uncompiled or dump extension object directly",qe;for(Oe in $.extensions)if(/^\d+$/.test(Oe)){Bt=$.extensions[Oe];var fn=R.getExtension(Bt);Qe=void 0,Bt=Bt.Ba;var gr=[],Jn=0;for(Qe in Bt)gr[Jn++]=Qe;Qe=gr[0],fn!=null&&(J||(J=qe.$extensions={}),J[Vt.$a(Qe)]=Vt.X(fn))}return qe},Vt.$a=function(R){return R.replace(/^[A-Z]/,function($){return $.toLowerCase()})};function at(){this.a=[]}f("jspb.BinaryEncoder",at,void 0),at.prototype.length=function(){return this.a.length},at.prototype.length=at.prototype.length,at.prototype.end=function(){var R=this.a;return this.a=[],R},at.prototype.end=at.prototype.end,at.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)},at.prototype.writeSplitVarint64=at.prototype.l,at.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($)},at.prototype.writeSplitFixed64=at.prototype.A,at.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)},at.prototype.writeUnsignedVarint32=at.prototype.j,at.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)}},at.prototype.writeSignedVarint32=at.prototype.M,at.prototype.va=function(R){C(R==Math.floor(R)),C(0<=R&&18446744073709552e3>R),le(R),this.l(ee,K)},at.prototype.writeUnsignedVarint64=at.prototype.va,at.prototype.ua=function(R){C(R==Math.floor(R)),C(-9223372036854776e3<=R&&9223372036854776e3>R),le(R),this.l(ee,K)},at.prototype.writeSignedVarint64=at.prototype.ua,at.prototype.wa=function(R){C(R==Math.floor(R)),C(-2147483648<=R&&2147483648>R),this.j((R<<1^R>>31)>>>0)},at.prototype.writeZigzagVarint32=at.prototype.wa,at.prototype.xa=function(R){C(R==Math.floor(R)),C(-9223372036854776e3<=R&&9223372036854776e3>R),oe(R),this.l(ee,K)},at.prototype.writeZigzagVarint64=at.prototype.xa,at.prototype.Ta=function(R){this.W(q(R))},at.prototype.writeZigzagVarint64String=at.prototype.Ta,at.prototype.W=function(R){var $=this;me(R),ve(ee,K,function(J,Oe){$.l(J>>>0,Oe>>>0)})},at.prototype.writeZigzagVarintHash64=at.prototype.W,at.prototype.be=function(R){C(R==Math.floor(R)),C(0<=R&&256>R),this.a.push(R>>>0&255)},at.prototype.writeUint8=at.prototype.be,at.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)},at.prototype.writeUint16=at.prototype.ae,at.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)},at.prototype.writeUint32=at.prototype.s,at.prototype.V=function(R){C(R==Math.floor(R)),C(0<=R&&18446744073709552e3>R),se(R),this.s(ee),this.s(K)},at.prototype.writeUint64=at.prototype.V,at.prototype.Qc=function(R){C(R==Math.floor(R)),C(-128<=R&&128>R),this.a.push(R>>>0&255)},at.prototype.writeInt8=at.prototype.Qc,at.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)},at.prototype.writeInt16=at.prototype.Pc,at.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)},at.prototype.writeInt32=at.prototype.S,at.prototype.T=function(R){C(R==Math.floor(R)),C(-9223372036854776e3<=R&&9223372036854776e3>R),le(R),this.A(ee,K)},at.prototype.writeInt64=at.prototype.T,at.prototype.ka=function(R){C(R==Math.floor(R)),C(-9223372036854776e3<=+R&&9223372036854776e3>+R),me(q(R)),this.A(ee,K)},at.prototype.writeInt64String=at.prototype.ka,at.prototype.L=function(R){C(R===1/0||R===-1/0||isNaN(R)||-34028234663852886e22<=R&&34028234663852886e22>=R),ne(R),this.s(ee)},at.prototype.writeFloat=at.prototype.L,at.prototype.J=function(R){C(R===1/0||R===-1/0||isNaN(R)||-17976931348623157e292<=R&&17976931348623157e292>=R),he(R),this.s(ee),this.s(K)},at.prototype.writeDouble=at.prototype.J,at.prototype.I=function(R){C(typeof R=="boolean"||typeof R=="number"),this.a.push(R?1:0)},at.prototype.writeBool=at.prototype.I,at.prototype.R=function(R){C(R==Math.floor(R)),C(-2147483648<=R&&2147483648>R),this.M(R)},at.prototype.writeEnum=at.prototype.R,at.prototype.ja=function(R){this.a.push.apply(this.a,R)},at.prototype.writeBytes=at.prototype.ja,at.prototype.N=function(R){me(R),this.l(ee,K)},at.prototype.writeVarintHash64=at.prototype.N,at.prototype.K=function(R){me(R),this.s(ee),this.s(K)},at.prototype.writeFixedHash64=at.prototype.K,at.prototype.U=function(R){var $=this.a.length;w(R);for(var J=0;J<R.length;J++){var Oe=R.charCodeAt(J);if(128>Oe)this.a.push(Oe);else if(2048>Oe)this.a.push(Oe>>6|192),this.a.push(Oe&63|128);else if(65536>Oe)if(55296<=Oe&&56319>=Oe&&J+1<R.length){var qe=R.charCodeAt(J+1);56320<=qe&&57343>=qe&&(Oe=1024*(Oe-55296)+qe-56320+65536,this.a.push(Oe>>18|240),this.a.push(Oe>>12&63|128),this.a.push(Oe>>6&63|128),this.a.push(Oe&63|128),J++)}else this.a.push(Oe>>12|224),this.a.push(Oe>>6&63|128),this.a.push(Oe&63|128)}return this.a.length-$},at.prototype.writeString=at.prototype.U;function wt(R,$){this.lo=R,this.hi=$}f("jspb.arith.UInt64",wt,void 0),wt.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},wt.prototype.cmp=wt.prototype.cmp,wt.prototype.La=function(){return new wt((this.lo>>>1|(this.hi&1)<<31)>>>0,this.hi>>>1>>>0)},wt.prototype.rightShift=wt.prototype.La,wt.prototype.Da=function(){return new wt(this.lo<<1>>>0,(this.hi<<1|this.lo>>>31)>>>0)},wt.prototype.leftShift=wt.prototype.Da,wt.prototype.cb=function(){return!!(this.hi&2147483648)},wt.prototype.msb=wt.prototype.cb,wt.prototype.Ob=function(){return!!(this.lo&1)},wt.prototype.lsb=wt.prototype.Ob,wt.prototype.Ua=function(){return this.lo==0&&this.hi==0},wt.prototype.zero=wt.prototype.Ua,wt.prototype.add=function(R){return new wt((this.lo+R.lo&4294967295)>>>0>>>0,((this.hi+R.hi&4294967295)>>>0)+(4294967296<=this.lo+R.lo?1:0)>>>0)},wt.prototype.add=wt.prototype.add,wt.prototype.sub=function(R){return new wt((this.lo-R.lo&4294967295)>>>0>>>0,((this.hi-R.hi&4294967295)>>>0)-(0>this.lo-R.lo?1:0)>>>0)},wt.prototype.sub=wt.prototype.sub;function Gt(R,$){var J=R&65535;R>>>=16;var Oe=$&65535,qe=$>>>16;for($=J*Oe+65536*(J*qe&65535)+65536*(R*Oe&65535),J=R*qe+(J*qe>>>16)+(R*Oe>>>16);4294967296<=$;)$-=4294967296,J+=1;return new wt($>>>0,J>>>0)}wt.mul32x32=Gt,wt.prototype.eb=function(R){var $=Gt(this.lo,R);return R=Gt(this.hi,R),R.hi=R.lo,R.lo=0,$.add(R)},wt.prototype.mul=wt.prototype.eb,wt.prototype.Xa=function(R){if(R==0)return[];var $=new wt(0,0),J=new wt(this.lo,this.hi);R=new wt(R,0);for(var Oe=new wt(1,0);!R.cb();)R=R.Da(),Oe=Oe.Da();for(;!Oe.Ua();)0>=R.cmp(J)&&($=$.add(Oe),J=J.sub(R)),R=R.La(),Oe=Oe.La();return[$,J]},wt.prototype.div=wt.prototype.Xa,wt.prototype.toString=function(){for(var R="",$=this;!$.Ua();){$=$.Xa(10);var J=$[0];R=$[1].lo+R,$=J}return R==""&&(R="0"),R},wt.prototype.toString=wt.prototype.toString;function $t(R){for(var $=new wt(0,0),J=new wt(0,0),Oe=0;Oe<R.length;Oe++){if("0">R[Oe]||"9"<R[Oe])return null;J.lo=parseInt(R[Oe],10),$=$.eb(10).add(J)}return $}wt.fromString=$t,wt.prototype.clone=function(){return new wt(this.lo,this.hi)},wt.prototype.clone=wt.prototype.clone;function zt(R,$){this.lo=R,this.hi=$}f("jspb.arith.Int64",zt,void 0),zt.prototype.add=function(R){return new zt((this.lo+R.lo&4294967295)>>>0>>>0,((this.hi+R.hi&4294967295)>>>0)+(4294967296<=this.lo+R.lo?1:0)>>>0)},zt.prototype.add=zt.prototype.add,zt.prototype.sub=function(R){return new zt((this.lo-R.lo&4294967295)>>>0>>>0,((this.hi-R.hi&4294967295)>>>0)-(0>this.lo-R.lo?1:0)>>>0)},zt.prototype.sub=zt.prototype.sub,zt.prototype.clone=function(){return new zt(this.lo,this.hi)},zt.prototype.clone=zt.prototype.clone,zt.prototype.toString=function(){var R=(this.hi&2147483648)!=0,$=new wt(this.lo,this.hi);return R&&($=new wt(0,0).sub($)),(R?"-":"")+$.toString()},zt.prototype.toString=zt.prototype.toString;function Ft(R){var $=0<R.length&&R[0]=="-";return $&&(R=R.substring(1)),R=$t(R),R===null?null:($&&(R=new wt(0,0).sub(R)),new zt(R.lo,R.hi))}zt.fromString=Ft;function De(){this.c=[],this.b=0,this.a=new at,this.h=[]}f("jspb.BinaryWriter",De,void 0);function Ct(R,$){var J=R.a.end();R.c.push(J),R.c.push($),R.b+=J.length+$.length}function et(R,$){return At(R,$,2),$=R.a.end(),R.c.push($),R.b+=$.length,$.push(R.b),$}function Ot(R,$){var J=$.pop();for(J=R.b+R.a.length()-J,C(0<=J);127<J;)$.push(J&127|128),J>>>=7,R.b++;$.push(J),R.b++}De.prototype.pb=function(R,$,J){Ct(this,R.subarray($,J))},De.prototype.writeSerializedMessage=De.prototype.pb,De.prototype.Pb=function(R,$,J){R!=null&&$!=null&&J!=null&&this.pb(R,$,J)},De.prototype.maybeWriteSerializedMessage=De.prototype.Pb,De.prototype.reset=function(){this.c=[],this.a.end(),this.b=0,this.h=[]},De.prototype.reset=De.prototype.reset,De.prototype.ab=function(){C(this.h.length==0);for(var R=new Uint8Array(this.b+this.a.length()),$=this.c,J=$.length,Oe=0,qe=0;qe<J;qe++){var Qe=$[qe];R.set(Qe,Oe),Oe+=Qe.length}return $=this.a.end(),R.set($,Oe),Oe+=$.length,C(Oe==R.length),this.c=[R],R},De.prototype.getResultBuffer=De.prototype.ab,De.prototype.Kb=function(R){return H(this.ab(),R)},De.prototype.getResultBase64String=De.prototype.Kb,De.prototype.Va=function(R){this.h.push(et(this,R))},De.prototype.beginSubMessage=De.prototype.Va,De.prototype.Ya=function(){C(0<=this.h.length),Ot(this,this.h.pop())},De.prototype.endSubMessage=De.prototype.Ya;function At(R,$,J){C(1<=$&&$==Math.floor($)),R.a.j(8*$+J)}De.prototype.Nc=function(R,$,J){switch(R){case 1:this.J($,J);break;case 2:this.L($,J);break;case 3:this.T($,J);break;case 4:this.V($,J);break;case 5:this.S($,J);break;case 6:this.Qa($,J);break;case 7:this.Pa($,J);break;case 8:this.I($,J);break;case 9:this.U($,J);break;case 10:T("Group field type not supported in writeAny()");break;case 11:T("Message field type not supported in writeAny()");break;case 12:this.ja($,J);break;case 13:this.s($,J);break;case 14:this.R($,J);break;case 15:this.Ra($,J);break;case 16:this.Sa($,J);break;case 17:this.rb($,J);break;case 18:this.sb($,J);break;case 30:this.K($,J);break;case 31:this.N($,J);break;default:T("Invalid field type in writeAny()")}},De.prototype.writeAny=De.prototype.Nc;function _n(R,$,J){J!=null&&(At(R,$,0),R.a.j(J))}function zn(R,$,J){J!=null&&(At(R,$,0),R.a.M(J))}De.prototype.S=function(R,$){$!=null&&(C(-2147483648<=$&&2147483648>$),zn(this,R,$))},De.prototype.writeInt32=De.prototype.S,De.prototype.ob=function(R,$){$!=null&&($=parseInt($,10),C(-2147483648<=$&&2147483648>$),zn(this,R,$))},De.prototype.writeInt32String=De.prototype.ob,De.prototype.T=function(R,$){$!=null&&(C(-9223372036854776e3<=$&&9223372036854776e3>$),$!=null&&(At(this,R,0),this.a.ua($)))},De.prototype.writeInt64=De.prototype.T,De.prototype.ka=function(R,$){$!=null&&($=Ft($),At(this,R,0),this.a.l($.lo,$.hi))},De.prototype.writeInt64String=De.prototype.ka,De.prototype.s=function(R,$){$!=null&&(C(0<=$&&4294967296>$),_n(this,R,$))},De.prototype.writeUint32=De.prototype.s,De.prototype.ub=function(R,$){$!=null&&($=parseInt($,10),C(0<=$&&4294967296>$),_n(this,R,$))},De.prototype.writeUint32String=De.prototype.ub,De.prototype.V=function(R,$){$!=null&&(C(0<=$&&18446744073709552e3>$),$!=null&&(At(this,R,0),this.a.va($)))},De.prototype.writeUint64=De.prototype.V,De.prototype.vb=function(R,$){$!=null&&($=$t($),At(this,R,0),this.a.l($.lo,$.hi))},De.prototype.writeUint64String=De.prototype.vb,De.prototype.rb=function(R,$){$!=null&&(C(-2147483648<=$&&2147483648>$),$!=null&&(At(this,R,0),this.a.wa($)))},De.prototype.writeSint32=De.prototype.rb,De.prototype.sb=function(R,$){$!=null&&(C(-9223372036854776e3<=$&&9223372036854776e3>$),$!=null&&(At(this,R,0),this.a.xa($)))},De.prototype.writeSint64=De.prototype.sb,De.prototype.$d=function(R,$){$!=null&&$!=null&&(At(this,R,0),this.a.W($))},De.prototype.writeSintHash64=De.prototype.$d,De.prototype.Zd=function(R,$){$!=null&&$!=null&&(At(this,R,0),this.a.Ta($))},De.prototype.writeSint64String=De.prototype.Zd,De.prototype.Pa=function(R,$){$!=null&&(C(0<=$&&4294967296>$),At(this,R,5),this.a.s($))},De.prototype.writeFixed32=De.prototype.Pa,De.prototype.Qa=function(R,$){$!=null&&(C(0<=$&&18446744073709552e3>$),At(this,R,1),this.a.V($))},De.prototype.writeFixed64=De.prototype.Qa,De.prototype.nb=function(R,$){$!=null&&($=$t($),At(this,R,1),this.a.A($.lo,$.hi))},De.prototype.writeFixed64String=De.prototype.nb,De.prototype.Ra=function(R,$){$!=null&&(C(-2147483648<=$&&2147483648>$),At(this,R,5),this.a.S($))},De.prototype.writeSfixed32=De.prototype.Ra,De.prototype.Sa=function(R,$){$!=null&&(C(-9223372036854776e3<=$&&9223372036854776e3>$),At(this,R,1),this.a.T($))},De.prototype.writeSfixed64=De.prototype.Sa,De.prototype.qb=function(R,$){$!=null&&($=Ft($),At(this,R,1),this.a.A($.lo,$.hi))},De.prototype.writeSfixed64String=De.prototype.qb,De.prototype.L=function(R,$){$!=null&&(At(this,R,5),this.a.L($))},De.prototype.writeFloat=De.prototype.L,De.prototype.J=function(R,$){$!=null&&(At(this,R,1),this.a.J($))},De.prototype.writeDouble=De.prototype.J,De.prototype.I=function(R,$){$!=null&&(C(typeof $=="boolean"||typeof $=="number"),At(this,R,0),this.a.I($))},De.prototype.writeBool=De.prototype.I,De.prototype.R=function(R,$){$!=null&&(C(-2147483648<=$&&2147483648>$),At(this,R,0),this.a.M($))},De.prototype.writeEnum=De.prototype.R,De.prototype.U=function(R,$){$!=null&&(R=et(this,R),this.a.U($),Ot(this,R))},De.prototype.writeString=De.prototype.U,De.prototype.ja=function(R,$){$!=null&&($=ye($),At(this,R,2),this.a.j($.length),Ct(this,$))},De.prototype.writeBytes=De.prototype.ja,De.prototype.Rc=function(R,$,J){$!=null&&(R=et(this,R),J($,this),Ot(this,R))},De.prototype.writeMessage=De.prototype.Rc,De.prototype.Sc=function(R,$,J){$!=null&&(At(this,1,3),At(this,2,0),this.a.M(R),R=et(this,3),J($,this),Ot(this,R),At(this,1,4))},De.prototype.writeMessageSet=De.prototype.Sc,De.prototype.Oc=function(R,$,J){$!=null&&(At(this,R,3),J($,this),At(this,R,4))},De.prototype.writeGroup=De.prototype.Oc,De.prototype.K=function(R,$){$!=null&&(C($.length==8),At(this,R,1),this.a.K($))},De.prototype.writeFixedHash64=De.prototype.K,De.prototype.N=function(R,$){$!=null&&(C($.length==8),At(this,R,0),this.a.N($))},De.prototype.writeVarintHash64=De.prototype.N,De.prototype.A=function(R,$,J){At(this,R,1),this.a.A($,J)},De.prototype.writeSplitFixed64=De.prototype.A,De.prototype.l=function(R,$,J){At(this,R,0),this.a.l($,J)},De.prototype.writeSplitVarint64=De.prototype.l,De.prototype.tb=function(R,$,J){At(this,R,0);var Oe=this.a;ve($,J,function(qe,Qe){Oe.l(qe>>>0,Qe>>>0)})},De.prototype.writeSplitZigzagVarint64=De.prototype.tb,De.prototype.Ed=function(R,$){if($!=null)for(var J=0;J<$.length;J++)zn(this,R,$[J])},De.prototype.writeRepeatedInt32=De.prototype.Ed,De.prototype.Fd=function(R,$){if($!=null)for(var J=0;J<$.length;J++)this.ob(R,$[J])},De.prototype.writeRepeatedInt32String=De.prototype.Fd,De.prototype.Gd=function(R,$){if($!=null)for(var J=0;J<$.length;J++){var Oe=$[J];Oe!=null&&(At(this,R,0),this.a.ua(Oe))}},De.prototype.writeRepeatedInt64=De.prototype.Gd,De.prototype.Qd=function(R,$,J,Oe){if($!=null)for(var qe=0;qe<$.length;qe++)this.A(R,J($[qe]),Oe($[qe]))},De.prototype.writeRepeatedSplitFixed64=De.prototype.Qd,De.prototype.Rd=function(R,$,J,Oe){if($!=null)for(var qe=0;qe<$.length;qe++)this.l(R,J($[qe]),Oe($[qe]))},De.prototype.writeRepeatedSplitVarint64=De.prototype.Rd,De.prototype.Sd=function(R,$,J,Oe){if($!=null)for(var qe=0;qe<$.length;qe++)this.tb(R,J($[qe]),Oe($[qe]))},De.prototype.writeRepeatedSplitZigzagVarint64=De.prototype.Sd,De.prototype.Hd=function(R,$){if($!=null)for(var J=0;J<$.length;J++)this.ka(R,$[J])},De.prototype.writeRepeatedInt64String=De.prototype.Hd,De.prototype.Ud=function(R,$){if($!=null)for(var J=0;J<$.length;J++)_n(this,R,$[J])},De.prototype.writeRepeatedUint32=De.prototype.Ud,De.prototype.Vd=function(R,$){if($!=null)for(var J=0;J<$.length;J++)this.ub(R,$[J])},De.prototype.writeRepeatedUint32String=De.prototype.Vd,De.prototype.Wd=function(R,$){if($!=null)for(var J=0;J<$.length;J++){var Oe=$[J];Oe!=null&&(At(this,R,0),this.a.va(Oe))}},De.prototype.writeRepeatedUint64=De.prototype.Wd,De.prototype.Xd=function(R,$){if($!=null)for(var J=0;J<$.length;J++)this.vb(R,$[J])},De.prototype.writeRepeatedUint64String=De.prototype.Xd,De.prototype.Md=function(R,$){if($!=null)for(var J=0;J<$.length;J++){var Oe=$[J];Oe!=null&&(At(this,R,0),this.a.wa(Oe))}},De.prototype.writeRepeatedSint32=De.prototype.Md,De.prototype.Nd=function(R,$){if($!=null)for(var J=0;J<$.length;J++){var Oe=$[J];Oe!=null&&(At(this,R,0),this.a.xa(Oe))}},De.prototype.writeRepeatedSint64=De.prototype.Nd,De.prototype.Od=function(R,$){if($!=null)for(var J=0;J<$.length;J++){var Oe=$[J];Oe!=null&&(At(this,R,0),this.a.Ta(Oe))}},De.prototype.writeRepeatedSint64String=De.prototype.Od,De.prototype.Pd=function(R,$){if($!=null)for(var J=0;J<$.length;J++){var Oe=$[J];Oe!=null&&(At(this,R,0),this.a.W(Oe))}},De.prototype.writeRepeatedSintHash64=De.prototype.Pd,De.prototype.yd=function(R,$){if($!=null)for(var J=0;J<$.length;J++)this.Pa(R,$[J])},De.prototype.writeRepeatedFixed32=De.prototype.yd,De.prototype.zd=function(R,$){if($!=null)for(var J=0;J<$.length;J++)this.Qa(R,$[J])},De.prototype.writeRepeatedFixed64=De.prototype.zd,De.prototype.Ad=function(R,$){if($!=null)for(var J=0;J<$.length;J++)this.nb(R,$[J])},De.prototype.writeRepeatedFixed64String=De.prototype.Ad,De.prototype.Jd=function(R,$){if($!=null)for(var J=0;J<$.length;J++)this.Ra(R,$[J])},De.prototype.writeRepeatedSfixed32=De.prototype.Jd,De.prototype.Kd=function(R,$){if($!=null)for(var J=0;J<$.length;J++)this.Sa(R,$[J])},De.prototype.writeRepeatedSfixed64=De.prototype.Kd,De.prototype.Ld=function(R,$){if($!=null)for(var J=0;J<$.length;J++)this.qb(R,$[J])},De.prototype.writeRepeatedSfixed64String=De.prototype.Ld,De.prototype.Cd=function(R,$){if($!=null)for(var J=0;J<$.length;J++)this.L(R,$[J])},De.prototype.writeRepeatedFloat=De.prototype.Cd,De.prototype.wd=function(R,$){if($!=null)for(var J=0;J<$.length;J++)this.J(R,$[J])},De.prototype.writeRepeatedDouble=De.prototype.wd,De.prototype.ud=function(R,$){if($!=null)for(var J=0;J<$.length;J++)this.I(R,$[J])},De.prototype.writeRepeatedBool=De.prototype.ud,De.prototype.xd=function(R,$){if($!=null)for(var J=0;J<$.length;J++)this.R(R,$[J])},De.prototype.writeRepeatedEnum=De.prototype.xd,De.prototype.Td=function(R,$){if($!=null)for(var J=0;J<$.length;J++)this.U(R,$[J])},De.prototype.writeRepeatedString=De.prototype.Td,De.prototype.vd=function(R,$){if($!=null)for(var J=0;J<$.length;J++)this.ja(R,$[J])},De.prototype.writeRepeatedBytes=De.prototype.vd,De.prototype.Id=function(R,$,J){if($!=null)for(var Oe=0;Oe<$.length;Oe++){var qe=et(this,R);J($[Oe],this),Ot(this,qe)}},De.prototype.writeRepeatedMessage=De.prototype.Id,De.prototype.Dd=function(R,$,J){if($!=null)for(var Oe=0;Oe<$.length;Oe++)At(this,R,3),J($[Oe],this),At(this,R,4)},De.prototype.writeRepeatedGroup=De.prototype.Dd,De.prototype.Bd=function(R,$){if($!=null)for(var J=0;J<$.length;J++)this.K(R,$[J])},De.prototype.writeRepeatedFixedHash64=De.prototype.Bd,De.prototype.Yd=function(R,$){if($!=null)for(var J=0;J<$.length;J++)this.N(R,$[J])},De.prototype.writeRepeatedVarintHash64=De.prototype.Yd,De.prototype.ad=function(R,$){if($!=null&&$.length){R=et(this,R);for(var J=0;J<$.length;J++)this.a.M($[J]);Ot(this,R)}},De.prototype.writePackedInt32=De.prototype.ad,De.prototype.bd=function(R,$){if($!=null&&$.length){R=et(this,R);for(var J=0;J<$.length;J++)this.a.M(parseInt($[J],10));Ot(this,R)}},De.prototype.writePackedInt32String=De.prototype.bd,De.prototype.cd=function(R,$){if($!=null&&$.length){R=et(this,R);for(var J=0;J<$.length;J++)this.a.ua($[J]);Ot(this,R)}},De.prototype.writePackedInt64=De.prototype.cd,De.prototype.md=function(R,$,J,Oe){if($!=null){R=et(this,R);for(var qe=0;qe<$.length;qe++)this.a.A(J($[qe]),Oe($[qe]));Ot(this,R)}},De.prototype.writePackedSplitFixed64=De.prototype.md,De.prototype.nd=function(R,$,J,Oe){if($!=null){R=et(this,R);for(var qe=0;qe<$.length;qe++)this.a.l(J($[qe]),Oe($[qe]));Ot(this,R)}},De.prototype.writePackedSplitVarint64=De.prototype.nd,De.prototype.od=function(R,$,J,Oe){if($!=null){R=et(this,R);for(var qe=this.a,Qe=0;Qe<$.length;Qe++)ve(J($[Qe]),Oe($[Qe]),function(Bt,fn){qe.l(Bt>>>0,fn>>>0)});Ot(this,R)}},De.prototype.writePackedSplitZigzagVarint64=De.prototype.od,De.prototype.dd=function(R,$){if($!=null&&$.length){R=et(this,R);for(var J=0;J<$.length;J++){var Oe=Ft($[J]);this.a.l(Oe.lo,Oe.hi)}Ot(this,R)}},De.prototype.writePackedInt64String=De.prototype.dd,De.prototype.pd=function(R,$){if($!=null&&$.length){R=et(this,R);for(var J=0;J<$.length;J++)this.a.j($[J]);Ot(this,R)}},De.prototype.writePackedUint32=De.prototype.pd,De.prototype.qd=function(R,$){if($!=null&&$.length){R=et(this,R);for(var J=0;J<$.length;J++)this.a.j(parseInt($[J],10));Ot(this,R)}},De.prototype.writePackedUint32String=De.prototype.qd,De.prototype.rd=function(R,$){if($!=null&&$.length){R=et(this,R);for(var J=0;J<$.length;J++)this.a.va($[J]);Ot(this,R)}},De.prototype.writePackedUint64=De.prototype.rd,De.prototype.sd=function(R,$){if($!=null&&$.length){R=et(this,R);for(var J=0;J<$.length;J++){var Oe=$t($[J]);this.a.l(Oe.lo,Oe.hi)}Ot(this,R)}},De.prototype.writePackedUint64String=De.prototype.sd,De.prototype.hd=function(R,$){if($!=null&&$.length){R=et(this,R);for(var J=0;J<$.length;J++)this.a.wa($[J]);Ot(this,R)}},De.prototype.writePackedSint32=De.prototype.hd,De.prototype.jd=function(R,$){if($!=null&&$.length){R=et(this,R);for(var J=0;J<$.length;J++)this.a.xa($[J]);Ot(this,R)}},De.prototype.writePackedSint64=De.prototype.jd,De.prototype.kd=function(R,$){if($!=null&&$.length){R=et(this,R);for(var J=0;J<$.length;J++)this.a.W(q($[J]));Ot(this,R)}},De.prototype.writePackedSint64String=De.prototype.kd,De.prototype.ld=function(R,$){if($!=null&&$.length){R=et(this,R);for(var J=0;J<$.length;J++)this.a.W($[J]);Ot(this,R)}},De.prototype.writePackedSintHash64=De.prototype.ld,De.prototype.Wc=function(R,$){if($!=null&&$.length)for(At(this,R,2),this.a.j(4*$.length),R=0;R<$.length;R++)this.a.s($[R])},De.prototype.writePackedFixed32=De.prototype.Wc,De.prototype.Xc=function(R,$){if($!=null&&$.length)for(At(this,R,2),this.a.j(8*$.length),R=0;R<$.length;R++)this.a.V($[R])},De.prototype.writePackedFixed64=De.prototype.Xc,De.prototype.Yc=function(R,$){if($!=null&&$.length)for(At(this,R,2),this.a.j(8*$.length),R=0;R<$.length;R++){var J=$t($[R]);this.a.A(J.lo,J.hi)}},De.prototype.writePackedFixed64String=De.prototype.Yc,De.prototype.ed=function(R,$){if($!=null&&$.length)for(At(this,R,2),this.a.j(4*$.length),R=0;R<$.length;R++)this.a.S($[R])},De.prototype.writePackedSfixed32=De.prototype.ed,De.prototype.fd=function(R,$){if($!=null&&$.length)for(At(this,R,2),this.a.j(8*$.length),R=0;R<$.length;R++)this.a.T($[R])},De.prototype.writePackedSfixed64=De.prototype.fd,De.prototype.gd=function(R,$){if($!=null&&$.length)for(At(this,R,2),this.a.j(8*$.length),R=0;R<$.length;R++)this.a.ka($[R])},De.prototype.writePackedSfixed64String=De.prototype.gd,De.prototype.$c=function(R,$){if($!=null&&$.length)for(At(this,R,2),this.a.j(4*$.length),R=0;R<$.length;R++)this.a.L($[R])},De.prototype.writePackedFloat=De.prototype.$c,De.prototype.Uc=function(R,$){if($!=null&&$.length)for(At(this,R,2),this.a.j(8*$.length),R=0;R<$.length;R++)this.a.J($[R])},De.prototype.writePackedDouble=De.prototype.Uc,De.prototype.Tc=function(R,$){if($!=null&&$.length)for(At(this,R,2),this.a.j($.length),R=0;R<$.length;R++)this.a.I($[R])},De.prototype.writePackedBool=De.prototype.Tc,De.prototype.Vc=function(R,$){if($!=null&&$.length){R=et(this,R);for(var J=0;J<$.length;J++)this.a.R($[J]);Ot(this,R)}},De.prototype.writePackedEnum=De.prototype.Vc,De.prototype.Zc=function(R,$){if($!=null&&$.length)for(At(this,R,2),this.a.j(8*$.length),R=0;R<$.length;R++)this.a.K($[R])},De.prototype.writePackedFixedHash64=De.prototype.Zc,De.prototype.td=function(R,$){if($!=null&&$.length){R=et(this,R);for(var J=0;J<$.length;J++)this.a.N($[J]);Ot(this,R)}},De.prototype.writePackedVarintHash64=De.prototype.td,e.debug=Vt,e.Map=N,e.Message=Ge,e.BinaryReader=ie,e.BinaryWriter=De,e.ExtensionFieldInfo=Ke,e.ExtensionFieldBinaryInfo=tt,e.exportSymbol=g,e.inherits=v,e.object={extend:b},e.typeOf=p})(On);const MXt=oi(On),rX=Wk({__proto__:null,default:MXt},[On]);var iX=rX,eV=(function(){return this?this:typeof window<"u"?window:typeof eV<"u"?eV:typeof self<"u"?self:Function("return this")()}).call(null);iX.exportSymbol("proto.User",null,eV);proto.User=function(e){On.Message.initialize(this,e,0,-1,null,null)};iX.inherits(proto.User,On.Message);iX.DEBUG&&!COMPILED&&(proto.User.displayName="proto.User");On.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:On.Message.getFieldWithDefault(t,1,""),nickname:On.Message.getFieldWithDefault(t,2,""),avatar:On.Message.getFieldWithDefault(t,3,""),type:On.Message.getFieldWithDefault(t,4,""),extra:On.Message.getFieldWithDefault(t,5,"")};return e&&(n.$jspbMessageInstance=t),n});proto.User.deserializeBinary=function(e){var t=new On.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 On.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 On.Message.getFieldWithDefault(this,1,"")};proto.User.prototype.setUid=function(e){return On.Message.setProto3StringField(this,1,e)};proto.User.prototype.getNickname=function(){return On.Message.getFieldWithDefault(this,2,"")};proto.User.prototype.setNickname=function(e){return On.Message.setProto3StringField(this,2,e)};proto.User.prototype.getAvatar=function(){return On.Message.getFieldWithDefault(this,3,"")};proto.User.prototype.setAvatar=function(e){return On.Message.setProto3StringField(this,3,e)};proto.User.prototype.getType=function(){return On.Message.getFieldWithDefault(this,4,"")};proto.User.prototype.setType=function(e){return On.Message.setProto3StringField(this,4,e)};proto.User.prototype.getExtra=function(){return On.Message.getFieldWithDefault(this,5,"")};proto.User.prototype.setExtra=function(e){return On.Message.setProto3StringField(this,5,e)};const Due=proto;var oX=rX,tV=(function(){return this?this:typeof window<"u"?window:typeof tV<"u"?tV:typeof self<"u"?self:Function("return this")()}).call(null);oX.exportSymbol("proto.Thread",null,tV);proto.Thread=function(e){On.Message.initialize(this,e,0,-1,null,null)};oX.inherits(proto.Thread,On.Message);oX.DEBUG&&!COMPILED&&(proto.Thread.displayName="proto.Thread");On.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:On.Message.getFieldWithDefault(t,1,""),topic:On.Message.getFieldWithDefault(t,2,""),type:On.Message.getFieldWithDefault(t,3,""),state:On.Message.getFieldWithDefault(t,4,""),user:(n=t.getUser())&&proto.User.toObject(e,n),client:On.Message.getFieldWithDefault(t,6,""),extra:On.Message.getFieldWithDefault(t,7,"")};return e&&(r.$jspbMessageInstance=t),r});proto.Thread.deserializeBinary=function(e){var t=new On.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.setClient(r);break;case 7:var r=t.readString();e.setExtra(r);break;default:t.skipField();break}}return e};proto.Thread.prototype.serializeBinary=function(){var e=new On.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.getClient(),n.length>0&&t.writeString(6,n),n=e.getExtra(),n.length>0&&t.writeString(7,n)};proto.Thread.prototype.getUid=function(){return On.Message.getFieldWithDefault(this,1,"")};proto.Thread.prototype.setUid=function(e){return On.Message.setProto3StringField(this,1,e)};proto.Thread.prototype.getTopic=function(){return On.Message.getFieldWithDefault(this,2,"")};proto.Thread.prototype.setTopic=function(e){return On.Message.setProto3StringField(this,2,e)};proto.Thread.prototype.getType=function(){return On.Message.getFieldWithDefault(this,3,"")};proto.Thread.prototype.setType=function(e){return On.Message.setProto3StringField(this,3,e)};proto.Thread.prototype.getState=function(){return On.Message.getFieldWithDefault(this,4,"")};proto.Thread.prototype.setState=function(e){return On.Message.setProto3StringField(this,4,e)};proto.Thread.prototype.getUser=function(){return On.Message.getWrapperField(this,proto.User,5)};proto.Thread.prototype.setUser=function(e){return On.Message.setWrapperField(this,5,e)};proto.Thread.prototype.clearUser=function(){return this.setUser(void 0)};proto.Thread.prototype.hasUser=function(){return On.Message.getField(this,5)!=null};proto.Thread.prototype.getClient=function(){return On.Message.getFieldWithDefault(this,6,"")};proto.Thread.prototype.setClient=function(e){return On.Message.setProto3StringField(this,6,e)};proto.Thread.prototype.getExtra=function(){return On.Message.getFieldWithDefault(this,7,"")};proto.Thread.prototype.setExtra=function(e){return On.Message.setProto3StringField(this,7,e)};const kXt=proto;var aX=rX,nV=(function(){return this?this:typeof window<"u"?window:typeof nV<"u"?nV:typeof self<"u"?self:Function("return this")()}).call(null);aX.exportSymbol("proto.Message",null,nV);proto.Message=function(e){On.Message.initialize(this,e,0,-1,null,null)};aX.inherits(proto.Message,On.Message);aX.DEBUG&&!COMPILED&&(proto.Message.displayName="proto.Message");On.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:On.Message.getFieldWithDefault(t,1,""),type:On.Message.getFieldWithDefault(t,2,""),content:On.Message.getFieldWithDefault(t,3,""),status:On.Message.getFieldWithDefault(t,4,""),createdat:On.Message.getFieldWithDefault(t,5,""),client:On.Message.getFieldWithDefault(t,6,""),thread:(n=t.getThread())&&proto.Thread.toObject(e,n),user:(n=t.getUser())&&proto.User.toObject(e,n),extra:On.Message.getFieldWithDefault(t,9,"")};return e&&(r.$jspbMessageInstance=t),r});proto.Message.deserializeBinary=function(e){var t=new On.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 On.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 On.Message.getFieldWithDefault(this,1,"")};proto.Message.prototype.setUid=function(e){return On.Message.setProto3StringField(this,1,e)};proto.Message.prototype.getType=function(){return On.Message.getFieldWithDefault(this,2,"")};proto.Message.prototype.setType=function(e){return On.Message.setProto3StringField(this,2,e)};proto.Message.prototype.getContent=function(){return On.Message.getFieldWithDefault(this,3,"")};proto.Message.prototype.setContent=function(e){return On.Message.setProto3StringField(this,3,e)};proto.Message.prototype.getStatus=function(){return On.Message.getFieldWithDefault(this,4,"")};proto.Message.prototype.setStatus=function(e){return On.Message.setProto3StringField(this,4,e)};proto.Message.prototype.getCreatedat=function(){return On.Message.getFieldWithDefault(this,5,"")};proto.Message.prototype.setCreatedat=function(e){return On.Message.setProto3StringField(this,5,e)};proto.Message.prototype.getClient=function(){return On.Message.getFieldWithDefault(this,6,"")};proto.Message.prototype.setClient=function(e){return On.Message.setProto3StringField(this,6,e)};proto.Message.prototype.getThread=function(){return On.Message.getWrapperField(this,proto.Thread,7)};proto.Message.prototype.setThread=function(e){return On.Message.setWrapperField(this,7,e)};proto.Message.prototype.clearThread=function(){return this.setThread(void 0)};proto.Message.prototype.hasThread=function(){return On.Message.getField(this,7)!=null};proto.Message.prototype.getUser=function(){return On.Message.getWrapperField(this,proto.User,8)};proto.Message.prototype.setUser=function(e){return On.Message.setWrapperField(this,8,e)};proto.Message.prototype.clearUser=function(){return this.setUser(void 0)};proto.Message.prototype.hasUser=function(){return On.Message.getField(this,8)!=null};proto.Message.prototype.getExtra=function(){return On.Message.getFieldWithDefault(this,9,"")};proto.Message.prototype.setExtra=function(e){return On.Message.setProto3StringField(this,9,e)};const T4e=proto,PXt="modulepreload",DXt=function(e){return"/notebase/"+e},Lue={},sX=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=DXt(l),l in Lue)return;Lue[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":PXt,c||(d.as="script"),d.crossOrigin="",d.href=l,s&&d.setAttribute("nonce",s),document.head.appendChild(d),c)return new Promise((f,p)=>{d.addEventListener("load",f),d.addEventListener("error",()=>p(new Error(`Unable to preload CSS for ${l}`)))})}))}function o(a){const s=new Event("vite:preloadError",{cancelable:!0});if(s.payload=a,window.dispatchEvent(s),!s.defaultPrevented)throw a}return i.then(a=>{for(const s of a||[])s.status==="rejected"&&o(s.reason);return t().catch(o)})},Cf=Ac()(Pd(Dd(Ld((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===qee)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===D7e)return t().addQueuingThread(n),0;const i=t().threads.some(c=>c.topic===n.topic),o=!MGe(r.type);if(kGe(r.type)&&(n.status=Yee),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:Yee}:i);e({threads:r})},addThreads(n){for(let r=0;r<n.length;r++){const i=n[r];if(i.status===qee){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}=Vl.getState();if(n!=null&&n.uid){const{threadService:r}=await sX(async()=>{const{threadService:i}=await import("./threadService-8LzSj7Rp.js");return{threadService:i}},[]);await r.loadThreads(n.uid)}},setPagination:n=>e({pagination:n})})),{name:g7e}))),Bg=Ac()(Pd(Dd(Ld((e,t)=>({messageList:[],addMessage(n){if(t().messageList.some(i=>i.uid===n.uid)){if(n.type===mw){const o=t().messageList.findIndex(a=>a.type===mw&&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===kB&&i.type===kB){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=ln(o.createdAt,"YYYY-MM-DD HH:mm:ss").valueOf(),l=ln(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=kve,i[r].content="该消息已被撤回",e({messageList:i})}},sortMessageList(){const n=t().messageList.sort((r,i)=>{const o=ln(r.createdAt,"YYYY-MM-DD HH:mm:ss").valueOf(),a=ln(i.createdAt,"YYYY-MM-DD HH:mm:ss").valueOf();return o-a});e({messageList:n})},resetMessageList(){e({messageList:[]})}})),{name:f7e})));async function LXt(e){return Br("/api/v1/message/rest/send",{method:"POST",data:{json:e,client:Or}})}var O4e={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(Wn,function(){var n=function(V,Z){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ge,Se){ge.__proto__=Se}||function(ge,Se){for(var ke in Se)Object.prototype.hasOwnProperty.call(Se,ke)&&(ge[ke]=Se[ke])})(V,Z)},r=function(){return(r=Object.assign||function(V){for(var Z,ge=1,Se=arguments.length;ge<Se;ge++)for(var ke in Z=arguments[ge])Object.prototype.hasOwnProperty.call(Z,ke)&&(V[ke]=Z[ke]);return V}).apply(this,arguments)};function i(V,Z,ge){for(var Se,ke=0,ze=Z.length;ke<ze;ke++)!Se&&ke in Z||((Se=Se||Array.prototype.slice.call(Z,0,ke))[ke]=Z[ke]);return V.concat(Se||Array.prototype.slice.call(Z))}var o=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:Wn,a=Object.keys,s=Array.isArray;function l(V,Z){return typeof Z!="object"||a(Z).forEach(function(ge){V[ge]=Z[ge]}),V}typeof Promise>"u"||o.Promise||(o.Promise=Promise);var c=Object.getPrototypeOf,u={}.hasOwnProperty;function d(V,Z){return u.call(V,Z)}function f(V,Z){typeof Z=="function"&&(Z=Z(c(V))),(typeof Reflect>"u"?a:Reflect.ownKeys)(Z).forEach(function(ge){m(V,ge,Z[ge])})}var p=Object.defineProperty;function m(V,Z,ge,Se){p(V,Z,l(ge&&d(ge,"get")&&typeof ge.get=="function"?{get:ge.get,set:ge.set,configurable:!0}:{value:ge,configurable:!0,writable:!0},Se))}function g(V){return{from:function(Z){return V.prototype=Object.create(Z.prototype),m(V.prototype,"constructor",V),{extend:f.bind(null,V.prototype)}}}}var v=Object.getOwnPropertyDescriptor,y=[].slice;function b(V,Z,ge){return y.call(V,Z,ge)}function _(V,Z){return Z(V)}function S(V){if(!V)throw new Error("Assertion Failed")}function x(V){o.setImmediate?setImmediate(V):setTimeout(V,0)}function E(V,Z){if(typeof Z=="string"&&d(V,Z))return V[Z];if(!Z)return V;if(typeof Z!="string"){for(var ge=[],Se=0,ke=Z.length;Se<ke;++Se){var ze=E(V,Z[Se]);ge.push(ze)}return ge}var Ye=Z.indexOf(".");if(Ye!==-1){var Ze=V[Z.substr(0,Ye)];return Ze==null?void 0:E(Ze,Z.substr(Ye+1))}}function C(V,Z,ge){if(V&&Z!==void 0&&!("isFrozen"in Object&&Object.isFrozen(V)))if(typeof Z!="string"&&"length"in Z){S(typeof ge!="string"&&"length"in ge);for(var Se=0,ke=Z.length;Se<ke;++Se)C(V,Z[Se],ge[Se])}else{var ze,Ye,Ze=Z.indexOf(".");Ze!==-1?(ze=Z.substr(0,Ze),(Ye=Z.substr(Ze+1))===""?ge===void 0?s(V)&&!isNaN(parseInt(ze))?V.splice(ze,1):delete V[ze]:V[ze]=ge:C(Ze=!(Ze=V[ze])||!d(V,ze)?V[ze]={}:Ze,Ye,ge)):ge===void 0?s(V)&&!isNaN(parseInt(Z))?V.splice(Z,1):delete V[Z]:V[Z]=ge}}function w(V){var Z,ge={};for(Z in V)d(V,Z)&&(ge[Z]=V[Z]);return ge}var O=[].concat;function T(V){return O.apply([],V)}var q="BigUint64Array,BigInt64Array,Array,Boolean,String,Date,RegExp,Blob,File,FileList,FileSystemFileHandle,FileSystemDirectoryHandle,ArrayBuffer,DataView,Uint8ClampedArray,ImageBitmap,ImageData,Map,Set,CryptoKey".split(",").concat(T([8,16,32,64].map(function(V){return["Int","Uint","Float"].map(function(Z){return Z+V+"Array"})}))).filter(function(V){return o[V]}),A=new Set(q.map(function(V){return o[V]})),I=null;function N(V){return I=new WeakMap,V=function Z(ge){if(!ge||typeof ge!="object")return ge;var Se=I.get(ge);if(Se)return Se;if(s(ge)){Se=[],I.set(ge,Se);for(var ke=0,ze=ge.length;ke<ze;++ke)Se.push(Z(ge[ke]))}else if(A.has(ge.constructor))Se=ge;else{var Ye,Ze=c(ge);for(Ye in Se=Ze===Object.prototype?{}:Object.create(Ze),I.set(ge,Se),ge)d(ge,Ye)&&(Se[Ye]=Z(ge[Ye]))}return Se}(V),I=null,V}var D={}.toString;function M(V){return D.call(V).slice(8,-1)}var k=typeof Symbol<"u"?Symbol.iterator:"@@iterator",P=typeof k=="symbol"?function(V){var Z;return V!=null&&(Z=V[k])&&Z.apply(V)}:function(){return null};function B(V,Z){return Z=V.indexOf(Z),0<=Z&&V.splice(Z,1),0<=Z}var G={};function L(V){var Z,ge,Se,ke;if(arguments.length===1){if(s(V))return V.slice();if(this===G&&typeof V=="string")return[V];if(ke=P(V)){for(ge=[];!(Se=ke.next()).done;)ge.push(Se.value);return ge}if(V==null)return[V];if(typeof(Z=V.length)!="number")return[V];for(ge=new Array(Z);Z--;)ge[Z]=V[Z];return ge}for(Z=arguments.length,ge=new Array(Z);Z--;)ge[Z]=arguments[Z];return ge}var W=typeof Symbol<"u"?function(V){return V[Symbol.toStringTag]==="AsyncFunction"}:function(){return!1},Ve=["Unknown","Constraint","Data","TransactionInactive","ReadOnly","Version","NotFound","InvalidState","InvalidAccess","Abort","Timeout","QuotaExceeded","Syntax","DataClone"],Dc=["Modify","Bulk","OpenFailed","VersionChange","Schema","Upgrade","InvalidTable","MissingAPI","NoSuchDatabase","InvalidArgument","SubTransaction","Unsupported","Internal","DatabaseClosed","PrematureCommit","ForeignAwait"].concat(Ve),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 H(V,Z){this.name=V,this.message=Z}function X(V,Z){return V+". Errors: "+Object.keys(Z).map(function(ge){return Z[ge].toString()}).filter(function(ge,Se,ke){return ke.indexOf(ge)===Se}).join(`
`)}function Q(V,Z,ge,Se){this.failures=Z,this.failedKeys=Se,this.successCount=ge,this.message=X(V,Z)}function ue(V,Z){this.name="BulkError",this.failures=Object.keys(Z).map(function(ge){return Z[ge]}),this.failuresByPos=Z,this.message=X(V,this.failures)}g(H).from(Error).extend({toString:function(){return this.name+": "+this.message}}),g(Q).from(H),g(ue).from(H);var ee=Dc.reduce(function(V,Z){return V[Z]=Z+"Error",V},{}),K=H,se=Dc.reduce(function(V,Z){var ge=Z+"Error";function Se(ke,ze){this.name=ge,ke?typeof ke=="string"?(this.message="".concat(ke).concat(ze?`
`+ze:""),this.inner=ze||null):typeof ke=="object"&&(this.message="".concat(ke.name," ").concat(ke.message),this.inner=ke):(this.message=j[Z]||ge,this.inner=null)}return g(Se).from(K),V[Z]=Se,V},{});se.Syntax=SyntaxError,se.Type=TypeError,se.Range=RangeError;var le=Ve.reduce(function(V,Z){return V[Z+"Error"]=se[Z],V},{}),oe=Dc.reduce(function(V,Z){return["Syntax","Type","Range"].indexOf(Z)===-1&&(V[Z+"Error"]=se[Z]),V},{});function ne(){}function he(V){return V}function me(V,Z){return V==null||V===he?Z:function(ge){return Z(V(ge))}}function ce(V,Z){return function(){V.apply(this,arguments),Z.apply(this,arguments)}}function re(V,Z){return V===ne?Z:function(){var ge=V.apply(this,arguments);ge!==void 0&&(arguments[0]=ge);var Se=this.onsuccess,ke=this.onerror;this.onsuccess=null,this.onerror=null;var ze=Z.apply(this,arguments);return Se&&(this.onsuccess=this.onsuccess?ce(Se,this.onsuccess):Se),ke&&(this.onerror=this.onerror?ce(ke,this.onerror):ke),ze!==void 0?ze:ge}}function ve(V,Z){return V===ne?Z:function(){V.apply(this,arguments);var ge=this.onsuccess,Se=this.onerror;this.onsuccess=this.onerror=null,Z.apply(this,arguments),ge&&(this.onsuccess=this.onsuccess?ce(ge,this.onsuccess):ge),Se&&(this.onerror=this.onerror?ce(Se,this.onerror):Se)}}function be(V,Z){return V===ne?Z:function(ge){var Se=V.apply(this,arguments);l(ge,Se);var ke=this.onsuccess,ze=this.onerror;return this.onsuccess=null,this.onerror=null,ge=Z.apply(this,arguments),ke&&(this.onsuccess=this.onsuccess?ce(ke,this.onsuccess):ke),ze&&(this.onerror=this.onerror?ce(ze,this.onerror):ze),Se===void 0?ge===void 0?void 0:ge:l(Se,ge)}}function xe(V,Z){return V===ne?Z:function(){return Z.apply(this,arguments)!==!1&&V.apply(this,arguments)}}function we(V,Z){return V===ne?Z:function(){var ge=V.apply(this,arguments);if(ge&&typeof ge.then=="function"){for(var Se=this,ke=arguments.length,ze=new Array(ke);ke--;)ze[ke]=arguments[ke];return ge.then(function(){return Z.apply(Se,ze)})}return Z.apply(this,arguments)}}oe.ModifyError=Q,oe.DexieError=H,oe.BulkError=ue;var de=typeof location<"u"&&/^(http|https):\/\/(localhost|127\.0\.0\.1)/.test(location.href);function Ee(V){de=V}var Ne={},Te=100,q=typeof Promise>"u"?[]:function(){var V=Promise.resolve();if(typeof crypto>"u"||!crypto.subtle)return[V,c(V),V];var Z=crypto.subtle.digest("SHA-512",new Uint8Array([0]));return[Z,c(Z),V]}(),Ve=q[0],Dc=q[1],q=q[2],Dc=Dc&&Dc.then,U=Ve&&Ve.constructor,Y=!!q,ae=function(V,Z){Pe.push([V,Z]),fe&&(queueMicrotask(Rt),fe=!1)},ye=!0,fe=!0,Ae=[],We=[],ie=he,Be={id:"global",global:!0,ref:0,unhandleds:[],onunhandled:ne,pgp:!1,env:{},finalize:ne},Fe=Be,Pe=[],Ke=0,tt=[];function Ge(V){if(typeof this!="object")throw new TypeError("Promises must be constructed via new");this._listeners=[],this._lib=!1;var Z=this._PSD=Fe;if(typeof V!="function"){if(V!==Ne)throw new TypeError("Not a function");return this._state=arguments[1],this._value=arguments[2],void(this._state===!1&&st(this,this._value))}this._state=null,this._value=null,++Z.ref,function ge(Se,ke){try{ke(function(ze){if(Se._state===null){if(ze===Se)throw new TypeError("A promise cannot be resolved with itself.");var Ye=Se._lib&&Tt();ze&&typeof ze.then=="function"?ge(Se,function(Ze,ut){ze instanceof Ge?ze._then(Ze,ut):ze.then(Ze,ut)}):(Se._state=!0,Se._value=ze,It(Se)),Ye&&Me()}},st.bind(null,Se))}catch(ze){st(Se,ze)}}(this,V)}var Nt={get:function(){var V=Fe,Z=Dt;function ge(Se,ke){var ze=this,Ye=!V.global&&(V!==Fe||Z!==Dt),Ze=Ye&&!ht(),ut=new Ge(function(pt,vt){ct(ze,new lt(zt(Se,V,Ye,Ze),zt(ke,V,Ye,Ze),pt,vt,V))});return this._consoleTask&&(ut._consoleTask=this._consoleTask),ut}return ge.prototype=Ne,ge},set:function(V){m(this,"then",V&&V.prototype===Ne?Nt:{get:function(){return V},set:Nt.set})}};function lt(V,Z,ge,Se,ke){this.onFulfilled=typeof V=="function"?V:null,this.onRejected=typeof Z=="function"?Z:null,this.resolve=ge,this.reject=Se,this.psd=ke}function st(V,Z){var ge,Se;We.push(Z),V._state===null&&(ge=V._lib&&Tt(),Z=ie(Z),V._state=!1,V._value=Z,Se=V,Ae.some(function(ke){return ke._value===Se._value})||Ae.push(Se),It(V),ge&&Me())}function It(V){var Z=V._listeners;V._listeners=[];for(var ge=0,Se=Z.length;ge<Se;++ge)ct(V,Z[ge]);var ke=V._PSD;--ke.ref||ke.finalize(),Ke===0&&(++Ke,ae(function(){--Ke==0&&Ue()},[]))}function ct(V,Z){if(V._state!==null){var ge=V._state?Z.onFulfilled:Z.onRejected;if(ge===null)return(V._state?Z.resolve:Z.reject)(V._value);++Z.psd.ref,++Ke,ae(Pt,[ge,V,Z])}else V._listeners.push(Z)}function Pt(V,Z,ge){try{var Se,ke=Z._value;!Z._state&&We.length&&(We=[]),Se=de&&Z._consoleTask?Z._consoleTask.run(function(){return V(ke)}):V(ke),Z._state||We.indexOf(ke)!==-1||function(ze){for(var Ye=Ae.length;Ye;)if(Ae[--Ye]._value===ze._value)return Ae.splice(Ye,1)}(Z),ge.resolve(Se)}catch(ze){ge.reject(ze)}finally{--Ke==0&&Ue(),--ge.psd.ref||ge.psd.finalize()}}function Rt(){$t(Be,function(){Tt()&&Me()})}function Tt(){var V=ye;return fe=ye=!1,V}function Me(){var V,Z,ge;do for(;0<Pe.length;)for(V=Pe,Pe=[],ge=V.length,Z=0;Z<ge;++Z){var Se=V[Z];Se[0].apply(null,Se[1])}while(0<Pe.length);fe=ye=!0}function Ue(){var V=Ae;Ae=[],V.forEach(function(Se){Se._PSD.onunhandled.call(null,Se._value,Se)});for(var Z=tt.slice(0),ge=Z.length;ge;)Z[--ge]()}function $e(V){return new Ge(Ne,!1,V)}function Le(V,Z){var ge=Fe;return function(){var Se=Tt(),ke=Fe;try{return wt(ge,!0),V.apply(this,arguments)}catch(ze){Z&&Z(ze)}finally{wt(ke,!1),Se&&Me()}}}f(Ge.prototype,{then:Nt,_then:function(V,Z){ct(this,new lt(null,null,V,Z,Fe))},catch:function(V){if(arguments.length===1)return this.then(null,V);var Z=V,ge=arguments[1];return typeof Z=="function"?this.then(null,function(Se){return(Se instanceof Z?ge:$e)(Se)}):this.then(null,function(Se){return(Se&&Se.name===Z?ge:$e)(Se)})},finally:function(V){return this.then(function(Z){return Ge.resolve(V()).then(function(){return Z})},function(Z){return Ge.resolve(V()).then(function(){return $e(Z)})})},timeout:function(V,Z){var ge=this;return V<1/0?new Ge(function(Se,ke){var ze=setTimeout(function(){return ke(new se.Timeout(Z))},V);ge.then(Se,ke).finally(clearTimeout.bind(null,ze))}):this}}),typeof Symbol<"u"&&Symbol.toStringTag&&m(Ge.prototype,Symbol.toStringTag,"Dexie.Promise"),Be.env=Gt(),f(Ge,{all:function(){var V=L.apply(null,arguments).map(Vt);return new Ge(function(Z,ge){V.length===0&&Z([]);var Se=V.length;V.forEach(function(ke,ze){return Ge.resolve(ke).then(function(Ye){V[ze]=Ye,--Se||Z(V)},ge)})})},resolve:function(V){return V instanceof Ge?V:V&&typeof V.then=="function"?new Ge(function(Z,ge){V.then(Z,ge)}):new Ge(Ne,!0,V)},reject:$e,race:function(){var V=L.apply(null,arguments).map(Vt);return new Ge(function(Z,ge){V.map(function(Se){return Ge.resolve(Se).then(Z,ge)})})},PSD:{get:function(){return Fe},set:function(V){return Fe=V}},totalEchoes:{get:function(){return Dt}},newPSD:bt,usePSD:$t,scheduler:{get:function(){return ae},set:function(V){ae=V}},rejectionMapper:{get:function(){return ie},set:function(V){ie=V}},follow:function(V,Z){return new Ge(function(ge,Se){return bt(function(ke,ze){var Ye=Fe;Ye.unhandleds=[],Ye.onunhandled=ze,Ye.finalize=ce(function(){var Ze,ut=this;Ze=function(){ut.unhandleds.length===0?ke():ze(ut.unhandleds[0])},tt.push(function pt(){Ze(),tt.splice(tt.indexOf(pt),1)}),++Ke,ae(function(){--Ke==0&&Ue()},[])},Ye.finalize),V()},Z,ge,Se)})}}),U&&(U.allSettled&&m(Ge,"allSettled",function(){var V=L.apply(null,arguments).map(Vt);return new Ge(function(Z){V.length===0&&Z([]);var ge=V.length,Se=new Array(ge);V.forEach(function(ke,ze){return Ge.resolve(ke).then(function(Ye){return Se[ze]={status:"fulfilled",value:Ye}},function(Ye){return Se[ze]={status:"rejected",reason:Ye}}).then(function(){return--ge||Z(Se)})})})}),U.any&&typeof AggregateError<"u"&&m(Ge,"any",function(){var V=L.apply(null,arguments).map(Vt);return new Ge(function(Z,ge){V.length===0&&ge(new AggregateError([]));var Se=V.length,ke=new Array(Se);V.forEach(function(ze,Ye){return Ge.resolve(ze).then(function(Ze){return Z(Ze)},function(Ze){ke[Ye]=Ze,--Se||ge(new AggregateError(ke))})})})}),U.withResolvers&&(Ge.withResolvers=U.withResolvers));var He={awaits:0,echoes:0,id:0},it=0,ft=[],Et=0,Dt=0,St=0;function bt(V,Z,ge,Se){var ke=Fe,ze=Object.create(ke);return ze.parent=ke,ze.ref=0,ze.global=!1,ze.id=++St,Be.env,ze.env=Y?{Promise:Ge,PromiseProp:{value:Ge,configurable:!0,writable:!0},all:Ge.all,race:Ge.race,allSettled:Ge.allSettled,any:Ge.any,resolve:Ge.resolve,reject:Ge.reject}:{},Z&&l(ze,Z),++ke.ref,ze.finalize=function(){--this.parent.ref||this.parent.finalize()},Se=$t(ze,V,ge,Se),ze.ref===0&&ze.finalize(),Se}function xt(){return He.id||(He.id=++it),++He.awaits,He.echoes+=Te,He.id}function ht(){return!!He.awaits&&(--He.awaits==0&&(He.id=0),He.echoes=He.awaits*Te,!0)}function Vt(V){return He.echoes&&V&&V.constructor===U?(xt(),V.then(function(Z){return ht(),Z},function(Z){return ht(),De(Z)})):V}function at(){var V=ft[ft.length-1];ft.pop(),wt(V,!1)}function wt(V,Z){var ge,Se=Fe;(Z?!He.echoes||Et++&&V===Fe:!Et||--Et&&V===Fe)||queueMicrotask(Z?(function(ke){++Dt,He.echoes&&--He.echoes!=0||(He.echoes=He.awaits=He.id=0),ft.push(Fe),wt(ke,!0)}).bind(null,V):at),V!==Fe&&(Fe=V,Se===Be&&(Be.env=Gt()),Y&&(ge=Be.env.Promise,Z=V.env,(Se.global||V.global)&&(Object.defineProperty(o,"Promise",Z.PromiseProp),ge.all=Z.all,ge.race=Z.race,ge.resolve=Z.resolve,ge.reject=Z.reject,Z.allSettled&&(ge.allSettled=Z.allSettled),Z.any&&(ge.any=Z.any))))}function Gt(){var V=o.Promise;return Y?{Promise:V,PromiseProp:Object.getOwnPropertyDescriptor(o,"Promise"),all:V.all,race:V.race,allSettled:V.allSettled,any:V.any,resolve:V.resolve,reject:V.reject}:{}}function $t(V,Z,ge,Se,ke){var ze=Fe;try{return wt(V,!0),Z(ge,Se,ke)}finally{wt(ze,!1)}}function zt(V,Z,ge,Se){return typeof V!="function"?V:function(){var ke=Fe;ge&&xt(),wt(Z,!0);try{return V.apply(this,arguments)}finally{wt(ke,!1),Se&&queueMicrotask(ht)}}}function Ft(V){Promise===U&&He.echoes===0?Et===0?V():enqueueNativeMicroTask(V):setTimeout(V,0)}(""+Dc).indexOf("[native code]")===-1&&(xt=ht=ne);var De=Ge.reject,Ct="￿",et="Invalid key provided. Keys must be of type string, number, Date or Array<string | number | Date>.",Ot="String expected.",At=[],_n="__dbnames",zn="readonly",R="readwrite";function $(V,Z){return V?Z?function(){return V.apply(this,arguments)&&Z.apply(this,arguments)}:V:Z}var J={type:3,lower:-1/0,lowerOpen:!1,upper:[[]],upperOpen:!1};function Oe(V){return typeof V!="string"||/\./.test(V)?function(Z){return Z}:function(Z){return Z[V]===void 0&&V in Z&&delete(Z=N(Z))[V],Z}}function qe(){throw se.Type()}function Qe(V,Z){try{var ge=Bt(V),Se=Bt(Z);if(ge!==Se)return ge==="Array"?1:Se==="Array"?-1:ge==="binary"?1:Se==="binary"?-1:ge==="string"?1:Se==="string"?-1:ge==="Date"?1:Se!=="Date"?NaN:-1;switch(ge){case"number":case"Date":case"string":return Z<V?1:V<Z?-1:0;case"binary":return function(ke,ze){for(var Ye=ke.length,Ze=ze.length,ut=Ye<Ze?Ye:Ze,pt=0;pt<ut;++pt)if(ke[pt]!==ze[pt])return ke[pt]<ze[pt]?-1:1;return Ye===Ze?0:Ye<Ze?-1:1}(fn(V),fn(Z));case"Array":return function(ke,ze){for(var Ye=ke.length,Ze=ze.length,ut=Ye<Ze?Ye:Ze,pt=0;pt<ut;++pt){var vt=Qe(ke[pt],ze[pt]);if(vt!==0)return vt}return Ye===Ze?0:Ye<Ze?-1:1}(V,Z)}}catch{}return NaN}function Bt(V){var Z=typeof V;return Z!="object"?Z:ArrayBuffer.isView(V)?"binary":(V=M(V),V==="ArrayBuffer"?"binary":V)}function fn(V){return V instanceof Uint8Array?V:ArrayBuffer.isView(V)?new Uint8Array(V.buffer,V.byteOffset,V.byteLength):new Uint8Array(V)}var gr=(Jn.prototype._trans=function(V,Z,ge){var Se=this._tx||Fe.trans,ke=this.name,ze=de&&typeof console<"u"&&console.createTask&&console.createTask("Dexie: ".concat(V==="readonly"?"read":"write"," ").concat(this.name));function Ye(pt,vt,nt){if(!nt.schema[ke])throw new se.NotFound("Table "+ke+" not part of transaction");return Z(nt.idbtrans,nt)}var Ze=Tt();try{var ut=Se&&Se.db._novip===this.db._novip?Se===Fe.trans?Se._promise(V,Ye,ge):bt(function(){return Se._promise(V,Ye,ge)},{trans:Se,transless:Fe.transless||Fe}):function pt(vt,nt,_t,dt){if(vt.idbdb&&(vt._state.openComplete||Fe.letThrough||vt._vip)){var gt=vt._createTransaction(nt,_t,vt._dbSchema);try{gt.create(),vt._state.PR1398_maxLoop=3}catch(yt){return yt.name===ee.InvalidState&&vt.isOpen()&&0<--vt._state.PR1398_maxLoop?(console.warn("Dexie: Need to reopen db"),vt.close({disableAutoOpen:!1}),vt.open().then(function(){return pt(vt,nt,_t,dt)})):De(yt)}return gt._promise(nt,function(yt,mt){return bt(function(){return Fe.trans=gt,dt(yt,mt,gt)})}).then(function(yt){if(nt==="readwrite")try{gt.idbtrans.commit()}catch{}return nt==="readonly"?yt:gt._completion.then(function(){return yt})})}if(vt._state.openComplete)return De(new se.DatabaseClosed(vt._state.dbOpenError));if(!vt._state.isBeingOpened){if(!vt._state.autoOpen)return De(new se.DatabaseClosed);vt.open().catch(ne)}return vt._state.dbReadyPromise.then(function(){return pt(vt,nt,_t,dt)})}(this.db,V,[this.name],Ye);return ze&&(ut._consoleTask=ze,ut=ut.catch(function(pt){return console.trace(pt),De(pt)})),ut}finally{Ze&&Me()}},Jn.prototype.get=function(V,Z){var ge=this;return V&&V.constructor===Object?this.where(V).first(Z):V==null?De(new se.Type("Invalid argument to Table.get()")):this._trans("readonly",function(Se){return ge.core.get({trans:Se,key:V}).then(function(ke){return ge.hook.reading.fire(ke)})}).then(Z)},Jn.prototype.where=function(V){if(typeof V=="string")return new this.db.WhereClause(this,V);if(s(V))return new this.db.WhereClause(this,"[".concat(V.join("+"),"]"));var Z=a(V);if(Z.length===1)return this.where(Z[0]).equals(V[Z[0]]);var ge=this.schema.indexes.concat(this.schema.primKey).filter(function(Ze){if(Ze.compound&&Z.every(function(pt){return 0<=Ze.keyPath.indexOf(pt)})){for(var ut=0;ut<Z.length;++ut)if(Z.indexOf(Ze.keyPath[ut])===-1)return!1;return!0}return!1}).sort(function(Ze,ut){return Ze.keyPath.length-ut.keyPath.length})[0];if(ge&&this.db._maxKey!==Ct){var ze=ge.keyPath.slice(0,Z.length);return this.where(ze).equals(ze.map(function(ut){return V[ut]}))}!ge&&de&&console.warn("The query ".concat(JSON.stringify(V)," on ").concat(this.name," would benefit from a ")+"compound index [".concat(Z.join("+"),"]"));var Se=this.schema.idxByName;function ke(Ze,ut){return Qe(Ze,ut)===0}var Ye=Z.reduce(function(nt,ut){var pt=nt[0],vt=nt[1],nt=Se[ut],_t=V[ut];return[pt||nt,pt||!nt?$(vt,nt&&nt.multi?function(dt){return dt=E(dt,ut),s(dt)&&dt.some(function(gt){return ke(_t,gt)})}:function(dt){return ke(_t,E(dt,ut))}):vt]},[null,null]),ze=Ye[0],Ye=Ye[1];return ze?this.where(ze.name).equals(V[ze.keyPath]).filter(Ye):ge?this.filter(Ye):this.where(Z).equals("")},Jn.prototype.filter=function(V){return this.toCollection().and(V)},Jn.prototype.count=function(V){return this.toCollection().count(V)},Jn.prototype.offset=function(V){return this.toCollection().offset(V)},Jn.prototype.limit=function(V){return this.toCollection().limit(V)},Jn.prototype.each=function(V){return this.toCollection().each(V)},Jn.prototype.toArray=function(V){return this.toCollection().toArray(V)},Jn.prototype.toCollection=function(){return new this.db.Collection(new this.db.WhereClause(this))},Jn.prototype.orderBy=function(V){return new this.db.Collection(new this.db.WhereClause(this,s(V)?"[".concat(V.join("+"),"]"):V))},Jn.prototype.reverse=function(){return this.toCollection().reverse()},Jn.prototype.mapToClass=function(V){var Z,ge=this.db,Se=this.name;function ke(){return Z!==null&&Z.apply(this,arguments)||this}(this.schema.mappedClass=V).prototype instanceof qe&&(function(ut,pt){if(typeof pt!="function"&&pt!==null)throw new TypeError("Class extends value "+String(pt)+" is not a constructor or null");function vt(){this.constructor=ut}n(ut,pt),ut.prototype=pt===null?Object.create(pt):(vt.prototype=pt.prototype,new vt)}(ke,Z=V),Object.defineProperty(ke.prototype,"db",{get:function(){return ge},enumerable:!1,configurable:!0}),ke.prototype.table=function(){return Se},V=ke);for(var ze=new Set,Ye=V.prototype;Ye;Ye=c(Ye))Object.getOwnPropertyNames(Ye).forEach(function(ut){return ze.add(ut)});function Ze(ut){if(!ut)return ut;var pt,vt=Object.create(V.prototype);for(pt in ut)if(!ze.has(pt))try{vt[pt]=ut[pt]}catch{}return vt}return this.schema.readHook&&this.hook.reading.unsubscribe(this.schema.readHook),this.schema.readHook=Ze,this.hook("reading",Ze),V},Jn.prototype.defineClass=function(){return this.mapToClass(function(V){l(this,V)})},Jn.prototype.add=function(V,Z){var ge=this,Se=this.schema.primKey,ke=Se.auto,ze=Se.keyPath,Ye=V;return ze&&ke&&(Ye=Oe(ze)(V)),this._trans("readwrite",function(Ze){return ge.core.mutate({trans:Ze,type:"add",keys:Z!=null?[Z]:null,values:[Ye]})}).then(function(Ze){return Ze.numFailures?Ge.reject(Ze.failures[0]):Ze.lastResult}).then(function(Ze){if(ze)try{C(V,ze,Ze)}catch{}return Ze})},Jn.prototype.update=function(V,Z){return typeof V!="object"||s(V)?this.where(":id").equals(V).modify(Z):(V=E(V,this.schema.primKey.keyPath),V===void 0?De(new se.InvalidArgument("Given object does not contain its primary key")):this.where(":id").equals(V).modify(Z))},Jn.prototype.put=function(V,Z){var ge=this,Se=this.schema.primKey,ke=Se.auto,ze=Se.keyPath,Ye=V;return ze&&ke&&(Ye=Oe(ze)(V)),this._trans("readwrite",function(Ze){return ge.core.mutate({trans:Ze,type:"put",values:[Ye],keys:Z!=null?[Z]:null})}).then(function(Ze){return Ze.numFailures?Ge.reject(Ze.failures[0]):Ze.lastResult}).then(function(Ze){if(ze)try{C(V,ze,Ze)}catch{}return Ze})},Jn.prototype.delete=function(V){var Z=this;return this._trans("readwrite",function(ge){return Z.core.mutate({trans:ge,type:"delete",keys:[V]})}).then(function(ge){return ge.numFailures?Ge.reject(ge.failures[0]):void 0})},Jn.prototype.clear=function(){var V=this;return this._trans("readwrite",function(Z){return V.core.mutate({trans:Z,type:"deleteRange",range:J})}).then(function(Z){return Z.numFailures?Ge.reject(Z.failures[0]):void 0})},Jn.prototype.bulkGet=function(V){var Z=this;return this._trans("readonly",function(ge){return Z.core.getMany({keys:V,trans:ge}).then(function(Se){return Se.map(function(ke){return Z.hook.reading.fire(ke)})})})},Jn.prototype.bulkAdd=function(V,Z,ge){var Se=this,ke=Array.isArray(Z)?Z:void 0,ze=(ge=ge||(ke?void 0:Z))?ge.allKeys:void 0;return this._trans("readwrite",function(Ye){var pt=Se.schema.primKey,Ze=pt.auto,pt=pt.keyPath;if(pt&&ke)throw new se.InvalidArgument("bulkAdd(): keys argument invalid on tables with inbound keys");if(ke&&ke.length!==V.length)throw new se.InvalidArgument("Arguments objects and keys must have the same length");var ut=V.length,pt=pt&&Ze?V.map(Oe(pt)):V;return Se.core.mutate({trans:Ye,type:"add",keys:ke,values:pt,wantResults:ze}).then(function(gt){var nt=gt.numFailures,_t=gt.results,dt=gt.lastResult,gt=gt.failures;if(nt===0)return ze?_t:dt;throw new ue("".concat(Se.name,".bulkAdd(): ").concat(nt," of ").concat(ut," operations failed"),gt)})})},Jn.prototype.bulkPut=function(V,Z,ge){var Se=this,ke=Array.isArray(Z)?Z:void 0,ze=(ge=ge||(ke?void 0:Z))?ge.allKeys:void 0;return this._trans("readwrite",function(Ye){var pt=Se.schema.primKey,Ze=pt.auto,pt=pt.keyPath;if(pt&&ke)throw new se.InvalidArgument("bulkPut(): keys argument invalid on tables with inbound keys");if(ke&&ke.length!==V.length)throw new se.InvalidArgument("Arguments objects and keys must have the same length");var ut=V.length,pt=pt&&Ze?V.map(Oe(pt)):V;return Se.core.mutate({trans:Ye,type:"put",keys:ke,values:pt,wantResults:ze}).then(function(gt){var nt=gt.numFailures,_t=gt.results,dt=gt.lastResult,gt=gt.failures;if(nt===0)return ze?_t:dt;throw new ue("".concat(Se.name,".bulkPut(): ").concat(nt," of ").concat(ut," operations failed"),gt)})})},Jn.prototype.bulkUpdate=function(V){var Z=this,ge=this.core,Se=V.map(function(Ye){return Ye.key}),ke=V.map(function(Ye){return Ye.changes}),ze=[];return this._trans("readwrite",function(Ye){return ge.getMany({trans:Ye,keys:Se,cache:"clone"}).then(function(Ze){var ut=[],pt=[];V.forEach(function(nt,_t){var dt=nt.key,gt=nt.changes,yt=Ze[_t];if(yt){for(var mt=0,Mt=Object.keys(gt);mt<Mt.length;mt++){var Lt=Mt[mt],Ht=gt[Lt];if(Lt===Z.schema.primKey.keyPath){if(Qe(Ht,dt)!==0)throw new se.Constraint("Cannot update primary key in bulkUpdate()")}else C(yt,Lt,Ht)}ze.push(_t),ut.push(dt),pt.push(yt)}});var vt=ut.length;return ge.mutate({trans:Ye,type:"put",keys:ut,values:pt,updates:{keys:Se,changeSpecs:ke}}).then(function(nt){var _t=nt.numFailures,dt=nt.failures;if(_t===0)return vt;for(var gt=0,yt=Object.keys(dt);gt<yt.length;gt++){var mt,Mt=yt[gt],Lt=ze[Number(Mt)];Lt!=null&&(mt=dt[Mt],delete dt[Mt],dt[Lt]=mt)}throw new ue("".concat(Z.name,".bulkUpdate(): ").concat(_t," of ").concat(vt," operations failed"),dt)})})})},Jn.prototype.bulkDelete=function(V){var Z=this,ge=V.length;return this._trans("readwrite",function(Se){return Z.core.mutate({trans:Se,type:"delete",keys:V})}).then(function(Ye){var ke=Ye.numFailures,ze=Ye.lastResult,Ye=Ye.failures;if(ke===0)return ze;throw new ue("".concat(Z.name,".bulkDelete(): ").concat(ke," of ").concat(ge," operations failed"),Ye)})},Jn);function Jn(){}function Hr(V){function Z(Ye,Ze){if(Ze){for(var ut=arguments.length,pt=new Array(ut-1);--ut;)pt[ut-1]=arguments[ut];return ge[Ye].subscribe.apply(null,pt),V}if(typeof Ye=="string")return ge[Ye]}var ge={};Z.addEventType=ze;for(var Se=1,ke=arguments.length;Se<ke;++Se)ze(arguments[Se]);return Z;function ze(Ye,Ze,ut){if(typeof Ye!="object"){var pt;Ze=Ze||xe;var vt={subscribers:[],fire:ut=ut||ne,subscribe:function(nt){vt.subscribers.indexOf(nt)===-1&&(vt.subscribers.push(nt),vt.fire=Ze(vt.fire,nt))},unsubscribe:function(nt){vt.subscribers=vt.subscribers.filter(function(_t){return _t!==nt}),vt.fire=vt.subscribers.reduce(Ze,ut)}};return ge[Ye]=Z[Ye]=vt}a(pt=Ye).forEach(function(nt){var _t=pt[nt];if(s(_t))ze(nt,pt[nt][0],pt[nt][1]);else{if(_t!=="asap")throw new se.InvalidArgument("Invalid event config");var dt=ze(nt,he,function(){for(var gt=arguments.length,yt=new Array(gt);gt--;)yt[gt]=arguments[gt];dt.subscribers.forEach(function(mt){x(function(){mt.apply(null,yt)})})})}})}}function bi(V,Z){return g(Z).from({prototype:V}),Z}function br(V,Z){return!(V.filter||V.algorithm||V.or)&&(Z?V.justLimit:!V.replayFilter)}function wn(V,Z){V.filter=$(V.filter,Z)}function an(V,Z,ge){var Se=V.replayFilter;V.replayFilter=Se?function(){return $(Se(),Z())}:Z,V.justLimit=ge&&!Se}function yr(V,Z){if(V.isPrimKey)return Z.primaryKey;var ge=Z.getIndexByKeyPath(V.index);if(!ge)throw new se.Schema("KeyPath "+V.index+" on object store "+Z.name+" is not indexed");return ge}function Cn(V,Z,ge){var Se=yr(V,Z.schema);return Z.openCursor({trans:ge,values:!V.keysOnly,reverse:V.dir==="prev",unique:!!V.unique,query:{index:Se,range:V.range}})}function rn(V,Z,ge,Se){var ke=V.replayFilter?$(V.filter,V.replayFilter()):V.filter;if(V.or){var ze={},Ye=function(Ze,ut,pt){var vt,nt;ke&&!ke(ut,pt,function(_t){return ut.stop(_t)},function(_t){return ut.fail(_t)})||((nt=""+(vt=ut.primaryKey))=="[object ArrayBuffer]"&&(nt=""+new Uint8Array(vt)),d(ze,nt)||(ze[nt]=!0,Z(Ze,ut,pt)))};return Promise.all([V.or._iterate(Ye,ge),Vn(Cn(V,Se,ge),V.algorithm,Ye,!V.keysOnly&&V.valueMapper)])}return Vn(Cn(V,Se,ge),$(V.algorithm,ke),Z,!V.keysOnly&&V.valueMapper)}function Vn(V,Z,ge,Se){var ke=Le(Se?function(ze,Ye,Ze){return ge(Se(ze),Ye,Ze)}:ge);return V.then(function(ze){if(ze)return ze.start(function(){var Ye=function(){return ze.continue()};Z&&!Z(ze,function(Ze){return Ye=Ze},function(Ze){ze.stop(Ze),Ye=ne},function(Ze){ze.fail(Ze),Ye=ne})||ke(ze.value,ze,function(Ze){return Ye=Ze}),Ye()})})}var Er=(Lr.prototype.execute=function(V){var Z=this["@@propmod"];if(Z.add!==void 0){var ge=Z.add;if(s(ge))return i(i([],s(V)?V:[],!0),ge).sort();if(typeof ge=="number")return(Number(V)||0)+ge;if(typeof ge=="bigint")try{return BigInt(V)+ge}catch{return BigInt(0)+ge}throw new TypeError("Invalid term ".concat(ge))}if(Z.remove!==void 0){var Se=Z.remove;if(s(Se))return s(V)?V.filter(function(ke){return!Se.includes(ke)}).sort():[];if(typeof Se=="number")return Number(V)-Se;if(typeof Se=="bigint")try{return BigInt(V)-Se}catch{return BigInt(0)-Se}throw new TypeError("Invalid subtrahend ".concat(Se))}return ge=(ge=Z.replacePrefix)===null||ge===void 0?void 0:ge[0],ge&&typeof V=="string"&&V.startsWith(ge)?Z.replacePrefix[1]+V.substring(ge.length):V},Lr);function Lr(V){this["@@propmod"]=V}var Ii=(nr.prototype._read=function(V,Z){var ge=this._ctx;return ge.error?ge.table._trans(null,De.bind(null,ge.error)):ge.table._trans("readonly",V).then(Z)},nr.prototype._write=function(V){var Z=this._ctx;return Z.error?Z.table._trans(null,De.bind(null,Z.error)):Z.table._trans("readwrite",V,"locked")},nr.prototype._addAlgorithm=function(V){var Z=this._ctx;Z.algorithm=$(Z.algorithm,V)},nr.prototype._iterate=function(V,Z){return rn(this._ctx,V,Z,this._ctx.table.core)},nr.prototype.clone=function(V){var Z=Object.create(this.constructor.prototype),ge=Object.create(this._ctx);return V&&l(ge,V),Z._ctx=ge,Z},nr.prototype.raw=function(){return this._ctx.valueMapper=null,this},nr.prototype.each=function(V){var Z=this._ctx;return this._read(function(ge){return rn(Z,V,ge,Z.table.core)})},nr.prototype.count=function(V){var Z=this;return this._read(function(ge){var Se=Z._ctx,ke=Se.table.core;if(br(Se,!0))return ke.count({trans:ge,query:{index:yr(Se,ke.schema),range:Se.range}}).then(function(Ye){return Math.min(Ye,Se.limit)});var ze=0;return rn(Se,function(){return++ze,!1},ge,ke).then(function(){return ze})}).then(V)},nr.prototype.sortBy=function(V,Z){var ge=V.split(".").reverse(),Se=ge[0],ke=ge.length-1;function ze(ut,pt){return pt?ze(ut[ge[pt]],pt-1):ut[Se]}var Ye=this._ctx.dir==="next"?1:-1;function Ze(ut,pt){return Qe(ze(ut,ke),ze(pt,ke))*Ye}return this.toArray(function(ut){return ut.sort(Ze)}).then(Z)},nr.prototype.toArray=function(V){var Z=this;return this._read(function(ge){var Se=Z._ctx;if(Se.dir==="next"&&br(Se,!0)&&0<Se.limit){var ke=Se.valueMapper,ze=yr(Se,Se.table.core.schema);return Se.table.core.query({trans:ge,limit:Se.limit,values:!0,query:{index:ze,range:Se.range}}).then(function(Ze){return Ze=Ze.result,ke?Ze.map(ke):Ze})}var Ye=[];return rn(Se,function(Ze){return Ye.push(Ze)},ge,Se.table.core).then(function(){return Ye})},V)},nr.prototype.offset=function(V){var Z=this._ctx;return V<=0||(Z.offset+=V,br(Z)?an(Z,function(){var ge=V;return function(Se,ke){return ge===0||(ge===1?--ge:ke(function(){Se.advance(ge),ge=0}),!1)}}):an(Z,function(){var ge=V;return function(){return--ge<0}})),this},nr.prototype.limit=function(V){return this._ctx.limit=Math.min(this._ctx.limit,V),an(this._ctx,function(){var Z=V;return function(ge,Se,ke){return--Z<=0&&Se(ke),0<=Z}},!0),this},nr.prototype.until=function(V,Z){return wn(this._ctx,function(ge,Se,ke){return!V(ge.value)||(Se(ke),Z)}),this},nr.prototype.first=function(V){return this.limit(1).toArray(function(Z){return Z[0]}).then(V)},nr.prototype.last=function(V){return this.reverse().first(V)},nr.prototype.filter=function(V){var Z;return wn(this._ctx,function(ge){return V(ge.value)}),(Z=this._ctx).isMatch=$(Z.isMatch,V),this},nr.prototype.and=function(V){return this.filter(V)},nr.prototype.or=function(V){return new this.db.WhereClause(this._ctx.table,V,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(V){var Z=this._ctx;return Z.keysOnly=!Z.isMatch,this.each(function(ge,Se){V(Se.key,Se)})},nr.prototype.eachUniqueKey=function(V){return this._ctx.unique="unique",this.eachKey(V)},nr.prototype.eachPrimaryKey=function(V){var Z=this._ctx;return Z.keysOnly=!Z.isMatch,this.each(function(ge,Se){V(Se.primaryKey,Se)})},nr.prototype.keys=function(V){var Z=this._ctx;Z.keysOnly=!Z.isMatch;var ge=[];return this.each(function(Se,ke){ge.push(ke.key)}).then(function(){return ge}).then(V)},nr.prototype.primaryKeys=function(V){var Z=this._ctx;if(Z.dir==="next"&&br(Z,!0)&&0<Z.limit)return this._read(function(Se){var ke=yr(Z,Z.table.core.schema);return Z.table.core.query({trans:Se,values:!1,limit:Z.limit,query:{index:ke,range:Z.range}})}).then(function(Se){return Se.result}).then(V);Z.keysOnly=!Z.isMatch;var ge=[];return this.each(function(Se,ke){ge.push(ke.primaryKey)}).then(function(){return ge}).then(V)},nr.prototype.uniqueKeys=function(V){return this._ctx.unique="unique",this.keys(V)},nr.prototype.firstKey=function(V){return this.limit(1).keys(function(Z){return Z[0]}).then(V)},nr.prototype.lastKey=function(V){return this.reverse().firstKey(V)},nr.prototype.distinct=function(){var V=this._ctx,V=V.index&&V.table.schema.idxByName[V.index];if(!V||!V.multi)return this;var Z={};return wn(this._ctx,function(ke){var Se=ke.primaryKey.toString(),ke=d(Z,Se);return Z[Se]=!0,!ke}),this},nr.prototype.modify=function(V){var Z=this,ge=this._ctx;return this._write(function(Se){var ke,ze,Ye;Ye=typeof V=="function"?V:(ke=a(V),ze=ke.length,function(mt){for(var Mt=!1,Lt=0;Lt<ze;++Lt){var Ht=ke[Lt],Yt=V[Ht],gn=E(mt,Ht);Yt instanceof Er?(C(mt,Ht,Yt.execute(gn)),Mt=!0):gn!==Yt&&(C(mt,Ht,Yt),Mt=!0)}return Mt});var Ze=ge.table.core,nt=Ze.schema.primaryKey,ut=nt.outbound,pt=nt.extractKey,vt=200,nt=Z.db._options.modifyChunkSize;nt&&(vt=typeof nt=="object"?nt[Ze.name]||nt["*"]||200:nt);function _t(mt,Ht){var Lt=Ht.failures,Ht=Ht.numFailures;gt+=mt-Ht;for(var Yt=0,gn=a(Lt);Yt<gn.length;Yt++){var Tn=gn[Yt];dt.push(Lt[Tn])}}var dt=[],gt=0,yt=[];return Z.clone().primaryKeys().then(function(mt){function Mt(Ht){var Yt=Math.min(vt,mt.length-Ht);return Ze.getMany({trans:Se,keys:mt.slice(Ht,Ht+Yt),cache:"immutable"}).then(function(gn){for(var Tn=[],vn=[],En=ut?[]:null,Nn=[],xn=0;xn<Yt;++xn){var Fn=gn[xn],Rr={value:N(Fn),primKey:mt[Ht+xn]};Ye.call(Rr,Rr.value,Rr)!==!1&&(Rr.value==null?Nn.push(mt[Ht+xn]):ut||Qe(pt(Fn),pt(Rr.value))===0?(vn.push(Rr.value),ut&&En.push(mt[Ht+xn])):(Nn.push(mt[Ht+xn]),Tn.push(Rr.value)))}return Promise.resolve(0<Tn.length&&Ze.mutate({trans:Se,type:"add",values:Tn}).then(function($r){for(var Fr in $r.failures)Nn.splice(parseInt(Fr),1);_t(Tn.length,$r)})).then(function(){return(0<vn.length||Lt&&typeof V=="object")&&Ze.mutate({trans:Se,type:"put",keys:En,values:vn,criteria:Lt,changeSpec:typeof V!="function"&&V,isAdditionalChunk:0<Ht}).then(function($r){return _t(vn.length,$r)})}).then(function(){return(0<Nn.length||Lt&&V===Wi)&&Ze.mutate({trans:Se,type:"delete",keys:Nn,criteria:Lt,isAdditionalChunk:0<Ht}).then(function($r){return _t(Nn.length,$r)})}).then(function(){return mt.length>Ht+Yt&&Mt(Ht+vt)})})}var Lt=br(ge)&&ge.limit===1/0&&(typeof V!="function"||V===Wi)&&{index:ge.index,range:ge.range};return Mt(0).then(function(){if(0<dt.length)throw new Q("Error modifying one or more objects",dt,gt,yt);return mt.length})})})},nr.prototype.delete=function(){var V=this._ctx,Z=V.range;return br(V)&&(V.isPrimKey||Z.type===3)?this._write(function(ge){var Se=V.table.core.schema.primaryKey,ke=Z;return V.table.core.count({trans:ge,query:{index:Se,range:ke}}).then(function(ze){return V.table.core.mutate({trans:ge,type:"deleteRange",range:ke}).then(function(Ye){var Ze=Ye.failures;if(Ye.lastResult,Ye.results,Ye=Ye.numFailures,Ye)throw new Q("Could not delete some values",Object.keys(Ze).map(function(ut){return Ze[ut]}),ze-Ye);return ze-Ye})})}):this.modify(Wi)},nr);function nr(){}var Wi=function(V,Z){return Z.value=null};function mn(V,Z){return V<Z?-1:V===Z?0:1}function nn(V,Z){return Z<V?-1:V===Z?0:1}function In(V,Z,ge){return V=V instanceof la?new V.Collection(V):V,V._ctx.error=new(ge||TypeError)(Z),V}function vr(V){return new V.Collection(V,function(){return ds("")}).limit(0)}function Yn(V,Z,ge,Se){var ke,ze,Ye,Ze,ut,pt,vt,nt=ge.length;if(!ge.every(function(gt){return typeof gt=="string"}))return In(V,Ot);function _t(gt){ke=gt==="next"?function(mt){return mt.toUpperCase()}:function(mt){return mt.toLowerCase()},ze=gt==="next"?function(mt){return mt.toLowerCase()}:function(mt){return mt.toUpperCase()},Ye=gt==="next"?mn:nn;var yt=ge.map(function(mt){return{lower:ze(mt),upper:ke(mt)}}).sort(function(mt,Mt){return Ye(mt.lower,Mt.lower)});Ze=yt.map(function(mt){return mt.upper}),ut=yt.map(function(mt){return mt.lower}),vt=(pt=gt)==="next"?"":Se}_t("next"),V=new V.Collection(V,function(){return go(Ze[0],ut[nt-1]+Se)}),V._ondirectionchange=function(gt){_t(gt)};var dt=0;return V._addAlgorithm(function(gt,yt,mt){var Mt=gt.key;if(typeof Mt!="string")return!1;var Lt=ze(Mt);if(Z(Lt,ut,dt))return!0;for(var Ht=null,Yt=dt;Yt<nt;++Yt){var gn=function(Tn,vn,En,Nn,xn,Fn){for(var Rr=Math.min(Tn.length,Nn.length),$r=-1,Fr=0;Fr<Rr;++Fr){var Wl=vn[Fr];if(Wl!==Nn[Fr])return xn(Tn[Fr],En[Fr])<0?Tn.substr(0,Fr)+En[Fr]+En.substr(Fr+1):xn(Tn[Fr],Nn[Fr])<0?Tn.substr(0,Fr)+Nn[Fr]+En.substr(Fr+1):0<=$r?Tn.substr(0,$r)+vn[$r]+En.substr($r+1):null;xn(Tn[Fr],Wl)<0&&($r=Fr)}return Rr<Nn.length&&Fn==="next"?Tn+En.substr(Tn.length):Rr<Tn.length&&Fn==="prev"?Tn.substr(0,En.length):$r<0?null:Tn.substr(0,$r)+Nn[$r]+En.substr($r+1)}(Mt,Lt,Ze[Yt],ut[Yt],Ye,pt);gn===null&&Ht===null?dt=Yt+1:(Ht===null||0<Ye(Ht,gn))&&(Ht=gn)}return yt(Ht!==null?function(){gt.continue(Ht+vt)}:mt),!1}),V}function go(V,Z,ge,Se){return{type:2,lower:V,upper:Z,lowerOpen:ge,upperOpen:Se}}function ds(V){return{type:1,lower:V,upper:V}}var la=(Object.defineProperty(pi.prototype,"Collection",{get:function(){return this._ctx.table.db.Collection},enumerable:!1,configurable:!0}),pi.prototype.between=function(V,Z,ge,Se){ge=ge!==!1,Se=Se===!0;try{return 0<this._cmp(V,Z)||this._cmp(V,Z)===0&&(ge||Se)&&(!ge||!Se)?vr(this):new this.Collection(this,function(){return go(V,Z,!ge,!Se)})}catch{return In(this,et)}},pi.prototype.equals=function(V){return V==null?In(this,et):new this.Collection(this,function(){return ds(V)})},pi.prototype.above=function(V){return V==null?In(this,et):new this.Collection(this,function(){return go(V,void 0,!0)})},pi.prototype.aboveOrEqual=function(V){return V==null?In(this,et):new this.Collection(this,function(){return go(V,void 0,!1)})},pi.prototype.below=function(V){return V==null?In(this,et):new this.Collection(this,function(){return go(void 0,V,!1,!0)})},pi.prototype.belowOrEqual=function(V){return V==null?In(this,et):new this.Collection(this,function(){return go(void 0,V)})},pi.prototype.startsWith=function(V){return typeof V!="string"?In(this,Ot):this.between(V,V+Ct,!0,!0)},pi.prototype.startsWithIgnoreCase=function(V){return V===""?this.startsWith(V):Yn(this,function(Z,ge){return Z.indexOf(ge[0])===0},[V],Ct)},pi.prototype.equalsIgnoreCase=function(V){return Yn(this,function(Z,ge){return Z===ge[0]},[V],"")},pi.prototype.anyOfIgnoreCase=function(){var V=L.apply(G,arguments);return V.length===0?vr(this):Yn(this,function(Z,ge){return ge.indexOf(Z)!==-1},V,"")},pi.prototype.startsWithAnyOfIgnoreCase=function(){var V=L.apply(G,arguments);return V.length===0?vr(this):Yn(this,function(Z,ge){return ge.some(function(Se){return Z.indexOf(Se)===0})},V,Ct)},pi.prototype.anyOf=function(){var V=this,Z=L.apply(G,arguments),ge=this._cmp;try{Z.sort(ge)}catch{return In(this,et)}if(Z.length===0)return vr(this);var Se=new this.Collection(this,function(){return go(Z[0],Z[Z.length-1])});Se._ondirectionchange=function(ze){ge=ze==="next"?V._ascending:V._descending,Z.sort(ge)};var ke=0;return Se._addAlgorithm(function(ze,Ye,Ze){for(var ut=ze.key;0<ge(ut,Z[ke]);)if(++ke===Z.length)return Ye(Ze),!1;return ge(ut,Z[ke])===0||(Ye(function(){ze.continue(Z[ke])}),!1)}),Se},pi.prototype.notEqual=function(V){return this.inAnyRange([[-1/0,V],[V,this.db._maxKey]],{includeLowers:!1,includeUppers:!1})},pi.prototype.noneOf=function(){var V=L.apply(G,arguments);if(V.length===0)return new this.Collection(this);try{V.sort(this._ascending)}catch{return In(this,et)}var Z=V.reduce(function(ge,Se){return ge?ge.concat([[ge[ge.length-1][1],Se]]):[[-1/0,Se]]},null);return Z.push([V[V.length-1],this.db._maxKey]),this.inAnyRange(Z,{includeLowers:!1,includeUppers:!1})},pi.prototype.inAnyRange=function(Mt,Z){var ge=this,Se=this._cmp,ke=this._ascending,ze=this._descending,Ye=this._min,Ze=this._max;if(Mt.length===0)return vr(this);if(!Mt.every(function(Lt){return Lt[0]!==void 0&&Lt[1]!==void 0&&ke(Lt[0],Lt[1])<=0}))return In(this,"First argument to inAnyRange() must be an Array of two-value Arrays [lower,upper] where upper must not be lower than lower",se.InvalidArgument);var ut=!Z||Z.includeLowers!==!1,pt=Z&&Z.includeUppers===!0,vt,nt=ke;function _t(Lt,Ht){return nt(Lt[0],Ht[0])}try{(vt=Mt.reduce(function(Lt,Ht){for(var Yt=0,gn=Lt.length;Yt<gn;++Yt){var Tn=Lt[Yt];if(Se(Ht[0],Tn[1])<0&&0<Se(Ht[1],Tn[0])){Tn[0]=Ye(Tn[0],Ht[0]),Tn[1]=Ze(Tn[1],Ht[1]);break}}return Yt===gn&&Lt.push(Ht),Lt},[])).sort(_t)}catch{return In(this,et)}var dt=0,gt=pt?function(Lt){return 0<ke(Lt,vt[dt][1])}:function(Lt){return 0<=ke(Lt,vt[dt][1])},yt=ut?function(Lt){return 0<ze(Lt,vt[dt][0])}:function(Lt){return 0<=ze(Lt,vt[dt][0])},mt=gt,Mt=new this.Collection(this,function(){return go(vt[0][0],vt[vt.length-1][1],!ut,!pt)});return Mt._ondirectionchange=function(Lt){nt=Lt==="next"?(mt=gt,ke):(mt=yt,ze),vt.sort(_t)},Mt._addAlgorithm(function(Lt,Ht,Yt){for(var gn,Tn=Lt.key;mt(Tn);)if(++dt===vt.length)return Ht(Yt),!1;return!gt(gn=Tn)&&!yt(gn)||(ge._cmp(Tn,vt[dt][1])===0||ge._cmp(Tn,vt[dt][0])===0||Ht(function(){nt===ke?Lt.continue(vt[dt][0]):Lt.continue(vt[dt][1])}),!1)}),Mt},pi.prototype.startsWithAnyOf=function(){var V=L.apply(G,arguments);return V.every(function(Z){return typeof Z=="string"})?V.length===0?vr(this):this.inAnyRange(V.map(function(Z){return[Z,Z+Ct]})):In(this,"startsWithAnyOf() only works with strings")},pi);function pi(){}function ba(V){return Le(function(Z){return Yd(Z),V(Z.target.error),!1})}function Yd(V){V.stopPropagation&&V.stopPropagation(),V.preventDefault&&V.preventDefault()}var np="storagemutated",Wg="x-storagemutated-1",kn=Hr(null,np),pr=(Zr.prototype._lock=function(){return S(!Fe.global),++this._reculock,this._reculock!==1||Fe.global||(Fe.lockOwnerFor=this),this},Zr.prototype._unlock=function(){if(S(!Fe.global),--this._reculock==0)for(Fe.global||(Fe.lockOwnerFor=null);0<this._blockedFuncs.length&&!this._locked();){var V=this._blockedFuncs.shift();try{$t(V[1],V[0])}catch{}}return this},Zr.prototype._locked=function(){return this._reculock&&Fe.lockOwnerFor!==this},Zr.prototype.create=function(V){var Z=this;if(!this.mode)return this;var ge=this.db.idbdb,Se=this.db._state.dbOpenError;if(S(!this.idbtrans),!V&&!ge)switch(Se&&Se.name){case"DatabaseClosedError":throw new se.DatabaseClosed(Se);case"MissingAPIError":throw new se.MissingAPI(Se.message,Se);default:throw new se.OpenFailed(Se)}if(!this.active)throw new se.TransactionInactive;return S(this._completion._state===null),(V=this.idbtrans=V||(this.db.core||ge).transaction(this.storeNames,this.mode,{durability:this.chromeTransactionDurability})).onerror=Le(function(ke){Yd(ke),Z._reject(V.error)}),V.onabort=Le(function(ke){Yd(ke),Z.active&&Z._reject(new se.Abort(V.error)),Z.active=!1,Z.on("abort").fire(ke)}),V.oncomplete=Le(function(){Z.active=!1,Z._resolve(),"mutatedParts"in V&&kn.storagemutated.fire(V.mutatedParts)}),this},Zr.prototype._promise=function(V,Z,ge){var Se=this;if(V==="readwrite"&&this.mode!=="readwrite")return De(new se.ReadOnly("Transaction is readonly"));if(!this.active)return De(new se.TransactionInactive);if(this._locked())return new Ge(function(ze,Ye){Se._blockedFuncs.push([function(){Se._promise(V,Z,ge).then(ze,Ye)},Fe])});if(ge)return bt(function(){var ze=new Ge(function(Ye,Ze){Se._lock();var ut=Z(Ye,Ze,Se);ut&&ut.then&&ut.then(Ye,Ze)});return ze.finally(function(){return Se._unlock()}),ze._lib=!0,ze});var ke=new Ge(function(ze,Ye){var Ze=Z(ze,Ye,Se);Ze&&Ze.then&&Ze.then(ze,Ye)});return ke._lib=!0,ke},Zr.prototype._root=function(){return this.parent?this.parent._root():this},Zr.prototype.waitFor=function(V){var Z,ge=this._root(),Se=Ge.resolve(V);ge._waitingFor?ge._waitingFor=ge._waitingFor.then(function(){return Se}):(ge._waitingFor=Se,ge._waitingQueue=[],Z=ge.idbtrans.objectStore(ge.storeNames[0]),function ze(){for(++ge._spinCount;ge._waitingQueue.length;)ge._waitingQueue.shift()();ge._waitingFor&&(Z.get(-1/0).onsuccess=ze)}());var ke=ge._waitingFor;return new Ge(function(ze,Ye){Se.then(function(Ze){return ge._waitingQueue.push(Le(ze.bind(null,Ze)))},function(Ze){return ge._waitingQueue.push(Le(Ye.bind(null,Ze)))}).finally(function(){ge._waitingFor===ke&&(ge._waitingFor=null)})})},Zr.prototype.abort=function(){this.active&&(this.active=!1,this.idbtrans&&this.idbtrans.abort(),this._reject(new se.Abort))},Zr.prototype.table=function(V){var Z=this._memoizedTables||(this._memoizedTables={});if(d(Z,V))return Z[V];var ge=this.schema[V];if(!ge)throw new se.NotFound("Table "+V+" not part of transaction");return ge=new this.db.Table(V,ge,this),ge.core=this.db.core.table(V),Z[V]=ge},Zr);function Zr(){}function eo(V,Z,ge,Se,ke,ze,Ye){return{name:V,keyPath:Z,unique:ge,multi:Se,auto:ke,compound:ze,src:(ge&&!Ye?"&":"")+(Se?"*":"")+(ke?"++":"")+to(Z)}}function to(V){return typeof V=="string"?V:V?"["+[].join.call(V,"+")+"]":""}function Mh(V,Z,ge){return{name:V,primKey:Z,indexes:ge,mappedClass:null,idxByName:(Se=function(ke){return[ke.name,ke]},ge.reduce(function(ke,ze,Ye){return Ye=Se(ze,Ye),Ye&&(ke[Ye[0]]=Ye[1]),ke},{}))};var Se}var rp=function(V){try{return V.only([[]]),rp=function(){return[[]]},[[]]}catch{return rp=function(){return Ct},Ct}};function Wv(V){return V==null?function(){}:typeof V=="string"?(Z=V).split(".").length===1?function(ge){return ge[Z]}:function(ge){return E(ge,Z)}:function(ge){return E(ge,V)};var Z}function qg(V){return[].slice.call(V)}var h9e=0;function pE(V){return V==null?":id":typeof V=="string"?V:"[".concat(V.join("+"),"]")}function m9e(V,Z,ut){function Se(mt){if(mt.type===3)return null;if(mt.type===4)throw new Error("Cannot convert never type to IDBKeyRange");var dt=mt.lower,gt=mt.upper,yt=mt.lowerOpen,mt=mt.upperOpen;return dt===void 0?gt===void 0?null:Z.upperBound(gt,!!mt):gt===void 0?Z.lowerBound(dt,!!yt):Z.bound(dt,gt,!!yt,!!mt)}function ke(_t){var dt,gt=_t.name;return{name:gt,schema:_t,mutate:function(yt){var mt=yt.trans,Mt=yt.type,Lt=yt.keys,Ht=yt.values,Yt=yt.range;return new Promise(function(gn,Tn){gn=Le(gn);var vn=mt.objectStore(gt),En=vn.keyPath==null,Nn=Mt==="put"||Mt==="add";if(!Nn&&Mt!=="delete"&&Mt!=="deleteRange")throw new Error("Invalid operation type: "+Mt);var xn,Fn=(Lt||Ht||{length:1}).length;if(Lt&&Ht&&Lt.length!==Ht.length)throw new Error("Given keys array must have same length as given values array.");if(Fn===0)return gn({numFailures:0,failures:{},results:[],lastResult:void 0});function Rr(js){++Wl,Yd(js)}var $r=[],Fr=[],Wl=0;if(Mt==="deleteRange"){if(Yt.type===4)return gn({numFailures:Wl,failures:Fr,results:[],lastResult:void 0});Yt.type===3?$r.push(xn=vn.clear()):$r.push(xn=vn.delete(Se(Yt)))}else{var En=Nn?En?[Ht,Lt]:[Ht,null]:[Lt,null],Tr=En[0],ps=En[1];if(Nn)for(var hs=0;hs<Fn;++hs)$r.push(xn=ps&&ps[hs]!==void 0?vn[Mt](Tr[hs],ps[hs]):vn[Mt](Tr[hs])),xn.onerror=Rr;else for(hs=0;hs<Fn;++hs)$r.push(xn=vn[Mt](Tr[hs])),xn.onerror=Rr}function BO(js){js=js.target.result,$r.forEach(function(Qg,r9){return Qg.error!=null&&(Fr[r9]=Qg.error)}),gn({numFailures:Wl,failures:Fr,results:Mt==="delete"?Lt:$r.map(function(Qg){return Qg.result}),lastResult:js})}xn.onerror=function(js){Rr(js),BO(js)},xn.onsuccess=BO})},getMany:function(yt){var mt=yt.trans,Mt=yt.keys;return new Promise(function(Lt,Ht){Lt=Le(Lt);for(var Yt,gn=mt.objectStore(gt),Tn=Mt.length,vn=new Array(Tn),En=0,Nn=0,xn=function($r){$r=$r.target,vn[$r._pos]=$r.result,++Nn===En&&Lt(vn)},Fn=ba(Ht),Rr=0;Rr<Tn;++Rr)Mt[Rr]!=null&&((Yt=gn.get(Mt[Rr]))._pos=Rr,Yt.onsuccess=xn,Yt.onerror=Fn,++En);En===0&&Lt(vn)})},get:function(yt){var mt=yt.trans,Mt=yt.key;return new Promise(function(Lt,Ht){Lt=Le(Lt);var Yt=mt.objectStore(gt).get(Mt);Yt.onsuccess=function(gn){return Lt(gn.target.result)},Yt.onerror=ba(Ht)})},query:(dt=pt,function(yt){return new Promise(function(mt,Mt){mt=Le(mt);var Lt,Ht,Yt,En=yt.trans,gn=yt.values,Tn=yt.limit,xn=yt.query,vn=Tn===1/0?void 0:Tn,Nn=xn.index,xn=xn.range,En=En.objectStore(gt),Nn=Nn.isPrimaryKey?En:En.index(Nn.name),xn=Se(xn);if(Tn===0)return mt({result:[]});dt?((vn=gn?Nn.getAll(xn,vn):Nn.getAllKeys(xn,vn)).onsuccess=function(Fn){return mt({result:Fn.target.result})},vn.onerror=ba(Mt)):(Lt=0,Ht=!gn&&"openKeyCursor"in Nn?Nn.openKeyCursor(xn):Nn.openCursor(xn),Yt=[],Ht.onsuccess=function(Fn){var Rr=Ht.result;return Rr?(Yt.push(gn?Rr.value:Rr.primaryKey),++Lt===Tn?mt({result:Yt}):void Rr.continue()):mt({result:Yt})},Ht.onerror=ba(Mt))})}),openCursor:function(yt){var mt=yt.trans,Mt=yt.values,Lt=yt.query,Ht=yt.reverse,Yt=yt.unique;return new Promise(function(gn,Tn){gn=Le(gn);var Nn=Lt.index,vn=Lt.range,En=mt.objectStore(gt),En=Nn.isPrimaryKey?En:En.index(Nn.name),Nn=Ht?Yt?"prevunique":"prev":Yt?"nextunique":"next",xn=!Mt&&"openKeyCursor"in En?En.openKeyCursor(Se(vn),Nn):En.openCursor(Se(vn),Nn);xn.onerror=ba(Tn),xn.onsuccess=Le(function(Fn){var Rr,$r,Fr,Wl,Tr=xn.result;Tr?(Tr.___id=++h9e,Tr.done=!1,Rr=Tr.continue.bind(Tr),$r=($r=Tr.continuePrimaryKey)&&$r.bind(Tr),Fr=Tr.advance.bind(Tr),Wl=function(){throw new Error("Cursor not stopped")},Tr.trans=mt,Tr.stop=Tr.continue=Tr.continuePrimaryKey=Tr.advance=function(){throw new Error("Cursor not started")},Tr.fail=Le(Tn),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(xn.result)try{ps()}catch(js){Tr.fail(js)}else Tr.done=!0,Tr.start=function(){throw new Error("Cursor behind last entry")},Tr.stop()}var BO=new Promise(function(js,Qg){js=Le(js),xn.onerror=ba(Qg),Tr.fail=Qg,Tr.stop=function(r9){Tr.stop=Tr.continue=Tr.continuePrimaryKey=Tr.advance=Wl,js(r9)}});return xn.onsuccess=Le(function(js){xn.onsuccess=hs,hs()}),Tr.continue=Rr,Tr.continuePrimaryKey=$r,Tr.advance=Fr,hs(),BO},gn(Tr)):gn(null)},Tn)})},count:function(yt){var mt=yt.query,Mt=yt.trans,Lt=mt.index,Ht=mt.range;return new Promise(function(Yt,gn){var Tn=Mt.objectStore(gt),vn=Lt.isPrimaryKey?Tn:Tn.index(Lt.name),Tn=Se(Ht),vn=Tn?vn.count(Tn):vn.count();vn.onsuccess=Le(function(En){return Yt(En.target.result)}),vn.onerror=ba(gn)})}}}var ze,Ye,Ze,vt=(Ye=ut,Ze=qg((ze=V).objectStoreNames),{schema:{name:ze.name,tables:Ze.map(function(_t){return Ye.objectStore(_t)}).map(function(_t){var dt=_t.keyPath,mt=_t.autoIncrement,gt=s(dt),yt={},mt={name:_t.name,primaryKey:{name:null,isPrimaryKey:!0,outbound:dt==null,compound:gt,keyPath:dt,autoIncrement:mt,unique:!0,extractKey:Wv(dt)},indexes:qg(_t.indexNames).map(function(Mt){return _t.index(Mt)}).map(function(Yt){var Lt=Yt.name,Ht=Yt.unique,gn=Yt.multiEntry,Yt=Yt.keyPath,gn={name:Lt,compound:s(Yt),keyPath:Yt,unique:Ht,multiEntry:gn,extractKey:Wv(Yt)};return yt[pE(Yt)]=gn}),getIndexByKeyPath:function(Mt){return yt[pE(Mt)]}};return yt[":id"]=mt.primaryKey,dt!=null&&(yt[pE(dt)]=mt.primaryKey),mt})},hasGetAll:0<Ze.length&&"getAll"in Ye.objectStore(Ze[0])&&!(typeof navigator<"u"&&/Safari/.test(navigator.userAgent)&&!/(Chrome\/|Edge\/)/.test(navigator.userAgent)&&[].concat(navigator.userAgent.match(/Safari\/(\d*)/))[1]<604)}),ut=vt.schema,pt=vt.hasGetAll,vt=ut.tables.map(ke),nt={};return vt.forEach(function(_t){return nt[_t.name]=_t}),{stack:"dbcore",transaction:V.transaction.bind(V),table:function(_t){if(!nt[_t])throw new Error("Table '".concat(_t,"' not found"));return nt[_t]},MIN_KEY:-1/0,MAX_KEY:rp(Z),schema:ut}}function g9e(V,Z,ge,Se){var ke=ge.IDBKeyRange;return ge.indexedDB,{dbcore:(Se=m9e(Z,ke,Se),V.dbcore.reduce(function(ze,Ye){return Ye=Ye.create,r(r({},ze),Ye(ze))},Se))}}function OO(V,Se){var ge=Se.db,Se=g9e(V._middlewares,ge,V._deps,Se);V.core=Se.dbcore,V.tables.forEach(function(ke){var ze=ke.name;V.core.schema.tables.some(function(Ye){return Ye.name===ze})&&(ke.core=V.core.table(ze),V[ze]instanceof V.Table&&(V[ze].core=ke.core))})}function RO(V,Z,ge,Se){ge.forEach(function(ke){var ze=Se[ke];Z.forEach(function(Ye){var Ze=function ut(pt,vt){return v(pt,vt)||(pt=c(pt))&&ut(pt,vt)}(Ye,ke);(!Ze||"value"in Ze&&Ze.value===void 0)&&(Ye===V.Transaction.prototype||Ye instanceof V.Transaction?m(Ye,ke,{get:function(){return this.table(ke)},set:function(ut){p(this,ke,{value:ut,writable:!0,configurable:!0,enumerable:!0})}}):Ye[ke]=new V.Table(ke,ze))})})}function H8(V,Z){Z.forEach(function(ge){for(var Se in ge)ge[Se]instanceof V.Table&&delete ge[Se]})}function v9e(V,Z){return V._cfg.version-Z._cfg.version}function b9e(V,Z,ge,Se){var ke=V._dbSchema;ge.objectStoreNames.contains("$meta")&&!ke.$meta&&(ke.$meta=Mh("$meta",oJ("")[0],[]),V._storeNames.push("$meta"));var ze=V._createTransaction("readwrite",V._storeNames,ke);ze.create(ge),ze._completion.catch(Se);var Ye=ze._reject.bind(ze),Ze=Fe.transless||Fe;bt(function(){return Fe.trans=ze,Fe.transless=Ze,Z!==0?(OO(V,ge),pt=Z,((ut=ze).storeNames.includes("$meta")?ut.table("$meta").get("version").then(function(vt){return vt??pt}):Ge.resolve(pt)).then(function(vt){return _t=vt,dt=ze,gt=ge,yt=[],vt=(nt=V)._versions,mt=nt._dbSchema=IO(0,nt.idbdb,gt),(vt=vt.filter(function(Mt){return Mt._cfg.version>=_t})).length!==0?(vt.forEach(function(Mt){yt.push(function(){var Lt=mt,Ht=Mt._cfg.dbschema;NO(nt,Lt,gt),NO(nt,Ht,gt),mt=nt._dbSchema=Ht;var Yt=j8(Lt,Ht);Yt.add.forEach(function(Nn){U8(gt,Nn[0],Nn[1].primKey,Nn[1].indexes)}),Yt.change.forEach(function(Nn){if(Nn.recreate)throw new se.Upgrade("Not yet support for changing primary key");var xn=gt.objectStore(Nn.name);Nn.add.forEach(function(Fn){return AO(xn,Fn)}),Nn.change.forEach(function(Fn){xn.deleteIndex(Fn.name),AO(xn,Fn)}),Nn.del.forEach(function(Fn){return xn.deleteIndex(Fn)})});var gn=Mt._cfg.contentUpgrade;if(gn&&Mt._cfg.version>_t){OO(nt,gt),dt._memoizedTables={};var Tn=w(Ht);Yt.del.forEach(function(Nn){Tn[Nn]=Lt[Nn]}),H8(nt,[nt.Transaction.prototype]),RO(nt,[nt.Transaction.prototype],a(Tn),Tn),dt.schema=Tn;var vn,En=W(gn);return En&&xt(),Yt=Ge.follow(function(){var Nn;(vn=gn(dt))&&En&&(Nn=ht.bind(null,null),vn.then(Nn,Nn))}),vn&&typeof vn.then=="function"?Ge.resolve(vn):Yt.then(function(){return vn})}}),yt.push(function(Lt){var Ht,Yt,gn=Mt._cfg.dbschema;Ht=gn,Yt=Lt,[].slice.call(Yt.db.objectStoreNames).forEach(function(Tn){return Ht[Tn]==null&&Yt.db.deleteObjectStore(Tn)}),H8(nt,[nt.Transaction.prototype]),RO(nt,[nt.Transaction.prototype],nt._storeNames,nt._dbSchema),dt.schema=nt._dbSchema}),yt.push(function(Lt){nt.idbdb.objectStoreNames.contains("$meta")&&(Math.ceil(nt.idbdb.version/10)===Mt._cfg.version?(nt.idbdb.deleteObjectStore("$meta"),delete nt._dbSchema.$meta,nt._storeNames=nt._storeNames.filter(function(Ht){return Ht!=="$meta"})):Lt.objectStore("$meta").put(Mt._cfg.version,"version"))})}),function Mt(){return yt.length?Ge.resolve(yt.shift()(dt.idbtrans)).then(Mt):Ge.resolve()}().then(function(){iJ(mt,gt)})):Ge.resolve();var nt,_t,dt,gt,yt,mt}).catch(Ye)):(a(ke).forEach(function(vt){U8(ge,vt,ke[vt].primKey,ke[vt].indexes)}),OO(V,ge),void Ge.follow(function(){return V.on.populate.fire(ze)}).catch(Ye));var ut,pt})}function y9e(V,Z){iJ(V._dbSchema,Z),Z.db.version%10!=0||Z.objectStoreNames.contains("$meta")||Z.db.createObjectStore("$meta").add(Math.ceil(Z.db.version/10-1),"version");var ge=IO(0,V.idbdb,Z);NO(V,V._dbSchema,Z);for(var Se=0,ke=j8(ge,V._dbSchema).change;Se<ke.length;Se++){var ze=function(Ye){if(Ye.change.length||Ye.recreate)return console.warn("Unable to patch indexes of table ".concat(Ye.name," because it has changes on the type of index or primary key.")),{value:void 0};var Ze=Z.objectStore(Ye.name);Ye.add.forEach(function(ut){de&&console.debug("Dexie upgrade patch: Creating missing index ".concat(Ye.name,".").concat(ut.src)),AO(Ze,ut)})}(ke[Se]);if(typeof ze=="object")return ze.value}}function j8(V,Z){var ge,Se={del:[],add:[],change:[]};for(ge in V)Z[ge]||Se.del.push(ge);for(ge in Z){var ke=V[ge],ze=Z[ge];if(ke){var Ye={name:ge,def:ze,recreate:!1,del:[],add:[],change:[]};if(""+(ke.primKey.keyPath||"")!=""+(ze.primKey.keyPath||"")||ke.primKey.auto!==ze.primKey.auto)Ye.recreate=!0,Se.change.push(Ye);else{var Ze=ke.idxByName,ut=ze.idxByName,pt=void 0;for(pt in Ze)ut[pt]||Ye.del.push(pt);for(pt in ut){var vt=Ze[pt],nt=ut[pt];vt?vt.src!==nt.src&&Ye.change.push(nt):Ye.add.push(nt)}(0<Ye.del.length||0<Ye.add.length||0<Ye.change.length)&&Se.change.push(Ye)}}else Se.add.push([ge,ze])}return Se}function U8(V,Z,ge,Se){var ke=V.db.createObjectStore(Z,ge.keyPath?{keyPath:ge.keyPath,autoIncrement:ge.auto}:{autoIncrement:ge.auto});return Se.forEach(function(ze){return AO(ke,ze)}),ke}function iJ(V,Z){a(V).forEach(function(ge){Z.db.objectStoreNames.contains(ge)||(de&&console.debug("Dexie: Creating missing table",ge),U8(Z,ge,V[ge].primKey,V[ge].indexes))})}function AO(V,Z){V.createIndex(Z.name,Z.keyPath,{unique:Z.unique,multiEntry:Z.multi})}function IO(V,Z,ge){var Se={};return b(Z.objectStoreNames,0).forEach(function(ke){for(var ze=ge.objectStore(ke),Ye=eo(to(pt=ze.keyPath),pt||"",!0,!1,!!ze.autoIncrement,pt&&typeof pt!="string",!0),Ze=[],ut=0;ut<ze.indexNames.length;++ut){var vt=ze.index(ze.indexNames[ut]),pt=vt.keyPath,vt=eo(vt.name,pt,!!vt.unique,!!vt.multiEntry,!1,pt&&typeof pt!="string",!1);Ze.push(vt)}Se[ke]=Mh(ke,Ye,Ze)}),Se}function NO(V,Z,ge){for(var Se=ge.db.objectStoreNames,ke=0;ke<Se.length;++ke){var ze=Se[ke],Ye=ge.objectStore(ze);V._hasGetAll="getAll"in Ye;for(var Ze=0;Ze<Ye.indexNames.length;++Ze){var ut=Ye.indexNames[Ze],pt=Ye.index(ut).keyPath,vt=typeof pt=="string"?pt:"["+b(pt).join("+")+"]";!Z[ze]||(pt=Z[ze].idxByName[vt])&&(pt.name=ut,delete Z[ze].idxByName[vt],Z[ze].idxByName[ut]=pt)}}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&&(V._hasGetAll=!1)}function oJ(V){return V.split(",").map(function(Z,ge){var Se=(Z=Z.trim()).replace(/([&*]|\+\+)/g,""),ke=/^\[/.test(Se)?Se.match(/^\[(.*)\]$/)[1].split("+"):Se;return eo(Se,ke||null,/\&/.test(Z),/\*/.test(Z),/\+\+/.test(Z),s(ke),ge===0)})}var _9e=(MO.prototype._parseStoresSpec=function(V,Z){a(V).forEach(function(ge){if(V[ge]!==null){var Se=oJ(V[ge]),ke=Se.shift();if(ke.unique=!0,ke.multi)throw new se.Schema("Primary key cannot be multi-valued");Se.forEach(function(ze){if(ze.auto)throw new se.Schema("Only primary key can be marked as autoIncrement (++)");if(!ze.keyPath)throw new se.Schema("Index must have a name and cannot be an empty string")}),Z[ge]=Mh(ge,ke,Se)}})},MO.prototype.stores=function(ge){var Z=this.db;this._cfg.storesSource=this._cfg.storesSource?l(this._cfg.storesSource,ge):ge;var ge=Z._versions,Se={},ke={};return ge.forEach(function(ze){l(Se,ze._cfg.storesSource),ke=ze._cfg.dbschema={},ze._parseStoresSpec(Se,ke)}),Z._dbSchema=ke,H8(Z,[Z._allTables,Z,Z.Transaction.prototype]),RO(Z,[Z._allTables,Z,Z.Transaction.prototype,this._cfg.tables],a(ke),ke),Z._storeNames=a(ke),this},MO.prototype.upgrade=function(V){return this._cfg.contentUpgrade=we(this._cfg.contentUpgrade||ne,V),this},MO);function MO(){}function z8(V,Z){var ge=V._dbNamesDB;return ge||(ge=V._dbNamesDB=new ip(_n,{addons:[],indexedDB:V,IDBKeyRange:Z})).version(1).stores({dbnames:"name"}),ge.table("dbnames")}function V8(V){return V&&typeof V.databases=="function"}function G8(V){return bt(function(){return Fe.letThrough=!0,V()})}function W8(V){return!("from"in V)}var fs=function(V,Z){if(!this){var ge=new fs;return V&&"d"in V&&l(ge,V),ge}l(this,arguments.length?{d:1,from:V,to:1<arguments.length?Z:V}:{d:0})};function hE(V,Z,ge){var Se=Qe(Z,ge);if(!isNaN(Se)){if(0<Se)throw RangeError();if(W8(V))return l(V,{from:Z,to:ge,d:1});var ke=V.l,Se=V.r;if(Qe(ge,V.from)<0)return ke?hE(ke,Z,ge):V.l={from:Z,to:ge,d:1,l:null,r:null},sJ(V);if(0<Qe(Z,V.to))return Se?hE(Se,Z,ge):V.r={from:Z,to:ge,d:1,l:null,r:null},sJ(V);Qe(Z,V.from)<0&&(V.from=Z,V.l=null,V.d=Se?Se.d+1:1),0<Qe(ge,V.to)&&(V.to=ge,V.r=null,V.d=V.l?V.l.d+1:1),ge=!V.r,ke&&!V.l&&mE(V,ke),Se&&ge&&mE(V,Se)}}function mE(V,Z){W8(Z)||function ge(Se,ut){var ze=ut.from,Ye=ut.to,Ze=ut.l,ut=ut.r;hE(Se,ze,Ye),Ze&&ge(Se,Ze),ut&&ge(Se,ut)}(V,Z)}function aJ(V,Z){var ge=kO(Z),Se=ge.next();if(Se.done)return!1;for(var ke=Se.value,ze=kO(V),Ye=ze.next(ke.from),Ze=Ye.value;!Se.done&&!Ye.done;){if(Qe(Ze.from,ke.to)<=0&&0<=Qe(Ze.to,ke.from))return!0;Qe(ke.from,Ze.from)<0?ke=(Se=ge.next(Ze.from)).value:Ze=(Ye=ze.next(ke.from)).value}return!1}function kO(V){var Z=W8(V)?null:{s:0,n:V};return{next:function(ge){for(var Se=0<arguments.length;Z;)switch(Z.s){case 0:if(Z.s=1,Se)for(;Z.n.l&&Qe(ge,Z.n.from)<0;)Z={up:Z,n:Z.n.l,s:1};else for(;Z.n.l;)Z={up:Z,n:Z.n.l,s:1};case 1:if(Z.s=2,!Se||Qe(ge,Z.n.to)<=0)return{value:Z.n,done:!1};case 2:if(Z.n.r){Z.s=3,Z={up:Z,n:Z.n.r,s:0};continue}case 3:Z=Z.up}return{done:!0}}}}function sJ(V){var Z,ge,Se=(((Z=V.r)===null||Z===void 0?void 0:Z.d)||0)-(((ge=V.l)===null||ge===void 0?void 0:ge.d)||0),ke=1<Se?"r":Se<-1?"l":"";ke&&(Z=ke=="r"?"l":"r",ge=r({},V),Se=V[ke],V.from=Se.from,V.to=Se.to,V[ke]=Se[ke],ge[ke]=Se[Z],(V[Z]=ge).d=lJ(ge)),V.d=lJ(V)}function lJ(ge){var Z=ge.r,ge=ge.l;return(Z?ge?Math.max(Z.d,ge.d):Z.d:ge?ge.d:0)+1}function PO(V,Z){return a(Z).forEach(function(ge){V[ge]?mE(V[ge],Z[ge]):V[ge]=function Se(ke){var ze,Ye,Ze={};for(ze in ke)d(ke,ze)&&(Ye=ke[ze],Ze[ze]=!Ye||typeof Ye!="object"||A.has(Ye.constructor)?Ye:Se(Ye));return Ze}(Z[ge])}),V}function q8(V,Z){return V.all||Z.all||Object.keys(V).some(function(ge){return Z[ge]&&aJ(Z[ge],V[ge])})}f(fs.prototype,((Dc={add:function(V){return mE(this,V),this},addKey:function(V){return hE(this,V,V),this},addKeys:function(V){var Z=this;return V.forEach(function(ge){return hE(Z,ge,ge)}),this},hasKey:function(V){var Z=kO(this).next(V).value;return Z&&Qe(Z.from,V)<=0&&0<=Qe(Z.to,V)}})[k]=function(){return kO(this)},Dc));var Yg={},Y8={},K8=!1;function DO(V){PO(Y8,V),K8||(K8=!0,setTimeout(function(){K8=!1,Q8(Y8,!(Y8={}))},0))}function Q8(V,Z){Z===void 0&&(Z=!1);var ge=new Set;if(V.all)for(var Se=0,ke=Object.values(Yg);Se<ke.length;Se++)cJ(Ye=ke[Se],V,ge,Z);else for(var ze in V){var Ye,Ze=/^idb\:\/\/(.*)\/(.*)\//.exec(ze);Ze&&(ze=Ze[1],Ze=Ze[2],(Ye=Yg["idb://".concat(ze,"/").concat(Ze)])&&cJ(Ye,V,ge,Z))}ge.forEach(function(ut){return ut()})}function cJ(V,Z,ge,Se){for(var ke=[],ze=0,Ye=Object.entries(V.queries.query);ze<Ye.length;ze++){for(var Ze=Ye[ze],ut=Ze[0],pt=[],vt=0,nt=Ze[1];vt<nt.length;vt++){var _t=nt[vt];q8(Z,_t.obsSet)?_t.subscribers.forEach(function(mt){return ge.add(mt)}):Se&&pt.push(_t)}Se&&ke.push([ut,pt])}if(Se)for(var dt=0,gt=ke;dt<gt.length;dt++){var yt=gt[dt],ut=yt[0],pt=yt[1];V.queries.query[ut]=pt}}function S9e(V){var Z=V._state,ge=V._deps.indexedDB;if(Z.isBeingOpened||V.idbdb)return Z.dbReadyPromise.then(function(){return Z.dbOpenError?De(Z.dbOpenError):V});Z.isBeingOpened=!0,Z.dbOpenError=null,Z.openComplete=!1;var Se=Z.openCanceller,ke=Math.round(10*V.verno),ze=!1;function Ye(){if(Z.openCanceller!==Se)throw new se.DatabaseClosed("db.open() was cancelled")}function Ze(){return new Ge(function(_t,dt){if(Ye(),!ge)throw new se.MissingAPI;var gt=V.name,yt=Z.autoSchema||!ke?ge.open(gt):ge.open(gt,ke);if(!yt)throw new se.MissingAPI;yt.onerror=ba(dt),yt.onblocked=Le(V._fireOnBlocked),yt.onupgradeneeded=Le(function(mt){var Mt;vt=yt.transaction,Z.autoSchema&&!V._options.allowEmptyDB?(yt.onerror=Yd,vt.abort(),yt.result.close(),(Mt=ge.deleteDatabase(gt)).onsuccess=Mt.onerror=Le(function(){dt(new se.NoSuchDatabase("Database ".concat(gt," doesnt exist")))})):(vt.onerror=ba(dt),mt=mt.oldVersion>Math.pow(2,62)?0:mt.oldVersion,nt=mt<1,V.idbdb=yt.result,ze&&y9e(V,vt),b9e(V,mt/10,vt,dt))},dt),yt.onsuccess=Le(function(){vt=null;var mt,Mt,Lt,Ht,Yt,gn=V.idbdb=yt.result,Tn=b(gn.objectStoreNames);if(0<Tn.length)try{var vn=gn.transaction((Ht=Tn).length===1?Ht[0]:Ht,"readonly");if(Z.autoSchema)Mt=gn,Lt=vn,(mt=V).verno=Mt.version/10,Lt=mt._dbSchema=IO(0,Mt,Lt),mt._storeNames=b(Mt.objectStoreNames,0),RO(mt,[mt._allTables],a(Lt),Lt);else if(NO(V,V._dbSchema,vn),((Yt=j8(IO(0,(Yt=V).idbdb,vn),Yt._dbSchema)).add.length||Yt.change.some(function(En){return En.add.length||En.change.length}))&&!ze)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."),gn.close(),ke=gn.version+1,ze=!0,_t(Ze());OO(V,vn)}catch{}At.push(V),gn.onversionchange=Le(function(En){Z.vcFired=!0,V.on("versionchange").fire(En)}),gn.onclose=Le(function(En){V.on("close").fire(En)}),nt&&(Yt=V._deps,vn=gt,gn=Yt.indexedDB,Yt=Yt.IDBKeyRange,V8(gn)||vn===_n||z8(gn,Yt).put({name:vn}).catch(ne)),_t()},dt)}).catch(function(_t){switch(_t==null?void 0:_t.name){case"UnknownError":if(0<Z.PR1398_maxLoop)return Z.PR1398_maxLoop--,console.warn("Dexie: Workaround for Chrome UnknownError on open()"),Ze();break;case"VersionError":if(0<ke)return ke=0,Ze()}return Ge.reject(_t)})}var ut,pt=Z.dbReadyResolve,vt=null,nt=!1;return Ge.race([Se,(typeof navigator>"u"?Ge.resolve():!navigator.userAgentData&&/Safari\//.test(navigator.userAgent)&&!/Chrom(e|ium)\//.test(navigator.userAgent)&&indexedDB.databases?new Promise(function(_t){function dt(){return indexedDB.databases().finally(_t)}ut=setInterval(dt,100),dt()}).finally(function(){return clearInterval(ut)}):Promise.resolve()).then(Ze)]).then(function(){return Ye(),Z.onReadyBeingFired=[],Ge.resolve(G8(function(){return V.on.ready.fire(V.vip)})).then(function _t(){if(0<Z.onReadyBeingFired.length){var dt=Z.onReadyBeingFired.reduce(we,ne);return Z.onReadyBeingFired=[],Ge.resolve(G8(function(){return dt(V.vip)})).then(_t)}})}).finally(function(){Z.openCanceller===Se&&(Z.onReadyBeingFired=null,Z.isBeingOpened=!1)}).catch(function(_t){Z.dbOpenError=_t;try{vt&&vt.abort()}catch{}return Se===Z.openCanceller&&V._close(),De(_t)}).finally(function(){Z.openComplete=!0,pt()}).then(function(){var _t;return nt&&(_t={},V.tables.forEach(function(dt){dt.schema.indexes.forEach(function(gt){gt.name&&(_t["idb://".concat(V.name,"/").concat(dt.name,"/").concat(gt.name)]=new fs(-1/0,[[[]]]))}),_t["idb://".concat(V.name,"/").concat(dt.name,"/")]=_t["idb://".concat(V.name,"/").concat(dt.name,"/:dels")]=new fs(-1/0,[[[]]])}),kn(np).fire(_t),Q8(_t,!0)),V})}function X8(V){function Z(ze){return V.next(ze)}var ge=ke(Z),Se=ke(function(ze){return V.throw(ze)});function ke(ze){return function(ut){var Ze=ze(ut),ut=Ze.value;return Ze.done?ut:ut&&typeof ut.then=="function"?ut.then(ge,Se):s(ut)?Promise.all(ut).then(ge,Se):ge(ut)}}return ke(Z)()}function LO(V,Z,ge){for(var Se=s(V)?V.slice():[V],ke=0;ke<ge;++ke)Se.push(Z);return Se}var E9e={stack:"dbcore",name:"VirtualIndexMiddleware",level:1,create:function(V){return r(r({},V),{table:function(Z){var ge=V.table(Z),Se=ge.schema,ke={},ze=[];function Ye(nt,_t,dt){var gt=pE(nt),yt=ke[gt]=ke[gt]||[],mt=nt==null?0:typeof nt=="string"?1:nt.length,Mt=0<_t,Mt=r(r({},dt),{name:Mt?"".concat(gt,"(virtual-from:").concat(dt.name,")"):dt.name,lowLevelIndex:dt,isVirtual:Mt,keyTail:_t,keyLength:mt,extractKey:Wv(nt),unique:!Mt&&dt.unique});return yt.push(Mt),Mt.isPrimaryKey||ze.push(Mt),1<mt&&Ye(mt===2?nt[0]:nt.slice(0,mt-1),_t+1,dt),yt.sort(function(Lt,Ht){return Lt.keyTail-Ht.keyTail}),Mt}Z=Ye(Se.primaryKey.keyPath,0,Se.primaryKey),ke[":id"]=[Z];for(var Ze=0,ut=Se.indexes;Ze<ut.length;Ze++){var pt=ut[Ze];Ye(pt.keyPath,0,pt)}function vt(nt){var _t,dt=nt.query.index;return dt.isVirtual?r(r({},nt),{query:{index:dt.lowLevelIndex,range:(_t=nt.query.range,dt=dt.keyTail,{type:_t.type===1?2:_t.type,lower:LO(_t.lower,_t.lowerOpen?V.MAX_KEY:V.MIN_KEY,dt),lowerOpen:!0,upper:LO(_t.upper,_t.upperOpen?V.MIN_KEY:V.MAX_KEY,dt),upperOpen:!0})}}):nt}return r(r({},ge),{schema:r(r({},Se),{primaryKey:Z,indexes:ze,getIndexByKeyPath:function(nt){return(nt=ke[pE(nt)])&&nt[0]}}),count:function(nt){return ge.count(vt(nt))},query:function(nt){return ge.query(vt(nt))},openCursor:function(nt){var _t=nt.query.index,dt=_t.keyTail,gt=_t.isVirtual,yt=_t.keyLength;return gt?ge.openCursor(vt(nt)).then(function(Mt){return Mt&&mt(Mt)}):ge.openCursor(nt);function mt(Mt){return Object.create(Mt,{continue:{value:function(Lt){Lt!=null?Mt.continue(LO(Lt,nt.reverse?V.MAX_KEY:V.MIN_KEY,dt)):nt.unique?Mt.continue(Mt.key.slice(0,yt).concat(nt.reverse?V.MIN_KEY:V.MAX_KEY,dt)):Mt.continue()}},continuePrimaryKey:{value:function(Lt,Ht){Mt.continuePrimaryKey(LO(Lt,V.MAX_KEY,dt),Ht)}},primaryKey:{get:function(){return Mt.primaryKey}},key:{get:function(){var Lt=Mt.key;return yt===1?Lt[0]:Lt.slice(0,yt)}},value:{get:function(){return Mt.value}}})}}})}})}};function Z8(V,Z,ge,Se){return ge=ge||{},Se=Se||"",a(V).forEach(function(ke){var ze,Ye,Ze;d(Z,ke)?(ze=V[ke],Ye=Z[ke],typeof ze=="object"&&typeof Ye=="object"&&ze&&Ye?(Ze=M(ze))!==M(Ye)?ge[Se+ke]=Z[ke]:Ze==="Object"?Z8(ze,Ye,ge,Se+ke+"."):ze!==Ye&&(ge[Se+ke]=Z[ke]):ze!==Ye&&(ge[Se+ke]=Z[ke])):ge[Se+ke]=void 0}),a(Z).forEach(function(ke){d(V,ke)||(ge[Se+ke]=Z[ke])}),ge}function J8(V,Z){return Z.type==="delete"?Z.keys:Z.keys||Z.values.map(V.extractKey)}var C9e={stack:"dbcore",name:"HooksMiddleware",level:2,create:function(V){return r(r({},V),{table:function(Z){var ge=V.table(Z),Se=ge.schema.primaryKey;return r(r({},ge),{mutate:function(ke){var ze=Fe.trans,Ye=ze.table(Z).hook,Ze=Ye.deleting,ut=Ye.creating,pt=Ye.updating;switch(ke.type){case"add":if(ut.fire===ne)break;return ze._promise("readwrite",function(){return vt(ke)},!0);case"put":if(ut.fire===ne&&pt.fire===ne)break;return ze._promise("readwrite",function(){return vt(ke)},!0);case"delete":if(Ze.fire===ne)break;return ze._promise("readwrite",function(){return vt(ke)},!0);case"deleteRange":if(Ze.fire===ne)break;return ze._promise("readwrite",function(){return function nt(_t,dt,gt){return ge.query({trans:_t,values:!1,query:{index:Se,range:dt},limit:gt}).then(function(yt){var mt=yt.result;return vt({type:"delete",keys:mt,trans:_t}).then(function(Mt){return 0<Mt.numFailures?Promise.reject(Mt.failures[0]):mt.length<gt?{failures:[],numFailures:0,lastResult:void 0}:nt(_t,r(r({},dt),{lower:mt[mt.length-1],lowerOpen:!0}),gt)})})}(ke.trans,ke.range,1e4)},!0)}return ge.mutate(ke);function vt(nt){var _t,dt,gt,yt=Fe.trans,mt=nt.keys||J8(Se,nt);if(!mt)throw new Error("Keys missing");return(nt=nt.type==="add"||nt.type==="put"?r(r({},nt),{keys:mt}):r({},nt)).type!=="delete"&&(nt.values=i([],nt.values)),nt.keys&&(nt.keys=i([],nt.keys)),_t=ge,gt=mt,((dt=nt).type==="add"?Promise.resolve([]):_t.getMany({trans:dt.trans,keys:gt,cache:"immutable"})).then(function(Mt){var Lt=mt.map(function(Ht,Yt){var gn,Tn,vn,En=Mt[Yt],Nn={onerror:null,onsuccess:null};return nt.type==="delete"?Ze.fire.call(Nn,Ht,En,yt):nt.type==="add"||En===void 0?(gn=ut.fire.call(Nn,Ht,nt.values[Yt],yt),Ht==null&&gn!=null&&(nt.keys[Yt]=Ht=gn,Se.outbound||C(nt.values[Yt],Se.keyPath,Ht))):(gn=Z8(En,nt.values[Yt]),(Tn=pt.fire.call(Nn,gn,Ht,En,yt))&&(vn=nt.values[Yt],Object.keys(Tn).forEach(function(xn){d(vn,xn)?vn[xn]=Tn[xn]:C(vn,xn,Tn[xn])}))),Nn});return ge.mutate(nt).then(function(Ht){for(var Yt=Ht.failures,gn=Ht.results,Tn=Ht.numFailures,Ht=Ht.lastResult,vn=0;vn<mt.length;++vn){var En=(gn||mt)[vn],Nn=Lt[vn];En==null?Nn.onerror&&Nn.onerror(Yt[vn]):Nn.onsuccess&&Nn.onsuccess(nt.type==="put"&&Mt[vn]?nt.values[vn]:En)}return{failures:Yt,results:gn,numFailures:Tn,lastResult:Ht}}).catch(function(Ht){return Lt.forEach(function(Yt){return Yt.onerror&&Yt.onerror(Ht)}),Promise.reject(Ht)})})}}})}})}};function uJ(V,Z,ge){try{if(!Z||Z.keys.length<V.length)return null;for(var Se=[],ke=0,ze=0;ke<Z.keys.length&&ze<V.length;++ke)Qe(Z.keys[ke],V[ze])===0&&(Se.push(ge?N(Z.values[ke]):Z.values[ke]),++ze);return Se.length===V.length?Se:null}catch{return null}}var x9e={stack:"dbcore",level:-1,create:function(V){return{table:function(Z){var ge=V.table(Z);return r(r({},ge),{getMany:function(Se){if(!Se.cache)return ge.getMany(Se);var ke=uJ(Se.keys,Se.trans._cache,Se.cache==="clone");return ke?Ge.resolve(ke):ge.getMany(Se).then(function(ze){return Se.trans._cache={keys:Se.keys,values:Se.cache==="clone"?N(ze):ze},ze})},mutate:function(Se){return Se.type!=="add"&&(Se.trans._cache=null),ge.mutate(Se)}})}}}};function dJ(V,Z){return V.trans.mode==="readonly"&&!!V.subscr&&!V.trans.explicit&&V.trans.db._options.cache!=="disabled"&&!Z.schema.primaryKey.outbound}function fJ(V,Z){switch(V){case"query":return Z.values&&!Z.unique;case"get":case"getMany":case"count":case"openCursor":return!1}}var w9e={stack:"dbcore",level:0,name:"Observability",create:function(V){var Z=V.schema.name,ge=new fs(V.MIN_KEY,V.MAX_KEY);return r(r({},V),{transaction:function(Se,ke,ze){if(Fe.subscr&&ke!=="readonly")throw new se.ReadOnly("Readwrite transaction in liveQuery context. Querier source: ".concat(Fe.querier));return V.transaction(Se,ke,ze)},table:function(Se){var ke=V.table(Se),ze=ke.schema,Ye=ze.primaryKey,nt=ze.indexes,Ze=Ye.extractKey,ut=Ye.outbound,pt=Ye.autoIncrement&&nt.filter(function(dt){return dt.compound&&dt.keyPath.includes(Ye.keyPath)}),vt=r(r({},ke),{mutate:function(dt){function gt(xn){return xn="idb://".concat(Z,"/").concat(Se,"/").concat(xn),Ht[xn]||(Ht[xn]=new fs)}var yt,mt,Mt,Lt=dt.trans,Ht=dt.mutatedParts||(dt.mutatedParts={}),Yt=gt(""),gn=gt(":dels"),Tn=dt.type,Nn=dt.type==="deleteRange"?[dt.range]:dt.type==="delete"?[dt.keys]:dt.values.length<50?[J8(Ye,dt).filter(function(xn){return xn}),dt.values]:[],vn=Nn[0],En=Nn[1],Nn=dt.trans._cache;return s(vn)?(Yt.addKeys(vn),(Nn=Tn==="delete"||vn.length===En.length?uJ(vn,Nn):null)||gn.addKeys(vn),(Nn||En)&&(yt=gt,mt=Nn,Mt=En,ze.indexes.forEach(function(xn){var Fn=yt(xn.name||"");function Rr(Fr){return Fr!=null?xn.extractKey(Fr):null}function $r(Fr){return xn.multiEntry&&s(Fr)?Fr.forEach(function(Wl){return Fn.addKey(Wl)}):Fn.addKey(Fr)}(mt||Mt).forEach(function(Fr,ps){var Tr=mt&&Rr(mt[ps]),ps=Mt&&Rr(Mt[ps]);Qe(Tr,ps)!==0&&(Tr!=null&&$r(Tr),ps!=null&&$r(ps))})}))):vn?(En={from:(En=vn.lower)!==null&&En!==void 0?En:V.MIN_KEY,to:(En=vn.upper)!==null&&En!==void 0?En:V.MAX_KEY},gn.add(En),Yt.add(En)):(Yt.add(ge),gn.add(ge),ze.indexes.forEach(function(xn){return gt(xn.name).add(ge)})),ke.mutate(dt).then(function(xn){return!vn||dt.type!=="add"&&dt.type!=="put"||(Yt.addKeys(xn.results),pt&&pt.forEach(function(Fn){for(var Rr=dt.values.map(function(Tr){return Fn.extractKey(Tr)}),$r=Fn.keyPath.findIndex(function(Tr){return Tr===Ye.keyPath}),Fr=0,Wl=xn.results.length;Fr<Wl;++Fr)Rr[Fr][$r]=xn.results[Fr];gt(Fn.name).addKeys(Rr)})),Lt.mutatedParts=PO(Lt.mutatedParts||{},Ht),xn})}}),nt=function(gt){var yt=gt.query,gt=yt.index,yt=yt.range;return[gt,new fs((gt=yt.lower)!==null&&gt!==void 0?gt:V.MIN_KEY,(yt=yt.upper)!==null&&yt!==void 0?yt:V.MAX_KEY)]},_t={get:function(dt){return[Ye,new fs(dt.key)]},getMany:function(dt){return[Ye,new fs().addKeys(dt.keys)]},count:nt,query:nt,openCursor:nt};return a(_t).forEach(function(dt){vt[dt]=function(gt){var yt=Fe.subscr,mt=!!yt,Mt=dJ(Fe,ke)&&fJ(dt,gt)?gt.obsSet={}:yt;if(mt){var Lt=function(En){return En="idb://".concat(Z,"/").concat(Se,"/").concat(En),Mt[En]||(Mt[En]=new fs)},Ht=Lt(""),Yt=Lt(":dels"),yt=_t[dt](gt),mt=yt[0],yt=yt[1];if((dt==="query"&&mt.isPrimaryKey&&!gt.values?Yt:Lt(mt.name||"")).add(yt),!mt.isPrimaryKey){if(dt!=="count"){var gn=dt==="query"&&ut&&gt.values&&ke.query(r(r({},gt),{values:!1}));return ke[dt].apply(this,arguments).then(function(En){if(dt==="query"){if(ut&&gt.values)return gn.then(function(Rr){return Rr=Rr.result,Ht.addKeys(Rr),En});var Nn=gt.values?En.result.map(Ze):En.result;(gt.values?Ht:Yt).addKeys(Nn)}else if(dt==="openCursor"){var xn=En,Fn=gt.values;return xn&&Object.create(xn,{key:{get:function(){return Yt.addKey(xn.primaryKey),xn.key}},primaryKey:{get:function(){var Rr=xn.primaryKey;return Yt.addKey(Rr),Rr}},value:{get:function(){return Fn&&Ht.addKey(xn.primaryKey),xn.value}}})}return En})}Yt.add(ge)}}return ke[dt].apply(this,arguments)}}),vt}})}};function pJ(V,Z,ge){if(ge.numFailures===0)return Z;if(Z.type==="deleteRange")return null;var Se=Z.keys?Z.keys.length:"values"in Z&&Z.values?Z.values.length:1;return ge.numFailures===Se?null:(Z=r({},Z),s(Z.keys)&&(Z.keys=Z.keys.filter(function(ke,ze){return!(ze in ge.failures)})),"values"in Z&&s(Z.values)&&(Z.values=Z.values.filter(function(ke,ze){return!(ze in ge.failures)})),Z)}function e9(V,Z){return ge=V,((Se=Z).lower===void 0||(Se.lowerOpen?0<Qe(ge,Se.lower):0<=Qe(ge,Se.lower)))&&(V=V,(Z=Z).upper===void 0||(Z.upperOpen?Qe(V,Z.upper)<0:Qe(V,Z.upper)<=0));var ge,Se}function hJ(V,Z,_t,Se,ke,ze){if(!_t||_t.length===0)return V;var Ye=Z.query.index,Ze=Ye.multiEntry,ut=Z.query.range,pt=Se.schema.primaryKey.extractKey,vt=Ye.extractKey,nt=(Ye.lowLevelIndex||Ye).extractKey,_t=_t.reduce(function(dt,gt){var yt=dt,mt=[];if(gt.type==="add"||gt.type==="put")for(var Mt=new fs,Lt=gt.values.length-1;0<=Lt;--Lt){var Ht,Yt=gt.values[Lt],gn=pt(Yt);Mt.hasKey(gn)||(Ht=vt(Yt),(Ze&&s(Ht)?Ht.some(function(xn){return e9(xn,ut)}):e9(Ht,ut))&&(Mt.addKey(gn),mt.push(Yt)))}switch(gt.type){case"add":var Tn=new fs().addKeys(Z.values?dt.map(function(Fn){return pt(Fn)}):dt),yt=dt.concat(Z.values?mt.filter(function(Fn){return Fn=pt(Fn),!Tn.hasKey(Fn)&&(Tn.addKey(Fn),!0)}):mt.map(function(Fn){return pt(Fn)}).filter(function(Fn){return!Tn.hasKey(Fn)&&(Tn.addKey(Fn),!0)}));break;case"put":var vn=new fs().addKeys(gt.values.map(function(Fn){return pt(Fn)}));yt=dt.filter(function(Fn){return!vn.hasKey(Z.values?pt(Fn):Fn)}).concat(Z.values?mt:mt.map(function(Fn){return pt(Fn)}));break;case"delete":var En=new fs().addKeys(gt.keys);yt=dt.filter(function(Fn){return!En.hasKey(Z.values?pt(Fn):Fn)});break;case"deleteRange":var Nn=gt.range;yt=dt.filter(function(Fn){return!e9(pt(Fn),Nn)})}return yt},V);return _t===V?V:(_t.sort(function(dt,gt){return Qe(nt(dt),nt(gt))||Qe(pt(dt),pt(gt))}),Z.limit&&Z.limit<1/0&&(_t.length>Z.limit?_t.length=Z.limit:V.length===Z.limit&&_t.length<Z.limit&&(ke.dirty=!0)),ze?Object.freeze(_t):_t)}function mJ(V,Z){return Qe(V.lower,Z.lower)===0&&Qe(V.upper,Z.upper)===0&&!!V.lowerOpen==!!Z.lowerOpen&&!!V.upperOpen==!!Z.upperOpen}function T9e(V,Z){return function(ge,Se,ke,ze){if(ge===void 0)return Se!==void 0?-1:0;if(Se===void 0)return 1;if((Se=Qe(ge,Se))===0){if(ke&&ze)return 0;if(ke)return 1;if(ze)return-1}return Se}(V.lower,Z.lower,V.lowerOpen,Z.lowerOpen)<=0&&0<=function(ge,Se,ke,ze){if(ge===void 0)return Se!==void 0?1:0;if(Se===void 0)return-1;if((Se=Qe(ge,Se))===0){if(ke&&ze)return 0;if(ke)return-1;if(ze)return 1}return Se}(V.upper,Z.upper,V.upperOpen,Z.upperOpen)}function O9e(V,Z,ge,Se){V.subscribers.add(ge),Se.addEventListener("abort",function(){var ke,ze;V.subscribers.delete(ge),V.subscribers.size===0&&(ke=V,ze=Z,setTimeout(function(){ke.subscribers.size===0&&B(ze,ke)},3e3))})}var R9e={stack:"dbcore",level:0,name:"Cache",create:function(V){var Z=V.schema.name;return r(r({},V),{transaction:function(ge,Se,ke){var ze,Ye,Ze=V.transaction(ge,Se,ke);return Se==="readwrite"&&(Ye=(ze=new AbortController).signal,ke=function(ut){return function(){if(ze.abort(),Se==="readwrite"){for(var pt=new Set,vt=0,nt=ge;vt<nt.length;vt++){var _t=nt[vt],dt=Yg["idb://".concat(Z,"/").concat(_t)];if(dt){var gt=V.table(_t),yt=dt.optimisticOps.filter(function(Fn){return Fn.trans===Ze});if(Ze._explicit&&ut&&Ze.mutatedParts)for(var mt=0,Mt=Object.values(dt.queries.query);mt<Mt.length;mt++)for(var Lt=0,Ht=(Tn=Mt[mt]).slice();Lt<Ht.length;Lt++)q8((vn=Ht[Lt]).obsSet,Ze.mutatedParts)&&(B(Tn,vn),vn.subscribers.forEach(function(Fn){return pt.add(Fn)}));else if(0<yt.length){dt.optimisticOps=dt.optimisticOps.filter(function(Fn){return Fn.trans!==Ze});for(var Yt=0,gn=Object.values(dt.queries.query);Yt<gn.length;Yt++)for(var Tn,vn,En,Nn=0,xn=(Tn=gn[Yt]).slice();Nn<xn.length;Nn++)(vn=xn[Nn]).res!=null&&Ze.mutatedParts&&(ut&&!vn.dirty?(En=Object.isFrozen(vn.res),En=hJ(vn.res,vn.req,yt,gt,vn,En),vn.dirty?(B(Tn,vn),vn.subscribers.forEach(function(Fn){return pt.add(Fn)})):En!==vn.res&&(vn.res=En,vn.promise=Ge.resolve({result:En}))):(vn.dirty&&B(Tn,vn),vn.subscribers.forEach(function(Fn){return pt.add(Fn)})))}}}pt.forEach(function(Fn){return Fn()})}}},Ze.addEventListener("abort",ke(!1),{signal:Ye}),Ze.addEventListener("error",ke(!1),{signal:Ye}),Ze.addEventListener("complete",ke(!0),{signal:Ye})),Ze},table:function(ge){var Se=V.table(ge),ke=Se.schema.primaryKey;return r(r({},Se),{mutate:function(ze){var Ye=Fe.trans;if(ke.outbound||Ye.db._options.cache==="disabled"||Ye.explicit||Ye.idbtrans.mode!=="readwrite")return Se.mutate(ze);var Ze=Yg["idb://".concat(Z,"/").concat(ge)];return Ze?(Ye=Se.mutate(ze),ze.type!=="add"&&ze.type!=="put"||!(50<=ze.values.length||J8(ke,ze).some(function(ut){return ut==null}))?(Ze.optimisticOps.push(ze),ze.mutatedParts&&DO(ze.mutatedParts),Ye.then(function(ut){0<ut.numFailures&&(B(Ze.optimisticOps,ze),(ut=pJ(0,ze,ut))&&Ze.optimisticOps.push(ut),ze.mutatedParts&&DO(ze.mutatedParts))}),Ye.catch(function(){B(Ze.optimisticOps,ze),ze.mutatedParts&&DO(ze.mutatedParts)})):Ye.then(function(ut){var pt=pJ(0,r(r({},ze),{values:ze.values.map(function(vt,nt){var _t;return ut.failures[nt]?vt:(vt=(_t=ke.keyPath)!==null&&_t!==void 0&&_t.includes(".")?N(vt):r({},vt),C(vt,ke.keyPath,ut.results[nt]),vt)})}),ut);Ze.optimisticOps.push(pt),queueMicrotask(function(){return ze.mutatedParts&&DO(ze.mutatedParts)})}),Ye):Se.mutate(ze)},query:function(ze){if(!dJ(Fe,Se)||!fJ("query",ze))return Se.query(ze);var Ye=((pt=Fe.trans)===null||pt===void 0?void 0:pt.db._options.cache)==="immutable",nt=Fe,Ze=nt.requery,ut=nt.signal,pt=function(gt,yt,mt,Mt){var Lt=Yg["idb://".concat(gt,"/").concat(yt)];if(!Lt)return[];if(!(yt=Lt.queries[mt]))return[null,!1,Lt,null];var Ht=yt[(Mt.query?Mt.query.index.name:null)||""];if(!Ht)return[null,!1,Lt,null];switch(mt){case"query":var Yt=Ht.find(function(gn){return gn.req.limit===Mt.limit&&gn.req.values===Mt.values&&mJ(gn.req.query.range,Mt.query.range)});return Yt?[Yt,!0,Lt,Ht]:[Ht.find(function(gn){return("limit"in gn.req?gn.req.limit:1/0)>=Mt.limit&&(!Mt.values||gn.req.values)&&T9e(gn.req.query.range,Mt.query.range)}),!1,Lt,Ht];case"count":return Yt=Ht.find(function(gn){return mJ(gn.req.query.range,Mt.query.range)}),[Yt,!!Yt,Lt,Ht]}}(Z,ge,"query",ze),vt=pt[0],nt=pt[1],_t=pt[2],dt=pt[3];return vt&&nt?vt.obsSet=ze.obsSet:(nt=Se.query(ze).then(function(gt){var yt=gt.result;if(vt&&(vt.res=yt),Ye){for(var mt=0,Mt=yt.length;mt<Mt;++mt)Object.freeze(yt[mt]);Object.freeze(yt)}else gt.result=N(yt);return gt}).catch(function(gt){return dt&&vt&&B(dt,vt),Promise.reject(gt)}),vt={obsSet:ze.obsSet,promise:nt,subscribers:new Set,type:"query",req:ze,dirty:!1},dt?dt.push(vt):(dt=[vt],(_t=_t||(Yg["idb://".concat(Z,"/").concat(ge)]={queries:{query:{},count:{}},objs:new Map,optimisticOps:[],unsignaledParts:{}})).queries.query[ze.query.index.name||""]=dt)),O9e(vt,dt,Ze,ut),vt.promise.then(function(gt){return{result:hJ(gt.result,ze,_t==null?void 0:_t.optimisticOps,Se,vt,Ye)}})}})}})}};function $O(V,Z){return new Proxy(V,{get:function(ge,Se,ke){return Se==="db"?Z:Reflect.get(ge,Se,ke)}})}var ip=(Xo.prototype.version=function(V){if(isNaN(V)||V<.1)throw new se.Type("Given version is not a positive number");if(V=Math.round(10*V)/10,this.idbdb||this._state.isBeingOpened)throw new se.Schema("Cannot add version when database is open");this.verno=Math.max(this.verno,V);var Z=this._versions,ge=Z.filter(function(Se){return Se._cfg.version===V})[0];return ge||(ge=new this.Version(V),Z.push(ge),Z.sort(v9e),ge.stores({}),this._state.autoSchema=!1,ge)},Xo.prototype._whenReady=function(V){var Z=this;return this.idbdb&&(this._state.openComplete||Fe.letThrough||this._vip)?V():new Ge(function(ge,Se){if(Z._state.openComplete)return Se(new se.DatabaseClosed(Z._state.dbOpenError));if(!Z._state.isBeingOpened){if(!Z._state.autoOpen)return void Se(new se.DatabaseClosed);Z.open().catch(ne)}Z._state.dbReadyPromise.then(ge,Se)}).then(V)},Xo.prototype.use=function(V){var Z=V.stack,ge=V.create,Se=V.level,ke=V.name;return ke&&this.unuse({stack:Z,name:ke}),V=this._middlewares[Z]||(this._middlewares[Z]=[]),V.push({stack:Z,create:ge,level:Se??10,name:ke}),V.sort(function(ze,Ye){return ze.level-Ye.level}),this},Xo.prototype.unuse=function(V){var Z=V.stack,ge=V.name,Se=V.create;return Z&&this._middlewares[Z]&&(this._middlewares[Z]=this._middlewares[Z].filter(function(ke){return Se?ke.create!==Se:!!ge&&ke.name!==ge})),this},Xo.prototype.open=function(){var V=this;return $t(Be,function(){return S9e(V)})},Xo.prototype._close=function(){var V=this._state,Z=At.indexOf(this);if(0<=Z&&At.splice(Z,1),this.idbdb){try{this.idbdb.close()}catch{}this.idbdb=null}V.isBeingOpened||(V.dbReadyPromise=new Ge(function(ge){V.dbReadyResolve=ge}),V.openCanceller=new Ge(function(ge,Se){V.cancelOpen=Se}))},Xo.prototype.close=function(ge){var Z=(ge===void 0?{disableAutoOpen:!0}:ge).disableAutoOpen,ge=this._state;Z?(ge.isBeingOpened&&ge.cancelOpen(new se.DatabaseClosed),this._close(),ge.autoOpen=!1,ge.dbOpenError=new se.DatabaseClosed):(this._close(),ge.autoOpen=this._options.autoOpen||ge.isBeingOpened,ge.openComplete=!1,ge.dbOpenError=null)},Xo.prototype.delete=function(V){var Z=this;V===void 0&&(V={disableAutoOpen:!0});var ge=0<arguments.length&&typeof arguments[0]!="object",Se=this._state;return new Ge(function(ke,ze){function Ye(){Z.close(V);var Ze=Z._deps.indexedDB.deleteDatabase(Z.name);Ze.onsuccess=Le(function(){var ut,pt,vt;ut=Z._deps,pt=Z.name,vt=ut.indexedDB,ut=ut.IDBKeyRange,V8(vt)||pt===_n||z8(vt,ut).delete(pt).catch(ne),ke()}),Ze.onerror=ba(ze),Ze.onblocked=Z._fireOnBlocked}if(ge)throw new se.InvalidArgument("Invalid closeOptions argument to db.delete()");Se.isBeingOpened?Se.dbReadyPromise.then(Ye):Ye()})},Xo.prototype.backendDB=function(){return this.idbdb},Xo.prototype.isOpen=function(){return this.idbdb!==null},Xo.prototype.hasBeenClosed=function(){var V=this._state.dbOpenError;return V&&V.name==="DatabaseClosed"},Xo.prototype.hasFailed=function(){return this._state.dbOpenError!==null},Xo.prototype.dynamicallyOpened=function(){return this._state.autoSchema},Object.defineProperty(Xo.prototype,"tables",{get:function(){var V=this;return a(this._allTables).map(function(Z){return V._allTables[Z]})},enumerable:!1,configurable:!0}),Xo.prototype.transaction=function(){var V=(function(Z,ge,Se){var ke=arguments.length;if(ke<2)throw new se.InvalidArgument("Too few arguments");for(var ze=new Array(ke-1);--ke;)ze[ke-1]=arguments[ke];return Se=ze.pop(),[Z,T(ze),Se]}).apply(this,arguments);return this._transaction.apply(this,V)},Xo.prototype._transaction=function(V,Z,ge){var Se=this,ke=Fe.trans;ke&&ke.db===this&&V.indexOf("!")===-1||(ke=null);var ze,Ye,Ze=V.indexOf("?")!==-1;V=V.replace("!","").replace("?","");try{if(Ye=Z.map(function(pt){if(pt=pt instanceof Se.Table?pt.name:pt,typeof pt!="string")throw new TypeError("Invalid table argument to Dexie.transaction(). Only Table or String are allowed");return pt}),V=="r"||V===zn)ze=zn;else{if(V!="rw"&&V!=R)throw new se.InvalidArgument("Invalid transaction mode: "+V);ze=R}if(ke){if(ke.mode===zn&&ze===R){if(!Ze)throw new se.SubTransaction("Cannot enter a sub-transaction with READWRITE mode when parent transaction is READONLY");ke=null}ke&&Ye.forEach(function(pt){if(ke&&ke.storeNames.indexOf(pt)===-1){if(!Ze)throw new se.SubTransaction("Table "+pt+" not included in parent transaction.");ke=null}}),Ze&&ke&&!ke.active&&(ke=null)}}catch(pt){return ke?ke._promise(null,function(vt,nt){nt(pt)}):De(pt)}var ut=(function pt(vt,nt,_t,dt,gt){return Ge.resolve().then(function(){var yt=Fe.transless||Fe,mt=vt._createTransaction(nt,_t,vt._dbSchema,dt);if(mt.explicit=!0,yt={trans:mt,transless:yt},dt)mt.idbtrans=dt.idbtrans;else try{mt.create(),mt.idbtrans._explicit=!0,vt._state.PR1398_maxLoop=3}catch(Ht){return Ht.name===ee.InvalidState&&vt.isOpen()&&0<--vt._state.PR1398_maxLoop?(console.warn("Dexie: Need to reopen db"),vt.close({disableAutoOpen:!1}),vt.open().then(function(){return pt(vt,nt,_t,null,gt)})):De(Ht)}var Mt,Lt=W(gt);return Lt&&xt(),yt=Ge.follow(function(){var Ht;(Mt=gt.call(mt,mt))&&(Lt?(Ht=ht.bind(null,null),Mt.then(Ht,Ht)):typeof Mt.next=="function"&&typeof Mt.throw=="function"&&(Mt=X8(Mt)))},yt),(Mt&&typeof Mt.then=="function"?Ge.resolve(Mt).then(function(Ht){return mt.active?Ht:De(new se.PrematureCommit("Transaction committed too early. See http://bit.ly/2kdckMn"))}):yt.then(function(){return Mt})).then(function(Ht){return dt&&mt._resolve(),mt._completion.then(function(){return Ht})}).catch(function(Ht){return mt._reject(Ht),De(Ht)})})}).bind(null,this,ze,Ye,ke,ge);return ke?ke._promise(ze,ut,"lock"):Fe.trans?$t(Fe.transless,function(){return Se._whenReady(ut)}):this._whenReady(ut)},Xo.prototype.table=function(V){if(!d(this._allTables,V))throw new se.InvalidTable("Table ".concat(V," does not exist"));return this._allTables[V]},Xo);function Xo(V,Z){var ge=this;this._middlewares={},this.verno=0;var Se=Xo.dependencies;this._options=Z=r({addons:Xo.addons,autoOpen:!0,indexedDB:Se.indexedDB,IDBKeyRange:Se.IDBKeyRange,cache:"cloned"},Z),this._deps={indexedDB:Z.indexedDB,IDBKeyRange:Z.IDBKeyRange},Se=Z.addons,this._dbSchema={},this._versions=[],this._storeNames=[],this._allTables={},this.idbdb=null,this._novip=this;var ke,ze,Ye,Ze,ut,pt={dbOpenError:null,isBeingOpened:!1,onReadyBeingFired:null,openComplete:!1,dbReadyResolve:ne,dbReadyPromise:null,cancelOpen:ne,openCanceller:null,autoSchema:!0,PR1398_maxLoop:3,autoOpen:Z.autoOpen};pt.dbReadyPromise=new Ge(function(nt){pt.dbReadyResolve=nt}),pt.openCanceller=new Ge(function(nt,_t){pt.cancelOpen=_t}),this._state=pt,this.name=V,this.on=Hr(this,"populate","blocked","versionchange","close",{ready:[we,ne]}),this.on.ready.subscribe=_(this.on.ready.subscribe,function(nt){return function(_t,dt){Xo.vip(function(){var gt,yt=ge._state;yt.openComplete?(yt.dbOpenError||Ge.resolve().then(_t),dt&&nt(_t)):yt.onReadyBeingFired?(yt.onReadyBeingFired.push(_t),dt&&nt(_t)):(nt(_t),gt=ge,dt||nt(function mt(){gt.on.ready.unsubscribe(_t),gt.on.ready.unsubscribe(mt)}))})}}),this.Collection=(ke=this,bi(Ii.prototype,function(Mt,mt){this.db=ke;var dt=J,gt=null;if(mt)try{dt=mt()}catch(Lt){gt=Lt}var yt=Mt._ctx,mt=yt.table,Mt=mt.hook.reading.fire;this._ctx={table:mt,index:yt.index,isPrimKey:!yt.index||mt.schema.primKey.keyPath&&yt.index===mt.schema.primKey.name,range:dt,keysOnly:!1,dir:"next",unique:"",algorithm:null,filter:null,replayFilter:null,justLimit:!0,isMatch:null,offset:0,limit:1/0,error:gt,or:yt.or,valueMapper:Mt!==he?Mt:null}})),this.Table=(ze=this,bi(gr.prototype,function(nt,_t,dt){this.db=ze,this._tx=dt,this.name=nt,this.schema=_t,this.hook=ze._allTables[nt]?ze._allTables[nt].hook:Hr(null,{creating:[re,ne],reading:[me,he],updating:[be,ne],deleting:[ve,ne]})})),this.Transaction=(Ye=this,bi(pr.prototype,function(nt,_t,dt,gt,yt){var mt=this;this.db=Ye,this.mode=nt,this.storeNames=_t,this.schema=dt,this.chromeTransactionDurability=gt,this.idbtrans=null,this.on=Hr(this,"complete","error","abort"),this.parent=yt||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 Ge(function(Mt,Lt){mt._resolve=Mt,mt._reject=Lt}),this._completion.then(function(){mt.active=!1,mt.on.complete.fire()},function(Mt){var Lt=mt.active;return mt.active=!1,mt.on.error.fire(Mt),mt.parent?mt.parent._reject(Mt):Lt&&mt.idbtrans&&mt.idbtrans.abort(),De(Mt)})})),this.Version=(Ze=this,bi(_9e.prototype,function(nt){this.db=Ze,this._cfg={version:nt,storesSource:null,dbschema:{},tables:{},contentUpgrade:null}})),this.WhereClause=(ut=this,bi(la.prototype,function(nt,_t,dt){if(this.db=ut,this._ctx={table:nt,index:_t===":id"?null:_t,or:dt},this._cmp=this._ascending=Qe,this._descending=function(gt,yt){return Qe(yt,gt)},this._max=function(gt,yt){return 0<Qe(gt,yt)?gt:yt},this._min=function(gt,yt){return Qe(gt,yt)<0?gt:yt},this._IDBKeyRange=ut._deps.IDBKeyRange,!this._IDBKeyRange)throw new se.MissingAPI})),this.on("versionchange",function(nt){0<nt.newVersion?console.warn("Another connection wants to upgrade database '".concat(ge.name,"'. Closing db now to resume the upgrade.")):console.warn("Another connection wants to delete database '".concat(ge.name,"'. Closing db now to resume the delete request.")),ge.close({disableAutoOpen:!1})}),this.on("blocked",function(nt){!nt.newVersion||nt.newVersion<nt.oldVersion?console.warn("Dexie.delete('".concat(ge.name,"') was blocked")):console.warn("Upgrade '".concat(ge.name,"' blocked by other connection holding version ").concat(nt.oldVersion/10))}),this._maxKey=rp(Z.IDBKeyRange),this._createTransaction=function(nt,_t,dt,gt){return new ge.Transaction(nt,_t,dt,ge._options.chromeTransactionDurability,gt)},this._fireOnBlocked=function(nt){ge.on("blocked").fire(nt),At.filter(function(_t){return _t.name===ge.name&&_t!==ge&&!_t._state.vcFired}).map(function(_t){return _t.on("versionchange").fire(nt)})},this.use(x9e),this.use(R9e),this.use(w9e),this.use(E9e),this.use(C9e);var vt=new Proxy(this,{get:function(nt,_t,dt){if(_t==="_vip")return!0;if(_t==="table")return function(yt){return $O(ge.table(yt),vt)};var gt=Reflect.get(nt,_t,dt);return gt instanceof gr?$O(gt,vt):_t==="tables"?gt.map(function(yt){return $O(yt,vt)}):_t==="_createTransaction"?function(){return $O(gt.apply(this,arguments),vt)}:gt}});this.vip=vt,Se.forEach(function(nt){return nt(ge)})}var FO,Dc=typeof Symbol<"u"&&"observable"in Symbol?Symbol.observable:"@@observable",A9e=(t9.prototype.subscribe=function(V,Z,ge){return this._subscribe(V&&typeof V!="function"?V:{next:V,error:Z,complete:ge})},t9.prototype[Dc]=function(){return this},t9);function t9(V){this._subscribe=V}try{FO={indexedDB:o.indexedDB||o.mozIndexedDB||o.webkitIndexedDB||o.msIndexedDB,IDBKeyRange:o.IDBKeyRange||o.webkitIDBKeyRange}}catch{FO={indexedDB:null,IDBKeyRange:null}}function gJ(V){var Z,ge=!1,Se=new A9e(function(ke){var ze=W(V),Ye,Ze=!1,ut={},pt={},vt={get closed(){return Ze},unsubscribe:function(){Ze||(Ze=!0,Ye&&Ye.abort(),nt&&kn.storagemutated.unsubscribe(dt))}};ke.start&&ke.start(vt);var nt=!1,_t=function(){return Ft(gt)},dt=function(yt){PO(ut,yt),q8(pt,ut)&&_t()},gt=function(){var yt,mt,Mt;!Ze&&FO.indexedDB&&(ut={},yt={},Ye&&Ye.abort(),Ye=new AbortController,Mt=function(Lt){var Ht=Tt();try{ze&&xt();var Yt=bt(V,Lt);return Yt=ze?Yt.finally(ht):Yt}finally{Ht&&Me()}}(mt={subscr:yt,signal:Ye.signal,requery:_t,querier:V,trans:null}),Promise.resolve(Mt).then(function(Lt){ge=!0,Z=Lt,Ze||mt.signal.aborted||(ut={},function(Ht){for(var Yt in Ht)if(d(Ht,Yt))return;return 1}(pt=yt)||nt||(kn(np,dt),nt=!0),Ft(function(){return!Ze&&ke.next&&ke.next(Lt)}))},function(Lt){ge=!1,["DatabaseClosedError","AbortError"].includes(Lt==null?void 0:Lt.name)||Ze||Ft(function(){Ze||ke.error&&ke.error(Lt)})}))};return setTimeout(_t,0),vt});return Se.hasValue=function(){return ge},Se.getValue=function(){return Z},Se}var Kg=ip;function n9(V){var Z=kh;try{kh=!0,kn.storagemutated.fire(V),Q8(V,!0)}finally{kh=Z}}f(Kg,r(r({},oe),{delete:function(V){return new Kg(V,{addons:[]}).delete()},exists:function(V){return new Kg(V,{addons:[]}).open().then(function(Z){return Z.close(),!0}).catch("NoSuchDatabaseError",function(){return!1})},getDatabaseNames:function(V){try{return Z=Kg.dependencies,ge=Z.indexedDB,Z=Z.IDBKeyRange,(V8(ge)?Promise.resolve(ge.databases()).then(function(Se){return Se.map(function(ke){return ke.name}).filter(function(ke){return ke!==_n})}):z8(ge,Z).toCollection().primaryKeys()).then(V)}catch{return De(new se.MissingAPI)}var Z,ge},defineClass:function(){return function(V){l(this,V)}},ignoreTransaction:function(V){return Fe.trans?$t(Fe.transless,V):V()},vip:G8,async:function(V){return function(){try{var Z=X8(V.apply(this,arguments));return Z&&typeof Z.then=="function"?Z:Ge.resolve(Z)}catch(ge){return De(ge)}}},spawn:function(V,Z,ge){try{var Se=X8(V.apply(ge,Z||[]));return Se&&typeof Se.then=="function"?Se:Ge.resolve(Se)}catch(ke){return De(ke)}},currentTransaction:{get:function(){return Fe.trans||null}},waitFor:function(V,Z){return Z=Ge.resolve(typeof V=="function"?Kg.ignoreTransaction(V):V).timeout(Z||6e4),Fe.trans?Fe.trans.waitFor(Z):Z},Promise:Ge,debug:{get:function(){return de},set:function(V){Ee(V)}},derive:g,extend:l,props:f,override:_,Events:Hr,on:kn,liveQuery:gJ,extendObservabilitySet:PO,getByKeyPath:E,setByKeyPath:C,delByKeyPath:function(V,Z){typeof Z=="string"?C(V,Z,void 0):"length"in Z&&[].map.call(Z,function(ge){C(V,ge,void 0)})},shallowClone:w,deepClone:N,getObjectDiff:Z8,cmp:Qe,asap:x,minKey:-1/0,addons:[],connections:At,errnames:ee,dependencies:FO,cache:Yg,semVer:"4.0.11",version:"4.0.11".split(".").map(function(V){return parseInt(V)}).reduce(function(V,Z,ge){return V+Z/Math.pow(10,2*ge)})})),Kg.maxKey=rp(Kg.dependencies.IDBKeyRange),typeof dispatchEvent<"u"&&typeof addEventListener<"u"&&(kn(np,function(V){kh||(V=new CustomEvent(Wg,{detail:V}),kh=!0,dispatchEvent(V),kh=!1)}),addEventListener(Wg,function(V){V=V.detail,kh||n9(V)}));var qv,kh=!1,vJ=function(){};return typeof BroadcastChannel<"u"&&((vJ=function(){(qv=new BroadcastChannel(Wg)).onmessage=function(V){return V.data&&n9(V.data)}})(),typeof qv.unref=="function"&&qv.unref(),kn(np,function(V){kh||qv.postMessage(V)})),typeof addEventListener<"u"&&(addEventListener("pagehide",function(V){if(!ip.disableBfCache&&V.persisted){de&&console.debug("Dexie: handling persisted pagehide"),qv!=null&&qv.close();for(var Z=0,ge=At;Z<ge.length;Z++)ge[Z].close({disableAutoOpen:!1})}}),addEventListener("pageshow",function(V){!ip.disableBfCache&&V.persisted&&(de&&console.debug("Dexie: handling persisted pageshow"),vJ(),n9({all:new fs(-1/0,[[]])}))})),Ge.rejectionMapper=function(V,Z){return!V||V instanceof H||V instanceof TypeError||V instanceof SyntaxError||!V.name||!le[V.name]?V:(Z=new le[V.name](Z||V.message,V),"stack"in V&&m(Z,"stack",{get:function(){return this.inner.stack}}),Z)},Ee(de),r(ip,Object.freeze({__proto__:null,Dexie:ip,liveQuery:gJ,Entity:qe,cmp:Qe,PropModification:Er,replacePrefix:function(V,Z){return new Er({replacePrefix:[V,Z]})},add:function(V){return new Er({add:V})},remove:function(V){return new Er({remove:V})},default:ip,RangeSet:fs,mergeRanges:mE,rangesOverlap:aJ}),{default:ip}),ip})})(O4e);var $Xt=O4e.exports;const rV=oi($Xt),$ue=Symbol.for("Dexie"),AM=globalThis[$ue]||(globalThis[$ue]=rV);if(rV.semVer!==AM.semVer)throw new Error(`Two different versions of Dexie loaded in the same app: ${rV.semVer} and ${AM.semVer}`);const{liveQuery:FXt,mergeRanges:hkn,rangesOverlap:mkn,RangeSet:gkn,cmp:vkn,Entity:bkn,PropModification:ykn,replacePrefix:_kn,add:Skn,remove:Ekn}=AM;class R4e extends AM{constructor(){super("bytedesk");ni(this,"threads");ni(this,"messages");this.version(1).stores({threads:"++id, uid",messages:"++id, uid"})}async createMessage(n){return console.log("useIndexedDB createMessage",n.content),await zc.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 zc.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 zc.messages.get(n)}async updateMessage(n,r){return await zc.messages.update(n,{content:r})}async deleteMessage(n){return await zc.messages.delete(n)}subscribeMessages(){FXt(()=>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 zc.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 zc.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 zc.threads.get(n)}async updateThread(n,r){return await zc.threads.update(n,r)}async deleteThread(n){return await zc.threads.delete(n)}}const zc=new R4e;let Uo,gl,vl,pb=!1;const BXt=({uid:e,username:t,accessToken:n})=>{if(n===""||n==null){console.log("accessToken is empty, don't connect mqtt");return}if(gl=Ra.getState().userInfo,vl=hv.getState().agentInfo,pb){console.log("mqtt is connecting");return}if(Uo&&Uo.connected){console.log("mqtt already connected");return}if(Uo&&Uo.reconnecting){console.log("mqtt already reconnecting");return}pb=!0;const r=Ra.getState().deviceUid,o={keepalive:30,clientId:e+"/"+Or+"/"+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),Uo=NXt.connect(lje(),o),Uo.on("connect",()=>{console.log("mqtt event connected"),pb=!1,_r.emit(CB)}),Uo.on("message",async function(a,s,l){console.log("mqtt receive message topic:",a,l);const c=T4e.Message.deserializeBinary(s),u=Cf.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(VXt(c,gl,vl))switch(c.getType()){case $B:case LB:D$(c);return;case PB:case DB:return;case Qee:return;case Zee:console.log("self transfer message"),jue(f,d);break;case Jee:console.log("self transfer accept message"),Uue(f,d);return;case ete:console.log("self transfer reject message"),zue(f,d);return;case Xee:console.log("self recall message"),Vue(f);return;case vw:console.log("thread closed message"),Cf.getState().closeThread(d.topic);break;default:c.setStatus(MB)}else switch(c.getType()){case $B:case LB:D$(c);return;case PB:case DB:Hue(u,d,c.getType());return;case mw:Hue(u,d,c.getType());break;case Qee:GXt(c,u,d);return;case j7e:case U7e:case z7e:case V7e:case G7e:case W7e:D$(c);return;case Zee:console.log("transfer message"),jue(f,d);break;case Jee:console.log("transfer accept message"),Uue(f,d);return;case ete:console.log("transfer reject message"),zue(f,d);return;case Xee:console.log("recall message"),Vue(f);return;case gw:case vw:console.log("thread closed message"),Cf.getState().closeThread(d.topic);break;default:console.log("send receive message type",c.getType()),WXt(c,u,d)}console.log("mqtt message received",a,f,d),Bg.getState().addMessage(f),_r.emit(hw,f);const p=Cf.getState().addThreadWithMessage(d,f);console.log("unreadCount",p);try{await zc.createMessage(f),console.log("Sent message stored in IndexedDB:",f)}catch(m){console.error("Error storing sent message in IndexedDB:",m)}}),Uo.on("packetsend",a=>{console.log("mqtt event packetsend",a)}),Uo.on("packetreceive",a=>{console.log("mqtt event packetreceive",a,a.cmd),a.cmd==="publish"||a.cmd==="pingresp"&&console.log("mqtt event packetreceive pingresp")}),Uo.on("reconnect",()=>{console.log("mqtt event reconnect")}),Uo.on("close",()=>{console.log("mqtt event close"),pb=!1,_r.emit(wB)}),Uo.on("disconnect",()=>{console.error("mqtt event disconnected"),pb=!1,_r.emit(TB)}),Uo.on("offline",()=>{console.log("mqtt event offline"),pb=!1,_r.emit(xB)}),Uo.on("error",()=>{console.log("mqtt event error"),_r.emit(OB)}),Uo.on("end",()=>{console.log("mqtt event end"),_r.emit(RB)})},Fue=new Set,HXt=(e,t)=>{console.log("mqtt mqttSendReceiptReceivedMessage",e),Fue.has(e)||(Fue.add(e),A4e(Y5(),LB,e,t))},Bue=new Set,jXt=(e,t)=>{console.log("mqtt mqttSendReceiptReadMessage",e),Bue.has(e)||(Bue.add(e),A4e(Y5(),$B,e,t))},A4e=async(e,t,n,r)=>{var o,a,s,l,c,u,d,f;console.log("mqtt mqttSendMessage",n);const i=IGe();if(Uo&&Uo.connected){const p=new kXt.Thread;p.setUid(r.uid),p.setType(r.type),p.setTopic(r.topic);const m=new Due.User;m.setUid((o=r.user)==null?void 0:o.uid),m.setNickname((a=r.user)==null?void 0:a.nickname),m.setAvatar((s=r.user)==null?void 0:s.avatar),p.setUser(m);const g=new Due.User;(vl==null?void 0:vl.uid)!=""&&((r==null?void 0:r.type)===Gee||(r==null?void 0:r.type)===Wee)?(g.setUid(vl.uid),g.setNickname(vl.nickname),g.setAvatar(vl.avatar),g.setType(zee)):(g.setUid(gl.uid),g.setNickname(gl.nickname),g.setAvatar(gl.avatar),g.setType(Vee));const v={orgUid:(l=gl==null?void 0:gl.currentOrganization)==null?void 0:l.uid},y=new T4e.Message;y.setUid(e),y.setType(t),y.setStatus(Kee),y.setCreatedat(i),y.setClient(Or),y.setContent(n),y.setUser(g),y.setThread(p),y.setExtra(JSON.stringify(v));const b=y.serializeBinary();Uo.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 zc.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 p={uid:r.uid,type:r.type,topic:r.topic,user:{uid:(c=r.user)==null?void 0:c.uid,nickname:(u=r.user)==null?void 0:u.nickname,avatar:(d=r.user)==null?void 0:d.avatar}};let m;(vl==null?void 0:vl.uid)!=""&&((r==null?void 0:r.type)===Gee||(r==null?void 0:r.type)===Wee)?m={uid:vl.uid,nickname:vl.nickname,avatar:vl.avatar,type:zee}:m={uid:gl.uid,nickname:gl.nickname,avatar:gl.avatar,type:Vee};const g={orgUid:(f=gl==null?void 0:gl.currentOrganization)==null?void 0:f.uid},v={uid:e,type:t,status:Kee,createdAt:i,client:Or,content:n,extra:JSON.stringify(g),user:m,thread:p};zXt(v)}},P$=()=>{Uo?Uo.end():console.log("mqttClient is null")},UXt=()=>Uo&&Uo.connected,zXt=async e=>{const t=JSON.stringify(e),n=await LXt(t);if(console.log("sendHttpMessage:",n.data),n.data.code===200){Bg.getState().updateMessageStatus(e==null?void 0:e.uid,MB);const r={uid:e==null?void 0:e.uid,type:MB};_r.emit(Nve,JSON.stringify(r))}else Wt.error(n.data.message)},VXt=(e,t,n)=>e.getUser().getUid()===(t==null?void 0:t.uid)||e.getUser().getUid()===(n==null?void 0:n.uid);function D$(e){console.log("update message status:",e.getContent(),e.getType()),Bg.getState().updateMessageStatus(e.getContent(),e.getType());const t={uid:e.getContent(),type:e.getType()};_r.emit(Nve,JSON.stringify(t))}function Hue(e,t,n){(e==null?void 0:e.topic)===(t==null?void 0:t.topic)&&(n===PB?_r.emit(i7e):n===DB?_r.emit(o7e):n===mw&&_r.emit(a7e))}function GXt(e,t,n){(t==null?void 0:t.topic)===(n==null?void 0:n.topic)&&_r.emit(s7e,e.getContent())}function jue(e,t){const n={message:e,thread:t};_r.emit(AB,JSON.stringify(n))}function Uue(e,t){const n=JSON.parse(e==null?void 0:e.content);Bg.getState().updateMessageStatus(n.uid,k7e);const r={message:e,thread:t};_r.emit(IB,JSON.stringify(r))}function zue(e,t){const n=JSON.parse(e==null?void 0:e.content);Bg.getState().updateMessageStatus(n.uid,P7e);const r={message:e,thread:t};_r.emit(NB,JSON.stringify(r))}function Vue(e){console.log("handleRecallMessage",e==null?void 0:e.uid,e==null?void 0:e.content),Bg.getState().recallMessage(e==null?void 0:e.content)}function WXt(e,t,n){if(!PGe(n==null?void 0:n.topic)&&NGe(e==null?void 0:e.getType())){const r=e==null?void 0:e.getUid();HXt(r,n),(t==null?void 0:t.topic)===(n==null?void 0:n.topic)&&jXt(r,n)}}function lX(){const e=HT(S=>S.accessToken),t=Ra(S=>S.userInfo),n=hv(S=>S.agentInfo),r=c3(),[i,o]=h.useState(!1),{showNotification:a}=EQ(),{translateString:s}=Pc();Bg(S=>S.addMessage),Cf(S=>S.updateThreadContent);const{isPingLoading:l,setPingLoading:c}=h.useContext(cs);h.useRef(!1);const u=Cf(S=>S.threads),[d,f]=h.useState(u),p=h.useCallback(()=>{if(r&&e)return setInterval(()=>{console.log("useMqtt autoCheckConnection"),!UXt()&&r&&e&&y()},1e4);console.log("useMqtt autoCheckConnection isNetworkOnline:",r," accessToken:",e)},[r,e]),m=async()=>{},g=h.useRef(n==null?void 0:n.uid),v=h.useCallback(()=>{if(!i&&e)return setInterval(async()=>{g.current?m():console.log("useMqtt autoPingMessage currentUidRef.current:",g.current)},1e4);console.log("useMqtt autoPingMessage isNetworkOnline:",r," accessToken:",e)},[i,e,t,n]),y=()=>{console.log("useMqtt doConnect"),BXt({uid:t.uid,username:t.username,accessToken:e})},b=()=>{console.log("useMqtt useEffect doDisconnect"),P$()},_=S=>{var x,E;(S==null?void 0:S.type)!==gw&&((x=S==null?void 0:S.user)==null?void 0:x.uid)!==(t==null?void 0:t.uid)&&((E=S==null?void 0:S.user)==null?void 0:E.uid)!==(n==null?void 0:n.uid)&&(AGe(),console.log("playAudio"))};return h.useEffect(()=>{console.log("useMqtt useEffect isNetworkOnline",r),r?y():P$()},[r]),h.useEffect(()=>{if(n!=null&&n.uid){g.current=n==null?void 0:n.uid;const S=v();return()=>{clearInterval(S)}}else g.current=null},[n]),h.useEffect(()=>{console.log("useMqtt useEffect accessToken"),y();const S=p();return()=>{P$(),clearInterval(S)}},[e,t]),h.useEffect(()=>{console.log("useMqtt threads change"),f(u)},[u]),h.useEffect(()=>{const S=function(x){if(console.log("useMqtt handleNewMessage",x),x.type===mw||x.type===kve||x.type===kB||x.type===gw||x.type===vw)return;const E=x.threadTopic,C=d.find(w=>w.topic===E);C?C.mute?console.log("useMqtt matchingThread muted",E):(console.log("useMqtt matchingThread no mute",E),a(s(iR),s(iR)),_(x)):(console.log("useMqtt matchingThread no"),a(s(iR),s(iR)),_(x))};return _r.on(hw,S),()=>{_r.off(hw)}},[d]),h.useEffect(()=>{console.log("useMqtt useEffect");const S=function(){console.log("handleMqttConnected"),o(!0)},x=function(){console.log("handleMqttDisconnected"),o(!1)};return _r.on(CB,S),_r.on(wB,x),_r.on(TB,x),_r.on(xB,x),_r.on(OB,x),_r.on(RB,x),()=>{console.log("un - useEffect mqttDisconnect"),_r.off(CB),_r.off(wB),_r.off(TB),_r.off(xB),_r.off(OB),_r.off(RB)}},[]),{doConnect:y,doDisconnect:b,isMqttConnected:i}}const I4e=Ac()(Pd(Dd(Ld((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===Mve){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===_7e){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:p7e})));function N4e(){console.log("useElectronApi");const e=ka(),t=Ra(r=>r.userInfo),n=I4e(r=>r.addDevice);h.useEffect(()=>(console.log("useElectronApi useEffect"),ja?(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:Mve,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===n7e){Wt.success("截图成功");const i=r.data;_r.emit(l7e,i.toDataURL())}})):console.log("not electron - in browser"),()=>{console.log("un - useEffect"),ja?(window.electronAPI.offNewWindowCreated(),window.electronAPI.offMulticastMessageAll(),window.electronAPI.offWebSocketMessageAll(),window.electronAPI.offHttpMessageAll(),window.electronAPI.offNotificationMessageAll()):console.log("not electron")}),[])}const qXt=Ac()(Pd(Dd(Ld((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:d7e}))),M4e=Ac()(Pd(Dd(Ld((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:y7e}))),YXt=()=>{const e=Vl(u=>u.deleteOrg),t=Cf(u=>u.resetThreads),n=Bg(u=>u.resetMessageList),r=qXt(u=>u.resetMembers),i=HT(u=>u.removeAccessToken),o=Ra(u=>u.resetUserInfo),a=I4e(u=>u.resetContactInfo),s=hv(u=>u.resetAgentInfo),l=M4e(u=>u.resetWorkgroupInfo);return{clearStorage:()=>{e(),t(),n(),r(),i(),o(),a(),s(),l()}}};function k4e(){console.log("useEventBus");const{clearStorage:e}=YXt(),{doDisconnect:t}=lX(),{setPingLoading:n}=h.useContext(cs),r=h.useCallback(async()=>{try{const i=await AWt();console.log("logout result:",i.data),n(!1),t(),e(),Sje()}catch(i){console.log("logout error:",i)}},[]);return h.useEffect(()=>{console.log("useEventBus useEffect");const i=function(o){console.log("token过期强制刷新登录",o),_r.off(Zm,i),r()};return _r.on(Zm,i),()=>{console.log("un - useEffect mqttDisconnect"),_r.off(Zm)}},[]),{doLogout:r}}const KXt=()=>{const e=Si(),{doLogout:t}=k4e(),{isLoggedIn:n,locale:r,changeLocale:i,mode:o,changeMode:a,handleUpdateAgentStatus:s}=h.useContext(cs),{agentInfo:l}=hv(p=>({agentInfo:p.agentInfo})),c=[{key:"settings",label:e.formatMessage({id:"menu.settings",defaultMessage:"Settings"}),icon:F.jsx(zY,{}),children:[{key:"logout",label:e.formatMessage({id:"menu.settings.logout",defaultMessage:"Logout"})}]}],[u,d]=h.useState(c);h.useEffect(()=>{if(d(c),l.uid!==""&&o===P1){console.log("agentInfo changed",l);const p=[...c],m={key:"status",label:e.formatMessage({id:"menu.agent.status",defaultMessage:"Agent Status"}),type:"group",children:[{key:tte,icon:l.status===tte?F.jsx(Qp,{}):F.jsx(F.Fragment,{}),label:e.formatMessage({id:"menu.agent.status.available",defaultMessage:"Available"})},{key:nte,icon:l.status===nte?F.jsx(Qp,{}):F.jsx(F.Fragment,{}),label:e.formatMessage({id:"menu.agent.status.rest",defaultMessage:"Rest"})},{key:$9,icon:l.status===$9?F.jsx(Qp,{}):F.jsx(F.Fragment,{}),label:e.formatMessage({id:"menu.agent.status.offline",defaultMessage:"Offline"})}]},g=p[0].children,v=g.findIndex(y=>y.key===m.key);v!==-1?g[v]=m:g.splice(0,0,m),p[0].children=g,d(p)}},[l,r,o]);const f=async p=>{console.log("click",p.key),p.key==="logout"?t():p.key==="zh-cn"||p.key==="zh-tw"||p.key==="en"?i(p.key):p.key===hy||p.key===P1||p.key===e4?(console.log("mode",p.key),a(p.key)):(console.log("status"),p.key===$9&&Vo.warning(e.formatMessage({id:"menu.agent.offline.warning",defaultMessage:"Please end all ongoing conversations before going offline"})),s(p.key))};return F.jsx(F.Fragment,{children:n?F.jsx(F.Fragment,{children:F.jsx(Hd,{inlineCollapsed:!0,onClick:f,style:{width:64,height:34},mode:"inline",items:u})}):F.jsx(F.Fragment,{})})};async function QXt(e){return Br("/api/v1/workgroup/query/org",{method:"GET",params:{...e,client:Or}})}const P4e=()=>{const[e,t]=h.useState([]),n=new R4e;h.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 h.useEffect(()=>{console.log("useIndexedDB useEffect");const a=function(s){console.log("useIndexedDB handleNewMessage",s),r(s)};return _r.on(hw,a),()=>{console.log("useIndexedDB useEffect return"),_r.off(hw,a)}},[]),{messages:e,createMessage:r,updateMessage:i,deleteMessage:o}};async function D4e(){return Br("/api/v1/user/profile",{method:"GET",params:{client:Or}})}async function L4e(e){return Br("/api/v1/user/update",{method:"POST",data:{...e,client:Or}})}async function XXt(e){return Br("/api/v1/user/change/password",{method:"POST",data:{...e,client:Or}})}async function $4e(e){return Br("/api/v1/user/change/email",{method:"POST",data:{...e,client:Or}})}async function F4e(e){return Br("/api/v1/user/change/mobile",{method:"POST",data:{...e,client:Or}})}const ZXt=()=>{const e=Si(),{locale:t,changeLocale:n}=h.useContext(cs),r=[{key:"lang",icon:F.jsx(Dgt,{}),label:e.formatMessage({id:"menu.language"}),children:[{key:"zh-cn",icon:t.locale==="zh-cn"?F.jsx(Qp,{}):F.jsx(F.Fragment,{}),label:e.formatMessage({id:"i18n.lang.zh-CN"})},{key:"zh-tw",icon:t.locale==="zh-tw"?F.jsx(Qp,{}):F.jsx(F.Fragment,{}),label:e.formatMessage({id:"i18n.lang.zh-TW"})},{key:"en",icon:t.locale==="en"?F.jsx(Qp,{}):F.jsx(F.Fragment,{}),label:e.formatMessage({id:"i18n.lang.en-US"})}]}],i=o=>{const a=o.key;n(a)};return F.jsx(Hd,{inlineCollapsed:!0,onClick:i,style:{width:64,height:34},mode:"inline",items:r})};var Rl=function(){return Rl=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},Rl.apply(this,arguments)};function IM(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 JXt=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 eZt=oi(JXt);var oo="-ms-",_x="-moz-",_i="-webkit-",B4e="comm",V3="rule",cX="decl",tZt="@import",H4e="@keyframes",nZt="@layer",j4e=Math.abs,uX=String.fromCharCode,iV=Object.assign;function rZt(e,t){return $a(e,0)^45?(((t<<2^$a(e,0))<<2^$a(e,1))<<2^$a(e,2))<<2^$a(e,3):0}function U4e(e){return e.trim()}function Np(e,t){return(e=t.exec(e))?e[0]:e}function Pr(e,t,n){return e.replace(t,n)}function eN(e,t,n){return e.indexOf(t,n)}function $a(e,t){return e.charCodeAt(t)|0}function k_(e,t,n){return e.slice(t,n)}function pf(e){return e.length}function z4e(e){return e.length}function FC(e,t){return t.push(e),e}function iZt(e,t){return e.map(t).join("")}function Gue(e,t){return e.filter(function(n){return!Np(n,t)})}var G3=1,P_=1,V4e=0,_u=0,ha=0,rE="";function W3(e,t,n,r,i,o,a,s){return{value:e,root:t,parent:n,type:r,props:i,children:o,line:G3,column:P_,length:a,return:"",siblings:s}}function em(e,t){return iV(W3("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function hb(e){for(;e.root;)e=em(e.root,{children:[e]});FC(e,e.siblings)}function oZt(){return ha}function aZt(){return ha=_u>0?$a(rE,--_u):0,P_--,ha===10&&(P_=1,G3--),ha}function bd(){return ha=_u<V4e?$a(rE,_u++):0,P_++,ha===10&&(P_=1,G3++),ha}function v1(){return $a(rE,_u)}function tN(){return _u}function q3(e,t){return k_(rE,e,t)}function oV(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 sZt(e){return G3=P_=1,V4e=pf(rE=e),_u=0,[]}function lZt(e){return rE="",e}function L$(e){return U4e(q3(_u-1,aV(e===91?e+2:e===40?e+1:e)))}function cZt(e){for(;(ha=v1())&&ha<33;)bd();return oV(e)>2||oV(ha)>3?"":" "}function uZt(e,t){for(;--t&&bd()&&!(ha<48||ha>102||ha>57&&ha<65||ha>70&&ha<97););return q3(e,tN()+(t<6&&v1()==32&&bd()==32))}function aV(e){for(;bd();)switch(ha){case e:return _u;case 34:case 39:e!==34&&e!==39&&aV(ha);break;case 40:e===41&&aV(e);break;case 92:bd();break}return _u}function dZt(e,t){for(;bd()&&e+ha!==57;)if(e+ha===84&&v1()===47)break;return"/*"+q3(t,_u-1)+"*"+uX(e===47?e:bd())}function fZt(e){for(;!oV(v1());)bd();return q3(e,_u)}function pZt(e){return lZt(nN("",null,null,null,[""],e=sZt(e),0,[0],e))}function nN(e,t,n,r,i,o,a,s,l){for(var c=0,u=0,d=a,f=0,p=0,m=0,g=1,v=1,y=1,b=0,_="",S=i,x=o,E=r,C=_;v;)switch(m=b,b=bd()){case 40:if(m!=108&&$a(C,d-1)==58){eN(C+=Pr(L$(b),"&","&\f"),"&\f",j4e(c?s[c-1]:0))!=-1&&(y=-1);break}case 34:case 39:case 91:C+=L$(b);break;case 9:case 10:case 13:case 32:C+=cZt(m);break;case 92:C+=uZt(tN()-1,7);continue;case 47:switch(v1()){case 42:case 47:FC(hZt(dZt(bd(),tN()),t,n,l),l);break;default:C+="/"}break;case 123*g:s[c++]=pf(C)*y;case 125*g:case 59:case 0:switch(b){case 0:case 125:v=0;case 59+u:y==-1&&(C=Pr(C,/\f/g,"")),p>0&&pf(C)-d&&FC(p>32?que(C+";",r,n,d-1,l):que(Pr(C," ","")+";",r,n,d-2,l),l);break;case 59:C+=";";default:if(FC(E=Wue(C,t,n,c,u,i,s,_,S=[],x=[],d,o),o),b===123)if(u===0)nN(C,t,E,E,S,o,d,s,x);else switch(f===99&&$a(C,3)===110?100:f){case 100:case 108:case 109:case 115:nN(e,E,E,r&&FC(Wue(e,E,E,0,0,i,s,_,i,S=[],d,x),x),i,x,d,s,r?S:x);break;default:nN(C,E,E,E,[""],x,0,s,x)}}c=u=p=0,g=y=1,_=C="",d=a;break;case 58:d=1+pf(C),p=m;default:if(g<1){if(b==123)--g;else if(b==125&&g++==0&&aZt()==125)continue}switch(C+=uX(b),b*g){case 38:y=u>0?1:(C+="\f",-1);break;case 44:s[c++]=(pf(C)-1)*y,y=1;break;case 64:v1()===45&&(C+=L$(bd())),f=v1(),u=d=pf(_=C+=fZt(tN())),b++;break;case 45:m===45&&pf(C)==2&&(g=0)}}return o}function Wue(e,t,n,r,i,o,a,s,l,c,u,d){for(var f=i-1,p=i===0?o:[""],m=z4e(p),g=0,v=0,y=0;g<r;++g)for(var b=0,_=k_(e,f+1,f=j4e(v=a[g])),S=e;b<m;++b)(S=U4e(v>0?p[b]+" "+_:Pr(_,/&\f/g,p[b])))&&(l[y++]=S);return W3(e,t,n,i===0?V3:s,l,c,u,d)}function hZt(e,t,n,r){return W3(e,t,n,B4e,uX(oZt()),k_(e,2,-2),0,r)}function que(e,t,n,r,i){return W3(e,t,n,cX,k_(e,0,r),k_(e,r+1,-1),r,i)}function G4e(e,t,n){switch(rZt(e,t)){case 5103:return _i+"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 _i+e+e;case 4789:return _x+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return _i+e+_x+e+oo+e+e;case 5936:switch($a(e,t+11)){case 114:return _i+e+oo+Pr(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return _i+e+oo+Pr(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return _i+e+oo+Pr(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return _i+e+oo+e+e;case 6165:return _i+e+oo+"flex-"+e+e;case 5187:return _i+e+Pr(e,/(\w+).+(:[^]+)/,_i+"box-$1$2"+oo+"flex-$1$2")+e;case 5443:return _i+e+oo+"flex-item-"+Pr(e,/flex-|-self/g,"")+(Np(e,/flex-|baseline/)?"":oo+"grid-row-"+Pr(e,/flex-|-self/g,""))+e;case 4675:return _i+e+oo+"flex-line-pack"+Pr(e,/align-content|flex-|-self/g,"")+e;case 5548:return _i+e+oo+Pr(e,"shrink","negative")+e;case 5292:return _i+e+oo+Pr(e,"basis","preferred-size")+e;case 6060:return _i+"box-"+Pr(e,"-grow","")+_i+e+oo+Pr(e,"grow","positive")+e;case 4554:return _i+Pr(e,/([^-])(transform)/g,"$1"+_i+"$2")+e;case 6187:return Pr(Pr(Pr(e,/(zoom-|grab)/,_i+"$1"),/(image-set)/,_i+"$1"),e,"")+e;case 5495:case 3959:return Pr(e,/(image-set\([^]*)/,_i+"$1$`$1");case 4968:return Pr(Pr(e,/(.+:)(flex-)?(.*)/,_i+"box-pack:$3"+oo+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+_i+e+e;case 4200:if(!Np(e,/flex-|baseline/))return oo+"grid-column-align"+k_(e,t)+e;break;case 2592:case 3360:return oo+Pr(e,"template-","")+e;case 4384:case 3616:return n&&n.some(function(r,i){return t=i,Np(r.props,/grid-\w+-end/)})?~eN(e+(n=n[t].value),"span",0)?e:oo+Pr(e,"-start","")+e+oo+"grid-row-span:"+(~eN(n,"span",0)?Np(n,/\d+/):+Np(n,/\d+/)-+Np(e,/\d+/))+";":oo+Pr(e,"-start","")+e;case 4896:case 4128:return n&&n.some(function(r){return Np(r.props,/grid-\w+-start/)})?e:oo+Pr(Pr(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return Pr(e,/(.+)-inline(.+)/,_i+"$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(pf(e)-1-t>6)switch($a(e,t+1)){case 109:if($a(e,t+4)!==45)break;case 102:return Pr(e,/(.+:)(.+)-([^]+)/,"$1"+_i+"$2-$3$1"+_x+($a(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~eN(e,"stretch",0)?G4e(Pr(e,"stretch","fill-available"),t,n)+e:e}break;case 5152:case 5920:return Pr(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(r,i,o,a,s,l,c){return oo+i+":"+o+c+(a?oo+i+"-span:"+(s?l:+l-+o)+c:"")+e});case 4949:if($a(e,t+6)===121)return Pr(e,":",":"+_i)+e;break;case 6444:switch($a(e,$a(e,14)===45?18:11)){case 120:return Pr(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+_i+($a(e,14)===45?"inline-":"")+"box$3$1"+_i+"$2$3$1"+oo+"$2box$3")+e;case 100:return Pr(e,":",":"+oo)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return Pr(e,"scroll-","scroll-snap-")+e}return e}function NM(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function mZt(e,t,n,r){switch(e.type){case nZt:if(e.children.length)break;case tZt:case cX:return e.return=e.return||e.value;case B4e:return"";case H4e:return e.return=e.value+"{"+NM(e.children,r)+"}";case V3:if(!pf(e.value=e.props.join(",")))return""}return pf(n=NM(e.children,r))?e.return=e.value+"{"+n+"}":""}function gZt(e){var t=z4e(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 vZt(e){return function(t){t.root||(t=t.return)&&e(t)}}function bZt(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case cX:e.return=G4e(e.value,e.length,n);return;case H4e:return NM([em(e,{value:Pr(e.value,"@","@"+_i)})],r);case V3:if(e.length)return iZt(n=e.props,function(i){switch(Np(i,r=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":hb(em(e,{props:[Pr(i,/:(read-\w+)/,":"+_x+"$1")]})),hb(em(e,{props:[i]})),iV(e,{props:Gue(n,r)});break;case"::placeholder":hb(em(e,{props:[Pr(i,/:(plac\w+)/,":"+_i+"input-$1")]})),hb(em(e,{props:[Pr(i,/:(plac\w+)/,":"+_x+"$1")]})),hb(em(e,{props:[Pr(i,/:(plac\w+)/,oo+"input-$1")]})),hb(em(e,{props:[i]})),iV(e,{props:Gue(n,r)});break}return""})}}var yZt={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},ac={},D_=typeof process<"u"&&ac!==void 0&&(ac.REACT_APP_SC_ATTR||ac.SC_ATTR)||"data-styled",W4e="active",q4e="data-styled-version",Y3="6.1.19",dX=`/*!sc*/
`,MM=typeof window<"u"&&typeof document<"u",_Zt=!!(typeof SC_DISABLE_SPEEDY=="boolean"?SC_DISABLE_SPEEDY:typeof process<"u"&&ac!==void 0&&ac.REACT_APP_SC_DISABLE_SPEEDY!==void 0&&ac.REACT_APP_SC_DISABLE_SPEEDY!==""?ac.REACT_APP_SC_DISABLE_SPEEDY!=="false"&&ac.REACT_APP_SC_DISABLE_SPEEDY:typeof process<"u"&&ac!==void 0&&ac.SC_DISABLE_SPEEDY!==void 0&&ac.SC_DISABLE_SPEEDY!==""&&ac.SC_DISABLE_SPEEDY!=="false"&&ac.SC_DISABLE_SPEEDY),K3=Object.freeze([]),L_=Object.freeze({});function SZt(e,t,n){return n===void 0&&(n=L_),e.theme!==n.theme&&e.theme||t||n.theme}var Y4e=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"]),EZt=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,CZt=/(^-|-$)/g;function Yue(e){return e.replace(EZt,"-").replace(CZt,"")}var xZt=/(a)(d)/gi,tA=52,Kue=function(e){return String.fromCharCode(e+(e>25?39:97))};function sV(e){var t,n="";for(t=Math.abs(e);t>tA;t=t/tA|0)n=Kue(t%tA)+n;return(Kue(t%tA)+n).replace(xZt,"$1-$2")}var $$,K4e=5381,ry=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},Q4e=function(e){return ry(K4e,e)};function wZt(e){return sV(Q4e(e)>>>0)}function TZt(e){return e.displayName||e.name||"Component"}function F$(e){return typeof e=="string"&&!0}var X4e=typeof Symbol=="function"&&Symbol.for,Z4e=X4e?Symbol.for("react.memo"):60115,OZt=X4e?Symbol.for("react.forward_ref"):60112,RZt={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},AZt={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},J4e={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},IZt=(($$={})[OZt]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},$$[Z4e]=J4e,$$);function Que(e){return("type"in(t=e)&&t.type.$$typeof)===Z4e?J4e:"$$typeof"in e?IZt[e.$$typeof]:RZt;var t}var NZt=Object.defineProperty,MZt=Object.getOwnPropertyNames,Xue=Object.getOwnPropertySymbols,kZt=Object.getOwnPropertyDescriptor,PZt=Object.getPrototypeOf,Zue=Object.prototype;function eMe(e,t,n){if(typeof t!="string"){if(Zue){var r=PZt(t);r&&r!==Zue&&eMe(e,r,n)}var i=MZt(t);Xue&&(i=i.concat(Xue(t)));for(var o=Que(e),a=Que(t),s=0;s<i.length;++s){var l=i[s];if(!(l in AZt||n&&n[l]||a&&l in a||o&&l in o)){var c=kZt(t,l);try{NZt(e,l,c)}catch{}}}}return e}function $_(e){return typeof e=="function"}function fX(e){return typeof e=="object"&&"styledComponentId"in e}function V0(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function Jue(e,t){if(e.length===0)return"";for(var n=e[0],r=1;r<e.length;r++)n+=e[r];return n}function tT(e){return e!==null&&typeof e=="object"&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function lV(e,t,n){if(n===void 0&&(n=!1),!n&&!tT(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var r=0;r<t.length;r++)e[r]=lV(e[r],t[r]);else if(tT(t))for(var r in t)e[r]=lV(e[r],t[r]);return e}function pX(e,t){Object.defineProperty(e,"toString",{value:t})}function lO(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 DZt=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 lO(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(dX);return n},e}(),rN=new Map,kM=new Map,iN=1,nA=function(e){if(rN.has(e))return rN.get(e);for(;kM.has(iN);)iN++;var t=iN++;return rN.set(e,t),kM.set(t,e),t},LZt=function(e,t){iN=t+1,rN.set(e,t),kM.set(t,e)},$Zt="style[".concat(D_,"][").concat(q4e,'="').concat(Y3,'"]'),FZt=new RegExp("^".concat(D_,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),BZt=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)},HZt=function(e,t){for(var n,r=((n=t.textContent)!==null&&n!==void 0?n:"").split(dX),i=[],o=0,a=r.length;o<a;o++){var s=r[o].trim();if(s){var l=s.match(FZt);if(l){var c=0|parseInt(l[1],10),u=l[2];c!==0&&(LZt(u,c),BZt(e,u,l[3]),e.getTag().insertRules(c,i)),i.length=0}else i.push(s)}}},ede=function(e){for(var t=document.querySelectorAll($Zt),n=0,r=t.length;n<r;n++){var i=t[n];i&&i.getAttribute(D_)!==W4e&&(HZt(e,i),i.parentNode&&i.parentNode.removeChild(i))}};function jZt(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:null}var tMe=function(e){var t=document.head,n=e||t,r=document.createElement("style"),i=function(s){var l=Array.from(s.querySelectorAll("style[".concat(D_,"]")));return l[l.length-1]}(n),o=i!==void 0?i.nextSibling:null;r.setAttribute(D_,W4e),r.setAttribute(q4e,Y3);var a=jZt();return a&&r.setAttribute("nonce",a),n.insertBefore(r,o),r},UZt=function(){function e(t){this.element=tMe(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 lO(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}(),zZt=function(){function e(t){this.element=tMe(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}(),VZt=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}(),tde=MM,GZt={isServer:!MM,useCSSOMInjection:!_Zt},nMe=function(){function e(t,n,r){t===void 0&&(t=L_),n===void 0&&(n={});var i=this;this.options=Rl(Rl({},GZt),t),this.gs=n,this.names=new Map(r),this.server=!!t.isServer,!this.server&&MM&&tde&&(tde=!1,ede(this)),pX(this,function(){return function(o){for(var a=o.getTag(),s=a.length,l="",c=function(d){var f=function(y){return kM.get(y)}(d);if(f===void 0)return"continue";var p=o.names.get(f),m=a.getGroup(d);if(p===void 0||!p.size||m.length===0)return"continue";var g="".concat(D_,".g").concat(d,'[id="').concat(f,'"]'),v="";p!==void 0&&p.forEach(function(y){y.length>0&&(v+="".concat(y,","))}),l+="".concat(m).concat(g,'{content:"').concat(v,'"}').concat(dX)},u=0;u<s;u++)c(u);return l}(i)})}return e.registerId=function(t){return nA(t)},e.prototype.rehydrate=function(){!this.server&&MM&&ede(this)},e.prototype.reconstructWithOptions=function(t,n){return n===void 0&&(n=!0),new e(Rl(Rl({},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 VZt(i):r?new UZt(i):new zZt(i)}(this.options),new DZt(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(nA(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(nA(t),r)},e.prototype.clearNames=function(t){this.names.has(t)&&this.names.get(t).clear()},e.prototype.clearRules=function(t){this.getTag().clearGroup(nA(t)),this.clearNames(t)},e.prototype.clearTag=function(){this.tag=void 0},e}(),WZt=/&/g,qZt=/^\s*\/\/.*$/gm;function rMe(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=rMe(n.children,t)),n})}function YZt(e){var t,n,r,i=L_,o=i.options,a=o===void 0?L_:o,s=i.plugins,l=s===void 0?K3:s,c=function(f,p,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===V3&&f.value.includes("&")&&(f.props[0]=f.props[0].replace(WZt,n).replace(r,c))}),a.prefix&&u.push(bZt),u.push(mZt);var d=function(f,p,m,g){p===void 0&&(p=""),m===void 0&&(m=""),g===void 0&&(g="&"),t=g,n=p,r=new RegExp("\\".concat(n,"\\b"),"g");var v=f.replace(qZt,""),y=pZt(m||p?"".concat(m," ").concat(p," { ").concat(v," }"):v);a.namespace&&(y=rMe(y,a.namespace));var b=[];return NM(y,gZt(u.concat(vZt(function(_){return b.push(_)})))),b};return d.hash=l.length?l.reduce(function(f,p){return p.name||lO(15),ry(f,p.name)},K4e).toString():"",d}var KZt=new nMe,cV=YZt(),iMe=pe.createContext({shouldForwardProp:void 0,styleSheet:KZt,stylis:cV});iMe.Consumer;pe.createContext(void 0);function nde(){return h.useContext(iMe)}var QZt=function(){function e(t,n){var r=this;this.inject=function(i,o){o===void 0&&(o=cV);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,pX(this,function(){throw lO(12,String(r.name))})}return e.prototype.getName=function(t){return t===void 0&&(t=cV),this.name+t.hash},e}(),XZt=function(e){return e>="A"&&e<="Z"};function rde(e){for(var t="",n=0;n<e.length;n++){var r=e[n];if(n===1&&r==="-"&&e[0]==="-")return e;XZt(r)?t+="-"+r.toLowerCase():t+=r}return t.startsWith("ms-")?"-"+t:t}var oMe=function(e){return e==null||e===!1||e===""},aMe=function(e){var t,n,r=[];for(var i in e){var o=e[i];e.hasOwnProperty(i)&&!oMe(o)&&(Array.isArray(o)&&o.isCss||$_(o)?r.push("".concat(rde(i),":"),o,";"):tT(o)?r.push.apply(r,IM(IM(["".concat(i," {")],aMe(o),!1),["}"],!1)):r.push("".concat(rde(i),": ").concat((t=i,(n=o)==null||typeof n=="boolean"||n===""?"":typeof n!="number"||n===0||t in yZt||t.startsWith("--")?String(n).trim():"".concat(n,"px")),";")))}return r};function b1(e,t,n,r){if(oMe(e))return[];if(fX(e))return[".".concat(e.styledComponentId)];if($_(e)){if(!$_(o=e)||o.prototype&&o.prototype.isReactComponent||!t)return[e];var i=e(t);return b1(i,t,n,r)}var o;return e instanceof QZt?n?(e.inject(n,r),[e.getName(r)]):[e]:tT(e)?aMe(e):Array.isArray(e)?Array.prototype.concat.apply(K3,e.map(function(a){return b1(a,t,n,r)})):[e.toString()]}function ZZt(e){for(var t=0;t<e.length;t+=1){var n=e[t];if($_(n)&&!fX(n))return!1}return!0}var JZt=Q4e(Y3),eJt=function(){function e(t,n,r){this.rules=t,this.staticRulesId="",this.isStatic=(r===void 0||r.isStatic)&&ZZt(t),this.componentId=n,this.baseHash=ry(JZt,n),this.baseStyle=r,nMe.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=V0(i,this.staticRulesId);else{var o=Jue(b1(this.rules,t,n,r)),a=sV(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=V0(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=Jue(b1(d,t,n,r));l=ry(l,f+u),c+=f}}if(c){var p=sV(l>>>0);n.hasNameForId(this.componentId,p)||n.insertRules(this.componentId,p,r(c,".".concat(p),void 0,this.componentId)),i=V0(i,p)}}return i},e}(),sMe=pe.createContext(void 0);sMe.Consumer;var B$={};function tJt(e,t,n){var r=fX(e),i=e,o=!F$(e),a=t.attrs,s=a===void 0?K3:a,l=t.componentId,c=l===void 0?function(S,x){var E=typeof S!="string"?"sc":Yue(S);B$[E]=(B$[E]||0)+1;var C="".concat(E,"-").concat(wZt(Y3+E+B$[E]));return x?"".concat(x,"-").concat(C):C}(t.displayName,t.parentComponentId):l,u=t.displayName,d=u===void 0?function(S){return F$(S)?"styled.".concat(S):"Styled(".concat(TZt(S),")")}(e):u,f=t.displayName&&t.componentId?"".concat(Yue(t.displayName),"-").concat(t.componentId):t.componentId||c,p=r&&i.attrs?i.attrs.concat(s).filter(Boolean):s,m=t.shouldForwardProp;if(r&&i.shouldForwardProp){var g=i.shouldForwardProp;if(t.shouldForwardProp){var v=t.shouldForwardProp;m=function(S,x){return g(S,x)&&v(S,x)}}else m=g}var y=new eJt(n,f,r?i.componentStyle:void 0);function b(S,x){return function(E,C,w){var O=E.attrs,T=E.componentStyle,A=E.defaultProps,I=E.foldedComponentIds,N=E.styledComponentId,D=E.target,M=pe.useContext(sMe),k=nde(),P=E.shouldForwardProp||k.shouldForwardProp,B=SZt(C,M,A)||L_,G=function(Q,ue,ee){for(var K,se=Rl(Rl({},ue),{className:void 0,theme:ee}),le=0;le<Q.length;le+=1){var oe=$_(K=Q[le])?K(se):K;for(var ne in oe)se[ne]=ne==="className"?V0(se[ne],oe[ne]):ne==="style"?Rl(Rl({},se[ne]),oe[ne]):oe[ne]}return ue.className&&(se.className=V0(se.className,ue.className)),se}(O,C,B),L=G.as||D,W={};for(var j in G)G[j]===void 0||j[0]==="$"||j==="as"||j==="theme"&&G.theme===B||(j==="forwardedAs"?W.as=G.forwardedAs:P&&!P(j,L)||(W[j]=G[j]));var H=function(Q,ue){var ee=nde(),K=Q.generateAndInjectStyles(ue,ee.styleSheet,ee.stylis);return K}(T,G),X=V0(I,N);return H&&(X+=" "+H),G.className&&(X+=" "+G.className),W[F$(L)&&!Y4e.has(L)?"class":"className"]=X,w&&(W.ref=w),h.createElement(L,W)}(_,S,x)}b.displayName=d;var _=pe.forwardRef(b);return _.attrs=p,_.componentStyle=y,_.displayName=d,_.shouldForwardProp=m,_.foldedComponentIds=r?V0(i.foldedComponentIds,i.styledComponentId):"",_.styledComponentId=f,_.target=r?i.target:e,Object.defineProperty(_,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(S){this._foldedDefaultProps=r?function(x){for(var E=[],C=1;C<arguments.length;C++)E[C-1]=arguments[C];for(var w=0,O=E;w<O.length;w++)lV(x,O[w],!0);return x}({},i.defaultProps,S):S}}),pX(_,function(){return".".concat(_.styledComponentId)}),o&&eMe(_,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),_}function ide(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 ode=function(e){return Object.assign(e,{isCss:!0})};function nJt(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if($_(e)||tT(e))return ode(b1(ide(K3,IM([e],t,!0))));var r=e;return t.length===0&&r.length===1&&typeof r[0]=="string"?b1(r):ode(b1(ide(r,t)))}function uV(e,t,n){if(n===void 0&&(n=L_),!t)throw lO(1,t);var r=function(i){for(var o=[],a=1;a<arguments.length;a++)o[a-1]=arguments[a];return e(t,n,nJt.apply(void 0,IM([i],o,!1)))};return r.attrs=function(i){return uV(e,t,Rl(Rl({},n),{attrs:Array.prototype.concat(n.attrs,i).filter(Boolean)}))},r.withConfig=function(i){return uV(e,t,Rl(Rl({},n),i))},r}var lMe=function(e){return uV(tJt,e)},$o=lMe;Y4e.forEach(function(e){$o[e]=lMe(e)});async function rJt(e){return Br("/api/v1/kbase/query/org",{method:"GET",params:{...e,client:Or}})}async function iJt(e){return Br("/api/v1/kbase/query/uid",{method:"GET",params:{...e,client:Or}})}async function cMe(e){return Br("/api/v1/kbase/create",{method:"POST",data:{...e,client:Or}})}async function uMe(e){return Br("/api/v1/kbase/update",{method:"POST",data:{...e,client:Or}})}async function oJt(e){return Br("/api/v1/kbase/delete",{method:"POST",data:{...e,client:Or}})}const dMe=({visible:e,isEdit:t,kbase:n,onCancel:r,onOk:i})=>{const[o]=Dr.useForm(),a=Vl(l=>l.currentOrg);h.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 uMe(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 cMe(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 F.jsx(Qo,{title:"创建知识库",open:e,onOk:s,onCancel:r,children:F.jsxs(Dr,{form:o,submitter:!1,children:[F.jsx(di,{name:"name",label:"知识库名称",placeholder:"请输入知识库名称",rules:[{required:!0,message:"请输入知识库名称"}]}),F.jsx(qS,{name:"description",label:"知识库描述",placeholder:"请输入知识库描述",rules:[{required:!0,message:"请输入知识库描述"}],fieldProps:{rows:4}}),F.jsx(WS.Group,{name:"type",label:"知识库类型",rules:[{required:!0,message:"请选择知识库类型"}],options:[{label:"帮助文档",value:Y7e},{label:"私有知识库",value:eg}]})]})})},Hg=Ac(e=>({kbases:[],currentKbase:null,setKbases:t=>e({kbases:t}),setCurrentKbase:t=>e({currentKbase:t}),fetchKbases:async t=>{const r=await rJt({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 cMe(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 uMe(n);console.log("updateKbase response",r.data),r.data.code===200?Wt.success("更新成功"):Wt.error(r.data.message)},deleteKbase:async t=>{const r=await oJt({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 iJt({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:aJt,Paragraph:sJt}=I2,lJt=$o(eD)`
.ant-card-body {
height: 120px;
padding: 12px;
overflow: hidden;
}
`,cJt=$o(aJt)`
&& {
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;
}
}
`,uJt=$o(sJt)`
&& {
margin-bottom: 0;
color: rgba(0, 0, 0, 0.45);
font-size: 14px;
}
`,dJt=()=>F.jsxs("svg",{width:"100%",height:"140",viewBox:"0 0 400 140",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:{background:"#E8F4FF"},children:[F.jsx("rect",{width:"400",height:"140",fill:"#E8F4FF"}),F.jsx("path",{d:"M180 45h40v10h-40zM160 65h80v5h-80zM170 80h60v5h-60z",fill:"#4A90E2"}),F.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"}),F.jsx("circle",{cx:"320",cy:"40",r:"15",fill:"#FFD666",opacity:"0.6"}),F.jsx("path",{d:"M100 90c15-25 25-15 35 0",stroke:"#91D5FF",strokeWidth:"3",fill:"none"})]}),fJt=({kbase:e,onClick:t})=>{const{translateStringTranct:n}=Pc();return F.jsxs(lJt,{hoverable:!0,onClick:t,cover:e!=null&&e.coverImageUrl?F.jsx("img",{alt:e.name,src:e.coverImageUrl,style:{height:140,objectFit:"cover"}}):F.jsx(dJt,{}),children:[F.jsxs(cJt,{level:4,children:[F.jsx("span",{className:"title-text",children:n(e.name)}),(e==null?void 0:e.type)===eg&&F.jsx(zp,{color:"blue",children:"私有"})]}),F.jsx(uJt,{ellipsis:{rows:2},children:n(e.description)})]})},pJt=$o.div`
padding: 24px;
`,hJt=$o.div`
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 24px;
`,mJt=$o.h2`
margin: 0;
`,dV=()=>{const e=ka(),{translateString:t}=Pc(),{kbases:n,fetchKbases:r,toggleStarKbase:i}=Hg(),[o,a]=pe.useState("grid"),[s,l]=pe.useState(!0),[c,u]=pe.useState(!1),d=Vl(_=>_.currentOrg),[f,p]=pe.useState(!1),[m,g]=pe.useState(null),v=async()=>{try{await r(d==null?void 0:d.uid)}finally{l(!1)}};pe.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:(_,S)=>F.jsxs(Ji,{children:[F.jsx(xwe,{}),F.jsx("a",{onClick:()=>y(S),children:t(_)}),S.type===eg&&F.jsx(zp,{color:"blue",children:"私有"})]})},{title:"描述",dataIndex:"description",key:"description",ellipsis:!0},{title:"更新时间",dataIndex:"updatedAt",key:"updatedAt",render:_=>ln(_).format("YYYY-MM-DD HH:mm:ss")},{title:"操作",key:"action",render:(_,S)=>F.jsxs(Ji,{children:[ud&&F.jsx(Dn,{type:"text",icon:S.favorite?F.jsx(lD,{}):F.jsx(VY,{}),onClick:x=>{x.stopPropagation(),i(S.uid)}}),F.jsx(Dn,{type:"link",onClick:()=>y(S),children:"查看"}),F.jsx(Dn,{type:"link",onClick:x=>{x.stopPropagation(),p(!0),g(S),u(!0)},children:"编辑"})]})}];return F.jsxs(pJt,{children:[F.jsxs(hJt,{children:[F.jsx(mJt,{children:"知识库"}),F.jsxs(Ji,{children:[F.jsxs(Qi.Group,{value:o,onChange:_=>a(_.target.value),buttonStyle:"solid",children:[F.jsxs(Qi.Button,{value:"grid",children:[F.jsx(Gmt,{})," 网格"]}),F.jsxs(Qi.Button,{value:"list",children:[F.jsx(eCe,{})," 列表"]})]}),F.jsx(Dn,{type:"primary",icon:F.jsx(v2,{}),onClick:()=>u(!0),children:"创建知识库"})]})]}),o==="grid"?F.jsx(S2,{gutter:[16,16],children:n.map(_=>F.jsx(j1,{xs:24,sm:12,md:8,lg:4,children:F.jsx(fJt,{kbase:_,onClick:()=>y(_)})},_.uid))}):F.jsx(Ud,{columns:b,dataSource:n,loading:s,rowKey:"uid",onRow:_=>({onClick:()=>y(_),style:{cursor:"pointer"}})}),c&&F.jsx(dMe,{visible:c,isEdit:f,kbase:m,onCancel:()=>u(!1),onOk:()=>{u(!1),v()}})]})};async function gJt(e){return Br("/api/v1/org/create",{method:"POST",data:{...e,client:Or}})}const vJt=({open:e,onClose:t,onSuccess:n})=>{const r=Si(),{userInfo:i}=sK(),[o,a]=h.useState(!1),[s,l]=h.useState(""),[c,u]=h.useState(!1),d=()=>{t()},f=()=>{Wt.error(r.formatMessage({id:"welcome.message.org.required"}))},p=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 gJt(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?p():(u(!0),a(!1))};return F.jsxs(Qo,{title:r.formatMessage({id:"welcome.modal.title"}),closable:!1,open:e,onCancel:f,maskClosable:!1,footer:[F.jsx(Dn,{type:"primary",onClick:d,disabled:!0,children:r.formatMessage({id:"welcome.modal.join"})},"join"),F.jsx(Dn,{type:"primary",loading:o,onClick:m,children:r.formatMessage({id:"welcome.modal.create"})},"create")],children:[F.jsx("p",{children:r.formatMessage({id:"welcome.modal.description"})}),c&&F.jsx(Co,{placeholder:r.formatMessage({id:"welcome.modal.input.placeholder"}),value:s,onChange:g=>l(g.target.value),onPressEnter:p,autoFocus:!0})]})},bJt=({open:e,onClose:t})=>{const n=Si(),r=ka(),i=()=>{t(),r("/setting/certification")},o=()=>{localStorage.setItem("skipVerification","true"),t()};return F.jsx(Qo,{title:n.formatMessage({id:"welcome.verify.modal.title",defaultMessage:"账号验证提示"}),open:e,onCancel:o,footer:[F.jsx(Dn,{onClick:o,children:n.formatMessage({id:"welcome.verify.later",defaultMessage:"稍后验证"})},"later"),F.jsx(Dn,{type:"primary",onClick:i,children:n.formatMessage({id:"welcome.verify.now",defaultMessage:"立即验证"})},"now")],children:F.jsx("p",{children:n.formatMessage({id:"welcome.verify.modal.description",defaultMessage:"您的邮箱和手机号尚未验证,为保障账号安全,建议您尽快完成验证。"})})})},yJt=()=>{const e=Si(),{locale:t}=h.useContext(cs),n=localStorage.getItem(FB),[r,i]=h.useState(n||"/chat"),o=ka(),{isLoggedIn:a,hasRoleAgent:s}=h.useContext(cs),{footerStyle:l}=aO(),{currentOrg:c,setCurrentOrg:u}=Vl(M=>({currentOrg:M.currentOrg,setCurrentOrg:M.setCurrentOrg})),{userInfo:d,setUserInfo:f}=Ra(M=>({userInfo:M.userInfo,setUserInfo:M.setUserInfo})),{setAgentInfo:p}=hv(M=>({setAgentInfo:M.setAgentInfo})),m=Cf(M=>M.removeThread),g=M4e(M=>M.setWorkgroupResult),[v,y]=h.useState(!1),b=Cf(M=>M.threads);h.useEffect(()=>{const M=b.some(k=>k.unreadCount>0);y(M)},[b]);const[_,S]=h.useState([]);h.useEffect(()=>{const M=[{path:"/",name:e.formatMessage({id:"menu.dashboard.notebase"}),icon:F.jsx(Z4,{}),component:F.jsx(dV,{})},{path:"/setting",name:e.formatMessage({id:"menu.dashboard.mine"}),icon:F.jsx(zY,{}),component:F.jsx(VIe,{})}];S(M)},[e,t]),P4e(),lX(),N4e(),EQ();const x=async()=>{if(!a||(c==null?void 0:c.uid)===""||!s)return;const M=await fje(c==null?void 0:c.uid);console.log("getAgentProfile response:",c==null?void 0:c.uid,M.data),M.data.code===200&&p(M.data.data)},[E,C]=h.useState(!1),[w,O]=h.useState(!1),T=h.useCallback(M=>{u(M)},[u]),A=h.useCallback(()=>{localStorage.getItem("skipVerification")!=="true"&&d&&!d.emailVerified&&!d.mobileVerified&&O(!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),x(),A()}};h.useEffect(()=>(I(),()=>{console.log("un - useEffect")}),[a,d]);const N=async()=>{const M=await D4e();console.log("initProfile response:",M.data),M.data.code===200?f(M.data.data):Wt.error(e.formatMessage({id:"dashboard.error.message",defaultMessage:"获取数据失败"}))};h.useEffect(()=>{a&&N()},[a]);const D=async()=>{if(!a||(c==null?void 0:c.uid)===""||!s)return;const M={orgUid:c==null?void 0:c.uid,pageNumber:0,pageSize:20},k=await QXt(M);console.log("initWorkgroups",k.data),k.data.code===200?g(k.data):console.log("获取工作组失败")};return h.useEffect(()=>{D()},[a,c]),h.useEffect(()=>{const M=B=>{var L,W;if(console.log("handleTransfer:",B),((W=(L=JSON.parse(B).message)==null?void 0:L.user)==null?void 0:W.uid)===(d==null?void 0:d.uid)){Wt.success("转接会话发送成功,请等待对方响应");return}},k=B=>{var W,j,H;console.log("handleTransferAccept:",B);const G=JSON.parse(B),L=JSON.parse((W=G.message)==null?void 0:W.content);m(L==null?void 0:L.thread),Wt.success(`${(H=(j=G.message)==null?void 0:j.user)==null?void 0:H.nickname} 已接受转接会话`)},P=B=>{var L,W;console.log("handleTransferReject:",B);const G=JSON.parse(B);Wt.success(`${(W=(L=G.message)==null?void 0:L.user)==null?void 0:W.nickname} 已拒绝转接会话`)};return _r.on(AB,M),_r.on(IB,k),_r.on(NB,P),()=>{_r.off(AB,M),_r.off(IB,k),_r.off(NB,P)}},[]),F.jsxs(xAe,{collapsed:!0,collapsedButtonRender:!1,layout:"side",style:{height:"100vh"},route:{routes:_},location:{pathname:r},menu:{type:"group",collapsedShowTitle:!0},avatarProps:null,actionsRender:M=>M.isMobile?[]:[F.jsx(ZXt,{}),F.jsx(KXt,{})],menuHeaderRender:()=>F.jsx(GIe,{}),menuFooterRender:M=>{M!=null&&M.collapsed},onMenuHeaderClick:M=>{console.log("onMenuHeaderClick",M)},menuItemRender:(M,k)=>F.jsx(F.Fragment,{children:F.jsxs("div",{onClick:()=>{i(M.path),o(M.path),localStorage.setItem(FB,M.path)},children:[v&&F.jsxs(F.Fragment,{children:[M.path==="/chat"&&F.jsx(_l,{size:"small",dot:v,offset:[-5,5],children:k}),M.path!=="/chat"&&k]}),!v&&F.jsx(F.Fragment,{children:k})]})}),children:[F.jsx(L3,{children:F.jsx(ED,{},t.locale)}),F.jsx($3,{style:l}),F.jsx(vJt,{open:E,onClose:()=>C(!1),onSuccess:T}),F.jsx(bJt,{open:w,onClose:()=>O(!1)}),F.jsx("audio",{id:"audioPlay",src:"soundUrl",hidden:!0})]})},_Jt=()=>F.jsx(F.Fragment,{children:F.jsx(ED,{})}),SJt=({open:e,onClose:t})=>{const n=Si(),{translateString:r}=Pc(),i=()=>{t()},o=()=>{t()};return F.jsx(F.Fragment,{children:F.jsx(Qo,{title:n.formatMessage({id:"profile.password.change.title",defaultMessage:"Change Password"}),forceRender:!0,open:e,footer:null,onCancel:o,children:F.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 XXt(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:[F.jsx(di.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"})}),F.jsx(di.Password,{name:"newPassword",label:n.formatMessage({id:"profile.password.new",defaultMessage:"New Password"})}),F.jsx(di.Password,{name:"confirmPassword",label:n.formatMessage({id:"profile.password.confirm",defaultMessage:"Confirm Password"})})]})})})},fMe=({children:e,onSuccess:t,onError:n})=>{const r={file:null,fileName:"test.png",fileType:"image/png",isAvatar:"true",kbType:K7e,categoryUid:"",kbUid:"",client:Or},i={name:"file",accept:"image/*",action:nx(),headers:{Authorization:"Bearer "+localStorage.getItem(Jm)},data:r,showUploadList:!1,beforeUpload(o){console.log("beforeUpload",o);const a=ln(new Date).format("YYYYMMDDHHmmss")+"_"+o.name;r.file=o,r.fileName=a,r.fileType=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 F.jsx(gD,{...i,children:e})},EJt=({open:e,onSubmit:t,onClose:n})=>{const r=Si(),[i]=Dr.useForm(),{translateString:o}=Pc(),{userInfo:a,deviceUid:s}=Ra(E=>({userInfo:E.userInfo,deviceUid:E.deviceUid})),l=Vl(E=>E.currentOrg),c=h.useRef(),[u,d]=h.useState(""),[f,p]=h.useState(""),[m,g]=h.useState(!1),v=async(E,C)=>{console.log("captchaUid",E," captchaValue",C),d(E),p(C)},y=async E=>{console.log("captcha check result",E),g(E)},b=()=>{n()},_=()=>{n()},S=async()=>{i.validateFields().then(async E=>{if(console.log("changeEmail:",E),a.email===E.email){Wt.error(r.formatMessage({id:"profile.email.not.changed",defaultMessage:"Email is not changed!"}));return}const C={email:E.email,code:E.code,platform:hu},w=await $4e(C);console.log("changeEmail response:",w),w.data.code===200?(Wt.success(r.formatMessage({id:"profile.email.change.success",defaultMessage:"Email changed successfully!"})),t(E.email),b()):Wt.error(o(w.data.message))})},x=()=>{setTimeout(()=>{var E;console.log("endCaptchaTiming"),(E=c.current)==null||E.endTiming()},2)};return F.jsx(F.Fragment,{children:F.jsx(Qo,{title:r.formatMessage({id:"profile.email.change.title",defaultMessage:"Change Email"}),forceRender:!0,open:e,footer:null,onCancel:_,children:F.jsxs(Dr,{form:i,onFinish:async E=>{console.log("changeEmail:",E),S()},children:[F.jsx(di,{fieldProps:{size:"large",prefix:F.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"})}]}),F.jsx(Dr.Item,{name:"captchaCode",children:F.jsx(QS,{onKaptchaChange:v,onKaptchaCheck:y})}),F.jsx(L2,{fieldProps:{size:"large",prefix:F.jsx(xv,{})},captchaProps:{size:"large",disabled:!m},placeholder:r.formatMessage({id:"profile.email.verification.code.placeholder",defaultMessage:"Enter verification code"}),captchaTextRender:(E,C)=>E?`${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 E=>{if(E){if(a.email===E){Wt.error(r.formatMessage({id:"profile.email.not.changed",defaultMessage:"Email is not changed!"})),x();return}const C={email:E,type:x7e,captchaUid:u,captchaCode:f,deviceUid:s,userUid:a.uid,orgUid:l.uid,platform:hu},w=await iIe(C);if(w.data.code!==200){Wt.error(w.data.message),x();return}Wt.success(w.data.message)}else Wt.error(r.formatMessage({id:"profile.email.format.error",defaultMessage:"Invalid email format"}))}})]})})})},CJt=({open:e,onSubmit:t,onClose:n})=>{const r=Si(),[i]=Dr.useForm(),{translateString:o}=Pc(),{userInfo:a,deviceUid:s}=Ra(E=>({userInfo:E.userInfo,deviceUid:E.deviceUid})),l=Vl(E=>E.currentOrg),c=h.useRef(),[u,d]=h.useState(""),[f,p]=h.useState(""),[m,g]=h.useState(!1),v=async(E,C)=>{console.log("captchaUid",E," captchaValue",C),d(E),p(C)},y=async E=>{console.log("captcha check result",E),g(E)},b=()=>{n()},_=()=>{n()},S=async()=>{i.validateFields().then(async E=>{if(console.log("changeMobile:",E),a.mobile===E.mobile){Wt.error(r.formatMessage({id:"profile.mobile.not.changed",defaultMessage:"Mobile number is not changed!"}));return}const C={mobile:E.mobile,code:E.code,platform:hu},w=await F4e(C);console.log("changeMobile response:",w),w.data.code===200?(Wt.success(r.formatMessage({id:"profile.mobile.change.success",defaultMessage:"Mobile number changed successfully!"})),t(E.mobile),b()):Wt.error(o(w.data.message))})},x=()=>{setTimeout(()=>{var E;console.log("endCaptchaTiming"),(E=c.current)==null||E.endTiming()},2)};return F.jsx(F.Fragment,{children:F.jsx(Qo,{title:r.formatMessage({id:"profile.mobile.change.title",defaultMessage:"Change Mobile"}),forceRender:!0,open:e,footer:null,onCancel:_,children:F.jsxs(Dr,{form:i,onFinish:async E=>{console.log("changeMobile:",E),S()},children:[F.jsx(di,{fieldProps:{size:"large",prefix:F.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"})}]}),F.jsx(Dr.Item,{name:"captchaCode",children:F.jsx(QS,{onKaptchaChange:v,onKaptchaCheck:y})}),F.jsx(L2,{fieldProps:{size:"large",prefix:F.jsx(xv,{})},captchaProps:{size:"large",disabled:!m},placeholder:r.formatMessage({id:"profile.mobile.verification.code.placeholder",defaultMessage:"Enter verification code"}),captchaTextRender:(E,C)=>E?`${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 E=>{if(E&&E.length===11){if(a.mobile===E){Wt.error(r.formatMessage({id:"profile.mobile.not.changed",defaultMessage:"Mobile number is not changed!"})),x();return}const C={mobile:E,type:E7e,captchaUid:u,captchaCode:f,deviceUid:s,userUid:a.uid,orgUid:l.uid,platform:hu},w=await SQ(C);if(w.data.code!==200){Wt.error(w.data.message),x();return}Wt.success(w.data.message)}else Wt.error(r.formatMessage({id:"profile.mobile.format.error",defaultMessage:"Invalid mobile format"}))}})]})})})},xJt={labelCol:{span:8},wrapperCol:{span:8}},ade=()=>{const e=Si(),[t]=Dr.useForm(),{translateString:n}=Pc(),{userInfo:r,setUserInfo:i}=Ra(T=>({userInfo:T.userInfo,setUserInfo:T.setUserInfo})),[o,a]=h.useState(""),[s,l]=h.useState(!1),[c,u]=h.useState(!1),[d,f]=h.useState(!1),p=()=>{l(!0)},m=()=>{u(!0)},g=()=>{f(!0)},v=()=>{l(!1)},y=()=>{u(!1)},b=T=>{u(!1),r.email=T,i(r),t.setFieldValue("email",T)},_=()=>{f(!1)},S=T=>{f(!1),r.mobile=T,i(r),t.setFieldValue("mobile",T)},x=T=>{console.log("handleUploadSuccess:",T),a(T)},E=T=>{console.log("handleUploadError:",T)},C=async T=>{const A={...r,...T,avatar:o};console.log(A);const I=await L4e(A);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)},w=T=>Array.isArray(T)?T:T==null?void 0:T.fileList;h.useEffect(()=>{r&&a(r.avatar)},[r]);const O=async()=>{const T=await D4e();console.log("handleRefreshProfile getProfile response:",T.data),T.data.code===200?(i(T.data.data),t.setFieldsValue({uid:T.data.data.uid,username:T.data.data.username,nickname:n(T.data.data.nickname),email:T.data.data.email,mobile:T.data.data.mobile,description:n(T.data.data.description)})):Wt.error(T.data.message)};return h.useEffect(()=>{O()},[]),F.jsxs("div",{className:"profile-container",children:[F.jsxs(Dr,{...xJt,form:t,onFinish:C,children:[F.jsx(di,{name:"uid",label:"UID",readonly:!0}),F.jsx(Dr.Item,{name:"avatar",valuePropName:"fileList",getValueFromEvent:w,label:e.formatMessage({id:"profile.form.avatar",defaultMessage:"Avatar"}),children:F.jsxs(fMe,{onSuccess:x,onError:E,children:[F.jsx(_h,{src:o}),F.jsx(Dn,{icon:F.jsx(GY,{}),children:e.formatMessage({id:"profile.form.upload",defaultMessage:"Upload"})})]},"avatar")}),F.jsx(di,{name:"username",label:e.formatMessage({id:"profile.form.username",defaultMessage:"Username"}),rules:[{required:!0}]}),F.jsx(Dn,{onClick:p,children:e.formatMessage({id:"profile.button.change.password",defaultMessage:"Change Password"})}),F.jsx(di,{name:"nickname",label:e.formatMessage({id:"profile.form.nickname",defaultMessage:"Nickname"}),rules:[{required:!0}]}),F.jsx(di,{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}),F.jsx(Dn,{onClick:m,children:e.formatMessage({id:"profile.button.change.email",defaultMessage:"Change Email"})}),F.jsx(di,{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}),F.jsx(Dn,{onClick:g,children:e.formatMessage({id:"profile.button.change.mobile",defaultMessage:"Change Mobile"})}),F.jsx(qS,{name:"description",label:e.formatMessage({id:"profile.form.description",defaultMessage:"Description"})})]}),s&&F.jsx(SJt,{open:s,onClose:v}),c&&F.jsx(EJt,{open:c,onSubmit:b,onClose:y}),d&&F.jsx(CJt,{open:d,onSubmit:S,onClose:_})]})},wJt=()=>{const e=Si(),t=c3(),{isMqttConnected:n}=lX(),[r,i]=h.useState(!0),[o,a]=h.useState(!0),[s,l]=h.useState(!1),c=E=>{console.log("radio checked",E.target.value),l(E.target.value),ja?window.electronAPI.setOpenAtLogin(E.target.value):console.log("not electron")},u=async()=>{if(ja){const E=await window.electronAPI.getOpenAtLogin();console.log("openAtLogin:",E),l(E)}};h.useEffect(()=>{u(),vje(),xbe(),console.log("isNetworkOnline:",t);const E=localStorage.getItem(cI);E===null?(localStorage.setItem(cI,"true"),i(!0)):i(E==="true");const C=localStorage.getItem(ex);C===null?(localStorage.setItem(ex,"true"),a(!0)):a(C==="true")},[]);const{themeMode:d,setThemeMode:f,mode:p,changeMode:m,locale:g,changeLocale:v}=h.useContext(cs),y=E=>{console.log("radio checked",E.target.value),f(E.target.value),_je(E.target.value)},b=E=>{console.log("language change",E.target.value),v(E.target.value)},_=E=>{console.log("play audio switch",E),localStorage.setItem(cI,E?"true":"false"),i(E)},S=E=>{console.log("show network status notification",E),localStorage.setItem(ex,E?"true":"false"),a(E)},x=E=>{console.log("mode change",E.target.value),m(E.target.value)};return F.jsxs("div",{className:"profile-container",children:[F.jsx("p",{children:F.jsx(eM,{checkedChildren:e.formatMessage({id:"setting.basic.sound.on",defaultMessage:"已开启消息提示音"}),unCheckedChildren:e.formatMessage({id:"setting.basic.sound.off",defaultMessage:"已关闭消息提示音"}),value:r,onChange:_})}),F.jsx("p",{children:F.jsx(eM,{checkedChildren:e.formatMessage({id:"setting.basic.notification.on",defaultMessage:"已开启网络状态通知"}),unCheckedChildren:e.formatMessage({id:"setting.basic.notification.off",defaultMessage:"已关闭网络状态通知"}),value:o,onChange:S})}),ud&&F.jsxs(F.Fragment,{children:[F.jsx("p",{children:e.formatMessage({id:"setting.basic.connection.status",defaultMessage:"长链接状态:"})}),F.jsx("div",{children:n?e.formatMessage({id:"setting.basic.connection.connected",defaultMessage:"✅连接正常"}):e.formatMessage({id:"setting.basic.connection.disconnected",defaultMessage:"❌连接断开"})})]}),ja&&F.jsxs(F.Fragment,{children:[F.jsx("p",{children:e.formatMessage({id:"setting.basic.startup",defaultMessage:"开机启动:"})}),F.jsxs(Qi.Group,{onChange:c,value:s,children:[F.jsx(Qi,{value:!0,children:e.formatMessage({id:"setting.basic.startup.on",defaultMessage:"开机启动"})}),F.jsx(Qi,{value:!1,children:e.formatMessage({id:"setting.basic.startup.off",defaultMessage:"不开机启动"})})]})]}),F.jsx("p",{children:e.formatMessage({id:"setting.basic.theme",defaultMessage:"颜色主题:"})}),F.jsxs(Qi.Group,{onChange:y,value:d,children:[F.jsx(Qi,{value:"light",children:F.jsx(ad,{id:"theme.light"})}),F.jsx(Qi,{value:"dark",children:F.jsx(ad,{id:"theme.dark"})}),F.jsx(Qi,{value:"system",children:F.jsx(ad,{id:"theme.system"})})]}),F.jsxs("div",{children:[F.jsx("p",{children:e.formatMessage({id:"setting.basic.language",defaultMessage:"语言设置:"})}),F.jsxs(Qi.Group,{value:g.locale,onChange:b,children:[F.jsx(Qi,{value:"en",children:e.formatMessage({id:"i18n.lang.en-US"})},"en"),F.jsx(Qi,{value:"zh-cn",children:e.formatMessage({id:"i18n.lang.zh-CN"})},"zh-cn"),F.jsx(Qi,{value:"zh-tw",children:e.formatMessage({id:"i18n.lang.zh-TW"})},"zh-tw")]})]}),ud&&F.jsxs("div",{children:[F.jsx("p",{children:e.formatMessage({id:"setting.basic.mode",defaultMessage:"模式设置:"})}),F.jsxs(Qi.Group,{value:p,onChange:x,children:[F.jsx(Qi,{value:hy,children:e.formatMessage({id:"setting.basic.mode.team",defaultMessage:"团队模式"})},hy),F.jsx(Qi,{value:P1,children:e.formatMessage({id:"setting.basic.mode.agent",defaultMessage:"客服模式"})},P1),F.jsx(Qi,{value:e4,children:e.formatMessage({id:"setting.basic.mode.personal",defaultMessage:"个人模式"})},e4)]})]})]})},TJt=()=>{const e=Ra(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 F.jsxs("div",{id:"myqrcode",style:{textAlign:"center",marginTop:"50px"},children:[F.jsx(ETe,{style:{margin:"auto"},errorLevel:"H",value:"https://www.weiyuai.cn/",icon:"/agent/logo.png"}),F.jsx(Dn,{type:"primary",onClick:t,style:{marginTop:"20px"},children:"下载二维码"})]})},OJt=()=>F.jsx(F.Fragment,{children:F.jsx("div",{children:"ShortcutAdmin"})}),RJt=()=>{const e=ka();return F.jsx(O2,{status:"404",title:"404",subTitle:"Sorry, the page you visited does not exist.",extra:F.jsx(Dn,{type:"primary",onClick:()=>e("/"),children:"返回主页"})})},AJt={labelCol:{span:8},wrapperCol:{span:8}},IJt=()=>{const e=Si(),[t]=Dr.useForm(),{userInfo:n,setUserInfo:r}=Ra(u=>({userInfo:u.userInfo,setUserInfo:u.setUserInfo})),[i,o]=h.useState(""),a={file:null,fileName:"test.png",fileType:"image/png"},s={name:"file",action:nx(),headers:{Authorization:"Bearer "+localStorage.getItem(Jm)},showUploadList:!1,data:a,beforeUpload(u){const d=ln(new Date).format("YYYYMMDDHHmmss")+"_"+u.name;a.file=u,a.fileName=d,a.fileType=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 L4e(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 h.useEffect(()=>{n&&o(n.avatar)},[n]),F.jsxs("div",{className:"profile-container",children:[F.jsx("p",{children:"员工信息"}),F.jsxs(Dr,{...AJt,style:{marginLeft:20},form:t,onFinish:l,initialValues:{nickname:n.nickname,email:n.email,mobile:n.mobile,description:n.description},children:[F.jsx(ui.Item,{name:"avatar",valuePropName:"fileList",getValueFromEvent:c,label:e.formatMessage({id:"pages.robot.tab.avatar",defaultMessage:"Avatar"}),children:F.jsxs(gD,{...s,children:[F.jsx(_h,{src:i}),F.jsx(Dn,{icon:F.jsx(GY,{}),children:e.formatMessage({id:"pages.robot.upload",defaultMessage:"Upload"})})]},"avatar")}),F.jsx(di,{name:"nickname",label:"昵称",rules:[{required:!0}],children:F.jsx(Co,{})}),F.jsx(di,{name:"email",label:"邮箱",rules:[{type:"email"}],disabled:!0,children:F.jsx(Co,{})}),F.jsx(di,{name:"mobile",label:"手机号",disabled:!0,children:F.jsx(Co,{})}),F.jsx(qS,{name:"description",label:"描述",children:F.jsx(Co.TextArea,{})})]})]})},NJt=({open:e,onSubmit:t,onClose:n})=>{const r=Si(),[i]=Dr.useForm(),{translateString:o}=Pc(),{userInfo:a,deviceUid:s}=Ra(E=>({userInfo:E.userInfo,deviceUid:E.deviceUid})),l=Vl(E=>E.currentOrg),c=h.useRef(),[u,d]=h.useState(""),[f,p]=h.useState(""),[m,g]=h.useState(!1);h.useEffect(()=>{e?i.setFieldsValue({email:a==null?void 0:a.email}):(i.resetFields(),x())},[e]);const v=async(E,C)=>{console.log("captchaUid",E," captchaValue",C),d(E),p(C)},y=async E=>{console.log("captcha check result",E),g(E)},b=()=>{n()},_=()=>{n()},S=async()=>{i.validateFields().then(async E=>{console.log("changeEmail:",E);const C={email:E.email,code:E.code,platform:hu},w=await $4e(C);console.log("changeEmail response:",w),w.data.code===200?(Wt.success("Email verify successfully!"),t(E.email),b()):Wt.error(o(w.data.message))})},x=()=>{setTimeout(()=>{var E;console.log("endCaptchaTiming"),(E=c.current)==null||E.endTiming()},2)};return F.jsx(F.Fragment,{children:F.jsx(Qo,{title:r.formatMessage({id:"pages.settings.verify.email",defaultMessage:"验证邮箱"}),forceRender:!0,open:e,footer:null,onCancel:_,children:F.jsxs(Dr,{form:i,onFinish:async E=>{console.log("changeEmail:",E),S()},children:[F.jsx(di,{fieldProps:{size:"large",prefix:F.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}),F.jsx(Dr.Item,{name:"captchaCode",rules:[],children:F.jsx(QS,{onKaptchaChange:v,onKaptchaCheck:y})}),F.jsx(L2,{fieldProps:{size:"large",prefix:F.jsx(xv,{}),allowClear:!0},captchaProps:{size:"large",disabled:!m},placeholder:r.formatMessage({id:"pages.login.captcha.placeholder",defaultMessage:"请输入验证码"}),captchaTextRender:(E,C)=>E?`${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 E=>{if(console.log("email:",E),E){const C={email:E,type:w7e,captchaUid:u,captchaCode:f,deviceUid:s,userUid:a==null?void 0:a.uid,orgUid:l.uid,platform:hu},w=await iIe(C);if(console.log("sendEmailCode",w),w.data.code!==200){Wt.error(o(w.data.message)),x();return}Wt.success(o(w.data.message))}else Wt.error("手机号格式错误")}})]})})})},MJt=({open:e,onSubmit:t,onClose:n})=>{const r=Si(),[i]=Dr.useForm(),{translateString:o}=Pc(),{userInfo:a,deviceUid:s}=Ra(E=>({userInfo:E.userInfo,deviceUid:E.deviceUid})),l=Vl(E=>E.currentOrg),c=h.useRef(),[u,d]=h.useState(""),[f,p]=h.useState(""),[m,g]=h.useState(!1);h.useEffect(()=>{e?i.setFieldsValue({mobile:a==null?void 0:a.mobile}):(i.resetFields(),x())},[e]);const v=async(E,C)=>{console.log("captchaUid",E," captchaValue",C),d(E),p(C)},y=async E=>{console.log("captcha check result",E),g(E)},b=()=>{n()},_=()=>{n()},S=async()=>{i.validateFields().then(async E=>{console.log("changeMobile:",E);const C={mobile:E.mobile,code:E.code,platform:hu},w=await F4e(C);console.log("changeMobile response:",w),w.data.code===200?(Wt.success("Mobile verify successfully!"),t(E.mobile),b()):Wt.error(o(w.data.message))})},x=()=>{setTimeout(()=>{var E;console.log("endCaptchaTiming"),(E=c.current)==null||E.endTiming()},2)};return F.jsx(F.Fragment,{children:F.jsx(Qo,{title:r.formatMessage({id:"pages.settings.verify.mobile",defaultMessage:"验证手机号"}),forceRender:!0,open:e,footer:null,onCancel:_,children:F.jsxs(Dr,{form:i,onFinish:async E=>{console.log("changeMobile:",E),S()},children:[F.jsx(di,{fieldProps:{size:"large",prefix:F.jsx(w2,{})},name:"mobile",placeholder:r.formatMessage({id:"pages.login.phoneNumber.placeholder",defaultMessage:"手机号"}),rules:[{required:!0},{pattern:/^1\d{10}$/}],readonly:!0}),F.jsx(Dr.Item,{name:"captchaCode",rules:[],children:F.jsx(QS,{onKaptchaChange:v,onKaptchaCheck:y})}),F.jsx(L2,{fieldProps:{size:"large",prefix:F.jsx(xv,{}),allowClear:!0},captchaProps:{size:"large",disabled:!m},placeholder:r.formatMessage({id:"pages.login.captcha.placeholder",defaultMessage:"请输入验证码"}),captchaTextRender:(E,C)=>E?`${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 E=>{if(console.log("mobile:",E),E&&E.length===11){const C={mobile:E,type:C7e,captchaUid:u,captchaCode:f,deviceUid:s,userUid:a==null?void 0:a.uid,orgUid:l.uid,platform:hu},w=await SQ(C);if(console.log("sendMobileCode",w),w.data.code!==200){Wt.error(o(w.data.message)),x();return}Wt.success(o(w.data.message))}else Wt.error("手机号格式错误")}})]})})})},kJt=()=>{const e=Si(),t=ka(),[n]=Dr.useForm(),{userInfo:r,setUserInfo:i}=Ra(y=>({userInfo:y.userInfo,setUserInfo:y.setUserInfo})),[o,a]=h.useState(!1),[s,l]=h.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)},p=()=>{l(!1)},m=y=>{l(!1),r.mobile=y,r.mobileVerified=!0,i(r),n.setFieldValue("mobile",y)};h.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 F.jsxs("div",{children:[F.jsxs(Dr,{form:n,submitter:!1,children:[F.jsx(di,{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&&F.jsx(Dn,{onClick:c,children:e.formatMessage({id:"pages.settings.verify.email",defaultMessage:"验证邮箱"})}),F.jsx(Dn,{type:"link",onClick:g,children:"重置邮箱"}),F.jsx(di,{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&&F.jsx(Dn,{onClick:u,children:e.formatMessage({id:"pages.settings.verify.mobile",defaultMessage:"验证手机号"})}),F.jsx(Dn,{type:"link",onClick:v,children:"重置手机号"})]}),o&&F.jsx(NJt,{open:o,onSubmit:f,onClose:d}),s&&F.jsx(MJt,{open:s,onSubmit:m,onClose:p})]})},PJt=e=>{console.log(e)},DJt=[{key:"personal",label:"个人认证",children:F.jsx(kJt,{})}],LJt=()=>F.jsx("div",{className:"profile-container",children:F.jsx(SS,{defaultActiveKey:"personal",items:DJt,onChange:PJt})}),$Jt=()=>{const[e]=Dr.useForm(),t=Si(),{translateString:n}=Pc(),{agentInfo:r,setAgentInfo:i}=hv(d=>({agentInfo:d.agentInfo,setAgentInfo:d.setAgentInfo})),[o,a]=h.useState("");h.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,_,S,x,E,C,w,O,T,A;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:(x=(S=r==null?void 0:r.serviceSettings)==null?void 0:S.hotFaqs)==null?void 0:x.map(I=>I.uid),shortcutFaqUids:(C=(E=r==null?void 0:r.serviceSettings)==null?void 0:E.shortcutFaqs)==null?void 0:C.map(I=>I.uid)},robotSettings:{...r.robotSettings,robotUid:(O=(w=r==null?void 0:r.robotSettings)==null?void 0:w.robot)==null?void 0:O.uid},leaveMsgSettings:{...r.leaveMsgSettings,worktimeUids:(A=(T=r==null?void 0:r.leaveMsgSettings)==null?void 0:T.worktimes)==null?void 0:A.map(I=>I.uid)},autoReplySettings:{...r.autoReplySettings}};console.log("agentObject:",f);const p=await pje(f);console.log("updateAgent response:",p),p.data.code===200?(Wt.destroy(),Wt.success(t.formatMessage({id:"update.success"})),i(p.data.data)):(Wt.destroy(),Wt.error(p.data.message))},u=d=>Array.isArray(d)?d:d==null?void 0:d.fileList;return h.useEffect(()=>{var d;r&&(a(r.avatar),e.setFieldsValue({member:(d=r==null?void 0:r.member)==null?void 0:d.nickname}))},[r]),F.jsx(F.Fragment,{children:F.jsxs(Dr,{form:e,style:{marginLeft:"20px"},onFinish:c,children:[F.jsx(Dr.Item,{name:"avatar",valuePropName:"fileList",getValueFromEvent:u,label:t.formatMessage({id:"pages.robot.tab.avatar",defaultMessage:"Avatar"}),children:F.jsxs(fMe,{onSuccess:s,onError:l,children:[F.jsx(_h,{src:o}),F.jsx(Dn,{icon:F.jsx(GY,{}),children:t.formatMessage({id:"pages.robot.upload",defaultMessage:"Upload"})})]},"avatar")}),F.jsx(di,{width:"md",name:"nickname",label:"客服卡片-展示客服昵称",rules:[{required:!0,message:"请输入客服昵称"}]}),F.jsx(di,{width:"md",name:"email",label:"客服卡片-展示邮箱",rules:[{required:!0,message:"请输入邮箱"}]}),F.jsx(di,{width:"md",name:"mobile",label:"客服卡片-展示手机号",rules:[{required:!0,message:"请输入手机号"}]}),F.jsx(qS,{width:"md",name:"description",label:"客服卡片-展示描述",rules:[{required:!0,message:"请输入描述"}]})]})})},FJt=()=>{const e=Si(),[t,n]=h.useState([]),r=[{key:"basic",label:e.formatMessage({id:"pages.agent.tab.basic",defaultMessage:"Basic"}),children:F.jsx($Jt,{})}];return h.useEffect(()=>{n(r)},[]),F.jsx(F.Fragment,{children:F.jsx(SS,{style:{marginLeft:20},defaultActiveKey:"basic",items:t})})},BJt=()=>{const e=Si(),{isLoggedIn:t,mode:n}=h.useContext(cs),{doLogout:r}=k4e(),[i,o]=h.useState("✅"),[a,s]=h.useState(e.formatMessage({id:"footbar.network.normal",defaultMessage:"网络正常"})),l=c3();h.useEffect(()=>{l?(o("✅"),s(e.formatMessage({id:"footbar.network.normal",defaultMessage:"网络正常"}))):(o("❌"),s(e.formatMessage({id:"footbar.network.disconnected",defaultMessage:"网络断开"})))},[l,e]);const c=F.jsx("div",{children:F.jsx("p",{children:e.formatMessage({id:"footbar.anonymous.tip",defaultMessage:"匿名状态,仅支持同一个局域网内在线设备之间通信"})})}),u=F.jsx("div",{children:F.jsx("p",{children:e.formatMessage({id:"footbar.login.tip",defaultMessage:"登录后,支持离线消息和更多功能"})})}),[d,f]=h.useState(!1),p=()=>{f(!0)},m=()=>{f(!1)},g=()=>{console.log("handleShowLoginModel"),p()},v=b=>{console.log(b),r()},y=b=>{console.log(b)};return F.jsxs(F.Fragment,{children:[F.jsx(Qo,{open:d&&!t,onOk:m,onCancel:m,footer:[F.jsx(Dn,{onClick:m,children:e.formatMessage({id:"footbar.login.skip",defaultMessage:"暂不登录"})},"back")],children:F.jsx(xU,{isModel:!0})}),F.jsxs("span",{children:[!t&&F.jsxs(F.Fragment,{children:[F.jsx(bu,{content:c,title:e.formatMessage({id:"footbar.anonymous.status",defaultMessage:"匿名状态"}),children:F.jsx("span",{className:"footerLeftButton",children:e.formatMessage({id:"footbar.anonymous.status",defaultMessage:"匿名状态"})})}),F.jsx(bu,{content:u,children:F.jsx("span",{className:"footerLeftButton",onClick:g,children:e.formatMessage({id:"footbar.login",defaultMessage:"登录"})})})]}),t&&F.jsx(F.Fragment,{children:F.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:F.jsx("span",{className:"footerLeftButton",children:e.formatMessage({id:"footbar.logout",defaultMessage:"退出登录"})})})}),n===P1&&ud&&F.jsx("span",{style:{marginLeft:10},children:F.jsx(Na,{title:e.formatMessage({id:"footbar.serving.count",defaultMessage:"当前接待人数"}),children:F.jsx("span",{children:e.formatMessage({id:"footbar.serving.text",defaultMessage:"当前接待人数:0"})})})})]}),F.jsxs("span",{className:"footerRightButton",children:[F.jsx(Na,{title:a,children:F.jsx("span",{children:i})}),F.jsxs("span",{style:{marginLeft:"10px"},onClick:()=>n_(M7e),children:["v",RGe()]}),F.jsx("span",{style:{marginLeft:"10px"},onClick:()=>n_("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:HJt,Content:jJt}=po,fV=()=>{const{leftSiderStyle:e,leftSiderWidth:t,headerStyle:n,contentStyle:r}=aO();return F.jsx(F.Fragment,{children:F.jsxs(po,{children:[F.jsx(HJt,{style:e,width:t,children:F.jsx(Y4,{style:n,children:"home"})}),F.jsxs(po,{children:[F.jsx(Y4,{style:n,children:"home"}),F.jsx(jJt,{style:r,children:"home"})]})]})})},UJt=()=>{console.log("useMulticast");const e=()=>setInterval(()=>{},5e3);h.useEffect(()=>{console.log("useMulticast useEffect");const t=e();return()=>{console.log("un - useEffect"),clearInterval(t)}},[])};class zJt{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 VJt(t).buffer}}function VJt(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 pMe(e){return new GJt(e).unpack()}function hMe(e){const t=new WJt,n=t.pack(e);return n instanceof Promise?n.then(()=>t.getBuffer()):t.getBuffer()}class GJt{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 WJt{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 zJt,this._textEncoder=new TextEncoder}}let mMe=!0,gMe=!0;function BC(e,t,n){const r=e.match(t);return r&&r.length>=n&&parseFloat(r[n],10)}function Lv(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 qJt(e){return typeof e!="boolean"?new Error("Argument type: "+typeof e+". Please use a boolean."):(mMe=e,e?"adapter.js logging disabled":"adapter.js logging enabled")}function YJt(e){return typeof e!="boolean"?new Error("Argument type: "+typeof e+". Please use a boolean."):(gMe=!e,"adapter.js deprecation warnings "+(e?"disabled":"enabled"))}function vMe(){if(typeof window=="object"){if(mMe)return;typeof console<"u"&&typeof console.log=="function"&&console.log.apply(console,arguments)}}function hX(e,t){gMe&&console.warn(e+" is deprecated, please use "+t+" instead.")}function KJt(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=parseInt(BC(n.userAgent,/Firefox\/(\d+)\./,1));else if(n.webkitGetUserMedia||e.isSecureContext===!1&&e.webkitRTCPeerConnection)t.browser="chrome",t.version=parseInt(BC(n.userAgent,/Chrom(e|ium)\/(\d+)\./,2));else if(e.RTCPeerConnection&&n.userAgent.match(/AppleWebKit\/(\d+)\./))t.browser="safari",t.version=parseInt(BC(n.userAgent,/AppleWebKit\/(\d+)\./,1)),t.supportsUnifiedPlan=e.RTCRtpTransceiver&&"currentDirection"in e.RTCRtpTransceiver.prototype,t._safariVersion=BC(n.userAgent,/Version\/(\d+(\.?\d+))/,1);else return t.browser="Not a supported browser.",t;return t}function sde(e){return Object.prototype.toString.call(e)==="[object Object]"}function bMe(e){return sde(e)?Object.keys(e).reduce(function(t,n){const r=sde(e[n]),i=r?bMe(e[n]):e[n],o=r&&!Object.keys(i).length;return i===void 0||o?t:Object.assign(t,{[n]:i})},{}):e}function pV(e,t,n){!t||n.has(t.id)||(n.set(t.id,t),Object.keys(t).forEach(r=>{r.endsWith("Id")?pV(e,e.get(t[r]),n):r.endsWith("Ids")&&t[r].forEach(i=>{pV(e,e.get(i),n)})}))}function lde(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&&pV(e,s,i)})}),i}const cde=vMe;function yMe(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,p){return f?f+p.charAt(0).toUpperCase()+p.slice(1):p==="deviceId"?"sourceId":p};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 p=f.find(m=>d.some(g=>m.label.toLowerCase().includes(g)));return!p&&f.length&&d.includes("back")&&(p=f[f.length-1]),p&&(s.video.deviceId=c.exact?{exact:p.deviceId}:{ideal:p.deviceId}),s.video=r(s.video),cde("chrome: "+JSON.stringify(s)),l(s)})}s.video=r(s.video)}return cde("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 _Me(e){e.MediaStream=e.MediaStream||e.webkitMediaStream}function SMe(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 Lv(e,"track",t=>(t.transceiver||Object.defineProperty(t,"transceiver",{value:{receiver:t.receiver}}),t))}function EMe(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 CMe(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=>lde(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}),Lv(e,"track",r=>(r.receiver._pc=r.srcElement,r)),e.RTCRtpReceiver.prototype.getStats=function(){const i=this;return this._pc.getStats().then(o=>lde(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 xMe(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 wMe(e,t){if(!e.RTCPeerConnection)return;if(e.RTCPeerConnection.prototype.addTrack&&t.version>=65)return xMe(e);const n=e.RTCPeerConnection.prototype.getLocalStreams;e.RTCPeerConnection.prototype.getLocalStreams=function(){const u=n.apply(this);return this._reverseStreams=this._reverseStreams||{},u.map(d=>this._reverseStreams[d.id])};const r=e.RTCPeerConnection.prototype.addStream;e.RTCPeerConnection.prototype.addStream=function(u){if(this._streams=this._streams||{},this._reverseStreams=this._reverseStreams||{},u.getTracks().forEach(d=>{if(this.getSenders().find(p=>p.track===d))throw new DOMException("Track already exists.","InvalidAccessError")}),!this._reverseStreams[u.id]){const d=new e.MediaStream(u.getTracks());this._streams[u.id]=d,this._reverseStreams[d.id]=u,u=d}r.apply(this,[u])};const i=e.RTCPeerConnection.prototype.removeStream;e.RTCPeerConnection.prototype.removeStream=function(u){this._streams=this._streams||{},this._reverseStreams=this._reverseStreams||{},i.apply(this,[this._streams[u.id]||u]),delete this._reverseStreams[this._streams[u.id]?this._streams[u.id].id:u.id],delete this._streams[u.id]},e.RTCPeerConnection.prototype.addTrack=function(u,d){if(this.signalingState==="closed")throw new DOMException("The RTCPeerConnection's signalingState is 'closed'.","InvalidStateError");const 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 p=c._reverseStreams[f],m=c._streams[p.id];d=d.replace(new RegExp(m.id,"g"),p.id)}),new RTCSessionDescription({type:u.type,sdp:d})}function a(c,u){let d=u.sdp;return Object.keys(c._reverseStreams||[]).forEach(f=>{const p=c._reverseStreams[f],m=c._streams[p.id];d=d.replace(new RegExp(p.id,"g"),m.id)}),new RTCSessionDescription({type:u.type,sdp:d})}["createOffer","createAnswer"].forEach(function(c){const u=e.RTCPeerConnection.prototype[c],d={[c](){const 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(p=>{this._streams[p].getTracks().find(g=>u.track===g)&&(f=this._streams[p])}),f&&(f.getTracks().length===1?this.removeStream(this._reverseStreams[f.id]):f.removeTrack(u.track),this.dispatchEvent(new Event("negotiationneeded")))}}function hV(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 TMe(e,t){Lv(e,"negotiationneeded",n=>{const r=n.target;if(!((t.version<72||r.getConfiguration&&r.getConfiguration().sdpSemantics==="plan-b")&&r.signalingState!=="stable"))return n})}const ude=Object.freeze(Object.defineProperty({__proto__:null,fixNegotiationNeeded:TMe,shimAddTrackRemoveTrack:wMe,shimAddTrackRemoveTrackWithNative:xMe,shimGetSendersWithDtmf:EMe,shimGetUserMedia:yMe,shimMediaStream:_Me,shimOnTrack:SMe,shimPeerConnection:hV,shimSenderReceiverGetStats:CMe},Symbol.toStringTag,{value:"Module"}));function OMe(e,t){const n=e&&e.navigator,r=e&&e.MediaStreamTrack;if(n.getUserMedia=function(i,o,a){hX("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 QJt(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 RMe(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 mV(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 IMe(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}),Lv(e,"track",n=>(n.receiver._pc=n.srcElement,n)),e.RTCRtpReceiver.prototype.getStats=function(){return this._pc.getStats(this.track)}}function NMe(e){!e.RTCPeerConnection||"removeStream"in e.RTCPeerConnection.prototype||(e.RTCPeerConnection.prototype.removeStream=function(n){hX("removeStream","removeTrack"),this.getSenders().forEach(r=>{r.track&&n.getTracks().includes(r.track)&&this.removeTrack(r)})})}function MMe(e){e.DataChannel&&!e.RTCDataChannel&&(e.RTCDataChannel=e.DataChannel)}function kMe(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 PMe(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 DMe(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 LMe(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 dde=Object.freeze(Object.defineProperty({__proto__:null,shimAddTransceiver:kMe,shimCreateAnswer:LMe,shimCreateOffer:DMe,shimGetDisplayMedia:QJt,shimGetParameters:PMe,shimGetUserMedia:OMe,shimOnTrack:RMe,shimPeerConnection:mV,shimRTCDataChannel:MMe,shimReceiverGetStats:IMe,shimRemoveStream:NMe,shimSenderGetStats:AMe},Symbol.toStringTag,{value:"Module"}));function $Me(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 FMe(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 BMe(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 HMe(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(jMe(i))}!t.getUserMedia&&t.mediaDevices&&t.mediaDevices.getUserMedia&&(t.getUserMedia=(function(r,i,o){t.mediaDevices.getUserMedia(r).then(i,o)}).bind(t))}function jMe(e){return e&&e.video!==void 0?Object.assign({},e,{video:bMe(e.video)}):e}function UMe(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?(hX("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 zMe(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 VMe(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 GMe(e){typeof e!="object"||e.AudioContext||(e.AudioContext=e.webkitAudioContext)}const fde=Object.freeze(Object.defineProperty({__proto__:null,shimAudioContext:GMe,shimCallbacksAPI:BMe,shimConstraints:jMe,shimCreateOfferLegacy:VMe,shimGetUserMedia:HMe,shimLocalStreamsAPI:$Me,shimRTCIceServerUrls:UMe,shimRemoteStreamsAPI:FMe,shimTrackEventTransceiver:zMe},Symbol.toStringTag,{value:"Module"}));var WMe={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 p={ssrc:l,codecPayloadType:parseInt(f.parameters.apt,10)};l&&c&&(p.rtx={ssrc:c}),r.push(p),o&&(p=JSON.parse(JSON.stringify(p)),p.fec={ssrc:l,mechanism:a?"red+ulpfec":"red"},r.push(p))}}),r.length===0&&l&&r.push({ssrc:l});let d=t.matchPrefix(n,"b=");return d.length&&(d[0].indexOf("b=TIAS:")===0?d=parseInt(d[0].substring(7),10):d[0].indexOf("b=AS:")===0?d=parseInt(d[0].substring(5),10)*1e3*.95-50*40*8:d=void 0,r.forEach(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})(WMe);var qMe=WMe.exports;const Ty=oi(qMe),XJt=Wk({__proto__:null,default:Ty},[qMe]);function oN(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=Ty.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,Lv(e,"icecandidate",n=>(n.candidate&&Object.defineProperty(n,"candidate",{value:new e.RTCIceCandidate(n.candidate),writable:"false"}),n))}function gV(e){!e.RTCIceCandidate||e.RTCIceCandidate&&"relayProtocol"in e.RTCIceCandidate.prototype||Lv(e,"icecandidate",t=>{if(t.candidate){const n=Ty.parseCandidate(t.candidate.candidate);n.type==="relay"&&(t.candidate.relayProtocol={0:"tls",1:"tcp",2:"udp"}[n.priority>>24])}return t})}function aN(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=Ty.splitSections(s.sdp);return l.shift(),l.some(c=>{const u=Ty.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=Ty.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 sN(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},Lv(e,"datachannel",r=>(t(r.channel,r.target),r))}function vV(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 bV(e,t){if(!e.RTCPeerConnection||t.browser==="chrome"&&t.version>=71||t.browser==="safari"&&t._safariVersion>=13.1)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 lN(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 cN(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 ZJt=Object.freeze(Object.defineProperty({__proto__:null,removeExtmapAllowMixed:bV,shimAddIceCandidateNullOrEmpty:lN,shimConnectionState:vV,shimMaxMessageSize:aN,shimParameterlessSetLocalDescription:cN,shimRTCIceCandidate:oN,shimRTCIceCandidateRelayProtocol:gV,shimSendThrowTypeError:sN},Symbol.toStringTag,{value:"Module"}));function JJt({window:e}={},t={shimChrome:!0,shimFirefox:!0,shimSafari:!0}){const n=vMe,r=KJt(e),i={browserDetails:r,commonShim:ZJt,extractVersion:BC,disableLog:qJt,disableWarnings:YJt,sdp:XJt};switch(r.browser){case"chrome":if(!ude||!hV||!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=ude,lN(e,r),cN(e),yMe(e,r),_Me(e),hV(e,r),SMe(e),wMe(e,r),EMe(e),CMe(e),TMe(e,r),oN(e),gV(e),vV(e),aN(e,r),sN(e),bV(e,r);break;case"firefox":if(!dde||!mV||!t.shimFirefox)return n("Firefox shim is not included in this adapter release."),i;n("adapter.js shimming firefox."),i.browserShim=dde,lN(e,r),cN(e),OMe(e,r),mV(e,r),RMe(e),NMe(e),AMe(e),IMe(e),MMe(e),kMe(e),PMe(e),DMe(e),LMe(e),oN(e),vV(e),aN(e,r),sN(e);break;case"safari":if(!fde||!t.shimSafari)return n("Safari shim is not included in this adapter release."),i;n("adapter.js shimming safari."),i.browserShim=fde,lN(e,r),cN(e),UMe(e),VMe(e),BMe(e),$Me(e),FMe(e),zMe(e),HMe(e),GMe(e),oN(e),gV(e),aN(e,r),sN(e),bV(e,r);break;default:n("Unsupported browser!");break}return i}const pde=JJt({window:typeof window>"u"?void 0:window});function $v(e,t,n,r){Object.defineProperty(e,t,{get:n,set:r,enumerable:!0,configurable:!0})}class YMe{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 een(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 H$=pde.default||pde,YE=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 H$.browserDetails.browser}getVersion(){return H$.browserDetails.version||0}isUnifiedPlanSupported(){const e=this.getBrowser(),t=H$.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}},ten=e=>!e||/^[A-Za-z0-9]+(?:[ _-][A-Za-z0-9]+)*$/.test(e),KMe=()=>Math.random().toString(36).slice(2),hde={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 nen extends YMe{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=hde,this.browser=YE.getBrowser(),this.browserVersion=YE.getVersion(),this.pack=hMe,this.unpack=pMe,this.supports=function(){const n={browser:YE.isBrowserSupported(),webRTC:YE.isWebRTCSupported(),audioVideo:!1,data:!1,binaryBlob:!1,reliable:!1};if(!n.webRTC)return n;let r;try{r=new RTCPeerConnection(hde),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=!YE.isIOS}catch{}}catch{}finally{i&&i.close()}}catch{}finally{r&&r.close()}return n}(),this.validateId=ten,this.randomToken=KMe}}const El=new nen,ren="PeerJS: ";class ien{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=[ren,...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 Kn=new ien,mX={},oen=Object.prototype.hasOwnProperty,nl="~";function nT(){}Object.create&&(nT.prototype=Object.create(null),new nT().__proto__||(nl=!1));function aen(e,t,n){this.fn=e,this.context=t,this.once=n||!1}function QMe(e,t,n,r,i){if(typeof n!="function")throw new TypeError("The listener must be a function");var o=new aen(n,r||e,i),a=nl?nl+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 uN(e,t){--e._eventsCount===0?e._events=new nT:delete e._events[t]}function Ls(){this._events=new nT,this._eventsCount=0}Ls.prototype.eventNames=function(){var t=[],n,r;if(this._eventsCount===0)return t;for(r in n=this._events)oen.call(n,r)&&t.push(nl?r.slice(1):r);return Object.getOwnPropertySymbols?t.concat(Object.getOwnPropertySymbols(n)):t};Ls.prototype.listeners=function(t){var n=nl?nl+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};Ls.prototype.listenerCount=function(t){var n=nl?nl+t:t,r=this._events[n];return r?r.fn?1:r.length:0};Ls.prototype.emit=function(t,n,r,i,o,a){var s=nl?nl+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,p;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(p=1,u=new Array(c-1);p<c;p++)u[p-1]=arguments[p];l[d].fn.apply(l[d].context,u)}}return!0};Ls.prototype.on=function(t,n,r){return QMe(this,t,n,r,!1)};Ls.prototype.once=function(t,n,r){return QMe(this,t,n,r,!0)};Ls.prototype.removeListener=function(t,n,r,i){var o=nl?nl+t:t;if(!this._events[o])return this;if(!n)return uN(this,o),this;var a=this._events[o];if(a.fn)a.fn===n&&(!i||a.once)&&(!r||a.context===r)&&uN(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:uN(this,o)}return this};Ls.prototype.removeAllListeners=function(t){var n;return t?(n=nl?nl+t:t,this._events[n]&&uN(this,n)):(this._events=new nT,this._eventsCount=0),this};Ls.prototype.off=Ls.prototype.removeListener;Ls.prototype.addListener=Ls.prototype.on;Ls.prefixed=nl;Ls.EventEmitter=Ls;mX=Ls;var Fv={};$v(Fv,"ConnectionType",()=>og);$v(Fv,"PeerErrorType",()=>da);$v(Fv,"BaseConnectionErrorType",()=>yV);$v(Fv,"DataConnectionErrorType",()=>gX);$v(Fv,"SerializationType",()=>Q3);$v(Fv,"SocketEventType",()=>Lm);$v(Fv,"ServerMessageType",()=>xs);var og=function(e){return e.Data="data",e.Media="media",e}({}),da=function(e){return 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",e}({}),yV=function(e){return e.NegotiationFailed="negotiation-failed",e.ConnectionClosed="connection-closed",e}({}),gX=function(e){return e.NotOpenYet="not-open-yet",e.MessageToBig="message-too-big",e}({}),Q3=function(e){return e.Binary="binary",e.BinaryUTF8="binary-utf8",e.JSON="json",e.None="raw",e}({}),Lm=function(e){return e.Message="message",e.Disconnected="disconnected",e.Error="error",e.Close="close",e}({}),xs=function(e){return 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",e}({});const XMe="1.5.5";class sen extends mX.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="+XMe),this._disconnected=!1,this._socket.onmessage=i=>{let o;try{o=JSON.parse(i.data),Kn.log("Server message received:",o)}catch{Kn.log("Invalid server message",i.data);return}this.emit(Lm.Message,o)},this._socket.onclose=i=>{this._disconnected||(Kn.log("Socket closed.",i),this._cleanup(),this._disconnected=!0,this.emit(Lm.Disconnected))},this._socket.onopen=()=>{this._disconnected||(this._sendQueuedMessages(),Kn.log("Socket open"),this._scheduleHeartbeat())})}_scheduleHeartbeat(){this._wsPingTimer=setTimeout(()=>{this._sendHeartbeat()},this.pingInterval)}_sendHeartbeat(){if(!this._wsOpen()){Kn.log("Cannot send heartbeat, because socket closed");return}const t=JSON.stringify({type:xs.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(Lm.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 ZMe{constructor(t){this.connection=t}startConnection(t){const n=this._startPeerConnection();if(this.connection.peerConnection=n,this.connection.type===og.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(){Kn.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;Kn.log("Listening for ICE candidates."),t.onicecandidate=a=>{!a.candidate||!a.candidate.candidate||(Kn.log(`Received ICE candidates for ${n}:`,a.candidate),o.socket.send({type:xs.Candidate,payload:{candidate:a.candidate,type:i,connectionId:r},dst:n}))},t.oniceconnectionstatechange=()=>{switch(t.iceConnectionState){case"failed":Kn.log("iceConnectionState is failed, closing connections to "+n),this.connection.emitError(yV.NegotiationFailed,"Negotiation of connection to "+n+" failed."),this.connection.close();break;case"closed":Kn.log("iceConnectionState is closed, closing connections to "+n),this.connection.emitError(yV.ConnectionClosed,"Connection to "+n+" closed."),this.connection.close();break;case"disconnected":Kn.log("iceConnectionState changed to disconnected on the connection with "+n);break;case"completed":t.onicecandidate=()=>{};break}this.connection.emit("iceStateChanged",t.iceConnectionState)},Kn.log("Listening for data channel"),t.ondatachannel=a=>{Kn.log("Received data channel");const s=a.channel;o.getConnection(n,r)._initializeDataChannel(s)},Kn.log("Listening for remote stream"),t.ontrack=a=>{Kn.log("Received remote stream");const s=a.streams[0],l=o.getConnection(n,r);if(l.type===og.Media){const c=l;this._addStreamToMediaConnection(s,c)}}}cleanup(){Kn.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);Kn.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),Kn.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===og.Data){const o=this.connection;i={...i,label:o.label,reliable:o.reliable,serialization:o.serialization}}n.socket.send({type:xs.Offer,payload:i,dst:this.connection.peer})}catch(i){i!="OperationError: Failed to set local offer sdp: Called in wrong state: kHaveRemoteOffer"&&(n.emitError(da.WebRTC,i),Kn.log("Failed to setLocalDescription, ",i))}}catch(r){n.emitError(da.WebRTC,r),Kn.log("Failed to createOffer, ",r)}}async _makeAnswer(){const t=this.connection.peerConnection,n=this.connection.provider;try{const r=await t.createAnswer();Kn.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),Kn.log("Set localDescription:",r,`for:${this.connection.peer}`),n.socket.send({type:xs.Answer,payload:{sdp:r,type:this.connection.type,connectionId:this.connection.connectionId},dst:this.connection.peer})}catch(i){n.emitError(da.WebRTC,i),Kn.log("Failed to setLocalDescription, ",i)}}catch(r){n.emitError(da.WebRTC,r),Kn.log("Failed to create answer, ",r)}}async handleSDP(t,n){n=new RTCSessionDescription(n);const r=this.connection.peerConnection,i=this.connection.provider;Kn.log("Setting remote description",n);const o=this;try{await r.setRemoteDescription(n),Kn.log(`Set remoteDescription:${t} for:${this.connection.peer}`),t==="OFFER"&&await o._makeAnswer()}catch(a){i.emitError(da.WebRTC,a),Kn.log("Failed to setRemoteDescription, ",a)}}async handleCandidate(t){Kn.log("handleCandidate:",t);try{await this.connection.peerConnection.addIceCandidate(t),Kn.log(`Added ICE candidate for:${this.connection.peer}`)}catch(n){this.connection.provider.emitError(da.WebRTC,n),Kn.log("Failed to handleCandidate, ",n)}}_addTracksToConnection(t,n){if(Kn.log(`add tracks from stream ${t.id} to peer connection`),!n.addTrack)return Kn.error("Your browser does't support RTCPeerConnection#addTrack. Ignored.");t.getTracks().forEach(r=>{n.addTrack(r,t)})}_addStreamToMediaConnection(t,n){Kn.log(`add stream ${t.id} to media connection ${n.connectionId}`),n.addStream(t)}}class JMe extends mX.EventEmitter{emitError(t,n){Kn.error("Error:",n),this.emit("error",new len(`${t}`,n))}}class len extends Error{constructor(t,n){typeof n=="string"?super(n):(super(),Object.assign(this,n)),this.type=t}}class eke extends JMe{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 PG;const Gx=class Gx extends eke{get type(){return og.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||Gx.ID_PREFIX+El.randomToken(),this._negotiator=new ZMe(this),this._localStream&&this._negotiator.startConnection({_stream:this._localStream,originator:!0})}_initializeDataChannel(t){this.dataChannel=t,this.dataChannel.onopen=()=>{Kn.log(`DC#${this.connectionId} dc connection success`),this.emit("willCloseOnRemote")},this.dataChannel.onclose=()=>{Kn.log(`DC#${this.connectionId} dc closed for:`,this.peer),this.close()}}addStream(t){Kn.log("Receiving stream",t),this._remoteStream=t,super.emit("stream",t)}handleMessage(t){const n=t.type,r=t.payload;switch(t.type){case xs.Answer:this._negotiator.handleSDP(n,r.sdp),this._open=!0;break;case xs.Candidate:this._negotiator.handleCandidate(r.candidate);break;default:Kn.warn(`Unrecognized message type:${n} from peer:${this.peer}`);break}}answer(t,n={}){if(this._localStream){Kn.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"))}};PG=new WeakMap,$n(Gx,PG,Gx.ID_PREFIX="mc_");let PM=Gx;class cen{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",XMe),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){Kn.error("Error retrieving ID",t);let n="";throw this._options.path==="/"&&this._options.host!==El.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===El.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 Kn.error("Error retrieving list peers",t),new Error("Could not get list peers from the server."+t)}}}var DG,LG;const R0=class R0 extends eke{get type(){return og.Data}constructor(t,n,r){super(t,n,r),this.connectionId=this.options.connectionId||R0.ID_PREFIX+KMe(),this.label=this.options.label||this.connectionId,this.reliable=!!this.options.reliable,this._negotiator=new ZMe(this),this._negotiator.startConnection(this.options._payload||{originator:!0,reliable:this.reliable})}_initializeDataChannel(t){this.dataChannel=t,this.dataChannel.onopen=()=>{Kn.log(`DC#${this.connectionId} dc connection success`),this._open=!0,this.emit("open")},this.dataChannel.onmessage=n=>{Kn.log(`DC#${this.connectionId} dc onmessage:`,n.data)},this.dataChannel.onclose=()=>{Kn.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(gX.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 xs.Answer:await this._negotiator.handleSDP(t.type,n.sdp);break;case xs.Candidate:await this._negotiator.handleCandidate(n.candidate);break;default:Kn.warn("Unrecognized message type:",t.type,"from peer:",this.peer);break}}};DG=new WeakMap,LG=new WeakMap,$n(R0,DG,R0.ID_PREFIX="dc_"),$n(R0,LG,R0.MAX_BUFFERED_AMOUNT=8388608);let DM=R0;class vX extends DM{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>DM.MAX_BUFFERED_AMOUNT)return this._buffering=!0,setTimeout(()=>{this._buffering=!1,this._tryBuffer()},50),!1;try{this.dataChannel.send(t)}catch(n){return Kn.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 j$ extends vX{close(t){super.close(t),this._chunkedData={}}constructor(t,n,r){super(t,n,r),this.chunker=new YMe,this.serialization=Q3.Binary,this._chunkedData={}}_handleDataMessage({data:t}){const n=pMe(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=een(r.data);this._handleDataMessage({data:i})}}_send(t,n){const r=hMe(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);Kn.log(`DC#${this.connectionId} Try to send ${n.length} chunks...`);for(const r of n)this.send(r,!0)}}class uen extends vX{_handleDataMessage({data:t}){super.emit("data",t)}_send(t,n){this._bufferedSend(t)}constructor(...t){super(...t),this.serialization=Q3.None}}class den extends vX{_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>=El.chunkedMTU){this.emitError(gX.MessageToBig,"Message too big for JSON channel");return}this._bufferedSend(r)}constructor(...t){super(...t),this.serialization=Q3.JSON,this.encoder=new TextEncoder,this.decoder=new TextDecoder,this.stringify=JSON.stringify,this.parse=JSON.parse}}var $G;const Wx=class Wx extends JMe{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:uen,json:den,binary:j$,"binary-utf8":j$,default:j$},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:El.CLOUD_HOST,port:El.CLOUD_PORT,path:"/",key:Wx.DEFAULT_KEY,token:El.randomToken(),config:El.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!==El.CLOUD_HOST?this._options.secure=El.isSecure():this._options.host==El.CLOUD_HOST&&(this._options.secure=!0),this._options.logFunction&&Kn.setLogFunction(this._options.logFunction),Kn.logLevel=this._options.debug||0,this._api=new cen(n),this._socket=this._createServerConnection(),!El.supports.audioVideo&&!El.supports.data){this._delayedAbort(da.BrowserIncompatible,"The current browser does not support WebRTC");return}if(r&&!El.validateId(r)){this._delayedAbort(da.InvalidID,`ID "${r}" is invalid`);return}r?this._initialize(r):this._api.retrieveId().then(i=>this._initialize(i)).catch(i=>this._abort(da.ServerError,i))}_createServerConnection(){const t=new sen(this._options.secure,this._options.host,this._options.port,this._options.path,this._options.key,this._options.pingInterval);return t.on(Lm.Message,n=>{this._handleMessage(n)}),t.on(Lm.Error,n=>{this._abort(da.SocketError,n)}),t.on(Lm.Disconnected,()=>{this.disconnected||(this.emitError(da.Network,"Lost connection to server."),this.disconnect())}),t.on(Lm.Close,()=>{this.disconnected||this._abort(da.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 xs.Open:this._lastServerId=this.id,this._open=!0,this.emit("open",this.id);break;case xs.Error:this._abort(da.ServerError,r.msg);break;case xs.IdTaken:this._abort(da.UnavailableID,`ID "${this.id}" is taken`);break;case xs.InvalidKey:this._abort(da.InvalidKey,`API KEY "${this._options.key}" is invalid`);break;case xs.Leave:Kn.log(`Received leave message from ${i}`),this._cleanupPeer(i),this._connections.delete(i);break;case xs.Expire:this.emitError(da.PeerUnavailable,`Could not connect to peer ${i}`);break;case xs.Offer:{const o=r.connectionId;let a=this.getConnection(i,o);if(a&&(a.close(),Kn.warn(`Offer received for existing Connection ID:${o}`)),r.type===og.Media){const l=new PM(i,this,{connectionId:o,_payload:r,metadata:r.metadata});a=l,this._addConnection(i,a),this.emit("call",l)}else if(r.type===og.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{Kn.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){Kn.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):Kn.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){Kn.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(da.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){Kn.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(da.Disconnected,"Cannot connect to new Peer after disconnecting from server.");return}if(!n){Kn.error("To call a peer, you must provide a stream from your browser's `getUserMedia`.");return}const i=new PM(t,this,{...r,_stream:n});return this._addConnection(t,i),i}_addConnection(t,n){Kn.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){Kn.error("Aborting!"),this.emitError(t,n),this._lastServerId?this.disconnect():this.destroy()}destroy(){this.destroyed||(Kn.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;Kn.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)Kn.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)Kn.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(da.ServerError,n))}};$G=new WeakMap,$n(Wx,$G,Wx.DEFAULT_KEY="peerjs");let _V=Wx,fen="127.0.0.1",pen=9e3,hen="/";function men(){console.log("usePeer");const e=Ra(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 h.useEffect(()=>{const a=new _V(e.uid,{host:fen,port:pen,path:hen});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 gen=()=>{const e=Si(),[t,n]=h.useState("/chat"),r=ka(),{isLoggedIn:i,mode:o}=h.useContext(cs),{footerStyle:a}=aO(),[s,l]=h.useState(!1),c=Cf(p=>p.threads);h.useEffect(()=>{const p=c.some(m=>m.unreadCount>0);l(p)},[c]);const u=[{path:"/anonymous/home",name:e.formatMessage({id:"menu.dashboard.chat"}),icon:F.jsx(Z4,{}),component:F.jsx(fV,{})}],[d,f]=h.useState(u);return P4e(),N4e(),UJt(),men(),EQ(),h.useEffect(()=>{f(u)},[o]),h.useEffect(()=>(i&&r("/chat"),()=>{console.log("un - useEffect")}),[i]),F.jsxs(xAe,{collapsed:!0,collapsedButtonRender:!1,layout:"side",style:{height:"100vh"},route:{routes:d},location:{pathname:t},menu:{type:"group",collapsedShowTitle:!0},avatarProps:null,actionsRender:p=>p.isMobile?[]:[F.jsx(C0t,{onClick:gje},"QuestionCircleFilled")],menuHeaderRender:()=>F.jsx(GIe,{}),menuFooterRender:p=>{p!=null&&p.collapsed},onMenuHeaderClick:p=>{console.log("onMenuHeaderClick",p)},menuItemRender:(p,m)=>F.jsx(F.Fragment,{children:F.jsxs("a",{onClick:()=>{n(p.path),r(p.path)},children:[s&&F.jsxs(F.Fragment,{children:[p.path==="/anonymous/home"&&F.jsx(_l,{size:"small",dot:s,offset:[-5,5],children:m}),p.path!=="/anonymous/home"&&m]}),!s&&F.jsx(F.Fragment,{children:m})]})}),children:[F.jsx(L3,{children:F.jsx(ED,{})}),F.jsx($3,{style:a,children:F.jsx(BJt,{})}),F.jsx("audio",{id:"audioPlay",src:"soundUrl",hidden:!0})]})},{Sider:ven,Content:ben}=po,yen=()=>{const{leftSiderStyle:e,leftSiderWidth:t,headerStyle:n,contentStyle:r}=aO();return F.jsx(F.Fragment,{children:F.jsxs(po,{children:[F.jsx(ven,{style:e,width:t}),F.jsxs(po,{children:[F.jsx(Y4,{style:n,children:"setting"}),F.jsx(ben,{style:r,children:"setting"})]})]})})};async function _en(e){return Br("/api/v1/article/query/org",{method:"GET",params:{...e,client:Or}})}async function Sen(e){return Br("/api/v1/article/query/uid",{method:"GET",params:{...e,client:Or}})}async function Een(e){return Br("/api/v1/article/create",{method:"POST",data:{...e,client:Or}})}async function bX(e){return Br("/api/v1/article/update",{method:"POST",data:{...e,client:Or}})}async function tke(e){return Br("/api/v1/article/delete",{method:"POST",data:{...e,client:Or}})}const cO=Ac(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 Sen({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 bX(n);console.log("updateArticle response:",r.data),r.data.code===200?Wt.success("保存成功"):Wt.error(r.data.message)},deleteArticle:async t=>{const r=await tke({uid:t});console.log("deleteArticle response:",r.data),r.data.code===200?(Wt.success("删除成功"),e({currentArticle:null})):Wt.error(r.data.message)}}));async function yX(e){return Br("/api/v1/category/query/org",{method:"GET",params:{...e,client:Or}})}async function Cen(e){return Br("/api/v1/category/create",{method:"POST",data:{...e,client:Or}})}const nke=({open:e,onCancel:t,onSuccess:n})=>{const r=Vl(a=>a.currentOrg),{currentKbase:i}=Hg(),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 Cen(s);return l.data.code===200?(Vo.success("分类创建成功"),n(l.data.data),!0):(Vo.error(l.data.message),!1)}catch{return Vo.error("创建分类失败"),!1}};return F.jsx(LRe,{title:"创建分类",width:500,open:e,onFinish:o,onOpenChange:a=>!a&&t(),modalProps:{destroyOnClose:!0},children:F.jsx(di,{name:"name",label:"分类名称",placeholder:"请输入分类名称",rules:[{required:!0,message:"请输入分类名称"},{max:50,message:"名称最多50个字符"}],fieldProps:{autoFocus:!0}})})},xen=({article:e,visible:t,onClose:n})=>{const[r]=ui.useForm(),[i,o]=pe.useState(!1),[a,s]=pe.useState([]),[l,c]=pe.useState(!1),u=Vl(E=>E.currentOrg),{currentKbase:d}=Hg(),{setCurrentArticle:f}=cO(),[p,m]=pe.useState("permanent"),[g,v]=pe.useState(!1),y=async()=>{try{const E={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},C=await yX(E);C.data.code===200&&C.data.data.content&&s(C.data.data.content)}catch(E){console.error("获取分类列表失败:",E),Vo.error("获取分类列表失败")}},b=E=>{const C=E.target.value;m(C),C==="permanent"&&r.setFieldValue("dateRange",void 0)},_=E=>{v(E)};pe.useEffect(()=>{if(t){y();let E="permanent",C;if(e.startDate&&e.endDate){const w=ln();ln(e.endDate).diff(w,"years")>=100?E="permanent":(E="custom",C=[ln(e.startDate),ln(e.endDate)])}m(E),v(e.published||!1),r.setFieldsValue({title:e.title,summary:e.summary,categoryUid:e.categoryUid,dateType:E,dateRange:C,published:e.published})}},[t,e]);const S=async E=>{var C;o(!0);try{let w,O;if(E.dateType==="permanent")w=ln().format("YYYY-MM-DDTHH:mm:ss"),O=ln().add(100,"years").format("YYYY-MM-DDTHH:mm:ss");else{const I=E.dateRange;w=I!=null&&I[0]?I[0].format("YYYY-MM-DDTHH:mm:ss"):void 0,O=I!=null&&I[1]?I[1].format("YYYY-MM-DDTHH:mm:ss"):void 0}const T={...e,title:E.title,summary:E.summary,categoryUid:E.categoryUid,published:E.published,startDate:w,endDate:O},A=await bX(T);console.log("updateArticle response:",A.data,T),((C=A==null?void 0:A.data)==null?void 0:C.code)===200?(Vo.success("更新成功"),f(A.data.data),n()):Vo.error(A.data.message)}catch{Vo.error("更新失败")}finally{o(!1)}},x=E=>{s(C=>[...C,E]),r.setFieldValue("categoryUid",E.uid),c(!1)};return F.jsxs(F.Fragment,{children:[F.jsx(FY,{title:"文章设置",width:500,open:t,onClose:n,destroyOnClose:!0,children:F.jsxs(Dr,{form:r,onFinish:S,submitter:{render:(E,C)=>F.jsxs(Ji,{style:{width:"100%",justifyContent:"flex-end"},children:[F.jsx(Dn,{onClick:n,children:"取消"}),C]})},children:[F.jsx(di,{name:"title",label:"标题",rules:[{required:!0,message:"请输入标题"}]}),F.jsx(qS,{name:"summary",label:"概要",placeholder:"请输入文章概要"}),F.jsxs(Ji,{direction:"vertical",style:{width:"100%"},children:[F.jsx(q2,{name:"categoryUid",label:"所属分类",placeholder:"请选择分类",options:a.map(E=>({label:E.name,value:E.uid})),fieldProps:{showSearch:!0,allowClear:!0,loading:i,notFoundContent:i?"加载中...":"暂无分类"}}),F.jsx(Dn,{type:"dashed",icon:F.jsx(v2,{}),onClick:()=>c(!0),style:{width:"100%"},children:"创建新分类"})]}),F.jsx(WS.Group,{name:"dateType",label:"有效期设置",options:[{label:"永久有效",value:"permanent"},{label:"自定义日期",value:"custom"}],fieldProps:{onChange:b,value:p}}),p==="custom"&&F.jsx(MRe,{name:"dateRange",label:"有效日期",placeholder:["开始日期","结束日期"],rules:[{required:p==="custom",message:"请选择有效日期范围"}]}),F.jsx(rU,{name:"published",label:"发布状态",fieldProps:{onChange:_,checked:g},checkedChildren:"已发布",unCheckedChildren:"草稿"})]})}),F.jsx(nke,{open:l,onCancel:()=>c(!1),onSuccess:x})]})};var wen=Object.defineProperty,rke=e=>{throw TypeError(e)},Ten=(e,t,n)=>t in e?wen(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Qt=(e,t,n)=>Ten(e,typeof t!="symbol"?t+"":t,n),ike=(e,t,n)=>t.has(e)||rke("Cannot "+n),KE=(e,t,n)=>(ike(e,t,"read from private field"),t.get(e)),Oen=(e,t,n)=>t.has(e)?rke("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),Ren=(e,t,n,r)=>(ike(e,t,"write to private field"),t.set(e,n),n);function Ja(e){this.content=e}Ja.prototype={constructor:Ja,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 Ja(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 Ja(n)},addToStart:function(e,t){return new Ja([e,t].concat(this.remove(e).content))},addToEnd:function(e,t){var n=this.remove(e).content.slice();return n.push(e,t),new Ja(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 Ja(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=Ja.from(e),e.size?new Ja(e.content.concat(this.subtract(e).content)):this},append:function(e){return e=Ja.from(e),e.size?new Ja(this.subtract(e).content.concat(e.content)):this},subtract:function(e){var t=this;e=Ja.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}};Ja.from=function(e){if(e instanceof Ja)return e;var t=[];if(e)for(var n in e)t.push(n,e[n]);return new Ja(t)};function oke(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=oke(i.content,o.content,n+1);if(a!=null)return a}n+=i.nodeSize}}function ake(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=ake(a.content,s.content,n-1,r-1);if(c)return c}n-=l,r-=l}}class en{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 en(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 en(r,i)}cutByIndex(t,n){return t==n?en.empty:t==0&&n==this.content.length?this:new en(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 en(i,o)}addToStart(t){return new en([t].concat(this.content),this.size+t.nodeSize)}addToEnd(t){return new en(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 oke(this,t,n)}findDiffEnd(t,n=this.size,r=t.size){return ake(this,t,n,r)}findIndex(t,n=-1){if(t==0)return rA(0,t);if(t==this.size)return rA(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?rA(r+1,a):rA(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 en.empty;if(!Array.isArray(n))throw new RangeError("Invalid input for Fragment.fromJSON");return new en(n.map(t.nodeFromJSON))}static fromArray(t){if(!t.length)return en.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 en(n||t,r)}static from(t){if(!t)return en.empty;if(t instanceof en)return t;if(Array.isArray(t))return this.fromArray(t);if(t.attrs)return new en([t],t.nodeSize);throw new RangeError("Can not convert "+t+" to a Fragment"+(t.nodesBetween?" (looks like multiple versions of prosemirror-model were loaded)":""))}}en.empty=new en([],0);const U$={index:0,offset:0};function rA(e,t){return U$.index=e,U$.offset=t,U$}function LM(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(!LM(e[r],t[r]))return!1}else{for(let r in e)if(!(r in t)||!LM(e[r],t[r]))return!1;for(let r in t)if(!(r in e))return!1}return!0}let ji=class SV{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&&LM(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 SV.none;if(t instanceof SV)return[t];let n=t.slice();return n.sort((r,i)=>r.type.rank-i.type.rank),n}};ji.none=[];class $M extends Error{}class An{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=lke(this.content,t+this.openStart,n);return r&&new An(r,this.openStart,this.openEnd)}removeBetween(t,n){return new An(ske(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 An.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 An(en.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 An(t,r,i)}}An.empty=new An(en.empty,0,0);function ske(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(ske(o.content,t-i-1,n-i-1)))}function lke(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=lke(a.content,t-o-1,n);return s&&e.replaceChild(i,a.copy(s))}function Aen(e,t,n){if(n.openStart>e.depth)throw new $M("Inserted content deeper than insertion position");if(e.depth-n.openStart!=t.depth-n.openEnd)throw new $M("Inconsistent open depths");return cke(e,t,n,0)}function cke(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=cke(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 _1(a,s.cut(0,e.parentOffset).append(n.content).append(s.cut(t.parentOffset)))}else{let{start:a,end:s}=Ien(n,e);return _1(o,dke(e,a,s,t,r))}else return _1(o,FM(e,t,r))}function uke(e,t){if(!t.type.compatibleContent(e.type))throw new $M("Cannot join "+t.type.name+" onto "+e.type.name)}function EV(e,t,n){let r=e.node(n);return uke(r,t.node(n)),r}function y1(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 Sx(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&&(y1(e.nodeAfter,r),o++));for(let s=o;s<a;s++)y1(i.child(s),r);t&&t.depth==n&&t.textOffset&&y1(t.nodeBefore,r)}function _1(e,t){return e.type.checkContent(t),e.copy(t)}function dke(e,t,n,r,i){let o=e.depth>i&&EV(e,t,i+1),a=r.depth>i&&EV(n,r,i+1),s=[];return Sx(null,e,i,s),o&&a&&t.index(i)==n.index(i)?(uke(o,a),y1(_1(o,dke(e,t,n,r,i+1)),s)):(o&&y1(_1(o,FM(e,t,i+1)),s),Sx(t,n,i,s),a&&y1(_1(a,FM(n,r,i+1)),s)),Sx(r,null,i,s),new en(s)}function FM(e,t,n){let r=[];if(Sx(null,e,n,r),e.depth>n){let i=EV(e,t,n+1);y1(_1(i,FM(e,t,n+1)),r)}return Sx(t,null,n,r),new en(r)}function Ien(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(en.from(r));return{start:r.resolveNoCache(e.openStart+n),end:r.resolveNoCache(r.content.size-e.openEnd-n)}}class rT{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 BM(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 rT(n,r,o)}static resolveCached(t,n){let r=mde.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 mde.set(t,r=new Nen);let i=r.elts[r.i]=rT.resolve(t,n);return r.i=(r.i+1)%Men,i}}class Nen{constructor(){this.elts=[],this.i=0}}const Men=12,mde=new WeakMap;class BM{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 ken=Object.create(null);let ag=class CV{constructor(t,n,r,i=ji.none){this.type=t,this.attrs=n,this.marks=i,this.content=r||en.empty}get children(){return this.content.content}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&&LM(this.attrs,n||t.defaultAttrs||ken)&&ji.sameSet(this.marks,r||ji.none)}copy(t=null){return t==this.content?this:new CV(this.type,this.attrs,t,this.marks)}mark(t){return t==this.marks?this:new CV(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 An.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 An(l,i.depth-a,o.depth-a)}replace(t,n,r){return Aen(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 rT.resolveCached(this,t)}resolveNoCache(t){return rT.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()+")"),fke(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=en.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=en.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 HM 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):fke(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 HM(this.type,this.attrs,this.text,t)}withText(t){return t==this.text?this:new HM(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 fke(e,t){for(let n=e.length-1;n>=0;n--)t=e[n].type.name+"("+t+")";return t}class Z1{constructor(t){this.validEnd=t,this.next=[],this.wrapCache=[]}static parse(t,n){let r=new Pen(t,n);if(r.next==null)return Z1.empty;let i=pke(r);r.next&&r.err("Unexpected trailing text");let o=jen(Hen(i));return Uen(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 en.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(`
`)}}Z1.empty=new Z1(!0);class Pen{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 pke(e){let t=[];do t.push(Den(e));while(e.eat("|"));return t.length==1?t[0]:{type:"choice",exprs:t}}function Den(e){let t=[];do t.push(Len(e));while(e.next&&e.next!=")"&&e.next!="|");return t.length==1?t[0]:{type:"seq",exprs:t}}function Len(e){let t=Ben(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=$en(e,t);else break;return t}function gde(e){/\D/.test(e.next)&&e.err("Expected number, got '"+e.next+"'");let t=Number(e.next);return e.pos++,t}function $en(e,t){let n=gde(e),r=n;return e.eat(",")&&(e.next!="}"?r=gde(e):r=-1),e.eat("}")||e.err("Unclosed braced range"),{type:"range",min:n,max:r,expr:t}}function Fen(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 Ben(e){if(e.eat("(")){let t=pke(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=Fen(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 Hen(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 hke(e,t){return t-e}function vde(e,t){let n=[];return r(t),n.sort(hke);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 jen(e){let t=Object.create(null);return n(vde(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]);vde(e,l).forEach(u=>{c||i.push([s,c=[]]),c.indexOf(u)==-1&&c.push(u)})})});let o=t[r.join(",")]=new Z1(r.indexOf(e.length-1)>-1);for(let a=0;a<i.length;a++){let s=i[a][1].sort(hke);o.next.push({type:i[a][0],next:t[s.join(",")]||n(s)})}return o}}function Uen(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 mke(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 gke(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 vke(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 bke(e,t){let n=Object.create(null);if(t)for(let r in t)n[r]=new Ven(e,r,t[r]);return n}let bde=class yke{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=bke(t,r.attrs),this.defaultAttrs=mke(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==Z1.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:gke(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),en.from(n),ji.setFrom(r))}createChecked(t=null,n,r){return n=en.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=en.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(en.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){vke(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 yke(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 zen(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 Ven{constructor(t,n,r){this.hasDefault=Object.prototype.hasOwnProperty.call(r,"default"),this.default=r.default,this.validate=typeof r.validate=="string"?zen(t,n,r.validate):r.validate}get isRequired(){return!this.hasDefault}}class X3{constructor(t,n,r,i){this.name=t,this.rank=n,this.schema=r,this.spec=i,this.attrs=bke(t,i.attrs),this.excluded=null;let o=mke(this.attrs);this.instance=o?new ji(this,o):null}create(t=null){return!t&&this.instance?this.instance:new ji(this,gke(this.attrs,t))}static compile(t,n){let r=Object.create(null),i=0;return t.forEach((o,a)=>r[o]=new X3(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){vke(this.attrs,t,"mark",this.name)}excludes(t){return this.excluded.indexOf(t)>-1}}class _ke{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=Ja.from(t.nodes),n.marks=Ja.from(t.marks||{}),this.nodes=bde.compile(this.spec.nodes,this),this.marks=X3.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]=Z1.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?yde(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==""?[]:yde(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 bde){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 HM(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 yde(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 Gen(e){return e.tag!=null}function Wen(e){return e.style!=null}let Oy=class xV{constructor(t,n){this.schema=t,this.rules=n,this.tags=[],this.styles=[];let r=this.matchedStyles=[];n.forEach(i=>{if(Gen(i))this.tags.push(i);else if(Wen(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 Sde(this,n,!1);return r.addAll(t,ji.none,n.from,n.to),r.finish()}parseSlice(t,n={}){let r=new Sde(this,n,!0);return r.addAll(t,ji.none,n.from,n.to),An.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(Ken(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=Ede(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=Ede(a)),a.node||a.ignore||a.mark||(a.node=i)})}return n}static fromSchema(t){return t.cached.domParser||(t.cached.domParser=new xV(t,xV.schemaRules(t)))}};const Ske={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},qen={head:!0,noscript:!0,object:!0,script:!0,style:!0,title:!0},Eke={ol:!0,ul:!0},iT=1,wV=2,Ex=4;function _de(e,t,n){return t!=null?(t?iT:0)|(t==="full"?wV:0):e&&e.whitespace=="pre"?iT|wV:n&~Ex}class iA{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&Ex?null:t.contentMatch)}findWrapping(t){if(!this.match){if(!this.type)return[];let n=this.type.contentMatch.fillBefore(en.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&iT)){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=en.from(this.content);return!t&&this.match&&(n=n.append(this.match.fillBefore(en.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&&!Ske.hasOwnProperty(t.parentNode.nodeName.toLowerCase())}}class Sde{constructor(t,n,r){this.parser=t,this.options=n,this.isOpen=r,this.open=0,this.localPreserveWS=!1;let i=n.topNode,o,a=_de(null,n.preserveWhitespace,0)|(r?Ex:0);i?o=new iA(i.type,i.attrs,ji.none,!0,n.topMatch||i.type.contentMatch,a):r?o=new iA(null,null,ji.none,!0,null,a):o=new iA(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,o=i.options&wV?"full":this.localPreserveWS||(i.options&iT)>0;if(o==="full"||i.inlineContext(t)||/[^ \t\r\n\u000c]/.test(r)){if(o)o!=="full"?r=r.replace(/\r?\n|\r/g," "):r=r.replace(/\r\n?/g,`
`);else if(r=r.replace(/[ \t\r\n\u000c]+/g," "),/^[ \t\r\n\u000c]/.test(r)&&this.open==this.nodes.length-1){let a=i.content[i.content.length-1],s=t.previousSibling;(!a||s&&s.nodeName=="BR"||a.isText&&/[ \t\r\n\u000c]$/.test(a.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=this.localPreserveWS,o=this.top;(t.tagName=="PRE"||/pre/.test(t.style&&t.style.whiteSpace))&&(this.localPreserveWS=!0);let a=t.nodeName.toLowerCase(),s;Eke.hasOwnProperty(a)&&this.parser.normalizeLists&&Yen(t);let l=this.options.ruleFromNode&&this.options.ruleFromNode(t)||(s=this.parser.matchTag(t,this,r));e:if(l?l.ignore:qen.hasOwnProperty(a))this.findInside(t),this.ignoreFallback(t,n);else if(!l||l.skip||l.closeParent){l&&l.closeParent?this.open=Math.max(0,this.open-1):l&&l.skip.nodeType&&(t=l.skip);let c,u=this.needsBlock;if(Ske.hasOwnProperty(a))o.content.length&&o.content[0].isInline&&this.open&&(this.open--,o=this.top),c=!0,o.type||(this.needsBlock=!0);else if(!t.firstChild){this.leafFallback(t,n);break e}let d=l&&l.skip?n:this.readStyles(t,n);d&&this.addAll(t,d),c&&this.sync(o),this.needsBlock=u}else{let c=this.readStyles(t,n);c&&this.addElementByRule(t,l,c,l.consuming===!1?s:void 0)}this.localPreserveWS=i}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):Cde(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=_de(t,o,a.options);a.options&Ex&&a.content.length==0&&(s|=Ex);let l=ji.none;return r=r.filter(c=>(a.type?a.type.allowsMarkType(c.type):Cde(c.type,t))?(l=c.addToSet(l),!1):!0),this.nodes.push(new iA(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;this.localPreserveWS&&(this.nodes[n].options|=iT)}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 Yen(e){for(let t=e.firstChild,n=null;t;t=t.nextSibling){let r=t.nodeType==1?t.nodeName.toLowerCase():null;r&&Eke.hasOwnProperty(r)&&n?(n.appendChild(t),t=n):r=="li"?n=t:r&&(n=null)}}function Ken(e,t){return(e.matches||e.msMatchesSelector||e.webkitMatchesSelector||e.mozMatchesSelector).call(e,t)}function Ede(e){let t={};for(let n in e)t[n]=e[n];return t}function Cde(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 Bv{constructor(t,n){this.nodes=t,this.marks=n}serializeFragment(t,n={},r){r||(r=z$(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}=dN(z$(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&&dN(z$(r),i(t,n),null,t.attrs)}static renderSpec(t,n,r=null,i){return dN(t,n,r,i)}static fromSchema(t){return t.cached.domSerializer||(t.cached.domSerializer=new Bv(this.nodesFromSchema(t),this.marksFromSchema(t)))}static nodesFromSchema(t){let n=xde(t.nodes);return n.text||(n.text=r=>r.text),n}static marksFromSchema(t){return xde(t.marks)}}function xde(e){let t={};for(let n in e){let r=e[n].spec.toDOM;r&&(t[n]=r)}return t}function z$(e){return e.document||window.document}const wde=new WeakMap;function Qen(e){let t=wde.get(e);return t===void 0&&wde.set(e,t=Xen(e)),t}function Xen(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 dN(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=Qen(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:p,contentDOM:m}=dN(e,f,n,r);if(l.appendChild(p),m){if(s)throw new RangeError("Multiple content holes");s=m}}}return{dom:l,contentDOM:s}}const Cke=65535,xke=Math.pow(2,16);function Zen(e,t){return e+t*xke}function Tde(e){return e&Cke}function Jen(e){return(e-(e&Cke))/xke}const wke=1,Tke=2,fN=4,Oke=8;class TV{constructor(t,n,r){this.pos=t,this.delInfo=n,this.recover=r}get deleted(){return(this.delInfo&Oke)>0}get deletedBefore(){return(this.delInfo&(wke|fN))>0}get deletedAfter(){return(this.delInfo&(Tke|fN))>0}get deletedAcross(){return(this.delInfo&fN)>0}}class dc{constructor(t,n=!1){if(this.ranges=t,this.inverted=n,!t.length&&dc.empty)return dc.empty}recover(t){let n=0,r=Tde(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+Jen(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,p=l+i+(f<0?0:u);if(r)return p;let m=t==(n<0?l:d)?null:Zen(s/3,t-l),g=t==l?Tke:t==d?wke:fN;return(n<0?t!=l:t!=d)&&(g|=Oke),new TV(p,g,m)}i+=u-c}return r?t+i:new TV(t+i,0,null)}touches(t,n){let r=0,i=Tde(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 dc(this.ranges,!this.inverted)}toString(){return(this.inverted?"-":"")+JSON.stringify(this.ranges)}static offset(t){return t==0?dc.empty:new dc(t<0?[0,-t,0]:[0,0,t])}}dc.empty=new dc([]);class Ry{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 Ry(this.maps,this.mirror,t,n)}copy(){return new Ry(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 Ry;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 TV(t,i,null)}}const V$=Object.create(null);class Bs{getMap(){return dc.empty}merge(t){return null}static fromJSON(t,n){if(!n||!n.stepType)throw new RangeError("Invalid input for Step.fromJSON");let r=V$[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 V$)throw new RangeError("Duplicate use of step JSON ID "+t);return V$[t]=n,n.prototype.jsonID=t,n}}class ga{constructor(t,n){this.doc=t,this.failed=n}static ok(t){return new ga(t,null)}static fail(t){return new ga(null,t)}static fromReplace(t,n,r,i){try{return ga.ok(t.replace(n,r,i))}catch(o){if(o instanceof $M)return ga.fail(o.message);throw o}}}function _X(e,t,n){let r=[];for(let i=0;i<e.childCount;i++){let o=e.child(i);o.content.size&&(o=o.copy(_X(o.content,t,o))),o.isInline&&(o=t(o,n,i)),r.push(o)}return en.fromArray(r)}class $m extends Bs{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 An(_X(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 ga.fromReplace(t,this.from,this.to,o)}invert(){return new xf(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))}}Bs.jsonID("addMark",$m);class xf extends Bs{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 An(_X(n.content,i=>i.mark(this.mark.removeFromSet(i.marks)),t),n.openStart,n.openEnd);return ga.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 xf(n.pos,r.pos,this.mark)}merge(t){return t instanceof xf&&t.mark.eq(this.mark)&&this.from<=t.to&&this.to>=t.from?new xf(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 xf(n.from,n.to,t.markFromJSON(n.mark))}}Bs.jsonID("removeMark",xf);class Fm extends Bs{constructor(t,n){super(),this.pos=t,this.mark=n}apply(t){let n=t.nodeAt(this.pos);if(!n)return ga.fail("No node at mark step's position");let r=n.type.create(n.attrs,null,this.mark.addToSet(n.marks));return ga.fromReplace(t,this.pos,this.pos+1,new An(en.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 F_(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))}}Bs.jsonID("addNodeMark",Fm);class F_ extends Bs{constructor(t,n){super(),this.pos=t,this.mark=n}apply(t){let n=t.nodeAt(this.pos);if(!n)return ga.fail("No node at mark step's position");let r=n.type.create(n.attrs,null,this.mark.removeFromSet(n.marks));return ga.fromReplace(t,this.pos,this.pos+1,new An(en.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 F_(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 F_(n.pos,t.markFromJSON(n.mark))}}Bs.jsonID("removeNodeMark",F_);class Ca extends Bs{constructor(t,n,r,i=!1){super(),this.from=t,this.to=n,this.slice=r,this.structure=i}apply(t){return this.structure&&OV(t,this.from,this.to)?ga.fail("Structure replace would overwrite content"):ga.fromReplace(t,this.from,this.to,this.slice)}getMap(){return new dc([this.from,this.to-this.from,this.slice.size])}invert(t){return new Ca(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 Ca(n.pos,Math.max(n.pos,r.pos),this.slice)}merge(t){if(!(t instanceof Ca)||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?An.empty:new An(this.slice.content.append(t.slice.content),this.slice.openStart,t.slice.openEnd);return new Ca(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?An.empty:new An(t.slice.content.append(this.slice.content),t.slice.openStart,this.slice.openEnd);return new Ca(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 Ca(n.from,n.to,An.fromJSON(t,n.slice),!!n.structure)}}Bs.jsonID("replace",Ca);class Ua extends Bs{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&&(OV(t,this.from,this.gapFrom)||OV(t,this.gapTo,this.to)))return ga.fail("Structure gap-replace would overwrite content");let n=t.slice(this.gapFrom,this.gapTo);if(n.openStart||n.openEnd)return ga.fail("Gap is not a flat range");let r=this.slice.insertAt(this.insert,n.content);return r?ga.fromReplace(t,this.from,this.to,r):ga.fail("Content does not fit in gap")}getMap(){return new dc([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,An.fromJSON(t,n.slice),n.insert,!!n.structure)}}Bs.jsonID("replaceAround",Ua);function OV(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 etn(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),p=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=p:i.push(a=new xf(f,p,d[g])));s&&s.to==f?s.to=p:o.push(s=new $m(f,p,r))}}),i.forEach(l=>e.step(l)),o.forEach(l=>e.step(l))}function ttn(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 X3){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 p=0;p<i.length;p++){let m=i[p];m.step==o-1&&d.eq(i[p].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 xf(a.from,a.to,a.style)))}function SX(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 Ca(s,u,An.empty));else{r=d;for(let f=0;f<c.marks.length;f++)n.allowsMarkType(c.marks[f].type)||e.step(new xf(s,u,c.marks[f]));if(i&&c.isText&&n.whitespace!="pre"){let f,p=/\r?\n|\r/g,m;for(;f=p.exec(c.text);)m||(m=new An(en.from(n.schema.text(" ",n.allowedMarks(c.marks))),0,0)),a.push(new Ca(s+f.index,s+f.index+f[0].length,m))}}s=u}if(!r.validEnd){let l=r.fillBefore(en.empty,!0);e.replace(s,s,new An(l,0,0))}for(let l=a.length-1;l>=0;l--)e.step(a[l])}function ntn(e,t,n){return(t==0||e.canReplace(t,e.childCount))&&(n==e.childCount||e.canReplace(0,n))}function iE(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||!ntn(r,i,o))break}return null}function rtn(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=en.empty,d=0;for(let m=o,g=!1;m>n;m--)g||r.index(m)>0?(g=!0,u=en.from(r.node(m).copy(u)),d++):l--;let f=en.empty,p=0;for(let m=o,g=!1;m>n;m--)g||i.after(m+1)<i.end(m)?(g=!0,f=en.from(i.node(m).copy(f)),p++):c++;e.step(new Ua(l,c,a,s,new An(u.append(f),d,p),u.size-d,!0))}function EX(e,t,n=null,r=e){let i=itn(e,t),o=i&&otn(r,t);return o?i.map(Ode).concat({type:t,attrs:n}).concat(o.map(Ode)):null}function Ode(e){return{type:e,attrs:null}}function itn(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 otn(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 atn(e,t,n){let r=en.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=en.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 An(r,0,0),n.length,!0))}function stn(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)&&ltn(e.doc,e.mapping.slice(o).map(s),r)){let c=null;if(r.schema.linebreakReplacement){let p=r.whitespace=="pre",m=!!r.contentMatch.matchType(r.schema.linebreakReplacement);p&&!m?c=!1:!p&&m&&(c=!0)}c===!1&&Ake(e,a,s,o),SX(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 An(en.from(r.create(l,null,a.marks)),0,0),1,!0)),c===!0&&Rke(e,a,s,o),!1}})}function Rke(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 Ake(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 ltn(e,t,n){let r=e.resolve(t),i=r.index();return r.parent.canReplaceWith(i,i+1,n)}function ctn(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 An(en.from(a),0,0),1,!0))}function Ay(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 p=d.content.cutByIndex(f,d.childCount),m=r&&r[u+1];m&&(p=p.replaceChild(0,m.type.create(m.attrs)));let g=r&&r[u]||d;if(!d.canReplace(f+1,d.childCount)||!g.type.validContent(p))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 utn(e,t,n=1,r){let i=e.doc.resolve(t),o=en.empty,a=en.empty;for(let s=i.depth,l=i.depth-n,c=n-1;s>l;s--,c--){o=en.from(i.node(s).copy(o));let u=r&&r[c];a=en.from(u?u.type.create(u.attrs,a):i.node(s).copy(a))}e.step(new Ca(t,t,new An(o.append(a),n,n),!0))}function jg(e,t){let n=e.resolve(t),r=n.index();return Ike(n.nodeBefore,n.nodeAfter)&&n.parent.canReplace(r,r+1)}function dtn(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 Ike(e,t){return!!(e&&t&&!e.isLeaf&&dtn(e,t))}function Z3(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&&Ike(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 ftn(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);Ake(e,u.node(),u.before(),s)}a.inlineContent&&SX(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 Ca(c,l.map(t+n,-1),An.empty,!0)),r===!0){let u=e.doc.resolve(c);Rke(e,u.node(),u.before(),e.steps.length)}return e}function ptn(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 Nke(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 J3(e,t,n=t,r=An.empty){if(t==n&&!r.size)return null;let i=e.resolve(t),o=e.resolve(n);return Mke(i,o,r)?new Ca(t,n,r):new htn(i,o,r).fit()}function Mke(e,t,n){return!n.openStart&&!n.openEnd&&e.start()==t.start()&&e.parent.canReplace(e.index(),t.index(),n.content)}class htn{constructor(t,n,r){this.$from=t,this.$to=n,this.unplaced=r,this.frontier=[],this.placed=en.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=en.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 An(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 Ca(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=G$(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(en.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=G$(t,n);return!i.childCount||i.firstChild.isLeaf?!1:(this.unplaced=new An(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=G$(t,n);if(i.childCount<=1&&n>0){let o=t.size-n<=n+i.size;this.unplaced=new An(HC(t,n-1,1),n-1,o?n-1:r)}else this.unplaced=new An(HC(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 p=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(kke(g.mark(f.allowedMarks(g.marks)),c==1?l:0,c==s.childCount?p:-1)))}let m=c==s.childCount;m||(p=-1),this.placed=jC(this.placed,n,en.from(u)),this.frontier[n].match=d,m&&p<0&&r&&r.type==this.frontier[this.depth].type&&this.frontier.length>1&&this.closeFrontierNode();for(let g=0,v=s;g<p;g++){let y=v.lastChild;this.frontier.push({type:y.type,match:y.contentMatchAt(y.childCount)}),v=y.content}this.unplaced=m?t==0?An.empty:new An(HC(a.content,t-1,1),t-1,p<0?a.openEnd:t-1):new An(HC(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||!W$(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=W$(t,n,i,r,o);if(a){for(let s=n-1;s>=0;s--){let{match:l,type:c}=this.frontier[s],u=W$(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=jC(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=jC(this.placed,this.depth,en.from(t.create(n,r))),this.frontier.push({type:t,match:t.contentMatch})}closeFrontierNode(){let t=this.frontier.pop().match.fillBefore(en.empty,!0);t.childCount&&(this.placed=jC(this.placed,this.frontier.length,t))}}function HC(e,t,n){return t==0?e.cutByIndex(n,e.childCount):e.replaceChild(0,e.firstChild.copy(HC(e.firstChild.content,t-1,n)))}function jC(e,t,n){return t==0?e.append(n):e.replaceChild(e.childCount-1,e.lastChild.copy(jC(e.lastChild.content,t-1,n)))}function G$(e,t){for(let n=0;n<t;n++)e=e.firstChild.content;return e}function kke(e,t,n){if(t<=0)return e;let r=e.content;return t>1&&(r=r.replaceChild(0,kke(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(en.empty,!0)))),e.copy(r)}function W$(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&&!mtn(n,o.content,a)?s:null}function mtn(e,t,n){for(let r=n;r<t.childCount;r++)if(!e.allowsMarks(t.child(r).marks))return!0;return!1}function gtn(e){return e.spec.defining||e.spec.definingForContent}function vtn(e,t,n,r){if(!r.size)return e.deleteRange(t,n);let i=e.doc.resolve(t),o=e.doc.resolve(n);if(Mke(i,o,r))return e.step(new Ca(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,p=i.pos-1;f>0;f--,p--){let m=i.node(f).type.spec;if(m.defining||m.definingAsContext||m.isolating)break;a.indexOf(f)>-1?s=f:i.before(f)==p&&a.splice(1,0,-f)}let l=a.indexOf(s),c=[],u=r.openStart;for(let f=r.content,p=0;;p++){let m=f.firstChild;if(c.push(m),p==r.openStart)break;f=m.content}for(let f=u-1;f>=0;f--){let p=c[f],m=gtn(p.type);if(m&&!p.sameMarkup(i.node(Math.abs(s)-1)))u=f;else if(m||!p.type.isTextblock)break}for(let f=r.openStart;f>=0;f--){let p=(f+u+1)%(r.openStart+1),m=c[p];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 An(Pke(r.content,0,r.openStart,p),p,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 p=a[f];p<0||(t=i.before(p),n=o.after(p))}}function Pke(e,t,n,r,i){if(t<n){let o=e.firstChild;e=e.replaceChild(0,o.copy(Pke(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(en.empty,!0))}return e}function btn(e,t,n,r){if(!r.isInline&&t==n&&e.doc.resolve(t).parent.content.size){let i=ptn(e.doc,t,r.type);i!=null&&(t=n=i)}e.replaceRange(t,n,new An(en.from(r),0,0))}function ytn(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 Iy extends Bs{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 ga.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 ga.fromReplace(t,this.pos,this.pos+1,new An(en.from(i),0,n.isLeaf?0:1))}getMap(){return dc.empty}invert(t){return new Iy(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 Iy(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 Iy(n.pos,n.attr,n.value)}}Bs.jsonID("attr",Iy);class oT extends Bs{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 ga.ok(r)}getMap(){return dc.empty}invert(t){return new oT(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 oT(n.attr,n.value)}}Bs.jsonID("docAttr",oT);let B_=class extends Error{};B_=function e(t){let n=Error.call(this,t);return n.__proto__=e.prototype,n};B_.prototype=Object.create(Error.prototype);B_.prototype.constructor=B_;B_.prototype.name="TransformError";class CX{constructor(t){this.doc=t,this.steps=[],this.docs=[],this.mapping=new Ry}get before(){return this.docs.length?this.docs[0]:this.doc}step(t){let n=this.maybeStep(t);if(n.failed)throw new B_(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=An.empty){let i=J3(this.doc,t,n,r);return i&&this.step(i),this}replaceWith(t,n,r){return this.replace(t,n,new An(en.from(r),0,0))}delete(t,n){return this.replace(t,n,An.empty)}insert(t,n){return this.replaceWith(t,t,n)}replaceRange(t,n,r){return vtn(this,t,n,r),this}replaceRangeWith(t,n,r){return btn(this,t,n,r),this}deleteRange(t,n){return ytn(this,t,n),this}lift(t,n){return rtn(this,t,n),this}join(t,n=1){return ftn(this,t,n),this}wrap(t,n){return atn(this,t,n),this}setBlockType(t,n=t,r,i=null){return stn(this,t,n,r,i),this}setNodeMarkup(t,n,r=null,i){return ctn(this,t,n,r,i),this}setNodeAttribute(t,n,r){return this.step(new Iy(t,n,r)),this}setDocAttribute(t,n){return this.step(new oT(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 F_(t,n)),this}split(t,n=1,r){return utn(this,t,n,r),this}addMark(t,n,r){return etn(this,t,n,r),this}removeMark(t,n,r){return ttn(this,t,n,r),this}clearIncompatible(t,n,r){return SX(this,t,n,r),this}}const q$=Object.create(null);class hr{constructor(t,n,r){this.$anchor=t,this.$head=n,this.ranges=r||[new Lke(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=An.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?An.empty:n),s==0&&Ide(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),Ide(t,r,n.isInline?-1:1))}}static findFrom(t,n,r=!1){let i=t.parent.inlineContent?new Xn(t):Ib(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?Ib(t.node(0),t.node(o),t.before(o+1),t.index(o),n,r):Ib(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 yc(t.node(0))}static atStart(t){return Ib(t,t,0,0,1)||new yc(t)}static atEnd(t){return Ib(t,t,t.content.size,t.childCount,-1)||new yc(t)}static fromJSON(t,n){if(!n||!n.type)throw new RangeError("Invalid input for Selection.fromJSON");let r=q$[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 q$)throw new RangeError("Duplicate use of selection JSON ID "+t);return q$[t]=n,n.prototype.jsonID=t,n}getBookmark(){return Xn.between(this.$anchor,this.$head).getBookmark()}}hr.prototype.visible=!0;class Lke{constructor(t,n){this.$from=t,this.$to=n}}let Rde=!1;function Ade(e){!Rde&&!e.parent.inlineContent&&(Rde=!0,console.warn("TextSelection endpoint not pointing into a node with inline content ("+e.parent.type.name+")"))}class Xn extends hr{constructor(t,n=t){Ade(t),Ade(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 hr.near(r);let i=t.resolve(n.map(this.anchor));return new Xn(i.parent.inlineContent?i:r,r)}replace(t,n=An.empty){if(super.replace(t,n),n==An.empty){let r=this.$from.marksAcross(this.$to);r&&t.ensureMarks(r)}}eq(t){return t instanceof Xn&&t.anchor==this.anchor&&t.head==this.head}getBookmark(){return new e8(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 Xn(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=hr.findFrom(n,r,!0)||hr.findFrom(n,-r,!0);if(o)n=o.$head;else return hr.near(n,r)}return t.parent.inlineContent||(i==0?t=n:(t=(hr.findFrom(t,-r,!0)||hr.findFrom(t,r,!0)).$anchor,t.pos<n.pos!=i<0&&(t=n))),new Xn(t,n)}}hr.jsonID("text",Xn);class e8{constructor(t,n){this.anchor=t,this.head=n}map(t){return new e8(t.map(this.anchor),t.map(this.head))}resolve(t){return Xn.between(t.resolve(this.anchor),t.resolve(this.head))}}class ar extends hr{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?hr.near(o):new ar(o)}content(){return new An(en.from(this.node),0,0)}eq(t){return t instanceof ar&&t.anchor==this.anchor}toJSON(){return{type:"node",anchor:this.anchor}}getBookmark(){return new xX(this.anchor)}static fromJSON(t,n){if(typeof n.anchor!="number")throw new RangeError("Invalid input for NodeSelection.fromJSON");return new ar(t.resolve(n.anchor))}static create(t,n){return new ar(t.resolve(n))}static isSelectable(t){return!t.isText&&t.type.spec.selectable!==!1}}ar.prototype.visible=!1;hr.jsonID("node",ar);class xX{constructor(t){this.anchor=t}map(t){let{deleted:n,pos:r}=t.mapResult(this.anchor);return n?new e8(r,r):new xX(r)}resolve(t){let n=t.resolve(this.anchor),r=n.nodeAfter;return r&&ar.isSelectable(r)?new ar(n):hr.near(n)}}class yc extends hr{constructor(t){super(t.resolve(0),t.resolve(t.content.size))}replace(t,n=An.empty){if(n==An.empty){t.delete(0,t.doc.content.size);let r=hr.atStart(t.doc);r.eq(t.selection)||t.setSelection(r)}else super.replace(t,n)}toJSON(){return{type:"all"}}static fromJSON(t){return new yc(t)}map(t){return new yc(t)}eq(t){return t instanceof yc}getBookmark(){return _tn}}hr.jsonID("all",yc);const _tn={map(){return this},resolve(e){return new yc(e)}};function Ib(e,t,n,r,i,o=!1){if(t.inlineContent)return Xn.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&&ar.isSelectable(s))return ar.create(e,n-(i<0?s.nodeSize:0))}else{let l=Ib(e,s,n+i,i<0?s.childCount:0,i,o);if(l)return l}n+=s.nodeSize*i}return null}function Ide(e,t,n){let r=e.steps.length-1;if(r<t)return;let i=e.steps[r];if(!(i instanceof Ca||i instanceof Ua))return;let o=e.mapping.maps[r],a;o.forEach((s,l,c,u)=>{a==null&&(a=u)}),e.setSelection(hr.near(e.doc.resolve(a),n))}const Nde=1,oA=2,Mde=4;class Stn extends CX{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|Nde)&~oA,this.storedMarks=null,this}get selectionSet(){return(this.updated&Nde)>0}setStoredMarks(t){return this.storedMarks=t,this.updated|=oA,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&oA)>0}addStep(t,n){super.addStep(t,n),this.updated=this.updated&~oA,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(hr.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|=Mde,this}get scrolledIntoView(){return(this.updated&Mde)>0}}function kde(e,t){return!t||!e?e:e.bind(t)}class UC{constructor(t,n,r){this.name=t,this.init=kde(n.init,r),this.apply=kde(n.apply,r)}}const Etn=[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||hr.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 Y${constructor(t,n){this.schema=t,this.plugins=[],this.pluginsByKey=Object.create(null),this.fields=Etn.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 Stn(this)}static create(t){let n=new Y$(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 Y$(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 Y$(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=hr.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 $ke(e,t,n){for(let r in e){let i=e[r];i instanceof Function?i=i.bind(t):r=="handleDOMEvents"&&(i=$ke(i,t,{})),n[r]=i}return n}class Ei{constructor(t){this.spec=t,this.props={},t.props&&$ke(t.props,this,this.props),this.key=t.key?t.key.key:Fke("plugin")}getState(t){return t[this.key]}}const K$=Object.create(null);function Fke(e){return e in K$?e+"$"+ ++K$[e]:(K$[e]=0,e+"$")}class Bi{constructor(t="key"){this.key=Fke(t)}get(t){return t.config.pluginsByKey[this.key]}getState(t){return t[this.key]}}const ts=function(e){for(var t=0;;t++)if(e=e.previousSibling,!e)return t},aT=function(e){let t=e.assignedSlot||e.parentNode;return t&&t.nodeType==11?t.host:t};let RV=null;const Mp=function(e,t,n){let r=RV||(RV=document.createRange());return r.setEnd(e,n??e.nodeValue.length),r.setStart(e,t||0),r},Ctn=function(){RV=null},J1=function(e,t,n,r){return n&&(Pde(e,t,n,r,-1)||Pde(e,t,n,r,1))},xtn=/^(img|br|input|textarea|hr)$/i;function Pde(e,t,n,r,i){for(;;){if(e==n&&t==r)return!0;if(t==(i<0?0:ru(e))){let o=e.parentNode;if(!o||o.nodeType!=1||uO(e)||xtn.test(e.nodeName)||e.contentEditable=="false")return!1;t=ts(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?ru(e):0}else return!1}}function ru(e){return e.nodeType==3?e.nodeValue.length:e.childNodes.length}function wtn(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=ru(e)}else if(e.parentNode&&!uO(e))t=ts(e),e=e.parentNode;else return null}}function Ttn(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&&!uO(e))t=ts(e)+1,e=e.parentNode;else return null}}function Otn(e,t,n){for(let r=t==0,i=t==ru(e);r||i;){if(e==n)return!0;let o=ts(e);if(e=e.parentNode,!e)return!1;r=r&&o==0,i=i&&o==ru(e)}}function uO(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 t8=function(e){return e.focusNode&&J1(e.focusNode,e.focusOffset,e.anchorNode,e.anchorOffset)};function T0(e,t){let n=document.createEvent("Event");return n.initEvent("keydown",!0,!0),n.keyCode=e,n.key=n.code=t,n}function Rtn(e){let t=e.activeElement;for(;t&&t.shadowRoot;)t=t.shadowRoot.activeElement;return t}function Atn(e,t,n){if(e.caretPositionFromPoint)try{let r=e.caretPositionFromPoint(t,n);if(r)return{node:r.offsetNode,offset:Math.min(ru(r.offsetNode),r.offset)}}catch{}if(e.caretRangeFromPoint){let r=e.caretRangeFromPoint(t,n);if(r)return{node:r.startContainer,offset:Math.min(ru(r.startContainer),r.startOffset)}}}const jf=typeof navigator<"u"?navigator:null,Dde=typeof document<"u"?document:null,Ug=jf&&jf.userAgent||"",AV=/Edge\/(\d+)/.exec(Ug),Bke=/MSIE \d/.exec(Ug),IV=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(Ug),Dl=!!(Bke||IV||AV),sg=Bke?document.documentMode:IV?+IV[1]:AV?+AV[1]:0,kd=!Dl&&/gecko\/(\d+)/i.test(Ug);kd&&+(/Firefox\/(\d+)/.exec(Ug)||[0,0])[1];const NV=!Dl&&/Chrome\/(\d+)/.exec(Ug),Is=!!NV,Hke=NV?+NV[1]:0,rl=!Dl&&!!jf&&/Apple Computer/.test(jf.vendor),H_=rl&&(/Mobile\/\w+/.test(Ug)||!!jf&&jf.maxTouchPoints>2),Qc=H_||(jf?/Mac/.test(jf.platform):!1),Itn=jf?/Win/.test(jf.platform):!1,Gp=/Android \d/.test(Ug),dO=!!Dde&&"webkitFontSmoothing"in Dde.documentElement.style,Ntn=dO?+(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent)||[0,0])[1]:0;function Mtn(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 ktn(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 Lde(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=aT(a)){if(a.nodeType!=1)continue;let s=a,l=s==o.body,c=l?Mtn(o):ktn(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,p=s.scrollTop;d&&(s.scrollTop+=d),u&&(s.scrollLeft+=u);let m=s.scrollLeft-f,g=s.scrollTop-p;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 Ptn(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:jke(e.dom)}}function jke(e){let t=[],n=e.ownerDocument;for(let r=e;r&&(t.push({dom:r,top:r.scrollTop,left:r.scrollLeft}),e!=n);r=aT(r));return t}function Dtn({refDOM:e,refTop:t,stack:n}){let r=e?e.getBoundingClientRect().top:0;Uke(n,r==0?0:r-t)}function Uke(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 mb=null;function Ltn(e){if(e.setActive)return e.setActive();if(mb)return e.focus(mb);let t=jke(e);e.focus(mb==null?{get preventScroll(){return mb={preventScroll:!0},!0}}:void 0),mb||(mb=!1,Uke(t,0))}function zke(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=Mp(u).getClientRects();else continue;for(let p=0;p<f.length;p++){let m=f[p];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?$tn(n,i):!n||r&&n.nodeType==1?{node:e,offset:o}:zke(n,i)}function $tn(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=tm(r,1);if(o.top!=o.bottom&&wX(t,o))return{node:e,offset:i+(t.left>=(o.left+o.right)/2?1:0)}}return{node:e,offset:0}}function wX(e,t){return e.left>=t.left-1&&e.left<=t.right+1&&e.top>=t.top-1&&e.top<=t.bottom+1}function Ftn(e,t){let n=e.parentNode;return n&&/^li$/i.test(n.nodeName)&&t.left<e.getBoundingClientRect().left?n:e}function Btn(e,t,n){let{node:r,offset:i}=zke(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 Htn(e,t,n,r){let i=-1;for(let o=t,a=!1;o!=e.dom;){let s=e.docView.nearestDesc(o,!0),l;if(!s)return null;if(s.dom.nodeType==1&&(s.node.isBlock&&s.parent||!s.contentDOM)&&((l=s.dom.getBoundingClientRect()).width||l.height)&&(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 Vke(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(wX(t,c))return Vke(a,t,c)}}if((o=(o+1)%r)==i)break}return e}function jtn(e,t){let n=e.dom.ownerDocument,r,i=0,o=Atn(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(!wX(t,c)||(a=Vke(e.dom,t,c),!a))return null}if(rl)for(let c=a;r&&c;c=aT(c))c.draggable&&(r=void 0);if(a=Ftn(a,t),r){if(kd&&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;dO&&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=Htn(e,r,i,t))}s==null&&(s=Btn(e,a,t));let l=e.docView.nearestDesc(a,!0);return{pos:s,inside:l?l.posAtStart-l.border:-1}}function $de(e){return e.top<e.bottom||e.left<e.right}function tm(e,t){let n=e.getClientRects();if(n.length){let r=n[t<0?0:n.length-1];if($de(r))return r}return Array.prototype.find.call(n,$de)||e.getBoundingClientRect()}const Utn=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/;function Gke(e,t,n){let{node:r,offset:i,atom:o}=e.docView.domFromPos(t,n<0?-1:1),a=dO||kd;if(r.nodeType==3)if(a&&(Utn.test(r.nodeValue)||(n<0?!i:i==r.nodeValue.length))){let s=tm(Mp(r,i,i),n);if(kd&&i&&/\s/.test(r.nodeValue[i-1])&&i<r.nodeValue.length){let l=tm(Mp(r,i-1,i-1),-1);if(l.top==s.top){let c=tm(Mp(r,i,i+1),-1);if(c.top!=s.top)return QE(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++,QE(tm(Mp(r,s,l),c),c<0)}if(!e.state.doc.resolve(t-(o||0)).parent.inlineContent){if(o==null&&i&&(n<0||i==ru(r))){let s=r.childNodes[i-1];if(s.nodeType==1)return Q$(s.getBoundingClientRect(),!1)}if(o==null&&i<ru(r)){let s=r.childNodes[i];if(s.nodeType==1)return Q$(s.getBoundingClientRect(),!0)}return Q$(r.getBoundingClientRect(),n>=0)}if(o==null&&i&&(n<0||i==ru(r))){let s=r.childNodes[i-1],l=s.nodeType==3?Mp(s,ru(s)-(a?0:1)):s.nodeType==1&&(s.nodeName!="BR"||!s.nextSibling)?s:null;if(l)return QE(tm(l,1),!1)}if(o==null&&i<ru(r)){let s=r.childNodes[i];for(;s.pmViewDesc&&s.pmViewDesc.ignoreForCoords;)s=s.nextSibling;let l=s?s.nodeType==3?Mp(s,0,a?0:1):s.nodeType==1?s:null:null;if(l)return QE(tm(l,-1),!0)}return QE(tm(r.nodeType==3?Mp(r):r,-n),n>=0)}function QE(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 Q$(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 Wke(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 ztn(e,t,n){let r=t.selection,i=n=="up"?r.$from:r.$to;return Wke(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=Gke(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=Mp(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 Vtn=/[\u0590-\u08ac]/;function Gtn(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?!Vtn.test(r.parent.textContent)||!s.modify?n=="left"||n=="backward"?o:a:Wke(e,t,()=>{let{focusNode:l,focusOffset:c,anchorNode:u,anchorOffset:d}=e.domSelectionRange(),f=s.caretBidiLevel;s.modify("move",n,"character");let p=r.depth?e.docView.domAfterPos(r.before()):e.dom,{focusNode:m,focusOffset:g}=e.domSelectionRange(),v=m&&!p.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 Fde=null,Bde=null,Hde=!1;function Wtn(e,t,n){return Fde==t&&Bde==n?Hde:(Fde=t,Bde=n,Hde=n=="up"||n=="down"?ztn(e,t,n):Gtn(e,t,n))}const cu=0,jde=1,G0=2,Uf=3;class fO{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>ts(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;)for(let a=0;a<i.children.length;a++){let s=i.children[a];if(s.size){i=s;break}}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 Yke){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 qke&&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?ts(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?ts(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=ts(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=ts(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 p=0,m=0;p<this.children.length;p++){let g=this.children[p],v=m+g.size;if(o>m&&a<v)return g.setSelection(t-m-g.border,n-m-g.border,r,i);m=v}let s=this.domFromPos(t,t?-1:1),l=n==t?s:this.domFromPos(n,n?-1:1),c=r.root.getSelection(),u=r.domSelectionRange(),d=!1;if((kd||rl)&&t==n){let{node:p,offset:m}=s;if(p.nodeType==3){if(d=!!(m&&p.nodeValue[m-1]==`
`),d&&m==p.nodeValue.length)for(let g=p,v;g;g=g.parentNode){if(v=g.nextSibling){v.nodeName=="BR"&&(s=l={node:v.parentNode,offset:ts(v)+1});break}let y=g.pmViewDesc;if(y&&y.node&&y.node.isBlock)break}}else{let g=p.childNodes[m-1];d=g&&(g.nodeName=="BR"||g.contentEditable=="false")}}if(kd&&u.focusNode&&u.focusNode!=l.node&&u.focusNode.nodeType==1){let p=u.focusNode.childNodes[u.focusOffset];p&&p.contentEditable=="false"&&(i=!0)}if(!(i||d&&rl)&&J1(s.node,s.offset,u.anchorNode,u.anchorOffset)&&J1(l.node,l.offset,u.focusNode,u.focusOffset))return;let f=!1;if((c.extend||t==n)&&!d){c.collapse(s.node,s.offset);try{t!=n&&c.extend(l.node,l.offset),f=!0}catch{}}if(!f){if(t>n){let m=s;s=l,l=m}let p=document.createRange();p.setEnd(l.node,l.offset),p.setStart(s.node,s.offset),c.removeAllRanges(),c.addRange(p)}}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?G0:jde,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?G0:Uf}r=a}this.dirty=G0}markParentsDirty(){let t=1;for(let n=this.parent;n;n=n.parent,t++){let r=t==1?G0:jde;n.dirty<r&&(n.dirty=r)}}get domAtom(){return!1}get ignoreForCoords(){return!1}isText(t){return!1}}class qke extends fO{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 qtn extends fO{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 ev extends fO{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=Bv.renderSpec(document,n.type.spec.toDOM(n,r),null,n.attrs)),new ev(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=ev.create(this.parent,this.mark,!0,r),o=this.children,a=this.size;n<a&&(o=kV(o,n,a,r)),t>0&&(o=kV(o,0,t,r));for(let s=0;s<o.length;s++)o[s].parent=i;return i.children=o,i}ignoreMutation(t){return this.spec.ignoreMutation?this.spec.ignoreMutation(t):super.ignoreMutation(t)}destroy(){this.spec.destroy&&this.spec.destroy(),super.destroy()}}class lg extends fO{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}=Bv.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=Xke(u,r,n),c?l=new Ytn(t,n,r,i,u,d||null,f,c,o,a+1):n.isText?new n8(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=()=>en.empty)}return t}matchesNode(t,n,r){return this.dirty==cu&&t.eq(this.node)&&jM(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 Qtn(this,a&&a.node,t);Jtn(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 p;l.findNodeMatch(c,u,d,f)||s&&t.state.selection.from>i&&t.state.selection.to<i+c.nodeSize&&(p=l.findIndexWithChild(o.node))>-1&&l.updateNodeAt(c,u,d,p,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==G0)&&(a&&this.protectLocalComposition(t,a),Kke(this.contentDOM,this.children,t),H_&&enn(this.dom))}localCompositionInfo(t,n){let{from:r,to:i}=t.state.selection;if(!(t.state.selection instanceof Xn)||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=tnn(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 qtn(this,o,n,i);t.input.compositionNodes.push(a),this.children=kV(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(jM(t,this.outerDeco))return;let n=this.nodeDOM.nodeType!=1,r=this.dom;this.dom=Qke(this.dom,this.nodeDOM,MV(this.outerDeco,this.node,n),MV(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 Ude(e,t,n,r,i){Xke(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 n8 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 n8(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 Yke extends fO{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 Ytn 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.root):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 Kke(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=zde(r),i=!0;r=r.nextSibling}else i=!0,e.insertBefore(s,r);if(a instanceof ev){let l=r?r.previousSibling:e.lastChild;Kke(a.contentDOM,a.children,n),r=l?l.nextSibling:e.firstChild}}for(;r;)r=zde(r),i=!0;i&&n.trackWrites==e&&(n.trackWrites=null)}const Cx=function(e){e&&(this.nodeName=e)};Cx.prototype=Object.create(null);const W0=[new Cx];function MV(e,t,n){if(e.length==0)return W0;let r=n?W0[0]:new Cx,i=[r];for(let o=0;o<e.length;o++){let a=e[o].type.attrs;if(a){a.nodeName&&i.push(r=new Cx(a.nodeName));for(let s in a){let l=a[s];l!=null&&(n&&i.length==1&&i.push(r=new Cx(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 Qke(e,t,n,r){if(n==W0&&r==W0)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=W0[0]),i=l}Ktn(i,s||W0[0],a)}return i}function Ktn(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 Xke(e,t,n){return Qke(e,e,W0,MV(t,n,e.nodeType!=1))}function jM(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 zde(e){let t=e.nextSibling;return e.parentNode.removeChild(e),t}class Qtn{constructor(t,n,r){this.lock=n,this.view=r,this.index=0,this.stack=[],this.changed=!1,this.top=t,this.preMatch=Xtn(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=ev.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=G0),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&&jM(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=G0,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)||!jM(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 qke(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 ev;)n=t,t=n.children[n.children.length-1];(!t||!(t instanceof n8)||/\n$/.test(t.node.text)||this.view.requiresGeckoHackNode&&/\s$/.test(t.node.text))&&((rl||Is)&&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 Yke(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 Xtn(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 ev)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 Ztn(e,t){return e.type.side-t.type.side}function Jtn(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(Ztn);for(let v=0;v<d.length;v++)n(d[v],c,!!l)}else n(u,c,!!l);let f,p;if(l)p=-1,f=l,l=null;else if(c<e.childCount)p=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,p=-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),p),o=m}}function enn(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 tnn(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 kV(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 TX(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(t8(n)){for(l=a;i&&!i.node;)i=i.parent;let d=i.node;if(i&&d.isAtom&&ar.isSelectable(d)&&i.parent&&!(d.isInline&&Otn(n.focusNode,n.focusOffset,i.dom))){let f=i.posBefore;c=new ar(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 p=0;p<n.rangeCount;p++){let m=n.getRangeAt(p);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=OX(e,u,s,d)}return c}function Zke(e){return e.editable?e.hasFocus():e5e(e)&&document.activeElement&&document.activeElement.contains(e.dom)}function Jp(e,t=!1){let n=e.state.selection;if(Jke(e,n),!!Zke(e)){if(!t&&e.input.mouseDown&&e.input.mouseDown.allowDefault&&Is){let r=e.domSelectionRange(),i=e.domObserver.currentSelection;if(r.anchorNode&&i.anchorNode&&J1(r.anchorNode,r.anchorOffset,i.anchorNode,i.anchorOffset)){e.input.mouseDown.delayedSelectionSync=!0,e.domObserver.setCurSelection();return}}if(e.domObserver.disconnectSelection(),e.cursorWrapper)rnn(e);else{let{anchor:r,head:i}=n,o,a;Vde&&!(n instanceof Xn)&&(n.$from.parent.inlineContent||(o=Gde(e,n.from)),!n.empty&&!n.$from.parent.inlineContent&&(a=Gde(e,n.to))),e.docView.setSelection(r,i,e,t),Vde&&(o&&Wde(o),a&&Wde(a)),n.visible?e.dom.classList.remove("ProseMirror-hideselection"):(e.dom.classList.add("ProseMirror-hideselection"),"onselectionchange"in document&&nnn(e))}e.domObserver.setCurSelection(),e.domObserver.connectSelection()}}const Vde=rl||Is&&Hke<63;function Gde(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(rl&&i&&i.contentEditable=="false")return X$(i);if((!i||i.contentEditable=="false")&&(!o||o.contentEditable=="false")){if(i)return X$(i);if(o)return X$(o)}}function X$(e){return e.contentEditable="true",rl&&e.draggable&&(e.draggable=!1,e.wasDraggable=!0),e}function Wde(e){e.contentEditable="false",e.wasDraggable&&(e.draggable=!0,e.wasDraggable=null)}function nnn(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(()=>{(!Zke(e)||e.state.selection.visible)&&e.dom.classList.remove("ProseMirror-hideselection")},20))})}function rnn(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,ts(r)+1):n.setStart(r,0),n.collapse(!0),t.removeAllRanges(),t.addRange(n),!i&&!e.state.selection.visible&&Dl&&sg<=11&&(r.disabled=!0,r.disabled=!1)}function Jke(e,t){if(t instanceof ar){let n=e.docView.descAt(t.from);n!=e.lastSelectedViewDesc&&(qde(e),n&&n.selectNode(),e.lastSelectedViewDesc=n)}else qde(e)}function qde(e){e.lastSelectedViewDesc&&(e.lastSelectedViewDesc.parent&&e.lastSelectedViewDesc.deselectNode(),e.lastSelectedViewDesc=void 0)}function OX(e,t,n,r){return e.someProp("createSelectionBetween",i=>i(e,t,n))||Xn.between(t,n,r)}function Yde(e){return e.editable&&!e.hasFocus()?!1:e5e(e)}function e5e(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 inn(e){let t=e.docView.domFromPos(e.state.selection.anchor,0),n=e.domSelectionRange();return J1(t.node,t.offset,n.anchorNode,n.anchorOffset)}function PV(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&&hr.findFrom(o,t)}function cm(e,t){return e.dispatch(e.state.tr.setSelection(t).scrollIntoView()),!0}function Kde(e,t,n){let r=e.state.selection;if(r instanceof Xn)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 cm(e,new Xn(r.$anchor,a))}else if(r.empty){if(e.endOfTextblock(t>0?"forward":"backward")){let i=PV(e.state,t);return i&&i instanceof ar?cm(e,i):!1}else if(!(Qc&&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?ar.isSelectable(o)?cm(e,new ar(t<0?e.state.doc.resolve(i.pos-o.nodeSize):i)):dO?cm(e,new Xn(e.state.doc.resolve(t<0?s:s+o.nodeSize))):!1:!1}}else return!1;else{if(r instanceof ar&&r.node.isInline)return cm(e,new Xn(t>0?r.$to:r.$from));{let i=PV(e.state,t);return i?cm(e,i):!1}}}function UM(e){return e.nodeType==3?e.nodeValue.length:e.childNodes.length}function xx(e,t){let n=e.pmViewDesc;return n&&n.size==0&&(t<0||e.nextSibling||e.nodeName!="BR")}function gb(e,t){return t<0?onn(e):ann(e)}function onn(e){let t=e.domSelectionRange(),n=t.focusNode,r=t.focusOffset;if(!n)return;let i,o,a=!1;for(kd&&n.nodeType==1&&r<UM(n)&&xx(n.childNodes[r],-1)&&(a=!0);;)if(r>0){if(n.nodeType!=1)break;{let s=n.childNodes[r-1];if(xx(s,-1))i=n,o=--r;else if(s.nodeType==3)n=s,r=n.nodeValue.length;else break}}else{if(t5e(n))break;{let s=n.previousSibling;for(;s&&xx(s,-1);)i=n.parentNode,o=ts(s),s=s.previousSibling;if(s)n=s,r=UM(n);else{if(n=n.parentNode,n==e.dom)break;r=0}}}a?DV(e,n,r):i&&DV(e,i,o)}function ann(e){let t=e.domSelectionRange(),n=t.focusNode,r=t.focusOffset;if(!n)return;let i=UM(n),o,a;for(;;)if(r<i){if(n.nodeType!=1)break;let s=n.childNodes[r];if(xx(s,1))o=n,a=++r;else break}else{if(t5e(n))break;{let s=n.nextSibling;for(;s&&xx(s,1);)o=s.parentNode,a=ts(s)+1,s=s.nextSibling;if(s)n=s,r=0,i=UM(n);else{if(n=n.parentNode,n==e.dom)break;r=i=0}}}o&&DV(e,o,a)}function t5e(e){let t=e.pmViewDesc;return t&&t.node&&t.node.isBlock}function snn(e,t){for(;e&&t==e.childNodes.length&&!uO(e);)t=ts(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 lnn(e,t){for(;e&&!t&&!uO(e);)t=ts(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 DV(e,t,n){if(t.nodeType!=3){let o,a;(a=snn(t,n))?(t=a,n=0):(o=lnn(t,n))&&(t=o,n=o.nodeValue.length)}let r=e.domSelection();if(!r)return;if(t8(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&&Jp(e)},50)}function Qde(e,t){let n=e.state.doc.resolve(t);if(!(Is||Itn)&&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 Xde(e,t,n){let r=e.state.selection;if(r instanceof Xn&&!r.empty||n.indexOf("s")>-1||Qc&&n.indexOf("m")>-1)return!1;let{$from:i,$to:o}=r;if(!i.parent.inlineContent||e.endOfTextblock(t<0?"up":"down")){let a=PV(e.state,t);if(a&&a instanceof ar)return cm(e,a)}if(!i.parent.inlineContent){let a=t<0?i:o,s=r instanceof yc?hr.near(a,t):hr.findFrom(a,t);return s?cm(e,s):!1}return!1}function Zde(e,t){if(!(e.state.selection instanceof Xn))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 Jde(e,t,n){e.domObserver.stop(),t.contentEditable=n,e.domObserver.start()}function cnn(e){if(!rl||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;Jde(e,r,"true"),setTimeout(()=>Jde(e,r,"false"),20)}return!1}function unn(e){let t="";return e.ctrlKey&&(t+="c"),e.metaKey&&(t+="m"),e.altKey&&(t+="a"),e.shiftKey&&(t+="s"),t}function dnn(e,t){let n=t.keyCode,r=unn(t);if(n==8||Qc&&n==72&&r=="c")return Zde(e,-1)||gb(e,-1);if(n==46&&!t.shiftKey||Qc&&n==68&&r=="c")return Zde(e,1)||gb(e,1);if(n==13||n==27)return!0;if(n==37||Qc&&n==66&&r=="c"){let i=n==37?Qde(e,e.state.selection.from)=="ltr"?-1:1:-1;return Kde(e,i,r)||gb(e,i)}else if(n==39||Qc&&n==70&&r=="c"){let i=n==39?Qde(e,e.state.selection.from)=="ltr"?1:-1:1;return Kde(e,i,r)||gb(e,i)}else{if(n==38||Qc&&n==80&&r=="c")return Xde(e,-1,r)||gb(e,-1);if(n==40||Qc&&n==78&&r=="c")return cnn(e)||Xde(e,1,r)||gb(e,1);if(r==(Qc?"m":"c")&&(n==66||n==73||n==89||n==90))return!0}return!1}function n5e(e,t){e.someProp("transformCopied",p=>{t=p(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 p=r.firstChild;n.push(p.type.name,p.attrs!=p.type.defaultAttrs?p.attrs:null),r=p.content}let a=e.someProp("clipboardSerializer")||Bv.fromSchema(e.state.schema),s=l5e(),l=s.createElement("div");l.appendChild(a.serializeFragment(r,{document:s}));let c=l.firstChild,u,d=0;for(;c&&c.nodeType==1&&(u=s5e[c.nodeName.toLowerCase()]);){for(let p=u.length-1;p>=0;p--){let m=s.createElement(u[p]);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",p=>p(t,e))||t.content.textBetween(0,t.content.size,`
`);return{dom:l,text:f,slice:t}}function r5e(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 An(en.from(e.state.schema.text(t.replace(/\r\n?/g,`
`))),0,0):An.empty;let d=e.someProp("clipboardTextParser",f=>f(t,i,r,e));if(d)s=d;else{let f=i.marks(),{schema:p}=e.state,m=Bv.fromSchema(p);a=document.createElement("div"),t.split(/(?:\r\n?|\n)+/).forEach(g=>{let v=a.appendChild(document.createElement("p"));g&&v.appendChild(m.serializeNode(p.text(g,f)))})}}else e.someProp("transformPastedHTML",d=>{n=d(n,e)}),a=mnn(n),dO&&gnn(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")||Oy.fromSchema(e.state.schema)).parseSlice(a,{preserveWhitespace:!!(l||u),context:i,ruleFromNode(d){return d.nodeName=="BR"&&!d.nextSibling&&d.parentNode&&!fnn.test(d.parentNode.nodeName)?{ignore:!0}:null}})),u)s=vnn(efe(s,+u[1],+u[2]),u[4]);else if(s=An.maxOpen(pnn(s.content,i),!0),s.openStart||s.openEnd){let d=0,f=0;for(let p=s.content.firstChild;d<s.openStart&&!p.type.spec.isolating;d++,p=p.firstChild);for(let p=s.content.lastChild;f<s.openEnd&&!p.type.spec.isolating;f++,p=p.lastChild);s=efe(s,d,f)}return e.someProp("transformPasted",d=>{s=d(s,e)}),s}const fnn=/^(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 pnn(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&&o5e(s,i,a,o[o.length-1],0))o[o.length-1]=l;else{o.length&&(o[o.length-1]=a5e(o[o.length-1],i.length));let c=i5e(a,s);o.push(c),r=r.matchType(c.type),i=s}}),o)return en.from(o)}return e}function i5e(e,t,n=0){for(let r=t.length-1;r>=n;r--)e=t[r].create(null,en.from(e));return e}function o5e(e,t,n,r,i){if(i<e.length&&i<t.length&&e[i]==t[i]){let o=o5e(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(en.from(i5e(n,e,i+1))))}}function a5e(e,t){if(t==0)return e;let n=e.content.replaceChild(e.childCount-1,a5e(e.lastChild,t-1)),r=e.contentMatchAt(e.childCount).fillBefore(en.empty,!0);return e.copy(n.append(r))}function LV(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=LV(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(en.empty,!0))),e.replaceChild(t<0?0:e.childCount-1,a.copy(s))}function efe(e,t,n){return t<e.openStart&&(e=new An(LV(e.content,-1,t,e.openStart,0,e.openEnd),t,e.openEnd)),n<e.openEnd&&(e=new An(LV(e.content,1,n,e.openEnd,0,0),e.openStart,n)),e}const s5e={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 tfe=null;function l5e(){return tfe||(tfe=document.implementation.createHTMLDocument("title"))}let Z$=null;function hnn(e){let t=window.trustedTypes;return t?(Z$||(Z$=t.createPolicy("ProseMirrorClipboard",{createHTML:n=>n})),Z$.createHTML(e)):e}function mnn(e){let t=/^(\s*<meta [^>]*>)*/.exec(e);t&&(e=e.slice(t[0].length));let n=l5e().createElement("div"),r=/<([a-z][^>\s]+)/i.exec(e),i;if((i=r&&s5e[r[1].toLowerCase()])&&(e=i.map(o=>"<"+o+">").join("")+e+i.map(o=>"</"+o+">").reverse().join("")),n.innerHTML=hnn(e),i)for(let o=0;o<i.length;o++)n=n.querySelector(i[o])||n;return n}function gnn(e){let t=e.querySelectorAll(Is?"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 vnn(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=en.from(l.create(r[s+1],i)),o++,a++}return new An(i,o,a)}const il={},ol={},bnn={touchstart:!0,touchmove:!0};class ynn{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.lastChromeDelete=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 _nn(e){for(let t in il){let n=il[t];e.dom.addEventListener(t,e.input.eventHandlers[t]=r=>{Enn(e,r)&&!RX(e,r)&&(e.editable||!(r.type in ol))&&n(e,r)},bnn[t]?{passive:!0}:void 0)}rl&&e.dom.addEventListener("input",()=>null),$V(e)}function Bm(e,t){e.input.lastSelectionOrigin=t,e.input.lastSelectionTime=Date.now()}function Snn(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 $V(e){e.someProp("handleDOMEvents",t=>{for(let n in t)e.input.eventHandlers[n]||e.dom.addEventListener(n,e.input.eventHandlers[n]=r=>RX(e,r))})}function RX(e,t){return e.someProp("handleDOMEvents",n=>{let r=n[t.type];return r?r(e,t)||t.defaultPrevented:!1})}function Enn(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 Cnn(e,t){!RX(e,t)&&il[t.type]&&(e.editable||!(t.type in ol))&&il[t.type](e,t)}ol.keydown=(e,t)=>{let n=t;if(e.input.shiftKey=n.keyCode==16||n.shiftKey,!u5e(e,n)&&(e.input.lastKeyCode=n.keyCode,e.input.lastKeyCodeTime=Date.now(),!(Gp&&Is&&n.keyCode==13)))if(n.keyCode!=229&&e.domObserver.forceFlush(),H_&&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,T0(13,"Enter"))),e.input.lastIOSEnter=0)},200)}else e.someProp("handleKeyDown",r=>r(e,n))||dnn(e,n)?n.preventDefault():Bm(e,"key")};ol.keyup=(e,t)=>{t.keyCode==16&&(e.input.shiftKey=!1)};ol.keypress=(e,t)=>{let n=t;if(u5e(e,n)||!n.charCode||n.ctrlKey&&!n.altKey||Qc&&n.metaKey)return;if(e.someProp("handleKeyPress",i=>i(e,n))){n.preventDefault();return}let r=e.state.selection;if(!(r instanceof Xn)||!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 r8(e){return{left:e.clientX,top:e.clientY}}function xnn(e,t){let n=t.x-e.clientX,r=t.y-e.clientY;return n*n+r*r<100}function AX(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 Ny(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 wnn(e,t){if(t==-1)return!1;let n=e.state.doc.resolve(t),r=n.nodeAfter;return r&&r.isAtom&&ar.isSelectable(r)?(Ny(e,new ar(n)),!0):!1}function Tnn(e,t){if(t==-1)return!1;let n=e.state.selection,r,i;n instanceof ar&&(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(ar.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?(Ny(e,ar.create(e.state.doc,i)),!0):!1}function Onn(e,t,n,r,i){return AX(e,"handleClickOn",t,n,r)||e.someProp("handleClick",o=>o(e,t,r))||(i?Tnn(e,n):wnn(e,n))}function Rnn(e,t,n,r){return AX(e,"handleDoubleClickOn",t,n,r)||e.someProp("handleDoubleClick",i=>i(e,t,r))}function Ann(e,t,n,r){return AX(e,"handleTripleClickOn",t,n,r)||e.someProp("handleTripleClick",i=>i(e,t,r))||Inn(e,n,r)}function Inn(e,t,n){if(n.button!=0)return!1;let r=e.state.doc;if(t==-1)return r.inlineContent?(Ny(e,Xn.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)Ny(e,Xn.create(r,s+1,s+1+a.content.size));else if(ar.isSelectable(a))Ny(e,ar.create(r,s));else continue;return!0}}function IX(e){return zM(e)}const c5e=Qc?"metaKey":"ctrlKey";il.mousedown=(e,t)=>{let n=t;e.input.shiftKey=n.shiftKey;let r=IX(e),i=Date.now(),o="singleClick";i-e.input.lastClick.time<500&&xnn(n,e.input.lastClick)&&!n[c5e]&&(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(r8(n));a&&(o=="singleClick"?(e.input.mouseDown&&e.input.mouseDown.done(),e.input.mouseDown=new Nnn(e,a,n,!!r)):(o=="doubleClick"?Rnn:Ann)(e,a.pos,a.inside,n)?n.preventDefault():Bm(e,"pointer"))};class Nnn{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[c5e],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 ar&&c.from<=a&&c.to>a)&&(this.mightDrag={node:o,pos:a,addAttr:!!(this.target&&!this.target.draggable),setUneditable:!!(this.target&&kd&&!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(()=>Jp(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(r8(t))),this.updateAllowDefault(t),this.allowDefault||!n?Bm(this.view,"pointer"):Onn(this.view,n.pos,n.inside,t,this.selectNode)?t.preventDefault():t.button==0&&(this.flushed||rl&&this.mightDrag&&!this.mightDrag.node.isAtom||Is&&!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)?(Ny(this.view,hr.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)}}il.touchstart=e=>{e.input.lastTouch=Date.now(),IX(e),Bm(e,"pointer")};il.touchmove=e=>{e.input.lastTouch=Date.now(),Bm(e,"pointer")};il.contextmenu=e=>IX(e);function u5e(e,t){return e.composing?!0:rl&&Math.abs(t.timeStamp-e.input.compositionEndedAt)<500?(e.input.compositionEndedAt=-2e8,!0):!1}const Mnn=Gp?5e3:-1;ol.compositionstart=ol.compositionupdate=e=>{if(!e.composing){e.domObserver.flush();let{state:t}=e,n=t.selection.$to;if(t.selection instanceof Xn&&(t.storedMarks||!n.textOffset&&n.parentOffset&&n.nodeBefore.marks.some(r=>r.type.spec.inclusive===!1)))e.markCursor=e.state.storedMarks||n.marks(),zM(e,!0),e.markCursor=null;else if(zM(e,!t.selection.empty),kd&&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}d5e(e,Mnn)};ol.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++,d5e(e,20))};function d5e(e,t){clearTimeout(e.input.composingTimeout),t>-1&&(e.input.composingTimeout=setTimeout(()=>zM(e),t))}function f5e(e){for(e.composing&&(e.input.composing=!1,e.input.compositionEndedAt=Pnn());e.input.compositionNodes.length>0;)e.input.compositionNodes.pop().markParentsDirty()}function knn(e){let t=e.domSelectionRange();if(!t.focusNode)return null;let n=wtn(t.focusNode,t.focusOffset),r=Ttn(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 Pnn(){let e=document.createEvent("Event");return e.initEvent("event",!0,!0),e.timeStamp}function zM(e,t=!1){if(!(Gp&&e.domObserver.flushingSoon>=0)){if(e.domObserver.forceFlush(),f5e(e),t||e.docView&&e.docView.dirty){let n=TX(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 Dnn(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 sT=Dl&&sg<15||H_&&Ntn<604;il.copy=ol.cut=(e,t)=>{let n=t,r=e.state.selection,i=n.type=="cut";if(r.empty)return;let o=sT?null:n.clipboardData,a=r.content(),{dom:s,text:l}=n5e(e,a);o?(n.preventDefault(),o.clearData(),o.setData("text/html",s.innerHTML),o.setData("text/plain",l)):Dnn(e,s),i&&e.dispatch(e.state.tr.deleteSelection().scrollIntoView().setMeta("uiEvent","cut"))};function Lnn(e){return e.openStart==0&&e.openEnd==0&&e.content.childCount==1?e.content.firstChild:null}function $nn(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?lT(e,r.value,null,i,t):lT(e,r.textContent,r.innerHTML,i,t)},50)}function lT(e,t,n,r,i){let o=r5e(e,t,n,r,e.state.selection.$from);if(e.someProp("handlePaste",l=>l(e,i,o||An.empty)))return!0;if(!o)return!1;let a=Lnn(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 p5e(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," "):""}ol.paste=(e,t)=>{let n=t;if(e.composing&&!Gp)return;let r=sT?null:n.clipboardData,i=e.input.shiftKey&&e.input.lastKeyCode!=45;r&&lT(e,p5e(r),r.getData("text/html"),i,n)?n.preventDefault():$nn(e,n)};class h5e{constructor(t,n,r){this.slice=t,this.move=n,this.node=r}}const m5e=Qc?"altKey":"ctrlKey";il.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(r8(n)),a;if(!(o&&o.pos>=i.from&&o.pos<=(i instanceof ar?i.to-1:i.to))){if(r&&r.mightDrag)a=ar.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=ar.create(e.state.doc,d.posBefore))}}let s=(a||e.state.selection).content(),{dom:l,text:c,slice:u}=n5e(e,s);(!n.dataTransfer.files.length||!Is||Hke>120)&&n.dataTransfer.clearData(),n.dataTransfer.setData(sT?"Text":"text/html",l.innerHTML),n.dataTransfer.effectAllowed="copyMove",sT||n.dataTransfer.setData("text/plain",c),e.dragging=new h5e(u,!n[m5e],a)};il.dragend=e=>{let t=e.dragging;window.setTimeout(()=>{e.dragging==t&&(e.dragging=null)},50)};ol.dragover=ol.dragenter=(e,t)=>t.preventDefault();ol.drop=(e,t)=>{let n=t,r=e.dragging;if(e.dragging=null,!n.dataTransfer)return;let i=e.posAtCoords(r8(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=r5e(e,p5e(n.dataTransfer),sT?null:n.dataTransfer.getData("text/html"),!1,o);let s=!!(r&&!n[m5e]);if(e.someProp("handleDrop",m=>m(e,n,a||An.empty,s))){n.preventDefault();return}if(!a)return;n.preventDefault();let l=a?Nke(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 p=c.doc.resolve(u);if(d&&ar.isSelectable(a.content.firstChild)&&p.nodeAfter&&p.nodeAfter.sameMarkup(a.content.firstChild))c.setSelection(new ar(p));else{let m=c.mapping.map(l);c.mapping.maps[c.mapping.maps.length-1].forEach((g,v,y,b)=>m=b),c.setSelection(OX(e,p,c.doc.resolve(m)))}e.focus(),e.dispatch(c.setMeta("uiEvent","drop"))};il.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())&&Jp(e)},20))};il.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)};il.beforeinput=(e,t)=>{if(Is&&Gp&&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,T0(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 ol)il[e]=ol[e];function cT(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 VM{constructor(t,n){this.toDOM=t,this.spec=n||S1,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 ra(o-r,o-r,this)}valid(){return!0}eq(t){return this==t||t instanceof VM&&(this.spec.key&&this.spec.key==t.spec.key||this.toDOM==t.toDOM&&cT(this.spec,t.spec))}destroy(t){this.spec.destroy&&this.spec.destroy(t)}}class cg{constructor(t,n){this.attrs=t,this.spec=n||S1}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 ra(o,a,this)}valid(t,n){return n.from<n.to}eq(t){return this==t||t instanceof cg&&cT(this.attrs,t.attrs)&&cT(this.spec,t.spec)}static is(t){return t.type instanceof cg}destroy(){}}class NX{constructor(t,n){this.attrs=t,this.spec=n||S1}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 ra(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 NX&&cT(this.attrs,t.attrs)&&cT(this.spec,t.spec)}destroy(){}}class ra{constructor(t,n,r){this.from=t,this.to=n,this.type=r}copy(t,n){return new ra(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 ra(t,t,new VM(n,r))}static inline(t,n,r,i){return new ra(t,n,new cg(r,i))}static node(t,n,r,i){return new ra(t,n,new NX(r,i))}get spec(){return this.type.spec}get inline(){return this.type instanceof cg}get widget(){return this.type instanceof VM}}const Nb=[],S1={};class xi{constructor(t,n){this.local=t.length?t:Nb,this.children=n.length?n:Nb}static create(t,n){return n.length?GM(n,t,0,S1):_s}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==_s||t.maps.length==0?this:this.mapInner(t,n,0,0,r||S1)}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?Fnn(this.children,a||[],t,n,r,i,o):a?new xi(a.sort(E1),Nb):_s}add(t,n){return n.length?this==_s?xi.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=v5e(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,GM(u,s,c+1,S1)),o+=3}});let a=g5e(o?b5e(n):n,-r);for(let s=0;s<a.length;s++)a[s].type.valid(t,a[s])||a.splice(s--,1);return new xi(a.length?this.local.concat(a).sort(E1):this.local,i||this.children)}remove(t){return t.length==0||this==_s?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!=_s?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 xi(i,r):_s}forChild(t,n){if(this==_s)return this;if(n.isLeaf)return xi.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 xi(i.sort(E1),Nb);return r?new gm([s,r]):s}return r||_s}eq(t){if(this==t)return!0;if(!(t instanceof xi)||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 MX(this.localsInner(t))}localsInner(t){if(this==_s)return Nb;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)}}xi.empty=new xi([],[]);xi.removeOverlap=MX;const _s=xi.empty;class gm{constructor(t){this.members=t}map(t,n){const r=this.members.map(i=>i.map(t,n,S1));return gm.from(r)}forChild(t,n){if(n.isLeaf)return xi.empty;let r=[];for(let i=0;i<this.members.length;i++){let o=this.members[i].forChild(t,n);o!=_s&&(o instanceof gm?r=r.concat(o.members):r.push(o))}return gm.from(r)}eq(t){if(!(t instanceof gm)||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?MX(r?n:n.sort(E1)):Nb}static from(t){switch(t.length){case 0:return _s;case 1:return t[0];default:return new gm(t.every(n=>n instanceof xi)?t:t.reduce((n,r)=>n.concat(r instanceof xi?r:r.members),[]))}}forEachSet(t){for(let n=0;n<this.members.length;n++)this.members[n].forEachSet(t)}}function Fnn(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,p,m,g)=>{let v=g-m-(p-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;p>=_?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),p=f-i,{index:m,offset:g}=r.content.findIndex(d),v=r.maybeChild(m);if(v&&g==d&&g+v.nodeSize==p){let y=s[c+2].mapInner(n,v,u+1,e[c]+o+1,a);y!=_s?(s[c]=d,s[c+1]=p,s[c+2]=y):(s[c+1]=-2,l=!0)}else l=!0}if(l){let c=Bnn(s,e,t,n,i,o,a),u=GM(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 p=u.children[d];for(;f<s.length&&s[f]<p;)f+=3;s.splice(f,0,u.children[d],u.children[d+1],u.children[d+2])}}return new xi(t.sort(E1),s)}function g5e(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 ra(i.from+t,i.to+t,i.type))}return n}function Bnn(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 v5e(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 b5e(e){let t=[];for(let n=0;n<e.length;n++)e[n]!=null&&t.push(e[n]);return t}function GM(e,t,n,r){let i=[],o=!1;t.forEach((s,l)=>{let c=v5e(e,s,l+n);if(c){o=!0;let u=GM(c,s,n+l+1,r);u!=_s&&i.push(l,l+s.nodeSize,u)}});let a=g5e(o?b5e(e):e,-n).sort(E1);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 xi(a,i):_s}function E1(e,t){return e.from-t.from||e.to-t.to}function MX(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),nfe(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),nfe(t,i,r.copy(o.from,r.to)));break}}}return t}function nfe(e,t,n){for(;t<e.length&&E1(n,e[t])>0;)t++;e.splice(t,0,n)}function J$(e){let t=[];return e.someProp("decorations",n=>{let r=n(e.state);r&&r!=_s&&t.push(r)}),e.cursorWrapper&&t.push(xi.create(e.state.doc,[e.cursorWrapper.deco])),gm.from(t)}const Hnn={childList:!0,characterData:!0,characterDataOldValue:!0,attributes:!0,attributeOldValue:!0,subtree:!0},jnn=Dl&&sg<=11;class Unn{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 znn{constructor(t,n){this.view=t,this.handleDOMChange=n,this.queue=[],this.flushingSoon=-1,this.observer=null,this.currentSelection=new Unn,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]);Dl&&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()}),jnn&&(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,Hnn)),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(Yde(this.view)){if(this.suppressingSelectionUpdates)return Jp(this.view);if(Dl&&sg<=11&&!this.view.state.selection.empty){let t=this.view.domSelectionRange();if(t.focusNode&&J1(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=aT(o))n.add(o);for(let o=t.anchorNode;o;o=aT(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)&&Yde(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(kd&&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 p=f.parentNode;p&&p.nodeName=="LI"&&(!d||Wnn(t,d)!=p)&&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&&t8(r)&&(c=TX(t))&&c.eq(hr.near(t.state.doc.resolve(0),1))?(t.input.lastFocus=0,Jp(t),this.currentSelection.set(r),t.scrollToSelection()):(o>-1||i)&&(o>-1&&(t.docView.markDirty(o,a),Vnn(t)),this.handleDOMChange(o,a,s,l),t.docView&&t.docView.dirty?t.updateState(t.state):this.currentSelection.eq(r)||Jp(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(Dl&&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?ts(i)+1:0,s=r.localPosFromDOM(t.target,a,-1),l=o&&o.parentNode==t.target?ts(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 rfe=new WeakMap,ife=!1;function Vnn(e){if(!rfe.has(e)&&(rfe.set(e,null),["normal","nowrap","pre-line"].indexOf(getComputedStyle(e.dom).whiteSpace)!==-1)){if(e.requiresGeckoHackNode=kd,ife)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."),ife=!0}}function ofe(e,t){let n=t.startContainer,r=t.startOffset,i=t.endContainer,o=t.endOffset,a=e.domAtPos(e.state.selection.anchor);return J1(a.node,a.offset,i,o)&&([n,r,i,o]=[i,o,n,r]),{anchorNode:n,anchorOffset:r,focusNode:i,focusOffset:o}}function Gnn(e,t){if(t.getComposedRanges){let i=t.getComposedRanges(e.root)[0];if(i)return ofe(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?ofe(e,n):null}function Wnn(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 qnn(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}],t8(l)||c.push({node:l.focusNode,offset:l.focusOffset})),Is&&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")||Oy.fromSchema(e.state.schema),p=d.resolve(a),m=null,g=f.parse(r,{topNode:p.parent,topMatch:p.parent.contentMatchAt(p.index()),topOpen:!0,from:i,to:o,preserveWhitespace:p.parent.type.whitespace=="pre"?"full":!0,findPositions:c,ruleFromNode:Ynn,context:p});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 Ynn(e){let t=e.pmViewDesc;if(t)return t.parseRule();if(e.nodeName=="BR"&&e.parentNode){if(rl&&/^(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||rl&&/^(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 Knn=/^(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 Qnn(e,t,n,r,i){let o=e.input.compositionPendingChanges||(e.composing?e.input.compositionID:0);if(e.input.compositionPendingChanges=0,t<0){let O=e.input.lastSelectionTime>Date.now()-50?e.input.lastSelectionOrigin:null,T=TX(e,O);if(T&&!e.state.selection.eq(T)){if(Is&&Gp&&e.input.lastKeyCode===13&&Date.now()-100<e.input.lastKeyCodeTime&&e.someProp("handleKeyDown",I=>I(e,T0(13,"Enter"))))return;let A=e.state.tr.setSelection(T);O=="pointer"?A.setMeta("pointer",!0):O=="key"&&A.scrollIntoView(),o&&A.setMeta("composition",o),e.dispatch(A)}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=qnn(e,t,n),u=e.state.doc,d=u.slice(c.from,c.to),f,p;e.input.lastKeyCode===8&&Date.now()-100<e.input.lastKeyCodeTime?(f=e.state.selection.to,p="end"):(f=e.state.selection.from,p="start"),e.input.lastKeyCode=null;let m=Jnn(d.content,c.doc.content,c.from,f,p);if(m&&e.input.domChangeCount++,(H_&&e.input.lastIOSEnter>Date.now()-225||Gp)&&i.some(O=>O.nodeType==1&&!Knn.test(O.nodeName))&&(!m||m.endA>=m.endB)&&e.someProp("handleKeyDown",O=>O(e,T0(13,"Enter")))){e.input.lastIOSEnter=0;return}if(!m)if(r&&l instanceof Xn&&!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 O=afe(e,e.state.doc,c.sel);if(O&&!O.eq(e.state.selection)){let T=e.state.tr.setSelection(O);o&&T.setMeta("composition",o),e.dispatch(T)}}return}e.state.selection.from<e.state.selection.to&&m.start==m.endB&&e.state.selection instanceof Xn&&(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)),Dl&&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((H_&&e.input.lastIOSEnter>Date.now()-225&&(!b||i.some(O=>O.nodeName=="DIV"||O.nodeName=="P"))||!b&&g.pos<c.doc.content.size&&!g.sameParent(v)&&(_=hr.findFrom(c.doc.resolve(g.pos+1),1,!0))&&_.head==v.pos)&&e.someProp("handleKeyDown",O=>O(e,T0(13,"Enter")))){e.input.lastIOSEnter=0;return}if(e.state.selection.anchor>m.start&&Znn(u,m.start,m.endA,g,v)&&e.someProp("handleKeyDown",O=>O(e,T0(8,"Backspace")))){Gp&&Is&&e.domObserver.suppressSelectionUpdates();return}Is&&m.endB==m.start&&(e.input.lastChromeDelete=Date.now()),Gp&&!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(O){return O(e,T0(13,"Enter"))})},20));let S=m.start,x=m.endA,E,C,w;if(b){if(g.pos==v.pos)Dl&&sg<=11&&g.parentOffset==0&&(e.domObserver.suppressSelectionUpdates(),setTimeout(()=>Jp(e),20)),E=e.state.tr.delete(S,x),C=u.resolve(m.start).marksAcross(u.resolve(m.endA));else if(m.endA==m.endB&&(w=Xnn(g.parent.content.cut(g.parentOffset,v.parentOffset),y.parent.content.cut(y.parentOffset,m.endA-y.start()))))E=e.state.tr,w.type=="add"?E.addMark(S,x,w.mark):E.removeMark(S,x,w.mark);else if(g.parent.child(g.index()).isText&&g.index()==v.index()-(v.textOffset?0:1)){let O=g.parent.textBetween(g.parentOffset,v.parentOffset);if(e.someProp("handleTextInput",T=>T(e,S,x,O)))return;E=e.state.tr.insertText(O,S,x)}}if(E||(E=e.state.tr.replace(S,x,c.doc.slice(m.start-c.from,m.endB-c.from))),c.sel){let O=afe(e,E.doc,c.sel);O&&!(Is&&e.composing&&O.empty&&(m.start!=m.endB||e.input.lastChromeDelete<Date.now()-100)&&(O.head==S||O.head==E.mapping.map(x)-1)||Dl&&O.empty&&O.head==S)&&E.setSelection(O)}C&&E.ensureMarks(C),o&&E.setMeta("composition",o),e.dispatch(E.scrollIntoView())}function afe(e,t,n){return Math.max(n.anchor,n.head)>t.content.size?null:OX(e,t.resolve(n.anchor),t.resolve(n.head))}function Xnn(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(en.from(c).eq(e))return{mark:s,type:a}}function Znn(e,t,n,r,i){if(n-t<=i.pos-r.pos||e7(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(e7(o,!0,!0));return!a.parent.isTextblock||a.pos>n||e7(a,!0,!1)<n?!1:r.parent.content.cut(r.parentOffset).eq(a.parent.content)}function e7(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 Jnn(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&&sfe(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&&sfe(e.textBetween(o-1,o+1))&&(o+=l?1:-1),a=o+(a-s),s=o}return{start:o,endA:a,endB:s}}function sfe(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 ern{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 ynn,this.prevDirectPlugins=[],this.pluginViews=[],this.requiresGeckoHackNode=!1,this.dragging=null,this._props=n,this.state=n.state,this.directPlugins=n.plugins||[],this.directPlugins.forEach(ffe),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=ufe(this),cfe(this),this.nodeViews=dfe(this),this.docView=Ude(this.state.doc,lfe(this),J$(this),this.dom,this),this.domObserver=new znn(this,(r,i,o,a)=>Qnn(this,r,i,o,a)),this.domObserver.start(),_nn(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&&$V(this);let n=this._props;this._props=t,t.plugins&&(t.plugins.forEach(ffe),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&&(f5e(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 p=dfe(this);nrn(p,this.nodeViews)&&(this.nodeViews=p,o=!0)}(s||n.handleDOMEvents!=this._props.handleDOMEvents)&&$V(this),this.editable=ufe(this),cfe(this);let l=J$(this),c=lfe(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&&Ptn(this);if(a){this.domObserver.stop();let p=d&&(Dl||Is)&&!this.composing&&!i.selection.empty&&!t.selection.empty&&trn(i.selection,t.selection);if(d){let m=Is?this.trackWrites=this.domSelectionRange().focusNode:null;this.composing&&(this.input.compositionNode=knn(this)),(o||!this.docView.update(t.doc,c,l,this))&&(this.docView.updateOuterDeco(c),this.docView.destroy(),this.docView=Ude(t.doc,c,l,this.dom,this)),m&&!this.trackWrites&&(p=!0)}p||!(this.input.mouseDown&&this.domObserver.currentSelection.eq(this.domSelectionRange())&&inn(this))?Jp(this,p):(Jke(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&&Dtn(f)}scrollToSelection(){let t=this.domSelectionRange().focusNode;if(!(!t||!this.dom.contains(t.nodeType==1?t:t.parentNode))&&!this.someProp("handleScrollToSelection",n=>n(this)))if(this.state.selection instanceof ar){let n=this.docView.domAfterPos(this.state.selection.from);n.nodeType==1&&Lde(this,n.getBoundingClientRect(),t)}else Lde(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 h5e(t.slice,t.move,i<0?void 0:ar.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(Dl){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&&Ltn(this.dom),Jp(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 jtn(this,t)}coordsAtPos(t,n=1){return Gke(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 Wtn(this,n||this.state,t)}pasteHTML(t,n){return lT(this,"",t,!1,n||new ClipboardEvent("paste"))}pasteText(t,n){return lT(this,t,null,!0,n||new ClipboardEvent("paste"))}destroy(){this.docView&&(Snn(this),this.destroyPluginViews(),this.mounted?(this.docView.update(this.state.doc,[],J$(this),this),this.dom.textContent=""):this.dom.parentNode&&this.dom.parentNode.removeChild(this.dom),this.docView.destroy(),this.docView=null,Ctn())}get isDestroyed(){return this.docView==null}dispatchEvent(t){return Cnn(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?rl&&this.root.nodeType===11&&Rtn(this.dom.ownerDocument)==this.dom&&Gnn(this,t)||t:{focusNode:null,focusOffset:0,anchorNode:null,anchorOffset:0}}domSelection(){return this.root.getSelection()}}function lfe(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"),[ra.node(0,e.state.doc.content.size,t)]}function cfe(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:ra.widget(e.state.selection.from,t,{raw:!0,marks:e.markCursor})}}else e.cursorWrapper=null}function ufe(e){return!e.someProp("editable",t=>t(e.state)===!1)}function trn(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 dfe(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 nrn(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 ffe(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 _g={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:"'"},WM={48:")",49:"!",50:"@",51:"#",52:"$",53:"%",54:"^",55:"&",56:"*",57:"(",59:":",61:"+",173:"_",186:":",187:"+",188:"<",189:"_",190:">",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},rrn=typeof navigator<"u"&&/Mac/.test(navigator.platform),irn=typeof navigator<"u"&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent);for(var ns=0;ns<10;ns++)_g[48+ns]=_g[96+ns]=String(ns);for(var ns=1;ns<=24;ns++)_g[ns+111]="F"+ns;for(var ns=65;ns<=90;ns++)_g[ns]=String.fromCharCode(ns+32),WM[ns]=String.fromCharCode(ns);for(var t7 in _g)WM.hasOwnProperty(t7)||(WM[t7]=_g[t7]);function orn(e){var t=rrn&&e.metaKey&&e.shiftKey&&!e.ctrlKey&&!e.altKey||irn&&e.shiftKey&&e.key&&e.key.length==1||e.key=="Unidentified",n=!t&&e.key||(e.shiftKey?WM:_g)[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 arn=typeof navigator<"u"?/Mac|iP(hone|[oa]d)/.test(navigator.platform):!1;function srn(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))arn?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 lrn(e){let t=Object.create(null);for(let n in e)t[srn(n)]=e[n];return t}function n7(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 crn(e){return new Ei({props:{handleKeyDown:kX(e)}})}function kX(e){let t=lrn(e);return function(n,r){let i=orn(r),o,a=t[n7(i,r)];if(a&&a(n.state,n.dispatch,n))return!0;if(i.length==1&&i!=" "){if(r.shiftKey){let s=t[n7(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=_g[r.keyCode])&&o!=i){let s=t[n7(o,r)];if(s&&s(n.state,n.dispatch,n))return!0}}return!1}}const urn=(e,t)=>e.selection.empty?!1:(t&&t(e.tr.deleteSelection().scrollIntoView()),!0);function y5e(e,t){let{$cursor:n}=e.selection;return!n||n.parentOffset>0?null:n}const drn=(e,t,n)=>{let r=y5e(e);if(!r)return!1;let i=PX(r);if(!i){let a=r.blockRange(),s=a&&iE(a);return s==null?!1:(t&&t(e.tr.lift(a,s).scrollIntoView()),!0)}let o=i.nodeBefore;if(C5e(e,i,t,-1))return!0;if(r.parent.content.size==0&&(j_(o,"end")||ar.isSelectable(o)))for(let a=r.depth;;a--){let s=J3(e.doc,r.before(a),r.after(a),An.empty);if(s&&s.slice.size<s.to-s.from){if(t){let l=e.tr.step(s);l.setSelection(j_(o,"end")?hr.findFrom(l.doc.resolve(l.mapping.map(i.pos,-1)),-1):ar.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},frn=(e,t,n)=>{let r=y5e(e);if(!r)return!1;let i=PX(r);return i?_5e(e,i,t):!1},prn=(e,t,n)=>{let r=S5e(e);if(!r)return!1;let i=DX(r);return i?_5e(e,i,t):!1};function _5e(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=J3(e.doc,o,l,An.empty);if(!c||c.from!=o||c instanceof Ca&&c.slice.size>=l-o)return!1;if(n){let u=e.tr.step(c);u.setSelection(Xn.create(u.doc,o)),n(u.scrollIntoView())}return!0}function j_(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 hrn=(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=PX(r)}let a=o&&o.nodeBefore;return!a||!ar.isSelectable(a)?!1:(t&&t(e.tr.setSelection(ar.create(e.doc,o.pos-a.nodeSize)).scrollIntoView()),!0)};function PX(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 S5e(e,t){let{$cursor:n}=e.selection;return!n||n.parentOffset<n.parent.content.size?null:n}const mrn=(e,t,n)=>{let r=S5e(e);if(!r)return!1;let i=DX(r);if(!i)return!1;let o=i.nodeAfter;if(C5e(e,i,t,1))return!0;if(r.parent.content.size==0&&(j_(o,"start")||ar.isSelectable(o))){let a=J3(e.doc,r.before(),r.after(),An.empty);if(a&&a.slice.size<a.to-a.from){if(t){let s=e.tr.step(a);s.setSelection(j_(o,"start")?hr.findFrom(s.doc.resolve(s.mapping.map(i.pos)),1):ar.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},grn=(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=DX(r)}let a=o&&o.nodeAfter;return!a||!ar.isSelectable(a)?!1:(t&&t(e.tr.setSelection(ar.create(e.doc,o.pos)).scrollIntoView()),!0)};function DX(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 vrn=(e,t)=>{let n=e.selection,r=n instanceof ar,i;if(r){if(n.node.isTextblock||!jg(e.doc,n.from))return!1;i=n.from}else if(i=Z3(e.doc,n.from,-1),i==null)return!1;if(t){let o=e.tr.join(i);r&&o.setSelection(ar.create(o.doc,i-e.doc.resolve(i).nodeBefore.nodeSize)),t(o.scrollIntoView())}return!0},brn=(e,t)=>{let n=e.selection,r;if(n instanceof ar){if(n.node.isTextblock||!jg(e.doc,n.to))return!1;r=n.to}else if(r=Z3(e.doc,n.to,1),r==null)return!1;return t&&t(e.tr.join(r).scrollIntoView()),!0},yrn=(e,t)=>{let{$from:n,$to:r}=e.selection,i=n.blockRange(r),o=i&&iE(i);return o==null?!1:(t&&t(e.tr.lift(i,o).scrollIntoView()),!0)},_rn=(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 E5e(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 Srn=(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=E5e(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(hr.near(l.doc.resolve(s),1)),t(l.scrollIntoView())}return!0},Ern=(e,t)=>{let n=e.selection,{$from:r,$to:i}=n;if(n instanceof yc||r.parent.inlineContent||i.parent.inlineContent)return!1;let o=E5e(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(Xn.create(s.doc,a+1)),t(s.scrollIntoView())}return!0},Crn=(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(Ay(e.doc,o))return t&&t(e.tr.split(o).scrollIntoView()),!0}let r=n.blockRange(),i=r&&iE(r);return i==null?!1:(t&&t(e.tr.lift(r,i).scrollIntoView()),!0)},xrn=(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(ar.create(e.doc,i))),!0)};function wrn(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||jg(e.doc,t.pos))?!1:(n&&n(e.tr.join(t.pos).scrollIntoView()),!0)}function C5e(e,t,n,r){let i=t.nodeBefore,o=t.nodeAfter,a,s,l=i.type.spec.isolating||o.type.spec.isolating;if(!l&&wrn(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 p=t.pos+o.nodeSize,m=en.empty;for(let y=a.length-1;y>=0;y--)m=en.from(a[y].create(null,m));m=en.from(i.copy(m));let g=e.tr.step(new Ua(t.pos-1,p,t.pos,p,new An(m,1,0),a.length,!0)),v=g.doc.resolve(p+2*a.length);v.nodeAfter&&v.nodeAfter.type==i.type&&jg(g.doc,v.pos)&&g.join(v.pos),n(g.scrollIntoView())}return!0}let u=o.type.spec.isolating||r>0&&l?null:hr.findFrom(t,1),d=u&&u.$from.blockRange(u.$to),f=d&&iE(d);if(f!=null&&f>=t.depth)return n&&n(e.tr.lift(d,f).scrollIntoView()),!0;if(c&&j_(o,"start",!0)&&j_(i,"end")){let p=i,m=[];for(;m.push(p),!p.isTextblock;)p=p.lastChild;let g=o,v=1;for(;!g.isTextblock;g=g.firstChild)v++;if(p.canReplace(p.childCount,p.childCount,g.content)){if(n){let y=en.empty;for(let _=m.length-1;_>=0;_--)y=en.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 An(y,m.length,0),0,!0));n(b.scrollIntoView())}return!0}}return!1}function x5e(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(Xn.create(t.doc,e<0?i.start(o):i.end(o)))),!0):!1}}const Trn=x5e(-1),Orn=x5e(1);function Rrn(e,t=null){return function(n,r){let{$from:i,$to:o}=n.selection,a=i.blockRange(o),s=a&&EX(a,e,t);return s?(r&&r(n.tr.wrap(a,s).scrollIntoView()),!0):!1}}function pfe(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 Arn(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 BM(u,u,a.depth),a.endIndex<a.parent.childCount&&(a=new BM(i,n.doc.resolve(o.end(a.depth)),a.depth)),s=!0}let c=EX(l,e,t,a);return c?(r&&r(Irn(n.tr,a,c,s,e).scrollIntoView()),!0):!1}}function Irn(e,t,n,r,i){let o=en.empty;for(let u=n.length-1;u>=0;u--)o=en.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 An(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&&Ay(e.doc,l,s)&&(e.split(l,s),l+=2*s),l+=c.child(u).nodeSize;return e}function Nrn(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?Mrn(t,n,e,o):krn(t,n,o):!0:!1}}function Mrn(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 An(en.from(n.create(null,r.parent.copy())),1,0),1,!0)),r=new BM(i.doc.resolve(r.$from.pos),i.doc.resolve(a),r.depth));const s=iE(r);if(s==null)return!1;i.lift(r,s);let l=i.mapping.map(o,-1)-1;return jg(i.doc,l)&&i.join(l),t(i.scrollIntoView()),!0}function krn(e,t,n){let r=e.tr,i=n.parent;for(let p=n.end,m=n.endIndex-1,g=n.startIndex;m>g;m--)p-=i.child(m).nodeSize,r.delete(p-1,p+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?en.empty:en.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 An((s?en.empty:en.from(i.copy(en.empty))).append(l?en.empty:en.from(i.copy(en.empty))),s?0:1,l?0:1),s?0:1)),t(r.scrollIntoView()),!0}function Prn(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=en.from(c?e.create():null),d=new An(en.from(e.create(null,en.from(s.type.create(null,u)))),c?3:1,0),f=o.start,p=o.end;n(t.tr.step(new Ua(f-(c?3:1),p,f,p,d,1,!0)).scrollIntoView())}return!0}}function i8(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 o8{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,p])=>[f,(...m)=>{const g=this.buildProps(c,n),v=p(...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:i8({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 Drn=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 Gn(e,t,n){return e.config[t]===void 0&&e.parent?Gn(e.parent,t,n):typeof e.config[t]=="function"?e.config[t].bind({...n,parent:e.parent?Gn(e.parent,t,n):null}):e.config[t]}function a8(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 w5e(e){const t=[],{nodeExtensions:n,markExtensions:r}=a8(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=Gn(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=Gn(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 Gr(...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?String(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 FV(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)=>Gr(n,r),{})}function T5e(e){return typeof e=="function"}function Nr(e,t=void 0,...n){return T5e(e)?t?e.bind(t)(...n):e(...n):e}function Lrn(e={}){return Object.keys(e).length===0&&e.constructor===Object}function $rn(e){return typeof e!="string"?e:e.match(/^[+-]?(?:\d*\.)?\d+$/)?Number(e):e==="true"?!0:e==="false"?!1:e}function hfe(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):$rn(n.getAttribute(a.name));return s==null?o:{...o,[a.name]:s}},{});return{...r,...i}}}}function mfe(e){return Object.fromEntries(Object.entries(e).filter(([t,n])=>t==="attrs"&&Lrn(n)?!1:n!=null))}function Frn(e,t){var n;const r=w5e(e),{nodeExtensions:i,markExtensions:o}=a8(e),a=(n=i.find(c=>Gn(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 _=Gn(b,"extendNodeSchema",d);return{...y,..._?_(c):{}}},{}),p=mfe({...f,content:Nr(Gn(c,"content",d)),marks:Nr(Gn(c,"marks",d)),group:Nr(Gn(c,"group",d)),inline:Nr(Gn(c,"inline",d)),atom:Nr(Gn(c,"atom",d)),selectable:Nr(Gn(c,"selectable",d)),draggable:Nr(Gn(c,"draggable",d)),code:Nr(Gn(c,"code",d)),whitespace:Nr(Gn(c,"whitespace",d)),linebreakReplacement:Nr(Gn(c,"linebreakReplacement",d)),defining:Nr(Gn(c,"defining",d)),isolating:Nr(Gn(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=Nr(Gn(c,"parseHTML",d));m&&(p.parseDOM=m.map(y=>hfe(y,u)));const g=Gn(c,"renderHTML",d);g&&(p.toDOM=y=>g({node:y,HTMLAttributes:FV(y,u)}));const v=Gn(c,"renderText",d);return v&&(p.toText=v),[c.name,p]})),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=Gn(y,"extendMarkSchema",d);return{...v,...b?b(c):{}}},{}),p=mfe({...f,inclusive:Nr(Gn(c,"inclusive",d)),excludes:Nr(Gn(c,"excludes",d)),group:Nr(Gn(c,"group",d)),spanning:Nr(Gn(c,"spanning",d)),code:Nr(Gn(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=Nr(Gn(c,"parseHTML",d));m&&(p.parseDOM=m.map(v=>hfe(v,u)));const g=Gn(c,"renderHTML",d);return g&&(p.toDOM=v=>g({mark:v,HTMLAttributes:FV(v,u)})),[c.name,p]}));return new _ke({topNode:a,nodes:s,marks:l})}function r7(e,t){return t.nodes[e]||t.marks[e]||null}function gfe(e,t){return Array.isArray(t)?t.some(n=>(typeof n=="string"?n:n.name)===e.name):t}function LX(e,t){const n=Bv.fromSchema(t).serializeFragment(e),r=document.implementation.createHTMLDocument().createElement("div");return r.appendChild(n),r.innerHTML}const Brn=(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 $X(e){return Object.prototype.toString.call(e)==="[object RegExp]"}class pO{constructor(t){this.find=t.find,this.handler=t.handler}}const Hrn=(e,t)=>{if($X(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 aA(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=Brn(c)+o;return a.forEach(f=>{if(u)return;const p=Hrn(d,f.find);if(!p)return;const m=l.state.tr,g=i8({state:l.state,transaction:m}),v={from:r-(p[0].length-o.length),to:i},{commands:y,chain:b,can:_}=new o8({editor:n,state:g});f.handler({state:g,range:v,match:p,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 jrn(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=LX(en.from(c),a.schema);const{from:u}=l,d=u+c.length;aA({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 aA({editor:t,from:o,to:a,text:s,rules:n,plugin:r})},handleDOMEvents:{compositionend:i=>(setTimeout(()=>{const{$cursor:o}=i.state.selection;o&&aA({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?aA({editor:t,from:a.pos,to:a.pos,text:`
`,rules:n,plugin:r}):!1}},isInputRules:!0});return r}function Urn(e){return Object.prototype.toString.call(e).slice(8,-1)}function sA(e){return Urn(e)!=="Object"?!1:e.constructor===Object&&Object.getPrototypeOf(e)===Object.prototype}function s8(e,t){const n={...e};return sA(e)&&sA(t)&&Object.keys(t).forEach(r=>{sA(t[r])&&sA(e[r])?n[r]=s8(e[r],t[r]):n[r]=t[r]}),n}class jl{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=Nr(Gn(this,"addOptions",{name:this.name}))),this.storage=Nr(Gn(this,"addStorage",{name:this.name,options:this.options}))||{}}static create(t={}){return new jl(t)}configure(t={}){const n=this.extend({...this.config,addOptions:()=>s8(this.options,t)});return n.name=this.name,n.parent=this.parent,n}extend(t={}){const n=new jl(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=Nr(Gn(n,"addOptions",{name:n.name})),n.storage=Nr(Gn(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 zrn(e){return typeof e=="number"}class Vrn{constructor(t){this.find=t.find,this.handler=t.handler}}const Grn=(e,t,n)=>{if($X(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 Wrn(e){const{editor:t,state:n,from:r,to:i,rule:o,pasteEvent:a,dropEvent:s}=e,{commands:l,chain:c,can:u}=new o8({editor:t,state:n}),d=[];return n.doc.nodesBetween(r,i,(f,p)=>{if(!f.isTextblock||f.type.spec.code)return;const m=Math.max(r,p),g=Math.min(i,p+f.content.size),v=f.textBetween(m-p,g-p,void 0,"");Grn(v,o.find,a).forEach(y=>{if(y.index===void 0)return;const b=m+y.index+1,_=b+y[0].length,S={from:n.tr.mapping.map(b),to:n.tr.mapping.map(_)},x=o.handler({state:n,range:S,match:y,commands:l,chain:c,can:u,pasteEvent:a,dropEvent:s});d.push(x)})}),d.every(f=>f!==null)}let lA=null;const qrn=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 Yrn(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:p})=>{const m=c.tr,g=i8({state:c,transaction:m});if(!(!Wrn({editor:t,state:g,from:Math.max(u-1,0),to:d.b-1,rule:f,pasteEvent:p,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=p=>{var m;r=!((m=u.dom.parentElement)===null||m===void 0)&&m.contains(p.target)?u.dom.parentElement:null,r&&(lA=t)},f=()=>{lA&&(lA=null)};return window.addEventListener("dragstart",d),window.addEventListener("dragend",f),{destroy(){window.removeEventListener("dragstart",d),window.removeEventListener("dragend",f)}}},props:{handleDOMEvents:{drop:(u,d)=>{if(o=r===u.dom.parentElement,s=d,!o){const f=lA;f&&setTimeout(()=>{const p=f.state.selection;p&&f.commands.deleteRange({from:p.from,to:p.to})},10)}return!1},paste:(u,d)=>{var f;const p=(f=d.clipboardData)===null||f===void 0?void 0:f.getData("text/html");return a=d,i=!!(p!=null&&p.includes("data-pm-slice")),!1}}},appendTransaction:(u,d,f)=>{const p=u[0],m=p.getMeta("uiEvent")==="paste"&&!i,g=p.getMeta("uiEvent")==="drop"&&!o,v=p.getMeta("applyPasteRules"),y=!!v;if(!m&&!g&&!y)return;if(y){let{text:S}=v;typeof S=="string"?S=S:S=LX(en.from(S),f.schema);const{from:x}=v,E=x+S.length,C=qrn(S);return l({rule:c,state:f,from:x,to:{b:E},pasteEvt:C})}const b=d.doc.content.findDiffStart(f.doc.content),_=d.doc.content.findDiffEnd(f.doc.content);if(!(!zrn(b)||!_||b===_.b))return l({rule:c,state:f,from:b,to:_,pasteEvt:a})}}))}function Krn(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=Frn(this.extensions,n),this.setupExtensions()}static resolve(t){const n=oy.sort(oy.flatten(t)),r=Krn(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=Gn(n,"addExtensions",r);return i?[n,...this.flatten(i())]:n}).flat(10)}static sort(t){return t.sort((n,r)=>{const i=Gn(n,"priority")||100,o=Gn(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:r7(n.name,this.schema)},i=Gn(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:r7(a.name,this.schema)},l=[],c=Gn(a,"addKeyboardShortcuts",s);let u={};if(a.type==="mark"&&Gn(a,"exitable",s)&&(u.ArrowRight=()=>jl.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=crn(u);l.push(d);const f=Gn(a,"addInputRules",s);gfe(a,t.options.enableInputRules)&&f&&r.push(...f());const p=Gn(a,"addPasteRules",s);gfe(a,t.options.enablePasteRules)&&p&&i.push(...p());const m=Gn(a,"addProseMirrorPlugins",s);if(m){const g=m();l.push(...g)}return l}).flat();return[jrn({editor:t,rules:r}),...Yrn({editor:t,rules:i}),...o]}get attributes(){return w5e(this.extensions)}get nodeViews(){const{editor:t}=this,{nodeExtensions:n}=a8(this.extensions);return Object.fromEntries(n.filter(r=>!!Gn(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=Gn(r,"addNodeView",o);if(!a)return[];const s=(l,c,u,d,f)=>{const p=FV(l,i);return a()({node:l,view:c,getPos:u,decorations:d,innerDecorations:f,editor:t,extension:r,HTMLAttributes:p})};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:r7(t.name,this.schema)};t.type==="mark"&&(!((n=Nr(Gn(t,"keepOnSplit",r)))!==null&&n!==void 0)||n)&&this.splittableMarks.push(t.name);const i=Gn(t,"onBeforeCreate",r),o=Gn(t,"onCreate",r),a=Gn(t,"onUpdate",r),s=Gn(t,"onSelectionUpdate",r),l=Gn(t,"onTransaction",r),c=Gn(t,"onFocus",r),u=Gn(t,"onBlur",r),d=Gn(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 yi{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=Nr(Gn(this,"addOptions",{name:this.name}))),this.storage=Nr(Gn(this,"addStorage",{name:this.name,options:this.options}))||{}}static create(t={}){return new yi(t)}configure(t={}){const n=this.extend({...this.config,addOptions:()=>s8(this.options,t)});return n.name=this.name,n.parent=this.parent,n}extend(t={}){const n=new yi({...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=Nr(Gn(n,"addOptions",{name:n.name})),n.storage=Nr(Gn(n,"addStorage",{name:n.name,options:n.options})),n}}function l8(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 p=a==null?void 0:a[l.type.name];if(p)return u&&(s+=p({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 O5e(e){return Object.fromEntries(Object.entries(e.nodes).filter(([,t])=>t.spec.toText).map(([t,n])=>[t,n.spec.toText]))}const Qrn=yi.create({name:"clipboardTextSerializer",addOptions(){return{blockSeparator:void 0}},addProseMirrorPlugins(){return[new Ei({key:new Bi("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=O5e(n);return l8(r,{from:a,to:s},{...this.options.blockSeparator!==void 0?{blockSeparator:this.options.blockSeparator}:{},textSerializers:l})}}})]}}),Xrn=()=>({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),Zrn=(e=!1)=>({commands:t})=>t.setContent("",e),Jrn=()=>({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)),p=d.blockRange(f);if(!p)return;const m=iE(p);if(s.type.isTextblock){const{defaultType:g}=d.parent.contentMatchAt(d.index());t.setNodeMarkup(p.start,g)}(m||m===0)&&t.lift(p,m)})}),!0},ein=e=>t=>e(t),tin=()=>({state:e,dispatch:t})=>Ern(e,t),nin=(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 Xn(r.doc.resolve(a-1))),!0},rin=()=>({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},iin=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},oin=e=>({tr:t,dispatch:n})=>{const{from:r,to:i}=e;return n&&t.delete(r,i),!0},ain=()=>({state:e,dispatch:t})=>urn(e,t),sin=()=>({commands:e})=>e.keyboardShortcut("Enter"),lin=()=>({state:e,dispatch:t})=>Srn(e,t);function U_(e,t,n={strict:!0}){const r=Object.keys(t);return r.length?r.every(i=>n.strict?t[i]===e[i]:$X(t[i])?t[i].test(e[i]):t[i]===e[i]):!0}function R5e(e,t,n={}){return e.find(r=>r.type===t&&U_(Object.fromEntries(Object.keys(n).map(i=>[i,r.attrs[i]])),n))}function vfe(e,t,n={}){return!!R5e(e,t,n)}function FX(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),!R5e([...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&&vfe([...e.parent.child(o-1).marks],t,n);)o-=1,a-=e.parent.child(o).nodeSize;for(;s<e.parent.childCount&&vfe([...e.parent.child(s).marks],t,n);)l+=e.parent.child(s).nodeSize,s+=1;return{from:a,to:l}}function Ah(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 cin=(e,t={})=>({tr:n,state:r,dispatch:i})=>{const o=Ah(e,r.schema),{doc:a,selection:s}=n,{$from:l,from:c,to:u}=s;if(i){const d=FX(l,o,t);if(d&&d.from<=c&&d.to>=u){const f=Xn.create(a,d.from,d.to);n.setSelection(f)}}return!0},uin=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 BX(e){return e instanceof Xn}function Wp(e=0,t=0,n=0){return Math.min(Math.max(e,t),n)}function A5e(e,t=null){if(!t)return null;const n=hr.atStart(e),r=hr.atEnd(e);if(t==="start"||t===!0)return n;if(t==="end")return r;const i=n.from,o=r.to;return t==="all"?Xn.create(e,Wp(0,i,o),Wp(e.content.size,i,o)):Xn.create(e,Wp(t,i,o),Wp(t,i,o))}function din(){return navigator.platform==="Android"||/android/i.test(navigator.userAgent)}function HX(){return["iPad Simulator","iPhone Simulator","iPod Simulator","iPad","iPhone","iPod"].includes(navigator.platform)||navigator.userAgent.includes("Mac")&&"ontouchend"in document}const fin=(e=null,t={})=>({editor:n,view:r,tr:i,dispatch:o})=>{t={scrollIntoView:!0,...t};const a=()=>{(HX()||din())&&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&&!BX(n.state.selection))return a(),!0;const s=A5e(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},pin=(e,t)=>n=>e.every((r,i)=>t(r,{...n,index:i})),hin=(e,t)=>({tr:n,commands:r})=>r.insertContentAt({from:n.selection.from,to:n.selection.to},e,t),I5e=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&&I5e(r)}return e};function cA(e){const t=`<body>${e}</body>`,n=new window.DOMParser().parseFromString(t,"text/html").body;return I5e(n)}function uT(e,t,n){if(e instanceof ag||e instanceof en)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 en.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),uT("",t,n)}if(i){if(n.errorOnInvalidContent){let a=!1,s="";const l=new _ke({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?Oy.fromSchema(l).parseSlice(cA(e),n.parseOptions):Oy.fromSchema(l).parse(cA(e),n.parseOptions),n.errorOnInvalidContent&&a)throw new Error("[tiptap error]: Invalid HTML content",{cause:new Error(`Invalid element found: ${s}`)})}const o=Oy.fromSchema(t);return n.slice?o.parseSlice(cA(e),n.parseOptions).content:o.parse(cA(e),n.parseOptions)}return uT("",t,n)}function min(e,t,n){const r=e.steps.length-1;if(r<t)return;const i=e.steps[r];if(!(i instanceof Ca||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(hr.near(e.doc.resolve(a),n))}const gin=e=>!("type"in e),vin=(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;const l=g=>{o.emit("contentError",{editor:o,error:g,disableCollaboration:()=>{o.storage.collaboration&&(o.storage.collaboration.isDisabled=!0)}})},c={preserveWhitespace:"full",...n.parseOptions};if(!n.errorOnInvalidContent&&!o.options.enableContentCheck&&o.options.emitContentError)try{uT(t,o.schema,{parseOptions:c,errorOnInvalidContent:!0})}catch(g){l(g)}try{s=uT(t,o.schema,{parseOptions:c,errorOnInvalidContent:(a=n.errorOnInvalidContent)!==null&&a!==void 0?a:o.options.enableContentCheck})}catch(g){return l(g),!1}let{from:u,to:d}=typeof e=="number"?{from:e,to:e}:{from:e.from,to:e.to},f=!0,p=!0;if((gin(s)?s:[s]).forEach(g=>{g.check(),f=f?g.isText&&g.marks.length===0:!1,p=p?g.isBlock:!1}),u===d&&p){const{parent:g}=r.doc.resolve(u);g.isTextblock&&!g.type.spec.code&&!g.childCount&&(u-=1,d+=1)}let m;if(f){if(Array.isArray(t))m=t.map(g=>g.text||"").join("");else if(t instanceof en){let g="";t.forEach(v=>{v.text&&(g+=v.text)}),m=g}else typeof t=="object"&&t&&t.text?m=t.text:m=t;r.insertText(m,u,d)}else m=s,r.replaceWith(u,d,m);n.updateSelection&&min(r,r.steps.length-1,-1),n.applyInputRules&&r.setMeta("applyInputRules",{from:u,text:m}),n.applyPasteRules&&r.setMeta("applyPasteRules",{from:u,text:m})}return!0},bin=()=>({state:e,dispatch:t})=>vrn(e,t),yin=()=>({state:e,dispatch:t})=>brn(e,t),_in=()=>({state:e,dispatch:t})=>drn(e,t),Sin=()=>({state:e,dispatch:t})=>mrn(e,t),Ein=()=>({state:e,dispatch:t,tr:n})=>{try{const r=Z3(e.doc,e.selection.$from.pos,-1);return r==null?!1:(n.join(r,2),t&&t(n),!0)}catch{return!1}},Cin=()=>({state:e,dispatch:t,tr:n})=>{try{const r=Z3(e.doc,e.selection.$from.pos,1);return r==null?!1:(n.join(r,2),t&&t(n),!0)}catch{return!1}},xin=()=>({state:e,dispatch:t})=>frn(e,t),win=()=>({state:e,dispatch:t})=>prn(e,t);function N5e(){return typeof navigator<"u"?/Mac/.test(navigator.platform):!1}function Tin(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))HX()||N5e()?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 Oin=e=>({editor:t,view:n,tr:r,dispatch:i})=>{const o=Tin(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 tv(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),p=Math.min(i,d+u.nodeSize);s.push({node:u,from:f,to:p})});const l=i-r,c=s.filter(u=>a?a.name===u.node.type.name:!0).filter(u=>U_(u.node.attrs,n,{strict:!1}));return o?!!c.length:c.reduce((u,d)=>u+d.to-d.from,0)>=l}const Rin=(e,t={})=>({state:n,dispatch:r})=>{const i=Ga(e,n.schema);return tv(n,i,t)?yrn(n,r):!1},Ain=()=>({state:e,dispatch:t})=>Crn(e,t),Iin=e=>({state:t,dispatch:n})=>{const r=Ga(e,t.schema);return Nrn(r)(t,n)},Nin=()=>({state:e,dispatch:t})=>_rn(e,t);function c8(e,t){return t.nodes[e]?"node":t.marks[e]?"mark":null}function bfe(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 Min=(e,t)=>({tr:n,state:r,dispatch:i})=>{let o=null,a=null;const s=c8(typeof e=="string"?e:e.name,r.schema);return s?(s==="node"&&(o=Ga(e,r.schema)),s==="mark"&&(a=Ah(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,bfe(c.attrs,t)),a&&c.marks.length&&c.marks.forEach(d=>{a===d.type&&n.addMark(u,u+c.nodeSize,a.create(bfe(d.attrs,t)))})})}),!0):!1},kin=()=>({tr:e,dispatch:t})=>(t&&e.scrollIntoView(),!0),Pin=()=>({tr:e,dispatch:t})=>{if(t){const n=new yc(e.doc);e.setSelection(n)}return!0},Din=()=>({state:e,dispatch:t})=>hrn(e,t),Lin=()=>({state:e,dispatch:t})=>grn(e,t),$in=()=>({state:e,dispatch:t})=>xrn(e,t),Fin=()=>({state:e,dispatch:t})=>Orn(e,t),Bin=()=>({state:e,dispatch:t})=>Trn(e,t);function BV(e,t,n={},r={}){return uT(e,t,{slice:!1,parseOptions:n,errorOnInvalidContent:r.errorOnInvalidContent})}const Hin=(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=BV(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 M5e(e,t){const n=Ah(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 jin(e,t){const n=new CX(e);return t.forEach(r=>{r.steps.forEach(i=>{n.step(i)})}),n}function Uin(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 HV(e,t){const n=[];return e.descendants((r,i)=>{t(r)&&n.push({node:r,pos:i})}),n}function zin(e,t,n){const r=[];return e.nodesBetween(t.from,t.to,(i,o)=>{n(i)&&r.push({node:i,pos:o})}),r}function k5e(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 u8(e){return t=>k5e(t.$from,e)}function Vin(e,t){const n={from:0,to:e.content.size};return l8(e,n,t)}function Gin(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 P5e(e,t){const n=c8(typeof t=="string"?t:t.name,e.schema);return n==="node"?Gin(e,t):n==="mark"?M5e(e,t):{}}function Win(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 qin(e){const t=Win(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 Yin(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}})})}),qin(r)}function jX(e,t,n){const r=[];return e===t?n.resolve(e).marks().forEach(i=>{const o=n.resolve(e),a=FX(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 pN(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 jV(e,t,n={}){const{empty:r,ranges:i}=e.selection,o=t?Ah(t,e.schema):null;if(r)return!!(e.storedMarks||e.selection.$from.marks()).filter(u=>o?o.name===u.type.name:!0).find(u=>U_(u.attrs,n,{strict:!1}));let a=0;const s=[];if(i.forEach(({$from:u,$to:d})=>{const f=u.pos,p=d.pos;e.doc.nodesBetween(f,p,(m,g)=>{if(!m.isText&&!m.marks.length)return;const v=Math.max(f,g),y=Math.min(p,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=>U_(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 Kin(e,t,n={}){if(!t)return tv(e,null,n)||jV(e,null,n);const r=c8(t,e.schema);return r==="node"?tv(e,t,n):r==="mark"?jV(e,t,n):!1}function yfe(e,t){const{nodeExtensions:n}=a8(t),r=n.find(a=>a.name===e);if(!r)return!1;const i={name:r.name,options:r.options,storage:r.storage},o=Nr(Gn(r,"group",i));return typeof o!="string"?!1:o.split(" ").includes("list")}function d8(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&&(d8(o,{ignoreWhitespace:n,checkChildren:t})||(i=!1))}),i}return!1}function D5e(e){return e instanceof ar}function dT(e,t,n){const r=e.state.doc.content.size,i=Wp(t,0,r),o=Wp(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,p=c-l,m={top:l,bottom:c,left:u,right:d,width:f,height:p,x:u,y:l};return{...m,toJSON:()=>m}}function Qin(e,t,n){var r;const{selection:i}=t;let o=null;if(BX(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 p=!f||f.type.allowsMarkType(n),m=!!n.isInSet(u.marks)||!u.marks.some(g=>g.type.excludes(n));c=p&&m}return!c}),c})}const Xin=(e,t={})=>({tr:n,state:r,dispatch:i})=>{const{selection:o}=n,{empty:a,ranges:s}=o,l=Ah(e,r.schema);if(i)if(a){const c=M5e(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,p)=>{const m=Math.max(p,u),g=Math.min(p+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 Qin(r,n,l)},Zin=(e,t)=>({tr:n})=>(n.setMeta(e,t),!0),Jin=(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})=>pfe(o,{...a,...t})(n)?!0:s.clearNodes()).command(({state:s})=>pfe(o,{...a,...t})(s,r)).run():(console.warn('[tiptap warn]: Currently "setNode()" only supports text block nodes.'),!1)},eon=e=>({tr:t,dispatch:n})=>{if(n){const{doc:r}=t,i=Wp(e,0,r.content.size),o=ar.create(r,i);t.setSelection(o)}return!0},ton=e=>({tr:t,dispatch:n})=>{if(n){const{doc:r}=t,{from:i,to:o}=typeof e=="number"?{from:e,to:e}:e,a=Xn.atStart(r).from,s=Xn.atEnd(r).to,l=Wp(i,a,s),c=Wp(o,a,s),u=Xn.create(r,l,c);t.setSelection(u)}return!0},non=e=>({state:t,dispatch:n})=>{const r=Ga(e,t.schema);return Prn(r)(t,n)};function _fe(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 ron=({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=pN(c,s.node().type.name,s.node().attrs);if(o instanceof ar&&o.node.isBlock)return!s.parentOffset||!Ay(a,s.pos)?!1:(r&&(e&&_fe(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:Uin(s.node(-1).contentMatchAt(s.indexAfter(-1)));let p=d&&f?[{type:f,attrs:u}]:void 0,m=Ay(t.doc,t.mapping.map(s.pos),1,p);if(!p&&!m&&Ay(t.doc,t.mapping.map(s.pos),1,f?[{type:f}]:void 0)&&(m=!0,p=f?[{type:f,attrs:u}]:void 0),r){if(m&&(o instanceof Xn&&t.deleteSelection(),t.split(t.mapping.map(s.pos),1,p),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&&_fe(n,i.extensionManager.splittableMarks),t.scrollIntoView()}return m},ion=(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=en.empty;const b=l.index(-1)?1:l.index(-2)?2:3;for(let w=l.depth-b;w>=l.depth-3;w-=1)y=en.from(l.node(w).copy(y));const _=l.indexAfter(-1)<l.node(-2).childCount?1:l.indexAfter(-2)<l.node(-3).childCount?2:3,S={...pN(f,l.node().type.name,l.node().attrs),...t},x=((a=s.contentMatch.defaultType)===null||a===void 0?void 0:a.createAndFill(S))||void 0;y=y.append(en.from(s.createAndFill(null,x)||void 0));const E=l.before(l.depth-(b-1));n.replace(E,l.after(-_),new An(y,4-b,0));let C=-1;n.doc.nodesBetween(E,n.doc.content.size,(w,O)=>{if(C>-1)return!1;w.isTextblock&&w.content.size===0&&(C=O+1)}),C>-1&&n.setSelection(Xn.near(n.doc.resolve(C))),n.scrollIntoView()}return!0}const p=c.pos===l.end()?d.contentMatchAt(0).defaultType:null,m={...pN(f,d.type.name,d.attrs),...t},g={...pN(f,l.node().type.name,l.node().attrs),...t};n.delete(l.pos,c.pos);const v=p?[{type:s,attrs:m},{type:p,attrs:g}]:[{type:s,attrs:m}];if(!Ay(n.doc,l.pos,2))return!1;if(i){const{selection:y,storedMarks:b}=r,{splittableMarks:_}=o.extensionManager,S=b||y.$to.parentOffset&&y.$from.marks();if(n.split(l.pos,2,v).scrollIntoView(),!S||!i)return!0;const x=S.filter(E=>_.includes(E.type.name));n.ensureMarks(x)}return!0},i7=(e,t)=>{const n=u8(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)&&jg(e.doc,n.pos)&&e.join(n.pos),!0},o7=(e,t)=>{const n=u8(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)&&jg(e.doc,r)&&e.join(r),!0},oon=(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,p=Ga(e,a.schema),m=Ga(t,a.schema),{selection:g,storedMarks:v}=a,{$from:y,$to:b}=g,_=y.blockRange(b),S=v||g.$to.parentOffset&&g.$from.marks();if(!_)return!1;const x=u8(E=>yfe(E.type.name,d))(g);if(_.depth>=1&&x&&_.depth-x.depth<=1){if(x.node.type===p)return c.liftListItem(m);if(yfe(x.node.type.name,d)&&p.validContent(x.node.content)&&s)return l().command(()=>(o.setNodeMarkup(x.pos,p),!0)).command(()=>i7(o,p)).command(()=>o7(o,p)).run()}return!n||!S||!s?l().command(()=>u().wrapInList(p,r)?!0:c.clearNodes()).wrapInList(p,r).command(()=>i7(o,p)).command(()=>o7(o,p)).run():l().command(()=>{const E=u().wrapInList(p,r),C=S.filter(w=>f.includes(w.type.name));return o.ensureMarks(C),E?!0:c.clearNodes()}).wrapInList(p,r).command(()=>i7(o,p)).command(()=>o7(o,p)).run()},aon=(e,t={},n={})=>({state:r,commands:i})=>{const{extendEmptyMarkRange:o=!1}=n,a=Ah(e,r.schema);return jV(r,a,t)?i.unsetMark(a,{extendEmptyMarkRange:o}):i.setMark(a,t)},son=(e,t,n={})=>({state:r,commands:i})=>{const o=Ga(e,r.schema),a=Ga(t,r.schema),s=tv(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})},lon=(e,t={})=>({state:n,commands:r})=>{const i=Ga(e,n.schema);return tv(n,i,t)?r.lift(i):r.wrapIn(i,t)},con=()=>({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},uon=()=>({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},don=(e,t={})=>({tr:n,state:r,dispatch:i})=>{var o;const{extendEmptyMarkRange:a=!1}=t,{selection:s}=n,l=Ah(e,r.schema),{$from:c,empty:u,ranges:d}=s;if(!i)return!0;if(u&&a){let{from:f,to:p}=s;const m=(o=c.marks().find(v=>v.type===l))===null||o===void 0?void 0:o.attrs,g=FX(c,l,m);g&&(f=g.from,p=g.to),n.removeMark(f,p,l)}else d.forEach(f=>{n.removeMark(f.$from.pos,f.$to.pos,l)});return n.removeStoredMark(l),!0},fon=(e,t={})=>({tr:n,state:r,dispatch:i})=>{let o=null,a=null;const s=c8(typeof e=="string"?e:e.name,r.schema);return s?(s==="node"&&(o=Ga(e,r.schema)),s==="mark"&&(a=Ah(e,r.schema)),i&&n.selection.ranges.forEach(l=>{const c=l.$from.pos,u=l.$to.pos;let d,f,p,m;n.selection.empty?r.doc.nodesBetween(c,u,(g,v)=>{o&&o===g.type&&(p=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&&(p=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(p,m,a.create({...g.attrs,...t}))}))}),!0):!1},pon=(e,t={})=>({state:n,dispatch:r})=>{const i=Ga(e,n.schema);return Rrn(i,t)(n,r)},hon=(e,t={})=>({state:n,dispatch:r})=>{const i=Ga(e,n.schema);return Arn(i,t)(n,r)};var mon=Object.freeze({__proto__:null,blur:Xrn,clearContent:Zrn,clearNodes:Jrn,command:ein,createParagraphNear:tin,cut:nin,deleteCurrentNode:rin,deleteNode:iin,deleteRange:oin,deleteSelection:ain,enter:sin,exitCode:lin,extendMarkRange:cin,first:uin,focus:fin,forEach:pin,insertContent:hin,insertContentAt:vin,joinBackward:_in,joinDown:yin,joinForward:Sin,joinItemBackward:Ein,joinItemForward:Cin,joinTextblockBackward:xin,joinTextblockForward:win,joinUp:bin,keyboardShortcut:Oin,lift:Rin,liftEmptyBlock:Ain,liftListItem:Iin,newlineInCode:Nin,resetAttributes:Min,scrollIntoView:kin,selectAll:Pin,selectNodeBackward:Din,selectNodeForward:Lin,selectParentNode:$in,selectTextblockEnd:Fin,selectTextblockStart:Bin,setContent:Hin,setMark:Xin,setMeta:Zin,setNode:Jin,setNodeSelection:eon,setTextSelection:ton,sinkListItem:non,splitBlock:ron,splitListItem:ion,toggleList:oon,toggleMark:aon,toggleNode:son,toggleWrap:lon,undoInputRule:con,unsetAllMarks:uon,unsetMark:don,updateAttributes:fon,wrapIn:pon,wrapInList:hon});const gon=yi.create({name:"commands",addCommands(){return{...mon}}}),von=yi.create({name:"drop",addProseMirrorPlugins(){return[new Ei({key:new Bi("tiptapDrop"),props:{handleDrop:(e,t,n,r)=>{this.editor.emit("drop",{editor:this.editor,event:t,slice:n,moved:r})}}})]}}),bon=yi.create({name:"editable",addProseMirrorPlugins(){return[new Ei({key:new Bi("editable"),props:{editable:()=>this.editor.options.editable}})]}}),yon=new Bi("focusEvents"),_on=yi.create({name:"focusEvents",addProseMirrorPlugins(){const{editor:e}=this;return[new Ei({key:yon,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}}}})]}}),Son=yi.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,p=u.parent.isTextblock&&d>0?a.doc.resolve(d-1):u,m=p.parent.type.spec.isolating,g=u.pos-u.parentOffset,v=m&&p.parent.childCount===1?g===u.pos:hr.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 HX()||N5e()?i:r},addProseMirrorPlugins(){return[new Ei({key:new Bi("clearDocument"),appendTransaction:(e,t,n)=>{if(e.some(p=>p.getMeta("composition")))return;const r=e.some(p=>p.docChanged)&&!t.doc.eq(n.doc),i=e.some(p=>p.getMeta("preventClearDocument"));if(!r||i)return;const{empty:o,from:a,to:s}=t.selection,l=hr.atStart(t.doc).from,c=hr.atEnd(t.doc).to;if(o||!(a===l&&s===c)||!d8(n.doc))return;const u=n.tr,d=i8({state:n,transaction:u}),{commands:f}=new o8({editor:this.editor,state:d});if(f.clearNodes(),!!u.steps.length)return u}})]}}),Eon=yi.create({name:"paste",addProseMirrorPlugins(){return[new Ei({key:new Bi("tiptapPaste"),props:{handlePaste:(e,t,n)=>{this.editor.emit("paste",{editor:this.editor,event:t,slice:n})}}})]}}),Con=yi.create({name:"tabindex",addProseMirrorPlugins(){return[new Ei({key:new Bi("tabindex"),props:{attributes:()=>this.editor.isEditable?{tabindex:"0"}:{}}})]}});class O0{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 O0(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 O0(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 O0(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);if(a<0||a>this.resolvedPos.doc.nodeSize-2)return;const s=this.resolvedPos.doc.resolve(a);if(!i&&s.depth<=this.depth)return;const l=new O0(s,this.editor,i,i?n:null);i&&(l.actualDepth=this.depth+1),t.push(new O0(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 xon=`.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 won(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 Ton extends Drn{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,emitContentError:!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=won(xon,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=T5e(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=r.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?[bon,Qrn.configure({blockSeparator:(n=(t=this.options.coreExtensionOptions)===null||t===void 0?void 0:t.clipboardTextSerializer)===null||n===void 0?void 0:n.blockSeparator}),gon,_on,Son,Con,von,Eon].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 o8({editor:this})}createSchema(){this.schema=this.extensionManager.schema}createView(){var t;let n;try{n=BV(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=BV(this.options.content,this.schema,this.options.parseOptions,{errorOnInvalidContent:!1})}const r=A5e(n,this.options.autofocus);this.view=new ern(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 P5e(this.state,t)}isActive(t,n){const r=typeof t=="string"?t:null,i=typeof t=="string"?n:t;return Kin(this.state,r,i)}getJSON(){return this.state.doc.toJSON()}getHTML(){return LX(this.state.doc.content,this.schema)}getText(t){const{blockSeparator:n=`
`,textSerializers:r={}}=t||{};return Vin(this.state.doc,{blockSeparator:n,textSerializers:{...O5e(this.schema),...r}})}get isEmpty(){return d8(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 O0(n,this)}get $doc(){return this.$pos(0)}}function nv(e){return new pO({find:e.find,handler:({state:t,range:n,match:r})=>{const i=Nr(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(jX(n.from,n.to,t.doc).filter(f=>f.mark.type.excluded.find(p=>p===e.type&&p!==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 UX(e){return new pO({find:e.find,handler:({state:t,range:n,match:r})=>{const i=Nr(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 UV(e){return new pO({find:e.find,handler:({state:t,range:n,match:r})=>{const i=t.doc.resolve(n.from),o=Nr(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 rv(e){return new pO({find:e.find,handler:({state:t,range:n,match:r,chain:i})=>{const o=Nr(e.getAttributes,void 0,r)||{},a=t.tr.delete(n.from,n.to),s=a.doc.resolve(n.from).blockRange(),l=s&&EX(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,p=d||u.$to.parentOffset&&u.$from.marks();if(p){const m=p.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&&jg(a.doc,n.from-1)&&(!e.joinPredicate||e.joinPredicate(r,c))&&a.join(n.from-1)}})}let To=class zV{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=Nr(Gn(this,"addOptions",{name:this.name}))),this.storage=Nr(Gn(this,"addStorage",{name:this.name,options:this.options}))||{}}static create(t={}){return new zV(t)}configure(t={}){const n=this.extend({...this.config,addOptions:()=>s8(this.options,t)});return n.name=this.name,n.parent=this.parent,n}extend(t={}){const n=new zV(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=Nr(Gn(n,"addOptions",{name:n.name})),n.storage=Nr(Gn(n,"addStorage",{name:n.name,options:n.options})),n}};function Sg(e){return new Vrn({find:e.find,handler:({state:t,range:n,match:r,pasteEvent:i})=>{const o=Nr(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(jX(n.from,n.to,t.doc).filter(p=>p.mark.type.excluded.find(m=>m===e.type&&m!==p.mark.type)).filter(p=>p.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 Oon(e,t){const{selection:n}=e,{$from:r}=n;if(n instanceof ar){const o=r.index();return r.parent.canReplaceWith(o,o+1,t)}let i=r.depth;for(;i>=0;){const o=r.index(i);if(r.node(i).contentMatchAt(o).matchType(t))return!0;i-=1}return!1}function Ron(e){return e.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&")}class ti extends HTMLElement{constructor(){super(),Qt(this,"template",""),Qt(this,"editor"),Qt(this,"options"),Qt(this,"alwaysEnabledButtons",["fullscreen","printer"])}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,this.alwaysEnabledButtons=Array.from(new Set(this.alwaysEnabledButtons.concat(n.alwaysEnabledToolbarKeys||[])))}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){let n=this.tagName.slice(4).toLocaleLowerCase();n==="custom"&&(n=this.getAttribute("id")||""),!this.alwaysEnabledButtons.includes(n)&&(t?(this.style.pointerEvents="",this.style.opacity=""):(this.style.pointerEvents="none",this.style.opacity="0.5"))}}class Aon extends ti{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 Ion extends ti{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 Ll="top",Su="bottom",Eu="right",$l="left",zX="auto",hO=[Ll,Su,Eu,$l],z_="start",fT="end",Non="clippingParents",L5e="viewport",XE="popper",Mon="reference",Sfe=hO.reduce(function(e,t){return e.concat([t+"-"+z_,t+"-"+fT])},[]),$5e=[].concat(hO,[zX]).reduce(function(e,t){return e.concat([t,t+"-"+z_,t+"-"+fT])},[]),kon="beforeRead",Pon="read",Don="afterRead",Lon="beforeMain",$on="main",Fon="afterMain",Bon="beforeWrite",Hon="write",jon="afterWrite",Uon=[kon,Pon,Don,Lon,$on,Fon,Bon,Hon,jon];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 iv(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 VX(e){if(typeof ShadowRoot>"u")return!1;var t=wc(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function zon(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 Von(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 F5e={name:"applyStyles",enabled:!0,phase:"write",fn:zon,effect:Von,requires:["computeStyles"]};function Mf(e){return e.split("-")[0]}var C1=Math.max,qM=Math.min,V_=Math.round;function VV(){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 B5e(){return!/^((?!chrome|android).)*safari/i.test(VV())}function G_(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&&V_(r.width)/e.offsetWidth||1,o=e.offsetHeight>0&&V_(r.height)/e.offsetHeight||1);var a=iv(e)?wc(e):window,s=a.visualViewport,l=!B5e()&&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 GX(e){var t=G_(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 H5e(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&VX(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function ph(e){return wc(e).getComputedStyle(e)}function Gon(e){return["table","td","th"].indexOf(zf(e))>=0}function zg(e){return((iv(e)?e.ownerDocument:e.document)||window.document).documentElement}function f8(e){return zf(e)==="html"?e:e.assignedSlot||e.parentNode||(VX(e)?e.host:null)||zg(e)}function Efe(e){return!uu(e)||ph(e).position==="fixed"?null:e.offsetParent}function Won(e){var t=/firefox/i.test(VV()),n=/Trident/i.test(VV());if(n&&uu(e)){var r=ph(e);if(r.position==="fixed")return null}var i=f8(e);for(VX(i)&&(i=i.host);uu(i)&&["html","body"].indexOf(zf(i))<0;){var o=ph(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 mO(e){for(var t=wc(e),n=Efe(e);n&&Gon(n)&&ph(n).position==="static";)n=Efe(n);return n&&(zf(n)==="html"||zf(n)==="body"&&ph(n).position==="static")?t:n||Won(e)||t}function WX(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Tx(e,t,n){return C1(e,qM(t,n))}function qon(e,t,n){var r=Tx(e,t,n);return r>n?n:r}function j5e(){return{top:0,right:0,bottom:0,left:0}}function U5e(e){return Object.assign({},j5e(),e)}function z5e(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var Yon=function(e,t){return e=typeof e=="function"?e(Object.assign({},t.rects,{placement:t.placement})):e,U5e(typeof e!="number"?e:z5e(e,hO))};function Kon(e){var t,n=e.state,r=e.name,i=e.options,o=n.elements.arrow,a=n.modifiersData.popperOffsets,s=Mf(n.placement),l=WX(s),c=[$l,Eu].indexOf(s)>=0,u=c?"height":"width";if(!(!o||!a)){var d=Yon(i.padding,n),f=GX(o),p=l==="y"?Ll:$l,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=mO(o),b=y?l==="y"?y.clientHeight||0:y.clientWidth||0:0,_=g/2-v/2,S=d[p],x=b-f[u]-d[m],E=b/2-f[u]/2+_,C=Tx(S,E,x),w=l;n.modifiersData[r]=(t={},t[w]=C,t.centerOffset=C-E,t)}}function Qon(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)||H5e(t.elements.popper,i)&&(t.elements.arrow=i))}const Xon={name:"arrow",enabled:!0,phase:"main",fn:Kon,effect:Qon,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function W_(e){return e.split("-")[1]}var Zon={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Jon(e,t){var n=e.x,r=e.y,i=t.devicePixelRatio||1;return{x:V_(n*i)/i||0,y:V_(r*i)/i||0}}function Cfe(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,p=f===void 0?0:f,m=a.y,g=m===void 0?0:m,v=typeof u=="function"?u({x:p,y:g}):{x:p,y:g};p=v.x,g=v.y;var y=a.hasOwnProperty("x"),b=a.hasOwnProperty("y"),_=$l,S=Ll,x=window;if(c){var E=mO(n),C="clientHeight",w="clientWidth";if(E===wc(n)&&(E=zg(n),ph(E).position!=="static"&&s==="absolute"&&(C="scrollHeight",w="scrollWidth")),E=E,i===Ll||(i===$l||i===Eu)&&o===fT){S=Su;var O=d&&E===x&&x.visualViewport?x.visualViewport.height:E[C];g-=O-r.height,g*=l?1:-1}if(i===$l||(i===Ll||i===Su)&&o===fT){_=Eu;var T=d&&E===x&&x.visualViewport?x.visualViewport.width:E[w];p-=T-r.width,p*=l?1:-1}}var A=Object.assign({position:s},c&&Zon),I=u===!0?Jon({x:p,y:g},wc(n)):{x:p,y:g};if(p=I.x,g=I.y,l){var N;return Object.assign({},A,(N={},N[S]=b?"0":"",N[_]=y?"0":"",N.transform=(x.devicePixelRatio||1)<=1?"translate("+p+"px, "+g+"px)":"translate3d("+p+"px, "+g+"px, 0)",N))}return Object.assign({},A,(t={},t[S]=b?g+"px":"",t[_]=y?p+"px":"",t.transform="",t))}function ean(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:Mf(t.placement),variation:W_(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,Cfe(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,Cfe(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 tan={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:ean,data:{}};var uA={passive:!0};function nan(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,uA)}),s&&l.addEventListener("resize",n.update,uA),function(){o&&c.forEach(function(u){u.removeEventListener("scroll",n.update,uA)}),s&&l.removeEventListener("resize",n.update,uA)}}const ran={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:nan,data:{}};var ian={left:"right",right:"left",bottom:"top",top:"bottom"};function hN(e){return e.replace(/left|right|bottom|top/g,function(t){return ian[t]})}var oan={start:"end",end:"start"};function xfe(e){return e.replace(/start|end/g,function(t){return oan[t]})}function qX(e){var t=wc(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function YX(e){return G_(zg(e)).left+qX(e).scrollLeft}function aan(e,t){var n=wc(e),r=zg(e),i=n.visualViewport,o=r.clientWidth,a=r.clientHeight,s=0,l=0;if(i){o=i.width,a=i.height;var c=B5e();(c||!c&&t==="fixed")&&(s=i.offsetLeft,l=i.offsetTop)}return{width:o,height:a,x:s+YX(e),y:l}}function san(e){var t,n=zg(e),r=qX(e),i=(t=e.ownerDocument)==null?void 0:t.body,o=C1(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),a=C1(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),s=-r.scrollLeft+YX(e),l=-r.scrollTop;return ph(i||n).direction==="rtl"&&(s+=C1(n.clientWidth,i?i.clientWidth:0)-o),{width:o,height:a,x:s,y:l}}function KX(e){var t=ph(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function V5e(e){return["html","body","#document"].indexOf(zf(e))>=0?e.ownerDocument.body:uu(e)&&KX(e)?e:V5e(f8(e))}function Ox(e,t){var n;t===void 0&&(t=[]);var r=V5e(e),i=r===((n=e.ownerDocument)==null?void 0:n.body),o=wc(r),a=i?[o].concat(o.visualViewport||[],KX(r)?r:[]):r,s=t.concat(a);return i?s:s.concat(Ox(f8(a)))}function GV(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function lan(e,t){var n=G_(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 wfe(e,t,n){return t===L5e?GV(aan(e,n)):iv(t)?lan(t,n):GV(san(zg(e)))}function can(e){var t=Ox(f8(e)),n=["absolute","fixed"].indexOf(ph(e).position)>=0,r=n&&uu(e)?mO(e):e;return iv(r)?t.filter(function(i){return iv(i)&&H5e(i,r)&&zf(i)!=="body"}):[]}function uan(e,t,n,r){var i=t==="clippingParents"?can(e):[].concat(t),o=[].concat(i,[n]),a=o[0],s=o.reduce(function(l,c){var u=wfe(e,c,r);return l.top=C1(u.top,l.top),l.right=qM(u.right,l.right),l.bottom=qM(u.bottom,l.bottom),l.left=C1(u.left,l.left),l},wfe(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 G5e(e){var t=e.reference,n=e.element,r=e.placement,i=r?Mf(r):null,o=r?W_(r):null,a=t.x+t.width/2-n.width/2,s=t.y+t.height/2-n.height/2,l;switch(i){case Ll: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 $l:l={x:t.x-n.width,y:s};break;default:l={x:t.x,y:t.y}}var c=i?WX(i):null;if(c!=null){var u=c==="y"?"height":"width";switch(o){case z_:l[c]=l[c]-(t[u]/2-n[u]/2);break;case fT:l[c]=l[c]+(t[u]/2-n[u]/2);break}}return l}function pT(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?Non:s,c=n.rootBoundary,u=c===void 0?L5e:c,d=n.elementContext,f=d===void 0?XE:d,p=n.altBoundary,m=p===void 0?!1:p,g=n.padding,v=g===void 0?0:g,y=U5e(typeof v!="number"?v:z5e(v,hO)),b=f===XE?Mon:XE,_=e.rects.popper,S=e.elements[m?b:f],x=uan(iv(S)?S:S.contextElement||zg(e.elements.popper),l,u,a),E=G_(e.elements.reference),C=G5e({reference:E,element:_,placement:i}),w=GV(Object.assign({},_,C)),O=f===XE?w:E,T={top:x.top-O.top+y.top,bottom:O.bottom-x.bottom+y.bottom,left:x.left-O.left+y.left,right:O.right-x.right+y.right},A=e.modifiersData.offset;if(f===XE&&A){var I=A[i];Object.keys(T).forEach(function(N){var D=[Eu,Su].indexOf(N)>=0?1:-1,M=[Ll,Su].indexOf(N)>=0?"y":"x";T[N]+=I[M]*D})}return T}function dan(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?$5e:l,u=W_(r),d=u?s?Sfe:Sfe.filter(function(m){return W_(m)===u}):hO,f=d.filter(function(m){return c.indexOf(m)>=0});f.length===0&&(f=d);var p=f.reduce(function(m,g){return m[g]=pT(e,{placement:g,boundary:i,rootBoundary:o,padding:a})[Mf(g)],m},{});return Object.keys(p).sort(function(m,g){return p[m]-p[g]})}function fan(e){if(Mf(e)===zX)return[];var t=hN(e);return[xfe(e),t,xfe(t)]}function pan(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,p=n.flipVariations,m=p===void 0?!0:p,g=n.allowedAutoPlacements,v=t.options.placement,y=Mf(v),b=y===v,_=l||(b||!m?[hN(v)]:fan(v)),S=[v].concat(_).reduce(function(X,Q){return X.concat(Mf(Q)===zX?dan(t,{placement:Q,boundary:u,rootBoundary:d,padding:c,flipVariations:m,allowedAutoPlacements:g}):Q)},[]),x=t.rects.reference,E=t.rects.popper,C=new Map,w=!0,O=S[0],T=0;T<S.length;T++){var A=S[T],I=Mf(A),N=W_(A)===z_,D=[Ll,Su].indexOf(I)>=0,M=D?"width":"height",k=pT(t,{placement:A,boundary:u,rootBoundary:d,altBoundary:f,padding:c}),P=D?N?Eu:$l:N?Su:Ll;x[M]>E[M]&&(P=hN(P));var B=hN(P),G=[];if(o&&G.push(k[I]<=0),s&&G.push(k[P]<=0,k[B]<=0),G.every(function(X){return X})){O=A,w=!1;break}C.set(A,G)}if(w)for(var L=m?3:1,W=function(X){var Q=S.find(function(ue){var ee=C.get(ue);if(ee)return ee.slice(0,X).every(function(K){return K})});if(Q)return O=Q,"break"},j=L;j>0;j--){var H=W(j);if(H==="break")break}t.placement!==O&&(t.modifiersData[r]._skip=!0,t.placement=O,t.reset=!0)}}const han={name:"flip",enabled:!0,phase:"main",fn:pan,requiresIfExists:["offset"],data:{_skip:!1}};function Tfe(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 Ofe(e){return[Ll,Eu,Su,$l].some(function(t){return e[t]>=0})}function man(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,o=t.modifiersData.preventOverflow,a=pT(t,{elementContext:"reference"}),s=pT(t,{altBoundary:!0}),l=Tfe(a,r),c=Tfe(s,i,o),u=Ofe(l),d=Ofe(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 gan={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:man};function van(e,t,n){var r=Mf(e),i=[$l,Ll].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,[$l,Eu].indexOf(r)>=0?{x:s,y:a}:{x:a,y:s}}function ban(e){var t=e.state,n=e.options,r=e.name,i=n.offset,o=i===void 0?[0,0]:i,a=$5e.reduce(function(u,d){return u[d]=van(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 yan={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:ban};function _an(e){var t=e.state,n=e.name;t.modifiersData[n]=G5e({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}const San={name:"popperOffsets",enabled:!0,phase:"read",fn:_an,data:{}};function Ean(e){return e==="x"?"y":"x"}function Can(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,p=f===void 0?!0:f,m=n.tetherOffset,g=m===void 0?0:m,v=pT(t,{boundary:l,rootBoundary:c,padding:d,altBoundary:u}),y=Mf(t.placement),b=W_(t.placement),_=!b,S=WX(y),x=Ean(S),E=t.modifiersData.popperOffsets,C=t.rects.reference,w=t.rects.popper,O=typeof g=="function"?g(Object.assign({},t.rects,{placement:t.placement})):g,T=typeof O=="number"?{mainAxis:O,altAxis:O}:Object.assign({mainAxis:0,altAxis:0},O),A=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,I={x:0,y:0};if(E){if(o){var N,D=S==="y"?Ll:$l,M=S==="y"?Su:Eu,k=S==="y"?"height":"width",P=E[S],B=P+v[D],G=P-v[M],L=p?-w[k]/2:0,W=b===z_?C[k]:w[k],j=b===z_?-w[k]:-C[k],H=t.elements.arrow,X=p&&H?GX(H):{width:0,height:0},Q=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:j5e(),ue=Q[D],ee=Q[M],K=Tx(0,C[k],X[k]),se=_?C[k]/2-L-K-ue-T.mainAxis:W-K-ue-T.mainAxis,le=_?-C[k]/2+L+K+ee+T.mainAxis:j+K+ee+T.mainAxis,oe=t.elements.arrow&&mO(t.elements.arrow),ne=oe?S==="y"?oe.clientTop||0:oe.clientLeft||0:0,he=(N=A==null?void 0:A[S])!=null?N:0,me=P+se-he-ne,ce=P+le-he,re=Tx(p?qM(B,me):B,P,p?C1(G,ce):G);E[S]=re,I[S]=re-P}if(s){var ve,be=S==="x"?Ll:$l,xe=S==="x"?Su:Eu,we=E[x],de=x==="y"?"height":"width",Ee=we+v[be],Ne=we-v[xe],Te=[Ll,$l].indexOf(y)!==-1,Ve=(ve=A==null?void 0:A[x])!=null?ve:0,q=Te?Ee:we-C[de]-w[de]-Ve+T.altAxis,U=Te?we+C[de]+w[de]-Ve-T.altAxis:Ne,Y=p&&Te?qon(q,we,U):Tx(p?q:Ee,we,p?U:Ne);E[x]=Y,I[x]=Y-we}t.modifiersData[r]=I}}const xan={name:"preventOverflow",enabled:!0,phase:"main",fn:Can,requiresIfExists:["offset"]};function wan(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function Tan(e){return e===wc(e)||!uu(e)?qX(e):wan(e)}function Oan(e){var t=e.getBoundingClientRect(),n=V_(t.width)/e.offsetWidth||1,r=V_(t.height)/e.offsetHeight||1;return n!==1||r!==1}function Ran(e,t,n){n===void 0&&(n=!1);var r=uu(t),i=uu(t)&&Oan(t),o=zg(t),a=G_(e,i,n),s={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&((zf(t)!=="body"||KX(o))&&(s=Tan(t)),uu(t)?(l=G_(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):o&&(l.x=YX(o))),{x:a.left+s.scrollLeft-l.x,y:a.top+s.scrollTop-l.y,width:a.width,height:a.height}}function Aan(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 Ian(e){var t=Aan(e);return Uon.reduce(function(n,r){return n.concat(t.filter(function(i){return i.phase===r}))},[])}function Nan(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function Man(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 Rfe={placement:"bottom",modifiers:[],strategy:"absolute"};function Afe(){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 kan(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,i=t.defaultOptions,o=i===void 0?Rfe:i;return function(a,s,l){l===void 0&&(l=o);var c={placement:"bottom",orderedModifiers:[],options:Object.assign({},Rfe,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:iv(a)?Ox(a):a.contextElement?Ox(a.contextElement):[],popper:Ox(s)};var y=Ian(Man([].concat(r,c.options.modifiers)));return c.orderedModifiers=y.filter(function(b){return b.enabled}),p(),f.update()},forceUpdate:function(){if(!d){var g=c.elements,v=g.reference,y=g.popper;if(Afe(v,y)){c.rects={reference:Ran(v,mO(y),c.options.strategy==="fixed"),popper:GX(y)},c.reset=!1,c.placement=c.options.placement,c.orderedModifiers.forEach(function(w){return c.modifiersData[w.name]=Object.assign({},w.data)});for(var b=0;b<c.orderedModifiers.length;b++){if(c.reset===!0){c.reset=!1,b=-1;continue}var _=c.orderedModifiers[b],S=_.fn,x=_.options,E=x===void 0?{}:x,C=_.name;typeof S=="function"&&(c=S({state:c,options:E,name:C,instance:f})||c)}}}},update:Nan(function(){return new Promise(function(g){f.forceUpdate(),g(c)})}),destroy:function(){m(),d=!0}};if(!Afe(a,s))return f;f.setOptions(l).then(function(g){!d&&l.onFirstUpdate&&l.onFirstUpdate(g)});function p(){c.orderedModifiers.forEach(function(g){var v=g.name,y=g.options,b=y===void 0?{}:y,_=g.effect;if(typeof _=="function"){var S=_({state:c,name:v,instance:f,options:b}),x=function(){};u.push(S||x)}})}function m(){u.forEach(function(g){return g()}),u=[]}return f}}var Pan=[ran,San,tan,F5e,yan,han,xan,Xon,gan],Dan=kan({defaultModifiers:Pan}),Yc={},Lan="tippy-box",W5e="tippy-content",$an="tippy-backdrop",q5e="tippy-arrow",Y5e="tippy-svg-arrow",y0={passive:!0,capture:!0},K5e=function(){return document.body};function Fan(e,t){return{}.hasOwnProperty.call(e,t)}function a7(e,t,n){if(Array.isArray(e)){var r=e[t];return r??(Array.isArray(n)?n[t]:n)}return e}function QX(e,t){var n={}.toString.call(e);return n.indexOf("[object")===0&&n.indexOf(t+"]")>-1}function Q5e(e,t){return typeof e=="function"?e.apply(void 0,t):e}function Ife(e,t){if(t===0)return e;var n;return function(r){clearTimeout(n),n=setTimeout(function(){e(r)},t)}}function Ban(e,t){var n=Object.assign({},e);return t.forEach(function(r){delete n[r]}),n}function Han(e){return e.split(/\s+/).filter(Boolean)}function Mb(e){return[].concat(e)}function Nfe(e,t){e.indexOf(t)===-1&&e.push(t)}function jan(e){return e.filter(function(t,n){return e.indexOf(t)===n})}function Uan(e){return e.split("-")[0]}function YM(e){return[].slice.call(e)}function Mfe(e){return Object.keys(e).reduce(function(t,n){return e[n]!==void 0&&(t[n]=e[n]),t},{})}function Rx(){return document.createElement("div")}function hT(e){return["Element","Fragment"].some(function(t){return QX(e,t)})}function zan(e){return QX(e,"NodeList")}function Van(e){return QX(e,"MouseEvent")}function Gan(e){return!!(e&&e._tippy&&e._tippy.reference===e)}function Wan(e){return hT(e)?[e]:zan(e)?YM(e):Array.isArray(e)?e:YM(document.querySelectorAll(e))}function s7(e,t){e.forEach(function(n){n&&(n.style.transitionDuration=t+"ms")})}function kfe(e,t){e.forEach(function(n){n&&n.setAttribute("data-state",t)})}function qan(e){var t,n=Mb(e),r=n[0];return r!=null&&(t=r.ownerDocument)!=null&&t.body?r.ownerDocument:document}function Yan(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=Uan(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,p=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+p>l,b=n-o.right-m>l;return g||v||y||b})}function l7(e,t,n){var r=t+"EventListener";["transitionend","webkitTransitionEnd"].forEach(function(i){e[r](i,n)})}function Pfe(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 hf={isTouch:!1},Dfe=0;function Kan(){hf.isTouch||(hf.isTouch=!0,window.performance&&document.addEventListener("mousemove",X5e))}function X5e(){var e=performance.now();e-Dfe<20&&(hf.isTouch=!1,document.removeEventListener("mousemove",X5e)),Dfe=e}function Qan(){var e=document.activeElement;if(Gan(e)){var t=e._tippy;e.blur&&!t.state.isVisible&&e.blur()}}function Xan(){document.addEventListener("touchstart",Kan,y0),window.addEventListener("blur",Qan)}var Zan=typeof window<"u"&&typeof document<"u",Jan=Zan?!!window.msCrypto:!1;function vb(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 Lfe(e){var t=/[ \t]{2,}/g,n=/^[ \t]*/gm;return e.replace(t," ").replace(n,"").trim()}function esn(e){return Lfe(`
%ctippy.js
%c`+Lfe(e)+`
%c👷 This is a development-only message. It will be removed in production.
`)}function Z5e(e){return[esn(e),"color: #00C584; font-size: 1.3em; font-weight: bold;","line-height: 1.5","color: #a6a095;"]}var mT;Yc.NODE_ENV!=="production"&&tsn();function tsn(){mT=new Set}function kp(e,t){if(e&&!mT.has(t)){var n;mT.add(t),(n=console).warn.apply(n,Z5e(t))}}function WV(e,t){if(e&&!mT.has(t)){var n;mT.add(t),(n=console).error.apply(n,Z5e(t))}}function nsn(e){var t=!e,n=Object.prototype.toString.call(e)==="[object Object]"&&!e.addEventListener;WV(t,["tippy() was passed","`"+String(e)+"`","as its targets (first) argument. Valid types are: String, Element,","Element[], or NodeList."].join(" ")),WV(n,["tippy() was passed a plain object which is not supported as an argument","for virtual positioning. Use props.getReferenceClientRect instead."].join(" "))}var J5e={animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},rsn={allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999},fc=Object.assign({appendTo:K5e,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},J5e,rsn),isn=Object.keys(fc),osn=function(e){Yc.NODE_ENV!=="production"&&tPe(e,[]);var t=Object.keys(e);t.forEach(function(n){fc[n]=e[n]})};function ePe(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=fc[o])!=null?s:a}return r},{});return Object.assign({},e,n)}function asn(e,t){var n=t?Object.keys(ePe(Object.assign({},fc,{plugins:t}))):isn,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 $fe(e,t){var n=Object.assign({},t,{content:Q5e(t.content,[e])},t.ignoreAttributes?{}:asn(e,t.plugins));return n.aria=Object.assign({},fc.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 tPe(e,t){e===void 0&&(e={}),t===void 0&&(t=[]);var n=Object.keys(e);n.forEach(function(r){var i=Ban(fc,Object.keys(J5e)),o=!Fan(i,r);o&&(o=t.filter(function(a){return a.name===r}).length===0),kp(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 ssn=function(){return"innerHTML"};function qV(e,t){e[ssn()]=t}function Ffe(e){var t=Rx();return e===!0?t.className=q5e:(t.className=Y5e,hT(e)?t.appendChild(e):qV(t,e)),t}function Bfe(e,t){hT(t.content)?(qV(e,""),e.appendChild(t.content)):typeof t.content!="function"&&(t.allowHTML?qV(e,t.content):e.textContent=t.content)}function YV(e){var t=e.firstElementChild,n=YM(t.children);return{box:t,content:n.find(function(r){return r.classList.contains(W5e)}),arrow:n.find(function(r){return r.classList.contains(q5e)||r.classList.contains(Y5e)}),backdrop:n.find(function(r){return r.classList.contains($an)})}}function nPe(e){var t=Rx(),n=Rx();n.className=Lan,n.setAttribute("data-state","hidden"),n.setAttribute("tabindex","-1");var r=Rx();r.className=W5e,r.setAttribute("data-state","hidden"),Bfe(r,e.props),t.appendChild(n),n.appendChild(r),i(e.props,e.props);function i(o,a){var s=YV(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)&&Bfe(c,e.props),a.arrow?u?o.arrow!==a.arrow&&(l.removeChild(u),l.appendChild(Ffe(a.arrow))):l.appendChild(Ffe(a.arrow)):u&&l.removeChild(u)}return{popper:t,onUpdate:i}}nPe.$$tippy=!0;var lsn=1,dA=[],c7=[];function csn(e,t){var n=$fe(e,Object.assign({},fc,ePe(Mfe(t)))),r,i,o,a=!1,s=!1,l=!1,c=!1,u,d,f,p=[],m=Ife(me,n.interactiveDebounce),g,v=lsn++,y=null,b=jan(n.plugins),_={isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},S={id:v,reference:e,popper:Rx(),popperInstance:y,props:n,state:_,plugins:b,clearDelayTimeouts:q,setProps:U,setContent:Y,show:ae,hide:ye,hideWithInteractivity:fe,enable:Te,disable:Ve,unmount:Ae,destroy:We};if(!n.render)return Yc.NODE_ENV!=="production"&&WV(!0,"render() function has not been supplied."),S;var x=n.render(S),E=x.popper,C=x.onUpdate;E.setAttribute("data-tippy-root",""),E.id="tippy-"+S.id,S.popper=E,e._tippy=S,E._tippy=S;var w=b.map(function(ie){return ie.fn(S)}),O=e.hasAttribute("aria-expanded");return oe(),L(),P(),B("onCreate",[S]),n.showOnCreate&&Ee(),E.addEventListener("mouseenter",function(){S.props.interactive&&S.state.isVisible&&S.clearDelayTimeouts()}),E.addEventListener("mouseleave",function(){S.props.interactive&&S.props.trigger.indexOf("mouseenter")>=0&&D().addEventListener("mousemove",m)}),S;function T(){var ie=S.props.touch;return Array.isArray(ie)?ie:[ie,0]}function A(){return T()[0]==="hold"}function I(){var ie;return!!((ie=S.props.render)!=null&&ie.$$tippy)}function N(){return g||e}function D(){var ie=N().parentNode;return ie?qan(ie):document}function M(){return YV(E)}function k(ie){return S.state.isMounted&&!S.state.isVisible||hf.isTouch||u&&u.type==="focus"?0:a7(S.props.delay,ie?0:1,fc.delay)}function P(ie){ie===void 0&&(ie=!1),E.style.pointerEvents=S.props.interactive&&!ie?"":"none",E.style.zIndex=""+S.props.zIndex}function B(ie,Be,Fe){if(Fe===void 0&&(Fe=!0),w.forEach(function(Ke){Ke[ie]&&Ke[ie].apply(Ke,Be)}),Fe){var Pe;(Pe=S.props)[ie].apply(Pe,Be)}}function G(){var ie=S.props.aria;if(ie.content){var Be="aria-"+ie.content,Fe=E.id,Pe=Mb(S.props.triggerTarget||e);Pe.forEach(function(Ke){var tt=Ke.getAttribute(Be);if(S.state.isVisible)Ke.setAttribute(Be,tt?tt+" "+Fe:Fe);else{var Ge=tt&&tt.replace(Fe,"").trim();Ge?Ke.setAttribute(Be,Ge):Ke.removeAttribute(Be)}})}}function L(){if(!(O||!S.props.aria.expanded)){var ie=Mb(S.props.triggerTarget||e);ie.forEach(function(Be){S.props.interactive?Be.setAttribute("aria-expanded",S.state.isVisible&&Be===N()?"true":"false"):Be.removeAttribute("aria-expanded")})}}function W(){D().removeEventListener("mousemove",m),dA=dA.filter(function(ie){return ie!==m})}function j(ie){if(!(hf.isTouch&&(l||ie.type==="mousedown"))){var Be=ie.composedPath&&ie.composedPath()[0]||ie.target;if(!(S.props.interactive&&Pfe(E,Be))){if(Mb(S.props.triggerTarget||e).some(function(Fe){return Pfe(Fe,Be)})){if(hf.isTouch||S.state.isVisible&&S.props.trigger.indexOf("click")>=0)return}else B("onClickOutside",[S,ie]);S.props.hideOnClick===!0&&(S.clearDelayTimeouts(),S.hide(),s=!0,setTimeout(function(){s=!1}),S.state.isMounted||ue())}}}function H(){l=!0}function X(){l=!1}function Q(){var ie=D();ie.addEventListener("mousedown",j,!0),ie.addEventListener("touchend",j,y0),ie.addEventListener("touchstart",X,y0),ie.addEventListener("touchmove",H,y0)}function ue(){var ie=D();ie.removeEventListener("mousedown",j,!0),ie.removeEventListener("touchend",j,y0),ie.removeEventListener("touchstart",X,y0),ie.removeEventListener("touchmove",H,y0)}function ee(ie,Be){se(ie,function(){!S.state.isVisible&&E.parentNode&&E.parentNode.contains(E)&&Be()})}function K(ie,Be){se(ie,Be)}function se(ie,Be){var Fe=M().box;function Pe(Ke){Ke.target===Fe&&(l7(Fe,"remove",Pe),Be())}if(ie===0)return Be();l7(Fe,"remove",d),l7(Fe,"add",Pe),d=Pe}function le(ie,Be,Fe){Fe===void 0&&(Fe=!1);var Pe=Mb(S.props.triggerTarget||e);Pe.forEach(function(Ke){Ke.addEventListener(ie,Be,Fe),p.push({node:Ke,eventType:ie,handler:Be,options:Fe})})}function oe(){A()&&(le("touchstart",he,{passive:!0}),le("touchend",ce,{passive:!0})),Han(S.props.trigger).forEach(function(ie){if(ie!=="manual")switch(le(ie,he),ie){case"mouseenter":le("mouseleave",ce);break;case"focus":le(Jan?"focusout":"blur",re);break;case"focusin":le("focusout",re);break}})}function ne(){p.forEach(function(ie){var Be=ie.node,Fe=ie.eventType,Pe=ie.handler,Ke=ie.options;Be.removeEventListener(Fe,Pe,Ke)}),p=[]}function he(ie){var Be,Fe=!1;if(!(!S.state.isEnabled||ve(ie)||s)){var Pe=((Be=u)==null?void 0:Be.type)==="focus";u=ie,g=ie.currentTarget,L(),!S.state.isVisible&&Van(ie)&&dA.forEach(function(Ke){return Ke(ie)}),ie.type==="click"&&(S.props.trigger.indexOf("mouseenter")<0||a)&&S.props.hideOnClick!==!1&&S.state.isVisible?Fe=!0:Ee(ie),ie.type==="click"&&(a=!Fe),Fe&&!Pe&&Ne(ie)}}function me(ie){var Be=ie.target,Fe=N().contains(Be)||E.contains(Be);if(!(ie.type==="mousemove"&&Fe)){var Pe=de().concat(E).map(function(Ke){var tt,Ge=Ke._tippy,Nt=(tt=Ge.popperInstance)==null?void 0:tt.state;return Nt?{popperRect:Ke.getBoundingClientRect(),popperState:Nt,props:n}:null}).filter(Boolean);Yan(Pe,ie)&&(W(),Ne(ie))}}function ce(ie){var Be=ve(ie)||S.props.trigger.indexOf("click")>=0&&a;if(!Be){if(S.props.interactive){S.hideWithInteractivity(ie);return}Ne(ie)}}function re(ie){S.props.trigger.indexOf("focusin")<0&&ie.target!==N()||S.props.interactive&&ie.relatedTarget&&E.contains(ie.relatedTarget)||Ne(ie)}function ve(ie){return hf.isTouch?A()!==ie.type.indexOf("touch")>=0:!1}function be(){xe();var ie=S.props,Be=ie.popperOptions,Fe=ie.placement,Pe=ie.offset,Ke=ie.getReferenceClientRect,tt=ie.moveTransition,Ge=I()?YV(E).arrow:null,Nt=Ke?{getBoundingClientRect:Ke,contextElement:Ke.contextElement||N()}:e,lt={name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(It){var ct=It.state;if(I()){var Pt=M(),Rt=Pt.box;["placement","reference-hidden","escaped"].forEach(function(Tt){Tt==="placement"?Rt.setAttribute("data-placement",ct.placement):ct.attributes.popper["data-popper-"+Tt]?Rt.setAttribute("data-"+Tt,""):Rt.removeAttribute("data-"+Tt)}),ct.attributes.popper={}}}},st=[{name:"offset",options:{offset:Pe}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!tt}},lt];I()&&Ge&&st.push({name:"arrow",options:{element:Ge,padding:3}}),st.push.apply(st,(Be==null?void 0:Be.modifiers)||[]),S.popperInstance=Dan(Nt,E,Object.assign({},Be,{placement:Fe,onFirstUpdate:f,modifiers:st}))}function xe(){S.popperInstance&&(S.popperInstance.destroy(),S.popperInstance=null)}function we(){var ie=S.props.appendTo,Be,Fe=N();S.props.interactive&&ie===K5e||ie==="parent"?Be=Fe.parentNode:Be=Q5e(ie,[Fe]),Be.contains(E)||Be.appendChild(E),S.state.isMounted=!0,be(),Yc.NODE_ENV!=="production"&&kp(S.props.interactive&&ie===fc.appendTo&&Fe.nextElementSibling!==E,["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 de(){return YM(E.querySelectorAll("[data-tippy-root]"))}function Ee(ie){S.clearDelayTimeouts(),ie&&B("onTrigger",[S,ie]),Q();var Be=k(!0),Fe=T(),Pe=Fe[0],Ke=Fe[1];hf.isTouch&&Pe==="hold"&&Ke&&(Be=Ke),Be?r=setTimeout(function(){S.show()},Be):S.show()}function Ne(ie){if(S.clearDelayTimeouts(),B("onUntrigger",[S,ie]),!S.state.isVisible){ue();return}if(!(S.props.trigger.indexOf("mouseenter")>=0&&S.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(ie.type)>=0&&a)){var Be=k(!1);Be?i=setTimeout(function(){S.state.isVisible&&S.hide()},Be):o=requestAnimationFrame(function(){S.hide()})}}function Te(){S.state.isEnabled=!0}function Ve(){S.hide(),S.state.isEnabled=!1}function q(){clearTimeout(r),clearTimeout(i),cancelAnimationFrame(o)}function U(ie){if(Yc.NODE_ENV!=="production"&&kp(S.state.isDestroyed,vb("setProps")),!S.state.isDestroyed){B("onBeforeUpdate",[S,ie]),ne();var Be=S.props,Fe=$fe(e,Object.assign({},Be,Mfe(ie),{ignoreAttributes:!0}));S.props=Fe,oe(),Be.interactiveDebounce!==Fe.interactiveDebounce&&(W(),m=Ife(me,Fe.interactiveDebounce)),Be.triggerTarget&&!Fe.triggerTarget?Mb(Be.triggerTarget).forEach(function(Pe){Pe.removeAttribute("aria-expanded")}):Fe.triggerTarget&&e.removeAttribute("aria-expanded"),L(),P(),C&&C(Be,Fe),S.popperInstance&&(be(),de().forEach(function(Pe){requestAnimationFrame(Pe._tippy.popperInstance.forceUpdate)})),B("onAfterUpdate",[S,ie])}}function Y(ie){S.setProps({content:ie})}function ae(){Yc.NODE_ENV!=="production"&&kp(S.state.isDestroyed,vb("show"));var ie=S.state.isVisible,Be=S.state.isDestroyed,Fe=!S.state.isEnabled,Pe=hf.isTouch&&!S.props.touch,Ke=a7(S.props.duration,0,fc.duration);if(!(ie||Be||Fe||Pe)&&!N().hasAttribute("disabled")&&(B("onShow",[S],!1),S.props.onShow(S)!==!1)){if(S.state.isVisible=!0,I()&&(E.style.visibility="visible"),P(),Q(),S.state.isMounted||(E.style.transition="none"),I()){var tt=M(),Ge=tt.box,Nt=tt.content;s7([Ge,Nt],0)}f=function(){var lt;if(!(!S.state.isVisible||c)){if(c=!0,E.offsetHeight,E.style.transition=S.props.moveTransition,I()&&S.props.animation){var st=M(),It=st.box,ct=st.content;s7([It,ct],Ke),kfe([It,ct],"visible")}G(),L(),Nfe(c7,S),(lt=S.popperInstance)==null||lt.forceUpdate(),B("onMount",[S]),S.props.animation&&I()&&K(Ke,function(){S.state.isShown=!0,B("onShown",[S])})}},we()}}function ye(){Yc.NODE_ENV!=="production"&&kp(S.state.isDestroyed,vb("hide"));var ie=!S.state.isVisible,Be=S.state.isDestroyed,Fe=!S.state.isEnabled,Pe=a7(S.props.duration,1,fc.duration);if(!(ie||Be||Fe)&&(B("onHide",[S],!1),S.props.onHide(S)!==!1)){if(S.state.isVisible=!1,S.state.isShown=!1,c=!1,a=!1,I()&&(E.style.visibility="hidden"),W(),ue(),P(!0),I()){var Ke=M(),tt=Ke.box,Ge=Ke.content;S.props.animation&&(s7([tt,Ge],Pe),kfe([tt,Ge],"hidden"))}G(),L(),S.props.animation?I()&&ee(Pe,S.unmount):S.unmount()}}function fe(ie){Yc.NODE_ENV!=="production"&&kp(S.state.isDestroyed,vb("hideWithInteractivity")),D().addEventListener("mousemove",m),Nfe(dA,m),m(ie)}function Ae(){Yc.NODE_ENV!=="production"&&kp(S.state.isDestroyed,vb("unmount")),S.state.isVisible&&S.hide(),S.state.isMounted&&(xe(),de().forEach(function(ie){ie._tippy.unmount()}),E.parentNode&&E.parentNode.removeChild(E),c7=c7.filter(function(ie){return ie!==S}),S.state.isMounted=!1,B("onHidden",[S]))}function We(){Yc.NODE_ENV!=="production"&&kp(S.state.isDestroyed,vb("destroy")),!S.state.isDestroyed&&(S.clearDelayTimeouts(),S.unmount(),ne(),delete e._tippy,S.state.isDestroyed=!0,B("onDestroy",[S]))}}function xo(e,t){t===void 0&&(t={});var n=fc.plugins.concat(t.plugins||[]);Yc.NODE_ENV!=="production"&&(nsn(e),tPe(t,n)),Xan();var r=Object.assign({},t,{plugins:n}),i=Wan(e);if(Yc.NODE_ENV!=="production"){var o=hT(r.content),a=i.length>1;kp(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&&csn(c,r);return u&&l.push(u),l},[]);return hT(e)?s[0]:s}xo.defaultProps=fc;xo.setDefaultProps=osn;xo.currentInput=hf;Object.assign({},F5e,{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)}});xo.setDefaultProps({render:nPe});class oE extends ti{constructor(){super(...arguments),Qt(this,"tippyInstance"),Qt(this,"tippyEl"),Qt(this,"textEl"),Qt(this,"menuData",[]),Qt(this,"menuTextWidth","fit-content"),Qt(this,"defaultMenuIndex",0),Qt(this,"refreshMenuText",!0),Qt(this,"width","fit-content"),Qt(this,"dropDivWith","fit-content"),Qt(this,"dropDivHeight","fit-content"),Qt(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=xo(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.editor.aiEditor)&&this.tippyInstance.hide():(this.onDropdownItemClick(n),this.tippyInstance.hide())}),this.showItemsTip){const i=this.menuData[n];xo(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 xr=e=>typeof e=="string",ZE=()=>{let e,t;const n=new Promise((r,i)=>{e=r,t=i});return n.resolve=e,n.reject=t,n},Hfe=e=>e==null?"":""+e,usn=(e,t,n)=>{e.forEach(r=>{t[r]&&(n[r]=t[r])})},dsn=/###/g,jfe=e=>e&&e.indexOf("###")>-1?e.replace(dsn,"."):e,Ufe=e=>!e||xr(e),Ax=(e,t,n)=>{const r=xr(t)?t.split("."):t;let i=0;for(;i<r.length-1;){if(Ufe(e))return{};const o=jfe(r[i]);!e[o]&&n&&(e[o]=new n),Object.prototype.hasOwnProperty.call(e,o)?e=e[o]:e={},++i}return Ufe(e)?{}:{obj:e,k:jfe(r[i])}},zfe=(e,t,n)=>{const{obj:r,k:i}=Ax(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=Ax(e,a,Object);for(;s.obj===void 0&&a.length;)o=`${a[a.length-1]}.${o}`,a=a.slice(0,a.length-1),s=Ax(e,a,Object),s&&s.obj&&typeof s.obj[`${s.k}.${o}`]<"u"&&(s.obj=void 0);s.obj[`${s.k}.${o}`]=n},fsn=(e,t,n,r)=>{const{obj:i,k:o}=Ax(e,t,Object);i[o]=i[o]||[],i[o].push(n)},KM=(e,t)=>{const{obj:n,k:r}=Ax(e,t);if(n)return n[r]},psn=(e,t,n)=>{const r=KM(e,n);return r!==void 0?r:KM(t,n)},rPe=(e,t,n)=>{for(const r in t)r!=="__proto__"&&r!=="constructor"&&(r in e?xr(e[r])||e[r]instanceof String||xr(t[r])||t[r]instanceof String?n&&(e[r]=t[r]):rPe(e[r],t[r],n):e[r]=t[r]);return e},bb=e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var hsn={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};const msn=e=>xr(e)?e.replace(/[&<>"'\/]/g,t=>hsn[t]):e;class gsn{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 vsn=[" ",",","?","!",";"],bsn=new gsn(20),ysn=(e,t,n)=>{t=t||"",n=n||"";const r=vsn.filter(a=>t.indexOf(a)<0&&n.indexOf(a)<0);if(r.length===0)return!0;const i=bsn.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},KV=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},QM=e=>e&&e.replace("_","-"),_sn={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 XM{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||_sn,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:(xr(t[0])&&(t[0]=`${r}${this.prefix} ${t[0]}`),this.logger[n](t))}create(t){return new XM(this.logger,{prefix:`${this.prefix}:${t}:`,...this.options})}clone(t){return t=t||this.options,t.prefix=t.prefix||this.prefix,new XM(this.logger,t)}}var wf=new XM;class p8{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 Vfe extends p8{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):xr(r)&&o?s.push(...r.split(o)):s.push(r)));const l=KM(this.data,s);return!l&&!n&&!r&&t.indexOf(".")>-1&&(t=s[0],n=s[1],r=s.slice(2).join(".")),l||!a||!xr(r)?l:KV(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),zfe(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)(xr(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=KM(this.data,s)||{};a.skipCopy||(r=JSON.parse(JSON.stringify(r))),i?rPe(l,r,o):l={...l,...r},zfe(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 iPe={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 Gfe={};class ZM extends p8{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(),usn(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],t,this),this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=wf.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&&!ysn(t,r,i);if(a&&!s){const l=t.match(this.interpolator.nestingRegexp);if(l&&l.length>0)return{key:t,namespaces:xr(o)?[o]: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{key:t,namespaces:xr(o)?[o]: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 S=n.nsSeparator||this.options.nsSeparator;return i?{res:`${l}${S}${a}`,usedKey:a,exactUsedKey:a,usedLng:c,usedNS:l,usedParams:this.getUsedParamsDetails(n)}:`${l}${S}${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 p=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,_=!xr(f)&&typeof f!="boolean"&&typeof f!="number";if(b&&f&&_&&v.indexOf(g)<0&&!(xr(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 S=this.options.returnedObjectHandler?this.options.returnedObjectHandler(p,f,{...n,ns:s}):`key '${a} (${this.language})' returned an object instead of string.`;return i?(d.res=S,d.usedParams=this.getUsedParamsDetails(n),d):S}if(o){const S=Array.isArray(f),x=S?[]:{},E=S?m:p;for(const C in f)if(Object.prototype.hasOwnProperty.call(f,C)){const w=`${E}${o}${C}`;x[C]=this.translate(w,{...n,joinArrays:!1,ns:s}),x[C]===w&&(x[C]=f[C])}f=x}}else if(b&&xr(y)&&Array.isArray(f))f=f.join(y),f&&(f=this.extendTranslation(f,t,n,r));else{let S=!1,x=!1;const E=n.count!==void 0&&!xr(n.count),C=ZM.hasDefaultValue(n),w=E?this.pluralResolver.getSuffix(c,n.count,n):"",O=n.ordinal&&E?this.pluralResolver.getSuffix(c,n.count,{ordinal:!1}):"",T=E&&!n.ordinal&&n.count===0&&this.pluralResolver.shouldUseIntlApi(),A=T&&n[`defaultValue${this.options.pluralSeparator}zero`]||n[`defaultValue${w}`]||n[`defaultValue${O}`]||n.defaultValue;!this.isValidLookup(f)&&C&&(S=!0,f=A),this.isValidLookup(f)||(x=!0,f=a);const I=(n.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&x?void 0:f,N=C&&A!==f&&this.options.updateMissing;if(x||S||N){if(this.logger.log(N?"updateKey":"missingKey",c,l,a,N?A:f),o){const P=this.resolve(a,{...n,keySeparator:!1});P&&P.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 D=[];const M=this.languageUtils.getFallbackCodes(this.options.fallbackLng,n.lng||this.language);if(this.options.saveMissingTo==="fallback"&&M&&M[0])for(let P=0;P<M.length;P++)D.push(M[P]);else this.options.saveMissingTo==="all"?D=this.languageUtils.toResolveHierarchy(n.lng||this.language):D.push(n.lng||this.language);const k=(P,B,G)=>{const L=C&&G!==f?G:I;this.options.missingKeyHandler?this.options.missingKeyHandler(P,l,B,L,N,n):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(P,l,B,L,N,n),this.emit("missingKey",P,l,B,f)};this.options.saveMissing&&(this.options.saveMissingPlurals&&E?D.forEach(P=>{const B=this.pluralResolver.getSuffixes(P,n);T&&n[`defaultValue${this.options.pluralSeparator}zero`]&&B.indexOf(`${this.options.pluralSeparator}zero`)<0&&B.push(`${this.options.pluralSeparator}zero`),B.forEach(G=>{k([P],a+G,n[`defaultValue${G}`]||A)})}):k(D,a,A))}f=this.extendTranslation(f,t,n,d,r),x&&f===a&&this.options.appendNamespaceToMissingKey&&(f=`${l}:${a}`),(x||S)&&this.options.parseMissingKeyHandler&&(this.options.compatibilityAPI!=="v1"?f=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${l}:${a}`:a,S?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=xr(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&&!xr(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),p=f&&f.length;u<p&&(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,p=new Array(f),m=0;m<f;m++)p[m]=arguments[m];return o&&o[0]===p[0]&&!r.context?(a.logger.warn(`It seems you are nesting recursively key: ${p[0]} in key: ${n[0]}`),null):a.translate(...p,n)},r)),r.interpolation&&this.interpolator.reset()}const s=r.postProcess||this.options.postProcess,l=xr(s)?[s]:s;return t!=null&&l&&l.length&&r.applyPostProcessor!==!1&&(t=iPe.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 xr(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&&!xr(n.count),p=f&&!n.ordinal&&n.count===0&&this.pluralResolver.shouldUseIntlApi(),m=n.context!==void 0&&(xr(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,!Gfe[`${g[0]}-${v}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(s)&&(Gfe[`${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 S;f&&(S=this.pluralResolver.getSuffix(y,n.count,n));const x=`${this.options.pluralSeparator}zero`,E=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(f&&(b.push(u+S),n.ordinal&&S.indexOf(E)===0&&b.push(u+S.replace(E,this.options.pluralSeparator)),p&&b.push(u+x)),m){const C=`${u}${this.options.contextSeparator}${n.context}`;b.push(C),f&&(b.push(C+S),n.ordinal&&S.indexOf(E)===0&&b.push(C+S.replace(E,this.options.pluralSeparator)),p&&b.push(C+x))}}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&&!xr(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 u7=e=>e.charAt(0).toUpperCase()+e.slice(1);class Wfe{constructor(t){this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=wf.create("languageUtils")}getScriptPartFromCode(t){if(t=QM(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=QM(t),!t||t.indexOf("-")<0)return t;const n=t.split("-");return this.formatLanguageCode(n[0])}formatLanguageCode(t){if(xr(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]=u7(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]=u7(r[1].toLowerCase())),n.indexOf(r[2].toLowerCase())>-1&&(r[2]=u7(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)),xr(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 xr(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))):xr(t)&&o(this.formatLanguageCode(t)),r.forEach(a=>{i.indexOf(a)<0&&o(this.formatLanguageCode(a))}),i}}let Ssn=[{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}],Esn={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 Csn=["v1","v2","v3"],xsn=["v4"],qfe={zero:0,one:1,two:2,few:3,many:4,other:5},wsn=()=>{const e={};return Ssn.forEach(t=>{t.lngs.forEach(n=>{e[n]={numbers:t.nr,plurals:Esn[t.fc]}})}),e};class Tsn{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.languageUtils=t,this.options=n,this.logger=wf.create("pluralResolver"),(!this.options.compatibilityJSON||xsn.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=wsn(),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()){const r=QM(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];let a;try{a=new Intl.PluralRules(r,{type:i})}catch{if(!t.match(/-|_/))return;const s=this.languageUtils.getLanguagePartFromCode(t);a=this.getRule(s,n)}return this.pluralRulesCache[o]=a,a}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)=>qfe[i]-qfe[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!Csn.includes(this.options.compatibilityJSON)}}const Yfe=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=psn(e,t,n);return!o&&i&&xr(n)&&(o=KV(e,n,r),o===void 0&&(o=KV(t,n,r))),o},d7=e=>e.replace(/\$/g,"$$$$");class Osn{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=wf.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:p,nestingSuffix:m,nestingSuffixEscaped:g,nestingOptionsSeparator:v,maxReplaces:y,alwaysFormat:b}=t.interpolation;this.escape=n!==void 0?n:msn,this.escapeValue=r!==void 0?r:!0,this.useRawValueToEscape=i!==void 0?i:!1,this.prefix=o?bb(o):a||"{{",this.suffix=s?bb(s):l||"}}",this.formatSeparator=c||",",this.unescapePrefix=u?"":d||"-",this.unescapeSuffix=this.unescapePrefix?"":u||"",this.nestingPrefix=f?bb(f):p||bb("$t("),this.nestingSuffix=m?bb(m):g||bb(")"),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=Yfe(n,l,f,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(v,void 0,r,{...i,...n,interpolationkey:f}):v}const p=f.split(this.formatSeparator),m=p.shift().trim(),g=p.join(this.formatSeparator).trim();return this.format(Yfe(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=>d7(f)},{regex:this.regexp,safeValue:f=>this.escapeValue?d7(this.escape(f)):d7(f)}].forEach(f=>{for(s=0;o=f.regex.exec(t);){const p=o[1].trim();if(a=c(p),a===void 0)if(typeof u=="function"){const g=u(t,o,i);a=xr(g)?g:""}else if(i&&Object.prototype.hasOwnProperty.call(i,p))a="";else if(d){a=o[0];continue}else this.logger.warn(`missed to pass in variable ${p} for interpolating ${t}`),a="";else!xr(a)&&!this.useRawValueToEscape&&(a=Hfe(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 p=f.match(/'/g),m=f.match(/"/g);(p&&p.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&&!xr(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&&!xr(o))return o;xr(o)||(o=Hfe(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 Rsn=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}},yb=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(QM(r),i),t[a]=s),s(n)}};class Asn{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=wf.create("formatter"),this.options=t,this.formats={number:yb((n,r)=>{const i=new Intl.NumberFormat(n,{...r});return o=>i.format(o)}),currency:yb((n,r)=>{const i=new Intl.NumberFormat(n,{...r,style:"currency"});return o=>i.format(o)}),datetime:yb((n,r)=>{const i=new Intl.DateTimeFormat(n,{...r});return o=>i.format(o)}),relativetime:yb((n,r)=>{const i=new Intl.RelativeTimeFormat(n,{...r});return o=>i.format(o,r.range||"day")}),list:yb((n,r)=>{const i=new Intl.ListFormat(n,{...r});return o=>i.format(o)})},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()]=yb(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}=Rsn(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 Isn=(e,t)=>{e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)};class Nsn extends p8{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=wf.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=>{fsn(l.loaded,[o],a),Isn(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();xr(t)&&(t=this.languageUtils.toResolveHierarchy(t)),xr(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 Kfe=()=>({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]),xr(e[1])&&(t.defaultValue=e[1]),xr(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}}),Qfe=e=>(xr(e.ns)&&(e.ns=[e.ns]),xr(e.fallbackLng)&&(e.fallbackLng=[e.fallbackLng]),xr(e.fallbackNS)&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e),fA=()=>{},Msn=e=>{Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(t=>{typeof e[t]=="function"&&(e[t]=e[t].bind(e))})};class gT extends p8{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;if(super(),this.options=Qfe(t),this.services={},this.logger=wf,this.modules={external:[]},Msn(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&&(xr(n.ns)?n.defaultNS=n.ns:n.ns.indexOf("translation")<0&&(n.defaultNS=n.ns[0]));const i=Kfe();this.options={...i,...this.options,...Qfe(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?wf.init(o(this.modules.logger),this.options):wf.init(null,this.options);let l;this.modules.formatter?l=this.modules.formatter:typeof Intl<"u"&&(l=Asn);const c=new Wfe(this.options);this.store=new Vfe(this.options.resources,this.options);const u=this.services;u.logger=wf,u.resourceStore=this.store,u.languageUtils=c,u.pluralResolver=new Tsn(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 Osn(this.options),u.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},u.backendConnector=new Nsn(o(this.modules.backend),u.resourceStore,u,this.options),u.backendConnector.on("*",function(d){for(var f=arguments.length,p=new Array(f>1?f-1:0),m=1;m<f;m++)p[m-1]=arguments[m];t.emit(d,...p)}),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 ZM(this.services,this.options),this.translator.on("*",function(d){for(var f=arguments.length,p=new Array(f>1?f-1:0),m=1;m<f;m++)p[m-1]=arguments[m];t.emit(d,...p)}),this.modules.external.forEach(d=>{d.init&&d.init(this)})}if(this.format=this.options.interpolation.format,r||(r=fA),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=ZE(),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]:fA;const r=xr(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=ZE();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=fA),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"&&iPe.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=ZE();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=xr(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 p;return l.keyPrefix&&Array.isArray(a)?p=a.map(m=>`${l.keyPrefix}${f}${m}`):p=l.keyPrefix?`${l.keyPrefix}${f}${a}`:a,i.t(p,l)};return xr(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=ZE();return this.options.ns?(xr(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=ZE();xr(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 Wfe(Kfe());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 gT(t,n)}cloneInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:fA;const r=t.forkResourceStore;r&&delete t.forkResourceStore;const i={...this.options,...t,isClone:!0},o=new gT(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 Vfe(this.store.data,i),o.services.resourceStore=o.store),o.translator=new ZM(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 us=gT.createInstance();us.createInstance=gT.createInstance;us.createInstance;us.dir;us.init;us.loadResources;us.reloadResources;us.use;us.changeLanguage;us.getFixedT;const cr=us.t;us.exists;us.setDefaultNamespace;us.hasLoadedNamespace;us.loadNamespaces;us.loadLanguages;const ksn=["paragraph","h1","h2","h3","h4","h5","h6"];let Psn=class extends oE{constructor(){super(),this.menuData=ksn.map(e=>cr(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().focus().run():this.editor.chain().setHeading({level:e}).focus().run()}onDropdownItemRender(e){return e==0?this.menuData[e]:`<h${e}>${this.menuData[e]}</h${e}>`}onMenuTextRender(e){return this.menuData[e].replace(" ","")}};const Dsn=[{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 Lsn=class extends oE{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)||Dsn,this.menuData=[{name:cr("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 $sn=[{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 Fsn extends oE{constructor(){super(),Qt(this,"defaultValue",14)}onCreate(t,n){var r,i;super.onCreate(t,n),this.menuData=((r=n.fontSize)==null?void 0:r.values)||$sn,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}${cr("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?cr("default-font-size"):n.name}}let Bsn=class extends ti{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")}},Hsn=class extends ti{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")}},jsn=class extends ti{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")}},Usn=class extends ti{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")}},zsn=class extends ti{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")}},Vsn=class extends ti{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 oPe=["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"],aPe=["c00000","ff0000","ffc000","ffff00","92d050","00b050","00b0f0","0070c0","002060","7030a0"];class sPe extends ti{constructor(){super(),Qt(this,"historyColorsKey","historyColors"),Qt(this,"historyColors",[]),Qt(this,"iconSvg"),Qt(this,"menuColorEL"),Qt(this,"onColorItemClick"),Qt(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]),xo(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">${cr("default")}</div>
<div style="display: flex;flex-wrap: wrap;padding-top: 5px">
${oPe.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">${cr("standardColors")}</div>
<div style="display: flex;flex-wrap: wrap;">
${aPe.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">${cr("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 Gsn=class extends sPe{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 Wsn extends sPe{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 qsn extends ti{constructor(){super(),this.template='<div no-hover style="width: 1px;display: flex"><div class="aie-menu-divider" /></div>'}}let Ysn=class extends ti{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")}},Ksn=class extends ti{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 Qsn extends ti{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 Xsn extends ti{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 Zsn=[{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 Jsn extends oE{constructor(){super(),this.menuData=Zsn.map(t=>({...t,title:cr(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 gO{constructor(){Qt(this,"tippyInstance"),Qt(this,"content"),Qt(this,"cancelText"),Qt(this,"confirmText"),Qt(this,"onConfirmClickFunc"),Qt(this,"onCancelClickFunc"),Qt(this,"onShowFunc")}setContent(t){this.content=t}onConfirmClick(t){this.onConfirmClickFunc=t}onCancelClick(t){this.onCancelClickFunc=t}onShow(t){this.onShowFunc=t}setTrigger(t,n="bottom",r="click"){this.tippyInstance=xo(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-cancel" type="button">${this.cancelText?this.cancelText:cr("cancel")}</button>
<button class="aie-popover-footer-confirm" type="button">${this.confirmText?this.confirmText:cr("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.querySelector(".aie-popover-footer-cancel").addEventListener("click",()=>{this.onCancelClickFunc&&this.onCancelClickFunc(this.tippyInstance),this.tippyInstance.hide()}),n}}let eln=class extends ti{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 gO;e.setContent(`
<div style="width: 250px">${cr("link-address")}</div>
<div style="width: 250px">
<input type="text" id="href" style="width: 250px">
</div>
<div style="margin-top: 10px">${cr("link-open-type")}</div>
<div>
<select id="target" style="width: 250px">
<option value="">${cr("default")}</option>
<option value="_blank">${cr("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")}};const f7=e=>{const t=document.createElement("div");return t.innerHTML=e,t.firstElementChild},tln=(e,t)=>{const n=new RegExp(`<${t}[^>]*>(.*?)</${t}>`,"gi");return e.replace(n,(r,i)=>i)},nln=(e,t)=>{for(let n of t)e=tln(e,n);return e},rln=(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],p=u[d+1];if(f.nextSibling===p){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),p.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},iln=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>"))},oln=e=>{const t=document.createElement("div");return t.innerHTML=e,t.querySelectorAll("p").forEach(n=>{(!n.textContent||n.textContent.trim()==="")&&(n.querySelector("img")||n.remove())}),t.innerHTML},aln=e=>["table","thead","tbody","tr","th","td","ul","ol","li","pre","blockquote","figure","iframe","video","audio","svg","math","embed"].includes(e.tagName.toLowerCase()),sln=e=>{const t=new DOMParser().parseFromString(e,"text/html"),n=document.createDocumentFragment(),r=t.body.children;for(let o of r){if(aln(o)){n.appendChild(o.cloneNode(!0));continue}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},Ix=e=>{if(!e)return"";const t=new DOMParser().parseFromString(e,"text/html"),n=t.querySelectorAll("ul");n&&n.length>0&&n.forEach(s=>{var l;if((l=s.getAttribute("class"))!=null&&l.includes("task-list")){s.getAttributeNames().forEach(u=>{s.removeAttribute(u)}),s.setAttribute("data-type","taskList");const c=s.firstElementChild;if((c==null?void 0:c.tagName)==="P"){const u=document.createDocumentFragment();c.childNodes.forEach(d=>{u.append(d.cloneNode(!0))}),c.replaceWith(u)}s.querySelectorAll("li").forEach(u=>{u.getAttributeNames().forEach(f=>{s.removeAttribute(f)});const d=u.querySelector("input[type='checkbox']");d&&(u.setAttribute("data-type","taskItem"),u.setAttribute("data-checked",d.hasAttribute("checked")?"true":"false"))})}});const r=t.querySelectorAll("li");r&&r.length>0&&r.forEach(s=>{s.innerHTML||(s.innerHTML="<p></p>")});const i=t.querySelectorAll("body>p>img");if(i.length>0){const s=t.querySelector("body");for(const l of i){const c=l.parentNode,u=Array.prototype.indexOf.call(s.children,c);s.insertBefore(l,s.children[u])}}const o=t.querySelectorAll("table");o.length>0&&o.forEach(s=>{XX(s)});let a="";return t.body.childNodes.forEach(s=>{if(s.nodeType===Node.TEXT_NODE)a+=s.textContent;else if(s.nodeType===Node.ELEMENT_NODE){const l=s;l.querySelector("img")&&l.tagName!=="A"&&l.tagName!=="TABLE"?a+=l.innerHTML:a+=l.outerHTML}}),a},lln=e=>{if(!e)return"";const t=new DOMParser().parseFromString(e.trim(),"text/html");let n="";return t.body.childNodes.forEach(r=>{if(r.nodeType===Node.TEXT_NODE)n+=r.textContent;else if(r.nodeType===Node.ELEMENT_NODE){const i=r;i===t.body.firstChild&&i.tagName==="P"?n+=i.innerHTML:n+=i.outerHTML}}),n},cln=e=>{const t=new DOMParser().parseFromString(e,"text/html");return t.querySelectorAll("table").forEach(n=>{XX(n)}),t.body.innerHTML},XX=e=>{if(e.nodeType===Node.ELEMENT_NODE){const t=e;if(["TABLE","THEAD","TBODY","TFOOT","TR","COLGROUP","COL"].includes(t.tagName)&&Array.from(t.childNodes).forEach(n=>{n.nodeType===Node.TEXT_NODE?/^[\s\n\r]*$/.test(n.textContent||"")&&t.removeChild(n):XX(n)}),(t.tagName==="TD"||t.tagName==="TH")&&!t.hasChildNodes()){const n=document.createElement("p");t.appendChild(n)}}};class uln extends ti{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 gO;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(Ix(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 dln extends ti{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 fln=["1.0","1.25","1.5","2.0","2.5","3.0"];class pln extends oE{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)||fln}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 hln extends ti{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 mln=class extends ti{constructor(){super(),Qt(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()}registerClickListener(){this.addEventListener("click",()=>{var e,t,n;(t=(e=this.options)==null?void 0:e.image)!=null&&t.customMenuInvoke?this.options.image.customMenuInvoke(this.editor.aiEditor):(n=this.fileInput)==null||n.click()})}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=""}))}};class gln extends ti{constructor(){super(),Qt(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 vln=class extends ti{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")}},bln=class extends ti{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 yln extends ti{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 _ln extends ti{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 Sln=class extends ti{constructor(){super(),Qt(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=xo(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>${cr("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} ${cr("row")} x ${o+1} ${cr("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 Eln extends ti{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 Cln extends ti{constructor(){super(),Qt(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 xln extends ti{constructor(){super(),Qt(this,"fullscreenSvg",'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M8 3V5H4V9H2V3H8ZM2 21V15H4V19H8V21H2ZM22 21H16V19H20V15H22V21ZM22 9H20V5H16V3H22V9Z"></path></svg>'),Qt(this,"fullscreenExitSvg",'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M18 7H22V9H16V3H18V7ZM8 9H2V7H6V3H8V9ZM18 17V21H16V15H22V17H18ZM8 15V21H6V17H2V15H8Z"></path></svg>'),Qt(this,"isFullscreen",!1),this.template=`
<div>
${this.fullscreenSvg}
</div>
`,this.registerClickListener()}onClick(t){var n;const r=this.closest(".aie-container");this.isFullscreen?(r.style.height="100%",r.style.width="",r.style.background="",r.style.position="",r.style.top="",r.style.left="",r.style.zIndex=""):(r.style.height="calc(100vh - 2px)",r.style.width="calc(100% - 2px)",r.style.position="fixed",r.style.top="0",r.style.left="0",r.style.zIndex="9999"),this.isFullscreen=!this.isFullscreen,this.querySelector("div").innerHTML=this.isFullscreen?this.fullscreenExitSvg:this.fullscreenSvg,(n=this.options)!=null&&n.onFullscreen&&this.options.onFullscreen(this.isFullscreen)}}class wln extends ti{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 Xfe=["😀","😃","😄","😁","😆","😅","🤣","😂","🙂","🙃","😉","😊","😇","🥰","😍","🤩","😘","😗","😚","😙","🥲","😋","😛","😜","🤪","😝","🤑","🤗","🤭","🤫","🤔","🤐","🤨","😐","😑","😶","😶‍🌫","😏","😒","🙄","😬","😮‍💨","🤥","😌","😔","😪","🤤","😴","😷","🤒","🤕","🤢","🤮","🤧","🥵","🥶","🥴","😵","😵‍💫","🤯","🤠","🥳","🥸","😎","🤓","🧐","😕","😟","🙁","😮","😲","😳","🥺","😦","😧","😨","😰","😥","😢","😭","😱","😖","😣","😞","😓","😩","😫","🥱","😤","😡","😠","🤬","😈","👿","💀","☠️","💩","🤡","👹","👺","👻","👽","👾","🤖","😺","😸","😹","😻","😼","😽","🙀","😿","😾","👍","👎","🙏","🙈","🙉","🙊","💌","💘","💝","💖","💗","💓","💞","💕","💟","❣️","💔","💋","💯","💢","💥","💫","💦","💨","💤"];class Tln extends ti{constructor(){super(),Qt(this,"emojis",Xfe),Qt(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)||Xfe}connectedCallback(){super.connectedCallback(),this.tippy=xo(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");t.style.maxWidth="450px",t.style.overflow="hidden",t.style.display="flex",t.style.justifyContent="center";const n=this.getSize();return t.classList.add("aie-dropdown-container"),t.innerHTML=`
<div class="emoji-cells">
${this.emojis.map(r=>`<div class="emoji-cell" style="width: ${n}px;height: ${n}px;font-size: ${n-2}px;"><span>${r}</span></div>`).join("")}
</div>
`,t.querySelector(".emoji-cells").addEventListener("click",r=>{var i,o;const a=r.target.closest(".emoji-cell");a&&((i=this.editor)==null||i.commands.insertContent(a.querySelector("span").innerHTML),(o=this.tippy)==null||o.hide())}),t}getSize(){const t=this.editor.aiEditor.options;return t.toolbarSize==="large"?30:t.toolbarSize==="medium"?25:20}}class Oln extends ti{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 vO{constructor(t,n,r){Qt(this,"editor"),Qt(this,"globalConfig"),Qt(this,"aiModelName"),Qt(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 lPe{constructor(t,n){Qt(this,"isStop",!1),Qt(this,"url"),Qt(this,"webSocket"),Qt(this,"isOpen",!1),Qt(this,"payload"),Qt(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 Hm=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function h8(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Rln(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 cPe={exports:{}};function Aln(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 Zfe={exports:{}};const Iln={},Nln=Object.freeze(Object.defineProperty({__proto__:null,default:Iln},Symbol.toStringTag,{value:"Module"})),Mln=Rln(Nln);var Jfe;function m8(){return Jfe||(Jfe=1,function(e,t){(function(n,r){e.exports=r()})(Hm,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 Hm<"u"&&Hm.crypto&&(o=Hm.crypto),!o&&typeof Aln=="function")try{o=Mln}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 S;return b.prototype=_,S=new b,b.prototype=null,S}}(),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||p).stringify(this)},concat:function(b){var _=this.words,S=b.words,x=this.sigBytes,E=b.sigBytes;if(this.clamp(),x%4)for(var C=0;C<E;C++){var w=S[C>>>2]>>>24-C%4*8&255;_[x+C>>>2]|=w<<24-(x+C)%4*8}else for(var O=0;O<E;O+=4)_[x+O>>>2]=S[O>>>2];return this.sigBytes+=E,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 _=[],S=0;S<b;S+=4)_.push(a());return new d.init(_,b)}}),f=l.enc={},p=f.Hex={stringify:function(b){for(var _=b.words,S=b.sigBytes,x=[],E=0;E<S;E++){var C=_[E>>>2]>>>24-E%4*8&255;x.push((C>>>4).toString(16)),x.push((C&15).toString(16))}return x.join("")},parse:function(b){for(var _=b.length,S=[],x=0;x<_;x+=2)S[x>>>3]|=parseInt(b.substr(x,2),16)<<24-x%8*4;return new d.init(S,_/2)}},m=f.Latin1={stringify:function(b){for(var _=b.words,S=b.sigBytes,x=[],E=0;E<S;E++){var C=_[E>>>2]>>>24-E%4*8&255;x.push(String.fromCharCode(C))}return x.join("")},parse:function(b){for(var _=b.length,S=[],x=0;x<_;x++)S[x>>>2]|=(b.charCodeAt(x)&255)<<24-x%4*8;return new d.init(S,_)}},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 _,S=this._data,x=S.words,E=S.sigBytes,C=this.blockSize,w=C*4,O=E/w;b?O=r.ceil(O):O=r.max((O|0)-this._minBufferSize,0);var T=O*C,A=r.min(T*4,E);if(T){for(var I=0;I<T;I+=C)this._doProcessBlock(x,I);_=x.splice(0,T),S.sigBytes-=A}return new d.init(_,A)},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(_,S){return new b.init(S).finalize(_)}},_createHmacHelper:function(b){return function(_,S){return new y.HMAC.init(b,S).finalize(_)}}});var y=l.algo={};return l}(Math);return n})}(Zfe)),Zfe.exports}var epe={exports:{}},tpe;function kln(){return tpe||(tpe=1,function(e,t){(function(n,r){e.exports=r(m8())})(Hm,function(n){return function(r){var i=n,o=i.lib,a=o.WordArray,s=o.Hasher,l=i.algo,c=[],u=[];(function(){function p(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;)p(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(p,m){for(var g=this._hash.words,v=g[0],y=g[1],b=g[2],_=g[3],S=g[4],x=g[5],E=g[6],C=g[7],w=0;w<64;w++){if(w<16)d[w]=p[m+w]|0;else{var O=d[w-15],T=(O<<25|O>>>7)^(O<<14|O>>>18)^O>>>3,A=d[w-2],I=(A<<15|A>>>17)^(A<<13|A>>>19)^A>>>10;d[w]=T+d[w-7]+I+d[w-16]}var N=S&x^~S&E,D=v&y^v&b^y&b,M=(v<<30|v>>>2)^(v<<19|v>>>13)^(v<<10|v>>>22),k=(S<<26|S>>>6)^(S<<21|S>>>11)^(S<<7|S>>>25),P=C+k+N+u[w]+d[w],B=M+D;C=E,E=x,x=S,S=_+P|0,_=b,b=y,y=v,v=P+B|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]+S|0,g[5]=g[5]+x|0,g[6]=g[6]+E|0,g[7]=g[7]+C|0},_doFinalize:function(){var p=this._data,m=p.words,g=this._nDataBytes*8,v=p.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,p.sigBytes=m.length*4,this._process(),this._hash},clone:function(){var p=s.clone.call(this);return p._hash=this._hash.clone(),p}});i.SHA256=s._createHelper(f),i.HmacSHA256=s._createHmacHelper(f)}(Math),n.SHA256})}(epe)),epe.exports}var npe={exports:{}},rpe;function Pln(){return rpe||(rpe=1,function(e,t){(function(n,r){e.exports=r(m8())})(Hm,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 p=this._oKey=u.clone(),m=this._iKey=u.clone(),g=p.words,v=m.words,y=0;y<d;y++)g[y]^=1549556828,v[y]^=909522486;p.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}})})()})}(npe)),npe.exports}(function(e,t){(function(n,r,i){e.exports=r(m8(),kln(),Pln())})(Hm,function(n){return n.HmacSHA256})})(cPe);var Dln=cPe.exports;const Lln=h8(Dln);var uPe={exports:{}};(function(e,t){(function(n,r){e.exports=r(m8())})(Hm,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=[],p=0;p<u;p+=3)for(var m=c[p>>>2]>>>24-p%4*8&255,g=c[p+1>>>2]>>>24-(p+1)%4*8&255,v=c[p+2>>>2]>>>24-(p+2)%4*8&255,y=m<<16|g<<8|v,b=0;b<4&&p+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 p=u.charAt(64);if(p){var m=l.indexOf(p);m!==-1&&(c=m)}return s(l,c,d)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="};function s(l,c,u){for(var d=[],f=0,p=0;p<c;p++)if(p%4){var m=u[l.charCodeAt(p-1)]<<p%4*2,g=u[l.charCodeAt(p)]>>>6-p%4*2,v=m|g;d[f>>>2]|=v<<24-f%4*8,f++}return o.create(d,f)}}(),n.enc.Base64})})(uPe);var $ln=uPe.exports;const Fln=h8($ln),g8=()=>"10000000-1000-4000-8000-100000000000".replace(/[018]/g,e=>(e^crypto.getRandomValues(new Uint8Array(1))[0]&15>>e/4).toString(16));class Bln extends vO{constructor(t,n){var r;super(t,n,"spark"),this.aiModelConfig={version:"v3.5",protocol:"wss",...(r=n.models)==null?void 0:r.spark}}createAiClient(t,n){return new lPe(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:g8().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=Lln(r,t.apiSecret),o=Fln.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 dPe{constructor(t,n){Qt(this,"isStop",!1),Qt(this,"config"),Qt(this,"fetch"),Qt(this,"isOpen",!1),Qt(this,"payload"),Qt(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 Hln extends vO{constructor(t,n){var r;super(t,n,"wenxin"),this.aiModelConfig={...(r=n.models)==null?void 0:r.wenxin}}createAiClient(t,n){return new dPe({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 nm;class jln extends TransformStream{constructor(t={allowCR:!1}){super({transform:(n,r)=>{for(n=KE(this,nm)+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)}Ren(this,nm,n)},flush:n=>{if(KE(this,nm)==="")return;const r=t.allowCR&&KE(this,nm).endsWith("\r")?KE(this,nm).slice(0,-1):KE(this,nm);n.enqueue(r)}}),Oen(this,nm,"")}}nm=new WeakMap;function Uln(e){let t=new TextDecoderStream,n=new jln({allowCR:!0});return e.pipeThrough(t).pipeThrough(n)}function zln(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*Vln(e,t){if(!e.body)return;let n=Uln(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]=zln(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 ZX{constructor(t,n){Qt(this,"isStop",!1),Qt(this,"config"),Qt(this,"fetch"),Qt(this,"isOpen",!1),Qt(this,"payload"),Qt(this,"listener"),Qt(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=Vln(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 Gln extends vO{constructor(t,n){var r;super(t,n,"custom"),this.aiModelConfig={protocol:"sse",...(r=n.models)==null?void 0:r.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:typeof i.headers=="function"?(r=i.headers)==null?void 0:r.call(i):i.headers};return i.protocol==="sse"?new ZX(a,o):i.protocol==="http"?new dPe(a,o):new lPe(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 Wln extends vO{constructor(t,n){var r;super(t,n,"openai"),this.aiModelConfig={endpoint:"https://api.openai.com",...(r=n.models)==null?void 0:r.openai}}createAiClient(t,n){const r=this.aiModelConfig,i={"Content-Type":"application/json"};return r.apiKey&&(i.Authorization=`Bearer ${r.apiKey}`),new ZX({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 qln extends vO{constructor(t,n){var r;super(t,n,"gitee"),this.aiModelConfig={top_p:.7,top_k:50,...(r=n.models)==null?void 0:r.gitee}}createAiClient(t,n){const r=this.aiModelConfig;return new ZX({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 Eg{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 Bln(t,n));break;case"wenxin":this.set(i,new Hln(t,n));break;case"openai":this.set(i,new Wln(t,n));break;case"gitee":this.set(i,new qln(t,n));break;case"custom":this.set(i,new Gln(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}}Qt(Eg,"models",{});const Yln=e=>{let t="";return e.descendants(n=>{n.text&&(t+=n.text)}),t};class JM{constructor(t,n){Qt(this,"editor"),Qt(this,"from"),Qt(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=Yln(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 Kln=[{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}
请帮我继续扩展以上这段文字的内容。
注意:你应该先判断一下这句话是中文还是英文,如果是中文,请给我返回中文的内容,如果是英文,请给我返回英文内容,只需要返回内容即可,不需要告知我是中文还是英文。`,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}
请帮我优化以上这段文字的内容,并返回结果
注意:你应该先判断一下这句话是中文还是英文,如果是中文,请给我返回中文的内容,如果是英文,请给我返回英文内容,只需要返回内容即可,不需要告知我是中文还是英文。`,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}
请帮我找出以上这段文字的错别字,把错别字修改后,并返回结果,不要解释或其他多余的内容
注意:你应该先判断一下这句话是中文还是英文,如果是中文,请给我返回中文的内容,如果是英文,请给我返回英文内容,只需要返回内容即可,不需要告知我是中文还是英文。`,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 Qln extends oE{constructor(){super(),Qt(this,"aiMenus",Kln.map(t=>({...t,name:`${cr(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.editor.aiEditor),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=Eg.get(n.model);i?i==null||i.chat(r,n.prompt,new JM(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 Xln extends ti{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(""),t.focus()}onActive(t){return t.isActive("container")}}class Zln extends ti{constructor(){super(),Qt(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 Cr=(e,t)=>{window.customElements.get(e)||window.customElements.define(e,t)},fPe=(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"),o.onCreate(e,t),o.onEditableChange(!!t.editable),i!=="divider"){const a=cr(i);o.setAttribute("data-title",a),o.setAttribute("data-size",t.toolbarSize),a&&xo(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"),a.onCreate(e,t),a.init(e,t,o),a.onEditableChange(!!t.editable),o.title){const s=cr(o.title);s&&xo(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"),o.id&&a.setAttribute("id",o.id),o.className&&a.classList.add(o.className),a.onCreate(e,t),a.onConfig(o),a.onEditableChange(!!t.editable),o.tip){const s=cr(o.tip);s&&xo(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 Jln extends ti{constructor(){super(),Qt(this,"menuButtons",[]),Qt(this,"tippyInstance"),Qt(this,"tippyEl"),Qt(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){fPe(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=xo(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 ecn=["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"];Cr("aie-undo",Aon);Cr("aie-redo",Ion);Cr("aie-brush",Oln);Cr("aie-container",Xln);Cr("aie-custom",Zln);Cr("aie-eraser",yln);Cr("aie-heading",Psn);Cr("aie-font-family",Lsn);Cr("aie-font-size",Fsn);Cr("aie-bold",Bsn);Cr("aie-italic",Hsn);Cr("aie-underline",jsn);Cr("aie-strike",Usn);Cr("aie-link",eln);Cr("aie-source-code",uln);Cr("aie-code",vln);Cr("aie-subscript",zsn);Cr("aie-superscript",Vsn);Cr("aie-highlight",Gsn);Cr("aie-font-color",Wsn);Cr("aie-divider",qsn);Cr("aie-bullet-list",Ysn);Cr("aie-ordered-list",Ksn);Cr("aie-indent-decrease",Qsn);Cr("aie-indent-increase",Xsn);Cr("aie-align",Jsn);Cr("aie-todo",dln);Cr("aie-line-height",pln);Cr("aie-break",Eln);Cr("aie-quote",hln);Cr("aie-image",mln);Cr("aie-video",gln);Cr("aie-code-block",bln);Cr("aie-hr",_ln);Cr("aie-table",Sln);Cr("aie-attachment",Cln);Cr("aie-fullscreen",xln);Cr("aie-printer",wln);Cr("aie-emoji",Tln);Cr("aie-ai",Qln);Cr("aie-group",Jln);class pPe extends HTMLElement{constructor(){super(),Qt(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||ecn;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}),fPe(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 hPe extends HTMLElement{constructor(){super(),Qt(this,"count",0),Qt(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,p=d.clientY-r;if(f==0&&p==0)return;let m=a+f,g=s+p;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 tcn=/^\s*>\s$/,ncn=To.create({name:"blockquote",addOptions(){return{HTMLAttributes:{}}},content:"block+",group:"block",defining:!0,parseHTML(){return[{tag:"blockquote"}]},renderHTML({HTMLAttributes:e}){return["blockquote",Gr(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[rv({find:tcn,type:this.type})]}}),rcn=/(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))$/,icn=/(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))/g,ocn=/(?:^|\s)(__(?!\s+__)((?:[^_]+))__(?!\s+__))$/,acn=/(?:^|\s)(__(?!\s+__)((?:[^_]+))__(?!\s+__))/g,scn=jl.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",Gr(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[nv({find:rcn,type:this.type}),nv({find:ocn,type:this.type})]},addPasteRules(){return[Sg({find:icn,type:this.type}),Sg({find:acn,type:this.type})]}}),lcn="listItem",ipe="textStyle",ope=/^\s*([-+*])\s$/,ccn=To.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",Gr(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(lcn,this.editor.getAttributes(ipe)).run():e.toggleList(this.name,this.options.itemTypeName,this.options.keepMarks)}},addKeyboardShortcuts(){return{"Mod-Shift-8":()=>this.editor.commands.toggleBulletList()}},addInputRules(){let e=rv({find:ope,type:this.type});return(this.options.keepMarks||this.options.keepAttributes)&&(e=rv({find:ope,type:this.type,keepMarks:this.options.keepMarks,keepAttributes:this.options.keepAttributes,getAttributes:()=>this.editor.getAttributes(ipe),editor:this.editor})),[e]}}),ucn=/(^|[^`])`([^`]+)`(?!`)/,dcn=/(^|[^`])`([^`]+)`(?!`)/g,fcn=jl.create({name:"code",addOptions(){return{HTMLAttributes:{}}},excludes:"_",code:!0,exitable:!0,parseHTML(){return[{tag:"code"}]},renderHTML({HTMLAttributes:e}){return["code",Gr(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[nv({find:ucn,type:this.type})]},addPasteRules(){return[Sg({find:dcn,type:this.type})]}}),pcn=/^```([a-z]+)?[\s\n]$/,hcn=/^~~~([a-z]+)?[\s\n]$/,mPe=To.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",Gr(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(hr.near(r.resolve(a))),!0)):e.commands.exitCode()}}},addInputRules(){return[UV({find:pcn,type:this.type,getAttributes:e=>({language:e[1]})}),UV({find:hcn,type:this.type,getAttributes:e=>({language:e[1]})})]},addProseMirrorPlugins(){return[new Ei({key:new Bi("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(Xn.near(a.doc.resolve(Math.max(0,a.selection.from-2)))),a.setMeta("paste",!0),e.dispatch(a),!0}}})]}}),mcn=To.create({name:"doc",topNode:!0,content:"block+"});function gcn(e={}){return new Ei({view(t){return new vcn(t,e)}})}class vcn{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=Nke(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 bcn=yi.create({name:"dropCursor",addOptions(){return{color:"currentColor",width:1,class:void 0}},addProseMirrorPlugins(){return[gcn(this.options)]}});class Go extends hr{constructor(t){super(t,t)}map(t,n){let r=t.resolve(n.map(this.head));return Go.valid(r)?new Go(r):hr.near(r)}content(){return An.empty}eq(t){return t instanceof Go&&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 Go(t.resolve(n.pos))}getBookmark(){return new JX(this.anchor)}static valid(t){let n=t.parent;if(n.isTextblock||!ycn(t)||!_cn(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&&Go.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(Go.valid(l))return l}for(;;){let a=n>0?o.firstChild:o.lastChild;if(!a){if(o.isAtom&&!o.isText&&!ar.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(Go.valid(s))return s}return null}}}Go.prototype.visible=!1;Go.findFrom=Go.findGapCursorFrom;hr.jsonID("gapcursor",Go);class JX{constructor(t){this.pos=t}map(t){return new JX(t.map(this.pos))}resolve(t){let n=t.resolve(this.pos);return Go.valid(n)?new Go(n):hr.near(n)}}function ycn(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 _cn(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 Scn(){return new Ei({props:{decorations:wcn,createSelectionBetween(e,t,n){return t.pos==n.pos&&Go.valid(n)?new Go(n):null},handleClick:Ccn,handleKeyDown:Ecn,handleDOMEvents:{beforeinput:xcn}}})}const Ecn=kX({ArrowLeft:pA("horiz",-1),ArrowRight:pA("horiz",1),ArrowUp:pA("vert",-1),ArrowDown:pA("vert",1)});function pA(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 Xn){if(!o.endOfTextblock(n)||s.depth==0)return!1;l=!1,s=r.doc.resolve(t>0?s.after():s.before())}let c=Go.findGapCursorFrom(s,t,l);return c?(i&&i(r.tr.setSelection(new Go(c))),!0):!1}}function Ccn(e,t,n){if(!e||!e.editable)return!1;let r=e.state.doc.resolve(t);if(!Go.valid(r))return!1;let i=e.posAtCoords({left:n.clientX,top:n.clientY});return i&&i.inside>-1&&ar.isSelectable(e.state.doc.nodeAt(i.inside))?!1:(e.dispatch(e.state.tr.setSelection(new Go(r))),!0)}function xcn(e,t){if(t.inputType!="insertCompositionText"||!(e.state.selection instanceof Go))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=en.empty;for(let a=r.length-1;a>=0;a--)i=en.from(r[a].createAndFill(null,i));let o=e.state.tr.replace(n.pos,n.pos,new An(i,0,0));return o.setSelection(Xn.near(o.doc.resolve(n.pos+1))),e.dispatch(o),!1}function wcn(e){if(!(e.selection instanceof Go))return null;let t=document.createElement("div");return t.className="ProseMirror-gapcursor",xi.create(e.doc,[ra.widget(e.selection.head,t,{key:"gapcursor"})])}const Tcn=yi.create({name:"gapCursor",addProseMirrorPlugins(){return[Scn()]},extendNodeSchema(e){var t;const n={name:e.name,options:e.options,storage:e.storage};return{allowGapCursor:(t=Nr(Gn(e,"allowGapCursor",n)))!==null&&t!==void 0?t:null}}}),Ocn=To.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",Gr(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()}}}),gPe=To.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]}`,Gr(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=>UV({find:new RegExp(`^(#{${Math.min(...this.options.levels)},${e}})\\s$`),type:this.type,getAttributes:{level:e}}))}});var ek=200,za=function(){};za.prototype.append=function(e){return e.length?(e=za.from(e),!this.length&&e||e.length<ek&&this.leafAppend(e)||this.length<ek&&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 Rcn(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 vPe(e):za.empty};var vPe=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<=ek)return new t(this.values.concat(r.flatten()))},t.prototype.leafPrepend=function(r){if(this.length+r.length<=ek)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 vPe([]);var Rcn=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 Acn=500;class rd{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 rf(d.map));let p=d.step.map(i.slice(o)),m;p&&a.maybeStep(p).doc&&(m=a.mapping.maps[a.mapping.maps.length-1],c.push(new rf(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 rd(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 rf(t.mapping.maps[u],d,n),p;(p=l&&l.merge(f))&&(f=p,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>Ncn&&(s=Icn(s,c),a-=c),new rd(s.append(o),a)}remapping(t,n){let r=new Ry;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 rd(this.items.append(t.map(n=>new rf(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 p=o.getMirror(--l);if(p==null)return;a=Math.min(a,p);let m=o.maps[p];if(f.step){let g=t.steps[p].invert(t.docs[p]),v=f.selection&&f.selection.map(o.slice(l+1,p));v&&s++,r.push(new rf(m,g,v))}else r.push(new rf(m))},i);let c=[];for(let f=n;f<a;f++)c.push(new rf(o.maps[f]));let u=this.items.slice(0,i).append(c).append(r),d=new rd(u,s);return d.emptyItemCount()>Acn&&(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 rf(c.invert(),l,u),f,p=i.length-1;(f=i.length&&i[p].merge(d))?i[p]=f:i.push(d)}}else a.map&&r--},this.items.length,0),new rd(za.from(i.reverse()),o)}}rd.empty=new rd(za.empty,0);function Icn(e,t){let n;return e.forEach((r,i)=>{if(r.selection&&t--==0)return n=i,!1}),e.slice(n)}class rf{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 rf(n.getMap().invert(),n,this.selection)}}}class um{constructor(t,n,r,i,o){this.done=t,this.undone=n,this.prevRanges=r,this.prevTime=i,this.prevComposition=o}}const Ncn=20;function Mcn(e,t,n,r){let i=n.getMeta(x1),o;if(i)return i.historyState;n.getMeta(Dcn)&&(e=new um(e.done,e.undone,null,0,-1));let a=n.getMeta("appendedTransaction");if(n.steps.length==0)return e;if(a&&a.getMeta(x1))return a.getMeta(x1).redo?new um(e.done.addTransform(n,void 0,r,mN(t)),e.undone,ape(n.mapping.maps),e.prevTime,e.prevComposition):new um(e.done,e.undone.addTransform(n,void 0,r,mN(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||!kcn(n,e.prevRanges)),c=a?p7(e.prevRanges,n.mapping):ape(n.mapping.maps);return new um(e.done.addTransform(n,l?t.selection.getBookmark():void 0,r,mN(t)),rd.empty,c,n.time,s??e.prevComposition)}else return(o=n.getMeta("rebased"))?new um(e.done.rebased(n,o),e.undone.rebased(n,o),p7(e.prevRanges,n.mapping),e.prevTime,e.prevComposition):new um(e.done.addMaps(n.mapping.maps),e.undone.addMaps(n.mapping.maps),p7(e.prevRanges,n.mapping),e.prevTime,e.prevComposition)}function kcn(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 ape(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 p7(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 Pcn(e,t,n){let r=mN(t),i=x1.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 um(n?s:o.remaining,n?o.remaining:s,null,0,-1);return o.transform.setSelection(a).setMeta(x1,{redo:n,historyState:l})}let h7=!1,spe=null;function mN(e){let t=e.plugins;if(spe!=t){h7=!1,spe=t;for(let n=0;n<t.length;n++)if(t[n].spec.historyPreserveItems){h7=!0;break}}return h7}const x1=new Bi("history"),Dcn=new Bi("closeHistory");function Lcn(e={}){return e={depth:e.depth||100,newGroupDelay:e.newGroupDelay||500},new Ei({key:x1,state:{init(){return new um(rd.empty,rd.empty,null,0,-1)},apply(t,n,r){return Mcn(n,r,t,e)}},config:e,props:{handleDOMEvents:{beforeinput(t,n){let r=n.inputType,i=r=="historyUndo"?yPe:r=="historyRedo"?_Pe:null;return i?(n.preventDefault(),i(t.state,t.dispatch)):!1}}}})}function bPe(e,t){return(n,r)=>{let i=x1.getState(n);if(!i||(e?i.undone:i.done).eventCount==0)return!1;if(r){let o=Pcn(i,n,e);o&&r(o.scrollIntoView())}return!0}}const yPe=bPe(!1),_Pe=bPe(!0),$cn=yi.create({name:"history",addOptions(){return{depth:100,newGroupDelay:500}},addCommands(){return{undo:()=>({state:e,dispatch:t})=>yPe(e,t),redo:()=>({state:e,dispatch:t})=>_Pe(e,t)}},addProseMirrorPlugins(){return[Lcn(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()}}}),Fcn=To.create({name:"horizontalRule",addOptions(){return{HTMLAttributes:{}}},group:"block",parseHTML(){return[{tag:"hr"}]},renderHTML({HTMLAttributes:e}){return["hr",Gr(this.options.HTMLAttributes,e)]},addCommands(){return{setHorizontalRule:()=>({chain:e,state:t})=>{if(!Oon(t,t.schema.nodes[this.name]))return!1;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}):D5e(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(Xn.create(a.doc,c.pos+1)):c.nodeAfter.isBlock?a.setSelection(ar.create(a.doc,c.pos)):a.setSelection(Xn.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(Xn.create(a.doc,u+1)))}a.scrollIntoView()}return!0}).run()}}},addInputRules(){return[UX({find:/^(?:---|—-|___\s|\*\*\*\s)$/,type:this.type})]}}),Bcn=/(?:^|\s)(\*(?!\s+\*)((?:[^*]+))\*(?!\s+\*))$/,Hcn=/(?:^|\s)(\*(?!\s+\*)((?:[^*]+))\*(?!\s+\*))/g,jcn=/(?:^|\s)(_(?!\s+_)((?:[^_]+))_(?!\s+_))$/,Ucn=/(?:^|\s)(_(?!\s+_)((?:[^_]+))_(?!\s+_))/g,zcn=jl.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",Gr(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[nv({find:Bcn,type:this.type}),nv({find:jcn,type:this.type})]},addPasteRules(){return[Sg({find:Hcn,type:this.type}),Sg({find:Ucn,type:this.type})]}}),Vcn=To.create({name:"listItem",addOptions(){return{HTMLAttributes:{},bulletListTypeName:"bulletList",orderedListTypeName:"orderedList"}},content:"paragraph block*",defining:!0,parseHTML(){return[{tag:"li"}]},renderHTML({HTMLAttributes:e}){return["li",Gr(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)}}}),Gcn="listItem",lpe="textStyle",cpe=/^(\d+)\.\s$/,Wcn=To.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:null,parseHTML:e=>e.getAttribute("type")}}},parseHTML(){return[{tag:"ol"}]},renderHTML({HTMLAttributes:e}){const{start:t,...n}=e;return t===1?["ol",Gr(this.options.HTMLAttributes,n),0]:["ol",Gr(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(Gcn,this.editor.getAttributes(lpe)).run():e.toggleList(this.name,this.options.itemTypeName,this.options.keepMarks)}},addKeyboardShortcuts(){return{"Mod-Shift-7":()=>this.editor.commands.toggleOrderedList()}},addInputRules(){let e=rv({find:cpe,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=rv({find:cpe,type:this.type,keepMarks:this.options.keepMarks,keepAttributes:this.options.keepAttributes,getAttributes:t=>({start:+t[1],...this.editor.getAttributes(lpe)}),joinPredicate:(t,n)=>n.childCount+n.attrs.start===+t[1],editor:this.editor})),[e]}}),qcn=To.create({name:"paragraph",priority:1e3,addOptions(){return{HTMLAttributes:{}}},group:"block",content:"inline*",parseHTML(){return[{tag:"p"}]},renderHTML({HTMLAttributes:e}){return["p",Gr(this.options.HTMLAttributes,e),0]},addCommands(){return{setParagraph:()=>({commands:e})=>e.setNode(this.name)}},addKeyboardShortcuts(){return{"Mod-Alt-0":()=>this.editor.commands.setParagraph()}}}),Ycn=/(?:^|\s)(~~(?!\s+~~)((?:[^~]+))~~(?!\s+~~))$/,Kcn=/(?:^|\s)(~~(?!\s+~~)((?:[^~]+))~~(?!\s+~~))/g,Qcn=jl.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",Gr(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[nv({find:Ycn,type:this.type})]},addPasteRules(){return[Sg({find:Kcn,type:this.type})]}}),Xcn=To.create({name:"text",group:"inline"}),Zcn=yi.create({name:"starterKit",addExtensions(){const e=[];return this.options.bold!==!1&&e.push(scn.configure(this.options.bold)),this.options.blockquote!==!1&&e.push(ncn.configure(this.options.blockquote)),this.options.bulletList!==!1&&e.push(ccn.configure(this.options.bulletList)),this.options.code!==!1&&e.push(fcn.configure(this.options.code)),this.options.codeBlock!==!1&&e.push(mPe.configure(this.options.codeBlock)),this.options.document!==!1&&e.push(mcn.configure(this.options.document)),this.options.dropcursor!==!1&&e.push(bcn.configure(this.options.dropcursor)),this.options.gapcursor!==!1&&e.push(Tcn.configure(this.options.gapcursor)),this.options.hardBreak!==!1&&e.push(Ocn.configure(this.options.hardBreak)),this.options.heading!==!1&&e.push(gPe.configure(this.options.heading)),this.options.history!==!1&&e.push($cn.configure(this.options.history)),this.options.horizontalRule!==!1&&e.push(Fcn.configure(this.options.horizontalRule)),this.options.italic!==!1&&e.push(zcn.configure(this.options.italic)),this.options.listItem!==!1&&e.push(Vcn.configure(this.options.listItem)),this.options.orderedList!==!1&&e.push(Wcn.configure(this.options.orderedList)),this.options.paragraph!==!1&&e.push(qcn.configure(this.options.paragraph)),this.options.strike!==!1&&e.push(Qcn.configure(this.options.strike)),this.options.text!==!1&&e.push(Xcn.configure(this.options.text)),e}}),Jcn=jl.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",Gr(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()}}}),eun=e=>{if(!e.children.length)return;const t=e.querySelectorAll("span");t&&t.forEach(n=>{var r,i;const o=n.getAttribute("style"),a=(i=(r=n.parentElement)===null||r===void 0?void 0:r.closest("span"))===null||i===void 0?void 0:i.getAttribute("style");n.setAttribute("style",`${a};${o}`)})},tun=jl.create({name:"textStyle",priority:101,addOptions(){return{HTMLAttributes:{},mergeNestedSpanStyles:!1}},parseHTML(){return[{tag:"span",getAttrs:e=>e.hasAttribute("style")?(this.options.mergeNestedSpanStyles&&eun(e),{}):!1}]},renderHTML({HTMLAttributes:e}){return["span",Gr(this.options.HTMLAttributes,e),0]},addCommands(){return{removeEmptyTextStyle:()=>({tr:e})=>{const{selection:t}=e;return e.doc.nodesBetween(t.from,t.to,(n,r)=>{if(n.isTextblock)return!0;n.marks.filter(i=>i.type===this.type).some(i=>Object.values(i.attrs).some(o=>!!o))||e.removeMark(r,r+n.nodeSize,this.type)}),!0}}}}),nun=yi.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()}}}),SPe=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>
`,ra.widget(e.pos,t,{id:e.id})},run=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}
`,ra.widget(e.pos,t,{id:e.id})},iun=(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)})})},oun=(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())})},eZ=e=>e?iun:oun,upe=new Bi("aie-attachment-plugin"),JE="attachment_action",aun=yi.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=g8(),{state:{tr:r},view:i,schema:o}=this.editor;r.selection.empty||r.deleteSelection(),i.dispatch(r.setMeta(JE,{type:"add",id:n,pos:r.selection.from,text:e.name}));const a=this.options.uploader||eZ(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=upe.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(JE,{type:"remove",id:n}))}else i.dispatch(r.setMeta(JE,{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(JE,{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:upe,state:{init:()=>xi.empty,apply:(t,n)=>{const r=t.getMeta(JE);return n=n.map(t.mapping,t.doc),r&&r.type==="add"?n=n.add(t.doc,[run(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}}}})]}}),sun=yi.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 Bi("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}}}})]}}),lun=/(?:^|\s)(==(?!\s+==)((?:[^=]+))==(?!\s+==))$/,cun=/(?:^|\s)(==(?!\s+==)((?:[^=]+))==(?!\s+==))/g,uun=jl.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",Gr(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[nv({find:lun,type:this.type})]},addPasteRules(){return[Sg({find:cun,type:this.type})]}}),dun=yi.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()}}}),fun=yi.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()}}}),pun=yi.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"))}}}),hun=yi.create({name:"textAlign",addOptions(){return{types:[],alignments:["left","center","right","justify"],defaultAlignment:null}},addGlobalAttributes(){return[{types:this.options.types,attributes:{textAlign:{default:this.options.defaultAlignment,parseHTML:e=>{const t=e.style.textAlign;return this.options.alignments.includes(t)?t:this.options.defaultAlignment},renderHTML:e=>e.textAlign?{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),toggleTextAlign:e=>({editor:t,commands:n})=>this.options.alignments.includes(e)?t.isActive({textAlign:e})?n.unsetTextAlign():n.setTextAlign(e):!1}},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")}}}),mun=yi.create({name:"indent",addOptions(){return{types:["listItem","paragraph"],minLevel:0,maxLevel:8}},addGlobalAttributes(){return[{types:this.options.types,attributes:{indent:{default:0,parseHTML:e=>{let t=Number(e.getAttribute("data-indent"));if(t)return t>this.options.maxLevel?t=this.options.maxLevel:t<this.options.minLevel&&(t=this.options.minLevel),t;{const n=e.style.textIndent;let r=0;return n&&n.endsWith("pt")?r=Number(n.substring(0,n.indexOf("pt")))*(96/72)/16:n&&n.endsWith("em")?r=Number(n.substring(0,n.indexOf("em"))):n&&n.endsWith("px")&&(r=Number(n.substring(0,n.indexOf("px")))/16),r>0&&(t=Math.round(r/2)),t?(t>this.options.maxLevel?t=this.options.maxLevel:t<this.options.minLevel&&(t=this.options.minLevel),t):0}},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,...p}=s.attrs,m=d>c?{...p,indent:d}:p;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 Xn||a instanceof yc)){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.isActive("listItem")||this.editor.isActive("orderedList")?!1:this.editor.commands.indent(),"Shift-Tab":()=>this.editor.isActive("listItem")||this.editor.isActive("orderedList")?!1:this.editor.commands.outdent()}}}),gun=/(?:^|\s)(!\[(.+|:?)]\((\S+)(?:(?:\s+)["'](\S+)["'])?\))$/,vun=To.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",Gr(this.options.HTMLAttributes,e)]},addCommands(){return{setImage:e=>({commands:t})=>t.insertContent({type:this.name,attrs:e})}},addInputRules(){return[UX({find:gun,type:this.type,getAttributes:e=>{const[,,t,n,r]=e;return{src:n,alt:t,title:r}}})]}}),EPe=(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 p=f.clientX-o;if(p==0)return;const m=s==="right"?p>0:p<0;let g=a+Math.abs(p)*(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)},bun=e=>typeof e=="number"||!isNaN(+e)?`${e}px`:e,dpe=new Bi("aie-image-plugin"),eC="image_action",yun=vun.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}:{}},href:{default:null,parseHTML:e=>{var t;if(((t=e.parentElement)==null?void 0:t.tagName)==="A")return e.parentElement.getAttribute("href")}},target:{default:null,parseHTML:e=>{var t;if(((t=e.parentElement)==null?void 0:t.tagName)==="A")return e.parentElement.getAttribute("target")}},"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=Gr(this.options.HTMLAttributes,e);return t.href?["div",{style:`text-align:${t["data-align"]||"left"}`},["a",{href:t.href,target:t.target},["img",{...t,href:null,target:null}]]]:(t.target=null,["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;setTimeout(()=>{this.editor.commands.deleteSelection()});const r=g8(),{state:{tr:i},view:o,schema:a}=this.editor;o.dispatch(i.setMeta(eC,{type:"add",id:r,pos:i.selection.from}));const s=this.options.uploader||eZ(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=dpe.getState(this.editor.state).find(void 0,void 0,f=>f.id==r);o.dispatch(o.state.tr.insert(d[0].from-1,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(eC,{type:"remove",id:r}))}else o.dispatch(i.setMeta(eC,{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(eC,{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=bun(r||this.options.defaultSize),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>
`,EPe(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:dpe,state:{init:()=>xi.empty,apply:(t,n)=>{const r=t.getMeta(eC);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,[SPe(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(Xn.create(o,s.pos)).scrollIntoView()),r.forEach(l=>{e.commands.uploadImage(l)}),!0}},transformPastedHTML(t){const n=new DOMParser().parseFromString(t,"text/html").querySelector("body");if(n!=null&&n.children){const r=n.querySelectorAll("p > img");for(const i of r){const o=i.parentNode,a=Array.prototype.indexOf.call(n.children,o);n.insertBefore(i,n.children[a])}return n.innerHTML}return t}}})]}});var QV,XV;if(typeof WeakMap<"u"){let e=new WeakMap;QV=t=>e.get(t),XV=(t,n)=>(e.set(t,n),n)}else{const e=[];let t=0;QV=n=>{for(let r=0;r<e.length;r+=2)if(e[r]==n)return e[r+1]},XV=(n,r)=>(t==10&&(t=0),e[t++]=n,e[t++]=r)}var Io=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 QV(e)||XV(e,_un(e))}};function _un(e){if(e.type.spec.tableRole!="table")throw new RangeError("Not a table node: "+e.type.name);const t=Sun(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 S=i+_*t;for(let x=0;x<v;x++){r[S+x]==0?r[S+x]=u:(o||(o=[])).push({type:"collision",row:c,pos:u,n:v-x});const E=b&&b[x];if(E){const C=(S+x)%t*2,w=a[C];w==null||w!=E&&a[C+1]==1?(a[C]=E,a[C+1]=1):w==E&&a[C+1]++}}}i+=v,u+=g.nodeSize}const f=(c+1)*t;let p=0;for(;i<f;)r[i++]==0&&p++;p&&(o||(o=[])).push({type:"missing",row:c,n:p}),u++}(t===0||n===0)&&(o||(o=[])).push({type:"zero_sized"});const s=new Io(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&&Eun(s,a,e),s}function Sun(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 Eun(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=Cun(l)))[c]=d)}s&&e.problems.unshift({type:"colwidth mismatch",pos:o,colwidth:s})}}function Cun(e){if(e.colwidth)return e.colwidth.slice();const t=[];for(let n=0;n<e.colspan;n++)t.push(0);return t}function $s(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 vm=new Bi("selectingCells");function aE(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 xun(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 Vd(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 v8(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=aE(t.$head)||wun(t.$head);if(n)return n;throw new RangeError(`No cell found around position ${t.head}`)}function wun(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 ZV(e){return e.parent.type.spec.tableRole=="row"&&!!e.nodeAfter}function Tun(e){return e.node(0).resolve(e.pos+e.nodeAfter.nodeSize)}function tZ(e,t){return e.depth==t.depth&&e.pos>=t.start(-1)&&e.pos<=t.end(-1)}function CPe(e,t,n){const r=e.node(-1),i=Io.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 ov(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 xPe(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 Oun(e,t,n){const r=$s(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 Cp extends hr{constructor(t,n=t){const r=t.node(-1),i=Io.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 Lke(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(ZV(r)&&ZV(i)&&tZ(r,i)){const o=this.$anchorCell.node(-1)!=r.node(-1);return o&&this.isRowSelection()?Cp.rowSelection(r,i):o&&this.isColSelection()?Cp.colSelection(r,i):new Cp(r,i)}return Xn.between(r,i)}content(){const t=this.$anchorCell.node(-1),n=Io.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 p=n.findCell(f);let m=t.nodeAt(f);if(!m)throw RangeError(`No cell with offset ${f} found`);const g=i.left-p.left,v=p.right-i.right;if(g>0||v>0){let y=m.attrs;if(g>0&&(y=ov(y,0,g)),v>0&&(y=ov(y,y.colspan-v,v)),p.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(p.top<i.top||p.bottom>i.bottom){const y={...m.attrs,rowspan:Math.min(p.bottom,i.bottom)-Math.max(p.top,i.top)};p.top<i.top?m=m.type.createAndFill(y):m=m.type.create(y,m.content)}c.push(m)}a.push(t.child(l).copy(en.from(c)))}const s=this.isColSelection()&&this.isRowSelection()?t:a;return new An(en.from(s),1,1)}replace(t,n=An.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?An.empty:n)}const o=hr.findFrom(t.doc.resolve(t.mapping.slice(r).map(this.to)),-1);o&&t.setSelection(o)}replaceWith(t,n){this.replace(t,new An(en.from(n),0,0))}forEachCell(t){const n=this.$anchorCell.node(-1),r=Io.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=Io.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 Cp(t,n)}isRowSelection(){const t=this.$anchorCell.node(-1),n=Io.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 Cp&&t.$anchorCell.pos==this.$anchorCell.pos&&t.$headCell.pos==this.$headCell.pos}static rowSelection(t,n=t){const r=t.node(-1),i=Io.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 Cp(t,n)}toJSON(){return{type:"cell",anchor:this.$anchorCell.pos,head:this.$headCell.pos}}static fromJSON(t,n){return new Cp(t.resolve(n.anchor),t.resolve(n.head))}static create(t,n,r=n){return new Cp(t.resolve(n),t.resolve(r))}getBookmark(){return new Run(this.$anchorCell.pos,this.$headCell.pos)}};Ti.prototype.visible=!1;hr.jsonID("cell",Ti);var Run=class wPe{constructor(t,n){this.anchor=t,this.head=n}map(t){return new wPe(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&&tZ(n,r)?new Ti(n,r):hr.near(r,1)}};function Aun(e){if(!(e.selection instanceof Ti))return null;const t=[];return e.selection.forEachCell((n,r)=>{t.push(ra.node(r,r+n.nodeSize,{class:"selectedCell"}))}),xi.create(e.doc,t)}function Iun({$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 Nun({$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 Mun(e,t,n){const r=(t||e).selection,i=(t||e).doc;let o,a;if(r instanceof ar&&(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=Io.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 Xn&&Iun(r)?o=Xn.create(i,r.from):r instanceof Xn&&Nun(r)&&(o=Xn.create(i,r.$from.start(),r.$from.end()));return o&&(t||(t=e.tr)).setSelection(o),t}var kun=new Bi("fix-tables");function TPe(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)?TPe(e.child(s),l,n+1,r):l.nodesBetween(0,l.content.size,r,n+1),n+=l.nodeSize}}function OPe(e,t){let n;const r=(i,o)=>{i.type.spec.tableRole=="table"&&(n=Pun(e,i,o,n))};return t?t.doc!=e.doc&&TPe(t.doc,e.doc,0,r):e.doc.descendants(r),n}function Pun(e,t,n,r){const i=Io.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,ov(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})}else if(c.type=="zero_sized"){const u=r.mapping.map(n);r.delete(u,u+t.nodeSize)}}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 p="cell";u.firstChild&&(p=u.firstChild.type.spec.tableRole);const m=[];for(let v=0;v<f;v++){const y=$s(e.schema)[p].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(kun,{fixTables:!0})}function Zf(e){const t=e.selection,n=v8(e),r=n.node(-1),i=n.start(-1),o=Io.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 RPe(e,{map:t,tableStart:n,table:r},i){let o=i>0?-1:0;Oun(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,xPe(c.attrs,i-t.colCount(l))),a+=c.attrs.rowspan-1}else{const l=o==null?$s(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 Dun(e,t){if(!Vd(e))return!1;if(t){const n=Zf(e);t(RPe(e.tr,n,n.left))}return!0}function Lun(e,t){if(!Vd(e))return!1;if(t){const n=Zf(e);t(RPe(e.tr,n,n.right))}return!0}function $un(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,ov(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 Fun(e,t){if(!Vd(e))return!1;if(t){const n=Zf(e),r=e.tr;if(n.left==0&&n.right==n.map.width)return!1;for(let i=n.right-1;$un(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=Io.get(o)}t(r)}return!0}function Bun(e,t,n){var r;const i=$s(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 APe(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;Bun(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?$s(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,$s(r.type.schema).row.create(null,s)),e}function Hun(e,t){if(!Vd(e))return!1;if(t){const n=Zf(e);t(APe(e.tr,n,n.top))}return!0}function jun(e,t){if(!Vd(e))return!1;if(t){const n=Zf(e);t(APe(e.tr,n,n.bottom))}return!0}function Uun(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),p=f.attrs,m=f.type.create({...p,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+=p.colspan-1}}}}function zun(e,t){if(!Vd(e))return!1;if(t){const n=Zf(e),r=e.tr;if(n.top==0&&n.bottom==n.map.height)return!1;for(let i=n.bottom-1;Uun(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=Io.get(n.table)}t(r)}return!0}function fpe(e){const t=e.content;return t.childCount==1&&t.child(0).isTextblock&&t.child(0).childCount==0}function Vun({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 ppe(e,t){const n=e.selection;if(!(n instanceof Ti)||n.$anchorCell.pos==n.$headCell.pos)return!1;const r=Zf(e),{map:i}=r;if(Vun(i,r))return!1;if(t){const o=e.tr,a={};let s=en.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],p=r.table.nodeAt(f);if(!(a[f]||!p))if(a[f]=!0,l==null)l=f,c=p;else{fpe(p)||(s=s.append(p.content));const m=o.mapping.map(f+r.tableStart);o.delete(m,m+p.nodeSize)}}if(l==null||c==null)return!0;if(o.setNodeMarkup(l+r.tableStart,null,{...xPe(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=fpe(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 hpe(e,t){const n=$s(e.schema);return Gun(({node:r})=>n[r.type.spec.tableRole])(e,t)}function Gun(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=xun(i.$from),!o)return!1;a=(r=aE(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=Zf(t),d=t.tr;for(let p=0;p<u.right-u.left;p++)l.push(c?{...s,colwidth:c&&c[p]?[c[p]]:null}:s);let f;for(let p=u.top;p<u.bottom;p++){let m=u.map.positionAt(p,u.left,u.table);p==u.top&&(m+=o.nodeSize);for(let g=u.left,v=0;g<u.right;g++,v++)g==u.left&&p==u.top||d.insert(f=d.mapping.map(m+u.tableStart,1),e({node:o,row:p,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 Wun(e,t){return function(n,r){if(!Vd(n))return!1;const i=v8(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 qun(e){return function(t,n){if(!Vd(t))return!1;if(n){const r=$s(t.schema),i=Zf(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 mpe(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 vT(e,t){return t=t||{useDeprecatedLogic:!1},t.useDeprecatedLogic?qun(e):function(n,r){if(!Vd(n))return!1;if(r){const i=$s(n.schema),o=Zf(n),a=n.tr,s=mpe("row",o,i),l=mpe("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 p=f+o.tableStart,m=a.doc.nodeAt(p);m&&a.setNodeMarkup(p,d,m.attrs)}),r(a)}return!0}}vT("row",{useDeprecatedLogic:!0});vT("column",{useDeprecatedLogic:!0});var Yun=vT("cell",{useDeprecatedLogic:!0});function Kun(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 gpe(e){return function(t,n){if(!Vd(t))return!1;const r=Kun(v8(t),e);if(r==null)return!1;if(n){const i=t.doc.resolve(r);n(t.tr.setSelection(Xn.between(i,Tun(i))).scrollIntoView())}return!0}}function Qun(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 hA(e,t){const n=e.selection;if(!(n instanceof Ti))return!1;if(t){const r=e.tr,i=$s(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 An(i,0,0))}),r.docChanged&&t(r)}return!0}function Xun(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=JV($s(a).row,new An(c,u,d)).content),s.push(c)}else if(o=="cell"||o=="header_cell")s.push(n||r?JV($s(a).row,new An(t,n,r)).content:t);else return null;return Zun(a,s)}function Zun(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(en.empty),n[i]<r){const o=$s(e).cell.createAndFill(),a=[];for(let s=n[i];s<r;s++)a.push(o);t[i]=t[i].append(en.from(a))}return{height:t.length,width:r,rows:t}}function JV(e,t){const n=e.createAndFill();return new CX(n).replace(0,n.content.size,t).doc}function Jun({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(ov(f.attrs,f.attrs.colspan,u+f.attrs.colspan-r),f.content)),c.push(f),u+=f.attrs.colspan;for(let p=1;p<f.attrs.rowspan;p++)o[s+p]=(o[s+p]||0)+f.attrs.colspan}a.push(en.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(en.from(l))}n=o,t=i}return{width:e,height:t,rows:n}}function edn(e,t,n,r,i,o,a){const s=e.doc.type.schema,l=$s(s);let c,u;if(i>t.width)for(let d=0,f=0;d<t.height;d++){const p=n.child(d);f+=p.nodeSize;const m=[];let g;p.lastChild==null||p.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,en.from(d)),p=[];for(let m=t.height;m<o;m++)p.push(f);e.insert(e.mapping.slice(a).map(r+n.nodeSize-2),p)}return!!(c||u)}function vpe(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:p,left:m}=t.findCell(d);e.setNodeMarkup(e.mapping.slice(s).map(d+r),null,{...f.attrs,rowspan:a-p}),e.insert(e.mapping.slice(s).map(t.positionAt(a,m,n)),f.type.createAndFill({...f.attrs,rowspan:p+f.attrs.rowspan-a})),c+=f.attrs.colspan-1}}return l}function bpe(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),p=t.colCount(d),m=e.mapping.slice(s).map(d+r);e.setNodeMarkup(m,null,ov(f.attrs,a-p,f.attrs.colspan-(a-p))),e.insert(m+f.nodeSize,f.type.createAndFill(ov(f.attrs,0,a-p))),c+=f.attrs.rowspan-1}}return l}function ype(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=Io.get(o);const{top:s,left:l}=r,c=l+i.width,u=s+i.height,d=e.tr;let f=0;function p(){if(o=n?d.doc.nodeAt(n-1):d.doc,!o)throw new Error("No table found");a=Io.get(o),f=d.mapping.maps.length}edn(d,a,o,n,c,u,f)&&p(),vpe(d,a,o,n,l,c,s,f)&&p(),vpe(d,a,o,n,l,c,u,f)&&p(),bpe(d,a,o,n,s,u,l,f)&&p(),bpe(d,a,o,n,s,u,c,f)&&p();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 An(i.rows[m-s],0,0))}p(),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 tdn=kX({ArrowLeft:mA("horiz",-1),ArrowRight:mA("horiz",1),ArrowUp:mA("vert",-1),ArrowDown:mA("vert",1),"Shift-ArrowLeft":gA("horiz",-1),"Shift-ArrowRight":gA("horiz",1),"Shift-ArrowUp":gA("vert",-1),"Shift-ArrowDown":gA("vert",1),Backspace:hA,"Mod-Backspace":hA,Delete:hA,"Mod-Delete":hA});function gN(e,t,n){return n.eq(e.selection)?!1:(t&&t(e.tr.setSelection(n).scrollIntoView()),!0)}function mA(e,t){return(n,r,i)=>{if(!i)return!1;const o=n.selection;if(o instanceof Ti)return gN(n,r,hr.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 gN(n,r,hr.near(n.doc.resolve(o.head+t),t));{const s=n.doc.resolve(a),l=CPe(s,e,t);let c;return l?c=hr.near(l,1):t<0?c=hr.near(n.doc.resolve(s.before(-1)),-1):c=hr.near(n.doc.resolve(s.after(-1)),1),gN(n,r,c)}}}function gA(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=CPe(a.$headCell,e,t);return s?gN(n,r,new Ti(a.$anchorCell,s)):!1}}function ndn(e,t){const n=e.state.doc,r=aE(n.resolve(t));return r?(e.dispatch(e.state.tr.setSelection(new Ti(r))),!0):!1}function rdn(e,t,n){if(!Vd(e.state))return!1;let r=Xun(n);const i=e.state.selection;if(i instanceof Ti){r||(r={width:1,height:1,rows:[en.from(JV($s(e.state.schema).cell,n))]});const o=i.$anchorCell.node(-1),a=i.$anchorCell.start(-1),s=Io.get(o).rectBetween(i.$anchorCell.pos-a,i.$headCell.pos-a);return r=Jun(r,s.right-s.left,s.bottom-s.top),ype(e.state,e.dispatch,a,s,r),!0}else if(r){const o=v8(e.state),a=o.start(-1);return ype(e.state,e.dispatch,a,Io.get(o.node(-1)).findCell(o.pos-a),r),!0}else return!1}function idn(e,t){var n;if(t.ctrlKey||t.metaKey)return;const r=_pe(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=aE(e.state.selection.$anchor))!=null&&((n=m7(e,t))==null?void 0:n.pos)!=i.pos)o(i,t),t.preventDefault();else if(!r)return;function o(l,c){let u=m7(e,c);const d=vm.getState(e.state)==null;if(!u||!tZ(l,u))if(d)u=l;else return;const f=new Ti(l,u);if(d||!e.state.selection.eq(f)){const p=e.state.tr.setSelection(f);d&&p.setMeta(vm,l.pos),e.dispatch(p)}}function a(){e.root.removeEventListener("mouseup",a),e.root.removeEventListener("dragstart",a),e.root.removeEventListener("mousemove",s),vm.getState(e.state)!=null&&e.dispatch(e.state.tr.setMeta(vm,-1))}function s(l){const c=l,u=vm.getState(e.state);let d;if(u!=null)d=e.state.doc.resolve(u);else if(_pe(e,c.target)!=r&&(d=m7(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 Xn))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 _pe(e,t){for(;t&&t!=e.dom;t=t.parentNode)if(t.nodeName=="TD"||t.nodeName=="TH")return t;return null}function m7(e,t){const n=e.posAtCoords({left:t.clientX,top:t.clientY});return n&&n?aE(e.state.doc.resolve(n.pos)):null}var odn=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")),eG(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,eG(e,this.colgroup,this.table,this.defaultCellMinWidth),!0)}ignoreMutation(e){return e.type=="attributes"&&(e.target==this.table||this.colgroup.contains(e.target))}};function eG(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:p,colwidth:m}=u.child(d).attrs;for(let g=0;g<p;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 pc=new Bi("tableColumnResizing");function adn({handleWidth:e=5,cellMinWidth:t=25,defaultCellMinWidth:n=100,View:r=odn,lastColumnResizable:i=!0}={}){const o=new Ei({key:pc,state:{init(a,s){var l,c;const u=(c=(l=o.spec)==null?void 0:l.props)==null?void 0:c.nodeViews,d=$s(s.schema).table.name;return r&&u&&(u[d]=(f,p)=>new r(f,n,p)),new sdn(-1,!1)},apply(a,s){return s.apply(a)}},props:{attributes:a=>{const s=pc.getState(a);return s&&s.activeHandle>-1?{class:"resize-cursor"}:{}},handleDOMEvents:{mousemove:(a,s)=>{ldn(a,s,e,i)},mouseleave:a=>{cdn(a)},mousedown:(a,s)=>{udn(a,s,t,n)}},decorations:a=>{const s=pc.getState(a);if(s&&s.activeHandle>-1)return mdn(a,s.activeHandle)},nodeViews:{}}});return o}var sdn=class vN{constructor(t,n){this.activeHandle=t,this.dragging=n}apply(t){const n=this,r=t.getMeta(pc);if(r&&r.setHandle!=null)return new vN(r.setHandle,!1);if(r&&r.setDragging!==void 0)return new vN(n.activeHandle,r.setDragging);if(n.activeHandle>-1&&t.docChanged){let i=t.mapping.map(n.activeHandle,-1);return ZV(t.doc.resolve(i))||(i=-1),new vN(i,n.dragging)}return n}};function ldn(e,t,n,r){if(!e.editable)return;const i=pc.getState(e.state);if(i&&!i.dragging){const o=fdn(t.target);let a=-1;if(o){const{left:s,right:l}=o.getBoundingClientRect();t.clientX-s<=n?a=Spe(e,t,"left",n):l-t.clientX<=n&&(a=Spe(e,t,"right",n))}if(a!=i.activeHandle){if(!r&&a!==-1){const s=e.state.doc.resolve(a),l=s.node(-1),c=Io.get(l),u=s.start(-1);if(c.colCount(s.pos-u)+s.nodeAfter.attrs.colspan-1==c.width-1)return}NPe(e,a)}}}function cdn(e){if(!e.editable)return;const t=pc.getState(e.state);t&&t.activeHandle>-1&&!t.dragging&&NPe(e,-1)}function udn(e,t,n,r){var i;if(!e.editable)return!1;const o=(i=e.dom.ownerDocument.defaultView)!=null?i:window,a=pc.getState(e.state);if(!a||a.activeHandle==-1||a.dragging)return!1;const s=e.state.doc.nodeAt(a.activeHandle),l=ddn(e,a.activeHandle,s.attrs);e.dispatch(e.state.tr.setMeta(pc,{setDragging:{startX:t.clientX,startWidth:l}}));function c(d){o.removeEventListener("mouseup",c),o.removeEventListener("mousemove",u);const f=pc.getState(e.state);f!=null&&f.dragging&&(pdn(e,f.activeHandle,Epe(f.dragging,d,n)),e.dispatch(e.state.tr.setMeta(pc,{setDragging:null})))}function u(d){if(!d.which)return c(d);const f=pc.getState(e.state);if(f&&f.dragging){const p=Epe(f.dragging,d,n);Cpe(e,f.activeHandle,p,r)}}return Cpe(e,a.activeHandle,l,r),o.addEventListener("mouseup",c),o.addEventListener("mousemove",u),t.preventDefault(),!0}function ddn(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 fdn(e){for(;e&&e.nodeName!="TD"&&e.nodeName!="TH";)e=e.classList&&e.classList.contains("ProseMirror")?null:e.parentNode;return e}function Spe(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=aE(e.state.doc.resolve(a));if(!s)return-1;if(n=="right")return s.pos;const l=Io.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 Epe(e,t,n){const r=t.clientX-e.startX;return Math.max(n,e.startWidth+r)}function NPe(e,t){e.dispatch(e.state.tr.setMeta(pc,{setHandle:t}))}function pdn(e,t,n){const r=e.state.doc.resolve(t),i=r.node(-1),o=Io.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,p=f.colspan==1?0:s-o.colCount(d);if(f.colwidth&&f.colwidth[p]==n)continue;const m=f.colwidth?f.colwidth.slice():hdn(f.colspan);m[p]=n,l.setNodeMarkup(a+d,null,{...f,colwidth:m})}l.docChanged&&e.dispatch(l)}function Cpe(e,t,n,r){const i=e.state.doc.resolve(t),o=i.node(-1),a=i.start(-1),s=Io.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&&eG(o,l.firstChild,l,r,s,n)}function hdn(e){return Array(e).fill(0)}function mdn(e,t){var n;const r=[],i=e.doc.resolve(t),o=i.node(-1);if(!o)return xi.empty;const a=Io.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,p=document.createElement("div");p.className="column-resize-handle",(n=pc.getState(e))!=null&&n.dragging&&r.push(ra.node(s+d,s+d+o.nodeAt(d).nodeSize,{class:"column-resize-dragging"})),r.push(ra.widget(f,p))}}return xi.create(e.doc,r)}function gdn({allowTableNodeSelection:e=!1}={}){return new Ei({key:vm,state:{init(){return null},apply(t,n){const r=t.getMeta(vm);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:Aun,handleDOMEvents:{mousedown:idn},createSelectionBetween(t){return vm.getState(t.state)!=null?t.state.selection:null},handleTripleClick:ndn,handleKeyDown:tdn,handlePaste:rdn},appendTransaction(t,n,r){return Mun(r,OPe(r,n),e)}})}function tG(e,t){return t?["width",`${Math.max(t,e)}px`]:["min-width",`${e}px`]}function xpe(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:p,colwidth:m}=u.child(d).attrs;for(let g=0;g<p;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,_]=tG(r,v);c.style.setProperty(b,_)}c=c.nextSibling}else{const b=document.createElement("col"),[_,S]=tG(r,v);b.style.setProperty(_,S),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 vdn{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")),xpe(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,xpe(t,this.colgroup,this.table,this.cellMinWidth),!0)}ignoreMutation(t){return t.type==="attributes"&&(t.target===this.table||this.colgroup.contains(t.target))}}function bdn(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:p}=s.child(u).attrs;for(let m=0;m<f;m+=1,d+=1){const g=n===d?r:p&&p[m];i+=g||t,g||(o=!1);const[v,y]=tG(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 wpe(e,t){return e.createAndFill()}function ydn(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 _dn(e,t,n,r,i){const o=ydn(e),a=[],s=[];for(let c=0;c<n;c+=1){const u=wpe(o.cell);if(u&&s.push(u),r){const d=wpe(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 Sdn(e){return e instanceof Ti}const vA=({editor:e})=>{const{selection:t}=e.state;if(!Sdn(t))return!1;let n=0;const r=k5e(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},Edn=To.create({name:"table",addOptions(){return{HTMLAttributes:{},resizable:!1,handleWidth:5,cellMinWidth:25,View:vdn,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}=bdn(e,this.options.cellMinWidth);return["table",Gr(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=_dn(o.schema,e,t,n);if(i){const s=r.selection.from+1;r.replaceSelectionWith(a).scrollIntoView().setSelection(Xn.near(r.doc.resolve(s)))}return!0},addColumnBefore:()=>({state:e,dispatch:t})=>Dun(e,t),addColumnAfter:()=>({state:e,dispatch:t})=>Lun(e,t),deleteColumn:()=>({state:e,dispatch:t})=>Fun(e,t),addRowBefore:()=>({state:e,dispatch:t})=>Hun(e,t),addRowAfter:()=>({state:e,dispatch:t})=>jun(e,t),deleteRow:()=>({state:e,dispatch:t})=>zun(e,t),deleteTable:()=>({state:e,dispatch:t})=>Qun(e,t),mergeCells:()=>({state:e,dispatch:t})=>ppe(e,t),splitCell:()=>({state:e,dispatch:t})=>hpe(e,t),toggleHeaderColumn:()=>({state:e,dispatch:t})=>vT("column")(e,t),toggleHeaderRow:()=>({state:e,dispatch:t})=>vT("row")(e,t),toggleHeaderCell:()=>({state:e,dispatch:t})=>Yun(e,t),mergeOrSplit:()=>({state:e,dispatch:t})=>ppe(e,t)?!0:hpe(e,t),setCellAttribute:(e,t)=>({state:n,dispatch:r})=>Wun(e,t)(n,r),goToNextCell:()=>({state:e,dispatch:t})=>gpe(1)(e,t),goToPreviousCell:()=>({state:e,dispatch:t})=>gpe(-1)(e,t),fixTables:()=>({state:e,dispatch:t})=>(t&&OPe(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:vA,"Mod-Backspace":vA,Delete:vA,"Mod-Delete":vA}},addProseMirrorPlugins(){return[...this.options.resizable&&this.editor.isEditable?[adn({handleWidth:this.options.handleWidth,cellMinWidth:this.options.cellMinWidth,defaultCellMinWidth:this.options.cellMinWidth,View:this.options.View,lastColumnResizable:this.options.lastColumnResizable})]:[],gdn({allowTableNodeSelection:this.options.allowTableNodeSelection})]},extendNodeSchema(e){const t={name:e.name,options:e.options,storage:e.storage};return{tableRole:Nr(Gn(e,"tableRole",t))}}}),Cdn=To.create({name:"tableRow",addOptions(){return{HTMLAttributes:{}}},content:"(tableCell | tableHeader)*",tableRole:"row",parseHTML(){return[{tag:"tr"}]},renderHTML({HTMLAttributes:e}){return["tr",Gr(this.options.HTMLAttributes,e),0]}}),xdn=To.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",Gr(this.options.HTMLAttributes,e),0]}}),wdn=xdn.extend({addAttributes(){var e;return{...(e=this.parent)==null?void 0:e.call(this),backgroundColor:{default:null,parseHTML:t=>t.style.backgroundColor||null,renderHTML:t=>t.backgroundColor?{style:`background-color: ${t.backgroundColor}`}:{}},color:{default:null,parseHTML:t=>t.style.color||null,renderHTML:t=>t.color?{style:`color: ${t.color}`}:{}},width:{default:null,parseHTML:t=>t.style.width||null,renderHTML:t=>t.width?{style:`width: ${t.width}`}:{}}}}}),Tdn=To.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",Gr(this.options.HTMLAttributes,e),0]}}),Odn=Tdn.extend({addAttributes(){var e;return{...(e=this.parent)==null?void 0:e.call(this),backgroundColor:{default:null,parseHTML:t=>t.style.backgroundColor||null,renderHTML:t=>t.backgroundColor?{style:`background-color: ${t.backgroundColor}`}:{}},color:{default:null,parseHTML:t=>t.style.color||null,renderHTML:t=>t.color?{style:`color: ${t.color}`}:{}},width:{default:null,parseHTML:t=>t.style.width||null,renderHTML:t=>t.width?{style:`width: ${t.width}`}:{}}}}}),Rdn=yi.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(){let e=!1;return[new Ei({key:new Bi("characterCount"),appendTransaction:(t,n,r)=>{if(e)return;const i=this.options.limit;if(i==null||i===0){e=!0;return}const o=this.storage.characters({node:r.doc});if(o>i){const a=o-i,s=0,l=a;console.warn(`[CharacterCount] Initial content exceeded limit of ${i} characters. Content was automatically trimmed.`);const c=r.tr.deleteRange(s,l);return e=!0,c}e=!0},filterTransaction:(t,n)=>{const r=this.options.limit;if(!t.docChanged||r===0||r===null||r===void 0)return!0;const i=this.storage.characters({node:n.doc}),o=this.storage.characters({node:t.doc});if(o<=r||i>r&&o>r&&o<=i)return!0;if(i>r&&o>r&&o>i||!t.getMeta("paste"))return!1;const a=t.selection.$head.pos,s=o-r,l=a-s,c=a;return t.deleteRange(l,c),!(this.storage.characters({node:t.doc})>r)}})]}}),Adn="aaa1rp3bb0ott3vie4c1le2ogado5udhabi7c0ademy5centure6ountant0s9o1tor4d0s1ult4e0g1ro2tna4f0l1rica5g0akhan5ency5i0g1rbus3force5tel5kdn3l0ibaba4pay4lfinanz6state5y2sace3tom5m0azon4ericanexpress7family11x2fam3ica3sterdam8nalytics7droid5quan4z2o0l2partments8p0le4q0uarelle8r0ab1mco4chi3my2pa2t0e3s0da2ia2sociates9t0hleta5torney7u0ction5di0ble3o3spost5thor3o0s4w0s2x0a2z0ure5ba0by2idu3namex4d1k2r0celona5laycard4s5efoot5gains6seball5ketball8uhaus5yern5b0c1t1va3cg1n2d1e0ats2uty4er2ntley5rlin4st0buy5t2f1g1h0arti5i0ble3d1ke2ng0o3o1z2j1lack0friday9ockbuster8g1omberg7ue3m0s1w2n0pparibas9o0ats3ehringer8fa2m1nd2o0k0ing5sch2tik2on4t1utique6x2r0adesco6idgestone9oadway5ker3ther5ussels7s1t1uild0ers6siness6y1zz3v1w1y1z0h3ca0b1fe2l0l1vinklein9m0era3p2non3petown5ital0one8r0avan4ds2e0er0s4s2sa1e1h1ino4t0ering5holic7ba1n1re3c1d1enter4o1rn3f0a1d2g1h0anel2nel4rity4se2t2eap3intai5ristmas6ome4urch5i0priani6rcle4sco3tadel4i0c2y3k1l0aims4eaning6ick2nic1que6othing5ud3ub0med6m1n1o0ach3des3ffee4llege4ogne5m0mbank4unity6pany2re3uter5sec4ndos3struction8ulting7tact3ractors9oking4l1p2rsica5untry4pon0s4rses6pa2r0edit0card4union9icket5own3s1uise0s6u0isinella9v1w1x1y0mru3ou3z2dad1nce3ta1e1ing3sun4y2clk3ds2e0al0er2s3gree4livery5l1oitte5ta3mocrat6ntal2ist5si0gn4v2hl2iamonds6et2gital5rect0ory7scount3ver5h2y2j1k1m1np2o0cs1tor4g1mains5t1wnload7rive4tv2ubai3nlop4pont4rban5vag2r2z2earth3t2c0o2deka3u0cation8e1g1mail3erck5nergy4gineer0ing9terprises10pson4quipment8r0icsson6ni3s0q1tate5t1u0rovision8s2vents5xchange6pert3osed4ress5traspace10fage2il1rwinds6th3mily4n0s2rm0ers5shion4t3edex3edback6rrari3ero6i0delity5o2lm2nal1nce1ial7re0stone6mdale6sh0ing5t0ness6j1k1lickr3ghts4r2orist4wers5y2m1o0o0d1tball6rd1ex2sale4um3undation8x2r0ee1senius7l1ogans4ntier7tr2ujitsu5n0d2rniture7tbol5yi3ga0l0lery3o1up4me0s3p1rden4y2b0iz3d0n2e0a1nt0ing5orge5f1g0ee3h1i0ft0s3ves2ing5l0ass3e1obal2o4m0ail3bh2o1x2n1odaddy5ld0point6f2o0dyear5g0le4p1t1v2p1q1r0ainger5phics5tis4een3ipe3ocery4up4s1t1u0cci3ge2ide2tars5ru3w1y2hair2mburg5ngout5us3bo2dfc0bank7ealth0care8lp1sinki6re1mes5iphop4samitsu7tachi5v2k0t2m1n1ockey4ldings5iday5medepot5goods5s0ense7nda3rse3spital5t0ing5t0els3mail5use3w2r1sbc3t1u0ghes5yatt3undai7ibm2cbc2e1u2d1e0ee3fm2kano4l1m0amat4db2mo0bilien9n0c1dustries8finiti5o2g1k1stitute6urance4e4t0ernational10uit4vestments10o1piranga7q1r0ish4s0maili5t0anbul7t0au2v3jaguar4va3cb2e0ep2tzt3welry6io2ll2m0p2nj2o0bs1urg4t1y2p0morgan6rs3uegos4niper7kaufen5ddi3e0rryhotels6logistics9properties14fh2g1h1i0a1ds2m1ndle4tchen5wi3m1n1oeln3matsu5sher5p0mg2n2r0d1ed3uokgroup8w1y0oto4z2la0caixa5mborghini8er3ncaster6d0rover6xess5salle5t0ino3robe5w0yer5b1c1ds2ease3clerc5frak4gal2o2xus4gbt3i0dl2fe0insurance9style7ghting6ke2lly3mited4o2ncoln4k2psy3ve1ing5k1lc1p2oan0s3cker3us3l1ndon4tte1o3ve3pl0financial11r1s1t0d0a3u0ndbeck6xe1ury5v1y2ma0drid4if1son4keup4n0agement7go3p1rket0ing3s4riott5shalls7ttel5ba2c0kinsey7d1e0d0ia3et2lbourne7me1orial6n0u2rckmsd7g1h1iami3crosoft7l1ni1t2t0subishi9k1l0b1s2m0a2n1o0bi0le4da2e1i1m1nash3ey2ster5rmon3tgage6scow4to0rcycles9v0ie4p1q1r1s0d2t0n1r2u0seum3ic4v1w1x1y1z2na0b1goya4me2vy3ba2c1e0c1t0bank4flix4work5ustar5w0s2xt0direct7us4f0l2g0o2hk2i0co2ke1on3nja3ssan1y5l1o0kia3rton4w0ruz3tv4p1r0a1w2tt2u1yc2z2obi1server7ffice5kinawa6layan0group9lo3m0ega4ne1g1l0ine5oo2pen3racle3nge4g0anic5igins6saka4tsuka4t2vh3pa0ge2nasonic7ris2s1tners4s1y3y2ccw3e0t2f0izer5g1h0armacy6d1ilips5one2to0graphy6s4ysio5ics1tet2ures6d1n0g1k2oneer5zza4k1l0ace2y0station9umbing5s3m1n0c2ohl2ker3litie5rn2st3r0america6xi3ess3ime3o0d0uctions8f1gressive8mo2perties3y5tection8u0dential9s1t1ub2w0c2y2qa1pon3uebec3st5racing4dio4e0ad1lestate6tor2y4cipes5d0stone5umbrella9hab3ise0n3t2liance6n0t0als5pair3ort3ublican8st0aurant8view0s5xroth6ich0ardli6oh3l1o1p2o0cks3deo3gers4om3s0vp3u0gby3hr2n2w0e2yukyu6sa0arland6fe0ty4kura4le1on3msclub4ung5ndvik0coromant12ofi4p1rl2s1ve2xo3b0i1s2c0b1haeffler7midt4olarships8ol3ule3warz5ience5ot3d1e0arch3t2cure1ity6ek2lect4ner3rvices6ven3w1x0y3fr2g1h0angrila6rp3ell3ia1ksha5oes2p0ping5uji3w3i0lk2na1gles5te3j1k0i0n2y0pe4l0ing4m0art3ile4n0cf3o0ccer3ial4ftbank4ware6hu2lar2utions7ng1y2y2pa0ce3ort2t3r0l2s1t0ada2ples4r1tebank4farm7c0group6ockholm6rage3e3ream4udio2y3yle4u0cks3pplies3y2ort5rf1gery5zuki5v1watch4iss4x1y0dney4stems6z2tab1ipei4lk2obao4rget4tamotors6r2too4x0i3c0i2d0k2eam2ch0nology8l1masek5nnis4va3f1g1h0d1eater2re6iaa2ckets5enda4ps2res2ol4j0maxx4x2k0maxx5l1m0all4n1o0day3kyo3ols3p1ray3shiba5tal3urs3wn2yota3s3r0ade1ing4ining5vel0ers0insurance16ust3v2t1ube2i1nes3shu4v0s2w1z2ua1bank3s2g1k1nicom3versity8o2ol2ps2s1y1z2va0cations7na1guard7c1e0gas3ntures6risign5mögensberater2ung14sicherung10t2g1i0ajes4deo3g1king4llas4n1p1rgin4sa1ion4va1o3laanderen9n1odka3lvo3te1ing3o2yage5u2wales2mart4ter4ng0gou5tch0es6eather0channel12bcam3er2site5d0ding5ibo2r3f1hoswho6ien2ki2lliamhill9n0dows4e1ners6me2olterskluwer11odside6rk0s2ld3w2s1tc1f3xbox3erox4ihuan4n2xx2yz3yachts4hoo3maxun5ndex5e1odobashi7ga2kohama6u0tube6t1un3za0ppos4ra3ero3ip2m1one3uerich6w2",Idn="ελ1υ2бг1ел3дети4ею2католик6ом3мкд2он1сква6онлайн5рг3рус2ф2сайт3рб3украз3հայ3ישראל5קום3ابوظبي5رامكو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",q_=(e,t)=>{for(const n in t)e[n]=t[n];return e},nG="numeric",rG="ascii",iG="alpha",Nx="asciinumeric",zC="alphanumeric",oG="domain",MPe="emoji",Ndn="scheme",Mdn="slashscheme",g7="whitespace";function kdn(e,t){return e in t||(t[e]=[]),t[e]}function q0(e,t,n){t[nG]&&(t[Nx]=!0,t[zC]=!0),t[rG]&&(t[Nx]=!0,t[iG]=!0),t[Nx]&&(t[zC]=!0),t[iG]&&(t[zC]=!0),t[zC]&&(t[oG]=!0),t[MPe]&&(t[oG]=!0);for(const r in t){const i=kdn(r,n);i.indexOf(e)<0&&i.push(e)}}function Pdn(e,t){const n={};for(const r in t)t[r].indexOf(e)>=0&&(n[r]=!0);return n}function Tl(e=null){this.j={},this.jr=[],this.jd=null,this.t=e}Tl.groups={};Tl.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=!1){return 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||Tl.groups;let i;return t&&t.j?i=t:(i=new Tl(t),n&&r&&q0(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||Tl.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 Tl,q_(a.j,s.j),a.jr.push.apply(a.jr,s.jr),a.jd=s.jd,a.t=s.t):a=new Tl,o){if(r)if(a.t&&typeof a.t=="string"){const l=q_(Pdn(a.t,r),n);q0(o,l,r)}else n&&q0(o,n,r);a.t=o}return i.j[e]=a,a}};const kr=(e,t,n,r,i)=>e.ta(t,n,r,i),Bo=(e,t,n,r,i)=>e.tr(t,n,r,i),Tpe=(e,t,n,r,i)=>e.ts(t,n,r,i),un=(e,t,n,r,i)=>e.tt(t,n,r,i),xp="WORD",aG="UWORD",kPe="ASCIINUMERICAL",PPe="ALPHANUMERICAL",bT="LOCALHOST",sG="TLD",lG="UTLD",bN="SCHEME",kb="SLASH_SCHEME",nZ="NUM",cG="WS",rZ="NL",Mx="OPENBRACE",kx="CLOSEBRACE",tk="OPENBRACKET",nk="CLOSEBRACKET",rk="OPENPAREN",ik="CLOSEPAREN",ok="OPENANGLEBRACKET",ak="CLOSEANGLEBRACKET",sk="FULLWIDTHLEFTPAREN",lk="FULLWIDTHRIGHTPAREN",ck="LEFTCORNERBRACKET",uk="RIGHTCORNERBRACKET",dk="LEFTWHITECORNERBRACKET",fk="RIGHTWHITECORNERBRACKET",pk="FULLWIDTHLESSTHAN",hk="FULLWIDTHGREATERTHAN",mk="AMPERSAND",iZ="APOSTROPHE",gk="ASTERISK",dm="AT",vk="BACKSLASH",bk="BACKTICK",yk="CARET",bm="COLON",oZ="COMMA",_k="DOLLAR",of="DOT",Sk="EQUALS",aZ="EXCLAMATION",Vc="HYPHEN",Px="PERCENT",Ek="PIPE",Ck="PLUS",xk="POUND",Dx="QUERY",sZ="QUOTE",DPe="FULLWIDTHMIDDLEDOT",lZ="SEMI",af="SLASH",Lx="TILDE",wk="UNDERSCORE",LPe="EMOJI",Tk="SYM";var $Pe=Object.freeze({__proto__:null,WORD:xp,UWORD:aG,ASCIINUMERICAL:kPe,ALPHANUMERICAL:PPe,LOCALHOST:bT,TLD:sG,UTLD:lG,SCHEME:bN,SLASH_SCHEME:kb,NUM:nZ,WS:cG,NL:rZ,OPENBRACE:Mx,CLOSEBRACE:kx,OPENBRACKET:tk,CLOSEBRACKET:nk,OPENPAREN:rk,CLOSEPAREN:ik,OPENANGLEBRACKET:ok,CLOSEANGLEBRACKET:ak,FULLWIDTHLEFTPAREN:sk,FULLWIDTHRIGHTPAREN:lk,LEFTCORNERBRACKET:ck,RIGHTCORNERBRACKET:uk,LEFTWHITECORNERBRACKET:dk,RIGHTWHITECORNERBRACKET:fk,FULLWIDTHLESSTHAN:pk,FULLWIDTHGREATERTHAN:hk,AMPERSAND:mk,APOSTROPHE:iZ,ASTERISK:gk,AT:dm,BACKSLASH:vk,BACKTICK:bk,CARET:yk,COLON:bm,COMMA:oZ,DOLLAR:_k,DOT:of,EQUALS:Sk,EXCLAMATION:aZ,HYPHEN:Vc,PERCENT:Px,PIPE:Ek,PLUS:Ck,POUND:xk,QUERY:Dx,QUOTE:sZ,FULLWIDTHMIDDLEDOT:DPe,SEMI:lZ,SLASH:af,TILDE:Lx,UNDERSCORE:wk,EMOJI:LPe,SYM:Tk});const dp=/[a-z]/,tC=new RegExp("\\p{L}","u"),v7=new RegExp("\\p{Emoji}","u"),fp=/\d/,b7=/\s/,Ope="\r",y7=`
`,Ddn="",Ldn="",_7="";let bA=null,yA=null;function $dn(e=[]){const t={};Tl.groups=t;const n=new Tl;bA==null&&(bA=Rpe(Adn)),yA==null&&(yA=Rpe(Idn)),un(n,"'",iZ),un(n,"{",Mx),un(n,"}",kx),un(n,"[",tk),un(n,"]",nk),un(n,"(",rk),un(n,")",ik),un(n,"<",ok),un(n,">",ak),un(n,"",sk),un(n,"",lk),un(n,"「",ck),un(n,"」",uk),un(n,"『",dk),un(n,"』",fk),un(n,"",pk),un(n,"",hk),un(n,"&",mk),un(n,"*",gk),un(n,"@",dm),un(n,"`",bk),un(n,"^",yk),un(n,":",bm),un(n,",",oZ),un(n,"$",_k),un(n,".",of),un(n,"=",Sk),un(n,"!",aZ),un(n,"-",Vc),un(n,"%",Px),un(n,"|",Ek),un(n,"+",Ck),un(n,"#",xk),un(n,"?",Dx),un(n,'"',sZ),un(n,"/",af),un(n,";",lZ),un(n,"~",Lx),un(n,"_",wk),un(n,"\\",vk),un(n,"・",DPe);const r=Bo(n,fp,nZ,{[nG]:!0});Bo(r,fp,r);const i=Bo(r,dp,kPe,{[Nx]:!0}),o=Bo(r,tC,PPe,{[zC]:!0}),a=Bo(n,dp,xp,{[rG]:!0});Bo(a,fp,i),Bo(a,dp,a),Bo(i,fp,i),Bo(i,dp,i);const s=Bo(n,tC,aG,{[iG]:!0});Bo(s,dp),Bo(s,fp,o),Bo(s,tC,s),Bo(o,fp,o),Bo(o,dp),Bo(o,tC,o);const l=un(n,y7,rZ,{[g7]:!0}),c=un(n,Ope,cG,{[g7]:!0}),u=Bo(n,b7,cG,{[g7]:!0});un(n,_7,u),un(c,y7,l),un(c,_7,u),Bo(c,b7,u),un(u,Ope),un(u,y7),Bo(u,b7,u),un(u,_7,u);const d=Bo(n,v7,LPe,{[MPe]:!0});un(d,"#"),Bo(d,v7,d),un(d,Ddn,d);const f=un(d,Ldn);un(f,"#"),Bo(f,v7,d);const p=[[dp,a],[fp,i]],m=[[dp,null],[tC,s],[fp,o]];for(let g=0;g<bA.length;g++)Fh(n,bA[g],sG,xp,p);for(let g=0;g<yA.length;g++)Fh(n,yA[g],lG,aG,m);q0(sG,{tld:!0,ascii:!0},t),q0(lG,{utld:!0,alpha:!0},t),Fh(n,"file",bN,xp,p),Fh(n,"mailto",bN,xp,p),Fh(n,"http",kb,xp,p),Fh(n,"https",kb,xp,p),Fh(n,"ftp",kb,xp,p),Fh(n,"ftps",kb,xp,p),q0(bN,{scheme:!0,ascii:!0},t),q0(kb,{slashscheme:!0,ascii:!0},t),e=e.sort((g,v)=>g[0]>v[0]?1:-1);for(let g=0;g<e.length;g++){const v=e[g][0],y=e[g][1]?{[Ndn]:!0}:{[Mdn]:!0};v.indexOf("-")>=0?y[oG]=!0:dp.test(v)?fp.test(v)?y[Nx]=!0:y[rG]=!0:y[nG]=!0,Tpe(n,v,v,y)}return Tpe(n,"localhost",bT,{ascii:!0}),n.jd=new Tl(Tk),{start:n,tokens:q_({groups:t},$Pe)}}function FPe(e,t){const n=Fdn(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 Fdn(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 Fh(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 Tl(r),o.jr=i.slice(),e.j[l]=o),e=o}return o=new Tl(n),o.jr=i.slice(),e.j[t[a-1]]=o,o}function Rpe(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 yT={defaultProtocol:"http",events:null,format:Ape,formatHref:Ape,nl2br:!1,tagName:"a",target:null,rel:null,validate:!0,truncate:1/0,className:null,attributes:null,ignoreTags:[],render:null};function cZ(e,t=null){let n=q_({},yT);e&&(n=q_(n,e instanceof cZ?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}cZ.prototype={o:yT,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]:yT[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 Ape(e){return e}function BPe(e,t){this.t="token",this.v=e,this.tk=t}BPe.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=yT.defaultProtocol){return{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&&q_(a,u),{tagName:i,attributes:a,content:o,eventListeners:d}}};function b8(e,t){class n extends BPe{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 Ipe=b8("email",{isLink:!0,toHref(){return"mailto:"+this.toString()}}),Npe=b8("text"),Bdn=b8("nl"),_A=b8("url",{isLink:!0,toHref(e=yT.defaultProtocol){return this.hasProtocol()?this.v:`${e}://${this.v}`},hasProtocol(){const e=this.tk;return e.length>=2&&e[0].t!==bT&&e[1].t===bm}}),Hc=e=>new Tl(e);function Hdn({groups:e}){const t=e.domain.concat([mk,gk,dm,vk,bk,yk,_k,Sk,Vc,nZ,Px,Ek,Ck,xk,af,Tk,Lx,wk]),n=[bm,oZ,of,aZ,Px,Dx,sZ,lZ,ok,ak,Mx,kx,nk,tk,rk,ik,sk,lk,ck,uk,dk,fk,pk,hk],r=[mk,iZ,gk,vk,bk,yk,_k,Sk,Vc,Mx,kx,Px,Ek,Ck,xk,Dx,af,Tk,Lx,wk],i=Hc(),o=un(i,Lx);kr(o,r,o),kr(o,e.domain,o);const a=Hc(),s=Hc(),l=Hc();kr(i,e.domain,a),kr(i,e.scheme,s),kr(i,e.slashscheme,l),kr(a,r,o),kr(a,e.domain,a);const c=un(a,dm);un(o,dm,c),un(s,dm,c),un(l,dm,c);const u=un(o,of);kr(u,r,o),kr(u,e.domain,o);const d=Hc();kr(c,e.domain,d),kr(d,e.domain,d);const f=un(d,of);kr(f,e.domain,d);const p=Hc(Ipe);kr(f,e.tld,p),kr(f,e.utld,p),un(c,bT,p);const m=un(d,Vc);un(m,Vc,m),kr(m,e.domain,d),kr(p,e.domain,d),un(p,of,f),un(p,Vc,m);const g=un(p,bm);kr(g,e.numeric,Ipe);const v=un(a,Vc),y=un(a,of);un(v,Vc,v),kr(v,e.domain,a),kr(y,r,o),kr(y,e.domain,a);const b=Hc(_A);kr(y,e.tld,b),kr(y,e.utld,b),kr(b,e.domain,a),kr(b,r,o),un(b,of,y),un(b,Vc,v),un(b,dm,c);const _=un(b,bm),S=Hc(_A);kr(_,e.numeric,S);const x=Hc(_A),E=Hc();kr(x,t,x),kr(x,n,E),kr(E,t,x),kr(E,n,E),un(b,af,x),un(S,af,x);const C=un(s,bm),w=un(l,bm),O=un(w,af),T=un(O,af);kr(s,e.domain,a),un(s,of,y),un(s,Vc,v),kr(l,e.domain,a),un(l,of,y),un(l,Vc,v),kr(C,e.domain,x),un(C,af,x),un(C,Dx,x),kr(T,e.domain,x),kr(T,t,x),un(T,af,x);const A=[[Mx,kx],[tk,nk],[rk,ik],[ok,ak],[sk,lk],[ck,uk],[dk,fk],[pk,hk]];for(let I=0;I<A.length;I++){const[N,D]=A[I],M=un(x,N);un(E,N,M),un(M,D,x);const k=Hc(_A);kr(M,t,k);const P=Hc();kr(M,n),kr(k,t,k),kr(k,n,P),kr(P,t,k),kr(P,n,P),un(k,D,x),un(P,D,x)}return un(i,bT,b),un(i,rZ,Bdn),{start:i,tokens:$Pe}}function jdn(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(S7(Npe,t,a)),a=[]),i-=f,u-=f;const p=d.t,m=n.slice(i-u,i);o.push(S7(p,t,m))}}return a.length>0&&o.push(S7(Npe,t,a)),o}function S7(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 Udn=typeof console<"u"&&console&&console.warn||(()=>{}),zdn="until manual call of linkify.init(). Register all schemes and plugins before invoking linkify the first time.",co={scanner:null,parser:null,tokenQueue:[],pluginQueue:[],customSchemes:[],initialized:!1};function Vdn(){return Tl.groups={},co.scanner=null,co.parser=null,co.tokenQueue=[],co.pluginQueue=[],co.customSchemes=[],co.initialized=!1,co}function Mpe(e,t=!1){if(co.initialized&&Udn(`linkifyjs: already initialized - will not register custom scheme "${e}" ${zdn}`),!/^[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`);co.customSchemes.push([e,t])}function Gdn(){co.scanner=$dn(co.customSchemes);for(let e=0;e<co.tokenQueue.length;e++)co.tokenQueue[e][1]({scanner:co.scanner});co.parser=Hdn(co.scanner.tokens);for(let e=0;e<co.pluginQueue.length;e++)co.pluginQueue[e][1]({scanner:co.scanner,parser:co.parser});return co.initialized=!0,co}function uZ(e){return co.initialized||Gdn(),jdn(co.parser.start,e,FPe(co.scanner.start,e))}uZ.scan=FPe;function HPe(e,t=null,n=null){if(t&&typeof t=="object"){if(n)throw Error(`linkifyjs: Invalid link type ${t}; must be a string`);n=t,t=null}const r=new cZ(n),i=uZ(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 Wdn(e){return e.length===1?e[0].isLink:e.length===3&&e[1].isLink?["()","[]"].includes(e[0].value+e[2].value):!1}function qdn(e){return new Ei({key:new Bi("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=jin(n.doc,[...t]);if(Yin(s).forEach(({newRange:l})=>{const c=zin(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 p=f[f.length-1],m=u.pos+d.lastIndexOf(p);if(!p)return!1;const g=uZ(p).map(v=>v.toObject(e.defaultProtocol));if(!Wdn(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=>{jX(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 Ydn(e){return new Ei({key:new Bi("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=P5e(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 Kdn(e){return new Ei({key:new Bi("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=HPe(s,{defaultProtocol:e.defaultProtocol}).find(c=>c.isLink&&c.value===s);return!s||!l?!1:e.editor.commands.setMark(e.type,{href:l.href})}}})}const Qdn=/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g;function s0(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(Qdn,"").match(new RegExp(`^(?:(?:${n.join("|")}):|[^a-z]|[a-z0-9+.-]+(?:[^a-z+.-:]|$))`,"i"))}const Xdn=jl.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"){Mpe(e);return}Mpe(e.scheme,e.optionalSlashes)})},onDestroy(){Vdn()},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)=>!!s0(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=>!!s0(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=>!!s0(t,this.options.protocols),protocols:this.options.protocols,defaultProtocol:this.options.defaultProtocol})?["a",Gr(this.options.HTMLAttributes,e),0]:["a",Gr(this.options.HTMLAttributes,{...e,href:""}),0]},addCommands(){return{setLink:e=>({chain:t})=>{const{href:n}=e;return this.options.isAllowedUri(n,{defaultValidate:r=>!!s0(r,this.options.protocols),protocols:this.options.protocols,defaultProtocol:this.options.defaultProtocol})?t().setMark(this.name,e).setMeta("preventAutolink",!0).run():!1},toggleLink:e=>({chain:t})=>{const{href:n}=e;return this.options.isAllowedUri(n,{defaultValidate:r=>!!s0(r,this.options.protocols),protocols:this.options.protocols,defaultProtocol:this.options.defaultProtocol})?t().toggleMark(this.name,e,{extendEmptyMarkRange:!0}).setMeta("preventAutolink",!0).run():!1},unsetLink:()=>({chain:e})=>e().unsetMark(this.name,{extendEmptyMarkRange:!0}).setMeta("preventAutolink",!0).run()}},addPasteRules(){return[Sg({find:e=>{const t=[];if(e){const{protocols:n,defaultProtocol:r}=this.options,i=HPe(e).filter(o=>o.isLink&&this.options.isAllowedUri(o.value,{defaultValidate:a=>!!s0(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(qdn({type:this.type,defaultProtocol:this.options.defaultProtocol,validate:r=>this.options.isAllowedUri(r,{defaultValidate:i=>!!s0(i,t),protocols:t,defaultProtocol:n}),shouldAutoLink:this.options.shouldAutoLink})),this.options.openOnClick===!0&&e.push(Ydn({type:this.type})),this.options.linkOnPaste&&e.push(Kdn({editor:this.editor,defaultProtocol:this.options.defaultProtocol,type:this.type})),e}}),Zdn=jl.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",Gr(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()}}}),Jdn=jl.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",Gr(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()}}}),efn=To.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",Gr(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()}}}),tfn=/^\s*(\[([( |x])?\])\s$/,nfn=To.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",Gr(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 p=d.doc.nodeAt(f);return d.setNodeMarkup(f,void 0,{...p==null?void 0:p.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,s.checked=e.attrs.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,s.checked=c.attrs.checked,!0)}}},addInputRules(){return[rv({find:tfn,type:this.type,getAttributes:e=>({checked:e[e.length-1]==="x"})})]}});function rfn(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function jPe(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)&&jPe(n)}),e}let kpe=class{constructor(e){e.data===void 0&&(e.data={}),this.data=e.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}};function UPe(e){return e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;")}function jm(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 ifn="</span>",Ppe=e=>!!e.scope,ofn=(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 afn=class{constructor(e,t){this.buffer="",this.classPrefix=t.classPrefix,e.walk(this)}addText(e){this.buffer+=UPe(e)}openNode(e){if(!Ppe(e))return;const t=ofn(e.scope,{prefix:this.classPrefix});this.span(t)}closeNode(e){Ppe(e)&&(this.buffer+=ifn)}value(){return this.buffer}span(e){this.buffer+=`<span class="${e}">`}};const Dpe=(e={})=>{const t={children:[]};return Object.assign(t,e),t};let sfn=class zPe{constructor(){this.rootNode=Dpe(),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=Dpe({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=>{zPe._collapse(n)}))}},lfn=class extends sfn{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 afn(this,this.options).value()}finalize(){return this.closeAllNodes(),!0}};function _T(e){return e?typeof e=="string"?e:e.source:null}function VPe(e){return Hv("(?=",e,")")}function cfn(e){return Hv("(?:",e,")*")}function ufn(e){return Hv("(?:",e,")?")}function Hv(...e){return e.map(t=>_T(t)).join("")}function dfn(e){const t=e[e.length-1];return typeof t=="object"&&t.constructor===Object?(e.splice(e.length-1,1),t):{}}function dZ(...e){return"("+(dfn(e).capture?"":"?:")+e.map(t=>_T(t)).join("|")+")"}function GPe(e){return new RegExp(e.toString()+"|").exec("").length-1}function ffn(e,t){const n=e&&e.exec(t);return n&&n.index===0}const pfn=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function fZ(e,{joinWith:t}){let n=0;return e.map(r=>{n+=1;const i=n;let o=_T(r),a="";for(;o.length>0;){const s=pfn.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 hfn=/\b\B/,WPe="[a-zA-Z]\\w*",pZ="[a-zA-Z_]\\w*",qPe="\\b\\d+(\\.\\d+)?",YPe="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",KPe="\\b(0b[01]+)",mfn="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",gfn=(e={})=>{const t=/^#![ ]*\//;return e.binary&&(e.begin=Hv(t,/.*\b/,e.binary,/\b.*/)),jm({scope:"meta",begin:t,end:/$/,relevance:0,"on:begin":(n,r)=>{n.index!==0&&r.ignoreMatch()}},e)},ST={begin:"\\\\[\\s\\S]",relevance:0},vfn={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[ST]},bfn={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[ST]},yfn={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/},y8=function(e,t,n={}){const r=jm({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=dZ("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:Hv(/[ ]+/,"(",i,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),r},_fn=y8("//","$"),Sfn=y8("/\\*","\\*/"),Efn=y8("#","$"),Cfn={scope:"number",begin:qPe,relevance:0},xfn={scope:"number",begin:YPe,relevance:0},wfn={scope:"number",begin:KPe,relevance:0},Tfn={scope:"regexp",begin:/\/(?=[^/\n]*\/)/,end:/\/[gimuy]*/,contains:[ST,{begin:/\[/,end:/\]/,relevance:0,contains:[ST]}]},Ofn={scope:"title",begin:WPe,relevance:0},Rfn={scope:"title",begin:pZ,relevance:0},Afn={begin:"\\.\\s*"+pZ,relevance:0},Ifn=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 SA=Object.freeze({__proto__:null,APOS_STRING_MODE:vfn,BACKSLASH_ESCAPE:ST,BINARY_NUMBER_MODE:wfn,BINARY_NUMBER_RE:KPe,COMMENT:y8,C_BLOCK_COMMENT_MODE:Sfn,C_LINE_COMMENT_MODE:_fn,C_NUMBER_MODE:xfn,C_NUMBER_RE:YPe,END_SAME_AS_BEGIN:Ifn,HASH_COMMENT_MODE:Efn,IDENT_RE:WPe,MATCH_NOTHING_RE:hfn,METHOD_GUARD:Afn,NUMBER_MODE:Cfn,NUMBER_RE:qPe,PHRASAL_WORDS_MODE:yfn,QUOTE_STRING_MODE:bfn,REGEXP_MODE:Tfn,RE_STARTERS_RE:mfn,SHEBANG:gfn,TITLE_MODE:Ofn,UNDERSCORE_IDENT_RE:pZ,UNDERSCORE_TITLE_MODE:Rfn});function Nfn(e,t){e.input[e.index-1]==="."&&t.ignoreMatch()}function Mfn(e,t){e.className!==void 0&&(e.scope=e.className,delete e.className)}function kfn(e,t){t&&e.beginKeywords&&(e.begin="\\b("+e.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",e.__beforeBegin=Nfn,e.keywords=e.keywords||e.beginKeywords,delete e.beginKeywords,e.relevance===void 0&&(e.relevance=0))}function Pfn(e,t){Array.isArray(e.illegal)&&(e.illegal=dZ(...e.illegal))}function Dfn(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 Lfn(e,t){e.relevance===void 0&&(e.relevance=1)}const $fn=(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=Hv(n.beforeMatch,VPe(n.begin)),e.starts={relevance:0,contains:[Object.assign(n,{endsParent:!0})]},e.relevance=0,delete n.beforeMatch},Ffn=["of","and","for","in","not","or","if","then","parent","list","value"],Bfn="keyword";function QPe(e,t,n=Bfn){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,QPe(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,Hfn(l[0],l[1])]})}}function Hfn(e,t){return t?Number(t):jfn(e)?0:1}function jfn(e){return Ffn.includes(e.toLowerCase())}const Lpe={},w1=e=>{console.error(e)},$pe=(e,...t)=>{console.log(`WARN: ${e}`,...t)},_b=(e,t)=>{Lpe[`${e}/${t}`]||(console.log(`Deprecated as of ${e}. ${t}`),Lpe[`${e}/${t}`]=!0)},Ok=new Error;function XPe(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+=GPe(t[s-1]);e[n]=a,e[n]._emit=o,e[n]._multi=!0}function Ufn(e){if(Array.isArray(e.begin)){if(e.skip||e.excludeBegin||e.returnBegin)throw w1("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),Ok;if(typeof e.beginScope!="object"||e.beginScope===null)throw w1("beginScope must be object"),Ok;XPe(e,e.begin,{key:"beginScope"}),e.begin=fZ(e.begin,{joinWith:""})}}function zfn(e){if(Array.isArray(e.end)){if(e.skip||e.excludeEnd||e.returnEnd)throw w1("skip, excludeEnd, returnEnd not compatible with endScope: {}"),Ok;if(typeof e.endScope!="object"||e.endScope===null)throw w1("endScope must be object"),Ok;XPe(e,e.end,{key:"endScope"}),e.end=fZ(e.end,{joinWith:""})}}function Vfn(e){e.scope&&typeof e.scope=="object"&&e.scope!==null&&(e.beginScope=e.scope,delete e.scope)}function Gfn(e){Vfn(e),typeof e.beginScope=="string"&&(e.beginScope={_wrap:e.beginScope}),typeof e.endScope=="string"&&(e.endScope={_wrap:e.endScope}),Ufn(e),zfn(e)}function Wfn(e){function t(a,s){return new RegExp(_T(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+=GPe(s)+1}compile(){this.regexes.length===0&&(this.exec=()=>null);const s=this.regexes.map(l=>l[1]);this.matcherRe=t(fZ(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;[Mfn,Dfn,Gfn,$fn].forEach(u=>u(a,s)),e.compilerExtensions.forEach(u=>u(a,s)),a.__beforeBegin=null,[kfn,Pfn,Lfn].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=QPe(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=_T(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 qfn(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=jm(e.classNameAliases||{}),o(e)}function ZPe(e){return e?e.endsWithParent||ZPe(e.starts):!1}function qfn(e){return e.variants&&!e.cachedVariants&&(e.cachedVariants=e.variants.map(function(t){return jm(e,{variants:null},t)})),e.cachedVariants?e.cachedVariants:ZPe(e)?jm(e,{starts:e.starts?jm(e.starts):null}):Object.isFrozen(e)?jm(e):e}var Yfn="11.10.0";let Kfn=class extends Error{constructor(e,t){super(e),this.name="HTMLInjectionError",this.html=t}};const E7=UPe,Fpe=jm,Bpe=Symbol("nomatch"),Qfn=7,JPe=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:lfn};function l(P){return s.noHighlightRe.test(P)}function c(P){let B=P.className+" ";B+=P.parentNode?P.parentNode.className:"";const G=s.languageDetectRe.exec(B);if(G){const L=O(G[1]);return L||($pe(o.replace("{}",G[1])),$pe("Falling back to no-highlight mode for this block.",P)),L?G[1]:"no-highlight"}return B.split(/\s+/).find(L=>l(L)||O(L))}function u(P,B,G){let L="",W="";typeof B=="object"?(L=P,G=B.ignoreIllegals,W=B.language):(_b("10.7.0","highlight(lang, code, ...args) has been deprecated."),_b("10.7.0",`Please use highlight(code, options) instead.
https://github.com/highlightjs/highlight.js/issues/2277`),W=P,L=B),G===void 0&&(G=!0);const j={code:L,language:W};M("before:highlight",j);const H=j.result?j.result:d(j.language,j.code,G);return H.code=j.code,M("after:highlight",H),H}function d(P,B,G,L){const W=Object.create(null);function j(U,Y){return U.keywords[Y]}function H(){if(!xe.keywords){de.addText(Ee);return}let U=0;xe.keywordPatternRe.lastIndex=0;let Y=xe.keywordPatternRe.exec(Ee),ae="";for(;Y;){ae+=Ee.substring(U,Y.index);const ye=re.case_insensitive?Y[0].toLowerCase():Y[0],fe=j(xe,ye);if(fe){const[Ae,We]=fe;if(de.addText(ae),ae="",W[ye]=(W[ye]||0)+1,W[ye]<=Qfn&&(Ne+=We),Ae.startsWith("_"))ae+=Y[0];else{const ie=re.classNameAliases[Ae]||Ae;ue(Y[0],ie)}}else ae+=Y[0];U=xe.keywordPatternRe.lastIndex,Y=xe.keywordPatternRe.exec(Ee)}ae+=Ee.substring(U),de.addText(ae)}function X(){if(Ee==="")return;let U=null;if(typeof xe.subLanguage=="string"){if(!t[xe.subLanguage]){de.addText(Ee);return}U=d(xe.subLanguage,Ee,!0,we[xe.subLanguage]),we[xe.subLanguage]=U._top}else U=p(Ee,xe.subLanguage.length?xe.subLanguage:null);xe.relevance>0&&(Ne+=U.relevance),de.__addSublanguage(U._emitter,U.language)}function Q(){xe.subLanguage!=null?X():H(),Ee=""}function ue(U,Y){U!==""&&(de.startScope(Y),de.addText(U),de.endScope())}function ee(U,Y){let ae=1;const ye=Y.length-1;for(;ae<=ye;){if(!U._emit[ae]){ae++;continue}const fe=re.classNameAliases[U[ae]]||U[ae],Ae=Y[ae];fe?ue(Ae,fe):(Ee=Ae,H(),Ee=""),ae++}}function K(U,Y){return U.scope&&typeof U.scope=="string"&&de.openNode(re.classNameAliases[U.scope]||U.scope),U.beginScope&&(U.beginScope._wrap?(ue(Ee,re.classNameAliases[U.beginScope._wrap]||U.beginScope._wrap),Ee=""):U.beginScope._multi&&(ee(U.beginScope,Y),Ee="")),xe=Object.create(U,{parent:{value:xe}}),xe}function se(U,Y,ae){let ye=ffn(U.endRe,ae);if(ye){if(U["on:end"]){const fe=new kpe(U);U["on:end"](Y,fe),fe.isMatchIgnored&&(ye=!1)}if(ye){for(;U.endsParent&&U.parent;)U=U.parent;return U}}if(U.endsWithParent)return se(U.parent,Y,ae)}function le(U){return xe.matcher.regexIndex===0?(Ee+=U[0],1):(q=!0,0)}function oe(U){const Y=U[0],ae=U.rule,ye=new kpe(ae),fe=[ae.__beforeBegin,ae["on:begin"]];for(const Ae of fe)if(Ae&&(Ae(U,ye),ye.isMatchIgnored))return le(Y);return ae.skip?Ee+=Y:(ae.excludeBegin&&(Ee+=Y),Q(),!ae.returnBegin&&!ae.excludeBegin&&(Ee=Y)),K(ae,U),ae.returnBegin?0:Y.length}function ne(U){const Y=U[0],ae=B.substring(U.index),ye=se(xe,U,ae);if(!ye)return Bpe;const fe=xe;xe.endScope&&xe.endScope._wrap?(Q(),ue(Y,xe.endScope._wrap)):xe.endScope&&xe.endScope._multi?(Q(),ee(xe.endScope,U)):fe.skip?Ee+=Y:(fe.returnEnd||fe.excludeEnd||(Ee+=Y),Q(),fe.excludeEnd&&(Ee=Y));do xe.scope&&de.closeNode(),!xe.skip&&!xe.subLanguage&&(Ne+=xe.relevance),xe=xe.parent;while(xe!==ye.parent);return ye.starts&&K(ye.starts,U),fe.returnEnd?0:Y.length}function he(){const U=[];for(let Y=xe;Y!==re;Y=Y.parent)Y.scope&&U.unshift(Y.scope);U.forEach(Y=>de.openNode(Y))}let me={};function ce(U,Y){const ae=Y&&Y[0];if(Ee+=U,ae==null)return Q(),0;if(me.type==="begin"&&Y.type==="end"&&me.index===Y.index&&ae===""){if(Ee+=B.slice(Y.index,Y.index+1),!i){const ye=new Error(`0 width match regex (${P})`);throw ye.languageName=P,ye.badRule=me.rule,ye}return 1}if(me=Y,Y.type==="begin")return oe(Y);if(Y.type==="illegal"&&!G){const ye=new Error('Illegal lexeme "'+ae+'" for mode "'+(xe.scope||"<unnamed>")+'"');throw ye.mode=xe,ye}else if(Y.type==="end"){const ye=ne(Y);if(ye!==Bpe)return ye}if(Y.type==="illegal"&&ae==="")return 1;if(Ve>1e5&&Ve>Y.index*3)throw new Error("potential infinite loop, way more iterations than matches");return Ee+=ae,ae.length}const re=O(P);if(!re)throw w1(o.replace("{}",P)),new Error('Unknown language: "'+P+'"');const ve=Wfn(re);let be="",xe=L||ve;const we={},de=new s.__emitter(s);he();let Ee="",Ne=0,Te=0,Ve=0,q=!1;try{if(re.__emitTokens)re.__emitTokens(B,de);else{for(xe.matcher.considerAll();;){Ve++,q?q=!1:xe.matcher.considerAll(),xe.matcher.lastIndex=Te;const U=xe.matcher.exec(B);if(!U)break;const Y=B.substring(Te,U.index),ae=ce(Y,U);Te=U.index+ae}ce(B.substring(Te))}return de.finalize(),be=de.toHTML(),{language:P,value:be,relevance:Ne,illegal:!1,_emitter:de,_top:xe}}catch(U){if(U.message&&U.message.includes("Illegal"))return{language:P,value:E7(B),illegal:!0,relevance:0,_illegalBy:{message:U.message,index:Te,context:B.slice(Te-100,Te+100),mode:U.mode,resultSoFar:be},_emitter:de};if(i)return{language:P,value:E7(B),illegal:!1,relevance:0,errorRaised:U,_emitter:de,_top:xe};throw U}}function f(P){const B={value:E7(P),illegal:!1,relevance:0,_top:a,_emitter:new s.__emitter(s)};return B._emitter.addText(P),B}function p(P,B){B=B||s.languages||Object.keys(t);const G=f(P),L=B.filter(O).filter(A).map(Q=>d(Q,P,!1));L.unshift(G);const W=L.sort((Q,ue)=>{if(Q.relevance!==ue.relevance)return ue.relevance-Q.relevance;if(Q.language&&ue.language){if(O(Q.language).supersetOf===ue.language)return 1;if(O(ue.language).supersetOf===Q.language)return-1}return 0}),[j,H]=W,X=j;return X.secondBest=H,X}function m(P,B,G){const L=B&&n[B]||G;P.classList.add("hljs"),P.classList.add(`language-${L}`)}function g(P){let B=null;const G=c(P);if(l(G))return;if(M("before:highlightElement",{el:P,language:G}),P.dataset.highlighted){console.log("Element previously highlighted. To highlight again, first unset `dataset.highlighted`.",P);return}if(P.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(P)),s.throwUnescapedHTML))throw new Kfn("One of your code blocks includes unescaped HTML.",P.innerHTML);B=P;const L=B.textContent,W=G?u(L,{language:G,ignoreIllegals:!0}):p(L);P.innerHTML=W.value,P.dataset.highlighted="yes",m(P,G,W.language),P.result={language:W.language,re:W.relevance,relevance:W.relevance},W.secondBest&&(P.secondBest={language:W.secondBest.language,relevance:W.secondBest.relevance}),M("after:highlightElement",{el:P,result:W,text:L})}function v(P){s=Fpe(s,P)}const y=()=>{S(),_b("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")};function b(){S(),_b("10.6.0","initHighlightingOnLoad() deprecated. Use highlightAll() now.")}let _=!1;function S(){if(document.readyState==="loading"){_=!0;return}document.querySelectorAll(s.cssSelector).forEach(g)}function x(){_&&S()}typeof window<"u"&&window.addEventListener&&window.addEventListener("DOMContentLoaded",x,!1);function E(P,B){let G=null;try{G=B(e)}catch(L){if(w1("Language definition for '{}' could not be registered.".replace("{}",P)),i)w1(L);else throw L;G=a}G.name||(G.name=P),t[P]=G,G.rawDefinition=B.bind(null,e),G.aliases&&T(G.aliases,{languageName:P})}function C(P){delete t[P];for(const B of Object.keys(n))n[B]===P&&delete n[B]}function w(){return Object.keys(t)}function O(P){return P=(P||"").toLowerCase(),t[P]||t[n[P]]}function T(P,{languageName:B}){typeof P=="string"&&(P=[P]),P.forEach(G=>{n[G.toLowerCase()]=B})}function A(P){const B=O(P);return B&&!B.disableAutodetect}function I(P){P["before:highlightBlock"]&&!P["before:highlightElement"]&&(P["before:highlightElement"]=B=>{P["before:highlightBlock"](Object.assign({block:B.el},B))}),P["after:highlightBlock"]&&!P["after:highlightElement"]&&(P["after:highlightElement"]=B=>{P["after:highlightBlock"](Object.assign({block:B.el},B))})}function N(P){I(P),r.push(P)}function D(P){const B=r.indexOf(P);B!==-1&&r.splice(B,1)}function M(P,B){const G=P;r.forEach(function(L){L[G]&&L[G](B)})}function k(P){return _b("10.7.0","highlightBlock will be removed entirely in v12.0"),_b("10.7.0","Please use highlightElement now."),g(P)}Object.assign(e,{highlight:u,highlightAuto:p,highlightAll:S,highlightElement:g,highlightBlock:k,configure:v,initHighlighting:y,initHighlightingOnLoad:b,registerLanguage:E,unregisterLanguage:C,listLanguages:w,getLanguage:O,registerAliases:T,autoDetection:A,inherit:Fpe,addPlugin:N,removePlugin:D}),e.debugMode=function(){i=!1},e.safeMode=function(){i=!0},e.versionString=Yfn,e.regex={concat:Hv,lookahead:VPe,either:dZ,optional:ufn,anyNumberOfTimes:cfn};for(const P in SA)typeof SA[P]=="object"&&jPe(SA[P]);return Object.assign(e,SA),e},Y_=JPe({});Y_.newInstance=()=>JPe({});var Xfn=Y_;Y_.HighlightJS=Y_;Y_.default=Y_;var Zfn=rfn(Xfn);function eDe(e,t=[]){return e.map(n=>{const r=[...t,...n.properties?n.properties.className:[]];return n.children?eDe(n.children,r):{text:n.value,classes:r}}).flat()}function Hpe(e){return e.value||e.children||[]}function Jfn(e){return!!Zfn.getLanguage(e)}function jpe({doc:e,name:t,lowlight:n,defaultLanguage:r}){const i=[];return HV(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)||Jfn(l)||!((a=n.registered)===null||a===void 0)&&a.call(n,l))?Hpe(n.highlight(l,o.node.textContent)):Hpe(n.highlightAuto(o.node.textContent));eDe(u).forEach(d=>{const f=s+d.text.length;if(d.classes.length){const p=ra.inline(s,f,{class:d.classes.join(" ")});i.push(p)}s=f})}),xi.create(e,i)}function epn(e){return typeof e=="function"}function tpn({name:e,lowlight:t,defaultLanguage:n}){if(!["highlight","highlightAuto","listLanguages"].every(i=>epn(t[i])))throw Error("You should provide an instance of lowlight to use the code-block-lowlight extension");const r=new Ei({key:new Bi("lowlight"),state:{init:(i,{doc:o})=>jpe({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=HV(a.doc,f=>f.type.name===e),d=HV(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(p=>p.pos>=f.from&&p.pos+p.node.nodeSize<=f.to)))?jpe({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 npn=mPe.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))||[],tpn({name:this.name,lowlight:this.options.lowlight,defaultLanguage:this.options.defaultLanguage})]}});function Upe(e,t,n={}){const{empty:r,ranges:i,from:o,to:a}=e.selection,s=t?Ah(t,e.schema):null;if(r)return!!(e.storedMarks||e.selection.$from.marks()).filter(m=>s?s.name===m.type.name:!0).find(m=>U_(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 S=Math.max(v,_),x=Math.min(y,_+b.nodeSize);u.push(...b.marks.map(E=>({mark:E,from:S,to:x})))})});const d=c-l;if(d===0)return!1;const f=u.filter(m=>s?s.name===m.mark.type.name:!0).filter(m=>U_(m.mark.attrs,n,{strict:!1})).reduce((m,g)=>m+g.to-g.from,0),p=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+p:f)>=d}function zpe(e){var t;return!!((t=e.spec.group)!=null&&t.split(" ").includes("list"))}function C7(e,t,n={}){if(!t)return tv(e,null,n)||Upe(e,null,n);const r=e.schema.nodes[t];if(r){if(zpe(r)){const i=u8(o=>zpe(o.type))(e.selection);return!!(i&&i.node.type.name===t)}return tv(e,t,n)}return e.schema.marks[t]?Upe(e,t,n):!1}function Vpe(e){return new pO({find:e.find,handler:({state:t,range:n,match:r,commands:i})=>{const o=t.doc.resolve(n.from),a=Nr(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 tDe=[{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"]}],Gpe=e=>{if(!e)return null;const t=e.toLocaleLowerCase();return tDe.find(n=>n.value===t||n.alias&&n.alias.includes(t))};function Wpe(e,t){const{$from:n,from:r,to:i}=e,o=(t.textContent||"").split(`
`).reduce((d,f,p)=>(d[p]=(d[p-1]||0)+f.length+(p===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 rpn=/^[`·]{3}([a-z]+)?[\s\n]$/,ipn=/^[~]{3}([a-z]+)?[\s\n]$/,opn=npn.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(ar.create(r.state.doc,n)).deleteSelection()),Eg.get(this.options.codeCommentsAi.model).chat(t.textContent,this.options.codeCommentsAi.prompt,new JM(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(Xn.create(r.state.doc,a-2)))):i(o.setSelection(Xn.create(r.state.doc,n+t.nodeSize+1)));const s=Eg.get(this.options.codeExplainAi.model);return s==null||s.chat(t.textContent,this.options.codeExplainAi.prompt,new JM(r)),!0},toggleCodeBlock:t=>({commands:n,editor:r,chain:i})=>{const{state:o}=r,{from:a,to:s}=o.selection;if(!C7(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(!C7(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}=Wpe(i,u);if(d===void 0||f===void 0)return r.dispatch(o.replaceSelectionWith(n.schema.text(a))),!0;const p=(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(p.join(`
`))),o.setSelection(Xn.between(o.doc.resolve(l+a.length),o.doc.resolve(c+(f-d+1)*a.length))),r.dispatch(o)}return!0},"Shift-Tab":({editor:t})=>{const{state:n,view:r}=t;if(!C7(n,this.name))return!1;const{selection:i,tr:o}=n,{$from:a,from:s,to:l}=i,c=a.node();if(c.type!==this.type)return!1;const{start:u,end:d}=Wpe(i,c);if(u===void 0||d===void 0)return!1;const f=(c.textContent||"").split(`
`);let p=s,m=l;const g=f.map((b,_)=>{if(_>=u&&_<=d&&b)for(let S=0;S<2;S++)b.startsWith(" ")&&(b=b.slice(1),_==u&&p--,m--);return b}),v=a.node(1),y=a.start(1);return o.replaceWith(y,y+v.nodeSize-2,n.schema.text(g.join(`
`))),o.setSelection(Xn.between(o.doc.resolve(p),o.doc.resolve(m))),r.dispatch(o),!0}}},addInputRules(){return[Vpe({find:rpn,type:this.type,getAttributes:e=>{var t;return{language:((t=Gpe(e[1]))==null?void 0:t.value)||this.options.defaultLanguage}}}),Vpe({find:ipn,type:this.type,getAttributes:e=>{var t;return{language:((t=Gpe(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">'+cr("codeblock-ai-auto-comment")+"</div>":""}
${this.options.codeExplainAi?'<div class="aie-codeblock-tools-explain">'+cr("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=()=>{var s;const l=document.createElement("div");return l.classList.add("aie-codeblock-langs"),l.innerHTML=`
${(s=this.options.languages)==null?void 0:s.map(c=>`<div class="aie-codeblock-langs-item" data-item="${c.value}">${c.name}</div>`).join("")}`,l.addEventListener("click",c=>{const u=c.target.closest(".aie-codeblock-langs-item");if(u){const d=u.getAttribute("data-item");e.editor.chain().setCodeBlock({language:d}).run()}}),l},a=xo(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 apn(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={match:/[;()+\-:=,]/,className:"punctuation",relevance:0},f=e.inherit(e.C_LINE_COMMENT_MODE),p={className:"meta",begin:"#|&",end:"$",keywords:{$pattern:t,keyword:n+r},contains:[f]},m={className:"symbol",begin:"~",end:";|:",excludeEnd:!0},g={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]},f]},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:[p,g,f,m,l,c,u,d]}}function spn(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 lpn(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 cpn(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 upn(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 dpn(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 fpn(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:[{scope:"punctuation",match:/\\\n/},{className:"meta",begin:/\s\[/,end:/\]$/},{className:"variable",begin:/[\$%]\{/,end:/\}/,contains:["self",t]},r,n,e.QUOTE_STRING_MODE]}}],illegal:/\S/}}function ppn(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 hpn(e){const t=e.regex,n="[A-Za-z_][0-9A-Za-z_]*",r={keyword:["break","case","catch","continue","debugger","do","else","export","for","function","if","import","in","new","of","return","switch","try","var","void","while"],literal:["BackSlash","DoubleQuote","ForwardSlash","Infinity","NaN","NewLine","PI","SingleQuote","Tab","TextFormatting","false","null","true","undefined"],built_in:["Abs","Acos","All","Angle","Any","Area","AreaGeodetic","Array","Asin","Atan","Atan2","Attachments","Average","Back","Bearing","Boolean","Buffer","BufferGeodetic","Ceil","Centroid","ChangeTimeZone","Clip","Concatenate","Console","Constrain","Contains","ConvertDirection","ConvexHull","Cos","Count","Crosses","Cut","Date|0","DateAdd","DateDiff","DateOnly","Day","Decode","DefaultValue","Densify","DensifyGeodetic","Dictionary","Difference","Disjoint","Distance","DistanceGeodetic","DistanceToCoordinate","Distinct","Domain","DomainCode","DomainName","EnvelopeIntersects","Equals","Erase","Exp","Expects","Extent","Feature","FeatureInFilter","FeatureSet","FeatureSetByAssociation","FeatureSetById","FeatureSetByName","FeatureSetByPortalItem","FeatureSetByRelationshipClass","FeatureSetByRelationshipName","Filter","FilterBySubtypeCode","Find","First|0","Floor","FromCharCode","FromCodePoint","FromJSON","Front","GdbVersion","Generalize","Geometry","GetEnvironment","GetFeatureSet","GetFeatureSetInfo","GetUser","GroupBy","Guid","HasKey","HasValue","Hash","Hour","IIf","ISOMonth","ISOWeek","ISOWeekday","ISOYear","Includes","IndexOf","Insert","Intersection","Intersects","IsEmpty","IsNan","IsSelfIntersecting","IsSimple","KnowledgeGraphByPortalItem","Left|0","Length","Length3D","LengthGeodetic","Log","Lower","Map","Max","Mean","MeasureToCoordinate","Mid","Millisecond","Min","Minute","Month","MultiPartToSinglePart","Multipoint","NearestCoordinate","NearestVertex","NextSequenceValue","None","Now","Number","Offset","OrderBy","Overlaps","Point","PointToCoordinate","Polygon","Polyline","Pop","Portal","Pow","Proper","Push","QueryGraph","Random","Reduce","Relate","Replace","Resize","Reverse","Right|0","RingIsClockwise","Rotate","Round","Schema","Second","SetGeometry","Simplify","Sin","Slice","Sort","Splice","Split","Sqrt","StandardizeFilename","StandardizeGuid","Stdev","SubtypeCode","SubtypeName","Subtypes","Sum","SymmetricDifference","Tan","Text","Time","TimeZone","TimeZoneOffset","Timestamp","ToCharCode","ToCodePoint","ToHex","ToLocal","ToUTC","Today","Top|0","Touches","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|0","Within","Year|0"]},i=["aggregatedFeatures","analytic","config","datapoint","datastore","editcontext","feature","featureSet","feedfeature","fencefeature","fencenotificationtype","graph","join","layer","locationupdate","map","measure","measure","originalFeature","record","reference","rowindex","sourcedatastore","sourcefeature","sourcelayer","target","targetdatastore","targetfeature","targetlayer","userInput","value","variables","view"],o={className:"symbol",begin:"\\$"+t.either(...i)},a={className:"number",variants:[{begin:"\\b(0[bB][01]+)"},{begin:"\\b(0[oO][0-7]+)"},{begin:e.C_NUMBER_RE}],relevance:0},s={className:"subst",begin:"\\$\\{",end:"\\}",keywords:r,contains:[]},l={className:"string",begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE,s]};s.contains=[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,l,a,e.REGEXP_MODE];const c=s.contains.concat([e.C_BLOCK_COMMENT_MODE,e.C_LINE_COMMENT_MODE]);return{name:"ArcGIS Arcade",case_insensitive:!0,keywords:r,contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,l,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,o,a,{begin:/[{,]\s*/,relevance:0,contains:[{begin:n+"\\s*:",returnBegin:!0,relevance:0,contains:[{className:"attr",begin:n,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:"(\\(.*?\\)|"+n+")\\s*=>",returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:n},{begin:/\(\s*\)/},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:r,contains:c}]}]}],relevance:0},{beginKeywords:"function",end:/\{/,excludeEnd:!0,contains:[e.inherit(e.TITLE_MODE,{className:"title.function",begin:n}),{className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,contains:c}],illegal:/\[|%/},{begin:/\$[(.]/}],illegal:/#(?!!)/}}function mpn(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 gpn(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 vpn(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 bpn(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 ypn(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 _pn(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 Spn(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 Epn(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 Cpn(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:[{scope:"string",begin:/"/,end:/"|$/,contains:[e.BACKSLASH_ESCAPE]},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 xpn(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 wpn(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 Tpn(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 Opn(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 Rpn(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 Apn(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 Ipn(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/},p={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,p,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,p.contains=b,{name:"Clojure",aliases:["clj","edn"],illegal:/\S/,contains:[u,g,s,l,c,d,m,p,a,f]}}function Npn(e){return{name:"Clojure REPL",contains:[{className:"meta.prompt",begin:/^([\w.-]+|\s*#_)?=>/,starts:{end:/$/,subLanguage:"clojure"}}]}}function Mpn(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 kpn=["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","using"],Ppn=["true","false","null","undefined","NaN","Infinity"],Dpn=["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"],Lpn=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],$pn=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],Fpn=[].concat($pn,Dpn,Lpn);function Bpn(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:kpn.concat(r).filter(o(i)),literal:Ppn.concat(n),built_in:Fpn.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)}]},p={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]}]},p,{begin:s+":",end:":",returnBegin:!0,returnEnd:!0,relevance:0}]}}function Hpn(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 jpn(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 Upn(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 zpn(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},p={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,p,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 Vpn(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 Gpn(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,};`,p={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},S={className:"string",begin:'q"\\{',end:'\\}"'},x={className:"meta",begin:"^#!",end:"$",relevance:5},E={className:"meta",begin:"#(line)",end:"$",relevance:5},C={className:"keyword",begin:"@[a-zA-Z_][a-zA-Z_\\d]*"},w=e.COMMENT("\\/\\+","\\+\\/",{contains:["self"],relevance:10});return{name:"D",keywords:t,contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,w,_,v,y,b,S,m,p,g,x,E,C]}}function Wpn(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:"number",relevance:0,variants:[{match:/\b[0-9][0-9_]*(\.[0-9][0-9_]*)?([eE][+-]?[0-9][0-9_]*)?\b/},{match:/\b0[xX][0-9A-Fa-f][0-9A-Fa-f_]*\b/}]},i={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=[r,i];const o=["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"],a=o.map(s=>`${s}?`);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:o.concat(a).concat(["Never","Null","dynamic","print","document","querySelector","querySelectorAll","window"]),$pattern:/[A-Za-z][A-Za-z0-9_]*\??/},contains:[i,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]},r,{className:"meta",begin:"@[A-Za-z]+"},{begin:"=>"}]}}function qpn(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:[{match:/\b\d[\d_]*(\.\d[\d_]*)?/},{match:/\$[\dA-Fa-f_]+/},{match:/\$/,relevance:0},{match:/&[0-7][0-7_]*/},{match:/%[01_]+/},{match:/%/,relevance:0}]},a={className:"string",variants:[{match:/#\d[\d_]*/},{match:/#\$[\dA-Fa-f][\dA-Fa-f_]*/},{match:/#&[0-7][0-7_]*/},{match:/#%[01][01_]*/}]},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,o,s,l,r].concat(n)}}function Ypn(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 Kpn(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 Qpn(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 Xpn(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 Zpn(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 Jpn(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 ehn(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 thn(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 nhn(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)]}))},p={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,p,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 rhn(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 ihn(e){return{name:"ERB",subLanguage:"xml",contains:[e.COMMENT("<%#","%>"),{begin:"<%[%=-]?",end:"[%-]?%>",subLanguage:"ruby",excludeBegin:!0,excludeEnd:!0}]}}function ohn(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 maybe else",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={scope:"string",match:/\$(\\([^0-9]|[0-9]{1,3}|)|.)/},p={scope:"string",match:/"""("*)(?!")[\s\S]*?"""\1/},m={scope:"string",contains:[e.BACKSLASH_ESCAPE],variants:[{match:/~\w?"""("*)(?!")[\s\S]*?"""\1/},{begin:/~\w?\(/,end:/\)/},{begin:/~\w?\[/,end:/\]/},{begin:/~\w?{/,end:/}/},{begin:/~\w?</,end:/>/},{begin:/~\w?\//,end:/\//},{begin:/~\w?\|/,end:/\|/},{begin:/~\w?'/,end:/'/},{begin:/~\w?"/,end:/"/},{begin:/~\w?`/,end:/`/},{begin:/~\w?#/,end:/#/}]},g={beginKeywords:"fun receive if try case maybe",end:"end",keywords:r};g.contains=[i,a,e.inherit(e.APOS_STRING_MODE,{className:""}),g,s,m,p,e.QUOTE_STRING_MODE,o,l,c,u,d,f];const v=[i,a,g,s,m,p,e.QUOTE_STRING_MODE,o,l,c,u,d,f];s.contains[1].contains=v,l.contains=v,d.contains[1].contains=v;const y=["-module","-record","-undef","-export","-ifdef","-ifndef","-author","-copyright","-doc","-moduledoc","-vsn","-import","-include","-include_lib","-compile","-define","-else","-endif","-file","-behaviour","-behavior","-spec","-on_load","-nifs"],b={className:"params",begin:"\\(",end:"\\)",contains:v};return{name:"Erlang",aliases:["erl"],keywords:r,illegal:"(</|\\*=|\\+=|-=|/\\*|\\*/|\\(\\*|\\*\\))",contains:[{className:"function",begin:"^"+t+"\\s*\\(",end:"->",returnBegin:!0,illegal:"\\(|#|//|/\\*|\\\\|:|;",contains:[b,e.inherit(e.TITLE_MODE,{begin:t})],starts:{end:";|\\.",keywords:r,contains:v}},i,{begin:"^-",end:"\\.",relevance:0,excludeEnd:!0,returnBegin:!0,keywords:{$pattern:"-"+e.IDENT_RE,keyword:y.map(_=>`${_}|1.5`).join(" ")},contains:[b,m,p,e.QUOTE_STRING_MODE]},o,m,p,e.QUOTE_STRING_MODE,d,c,u,l,f,{begin:/\.$/}]}}function ahn(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 shn(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","ARRAYTOTEXT","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","BYCOL","BYROW","CALL","CEILING","CEILING.MATH","CEILING.PRECISE","CELL","CHAR","CHIDIST","CHIINV","CHITEST","CHISQ.DIST","CHISQ.DIST.RT","CHISQ.INV","CHISQ.INV.RT","CHISQ.TEST","CHOOSE","CHOOSECOLS","CHOOSEROWS","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","DROP","DSTDEV","DSTDEVP","DSUM","DURATION","DVAR","DVARP","EDATE","EFFECT","ENCODEURL","EOMONTH","ERF","ERF.PRECISE","ERFC","ERFC.PRECISE","ERROR.TYPE","EUROCONVERT","EVEN","EXACT","EXP","EXPAND","EXPON.DIST","EXPONDIST","FACT","FACTDOUBLE","FALSE","F.DIST","FDIST","F.DIST.RT","FILTER","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","HSTACK","HYPERLINK","HYPGEOM.DIST","HYPGEOMDIST","IF","IFERROR","IFNA","IFS","IMABS","IMAGE","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","ISOMITTED","ISREF","ISTEXT","ISO.CEILING","ISOWEEKNUM","ISPMT","JIS","KURT","LAMBDA","LARGE","LCM","LEFT","LEFTB","LEN","LENB","LET","LINEST","LN","LOG","LOG10","LOGEST","LOGINV","LOGNORM.DIST","LOGNORMDIST","LOGNORM.INV","LOOKUP","LOWER","MAKEARRAY","MAP","MATCH","MAX","MAXA","MAXIFS","MDETERM","MDURATION","MEDIAN","MID","MIDB","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","RANDARRAY","RANDBETWEEN","RANK.AVG","RANK.EQ","RANK","RATE","RECEIVED","REDUCE","REGISTER.ID","REPLACE","REPLACEB","REPT","RIGHT","RIGHTB","ROMAN","ROUND","ROUNDDOWN","ROUNDUP","ROW","ROWS","RRI","RSQ","RTD","SCAN","SEARCH","SEARCHB","SEC","SECH","SECOND","SEQUENCE","SERIESSUM","SHEET","SHEETS","SIGN","SIN","SINH","SKEW","SKEW.P","SLN","SLOPE","SMALL","SORT","SORTBY","SQRT","SQRTPI","SQL.REQUEST","STANDARDIZE","STOCKHISTORY","STDEV","STDEV.P","STDEV.S","STDEVA","STDEVP","STDEVPA","STEYX","SUBSTITUTE","SUBTOTAL","SUM","SUMIF","SUMIFS","SUMPRODUCT","SUMSQ","SUMX2MY2","SUMX2PY2","SUMXMY2","SWITCH","SYD","T","TAN","TANH","TAKE","TBILLEQ","TBILLPRICE","TBILLYIELD","T.DIST","T.DIST.2T","T.DIST.RT","TDIST","TEXT","TEXTAFTER","TEXTBEFORE","TEXTJOIN","TEXTSPLIT","TIME","TIMEVALUE","T.INV","T.INV.2T","TINV","TOCOL","TOROW","TODAY","TRANSPOSE","TREND","TRIM","TRIMMEAN","TRUE","TRUNC","T.TEST","TTEST","TYPE","UNICHAR","UNICODE","UNIQUE","UPPER","VALUE","VALUETOTEXT","VAR","VAR.P","VAR.S","VARA","VARP","VARPA","VDB","VLOOKUP","VSTACK","WEBSERVICE","WEEKDAY","WEEKNUM","WEIBULL","WEIBULL.DIST","WORKDAY","WORKDAY.INTL","WRAPCOLS","WRAPROWS","XIRR","XLOOKUP","XMATCH","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 lhn(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 chn(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 uhn(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:{$pattern:/\b[a-z][a-z0-9_]+\b|\.[a-z][a-z0-9_]+\./,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 dhn(e){return new RegExp(e.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&"),"m")}function nDe(e){return e?typeof e=="string"?e:e.source:null}function nC(e){return ju("(?=",e,")")}function ju(...e){return e.map(t=>nDe(t)).join("")}function fhn(e){const t=e[e.length-1];return typeof t=="object"&&t.constructor===Object?(e.splice(e.length-1,1),t):{}}function l0(...e){return"("+(fhn(e).capture?"":"?:")+e.map(t=>nDe(t)).join("|")+")"}function phn(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:ju(d,/``.*?``/)},{match:ju(d,e.UNDERSCORE_IDENT_RE)}],relevance:0},p=function({includeEqual:M}){let k;M?k="!%&*+-/<=>@^|~?":k="!%&*+-/<>@^|~?";const P=Array.from(k),B=ju("[",...P.map(dhn),"]"),G=l0(B,/\./),L=ju(G,nC(G)),W=l0(ju(L,G,"*"),ju(B,"+"));return{scope:"operator",match:l0(W,/:\?>/,/:\?/,/:>/,/:=/,/::?/,/\$/),relevance:0}},m=p({includeEqual:!0}),g=p({includeEqual:!1}),v=function(M,k){return{begin:ju(M,nC(ju(/\s*/,l0(/\w/,/'/,/\^/,/#/,/``/,/\(/,/{\|/)))),beginScope:k,end:nC(l0(/\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:nC(/\(|=|$/),keywords:s,contains:[l,e.inherit(u,{scope:null}),f,{scope:"operator",match:/<|>/},y]},S={scope:"computation-expression",match:/\b[_a-z]\w*(?=\s*\{)/},x={begin:[/^\s*/,ju(/#/,l0(...r)),/\b/],beginScope:{2:"meta"},end:nC(/\s|$/)},E={variants:[e.BINARY_NUMBER_MODE,e.C_NUMBER_MODE]},C={scope:"string",begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE]},w={scope:"string",begin:/@"/,end:/"/,contains:[{match:/""/},e.BACKSLASH_ESCAPE]},O={scope:"string",begin:/"""/,end:/"""/,relevance:2},T={scope:"subst",begin:/\{/,end:/\}/,keywords:s},A={scope:"string",begin:/\$"/,end:/"/,contains:[{match:/\{\{/},{match:/\}\}/},e.BACKSLASH_ESCAPE,T]},I={scope:"string",begin:/(\$@|@\$)"/,end:/"/,contains:[{match:/\{\{/},{match:/\}\}/},{match:/""/},e.BACKSLASH_ESCAPE,T]},N={scope:"string",begin:/\$"""/,end:/"""/,contains:[{match:/\{\{/},{match:/\}\}/},T],relevance:2},D={scope:"string",match:ju(/'/,l0(/[^\\']/,/\\(?:.|\d{3}|x[a-fA-F\d]{2}|u[a-fA-F\d]{4}|U[a-fA-F\d]{8})/),/'/)};return T.contains=[I,A,w,C,D,n,l,u,y,S,x,E,f,m],{name:"F#",aliases:["fs","f#"],keywords:s,illegal:/\/\*/,classNameAliases:{"computation-expression":"keyword"},contains:[n,{variants:[N,I,A,O,w,C,D]},l,u,_,{scope:"meta",begin:/\[</,end:/>\]/,relevance:2,contains:[u,O,w,C,D,E]},b,y,S,x,E,f,m]}}function hhn(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 mhn(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,p,m){const g=e.inherit({className:"function",beginKeywords:f,end:p,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 ghn(e){const t=e.regex,n={$pattern:/[A-Z]+|%/,keyword:["THEN","ELSE","ENDIF","IF","GOTO","DO","WHILE","WH","END","CALL","SUB","ENDSUB","EQ","NE","LT","GT","LE","GE","AND","OR","XOR","%"],built_in:["ATAN","ABS","ACOS","ASIN","COS","EXP","FIX","FUP","ROUND","LN","SIN","SQRT","TAN","EXISTS"]},r=/\b/;function i(p,m){if(p.index===0)return;const g=p.input[p.index-1];g>="0"&&g<="9"||g!=="_"&&m.ignoreMatch()}const o=/[+-]?((\.\d+)|(\d+)(\.\d*)?)/,a=/[GM]\s*\d+(\.\d+)?/,s=/T\s*\d+/,l=/O\s*\d+/,c=/O<.+>/,u=/[ABCUVWXYZ]\s*/,d=/[FHIJKPQRS]\s*/,f=[e.COMMENT(/\(/,/\)/),e.COMMENT(/;/,/$/),e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.C_NUMBER_MODE,{scope:"title.function",variants:[{match:t.concat(r,a)},{begin:a,"on:begin":i},{match:t.concat(r,s)},{begin:s,"on:begin":i}]},{scope:"symbol",variants:[{match:t.concat(r,l)},{begin:l,"on:begin":i},{match:t.concat(r,c)},{begin:c,"on:begin":i},{match:/\*\s*\d+\s*$/}]},{scope:"operator",match:/^N\s*\d+/},{scope:"variable",match:/-?#\s*\d+/},{scope:"property",variants:[{match:t.concat(r,u,o)},{begin:t.concat(u,o),"on:begin":i}]},{scope:"params",variants:[{match:t.concat(r,d,o)},{begin:t.concat(d,o),"on:begin":i}]}];return{name:"G-code (ISO 6983)",aliases:["nc"],case_insensitive:!0,disableAutodetect:!0,keywords:n,contains:f}}function vhn(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 bhn(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 yhn(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","new","not","or","repeat","return","static","switch","then","until","var","while","with","xor"],built_in:["abs","alarm_get","alarm_set","angle_difference","animcurve_channel_evaluate","animcurve_channel_new","animcurve_create","animcurve_destroy","animcurve_exists","animcurve_get","animcurve_get_channel","animcurve_get_channel_index","animcurve_point_new","ansi_char","application_get_position","application_surface_draw_enable","application_surface_enable","application_surface_is_enabled","arccos","arcsin","arctan","arctan2","array_all","array_any","array_concat","array_contains","array_contains_ext","array_copy","array_copy_while","array_create","array_create_ext","array_delete","array_equals","array_filter","array_filter_ext","array_find_index","array_first","array_foreach","array_get","array_get_index","array_insert","array_intersection","array_last","array_length","array_map","array_map_ext","array_pop","array_push","array_reduce","array_resize","array_reverse","array_reverse_ext","array_set","array_shuffle","array_shuffle_ext","array_sort","array_union","array_unique","array_unique_ext","asset_add_tags","asset_clear_tags","asset_get_ids","asset_get_index","asset_get_tags","asset_get_type","asset_has_any_tag","asset_has_tags","asset_remove_tags","audio_bus_clear_emitters","audio_bus_create","audio_bus_get_emitters","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_effect_create","audio_emitter_bus","audio_emitter_create","audio_emitter_exists","audio_emitter_falloff","audio_emitter_free","audio_emitter_gain","audio_emitter_get_bus","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_get_assets","audio_group_get_gain","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_pause_all","audio_pause_sound","audio_pause_sync_group","audio_play_in_sync_group","audio_play_sound","audio_play_sound_at","audio_play_sound_ext","audio_play_sound_on","audio_queue_sound","audio_resume_all","audio_resume_sound","audio_resume_sync_group","audio_set_listener_mask","audio_set_master_gain","audio_sound_gain","audio_sound_get_audio_group","audio_sound_get_gain","audio_sound_get_listener_mask","audio_sound_get_loop","audio_sound_get_loop_end","audio_sound_get_loop_start","audio_sound_get_pitch","audio_sound_get_track_position","audio_sound_is_playable","audio_sound_length","audio_sound_loop","audio_sound_loop_end","audio_sound_loop_start","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_recording","audio_stop_sound","audio_stop_sync_group","audio_sync_group_debug","audio_sync_group_get_track_pos","audio_sync_group_is_paused","audio_sync_group_is_playing","audio_system_is_available","audio_system_is_initialised","base64_decode","base64_encode","bool","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_compress","buffer_copy","buffer_copy_from_vertex_buffer","buffer_copy_stride","buffer_crc32","buffer_create","buffer_create_from_vertex_buffer","buffer_create_from_vertex_buffer_ext","buffer_decompress","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_set_used_size","buffer_sha1","buffer_sizeof","buffer_tell","buffer_write","call_cancel","call_later","camera_apply","camera_copy_transforms","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","db_to_lin","dbg_add_font_glyphs","dbg_button","dbg_checkbox","dbg_color","dbg_colour","dbg_drop_down","dbg_same_line","dbg_section","dbg_section_delete","dbg_section_exists","dbg_slider","dbg_slider_int","dbg_sprite","dbg_text","dbg_text_input","dbg_view","dbg_view_delete","dbg_view_exists","dbg_watch","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_frequency","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_button","draw_circle","draw_circle_color","draw_circle_colour","draw_clear","draw_clear_alpha","draw_ellipse","draw_ellipse_color","draw_ellipse_colour","draw_enable_drawevent","draw_enable_skeleton_blendmodes","draw_enable_swf_aa","draw_flush","draw_get_alpha","draw_get_color","draw_get_colour","draw_get_enable_skeleton_blendmodes","draw_get_font","draw_get_halign","draw_get_lighting","draw_get_swf_aa_level","draw_get_valign","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_circle_precision","draw_set_color","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_to_mp_grid","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_is_list","ds_list_is_map","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_is_list","ds_map_is_map","ds_map_keys_to_array","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_values_to_array","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","effect_create_depth","effect_create_layer","environment_get_variable","event_inherited","event_perform","event_perform_async","event_perform_object","event_user","exception_unhandled_handler","exp","extension_exists","extension_get_option_count","extension_get_option_names","extension_get_option_value","extension_get_options","extension_get_version","external_call","external_define","external_free","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_cache_glyph","font_delete","font_enable_effects","font_enable_sdf","font_exists","font_get_bold","font_get_first","font_get_fontname","font_get_info","font_get_italic","font_get_last","font_get_name","font_get_sdf_enabled","font_get_sdf_spread","font_get_size","font_get_texture","font_get_uvs","font_replace_sprite","font_replace_sprite_ext","font_sdf_spread","font_set_cache_size","frac","fx_create","fx_get_name","fx_get_parameter","fx_get_parameter_names","fx_get_parameters","fx_get_single_layer","fx_set_parameter","fx_set_parameters","fx_set_single_layer","game_change","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_get_guid","gamepad_get_mapping","gamepad_get_option","gamepad_hat_count","gamepad_hat_value","gamepad_is_connected","gamepad_is_supported","gamepad_remove_mapping","gamepad_set_axis_deadzone","gamepad_set_button_threshold","gamepad_set_color","gamepad_set_colour","gamepad_set_option","gamepad_set_vibration","gamepad_test_mapping","gc_collect","gc_enable","gc_get_stats","gc_get_target_frame_time","gc_is_enabled","gc_target_frame_time","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","gif_add_surface","gif_open","gif_save","gif_save_buffer","gml_pragma","gml_release_mode","gpu_get_alphatestenable","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_depth","gpu_get_fog","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_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_depth","gpu_set_fog","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","handle_parse","highscore_add","highscore_clear","highscore_name","highscore_value","http_get","http_get_file","http_get_request_crossorigin","http_post_string","http_request","http_set_request_crossorigin","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_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","instanceof","int64","io_clear","irandom","irandom_range","is_array","is_bool","is_callable","is_debug_overlay_open","is_handle","is_infinity","is_instanceof","is_int32","is_int64","is_keyboard_used_debug_overlay","is_method","is_mouse_over_debug_overlay","is_nan","is_numeric","is_ptr","is_real","is_string","is_struct","is_undefined","json_decode","json_encode","json_parse","json_stringify","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_clear_fx","layer_create","layer_depth","layer_destroy","layer_destroy_instances","layer_element_move","layer_enable_fx","layer_exists","layer_force_draw_depth","layer_fx_is_enabled","layer_get_all","layer_get_all_elements","layer_get_depth","layer_get_element_layer","layer_get_element_type","layer_get_forced_depth","layer_get_fx","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_sequence_angle","layer_sequence_create","layer_sequence_destroy","layer_sequence_exists","layer_sequence_get_angle","layer_sequence_get_headdir","layer_sequence_get_headpos","layer_sequence_get_instance","layer_sequence_get_length","layer_sequence_get_sequence","layer_sequence_get_speedscale","layer_sequence_get_x","layer_sequence_get_xscale","layer_sequence_get_y","layer_sequence_get_yscale","layer_sequence_headdir","layer_sequence_headpos","layer_sequence_is_finished","layer_sequence_is_paused","layer_sequence_pause","layer_sequence_play","layer_sequence_speedscale","layer_sequence_x","layer_sequence_xscale","layer_sequence_y","layer_sequence_yscale","layer_set_fx","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","lin_to_db","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_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","method","method_call","method_get_index","method_get_self","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_and_collide","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","nameof","network_connect","network_connect_async","network_connect_raw","network_connect_raw_async","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_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_check_permission","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","os_request_permission","os_set_orientation_lock","parameter_count","parameter_string","part_emitter_burst","part_emitter_clear","part_emitter_create","part_emitter_delay","part_emitter_destroy","part_emitter_destroy_all","part_emitter_enable","part_emitter_exists","part_emitter_interval","part_emitter_region","part_emitter_relative","part_emitter_stream","part_particles_burst","part_particles_clear","part_particles_count","part_particles_create","part_particles_create_color","part_particles_create_colour","part_system_angle","part_system_automatic_draw","part_system_automatic_update","part_system_clear","part_system_color","part_system_colour","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_info","part_system_get_layer","part_system_global_space","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_size_x","part_type_size_y","part_type_speed","part_type_sprite","part_type_step","part_type_subimage","particle_exists","particle_get_info","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_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","radtodeg","random","random_get_seed","random_range","random_set_seed","randomise","randomize","real","rectangle_in_circle","rectangle_in_rectangle","rectangle_in_triangle","ref_create","rollback_chat","rollback_create_game","rollback_define_extra_network_latency","rollback_define_input","rollback_define_input_frame_delay","rollback_define_mock_input","rollback_define_player","rollback_display_events","rollback_get_info","rollback_get_input","rollback_get_player_prefs","rollback_join_game","rollback_leave_game","rollback_set_player_prefs","rollback_start_game","rollback_sync_on_frame","rollback_use_late_join","rollback_use_manual_start","rollback_use_player_prefs","rollback_use_random_input","room_add","room_assign","room_duplicate","room_exists","room_get_camera","room_get_info","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_camera","room_set_height","room_set_persistent","room_set_view_enabled","room_set_viewport","room_set_width","round","scheduler_resolution_get","scheduler_resolution_set","screen_save","screen_save_part","script_execute","script_execute_ext","script_exists","script_get_name","sequence_create","sequence_destroy","sequence_exists","sequence_get","sequence_get_objects","sequence_instance_override_object","sequence_keyframe_new","sequence_keyframedata_new","sequence_track_new","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_f_buffer","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_message_ext","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_event_frames","skeleton_animation_get_ext","skeleton_animation_get_frame","skeleton_animation_get_frames","skeleton_animation_get_position","skeleton_animation_is_finished","skeleton_animation_is_looping","skeleton_animation_list","skeleton_animation_mix","skeleton_animation_set","skeleton_animation_set_ext","skeleton_animation_set_frame","skeleton_animation_set_position","skeleton_attachment_create","skeleton_attachment_create_color","skeleton_attachment_create_colour","skeleton_attachment_destroy","skeleton_attachment_exists","skeleton_attachment_get","skeleton_attachment_replace","skeleton_attachment_replace_color","skeleton_attachment_replace_colour","skeleton_attachment_set","skeleton_bone_data_get","skeleton_bone_data_set","skeleton_bone_list","skeleton_bone_state_get","skeleton_bone_state_set","skeleton_collision_draw_set","skeleton_find_slot","skeleton_get_bounds","skeleton_get_minmax","skeleton_get_num_bounds","skeleton_skin_create","skeleton_skin_get","skeleton_skin_list","skeleton_skin_set","skeleton_slot_alpha_get","skeleton_slot_color_get","skeleton_slot_color_set","skeleton_slot_colour_get","skeleton_slot_colour_set","skeleton_slot_data","skeleton_slot_data_instance","skeleton_slot_list","sprite_add","sprite_add_ext","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_mode","sprite_get_bbox_right","sprite_get_bbox_top","sprite_get_height","sprite_get_info","sprite_get_name","sprite_get_nineslice","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_nineslice_create","sprite_prefetch","sprite_prefetch_multi","sprite_replace","sprite_save","sprite_save_strip","sprite_set_alpha_from_sprite","sprite_set_bbox","sprite_set_bbox_mode","sprite_set_cache_size","sprite_set_cache_size_ext","sprite_set_nineslice","sprite_set_offset","sprite_set_speed","sqr","sqrt","static_get","static_set","string","string_byte_at","string_byte_length","string_char_at","string_concat","string_concat_ext","string_copy","string_count","string_delete","string_digits","string_ends_with","string_ext","string_foreach","string_format","string_hash_to_newline","string_height","string_height_ext","string_insert","string_join","string_join_ext","string_last_pos","string_last_pos_ext","string_length","string_letters","string_lettersdigits","string_lower","string_ord_at","string_pos","string_pos_ext","string_repeat","string_replace","string_replace_all","string_set_byte_at","string_split","string_split_ext","string_starts_with","string_trim","string_trim_end","string_trim_start","string_upper","string_width","string_width_ext","struct_exists","struct_foreach","struct_get","struct_get_from_hash","struct_get_names","struct_names_count","struct_remove","struct_set","struct_set_from_hash","surface_copy","surface_copy_part","surface_create","surface_create_ext","surface_depth_disable","surface_exists","surface_format_is_supported","surface_free","surface_get_depth_disable","surface_get_format","surface_get_height","surface_get_target","surface_get_target_ext","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","tag_get_asset_ids","tag_get_assets","tan","texture_debug_messages","texture_flush","texture_get_height","texture_get_texel_height","texture_get_texel_width","texture_get_uvs","texture_get_width","texture_global_scale","texture_is_ready","texture_prefetch","texture_set_stage","texturegroup_get_fonts","texturegroup_get_names","texturegroup_get_sprites","texturegroup_get_status","texturegroup_get_textures","texturegroup_get_tilesets","texturegroup_load","texturegroup_set_mode","texturegroup_unload","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_height","tilemap_set_mask","tilemap_set_width","tilemap_tileset","tilemap_x","tilemap_y","tileset_get_info","tileset_get_name","tileset_get_texture","tileset_get_uvs","time_bpm_to_seconds","time_seconds_to_bpm","time_source_create","time_source_destroy","time_source_exists","time_source_get_children","time_source_get_parent","time_source_get_period","time_source_get_reps_completed","time_source_get_reps_remaining","time_source_get_state","time_source_get_time_remaining","time_source_get_units","time_source_pause","time_source_reconfigure","time_source_reset","time_source_resume","time_source_start","time_source_stop","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","uwp_device_touchscreen_available","uwp_livetile_badge_clear","uwp_livetile_badge_notification","uwp_livetile_notification_begin","uwp_livetile_notification_end","uwp_livetile_notification_expiry","uwp_livetile_notification_image_add","uwp_livetile_notification_secondary_begin","uwp_livetile_notification_tag","uwp_livetile_notification_template_add","uwp_livetile_notification_text_add","uwp_livetile_queue_enable","uwp_livetile_tile_clear","uwp_secondarytile_badge_clear","uwp_secondarytile_badge_notification","uwp_secondarytile_delete","uwp_secondarytile_pin","uwp_secondarytile_tile_clear","variable_clone","variable_get_hash","variable_global_exists","variable_global_get","variable_global_set","variable_instance_exists","variable_instance_get","variable_instance_get_names","variable_instance_names_count","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_begin","vertex_format_delete","vertex_format_end","vertex_format_get_info","vertex_freeze","vertex_get_buffer_size","vertex_get_number","vertex_normal","vertex_position","vertex_position_3d","vertex_submit","vertex_submit_ext","vertex_texcoord","vertex_ubyte4","vertex_update_buffer_from_buffer","vertex_update_buffer_from_vertex","video_close","video_draw","video_enable_loop","video_get_duration","video_get_format","video_get_position","video_get_status","video_get_volume","video_is_looping","video_open","video_pause","video_resume","video_seek_to","video_set_volume","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","wallpaper_set_config","wallpaper_set_subscriptions","weak_ref_alive","weak_ref_any_alive","weak_ref_create","window_center","window_device","window_enable_borderless_fullscreen","window_get_borderless_fullscreen","window_get_caption","window_get_color","window_get_colour","window_get_cursor","window_get_fullscreen","window_get_height","window_get_showborder","window_get_visible_rects","window_get_width","window_get_x","window_get_y","window_handle","window_has_focus","window_mouse_get_delta_x","window_mouse_get_delta_y","window_mouse_get_locked","window_mouse_get_x","window_mouse_get_y","window_mouse_set","window_mouse_set_locked","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_showborder","window_set_size","window_view_mouse_get_x","window_view_mouse_get_y","window_views_mouse_get_x","window_views_mouse_get_y","winphone_tile_background_color","winphone_tile_background_colour","zip_add_file","zip_create","zip_save","zip_unzip","zip_unzip_async"],symbol:["AudioEffect","AudioEffectType","AudioLFOType","GM_build_date","GM_build_type","GM_is_sandboxed","GM_project_filename","GM_runtime_version","GM_version","NaN","_GMFILE_","_GMFUNCTION_","_GMLINE_","alignmentH","alignmentV","all","animcurvetype_bezier","animcurvetype_catmullrom","animcurvetype_linear","asset_animationcurve","asset_font","asset_object","asset_path","asset_room","asset_script","asset_sequence","asset_shader","asset_sound","asset_sprite","asset_tiles","asset_timeline","asset_unknown","audio_3D","audio_bus_main","audio_falloff_exponent_distance","audio_falloff_exponent_distance_clamped","audio_falloff_exponent_distance_scaled","audio_falloff_inverse_distance","audio_falloff_inverse_distance_clamped","audio_falloff_inverse_distance_scaled","audio_falloff_linear_distance","audio_falloff_linear_distance_clamped","audio_falloff_none","audio_mono","audio_stereo","bboxkind_diamond","bboxkind_ellipse","bboxkind_precise","bboxkind_rectangular","bboxmode_automatic","bboxmode_fullimage","bboxmode_manual","bm_add","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_grow","buffer_s16","buffer_s32","buffer_s8","buffer_seek_end","buffer_seek_relative","buffer_seek_start","buffer_string","buffer_text","buffer_u16","buffer_u32","buffer_u64","buffer_u8","buffer_vbuffer","buffer_wrap","c_aqua","c_black","c_blue","c_dkgray","c_dkgrey","c_fuchsia","c_gray","c_green","c_grey","c_lime","c_ltgray","c_ltgrey","c_maroon","c_navy","c_olive","c_orange","c_purple","c_red","c_silver","c_teal","c_white","c_yellow","cache_directory","characterSpacing","cmpfunc_always","cmpfunc_equal","cmpfunc_greater","cmpfunc_greaterequal","cmpfunc_less","cmpfunc_lessequal","cmpfunc_never","cmpfunc_notequal","coreColor","coreColour","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","dropShadowEnabled","dropShadowEnabled","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","effectsEnabled","effectsEnabled","ev_alarm","ev_animation_end","ev_animation_event","ev_animation_update","ev_async_audio_playback","ev_async_audio_playback_ended","ev_async_audio_recording","ev_async_dialog","ev_async_push_notification","ev_async_save_load","ev_async_save_load","ev_async_social","ev_async_system_event","ev_async_web","ev_async_web_cloud","ev_async_web_iap","ev_async_web_image_load","ev_async_web_networking","ev_async_web_steam","ev_audio_playback","ev_audio_playback_ended","ev_audio_recording","ev_boundary","ev_boundary_view0","ev_boundary_view1","ev_boundary_view2","ev_boundary_view3","ev_boundary_view4","ev_boundary_view5","ev_boundary_view6","ev_boundary_view7","ev_broadcast_message","ev_cleanup","ev_collision","ev_create","ev_destroy","ev_dialog_async","ev_draw","ev_draw_begin","ev_draw_end","ev_draw_normal","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_outside_view0","ev_outside_view1","ev_outside_view2","ev_outside_view3","ev_outside_view4","ev_outside_view5","ev_outside_view6","ev_outside_view7","ev_pre_create","ev_push_notification","ev_right_button","ev_right_press","ev_right_release","ev_room_end","ev_room_start","ev_social","ev_step","ev_step_begin","ev_step_end","ev_step_normal","ev_system_event","ev_trigger","ev_user0","ev_user1","ev_user10","ev_user11","ev_user12","ev_user13","ev_user14","ev_user15","ev_user2","ev_user3","ev_user4","ev_user5","ev_user6","ev_user7","ev_user8","ev_user9","ev_web_async","ev_web_cloud","ev_web_iap","ev_web_image_load","ev_web_networking","ev_web_sound_load","ev_web_steam","fa_archive","fa_bottom","fa_center","fa_directory","fa_hidden","fa_left","fa_middle","fa_none","fa_readonly","fa_right","fa_sysfile","fa_top","fa_volumeid","false","frameSizeX","frameSizeY","gamespeed_fps","gamespeed_microseconds","global","glowColor","glowColour","glowEnabled","glowEnabled","glowEnd","glowStart","gp_axis_acceleration_x","gp_axis_acceleration_y","gp_axis_acceleration_z","gp_axis_angular_velocity_x","gp_axis_angular_velocity_y","gp_axis_angular_velocity_z","gp_axis_orientation_w","gp_axis_orientation_x","gp_axis_orientation_y","gp_axis_orientation_z","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","infinity","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_sequence","layerelementtype_sprite","layerelementtype_tile","layerelementtype_tilemap","layerelementtype_undefined","leaderboard_type_number","leaderboard_type_time_mins_secs","lighttype_dir","lighttype_point","lineSpacing","m_axisx","m_axisx_gui","m_axisy","m_axisy_gui","m_scroll_down","m_scroll_up","matrix_projection","matrix_view","matrix_world","mb_any","mb_left","mb_middle","mb_none","mb_right","mb_side1","mb_side2","mip_markedonly","mip_off","mip_on","network_config_avoid_time_wait","network_config_connect_timeout","network_config_disable_multicast","network_config_disable_reliable_udp","network_config_enable_multicast","network_config_enable_reliable_udp","network_config_use_non_blocking_socket","network_config_websocket_protocol","network_connect_active","network_connect_blocking","network_connect_nonblocking","network_connect_none","network_connect_passive","network_send_binary","network_send_text","network_socket_bluetooth","network_socket_tcp","network_socket_udp","network_socket_ws","network_socket_wss","network_type_connect","network_type_data","network_type_disconnect","network_type_down","network_type_non_blocking_connect","network_type_up","network_type_up_failed","nineslice_blank","nineslice_bottom","nineslice_center","nineslice_centre","nineslice_hide","nineslice_left","nineslice_mirror","nineslice_repeat","nineslice_right","nineslice_stretch","nineslice_top","noone","of_challenge_lose","of_challenge_tie","of_challenge_win","os_android","os_gdk","os_gxgames","os_ios","os_linux","os_macosx","os_operagx","os_permission_denied","os_permission_denied_dont_request","os_permission_granted","os_ps3","os_ps4","os_ps5","os_psvita","os_switch","os_tvos","os_unknown","os_uwp","os_win8native","os_windows","os_winphone","os_xboxone","os_xboxseriesxs","other","outlineColor","outlineColour","outlineDist","outlineEnabled","outlineEnabled","paragraphSpacing","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","pointer_invalid","pointer_null","pr_linelist","pr_linestrip","pr_pointlist","pr_trianglefan","pr_trianglelist","pr_trianglestrip","ps_distr_gaussian","ps_distr_invgaussian","ps_distr_linear","ps_mode_burst","ps_mode_stream","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","rollback_chat_message","rollback_connect_error","rollback_connect_info","rollback_connected_to_peer","rollback_connection_rejected","rollback_disconnected_from_peer","rollback_end_game","rollback_game_full","rollback_game_info","rollback_game_interrupted","rollback_game_resumed","rollback_high_latency","rollback_player_prefs","rollback_protocol_rejected","rollback_synchronized_with_peer","rollback_synchronizing_with_peer","self","seqaudiokey_loop","seqaudiokey_oneshot","seqdir_left","seqdir_right","seqinterpolation_assign","seqinterpolation_lerp","seqplay_loop","seqplay_oneshot","seqplay_pingpong","seqtextkey_bottom","seqtextkey_center","seqtextkey_justify","seqtextkey_left","seqtextkey_middle","seqtextkey_right","seqtextkey_top","seqtracktype_audio","seqtracktype_bool","seqtracktype_clipmask","seqtracktype_clipmask_mask","seqtracktype_clipmask_subject","seqtracktype_color","seqtracktype_colour","seqtracktype_empty","seqtracktype_graphic","seqtracktype_group","seqtracktype_instance","seqtracktype_message","seqtracktype_moment","seqtracktype_particlesystem","seqtracktype_real","seqtracktype_sequence","seqtracktype_spriteframes","seqtracktype_string","seqtracktype_text","shadowColor","shadowColour","shadowOffsetX","shadowOffsetY","shadowSoftness","sprite_add_ext_error_cancelled","sprite_add_ext_error_decompressfailed","sprite_add_ext_error_loadfailed","sprite_add_ext_error_setupfailed","sprite_add_ext_error_spritenotfound","sprite_add_ext_error_unknown","spritespeed_framespergameframe","spritespeed_framespersecond","surface_r16float","surface_r32float","surface_r8unorm","surface_rg8unorm","surface_rgba16float","surface_rgba32float","surface_rgba4unorm","surface_rgba8unorm","texturegroup_status_fetched","texturegroup_status_loaded","texturegroup_status_loading","texturegroup_status_unloaded","tf_anisotropic","tf_linear","tf_point","thickness","tile_flip","tile_index_mask","tile_mirror","tile_rotate","time_source_expire_after","time_source_expire_nearest","time_source_game","time_source_global","time_source_state_active","time_source_state_initial","time_source_state_paused","time_source_state_stopped","time_source_units_frames","time_source_units_seconds","timezone_local","timezone_utc","tm_countvsyncs","tm_sleep","tm_systemtiming","true","ty_real","ty_string","undefined","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","video_format_rgba","video_format_yuv","video_status_closed","video_status_paused","video_status_playing","video_status_preparing","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_f10","vk_f11","vk_f12","vk_f2","vk_f3","vk_f4","vk_f5","vk_f6","vk_f7","vk_f8","vk_f9","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","wallpaper_config","wallpaper_subscription_data","wrap"],"variable.language":["alarm","application_surface","argument","argument0","argument1","argument2","argument3","argument4","argument5","argument6","argument7","argument8","argument9","argument10","argument11","argument12","argument13","argument14","argument15","argument_count","async_load","background_color","background_colour","background_showcolor","background_showcolour","bbox_bottom","bbox_left","bbox_right","bbox_top","browser_height","browser_width","colour?ColourTrack","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","drawn_by_sequence","event_action","event_data","event_number","event_object","event_type","font_texture_page_size","fps","fps_real","friction","game_display_name","game_id","game_project_name","game_save_id","gravity","gravity_direction","health","hspeed","iap_data","id","image_alpha","image_angle","image_blend","image_index","image_number","image_speed","image_xscale","image_yscale","in_collision_tree","in_sequence","instance_count","instance_id","keyboard_key","keyboard_lastchar","keyboard_lastkey","keyboard_string","layer","lives","longMessage","managed","mask_index","message","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","player_avatar_sprite","player_avatar_url","player_id","player_local","player_type","player_user_id","program_directory","rollback_api_server","rollback_confirmed_frame","rollback_current_frame","rollback_event_id","rollback_event_param","rollback_game_running","room","room_first","room_height","room_last","room_persistent","room_speed","room_width","score","script","sequence_instance","solid","speed","sprite_height","sprite_index","sprite_width","sprite_xoffset","sprite_yoffset","stacktrace","temp_directory","timeline_index","timeline_loop","timeline_position","timeline_running","timeline_speed","view_camera","view_current","view_enabled","view_hport","view_surface_id","view_visible","view_wport","view_xport","view_yport","visible","vspeed","webgl_enabled","working_directory","x","xprevious","xstart","y","yprevious","ystart"]},contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.C_NUMBER_MODE]}}function _hn(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 Shn(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 x7(e,t={}){return t.variants=e,t}function Ehn(e){const t=e.regex,n="[A-Za-z0-9_$]+",r=x7([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=x7([e.BINARY_NUMBER_MODE,e.C_NUMBER_MODE]),a=x7([{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 Chn(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 xhn(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},p=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,p,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,p,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:/\}\}/})}),S=e.inherit(f,{keywords:n,className:"name"}),x=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:[S]},{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:[S]},{className:"template-variable",begin:/\{\{\{/,end:/\}\}\}/,contains:[x]},{className:"template-variable",begin:/\{\{/,end:/\}\}/,contains:[x]}]}}function whn(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 Thn(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",beginKeywords:"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 Ohn(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 Rhn(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 Ahn(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("\\^\\{","\\}"),p={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,p,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,p,u,a,c]}}function Ihn(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 Nhn(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 Mhn(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},p={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},S={className:"type",begin:":[ \\t]*("+l.trim().replace(/\s/g,"|")+")",end:"[ \\t]*=",excludeEnd:!0},x={className:"variable",keywords:b,begin:t,relevance:0,contains:[S,_]},E=n+"\\(";return{name:"ISBL",case_insensitive:!0,keywords:b,illegal:"\\$|\\?|%|,|;$|~|#|@|</",contains:[{className:"function",begin:E,end:"\\)$",returnBegin:!0,keywords:b,illegal:"[\\[\\]\\|\\$\\?%,~#@]",contains:[{className:"title",keywords:{$pattern:t,built_in:a},begin:E,end:"\\(",returnBegin:!0,excludeEnd:!0},_,x,p,f,y]},S,_,x,p,f,y]}}function khn(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 Phn(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 Dhn(e){return{name:"Julia REPL",contains:[{className:"meta.prompt",begin:/^julia>/,relevance:10,starts:{end:/^(?![ ]{6})/,subLanguage:"julia"}}],aliases:["jldoctest"]}}function Lhn(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 $hn(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(O=>O+"(?![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(O=>O+"(?![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]},p=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=[p],y=[m],b=function(O,T){return{contains:[g],starts:{relevance:0,contains:O,starts:T}}},_=function(O,T){return{begin:"\\\\"+O+"(?![a-zA-Z@:_])",keywords:{$pattern:/\\[a-zA-Z]+/,keyword:"\\"+O},relevance:0,contains:[g],starts:T}},S=function(O,T){return e.inherit({begin:"\\\\begin(?=[ ]*(\\r?\\n[ ]*)?\\{"+O+"\\})",keywords:{$pattern:/\\[a-zA-Z]+/,keyword:"\\begin"},relevance:0},b(v,T))},x=(O="string")=>e.END_SAME_AS_BEGIN({className:O,begin:/(.|\r?\n)/,end:/(.|\r?\n)/,excludeBegin:!0,excludeEnd:!0,endsParent:!0}),E=function(O){return{className:"string",end:"(?=\\\\end\\{"+O+"\\})"}},C=(O="string")=>({relevance:0,begin:/\{/,starts:{endsParent:!0,contains:[{className:O,end:/(?=\})/,endsParent:!0,contains:[{begin:/\{/,end:/\}/,relevance:0,contains:["self"]}]}]}}),w=[...["verb","lstinline"].map(O=>_(O,{contains:[x()]})),_("mint",b(v,{contains:[x()]})),_("mintinline",b(v,{contains:[C(),x()]})),_("url",{contains:[C("link"),C("link")]}),_("hyperref",{contains:[C("link")]}),_("href",b(y,{contains:[C("link")]})),...[].concat(...["","\\*"].map(O=>[S("verbatim"+O,E("verbatim"+O)),S("filecontents"+O,b(v,E("filecontents"+O))),...["","B","L"].map(T=>S(T+"Verbatim"+O,b(y,E(T+"Verbatim"+O))))])),S("minted",b(y,b(v,E("minted"))))];return{name:"LaTeX",aliases:["tex"],contains:[...w,...d]}}function Fhn(e){return{name:"LDIF",contains:[{className:"attribute",match:"^dn(?=:)",relevance:10},{className:"attribute",match:"^\\w+(?=:)"},{className:"literal",match:"^-"},e.HASH_COMMENT_MODE]}}function Bhn(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 Hhn(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}]},p={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,p,m,i,o,a,s,l,c,d,u],{name:"Lisp",illegal:/\S/,contains:[o,e.SHEBANG(),i,a,s,f,p,m,u]}}function jhn(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 Uhn=["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","using"],zhn=["true","false","null","undefined","NaN","Infinity"],Vhn=["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"],Ghn=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],Whn=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],qhn=[].concat(Whn,Vhn,Ghn);function Yhn(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:Uhn.concat(r),literal:zhn.concat(n),built_in:qhn.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 Khn(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:{keyword:"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",type:"void half bfloat float double fp128 x86_fp80 ppc_fp128 x86_amx x86_mmx ptr label token metadata opaque"},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 Qhn(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 Xhn=["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 Zhn(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(Xhn),p={variants:[{className:"builtin-symbol",begin:d,"on:begin":(S,x)=>{f.has(S[0])||x.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,_,p,m,e.QUOTE_STRING_MODE,u,g,b]}}function Jhn(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 emn(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 tmn(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 nmn(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 rmn(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 imn(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 omn(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 amn(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 smn(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 lmn(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 cmn(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 umn(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 dmn(e){return{name:"Nim",keywords:{keyword:["addr","and","as","asm","bind","block","break","case","cast","concept","const","continue","converter","defer","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 fmn(e){const t=e.regex,n={keyword:["assert","else","if","in","inherit","let","or","rec","then","with"],literal:["true","false","null"],built_in:["abort","baseNameOf","builtins","derivation","derivationStrict","dirOf","fetchGit","fetchMercurial","fetchTarball","fetchTree","fromTOML","import","isNull","map","placeholder","removeAttrs","scopedImport","throw","toString"]},r={scope:"built_in",match:t.either(...["abort","add","addDrvOutputDependencies","addErrorContext","all","any","appendContext","attrNames","attrValues","baseNameOf","bitAnd","bitOr","bitXor","break","builtins","catAttrs","ceil","compareVersions","concatLists","concatMap","concatStringsSep","convertHash","currentSystem","currentTime","deepSeq","derivation","derivationStrict","dirOf","div","elem","elemAt","false","fetchGit","fetchMercurial","fetchTarball","fetchTree","fetchurl","filter","filterSource","findFile","flakeRefToString","floor","foldl'","fromJSON","fromTOML","functionArgs","genList","genericClosure","getAttr","getContext","getEnv","getFlake","groupBy","hasAttr","hasContext","hashFile","hashString","head","import","intersectAttrs","isAttrs","isBool","isFloat","isFunction","isInt","isList","isNull","isPath","isString","langVersion","length","lessThan","listToAttrs","map","mapAttrs","match","mul","nixPath","nixVersion","null","parseDrvName","parseFlakeRef","partition","path","pathExists","placeholder","readDir","readFile","readFileType","removeAttrs","replaceStrings","scopedImport","seq","sort","split","splitVersion","storeDir","storePath","stringLength","sub","substring","tail","throw","toFile","toJSON","toPath","toString","toXML","trace","traceVerbose","true","tryEval","typeOf","unsafeDiscardOutputDependency","unsafeDiscardStringContext","unsafeGetAttrPos","warn","zipAttrsWith"].map(E=>`builtins\\.${E}`)),relevance:10},i="[A-Za-z_][A-Za-z0-9_'-]*",o={scope:"symbol",match:new RegExp(`<${i}(/${i})*>`)},a="[A-Za-z0-9_\\+\\.-]+",s={scope:"symbol",match:new RegExp(`(\\.\\.|\\.|~)?/(${a})?(/${a})*(?=[\\s;])`)},l=t.either("==","=","\\+\\+","\\+","<=","<\\|","<",">=",">","->","//","/","!=","!","\\|\\|","\\|>","\\?","\\*","&&"),c={scope:"operator",match:t.concat(l,/(?!-)/),relevance:0},u={scope:"number",match:new RegExp(`${e.NUMBER_RE}(?!-)`),relevance:0},d={variants:[{scope:"operator",beforeMatch:/\s/,begin:/-(?!>)/},{begin:[new RegExp(`${e.NUMBER_RE}`),/-/,/(?!>)/],beginScope:{1:"number",2:"operator"}},{begin:[l,/-/,/(?!>)/],beginScope:{1:"operator",2:"operator"}}],relevance:0},f={beforeMatch:/(^|\{|;)\s*/,begin:new RegExp(`${i}(\\.${i})*\\s*=(?!=)`),returnBegin:!0,relevance:0,contains:[{scope:"attr",match:new RegExp(`${i}(\\.${i})*(?=\\s*=)`),relevance:.2}]},p={scope:"char.escape",match:/\\\$/},m={scope:"char.escape",match:/''\$/},g={scope:"subst",begin:/\$\{/,end:/\}/,keywords:n},v={scope:"char.escape",match:/'''/},y={scope:"char.escape",match:/\\(?!\$)./},b={scope:"string",variants:[{begin:"''",end:"''",contains:[m,g,v,y]},{begin:'"',end:'"',contains:[p,g,y]}]},_={scope:"params",match:new RegExp(`${i}\\s*:(?=\\s)`)},S=[u,e.HASH_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.COMMENT(/\/\*\*(?!\/)/,/\*\//,{subLanguage:"markdown",relevance:0}),r,b,o,s,_,f,d,c];g.contains=S;const x=[{scope:"meta.prompt",match:/^nix-repl>(?=\s)/,relevance:10},{scope:"meta",beforeMatch:/\s+/,begin:/:([a-z]+|\?)/}];return{name:"Nix",aliases:["nixos"],keywords:n,contains:S.concat(x)}}function pmn(e){return{name:"Node REPL",contains:[{className:"meta.prompt",starts:{end:/ |$/,starts:{end:"$",subLanguage:"javascript"}},variants:[{begin:/^>(?=[ ]|$)/},{begin:/^\.\.\.(?=[ ]|$)/}]}]}}function hmn(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+/},p={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"},p,u,a,s,l,c,f,e.NUMBER_MODE]}}function mmn(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 gmn(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 vmn(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 bmn(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 ymn(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 _mn(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 ",p="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("+p+")\\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 Smn(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 Emn(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]}),p={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})]},S=[_,f,a,e.NUMBER_MODE,c,u,p,s,l,b],x={begin:/\[/,end:/\]/,excludeBegin:!0,excludeEnd:!0,relevance:0,contains:[].concat("self",S,{begin:"("+t.join("|")+")",className:"built_in",relevance:0},{className:"type",begin:/[\.\w\d]+/,relevance:0})};return _.contains.unshift(x),{name:"PowerShell",aliases:["pwsh","ps","ps1"],case_insensitive:!0,keywords:i,contains:S.concat(m,g,v,y,x)}}function Cmn(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 xmn(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 wmn(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 Tmn(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 Omn(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 Rmn(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 Amn(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 Imn(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 Nmn(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 Mmn(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 kmn(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 Pmn(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 Dmn(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 Lmn(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 $mn(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 Fmn(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 Bmn(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 Hmn(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]}]},p={className:"name",relevance:0,begin:t,keywords:i},m={variants:[{begin:"\\(",end:"\\)"},{begin:"\\[",end:"\\]"}],contains:[{begin:/lambda/,endsWithParent:!0,returnBegin:!0,contains:[p,{endsParent:!0,variants:[{begin:/\(/,end:/\)/},{begin:/\[/,end:/\]/}],contains:[c]}]},p,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 jmn(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 Umn(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 zmn(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 Vmn(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 Gmn(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 Wmn(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 qmn(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 Ymn(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 Kmn=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_-]*/}}),Qmn=["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","optgroup","option","p","picture","q","quote","samp","section","select","source","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],Xmn=["defs","g","marker","mask","pattern","svg","switch","symbol","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feFlood","feGaussianBlur","feImage","feMerge","feMorphology","feOffset","feSpecularLighting","feTile","feTurbulence","linearGradient","radialGradient","stop","circle","ellipse","image","line","path","polygon","polyline","rect","text","use","textPath","tspan","foreignObject","clipPath"],Zmn=[...Qmn,...Xmn],Jmn=["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"].sort().reverse(),egn=["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"].sort().reverse(),tgn=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"].sort().reverse(),ngn=["accent-color","align-content","align-items","align-self","alignment-baseline","all","anchor-name","animation","animation-composition","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-range","animation-range-end","animation-range-start","animation-timeline","animation-timing-function","appearance","aspect-ratio","backdrop-filter","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","baseline-shift","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-end-end-radius","border-end-start-radius","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-start-end-radius","border-start-start-radius","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-align","box-decoration-break","box-direction","box-flex","box-flex-group","box-lines","box-ordinal-group","box-orient","box-pack","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","color-scheme","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","contain-intrinsic-block-size","contain-intrinsic-height","contain-intrinsic-inline-size","contain-intrinsic-size","contain-intrinsic-width","container","container-name","container-type","content","content-visibility","counter-increment","counter-reset","counter-set","cue","cue-after","cue-before","cursor","cx","cy","direction","display","dominant-baseline","empty-cells","enable-background","field-sizing","fill","fill-opacity","fill-rule","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flood-color","flood-opacity","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-optical-sizing","font-palette","font-size","font-size-adjust","font-smooth","font-smoothing","font-stretch","font-style","font-synthesis","font-synthesis-position","font-synthesis-small-caps","font-synthesis-style","font-synthesis-weight","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-emoji","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","forced-color-adjust","gap","glyph-orientation-horizontal","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","hyphenate-character","hyphenate-limit-chars","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","initial-letter","initial-letter-align","inline-size","inset","inset-area","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","justify-content","justify-items","justify-self","kerning","left","letter-spacing","lighting-color","line-break","line-height","line-height-step","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","margin-trim","marker","marker-end","marker-mid","marker-start","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","masonry-auto-flow","math-depth","math-shift","math-style","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","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-anchor","overflow-block","overflow-clip-margin","overflow-inline","overflow-wrap","overflow-x","overflow-y","overlay","overscroll-behavior","overscroll-behavior-block","overscroll-behavior-inline","overscroll-behavior-x","overscroll-behavior-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","page-break-after","page-break-before","page-break-inside","paint-order","pause","pause-after","pause-before","perspective","perspective-origin","place-content","place-items","place-self","pointer-events","position","position-anchor","position-visibility","print-color-adjust","quotes","r","resize","rest","rest-after","rest-before","right","rotate","row-gap","ruby-align","ruby-position","scale","scroll-behavior","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","scroll-timeline","scroll-timeline-axis","scroll-timeline-name","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","shape-rendering","speak","speak-as","src","stop-color","stop-opacity","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","tab-size","table-layout","text-align","text-align-all","text-align-last","text-anchor","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-skip-ink","text-decoration-style","text-decoration-thickness","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-size-adjust","text-transform","text-underline-offset","text-underline-position","text-wrap","text-wrap-mode","text-wrap-style","timeline-scope","top","touch-action","transform","transform-box","transform-origin","transform-style","transition","transition-behavior","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","user-modify","user-select","vector-effect","vertical-align","view-timeline","view-timeline-axis","view-timeline-inset","view-timeline-name","view-transition-name","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","white-space-collapse","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","x","y","z-index","zoom"].sort().reverse();function rgn(e){const t=Kmn(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("+Zmn.join("|")+")"+o,className:"selector-tag"},{className:"selector-pseudo",begin:"&?:("+egn.join("|")+")"+o},{className:"selector-pseudo",begin:"&?:(:)?("+tgn.join("|")+")"+o},t.ATTRIBUTE_SELECTOR_MODE,{className:"keyword",begin:/@media/,starts:{end:/[{;}]/,keywords:{$pattern:/[a-z-]+/,keyword:n,attribute:Jmn.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("+ngn.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 ign(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 ogn(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 agn(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 sgn(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 lgn(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 cgn(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 ugn(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}),p=u([d],{relevance:1});return{name:"Twig",aliases:["craftcms"],case_insensitive:!0,subLanguage:"xml",contains:[e.COMMENT(/\{#/,/#\}/),f,p,{className:"template-variable",begin:/\{\{/,end:/\}\}/,contains:["self",c,l,o,a]}]}}function dgn(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 fgn(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 pgn(e){return{name:"VBScript in HTML",subLanguage:"xml",contains:[{begin:"<%",end:"%>",subLanguage:"vbscript"}]}}function hgn(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 mgn(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 ggn(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 vgn(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:/"""/},p={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]},S={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(S);const x=[...r,...o,...i],E={relevance:0,match:t.concat("\\b(?!",x.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,S,f,b,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,g,u,y,c,l,d,m,p,E]}}function bgn(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 ygn(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 _gn(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 Sgn(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 Egn(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:"[+-]?(?:(?:[0-9](?:'?[0-9])*\\.(?:[0-9](?:'?[0-9])*)?|\\.[0-9](?:'?[0-9])*)(?:[Ee][+-]?[0-9](?:'?[0-9])*)?|[0-9](?:'?[0-9])*[Ee][+-]?[0-9](?:'?[0-9])*|0[Xx](?:[0-9A-Fa-f](?:'?[0-9A-Fa-f])*(?:\\.(?:[0-9A-Fa-f](?:'?[0-9A-Fa-f])*)?)?|\\.[0-9A-Fa-f](?:'?[0-9A-Fa-f])*)[Pp][+-]?[0-9](?:'?[0-9])*)(?:[Ff](?:16|32|64|128)?|(BF|bf)16|[Ll]|)"},{begin:"[+-]?\\b(?:0[Bb][01](?:'?[01])*|0[Xx][0-9A-Fa-f](?:'?[0-9A-Fa-f])*|0(?:'?[0-7])*|[1-9](?:'?[0-9])*)(?:[Uu](?:LL?|ll?)|[Uu][Zz]?|(?:LL?|ll?)[Uu]?|[Zz][Uu]|)"}],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"],p=["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","flat_map","flat_set","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:p,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},S={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(_,S,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|flat_map|flat_set)\\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 Cgn(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=Egn(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 xgn(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=e.inherit(e.COMMENT(),{match:[/(^|\s)/,/#.*$/],scope:{2:"comment"}}),a={begin:/<<-?\s*(?=\w+)/,starts:{contains:[e.END_SAME_AS_BEGIN({begin:/(\w+)/,end:/(\w+)/,className:"string"})]}},s={className:"string",begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,n,i]};i.contains.push(s);const l={match:/\\"/},c={className:"string",begin:/'/,end:/'/},u={match:/\\'/},d={begin:/\$?\(\(/,end:/\)\)/,contains:[{begin:/\d+#[0-9a-f]+/,className:"number"},e.NUMBER_MODE,n]},f=["fish","bash","zsh","sh","csh","ksh","tcsh","dash","scsh"],p=e.SHEBANG({binary:`(${f.join("|")})`,relevance:10}),m={className:"function",begin:/\w[\w\d_]*\s*\(\s*\)\s*\{/,returnBegin:!0,contains:[e.inherit(e.TITLE_MODE,{begin:/\w[\w\d_]*/})],relevance:0},g=["if","then","else","elif","fi","time","for","while","until","in","do","done","case","esac","coproc","function","select"],v=["true","false"],y={match:/(\/[a-z._-]+)+/},b=["break","cd","continue","eval","exec","exit","export","getopts","hash","pwd","readonly","return","shift","test","times","trap","umask","unset"],_=["alias","bind","builtin","caller","command","declare","echo","enable","help","let","local","logout","mapfile","printf","read","readarray","source","sudo","type","typeset","ulimit","unalias"],S=["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"],x=["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","zsh"],keywords:{$pattern:/\b[a-z][a-z0-9._-]+\b/,keyword:g,literal:v,built_in:[...b,..._,"set","shopt",...S,...x]},contains:[p,e.SHEBANG(),m,d,o,a,y,s,l,c,u,n]}}function wgn(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:[{match:/\b(0b[01']+)/},{match:/(-?)\b([\d']+(\.[\d']*)?|\.[\d']+)((ll|LL|l|L)(u|U)?|(u|U)(ll|LL|l|L)?|f|F|b|B)/},{match:/(-?)\b(0[xX][a-fA-F0-9]+(?:'[a-fA-F0-9]+)*(?:\.[a-fA-F0-9]*(?:'[a-fA-F0-9]*)*)?(?:[pP][-+]?[0-9]+)?(l|L)?(u|U)?)/},{match:/(-?)\b\d+(?:'\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 elifdef elifndef 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","typeof","typeof_unqual","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","_BitInt","_Complex","_Imaginary","_Decimal32","_Decimal64","_Decimal96","_Decimal128","_Decimal64x","_Decimal128x","_Float16","_Float32","_Float64","_Float128","_Float32x","_Float64x","_Float128x","const","static","constexpr","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"},p=[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:p.concat([{begin:/\(/,end:/\)/,keywords:f,contains:p.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,p,[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 Tgn(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:"[+-]?(?:(?:[0-9](?:'?[0-9])*\\.(?:[0-9](?:'?[0-9])*)?|\\.[0-9](?:'?[0-9])*)(?:[Ee][+-]?[0-9](?:'?[0-9])*)?|[0-9](?:'?[0-9])*[Ee][+-]?[0-9](?:'?[0-9])*|0[Xx](?:[0-9A-Fa-f](?:'?[0-9A-Fa-f])*(?:\\.(?:[0-9A-Fa-f](?:'?[0-9A-Fa-f])*)?)?|\\.[0-9A-Fa-f](?:'?[0-9A-Fa-f])*)[Pp][+-]?[0-9](?:'?[0-9])*)(?:[Ff](?:16|32|64|128)?|(BF|bf)16|[Ll]|)"},{begin:"[+-]?\\b(?:0[Bb][01](?:'?[01])*|0[Xx][0-9A-Fa-f](?:'?[0-9A-Fa-f])*|0(?:'?[0-7])*|[1-9](?:'?[0-9])*)(?:[Uu](?:LL?|ll?)|[Uu][Zz]?|(?:LL?|ll?)[Uu]?|[Zz][Uu]|)"}],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"],p=["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","flat_map","flat_set","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:p,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},S={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(_,S,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|flat_map|flat_set)\\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 Ogn(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","args","async","await","by","descending","dynamic","equals","file","from","get","global","group","init","into","join","let","nameof","not","notnull","on","or","orderby","partial","record","remove","required","scoped","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:/"""("*)(?!")(.|\n)*?"""\1/,relevance:1},u={className:"string",begin:'@"',end:'"',contains:[{begin:'""'}]},d=e.inherit(u,{illegal:/\n/}),f={className:"subst",begin:/\{/,end:/\}/,keywords:a},p=e.inherit(f,{illegal:/\n/}),m={className:"string",begin:/\$"/,end:'"',illegal:/\n/,contains:[{begin:/\{\{/},{begin:/\}\}/},e.BACKSLASH_ESCAPE,p]},g={className:"string",begin:/\$@"/,end:'"',contains:[{begin:/\{\{/},{begin:/\}\}/},{begin:'""'},f]},v=e.inherit(g,{illegal:/\n/,contains:[{begin:/\{\{/},{begin:/\}\}/},{begin:'""'},p]});f.contains=[g,m,u,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,l,e.C_BLOCK_COMMENT_MODE],p.contains=[v,m,d,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,l,e.inherit(e.C_BLOCK_COMMENT_MODE,{illegal:/\n/})];const y={variants:[c,g,m,u,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},b={begin:"<",end:">",contains:[{beginKeywords:"in out"},s]},_=e.IDENT_RE+"(<"+e.IDENT_RE+"(\\s*,\\s*"+e.IDENT_RE+")*>)?(\\[\\])?",S={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"}},y,l,{beginKeywords:"class interface",relevance:0,end:/[{;=]/,illegal:/[^\s:,]/,contains:[{beginKeywords:"where class"},s,b,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,b,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:"("+_+"\\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,b],relevance:0},{match:/\(\)/},{className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:a,relevance:0,contains:[y,l,e.C_BLOCK_COMMENT_MODE]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},S]}}const Rgn=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_-]*/}}),Agn=["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","optgroup","option","p","picture","q","quote","samp","section","select","source","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],Ign=["defs","g","marker","mask","pattern","svg","switch","symbol","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feFlood","feGaussianBlur","feImage","feMerge","feMorphology","feOffset","feSpecularLighting","feTile","feTurbulence","linearGradient","radialGradient","stop","circle","ellipse","image","line","path","polygon","polyline","rect","text","use","textPath","tspan","foreignObject","clipPath"],Ngn=[...Agn,...Ign],Mgn=["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"].sort().reverse(),kgn=["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"].sort().reverse(),Pgn=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"].sort().reverse(),Dgn=["accent-color","align-content","align-items","align-self","alignment-baseline","all","anchor-name","animation","animation-composition","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-range","animation-range-end","animation-range-start","animation-timeline","animation-timing-function","appearance","aspect-ratio","backdrop-filter","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","baseline-shift","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-end-end-radius","border-end-start-radius","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-start-end-radius","border-start-start-radius","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-align","box-decoration-break","box-direction","box-flex","box-flex-group","box-lines","box-ordinal-group","box-orient","box-pack","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","color-scheme","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","contain-intrinsic-block-size","contain-intrinsic-height","contain-intrinsic-inline-size","contain-intrinsic-size","contain-intrinsic-width","container","container-name","container-type","content","content-visibility","counter-increment","counter-reset","counter-set","cue","cue-after","cue-before","cursor","cx","cy","direction","display","dominant-baseline","empty-cells","enable-background","field-sizing","fill","fill-opacity","fill-rule","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flood-color","flood-opacity","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-optical-sizing","font-palette","font-size","font-size-adjust","font-smooth","font-smoothing","font-stretch","font-style","font-synthesis","font-synthesis-position","font-synthesis-small-caps","font-synthesis-style","font-synthesis-weight","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-emoji","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","forced-color-adjust","gap","glyph-orientation-horizontal","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","hyphenate-character","hyphenate-limit-chars","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","initial-letter","initial-letter-align","inline-size","inset","inset-area","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","justify-content","justify-items","justify-self","kerning","left","letter-spacing","lighting-color","line-break","line-height","line-height-step","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","margin-trim","marker","marker-end","marker-mid","marker-start","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","masonry-auto-flow","math-depth","math-shift","math-style","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","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-anchor","overflow-block","overflow-clip-margin","overflow-inline","overflow-wrap","overflow-x","overflow-y","overlay","overscroll-behavior","overscroll-behavior-block","overscroll-behavior-inline","overscroll-behavior-x","overscroll-behavior-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","page-break-after","page-break-before","page-break-inside","paint-order","pause","pause-after","pause-before","perspective","perspective-origin","place-content","place-items","place-self","pointer-events","position","position-anchor","position-visibility","print-color-adjust","quotes","r","resize","rest","rest-after","rest-before","right","rotate","row-gap","ruby-align","ruby-position","scale","scroll-behavior","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","scroll-timeline","scroll-timeline-axis","scroll-timeline-name","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","shape-rendering","speak","speak-as","src","stop-color","stop-opacity","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","tab-size","table-layout","text-align","text-align-all","text-align-last","text-anchor","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-skip-ink","text-decoration-style","text-decoration-thickness","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-size-adjust","text-transform","text-underline-offset","text-underline-position","text-wrap","text-wrap-mode","text-wrap-style","timeline-scope","top","touch-action","transform","transform-box","transform-origin","transform-style","transition","transition-behavior","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","user-modify","user-select","vector-effect","vertical-align","view-timeline","view-timeline-axis","view-timeline-inset","view-timeline-name","view-transition-name","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","white-space-collapse","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","x","y","z-index","zoom"].sort().reverse();function Lgn(e){const t=e.regex,n=Rgn(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:":("+kgn.join("|")+")"},{begin:":(:)?("+Pgn.join("|")+")"}]},n.CSS_VARIABLE,{className:"attribute",begin:"\\b("+Dgn.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:Mgn.join(" ")},contains:[{begin:/[a-z-]+(?=:)/,className:"attribute"},...s,n.CSS_NUMBER_MODE]}]},{className:"selector-tag",begin:"\\b("+Ngn.join("|")+")\\b"}]}}function $gn(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 Fgn(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:[{match:/-?\b0[xX]\.[a-fA-F0-9](_?[a-fA-F0-9])*[pP][+-]?\d(_?\d)*i?/,relevance:0},{match:/-?\b0[xX](_?[a-fA-F0-9])+((\.([a-fA-F0-9](_?[a-fA-F0-9])*)?)?[pP][+-]?\d(_?\d)*)?i?/,relevance:0},{match:/-?\b0[oO](_?[0-7])*i?/,relevance:0},{match:/-?\.\d(_?\d)*([eE][+-]?\d(_?\d)*)?i?/,relevance:0},{match:/-?\b\d(_?\d)*(\.(\d(_?\d)*)?)?([eE][+-]?\d(_?\d)*)?i?/,relevance:0}]},{begin:/:=/},{className:"function",beginKeywords:"func",end:"\\s*(\\{|$)",excludeEnd:!0,contains:[e.TITLE_MODE,{className:"params",begin:/\(/,end:/\)/,endsParent:!0,keywords:t,illegal:/["']/}]}]}}function Bgn(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 Hgn(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 Pb="[0-9](_*[0-9])*",EA=`\\.(${Pb})`,CA="[0-9a-fA-F](_*[0-9a-fA-F])*",qpe={className:"number",variants:[{begin:`(\\b(${Pb})((${EA})|\\.)?|(${EA}))[eE][+-]?(${Pb})[fFdD]?\\b`},{begin:`\\b(${Pb})((${EA})[fFdD]?\\b|\\.([fFdD]\\b)?)`},{begin:`(${EA})[fFdD]?\\b`},{begin:`\\b(${Pb})[fFdD]\\b`},{begin:`\\b0[xX]((${CA})\\.?|(${CA})?\\.(${CA}))[pP][+-]?(${Pb})[fFdD]?\\b`},{begin:"\\b(0|[1-9](_*[0-9])*)[lL]?\\b"},{begin:`\\b0[xX](${CA})[lL]?\\b`},{begin:"\\b0(_*[0-7])*[lL]?\\b"},{begin:"\\b0[bB][01](_*[01])*[lL]?\\b"}],relevance:0};function rDe(e,t,n){return n===-1?"":e.replace(t,r=>rDe(e,t,n-1))}function jgn(e){const t=e.regex,n="[À-ʸa-zA-Z_$][À-ʸa-zA-Z_$0-9]*",r=n+rDe("(?:<"+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","goto","when"],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,qpe,e.C_BLOCK_COMMENT_MODE]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},qpe,o]}}const Ype="[A-Za-z$_][0-9A-Za-z$_]*",Ugn=["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","using"],zgn=["true","false","null","undefined","NaN","Infinity"],iDe=["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"],oDe=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],aDe=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],Vgn=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","global"],Ggn=[].concat(aDe,iDe,oDe);function Wgn(e){const t=e.regex,n=(P,{after:B})=>{const G="</"+P[0].slice(1);return P.input.indexOf(G,B)!==-1},r=Ype,i={begin:"<>",end:"</>"},o=/<[A-Za-z0-9\\._:-]+\s*\/>/,a={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(P,B)=>{const G=P[0].length+P.index,L=P.input[G];if(L==="<"||L===","){B.ignoreMatch();return}L===">"&&(n(P,{after:G})||B.ignoreMatch());let W;const j=P.input.substring(G);if(W=j.match(/^\s*=/)){B.ignoreMatch();return}if((W=j.match(/^\s+extends\s+/))&&W.index===0){B.ignoreMatch();return}}},s={$pattern:Ype,keyword:Ugn,literal:zgn,built_in:Ggn,"variable.language":Vgn},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:[]},p={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,p,m,g,v,{match:/\$\d+/},d];f.contains=b.concat({begin:/\{/,end:/\}/,keywords:s,contains:["self"].concat(b)});const _=[].concat(y,f.contains),S=_.concat([{begin:/(\s*)\(/,end:/\)/,keywords:s,contains:["self"].concat(_)}]),x={className:"params",begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:s,contains:S},E={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:{_:[...iDe,...oDe]}},w={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},O={variants:[{match:[/function/,/\s+/,r,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[x],illegal:/%/},T={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function A(P){return t.concat("(?!",P.join("|"),")")}const I={match:t.concat(/\b/,A([...aDe,"super","import"].map(P=>`${P}\\s*\\(`)),r,t.lookahead(/\s*\(/)),className:"title.function",relevance:0},N={begin:t.concat(/\./,t.lookahead(t.concat(r,/(?![0-9A-Za-z$_(])/))),end:r,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},D={match:[/get|set/,/\s+/,r,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},x]},M="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+e.UNDERSCORE_IDENT_RE+")\\s*=>",k={match:[/const|var|let/,/\s+/,r,/\s*/,/=\s*/,/(async\s*)?/,t.lookahead(M)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[x]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:s,exports:{PARAMS_CONTAINS:S,CLASS_REFERENCE:C},illegal:/#(?![$_A-z])/,contains:[e.SHEBANG({label:"shebang",binary:"node",relevance:5}),w,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,p,m,g,v,y,{match:/\$\d+/},d,C,{scope:"attr",match:r+t.lookahead(":"),relevance:0},k,{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:M,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:e.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:s,contains:S}]}]},{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"]}]}]},O,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+e.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[x,e.inherit(e.TITLE_MODE,{begin:r,className:"title.function"})]},{match:/\.\.\./,relevance:0},N,{match:"\\$"+r,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[x]},I,T,E,D,{match:/\$[(.]/}]}}function qgn(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",aliases:["jsonc"],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 Db="[0-9](_*[0-9])*",xA=`\\.(${Db})`,wA="[0-9a-fA-F](_*[0-9a-fA-F])*",Ygn={className:"number",variants:[{begin:`(\\b(${Db})((${xA})|\\.)?|(${xA}))[eE][+-]?(${Db})[fFdD]?\\b`},{begin:`\\b(${Db})((${xA})[fFdD]?\\b|\\.([fFdD]\\b)?)`},{begin:`(${xA})[fFdD]?\\b`},{begin:`\\b(${Db})[fFdD]\\b`},{begin:`\\b0[xX]((${wA})\\.?|(${wA})?\\.(${wA}))[pP][+-]?(${Db})[fFdD]?\\b`},{begin:"\\b(0|[1-9](_*[0-9])*)[lL]?\\b"},{begin:`\\b0[xX](${wA})[lL]?\\b`},{begin:"\\b0(_*[0-7])*[lL]?\\b"},{begin:"\\b0[bB][01](_*[01])*[lL]?\\b"}],relevance:0};function Kgn(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=Ygn,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 Qgn=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_-]*/}}),Xgn=["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","optgroup","option","p","picture","q","quote","samp","section","select","source","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],Zgn=["defs","g","marker","mask","pattern","svg","switch","symbol","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feFlood","feGaussianBlur","feImage","feMerge","feMorphology","feOffset","feSpecularLighting","feTile","feTurbulence","linearGradient","radialGradient","stop","circle","ellipse","image","line","path","polygon","polyline","rect","text","use","textPath","tspan","foreignObject","clipPath"],Jgn=[...Xgn,...Zgn],e0n=["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"].sort().reverse(),sDe=["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"].sort().reverse(),lDe=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"].sort().reverse(),t0n=["accent-color","align-content","align-items","align-self","alignment-baseline","all","anchor-name","animation","animation-composition","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-range","animation-range-end","animation-range-start","animation-timeline","animation-timing-function","appearance","aspect-ratio","backdrop-filter","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","baseline-shift","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-end-end-radius","border-end-start-radius","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-start-end-radius","border-start-start-radius","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-align","box-decoration-break","box-direction","box-flex","box-flex-group","box-lines","box-ordinal-group","box-orient","box-pack","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","color-scheme","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","contain-intrinsic-block-size","contain-intrinsic-height","contain-intrinsic-inline-size","contain-intrinsic-size","contain-intrinsic-width","container","container-name","container-type","content","content-visibility","counter-increment","counter-reset","counter-set","cue","cue-after","cue-before","cursor","cx","cy","direction","display","dominant-baseline","empty-cells","enable-background","field-sizing","fill","fill-opacity","fill-rule","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flood-color","flood-opacity","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-optical-sizing","font-palette","font-size","font-size-adjust","font-smooth","font-smoothing","font-stretch","font-style","font-synthesis","font-synthesis-position","font-synthesis-small-caps","font-synthesis-style","font-synthesis-weight","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-emoji","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","forced-color-adjust","gap","glyph-orientation-horizontal","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","hyphenate-character","hyphenate-limit-chars","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","initial-letter","initial-letter-align","inline-size","inset","inset-area","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","justify-content","justify-items","justify-self","kerning","left","letter-spacing","lighting-color","line-break","line-height","line-height-step","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","margin-trim","marker","marker-end","marker-mid","marker-start","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","masonry-auto-flow","math-depth","math-shift","math-style","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","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-anchor","overflow-block","overflow-clip-margin","overflow-inline","overflow-wrap","overflow-x","overflow-y","overlay","overscroll-behavior","overscroll-behavior-block","overscroll-behavior-inline","overscroll-behavior-x","overscroll-behavior-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","page-break-after","page-break-before","page-break-inside","paint-order","pause","pause-after","pause-before","perspective","perspective-origin","place-content","place-items","place-self","pointer-events","position","position-anchor","position-visibility","print-color-adjust","quotes","r","resize","rest","rest-after","rest-before","right","rotate","row-gap","ruby-align","ruby-position","scale","scroll-behavior","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","scroll-timeline","scroll-timeline-axis","scroll-timeline-name","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","shape-rendering","speak","speak-as","src","stop-color","stop-opacity","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","tab-size","table-layout","text-align","text-align-all","text-align-last","text-anchor","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-skip-ink","text-decoration-style","text-decoration-thickness","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-size-adjust","text-transform","text-underline-offset","text-underline-position","text-wrap","text-wrap-mode","text-wrap-style","timeline-scope","top","touch-action","transform","transform-box","transform-origin","transform-style","transition","transition-behavior","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","user-modify","user-select","vector-effect","vertical-align","view-timeline","view-timeline-axis","view-timeline-inset","view-timeline-name","view-transition-name","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","white-space-collapse","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","x","y","z-index","zoom"].sort().reverse(),n0n=sDe.concat(lDe).sort().reverse();function r0n(e){const t=Qgn(e),n=n0n,r="and or not only",i="[\\w-]+",o="("+i+"|@\\{"+i+"\\})",a=[],s=[],l=function(_){return{className:"string",begin:"~?"+_+".*?"+_}},c=function(_,S,x){return{className:_,begin:S,relevance:x}},u={$pattern:/[a-z-]+/,keyword:r,attribute:e0n.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}),p={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("+t0n.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,p,c("keyword","all\\b"),c("variable","@\\{"+i+"\\}"),{begin:"\\b("+Jgn.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:":("+sDe.join("|")+")"},{className:"selector-pseudo",begin:":(:)?("+lDe.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,p,t.FUNCTION_DISPATCH),{name:"Less",case_insensitive:!0,illegal:`[=>'/<($"]`,contains:a}}function i0n(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",aliases:["pluto"],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 o0n(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,n]},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 a0n(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 p=[n,l];return[c,u,d,f].forEach(m=>{m.contains=m.contains.concat(p)}),p=p.concat(c,u),{name:"Markdown",aliases:["md","mkdown","mkd"],contains:[{className:"section",variants:[{begin:"^#{1,6}",end:"$",contains:p},{begin:"(?=^.+?\\n[=-]{2,}$)",contains:[{begin:"^[=-]*$"},{begin:"^",end:"\\n",contains:p}]}]},n,o,c,u,{className:"quote",begin:"^>\\s+",contains:p,end:"$"},i,r,l,a,{scope:"literal",match:/&([a-zA-Z0-9]+|#[0-9]{1,7}|#[Xx][0-9a-fA-F]{1,6});/}]}}function s0n(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 l0n(e){const t=e.regex,n=["abs","accept","alarm","and","atan2","bind","binmode","bless","break","caller","chdir","chmod","chomp","chop","chown","chr","chroot","class","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","field","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","method","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={scope:"attr",match:/\s+:\s*\w+(\s*\(.*?\))?/},l={scope:"variable",variants:[{begin:/\$\d/},{begin:t.concat(/[$%@](?!")(\^\w\b|#\w+(::\w+)*|\{\w+\}|\w+(::\w*)*)/,"(?![A-Za-z])(?![@$%])")},{begin:/[$%@](?!")[^\s\w{=]|\$=/,relevance:0}],contains:[s]},c={className:"number",variants:[{match:/0?\.[0-9][0-9_]+\b/},{match:/\bv?(0|[1-9][0-9_]*(\.[0-9_]+)?|[1-9][0-9_]*)\b/},{match:/\b0[0-7][0-7_]*\b/},{match:/\b0x[0-9a-fA-F][0-9a-fA-F_]*\b/},{match:/\b0b[0-1][0-1_]*\b/}],relevance:0},u=[e.BACKSLASH_ESCAPE,o,l],d=[/!/,/\//,/\|/,/\?/,/'/,/"/,/#/],f=(g,v,y="\\1")=>{const b=y==="\\1"?y:t.concat(y,v);return t.concat(t.concat("(?:",g,")"),v,/(?:\\.|[^\\\/])*?/,b,/(?:\\.|[^\\\/])*?/,y,r)},p=(g,v,y)=>t.concat(t.concat("(?:",g,")"),v,/(?:\\.|[^\\\/])*?/,y,r),m=[l,e.HASH_COMMENT_MODE,e.COMMENT(/^=\w/,/=cut/,{endsWithParent:!0}),a,{className:"string",contains:u,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}]},c,{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:f("s|tr|y",t.either(...d,{capture:!0}))},{begin:f("s|tr|y","\\(","\\)")},{begin:f("s|tr|y","\\[","\\]")},{begin:f("s|tr|y","\\{","\\}")}],relevance:2},{className:"regexp",variants:[{begin:/(m|qr)\/\//,relevance:0},{begin:p("(?:m|qr)?",/\//,/\//)},{begin:p("m|qr",t.either(...d,{capture:!0}),/\1/)},{begin:p("m|qr",/\(/,/\)/)},{begin:p("m|qr",/\[/,/\]/)},{begin:p("m|qr",/\{/,/\}/)}]}]},{className:"function",beginKeywords:"sub method",end:"(\\s*\\(.*?\\))?[;{]",excludeEnd:!0,relevance:5,contains:[e.TITLE_MODE,s]},{className:"class",beginKeywords:"class",end:"[;{]",excludeEnd:!0,relevance:5,contains:[e.TITLE_MODE,s,c]},{begin:"-\\w\\b",relevance:0},{begin:"^__DATA__$",end:"^__END__$",subLanguage:"mojolicious",contains:[{begin:"^@@.*",end:"$",className:"comment"}]}];return o.contains=m,a.contains=m,{name:"Perl",aliases:["pl","pm"],keywords:i,contains:m}}function c0n(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=t.concat(/[A-Z]+/,n),a={scope:"variable",match:"\\$+"+r},s={scope:"meta",variants:[{begin:/<\?php/,relevance:10},{begin:/<\?=/},{begin:/<\?/,relevance:.1},{begin:/\?>/}]},l={scope:"subst",variants:[{begin:/\$\w+/},{begin:/\{\$/,end:/\}/}]},c=e.inherit(e.APOS_STRING_MODE,{illegal:null}),u=e.inherit(e.QUOTE_STRING_MODE,{illegal:null,contains:e.QUOTE_STRING_MODE.contains.concat(l)}),d={begin:/<<<[ \t]*(?:(\w+)|"(\w+)")\n/,end:/[ \t]*(\w+)\b/,contains:e.QUOTE_STRING_MODE.contains.concat(l),"on:begin":(N,D)=>{D.data._beginMatch=N[1]||N[2]},"on:end":(N,D)=>{D.data._beginMatch!==N[1]&&D.ignoreMatch()}},f=e.END_SAME_AS_BEGIN({begin:/<<<[ \t]*'(\w+)'\n/,end:/[ \t]*(\w+)\b/}),p=`[
]`,m={scope:"string",variants:[u,c,d,f]},g={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},v=["false","null","true"],y=["__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"],b=["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"],_={keyword:y,literal:(N=>{const D=[];return N.forEach(M=>{D.push(M),M.toLowerCase()===M?D.push(M.toUpperCase()):D.push(M.toLowerCase())}),D})(v),built_in:b},S=N=>N.map(D=>D.replace(/\|\d+$/,"")),x={variants:[{match:[/new/,t.concat(p,"+"),t.concat("(?!",S(b).join("\\b|"),"\\b)"),i],scope:{1:"keyword",4:"title.class"}}]},E=t.concat(r,"\\b(?!\\()"),C={variants:[{match:[t.concat(/::/,t.lookahead(/(?!class\b)/)),E],scope:{2:"variable.constant"}},{match:[/::/,/class/],scope:{2:"variable.language"}},{match:[i,t.concat(/::/,t.lookahead(/(?!class\b)/)),E],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"}}]},w={scope:"attr",match:t.concat(r,t.lookahead(":"),t.lookahead(/(?!::)/))},O={relevance:0,begin:/\(/,end:/\)/,keywords:_,contains:[w,a,C,e.C_BLOCK_COMMENT_MODE,m,g,x]},T={relevance:0,match:[/\b/,t.concat("(?!fn\\b|function\\b|",S(y).join("\\b|"),"|",S(b).join("\\b|"),"\\b)"),r,t.concat(p,"*"),t.lookahead(/(?=\()/)],scope:{3:"title.function.invoke"},contains:[O]};O.contains.push(T);const A=[w,C,e.C_BLOCK_COMMENT_MODE,m,g,x],I={begin:t.concat(/#\[\s*\\?/,t.either(i,o)),beginScope:"meta",end:/]/,endScope:"meta",keywords:{literal:v,keyword:["new","array"]},contains:[{begin:/\[/,end:/]/,keywords:{literal:v,keyword:["new","array"]},contains:["self",...A]},...A,{scope:"meta",variants:[{match:i},{match:o}]}]};return{case_insensitive:!1,keywords:_,contains:[I,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}]}},s,{scope:"variable.language",match:/\$this\b/},a,T,C,{match:[/const/,/\s/,r],scope:{1:"keyword",3:"variable.constant"}},x,{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:_,contains:["self",I,a,C,e.C_BLOCK_COMMENT_MODE,m,g]}]},{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]},m,g]}}function u0n(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 d0n(e){return{name:"Plain text",aliases:["text","txt"],disableAutodetect:!0}}function f0n(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})`}]},p={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,{scope:"variable.language",match:/\bself\b/},{beginKeywords:"if",relevance:0},{match:/\bor\b/,scope:"keyword"},l,p,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 p0n(e){return{aliases:["pycon"],contains:[{className:"meta.prompt",starts:{end:/ |$/,starts:{end:"$",subLanguage:"python"}},variants:[{begin:/^>>>(?=[ ]|$)/},{begin:/^\.\.\.(?=[ ]|$)/}]}]}}function h0n(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 m0n(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])*",p={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},p,{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 g0n(e){const t=e.regex,n=/(r#)?/,r=t.concat(n,e.UNDERSCORE_IDENT_RE),i=t.concat(n,e.IDENT_RE),o={className:"title.function.invoke",relevance:0,begin:t.concat(/\b/,/(?!let|for|while|if|else|match\b)/,i,t.lookahead(/\s*\(/))},a="([ui](8|16|32|64|128|size)|f(32|64))?",s=["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","union","unsafe","unsized","use","virtual","where","while","yield"],l=["true","false","Some","None","Ok","Err"],c=["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!"],u=["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:u,keyword:s,literal:l,built_in:c},illegal:"</",contains:[e.C_LINE_COMMENT_MODE,e.COMMENT("/\\*","\\*/",{contains:["self"]}),e.inherit(e.QUOTE_STRING_MODE,{begin:/b?"/,illegal:null}),{className:"symbol",begin:/'[a-zA-Z_][a-zA-Z0-9_]*(?!')/},{scope:"string",variants:[{begin:/b?r(#*)"(.|\n)*?"\1(?!#)/},{begin:/b?'/,end:/'/,contains:[{scope:"char.escape",match:/\\('|\w|x\w{2}|u\w{4}|U\w{8})/}]}]},{className:"number",variants:[{begin:"\\b0b([01_]+)"+a},{begin:"\\b0o([0-7_]+)"+a},{begin:"\\b0x([A-Fa-f0-9_]+)"+a},{begin:"\\b(\\d[\\d_]*(\\.[0-9_]+)?([eE][+-]?[0-9_]+)?)"+a}],relevance:0},{begin:[/fn/,/\s+/,r],className:{1:"keyword",3:"title.function"}},{className:"meta",begin:"#!?\\[",end:"\\]",contains:[{className:"string",begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE]}]},{begin:[/let/,/\s+/,/(?:mut\s+)?/,r],className:{1:"keyword",3:"keyword",4:"variable"}},{begin:[/for/,/\s+/,r,/\s+/,/in/],className:{1:"keyword",3:"variable",5:"keyword"}},{begin:[/type/,/\s+/,r],className:{1:"keyword",3:"title.class"}},{begin:[/(?:trait|enum|struct|union|impl|for)/,/\s+/,r],className:{1:"keyword",3:"title.class"}},{begin:e.IDENT_RE+"::",keywords:{keyword:"Self",built_in:c,type:u}},{className:"punctuation",begin:"->"},o]}}const v0n=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_-]*/}}),b0n=["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","optgroup","option","p","picture","q","quote","samp","section","select","source","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],y0n=["defs","g","marker","mask","pattern","svg","switch","symbol","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feFlood","feGaussianBlur","feImage","feMerge","feMorphology","feOffset","feSpecularLighting","feTile","feTurbulence","linearGradient","radialGradient","stop","circle","ellipse","image","line","path","polygon","polyline","rect","text","use","textPath","tspan","foreignObject","clipPath"],_0n=[...b0n,...y0n],S0n=["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"].sort().reverse(),E0n=["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"].sort().reverse(),C0n=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"].sort().reverse(),x0n=["accent-color","align-content","align-items","align-self","alignment-baseline","all","anchor-name","animation","animation-composition","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-range","animation-range-end","animation-range-start","animation-timeline","animation-timing-function","appearance","aspect-ratio","backdrop-filter","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","baseline-shift","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-end-end-radius","border-end-start-radius","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-start-end-radius","border-start-start-radius","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-align","box-decoration-break","box-direction","box-flex","box-flex-group","box-lines","box-ordinal-group","box-orient","box-pack","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","color-scheme","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","contain-intrinsic-block-size","contain-intrinsic-height","contain-intrinsic-inline-size","contain-intrinsic-size","contain-intrinsic-width","container","container-name","container-type","content","content-visibility","counter-increment","counter-reset","counter-set","cue","cue-after","cue-before","cursor","cx","cy","direction","display","dominant-baseline","empty-cells","enable-background","field-sizing","fill","fill-opacity","fill-rule","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flood-color","flood-opacity","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-optical-sizing","font-palette","font-size","font-size-adjust","font-smooth","font-smoothing","font-stretch","font-style","font-synthesis","font-synthesis-position","font-synthesis-small-caps","font-synthesis-style","font-synthesis-weight","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-emoji","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","forced-color-adjust","gap","glyph-orientation-horizontal","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","hyphenate-character","hyphenate-limit-chars","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","initial-letter","initial-letter-align","inline-size","inset","inset-area","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","justify-content","justify-items","justify-self","kerning","left","letter-spacing","lighting-color","line-break","line-height","line-height-step","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","margin-trim","marker","marker-end","marker-mid","marker-start","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","masonry-auto-flow","math-depth","math-shift","math-style","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","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-anchor","overflow-block","overflow-clip-margin","overflow-inline","overflow-wrap","overflow-x","overflow-y","overlay","overscroll-behavior","overscroll-behavior-block","overscroll-behavior-inline","overscroll-behavior-x","overscroll-behavior-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","page-break-after","page-break-before","page-break-inside","paint-order","pause","pause-after","pause-before","perspective","perspective-origin","place-content","place-items","place-self","pointer-events","position","position-anchor","position-visibility","print-color-adjust","quotes","r","resize","rest","rest-after","rest-before","right","rotate","row-gap","ruby-align","ruby-position","scale","scroll-behavior","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","scroll-timeline","scroll-timeline-axis","scroll-timeline-name","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","shape-rendering","speak","speak-as","src","stop-color","stop-opacity","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","tab-size","table-layout","text-align","text-align-all","text-align-last","text-anchor","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-skip-ink","text-decoration-style","text-decoration-thickness","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-size-adjust","text-transform","text-underline-offset","text-underline-position","text-wrap","text-wrap-mode","text-wrap-style","timeline-scope","top","touch-action","transform","transform-box","transform-origin","transform-style","transition","transition-behavior","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","user-modify","user-select","vector-effect","vertical-align","view-timeline","view-timeline-axis","view-timeline-inset","view-timeline-name","view-transition-name","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","white-space-collapse","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","x","y","z-index","zoom"].sort().reverse();function w0n(e){const t=v0n(e),n=C0n,r=E0n,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("+_0n.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("+x0n.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:S0n.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 T0n(e){return{name:"Shell Session",aliases:["console","shellsession"],contains:[{className:"meta.prompt",begin:/^\s{0,3}[/~\w\d[\]()@-]*[>%$#][ ]?/,starts:{end:/[^\\](?=\s*$)/,subLanguage:"bash"}}]}}function O0n(e){const t=e.regex,n=e.COMMENT("--","$"),r={scope:"string",variants:[{begin:/'/,end:/'/,contains:[{match:/''/}]}]},i={begin:/"/,end:/"/,contains:[{match:/""/}]},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"],p=u,m=[...c,...l].filter(x=>!u.includes(x)),g={scope:"variable",match:/@[a-z0-9][a-z0-9_]*/},v={scope:"operator",match:/[-+*/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?/,relevance:0},y={match:t.concat(/\b/,t.either(...p),/\s*\(/),relevance:0,keywords:{built_in:p}};function b(x){return t.concat(/\b/,t.either(...x.map(E=>E.replace(/\s+/,"\\s+"))),/\b/)}const _={scope:"keyword",match:b(f),relevance:0};function S(x,{exceptions:E,when:C}={}){const w=C;return E=E||[],x.map(O=>O.match(/\|\d+$/)||E.includes(O)?O:w(O)?`${O}|0`:O)}return{name:"SQL",case_insensitive:!0,illegal:/[{}]|<\//,keywords:{$pattern:/\b[\w\.]+/,keyword:S(m,{when:x=>x.length<3}),literal:o,type:s,built_in:d},contains:[{scope:"type",match:b(a)},_,y,g,r,i,e.C_NUMBER_MODE,e.C_BLOCK_COMMENT_MODE,n,v]}}function cDe(e){return e?typeof e=="string"?e:e.source:null}function rC(e){return Di("(?=",e,")")}function Di(...e){return e.map(t=>cDe(t)).join("")}function R0n(e){const t=e[e.length-1];return typeof t=="object"&&t.constructor===Object?(e.splice(e.length-1,1),t):{}}function Gs(...e){return"("+(R0n(e).capture?"":"?:")+e.map(t=>cDe(t)).join("|")+")"}const hZ=e=>Di(/\b/,e,/\w$/.test(e)?/\b/:/\B/),A0n=["Protocol","Type"].map(hZ),Kpe=["init","self"].map(hZ),I0n=["Any","Self"],w7=["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","package","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"],Qpe=["false","nil","true"],N0n=["assignment","associativity","higherThan","left","lowerThan","none","right"],M0n=["#colorLiteral","#column","#dsohandle","#else","#elseif","#endif","#error","#file","#fileID","#fileLiteral","#filePath","#function","#if","#imageLiteral","#keyPath","#line","#selector","#sourceLocation","#warning"],Xpe=["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"],uDe=Gs(/[/=\-+!*%<>&|^~?]/,/[\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]/),dDe=Gs(uDe,/[\u0300-\u036F]/,/[\u1DC0-\u1DFF]/,/[\u20D0-\u20FF]/,/[\uFE00-\uFE0F]/,/[\uFE20-\uFE2F]/),T7=Di(uDe,dDe,"*"),fDe=Gs(/[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]/),Rk=Gs(fDe,/\d/,/[\u0300-\u036F\u1DC0-\u1DFF\u20D0-\u20FF\uFE20-\uFE2F]/),tf=Di(fDe,Rk,"*"),TA=Di(/[A-Z]/,Rk,"*"),k0n=["attached","autoclosure",Di(/convention\(/,Gs("swift","block","c"),/\)/),"discardableResult","dynamicCallable","dynamicMemberLookup","escaping","freestanding","frozen","GKInspectable","IBAction","IBDesignable","IBInspectable","IBOutlet","IBSegueAction","inlinable","main","nonobjc","NSApplicationMain","NSCopying","NSManaged",Di(/objc\(/,tf,/\)/),"objc","objcMembers","propertyWrapper","requires_stored_property_inits","resultBuilder","Sendable","testable","UIApplicationMain","unchecked","unknown","usableFromInline","warn_unqualified_access"],P0n=["iOS","iOSApplicationExtension","macOS","macOSApplicationExtension","macCatalyst","macCatalystApplicationExtension","watchOS","watchOSApplicationExtension","tvOS","tvOSApplicationExtension","swift"];function D0n(e){const t={match:/\s+/,relevance:0},n=e.COMMENT("/\\*","\\*/",{contains:["self"]}),r=[e.C_LINE_COMMENT_MODE,n],i={match:[/\./,Gs(...A0n,...Kpe)],className:{2:"keyword"}},o={match:Di(/\./,Gs(...w7)),relevance:0},a=w7.filter(re=>typeof re=="string").concat(["_|0"]),s=w7.filter(re=>typeof re!="string").concat(I0n).map(hZ),l={variants:[{className:"keyword",match:Gs(...s,...Kpe)}]},c={$pattern:Gs(/\b\w+/,/#\w+/),keyword:a.concat(M0n),literal:Qpe},u=[i,o,l],d={match:Di(/\./,Gs(...Xpe)),relevance:0},f={className:"built_in",match:Di(/\b/,Gs(...Xpe),/(?=\()/)},p=[d,f],m={match:/->/,relevance:0},g={className:"operator",relevance:0,variants:[{match:T7},{match:`\\.(\\.|${dDe})+`}]},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/}]},S=(re="")=>({className:"subst",variants:[{match:Di(/\\/,re,/[0\\tnr"']/)},{match:Di(/\\/,re,/u\{[0-9a-fA-F]{1,8}\}/)}]}),x=(re="")=>({className:"subst",match:Di(/\\/,re,/[\t ]*(?:[\r\n]|\r\n)/)}),E=(re="")=>({className:"subst",label:"interpol",begin:Di(/\\/,re,/\(/),end:/\)/}),C=(re="")=>({begin:Di(re,/"""/),end:Di(/"""/,re),contains:[S(re),x(re),E(re)]}),w=(re="")=>({begin:Di(re,/"/),end:Di(/"/,re),contains:[S(re),E(re)]}),O={className:"string",variants:[C(),C("#"),C("##"),C("###"),w(),w("#"),w("##"),w("###")]},T=[e.BACKSLASH_ESCAPE,{begin:/\[/,end:/\]/,relevance:0,contains:[e.BACKSLASH_ESCAPE]}],A={begin:/\/[^\s](?=[^/\n]*\/)/,end:/\//,contains:T},I=re=>{const ve=Di(re,/\//),be=Di(/\//,re);return{begin:ve,end:be,contains:[...T,{scope:"comment",begin:`#(?!.*${be})`,end:/$/}]}},N={scope:"regexp",variants:[I("###"),I("##"),I("#"),A]},D={match:Di(/`/,tf,/`/)},M={className:"variable",match:/\$\d+/},k={className:"variable",match:`\\$${Rk}+`},P=[D,M,k],B={match:/(@|#(un)?)available/,scope:"keyword",starts:{contains:[{begin:/\(/,end:/\)/,keywords:P0n,contains:[...v,_,O]}]}},G={scope:"keyword",match:Di(/@/,Gs(...k0n),rC(Gs(/\(/,/\s+/)))},L={scope:"meta",match:Di(/@/,tf)},W=[B,G,L],j={match:rC(/\b[A-Z]/),relevance:0,contains:[{className:"type",match:Di(/(AV|CA|CF|CG|CI|CL|CM|CN|CT|MK|MP|MTK|MTL|NS|SCN|SK|UI|WK|XC)/,Rk,"+")},{className:"type",match:TA,relevance:0},{match:/[?!]+/,relevance:0},{match:/\.\.\./,relevance:0},{match:Di(/\s+&\s+/,rC(TA)),relevance:0}]},H={begin:/</,end:/>/,keywords:c,contains:[...r,...u,...W,m,j]};j.contains.push(H);const X={match:Di(tf,/\s*:/),keywords:"_|0",relevance:0},Q={begin:/\(/,end:/\)/,relevance:0,keywords:c,contains:["self",X,...r,N,...u,...p,...v,_,O,...P,...W,j]},ue={begin:/</,end:/>/,keywords:"repeat each",contains:[...r,j]},ee={begin:Gs(rC(Di(tf,/\s*:/)),rC(Di(tf,/\s+/,tf,/\s*:/))),end:/:/,relevance:0,contains:[{className:"keyword",match:/\b_\b/},{className:"params",match:tf}]},K={begin:/\(/,end:/\)/,keywords:c,contains:[ee,...r,...u,...v,_,O,...W,j,Q],endsParent:!0,illegal:/["']/},se={match:[/(func|macro)/,/\s+/,Gs(D.match,tf,T7)],className:{1:"keyword",3:"title.function"},contains:[ue,K,t],illegal:[/\[/,/%/]},le={match:[/\b(?:subscript|init[?!]?)/,/\s*(?=[<(])/],className:{1:"keyword"},contains:[ue,K,t],illegal:/\[|%/},oe={match:[/operator/,/\s+/,T7],className:{1:"keyword",3:"title"}},ne={begin:[/precedencegroup/,/\s+/,TA],className:{1:"keyword",3:"title"},contains:[j],keywords:[...N0n,...Qpe],end:/}/},he={match:[/class\b/,/\s+/,/func\b/,/\s+/,/\b[A-Za-z_][A-Za-z0-9_]*\b/],scope:{1:"keyword",3:"keyword",5:"title.function"}},me={match:[/class\b/,/\s+/,/var\b/],scope:{1:"keyword",3:"keyword"}},ce={begin:[/(struct|protocol|class|extension|enum|actor)/,/\s+/,tf,/\s*/],beginScope:{1:"keyword",3:"title.class"},keywords:c,contains:[ue,...u,{begin:/:/,end:/\{/,keywords:c,contains:[{scope:"title.class.inherited",match:TA},...u],relevance:0}]};for(const re of O.variants){const ve=re.contains.find(xe=>xe.label==="interpol");ve.keywords=c;const be=[...u,...p,...v,_,O,...P];ve.contains=[...be,{begin:/\(/,end:/\)/,contains:["self",...be]}]}return{name:"Swift",keywords:c,contains:[...r,se,le,he,me,ce,oe,ne,{beginKeywords:"import",end:/$/,contains:[...r],relevance:0},N,...u,...p,...v,_,O,...P,...W,j,Q]}}const Ak="[A-Za-z$_][0-9A-Za-z$_]*",pDe=["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","using"],hDe=["true","false","null","undefined","NaN","Infinity"],mDe=["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"],gDe=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],vDe=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],bDe=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","global"],yDe=[].concat(vDe,mDe,gDe);function L0n(e){const t=e.regex,n=(P,{after:B})=>{const G="</"+P[0].slice(1);return P.input.indexOf(G,B)!==-1},r=Ak,i={begin:"<>",end:"</>"},o=/<[A-Za-z0-9\\._:-]+\s*\/>/,a={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(P,B)=>{const G=P[0].length+P.index,L=P.input[G];if(L==="<"||L===","){B.ignoreMatch();return}L===">"&&(n(P,{after:G})||B.ignoreMatch());let W;const j=P.input.substring(G);if(W=j.match(/^\s*=/)){B.ignoreMatch();return}if((W=j.match(/^\s+extends\s+/))&&W.index===0){B.ignoreMatch();return}}},s={$pattern:Ak,keyword:pDe,literal:hDe,built_in:yDe,"variable.language":bDe},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:[]},p={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,p,m,g,v,{match:/\$\d+/},d];f.contains=b.concat({begin:/\{/,end:/\}/,keywords:s,contains:["self"].concat(b)});const _=[].concat(y,f.contains),S=_.concat([{begin:/(\s*)\(/,end:/\)/,keywords:s,contains:["self"].concat(_)}]),x={className:"params",begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:s,contains:S},E={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:{_:[...mDe,...gDe]}},w={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},O={variants:[{match:[/function/,/\s+/,r,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[x],illegal:/%/},T={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function A(P){return t.concat("(?!",P.join("|"),")")}const I={match:t.concat(/\b/,A([...vDe,"super","import"].map(P=>`${P}\\s*\\(`)),r,t.lookahead(/\s*\(/)),className:"title.function",relevance:0},N={begin:t.concat(/\./,t.lookahead(t.concat(r,/(?![0-9A-Za-z$_(])/))),end:r,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},D={match:[/get|set/,/\s+/,r,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},x]},M="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+e.UNDERSCORE_IDENT_RE+")\\s*=>",k={match:[/const|var|let/,/\s+/,r,/\s*/,/=\s*/,/(async\s*)?/,t.lookahead(M)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[x]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:s,exports:{PARAMS_CONTAINS:S,CLASS_REFERENCE:C},illegal:/#(?![$_A-z])/,contains:[e.SHEBANG({label:"shebang",binary:"node",relevance:5}),w,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,p,m,g,v,y,{match:/\$\d+/},d,C,{scope:"attr",match:r+t.lookahead(":"),relevance:0},k,{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:M,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:e.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:s,contains:S}]}]},{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"]}]}]},O,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+e.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[x,e.inherit(e.TITLE_MODE,{begin:r,className:"title.function"})]},{match:/\.\.\./,relevance:0},N,{match:"\\$"+r,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[x]},I,T,E,D,{match:/\$[(.]/}]}}function $0n(e){const t=e.regex,n=L0n(e),r=Ak,i=["any","void","number","boolean","string","object","never","symbol","bigint","unknown"],o={begin:[/namespace/,/\s+/,e.IDENT_RE],beginScope:{1:"keyword",3:"title.class"}},a={beginKeywords:"interface",end:/\{/,excludeEnd:!0,keywords:{keyword:"interface extends",built_in:i},contains:[n.exports.CLASS_REFERENCE]},s={className:"meta",relevance:10,begin:/^\s*['"]use strict['"]/},l=["type","interface","public","private","protected","implements","declare","abstract","readonly","enum","override","satisfies"],c={$pattern:Ak,keyword:pDe.concat(l),literal:hDe,built_in:yDe.concat(i),"variable.language":bDe},u={className:"meta",begin:"@"+r},d=(g,v,y)=>{const b=g.contains.findIndex(_=>_.label===v);if(b===-1)throw new Error("can not find mode to replace");g.contains.splice(b,1,y)};Object.assign(n.keywords,c),n.exports.PARAMS_CONTAINS.push(u);const f=n.contains.find(g=>g.scope==="attr"),p=Object.assign({},f,{match:t.concat(r,t.lookahead(/\s*\?:/))});n.exports.PARAMS_CONTAINS.push([n.exports.CLASS_REFERENCE,f,p]),n.contains=n.contains.concat([u,o,a,p]),d(n,"shebang",e.SHEBANG()),d(n,"use_strict",s);const m=n.contains.find(g=>g.label==="func.def");return m.relevance=0,Object.assign(n,{name:"TypeScript",aliases:["ts","tsx","mts","cts"]}),n}function F0n(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 B0n(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 H0n(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 j0n(e){const t="true false yes no null",n="[\\w#;/?:@&=+$,.~*'()[\\]]+",r={className:"attr",variants:[{begin:/[\w*@][\w*@ :()\./-]*:(?=[ \t]|$)/},{begin:/"[\w*@][\w*@ :()\./-]*":(?=[ \t]|$)/},{begin:/'[\w*@][\w*@ :()\./-]*':(?=[ \t]|$)/}]},i={className:"template-variable",variants:[{begin:/\{\{/,end:/\}\}/},{begin:/%\{/,end:/\}/}]},o={className:"string",relevance:0,begin:/'/,end:/'/,contains:[{match:/''/,scope:"char.escape",relevance:0}]},a={className:"string",relevance:0,variants:[{begin:/"/,end:/"/},{begin:/\S+/}],contains:[e.BACKSLASH_ESCAPE,i]},s=e.inherit(a,{variants:[{begin:/'/,end:/'/,contains:[{begin:/''/,relevance:0}]},{begin:/"/,end:/"/},{begin:/[^\s,{}[\]]+/}]}),l={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"},c={end:",",endsWithParent:!0,excludeEnd:!0,keywords:t,relevance:0},u={begin:/\{/,end:/\}/,contains:[c],illegal:"\\n",relevance:0},d={begin:"\\[",end:"\\]",contains:[c],illegal:"\\n",relevance:0},f=[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}},l,{className:"number",begin:e.C_NUMBER_RE+"\\b",relevance:0},u,d,o,a],p=[...f];return p.pop(),p.push(s),c.contains=p,{name:"YAML",case_insensitive:!0,aliases:["yml"],contains:f}}const U0n={arduino:Cgn,bash:xgn,c:wgn,cpp:Tgn,csharp:Ogn,css:Lgn,diff:$gn,go:Fgn,graphql:Bgn,ini:Hgn,java:jgn,javascript:Wgn,json:qgn,kotlin:Kgn,less:r0n,lua:i0n,makefile:o0n,markdown:a0n,objectivec:s0n,perl:l0n,php:c0n,"php-template":u0n,plaintext:d0n,python:f0n,"python-repl":p0n,r:h0n,ruby:m0n,rust:g0n,scss:w0n,shell:T0n,sql:O0n,swift:D0n,typescript:$0n,vbnet:F0n,wasm:B0n,xml:H0n,yaml:j0n},z0n={...U0n,"1c":apn,abnf:spn,accesslog:lpn,actionscript:cpn,ada:upn,angelscript:dpn,apache:fpn,applescript:ppn,arcade:hpn,armasm:mpn,asciidoc:gpn,aspectj:vpn,autohotkey:bpn,autoit:ypn,avrasm:_pn,awk:Spn,axapta:Epn,basic:Cpn,bnf:xpn,brainfuck:wpn,cal:Tpn,capnproto:Opn,ceylon:Rpn,clean:Apn,clojure:Ipn,"clojure-repl":Npn,cmake:Mpn,coffeescript:Bpn,coq:Hpn,cos:jpn,crmsh:Upn,crystal:zpn,csp:Vpn,d:Gpn,dart:Wpn,delphi:qpn,django:Ypn,dns:Kpn,dockerfile:Qpn,dos:Xpn,dsconfig:Zpn,dts:Jpn,dust:ehn,ebnf:thn,elixir:nhn,elm:rhn,erb:ihn,erlang:ohn,"erlang-repl":ahn,excel:shn,fix:lhn,flix:chn,fortran:uhn,fsharp:phn,gams:hhn,gauss:mhn,gcode:ghn,gherkin:vhn,glsl:bhn,gml:yhn,golo:_hn,gradle:Shn,groovy:Ehn,haml:Chn,handlebars:xhn,haskell:whn,haxe:Thn,hsp:Ohn,http:Rhn,hy:Ahn,inform7:Ihn,irpf90:Nhn,isbl:Mhn,"jboss-cli":khn,julia:Phn,"julia-repl":Dhn,lasso:Lhn,latex:$hn,ldif:Fhn,leaf:Bhn,lisp:Hhn,livecodeserver:jhn,livescript:Yhn,llvm:Khn,lsl:Qhn,mathematica:Zhn,matlab:Jhn,maxima:emn,mel:tmn,mercury:nmn,mipsasm:rmn,mizar:imn,mojolicious:omn,monkey:amn,moonscript:smn,n1ql:lmn,nestedtext:cmn,nginx:umn,nim:dmn,nix:fmn,"node-repl":pmn,nsis:hmn,ocaml:mmn,openscad:gmn,oxygene:vmn,parser3:bmn,pf:ymn,pgsql:_mn,pony:Smn,powershell:Emn,processing:Cmn,profile:xmn,prolog:wmn,properties:Tmn,protobuf:Omn,puppet:Rmn,purebasic:Amn,q:Imn,qml:Nmn,reasonml:Mmn,rib:kmn,roboconf:Pmn,routeros:Dmn,rsl:Lmn,ruleslanguage:$mn,sas:Fmn,scala:Bmn,scheme:Hmn,scilab:jmn,smali:Umn,smalltalk:zmn,sml:Vmn,sqf:Gmn,stan:Wmn,stata:qmn,step21:Ymn,stylus:rgn,subunit:ign,taggerscript:ogn,tap:agn,tcl:sgn,thrift:lgn,tp:cgn,twig:ugn,vala:dgn,vbscript:fgn,"vbscript-html":pgn,verilog:hgn,vhdl:mgn,vim:ggn,wren:vgn,x86asm:bgn,xl:ygn,xquery:_gn,zephir:Sgn};function _De(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)&&_De(n)}),e}class Zpe{constructor(t){t.data===void 0&&(t.data={}),this.data=t.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}}function SDe(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 V0n="</span>",Jpe=e=>!!e.scope,G0n=(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 W0n{constructor(t,n){this.buffer="",this.classPrefix=n.classPrefix,t.walk(this)}addText(t){this.buffer+=SDe(t)}openNode(t){if(!Jpe(t))return;const n=G0n(t.scope,{prefix:this.classPrefix});this.span(n)}closeNode(t){Jpe(t)&&(this.buffer+=V0n)}value(){return this.buffer}span(t){this.buffer+=`<span class="${t}">`}}const ehe=(e={})=>{const t={children:[]};return Object.assign(t,e),t};class mZ{constructor(){this.rootNode=ehe(),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=ehe({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=>{mZ._collapse(n)}))}}class q0n extends mZ{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 W0n(this,this.options).value()}finalize(){return this.closeAllNodes(),!0}}function ET(e){return e?typeof e=="string"?e:e.source:null}function EDe(e){return jv("(?=",e,")")}function Y0n(e){return jv("(?:",e,")*")}function K0n(e){return jv("(?:",e,")?")}function jv(...e){return e.map(t=>ET(t)).join("")}function Q0n(e){const t=e[e.length-1];return typeof t=="object"&&t.constructor===Object?(e.splice(e.length-1,1),t):{}}function gZ(...e){return"("+(Q0n(e).capture?"":"?:")+e.map(t=>ET(t)).join("|")+")"}function CDe(e){return new RegExp(e.toString()+"|").exec("").length-1}function X0n(e,t){const n=e&&e.exec(t);return n&&n.index===0}const Z0n=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function vZ(e,{joinWith:t}){let n=0;return e.map(r=>{n+=1;const i=n;let o=ET(r),a="";for(;o.length>0;){const s=Z0n.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 J0n=/\b\B/,xDe="[a-zA-Z]\\w*",bZ="[a-zA-Z_]\\w*",wDe="\\b\\d+(\\.\\d+)?",TDe="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",ODe="\\b(0b[01]+)",e1n="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",t1n=(e={})=>{const t=/^#![ ]*\//;return e.binary&&(e.begin=jv(t,/.*\b/,e.binary,/\b.*/)),Um({scope:"meta",begin:t,end:/$/,relevance:0,"on:begin":(n,r)=>{n.index!==0&&r.ignoreMatch()}},e)},CT={begin:"\\\\[\\s\\S]",relevance:0},n1n={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[CT]},r1n={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[CT]},i1n={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/},_8=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=gZ("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:jv(/[ ]+/,"(",i,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),r},o1n=_8("//","$"),a1n=_8("/\\*","\\*/"),s1n=_8("#","$"),l1n={scope:"number",begin:wDe,relevance:0},c1n={scope:"number",begin:TDe,relevance:0},u1n={scope:"number",begin:ODe,relevance:0},d1n={scope:"regexp",begin:/\/(?=[^/\n]*\/)/,end:/\/[gimuy]*/,contains:[CT,{begin:/\[/,end:/\]/,relevance:0,contains:[CT]}]},f1n={scope:"title",begin:xDe,relevance:0},p1n={scope:"title",begin:bZ,relevance:0},h1n={begin:"\\.\\s*"+bZ,relevance:0},m1n=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 OA=Object.freeze({__proto__:null,APOS_STRING_MODE:n1n,BACKSLASH_ESCAPE:CT,BINARY_NUMBER_MODE:u1n,BINARY_NUMBER_RE:ODe,COMMENT:_8,C_BLOCK_COMMENT_MODE:a1n,C_LINE_COMMENT_MODE:o1n,C_NUMBER_MODE:c1n,C_NUMBER_RE:TDe,END_SAME_AS_BEGIN:m1n,HASH_COMMENT_MODE:s1n,IDENT_RE:xDe,MATCH_NOTHING_RE:J0n,METHOD_GUARD:h1n,NUMBER_MODE:l1n,NUMBER_RE:wDe,PHRASAL_WORDS_MODE:i1n,QUOTE_STRING_MODE:r1n,REGEXP_MODE:d1n,RE_STARTERS_RE:e1n,SHEBANG:t1n,TITLE_MODE:f1n,UNDERSCORE_IDENT_RE:bZ,UNDERSCORE_TITLE_MODE:p1n});function g1n(e,t){e.input[e.index-1]==="."&&t.ignoreMatch()}function v1n(e,t){e.className!==void 0&&(e.scope=e.className,delete e.className)}function b1n(e,t){t&&e.beginKeywords&&(e.begin="\\b("+e.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",e.__beforeBegin=g1n,e.keywords=e.keywords||e.beginKeywords,delete e.beginKeywords,e.relevance===void 0&&(e.relevance=0))}function y1n(e,t){Array.isArray(e.illegal)&&(e.illegal=gZ(...e.illegal))}function _1n(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 S1n(e,t){e.relevance===void 0&&(e.relevance=1)}const E1n=(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=jv(n.beforeMatch,EDe(n.begin)),e.starts={relevance:0,contains:[Object.assign(n,{endsParent:!0})]},e.relevance=0,delete n.beforeMatch},C1n=["of","and","for","in","not","or","if","then","parent","list","value"],x1n="keyword";function RDe(e,t,n=x1n){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,RDe(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,w1n(l[0],l[1])]})}}function w1n(e,t){return t?Number(t):T1n(e)?0:1}function T1n(e){return C1n.includes(e.toLowerCase())}const the={},T1=e=>{console.error(e)},nhe=(e,...t)=>{console.log(`WARN: ${e}`,...t)},Sb=(e,t)=>{the[`${e}/${t}`]||(console.log(`Deprecated as of ${e}. ${t}`),the[`${e}/${t}`]=!0)},Ik=new Error;function ADe(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+=CDe(t[s-1]);e[n]=a,e[n]._emit=o,e[n]._multi=!0}function O1n(e){if(Array.isArray(e.begin)){if(e.skip||e.excludeBegin||e.returnBegin)throw T1("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),Ik;if(typeof e.beginScope!="object"||e.beginScope===null)throw T1("beginScope must be object"),Ik;ADe(e,e.begin,{key:"beginScope"}),e.begin=vZ(e.begin,{joinWith:""})}}function R1n(e){if(Array.isArray(e.end)){if(e.skip||e.excludeEnd||e.returnEnd)throw T1("skip, excludeEnd, returnEnd not compatible with endScope: {}"),Ik;if(typeof e.endScope!="object"||e.endScope===null)throw T1("endScope must be object"),Ik;ADe(e,e.end,{key:"endScope"}),e.end=vZ(e.end,{joinWith:""})}}function A1n(e){e.scope&&typeof e.scope=="object"&&e.scope!==null&&(e.beginScope=e.scope,delete e.scope)}function I1n(e){A1n(e),typeof e.beginScope=="string"&&(e.beginScope={_wrap:e.beginScope}),typeof e.endScope=="string"&&(e.endScope={_wrap:e.endScope}),O1n(e),R1n(e)}function N1n(e){function t(a,s){return new RegExp(ET(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+=CDe(s)+1}compile(){this.regexes.length===0&&(this.exec=()=>null);const s=this.regexes.map(l=>l[1]);this.matcherRe=t(vZ(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;[v1n,_1n,I1n,E1n].forEach(u=>u(a,s)),e.compilerExtensions.forEach(u=>u(a,s)),a.__beforeBegin=null,[b1n,y1n,S1n].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=RDe(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=ET(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 M1n(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 IDe(e){return e?e.endsWithParent||IDe(e.starts):!1}function M1n(e){return e.variants&&!e.cachedVariants&&(e.cachedVariants=e.variants.map(function(t){return Um(e,{variants:null},t)})),e.cachedVariants?e.cachedVariants:IDe(e)?Um(e,{starts:e.starts?Um(e.starts):null}):Object.isFrozen(e)?Um(e):e}var k1n="11.11.1";class P1n extends Error{constructor(t,n){super(t),this.name="HTMLInjectionError",this.html=n}}const O7=SDe,rhe=Um,ihe=Symbol("nomatch"),D1n=7,NDe=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:q0n};function l(k){return s.noHighlightRe.test(k)}function c(k){let P=k.className+" ";P+=k.parentNode?k.parentNode.className:"";const B=s.languageDetectRe.exec(P);if(B){const G=w(B[1]);return G||(nhe(o.replace("{}",B[1])),nhe("Falling back to no-highlight mode for this block.",k)),G?B[1]:"no-highlight"}return P.split(/\s+/).find(G=>l(G)||w(G))}function u(k,P,B){let G="",L="";typeof P=="object"?(G=k,B=P.ignoreIllegals,L=P.language):(Sb("10.7.0","highlight(lang, code, ...args) has been deprecated."),Sb("10.7.0",`Please use highlight(code, options) instead.
https://github.com/highlightjs/highlight.js/issues/2277`),L=k,G=P),B===void 0&&(B=!0);const W={code:G,language:L};D("before:highlight",W);const j=W.result?W.result:d(W.language,W.code,B);return j.code=W.code,D("after:highlight",j),j}function d(k,P,B,G){const L=Object.create(null);function W(q,U){return q.keywords[U]}function j(){if(!be.keywords){we.addText(de);return}let q=0;be.keywordPatternRe.lastIndex=0;let U=be.keywordPatternRe.exec(de),Y="";for(;U;){Y+=de.substring(q,U.index);const ae=ce.case_insensitive?U[0].toLowerCase():U[0],ye=W(be,ae);if(ye){const[fe,Ae]=ye;if(we.addText(Y),Y="",L[ae]=(L[ae]||0)+1,L[ae]<=D1n&&(Ee+=Ae),fe.startsWith("_"))Y+=U[0];else{const We=ce.classNameAliases[fe]||fe;Q(U[0],We)}}else Y+=U[0];q=be.keywordPatternRe.lastIndex,U=be.keywordPatternRe.exec(de)}Y+=de.substring(q),we.addText(Y)}function H(){if(de==="")return;let q=null;if(typeof be.subLanguage=="string"){if(!t[be.subLanguage]){we.addText(de);return}q=d(be.subLanguage,de,!0,xe[be.subLanguage]),xe[be.subLanguage]=q._top}else q=p(de,be.subLanguage.length?be.subLanguage:null);be.relevance>0&&(Ee+=q.relevance),we.__addSublanguage(q._emitter,q.language)}function X(){be.subLanguage!=null?H():j(),de=""}function Q(q,U){q!==""&&(we.startScope(U),we.addText(q),we.endScope())}function ue(q,U){let Y=1;const ae=U.length-1;for(;Y<=ae;){if(!q._emit[Y]){Y++;continue}const ye=ce.classNameAliases[q[Y]]||q[Y],fe=U[Y];ye?Q(fe,ye):(de=fe,j(),de=""),Y++}}function ee(q,U){return q.scope&&typeof q.scope=="string"&&we.openNode(ce.classNameAliases[q.scope]||q.scope),q.beginScope&&(q.beginScope._wrap?(Q(de,ce.classNameAliases[q.beginScope._wrap]||q.beginScope._wrap),de=""):q.beginScope._multi&&(ue(q.beginScope,U),de="")),be=Object.create(q,{parent:{value:be}}),be}function K(q,U,Y){let ae=X0n(q.endRe,Y);if(ae){if(q["on:end"]){const ye=new Zpe(q);q["on:end"](U,ye),ye.isMatchIgnored&&(ae=!1)}if(ae){for(;q.endsParent&&q.parent;)q=q.parent;return q}}if(q.endsWithParent)return K(q.parent,U,Y)}function se(q){return be.matcher.regexIndex===0?(de+=q[0],1):(Ve=!0,0)}function le(q){const U=q[0],Y=q.rule,ae=new Zpe(Y),ye=[Y.__beforeBegin,Y["on:begin"]];for(const fe of ye)if(fe&&(fe(q,ae),ae.isMatchIgnored))return se(U);return Y.skip?de+=U:(Y.excludeBegin&&(de+=U),X(),!Y.returnBegin&&!Y.excludeBegin&&(de=U)),ee(Y,q),Y.returnBegin?0:U.length}function oe(q){const U=q[0],Y=P.substring(q.index),ae=K(be,q,Y);if(!ae)return ihe;const ye=be;be.endScope&&be.endScope._wrap?(X(),Q(U,be.endScope._wrap)):be.endScope&&be.endScope._multi?(X(),ue(be.endScope,q)):ye.skip?de+=U:(ye.returnEnd||ye.excludeEnd||(de+=U),X(),ye.excludeEnd&&(de=U));do be.scope&&we.closeNode(),!be.skip&&!be.subLanguage&&(Ee+=be.relevance),be=be.parent;while(be!==ae.parent);return ae.starts&&ee(ae.starts,q),ye.returnEnd?0:U.length}function ne(){const q=[];for(let U=be;U!==ce;U=U.parent)U.scope&&q.unshift(U.scope);q.forEach(U=>we.openNode(U))}let he={};function me(q,U){const Y=U&&U[0];if(de+=q,Y==null)return X(),0;if(he.type==="begin"&&U.type==="end"&&he.index===U.index&&Y===""){if(de+=P.slice(U.index,U.index+1),!i){const ae=new Error(`0 width match regex (${k})`);throw ae.languageName=k,ae.badRule=he.rule,ae}return 1}if(he=U,U.type==="begin")return le(U);if(U.type==="illegal"&&!B){const ae=new Error('Illegal lexeme "'+Y+'" for mode "'+(be.scope||"<unnamed>")+'"');throw ae.mode=be,ae}else if(U.type==="end"){const ae=oe(U);if(ae!==ihe)return ae}if(U.type==="illegal"&&Y==="")return de+=`
`,1;if(Te>1e5&&Te>U.index*3)throw new Error("potential infinite loop, way more iterations than matches");return de+=Y,Y.length}const ce=w(k);if(!ce)throw T1(o.replace("{}",k)),new Error('Unknown language: "'+k+'"');const re=N1n(ce);let ve="",be=G||re;const xe={},we=new s.__emitter(s);ne();let de="",Ee=0,Ne=0,Te=0,Ve=!1;try{if(ce.__emitTokens)ce.__emitTokens(P,we);else{for(be.matcher.considerAll();;){Te++,Ve?Ve=!1:be.matcher.considerAll(),be.matcher.lastIndex=Ne;const q=be.matcher.exec(P);if(!q)break;const U=P.substring(Ne,q.index),Y=me(U,q);Ne=q.index+Y}me(P.substring(Ne))}return we.finalize(),ve=we.toHTML(),{language:k,value:ve,relevance:Ee,illegal:!1,_emitter:we,_top:be}}catch(q){if(q.message&&q.message.includes("Illegal"))return{language:k,value:O7(P),illegal:!0,relevance:0,_illegalBy:{message:q.message,index:Ne,context:P.slice(Ne-100,Ne+100),mode:q.mode,resultSoFar:ve},_emitter:we};if(i)return{language:k,value:O7(P),illegal:!1,relevance:0,errorRaised:q,_emitter:we,_top:be};throw q}}function f(k){const P={value:O7(k),illegal:!1,relevance:0,_top:a,_emitter:new s.__emitter(s)};return P._emitter.addText(k),P}function p(k,P){P=P||s.languages||Object.keys(t);const B=f(k),G=P.filter(w).filter(T).map(X=>d(X,k,!1));G.unshift(B);const L=G.sort((X,Q)=>{if(X.relevance!==Q.relevance)return Q.relevance-X.relevance;if(X.language&&Q.language){if(w(X.language).supersetOf===Q.language)return 1;if(w(Q.language).supersetOf===X.language)return-1}return 0}),[W,j]=L,H=W;return H.secondBest=j,H}function m(k,P,B){const G=P&&n[P]||B;k.classList.add("hljs"),k.classList.add(`language-${G}`)}function g(k){let P=null;const B=c(k);if(l(B))return;if(D("before:highlightElement",{el:k,language:B}),k.dataset.highlighted){console.log("Element previously highlighted. To highlight again, first unset `dataset.highlighted`.",k);return}if(k.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(k)),s.throwUnescapedHTML))throw new P1n("One of your code blocks includes unescaped HTML.",k.innerHTML);P=k;const G=P.textContent,L=B?u(G,{language:B,ignoreIllegals:!0}):p(G);k.innerHTML=L.value,k.dataset.highlighted="yes",m(k,B,L.language),k.result={language:L.language,re:L.relevance,relevance:L.relevance},L.secondBest&&(k.secondBest={language:L.secondBest.language,relevance:L.secondBest.relevance}),D("after:highlightElement",{el:k,result:L,text:G})}function v(k){s=rhe(s,k)}const y=()=>{S(),Sb("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")};function b(){S(),Sb("10.6.0","initHighlightingOnLoad() deprecated. Use highlightAll() now.")}let _=!1;function S(){function k(){S()}if(document.readyState==="loading"){_||window.addEventListener("DOMContentLoaded",k,!1),_=!0;return}document.querySelectorAll(s.cssSelector).forEach(g)}function x(k,P){let B=null;try{B=P(e)}catch(G){if(T1("Language definition for '{}' could not be registered.".replace("{}",k)),i)T1(G);else throw G;B=a}B.name||(B.name=k),t[k]=B,B.rawDefinition=P.bind(null,e),B.aliases&&O(B.aliases,{languageName:k})}function E(k){delete t[k];for(const P of Object.keys(n))n[P]===k&&delete n[P]}function C(){return Object.keys(t)}function w(k){return k=(k||"").toLowerCase(),t[k]||t[n[k]]}function O(k,{languageName:P}){typeof k=="string"&&(k=[k]),k.forEach(B=>{n[B.toLowerCase()]=P})}function T(k){const P=w(k);return P&&!P.disableAutodetect}function A(k){k["before:highlightBlock"]&&!k["before:highlightElement"]&&(k["before:highlightElement"]=P=>{k["before:highlightBlock"](Object.assign({block:P.el},P))}),k["after:highlightBlock"]&&!k["after:highlightElement"]&&(k["after:highlightElement"]=P=>{k["after:highlightBlock"](Object.assign({block:P.el},P))})}function I(k){A(k),r.push(k)}function N(k){const P=r.indexOf(k);P!==-1&&r.splice(P,1)}function D(k,P){const B=k;r.forEach(function(G){G[B]&&G[B](P)})}function M(k){return Sb("10.7.0","highlightBlock will be removed entirely in v12.0"),Sb("10.7.0","Please use highlightElement now."),g(k)}Object.assign(e,{highlight:u,highlightAuto:p,highlightAll:S,highlightElement:g,highlightBlock:M,configure:v,initHighlighting:y,initHighlightingOnLoad:b,registerLanguage:x,unregisterLanguage:E,listLanguages:C,getLanguage:w,registerAliases:O,autoDetection:T,inherit:rhe,addPlugin:I,removePlugin:N}),e.debugMode=function(){i=!1},e.safeMode=function(){i=!0},e.versionString=k1n,e.regex={concat:jv,lookahead:EDe,either:gZ,optional:K0n,anyNumberOfTimes:Y0n};for(const k in OA)typeof OA[k]=="object"&&_De(OA[k]);return Object.assign(e,OA),e},K_=NDe({});K_.newInstance=()=>NDe({});var L1n=K_;K_.HighlightJS=K_;K_.default=K_;const $1n=h8(L1n),ohe={},F1n="hljs-";function B1n(e){const t=$1n.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||ohe,f=typeof d.prefix=="string"?d.prefix:F1n;if(!t.getLanguage(l))throw new Error("Unknown language: `"+l+"` is not registered");t.configure({__emitter:H1n,classPrefix:f});const p=t.highlight(c,{ignoreIllegals:!0,language:l});if(p.errorRaised)throw new Error("Could not highlight with `Highlight.js`",{cause:p.errorRaised});const m=p._emitter.root,g=m.data;return g.language=p.language,g.relevance=p.relevance,m}function r(l,c){const u=(c||ohe).subset||i();let d=-1,f=0,p;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,p=g)}return p||{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 H1n{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 j1n=/!\[(.+|:?)]\((\S+)(?:(?:\s+)["'](\S+)["'])?\)/,ahe=new Bi("aie-video-plugin"),iC="video_action",U1n=To.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"}`},autoplay:{default:null,parseHTML:e=>e.hasAttribute("autoplay")?"true":null,renderHTML:e=>e.autoplay?{autoplay:"autoplay"}:{}},loop:{default:null,parseHTML:e=>e.hasAttribute("loop")?"true":null,renderHTML:e=>e.loop?{loop:"loop"}:{}},muted:{default:null,parseHTML:e=>e.hasAttribute("muted")?"true":null,renderHTML:e=>e.muted?{muted:"muted"}:{}},preload:{default:null,parseHTML:e=>e.getAttribute("preload"),renderHTML:e=>e.preload?{preload:e.preload}:{}}}},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=g8(),{state:{tr:r},view:i,schema:o}=this.editor;r.selection.empty||r.deleteSelection(),i.dispatch(r.setMeta(iC,{type:"add",id:n,pos:r.selection.from}));const a=this.options.uploader||eZ(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=ahe.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",autoplay:l.data.autoplay,loop:l.data.loop,muted:l.data.muted,preload:l.data.preload})).setMeta(iC,{type:"remove",id:n}))}else i.dispatch(r.setMeta(iC,{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(iC,{type:"remove",id:n})),this.options.uploaderEvent&&this.options.uploaderEvent.onError&&this.options.uploaderEvent.onError(e,l)}),!0}}},addNodeView(){return e=>{const{src:t,width:n,align:r,controls:i,poster:o,autoplay:a,loop:s,muted:l,preload:c}=e.node.attrs;if(!this.editor.isEditable){const f=document.createElement("video");f.setAttribute("width",n),f.classList.add(`align-${r}`);const p=document.createElement("source");return p.setAttribute("src",t),i!=="false"&&f.setAttribute("controls","controls"),o&&f.setAttribute("poster",o),a&&f.setAttribute("autoplay","autoplay"),s&&f.setAttribute("loop","loop"),l&&(f.setAttribute("muted","muted"),f.muted=!0),c&&f.setAttribute("preload",c),f.appendChild(p),{dom:f}}const u=['class="resize-obj"',i!=="false"?'controls="controls"':"",n?`width="${n}"`:"",o?`poster="${o}"`:"",a?'autoplay="autoplay"':"",s?'loop="loop"':"",l?'muted="muted"':"",c?`preload="${c}"`:""].filter(Boolean).join(" "),d=document.createElement("div");return d.classList.add(`align-${r}`),d.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 ${u}>
<source src="${t}">
</video>
</div>
`,EPe(d,this.editor.view.dom,f=>this.editor.commands.updateAttributes("video",f)),{dom:d}}},addInputRules(){return[UX({find:j1n,type:this.type,getAttributes:e=>{const[,,t]=e;return{src:t}}})]},addProseMirrorPlugins(){const e=this.editor;return[new Ei({key:ahe,state:{init:()=>xi.empty,apply:(t,n)=>{const r=t.getMeta(iC);return n=n.map(t.mapping,t.doc),r&&r.type==="add"?n=n.add(t.doc,[SPe(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(Xn.create(o,s.pos)).scrollIntoView()),r.forEach(l=>{e.commands.uploadVideo(l)}),!0}}}})]}}),z1n=To.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 V1n{constructor({editor:t,element:n,view:r,tippyOptions:i={},updateDelay:o=250,updateAtMouseUp:a=!1,shouldShow:s}){Qt(this,"editor"),Qt(this,"element"),Qt(this,"view"),Qt(this,"preventHide",!1),Qt(this,"tippy"),Qt(this,"tippyOptions"),Qt(this,"updateDelay"),Qt(this,"updateDebounceTimer"),Qt(this,"updateInMouseUp",!1),Qt(this,"shouldShow",({view:l,state:c,from:u,to:d})=>{const{doc:f,selection:p}=c,{empty:m}=p,g=!f.textBetween(u,d).length&&BX(c.selection),v=this.element.contains(document.activeElement);return!(!(l.hasFocus()||v)||m||g||!this.editor.isEditable)}),Qt(this,"mousedownHandler",()=>{this.preventHide=!0}),Qt(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)})}),Qt(this,"dragstartHandler",()=>{this.hide()}),Qt(this,"focusHandler",()=>{setTimeout(()=>this.update(this.editor.view))}),Qt(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()}),Qt(this,"tippyBlurHandler",l=>{this.blurHandler({event:l})}),Qt(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))}),Qt(this,"updateHandler",(l,c,u,d)=>{var f,p,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(x=>x.$from.pos)),S=Math.max(...b.map(x=>x.$to.pos));if(!((f=this.shouldShow)!=null&&f.call(this,{editor:this.editor,view:l,state:g,oldState:d,from:_,to:S}))){this.hide();return}(m=this.tippy)==null||m.setProps({getReferenceClientRect:((p=this.tippyOptions)==null?void 0:p.getReferenceClientRect)||(()=>{if(D5e(g.selection)){let x=l.nodeDOM(_);const E=x.dataset.nodeViewWrapper?x:x.querySelector("[data-node-view-wrapper]");if(E&&(x=E.firstChild),x)return x.getBoundingClientRect()}return dT(l,_,S)})}),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=xo(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,p=u==i.doc.content.size-1;if(!d&&!f&&!p){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 G1n=e=>new Ei({key:typeof e.pluginKey=="string"?new Bi(e.pluginKey):e.pluginKey,view:t=>new V1n({view:t,...e})});class S8 extends HTMLElement{constructor(){super(),Qt(this,"editor"),Qt(this,"items",[]),Qt(this,"tippyInstance"),Qt(this,"activeOnClick",!0)}isActive(t){var n;return t.isActive?t.isActive(this.editor.aiEditor):(n=this.editor)==null?void 0:n.isActive(t.id)}refreshActive(){for(let t of this.items){const n=this.querySelector(`#${t.id}`);n&&(this.isActive(t)?n.classList.add("active"):n.classList.remove("active"))}}connectedCallback(){var t;this.innerHTML=`
<div class="aie-bubble-menu">
${this.items.map(n=>`<div class="aie-bubble-menu-item ${this.isActive(n)?"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&&xo(n,{appendTo:this.closest(".aie-container"),content:cr(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 W1n={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 gO;r.setContent(`
<div style="width: 250px">${cr("link-address")} </div>
<div style="width: 250px">
<input type="text" id="href" style="width: 250px">
</div>
<div style="margin-top: 10px">${cr("link-open-type")}</div>
<div>
<select id="target" style="width: 250px">
<option value="">${cr("default")}</option>
<option value="_blank">${cr("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")}},q1n={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()}},Y1n={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 yZ{constructor(t){Qt(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 K1n=new yZ([W1n,q1n,Y1n]);class Q1n extends S8{constructor(){super()}onCreate(t,n){var r;super.onCreate(t,n),this.initItemsByOptions(K1n,(r=n==null?void 0:n.link)==null?void 0:r.bubbleMenuItems),this.activeOnClick=!1}}const X1n={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()}},Z1n={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()}},J1n={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()}},evn={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()}},tvn={id:"imageLink",title:"link",icon:'<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>',isActive:e=>{const t=e==null?void 0:e.getAttributes("image");return!!(t&&t.href)},onInit:({innerEditor:e},t,n)=>{const r=new gO;r.setContent(`
<div style="width: 250px">${cr("link-address")}</div>
<div style="width: 250px">
<input type="text" id="href" style="width: 250px">
</div>
<div style="margin-top: 10px">${cr("link-open-type")}</div>
<div>
<select id="target" style="width: 250px">
<option value="">${cr("default")}</option>
<option value="_blank">${cr("link-open-blank")}</option>
</select>
</div>
`),r.cancelText=`<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>
${cr("unlink")}`,r.onCancelClick(()=>{e.chain().updateAttributes("image",{href:null,target:null}).run()}),r.onConfirmClick(i=>{const o=i.popper.querySelector("#href").value;if(o.trim()===""){e.chain().updateAttributes("image",{href:null}).run();return}let a=i.popper.querySelector("#target").value;a.trim()===""&&(a=null),e.chain().updateAttributes("image",{href:o,target:a}).run()}),r.onShow(i=>{const o=e==null?void 0:e.getAttributes("image");o&&o.href?i.popper.querySelector("#href").value=o.href:i.popper.querySelector("#href").value="",o&&o.target?i.popper.querySelector("#target").value=o.target:i.popper.querySelector("#target").value=""}),r.setTrigger(n.querySelector("#imageLink"),"bottom")}},nvn={id:"imageProperty",title:"image-property",icon:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><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"></path></svg>',onInit:({innerEditor:e},t,n)=>{const r=new gO;r.setContent(`
<div style="width: 250px">Alt</div>
<div style="width: 250px">
<input type="text" id="alt" style="width: 250px">
</div>
<div style="width: 250px;margin-top: 10px">Title</div>
<div style="width: 250px">
<input type="text" id="title" style="width: 250px">
</div>
<div style="margin-top: 10px">${cr("image-size")}</div>
<div>
<select id="width" style="width: 250px">
<option value="">${cr("image-keep-current")}</option>
<option value="auto">${cr("image-original-size")}</option>
<option value="30%">30%</option>
<option value="50%">50%</option>
<option value="75%">75%</option>
<option value="100%">100%</option>
</select>
</div>
`),r.onConfirmClick(i=>{const o=i.popper.querySelector("#alt").value,a=i.popper.querySelector("#title").value;e.chain().updateAttributes("image",{alt:o,title:a}).run();let s=i.popper.querySelector("#width").value;s&&e.chain().updateAttributes("image",{width:s}).run()}),r.onShow(i=>{const o=e==null?void 0:e.getAttributes("image");o&&(i.popper.querySelector("#alt").value=o.alt||"",i.popper.querySelector("#title").value=o.title||"")}),r.setTrigger(n.querySelector("#imageProperty"),"bottom")}},rvn=new yZ([X1n,Z1n,J1n,tvn,nvn,evn]);class ivn extends S8{constructor(){super()}onCreate(t,n){var r;super.onCreate(t,n),this.initItemsByOptions(rvn,(r=n==null?void 0:n.image)==null?void 0:r.bubbleMenuItems),this.activeOnClick=!1}onTransaction(t){t.editor.isActive("image")&&this.refreshActive()}}const MDe=class uG{constructor(){Qt(this,"historyColors",[]),Qt(this,"editor"),Qt(this,"onClose");const t=localStorage.getItem(uG.historyColorsKey);t&&(this.historyColors=JSON.parse(t))}static getLastUsedColor(){const t=localStorage.getItem(this.historyColorsKey);if(t){const n=JSON.parse(t);return n.length>0?n[0]:null}return null}createColorPicker(){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" style=“cursor:pointer;”>${cr("default")}</div>
<div style="display: flex;flex-wrap: wrap;padding-top: 5px">
${oPe.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">${cr("standardColors")}</div>
<div style="display: flex;flex-wrap: wrap;">
${aPe.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">${cr("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.handleDefaultColor()}),t.querySelectorAll(".color-item").forEach(n=>{n.addEventListener("click",()=>{const r=n.getAttribute("data-color");this.handleColorSelect(r)}),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");if(r){const i=r.getAttribute("data-color");this.handleColorSelect(i)}}),t}handleColorSelect(t){this.editor&&(this.editor.chain().setCellAttribute("backgroundColor",t).run(),this.onClose&&this.onClose(t),this.updateHistoryColors(t))}handleDefaultColor(){this.editor&&(this.editor.chain().setCellAttribute("backgroundColor","").run(),this.onClose&&this.onClose())}updateHistoryColors(t){this.historyColors=[t,...this.historyColors.filter(n=>n!==t)].slice(0,7),localStorage.setItem(uG.historyColorsKey,JSON.stringify(this.historyColors))}};Qt(MDe,"historyColorsKey","cellBackgroundHistoryColors");let R7=MDe;class ovn extends S8{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()}},{id:"cell-background-color",title:"highlight",icon:`
<div class="table-bubble-menu colors-menu">
<div class="currentColor">
<div class="colors-menu-icon">
<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>
</div>
<style>
</style>
<div class="colors-menu-status" id="cellBgColorStatus"></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>
`.trim(),onInit:(t,n,r)=>{const i=R7.getLastUsedColor()||"",o=r.querySelector("#cellBgColorStatus");o&&(o.style.backgroundColor=i)},onClick:({innerEditor:t},n,r,i)=>{const o=window.event.target,a=r.querySelector("#cell-background-color"),s=o.closest("#dropdown"),l=o.closest(".colors-menu-icon");if(s){const c=new R7;c.editor=t;const u=c.createColorPicker(),d=xo(a,{content:u,placement:"bottom",trigger:"manual",arrow:!1,interactive:!0,appendTo:t.aiEditor.container,onHide(){setTimeout(()=>{d.destroy()},0)}});c.onClose=f=>{d.hide();const p=r.querySelector("#cellBgColorStatus");p&&(p.style.backgroundColor=f||"")},d.show()}else if(l){const c=R7.getLastUsedColor();t==null||t.chain().setCellAttribute("backgroundColor",c).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","cell-background-color"];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","cell-background-color"]):this.isRowSelected(n,r)?this.showItems(["insert-row-top","insert-row-bottom","delete-row","merge-cells-horizontal","cell-background-color"]):this.showItems(["merge-cells-horizontal","cell-background-color"]);else this.showItems(["insert-column-left","insert-column-right","delete-column","insert-row-top","insert-row-bottom","delete-row","cell-background-color"])}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=Io.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 Nk={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 kDe{constructor(t,n){Qt(this,"delay"),Qt(this,"appending",!1),Qt(this,"isFinished",!1),Qt(this,"textarea"),Qt(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 PDe=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=dT(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=dT(t,r,r);return{...a,height:a.height-10}}},avn=[{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"}],she=(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=Eg.get((r=c.ai)==null?void 0:r.bubblePanelModel);if(u){const d=new kDe(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=Nk.aiPanelStop},onStop(){e.aiClient=void 0,t.querySelector("#go").innerHTML=Nk.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"')}},svn=(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">${Nk.refresh}</div><textarea readonly></textarea></div>
<div class="aie-ai-panel-body-input"><input id="prompt" placeholder="${cr("placeholder-tell-ai-what-to-do-next")}" type="text" />
<button type="button" id="go" style="width: 30px;height: 30px">${Nk.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>
${cr("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">${cr("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>
${cr("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>
${cr("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>
${cr("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">${cr("you-can-do-the-following")}</div>
${t.map(r=>typeof r=="string"?r:`<p data-prompt="${r.prompt}">${r.icon} ${cr(r.title)} </p>`).join("")}
</div>
`,n.querySelector("#replace").addEventListener("click",()=>{var r,i,o;const a=n.querySelector("textarea");a.value&&((r=e.editor)==null||r.insertMarkdown(a.value),(i=e.aiPanelInstance)==null||i.hide(),(o=e.tippyInstance)==null||o.show())}),n.querySelector("#insert").addEventListener("click",()=>{var r,i,o,a;const s=n.querySelector("textarea");if(s.value){const{state:{selection:l,doc:c}}=e.editor;(r=e.editor)==null||r.commands.setTextSelection(Xn.create(c,l.to)),(i=e.editor)==null||i.insertMarkdown(s.value),(o=e.aiPanelInstance)==null||o.hide(),l.from!=l.to&&((a=e.tippyInstance)==null||a.show())}}),n.querySelector("#hide").addEventListener("click",()=>{var r,i;(r=e.aiPanelInstance)==null||r.hide();const{state:{selection:o}}=e.editor;o.from!=o.to&&((i=e.tippyInstance)==null||i.show())}),n.querySelector("#go").addEventListener("click",()=>{const r=n.querySelector("#prompt").value;she(e,n,r)}),n.querySelectorAll(".aie-ai-panel-actions p").forEach(r=>{const i=r.getAttribute("data-prompt");r.addEventListener("click",()=>{she(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},lvn={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)||avn;return i.aiPanelInstance=xo(n.querySelector("#ai"),{content:svn(i,o),appendTo:e.view.dom.closest(".aie-container"),trigger:"click",interactive:!0,arrow:!1,placement:"bottom",getReferenceClientRect:()=>PDe(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()}},cvn={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()}},uvn={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()}},dvn={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()}},fvn={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()}},pvn={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()}},hvn=[{title:"英语"},{title:"中文"},{title:"日语"},{title:"法语"},{title:"德语"},{title:"葡萄牙语"},{title:"西班牙语"}],mvn=(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=Eg.get("auto");if(d){const f=new kDe(30,n);d.chat("",u,{onStart(p){e.aiClient=p},onStop(){e.aiClient=void 0,f.finished()},onMessage(p){f.appendText(p.content)}})}else console.error("AI model name config error.")}},gvn=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>
${cr("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>
${cr("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>
${cr("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(Xn.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},vvn=(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}">${cr(i)} </p>`:`<p data-lang="${i.language||i.title}">${cr(i.title)} </p>`).join("")}
</div>
`;const r=e.editor.view.dom.closest(".aie-container");return e.translateResultInstance=xo(n,{content:gvn(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(),mvn(e,s,l)},onUntrigger:i=>{i.enable()}}),n},bvn={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)||hvn;return o.translatePanelInstance=xo(n.querySelector("#translate"),{content:vvn(o,a),appendTo:e.view.dom.closest(".aie-container"),placement:"bottom",trigger:"click",interactive:!0,arrow:!1}),o}},yvn=new yZ([lvn,cvn,pvn,uvn,fvn,bvn,dvn]),_vn=(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 Svn extends S8{constructor(){super()}onCreate(t,n){var r,i,o,a;if(super.onCreate(t,n),this.initItemsByOptions(yvn,(r=n==null?void 0:n.textSelectionBubbleMenu)==null?void 0:r.items),((i=n.ai)==null?void 0:i.bubblePanelEnable)===!1)_vn(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}}}}Cr("aie-bubble-link",Q1n);Cr("aie-bubble-image",ivn);Cr("aie-bubble-table",ovn);Cr("aie-bubble-text",Svn);function E8(e,t){return yi.create({name:e,addOptions(){return{...t}},addProseMirrorPlugins(){return this.options.element?[G1n({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 Evn=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),E8("textSelectionBubble",{pluginKey:"textSelectionBubble",element:r,updateDelay:0,updateAtMouseUp:!0,tippyOptions:{appendTo:e.container,arrow:!1,placement:"bottom",getReferenceClientRect:()=>PDe(e.innerEditor),onCreate(i){r.instance=i}},shouldShow:({editor:i})=>{if(!i.isEditable)return!1;const{state:{selection:o}}=i;return!o.empty&&l8(i.state.doc,{from:o.from,to:o.to}).trim().length>0&&!i.isActive("link")&&!i.isActive("image")&&!i.isActive("codeBlock")&&!(o instanceof Ti)}})},Cvn=e=>{const t=document.createElement("aie-bubble-link");return e.eventComponents.push(t),E8("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")})},xvn=e=>{const t=document.createElement("aie-bubble-image");return e.eventComponents.push(t),E8("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=dT(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")})},wvn=e=>{const t=document.createElement("aie-bubble-table");return e.eventComponents.push(t),E8("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(l=>l.$from.pos)),o=Math.max(...r.map(l=>l.$to.pos)),{view:a}=e.innerEditor,s=dT(a,i,o);return{...s,top:s.top}}},shouldShow:({editor:n})=>{const{state:{selection:r}}=n;return n.isEditable&&n.isActive("table")&&r instanceof Ti}})},Tvn=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(Evn(e)),r.push(Cvn(e)),((n=e.options.image)==null?void 0:n.bubbleMenuEnable)!==!1&&r.push(xvn(e)),r.push(wvn(e))),r},Ovn=yi.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 Bi("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&&d8(a);if((l||!this.options.showOnlyCurrent)&&c){const u=[this.options.emptyNodeClass];o&&u.push(this.options.emptyEditorClass);const d=ra.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}),xi.create(e,i)}}})]}});function Rvn(e){var t;const{char:n,allowSpaces:r,allowToIncludeChar:i,allowedPrefixes:o,startOfLine:a,$position:s}=e,l=r&&!i,c=Ron(n),u=new RegExp(`\\s${c}$`),d=a?"^":"",f=i?"":c,p=l?new RegExp(`${d}${c}.*?(?=\\s${f}|$)`,"gm"):new RegExp(`${d}(?:^)?${c}[^\\s${f}]*`,"gm"),m=((t=s.nodeBefore)===null||t===void 0?void 0:t.isText)&&s.nodeBefore.text;if(!m)return null;const g=s.pos-m.length,v=Array.from(m.matchAll(p)).pop();if(!v||v.input===void 0||v.index===void 0)return null;const y=v.input.slice(Math.max(0,v.index-1),v.index),b=new RegExp(`^[${o==null?void 0:o.join("")}\0]?$`).test(y);if(o!==null&&!b)return null;const _=g+v.index;let S=_+v[0].length;return l&&u.test(m.slice(S-1,S+1))&&(v[0]+=" ",S+=1),_<s.pos&&S>=s.pos?{range:{from:_,to:S},query:v[0].slice(n.length),text:v[0]}:null}const Avn=new Bi("suggestion");function DDe({pluginKey:e=Avn,editor:t,char:n="@",allowSpaces:r=!1,allowToIncludeChar:i=!1,allowedPrefixes:o=[" "],startOfLine:a=!1,decorationTag:s="span",decorationClass:l="suggestion",command:c=()=>null,items:u=()=>[],render:d=()=>({}),allow:f=()=>!0,findSuggestionMatch:p=Rvn}){let m;const g=d==null?void 0:d(),v=new Ei({key:e,view(){return{update:async(y,b)=>{var _,S,x,E,C,w,O;const T=(_=this.key)===null||_===void 0?void 0:_.getState(b),A=(S=this.key)===null||S===void 0?void 0:S.getState(y.state),I=T.active&&A.active&&T.range.from!==A.range.from,N=!T.active&&A.active,D=T.active&&!A.active,M=!N&&!D&&T.query!==A.query,k=N||I&&M,P=M||I,B=D||I&&M;if(!k&&!P&&!B)return;const G=B&&!k?T:A,L=y.dom.querySelector(`[data-decoration-id="${G.decorationId}"]`);m={editor:t,range:G.range,query:G.query,text:G.text,items:[],command:W=>c({editor:t,range:G.range,props:W}),decorationNode:L,clientRect:L?()=>{var W;const{decorationId:j}=(W=this.key)===null||W===void 0?void 0:W.getState(t.state),H=y.dom.querySelector(`[data-decoration-id="${j}"]`);return(H==null?void 0:H.getBoundingClientRect())||null}:null},k&&((x=g==null?void 0:g.onBeforeStart)===null||x===void 0||x.call(g,m)),P&&((E=g==null?void 0:g.onBeforeUpdate)===null||E===void 0||E.call(g,m)),(P||k)&&(m.items=await u({editor:t,query:G.query})),B&&((C=g==null?void 0:g.onExit)===null||C===void 0||C.call(g,m)),P&&((w=g==null?void 0:g.onUpdate)===null||w===void 0||w.call(g,m)),k&&((O=g==null?void 0:g.onStart)===null||O===void 0||O.call(g,m))},destroy:()=>{var y;m&&((y=g==null?void 0:g.onExit)===null||y===void 0||y.call(g,m))}}},state:{init(){return{active:!1,range:{from:0,to:0},query:null,text:null,composing:!1}},apply(y,b,_,S){const{isEditable:x}=t,{composing:E}=t.view,{selection:C}=y,{empty:w,from:O}=C,T={...b};if(T.composing=E,x&&(w||t.view.composing)){(O<b.range.from||O>b.range.to)&&!E&&!b.composing&&(T.active=!1);const A=p({char:n,allowSpaces:r,allowToIncludeChar:i,allowedPrefixes:o,startOfLine:a,$position:C.$from}),I=`id_${Math.floor(Math.random()*4294967295)}`;A&&f({editor:t,state:S,range:A.range,isActive:b.active})?(T.active=!0,T.decorationId=b.decorationId?b.decorationId:I,T.range=A.range,T.query=A.query,T.text=A.text):T.active=!1}else T.active=!1;return T.active||(T.decorationId=null,T.range={from:0,to:0},T.query=null,T.text=null),T}},props:{handleKeyDown(y,b){var _;const{active:S,range:x}=v.getState(y.state);return S&&((_=g==null?void 0:g.onKeyDown)===null||_===void 0?void 0:_.call(g,{view:y,event:b,range:x}))||!1},decorations(y){const{active:b,range:_,decorationId:S}=v.getState(y);return b?xi.create(y.doc,[ra.inline(_.from,_.to,{nodeName:s,class:l,"data-decoration-id":S})]):null}}});return v}const Ivn=new Bi("mention"),Nvn=To.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",Gr(this.HTMLAttributes,e.HTMLAttributes),`${e.suggestion.char}${(n=t.attrs.label)!==null&&n!==void 0?n:t.attrs.id}`]},suggestion:{char:"@",pluginKey:Ivn,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",Gr({"data-type":this.name},this.options.HTMLAttributes,t),this.options.renderLabel({options:this.options,node:e})];const n={...this.options};n.HTMLAttributes=Gr({"data-type":this.name},this.options.HTMLAttributes,t);const r=this.options.renderHTML({options:n,node:e});return typeof r=="string"?["span",Gr({"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[DDe({editor:this.editor,...this.options.suggestion})]}}),Mvn=e=>Nvn.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.label||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=xo("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()}}}}}),kvn=[{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"}],Pvn=yi.create({name:"aiCommand",addOptions(){const e=[{icon:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M13 6V21H11V6H5V4H19V6H13Z" fill="currentColor"></path></svg>',click:r=>{r.chain().setParagraph().run()}},{icon:'<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>',click:r=>{r.chain().setHeading({level:1}).run()}},{icon:'<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>',click:r=>{r.chain().setHeading({level:2}).run()}},{icon:' <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>',click:r=>{r.chain().setHeading({level:3}).run()}},{icon:'<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>',click:r=>{r.chain().toggleContainer("warning").run()}},{icon:'<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>',click:r=>{r.chain().toggleBlockquote().run()}},{icon:'<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>',click:r=>{r.chain().toggleBulletList().run()}},{icon:'<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>',click:r=>{r.chain().toggleOrderedList().run()}},{icon:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M3 4H21V6H3V4ZM3 19H17V21H3V19ZM3 14H21V16H3V14ZM3 9H17V11H3V9Z"></path></svg>',click:r=>{r.chain().setTextAlign("left").run()}},{icon:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M3 4H21V6H3V4ZM5 19H19V21H5V19ZM3 14H21V16H3V14ZM5 9H19V11H5V9Z"></path></svg>',click:r=>{r.chain().setTextAlign("center").run()}},{icon:'<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>',click:r=>{r.chain().toggleTaskList().run()}},{icon:'<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>',click:r=>{r.chain().toggleCodeBlock().run()}}],t=6,n=e.length-1;return{suggestion:{char:"/",command:({editor:r,range:i,props:o})=>{if(r.chain().focus().deleteRange(i).run(),o&&o.aiItem){const a=o.aiItem;if(a.onClick)a.onClick(o.event,r.aiEditor);else{const s=r.state.selection.$head.parent.textContent,l=a.model,c=Eg.get(a.model);c?c==null||c.chat(s,a.prompt,new JM(r)):console.error("Ai model config error. can not find the type:"+l+" at command menu")}}else e.length<o.index&&e[o.index].click(r)},render:()=>{let r,i,o=0,a;const s=()=>{r.innerHTML=`
<div class="ai-command-container">
<div class="ai-command-container-header">
${e.map((l,c)=>`<div class="ai-command-container-header-item item ${o===c?"active":""}" data-index="index">${l.icon}</div>`).join("")}
</div>
<hr/>
${a.items.map((l,c)=>`<div class="ai-command-container-item item ${o===n+1+c?"active":""}" data-index="${n+1+c}">${l.icon} ${l.name}</div>`).join("")}
</div>
`,r.addEventListener("click",l=>{const c=l.target.closest(".item");if(c){const u=Number(c.getAttribute("data-index"));a.command({index:u,event:l,aiItem:u>n?a.items[u-n-1]:null})}})};return{onStart:l=>{r=document.createElement("div"),r.classList.add("suggestion"),a=l,l.clientRect&&(s(),i=xo("body",{getReferenceClientRect:l.clientRect,appendTo:()=>l.editor.view.dom.closest(".aie-container"),content:r,showOnCreate:!0,interactive:!0,allowHTML:!0,trigger:"manual",placement:"right-start",arrow:!1})[0])},onUpdate(l){a=l,l.clientRect&&(i==null||i.setProps({getReferenceClientRect:l.clientRect}))},onKeyDown(l){return l.event.key==="Escape"?(i==null||i.hide(),!0):l.event.key==="ArrowUp"?(o<=n?(o-=t,o<0&&(o=n+a.items.length)):(o-=1,o<0&&(o=n+a.items.length)),s(),!0):l.event.key==="ArrowDown"?(o<n?(o+=t,o>n&&(o=n+1)):(o+=1,o>n+a.items.length&&(o=0)),s(),!0):l.event.key==="ArrowLeft"?(o-=1,o<0&&(o=n+a.items.length),s(),!0):l.event.key==="ArrowRight"?(o+=1,o>n+a.items.length&&(o=0),s(),!0):l.event.key==="Enter"?(a.command({index:o,event:l.event,aiItem:o>n?a.items[o-n-1]:null}),!0):!1},onExit(){i==null||i.destroy(),r.remove()}}}}}},addProseMirrorPlugins(){return[DDe({editor:this.editor,...this.options.suggestion})]}}),Dvn=yi.create({addProseMirrorPlugins(){const e=this.editor;return[new Ei({key:new Bi("selection-marker"),props:{decorations(t){return t.selection.empty||e.isFocused||!e.isEditable?null:xi.create(t.doc,[ra.inline(t.selection.from,t.selection.to,{class:"selection-marker"})])}}})]}}),LDe=["info","warning","danger"],Lvn=/^:::([a-z]+)?[\s\n]$/,$vn=To.create({name:"container",group:"block",content:"block+",defining:!0,addOptions(){return{HTMLAttributes:{class:"container-wrapper"},typeItems:LDe,defaultType:null}},addAttributes(){return{containerClass:{default:this.options.defaultType,parseHTML:e=>{for(let t of e.classList)if(t!="container-wrapper")return t},renderHTML:e=>({class:e.containerClass})}}},parseHTML(){return[{tag:"div.container-wrapper"}]},renderHTML({HTMLAttributes:e}){return["div",Gr(this.options.HTMLAttributes,e),0]},addCommands(){return{setContainer:e=>({commands:t})=>(e||(e=this.options.defaultType),t.wrapIn(this.name,{containerClass:e})),toggleContainer:e=>({commands:t})=>(e||(e=this.options.defaultType),t.toggleWrap(this.name,{containerClass:e})),unsetContainer:()=>({commands:e})=>e.lift(this.name)}},addInputRules(){return[rv({find:Lvn,type:this.type,getAttributes:e=>({containerClass:e[1]})})]},addNodeView(){return({node:e,editor:t})=>{const n=document.createElement("div");n.classList.add("container-wrapper"),n.classList.add(e.attrs.containerClass);let r=n,i=null;if(t.isEditable){n.style.position="relative",n.appendChild(f7(`<div class="aie-container-tools">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M12 2C17.5222 2 22 5.97778 22 10.8889C22 13.9556 19.5111 16.4444 16.4444 16.4444H14.4778C13.5556 16.4444 12.8111 17.1889 12.8111 18.1111C12.8111 18.5333 12.9778 18.9222 13.2333 19.2111C13.5 19.5111 13.6667 19.9 13.6667 20.3333C13.6667 21.2556 12.9 22 12 22C6.47778 22 2 17.5222 2 12C2 6.47778 6.47778 2 12 2ZM10.8111 18.1111C10.8111 16.0843 12.451 14.4444 14.4778 14.4444H16.4444C18.4065 14.4444 20 12.851 20 10.8889C20 7.1392 16.4677 4 12 4C7.58235 4 4 7.58235 4 12C4 16.19 7.2226 19.6285 11.324 19.9718C10.9948 19.4168 10.8111 18.7761 10.8111 18.1111ZM7.5 12C6.67157 12 6 11.3284 6 10.5C6 9.67157 6.67157 9 7.5 9C8.32843 9 9 9.67157 9 10.5C9 11.3284 8.32843 12 7.5 12ZM16.5 12C15.6716 12 15 11.3284 15 10.5C15 9.67157 15.6716 9 16.5 9C17.3284 9 18 9.67157 18 10.5C18 11.3284 17.3284 12 16.5 12ZM12 9C11.1716 9 10.5 8.32843 10.5 7.5C10.5 6.67157 11.1716 6 12 6C12.8284 6 13.5 6.67157 13.5 7.5C13.5 8.32843 12.8284 9 12 9Z"></path></svg>
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M12 14L8 10H16L12 14Z"></path></svg>
</div>`)),r=f7("<div></div>"),n.appendChild(r);const o=()=>{const a=f7(`<div>
<div class="aie-container-tools-body">
<div>${cr("type")}</div>
<div class="aie-container-tools-body-color-items">${this.options.typeItems.map(s=>`<div class="aie-container-tools-body-color-box ${s}" title="${s}"></div>`).join("")}</div>
</div>`);return a.addEventListener("click",s=>{s.target instanceof HTMLElement&&s.target.classList.contains("aie-container-tools-body-color-box")&&t.commands.updateAttributes(this.name,{containerClass:s.target.getAttribute("title")})}),a};i=xo(n.querySelector(".aie-container-tools"),{content:o(),appendTo:()=>n.closest(".aie-container"),placement:"bottom-end",trigger:"click",interactive:!0,arrow:!1,offset:[8,0],aria:{content:null,expanded:!1}})}return{dom:n,contentDOM:r,destroy(){i==null||i.destroy()}}}}}),Fvn=gPe.extend({addAttributes(){var e;return{...(e=this.parent)==null?void 0:e.call(this),id:{default:null}}}}),Bvn=yi.create({name:"saveExt",addKeyboardShortcuts(){return{"Mod-s":({editor:e})=>this.options.onSave?this.options.onSave(e.aiEditor):!1}}}),Hvn=To.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",Gr(this.options.HTMLAttributes,e),0]}}),jvn=To.create({name:"figcaption",content:"inline*",group:"block",defining:!0,addOptions(){return{HTMLAttributes:{dir:"auto"}}},parseHTML(){return[{tag:"figcaption"}]},renderHTML({HTMLAttributes:e}){return["figcaption",Gr(this.options.HTMLAttributes,e),0]}}),Uvn=yi.create({name:"pasteExt",priority:1e3,addProseMirrorPlugins(){return[new Ei({key:new Bi("aie-paste"),props:{handlePaste:(e,t)=>{if(e.props.editable&&!e.props.editable(e.state)||!t.clipboardData)return!1;let n=t.clipboardData.getData("text/plain"),r=t.clipboardData.getData("text/html");if(!r&&n){if(this.editor.isActive("codeBlock")||this.editor.isActive("code")){const{state:{tr:o},dispatch:a}=e;return a(o.replaceSelectionWith(this.editor.schema.text(n)).scrollIntoView()),!0}n=n.replace(/\n/g,"<br>");const i=this.editor.parseMarkdown(n);if(i){const{state:{tr:o},dispatch:a}=e;return a(o.replaceSelection(new An(i,0,0)).scrollIntoView()),!0}}else if(r){r=sln(r);const{options:i}=this.editor.aiEditor;if(i.htmlPasteConfig){if(i.htmlPasteConfig.pasteAsText)r=rln(r,["p","br"]),r=lln(r);else if(i.htmlPasteConfig.pasteClean){r=nln(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=oln(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&&iln(o)){const s=cln(a.outerHTML);return this.editor.commands.insertContent(s),!0}}}}}})]}}),zvn=yi.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 Ca){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:""})}}})}}),Vvn=(e,t)=>{var n,r,i,o,a,s,l,c,u,d,f,p,m,g,v,y,b,_,S,x,E,C,w,O,T,A,I,N,D,M,k,P;const B=[Zcn.configure({codeBlock:!1,heading:!1})];return B.push(Jcn,tun,nun,Fvn,aun.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}),sun,Dvn,uun.configure({multicolor:!0}),dun,fun,pun,hun.configure({types:["heading","paragraph"]}),mun,yun.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:((p=t.image)==null?void 0:p.uploader)||t.uploader,uploaderEvent:(m=t.image)==null?void 0:m.uploaderEvent}),Edn.configure({resizable:!0,lastColumnResizable:!0,allowTableNodeSelection:!0}),Cdn,Odn,wdn,Rdn.configure({textCounter:typeof(t==null?void 0:t.textCounter)=="function"?t.textCounter:G=>G.length}),Xdn.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}}),Zdn,Jdn,efn,nfn.configure({nested:!0}),opn.configure({lowlight:B1n(z0n),defaultLanguage:"auto",languageClassPrefix:"language-",languages:((_=t.codeBlock)==null?void 0:_.languages)||tDe,codeExplainAi:((x=(S=t.ai)==null?void 0:S.codeBlock)==null?void 0:x.codeExplain)||{model:"auto",prompt:((E=t.codeBlock)==null?void 0:E.codeExplainPrompt)||"帮我对这个代码进行解释,返回代码的解释内容,注意,不需要对代码的注释进行解释"},codeCommentsAi:((w=(C=t.ai)==null?void 0:C.codeBlock)==null?void 0:w.codeComments)||{model:"auto",prompt:((O=t.codeBlock)==null?void 0:O.codeCommentsPrompt)||"帮我对这个代码添加代码注释,并返回添加注释的代码,注意只需要返回代码。"}}),U1n.configure({uploadUrl:(T=t.video)==null?void 0:T.uploadUrl,uploadHeaders:(A=t.video)==null?void 0:A.uploadHeaders,uploadFormName:(I=t.video)==null?void 0:I.uploadFormName,uploader:((N=t.video)==null?void 0:N.uploader)||t.uploader,uploaderEvent:(D=t.video)==null?void 0:D.uploaderEvent}),z1n,Hvn,jvn,Bvn.configure({onSave:t.onSave}),Uvn,zvn,$vn.configure({defaultType:((M=t.container)==null?void 0:M.defaultType)||"warning",typeItems:((k=t.container)==null?void 0:k.typeItems)||LDe}),...Tvn(e)),t.placeholder&&B.push(Ovn.configure({placeholder:t.placeholder})),((P=t.ai)==null?void 0:P.commandsEnable)!==!1&&B.push(Pvn.configure({suggestion:{items:G=>{var L;return((L=t.ai)==null?void 0:L.commands)||kvn}}})),t.onMentionQuery&&B.push(Mvn(t.onMentionQuery)),B},Gvn={default:"默认",delete:"删除",confirm:"确定",cancel:"取消",resize:"调整大小",type:"类型",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":"代码解释","image-property":"图片属性","image-size":"图片大小","image-keep-current":"保持当前","image-original-size":"图片原始大小","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 翻译"},Wvn={default:"Default",delete:"Delete",confirm:"Confirm",cancel:"Cancel",resize:"Resize",type:"Type",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","image-property":"Image property","image-size":"Image size","image-keep-current":"Keep current","image-original-size":"Image original size","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"},qvn={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","image-property":"Bildeigenschaft","image-size":"Bildgröße","image-keep-current":"Aktuell behalten","image-original-size":"Originalgröße des Bilds","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"},Yvn={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"},Kvn={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"},Qvn={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 अनुवाद"},Xvn={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"},Zvn={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翻訳"},Jvn={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 번역"},ebn={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 แปล"},tbn={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"},lhe={};function nbn(e){let t=lhe[e];if(t)return t;t=lhe[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 Q_(e,t){typeof t!="string"&&(t=Q_.defaultChars);const n=nbn(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})}Q_.defaultChars=";/?:@&=+$,#";Q_.componentChars="";const che={};function rbn(e){let t=che[e];if(t)return t;t=che[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 bO(e,t,n){typeof t!="string"&&(n=t,t=bO.defaultChars),typeof n>"u"&&(n=!0);const r=rbn(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}bO.defaultChars=";/?:@&=+$,-_.!~*'()#";bO.componentChars="-_.!~*'()";function _Z(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 Mk(){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 ibn=/^([a-z0-9.+-]+:)/i,obn=/:[0-9]*$/,abn=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,sbn=["<",">",'"',"`"," ","\r",`
`," "],lbn=["{","}","|","\\","^","`"].concat(sbn),cbn=["'"].concat(lbn),uhe=["%","/","?",";","#"].concat(cbn),dhe=["/","?","#"],ubn=255,fhe=/^[+a-z0-9A-Z_-]{0,63}$/,dbn=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,phe={javascript:!0,"javascript:":!0},hhe={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};function SZ(e,t){if(e&&e instanceof Mk)return e;const n=new Mk;return n.parse(e,t),n}Mk.prototype.parse=function(e,t){let n,r,i,o=e;if(o=o.trim(),!t&&e.split("#").length===1){const c=abn.exec(o);if(c)return this.pathname=c[1],c[2]&&(this.search=c[2]),this}let a=ibn.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&&phe[a])&&(o=o.substr(2),this.slashes=!0)),!phe[a]&&(i||a&&!hhe[a])){let c=-1;for(let m=0;m<dhe.length;m++)r=o.indexOf(dhe[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<uhe.length;m++)r=o.indexOf(uhe[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 p=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!p){const m=this.hostname.split(/\./);for(let g=0,v=m.length;g<v;g++){const y=m[g];if(y&&!y.match(fhe)){let b="";for(let _=0,S=y.length;_<S;_++)y.charCodeAt(_)>127?b+="x":b+=y[_];if(!b.match(fhe)){const _=m.slice(0,g),S=m.slice(g+1),x=y.match(dbn);x&&(_.push(x[1]),S.unshift(x[2])),S.length&&(o=S.join(".")+o),this.hostname=_.join(".");break}}}}this.hostname.length>ubn&&(this.hostname=""),p&&(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),hhe[n]&&this.hostname&&!this.pathname&&(this.pathname=""),this};Mk.prototype.parseHost=function(e){let t=obn.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 fbn=Object.freeze(Object.defineProperty({__proto__:null,decode:Q_,encode:bO,format:_Z,parse:SZ},Symbol.toStringTag,{value:"Module"})),$De=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,FDe=/[\0-\x1F\x7F-\x9F]/,pbn=/[\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]/,EZ=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\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]/,BDe=/[\$\+<->\^`\|~\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]/,HDe=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/,hbn=Object.freeze(Object.defineProperty({__proto__:null,Any:$De,Cc:FDe,Cf:pbn,P:EZ,S:BDe,Z:HDe},Symbol.toStringTag,{value:"Module"})),mbn=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))),gbn=new Uint16Array("Ȁaglq \x1Bɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map(e=>e.charCodeAt(0)));var A7;const vbn=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]]),bbn=(A7=String.fromCodePoint)!==null&&A7!==void 0?A7: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 ybn(e){var t;return e>=55296&&e<=57343||e>1114111?65533:(t=vbn.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 _bn=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 dG(e){return e>=Ba.ZERO&&e<=Ba.NINE}function Sbn(e){return e>=Ba.UPPER_A&&e<=Ba.UPPER_F||e>=Ba.LOWER_A&&e<=Ba.LOWER_F}function Ebn(e){return e>=Ba.UPPER_A&&e<=Ba.UPPER_Z||e>=Ba.LOWER_A&&e<=Ba.LOWER_Z||dG(e)}function Cbn(e){return e===Ba.EQUALS||Ebn(e)}var Da;(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"})(Da||(Da={}));var ym;(function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"})(ym||(ym={}));class xbn{constructor(t,n,r){this.decodeTree=t,this.emitCodePoint=n,this.errors=r,this.state=Da.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=ym.Strict}startEntity(t){this.decodeMode=t,this.state=Da.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(t,n){switch(this.state){case Da.EntityStart:return t.charCodeAt(n)===Ba.NUM?(this.state=Da.NumericStart,this.consumed+=1,this.stateNumericStart(t,n+1)):(this.state=Da.NamedEntity,this.stateNamedEntity(t,n));case Da.NumericStart:return this.stateNumericStart(t,n);case Da.NumericDecimal:return this.stateNumericDecimal(t,n);case Da.NumericHex:return this.stateNumericHex(t,n);case Da.NamedEntity:return this.stateNamedEntity(t,n)}}stateNumericStart(t,n){return n>=t.length?-1:(t.charCodeAt(n)|_bn)===Ba.LOWER_X?(this.state=Da.NumericHex,this.consumed+=1,this.stateNumericHex(t,n+1)):(this.state=Da.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(dG(i)||Sbn(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(dG(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===ym.Strict)return 0;return this.emitCodePoint(ybn(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=wbn(r,i,this.treeIndex+Math.max(1,o),a),this.treeIndex<0)return this.result===0||this.decodeMode===ym.Attribute&&(o===0||Cbn(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!==ym.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 Da.NamedEntity:return this.result!==0&&(this.decodeMode!==ym.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case Da.NumericDecimal:return this.emitNumericEntity(0,2);case Da.NumericHex:return this.emitNumericEntity(0,3);case Da.NumericStart:return(t=this.errors)===null||t===void 0||t.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case Da.EntityStart:return 0}}}function jDe(e){let t="";const n=new xbn(e,r=>t+=bbn(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 wbn(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 Tbn=jDe(mbn);jDe(gbn);function UDe(e,t=ym.Legacy){return Tbn(e,t)}function Obn(e){return Object.prototype.toString.call(e)}function CZ(e){return Obn(e)==="[object String]"}const Rbn=Object.prototype.hasOwnProperty;function Abn(e,t){return Rbn.call(e,t)}function C8(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 zDe(e,t,n){return[].concat(e.slice(0,t),n,e.slice(t+1))}function xZ(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 kk(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 VDe=/\\([!"#$%&'()*+,\-./:;<=>?@[\\\]^_`{|}~])/g,Ibn=/&([a-z#][a-z0-9]{1,31});/gi,Nbn=new RegExp(VDe.source+"|"+Ibn.source,"gi"),Mbn=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))$/i;function kbn(e,t){if(t.charCodeAt(0)===35&&Mbn.test(t)){const r=t[1].toLowerCase()==="x"?parseInt(t.slice(2),16):parseInt(t.slice(1),10);return xZ(r)?kk(r):e}const n=UDe(e);return n!==e?n:e}function Pbn(e){return e.indexOf("\\")<0?e:e.replace(VDe,"$1")}function X_(e){return e.indexOf("\\")<0&&e.indexOf("&")<0?e:e.replace(Nbn,function(t,n,r){return n||kbn(t,r)})}const Dbn=/[&<>"]/,Lbn=/[&<>"]/g,$bn={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;"};function Fbn(e){return $bn[e]}function Cg(e){return Dbn.test(e)?e.replace(Lbn,Fbn):e}const Bbn=/[.?*+^$[\]\\(){}|-]/g;function Hbn(e){return e.replace(Bbn,"\\$&")}function Zi(e){switch(e){case 9:case 32:return!0}return!1}function xT(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 wT(e){return EZ.test(e)||BDe.test(e)}function TT(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 x8(e){return e=e.trim().replace(/\s+/g," "),"ẞ".toLowerCase()==="Ṿ"&&(e=e.replace(/ẞ/g,"ß")),e.toLowerCase().toUpperCase()}const jbn={mdurl:fbn,ucmicro:hbn},Ubn=Object.freeze(Object.defineProperty({__proto__:null,arrayReplaceAt:zDe,assign:C8,escapeHtml:Cg,escapeRE:Hbn,fromCodePoint:kk,has:Abn,isMdAsciiPunct:TT,isPunctChar:wT,isSpace:Zi,isString:CZ,isValidEntityCode:xZ,isWhiteSpace:xT,lib:jbn,normalizeReference:x8,unescapeAll:X_,unescapeMd:Pbn},Symbol.toStringTag,{value:"Module"}));function zbn(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 Vbn(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=X_(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=X_(e.slice(t,i)),o.pos=i,o.ok=!0),o}function Gbn(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+=X_(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+=X_(e.slice(t,o)),a}const Wbn=Object.freeze(Object.defineProperty({__proto__:null,parseLinkDestination:Vbn,parseLinkLabel:zbn,parseLinkTitle:Gbn},Symbol.toStringTag,{value:"Module"})),Jf={};Jf.code_inline=function(e,t,n,r,i){const o=e[t];return"<code"+i.renderAttrs(o)+">"+Cg(o.content)+"</code>"};Jf.code_block=function(e,t,n,r,i){const o=e[t];return"<pre"+i.renderAttrs(o)+"><code>"+Cg(e[t].content)+`</code></pre>
`};Jf.fence=function(e,t,n,r,i){const o=e[t],a=o.info?X_(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)||Cg(o.content):c=Cg(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>
`};Jf.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)};Jf.hardbreak=function(e,t,n){return n.xhtmlOut?`<br />
`:`<br>
`};Jf.softbreak=function(e,t,n){return n.breaks?n.xhtmlOut?`<br />
`:`<br>
`:`
`};Jf.text=function(e,t){return Cg(e[t].content)};Jf.html_block=function(e,t){return e[t].content};Jf.html_inline=function(e,t){return e[t].content};function sE(){this.rules=C8({},Jf)}sE.prototype.renderAttrs=function(e){let t,n,r;if(!e.attrs)return"";for(r="",t=0,n=e.attrs.length;t<n;t++)r+=" "+Cg(e.attrs[t][0])+'="'+Cg(e.attrs[t][1])+'"';return r};sE.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};sE.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};sE.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};sE.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 Ul(){this.__rules__=[],this.__cache__=null}Ul.prototype.__find__=function(e){for(let t=0;t<this.__rules__.length;t++)if(this.__rules__[t].name===e)return t;return-1};Ul.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))})})};Ul.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};Ul.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};Ul.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};Ul.prototype.push=function(e,t,n){const r=n||{};this.__rules__.push({name:e,enabled:!0,fn:t,alt:r.alt||[]}),this.__cache__=null};Ul.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};Ul.prototype.enableOnly=function(e,t){Array.isArray(e)||(e=[e]),this.__rules__.forEach(function(n){n.enabled=!1}),this.enable(e,t)};Ul.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};Ul.prototype.getRules=function(e){return this.__cache__===null&&this.__compile__(),this.__cache__[e]||[]};function Gd(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}Gd.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};Gd.prototype.attrPush=function(e){this.attrs?this.attrs.push(e):this.attrs=[e]};Gd.prototype.attrSet=function(e,t){const n=this.attrIndex(e),r=[e,t];n<0?this.attrPush(r):this.attrs[n]=r};Gd.prototype.attrGet=function(e){const t=this.attrIndex(e);let n=null;return t>=0&&(n=this.attrs[t][1]),n};Gd.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 GDe(e,t,n){this.src=e,this.env=n,this.tokens=[],this.inlineMode=!1,this.md=t}GDe.prototype.Token=Gd;const qbn=/\r\n?|\n/g,Ybn=/\0/g;function Kbn(e){let t;t=e.src.replace(qbn,`
`),t=t.replace(Ybn,"<22>"),e.src=t}function Qbn(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 Xbn(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 Zbn(e){return/^<a[>\s]/i.test(e)}function Jbn(e){return/^<\/a\s*>/i.test(e)}function eyn(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"&&(Zbn(s.content)&&o>0&&o--,Jbn(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 p=0;p<c.length;p++){const m=c[p].url,g=e.md.normalizeLink(m);if(!e.md.validateLink(g))continue;let v=c[p].text;c[p].schema?c[p].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[p].index;if(y>f){const x=new e.Token("text","",0);x.content=l.slice(f,y),x.level=d,u.push(x)}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 S=new e.Token("link_close","a",-1);S.level=--d,S.markup="linkify",S.info="auto",u.push(S),f=c[p].lastIndex}if(f<l.length){const p=new e.Token("text","",0);p.content=l.slice(f),p.level=d,u.push(p)}t[n].children=i=zDe(i,a,u)}}}}const WDe=/\+-|\.\.|\?\?\?\?|!!!!|,,|--/,tyn=/\((c|tm|r)\)/i,nyn=/\((c|tm|r)\)/ig,ryn={c:"©",r:"®",tm:"™"};function iyn(e,t){return ryn[t.toLowerCase()]}function oyn(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(nyn,iyn)),r.type==="link_open"&&r.info==="auto"&&t--,r.type==="link_close"&&r.info==="auto"&&t++}}function ayn(e){let t=0;for(let n=e.length-1;n>=0;n--){const r=e[n];r.type==="text"&&!t&&WDe.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 syn(e){let t;if(e.md.options.typographer)for(t=e.tokens.length-1;t>=0;t--)e.tokens[t].type==="inline"&&(tyn.test(e.tokens[t].content)&&oyn(e.tokens[t].children),WDe.test(e.tokens[t].content)&&ayn(e.tokens[t].children))}const lyn=/['"]/,mhe=/['"]/g,ghe="";function RA(e,t,n){return e.slice(0,t)+n+e.slice(t+1)}function cyn(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;){mhe.lastIndex=l;const u=mhe.exec(s);if(!u)break;let d=!0,f=!0;l=u.index+1;const p=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=TT(m)||wT(String.fromCharCode(m)),y=TT(g)||wT(String.fromCharCode(g)),b=xT(m),_=xT(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){p&&(o.content=RA(o.content,u.index,ghe));continue}if(f)for(n=r.length-1;n>=0;n--){let S=r[n];if(r[n].level<a)break;if(S.single===p&&r[n].level===a){S=r[n];let x,E;p?(x=t.md.options.quotes[2],E=t.md.options.quotes[3]):(x=t.md.options.quotes[0],E=t.md.options.quotes[1]),o.content=RA(o.content,u.index,E),e[S.token].content=RA(e[S.token].content,S.pos,x),l+=E.length-1,S.token===i&&(l+=x.length-1),s=o.content,c=s.length,r.length=n;continue e}}d?r.push({token:i,pos:u.index,single:p,level:a}):f&&p&&(o.content=RA(o.content,u.index,ghe))}}}function uyn(e){if(e.md.options.typographer)for(let t=e.tokens.length-1;t>=0;t--)e.tokens[t].type!=="inline"||!lyn.test(e.tokens[t].content)||cyn(e.tokens[t].children,e)}function dyn(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 I7=[["normalize",Kbn],["block",Qbn],["inline",Xbn],["linkify",eyn],["replacements",syn],["smartquotes",uyn],["text_join",dyn]];function wZ(){this.ruler=new Ul;for(let e=0;e<I7.length;e++)this.ruler.push(I7[e][0],I7[e][1])}wZ.prototype.process=function(e){const t=this.ruler.getRules("");for(let n=0,r=t.length;n<r;n++)t[n](e)};wZ.prototype.State=GDe;function ep(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(Zi(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}ep.prototype.push=function(e,t,n){const r=new Gd(e,t,n);return r.block=!0,n<0&&this.level--,r.level=this.level,n>0&&this.level++,this.tokens.push(r),r};ep.prototype.isEmpty=function(e){return this.bMarks[e]+this.tShift[e]>=this.eMarks[e]};ep.prototype.skipEmptyLines=function(e){for(let t=this.lineMax;e<t&&!(this.bMarks[e]+this.tShift[e]<this.eMarks[e]);e++);return e};ep.prototype.skipSpaces=function(e){for(let t=this.src.length;e<t;e++){const n=this.src.charCodeAt(e);if(!Zi(n))break}return e};ep.prototype.skipSpacesBack=function(e,t){if(e<=t)return e;for(;e>t;)if(!Zi(this.src.charCodeAt(--e)))return e+1;return e};ep.prototype.skipChars=function(e,t){for(let n=this.src.length;e<n&&this.src.charCodeAt(e)===t;e++);return e};ep.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};ep.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(Zi(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("")};ep.prototype.Token=Gd;const fyn=65536;function N7(e,t){const n=e.bMarks[t]+e.tShift[t],r=e.eMarks[t];return e.src.slice(n,r)}function vhe(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 pyn(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&&!Zi(s)||a===45&&Zi(s))return!1;for(;o<e.eMarks[i];){const S=e.src.charCodeAt(o);if(S!==124&&S!==45&&S!==58&&!Zi(S))return!1;o++}let l=N7(e,t+1),c=l.split("|");const u=[];for(let S=0;S<c.length;S++){const x=c[S].trim();if(!x){if(S===0||S===c.length-1)continue;return!1}if(!/^:?-+:?$/.test(x))return!1;x.charCodeAt(x.length-1)===58?u.push(x.charCodeAt(0)===58?"center":"right"):x.charCodeAt(0)===58?u.push("left"):u.push("")}if(l=N7(e,t).trim(),l.indexOf("|")===-1||e.sCount[t]-e.blkIndent>=4)return!1;c=vhe(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 p=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 S=0;S<c.length;S++){const x=e.push("th_open","th",1);u[S]&&(x.attrs=[["style","text-align:"+u[S]]]);const E=e.push("inline","",0);E.content=c[S].trim(),E.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 S=!1;for(let E=0,C=p.length;E<C;E++)if(p[E](e,i,n,!0)){S=!0;break}if(S||(l=N7(e,i).trim(),!l)||e.sCount[i]-e.blkIndent>=4||(c=vhe(l),c.length&&c[0]===""&&c.shift(),c.length&&c[c.length-1]===""&&c.pop(),_+=d-c.length,_>fyn))break;if(i===t+2){const E=e.push("tbody_open","tbody",1);E.map=b=[t+2,0]}const x=e.push("tr_open","tr",1);x.map=[i,i+1];for(let E=0;E<d;E++){const C=e.push("td_open","td",1);u[E]&&(C.attrs=[["style","text-align:"+u[E]]]);const w=e.push("inline","",0);w.content=c[E]?c[E].trim():"",w.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 hyn(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 myn(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 p=e.push("fence","code",0);return p.info=u,p.content=e.getLines(t+1,d,l,!0),p.markup=c,p.map=[t,e.line],!0}function gyn(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 p=!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 x=e.sCount[m]+1,E,C;e.src.charCodeAt(i)===32?(i++,x++,C=!1,E=!0):e.src.charCodeAt(i)===9?(E=!0,(e.bsCount[m]+x)%4===3?(i++,x++,C=!1):C=!0):E=!1;let w=x;for(s.push(e.bMarks[m]),e.bMarks[m]=i;i<o;){const O=e.src.charCodeAt(i);if(Zi(O))O===9?w+=4-(w+e.bsCount[m]+(C?1:0))%4:w++;else break;i++}p=i>=o,l.push(e.bsCount[m]),e.bsCount[m]=e.sCount[m]+1+(E?1:0),c.push(e.sCount[m]),e.sCount[m]=w-x,u.push(e.tShift[m]),e.tShift[m]=i-e.bMarks[m];continue}if(p)break;let S=!1;for(let x=0,E=d.length;x<E;x++)if(d[x](e,m,n,!0)){S=!0;break}if(S){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 vyn(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&&!Zi(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 bhe(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(!Zi(o))return-1}return r}function yhe(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),!Zi(o))?-1:i}function byn(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 yyn(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,p;if((p=yhe(e,l))>=0){if(d=!0,a=e.bMarks[l]+e.tShift[l],f=Number(e.src.slice(a,p-1)),u&&f!==1)return!1}else if((p=bhe(e,l))>=0)d=!1;else return!1;if(u&&e.skipSpaces(p)>=e.eMarks[l])return!1;if(r)return!0;const m=e.src.charCodeAt(p-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=p,i=e.eMarks[l];const S=e.sCount[l]+p-(e.bMarks[l]+e.tShift[l]);let x=S;for(;o<i;){const M=e.src.charCodeAt(o);if(M===9)x+=4-(x+e.bsCount[l])%4;else if(M===32)x++;else break;o++}const E=o;let C;E>=i?C=1:C=x-S,C>4&&(C=1);const w=S+C;s=e.push("list_item_open","li",1),s.markup=String.fromCharCode(m);const O=[l,0];s.map=O,d&&(s.info=e.src.slice(a,p-1));const T=e.tight,A=e.tShift[l],I=e.sCount[l],N=e.listIndent;if(e.listIndent=e.blkIndent,e.blkIndent=w,e.tight=!0,e.tShift[l]=E-e.bMarks[l],e.sCount[l]=x,E>=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=N,e.tShift[l]=A,e.sCount[l]=I,e.tight=T,s=e.push("list_item_close","li",-1),s.markup=String.fromCharCode(m),l=e.line,O[1]=l,l>=n||e.sCount[l]<e.blkIndent||e.sCount[l]-e.blkIndent>=4)break;let D=!1;for(let M=0,k=b.length;M<k;M++)if(b[M](e,l,n,!0)){D=!0;break}if(D)break;if(d){if(p=yhe(e,l),p<0)break;a=e.bMarks[l]+e.tShift[l]}else if(p=bhe(e,l),p<0)break;if(m!==e.src.charCodeAt(p-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&&byn(e,g),!0}function _yn(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 S=!1;if(e.sCount[b]-e.blkIndent>3&&(S=!0),e.sCount[b]<0&&(S=!0),!S){const C=e.md.block.ruler.getRules("reference"),w=e.parentType;e.parentType="reference";let O=!1;for(let T=0,A=C.length;T<A;T++)if(C[T](e,b,_,!0)){O=!0;break}if(e.parentType=w,O)return null}const x=e.bMarks[b]+e.tShift[b],E=e.eMarks[b];return e.src.slice(x,E+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(!Zi(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,p=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(!Zi(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=p);i<o;){const b=l.charCodeAt(i);if(!Zi(b))break;i++}if(i<o&&l.charCodeAt(i)!==10&&v)for(v="",i=f,a=p;i<o;){const b=l.charCodeAt(i);if(!Zi(b))break;i++}if(i<o&&l.charCodeAt(i)!==10)return!1;const y=x8(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 Syn=["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"],Eyn="[a-zA-Z_:][a-zA-Z0-9:._-]*",Cyn="[^\"'=<>`\\x00-\\x20]+",xyn="'[^']*'",wyn='"[^"]*"',Tyn="(?:"+Cyn+"|"+xyn+"|"+wyn+")",Oyn="(?:\\s+"+Eyn+"(?:\\s*=\\s*"+Tyn+")?)",qDe="<[A-Za-z][A-Za-z0-9\\-]*"+Oyn+"*\\s*\\/?>",YDe="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",Ryn="<!---?>|<!--(?:[^-]|-[^-]|--[^>])*-->",Ayn="<[?][\\s\\S]*?[?]>",Iyn="<![A-Za-z][^>]*>",Nyn="<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",Myn=new RegExp("^(?:"+qDe+"|"+YDe+"|"+Ryn+"|"+Ayn+"|"+Iyn+"|"+Nyn+")"),kyn=new RegExp("^(?:"+qDe+"|"+YDe+")"),Eb=[[/^<(script|pre|style|textarea)(?=(\s|>|$))/i,/<\/(script|pre|style|textarea)>/i,!0],[/^<!--/,/-->/,!0],[/^<\?/,/\?>/,!0],[/^<![A-Z]/,/>/,!0],[/^<!\[CDATA\[/,/\]\]>/,!0],[new RegExp("^</?("+Syn.join("|")+")(?=(\\s|/?>|$))","i"),/^$/,!0],[new RegExp(kyn.source+"\\s*$"),/^$/,!1]];function Pyn(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<Eb.length&&!Eb[s][0].test(a);s++);if(s===Eb.length)return!1;if(r)return Eb[s][2];let l=t+1;if(!Eb[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),Eb[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 Dyn(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&&!Zi(a))return!1;if(r)return!0;o=e.skipSpacesBack(o,i);const l=e.skipCharsBack(o,35,i);l>i&&Zi(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 Lyn(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 p=e.bMarks[s]+e.tShift[s];const m=e.eMarks[s];if(p<m&&(a=e.src.charCodeAt(p),(a===45||a===61)&&(p=e.skipChars(p,a),p=e.skipSpaces(p),p>=m))){o=a===61?1:2;break}}if(e.sCount[s]<0)continue;let f=!1;for(let p=0,m=r.length;p<m;p++)if(r[p](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 $yn(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 AA=[["table",pyn,["paragraph","reference"]],["code",hyn],["fence",myn,["paragraph","reference","blockquote","list"]],["blockquote",gyn,["paragraph","reference","blockquote","list"]],["hr",vyn,["paragraph","reference","blockquote","list"]],["list",yyn,["paragraph","reference","blockquote"]],["reference",_yn],["html_block",Pyn,["paragraph","reference","blockquote"]],["heading",Dyn,["paragraph","reference","blockquote"]],["lheading",Lyn],["paragraph",$yn]];function w8(){this.ruler=new Ul;for(let e=0;e<AA.length;e++)this.ruler.push(AA[e][0],AA[e][1],{alt:(AA[e][2]||[]).slice()})}w8.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)}};w8.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)};w8.prototype.State=ep;function yO(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}yO.prototype.pushPending=function(){const e=new Gd("text","",0);return e.content=this.pending,e.level=this.pendingLevel,this.tokens.push(e),this.pending="",e};yO.prototype.push=function(e,t,n){this.pending&&this.pushPending();const r=new Gd(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};yO.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=TT(i)||wT(String.fromCharCode(i)),c=TT(s)||wT(String.fromCharCode(s)),u=xT(i),d=xT(s),f=!d&&(!c||u||l),p=!u&&(!l||d||c);return{can_open:f&&(t||!p||l),can_close:p&&(t||!f||c),length:a}};yO.prototype.Token=Gd;function Fyn(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 Byn(e,t){let n=e.pos;for(;n<e.posMax&&!Fyn(e.src.charCodeAt(n));)n++;return n===e.pos?!1:(t||(e.pending+=e.src.slice(e.pos,n)),e.pos=n,!0)}const Hyn=/(?:^|[^a-z0-9.+-])([a-z][a-z0-9.+-]*)$/i;function jyn(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(Hyn);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 Uyn(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&&Zi(e.src.charCodeAt(n));)n++;return e.pos=n,!0}const TZ=[];for(let e=0;e<256;e++)TZ.push(0);"\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-".split("").forEach(function(e){TZ[e.charCodeAt(0)]=1});function zyn(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),!!Zi(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&&TZ[i]!==0?s.content=o:s.content=a,s.markup=a,s.info="escape"}return e.pos=n+1,!0}function Vyn(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 Gyn(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 _he(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 Wyn(e){const t=e.tokens_meta,n=e.tokens_meta.length;_he(e,e.delimiters);for(let r=0;r<n;r++)t[r]&&t[r].delimiters&&_he(e,t[r].delimiters)}const KDe={tokenize:Gyn,postProcess:Wyn};function qyn(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 She(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 Yyn(e){const t=e.tokens_meta,n=e.tokens_meta.length;She(e,e.delimiters);for(let r=0;r<n;r++)t[r]&&t[r].delimiters&&She(e,t[r].delimiters)}const QDe={tokenize:qyn,postProcess:Yyn};function Kyn(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,p=e.md.helpers.parseLinkLabel(e,e.pos,!0);if(p<0)return!1;let m=p+1;if(m<d&&e.src.charCodeAt(m)===40){for(c=!1,m++;m<d&&(n=e.src.charCodeAt(m),!(!Zi(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),!(!Zi(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),!(!Zi(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=p+1):m=p+1,r||(r=e.src.slice(f,p)),o=e.env.references[x8(r)],!o)return e.pos=u,!1;a=o.href,s=o.title}if(!t){e.pos=f,e.posMax=p;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 Qyn(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 p=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),!(!Zi(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),!(!Zi(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),!(!Zi(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(p,m)),a=e.env.references[x8(i)],!a)return e.pos=d,!1;u=a.href,l=a.title}if(!t){r=e.src.slice(p,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 Xyn=/^([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])?)*)$/,Zyn=/^([a-zA-Z][a-zA-Z0-9+.-]{1,31}):([^<>\x00-\x20]*)$/;function Jyn(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(Zyn.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(Xyn.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 e_n(e){return/^<a[>\s]/i.test(e)}function t_n(e){return/^<\/a\s*>/i.test(e)}function n_n(e){const t=e|32;return t>=97&&t<=122}function r_n(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&&!n_n(i))return!1;const o=e.src.slice(r).match(Myn);if(!o)return!1;if(!t){const a=e.push("html_inline","",0);a.content=o[0],e_n(a.content)&&e.linkLevel++,t_n(a.content)&&e.linkLevel--}return e.pos+=o[0].length,!0}const i_n=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,o_n=/^&([a-z][a-z0-9]{1,31});/i;function a_n(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(i_n);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=xZ(o)?kk(o):kk(65533),a.markup=i[0],a.info="entity"}return e.pos+=i[0].length,!0}}else{const i=e.src.slice(n).match(o_n);if(i){const o=UDe(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 Ehe(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 p=c>0&&!e[c-1].open?o[c-1]+1:0;o[a]=a-c+p,o[c]=p,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 s_n(e){const t=e.tokens_meta,n=e.tokens_meta.length;Ehe(e.delimiters);for(let r=0;r<n;r++)t[r]&&t[r].delimiters&&Ehe(t[r].delimiters)}function l_n(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 M7=[["text",Byn],["linkify",jyn],["newline",Uyn],["escape",zyn],["backticks",Vyn],["strikethrough",KDe.tokenize],["emphasis",QDe.tokenize],["link",Kyn],["image",Qyn],["autolink",Jyn],["html_inline",r_n],["entity",a_n]],k7=[["balance_pairs",s_n],["strikethrough",KDe.postProcess],["emphasis",QDe.postProcess],["fragments_join",l_n]];function _O(){this.ruler=new Ul;for(let e=0;e<M7.length;e++)this.ruler.push(M7[e][0],M7[e][1]);this.ruler2=new Ul;for(let e=0;e<k7.length;e++)this.ruler2.push(k7[e][0],k7[e][1])}_O.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};_O.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()};_O.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)};_O.prototype.State=yO;function c_n(e){const t={};e=e||{},t.src_Any=$De.source,t.src_Cc=FDe.source,t.src_Z=HDe.source,t.src_P=EZ.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 fG(e){return Array.prototype.slice.call(arguments,1).forEach(function(t){t&&Object.keys(t).forEach(function(n){e[n]=t[n]})}),e}function T8(e){return Object.prototype.toString.call(e)}function u_n(e){return T8(e)==="[object String]"}function d_n(e){return T8(e)==="[object Object]"}function f_n(e){return T8(e)==="[object RegExp]"}function Che(e){return T8(e)==="[object Function]"}function p_n(e){return e.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}const XDe={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};function h_n(e){return Object.keys(e||{}).reduce(function(t,n){return t||XDe.hasOwnProperty(n)},!1)}const m_n={"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}}},g_n="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]",v_n="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");function b_n(e){e.__index__=-1,e.__text_cache__=""}function y_n(e){return function(t,n){const r=t.slice(n);return e.test(r)?r.match(e)[0].length:0}}function xhe(){return function(e,t){t.normalize(e)}}function Pk(e){const t=e.re=c_n(e.__opts__),n=e.__tlds__.slice();e.onCompile(),e.__tlds_replaced__||n.push(g_n),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,d_n(l)){f_n(l.validate)?c.validate=y_n(l.validate):Che(l.validate)?c.validate=l.validate:o(s,l),Che(l.normalize)?c.normalize=l.normalize:l.normalize?o(s,l):c.normalize=xhe();return}if(u_n(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:xhe()};const a=Object.keys(e.__compiled__).filter(function(s){return s.length>0&&e.__compiled__[s]}).map(p_n).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"),b_n(e)}function __n(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 pG(e,t){const n=new __n(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||h_n(e)&&(t=e,e={}),this.__opts__=fG({},XDe,t),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=fG({},m_n,e),this.__compiled__={},this.__tlds__=v_n,this.__tlds_replaced__=!1,this.re={},Pk(this)}Tc.prototype.add=function(e,t){return this.__schemas__[e]=t,Pk(this),this};Tc.prototype.set=function(e){return this.__opts__=fG(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(pG(this,n)),n=this.__last_index__);let r=n?e.slice(n):e;for(;this.test(r);)t.push(pG(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,pG(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(),Pk(this),this):(this.__tlds__=e.slice(),this.__tlds_replaced__=!0,Pk(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 My=2147483647,Tf=36,OZ=1,OT=26,S_n=38,E_n=700,ZDe=72,JDe=128,e3e="-",C_n=/^xn--/,x_n=/[^\0-\x7F]/,w_n=/[\x2E\u3002\uFF0E\uFF61]/g,T_n={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},P7=Tf-OZ,Of=Math.floor,D7=String.fromCharCode;function fm(e){throw new RangeError(T_n[e])}function O_n(e,t){const n=[];let r=e.length;for(;r--;)n[r]=t(e[r]);return n}function t3e(e,t){const n=e.split("@");let r="";n.length>1&&(r=n[0]+"@",e=n[1]),e=e.replace(w_n,".");const i=e.split("."),o=O_n(i,t).join(".");return r+o}function n3e(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 R_n=e=>String.fromCodePoint(...e),A_n=function(e){return e>=48&&e<58?26+(e-48):e>=65&&e<91?e-65:e>=97&&e<123?e-97:Tf},whe=function(e,t){return e+22+75*(e<26)-((t!=0)<<5)},r3e=function(e,t,n){let r=0;for(e=n?Of(e/E_n):e>>1,e+=Of(e/t);e>P7*OT>>1;r+=Tf)e=Of(e/P7);return Of(r+(P7+1)*e/(e+S_n))},i3e=function(e){const t=[],n=e.length;let r=0,i=JDe,o=ZDe,a=e.lastIndexOf(e3e);a<0&&(a=0);for(let s=0;s<a;++s)e.charCodeAt(s)>=128&&fm("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=Tf;;d+=Tf){s>=n&&fm("invalid-input");const f=A_n(e.charCodeAt(s++));f>=Tf&&fm("invalid-input"),f>Of((My-r)/u)&&fm("overflow"),r+=f*u;const p=d<=o?OZ:d>=o+OT?OT:d-o;if(f<p)break;const m=Tf-p;u>Of(My/m)&&fm("overflow"),u*=m}const c=t.length+1;o=r3e(r-l,c,l==0),Of(r/c)>My-i&&fm("overflow"),i+=Of(r/c),r%=c,t.splice(r++,0,i)}return String.fromCodePoint(...t)},o3e=function(e){const t=[];e=n3e(e);const n=e.length;let r=JDe,i=0,o=ZDe;for(const l of e)l<128&&t.push(D7(l));const a=t.length;let s=a;for(a&&t.push(e3e);s<n;){let l=My;for(const u of e)u>=r&&u<l&&(l=u);const c=s+1;l-r>Of((My-i)/c)&&fm("overflow"),i+=(l-r)*c,r=l;for(const u of e)if(u<r&&++i>My&&fm("overflow"),u===r){let d=i;for(let f=Tf;;f+=Tf){const p=f<=o?OZ:f>=o+OT?OT:f-o;if(d<p)break;const m=d-p,g=Tf-p;t.push(D7(whe(p+m%g,0))),d=Of(m/g)}t.push(D7(whe(d,0))),o=r3e(i,c,s===a),i=0,++s}++i,++r}return t.join("")},I_n=function(e){return t3e(e,function(t){return C_n.test(t)?i3e(t.slice(4).toLowerCase()):t})},N_n=function(e){return t3e(e,function(t){return x_n.test(t)?"xn--"+o3e(t):t})},a3e={version:"2.3.1",ucs2:{decode:n3e,encode:R_n},decode:i3e,encode:o3e,toASCII:N_n,toUnicode:I_n},M_n={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:100},components:{core:{},block:{},inline:{}}},k_n={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"]}}},P_n={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"]}}},D_n={default:M_n,zero:k_n,commonmark:P_n},L_n=/^(vbscript|javascript|file|data):/,$_n=/^data:image\/(gif|png|jpeg|webp);/;function F_n(e){const t=e.trim().toLowerCase();return L_n.test(t)?$_n.test(t):!0}const s3e=["http:","https:","mailto:"];function B_n(e){const t=SZ(e,!0);if(t.hostname&&(!t.protocol||s3e.indexOf(t.protocol)>=0))try{t.hostname=a3e.toASCII(t.hostname)}catch{}return bO(_Z(t))}function H_n(e){const t=SZ(e,!0);if(t.hostname&&(!t.protocol||s3e.indexOf(t.protocol)>=0))try{t.hostname=a3e.toUnicode(t.hostname)}catch{}return Q_(_Z(t),Q_.defaultChars+"%")}function Cu(e,t){if(!(this instanceof Cu))return new Cu(e,t);t||CZ(e)||(t=e||{},e="default"),this.inline=new _O,this.block=new w8,this.core=new wZ,this.renderer=new sE,this.linkify=new Tc,this.validateLink=F_n,this.normalizeLink=B_n,this.normalizeLinkText=H_n,this.utils=Ubn,this.helpers=C8({},Wbn),this.options={},this.configure(e),t&&this.set(t)}Cu.prototype.set=function(e){return C8(this.options,e),this};Cu.prototype.configure=function(e){const t=this;if(CZ(e)){const n=e;if(e=D_n[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 j_n(e,t,n){function r(f){return f.trim().split(" ",2)[0]===t}function i(f,p,m,g,v){return f[p].nesting===1&&f[p].attrJoin("class",t),v.renderToken(f,p,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,p,m,g){let v,y=!1,b=f.bMarks[p]+f.tShift[p],_=f.eMarks[p];if(s!==f.src.charCodeAt(b))return!1;for(v=b+1;v<=_&&a[(v-b)%l]===f.src[v];v++);const S=Math.floor((v-b)/l);if(S<o)return!1;v-=(v-b)%l;const x=f.src.slice(b,v),E=f.src.slice(v,_);if(!c(E,x))return!1;if(g)return!0;let C=p;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)<S)&&(v-=(v-b)%l,v=f.skipSpaces(v),!(v<_))){y=!0;break}}const w=f.parentType,O=f.lineMax;f.parentType="container",f.lineMax=C;const T=f.push("container_"+t+"_open","div",1);T.markup=x,T.block=!0,T.info=E,T.map=[p,C],f.md.block.tokenize(f,p+1,C);const A=f.push("container_"+t+"_close","div",-1);return A.markup=f.src.slice(b,v),A.block=!0,f.parentType=w,f.lineMax=O,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}var hG=!0,l3e=!1,c3e=!1,U_n=function(e,t){t&&(hG=!t.enabled,l3e=!!t.label,c3e=!!t.labelAfter),e.core.ruler.after("inline","github-task-lists",function(n){for(var r=n.tokens,i=2;i<r.length;i++)V_n(r,i)&&(G_n(r[i],n.Token),The(r[i-2],"class","task-list-item"+(hG?"":" enabled")),The(r[z_n(r,i-2)],"class","contains-task-list"))})};function The(e,t,n){var r=e.attrIndex(t),i=[t,n];r<0?e.attrPush(i):e.attrs[r]=i}function z_n(e,t){for(var n=e[t].level-1,r=t-1;r>=0;r--)if(e[r].level===n)return r;return-1}function V_n(e,t){return Q_n(e[t])&&X_n(e[t-1])&&Z_n(e[t-2])&&J_n(e[t])}function G_n(e,t){if(e.children.unshift(W_n(e,t)),e.children[1].content=e.children[1].content.slice(3),e.content=e.content.slice(3),l3e)if(c3e){e.children.pop();var n="task-item-"+Math.ceil(Math.random()*(1e4*1e3)-1e3);e.children[0].content=e.children[0].content.slice(0,-1)+' id="'+n+'">',e.children.push(K_n(e.content,n,t))}else e.children.unshift(q_n(t)),e.children.push(Y_n(t))}function W_n(e,t){var n=new t("html_inline","",0),r=hG?' disabled="" ':"";return e.content.indexOf("[ ] ")===0?n.content='<input class="task-list-item-checkbox"'+r+'type="checkbox">':(e.content.indexOf("[x] ")===0||e.content.indexOf("[X] ")===0)&&(n.content='<input class="task-list-item-checkbox" checked=""'+r+'type="checkbox">'),n}function q_n(e){var t=new e("html_inline","",0);return t.content="<label>",t}function Y_n(e){var t=new e("html_inline","",0);return t.content="</label>",t}function K_n(e,t,n){var r=new n("html_inline","",0);return r.content='<label class="task-list-item-label" for="'+t+'">'+e+"</label>",r.attrs=[{for:t}],r}function Q_n(e){return e.type==="inline"}function X_n(e){return e.type==="paragraph_open"}function Z_n(e){return e.type==="list_item_open"}function J_n(e){return e.content.indexOf("[ ] ")===0||e.content.indexOf("[x] ")===0||e.content.indexOf("[X] ")===0}const eSn=h8(U_n);function tSn(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 mG(e,t){return Array(t+1).join(e)}function nSn(e){return e.replace(/^\n*/,"")}function rSn(e){for(var t=e.length;t>0&&e[t-1]===`
`;)t--;return e.substring(0,t)}var iSn=["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 RZ(e){return AZ(e,iSn)}var u3e=["AREA","BASE","BR","COL","COMMAND","EMBED","HR","IMG","INPUT","KEYGEN","LINK","META","PARAM","SOURCE","TRACK","WBR"];function d3e(e){return AZ(e,u3e)}function oSn(e){return p3e(e,u3e)}var f3e=["A","TABLE","THEAD","TBODY","TFOOT","TH","TD","IFRAME","SCRIPT","AUDIO","VIDEO"];function aSn(e){return AZ(e,f3e)}function sSn(e){return p3e(e,f3e)}function AZ(e,t){return t.indexOf(e.nodeName)>=0}function p3e(e,t){return e.getElementsByTagName&&t.some(function(n){return e.getElementsByTagName(n).length})}var Hs={};Hs.paragraph={filter:"p",replacement:function(e){return`
`+e+`
`}};Hs.lineBreak={filter:"br",replacement:function(e,t,n){return n.br+`
`}};Hs.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=mG(r===1?"=":"-",e.length);return`
`+e+`
`+i+`
`}else return`
`+mG("#",r)+" "+e+`
`}};Hs.blockquote={filter:"blockquote",replacement:function(e){return e=e.replace(/^\n+|\n+$/g,""),e=e.replace(/^/gm,"> "),`
`+e+`
`}};Hs.list={filter:["ul","ol"],replacement:function(e,t){var n=t.parentNode;return n.nodeName==="LI"&&n.lastElementChild===t?`
`+e:`
`+e+`
`}};Hs.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)?`
`:"")}};Hs.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,`
`)+`
`}};Hs.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=mG(a,s);return`
`+u+i+`
`+o.replace(/\n$/,"")+`
`+u+`
`}};Hs.horizontalRule={filter:"hr",replacement:function(e,t,n){return`
`+n.hr+`
`}};Hs.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=Dk(t.getAttribute("title"));return r&&(r=' "'+r.replace(/"/g,'\\"')+'"'),"["+e+"]("+n+r+")"}};Hs.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=Dk(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}};Hs.emphasis={filter:["em","i"],replacement:function(e,t,n){return e.trim()?n.emDelimiter+e+n.emDelimiter:""}};Hs.strong={filter:["strong","b"],replacement:function(e,t,n){return e.trim()?n.strongDelimiter+e+n.strongDelimiter:""}};Hs.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}};Hs.image={filter:"img",replacement:function(e,t){var n=Dk(t.getAttribute("alt")),r=t.getAttribute("src")||"",i=Dk(t.getAttribute("title")),o=i?' "'+i+'"':"";return r?"!["+n+"]("+r+o+")":""}};function Dk(e){return e?e.replace(/(\n+\s*)+/g,`
`):""}function h3e(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])}h3e.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=L7(this.array,e,this.options))||(t=L7(this._keep,e,this.options))||(t=L7(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 L7(e,t,n){for(var r=0;r<e.length;r++){var i=e[r];if(lSn(i,t,n))return i}}function lSn(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 cSn(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=Ohe(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=$7(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=$7(l);continue}var u=Ohe(s,l,i);s=l,l=u}o&&(o.data=o.data.replace(/ $/,""),o.data||$7(o))}}function $7(e){var t=e.nextSibling||e.parentNode;return e.parentNode.removeChild(e),t}function Ohe(e,t,n){return e&&e.parentNode===t||n(t)?t.nextSibling||t.parentNode:t.firstChild||t.nextSibling||t.parentNode}var IZ=typeof window<"u"?window:{};function uSn(){var e=IZ.DOMParser,t=!1;try{new e().parseFromString("","text/html")&&(t=!0)}catch{}return t}function dSn(){var e=function(){};return fSn()?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 fSn(){var e=!1;try{document.implementation.createHTMLDocument("").open()}catch{IZ.ActiveXObject&&(e=!0)}return e}var pSn=uSn()?IZ.DOMParser:dSn();function hSn(e,t){var n;if(typeof e=="string"){var r=mSn().parseFromString('<x-turndown id="turndown-root">'+e+"</x-turndown>","text/html");n=r.getElementById("turndown-root")}else n=e.cloneNode(!0);return cSn({element:n,isBlock:RZ,isVoid:d3e,isPre:t.preformattedCode?gSn:null}),n}var F7;function mSn(){return F7=F7||new pSn,F7}function gSn(e){return e.nodeName==="PRE"||e.nodeName==="CODE"}function vSn(e,t){return e.isBlock=RZ(e),e.isCode=e.nodeName==="CODE"||e.parentNode.isCode,e.isBlank=bSn(e),e.flankingWhitespace=ySn(e,t),e}function bSn(e){return!d3e(e)&&!aSn(e)&&/^\s*$/i.test(e.textContent)&&!oSn(e)&&!sSn(e)}function ySn(e,t){if(e.isBlock||t.preformattedCode&&e.isCode)return{leading:"",trailing:""};var n=_Sn(e.textContent);return n.leadingAscii&&Rhe("left",e,t)&&(n.leading=n.leadingNonAscii),n.trailingAscii&&Rhe("right",e,t)&&(n.trailing=n.trailingNonAscii),{leading:n.leading,trailing:n.trailing}}function _Sn(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 Rhe(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&&!RZ(r)&&(o=i.test(r.textContent))),o}var SSn=Array.prototype.reduce,ESn=[[/\\/g,"\\\\"],[/\*/g,"\\*"],[/^-/g,"\\-"],[/^\+ /g,"\\+ "],[/^(=+)/g,"\\$1"],[/^(#{1,6}) /g,"\\$1 "],[/`/g,"\\`"],[/^~~~/g,"\\~~~"],[/\[/g,"\\["],[/\]/g,"\\]"],[/^>/g,"\\>"],[/_/g,"\\_"],[/^(\d+)\. /g,"$1\\. "]];function Lk(e){if(!(this instanceof Lk))return new Lk(e);var t={rules:Hs,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=tSn({},t,e),this.rules=new h3e(this.options)}Lk.prototype={turndown:function(e){if(!wSn(e))throw new TypeError(e+" is not a string, or an element/document/fragment node.");if(e==="")return"";var t=m3e.call(this,new hSn(e,this.options));return CSn.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 ESn.reduce(function(t,n){return t.replace(n[0],n[1])},e)}};function m3e(e){var t=this;return SSn.call(e.childNodes,function(n,r){r=new vSn(r,t.options);var i="";return r.nodeType===3?i=r.isCode?r.nodeValue:t.escape(r.nodeValue):r.nodeType===1&&(i=xSn.call(t,r)),g3e(n,i)},"")}function CSn(e){var t=this;return this.rules.forEach(function(n){typeof n.append=="function"&&(e=g3e(e,n.append(t.options)))}),e.replace(/^[\t\r\n]+/,"").replace(/[\t\r\n\s]+$/,"")}function xSn(e){var t=this.rules.forNode(e),n=m3e.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 g3e(e,t){var n=rSn(e),r=nSn(t),i=Math.max(e.length-n.length,t.length-r.length),o=`
`.substring(0,i);return n+o+r}function wSn(e){return e!=null&&(typeof e=="string"||e.nodeType&&(e.nodeType===1||e.nodeType===9||e.nodeType===11))}var Ahe=/highlight-(?:text|source)-([a-z0-9]+)/;function TSn(e){e.addRule("highlightedCodeBlock",{filter:function(t){var n=t.firstChild;return t.nodeName==="DIV"&&Ahe.test(t.className)&&n&&n.nodeName==="PRE"},replacement:function(t,n,r){var i=n.className||"",o=(i.match(Ahe)||[null,""])[1];return`
`+r.fence+o+`
`+n.firstChild.textContent+`
`+r.fence+`
`}})}function OSn(e){e.addRule("strikethrough",{filter:["del","s","strike"],replacement:function(t){return"~"+t+"~"}})}var RSn=Array.prototype.indexOf,ASn=Array.prototype.every,Z_={};Z_.tableCell={filter:["th","td"],replacement:function(e,t){return NZ(b3e(t))?e:gG(e,t)}};Z_.tableRow={filter:"tr",replacement:function(e,t){const n=b3e(t);if(NZ(n))return e;var r="",i={left:":--",right:"--:",center:":-:"};if(ISn(t)){const l=y3e(n);for(var o=0;o<l;o++){const c=l>=t.childNodes.length?null:t.childNodes[o];var a="---",s=c?(c.getAttribute("align")||"").toLowerCase():"";s&&(a=i[s]||a),c?r+=gG(a,t.childNodes[o]):r+=gG(a,null,o)}}return`
`+e+(r?`
`+r:"")}};Z_.table={filter:function(e){return e.nodeName==="TABLE"},replacement:function(e,t){if(NZ(t))return e;e=e.replace(/\n+/g,`
`);var n=e.trim().split(`
`);n.length>=2&&(n=n[1]);var r=n.indexOf("| ---")===0,i=y3e(t),o="";return i&&!r&&(o="|"+" |".repeat(i)+`
|`+" --- |".repeat(i)),`
`+o+e+`
`}};Z_.tableSection={filter:["thead","tbody","tfoot"],replacement:function(e){return e}};function ISn(e){var t=e.parentNode;return t.nodeName==="THEAD"||t.firstChild===e&&(t.nodeName==="TABLE"||NSn(t))&&ASn.call(e.childNodes,function(n){return n.nodeName==="TH"})}function NSn(e){var t=e.previousSibling;return e.nodeName==="TBODY"&&(!t||t.nodeName==="THEAD"&&/^\s*$/i.test(t.textContent))}function gG(e,t=null,n=null){n===null&&(n=RSn.call(t.parentNode.childNodes,t));var r=" ";n===0&&(r="| ");let i=e.trim().replace(/\n\r/g,"<br>").replace(/\n/g,"<br>");for(i=i.replace(/\|+/g,"\\|");i.length<3;)i+=" ";return t&&(i=MSn(i,t," ")),r+i+" |"}function v3e(e){if(!e.childNodes)return!1;for(let t=0;t<e.childNodes.length;t++){const n=e.childNodes[t];if(n.nodeName==="TABLE"||v3e(n))return!0}return!1}function NZ(e){return!!(!e||!e.rows||e.rows.length===1&&e.rows[0].childNodes.length<=1||v3e(e))}function b3e(e){let t=e.parentNode;for(;t.nodeName!=="TABLE";)if(t=t.parentNode,!t)return null;return t}function MSn(e,t,n){const r=t.getAttribute("colspan")||1;for(let i=1;i<r;i++)e+=" | "+n.repeat(3);return e}function y3e(e){let t=0;for(let n=0;n<e.rows.length;n++){const r=e.rows[n].childNodes.length;r>t&&(t=r)}return t}function _3e(e){e.keep(function(n){return n.nodeName==="TABLE"});for(var t in Z_)e.addRule(t,Z_[t])}function kSn(e){e.addRule("taskListItems",{filter:function(t){return t.type==="checkbox"&&t.parentNode.nodeName==="LI"},replacement:function(t,n){return(n.checked?"[x]":"[ ]")+" "}})}function PSn(e){e.use([TSn,OSn,_3e,kSn])}const MZ=Cu({html:!0,linkify:!0,typographer:!0});MZ.use(j_n,"container-wrapper",{validate:function(e){return!0},render:function(e,t){return e[t].nesting===1?`<div class="container-wrapper ${e[t].info.trim().split(" ")[0]}">`:"</div>"}});MZ.use(eSn,{enabled:!0,label:!0});const Uv=new Lk({headingStyle:"atx",hr:"---",bulletListMarker:"-",codeBlockStyle:"fenced",fence:"```",emDelimiter:"_",strongDelimiter:"**",linkStyle:"inlined",linkReferenceStyle:"full",preformattedCode:!1});Uv.use(PSn);Uv.use(_3e);Uv.addRule("strikethrough",{filter:["del","s","strike"],replacement:function(e){return"~~"+e+"~~"}});Uv.keep(e=>!(e&&e.nodeName==="DIV"));Uv.addRule("checkbox",{filter:e=>{var t,n;if(e.tagName==="INPUT"&&e.getAttribute("type")==="checkbox"||e.tagName==="LABEL"&&((t=e.firstElementChild)==null?void 0:t.tagName)==="INPUT"&&((n=e.firstElementChild)==null?void 0:n.getAttribute("type"))==="checkbox")return!0},replacement:function(e,t){var n;return t.type==="checkbox"?t.checked?"[x]":"[ ]":t.tagName==="LABEL"&&((n=t.firstElementChild)==null?void 0:n.type)==="checkbox"?t.firstElementChild.checked?"[x]":"[ ]":null}});Uv.addRule("container",{filter:e=>e.tagName==="DIV"&&e.classList.contains("container-wrapper"),replacement:function(e,t){let n="";for(let r of t.classList)if(r!="container-wrapper"){n=r;break}return`:::${n}
`+e.trim()+`
:::
`}});const $k=e=>{if(!e)return e;const t=MZ.render(e).trim();return t?Ix(t.includes("<pre")?t:t.replace(/\n/g,"")):e},DSn=e=>{if(!e)return e;const t=new DOMParser().parseFromString(e,"text/html");t.querySelectorAll("colgroup").forEach(r=>r.remove()),t.querySelectorAll("li").forEach(r=>{const i=r.querySelector("div");if(i&&!i.querySelector("img")&&i.firstElementChild){const o=document.createDocumentFragment();o.append(" "),i.firstElementChild.childNodes.forEach(a=>{o.append(a.cloneNode(!0))}),i.replaceWith(o)}});const n=t.body.innerHTML;return Uv.turndown(n)};Cr("aie-header",pPe);Cr("aie-footer",hPe);const LSn={theme:"light",lang:"zh",contentRetentionKey:"ai-editor-content",editable:!0,draggable:!0,placeholder:"",toolbarSize:"small"};class $Sn extends Ton{constructor(t,n={}){super(n),Qt(this,"aiEditor"),this.aiEditor=t}parseHtml(t){function n(r){return new window.DOMParser().parseFromString(`<body>${r}</body>`,"text/html").body}return Oy.fromSchema(this.schema).parse(n(t),{}).content}parseMarkdown(t){const n=$k(t);return this.parseHtml(n)}insertMarkdown(t){this.commands.insertContent($k(t))}}class FSn{constructor(t){Qt(this,"customLayout",!1),Qt(this,"innerEditor"),Qt(this,"container"),Qt(this,"header"),Qt(this,"mainEl"),Qt(this,"footer"),Qt(this,"options"),Qt(this,"eventComponents",[]),this.options={...LSn,...t},this.initI18nAndInnerEditor()}initI18nAndInnerEditor(){const t=this.options.i18n||{},n={de:{translation:{...qvn,...t.de}},en:{translation:{...Wvn,...t.en}},pt:{translation:{...Yvn,...t.pt}},zh:{translation:{...Gvn,...t.zh}},es:{translation:{...Kvn,...t.es}},hi:{translation:{...Qvn,...t.hi}},id:{translation:{...Xvn,...t.id}},ja:{translation:{...Zvn,...t.ja}},ko:{translation:{...Jvn,...t.ko}},th:{translation:{...ebn,...t.th}},vi:{translation:{...tbn,...t.vi}}};for(let r of Object.keys(t))r!="de"&&r!="en"&&r!="pt"&&r!="zh"&&(n[r]={translation:{...t[r]}});us.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 pPe,this.eventComponents.push(this.header),this.footer=new hPe,this.footer.initDraggable(this.options.draggable),this.eventComponents.push(this.footer);let n=this.options.content;if(typeof n=="string"&&(this.options.contentIsMarkdown?n=$k(n):n=Ix(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 $Sn(this,{...this.options,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=Vvn(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&&Eg.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?"":l8(this.innerEditor.state.doc,{from:t.from,to:t.to})}getMarkdown(){return DSn(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 typeof t=="string"&&(t=Ix(t)),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 typeof t=="string"&&(t=Ix(t)),this.focus().clear().insert(t),this}setMarkdownContent(t){const n=$k(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,us.changeLanguage(t),this.initInnerEditor(),this}changeTheme(t){const n=typeof this.options.element=="string"?document.querySelector(this.options.element):this.options.element;t||(t=this.options.theme==="dark"?"light":"dark"),n.classList.remove(`aie-theme-${this.options.theme}`),n.classList.add(`aie-theme-${t}`),this.options.theme=t}removeRetention(){return this.options.contentRetentionKey&&localStorage.removeItem(this.options.contentRetentionKey),this}destroy(){var t,n,r,i;(n=(t=this.options).onDestroy)==null||n.call(t,this),this.innerEditor.destroy(),this.eventComponents=[],this.customLayout?((r=this.header)==null||r.remove(),this.mainEl.remove(),(i=this.footer)==null||i.remove()):this.container.remove()}isDestroyed(){return this.innerEditor.isDestroyed}}const BSn=({placeholder:e,defaultValue:t,value:n,style:r,toolbarKeys:i,onChange:o,...a})=>{const{isDarkMode:s}=PW(),l=h.useRef(null),c=h.useRef(null);return h.useEffect(()=>{if(l.current){if(!c.current){const u=new FSn({element:l.current,theme:s?"dark":"light",placeholder:e,content:t,toolbarKeys:i,image:{uploadUrl:nx(),uploadFormName:"file",uploadHeaders:{Authorization:"Bearer "+localStorage.getItem(Jm)},uploader:(d,f,p,m)=>{console.log("uploader:",d,f,p,m);const g=ln(new Date).format("YYYYMMDDHHmmss")+"_"+d.name,v=new FormData;return v.append("file",d),v.append("fileName",g),v.append("fileType",d.type),v.append("isAvatar","false"),v.append("kbType",F9),v.append("categoryUid",""),v.append("kbUid",""),v.append("client",Or),new Promise((y,b)=>{fetch(f,{method:"POST",headers:{Accept:"application/json",...p},body:v}).then(_=>_.json()).then(_=>{if(console.log("upload data:",_),_.code===200){Wt.destroy(),Wt.success(`${g} 上传成功`);const S={errorCode:0,data:{src:_.data.fileUrl,alt:g}};y(S)}else Wt.destroy(),Wt.error(`${g} 上传失败`)}).catch(_=>{b(_)})})}},video:{uploadUrl:nx(),uploadFormName:"file",uploadHeaders:{Authorization:"Bearer "+localStorage.getItem(Jm)},uploader:(d,f,p,m)=>{console.log("uploader:",d,f,p,m);const g=ln(new Date).format("YYYYMMDDHHmmss")+"_"+d.name,v=new FormData;return v.append("file",d),v.append("fileName",g),v.append("fileType",d.type),v.append("isAvatar","false"),v.append("kbType",F9),v.append("categoryUid",""),v.append("kbUid",""),v.append("client",Or),new Promise((y,b)=>{fetch(f,{method:"POST",headers:{Accept:"application/json",...p},body:v}).then(_=>_.json()).then(_=>{if(console.log("upload data:",_),_.code===200){Wt.destroy(),Wt.success(`${g} 上传成功`);const S={errorCode:0,data:{src:_.data.fileUrl,poster:"https://www.weiyuai.cn/avatars/video_poster.png"}};y(S)}else Wt.destroy(),Wt.error(`${g} 上传失败`)}).catch(_=>{b(_)})})}},attachment:{uploadUrl:nx(),uploadFormName:"file",uploadHeaders:{Authorization:"Bearer "+localStorage.getItem(Jm)},uploader:(d,f,p,m)=>{console.log("uploader:",d,f,p,m);const g=ln(new Date).format("YYYYMMDDHHmmss")+"_"+d.name,v=new FormData;return v.append("file",d),v.append("fileName",g),v.append("fileType",d.type),v.append("isAvatar","false"),v.append("kbType",F9),v.append("categoryUid",""),v.append("kbUid",""),v.append("client",Or),new Promise((y,b)=>{fetch(f,{method:"POST",headers:{Accept:"application/json",...p},body:v}).then(_=>_.json()).then(_=>{if(console.log("upload data:",_),_.code===200){Wt.destroy(),Wt.success(`${g} 上传成功`);const S={errorCode:0,data:{href:_.data.fileUrl,fileName:g}};y(S)}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)}}},[]),h.useEffect(()=>{c.current&&n!==c.current.getHtml()&&c.current.setContent(n||"")},[n]),F.jsx(F.Fragment,{children:F.jsx("div",{ref:l,...a,style:{height:"100%",...r}})})},{Header:HSn,Content:jSn}=po,USn=$o(po)`
height: 100vh;
`,zSn=$o(HSn)`
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;
`,VSn=$o(jSn)`
height: calc(100vh - 64px);
padding: 24px;
overflow: auto;
`,GSn=()=>{const e=Si(),{articleUid:t}=hK(),n=ka(),{currentKbase:r,fetchKbaseDetail:i}=Hg(),{currentArticle:o,fetchArticle:a,saving:s}=cO(),[l,c]=pe.useState(""),[u,d]=pe.useState(!0),[f,p]=pe.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)}}};pe.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 bX(y);console.log("updateArticle response:",b.data,y),b.data.code===200?Wt.success("保存成功"):Wt.error(b.data.message)};return u||!o?F.jsx("div",{style:{textAlign:"center",padding:"50px"},children:F.jsx(Nc,{size:"large"})}):F.jsxs(USn,{children:[F.jsxs(zSn,{children:[F.jsxs(Ji,{children:[F.jsx(Dn,{icon:F.jsx(bTe,{}),onClick:async()=>{await v(),n(`/kbase/${r==null?void 0:r.uid}`)},children:"返回"}),F.jsx("span",{style:{fontSize:16},children:o==null?void 0:o.title})]}),F.jsxs(Ji,{children:[F.jsx(Dn,{icon:F.jsx(wS,{}),onClick:async()=>{await v(),n(`/article/${o==null?void 0:o.uid}`)},children:"预览"}),F.jsx(Dn,{icon:F.jsx(zY,{}),onClick:()=>p(!0),children:"设置"}),F.jsx(Dn,{type:"primary",icon:F.jsx(P0t,{}),loading:s,onClick:v,children:"保存"})]})]}),F.jsx(VSn,{children:F.jsx(BSn,{placeholder:e.formatMessage({id:"agent.settings.unknown.answer.placeholder",defaultMessage:"请输入未知问题固定回复"}),value:l,toolbarKeys:DGe(),style:{height:"100%",width:"100%"},onChange:y=>{c(y)}})}),f&&F.jsx(xen,{article:o,visible:f,onClose:()=>p(!1)})]})},kZ=function(e){if(e==null)return KSn;if(typeof e=="string")return YSn(e);if(typeof e=="object")return Array.isArray(e)?WSn(e):qSn(e);if(typeof e=="function")return O8(e);throw new Error("Expected function, string, or object as test")};function WSn(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=kZ(e[n]);return O8(r);function r(...i){let o=-1;for(;++o<t.length;)if(t[o].call(this,...i))return!0;return!1}}function qSn(e){return O8(t);function t(n){let r;for(r in e)if(n[r]!==e[r])return!1;return!0}}function YSn(e){return O8(t);function t(n){return n&&n.type===e}}function O8(e){return t;function t(n,...r){return!!(n&&typeof n=="object"&&"type"in n&&e.call(this,n,...r))}}function KSn(){return!0}const QSn=!0,Ihe=!1,XSn="skip",S3e=function(e,t,n,r){typeof t=="function"&&typeof n!="function"&&(r=n,n=t,t=null);const i=kZ(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=[],p,m,g;if((!t||i(s,l,c[c.length-1]||null))&&(f=ZSn(n(s,c)),f[0]===Ihe))return f;if(s.children&&f[0]!==XSn)for(m=(r?s.children.length:-1)+o,g=c.concat(s);m>-1&&m<s.children.length;){if(p=a(s.children[m],m,g)(),p[0]===Ihe)return p;m=typeof p[1]=="number"?p[1]:m+o}return f}}};function ZSn(e){return Array.isArray(e)?e:typeof e=="number"?[QSn,e]:[e]}const PZ=function(e,t,n,r){typeof t=="function"&&typeof n!="function"&&(r=n,n=t,t=null),S3e(e,t,i,r);function i(o,a){const s=a[a.length-1];return n(o,s?s.children.indexOf(o):null,s)}},DZ={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}}},mf={}.hasOwnProperty,B7={root:{children:Nhe},doctype:eEn,comment:tEn,element:{tagName:C3e,properties:nEn,children:Nhe},text:{value:oEn},"*":{data:Mhe,position:Mhe}};function JSn(e,t){let n={type:"root",children:[]};if(e&&typeof e=="object"&&e.type){const r=E3e(Object.assign({},DZ,t||{}),e,[]);r&&(Array.isArray(r)?r.length===1?n=r[0]:n.children=r:n=r)}return n}function E3e(e,t,n){const r=t&&t.type,i={type:t.type};let o;if(mf.call(B7,r)){let a=B7[r];if(typeof a=="function"&&(a=a(e,t)),a){const s=Object.assign({},a,B7["*"]);let l;o=!0;for(l in s)if(mf.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 Nhe(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=E3e(e,t[o],r);a&&(Array.isArray(a)?i.push(...a):i.push(a))}n.type==="element"&&r.pop()}return i}function eEn(e){return e.allowDoctypes?{name:rEn}:void 0}function tEn(e){return e.allowComments?{value:iEn}:void 0}function nEn(e,t,n,r){const i=C3e(e,n.tagName,n,r),o=e.attributes||{},a=e.required||{},s=t||{},l=Object.assign({},khe(o["*"]),khe(i&&mf.call(o,i)?o[i]:[])),c={};let u;for(u in s)if(mf.call(s,u)){let d=s[u],f;if(mf.call(l,u))f=l[u];else if(lEn(u)&&mf.call(l,"data*"))f=l["data*"];else continue;d=Array.isArray(d)?aEn(e,d,u,f):x3e(e,d,u,f),d!=null&&(c[u]=d)}if(i&&mf.call(a,i))for(u in a[i])mf.call(c,u)||(c[u]=a[i][u]);return c}function rEn(){return"html"}function C3e(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&&mf.call(e.ancestors,i)){for(;++o<e.ancestors[i].length;)if(r.includes(e.ancestors[i][o]))return i;return!1}return i}function iEn(e,t){const n=typeof t=="string"?t:"",r=n.indexOf("-->");return r<0?n:n.slice(0,r)}function oEn(e,t){return typeof t=="string"?t:""}function Mhe(e,t){return t}function aEn(e,t,n,r){let i=-1;const o=[];for(;++i<t.length;){const a=x3e(e,t[i],n,r);a!=null&&o.push(a)}return o}function x3e(e,t,n,r){if((typeof t=="boolean"||typeof t=="number"||typeof t=="string")&&sEn(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 sEn(e,t,n){const r=String(t),i=r.indexOf(":"),o=r.indexOf("?"),a=r.indexOf("#"),s=r.indexOf("/"),l=e.protocols&&mf.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 khe(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 lEn(e){return e.length>4&&e.slice(0,4).toLowerCase()==="data"}var Wd={};const cEn=[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];Wd.REPLACEMENT_CHARACTER="<22>";Wd.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};Wd.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]};Wd.isSurrogate=function(e){return e>=55296&&e<=57343};Wd.isSurrogatePair=function(e){return e>=56320&&e<=57343};Wd.getSurrogatePairCodePoint=function(e,t){return(e-55296)*1024+9216+t};Wd.isControlCodePoint=function(e){return e!==32&&e!==10&&e!==13&&e!==9&&e!==12&&e>=1&&e<=31||e>=127&&e<=159};Wd.isUndefinedCodePoint=function(e){return e>=64976&&e<=65007||cEn.indexOf(e)>-1};var LZ={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 Lb=Wd,H7=LZ,c0=Lb.CODE_POINTS,uEn=65536;let dEn=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=uEn}_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(Lb.isSurrogatePair(n))return this.pos++,this._addGap(),Lb.getSurrogatePairCodePoint(t,n)}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,c0.EOF;return this._err(H7.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,c0.EOF;let t=this.html.charCodeAt(this.pos);return this.skipNextNewLine&&t===c0.LINE_FEED?(this.skipNextNewLine=!1,this._addGap(),this.advance()):t===c0.CARRIAGE_RETURN?(this.skipNextNewLine=!0,c0.LINE_FEED):(this.skipNextNewLine=!1,Lb.isSurrogate(t)&&(t=this._processSurrogate(t)),t>31&&t<127||t===c0.LINE_FEED||t===c0.CARRIAGE_RETURN||t>159&&t<64976||this._checkForProblematicCharacters(t),t)}_checkForProblematicCharacters(t){Lb.isControlCodePoint(t)?this._err(H7.controlCharacterInInputStream):Lb.isUndefinedCodePoint(t)&&this._err(H7.noncharacterInInputStream)}retreat(){this.pos===this.lastGapPos&&(this.lastGapPos=this.gapStack.pop(),this.pos--),this.pos--}};var fEn=dEn,pEn=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 hEn=fEn,Pi=Wd,Y0=pEn,Kt=LZ,Je=Pi.CODE_POINTS,u0=Pi.CODE_POINT_SEQUENCES,mEn={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},w3e=1,T3e=2,O3e=4,gEn=w3e|T3e|O3e,jr="DATA_STATE",$b="RCDATA_STATE",VC="RAWTEXT_STATE",wp="SCRIPT_DATA_STATE",R3e="PLAINTEXT_STATE",Phe="TAG_OPEN_STATE",Dhe="END_TAG_OPEN_STATE",j7="TAG_NAME_STATE",Lhe="RCDATA_LESS_THAN_SIGN_STATE",$he="RCDATA_END_TAG_OPEN_STATE",Fhe="RCDATA_END_TAG_NAME_STATE",Bhe="RAWTEXT_LESS_THAN_SIGN_STATE",Hhe="RAWTEXT_END_TAG_OPEN_STATE",jhe="RAWTEXT_END_TAG_NAME_STATE",Uhe="SCRIPT_DATA_LESS_THAN_SIGN_STATE",zhe="SCRIPT_DATA_END_TAG_OPEN_STATE",Vhe="SCRIPT_DATA_END_TAG_NAME_STATE",Ghe="SCRIPT_DATA_ESCAPE_START_STATE",Whe="SCRIPT_DATA_ESCAPE_START_DASH_STATE",$u="SCRIPT_DATA_ESCAPED_STATE",qhe="SCRIPT_DATA_ESCAPED_DASH_STATE",U7="SCRIPT_DATA_ESCAPED_DASH_DASH_STATE",IA="SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN_STATE",Yhe="SCRIPT_DATA_ESCAPED_END_TAG_OPEN_STATE",Khe="SCRIPT_DATA_ESCAPED_END_TAG_NAME_STATE",Qhe="SCRIPT_DATA_DOUBLE_ESCAPE_START_STATE",pp="SCRIPT_DATA_DOUBLE_ESCAPED_STATE",Xhe="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_STATE",Zhe="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH_STATE",NA="SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN_STATE",Jhe="SCRIPT_DATA_DOUBLE_ESCAPE_END_STATE",Zd="BEFORE_ATTRIBUTE_NAME_STATE",MA="ATTRIBUTE_NAME_STATE",z7="AFTER_ATTRIBUTE_NAME_STATE",V7="BEFORE_ATTRIBUTE_VALUE_STATE",kA="ATTRIBUTE_VALUE_DOUBLE_QUOTED_STATE",PA="ATTRIBUTE_VALUE_SINGLE_QUOTED_STATE",DA="ATTRIBUTE_VALUE_UNQUOTED_STATE",G7="AFTER_ATTRIBUTE_VALUE_QUOTED_STATE",Bh="SELF_CLOSING_START_TAG_STATE",oC="BOGUS_COMMENT_STATE",eme="MARKUP_DECLARATION_OPEN_STATE",tme="COMMENT_START_STATE",nme="COMMENT_START_DASH_STATE",Hh="COMMENT_STATE",rme="COMMENT_LESS_THAN_SIGN_STATE",ime="COMMENT_LESS_THAN_SIGN_BANG_STATE",ome="COMMENT_LESS_THAN_SIGN_BANG_DASH_STATE",ame="COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH_STATE",LA="COMMENT_END_DASH_STATE",$A="COMMENT_END_STATE",sme="COMMENT_END_BANG_STATE",lme="DOCTYPE_STATE",FA="BEFORE_DOCTYPE_NAME_STATE",BA="DOCTYPE_NAME_STATE",cme="AFTER_DOCTYPE_NAME_STATE",ume="AFTER_DOCTYPE_PUBLIC_KEYWORD_STATE",dme="BEFORE_DOCTYPE_PUBLIC_IDENTIFIER_STATE",W7="DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED_STATE",q7="DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED_STATE",Y7="AFTER_DOCTYPE_PUBLIC_IDENTIFIER_STATE",fme="BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS_STATE",pme="AFTER_DOCTYPE_SYSTEM_KEYWORD_STATE",hme="BEFORE_DOCTYPE_SYSTEM_IDENTIFIER_STATE",aC="DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED_STATE",sC="DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED_STATE",K7="AFTER_DOCTYPE_SYSTEM_IDENTIFIER_STATE",hp="BOGUS_DOCTYPE_STATE",HA="CDATA_SECTION_STATE",mme="CDATA_SECTION_BRACKET_STATE",gme="CDATA_SECTION_END_STATE",Cb="CHARACTER_REFERENCE_STATE",vme="NAMED_CHARACTER_REFERENCE_STATE",bme="AMBIGUOS_AMPERSAND_STATE",yme="NUMERIC_CHARACTER_REFERENCE_STATE",_me="HEXADEMICAL_CHARACTER_REFERENCE_START_STATE",Sme="DECIMAL_CHARACTER_REFERENCE_START_STATE",Eme="HEXADEMICAL_CHARACTER_REFERENCE_STATE",Cme="DECIMAL_CHARACTER_REFERENCE_STATE",lC="NUMERIC_CHARACTER_REFERENCE_END_STATE";function no(e){return e===Je.SPACE||e===Je.LINE_FEED||e===Je.TABULATION||e===Je.FORM_FEED}function $x(e){return e>=Je.DIGIT_0&&e<=Je.DIGIT_9}function Uu(e){return e>=Je.LATIN_CAPITAL_A&&e<=Je.LATIN_CAPITAL_Z}function _0(e){return e>=Je.LATIN_SMALL_A&&e<=Je.LATIN_SMALL_Z}function rm(e){return _0(e)||Uu(e)}function Q7(e){return rm(e)||$x(e)}function A3e(e){return e>=Je.LATIN_CAPITAL_A&&e<=Je.LATIN_CAPITAL_F}function I3e(e){return e>=Je.LATIN_SMALL_A&&e<=Je.LATIN_SMALL_F}function vEn(e){return $x(e)||A3e(e)||I3e(e)}function yN(e){return e+32}function Ho(e){return e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode(e>>>10&1023|55296)+String.fromCharCode(56320|e&1023))}function jh(e){return String.fromCharCode(yN(e))}function xme(e,t){const n=Y0[++e];let r=++e,i=r+n-1;for(;r<=i;){const o=r+i>>>1,a=Y0[o];if(a<t)r=o+1;else if(a>t)i=o-1;else return Y0[o+n]}return-1}let Mu=class pl{constructor(){this.preprocessor=new hEn,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:pl.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===Je.EOF){o=!1;break}if(c=t[s],l!==c&&(r||l!==yN(c))){o=!1;break}}if(!o)for(;i--;)this._unconsume();return o}_isTempBufferEqualToScriptString(){if(this.tempBuff.length!==u0.SCRIPT_STRING.length)return!1;for(let t=0;t<this.tempBuff.length;t++)if(this.tempBuff[t]!==u0.SCRIPT_STRING[t])return!1;return!0}_createStartTagToken(){this.currentToken={type:pl.START_TAG_TOKEN,tagName:"",selfClosing:!1,ackSelfClosing:!1,attrs:[]}}_createEndTagToken(){this.currentToken={type:pl.END_TAG_TOKEN,tagName:"",selfClosing:!1,attrs:[]}}_createCommentToken(){this.currentToken={type:pl.COMMENT_TOKEN,data:""}}_createDoctypeToken(t){this.currentToken={type:pl.DOCTYPE_TOKEN,name:t,forceQuirks:!1,publicId:null,systemId:null}}_createCharacterToken(t,n){this.currentCharacterToken={type:t,chars:n}}_createEOFToken(){this.currentToken={type:pl.EOF_TOKEN}}_createAttr(t){this.currentAttr={name:t,value:""}}_leaveAttrName(t){pl.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===pl.START_TAG_TOKEN?this.lastStartTagName=t.tagName:t.type===pl.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=pl.CHARACTER_TOKEN;no(t)?n=pl.WHITESPACE_CHARACTER_TOKEN:t===Je.NULL&&(n=pl.NULL_CHARACTER_TOKEN),this._appendCharToCurrentCharacterToken(n,Ho(t))}_emitSeveralCodePoints(t){for(let n=0;n<t.length;n++)this._emitCodePoint(t[n])}_emitChars(t){this._appendCharToCurrentCharacterToken(pl.CHARACTER_TOKEN,t)}_matchNamedCharacterReference(t){let n=null,r=1,i=xme(0,t);for(this.tempBuff.push(t);i>-1;){const o=Y0[i],a=o<gEn;a&&o&w3e&&(n=o&T3e?[Y0[++i],Y0[++i]]:[Y0[++i]],r=0);const l=this._consume();if(this.tempBuff.push(l),r++,l===Je.EOF)break;a?i=o&O3e?xme(i,l):-1:i=l===o?++i:-1}for(;r--;)this.tempBuff.pop(),this._unconsume();return n}_isCharacterReferenceInAttribute(){return this.returnState===kA||this.returnState===PA||this.returnState===DA}_isCharacterReferenceAttributeQuirk(t){if(!t&&this._isCharacterReferenceInAttribute()){const n=this._consume();return this._unconsume(),n===Je.EQUALS_SIGN||Q7(n)}return!1}_flushCodePointsConsumedAsCharacterReference(){if(this._isCharacterReferenceInAttribute())for(let t=0;t<this.tempBuff.length;t++)this.currentAttr.value+=Ho(this.tempBuff[t]);else this._emitSeveralCodePoints(this.tempBuff);this.tempBuff=[]}[jr](t){this.preprocessor.dropParsedChunk(),t===Je.LESS_THAN_SIGN?this.state=Phe:t===Je.AMPERSAND?(this.returnState=jr,this.state=Cb):t===Je.NULL?(this._err(Kt.unexpectedNullCharacter),this._emitCodePoint(t)):t===Je.EOF?this._emitEOFToken():this._emitCodePoint(t)}[$b](t){this.preprocessor.dropParsedChunk(),t===Je.AMPERSAND?(this.returnState=$b,this.state=Cb):t===Je.LESS_THAN_SIGN?this.state=Lhe:t===Je.NULL?(this._err(Kt.unexpectedNullCharacter),this._emitChars(Pi.REPLACEMENT_CHARACTER)):t===Je.EOF?this._emitEOFToken():this._emitCodePoint(t)}[VC](t){this.preprocessor.dropParsedChunk(),t===Je.LESS_THAN_SIGN?this.state=Bhe:t===Je.NULL?(this._err(Kt.unexpectedNullCharacter),this._emitChars(Pi.REPLACEMENT_CHARACTER)):t===Je.EOF?this._emitEOFToken():this._emitCodePoint(t)}[wp](t){this.preprocessor.dropParsedChunk(),t===Je.LESS_THAN_SIGN?this.state=Uhe:t===Je.NULL?(this._err(Kt.unexpectedNullCharacter),this._emitChars(Pi.REPLACEMENT_CHARACTER)):t===Je.EOF?this._emitEOFToken():this._emitCodePoint(t)}[R3e](t){this.preprocessor.dropParsedChunk(),t===Je.NULL?(this._err(Kt.unexpectedNullCharacter),this._emitChars(Pi.REPLACEMENT_CHARACTER)):t===Je.EOF?this._emitEOFToken():this._emitCodePoint(t)}[Phe](t){t===Je.EXCLAMATION_MARK?this.state=eme:t===Je.SOLIDUS?this.state=Dhe:rm(t)?(this._createStartTagToken(),this._reconsumeInState(j7)):t===Je.QUESTION_MARK?(this._err(Kt.unexpectedQuestionMarkInsteadOfTagName),this._createCommentToken(),this._reconsumeInState(oC)):t===Je.EOF?(this._err(Kt.eofBeforeTagName),this._emitChars("<"),this._emitEOFToken()):(this._err(Kt.invalidFirstCharacterOfTagName),this._emitChars("<"),this._reconsumeInState(jr))}[Dhe](t){rm(t)?(this._createEndTagToken(),this._reconsumeInState(j7)):t===Je.GREATER_THAN_SIGN?(this._err(Kt.missingEndTagName),this.state=jr):t===Je.EOF?(this._err(Kt.eofBeforeTagName),this._emitChars("</"),this._emitEOFToken()):(this._err(Kt.invalidFirstCharacterOfTagName),this._createCommentToken(),this._reconsumeInState(oC))}[j7](t){no(t)?this.state=Zd:t===Je.SOLIDUS?this.state=Bh:t===Je.GREATER_THAN_SIGN?(this.state=jr,this._emitCurrentToken()):Uu(t)?this.currentToken.tagName+=jh(t):t===Je.NULL?(this._err(Kt.unexpectedNullCharacter),this.currentToken.tagName+=Pi.REPLACEMENT_CHARACTER):t===Je.EOF?(this._err(Kt.eofInTag),this._emitEOFToken()):this.currentToken.tagName+=Ho(t)}[Lhe](t){t===Je.SOLIDUS?(this.tempBuff=[],this.state=$he):(this._emitChars("<"),this._reconsumeInState($b))}[$he](t){rm(t)?(this._createEndTagToken(),this._reconsumeInState(Fhe)):(this._emitChars("</"),this._reconsumeInState($b))}[Fhe](t){if(Uu(t))this.currentToken.tagName+=jh(t),this.tempBuff.push(t);else if(_0(t))this.currentToken.tagName+=Ho(t),this.tempBuff.push(t);else{if(this.lastStartTagName===this.currentToken.tagName){if(no(t)){this.state=Zd;return}if(t===Je.SOLIDUS){this.state=Bh;return}if(t===Je.GREATER_THAN_SIGN){this.state=jr,this._emitCurrentToken();return}}this._emitChars("</"),this._emitSeveralCodePoints(this.tempBuff),this._reconsumeInState($b)}}[Bhe](t){t===Je.SOLIDUS?(this.tempBuff=[],this.state=Hhe):(this._emitChars("<"),this._reconsumeInState(VC))}[Hhe](t){rm(t)?(this._createEndTagToken(),this._reconsumeInState(jhe)):(this._emitChars("</"),this._reconsumeInState(VC))}[jhe](t){if(Uu(t))this.currentToken.tagName+=jh(t),this.tempBuff.push(t);else if(_0(t))this.currentToken.tagName+=Ho(t),this.tempBuff.push(t);else{if(this.lastStartTagName===this.currentToken.tagName){if(no(t)){this.state=Zd;return}if(t===Je.SOLIDUS){this.state=Bh;return}if(t===Je.GREATER_THAN_SIGN){this._emitCurrentToken(),this.state=jr;return}}this._emitChars("</"),this._emitSeveralCodePoints(this.tempBuff),this._reconsumeInState(VC)}}[Uhe](t){t===Je.SOLIDUS?(this.tempBuff=[],this.state=zhe):t===Je.EXCLAMATION_MARK?(this.state=Ghe,this._emitChars("<!")):(this._emitChars("<"),this._reconsumeInState(wp))}[zhe](t){rm(t)?(this._createEndTagToken(),this._reconsumeInState(Vhe)):(this._emitChars("</"),this._reconsumeInState(wp))}[Vhe](t){if(Uu(t))this.currentToken.tagName+=jh(t),this.tempBuff.push(t);else if(_0(t))this.currentToken.tagName+=Ho(t),this.tempBuff.push(t);else{if(this.lastStartTagName===this.currentToken.tagName){if(no(t)){this.state=Zd;return}else if(t===Je.SOLIDUS){this.state=Bh;return}else if(t===Je.GREATER_THAN_SIGN){this._emitCurrentToken(),this.state=jr;return}}this._emitChars("</"),this._emitSeveralCodePoints(this.tempBuff),this._reconsumeInState(wp)}}[Ghe](t){t===Je.HYPHEN_MINUS?(this.state=Whe,this._emitChars("-")):this._reconsumeInState(wp)}[Whe](t){t===Je.HYPHEN_MINUS?(this.state=U7,this._emitChars("-")):this._reconsumeInState(wp)}[$u](t){t===Je.HYPHEN_MINUS?(this.state=qhe,this._emitChars("-")):t===Je.LESS_THAN_SIGN?this.state=IA:t===Je.NULL?(this._err(Kt.unexpectedNullCharacter),this._emitChars(Pi.REPLACEMENT_CHARACTER)):t===Je.EOF?(this._err(Kt.eofInScriptHtmlCommentLikeText),this._emitEOFToken()):this._emitCodePoint(t)}[qhe](t){t===Je.HYPHEN_MINUS?(this.state=U7,this._emitChars("-")):t===Je.LESS_THAN_SIGN?this.state=IA:t===Je.NULL?(this._err(Kt.unexpectedNullCharacter),this.state=$u,this._emitChars(Pi.REPLACEMENT_CHARACTER)):t===Je.EOF?(this._err(Kt.eofInScriptHtmlCommentLikeText),this._emitEOFToken()):(this.state=$u,this._emitCodePoint(t))}[U7](t){t===Je.HYPHEN_MINUS?this._emitChars("-"):t===Je.LESS_THAN_SIGN?this.state=IA:t===Je.GREATER_THAN_SIGN?(this.state=wp,this._emitChars(">")):t===Je.NULL?(this._err(Kt.unexpectedNullCharacter),this.state=$u,this._emitChars(Pi.REPLACEMENT_CHARACTER)):t===Je.EOF?(this._err(Kt.eofInScriptHtmlCommentLikeText),this._emitEOFToken()):(this.state=$u,this._emitCodePoint(t))}[IA](t){t===Je.SOLIDUS?(this.tempBuff=[],this.state=Yhe):rm(t)?(this.tempBuff=[],this._emitChars("<"),this._reconsumeInState(Qhe)):(this._emitChars("<"),this._reconsumeInState($u))}[Yhe](t){rm(t)?(this._createEndTagToken(),this._reconsumeInState(Khe)):(this._emitChars("</"),this._reconsumeInState($u))}[Khe](t){if(Uu(t))this.currentToken.tagName+=jh(t),this.tempBuff.push(t);else if(_0(t))this.currentToken.tagName+=Ho(t),this.tempBuff.push(t);else{if(this.lastStartTagName===this.currentToken.tagName){if(no(t)){this.state=Zd;return}if(t===Je.SOLIDUS){this.state=Bh;return}if(t===Je.GREATER_THAN_SIGN){this._emitCurrentToken(),this.state=jr;return}}this._emitChars("</"),this._emitSeveralCodePoints(this.tempBuff),this._reconsumeInState($u)}}[Qhe](t){no(t)||t===Je.SOLIDUS||t===Je.GREATER_THAN_SIGN?(this.state=this._isTempBufferEqualToScriptString()?pp:$u,this._emitCodePoint(t)):Uu(t)?(this.tempBuff.push(yN(t)),this._emitCodePoint(t)):_0(t)?(this.tempBuff.push(t),this._emitCodePoint(t)):this._reconsumeInState($u)}[pp](t){t===Je.HYPHEN_MINUS?(this.state=Xhe,this._emitChars("-")):t===Je.LESS_THAN_SIGN?(this.state=NA,this._emitChars("<")):t===Je.NULL?(this._err(Kt.unexpectedNullCharacter),this._emitChars(Pi.REPLACEMENT_CHARACTER)):t===Je.EOF?(this._err(Kt.eofInScriptHtmlCommentLikeText),this._emitEOFToken()):this._emitCodePoint(t)}[Xhe](t){t===Je.HYPHEN_MINUS?(this.state=Zhe,this._emitChars("-")):t===Je.LESS_THAN_SIGN?(this.state=NA,this._emitChars("<")):t===Je.NULL?(this._err(Kt.unexpectedNullCharacter),this.state=pp,this._emitChars(Pi.REPLACEMENT_CHARACTER)):t===Je.EOF?(this._err(Kt.eofInScriptHtmlCommentLikeText),this._emitEOFToken()):(this.state=pp,this._emitCodePoint(t))}[Zhe](t){t===Je.HYPHEN_MINUS?this._emitChars("-"):t===Je.LESS_THAN_SIGN?(this.state=NA,this._emitChars("<")):t===Je.GREATER_THAN_SIGN?(this.state=wp,this._emitChars(">")):t===Je.NULL?(this._err(Kt.unexpectedNullCharacter),this.state=pp,this._emitChars(Pi.REPLACEMENT_CHARACTER)):t===Je.EOF?(this._err(Kt.eofInScriptHtmlCommentLikeText),this._emitEOFToken()):(this.state=pp,this._emitCodePoint(t))}[NA](t){t===Je.SOLIDUS?(this.tempBuff=[],this.state=Jhe,this._emitChars("/")):this._reconsumeInState(pp)}[Jhe](t){no(t)||t===Je.SOLIDUS||t===Je.GREATER_THAN_SIGN?(this.state=this._isTempBufferEqualToScriptString()?$u:pp,this._emitCodePoint(t)):Uu(t)?(this.tempBuff.push(yN(t)),this._emitCodePoint(t)):_0(t)?(this.tempBuff.push(t),this._emitCodePoint(t)):this._reconsumeInState(pp)}[Zd](t){no(t)||(t===Je.SOLIDUS||t===Je.GREATER_THAN_SIGN||t===Je.EOF?this._reconsumeInState(z7):t===Je.EQUALS_SIGN?(this._err(Kt.unexpectedEqualsSignBeforeAttributeName),this._createAttr("="),this.state=MA):(this._createAttr(""),this._reconsumeInState(MA)))}[MA](t){no(t)||t===Je.SOLIDUS||t===Je.GREATER_THAN_SIGN||t===Je.EOF?(this._leaveAttrName(z7),this._unconsume()):t===Je.EQUALS_SIGN?this._leaveAttrName(V7):Uu(t)?this.currentAttr.name+=jh(t):t===Je.QUOTATION_MARK||t===Je.APOSTROPHE||t===Je.LESS_THAN_SIGN?(this._err(Kt.unexpectedCharacterInAttributeName),this.currentAttr.name+=Ho(t)):t===Je.NULL?(this._err(Kt.unexpectedNullCharacter),this.currentAttr.name+=Pi.REPLACEMENT_CHARACTER):this.currentAttr.name+=Ho(t)}[z7](t){no(t)||(t===Je.SOLIDUS?this.state=Bh:t===Je.EQUALS_SIGN?this.state=V7:t===Je.GREATER_THAN_SIGN?(this.state=jr,this._emitCurrentToken()):t===Je.EOF?(this._err(Kt.eofInTag),this._emitEOFToken()):(this._createAttr(""),this._reconsumeInState(MA)))}[V7](t){no(t)||(t===Je.QUOTATION_MARK?this.state=kA:t===Je.APOSTROPHE?this.state=PA:t===Je.GREATER_THAN_SIGN?(this._err(Kt.missingAttributeValue),this.state=jr,this._emitCurrentToken()):this._reconsumeInState(DA))}[kA](t){t===Je.QUOTATION_MARK?this.state=G7:t===Je.AMPERSAND?(this.returnState=kA,this.state=Cb):t===Je.NULL?(this._err(Kt.unexpectedNullCharacter),this.currentAttr.value+=Pi.REPLACEMENT_CHARACTER):t===Je.EOF?(this._err(Kt.eofInTag),this._emitEOFToken()):this.currentAttr.value+=Ho(t)}[PA](t){t===Je.APOSTROPHE?this.state=G7:t===Je.AMPERSAND?(this.returnState=PA,this.state=Cb):t===Je.NULL?(this._err(Kt.unexpectedNullCharacter),this.currentAttr.value+=Pi.REPLACEMENT_CHARACTER):t===Je.EOF?(this._err(Kt.eofInTag),this._emitEOFToken()):this.currentAttr.value+=Ho(t)}[DA](t){no(t)?this._leaveAttrValue(Zd):t===Je.AMPERSAND?(this.returnState=DA,this.state=Cb):t===Je.GREATER_THAN_SIGN?(this._leaveAttrValue(jr),this._emitCurrentToken()):t===Je.NULL?(this._err(Kt.unexpectedNullCharacter),this.currentAttr.value+=Pi.REPLACEMENT_CHARACTER):t===Je.QUOTATION_MARK||t===Je.APOSTROPHE||t===Je.LESS_THAN_SIGN||t===Je.EQUALS_SIGN||t===Je.GRAVE_ACCENT?(this._err(Kt.unexpectedCharacterInUnquotedAttributeValue),this.currentAttr.value+=Ho(t)):t===Je.EOF?(this._err(Kt.eofInTag),this._emitEOFToken()):this.currentAttr.value+=Ho(t)}[G7](t){no(t)?this._leaveAttrValue(Zd):t===Je.SOLIDUS?this._leaveAttrValue(Bh):t===Je.GREATER_THAN_SIGN?(this._leaveAttrValue(jr),this._emitCurrentToken()):t===Je.EOF?(this._err(Kt.eofInTag),this._emitEOFToken()):(this._err(Kt.missingWhitespaceBetweenAttributes),this._reconsumeInState(Zd))}[Bh](t){t===Je.GREATER_THAN_SIGN?(this.currentToken.selfClosing=!0,this.state=jr,this._emitCurrentToken()):t===Je.EOF?(this._err(Kt.eofInTag),this._emitEOFToken()):(this._err(Kt.unexpectedSolidusInTag),this._reconsumeInState(Zd))}[oC](t){t===Je.GREATER_THAN_SIGN?(this.state=jr,this._emitCurrentToken()):t===Je.EOF?(this._emitCurrentToken(),this._emitEOFToken()):t===Je.NULL?(this._err(Kt.unexpectedNullCharacter),this.currentToken.data+=Pi.REPLACEMENT_CHARACTER):this.currentToken.data+=Ho(t)}[eme](t){this._consumeSequenceIfMatch(u0.DASH_DASH_STRING,t,!0)?(this._createCommentToken(),this.state=tme):this._consumeSequenceIfMatch(u0.DOCTYPE_STRING,t,!1)?this.state=lme:this._consumeSequenceIfMatch(u0.CDATA_START_STRING,t,!0)?this.allowCDATA?this.state=HA:(this._err(Kt.cdataInHtmlContent),this._createCommentToken(),this.currentToken.data="[CDATA[",this.state=oC):this._ensureHibernation()||(this._err(Kt.incorrectlyOpenedComment),this._createCommentToken(),this._reconsumeInState(oC))}[tme](t){t===Je.HYPHEN_MINUS?this.state=nme:t===Je.GREATER_THAN_SIGN?(this._err(Kt.abruptClosingOfEmptyComment),this.state=jr,this._emitCurrentToken()):this._reconsumeInState(Hh)}[nme](t){t===Je.HYPHEN_MINUS?this.state=$A:t===Je.GREATER_THAN_SIGN?(this._err(Kt.abruptClosingOfEmptyComment),this.state=jr,this._emitCurrentToken()):t===Je.EOF?(this._err(Kt.eofInComment),this._emitCurrentToken(),this._emitEOFToken()):(this.currentToken.data+="-",this._reconsumeInState(Hh))}[Hh](t){t===Je.HYPHEN_MINUS?this.state=LA:t===Je.LESS_THAN_SIGN?(this.currentToken.data+="<",this.state=rme):t===Je.NULL?(this._err(Kt.unexpectedNullCharacter),this.currentToken.data+=Pi.REPLACEMENT_CHARACTER):t===Je.EOF?(this._err(Kt.eofInComment),this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.data+=Ho(t)}[rme](t){t===Je.EXCLAMATION_MARK?(this.currentToken.data+="!",this.state=ime):t===Je.LESS_THAN_SIGN?this.currentToken.data+="!":this._reconsumeInState(Hh)}[ime](t){t===Je.HYPHEN_MINUS?this.state=ome:this._reconsumeInState(Hh)}[ome](t){t===Je.HYPHEN_MINUS?this.state=ame:this._reconsumeInState(LA)}[ame](t){t!==Je.GREATER_THAN_SIGN&&t!==Je.EOF&&this._err(Kt.nestedComment),this._reconsumeInState($A)}[LA](t){t===Je.HYPHEN_MINUS?this.state=$A:t===Je.EOF?(this._err(Kt.eofInComment),this._emitCurrentToken(),this._emitEOFToken()):(this.currentToken.data+="-",this._reconsumeInState(Hh))}[$A](t){t===Je.GREATER_THAN_SIGN?(this.state=jr,this._emitCurrentToken()):t===Je.EXCLAMATION_MARK?this.state=sme:t===Je.HYPHEN_MINUS?this.currentToken.data+="-":t===Je.EOF?(this._err(Kt.eofInComment),this._emitCurrentToken(),this._emitEOFToken()):(this.currentToken.data+="--",this._reconsumeInState(Hh))}[sme](t){t===Je.HYPHEN_MINUS?(this.currentToken.data+="--!",this.state=LA):t===Je.GREATER_THAN_SIGN?(this._err(Kt.incorrectlyClosedComment),this.state=jr,this._emitCurrentToken()):t===Je.EOF?(this._err(Kt.eofInComment),this._emitCurrentToken(),this._emitEOFToken()):(this.currentToken.data+="--!",this._reconsumeInState(Hh))}[lme](t){no(t)?this.state=FA:t===Je.GREATER_THAN_SIGN?this._reconsumeInState(FA):t===Je.EOF?(this._err(Kt.eofInDoctype),this._createDoctypeToken(null),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(Kt.missingWhitespaceBeforeDoctypeName),this._reconsumeInState(FA))}[FA](t){no(t)||(Uu(t)?(this._createDoctypeToken(jh(t)),this.state=BA):t===Je.NULL?(this._err(Kt.unexpectedNullCharacter),this._createDoctypeToken(Pi.REPLACEMENT_CHARACTER),this.state=BA):t===Je.GREATER_THAN_SIGN?(this._err(Kt.missingDoctypeName),this._createDoctypeToken(null),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=jr):t===Je.EOF?(this._err(Kt.eofInDoctype),this._createDoctypeToken(null),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._createDoctypeToken(Ho(t)),this.state=BA))}[BA](t){no(t)?this.state=cme:t===Je.GREATER_THAN_SIGN?(this.state=jr,this._emitCurrentToken()):Uu(t)?this.currentToken.name+=jh(t):t===Je.NULL?(this._err(Kt.unexpectedNullCharacter),this.currentToken.name+=Pi.REPLACEMENT_CHARACTER):t===Je.EOF?(this._err(Kt.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.name+=Ho(t)}[cme](t){no(t)||(t===Je.GREATER_THAN_SIGN?(this.state=jr,this._emitCurrentToken()):t===Je.EOF?(this._err(Kt.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this._consumeSequenceIfMatch(u0.PUBLIC_STRING,t,!1)?this.state=ume:this._consumeSequenceIfMatch(u0.SYSTEM_STRING,t,!1)?this.state=pme:this._ensureHibernation()||(this._err(Kt.invalidCharacterSequenceAfterDoctypeName),this.currentToken.forceQuirks=!0,this._reconsumeInState(hp)))}[ume](t){no(t)?this.state=dme:t===Je.QUOTATION_MARK?(this._err(Kt.missingWhitespaceAfterDoctypePublicKeyword),this.currentToken.publicId="",this.state=W7):t===Je.APOSTROPHE?(this._err(Kt.missingWhitespaceAfterDoctypePublicKeyword),this.currentToken.publicId="",this.state=q7):t===Je.GREATER_THAN_SIGN?(this._err(Kt.missingDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this.state=jr,this._emitCurrentToken()):t===Je.EOF?(this._err(Kt.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(Kt.missingQuoteBeforeDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(hp))}[dme](t){no(t)||(t===Je.QUOTATION_MARK?(this.currentToken.publicId="",this.state=W7):t===Je.APOSTROPHE?(this.currentToken.publicId="",this.state=q7):t===Je.GREATER_THAN_SIGN?(this._err(Kt.missingDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this.state=jr,this._emitCurrentToken()):t===Je.EOF?(this._err(Kt.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(Kt.missingQuoteBeforeDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(hp)))}[W7](t){t===Je.QUOTATION_MARK?this.state=Y7:t===Je.NULL?(this._err(Kt.unexpectedNullCharacter),this.currentToken.publicId+=Pi.REPLACEMENT_CHARACTER):t===Je.GREATER_THAN_SIGN?(this._err(Kt.abruptDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=jr):t===Je.EOF?(this._err(Kt.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.publicId+=Ho(t)}[q7](t){t===Je.APOSTROPHE?this.state=Y7:t===Je.NULL?(this._err(Kt.unexpectedNullCharacter),this.currentToken.publicId+=Pi.REPLACEMENT_CHARACTER):t===Je.GREATER_THAN_SIGN?(this._err(Kt.abruptDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=jr):t===Je.EOF?(this._err(Kt.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.publicId+=Ho(t)}[Y7](t){no(t)?this.state=fme:t===Je.GREATER_THAN_SIGN?(this.state=jr,this._emitCurrentToken()):t===Je.QUOTATION_MARK?(this._err(Kt.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),this.currentToken.systemId="",this.state=aC):t===Je.APOSTROPHE?(this._err(Kt.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),this.currentToken.systemId="",this.state=sC):t===Je.EOF?(this._err(Kt.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(Kt.missingQuoteBeforeDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(hp))}[fme](t){no(t)||(t===Je.GREATER_THAN_SIGN?(this._emitCurrentToken(),this.state=jr):t===Je.QUOTATION_MARK?(this.currentToken.systemId="",this.state=aC):t===Je.APOSTROPHE?(this.currentToken.systemId="",this.state=sC):t===Je.EOF?(this._err(Kt.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(Kt.missingQuoteBeforeDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(hp)))}[pme](t){no(t)?this.state=hme:t===Je.QUOTATION_MARK?(this._err(Kt.missingWhitespaceAfterDoctypeSystemKeyword),this.currentToken.systemId="",this.state=aC):t===Je.APOSTROPHE?(this._err(Kt.missingWhitespaceAfterDoctypeSystemKeyword),this.currentToken.systemId="",this.state=sC):t===Je.GREATER_THAN_SIGN?(this._err(Kt.missingDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this.state=jr,this._emitCurrentToken()):t===Je.EOF?(this._err(Kt.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(Kt.missingQuoteBeforeDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(hp))}[hme](t){no(t)||(t===Je.QUOTATION_MARK?(this.currentToken.systemId="",this.state=aC):t===Je.APOSTROPHE?(this.currentToken.systemId="",this.state=sC):t===Je.GREATER_THAN_SIGN?(this._err(Kt.missingDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this.state=jr,this._emitCurrentToken()):t===Je.EOF?(this._err(Kt.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(Kt.missingQuoteBeforeDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(hp)))}[aC](t){t===Je.QUOTATION_MARK?this.state=K7:t===Je.NULL?(this._err(Kt.unexpectedNullCharacter),this.currentToken.systemId+=Pi.REPLACEMENT_CHARACTER):t===Je.GREATER_THAN_SIGN?(this._err(Kt.abruptDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=jr):t===Je.EOF?(this._err(Kt.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.systemId+=Ho(t)}[sC](t){t===Je.APOSTROPHE?this.state=K7:t===Je.NULL?(this._err(Kt.unexpectedNullCharacter),this.currentToken.systemId+=Pi.REPLACEMENT_CHARACTER):t===Je.GREATER_THAN_SIGN?(this._err(Kt.abruptDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=jr):t===Je.EOF?(this._err(Kt.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.systemId+=Ho(t)}[K7](t){no(t)||(t===Je.GREATER_THAN_SIGN?(this._emitCurrentToken(),this.state=jr):t===Je.EOF?(this._err(Kt.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(Kt.unexpectedCharacterAfterDoctypeSystemIdentifier),this._reconsumeInState(hp)))}[hp](t){t===Je.GREATER_THAN_SIGN?(this._emitCurrentToken(),this.state=jr):t===Je.NULL?this._err(Kt.unexpectedNullCharacter):t===Je.EOF&&(this._emitCurrentToken(),this._emitEOFToken())}[HA](t){t===Je.RIGHT_SQUARE_BRACKET?this.state=mme:t===Je.EOF?(this._err(Kt.eofInCdata),this._emitEOFToken()):this._emitCodePoint(t)}[mme](t){t===Je.RIGHT_SQUARE_BRACKET?this.state=gme:(this._emitChars("]"),this._reconsumeInState(HA))}[gme](t){t===Je.GREATER_THAN_SIGN?this.state=jr:t===Je.RIGHT_SQUARE_BRACKET?this._emitChars("]"):(this._emitChars("]]"),this._reconsumeInState(HA))}[Cb](t){this.tempBuff=[Je.AMPERSAND],t===Je.NUMBER_SIGN?(this.tempBuff.push(t),this.state=yme):Q7(t)?this._reconsumeInState(vme):(this._flushCodePointsConsumedAsCharacterReference(),this._reconsumeInState(this.returnState))}[vme](t){const n=this._matchNamedCharacterReference(t);if(this._ensureHibernation())this.tempBuff=[Je.AMPERSAND];else if(n){const r=this.tempBuff[this.tempBuff.length-1]===Je.SEMICOLON;this._isCharacterReferenceAttributeQuirk(r)||(r||this._errOnNextCodePoint(Kt.missingSemicolonAfterCharacterReference),this.tempBuff=n),this._flushCodePointsConsumedAsCharacterReference(),this.state=this.returnState}else this._flushCodePointsConsumedAsCharacterReference(),this.state=bme}[bme](t){Q7(t)?this._isCharacterReferenceInAttribute()?this.currentAttr.value+=Ho(t):this._emitCodePoint(t):(t===Je.SEMICOLON&&this._err(Kt.unknownNamedCharacterReference),this._reconsumeInState(this.returnState))}[yme](t){this.charRefCode=0,t===Je.LATIN_SMALL_X||t===Je.LATIN_CAPITAL_X?(this.tempBuff.push(t),this.state=_me):this._reconsumeInState(Sme)}[_me](t){vEn(t)?this._reconsumeInState(Eme):(this._err(Kt.absenceOfDigitsInNumericCharacterReference),this._flushCodePointsConsumedAsCharacterReference(),this._reconsumeInState(this.returnState))}[Sme](t){$x(t)?this._reconsumeInState(Cme):(this._err(Kt.absenceOfDigitsInNumericCharacterReference),this._flushCodePointsConsumedAsCharacterReference(),this._reconsumeInState(this.returnState))}[Eme](t){A3e(t)?this.charRefCode=this.charRefCode*16+t-55:I3e(t)?this.charRefCode=this.charRefCode*16+t-87:$x(t)?this.charRefCode=this.charRefCode*16+t-48:t===Je.SEMICOLON?this.state=lC:(this._err(Kt.missingSemicolonAfterCharacterReference),this._reconsumeInState(lC))}[Cme](t){$x(t)?this.charRefCode=this.charRefCode*10+t-48:t===Je.SEMICOLON?this.state=lC:(this._err(Kt.missingSemicolonAfterCharacterReference),this._reconsumeInState(lC))}[lC](){if(this.charRefCode===Je.NULL)this._err(Kt.nullCharacterReference),this.charRefCode=Je.REPLACEMENT_CHARACTER;else if(this.charRefCode>1114111)this._err(Kt.characterReferenceOutsideUnicodeRange),this.charRefCode=Je.REPLACEMENT_CHARACTER;else if(Pi.isSurrogate(this.charRefCode))this._err(Kt.surrogateCharacterReference),this.charRefCode=Je.REPLACEMENT_CHARACTER;else if(Pi.isUndefinedCodePoint(this.charRefCode))this._err(Kt.noncharacterCharacterReference);else if(Pi.isControlCodePoint(this.charRefCode)||this.charRefCode===Je.CARRIAGE_RETURN){this._err(Kt.controlCharacterReference);const t=mEn[this.charRefCode];t&&(this.charRefCode=t)}this.tempBuff=[this.charRefCode],this._flushCodePointsConsumedAsCharacterReference(),this._reconsumeInState(this.returnState)}};Mu.CHARACTER_TOKEN="CHARACTER_TOKEN";Mu.NULL_CHARACTER_TOKEN="NULL_CHARACTER_TOKEN";Mu.WHITESPACE_CHARACTER_TOKEN="WHITESPACE_CHARACTER_TOKEN";Mu.START_TAG_TOKEN="START_TAG_TOKEN";Mu.END_TAG_TOKEN="END_TAG_TOKEN";Mu.COMMENT_TOKEN="COMMENT_TOKEN";Mu.DOCTYPE_TOKEN="DOCTYPE_TOKEN";Mu.EOF_TOKEN="EOF_TOKEN";Mu.HIBERNATION_TOKEN="HIBERNATION_TOKEN";Mu.MODE={DATA:jr,RCDATA:$b,RAWTEXT:VC,SCRIPT_DATA:wp,PLAINTEXT:R3e};Mu.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 R8=Mu,qd={};const X7=qd.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/"};qd.ATTRS={TYPE:"type",ACTION:"action",ENCODING:"encoding",PROMPT:"prompt",NAME:"name",COLOR:"color",FACE:"face",SIZE:"size"};qd.DOCUMENT_MODE={NO_QUIRKS:"no-quirks",QUIRKS:"quirks",LIMITED_QUIRKS:"limited-quirks"};const yn=qd.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"};qd.SPECIAL_ELEMENTS={[X7.HTML]:{[yn.ADDRESS]:!0,[yn.APPLET]:!0,[yn.AREA]:!0,[yn.ARTICLE]:!0,[yn.ASIDE]:!0,[yn.BASE]:!0,[yn.BASEFONT]:!0,[yn.BGSOUND]:!0,[yn.BLOCKQUOTE]:!0,[yn.BODY]:!0,[yn.BR]:!0,[yn.BUTTON]:!0,[yn.CAPTION]:!0,[yn.CENTER]:!0,[yn.COL]:!0,[yn.COLGROUP]:!0,[yn.DD]:!0,[yn.DETAILS]:!0,[yn.DIR]:!0,[yn.DIV]:!0,[yn.DL]:!0,[yn.DT]:!0,[yn.EMBED]:!0,[yn.FIELDSET]:!0,[yn.FIGCAPTION]:!0,[yn.FIGURE]:!0,[yn.FOOTER]:!0,[yn.FORM]:!0,[yn.FRAME]:!0,[yn.FRAMESET]:!0,[yn.H1]:!0,[yn.H2]:!0,[yn.H3]:!0,[yn.H4]:!0,[yn.H5]:!0,[yn.H6]:!0,[yn.HEAD]:!0,[yn.HEADER]:!0,[yn.HGROUP]:!0,[yn.HR]:!0,[yn.HTML]:!0,[yn.IFRAME]:!0,[yn.IMG]:!0,[yn.INPUT]:!0,[yn.LI]:!0,[yn.LINK]:!0,[yn.LISTING]:!0,[yn.MAIN]:!0,[yn.MARQUEE]:!0,[yn.MENU]:!0,[yn.META]:!0,[yn.NAV]:!0,[yn.NOEMBED]:!0,[yn.NOFRAMES]:!0,[yn.NOSCRIPT]:!0,[yn.OBJECT]:!0,[yn.OL]:!0,[yn.P]:!0,[yn.PARAM]:!0,[yn.PLAINTEXT]:!0,[yn.PRE]:!0,[yn.SCRIPT]:!0,[yn.SECTION]:!0,[yn.SELECT]:!0,[yn.SOURCE]:!0,[yn.STYLE]:!0,[yn.SUMMARY]:!0,[yn.TABLE]:!0,[yn.TBODY]:!0,[yn.TD]:!0,[yn.TEMPLATE]:!0,[yn.TEXTAREA]:!0,[yn.TFOOT]:!0,[yn.TH]:!0,[yn.THEAD]:!0,[yn.TITLE]:!0,[yn.TR]:!0,[yn.TRACK]:!0,[yn.UL]:!0,[yn.WBR]:!0,[yn.XMP]:!0},[X7.MATHML]:{[yn.MI]:!0,[yn.MO]:!0,[yn.MN]:!0,[yn.MS]:!0,[yn.MTEXT]:!0,[yn.ANNOTATION_XML]:!0},[X7.SVG]:{[yn.TITLE]:!0,[yn.FOREIGN_OBJECT]:!0,[yn.DESC]:!0}};const N3e=qd,Sn=N3e.TAG_NAMES,Li=N3e.NAMESPACES;function wme(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 bEn(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 jA(e,t){switch(e.length){case 2:if(e===Sn.TD||e===Sn.TH)return t===Li.HTML;if(e===Sn.MI||e===Sn.MO||e===Sn.MN||e===Sn.MS)return t===Li.MATHML;break;case 4:if(e===Sn.HTML)return t===Li.HTML;if(e===Sn.DESC)return t===Li.SVG;break;case 5:if(e===Sn.TABLE)return t===Li.HTML;if(e===Sn.MTEXT)return t===Li.MATHML;if(e===Sn.TITLE)return t===Li.SVG;break;case 6:return(e===Sn.APPLET||e===Sn.OBJECT)&&t===Li.HTML;case 7:return(e===Sn.CAPTION||e===Sn.MARQUEE)&&t===Li.HTML;case 8:return e===Sn.TEMPLATE&&t===Li.HTML;case 13:return e===Sn.FOREIGN_OBJECT&&t===Li.SVG;case 14:return e===Sn.ANNOTATION_XML&&t===Li.MATHML}return!1}let yEn=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)===Li.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===Li.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===Li.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===Li.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)!==Li.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)!==Li.HTML;)this.pop()}clearBackToTableRowContext(){for(;this.currentTagName!==Sn.TR&&this.currentTagName!==Sn.TEMPLATE&&this.currentTagName!==Sn.HTML||this.treeAdapter.getNamespaceURI(this.current)!==Li.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===Li.HTML)return!0;if(jA(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===Li.HTML)return!0;if(jA(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===Li.HTML)return!0;if((r===Sn.UL||r===Sn.OL)&&i===Li.HTML||jA(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===Li.HTML)return!0;if(r===Sn.BUTTON&&i===Li.HTML||jA(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])===Li.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])===Li.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])===Li.HTML){if(r===t)return!0;if(r!==Sn.OPTION&&r!==Sn.OPTGROUP)return!1}}return!0}generateImpliedEndTags(){for(;wme(this.currentTagName);)this.pop()}generateImpliedEndTagsThoroughly(){for(;bEn(this.currentTagName);)this.pop()}generateImpliedEndTagsWithExclusion(t){for(;wme(this.currentTagName)&&this.currentTagName!==t;)this.pop()}};var _En=yEn;const UA=3;let $Z=class im{constructor(t){this.length=0,this.entries=[],this.treeAdapter=t,this.bookmark=null}_getNoahArkConditionCandidates(t){const n=[];if(this.length>=UA){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===im.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<UA?[]: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<UA)return}for(let s=r-1;s>=UA-1;s--)this.entries.splice(n[s].idx,1),this.length--}}insertMarker(){this.entries.push({type:im.MARKER_ENTRY}),this.length++}pushElement(t,n){this._ensureNoahArkCondition(t),this.entries.push({type:im.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:im.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===im.MARKER_ENTRY)break}}getElementEntryInScopeWithTagName(t){for(let n=this.length-1;n>=0;n--){const r=this.entries[n];if(r.type===im.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===im.ELEMENT_ENTRY&&r.element===t)return r}return null}};$Z.MARKER_ENTRY="MARKER_ENTRY";$Z.ELEMENT_ENTRY="ELEMENT_ENTRY";var SEn=$Z;let M3e=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")}};M3e.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 Ih=M3e;const EEn=Ih;let CEn=class extends EEn{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 k3e=CEn;const Tme=Ih,Z7=R8,xEn=k3e;let wEn=class extends Tme{constructor(t){super(t),this.tokenizer=t,this.posTracker=Tme.install(t.preprocessor,xEn),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===Z7.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(Z7.MODE).forEach(i=>{const o=Z7.MODE[i];r[o]=function(a){t.ctLoc=t._getCurrentLocation(),n[o].call(this,a)}}),r}};var P3e=wEn;const TEn=Ih;let OEn=class extends TEn{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 REn=OEn;const J7=Ih,Ome=R8,AEn=P3e,IEn=REn,NEn=qd,eF=NEn.TAG_NAMES;let MEn=class extends J7{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===Ome.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=J7.install(this.tokenizer,AEn);t.posTracker=o.posTracker,J7.install(this.openElements,IEn,{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===Ome.END_TAG_TOKEN&&(r.tagName===eF.HTML||r.tagName===eF.BODY&&this.openElements.hasInScope(eF.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 kEn=MEn;const PEn=Ih;let DEn=class extends PEn{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 FZ=DEn;const LEn=FZ,$En=k3e,FEn=Ih;let BEn=class extends LEn{constructor(t,n){super(t,n),this.posTracker=FEn.install(t,$En),this.lastErrOffset=-1}_reportError(t){this.lastErrOffset!==this.posTracker.offset&&(this.lastErrOffset=this.posTracker.offset,super._reportError(t))}};var HEn=BEn;const jEn=FZ,UEn=HEn,zEn=Ih;let VEn=class extends jEn{constructor(t,n){super(t,n);const r=zEn.install(t.preprocessor,UEn,n);this.posTracker=r.posTracker}};var GEn=VEn;const WEn=FZ,qEn=GEn,YEn=P3e,Rme=Ih;let KEn=class extends WEn{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),Rme.install(this.tokenizer,qEn,t.opts),Rme.install(this.tokenizer,YEn)},_processInputToken(r){t.ctLoc=r.location,n._processInputToken.call(this,r)},_err(r,i){t.locBeforeToken=i&&i.beforeToken,t._reportError(r)}}}};var QEn=KEn,si={};const{DOCUMENT_MODE:XEn}=qd;si.createDocument=function(){return{nodeName:"#document",mode:XEn.NO_QUIRKS,childNodes:[]}};si.createDocumentFragment=function(){return{nodeName:"#document-fragment",childNodes:[]}};si.createElement=function(e,t,n){return{nodeName:e,tagName:e,attrs:n,namespaceURI:t,childNodes:[],parentNode:null}};si.createCommentNode=function(e){return{nodeName:"#comment",data:e,parentNode:null}};const D3e=function(e){return{nodeName:"#text",value:e,parentNode:null}},L3e=si.appendChild=function(e,t){e.childNodes.push(t),t.parentNode=e},ZEn=si.insertBefore=function(e,t,n){const r=e.childNodes.indexOf(n);e.childNodes.splice(r,0,t),t.parentNode=e};si.setTemplateContent=function(e,t){e.content=t};si.getTemplateContent=function(e){return e.content};si.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):L3e(e,{nodeName:"#documentType",name:t,publicId:n,systemId:r})};si.setDocumentMode=function(e,t){e.mode=t};si.getDocumentMode=function(e){return e.mode};si.detachNode=function(e){if(e.parentNode){const t=e.parentNode.childNodes.indexOf(e);e.parentNode.childNodes.splice(t,1),e.parentNode=null}};si.insertText=function(e,t){if(e.childNodes.length){const n=e.childNodes[e.childNodes.length-1];if(n.nodeName==="#text"){n.value+=t;return}}L3e(e,D3e(t))};si.insertTextBefore=function(e,t,n){const r=e.childNodes[e.childNodes.indexOf(n)-1];r&&r.nodeName==="#text"?r.value+=t:ZEn(e,D3e(t),n)};si.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])};si.getFirstChild=function(e){return e.childNodes[0]};si.getChildNodes=function(e){return e.childNodes};si.getParentNode=function(e){return e.parentNode};si.getAttrList=function(e){return e.attrs};si.getTagName=function(e){return e.tagName};si.getNamespaceURI=function(e){return e.namespaceURI};si.getTextNodeContent=function(e){return e.value};si.getCommentNodeContent=function(e){return e.data};si.getDocumentTypeNodeName=function(e){return e.name};si.getDocumentTypeNodePublicId=function(e){return e.publicId};si.getDocumentTypeNodeSystemId=function(e){return e.systemId};si.isTextNode=function(e){return e.nodeName==="#text"};si.isCommentNode=function(e){return e.nodeName==="#comment"};si.isDocumentTypeNode=function(e){return e.nodeName==="#documentType"};si.isElementNode=function(e){return!!e.tagName};si.setNodeSourceCodeLocation=function(e,t){e.sourceCodeLocation=t};si.getNodeSourceCodeLocation=function(e){return e.sourceCodeLocation};si.updateNodeSourceCodeLocation=function(e,t){e.sourceCodeLocation=Object.assign(e.sourceCodeLocation,t)};var JEn=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))},A8={};const{DOCUMENT_MODE:xb}=qd,$3e="html",eCn="about:legacy-compat",tCn="http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd",F3e=["+//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//"],nCn=F3e.concat(["-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"]),rCn=["-//w3o//dtd w3 html strict 3.0//en//","-/w3c/dtd html 4.0 transitional/en","html"],B3e=["-//w3c//dtd xhtml 1.0 frameset//","-//w3c//dtd xhtml 1.0 transitional//"],iCn=B3e.concat(["-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"]);function Ame(e){const t=e.indexOf('"')!==-1?"'":'"';return t+e+t}function Ime(e,t){for(let n=0;n<t.length;n++)if(e.indexOf(t[n])===0)return!0;return!1}A8.isConforming=function(e){return e.name===$3e&&e.publicId===null&&(e.systemId===null||e.systemId===eCn)};A8.getDocumentMode=function(e){if(e.name!==$3e)return xb.QUIRKS;const t=e.systemId;if(t&&t.toLowerCase()===tCn)return xb.QUIRKS;let n=e.publicId;if(n!==null){if(n=n.toLowerCase(),rCn.indexOf(n)>-1)return xb.QUIRKS;let r=t===null?nCn:F3e;if(Ime(n,r))return xb.QUIRKS;if(r=t===null?B3e:iCn,Ime(n,r))return xb.LIMITED_QUIRKS}return xb.NO_QUIRKS};A8.serializeContent=function(e,t,n){let r="!DOCTYPE ";return e&&(r+=e),t?r+=" PUBLIC "+Ame(t):n&&(r+=" SYSTEM"),n!==null&&(r+=" "+Ame(n)),r};var Vg={};const tF=R8,BZ=qd,lr=BZ.TAG_NAMES,es=BZ.NAMESPACES,_N=BZ.ATTRS,Nme={TEXT_HTML:"text/html",APPLICATION_XML:"application/xhtml+xml"},oCn="definitionurl",aCn="definitionURL",sCn={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"},lCn={"xlink:actuate":{prefix:"xlink",name:"actuate",namespace:es.XLINK},"xlink:arcrole":{prefix:"xlink",name:"arcrole",namespace:es.XLINK},"xlink:href":{prefix:"xlink",name:"href",namespace:es.XLINK},"xlink:role":{prefix:"xlink",name:"role",namespace:es.XLINK},"xlink:show":{prefix:"xlink",name:"show",namespace:es.XLINK},"xlink:title":{prefix:"xlink",name:"title",namespace:es.XLINK},"xlink:type":{prefix:"xlink",name:"type",namespace:es.XLINK},"xml:base":{prefix:"xml",name:"base",namespace:es.XML},"xml:lang":{prefix:"xml",name:"lang",namespace:es.XML},"xml:space":{prefix:"xml",name:"space",namespace:es.XML},xmlns:{prefix:"",name:"xmlns",namespace:es.XMLNS},"xmlns:xlink":{prefix:"xmlns",name:"xlink",namespace:es.XMLNS}},cCn=Vg.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"},uCn={[lr.B]:!0,[lr.BIG]:!0,[lr.BLOCKQUOTE]:!0,[lr.BODY]:!0,[lr.BR]:!0,[lr.CENTER]:!0,[lr.CODE]:!0,[lr.DD]:!0,[lr.DIV]:!0,[lr.DL]:!0,[lr.DT]:!0,[lr.EM]:!0,[lr.EMBED]:!0,[lr.H1]:!0,[lr.H2]:!0,[lr.H3]:!0,[lr.H4]:!0,[lr.H5]:!0,[lr.H6]:!0,[lr.HEAD]:!0,[lr.HR]:!0,[lr.I]:!0,[lr.IMG]:!0,[lr.LI]:!0,[lr.LISTING]:!0,[lr.MENU]:!0,[lr.META]:!0,[lr.NOBR]:!0,[lr.OL]:!0,[lr.P]:!0,[lr.PRE]:!0,[lr.RUBY]:!0,[lr.S]:!0,[lr.SMALL]:!0,[lr.SPAN]:!0,[lr.STRONG]:!0,[lr.STRIKE]:!0,[lr.SUB]:!0,[lr.SUP]:!0,[lr.TABLE]:!0,[lr.TT]:!0,[lr.U]:!0,[lr.UL]:!0,[lr.VAR]:!0};Vg.causesExit=function(e){const t=e.tagName;return t===lr.FONT&&(tF.getTokenAttr(e,_N.COLOR)!==null||tF.getTokenAttr(e,_N.SIZE)!==null||tF.getTokenAttr(e,_N.FACE)!==null)?!0:uCn[t]};Vg.adjustTokenMathMLAttrs=function(e){for(let t=0;t<e.attrs.length;t++)if(e.attrs[t].name===oCn){e.attrs[t].name=aCn;break}};Vg.adjustTokenSVGAttrs=function(e){for(let t=0;t<e.attrs.length;t++){const n=sCn[e.attrs[t].name];n&&(e.attrs[t].name=n)}};Vg.adjustTokenXMLAttrs=function(e){for(let t=0;t<e.attrs.length;t++){const n=lCn[e.attrs[t].name];n&&(e.attrs[t].prefix=n.prefix,e.attrs[t].name=n.name,e.attrs[t].namespace=n.namespace)}};Vg.adjustTokenSVGTagName=function(e){const t=cCn[e.tagName];t&&(e.tagName=t)};function dCn(e,t){return t===es.MATHML&&(e===lr.MI||e===lr.MO||e===lr.MN||e===lr.MS||e===lr.MTEXT)}function fCn(e,t,n){if(t===es.MATHML&&e===lr.ANNOTATION_XML){for(let r=0;r<n.length;r++)if(n[r].name===_N.ENCODING){const i=n[r].value.toLowerCase();return i===Nme.TEXT_HTML||i===Nme.APPLICATION_XML}}return t===es.SVG&&(e===lr.FOREIGN_OBJECT||e===lr.DESC||e===lr.TITLE)}Vg.isIntegrationPoint=function(e,t,n,r){return!!((!r||r===es.HTML)&&fCn(e,t,n)||(!r||r===es.MATHML)&&dCn(e,t))};const ot=R8,pCn=_En,Mme=SEn,hCn=kEn,mCn=QEn,kme=Ih,gCn=si,vCn=JEn,Pme=A8,bf=Vg,as=LZ,bCn=Wd,zv=qd,_e=zv.TAG_NAMES,jn=zv.NAMESPACES,H3e=zv.ATTRS,yCn={scriptingEnabled:!0,sourceCodeLocationInfo:!1,onParseError:null,treeAdapter:gCn},j3e="hidden",_Cn=8,SCn=3,U3e="INITIAL_MODE",HZ="BEFORE_HTML_MODE",I8="BEFORE_HEAD_MODE",lE="IN_HEAD_MODE",z3e="IN_HEAD_NO_SCRIPT_MODE",N8="AFTER_HEAD_MODE",kf="IN_BODY_MODE",Fk="TEXT_MODE",Rs="IN_TABLE_MODE",V3e="IN_TABLE_TEXT_MODE",M8="IN_CAPTION_MODE",SO="IN_COLUMN_GROUP_MODE",du="IN_TABLE_BODY_MODE",hh="IN_ROW_MODE",k8="IN_CELL_MODE",jZ="IN_SELECT_MODE",UZ="IN_SELECT_IN_TABLE_MODE",Bk="IN_TEMPLATE_MODE",zZ="AFTER_BODY_MODE",P8="IN_FRAMESET_MODE",G3e="AFTER_FRAMESET_MODE",W3e="AFTER_AFTER_BODY_MODE",q3e="AFTER_AFTER_FRAMESET_MODE",ECn={[_e.TR]:hh,[_e.TBODY]:du,[_e.THEAD]:du,[_e.TFOOT]:du,[_e.CAPTION]:M8,[_e.COLGROUP]:SO,[_e.TABLE]:Rs,[_e.BODY]:kf,[_e.FRAMESET]:P8},CCn={[_e.CAPTION]:Rs,[_e.COLGROUP]:Rs,[_e.TBODY]:Rs,[_e.TFOOT]:Rs,[_e.THEAD]:Rs,[_e.COL]:SO,[_e.TR]:du,[_e.TD]:hh,[_e.TH]:hh},Dme={[U3e]:{[ot.CHARACTER_TOKEN]:uC,[ot.NULL_CHARACTER_TOKEN]:uC,[ot.WHITESPACE_CHARACTER_TOKEN]:qr,[ot.COMMENT_TOKEN]:ya,[ot.DOCTYPE_TOKEN]:kCn,[ot.START_TAG_TOKEN]:uC,[ot.END_TAG_TOKEN]:uC,[ot.EOF_TOKEN]:uC},[HZ]:{[ot.CHARACTER_TOKEN]:Fx,[ot.NULL_CHARACTER_TOKEN]:Fx,[ot.WHITESPACE_CHARACTER_TOKEN]:qr,[ot.COMMENT_TOKEN]:ya,[ot.DOCTYPE_TOKEN]:qr,[ot.START_TAG_TOKEN]:PCn,[ot.END_TAG_TOKEN]:DCn,[ot.EOF_TOKEN]:Fx},[I8]:{[ot.CHARACTER_TOKEN]:Bx,[ot.NULL_CHARACTER_TOKEN]:Bx,[ot.WHITESPACE_CHARACTER_TOKEN]:qr,[ot.COMMENT_TOKEN]:ya,[ot.DOCTYPE_TOKEN]:zA,[ot.START_TAG_TOKEN]:LCn,[ot.END_TAG_TOKEN]:$Cn,[ot.EOF_TOKEN]:Bx},[lE]:{[ot.CHARACTER_TOKEN]:Hx,[ot.NULL_CHARACTER_TOKEN]:Hx,[ot.WHITESPACE_CHARACTER_TOKEN]:hl,[ot.COMMENT_TOKEN]:ya,[ot.DOCTYPE_TOKEN]:zA,[ot.START_TAG_TOKEN]:Fa,[ot.END_TAG_TOKEN]:Vv,[ot.EOF_TOKEN]:Hx},[z3e]:{[ot.CHARACTER_TOKEN]:jx,[ot.NULL_CHARACTER_TOKEN]:jx,[ot.WHITESPACE_CHARACTER_TOKEN]:hl,[ot.COMMENT_TOKEN]:ya,[ot.DOCTYPE_TOKEN]:zA,[ot.START_TAG_TOKEN]:FCn,[ot.END_TAG_TOKEN]:BCn,[ot.EOF_TOKEN]:jx},[N8]:{[ot.CHARACTER_TOKEN]:Ux,[ot.NULL_CHARACTER_TOKEN]:Ux,[ot.WHITESPACE_CHARACTER_TOKEN]:hl,[ot.COMMENT_TOKEN]:ya,[ot.DOCTYPE_TOKEN]:zA,[ot.START_TAG_TOKEN]:HCn,[ot.END_TAG_TOKEN]:jCn,[ot.EOF_TOKEN]:Ux},[kf]:{[ot.CHARACTER_TOKEN]:VA,[ot.NULL_CHARACTER_TOKEN]:qr,[ot.WHITESPACE_CHARACTER_TOKEN]:d0,[ot.COMMENT_TOKEN]:ya,[ot.DOCTYPE_TOKEN]:qr,[ot.START_TAG_TOKEN]:Gl,[ot.END_TAG_TOKEN]:VZ,[ot.EOF_TOKEN]:gp},[Fk]:{[ot.CHARACTER_TOKEN]:hl,[ot.NULL_CHARACTER_TOKEN]:hl,[ot.WHITESPACE_CHARACTER_TOKEN]:hl,[ot.COMMENT_TOKEN]:qr,[ot.DOCTYPE_TOKEN]:qr,[ot.START_TAG_TOKEN]:qr,[ot.END_TAG_TOKEN]:bxn,[ot.EOF_TOKEN]:yxn},[Rs]:{[ot.CHARACTER_TOKEN]:vp,[ot.NULL_CHARACTER_TOKEN]:vp,[ot.WHITESPACE_CHARACTER_TOKEN]:vp,[ot.COMMENT_TOKEN]:ya,[ot.DOCTYPE_TOKEN]:qr,[ot.START_TAG_TOKEN]:GZ,[ot.END_TAG_TOKEN]:WZ,[ot.EOF_TOKEN]:gp},[V3e]:{[ot.CHARACTER_TOKEN]:Axn,[ot.NULL_CHARACTER_TOKEN]:qr,[ot.WHITESPACE_CHARACTER_TOKEN]:Rxn,[ot.COMMENT_TOKEN]:dC,[ot.DOCTYPE_TOKEN]:dC,[ot.START_TAG_TOKEN]:dC,[ot.END_TAG_TOKEN]:dC,[ot.EOF_TOKEN]:dC},[M8]:{[ot.CHARACTER_TOKEN]:VA,[ot.NULL_CHARACTER_TOKEN]:qr,[ot.WHITESPACE_CHARACTER_TOKEN]:d0,[ot.COMMENT_TOKEN]:ya,[ot.DOCTYPE_TOKEN]:qr,[ot.START_TAG_TOKEN]:Ixn,[ot.END_TAG_TOKEN]:Nxn,[ot.EOF_TOKEN]:gp},[SO]:{[ot.CHARACTER_TOKEN]:Hk,[ot.NULL_CHARACTER_TOKEN]:Hk,[ot.WHITESPACE_CHARACTER_TOKEN]:hl,[ot.COMMENT_TOKEN]:ya,[ot.DOCTYPE_TOKEN]:qr,[ot.START_TAG_TOKEN]:Mxn,[ot.END_TAG_TOKEN]:kxn,[ot.EOF_TOKEN]:gp},[du]:{[ot.CHARACTER_TOKEN]:vp,[ot.NULL_CHARACTER_TOKEN]:vp,[ot.WHITESPACE_CHARACTER_TOKEN]:vp,[ot.COMMENT_TOKEN]:ya,[ot.DOCTYPE_TOKEN]:qr,[ot.START_TAG_TOKEN]:Pxn,[ot.END_TAG_TOKEN]:Dxn,[ot.EOF_TOKEN]:gp},[hh]:{[ot.CHARACTER_TOKEN]:vp,[ot.NULL_CHARACTER_TOKEN]:vp,[ot.WHITESPACE_CHARACTER_TOKEN]:vp,[ot.COMMENT_TOKEN]:ya,[ot.DOCTYPE_TOKEN]:qr,[ot.START_TAG_TOKEN]:Lxn,[ot.END_TAG_TOKEN]:$xn,[ot.EOF_TOKEN]:gp},[k8]:{[ot.CHARACTER_TOKEN]:VA,[ot.NULL_CHARACTER_TOKEN]:qr,[ot.WHITESPACE_CHARACTER_TOKEN]:d0,[ot.COMMENT_TOKEN]:ya,[ot.DOCTYPE_TOKEN]:qr,[ot.START_TAG_TOKEN]:Fxn,[ot.END_TAG_TOKEN]:Bxn,[ot.EOF_TOKEN]:gp},[jZ]:{[ot.CHARACTER_TOKEN]:hl,[ot.NULL_CHARACTER_TOKEN]:qr,[ot.WHITESPACE_CHARACTER_TOKEN]:hl,[ot.COMMENT_TOKEN]:ya,[ot.DOCTYPE_TOKEN]:qr,[ot.START_TAG_TOKEN]:Y3e,[ot.END_TAG_TOKEN]:K3e,[ot.EOF_TOKEN]:gp},[UZ]:{[ot.CHARACTER_TOKEN]:hl,[ot.NULL_CHARACTER_TOKEN]:qr,[ot.WHITESPACE_CHARACTER_TOKEN]:hl,[ot.COMMENT_TOKEN]:ya,[ot.DOCTYPE_TOKEN]:qr,[ot.START_TAG_TOKEN]:Hxn,[ot.END_TAG_TOKEN]:jxn,[ot.EOF_TOKEN]:gp},[Bk]:{[ot.CHARACTER_TOKEN]:VA,[ot.NULL_CHARACTER_TOKEN]:qr,[ot.WHITESPACE_CHARACTER_TOKEN]:d0,[ot.COMMENT_TOKEN]:ya,[ot.DOCTYPE_TOKEN]:qr,[ot.START_TAG_TOKEN]:Uxn,[ot.END_TAG_TOKEN]:zxn,[ot.EOF_TOKEN]:Q3e},[zZ]:{[ot.CHARACTER_TOKEN]:jk,[ot.NULL_CHARACTER_TOKEN]:jk,[ot.WHITESPACE_CHARACTER_TOKEN]:d0,[ot.COMMENT_TOKEN]:MCn,[ot.DOCTYPE_TOKEN]:qr,[ot.START_TAG_TOKEN]:Vxn,[ot.END_TAG_TOKEN]:Gxn,[ot.EOF_TOKEN]:cC},[P8]:{[ot.CHARACTER_TOKEN]:qr,[ot.NULL_CHARACTER_TOKEN]:qr,[ot.WHITESPACE_CHARACTER_TOKEN]:hl,[ot.COMMENT_TOKEN]:ya,[ot.DOCTYPE_TOKEN]:qr,[ot.START_TAG_TOKEN]:Wxn,[ot.END_TAG_TOKEN]:qxn,[ot.EOF_TOKEN]:cC},[G3e]:{[ot.CHARACTER_TOKEN]:qr,[ot.NULL_CHARACTER_TOKEN]:qr,[ot.WHITESPACE_CHARACTER_TOKEN]:hl,[ot.COMMENT_TOKEN]:ya,[ot.DOCTYPE_TOKEN]:qr,[ot.START_TAG_TOKEN]:Yxn,[ot.END_TAG_TOKEN]:Kxn,[ot.EOF_TOKEN]:cC},[W3e]:{[ot.CHARACTER_TOKEN]:SN,[ot.NULL_CHARACTER_TOKEN]:SN,[ot.WHITESPACE_CHARACTER_TOKEN]:d0,[ot.COMMENT_TOKEN]:Lme,[ot.DOCTYPE_TOKEN]:qr,[ot.START_TAG_TOKEN]:Qxn,[ot.END_TAG_TOKEN]:SN,[ot.EOF_TOKEN]:cC},[q3e]:{[ot.CHARACTER_TOKEN]:qr,[ot.NULL_CHARACTER_TOKEN]:qr,[ot.WHITESPACE_CHARACTER_TOKEN]:d0,[ot.COMMENT_TOKEN]:Lme,[ot.DOCTYPE_TOKEN]:qr,[ot.START_TAG_TOKEN]:Xxn,[ot.END_TAG_TOKEN]:qr,[ot.EOF_TOKEN]:cC}};let xCn=class{constructor(t){this.options=vCn(yCn,t),this.treeAdapter=this.options.treeAdapter,this.pendingScript=null,this.options.sourceCodeLocationInfo&&kme.install(this,hCn),this.options.onParseError&&kme.install(this,mCn,{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(_e.TEMPLATE,jn.HTML,[]));const r=this.treeAdapter.createElement("documentmock",jn.HTML,[]);this._bootstrap(r,n),this.treeAdapter.getTagName(n)===_e.TEMPLATE&&this._pushTmplInsertionMode(Bk),this._initTokenizerForFragmentParsing(),this._insertFakeRootElement(),this._resetInsertionMode(),this._findFormInFragmentContext(),this.tokenizer.write(t,!0),this._runParsingLoop(null);const i=this.treeAdapter.getFirstChild(r),o=this.treeAdapter.createDocumentFragment();return this._adoptNodes(i,o),o}_bootstrap(t,n){this.tokenizer=new ot(this.options),this.stopped=!1,this.insertionMode=U3e,this.originalInsertionMode="",this.document=t,this.fragmentContext=n,this.headElement=null,this.formElement=null,this.openElements=new pCn(this.document,this.treeAdapter),this.activeFormattingElements=new Mme(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===ot.HIBERNATION_TOKEN)break;if(this.skipNextNewLine&&(this.skipNextNewLine=!1,n.type===ot.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)!==jn.HTML&&!this._isIntegrationPoint(t)}_switchToTextParsing(t,n){this._insertElement(t,jn.HTML),this.tokenizer.state=n,this.originalInsertionMode=this.insertionMode,this.insertionMode=Fk}switchToPlaintextParsing(){this.insertionMode=Fk,this.originalInsertionMode=kf,this.tokenizer.state=ot.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)===_e.FORM){this.formElement=t;break}t=this.treeAdapter.getParentNode(t)}while(t)}_initTokenizerForFragmentParsing(){if(this.treeAdapter.getNamespaceURI(this.fragmentContext)===jn.HTML){const t=this.treeAdapter.getTagName(this.fragmentContext);t===_e.TITLE||t===_e.TEXTAREA?this.tokenizer.state=ot.MODE.RCDATA:t===_e.STYLE||t===_e.XMP||t===_e.IFRAME||t===_e.NOEMBED||t===_e.NOFRAMES||t===_e.NOSCRIPT?this.tokenizer.state=ot.MODE.RAWTEXT:t===_e.SCRIPT?this.tokenizer.state=ot.MODE.SCRIPT_DATA:t===_e.PLAINTEXT&&(this.tokenizer.state=ot.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,jn.HTML,[]);this._attachElementToTree(n),this.openElements.push(n)}_insertTemplate(t){const n=this.treeAdapter.createElement(t.tagName,jn.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(_e.HTML,jn.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===jn.HTML||this.treeAdapter.getTagName(n)===_e.ANNOTATION_XML&&r===jn.MATHML&&t.type===ot.START_TAG_TOKEN&&t.tagName===_e.SVG)return!1;const i=t.type===ot.CHARACTER_TOKEN||t.type===ot.NULL_CHARACTER_TOKEN||t.type===ot.WHITESPACE_CHARACTER_TOKEN;return(t.type===ot.START_TAG_TOKEN&&t.tagName!==_e.MGLYPH&&t.tagName!==_e.MALIGNMARK||i)&&this._isIntegrationPoint(n,jn.MATHML)||(t.type===ot.START_TAG_TOKEN||i)&&this._isIntegrationPoint(n,jn.HTML)?!1:t.type!==ot.EOF_TOKEN}_processToken(t){Dme[this.insertionMode][t.type](this,t)}_processTokenInBodyMode(t){Dme[kf][t.type](this,t)}_processTokenInForeignContent(t){t.type===ot.CHARACTER_TOKEN?Jxn(this,t):t.type===ot.NULL_CHARACTER_TOKEN?Zxn(this,t):t.type===ot.WHITESPACE_CHARACTER_TOKEN?hl(this,t):t.type===ot.COMMENT_TOKEN?ya(this,t):t.type===ot.START_TAG_TOKEN?ewn(this,t):t.type===ot.END_TAG_TOKEN&&twn(this,t)}_processInputToken(t){this._shouldProcessTokenInForeignContent(t)?this._processTokenInForeignContent(t):this._processToken(t),t.type===ot.START_TAG_TOKEN&&t.selfClosing&&!t.ackSelfClosing&&this._err(as.nonVoidHtmlElementStartTagWithTrailingSolidus)}_isIntegrationPoint(t,n){const r=this.treeAdapter.getTagName(t),i=this.treeAdapter.getNamespaceURI(t),o=this.treeAdapter.getAttrList(t);return bf.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===Mme.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=hh}_closePElement(){this.openElements.generateImpliedEndTagsWithExclusion(_e.P),this.openElements.popUntilTagNamePopped(_e.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=ECn[i];if(o){this.insertionMode=o;break}else if(!n&&(i===_e.TD||i===_e.TH)){this.insertionMode=k8;break}else if(!n&&i===_e.HEAD){this.insertionMode=lE;break}else if(i===_e.SELECT){this._resetInsertionModeForSelect(t);break}else if(i===_e.TEMPLATE){this.insertionMode=this.currentTmplInsertionMode;break}else if(i===_e.HTML){this.insertionMode=this.headElement?N8:I8;break}else if(n){this.insertionMode=kf;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===_e.TEMPLATE)break;if(i===_e.TABLE){this.insertionMode=UZ;return}}this.insertionMode=jZ}_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===_e.TABLE||n===_e.TBODY||n===_e.TFOOT||n===_e.THEAD||n===_e.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===_e.TEMPLATE&&o===jn.HTML){t.parent=this.treeAdapter.getTemplateContent(r);break}else if(i===_e.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 zv.SPECIAL_ELEMENTS[r][n]}};var wCn=xCn;function TCn(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 OCn(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 RCn(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>=SCn;!s||l?(l&&e.activeFormattingElements.removeEntry(s),e.openElements.remove(a)):(a=ACn(e,s),r===t&&(e.activeFormattingElements.bookmark=s),e.treeAdapter.detachNode(r),e.treeAdapter.appendChild(a,r),r=a)}return r}function ACn(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 ICn(e,t,n){if(e._isElementCausesFosterParenting(t))e._fosterParentElement(n);else{const r=e.treeAdapter.getTagName(t),i=e.treeAdapter.getNamespaceURI(t);r===_e.TEMPLATE&&i===jn.HTML&&(t=e.treeAdapter.getTemplateContent(t)),e.treeAdapter.appendChild(t,n)}}function NCn(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 pm(e,t){let n;for(let r=0;r<_Cn&&(n=TCn(e,t),!!n);r++){const i=OCn(e,n);if(!i)break;e.activeFormattingElements.bookmark=n;const o=RCn(e,i,n.element),a=e.openElements.getCommonAncestor(n.element);e.treeAdapter.detachNode(o),ICn(e,a,o),NCn(e,i,n)}}function qr(){}function zA(e){e._err(as.misplacedDoctype)}function ya(e,t){e._appendCommentNode(t,e.openElements.currentTmplContent||e.openElements.current)}function MCn(e,t){e._appendCommentNode(t,e.openElements.items[0])}function Lme(e,t){e._appendCommentNode(t,e.document)}function hl(e,t){e._insertCharacters(t)}function cC(e){e.stopped=!0}function kCn(e,t){e._setDocumentType(t);const n=t.forceQuirks?zv.DOCUMENT_MODE.QUIRKS:Pme.getDocumentMode(t);Pme.isConforming(t)||e._err(as.nonConformingDoctype),e.treeAdapter.setDocumentMode(e.document,n),e.insertionMode=HZ}function uC(e,t){e._err(as.missingDoctype,{beforeToken:!0}),e.treeAdapter.setDocumentMode(e.document,zv.DOCUMENT_MODE.QUIRKS),e.insertionMode=HZ,e._processToken(t)}function PCn(e,t){t.tagName===_e.HTML?(e._insertElement(t,jn.HTML),e.insertionMode=I8):Fx(e,t)}function DCn(e,t){const n=t.tagName;(n===_e.HTML||n===_e.HEAD||n===_e.BODY||n===_e.BR)&&Fx(e,t)}function Fx(e,t){e._insertFakeRootElement(),e.insertionMode=I8,e._processToken(t)}function LCn(e,t){const n=t.tagName;n===_e.HTML?Gl(e,t):n===_e.HEAD?(e._insertElement(t,jn.HTML),e.headElement=e.openElements.current,e.insertionMode=lE):Bx(e,t)}function $Cn(e,t){const n=t.tagName;n===_e.HEAD||n===_e.BODY||n===_e.HTML||n===_e.BR?Bx(e,t):e._err(as.endTagWithoutMatchingOpenElement)}function Bx(e,t){e._insertFakeElement(_e.HEAD),e.headElement=e.openElements.current,e.insertionMode=lE,e._processToken(t)}function Fa(e,t){const n=t.tagName;n===_e.HTML?Gl(e,t):n===_e.BASE||n===_e.BASEFONT||n===_e.BGSOUND||n===_e.LINK||n===_e.META?(e._appendElement(t,jn.HTML),t.ackSelfClosing=!0):n===_e.TITLE?e._switchToTextParsing(t,ot.MODE.RCDATA):n===_e.NOSCRIPT?e.options.scriptingEnabled?e._switchToTextParsing(t,ot.MODE.RAWTEXT):(e._insertElement(t,jn.HTML),e.insertionMode=z3e):n===_e.NOFRAMES||n===_e.STYLE?e._switchToTextParsing(t,ot.MODE.RAWTEXT):n===_e.SCRIPT?e._switchToTextParsing(t,ot.MODE.SCRIPT_DATA):n===_e.TEMPLATE?(e._insertTemplate(t,jn.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1,e.insertionMode=Bk,e._pushTmplInsertionMode(Bk)):n===_e.HEAD?e._err(as.misplacedStartTagForHeadElement):Hx(e,t)}function Vv(e,t){const n=t.tagName;n===_e.HEAD?(e.openElements.pop(),e.insertionMode=N8):n===_e.BODY||n===_e.BR||n===_e.HTML?Hx(e,t):n===_e.TEMPLATE&&e.openElements.tmplCount>0?(e.openElements.generateImpliedEndTagsThoroughly(),e.openElements.currentTagName!==_e.TEMPLATE&&e._err(as.closingOfElementWithOpenChildElements),e.openElements.popUntilTagNamePopped(_e.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e._popTmplInsertionMode(),e._resetInsertionMode()):e._err(as.endTagWithoutMatchingOpenElement)}function Hx(e,t){e.openElements.pop(),e.insertionMode=N8,e._processToken(t)}function FCn(e,t){const n=t.tagName;n===_e.HTML?Gl(e,t):n===_e.BASEFONT||n===_e.BGSOUND||n===_e.HEAD||n===_e.LINK||n===_e.META||n===_e.NOFRAMES||n===_e.STYLE?Fa(e,t):n===_e.NOSCRIPT?e._err(as.nestedNoscriptInHead):jx(e,t)}function BCn(e,t){const n=t.tagName;n===_e.NOSCRIPT?(e.openElements.pop(),e.insertionMode=lE):n===_e.BR?jx(e,t):e._err(as.endTagWithoutMatchingOpenElement)}function jx(e,t){const n=t.type===ot.EOF_TOKEN?as.openElementsLeftAfterEof:as.disallowedContentInNoscriptInHead;e._err(n),e.openElements.pop(),e.insertionMode=lE,e._processToken(t)}function HCn(e,t){const n=t.tagName;n===_e.HTML?Gl(e,t):n===_e.BODY?(e._insertElement(t,jn.HTML),e.framesetOk=!1,e.insertionMode=kf):n===_e.FRAMESET?(e._insertElement(t,jn.HTML),e.insertionMode=P8):n===_e.BASE||n===_e.BASEFONT||n===_e.BGSOUND||n===_e.LINK||n===_e.META||n===_e.NOFRAMES||n===_e.SCRIPT||n===_e.STYLE||n===_e.TEMPLATE||n===_e.TITLE?(e._err(as.abandonedHeadElementChild),e.openElements.push(e.headElement),Fa(e,t),e.openElements.remove(e.headElement)):n===_e.HEAD?e._err(as.misplacedStartTagForHeadElement):Ux(e,t)}function jCn(e,t){const n=t.tagName;n===_e.BODY||n===_e.HTML||n===_e.BR?Ux(e,t):n===_e.TEMPLATE?Vv(e,t):e._err(as.endTagWithoutMatchingOpenElement)}function Ux(e,t){e._insertFakeElement(_e.BODY),e.insertionMode=kf,e._processToken(t)}function d0(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t)}function VA(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t),e.framesetOk=!1}function UCn(e,t){e.openElements.tmplCount===0&&e.treeAdapter.adoptAttributes(e.openElements.items[0],t.attrs)}function zCn(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e.openElements.tmplCount===0&&(e.framesetOk=!1,e.treeAdapter.adoptAttributes(n,t.attrs))}function VCn(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();e.framesetOk&&n&&(e.treeAdapter.detachNode(n),e.openElements.popAllUpToHtmlElement(),e._insertElement(t,jn.HTML),e.insertionMode=P8)}function mp(e,t){e.openElements.hasInButtonScope(_e.P)&&e._closePElement(),e._insertElement(t,jn.HTML)}function GCn(e,t){e.openElements.hasInButtonScope(_e.P)&&e._closePElement();const n=e.openElements.currentTagName;(n===_e.H1||n===_e.H2||n===_e.H3||n===_e.H4||n===_e.H5||n===_e.H6)&&e.openElements.pop(),e._insertElement(t,jn.HTML)}function $me(e,t){e.openElements.hasInButtonScope(_e.P)&&e._closePElement(),e._insertElement(t,jn.HTML),e.skipNextNewLine=!0,e.framesetOk=!1}function WCn(e,t){const n=e.openElements.tmplCount>0;(!e.formElement||n)&&(e.openElements.hasInButtonScope(_e.P)&&e._closePElement(),e._insertElement(t,jn.HTML),n||(e.formElement=e.openElements.current))}function qCn(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===_e.LI&&o===_e.LI?a=_e.LI:(n===_e.DD||n===_e.DT)&&(o===_e.DD||o===_e.DT)&&(a=o),a){e.openElements.generateImpliedEndTagsWithExclusion(a),e.openElements.popUntilTagNamePopped(a);break}if(o!==_e.ADDRESS&&o!==_e.DIV&&o!==_e.P&&e._isSpecialElement(i))break}e.openElements.hasInButtonScope(_e.P)&&e._closePElement(),e._insertElement(t,jn.HTML)}function YCn(e,t){e.openElements.hasInButtonScope(_e.P)&&e._closePElement(),e._insertElement(t,jn.HTML),e.tokenizer.state=ot.MODE.PLAINTEXT}function KCn(e,t){e.openElements.hasInScope(_e.BUTTON)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(_e.BUTTON)),e._reconstructActiveFormattingElements(),e._insertElement(t,jn.HTML),e.framesetOk=!1}function QCn(e,t){const n=e.activeFormattingElements.getElementEntryInScopeWithTagName(_e.A);n&&(pm(e,t),e.openElements.remove(n.element),e.activeFormattingElements.removeEntry(n)),e._reconstructActiveFormattingElements(),e._insertElement(t,jn.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function wb(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,jn.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function XCn(e,t){e._reconstructActiveFormattingElements(),e.openElements.hasInScope(_e.NOBR)&&(pm(e,t),e._reconstructActiveFormattingElements()),e._insertElement(t,jn.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function Fme(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,jn.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1}function ZCn(e,t){e.treeAdapter.getDocumentMode(e.document)!==zv.DOCUMENT_MODE.QUIRKS&&e.openElements.hasInButtonScope(_e.P)&&e._closePElement(),e._insertElement(t,jn.HTML),e.framesetOk=!1,e.insertionMode=Rs}function Fb(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,jn.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function JCn(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,jn.HTML);const n=ot.getTokenAttr(t,H3e.TYPE);(!n||n.toLowerCase()!==j3e)&&(e.framesetOk=!1),t.ackSelfClosing=!0}function Bme(e,t){e._appendElement(t,jn.HTML),t.ackSelfClosing=!0}function exn(e,t){e.openElements.hasInButtonScope(_e.P)&&e._closePElement(),e._appendElement(t,jn.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function txn(e,t){t.tagName=_e.IMG,Fb(e,t)}function nxn(e,t){e._insertElement(t,jn.HTML),e.skipNextNewLine=!0,e.tokenizer.state=ot.MODE.RCDATA,e.originalInsertionMode=e.insertionMode,e.framesetOk=!1,e.insertionMode=Fk}function rxn(e,t){e.openElements.hasInButtonScope(_e.P)&&e._closePElement(),e._reconstructActiveFormattingElements(),e.framesetOk=!1,e._switchToTextParsing(t,ot.MODE.RAWTEXT)}function ixn(e,t){e.framesetOk=!1,e._switchToTextParsing(t,ot.MODE.RAWTEXT)}function Hme(e,t){e._switchToTextParsing(t,ot.MODE.RAWTEXT)}function oxn(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,jn.HTML),e.framesetOk=!1,e.insertionMode===Rs||e.insertionMode===M8||e.insertionMode===du||e.insertionMode===hh||e.insertionMode===k8?e.insertionMode=UZ:e.insertionMode=jZ}function jme(e,t){e.openElements.currentTagName===_e.OPTION&&e.openElements.pop(),e._reconstructActiveFormattingElements(),e._insertElement(t,jn.HTML)}function Ume(e,t){e.openElements.hasInScope(_e.RUBY)&&e.openElements.generateImpliedEndTags(),e._insertElement(t,jn.HTML)}function axn(e,t){e.openElements.hasInScope(_e.RUBY)&&e.openElements.generateImpliedEndTagsWithExclusion(_e.RTC),e._insertElement(t,jn.HTML)}function sxn(e,t){e.openElements.hasInButtonScope(_e.P)&&e._closePElement(),e._insertElement(t,jn.HTML)}function lxn(e,t){e._reconstructActiveFormattingElements(),bf.adjustTokenMathMLAttrs(t),bf.adjustTokenXMLAttrs(t),t.selfClosing?e._appendElement(t,jn.MATHML):e._insertElement(t,jn.MATHML),t.ackSelfClosing=!0}function cxn(e,t){e._reconstructActiveFormattingElements(),bf.adjustTokenSVGAttrs(t),bf.adjustTokenXMLAttrs(t),t.selfClosing?e._appendElement(t,jn.SVG):e._insertElement(t,jn.SVG),t.ackSelfClosing=!0}function jc(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,jn.HTML)}function Gl(e,t){const n=t.tagName;switch(n.length){case 1:n===_e.I||n===_e.S||n===_e.B||n===_e.U?wb(e,t):n===_e.P?mp(e,t):n===_e.A?QCn(e,t):jc(e,t);break;case 2:n===_e.DL||n===_e.OL||n===_e.UL?mp(e,t):n===_e.H1||n===_e.H2||n===_e.H3||n===_e.H4||n===_e.H5||n===_e.H6?GCn(e,t):n===_e.LI||n===_e.DD||n===_e.DT?qCn(e,t):n===_e.EM||n===_e.TT?wb(e,t):n===_e.BR?Fb(e,t):n===_e.HR?exn(e,t):n===_e.RB?Ume(e,t):n===_e.RT||n===_e.RP?axn(e,t):n!==_e.TH&&n!==_e.TD&&n!==_e.TR&&jc(e,t);break;case 3:n===_e.DIV||n===_e.DIR||n===_e.NAV?mp(e,t):n===_e.PRE?$me(e,t):n===_e.BIG?wb(e,t):n===_e.IMG||n===_e.WBR?Fb(e,t):n===_e.XMP?rxn(e,t):n===_e.SVG?cxn(e,t):n===_e.RTC?Ume(e,t):n!==_e.COL&&jc(e,t);break;case 4:n===_e.HTML?UCn(e,t):n===_e.BASE||n===_e.LINK||n===_e.META?Fa(e,t):n===_e.BODY?zCn(e,t):n===_e.MAIN||n===_e.MENU?mp(e,t):n===_e.FORM?WCn(e,t):n===_e.CODE||n===_e.FONT?wb(e,t):n===_e.NOBR?XCn(e,t):n===_e.AREA?Fb(e,t):n===_e.MATH?lxn(e,t):n===_e.MENU?sxn(e,t):n!==_e.HEAD&&jc(e,t);break;case 5:n===_e.STYLE||n===_e.TITLE?Fa(e,t):n===_e.ASIDE?mp(e,t):n===_e.SMALL?wb(e,t):n===_e.TABLE?ZCn(e,t):n===_e.EMBED?Fb(e,t):n===_e.INPUT?JCn(e,t):n===_e.PARAM||n===_e.TRACK?Bme(e,t):n===_e.IMAGE?txn(e,t):n!==_e.FRAME&&n!==_e.TBODY&&n!==_e.TFOOT&&n!==_e.THEAD&&jc(e,t);break;case 6:n===_e.SCRIPT?Fa(e,t):n===_e.CENTER||n===_e.FIGURE||n===_e.FOOTER||n===_e.HEADER||n===_e.HGROUP||n===_e.DIALOG?mp(e,t):n===_e.BUTTON?KCn(e,t):n===_e.STRIKE||n===_e.STRONG?wb(e,t):n===_e.APPLET||n===_e.OBJECT?Fme(e,t):n===_e.KEYGEN?Fb(e,t):n===_e.SOURCE?Bme(e,t):n===_e.IFRAME?ixn(e,t):n===_e.SELECT?oxn(e,t):n===_e.OPTION?jme(e,t):jc(e,t);break;case 7:n===_e.BGSOUND?Fa(e,t):n===_e.DETAILS||n===_e.ADDRESS||n===_e.ARTICLE||n===_e.SECTION||n===_e.SUMMARY?mp(e,t):n===_e.LISTING?$me(e,t):n===_e.MARQUEE?Fme(e,t):n===_e.NOEMBED?Hme(e,t):n!==_e.CAPTION&&jc(e,t);break;case 8:n===_e.BASEFONT?Fa(e,t):n===_e.FRAMESET?VCn(e,t):n===_e.FIELDSET?mp(e,t):n===_e.TEXTAREA?nxn(e,t):n===_e.TEMPLATE?Fa(e,t):n===_e.NOSCRIPT?e.options.scriptingEnabled?Hme(e,t):jc(e,t):n===_e.OPTGROUP?jme(e,t):n!==_e.COLGROUP&&jc(e,t);break;case 9:n===_e.PLAINTEXT?YCn(e,t):jc(e,t);break;case 10:n===_e.BLOCKQUOTE||n===_e.FIGCAPTION?mp(e,t):jc(e,t);break;default:jc(e,t)}}function uxn(e){e.openElements.hasInScope(_e.BODY)&&(e.insertionMode=zZ)}function dxn(e,t){e.openElements.hasInScope(_e.BODY)&&(e.insertionMode=zZ,e._processToken(t))}function Uh(e,t){const n=t.tagName;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n))}function fxn(e){const t=e.openElements.tmplCount>0,n=e.formElement;t||(e.formElement=null),(n||t)&&e.openElements.hasInScope(_e.FORM)&&(e.openElements.generateImpliedEndTags(),t?e.openElements.popUntilTagNamePopped(_e.FORM):e.openElements.remove(n))}function pxn(e){e.openElements.hasInButtonScope(_e.P)||e._insertFakeElement(_e.P),e._closePElement()}function hxn(e){e.openElements.hasInListItemScope(_e.LI)&&(e.openElements.generateImpliedEndTagsWithExclusion(_e.LI),e.openElements.popUntilTagNamePopped(_e.LI))}function mxn(e,t){const n=t.tagName;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTagsWithExclusion(n),e.openElements.popUntilTagNamePopped(n))}function gxn(e){e.openElements.hasNumberedHeaderInScope()&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilNumberedHeaderPopped())}function zme(e,t){const n=t.tagName;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker())}function vxn(e){e._reconstructActiveFormattingElements(),e._insertFakeElement(_e.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 VZ(e,t){const n=t.tagName;switch(n.length){case 1:n===_e.A||n===_e.B||n===_e.I||n===_e.S||n===_e.U?pm(e,t):n===_e.P?pxn(e):zu(e,t);break;case 2:n===_e.DL||n===_e.UL||n===_e.OL?Uh(e,t):n===_e.LI?hxn(e):n===_e.DD||n===_e.DT?mxn(e,t):n===_e.H1||n===_e.H2||n===_e.H3||n===_e.H4||n===_e.H5||n===_e.H6?gxn(e):n===_e.BR?vxn(e):n===_e.EM||n===_e.TT?pm(e,t):zu(e,t);break;case 3:n===_e.BIG?pm(e,t):n===_e.DIR||n===_e.DIV||n===_e.NAV||n===_e.PRE?Uh(e,t):zu(e,t);break;case 4:n===_e.BODY?uxn(e):n===_e.HTML?dxn(e,t):n===_e.FORM?fxn(e):n===_e.CODE||n===_e.FONT||n===_e.NOBR?pm(e,t):n===_e.MAIN||n===_e.MENU?Uh(e,t):zu(e,t);break;case 5:n===_e.ASIDE?Uh(e,t):n===_e.SMALL?pm(e,t):zu(e,t);break;case 6:n===_e.CENTER||n===_e.FIGURE||n===_e.FOOTER||n===_e.HEADER||n===_e.HGROUP||n===_e.DIALOG?Uh(e,t):n===_e.APPLET||n===_e.OBJECT?zme(e,t):n===_e.STRIKE||n===_e.STRONG?pm(e,t):zu(e,t);break;case 7:n===_e.ADDRESS||n===_e.ARTICLE||n===_e.DETAILS||n===_e.SECTION||n===_e.SUMMARY||n===_e.LISTING?Uh(e,t):n===_e.MARQUEE?zme(e,t):zu(e,t);break;case 8:n===_e.FIELDSET?Uh(e,t):n===_e.TEMPLATE?Vv(e,t):zu(e,t);break;case 10:n===_e.BLOCKQUOTE||n===_e.FIGCAPTION?Uh(e,t):zu(e,t);break;default:zu(e,t)}}function gp(e,t){e.tmplInsertionModeStackTop>-1?Q3e(e,t):e.stopped=!0}function bxn(e,t){t.tagName===_e.SCRIPT&&(e.pendingScript=e.openElements.current),e.openElements.pop(),e.insertionMode=e.originalInsertionMode}function yxn(e,t){e._err(as.eofInElementThatCanContainOnlyText),e.openElements.pop(),e.insertionMode=e.originalInsertionMode,e._processToken(t)}function vp(e,t){const n=e.openElements.currentTagName;n===_e.TABLE||n===_e.TBODY||n===_e.TFOOT||n===_e.THEAD||n===_e.TR?(e.pendingCharacterTokens=[],e.hasNonWhitespacePendingCharacterToken=!1,e.originalInsertionMode=e.insertionMode,e.insertionMode=V3e,e._processToken(t)):Kc(e,t)}function _xn(e,t){e.openElements.clearBackToTableContext(),e.activeFormattingElements.insertMarker(),e._insertElement(t,jn.HTML),e.insertionMode=M8}function Sxn(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,jn.HTML),e.insertionMode=SO}function Exn(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(_e.COLGROUP),e.insertionMode=SO,e._processToken(t)}function Cxn(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,jn.HTML),e.insertionMode=du}function xxn(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(_e.TBODY),e.insertionMode=du,e._processToken(t)}function wxn(e,t){e.openElements.hasInTableScope(_e.TABLE)&&(e.openElements.popUntilTagNamePopped(_e.TABLE),e._resetInsertionMode(),e._processToken(t))}function Txn(e,t){const n=ot.getTokenAttr(t,H3e.TYPE);n&&n.toLowerCase()===j3e?e._appendElement(t,jn.HTML):Kc(e,t),t.ackSelfClosing=!0}function Oxn(e,t){!e.formElement&&e.openElements.tmplCount===0&&(e._insertElement(t,jn.HTML),e.formElement=e.openElements.current,e.openElements.pop())}function GZ(e,t){const n=t.tagName;switch(n.length){case 2:n===_e.TD||n===_e.TH||n===_e.TR?xxn(e,t):Kc(e,t);break;case 3:n===_e.COL?Exn(e,t):Kc(e,t);break;case 4:n===_e.FORM?Oxn(e,t):Kc(e,t);break;case 5:n===_e.TABLE?wxn(e,t):n===_e.STYLE?Fa(e,t):n===_e.TBODY||n===_e.TFOOT||n===_e.THEAD?Cxn(e,t):n===_e.INPUT?Txn(e,t):Kc(e,t);break;case 6:n===_e.SCRIPT?Fa(e,t):Kc(e,t);break;case 7:n===_e.CAPTION?_xn(e,t):Kc(e,t);break;case 8:n===_e.COLGROUP?Sxn(e,t):n===_e.TEMPLATE?Fa(e,t):Kc(e,t);break;default:Kc(e,t)}}function WZ(e,t){const n=t.tagName;n===_e.TABLE?e.openElements.hasInTableScope(_e.TABLE)&&(e.openElements.popUntilTagNamePopped(_e.TABLE),e._resetInsertionMode()):n===_e.TEMPLATE?Vv(e,t):n!==_e.BODY&&n!==_e.CAPTION&&n!==_e.COL&&n!==_e.COLGROUP&&n!==_e.HTML&&n!==_e.TBODY&&n!==_e.TD&&n!==_e.TFOOT&&n!==_e.TH&&n!==_e.THEAD&&n!==_e.TR&&Kc(e,t)}function Kc(e,t){const n=e.fosterParentingEnabled;e.fosterParentingEnabled=!0,e._processTokenInBodyMode(t),e.fosterParentingEnabled=n}function Rxn(e,t){e.pendingCharacterTokens.push(t)}function Axn(e,t){e.pendingCharacterTokens.push(t),e.hasNonWhitespacePendingCharacterToken=!0}function dC(e,t){let n=0;if(e.hasNonWhitespacePendingCharacterToken)for(;n<e.pendingCharacterTokens.length;n++)Kc(e,e.pendingCharacterTokens[n]);else for(;n<e.pendingCharacterTokens.length;n++)e._insertCharacters(e.pendingCharacterTokens[n]);e.insertionMode=e.originalInsertionMode,e._processToken(t)}function Ixn(e,t){const n=t.tagName;n===_e.CAPTION||n===_e.COL||n===_e.COLGROUP||n===_e.TBODY||n===_e.TD||n===_e.TFOOT||n===_e.TH||n===_e.THEAD||n===_e.TR?e.openElements.hasInTableScope(_e.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(_e.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=Rs,e._processToken(t)):Gl(e,t)}function Nxn(e,t){const n=t.tagName;n===_e.CAPTION||n===_e.TABLE?e.openElements.hasInTableScope(_e.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(_e.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=Rs,n===_e.TABLE&&e._processToken(t)):n!==_e.BODY&&n!==_e.COL&&n!==_e.COLGROUP&&n!==_e.HTML&&n!==_e.TBODY&&n!==_e.TD&&n!==_e.TFOOT&&n!==_e.TH&&n!==_e.THEAD&&n!==_e.TR&&VZ(e,t)}function Mxn(e,t){const n=t.tagName;n===_e.HTML?Gl(e,t):n===_e.COL?(e._appendElement(t,jn.HTML),t.ackSelfClosing=!0):n===_e.TEMPLATE?Fa(e,t):Hk(e,t)}function kxn(e,t){const n=t.tagName;n===_e.COLGROUP?e.openElements.currentTagName===_e.COLGROUP&&(e.openElements.pop(),e.insertionMode=Rs):n===_e.TEMPLATE?Vv(e,t):n!==_e.COL&&Hk(e,t)}function Hk(e,t){e.openElements.currentTagName===_e.COLGROUP&&(e.openElements.pop(),e.insertionMode=Rs,e._processToken(t))}function Pxn(e,t){const n=t.tagName;n===_e.TR?(e.openElements.clearBackToTableBodyContext(),e._insertElement(t,jn.HTML),e.insertionMode=hh):n===_e.TH||n===_e.TD?(e.openElements.clearBackToTableBodyContext(),e._insertFakeElement(_e.TR),e.insertionMode=hh,e._processToken(t)):n===_e.CAPTION||n===_e.COL||n===_e.COLGROUP||n===_e.TBODY||n===_e.TFOOT||n===_e.THEAD?e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=Rs,e._processToken(t)):GZ(e,t)}function Dxn(e,t){const n=t.tagName;n===_e.TBODY||n===_e.TFOOT||n===_e.THEAD?e.openElements.hasInTableScope(n)&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=Rs):n===_e.TABLE?e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=Rs,e._processToken(t)):(n!==_e.BODY&&n!==_e.CAPTION&&n!==_e.COL&&n!==_e.COLGROUP||n!==_e.HTML&&n!==_e.TD&&n!==_e.TH&&n!==_e.TR)&&WZ(e,t)}function Lxn(e,t){const n=t.tagName;n===_e.TH||n===_e.TD?(e.openElements.clearBackToTableRowContext(),e._insertElement(t,jn.HTML),e.insertionMode=k8,e.activeFormattingElements.insertMarker()):n===_e.CAPTION||n===_e.COL||n===_e.COLGROUP||n===_e.TBODY||n===_e.TFOOT||n===_e.THEAD||n===_e.TR?e.openElements.hasInTableScope(_e.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=du,e._processToken(t)):GZ(e,t)}function $xn(e,t){const n=t.tagName;n===_e.TR?e.openElements.hasInTableScope(_e.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=du):n===_e.TABLE?e.openElements.hasInTableScope(_e.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=du,e._processToken(t)):n===_e.TBODY||n===_e.TFOOT||n===_e.THEAD?(e.openElements.hasInTableScope(n)||e.openElements.hasInTableScope(_e.TR))&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=du,e._processToken(t)):(n!==_e.BODY&&n!==_e.CAPTION&&n!==_e.COL&&n!==_e.COLGROUP||n!==_e.HTML&&n!==_e.TD&&n!==_e.TH)&&WZ(e,t)}function Fxn(e,t){const n=t.tagName;n===_e.CAPTION||n===_e.COL||n===_e.COLGROUP||n===_e.TBODY||n===_e.TD||n===_e.TFOOT||n===_e.TH||n===_e.THEAD||n===_e.TR?(e.openElements.hasInTableScope(_e.TD)||e.openElements.hasInTableScope(_e.TH))&&(e._closeTableCell(),e._processToken(t)):Gl(e,t)}function Bxn(e,t){const n=t.tagName;n===_e.TD||n===_e.TH?e.openElements.hasInTableScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=hh):n===_e.TABLE||n===_e.TBODY||n===_e.TFOOT||n===_e.THEAD||n===_e.TR?e.openElements.hasInTableScope(n)&&(e._closeTableCell(),e._processToken(t)):n!==_e.BODY&&n!==_e.CAPTION&&n!==_e.COL&&n!==_e.COLGROUP&&n!==_e.HTML&&VZ(e,t)}function Y3e(e,t){const n=t.tagName;n===_e.HTML?Gl(e,t):n===_e.OPTION?(e.openElements.currentTagName===_e.OPTION&&e.openElements.pop(),e._insertElement(t,jn.HTML)):n===_e.OPTGROUP?(e.openElements.currentTagName===_e.OPTION&&e.openElements.pop(),e.openElements.currentTagName===_e.OPTGROUP&&e.openElements.pop(),e._insertElement(t,jn.HTML)):n===_e.INPUT||n===_e.KEYGEN||n===_e.TEXTAREA||n===_e.SELECT?e.openElements.hasInSelectScope(_e.SELECT)&&(e.openElements.popUntilTagNamePopped(_e.SELECT),e._resetInsertionMode(),n!==_e.SELECT&&e._processToken(t)):(n===_e.SCRIPT||n===_e.TEMPLATE)&&Fa(e,t)}function K3e(e,t){const n=t.tagName;if(n===_e.OPTGROUP){const r=e.openElements.items[e.openElements.stackTop-1],i=r&&e.treeAdapter.getTagName(r);e.openElements.currentTagName===_e.OPTION&&i===_e.OPTGROUP&&e.openElements.pop(),e.openElements.currentTagName===_e.OPTGROUP&&e.openElements.pop()}else n===_e.OPTION?e.openElements.currentTagName===_e.OPTION&&e.openElements.pop():n===_e.SELECT&&e.openElements.hasInSelectScope(_e.SELECT)?(e.openElements.popUntilTagNamePopped(_e.SELECT),e._resetInsertionMode()):n===_e.TEMPLATE&&Vv(e,t)}function Hxn(e,t){const n=t.tagName;n===_e.CAPTION||n===_e.TABLE||n===_e.TBODY||n===_e.TFOOT||n===_e.THEAD||n===_e.TR||n===_e.TD||n===_e.TH?(e.openElements.popUntilTagNamePopped(_e.SELECT),e._resetInsertionMode(),e._processToken(t)):Y3e(e,t)}function jxn(e,t){const n=t.tagName;n===_e.CAPTION||n===_e.TABLE||n===_e.TBODY||n===_e.TFOOT||n===_e.THEAD||n===_e.TR||n===_e.TD||n===_e.TH?e.openElements.hasInTableScope(n)&&(e.openElements.popUntilTagNamePopped(_e.SELECT),e._resetInsertionMode(),e._processToken(t)):K3e(e,t)}function Uxn(e,t){const n=t.tagName;if(n===_e.BASE||n===_e.BASEFONT||n===_e.BGSOUND||n===_e.LINK||n===_e.META||n===_e.NOFRAMES||n===_e.SCRIPT||n===_e.STYLE||n===_e.TEMPLATE||n===_e.TITLE)Fa(e,t);else{const r=CCn[n]||kf;e._popTmplInsertionMode(),e._pushTmplInsertionMode(r),e.insertionMode=r,e._processToken(t)}}function zxn(e,t){t.tagName===_e.TEMPLATE&&Vv(e,t)}function Q3e(e,t){e.openElements.tmplCount>0?(e.openElements.popUntilTagNamePopped(_e.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e._popTmplInsertionMode(),e._resetInsertionMode(),e._processToken(t)):e.stopped=!0}function Vxn(e,t){t.tagName===_e.HTML?Gl(e,t):jk(e,t)}function Gxn(e,t){t.tagName===_e.HTML?e.fragmentContext||(e.insertionMode=W3e):jk(e,t)}function jk(e,t){e.insertionMode=kf,e._processToken(t)}function Wxn(e,t){const n=t.tagName;n===_e.HTML?Gl(e,t):n===_e.FRAMESET?e._insertElement(t,jn.HTML):n===_e.FRAME?(e._appendElement(t,jn.HTML),t.ackSelfClosing=!0):n===_e.NOFRAMES&&Fa(e,t)}function qxn(e,t){t.tagName===_e.FRAMESET&&!e.openElements.isRootHtmlElementCurrent()&&(e.openElements.pop(),!e.fragmentContext&&e.openElements.currentTagName!==_e.FRAMESET&&(e.insertionMode=G3e))}function Yxn(e,t){const n=t.tagName;n===_e.HTML?Gl(e,t):n===_e.NOFRAMES&&Fa(e,t)}function Kxn(e,t){t.tagName===_e.HTML&&(e.insertionMode=q3e)}function Qxn(e,t){t.tagName===_e.HTML?Gl(e,t):SN(e,t)}function SN(e,t){e.insertionMode=kf,e._processToken(t)}function Xxn(e,t){const n=t.tagName;n===_e.HTML?Gl(e,t):n===_e.NOFRAMES&&Fa(e,t)}function Zxn(e,t){t.chars=bCn.REPLACEMENT_CHARACTER,e._insertCharacters(t)}function Jxn(e,t){e._insertCharacters(t),e.framesetOk=!1}function ewn(e,t){if(bf.causesExit(t)&&!e.fragmentContext){for(;e.treeAdapter.getNamespaceURI(e.openElements.current)!==jn.HTML&&!e._isIntegrationPoint(e.openElements.current);)e.openElements.pop();e._processToken(t)}else{const n=e._getAdjustedCurrentElement(),r=e.treeAdapter.getNamespaceURI(n);r===jn.MATHML?bf.adjustTokenMathMLAttrs(t):r===jn.SVG&&(bf.adjustTokenSVGTagName(t),bf.adjustTokenSVGAttrs(t)),bf.adjustTokenXMLAttrs(t),t.selfClosing?e._appendElement(t,r):e._insertElement(t,r),t.ackSelfClosing=!0}}function twn(e,t){for(let n=e.openElements.stackTop;n>0;n--){const r=e.openElements.items[n];if(e.treeAdapter.getNamespaceURI(r)===jn.HTML){e._processToken(t);break}if(e.treeAdapter.getTagName(r).toLowerCase()===t.tagName){e.openElements.popUntilElementPopped(r);break}}}const nwn=oi(wCn),EO=X3e("start"),D8=X3e("end");function rwn(e){return{start:EO(e),end:D8(e)}}function X3e(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 CO{constructor(t,n,r){this.property=t,this.normal=n,r&&(this.space=r)}}CO.prototype.property={};CO.prototype.normal={};CO.prototype.space=null;function Z3e(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 CO(n,r,t)}function RT(e){return e.toLowerCase()}class ku{constructor(t,n){this.property=t,this.attribute=n}}ku.prototype.space=null;ku.prototype.boolean=!1;ku.prototype.booleanish=!1;ku.prototype.overloadedBoolean=!1;ku.prototype.number=!1;ku.prototype.commaSeparated=!1;ku.prototype.spaceSeparated=!1;ku.prototype.commaOrSpaceSeparated=!1;ku.prototype.mustUseProperty=!1;ku.prototype.defined=!1;let iwn=0;const Ar=Gv(),ca=Gv(),J3e=Gv(),bn=Gv(),Ki=Gv(),ky=Gv(),oc=Gv();function Gv(){return 2**++iwn}const vG=Object.freeze(Object.defineProperty({__proto__:null,boolean:Ar,booleanish:ca,commaOrSpaceSeparated:oc,commaSeparated:ky,number:bn,overloadedBoolean:J3e,spaceSeparated:Ki},Symbol.toStringTag,{value:"Module"})),nF=Object.keys(vG);class qZ extends ku{constructor(t,n,r,i){let o=-1;if(super(t,n),Vme(this,"space",i),typeof r=="number")for(;++o<nF.length;){const a=nF[o];Vme(this,nF[o],(r&vG[a])===vG[a])}}}qZ.prototype.defined=!0;function Vme(e,t,n){n&&(e[t]=n)}const own={}.hasOwnProperty;function cE(e){const t={},n={};let r;for(r in e.properties)if(own.call(e.properties,r)){const i=e.properties[r],o=new qZ(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(o.mustUseProperty=!0),t[r]=o,n[RT(r)]=r,n[RT(o.attribute)]=r}return new CO(t,n,e.space)}const e8e=cE({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}}),t8e=cE({space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()},properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function n8e(e,t){return t in e?e[t]:t}function r8e(e,t){return n8e(e,t.toLowerCase())}const i8e=cE({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:r8e,properties:{xmlns:null,xmlnsXLink:null}}),o8e=cE({transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()},properties:{ariaActiveDescendant:null,ariaAtomic:ca,ariaAutoComplete:null,ariaBusy:ca,ariaChecked:ca,ariaColCount:bn,ariaColIndex:bn,ariaColSpan:bn,ariaControls:Ki,ariaCurrent:null,ariaDescribedBy:Ki,ariaDetails:null,ariaDisabled:ca,ariaDropEffect:Ki,ariaErrorMessage:null,ariaExpanded:ca,ariaFlowTo:Ki,ariaGrabbed:ca,ariaHasPopup:null,ariaHidden:ca,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Ki,ariaLevel:bn,ariaLive:null,ariaModal:ca,ariaMultiLine:ca,ariaMultiSelectable:ca,ariaOrientation:null,ariaOwns:Ki,ariaPlaceholder:null,ariaPosInSet:bn,ariaPressed:ca,ariaReadOnly:ca,ariaRelevant:null,ariaRequired:ca,ariaRoleDescription:Ki,ariaRowCount:bn,ariaRowIndex:bn,ariaRowSpan:bn,ariaSelected:ca,ariaSetSize:bn,ariaSort:null,ariaValueMax:bn,ariaValueMin:bn,ariaValueNow:bn,ariaValueText:null,role:null}}),awn=cE({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:r8e,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:ky,acceptCharset:Ki,accessKey:Ki,action:null,allow:null,allowFullScreen:Ar,allowPaymentRequest:Ar,allowUserMedia:Ar,alt:null,as:null,async:Ar,autoCapitalize:null,autoComplete:Ki,autoFocus:Ar,autoPlay:Ar,blocking:Ki,capture:null,charSet:null,checked:Ar,cite:null,className:Ki,cols:bn,colSpan:null,content:null,contentEditable:ca,controls:Ar,controlsList:Ki,coords:bn|ky,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Ar,defer:Ar,dir:null,dirName:null,disabled:Ar,download:J3e,draggable:ca,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Ar,formTarget:null,headers:Ki,height:bn,hidden:Ar,high:bn,href:null,hrefLang:null,htmlFor:Ki,httpEquiv:Ki,id:null,imageSizes:null,imageSrcSet:null,inert:Ar,inputMode:null,integrity:null,is:null,isMap:Ar,itemId:null,itemProp:Ki,itemRef:Ki,itemScope:Ar,itemType:Ki,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Ar,low:bn,manifest:null,max:null,maxLength:bn,media:null,method:null,min:null,minLength:bn,multiple:Ar,muted:Ar,name:null,nonce:null,noModule:Ar,noValidate:Ar,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:Ar,optimum:bn,pattern:null,ping:Ki,placeholder:null,playsInline:Ar,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Ar,referrerPolicy:null,rel:Ki,required:Ar,reversed:Ar,rows:bn,rowSpan:bn,sandbox:Ki,scope:null,scoped:Ar,seamless:Ar,selected:Ar,shadowRootClonable:Ar,shadowRootDelegatesFocus:Ar,shadowRootMode:null,shape:null,size:bn,sizes:null,slot:null,span:bn,spellCheck:ca,src:null,srcDoc:null,srcLang:null,srcSet:null,start:bn,step:null,style:null,tabIndex:bn,target:null,title:null,translate:null,type:null,typeMustMatch:Ar,useMap:null,value:ca,width:bn,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Ki,axis:null,background:null,bgColor:null,border:bn,borderColor:null,bottomMargin:bn,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Ar,declare:Ar,event:null,face:null,frame:null,frameBorder:null,hSpace:bn,leftMargin:bn,link:null,longDesc:null,lowSrc:null,marginHeight:bn,marginWidth:bn,noResize:Ar,noHref:Ar,noShade:Ar,noWrap:Ar,object:null,profile:null,prompt:null,rev:null,rightMargin:bn,rules:null,scheme:null,scrolling:ca,standby:null,summary:null,text:null,topMargin:bn,valueType:null,version:null,vAlign:null,vLink:null,vSpace:bn,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Ar,disableRemotePlayback:Ar,prefix:null,property:null,results:bn,security:null,unselectable:null}}),swn=cE({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:n8e,properties:{about:oc,accentHeight:bn,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:bn,amplitude:bn,arabicForm:null,ascent:bn,attributeName:null,attributeType:null,azimuth:bn,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:bn,by:null,calcMode:null,capHeight:bn,className:Ki,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:bn,diffuseConstant:bn,direction:null,display:null,dur:null,divisor:bn,dominantBaseline:null,download:Ar,dx:null,dy:null,edgeMode:null,editable:null,elevation:bn,enableBackground:null,end:null,event:null,exponent:bn,externalResourcesRequired:null,fill:null,fillOpacity:bn,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:ky,g2:ky,glyphName:ky,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:bn,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:bn,horizOriginX:bn,horizOriginY:bn,id:null,ideographic:bn,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:bn,k:bn,k1:bn,k2:bn,k3:bn,k4:bn,kernelMatrix:oc,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:bn,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:bn,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:bn,overlineThickness:bn,paintOrder:null,panose1:null,path:null,pathLength:bn,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Ki,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:bn,pointsAtY:bn,pointsAtZ:bn,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:oc,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:oc,rev:oc,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:oc,requiredFeatures:oc,requiredFonts:oc,requiredFormats:oc,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:bn,specularExponent:bn,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:bn,strikethroughThickness:bn,string:null,stroke:null,strokeDashArray:oc,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:bn,strokeOpacity:bn,strokeWidth:null,style:null,surfaceScale:bn,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:oc,tabIndex:bn,tableValues:null,target:null,targetX:bn,targetY:bn,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:oc,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:bn,underlineThickness:bn,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:bn,values:null,vAlphabetic:bn,vMathematical:bn,vectorEffect:null,vHanging:bn,vIdeographic:bn,version:null,vertAdvY:bn,vertOriginX:bn,vertOriginY:bn,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:bn,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),lwn=/^data[-\w.:]+$/i,Gme=/-[a-z]/g,cwn=/[A-Z]/g;function L8(e,t){const n=RT(t);let r=t,i=ku;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&lwn.test(t)){if(t.charAt(4)==="-"){const o=t.slice(5).replace(Gme,dwn);r="data"+o.charAt(0).toUpperCase()+o.slice(1)}else{const o=t.slice(4);if(!Gme.test(o)){let a=o.replace(cwn,uwn);a.charAt(0)!=="-"&&(a="-"+a),t="data"+a}}i=qZ}return new i(r,t)}function uwn(e){return"-"+e.toLowerCase()}function dwn(e){return e.charAt(1).toUpperCase()}const xO=Z3e([t8e,e8e,i8e,o8e,awn],"html"),uE=Z3e([t8e,e8e,i8e,o8e,swn],"svg"),Wme=/[#.]/g;function fwn(e,t){const n=e||"",r={};let i=0,o,a;for(;i<n.length;){Wme.lastIndex=i;const s=Wme.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 qme(e){const t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function a8e(e){return e.join(" ").trim()}function Yme(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 s8e(e,t){const n=t||{};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const pwn=new Set(["menu","submit","reset","button"]),bG={}.hasOwnProperty;function l8e(e,t,n){const r=n&&vwn(n);return function(o,a,...s){let l=-1,c;if(o==null)c={type:"root",children:[]},s.unshift(a);else if(c=fwn(o,t),c.tagName=c.tagName.toLowerCase(),r&&bG.call(r,c.tagName)&&(c.tagName=r[c.tagName]),hwn(a,c.tagName)){let u;for(u in a)bG.call(a,u)&&mwn(e,c.properties,u,a[u])}else s.unshift(a);for(;++l<s.length;)yG(c.children,s[l]);return c.type==="element"&&c.tagName==="template"&&(c.content={type:"root",children:c.children},c.children=[]),c}}function hwn(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"?pwn.has(e.type.toLowerCase()):!("value"in e)}function mwn(e,t,n,r){const i=L8(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=qme(r):i.commaSeparated?a=Yme(r):i.commaOrSpaceSeparated?a=qme(Yme(r).join(" ")):a=Kme(i,i.property,r):Array.isArray(r)?a=r.concat():a=i.property==="style"?gwn(r):String(r);if(Array.isArray(a)){const s=[];for(;++o<a.length;)s[o]=Kme(i,i.property,a[o]);a=s}i.property==="className"&&Array.isArray(t.className)&&(a=t.className.concat(a)),t[i.property]=a}}function yG(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;)yG(e,t[n]);else if(typeof t=="object"&&"type"in t)t.type==="root"?yG(e,t.children):e.push(t);else throw new Error("Expected node, nodes, or string, got `"+t+"`")}function Kme(e,t,n){if(typeof n=="string"){if(e.number&&n&&!Number.isNaN(Number(n)))return Number(n);if((e.boolean||e.overloadedBoolean)&&(n===""||RT(n)===RT(t)))return!0}return n}function gwn(e){const t=[];let n;for(n in e)bG.call(e,n)&&t.push([n,e[n]].join(": "));return t.join("; ")}function vwn(e){const t={};let n=-1;for(;++n<e.length;)t[e[n].toLowerCase()]=e[n];return t}const bwn=l8e(xO,"div"),ywn=["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"],_wn=l8e(uE,"g",ywn);function Swn(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 AT={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/"},c8e={}.hasOwnProperty,Ewn=Object.prototype;function Cwn(e,t){const n=t||{};let r,i;return Twn(n)?(i=n,r={}):(i=n.file||void 0,r=n),YZ({schema:r.space==="svg"?uE:xO,file:i,verbose:r.verbose,location:!1},e)}function YZ(e,t){let n;switch(t.nodeName){case"#comment":{const r=t;return n={type:"comment",value:r.data},EN(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:u8e(e,t.childNodes),data:{quirksMode:i}},e.file&&e.location){const o=String(e.file),a=Swn(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"},EN(e,r,n),n}case"#text":{const r=t;return n={type:"text",value:r.value},EN(e,r,n),n}default:return n=xwn(e,t),n}}function u8e(e,t){let n=-1;const r=[];for(;++n<t.length;)r[n]=YZ(e,t[n]);return r}function xwn(e,t){const n=e.schema;e.schema=t.namespaceURI===AT.svg?uE:xO;let r=-1;const i={};for(;++r<t.attrs.length;){const s=t.attrs[r],l=(s.prefix?s.prefix+":":"")+s.name;c8e.call(Ewn,l)||(i[l]=s.value)}const a=(e.schema.space==="svg"?_wn:bwn)(t.tagName,i,u8e(e,t.childNodes));if(EN(e,t,a),a.tagName==="template"){const s=t,l=s.sourceCodeLocation,c=l&&l.startTag&&ay(l.startTag),u=l&&l.endTag&&ay(l.endTag),d=YZ(e,s.content);c&&u&&e.file&&(d.position={start:c.end,end:u.start}),a.content=d}return e.schema=n,a}function EN(e,t,n){if("sourceCodeLocation"in t&&t.sourceCodeLocation&&e.file){const r=wwn(e,n,t.sourceCodeLocation);r&&(e.location=!0,n.position=r)}}function wwn(e,t,n){const r=ay(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)c8e.call(n.attrs,a)&&(o[L8(e.schema,a).property]=ay(n.attrs[a]));t.data={position:{opening:ay(n.startTag),closing:n.endTag?ay(n.endTag):null,properties:o}}}}return r}function ay(e){const t=Qme({line:e.startLine,column:e.startCol,offset:e.startOffset}),n=Qme({line:e.endLine,column:e.endCol,offset:e.endOffset});return t||n?{start:t,end:n}:void 0}function Qme(e){return e.line&&e.column?e:void 0}function Twn(e){return"messages"in e}const Xme={}.hasOwnProperty;function KZ(e,t){const n=t||{};function r(i,...o){let a=r.invalid;const s=r.handlers;if(i&&Xme.call(i,e)){const l=String(i[e]);a=Xme.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 Own={}.hasOwnProperty,d8e=KZ("type",{handlers:{root:Awn,element:Pwn,text:Mwn,comment:kwn,doctype:Nwn}});function Rwn(e,t){return d8e(e,xO)}function Awn(e,t){const n={nodeName:"#document",mode:(e.data||{}).quirksMode?"quirks":"no-quirks",childNodes:[]};return n.childNodes=QZ(e.children,n,t),dE(e,n),n}function Iwn(e,t){const n={nodeName:"#document-fragment",childNodes:[]};return n.childNodes=QZ(e.children,n,t),dE(e,n),n}function Nwn(e){const t={nodeName:"#documentType",name:"html",publicId:"",systemId:"",parentNode:void 0};return dE(e,t),t}function Mwn(e){const t={nodeName:"#text",value:e.value,parentNode:void 0};return dE(e,t),t}function kwn(e){const t={nodeName:"#comment",data:e.value,parentNode:void 0};return dE(e,t),t}function Pwn(e,t){const n=t;let r=n;e.type==="element"&&e.tagName.toLowerCase()==="svg"&&n.space==="html"&&(r=uE);const i=[];let o;if(e.properties){for(o in e.properties)if(o!=="children"&&Own.call(e.properties,o)){const s=Dwn(r,o,e.properties[o]);s&&i.push(s)}}const a={nodeName:e.tagName,tagName:e.tagName,attrs:i,namespaceURI:AT[r.space],childNodes:[],parentNode:void 0};return a.childNodes=QZ(e.children,a,r),dE(e,a),e.tagName==="template"&&e.content&&(a.content=Iwn(e.content,r)),a}function Dwn(e,t,n){const r=L8(e,t);if(n==null||n===!1||typeof n=="number"&&Number.isNaN(n)||!n&&r.boolean)return;Array.isArray(n)&&(n=r.commaSeparated?s8e(n):a8e(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=AT[r.space]}return i}function QZ(e,t,n){let r=-1;const i=[];if(e)for(;++r<e.length;){const o=d8e(e[r],n);o.parentNode=t,i.push(o)}return i}function dE(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 f8e=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","isindex","keygen","link","menuitem","meta","nextid","param","source","track","wbr"],Lwn="IN_TEMPLATE_MODE",$wn="DATA_STATE",Fwn="CHARACTER_TOKEN",Bwn="START_TAG_TOKEN",Hwn="END_TAG_TOKEN",jwn="COMMENT_TOKEN",Uwn="DOCTYPE_TOKEN",zwn={sourceCodeLocationInfo:!0,scriptingEnabled:!1},p8e=function(e,t,n){let r=-1;const i=new nwn(zwn),o=KZ("type",{handlers:{root:g,element:v,text:y,comment:_,doctype:b,raw:S},unknown:qwn});let a,s,l,c,u;if(Kwn(t)&&(n=t,t=void 0),n&&n.passThrough)for(;++r<n.passThrough.length;)o.handlers[n.passThrough[r]]=x;const d=Cwn(Ywn(e)?p():f(),t);if(a&&PZ(d,"comment",(C,w,O)=>{const T=C;if(T.value.stitch&&O!==null&&w!==null)return O.children[w]=T.value.stitch,w}),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:AT.html,childNodes:[]},w={nodeName:"documentmock",tagName:"documentmock",attrs:[],namespaceURI:AT.html,childNodes:[]},O={nodeName:"#document-fragment",childNodes:[]};if(i._bootstrap(w,C),i._pushTmplInsertionMode(Lwn),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),E(),i._adoptNodes(w.childNodes[0],O),O}function p(){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),E(),C}function m(C){let w=-1;if(C)for(;++w<C.length;)o(C[w])}function g(C){m(C.children)}function v(C){E(),i._processInputToken(Vwn(C)),m(C.children),f8e.includes(C.tagName)||(E(),i._processInputToken(Wwn(C)))}function y(C){E(),i._processInputToken({type:Fwn,chars:C.value,location:sy(C)})}function b(C){E(),i._processInputToken({type:Uwn,name:"html",forceQuirks:!1,publicId:"",systemId:"",location:sy(C)})}function _(C){E(),i._processInputToken({type:jwn,data:C.value,location:sy(C)})}function S(C){const w=EO(C),O=w.line||1,T=w.column||1,A=w.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=-T+1,c.droppedBufferSize=A,c.offset=0,c.col=1,c.line=O,u.currentAttrLocation=void 0,u.ctLoc=sy(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 x(C){a=!0;let w;"children"in C?w={...C,children:p8e({type:"root",children:C.children},t,n).children}:w={...C},_({type:"comment",value:{stitch:w}})}function E(){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=$wn,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 Vwn(e){const t=Object.assign(sy(e));return t.startTag=Object.assign({},t),{type:Bwn,tagName:e.tagName,selfClosing:!1,attrs:Gwn(e),location:t}}function Gwn(e){return Rwn({tagName:e.tagName,type:"element",properties:e.properties,children:[]}).attrs}function Wwn(e){const t=Object.assign(sy(e));return t.startTag=Object.assign({},t),{type:Hwn,tagName:e.tagName,attrs:[],location:t}}function qwn(e){throw new Error("Cannot compile `"+e.type+"` node")}function Ywn(e){const t=e.type==="root"?e.children[0]:e;return!!(t&&(t.type==="doctype"||t.type==="element"&&t.tagName==="html"))}function sy(e){const t=EO(e),n=D8(e);return{startLine:t.line,startCol:t.column,startOffset:t.offset,endLine:n.line,endCol:n.column,endOffset:n.offset}}function Kwn(e){return!!(e&&!("message"in e&&"messages"in e))}function Qwn(e={}){return(t,n)=>p8e(t,n,e)}function Xwn(e=DZ){return t=>JSn(t,e)}const Zwn=/["&'<>`]/g,Jwn=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,eTn=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,tTn=/[|\\{}()[\]^$+*?.]/g,Zme=new WeakMap;function nTn(e,t){if(e=e.replace(t.subset?rTn(t.subset):Zwn,r),t.subset||t.escapeOnly)return e;return e.replace(Jwn,n).replace(eTn,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 rTn(e){let t=Zme.get(e);return t||(t=iTn(e),Zme.set(e,t)),t}function iTn(e){const t=[];let n=-1;for(;++n<e.length;)t.push(e[n].replace(tTn,"\\$&"));return new RegExp("(?:"+t.join("|")+")","g")}const oTn=/[\dA-Fa-f]/;function aTn(e,t,n){const r="&#x"+e.toString(16).toUpperCase();return n&&t&&!oTn.test(String.fromCharCode(t))?r:r+";"}const sTn=/\d/;function lTn(e,t,n){const r="&#"+String(e);return n&&t&&!sTn.test(String.fromCharCode(t))?r:r+";"}const cTn=["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"],rF={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:"€"},uTn=["cent","copy","divide","gt","lt","not","para","times"],h8e={}.hasOwnProperty,_G={};let GA;for(GA in rF)h8e.call(rF,GA)&&(_G[rF[GA]]=GA);const dTn=/[^\dA-Za-z]/;function fTn(e,t,n,r){const i=String.fromCharCode(e);if(h8e.call(_G,i)){const o=_G[i],a="&"+o;return n&&cTn.includes(o)&&!uTn.includes(o)&&(!r||t&&t!==61&&dTn.test(String.fromCharCode(t)))?a:a+";"}return""}function pTn(e,t,n){let r=aTn(e,t,n.omitOptionalSemicolons),i;if((n.useNamedReferences||n.useShortestReferences)&&(i=fTn(e,t,n.omitOptionalSemicolons,n.attribute)),(n.useShortestReferences||!i)&&n.useShortestReferences){const o=lTn(e,t,n.omitOptionalSemicolons);o.length<r.length&&(r=o)}return i&&(!n.useShortestReferences||i.length<r.length)?i:r}function Py(e,t){return nTn(e,Object.assign({format:pTn},t))}function hTn(e,t,n,r){return r.settings.bogusComments?"<?"+Py(e.value,Object.assign({},r.settings.characterReferences,{subset:[">"]}))+">":"<!--"+e.value.replace(/^>|^->|<!--|-->|--!>|<!-$/g,i)+"-->";function i(o){return Py(o,Object.assign({},r.settings.characterReferences,{subset:["<",">"]}))}}function mTn(e,t,n,r){return"<!"+(r.settings.upperDoctype?"DOCTYPE":"doctype")+(r.settings.tightDoctype?"":" ")+"html>"}function Uk(e,t){const n=String(e);if(typeof t!="string")throw new TypeError("Expected character");let r=0,i=n.indexOf(t);for(;i!==-1;)r++,i=n.indexOf(t,i+t.length);return r}function XZ(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 va=g8e(1),m8e=g8e(-1);function g8e(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&&XZ(s);)a+=e,s=o[a];return s}}const gTn={}.hasOwnProperty;function v8e(e){return t;function t(n,r,i){return gTn.call(e,n.tagName)&&e[n.tagName](n,r,i)}}const ZZ=v8e({html:vTn,head:iF,body:bTn,p:yTn,li:_Tn,dt:STn,dd:ETn,rt:Jme,rp:Jme,optgroup:CTn,option:xTn,menuitem:wTn,colgroup:iF,caption:iF,thead:TTn,tbody:OTn,tfoot:RTn,tr:ATn,td:ege,th:ege});function iF(e,t,n){const r=va(n,t,!0);return!r||r.type!=="comment"&&!(r.type==="text"&&XZ(r.value.charAt(0)))}function vTn(e,t,n){const r=va(n,t);return!r||r.type!=="comment"}function bTn(e,t,n){const r=va(n,t);return!r||r.type!=="comment"}function yTn(e,t,n){const r=va(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 _Tn(e,t,n){const r=va(n,t);return!r||r.type==="element"&&r.tagName==="li"}function STn(e,t,n){const r=va(n,t);return r&&r.type==="element"&&(r.tagName==="dt"||r.tagName==="dd")}function ETn(e,t,n){const r=va(n,t);return!r||r.type==="element"&&(r.tagName==="dt"||r.tagName==="dd")}function Jme(e,t,n){const r=va(n,t);return!r||r.type==="element"&&(r.tagName==="rp"||r.tagName==="rt")}function CTn(e,t,n){const r=va(n,t);return!r||r.type==="element"&&r.tagName==="optgroup"}function xTn(e,t,n){const r=va(n,t);return!r||r.type==="element"&&(r.tagName==="option"||r.tagName==="optgroup")}function wTn(e,t,n){const r=va(n,t);return!r||r.type==="element"&&(r.tagName==="menuitem"||r.tagName==="hr"||r.tagName==="menu")}function TTn(e,t,n){const r=va(n,t);return r&&r.type==="element"&&(r.tagName==="tbody"||r.tagName==="tfoot")}function OTn(e,t,n){const r=va(n,t);return!r||r.type==="element"&&(r.tagName==="tbody"||r.tagName==="tfoot")}function RTn(e,t,n){return!va(n,t)}function ATn(e,t,n){const r=va(n,t);return!r||r.type==="element"&&r.tagName==="tr"}function ege(e,t,n){const r=va(n,t);return!r||r.type==="element"&&(r.tagName==="td"||r.tagName==="th")}const ITn=v8e({html:NTn,head:MTn,body:kTn,colgroup:PTn,tbody:DTn});function NTn(e){const t=va(e,-1);return!t||t.type!=="comment"}function MTn(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 kTn(e){const t=va(e,-1,!0);return!t||t.type!=="comment"&&!(t.type==="text"&&XZ(t.value.charAt(0)))&&!(t.type==="element"&&(t.tagName==="meta"||t.tagName==="link"||t.tagName==="script"||t.tagName==="style"||t.tagName==="template"))}function PTn(e,t,n){const r=m8e(n,t),i=va(e,-1,!0);return n&&r&&r.type==="element"&&r.tagName==="colgroup"&&ZZ(r,n.children.indexOf(r),n)?!1:i&&i.type==="element"&&i.tagName==="col"}function DTn(e,t,n){const r=m8e(n,t),i=va(e,-1);return n&&r&&r.type==="element"&&(r.tagName==="thead"||r.tagName==="tbody")&&ZZ(r,n.children.indexOf(r),n)?!1:i&&i.type==="element"&&i.tagName==="tr"}const WA={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 LTn(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=uE);const c=$Tn(r,e.properties),u=r.all(i.space==="html"&&e.tagName==="template"?e.content:e);return r.schema=i,u&&(a=!1),(c||!o||!ITn(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||!ZZ(e,t,n))&&s.push("</"+e.tagName+">"),s.join("")}function $Tn(e,t){const n=[];let r=-1,i;if(t){for(i in t)if(t[i]!==void 0&&t[i]!==null){const o=FTn(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 FTn(e,t,n){const r=L8(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=Py(r.attribute,Object.assign({},e.settings.characterReferences,{subset:WA.name[i][o]}));return n===!0||(n=Array.isArray(n)?(r.commaSeparated?s8e:a8e)(n,{padLeft:!e.settings.tightCommaSeparatedLists}):String(n),e.settings.collapseEmptyAttributes&&!n)?l:(e.settings.preferUnquoted&&(s=Py(n,Object.assign({},e.settings.characterReferences,{subset:WA.unquoted[i][o],attribute:!0}))),s!==n&&(e.settings.quoteSmart&&Uk(n,a)>Uk(n,e.alternative)&&(a=e.alternative),s=a+Py(n,Object.assign({},e.settings.characterReferences,{subset:(a==="'"?WA.single:WA.double)[i][o],attribute:!0}))+a),l+(s&&"="+s))}function b8e(e,t,n,r){return n&&n.type==="element"&&(n.tagName==="script"||n.tagName==="style")?e.value:Py(e.value,Object.assign({},r.settings.characterReferences,{subset:["<","&"]}))}function BTn(e,t,n,r){return r.settings.allowDangerousHtml?e.value:b8e(e,t,n,r)}function HTn(e,t,n,r){return r.all(e)}const jTn=KZ("type",{invalid:UTn,unknown:zTn,handlers:{comment:hTn,doctype:mTn,element:LTn,raw:BTn,root:HTn,text:b8e}});function UTn(e){throw new Error("Expected node, not `"+e+"`")}function zTn(e){throw new Error("Cannot compile unknown node `"+e.type+"`")}function VTn(e,t){const n=t||{},r=n.quote||'"',i=r==='"'?"'":'"';if(r!=='"'&&r!=="'")throw new Error("Invalid quote `"+r+"`, expected `'` or `\"`");return{one:GTn,all:WTn,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||f8e,characterReferences:n.characterReferences||n.entities||{},closeSelfClosing:n.closeSelfClosing||!1,closeEmptyElements:n.closeEmptyElements||!1},schema:n.space==="svg"?uE:xO,quote:r,alternative:i}.one(Array.isArray(e)?{type:"root",children:e}:e,void 0,void 0)}function GTn(e,t,n){return jTn(e,t,n,this)}function WTn(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 qTn(e){const t=this.data("settings"),n=Object.assign({},t,e);Object.assign(this,{Compiler:r});function r(i){return VTn(i,n)}}const YTn={};function KTn(e,t){const n=YTn,r=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,i=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return y8e(e,r,i)}function y8e(e,t,n){if(QTn(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 tge(e.children,t,n)}return Array.isArray(e)?tge(e,t,n):""}function tge(e,t,n){const r=[];let i=-1;for(;++i<e.length;)r[i]=y8e(e[i],t,n);return r.join("")}function QTn(e){return!!(e&&typeof e=="object")}function _c(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 eu(e,t){return e.length>0?(_c(e,e.length,0,t),e):t}const nge={}.hasOwnProperty;function _8e(e){const t={};let n=-1;for(;++n<e.length;)XTn(t,e[n]);return t}function XTn(e,t){let n;for(n in t){const i=(nge.call(e,n)?e[n]:void 0)||(e[n]={}),o=t[n];let a;if(o)for(a in o){nge.call(i,a)||(i[a]=[]);const s=o[a];ZTn(i[a],Array.isArray(s)?s:s?[s]:[])}}}function ZTn(e,t){let n=-1;const r=[];for(;++n<t.length;)(t[n].add==="after"?e:r).push(t[n]);_c(e,0,0,r)}const JTn=/[!-\/:-@\[-`\{-~\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]/,Js=Gg(/[A-Za-z]/),Ns=Gg(/[\dA-Za-z]/),e2n=Gg(/[#-'*+\--9=?A-Z^-~]/);function zk(e){return e!==null&&(e<32||e===127)}const SG=Gg(/\d/),t2n=Gg(/[\dA-Fa-f]/),n2n=Gg(/[!-/:-@[-`{-~]/);function dr(e){return e!==null&&e<-2}function zi(e){return e!==null&&(e<0||e===32)}function zr(e){return e===-2||e===-1||e===32}const $8=Gg(JTn),av=Gg(/\s/);function Gg(e){return t;function t(n){return n!==null&&e.test(String.fromCharCode(n))}}function ii(e,t,n,r){const i=r?r-1:Number.POSITIVE_INFINITY;let o=0;return a;function a(l){return zr(l)?(e.enter(n),s(l)):t(l)}function s(l){return zr(l)&&o++<i?(e.consume(l),s):(e.exit(n),t(l))}}const r2n={tokenize:i2n};function i2n(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"),ii(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 o2n={tokenize:a2n},rge={tokenize:s2n};function a2n(e){const t=this,n=[];let r=0,i,o,a;return s;function s(_){if(r<n.length){const S=n[r];return t.containerState=S[1],e.attempt(S[0].continuation,l,c)(_)}return c(_)}function l(_){if(r++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,i&&b();const S=t.events.length;let x=S,E;for(;x--;)if(t.events[x][0]==="exit"&&t.events[x][1].type==="chunkFlow"){E=t.events[x][1].end;break}y(r);let C=S;for(;C<t.events.length;)t.events[C][1].end=Object.assign({},E),C++;return _c(t.events,x+1,0,t.events.slice(S)),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(rge,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(rge,p,m)(_)}function p(_){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(_,S){const x=t.sliceStream(_);if(S&&x.push(null),_.previous=o,o&&(o.next=_),o=_,i.defineSkip(_.start),i.write(x),t.parser.lazy[_.start.line]){let E=i.events.length;for(;E--;)if(i.events[E][1].start.offset<a&&(!i.events[E][1].end||i.events[E][1].end.offset>a))return;const C=t.events.length;let w=C,O,T;for(;w--;)if(t.events[w][0]==="exit"&&t.events[w][1].type==="chunkFlow"){if(O){T=t.events[w][1].end;break}O=!0}for(y(r),E=C;E<t.events.length;)t.events[E][1].end=Object.assign({},T),E++;_c(t.events,w+1,0,t.events.slice(C)),t.events.length=E}}function y(_){let S=n.length;for(;S-- >_;){const x=n[S];t.containerState=x[1],x[0].exit.call(t,e)}n.length=_}function b(){i.write([null]),o=void 0,i=void 0,t.containerState._closeFlow=void 0}}function s2n(e,t,n){return ii(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function Vk(e){if(e===null||zi(e)||av(e))return 1;if($8(e))return 2}function F8(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 EG={name:"attention",tokenize:c2n,resolveAll:l2n};function l2n(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);ige(d,-l),ige(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=eu(c,[["enter",e[r][1],t],["exit",e[r][1],t]])),c=eu(c,[["enter",i,t],["enter",a,t],["exit",a,t],["enter",o,t]]),c=eu(c,F8(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),c=eu(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=eu(c,[["enter",e[n][1],t],["exit",e[n][1],t]])):u=0,_c(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 c2n(e,t){const n=this.parser.constructs.attentionMarkers.null,r=this.previous,i=Vk(r);let o;return a;function a(l){return o=l,e.enter("attentionSequence"),s(l)}function s(l){if(l===o)return e.consume(l),s;const c=e.exit("attentionSequence"),u=Vk(l),d=!u||u===2&&i||n.includes(l),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 ige(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const u2n={name:"autolink",tokenize:d2n};function d2n(e,t,n){let r=0;return i;function i(p){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(p),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),o}function o(p){return Js(p)?(e.consume(p),a):c(p)}function a(p){return p===43||p===45||p===46||Ns(p)?(r=1,s(p)):c(p)}function s(p){return p===58?(e.consume(p),r=0,l):(p===43||p===45||p===46||Ns(p))&&r++<32?(e.consume(p),s):(r=0,c(p))}function l(p){return p===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(p),e.exit("autolinkMarker"),e.exit("autolink"),t):p===null||p===32||p===60||zk(p)?n(p):(e.consume(p),l)}function c(p){return p===64?(e.consume(p),u):e2n(p)?(e.consume(p),c):n(p)}function u(p){return Ns(p)?d(p):n(p)}function d(p){return p===46?(e.consume(p),r=0,u):p===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(p),e.exit("autolinkMarker"),e.exit("autolink"),t):f(p)}function f(p){if((p===45||Ns(p))&&r++<63){const m=p===45?f:d;return e.consume(p),m}return n(p)}}const wO={tokenize:f2n,partial:!0};function f2n(e,t,n){return r;function r(o){return zr(o)?ii(e,i,"linePrefix")(o):i(o)}function i(o){return o===null||dr(o)?t(o):n(o)}}const S8e={name:"blockQuote",tokenize:p2n,continuation:{tokenize:h2n},exit:m2n};function p2n(e,t,n){const r=this;return i;function i(a){if(a===62){const s=r.containerState;return s.open||(e.enter("blockQuote",{_container:!0}),s.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(a),e.exit("blockQuoteMarker"),o}return n(a)}function o(a){return zr(a)?(e.enter("blockQuotePrefixWhitespace"),e.consume(a),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(a))}}function h2n(e,t,n){const r=this;return i;function i(a){return zr(a)?ii(e,o,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(a):o(a)}function o(a){return e.attempt(S8e,t,n)(a)}}function m2n(e){e.exit("blockQuote")}const E8e={name:"characterEscape",tokenize:g2n};function g2n(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 n2n(o)?(e.enter("characterEscapeValue"),e.consume(o),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(o)}}const oge=document.createElement("i");function JZ(e){const t="&"+e+";";oge.innerHTML=t;const n=oge.textContent;return n.charCodeAt(n.length-1)===59&&e!=="semi"||n===t?!1:n}const C8e={name:"characterReference",tokenize:v2n};function v2n(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=Ns,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=t2n,u):(e.enter("characterReferenceValue"),o=7,a=SG,u(d))}function u(d){if(d===59&&i){const f=e.exit("characterReferenceValue");return a===Ns&&!JZ(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 age={tokenize:y2n,partial:!0},sge={name:"codeFenced",tokenize:b2n,concrete:!0};function b2n(e,t,n){const r=this,i={tokenize:x,partial:!0};let o=0,a=0,s;return l;function l(E){return c(E)}function c(E){const C=r.events[r.events.length-1];return o=C&&C[1].type==="linePrefix"?C[2].sliceSerialize(C[1],!0).length:0,s=E,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),u(E)}function u(E){return E===s?(a++,e.consume(E),u):a<3?n(E):(e.exit("codeFencedFenceSequence"),zr(E)?ii(e,d,"whitespace")(E):d(E))}function d(E){return E===null||dr(E)?(e.exit("codeFencedFence"),r.interrupt?t(E):e.check(age,g,S)(E)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),f(E))}function f(E){return E===null||dr(E)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),d(E)):zr(E)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),ii(e,p,"whitespace")(E)):E===96&&E===s?n(E):(e.consume(E),f)}function p(E){return E===null||dr(E)?d(E):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),m(E))}function m(E){return E===null||dr(E)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),d(E)):E===96&&E===s?n(E):(e.consume(E),m)}function g(E){return e.attempt(i,S,v)(E)}function v(E){return e.enter("lineEnding"),e.consume(E),e.exit("lineEnding"),y}function y(E){return o>0&&zr(E)?ii(e,b,"linePrefix",o+1)(E):b(E)}function b(E){return E===null||dr(E)?e.check(age,g,S)(E):(e.enter("codeFlowValue"),_(E))}function _(E){return E===null||dr(E)?(e.exit("codeFlowValue"),b(E)):(e.consume(E),_)}function S(E){return e.exit("codeFenced"),t(E)}function x(E,C,w){let O=0;return T;function T(M){return E.enter("lineEnding"),E.consume(M),E.exit("lineEnding"),A}function A(M){return E.enter("codeFencedFence"),zr(M)?ii(E,I,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(M):I(M)}function I(M){return M===s?(E.enter("codeFencedFenceSequence"),N(M)):w(M)}function N(M){return M===s?(O++,E.consume(M),N):O>=a?(E.exit("codeFencedFenceSequence"),zr(M)?ii(E,D,"whitespace")(M):D(M)):w(M)}function D(M){return M===null||dr(M)?(E.exit("codeFencedFence"),C(M)):w(M)}}}function y2n(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 oF={name:"codeIndented",tokenize:S2n},_2n={tokenize:E2n,partial:!0};function S2n(e,t,n){const r=this;return i;function i(c){return e.enter("codeIndented"),ii(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(_2n,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 E2n(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):ii(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 C2n={name:"codeText",tokenize:T2n,resolve:x2n,previous:w2n};function x2n(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 w2n(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function T2n(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 x8e(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,O2n(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),_c(e,i,n-i+1,s))}}return!c}function O2n(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,p=n,m=0,g=0;const v=[g];for(;p;){for(;e[++i][1]!==p;);o.push(i),p._tokenizer||(u=r.sliceStream(p),p.next||u.push(null),d&&a.defineSkip(p.start),p._isInFirstContentOfListItem&&(a._gfmTasklistFirstContentOfListItem=!0),a.write(u),p._isInFirstContentOfListItem&&(a._gfmTasklistFirstContentOfListItem=void 0)),d=p,p=p.next}for(p=n;++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),p._tokenizer=void 0,p.previous=void 0,p=p.next);for(a.events=[],p?(p._tokenizer=void 0,p.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]),_c(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 R2n={tokenize:N2n,resolve:I2n},A2n={tokenize:M2n,partial:!0};function I2n(e){return x8e(e),e}function N2n(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(A2n,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 M2n(e,t,n){const r=this;return i;function i(a){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),ii(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 w8e(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||zk(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"}),p(y))}function p(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:p)}function m(y){return y===60||y===62||y===92?(e.consume(y),p):p(y)}function g(y){return!u&&(y===null||y===41||zi(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||zk(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 T8e(e,t,n,r,i,o){const a=this;let s=0,l;return c;function c(p){return e.enter(r),e.enter(i),e.consume(p),e.exit(i),e.enter(o),u}function u(p){return s>999||p===null||p===91||p===93&&!l||p===94&&!s&&"_hiddenFootnoteSupport"in a.parser.constructs?n(p):p===93?(e.exit(o),e.enter(i),e.consume(p),e.exit(i),e.exit(r),t):dr(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),u):(e.enter("chunkString",{contentType:"string"}),d(p))}function d(p){return p===null||p===91||p===93||dr(p)||s++>999?(e.exit("chunkString"),u(p)):(e.consume(p),l||(l=!zr(p)),p===92?f:d)}function f(p){return p===91||p===92||p===93?(e.consume(p),s++,d):d(p)}}function O8e(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"),ii(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 zx(e,t){let n;return r;function r(i){return dr(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),n=!0,r):zr(i)?ii(e,r,n?"linePrefix":"lineSuffix")(i):t(i)}}function yd(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const k2n={name:"definition",tokenize:D2n},P2n={tokenize:L2n,partial:!0};function D2n(e,t,n){const r=this;let i;return o;function o(p){return e.enter("definition"),a(p)}function a(p){return T8e.call(r,e,s,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(p)}function s(p){return i=yd(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),p===58?(e.enter("definitionMarker"),e.consume(p),e.exit("definitionMarker"),l):n(p)}function l(p){return zi(p)?zx(e,c)(p):c(p)}function c(p){return w8e(e,u,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(p)}function u(p){return e.attempt(P2n,d,d)(p)}function d(p){return zr(p)?ii(e,f,"whitespace")(p):f(p)}function f(p){return p===null||dr(p)?(e.exit("definition"),r.parser.defined.push(i),t(p)):n(p)}}function L2n(e,t,n){return r;function r(s){return zi(s)?zx(e,i)(s):n(s)}function i(s){return O8e(e,o,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(s)}function o(s){return zr(s)?ii(e,a,"whitespace")(s):a(s)}function a(s){return s===null||dr(s)?t(s):n(s)}}const $2n={name:"hardBreakEscape",tokenize:F2n};function F2n(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 B2n={name:"headingAtx",tokenize:j2n,resolve:H2n};function H2n(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"},_c(e,r,n-r+1,[["enter",i,t],["enter",o,t],["exit",o,t],["exit",i,t]])),e}function j2n(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||zi(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)):zr(u)?ii(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||zi(u)?(e.exit("atxHeadingText"),s(u)):(e.consume(u),c)}}const U2n=["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"],lge=["pre","script","style","textarea"],z2n={name:"htmlFlow",tokenize:q2n,resolveTo:W2n,concrete:!0},V2n={tokenize:K2n,partial:!0},G2n={tokenize:Y2n,partial:!0};function W2n(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 q2n(e,t,n){const r=this;let i,o,a,s,l;return c;function c(H){return u(H)}function u(H){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(H),d}function d(H){return H===33?(e.consume(H),f):H===47?(e.consume(H),o=!0,g):H===63?(e.consume(H),i=3,r.interrupt?t:L):Js(H)?(e.consume(H),a=String.fromCharCode(H),v):n(H)}function f(H){return H===45?(e.consume(H),i=2,p):H===91?(e.consume(H),i=5,s=0,m):Js(H)?(e.consume(H),i=4,r.interrupt?t:L):n(H)}function p(H){return H===45?(e.consume(H),r.interrupt?t:L):n(H)}function m(H){const X="CDATA[";return H===X.charCodeAt(s++)?(e.consume(H),s===X.length?r.interrupt?t:I:m):n(H)}function g(H){return Js(H)?(e.consume(H),a=String.fromCharCode(H),v):n(H)}function v(H){if(H===null||H===47||H===62||zi(H)){const X=H===47,Q=a.toLowerCase();return!X&&!o&&lge.includes(Q)?(i=1,r.interrupt?t(H):I(H)):U2n.includes(a.toLowerCase())?(i=6,X?(e.consume(H),y):r.interrupt?t(H):I(H)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(H):o?b(H):_(H))}return H===45||Ns(H)?(e.consume(H),a+=String.fromCharCode(H),v):n(H)}function y(H){return H===62?(e.consume(H),r.interrupt?t:I):n(H)}function b(H){return zr(H)?(e.consume(H),b):T(H)}function _(H){return H===47?(e.consume(H),T):H===58||H===95||Js(H)?(e.consume(H),S):zr(H)?(e.consume(H),_):T(H)}function S(H){return H===45||H===46||H===58||H===95||Ns(H)?(e.consume(H),S):x(H)}function x(H){return H===61?(e.consume(H),E):zr(H)?(e.consume(H),x):_(H)}function E(H){return H===null||H===60||H===61||H===62||H===96?n(H):H===34||H===39?(e.consume(H),l=H,C):zr(H)?(e.consume(H),E):w(H)}function C(H){return H===l?(e.consume(H),l=null,O):H===null||dr(H)?n(H):(e.consume(H),C)}function w(H){return H===null||H===34||H===39||H===47||H===60||H===61||H===62||H===96||zi(H)?x(H):(e.consume(H),w)}function O(H){return H===47||H===62||zr(H)?_(H):n(H)}function T(H){return H===62?(e.consume(H),A):n(H)}function A(H){return H===null||dr(H)?I(H):zr(H)?(e.consume(H),A):n(H)}function I(H){return H===45&&i===2?(e.consume(H),k):H===60&&i===1?(e.consume(H),P):H===62&&i===4?(e.consume(H),W):H===63&&i===3?(e.consume(H),L):H===93&&i===5?(e.consume(H),G):dr(H)&&(i===6||i===7)?(e.exit("htmlFlowData"),e.check(V2n,j,N)(H)):H===null||dr(H)?(e.exit("htmlFlowData"),N(H)):(e.consume(H),I)}function N(H){return e.check(G2n,D,j)(H)}function D(H){return e.enter("lineEnding"),e.consume(H),e.exit("lineEnding"),M}function M(H){return H===null||dr(H)?N(H):(e.enter("htmlFlowData"),I(H))}function k(H){return H===45?(e.consume(H),L):I(H)}function P(H){return H===47?(e.consume(H),a="",B):I(H)}function B(H){if(H===62){const X=a.toLowerCase();return lge.includes(X)?(e.consume(H),W):I(H)}return Js(H)&&a.length<8?(e.consume(H),a+=String.fromCharCode(H),B):I(H)}function G(H){return H===93?(e.consume(H),L):I(H)}function L(H){return H===62?(e.consume(H),W):H===45&&i===2?(e.consume(H),L):I(H)}function W(H){return H===null||dr(H)?(e.exit("htmlFlowData"),j(H)):(e.consume(H),W)}function j(H){return e.exit("htmlFlow"),t(H)}}function Y2n(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 K2n(e,t,n){return r;function r(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt(wO,t,n)}}const Q2n={name:"htmlText",tokenize:X2n};function X2n(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),x):L===63?(e.consume(L),_):Js(L)?(e.consume(L),w):n(L)}function c(L){return L===45?(e.consume(L),u):L===91?(e.consume(L),o=0,m):Js(L)?(e.consume(L),b):n(L)}function u(L){return L===45?(e.consume(L),p):n(L)}function d(L){return L===null?n(L):L===45?(e.consume(L),f):dr(L)?(a=d,P(L)):(e.consume(L),d)}function f(L){return L===45?(e.consume(L),p):d(L)}function p(L){return L===62?k(L):L===45?f(L):d(L)}function m(L){const W="CDATA[";return L===W.charCodeAt(o++)?(e.consume(L),o===W.length?g:m):n(L)}function g(L){return L===null?n(L):L===93?(e.consume(L),v):dr(L)?(a=g,P(L)):(e.consume(L),g)}function v(L){return L===93?(e.consume(L),y):g(L)}function y(L){return L===62?k(L):L===93?(e.consume(L),y):g(L)}function b(L){return L===null||L===62?k(L):dr(L)?(a=b,P(L)):(e.consume(L),b)}function _(L){return L===null?n(L):L===63?(e.consume(L),S):dr(L)?(a=_,P(L)):(e.consume(L),_)}function S(L){return L===62?k(L):_(L)}function x(L){return Js(L)?(e.consume(L),E):n(L)}function E(L){return L===45||Ns(L)?(e.consume(L),E):C(L)}function C(L){return dr(L)?(a=C,P(L)):zr(L)?(e.consume(L),C):k(L)}function w(L){return L===45||Ns(L)?(e.consume(L),w):L===47||L===62||zi(L)?O(L):n(L)}function O(L){return L===47?(e.consume(L),k):L===58||L===95||Js(L)?(e.consume(L),T):dr(L)?(a=O,P(L)):zr(L)?(e.consume(L),O):k(L)}function T(L){return L===45||L===46||L===58||L===95||Ns(L)?(e.consume(L),T):A(L)}function A(L){return L===61?(e.consume(L),I):dr(L)?(a=A,P(L)):zr(L)?(e.consume(L),A):O(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,N):dr(L)?(a=I,P(L)):zr(L)?(e.consume(L),I):(e.consume(L),D)}function N(L){return L===i?(e.consume(L),i=void 0,M):L===null?n(L):dr(L)?(a=N,P(L)):(e.consume(L),N)}function D(L){return L===null||L===34||L===39||L===60||L===61||L===96?n(L):L===47||L===62||zi(L)?O(L):(e.consume(L),D)}function M(L){return L===47||L===62||zi(L)?O(L):n(L)}function k(L){return L===62?(e.consume(L),e.exit("htmlTextData"),e.exit("htmlText"),t):n(L)}function P(L){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(L),e.exit("lineEnding"),B}function B(L){return zr(L)?ii(e,G,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(L):G(L)}function G(L){return e.enter("htmlTextData"),a(L)}}const eJ={name:"labelEnd",tokenize:rOn,resolveTo:nOn,resolveAll:tOn},Z2n={tokenize:iOn},J2n={tokenize:oOn},eOn={tokenize:aOn};function tOn(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 nOn(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=eu(s,e.slice(o+1,o+r+3)),s=eu(s,[["enter",u,t]]),s=eu(s,F8(t.parser.constructs.insideSpan.null,e.slice(o+r+4,a-3),t)),s=eu(s,[["exit",u,t],e[a-2],e[a-1],["exit",c,t]]),s=eu(s,e.slice(a+1)),s=eu(s,[["exit",l,t]]),_c(e,o,e.length,s),e}function rOn(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(Z2n,u,a?u:d)(f):f===91?e.attempt(J2n,u,a?c:d)(f):a?u(f):d(f)}function c(f){return e.attempt(eOn,u,d)(f)}function u(f){return t(f)}function d(f){return o._balanced=!0,n(f)}}function iOn(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 zi(d)?zx(e,o)(d):o(d)}function o(d){return d===41?u(d):w8e(e,a,s,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(d)}function a(d){return zi(d)?zx(e,l)(d):u(d)}function s(d){return n(d)}function l(d){return d===34||d===39||d===40?O8e(e,c,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(d):u(d)}function c(d){return zi(d)?zx(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 oOn(e,t,n){const r=this;return i;function i(s){return T8e.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 aOn(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 sOn={name:"labelStartImage",tokenize:lOn,resolveAll:eJ.resolveAll};function lOn(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 cOn={name:"labelStartLink",tokenize:uOn,resolveAll:eJ.resolveAll};function uOn(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 aF={name:"lineEnding",tokenize:dOn};function dOn(e,t){return n;function n(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),ii(e,t,"linePrefix")}}const CN={name:"thematicBreak",tokenize:fOn};function fOn(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"),zr(c)?ii(e,s,"whitespace")(c):s(c))}}const ml={name:"list",tokenize:mOn,continuation:{tokenize:gOn},exit:bOn},pOn={tokenize:yOn,partial:!0},hOn={tokenize:vOn,partial:!0};function mOn(e,t,n){const r=this,i=r.events[r.events.length-1];let o=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0,a=0;return s;function s(p){const m=r.containerState.type||(p===42||p===43||p===45?"listUnordered":"listOrdered");if(m==="listUnordered"?!r.containerState.marker||p===r.containerState.marker:SG(p)){if(r.containerState.type||(r.containerState.type=m,e.enter(m,{_container:!0})),m==="listUnordered")return e.enter("listItemPrefix"),p===42||p===45?e.check(CN,n,c)(p):c(p);if(!r.interrupt||p===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),l(p)}return n(p)}function l(p){return SG(p)&&++a<10?(e.consume(p),l):(!r.interrupt||a<2)&&(r.containerState.marker?p===r.containerState.marker:p===41||p===46)?(e.exit("listItemValue"),c(p)):n(p)}function c(p){return e.enter("listItemMarker"),e.consume(p),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||p,e.check(wO,r.interrupt?n:u,e.attempt(pOn,f,d))}function u(p){return r.containerState.initialBlankLine=!0,o++,f(p)}function d(p){return zr(p)?(e.enter("listItemPrefixWhitespace"),e.consume(p),e.exit("listItemPrefixWhitespace"),f):n(p)}function f(p){return r.containerState.size=o+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(p)}}function gOn(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(wO,i,o);function i(s){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,ii(e,t,"listItemIndent",r.containerState.size+1)(s)}function o(s){return r.containerState.furtherBlankLines||!zr(s)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,a(s)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(hOn,t,a)(s))}function a(s){return r.containerState._closeFlow=!0,r.interrupt=void 0,ii(e,e.attempt(ml,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(s)}}function vOn(e,t,n){const r=this;return ii(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 bOn(e){e.exit(this.containerState.type)}function yOn(e,t,n){const r=this;return ii(e,i,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function i(o){const a=r.events[r.events.length-1];return!zr(o)&&a&&a[1].type==="listItemPrefixWhitespace"?t(o):n(o)}}const cge={name:"setextUnderline",tokenize:SOn,resolveTo:_On};function _On(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 SOn(e,t,n){const r=this;let i;return o;function o(c){let u=r.events.length,d;for(;u--;)if(r.events[u][1].type!=="lineEnding"&&r.events[u][1].type!=="linePrefix"&&r.events[u][1].type!=="content"){d=r.events[u][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||d)?(e.enter("setextHeadingLine"),i=c,a(c)):n(c)}function a(c){return e.enter("setextHeadingLineSequence"),s(c)}function s(c){return c===i?(e.consume(c),s):(e.exit("setextHeadingLineSequence"),zr(c)?ii(e,l,"lineSuffix")(c):l(c))}function l(c){return c===null||dr(c)?(e.exit("setextHeadingLine"),t(c)):n(c)}}const EOn={tokenize:COn};function COn(e){const t=this,n=e.attempt(wO,r,e.attempt(this.parser.constructs.flowInitial,i,ii(e,e.attempt(this.parser.constructs.flow,i,e.attempt(R2n,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 xOn={resolveAll:A8e()},wOn=R8e("string"),TOn=R8e("text");function R8e(e){return{tokenize:t,resolveAll:A8e(e==="text"?OOn: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 p=d[f];if(!p.previous||p.previous.call(r,r.previous))return!0}return!1}}}function A8e(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 OOn(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 ROn(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:S,attempt:C(x),check:C(E),interrupt:C(E,{interrupt:!0})},c={previous:null,code:null,containerState:{},events:[],parser:e,sliceStream:p,sliceSerialize:f,now:m,defineSkip:g,write:d};let u=t.tokenize.call(c,l);return t.resolveAll&&o.push(t),c;function d(A){return a=eu(a,A),v(),a[a.length-1]!==null?[]:(w(t,0),c.events=F8(o,c.events,c),c.events)}function f(A,I){return IOn(p(A),I)}function p(A){return AOn(a,A)}function m(){const{line:A,column:I,offset:N,_index:D,_bufferIndex:M}=r;return{line:A,column:I,offset:N,_index:D,_bufferIndex:M}}function g(A){i[A.line]=A.column,T()}function v(){let A;for(;r._index<a.length;){const I=a[r._index];if(typeof I=="string")for(A=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===A&&r._bufferIndex<I.length;)y(I.charCodeAt(r._bufferIndex));else y(I)}}function y(A){u=u(A)}function b(A){dr(A)?(r.line++,r.column=1,r.offset+=A===-3?2:1,T()):A!==-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=A}function _(A,I){const N=I||{};return N.type=A,N.start=m(),c.events.push(["enter",N,c]),s.push(N),N}function S(A){const I=s.pop();return I.end=m(),c.events.push(["exit",I,c]),I}function x(A,I){w(A,I.from)}function E(A,I){I.restore()}function C(A,I){return N;function N(D,M,k){let P,B,G,L;return Array.isArray(D)?j(D):"tokenize"in D?j([D]):W(D);function W(ue){return ee;function ee(K){const se=K!==null&&ue[K],le=K!==null&&ue.null,oe=[...Array.isArray(se)?se:se?[se]:[],...Array.isArray(le)?le:le?[le]:[]];return j(oe)(K)}}function j(ue){return P=ue,B=0,ue.length===0?k:H(ue[B])}function H(ue){return ee;function ee(K){return L=O(),G=ue,ue.partial||(c.currentConstruct=ue),ue.name&&c.parser.constructs.disable.null.includes(ue.name)?Q():ue.tokenize.call(I?Object.assign(Object.create(c),I):c,l,X,Q)(K)}}function X(ue){return A(G,L),M}function Q(ue){return L.restore(),++B<P.length?H(P[B]):k}}}function w(A,I){A.resolveAll&&!o.includes(A)&&o.push(A),A.resolve&&_c(c.events,I,c.events.length-I,A.resolve(c.events.slice(I),c)),A.resolveTo&&(c.events=A.resolveTo(c.events,c))}function O(){const A=m(),I=c.previous,N=c.currentConstruct,D=c.events.length,M=Array.from(s);return{restore:k,from:D};function k(){r=A,c.previous=I,c.currentConstruct=N,c.events.length=D,s=M,T()}}function T(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}function AOn(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 IOn(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 NOn={42:ml,43:ml,45:ml,48:ml,49:ml,50:ml,51:ml,52:ml,53:ml,54:ml,55:ml,56:ml,57:ml,62:S8e},MOn={91:k2n},kOn={[-2]:oF,[-1]:oF,32:oF},POn={35:B2n,42:CN,45:[cge,CN],60:z2n,61:cge,95:CN,96:sge,126:sge},DOn={38:C8e,92:E8e},LOn={[-5]:aF,[-4]:aF,[-3]:aF,33:sOn,38:C8e,42:EG,60:[u2n,Q2n],91:cOn,92:[$2n,E8e],93:eJ,95:EG,96:C2n},$On={null:[EG,xOn]},FOn={null:[42,95]},BOn={null:[]},HOn=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:FOn,contentInitial:MOn,disable:BOn,document:NOn,flow:POn,flowInitial:kOn,insideSpan:$On,string:DOn,text:LOn},Symbol.toStringTag,{value:"Module"}));function jOn(e){const n=_8e([HOn,...(e||{}).extensions||[]]),r={defined:[],lazy:{},constructs:n,content:i(r2n),document:i(o2n),flow:i(EOn),string:i(wOn),text:i(TOn)};return r;function i(o){return a;function a(s){return ROn(r,o,s)}}}const uge=/[\0\t\n\r]/g;function UOn(){let e=1,t="",n=!0,r;return i;function i(o,a,s){const l=[];let c,u,d,f,p;for(o=t+o.toString(a),d=0,t="",n&&(o.charCodeAt(0)===65279&&d++,n=void 0);d<o.length;){if(uge.lastIndex=d,c=uge.exec(o),f=c&&c.index!==void 0?c.index:o.length,p=o.charCodeAt(f),!c){t=o.slice(d);break}if(p===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),p){case 0:{l.push(65533),e++;break}case 9:{for(u=Math.ceil(e/4)*4,l.push(-2);e++<u;)l.push(-1);break}case 10:{l.push(-4),e=1;break}default:r=!0,e=1}d=f+1}return s&&(r&&l.push(-5),t&&l.push(t),l.push(null)),l}}function zOn(e){for(;!x8e(e););return e}function I8e(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 VOn=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function N8e(e){return e.replace(VOn,GOn)}function GOn(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){const i=n.charCodeAt(1),o=i===120||i===88;return I8e(n.slice(o?2:1),o?16:10)}return JZ(n)||e}function Vx(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?dge(e.position):"start"in e||"end"in e?dge(e):"line"in e||"column"in e?CG(e):""}function CG(e){return fge(e&&e.line)+":"+fge(e&&e.column)}function dge(e){return CG(e&&e.start)+"-"+CG(e&&e.end)}function fge(e){return e&&typeof e=="number"?e:1}const M8e={}.hasOwnProperty,WOn=function(e,t,n){return typeof t!="string"&&(n=t,t=void 0),qOn(n)(zOn(jOn(n).document().write(UOn()(e,t,!0))))};function qOn(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:s(we),autolinkProtocol:A,autolinkEmail:A,atxHeading:s(re),blockQuote:s(oe),characterEscape:A,characterReference:A,codeFenced:s(ne),codeFencedFenceInfo:l,codeFencedFenceMeta:l,codeIndented:s(ne,l),codeText:s(he,l),codeTextData:A,data:A,codeFlowValue:A,definition:s(me),definitionDestinationString:l,definitionLabelString:l,definitionTitleString:l,emphasis:s(ce),hardBreakEscape:s(ve),hardBreakTrailing:s(ve),htmlFlow:s(be,l),htmlFlowData:A,htmlText:s(be,l),htmlTextData:A,image:s(xe),label:l,link:s(we),listItem:s(Ee),listItemValue:m,listOrdered:s(de,p),listUnordered:s(de),paragraph:s(Ne),reference:Q,referenceString:l,resourceDestinationString:l,resourceTitleString:l,setextHeading:s(re),strong:s(Te),thematicBreak:s(q)},exit:{atxHeading:u(),atxHeadingSequence:C,autolink:u(),autolinkEmail:le,autolinkProtocol:se,blockQuote:u(),characterEscapeValue:I,characterReferenceMarkerHexadecimal:ee,characterReferenceMarkerNumeric:ee,characterReferenceValue:K,codeFenced:u(b),codeFencedFence:y,codeFencedFenceInfo:g,codeFencedFenceMeta:v,codeFlowValue:I,codeIndented:u(_),codeText:u(P),codeTextData:I,data:I,definition:u(),definitionDestinationString:E,definitionLabelString:S,definitionTitleString:x,emphasis:u(),hardBreakEscape:u(D),hardBreakTrailing:u(D),htmlFlow:u(M),htmlFlowData:I,htmlText:u(k),htmlTextData:I,image:u(G),label:W,labelText:L,lineEnding:N,link:u(B),listItem:u(),listOrdered:u(),listUnordered:u(),paragraph:u(),referenceString:ue,resourceDestinationString:j,resourceTitleString:H,resource:X,setextHeading:u(T),setextHeadingLineSequence:O,setextHeadingText:w,strong:u(),thematicBreak:u()}};k8e(t,(e||{}).mdastExtensions||[]);const n={};return r;function r(U){let Y={type:"root",children:[]};const ae={stack:[Y],tokenStack:[],config:t,enter:c,exit:d,buffer:l,resume:f,setData:o,getData:a},ye=[];let fe=-1;for(;++fe<U.length;)if(U[fe][1].type==="listOrdered"||U[fe][1].type==="listUnordered")if(U[fe][0]==="enter")ye.push(fe);else{const Ae=ye.pop();fe=i(U,Ae,fe)}for(fe=-1;++fe<U.length;){const Ae=t[U[fe][0]];M8e.call(Ae,U[fe][1].type)&&Ae[U[fe][1].type].call(Object.assign({sliceSerialize:U[fe][2].sliceSerialize},ae),U[fe][1])}if(ae.tokenStack.length>0){const Ae=ae.tokenStack[ae.tokenStack.length-1];(Ae[1]||pge).call(ae,void 0,Ae[0])}for(Y.position={start:zh(U.length>0?U[0][1].start:{line:1,column:1,offset:0}),end:zh(U.length>0?U[U.length-2][1].end:{line:1,column:1,offset:0})},fe=-1;++fe<t.transforms.length;)Y=t.transforms[fe](Y)||Y;return Y}function i(U,Y,ae){let ye=Y-1,fe=-1,Ae=!1,We,ie,Be,Fe;for(;++ye<=ae;){const Pe=U[ye];if(Pe[1].type==="listUnordered"||Pe[1].type==="listOrdered"||Pe[1].type==="blockQuote"?(Pe[0]==="enter"?fe++:fe--,Fe=void 0):Pe[1].type==="lineEndingBlank"?Pe[0]==="enter"&&(We&&!Fe&&!fe&&!Be&&(Be=ye),Fe=void 0):Pe[1].type==="linePrefix"||Pe[1].type==="listItemValue"||Pe[1].type==="listItemMarker"||Pe[1].type==="listItemPrefix"||Pe[1].type==="listItemPrefixWhitespace"||(Fe=void 0),!fe&&Pe[0]==="enter"&&Pe[1].type==="listItemPrefix"||fe===-1&&Pe[0]==="exit"&&(Pe[1].type==="listUnordered"||Pe[1].type==="listOrdered")){if(We){let Ke=ye;for(ie=void 0;Ke--;){const tt=U[Ke];if(tt[1].type==="lineEnding"||tt[1].type==="lineEndingBlank"){if(tt[0]==="exit")continue;ie&&(U[ie][1].type="lineEndingBlank",Ae=!0),tt[1].type="lineEnding",ie=Ke}else if(!(tt[1].type==="linePrefix"||tt[1].type==="blockQuotePrefix"||tt[1].type==="blockQuotePrefixWhitespace"||tt[1].type==="blockQuoteMarker"||tt[1].type==="listItemIndent"))break}Be&&(!ie||Be<ie)&&(We._spread=!0),We.end=Object.assign({},ie?U[ie][1].start:Pe[1].end),U.splice(ie||ye,0,["exit",We,Pe[2]]),ye++,ae++}Pe[1].type==="listItemPrefix"&&(We={type:"listItem",_spread:!1,start:Object.assign({},Pe[1].start),end:void 0},U.splice(ye,0,["enter",We,Pe[2]]),ye++,ae++,Be=void 0,Fe=!0)}}return U[Y][1]._spread=Ae,ae}function o(U,Y){n[U]=Y}function a(U){return n[U]}function s(U,Y){return ae;function ae(ye){c.call(this,U(ye),ye),Y&&Y.call(this,ye)}}function l(){this.stack.push({type:"fragment",children:[]})}function c(U,Y,ae){return this.stack[this.stack.length-1].children.push(U),this.stack.push(U),this.tokenStack.push([Y,ae]),U.position={start:zh(Y.start)},U}function u(U){return Y;function Y(ae){U&&U.call(this,ae),d.call(this,ae)}}function d(U,Y){const ae=this.stack.pop(),ye=this.tokenStack.pop();if(ye)ye[0].type!==U.type&&(Y?Y.call(this,U,ye[0]):(ye[1]||pge).call(this,U,ye[0]));else throw new Error("Cannot close `"+U.type+"` ("+Vx({start:U.start,end:U.end})+"): its not open");return ae.position.end=zh(U.end),ae}function f(){return KTn(this.stack.pop())}function p(){o("expectingFirstListItemValue",!0)}function m(U){if(a("expectingFirstListItemValue")){const Y=this.stack[this.stack.length-2];Y.start=Number.parseInt(this.sliceSerialize(U),10),o("expectingFirstListItemValue")}}function g(){const U=this.resume(),Y=this.stack[this.stack.length-1];Y.lang=U}function v(){const U=this.resume(),Y=this.stack[this.stack.length-1];Y.meta=U}function y(){a("flowCodeInside")||(this.buffer(),o("flowCodeInside",!0))}function b(){const U=this.resume(),Y=this.stack[this.stack.length-1];Y.value=U.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),o("flowCodeInside")}function _(){const U=this.resume(),Y=this.stack[this.stack.length-1];Y.value=U.replace(/(\r?\n|\r)$/g,"")}function S(U){const Y=this.resume(),ae=this.stack[this.stack.length-1];ae.label=Y,ae.identifier=yd(this.sliceSerialize(U)).toLowerCase()}function x(){const U=this.resume(),Y=this.stack[this.stack.length-1];Y.title=U}function E(){const U=this.resume(),Y=this.stack[this.stack.length-1];Y.url=U}function C(U){const Y=this.stack[this.stack.length-1];if(!Y.depth){const ae=this.sliceSerialize(U).length;Y.depth=ae}}function w(){o("setextHeadingSlurpLineEnding",!0)}function O(U){const Y=this.stack[this.stack.length-1];Y.depth=this.sliceSerialize(U).charCodeAt(0)===61?1:2}function T(){o("setextHeadingSlurpLineEnding")}function A(U){const Y=this.stack[this.stack.length-1];let ae=Y.children[Y.children.length-1];(!ae||ae.type!=="text")&&(ae=Ve(),ae.position={start:zh(U.start)},Y.children.push(ae)),this.stack.push(ae)}function I(U){const Y=this.stack.pop();Y.value+=this.sliceSerialize(U),Y.position.end=zh(U.end)}function N(U){const Y=this.stack[this.stack.length-1];if(a("atHardBreak")){const ae=Y.children[Y.children.length-1];ae.position.end=zh(U.end),o("atHardBreak");return}!a("setextHeadingSlurpLineEnding")&&t.canContainEols.includes(Y.type)&&(A.call(this,U),I.call(this,U))}function D(){o("atHardBreak",!0)}function M(){const U=this.resume(),Y=this.stack[this.stack.length-1];Y.value=U}function k(){const U=this.resume(),Y=this.stack[this.stack.length-1];Y.value=U}function P(){const U=this.resume(),Y=this.stack[this.stack.length-1];Y.value=U}function B(){const U=this.stack[this.stack.length-1];if(a("inReference")){const Y=a("referenceType")||"shortcut";U.type+="Reference",U.referenceType=Y,delete U.url,delete U.title}else delete U.identifier,delete U.label;o("referenceType")}function G(){const U=this.stack[this.stack.length-1];if(a("inReference")){const Y=a("referenceType")||"shortcut";U.type+="Reference",U.referenceType=Y,delete U.url,delete U.title}else delete U.identifier,delete U.label;o("referenceType")}function L(U){const Y=this.sliceSerialize(U),ae=this.stack[this.stack.length-2];ae.label=N8e(Y),ae.identifier=yd(Y).toLowerCase()}function W(){const U=this.stack[this.stack.length-1],Y=this.resume(),ae=this.stack[this.stack.length-1];if(o("inReference",!0),ae.type==="link"){const ye=U.children;ae.children=ye}else ae.alt=Y}function j(){const U=this.resume(),Y=this.stack[this.stack.length-1];Y.url=U}function H(){const U=this.resume(),Y=this.stack[this.stack.length-1];Y.title=U}function X(){o("inReference")}function Q(){o("referenceType","collapsed")}function ue(U){const Y=this.resume(),ae=this.stack[this.stack.length-1];ae.label=Y,ae.identifier=yd(this.sliceSerialize(U)).toLowerCase(),o("referenceType","full")}function ee(U){o("characterReferenceType",U.type)}function K(U){const Y=this.sliceSerialize(U),ae=a("characterReferenceType");let ye;ae?(ye=I8e(Y,ae==="characterReferenceMarkerNumeric"?10:16),o("characterReferenceType")):ye=JZ(Y);const fe=this.stack.pop();fe.value+=ye,fe.position.end=zh(U.end)}function se(U){I.call(this,U);const Y=this.stack[this.stack.length-1];Y.url=this.sliceSerialize(U)}function le(U){I.call(this,U);const Y=this.stack[this.stack.length-1];Y.url="mailto:"+this.sliceSerialize(U)}function oe(){return{type:"blockquote",children:[]}}function ne(){return{type:"code",lang:null,meta:null,value:""}}function he(){return{type:"inlineCode",value:""}}function me(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function ce(){return{type:"emphasis",children:[]}}function re(){return{type:"heading",depth:void 0,children:[]}}function ve(){return{type:"break"}}function be(){return{type:"html",value:""}}function xe(){return{type:"image",title:null,url:"",alt:null}}function we(){return{type:"link",title:null,url:"",children:[]}}function de(U){return{type:"list",ordered:U.type==="listOrdered",start:null,spread:U._spread,children:[]}}function Ee(U){return{type:"listItem",spread:U._spread,checked:null,children:[]}}function Ne(){return{type:"paragraph",children:[]}}function Te(){return{type:"strong",children:[]}}function Ve(){return{type:"text",value:""}}function q(){return{type:"thematicBreak"}}}function zh(e){return{line:e.line,column:e.column,offset:e.offset}}function k8e(e,t){let n=-1;for(;++n<t.length;){const r=t[n];Array.isArray(r)?k8e(e,r):YOn(e,r)}}function YOn(e,t){let n;for(n in t)if(M8e.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 pge(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+Vx({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+Vx({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+Vx({start:t.start,end:t.end})+") is still open")}function KOn(e){Object.assign(this,{Parser:n=>{const r=this.data("settings");return WOn(n,Object.assign({},r,e,{extensions:this.data("micromarkExtensions")||[],mdastExtensions:this.data("fromMarkdownExtensions")||[]}))}})}function QOn(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 XOn(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:`
`}]}function ZOn(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 JOn(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function eRn(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function fE(e){const t=[];let n=-1,r=0,i=0;for(;++n<e.length;){const o=e.charCodeAt(n);let a="";if(o===37&&Ns(e.charCodeAt(n+1))&&Ns(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 P8e(e,t){const n=String(t.identifier).toUpperCase(),r=fE(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 tRn(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},P8e(e,{type:"footnoteReference",identifier:i,position:t.position})}function nRn(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 rRn(e,t){if(e.dangerous){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}return null}function D8e(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 iRn(e,t){const n=e.definition(t.identifier);if(!n)return D8e(e,t);const r={src:fE(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 oRn(e,t){const n={src:fE(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 aRn(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 sRn(e,t){const n=e.definition(t.identifier);if(!n)return D8e(e,t);const r={href:fE(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 lRn(e,t){const n={href:fE(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 cRn(e,t,n){const r=e.all(t),i=n?uRn(n):L8e(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 uRn(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=L8e(n[r])}return t}function L8e(e){const t=e.spread;return t??e.children.length>1}function dRn(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 fRn(e,t){const n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function pRn(e,t){const n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)}function hRn(e,t){const n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function mRn(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=EO(t.children[1]),l=D8(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 gRn(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={},p=a?a[l]:void 0;p&&(f.align=p);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 vRn(e,t){const n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}const hge=9,mge=32;function bRn(e){const t=String(e),n=/\r?\n|\r/g;let r=n.exec(t),i=0;const o=[];for(;r;)o.push(gge(t.slice(i,r.index),i>0,!0),r[0]),i=r.index+r[0].length,r=n.exec(t);return o.push(gge(t.slice(i),i>0,!1)),o.join("")}function gge(e,t,n){let r=0,i=e.length;if(t){let o=e.codePointAt(r);for(;o===hge||o===mge;)r++,o=e.codePointAt(r)}if(n){let o=e.codePointAt(i-1);for(;o===hge||o===mge;)i--,o=e.codePointAt(i-1)}return i>r?e.slice(r,i):""}function yRn(e,t){const n={type:"text",value:bRn(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function _Rn(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}const SRn={blockquote:QOn,break:XOn,code:ZOn,delete:JOn,emphasis:eRn,footnoteReference:P8e,footnote:tRn,heading:nRn,html:rRn,imageReference:iRn,image:oRn,inlineCode:aRn,linkReference:sRn,link:lRn,listItem:cRn,list:dRn,paragraph:fRn,root:pRn,strong:hRn,table:mRn,tableCell:vRn,tableRow:gRn,text:yRn,thematicBreak:_Rn,toml:qA,yaml:qA,definition:qA,footnoteDefinition:qA};function qA(){return null}function ERn(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 vge={}.hasOwnProperty;function CRn(e){const t=Object.create(null);if(!e||!e.type)throw new Error("mdast-util-definitions expected node");return PZ(e,"definition",r=>{const i=bge(r.identifier);i&&!vge.call(t,i)&&(t[i]=r)}),n;function n(r){const i=bge(r);return i&&vge.call(t,i)?t[i]:null}}function bge(e){return String(e||"").toUpperCase()}const Gk={}.hasOwnProperty;function xRn(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={...SRn,...n.handlers},a.definition=CRn(e),a.footnoteById=i,a.footnoteOrder=[],a.footnoteCounts={},a.patch=wRn,a.applyData=TRn,a.one=s,a.all=l,a.wrap=RRn,a.augment=o,PZ(e,"footnoteDefinition",c=>{const u=String(c.identifier).toUpperCase();Gk.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};ERn(d)||(u.position={start:EO(d),end:D8(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 $8e(a,c,u)}function l(c){return tJ(a,c)}}function wRn(e,t){e.position&&(t.position=rwn(e))}function TRn(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 $8e(e,t,n){const r=t&&t.type;if(!r)throw new Error("Expected node, got `"+t+"`");return Gk.call(e.handlers,r)?e.handlers[r](e,t,n):e.passThrough&&e.passThrough.includes(r)?"children"in t?{...t,children:tJ(e,t)}:t:e.unknownHandler?e.unknownHandler(e,t,n):ORn(e,t)}function tJ(e,t){const n=[];if("children"in t){const r=t.children;let i=-1;for(;++i<r.length;){const o=$8e(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 ORn(e,t){const n=t.data||{},r="value"in t&&!(Gk.call(n,"hProperties")||Gk.call(n,"hChildren"))?{type:"text",value:t.value}:{type:"element",tagName:"div",properties:{},children:tJ(e,t)};return e.patch(t,r),e.applyData(t,r)}function RRn(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 ARn(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=fE(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 F8e(e,t){const n=xRn(e,t),r=n.one(e,null),i=ARn(n);return i&&r.children.push({type:"text",value:`
`},i),Array.isArray(r)?{type:"root",children:r}:r}const IRn=function(e,t){return e&&"run"in e?NRn(e,t):MRn(e||t)};function NRn(e,t){return(n,r,i)=>{e.run(F8e(n,t),r,o=>{i(o)})}}function MRn(e){return t=>F8e(t,e)}function yge(e){if(e)throw e}/*!
* Determine if an object is a Buffer
*
* @author Feross Aboukhadijeh <https://feross.org>
* @license MIT
*/var kRn=function(t){return t!=null&&t.constructor!=null&&typeof t.constructor.isBuffer=="function"&&t.constructor.isBuffer(t)};const B8e=oi(kRn);var xN=Object.prototype.hasOwnProperty,H8e=Object.prototype.toString,_ge=Object.defineProperty,Sge=Object.getOwnPropertyDescriptor,Ege=function(t){return typeof Array.isArray=="function"?Array.isArray(t):H8e.call(t)==="[object Array]"},Cge=function(t){if(!t||H8e.call(t)!=="[object Object]")return!1;var n=xN.call(t,"constructor"),r=t.constructor&&t.constructor.prototype&&xN.call(t.constructor.prototype,"isPrototypeOf");if(t.constructor&&!n&&!r)return!1;var i;for(i in t);return typeof i>"u"||xN.call(t,i)},xge=function(t,n){_ge&&n.name==="__proto__"?_ge(t,n.name,{enumerable:!0,configurable:!0,value:n.newValue,writable:!0}):t[n.name]=n.newValue},wge=function(t,n){if(n==="__proto__")if(xN.call(t,n)){if(Sge)return Sge(t,n).value}else return;return t[n]},PRn=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=wge(s,n),i=wge(t,n),s!==i&&(u&&i&&(Cge(i)||(o=Ege(i)))?(o?(o=!1,a=r&&Ege(r)?r:[]):a=r&&Cge(r)?r:{},xge(s,{name:n,newValue:e(u,a,i)})):typeof i<"u"&&xge(s,{name:n,newValue:i}));return s};const Tge=oi(PRn);function xG(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 DRn(){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?LRn(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 LRn(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 Pu 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=Vx(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}}Pu.prototype.file="";Pu.prototype.name="";Pu.prototype.reason="";Pu.prototype.message="";Pu.prototype.stack="";Pu.prototype.fatal=null;Pu.prototype.column=null;Pu.prototype.line=null;Pu.prototype.source=null;Pu.prototype.ruleId=null;Pu.prototype.position=null;const sf={basename:$Rn,dirname:FRn,extname:BRn,join:HRn,sep:"/"};function $Rn(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');TO(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 FRn(e){if(TO(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 BRn(e){TO(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 HRn(...e){let t=-1,n;for(;++t<e.length;)TO(e[t]),e[t]&&(n=n===void 0?e[t]:n+"/"+e[t]);return n===void 0?".":jRn(n)}function jRn(e){TO(e);const t=e.charCodeAt(0)===47;let n=URn(e,!t);return n.length===0&&!t&&(n="."),n.length>0&&e.charCodeAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function URn(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 TO(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const zRn={cwd:VRn};function VRn(){return"/"}function wG(e){return e!==null&&typeof e=="object"&&e.href&&e.origin}function GRn(e){if(typeof e=="string")e=new URL(e);else if(!wG(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 WRn(e)}function WRn(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 sF=["history","path","basename","stem","extname","dirname"];class qRn{constructor(t){let n;t?typeof t=="string"||YRn(t)?n={value:t}:wG(t)?n={path:t}:n=t:n={},this.data={},this.messages=[],this.history=[],this.cwd=zRn.cwd(),this.value,this.stored,this.result,this.map;let r=-1;for(;++r<sF.length;){const o=sF[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)sF.includes(i)||(this[i]=n[i])}get path(){return this.history[this.history.length-1]}set path(t){wG(t)&&(t=GRn(t)),cF(t,"path"),this.path!==t&&this.history.push(t)}get dirname(){return typeof this.path=="string"?sf.dirname(this.path):void 0}set dirname(t){Oge(this.basename,"dirname"),this.path=sf.join(t||"",this.basename)}get basename(){return typeof this.path=="string"?sf.basename(this.path):void 0}set basename(t){cF(t,"basename"),lF(t,"basename"),this.path=sf.join(this.dirname||"",t)}get extname(){return typeof this.path=="string"?sf.extname(this.path):void 0}set extname(t){if(lF(t,"extname"),Oge(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=sf.join(this.dirname,this.stem+(t||""))}get stem(){return typeof this.path=="string"?sf.basename(this.path,this.extname):void 0}set stem(t){cF(t,"stem"),lF(t,"stem"),this.path=sf.join(this.dirname||"",t+(this.extname||""))}toString(t){return(this.value||"").toString(t||void 0)}message(t,n,r){const i=new Pu(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 lF(e,t){if(e&&e.includes(sf.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+sf.sep+"`")}function cF(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function Oge(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function YRn(e){return B8e(e)}const KRn=U8e().freeze(),j8e={}.hasOwnProperty;function U8e(){const e=DRn(),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=p,o.processSync=m,o;function o(){const g=U8e();let v=-1;for(;++v<t.length;)g.use(...t[v]);return g.data(Tge(!0,{},n)),g}function a(g,v){return typeof g=="string"?arguments.length===2?(fF("data",r),n[g]=v,o):j8e.call(n,g)&&n[g]||null:g?(fF("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(fF("use",r),g!=null)if(typeof g=="function")x(g,...v);else if(typeof g=="object")Array.isArray(g)?S(g):_(g);else throw new TypeError("Expected usable value, not `"+g+"`");return y&&(n.settings=Object.assign(n.settings||{},y)),o;function b(E){if(typeof E=="function")x(E);else if(typeof E=="object")if(Array.isArray(E)){const[C,...w]=E;x(C,...w)}else _(E);else throw new TypeError("Expected usable value, not `"+E+"`")}function _(E){S(E.plugins),E.settings&&(y=Object.assign(y||{},E.settings))}function S(E){let C=-1;if(E!=null)if(Array.isArray(E))for(;++C<E.length;){const w=E[C];b(w)}else throw new TypeError("Expected a list of plugins, not `"+E+"`")}function x(E,C){let w=-1,O;for(;++w<t.length;)if(t[w][0]===E){O=t[w];break}O?(xG(O[1])&&xG(C)&&(C=Tge(!0,O[1],C)),O[1]=C):t.push([...arguments])}}function c(g){o.freeze();const v=fC(g),y=o.Parser;return uF("parse",y),Rge(y,"parse")?new y(String(v),v).parse():y(String(v),v)}function u(g,v){o.freeze();const y=fC(v),b=o.Compiler;return dF("stringify",b),Age(g),Rge(b,"compile")?new b(g,y).compile():b(g,y)}function d(g,v,y){if(Age(g),o.freeze(),!y&&typeof v=="function"&&(y=v,v=void 0),!y)return new Promise(b);b(null,y);function b(_,S){e.run(g,fC(v),x);function x(E,C,w){C=C||g,E?S(E):_?_(C):y(null,C,w)}}}function f(g,v){let y,b;return o.run(g,v,_),Ige("runSync","run",b),y;function _(S,x){yge(S),y=x,b=!0}}function p(g,v){if(o.freeze(),uF("process",o.Parser),dF("process",o.Compiler),!v)return new Promise(y);y(null,v);function y(b,_){const S=fC(g);o.run(o.parse(S),S,(E,C,w)=>{if(E||!C||!w)x(E);else{const O=o.stringify(C,w);O==null||(ZRn(O)?w.value=O:w.result=O),x(E,w)}});function x(E,C){E||!C?_(E):b?b(C):v(null,C)}}}function m(g){let v;o.freeze(),uF("processSync",o.Parser),dF("processSync",o.Compiler);const y=fC(g);return o.process(y,b),Ige("processSync","process",v),y;function b(_){v=!0,yge(_)}}}function Rge(e,t){return typeof e=="function"&&e.prototype&&(QRn(e.prototype)||t in e.prototype)}function QRn(e){let t;for(t in e)if(j8e.call(e,t))return!0;return!1}function uF(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `Parser`")}function dF(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `Compiler`")}function fF(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 Age(e){if(!xG(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function Ige(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function fC(e){return XRn(e)?e:new qRn(e)}function XRn(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function ZRn(e){return typeof e=="string"||B8e(e)}const JRn=JSON.stringify(DZ);function eAn({sanitize:e,plugins:t,remarkRehype:n={}}){let r=KRn().use(KOn);t==null||t.forEach(({remark:o})=>{o&&(r=o(r))}),r=r.use(IRn,{allowDangerousHtml:!0,...n}).use(Qwn);let i=JSON.parse(JRn);return i.attributes["*"].push("className"),typeof e=="function"&&(i=e(i)),r=r.use(Xwn,i),t==null||t.forEach(({rehype:o})=>{o&&(r=o(r))}),r.use(qTn)}const tAn=({value:e,sanitize:t,plugins:n,remarkRehype:r})=>{var i;const o=h.useRef(null),a=h.useMemo(()=>{try{return eAn({sanitize:t,plugins:n,remarkRehype:r}).processSync(e)}catch(s){console.error(s)}},[e,t,n,r]);return h.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]),pe.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:""}})},nAn={tokenize:lAn,partial:!0},z8e={tokenize:cAn,partial:!0},V8e={tokenize:uAn,partial:!0},G8e={tokenize:dAn,partial:!0},rAn={tokenize:fAn,partial:!0},W8e={tokenize:aAn,previous:Y8e},q8e={tokenize:sAn,previous:K8e},Nh={tokenize:oAn,previous:Q8e},tp={},iAn={text:tp};let f0=48;for(;f0<123;)tp[f0]=Nh,f0++,f0===58?f0=65:f0===91&&(f0=97);tp[43]=Nh;tp[45]=Nh;tp[46]=Nh;tp[95]=Nh;tp[72]=[Nh,q8e];tp[104]=[Nh,q8e];tp[87]=[Nh,W8e];tp[119]=[Nh,W8e];function oAn(e,t,n){const r=this;let i,o;return a;function a(d){return!TG(d)||!Q8e.call(r,r.previous)||nJ(r.events)?n(d):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),s(d))}function s(d){return TG(d)?(e.consume(d),s):d===64?(e.consume(d),l):n(d)}function l(d){return d===46?e.check(rAn,u,c)(d):d===45||d===95||Ns(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&&Js(r.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(d)):n(d)}}function aAn(e,t,n){const r=this;return i;function i(a){return a!==87&&a!==119||!Y8e.call(r,r.previous)||nJ(r.events)?n(a):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(nAn,e.attempt(z8e,e.attempt(V8e,o),n),n)(a))}function o(a){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(a)}}function sAn(e,t,n){const r=this;let i="",o=!1;return a;function a(d){return(d===72||d===104)&&K8e.call(r,r.previous)&&!nJ(r.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),i+=String.fromCodePoint(d),e.consume(d),s):n(d)}function s(d){if(Js(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||zk(d)||zi(d)||av(d)||$8(d)?n(d):e.attempt(z8e,e.attempt(V8e,u),n)(d)}function u(d){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(d)}}function lAn(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 cAn(e,t,n){let r,i,o;return a;function a(c){return c===46||c===95?e.check(G8e,l,s)(c):c===null||zi(c)||av(c)||c!==45&&$8(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 uAn(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(G8e,t,o)(a):a===null||zi(a)||av(a)?t(a):(e.consume(a),i)}function o(a){return a===41&&r++,e.consume(a),i}}function dAn(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||zi(s)||av(s)?t(s):n(s)}function i(s){return s===null||s===40||s===91||zi(s)||av(s)?t(s):r(s)}function o(s){return Js(s)?a(s):n(s)}function a(s){return s===59?(e.consume(s),r):Js(s)?(e.consume(s),a):n(s)}}function fAn(e,t,n){return r;function r(o){return e.consume(o),i}function i(o){return Ns(o)?n(o):t(o)}}function Y8e(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||zi(e)}function K8e(e){return!Js(e)}function Q8e(e){return!(e===47||TG(e))}function TG(e){return e===43||e===45||e===46||e===95||Ns(e)}function nJ(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 pAn={tokenize:SAn,partial:!0};function hAn(){return{document:{91:{tokenize:bAn,continuation:{tokenize:yAn},exit:_An}},text:{91:{tokenize:vAn},93:{add:"after",tokenize:mAn,resolveTo:gAn}}}}function mAn(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 gAn(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 vAn(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||zi(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 zi(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 bAn(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||zi(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 zi(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),ii(e,p,"gfmFootnoteDefinitionWhitespace")):n(m)}function p(m){return t(m)}}function yAn(e,t,n){return e.check(wO,t,e.attempt(pAn,t,n))}function _An(e){e.exit("gfmFootnoteDefinition")}function SAn(e,t,n){const r=this;return ii(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 EAn(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]],p=s.parser.constructs.insideSpan.null;p&&_c(f,f.length,0,F8(p,a.slice(c+1,l),s)),_c(f,f.length,0,[["exit",d,s],["enter",a[l][1],s],["exit",a[l][1],s],["exit",u,s]]),_c(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"),p(m))}function p(m){const g=Vk(c);if(m===126)return d>1?l(m):(a.consume(m),d++,p);if(d<2&&!n)return l(m);const v=a.exit("strikethroughSequenceTemporary"),y=Vk(m);return v._open=!y||y===2&&!!g,v._close=!g||g===2&&!!y,s(m)}}}class CAn{constructor(){this.map=[]}add(t,n,r){xAn(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 xAn(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 wAn(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 TAn={flow:{null:{tokenize:OAn,resolveAll:RAn}}};function OAn(e,t,n){const r=this;let i=0,o=0,a;return s;function s(T){let A=r.events.length-1;for(;A>-1;){const D=r.events[A][1].type;if(D==="lineEnding"||D==="linePrefix")A--;else break}const I=A>-1?r.events[A][1].type:null,N=I==="tableHead"||I==="tableRow"?E:l;return N===E&&r.parser.lazy[r.now().line]?n(T):N(T)}function l(T){return e.enter("tableHead"),e.enter("tableRow"),c(T)}function c(T){return T===124||(a=!0,o+=1),u(T)}function u(T){return T===null?n(T):dr(T)?o>1?(o=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(T),e.exit("lineEnding"),p):n(T):zr(T)?ii(e,u,"whitespace")(T):(o+=1,a&&(a=!1,i+=1),T===124?(e.enter("tableCellDivider"),e.consume(T),e.exit("tableCellDivider"),a=!0,u):(e.enter("data"),d(T)))}function d(T){return T===null||T===124||zi(T)?(e.exit("data"),u(T)):(e.consume(T),T===92?f:d)}function f(T){return T===92||T===124?(e.consume(T),d):d(T)}function p(T){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(T):(e.enter("tableDelimiterRow"),a=!1,zr(T)?ii(e,m,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(T):m(T))}function m(T){return T===45||T===58?v(T):T===124?(a=!0,e.enter("tableCellDivider"),e.consume(T),e.exit("tableCellDivider"),g):x(T)}function g(T){return zr(T)?ii(e,v,"whitespace")(T):v(T)}function v(T){return T===58?(o+=1,a=!0,e.enter("tableDelimiterMarker"),e.consume(T),e.exit("tableDelimiterMarker"),y):T===45?(o+=1,y(T)):T===null||dr(T)?S(T):x(T)}function y(T){return T===45?(e.enter("tableDelimiterFiller"),b(T)):x(T)}function b(T){return T===45?(e.consume(T),b):T===58?(a=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(T),e.exit("tableDelimiterMarker"),_):(e.exit("tableDelimiterFiller"),_(T))}function _(T){return zr(T)?ii(e,S,"whitespace")(T):S(T)}function S(T){return T===124?m(T):T===null||dr(T)?!a||i!==o?x(T):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(T)):x(T)}function x(T){return n(T)}function E(T){return e.enter("tableRow"),C(T)}function C(T){return T===124?(e.enter("tableCellDivider"),e.consume(T),e.exit("tableCellDivider"),C):T===null||dr(T)?(e.exit("tableRow"),t(T)):zr(T)?ii(e,C,"whitespace")(T):(e.enter("data"),w(T))}function w(T){return T===null||T===124||zi(T)?(e.exit("data"),C(T)):(e.consume(T),T===92?O:w)}function O(T){return T===92||T===124?(e.consume(T),w):w(T)}}function RAn(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 CAn;for(;++n<e.length;){const p=e[n],m=p[1];p[0]==="enter"?m.type==="tableHead"?(s=!1,l!==0&&(Nge(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=YA(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=YA(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=YA(f,t,o,i,n,d)):a[1]!==0&&(d=YA(f,t,a,i,n,d)),i=0):i&&(m.type==="data"||m.type==="tableDelimiterMarker"||m.type==="tableDelimiterFiller")&&(a[3]=n)}for(l!==0&&Nge(f,t,l,c,u),f.consume(t.events),n=-1;++n<t.events.length;){const p=t.events[n];p[0]==="enter"&&p[1].type==="table"&&(p[1]._align=wAn(t.events,n))}return e}function YA(e,t,n,r,i,o){const a=r===1?"tableHeader":r===2?"tableDelimiter":"tableData",s="tableContent";n[0]!==0&&(o.end=Object.assign({},Bb(t.events,n[0])),e.add(n[0],0,[["exit",o,t]]));const l=Bb(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=Bb(t.events,n[2]),u=Bb(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]],p=t.events[n[3]];if(f[1].end=Object.assign({},p[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({},Bb(t.events,i)),e.add(i,0,[["exit",o,t]]),o=void 0),o}function Nge(e,t,n,r,i){const o=[],a=Bb(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 Bb(e,t){const n=e[t],r=n[0]==="enter"?"start":"end";return n[1][r]}const AAn={tokenize:NAn},IAn={text:{91:AAn}};function NAn(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 zi(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):zr(l)?e.check({tokenize:MAn},t,n)(l):n(l)}}function MAn(e,t,n){return ii(e,r,"whitespace");function r(i){return i===null?n(i):t(i)}}function kAn(e){return _8e([iAn,hAn(),EAn(e),TAn,IAn])}function PAn(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}const DAn={}.hasOwnProperty,LAn=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=kZ(i.ignore||[]),s=$An(o);let l=-1;for(;++l<s.length;)S3e(e,"text",c);return e;function c(d,f){let p=-1,m;for(;++p<f.length;){const g=f[p];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 p=f[f.length-1],m=s[l][0],g=s[l][1];let v=0;const y=p.children.indexOf(d);let b=!1,_=[];m.lastIndex=0;let S=m.exec(d.value);for(;S;){const x=S.index,E={index:S.index,input:S.input,stack:[...f,d]};let C=g(...S,E);if(typeof C=="string"&&(C=C.length>0?{type:"text",value:C}:void 0),C!==!1&&(v!==x&&_.push({type:"text",value:d.value.slice(v,x)}),Array.isArray(C)?_.push(...C):C&&_.push(C),v=x+S[0].length,b=!0),!m.global)break;S=m.exec(d.value)}return b?(v<d.value.length&&_.push({type:"text",value:d.value.slice(v)}),p.children.splice(y,1,..._)):_=[d],y+_.length}};function $An(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([Mge(e[n][0]),kge(e[n][1])])}else{let n;for(n in e)DAn.call(e,n)&&t.push([Mge(n),kge(e[n])])}return t}function Mge(e){return typeof e=="string"?new RegExp(PAn(e),"g"):e}function kge(e){return typeof e=="function"?e:()=>e}const pF="phrasing",hF=["autolink","link","image","label"],FAn={transforms:[GAn],enter:{literalAutolink:HAn,literalAutolinkEmail:mF,literalAutolinkHttp:mF,literalAutolinkWww:mF},exit:{literalAutolink:VAn,literalAutolinkEmail:zAn,literalAutolinkHttp:jAn,literalAutolinkWww:UAn}},BAn={unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:pF,notInConstruct:hF},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:pF,notInConstruct:hF},{character:":",before:"[ps]",after:"\\/",inConstruct:pF,notInConstruct:hF}]};function HAn(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function mF(e){this.config.enter.autolinkProtocol.call(this,e)}function jAn(e){this.config.exit.autolinkProtocol.call(this,e)}function UAn(e){this.config.exit.data.call(this,e);const t=this.stack[this.stack.length-1];t.url="http://"+this.sliceSerialize(e)}function zAn(e){this.config.exit.autolinkEmail.call(this,e)}function VAn(e){this.exit(e)}function GAn(e){LAn(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,WAn],[/([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/g,qAn]],{ignore:["link","linkReference"]})}function WAn(e,t,n,r,i){let o="";if(!X8e(i)||(/^w/i.test(t)&&(n=t+n,t="",o="http://"),!YAn(n)))return!1;const a=KAn(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 qAn(e,t,n,r){return!X8e(r,!0)||/[-\d_]$/.test(n)?!1:{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function YAn(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 KAn(e){const t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],r=n.indexOf(")");const i=Uk(e,"(");let o=Uk(e,")");for(;r!==-1&&i>o;)e+=n.slice(0,r+1),n=n.slice(r+1),r=n.indexOf(")"),o++;return[e,n]}function X8e(e,t){const n=e.input.charCodeAt(e.index-1);return(e.index===0||av(n)||$8(n))&&(!t||n!==47)}function Z8e(e){return e.label||!e.identifier?e.label||"":N8e(e.identifier)}function QAn(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(XAn(l,i[s+1],e,t)))}return r.pop(),a.join("")}function XAn(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 ZAn=/\r?\n|\r/g;function JAn(e,t){const n=[];let r=0,i=0,o;for(;o=ZAn.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 J8e(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 eIn(e,t){return Pge(e,t.inConstruct,!0)&&!Pge(e,t.notInConstruct,!1)}function Pge(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 e9e(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(!eIn(e.stack,u))continue;const d=J8e(u);let f;for(;f=d.exec(r);){const p="before"in u||!!u.atBreak,m="after"in u,g=f.index+(p?f[1].length:0);i.includes(g)?(a[g].before&&!p&&(a[g].before=!1),a[g].after&&!m&&(a[g].after=!1)):(i.push(g),a[g]={before:p,after:m})}}i.sort(tIn);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(Dge(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(Dge(r.slice(l,c),n.after)),o.join("")}function tIn(e,t){return e-t}function Dge(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 B8(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}}t9e.peek=fIn;function nIn(){return{enter:{gfmFootnoteDefinition:iIn,gfmFootnoteDefinitionLabelString:oIn,gfmFootnoteCall:lIn,gfmFootnoteCallString:cIn},exit:{gfmFootnoteDefinition:sIn,gfmFootnoteDefinitionLabelString:aIn,gfmFootnoteCall:dIn,gfmFootnoteCallString:uIn}}}function rIn(){return{unsafe:[{character:"[",inConstruct:["phrasing","label","reference"]}],handlers:{footnoteDefinition:pIn,footnoteReference:t9e}}}function iIn(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function oIn(){this.buffer()}function aIn(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=yd(this.sliceSerialize(e)).toLowerCase()}function sIn(e){this.exit(e)}function lIn(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function cIn(){this.buffer()}function uIn(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=yd(this.sliceSerialize(e)).toLowerCase()}function dIn(e){this.exit(e)}function t9e(e,t,n,r){const i=B8(r);let o=i.move("[^");const a=n.enter("footnoteReference"),s=n.enter("reference");return o+=i.move(e9e(n,Z8e(e),{...i.current(),before:o,after:"]"})),s(),a(),o+=i.move("]"),o}function fIn(){return"["}function pIn(e,t,n,r){const i=B8(r);let o=i.move("[^");const a=n.enter("footnoteDefinition"),s=n.enter("label");return o+=i.move(e9e(n,Z8e(e),{...i.current(),before:o,after:"]"})),s(),o+=i.move("]:"+(e.children&&e.children.length>0?" ":"")),i.shift(4),o+=i.move(JAn(QAn(e,n,i.current()),hIn)),a(),o}function hIn(e,t,n){return t===0?e:(n?"":" ")+e}function n9e(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 mIn=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];r9e.peek=_In;const gIn={canContainEols:["delete"],enter:{strikethrough:bIn},exit:{strikethrough:yIn}},vIn={unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:mIn}],handlers:{delete:r9e}};function bIn(e){this.enter({type:"delete",children:[]},e)}function yIn(e){this.exit(e)}function r9e(e,t,n,r){const i=B8(r),o=n.enter("strikethrough");let a=i.move("~~");return a+=n9e(e,n,{...i.current(),before:a,after:"~"}),a+=i.move("~~"),o(),a}function _In(){return"~"}i9e.peek=SIn;function i9e(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=J8e(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 SIn(){return"`"}function EIn(e){return e.length}function CIn(e,t){const n=t||{},r=(n.align||[]).concat(),i=n.stringLength||EIn,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=xIn(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]=Lge(r[d]);else{const g=Lge(r);for(;++d<c;)o[d]=g}d=-1;const f=[],p=[];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),p[d]=b),f[d]=_}a.splice(1,0,f),s.splice(1,0,p),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 _="",S="";if(n.alignDelimiters!==!1){const x=l[d]-(v[d]||0),E=o[d];E===114?_=" ".repeat(x):E===99?x%2?(_=" ".repeat(x/2+.5),S=" ".repeat(x/2-.5)):(_=" ".repeat(x/2),S=_):S=" ".repeat(x)}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(S),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 xIn(e){return e==null?"":String(e)}function Lge(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 wIn={enter:{table:TIn,tableData:$ge,tableHeader:$ge,tableRow:RIn},exit:{codeText:AIn,table:OIn,tableData:gF,tableHeader:gF,tableRow:gF}};function TIn(e){const t=e._align;this.enter({type:"table",align:t.map(n=>n==="none"?null:n),children:[]},e),this.setData("inTable",!0)}function OIn(e){this.exit(e),this.setData("inTable")}function RIn(e){this.enter({type:"tableRow",children:[]},e)}function gF(e){this.exit(e)}function $ge(e){this.enter({type:"tableCell",children:[]},e)}function AIn(e){let t=this.resume();this.getData("inTable")&&(t=t.replace(/\\([\\|])/g,IIn));const n=this.stack[this.stack.length-1];n.value=t,this.exit(e)}function IIn(e,t){return t==="|"?t:e}function NIn(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(p,m,g,v){return c(u(p,g,v),p.align)}function s(p,m,g,v){const y=d(p,g,v),b=c([y]);return b.slice(0,b.indexOf(`
`))}function l(p,m,g,v){const y=g.enter("tableCell"),b=g.enter("phrasing"),_=n9e(p,g,{...v,before:o,after:o});return b(),y(),_}function c(p,m){return CIn(p,{align:m,alignDelimiters:r,padding:n,stringLength:i})}function u(p,m,g){const v=p.children;let y=-1;const b=[],_=m.enter("table");for(;++y<v.length;)b[y]=d(v[y],m,g);return _(),b}function d(p,m,g){const v=p.children;let y=-1;const b=[],_=m.enter("tableRow");for(;++y<v.length;)b[y]=l(v[y],p,m,g);return _(),b}function f(p,m,g){let v=i9e(p,m,g);return g.stack.includes("tableCell")&&(v=v.replace(/\|/g,"\\$&")),v}}function MIn(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 kIn(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 PIn(e,t,n,r){const i=kIn(n);let o=n.bulletCurrent||MIn(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,p){return f?(p?"":" ".repeat(a))+d:(p?o:o+" ".repeat(a-o.length))+d}}const DIn={exit:{taskListCheckValueChecked:Fge,taskListCheckValueUnchecked:Fge,paragraph:$In}},LIn={unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:FIn}};function Fge(e){const t=this.stack[this.stack.length-2];t.checked=e.type==="taskListCheckValueChecked"}function $In(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 FIn(e,t,n,r){const i=e.children[0],o=typeof e.checked=="boolean"&&i&&i.type==="paragraph",a="["+(e.checked?"x":" ")+"] ",s=B8(r);o&&s.move(a);let l=PIn(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 BIn(){return[FAn,nIn(),gIn,wIn,DIn]}function HIn(e){return{extensions:[BAn,rIn(),vIn,NIn(e),LIn]}}function jIn(e={}){const t=this.data();n("micromarkExtensions",kAn(e)),n("fromMarkdownExtensions",BIn()),n("toMarkdownExtensions",HIn(e));function n(r,i){(t[r]?t[r]:t[r]=[]).push(i)}}const vF={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>'},UIn="Strikethrough",zIn="text",VIn="Table",GIn="Heading",WIn="Task list",qIn="todo",YIn={strike:UIn,strikeText:zIn,table:VIn,tableHeading:GIn,task:WIn,taskText:qIn};function KIn({locale:e,...t}={}){const n={...YIn,...e};return{remark:r=>r.use(jIn,t),actions:[{title:n.strike,icon:vF.Strikethrough,cheatsheet:`~~${n.strikeText}~~`,handler:{type:"action",click({wrapText:r,editor:i}){r("~~"),i.focus()}}},{title:n.task,icon:vF.CheckCorrect,cheatsheet:`- [ ] ${n.taskText}`,handler:{type:"action",click({replaceLines:r,editor:i}){r(o=>"- [ ] "+o),i.focus()}}},{title:n.table,icon:vF.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 QIn({init:e}={}){let t;return{viewerEffect({markdownBody:n}){(async()=>{const r=n.querySelectorAll("pre>code");r.length!==0&&(t||(t=await sX(()=>import("./index-D_7dh8EI.js"),[]).then(i=>i.default),e&&await e(t)),r.forEach(i=>{t.highlightElement(i)}))})()}}}const XIn={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>'},ZIn="Entity relationship diagram",JIn="Flow chart",eNn="Gantt chart",tNn="Mermaid diagrams",nNn="Mindmaps",rNn="Pie chart",iNn="Sequence diagram",oNn="State diagram",aNn="Timeline",sNn="User journey diagram",lNn={class:"Class diagram",er:ZIn,flowchart:JIn,gantt:eNn,mermaid:tNn,mindmap:nNn,pie:rNn,sequence:iNn,state:oNn,timeline:aNn,uj:sNn};function cNn({locale:e,...t}={}){const n={...lNn,...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 sX(()=>import("./mermaid.core-K35R9WZl.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:XIn.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 IT(e){"@babel/helpers - typeof";return IT=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},IT(e)}function Bge(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 OG(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Bge(Object(n),!0).forEach(function(r){S0(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Bge(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function S0(e,t,n){return t=uNn(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function uNn(e){var t=dNn(e,"string");return IT(t)=="symbol"?t:String(t)}function dNn(e,t){if(IT(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(IT(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var fNn=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,p=t.colorTextSecondary,m=t.colorTextTertiary,g=t.motionDurationSlow;return S0({},n,OG(OG({},mr(t)),{},S0(S0(S0(S0(S0({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:p,fontSize:i,transition:"color ".concat(g),"> *":{color:p,"&:hover":{color:p}}},"&-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:p,"> span":{marginInlineEnd:l,color:p,fontSize:o,cursor:"pointer",transition:"color ".concat(g),userSelect:"none","&:hover":{color:f}}}}),"".concat(n,"-nested"),{marginInlineStart:44})))};function pNn(e){var t=Cs.useToken();t.theme;var n=t.token,r=t.hashId,i=h.useContext(Ln.ConfigContext),o=i.iconPrefixCls;return[u_({token:n,hashId:r,path:["compatible","Comment",e,o]},function(){var a=OG({componentCls:".".concat(e)},n);return[fNn(a)]}),r]}function NT(e){"@babel/helpers - typeof";return NT=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},NT(e)}var hNn=["actions","author","avatar","children","className","content","prefixCls","datetime"];function RG(){return RG=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},RG.apply(this,arguments)}function mNn(e,t,n){return t=gNn(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function gNn(e){var t=vNn(e,"string");return NT(t)=="symbol"?t:String(t)}function vNn(e,t){if(NT(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(NT(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function bNn(e,t){return ENn(e)||SNn(e,t)||_Nn(e,t)||yNn()}function yNn(){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 _Nn(e,t){if(e){if(typeof e=="string")return Hge(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 Hge(e,t)}}function Hge(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 SNn(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 ENn(e){if(Array.isArray(e))return e}function CNn(e,t){if(e==null)return{};var n=xNn(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 xNn(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 wNn=Ln.ConfigContext,TNn=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=CNn(t,hNn),d=h.useContext(wNn),f=d.getPrefixCls,p=d.direction,m=function(T,A){return h.createElement("div",{className:Ce("".concat(T,"-nested"))},A)},g=f("comment",l),v=pNn(g),y=bNn(v,2),b=y[0],_=y[1],S=i?h.createElement("div",{className:"".concat(g,"-avatar")},typeof i=="string"?h.createElement("img",{src:i,alt:"comment-avatar"}):i):null,x=n&&n.length?h.createElement("ul",{className:"".concat(g,"-actions")},n.map(function(O,T){return h.createElement("li",{key:"action-".concat(T)},O)})):null,E=(r||c)&&h.createElement("div",{className:"".concat(g,"-content-author")},r&&h.createElement("span",{className:"".concat(g,"-content-author-name")},r),c&&h.createElement("span",{className:"".concat(g,"-content-author-time")},c)),C=h.createElement("div",{className:"".concat(g,"-content")},E,h.createElement("div",{className:"".concat(g,"-content-detail")},s),x),w=Ce(g,mNn({},"".concat(g,"-rtl"),p==="rtl"),a,_);return b(h.createElement("div",RG({},u,{className:w}),h.createElement("div",{className:"".concat(g,"-inner")},S,C),o?m(g,o):null))};async function ONn(e){return Br("/api/v1/comment/query/org",{method:"GET",params:{...e,client:Or}})}async function RNn(e){return Br("/api/v1/comment/create",{method:"POST",data:{...e,client:Or}})}async function ANn(e){return Br("/api/v1/comment/delete",{method:"POST",data:{...e,client:Or}})}const{TextArea:INn}=Co,NNn=$o.div`
.ant-comment-content-detail {
margin-bottom: 12px;
}
.ant-list-item {
padding: 12px 0;
}
.comment-actions {
color: #1890ff;
cursor: pointer;
&:hover {
color: #40a9ff;
}
}
`,MNn=({articleUid:e})=>{var _;const[t,n]=pe.useState([]),[r,i]=pe.useState(!1),[o,a]=pe.useState(!1),[s,l]=pe.useState(""),[c,u]=pe.useState(null),[d,f]=pe.useState(new Set),p=Vl(S=>S.currentOrg),m=async()=>{a(!0);try{const S={pageNumber:0,pageSize:100,articleUid:e,orgUid:p==null?void 0:p.uid},x=await ONn(S);if(console.log(x),x.data.code===200&&x.data.data.content){const E=x.data.data.content.sort((C,w)=>ln(w.updatedAt).valueOf()-ln(C.updatedAt).valueOf());n(E)}}catch(S){console.error("获取评论失败:",S),Vo.error("获取评论失败")}finally{a(!1)}};pe.useEffect(()=>{m()},[e]);const g=async()=>{var S;if(s.trim()){i(!0);try{const x={type:eFe,content:s,articleUid:e,orgUid:p==null?void 0:p.uid};c&&(x.replyToUid=c.uid,x.replyToContent=c.content,x.replyToUser=(S=c.user)==null?void 0:S.nickname);const E=await RNn(x);E.data.code===200?(Vo.success("评论成功"),l(""),u(null),await m()):Vo.error(E.data.message)}catch(x){console.error("提交评论失败:",x),Vo.error("提交评论失败")}finally{i(!1)}}},v=S=>{u(S);const x=document.querySelector(".comment-textarea");x&&x.focus()},y=async S=>{try{const x=await ANn({uid:S});x.data.code===200?(Vo.success("删除成功"),await m()):Vo.error(x.data.message)}catch(x){console.error("删除评论失败:",x),Vo.error("删除评论失败")}},b=S=>{f(x=>{const E=new Set(x);return E.has(S)?E.delete(S):E.add(S),E})};return F.jsxs(NNn,{children:[F.jsxs(ui,{children:[F.jsx(ui.Item,{children:F.jsx(INn,{className:"comment-textarea",rows:4,value:s,onChange:S=>l(S.target.value),placeholder:c?`回复 ${(_=c.user)==null?void 0:_.nickname}: `:"写下你的评论..."})}),F.jsx(ui.Item,{children:F.jsxs(Ji,{children:[F.jsx(Dn,{htmlType:"submit",loading:r,onClick:g,type:"primary",children:c?"回复":"评论"}),c&&F.jsx(Dn,{onClick:()=>u(null),children:"取消回复"})]})})]}),F.jsx(Jwe,{loading:o,dataSource:t,itemLayout:"horizontal",locale:{emptyText:"暂无评论"},renderItem:S=>{var x,E,C;return F.jsx(TNn,{author:(x=S.user)==null?void 0:x.nickname,avatar:F.jsx(_h,{icon:F.jsx(cD,{}),src:(E=S.user)==null?void 0:E.avatar}),content:F.jsxs("div",{children:[S.replyToUser&&F.jsxs("span",{style:{color:"#1890ff",marginRight:8},children:["回复 ",S.replyToUser,":"]}),S.content]}),datetime:F.jsx(Na,{title:ln(S.updatedAt).format("YYYY-MM-DD HH:mm:ss"),children:F.jsx("span",{children:ln(S.updatedAt).fromNow()})}),actions:[F.jsxs("span",{className:"comment-actions",onClick:()=>b(S.uid),children:[d.has(S.uid)?F.jsx(Vgt,{}):F.jsx(qgt,{}),F.jsx("span",{style:{marginLeft:4},children:d.has(S.uid)?"已赞":"点赞"})]},"like"),F.jsx("span",{className:"comment-actions",onClick:()=>v(S),children:"回复"},"reply"),((C=S.user)==null?void 0:C.uid)===(p==null?void 0:p.uid)&&F.jsx(aD,{title:"确定要删除这条评论吗?",onConfirm:()=>y(S.uid),okText:"确定",cancelText:"取消",children:F.jsxs("span",{className:"comment-actions",children:[F.jsx(x2,{})," 删除"]})},"delete")]})}})]})},{Header:kNn,Content:PNn}=po,DNn=$o(po)`
min-height: 100vh;
height: auto;
`,LNn=$o(kNn)`
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;
}
}
`,$Nn=$o(PNn)`
margin-top: 64px;
padding: 24px;
min-height: calc(100vh - 64px);
`,FNn=$o.div`
max-width: 900px;
margin: 0 auto;
`,BNn=$o(eD)`
margin-top: 24px;
margin-bottom: 24px;
.ant-card-head {
border-bottom: none;
}
`,HNn=[KIn(),QIn(),cNn()],jNn=()=>{const{articleUid:e}=hK(),t=ka(),{currentArticle:n,fetchArticle:r}=cO(),{currentKbase:i,fetchKbaseDetail:o}=Hg(),[a,s]=pe.useState(!1),[l,c]=pe.useState(!1),u=async v=>{try{await o(v)}finally{}},d=async()=>{if(e)try{await r(e)}finally{}};pe.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`)},p=()=>{Wt.info("分享功能开发中")},m=()=>{s(!a),Wt.success(a?"已取消收藏":"已收藏")},g=()=>{c(!l)};return F.jsxs(DNn,{children:[F.jsxs(LNn,{children:[F.jsxs("div",{className:"left-section",children:[F.jsx(Dn,{icon:F.jsx(bTe,{}),onClick:()=>t(`/kbase/${i==null?void 0:i.uid}`),children:"返回"}),F.jsx("span",{className:"title",children:n==null?void 0:n.title})]}),F.jsxs("div",{className:"right-section",children:[ud&&F.jsxs(F.Fragment,{children:[F.jsx(Dn,{type:"text",icon:a?F.jsx(lD,{}):F.jsx(VY,{}),onClick:m}),F.jsx(Dn,{icon:F.jsx(B0t,{}),onClick:p,children:"分享"})]}),F.jsx(Dn,{icon:F.jsx(Z4,{}),onClick:g,children:"评论"}),F.jsx(Dn,{type:"primary",icon:F.jsx(Hw,{}),onClick:f,children:"编辑"})]})]}),F.jsx($Nn,{children:F.jsxs(FNn,{children:[F.jsx(tAn,{value:(n==null?void 0:n.contentHtml)||"",plugins:HNn}),l&&F.jsx(BNn,{title:F.jsxs(Ji,{children:[F.jsx(Z4,{}),F.jsx("span",{children:"评论"})]}),variant:"borderless",children:e&&F.jsx(MNn,{articleUid:e})})]})})]})},{Option:pC}=vu,UNn=$o(Dn)`
padding: 0 4px;
height: 24px;
line-height: 24px;
`,zNn=$o.div`
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 16px;
`,VNn=({kbaseUid:e})=>{const[t,n]=pe.useState(!0),[r,i]=pe.useState([]),[o,a]=pe.useState(!1),[s]=ui.useForm();pe.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),Vo.success("邀请已发送"),a(!1),s.resetFields()}catch(d){console.error("Invite member failed:",d),Vo.error("邀请失败")}},c=[{title:"成员",dataIndex:"name",key:"name",render:(u,d)=>F.jsxs(Ji,{children:[F.jsx(cD,{}),u,F.jsxs("span",{style:{color:"#999"},children:["(",d.email,")"]})]})},{title:"角色",dataIndex:"role",key:"role",render:u=>F.jsx(zp,{color:u==="admin"?"blue":"default",children:u==="admin"?"管理员":"成员"})},{title:"操作",key:"action",render:u=>F.jsxs(Ji,{size:"small",children:[F.jsxs(vu,{defaultValue:u.role,style:{width:100},disabled:u.role==="admin",children:[F.jsx(pC,{value:"admin",children:"管理员"}),F.jsx(pC,{value:"member",children:"成员"}),F.jsx(pC,{value:"readonly",children:"只读"})]}),F.jsx(UNn,{type:"link",icon:F.jsx(x2,{}),danger:!0,disabled:u.role==="admin",children:"移除"})]})}];return F.jsxs("div",{children:[F.jsxs(zNn,{children:[F.jsxs("span",{children:["共 ",r.length," 名成员"]}),F.jsx(Dn,{type:"primary",icon:F.jsx(v2,{}),onClick:()=>a(!0),children:"邀请成员"})]}),F.jsx(Ud,{columns:c,dataSource:r,loading:t,rowKey:"id",pagination:!1}),F.jsx(Qo,{title:"邀请成员",open:o,onCancel:()=>a(!1),onOk:()=>s.submit(),children:F.jsxs(ui,{form:s,layout:"vertical",onFinish:l,children:[F.jsx(ui.Item,{name:"email",label:"邮箱地址",rules:[{required:!0,message:"请输入邮箱地址"},{type:"email",message:"请输入有效的邮箱地址"}],children:F.jsx(Co,{prefix:F.jsx(Zgt,{}),placeholder:"请输入邮箱地址"})}),F.jsx(ui.Item,{name:"role",label:"角色",initialValue:"member",rules:[{required:!0,message:"请选择角色"}],children:F.jsxs(vu,{children:[F.jsx(pC,{value:"member",children:"成员"}),F.jsx(pC,{value:"readonly",children:"只读"})]})}),F.jsx(ui.Item,{name:"message",label:"邀请消息",children:F.jsx(Co.TextArea,{placeholder:"可选:添加一条邀请消息",rows:3})})]})})]})},bF=$o(Dn)`
padding: 0 4px;
height: 24px;
line-height: 24px;
`,GNn=()=>{const[e,t]=pe.useState(!0),[n,r]=pe.useState([]),[i,o]=pe.useState({}),[a,s]=pe.useState({current:1,pageSize:10,total:0}),l=ka(),c=Vl(_=>_.currentOrg),{setCurrentArticle:u}=cO(),{currentKbase:d}=Hg(),f=async()=>{try{const _={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},S=await yX(_);if(S.data.code===200&&S.data.data.content){const x=S.data.data.content.reduce((E,C)=>(E[C.uid]=C,E),{});o(x)}}catch(_){console.error("获取分类列表失败:",_)}},p=async(_=1,S=10)=>{t(!0);try{const x={pageNumber:_-1,pageSize:S,kbUid:d==null?void 0:d.uid,orgUid:c==null?void 0:c.uid},E=await _en(x);if(E.data.code===200){const{content:C,totalElements:w}=E.data.data;r(C),s({current:_,pageSize:S,total:w})}else Wt.error(E.data.message)}catch(x){console.error("获取文章列表失败:",x),Wt.error("获取文章列表失败")}finally{t(!1)}},m=async _=>{try{t(!0);const x=await tke({uid:_});x.data.code===200?(Wt.success("删除成功"),await p(a.current,a.pageSize)):Wt.error(x.data.message)}catch(S){console.error("删除文章失败:",S),Wt.error("删除文章失败")}finally{t(!1)}};pe.useEffect(()=>{f(),p(a.current,a.pageSize)},[d==null?void 0:d.uid,c==null?void 0:c.uid]);const g=_=>{p(_.current,_.pageSize)},v=[{title:"标题",dataIndex:"title",key:"title",render:(_,S)=>F.jsxs(Ji,{children:[F.jsx(xwe,{}),F.jsx("a",{onClick:()=>{u(S),l(`/article/${S==null?void 0:S.uid}`)},children:_}),S.type==="markdown"&&F.jsx(zp,{color:"blue",children:"Markdown"})]})},{title:"摘要",dataIndex:"summary",key:"summary",ellipsis:!0,render:_=>_||F.jsx("span",{style:{color:"rgba(0, 0, 0, 0.25)"},children:"无摘要"})},{title:"有效期开始",dataIndex:"startDate",key:"startDate",render:_=>_?ln(_).format("YYYY-MM-DD"):F.jsx("span",{style:{color:"rgba(0, 0, 0, 0.25)"},children:"无限制"})},{title:"有效期结束",dataIndex:"endDate",key:"endDate",render:_=>_?ln(_).format("YYYY-MM-DD"):F.jsx("span",{style:{color:"rgba(0, 0, 0, 0.25)"},children:"无限制"})},{title:"置顶",dataIndex:"top",key:"top",render:_=>_?F.jsx(zp,{color:"green",children:"已置顶"}):F.jsx("span",{style:{color:"rgba(0, 0, 0, 0.25)"},children:"未置顶"})},{title:"发布状态",dataIndex:"published",key:"published",render:_=>_?F.jsx(zp,{color:"green",children:"已发布"}):F.jsx(zp,{color:"orange",children:"草稿"})},{title:"阅读量",dataIndex:"readCount",key:"readCount",render:_=>_||0},{title:"分类",dataIndex:"categoryUid",key:"category",render:_=>{const S=i[_];return S?F.jsxs(Ji,{children:[F.jsx(vTe,{}),F.jsx("span",{children:S.name})]}):F.jsx("span",{style:{color:"rgba(0, 0, 0, 0.25)"},children:"未分类"})}},{title:"更新时间",dataIndex:"updatedAt",key:"updatedAt",width:180,render:_=>ln(_).format("YYYY-MM-DD HH:mm:ss")},{title:"操作",key:"action",width:220,render:(_,S)=>F.jsxs(Ji,{size:"small",children:[F.jsx(bF,{type:"link",icon:F.jsx(wS,{}),onClick:()=>{u(S),l(`/article/${S==null?void 0:S.uid}`)},children:"预览"}),F.jsx(bF,{type:"link",icon:F.jsx(Hw,{}),onClick:()=>{u(S),l(`/article/${S==null?void 0:S.uid}/edit`)},children:"编辑"}),F.jsx(aD,{title:"确定要删除这篇文章吗?",onConfirm:()=>m(S.uid),okText:"确定",cancelText:"取消",children:F.jsx(bF,{type:"link",icon:F.jsx(x2,{}),danger:!0,children:"删除"})})]})}],b={columns:v.map((_,S)=>S===0?{..._,fixed:"left"}:S===v.length-1?{..._,fixed:"right"}:_),dataSource:n,loading:e,rowKey:"uid",scroll:{x:1500},pagination:{...a,showSizeChanger:!0,showQuickJumper:!0,showTotal:_=>`共 ${_} 条`},onChange:g};return F.jsx(Ud,{...b})},WNn=({open:e,onCancel:t})=>{const n=ka(),r=Vl(E=>E.currentOrg),{currentKbase:i}=Hg(),{setCurrentArticle:o}=cO(),[a,s]=pe.useState([]),[l,c]=pe.useState(!1),[u,d]=pe.useState(!1),f=pe.useRef(),[p,m]=pe.useState("permanent"),[g,v]=pe.useState(!1),y=async()=>{if(r!=null&&r.uid){d(!0);try{const E={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},C=await yX(E);console.log("queryCategoriesByOrg response:",C.data),C.data.code===200&&C.data.data.content&&s(C.data.data.content)}catch(E){console.error("获取分类列表失败:",E),Vo.error("获取分类列表失败")}finally{d(!1)}}};pe.useEffect(()=>{e&&y()},[e,r==null?void 0:r.uid]);const b=E=>{var w;const C=E.target.value;m(C),C==="permanent"&&((w=f.current)==null||w.setFieldValue("dateRange",void 0))},_=E=>{v(E)},S=async E=>{try{let C,w;if(E.dateType==="permanent")C=ln().format("YYYY-MM-DDTHH:mm:ss"),w=ln().add(100,"years").format("YYYY-MM-DDTHH:mm:ss");else{const A=E.dateRange;C=A!=null&&A[0]?A[0].format("YYYY-MM-DDTHH:mm:ss"):void 0,w=A!=null&&A[1]?A[1].format("YYYY-MM-DDTHH:mm:ss"):void 0}const O={title:E.title,summary:E.summary,type:i==null?void 0:i.type,kbUid:i==null?void 0:i.uid,orgUid:r==null?void 0:r.uid,categoryUid:E.categoryUid,published:E.published,startDate:C,endDate:w},T=await Een(O);return T.data.code===200?(Vo.success("文章创建成功"),o(T.data.data),n(`/article/${T.data.data.uid}/edit`),!0):(Vo.error(T.data.message),!1)}catch{return Vo.error("创建文章失败"),!1}},x=E=>{var C;s(w=>[...w,E]),(C=f.current)==null||C.setFieldValue("categoryUid",E.uid),c(!1)};return F.jsxs(F.Fragment,{children:[F.jsxs(LRe,{title:"新建文档",width:500,open:e,onFinish:S,onOpenChange:E=>!E&&t(),modalProps:{destroyOnClose:!0},formRef:f,children:[F.jsx(di,{name:"title",label:"文档标题",placeholder:"请输入文档标题",rules:[{required:!0,message:"请输入文档标题"},{max:100,message:"标题最多100个字符"}],fieldProps:{autoFocus:!0}}),F.jsx(qS,{name:"summary",label:"概要",placeholder:"请输入文章概要"}),F.jsxs(Ji,{direction:"vertical",style:{width:"100%"},children:[F.jsx(q2,{name:"categoryUid",label:"所属分类",placeholder:"请选择分类",options:a.map(E=>({label:E.name,value:E.uid})),fieldProps:{showSearch:!0,allowClear:!0,loading:u,notFoundContent:u?"加载中...":"暂无分类"}}),F.jsx(Dn,{type:"dashed",icon:F.jsx(v2,{}),onClick:()=>c(!0),style:{width:"100%"},children:"创建新分类"})]}),F.jsx(WS.Group,{name:"dateType",label:"有效期设置",initialValue:"permanent",options:[{label:"永久有效",value:"permanent"},{label:"自定义日期",value:"custom"}],fieldProps:{onChange:b}}),p==="custom"&&F.jsx(MRe,{name:"dateRange",label:"有效日期",placeholder:["开始日期","结束日期"],rules:[{required:p==="custom",message:"请选择有效日期范围"}]}),F.jsx(rU,{name:"published",label:"立即发布",initialValue:!1,fieldProps:{onChange:_},checkedChildren:"是",unCheckedChildren:"否"}),F.jsx(rU,{name:"isTop",label:"置顶",tooltip:"置顶后文章将在列表中优先展示",checkedChildren:"是",unCheckedChildren:"否"})]}),F.jsx(nke,{open:l,onCancel:()=>c(!1),onSuccess:x})]})},qNn=$o.div`
margin-bottom: 24px;
padding: 16px 24px;
border-radius: 2px;
box-shadow: 0 1px 4px rgba(0, 21, 41, 0.08);
`,YNn=$o(mY)`
margin-bottom: 16px;
cursor: pointer;
`,KNn=$o.div`
display: flex;
align-items: center;
justify-content: space-between;
margin-bottom: 16px;
h1 {
margin: 0;
font-size: 20px;
line-height: 32px;
}
`,QNn=$o.div`
color: rgba(0, 0, 0, 0.45);
`,XNn=()=>{const{kbaseUid:e}=hK(),{currentKbase:t,fetchKbaseDetail:n,deleteKbase:r,toggleStarKbase:i}=Hg(),[o,a]=pe.useState(!0),[s,l]=pe.useState("documents"),[c,u]=pe.useState(!1),[d,f]=pe.useState(!1),p=ka(),{translateString:m}=Pc(),g=async()=>{if(e)try{await n(e)}finally{a(!1)}};if(pe.useEffect(()=>{g()},[e,n]),o||!t)return F.jsx("div",{style:{textAlign:"center",padding:"50px"},children:F.jsx(Nc,{size:"large"})});const v={items:[{key:"edit",icon:F.jsx(Hw,{}),label:"编辑知识库",onClick:()=>{f(!0)}},{type:"divider"},{key:"delete",icon:F.jsx(x2,{}),label:"删除知识库",danger:!0,onClick:()=>{Qo.confirm({title:"删除知识库",content:"确定删除该知识库吗?",onOk:()=>{r(e||""),p("/")}})}}]},y=[{key:"documents",label:"文档",children:F.jsx(GNn,{})},...ud?[{key:"members",label:"成员",children:F.jsx(VNn,{kbaseUid:e||""})}]:[]],b=()=>{u(!0)};return F.jsxs("div",{children:[F.jsxs(qNn,{children:[F.jsx(YNn,{items:[{title:"所有知识库",onClick:_=>{_.preventDefault(),p("/")}},{title:F.jsx(F.Fragment,{children:m(t==null?void 0:t.name)})}]}),F.jsxs(KNn,{children:[F.jsxs(Ji,{size:"middle",align:"center",children:[F.jsx("h1",{children:m(t==null?void 0:t.name)}),ud&&F.jsx(Dn,{type:"text",icon:t!=null&&t.favorite?F.jsx(lD,{}):F.jsx(VY,{}),onClick:()=>i(t==null?void 0:t.uid)}),(t==null?void 0:t.type)===eg&&F.jsx(zp,{color:"blue",children:"私有"}),F.jsx(Dn,{type:"primary",icon:F.jsx(Hw,{}),onClick:b,children:"新建文档"})]}),F.jsxs(Ji,{children:[ud&&F.jsx(Dn,{icon:F.jsx(W0t,{}),children:"邀请成员"}),F.jsx(rD,{menu:v,placement:"bottomRight",children:F.jsx(Dn,{icon:F.jsx(d0t,{})})})]})]}),F.jsx(QNn,{children:m(t==null?void 0:t.description)})]}),F.jsx(SS,{activeKey:s,style:{paddingLeft:"24px",paddingRight:"24px"},onChange:l,items:y,size:"large"}),c&&F.jsx(WNn,{open:c,onCancel:()=>u(!1)}),d&&F.jsx(dMe,{visible:d,isEdit:!0,kbase:t,onCancel:()=>f(!1),onOk:()=>{f(!1),g()}})]})};function ZNn({children:e}){const{isLoggedIn:t}=h.useContext(cs),n=kS();return t?e:F.jsx(sCt,{to:"/auth/login",replace:!0,state:{from:n}})}const jge=[{path:"/",element:F.jsx(F.Fragment,{children:F.jsx(ZNn,{children:F.jsx(yJt,{})})}),children:[{path:"",element:F.jsx(dV,{})},{path:"kbase",element:F.jsx(dV,{})},{path:"kbase/:kbaseUid",element:F.jsx(XNn,{})},{path:"article/:articleUid",element:F.jsx(jNn,{})},{path:"article/:articleUid/edit",element:F.jsx(GSn,{})},{path:"/setting",element:F.jsx(VIe,{}),children:[{path:"/setting",element:F.jsx(ade,{})},{path:"/setting/profile",element:F.jsx(ade,{})},{path:"/setting/agentProfile",element:F.jsx(FJt,{})},{path:"/setting/memberProfile",element:F.jsx(IJt,{})},{path:"/setting/basic",element:F.jsx(wJt,{})},{path:"/setting/certification",element:F.jsx(LJt,{})},{path:"/setting/qrcode",element:F.jsx(TJt,{})},{path:"/setting/shortcut",element:F.jsx(OJt,{})}]}]},{path:"/auth",element:F.jsx(_Jt,{}),children:[{path:"/auth",element:F.jsx(xU,{isModel:!1})},{path:"/auth/login",element:F.jsx(xU,{isModel:!1})},{path:"/auth/register",element:F.jsx(kWt,{})},{path:"/auth/server",element:F.jsx(oIe,{})}]},{path:"/anonymous",element:F.jsx(gen,{}),children:[{path:"/anonymous",element:F.jsx(fV,{})},{path:"/anonymous/home",element:F.jsx(fV,{})},{path:"/anonymous/setting",element:F.jsx(yen,{})}]},{path:"*",element:F.jsx(RJt,{})}];let AG;ja?AG=mCt(jge,{future:{v7_normalizeFormMethod:!0,v7_relativeSplatPath:!0,v7_partialHydration:!0,v7_fetcherPersist:!0,v7_skipActionErrorRevalidation:!0}}):AG=hCt(jge,{basename:"/notebase",future:{v7_normalizeFormMethod:!0,v7_relativeSplatPath:!0,v7_partialHydration:!0,v7_fetcherPersist:!0,v7_skipActionErrorRevalidation:!0}});const JNn=AG;var e4n=typeof Element<"u",t4n=typeof Map=="function",n4n=typeof Set=="function",r4n=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function wN(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(!wN(e[r],t[r]))return!1;return!0}var o;if(t4n&&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(!wN(r.value[1],t.get(r.value[0])))return!1;return!0}if(n4n&&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(r4n&&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(e4n&&e instanceof Element)return!1;for(r=n;r--!==0;)if(!((i[r]==="_owner"||i[r]==="__v"||i[r]==="__o")&&e.$$typeof)&&!wN(e[i[r]],t[i[r]]))return!1;return!0}return e!==e&&t!==t}var i4n=function(t,n){try{return wN(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 o4n=oi(i4n);var a4n=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}},s4n=a4n;const Uge=oi(s4n);var o9e=(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))(o9e||{}),yF={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"]}},zge=Object.values(o9e),rJ={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"},l4n=Object.entries(rJ).reduce((e,[t,n])=>(e[n]=t,e),{}),sd="data-rh",Dy={DEFAULT_TITLE:"defaultTitle",DEFER:"defer",ENCODE_SPECIAL_CHARACTERS:"encodeSpecialCharacters",ON_CHANGE_CLIENT_STATE:"onChangeClientState",TITLE_TEMPLATE:"titleTemplate",PRIORITIZE_SEO_TAGS:"prioritizeSeoTags"},Ly=(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},c4n=e=>{let t=Ly(e,"title");const n=Ly(e,Dy.TITLE_TEMPLATE);if(Array.isArray(t)&&(t=t.join("")),n&&t)return n.replace(/%s/g,()=>t);const r=Ly(e,Dy.DEFAULT_TITLE);return t||r||void 0},u4n=e=>Ly(e,Dy.ON_CHANGE_CLIENT_STATE)||(()=>{}),_F=(e,t)=>t.filter(n=>typeof n[e]<"u").map(n=>n[e]).reduce((n,r)=>({...n,...r}),{}),d4n=(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},[]),f4n=e=>console&&typeof console.warn=="function"&&console.warn(e),hC=(e,t,n)=>{const r={};return n.filter(i=>Array.isArray(i[e])?!0:(typeof i[e]<"u"&&f4n(`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 p=u[f],m=p.toLowerCase();t.indexOf(m)!==-1&&!(c==="rel"&&l[c].toLowerCase()==="canonical")&&!(m==="rel"&&l[m].toLowerCase()==="stylesheet")&&(c=m),t.indexOf(p)!==-1&&(p==="innerHTML"||p==="cssText"||p==="itemprop")&&(c=p)}if(!c||!l[c])return!1;const d=l[c].toLowerCase();return r[c]||(r[c]={}),a[c]||(a[c]={}),r[c][d]?!1:(a[c][d]=!0,!0)}).reverse().forEach(l=>i.push(l));const s=Object.keys(a);for(let l=0;l<s.length;l+=1){const c=s[l],u={...r[c],...a[c]};r[c]=u}return i},[]).reverse()},p4n=(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},h4n=e=>({baseTag:d4n(["href"],e),bodyAttributes:_F("bodyAttributes",e),defer:Ly(e,Dy.DEFER),encode:Ly(e,Dy.ENCODE_SPECIAL_CHARACTERS),htmlAttributes:_F("htmlAttributes",e),linkTags:hC("link",["rel","href"],e),metaTags:hC("meta",["name","charset","http-equiv","property","itemprop"],e),noscriptTags:hC("noscript",["innerHTML"],e),onChangeClientState:u4n(e),scriptTags:hC("script",["src","innerHTML"],e),styleTags:hC("style",["cssText"],e),title:c4n(e),titleAttributes:_F("titleAttributes",e),prioritizeSeoTags:p4n(e,Dy.PRIORITIZE_SEO_TAGS)}),a9e=e=>Array.isArray(e)?e.join(""):e,m4n=(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},SF=(e,t)=>Array.isArray(e)?e.reduce((n,r)=>(m4n(r,t)?n.priority.push(r):n.default.push(r),n),{priority:[],default:[]}):{default:e,priority:[]},Vge=(e,t)=>({...e,[t]:void 0}),g4n=["noscript","script","style"],IG=(e,t=!0)=>t===!1?String(e):String(e).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;"),s9e=e=>Object.keys(e).reduce((t,n)=>{const r=typeof e[n]<"u"?`${n}="${e[n]}"`:`${n}`;return t?`${t} ${r}`:r},""),v4n=(e,t,n,r)=>{const i=s9e(n),o=a9e(t);return i?`<${e} ${sd}="true" ${i}>${IG(o,r)}</${e}>`:`<${e} ${sd}="true">${IG(o,r)}</${e}>`},b4n=(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}="${IG(o[u],n)}"`;return c?`${c} ${d}`:d},""),s=o.innerHTML||o.cssText||"",l=g4n.indexOf(e)===-1;return`${r}<${e} ${sd}="true" ${a}${l?"/>":`>${s}</${e}>`}`},""),l9e=(e,t={})=>Object.keys(e).reduce((n,r)=>{const i=rJ[r];return n[i||r]=e[r],n},t),y4n=(e,t,n)=>{const r={key:t,[sd]:!0},i=l9e(n,r);return[pe.createElement("title",i,t)]},TN=(e,t)=>t.map((n,r)=>{const i={key:r,[sd]:!0};return Object.keys(n).forEach(o=>{const s=rJ[o]||o;if(s==="innerHTML"||s==="cssText"){const l=n.innerHTML||n.cssText;i.dangerouslySetInnerHTML={__html:l}}else i[s]=n[o]}),pe.createElement(e,i)}),Gc=(e,t,n=!0)=>{switch(e){case"title":return{toComponent:()=>y4n(e,t.title,t.titleAttributes),toString:()=>v4n(e,t.title,t.titleAttributes,n)};case"bodyAttributes":case"htmlAttributes":return{toComponent:()=>l9e(t),toString:()=>s9e(t)};default:return{toComponent:()=>TN(e,t),toString:()=>b4n(e,t,n)}}},_4n=({metaTags:e,linkTags:t,scriptTags:n,encode:r})=>{const i=SF(e,yF.meta),o=SF(t,yF.link),a=SF(n,yF.script);return{priorityMethods:{toComponent:()=>[...TN("meta",i.priority),...TN("link",o.priority),...TN("script",a.priority)],toString:()=>`${Gc("meta",i.priority,r)} ${Gc("link",o.priority,r)} ${Gc("script",a.priority,r)}`},metaTags:i.default,linkTags:o.default,scriptTags:a.default}},S4n=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,p={toComponent:()=>{},toString:()=>""};return c&&({priorityMethods:p,linkTags:u,metaTags:d,scriptTags:f}=_4n(e)),{priority:p,base:Gc("base",t,r),bodyAttributes:Gc("bodyAttributes",n,r),htmlAttributes:Gc("htmlAttributes",i,r),link:Gc("link",u,r),meta:Gc("meta",d,r),noscript:Gc("noscript",o,r),script:Gc("script",f,r),style:Gc("style",a,r),title:Gc("title",{title:s,titleAttributes:l},r)}},NG=S4n,KA=[],c9e=!!(typeof window<"u"&&window.document&&window.document.createElement),MG=class{constructor(e,t){ni(this,"instances",[]);ni(this,"canUseDOM",c9e);ni(this,"context");ni(this,"value",{setHelmet:e=>{this.context.helmet=e},helmetInstances:{get:()=>this.canUseDOM?KA:this.instances,add:e=>{(this.canUseDOM?KA:this.instances).push(e)},remove:e=>{const t=(this.canUseDOM?KA:this.instances).indexOf(e);(this.canUseDOM?KA:this.instances).splice(t,1)}}});this.context=e,this.canUseDOM=t||!1,t||(e.helmet=NG({baseTag:[],bodyAttributes:{},htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}}))}},E4n={},u9e=pe.createContext(E4n),t1,d9e=(t1=class extends h.Component{constructor(n){super(n);ni(this,"helmetData");this.helmetData=new MG(this.props.context||{},t1.canUseDOM)}render(){return pe.createElement(u9e.Provider,{value:this.helmetData.value},this.props.children)}},ni(t1,"canUseDOM",c9e),t1),Tb=(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}},kG=(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(","))},C4n=(e,t)=>{typeof e<"u"&&document.title!==e&&(document.title=a9e(e)),kG("title",t)},Gge=(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;kG("body",r),kG("html",i),C4n(d,f);const p={baseTag:Tb("base",n),linkTags:Tb("link",o),metaTags:Tb("meta",a),noscriptTags:Tb("noscript",s),scriptTags:Tb("script",c),styleTags:Tb("style",u)},m={},g={};Object.keys(p).forEach(v=>{const{newTags:y,oldTags:b}=p[v];y.length&&(m[v]=y),b.length&&(g[v]=p[v].oldTags)}),t&&t(),l(e,m,g)},mC=null,x4n=e=>{mC&&cancelAnimationFrame(mC),e.defer?mC=requestAnimationFrame(()=>{Gge(e,()=>{mC=null})}):(Gge(e),mC=null)},w4n=x4n,Wge=class extends h.Component{constructor(){super(...arguments);ni(this,"rendered",!1)}shouldComponentUpdate(t){return!eZt(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=h4n(t.get().map(o=>{const a={...o.props};return delete a.context,a}));d9e.canUseDOM?w4n(i):NG&&(r=NG(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}},EF,T4n=(EF=class extends h.Component{shouldComponentUpdate(e){return!o4n(Vge(this.props,"helmetData"),Vge(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 Uge(zge.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 ${zge.join(", ")} are allowed. Helmet does not support rendering <${e.type}> elements. Refer to our API for more information.`),Uge(!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 pe.Children.forEach(e,r=>{if(!r||!r.props)return;const{children:i,...o}=r.props,a=Object.keys(o).reduce((l,c)=>(l[l4n[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 MG)){const i=r;r=new MG(i.context,!0),delete n.helmetData}return r?pe.createElement(Wge,{...n,context:r.value}):pe.createElement(u9e.Consumer,null,i=>pe.createElement(Wge,{...n,context:i}))}},ni(EF,"defaultProps",{defer:!0,encodeSpecialCharacters:!0,prioritizeSeoTags:!1}),EF);const O4n={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:"暂无客服在线"},R4n={"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":"知识库"},A4n={"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":"查看文档"},I4n={"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":"隐私政策"},N4n={"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":"请输入正确的服务器地址"},M4n={"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错误"},k4n={"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":"表单验证通过"},P4n={"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":"拉黑成功"},D4n={"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":"转接请求已发送,等待对方响应"},L4n={"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":"知识库列表"},$4n={"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":"请检查表单"},F4n={"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":"密码修改成功!"},B4n={"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":"个人模式"},H4n={"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":"加载更多..."},j4n={"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":"暂无工单"},U4n={"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":"开始聊天"},z4n={"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":"加载成员失败"},V4n={"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":"请至少选择一个机器人"},G4n={"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":"选择大模型知识库"},W4n={"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":"取消"},f9e={"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"},q4n={...I4n,...N4n,...M4n,...k4n,...P4n,...D4n,...L4n,...R4n,...$4n,...A4n,...F4n,...B4n,...H4n,...j4n,...O4n,...U4n,...z4n,...V4n,...G4n,...W4n,...f9e},Y4n={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:"无客服在线"},K4n={"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":"知識庫"},Q4n={"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":"返回首頁"},X4n={"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":"隱私政策"},Z4n={"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":"請輸入正確的服務器地址"},J4n={"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錯誤"},eMn={"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":"表單驗證通過"},tMn={"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":"拉黑成功"},nMn={"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":"數據加載失敗"},rMn={"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":"知識庫列表"},iMn={"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":"圖片保存失敗"},oMn={"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":"密碼修改成功!"},aMn={"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":"個人模式"},sMn={"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":"加載更多..."},lMn={"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":"暫無工單"},cMn={"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":"開始聊天"},uMn={"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":"加載成員失敗"},dMn={"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":"刪除"},fMn={"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":"选择大模型知识库"},pMn={"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":"取消"},hMn={"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":"稍後驗證"},mMn={...X4n,...Z4n,...J4n,...eMn,...tMn,...nMn,...rMn,...K4n,...iMn,...Q4n,...oMn,...aMn,...sMn,...lMn,...Y4n,...cMn,...uMn,...dMn,...fMn,...pMn,...hMn},gMn={"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"},vMn={"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"},bMn={"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"},yMn={"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"},_Mn={"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"},SMn={"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!"},EMn={"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"},CMn={"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"},xMn={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"},wMn={"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"},TMn={"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"},OMn={"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"},RMn={"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..."},AMn={"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"},IMn={"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"},NMn={"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"},MMn={"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"},kMn={"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"},PMn={"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"},DMn={"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"},LMn={...gMn,...vMn,...bMn,...yMn,..._Mn,...SMn,...EMn,...CMn,...xMn,...wMn,...TMn,...OMn,...RMn,...AMn,...IMn,...NMn,...MMn,...kMn,...PMn,...DMn,...f9e},$Mn={"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"},p9e={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"},Zo={tablet:"tablet",mobile:"mobile",desktop:"desktop",tv:"tv"},Us={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"},om={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 $Mn[t]}static getBrowserTypeByAlias(t){return p9e[t]||""}}const Hi=/version\/(\d+(\.?_?\d+)+)/i,FMn=[{test:[/googlebot/i],describe(e){const t={name:"Googlebot"},n=tn.getFirstMatch(/googlebot\/(\d+(\.\d+))/i,e)||tn.getFirstMatch(Hi,e);return n&&(t.version=n),t}},{test:[/opera/i],describe(e){const t={name:"Opera"},n=tn.getFirstMatch(Hi,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(Hi,e);return n&&(t.version=n),t}},{test:[/SamsungBrowser/i],describe(e){const t={name:"Samsung Internet for Android"},n=tn.getFirstMatch(Hi,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(Hi,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(Hi,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(Hi,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(Hi,e);return n&&(t.version=n),t}},{test:[/coast/i],describe(e){const t={name:"Opera Coast"},n=tn.getFirstMatch(Hi,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(Hi,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(Hi,e);return n&&(t.version=n),t}},{test:[/ucbrowser/i],describe(e){const t={name:"UC Browser"},n=tn.getFirstMatch(Hi,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(Hi,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(Hi,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(Hi,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(Hi,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(Hi,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(Hi,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(Hi,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(Hi,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(Hi,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(Hi,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(Hi,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(Hi,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(Hi,e);return n&&(t.version=n),t}},{test:[/playstation 4/i],describe(e){const t={name:"PlayStation 4"},n=tn.getFirstMatch(Hi,e);return n&&(t.version=n),t}},{test:[/safari|applewebkit/i],describe(e){const t={name:"Safari"},n=tn.getFirstMatch(Hi,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)}}}],BMn=[{test:[/Roku\/DVP/],describe(e){const t=tn.getFirstMatch(/Roku\/DVP-(\d+\.\d+)/i,e);return{name:Us.Roku,version:t}}},{test:[/windows phone/i],describe(e){const t=tn.getFirstMatch(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i,e);return{name:Us.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:Us.Windows,version:t,versionName:n}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe(e){const t={name:Us.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:Us.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:Us.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:Us.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:Us.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:Us.BlackBerry,version:t}}},{test:[/bada/i],describe(e){const t=tn.getFirstMatch(/bada\/(\d+(\.\d+)*)/i,e);return{name:Us.Bada,version:t}}},{test:[/tizen/i],describe(e){const t=tn.getFirstMatch(/tizen[/\s](\d+(\.\d+)*)/i,e);return{name:Us.Tizen,version:t}}},{test:[/linux/i],describe(){return{name:Us.Linux}}},{test:[/CrOS/],describe(){return{name:Us.ChromeOS}}},{test:[/PlayStation 4/],describe(e){const t=tn.getFirstMatch(/PlayStation 4[/\s](\d+(\.\d+)*)/i,e);return{name:Us.PlayStation4,version:t}}}],HMn=[{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:Zo.mobile,vendor:"Huawei"};return t&&(n.model=t),n}},{test:[/nexus\s*(?:7|8|9|10).*/i],describe(){return{type:Zo.tablet,vendor:"Nexus"}}},{test:[/ipad/i],describe(){return{type:Zo.tablet,vendor:"Apple",model:"iPad"}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe(){return{type:Zo.tablet,vendor:"Apple",model:"iPad"}}},{test:[/kftt build/i],describe(){return{type:Zo.tablet,vendor:"Amazon",model:"Kindle Fire HD 7"}}},{test:[/silk/i],describe(){return{type:Zo.tablet,vendor:"Amazon"}}},{test:[/tablet(?! pc)/i],describe(){return{type:Zo.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:Zo.mobile,vendor:"Apple",model:t}}},{test:[/nexus\s*[0-6].*/i,/galaxy nexus/i],describe(){return{type:Zo.mobile,vendor:"Nexus"}}},{test:[/[^-]mobi/i],describe(){return{type:Zo.mobile}}},{test(e){return e.getBrowserName(!0)==="blackberry"},describe(){return{type:Zo.mobile,vendor:"BlackBerry"}}},{test(e){return e.getBrowserName(!0)==="bada"},describe(){return{type:Zo.mobile}}},{test(e){return e.getBrowserName()==="windows phone"},describe(){return{type:Zo.mobile,vendor:"Microsoft"}}},{test(e){const t=Number(String(e.getOSVersion()).split(".")[0]);return e.getOSName(!0)==="android"&&t>=3},describe(){return{type:Zo.tablet}}},{test(e){return e.getOSName(!0)==="android"},describe(){return{type:Zo.mobile}}},{test(e){return e.getOSName(!0)==="macos"},describe(){return{type:Zo.desktop,vendor:"Apple"}}},{test(e){return e.getOSName(!0)==="windows"},describe(){return{type:Zo.desktop}}},{test(e){return e.getOSName(!0)==="linux"},describe(){return{type:Zo.desktop}}},{test(e){return e.getOSName(!0)==="playstation 4"},describe(){return{type:Zo.tv}}},{test(e){return e.getOSName(!0)==="roku"},describe(){return{type:Zo.tv}}}],jMn=[{test(e){return e.getBrowserName(!0)==="microsoft edge"},describe(e){if(/\sedg\//i.test(e))return{name:om.Blink};const n=tn.getFirstMatch(/edge\/(\d+(\.?_?\d+)+)/i,e);return{name:om.EdgeHTML,version:n}}},{test:[/trident/i],describe(e){const t={name:om.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:om.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:om.Gecko},n=tn.getFirstMatch(/gecko\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/(apple)?webkit\/537\.36/i],describe(){return{name:om.Blink}}},{test:[/(apple)?webkit/i],describe(e){const t={name:om.WebKit},n=tn.getFirstMatch(/webkit\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}}];class qge{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(FMn,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(BMn,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(HMn,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(jMn,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 UMn{static getParser(t,n=!1){if(typeof t!="string")throw new Error("UserAgent should be a string");return new qge(t,n)}static parse(t){return new qge(t).getResult()}static get BROWSER_MAP(){return p9e}static get ENGINE_MAP(){return om}static get OS_MAP(){return Us}static get PLATFORMS_MAP(){return Zo}}const{defaultAlgorithm:zMn,darkAlgorithm:VMn}=Cs,GMn={"zh-cn":q4n,"zh-tw":mMn,en:LMn},WMn=()=>{const{isDarkMode:e,locale:t}=h.useContext(cs),n=new WSt({defaultOptions:{queries:{refetchOnWindowFocus:!1}}}),[r,i]=h.useState(!1),o=()=>{const s=UMn.getParser(window.navigator.userAgent);console.log("browser:",s),ja?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 Cbe(),ja)console.log("is electron");else{await Ebe();const s=L5();console.log("Base URL:",s)}};return h.useEffect(()=>{gye(),o(),a()},[]),F.jsx(Ln,{locale:t,theme:{algorithm:e?VMn:zMn},children:F.jsx(YSt,{client:n,children:F.jsx(d9e,{children:F.jsx(h.Suspense,{fallback:F.jsx("div",{children:"loading..."}),children:F.jsxs(CWt,{messages:GMn[t.locale],locale:t.locale,defaultLocale:"zh-cn",children:[r&&F.jsx(T4n,{children:F.jsx("link",{rel:"stylesheet",type:"text/css",href:N7e})}),F.jsxs(PP,{children:[F.jsx(ESt,{}),F.jsx(CCt,{router:JNn})]})]})})})})})},qMn=()=>F.jsx("div",{className:"App",children:F.jsx(CSt,{children:F.jsx(WMn,{})})});CF.createRoot(document.getElementById("root")).render(F.jsx(qMn,{}));postMessage({payload:"removeLoading"},"*");export{P2t as $,ECe as A,Tv as B,XOt as C,VOt as D,ZOt as E,JOt as F,SOe as G,xD as H,I2t as I,wK as J,COe as K,_Oe as L,cOe as M,AOt as N,wOt as O,GOt as P,Wn as Q,AHe as R,lM as S,LOt as T,Cse as U,$S as V,D2 as W,IOt as X,dOe as Y,k2t as Z,sX as _,Vl as a,Rse as a0,D2t as a1,M2t as a2,B2t as a3,hOe as a4,V2t as a5,WOn as a6,xK as b,DS as c,TD as d,TK as e,Bj as f,oi as g,gOe as h,fOe as i,yOe as j,Fj as k,LS as l,tRt as m,yqe as n,$2t as o,vqe as p,Sr as q,Br as r,lH as s,e2t as t,Cf as u,J2t as v,CK as w,xGe as x,uHt as y,xCe as z};